specweave 0.12.6 → 0.13.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.md +199 -46
- package/bin/specweave.js +12 -0
- package/dist/cli/commands/check-discipline.d.ts +16 -0
- package/dist/cli/commands/check-discipline.d.ts.map +1 -0
- package/dist/cli/commands/check-discipline.js +79 -0
- package/dist/cli/commands/check-discipline.js.map +1 -0
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +80 -330
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/helpers/issue-tracker/index.d.ts.map +1 -1
- package/dist/cli/helpers/issue-tracker/index.js +130 -0
- package/dist/cli/helpers/issue-tracker/index.js.map +1 -1
- package/dist/cli/helpers/issue-tracker/types.d.ts +1 -0
- package/dist/cli/helpers/issue-tracker/types.d.ts.map +1 -1
- package/dist/cli/helpers/issue-tracker/types.js.map +1 -1
- package/dist/core/increment/discipline-checker.d.ts +60 -0
- package/dist/core/increment/discipline-checker.d.ts.map +1 -0
- package/dist/core/increment/discipline-checker.js +274 -0
- package/dist/core/increment/discipline-checker.js.map +1 -0
- package/dist/core/increment/metadata-validator.d.ts +33 -0
- package/dist/core/increment/metadata-validator.d.ts.map +1 -0
- package/dist/core/increment/metadata-validator.js +147 -0
- package/dist/core/increment/metadata-validator.js.map +1 -0
- package/dist/core/increment/types.d.ts +88 -0
- package/dist/core/increment/types.d.ts.map +1 -0
- package/dist/core/increment/types.js +8 -0
- package/dist/core/increment/types.js.map +1 -0
- package/dist/core/qa/qa-runner.d.ts.map +1 -1
- package/dist/core/qa/qa-runner.js +22 -4
- package/dist/core/qa/qa-runner.js.map +1 -1
- 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 +144 -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/ado-spec-sync.d.ts +100 -0
- package/dist/plugins/specweave-ado/lib/ado-spec-sync.d.ts.map +1 -0
- package/dist/plugins/specweave-ado/lib/ado-spec-sync.js +471 -0
- package/dist/plugins/specweave-ado/lib/ado-spec-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/cli-sync-increment-changes.d.ts +12 -0
- package/dist/plugins/specweave-github/lib/cli-sync-increment-changes.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/cli-sync-increment-changes.js +28 -0
- package/dist/plugins/specweave-github/lib/cli-sync-increment-changes.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 +96 -0
- package/dist/plugins/specweave-github/lib/github-client.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/github-client.js +299 -0
- package/dist/plugins/specweave-github/lib/github-client.js.map +1 -0
- 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/github-issue-updater.d.ts +61 -0
- package/dist/plugins/specweave-github/lib/github-issue-updater.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/github-issue-updater.js +327 -0
- package/dist/plugins/specweave-github/lib/github-issue-updater.js.map +1 -0
- package/dist/plugins/specweave-github/lib/github-spec-sync.d.ts +108 -0
- package/dist/plugins/specweave-github/lib/github-spec-sync.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/github-spec-sync.js +505 -0
- package/dist/plugins/specweave-github/lib/github-spec-sync.js.map +1 -0
- package/dist/plugins/specweave-github/lib/github-sync-bidirectional.d.ts +36 -0
- package/dist/plugins/specweave-github/lib/github-sync-bidirectional.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/github-sync-bidirectional.js +228 -0
- package/dist/plugins/specweave-github/lib/github-sync-bidirectional.js.map +1 -0
- package/dist/plugins/specweave-github/lib/github-sync-increment-changes.d.ts +18 -0
- package/dist/plugins/specweave-github/lib/github-sync-increment-changes.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/github-sync-increment-changes.js +287 -0
- package/dist/plugins/specweave-github/lib/github-sync-increment-changes.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/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 +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/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/jira-spec-sync.d.ts +105 -0
- package/dist/plugins/specweave-jira/lib/jira-spec-sync.d.ts.map +1 -0
- package/dist/plugins/specweave-jira/lib/jira-spec-sync.js +456 -0
- package/dist/plugins/specweave-jira/lib/jira-spec-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 +1444 -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 +108 -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/specs/spec-metadata-manager.d.ts +70 -0
- package/dist/src/core/specs/spec-metadata-manager.d.ts.map +1 -0
- package/dist/src/core/specs/spec-metadata-manager.js +371 -0
- package/dist/src/core/specs/spec-metadata-manager.js.map +1 -0
- package/dist/src/core/specs/spec-parser.d.ts +66 -0
- package/dist/src/core/specs/spec-parser.d.ts.map +1 -0
- package/dist/src/core/specs/spec-parser.js +276 -0
- package/dist/src/core/specs/spec-parser.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 +44 -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/spec-metadata.d.ts +229 -0
- package/dist/src/core/types/spec-metadata.d.ts.map +1 -0
- package/dist/src/core/types/spec-metadata.js +14 -0
- package/dist/src/core/types/spec-metadata.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/git-diff-analyzer.d.ts +89 -0
- package/dist/src/hooks/lib/git-diff-analyzer.d.ts.map +1 -0
- package/dist/src/hooks/lib/git-diff-analyzer.js +226 -0
- package/dist/src/hooks/lib/git-diff-analyzer.js.map +1 -0
- package/dist/src/hooks/lib/invoke-translator-skill.d.ts +60 -0
- package/dist/src/hooks/lib/invoke-translator-skill.d.ts.map +1 -0
- package/dist/src/hooks/lib/invoke-translator-skill.js +201 -0
- package/dist/src/hooks/lib/invoke-translator-skill.js.map +1 -0
- package/dist/src/hooks/lib/prepare-reflection-context.d.ts +42 -0
- package/dist/src/hooks/lib/prepare-reflection-context.d.ts.map +1 -0
- package/dist/src/hooks/lib/prepare-reflection-context.js +123 -0
- package/dist/src/hooks/lib/prepare-reflection-context.js.map +1 -0
- package/dist/src/hooks/lib/reflection-config-loader.d.ts +45 -0
- package/dist/src/hooks/lib/reflection-config-loader.d.ts.map +1 -0
- package/dist/src/hooks/lib/reflection-config-loader.js +132 -0
- package/dist/src/hooks/lib/reflection-config-loader.js.map +1 -0
- package/dist/src/hooks/lib/reflection-parser.d.ts +33 -0
- package/dist/src/hooks/lib/reflection-parser.d.ts.map +1 -0
- package/dist/src/hooks/lib/reflection-parser.js +419 -0
- package/dist/src/hooks/lib/reflection-parser.js.map +1 -0
- package/dist/src/hooks/lib/reflection-prompt-builder.d.ts +56 -0
- package/dist/src/hooks/lib/reflection-prompt-builder.d.ts.map +1 -0
- package/dist/src/hooks/lib/reflection-prompt-builder.js +239 -0
- package/dist/src/hooks/lib/reflection-prompt-builder.js.map +1 -0
- package/dist/src/hooks/lib/reflection-storage.d.ts +64 -0
- package/dist/src/hooks/lib/reflection-storage.d.ts.map +1 -0
- package/dist/src/hooks/lib/reflection-storage.js +305 -0
- package/dist/src/hooks/lib/reflection-storage.js.map +1 -0
- package/dist/src/hooks/lib/run-self-reflection.d.ts +43 -0
- package/dist/src/hooks/lib/run-self-reflection.d.ts.map +1 -0
- package/dist/src/hooks/lib/run-self-reflection.js +203 -0
- package/dist/src/hooks/lib/run-self-reflection.js.map +1 -0
- package/dist/src/hooks/lib/sync-living-docs.d.ts +27 -0
- package/dist/src/hooks/lib/sync-living-docs.d.ts.map +1 -0
- package/dist/src/hooks/lib/sync-living-docs.js +116 -0
- package/dist/src/hooks/lib/sync-living-docs.js.map +1 -0
- package/dist/src/hooks/lib/translate-file.d.ts +59 -0
- package/dist/src/hooks/lib/translate-file.d.ts.map +1 -0
- package/dist/src/hooks/lib/translate-file.js +350 -0
- package/dist/src/hooks/lib/translate-file.js.map +1 -0
- package/dist/src/hooks/lib/translate-living-docs.d.ts +13 -0
- package/dist/src/hooks/lib/translate-living-docs.d.ts.map +1 -0
- package/dist/src/hooks/lib/translate-living-docs.js +175 -0
- package/dist/src/hooks/lib/translate-living-docs.js.map +1 -0
- package/dist/src/hooks/lib/types/reflection-types.d.ts +164 -0
- package/dist/src/hooks/lib/types/reflection-types.d.ts.map +1 -0
- package/dist/src/hooks/lib/types/reflection-types.js +73 -0
- package/dist/src/hooks/lib/types/reflection-types.js.map +1 -0
- package/dist/src/hooks/lib/update-tasks-md.d.ts +29 -0
- package/dist/src/hooks/lib/update-tasks-md.d.ts.map +1 -0
- package/dist/src/hooks/lib/update-tasks-md.js +203 -0
- package/dist/src/hooks/lib/update-tasks-md.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 +442 -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/package.json +4 -3
- package/plugins/specweave/.claude-plugin/plugin.json +2 -1
- package/plugins/specweave/agents/pm/AGENT.md +8 -38
- package/plugins/specweave/commands/specweave-increment.md +28 -48
- package/plugins/specweave/hooks/README.md +289 -92
- package/plugins/specweave/hooks/hooks.json +10 -0
- package/plugins/specweave/hooks/post-increment-completion.sh +83 -0
- package/plugins/specweave/hooks/post-increment-planning.sh +2 -2
- package/plugins/specweave/hooks/post-task-completion.sh +20 -141
- package/plugins/specweave/hooks/user-prompt-submit.sh +142 -0
- package/plugins/specweave/lib/hooks/git-diff-analyzer.d.js +0 -0
- package/plugins/specweave/lib/hooks/git-diff-analyzer.d.ts +89 -0
- package/plugins/specweave/lib/hooks/git-diff-analyzer.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/git-diff-analyzer.js +226 -0
- package/plugins/specweave/lib/hooks/git-diff-analyzer.js.map +1 -0
- package/plugins/specweave/lib/hooks/invoke-translator-skill.d.js +0 -0
- package/plugins/specweave/lib/hooks/invoke-translator-skill.d.ts +60 -0
- package/plugins/specweave/lib/hooks/invoke-translator-skill.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/invoke-translator-skill.js +201 -0
- package/plugins/specweave/lib/hooks/invoke-translator-skill.js.map +1 -0
- package/plugins/specweave/lib/hooks/prepare-reflection-context.d.js +0 -0
- package/plugins/specweave/lib/hooks/prepare-reflection-context.d.ts +42 -0
- package/plugins/specweave/lib/hooks/prepare-reflection-context.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/prepare-reflection-context.js +123 -0
- package/plugins/specweave/lib/hooks/prepare-reflection-context.js.map +1 -0
- package/plugins/specweave/lib/hooks/reflection-config-loader.d.js +0 -0
- package/plugins/specweave/lib/hooks/reflection-config-loader.d.ts +45 -0
- package/plugins/specweave/lib/hooks/reflection-config-loader.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/reflection-config-loader.js +132 -0
- package/plugins/specweave/lib/hooks/reflection-config-loader.js.map +1 -0
- package/plugins/specweave/lib/hooks/reflection-parser.d.js +0 -0
- package/plugins/specweave/lib/hooks/reflection-parser.d.ts +33 -0
- package/plugins/specweave/lib/hooks/reflection-parser.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/reflection-parser.js +419 -0
- package/plugins/specweave/lib/hooks/reflection-parser.js.map +1 -0
- package/plugins/specweave/lib/hooks/reflection-prompt-builder.d.js +0 -0
- package/plugins/specweave/lib/hooks/reflection-prompt-builder.d.ts +56 -0
- package/plugins/specweave/lib/hooks/reflection-prompt-builder.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/reflection-prompt-builder.js +239 -0
- package/plugins/specweave/lib/hooks/reflection-prompt-builder.js.map +1 -0
- package/plugins/specweave/lib/hooks/reflection-storage.d.js +0 -0
- package/plugins/specweave/lib/hooks/reflection-storage.d.ts +64 -0
- package/plugins/specweave/lib/hooks/reflection-storage.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/reflection-storage.js +305 -0
- package/plugins/specweave/lib/hooks/reflection-storage.js.map +1 -0
- package/plugins/specweave/lib/hooks/run-self-reflection.d.js +0 -0
- package/plugins/specweave/lib/hooks/run-self-reflection.d.ts +43 -0
- package/plugins/specweave/lib/hooks/run-self-reflection.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/run-self-reflection.js +203 -0
- package/plugins/specweave/lib/hooks/run-self-reflection.js.map +1 -0
- package/plugins/specweave/lib/hooks/sync-living-docs.d.js +1 -0
- package/plugins/specweave/lib/hooks/sync-living-docs.d.ts +27 -0
- package/plugins/specweave/lib/hooks/sync-living-docs.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/sync-living-docs.js +144 -0
- package/plugins/specweave/lib/hooks/sync-living-docs.js.map +1 -0
- package/plugins/specweave/lib/hooks/translate-file.d.js +0 -0
- package/plugins/specweave/lib/hooks/translate-file.d.ts +59 -0
- package/plugins/specweave/lib/hooks/translate-file.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/translate-file.js +350 -0
- package/plugins/specweave/lib/hooks/translate-file.js.map +1 -0
- package/plugins/specweave/lib/hooks/translate-living-docs.d.js +0 -0
- package/plugins/specweave/lib/hooks/translate-living-docs.d.ts +13 -0
- package/plugins/specweave/lib/hooks/translate-living-docs.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/translate-living-docs.js +175 -0
- package/plugins/specweave/lib/hooks/translate-living-docs.js.map +1 -0
- package/plugins/specweave/lib/hooks/types/reflection-types.d.js +0 -0
- package/plugins/specweave/lib/hooks/types/reflection-types.d.ts +164 -0
- package/plugins/specweave/lib/hooks/types/reflection-types.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/types/reflection-types.js +73 -0
- package/plugins/specweave/lib/hooks/types/reflection-types.js.map +1 -0
- package/plugins/specweave/lib/hooks/update-tasks-md.d.js +1 -0
- package/plugins/specweave/lib/hooks/update-tasks-md.d.ts +29 -0
- package/plugins/specweave/lib/hooks/update-tasks-md.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/update-tasks-md.js +203 -0
- package/plugins/specweave/lib/hooks/update-tasks-md.js.map +1 -0
- package/plugins/specweave-ado/.claude-plugin/plugin.json +2 -1
- package/plugins/specweave-ado/hooks/README.md +201 -0
- package/plugins/specweave-ado/hooks/hooks.json +15 -0
- package/plugins/specweave-ado/hooks/post-task-completion.sh +150 -0
- package/plugins/specweave-ado/lib/ado-board-resolver.d.js +0 -0
- package/plugins/specweave-ado/lib/ado-board-resolver.d.ts +94 -0
- package/plugins/specweave-ado/lib/ado-board-resolver.d.ts.map +1 -0
- package/plugins/specweave-ado/lib/ado-board-resolver.js +219 -0
- package/plugins/specweave-ado/lib/ado-board-resolver.js.map +1 -0
- package/plugins/specweave-ado/lib/ado-client-v2.d.js +0 -0
- package/plugins/specweave-ado/lib/ado-client-v2.d.ts +124 -0
- package/plugins/specweave-ado/lib/ado-client-v2.d.ts.map +1 -0
- package/plugins/specweave-ado/lib/ado-client-v2.js +435 -0
- package/plugins/specweave-ado/lib/ado-client-v2.js.map +1 -0
- package/plugins/specweave-ado/lib/ado-client-v2.ts +134 -10
- package/plugins/specweave-ado/lib/ado-client.d.js +4 -0
- package/plugins/specweave-ado/lib/ado-client.d.ts +112 -0
- package/plugins/specweave-ado/lib/ado-client.d.ts.map +1 -0
- package/plugins/specweave-ado/lib/ado-client.js +248 -0
- package/plugins/specweave-ado/lib/ado-client.js.map +1 -0
- package/plugins/specweave-ado/lib/ado-client.ts +19 -3
- package/plugins/specweave-ado/lib/ado-hierarchical-sync.d.js +0 -0
- package/plugins/specweave-ado/lib/ado-hierarchical-sync.d.ts +40 -0
- package/plugins/specweave-ado/lib/ado-hierarchical-sync.d.ts.map +1 -0
- package/plugins/specweave-ado/lib/ado-hierarchical-sync.js +370 -0
- package/plugins/specweave-ado/lib/ado-hierarchical-sync.js.map +1 -0
- package/plugins/specweave-ado/lib/ado-spec-sync.d.js +0 -0
- package/plugins/specweave-ado/lib/ado-spec-sync.d.ts +100 -0
- package/plugins/specweave-ado/lib/ado-spec-sync.d.ts.map +1 -0
- package/plugins/specweave-ado/lib/ado-spec-sync.js +471 -0
- package/plugins/specweave-ado/lib/ado-spec-sync.js.map +1 -0
- package/plugins/specweave-ado/lib/project-selector.d.js +0 -0
- package/plugins/specweave-github/.claude-plugin/plugin.json +2 -1
- package/plugins/specweave-github/hooks/README.md +280 -0
- package/plugins/specweave-github/hooks/hooks.json +15 -0
- package/plugins/specweave-github/hooks/post-task-completion.sh +241 -0
- package/plugins/specweave-github/lib/cli-sync-increment-changes.d.js +1 -0
- package/plugins/specweave-github/lib/cli-sync-increment-changes.d.ts +12 -0
- package/plugins/specweave-github/lib/cli-sync-increment-changes.d.ts.map +1 -0
- package/plugins/specweave-github/lib/cli-sync-increment-changes.js +28 -0
- package/plugins/specweave-github/lib/cli-sync-increment-changes.js.map +1 -0
- package/plugins/specweave-github/lib/github-board-resolver.d.js +0 -0
- package/plugins/specweave-github/lib/github-board-resolver.d.ts +54 -0
- package/plugins/specweave-github/lib/github-board-resolver.d.ts.map +1 -0
- package/plugins/specweave-github/lib/github-board-resolver.js +122 -0
- package/plugins/specweave-github/lib/github-board-resolver.js.map +1 -0
- package/plugins/specweave-github/lib/github-client-v2.d.js +0 -0
- package/plugins/specweave-github/lib/github-client-v2.d.ts +104 -0
- package/plugins/specweave-github/lib/github-client-v2.d.ts.map +1 -0
- package/plugins/specweave-github/lib/github-client-v2.js +408 -0
- package/plugins/specweave-github/lib/github-client-v2.js.map +1 -0
- package/plugins/specweave-github/lib/github-client.d.js +0 -0
- package/plugins/specweave-github/lib/github-client.d.ts +96 -0
- package/plugins/specweave-github/lib/github-client.d.ts.map +1 -0
- package/plugins/specweave-github/lib/github-client.js +299 -0
- package/plugins/specweave-github/lib/github-client.js.map +1 -0
- package/plugins/specweave-github/lib/github-hierarchical-sync.d.js +0 -0
- package/plugins/specweave-github/lib/github-hierarchical-sync.d.ts +29 -0
- package/plugins/specweave-github/lib/github-hierarchical-sync.d.ts.map +1 -0
- package/plugins/specweave-github/lib/github-hierarchical-sync.js +268 -0
- package/plugins/specweave-github/lib/github-hierarchical-sync.js.map +1 -0
- package/plugins/specweave-github/lib/github-issue-updater.d.js +0 -0
- package/plugins/specweave-github/lib/github-issue-updater.d.ts +61 -0
- package/plugins/specweave-github/lib/github-issue-updater.d.ts.map +1 -0
- package/plugins/specweave-github/lib/github-issue-updater.js +327 -0
- package/plugins/specweave-github/lib/github-issue-updater.js.map +1 -0
- package/plugins/specweave-github/lib/github-spec-sync.d.js +0 -0
- package/plugins/specweave-github/lib/github-spec-sync.d.ts +108 -0
- package/plugins/specweave-github/lib/github-spec-sync.d.ts.map +1 -0
- package/plugins/specweave-github/lib/github-spec-sync.js +505 -0
- package/plugins/specweave-github/lib/github-spec-sync.js.map +1 -0
- package/plugins/specweave-github/lib/github-sync-bidirectional.d.js +0 -0
- package/plugins/specweave-github/lib/github-sync-bidirectional.d.ts +36 -0
- package/plugins/specweave-github/lib/github-sync-bidirectional.d.ts.map +1 -0
- package/plugins/specweave-github/lib/github-sync-bidirectional.js +228 -0
- package/plugins/specweave-github/lib/github-sync-bidirectional.js.map +1 -0
- package/plugins/specweave-github/lib/github-sync-increment-changes.d.js +0 -0
- package/plugins/specweave-github/lib/github-sync-increment-changes.d.ts +18 -0
- package/plugins/specweave-github/lib/github-sync-increment-changes.d.ts.map +1 -0
- package/plugins/specweave-github/lib/github-sync-increment-changes.js +287 -0
- package/plugins/specweave-github/lib/github-sync-increment-changes.js.map +1 -0
- package/plugins/specweave-github/lib/index.d.js +11 -0
- package/plugins/specweave-github/lib/index.d.ts +10 -0
- package/plugins/specweave-github/lib/index.d.ts.map +1 -0
- package/plugins/specweave-github/lib/index.js +10 -0
- package/plugins/specweave-github/lib/index.js.map +1 -0
- package/plugins/specweave-github/lib/repo-selector.d.js +0 -0
- package/plugins/specweave-github/lib/repo-selector.d.ts +49 -0
- package/plugins/specweave-github/lib/repo-selector.d.ts.map +1 -0
- package/plugins/specweave-github/lib/repo-selector.js +216 -0
- package/plugins/specweave-github/lib/repo-selector.js.map +1 -0
- package/plugins/specweave-github/lib/subtask-sync.d.js +0 -0
- package/plugins/specweave-github/lib/subtask-sync.d.ts +51 -0
- package/plugins/specweave-github/lib/subtask-sync.d.ts.map +1 -0
- package/plugins/specweave-github/lib/subtask-sync.js +147 -0
- package/plugins/specweave-github/lib/subtask-sync.js.map +1 -0
- package/plugins/specweave-github/lib/task-parser.d.js +0 -0
- package/plugins/specweave-github/lib/task-parser.d.ts +37 -0
- package/plugins/specweave-github/lib/task-parser.d.ts.map +1 -0
- package/plugins/specweave-github/lib/task-parser.js +211 -0
- package/plugins/specweave-github/lib/task-parser.js.map +1 -0
- package/plugins/specweave-github/lib/task-sync.d.js +0 -0
- package/plugins/specweave-github/lib/task-sync.d.ts +51 -0
- package/plugins/specweave-github/lib/task-sync.d.ts.map +1 -0
- package/plugins/specweave-github/lib/task-sync.js +332 -0
- package/plugins/specweave-github/lib/task-sync.js.map +1 -0
- package/plugins/specweave-github/lib/types.d.js +0 -0
- package/plugins/specweave-github/lib/types.d.ts +80 -0
- package/plugins/specweave-github/lib/types.d.ts.map +1 -0
- package/plugins/specweave-github/lib/types.js +5 -0
- package/plugins/specweave-github/lib/types.js.map +1 -0
- package/plugins/specweave-jira/.claude-plugin/plugin.json +2 -1
- package/plugins/specweave-jira/hooks/README.md +201 -0
- package/plugins/specweave-jira/hooks/hooks.json +15 -0
- package/plugins/specweave-jira/hooks/post-task-completion.sh +150 -0
- package/plugins/specweave-jira/lib/jira-board-resolver.d.js +0 -0
- package/plugins/specweave-jira/lib/jira-board-resolver.d.ts +50 -0
- package/plugins/specweave-jira/lib/jira-board-resolver.d.ts.map +1 -0
- package/plugins/specweave-jira/lib/jira-board-resolver.js +84 -0
- package/plugins/specweave-jira/lib/jira-board-resolver.js.map +1 -0
- package/plugins/specweave-jira/lib/jira-hierarchical-sync.d.js +0 -0
- package/plugins/specweave-jira/lib/jira-hierarchical-sync.d.ts +33 -0
- package/plugins/specweave-jira/lib/jira-hierarchical-sync.d.ts.map +1 -0
- package/plugins/specweave-jira/lib/jira-hierarchical-sync.js +206 -0
- package/plugins/specweave-jira/lib/jira-hierarchical-sync.js.map +1 -0
- package/plugins/specweave-jira/lib/jira-spec-sync.d.js +0 -0
- package/plugins/specweave-jira/lib/jira-spec-sync.d.ts +105 -0
- package/plugins/specweave-jira/lib/jira-spec-sync.d.ts.map +1 -0
- package/plugins/specweave-jira/lib/jira-spec-sync.js +456 -0
- package/plugins/specweave-jira/lib/jira-spec-sync.js.map +1 -0
- package/plugins/specweave-jira/lib/project-selector.d.js +0 -0
- package/plugins/specweave-jira/lib/project-selector.d.ts +42 -0
- package/plugins/specweave-jira/lib/project-selector.d.ts.map +1 -0
- package/plugins/specweave-jira/lib/project-selector.js +216 -0
- package/plugins/specweave-jira/lib/project-selector.js.map +1 -0
- package/plugins/specweave-jira/lib/reorganization-detector.d.js +0 -0
- package/plugins/specweave-jira/lib/reorganization-detector.d.ts +67 -0
- package/plugins/specweave-jira/lib/reorganization-detector.d.ts.map +1 -0
- package/plugins/specweave-jira/lib/reorganization-detector.js +252 -0
- package/plugins/specweave-jira/lib/reorganization-detector.js.map +1 -0
- package/plugins/specweave-jira/lib/setup-wizard.d.js +4 -0
- package/plugins/specweave-jira/lib/setup-wizard.d.ts +29 -0
- package/plugins/specweave-jira/lib/setup-wizard.d.ts.map +1 -0
- package/plugins/specweave-jira/lib/setup-wizard.js +219 -0
- package/plugins/specweave-jira/lib/setup-wizard.js.map +1 -0
- package/src/templates/CLAUDE.md.template +41 -0
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Quality Gate Decider - PASS/CONCERNS/FAIL decision logic
|
|
3
|
+
*
|
|
4
|
+
* @module qa/quality-gate-decider
|
|
5
|
+
* @since v0.8.0
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Default quality gate thresholds (BMAD pattern)
|
|
9
|
+
*/
|
|
10
|
+
export const DEFAULT_THRESHOLDS = {
|
|
11
|
+
fail: {
|
|
12
|
+
riskScore: 9.0, // Risk >= 9.0 → FAIL
|
|
13
|
+
testCoverage: 60, // Coverage < 60% → FAIL
|
|
14
|
+
specQuality: 50, // Spec score < 50 → FAIL
|
|
15
|
+
criticalVulnerabilities: 1, // Critical vulns >= 1 → FAIL
|
|
16
|
+
},
|
|
17
|
+
concerns: {
|
|
18
|
+
riskScore: 6.0, // Risk >= 6.0 → CONCERNS
|
|
19
|
+
testCoverage: 80, // Coverage < 80% → CONCERNS
|
|
20
|
+
specQuality: 70, // Spec score < 70 → CONCERNS
|
|
21
|
+
highVulnerabilities: 1, // High vulns >= 1 → CONCERNS
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
export class QualityGateDecider {
|
|
25
|
+
constructor(thresholds = DEFAULT_THRESHOLDS) {
|
|
26
|
+
this.thresholds = thresholds;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Main decision logic - determine PASS/CONCERNS/FAIL
|
|
30
|
+
*
|
|
31
|
+
* @param assessment - Quality assessment result from AI judge
|
|
32
|
+
* @param testCoverage - Optional test coverage result
|
|
33
|
+
* @param securityAudit - Optional security audit result
|
|
34
|
+
* @returns Quality gate result with decision and issues
|
|
35
|
+
*/
|
|
36
|
+
decide(assessment, testCoverage, securityAudit) {
|
|
37
|
+
const blockers = [];
|
|
38
|
+
const concerns = [];
|
|
39
|
+
const recommendations = [];
|
|
40
|
+
// Check 1: Risk Assessment (BMAD pattern)
|
|
41
|
+
if (assessment.risk_assessment) {
|
|
42
|
+
this.assessRisks(assessment.risk_assessment, blockers, concerns);
|
|
43
|
+
}
|
|
44
|
+
// Check 2: Test Coverage
|
|
45
|
+
if (testCoverage) {
|
|
46
|
+
this.assessTestCoverage(testCoverage, blockers, concerns);
|
|
47
|
+
}
|
|
48
|
+
// Check 3: Spec Quality
|
|
49
|
+
this.assessSpecQuality(assessment, blockers, concerns, recommendations);
|
|
50
|
+
// Check 4: Security Vulnerabilities
|
|
51
|
+
if (securityAudit) {
|
|
52
|
+
this.assessSecurity(securityAudit, blockers, concerns);
|
|
53
|
+
}
|
|
54
|
+
// Make final decision
|
|
55
|
+
const { decision, reasoning } = this.makeDecision(blockers, concerns);
|
|
56
|
+
return {
|
|
57
|
+
decision,
|
|
58
|
+
blockers,
|
|
59
|
+
concerns,
|
|
60
|
+
recommendations,
|
|
61
|
+
reasoning,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Assess risks and categorize into blockers/concerns
|
|
66
|
+
*/
|
|
67
|
+
assessRisks(riskAssessment, blockers, concerns) {
|
|
68
|
+
const overallRisk = riskAssessment.overall_risk_score;
|
|
69
|
+
// Check overall risk score first
|
|
70
|
+
if (overallRisk >= this.thresholds.fail.riskScore) {
|
|
71
|
+
// Find all critical risks (score >= 9.0)
|
|
72
|
+
const criticalRisks = riskAssessment.risks.filter((r) => r.score >= this.thresholds.fail.riskScore);
|
|
73
|
+
for (const risk of criticalRisks) {
|
|
74
|
+
blockers.push({
|
|
75
|
+
type: 'risk',
|
|
76
|
+
severity: 'critical',
|
|
77
|
+
title: `CRITICAL RISK: ${risk.title}`,
|
|
78
|
+
description: `${risk.description} (Score: ${risk.score.toFixed(1)}/10)`,
|
|
79
|
+
mitigation: risk.mitigation,
|
|
80
|
+
location: risk.location,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
else if (overallRisk >= this.thresholds.concerns.riskScore) {
|
|
85
|
+
// Find all high risks (score 6.0-8.9)
|
|
86
|
+
const highRisks = riskAssessment.risks.filter((r) => r.score >= this.thresholds.concerns.riskScore &&
|
|
87
|
+
r.score < this.thresholds.fail.riskScore);
|
|
88
|
+
for (const risk of highRisks) {
|
|
89
|
+
concerns.push({
|
|
90
|
+
type: 'risk',
|
|
91
|
+
severity: 'high',
|
|
92
|
+
title: `HIGH RISK: ${risk.title}`,
|
|
93
|
+
description: `${risk.description} (Score: ${risk.score.toFixed(1)}/10)`,
|
|
94
|
+
mitigation: risk.mitigation,
|
|
95
|
+
location: risk.location,
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Assess test coverage and identify gaps
|
|
102
|
+
*/
|
|
103
|
+
assessTestCoverage(testCoverage, blockers, concerns) {
|
|
104
|
+
const coverage = testCoverage.coverage_percentage;
|
|
105
|
+
if (coverage < this.thresholds.fail.testCoverage) {
|
|
106
|
+
blockers.push({
|
|
107
|
+
type: 'test_coverage',
|
|
108
|
+
severity: 'critical',
|
|
109
|
+
title: 'Insufficient test coverage',
|
|
110
|
+
description: `Coverage is ${coverage}% (minimum: ${this.thresholds.fail.testCoverage}%)`,
|
|
111
|
+
mitigation: `Add tests to reach ${this.thresholds.fail.testCoverage}% coverage`,
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
else if (coverage < this.thresholds.concerns.testCoverage) {
|
|
115
|
+
concerns.push({
|
|
116
|
+
type: 'test_coverage',
|
|
117
|
+
severity: 'high',
|
|
118
|
+
title: 'Test coverage below target',
|
|
119
|
+
description: `Coverage is ${coverage}% (target: ${this.thresholds.concerns.testCoverage}%)`,
|
|
120
|
+
mitigation: `Add tests to reach ${this.thresholds.concerns.testCoverage}% coverage`,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
// Check for AC-ID coverage gaps
|
|
124
|
+
for (const gap of testCoverage.gaps) {
|
|
125
|
+
concerns.push({
|
|
126
|
+
type: 'test_gap',
|
|
127
|
+
severity: 'high',
|
|
128
|
+
title: `Missing test: ${gap.acceptance_criteria}`,
|
|
129
|
+
description: gap.description,
|
|
130
|
+
mitigation: gap.recommendation,
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Assess specification quality
|
|
136
|
+
*/
|
|
137
|
+
assessSpecQuality(assessment, blockers, concerns, recommendations) {
|
|
138
|
+
const score = assessment.overall_score;
|
|
139
|
+
if (score < this.thresholds.fail.specQuality) {
|
|
140
|
+
blockers.push({
|
|
141
|
+
type: 'spec_quality',
|
|
142
|
+
severity: 'critical',
|
|
143
|
+
title: 'Specification quality unacceptable',
|
|
144
|
+
description: `Score is ${score}/100 (minimum: ${this.thresholds.fail.specQuality})`,
|
|
145
|
+
mitigation: 'Revise spec to address critical issues',
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
else if (score < this.thresholds.concerns.specQuality) {
|
|
149
|
+
concerns.push({
|
|
150
|
+
type: 'spec_quality',
|
|
151
|
+
severity: 'high',
|
|
152
|
+
title: 'Specification quality needs improvement',
|
|
153
|
+
description: `Score is ${score}/100 (target: ${this.thresholds.concerns.specQuality})`,
|
|
154
|
+
mitigation: 'Address HIGH priority suggestions',
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
// Add dimension-specific issues
|
|
158
|
+
for (const issue of assessment.issues) {
|
|
159
|
+
const gateIssue = {
|
|
160
|
+
type: `spec_${issue.dimension}`,
|
|
161
|
+
severity: issue.severity === 'critical' ? 'critical' : issue.severity === 'major' ? 'high' : 'medium',
|
|
162
|
+
title: `${issue.dimension.toUpperCase()}: ${issue.description}`,
|
|
163
|
+
description: issue.impact,
|
|
164
|
+
location: issue.location,
|
|
165
|
+
};
|
|
166
|
+
if (issue.severity === 'critical') {
|
|
167
|
+
blockers.push(gateIssue);
|
|
168
|
+
}
|
|
169
|
+
else if (issue.severity === 'major') {
|
|
170
|
+
concerns.push(gateIssue);
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
recommendations.push(gateIssue);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Assess security vulnerabilities
|
|
179
|
+
*/
|
|
180
|
+
assessSecurity(securityAudit, blockers, concerns) {
|
|
181
|
+
const deps = securityAudit.dependency_vulnerabilities;
|
|
182
|
+
// Check critical vulnerabilities
|
|
183
|
+
if (deps.critical >= this.thresholds.fail.criticalVulnerabilities) {
|
|
184
|
+
const criticalVulns = deps.issues.filter((v) => v.severity === 'critical');
|
|
185
|
+
for (const vuln of criticalVulns) {
|
|
186
|
+
blockers.push({
|
|
187
|
+
type: 'security',
|
|
188
|
+
severity: 'critical',
|
|
189
|
+
title: `Critical vulnerability: ${vuln.vulnerability}`,
|
|
190
|
+
description: `Package: ${vuln.package}@${vuln.version}`,
|
|
191
|
+
mitigation: vuln.fix,
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
// Check high vulnerabilities
|
|
196
|
+
if (deps.high >= this.thresholds.concerns.highVulnerabilities) {
|
|
197
|
+
const highVulns = deps.issues.filter((v) => v.severity === 'high');
|
|
198
|
+
for (const vuln of highVulns) {
|
|
199
|
+
concerns.push({
|
|
200
|
+
type: 'security',
|
|
201
|
+
severity: 'high',
|
|
202
|
+
title: `High vulnerability: ${vuln.vulnerability}`,
|
|
203
|
+
description: `Package: ${vuln.package}@${vuln.version}`,
|
|
204
|
+
mitigation: vuln.fix,
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
// Check OWASP failures
|
|
209
|
+
const owaspFailures = securityAudit.owasp_checks.filter((c) => c.status === 'FAIL');
|
|
210
|
+
for (const check of owaspFailures) {
|
|
211
|
+
concerns.push({
|
|
212
|
+
type: 'security',
|
|
213
|
+
severity: 'high',
|
|
214
|
+
title: `OWASP ${check.category}`,
|
|
215
|
+
description: check.details,
|
|
216
|
+
mitigation: check.recommendation,
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Make final decision based on blockers and concerns
|
|
222
|
+
*/
|
|
223
|
+
makeDecision(blockers, concerns) {
|
|
224
|
+
if (blockers.length > 0) {
|
|
225
|
+
return {
|
|
226
|
+
decision: 'FAIL',
|
|
227
|
+
reasoning: `Found ${blockers.length} blocker(s) that MUST be fixed before proceeding.`,
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
if (concerns.length > 0) {
|
|
231
|
+
return {
|
|
232
|
+
decision: 'CONCERNS',
|
|
233
|
+
reasoning: `Found ${concerns.length} concern(s) that SHOULD be addressed before release.`,
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
return {
|
|
237
|
+
decision: 'PASS',
|
|
238
|
+
reasoning: 'All quality checks passed. Ready for production.',
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Get decision icon/emoji
|
|
243
|
+
*/
|
|
244
|
+
static getDecisionIcon(decision) {
|
|
245
|
+
switch (decision) {
|
|
246
|
+
case 'PASS':
|
|
247
|
+
return '🟢';
|
|
248
|
+
case 'CONCERNS':
|
|
249
|
+
return '🟡';
|
|
250
|
+
case 'FAIL':
|
|
251
|
+
return '🔴';
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Get decision color (for terminal output)
|
|
256
|
+
*/
|
|
257
|
+
static getDecisionColor(decision) {
|
|
258
|
+
switch (decision) {
|
|
259
|
+
case 'PASS':
|
|
260
|
+
return 'green';
|
|
261
|
+
case 'CONCERNS':
|
|
262
|
+
return 'yellow';
|
|
263
|
+
case 'FAIL':
|
|
264
|
+
return 'red';
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
//# sourceMappingURL=quality-gate-decider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quality-gate-decider.js","sourceRoot":"","sources":["../../../../src/core/qa/quality-gate-decider.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAYH;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA0B;IACvD,IAAI,EAAE;QACJ,SAAS,EAAE,GAAG,EAAgB,qBAAqB;QACnD,YAAY,EAAE,EAAE,EAAc,wBAAwB;QACtD,WAAW,EAAE,EAAE,EAAe,yBAAyB;QACvD,uBAAuB,EAAE,CAAC,EAAI,6BAA6B;KAC5D;IACD,QAAQ,EAAE;QACR,SAAS,EAAE,GAAG,EAAgB,yBAAyB;QACvD,YAAY,EAAE,EAAE,EAAc,4BAA4B;QAC1D,WAAW,EAAE,EAAE,EAAe,6BAA6B;QAC3D,mBAAmB,EAAE,CAAC,EAAQ,6BAA6B;KAC5D;CACF,CAAC;AAEF,MAAM,OAAO,kBAAkB;IAG7B,YAAY,aAAoC,kBAAkB;QAChE,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,UAA6B,EAC7B,YAAiC,EACjC,aAAmC;QAEnC,MAAM,QAAQ,GAAuB,EAAE,CAAC;QACxC,MAAM,QAAQ,GAAuB,EAAE,CAAC;QACxC,MAAM,eAAe,GAAuB,EAAE,CAAC;QAE/C,0CAA0C;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QAAQ,QAAQ,EAAE,CAAC;YACjB,KAAK,MAAM;gBACT,OAAO,IAAI,CAAC;YACd,KAAK,UAAU;gBACb,OAAO,IAAI,CAAC;YACd,KAAK,MAAM;gBACT,OAAO,IAAI,CAAC;QAChB,CAAC;IACH,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,gBAAgB,CAAC,QAA6B;QACnD,QAAQ,QAAQ,EAAE,CAAC;YACjB,KAAK,MAAM;gBACT,OAAO,OAAO,CAAC;YACjB,KAAK,UAAU;gBACb,OAAO,QAAQ,CAAC;YAClB,KAAK,MAAM;gBACT,OAAO,KAAK,CAAC;QACjB,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Risk Calculator using BMAD pattern (Probability × Impact)
|
|
3
|
+
*
|
|
4
|
+
* @module qa/risk-calculator
|
|
5
|
+
* @since v0.8.0
|
|
6
|
+
*/
|
|
7
|
+
import { Risk, RiskAssessmentResult, RiskCategory, RiskSeverity } from './types';
|
|
8
|
+
export declare class RiskCalculator {
|
|
9
|
+
/**
|
|
10
|
+
* Calculate risk score using BMAD formula: P × I
|
|
11
|
+
*
|
|
12
|
+
* @param probability - Probability of risk occurring (0.0-1.0)
|
|
13
|
+
* @param impact - Impact severity if risk occurs (1-10)
|
|
14
|
+
* @returns Risk score (0.0-10.0)
|
|
15
|
+
* @throws Error if probability or impact out of range
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```typescript
|
|
19
|
+
* const score = RiskCalculator.calculateRiskScore(0.9, 10);
|
|
20
|
+
* // Returns: 9.0 (CRITICAL)
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
static calculateRiskScore(probability: number, impact: number): number;
|
|
24
|
+
/**
|
|
25
|
+
* Determine severity level based on risk score
|
|
26
|
+
*
|
|
27
|
+
* @param score - Risk score (0.0-10.0)
|
|
28
|
+
* @returns Severity level
|
|
29
|
+
*
|
|
30
|
+
* Thresholds:
|
|
31
|
+
* - 9.0-10.0: CRITICAL (must fix immediately)
|
|
32
|
+
* - 6.0-8.9: HIGH (should fix before release)
|
|
33
|
+
* - 3.0-5.9: MEDIUM (monitor, fix if time permits)
|
|
34
|
+
* - 0.0-2.9: LOW (acceptable risk)
|
|
35
|
+
*/
|
|
36
|
+
static determineSeverity(score: number): RiskSeverity;
|
|
37
|
+
/**
|
|
38
|
+
* Calculate overall risk score using weighted average
|
|
39
|
+
*
|
|
40
|
+
* Higher severity risks are weighted more heavily:
|
|
41
|
+
* - CRITICAL: 1.0
|
|
42
|
+
* - HIGH: 0.7
|
|
43
|
+
* - MEDIUM: 0.4
|
|
44
|
+
* - LOW: 0.1
|
|
45
|
+
*
|
|
46
|
+
* @param risks - Array of risk objects
|
|
47
|
+
* @returns Overall weighted risk score (0.0-10.0)
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```typescript
|
|
51
|
+
* const risks = [
|
|
52
|
+
* { score: 9.0, severity: 'CRITICAL', ... },
|
|
53
|
+
* { score: 6.0, severity: 'HIGH', ... },
|
|
54
|
+
* { score: 2.0, severity: 'LOW', ... }
|
|
55
|
+
* ];
|
|
56
|
+
* const overall = RiskCalculator.calculateOverallRisk(risks);
|
|
57
|
+
* // Returns: ~7.5 (weighted towards critical risks)
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
static calculateOverallRisk(risks: Risk[]): number;
|
|
61
|
+
/**
|
|
62
|
+
* Group risks by category and calculate category scores
|
|
63
|
+
*
|
|
64
|
+
* @param risks - Array of risk objects
|
|
65
|
+
* @returns Object with risk scores per category
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```typescript
|
|
69
|
+
* const grouped = RiskCalculator.groupRisksByCategory(risks);
|
|
70
|
+
* // Returns: { security: 7.5, technical: 4.2, implementation: 3.0, operational: 2.1 }
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
static groupRisksByCategory(risks: Risk[]): Record<RiskCategory, number>;
|
|
74
|
+
/**
|
|
75
|
+
* Normalize probability from descriptive text to numeric value
|
|
76
|
+
*
|
|
77
|
+
* @param description - Text description (low/medium/high or percentage)
|
|
78
|
+
* @returns Numeric probability (0.0-1.0)
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```typescript
|
|
82
|
+
* RiskCalculator.normalizeProbability('high'); // 0.8
|
|
83
|
+
* RiskCalculator.normalizeProbability('50%'); // 0.5
|
|
84
|
+
* RiskCalculator.normalizeProbability('0.9'); // 0.9
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
static normalizeProbability(description: string): number;
|
|
88
|
+
/**
|
|
89
|
+
* Normalize impact from descriptive text to numeric value
|
|
90
|
+
*
|
|
91
|
+
* @param description - Text description (minor/moderate/major/critical)
|
|
92
|
+
* @returns Numeric impact (1-10)
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```typescript
|
|
96
|
+
* RiskCalculator.normalizeImpact('critical'); // 10
|
|
97
|
+
* RiskCalculator.normalizeImpact('moderate'); // 5
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
static normalizeImpact(description: string): number;
|
|
101
|
+
/**
|
|
102
|
+
* Create a risk object from raw data
|
|
103
|
+
*
|
|
104
|
+
* @param data - Partial risk data
|
|
105
|
+
* @returns Complete risk object with calculated fields
|
|
106
|
+
*/
|
|
107
|
+
static createRisk(data: {
|
|
108
|
+
id: string;
|
|
109
|
+
category: RiskCategory;
|
|
110
|
+
title: string;
|
|
111
|
+
description: string;
|
|
112
|
+
probability: number | string;
|
|
113
|
+
impact: number | string;
|
|
114
|
+
mitigation: string;
|
|
115
|
+
location: string;
|
|
116
|
+
acceptance_criteria?: string;
|
|
117
|
+
}): Risk;
|
|
118
|
+
/**
|
|
119
|
+
* Calculate full risk assessment result
|
|
120
|
+
*
|
|
121
|
+
* @param risks - Array of risk objects
|
|
122
|
+
* @returns Complete risk assessment result
|
|
123
|
+
*/
|
|
124
|
+
static calculateAssessment(risks: Risk[]): RiskAssessmentResult;
|
|
125
|
+
}
|
|
126
|
+
//# sourceMappingURL=risk-calculator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"risk-calculator.d.ts","sourceRoot":"","sources":["../../../../src/core/qa/risk-calculator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,oBAAoB,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEjF,qBAAa,cAAc;IACzB;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,kBAAkB,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM;IAUtE;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY;IAOrD;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,oBAAoB,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,MAAM;IAsBlD;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,oBAAoB,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC;IAYxE;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM;IAqCxD;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM;IAmCnD;;;;;OAKG;IACH,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE;QACtB,EAAE,EAAE,MAAM,CAAC;QACX,QAAQ,EAAE,YAAY,CAAC;QACvB,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC;QAC7B,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;QACxB,UAAU,EAAE,MAAM,CAAC;QACnB,QAAQ,EAAE,MAAM,CAAC;QACjB,mBAAmB,CAAC,EAAE,MAAM,CAAC;KAC9B,GAAG,IAAI;IA4BR;;;;;OAKG;IACH,MAAM,CAAC,mBAAmB,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,oBAAoB;CAOhE"}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Risk Calculator using BMAD pattern (Probability × Impact)
|
|
3
|
+
*
|
|
4
|
+
* @module qa/risk-calculator
|
|
5
|
+
* @since v0.8.0
|
|
6
|
+
*/
|
|
7
|
+
export class RiskCalculator {
|
|
8
|
+
/**
|
|
9
|
+
* Calculate risk score using BMAD formula: P × I
|
|
10
|
+
*
|
|
11
|
+
* @param probability - Probability of risk occurring (0.0-1.0)
|
|
12
|
+
* @param impact - Impact severity if risk occurs (1-10)
|
|
13
|
+
* @returns Risk score (0.0-10.0)
|
|
14
|
+
* @throws Error if probability or impact out of range
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```typescript
|
|
18
|
+
* const score = RiskCalculator.calculateRiskScore(0.9, 10);
|
|
19
|
+
* // Returns: 9.0 (CRITICAL)
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
static calculateRiskScore(probability, impact) {
|
|
23
|
+
if (probability < 0 || probability > 1) {
|
|
24
|
+
throw new Error(`Probability must be 0.0-1.0, got ${probability}`);
|
|
25
|
+
}
|
|
26
|
+
if (impact < 1 || impact > 10) {
|
|
27
|
+
throw new Error(`Impact must be 1-10, got ${impact}`);
|
|
28
|
+
}
|
|
29
|
+
return probability * impact;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Determine severity level based on risk score
|
|
33
|
+
*
|
|
34
|
+
* @param score - Risk score (0.0-10.0)
|
|
35
|
+
* @returns Severity level
|
|
36
|
+
*
|
|
37
|
+
* Thresholds:
|
|
38
|
+
* - 9.0-10.0: CRITICAL (must fix immediately)
|
|
39
|
+
* - 6.0-8.9: HIGH (should fix before release)
|
|
40
|
+
* - 3.0-5.9: MEDIUM (monitor, fix if time permits)
|
|
41
|
+
* - 0.0-2.9: LOW (acceptable risk)
|
|
42
|
+
*/
|
|
43
|
+
static determineSeverity(score) {
|
|
44
|
+
if (score >= 9.0)
|
|
45
|
+
return 'CRITICAL';
|
|
46
|
+
if (score >= 6.0)
|
|
47
|
+
return 'HIGH';
|
|
48
|
+
if (score >= 3.0)
|
|
49
|
+
return 'MEDIUM';
|
|
50
|
+
return 'LOW';
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Calculate overall risk score using weighted average
|
|
54
|
+
*
|
|
55
|
+
* Higher severity risks are weighted more heavily:
|
|
56
|
+
* - CRITICAL: 1.0
|
|
57
|
+
* - HIGH: 0.7
|
|
58
|
+
* - MEDIUM: 0.4
|
|
59
|
+
* - LOW: 0.1
|
|
60
|
+
*
|
|
61
|
+
* @param risks - Array of risk objects
|
|
62
|
+
* @returns Overall weighted risk score (0.0-10.0)
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```typescript
|
|
66
|
+
* const risks = [
|
|
67
|
+
* { score: 9.0, severity: 'CRITICAL', ... },
|
|
68
|
+
* { score: 6.0, severity: 'HIGH', ... },
|
|
69
|
+
* { score: 2.0, severity: 'LOW', ... }
|
|
70
|
+
* ];
|
|
71
|
+
* const overall = RiskCalculator.calculateOverallRisk(risks);
|
|
72
|
+
* // Returns: ~7.5 (weighted towards critical risks)
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
static calculateOverallRisk(risks) {
|
|
76
|
+
if (risks.length === 0)
|
|
77
|
+
return 0;
|
|
78
|
+
const weights = {
|
|
79
|
+
CRITICAL: 1.0,
|
|
80
|
+
HIGH: 0.7,
|
|
81
|
+
MEDIUM: 0.4,
|
|
82
|
+
LOW: 0.1,
|
|
83
|
+
};
|
|
84
|
+
let weightedSum = 0;
|
|
85
|
+
let totalWeight = 0;
|
|
86
|
+
for (const risk of risks) {
|
|
87
|
+
const weight = weights[risk.severity];
|
|
88
|
+
weightedSum += risk.score * weight;
|
|
89
|
+
totalWeight += weight;
|
|
90
|
+
}
|
|
91
|
+
return totalWeight > 0 ? weightedSum / totalWeight : 0;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Group risks by category and calculate category scores
|
|
95
|
+
*
|
|
96
|
+
* @param risks - Array of risk objects
|
|
97
|
+
* @returns Object with risk scores per category
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```typescript
|
|
101
|
+
* const grouped = RiskCalculator.groupRisksByCategory(risks);
|
|
102
|
+
* // Returns: { security: 7.5, technical: 4.2, implementation: 3.0, operational: 2.1 }
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
105
|
+
static groupRisksByCategory(risks) {
|
|
106
|
+
const categories = ['security', 'technical', 'implementation', 'operational'];
|
|
107
|
+
const result = {};
|
|
108
|
+
for (const category of categories) {
|
|
109
|
+
const categoryRisks = risks.filter((r) => r.category === category);
|
|
110
|
+
result[category] = this.calculateOverallRisk(categoryRisks);
|
|
111
|
+
}
|
|
112
|
+
return result;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Normalize probability from descriptive text to numeric value
|
|
116
|
+
*
|
|
117
|
+
* @param description - Text description (low/medium/high or percentage)
|
|
118
|
+
* @returns Numeric probability (0.0-1.0)
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* ```typescript
|
|
122
|
+
* RiskCalculator.normalizeProbability('high'); // 0.8
|
|
123
|
+
* RiskCalculator.normalizeProbability('50%'); // 0.5
|
|
124
|
+
* RiskCalculator.normalizeProbability('0.9'); // 0.9
|
|
125
|
+
* ```
|
|
126
|
+
*/
|
|
127
|
+
static normalizeProbability(description) {
|
|
128
|
+
const normalized = description.toLowerCase().trim();
|
|
129
|
+
// Handle percentage
|
|
130
|
+
if (normalized.includes('%')) {
|
|
131
|
+
const percent = parseFloat(normalized.replace('%', ''));
|
|
132
|
+
return Math.min(Math.max(percent / 100, 0), 1);
|
|
133
|
+
}
|
|
134
|
+
// Handle decimal
|
|
135
|
+
if (/^[0-9.]+$/.test(normalized)) {
|
|
136
|
+
const value = parseFloat(normalized);
|
|
137
|
+
return Math.min(Math.max(value, 0), 1);
|
|
138
|
+
}
|
|
139
|
+
// Handle descriptive text
|
|
140
|
+
switch (normalized) {
|
|
141
|
+
case 'low':
|
|
142
|
+
case 'unlikely':
|
|
143
|
+
return 0.2;
|
|
144
|
+
case 'medium':
|
|
145
|
+
case 'possible':
|
|
146
|
+
case 'moderate':
|
|
147
|
+
return 0.5;
|
|
148
|
+
case 'high':
|
|
149
|
+
case 'likely':
|
|
150
|
+
case 'probable':
|
|
151
|
+
return 0.8;
|
|
152
|
+
case 'very high':
|
|
153
|
+
case 'certain':
|
|
154
|
+
case 'definite':
|
|
155
|
+
return 0.95;
|
|
156
|
+
default:
|
|
157
|
+
return 0.5; // Default to medium if unknown
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Normalize impact from descriptive text to numeric value
|
|
162
|
+
*
|
|
163
|
+
* @param description - Text description (minor/moderate/major/critical)
|
|
164
|
+
* @returns Numeric impact (1-10)
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* ```typescript
|
|
168
|
+
* RiskCalculator.normalizeImpact('critical'); // 10
|
|
169
|
+
* RiskCalculator.normalizeImpact('moderate'); // 5
|
|
170
|
+
* ```
|
|
171
|
+
*/
|
|
172
|
+
static normalizeImpact(description) {
|
|
173
|
+
const normalized = description.toLowerCase().trim();
|
|
174
|
+
// Handle numeric
|
|
175
|
+
if (/^[0-9]+$/.test(normalized)) {
|
|
176
|
+
const value = parseInt(normalized, 10);
|
|
177
|
+
return Math.min(Math.max(value, 1), 10);
|
|
178
|
+
}
|
|
179
|
+
// Handle descriptive text
|
|
180
|
+
switch (normalized) {
|
|
181
|
+
case 'minor':
|
|
182
|
+
case 'trivial':
|
|
183
|
+
case 'cosmetic':
|
|
184
|
+
return 2;
|
|
185
|
+
case 'moderate':
|
|
186
|
+
case 'medium':
|
|
187
|
+
case 'some impact':
|
|
188
|
+
return 5;
|
|
189
|
+
case 'major':
|
|
190
|
+
case 'significant':
|
|
191
|
+
case 'high':
|
|
192
|
+
return 8;
|
|
193
|
+
case 'critical':
|
|
194
|
+
case 'severe':
|
|
195
|
+
case 'catastrophic':
|
|
196
|
+
case 'system failure':
|
|
197
|
+
case 'data loss':
|
|
198
|
+
case 'security breach':
|
|
199
|
+
return 10;
|
|
200
|
+
default:
|
|
201
|
+
return 5; // Default to moderate if unknown
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Create a risk object from raw data
|
|
206
|
+
*
|
|
207
|
+
* @param data - Partial risk data
|
|
208
|
+
* @returns Complete risk object with calculated fields
|
|
209
|
+
*/
|
|
210
|
+
static createRisk(data) {
|
|
211
|
+
// Normalize probability and impact
|
|
212
|
+
const probability = typeof data.probability === 'string'
|
|
213
|
+
? this.normalizeProbability(data.probability)
|
|
214
|
+
: data.probability;
|
|
215
|
+
const impact = typeof data.impact === 'string' ? this.normalizeImpact(data.impact) : data.impact;
|
|
216
|
+
// Calculate score and severity
|
|
217
|
+
const score = this.calculateRiskScore(probability, impact);
|
|
218
|
+
const severity = this.determineSeverity(score);
|
|
219
|
+
return {
|
|
220
|
+
id: data.id,
|
|
221
|
+
category: data.category,
|
|
222
|
+
title: data.title,
|
|
223
|
+
description: data.description,
|
|
224
|
+
probability,
|
|
225
|
+
impact,
|
|
226
|
+
score,
|
|
227
|
+
severity,
|
|
228
|
+
mitigation: data.mitigation,
|
|
229
|
+
location: data.location,
|
|
230
|
+
acceptance_criteria: data.acceptance_criteria,
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Calculate full risk assessment result
|
|
235
|
+
*
|
|
236
|
+
* @param risks - Array of risk objects
|
|
237
|
+
* @returns Complete risk assessment result
|
|
238
|
+
*/
|
|
239
|
+
static calculateAssessment(risks) {
|
|
240
|
+
return {
|
|
241
|
+
risks,
|
|
242
|
+
overall_risk_score: this.calculateOverallRisk(risks),
|
|
243
|
+
risk_by_category: this.groupRisksByCategory(risks),
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
//# sourceMappingURL=risk-calculator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"risk-calculator.js","sourceRoot":"","sources":["../../../../src/core/qa/risk-calculator.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,OAAO,cAAc;IACzB;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,kBAAkB,CAAC,WAAmB,EAAE,MAAc;QAC3D,IAAI,WAAW,GAAG,CAAC,IAAI,WAAW,GAAG,CAAC,EAAE,CAAC;YACvC,MAAM,IAAI,KAAK,CAAC,oCAAoC,WAAW,EAAE,CAAC,CAAC;QACrE,CAAC;QACD,IAAI,MAAM,GAAG,CAAC,IAAI,MAAM,GAAG,EAAE,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,4BAA4B,MAAM,EAAE,CAAC,CAAC;QACxD,CAAC;QACD,OAAO,WAAW,GAAG,MAAM,CAAC;IAC9B,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,iBAAiB,CAAC,KAAa;QACpC,IAAI,KAAK,IAAI,GAAG;YAAE,OAAO,UAAU,CAAC;QACpC,IAAI,KAAK,IAAI,GAAG;YAAE,OAAO,MAAM,CAAC;QAChC,IAAI,KAAK,IAAI,GAAG;YAAE,OAAO,QAAQ,CAAC;QAClC,OAAO,KAAK,CAAC;IACf,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,MAAM,CAAC,oBAAoB,CAAC,KAAa;QACvC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,CAAC,CAAC;QAEjC,MAAM,OAAO,GAAiC;Y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