@agents-inc/cli 0.65.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.
Files changed (132) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/dist/chunk-2MHSOPIU.js +84 -0
  3. package/dist/chunk-2MHSOPIU.js.map +1 -0
  4. package/dist/{chunk-BGPGQF35.js → chunk-2VT2DMD7.js} +6 -6
  5. package/dist/{chunk-FGLUQSVU.js → chunk-6BXKF5GP.js} +2 -2
  6. package/dist/{chunk-KFDTVSIC.js → chunk-6YMW4HMX.js} +2 -2
  7. package/dist/{chunk-6DEK3TDF.js → chunk-AX6MMYAZ.js} +4 -4
  8. package/dist/{chunk-53URJ5XK.js → chunk-CADG5WWP.js} +32 -30
  9. package/dist/chunk-CADG5WWP.js.map +1 -0
  10. package/dist/chunk-DA3WIZ4C.js +253 -0
  11. package/dist/chunk-DA3WIZ4C.js.map +1 -0
  12. package/dist/chunk-DHBRWGRZ.js +58 -0
  13. package/dist/chunk-DHBRWGRZ.js.map +1 -0
  14. package/dist/{chunk-EE5EPS32.js → chunk-FCF4WQEI.js} +2 -2
  15. package/dist/{chunk-J4POGAJF.js → chunk-HWVRHPXR.js} +2 -2
  16. package/dist/{chunk-N4D43IOO.js → chunk-J2D6OBIX.js} +26 -2
  17. package/dist/chunk-J2D6OBIX.js.map +1 -0
  18. package/dist/{chunk-O2HK3NTG.js → chunk-KANNRFY7.js} +2 -2
  19. package/dist/{chunk-YEGPTBX5.js → chunk-KSAGOKWT.js} +3 -3
  20. package/dist/{chunk-EC3UJRKZ.js → chunk-KWB3B2HS.js} +92 -163
  21. package/dist/chunk-KWB3B2HS.js.map +1 -0
  22. package/dist/{chunk-7DI3HGKL.js → chunk-KYULKBFC.js} +2 -2
  23. package/dist/chunk-KYULKBFC.js.map +1 -0
  24. package/dist/{chunk-F3REOP7N.js → chunk-L6MTIQ2U.js} +2 -2
  25. package/dist/{chunk-4C7CSZC5.js → chunk-QOJAZI72.js} +3 -3
  26. package/dist/{chunk-LMZXL5RQ.js → chunk-R3AR4VLZ.js} +11 -11
  27. package/dist/chunk-R3AR4VLZ.js.map +1 -0
  28. package/dist/{chunk-OORWBS6F.js → chunk-UDAHHJIM.js} +16 -10
  29. package/dist/chunk-UDAHHJIM.js.map +1 -0
  30. package/dist/{chunk-ZFY5EMDV.js → chunk-UQM5YPPJ.js} +4 -4
  31. package/dist/{chunk-WSMQ5GAP.js → chunk-V5L532ZH.js} +6 -6
  32. package/dist/{chunk-4KVBH2X4.js → chunk-VUUGWE6G.js} +3 -3
  33. package/dist/chunk-WF5PMBIR.js +54 -0
  34. package/dist/chunk-WF5PMBIR.js.map +1 -0
  35. package/dist/{chunk-R46CB36B.js → chunk-X4RIMJNY.js} +4 -4
  36. package/dist/{chunk-RG3KDXMR.js → chunk-XB3TYSPL.js} +3 -3
  37. package/dist/{chunk-EZ35IPXZ.js → chunk-XMZNHLV3.js} +2 -2
  38. package/dist/{chunk-3YNT3NX3.js → chunk-XYRVAEI6.js} +76 -113
  39. package/dist/chunk-XYRVAEI6.js.map +1 -0
  40. package/dist/commands/build/marketplace.js +3 -3
  41. package/dist/commands/build/plugins.js +6 -6
  42. package/dist/commands/build/stack.js +6 -6
  43. package/dist/commands/compile.js +6 -6
  44. package/dist/commands/config/index.js +6 -6
  45. package/dist/commands/config/path.js +5 -5
  46. package/dist/commands/config/show.js +6 -6
  47. package/dist/commands/diff.js +5 -5
  48. package/dist/commands/doctor.js +5 -5
  49. package/dist/commands/edit.js +45 -24
  50. package/dist/commands/edit.js.map +1 -1
  51. package/dist/commands/eject.js +5 -5
  52. package/dist/commands/import/skill.js +5 -5
  53. package/dist/commands/info.js +5 -5
  54. package/dist/commands/init.js +22 -21
  55. package/dist/commands/list.js +5 -5
  56. package/dist/commands/new/agent.js +6 -6
  57. package/dist/commands/new/marketplace.js +7 -7
  58. package/dist/commands/new/skill.js +6 -6
  59. package/dist/commands/outdated.js +5 -5
  60. package/dist/commands/search.js +5 -5
  61. package/dist/commands/uninstall.js +5 -5
  62. package/dist/commands/update.js +6 -6
  63. package/dist/commands/validate.js +5 -5
  64. package/dist/components/common/select-list.js +11 -0
  65. package/dist/components/wizard/category-grid.test.js +6 -6
  66. package/dist/components/wizard/domain-selection.js +6 -6
  67. package/dist/components/wizard/help-modal.js +1 -1
  68. package/dist/components/wizard/search-modal.js +2 -1
  69. package/dist/components/wizard/search-modal.test.js +3 -2
  70. package/dist/components/wizard/search-modal.test.js.map +1 -1
  71. package/dist/components/wizard/source-grid.js +3 -2
  72. package/dist/components/wizard/source-grid.test.js +14 -10
  73. package/dist/components/wizard/source-grid.test.js.map +1 -1
  74. package/dist/components/wizard/stack-selection.js +6 -6
  75. package/dist/components/wizard/step-agents.js +6 -6
  76. package/dist/components/wizard/step-agents.test.js +10 -9
  77. package/dist/components/wizard/step-agents.test.js.map +1 -1
  78. package/dist/components/wizard/step-build.js +7 -7
  79. package/dist/components/wizard/step-build.test.js +17 -52
  80. package/dist/components/wizard/step-build.test.js.map +1 -1
  81. package/dist/components/wizard/step-confirm.test.js +6 -6
  82. package/dist/components/wizard/step-settings.js +5 -5
  83. package/dist/components/wizard/step-settings.test.js +8 -8
  84. package/dist/components/wizard/step-sources.js +10 -9
  85. package/dist/components/wizard/step-sources.test.js +15 -13
  86. package/dist/components/wizard/step-sources.test.js.map +1 -1
  87. package/dist/components/wizard/step-stack.js +9 -9
  88. package/dist/components/wizard/step-stack.test.js +10 -10
  89. package/dist/components/wizard/wizard-layout.js +7 -7
  90. package/dist/components/wizard/wizard.js +20 -19
  91. package/dist/config-exports.js +1 -1
  92. package/dist/hooks/init.js +22 -21
  93. package/dist/hooks/init.js.map +1 -1
  94. package/dist/{loader-4YOZCFIP.js → loader-CMSC3RAO.js} +3 -3
  95. package/dist/{source-loader-O5RMYUBW.js → source-loader-3MZ2MBOF.js} +5 -5
  96. package/dist/{source-manager-NKLL6HCL.js → source-manager-NEH6QXE5.js} +5 -5
  97. package/dist/source-manager-NEH6QXE5.js.map +1 -0
  98. package/dist/stores/matrix-store.test.js +17 -13
  99. package/dist/stores/matrix-store.test.js.map +1 -1
  100. package/dist/stores/wizard-store.js +5 -5
  101. package/dist/stores/wizard-store.test.js +31 -106
  102. package/dist/stores/wizard-store.test.js.map +1 -1
  103. package/package.json +1 -1
  104. package/src/schemas/metadata.schema.json +1 -1
  105. package/dist/chunk-3YNT3NX3.js.map +0 -1
  106. package/dist/chunk-53URJ5XK.js.map +0 -1
  107. package/dist/chunk-6IK2TCK7.js +0 -97
  108. package/dist/chunk-6IK2TCK7.js.map +0 -1
  109. package/dist/chunk-7DI3HGKL.js.map +0 -1
  110. package/dist/chunk-EC3UJRKZ.js.map +0 -1
  111. package/dist/chunk-LMZXL5RQ.js.map +0 -1
  112. package/dist/chunk-N4D43IOO.js.map +0 -1
  113. package/dist/chunk-OORWBS6F.js.map +0 -1
  114. /package/dist/{chunk-BGPGQF35.js.map → chunk-2VT2DMD7.js.map} +0 -0
  115. /package/dist/{chunk-FGLUQSVU.js.map → chunk-6BXKF5GP.js.map} +0 -0
  116. /package/dist/{chunk-KFDTVSIC.js.map → chunk-6YMW4HMX.js.map} +0 -0
  117. /package/dist/{chunk-6DEK3TDF.js.map → chunk-AX6MMYAZ.js.map} +0 -0
  118. /package/dist/{chunk-EE5EPS32.js.map → chunk-FCF4WQEI.js.map} +0 -0
  119. /package/dist/{chunk-J4POGAJF.js.map → chunk-HWVRHPXR.js.map} +0 -0
  120. /package/dist/{chunk-O2HK3NTG.js.map → chunk-KANNRFY7.js.map} +0 -0
  121. /package/dist/{chunk-YEGPTBX5.js.map → chunk-KSAGOKWT.js.map} +0 -0
  122. /package/dist/{chunk-F3REOP7N.js.map → chunk-L6MTIQ2U.js.map} +0 -0
  123. /package/dist/{chunk-4C7CSZC5.js.map → chunk-QOJAZI72.js.map} +0 -0
  124. /package/dist/{chunk-ZFY5EMDV.js.map → chunk-UQM5YPPJ.js.map} +0 -0
  125. /package/dist/{chunk-WSMQ5GAP.js.map → chunk-V5L532ZH.js.map} +0 -0
  126. /package/dist/{chunk-4KVBH2X4.js.map → chunk-VUUGWE6G.js.map} +0 -0
  127. /package/dist/{chunk-R46CB36B.js.map → chunk-X4RIMJNY.js.map} +0 -0
  128. /package/dist/{chunk-RG3KDXMR.js.map → chunk-XB3TYSPL.js.map} +0 -0
  129. /package/dist/{chunk-EZ35IPXZ.js.map → chunk-XMZNHLV3.js.map} +0 -0
  130. /package/dist/{loader-4YOZCFIP.js.map → components/common/select-list.js.map} +0 -0
  131. /package/dist/{source-loader-O5RMYUBW.js.map → loader-CMSC3RAO.js.map} +0 -0
  132. /package/dist/{source-manager-NKLL6HCL.js.map → source-loader-3MZ2MBOF.js.map} +0 -0
