@agents-inc/cli 0.64.0 → 0.68.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 (115) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/{chunk-J4POGAJF.js → chunk-2JJUPWE5.js} +2 -2
  3. package/dist/{chunk-53URJ5XK.js → chunk-45R64U2S.js} +21 -21
  4. package/dist/chunk-45R64U2S.js.map +1 -0
  5. package/dist/{chunk-FGLUQSVU.js → chunk-6BXKF5GP.js} +2 -2
  6. package/dist/{chunk-EZ35IPXZ.js → chunk-7LCI5PSJ.js} +2 -2
  7. package/dist/{chunk-4C7CSZC5.js → chunk-EULHBV5V.js} +3 -3
  8. package/dist/{chunk-ZFY5EMDV.js → chunk-F6KEZ4Y5.js} +4 -4
  9. package/dist/{chunk-EE5EPS32.js → chunk-FCF4WQEI.js} +2 -2
  10. package/dist/{chunk-R46CB36B.js → chunk-GK5CAS3A.js} +4 -4
  11. package/dist/{chunk-WSMQ5GAP.js → chunk-HADHP7XF.js} +3 -3
  12. package/dist/{chunk-OORWBS6F.js → chunk-JAWXWNIX.js} +16 -10
  13. package/dist/chunk-JAWXWNIX.js.map +1 -0
  14. package/dist/{chunk-3YNT3NX3.js → chunk-KBG7GYPL.js} +5 -5
  15. package/dist/{chunk-O2HK3NTG.js → chunk-KMDBOO3E.js} +2 -2
  16. package/dist/{chunk-EC3UJRKZ.js → chunk-KWB3B2HS.js} +92 -163
  17. package/dist/chunk-KWB3B2HS.js.map +1 -0
  18. package/dist/{chunk-7DI3HGKL.js → chunk-KYULKBFC.js} +2 -2
  19. package/dist/chunk-KYULKBFC.js.map +1 -0
  20. package/dist/{chunk-6DEK3TDF.js → chunk-L5LD3ZSR.js} +4 -4
  21. package/dist/{chunk-F3REOP7N.js → chunk-L6MTIQ2U.js} +2 -2
  22. package/dist/{chunk-MOMI77PL.js → chunk-N4D43IOO.js} +57 -137
  23. package/dist/chunk-N4D43IOO.js.map +1 -0
  24. package/dist/{chunk-RG3KDXMR.js → chunk-QUEO6QEL.js} +3 -3
  25. package/dist/{chunk-LMZXL5RQ.js → chunk-R3AR4VLZ.js} +11 -11
  26. package/dist/chunk-R3AR4VLZ.js.map +1 -0
  27. package/dist/{chunk-4KVBH2X4.js → chunk-RMMHVE2R.js} +3 -3
  28. package/dist/{chunk-YEGPTBX5.js → chunk-SSGPFKS4.js} +3 -3
  29. package/dist/{chunk-BGPGQF35.js → chunk-VTRVAXUM.js} +3 -3
  30. package/dist/commands/build/marketplace.js +3 -3
  31. package/dist/commands/build/plugins.js +6 -6
  32. package/dist/commands/build/stack.js +6 -6
  33. package/dist/commands/compile.js +6 -6
  34. package/dist/commands/config/index.js +6 -6
  35. package/dist/commands/config/path.js +5 -5
  36. package/dist/commands/config/show.js +6 -6
  37. package/dist/commands/diff.js +5 -5
  38. package/dist/commands/doctor.js +5 -5
  39. package/dist/commands/edit.js +40 -20
  40. package/dist/commands/edit.js.map +1 -1
  41. package/dist/commands/eject.js +5 -5
  42. package/dist/commands/import/skill.js +5 -5
  43. package/dist/commands/info.js +5 -5
  44. package/dist/commands/init.js +17 -17
  45. package/dist/commands/list.js +5 -5
  46. package/dist/commands/new/agent.js +6 -6
  47. package/dist/commands/new/marketplace.js +7 -7
  48. package/dist/commands/new/skill.js +6 -6
  49. package/dist/commands/outdated.js +5 -5
  50. package/dist/commands/search.js +5 -5
  51. package/dist/commands/uninstall.js +5 -5
  52. package/dist/commands/update.js +6 -6
  53. package/dist/commands/validate.js +5 -5
  54. package/dist/components/wizard/category-grid.test.js +11 -11
  55. package/dist/components/wizard/category-grid.test.js.map +1 -1
  56. package/dist/components/wizard/domain-selection.js +6 -6
  57. package/dist/components/wizard/help-modal.js +1 -1
  58. package/dist/components/wizard/search-modal.test.js.map +1 -1
  59. package/dist/components/wizard/source-grid.test.js +8 -13
  60. package/dist/components/wizard/source-grid.test.js.map +1 -1
  61. package/dist/components/wizard/stack-selection.js +6 -6
  62. package/dist/components/wizard/step-agents.js +6 -6
  63. package/dist/components/wizard/step-agents.test.js +8 -8
  64. package/dist/components/wizard/step-agents.test.js.map +1 -1
  65. package/dist/components/wizard/step-build.js +6 -6
  66. package/dist/components/wizard/step-build.test.js +62 -76
  67. package/dist/components/wizard/step-build.test.js.map +1 -1
  68. package/dist/components/wizard/step-confirm.test.js +6 -6
  69. package/dist/components/wizard/step-settings.js +5 -5
  70. package/dist/components/wizard/step-settings.test.js +8 -8
  71. package/dist/components/wizard/step-sources.js +6 -6
  72. package/dist/components/wizard/step-sources.test.js +10 -9
  73. package/dist/components/wizard/step-sources.test.js.map +1 -1
  74. package/dist/components/wizard/step-stack.js +8 -8
  75. package/dist/components/wizard/step-stack.test.js +20 -30
  76. package/dist/components/wizard/step-stack.test.js.map +1 -1
  77. package/dist/components/wizard/wizard-layout.js +7 -7
  78. package/dist/components/wizard/wizard.js +15 -15
  79. package/dist/config-exports.js +1 -1
  80. package/dist/hooks/init.js +17 -17
  81. package/dist/{loader-4YOZCFIP.js → loader-CMSC3RAO.js} +3 -3
  82. package/dist/{source-loader-O5RMYUBW.js → source-loader-YMWWZFVD.js} +5 -5
  83. package/dist/{source-manager-NKLL6HCL.js → source-manager-6G3EVTU2.js} +5 -5
  84. package/dist/stores/matrix-store.test.js +23 -46
  85. package/dist/stores/matrix-store.test.js.map +1 -1
  86. package/dist/stores/wizard-store.js +5 -5
  87. package/dist/stores/wizard-store.test.js +39 -54
  88. package/dist/stores/wizard-store.test.js.map +1 -1
  89. package/package.json +1 -1
  90. package/src/schemas/metadata.schema.json +1 -1
  91. package/dist/chunk-53URJ5XK.js.map +0 -1
  92. package/dist/chunk-7DI3HGKL.js.map +0 -1
  93. package/dist/chunk-EC3UJRKZ.js.map +0 -1
  94. package/dist/chunk-LMZXL5RQ.js.map +0 -1
  95. package/dist/chunk-MOMI77PL.js.map +0 -1
  96. package/dist/chunk-OORWBS6F.js.map +0 -1
  97. /package/dist/{chunk-J4POGAJF.js.map → chunk-2JJUPWE5.js.map} +0 -0
  98. /package/dist/{chunk-FGLUQSVU.js.map → chunk-6BXKF5GP.js.map} +0 -0
  99. /package/dist/{chunk-EZ35IPXZ.js.map → chunk-7LCI5PSJ.js.map} +0 -0
  100. /package/dist/{chunk-4C7CSZC5.js.map → chunk-EULHBV5V.js.map} +0 -0
  101. /package/dist/{chunk-ZFY5EMDV.js.map → chunk-F6KEZ4Y5.js.map} +0 -0
  102. /package/dist/{chunk-EE5EPS32.js.map → chunk-FCF4WQEI.js.map} +0 -0
  103. /package/dist/{chunk-R46CB36B.js.map → chunk-GK5CAS3A.js.map} +0 -0
  104. /package/dist/{chunk-WSMQ5GAP.js.map → chunk-HADHP7XF.js.map} +0 -0
  105. /package/dist/{chunk-3YNT3NX3.js.map → chunk-KBG7GYPL.js.map} +0 -0
  106. /package/dist/{chunk-O2HK3NTG.js.map → chunk-KMDBOO3E.js.map} +0 -0
  107. /package/dist/{chunk-6DEK3TDF.js.map → chunk-L5LD3ZSR.js.map} +0 -0
  108. /package/dist/{chunk-F3REOP7N.js.map → chunk-L6MTIQ2U.js.map} +0 -0
  109. /package/dist/{chunk-RG3KDXMR.js.map → chunk-QUEO6QEL.js.map} +0 -0
  110. /package/dist/{chunk-4KVBH2X4.js.map → chunk-RMMHVE2R.js.map} +0 -0
  111. /package/dist/{chunk-YEGPTBX5.js.map → chunk-SSGPFKS4.js.map} +0 -0
  112. /package/dist/{chunk-BGPGQF35.js.map → chunk-VTRVAXUM.js.map} +0 -0
  113. /package/dist/{loader-4YOZCFIP.js.map → loader-CMSC3RAO.js.map} +0 -0
  114. /package/dist/{source-loader-O5RMYUBW.js.map → source-loader-YMWWZFVD.js.map} +0 -0
  115. /package/dist/{source-manager-NKLL6HCL.js.map → source-manager-6G3EVTU2.js.map} +0 -0
