specweave 0.4.0 → 0.6.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/.claude-plugin/README.md +325 -0
- package/.claude-plugin/marketplace.json +210 -0
- package/CLAUDE.md +1000 -252
- package/README.md +273 -180
- package/bin/install-agents.sh +1 -1
- package/bin/install-commands.sh +66 -14
- package/bin/install-hooks.sh +1 -1
- package/bin/install-skills.sh +1 -1
- package/bin/specweave.js +18 -0
- package/dist/adapters/adapter-base.d.ts +21 -0
- package/dist/adapters/adapter-base.d.ts.map +1 -1
- package/dist/adapters/adapter-base.js +28 -0
- package/dist/adapters/adapter-base.js.map +1 -1
- package/dist/adapters/adapter-interface.d.ts +41 -0
- package/dist/adapters/adapter-interface.d.ts.map +1 -1
- package/dist/adapters/claude/adapter.d.ts +85 -11
- package/dist/adapters/claude/adapter.d.ts.map +1 -1
- package/dist/adapters/claude/adapter.js +305 -37
- package/dist/adapters/claude/adapter.js.map +1 -1
- package/dist/adapters/copilot/adapter.d.ts +45 -2
- package/dist/adapters/copilot/adapter.d.ts.map +1 -1
- package/dist/adapters/copilot/adapter.js +226 -4
- package/dist/adapters/copilot/adapter.js.map +1 -1
- package/dist/adapters/cursor/adapter.d.ts +54 -0
- package/dist/adapters/cursor/adapter.d.ts.map +1 -1
- package/dist/adapters/cursor/adapter.js +192 -0
- package/dist/adapters/cursor/adapter.js.map +1 -1
- package/dist/adapters/generic/adapter.d.ts +43 -0
- package/dist/adapters/generic/adapter.d.ts.map +1 -1
- package/dist/adapters/generic/adapter.js +163 -0
- package/dist/adapters/generic/adapter.js.map +1 -1
- package/dist/cli/commands/init.d.ts +1 -0
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +392 -123
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/install.d.ts +2 -0
- package/dist/cli/commands/install.d.ts.map +1 -1
- package/dist/cli/commands/install.js +28 -25
- package/dist/cli/commands/install.js.map +1 -1
- package/dist/cli/commands/list.d.ts +2 -0
- package/dist/cli/commands/list.d.ts.map +1 -1
- package/dist/cli/commands/list.js +26 -24
- package/dist/cli/commands/list.js.map +1 -1
- package/dist/cli/commands/plugin.d.ts +43 -0
- package/dist/cli/commands/plugin.d.ts.map +1 -0
- package/dist/cli/commands/plugin.js +307 -0
- package/dist/cli/commands/plugin.js.map +1 -0
- package/dist/core/i18n/language-detector.d.ts +29 -0
- package/dist/core/i18n/language-detector.d.ts.map +1 -0
- package/dist/core/i18n/language-detector.js +143 -0
- package/dist/core/i18n/language-detector.js.map +1 -0
- package/dist/core/i18n/language-manager.d.ts +101 -0
- package/dist/core/i18n/language-manager.d.ts.map +1 -0
- package/dist/core/i18n/language-manager.js +232 -0
- package/dist/core/i18n/language-manager.js.map +1 -0
- package/dist/core/i18n/language-registry.d.ts +44 -0
- package/dist/core/i18n/language-registry.d.ts.map +1 -0
- package/dist/core/i18n/language-registry.js +234 -0
- package/dist/core/i18n/language-registry.js.map +1 -0
- package/dist/core/i18n/locale-manager.d.ts +62 -0
- package/dist/core/i18n/locale-manager.d.ts.map +1 -0
- package/dist/core/i18n/locale-manager.js +137 -0
- package/dist/core/i18n/locale-manager.js.map +1 -0
- package/dist/core/i18n/system-prompt-injector.d.ts +33 -0
- package/dist/core/i18n/system-prompt-injector.d.ts.map +1 -0
- package/dist/core/i18n/system-prompt-injector.js +131 -0
- package/dist/core/i18n/system-prompt-injector.js.map +1 -0
- package/dist/core/i18n/types.d.ts +151 -0
- package/dist/core/i18n/types.d.ts.map +1 -0
- package/dist/core/i18n/types.js +11 -0
- package/dist/core/i18n/types.js.map +1 -0
- package/dist/core/increment-status.d.ts +72 -0
- package/dist/core/increment-status.d.ts.map +1 -0
- package/dist/core/increment-status.js +227 -0
- package/dist/core/increment-status.js.map +1 -0
- package/dist/core/plugin-detector.d.ts +96 -0
- package/dist/core/plugin-detector.d.ts.map +1 -0
- package/dist/core/plugin-detector.js +349 -0
- package/dist/core/plugin-detector.js.map +1 -0
- package/dist/core/plugin-loader.d.ts +131 -0
- package/dist/core/plugin-loader.d.ts.map +1 -0
- package/dist/core/plugin-loader.js +421 -0
- package/dist/core/plugin-loader.js.map +1 -0
- package/dist/core/plugin-manager.d.ts +144 -0
- package/dist/core/plugin-manager.d.ts.map +1 -0
- package/dist/core/plugin-manager.js +393 -0
- package/dist/core/plugin-manager.js.map +1 -0
- package/dist/core/schemas/plugin-manifest.schema.json +253 -0
- package/dist/core/types/config.d.ts +51 -0
- package/dist/core/types/config.d.ts.map +1 -0
- package/dist/core/types/config.js +21 -0
- package/dist/core/types/config.js.map +1 -0
- package/dist/core/types/plugin.d.ts +283 -0
- package/dist/core/types/plugin.d.ts.map +1 -0
- package/dist/core/types/plugin.js +49 -0
- package/dist/core/types/plugin.js.map +1 -0
- package/dist/hooks/lib/sync-living-docs.d.ts +27 -0
- package/dist/hooks/lib/sync-living-docs.d.ts.map +1 -0
- package/dist/hooks/lib/sync-living-docs.js +116 -0
- package/dist/hooks/lib/sync-living-docs.js.map +1 -0
- package/dist/hooks/lib/translate-living-docs.d.ts +13 -0
- package/dist/hooks/lib/translate-living-docs.d.ts.map +1 -0
- package/dist/hooks/lib/translate-living-docs.js +166 -0
- package/dist/hooks/lib/translate-living-docs.js.map +1 -0
- package/dist/hooks/lib/update-tasks-md.d.ts +29 -0
- package/dist/hooks/lib/update-tasks-md.d.ts.map +1 -0
- package/dist/hooks/lib/update-tasks-md.js +203 -0
- package/dist/hooks/lib/update-tasks-md.js.map +1 -0
- package/dist/integrations/jira/jira-incremental-mapper.js.map +1 -1
- package/dist/integrations/jira/jira-mapper.d.ts +2 -2
- package/dist/integrations/jira/jira-mapper.js +2 -2
- package/dist/integrations/jira/jira-mapper.js.map +1 -1
- package/dist/locales/de/.gitkeep +0 -0
- package/dist/locales/de/cli.json +108 -0
- package/dist/locales/en/cli.json +269 -0
- package/dist/locales/en/errors.json +7 -0
- package/dist/locales/en/templates.json +6 -0
- package/dist/locales/es/.gitkeep +0 -0
- package/dist/locales/es/cli.json +41 -0
- package/dist/locales/fr/.gitkeep +0 -0
- package/dist/locales/fr/cli.json +108 -0
- package/dist/locales/ja/.gitkeep +0 -0
- package/dist/locales/ja/cli.json +108 -0
- package/dist/locales/ko/.gitkeep +0 -0
- package/dist/locales/ko/cli.json +108 -0
- package/dist/locales/pt/.gitkeep +0 -0
- package/dist/locales/pt/cli.json +108 -0
- package/dist/locales/ru/.gitkeep +0 -0
- package/dist/locales/ru/cli.json +269 -0
- package/dist/locales/zh/.gitkeep +0 -0
- package/dist/locales/zh/cli.json +108 -0
- package/dist/plugins/specweave-github/lib/github-client.d.ts +86 -0
- package/dist/plugins/specweave-github/lib/github-client.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/github-client.js +275 -0
- package/dist/plugins/specweave-github/lib/github-client.js.map +1 -0
- package/dist/plugins/specweave-github/lib/index.d.ts +10 -0
- package/dist/plugins/specweave-github/lib/index.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/index.js +10 -0
- package/dist/plugins/specweave-github/lib/index.js.map +1 -0
- package/dist/plugins/specweave-github/lib/subtask-sync.d.ts +51 -0
- package/dist/plugins/specweave-github/lib/subtask-sync.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/subtask-sync.js +147 -0
- package/dist/plugins/specweave-github/lib/subtask-sync.js.map +1 -0
- package/dist/plugins/specweave-github/lib/task-parser.d.ts +37 -0
- package/dist/plugins/specweave-github/lib/task-parser.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/task-parser.js +211 -0
- package/dist/plugins/specweave-github/lib/task-parser.js.map +1 -0
- package/dist/plugins/specweave-github/lib/task-sync.d.ts +51 -0
- package/dist/plugins/specweave-github/lib/task-sync.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/task-sync.js +332 -0
- package/dist/plugins/specweave-github/lib/task-sync.js.map +1 -0
- package/dist/plugins/specweave-github/lib/types.d.ts +80 -0
- package/dist/plugins/specweave-github/lib/types.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/types.js +5 -0
- package/dist/plugins/specweave-github/lib/types.js.map +1 -0
- package/dist/utils/agents-md-compiler.d.ts +68 -0
- package/dist/utils/agents-md-compiler.d.ts.map +1 -0
- package/dist/utils/agents-md-compiler.js +420 -0
- package/dist/utils/agents-md-compiler.js.map +1 -0
- package/dist/utils/generate-skills-index.js +4 -4
- package/dist/utils/generate-skills-index.js.map +1 -1
- package/package.json +24 -21
- package/plugins/specweave-ado/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-alternatives/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-alternatives/skills/bmad-method-expert/SKILL.md +626 -0
- package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/analyze-project.js +318 -0
- package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/check-setup.js +208 -0
- package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/generate-template.js +1149 -0
- package/plugins/specweave-alternatives/skills/bmad-method-expert/scripts/validate-documents.js +340 -0
- package/plugins/specweave-alternatives/skills/spec-kit-expert/SKILL.md +1010 -0
- package/plugins/specweave-backend/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-core/.claude-plugin/plugin.json +25 -0
- package/{src → plugins/specweave-core}/agents/pm/AGENT.md +80 -0
- package/plugins/specweave-core/agents/translator/AGENT.md +282 -0
- package/{src → plugins/specweave-core}/commands/README.md +11 -11
- package/{src → plugins/specweave-core}/commands/specweave.costs.md +7 -7
- package/{src → plugins/specweave-core}/commands/specweave.do.md +34 -7
- package/{src → plugins/specweave-core}/commands/specweave.increment.md +131 -22
- package/{src → plugins/specweave-core}/commands/specweave.md +49 -17
- package/{src → plugins/specweave-core}/commands/specweave.sync-docs.md +5 -5
- package/plugins/specweave-core/commands/specweave.translate.md +425 -0
- package/{src → plugins/specweave-core}/commands/specweave.validate.md +1 -1
- package/plugins/specweave-core/hooks/hooks.json +13 -0
- package/plugins/specweave-core/hooks/post-increment-plugin-detect.sh +142 -0
- package/plugins/specweave-core/hooks/post-task-completion.sh +265 -0
- package/plugins/specweave-core/hooks/pre-task-plugin-detect.sh +96 -0
- package/plugins/specweave-core/skills/SKILLS-INDEX.md +229 -0
- package/{src → plugins/specweave-core}/skills/brownfield-analyzer/SKILL.md +66 -24
- package/{src → plugins/specweave-core}/skills/context-loader/SKILL.md +1 -1
- package/plugins/specweave-core/skills/context-optimizer/SKILL.md +588 -0
- package/plugins/specweave-core/skills/docs-updater/SKILL.md +0 -0
- package/{src → plugins/specweave-core}/skills/increment-planner/SKILL.md +81 -4
- package/plugins/specweave-core/skills/plugin-detector/SKILL.md +211 -0
- package/{src → plugins/specweave-core}/skills/project-kickstarter/SKILL.md +7 -7
- package/plugins/specweave-core/skills/rfc-generator/SKILL.md +369 -0
- package/{src → plugins/specweave-core}/skills/specweave-detector/SKILL.md +2 -2
- package/plugins/specweave-core/skills/specweave-framework/SKILL.md +498 -0
- package/plugins/specweave-core/skills/specweave-framework/test-cases/test-1-increment-naming.yaml +11 -0
- package/plugins/specweave-core/skills/specweave-framework/test-cases/test-2-source-of-truth.yaml +11 -0
- package/plugins/specweave-core/skills/specweave-framework/test-cases/test-3-increment-discipline.yaml +12 -0
- package/plugins/specweave-core/skills/specweave-framework/test-cases/test-4-file-placement.yaml +11 -0
- package/{src → plugins/specweave-core}/skills/tdd-workflow/SKILL.md +20 -20
- package/plugins/specweave-core/skills/translator/SKILL.md +172 -0
- package/plugins/specweave-cost-optimizer/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-diagrams/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-docs/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-docs/skills/docusaurus/SKILL.md +526 -0
- package/plugins/specweave-figma/.claude-plugin/.mcp.json +12 -0
- package/plugins/specweave-figma/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-figma/ARCHITECTURE.md +453 -0
- package/plugins/specweave-figma/README.md +728 -0
- package/plugins/specweave-figma/skills/figma-to-code/SKILL.md +632 -0
- package/plugins/specweave-figma/skills/figma-to-code/test-1-token-generation.yaml +29 -0
- package/plugins/specweave-figma/skills/figma-to-code/test-2-component-generation.yaml +27 -0
- package/plugins/specweave-figma/skills/figma-to-code/test-3-typescript-generation.yaml +28 -0
- package/plugins/specweave-frontend/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-github/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-github/agents/github-manager/AGENT.md +651 -0
- package/plugins/specweave-github/commands/github-close-issue.md +418 -0
- package/plugins/specweave-github/commands/github-create-issue.md +307 -0
- package/plugins/specweave-github/commands/github-status.md +533 -0
- package/plugins/specweave-github/commands/github-sync-tasks.md +530 -0
- package/plugins/specweave-github/commands/github-sync.md +443 -0
- package/plugins/specweave-github/lib/github-client.ts +330 -0
- package/plugins/specweave-github/lib/index.ts +10 -0
- package/plugins/specweave-github/lib/subtask-sync.ts +225 -0
- package/plugins/specweave-github/lib/task-parser.ts +246 -0
- package/plugins/specweave-github/lib/task-sync.ts +402 -0
- package/plugins/specweave-github/lib/types.ts +86 -0
- package/plugins/specweave-github/skills/github-issue-tracker/SKILL.md +497 -0
- package/plugins/specweave-github/skills/github-sync/SKILL.md +461 -0
- package/plugins/specweave-infrastructure/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-jira/.claude-plugin/plugin.json +8 -0
- package/{src → plugins/specweave-jira}/commands/specweave.sync-jira.md +18 -18
- package/plugins/specweave-kubernetes/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-ml/.claude-plugin/plugin.json +39 -0
- package/plugins/specweave-ml/README.md +885 -0
- package/plugins/specweave-ml/agents/ml-engineer/AGENT.md +402 -0
- package/plugins/specweave-ml/commands/ml-deploy.md +116 -0
- package/plugins/specweave-ml/commands/ml-evaluate.md +87 -0
- package/plugins/specweave-ml/commands/ml-explain.md +83 -0
- package/plugins/specweave-ml/skills/anomaly-detector/SKILL.md +559 -0
- package/plugins/specweave-ml/skills/automl-optimizer/SKILL.md +485 -0
- package/plugins/specweave-ml/skills/cv-pipeline-builder/SKILL.md +157 -0
- package/plugins/specweave-ml/skills/data-visualizer/SKILL.md +521 -0
- package/plugins/specweave-ml/skills/experiment-tracker/SKILL.md +535 -0
- package/plugins/specweave-ml/skills/feature-engineer/SKILL.md +566 -0
- package/plugins/specweave-ml/skills/ml-deployment-helper/SKILL.md +345 -0
- package/plugins/specweave-ml/skills/ml-pipeline-orchestrator/SKILL.md +518 -0
- package/plugins/specweave-ml/skills/model-evaluator/SKILL.md +155 -0
- package/plugins/specweave-ml/skills/model-explainer/SKILL.md +227 -0
- package/plugins/specweave-ml/skills/model-registry/SKILL.md +541 -0
- package/plugins/specweave-ml/skills/nlp-pipeline-builder/SKILL.md +180 -0
- package/plugins/specweave-ml/skills/time-series-forecaster/SKILL.md +569 -0
- package/plugins/specweave-payments/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-testing/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-tooling/.claude-plugin/plugin.json +8 -0
- package/plugins/specweave-ui/.claude-plugin/plugin.json +106 -0
- package/plugins/specweave-ui/.mcp.json +14 -0
- package/plugins/specweave-ui/README.md +386 -0
- package/src/adapters/adapter-base.ts +33 -0
- package/src/adapters/adapter-interface.ts +46 -0
- package/src/adapters/claude/adapter.ts +350 -39
- package/src/adapters/copilot/adapter.ts +267 -4
- package/src/adapters/cursor/adapter.ts +229 -0
- package/src/adapters/generic/adapter.ts +196 -0
- package/src/templates/AGENTS.md.template +170 -1
- package/src/templates/CLAUDE.md.template +122 -24
- package/src/templates/tasks.md.template +261 -0
- package/src/agents/ml-engineer/AGENT.md +0 -150
- package/src/commands/specweave.sync-github.md +0 -269
- package/src/hooks/post-task-completion.sh +0 -79
- package/src/skills/SKILLS-INDEX.md +0 -444
- package/src/skills/github-sync/SKILL.md +0 -234
- /package/{src → plugins/specweave-ado}/skills/ado-sync/README.md +0 -0
- /package/{src → plugins/specweave-ado}/skills/ado-sync/SKILL.md +0 -0
- /package/{src → plugins/specweave-ado}/skills/specweave-ado-mapper/SKILL.md +0 -0
- /package/{src → plugins/specweave-backend}/agents/database-optimizer/AGENT.md +0 -0
- /package/{src → plugins/specweave-backend}/skills/dotnet-backend/SKILL.md +0 -0
- /package/{src → plugins/specweave-backend}/skills/nodejs-backend/SKILL.md +0 -0
- /package/{src → plugins/specweave-backend}/skills/python-backend/SKILL.md +0 -0
- /package/{src → plugins/specweave-core}/agents/architect/AGENT.md +0 -0
- /package/{src → plugins/specweave-core}/agents/code-reviewer.md +0 -0
- /package/{src → plugins/specweave-core}/agents/docs-writer/AGENT.md +0 -0
- /package/{src → plugins/specweave-core}/agents/performance/AGENT.md +0 -0
- /package/{src → plugins/specweave-core}/agents/qa-lead/AGENT.md +0 -0
- /package/{src → plugins/specweave-core}/agents/security/AGENT.md +0 -0
- /package/{src → plugins/specweave-core}/agents/tdd-orchestrator/AGENT.md +0 -0
- /package/{src → plugins/specweave-core}/agents/tech-lead/AGENT.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.done.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.inc.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.list-increments.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.next.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.progress.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.tdd-cycle.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.tdd-green.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.tdd-red.md +0 -0
- /package/{src → plugins/specweave-core}/commands/specweave.tdd-refactor.md +0 -0
- /package/{src → plugins/specweave-core}/hooks/README.md +0 -0
- /package/{src → plugins/specweave-core}/hooks/docs-changed.sh +0 -0
- /package/{src → plugins/specweave-core}/hooks/human-input-required.sh +0 -0
- /package/{src → plugins/specweave-core}/hooks/pre-implementation.sh +0 -0
- /package/{src → plugins/specweave-core}/skills/brownfield-onboarder/SKILL.md +0 -0
- /package/{src → plugins/specweave-core}/skills/docs-updater/README.md +0 -0
- /package/{src → plugins/specweave-core}/skills/increment-planner/scripts/feature-utils.js +0 -0
- /package/{src → plugins/specweave-core}/skills/increment-quality-judge/SKILL.md +0 -0
- /package/{src → plugins/specweave-core}/skills/project-kickstarter/test-cases/test-1-high-confidence-full-product.yaml +0 -0
- /package/{src → plugins/specweave-core}/skills/project-kickstarter/test-cases/test-2-medium-confidence-partial.yaml +0 -0
- /package/{src → plugins/specweave-core}/skills/project-kickstarter/test-cases/test-3-low-confidence-technical-question.yaml +0 -0
- /package/{src → plugins/specweave-core}/skills/project-kickstarter/test-cases/test-4-opt-out-explicit.yaml +0 -0
- /package/{src → plugins/specweave-core}/skills/role-orchestrator/README.md +0 -0
- /package/{src → plugins/specweave-core}/skills/role-orchestrator/SKILL.md +0 -0
- /package/{src → plugins/specweave-core}/skills/task-builder/README.md +0 -0
- /package/{src → plugins/specweave-cost-optimizer}/skills/cost-optimizer/SKILL.md +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/AGENT.md +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/c4-component-template.mmd +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/c4-container-template.mmd +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/c4-context-template.mmd +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/deployment-template.mmd +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/er-diagram-template.mmd +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/templates/sequence-template.mmd +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/test-cases/test-1-c4-context.yaml +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/test-cases/test-2-sequence.yaml +0 -0
- /package/{src → plugins/specweave-diagrams}/agents/diagrams-architect/test-cases/test-3-er-diagram.yaml +0 -0
- /package/{src → plugins/specweave-diagrams}/skills/diagrams-architect/SKILL.md +0 -0
- /package/{src → plugins/specweave-diagrams}/skills/diagrams-generator/SKILL.md +0 -0
- /package/{src → plugins/specweave-docs}/skills/spec-driven-brainstorming/README.md +0 -0
- /package/{src → plugins/specweave-docs}/skills/spec-driven-brainstorming/SKILL.md +0 -0
- /package/{src → plugins/specweave-docs}/skills/spec-driven-debugging/README.md +0 -0
- /package/{src → plugins/specweave-docs}/skills/spec-driven-debugging/SKILL.md +0 -0
- /package/{src → plugins/specweave-frontend}/skills/design-system-architect/SKILL.md +0 -0
- /package/{src → plugins/specweave-frontend}/skills/frontend/SKILL.md +0 -0
- /package/{src → plugins/specweave-frontend}/skills/nextjs/SKILL.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/devops/AGENT.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/network-engineer/AGENT.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/observability-engineer/AGENT.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/performance-engineer/AGENT.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/AGENT.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/backend-diagnostics.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/database-diagnostics.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/infrastructure.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/monitoring.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/security-incidents.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/modules/ui-diagnostics.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/01-high-cpu-usage.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/02-database-deadlock.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/03-memory-leak.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/04-slow-api-response.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/05-ddos-attack.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/06-disk-full.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/07-service-down.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/08-data-corruption.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/09-cascade-failure.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/playbooks/10-rate-limit-exceeded.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/scripts/health-check.sh +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/scripts/log-analyzer.py +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/scripts/metrics-collector.sh +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/scripts/trace-analyzer.js +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/templates/incident-report.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/templates/mitigation-plan.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/templates/post-mortem.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/agents/sre/templates/runbook-template.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/commands/specweave.monitor-setup.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/commands/specweave.slo-implement.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/skills/distributed-tracing/SKILL.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/skills/grafana-dashboards/SKILL.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/skills/hetzner-provisioner/README.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/skills/hetzner-provisioner/SKILL.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/skills/prometheus-configuration/SKILL.md +0 -0
- /package/{src → plugins/specweave-infrastructure}/skills/slo-implementation/SKILL.md +0 -0
- /package/{src → plugins/specweave-jira}/skills/jira-sync/README.md +0 -0
- /package/{src → plugins/specweave-jira}/skills/jira-sync/SKILL.md +0 -0
- /package/{src → plugins/specweave-jira}/skills/specweave-jira-mapper/SKILL.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/agents/kubernetes-architect/AGENT.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/gitops-workflow/SKILL.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/gitops-workflow/references/argocd-setup.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/gitops-workflow/references/sync-policies.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/SKILL.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/assets/Chart.yaml.template +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/assets/values.yaml.template +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/references/chart-structure.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/helm-chart-scaffolding/scripts/validate-chart.sh +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/SKILL.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/assets/configmap-template.yaml +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/assets/deployment-template.yaml +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/assets/service-template.yaml +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/references/deployment-spec.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-manifest-generator/references/service-spec.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-security-policies/SKILL.md +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-security-policies/assets/network-policy-template.yaml +0 -0
- /package/{src → plugins/specweave-kubernetes}/skills/k8s-security-policies/references/rbac-patterns.md +0 -0
- /package/{src → plugins/specweave-ml}/agents/data-scientist/AGENT.md +0 -0
- /package/{src → plugins/specweave-ml}/agents/mlops-engineer/AGENT.md +0 -0
- /package/{src → plugins/specweave-ml}/commands/specweave.ml-pipeline.md +0 -0
- /package/{src → plugins/specweave-ml}/skills/ml-pipeline-workflow/SKILL.md +0 -0
- /package/{src → plugins/specweave-payments}/agents/payment-integration/AGENT.md +0 -0
- /package/{src → plugins/specweave-payments}/skills/billing-automation/SKILL.md +0 -0
- /package/{src → plugins/specweave-payments}/skills/paypal-integration/SKILL.md +0 -0
- /package/{src → plugins/specweave-payments}/skills/pci-compliance/SKILL.md +0 -0
- /package/{src → plugins/specweave-payments}/skills/stripe-integration/SKILL.md +0 -0
- /package/{src → plugins/specweave-testing}/skills/e2e-playwright/README.md +0 -0
- /package/{src → plugins/specweave-testing}/skills/e2e-playwright/SKILL.md +0 -0
- /package/{src → plugins/specweave-testing}/skills/e2e-playwright/execute.js +0 -0
- /package/{src → plugins/specweave-testing}/skills/e2e-playwright/lib/utils.js +0 -0
- /package/{src → plugins/specweave-testing}/skills/e2e-playwright/package.json +0 -0
- /package/{src → plugins/specweave-tooling}/skills/skill-creator/LICENSE.txt +0 -0
- /package/{src → plugins/specweave-tooling}/skills/skill-creator/SKILL.md +0 -0
- /package/{src → plugins/specweave-tooling}/skills/skill-creator/scripts/init_skill.py +0 -0
- /package/{src → plugins/specweave-tooling}/skills/skill-creator/scripts/package_skill.py +0 -0
- /package/{src → plugins/specweave-tooling}/skills/skill-creator/scripts/quick_validate.py +0 -0
- /package/{src → plugins/specweave-tooling}/skills/skill-router/SKILL.md +0 -0
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://spec-weave.com/schemas/plugin-manifest.json",
|
|
4
|
+
"title": "SpecWeave Plugin Manifest",
|
|
5
|
+
"description": "Schema for SpecWeave plugin manifest.json files",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["name", "version", "description", "specweave_core_version", "provides"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"name": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"pattern": "^specweave-[a-z0-9-]+$",
|
|
12
|
+
"minLength": 11,
|
|
13
|
+
"maxLength": 64,
|
|
14
|
+
"description": "Unique plugin name (must start with 'specweave-')",
|
|
15
|
+
"examples": ["specweave-kubernetes", "specweave-github", "specweave-ml-ops"]
|
|
16
|
+
},
|
|
17
|
+
"version": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+(-[a-z0-9.-]+)?(\\+[a-z0-9.-]+)?$",
|
|
20
|
+
"description": "Semantic version (e.g., '1.0.0', '2.1.3-beta.1')",
|
|
21
|
+
"examples": ["1.0.0", "2.1.3-beta.1", "0.4.0"]
|
|
22
|
+
},
|
|
23
|
+
"description": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"minLength": 10,
|
|
26
|
+
"maxLength": 1024,
|
|
27
|
+
"description": "Human-readable description of what this plugin does"
|
|
28
|
+
},
|
|
29
|
+
"author": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"maxLength": 256,
|
|
32
|
+
"description": "Plugin author name or organization"
|
|
33
|
+
},
|
|
34
|
+
"license": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"enum": ["MIT", "Apache-2.0", "BSD-3-Clause", "ISC", "GPL-3.0", "LGPL-3.0", "MPL-2.0", "Unlicense"],
|
|
37
|
+
"description": "SPDX license identifier"
|
|
38
|
+
},
|
|
39
|
+
"specweave_core_version": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"pattern": "^[><=~^]+\\d+\\.\\d+\\.\\d+$",
|
|
42
|
+
"description": "Required SpecWeave core version (e.g., '>=0.4.0', '~0.4.0', '^0.4.0')",
|
|
43
|
+
"examples": [">=0.4.0", "~0.4.0", "^0.4.0"]
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"properties": {
|
|
48
|
+
"plugins": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"pattern": "^specweave-[a-z0-9-]+$"
|
|
53
|
+
},
|
|
54
|
+
"uniqueItems": true,
|
|
55
|
+
"description": "Other plugins this plugin requires"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"additionalProperties": false
|
|
59
|
+
},
|
|
60
|
+
"auto_detect": {
|
|
61
|
+
"type": "object",
|
|
62
|
+
"properties": {
|
|
63
|
+
"files": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"items": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"minLength": 1
|
|
68
|
+
},
|
|
69
|
+
"uniqueItems": true,
|
|
70
|
+
"description": "File or directory patterns to detect (e.g., 'kubernetes/', '.git/')"
|
|
71
|
+
},
|
|
72
|
+
"packages": {
|
|
73
|
+
"type": "array",
|
|
74
|
+
"items": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"minLength": 1
|
|
77
|
+
},
|
|
78
|
+
"uniqueItems": true,
|
|
79
|
+
"description": "NPM package dependencies to detect (from package.json)"
|
|
80
|
+
},
|
|
81
|
+
"env_vars": {
|
|
82
|
+
"type": "array",
|
|
83
|
+
"items": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"pattern": "^[A-Z][A-Z0-9_]*$"
|
|
86
|
+
},
|
|
87
|
+
"uniqueItems": true,
|
|
88
|
+
"description": "Environment variables to detect"
|
|
89
|
+
},
|
|
90
|
+
"git_remote_pattern": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"minLength": 1,
|
|
93
|
+
"description": "Regex pattern to match against git remote URL (e.g., 'github\\.com')"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"additionalProperties": false
|
|
97
|
+
},
|
|
98
|
+
"provides": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"required": ["skills", "agents", "commands"],
|
|
101
|
+
"properties": {
|
|
102
|
+
"skills": {
|
|
103
|
+
"type": "array",
|
|
104
|
+
"items": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"pattern": "^[a-z0-9-]+$",
|
|
107
|
+
"minLength": 1
|
|
108
|
+
},
|
|
109
|
+
"uniqueItems": true,
|
|
110
|
+
"description": "Skill names provided by this plugin"
|
|
111
|
+
},
|
|
112
|
+
"agents": {
|
|
113
|
+
"type": "array",
|
|
114
|
+
"items": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"pattern": "^[a-z0-9-]+$",
|
|
117
|
+
"minLength": 1
|
|
118
|
+
},
|
|
119
|
+
"uniqueItems": true,
|
|
120
|
+
"description": "Agent names provided by this plugin"
|
|
121
|
+
},
|
|
122
|
+
"commands": {
|
|
123
|
+
"type": "array",
|
|
124
|
+
"items": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"pattern": "^specweave\\.[a-z0-9-.]+$",
|
|
127
|
+
"minLength": 11
|
|
128
|
+
},
|
|
129
|
+
"uniqueItems": true,
|
|
130
|
+
"description": "Command names provided by this plugin (must start with 'specweave.')"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"additionalProperties": false
|
|
134
|
+
},
|
|
135
|
+
"triggers": {
|
|
136
|
+
"type": "array",
|
|
137
|
+
"items": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"minLength": 2
|
|
140
|
+
},
|
|
141
|
+
"uniqueItems": true,
|
|
142
|
+
"description": "Keywords that trigger plugin suggestions in specs/tasks"
|
|
143
|
+
},
|
|
144
|
+
"credits": {
|
|
145
|
+
"type": "object",
|
|
146
|
+
"properties": {
|
|
147
|
+
"based_on": {
|
|
148
|
+
"type": ["string", "null"],
|
|
149
|
+
"format": "uri",
|
|
150
|
+
"description": "Upstream source URL if forked from another project"
|
|
151
|
+
},
|
|
152
|
+
"original_author": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"maxLength": 256,
|
|
155
|
+
"description": "Original author name if forked"
|
|
156
|
+
},
|
|
157
|
+
"contributors": {
|
|
158
|
+
"type": "array",
|
|
159
|
+
"items": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"maxLength": 256
|
|
162
|
+
},
|
|
163
|
+
"uniqueItems": true,
|
|
164
|
+
"description": "List of contributors to this plugin"
|
|
165
|
+
},
|
|
166
|
+
"modifications": {
|
|
167
|
+
"type": "array",
|
|
168
|
+
"items": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"maxLength": 512
|
|
171
|
+
},
|
|
172
|
+
"description": "List of modifications made for SpecWeave integration"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"additionalProperties": false
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"additionalProperties": false,
|
|
179
|
+
"examples": [
|
|
180
|
+
{
|
|
181
|
+
"name": "specweave-github",
|
|
182
|
+
"version": "1.0.0",
|
|
183
|
+
"description": "GitHub issues integration for SpecWeave increments",
|
|
184
|
+
"author": "SpecWeave Team",
|
|
185
|
+
"license": "MIT",
|
|
186
|
+
"specweave_core_version": ">=0.4.0",
|
|
187
|
+
"auto_detect": {
|
|
188
|
+
"files": [".git/"],
|
|
189
|
+
"env_vars": ["GITHUB_TOKEN"],
|
|
190
|
+
"git_remote_pattern": "github\\.com"
|
|
191
|
+
},
|
|
192
|
+
"provides": {
|
|
193
|
+
"skills": ["github-sync", "github-issue-tracker"],
|
|
194
|
+
"agents": ["github-manager"],
|
|
195
|
+
"commands": [
|
|
196
|
+
"specweave.github.create-issue",
|
|
197
|
+
"specweave.github.sync",
|
|
198
|
+
"specweave.github.close-issue"
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
"triggers": ["github", "issue", "gh", "pull request", "PR"]
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "specweave-kubernetes",
|
|
205
|
+
"version": "1.0.0",
|
|
206
|
+
"description": "Kubernetes deployment and management for SpecWeave projects",
|
|
207
|
+
"author": "SpecWeave Team",
|
|
208
|
+
"license": "MIT",
|
|
209
|
+
"specweave_core_version": ">=0.4.0",
|
|
210
|
+
"dependencies": {
|
|
211
|
+
"plugins": ["specweave-cloud-infrastructure"]
|
|
212
|
+
},
|
|
213
|
+
"auto_detect": {
|
|
214
|
+
"files": ["kubernetes/", "k8s/", "helm/"],
|
|
215
|
+
"packages": ["@kubernetes/client-node"],
|
|
216
|
+
"env_vars": ["KUBECONFIG"]
|
|
217
|
+
},
|
|
218
|
+
"provides": {
|
|
219
|
+
"skills": ["k8s-deployer", "helm-manager", "k8s-troubleshooter"],
|
|
220
|
+
"agents": ["devops"],
|
|
221
|
+
"commands": ["specweave.k8s.deploy", "specweave.k8s.status"]
|
|
222
|
+
},
|
|
223
|
+
"triggers": ["kubernetes", "k8s", "kubectl", "helm", "pod", "deployment", "service"]
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "specweave-observability",
|
|
227
|
+
"version": "1.0.0",
|
|
228
|
+
"description": "Observability & monitoring for SpecWeave projects (Prometheus, Grafana)",
|
|
229
|
+
"author": "SpecWeave Team",
|
|
230
|
+
"license": "MIT",
|
|
231
|
+
"specweave_core_version": ">=0.4.0",
|
|
232
|
+
"auto_detect": {
|
|
233
|
+
"files": ["prometheus/", "grafana/"],
|
|
234
|
+
"packages": ["prom-client", "@grafana/faro-web-sdk"]
|
|
235
|
+
},
|
|
236
|
+
"provides": {
|
|
237
|
+
"skills": ["monitoring-setup", "metrics-collector", "alerting-config", "dashboard-generator"],
|
|
238
|
+
"agents": ["sre"],
|
|
239
|
+
"commands": ["specweave.observe.metrics", "specweave.observe.alerts"]
|
|
240
|
+
},
|
|
241
|
+
"triggers": ["monitoring", "prometheus", "grafana", "metrics", "observability", "alerting"],
|
|
242
|
+
"credits": {
|
|
243
|
+
"based_on": "https://github.com/wshobson/agents/tree/main/plugins/observability-monitoring",
|
|
244
|
+
"original_author": "Seth Hobson",
|
|
245
|
+
"modifications": [
|
|
246
|
+
"Adapted for SpecWeave increment lifecycle",
|
|
247
|
+
"Added /sync-docs integration",
|
|
248
|
+
"SpecWeave naming conventions"
|
|
249
|
+
]
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
]
|
|
253
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SpecWeave Configuration Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for .specweave/config.json configuration file.
|
|
5
|
+
*/
|
|
6
|
+
import { SupportedLanguage, TranslationConfig } from '../i18n/types.js';
|
|
7
|
+
import { PluginConfig } from './plugin.js';
|
|
8
|
+
/**
|
|
9
|
+
* Project metadata
|
|
10
|
+
*/
|
|
11
|
+
export interface ProjectMetadata {
|
|
12
|
+
/** Project name */
|
|
13
|
+
name?: string;
|
|
14
|
+
/** Project version (semver) */
|
|
15
|
+
version?: string;
|
|
16
|
+
/** Project description */
|
|
17
|
+
description?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Adapter configuration
|
|
21
|
+
*/
|
|
22
|
+
export interface AdapterConfig {
|
|
23
|
+
/** Default adapter to use (claude, cursor, copilot, generic) */
|
|
24
|
+
default?: 'claude' | 'cursor' | 'copilot' | 'generic';
|
|
25
|
+
/** Additional adapter settings */
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Complete SpecWeave Configuration
|
|
30
|
+
*
|
|
31
|
+
* Represents the structure of .specweave/config.json
|
|
32
|
+
*/
|
|
33
|
+
export interface SpecweaveConfig {
|
|
34
|
+
/** Plugin configuration */
|
|
35
|
+
plugins?: PluginConfig;
|
|
36
|
+
/** Project metadata */
|
|
37
|
+
project?: ProjectMetadata;
|
|
38
|
+
/** Adapter configuration */
|
|
39
|
+
adapters?: AdapterConfig;
|
|
40
|
+
/** Primary language for generated content and CLI */
|
|
41
|
+
language?: SupportedLanguage;
|
|
42
|
+
/** Translation settings for multilingual support */
|
|
43
|
+
translation?: TranslationConfig;
|
|
44
|
+
/** Allow additional properties */
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Default configuration values
|
|
49
|
+
*/
|
|
50
|
+
export declare const DEFAULT_CONFIG: Partial<SpecweaveConfig>;
|
|
51
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/core/types/config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,mBAAmB;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,+BAA+B;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,gEAAgE;IAChE,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;IAEtD,kCAAkC;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,2BAA2B;IAC3B,OAAO,CAAC,EAAE,YAAY,CAAC;IAEvB,uBAAuB;IACvB,OAAO,CAAC,EAAE,eAAe,CAAC;IAE1B,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,aAAa,CAAC;IAEzB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAE7B,oDAAoD;IACpD,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAEhC,kCAAkC;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC,eAAe,CAWnD,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SpecWeave Configuration Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for .specweave/config.json configuration file.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Default configuration values
|
|
8
|
+
*/
|
|
9
|
+
export const DEFAULT_CONFIG = {
|
|
10
|
+
language: 'en',
|
|
11
|
+
translation: {
|
|
12
|
+
languages: ['en'],
|
|
13
|
+
primary: 'en',
|
|
14
|
+
method: 'auto',
|
|
15
|
+
preserveFrameworkTerms: true,
|
|
16
|
+
},
|
|
17
|
+
adapters: {
|
|
18
|
+
default: 'claude',
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/core/types/config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAuDH;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAA6B;IACtD,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE;QACX,SAAS,EAAE,CAAC,IAAI,CAAC;QACjB,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,MAAM;QACd,sBAAsB,EAAE,IAAI;KAC7B;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,QAAQ;KAClB;CACF,CAAC"}
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plugin System Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* Defines interfaces and types for Claude Code's native plugin architecture.
|
|
5
|
+
* Follows Claude's official plugin.json schema (Anthropic standards).
|
|
6
|
+
*
|
|
7
|
+
* @module core/types/plugin
|
|
8
|
+
* @version 0.6.1
|
|
9
|
+
* @see https://docs.claude.com/en/docs/claude-code/plugins
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Claude Plugin Manifest - Official plugin.json format
|
|
13
|
+
*
|
|
14
|
+
* Loaded from .claude-plugin/plugin.json in each plugin directory.
|
|
15
|
+
* Follows Claude's official schema (NOT SpecWeave custom format).
|
|
16
|
+
*
|
|
17
|
+
* @see https://github.com/anthropics/claude-code/blob/main/.claude-plugin/marketplace.json
|
|
18
|
+
*/
|
|
19
|
+
export interface PluginManifest {
|
|
20
|
+
/** Plugin name (e.g., "specweave-github") */
|
|
21
|
+
name: string;
|
|
22
|
+
/** Human-readable description */
|
|
23
|
+
description: string;
|
|
24
|
+
/** Semantic version (e.g., "1.0.0") */
|
|
25
|
+
version: string;
|
|
26
|
+
/** Plugin author (required by Claude) */
|
|
27
|
+
author: {
|
|
28
|
+
/** Author name */
|
|
29
|
+
name: string;
|
|
30
|
+
/** Author email (optional) */
|
|
31
|
+
email?: string;
|
|
32
|
+
/** Author URL (optional) */
|
|
33
|
+
url?: string;
|
|
34
|
+
};
|
|
35
|
+
/** Plugin homepage (optional) */
|
|
36
|
+
homepage?: string;
|
|
37
|
+
/** Repository info (optional) */
|
|
38
|
+
repository?: {
|
|
39
|
+
/** Repository type (e.g., "git") */
|
|
40
|
+
type: string;
|
|
41
|
+
/** Repository URL */
|
|
42
|
+
url: string;
|
|
43
|
+
};
|
|
44
|
+
/** Keywords for discoverability (optional) */
|
|
45
|
+
keywords?: string[];
|
|
46
|
+
/** Plugin dependencies (SpecWeave format - object with plugins array) */
|
|
47
|
+
dependencies?: {
|
|
48
|
+
/** List of required plugin names */
|
|
49
|
+
plugins?: string[];
|
|
50
|
+
};
|
|
51
|
+
/** License information (SpecWeave extension) */
|
|
52
|
+
license?: string;
|
|
53
|
+
/** Required SpecWeave core version (SpecWeave extension) */
|
|
54
|
+
specweave_core_version?: string;
|
|
55
|
+
/** Components provided by plugin (SpecWeave extension) - arrays of component names */
|
|
56
|
+
provides?: {
|
|
57
|
+
/** List of skill names */
|
|
58
|
+
skills?: string[];
|
|
59
|
+
/** List of agent names */
|
|
60
|
+
agents?: string[];
|
|
61
|
+
/** List of command names */
|
|
62
|
+
commands?: string[];
|
|
63
|
+
/** List of hook names */
|
|
64
|
+
hooks?: string[];
|
|
65
|
+
};
|
|
66
|
+
/** Nested plugins or plugin list (SpecWeave extension) */
|
|
67
|
+
plugins?: string[];
|
|
68
|
+
/** Auto-detection rules (SpecWeave extension) */
|
|
69
|
+
auto_detect?: {
|
|
70
|
+
/** File patterns to detect (e.g., ".git/config") */
|
|
71
|
+
files?: string[];
|
|
72
|
+
/** Package.json dependencies to check */
|
|
73
|
+
packages?: string[];
|
|
74
|
+
/** Environment variables to check (was env_vars) */
|
|
75
|
+
env?: string[];
|
|
76
|
+
/** Legacy name for env */
|
|
77
|
+
env_vars?: string[];
|
|
78
|
+
/** Git remotes to check (e.g., "github.com") */
|
|
79
|
+
git_remotes?: string[];
|
|
80
|
+
/** Legacy name for git_remotes */
|
|
81
|
+
git_remote_pattern?: string;
|
|
82
|
+
};
|
|
83
|
+
/** Plugin triggers (SpecWeave extension) */
|
|
84
|
+
triggers?: string[];
|
|
85
|
+
/** Credits and acknowledgments (SpecWeave extension) */
|
|
86
|
+
credits?: {
|
|
87
|
+
/** Original author (was original_author) */
|
|
88
|
+
author?: string;
|
|
89
|
+
/** Legacy name for author */
|
|
90
|
+
original_author?: string;
|
|
91
|
+
/** Contributors */
|
|
92
|
+
contributors?: string[];
|
|
93
|
+
/** Inspiration or based on (was based_on) */
|
|
94
|
+
inspiration?: string;
|
|
95
|
+
/** Legacy name for inspiration */
|
|
96
|
+
based_on?: string;
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Skill - Auto-activating capability
|
|
101
|
+
*/
|
|
102
|
+
export interface Skill {
|
|
103
|
+
/** Skill name (unique within plugin) */
|
|
104
|
+
name: string;
|
|
105
|
+
/** Path to SKILL.md file */
|
|
106
|
+
path: string;
|
|
107
|
+
/** Description from SKILL.md frontmatter */
|
|
108
|
+
description: string;
|
|
109
|
+
/** Test cases for this skill */
|
|
110
|
+
testCases?: TestCase[];
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Agent - Specialized role with isolated context
|
|
114
|
+
*/
|
|
115
|
+
export interface Agent {
|
|
116
|
+
/** Agent name (unique within plugin) */
|
|
117
|
+
name: string;
|
|
118
|
+
/** Path to AGENT.md file */
|
|
119
|
+
path: string;
|
|
120
|
+
/** System prompt from AGENT.md */
|
|
121
|
+
systemPrompt: string;
|
|
122
|
+
/** Agent capabilities */
|
|
123
|
+
capabilities: string[];
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Command - Slash command (e.g., /specweave.github.sync)
|
|
127
|
+
*/
|
|
128
|
+
export interface Command {
|
|
129
|
+
/** Command name (e.g., "github-sync") */
|
|
130
|
+
name: string;
|
|
131
|
+
/** Path to command.md file */
|
|
132
|
+
path: string;
|
|
133
|
+
/** Description of what the command does */
|
|
134
|
+
description: string;
|
|
135
|
+
/** Command prompt/template */
|
|
136
|
+
prompt: string;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Test Case - YAML-based test case for skills
|
|
140
|
+
*/
|
|
141
|
+
export interface TestCase {
|
|
142
|
+
/** Test case ID (e.g., "TC-001") */
|
|
143
|
+
id: string;
|
|
144
|
+
/** Test description */
|
|
145
|
+
description: string;
|
|
146
|
+
/** Input for the skill */
|
|
147
|
+
input: string;
|
|
148
|
+
/** Expected output pattern */
|
|
149
|
+
expected: string;
|
|
150
|
+
/** Path to test case file */
|
|
151
|
+
path: string;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Plugin - Complete plugin with all components loaded
|
|
155
|
+
*/
|
|
156
|
+
export interface Plugin {
|
|
157
|
+
/** Plugin manifest (metadata) */
|
|
158
|
+
manifest: PluginManifest;
|
|
159
|
+
/** Absolute path to plugin directory */
|
|
160
|
+
path: string;
|
|
161
|
+
/** Skills provided by this plugin */
|
|
162
|
+
skills: Skill[];
|
|
163
|
+
/** Agents provided by this plugin */
|
|
164
|
+
agents: Agent[];
|
|
165
|
+
/** Commands provided by this plugin */
|
|
166
|
+
commands: Command[];
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Plugin Info - Lightweight plugin metadata (for listing)
|
|
170
|
+
*/
|
|
171
|
+
export interface PluginInfo {
|
|
172
|
+
/** Plugin name */
|
|
173
|
+
name: string;
|
|
174
|
+
/** Plugin version */
|
|
175
|
+
version: string;
|
|
176
|
+
/** Description */
|
|
177
|
+
description: string;
|
|
178
|
+
/** Path to plugin directory */
|
|
179
|
+
path: string;
|
|
180
|
+
/** Is this plugin currently enabled? */
|
|
181
|
+
enabled: boolean;
|
|
182
|
+
/** Skill count */
|
|
183
|
+
skillCount: number;
|
|
184
|
+
/** Agent count */
|
|
185
|
+
agentCount: number;
|
|
186
|
+
/** Command count */
|
|
187
|
+
commandCount: number;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Validation Result - Result of manifest validation
|
|
191
|
+
*/
|
|
192
|
+
export interface ValidationResult {
|
|
193
|
+
/** Is the manifest valid? */
|
|
194
|
+
valid: boolean;
|
|
195
|
+
/** Validation errors (if any) */
|
|
196
|
+
errors: string[];
|
|
197
|
+
/** Warnings (non-fatal issues) */
|
|
198
|
+
warnings: string[];
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Detection Result - Result of plugin auto-detection
|
|
202
|
+
*/
|
|
203
|
+
export interface DetectionResult {
|
|
204
|
+
/** Detected plugin name */
|
|
205
|
+
pluginName: string;
|
|
206
|
+
/** Detection confidence (0-1) */
|
|
207
|
+
confidence: number;
|
|
208
|
+
/** Reason for detection */
|
|
209
|
+
reason: string;
|
|
210
|
+
/** What triggered detection (file, package, env var, etc.) */
|
|
211
|
+
trigger: string;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Plugin Config - User's plugin configuration
|
|
215
|
+
*
|
|
216
|
+
* Stored in .specweave/config.yaml
|
|
217
|
+
*/
|
|
218
|
+
export interface PluginConfig {
|
|
219
|
+
/** List of enabled plugin names */
|
|
220
|
+
enabled: string[];
|
|
221
|
+
/** Plugin-specific settings */
|
|
222
|
+
settings?: {
|
|
223
|
+
[pluginName: string]: Record<string, any>;
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Plugin Load Options - Options for loading a plugin
|
|
228
|
+
*/
|
|
229
|
+
export interface PluginLoadOptions {
|
|
230
|
+
/** Force reload even if already loaded */
|
|
231
|
+
force?: boolean;
|
|
232
|
+
/** Skip dependency checking */
|
|
233
|
+
skipDependencies?: boolean;
|
|
234
|
+
/** Validate plugin integrity */
|
|
235
|
+
validate?: boolean;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Plugin Unload Options - Options for unloading a plugin
|
|
239
|
+
*/
|
|
240
|
+
export interface PluginUnloadOptions {
|
|
241
|
+
/** Remove plugin files (vs. just marking as disabled) */
|
|
242
|
+
remove?: boolean;
|
|
243
|
+
/** Force unload even if other plugins depend on it */
|
|
244
|
+
force?: boolean;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Plugin Dependency - Dependency information
|
|
248
|
+
*/
|
|
249
|
+
export interface PluginDependency {
|
|
250
|
+
/** Plugin name */
|
|
251
|
+
name: string;
|
|
252
|
+
/** Version requirement (e.g., ">=1.0.0") */
|
|
253
|
+
version?: string;
|
|
254
|
+
/** Is this dependency optional? */
|
|
255
|
+
optional?: boolean;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Plugin Error - Custom error for plugin operations
|
|
259
|
+
*/
|
|
260
|
+
export declare class PluginError extends Error {
|
|
261
|
+
pluginName?: string;
|
|
262
|
+
code?: string;
|
|
263
|
+
constructor(message: string, pluginName?: string, code?: string);
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Plugin Manifest Validation Error
|
|
267
|
+
*/
|
|
268
|
+
export declare class ManifestValidationError extends PluginError {
|
|
269
|
+
constructor(message: string, pluginName?: string);
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Plugin Not Found Error
|
|
273
|
+
*/
|
|
274
|
+
export declare class PluginNotFoundError extends PluginError {
|
|
275
|
+
constructor(pluginName: string);
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Plugin Dependency Error
|
|
279
|
+
*/
|
|
280
|
+
export declare class PluginDependencyError extends PluginError {
|
|
281
|
+
constructor(message: string, pluginName?: string);
|
|
282
|
+
}
|
|
283
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/core/types/plugin.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plugin System Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* Defines interfaces and types for Claude Code's native plugin architecture.
|
|
5
|
+
* Follows Claude's official plugin.json schema (Anthropic standards).
|
|
6
|
+
*
|
|
7
|
+
* @module core/types/plugin
|
|
8
|
+
* @version 0.6.1
|
|
9
|
+
* @see https://docs.claude.com/en/docs/claude-code/plugins
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Plugin Error - Custom error for plugin operations
|
|
13
|
+
*/
|
|
14
|
+
export class PluginError extends Error {
|
|
15
|
+
constructor(message, pluginName, code) {
|
|
16
|
+
super(message);
|
|
17
|
+
this.pluginName = pluginName;
|
|
18
|
+
this.code = code;
|
|
19
|
+
this.name = 'PluginError';
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Plugin Manifest Validation Error
|
|
24
|
+
*/
|
|
25
|
+
export class ManifestValidationError extends PluginError {
|
|
26
|
+
constructor(message, pluginName) {
|
|
27
|
+
super(message, pluginName, 'MANIFEST_INVALID');
|
|
28
|
+
this.name = 'ManifestValidationError';
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Plugin Not Found Error
|
|
33
|
+
*/
|
|
34
|
+
export class PluginNotFoundError extends PluginError {
|
|
35
|
+
constructor(pluginName) {
|
|
36
|
+
super(`Plugin '${pluginName}' not found`, pluginName, 'PLUGIN_NOT_FOUND');
|
|
37
|
+
this.name = 'PluginNotFoundError';
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Plugin Dependency Error
|
|
42
|
+
*/
|
|
43
|
+
export class PluginDependencyError extends PluginError {
|
|
44
|
+
constructor(message, pluginName) {
|
|
45
|
+
super(message, pluginName, 'DEPENDENCY_ERROR');
|
|
46
|
+
this.name = 'PluginDependencyError';
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/core/types/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAyTH;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,KAAK;IACpC,YACE,OAAe,EACR,UAAmB,EACnB,IAAa;QAEpB,KAAK,CAAC,OAAO,CAAC,CAAC;QAHR,eAAU,GAAV,UAAU,CAAS;QACnB,SAAI,GAAJ,IAAI,CAAS;QAGpB,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;IAC5B,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,uBAAwB,SAAQ,WAAW;IACtD,YAAY,OAAe,EAAE,UAAmB;QAC9C,KAAK,CAAC,OAAO,EAAE,UAAU,EAAE,kBAAkB,CAAC,CAAC;QAC/C,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAAC;IACxC,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,WAAW;IAClD,YAAY,UAAkB;QAC5B,KAAK,CAAC,WAAW,UAAU,aAAa,EAAE,UAAU,EAAE,kBAAkB,CAAC,CAAC;QAC1E,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;IACpC,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,qBAAsB,SAAQ,WAAW;IACpD,YAAY,OAAe,EAAE,UAAmB;QAC9C,KAAK,CAAC,OAAO,EAAE,UAAU,EAAE,kBAAkB,CAAC,CAAC;QAC/C,IAAI,CAAC,IAAI,GAAG,uBAAuB,CAAC;IACtC,CAAC;CACF"}
|