@@ -1,43 +1,44 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  Wizard
4
- } from "../../chunk-OORWBS6F.js";
5
- import "../../chunk-4KVBH2X4.js";
4
+ } from "../../chunk-UDAHHJIM.js";
5
+ import "../../chunk-VUUGWE6G.js";
6
6
  import "../../chunk-SXGBPQY6.js";
7
- import "../../chunk-RG3KDXMR.js";
8
- import "../../chunk-WSMQ5GAP.js";
7
+ import "../../chunk-XB3TYSPL.js";
8
+ import "../../chunk-V5L532ZH.js";
9
9
  import "../../chunk-HGTC76BX.js";
10
- import "../../chunk-6DEK3TDF.js";
11
- import "../../chunk-EZ35IPXZ.js";
12
- import "../../chunk-J4POGAJF.js";
13
- import "../../chunk-BGPGQF35.js";
10
+ import "../../chunk-AX6MMYAZ.js";
11
+ import "../../chunk-6YMW4HMX.js";
12
+ import "../../chunk-7SOPVGDV.js";
13
+ import "../../chunk-XMZNHLV3.js";
14
+ import "../../chunk-HWVRHPXR.js";
15
+ import "../../chunk-2VT2DMD7.js";
14
16
  import "../../chunk-K77I4XGL.js";
15
17
  import "../../chunk-52THXN5G.js";
16
- import "../../chunk-7DI3HGKL.js";
18
+ import "../../chunk-KANNRFY7.js";
19
+ import "../../chunk-ZYUASJUN.js";
20
+ import "../../chunk-KYULKBFC.js";
21
+ import "../../chunk-2MHSOPIU.js";
17
22
  import "../../chunk-MWGDG4QN.js";
18
- import "../../chunk-KFDTVSIC.js";
19
- import "../../chunk-7SOPVGDV.js";
20
- import "../../chunk-6IK2TCK7.js";
23
+ import "../../chunk-WF5PMBIR.js";
21
24
  import "../../chunk-KUV24B5M.js";
22
25
  import "../../chunk-CKPJTMNC.js";