@@ -1,10 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
+ SKILLS,
3
4
  TEST_CATEGORIES,
4
- TEST_SKILLS,
5
- createMockMatrix,
6
- getTestSkill
7
- } from "../chunk-MOMI77PL.js";
5
+ createMockMatrix
6
+ } from "../chunk-N4D43IOO.js";
8
7
  import {
9
8
  beforeEach,
10
9
  describe,
@@ -13,18 +12,18 @@ import {
13
12
  } from "../chunk-XY3XDVMI.js";
14
13
  import {
15
14
  useWizardStore
16
- } from "../chunk-4C7CSZC5.js";
17
- import "../chunk-53URJ5XK.js";
18
- import "../chunk-F3REOP7N.js";
15
+ } from "../chunk-EULHBV5V.js";
16
+ import "../chunk-45R64U2S.js";
17
+ import "../chunk-L6MTIQ2U.js";
19
18
  import {
20
19
  typedKeys
21
20
  } from "../chunk-T4EXUIBY.js";
22
21
  import {
23
22
  useMatrixStore
24
23
  } from "../chunk-BKL3DF2Q.js";
25
- import "../chunk-LMZXL5RQ.js";
24
+ import "../chunk-R3AR4VLZ.js";
26
25
  import "../chunk-EGMQ3SXN.js";
