@agents-inc/cli 0.64.0 → 0.65.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 +10 -0
- package/dist/{chunk-MOMI77PL.js → chunk-N4D43IOO.js} +57 -137
- package/dist/chunk-N4D43IOO.js.map +1 -0
- package/dist/components/wizard/category-grid.test.js +6 -6
- package/dist/components/wizard/category-grid.test.js.map +1 -1
- package/dist/components/wizard/search-modal.test.js.map +1 -1
- package/dist/components/wizard/source-grid.test.js +3 -8
- package/dist/components/wizard/source-grid.test.js.map +1 -1
- package/dist/components/wizard/step-agents.test.js +2 -2
- package/dist/components/wizard/step-agents.test.js.map +1 -1
- package/dist/components/wizard/step-build.test.js +56 -70
- package/dist/components/wizard/step-build.test.js.map +1 -1
- package/dist/components/wizard/step-confirm.test.js +1 -1
- package/dist/components/wizard/step-sources.test.js +4 -3
- package/dist/components/wizard/step-sources.test.js.map +1 -1
- package/dist/components/wizard/step-stack.test.js +12 -22
- package/dist/components/wizard/step-stack.test.js.map +1 -1
- package/dist/stores/matrix-store.test.js +18 -41
- package/dist/stores/matrix-store.test.js.map +1 -1
- package/dist/stores/wizard-store.test.js +34 -49
- package/dist/stores/wizard-store.test.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-MOMI77PL.js.map +0 -1
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
+
SKILLS,
|
|
3
4
|
TEST_CATEGORIES,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
getTestSkill
|
|
7
|
-
} from "../chunk-MOMI77PL.js";
|
|
5
|
+
createMockMatrix
|
|
6
|
+
} from "../chunk-N4D43IOO.js";
|
|
8
7
|
import {
|
|
9
8
|
beforeEach,
|
|
10
9
|
describe,
|
|
@@ -37,7 +36,7 @@ function sa(id, preloaded = false) {
|
|
|
37
36
|
describe("WizardStore", () => {
|
|
38
37
|
beforeEach(() => {
|
|
39
38
|
useMatrixStore.getState().setMatrix(
|
|
40
|
-
createMockMatrix(
|
|
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(
|
|
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
|
|
238
|
-
"api-
|
|
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(
|
|
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(
|
|
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
|
|
538
|
-
"api-
|
|
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(
|
|
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
|
-
|
|
610
|
-
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
-
...
|
|
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(
|
|
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
|
-
...
|
|
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(
|
|
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
|
-
...
|
|
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(
|
|
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
|
-
...
|
|
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(
|
|
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);
|