23
26
  import "../../chunk-GG4BSB6S.js";
24
- import "../../chunk-O2HK3NTG.js";
25
- import "../../chunk-ZYUASJUN.js";
26
27
  import "../../chunk-OV5UJWS5.js";
27
28
  import "../../chunk-XMLCXRTS.js";
28
29
  import "../../chunk-AQYAVLZK.js";
29
30
  import "../../chunk-AUNBGZS4.js";
30
- import "../../chunk-4C7CSZC5.js";
31
+ import "../../chunk-QOJAZI72.js";
31
32
  import "../../chunk-T5DJCIUP.js";
32
33
  import "../../chunk-U3IGFMCY.js";
33
34
  import "../../chunk-6VIOO74O.js";
34
- import "../../chunk-53URJ5XK.js";
35
- import "../../chunk-F3REOP7N.js";
35
+ import "../../chunk-CADG5WWP.js";
36
+ import "../../chunk-L6MTIQ2U.js";
36
37
  import "../../chunk-T4EXUIBY.js";
37
38
  import "../../chunk-BKL3DF2Q.js";
38
- import "../../chunk-LMZXL5RQ.js";
39
+ import "../../chunk-R3AR4VLZ.js";
39
40
  import "../../chunk-EGMQ3SXN.js";
40
- import "../../chunk-EC3UJRKZ.js";
41
+ import "../../chunk-KWB3B2HS.js";
41
42
  import "../../chunk-DHET7RCE.js";
42
43
  export {
43
44
  Wizard
@@ -4,7 +4,7 @@ import {
4
4
  defaultRules,
5
5
  defaultStacks,
6
6
  defineConfig
7
- } from "./chunk-EC3UJRKZ.js";
7
+ } from "./chunk-KWB3B2HS.js";
8
8
  import {
9
9
  init_esm_shims
10
10
  } from "./chunk-DHET7RCE.js";
@@ -1,34 +1,35 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  showDashboard
4
- } from "../chunk-3YNT3NX3.js";
5
- import "../chunk-OORWBS6F.js";
6
- import "../chunk-4KVBH2X4.js";
4
+ } from "../chunk-XYRVAEI6.js";
5
+ import "../chunk-UDAHHJIM.js";
6
+ import "../chunk-VUUGWE6G.js";
7
7
  import "../chunk-SXGBPQY6.js";
8
- import "../chunk-RG3KDXMR.js";
9
- import "../chunk-WSMQ5GAP.js";
8
+ import "../chunk-XB3TYSPL.js";
9
+ import "../chunk-V5L532ZH.js";
10
10
  import "../chunk-HGTC76BX.js";
11
- import "../chunk-6DEK3TDF.js";
12
- import "../chunk-EZ35IPXZ.js";
13
- import "../chunk-J4POGAJF.js";
14
- import "../chunk-BGPGQF35.js";
11
+ import "../chunk-AX6MMYAZ.js";
12
+ import "../chunk-6YMW4HMX.js";
13
+ import "../chunk-7SOPVGDV.js";
14
+ import "../chunk-XMZNHLV3.js";
15
+ import "../chunk-HWVRHPXR.js";
16
+ import "../chunk-2VT2DMD7.js";
15
17
  import "../chunk-K77I4XGL.js";
16
18
  import "../chunk-52THXN5G.js";
17
- import "../chunk-7DI3HGKL.js";
19
+ import "../chunk-KANNRFY7.js";
20
+ import "../chunk-ZYUASJUN.js";
21
+ import "../chunk-KYULKBFC.js";
22
+ import "../chunk-2MHSOPIU.js";
18
23
  import "../chunk-MWGDG4QN.js";
19
- import "../chunk-KFDTVSIC.js";
20
- import "../chunk-7SOPVGDV.js";
21
- import "../chunk-6IK2TCK7.js";
24
+ import "../chunk-WF5PMBIR.js";
22
25
  import "../chunk-KUV24B5M.js";
23
26
  import "../chunk-CKPJTMNC.js";
24
27
  import "../chunk-GG4BSB6S.js";
25
- import "../chunk-O2HK3NTG.js";
26
- import "../chunk-ZYUASJUN.js";
27
28
  import "../chunk-OV5UJWS5.js";
28
29
  import "../chunk-XMLCXRTS.js";
29
30
  import "../chunk-AQYAVLZK.js";
30
31
  import "../chunk-AUNBGZS4.js";
31
- import "../chunk-4C7CSZC5.js";
32
+ import "../chunk-QOJAZI72.js";
32
33
  import "../chunk-T5DJCIUP.js";
33
34
  import "../chunk-U3IGFMCY.js";
34
35
  import "../chunk-6VIOO74O.js";
@@ -37,16 +38,16 @@ import {
37
38
  detectInstallation,
38
39
  hasIndividualPlugins,
39
40
  resolveSource
40
- } from "../chunk-53URJ5XK.js";
41
- import "../chunk-F3REOP7N.js";
41
+ } from "../chunk-CADG5WWP.js";
42
+ import "../chunk-L6MTIQ2U.js";
42
43
  import "../chunk-T4EXUIBY.js";
43
44
  import "../chunk-BKL3DF2Q.js";
44
45
  import {
45
46
  EXIT_CODES
46
- } from "../chunk-EE5EPS32.js";
47
- import "../chunk-LMZXL5RQ.js";
47
+ } from "../chunk-FCF4WQEI.js";
48
+ import "../chunk-R3AR4VLZ.js";
48
49
  import "../chunk-EGMQ3SXN.js";
