Files
orca/src/shared/skills.ts
T
0ec3882cb8 Add project Windows runtime selection (#5519)
* Add project Windows runtime selection

* Fix project Windows runtime selection

Co-authored-by: Orca <help@stably.ai>

* fix: preserve WSL shell variables

---------

Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com>
Co-authored-by: Orca <help@stably.ai>
Co-authored-by: Neil <neil@stably.ai>
2026-06-17 16:08:14 -07:00

48 lines
1.1 KiB
TypeScript

import type { ProjectExecutionRuntimeResolution } from './project-execution-runtime'
export type SkillProvider = 'codex' | 'claude' | 'agent-skills'
export type SkillSourceKind = 'home' | 'repo' | 'bundled' | 'plugin'
export type DiscoveredSkill = {
id: string
name: string
description: string | null
providers: SkillProvider[]
sourceKind: SkillSourceKind
sourceLabel: string
rootPath: string
directoryPath: string
skillFilePath: string
installed: boolean
fileCount: number
updatedAt: number | null
}
export type SkillDiscoverySource = {
id: string
label: string
path: string
sourceKind: SkillSourceKind
providers: SkillProvider[]
exists: boolean
skippedReason?: 'missing' | 'remote-repo'
}
export type SkillDiscoveryResult = {
skills: DiscoveredSkill[]
sources: SkillDiscoverySource[]
scannedAt: number
}
export type SkillDiscoveryTarget = {
runtime?: 'host' | 'wsl'
wslDistro?: string | null
projectRuntime?: ProjectExecutionRuntimeResolution
}
export type SkillFrontmatterSummary = {
name: string | null
description: string | null
}