specweave 0.11.0 → 0.12.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/marketplace.json +1 -1
- package/CLAUDE.md +131 -144
- package/README.md +48 -21
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +21 -70
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/hooks/lib/git-diff-analyzer.d.ts +89 -0
- package/dist/hooks/lib/git-diff-analyzer.d.ts.map +1 -0
- package/dist/hooks/lib/git-diff-analyzer.js +226 -0
- package/dist/hooks/lib/git-diff-analyzer.js.map +1 -0
- package/dist/hooks/lib/prepare-reflection-context.d.ts +42 -0
- package/dist/hooks/lib/prepare-reflection-context.d.ts.map +1 -0
- package/dist/hooks/lib/prepare-reflection-context.js +123 -0
- package/dist/hooks/lib/prepare-reflection-context.js.map +1 -0
- package/dist/hooks/lib/reflection-config-loader.d.ts +45 -0
- package/dist/hooks/lib/reflection-config-loader.d.ts.map +1 -0
- package/dist/hooks/lib/reflection-config-loader.js +132 -0
- package/dist/hooks/lib/reflection-config-loader.js.map +1 -0
- package/dist/hooks/lib/reflection-parser.d.ts +33 -0
- package/dist/hooks/lib/reflection-parser.d.ts.map +1 -0
- package/dist/hooks/lib/reflection-parser.js +419 -0
- package/dist/hooks/lib/reflection-parser.js.map +1 -0
- package/dist/hooks/lib/reflection-prompt-builder.d.ts +56 -0
- package/dist/hooks/lib/reflection-prompt-builder.d.ts.map +1 -0
- package/dist/hooks/lib/reflection-prompt-builder.js +239 -0
- package/dist/hooks/lib/reflection-prompt-builder.js.map +1 -0
- package/dist/hooks/lib/reflection-storage.d.ts +64 -0
- package/dist/hooks/lib/reflection-storage.d.ts.map +1 -0
- package/dist/hooks/lib/reflection-storage.js +305 -0
- package/dist/hooks/lib/reflection-storage.js.map +1 -0
- package/dist/hooks/lib/run-self-reflection.d.ts +43 -0
- package/dist/hooks/lib/run-self-reflection.d.ts.map +1 -0
- package/dist/hooks/lib/run-self-reflection.js +203 -0
- package/dist/hooks/lib/run-self-reflection.js.map +1 -0
- package/dist/hooks/lib/types/reflection-types.d.ts +164 -0
- package/dist/hooks/lib/types/reflection-types.d.ts.map +1 -0
- package/dist/hooks/lib/types/reflection-types.js +73 -0
- package/dist/hooks/lib/types/reflection-types.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.d.ts +89 -0
- package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.js +226 -0
- package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.d.ts +60 -0
- package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.js +201 -0
- package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.d.ts +42 -0
- package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.js +123 -0
- package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/reflection-config-loader.d.ts +45 -0
- package/dist/plugins/specweave/lib/hooks/reflection-config-loader.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/reflection-config-loader.js +132 -0
- package/dist/plugins/specweave/lib/hooks/reflection-config-loader.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/reflection-parser.d.ts +33 -0
- package/dist/plugins/specweave/lib/hooks/reflection-parser.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/reflection-parser.js +419 -0
- package/dist/plugins/specweave/lib/hooks/reflection-parser.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.d.ts +56 -0
- package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.js +239 -0
- package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/reflection-storage.d.ts +64 -0
- package/dist/plugins/specweave/lib/hooks/reflection-storage.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/reflection-storage.js +305 -0
- package/dist/plugins/specweave/lib/hooks/reflection-storage.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/run-self-reflection.d.ts +43 -0
- package/dist/plugins/specweave/lib/hooks/run-self-reflection.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/run-self-reflection.js +203 -0
- package/dist/plugins/specweave/lib/hooks/run-self-reflection.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/sync-living-docs.d.ts +27 -0
- package/dist/plugins/specweave/lib/hooks/sync-living-docs.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/sync-living-docs.js +116 -0
- package/dist/plugins/specweave/lib/hooks/sync-living-docs.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/translate-file.d.ts +59 -0
- package/dist/plugins/specweave/lib/hooks/translate-file.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/translate-file.js +350 -0
- package/dist/plugins/specweave/lib/hooks/translate-file.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/translate-living-docs.d.ts +13 -0
- package/dist/plugins/specweave/lib/hooks/translate-living-docs.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/translate-living-docs.js +175 -0
- package/dist/plugins/specweave/lib/hooks/translate-living-docs.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/types/reflection-types.d.ts +164 -0
- package/dist/plugins/specweave/lib/hooks/types/reflection-types.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/types/reflection-types.js +73 -0
- package/dist/plugins/specweave/lib/hooks/types/reflection-types.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/update-tasks-md.d.ts +29 -0
- package/dist/plugins/specweave/lib/hooks/update-tasks-md.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/update-tasks-md.js +203 -0
- package/dist/plugins/specweave/lib/hooks/update-tasks-md.js.map +1 -0
- package/dist/plugins/specweave-ado/lib/ado-board-resolver.d.ts +94 -0
- package/dist/plugins/specweave-ado/lib/ado-board-resolver.d.ts.map +1 -0
- package/dist/plugins/specweave-ado/lib/ado-board-resolver.js +219 -0
- package/dist/plugins/specweave-ado/lib/ado-board-resolver.js.map +1 -0
- package/dist/plugins/specweave-ado/lib/ado-client-v2.d.ts +124 -0
- package/dist/plugins/specweave-ado/lib/ado-client-v2.d.ts.map +1 -0
- package/dist/plugins/specweave-ado/lib/ado-client-v2.js +382 -0
- package/dist/plugins/specweave-ado/lib/ado-client-v2.js.map +1 -0
- package/dist/plugins/specweave-ado/lib/ado-client.d.ts +112 -0
- package/dist/plugins/specweave-ado/lib/ado-client.d.ts.map +1 -0
- package/dist/plugins/specweave-ado/lib/ado-client.js +257 -0
- package/dist/plugins/specweave-ado/lib/ado-client.js.map +1 -0
- package/dist/plugins/specweave-ado/lib/ado-hierarchical-sync.d.ts +40 -0
- package/dist/plugins/specweave-ado/lib/ado-hierarchical-sync.d.ts.map +1 -0
- package/dist/plugins/specweave-ado/lib/ado-hierarchical-sync.js +370 -0
- package/dist/plugins/specweave-ado/lib/ado-hierarchical-sync.js.map +1 -0
- package/dist/plugins/specweave-ado/lib/project-selector.d.ts +42 -0
- package/dist/plugins/specweave-ado/lib/project-selector.d.ts.map +1 -0
- package/dist/plugins/specweave-ado/lib/project-selector.js +211 -0
- package/dist/plugins/specweave-ado/lib/project-selector.js.map +1 -0
- package/dist/plugins/specweave-github/lib/github-board-resolver.d.ts +54 -0
- package/dist/plugins/specweave-github/lib/github-board-resolver.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/github-board-resolver.js +122 -0
- package/dist/plugins/specweave-github/lib/github-board-resolver.js.map +1 -0
- package/dist/plugins/specweave-github/lib/github-client-v2.d.ts +104 -0
- package/dist/plugins/specweave-github/lib/github-client-v2.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/github-client-v2.js +408 -0
- package/dist/plugins/specweave-github/lib/github-client-v2.js.map +1 -0
- package/dist/plugins/specweave-github/lib/github-client.d.ts +10 -0
- package/dist/plugins/specweave-github/lib/github-client.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/github-client.js +24 -0
- package/dist/plugins/specweave-github/lib/github-client.js.map +1 -1
- package/dist/plugins/specweave-github/lib/github-hierarchical-sync.d.ts +29 -0
- package/dist/plugins/specweave-github/lib/github-hierarchical-sync.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/github-hierarchical-sync.js +268 -0
- package/dist/plugins/specweave-github/lib/github-hierarchical-sync.js.map +1 -0
- package/dist/plugins/specweave-github/lib/index.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/index.js.map +1 -1
- package/dist/plugins/specweave-github/lib/repo-selector.d.ts +49 -0
- package/dist/plugins/specweave-github/lib/repo-selector.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/repo-selector.js +216 -0
- package/dist/plugins/specweave-github/lib/repo-selector.js.map +1 -0
- package/dist/plugins/specweave-github/lib/subtask-sync.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/subtask-sync.js.map +1 -1
- package/dist/plugins/specweave-github/lib/task-parser.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/task-parser.js.map +1 -1
- package/dist/plugins/specweave-github/lib/task-sync.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/task-sync.js.map +1 -1
- package/dist/plugins/specweave-github/lib/types.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/types.js.map +1 -1
- package/dist/plugins/specweave-jira/lib/jira-board-resolver.d.ts +50 -0
- package/dist/plugins/specweave-jira/lib/jira-board-resolver.d.ts.map +1 -0
- package/dist/plugins/specweave-jira/lib/jira-board-resolver.js +84 -0
- package/dist/plugins/specweave-jira/lib/jira-board-resolver.js.map +1 -0
- package/dist/plugins/specweave-jira/lib/jira-hierarchical-sync.d.ts +33 -0
- package/dist/plugins/specweave-jira/lib/jira-hierarchical-sync.d.ts.map +1 -0
- package/dist/plugins/specweave-jira/lib/jira-hierarchical-sync.js +206 -0
- package/dist/plugins/specweave-jira/lib/jira-hierarchical-sync.js.map +1 -0
- package/dist/plugins/specweave-jira/lib/project-selector.d.ts +42 -0
- package/dist/plugins/specweave-jira/lib/project-selector.d.ts.map +1 -0
- package/dist/plugins/specweave-jira/lib/project-selector.js +216 -0
- package/dist/plugins/specweave-jira/lib/project-selector.js.map +1 -0
- package/dist/plugins/specweave-jira/lib/reorganization-detector.d.ts +67 -0
- package/dist/plugins/specweave-jira/lib/reorganization-detector.d.ts.map +1 -0
- package/dist/plugins/specweave-jira/lib/reorganization-detector.js +252 -0
- package/dist/plugins/specweave-jira/lib/reorganization-detector.js.map +1 -0
- package/dist/plugins/specweave-jira/lib/setup-wizard.d.ts +29 -0
- package/dist/plugins/specweave-jira/lib/setup-wizard.d.ts.map +1 -0
- package/dist/plugins/specweave-jira/lib/setup-wizard.js +219 -0
- package/dist/plugins/specweave-jira/lib/setup-wizard.js.map +1 -0
- package/dist/src/adapters/adapter-base.d.ts +71 -0
- package/dist/src/adapters/adapter-base.d.ts.map +1 -0
- package/dist/src/adapters/adapter-base.js +139 -0
- package/dist/src/adapters/adapter-base.js.map +1 -0
- package/dist/src/adapters/adapter-interface.d.ts +149 -0
- package/dist/src/adapters/adapter-interface.d.ts.map +1 -0
- package/dist/src/adapters/adapter-interface.js +8 -0
- package/dist/src/adapters/adapter-interface.js.map +1 -0
- package/dist/src/adapters/adapter-loader.d.ts +91 -0
- package/dist/src/adapters/adapter-loader.d.ts.map +1 -0
- package/dist/src/adapters/adapter-loader.js +238 -0
- package/dist/src/adapters/adapter-loader.js.map +1 -0
- package/dist/src/adapters/agents-md-generator.d.ts +48 -0
- package/dist/src/adapters/agents-md-generator.d.ts.map +1 -0
- package/dist/src/adapters/agents-md-generator.js +193 -0
- package/dist/src/adapters/agents-md-generator.js.map +1 -0
- package/dist/src/adapters/claude/adapter.d.ts +128 -0
- package/dist/src/adapters/claude/adapter.d.ts.map +1 -0
- package/dist/src/adapters/claude/adapter.js +415 -0
- package/dist/src/adapters/claude/adapter.js.map +1 -0
- package/dist/src/adapters/claude-md-generator.d.ts +78 -0
- package/dist/src/adapters/claude-md-generator.d.ts.map +1 -0
- package/dist/src/adapters/claude-md-generator.js +307 -0
- package/dist/src/adapters/claude-md-generator.js.map +1 -0
- package/dist/src/adapters/codex/adapter.d.ts +50 -0
- package/dist/src/adapters/codex/adapter.d.ts.map +1 -0
- package/dist/src/adapters/codex/adapter.js +316 -0
- package/dist/src/adapters/codex/adapter.js.map +1 -0
- package/dist/src/adapters/cursor/adapter.d.ts +98 -0
- package/dist/src/adapters/cursor/adapter.d.ts.map +1 -0
- package/dist/src/adapters/cursor/adapter.js +406 -0
- package/dist/src/adapters/cursor/adapter.js.map +1 -0
- package/dist/src/adapters/doc-generator.d.ts +69 -0
- package/dist/src/adapters/doc-generator.d.ts.map +1 -0
- package/dist/src/adapters/doc-generator.js +247 -0
- package/dist/src/adapters/doc-generator.js.map +1 -0
- package/dist/src/adapters/gemini/adapter.d.ts +50 -0
- package/dist/src/adapters/gemini/adapter.d.ts.map +1 -0
- package/dist/src/adapters/gemini/adapter.js +281 -0
- package/dist/src/adapters/gemini/adapter.js.map +1 -0
- package/dist/src/adapters/generic/adapter.d.ts +86 -0
- package/dist/src/adapters/generic/adapter.d.ts.map +1 -0
- package/dist/src/adapters/generic/adapter.js +338 -0
- package/dist/src/adapters/generic/adapter.js.map +1 -0
- package/dist/src/cli/commands/abandon.d.ts +13 -0
- package/dist/src/cli/commands/abandon.d.ts.map +1 -0
- package/dist/src/cli/commands/abandon.js +15 -0
- package/dist/src/cli/commands/abandon.js.map +1 -0
- package/dist/src/cli/commands/import-docs.d.ts +21 -0
- package/dist/src/cli/commands/import-docs.d.ts.map +1 -0
- package/dist/src/cli/commands/import-docs.js +146 -0
- package/dist/src/cli/commands/import-docs.js.map +1 -0
- package/dist/src/cli/commands/init-multiproject.d.ts +11 -0
- package/dist/src/cli/commands/init-multiproject.d.ts.map +1 -0
- package/dist/src/cli/commands/init-multiproject.js +202 -0
- package/dist/src/cli/commands/init-multiproject.js.map +1 -0
- package/dist/src/cli/commands/init.d.ts +9 -0
- package/dist/src/cli/commands/init.d.ts.map +1 -0
- package/dist/src/cli/commands/init.js +1205 -0
- package/dist/src/cli/commands/init.js.map +1 -0
- package/dist/src/cli/commands/install.d.ts +9 -0
- package/dist/src/cli/commands/install.d.ts.map +1 -0
- package/dist/src/cli/commands/install.js +127 -0
- package/dist/src/cli/commands/install.js.map +1 -0
- package/dist/src/cli/commands/list.d.ts +8 -0
- package/dist/src/cli/commands/list.d.ts.map +1 -0
- package/dist/src/cli/commands/list.js +119 -0
- package/dist/src/cli/commands/list.js.map +1 -0
- package/dist/src/cli/commands/migrate-to-multiproject.d.ts +37 -0
- package/dist/src/cli/commands/migrate-to-multiproject.d.ts.map +1 -0
- package/dist/src/cli/commands/migrate-to-multiproject.js +189 -0
- package/dist/src/cli/commands/migrate-to-multiproject.js.map +1 -0
- package/dist/src/cli/commands/migrate-to-profiles.d.ts +25 -0
- package/dist/src/cli/commands/migrate-to-profiles.d.ts.map +1 -0
- package/dist/src/cli/commands/migrate-to-profiles.js +350 -0
- package/dist/src/cli/commands/migrate-to-profiles.js.map +1 -0
- package/dist/src/cli/commands/pause.d.ts +13 -0
- package/dist/src/cli/commands/pause.d.ts.map +1 -0
- package/dist/src/cli/commands/pause.js +15 -0
- package/dist/src/cli/commands/pause.js.map +1 -0
- package/dist/src/cli/commands/qa.d.ts +54 -0
- package/dist/src/cli/commands/qa.d.ts.map +1 -0
- package/dist/src/cli/commands/qa.js +98 -0
- package/dist/src/cli/commands/qa.js.map +1 -0
- package/dist/src/cli/commands/resume.d.ts +12 -0
- package/dist/src/cli/commands/resume.d.ts.map +1 -0
- package/dist/src/cli/commands/resume.js +14 -0
- package/dist/src/cli/commands/resume.js.map +1 -0
- package/dist/src/cli/commands/status.d.ts +12 -0
- package/dist/src/cli/commands/status.d.ts.map +1 -0
- package/dist/src/cli/commands/status.js +23 -0
- package/dist/src/cli/commands/status.js.map +1 -0
- package/dist/src/cli/commands/switch-project.d.ts +13 -0
- package/dist/src/cli/commands/switch-project.d.ts.map +1 -0
- package/dist/src/cli/commands/switch-project.js +91 -0
- package/dist/src/cli/commands/switch-project.js.map +1 -0
- package/dist/src/cli/commands/validate-jira.d.ts +35 -0
- package/dist/src/cli/commands/validate-jira.d.ts.map +1 -0
- package/dist/src/cli/commands/validate-jira.js +112 -0
- package/dist/src/cli/commands/validate-jira.js.map +1 -0
- package/dist/src/cli/commands/validate-plugins.d.ts +41 -0
- package/dist/src/cli/commands/validate-plugins.d.ts.map +1 -0
- package/dist/src/cli/commands/validate-plugins.js +171 -0
- package/dist/src/cli/commands/validate-plugins.js.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/ado.d.ts +57 -0
- package/dist/src/cli/helpers/issue-tracker/ado.d.ts.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/ado.js +243 -0
- package/dist/src/cli/helpers/issue-tracker/ado.js.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/github.d.ts +65 -0
- package/dist/src/cli/helpers/issue-tracker/github.d.ts.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/github.js +426 -0
- package/dist/src/cli/helpers/issue-tracker/github.js.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/index.d.ts +22 -0
- package/dist/src/cli/helpers/issue-tracker/index.d.ts.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/index.js +314 -0
- package/dist/src/cli/helpers/issue-tracker/index.js.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/jira.d.ts +61 -0
- package/dist/src/cli/helpers/issue-tracker/jira.d.ts.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/jira.js +404 -0
- package/dist/src/cli/helpers/issue-tracker/jira.js.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/types.d.ts +107 -0
- package/dist/src/cli/helpers/issue-tracker/types.d.ts.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/types.js +16 -0
- package/dist/src/cli/helpers/issue-tracker/types.js.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/utils.d.ts +112 -0
- package/dist/src/cli/helpers/issue-tracker/utils.d.ts.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/utils.js +247 -0
- package/dist/src/cli/helpers/issue-tracker/utils.js.map +1 -0
- package/dist/src/core/agent-model-manager.d.ts +52 -0
- package/dist/src/core/agent-model-manager.d.ts.map +1 -0
- package/dist/src/core/agent-model-manager.js +120 -0
- package/dist/src/core/agent-model-manager.js.map +1 -0
- package/dist/src/core/brownfield/analyzer.d.ts +86 -0
- package/dist/src/core/brownfield/analyzer.d.ts.map +1 -0
- package/dist/src/core/brownfield/analyzer.js +365 -0
- package/dist/src/core/brownfield/analyzer.js.map +1 -0
- package/dist/src/core/brownfield/importer.d.ts +76 -0
- package/dist/src/core/brownfield/importer.d.ts.map +1 -0
- package/dist/src/core/brownfield/importer.js +287 -0
- package/dist/src/core/brownfield/importer.js.map +1 -0
- package/dist/src/core/config-manager.d.ts +47 -0
- package/dist/src/core/config-manager.d.ts.map +1 -0
- package/dist/src/core/config-manager.js +136 -0
- package/dist/src/core/config-manager.js.map +1 -0
- package/dist/src/core/cost-tracker.d.ts +108 -0
- package/dist/src/core/cost-tracker.d.ts.map +1 -0
- package/dist/src/core/cost-tracker.js +281 -0
- package/dist/src/core/cost-tracker.js.map +1 -0
- package/dist/src/core/credentials-manager.d.ts +107 -0
- package/dist/src/core/credentials-manager.d.ts.map +1 -0
- package/dist/src/core/credentials-manager.js +457 -0
- package/dist/src/core/credentials-manager.js.map +1 -0
- package/dist/src/core/i18n/language-detector.d.ts +29 -0
- package/dist/src/core/i18n/language-detector.d.ts.map +1 -0
- package/dist/src/core/i18n/language-detector.js +143 -0
- package/dist/src/core/i18n/language-detector.js.map +1 -0
- package/dist/src/core/i18n/language-manager.d.ts +101 -0
- package/dist/src/core/i18n/language-manager.d.ts.map +1 -0
- package/dist/src/core/i18n/language-manager.js +232 -0
- package/dist/src/core/i18n/language-manager.js.map +1 -0
- package/dist/src/core/i18n/language-registry.d.ts +44 -0
- package/dist/src/core/i18n/language-registry.d.ts.map +1 -0
- package/dist/src/core/i18n/language-registry.js +234 -0
- package/dist/src/core/i18n/language-registry.js.map +1 -0
- package/dist/src/core/i18n/locale-manager.d.ts +62 -0
- package/dist/src/core/i18n/locale-manager.d.ts.map +1 -0
- package/dist/src/core/i18n/locale-manager.js +137 -0
- package/dist/src/core/i18n/locale-manager.js.map +1 -0
- package/dist/src/core/i18n/system-prompt-injector.d.ts +33 -0
- package/dist/src/core/i18n/system-prompt-injector.d.ts.map +1 -0
- package/dist/src/core/i18n/system-prompt-injector.js +131 -0
- package/dist/src/core/i18n/system-prompt-injector.js.map +1 -0
- package/dist/src/core/i18n/types.d.ts +151 -0
- package/dist/src/core/i18n/types.d.ts.map +1 -0
- package/dist/src/core/i18n/types.js +11 -0
- package/dist/src/core/i18n/types.js.map +1 -0
- package/dist/src/core/increment/limits.d.ts +68 -0
- package/dist/src/core/increment/limits.d.ts.map +1 -0
- package/dist/src/core/increment/limits.js +224 -0
- package/dist/src/core/increment/limits.js.map +1 -0
- package/dist/src/core/increment/metadata-manager.d.ts +114 -0
- package/dist/src/core/increment/metadata-manager.d.ts.map +1 -0
- package/dist/src/core/increment/metadata-manager.js +320 -0
- package/dist/src/core/increment/metadata-manager.js.map +1 -0
- package/dist/src/core/increment/status-commands.d.ts +43 -0
- package/dist/src/core/increment/status-commands.d.ts.map +1 -0
- package/dist/src/core/increment/status-commands.js +277 -0
- package/dist/src/core/increment/status-commands.js.map +1 -0
- package/dist/src/core/increment-status.d.ts +72 -0
- package/dist/src/core/increment-status.d.ts.map +1 -0
- package/dist/src/core/increment-status.js +227 -0
- package/dist/src/core/increment-status.js.map +1 -0
- package/dist/src/core/model-selector.d.ts +57 -0
- package/dist/src/core/model-selector.d.ts.map +1 -0
- package/dist/src/core/model-selector.js +115 -0
- package/dist/src/core/model-selector.js.map +1 -0
- package/dist/src/core/phase-detector.d.ts +62 -0
- package/dist/src/core/phase-detector.d.ts.map +1 -0
- package/dist/src/core/phase-detector.js +229 -0
- package/dist/src/core/phase-detector.js.map +1 -0
- package/dist/src/core/plugin-loader.d.ts +131 -0
- package/dist/src/core/plugin-loader.d.ts.map +1 -0
- package/dist/src/core/plugin-loader.js +421 -0
- package/dist/src/core/plugin-loader.js.map +1 -0
- package/dist/src/core/project-manager.d.ts +127 -0
- package/dist/src/core/project-manager.d.ts.map +1 -0
- package/dist/src/core/project-manager.js +524 -0
- package/dist/src/core/project-manager.js.map +1 -0
- package/dist/src/core/project-structure-detector.d.ts +92 -0
- package/dist/src/core/project-structure-detector.d.ts.map +1 -0
- package/dist/src/core/project-structure-detector.js +289 -0
- package/dist/src/core/project-structure-detector.js.map +1 -0
- package/dist/src/core/qa/qa-runner.d.ts +16 -0
- package/dist/src/core/qa/qa-runner.d.ts.map +1 -0
- package/dist/src/core/qa/qa-runner.js +404 -0
- package/dist/src/core/qa/qa-runner.js.map +1 -0
- package/dist/src/core/qa/quality-gate-decider.d.ts +53 -0
- package/dist/src/core/qa/quality-gate-decider.d.ts.map +1 -0
- package/dist/src/core/qa/quality-gate-decider.js +268 -0
- package/dist/src/core/qa/quality-gate-decider.js.map +1 -0
- package/dist/src/core/qa/risk-calculator.d.ts +126 -0
- package/dist/src/core/qa/risk-calculator.d.ts.map +1 -0
- package/dist/src/core/qa/risk-calculator.js +247 -0
- package/dist/src/core/qa/risk-calculator.js.map +1 -0
- package/dist/src/core/qa/types.d.ts +315 -0
- package/dist/src/core/qa/types.d.ts.map +1 -0
- package/dist/src/core/qa/types.js +8 -0
- package/dist/src/core/qa/types.js.map +1 -0
- package/dist/src/core/rfc-generator-v2.d.ts +149 -0
- package/dist/src/core/rfc-generator-v2.d.ts.map +1 -0
- package/dist/src/core/rfc-generator-v2.js +399 -0
- package/dist/src/core/rfc-generator-v2.js.map +1 -0
- package/dist/src/core/sync/bidirectional-engine.d.ts +110 -0
- package/dist/src/core/sync/bidirectional-engine.d.ts.map +1 -0
- package/dist/src/core/sync/bidirectional-engine.js +356 -0
- package/dist/src/core/sync/bidirectional-engine.js.map +1 -0
- package/dist/src/core/sync/folder-mapper.d.ts +71 -0
- package/dist/src/core/sync/folder-mapper.d.ts.map +1 -0
- package/dist/src/core/sync/folder-mapper.js +168 -0
- package/dist/src/core/sync/folder-mapper.js.map +1 -0
- package/dist/src/core/sync/profile-manager.d.ts +72 -0
- package/dist/src/core/sync/profile-manager.d.ts.map +1 -0
- package/dist/src/core/sync/profile-manager.js +338 -0
- package/dist/src/core/sync/profile-manager.js.map +1 -0
- package/dist/src/core/sync/profile-selector.d.ts +52 -0
- package/dist/src/core/sync/profile-selector.d.ts.map +1 -0
- package/dist/src/core/sync/profile-selector.js +179 -0
- package/dist/src/core/sync/profile-selector.js.map +1 -0
- package/dist/src/core/sync/profile-validator.d.ts +52 -0
- package/dist/src/core/sync/profile-validator.d.ts.map +1 -0
- package/dist/src/core/sync/profile-validator.js +225 -0
- package/dist/src/core/sync/profile-validator.js.map +1 -0
- package/dist/src/core/sync/project-context.d.ts +81 -0
- package/dist/src/core/sync/project-context.d.ts.map +1 -0
- package/dist/src/core/sync/project-context.js +354 -0
- package/dist/src/core/sync/project-context.js.map +1 -0
- package/dist/src/core/sync/rate-limiter.d.ts +116 -0
- package/dist/src/core/sync/rate-limiter.d.ts.map +1 -0
- package/dist/src/core/sync/rate-limiter.js +308 -0
- package/dist/src/core/sync/rate-limiter.js.map +1 -0
- package/dist/src/core/sync/time-range-selector.d.ts +48 -0
- package/dist/src/core/sync/time-range-selector.d.ts.map +1 -0
- package/dist/src/core/sync/time-range-selector.js +224 -0
- package/dist/src/core/sync/time-range-selector.js.map +1 -0
- package/dist/src/core/types/config.d.ts +90 -0
- package/dist/src/core/types/config.d.ts.map +1 -0
- package/dist/src/core/types/config.js +37 -0
- package/dist/src/core/types/config.js.map +1 -0
- package/dist/src/core/types/increment-metadata.d.ts +120 -0
- package/dist/src/core/types/increment-metadata.d.ts.map +1 -0
- package/dist/src/core/types/increment-metadata.js +138 -0
- package/dist/src/core/types/increment-metadata.js.map +1 -0
- package/dist/src/core/types/plugin.d.ts +283 -0
- package/dist/src/core/types/plugin.d.ts.map +1 -0
- package/dist/src/core/types/plugin.js +49 -0
- package/dist/src/core/types/plugin.js.map +1 -0
- package/dist/src/core/types/sync-profile.d.ts +403 -0
- package/dist/src/core/types/sync-profile.d.ts.map +1 -0
- package/dist/src/core/types/sync-profile.js +55 -0
- package/dist/src/core/types/sync-profile.js.map +1 -0
- package/dist/src/hooks/lib/types/reflection-types.d.ts +125 -0
- package/dist/src/hooks/lib/types/reflection-types.d.ts.map +1 -0
- package/dist/src/hooks/lib/types/reflection-types.js +54 -0
- package/dist/src/hooks/lib/types/reflection-types.js.map +1 -0
- package/dist/src/integrations/ado/ado-client.d.ts +127 -0
- package/dist/src/integrations/ado/ado-client.d.ts.map +1 -0
- package/dist/src/integrations/ado/ado-client.js +416 -0
- package/dist/src/integrations/ado/ado-client.js.map +1 -0
- package/dist/src/integrations/jira/jira-client.d.ts +139 -0
- package/dist/src/integrations/jira/jira-client.d.ts.map +1 -0
- package/dist/src/integrations/jira/jira-client.js +386 -0
- package/dist/src/integrations/jira/jira-client.js.map +1 -0
- package/dist/src/integrations/jira/jira-incremental-mapper.d.ts +75 -0
- package/dist/src/integrations/jira/jira-incremental-mapper.d.ts.map +1 -0
- package/dist/src/integrations/jira/jira-incremental-mapper.js +474 -0
- package/dist/src/integrations/jira/jira-incremental-mapper.js.map +1 -0
- package/dist/src/integrations/jira/jira-mapper.d.ts +105 -0
- package/dist/src/integrations/jira/jira-mapper.d.ts.map +1 -0
- package/dist/src/integrations/jira/jira-mapper.js +494 -0
- package/dist/src/integrations/jira/jira-mapper.js.map +1 -0
- package/dist/src/metrics/calculators/change-failure-rate.d.ts +22 -0
- package/dist/src/metrics/calculators/change-failure-rate.d.ts.map +1 -0
- package/dist/src/metrics/calculators/change-failure-rate.js +70 -0
- package/dist/src/metrics/calculators/change-failure-rate.js.map +1 -0
- package/dist/src/metrics/calculators/deployment-frequency.d.ts +20 -0
- package/dist/src/metrics/calculators/deployment-frequency.d.ts.map +1 -0
- package/dist/src/metrics/calculators/deployment-frequency.js +61 -0
- package/dist/src/metrics/calculators/deployment-frequency.js.map +1 -0
- package/dist/src/metrics/calculators/lead-time.d.ts +22 -0
- package/dist/src/metrics/calculators/lead-time.d.ts.map +1 -0
- package/dist/src/metrics/calculators/lead-time.js +82 -0
- package/dist/src/metrics/calculators/lead-time.js.map +1 -0
- package/dist/src/metrics/calculators/mttr.d.ts +21 -0
- package/dist/src/metrics/calculators/mttr.d.ts.map +1 -0
- package/dist/src/metrics/calculators/mttr.js +60 -0
- package/dist/src/metrics/calculators/mttr.js.map +1 -0
- package/dist/src/metrics/dora-calculator.d.ts +28 -0
- package/dist/src/metrics/dora-calculator.d.ts.map +1 -0
- package/dist/src/metrics/dora-calculator.js +117 -0
- package/dist/src/metrics/dora-calculator.js.map +1 -0
- package/dist/src/metrics/github-client.d.ts +51 -0
- package/dist/src/metrics/github-client.d.ts.map +1 -0
- package/dist/src/metrics/github-client.js +133 -0
- package/dist/src/metrics/github-client.js.map +1 -0
- package/dist/src/metrics/report-generator.d.ts +17 -0
- package/dist/src/metrics/report-generator.d.ts.map +1 -0
- package/dist/src/metrics/report-generator.js +403 -0
- package/dist/src/metrics/report-generator.js.map +1 -0
- package/dist/src/metrics/types.d.ts +112 -0
- package/dist/src/metrics/types.d.ts.map +1 -0
- package/dist/src/metrics/types.js +10 -0
- package/dist/src/metrics/types.js.map +1 -0
- package/dist/src/metrics/utils/percentile.d.ts +25 -0
- package/dist/src/metrics/utils/percentile.d.ts.map +1 -0
- package/dist/src/metrics/utils/percentile.js +46 -0
- package/dist/src/metrics/utils/percentile.js.map +1 -0
- package/dist/src/metrics/utils/tier-classifier.d.ts +61 -0
- package/dist/src/metrics/utils/tier-classifier.d.ts.map +1 -0
- package/dist/src/metrics/utils/tier-classifier.js +100 -0
- package/dist/src/metrics/utils/tier-classifier.js.map +1 -0
- package/dist/src/testing/test-generator.d.ts +117 -0
- package/dist/src/testing/test-generator.d.ts.map +1 -0
- package/dist/src/testing/test-generator.js +370 -0
- package/dist/src/testing/test-generator.js.map +1 -0
- package/dist/src/types/cost-tracking.d.ts +43 -0
- package/dist/src/types/cost-tracking.d.ts.map +1 -0
- package/dist/src/types/cost-tracking.js +8 -0
- package/dist/src/types/cost-tracking.js.map +1 -0
- package/dist/src/types/model-selection.d.ts +53 -0
- package/dist/src/types/model-selection.d.ts.map +1 -0
- package/dist/src/types/model-selection.js +12 -0
- package/dist/src/types/model-selection.js.map +1 -0
- package/dist/src/utils/agents-md-compiler.d.ts +68 -0
- package/dist/src/utils/agents-md-compiler.d.ts.map +1 -0
- package/dist/src/utils/agents-md-compiler.js +420 -0
- package/dist/src/utils/agents-md-compiler.js.map +1 -0
- package/dist/src/utils/auth-helpers.d.ts +58 -0
- package/dist/src/utils/auth-helpers.d.ts.map +1 -0
- package/dist/src/utils/auth-helpers.js +108 -0
- package/dist/src/utils/auth-helpers.js.map +1 -0
- package/dist/src/utils/auto-install.d.ts +47 -0
- package/dist/src/utils/auto-install.d.ts.map +1 -0
- package/dist/src/utils/auto-install.js +211 -0
- package/dist/src/utils/auto-install.js.map +1 -0
- package/dist/src/utils/claude-cli-detector.d.ts +75 -0
- package/dist/src/utils/claude-cli-detector.d.ts.map +1 -0
- package/dist/src/utils/claude-cli-detector.js +285 -0
- package/dist/src/utils/claude-cli-detector.js.map +1 -0
- package/dist/src/utils/cost-reporter.d.ts +58 -0
- package/dist/src/utils/cost-reporter.d.ts.map +1 -0
- package/dist/src/utils/cost-reporter.js +224 -0
- package/dist/src/utils/cost-reporter.js.map +1 -0
- package/dist/src/utils/docs-preview/config-generator.d.ts +46 -0
- package/dist/src/utils/docs-preview/config-generator.d.ts.map +1 -0
- package/dist/src/utils/docs-preview/config-generator.js +377 -0
- package/dist/src/utils/docs-preview/config-generator.js.map +1 -0
- package/dist/src/utils/docs-preview/docusaurus-setup.d.ts +38 -0
- package/dist/src/utils/docs-preview/docusaurus-setup.d.ts.map +1 -0
- package/dist/src/utils/docs-preview/docusaurus-setup.js +177 -0
- package/dist/src/utils/docs-preview/docusaurus-setup.js.map +1 -0
- package/dist/src/utils/docs-preview/index.d.ts +7 -0
- package/dist/src/utils/docs-preview/index.d.ts.map +1 -0
- package/dist/src/utils/docs-preview/index.js +7 -0
- package/dist/src/utils/docs-preview/index.js.map +1 -0
- package/dist/src/utils/docs-preview/package-installer.d.ts +42 -0
- package/dist/src/utils/docs-preview/package-installer.d.ts.map +1 -0
- package/dist/src/utils/docs-preview/package-installer.js +182 -0
- package/dist/src/utils/docs-preview/package-installer.js.map +1 -0
- package/dist/src/utils/docs-preview/server-manager.d.ts +30 -0
- package/dist/src/utils/docs-preview/server-manager.d.ts.map +1 -0
- package/dist/src/utils/docs-preview/server-manager.js +212 -0
- package/dist/src/utils/docs-preview/server-manager.js.map +1 -0
- package/dist/src/utils/docs-preview/sidebar-builder.d.ts +32 -0
- package/dist/src/utils/docs-preview/sidebar-builder.d.ts.map +1 -0
- package/dist/src/utils/docs-preview/sidebar-builder.js +202 -0
- package/dist/src/utils/docs-preview/sidebar-builder.js.map +1 -0
- package/dist/src/utils/docs-preview/types.d.ts +57 -0
- package/dist/src/utils/docs-preview/types.d.ts.map +1 -0
- package/dist/src/utils/docs-preview/types.js +2 -0
- package/dist/src/utils/docs-preview/types.js.map +1 -0
- package/dist/src/utils/env-file.d.ts +88 -0
- package/dist/src/utils/env-file.d.ts.map +1 -0
- package/dist/src/utils/env-file.js +180 -0
- package/dist/src/utils/env-file.js.map +1 -0
- package/dist/src/utils/env-multi-project-parser.d.ts +220 -0
- package/dist/src/utils/env-multi-project-parser.d.ts.map +1 -0
- package/dist/src/utils/env-multi-project-parser.js +403 -0
- package/dist/src/utils/env-multi-project-parser.js.map +1 -0
- package/dist/src/utils/esm-helpers.d.ts +50 -0
- package/dist/src/utils/esm-helpers.d.ts.map +1 -0
- package/dist/src/utils/esm-helpers.js +57 -0
- package/dist/src/utils/esm-helpers.js.map +1 -0
- package/dist/src/utils/execFileNoThrow.d.ts +99 -0
- package/dist/src/utils/execFileNoThrow.d.ts.map +1 -0
- package/dist/src/utils/execFileNoThrow.js +137 -0
- package/dist/src/utils/execFileNoThrow.js.map +1 -0
- package/dist/src/utils/external-resource-validator.d.ts +102 -0
- package/dist/src/utils/external-resource-validator.d.ts.map +1 -0
- package/dist/src/utils/external-resource-validator.js +400 -0
- package/dist/src/utils/external-resource-validator.js.map +1 -0
- package/dist/src/utils/generate-skills-index.d.ts +24 -0
- package/dist/src/utils/generate-skills-index.d.ts.map +1 -0
- package/dist/src/utils/generate-skills-index.js +410 -0
- package/dist/src/utils/generate-skills-index.js.map +1 -0
- package/dist/src/utils/model-selection.d.ts +75 -0
- package/dist/src/utils/model-selection.d.ts.map +1 -0
- package/dist/src/utils/model-selection.js +204 -0
- package/dist/src/utils/model-selection.js.map +1 -0
- package/dist/src/utils/plugin-validator.d.ts +161 -0
- package/dist/src/utils/plugin-validator.d.ts.map +1 -0
- package/dist/src/utils/plugin-validator.js +558 -0
- package/dist/src/utils/plugin-validator.js.map +1 -0
- package/dist/src/utils/pricing-constants.d.ts +70 -0
- package/dist/src/utils/pricing-constants.d.ts.map +1 -0
- package/dist/src/utils/pricing-constants.js +71 -0
- package/dist/src/utils/pricing-constants.js.map +1 -0
- package/dist/src/utils/project-detection.d.ts +141 -0
- package/dist/src/utils/project-detection.d.ts.map +1 -0
- package/dist/src/utils/project-detection.js +321 -0
- package/dist/src/utils/project-detection.js.map +1 -0
- package/dist/src/utils/string-utils.d.ts +40 -0
- package/dist/src/utils/string-utils.d.ts.map +1 -0
- package/dist/src/utils/string-utils.js +58 -0
- package/dist/src/utils/string-utils.js.map +1 -0
- package/dist/src/utils/translation.d.ts +187 -0
- package/dist/src/utils/translation.d.ts.map +1 -0
- package/dist/src/utils/translation.js +414 -0
- package/dist/src/utils/translation.js.map +1 -0
- package/dist/utils/plugin-validator.d.ts.map +1 -1
- package/dist/utils/plugin-validator.js +0 -7
- package/dist/utils/plugin-validator.js.map +1 -1
- package/package.json +3 -2
- package/plugins/specweave/agents/reflective-reviewer/AGENT.md +535 -0
- package/plugins/specweave/hooks/post-first-increment.sh +10 -28
- package/plugins/specweave/hooks/post-increment-planning.sh +261 -1
- package/plugins/specweave/hooks/post-task-completion.sh +26 -0
- package/plugins/specweave/lib/hooks/git-diff-analyzer.ts +269 -0
- package/plugins/specweave/lib/hooks/invoke-translator-skill.ts +264 -0
- package/plugins/specweave/lib/hooks/prepare-reflection-context.ts +178 -0
- package/plugins/specweave/lib/hooks/reflection-config-loader.ts +156 -0
- package/plugins/specweave/lib/hooks/reflection-parser.ts +484 -0
- package/plugins/specweave/lib/hooks/reflection-prompt-builder.ts +306 -0
- package/plugins/specweave/lib/hooks/reflection-storage.ts +369 -0
- package/plugins/specweave/lib/hooks/run-self-reflection.ts +258 -0
- package/plugins/specweave/lib/hooks/sync-living-docs.ts +147 -0
- package/plugins/specweave/lib/hooks/translate-file.ts +428 -0
- package/plugins/specweave/lib/hooks/translate-living-docs.ts +224 -0
- package/plugins/specweave/lib/hooks/types/reflection-types.ts +193 -0
- package/plugins/specweave/lib/hooks/update-tasks-md.ts +256 -0
- package/plugins/specweave/skills/SKILLS-INDEX.md +2 -2
- package/plugins/specweave/skills/increment-planner/SKILL.md +8 -0
- package/plugins/specweave/skills/plugin-expert/SKILL.md +0 -4
- package/plugins/specweave/skills/plugin-installer/SKILL.md +19 -21
- package/plugins/specweave/skills/plugin-validator/SKILL.md +0 -1
- package/plugins/specweave/skills/project-kickstarter/SKILL.md +3 -3
- package/plugins/specweave/skills/spec-generator/SKILL.md +3 -3
- package/plugins/specweave-docs-preview/.claude-plugin/plugin.json +21 -0
- package/plugins/specweave-docs-preview/commands/build.md +489 -0
- package/plugins/specweave-docs-preview/commands/preview.md +330 -0
- package/plugins/specweave-docs-preview/skills/docs-preview/SKILL.md +386 -0
- package/plugins/specweave/skills/translator/SKILL.md.bak +0 -172
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/core/types/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IAEb,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;IAEpB,uCAAuC;IACvC,OAAO,EAAE,MAAM,CAAC;IAEhB,yCAAyC;IACzC,MAAM,EAAE;QACN,kBAAkB;QAClB,IAAI,EAAE,MAAM,CAAC;QAEb,8BAA8B;QAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf,4BAA4B;QAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;IAEF,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,iCAAiC;IACjC,UAAU,CAAC,EAAE;QACX,oCAAoC;QACpC,IAAI,EAAE,MAAM,CAAC;QAEb,qBAAqB;QACrB,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;IAEF,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAEpB,yEAAyE;IACzE,YAAY,CAAC,EAAE;QACb,oCAAoC;QACpC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;KACpB,CAAC;IAEF,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,4DAA4D;IAC5D,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAEhC,sFAAsF;IACtF,QAA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CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,kBAAkB;IAClB,IAAI,EAAE,MAAM,CAAC;IAEb,4CAA4C;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK;IAG3B,UAAU,CAAC,EAAE,MAAM;IACnB,IAAI,CAAC,EAAE,MAAM;gBAFpB,OAAO,EAAE,MAAM,EACR,UAAU,CAAC,EAAE,MAAM,EACnB,IAAI,CAAC,EAAE,MAAM;CAKvB;AAED;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,WAAW;gBAC1C,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM;CAIjD;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,WAAW;gBACtC,UAAU,EAAE,MAAM;CAI/B;AAED;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,WAAW;gBACxC,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM;CAIjD"}
|
|
@@ -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"}
|
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sync Profile Types for Multi-Project External Integration
|
|
3
|
+
*
|
|
4
|
+
* Supports multiple projects per provider (GitHub, JIRA, ADO, etc.)
|
|
5
|
+
* with time range filtering and rate limiting protection.
|
|
6
|
+
*/
|
|
7
|
+
export type SyncProvider = 'github' | 'jira' | 'ado';
|
|
8
|
+
/**
|
|
9
|
+
* Sync Strategy (v0.10.0+)
|
|
10
|
+
*
|
|
11
|
+
* Determines how work is organized and synced:
|
|
12
|
+
* - simple: One container (project/repo), no filtering (default, backward compatible)
|
|
13
|
+
* - filtered: Multiple containers + sub-organizations (boards/etc) + filters (NEW)
|
|
14
|
+
* - custom: Raw query (JQL/GraphQL/WIQL) for power users (NEW)
|
|
15
|
+
*/
|
|
16
|
+
export type SyncStrategy = 'simple' | 'filtered' | 'custom';
|
|
17
|
+
export type JiraStrategy = 'project-per-team' | 'shared-project-with-components';
|
|
18
|
+
/**
|
|
19
|
+
* Container filters (provider-specific)
|
|
20
|
+
*
|
|
21
|
+
* Filters applied to a specific container (project/repo) to narrow down synced items.
|
|
22
|
+
*/
|
|
23
|
+
export interface SyncContainerFilters {
|
|
24
|
+
/** Include items with these labels */
|
|
25
|
+
includeLabels?: string[];
|
|
26
|
+
/** Exclude items with these labels */
|
|
27
|
+
excludeLabels?: string[];
|
|
28
|
+
/** Filter by assignees (email or ID) */
|
|
29
|
+
assignees?: string[];
|
|
30
|
+
/** Filter by status categories */
|
|
31
|
+
statusCategories?: string[];
|
|
32
|
+
/** Filter by components */
|
|
33
|
+
components?: string[];
|
|
34
|
+
/** Filter by sprints */
|
|
35
|
+
sprints?: string[];
|
|
36
|
+
/** Filter by issue types (Epic, Story, Task, Bug) */
|
|
37
|
+
issueTypes?: string[];
|
|
38
|
+
/** Filter by milestones */
|
|
39
|
+
milestones?: string[];
|
|
40
|
+
/** Filter by states */
|
|
41
|
+
states?: ('open' | 'closed')[];
|
|
42
|
+
/** Filter by area paths */
|
|
43
|
+
areaPaths?: string[];
|
|
44
|
+
/** Filter by iteration paths */
|
|
45
|
+
iterationPaths?: string[];
|
|
46
|
+
/** Filter by work item types (Epic, Feature, User Story, Bug) */
|
|
47
|
+
workItemTypes?: string[];
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Container definition (project, repo, etc.)
|
|
51
|
+
*
|
|
52
|
+
* Represents a single container (Jira project, GitHub repo, ADO project) with optional sub-organizations.
|
|
53
|
+
*/
|
|
54
|
+
export interface SyncContainer {
|
|
55
|
+
/**
|
|
56
|
+
* Container ID
|
|
57
|
+
* - Jira: Project key (e.g., "PROJECT-A")
|
|
58
|
+
* - GitHub: Repository (e.g., "owner/repo-name")
|
|
59
|
+
* - ADO: Project name (e.g., "Platform")
|
|
60
|
+
*/
|
|
61
|
+
id: string;
|
|
62
|
+
/**
|
|
63
|
+
* Sub-organizations within the container
|
|
64
|
+
* - Jira: Board names (e.g., ["Team Alpha Board", "Team Beta Board"])
|
|
65
|
+
* - GitHub: Project board titles (e.g., ["Frontend Board", "UI Components"])
|
|
66
|
+
* - ADO: Team board names (e.g., ["API Team Board"])
|
|
67
|
+
*/
|
|
68
|
+
subOrganizations?: string[];
|
|
69
|
+
/**
|
|
70
|
+
* Filters applied to this container
|
|
71
|
+
*/
|
|
72
|
+
filters?: SyncContainerFilters;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* GitHub Configuration (Extended for Hierarchical Sync)
|
|
76
|
+
*
|
|
77
|
+
* - Simple strategy: owner + repo (backward compatible)
|
|
78
|
+
* - Filtered strategy: containers array with multiple repos
|
|
79
|
+
* - Custom strategy: customQuery (GitHub search syntax)
|
|
80
|
+
*/
|
|
81
|
+
export interface GitHubConfig {
|
|
82
|
+
owner?: string;
|
|
83
|
+
repo?: string;
|
|
84
|
+
containers?: SyncContainer[];
|
|
85
|
+
customQuery?: string;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Jira Configuration (Extended for Hierarchical Sync)
|
|
89
|
+
*
|
|
90
|
+
* Supports:
|
|
91
|
+
* - Simple strategy: Single project (projectKey) - backward compatible
|
|
92
|
+
* - Filtered strategy: Multiple projects + boards (containers) - NEW in v0.10.0
|
|
93
|
+
* - Custom strategy: Raw JQL query (customQuery) - NEW in v0.10.0
|
|
94
|
+
*
|
|
95
|
+
* Backward Compatibility:
|
|
96
|
+
* - Old config: { domain, projectKey } - still works (simple strategy)
|
|
97
|
+
* - Old config: { domain, strategy, projects/components } - still works (deprecated, use filtered)
|
|
98
|
+
* - New config: { domain, containers: [{id, subOrganizations, filters}] } - hierarchical
|
|
99
|
+
*/
|
|
100
|
+
export interface JiraConfig {
|
|
101
|
+
domain: string;
|
|
102
|
+
issueType?: 'Epic' | 'Story' | 'Task';
|
|
103
|
+
/**
|
|
104
|
+
* @deprecated Use SyncStrategy instead (simple/filtered/custom)
|
|
105
|
+
* Old field: How teams are organized in Jira
|
|
106
|
+
*/
|
|
107
|
+
strategy?: JiraStrategy;
|
|
108
|
+
/**
|
|
109
|
+
* @deprecated Use containers array instead
|
|
110
|
+
* Strategy 1: Multiple projects (one per team)
|
|
111
|
+
*/
|
|
112
|
+
projects?: string[];
|
|
113
|
+
/**
|
|
114
|
+
* @deprecated Use containers array instead
|
|
115
|
+
* Strategy 2: Single project key OR shared project
|
|
116
|
+
*/
|
|
117
|
+
projectKey?: string;
|
|
118
|
+
/**
|
|
119
|
+
* @deprecated Use filters in SyncContainer instead
|
|
120
|
+
* Components for filtering
|
|
121
|
+
*/
|
|
122
|
+
components?: string[];
|
|
123
|
+
/**
|
|
124
|
+
* Filtered strategy: Multiple projects + boards
|
|
125
|
+
* Example: [
|
|
126
|
+
* {id: "PROJECT-A", subOrganizations: ["Board 1", "Board 2"], filters: {...}},
|
|
127
|
+
* {id: "PROJECT-B", subOrganizations: ["Board 3"]}
|
|
128
|
+
* ]
|
|
129
|
+
*/
|
|
130
|
+
containers?: SyncContainer[];
|
|
131
|
+
/**
|
|
132
|
+
* Custom strategy: Raw JQL query
|
|
133
|
+
* Example: "project IN (PROJECT-A, PROJECT-B) AND labels IN (feature)"
|
|
134
|
+
*/
|
|
135
|
+
customQuery?: string;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Azure DevOps Configuration (Extended for Hierarchical Sync)
|
|
139
|
+
*
|
|
140
|
+
* Supports:
|
|
141
|
+
* - Simple strategy: Single project (project) - backward compatible
|
|
142
|
+
* - Filtered strategy: Multiple projects + area paths (containers) - NEW in v0.10.0
|
|
143
|
+
* - Custom strategy: Raw WIQL query (customQuery) - NEW in v0.10.0
|
|
144
|
+
*
|
|
145
|
+
* Backward Compatibility:
|
|
146
|
+
* - Old config: { organization, project, teams, areaPaths } - still works
|
|
147
|
+
* - New config: { organization, containers: [{id, filters: {areaPaths}}] } - hierarchical
|
|
148
|
+
*/
|
|
149
|
+
export interface AdoConfig {
|
|
150
|
+
organization: string;
|
|
151
|
+
/**
|
|
152
|
+
* @deprecated Use containers array instead
|
|
153
|
+
* Single project name
|
|
154
|
+
*/
|
|
155
|
+
project?: string;
|
|
156
|
+
/**
|
|
157
|
+
* @deprecated Use filters in SyncContainer instead
|
|
158
|
+
* Teams within the project
|
|
159
|
+
*/
|
|
160
|
+
teams?: string[];
|
|
161
|
+
/**
|
|
162
|
+
* @deprecated Use filters in SyncContainer instead
|
|
163
|
+
* Area paths per team
|
|
164
|
+
*/
|
|
165
|
+
areaPaths?: Record<string, string>;
|
|
166
|
+
/**
|
|
167
|
+
* @deprecated Use filters in SyncContainer instead
|
|
168
|
+
*/
|
|
169
|
+
iterationPath?: string;
|
|
170
|
+
workItemType?: 'Epic' | 'Feature' | 'User Story';
|
|
171
|
+
/**
|
|
172
|
+
* Filtered strategy: Multiple projects + area paths
|
|
173
|
+
* Example: [
|
|
174
|
+
* {id: "Platform", filters: {areaPaths: ["Platform\\Core"], workItemTypes: ["User Story"]}},
|
|
175
|
+
* {id: "Services", filters: {areaPaths: ["Services\\API"]}}
|
|
176
|
+
* ]
|
|
177
|
+
*/
|
|
178
|
+
containers?: SyncContainer[];
|
|
179
|
+
/**
|
|
180
|
+
* Custom strategy: Raw WIQL query
|
|
181
|
+
* Example: "SELECT * FROM WorkItems WHERE [System.TeamProject] = 'Platform' AND [System.AreaPath] UNDER 'Platform\\Core'"
|
|
182
|
+
*/
|
|
183
|
+
customQuery?: string;
|
|
184
|
+
}
|
|
185
|
+
export type ProviderConfig = GitHubConfig | JiraConfig | AdoConfig;
|
|
186
|
+
export type TimeRangePreset = '1W' | '2W' | '1M' | '3M' | '6M' | '1Y' | 'ALL';
|
|
187
|
+
export interface TimeRangeConfig {
|
|
188
|
+
/** Preset time range */
|
|
189
|
+
preset?: TimeRangePreset;
|
|
190
|
+
/** Custom date range */
|
|
191
|
+
custom?: {
|
|
192
|
+
start: string;
|
|
193
|
+
end?: string;
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
export interface TimeRangeEstimate {
|
|
197
|
+
/** Estimated work items to sync */
|
|
198
|
+
items: number;
|
|
199
|
+
/** Estimated API requests */
|
|
200
|
+
apiCalls: number;
|
|
201
|
+
/** Estimated sync duration in minutes */
|
|
202
|
+
durationMinutes: number;
|
|
203
|
+
/** Rate limit impact level */
|
|
204
|
+
rateLimitImpact: 'low' | 'medium' | 'high' | 'critical';
|
|
205
|
+
}
|
|
206
|
+
export interface RateLimitConfig {
|
|
207
|
+
/** Maximum items to sync in one operation */
|
|
208
|
+
maxItemsPerSync: number;
|
|
209
|
+
/** Warn user when exceeding this threshold */
|
|
210
|
+
warnThreshold: number;
|
|
211
|
+
}
|
|
212
|
+
export interface RateLimitStatus {
|
|
213
|
+
/** Remaining requests in current window */
|
|
214
|
+
remaining: number;
|
|
215
|
+
/** Total limit per window */
|
|
216
|
+
limit: number;
|
|
217
|
+
/** When the rate limit resets (ISO timestamp) */
|
|
218
|
+
resetAt: string;
|
|
219
|
+
/** Percentage of limit used */
|
|
220
|
+
percentUsed: number;
|
|
221
|
+
}
|
|
222
|
+
export interface ProviderRateLimits {
|
|
223
|
+
github: {
|
|
224
|
+
limit: 5000;
|
|
225
|
+
window: '1h';
|
|
226
|
+
thresholds: {
|
|
227
|
+
low: 250;
|
|
228
|
+
medium: 1000;
|
|
229
|
+
high: 2500;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
jira: {
|
|
233
|
+
limit: 100;
|
|
234
|
+
window: '1m';
|
|
235
|
+
thresholds: {
|
|
236
|
+
low: 25;
|
|
237
|
+
medium: 50;
|
|
238
|
+
high: 75;
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
ado: {
|
|
242
|
+
limit: 200;
|
|
243
|
+
window: '5m';
|
|
244
|
+
thresholds: {
|
|
245
|
+
low: 50;
|
|
246
|
+
medium: 100;
|
|
247
|
+
high: 150;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
export interface SyncProfile {
|
|
252
|
+
/** Provider type */
|
|
253
|
+
provider: SyncProvider;
|
|
254
|
+
/** Human-readable name */
|
|
255
|
+
displayName: string;
|
|
256
|
+
/** Optional description */
|
|
257
|
+
description?: string;
|
|
258
|
+
/**
|
|
259
|
+
* Sync strategy (v0.10.0+)
|
|
260
|
+
* - simple: One container (default, backward compatible)
|
|
261
|
+
* - filtered: Multiple containers + boards (NEW)
|
|
262
|
+
* - custom: Raw query (NEW)
|
|
263
|
+
*
|
|
264
|
+
* If not specified, defaults to 'simple' for backward compatibility
|
|
265
|
+
*/
|
|
266
|
+
strategy?: SyncStrategy;
|
|
267
|
+
/** Provider-specific configuration */
|
|
268
|
+
config: ProviderConfig;
|
|
269
|
+
/** Time range configuration */
|
|
270
|
+
timeRange: {
|
|
271
|
+
/** Default time range for this profile */
|
|
272
|
+
default: TimeRangePreset;
|
|
273
|
+
/** Maximum allowed time range */
|
|
274
|
+
max: TimeRangePreset;
|
|
275
|
+
};
|
|
276
|
+
/** Rate limiting configuration */
|
|
277
|
+
rateLimits?: RateLimitConfig;
|
|
278
|
+
/** Project context (for smart detection) */
|
|
279
|
+
projectContext?: {
|
|
280
|
+
/** Project name (e.g., "SpecWeave", "Client A Mobile") */
|
|
281
|
+
name: string;
|
|
282
|
+
/** Project description */
|
|
283
|
+
description?: string;
|
|
284
|
+
/** Keywords for auto-detection */
|
|
285
|
+
keywords?: string[];
|
|
286
|
+
/** Team/organization name */
|
|
287
|
+
team?: string;
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
export interface SyncProfiles {
|
|
291
|
+
/** Active profile (default selection) */
|
|
292
|
+
activeProfile?: string;
|
|
293
|
+
/** All available profiles */
|
|
294
|
+
profiles: Record<string, SyncProfile>;
|
|
295
|
+
}
|
|
296
|
+
export interface IncrementSyncMetadata {
|
|
297
|
+
/** Which profile this increment uses */
|
|
298
|
+
profile: string;
|
|
299
|
+
/** External issue/work item number */
|
|
300
|
+
issueNumber?: number;
|
|
301
|
+
/** External issue/work item key (for JIRA) */
|
|
302
|
+
issueKey?: string;
|
|
303
|
+
/** Direct URL to external issue */
|
|
304
|
+
issueUrl?: string;
|
|
305
|
+
/** Time range used for this sync */
|
|
306
|
+
timeRange: TimeRangePreset | 'custom';
|
|
307
|
+
/** Custom time range (if timeRange === 'custom') */
|
|
308
|
+
customTimeRange?: {
|
|
309
|
+
start: string;
|
|
310
|
+
end?: string;
|
|
311
|
+
};
|
|
312
|
+
/** When sync was created */
|
|
313
|
+
createdAt: string;
|
|
314
|
+
/** Last successful sync timestamp */
|
|
315
|
+
lastSyncAt?: string;
|
|
316
|
+
/** Sync status */
|
|
317
|
+
status?: 'active' | 'paused' | 'failed' | 'completed';
|
|
318
|
+
/** Last sync error (if any) */
|
|
319
|
+
lastError?: {
|
|
320
|
+
message: string;
|
|
321
|
+
timestamp: string;
|
|
322
|
+
rateLimited?: boolean;
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
export interface ProjectContext {
|
|
326
|
+
/** Unique project identifier (kebab-case) */
|
|
327
|
+
id: string;
|
|
328
|
+
/** Project name */
|
|
329
|
+
name: string;
|
|
330
|
+
/** Project description */
|
|
331
|
+
description: string;
|
|
332
|
+
/** Team/organization */
|
|
333
|
+
team?: string;
|
|
334
|
+
/** Keywords for auto-detection */
|
|
335
|
+
keywords: string[];
|
|
336
|
+
/** Default sync profile for this project */
|
|
337
|
+
defaultSyncProfile?: string;
|
|
338
|
+
/** Project-specific specs folder */
|
|
339
|
+
specsFolder: string;
|
|
340
|
+
/** Related increments (for tracking) */
|
|
341
|
+
increments?: string[];
|
|
342
|
+
}
|
|
343
|
+
export interface SyncConfiguration {
|
|
344
|
+
/** Active profile */
|
|
345
|
+
activeProfile?: string;
|
|
346
|
+
/** All sync profiles */
|
|
347
|
+
profiles: Record<string, SyncProfile>;
|
|
348
|
+
/** Project contexts */
|
|
349
|
+
projects?: Record<string, ProjectContext>;
|
|
350
|
+
/** Global settings */
|
|
351
|
+
settings?: {
|
|
352
|
+
/** Auto-detect project from increment description */
|
|
353
|
+
autoDetectProject?: boolean;
|
|
354
|
+
/** Default time range for new syncs */
|
|
355
|
+
defaultTimeRange?: TimeRangePreset;
|
|
356
|
+
/** Enable rate limit protection */
|
|
357
|
+
rateLimitProtection?: boolean;
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
export interface ProfileValidationResult {
|
|
361
|
+
valid: boolean;
|
|
362
|
+
errors: string[];
|
|
363
|
+
warnings?: string[];
|
|
364
|
+
}
|
|
365
|
+
export interface ProjectDetectionResult {
|
|
366
|
+
/** Matched project (if any) */
|
|
367
|
+
project?: ProjectContext;
|
|
368
|
+
/** Confidence score (0-1) */
|
|
369
|
+
confidence: number;
|
|
370
|
+
/** Matched keywords */
|
|
371
|
+
matchedKeywords: string[];
|
|
372
|
+
/** Suggested sync profile */
|
|
373
|
+
suggestedProfile?: string;
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* Check if profile uses simple strategy (one container, backward compatible)
|
|
377
|
+
*/
|
|
378
|
+
export declare function isSimpleStrategy(profile: SyncProfile): boolean;
|
|
379
|
+
/**
|
|
380
|
+
* Check if profile uses filtered strategy (multiple containers + boards)
|
|
381
|
+
*/
|
|
382
|
+
export declare function isFilteredStrategy(profile: SyncProfile): boolean;
|
|
383
|
+
/**
|
|
384
|
+
* Check if profile uses custom strategy (raw query)
|
|
385
|
+
*/
|
|
386
|
+
export declare function isCustomStrategy(profile: SyncProfile): boolean;
|
|
387
|
+
/**
|
|
388
|
+
* Check if config has hierarchical containers (Jira)
|
|
389
|
+
*/
|
|
390
|
+
export declare function hasJiraContainers(config: JiraConfig): boolean;
|
|
391
|
+
/**
|
|
392
|
+
* Check if config has hierarchical containers (GitHub)
|
|
393
|
+
*/
|
|
394
|
+
export declare function hasGitHubContainers(config: GitHubConfig): boolean;
|
|
395
|
+
/**
|
|
396
|
+
* Check if config has hierarchical containers (ADO)
|
|
397
|
+
*/
|
|
398
|
+
export declare function hasAdoContainers(config: AdoConfig): boolean;
|
|
399
|
+
/**
|
|
400
|
+
* Get effective strategy (defaults to 'simple' if not specified)
|
|
401
|
+
*/
|
|
402
|
+
export declare function getEffectiveStrategy(profile: SyncProfile): SyncStrategy;
|
|
403
|
+
//# sourceMappingURL=sync-profile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync-profile.d.ts","sourceRoot":"","sources":["../../../../src/core/types/sync-profile.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,MAAM,GAAG,KAAK,CAAC;AAErD;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;AAG5D,MAAM,MAAM,YAAY,GAAG,kBAAkB,GAAG,gCAAgC,CAAC;AAMjF;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IAEnC,sCAAsC;IACtC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzB,sCAAsC;IACtC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzB,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAErB,kCAAkC;IAClC,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAG5B,2BAA2B;IAC3B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IAEtB,wBAAwB;IACxB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnB,qDAAqD;IACrD,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IAGtB,2BAA2B;IAC3B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IAEtB,uBAAuB;IACvB,MAAM,CAAC,EAAE,CAAC,MAAM,GAAG,QAAQ,CAAC,EAAE,CAAC;IAG/B,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAErB,gCAAgC;IAChC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B,iEAAiE;IACjE,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,EAAE,EAAE,MAAM,CA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AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAE3D;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,YAAY,CAEvE"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sync Profile Types for Multi-Project External Integration
|
|
3
|
+
*
|
|
4
|
+
* Supports multiple projects per provider (GitHub, JIRA, ADO, etc.)
|
|
5
|
+
* with time range filtering and rate limiting protection.
|
|
6
|
+
*/
|
|
7
|
+
// ============================================================================
|
|
8
|
+
// Type Guard Functions (v0.10.0+)
|
|
9
|
+
// ============================================================================
|
|
10
|
+
/**
|
|
11
|
+
* Check if profile uses simple strategy (one container, backward compatible)
|
|
12
|
+
*/
|
|
13
|
+
export function isSimpleStrategy(profile) {
|
|
14
|
+
// If strategy not specified, default to simple (backward compatibility)
|
|
15
|
+
if (!profile.strategy)
|
|
16
|
+
return true;
|
|
17
|
+
return profile.strategy === 'simple';
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Check if profile uses filtered strategy (multiple containers + boards)
|
|
21
|
+
*/
|
|
22
|
+
export function isFilteredStrategy(profile) {
|
|
23
|
+
return profile.strategy === 'filtered';
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if profile uses custom strategy (raw query)
|
|
27
|
+
*/
|
|
28
|
+
export function isCustomStrategy(profile) {
|
|
29
|
+
return profile.strategy === 'custom';
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if config has hierarchical containers (Jira)
|
|
33
|
+
*/
|
|
34
|
+
export function hasJiraContainers(config) {
|
|
35
|
+
return !!(config.containers && config.containers.length > 0);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if config has hierarchical containers (GitHub)
|
|
39
|
+
*/
|
|
40
|
+
export function hasGitHubContainers(config) {
|
|
41
|
+
return !!(config.containers && config.containers.length > 0);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if config has hierarchical containers (ADO)
|
|
45
|
+
*/
|
|
46
|
+
export function hasAdoContainers(config) {
|
|
47
|
+
return !!(config.containers && config.containers.length > 0);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Get effective strategy (defaults to 'simple' if not specified)
|
|
51
|
+
*/
|
|
52
|
+
export function getEffectiveStrategy(profile) {
|
|
53
|
+
return profile.strategy || 'simple';
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=sync-profile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync-profile.js","sourceRoot":"","sources":["../../../../src/core/types/sync-profile.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAwgBH,+EAA+E;AAC/E,kCAAkC;AAClC,+EAA+E;AAE/E;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAoB;IACnD,wEAAwE;IACxE,IAAI,CAAC,OAAO,CAAC,QAAQ;QAAE,OAAO,IAAI,CAAC;IACnC,OAAO,OAAO,CAAC,QAAQ,KAAK,QAAQ,CAAC;AACvC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAoB;IACrD,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU,CAAC;AACzC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAoB;IACnD,OAAO,OAAO,CAAC,QAAQ,KAAK,QAAQ,CAAC;AACvC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,MAAkB;IAClD,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,IAAI,MAAM,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,MAAoB;IACtD,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,IAAI,MAAM,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,MAAiB;IAChD,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,IAAI,MAAM,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAoB;IACvD,OAAO,OAAO,CAAC,QAAQ,IAAI,QAAQ,CAAC;AACtC,CAAC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions for AI Self-Reflection System
|
|
3
|
+
*/
|
|
4
|
+
export declare enum ReflectionMode {
|
|
5
|
+
AUTO = "auto",// Automatic reflection after each task
|
|
6
|
+
MANUAL = "manual",// Manual trigger only
|
|
7
|
+
DISABLED = "disabled"
|
|
8
|
+
}
|
|
9
|
+
export declare enum ReflectionDepth {
|
|
10
|
+
QUICK = "quick",// Fast, surface-level analysis (~5s, ~$0.005)
|
|
11
|
+
STANDARD = "standard",// Balanced analysis (~20s, ~$0.01)
|
|
12
|
+
DEEP = "deep"
|
|
13
|
+
}
|
|
14
|
+
export declare enum ReflectionModel {
|
|
15
|
+
HAIKU = "haiku",// Claude 3.5 Haiku (~$0.01/task)
|
|
16
|
+
SONNET = "sonnet",// Claude 3.5 Sonnet (~$0.05/task)
|
|
17
|
+
OPUS = "opus"
|
|
18
|
+
}
|
|
19
|
+
export declare enum IssueSeverity {
|
|
20
|
+
CRITICAL = "CRITICAL",// Must fix immediately
|
|
21
|
+
HIGH = "HIGH",// Should fix before release
|
|
22
|
+
MEDIUM = "MEDIUM",// Should fix soon
|
|
23
|
+
LOW = "LOW"
|
|
24
|
+
}
|
|
25
|
+
export declare enum IssueCategory {
|
|
26
|
+
SECURITY = "SECURITY",
|
|
27
|
+
QUALITY = "QUALITY",
|
|
28
|
+
TESTING = "TESTING",
|
|
29
|
+
PERFORMANCE = "PERFORMANCE",
|
|
30
|
+
TECHNICAL_DEBT = "TECHNICAL_DEBT"
|
|
31
|
+
}
|
|
32
|
+
export interface ReflectionConfig {
|
|
33
|
+
enabled: boolean;
|
|
34
|
+
mode: ReflectionMode;
|
|
35
|
+
depth: ReflectionDepth;
|
|
36
|
+
model: ReflectionModel;
|
|
37
|
+
categories: {
|
|
38
|
+
security: boolean;
|
|
39
|
+
quality: boolean;
|
|
40
|
+
testing: boolean;
|
|
41
|
+
performance: boolean;
|
|
42
|
+
technicalDebt: boolean;
|
|
43
|
+
};
|
|
44
|
+
criticalThreshold: IssueSeverity;
|
|
45
|
+
storeReflections: boolean;
|
|
46
|
+
autoCreateFollowUpTasks: boolean;
|
|
47
|
+
soundNotifications: boolean;
|
|
48
|
+
}
|
|
49
|
+
export declare const DEFAULT_REFLECTION_CONFIG: ReflectionConfig;
|
|
50
|
+
export interface GitDiffInfo {
|
|
51
|
+
file: string;
|
|
52
|
+
linesAdded: number;
|
|
53
|
+
linesRemoved: number;
|
|
54
|
+
content: string;
|
|
55
|
+
}
|
|
56
|
+
export interface ReflectionIssue {
|
|
57
|
+
severity: IssueSeverity;
|
|
58
|
+
category: IssueCategory;
|
|
59
|
+
description: string;
|
|
60
|
+
impact?: string;
|
|
61
|
+
recommendation?: string;
|
|
62
|
+
location?: {
|
|
63
|
+
file: string;
|
|
64
|
+
line?: number;
|
|
65
|
+
column?: number;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export interface LessonLearned {
|
|
69
|
+
whatWentWell: string[];
|
|
70
|
+
whatCouldImprove: string[];
|
|
71
|
+
forNextTime: string[];
|
|
72
|
+
}
|
|
73
|
+
export interface ReflectionMetrics {
|
|
74
|
+
codeQuality?: number;
|
|
75
|
+
security?: number;
|
|
76
|
+
testCoverage?: number;
|
|
77
|
+
technicalDebt?: 'LOW' | 'MEDIUM' | 'HIGH';
|
|
78
|
+
performance?: 'POOR' | 'FAIR' | 'GOOD' | 'EXCELLENT';
|
|
79
|
+
}
|
|
80
|
+
export interface ReflectionResult {
|
|
81
|
+
taskName: string;
|
|
82
|
+
completed: string;
|
|
83
|
+
duration?: string;
|
|
84
|
+
filesModified: {
|
|
85
|
+
count: number;
|
|
86
|
+
linesAdded: number;
|
|
87
|
+
linesRemoved: number;
|
|
88
|
+
};
|
|
89
|
+
accomplishments: string[];
|
|
90
|
+
strengths: string[];
|
|
91
|
+
issues: ReflectionIssue[];
|
|
92
|
+
recommendedActions: {
|
|
93
|
+
priority1: string[];
|
|
94
|
+
priority2: string[];
|
|
95
|
+
priority3: string[];
|
|
96
|
+
};
|
|
97
|
+
lessonsLearned: LessonLearned;
|
|
98
|
+
metrics: ReflectionMetrics;
|
|
99
|
+
metadata: {
|
|
100
|
+
model: ReflectionModel;
|
|
101
|
+
reflectionTime: number;
|
|
102
|
+
estimatedCost: number;
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
export interface ReflectionContext {
|
|
106
|
+
incrementId: string;
|
|
107
|
+
taskId: string;
|
|
108
|
+
modifiedFiles: GitDiffInfo[];
|
|
109
|
+
config: ReflectionConfig;
|
|
110
|
+
}
|
|
111
|
+
export interface ReflectionError {
|
|
112
|
+
message: string;
|
|
113
|
+
code: string;
|
|
114
|
+
details?: any;
|
|
115
|
+
}
|
|
116
|
+
export interface ReflectionExecutionResult {
|
|
117
|
+
success: boolean;
|
|
118
|
+
result?: ReflectionResult;
|
|
119
|
+
error?: ReflectionError;
|
|
120
|
+
}
|
|
121
|
+
export interface ValidationResult {
|
|
122
|
+
valid: boolean;
|
|
123
|
+
errors: string[];
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=reflection-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reflection-types.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/lib/types/reflection-types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,oBAAY,cAAc;IACxB,IAAI,SAAS,CAAQ,uCAAuC;IAC5D,MAAM,WAAW,CAAI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