@agents-inc/cli 0.68.0 → 0.71.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 +34 -0
- package/dist/chunk-2MHSOPIU.js +84 -0
- package/dist/chunk-2MHSOPIU.js.map +1 -0
- package/dist/{chunk-VTRVAXUM.js → chunk-2VT2DMD7.js} +6 -6
- package/dist/{chunk-KFDTVSIC.js → chunk-6YMW4HMX.js} +2 -2
- package/dist/{chunk-L5LD3ZSR.js → chunk-AX6MMYAZ.js} +4 -4
- package/dist/{chunk-45R64U2S.js → chunk-CADG5WWP.js} +13 -11
- package/dist/chunk-CADG5WWP.js.map +1 -0
- package/dist/chunk-DA3WIZ4C.js +253 -0
- package/dist/chunk-DA3WIZ4C.js.map +1 -0
- package/dist/chunk-DHBRWGRZ.js +58 -0
- package/dist/chunk-DHBRWGRZ.js.map +1 -0
- package/dist/{chunk-2JJUPWE5.js → chunk-HWVRHPXR.js} +2 -2
- package/dist/{chunk-N4D43IOO.js → chunk-J2D6OBIX.js} +26 -2
- package/dist/chunk-J2D6OBIX.js.map +1 -0
- package/dist/{chunk-KMDBOO3E.js → chunk-KANNRFY7.js} +2 -2
- package/dist/{chunk-SSGPFKS4.js → chunk-KSAGOKWT.js} +2 -2
- package/dist/{chunk-EULHBV5V.js → chunk-QOJAZI72.js} +2 -2
- package/dist/{chunk-JAWXWNIX.js → chunk-UDAHHJIM.js} +9 -9
- package/dist/{chunk-F6KEZ4Y5.js → chunk-UQM5YPPJ.js} +2 -2
- package/dist/{chunk-HADHP7XF.js → chunk-V5L532ZH.js} +6 -6
- package/dist/{chunk-RMMHVE2R.js → chunk-VUUGWE6G.js} +2 -2
- package/dist/chunk-WF5PMBIR.js +54 -0
- package/dist/chunk-WF5PMBIR.js.map +1 -0
- package/dist/{chunk-GK5CAS3A.js → chunk-X4RIMJNY.js} +2 -2
- package/dist/{chunk-QUEO6QEL.js → chunk-XB3TYSPL.js} +2 -2
- package/dist/{chunk-7LCI5PSJ.js → chunk-XMZNHLV3.js} +2 -2
- package/dist/{chunk-KBG7GYPL.js → chunk-XYRVAEI6.js} +74 -111
- package/dist/chunk-XYRVAEI6.js.map +1 -0
- package/dist/commands/build/plugins.js +2 -2
- package/dist/commands/build/stack.js +2 -2
- package/dist/commands/compile.js +2 -2
- package/dist/commands/config/index.js +2 -2
- package/dist/commands/config/path.js +1 -1
- package/dist/commands/config/show.js +2 -2
- package/dist/commands/diff.js +1 -1
- package/dist/commands/doctor.js +1 -1
- package/dist/commands/edit.js +17 -16
- package/dist/commands/edit.js.map +1 -1
- package/dist/commands/eject.js +1 -1
- package/dist/commands/import/skill.js +1 -1
- package/dist/commands/info.js +1 -1
- package/dist/commands/init.js +17 -16
- package/dist/commands/list.js +1 -1
- package/dist/commands/new/agent.js +2 -2
- package/dist/commands/new/marketplace.js +2 -2
- package/dist/commands/new/skill.js +2 -2
- package/dist/commands/outdated.js +1 -1
- package/dist/commands/search.js +1 -1
- package/dist/commands/uninstall.js +1 -1
- package/dist/commands/update.js +2 -2
- package/dist/commands/validate.js +1 -1
- package/dist/components/common/select-list.js +11 -0
- package/dist/components/wizard/category-grid.test.js +3 -3
- package/dist/components/wizard/domain-selection.js +3 -3
- 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 +11 -7
- package/dist/components/wizard/source-grid.test.js.map +1 -1
- package/dist/components/wizard/stack-selection.js +3 -3
- package/dist/components/wizard/step-agents.js +3 -3
- package/dist/components/wizard/step-agents.test.js +7 -6
- package/dist/components/wizard/step-agents.test.js.map +1 -1
- package/dist/components/wizard/step-build.js +4 -4
- package/dist/components/wizard/step-build.test.js +14 -49
- package/dist/components/wizard/step-build.test.js.map +1 -1
- package/dist/components/wizard/step-confirm.test.js +3 -3
- package/dist/components/wizard/step-settings.js +2 -2
- package/dist/components/wizard/step-settings.test.js +5 -5
- package/dist/components/wizard/step-sources.js +7 -6
- package/dist/components/wizard/step-sources.test.js +12 -10
- package/dist/components/wizard/step-sources.test.js.map +1 -1
- package/dist/components/wizard/step-stack.js +6 -6
- package/dist/components/wizard/step-stack.test.js +7 -7
- package/dist/components/wizard/wizard-layout.js +3 -3
- package/dist/components/wizard/wizard.js +16 -15
- package/dist/hooks/init.js +17 -16
- package/dist/hooks/init.js.map +1 -1
- package/dist/{source-loader-YMWWZFVD.js → source-loader-3MZ2MBOF.js} +2 -2
- package/dist/{source-manager-6G3EVTU2.js → source-manager-NEH6QXE5.js} +2 -2
- package/dist/source-manager-NEH6QXE5.js.map +1 -0
- package/dist/stores/matrix-store.test.js +14 -10
- package/dist/stores/matrix-store.test.js.map +1 -1
- package/dist/stores/wizard-store.js +2 -2
- package/dist/stores/wizard-store.test.js +28 -103
- package/dist/stores/wizard-store.test.js.map +1 -1
- package/package.json +1 -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-N4D43IOO.js.map +0 -1
- /package/dist/{chunk-VTRVAXUM.js.map → chunk-2VT2DMD7.js.map} +0 -0
- /package/dist/{chunk-KFDTVSIC.js.map → chunk-6YMW4HMX.js.map} +0 -0
- /package/dist/{chunk-L5LD3ZSR.js.map → chunk-AX6MMYAZ.js.map} +0 -0
- /package/dist/{chunk-2JJUPWE5.js.map → chunk-HWVRHPXR.js.map} +0 -0
- /package/dist/{chunk-KMDBOO3E.js.map → chunk-KANNRFY7.js.map} +0 -0
- /package/dist/{chunk-SSGPFKS4.js.map → chunk-KSAGOKWT.js.map} +0 -0
- /package/dist/{chunk-EULHBV5V.js.map → chunk-QOJAZI72.js.map} +0 -0
- /package/dist/{chunk-JAWXWNIX.js.map → chunk-UDAHHJIM.js.map} +0 -0
- /package/dist/{chunk-F6KEZ4Y5.js.map → chunk-UQM5YPPJ.js.map} +0 -0
- /package/dist/{chunk-HADHP7XF.js.map → chunk-V5L532ZH.js.map} +0 -0
- /package/dist/{chunk-RMMHVE2R.js.map → chunk-VUUGWE6G.js.map} +0 -0
- /package/dist/{chunk-GK5CAS3A.js.map → chunk-X4RIMJNY.js.map} +0 -0
- /package/dist/{chunk-QUEO6QEL.js.map → chunk-XB3TYSPL.js.map} +0 -0
- /package/dist/{chunk-7LCI5PSJ.js.map → chunk-XMZNHLV3.js.map} +0 -0
- /package/dist/{source-loader-YMWWZFVD.js.map → components/common/select-list.js.map} +0 -0
- /package/dist/{source-manager-6G3EVTU2.js.map → source-loader-3MZ2MBOF.js.map} +0 -0
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
ALL_SKILLS_FULLSTACK_CATEGORIES_MATRIX,
|
|
4
|
+
ALL_SKILLS_METHODOLOGY_BARE_MATRIX,
|
|
5
|
+
ALL_SKILLS_METHODOLOGY_MATRIX,
|
|
6
|
+
ALL_SKILLS_MULTI_DOMAIN_MATRIX,
|
|
7
|
+
ALL_SKILLS_TEST_CATEGORIES_MATRIX,
|
|
8
|
+
ALL_SKILLS_WEB_AND_API_MATRIX,
|
|
9
|
+
ALL_SKILLS_WEB_FRAMEWORK_MATRIX,
|
|
10
|
+
ALL_SKILLS_WEB_PAIR_CATEGORIES_MATRIX,
|
|
11
|
+
REACT_HONO_FRAMEWORK_API_MATRIX
|
|
12
|
+
} from "../chunk-DA3WIZ4C.js";
|
|
13
|
+
import "../chunk-DHBRWGRZ.js";
|
|
2
14
|
import {
|
|
3
15
|
SKILLS,
|
|
4
|
-
TEST_CATEGORIES,
|
|
5
16
|
createMockMatrix
|
|
6
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-J2D6OBIX.js";
|
|
7
18
|
import {
|
|
8
19
|
beforeEach,
|
|
9
20
|
describe,
|
|
@@ -12,8 +23,8 @@ import {
|
|
|
12
23
|
} from "../chunk-XY3XDVMI.js";
|
|
13
24
|
import {
|
|
14
25
|
useWizardStore
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
26
|
+
} from "../chunk-QOJAZI72.js";
|
|
27
|
+
import "../chunk-CADG5WWP.js";
|
|
17
28
|
import "../chunk-L6MTIQ2U.js";
|
|
18
29
|
import {
|
|
19
30
|
typedKeys
|
|
@@ -35,11 +46,7 @@ function sa(id, preloaded = false) {
|
|
|
35
46
|
}
|
|
36
47
|
describe("WizardStore", () => {
|
|
37
48
|
beforeEach(() => {
|
|
38
|
-
useMatrixStore.getState().setMatrix(
|
|
39
|
-
createMockMatrix(SKILLS, {
|
|
40
|
-
categories: TEST_CATEGORIES
|
|
41
|
-
})
|
|
42
|
-
);
|
|
49
|
+
useMatrixStore.getState().setMatrix(ALL_SKILLS_TEST_CATEGORIES_MATRIX);
|
|
43
50
|
});
|
|
44
51
|
describe("initial state", () => {
|
|
45
52
|
it("should start at stack step", () => {
|
|
@@ -211,15 +218,7 @@ describe("WizardStore", () => {
|
|
|
211
218
|
api: { "api-api": [sa("api-framework-hono", true)] }
|
|
212
219
|
}
|
|
213
220
|
};
|
|
214
|
-
useMatrixStore.getState().setMatrix(
|
|
215
|
-
createMockMatrix(SKILLS, {
|
|
216
|
-
categories: {
|
|
217
|
-
"web-framework": { domain: "web" },
|
|
218
|
-
"web-client-state": { domain: "web" },
|
|
219
|
-
"api-api": { domain: "api" }
|
|
220
|
-
}
|
|
221
|
-
})
|
|
222
|
-
);
|
|
221
|
+
useMatrixStore.getState().setMatrix(ALL_SKILLS_FULLSTACK_CATEGORIES_MATRIX);
|
|
223
222
|
store.populateFromStack(stack);
|
|
224
223
|
store.toggleDomain("web");
|
|
225
224
|
globalExpect(useWizardStore.getState().domainSelections.web).toBeUndefined();
|
|
@@ -230,14 +229,7 @@ describe("WizardStore", () => {
|
|
|
230
229
|
});
|
|
231
230
|
it("should restore stack skills when re-toggling a domain ON after populateFromSkillIds", () => {
|
|
232
231
|
const store = useWizardStore.getState();
|
|
233
|
-
useMatrixStore.getState().setMatrix(
|
|
234
|
-
createMockMatrix(SKILLS.react, SKILLS.hono, {
|
|
235
|
-
categories: {
|
|
236
|
-
"web-framework": TEST_CATEGORIES.framework,
|
|
237
|
-
"api-api": TEST_CATEGORIES.api
|
|
238
|
-
}
|
|
239
|
-
})
|
|
240
|
-
);
|
|
232
|
+
useMatrixStore.getState().setMatrix(REACT_HONO_FRAMEWORK_API_MATRIX);
|
|
241
233
|
store.populateFromSkillIds(["web-framework-react", "api-framework-hono"]);
|
|
242
234
|
store.toggleDomain("web");
|
|
243
235
|
globalExpect(useWizardStore.getState().domainSelections.web).toBeUndefined();
|
|
@@ -263,14 +255,7 @@ describe("WizardStore", () => {
|
|
|
263
255
|
api: { "api-api": [sa("api-framework-hono", true)] }
|
|
264
256
|
}
|
|
265
257
|
};
|
|
266
|
-
useMatrixStore.getState().setMatrix(
|
|
267
|
-
createMockMatrix(SKILLS, {
|
|
268
|
-
categories: {
|
|
269
|
-
"web-framework": { domain: "web" },
|
|
270
|
-
"api-api": { domain: "api" }
|
|
271
|
-
}
|
|
272
|
-
})
|
|
273
|
-
);
|
|
258
|
+
useMatrixStore.getState().setMatrix(ALL_SKILLS_WEB_AND_API_MATRIX);
|
|
274
259
|
store.populateFromStack(stack);
|
|
275
260
|
store.toggleTechnology("api", "api-api", "api-framework-hono", true);
|
|
276
261
|
store.toggleTechnology("api", "api-api", "api-framework-express", true);
|
|
@@ -507,14 +492,7 @@ describe("WizardStore", () => {
|
|
|
507
492
|
}
|
|
508
493
|
}
|
|
509
494
|
};
|
|
510
|
-
useMatrixStore.getState().setMatrix(
|
|
511
|
-
createMockMatrix(SKILLS, {
|
|
512
|
-
categories: {
|
|
513
|
-
"web-framework": { domain: "web" },
|
|
514
|
-
"web-client-state": { domain: "web" }
|
|
515
|
-
}
|
|
516
|
-
})
|
|
517
|
-
);
|
|
495
|
+
useMatrixStore.getState().setMatrix(ALL_SKILLS_WEB_PAIR_CATEGORIES_MATRIX);
|
|
518
496
|
store.populateFromStack(stack);
|
|
519
497
|
const { skillConfigs } = useWizardStore.getState();
|
|
520
498
|
globalExpect(skillConfigs).toHaveLength(2);
|
|
@@ -524,14 +502,7 @@ describe("WizardStore", () => {
|
|
|
524
502
|
});
|
|
525
503
|
it("should populate skillConfigs from populateFromSkillIds", () => {
|
|
526
504
|
const store = useWizardStore.getState();
|
|
527
|
-
useMatrixStore.getState().setMatrix(
|
|
528
|
-
createMockMatrix(SKILLS.react, SKILLS.hono, {
|
|
529
|
-
categories: {
|
|
530
|
-
"web-framework": TEST_CATEGORIES.framework,
|
|
531
|
-
"api-api": TEST_CATEGORIES.api
|
|
532
|
-
}
|
|
533
|
-
})
|
|
534
|
-
);
|
|
505
|
+
useMatrixStore.getState().setMatrix(REACT_HONO_FRAMEWORK_API_MATRIX);
|
|
535
506
|
store.populateFromSkillIds(["web-framework-react", "api-framework-hono"]);
|
|
536
507
|
const { skillConfigs } = useWizardStore.getState();
|
|
537
508
|
globalExpect(skillConfigs).toHaveLength(2);
|
|
@@ -555,13 +526,7 @@ describe("WizardStore", () => {
|
|
|
555
526
|
web: { "web-framework": [sa("web-framework-react", true)] }
|
|
556
527
|
}
|
|
557
528
|
};
|
|
558
|
-
useMatrixStore.getState().setMatrix(
|
|
559
|
-
createMockMatrix(SKILLS, {
|
|
560
|
-
categories: {
|
|
561
|
-
"web-framework": { domain: "web" }
|
|
562
|
-
}
|
|
563
|
-
})
|
|
564
|
-
);
|
|
529
|
+
useMatrixStore.getState().setMatrix(ALL_SKILLS_WEB_FRAMEWORK_MATRIX);
|
|
565
530
|
store.populateFromStack(stack);
|
|
566
531
|
globalExpect(useWizardStore.getState().skillConfigs).toHaveLength(1);
|
|
567
532
|
store.toggleDomain("web");
|
|
@@ -705,13 +670,7 @@ describe("WizardStore", () => {
|
|
|
705
670
|
web: { "web-framework": [sa("web-framework-react", true)] }
|
|
706
671
|
}
|
|
707
672
|
};
|
|
708
|
-
useMatrixStore.getState().setMatrix(
|
|
709
|
-
createMockMatrix(SKILLS, {
|
|
710
|
-
categories: {
|
|
711
|
-
"web-framework": { domain: "web" }
|
|
712
|
-
}
|
|
713
|
-
})
|
|
714
|
-
);
|
|
673
|
+
useMatrixStore.getState().setMatrix(ALL_SKILLS_WEB_FRAMEWORK_MATRIX);
|
|
715
674
|
store.populateFromStack(stack);
|
|
716
675
|
const { selectedDomains, domainSelections } = useWizardStore.getState();
|
|
717
676
|
globalExpect(selectedDomains).toEqual(["web", "api", "mobile", "cli", "shared"]);
|
|
@@ -730,15 +689,7 @@ describe("WizardStore", () => {
|
|
|
730
689
|
api: { "api-api": [sa("api-framework-hono", true)] }
|
|
731
690
|
}
|
|
732
691
|
};
|
|
733
|
-
useMatrixStore.getState().setMatrix(
|
|
734
|
-
createMockMatrix(SKILLS, {
|
|
735
|
-
categories: {
|
|
736
|
-
"web-framework": { domain: "web" },
|
|
737
|
-
"web-client-state": { domain: "web" },
|
|
738
|
-
"api-api": { domain: "api" }
|
|
739
|
-
}
|
|
740
|
-
})
|
|
741
|
-
);
|
|
692
|
+
useMatrixStore.getState().setMatrix(ALL_SKILLS_FULLSTACK_CATEGORIES_MATRIX);
|
|
742
693
|
store.populateFromStack(stack);
|
|
743
694
|
const { domainSelections } = useWizardStore.getState();
|
|
744
695
|
globalExpect(domainSelections.web["web-framework"]).toEqual(["web-framework-react"]);
|
|
@@ -752,13 +703,7 @@ describe("WizardStore", () => {
|
|
|
752
703
|
misc: { "shared-methodology": [sa("meta-methodology-vitest")] }
|
|
753
704
|
}
|
|
754
705
|
};
|
|
755
|
-
useMatrixStore.getState().setMatrix(
|
|
756
|
-
createMockMatrix(SKILLS, {
|
|
757
|
-
categories: {
|
|
758
|
-
"shared-methodology": {}
|
|
759
|
-
}
|
|
760
|
-
})
|
|
761
|
-
);
|
|
706
|
+
useMatrixStore.getState().setMatrix(ALL_SKILLS_METHODOLOGY_BARE_MATRIX);
|
|
762
707
|
store.populateFromStack(stack);
|
|
763
708
|
const { domainSelections } = useWizardStore.getState();
|
|
764
709
|
globalExpect(typedKeys(domainSelections)).toHaveLength(0);
|
|
@@ -776,13 +721,7 @@ describe("WizardStore", () => {
|
|
|
776
721
|
}
|
|
777
722
|
}
|
|
778
723
|
};
|
|
779
|
-
useMatrixStore.getState().setMatrix(
|
|
780
|
-
createMockMatrix(SKILLS, {
|
|
781
|
-
categories: {
|
|
782
|
-
"shared-methodology": { domain: "shared" }
|
|
783
|
-
}
|
|
784
|
-
})
|
|
785
|
-
);
|
|
724
|
+
useMatrixStore.getState().setMatrix(ALL_SKILLS_METHODOLOGY_MATRIX);
|
|
786
725
|
store.populateFromStack(stack);
|
|
787
726
|
const { domainSelections } = useWizardStore.getState();
|
|
788
727
|
globalExpect(domainSelections.shared["shared-methodology"]).toEqual([
|
|
@@ -805,15 +744,7 @@ describe("WizardStore", () => {
|
|
|
805
744
|
api: { "api-api": [sa("api-framework-hono", true)] }
|
|
806
745
|
}
|
|
807
746
|
};
|
|
808
|
-
useMatrixStore.getState().setMatrix(
|
|
809
|
-
createMockMatrix(SKILLS, {
|
|
810
|
-
categories: {
|
|
811
|
-
"web-framework": { domain: "web" },
|
|
812
|
-
"shared-methodology": { domain: "shared" },
|
|
813
|
-
"api-api": { domain: "api" }
|
|
814
|
-
}
|
|
815
|
-
})
|
|
816
|
-
);
|
|
747
|
+
useMatrixStore.getState().setMatrix(ALL_SKILLS_MULTI_DOMAIN_MATRIX);
|
|
817
748
|
store.populateFromStack(stack);
|
|
818
749
|
const { domainSelections } = useWizardStore.getState();
|
|
819
750
|
globalExpect(domainSelections.web["web-framework"]).toEqual(["web-framework-react"]);
|
|
@@ -841,13 +772,7 @@ describe("WizardStore", () => {
|
|
|
841
772
|
}
|
|
842
773
|
}
|
|
843
774
|
};
|
|
844
|
-
useMatrixStore.getState().setMatrix(
|
|
845
|
-
createMockMatrix(SKILLS, {
|
|
846
|
-
categories: {
|
|
847
|
-
"shared-methodology": { domain: "shared" }
|
|
848
|
-
}
|
|
849
|
-
})
|
|
850
|
-
);
|
|
775
|
+
useMatrixStore.getState().setMatrix(ALL_SKILLS_METHODOLOGY_MATRIX);
|
|
851
776
|
store.populateFromStack(stack);
|
|
852
777
|
const { domainSelections } = useWizardStore.getState();
|
|
853
778
|
globalExpect(domainSelections.shared["shared-methodology"]).toEqual([
|