@agents-inc/cli 0.68.0 → 0.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +46 -0
- package/README.md +172 -23
- package/dist/chunk-2MHSOPIU.js +84 -0
- package/dist/chunk-2MHSOPIU.js.map +1 -0
- package/dist/{chunk-VTRVAXUM.js → chunk-3SLO2QPW.js} +6 -6
- package/dist/{chunk-KFDTVSIC.js → chunk-6YMW4HMX.js} +2 -2
- package/dist/{chunk-KBG7GYPL.js → chunk-AHZ34QVK.js} +76 -113
- package/dist/chunk-AHZ34QVK.js.map +1 -0
- package/dist/chunk-D7FEORKC.js +253 -0
- package/dist/chunk-D7FEORKC.js.map +1 -0
- package/dist/{chunk-L6MTIQ2U.js → chunk-F43WGOGN.js} +2 -2
- package/dist/{chunk-F6KEZ4Y5.js → chunk-FKRYJOPC.js} +4 -4
- package/dist/{chunk-RMMHVE2R.js → chunk-G3LNIYZG.js} +2 -2
- package/dist/{chunk-GK5CAS3A.js → chunk-HJVWBSLM.js} +4 -4
- package/dist/{chunk-45R64U2S.js → chunk-HMJGSAKV.js} +24 -22
- package/dist/chunk-HMJGSAKV.js.map +1 -0
- package/dist/{chunk-6BXKF5GP.js → chunk-J4TVAB5H.js} +2 -2
- package/dist/{chunk-2JJUPWE5.js → chunk-LBTW5HSY.js} +2 -2
- package/dist/{chunk-QUEO6QEL.js → chunk-LM5YQUBR.js} +3 -3
- package/dist/{chunk-FCF4WQEI.js → chunk-MGQVO357.js} +2 -2
- package/dist/{chunk-KWB3B2HS.js → chunk-NKKYTCBH.js} +109 -86
- package/dist/chunk-NKKYTCBH.js.map +1 -0
- package/dist/{chunk-HADHP7XF.js → chunk-OODTDGEM.js} +6 -6
- package/dist/chunk-Q3YMO5YG.js +58 -0
- package/dist/chunk-Q3YMO5YG.js.map +1 -0
- package/dist/{chunk-L5LD3ZSR.js → chunk-RJOLQ7EK.js} +4 -4
- package/dist/{chunk-SSGPFKS4.js → chunk-SEAL43IR.js} +3 -3
- package/dist/{chunk-JAWXWNIX.js → chunk-UQTG4ZBA.js} +10 -10
- package/dist/{chunk-EULHBV5V.js → chunk-URAXGHF2.js} +3 -3
- package/dist/{chunk-KMDBOO3E.js → chunk-V2XIWRHP.js} +2 -2
- package/dist/chunk-WF5PMBIR.js +54 -0
- package/dist/chunk-WF5PMBIR.js.map +1 -0
- package/dist/{chunk-N4D43IOO.js → chunk-WWHDP5CP.js} +55 -8
- package/dist/chunk-WWHDP5CP.js.map +1 -0
- package/dist/{chunk-R3AR4VLZ.js → chunk-ZEJIEC2A.js} +154 -150
- package/dist/chunk-ZEJIEC2A.js.map +1 -0
- package/dist/{chunk-7LCI5PSJ.js → chunk-ZFRALAK5.js} +2 -2
- package/dist/commands/build/marketplace.js +3 -3
- package/dist/commands/build/plugins.js +6 -6
- package/dist/commands/build/stack.js +6 -6
- package/dist/commands/compile.js +6 -6
- package/dist/commands/config/index.js +6 -6
- package/dist/commands/config/path.js +5 -5
- package/dist/commands/config/show.js +6 -6
- package/dist/commands/diff.js +5 -5
- package/dist/commands/doctor.js +5 -5
- package/dist/commands/edit.js +21 -20
- package/dist/commands/edit.js.map +1 -1
- package/dist/commands/eject.js +5 -5
- package/dist/commands/import/skill.js +5 -5
- package/dist/commands/info.js +5 -5
- package/dist/commands/init.js +21 -20
- package/dist/commands/list.js +5 -5
- package/dist/commands/new/agent.js +6 -6
- package/dist/commands/new/marketplace.js +7 -7
- package/dist/commands/new/skill.js +6 -6
- package/dist/commands/outdated.js +5 -5
- package/dist/commands/search.js +5 -5
- package/dist/commands/uninstall.js +5 -5
- package/dist/commands/update.js +6 -6
- package/dist/commands/validate.js +5 -5
- package/dist/components/common/select-list.js +11 -0
- package/dist/components/wizard/category-grid.test.js +6 -6
- package/dist/components/wizard/domain-selection.js +6 -6
- package/dist/components/wizard/search-modal.js +2 -1
- package/dist/components/wizard/search-modal.test.js +3 -2
- package/dist/components/wizard/search-modal.test.js.map +1 -1
- package/dist/components/wizard/source-grid.js +3 -2
- package/dist/components/wizard/source-grid.test.js +17 -13
- package/dist/components/wizard/source-grid.test.js.map +1 -1
- package/dist/components/wizard/stack-selection.js +6 -6
- package/dist/components/wizard/step-agents.js +6 -6
- package/dist/components/wizard/step-agents.test.js +10 -9
- package/dist/components/wizard/step-agents.test.js.map +1 -1
- package/dist/components/wizard/step-build.js +7 -7
- package/dist/components/wizard/step-build.test.js +17 -52
- package/dist/components/wizard/step-build.test.js.map +1 -1
- package/dist/components/wizard/step-confirm.test.js +6 -6
- package/dist/components/wizard/step-settings.js +5 -5
- package/dist/components/wizard/step-settings.test.js +8 -8
- package/dist/components/wizard/step-sources.js +10 -9
- package/dist/components/wizard/step-sources.test.js +15 -13
- package/dist/components/wizard/step-sources.test.js.map +1 -1
- package/dist/components/wizard/step-stack.js +9 -9
- package/dist/components/wizard/step-stack.test.js +10 -10
- package/dist/components/wizard/wizard-layout.js +6 -6
- package/dist/components/wizard/wizard.js +19 -18
- package/dist/config-exports.js +1 -1
- package/dist/hooks/init.js +21 -20
- package/dist/hooks/init.js.map +1 -1
- package/dist/{loader-CMSC3RAO.js → loader-KVKSTKWX.js} +3 -3
- package/dist/{source-loader-YMWWZFVD.js → source-loader-65IAJPNV.js} +5 -5
- package/dist/{source-manager-6G3EVTU2.js → source-manager-LJH225GA.js} +5 -5
- package/dist/source-manager-LJH225GA.js.map +1 -0
- package/dist/stores/matrix-store.test.js +17 -13
- package/dist/stores/matrix-store.test.js.map +1 -1
- package/dist/stores/wizard-store.js +5 -5
- package/dist/stores/wizard-store.test.js +35 -110
- package/dist/stores/wizard-store.test.js.map +1 -1
- package/package.json +2 -1
- package/dist/chunk-45R64U2S.js.map +0 -1
- package/dist/chunk-6IK2TCK7.js +0 -97
- package/dist/chunk-6IK2TCK7.js.map +0 -1
- package/dist/chunk-KBG7GYPL.js.map +0 -1
- package/dist/chunk-KWB3B2HS.js.map +0 -1
- package/dist/chunk-N4D43IOO.js.map +0 -1
- package/dist/chunk-R3AR4VLZ.js.map +0 -1
- /package/dist/{chunk-VTRVAXUM.js.map → chunk-3SLO2QPW.js.map} +0 -0
- /package/dist/{chunk-KFDTVSIC.js.map → chunk-6YMW4HMX.js.map} +0 -0
- /package/dist/{chunk-L6MTIQ2U.js.map → chunk-F43WGOGN.js.map} +0 -0
- /package/dist/{chunk-F6KEZ4Y5.js.map → chunk-FKRYJOPC.js.map} +0 -0
- /package/dist/{chunk-RMMHVE2R.js.map → chunk-G3LNIYZG.js.map} +0 -0
- /package/dist/{chunk-GK5CAS3A.js.map → chunk-HJVWBSLM.js.map} +0 -0
- /package/dist/{chunk-6BXKF5GP.js.map → chunk-J4TVAB5H.js.map} +0 -0
- /package/dist/{chunk-2JJUPWE5.js.map → chunk-LBTW5HSY.js.map} +0 -0
- /package/dist/{chunk-QUEO6QEL.js.map → chunk-LM5YQUBR.js.map} +0 -0
- /package/dist/{chunk-FCF4WQEI.js.map → chunk-MGQVO357.js.map} +0 -0
- /package/dist/{chunk-HADHP7XF.js.map → chunk-OODTDGEM.js.map} +0 -0
- /package/dist/{chunk-L5LD3ZSR.js.map → chunk-RJOLQ7EK.js.map} +0 -0
- /package/dist/{chunk-SSGPFKS4.js.map → chunk-SEAL43IR.js.map} +0 -0
- /package/dist/{chunk-JAWXWNIX.js.map → chunk-UQTG4ZBA.js.map} +0 -0
- /package/dist/{chunk-EULHBV5V.js.map → chunk-URAXGHF2.js.map} +0 -0
- /package/dist/{chunk-KMDBOO3E.js.map → chunk-V2XIWRHP.js.map} +0 -0
- /package/dist/{chunk-7LCI5PSJ.js.map → chunk-ZFRALAK5.js.map} +0 -0
- /package/dist/{loader-CMSC3RAO.js.map → components/common/select-list.js.map} +0 -0
- /package/dist/{source-loader-YMWWZFVD.js.map → loader-KVKSTKWX.js.map} +0 -0
- /package/dist/{source-manager-6G3EVTU2.js.map → source-loader-65IAJPNV.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/cli/commands/edit.tsx"],"sourcesContent":["import os from \"os\";\n\nimport { Flags } from \"@oclif/core\";\nimport { render } from \"ink\";\n\nimport { BaseCommand } from \"../base-command.js\";\nimport { Wizard, type WizardResultV2 } from \"../components/wizard/wizard.js\";\nimport {\n ASCII_LOGO,\n CLI_BIN_NAME,\n GLOBAL_INSTALL_ROOT,\n PROJECT_ROOT,\n SOURCE_DISPLAY_NAMES,\n} from \"../consts.js\";\nimport { getAgentDefinitions, recompileAgents } from \"../lib/agents/index.js\";\nimport { loadProjectConfig } from \"../lib/configuration/index.js\";\nimport { EXIT_CODES } from \"../lib/exit-codes.js\";\nimport {\n detectInstallation,\n buildAndMergeConfig,\n writeScopedConfigs,\n detectMigrations,\n executeMigration,\n deriveInstallMode,\n} from \"../lib/installation/index.js\";\nimport {\n getMarketplaceLabel,\n loadAllAgents,\n loadSkillsMatrixFromSource,\n} from \"../lib/loading/index.js\";\nimport { findSkill, getMatrix, getSkill, useMatrixStore } from \"../stores/matrix-store\";\nimport { discoverAllPluginSkills } from \"../lib/plugins/index.js\";\nimport { deleteLocalSkill, migrateLocalSkillScope } from \"../lib/skills/index.js\";\nimport type { AgentDefinition, AgentName, SkillId } from \"../types/index.js\";\nimport { getErrorMessage } from \"../utils/errors.js\";\nimport { claudePluginInstall, claudePluginUninstall } from \"../utils/exec.js\";\nimport {\n enableBuffering,\n drainBuffer,\n disableBuffering,\n pushBufferMessage,\n type StartupMessage,\n} from \"../utils/logger.js\";\nimport { ERROR_MESSAGES, INFO_MESSAGES, STATUS_MESSAGES } from \"../utils/messages.js\";\n\nfunction formatSourceDisplayName(sourceName: string): string {\n return SOURCE_DISPLAY_NAMES[sourceName] ?? sourceName;\n}\n\nexport default class Edit extends BaseCommand {\n static summary = \"Edit skills in the plugin\";\n static description = \"Modify the currently installed skills via interactive wizard\";\n\n static examples = [\n {\n description: \"Open the edit wizard\",\n command: \"<%= config.bin %> <%= command.id %>\",\n },\n {\n description: \"Edit with a custom source\",\n command: \"<%= config.bin %> <%= command.id %> --source github:org/marketplace\",\n },\n {\n description: \"Force refresh skills from remote\",\n command: \"<%= config.bin %> <%= command.id %> --refresh\",\n },\n ];\n\n static flags = {\n ...BaseCommand.baseFlags,\n refresh: Flags.boolean({\n description: \"Force refresh from remote sources\",\n default: false,\n }),\n \"agent-source\": Flags.string({\n description: \"Remote agent partials source (default: local CLI)\",\n }),\n };\n\n async run(): Promise<void> {\n const { flags } = await this.parse(Edit);\n\n const installation = await detectInstallation();\n\n if (!installation) {\n this.error(ERROR_MESSAGES.NO_INSTALLATION, {\n exit: EXIT_CODES.ERROR,\n });\n }\n\n const projectDir = installation.projectDir;\n\n enableBuffering();\n\n if (installation.projectDir === os.homedir()) {\n pushBufferMessage(\n \"info\",\n \"No project installation found. Using global installation from ~/.claude-src/\",\n );\n }\n let sourceResult;\n let startupMessages: StartupMessage[] = [];\n try {\n sourceResult = await loadSkillsMatrixFromSource({\n sourceFlag: flags.source,\n projectDir,\n forceRefresh: flags.refresh,\n });\n\n const sourceInfo = sourceResult.isLocal ? \"local\" : sourceResult.sourceConfig.sourceOrigin;\n pushBufferMessage(\n \"info\",\n `Loaded ${Object.keys(getMatrix().skills).length} skills (${sourceInfo})`,\n );\n } catch (error) {\n disableBuffering();\n this.handleError(error);\n }\n\n const projectConfig = await loadProjectConfig(projectDir);\n\n let currentSkillIds: SkillId[];\n try {\n const discoveredSkills = await discoverAllPluginSkills(projectDir);\n // Boundary cast: discoverAllPluginSkills keys are skill IDs from frontmatter\n currentSkillIds = Object.keys(discoveredSkills) as SkillId[];\n\n // In local mode, plugin discovery returns empty — fall back to project config skills\n if (currentSkillIds.length === 0 && projectConfig?.config?.skills?.length) {\n currentSkillIds = projectConfig.config.skills.map((s) => s.id);\n pushBufferMessage(\"info\", `Found ${currentSkillIds.length} skills from project config`);\n } else {\n pushBufferMessage(\"info\", `Current plugin has ${currentSkillIds.length} skills`);\n }\n } catch (error) {\n disableBuffering();\n this.handleError(error);\n }\n\n startupMessages = drainBuffer();\n disableBuffering();\n\n let wizardResult: WizardResultV2 | null = null;\n const marketplaceLabel = getMarketplaceLabel(sourceResult);\n\n // D9: In project context, existing global items are read-only (locked).\n // When editing from ~/ (global context), nothing is locked.\n const isGlobalDir = projectDir === GLOBAL_INSTALL_ROOT;\n const lockedSkillIds = isGlobalDir\n ? undefined\n : projectConfig?.config?.skills?.filter((s) => s.scope === \"global\").map((s) => s.id);\n const lockedAgentNames = isGlobalDir\n ? undefined\n : projectConfig?.config?.agents?.filter((a) => a.scope === \"global\").map((a) => a.name);\n\n useMatrixStore.getState().setMatrix(sourceResult.matrix);\n const { waitUntilExit } = render(\n <Wizard\n version={this.config.version}\n marketplaceLabel={marketplaceLabel}\n logo={ASCII_LOGO}\n initialStep=\"build\"\n initialDomains={projectConfig?.config?.domains}\n initialAgents={projectConfig?.config?.selectedAgents}\n installedSkillIds={currentSkillIds}\n installedSkillConfigs={projectConfig?.config?.skills}\n lockedSkillIds={lockedSkillIds}\n installedAgentConfigs={projectConfig?.config?.agents}\n lockedAgentNames={lockedAgentNames}\n projectDir={projectDir}\n startupMessages={startupMessages}\n onComplete={(result) => {\n wizardResult = result as WizardResultV2;\n }}\n onCancel={() => {\n this.log(\"\\nEdit cancelled\");\n }}\n />,\n );\n\n await waitUntilExit();\n\n const result = wizardResult as WizardResultV2 | null;\n\n if (!result || result.cancelled) {\n this.error(\"Cancelled\", { exit: EXIT_CODES.CANCELLED });\n }\n\n if (!result.validation.valid) {\n const errorMessages = result.validation.errors.map((e) => e.message).join(\"\\n \");\n this.error(`Selection has validation errors:\\n ${errorMessages}`, {\n exit: EXIT_CODES.ERROR,\n });\n }\n\n const newSkillIds = result.skills.map((s) => s.id);\n const addedSkills = newSkillIds.filter((id) => !currentSkillIds.includes(id));\n const removedSkills = currentSkillIds.filter((id) => !newSkillIds.includes(id));\n\n const sourceChanges = new Map<SkillId, { from: string; to: string }>();\n const scopeChanges = new Map<\n SkillId,\n { from: \"project\" | \"global\"; to: \"project\" | \"global\" }\n >();\n if (projectConfig?.config?.skills) {\n for (const newSkill of result.skills) {\n const oldSkill = projectConfig.config.skills.find((s) => s.id === newSkill.id);\n if (oldSkill && oldSkill.source !== newSkill.source) {\n sourceChanges.set(newSkill.id, {\n from: oldSkill.source,\n to: newSkill.source,\n });\n }\n if (oldSkill && oldSkill.scope !== newSkill.scope) {\n scopeChanges.set(newSkill.id, {\n from: oldSkill.scope,\n to: newSkill.scope,\n });\n }\n }\n }\n\n const agentScopeChanges = new Map<\n AgentName,\n { from: \"project\" | \"global\"; to: \"project\" | \"global\" }\n >();\n if (projectConfig?.config?.agents) {\n for (const newAgent of result.agentConfigs) {\n const oldAgent = projectConfig.config.agents.find((a) => a.name === newAgent.name);\n if (oldAgent && oldAgent.scope !== newAgent.scope) {\n agentScopeChanges.set(newAgent.name, {\n from: oldAgent.scope,\n to: newAgent.scope,\n });\n }\n }\n }\n\n const hasSourceChanges = sourceChanges.size > 0;\n const hasScopeChanges = scopeChanges.size > 0;\n const hasAgentScopeChanges = agentScopeChanges.size > 0;\n const hasSkillChanges = addedSkills.length > 0 || removedSkills.length > 0;\n\n if (!hasSkillChanges && !hasSourceChanges && !hasScopeChanges && !hasAgentScopeChanges) {\n this.log(INFO_MESSAGES.NO_CHANGES_MADE);\n this.log(\"Plugin unchanged\\n\");\n return;\n }\n\n this.log(\"\\nChanges:\");\n for (const skillId of addedSkills) {\n this.log(` + ${getSkill(skillId).displayName}`);\n }\n for (const skillId of removedSkills) {\n const skill = findSkill(skillId);\n this.log(` - ${skill?.displayName ?? skillId}`);\n }\n for (const [skillId, change] of sourceChanges) {\n const fromLabel = formatSourceDisplayName(change.from);\n const toLabel = formatSourceDisplayName(change.to);\n this.log(` ~ ${skillId} (${fromLabel} \\u2192 ${toLabel})`);\n }\n for (const [skillId, change] of scopeChanges) {\n const fromLabel = change.from === \"global\" ? \"[G]\" : \"[P]\";\n const toLabel = change.to === \"global\" ? \"[G]\" : \"[P]\";\n this.log(` ~ ${skillId} (${fromLabel} \\u2192 ${toLabel})`);\n }\n for (const [agentName, change] of agentScopeChanges) {\n const fromLabel = change.from === \"global\" ? \"[G]\" : \"[P]\";\n const toLabel = change.to === \"global\" ? \"[G]\" : \"[P]\";\n this.log(` ~ ${agentName} (${fromLabel} \\u2192 ${toLabel})`);\n }\n this.log(\"\");\n\n // Handle per-skill mode migrations (local <-> plugin)\n const oldSkills = projectConfig?.config?.skills ?? [];\n const migrationPlan = detectMigrations(oldSkills, result.skills);\n const hasMigrations = migrationPlan.toLocal.length > 0 || migrationPlan.toPlugin.length > 0;\n\n if (hasMigrations) {\n if (migrationPlan.toLocal.length > 0) {\n this.log(`Switching ${migrationPlan.toLocal.length} skill(s) to local:`);\n for (const migration of migrationPlan.toLocal) {\n this.log(` - ${migration.id}`);\n }\n }\n if (migrationPlan.toPlugin.length > 0) {\n this.log(`Switching ${migrationPlan.toPlugin.length} skill(s) to plugin:`);\n for (const migration of migrationPlan.toPlugin) {\n this.log(` - ${migration.id}`);\n }\n }\n\n const migrationResult = await executeMigration(migrationPlan, projectDir, sourceResult);\n\n for (const warning of migrationResult.warnings) {\n this.warn(warning);\n }\n }\n\n const migratedSkillIds = new Set([\n ...migrationPlan.toLocal.map((m) => m.id),\n ...migrationPlan.toPlugin.map((m) => m.id),\n ]);\n\n // Handle scope migrations (P→G or G→P) for local-mode skills\n for (const [skillId, change] of scopeChanges) {\n const skillConfig = result.skills.find((s) => s.id === skillId);\n if (skillConfig?.source === \"local\") {\n await migrateLocalSkillScope(skillId, change.from, projectDir);\n } else if (sourceResult.marketplace && skillConfig) {\n // Plugin-mode scope change: uninstall from old scope, install to new scope\n const oldPluginScope = change.from === \"global\" ? \"user\" : \"project\";\n const newPluginScope = change.to === \"global\" ? \"user\" : \"project\";\n try {\n await claudePluginUninstall(skillId, oldPluginScope, projectDir);\n const pluginRef = `${skillId}@${sourceResult.marketplace}`;\n await claudePluginInstall(pluginRef, newPluginScope, projectDir);\n } catch (error) {\n this.warn(`Failed to migrate plugin scope for ${skillId}: ${getErrorMessage(error)}`);\n }\n }\n }\n\n // Handle remaining non-migration source changes (e.g., marketplace A -> marketplace B)\n for (const [skillId, change] of sourceChanges) {\n // Skip skills already handled by mode migration\n if (migratedSkillIds.has(skillId)) {\n continue;\n }\n if (change.from === \"local\") {\n await deleteLocalSkill(projectDir, skillId);\n }\n }\n\n if (sourceResult.marketplace) {\n for (const skillId of addedSkills) {\n // Find the skill config to get its scope\n const skillConfig = result.skills.find((s) => s.id === skillId);\n if (!skillConfig || skillConfig.source === \"local\") continue;\n\n const pluginRef = `${skillId}@${sourceResult.marketplace}`;\n const pluginScope = skillConfig.scope === \"global\" ? \"user\" : \"project\";\n this.log(`Installing plugin: ${pluginRef}...`);\n try {\n await claudePluginInstall(pluginRef, pluginScope, projectDir);\n } catch (error) {\n this.warn(`Failed to install plugin ${pluginRef}: ${getErrorMessage(error)}`);\n }\n }\n for (const skillId of removedSkills) {\n // For removed skills, use old config to determine scope\n const oldSkill = projectConfig?.config?.skills?.find((s) => s.id === skillId);\n const pluginScope = oldSkill?.scope === \"global\" ? \"user\" : \"project\";\n this.log(`Uninstalling plugin: ${skillId}...`);\n try {\n await claudePluginUninstall(skillId, pluginScope, projectDir);\n } catch (error) {\n this.warn(`Failed to uninstall plugin ${skillId}: ${getErrorMessage(error)}`);\n }\n }\n }\n\n // Load agent definitions first — needed for both config-types.ts and recompilation\n let sourcePath: string;\n this.log(\n flags[\"agent-source\"]\n ? STATUS_MESSAGES.FETCHING_AGENT_PARTIALS\n : STATUS_MESSAGES.LOADING_AGENT_PARTIALS,\n );\n try {\n const agentDefs = await getAgentDefinitions(flags[\"agent-source\"], {\n forceRefresh: flags.refresh,\n });\n sourcePath = agentDefs.sourcePath;\n this.log(flags[\"agent-source\"] ? \"✓ Agent partials fetched\\n\" : \"✓ Agent partials loaded\\n\");\n } catch (error) {\n this.handleError(error);\n }\n\n // Persist wizard result to config.ts and config-types.ts (split by scope when in project context)\n try {\n const mergeResult = await buildAndMergeConfig(result, sourceResult, projectDir, flags.source);\n\n // Load full agent definitions for config-types.ts generation\n const cliAgents = await loadAllAgents(PROJECT_ROOT);\n const sourceAgents = await loadAllAgents(sourcePath);\n // Boundary cast: loadAllAgents returns Record<string, AgentDefinition>, agent dirs are AgentName by convention\n const agents = { ...cliAgents, ...sourceAgents } as Record<AgentName, AgentDefinition>;\n\n await writeScopedConfigs(\n mergeResult.config,\n sourceResult.matrix,\n agents,\n projectDir,\n installation.configPath,\n );\n } catch (error) {\n this.warn(`Could not update config: ${getErrorMessage(error)}`);\n }\n\n this.log(STATUS_MESSAGES.RECOMPILING_AGENTS);\n try {\n const recompileSkills = await discoverAllPluginSkills(projectDir);\n\n const recompileResult = await recompileAgents({\n pluginDir: projectDir,\n sourcePath,\n skills: recompileSkills,\n projectDir,\n outputDir: installation.agentsDir,\n installMode: deriveInstallMode(result.skills),\n });\n\n if (recompileResult.failed.length > 0) {\n this.log(\n `✓ Recompiled ${recompileResult.compiled.length} agents (${recompileResult.failed.length} failed)\\n`,\n );\n for (const warning of recompileResult.warnings) {\n this.warn(warning);\n }\n } else if (recompileResult.compiled.length > 0) {\n this.log(`✓ Recompiled ${recompileResult.compiled.length} agents\\n`);\n } else {\n this.log(\"✓ No agents to recompile\\n\");\n }\n } catch (error) {\n this.warn(`Agent recompilation failed: ${getErrorMessage(error)}`);\n this.log(`You can manually recompile with '${CLI_BIN_NAME} compile'.\\n`);\n }\n\n const summaryParts = [`${addedSkills.length} added`, `${removedSkills.length} removed`];\n if (hasSourceChanges) {\n summaryParts.push(`${sourceChanges.size} source${sourceChanges.size > 1 ? \"s\" : \"\"} changed`);\n }\n if (hasScopeChanges || hasAgentScopeChanges) {\n const totalScopeChanges = scopeChanges.size + agentScopeChanges.size;\n summaryParts.push(`${totalScopeChanges} scope${totalScopeChanges > 1 ? \"s\" : \"\"} changed`);\n }\n this.log(`\\n\\u2713 Plugin updated! (${summaryParts.join(\", \")})\\n`);\n }\n}\n"],"mappings":";;;;;;;;;;;;;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AM,kBAAkB,MAAM,wBAAwB,UAAU;AAEhE,YAAM,kBAAkB,MAAM,gBAAgB;AAAA,QAC5C,WAAW;AAAA,QACX;AAAA,QACA,QAAQ;AAAA,QACR;AAAA,QACA,WAAW,aAAa;AAAA,QACxB,aAAa,kBAAkB,OAAO,MAAM;AAAA,MAC9C,CAAC;AAED,UAAI,gBAAgB,OAAO,SAAS,GAAG;AACrC,aAAK;AAAA,UACH,qBAAgB,gBAAgB,SAAS,MAAM,YAAY,gBAAgB,OAAO,MAAM;AAAA;AAAA,QAC1F;AACA,mBAAW,WAAW,gBAAgB,UAAU;AAC9C,eAAK,KAAK,OAAO;AAAA,QACnB;AAAA,MACF,WAAW,gBAAgB,SAAS,SAAS,GAAG;AAC9C,aAAK,IAAI,qBAAgB,gBAAgB,SAAS,MAAM;AAAA,CAAW;AAAA,MACrE,OAAO;AACL,aAAK,IAAI,iCAA4B;AAAA,MACvC;AAAA,IACF,SAAS,OAAO;AACd,WAAK,KAAK,+BAA+B,gBAAgB,KAAK,CAAC,EAAE;AACjE,WAAK,IAAI,oCAAoC,YAAY;AAAA,CAAc;AAAA,IACzE;AAEA,UAAM,eAAe,CAAC,GAAG,YAAY,MAAM,UAAU,GAAG,cAAc,MAAM,UAAU;AACtF,QAAI,kBAAkB;AACpB,mBAAa,KAAK,GAAG,cAAc,IAAI,UAAU,cAAc,OAAO,IAAI,MAAM,EAAE,UAAU;AAAA,IAC9F;AACA,QAAI,mBAAmB,sBAAsB;AAC3C,YAAM,oBAAoB,aAAa,OAAO,kBAAkB;AAChE,mBAAa,KAAK,GAAG,iBAAiB,SAAS,oBAAoB,IAAI,MAAM,EAAE,UAAU;AAAA,IAC3F;AACA,SAAK,IAAI;AAAA,0BAA6B,aAAa,KAAK,IAAI,CAAC;AAAA,CAAK;AAAA,EACpE;AACF;","names":["result"]}
|
|
1
|
+
{"version":3,"sources":["../../src/cli/commands/edit.tsx"],"sourcesContent":["import os from \"os\";\n\nimport { Flags } from \"@oclif/core\";\nimport { render } from \"ink\";\n\nimport { BaseCommand } from \"../base-command.js\";\nimport { Wizard, type WizardResultV2 } from \"../components/wizard/wizard.js\";\nimport {\n ASCII_LOGO,\n CLI_BIN_NAME,\n GLOBAL_INSTALL_ROOT,\n PROJECT_ROOT,\n SOURCE_DISPLAY_NAMES,\n} from \"../consts.js\";\nimport { getAgentDefinitions, recompileAgents } from \"../lib/agents/index.js\";\nimport { loadProjectConfig } from \"../lib/configuration/index.js\";\nimport { EXIT_CODES } from \"../lib/exit-codes.js\";\nimport {\n detectInstallation,\n buildAndMergeConfig,\n writeScopedConfigs,\n detectMigrations,\n executeMigration,\n deriveInstallMode,\n} from \"../lib/installation/index.js\";\nimport {\n getMarketplaceLabel,\n loadAllAgents,\n loadSkillsMatrixFromSource,\n} from \"../lib/loading/index.js\";\nimport { findSkill, getMatrix, getSkill, useMatrixStore } from \"../stores/matrix-store\";\nimport { discoverAllPluginSkills } from \"../lib/plugins/index.js\";\nimport { deleteLocalSkill, migrateLocalSkillScope } from \"../lib/skills/index.js\";\nimport type { AgentDefinition, AgentName, SkillId } from \"../types/index.js\";\nimport { getErrorMessage } from \"../utils/errors.js\";\nimport { claudePluginInstall, claudePluginUninstall } from \"../utils/exec.js\";\nimport {\n enableBuffering,\n drainBuffer,\n disableBuffering,\n pushBufferMessage,\n type StartupMessage,\n} from \"../utils/logger.js\";\nimport { ERROR_MESSAGES, INFO_MESSAGES, STATUS_MESSAGES } from \"../utils/messages.js\";\n\nfunction formatSourceDisplayName(sourceName: string): string {\n return SOURCE_DISPLAY_NAMES[sourceName] ?? sourceName;\n}\n\nexport default class Edit extends BaseCommand {\n static summary = \"Edit skills in the plugin\";\n static description = \"Modify the currently installed skills via interactive wizard\";\n\n static examples = [\n {\n description: \"Open the edit wizard\",\n command: \"<%= config.bin %> <%= command.id %>\",\n },\n {\n description: \"Edit with a custom source\",\n command: \"<%= config.bin %> <%= command.id %> --source github:org/marketplace\",\n },\n {\n description: \"Force refresh skills from remote\",\n command: \"<%= config.bin %> <%= command.id %> --refresh\",\n },\n ];\n\n static flags = {\n ...BaseCommand.baseFlags,\n refresh: Flags.boolean({\n description: \"Force refresh from remote sources\",\n default: false,\n }),\n \"agent-source\": Flags.string({\n description: \"Remote agent partials source (default: local CLI)\",\n }),\n };\n\n async run(): Promise<void> {\n const { flags } = await this.parse(Edit);\n\n const installation = await detectInstallation();\n\n if (!installation) {\n this.error(ERROR_MESSAGES.NO_INSTALLATION, {\n exit: EXIT_CODES.ERROR,\n });\n }\n\n const projectDir = installation.projectDir;\n\n enableBuffering();\n\n if (installation.projectDir === os.homedir()) {\n pushBufferMessage(\n \"info\",\n \"No project installation found. Using global installation from ~/.claude-src/\",\n );\n }\n let sourceResult;\n let startupMessages: StartupMessage[] = [];\n try {\n sourceResult = await loadSkillsMatrixFromSource({\n sourceFlag: flags.source,\n projectDir,\n forceRefresh: flags.refresh,\n });\n\n const sourceInfo = sourceResult.isLocal ? \"local\" : sourceResult.sourceConfig.sourceOrigin;\n pushBufferMessage(\n \"info\",\n `Loaded ${Object.keys(getMatrix().skills).length} skills (${sourceInfo})`,\n );\n } catch (error) {\n disableBuffering();\n this.handleError(error);\n }\n\n const projectConfig = await loadProjectConfig(projectDir);\n\n let currentSkillIds: SkillId[];\n try {\n const discoveredSkills = await discoverAllPluginSkills(projectDir);\n // Boundary cast: discoverAllPluginSkills keys are skill IDs from frontmatter\n currentSkillIds = Object.keys(discoveredSkills) as SkillId[];\n\n // In local mode, plugin discovery returns empty — fall back to project config skills\n if (currentSkillIds.length === 0 && projectConfig?.config?.skills?.length) {\n currentSkillIds = projectConfig.config.skills.map((s) => s.id);\n pushBufferMessage(\"info\", `Found ${currentSkillIds.length} skills from project config`);\n } else {\n pushBufferMessage(\"info\", `Current plugin has ${currentSkillIds.length} skills`);\n }\n } catch (error) {\n disableBuffering();\n this.handleError(error);\n }\n\n startupMessages = drainBuffer();\n disableBuffering();\n\n let wizardResult: WizardResultV2 | null = null;\n const marketplaceLabel = getMarketplaceLabel(sourceResult);\n\n // D9: In project context, existing global items are read-only (locked).\n // When editing from ~/ (global context), nothing is locked.\n const isGlobalDir = projectDir === GLOBAL_INSTALL_ROOT;\n const lockedSkillIds = isGlobalDir\n ? undefined\n : projectConfig?.config?.skills?.filter((s) => s.scope === \"global\").map((s) => s.id);\n const lockedAgentNames = isGlobalDir\n ? undefined\n : projectConfig?.config?.agents?.filter((a) => a.scope === \"global\").map((a) => a.name);\n\n useMatrixStore.getState().setMatrix(sourceResult.matrix);\n const { waitUntilExit } = render(\n <Wizard\n version={this.config.version}\n marketplaceLabel={marketplaceLabel}\n logo={ASCII_LOGO}\n initialStep=\"build\"\n initialDomains={projectConfig?.config?.domains}\n initialAgents={projectConfig?.config?.selectedAgents}\n installedSkillIds={currentSkillIds}\n installedSkillConfigs={projectConfig?.config?.skills}\n lockedSkillIds={lockedSkillIds}\n installedAgentConfigs={projectConfig?.config?.agents}\n lockedAgentNames={lockedAgentNames}\n projectDir={projectDir}\n startupMessages={startupMessages}\n onComplete={(result) => {\n wizardResult = result as WizardResultV2;\n }}\n onCancel={() => {\n this.log(\"\\nEdit cancelled\");\n }}\n />,\n );\n\n await waitUntilExit();\n\n const result = wizardResult as WizardResultV2 | null;\n\n if (!result || result.cancelled) {\n this.error(\"Cancelled\", { exit: EXIT_CODES.CANCELLED });\n }\n\n if (!result.validation.valid) {\n const errorMessages = result.validation.errors.map((e) => e.message).join(\"\\n \");\n this.error(`Selection has validation errors:\\n ${errorMessages}`, {\n exit: EXIT_CODES.ERROR,\n });\n }\n\n const newSkillIds = result.skills.map((s) => s.id);\n const addedSkills = newSkillIds.filter((id) => !currentSkillIds.includes(id));\n const removedSkills = currentSkillIds.filter((id) => !newSkillIds.includes(id));\n\n const sourceChanges = new Map<SkillId, { from: string; to: string }>();\n const scopeChanges = new Map<\n SkillId,\n { from: \"project\" | \"global\"; to: \"project\" | \"global\" }\n >();\n if (projectConfig?.config?.skills) {\n for (const newSkill of result.skills) {\n const oldSkill = projectConfig.config.skills.find((s) => s.id === newSkill.id);\n if (oldSkill && oldSkill.source !== newSkill.source) {\n sourceChanges.set(newSkill.id, {\n from: oldSkill.source,\n to: newSkill.source,\n });\n }\n if (oldSkill && oldSkill.scope !== newSkill.scope) {\n scopeChanges.set(newSkill.id, {\n from: oldSkill.scope,\n to: newSkill.scope,\n });\n }\n }\n }\n\n const agentScopeChanges = new Map<\n AgentName,\n { from: \"project\" | \"global\"; to: \"project\" | \"global\" }\n >();\n if (projectConfig?.config?.agents) {\n for (const newAgent of result.agentConfigs) {\n const oldAgent = projectConfig.config.agents.find((a) => a.name === newAgent.name);\n if (oldAgent && oldAgent.scope !== newAgent.scope) {\n agentScopeChanges.set(newAgent.name, {\n from: oldAgent.scope,\n to: newAgent.scope,\n });\n }\n }\n }\n\n const hasSourceChanges = sourceChanges.size > 0;\n const hasScopeChanges = scopeChanges.size > 0;\n const hasAgentScopeChanges = agentScopeChanges.size > 0;\n const hasSkillChanges = addedSkills.length > 0 || removedSkills.length > 0;\n\n if (!hasSkillChanges && !hasSourceChanges && !hasScopeChanges && !hasAgentScopeChanges) {\n this.log(INFO_MESSAGES.NO_CHANGES_MADE);\n this.log(\"Plugin unchanged\\n\");\n return;\n }\n\n this.log(\"\\nChanges:\");\n for (const skillId of addedSkills) {\n this.log(` + ${getSkill(skillId).displayName}`);\n }\n for (const skillId of removedSkills) {\n const skill = findSkill(skillId);\n this.log(` - ${skill?.displayName ?? skillId}`);\n }\n for (const [skillId, change] of sourceChanges) {\n const fromLabel = formatSourceDisplayName(change.from);\n const toLabel = formatSourceDisplayName(change.to);\n this.log(` ~ ${skillId} (${fromLabel} \\u2192 ${toLabel})`);\n }\n for (const [skillId, change] of scopeChanges) {\n const fromLabel = change.from === \"global\" ? \"[G]\" : \"[P]\";\n const toLabel = change.to === \"global\" ? \"[G]\" : \"[P]\";\n this.log(` ~ ${skillId} (${fromLabel} \\u2192 ${toLabel})`);\n }\n for (const [agentName, change] of agentScopeChanges) {\n const fromLabel = change.from === \"global\" ? \"[G]\" : \"[P]\";\n const toLabel = change.to === \"global\" ? \"[G]\" : \"[P]\";\n this.log(` ~ ${agentName} (${fromLabel} \\u2192 ${toLabel})`);\n }\n this.log(\"\");\n\n // Handle per-skill mode migrations (local <-> plugin)\n const oldSkills = projectConfig?.config?.skills ?? [];\n const migrationPlan = detectMigrations(oldSkills, result.skills);\n const hasMigrations = migrationPlan.toLocal.length > 0 || migrationPlan.toPlugin.length > 0;\n\n if (hasMigrations) {\n if (migrationPlan.toLocal.length > 0) {\n this.log(`Switching ${migrationPlan.toLocal.length} skill(s) to local:`);\n for (const migration of migrationPlan.toLocal) {\n this.log(` - ${migration.id}`);\n }\n }\n if (migrationPlan.toPlugin.length > 0) {\n this.log(`Switching ${migrationPlan.toPlugin.length} skill(s) to plugin:`);\n for (const migration of migrationPlan.toPlugin) {\n this.log(` - ${migration.id}`);\n }\n }\n\n const migrationResult = await executeMigration(migrationPlan, projectDir, sourceResult);\n\n for (const warning of migrationResult.warnings) {\n this.warn(warning);\n }\n }\n\n const migratedSkillIds = new Set([\n ...migrationPlan.toLocal.map((m) => m.id),\n ...migrationPlan.toPlugin.map((m) => m.id),\n ]);\n\n // Handle scope migrations (P→G or G→P) for local-mode skills\n for (const [skillId, change] of scopeChanges) {\n const skillConfig = result.skills.find((s) => s.id === skillId);\n if (skillConfig?.source === \"local\") {\n await migrateLocalSkillScope(skillId, change.from, projectDir);\n } else if (sourceResult.marketplace && skillConfig) {\n // Plugin-mode scope change: uninstall from old scope, install to new scope\n const oldPluginScope = change.from === \"global\" ? \"user\" : \"project\";\n const newPluginScope = change.to === \"global\" ? \"user\" : \"project\";\n try {\n await claudePluginUninstall(skillId, oldPluginScope, projectDir);\n const pluginRef = `${skillId}@${sourceResult.marketplace}`;\n await claudePluginInstall(pluginRef, newPluginScope, projectDir);\n } catch (error) {\n this.warn(`Failed to migrate plugin scope for ${skillId}: ${getErrorMessage(error)}`);\n }\n }\n }\n\n // Handle remaining non-migration source changes (e.g., marketplace A -> marketplace B)\n for (const [skillId, change] of sourceChanges) {\n // Skip skills already handled by mode migration\n if (migratedSkillIds.has(skillId)) {\n continue;\n }\n if (change.from === \"local\") {\n await deleteLocalSkill(projectDir, skillId);\n }\n }\n\n if (sourceResult.marketplace) {\n for (const skillId of addedSkills) {\n // Find the skill config to get its scope\n const skillConfig = result.skills.find((s) => s.id === skillId);\n if (!skillConfig || skillConfig.source === \"local\") continue;\n\n const pluginRef = `${skillId}@${sourceResult.marketplace}`;\n const pluginScope = skillConfig.scope === \"global\" ? \"user\" : \"project\";\n this.log(`Installing plugin: ${pluginRef}...`);\n try {\n await claudePluginInstall(pluginRef, pluginScope, projectDir);\n } catch (error) {\n this.warn(`Failed to install plugin ${pluginRef}: ${getErrorMessage(error)}`);\n }\n }\n for (const skillId of removedSkills) {\n // For removed skills, use old config to determine scope\n const oldSkill = projectConfig?.config?.skills?.find((s) => s.id === skillId);\n const pluginScope = oldSkill?.scope === \"global\" ? \"user\" : \"project\";\n this.log(`Uninstalling plugin: ${skillId}...`);\n try {\n await claudePluginUninstall(skillId, pluginScope, projectDir);\n } catch (error) {\n this.warn(`Failed to uninstall plugin ${skillId}: ${getErrorMessage(error)}`);\n }\n }\n }\n\n // Load agent definitions first — needed for both config-types.ts and recompilation\n let sourcePath: string;\n this.log(\n flags[\"agent-source\"]\n ? STATUS_MESSAGES.FETCHING_AGENT_PARTIALS\n : STATUS_MESSAGES.LOADING_AGENT_PARTIALS,\n );\n try {\n const agentDefs = await getAgentDefinitions(flags[\"agent-source\"], {\n forceRefresh: flags.refresh,\n });\n sourcePath = agentDefs.sourcePath;\n this.log(flags[\"agent-source\"] ? \"✓ Agent partials fetched\\n\" : \"✓ Agent partials loaded\\n\");\n } catch (error) {\n this.handleError(error);\n }\n\n // Persist wizard result to config.ts and config-types.ts (split by scope when in project context)\n try {\n const mergeResult = await buildAndMergeConfig(result, sourceResult, projectDir, flags.source);\n\n // Load full agent definitions for config-types.ts generation\n const cliAgents = await loadAllAgents(PROJECT_ROOT);\n const sourceAgents = await loadAllAgents(sourcePath);\n // Boundary cast: loadAllAgents returns Record<string, AgentDefinition>, agent dirs are AgentName by convention\n const agents = { ...cliAgents, ...sourceAgents } as Record<AgentName, AgentDefinition>;\n\n await writeScopedConfigs(\n mergeResult.config,\n sourceResult.matrix,\n agents,\n projectDir,\n installation.configPath,\n );\n } catch (error) {\n this.warn(`Could not update config: ${getErrorMessage(error)}`);\n }\n\n this.log(STATUS_MESSAGES.RECOMPILING_AGENTS);\n try {\n const recompileSkills = await discoverAllPluginSkills(projectDir);\n\n const recompileResult = await recompileAgents({\n pluginDir: projectDir,\n sourcePath,\n skills: recompileSkills,\n projectDir,\n outputDir: installation.agentsDir,\n installMode: deriveInstallMode(result.skills),\n });\n\n if (recompileResult.failed.length > 0) {\n this.log(\n `✓ Recompiled ${recompileResult.compiled.length} agents (${recompileResult.failed.length} failed)\\n`,\n );\n for (const warning of recompileResult.warnings) {\n this.warn(warning);\n }\n } else if (recompileResult.compiled.length > 0) {\n this.log(`✓ Recompiled ${recompileResult.compiled.length} agents\\n`);\n } else {\n this.log(\"✓ No agents to recompile\\n\");\n }\n } catch (error) {\n this.warn(`Agent recompilation failed: ${getErrorMessage(error)}`);\n this.log(`You can manually recompile with '${CLI_BIN_NAME} compile'.\\n`);\n }\n\n const summaryParts = [`${addedSkills.length} added`, `${removedSkills.length} removed`];\n if (hasSourceChanges) {\n summaryParts.push(`${sourceChanges.size} source${sourceChanges.size > 1 ? \"s\" : \"\"} changed`);\n }\n if (hasScopeChanges || hasAgentScopeChanges) {\n const totalScopeChanges = scopeChanges.size + agentScopeChanges.size;\n summaryParts.push(`${totalScopeChanges} scope${totalScopeChanges > 1 ? \"s\" : \"\"} changed`);\n }\n this.log(`\\n\\u2713 Plugin updated! (${summaryParts.join(\", \")})\\n`);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AgB;AAAA,QAC5C,WAAW;AAAA,QACX;AAAA,QACA,QAAQ;AAAA,QACR;AAAA,QACA,WAAW,aAAa;AAAA,QACxB,aAAa,kBAAkB,OAAO,MAAM;AAAA,MAC9C,CAAC;AAED,UAAI,gBAAgB,OAAO,SAAS,GAAG;AACrC,aAAK;AAAA,UACH,qBAAgB,gBAAgB,SAAS,MAAM,YAAY,gBAAgB,OAAO,MAAM;AAAA;AAAA,QAC1F;AACA,mBAAW,WAAW,gBAAgB,UAAU;AAC9C,eAAK,KAAK,OAAO;AAAA,QACnB;AAAA,MACF,WAAW,gBAAgB,SAAS,SAAS,GAAG;AAC9C,aAAK,IAAI,qBAAgB,gBAAgB,SAAS,MAAM;AAAA,CAAW;AAAA,MACrE,OAAO;AACL,aAAK,IAAI,iCAA4B;AAAA,MACvC;AAAA,IACF,SAAS,OAAO;AACd,WAAK,KAAK,+BAA+B,gBAAgB,KAAK,CAAC,EAAE;AACjE,WAAK,IAAI,oCAAoC,YAAY;AAAA,CAAc;AAAA,IACzE;AAEA,UAAM,eAAe,CAAC,GAAG,YAAY,MAAM,UAAU,GAAG,cAAc,MAAM,UAAU;AACtF,QAAI,kBAAkB;AACpB,mBAAa,KAAK,GAAG,cAAc,IAAI,UAAU,cAAc,OAAO,IAAI,MAAM,EAAE,UAAU;AAAA,IAC9F;AACA,QAAI,mBAAmB,sBAAsB;AAC3C,YAAM,oBAAoB,aAAa,OAAO,kBAAkB;AAChE,mBAAa,KAAK,GAAG,iBAAiB,SAAS,oBAAoB,IAAI,MAAM,EAAE,UAAU;AAAA,IAC3F;AACA,SAAK,IAAI;AAAA,0BAA6B,aAAa,KAAK,IAAI,CAAC;AAAA,CAAK;AAAA,EACpE;AACF;","names":["result"]}
|
package/dist/commands/eject.js
CHANGED
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
loadSkillsMatrixFromSource,
|
|
6
6
|
resolveSource,
|
|
7
7
|
saveSourceToProjectConfig
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-HMJGSAKV.js";
|
|
9
|
+
import "../chunk-F43WGOGN.js";
|
|
10
10
|
import {
|
|
11
11
|
typedKeys
|
|
12
12
|
} from "../chunk-T4EXUIBY.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
BaseCommand,
|
|
19
19
|
EXIT_CODES
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-MGQVO357.js";
|
|
21
21
|
import {
|
|
22
22
|
copy,
|
|
23
23
|
directoryExists,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
fileExists,
|
|
26
26
|
listDirectories,
|
|
27
27
|
writeFile
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-ZEJIEC2A.js";
|
|
29
29
|
import {
|
|
30
30
|
CLAUDE_SRC_DIR,
|
|
31
31
|
DEFAULT_BRANDING,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
PROJECT_ROOT,
|
|
35
35
|
STANDARD_FILES
|
|
36
36
|
} from "../chunk-EGMQ3SXN.js";
|
|
37
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-NKKYTCBH.js";
|
|
38
38
|
import {
|
|
39
39
|
init_esm_shims
|
|
40
40
|
} from "../chunk-DHET7RCE.js";
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
computeFileHash,
|
|
9
9
|
fetchFromSource,
|
|
10
10
|
getCurrentDate
|
|
11
|
-
} from "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
11
|
+
} from "../../chunk-HMJGSAKV.js";
|
|
12
|
+
import "../../chunk-F43WGOGN.js";
|
|
13
13
|
import "../../chunk-T4EXUIBY.js";
|
|
14
14
|
import "../../chunk-BKL3DF2Q.js";
|
|
15
15
|
import {
|
|
16
16
|
BaseCommand,
|
|
17
17
|
EXIT_CODES
|
|
18
|
-
} from "../../chunk-
|
|
18
|
+
} from "../../chunk-MGQVO357.js";
|
|
19
19
|
import {
|
|
20
20
|
copy,
|
|
21
21
|
directoryExists,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
listDirectories,
|
|
27
27
|
readFile,
|
|
28
28
|
writeFile
|
|
29
|
-
} from "../../chunk-
|
|
29
|
+
} from "../../chunk-ZEJIEC2A.js";
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_SKILLS_SUBDIR,
|
|
32
32
|
GITHUB_SOURCE,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
STANDARD_FILES,
|
|
35
35
|
YAML_FORMATTING
|
|
36
36
|
} from "../../chunk-EGMQ3SXN.js";
|
|
37
|
-
import "../../chunk-
|
|
37
|
+
import "../../chunk-NKKYTCBH.js";
|
|
38
38
|
import {
|
|
39
39
|
init_esm_shims
|
|
40
40
|
} from "../../chunk-DHET7RCE.js";
|
package/dist/commands/info.js
CHANGED
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
discoverLocalSkills,
|
|
7
7
|
loadSkillsMatrixFromSource
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-HMJGSAKV.js";
|
|
9
|
+
import "../chunk-F43WGOGN.js";
|
|
10
10
|
import "../chunk-T4EXUIBY.js";
|
|
11
11
|
import {
|
|
12
12
|
findSkill,
|
|
@@ -15,16 +15,16 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
BaseCommand,
|
|
17
17
|
EXIT_CODES
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-MGQVO357.js";
|
|
19
19
|
import {
|
|
20
20
|
fileExists,
|
|
21
21
|
readFile
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-ZEJIEC2A.js";
|
|
23
23
|
import {
|
|
24
24
|
CLI_BIN_NAME,
|
|
25
25
|
STANDARD_FILES
|
|
26
26
|
} from "../chunk-EGMQ3SXN.js";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-NKKYTCBH.js";
|
|
28
28
|
import {
|
|
29
29
|
init_esm_shims
|
|
30
30
|
} from "../chunk-DHET7RCE.js";
|
package/dist/commands/init.js
CHANGED
|
@@ -4,46 +4,47 @@ import {
|
|
|
4
4
|
formatDashboardText,
|
|
5
5
|
getDashboardData,
|
|
6
6
|
showDashboard
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-AHZ34QVK.js";
|
|
8
|
+
import "../chunk-UQTG4ZBA.js";
|
|
9
|
+
import "../chunk-G3LNIYZG.js";
|
|
10
10
|
import "../chunk-SXGBPQY6.js";
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-LM5YQUBR.js";
|
|
12
|
+
import "../chunk-OODTDGEM.js";
|
|
13
13
|
import "../chunk-HGTC76BX.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-RJOLQ7EK.js";
|
|
15
|
+
import "../chunk-6YMW4HMX.js";
|
|
16
|
+
import "../chunk-7SOPVGDV.js";
|
|
17
|
+
import "../chunk-ZFRALAK5.js";
|
|
18
|
+
import "../chunk-LBTW5HSY.js";
|
|
19
|
+
import "../chunk-3SLO2QPW.js";
|
|
18
20
|
import "../chunk-K77I4XGL.js";
|
|
19
21
|
import "../chunk-52THXN5G.js";
|
|
22
|
+
import "../chunk-V2XIWRHP.js";
|
|
23
|
+
import "../chunk-ZYUASJUN.js";
|
|
20
24
|
import "../chunk-KYULKBFC.js";
|
|
25
|
+
import "../chunk-2MHSOPIU.js";
|
|
21
26
|
import "../chunk-MWGDG4QN.js";
|
|
22
|
-
import "../chunk-
|
|
23
|
-
import "../chunk-7SOPVGDV.js";
|
|
24
|
-
import "../chunk-6IK2TCK7.js";
|
|
27
|
+
import "../chunk-WF5PMBIR.js";
|
|
25
28
|
import "../chunk-KUV24B5M.js";
|
|
26
29
|
import "../chunk-CKPJTMNC.js";
|
|
27
30
|
import "../chunk-GG4BSB6S.js";
|
|
28
|
-
import "../chunk-KMDBOO3E.js";
|
|
29
|
-
import "../chunk-ZYUASJUN.js";
|
|
30
31
|
import "../chunk-OV5UJWS5.js";
|
|
31
32
|
import "../chunk-XMLCXRTS.js";
|
|
32
33
|
import "../chunk-AQYAVLZK.js";
|
|
33
34
|
import "../chunk-AUNBGZS4.js";
|
|
34
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-URAXGHF2.js";
|
|
35
36
|
import "../chunk-T5DJCIUP.js";
|
|
36
37
|
import "../chunk-U3IGFMCY.js";
|
|
37
38
|
import "../chunk-6VIOO74O.js";
|
|
38
39
|
import "../chunk-CXRVM7BA.js";
|
|
39
|
-
import "../chunk-
|
|
40
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-HMJGSAKV.js";
|
|
41
|
+
import "../chunk-F43WGOGN.js";
|
|
41
42
|
import "../chunk-T4EXUIBY.js";
|
|
42
43
|
import "../chunk-BKL3DF2Q.js";
|
|
43
|
-
import "../chunk-
|
|
44
|
-
import "../chunk-
|
|
44
|
+
import "../chunk-MGQVO357.js";
|
|
45
|
+
import "../chunk-ZEJIEC2A.js";
|
|
45
46
|
import "../chunk-EGMQ3SXN.js";
|
|
46
|
-
import "../chunk-
|
|
47
|
+
import "../chunk-NKKYTCBH.js";
|
|
47
48
|
import "../chunk-DHET7RCE.js";
|
|
48
49
|
export {
|
|
49
50
|
Init as default,
|
package/dist/commands/list.js
CHANGED
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
import {
|
|
3
3
|
formatInstallationDisplay,
|
|
4
4
|
getInstallationInfo
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-HMJGSAKV.js";
|
|
6
|
+
import "../chunk-F43WGOGN.js";
|
|
7
7
|
import "../chunk-T4EXUIBY.js";
|
|
8
8
|
import "../chunk-BKL3DF2Q.js";
|
|
9
9
|
import {
|
|
10
10
|
BaseCommand
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
} from "../chunk-MGQVO357.js";
|
|
12
|
+
import "../chunk-ZEJIEC2A.js";
|
|
13
13
|
import {
|
|
14
14
|
CLI_BIN_NAME,
|
|
15
15
|
DEFAULT_BRANDING
|
|
16
16
|
} from "../chunk-EGMQ3SXN.js";
|
|
17
|
-
import "../chunk-
|
|
17
|
+
import "../chunk-NKKYTCBH.js";
|
|
18
18
|
import {
|
|
19
19
|
init_esm_shims
|
|
20
20
|
} from "../chunk-DHET7RCE.js";
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
getAgentDefinitions
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-FKRYJOPC.js";
|
|
5
5
|
import {
|
|
6
6
|
isClaudeCLIAvailable,
|
|
7
7
|
loadConfigTypesDataInBackground,
|
|
8
8
|
regenerateConfigTypes,
|
|
9
9
|
resolveSource
|
|
10
|
-
} from "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
10
|
+
} from "../../chunk-HMJGSAKV.js";
|
|
11
|
+
import "../../chunk-F43WGOGN.js";
|
|
12
12
|
import "../../chunk-T4EXUIBY.js";
|
|
13
13
|
import "../../chunk-BKL3DF2Q.js";
|
|
14
14
|
import {
|
|
15
15
|
BaseCommand,
|
|
16
16
|
EXIT_CODES
|
|
17
|
-
} from "../../chunk-
|
|
17
|
+
} from "../../chunk-MGQVO357.js";
|
|
18
18
|
import {
|
|
19
19
|
fileExists,
|
|
20
20
|
getErrorMessage,
|
|
21
21
|
readFile
|
|
22
|
-
} from "../../chunk-
|
|
22
|
+
} from "../../chunk-ZEJIEC2A.js";
|
|
23
23
|
import {
|
|
24
24
|
CLAUDE_DIR,
|
|
25
25
|
CLI_COLORS,
|
|
26
26
|
STANDARD_FILES
|
|
27
27
|
} from "../../chunk-EGMQ3SXN.js";
|
|
28
|
-
import "../../chunk-
|
|
28
|
+
import "../../chunk-NKKYTCBH.js";
|
|
29
29
|
import {
|
|
30
30
|
init_esm_shims
|
|
31
31
|
} from "../../chunk-DHET7RCE.js";
|
|
@@ -2,32 +2,32 @@
|
|
|
2
2
|
import {
|
|
3
3
|
generateSkillCategoriesTs,
|
|
4
4
|
generateSkillRulesTs
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-HJVWBSLM.js";
|
|
6
6
|
import {
|
|
7
7
|
generateMarketplace,
|
|
8
8
|
writeMarketplace
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-J4TVAB5H.js";
|
|
10
10
|
import {
|
|
11
11
|
LOCAL_DEFAULTS,
|
|
12
12
|
compileAllSkillPlugins,
|
|
13
13
|
generateConfigSource,
|
|
14
14
|
loadConfigTypesDataInBackground,
|
|
15
15
|
regenerateConfigTypes
|
|
16
|
-
} from "../../chunk-
|
|
17
|
-
import "../../chunk-
|
|
16
|
+
} from "../../chunk-HMJGSAKV.js";
|
|
17
|
+
import "../../chunk-F43WGOGN.js";
|
|
18
18
|
import "../../chunk-T4EXUIBY.js";
|
|
19
19
|
import "../../chunk-BKL3DF2Q.js";
|
|
20
20
|
import {
|
|
21
21
|
BaseCommand,
|
|
22
22
|
EXIT_CODES
|
|
23
|
-
} from "../../chunk-
|
|
23
|
+
} from "../../chunk-MGQVO357.js";
|
|
24
24
|
import {
|
|
25
25
|
directoryExists,
|
|
26
26
|
ensureDir,
|
|
27
27
|
extendSchemasWithCustomValues,
|
|
28
28
|
getErrorMessage,
|
|
29
29
|
writeFile
|
|
30
|
-
} from "../../chunk-
|
|
30
|
+
} from "../../chunk-ZEJIEC2A.js";
|
|
31
31
|
import {
|
|
32
32
|
CLAUDE_SRC_DIR,
|
|
33
33
|
CLI_BIN_NAME,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
STACKS_FILE_PATH,
|
|
40
40
|
STANDARD_FILES
|
|
41
41
|
} from "../../chunk-EGMQ3SXN.js";
|
|
42
|
-
import "../../chunk-
|
|
42
|
+
import "../../chunk-NKKYTCBH.js";
|
|
43
43
|
import {
|
|
44
44
|
init_esm_shims
|
|
45
45
|
} from "../../chunk-DHET7RCE.js";
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
generateSkillRulesTs,
|
|
8
8
|
toTitleCase,
|
|
9
9
|
validateSkillName
|
|
10
|
-
} from "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
10
|
+
} from "../../chunk-HJVWBSLM.js";
|
|
11
|
+
import "../../chunk-HMJGSAKV.js";
|
|
12
|
+
import "../../chunk-F43WGOGN.js";
|
|
13
13
|
import "../../chunk-T4EXUIBY.js";
|
|
14
14
|
import "../../chunk-BKL3DF2Q.js";
|
|
15
|
-
import "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-MGQVO357.js";
|
|
16
|
+
import "../../chunk-ZEJIEC2A.js";
|
|
17
17
|
import "../../chunk-EGMQ3SXN.js";
|
|
18
|
-
import "../../chunk-
|
|
18
|
+
import "../../chunk-NKKYTCBH.js";
|
|
19
19
|
import "../../chunk-DHET7RCE.js";
|
|
20
20
|
export {
|
|
21
21
|
NewSkill as default,
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
compareLocalSkillsWithSource,
|
|
4
4
|
detectInstallation,
|
|
5
5
|
loadSkillsMatrixFromSource
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-HMJGSAKV.js";
|
|
7
|
+
import "../chunk-F43WGOGN.js";
|
|
8
8
|
import {
|
|
9
9
|
typedEntries
|
|
10
10
|
} from "../chunk-T4EXUIBY.js";
|
|
@@ -12,16 +12,16 @@ import "../chunk-BKL3DF2Q.js";
|
|
|
12
12
|
import {
|
|
13
13
|
BaseCommand,
|
|
14
14
|
EXIT_CODES
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-MGQVO357.js";
|
|
16
16
|
import {
|
|
17
17
|
fileExists,
|
|
18
18
|
getErrorMessage
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-ZEJIEC2A.js";
|
|
20
20
|
import {
|
|
21
21
|
CLI_BIN_NAME,
|
|
22
22
|
LOCAL_SKILLS_PATH
|
|
23
23
|
} from "../chunk-EGMQ3SXN.js";
|
|
24
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-NKKYTCBH.js";
|
|
25
25
|
import {
|
|
26
26
|
init_esm_shims
|
|
27
27
|
} from "../chunk-DHET7RCE.js";
|
package/dist/commands/search.js
CHANGED
|
@@ -14,29 +14,29 @@ import {
|
|
|
14
14
|
fetchFromSource,
|
|
15
15
|
loadSkillsMatrixFromSource,
|
|
16
16
|
resolveAllSources
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-HMJGSAKV.js";
|
|
18
18
|
import {
|
|
19
19
|
parseFrontmatter
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-F43WGOGN.js";
|
|
21
21
|
import "../chunk-T4EXUIBY.js";
|
|
22
22
|
import "../chunk-BKL3DF2Q.js";
|
|
23
23
|
import {
|
|
24
24
|
BaseCommand,
|
|
25
25
|
EXIT_CODES
|
|
26
|
-
} from "../chunk-
|
|
26
|
+
} from "../chunk-MGQVO357.js";
|
|
27
27
|
import {
|
|
28
28
|
copy,
|
|
29
29
|
ensureDir,
|
|
30
30
|
fileExists,
|
|
31
31
|
listDirectories,
|
|
32
32
|
readFile
|
|
33
|
-
} from "../chunk-
|
|
33
|
+
} from "../chunk-ZEJIEC2A.js";
|
|
34
34
|
import {
|
|
35
35
|
DEFAULT_SKILLS_SUBDIR,
|
|
36
36
|
LOCAL_SKILLS_PATH,
|
|
37
37
|
STANDARD_FILES
|
|
38
38
|
} from "../chunk-EGMQ3SXN.js";
|
|
39
|
-
import "../chunk-
|
|
39
|
+
import "../chunk-NKKYTCBH.js";
|
|
40
40
|
import {
|
|
41
41
|
init_esm_shims
|
|
42
42
|
} from "../chunk-DHET7RCE.js";
|
|
@@ -13,27 +13,27 @@ import {
|
|
|
13
13
|
listPluginNames,
|
|
14
14
|
loadProjectSourceConfig,
|
|
15
15
|
readForkedFromMetadata
|
|
16
|
-
} from "../chunk-
|
|
17
|
-
import "../chunk-
|
|
16
|
+
} from "../chunk-HMJGSAKV.js";
|
|
17
|
+
import "../chunk-F43WGOGN.js";
|
|
18
18
|
import "../chunk-T4EXUIBY.js";
|
|
19
19
|
import "../chunk-BKL3DF2Q.js";
|
|
20
20
|
import {
|
|
21
21
|
BaseCommand,
|
|
22
22
|
EXIT_CODES
|
|
23
|
-
} from "../chunk-
|
|
23
|
+
} from "../chunk-MGQVO357.js";
|
|
24
24
|
import {
|
|
25
25
|
directoryExists,
|
|
26
26
|
getErrorMessage,
|
|
27
27
|
listDirectories,
|
|
28
28
|
remove
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-ZEJIEC2A.js";
|
|
30
30
|
import {
|
|
31
31
|
CLAUDE_DIR,
|
|
32
32
|
CLAUDE_SRC_DIR,
|
|
33
33
|
CLI_COLORS,
|
|
34
34
|
DEFAULT_BRANDING
|
|
35
35
|
} from "../chunk-EGMQ3SXN.js";
|
|
36
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-NKKYTCBH.js";
|
|
37
37
|
import {
|
|
38
38
|
init_esm_shims
|
|
39
39
|
} from "../chunk-DHET7RCE.js";
|
package/dist/commands/update.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "../chunk-N6S7ZRIL.js";
|
|
5
5
|
import {
|
|
6
6
|
recompileAgents
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-FKRYJOPC.js";
|
|
8
8
|
import {
|
|
9
9
|
ERROR_MESSAGES,
|
|
10
10
|
INFO_MESSAGES,
|
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
compareLocalSkillsWithSource,
|
|
16
16
|
injectForkedFromMetadata,
|
|
17
17
|
loadSkillsMatrixFromSource
|
|
18
|
-
} from "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
} from "../chunk-HMJGSAKV.js";
|
|
19
|
+
import "../chunk-F43WGOGN.js";
|
|
20
20
|
import "../chunk-T4EXUIBY.js";
|
|
21
21
|
import {
|
|
22
22
|
getMatrix
|
|
@@ -24,17 +24,17 @@ import {
|
|
|
24
24
|
import {
|
|
25
25
|
BaseCommand,
|
|
26
26
|
EXIT_CODES
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-MGQVO357.js";
|
|
28
28
|
import {
|
|
29
29
|
copy,
|
|
30
30
|
fileExists,
|
|
31
31
|
getErrorMessage
|
|
32
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-ZEJIEC2A.js";
|
|
33
33
|
import {
|
|
34
34
|
CLI_BIN_NAME,
|
|
35
35
|
LOCAL_SKILLS_PATH
|
|
36
36
|
} from "../chunk-EGMQ3SXN.js";
|
|
37
|
-
import "../chunk-
|
|
37
|
+
import "../chunk-NKKYTCBH.js";
|
|
38
38
|
import {
|
|
39
39
|
init_esm_shims
|
|
40
40
|
} from "../chunk-DHET7RCE.js";
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
validateAllPlugins,
|
|
12
12
|
validateAllSchemas,
|
|
13
13
|
validatePlugin
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-HMJGSAKV.js";
|
|
15
15
|
import {
|
|
16
16
|
parseFrontmatter
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-F43WGOGN.js";
|
|
18
18
|
import "../chunk-T4EXUIBY.js";
|
|
19
19
|
import {
|
|
20
20
|
useMatrixStore
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
import {
|
|
23
23
|
BaseCommand,
|
|
24
24
|
EXIT_CODES
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-MGQVO357.js";
|
|
26
26
|
import {
|
|
27
27
|
SKILL_ID_PATTERN,
|
|
28
28
|
directoryExists,
|
|
@@ -31,13 +31,13 @@ import {
|
|
|
31
31
|
glob,
|
|
32
32
|
metadataValidationSchema,
|
|
33
33
|
readFile
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-ZEJIEC2A.js";
|
|
35
35
|
import {
|
|
36
36
|
SKILLS_DIR_PATH,
|
|
37
37
|
SKILL_CATEGORIES_PATH,
|
|
38
38
|
STANDARD_FILES
|
|
39
39
|
} from "../chunk-EGMQ3SXN.js";
|
|
40
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-NKKYTCBH.js";
|
|
41
41
|
import {
|
|
42
42
|
init_esm_shims
|
|
43
43
|
} from "../chunk-DHET7RCE.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
SelectList
|
|
4
|
+
} from "../../chunk-WF5PMBIR.js";
|
|
5
|
+
import "../../chunk-KUV24B5M.js";
|
|
6
|
+
import "../../chunk-EGMQ3SXN.js";
|
|
7
|
+
import "../../chunk-DHET7RCE.js";
|
|
8
|
+
export {
|
|
9
|
+
SelectList
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=select-list.js.map
|