27
- import "../chunk-EC3UJRKZ.js";
26
+ import "../chunk-KWB3B2HS.js";
28
27
  import {
29
28
  init_esm_shims
30
29
  } from "../chunk-DHET7RCE.js";
@@ -37,7 +36,7 @@ function sa(id, preloaded = false) {
37
36
  describe("WizardStore", () => {
38
37
  beforeEach(() => {
39
38
  useMatrixStore.getState().setMatrix(
40
- createMockMatrix(TEST_SKILLS, {
39
+ createMockMatrix(SKILLS, {
41
40
  categories: TEST_CATEGORIES
42
41
  })
43
42
  );
@@ -213,7 +212,7 @@ describe("WizardStore", () => {
213
212
  }
214
213
  };
215
214
  useMatrixStore.getState().setMatrix(
216
- createMockMatrix(TEST_SKILLS, {
215
+ createMockMatrix(SKILLS, {
217
216
  categories: {
218
217
  "web-framework": { domain: "web" },
219
218
  "web-client-state": { domain: "web" },
@@ -232,18 +231,12 @@ describe("WizardStore", () => {
232
231
  it("should restore stack skills when re-toggling a domain ON after populateFromSkillIds", () => {
233
232
  const store = useWizardStore.getState();
234
233
  useMatrixStore.getState().setMatrix(
235
- createMockMatrix(
236
- {
237
- "web-framework-react": TEST_SKILLS.react,
238
- "api-framework-hono": TEST_SKILLS.hono
239
- },
240
- {
241
- categories: {
242
- "web-framework": TEST_CATEGORIES.framework,
243
- "api-api": TEST_CATEGORIES.api
244
- }
234
+ createMockMatrix(SKILLS.react, SKILLS.hono, {
235
+ categories: {
236
+ "web-framework": TEST_CATEGORIES.framework,
237
+ "api-api": TEST_CATEGORIES.api
245
238
  }
246
- )
239
+ })
247
240
  );
248
241
  store.populateFromSkillIds(["web-framework-react", "api-framework-hono"]);
249
242
  store.toggleDomain("web");
@@ -271,7 +264,7 @@ describe("WizardStore", () => {
271
264
  }
272
265
  };
273
266
  useMatrixStore.getState().setMatrix(
274
- createMockMatrix(TEST_SKILLS, {
267
+ createMockMatrix(SKILLS, {
275
268
  categories: {
276
269
  "web-framework": { domain: "web" },
277
270
  "api-api": { domain: "api" }
@@ -515,7 +508,7 @@ describe("WizardStore", () => {
515
508
  }
516
509
  };
517
510
  useMatrixStore.getState().setMatrix(
518
- createMockMatrix(TEST_SKILLS, {
511
+ createMockMatrix(SKILLS, {
519
512
  categories: {
520
513
  "web-framework": { domain: "web" },
521
514
  "web-client-state": { domain: "web" }
@@ -532,18 +525,12 @@ describe("WizardStore", () => {
532
525
  it("should populate skillConfigs from populateFromSkillIds", () => {
533
526
  const store = useWizardStore.getState();
534
527
  useMatrixStore.getState().setMatrix(
535
- createMockMatrix(
536
- {
537
- "web-framework-react": TEST_SKILLS.react,
538
- "api-framework-hono": TEST_SKILLS.hono
539
- },
540
- {
541
- categories: {
542
- "web-framework": TEST_CATEGORIES.framework,
543
- "api-api": TEST_CATEGORIES.api
544
- }
528
+ createMockMatrix(SKILLS.react, SKILLS.hono, {
529
+ categories: {
530
+ "web-framework": TEST_CATEGORIES.framework,
531
+ "api-api": TEST_CATEGORIES.api
545
532
  }
546
- )
533
+ })
547
534
  );
548
535
  store.populateFromSkillIds(["web-framework-react", "api-framework-hono"]);
549
536
  const { skillConfigs } = useWizardStore.getState();
@@ -569,7 +556,7 @@ describe("WizardStore", () => {
569
556
  }
570
557
  };
571
558
  useMatrixStore.getState().setMatrix(
572
- createMockMatrix(TEST_SKILLS, {
559
+ createMockMatrix(SKILLS, {
573
560
  categories: {
574
561
  "web-framework": { domain: "web" }
575
562
  }
@@ -606,10 +593,8 @@ describe("WizardStore", () => {
606
593
  store.setSourceSelection("web-framework-react", "local");
607
594
  useMatrixStore.getState().setMatrix(
608
595
  createMockMatrix({
609
- "web-framework-react": {
610
- ...getTestSkill("react"),
611
- availableSources: [{ name: "Acme Corp", type: "private", installed: false }]
612
- }
596
+ ...SKILLS.react,
597
+ availableSources: [{ name: "Acme Corp", type: "private", installed: false }]
613
598
  })
614
599
  );
615
600
  store.setAllSourcesPlugin();
@@ -721,7 +706,7 @@ describe("WizardStore", () => {
721
706
  }
722
707
  };
723
708
  useMatrixStore.getState().setMatrix(
724
- createMockMatrix(TEST_SKILLS, {
709
+ createMockMatrix(SKILLS, {
725
710
  categories: {
726
711
  "web-framework": { domain: "web" }
727
712
  }
@@ -746,7 +731,7 @@ describe("WizardStore", () => {
746
731
  }
747
732
  };
748
733
  useMatrixStore.getState().setMatrix(
749
- createMockMatrix(TEST_SKILLS, {
734
+ createMockMatrix(SKILLS, {
750
735
  categories: {
751
736
  "web-framework": { domain: "web" },
752
737
  "web-client-state": { domain: "web" },
@@ -768,7 +753,7 @@ describe("WizardStore", () => {
768
753
  }
769
754
  };
770
755
  useMatrixStore.getState().setMatrix(
771
- createMockMatrix(TEST_SKILLS, {
756
+ createMockMatrix(SKILLS, {
772
757
  categories: {
773
758
  "shared-methodology": {}
774
759
  }
@@ -792,7 +777,7 @@ describe("WizardStore", () => {
792
777
  }
793
778
  };
794
779
  useMatrixStore.getState().setMatrix(
795
- createMockMatrix(TEST_SKILLS, {
780
+ createMockMatrix(SKILLS, {
796
781
  categories: {
797
782
  "shared-methodology": { domain: "shared" }
798
783
  }
@@ -821,7 +806,7 @@ describe("WizardStore", () => {
821
806
  }
822
807
  };
823
808
  useMatrixStore.getState().setMatrix(
824
- createMockMatrix(TEST_SKILLS, {
809
+ createMockMatrix(SKILLS, {
825
810
  categories: {
826
811
  "web-framework": { domain: "web" },
827
812
  "shared-methodology": { domain: "shared" },
@@ -857,7 +842,7 @@ describe("WizardStore", () => {
857
842
  }
858
843
  };
859
844
  useMatrixStore.getState().setMatrix(
860
- createMockMatrix(TEST_SKILLS, {
845
+ createMockMatrix(SKILLS, {
861
846
  categories: {
862
847
  "shared-methodology": { domain: "shared" }
863
848
  }
@@ -928,13 +913,13 @@ describe("WizardStore", () => {
928
913
  it("should sort local sources before scoped marketplace sources", () => {
929
914
  const store = useWizardStore.getState();
930
915
  const skill = {
931
- ...getTestSkill("react"),
916
+ ...SKILLS.react,
932
917
  availableSources: [
933
918
  makeSource({ name: "Acme Corp", type: "private", primary: true }),
934
919
  makeSource({ name: "local", type: "local", installed: true, installMode: "local" })
935
920
  ]
936
921
  };
937
- useMatrixStore.getState().setMatrix(createMockMatrix({ "web-framework-react": skill }));
922
+ useMatrixStore.getState().setMatrix(createMockMatrix(skill));
938
923
  store.toggleTechnology("web", "web-framework", "web-framework-react", true);
939
924
  const rows = store.buildSourceRows();
940
925
  globalExpect(rows).toHaveLength(1);
@@ -944,13 +929,13 @@ describe("WizardStore", () => {
944
929
  it("should sort scoped marketplace before default public marketplace", () => {
945
930
  const store = useWizardStore.getState();
946
931
  const skill = {
947
- ...getTestSkill("react"),
932
+ ...SKILLS.react,
948
933
  availableSources: [
949
934
  makeSource({ name: "agents-inc", type: "public" }),
950
935
  makeSource({ name: "Acme Corp", type: "private", primary: true })
951
936
  ]
952
937
  };
953
- useMatrixStore.getState().setMatrix(createMockMatrix({ "web-framework-react": skill }));
938
+ useMatrixStore.getState().setMatrix(createMockMatrix(skill));
954
939
  store.toggleTechnology("web", "web-framework", "web-framework-react", true);
955
940
  const rows = store.buildSourceRows();
956
941
  globalExpect(rows).toHaveLength(1);
@@ -961,13 +946,13 @@ describe("WizardStore", () => {
961
946
  it("should sort default public marketplace before third-party sources", () => {
962
947
  const store = useWizardStore.getState();
963
948
  const skill = {
964
- ...getTestSkill("react"),
949
+ ...SKILLS.react,
965
950
  availableSources: [
966
951
  makeSource({ name: "Extra Corp", type: "private" }),
967
952
  makeSource({ name: "agents-inc", type: "public" })
968
953
  ]
969
954
  };
970
- useMatrixStore.getState().setMatrix(createMockMatrix({ "web-framework-react": skill }));
955
+ useMatrixStore.getState().setMatrix(createMockMatrix(skill));
971
956
  store.toggleTechnology("web", "web-framework", "web-framework-react", true);
972
957
  const rows = store.buildSourceRows();
973
958
  globalExpect(rows).toHaveLength(1);
@@ -978,7 +963,7 @@ describe("WizardStore", () => {
978
963
  it("should sort all four tiers in correct order", () => {
979
964
  const store = useWizardStore.getState();
980
965
  const skill = {
981
- ...getTestSkill("react"),
966
+ ...SKILLS.react,
982
967
  availableSources: [
983
968
  makeSource({ name: "Extra Corp", type: "private" }),
984
969
  makeSource({ name: "agents-inc", type: "public" }),
@@ -986,7 +971,7 @@ describe("WizardStore", () => {
986
971
  makeSource({ name: "local", type: "local", installed: true, installMode: "local" })
987
972
  ]
988
973
  };
989
- useMatrixStore.getState().setMatrix(createMockMatrix({ "web-framework-react": skill }));
974
+ useMatrixStore.getState().setMatrix(createMockMatrix(skill));
990
975
  store.toggleTechnology("web", "web-framework", "web-framework-react", true);
991
976
  const rows = store.buildSourceRows();
992
977
  globalExpect(rows).toHaveLength(1);