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
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
SyncProfile,
|
|
14
14
|
AdoConfig,
|
|
15
15
|
TimeRangePreset,
|
|
16
|
+
SyncContainer,
|
|
16
17
|
} from '../../../src/core/types/sync-profile';
|
|
17
18
|
|
|
18
19
|
// ============================================================================
|
|
@@ -69,13 +70,18 @@ export interface UpdateWorkItemRequest {
|
|
|
69
70
|
|
|
70
71
|
export class AdoClientV2 {
|
|
71
72
|
private organization: string;
|
|
72
|
-
private project
|
|
73
|
+
private project?: string; // Optional for multi-project mode
|
|
73
74
|
private workItemType: string;
|
|
74
75
|
private areaPath?: string;
|
|
75
76
|
private iterationPath?: string;
|
|
76
77
|
private baseUrl: string;
|
|
77
78
|
private authHeader: string;
|
|
78
79
|
|
|
80
|
+
// Multi-project support
|
|
81
|
+
private containers?: SyncContainer[];
|
|
82
|
+
private customQuery?: string;
|
|
83
|
+
private isMultiProject: boolean;
|
|
84
|
+
|
|
79
85
|
/**
|
|
80
86
|
* Create ADO client from sync profile
|
|
81
87
|
*/
|
|
@@ -86,12 +92,27 @@ export class AdoClientV2 {
|
|
|
86
92
|
|
|
87
93
|
const config = profile.config as AdoConfig;
|
|
88
94
|
this.organization = config.organization;
|
|
89
|
-
this.project = config.project;
|
|
90
95
|
this.workItemType = config.workItemType || 'Epic';
|
|
91
|
-
this.areaPath = config.areaPath;
|
|
92
|
-
this.iterationPath = config.iterationPath;
|
|
93
96
|
|
|
94
|
-
|
|
97
|
+
// Detect mode: single-project vs multi-project
|
|
98
|
+
if (config.containers && config.containers.length > 0) {
|
|
99
|
+
// Multi-project mode
|
|
100
|
+
this.isMultiProject = true;
|
|
101
|
+
this.containers = config.containers;
|
|
102
|
+
this.baseUrl = `https://dev.azure.com/${this.organization}`;
|
|
103
|
+
} else if (config.customQuery) {
|
|
104
|
+
// Custom WIQL query mode
|
|
105
|
+
this.isMultiProject = true;
|
|
106
|
+
this.customQuery = config.customQuery;
|
|
107
|
+
this.baseUrl = `https://dev.azure.com/${this.organization}`;
|
|
108
|
+
} else {
|
|
109
|
+
// Single-project mode (backward compatible)
|
|
110
|
+
this.isMultiProject = false;
|
|
111
|
+
this.project = config.project;
|
|
112
|
+
this.areaPath = config.areaPath;
|
|
113
|
+
this.iterationPath = config.iterationPath;
|
|
114
|
+
this.baseUrl = `https://dev.azure.com/${this.organization}/${this.project}`;
|
|
115
|
+
}
|
|
95
116
|
|
|
96
117
|
// Basic Auth: base64(":PAT")
|
|
97
118
|
this.authHeader =
|
|
@@ -125,7 +146,13 @@ export class AdoClientV2 {
|
|
|
125
146
|
*/
|
|
126
147
|
async testConnection(): Promise<{ success: boolean; error?: string }> {
|
|
127
148
|
try {
|
|
128
|
-
|
|
149
|
+
if (this.isMultiProject) {
|
|
150
|
+
// Test org-level access
|
|
151
|
+
await this.request('GET', `https://dev.azure.com/${this.organization}/_apis/projects?api-version=7.1`);
|
|
152
|
+
} else {
|
|
153
|
+
// Test project-level access
|
|
154
|
+
await this.request('GET', `/_apis/projects/${this.project}?api-version=7.1`);
|
|
155
|
+
}
|
|
129
156
|
return { success: true };
|
|
130
157
|
} catch (error: any) {
|
|
131
158
|
return { success: false, error: error.message };
|
|
@@ -307,9 +334,12 @@ export class AdoClientV2 {
|
|
|
307
334
|
* Execute WIQL query
|
|
308
335
|
*/
|
|
309
336
|
async queryWorkItems(wiql: string): Promise<WorkItem[]> {
|
|
310
|
-
|
|
337
|
+
// For multi-project, use org-level API
|
|
338
|
+
const queryUrl = this.isMultiProject
|
|
339
|
+
? `https://dev.azure.com/${this.organization}/_apis/wit/wiql?api-version=7.1`
|
|
340
|
+
: `/_apis/wit/wiql?api-version=7.1`;
|
|
311
341
|
|
|
312
|
-
const queryResult: WorkItemQueryResult = await this.request('POST',
|
|
342
|
+
const queryResult: WorkItemQueryResult = await this.request('POST', queryUrl, {
|
|
313
343
|
query: wiql,
|
|
314
344
|
});
|
|
315
345
|
|
|
@@ -319,7 +349,11 @@ export class AdoClientV2 {
|
|
|
319
349
|
|
|
320
350
|
// Get full work item details (batch request)
|
|
321
351
|
const ids = queryResult.workItems.map((wi) => wi.id);
|
|
322
|
-
|
|
352
|
+
|
|
353
|
+
// For multi-project, use org-level batch API
|
|
354
|
+
const batchUrl = this.isMultiProject
|
|
355
|
+
? `https://dev.azure.com/${this.organization}/_apis/wit/workitemsbatch?api-version=7.1`
|
|
356
|
+
: `/_apis/wit/workitemsbatch?api-version=7.1`;
|
|
323
357
|
|
|
324
358
|
const workItems = await this.request('POST', batchUrl, {
|
|
325
359
|
ids,
|
|
@@ -332,6 +366,9 @@ export class AdoClientV2 {
|
|
|
332
366
|
'System.ChangedDate',
|
|
333
367
|
'System.WorkItemType',
|
|
334
368
|
'System.Tags',
|
|
369
|
+
'System.AreaPath',
|
|
370
|
+
'System.IterationPath',
|
|
371
|
+
'System.TeamProject',
|
|
335
372
|
],
|
|
336
373
|
});
|
|
337
374
|
|
|
@@ -352,7 +389,17 @@ export class AdoClientV2 {
|
|
|
352
389
|
customEnd
|
|
353
390
|
);
|
|
354
391
|
|
|
355
|
-
//
|
|
392
|
+
// Use custom query if provided
|
|
393
|
+
if (this.customQuery) {
|
|
394
|
+
return this.queryWorkItems(this.customQuery);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
// Multi-project mode with containers
|
|
398
|
+
if (this.isMultiProject && this.containers) {
|
|
399
|
+
return this.queryWorkItemsAcrossContainers(since, until);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
// Single-project mode (backward compatible)
|
|
356
403
|
const wiql = `
|
|
357
404
|
SELECT [System.Id], [System.Title], [System.State], [System.CreatedDate]
|
|
358
405
|
FROM WorkItems
|
|
@@ -365,6 +412,83 @@ export class AdoClientV2 {
|
|
|
365
412
|
return this.queryWorkItems(wiql);
|
|
366
413
|
}
|
|
367
414
|
|
|
415
|
+
/**
|
|
416
|
+
* Query work items across multiple containers (multi-project)
|
|
417
|
+
*/
|
|
418
|
+
private async queryWorkItemsAcrossContainers(
|
|
419
|
+
since: string,
|
|
420
|
+
until: string
|
|
421
|
+
): Promise<WorkItem[]> {
|
|
422
|
+
if (!this.containers || this.containers.length === 0) {
|
|
423
|
+
return [];
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
const allWorkItems: WorkItem[] = [];
|
|
427
|
+
|
|
428
|
+
for (const container of this.containers) {
|
|
429
|
+
const wiql = this.buildContainerWIQL(container, since, until);
|
|
430
|
+
|
|
431
|
+
try {
|
|
432
|
+
const workItems = await this.queryWorkItems(wiql);
|
|
433
|
+
allWorkItems.push(...workItems);
|
|
434
|
+
} catch (error: any) {
|
|
435
|
+
console.error(`Failed to query container ${container.id}:`, error.message);
|
|
436
|
+
// Continue with other containers
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
return allWorkItems;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Build WIQL query for a specific container with filters
|
|
445
|
+
*/
|
|
446
|
+
private buildContainerWIQL(
|
|
447
|
+
container: SyncContainer,
|
|
448
|
+
since: string,
|
|
449
|
+
until: string
|
|
450
|
+
): string {
|
|
451
|
+
const conditions: string[] = [];
|
|
452
|
+
|
|
453
|
+
// Project filter
|
|
454
|
+
conditions.push(`[System.TeamProject] = '${container.id}'`);
|
|
455
|
+
|
|
456
|
+
// Time range
|
|
457
|
+
conditions.push(`[System.CreatedDate] >= '${since}'`);
|
|
458
|
+
conditions.push(`[System.CreatedDate] <= '${until}'`);
|
|
459
|
+
|
|
460
|
+
// Area paths filter
|
|
461
|
+
if (container.filters?.areaPaths && container.filters.areaPaths.length > 0) {
|
|
462
|
+
const areaPathConditions = container.filters.areaPaths
|
|
463
|
+
.map(ap => `[System.AreaPath] UNDER '${container.id}\\${ap}'`)
|
|
464
|
+
.join(' OR ');
|
|
465
|
+
conditions.push(`(${areaPathConditions})`);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
// Work item types filter
|
|
469
|
+
if (container.filters?.workItemTypes && container.filters.workItemTypes.length > 0) {
|
|
470
|
+
const typeConditions = container.filters.workItemTypes
|
|
471
|
+
.map(type => `[System.WorkItemType] = '${type}'`)
|
|
472
|
+
.join(' OR ');
|
|
473
|
+
conditions.push(`(${typeConditions})`);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
// Iteration paths filter
|
|
477
|
+
if (container.filters?.iterationPaths && container.filters.iterationPaths.length > 0) {
|
|
478
|
+
const iterationConditions = container.filters.iterationPaths
|
|
479
|
+
.map(ip => `[System.IterationPath] UNDER '${container.id}\\${ip}'`)
|
|
480
|
+
.join(' OR ');
|
|
481
|
+
conditions.push(`(${iterationConditions})`);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
return `
|
|
485
|
+
SELECT [System.Id], [System.Title], [System.State], [System.CreatedDate], [System.WorkItemType]
|
|
486
|
+
FROM WorkItems
|
|
487
|
+
WHERE ${conditions.join('\n AND ')}
|
|
488
|
+
ORDER BY [System.CreatedDate] DESC
|
|
489
|
+
`;
|
|
490
|
+
}
|
|
491
|
+
|
|
368
492
|
/**
|
|
369
493
|
* Calculate date range from preset
|
|
370
494
|
*/
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Azure DevOps REST API Client
|
|
3
|
+
*
|
|
4
|
+
* Provides TypeScript interface to Azure DevOps REST API v7.1
|
|
5
|
+
* for work item management and SpecWeave integration.
|
|
6
|
+
*
|
|
7
|
+
* @see https://learn.microsoft.com/en-us/rest/api/azure/devops/
|
|
8
|
+
*/
|
|
9
|
+
export interface AdoConfig {
|
|
10
|
+
organization: string;
|
|
11
|
+
project: string;
|
|
12
|
+
personalAccessToken: string;
|
|
13
|
+
workItemType?: 'Epic' | 'Feature' | 'User Story';
|
|
14
|
+
areaPath?: string;
|
|
15
|
+
iterationPath?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface WorkItem {
|
|
18
|
+
id: number;
|
|
19
|
+
rev: number;
|
|
20
|
+
fields: {
|
|
21
|
+
'System.Title': string;
|
|
22
|
+
'System.Description'?: string;
|
|
23
|
+
'System.State': string;
|
|
24
|
+
'System.AreaPath'?: string;
|
|
25
|
+
'System.IterationPath'?: string;
|
|
26
|
+
'System.Tags'?: string;
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
};
|
|
29
|
+
_links: {
|
|
30
|
+
html: {
|
|
31
|
+
href: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
url: string;
|
|
35
|
+
}
|
|
36
|
+
export interface WorkItemComment {
|
|
37
|
+
id: number;
|
|
38
|
+
text: string;
|
|
39
|
+
createdBy: {
|
|
40
|
+
displayName: string;
|
|
41
|
+
};
|
|
42
|
+
createdDate: string;
|
|
43
|
+
}
|
|
44
|
+
export interface CreateWorkItemRequest {
|
|
45
|
+
title: string;
|
|
46
|
+
description?: string;
|
|
47
|
+
areaPath?: string;
|
|
48
|
+
iterationPath?: string;
|
|
49
|
+
tags?: string[];
|
|
50
|
+
}
|
|
51
|
+
export interface UpdateWorkItemRequest {
|
|
52
|
+
state?: string;
|
|
53
|
+
title?: string;
|
|
54
|
+
description?: string;
|
|
55
|
+
tags?: string[];
|
|
56
|
+
}
|
|
57
|
+
export declare class AdoClient {
|
|
58
|
+
private config;
|
|
59
|
+
private baseUrl;
|
|
60
|
+
private authHeader;
|
|
61
|
+
constructor(config: AdoConfig);
|
|
62
|
+
/**
|
|
63
|
+
* Create a new work item
|
|
64
|
+
*
|
|
65
|
+
* @see https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/work-items/create
|
|
66
|
+
*/
|
|
67
|
+
createWorkItem(request: CreateWorkItemRequest): Promise<WorkItem>;
|
|
68
|
+
/**
|
|
69
|
+
* Get work item by ID
|
|
70
|
+
*
|
|
71
|
+
* @see https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/work-items/get-work-item
|
|
72
|
+
*/
|
|
73
|
+
getWorkItem(id: number): Promise<WorkItem>;
|
|
74
|
+
/**
|
|
75
|
+
* Update work item
|
|
76
|
+
*
|
|
77
|
+
* @see https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/work-items/update
|
|
78
|
+
*/
|
|
79
|
+
updateWorkItem(id: number, request: UpdateWorkItemRequest): Promise<WorkItem>;
|
|
80
|
+
/**
|
|
81
|
+
* Delete work item (move to Recycle Bin)
|
|
82
|
+
*
|
|
83
|
+
* @see https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/work-items/delete
|
|
84
|
+
*/
|
|
85
|
+
deleteWorkItem(id: number): Promise<void>;
|
|
86
|
+
/**
|
|
87
|
+
* Add comment to work item
|
|
88
|
+
*
|
|
89
|
+
* @see https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/comments/add
|
|
90
|
+
*/
|
|
91
|
+
addComment(workItemId: number, text: string): Promise<WorkItemComment>;
|
|
92
|
+
/**
|
|
93
|
+
* Get comments for work item
|
|
94
|
+
*
|
|
95
|
+
* @see https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/comments/list
|
|
96
|
+
*/
|
|
97
|
+
getComments(workItemId: number): Promise<WorkItemComment[]>;
|
|
98
|
+
/**
|
|
99
|
+
* Make HTTP request to ADO API
|
|
100
|
+
*/
|
|
101
|
+
private request;
|
|
102
|
+
/**
|
|
103
|
+
* Test connection to ADO
|
|
104
|
+
*/
|
|
105
|
+
testConnection(): Promise<boolean>;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Create ADO client from environment variables and config
|
|
109
|
+
*/
|
|
110
|
+
export declare function createAdoClient(config?: Partial<AdoConfig>): AdoClient;
|
|
111
|
+
export default AdoClient;
|
|
112
|
+
//# sourceMappingURL=ado-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ado-client.d.ts","sourceRoot":"","sources":["ado-client.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAQH,MAAM,WAAW,SAAS;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,YAAY,CAAC;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE;QACN,cAAc,EAAE,MAAM,CAAC;QACvB,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B,cAAc,EAAE,MAAM,CAAC;QACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,sBAAsB,CAAC,EAAE,MAAM,CAAC;QAChC,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IACF,MAAM,EAAE;QACN,IAAI,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC;KACxB,CAAC;IACF,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAA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AAgB,eAAe,CAAC,MAAM,GAAE,OAAO,CAAC,SAAS,CAAM,GAAG,SAAS,CAuB1E;AAMD,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import https from "https";
|
|
2
|
+
class AdoClient {
|
|
3
|
+
constructor(config) {
|
|
4
|
+
this.config = config;
|
|
5
|
+
this.baseUrl = `https://dev.azure.com/${config.organization}/${config.project}`;
|
|
6
|
+
this.authHeader = "Basic " + Buffer.from(`:${config.personalAccessToken}`).toString("base64");
|
|
7
|
+
}
|
|
8
|
+
// ==========================================================================
|
|
9
|
+
// Work Item Operations
|
|
10
|
+
// ==========================================================================
|
|
11
|
+
/**
|
|
12
|
+
* Create a new work item
|
|
13
|
+
*
|
|
14
|
+
* @see https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/work-items/create
|
|
15
|
+
*/
|
|
16
|
+
async createWorkItem(request) {
|
|
17
|
+
const workItemType = this.config.workItemType || "Epic";
|
|
18
|
+
const url = `${this.baseUrl}/_apis/wit/workitems/$${workItemType}?api-version=7.1`;
|
|
19
|
+
const operations = [
|
|
20
|
+
{
|
|
21
|
+
op: "add",
|
|
22
|
+
path: "/fields/System.Title",
|
|
23
|
+
value: request.title
|
|
24
|
+
}
|
|
25
|
+
];
|
|
26
|
+
if (request.description) {
|
|
27
|
+
operations.push({
|
|
28
|
+
op: "add",
|
|
29
|
+
path: "/fields/System.Description",
|
|
30
|
+
value: `<pre>${request.description}</pre>`
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
if (request.areaPath || this.config.areaPath) {
|
|
34
|
+
operations.push({
|
|
35
|
+
op: "add",
|
|
36
|
+
path: "/fields/System.AreaPath",
|
|
37
|
+
value: request.areaPath || this.config.areaPath
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
if (request.iterationPath || this.config.iterationPath) {
|
|
41
|
+
operations.push({
|
|
42
|
+
op: "add",
|
|
43
|
+
path: "/fields/System.IterationPath",
|
|
44
|
+
value: request.iterationPath || this.config.iterationPath
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
if (request.tags && request.tags.length > 0) {
|
|
48
|
+
operations.push({
|
|
49
|
+
op: "add",
|
|
50
|
+
path: "/fields/System.Tags",
|
|
51
|
+
value: request.tags.join("; ")
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
const response = await this.request("POST", url, operations, {
|
|
55
|
+
"Content-Type": "application/json-patch+json"
|
|
56
|
+
});
|
|
57
|
+
return response;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Get work item by ID
|
|
61
|
+
*
|
|
62
|
+
* @see https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/work-items/get-work-item
|
|
63
|
+
*/
|
|
64
|
+
async getWorkItem(id) {
|
|
65
|
+
const url = `${this.baseUrl}/_apis/wit/workitems/${id}?api-version=7.1`;
|
|
66
|
+
return this.request("GET", url);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Update work item
|
|
70
|
+
*
|
|
71
|
+
* @see https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/work-items/update
|
|
72
|
+
*/
|
|
73
|
+
async updateWorkItem(id, request) {
|
|
74
|
+
const url = `${this.baseUrl}/_apis/wit/workitems/${id}?api-version=7.1`;
|
|
75
|
+
const operations = [];
|
|
76
|
+
if (request.state) {
|
|
77
|
+
operations.push({
|
|
78
|
+
op: "add",
|
|
79
|
+
path: "/fields/System.State",
|
|
80
|
+
value: request.state
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
if (request.title) {
|
|
84
|
+
operations.push({
|
|
85
|
+
op: "add",
|
|
86
|
+
path: "/fields/System.Title",
|
|
87
|
+
value: request.title
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
if (request.description) {
|
|
91
|
+
operations.push({
|
|
92
|
+
op: "add",
|
|
93
|
+
path: "/fields/System.Description",
|
|
94
|
+
value: `<pre>${request.description}</pre>`
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
if (request.tags) {
|
|
98
|
+
operations.push({
|
|
99
|
+
op: "add",
|
|
100
|
+
path: "/fields/System.Tags",
|
|
101
|
+
value: request.tags.join("; ")
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
return this.request("PATCH", url, operations, {
|
|
105
|
+
"Content-Type": "application/json-patch+json"
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Delete work item (move to Recycle Bin)
|
|
110
|
+
*
|
|
111
|
+
* @see https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/work-items/delete
|
|
112
|
+
*/
|
|
113
|
+
async deleteWorkItem(id) {
|
|
114
|
+
const url = `${this.baseUrl}/_apis/wit/workitems/${id}?api-version=7.1`;
|
|
115
|
+
await this.request("DELETE", url);
|
|
116
|
+
}
|
|
117
|
+
// ==========================================================================
|
|
118
|
+
// Comment Operations
|
|
119
|
+
// ==========================================================================
|
|
120
|
+
/**
|
|
121
|
+
* Add comment to work item
|
|
122
|
+
*
|
|
123
|
+
* @see https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/comments/add
|
|
124
|
+
*/
|
|
125
|
+
async addComment(workItemId, text) {
|
|
126
|
+
const url = `${this.baseUrl}/_apis/wit/workitems/${workItemId}/comments?api-version=7.1-preview.3`;
|
|
127
|
+
const response = await this.request("POST", url, { text });
|
|
128
|
+
return response;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Get comments for work item
|
|
132
|
+
*
|
|
133
|
+
* @see https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/comments/list
|
|
134
|
+
*/
|
|
135
|
+
async getComments(workItemId) {
|
|
136
|
+
const url = `${this.baseUrl}/_apis/wit/workitems/${workItemId}/comments?api-version=7.1-preview.3`;
|
|
137
|
+
const response = await this.request("GET", url);
|
|
138
|
+
return response.comments || [];
|
|
139
|
+
}
|
|
140
|
+
// ==========================================================================
|
|
141
|
+
// Helper Methods
|
|
142
|
+
// ==========================================================================
|
|
143
|
+
/**
|
|
144
|
+
* Make HTTP request to ADO API
|
|
145
|
+
*/
|
|
146
|
+
async request(method, url, body, additionalHeaders) {
|
|
147
|
+
return new Promise((resolve, reject) => {
|
|
148
|
+
const urlObj = new URL(url);
|
|
149
|
+
const options = {
|
|
150
|
+
hostname: urlObj.hostname,
|
|
151
|
+
port: 443,
|
|
152
|
+
path: urlObj.pathname + urlObj.search,
|
|
153
|
+
method,
|
|
154
|
+
headers: {
|
|
155
|
+
"Authorization": this.authHeader,
|
|
156
|
+
"Accept": "application/json",
|
|
157
|
+
...body ? { "Content-Type": "application/json" } : {},
|
|
158
|
+
...additionalHeaders
|
|
159
|
+
},
|
|
160
|
+
timeout: 3e4
|
|
161
|
+
// 30 second timeout
|
|
162
|
+
};
|
|
163
|
+
const req = https.request(options, (res) => {
|
|
164
|
+
let data = "";
|
|
165
|
+
res.on("data", (chunk) => {
|
|
166
|
+
data += chunk;
|
|
167
|
+
});
|
|
168
|
+
res.on("end", () => {
|
|
169
|
+
if (res.statusCode && res.statusCode >= 200 && res.statusCode < 300) {
|
|
170
|
+
try {
|
|
171
|
+
const parsed = data ? JSON.parse(data) : {};
|
|
172
|
+
resolve(parsed);
|
|
173
|
+
} catch (error) {
|
|
174
|
+
reject(new Error(`Failed to parse JSON response: ${error}`));
|
|
175
|
+
}
|
|
176
|
+
} else {
|
|
177
|
+
let errorMessage = `ADO API error: ${res.statusCode} ${res.statusMessage}`;
|
|
178
|
+
try {
|
|
179
|
+
const errorData = JSON.parse(data);
|
|
180
|
+
if (errorData.message) {
|
|
181
|
+
errorMessage += ` - ${errorData.message}`;
|
|
182
|
+
}
|
|
183
|
+
} catch {
|
|
184
|
+
}
|
|
185
|
+
reject(new Error(errorMessage));
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
});
|
|
189
|
+
req.on("error", (error) => {
|
|
190
|
+
reject(new Error(`HTTP request failed: ${error.message}`));
|
|
191
|
+
});
|
|
192
|
+
req.on("timeout", () => {
|
|
193
|
+
req.destroy();
|
|
194
|
+
reject(new Error(`HTTP request timeout after 30 seconds`));
|
|
195
|
+
});
|
|
196
|
+
if (body) {
|
|
197
|
+
req.write(JSON.stringify(body));
|
|
198
|
+
}
|
|
199
|
+
req.end();
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Test connection to ADO
|
|
204
|
+
*/
|
|
205
|
+
async testConnection() {
|
|
206
|
+
try {
|
|
207
|
+
const url = `${this.baseUrl}/_apis/wit/workitemtypes?api-version=7.1`;
|
|
208
|
+
await this.request("GET", url);
|
|
209
|
+
return true;
|
|
210
|
+
} catch (error) {
|
|
211
|
+
if (error instanceof Error) {
|
|
212
|
+
console.error(`[ADO Client] Connection test failed:`, {
|
|
213
|
+
message: error.message,
|
|
214
|
+
organization: this.config.organization,
|
|
215
|
+
project: this.config.project,
|
|
216
|
+
baseUrl: this.baseUrl
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
return false;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
function createAdoClient(config = {}) {
|
|
224
|
+
const fullConfig = {
|
|
225
|
+
organization: config.organization || process.env.AZURE_DEVOPS_ORG || "",
|
|
226
|
+
project: config.project || process.env.AZURE_DEVOPS_PROJECT || "",
|
|
227
|
+
personalAccessToken: config.personalAccessToken || process.env.AZURE_DEVOPS_PAT || "",
|
|
228
|
+
workItemType: config.workItemType,
|
|
229
|
+
areaPath: config.areaPath,
|
|
230
|
+
iterationPath: config.iterationPath
|
|
231
|
+
};
|
|
232
|
+
if (!fullConfig.organization) {
|
|
233
|
+
throw new Error("ADO organization not configured");
|
|
234
|
+
}
|
|
235
|
+
if (!fullConfig.project) {
|
|
236
|
+
throw new Error("ADO project not configured");
|
|
237
|
+
}
|
|
238
|
+
if (!fullConfig.personalAccessToken) {
|
|
239
|
+
throw new Error("AZURE_DEVOPS_PAT not set");
|
|
240
|
+
}
|
|
241
|
+
return new AdoClient(fullConfig);
|
|
242
|
+
}
|
|
243
|
+
var ado_client_default = AdoClient;
|
|
244
|
+
export {
|
|
245
|
+
AdoClient,
|
|
246
|
+
createAdoClient,
|
|
247
|
+
ado_client_default as default
|
|
248
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ado-client.js","sourceRoot":"","sources":["ado-client.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAuD1B,+EAA+E;AAC/E,sBAAsB;AACtB,+EAA+E;AAE/E,MAAM,OAAO,SAAS;IAKpB,YAAY,MAAiB;QAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,yBAAyB,MAAM,CAAC,YAAY,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QAEhF,6BAA6B;QAC7B,IAAI,CAAC,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,mBAAmB,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAChG,CAAC;IAED,6EAA6E;IAC7E,uBAAuB;IACvB,6EAA6E;IAE7E;;;;OAIG;IACH,KAAK,CAAC,cAAc,CAAC,OAA8B;QACjD,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,IAAI,MAAM,CAAC;QACxD,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,yBAAyB,YAAY,kBAAkB,CAAC;QAEnF,4BAA4B;QAC5B,MAAM,UAAU,GAAU;YACxB;gBACE,EAAE,EAAE,KAAK;gBACT,IAAI,EAAE,sBAAsB;gBAC5B,KAAK,EAAE,OAAO,CAAC,KAAK;aACrB;SACF,CAAC;QAEF,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;YACxB,UAAU,CAAC,IAAI,CAAC;gBACd,EAAE,EAAE,KAAK;gBACT,IAAI,EAAE,4BAA4B;gBAClC,KAAK,EA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Y,EAAE,CAAC;QAC7B,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;IACrD,CAAC;IAED,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;IAChD,CAAC;IAED,IAAI,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAC;QACpC,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;IAC9C,CAAC;IAED,OAAO,IAAI,SAAS,CAAC,UAAU,CAAC,CAAC;AACnC,CAAC;AAED,+EAA+E;AAC/E,UAAU;AACV,+EAA+E;AAE/E,eAAe,SAAS,CAAC"}
|
|
@@ -217,7 +217,7 @@ export class AdoClient {
|
|
|
217
217
|
* @see https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/comments/add
|
|
218
218
|
*/
|
|
219
219
|
async addComment(workItemId: number, text: string): Promise<WorkItemComment> {
|
|
220
|
-
const url = `${this.baseUrl}/_apis/wit/workitems/${workItemId}/comments?api-version=7.1`;
|
|
220
|
+
const url = `${this.baseUrl}/_apis/wit/workitems/${workItemId}/comments?api-version=7.1-preview.3`;
|
|
221
221
|
|
|
222
222
|
const response = await this.request<WorkItemComment>('POST', url, { text });
|
|
223
223
|
|
|
@@ -226,11 +226,11 @@ export class AdoClient {
|
|
|
226
226
|
|
|
227
227
|
/**
|
|
228
228
|
* Get comments for work item
|
|
229
|
-
*
|
|
229
|
+
*
|
|
230
230
|
* @see https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/comments/list
|
|
231
231
|
*/
|
|
232
232
|
async getComments(workItemId: number): Promise<WorkItemComment[]> {
|
|
233
|
-
const url = `${this.baseUrl}/_apis/wit/workitems/${workItemId}/comments?api-version=7.1`;
|
|
233
|
+
const url = `${this.baseUrl}/_apis/wit/workitems/${workItemId}/comments?api-version=7.1-preview.3`;
|
|
234
234
|
|
|
235
235
|
const response = await this.request<{ comments: WorkItemComment[] }>('GET', url);
|
|
236
236
|
|
|
@@ -261,8 +261,10 @@ export class AdoClient {
|
|
|
261
261
|
headers: {
|
|
262
262
|
'Authorization': this.authHeader,
|
|
263
263
|
'Accept': 'application/json',
|
|
264
|
+
...(body ? { 'Content-Type': 'application/json' } : {}),
|
|
264
265
|
...additionalHeaders,
|
|
265
266
|
},
|
|
267
|
+
timeout: 30000, // 30 second timeout
|
|
266
268
|
};
|
|
267
269
|
|
|
268
270
|
const req = https.request(options, (res) => {
|
|
@@ -299,6 +301,11 @@ export class AdoClient {
|
|
|
299
301
|
reject(new Error(`HTTP request failed: ${error.message}`));
|
|
300
302
|
});
|
|
301
303
|
|
|
304
|
+
req.on('timeout', () => {
|
|
305
|
+
req.destroy();
|
|
306
|
+
reject(new Error(`HTTP request timeout after 30 seconds`));
|
|
307
|
+
});
|
|
308
|
+
|
|
302
309
|
if (body) {
|
|
303
310
|
req.write(JSON.stringify(body));
|
|
304
311
|
}
|
|
@@ -317,6 +324,15 @@ export class AdoClient {
|
|
|
317
324
|
await this.request('GET', url);
|
|
318
325
|
return true;
|
|
319
326
|
} catch (error) {
|
|
327
|
+
// Enhanced error logging for debugging
|
|
328
|
+
if (error instanceof Error) {
|
|
329
|
+
console.error(`[ADO Client] Connection test failed:`, {
|
|
330
|
+
message: error.message,
|
|
331
|
+
organization: this.config.organization,
|
|
332
|
+
project: this.config.project,
|
|
333
|
+
baseUrl: this.baseUrl,
|
|
334
|
+
});
|
|
335
|
+
}
|
|
320
336
|
return false;
|
|
321
337
|
}
|
|
322
338
|
}
|
|
File without changes
|