@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.
Files changed (127) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +172 -23
  3. package/dist/chunk-2MHSOPIU.js +84 -0
  4. package/dist/chunk-2MHSOPIU.js.map +1 -0
  5. package/dist/{chunk-VTRVAXUM.js → chunk-3SLO2QPW.js} +6 -6
  6. package/dist/{chunk-KFDTVSIC.js → chunk-6YMW4HMX.js} +2 -2
  7. package/dist/{chunk-KBG7GYPL.js → chunk-AHZ34QVK.js} +76 -113
  8. package/dist/chunk-AHZ34QVK.js.map +1 -0
  9. package/dist/chunk-D7FEORKC.js +253 -0
  10. package/dist/chunk-D7FEORKC.js.map +1 -0
  11. package/dist/{chunk-L6MTIQ2U.js → chunk-F43WGOGN.js} +2 -2
  12. package/dist/{chunk-F6KEZ4Y5.js → chunk-FKRYJOPC.js} +4 -4
  13. package/dist/{chunk-RMMHVE2R.js → chunk-G3LNIYZG.js} +2 -2
  14. package/dist/{chunk-GK5CAS3A.js → chunk-HJVWBSLM.js} +4 -4
  15. package/dist/{chunk-45R64U2S.js → chunk-HMJGSAKV.js} +24 -22
  16. package/dist/chunk-HMJGSAKV.js.map +1 -0
  17. package/dist/{chunk-6BXKF5GP.js → chunk-J4TVAB5H.js} +2 -2
  18. package/dist/{chunk-2JJUPWE5.js → chunk-LBTW5HSY.js} +2 -2
  19. package/dist/{chunk-QUEO6QEL.js → chunk-LM5YQUBR.js} +3 -3
  20. package/dist/{chunk-FCF4WQEI.js → chunk-MGQVO357.js} +2 -2
  21. package/dist/{chunk-KWB3B2HS.js → chunk-NKKYTCBH.js} +109 -86
  22. package/dist/chunk-NKKYTCBH.js.map +1 -0
  23. package/dist/{chunk-HADHP7XF.js → chunk-OODTDGEM.js} +6 -6
  24. package/dist/chunk-Q3YMO5YG.js +58 -0
  25. package/dist/chunk-Q3YMO5YG.js.map +1 -0
  26. package/dist/{chunk-L5LD3ZSR.js → chunk-RJOLQ7EK.js} +4 -4
  27. package/dist/{chunk-SSGPFKS4.js → chunk-SEAL43IR.js} +3 -3
  28. package/dist/{chunk-JAWXWNIX.js → chunk-UQTG4ZBA.js} +10 -10
  29. package/dist/{chunk-EULHBV5V.js → chunk-URAXGHF2.js} +3 -3
  30. package/dist/{chunk-KMDBOO3E.js → chunk-V2XIWRHP.js} +2 -2
  31. package/dist/chunk-WF5PMBIR.js +54 -0
  32. package/dist/chunk-WF5PMBIR.js.map +1 -0
  33. package/dist/{chunk-N4D43IOO.js → chunk-WWHDP5CP.js} +55 -8
  34. package/dist/chunk-WWHDP5CP.js.map +1 -0
  35. package/dist/{chunk-R3AR4VLZ.js → chunk-ZEJIEC2A.js} +154 -150
  36. package/dist/chunk-ZEJIEC2A.js.map +1 -0
  37. package/dist/{chunk-7LCI5PSJ.js → chunk-ZFRALAK5.js} +2 -2
  38. package/dist/commands/build/marketplace.js +3 -3
  39. package/dist/commands/build/plugins.js +6 -6
  40. package/dist/commands/build/stack.js +6 -6
  41. package/dist/commands/compile.js +6 -6
  42. package/dist/commands/config/index.js +6 -6
  43. package/dist/commands/config/path.js +5 -5
  44. package/dist/commands/config/show.js +6 -6
  45. package/dist/commands/diff.js +5 -5
  46. package/dist/commands/doctor.js +5 -5
  47. package/dist/commands/edit.js +21 -20
  48. package/dist/commands/edit.js.map +1 -1
  49. package/dist/commands/eject.js +5 -5
  50. package/dist/commands/import/skill.js +5 -5
  51. package/dist/commands/info.js +5 -5
  52. package/dist/commands/init.js +21 -20
  53. package/dist/commands/list.js +5 -5
  54. package/dist/commands/new/agent.js +6 -6
  55. package/dist/commands/new/marketplace.js +7 -7
  56. package/dist/commands/new/skill.js +6 -6
  57. package/dist/commands/outdated.js +5 -5
  58. package/dist/commands/search.js +5 -5
  59. package/dist/commands/uninstall.js +5 -5
  60. package/dist/commands/update.js +6 -6
  61. package/dist/commands/validate.js +5 -5
  62. package/dist/components/common/select-list.js +11 -0
  63. package/dist/components/wizard/category-grid.test.js +6 -6
  64. package/dist/components/wizard/domain-selection.js +6 -6
  65. package/dist/components/wizard/search-modal.js +2 -1
  66. package/dist/components/wizard/search-modal.test.js +3 -2
  67. package/dist/components/wizard/search-modal.test.js.map +1 -1
  68. package/dist/components/wizard/source-grid.js +3 -2
  69. package/dist/components/wizard/source-grid.test.js +17 -13
  70. package/dist/components/wizard/source-grid.test.js.map +1 -1
  71. package/dist/components/wizard/stack-selection.js +6 -6
  72. package/dist/components/wizard/step-agents.js +6 -6
  73. package/dist/components/wizard/step-agents.test.js +10 -9
  74. package/dist/components/wizard/step-agents.test.js.map +1 -1
  75. package/dist/components/wizard/step-build.js +7 -7
  76. package/dist/components/wizard/step-build.test.js +17 -52
  77. package/dist/components/wizard/step-build.test.js.map +1 -1
  78. package/dist/components/wizard/step-confirm.test.js +6 -6
  79. package/dist/components/wizard/step-settings.js +5 -5
  80. package/dist/components/wizard/step-settings.test.js +8 -8
  81. package/dist/components/wizard/step-sources.js +10 -9
  82. package/dist/components/wizard/step-sources.test.js +15 -13
  83. package/dist/components/wizard/step-sources.test.js.map +1 -1
  84. package/dist/components/wizard/step-stack.js +9 -9
  85. package/dist/components/wizard/step-stack.test.js +10 -10
  86. package/dist/components/wizard/wizard-layout.js +6 -6
  87. package/dist/components/wizard/wizard.js +19 -18
  88. package/dist/config-exports.js +1 -1
  89. package/dist/hooks/init.js +21 -20
  90. package/dist/hooks/init.js.map +1 -1
  91. package/dist/{loader-CMSC3RAO.js → loader-KVKSTKWX.js} +3 -3
  92. package/dist/{source-loader-YMWWZFVD.js → source-loader-65IAJPNV.js} +5 -5
  93. package/dist/{source-manager-6G3EVTU2.js → source-manager-LJH225GA.js} +5 -5
  94. package/dist/source-manager-LJH225GA.js.map +1 -0
  95. package/dist/stores/matrix-store.test.js +17 -13
  96. package/dist/stores/matrix-store.test.js.map +1 -1
  97. package/dist/stores/wizard-store.js +5 -5
  98. package/dist/stores/wizard-store.test.js +35 -110
  99. package/dist/stores/wizard-store.test.js.map +1 -1
  100. package/package.json +2 -1
  101. package/dist/chunk-45R64U2S.js.map +0 -1
  102. package/dist/chunk-6IK2TCK7.js +0 -97
  103. package/dist/chunk-6IK2TCK7.js.map +0 -1
  104. package/dist/chunk-KBG7GYPL.js.map +0 -1
  105. package/dist/chunk-KWB3B2HS.js.map +0 -1
  106. package/dist/chunk-N4D43IOO.js.map +0 -1
  107. package/dist/chunk-R3AR4VLZ.js.map +0 -1
  108. /package/dist/{chunk-VTRVAXUM.js.map → chunk-3SLO2QPW.js.map} +0 -0
  109. /package/dist/{chunk-KFDTVSIC.js.map → chunk-6YMW4HMX.js.map} +0 -0
  110. /package/dist/{chunk-L6MTIQ2U.js.map → chunk-F43WGOGN.js.map} +0 -0
  111. /package/dist/{chunk-F6KEZ4Y5.js.map → chunk-FKRYJOPC.js.map} +0 -0
  112. /package/dist/{chunk-RMMHVE2R.js.map → chunk-G3LNIYZG.js.map} +0 -0
  113. /package/dist/{chunk-GK5CAS3A.js.map → chunk-HJVWBSLM.js.map} +0 -0
  114. /package/dist/{chunk-6BXKF5GP.js.map → chunk-J4TVAB5H.js.map} +0 -0
  115. /package/dist/{chunk-2JJUPWE5.js.map → chunk-LBTW5HSY.js.map} +0 -0
  116. /package/dist/{chunk-QUEO6QEL.js.map → chunk-LM5YQUBR.js.map} +0 -0
  117. /package/dist/{chunk-FCF4WQEI.js.map → chunk-MGQVO357.js.map} +0 -0
  118. /package/dist/{chunk-HADHP7XF.js.map → chunk-OODTDGEM.js.map} +0 -0
  119. /package/dist/{chunk-L5LD3ZSR.js.map → chunk-RJOLQ7EK.js.map} +0 -0
  120. /package/dist/{chunk-SSGPFKS4.js.map → chunk-SEAL43IR.js.map} +0 -0
  121. /package/dist/{chunk-JAWXWNIX.js.map → chunk-UQTG4ZBA.js.map} +0 -0
  122. /package/dist/{chunk-EULHBV5V.js.map → chunk-URAXGHF2.js.map} +0 -0
  123. /package/dist/{chunk-KMDBOO3E.js.map → chunk-V2XIWRHP.js.map} +0 -0
  124. /package/dist/{chunk-7LCI5PSJ.js.map → chunk-ZFRALAK5.js.map} +0 -0
  125. /package/dist/{loader-CMSC3RAO.js.map → components/common/select-list.js.map} +0 -0
  126. /package/dist/{source-loader-YMWWZFVD.js.map → loader-KVKSTKWX.js.map} +0 -0
  127. /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-45R64U2S.js";