49
- import "../chunk-EC3UJRKZ.js";
50
+ import "../chunk-KWB3B2HS.js";
50
51
  import {
51
52
  init_esm_shims
52
53
  } from "../chunk-DHET7RCE.js";
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/cli/hooks/init.ts"],"sourcesContent":["import { Hook } from \"@oclif/core\";\nimport { resolveSource } from \"../lib/configuration/index.js\";\nimport { detectInstallation } from \"../lib/installation/installation.js\";\nimport { hasIndividualPlugins } from \"../lib/plugins/index.js\";\nimport { showDashboard } from \"../commands/init.js\";\nimport { EXIT_CODES } from \"../lib/exit-codes.js\";\nimport type { ConfigWithSource } from \"../base-command.js\";\n\nconst hook: Hook<\"init\"> = async function (options) {\n const projectDir = process.cwd();\n\n // When no command is given and project is already initialized, show dashboard\n if (options.id === undefined) {\n const [installation, individualPlugins] = await Promise.all([\n detectInstallation(projectDir),\n hasIndividualPlugins(projectDir),\n ]);\n\n if (installation || individualPlugins) {\n const selectedCommand = await showDashboard(projectDir);\n if (selectedCommand) {\n await options.config.runCommand(selectedCommand);\n }\n this.exit(EXIT_CODES.SUCCESS);\n }\n }\n\n // Extract --source flag from argv (not yet parsed by oclif at this point)\n let sourceFlag: string | undefined;\n const sourceArgIndex = options.argv.indexOf(\"--source\");\n if (sourceArgIndex !== -1 && sourceArgIndex + 1 < options.argv.length) {\n sourceFlag = options.argv[sourceArgIndex + 1];\n } else {\n const sourceFlagWithEquals = options.argv.find((arg) => arg.startsWith(\"--source=\"));\n if (sourceFlagWithEquals) {\n sourceFlag = sourceFlagWithEquals.split(\"=\")[1];\n }\n }\n\n // Short form -s\n const sArgIndex = options.argv.indexOf(\"-s\");\n if (sArgIndex !== -1 && sArgIndex + 1 < options.argv.length) {\n sourceFlag = options.argv[sArgIndex + 1];\n }\n\n try {\n const resolvedConfig = await resolveSource(sourceFlag, projectDir);\n // Boundary cast: oclif Config doesn't declare sourceConfig; read in BaseCommand.sourceConfig\n (options.config as unknown as ConfigWithSource).sourceConfig = resolvedConfig;\n } catch (error) {\n // Let the command handle config failures - commands can check if sourceConfig is undefined\n }\n};\n\nexport default hook;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAQA,IAAM,OAAqB,eAAgB,SAAS;AAClD,QAAM,aAAa,QAAQ,IAAI;AAG/B,MAAI,QAAQ,OAAO,QAAW;AAC5B,UAAM,CAAC,cAAc,iBAAiB,IAAI,MAAM,QAAQ,IAAI;AAAA,MAC1D,mBAAmB,UAAU;AAAA,MAC7B,qBAAqB,UAAU;AAAA,IACjC,CAAC;AAED,QAAI,gBAAgB,mBAAmB;AACrC,YAAM,kBAAkB,MAAM,cAAc,UAAU;AACtD,UAAI,iBAAiB;AACnB,cAAM,QAAQ,OAAO,WAAW,eAAe;AAAA,MACjD;AACA,WAAK,KAAK,WAAW,OAAO;AAAA,IAC9B;AAAA,EACF;AAGA,MAAI;AACJ,QAAM,iBAAiB,QAAQ,KAAK,QAAQ,UAAU;AACtD,MAAI,mBAAmB,MAAM,iBAAiB,IAAI,QAAQ,KAAK,QAAQ;AACrE,iBAAa,QAAQ,KAAK,iBAAiB,CAAC;AAAA,EAC9C,OAAO;AACL,UAAM,uBAAuB,QAAQ,KAAK,KAAK,CAAC,QAAQ,IAAI,WAAW,WAAW,CAAC;AACnF,QAAI,sBAAsB;AACxB,mBAAa,qBAAqB,MAAM,GAAG,EAAE,CAAC;AAAA,IAChD;AAAA,EACF;AAGA,QAAM,YAAY,QAAQ,KAAK,QAAQ,IAAI;AAC3C,MAAI,cAAc,MAAM,YAAY,IAAI,QAAQ,KAAK,QAAQ;AAC3D,iBAAa,QAAQ,KAAK,YAAY,CAAC;AAAA,EACzC;AAEA,MAAI;AACF,UAAM,iBAAiB,MAAM,cAAc,YAAY,UAAU;AAEjE,IAAC,QAAQ,OAAuC,eAAe;AAAA,EACjE,SAAS,OAAO;AAAA,EAEhB;AACF;AAEA,IAAO,eAAQ;","names":[]}
1
+ {"version":3,"sources":["../../src/cli/hooks/init.ts"],"sourcesContent":["import { Hook } from \"@oclif/core\";\nimport { resolveSource } from \"../lib/configuration/index.js\";\nimport { detectInstallation } from \"../lib/installation/installation.js\";\nimport { hasIndividualPlugins } from \"../lib/plugins/index.js\";\nimport { showDashboard } from \"../commands/init.js\";\nimport { EXIT_CODES } from \"../lib/exit-codes.js\";\nimport type { ConfigWithSource } from \"../base-command.js\";\n\nconst hook: Hook<\"init\"> = async function (options) {\n const projectDir = process.cwd();\n\n // When no command is given and project is already initialized, show dashboard\n if (options.id === undefined) {\n const [installation, individualPlugins] = await Promise.all([\n detectInstallation(projectDir),\n hasIndividualPlugins(projectDir),\n ]);\n\n if (installation || individualPlugins) {\n const selectedCommand = await showDashboard(projectDir);\n if (selectedCommand) {\n await options.config.runCommand(selectedCommand);\n }\n this.exit(EXIT_CODES.SUCCESS);\n }\n }\n\n // Extract --source flag from argv (not yet parsed by oclif at this point)\n let sourceFlag: string | undefined;\n const sourceArgIndex = options.argv.indexOf(\"--source\");\n if (sourceArgIndex !== -1 && sourceArgIndex + 1 < options.argv.length) {\n sourceFlag = options.argv[sourceArgIndex + 1];\n } else {\n const sourceFlagWithEquals = options.argv.find((arg) => arg.startsWith(\"--source=\"));\n if (sourceFlagWithEquals) {\n sourceFlag = sourceFlagWithEquals.split(\"=\")[1];\n }\n }\n\n // Short form -s\n const sArgIndex = options.argv.indexOf(\"-s\");\n if (sArgIndex !== -1 && sArgIndex + 1 < options.argv.length) {\n sourceFlag = options.argv[sArgIndex + 1];\n }\n\n try {\n const resolvedConfig = await resolveSource(sourceFlag, projectDir);\n // Boundary cast: oclif Config doesn't declare sourceConfig; read in BaseCommand.sourceConfig\n (options.config as unknown as ConfigWithSource).sourceConfig = resolvedConfig;\n } catch (error) {\n // Let the command handle config failures - commands can check if sourceConfig is undefined\n }\n};\n\nexport default hook;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAQA,IAAM,OAAqB,eAAgB,SAAS;AAClD,QAAM,aAAa,QAAQ,IAAI;AAG/B,MAAI,QAAQ,OAAO,QAAW;AAC5B,UAAM,CAAC,cAAc,iBAAiB,IAAI,MAAM,QAAQ,IAAI;AAAA,MAC1D,mBAAmB,UAAU;AAAA,MAC7B,qBAAqB,UAAU;AAAA,IACjC,CAAC;AAED,QAAI,gBAAgB,mBAAmB;AACrC,YAAM,kBAAkB,MAAM,cAAc,UAAU;AACtD,UAAI,iBAAiB;AACnB,cAAM,QAAQ,OAAO,WAAW,eAAe;AAAA,MACjD;AACA,WAAK,KAAK,WAAW,OAAO;AAAA,IAC9B;AAAA,EACF;AAGA,MAAI;AACJ,QAAM,iBAAiB,QAAQ,KAAK,QAAQ,UAAU;AACtD,MAAI,mBAAmB,MAAM,iBAAiB,IAAI,QAAQ,KAAK,QAAQ;AACrE,iBAAa,QAAQ,KAAK,iBAAiB,CAAC;AAAA,EAC9C,OAAO;AACL,UAAM,uBAAuB,QAAQ,KAAK,KAAK,CAAC,QAAQ,IAAI,WAAW,WAAW,CAAC;AACnF,QAAI,sBAAsB;AACxB,mBAAa,qBAAqB,MAAM,GAAG,EAAE,CAAC;AAAA,IAChD;AAAA,EACF;AAGA,QAAM,YAAY,QAAQ,KAAK,QAAQ,IAAI;AAC3C,MAAI,cAAc,MAAM,YAAY,IAAI,QAAQ,KAAK,QAAQ;AAC3D,iBAAa,QAAQ,KAAK,YAAY,CAAC;AAAA,EACzC;AAEA,MAAI;AACF,UAAM,iBAAiB,MAAM,cAAc,YAAY,UAAU;AAEjE,IAAC,QAAQ,OAAuC,eAAe;AAAA,EACjE,SAAS,OAAO;AAAA,EAEhB;AACF;AAEA,IAAO,eAAQ;","names":[]}
@@ -5,8 +5,8 @@ import {
5
5
  loadProjectAgents,
6
6
  loadSkillsByIds,
7
7
  parseFrontmatter
8
- } from "./chunk-F3REOP7N.js";
9
- import "./chunk-LMZXL5RQ.js";
8
+ } from "./chunk-L6MTIQ2U.js";
9
+ import "./chunk-R3AR4VLZ.js";
10
10
  import "./chunk-EGMQ3SXN.js";
