agents-inc 0.149.2 → 0.150.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 +2277 -0
- package/LICENSE +21 -0
- package/README.md +136 -19
- package/assets/demo.gif +0 -0
- package/assets/demo.tape +266 -0
- package/assets/logo.svg +75 -0
- package/dist/chunk-2RSNKBXC.js +84 -0
- package/dist/chunk-2RSNKBXC.js.map +1 -0
- package/dist/chunk-3LIU2ZEF.js +1355 -0
- package/dist/chunk-3LIU2ZEF.js.map +1 -0
- package/dist/chunk-4GL2F5AB.js +222 -0
- package/dist/chunk-4GL2F5AB.js.map +1 -0
- package/dist/chunk-4LPJZNT7.js +382 -0
- package/dist/chunk-4LPJZNT7.js.map +1 -0
- package/dist/chunk-5K5RBRTD.js +62 -0
- package/dist/chunk-5K5RBRTD.js.map +1 -0
- package/dist/chunk-6I6RZHYP.js +789 -0
- package/dist/chunk-6I6RZHYP.js.map +1 -0
- package/dist/chunk-7URSGJLE.js +430 -0
- package/dist/chunk-7URSGJLE.js.map +1 -0
- package/dist/chunk-C55DN7GE.js +35 -0
- package/dist/chunk-C55DN7GE.js.map +1 -0
- package/dist/chunk-CDMHSHBN.js +68 -0
- package/dist/chunk-CDMHSHBN.js.map +1 -0
- package/dist/chunk-CFQT72MJ.js +92 -0
- package/dist/chunk-CFQT72MJ.js.map +1 -0
- package/dist/chunk-DAG2ULNF.js +125 -0
- package/dist/chunk-DAG2ULNF.js.map +1 -0
- package/dist/chunk-DDG4F3FE.js +181 -0
- package/dist/chunk-DDG4F3FE.js.map +1 -0
- package/dist/chunk-DIBCRIMR.js +36 -0
- package/dist/chunk-DIBCRIMR.js.map +1 -0
- package/dist/chunk-DJAZE4PD.js +10929 -0
- package/dist/chunk-DJAZE4PD.js.map +1 -0
- package/dist/chunk-DUVWGO6E.js +54 -0
- package/dist/chunk-DUVWGO6E.js.map +1 -0
- package/dist/chunk-E4FT2KFV.js +174 -0
- package/dist/chunk-E4FT2KFV.js.map +1 -0
- package/dist/chunk-EKWAUOQB.js +96 -0
- package/dist/chunk-EKWAUOQB.js.map +1 -0
- package/dist/chunk-EN2GCPW7.js +300 -0
- package/dist/chunk-EN2GCPW7.js.map +1 -0
- package/dist/chunk-ES3NJZON.js +31 -0
- package/dist/chunk-ES3NJZON.js.map +1 -0
- package/dist/chunk-F3756A5B.js +20 -0
- package/dist/chunk-F3756A5B.js.map +1 -0
- package/dist/chunk-FWT3CBLL.js +51 -0
- package/dist/chunk-FWT3CBLL.js.map +1 -0
- package/dist/chunk-FYPUUYSG.js +31 -0
- package/dist/chunk-FYPUUYSG.js.map +1 -0
- package/dist/chunk-GRPSDKIS.js +112 -0
- package/dist/chunk-GRPSDKIS.js.map +1 -0
- package/dist/chunk-GYG5SE2D.js +81 -0
- package/dist/chunk-GYG5SE2D.js.map +1 -0
- package/dist/chunk-HIPGKIT3.js +287 -0
- package/dist/chunk-HIPGKIT3.js.map +1 -0
- package/dist/chunk-I3XKEGHM.js +16383 -0
- package/dist/chunk-I3XKEGHM.js.map +1 -0
- package/dist/chunk-IHO75PMZ.js +40 -0
- package/dist/chunk-IHO75PMZ.js.map +1 -0
- package/dist/chunk-IOJR5TOY.js +47 -0
- package/dist/chunk-IOJR5TOY.js.map +1 -0
- package/dist/chunk-K3OU6TGX.js +77 -0
- package/dist/chunk-K3OU6TGX.js.map +1 -0
- package/dist/chunk-KH7MOIM5.js +6010 -0
- package/dist/chunk-KH7MOIM5.js.map +1 -0
- package/dist/chunk-KIR7VYQD.js +63 -0
- package/dist/chunk-KIR7VYQD.js.map +1 -0
- package/dist/chunk-KOPEM3Q7.js +27 -0
- package/dist/chunk-KOPEM3Q7.js.map +1 -0
- package/dist/chunk-KSZ6PCY4.js +43 -0
- package/dist/chunk-KSZ6PCY4.js.map +1 -0
- package/dist/chunk-LRYNF3J7.js +111 -0
- package/dist/chunk-LRYNF3J7.js.map +1 -0
- package/dist/chunk-LYYXX2W5.js +87 -0
- package/dist/chunk-LYYXX2W5.js.map +1 -0
- package/dist/chunk-MC5DUZ3V.js +1135 -0
- package/dist/chunk-MC5DUZ3V.js.map +1 -0
- package/dist/chunk-N4IZ6GBO.js +300 -0
- package/dist/chunk-N4IZ6GBO.js.map +1 -0
- package/dist/chunk-NIKUMXE7.js +24 -0
- package/dist/chunk-NIKUMXE7.js.map +1 -0
- package/dist/chunk-NUIZ6ZUO.js +42 -0
- package/dist/chunk-NUIZ6ZUO.js.map +1 -0
- package/dist/chunk-O5ASLZ2K.js +270 -0
- package/dist/chunk-O5ASLZ2K.js.map +1 -0
- package/dist/chunk-OA5SUEQD.js +181 -0
- package/dist/chunk-OA5SUEQD.js.map +1 -0
- package/dist/chunk-OZZGXBCN.js +15 -0
- package/dist/chunk-OZZGXBCN.js.map +1 -0
- package/dist/chunk-P3PN5SVI.js +27 -0
- package/dist/chunk-P3PN5SVI.js.map +1 -0
- package/dist/chunk-P56WJ5FA.js +50 -0
- package/dist/chunk-P56WJ5FA.js.map +1 -0
- package/dist/chunk-PG4G4IIK.js +24 -0
- package/dist/chunk-PG4G4IIK.js.map +1 -0
- package/dist/chunk-QQLRX4KI.js +41 -0
- package/dist/chunk-QQLRX4KI.js.map +1 -0
- package/dist/chunk-RBHYLCUB.js +31 -0
- package/dist/chunk-RBHYLCUB.js.map +1 -0
- package/dist/chunk-RJN7W2C7.js +349 -0
- package/dist/chunk-RJN7W2C7.js.map +1 -0
- package/dist/chunk-RP7R73JO.js +179 -0
- package/dist/chunk-RP7R73JO.js.map +1 -0
- package/dist/chunk-SYUOXSPU.js +510 -0
- package/dist/chunk-SYUOXSPU.js.map +1 -0
- package/dist/chunk-THKIOI32.js +939 -0
- package/dist/chunk-THKIOI32.js.map +1 -0
- package/dist/chunk-UZRISDBZ.js +28 -0
- package/dist/chunk-UZRISDBZ.js.map +1 -0
- package/dist/chunk-V7QOSGQA.js +298 -0
- package/dist/chunk-V7QOSGQA.js.map +1 -0
- package/dist/chunk-VEP23B5W.js +27 -0
- package/dist/chunk-VEP23B5W.js.map +1 -0
- package/dist/chunk-VG2TVBFN.js +52 -0
- package/dist/chunk-VG2TVBFN.js.map +1 -0
- package/dist/chunk-VIFZ6NFH.js +27 -0
- package/dist/chunk-VIFZ6NFH.js.map +1 -0
- package/dist/chunk-XA57SX4T.js +115 -0
- package/dist/chunk-XA57SX4T.js.map +1 -0
- package/dist/chunk-YKKIJHZB.js +339 -0
- package/dist/chunk-YKKIJHZB.js.map +1 -0
- package/dist/chunk-YU2VGX5R.js +4205 -0
- package/dist/chunk-YU2VGX5R.js.map +1 -0
- package/dist/chunk-ZDLTLNU2.js +258 -0
- package/dist/chunk-ZDLTLNU2.js.map +1 -0
- package/dist/chunk-ZHTXPFDK.js +128 -0
- package/dist/chunk-ZHTXPFDK.js.map +1 -0
- package/dist/chunk-ZKJAJWK6.js +253 -0
- package/dist/chunk-ZKJAJWK6.js.map +1 -0
- package/dist/commands/build/marketplace.js +250 -0
- package/dist/commands/build/marketplace.js.map +1 -0
- package/dist/commands/build/plugins.js +176 -0
- package/dist/commands/build/plugins.js.map +1 -0
- package/dist/commands/compile.js +331 -0
- package/dist/commands/compile.js.map +1 -0
- package/dist/commands/doctor.js +475 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/edit.js +765 -0
- package/dist/commands/edit.js.map +1 -0
- package/dist/commands/eject.js +393 -0
- package/dist/commands/eject.js.map +1 -0
- package/dist/commands/import/skill.js +349 -0
- package/dist/commands/import/skill.js.map +1 -0
- package/dist/commands/init.js +66 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/list.js +115 -0
- package/dist/commands/list.js.map +1 -0
- package/dist/commands/new/agent.js +304 -0
- package/dist/commands/new/agent.js.map +1 -0
- package/dist/commands/new/marketplace.js +315 -0
- package/dist/commands/new/marketplace.js.map +1 -0
- package/dist/commands/new/skill.js +28 -0
- package/dist/commands/new/skill.js.map +1 -0
- package/dist/commands/search.js +176 -0
- package/dist/commands/search.js.map +1 -0
- package/dist/commands/uninstall.js +570 -0
- package/dist/commands/uninstall.js.map +1 -0
- package/dist/commands/update.js +368 -0
- package/dist/commands/update.js.map +1 -0
- package/dist/commands/validate.js +581 -0
- package/dist/commands/validate.js.map +1 -0
- package/dist/components/common/confirm.js +9 -0
- package/dist/components/common/confirm.js.map +1 -0
- package/dist/components/common/confirm.test.js +203 -0
- package/dist/components/common/confirm.test.js.map +1 -0
- package/dist/components/common/prompt-confirm.js +11 -0
- package/dist/components/common/prompt-confirm.js.map +1 -0
- package/dist/components/common/select-list.js +11 -0
- package/dist/components/common/select-list.js.map +1 -0
- package/dist/components/common/spinner.js +9 -0
- package/dist/components/common/spinner.js.map +1 -0
- package/dist/components/wizard/category-grid.js +16 -0
- package/dist/components/wizard/category-grid.js.map +1 -0
- package/dist/components/wizard/category-grid.test.js +1253 -0
- package/dist/components/wizard/category-grid.test.js.map +1 -0
- package/dist/components/wizard/checkbox-grid.js +14 -0
- package/dist/components/wizard/checkbox-grid.js.map +1 -0
- package/dist/components/wizard/checkbox-grid.test.js +264 -0
- package/dist/components/wizard/checkbox-grid.test.js.map +1 -0
- package/dist/components/wizard/domain-selection.js +22 -0
- package/dist/components/wizard/domain-selection.js.map +1 -0
- package/dist/components/wizard/run-wizard-session.js +47 -0
- package/dist/components/wizard/run-wizard-session.js.map +1 -0
- package/dist/components/wizard/scroll-affordance.js +10 -0
- package/dist/components/wizard/scroll-affordance.js.map +1 -0
- package/dist/components/wizard/search-modal.js +14 -0
- package/dist/components/wizard/search-modal.js.map +1 -0
- package/dist/components/wizard/search-modal.test.js +212 -0
- package/dist/components/wizard/search-modal.test.js.map +1 -0
- package/dist/components/wizard/selection-card.js +10 -0
- package/dist/components/wizard/selection-card.js.map +1 -0
- package/dist/components/wizard/skill-agent-summary.js +16 -0
- package/dist/components/wizard/skill-agent-summary.js.map +1 -0
- package/dist/components/wizard/source-grid.js +23 -0
- package/dist/components/wizard/source-grid.js.map +1 -0
- package/dist/components/wizard/source-grid.test.js +1094 -0
- package/dist/components/wizard/source-grid.test.js.map +1 -0
- package/dist/components/wizard/stack-selection.js +20 -0
- package/dist/components/wizard/stack-selection.js.map +1 -0
- package/dist/components/wizard/step-agents.js +22 -0
- package/dist/components/wizard/step-agents.js.map +1 -0
- package/dist/components/wizard/step-agents.test.js +204 -0
- package/dist/components/wizard/step-agents.test.js.map +1 -0
- package/dist/components/wizard/step-build.js +22 -0
- package/dist/components/wizard/step-build.js.map +1 -0
- package/dist/components/wizard/step-build.test.js +552 -0
- package/dist/components/wizard/step-build.test.js.map +1 -0
- package/dist/components/wizard/step-confirm.js +21 -0
- package/dist/components/wizard/step-confirm.js.map +1 -0
- package/dist/components/wizard/step-confirm.test.js +744 -0
- package/dist/components/wizard/step-confirm.test.js.map +1 -0
- package/dist/components/wizard/step-settings.js +19 -0
- package/dist/components/wizard/step-settings.js.map +1 -0
- package/dist/components/wizard/step-settings.test.js +244 -0
- package/dist/components/wizard/step-settings.test.js.map +1 -0
- package/dist/components/wizard/step-sources.js +28 -0
- package/dist/components/wizard/step-sources.js.map +1 -0
- package/dist/components/wizard/step-sources.test.js +155 -0
- package/dist/components/wizard/step-sources.test.js.map +1 -0
- package/dist/components/wizard/step-stack.js +21 -0
- package/dist/components/wizard/step-stack.js.map +1 -0
- package/dist/components/wizard/step-stack.test.js +262 -0
- package/dist/components/wizard/step-stack.test.js.map +1 -0
- package/dist/components/wizard/summary-panel.js +20 -0
- package/dist/components/wizard/summary-panel.js.map +1 -0
- package/dist/components/wizard/summary-panel.test.js +317 -0
- package/dist/components/wizard/summary-panel.test.js.map +1 -0
- package/dist/components/wizard/toast.js +10 -0
- package/dist/components/wizard/toast.js.map +1 -0
- package/dist/components/wizard/wizard-layout.js +26 -0
- package/dist/components/wizard/wizard-layout.js.map +1 -0
- package/dist/components/wizard/wizard-layout.test.js +200 -0
- package/dist/components/wizard/wizard-layout.test.js.map +1 -0
- package/dist/components/wizard/wizard-tabs.js +20 -0
- package/dist/components/wizard/wizard-tabs.js.map +1 -0
- package/dist/components/wizard/wizard-tabs.test.js +290 -0
- package/dist/components/wizard/wizard-tabs.test.js.map +1 -0
- package/dist/components/wizard/wizard.js +48 -0
- package/dist/components/wizard/wizard.js.map +1 -0
- package/dist/config-exports.js +20 -0
- package/dist/config-exports.js.map +1 -0
- package/dist/copy-local-skills-CA7P73RZ.js +15 -0
- package/dist/copy-local-skills-CA7P73RZ.js.map +1 -0
- package/dist/dist-VNJNNJK7.js +550 -0
- package/dist/dist-VNJNNJK7.js.map +1 -0
- package/dist/hooks/init.js +90 -0
- package/dist/hooks/init.js.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/dist/load-agent-defs-6MAY5ABI.js +16 -0
- package/dist/load-agent-defs-6MAY5ABI.js.map +1 -0
- package/dist/loader-E2ERJYVA.js +23 -0
- package/dist/loader-E2ERJYVA.js.map +1 -0
- package/dist/magic-string.es-5TV73NJD.js +1316 -0
- package/dist/magic-string.es-5TV73NJD.js.map +1 -0
- package/dist/recompile-project-agents-VYQJ6UZB.js +20 -0
- package/dist/recompile-project-agents-VYQJ6UZB.js.map +1 -0
- package/dist/source-loader-VVHMQEX5.js +20 -0
- package/dist/source-loader-VVHMQEX5.js.map +1 -0
- package/dist/source-manager-TPDXV5FO.js +18 -0
- package/dist/source-manager-TPDXV5FO.js.map +1 -0
- package/dist/src/agents/_templates/agent.liquid +161 -0
- package/dist/src/agents/_templates/methodologies/anti-over-engineering.liquid +121 -0
- package/dist/src/agents/_templates/methodologies/context-management.liquid +162 -0
- package/dist/src/agents/_templates/methodologies/improvement-protocol.liquid +150 -0
- package/dist/src/agents/_templates/methodologies/investigation-requirements.liquid +49 -0
- package/dist/src/agents/_templates/methodologies/success-criteria.liquid +111 -0
- package/dist/src/agents/_templates/methodologies/write-verification.liquid +43 -0
- package/dist/src/agents/developer/ai-developer/critical-reminders.md +54 -0
- package/dist/src/agents/developer/ai-developer/critical-requirements.md +59 -0
- package/dist/src/agents/developer/ai-developer/identity.md +51 -0
- package/dist/src/agents/developer/ai-developer/metadata.yaml +12 -0
- package/dist/src/agents/developer/ai-developer/output.md +366 -0
- package/dist/src/agents/developer/ai-developer/playbook.md +335 -0
- package/dist/src/agents/developer/api-developer/critical-reminders.md +46 -0
- package/dist/src/agents/developer/api-developer/critical-requirements.md +44 -0
- package/dist/src/agents/developer/api-developer/identity.md +49 -0
- package/dist/src/agents/developer/api-developer/metadata.yaml +12 -0
- package/dist/src/agents/developer/api-developer/output.md +432 -0
- package/dist/src/agents/developer/api-developer/playbook.md +352 -0
- package/dist/src/agents/developer/cli-developer/critical-reminders.md +51 -0
- package/dist/src/agents/developer/cli-developer/critical-requirements.md +51 -0
- package/dist/src/agents/developer/cli-developer/identity.md +51 -0
- package/dist/src/agents/developer/cli-developer/metadata.yaml +12 -0
- package/dist/src/agents/developer/cli-developer/output.md +285 -0
- package/dist/src/agents/developer/cli-developer/playbook.md +386 -0
- package/dist/src/agents/developer/web-architecture/critical-reminders.md +48 -0
- package/dist/src/agents/developer/web-architecture/critical-requirements.md +65 -0
- package/dist/src/agents/developer/web-architecture/identity.md +64 -0
- package/dist/src/agents/developer/web-architecture/metadata.yaml +12 -0
- package/dist/src/agents/developer/web-architecture/output.md +449 -0
- package/dist/src/agents/developer/web-architecture/playbook.md +481 -0
- package/dist/src/agents/developer/web-developer/critical-reminders.md +40 -0
- package/dist/src/agents/developer/web-developer/critical-requirements.md +39 -0
- package/dist/src/agents/developer/web-developer/identity.md +32 -0
- package/dist/src/agents/developer/web-developer/metadata.yaml +12 -0
- package/dist/src/agents/developer/web-developer/output.md +323 -0
- package/dist/src/agents/developer/web-developer/playbook.md +349 -0
- package/dist/src/agents/meta/agent-summoner/critical-reminders.md +45 -0
- package/dist/src/agents/meta/agent-summoner/critical-requirements.md +52 -0
- package/dist/src/agents/meta/agent-summoner/identity.md +34 -0
- package/dist/src/agents/meta/agent-summoner/metadata.yaml +12 -0
- package/dist/src/agents/meta/agent-summoner/output.md +296 -0
- package/dist/src/agents/meta/agent-summoner/playbook.md +1469 -0
- package/dist/src/agents/meta/codex-keeper/critical-reminders.md +39 -0
- package/dist/src/agents/meta/codex-keeper/critical-requirements.md +29 -0
- package/dist/src/agents/meta/codex-keeper/identity.md +45 -0
- package/dist/src/agents/meta/codex-keeper/metadata.yaml +12 -0
- package/dist/src/agents/meta/codex-keeper/output.md +384 -0
- package/dist/src/agents/meta/codex-keeper/playbook.md +1183 -0
- package/dist/src/agents/meta/convention-keeper/critical-reminders.md +32 -0
- package/dist/src/agents/meta/convention-keeper/critical-requirements.md +32 -0
- package/dist/src/agents/meta/convention-keeper/identity.md +33 -0
- package/dist/src/agents/meta/convention-keeper/metadata.yaml +12 -0
- package/dist/src/agents/meta/convention-keeper/output.md +206 -0
- package/dist/src/agents/meta/convention-keeper/playbook.md +180 -0
- package/dist/src/agents/meta/skill-summoner/critical-reminders.md +112 -0
- package/dist/src/agents/meta/skill-summoner/critical-requirements.md +62 -0
- package/dist/src/agents/meta/skill-summoner/identity.md +31 -0
- package/dist/src/agents/meta/skill-summoner/metadata.yaml +13 -0
- package/dist/src/agents/meta/skill-summoner/output.md +390 -0
- package/dist/src/agents/meta/skill-summoner/playbook.md +1457 -0
- package/dist/src/agents/pattern/pattern-scout/critical-reminders.md +71 -0
- package/dist/src/agents/pattern/pattern-scout/critical-requirements.md +31 -0
- package/dist/src/agents/pattern/pattern-scout/identity.md +25 -0
- package/dist/src/agents/pattern/pattern-scout/metadata.yaml +10 -0
- package/dist/src/agents/pattern/pattern-scout/output.md +290 -0
- package/dist/src/agents/pattern/pattern-scout/playbook.md +1806 -0
- package/dist/src/agents/pattern/web-pattern-critique/critical-reminders.md +30 -0
- package/dist/src/agents/pattern/web-pattern-critique/critical-requirements.md +28 -0
- package/dist/src/agents/pattern/web-pattern-critique/identity.md +41 -0
- package/dist/src/agents/pattern/web-pattern-critique/metadata.yaml +12 -0
- package/dist/src/agents/pattern/web-pattern-critique/output.md +314 -0
- package/dist/src/agents/pattern/web-pattern-critique/playbook.md +572 -0
- package/dist/src/agents/planning/api-pm/critical-reminders.md +48 -0
- package/dist/src/agents/planning/api-pm/critical-requirements.md +41 -0
- package/dist/src/agents/planning/api-pm/identity.md +39 -0
- package/dist/src/agents/planning/api-pm/metadata.yaml +12 -0
- package/dist/src/agents/planning/api-pm/output.md +475 -0
- package/dist/src/agents/planning/api-pm/playbook.md +129 -0
- package/dist/src/agents/planning/web-pm/critical-reminders.md +36 -0
- package/dist/src/agents/planning/web-pm/critical-requirements.md +32 -0
- package/dist/src/agents/planning/web-pm/identity.md +26 -0
- package/dist/src/agents/planning/web-pm/metadata.yaml +12 -0
- package/dist/src/agents/planning/web-pm/output.md +314 -0
- package/dist/src/agents/planning/web-pm/playbook.md +318 -0
- package/dist/src/agents/researcher/api-researcher/critical-reminders.md +27 -0
- package/dist/src/agents/researcher/api-researcher/critical-requirements.md +28 -0
- package/dist/src/agents/researcher/api-researcher/identity.md +71 -0
- package/dist/src/agents/researcher/api-researcher/metadata.yaml +10 -0
- package/dist/src/agents/researcher/api-researcher/output.md +254 -0
- package/dist/src/agents/researcher/api-researcher/playbook.md +201 -0
- package/dist/src/agents/researcher/web-researcher/critical-reminders.md +39 -0
- package/dist/src/agents/researcher/web-researcher/critical-requirements.md +26 -0
- package/dist/src/agents/researcher/web-researcher/identity.md +69 -0
- package/dist/src/agents/researcher/web-researcher/metadata.yaml +10 -0
- package/dist/src/agents/researcher/web-researcher/output.md +241 -0
- package/dist/src/agents/researcher/web-researcher/playbook.md +217 -0
- package/dist/src/agents/reviewer/ai-reviewer/critical-reminders.md +40 -0
- package/dist/src/agents/reviewer/ai-reviewer/critical-requirements.md +37 -0
- package/dist/src/agents/reviewer/ai-reviewer/identity.md +51 -0
- package/dist/src/agents/reviewer/ai-reviewer/metadata.yaml +10 -0
- package/dist/src/agents/reviewer/ai-reviewer/output.md +395 -0
- package/dist/src/agents/reviewer/ai-reviewer/playbook.md +90 -0
- package/dist/src/agents/reviewer/api-reviewer/critical-reminders.md +31 -0
- package/dist/src/agents/reviewer/api-reviewer/critical-requirements.md +27 -0
- package/dist/src/agents/reviewer/api-reviewer/identity.md +51 -0
- package/dist/src/agents/reviewer/api-reviewer/metadata.yaml +12 -0
- package/dist/src/agents/reviewer/api-reviewer/output.md +343 -0
- package/dist/src/agents/reviewer/api-reviewer/playbook.md +288 -0
- package/dist/src/agents/reviewer/cli-reviewer/critical-reminders.md +33 -0
- package/dist/src/agents/reviewer/cli-reviewer/critical-requirements.md +30 -0
- package/dist/src/agents/reviewer/cli-reviewer/identity.md +44 -0
- package/dist/src/agents/reviewer/cli-reviewer/metadata.yaml +12 -0
- package/dist/src/agents/reviewer/cli-reviewer/output.md +414 -0
- package/dist/src/agents/reviewer/cli-reviewer/playbook.md +218 -0
- package/dist/src/agents/reviewer/infra-reviewer/critical-reminders.md +38 -0
- package/dist/src/agents/reviewer/infra-reviewer/critical-requirements.md +38 -0
- package/dist/src/agents/reviewer/infra-reviewer/identity.md +53 -0
- package/dist/src/agents/reviewer/infra-reviewer/metadata.yaml +10 -0
- package/dist/src/agents/reviewer/infra-reviewer/output.md +364 -0
- package/dist/src/agents/reviewer/infra-reviewer/playbook.md +161 -0
- package/dist/src/agents/reviewer/web-reviewer/critical-reminders.md +31 -0
- package/dist/src/agents/reviewer/web-reviewer/critical-requirements.md +26 -0
- package/dist/src/agents/reviewer/web-reviewer/identity.md +40 -0
- package/dist/src/agents/reviewer/web-reviewer/metadata.yaml +12 -0
- package/dist/src/agents/reviewer/web-reviewer/output.md +333 -0
- package/dist/src/agents/reviewer/web-reviewer/playbook.md +156 -0
- package/dist/src/agents/tester/api-tester/critical-reminders.md +41 -0
- package/dist/src/agents/tester/api-tester/critical-requirements.md +41 -0
- package/dist/src/agents/tester/api-tester/identity.md +47 -0
- package/dist/src/agents/tester/api-tester/metadata.yaml +12 -0
- package/dist/src/agents/tester/api-tester/output.md +284 -0
- package/dist/src/agents/tester/api-tester/playbook.md +275 -0
- package/dist/src/agents/tester/cli-tester/critical-reminders.md +36 -0
- package/dist/src/agents/tester/cli-tester/critical-requirements.md +36 -0
- package/dist/src/agents/tester/cli-tester/identity.md +43 -0
- package/dist/src/agents/tester/cli-tester/metadata.yaml +12 -0
- package/dist/src/agents/tester/cli-tester/output.md +313 -0
- package/dist/src/agents/tester/cli-tester/playbook.md +221 -0
- package/dist/src/agents/tester/web-tester/critical-reminders.md +31 -0
- package/dist/src/agents/tester/web-tester/critical-requirements.md +28 -0
- package/dist/src/agents/tester/web-tester/identity.md +41 -0
- package/dist/src/agents/tester/web-tester/metadata.yaml +12 -0
- package/dist/src/agents/tester/web-tester/output.md +321 -0
- package/dist/src/agents/tester/web-tester/playbook.md +428 -0
- package/dist/stores/d227-same-scope-tombstone-duplicate.test.js +118 -0
- package/dist/stores/d227-same-scope-tombstone-duplicate.test.js.map +1 -0
- package/dist/stores/wizard-store.js +21 -0
- package/dist/stores/wizard-store.js.map +1 -0
- package/dist/stores/wizard-store.test.js +3053 -0
- package/dist/stores/wizard-store.test.js.map +1 -0
- package/package.json +130 -12
- package/src/agents/_templates/agent.liquid +161 -0
- package/src/agents/_templates/methodologies/anti-over-engineering.liquid +121 -0
- package/src/agents/_templates/methodologies/context-management.liquid +162 -0
- package/src/agents/_templates/methodologies/improvement-protocol.liquid +150 -0
- package/src/agents/_templates/methodologies/investigation-requirements.liquid +49 -0
- package/src/agents/_templates/methodologies/success-criteria.liquid +111 -0
- package/src/agents/_templates/methodologies/write-verification.liquid +43 -0
- package/src/agents/developer/ai-developer/critical-reminders.md +54 -0
- package/src/agents/developer/ai-developer/critical-requirements.md +59 -0
- package/src/agents/developer/ai-developer/identity.md +51 -0
- package/src/agents/developer/ai-developer/metadata.yaml +12 -0
- package/src/agents/developer/ai-developer/output.md +366 -0
- package/src/agents/developer/ai-developer/playbook.md +335 -0
- package/src/agents/developer/api-developer/critical-reminders.md +46 -0
- package/src/agents/developer/api-developer/critical-requirements.md +44 -0
- package/src/agents/developer/api-developer/identity.md +49 -0
- package/src/agents/developer/api-developer/metadata.yaml +12 -0
- package/src/agents/developer/api-developer/output.md +432 -0
- package/src/agents/developer/api-developer/playbook.md +352 -0
- package/src/agents/developer/cli-developer/critical-reminders.md +51 -0
- package/src/agents/developer/cli-developer/critical-requirements.md +51 -0
- package/src/agents/developer/cli-developer/identity.md +51 -0
- package/src/agents/developer/cli-developer/metadata.yaml +12 -0
- package/src/agents/developer/cli-developer/output.md +285 -0
- package/src/agents/developer/cli-developer/playbook.md +386 -0
- package/src/agents/developer/web-architecture/critical-reminders.md +48 -0
- package/src/agents/developer/web-architecture/critical-requirements.md +65 -0
- package/src/agents/developer/web-architecture/identity.md +64 -0
- package/src/agents/developer/web-architecture/metadata.yaml +12 -0
- package/src/agents/developer/web-architecture/output.md +449 -0
- package/src/agents/developer/web-architecture/playbook.md +481 -0
- package/src/agents/developer/web-developer/critical-reminders.md +40 -0
- package/src/agents/developer/web-developer/critical-requirements.md +39 -0
- package/src/agents/developer/web-developer/identity.md +32 -0
- package/src/agents/developer/web-developer/metadata.yaml +12 -0
- package/src/agents/developer/web-developer/output.md +323 -0
- package/src/agents/developer/web-developer/playbook.md +349 -0
- package/src/agents/meta/agent-summoner/critical-reminders.md +45 -0
- package/src/agents/meta/agent-summoner/critical-requirements.md +52 -0
- package/src/agents/meta/agent-summoner/identity.md +34 -0
- package/src/agents/meta/agent-summoner/metadata.yaml +12 -0
- package/src/agents/meta/agent-summoner/output.md +296 -0
- package/src/agents/meta/agent-summoner/playbook.md +1469 -0
- package/src/agents/meta/codex-keeper/critical-reminders.md +39 -0
- package/src/agents/meta/codex-keeper/critical-requirements.md +29 -0
- package/src/agents/meta/codex-keeper/identity.md +45 -0
- package/src/agents/meta/codex-keeper/metadata.yaml +12 -0
- package/src/agents/meta/codex-keeper/output.md +384 -0
- package/src/agents/meta/codex-keeper/playbook.md +1183 -0
- package/src/agents/meta/convention-keeper/critical-reminders.md +32 -0
- package/src/agents/meta/convention-keeper/critical-requirements.md +32 -0
- package/src/agents/meta/convention-keeper/identity.md +33 -0
- package/src/agents/meta/convention-keeper/metadata.yaml +12 -0
- package/src/agents/meta/convention-keeper/output.md +206 -0
- package/src/agents/meta/convention-keeper/playbook.md +180 -0
- package/src/agents/meta/skill-summoner/critical-reminders.md +112 -0
- package/src/agents/meta/skill-summoner/critical-requirements.md +62 -0
- package/src/agents/meta/skill-summoner/identity.md +31 -0
- package/src/agents/meta/skill-summoner/metadata.yaml +13 -0
- package/src/agents/meta/skill-summoner/output.md +390 -0
- package/src/agents/meta/skill-summoner/playbook.md +1457 -0
- package/src/agents/pattern/pattern-scout/critical-reminders.md +71 -0
- package/src/agents/pattern/pattern-scout/critical-requirements.md +31 -0
- package/src/agents/pattern/pattern-scout/identity.md +25 -0
- package/src/agents/pattern/pattern-scout/metadata.yaml +10 -0
- package/src/agents/pattern/pattern-scout/output.md +290 -0
- package/src/agents/pattern/pattern-scout/playbook.md +1806 -0
- package/src/agents/pattern/web-pattern-critique/critical-reminders.md +30 -0
- package/src/agents/pattern/web-pattern-critique/critical-requirements.md +28 -0
- package/src/agents/pattern/web-pattern-critique/identity.md +41 -0
- package/src/agents/pattern/web-pattern-critique/metadata.yaml +12 -0
- package/src/agents/pattern/web-pattern-critique/output.md +314 -0
- package/src/agents/pattern/web-pattern-critique/playbook.md +572 -0
- package/src/agents/planning/api-pm/critical-reminders.md +48 -0
- package/src/agents/planning/api-pm/critical-requirements.md +41 -0
- package/src/agents/planning/api-pm/identity.md +39 -0
- package/src/agents/planning/api-pm/metadata.yaml +12 -0
- package/src/agents/planning/api-pm/output.md +475 -0
- package/src/agents/planning/api-pm/playbook.md +129 -0
- package/src/agents/planning/web-pm/critical-reminders.md +36 -0
- package/src/agents/planning/web-pm/critical-requirements.md +32 -0
- package/src/agents/planning/web-pm/identity.md +26 -0
- package/src/agents/planning/web-pm/metadata.yaml +12 -0
- package/src/agents/planning/web-pm/output.md +314 -0
- package/src/agents/planning/web-pm/playbook.md +318 -0
- package/src/agents/researcher/api-researcher/critical-reminders.md +27 -0
- package/src/agents/researcher/api-researcher/critical-requirements.md +28 -0
- package/src/agents/researcher/api-researcher/identity.md +71 -0
- package/src/agents/researcher/api-researcher/metadata.yaml +10 -0
- package/src/agents/researcher/api-researcher/output.md +254 -0
- package/src/agents/researcher/api-researcher/playbook.md +201 -0
- package/src/agents/researcher/web-researcher/critical-reminders.md +39 -0
- package/src/agents/researcher/web-researcher/critical-requirements.md +26 -0
- package/src/agents/researcher/web-researcher/identity.md +69 -0
- package/src/agents/researcher/web-researcher/metadata.yaml +10 -0
- package/src/agents/researcher/web-researcher/output.md +241 -0
- package/src/agents/researcher/web-researcher/playbook.md +217 -0
- package/src/agents/reviewer/ai-reviewer/critical-reminders.md +40 -0
- package/src/agents/reviewer/ai-reviewer/critical-requirements.md +37 -0
- package/src/agents/reviewer/ai-reviewer/identity.md +51 -0
- package/src/agents/reviewer/ai-reviewer/metadata.yaml +10 -0
- package/src/agents/reviewer/ai-reviewer/output.md +395 -0
- package/src/agents/reviewer/ai-reviewer/playbook.md +90 -0
- package/src/agents/reviewer/api-reviewer/critical-reminders.md +31 -0
- package/src/agents/reviewer/api-reviewer/critical-requirements.md +27 -0
- package/src/agents/reviewer/api-reviewer/identity.md +51 -0
- package/src/agents/reviewer/api-reviewer/metadata.yaml +12 -0
- package/src/agents/reviewer/api-reviewer/output.md +343 -0
- package/src/agents/reviewer/api-reviewer/playbook.md +288 -0
- package/src/agents/reviewer/cli-reviewer/critical-reminders.md +33 -0
- package/src/agents/reviewer/cli-reviewer/critical-requirements.md +30 -0
- package/src/agents/reviewer/cli-reviewer/identity.md +44 -0
- package/src/agents/reviewer/cli-reviewer/metadata.yaml +12 -0
- package/src/agents/reviewer/cli-reviewer/output.md +414 -0
- package/src/agents/reviewer/cli-reviewer/playbook.md +218 -0
- package/src/agents/reviewer/infra-reviewer/critical-reminders.md +38 -0
- package/src/agents/reviewer/infra-reviewer/critical-requirements.md +38 -0
- package/src/agents/reviewer/infra-reviewer/identity.md +53 -0
- package/src/agents/reviewer/infra-reviewer/metadata.yaml +10 -0
- package/src/agents/reviewer/infra-reviewer/output.md +364 -0
- package/src/agents/reviewer/infra-reviewer/playbook.md +161 -0
- package/src/agents/reviewer/web-reviewer/critical-reminders.md +31 -0
- package/src/agents/reviewer/web-reviewer/critical-requirements.md +26 -0
- package/src/agents/reviewer/web-reviewer/identity.md +40 -0
- package/src/agents/reviewer/web-reviewer/metadata.yaml +12 -0
- package/src/agents/reviewer/web-reviewer/output.md +333 -0
- package/src/agents/reviewer/web-reviewer/playbook.md +156 -0
- package/src/agents/tester/api-tester/critical-reminders.md +41 -0
- package/src/agents/tester/api-tester/critical-requirements.md +41 -0
- package/src/agents/tester/api-tester/identity.md +47 -0
- package/src/agents/tester/api-tester/metadata.yaml +12 -0
- package/src/agents/tester/api-tester/output.md +284 -0
- package/src/agents/tester/api-tester/playbook.md +275 -0
- package/src/agents/tester/cli-tester/critical-reminders.md +36 -0
- package/src/agents/tester/cli-tester/critical-requirements.md +36 -0
- package/src/agents/tester/cli-tester/identity.md +43 -0
- package/src/agents/tester/cli-tester/metadata.yaml +12 -0
- package/src/agents/tester/cli-tester/output.md +313 -0
- package/src/agents/tester/cli-tester/playbook.md +221 -0
- package/src/agents/tester/web-tester/critical-reminders.md +31 -0
- package/src/agents/tester/web-tester/critical-requirements.md +28 -0
- package/src/agents/tester/web-tester/identity.md +41 -0
- package/src/agents/tester/web-tester/metadata.yaml +12 -0
- package/src/agents/tester/web-tester/output.md +321 -0
- package/src/agents/tester/web-tester/playbook.md +428 -0
- package/src/schemas/agent-frontmatter.schema.json +88 -0
- package/src/schemas/agent.schema.json +103 -0
- package/src/schemas/custom-metadata.schema.json +74 -0
- package/src/schemas/hooks.schema.json +47 -0
- package/src/schemas/marketplace.schema.json +119 -0
- package/src/schemas/metadata.schema.json +387 -0
- package/src/schemas/plugin.schema.json +127 -0
- package/src/schemas/project-config.schema.json +189 -0
- package/src/schemas/project-source-config.schema.json +96 -0
- package/src/schemas/skill-frontmatter.schema.json +42 -0
- package/src/schemas/stack.schema.json +191 -0
- package/src/schemas/stacks.schema.json +107 -0
- package/bin/run.js +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/cli/lib/__tests__/mock-data/mock-matrices.ts","../src/cli/lib/__tests__/factories/plugin-factories.ts","../src/cli/lib/__tests__/mock-data/mock-skills.ts","../src/cli/lib/__tests__/content-generators.ts"],"sourcesContent":["// Shared matrix configs and compile configs for test files.\n\nimport { groupBy, mapValues } from \"remeda\";\n\nimport { createMockMultiSourceSkill, createMockSkill } from \"../factories/skill-factories.js\";\nimport { createMockCategory } from \"../factories/category-factories.js\";\nimport {\n buildCategoryMap,\n createMockMatrix,\n createMockMatrixConfig,\n} from \"../factories/matrix-factories.js\";\nimport { createMockCompileConfig } from \"../factories/plugin-factories.js\";\nimport { SKILLS, TEST_CATEGORIES } from \"../test-fixtures.js\";\nimport { FRAMEWORK_CATEGORY, MULTI_SOURCE_CATEGORIES } from \"./mock-categories.js\";\nimport {\n CATEGORY_GRID_SKILLS,\n HEALTH_ALL_REFS_RESOLVED_SKILL,\n HEALTH_MULTIPLE_UNRESOLVED_REFS_SKILL,\n HEALTH_ORPHAN_SKILL,\n HEALTH_PARTIAL_UNRESOLVED_REQUIRES_SKILL,\n HEALTH_UNRESOLVED_COMPATIBLE_WITH_SKILL,\n HEALTH_UNRESOLVED_CONFLICTS_WITH_SKILL,\n HEALTH_UNRESOLVED_REQUIRES_SKILL,\n HEALTH_ZUSTAND_RECOMMENDED,\n MULTI_SOURCE_PUBLIC_SKILLS,\n MULTI_SOURCE_ACME_SKILLS,\n MULTI_SOURCE_INTERNAL_SKILLS,\n PINIA_CONFLICTS_ZUSTAND,\n REACT_CONFLICTS_VUE,\n REACT_LOCAL,\n REACT_RECOMMENDED,\n REACT_REQUIRES_ZUSTAND,\n VUE_CONFLICTS_REACT,\n VUE_DISCOURAGES_SCSS,\n ZUSTAND_CONFLICTS_PINIA,\n ZUSTAND_UNIVERSAL,\n} from \"./mock-skills.js\";\nimport type { MultiSourceSkillEntry } from \"./mock-skills.js\";\nimport { PUBLIC_SOURCE, ACME_SOURCE, INTERNAL_SOURCE } from \"./mock-sources.js\";\nimport type {\n Category,\n CategoryDefinition,\n CategoryPath,\n MergedSkillsMatrix,\n SkillId,\n SkillSlug,\n SkillSource,\n} from \"../../../types\";\n\n// ---------------------------------------------------------------------------\n// Canonical matrix shapes — use these instead of inline createMockMatrix() calls\n// ---------------------------------------------------------------------------\n\nexport const EMPTY_MATRIX = createMockMatrix();\nexport const SINGLE_REACT_MATRIX = createMockMatrix(SKILLS.react);\nexport const WEB_PAIR_MATRIX = createMockMatrix(SKILLS.react, SKILLS.zustand);\nexport const FULLSTACK_PAIR_MATRIX = createMockMatrix(SKILLS.react, SKILLS.hono);\nexport const WEB_TRIO_MATRIX = createMockMatrix(SKILLS.react, SKILLS.zustand, SKILLS.vitest);\nexport const FULLSTACK_TRIO_MATRIX = createMockMatrix(SKILLS.react, SKILLS.hono, SKILLS.vitest);\nexport const VITEST_REACT_HONO_MATRIX = createMockMatrix(SKILLS.vitest, SKILLS.react, SKILLS.hono);\nexport const REACT_SCSS_MATRIX = createMockMatrix(SKILLS.react, SKILLS.scss);\nexport const REACT_SCSS_HONO_MATRIX = createMockMatrix(SKILLS.react, SKILLS.scss, SKILLS.hono);\nexport const SCSS_HONO_REACT_MATRIX = createMockMatrix(SKILLS.scss, SKILLS.hono, SKILLS.react);\nexport const HONO_REACT_MATRIX = createMockMatrix(SKILLS.hono, SKILLS.react);\nexport const REACT_ZUSTAND_HONO_MATRIX = createMockMatrix(\n SKILLS.react,\n SKILLS.zustand,\n SKILLS.hono,\n);\n\n/**\n * Two frameworks in an exclusive + required category, two client-state skills in\n * an exclusive but OPTIONAL one, two styling skills in a non-exclusive one, plus\n * a non-exclusive testing category. Use when a test needs the category\n * `exclusive` / `required` flags to be real — the default `createMockMatrix`\n * categories map is empty, so every category reads as \"undefined flags\" and\n * exclusivity rules can never fire. The exclusive+optional category is the one\n * shape that separates \"exclusive\" from \"exclusive AND required\" rules.\n */\nexport const CATEGORY_EXCLUSIVITY_MATRIX = createMockMatrix(\n SKILLS.react,\n SKILLS.vue,\n SKILLS.zustand,\n SKILLS.pinia,\n SKILLS.scss,\n SKILLS.tailwind,\n SKILLS.vitest,\n {\n categories: buildCategoryMap({\n \"web-framework\": { ...TEST_CATEGORIES.framework, exclusive: true, required: true },\n \"web-client-state\": { ...TEST_CATEGORIES.clientState, exclusive: true, required: false },\n \"web-styling\": { ...TEST_CATEGORIES.styling, exclusive: false },\n \"web-testing\": { ...TEST_CATEGORIES.testing, exclusive: false },\n }),\n },\n);\n\nexport const CATEGORY_GRID_MATRIX = createMockMatrix(\n ...CATEGORY_GRID_SKILLS.map(({ id, displayName, category }) =>\n createMockSkill(id, { displayName, category }),\n ),\n);\n\n// ---------------------------------------------------------------------------\n// All-skills matrices with category overrides — for wizard store tests\n// ---------------------------------------------------------------------------\n\nexport const ALL_SKILLS_TEST_CATEGORIES_MATRIX = createMockMatrix(...Object.values(SKILLS), {\n // Owner-decision cast (NOT buildCategoryMap): TEST_CATEGORIES is keyed by fixture\n // names (framework/clientState/…), NOT Category ids — a genuine key-shape mismatch\n // that these tests rely on. Documented; behavior-reviewed follow-up only.\n categories: TEST_CATEGORIES as unknown as Record<Category, CategoryDefinition>,\n});\n\nexport const ALL_SKILLS_WEB_FRAMEWORK_MATRIX = createMockMatrix(...Object.values(SKILLS), {\n categories: buildCategoryMap({\n \"web-framework\": { domain: \"web\" },\n }),\n});\n\nexport const ALL_SKILLS_WEB_PAIR_CATEGORIES_MATRIX = createMockMatrix(...Object.values(SKILLS), {\n categories: buildCategoryMap({\n \"web-framework\": { domain: \"web\" },\n \"web-client-state\": { domain: \"web\" },\n }),\n});\n\nexport const ALL_SKILLS_FULLSTACK_CATEGORIES_MATRIX = createMockMatrix(...Object.values(SKILLS), {\n categories: buildCategoryMap({\n \"web-framework\": { domain: \"web\" },\n \"web-client-state\": { domain: \"web\" },\n \"api-api\": { domain: \"api\" },\n }),\n});\n\nexport const ALL_SKILLS_WEB_AND_API_MATRIX = createMockMatrix(...Object.values(SKILLS), {\n categories: buildCategoryMap({\n \"web-framework\": { domain: \"web\" },\n \"api-api\": { domain: \"api\" },\n }),\n});\n\nexport const ALL_SKILLS_METHODOLOGY_MATRIX = createMockMatrix(...Object.values(SKILLS), {\n categories: buildCategoryMap({\n \"meta-reviewing\": { domain: \"meta\" },\n }),\n});\n\nexport const ALL_SKILLS_METHODOLOGY_BARE_MATRIX = createMockMatrix(...Object.values(SKILLS), {\n categories: buildCategoryMap({\n \"meta-reviewing\": {},\n }),\n});\n\nexport const ALL_SKILLS_MULTI_DOMAIN_MATRIX = createMockMatrix(...Object.values(SKILLS), {\n categories: buildCategoryMap({\n \"web-framework\": { domain: \"web\" },\n \"meta-reviewing\": { domain: \"meta\" },\n \"api-api\": { domain: \"api\" },\n }),\n});\n\nexport const REACT_HONO_FRAMEWORK_API_MATRIX = createMockMatrix(SKILLS.react, SKILLS.hono, {\n categories: buildCategoryMap({\n \"web-framework\": TEST_CATEGORIES.framework,\n \"api-api\": TEST_CATEGORIES.api,\n }),\n});\n\n// Like REACT_HONO_FRAMEWORK_API_MATRIX but with api-api on the \"api\" domain, so the\n// two skills split across distinct domains (react → web, hono → api). Category defs\n// are complete (carry `id`), so buildCategoriesForDomain resolves options per domain.\nexport const REACT_HONO_WEB_API_DOMAINS_MATRIX = createMockMatrix(SKILLS.react, SKILLS.hono, {\n categories: buildCategoryMap({\n \"web-framework\": TEST_CATEGORIES.framework,\n \"api-api\": { ...TEST_CATEGORIES.api, domain: \"api\" },\n }),\n});\n\n// ---------------------------------------------------------------------------\n// Matrix configs from matrix-loader.test.ts\n// ---------------------------------------------------------------------------\n\nexport const MERGE_BASIC_MATRIX = createMockMatrixConfig({ \"web-framework\": FRAMEWORK_CATEGORY });\n\nexport const CONFLICT_MATRIX = createMockMatrixConfig(\n {},\n {\n relationships: {\n conflicts: [{ skills: [\"react\", \"vue-composition-api\"], reason: \"Pick one framework\" }],\n },\n },\n);\n\nexport const ALTERNATIVES_MATRIX = createMockMatrixConfig(\n {},\n {\n relationships: {\n alternatives: [\n {\n purpose: \"State management\",\n skills: [\"zustand\", \"jotai\"],\n },\n ],\n },\n },\n);\n\nexport const REQUIRES_MATRIX = createMockMatrixConfig(\n {},\n {\n relationships: {\n requires: [\n {\n skill: \"zustand\",\n needs: [\"react\"],\n reason: \"Zustand needs React\",\n },\n ],\n },\n },\n);\n\n// ---------------------------------------------------------------------------\n// MergedSkillsMatrix instances from config-generator.test.ts\n// ---------------------------------------------------------------------------\n\nexport const LOCAL_SKILL_MATRIX = createMockMatrix(\n // Boundary cast: fictional skill ID for testing local skill matrix\n createMockSkill(\"web-local-skill\" as SkillId, {\n local: true,\n localPath: \"/mock-project/.claude/skills/my-local-skill/\",\n }),\n);\n\nexport const MIXED_LOCAL_REMOTE_MATRIX = createMockMatrix(\n SKILLS.react,\n // Boundary cast: fictional skill ID for testing mixed local/remote matrix\n createMockSkill(\"meta-company-patterns\" as SkillId, {\n local: true,\n localPath: \"/mock-project/.claude/skills/company-patterns/\",\n }),\n);\n\nexport const METHODOLOGY_MATRIX = createMockMatrix(SKILLS.antiOverEng);\n\nexport const VITEST_MATRIX = createMockMatrix(SKILLS.vitest);\n\nexport const MULTI_STYLING_MATRIX = createMockMatrix(SKILLS.react, SKILLS.scss, SKILLS.tailwind);\n\n// ---------------------------------------------------------------------------\n// Compile configs from resolver.test.ts\n// ---------------------------------------------------------------------------\n\nexport const WEB_AND_API_COMPILE_CONFIG = createMockCompileConfig({\n \"web-developer\": {},\n \"api-developer\": {},\n});\n\nexport const WEB_ONLY_COMPILE_CONFIG = createMockCompileConfig({\n \"web-developer\": {},\n});\n\n// ---------------------------------------------------------------------------\n// Matrix configs from consumer-stacks-matrix.integration.test.ts\n// ---------------------------------------------------------------------------\n\nexport const TOOLING_AND_FRAMEWORK_CONFIG = createMockMatrixConfig({\n \"shared-tooling\": {\n ...TEST_CATEGORIES.tooling,\n description: \"Development tooling and infrastructure\",\n domain: \"shared\" as const,\n exclusive: false,\n order: 20,\n },\n \"web-framework\": {\n ...TEST_CATEGORIES.framework,\n description: \"UI Framework\",\n required: true,\n order: 1,\n },\n});\n\nexport const CI_CD_CONFIG = createMockMatrixConfig({\n \"infra-ci-cd\": createMockCategory(\"infra-ci-cd\", \"CI/CD\", {\n description: \"Continuous integration and deployment\",\n domain: \"infra\",\n exclusive: true,\n required: false,\n order: 30,\n }),\n});\n\nexport const FRAMEWORK_AND_STYLING_CONFIG = createMockMatrixConfig(\n {\n \"web-framework\": {\n ...TEST_CATEGORIES.framework,\n description: \"UI Framework\",\n required: true,\n order: 1,\n },\n \"web-styling\": {\n ...TEST_CATEGORIES.styling,\n description: \"CSS approach\",\n exclusive: false,\n order: 2,\n },\n },\n {\n relationships: {\n discourages: [\n {\n skills: [\"react\", \"scss-modules\"],\n reason: \"These tools have conflicting design philosophies\",\n },\n ],\n recommends: [\n {\n skill: \"vue-composition-api\",\n reason: \"These work great together\",\n },\n ],\n },\n },\n);\n\nexport const OBSERVABILITY_CONFIG = createMockMatrixConfig({\n \"api-observability\": createMockCategory(\"api-observability\", \"Observability\", {\n description: \"Monitoring and observability tools\",\n domain: \"api\",\n exclusive: false,\n required: false,\n order: 15,\n }),\n});\n\nexport const FRAMEWORK_AND_TESTING_CONFIG = createMockMatrixConfig(\n {\n \"web-framework\": {\n ...TEST_CATEGORIES.framework,\n description: \"UI Framework\",\n required: true,\n order: 1,\n },\n \"web-testing\": {\n ...TEST_CATEGORIES.testing,\n description: \"Testing tools\",\n domain: \"shared\" as const,\n exclusive: false,\n order: 10,\n },\n },\n {\n relationships: {\n requires: [\n {\n skill: \"vitest\",\n needs: [\"react\"],\n reason: \"RTL requires React to function\",\n },\n ],\n },\n },\n);\n\n// ---------------------------------------------------------------------------\n// Matrix configs from skill-resolution.test.ts\n// ---------------------------------------------------------------------------\n\nexport const EMPTY_MATRIX_CONFIG = createMockMatrixConfig({});\n\nexport const UNRESOLVED_CONFLICT_MATRIX = createMockMatrixConfig(\n {},\n {\n relationships: {\n conflicts: [\n {\n // Boundary cast: deliberately invalid slug to test unresolved reference handling\n skills: [\"react\", \"nonexistent\" as SkillSlug],\n reason: \"Conflict with missing skill\",\n },\n ],\n },\n },\n);\n\n// ---------------------------------------------------------------------------\n// Health-check matrices from matrix-health-check.test.ts\n// ---------------------------------------------------------------------------\n\nconst HEALTH_MISSING_DOMAIN_FRAMEWORK_CATEGORY = {\n ...TEST_CATEGORIES.framework,\n domain: undefined,\n};\n\nconst HEALTH_MISSING_DOMAIN_STYLING_CATEGORY = {\n ...TEST_CATEGORIES.styling,\n domain: undefined,\n};\n\nexport const HEALTH_HEALTHY_MATRIX = createMockMatrix(SKILLS.react, HEALTH_ZUSTAND_RECOMMENDED, {\n categories: buildCategoryMap({\n \"web-framework\": TEST_CATEGORIES.framework,\n \"web-client-state\": TEST_CATEGORIES.clientState,\n }),\n});\n\nexport const HEALTH_SINGLE_SKILL_MATRIX = createMockMatrix(SKILLS.react, {\n categories: {\n \"web-framework\": TEST_CATEGORIES.framework,\n },\n});\n\nexport const HEALTH_MISSING_DOMAIN_MATRIX = createMockMatrix(SKILLS.react, {\n categories: {\n \"web-framework\": HEALTH_MISSING_DOMAIN_FRAMEWORK_CATEGORY,\n },\n});\n\nexport const HEALTH_MULTIPLE_MISSING_DOMAINS_MATRIX = createMockMatrix(\n {},\n {\n categories: {\n \"web-framework\": HEALTH_MISSING_DOMAIN_FRAMEWORK_CATEGORY,\n \"web-styling\": HEALTH_MISSING_DOMAIN_STYLING_CATEGORY,\n \"web-client-state\": TEST_CATEGORIES.clientState,\n },\n },\n);\n\nexport const HEALTH_UNKNOWN_CATEGORY_MATRIX = createMockMatrix(HEALTH_ORPHAN_SKILL, {\n categories: {\n \"web-framework\": TEST_CATEGORIES.framework,\n },\n});\n\nexport const HEALTH_ORPHAN_SKILL_WITH_MISSING_DOMAIN_MATRIX = createMockMatrix(\n HEALTH_ORPHAN_SKILL,\n {\n categories: {\n \"web-framework\": HEALTH_MISSING_DOMAIN_FRAMEWORK_CATEGORY,\n },\n },\n);\n\nexport const HEALTH_UNRESOLVED_COMPATIBLE_WITH_MATRIX = createMockMatrix(\n HEALTH_UNRESOLVED_COMPATIBLE_WITH_SKILL,\n {\n categories: {\n \"web-client-state\": TEST_CATEGORIES.clientState,\n },\n },\n);\n\nexport const HEALTH_UNRESOLVED_CONFLICTS_WITH_MATRIX = createMockMatrix(\n HEALTH_UNRESOLVED_CONFLICTS_WITH_SKILL,\n {\n categories: {\n \"web-framework\": TEST_CATEGORIES.framework,\n },\n },\n);\n\nexport const HEALTH_UNRESOLVED_REQUIRES_MATRIX = createMockMatrix(\n HEALTH_UNRESOLVED_REQUIRES_SKILL,\n {\n categories: {\n \"web-testing\": TEST_CATEGORIES.testing,\n },\n },\n);\n\nexport const HEALTH_MULTIPLE_UNRESOLVED_REFS_MATRIX = createMockMatrix(\n HEALTH_MULTIPLE_UNRESOLVED_REFS_SKILL,\n {\n categories: {\n \"web-client-state\": TEST_CATEGORIES.clientState,\n },\n },\n);\n\nexport const HEALTH_ALL_REFS_RESOLVED_MATRIX = createMockMatrix(\n SKILLS.react,\n HEALTH_ALL_REFS_RESOLVED_SKILL,\n {\n categories: {\n \"web-framework\": TEST_CATEGORIES.framework,\n \"web-client-state\": TEST_CATEGORIES.clientState,\n },\n },\n);\n\nexport const HEALTH_PARTIAL_UNRESOLVED_REQUIRES_MATRIX = createMockMatrix(\n SKILLS.react,\n HEALTH_PARTIAL_UNRESOLVED_REQUIRES_SKILL,\n {\n categories: {\n \"web-framework\": TEST_CATEGORIES.framework,\n \"web-testing\": TEST_CATEGORIES.testing,\n },\n },\n);\n\n// ---------------------------------------------------------------------------\n// Multi-source matrix from skill-resolution.integration.test.ts\n// ---------------------------------------------------------------------------\n\ntype TaggedMultiSourceEntry = MultiSourceSkillEntry & { source: SkillSource };\n\nexport function buildMultiSourceMatrix(\n overrides?: Partial<MergedSkillsMatrix>,\n): MergedSkillsMatrix {\n const taggedEntries: TaggedMultiSourceEntry[] = [\n ...MULTI_SOURCE_PUBLIC_SKILLS.map((s) => ({ ...s, source: { ...PUBLIC_SOURCE } })),\n ...MULTI_SOURCE_ACME_SKILLS.map((s) => ({ ...s, source: { ...ACME_SOURCE } })),\n ...MULTI_SOURCE_INTERNAL_SKILLS.map((s) => ({ ...s, source: { ...INTERNAL_SOURCE } })),\n ];\n const grouped = groupBy(taggedEntries, (e) => e.id);\n const skills = mapValues(grouped, (entries) => {\n const first = entries[0]!;\n const sources = entries.map((e) => e.source);\n // Boundary cast: MultiSourceSkillEntry.id is string, but contains valid skill IDs\n return createMockMultiSourceSkill(first.id as SkillId, sources, {\n category: first.category as CategoryPath,\n description: first.description,\n });\n });\n\n return createMockMatrix(skills, {\n categories: MULTI_SOURCE_CATEGORIES,\n ...overrides,\n });\n}\n\n// ---------------------------------------------------------------------------\n// Build-step-logic test matrices\n// ---------------------------------------------------------------------------\n\n/** Shared category overrides for framework (required) + state management */\nconst BUILD_STEP_CATEGORIES = buildCategoryMap({\n \"web-framework\": { ...TEST_CATEGORIES.framework, required: true },\n \"web-client-state\": {\n ...TEST_CATEGORIES.clientState,\n displayName: \"State Management\",\n order: 1,\n },\n});\n\n/** Base matrix: React + Vue frameworks, Zustand + Pinia state — with required framework category */\nexport const BUILD_STEP_WEB_MATRIX = createMockMatrix(\n SKILLS.react,\n SKILLS.vue,\n SKILLS.zustand,\n SKILLS.pinia,\n { categories: BUILD_STEP_CATEGORIES },\n);\n\n/** React (with requires: zustand) + Zustand — for dependency/requiredBy tests */\nexport const BUILD_STEP_REQUIRES_MATRIX = createMockMatrix(REACT_REQUIRES_ZUSTAND, SKILLS.zustand, {\n categories: BUILD_STEP_CATEGORIES,\n});\n\n/** Framework category with no skills — tests filtering of empty categories */\nexport const BUILD_STEP_EMPTY_FRAMEWORK_MATRIX = createMockMatrix(\n {},\n {\n categories: buildCategoryMap({\n \"web-framework\": { ...TEST_CATEGORIES.framework, required: true },\n }),\n },\n);\n\n/** React with required: true, exclusive: false on framework — tests flag propagation */\nexport const BUILD_STEP_FRAMEWORK_NON_EXCLUSIVE_MATRIX = createMockMatrix(SKILLS.react, {\n categories: buildCategoryMap({\n \"web-framework\": {\n ...TEST_CATEGORIES.framework,\n required: true,\n exclusive: false,\n },\n }),\n});\n\n/** React with required/exclusive omitted from framework — tests ?? defaults */\nconst { required: _r, exclusive: _e, ...FRAMEWORK_WITHOUT_FLAGS } = TEST_CATEGORIES.framework;\nexport const BUILD_STEP_FRAMEWORK_NO_FLAGS_MATRIX = createMockMatrix(SKILLS.react, {\n categories: buildCategoryMap({\n \"web-framework\": FRAMEWORK_WITHOUT_FLAGS,\n }),\n});\n\n/** React + Hono with framework (required) + api categories — tests domain filtering */\nexport const BUILD_STEP_FRAMEWORK_API_MATRIX = createMockMatrix(SKILLS.react, SKILLS.hono, {\n categories: buildCategoryMap({\n \"web-framework\": { ...TEST_CATEGORIES.framework, required: true },\n \"api-api\": {\n ...TEST_CATEGORIES.api,\n domain: \"api\" as const,\n displayName: \"API Framework\",\n },\n }),\n});\n\n/** React with just framework category — tests no-match domain (returns empty for \"api\") */\nexport const BUILD_STEP_FRAMEWORK_ONLY_MATRIX = createMockMatrix(SKILLS.react, {\n categories: buildCategoryMap({\n \"web-framework\": { ...TEST_CATEGORIES.framework },\n }),\n});\n\n/** Hono + Drizzle with api + database categories — tests non-web domain filtering */\nexport const BUILD_STEP_API_DB_MATRIX = createMockMatrix(SKILLS.hono, SKILLS.drizzle, {\n categories: buildCategoryMap({\n \"api-api\": {\n ...TEST_CATEGORIES.api,\n domain: \"api\" as const,\n required: true,\n },\n \"api-database\": {\n ...TEST_CATEGORIES.database,\n domain: \"api\" as const,\n order: 1,\n },\n }),\n});\n\n/** React + universal Zustand + Pinia — tests empty compatibleWith pass-through */\nexport const BUILD_STEP_UNIVERSAL_COMPAT_MATRIX = createMockMatrix(\n SKILLS.react,\n ZUSTAND_UNIVERSAL,\n SKILLS.pinia,\n {\n categories: buildCategoryMap({\n \"web-framework\": { ...TEST_CATEGORIES.framework, required: true },\n \"web-client-state\": {\n ...TEST_CATEGORIES.clientState,\n displayName: \"State Management\",\n order: 1,\n },\n }),\n },\n);\n\n/** Local React skill with framework category — tests local flag propagation */\nexport const BUILD_STEP_LOCAL_SKILL_MATRIX = createMockMatrix(REACT_LOCAL, {\n categories: buildCategoryMap({\n \"web-framework\": { ...TEST_CATEGORIES.framework },\n }),\n});\n\n/** React (non-local) with framework category — tests non-local skills have local undefined */\nexport const BUILD_STEP_NON_LOCAL_MATRIX = createMockMatrix(SKILLS.react, {\n categories: buildCategoryMap({\n \"web-framework\": { ...TEST_CATEGORIES.framework },\n }),\n});\n\n/** React with custom displayName on framework category — tests displayName propagation */\nexport const BUILD_STEP_DISPLAY_NAME_MATRIX = createMockMatrix(SKILLS.react, {\n categories: buildCategoryMap({\n \"web-framework\": {\n ...TEST_CATEGORIES.framework,\n displayName: \"Web Framework\",\n },\n }),\n});\n\n/** React + Zustand + SCSS with 3 categories and custom order values — tests sorting */\nexport const BUILD_STEP_SORTING_MATRIX = createMockMatrix(\n SKILLS.react,\n SKILLS.zustand,\n SKILLS.scss,\n {\n categories: buildCategoryMap({\n \"web-client-state\": {\n ...TEST_CATEGORIES.clientState,\n displayName: \"State Management\",\n order: 10,\n },\n \"web-framework\": { ...TEST_CATEGORIES.framework, order: 5 },\n \"web-styling\": { ...TEST_CATEGORIES.styling, order: 1 },\n }),\n },\n);\n\n/** React + Zustand with one category missing order — tests undefined order defaults to 0 */\nconst { order: _o, ...FRAMEWORK_WITHOUT_ORDER } = TEST_CATEGORIES.framework;\nexport const BUILD_STEP_UNDEFINED_ORDER_MATRIX = createMockMatrix(SKILLS.react, SKILLS.zustand, {\n categories: buildCategoryMap({\n \"web-client-state\": {\n ...TEST_CATEGORIES.clientState,\n displayName: \"State Management\",\n order: 1,\n },\n \"web-framework\": FRAMEWORK_WITHOUT_ORDER,\n }),\n});\n\n/** React/Vue conflicts in exclusive framework category — tests incompatible suppression */\nexport const BUILD_STEP_CONFLICTS_EXCLUSIVE_MATRIX = createMockMatrix(\n REACT_CONFLICTS_VUE,\n VUE_CONFLICTS_REACT,\n {\n categories: buildCategoryMap({\n \"web-framework\": { ...TEST_CATEGORIES.framework, exclusive: true },\n }),\n },\n);\n\n/** Zustand/Pinia conflicts in non-exclusive state category — tests preserved incompatibility */\nexport const BUILD_STEP_CONFLICTS_NON_EXCLUSIVE_MATRIX = createMockMatrix(\n ZUSTAND_CONFLICTS_PINIA,\n PINIA_CONFLICTS_ZUSTAND,\n {\n categories: buildCategoryMap({\n \"web-client-state\": {\n ...TEST_CATEGORIES.clientState,\n displayName: \"State Management\",\n exclusive: false,\n },\n }),\n },\n);\n\n/** Recommended React + discouraged Vue + SCSS — tests preserved advisory states in exclusive categories */\nexport const BUILD_STEP_ADVISORY_STATES_MATRIX = createMockMatrix(\n REACT_RECOMMENDED,\n VUE_DISCOURAGES_SCSS,\n SKILLS.scss,\n {\n categories: buildCategoryMap({\n \"web-framework\": { ...TEST_CATEGORIES.framework, exclusive: true },\n \"web-styling\": { ...TEST_CATEGORIES.styling },\n }),\n },\n);\n","import { CLAUDE_DIR, DEFAULT_PLUGIN_NAME, PLUGINS_SUBDIR } from \"../../../consts\";\nimport type {\n CompileAgentConfig,\n CompileConfig,\n CompileContext,\n Marketplace,\n MarketplacePlugin,\n} from \"../../../types\";\nimport type { CompiledStackPlugin } from \"../../stacks/stack-plugin-compiler\";\n\nexport function createCompileContext(overrides?: Partial<CompileContext>): CompileContext {\n return {\n stackId: \"test-stack\",\n verbose: false,\n projectRoot: \"/project\",\n outputDir: `/project/${CLAUDE_DIR}/${PLUGINS_SUBDIR}/${DEFAULT_PLUGIN_NAME}`,\n ...overrides,\n };\n}\n\nexport function createMockCompileConfig(\n agents: Record<string, CompileAgentConfig>,\n overrides?: Partial<CompileConfig>,\n): CompileConfig {\n return {\n name: \"Test Plugin\",\n description: \"Test description\",\n agents,\n ...overrides,\n };\n}\n\nexport function createMockMarketplace(plugins: MarketplacePlugin[] = []): Marketplace {\n return {\n name: \"test-marketplace\",\n version: \"1.0.0\",\n owner: { name: \"Test Owner\" },\n plugins,\n };\n}\n\nexport function createMockMarketplacePlugin(\n name: string,\n source: MarketplacePlugin[\"source\"] = \"local\",\n category: MarketplacePlugin[\"category\"] = \"web-framework\",\n): MarketplacePlugin {\n return {\n name,\n source,\n category,\n };\n}\n\nexport function createMockCompiledStackPlugin(\n overrides?: Partial<CompiledStackPlugin>,\n): CompiledStackPlugin {\n return {\n pluginPath: \"/tmp/cc-stack-123456/test-stack\",\n manifest: { name: \"test-stack\", version: \"1.0.0\" },\n stackName: \"Test Stack\",\n agents: [\"web-developer\"],\n skillPlugins: [\"web-framework-react\"],\n hasHooks: false,\n ...overrides,\n };\n}\n","// Shared skill entries and TestSkill arrays for test files.\n\nimport type {\n Category,\n CategoryPath,\n ResolvedSkill,\n Skill,\n SkillId,\n SkillSlug,\n} from \"../../../types\";\nimport type { TestSkill } from \"../fixtures/create-test-source\";\nimport {\n createMockSkill,\n createMockSkillEntry,\n createTestSkill,\n} from \"../factories/skill-factories.js\";\nimport { SKILLS } from \"../test-fixtures\";\nimport { renderSkillMd } from \"../content-generators\";\n\n// Skill entries from compiler.test.ts\n\nexport const REACT_SKILL_PRELOADED = createMockSkillEntry(\"web-framework-react\", true);\n\nexport const REACT_SKILL = createMockSkillEntry(\"web-framework-react\");\n\nexport const VITEST_SKILL = createMockSkillEntry(\"web-testing-vitest\");\n\nexport const VITEST_SINGLE_FILE_SKILL: Skill = {\n ...VITEST_SKILL,\n path: \"skills/web-testing-vitest.md\",\n};\n\nconst METHODOLOGY_TEST_SKILLS: TestSkill[] = [\n {\n id: \"meta-reviewing-reviewing\",\n slug: \"reviewing\",\n displayName: \"Anti Over-Engineering\",\n description: \"Surgical implementation, not architectural innovation\",\n category: \"meta-reviewing\",\n author: \"@test\",\n domain: \"meta\",\n },\n];\n\n// Individual TestSkill constants — each skill defined exactly once\n\nconst reactSkill = createTestSkill(\n \"web-framework-react\",\n \"React framework for building user interfaces\",\n {},\n);\n\nconst zustandSkill = createTestSkill(\"web-state-zustand\", \"Bear necessities state management\");\n\nconst vitestSkill = createTestSkill(\"web-testing-vitest\", \"Next generation testing framework\");\n\nconst honoSkill = createTestSkill(\"api-framework-hono\", \"Lightweight web framework for the edge\");\n\nconst vueSkill = createTestSkill(\n \"web-framework-vue-composition-api\",\n \"Progressive JavaScript framework\",\n {},\n);\n\nconst scssSkill = createTestSkill(\"web-styling-scss-modules\", \"CSS Modules with SCSS\", {\n displayName: \"SCSS Modules\",\n});\n\nconst drizzleSkill = createTestSkill(\"api-database-drizzle\", \"TypeScript ORM for SQL databases\");\n\n// Composed TestSkill arrays\n\nexport const EXTRA_DOMAIN_TEST_SKILLS: TestSkill[] = [vueSkill, scssSkill, drizzleSkill];\n\nexport const COMPILE_LOCAL_SKILL: TestSkill = createTestSkill(\n // Boundary cast: fictional skill ID for testing local skill compilation\n \"web-tooling-local-skill\" as SkillId,\n \"A local project skill\",\n { slug: \"tooling\" as SkillSlug, displayName: \"Local Skill\" },\n);\n\nexport const DEFAULT_TEST_SKILLS: TestSkill[] = [reactSkill, zustandSkill, vitestSkill, honoSkill];\n\n// TestSkill constants from consumer-stacks-matrix.integration.test.ts\n\nexport const DOCKER_TOOLING_SKILL: TestSkill = createTestSkill(\n // Boundary cast: fictional skill ID for testing infra tooling\n \"infra-tooling-docker\" as SkillId,\n \"Docker containerization patterns\",\n {\n slug: \"tooling\" as SkillSlug,\n displayName: \"Docker\",\n domain: \"shared\",\n },\n);\n\nexport const CI_CD_SKILLS: TestSkill[] = [\n // Boundary cast: fictional skill ID for testing CI/CD skills\n createTestSkill(\"infra-ci-cd-github-actions\" as SkillId, \"github-actions CI/CD pipeline\", {\n slug: \"github-actions\",\n displayName: \"GitHub Actions\",\n category: \"infra-ci-cd\",\n domain: \"infra\",\n }),\n // Boundary cast: fictional skill ID for testing CI/CD skills\n createTestSkill(\"infra-ci-cd-gitlab-ci\" as SkillId, \"gitlab-ci CI/CD pipeline\", {\n // Boundary cast: fictional slug for test isolation\n slug: \"gitlab-ci\" as SkillSlug,\n displayName: \"GitLab CI\",\n category: \"infra-ci-cd\",\n domain: \"infra\",\n }),\n];\n\nexport const DISCOURAGES_RELATIONSHIP_SKILLS: TestSkill[] = [reactSkill, scssSkill, vueSkill];\n\nexport const DATADOG_OBSERVABILITY_SKILL: TestSkill = createTestSkill(\n // Boundary cast: fictional skill ID for testing observability skills\n \"api-observability-datadog\" as SkillId,\n \"Datadog APM integration\",\n {},\n);\n\nexport const REQUIRES_RELATIONSHIP_SKILLS: TestSkill[] = [reactSkill, vitestSkill];\n\n// Source-switching TestSkill arrays (with rendered SKILL.md content)\n\n/** Creates a TestSkill with rendered SKILL.md content for source-switching tests */\nfunction contentSkill(id: SkillId, description: string, body: string, author?: string): TestSkill {\n return createTestSkill(id, description, {\n ...(author ? { author } : {}),\n content: renderSkillMd(id, description, body),\n });\n}\n\nexport const SWITCHABLE_SKILLS: TestSkill[] = [\n contentSkill(\n \"web-framework-react\",\n \"React framework for building user interfaces\",\n \"# React (Marketplace Version)\\n\\nReact is a JavaScript library for building user interfaces.\\nUse component-based architecture with JSX.\",\n ),\n contentSkill(\n \"web-state-zustand\",\n \"Bear necessities state management\",\n \"# Zustand (Marketplace Version)\\n\\nZustand is a minimal state management library for React.\",\n ),\n contentSkill(\n \"api-framework-hono\",\n \"Lightweight web framework for the edge\",\n \"# Hono (Marketplace Version)\\n\\nHono is a fast web framework for the edge.\",\n ),\n contentSkill(\n \"web-testing-vitest\",\n \"Next generation testing framework\",\n \"# Vitest (Marketplace Version)\\n\\nVitest is a fast unit test framework powered by Vite.\",\n ),\n];\n\nexport const LOCAL_SKILL_VARIANTS: TestSkill[] = [\n contentSkill(\n \"web-framework-react\",\n \"React framework (local customized version)\",\n \"# React (Local Version)\\n\\nThis is my customized React skill with project-specific patterns.\",\n \"@local-user\",\n ),\n contentSkill(\n \"web-state-zustand\",\n \"Zustand state management (local customized version)\",\n \"# Zustand (Local Version)\\n\\nMy customized Zustand patterns with project-specific stores.\",\n \"@local-user\",\n ),\n];\n\nexport const RESOLUTION_PIPELINE_SKILLS: TestSkill[] = [\n createTestSkill(\"web-framework-react\", \"React framework (public source)\"),\n createTestSkill(\"api-framework-hono\", \"Hono framework (acme source)\", {\n author: \"@acme\",\n }),\n // Boundary cast: fictional skill ID for testing multi-source resolution\n createTestSkill(\"web-animation-framer\" as SkillId, \"Framer Motion (internal source)\", {\n slug: \"framer-motion\",\n displayName: \"Framer Motion\",\n author: \"@internal\",\n }),\n createTestSkill(\"api-database-drizzle\", \"Drizzle ORM (acme source)\", {\n author: \"@acme\",\n }),\n createTestSkill(\"web-testing-vitest\", \"Vitest testing (public source)\"),\n];\n\n// Composed skill ID collections\n\nexport const ALL_TEST_SKILLS = [\n ...DEFAULT_TEST_SKILLS,\n ...EXTRA_DOMAIN_TEST_SKILLS,\n ...METHODOLOGY_TEST_SKILLS,\n];\n\nexport const INIT_SKILL_IDS: SkillId[] = [\n \"web-framework-react\",\n \"api-framework-hono\",\n \"web-testing-vitest\",\n];\n\nexport const INIT_TEST_SKILLS = DEFAULT_TEST_SKILLS.filter((s) =>\n INIT_SKILL_IDS.includes(s.id as SkillId),\n);\n\n// ---------------------------------------------------------------------------\n// Health-check skill variants (matrix-health-check.test.ts)\n// ---------------------------------------------------------------------------\n\nexport const HEALTH_ZUSTAND_RECOMMENDED = {\n ...SKILLS.zustand,\n isRecommended: true,\n recommendedReason: \"Works well with React\",\n};\n\nexport const HEALTH_ORPHAN_SKILL = {\n ...SKILLS.react,\n category: \"nonexistent-category\" as Category,\n};\n\nexport const HEALTH_UNRESOLVED_COMPATIBLE_WITH_SKILL = {\n ...SKILLS.zustand,\n // Boundary cast: fake SkillId for unresolved-ref testing\n compatibleWith: [\"web-framework-nonexistent\" as SkillId],\n};\n\nexport const HEALTH_UNRESOLVED_CONFLICTS_WITH_SKILL = {\n ...SKILLS.react,\n // Boundary cast: fake SkillId for unresolved-ref testing\n conflictsWith: [{ skillId: \"web-framework-ghost\" as SkillId, reason: \"Conflicts\" }],\n};\n\nexport const HEALTH_UNRESOLVED_REQUIRES_SKILL = createMockSkill(\"web-testing-cypress-e2e\", {\n requires: [\n {\n skillIds: [\"web-framework-missing\" as SkillId],\n needsAny: false,\n reason: \"Needs a framework\",\n },\n ],\n});\n\nexport const HEALTH_MULTIPLE_UNRESOLVED_REFS_SKILL = {\n ...SKILLS.zustand,\n // Boundary casts: fake SkillIds for unresolved-ref testing\n compatibleWith: [\"web-framework-missing\" as SkillId],\n conflictsWith: [{ skillId: \"web-state-ghost\" as SkillId, reason: \"Conflicts\" }],\n};\n\nexport const HEALTH_ALL_REFS_RESOLVED_SKILL: ResolvedSkill = {\n ...SKILLS.zustand,\n conflictsWith: [{ skillId: \"web-framework-react\", reason: \"Test\" }],\n requires: [\n {\n skillIds: [\"web-framework-react\"],\n needsAny: false,\n reason: \"Needs React\",\n },\n ],\n};\n\nexport const HEALTH_PARTIAL_UNRESOLVED_REQUIRES_SKILL = createMockSkill(\"web-testing-cypress-e2e\", {\n requires: [\n {\n skillIds: [\"web-framework-react\", \"web-framework-missing\" as SkillId],\n needsAny: true,\n reason: \"Needs one framework\",\n },\n ],\n});\n\n// ---------------------------------------------------------------------------\n// Category grid test skills (category-grid.test.tsx)\n// ---------------------------------------------------------------------------\n\nexport const CATEGORY_GRID_SKILLS: {\n id: SkillId;\n displayName: string;\n category: CategoryPath;\n}[] = [\n { id: \"web-framework-react\", displayName: \"React\", category: \"web-framework\" },\n { id: \"web-framework-vue-composition-api\", displayName: \"Vue\", category: \"web-framework\" },\n { id: \"web-framework-angular-standalone\", displayName: \"Angular\", category: \"web-framework\" },\n { id: \"web-framework-solidjs\", displayName: \"SolidJS\", category: \"web-framework\" },\n { id: \"web-meta-framework-nuxt\", displayName: \"Nuxt\", category: \"web-meta-framework\" },\n { id: \"web-meta-framework-remix\", displayName: \"Remix\", category: \"web-meta-framework\" },\n { id: \"web-meta-framework-nextjs\", displayName: \"Next.js\", category: \"web-meta-framework\" },\n { id: \"web-styling-scss-modules\", displayName: \"SCSS Modules\", category: \"web-styling\" },\n { id: \"web-styling-tailwind\", displayName: \"Tailwind\", category: \"web-styling\" },\n { id: \"web-styling-cva\", displayName: \"CVA\", category: \"web-styling\" },\n { id: \"web-state-zustand\", displayName: \"Zustand\", category: \"web-client-state\" },\n { id: \"web-state-jotai\", displayName: \"Jotai\", category: \"web-client-state\" },\n { id: \"web-state-redux-toolkit\", displayName: \"Redux\", category: \"web-client-state\" },\n { id: \"web-state-mobx\", displayName: \"MobX\", category: \"web-client-state\" },\n { id: \"web-server-state-react-query\", displayName: \"React Query\", category: \"web-server-state\" },\n { id: \"web-data-fetching-swr\", displayName: \"SWR\", category: \"web-server-state\" },\n { id: \"web-data-fetching-graphql-apollo\", displayName: \"Apollo\", category: \"web-server-state\" },\n { id: \"api-analytics-posthog-analytics\", displayName: \"PostHog\", category: \"api-analytics\" },\n { id: \"web-forms-react-hook-form\", displayName: \"React Hook Form\", category: \"web-forms\" },\n { id: \"web-forms-vee-validate\", displayName: \"Vee Validate\", category: \"web-forms\" },\n { id: \"web-forms-zod-validation\", displayName: \"Zod Validation\", category: \"web-forms\" },\n { id: \"web-testing-vitest\", displayName: \"Vitest\", category: \"web-testing\" },\n { id: \"web-testing-playwright-e2e\", displayName: \"Playwright\", category: \"web-testing\" },\n { id: \"web-testing-cypress-e2e\", displayName: \"Cypress\", category: \"web-testing\" },\n { id: \"web-mocks-msw\", displayName: \"MSW\", category: \"web-mocking\" },\n {\n id: \"web-testing-react-testing-library\",\n displayName: \"React Testing Library\",\n category: \"web-testing\",\n },\n { id: \"web-testing-vue-test-utils\", displayName: \"Vue Test Utils\", category: \"web-testing\" },\n { id: \"web-i18n-next-intl\", displayName: \"Next Intl\", category: \"web-i18n\" },\n { id: \"web-i18n-react-intl\", displayName: \"React Intl\", category: \"web-i18n\" },\n { id: \"web-i18n-vue-i18n\", displayName: \"Vue I18n\", category: \"web-i18n\" },\n];\n\n// ---------------------------------------------------------------------------\n// Multi-source integration test skill entries (skill-resolution.integration.test.ts)\n// ---------------------------------------------------------------------------\n\ntype MultiSourceSkillEntry = { id: string; category: string; description: string };\n\nexport const MULTI_SOURCE_PUBLIC_SKILLS: MultiSourceSkillEntry[] = [\n { id: \"web-framework-react\", category: \"web-framework\", description: \"React framework\" },\n {\n id: \"web-framework-vue-composition-api\",\n category: \"web-framework\",\n description: \"Vue.js framework\",\n },\n {\n id: \"web-state-zustand\",\n category: \"web-client-state\",\n description: \"Zustand state management\",\n },\n { id: \"web-styling-scss-modules\", category: \"web-styling\", description: \"SCSS Modules styling\" },\n { id: \"web-testing-vitest\", category: \"web-testing\", description: \"Vitest testing framework\" },\n];\n\nexport const MULTI_SOURCE_ACME_SKILLS: MultiSourceSkillEntry[] = [\n { id: \"web-framework-react\", category: \"web-framework\", description: \"React (acme custom fork)\" },\n { id: \"api-framework-hono\", category: \"api-api\", description: \"Hono web framework\" },\n { id: \"api-database-drizzle\", category: \"api-database\", description: \"Drizzle ORM\" },\n { id: \"api-security-auth-patterns\", category: \"shared-security\", description: \"Auth patterns\" },\n { id: \"web-testing-vitest\", category: \"web-testing\", description: \"Vitest (acme custom)\" },\n];\n\nexport const MULTI_SOURCE_INTERNAL_SKILLS: MultiSourceSkillEntry[] = [\n { id: \"web-framework-react\", category: \"web-framework\", description: \"React (internal build)\" },\n { id: \"web-animation-framer\", category: \"web-animation\", description: \"Framer Motion\" },\n {\n id: \"meta-methodology-investigation\",\n category: \"meta-methodology\",\n description: \"Investigation first\",\n },\n { id: \"web-accessibility-a11y\", category: \"web-accessibility\", description: \"Web accessibility\" },\n {\n id: \"api-monitoring-sentry\",\n category: \"api-observability\",\n description: \"Sentry error tracking\",\n },\n];\n\nexport type { MultiSourceSkillEntry };\n\n// ---------------------------------------------------------------------------\n// Local/compile skill constants (from create-test-source.ts)\n// ---------------------------------------------------------------------------\n\n/** Valid local skill with SKILL.md and metadata.yaml */\nexport const VALID_LOCAL_SKILL: TestSkill = createTestSkill(\n // Boundary cast: fictional skill ID for test isolation\n \"web-tooling-valid\" as SkillId,\n \"A valid skill\",\n { slug: \"tooling\" as SkillSlug, displayName: \"Valid\" },\n);\n\n/** Skill created WITHOUT metadata.yaml (for testing missing-metadata warnings) */\nexport const SKILL_WITHOUT_METADATA: TestSkill = createTestSkill(\n // Boundary cast: fictional skill ID for test isolation\n \"web-tooling-incomplete\" as SkillId,\n \"Missing metadata\",\n { slug: \"storybook\", displayName: \"Incomplete\", skipMetadata: true },\n);\n\n/** Another skill without metadata.yaml (for path warning tests) */\nexport const SKILL_WITHOUT_METADATA_CUSTOM: TestSkill = createTestSkill(\n // Boundary cast: fictional skill ID for test isolation\n \"web-tooling-custom\" as SkillId,\n \"No metadata\",\n { slug: \"security\" as SkillSlug, displayName: \"Custom\", skipMetadata: true },\n);\n\n/** A basic local-only skill (no forkedFrom) with SKILL.md and metadata.yaml */\nexport const LOCAL_SKILL_BASIC: TestSkill = createTestSkill(\n // Boundary cast: fictional skill ID for test isolation\n \"web-tooling-my-skill\" as SkillId,\n \"A test skill\",\n {\n slug: \"tooling\" as SkillSlug,\n displayName: \"My Skill\",\n content: `---\nname: my-skill\ndescription: A test skill\ncategory: test\n---\n\n# My Skill\n\nTest content here.\n`,\n },\n);\n\n/** A forked local skill with forkedFrom metadata for update commands */\nexport const LOCAL_SKILL_FORKED: TestSkill = createTestSkill(\n // Boundary cast: fictional skill ID for test isolation\n \"web-tooling-forked-skill\" as SkillId,\n \"A forked skill\",\n {\n slug: \"tooling\" as SkillSlug,\n displayName: \"Forked Skill\",\n content: `---\nname: forked-skill\ndescription: A forked skill\ncategory: test\n---\n\n# Forked Skill\n\nLocal modifications here.\n`,\n forkedFrom: {\n skillId: \"web-framework-react\",\n contentHash: \"abc123\",\n date: \"2025-01-01\",\n },\n },\n);\n\n/** A minimal local skill for error handling tests (with forkedFrom) */\nexport const LOCAL_SKILL_FORKED_MINIMAL: TestSkill = createTestSkill(\n // Boundary cast: fictional skill ID for test isolation\n \"web-tooling-test-minimal\" as SkillId,\n \"Test skill\",\n {\n slug: \"env\" as SkillSlug,\n displayName: \"Test Minimal\",\n content: `---\nname: test\n---\n# Test`,\n forkedFrom: {\n skillId: \"web-framework-react\",\n contentHash: \"abc\",\n date: \"2025-01-01\",\n },\n },\n);\n\n// ---------------------------------------------------------------------------\n// Import source skill constants (import-skill.integration.test.ts)\n// ---------------------------------------------------------------------------\n\n/**\n * Skills used by import:skill integration tests with richer content.\n * These use a plain object type (not TestSkill) because import sources use\n * simple directory names that don't follow the SkillId pattern.\n */\nexport type ImportSourceSkill = {\n name: string;\n content: string;\n metadata?: Record<string, unknown>;\n};\n\n/** React patterns skill with metadata for import integration tests */\nexport const IMPORT_REACT_PATTERNS_SKILL: ImportSourceSkill = {\n name: \"react-patterns\",\n content: `---\nname: react-patterns\ndescription: React design patterns and best practices\n---\n\n# React Patterns\n\n## Component Composition\n\nUse composition over inheritance for flexible component design.\n\n## Hooks Patterns\n\n- Custom hooks for shared logic\n- useReducer for complex state\n- useMemo for expensive computations\n`,\n metadata: {\n author: \"@external-author\",\n category: \"web-framework\",\n },\n};\n\n/** Testing utils skill with metadata for import integration tests */\nexport const IMPORT_TESTING_UTILS_SKILL: ImportSourceSkill = {\n name: \"testing-utils\",\n content: `---\nname: testing-utils\ndescription: Testing utilities and best practices\n---\n\n# Testing Utilities\n\n## Unit Testing\n\nWrite focused tests that verify single behaviors.\n\n## Integration Testing\n\nTest component interactions and data flow.\n`,\n metadata: {\n author: \"@external-author\",\n category: \"web-testing\",\n },\n};\n\n/** API security skill without metadata for import integration tests */\nexport const IMPORT_API_SECURITY_SKILL: ImportSourceSkill = {\n name: \"api-security\",\n content: `---\nname: api-security\ndescription: API security patterns and middleware\n---\n\n# API Security\n\n## Authentication\n\nImplement JWT-based authentication with refresh tokens.\n\n## Rate Limiting\n\nApply rate limiting to prevent abuse.\n`,\n};\n\n// ---------------------------------------------------------------------------\n// Build-step-logic test skill variants (build-step-logic.test.ts)\n// ---------------------------------------------------------------------------\n\n/** React with conflictsWith pointing at Vue (for exclusive category suppression tests) */\nexport const REACT_CONFLICTS_VUE = createMockSkill(\"web-framework-react\", {\n conflictsWith: [{ skillId: \"web-framework-vue-composition-api\", reason: \"Choose one framework\" }],\n});\n\n/** Vue with conflictsWith pointing at React (for exclusive category suppression tests) */\nexport const VUE_CONFLICTS_REACT = createMockSkill(\"web-framework-vue-composition-api\", {\n conflictsWith: [{ skillId: \"web-framework-react\", reason: \"Choose one framework\" }],\n});\n\n/** Zustand with conflictsWith pointing at Pinia (for non-exclusive category tests) */\nexport const ZUSTAND_CONFLICTS_PINIA = createMockSkill(\"web-state-zustand\", {\n conflictsWith: [{ skillId: \"web-state-pinia\", reason: \"Choose one state manager\" }],\n});\n\n/** Pinia with conflictsWith pointing at Zustand (for non-exclusive category tests) */\nexport const PINIA_CONFLICTS_ZUSTAND = createMockSkill(\"web-state-pinia\", {\n conflictsWith: [{ skillId: \"web-state-zustand\", reason: \"Choose one state manager\" }],\n});\n\n/** React that requires Zustand (for requiredBy badge tests) */\nexport const REACT_REQUIRES_ZUSTAND = createMockSkill(\"web-framework-react\", {\n requires: [{ skillIds: [\"web-state-zustand\"], needsAny: false, reason: \"Needs Zustand\" }],\n});\n\n/** React marked as recommended (for state preservation in exclusive categories) */\nexport const REACT_RECOMMENDED = createMockSkill(\"web-framework-react\", {\n isRecommended: true,\n recommendedReason: \"Popular choice\",\n});\n\n/** Vue that discourages SCSS Modules (for state preservation in exclusive categories) */\nexport const VUE_DISCOURAGES_SCSS = createMockSkill(\"web-framework-vue-composition-api\", {\n discourages: [{ skillId: \"web-styling-scss-modules\", reason: \"Prefer other styling\" }],\n});\n\n/** Zustand with empty compatibleWith — universally compatible with any framework */\nexport const ZUSTAND_UNIVERSAL = createMockSkill(\"web-state-zustand\", {\n compatibleWith: [],\n});\n\n/** React with local: true — for local skill propagation tests */\nexport const REACT_LOCAL = createMockSkill(\"web-framework-react\", { local: true });\n","/**\n * Pure content renderers for test file generation.\n * Single source of truth for all test content templates.\n */\n\nexport function renderSkillMd(id: string, description?: string, body?: string): string {\n const desc = description ?? `${id} skill`;\n const content = body ?? `# ${id}\\n\\n${desc}`;\n return `---\nname: ${id}\ndescription: ${desc}\n---\n\n${content}\n`;\n}\n\nexport function renderConfigTs(config: Record<string, unknown>): string {\n return `export default ${JSON.stringify(config, null, 2)};\\n`;\n}\n\nexport function renderAgentYaml(\n name: string,\n description?: string,\n options?: { title?: string; tools?: string[]; model?: string; permissionMode?: string },\n): string {\n const desc = description ?? `Test ${name} agent`;\n const title = options?.title ?? `${name} Agent`;\n const tools = options?.tools ?? [\"Read\", \"Write\"];\n return [\n `id: ${name}`,\n `title: ${title}`,\n `description: ${desc}`,\n \"tools:\",\n ...tools.map((t) => ` - ${t}`),\n ...(options?.model ? [`model: ${options.model}`] : []),\n ...(options?.permissionMode ? [`permissionMode: ${options.permissionMode}`] : []),\n ].join(\"\\n\");\n}\n\n/**\n * Renders an installed agent markdown file with YAML frontmatter.\n * Used for `~/.claude/agents/<name>.md` or `<project>/.claude/agents/<name>.md`,\n * which is the format validated by `validateAgentFrontmatter`.\n */\nexport function renderAgentMd(\n name: string,\n description?: string,\n options?: { tools?: string[]; body?: string },\n): string {\n const desc = description ?? `Test ${name} agent`;\n const tools = (options?.tools ?? [\"Read\", \"Write\"]).join(\", \");\n const body = options?.body ?? `# ${name}\\n\\n${desc}`;\n return `---\nname: ${name}\ndescription: ${desc}\ntools: ${tools}\n---\n\n${body}\n`;\n}\n\nexport interface SkillMetadataFields {\n custom?: boolean;\n domain?: string;\n author?: string;\n displayName?: string;\n category?: string;\n slug?: string;\n cliDescription?: string;\n usageGuidance?: string;\n contentHash: string;\n forkedFrom?: { skillId: string; contentHash: string; date: string };\n}\n\n/**\n * Renders a metadata.yaml for a test skill. Only the fields provided are\n * emitted, so fixtures keep control over which metadata keys exist.\n */\nexport function renderMetadataYaml(fields: SkillMetadataFields): string {\n const lines = [\n ...(fields.custom ? [\"custom: true\"] : []),\n ...(fields.domain ? [`domain: ${fields.domain}`] : []),\n `author: \"${fields.author ?? \"@test\"}\"`,\n ...(fields.displayName ? [`displayName: ${fields.displayName}`] : []),\n ...(fields.category ? [`category: ${fields.category}`] : []),\n ...(fields.slug ? [`slug: ${fields.slug}`] : []),\n ...(fields.cliDescription ? [`cliDescription: \"${fields.cliDescription}\"`] : []),\n ...(fields.usageGuidance ? [`usageGuidance: \"${fields.usageGuidance}\"`] : []),\n `contentHash: \"${fields.contentHash}\"`,\n ...(fields.forkedFrom\n ? [\n \"forkedFrom:\",\n ` skillId: ${fields.forkedFrom.skillId}`,\n ` contentHash: \"${fields.forkedFrom.contentHash}\"`,\n ` date: ${fields.forkedFrom.date}`,\n ]\n : []),\n ];\n return lines.join(\"\\n\") + \"\\n\";\n}\n\nexport function renderCategoriesTs(categories: Record<string, unknown>): string {\n return renderConfigTs(categories);\n}\n\nexport function renderRulesTs(rules: Record<string, unknown>): string {\n return renderConfigTs(rules);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAEA,SAAS,SAAS,iBAAiB;;;ACFnC;AAoBO,SAAS,wBACd,QACA,WACe;AACf,SAAO;AAAA,IACL,MAAM;AAAA,IACN,aAAa;AAAA,IACb;AAAA,IACA,GAAG;AAAA,EACL;AACF;;;AC9BA;;;ACAA;AAKO,SAAS,cAAc,IAAY,aAAsB,MAAuB;AACrF,QAAM,OAAO,eAAe,GAAG,EAAE;AACjC,QAAM,UAAU,QAAQ,KAAK,EAAE;AAAA;AAAA,EAAO,IAAI;AAC1C,SAAO;AAAA,QACD,EAAE;AAAA,eACK,IAAI;AAAA;AAAA;AAAA,EAGjB,OAAO;AAAA;AAET;;;ADMO,IAAM,wBAAwB,qBAAqB,uBAAuB,IAAI;AAE9E,IAAM,cAAc,qBAAqB,qBAAqB;AAE9D,IAAM,eAAe,qBAAqB,oBAA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CAAC;AAAA,EACH;AACF;AAGO,IAAM,oCAAoC;AAAA,EAC/C;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP;AAAA,IACE,YAAY,iBAAiB;AAAA,MAC3B,iBAAiB,EAAE,GAAG,gBAAgB,WAAW,WAAW,KAAK;AAAA,MACjE,eAAe,EAAE,GAAG,gBAAgB,QAAQ;AAAA,IAC9C,CAAC;AAAA,EACH;AACF;","names":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
SummaryPanel
|
|
4
|
+
} from "./chunk-ZHTXPFDK.js";
|
|
5
|
+
import {
|
|
6
|
+
init_esm_shims
|
|
7
|
+
} from "./chunk-P56WJ5FA.js";
|
|
8
|
+
|
|
9
|
+
// src/cli/components/wizard/step-confirm.tsx
|
|
10
|
+
init_esm_shims();
|
|
11
|
+
import { useInput } from "ink";
|
|
12
|
+
import { jsx } from "react/jsx-runtime";
|
|
13
|
+
var StepConfirm = ({ onComplete, onBack }) => {
|
|
14
|
+
useInput((_input, key) => {
|
|
15
|
+
if (key.return) {
|
|
16
|
+
onComplete();
|
|
17
|
+
}
|
|
18
|
+
if (key.escape) {
|
|
19
|
+
onBack();
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
return /* @__PURE__ */ jsx(SummaryPanel, {});
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
StepConfirm
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=chunk-UZRISDBZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/cli/components/wizard/step-confirm.tsx"],"sourcesContent":["import { useInput } from \"ink\";\nimport React from \"react\";\nimport { SummaryPanel } from \"./summary-panel.js\";\n\ntype StepConfirmProps = {\n onComplete: () => void;\n onBack: () => void;\n};\n\n/**\n * Final step: the shared `SummaryPanel`, which owns the scroll and the `↑`/`↓`\n * keys. This claims only the two keys that leave the step, so both `useInput`\n * hooks stay on disjoint keys.\n */\nexport const StepConfirm: React.FC<StepConfirmProps> = ({ onComplete, onBack }) => {\n useInput((_input, key) => {\n if (key.return) {\n onComplete();\n }\n if (key.escape) {\n onBack();\n }\n });\n\n return <SummaryPanel />;\n};\n"],"mappings":";;;;;;;;;AAAA;AAAA,SAAS,gBAAgB;AAwBhB;AAVF,IAAM,cAA0C,CAAC,EAAE,YAAY,OAAO,MAAM;AACjF,WAAS,CAAC,QAAQ,QAAQ;AACxB,QAAI,IAAI,QAAQ;AACd,iBAAW;AAAA,IACb;AACA,QAAI,IAAI,QAAQ;AACd,aAAO;AAAA,IACT;AAAA,EACF,CAAC;AAED,SAAO,oBAAC,gBAAa;AACvB;","names":[]}
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
init_esm_shims
|
|
4
|
+
} from "./chunk-P56WJ5FA.js";
|
|
5
|
+
|
|
6
|
+
// src/cli/lib/__tests__/factories/skill-factories.ts
|
|
7
|
+
init_esm_shims();
|
|
8
|
+
var _canonicalSkillCategories;
|
|
9
|
+
function getCanonicalSkillCategories() {
|
|
10
|
+
if (!_canonicalSkillCategories) {
|
|
11
|
+
_canonicalSkillCategories = {
|
|
12
|
+
"web-framework-react": "web-framework",
|
|
13
|
+
"web-framework-vue-composition-api": "web-framework",
|
|
14
|
+
"web-framework-original": "web-framework",
|
|
15
|
+
"web-framework-simple": "web-framework",
|
|
16
|
+
"web-framework-arbitrary": "web-framework",
|
|
17
|
+
"web-framework-unknown": "web-framework",
|
|
18
|
+
"web-styling-tailwind": "web-styling",
|
|
19
|
+
"web-styling-scss-modules": "web-styling",
|
|
20
|
+
"web-styling-custom": "web-styling",
|
|
21
|
+
"web-state-zustand": "web-client-state",
|
|
22
|
+
"web-state-pinia": "web-client-state",
|
|
23
|
+
"web-state-mobx": "web-client-state",
|
|
24
|
+
"web-testing-vitest": "web-testing",
|
|
25
|
+
"web-testing-copier": "web-testing",
|
|
26
|
+
"web-testing-metadata": "web-testing",
|
|
27
|
+
"web-testing-playwright": "web-testing",
|
|
28
|
+
"web-testing-cypress-e2e": "web-testing",
|
|
29
|
+
"web-testing-playwright-e2e": "web-testing",
|
|
30
|
+
"web-server-state-react-query": "web-server-state",
|
|
31
|
+
"web-data-fetching-react-query": "web-server-state",
|
|
32
|
+
"web-tooling-vite": "shared-tooling",
|
|
33
|
+
"web-tooling-acme": "web-tooling",
|
|
34
|
+
"web-tooling-custom": "web-tooling",
|
|
35
|
+
"web-tooling-nometadata": "web-tooling",
|
|
36
|
+
"web-tooling-personal": "web-tooling",
|
|
37
|
+
"web-tooling-valid": "web-tooling",
|
|
38
|
+
"web-tooling-incomplete": "web-tooling",
|
|
39
|
+
"web-tooling-my-skill": "web-tooling",
|
|
40
|
+
"web-tooling-forked-skill": "web-tooling",
|
|
41
|
+
"web-tooling-test-minimal": "web-tooling",
|
|
42
|
+
"web-tooling-local-skill": "web-tooling",
|
|
43
|
+
"web-skill-a": "web-framework",
|
|
44
|
+
"web-skill-a-v": "web-framework",
|
|
45
|
+
"web-skill-b": "web-framework",
|
|
46
|
+
"web-skill-b-v": "web-framework",
|
|
47
|
+
"web-skill-c": "web-framework",
|
|
48
|
+
"web-skill-d": "web-framework",
|
|
49
|
+
"web-skill-setup": "web-framework",
|
|
50
|
+
"web-skill-usage": "web-framework",
|
|
51
|
+
"web-local-skill": "local",
|
|
52
|
+
"web-custom-skill": "web-framework",
|
|
53
|
+
"web-missing-skill": "web-framework",
|
|
54
|
+
"web-unknown-skill": "web-framework",
|
|
55
|
+
"web-nonexistent-skill": "web-framework",
|
|
56
|
+
"api-framework-hono": "api-api",
|
|
57
|
+
"api-framework-express": "api-api",
|
|
58
|
+
"api-database-drizzle": "api-database",
|
|
59
|
+
"api-security-auth-patterns": "api-security",
|
|
60
|
+
"api-observability-datadog": "api-observability",
|
|
61
|
+
"cli-framework-commander": "cli-framework",
|
|
62
|
+
"infra-setup-env": "infra-config",
|
|
63
|
+
"infra-tooling-linter": "unmapped-category",
|
|
64
|
+
"infra-tooling-docker": "shared-tooling",
|
|
65
|
+
"infra-ci-cd-github-actions": "infra-ci-cd",
|
|
66
|
+
"infra-ci-cd-gitlab-ci": "infra-ci-cd",
|
|
67
|
+
"web-accessibility-a11y": "web-accessibility",
|
|
68
|
+
"web-animation-framer": "web-animation",
|
|
69
|
+
"meta-methodology-investigation": "meta-methodology",
|
|
70
|
+
"meta-methodology-success-criteria": "meta-methodology",
|
|
71
|
+
"meta-methodology-investigation-requirements": "meta-methodology",
|
|
72
|
+
"meta-methodology-anti-over-engineering": "meta-methodology",
|
|
73
|
+
"meta-methodology-write-verification": "meta-methodology",
|
|
74
|
+
"meta-methodology-improvement-protocol": "meta-methodology",
|
|
75
|
+
"meta-methodology-context-management": "meta-methodology",
|
|
76
|
+
"meta-methodology-research-methodology": "meta-methodology",
|
|
77
|
+
"meta-reviewing-reviewing": "meta-reviewing",
|
|
78
|
+
"meta-reviewing-cli-reviewing": "meta-reviewing",
|
|
79
|
+
"meta-company-patterns": "local",
|
|
80
|
+
"meta-test-skill": "meta-reviewing",
|
|
81
|
+
"web-framework-nonexistent": "web-framework",
|
|
82
|
+
"web-framework-react-pro": "web-framework",
|
|
83
|
+
"web-framework-react-strict": "web-framework",
|
|
84
|
+
"web-framework-react-minimal": "web-framework"
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
return _canonicalSkillCategories;
|
|
88
|
+
}
|
|
89
|
+
var DOMAIN_PREFIX_MAP = {
|
|
90
|
+
meta: "meta",
|
|
91
|
+
infra: "infra",
|
|
92
|
+
security: "shared"
|
|
93
|
+
};
|
|
94
|
+
function deriveSlugFromId(id) {
|
|
95
|
+
const segments = id.split("-");
|
|
96
|
+
return segments.length >= 3 ? segments.slice(2).join("-") : id;
|
|
97
|
+
}
|
|
98
|
+
function deriveDisplayName(slug) {
|
|
99
|
+
return slug.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
|
|
100
|
+
}
|
|
101
|
+
function createTestSkill(id, description, overrides) {
|
|
102
|
+
const segments = id.split("-");
|
|
103
|
+
const rawPrefix = segments[0] ?? "web";
|
|
104
|
+
const domain = DOMAIN_PREFIX_MAP[rawPrefix] ?? rawPrefix;
|
|
105
|
+
const canonicalCategories = getCanonicalSkillCategories();
|
|
106
|
+
const category = canonicalCategories[id] ?? `${segments[0]}-${segments[1]}`;
|
|
107
|
+
const slug = deriveSlugFromId(id);
|
|
108
|
+
const displayName = deriveDisplayName(slug);
|
|
109
|
+
return {
|
|
110
|
+
id,
|
|
111
|
+
slug,
|
|
112
|
+
displayName,
|
|
113
|
+
description,
|
|
114
|
+
category,
|
|
115
|
+
author: "@test",
|
|
116
|
+
domain,
|
|
117
|
+
...overrides
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
function createMockSkill(id, overrides) {
|
|
121
|
+
const category = overrides?.category ?? getCanonicalSkillCategories()[id];
|
|
122
|
+
if (!category) {
|
|
123
|
+
throw new Error(
|
|
124
|
+
`createMockSkill: "${id}" not in canonical registry \u2014 provide { category } in overrides`
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
const defaultSlug = deriveSlugFromId(id);
|
|
128
|
+
const defaultDisplayName = deriveDisplayName(defaultSlug);
|
|
129
|
+
return {
|
|
130
|
+
id,
|
|
131
|
+
slug: defaultSlug,
|
|
132
|
+
displayName: defaultDisplayName,
|
|
133
|
+
description: `${id} skill`,
|
|
134
|
+
category,
|
|
135
|
+
author: "@test",
|
|
136
|
+
conflictsWith: [],
|
|
137
|
+
isRecommended: false,
|
|
138
|
+
requires: [],
|
|
139
|
+
alternatives: [],
|
|
140
|
+
discourages: [],
|
|
141
|
+
compatibleWith: [],
|
|
142
|
+
path: `skills/${category}/${id}/`,
|
|
143
|
+
...overrides
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
function createMockSkillEntry(id, preloaded = false, overrides) {
|
|
147
|
+
return {
|
|
148
|
+
id,
|
|
149
|
+
path: `skills/${id}/`,
|
|
150
|
+
description: `${id} skill`,
|
|
151
|
+
usage: `when working with ${id}`,
|
|
152
|
+
preloaded,
|
|
153
|
+
...overrides
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// src/cli/lib/__tests__/test-fixtures.ts
|
|
158
|
+
init_esm_shims();
|
|
159
|
+
|
|
160
|
+
// src/cli/lib/__tests__/factories/category-factories.ts
|
|
161
|
+
init_esm_shims();
|
|
162
|
+
function createMockCategory(id, displayName, overrides) {
|
|
163
|
+
return {
|
|
164
|
+
id,
|
|
165
|
+
displayName,
|
|
166
|
+
description: `${displayName} category`,
|
|
167
|
+
domain: "web",
|
|
168
|
+
exclusive: true,
|
|
169
|
+
required: false,
|
|
170
|
+
order: 0,
|
|
171
|
+
...overrides
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// src/cli/lib/__tests__/test-fixtures.ts
|
|
176
|
+
var SKILLS = {
|
|
177
|
+
// Web domain
|
|
178
|
+
react: createMockSkill("web-framework-react"),
|
|
179
|
+
vue: createMockSkill("web-framework-vue-composition-api"),
|
|
180
|
+
zustand: createMockSkill("web-state-zustand", {
|
|
181
|
+
compatibleWith: ["web-framework-react"]
|
|
182
|
+
}),
|
|
183
|
+
pinia: createMockSkill("web-state-pinia", {
|
|
184
|
+
compatibleWith: ["web-framework-vue-composition-api"]
|
|
185
|
+
}),
|
|
186
|
+
scss: createMockSkill("web-styling-scss-modules"),
|
|
187
|
+
tailwind: createMockSkill("web-styling-tailwind"),
|
|
188
|
+
vitest: createMockSkill("web-testing-vitest"),
|
|
189
|
+
// API domain
|
|
190
|
+
hono: createMockSkill("api-framework-hono"),
|
|
191
|
+
drizzle: createMockSkill("api-database-drizzle"),
|
|
192
|
+
// Methodology
|
|
193
|
+
antiOverEng: createMockSkill("meta-reviewing-reviewing", {
|
|
194
|
+
description: "Surgical implementation, not architectural innovation"
|
|
195
|
+
})
|
|
196
|
+
};
|
|
197
|
+
var TEST_CATEGORIES = {
|
|
198
|
+
// Web domain
|
|
199
|
+
framework: createMockCategory("web-framework", "Framework"),
|
|
200
|
+
clientState: createMockCategory("web-client-state", "Client State"),
|
|
201
|
+
styling: createMockCategory("web-styling", "Styling"),
|
|
202
|
+
testing: createMockCategory("web-testing", "Testing"),
|
|
203
|
+
serverState: createMockCategory("web-server-state", "Server State"),
|
|
204
|
+
animation: createMockCategory("web-animation", "Animation"),
|
|
205
|
+
accessibility: createMockCategory("web-accessibility", "Accessibility"),
|
|
206
|
+
// API domain
|
|
207
|
+
api: createMockCategory("api-api", "Backend Framework"),
|
|
208
|
+
database: createMockCategory("api-database", "Database"),
|
|
209
|
+
observability: createMockCategory("api-observability", "Observability"),
|
|
210
|
+
// Shared domain
|
|
211
|
+
methodology: createMockCategory("meta-reviewing", "Meta", { domain: "meta" }),
|
|
212
|
+
tooling: createMockCategory("shared-tooling", "Tooling"),
|
|
213
|
+
security: createMockCategory("shared-security", "Security"),
|
|
214
|
+
// CLI domain
|
|
215
|
+
cliFramework: createMockCategory("cli-framework", "CLI Framework"),
|
|
216
|
+
// Mobile domain
|
|
217
|
+
mobileFramework: createMockCategory("mobile-framework", "Mobile Framework")
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
// src/cli/lib/__tests__/factories/stack-factories.ts
|
|
221
|
+
init_esm_shims();
|
|
222
|
+
function createMockResolvedStack(id, name, overrides) {
|
|
223
|
+
return {
|
|
224
|
+
id,
|
|
225
|
+
name,
|
|
226
|
+
description: `${name} stack`,
|
|
227
|
+
skills: {},
|
|
228
|
+
allSkillIds: [],
|
|
229
|
+
philosophy: "",
|
|
230
|
+
...overrides
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// src/cli/lib/__tests__/factories/matrix-factories.ts
|
|
235
|
+
init_esm_shims();
|
|
236
|
+
function buildCategoryMap(defs) {
|
|
237
|
+
return defs;
|
|
238
|
+
}
|
|
239
|
+
function createMockMatrix(skillsOrFirstSkill, ...rest) {
|
|
240
|
+
let skillsRecord;
|
|
241
|
+
let overrides;
|
|
242
|
+
if (skillsOrFirstSkill === void 0) {
|
|
243
|
+
skillsRecord = {};
|
|
244
|
+
} else if ("id" in skillsOrFirstSkill && typeof skillsOrFirstSkill.id === "string" && "slug" in skillsOrFirstSkill) {
|
|
245
|
+
const allArgs = [skillsOrFirstSkill, ...rest];
|
|
246
|
+
const lastArg = allArgs[allArgs.length - 1];
|
|
247
|
+
const hasOverrides = lastArg !== void 0 && !("id" in lastArg && "slug" in lastArg);
|
|
248
|
+
overrides = hasOverrides ? lastArg : void 0;
|
|
249
|
+
const skills = hasOverrides ? allArgs.slice(0, -1) : allArgs;
|
|
250
|
+
skillsRecord = Object.fromEntries(skills.map((skill) => [skill.id, skill]));
|
|
251
|
+
} else {
|
|
252
|
+
skillsRecord = skillsOrFirstSkill;
|
|
253
|
+
overrides = rest[0];
|
|
254
|
+
}
|
|
255
|
+
const skillsWithSlugs = Object.values(skillsRecord).filter((skill) => skill.slug);
|
|
256
|
+
const autoSlugToId = Object.fromEntries(
|
|
257
|
+
skillsWithSlugs.map((skill) => [skill.slug, skill.id])
|
|
258
|
+
);
|
|
259
|
+
const autoIdToSlug = Object.fromEntries(
|
|
260
|
+
skillsWithSlugs.map((skill) => [skill.id, skill.slug])
|
|
261
|
+
);
|
|
262
|
+
return {
|
|
263
|
+
version: "1.0.0",
|
|
264
|
+
categories: {},
|
|
265
|
+
skills: skillsRecord,
|
|
266
|
+
suggestedStacks: [],
|
|
267
|
+
slugMap: { slugToId: autoSlugToId, idToSlug: autoIdToSlug },
|
|
268
|
+
generatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
269
|
+
...overrides
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
function createMockMatrixConfig(categories, overrides) {
|
|
273
|
+
const defaultRelationships = {
|
|
274
|
+
conflicts: [],
|
|
275
|
+
discourages: [],
|
|
276
|
+
recommends: [],
|
|
277
|
+
requires: [],
|
|
278
|
+
alternatives: []
|
|
279
|
+
};
|
|
280
|
+
return {
|
|
281
|
+
categories,
|
|
282
|
+
relationships: overrides?.relationships ? { ...defaultRelationships, ...overrides.relationships } : defaultRelationships
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export {
|
|
287
|
+
createTestSkill,
|
|
288
|
+
createMockSkill,
|
|
289
|
+
createMockSkillEntry,
|
|
290
|
+
createMockCategory,
|
|
291
|
+
SKILLS,
|
|
292
|
+
TEST_CATEGORIES,
|
|
293
|
+
createMockResolvedStack,
|
|
294
|
+
buildCategoryMap,
|
|
295
|
+
createMockMatrix,
|
|
296
|
+
createMockMatrixConfig
|
|
297
|
+
};
|
|
298
|
+
//# sourceMappingURL=chunk-V7QOSGQA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/cli/lib/__tests__/factories/skill-factories.ts","../src/cli/lib/__tests__/test-fixtures.ts","../src/cli/lib/__tests__/factories/category-factories.ts","../src/cli/lib/__tests__/factories/stack-factories.ts","../src/cli/lib/__tests__/factories/matrix-factories.ts"],"sourcesContent":["import type {\n CategoryPath,\n Domain,\n ExtractedSkillMetadata,\n ResolvedSkill,\n Skill,\n SkillAssignment,\n SkillDefinition,\n SkillId,\n SkillSlug,\n SkillSource,\n SkillSourceType,\n} from \"../../../types\";\nimport type { CopiedSkill } from \"../../skills\";\nimport type { TestSkill } from \"../fixtures/create-test-source\";\n\n/**\n * Canonical category for known test skills.\n * createMockSkill() looks up from here when no category override is provided.\n * Custom/novel skills must pass { category } in overrides.\n *\n * Uses a lazy singleton to avoid circular initialization issues:\n * test-fixtures.ts calls createMockSkill() at module level during import,\n * and ESM hoists all imports before evaluating any `const` declarations.\n */\n// Boundary cast: test factory maps arbitrary skill IDs to category strings (not all are valid Category union members)\n// eslint-disable-next-line no-var -- `var` avoids TDZ in circular ESM imports (let/const would throw)\nvar _canonicalSkillCategories: Record<string, string> | undefined;\nfunction getCanonicalSkillCategories(): Record<string, string> {\n if (!_canonicalSkillCategories) {\n _canonicalSkillCategories = {\n \"web-framework-react\": \"web-framework\",\n \"web-framework-vue-composition-api\": \"web-framework\",\n \"web-framework-original\": \"web-framework\",\n \"web-framework-simple\": \"web-framework\",\n \"web-framework-arbitrary\": \"web-framework\",\n \"web-framework-unknown\": \"web-framework\",\n \"web-styling-tailwind\": \"web-styling\",\n \"web-styling-scss-modules\": \"web-styling\",\n \"web-styling-custom\": \"web-styling\",\n \"web-state-zustand\": \"web-client-state\",\n \"web-state-pinia\": \"web-client-state\",\n \"web-state-mobx\": \"web-client-state\",\n \"web-testing-vitest\": \"web-testing\",\n \"web-testing-copier\": \"web-testing\",\n \"web-testing-metadata\": \"web-testing\",\n \"web-testing-playwright\": \"web-testing\",\n \"web-testing-cypress-e2e\": \"web-testing\",\n \"web-testing-playwright-e2e\": \"web-testing\",\n \"web-server-state-react-query\": \"web-server-state\",\n \"web-data-fetching-react-query\": \"web-server-state\",\n \"web-tooling-vite\": \"shared-tooling\",\n \"web-tooling-acme\": \"web-tooling\",\n \"web-tooling-custom\": \"web-tooling\",\n \"web-tooling-nometadata\": \"web-tooling\",\n \"web-tooling-personal\": \"web-tooling\",\n \"web-tooling-valid\": \"web-tooling\",\n \"web-tooling-incomplete\": \"web-tooling\",\n \"web-tooling-my-skill\": \"web-tooling\",\n \"web-tooling-forked-skill\": \"web-tooling\",\n \"web-tooling-test-minimal\": \"web-tooling\",\n \"web-tooling-local-skill\": \"web-tooling\",\n \"web-skill-a\": \"web-framework\",\n \"web-skill-a-v\": \"web-framework\",\n \"web-skill-b\": \"web-framework\",\n \"web-skill-b-v\": \"web-framework\",\n \"web-skill-c\": \"web-framework\",\n \"web-skill-d\": \"web-framework\",\n \"web-skill-setup\": \"web-framework\",\n \"web-skill-usage\": \"web-framework\",\n \"web-local-skill\": \"local\",\n \"web-custom-skill\": \"web-framework\",\n \"web-missing-skill\": \"web-framework\",\n \"web-unknown-skill\": \"web-framework\",\n \"web-nonexistent-skill\": \"web-framework\",\n \"api-framework-hono\": \"api-api\",\n \"api-framework-express\": \"api-api\",\n \"api-database-drizzle\": \"api-database\",\n \"api-security-auth-patterns\": \"api-security\",\n \"api-observability-datadog\": \"api-observability\",\n \"cli-framework-commander\": \"cli-framework\",\n \"infra-setup-env\": \"infra-config\",\n \"infra-tooling-linter\": \"unmapped-category\",\n \"infra-tooling-docker\": \"shared-tooling\",\n \"infra-ci-cd-github-actions\": \"infra-ci-cd\",\n \"infra-ci-cd-gitlab-ci\": \"infra-ci-cd\",\n \"web-accessibility-a11y\": \"web-accessibility\",\n \"web-animation-framer\": \"web-animation\",\n \"meta-methodology-investigation\": \"meta-methodology\",\n \"meta-methodology-success-criteria\": \"meta-methodology\",\n \"meta-methodology-investigation-requirements\": \"meta-methodology\",\n \"meta-methodology-anti-over-engineering\": \"meta-methodology\",\n \"meta-methodology-write-verification\": \"meta-methodology\",\n \"meta-methodology-improvement-protocol\": \"meta-methodology\",\n \"meta-methodology-context-management\": \"meta-methodology\",\n \"meta-methodology-research-methodology\": \"meta-methodology\",\n \"meta-reviewing-reviewing\": \"meta-reviewing\",\n \"meta-reviewing-cli-reviewing\": \"meta-reviewing\",\n \"meta-company-patterns\": \"local\",\n \"meta-test-skill\": \"meta-reviewing\",\n \"web-framework-nonexistent\": \"web-framework\",\n \"web-framework-react-pro\": \"web-framework\",\n \"web-framework-react-strict\": \"web-framework\",\n \"web-framework-react-minimal\": \"web-framework\",\n };\n }\n return _canonicalSkillCategories;\n}\n\n/** Maps non-domain SkillIdPrefix values to their corresponding Domain */\nconst DOMAIN_PREFIX_MAP: Record<string, Domain> = {\n meta: \"meta\",\n infra: \"infra\",\n security: \"shared\",\n};\n\n/** Strip the domain-category prefix: \"web-framework-react\" -> \"react\". */\nfunction deriveSlugFromId(id: SkillId): SkillSlug {\n const segments = id.split(\"-\");\n // Boundary cast: slug is derived from the ID's trailing segments\n return (segments.length >= 3 ? segments.slice(2).join(\"-\") : id) as SkillSlug;\n}\n\n/** Title-case each slug segment: \"react-query\" -> \"React Query\". */\nfunction deriveDisplayName(slug: SkillSlug): string {\n return slug\n .split(\"-\")\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1))\n .join(\" \");\n}\n\n/**\n * Creates a TestSkill for disk-based integration tests (createTestSource).\n * Derives slug, displayName, domain, and category from the skill ID,\n * using the canonical category registry for correct category mapping.\n */\nexport function createTestSkill(\n id: SkillId,\n description: string,\n overrides?: Partial<TestSkill>,\n): TestSkill {\n const segments = id.split(\"-\");\n const rawPrefix = segments[0] ?? \"web\";\n const domain = (DOMAIN_PREFIX_MAP[rawPrefix] ?? rawPrefix) as Domain;\n const canonicalCategories = getCanonicalSkillCategories();\n // Boundary cast: category registry returns arbitrary strings for non-canonical IDs\n const category = (canonicalCategories[id] ?? `${segments[0]}-${segments[1]}`) as CategoryPath;\n const slug = deriveSlugFromId(id);\n const displayName = deriveDisplayName(slug);\n\n return {\n id,\n slug,\n displayName,\n description,\n category,\n author: \"@test\",\n domain,\n ...overrides,\n };\n}\n\nexport function createMockSkill(id: SkillId, overrides?: Partial<ResolvedSkill>): ResolvedSkill {\n // Boundary cast: category registry returns arbitrary strings for non-canonical IDs\n const category = (overrides?.category ?? getCanonicalSkillCategories()[id]) as\n CategoryPath | undefined;\n\n if (!category) {\n throw new Error(\n `createMockSkill: \"${id}\" not in canonical registry — provide { category } in overrides`,\n );\n }\n\n const defaultSlug = deriveSlugFromId(id);\n const defaultDisplayName = deriveDisplayName(defaultSlug);\n\n return {\n id,\n slug: defaultSlug,\n displayName: defaultDisplayName,\n description: `${id} skill`,\n category,\n author: \"@test\",\n conflictsWith: [],\n isRecommended: false,\n requires: [],\n alternatives: [],\n discourages: [],\n compatibleWith: [],\n path: `skills/${category}/${id}/`,\n ...overrides,\n };\n}\n\n/**\n * Creates a mock ExtractedSkillMetadata for testing.\n * Used when mocking extractAllSkills() return values.\n */\nexport function createMockExtractedSkill(\n id: SkillId,\n overrides?: Partial<ExtractedSkillMetadata>,\n): ExtractedSkillMetadata {\n // Derive directory path and category from the skill ID convention: \"domain-category-name\"\n const segments = id.split(\"-\");\n const domain = segments[0] ?? \"web\";\n const category = segments[1] ?? \"framework\";\n const name = segments.slice(2).join(\"-\") || \"skill\";\n const directoryPath = `${domain}/${category}/${name}`;\n\n return {\n id,\n directoryPath,\n description: `${id} skill`,\n category: `${domain}-${category}` as CategoryPath,\n author: \"@test\",\n path: `skills/${directoryPath}/`,\n domain: domain as Domain,\n displayName: name,\n slug: name as SkillSlug,\n ...overrides,\n };\n}\n\nexport function createMockSkillEntry(\n id: SkillId,\n preloaded = false,\n overrides?: Partial<Skill>,\n): Skill {\n return {\n id,\n path: `skills/${id}/`,\n description: `${id} skill`,\n usage: `when working with ${id}`,\n preloaded,\n ...overrides,\n };\n}\n\n/** Convert a TestSkill (disk-based) to a ResolvedSkill (in-memory) for matrix creation. */\nexport function testSkillToResolvedSkill(\n skill: TestSkill,\n overrides?: Partial<ResolvedSkill>,\n): ResolvedSkill {\n // Boundary cast: TestSkill.id is string, but in practice always a valid SkillId\n return createMockSkill(skill.id as SkillId, {\n description: skill.description,\n ...overrides,\n });\n}\n\nexport function createMockSkillDefinition(\n id: SkillId,\n overrides?: Partial<SkillDefinition>,\n): SkillDefinition {\n return {\n id,\n path: `skills/${id}/`,\n description: `${id} skill`,\n ...overrides,\n };\n}\n\nexport function createMockSkillAssignment(id: SkillId, preloaded = false): SkillAssignment {\n return { id, preloaded };\n}\n\n/** Terse alias of createMockSkillAssignment for stack/assignment fixtures. */\nexport const sa = (id: SkillId, preloaded = false): SkillAssignment =>\n createMockSkillAssignment(id, preloaded);\n\n/** Creates a CopiedSkill mock (the record copySkillsToLocalFlattened reports). */\nexport function createMockCopiedSkill(id: SkillId, overrides?: Partial<CopiedSkill>): CopiedSkill {\n return {\n skillId: id,\n contentHash: \"abc123\",\n sourcePath: `/source/skills/${id}`,\n destPath: `/project/.claude/skills/${id}`,\n ...overrides,\n };\n}\n\n/**\n * Creates a ResolvedSkill with availableSources annotation for multi-source testing.\n * Simulates what multi-source-loader.ts does after tagging.\n */\nexport function createMockMultiSourceSkill(\n id: SkillId,\n sources: SkillSource[],\n overrides?: Partial<ResolvedSkill>,\n): ResolvedSkill {\n const activeSource = sources.find((s) => s.installed) ?? sources[0];\n return createMockSkill(id, {\n availableSources: sources,\n activeSource,\n ...overrides,\n });\n}\n\nexport function createMockSkillSource(\n type: SkillSourceType,\n overrides?: Partial<SkillSource>,\n): SkillSource {\n const defaults: Record<SkillSourceType, SkillSource> = {\n public: { name: \"public\", type: \"public\", installed: false },\n private: {\n name: \"private-source\",\n type: \"private\",\n url: \"github:org/skills\",\n installed: false,\n },\n local: { name: \"eject\", type: \"local\", installed: true, installMode: \"eject\" },\n };\n return { ...defaults[type], ...overrides };\n}\n","import type { ResolvedSkill } from \"../../types\";\nimport { createMockSkill } from \"./factories/skill-factories.js\";\nimport { createMockCategory } from \"./factories/category-factories.js\";\n\n// ---------------------------------------------------------------------------\n// Canonical SKILLS registry — single source of truth for all test ResolvedSkills.\n// Use SKILLS.react, SKILLS.hono etc. directly in new test code.\n// ---------------------------------------------------------------------------\n\nexport const SKILLS = {\n // Web domain\n react: createMockSkill(\"web-framework-react\"),\n vue: createMockSkill(\"web-framework-vue-composition-api\"),\n zustand: createMockSkill(\"web-state-zustand\", {\n compatibleWith: [\"web-framework-react\"],\n }),\n pinia: createMockSkill(\"web-state-pinia\", {\n compatibleWith: [\"web-framework-vue-composition-api\"],\n }),\n scss: createMockSkill(\"web-styling-scss-modules\"),\n tailwind: createMockSkill(\"web-styling-tailwind\"),\n vitest: createMockSkill(\"web-testing-vitest\"),\n // API domain\n hono: createMockSkill(\"api-framework-hono\"),\n drizzle: createMockSkill(\"api-database-drizzle\"),\n // Methodology\n antiOverEng: createMockSkill(\"meta-reviewing-reviewing\", {\n description: \"Surgical implementation, not architectural innovation\",\n }),\n} satisfies Record<string, ResolvedSkill>;\n\n// ---------------------------------------------------------------------------\n// Shared base category fixtures — canonical defaults with no overrides.\n// Use spread for per-test customization: `{ ...TEST_CATEGORIES.framework, required: true }`\n// ---------------------------------------------------------------------------\n\nexport const TEST_CATEGORIES = {\n // Web domain\n framework: createMockCategory(\"web-framework\", \"Framework\"),\n clientState: createMockCategory(\"web-client-state\", \"Client State\"),\n styling: createMockCategory(\"web-styling\", \"Styling\"),\n testing: createMockCategory(\"web-testing\", \"Testing\"),\n serverState: createMockCategory(\"web-server-state\", \"Server State\"),\n animation: createMockCategory(\"web-animation\", \"Animation\"),\n accessibility: createMockCategory(\"web-accessibility\", \"Accessibility\"),\n // API domain\n api: createMockCategory(\"api-api\", \"Backend Framework\"),\n database: createMockCategory(\"api-database\", \"Database\"),\n observability: createMockCategory(\"api-observability\", \"Observability\"),\n // Shared domain\n methodology: createMockCategory(\"meta-reviewing\", \"Meta\", { domain: \"meta\" }),\n tooling: createMockCategory(\"shared-tooling\", \"Tooling\"),\n security: createMockCategory(\"shared-security\", \"Security\"),\n // CLI domain\n cliFramework: createMockCategory(\"cli-framework\", \"CLI Framework\"),\n // Mobile domain\n mobileFramework: createMockCategory(\"mobile-framework\", \"Mobile Framework\"),\n};\n","import type { Category, CategoryDefinition } from \"../../../types\";\n\nexport function createMockCategory(\n id: string,\n displayName: string,\n overrides?: Partial<CategoryDefinition>,\n): CategoryDefinition {\n // Boundary cast: test factory accepts arbitrary category IDs for test isolation\n return {\n id: id as Category,\n displayName,\n description: `${displayName} category`,\n domain: \"web\",\n exclusive: true,\n required: false,\n order: 0,\n ...overrides,\n };\n}\n","import type { ResolvedStack, Stack, StackAgentConfig } from \"../../../types\";\n\nexport function createMockResolvedStack(\n id: string,\n name: string,\n overrides?: Partial<ResolvedStack>,\n): ResolvedStack {\n return {\n id,\n name,\n description: `${name} stack`,\n skills: {},\n allSkillIds: [],\n philosophy: \"\",\n ...overrides,\n };\n}\n\nexport function createMockStack(\n id: string,\n config: {\n name: string;\n description?: string;\n agents: Record<string, StackAgentConfig>;\n philosophy?: string;\n },\n): Stack {\n return {\n id,\n name: config.name,\n description: config.description ?? \"\",\n // Boundary cast: test callers may pass arbitrary agent names (e.g., \"nonexistent-agent\")\n agents: config.agents as Stack[\"agents\"],\n philosophy: config.philosophy,\n };\n}\n\nexport function createMockRawStacksConfig() {\n return {\n stacks: [\n {\n id: \"nextjs-fullstack\",\n name: \"Next.js Full-Stack\",\n description: \"Full-stack Next.js with Hono API\",\n agents: {\n \"web-developer\": {\n \"web-framework\": \"web-framework-react\",\n \"web-styling\": \"web-styling-scss-modules\",\n },\n \"api-developer\": {\n \"api-api\": \"api-framework-hono\",\n \"api-database\": \"api-database-drizzle\",\n },\n },\n },\n {\n id: \"vue-spa\",\n name: \"Vue SPA\",\n description: \"Vue single-page application\",\n agents: {\n \"web-developer\": {\n \"web-framework\": \"web-framework-vue-composition-api\",\n \"web-styling\": \"web-styling-tailwind\",\n },\n },\n },\n ],\n };\n}\n\nexport function createMockRawStacksConfigWithArrays() {\n return {\n stacks: [\n {\n id: \"multi-select-stack\",\n name: \"Multi-Select Stack\",\n description: \"Stack with array-valued categories\",\n agents: {\n \"web-developer\": {\n \"web-framework\": \"web-framework-react\",\n \"meta-reviewing\": [\n \"meta-methodology-research-methodology\",\n \"meta-reviewing-reviewing\",\n \"meta-reviewing-cli-reviewing\",\n ],\n },\n \"pattern-scout\": {\n \"meta-reviewing\": [\"meta-methodology-research-methodology\"],\n },\n },\n },\n ],\n };\n}\n\nexport function createMockRawStacksConfigWithObjects() {\n return {\n stacks: [\n {\n id: \"object-stack\",\n name: \"Object Stack\",\n description: \"Stack with object-form skill assignments\",\n agents: {\n \"web-developer\": {\n \"web-framework\": [{ id: \"web-framework-react\", preloaded: true }],\n \"web-styling\": \"web-styling-scss-modules\",\n \"meta-reviewing\": [\n { id: \"meta-methodology-research-methodology\", preloaded: true },\n \"meta-reviewing-reviewing\",\n ],\n },\n },\n },\n ],\n };\n}\n","import { typedEntries } from \"../../../utils/typed-object\";\nimport type {\n Category,\n CategoryDefinition,\n MergedSkillsMatrix,\n RelationshipDefinitions,\n ResolvedSkill,\n ResolvedStack,\n SkillId,\n SkillSlug,\n SkillSlugMap,\n} from \"../../../types\";\nimport type { TestSkill } from \"../fixtures/create-test-source\";\nimport { SKILLS, TEST_CATEGORIES } from \"../test-fixtures\";\nimport { testSkillToResolvedSkill } from \"./skill-factories.js\";\nimport { createMockResolvedStack } from \"./stack-factories.js\";\n\n/**\n * Builds a matrix from disk-oriented TestSkills by resolving each to a\n * ResolvedSkill. Pass `toResolvedOverrides` to carry per-skill fields (e.g.\n * `author`) that the default derivation would otherwise replace with defaults.\n */\nexport function createMatrixFromTestSkills(\n skills: TestSkill[],\n toResolvedOverrides?: (skill: TestSkill) => Partial<ResolvedSkill>,\n): MergedSkillsMatrix {\n return createMockMatrix(\n Object.fromEntries(\n skills.map((skill) => [\n skill.id,\n testSkillToResolvedSkill(skill, toResolvedOverrides?.(skill)),\n ]),\n ),\n );\n}\n\n/**\n * Holds THE one documented boundary cast for test category maps. Test fixtures\n * supply a subset of the Category union and often partial CategoryDefinition\n * values (e.g. just `{ domain }`), but the matrix consumes a complete\n * Record<Category, CategoryDefinition>.\n *\n * NOTE: param is `Partial<Record<Category, Partial<CategoryDefinition>>>` (values\n * are also partial at call sites) — wider than the ledger's `Partial<Record<Category,\n * CategoryDefinition>>`, which would reject the `{ domain: \"web\" }` shorthand.\n */\nexport function buildCategoryMap(\n defs: Partial<Record<Category, Partial<CategoryDefinition>>>,\n): Record<Category, CategoryDefinition> {\n return defs as Record<Category, CategoryDefinition>;\n}\n\nexport function createMockMatrix(\n skillsOrFirstSkill?: Record<string, ResolvedSkill> | ResolvedSkill,\n ...rest: (ResolvedSkill | Partial<MergedSkillsMatrix>)[]\n): MergedSkillsMatrix {\n let skillsRecord: Record<string, ResolvedSkill>;\n let overrides: Partial<MergedSkillsMatrix> | undefined;\n\n if (skillsOrFirstSkill === undefined) {\n // Empty call: createMockMatrix()\n skillsRecord = {};\n } else if (\n \"id\" in skillsOrFirstSkill &&\n typeof (skillsOrFirstSkill as ResolvedSkill).id === \"string\" &&\n \"slug\" in skillsOrFirstSkill\n ) {\n // New spread syntax: createMockMatrix(skill1, skill2, ..., optionalOverrides?)\n const allArgs = [skillsOrFirstSkill, ...rest];\n const lastArg = allArgs[allArgs.length - 1];\n\n // The last arg is overrides when it lacks the 'id' + 'slug' skill shape\n const hasOverrides = lastArg !== undefined && !(\"id\" in lastArg && \"slug\" in lastArg);\n overrides = hasOverrides ? (lastArg as Partial<MergedSkillsMatrix>) : undefined;\n const skills = (hasOverrides ? allArgs.slice(0, -1) : allArgs) as ResolvedSkill[];\n skillsRecord = Object.fromEntries(skills.map((skill) => [skill.id, skill]));\n } else {\n // Old record syntax: createMockMatrix({ \"id\": skill }, overrides?)\n skillsRecord = skillsOrFirstSkill as Record<string, ResolvedSkill>;\n overrides = rest[0] as Partial<MergedSkillsMatrix> | undefined;\n }\n\n const skillsWithSlugs = Object.values(skillsRecord).filter((skill) => skill.slug);\n // Boundary casts: Object.fromEntries widens keys to string\n const autoSlugToId = Object.fromEntries(\n skillsWithSlugs.map((skill) => [skill.slug, skill.id]),\n ) as Record<SkillSlug, SkillId>;\n const autoIdToSlug = Object.fromEntries(\n skillsWithSlugs.map((skill) => [skill.id, skill.slug]),\n ) as Record<SkillId, SkillSlug>;\n\n return {\n version: \"1.0.0\",\n categories: {} as Record<Category, CategoryDefinition>,\n skills: skillsRecord,\n suggestedStacks: [],\n slugMap: { slugToId: autoSlugToId, idToSlug: autoIdToSlug },\n generatedAt: new Date().toISOString(),\n ...overrides,\n };\n}\n\n/**\n * Builds a comprehensive test matrix with 8 skills across 7 categories,\n * 2 suggested stacks, display name mappings, and relationship data\n * (conflicts, recommends). Includes anti-over-engineering methodology skill.\n * @returns A fully populated MergedSkillsMatrix with realistic test data\n */\nexport function createComprehensiveMatrix(\n overrides?: Partial<MergedSkillsMatrix>,\n): MergedSkillsMatrix {\n // Skill categories use domain-prefixed Category IDs (matching production\n // metadata.yaml and the categories map keys, e.g., \"web-framework\", \"api-api\").\n const skills = {\n \"web-framework-react\": SKILLS.react,\n \"web-framework-vue-composition-api\": {\n ...SKILLS.vue,\n conflictsWith: [{ skillId: \"web-framework-react\", reason: \"Choose one framework\" }],\n } satisfies ResolvedSkill,\n \"web-state-zustand\": SKILLS.zustand,\n \"web-styling-scss-modules\": SKILLS.scss,\n \"api-framework-hono\": SKILLS.hono,\n \"api-database-drizzle\": SKILLS.drizzle,\n \"web-testing-vitest\": SKILLS.vitest,\n // Methodology skill\n \"meta-reviewing-reviewing\": SKILLS.antiOverEng,\n };\n\n const categories = {\n \"web-framework\": {\n ...TEST_CATEGORIES.framework,\n domain: \"web\",\n exclusive: true,\n required: true,\n },\n \"web-client-state\": { ...TEST_CATEGORIES.clientState, domain: \"web\", order: 1 },\n \"web-styling\": { ...TEST_CATEGORIES.styling, domain: \"web\", order: 2 },\n \"api-api\": { ...TEST_CATEGORIES.api, domain: \"api\", exclusive: true, required: true },\n \"api-database\": { ...TEST_CATEGORIES.database, domain: \"api\", order: 1 },\n \"web-testing\": {\n ...TEST_CATEGORIES.testing,\n domain: \"shared\",\n exclusive: false,\n order: 10,\n },\n \"meta-reviewing\": {\n ...TEST_CATEGORIES.methodology,\n domain: \"meta\",\n exclusive: false,\n required: false,\n order: 11,\n },\n } as Record<Category, CategoryDefinition>;\n\n const suggestedStacks: ResolvedStack[] = [\n createMockResolvedStack(\"nextjs-fullstack\", \"Next.js Full-Stack\", {\n description: \"Complete Next.js stack with React and Hono\",\n skills: {\n \"web-developer\": {\n \"web-framework\": [\"web-framework-react\"],\n \"web-client-state\": [\"web-state-zustand\"],\n \"web-styling\": [\"web-styling-scss-modules\"],\n },\n \"api-developer\": {\n \"api-api\": [\"api-framework-hono\"],\n \"api-database\": [\"api-database-drizzle\"],\n },\n } as ResolvedStack[\"skills\"],\n allSkillIds: [\n \"web-framework-react\",\n \"web-state-zustand\",\n \"web-styling-scss-modules\",\n \"api-framework-hono\",\n \"api-database-drizzle\",\n ],\n philosophy: \"Modern, type-safe fullstack development\",\n }),\n createMockResolvedStack(\"vue-modern-fullstack\", \"Vue Modern Full-Stack\", {\n description: \"Vue.js frontend stack\",\n skills: {\n \"web-developer\": {\n \"web-framework\": [\"web-framework-vue-composition-api\"],\n },\n } as ResolvedStack[\"skills\"],\n allSkillIds: [\"web-framework-vue-composition-api\"],\n philosophy: \"Progressive framework approach\",\n }),\n ];\n\n // Boundary cast: test matrix only contains a subset of all possible slugs\n const slugToId = {\n react: \"web-framework-react\",\n \"vue-composition-api\": \"web-framework-vue-composition-api\",\n zustand: \"web-state-zustand\",\n \"scss-modules\": \"web-styling-scss-modules\",\n hono: \"api-framework-hono\",\n drizzle: \"api-database-drizzle\",\n vitest: \"web-testing-vitest\",\n reviewing: \"meta-reviewing-reviewing\",\n } as Record<SkillSlug, SkillId>;\n\n // Boundary cast: Object.fromEntries returns { [k: string]: string }\n const idToSlug = Object.fromEntries(\n typedEntries(slugToId).map(([slug, fullId]) => [fullId, slug]),\n ) as SkillSlugMap[\"idToSlug\"];\n\n return createMockMatrix(skills, {\n categories,\n suggestedStacks,\n slugMap: { slugToId, idToSlug },\n ...overrides,\n });\n}\n\n/**\n * Builds a lightweight test matrix with 5 skills, 5 categories, and 2 stacks.\n * Use instead of createComprehensiveMatrix when relationship data is not needed.\n * @returns A minimal MergedSkillsMatrix for basic integration tests\n */\nexport function createBasicMatrix(overrides?: Partial<MergedSkillsMatrix>): MergedSkillsMatrix {\n // Domain-prefixed Category IDs — see createComprehensiveMatrix comment\n const skills = {\n \"web-framework-react\": SKILLS.react,\n \"web-state-zustand\": SKILLS.zustand,\n \"api-framework-hono\": SKILLS.hono,\n \"web-testing-vitest\": SKILLS.vitest,\n // Methodology skill\n \"meta-reviewing-reviewing\": SKILLS.antiOverEng,\n };\n\n const suggestedStacks: ResolvedStack[] = [\n createMockResolvedStack(\"react-fullstack\", \"React Fullstack\", {\n allSkillIds: [\"web-framework-react\", \"web-state-zustand\", \"api-framework-hono\"],\n }),\n createMockResolvedStack(\"testing-stack\", \"Testing Stack\", {\n allSkillIds: [\"web-testing-vitest\"],\n }),\n ];\n\n return createMockMatrix(skills, {\n suggestedStacks,\n categories: {\n \"web-framework\": {\n ...TEST_CATEGORIES.framework,\n domain: \"web\",\n exclusive: true,\n required: true,\n },\n \"web-client-state\": { ...TEST_CATEGORIES.clientState, domain: \"web\", order: 1 },\n \"api-api\": {\n ...TEST_CATEGORIES.api,\n domain: \"api\",\n exclusive: true,\n required: true,\n },\n \"web-testing\": {\n ...TEST_CATEGORIES.testing,\n displayName: \"Testing Framework\",\n domain: \"shared\",\n exclusive: false,\n },\n \"meta-reviewing\": {\n ...TEST_CATEGORIES.methodology,\n domain: \"meta\",\n exclusive: false,\n required: false,\n },\n } as Record<Category, CategoryDefinition>,\n ...overrides,\n });\n}\n\n/** Decomposed matrix config returned by createMockMatrixConfig (replaces SkillsMatrixConfig) */\nexport type MockMatrixConfig = {\n categories: Record<string, CategoryDefinition>;\n relationships: RelationshipDefinitions;\n};\n\nexport function createMockMatrixConfig(\n categories: Record<string, CategoryDefinition>,\n overrides?: {\n relationships?: Partial<RelationshipDefinitions>;\n },\n): MockMatrixConfig {\n const defaultRelationships: RelationshipDefinitions = {\n conflicts: [],\n discourages: [],\n recommends: [],\n requires: [],\n alternatives: [],\n };\n return {\n categories,\n relationships: overrides?.relationships\n ? { ...defaultRelationships, ...overrides.relationships }\n : defaultRelationships,\n };\n}\n"],"mappings":";;;;;;AAAA;AA2BA,IAAI;AACJ,SAAS,8BAAsD;AAC7D,MAAI,CAAC,2BAA2B;AAC9B,gCAA4B;AAAA,MAC1B,uBAAuB;AAAA,MACvB,qCAAqC;AAAA,MACrC,0BAA0B;AAAA,MAC1B,wBAAwB;AAAA,MACxB,2BAA2B;AAAA,MAC3B,yBAAyB;AAAA,MACzB,wBAAwB;AAAA,MACxB,4BAA4B;AAAA,MAC5B,sBAAsB;AAAA,MACtB,qBAAqB;AAAA,MACrB,mBAAmB;AA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|
|
6
|
+
// src/cli/utils/typed-object.ts
|
|
7
|
+
init_esm_shims();
|
|
8
|
+
function typedEntries(obj) {
|
|
9
|
+
return Object.entries(obj);
|
|
10
|
+
}
|
|
11
|
+
function typedKeys(obj) {
|
|
12
|
+
return Object.keys(obj);
|
|
13
|
+
}
|
|
14
|
+
function typedFromEntries(entries) {
|
|
15
|
+
return Object.fromEntries(entries);
|
|
16
|
+
}
|
|
17
|
+
function typedValues(obj) {
|
|
18
|
+
return Object.values(obj).filter((value) => value !== void 0);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
typedEntries,
|
|
23
|
+
typedKeys,
|
|
24
|
+
typedFromEntries,
|
|
25
|
+
typedValues
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=chunk-VEP23B5W.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/cli/utils/typed-object.ts"],"sourcesContent":["// Type-safe Object.entries that preserves key types (avoids `as [K, V][]` casts)\nexport function typedEntries<K extends string, V>(obj: Partial<Record<K, V>>): [K, V][] {\n return Object.entries(obj) as [K, V][];\n}\n\n// Type-safe Object.keys that preserves key types (avoids `as K[]` casts)\nexport function typedKeys<K extends string>(obj: Partial<Record<K, unknown>>): K[] {\n return Object.keys(obj) as K[];\n}\n\n// Type-safe Object.fromEntries that preserves key types (avoids `as Partial<Record<K, V>>` casts)\nexport function typedFromEntries<K extends string, V>(\n entries: Iterable<readonly [K, V]>,\n): Partial<Record<K, V>> {\n return Object.fromEntries(entries) as Partial<Record<K, V>>;\n}\n\n// Type-safe Object.values over a Partial record — yields only present values,\n// filtering the undefined slots the Partial type admits (no assert-style cast)\nexport function typedValues<K extends string, V>(obj: Partial<Record<K, V>>): V[] {\n return Object.values(obj).filter((value): value is V => value !== undefined);\n}\n"],"mappings":";;;;;;AAAA;AACO,SAAS,aAAkC,KAAsC;AACtF,SAAO,OAAO,QAAQ,GAAG;AAC3B;AAGO,SAAS,UAA4B,KAAuC;AACjF,SAAO,OAAO,KAAK,GAAG;AACxB;AAGO,SAAS,iBACd,SACuB;AACvB,SAAO,OAAO,YAAY,OAAO;AACnC;AAIO,SAAS,YAAiC,KAAiC;AAChF,SAAO,OAAO,OAAO,GAAG,EAAE,OAAO,CAAC,UAAsB,UAAU,MAAS;AAC7E;","names":[]}
|