@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
|
@@ -17,11 +17,11 @@ import {
|
|
|
17
17
|
resolveAgents,
|
|
18
18
|
writeContentHash,
|
|
19
19
|
writePluginManifest
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-HMJGSAKV.js";
|
|
21
21
|
import {
|
|
22
22
|
loadAllAgents,
|
|
23
23
|
loadProjectAgents
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-F43WGOGN.js";
|
|
25
25
|
import {
|
|
26
26
|
typedEntries,
|
|
27
27
|
typedKeys
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
verbose,
|
|
40
40
|
warn,
|
|
41
41
|
writeFile
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-ZEJIEC2A.js";
|
|
43
43
|
import {
|
|
44
44
|
CLAUDE_DIR,
|
|
45
45
|
DIRS,
|
|
@@ -319,4 +319,4 @@ export {
|
|
|
319
319
|
compileAllAgentPlugins,
|
|
320
320
|
printAgentCompilationSummary
|
|
321
321
|
};
|
|
322
|
-
//# sourceMappingURL=chunk-
|
|
322
|
+
//# sourceMappingURL=chunk-FKRYJOPC.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-KYULKBFC.js";
|
|
12
12
|
import {
|
|
13
13
|
useWizardStore
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-URAXGHF2.js";
|
|
15
15
|
import {
|
|
16
16
|
HOTKEY_ACCEPT_DEFAULTS,
|
|
17
17
|
HOTKEY_HELP,
|
|
@@ -203,4 +203,4 @@ var WizardLayout = ({
|
|
|
203
203
|
export {
|
|
204
204
|
WizardLayout
|
|
205
205
|
};
|
|
206
|
-
//# sourceMappingURL=chunk-
|
|
206
|
+
//# sourceMappingURL=chunk-G3LNIYZG.js.map
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
loadConfigTypesDataInBackground,
|
|
8
8
|
regenerateConfigTypes,
|
|
9
9
|
resolveAuthor
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HMJGSAKV.js";
|
|
11
11
|
import {
|
|
12
12
|
BaseCommand,
|
|
13
13
|
EXIT_CODES
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MGQVO357.js";
|
|
15
15
|
import {
|
|
16
16
|
directoryExists,
|
|
17
17
|
ensureDir,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
getErrorMessage,
|
|
20
20
|
verbose,
|
|
21
21
|
writeFile
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZEJIEC2A.js";
|
|
23
23
|
import {
|
|
24
24
|
CLI_BIN_NAME,
|
|
25
25
|
DEFAULT_VERSION,
|
|
@@ -339,4 +339,4 @@ export {
|
|
|
339
339
|
generateSkillRulesTs,
|
|
340
340
|
NewSkill
|
|
341
341
|
};
|
|
342
|
-
//# sourceMappingURL=chunk-
|
|
342
|
+
//# sourceMappingURL=chunk-HJVWBSLM.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
loadPluginSkills,
|
|
5
5
|
loadSkillsByIds,
|
|
6
6
|
parseFrontmatter
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-F43WGOGN.js";
|
|
8
8
|
import {
|
|
9
9
|
typedEntries,
|
|
10
10
|
typedKeys
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
useMatrixStore
|
|
17
17
|
} from "./chunk-BKL3DF2Q.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
CATEGORIES,
|
|
20
|
+
DOMAINS,
|
|
21
21
|
agentFrontmatterValidationSchema,
|
|
22
22
|
agentNameSchema,
|
|
23
23
|
agentYamlGenerationSchema,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
warn,
|
|
59
59
|
warnUnknownFields,
|
|
60
60
|
writeFile
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-ZEJIEC2A.js";
|
|
62
62
|
import {
|
|
63
63
|
CACHE_DIR,
|
|
64
64
|
CACHE_HASH_LENGTH,
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
defaultCategories,
|
|
100
100
|
defaultRules,
|
|
101
101
|
defaultStacks
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-NKKYTCBH.js";
|
|
103
103
|
import {
|
|
104
104
|
init_esm_shims
|
|
105
105
|
} from "./chunk-DHET7RCE.js";
|
|
@@ -692,12 +692,17 @@ async function loadStacks(configDir, stacksFile) {
|
|
|
692
692
|
async function loadStackById(stackId, configDir) {
|
|
693
693
|
const stacks = await loadStacks(configDir);
|
|
694
694
|
const stack = stacks.find((s) => s.id === stackId);
|
|
695
|
-
if (
|
|
696
|
-
verbose(`
|
|
697
|
-
return
|
|
695
|
+
if (stack) {
|
|
696
|
+
verbose(`Found stack: ${stack.name} (${stackId})`);
|
|
697
|
+
return stack;
|
|
698
698
|
}
|
|
699
|
-
|
|
700
|
-
|
|
699
|
+
const defaultStack = defaultStacks.find((s) => s.id === stackId) ?? null;
|
|
700
|
+
if (defaultStack) {
|
|
701
|
+
verbose(`Found default stack: ${defaultStack.name} (${stackId})`);
|
|
702
|
+
} else {
|
|
703
|
+
verbose(`Stack '${stackId}' not found in source or defaults`);
|
|
704
|
+
}
|
|
705
|
+
return defaultStack;
|
|
701
706
|
}
|
|
702
707
|
function resolveAgentConfigToSkills(agentConfig) {
|
|
703
708
|
return typedEntries(agentConfig).flatMap(
|
|
@@ -1143,7 +1148,7 @@ var rawMetadataSchema = z.object({
|
|
|
1143
1148
|
domain: extensibleDomainSchema,
|
|
1144
1149
|
custom: z.boolean().optional()
|
|
1145
1150
|
});
|
|
1146
|
-
var KNOWN_DOMAINS = new Set(
|
|
1151
|
+
var KNOWN_DOMAINS = new Set(DOMAINS);
|
|
1147
1152
|
var AUTO_SYNTH_ORDER = 999;
|
|
1148
1153
|
function synthesizeCategory(categoryPath, domain) {
|
|
1149
1154
|
const displayName = categoryPath.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
|
|
@@ -2814,7 +2819,7 @@ async function compileStackPlugin(options) {
|
|
|
2814
2819
|
verbose(
|
|
2815
2820
|
` Loaded ${Object.keys(localAgents).length} local agents, ${Object.keys(cliAgents).length} CLI agents`
|
|
2816
2821
|
);
|
|
2817
|
-
const newStack = options.stack || await loadStackById(stackId, projectRoot)
|
|
2822
|
+
const newStack = options.stack || await loadStackById(stackId, projectRoot);
|
|
2818
2823
|
let stack;
|
|
2819
2824
|
if (newStack) {
|
|
2820
2825
|
verbose(` Found stack: ${newStack.name}`);
|
|
@@ -3193,8 +3198,8 @@ function loadConfigTypesDataInBackground(sourceFlag, projectDir) {
|
|
|
3193
3198
|
if (!await directoryExists(claudeSrcDir)) {
|
|
3194
3199
|
throw new Error(`${CLAUDE_SRC_DIR}/ not found \u2014 run '${CLI_BIN_NAME} init' first`);
|
|
3195
3200
|
}
|
|
3196
|
-
const { loadSkillsMatrixFromSource: loadSkillsMatrixFromSource2 } = await import("./source-loader-
|
|
3197
|
-
const { loadAllAgents: loadAllAgents2 } = await import("./loader-
|
|
3201
|
+
const { loadSkillsMatrixFromSource: loadSkillsMatrixFromSource2 } = await import("./source-loader-65IAJPNV.js");
|
|
3202
|
+
const { loadAllAgents: loadAllAgents2 } = await import("./loader-KVKSTKWX.js");
|
|
3198
3203
|
const sourceResult = await loadSkillsMatrixFromSource2({
|
|
3199
3204
|
sourceFlag,
|
|
3200
3205
|
projectDir,
|
|
@@ -3652,9 +3657,6 @@ async function buildLocalConfig(wizardResult, sourceResult) {
|
|
|
3652
3657
|
let loadedStack = null;
|
|
3653
3658
|
if (wizardResult.selectedStackId) {
|
|
3654
3659
|
loadedStack = await loadStackById(wizardResult.selectedStackId, sourceResult.sourcePath);
|
|
3655
|
-
if (!loadedStack) {
|
|
3656
|
-
loadedStack = defaultStacks.find((s) => s.id === wizardResult.selectedStackId) ?? null;
|
|
3657
|
-
}
|
|
3658
3660
|
verbose(
|
|
3659
3661
|
`buildLocalConfig: loadedStack=${loadedStack ? `found (id='${loadedStack.id}')` : "NOT FOUND"}`
|
|
3660
3662
|
);
|
|
@@ -5421,8 +5423,8 @@ async function discoverAndExtendFromLocalSkills(projectDir) {
|
|
|
5421
5423
|
const localSkillsDir = path26.join(projectDir, LOCAL_SKILLS_PATH);
|
|
5422
5424
|
if (!await directoryExists(localSkillsDir)) return;
|
|
5423
5425
|
const { parse: parseYaml7 } = await import("yaml");
|
|
5424
|
-
const builtinCategories = new Set(
|
|
5425
|
-
const builtinDomains = new Set(
|
|
5426
|
+
const builtinCategories = new Set(CATEGORIES);
|
|
5427
|
+
const builtinDomains = new Set(DOMAINS);
|
|
5426
5428
|
const customCategories = [];
|
|
5427
5429
|
const customDomains = [];
|
|
5428
5430
|
const customSkillIds = [];
|
|
@@ -5468,8 +5470,8 @@ async function discoverAndExtendFromLocalSkills(projectDir) {
|
|
|
5468
5470
|
}
|
|
5469
5471
|
async function discoverAndExtendFromSource(basePath) {
|
|
5470
5472
|
const { parse: parseYaml7 } = await import("yaml");
|
|
5471
|
-
const builtinCategories = new Set(
|
|
5472
|
-
const builtinDomains = new Set(
|
|
5473
|
+
const builtinCategories = new Set(CATEGORIES);
|
|
5474
|
+
const builtinDomains = new Set(DOMAINS);
|
|
5473
5475
|
const customCategories = [];
|
|
5474
5476
|
const customDomains = [];
|
|
5475
5477
|
const customAgentNames = [];
|
|
@@ -5653,4 +5655,4 @@ export {
|
|
|
5653
5655
|
validateAllPlugins,
|
|
5654
5656
|
printPluginValidationResult
|
|
5655
5657
|
};
|
|
5656
|
-
//# sourceMappingURL=chunk-
|
|
5658
|
+
//# sourceMappingURL=chunk-HMJGSAKV.js.map
|