11
11
  import "./chunk-DHET7RCE.js";
12
12
  export {
@@ -16,4 +16,4 @@ export {
16
16
  loadSkillsByIds,
17
17
  parseFrontmatter
18
18
  };
19
- //# sourceMappingURL=loader-4YOZCFIP.js.map
19
+ //# sourceMappingURL=loader-CMSC3RAO.js.map
@@ -2,16 +2,16 @@
2
2
  import {
3
3
  getMarketplaceLabel,
4
4
  loadSkillsMatrixFromSource
5
- } from "./chunk-53URJ5XK.js";
6
- import "./chunk-F3REOP7N.js";
5
+ } from "./chunk-CADG5WWP.js";
6
+ import "./chunk-L6MTIQ2U.js";
7
7
  import "./chunk-T4EXUIBY.js";
8
8
  import "./chunk-BKL3DF2Q.js";
9
- import "./chunk-LMZXL5RQ.js";
9
+ import "./chunk-R3AR4VLZ.js";
10
10
  import "./chunk-EGMQ3SXN.js";
11
- import "./chunk-EC3UJRKZ.js";
11
+ import "./chunk-KWB3B2HS.js";
12
12
  import "./chunk-DHET7RCE.js";
13
13
  export {
14
14
  getMarketplaceLabel,
15
15
  loadSkillsMatrixFromSource
16
16
  };
17
- //# sourceMappingURL=source-loader-O5RMYUBW.js.map
17
+ //# sourceMappingURL=source-loader-3MZ2MBOF.js.map
@@ -3,17 +3,17 @@ import {
3
3
  addSource,
4
4
  getSourceSummary,
5
5
  removeSource
6
- } from "./chunk-53URJ5XK.js";
7
- import "./chunk-F3REOP7N.js";
6
+ } from "./chunk-CADG5WWP.js";
7
+ import "./chunk-L6MTIQ2U.js";
8
8
  import "./chunk-T4EXUIBY.js";
9
9
  import "./chunk-BKL3DF2Q.js";
10
- import "./chunk-LMZXL5RQ.js";
10
+ import "./chunk-R3AR4VLZ.js";
11
11
  import "./chunk-EGMQ3SXN.js";
12
- import "./chunk-EC3UJRKZ.js";
12
+ import "./chunk-KWB3B2HS.js";
13
13
  import "./chunk-DHET7RCE.js";
14
14
  export {
15
15
  addSource,
16
16
  getSourceSummary,
17
17
  removeSource
18
18
  };
19
- //# sourceMappingURL=source-manager-NKLL6HCL.js.map
19
+ //# sourceMappingURL=source-manager-NEH6QXE5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,16 +1,20 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ SINGLE_REACT_MATRIX
4
+ } from "../chunk-DA3WIZ4C.js";
5
+ import "../chunk-DHBRWGRZ.js";
2
6
  import {
3
7
  SKILLS,
4
8
  createMockMatrix
5
- } from "../chunk-N4D43IOO.js";
9
+ } from "../chunk-J2D6OBIX.js";
6
10
  import {
7
11
  describe,
8
12
  globalExpect,
9
13
  it
10
14
  } from "../chunk-XY3XDVMI.js";
11
- import "../chunk-4C7CSZC5.js";
12
- import "../chunk-53URJ5XK.js";
13
- import "../chunk-F3REOP7N.js";
15
+ import "../chunk-QOJAZI72.js";
16
+ import "../chunk-CADG5WWP.js";
17
+ import "../chunk-L6MTIQ2U.js";
14
18
  import "../chunk-T4EXUIBY.js";
