Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions meta.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export interface VendorSkillMeta {
official?: boolean
source: string
skillsPath?: string // Optional custom path to skills directory (default: 'skills')
skills: Record<string, string> // sourceSkillName -> outputSkillName
}

Expand Down
8 changes: 5 additions & 3 deletions scripts/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ interface Project {

interface VendorConfig {
source: string
skillsPath?: string // Optional custom path to skills directory (default: 'skills')
skills: Record<string, string> // sourceSkillName -> outputSkillName
}

Expand Down Expand Up @@ -190,15 +191,16 @@ async function syncSubmodules() {
for (const [vendorName, config] of Object.entries(vendors)) {
const vendorConfig = config as VendorConfig
const vendorPath = join(root, 'vendor', vendorName)
const vendorSkillsPath = join(vendorPath, 'skills')
const skillsBasePath = vendorConfig.skillsPath || 'skills'
const vendorSkillsPath = join(vendorPath, skillsBasePath)

if (!existsSync(vendorPath)) {
p.log.warn(`Vendor submodule not found: ${vendorName}. Run init first.`)
continue
}

if (!existsSync(vendorSkillsPath)) {
p.log.warn(`No skills directory in vendor/${vendorName}/skills/`)
p.log.warn(`No skills directory in vendor/${vendorName}/${skillsBasePath}/`)
continue
}

Expand Down Expand Up @@ -255,7 +257,7 @@ async function syncSubmodules() {

const syncContent = `# Sync Info

- **Source:** \`vendor/${vendorName}/skills/${sourceSkillName}\`
- **Source:** \`vendor/${vendorName}/${skillsBasePath}/${sourceSkillName}\`
- **Git SHA:** \`${sha}\`
- **Synced:** ${date}
`
Expand Down