20
+ } from "./chunk-HMJGSAKV.js";
21
21
  import {
22
22
  loadAllAgents,
23
23
  loadProjectAgents
24
- } from "./chunk-L6MTIQ2U.js";
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-R3AR4VLZ.js";
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-F6KEZ4Y5.js.map
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-EULHBV5V.js";
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-RMMHVE2R.js.map
206
+ //# sourceMappingURL=chunk-G3LNIYZG.js.map
@@ -7,11 +7,11 @@ import {
7
7
  loadConfigTypesDataInBackground,
8
8
  regenerateConfigTypes,
9
9
  resolveAuthor
10
- } from "./chunk-45R64U2S.js";
10
+ } from "./chunk-HMJGSAKV.js";
11
11
  import {
12
12
  BaseCommand,
13
13
  EXIT_CODES
14
- } from "./chunk-FCF4WQEI.js";
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-R3AR4VLZ.js";
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-GK5CAS3A.js.map
342
+ //# sourceMappingURL=chunk-HJVWBSLM.js.map
@@ -4,7 +4,7 @@ import {
4
4
  loadPluginSkills,
5
5
  loadSkillsByIds,
6
6
  parseFrontmatter
7
- } from "./chunk-L6MTIQ2U.js";
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
- CATEGORY_VALUES,
20
- DOMAIN_VALUES,
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-R3AR4VLZ.js";
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-KWB3B2HS.js";
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 (!stack) {
696
- verbose(`Stack '${stackId}' not found`);
697
- return null;
695
+ if (stack) {
696
+ verbose(`Found stack: ${stack.name} (${stackId})`);
697
+ return stack;
698
698
  }
699
- verbose(`Found stack: ${stack.name} (${stackId})`);
700
- return stack;
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(DOMAIN_VALUES);
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) || defaultStacks.find((s) => s.id === stackId) || null;
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-YMWWZFVD.js");
3197
- const { loadAllAgents: loadAllAgents2 } = await import("./loader-CMSC3RAO.js");
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(CATEGORY_VALUES);
5425
- const builtinDomains = new Set(DOMAIN_VALUES);
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(CATEGORY_VALUES);
5472
- const builtinDomains = new Set(DOMAIN_VALUES);
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-45R64U2S.js.map
5658
+ //# sourceMappingURL=chunk-HMJGSAKV.js.map