15
19
  import {
16
20
  findSkill,
@@ -18,9 +22,9 @@ import {
18
22
  getSkill,
19
23
  useMatrixStore
20
24
  } from "../chunk-BKL3DF2Q.js";
21
- import "../chunk-LMZXL5RQ.js";
25
+ import "../chunk-R3AR4VLZ.js";
22
26
  import "../chunk-EGMQ3SXN.js";
23
- import "../chunk-EC3UJRKZ.js";
27
+ import "../chunk-KWB3B2HS.js";
24
28
  import {
25
29
  init_esm_shims
26
30
  } from "../chunk-DHET7RCE.js";
@@ -30,7 +34,7 @@ init_esm_shims();
30
34
  describe("MatrixStore", () => {
31
35
  describe("setMatrix and getMatrix", () => {
32
36
  it("should store and retrieve the matrix", () => {
33
- const matrix = createMockMatrix(SKILLS.react);
37
+ const matrix = SINGLE_REACT_MATRIX;
34
38
  useMatrixStore.getState().setMatrix(matrix);
35
39
  const retrieved = useMatrixStore.getState().getMatrix();
36
40
  globalExpect(retrieved).toBe(matrix);
@@ -38,7 +42,7 @@ describe("MatrixStore", () => {
38
42
  });
39
43
  describe("reset", () => {
40
44
  it("should clear the matrix back to null", () => {
41
- const matrix = createMockMatrix(SKILLS.react);
45
+ const matrix = SINGLE_REACT_MATRIX;
42
46
  useMatrixStore.getState().setMatrix(matrix);
43
47
  useMatrixStore.getState().reset();
44
48
  globalExpect(useMatrixStore.getState().matrix).toBeNull();
@@ -65,13 +69,13 @@ describe("MatrixStore", () => {
65
69
  globalExpect(result).toBe(reactSkill);
66
70
  });
67
71
  it("should return undefined for unknown ID", () => {
68
- const matrix = createMockMatrix(SKILLS.react);
72
+ const matrix = SINGLE_REACT_MATRIX;
69
73
  useMatrixStore.getState().setMatrix(matrix);
70
74
  const result = useMatrixStore.getState().getSkill("web-framework-nonexistent");
71
75
  globalExpect(result).toBeUndefined();
72
76
  });
73
77
  it("should return undefined for unknown slug", () => {
74
- const matrix = createMockMatrix(SKILLS.react);
78
+ const matrix = SINGLE_REACT_MATRIX;
75
79
  useMatrixStore.getState().setMatrix(matrix);
76
80
  const result = useMatrixStore.getState().getSkill("nonexistent");
77
81
  globalExpect(result).toBeUndefined();
@@ -90,20 +94,20 @@ describe("MatrixStore", () => {
90
94
  globalExpect(result).toBe(reactSkill);
91
95
  });
92
96
  it("should return the matrix via the standalone getMatrix selector", () => {
93
- const matrix = createMockMatrix(SKILLS.react);
97
+ const matrix = SINGLE_REACT_MATRIX;
94
98
  useMatrixStore.getState().setMatrix(matrix);
95
99
  const result = getMatrix();
96
100
  globalExpect(result).toBe(matrix);
97
101
  });
98
102
  it("should throw via the standalone getSkill selector for missing skill", () => {
99
- const matrix = createMockMatrix(SKILLS.react);
103
+ const matrix = SINGLE_REACT_MATRIX;
100
104
  useMatrixStore.getState().setMatrix(matrix);
101
105
  globalExpect(() => getSkill("web-framework-nonexistent")).toThrow(
102
106
  "Skill 'web-framework-nonexistent' not found in matrix store"
103
107
  );
104
108
  });
105
109
  it("should return undefined via findSkill for missing skill", () => {
106
- const matrix = createMockMatrix(SKILLS.react);
110
+ const matrix = SINGLE_REACT_MATRIX;
107
111
  useMatrixStore.getState().setMatrix(matrix);
108
112
  const result = findSkill("web-framework-nonexistent");
109
113
  globalExpect(result).toBeUndefined();
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/cli/stores/matrix-store.test.ts"],"sourcesContent":["import { describe, it, expect } from \"vitest\";\nimport { useMatrixStore, getSkill, getMatrix, findSkill } from \"./matrix-store\";\nimport { createMockMatrix, SKILLS } from \"../lib/__tests__/helpers\";\nimport type { SkillId, SkillSlug } from \"../types\";\n\ndescribe(\"MatrixStore\", () => {\n describe(\"setMatrix and getMatrix\", () => {\n it(\"should store and retrieve the matrix\", () => {\n const matrix = createMockMatrix(SKILLS.react);\n\n useMatrixStore.getState().setMatrix(matrix);\n\n const retrieved = useMatrixStore.getState().getMatrix();\n expect(retrieved).toBe(matrix);\n });\n });\n\n describe(\"reset\", () => {\n it(\"should clear the matrix back to null\", () => {\n const matrix = createMockMatrix(SKILLS.react);\n\n useMatrixStore.getState().setMatrix(matrix);\n useMatrixStore.getState().reset();\n\n expect(useMatrixStore.getState().matrix).toBeNull();\n });\n });\n\n describe(\"getMatrix\", () => {\n it(\"should throw when store is not populated\", () => {\n expect(() => useMatrixStore.getState().getMatrix()).toThrow(\"Matrix store not initialized\");\n });\n });\n\n describe(\"getSkill\", () => {\n it(\"should return a skill by SkillId\", () => {\n const reactSkill = SKILLS.react;\n const matrix = createMockMatrix(reactSkill);\n\n useMatrixStore.getState().setMatrix(matrix);\n\n const result = useMatrixStore.getState().getSkill(\"web-framework-react\");\n expect(result).toBe(reactSkill);\n });\n\n it(\"should return a skill by SkillSlug via slugMap\", () => {\n const reactSkill = SKILLS.react;\n const matrix = createMockMatrix(reactSkill);\n\n useMatrixStore.getState().setMatrix(matrix);\n\n const result = useMatrixStore.getState().getSkill(\"react\");\n expect(result).toBe(reactSkill);\n });\n\n it(\"should return undefined for unknown ID\", () => {\n const matrix = createMockMatrix(SKILLS.react);\n\n useMatrixStore.getState().setMatrix(matrix);\n\n const result = useMatrixStore.getState().getSkill(\"web-framework-nonexistent\" as SkillId);\n expect(result).toBeUndefined();\n });\n\n it(\"should return undefined for unknown slug\", () => {\n const matrix = createMockMatrix(SKILLS.react);\n\n useMatrixStore.getState().setMatrix(matrix);\n\n const result = useMatrixStore.getState().getSkill(\"nonexistent\" as SkillSlug);\n expect(result).toBeUndefined();\n });\n\n it(\"should return undefined when store is not populated\", () => {\n const result = useMatrixStore.getState().getSkill(\"web-framework-react\");\n expect(result).toBeUndefined();\n });\n });\n\n describe(\"standalone selectors\", () => {\n it(\"should look up a skill via the standalone getSkill selector\", () => {\n const reactSkill = SKILLS.react;\n const matrix = createMockMatrix(reactSkill);\n\n useMatrixStore.getState().setMatrix(matrix);\n\n const result = getSkill(\"web-framework-react\");\n expect(result).toBe(reactSkill);\n });\n\n it(\"should return the matrix via the standalone getMatrix selector\", () => {\n const matrix = createMockMatrix(SKILLS.react);\n\n useMatrixStore.getState().setMatrix(matrix);\n\n const result = getMatrix();\n expect(result).toBe(matrix);\n });\n\n it(\"should throw via the standalone getSkill selector for missing skill\", () => {\n const matrix = createMockMatrix(SKILLS.react);\n\n useMatrixStore.getState().setMatrix(matrix);\n\n expect(() => getSkill(\"web-framework-nonexistent\" as SkillId)).toThrow(\n \"Skill 'web-framework-nonexistent' not found in matrix store\",\n );\n });\n\n it(\"should return undefined via findSkill for missing skill\", () => {\n const matrix = createMockMatrix(SKILLS.react);\n\n useMatrixStore.getState().setMatrix(matrix);\n\n const result = findSkill(\"web-framework-nonexistent\" as SkillId);\n expect(result).toBeUndefined();\n });\n\n it(\"should return a skill via findSkill when found\", () => {\n const reactSkill = SKILLS.react;\n const matrix = createMockMatrix(reactSkill);\n\n useMatrixStore.getState().setMatrix(matrix);\n\n const result = findSkill(\"web-framework-react\");\n expect(result).toBe(reactSkill);\n });\n\n it(\"should throw via the standalone getMatrix selector when not populated\", () => {\n expect(() => getMatrix()).toThrow(\"Matrix store not initialized\");\n });\n });\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAKA,SAAS,eAAe,MAAM;AAC5B,WAAS,2BAA2B,MAAM;AACxC,OAAG,wCAAwC,MAAM;AAC/C,YAAM,SAAS,iBAAiB,OAAO,KAAK;AAE5C,qBAAe,SAAS,EAAE,UAAU,MAAM;AAE1C,YAAM,YAAY,eAAe,SAAS,EAAE,UAAU;AACtD,mBAAO,SAAS,EAAE,KAAK,MAAM;AAAA,IAC/B,CAAC;AAAA,EACH,CAAC;AAED,WAAS,SAAS,MAAM;AACtB,OAAG,wCAAwC,MAAM;AAC/C,YAAM,SAAS,iBAAiB,OAAO,KAAK;AAE5C,qBAAe,SAAS,EAAE,UAAU,MAAM;AAC1C,qBAAe,SAAS,EAAE,MAAM;AAEhC,mBAAO,eAAe,SAAS,EAAE,MAAM,EAAE,SAAS;AAAA,IACpD,CAAC;AAAA,EACH,CAAC;AAED,WAAS,aAAa,MAAM;AAC1B,OAAG,4CAA4C,MAAM;AACnD,mBAAO,MAAM,eAAe,SAAS,EAAE,UAAU,CAAC,EAAE,QAAQ,8BAA8B;AAAA,IAC5F,CAAC;AAAA,EACH,CAAC;AAED,WAAS,YAAY,MAAM;A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AA,IAChC,CAAC;AAED,OAAG,kEAAkE,MAAM;AACzE,YAAM,SAAS,iBAAiB,OAAO,KAAK;AAE5C,qBAAe,SAAS,EAAE,UAAU,MAAM;AAE1C,YAAM,SAAS,UAAU;AACzB,mBAAO,MAAM,EAAE,KAAK,MAAM;AAAA,IAC5B,CAAC;AAED,OAAG,uEAAuE,MAAM;AAC9E,YAAM,SAAS,iBAAiB,OAAO,KAAK;AAE5C,qBAAe,SAAS,EAAE,UAAU,MAAM;AAE1C,mBAAO,MAAM,SAAS,2BAAsC,CAAC,EAAE;AAAA,QAC7D;AAAA,MACF;AAAA,IACF,CAAC;AAED,OAAG,2DAA2D,MAAM;AAClE,YAAM,SAAS,iBAAiB,OAAO,KAAK;AAE5C,qBAAe,SAAS,EAAE,UAAU,MAAM;AAE1C,YAAM,SAAS,UAAU,2BAAsC;AAC/D,mBAAO,MAAM,EAAE,cAAc;AAAA,IAC/B,CAAC;AAED,OAAG,kDAAkD,MAAM;AACzD,YAAM,aAAa,OAAO;AAC1B,YAAM,SAAS,iBAAiB,UAAU;AAE1C,qBAAe,SAAS,EAAE,UAAU,MAAM;AAE1C,YAAM,SAAS,UAAU,qBAAqB;AAC9C,mBAAO,MAAM,EAAE,KAAK,UAAU;AAAA,IAChC,CAAC;AAED,OAAG,yEAAyE,MAAM;AAChF,mBAAO,MAAM,UAAU,CAAC,EAAE,QAAQ,8BAA8B;AAAA,IAClE,CAAC;AAAA,EACH,CAAC;AACH,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/cli/stores/matrix-store.test.ts"],"sourcesContent":["import { describe, it, expect } from \"vitest\";\nimport { useMatrixStore, getSkill, getMatrix, findSkill } from \"./matrix-store\";\nimport { createMockMatrix, SKILLS } from \"../lib/__tests__/helpers\";\nimport { SINGLE_REACT_MATRIX } from \"../lib/__tests__/mock-data/mock-matrices\";\nimport type { SkillId, SkillSlug } from \"../types\";\n\ndescribe(\"MatrixStore\", () => {\n describe(\"setMatrix and getMatrix\", () => {\n it(\"should store and retrieve the matrix\", () => {\n const matrix = SINGLE_REACT_MATRIX;\n\n useMatrixStore.getState().setMatrix(matrix);\n\n const retrieved = useMatrixStore.getState().getMatrix();\n expect(retrieved).toBe(matrix);\n });\n });\n\n describe(\"reset\", () => {\n it(\"should clear the matrix back to null\", () => {\n const matrix = SINGLE_REACT_MATRIX;\n\n useMatrixStore.getState().setMatrix(matrix);\n useMatrixStore.getState().reset();\n\n expect(useMatrixStore.getState().matrix).toBeNull();\n });\n });\n\n describe(\"getMatrix\", () => {\n it(\"should throw when store is not populated\", () => {\n expect(() => useMatrixStore.getState().getMatrix()).toThrow(\"Matrix store not initialized\");\n });\n });\n\n describe(\"getSkill\", () => {\n it(\"should return a skill by SkillId\", () => {\n const reactSkill = SKILLS.react;\n const matrix = createMockMatrix(reactSkill);\n\n useMatrixStore.getState().setMatrix(matrix);\n\n const result = useMatrixStore.getState().getSkill(\"web-framework-react\");\n expect(result).toBe(reactSkill);\n });\n\n it(\"should return a skill by SkillSlug via slugMap\", () => {\n const reactSkill = SKILLS.react;\n const matrix = createMockMatrix(reactSkill);\n\n useMatrixStore.getState().setMatrix(matrix);\n\n const result = useMatrixStore.getState().getSkill(\"react\");\n expect(result).toBe(reactSkill);\n });\n\n it(\"should return undefined for unknown ID\", () => {\n const matrix = SINGLE_REACT_MATRIX;\n\n useMatrixStore.getState().setMatrix(matrix);\n\n const result = useMatrixStore.getState().getSkill(\"web-framework-nonexistent\" as SkillId);\n expect(result).toBeUndefined();\n });\n\n it(\"should return undefined for unknown slug\", () => {\n const matrix = SINGLE_REACT_MATRIX;\n\n useMatrixStore.getState().setMatrix(matrix);\n\n const result = useMatrixStore.getState().getSkill(\"nonexistent\" as SkillSlug);\n expect(result).toBeUndefined();\n });\n\n it(\"should return undefined when store is not populated\", () => {\n const result = useMatrixStore.getState().getSkill(\"web-framework-react\");\n expect(result).toBeUndefined();\n });\n });\n\n describe(\"standalone selectors\", () => {\n it(\"should look up a skill via the standalone getSkill selector\", () => {\n const reactSkill = SKILLS.react;\n const matrix = createMockMatrix(reactSkill);\n\n useMatrixStore.getState().setMatrix(matrix);\n\n const result = getSkill(\"web-framework-react\");\n expect(result).toBe(reactSkill);\n });\n\n it(\"should return the matrix via the standalone getMatrix selector\", () => {\n const matrix = SINGLE_REACT_MATRIX;\n\n useMatrixStore.getState().setMatrix(matrix);\n\n const result = getMatrix();\n expect(result).toBe(matrix);\n });\n\n it(\"should throw via the standalone getSkill selector for missing skill\", () => {\n const matrix = SINGLE_REACT_MATRIX;\n\n useMatrixStore.getState().setMatrix(matrix);\n\n expect(() => getSkill(\"web-framework-nonexistent\" as SkillId)).toThrow(\n \"Skill 'web-framework-nonexistent' not found in matrix store\",\n );\n });\n\n it(\"should return undefined via findSkill for missing skill\", () => {\n const matrix = SINGLE_REACT_MATRIX;\n\n useMatrixStore.getState().setMatrix(matrix);\n\n const result = findSkill(\"web-framework-nonexistent\" as SkillId);\n expect(result).toBeUndefined();\n });\n\n it(\"should return a skill via findSkill when found\", () => {\n const reactSkill = SKILLS.react;\n const matrix = createMockMatrix(reactSkill);\n\n useMatrixStore.getState().setMatrix(matrix);\n\n const result = findSkill(\"web-framework-react\");\n expect(result).toBe(reactSkill);\n });\n\n it(\"should throw via the standalone getMatrix selector when not populated\", () => {\n expect(() => getMatrix()).toThrow(\"Matrix store not initialized\");\n });\n });\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAMA,SAAS,eAAe,MAAM;AAC5B,WAAS,2BAA2B,MAAM;AACxC,OAAG,wCAAwC,MAAM;AAC/C,YAAM,SAAS;AAEf,qBAAe,SAAS,EAAE,UAAU,MAAM;AAE1C,YAAM,YAAY,eAAe,SAAS,EAAE,UAAU;AACtD,mBAAO,SAAS,EAAE,KAAK,MAAM;AAAA,IAC/B,CAAC;AAAA,EACH,CAAC;AAED,WAAS,SAAS,MAAM;AACtB,OAAG,wCAAwC,MAAM;AAC/C,YAAM,SAAS;AAEf,qBAAe,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- import "../chunk-53URJ5XK.js";
6
- import "../chunk-F3REOP7N.js";
4
+ } from "../chunk-QOJAZI72.js";
5
+ import "../chunk-CADG5WWP.js";
6
+ import "../chunk-L6MTIQ2U.js";
7
7
  import "../chunk-T4EXUIBY.js";
8
8
  import "../chunk-BKL3DF2Q.js";
9
- import "../chunk-LMZXL5RQ.js";
9
+ import "../chunk-R3AR4VLZ.js";
10
10
  import "../chunk-EGMQ3SXN.js";
11
- import "../chunk-EC3UJRKZ.js";
11
+ import "../chunk-KWB3B2HS.js";
12
12
  import "../chunk-DHET7RCE.js";
13
13
  export {
14
14
  useWizardStore
@@ -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-N4D43IOO.js";
17
+ } from "../chunk-J2D6OBIX.js";
7
18
  import {
8
19
  beforeEach,
9
20
  describe,
@@ -12,18 +23,18 @@ import {
12
23
  } from "../chunk-XY3XDVMI.js";
13
24
  import {
14
25
  useWizardStore
15
- } from "../chunk-4C7CSZC5.js";
16
- import "../chunk-53URJ5XK.js";
17
- import "../chunk-F3REOP7N.js";
26
+ } from "../chunk-QOJAZI72.js";
27
+ import "../chunk-CADG5WWP.js";
28
+ import "../chunk-L6MTIQ2U.js";
18
29
  import {
19
30
  typedKeys
20
31
  } from "../chunk-T4EXUIBY.js";
21
32
  import {
22
33
  useMatrixStore
23
34
  } from "../chunk-BKL3DF2Q.js";
24
- import "../chunk-LMZXL5RQ.js";
35
+ import "../chunk-R3AR4VLZ.js";
25
36
  import "../chunk-EGMQ3SXN.js";
26
- import "../chunk-EC3UJRKZ.js";
37
+ import "../chunk-KWB3B2HS.js";
27
38
  import {
28
39
  init_esm_shims
29
40
  } from "../chunk-DHET7RCE.js";
@@ -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([