specweave 0.14.0 → 0.15.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/README.md +58 -9
- package/bin/specweave.js +65 -0
- package/dist/cli/commands/migrate-to-profiles.d.ts.map +1 -1
- package/dist/cli/commands/migrate-to-profiles.js +0 -2
- package/dist/cli/commands/migrate-to-profiles.js.map +1 -1
- package/dist/core/agent-model-manager.d.ts +52 -0
- package/dist/core/agent-model-manager.d.ts.map +1 -0
- package/dist/core/agent-model-manager.js +120 -0
- package/dist/core/agent-model-manager.js.map +1 -0
- package/dist/core/model-selector.d.ts +57 -0
- package/dist/core/model-selector.d.ts.map +1 -0
- package/dist/core/model-selector.js +115 -0
- package/dist/core/model-selector.js.map +1 -0
- package/dist/core/phase-detector.d.ts +62 -0
- package/dist/core/phase-detector.d.ts.map +1 -0
- package/dist/core/phase-detector.js +229 -0
- package/dist/core/phase-detector.js.map +1 -0
- package/dist/core/sync/folder-mapper.d.ts.map +1 -1
- package/dist/core/sync/folder-mapper.js +70 -35
- package/dist/core/sync/folder-mapper.js.map +1 -1
- package/dist/core/sync/profile-validator.d.ts.map +1 -1
- package/dist/core/sync/profile-validator.js +35 -90
- package/dist/core/sync/profile-validator.js.map +1 -1
- package/dist/core/types/sync-profile.d.ts +101 -155
- package/dist/core/types/sync-profile.d.ts.map +1 -1
- package/dist/core/types/sync-profile.js +46 -22
- package/dist/core/types/sync-profile.js.map +1 -1
- package/dist/hooks/lib/git-diff-analyzer.d.ts +89 -0
- package/dist/hooks/lib/git-diff-analyzer.d.ts.map +1 -0
- package/dist/hooks/lib/git-diff-analyzer.js +226 -0
- package/dist/hooks/lib/git-diff-analyzer.js.map +1 -0
- package/dist/hooks/lib/invoke-translator-skill.d.ts +60 -0
- package/dist/hooks/lib/invoke-translator-skill.d.ts.map +1 -0
- package/dist/hooks/lib/invoke-translator-skill.js +201 -0
- package/dist/hooks/lib/invoke-translator-skill.js.map +1 -0
- package/dist/hooks/lib/prepare-reflection-context.d.ts +42 -0
- package/dist/hooks/lib/prepare-reflection-context.d.ts.map +1 -0
- package/dist/hooks/lib/prepare-reflection-context.js +123 -0
- package/dist/hooks/lib/prepare-reflection-context.js.map +1 -0
- package/dist/hooks/lib/reflection-config-loader.d.ts +45 -0
- package/dist/hooks/lib/reflection-config-loader.d.ts.map +1 -0
- package/dist/hooks/lib/reflection-config-loader.js +132 -0
- package/dist/hooks/lib/reflection-config-loader.js.map +1 -0
- package/dist/hooks/lib/reflection-parser.d.ts +33 -0
- package/dist/hooks/lib/reflection-parser.d.ts.map +1 -0
- package/dist/hooks/lib/reflection-parser.js +419 -0
- package/dist/hooks/lib/reflection-parser.js.map +1 -0
- package/dist/hooks/lib/reflection-prompt-builder.d.ts +56 -0
- package/dist/hooks/lib/reflection-prompt-builder.d.ts.map +1 -0
- package/dist/hooks/lib/reflection-prompt-builder.js +239 -0
- package/dist/hooks/lib/reflection-prompt-builder.js.map +1 -0
- package/dist/hooks/lib/reflection-storage.d.ts +64 -0
- package/dist/hooks/lib/reflection-storage.d.ts.map +1 -0
- package/dist/hooks/lib/reflection-storage.js +305 -0
- package/dist/hooks/lib/reflection-storage.js.map +1 -0
- package/dist/hooks/lib/run-self-reflection.d.ts +43 -0
- package/dist/hooks/lib/run-self-reflection.d.ts.map +1 -0
- package/dist/hooks/lib/run-self-reflection.js +203 -0
- package/dist/hooks/lib/run-self-reflection.js.map +1 -0
- package/dist/hooks/lib/sync-living-docs.d.ts +27 -0
- package/dist/hooks/lib/sync-living-docs.d.ts.map +1 -0
- package/dist/hooks/lib/sync-living-docs.js +116 -0
- package/dist/hooks/lib/sync-living-docs.js.map +1 -0
- package/dist/hooks/lib/translate-file.d.ts +59 -0
- package/dist/hooks/lib/translate-file.d.ts.map +1 -0
- package/dist/hooks/lib/translate-file.js +350 -0
- package/dist/hooks/lib/translate-file.js.map +1 -0
- package/dist/hooks/lib/translate-living-docs.d.ts +13 -0
- package/dist/hooks/lib/translate-living-docs.d.ts.map +1 -0
- package/dist/hooks/lib/translate-living-docs.js +175 -0
- package/dist/hooks/lib/translate-living-docs.js.map +1 -0
- package/dist/hooks/lib/types/reflection-types.d.ts +164 -0
- package/dist/hooks/lib/types/reflection-types.d.ts.map +1 -0
- package/dist/hooks/lib/types/reflection-types.js +73 -0
- package/dist/hooks/lib/types/reflection-types.js.map +1 -0
- package/dist/hooks/lib/update-tasks-md.d.ts +29 -0
- package/dist/hooks/lib/update-tasks-md.d.ts.map +1 -0
- package/dist/hooks/lib/update-tasks-md.js +203 -0
- package/dist/hooks/lib/update-tasks-md.js.map +1 -0
- package/dist/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/project-mapper.js +272 -0
- package/dist/scripts/split-spec-by-project.js +105 -0
- package/dist/spec-splitter.js +283 -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/dist/utils/env-multi-project-parser.d.ts.map +1 -1
- package/dist/utils/env-multi-project-parser.js +0 -2
- package/dist/utils/env-multi-project-parser.js.map +1 -1
- package/dist/utils/project-mapper.d.ts +19 -1
- package/dist/utils/project-mapper.d.ts.map +1 -1
- package/dist/utils/project-mapper.js +7 -4
- package/dist/utils/project-mapper.js.map +1 -1
- package/dist/utils/spec-splitter.d.ts +7 -0
- package/dist/utils/spec-splitter.d.ts.map +1 -1
- package/dist/utils/spec-splitter.js +20 -2
- package/dist/utils/spec-splitter.js.map +1 -1
- package/package.json +1 -1
- package/plugins/specweave/lib/hooks/git-diff-analyzer.js +213 -129
- package/plugins/specweave/lib/hooks/invoke-translator-skill.js +192 -146
- package/plugins/specweave/lib/hooks/prepare-reflection-context.js +116 -103
- package/plugins/specweave/lib/hooks/reflection-config-loader.js +125 -85
- package/plugins/specweave/lib/hooks/reflection-parser.js +385 -267
- package/plugins/specweave/lib/hooks/reflection-prompt-builder.js +226 -169
- package/plugins/specweave/lib/hooks/reflection-storage.js +297 -223
- package/plugins/specweave/lib/hooks/run-self-reflection.js +191 -120
- package/plugins/specweave/lib/hooks/sync-living-docs.js +129 -87
- package/plugins/specweave/lib/hooks/translate-file.js +300 -239
- package/plugins/specweave/lib/hooks/translate-living-docs.js +144 -88
- package/plugins/specweave/lib/hooks/types/reflection-types.js +72 -57
- package/plugins/specweave/lib/hooks/update-tasks-md.js +179 -117
- package/plugins/specweave-ado/lib/ado-board-resolver.js +205 -135
- package/plugins/specweave-ado/lib/ado-hierarchical-sync.js +335 -223
- package/plugins/specweave-ado/lib/ado-multi-project-sync.js +40 -7
- package/plugins/specweave-ado/lib/ado-multi-project-sync.ts +49 -7
- package/plugins/specweave-ado/lib/ado-spec-sync.js +414 -380
- package/plugins/specweave-ado/lib/project-selector.js +196 -168
- package/plugins/specweave-github/lib/cli-sync-increment-changes.js +20 -9
- package/plugins/specweave-github/lib/github-board-resolver.js +115 -69
- package/plugins/specweave-github/lib/github-client-v2.js +389 -400
- package/plugins/specweave-github/lib/github-client.js +280 -246
- package/plugins/specweave-github/lib/github-hierarchical-sync.js +251 -168
- package/plugins/specweave-github/lib/github-issue-updater.js +288 -231
- package/plugins/specweave-github/lib/github-multi-project-sync.js +58 -5
- package/plugins/specweave-github/lib/github-multi-project-sync.ts +80 -4
- package/plugins/specweave-github/lib/github-spec-sync.js +420 -379
- package/plugins/specweave-github/lib/github-sync-bidirectional.js +202 -175
- package/plugins/specweave-github/lib/github-sync-increment-changes.js +251 -212
- package/plugins/specweave-github/lib/index.js +10 -11
- package/plugins/specweave-github/lib/repo-selector.js +201 -174
- package/plugins/specweave-github/lib/subtask-sync.js +125 -132
- package/plugins/specweave-github/lib/task-parser.js +207 -191
- package/plugins/specweave-github/lib/task-sync.js +296 -344
- package/plugins/specweave-github/lib/types.js +5 -0
- package/plugins/specweave-jira/lib/jira-board-resolver.js +79 -50
- package/plugins/specweave-jira/lib/jira-hierarchical-sync.js +191 -119
- package/plugins/specweave-jira/lib/jira-multi-project-sync.js +30 -5
- package/plugins/specweave-jira/lib/jira-multi-project-sync.ts +34 -5
- package/plugins/specweave-jira/lib/jira-spec-sync.js +405 -366
- package/plugins/specweave-jira/lib/project-selector.js +201 -172
- package/plugins/specweave-jira/lib/reorganization-detector.js +237 -202
- package/plugins/specweave-jira/lib/setup-wizard.js +204 -162
|
@@ -1,244 +1,274 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
provider: "ado",
|
|
34
|
-
error: `Spec ${specId} not found`
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
const existingLink = spec.metadata.externalLinks?.ado;
|
|
38
|
-
let feature;
|
|
39
|
-
if (existingLink?.featureId) {
|
|
40
|
-
console.log(` Found existing ADO Feature #${existingLink.featureId}`);
|
|
41
|
-
feature = await this.updateAdoFeature(existingLink.featureId, spec);
|
|
42
|
-
} else {
|
|
43
|
-
console.log(" Creating new ADO Feature...");
|
|
44
|
-
feature = await this.createAdoFeature(spec);
|
|
45
|
-
await this.specManager.linkToExternal(specId, "ado", {
|
|
46
|
-
id: feature.id,
|
|
47
|
-
url: feature.url,
|
|
48
|
-
organization: this.config.organization,
|
|
49
|
-
project: this.config.project
|
|
1
|
+
/**
|
|
2
|
+
* Azure DevOps Spec Sync
|
|
3
|
+
*
|
|
4
|
+
* CORRECT ARCHITECTURE:
|
|
5
|
+
* - Syncs .specweave/docs/internal/specs/spec-*.md ↔ ADO Features
|
|
6
|
+
* - NOT increments ↔ ADO Work Items (that was wrong!)
|
|
7
|
+
*
|
|
8
|
+
* Mapping:
|
|
9
|
+
* - Spec → ADO Feature
|
|
10
|
+
* - User Story → ADO User Story (child of feature)
|
|
11
|
+
* - Acceptance Criteria → Checklist in User Story description
|
|
12
|
+
*
|
|
13
|
+
* @module ado-spec-sync
|
|
14
|
+
*/
|
|
15
|
+
import { SpecMetadataManager } from '../../../src/core/specs/spec-metadata-manager.js';
|
|
16
|
+
import { SpecParser } from '../../../src/core/specs/spec-parser.js';
|
|
17
|
+
import axios from 'axios';
|
|
18
|
+
export class AdoSpecSync {
|
|
19
|
+
constructor(config, projectRoot = process.cwd()) {
|
|
20
|
+
this.specManager = new SpecMetadataManager(projectRoot);
|
|
21
|
+
this.config = config;
|
|
22
|
+
// Create ADO API client
|
|
23
|
+
this.client = axios.create({
|
|
24
|
+
baseURL: `https://dev.azure.com/${config.organization}/${config.project}/_apis`,
|
|
25
|
+
auth: {
|
|
26
|
+
username: '', // Empty for PAT auth
|
|
27
|
+
password: config.personalAccessToken
|
|
28
|
+
},
|
|
29
|
+
headers: {
|
|
30
|
+
'Content-Type': 'application/json-patch+json',
|
|
31
|
+
'Accept': 'application/json'
|
|
32
|
+
}
|
|
50
33
|
});
|
|
51
|
-
}
|
|
52
|
-
const changes = await this.syncUserStories(feature.id, spec);
|
|
53
|
-
console.log("\u2705 Sync complete!");
|
|
54
|
-
return {
|
|
55
|
-
success: true,
|
|
56
|
-
specId,
|
|
57
|
-
provider: "ado",
|
|
58
|
-
externalId: feature.id.toString(),
|
|
59
|
-
url: feature.url,
|
|
60
|
-
changes
|
|
61
|
-
};
|
|
62
|
-
} catch (error) {
|
|
63
|
-
console.error("\u274C Error syncing to ADO:", error);
|
|
64
|
-
return {
|
|
65
|
-
success: false,
|
|
66
|
-
specId,
|
|
67
|
-
provider: "ado",
|
|
68
|
-
error: error instanceof Error ? error.message : "Unknown error"
|
|
69
|
-
};
|
|
70
34
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
35
|
+
/**
|
|
36
|
+
* Sync spec to ADO Feature (CREATE or UPDATE)
|
|
37
|
+
*/
|
|
38
|
+
async syncSpecToAdo(specId) {
|
|
39
|
+
console.log(`\n🔄 Syncing spec ${specId} to ADO Feature...`);
|
|
40
|
+
try {
|
|
41
|
+
// 1. Load spec
|
|
42
|
+
const spec = await this.specManager.loadSpec(specId);
|
|
43
|
+
if (!spec) {
|
|
44
|
+
return {
|
|
45
|
+
success: false,
|
|
46
|
+
specId,
|
|
47
|
+
provider: 'ado',
|
|
48
|
+
error: `Spec ${specId} not found`
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
// 2. Check if spec already linked to ADO Feature
|
|
52
|
+
const existingLink = spec.metadata.externalLinks?.ado;
|
|
53
|
+
let feature;
|
|
54
|
+
if (existingLink?.featureId) {
|
|
55
|
+
// UPDATE existing feature
|
|
56
|
+
console.log(` Found existing ADO Feature #${existingLink.featureId}`);
|
|
57
|
+
feature = await this.updateAdoFeature(existingLink.featureId, spec);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
// CREATE new feature
|
|
61
|
+
console.log(' Creating new ADO Feature...');
|
|
62
|
+
feature = await this.createAdoFeature(spec);
|
|
63
|
+
// Link spec to feature
|
|
64
|
+
await this.specManager.linkToExternal(specId, 'ado', {
|
|
65
|
+
id: feature.id,
|
|
66
|
+
url: feature.url,
|
|
67
|
+
organization: this.config.organization,
|
|
68
|
+
project: this.config.project
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
// 3. Sync user stories as ADO User Stories
|
|
72
|
+
const changes = await this.syncUserStories(feature.id, spec);
|
|
73
|
+
console.log('✅ Sync complete!');
|
|
74
|
+
return {
|
|
75
|
+
success: true,
|
|
76
|
+
specId,
|
|
77
|
+
provider: 'ado',
|
|
78
|
+
externalId: feature.id.toString(),
|
|
79
|
+
url: feature.url,
|
|
80
|
+
changes
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
catch (error) {
|
|
84
|
+
console.error('❌ Error syncing to ADO:', error);
|
|
85
|
+
return {
|
|
86
|
+
success: false,
|
|
87
|
+
specId,
|
|
88
|
+
provider: 'ado',
|
|
89
|
+
error: error instanceof Error ? error.message : 'Unknown error'
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Sync FROM ADO Feature to spec (bidirectional)
|
|
95
|
+
*/
|
|
96
|
+
async syncFromAdo(specId) {
|
|
97
|
+
console.log(`\n🔄 Syncing FROM ADO to spec ${specId}...`);
|
|
98
|
+
try {
|
|
99
|
+
// 1. Load spec
|
|
100
|
+
const spec = await this.specManager.loadSpec(specId);
|
|
101
|
+
if (!spec) {
|
|
102
|
+
return {
|
|
103
|
+
success: false,
|
|
104
|
+
specId,
|
|
105
|
+
provider: 'ado',
|
|
106
|
+
error: `Spec ${specId} not found`
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
// 2. Get ADO Feature link
|
|
110
|
+
const adoLink = spec.metadata.externalLinks?.ado;
|
|
111
|
+
if (!adoLink?.featureId) {
|
|
112
|
+
return {
|
|
113
|
+
success: false,
|
|
114
|
+
specId,
|
|
115
|
+
provider: 'ado',
|
|
116
|
+
error: 'Spec not linked to ADO Feature'
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
// 3. Fetch ADO Feature state
|
|
120
|
+
const feature = await this.fetchAdoFeature(adoLink.featureId);
|
|
121
|
+
// 4. Detect conflicts
|
|
122
|
+
const conflicts = await this.detectConflicts(spec, feature);
|
|
123
|
+
if (conflicts.length === 0) {
|
|
124
|
+
console.log('✅ No conflicts - spec and ADO in sync');
|
|
125
|
+
return {
|
|
126
|
+
success: true,
|
|
127
|
+
specId,
|
|
128
|
+
provider: 'ado',
|
|
129
|
+
externalId: feature.id.toString(),
|
|
130
|
+
url: feature.url
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
console.log(`⚠️ Detected ${conflicts.length} conflict(s)`);
|
|
134
|
+
// 5. Resolve conflicts (ADO wins by default for now)
|
|
135
|
+
await this.resolveConflicts(spec, conflicts);
|
|
136
|
+
console.log('✅ Sync FROM ADO complete!');
|
|
137
|
+
return {
|
|
138
|
+
success: true,
|
|
139
|
+
specId,
|
|
140
|
+
provider: 'ado',
|
|
141
|
+
externalId: feature.id.toString(),
|
|
142
|
+
url: feature.url,
|
|
143
|
+
conflicts
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
catch (error) {
|
|
147
|
+
console.error('❌ Error syncing FROM ADO:', error);
|
|
148
|
+
return {
|
|
149
|
+
success: false,
|
|
150
|
+
specId,
|
|
151
|
+
provider: 'ado',
|
|
152
|
+
error: error instanceof Error ? error.message : 'Unknown error'
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Create new ADO Feature for spec
|
|
158
|
+
*/
|
|
159
|
+
async createAdoFeature(spec) {
|
|
160
|
+
const featureTitle = `[${spec.metadata.id.toUpperCase()}] ${spec.metadata.title}`;
|
|
161
|
+
const featureDescription = this.generateFeatureDescription(spec);
|
|
162
|
+
const tags = [`spec:${spec.metadata.id}`, `priority:${spec.metadata.priority}`].join('; ');
|
|
163
|
+
const payload = [
|
|
164
|
+
{
|
|
165
|
+
op: 'add',
|
|
166
|
+
path: '/fields/System.Title',
|
|
167
|
+
value: featureTitle
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
op: 'add',
|
|
171
|
+
path: '/fields/System.Description',
|
|
172
|
+
value: featureDescription
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
op: 'add',
|
|
176
|
+
path: '/fields/System.WorkItemType',
|
|
177
|
+
value: 'Feature'
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
op: 'add',
|
|
181
|
+
path: '/fields/System.Tags',
|
|
182
|
+
value: tags
|
|
183
|
+
}
|
|
184
|
+
];
|
|
185
|
+
const response = await this.client.post('/wit/workitems/$Feature?api-version=7.0', payload);
|
|
186
|
+
const featureData = response.data;
|
|
187
|
+
console.log(` ✅ Created ADO Feature #${featureData.id}: ${featureData._links.html.href}`);
|
|
90
188
|
return {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
error: "Spec not linked to ADO Feature"
|
|
189
|
+
id: featureData.id,
|
|
190
|
+
url: featureData._links.html.href,
|
|
191
|
+
fields: featureData.fields
|
|
95
192
|
};
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Update existing ADO Feature
|
|
196
|
+
*/
|
|
197
|
+
async updateAdoFeature(featureId, spec) {
|
|
198
|
+
const featureTitle = `[${spec.metadata.id.toUpperCase()}] ${spec.metadata.title}`;
|
|
199
|
+
const featureDescription = this.generateFeatureDescription(spec);
|
|
200
|
+
const payload = [
|
|
201
|
+
{
|
|
202
|
+
op: 'replace',
|
|
203
|
+
path: '/fields/System.Title',
|
|
204
|
+
value: featureTitle
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
op: 'replace',
|
|
208
|
+
path: '/fields/System.Description',
|
|
209
|
+
value: featureDescription
|
|
210
|
+
}
|
|
211
|
+
];
|
|
212
|
+
const response = await this.client.patch(`/wit/workitems/${featureId}?api-version=7.0`, payload);
|
|
213
|
+
const featureData = response.data;
|
|
214
|
+
console.log(` ✅ Updated ADO Feature #${featureId}`);
|
|
101
215
|
return {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
externalId: feature.id.toString(),
|
|
106
|
-
url: feature.url
|
|
216
|
+
id: featureData.id,
|
|
217
|
+
url: featureData._links.html.href,
|
|
218
|
+
fields: featureData.fields
|
|
107
219
|
};
|
|
108
|
-
}
|
|
109
|
-
console.log(`\u26A0\uFE0F Detected ${conflicts.length} conflict(s)`);
|
|
110
|
-
await this.resolveConflicts(spec, conflicts);
|
|
111
|
-
console.log("\u2705 Sync FROM ADO complete!");
|
|
112
|
-
return {
|
|
113
|
-
success: true,
|
|
114
|
-
specId,
|
|
115
|
-
provider: "ado",
|
|
116
|
-
externalId: feature.id.toString(),
|
|
117
|
-
url: feature.url,
|
|
118
|
-
conflicts
|
|
119
|
-
};
|
|
120
|
-
} catch (error) {
|
|
121
|
-
console.error("\u274C Error syncing FROM ADO:", error);
|
|
122
|
-
return {
|
|
123
|
-
success: false,
|
|
124
|
-
specId,
|
|
125
|
-
provider: "ado",
|
|
126
|
-
error: error instanceof Error ? error.message : "Unknown error"
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Create new ADO Feature for spec
|
|
132
|
-
*/
|
|
133
|
-
async createAdoFeature(spec) {
|
|
134
|
-
const featureTitle = `[${spec.metadata.id.toUpperCase()}] ${spec.metadata.title}`;
|
|
135
|
-
const featureDescription = this.generateFeatureDescription(spec);
|
|
136
|
-
const tags = [`spec:${spec.metadata.id}`, `priority:${spec.metadata.priority}`].join("; ");
|
|
137
|
-
const payload = [
|
|
138
|
-
{
|
|
139
|
-
op: "add",
|
|
140
|
-
path: "/fields/System.Title",
|
|
141
|
-
value: featureTitle
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
op: "add",
|
|
145
|
-
path: "/fields/System.Description",
|
|
146
|
-
value: featureDescription
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
op: "add",
|
|
150
|
-
path: "/fields/System.WorkItemType",
|
|
151
|
-
value: "Feature"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
op: "add",
|
|
155
|
-
path: "/fields/System.Tags",
|
|
156
|
-
value: tags
|
|
157
|
-
}
|
|
158
|
-
];
|
|
159
|
-
const response = await this.client.post("/wit/workitems/$Feature?api-version=7.0", payload);
|
|
160
|
-
const featureData = response.data;
|
|
161
|
-
console.log(` \u2705 Created ADO Feature #${featureData.id}: ${featureData._links.html.href}`);
|
|
162
|
-
return {
|
|
163
|
-
id: featureData.id,
|
|
164
|
-
url: featureData._links.html.href,
|
|
165
|
-
fields: featureData.fields
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Update existing ADO Feature
|
|
170
|
-
*/
|
|
171
|
-
async updateAdoFeature(featureId, spec) {
|
|
172
|
-
const featureTitle = `[${spec.metadata.id.toUpperCase()}] ${spec.metadata.title}`;
|
|
173
|
-
const featureDescription = this.generateFeatureDescription(spec);
|
|
174
|
-
const payload = [
|
|
175
|
-
{
|
|
176
|
-
op: "replace",
|
|
177
|
-
path: "/fields/System.Title",
|
|
178
|
-
value: featureTitle
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
op: "replace",
|
|
182
|
-
path: "/fields/System.Description",
|
|
183
|
-
value: featureDescription
|
|
184
|
-
}
|
|
185
|
-
];
|
|
186
|
-
const response = await this.client.patch(
|
|
187
|
-
`/wit/workitems/${featureId}?api-version=7.0`,
|
|
188
|
-
payload
|
|
189
|
-
);
|
|
190
|
-
const featureData = response.data;
|
|
191
|
-
console.log(` \u2705 Updated ADO Feature #${featureId}`);
|
|
192
|
-
return {
|
|
193
|
-
id: featureData.id,
|
|
194
|
-
url: featureData._links.html.href,
|
|
195
|
-
fields: featureData.fields
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Sync user stories as ADO User Stories
|
|
200
|
-
*/
|
|
201
|
-
async syncUserStories(featureId, spec) {
|
|
202
|
-
const created = [];
|
|
203
|
-
const updated = [];
|
|
204
|
-
const deleted = [];
|
|
205
|
-
if (!spec.metadata.userStories || spec.metadata.userStories.length === 0) {
|
|
206
|
-
console.log(" \u2139\uFE0F No user stories to sync");
|
|
207
|
-
return { created, updated, deleted };
|
|
208
220
|
}
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
221
|
+
/**
|
|
222
|
+
* Sync user stories as ADO User Stories
|
|
223
|
+
*/
|
|
224
|
+
async syncUserStories(featureId, spec) {
|
|
225
|
+
const created = [];
|
|
226
|
+
const updated = [];
|
|
227
|
+
const deleted = [];
|
|
228
|
+
if (!spec.metadata.userStories || spec.metadata.userStories.length === 0) {
|
|
229
|
+
console.log(' ℹ️ No user stories to sync');
|
|
230
|
+
return { created, updated, deleted };
|
|
231
|
+
}
|
|
232
|
+
console.log(` Syncing ${spec.metadata.userStories.length} user stories...`);
|
|
233
|
+
for (const us of spec.metadata.userStories) {
|
|
234
|
+
// Create or update ADO User Story for each user story
|
|
235
|
+
const storyTitle = `[${us.id}] ${us.title}`;
|
|
236
|
+
const storyDescription = this.generateStoryDescription(us);
|
|
237
|
+
// Check if story already exists (by searching for US-ID in title)
|
|
238
|
+
const existingStory = await this.findStoryByTitle(us.id);
|
|
239
|
+
if (existingStory) {
|
|
240
|
+
// UPDATE existing story
|
|
241
|
+
await this.updateStory(existingStory.id, {
|
|
242
|
+
title: storyTitle,
|
|
243
|
+
description: storyDescription,
|
|
244
|
+
state: us.status === 'done' ? 'Closed' : us.status === 'in-progress' ? 'Active' : 'New'
|
|
245
|
+
});
|
|
246
|
+
updated.push(us.id);
|
|
247
|
+
console.log(` ✅ Updated ${us.id}`);
|
|
248
|
+
}
|
|
249
|
+
else {
|
|
250
|
+
// CREATE new story
|
|
251
|
+
const newStory = await this.createStory({
|
|
252
|
+
title: storyTitle,
|
|
253
|
+
description: storyDescription,
|
|
254
|
+
parentId: featureId,
|
|
255
|
+
tags: [`user-story`, `spec:${spec.metadata.id}`, `priority:${us.priority}`].join('; ')
|
|
256
|
+
});
|
|
257
|
+
created.push(us.id);
|
|
258
|
+
console.log(` ✅ Created ${us.id} → User Story #${newStory.id}`);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
return { created, updated, deleted };
|
|
232
262
|
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
263
|
+
/**
|
|
264
|
+
* Generate feature description from spec
|
|
265
|
+
*/
|
|
266
|
+
generateFeatureDescription(spec) {
|
|
267
|
+
const progress = spec.metadata.progress;
|
|
268
|
+
const progressText = progress
|
|
269
|
+
? `**Progress**: ${progress.percentComplete}% (${progress.completedUserStories}/${progress.totalUserStories} user stories)`
|
|
270
|
+
: '**Progress**: N/A';
|
|
271
|
+
return `
|
|
242
272
|
<h1>${spec.metadata.title}</h1>
|
|
243
273
|
|
|
244
274
|
<p><strong>Spec ID</strong>: ${spec.metadata.id}</p>
|
|
@@ -248,7 +278,7 @@ class AdoSpecSync {
|
|
|
248
278
|
|
|
249
279
|
<hr>
|
|
250
280
|
|
|
251
|
-
${SpecParser.extractOverview(spec.markdown).replace(/\n/g,
|
|
281
|
+
${SpecParser.extractOverview(spec.markdown).replace(/\n/g, '<br>')}
|
|
252
282
|
|
|
253
283
|
<hr>
|
|
254
284
|
|
|
@@ -258,16 +288,18 @@ ${SpecParser.extractOverview(spec.markdown).replace(/\n/g, "<br>")}
|
|
|
258
288
|
|
|
259
289
|
<hr>
|
|
260
290
|
|
|
261
|
-
<p
|
|
262
|
-
Last updated: ${
|
|
291
|
+
<p>🤖 <strong>Auto-synced from SpecWeave</strong><br>
|
|
292
|
+
Last updated: ${new Date().toISOString()}</p>
|
|
263
293
|
`.trim();
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Generate story description from user story
|
|
297
|
+
*/
|
|
298
|
+
generateStoryDescription(us) {
|
|
299
|
+
const acList = us.acceptanceCriteria
|
|
300
|
+
.map(ac => `<li>${ac.status === 'done' ? '☑' : '☐'} ${ac.description}</li>`)
|
|
301
|
+
.join('\n');
|
|
302
|
+
return `
|
|
271
303
|
<h2>User Story</h2>
|
|
272
304
|
|
|
273
305
|
<p>${us.title}</p>
|
|
@@ -283,155 +315,157 @@ ${acList}
|
|
|
283
315
|
<p><strong>Priority</strong>: ${us.priority}</p>
|
|
284
316
|
<p><strong>Status</strong>: ${us.status}</p>
|
|
285
317
|
|
|
286
|
-
<p
|
|
318
|
+
<p>🤖 <strong>Auto-synced from SpecWeave</strong></p>
|
|
287
319
|
`.trim();
|
|
288
|
-
}
|
|
289
|
-
/**
|
|
290
|
-
* Detect conflicts between spec and ADO
|
|
291
|
-
*/
|
|
292
|
-
async detectConflicts(spec, feature) {
|
|
293
|
-
const conflicts = [];
|
|
294
|
-
const expectedTitle = `[${spec.metadata.id.toUpperCase()}] ${spec.metadata.title}`;
|
|
295
|
-
if (feature.fields["System.Title"] !== expectedTitle) {
|
|
296
|
-
conflicts.push({
|
|
297
|
-
type: "metadata",
|
|
298
|
-
field: "title",
|
|
299
|
-
localValue: spec.metadata.title,
|
|
300
|
-
remoteValue: feature.fields["System.Title"],
|
|
301
|
-
resolution: "remote-wins",
|
|
302
|
-
description: "Feature title differs from spec title"
|
|
303
|
-
});
|
|
304
320
|
}
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
321
|
+
/**
|
|
322
|
+
* Detect conflicts between spec and ADO
|
|
323
|
+
*/
|
|
324
|
+
async detectConflicts(spec, feature) {
|
|
325
|
+
const conflicts = [];
|
|
326
|
+
// Compare feature title
|
|
327
|
+
const expectedTitle = `[${spec.metadata.id.toUpperCase()}] ${spec.metadata.title}`;
|
|
328
|
+
if (feature.fields['System.Title'] !== expectedTitle) {
|
|
329
|
+
conflicts.push({
|
|
330
|
+
type: 'metadata',
|
|
331
|
+
field: 'title',
|
|
332
|
+
localValue: spec.metadata.title,
|
|
333
|
+
remoteValue: feature.fields['System.Title'],
|
|
334
|
+
resolution: 'remote-wins',
|
|
335
|
+
description: 'Feature title differs from spec title'
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
// TODO: Compare user stories and their statuses
|
|
339
|
+
return conflicts;
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* Resolve conflicts
|
|
343
|
+
*/
|
|
344
|
+
async resolveConflicts(spec, conflicts) {
|
|
345
|
+
for (const conflict of conflicts) {
|
|
346
|
+
if (conflict.resolution === 'remote-wins') {
|
|
347
|
+
console.log(` 🔄 Resolving: ${conflict.description} (ADO wins)`);
|
|
348
|
+
// Update spec metadata from ADO
|
|
349
|
+
if (conflict.field === 'title') {
|
|
350
|
+
await this.specManager.saveMetadata(spec.metadata.id, {
|
|
351
|
+
title: conflict.remoteValue
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
}
|
|
318
355
|
}
|
|
319
|
-
}
|
|
320
356
|
}
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
const wiql = `
|
|
357
|
+
/**
|
|
358
|
+
* Fetch ADO Feature details
|
|
359
|
+
*/
|
|
360
|
+
async fetchAdoFeature(featureId) {
|
|
361
|
+
const response = await this.client.get(`/wit/workitems/${featureId}?api-version=7.0`);
|
|
362
|
+
const featureData = response.data;
|
|
363
|
+
return {
|
|
364
|
+
id: featureData.id,
|
|
365
|
+
url: featureData._links.html.href,
|
|
366
|
+
fields: featureData.fields
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* Find story by title pattern
|
|
371
|
+
*/
|
|
372
|
+
async findStoryByTitle(usId) {
|
|
373
|
+
const wiql = `
|
|
339
374
|
SELECT [System.Id], [System.Title], [System.Description], [System.State]
|
|
340
375
|
FROM WorkItems
|
|
341
376
|
WHERE [System.TeamProject] = '${this.config.project}'
|
|
342
377
|
AND [System.WorkItemType] = 'User Story'
|
|
343
378
|
AND [System.Title] CONTAINS '[${usId}]'
|
|
344
379
|
`;
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
}
|
|
352
|
-
const workItemId = workItems[0].id;
|
|
353
|
-
const detailsResponse = await this.client.get(`/wit/workitems/${workItemId}?api-version=7.0`);
|
|
354
|
-
const storyData = detailsResponse.data;
|
|
355
|
-
return {
|
|
356
|
-
id: storyData.id,
|
|
357
|
-
url: storyData._links.html.href,
|
|
358
|
-
fields: storyData.fields
|
|
359
|
-
};
|
|
360
|
-
}
|
|
361
|
-
/**
|
|
362
|
-
* Create ADO User Story
|
|
363
|
-
*/
|
|
364
|
-
async createStory(story) {
|
|
365
|
-
const payload = [
|
|
366
|
-
{
|
|
367
|
-
op: "add",
|
|
368
|
-
path: "/fields/System.Title",
|
|
369
|
-
value: story.title
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
op: "add",
|
|
373
|
-
path: "/fields/System.Description",
|
|
374
|
-
value: story.description
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
op: "add",
|
|
378
|
-
path: "/fields/System.WorkItemType",
|
|
379
|
-
value: "User Story"
|
|
380
|
-
},
|
|
381
|
-
{
|
|
382
|
-
op: "add",
|
|
383
|
-
path: "/fields/System.Tags",
|
|
384
|
-
value: story.tags
|
|
385
|
-
},
|
|
386
|
-
{
|
|
387
|
-
op: "add",
|
|
388
|
-
path: "/relations/-",
|
|
389
|
-
value: {
|
|
390
|
-
rel: "System.LinkTypes.Hierarchy-Reverse",
|
|
391
|
-
url: `https://dev.azure.com/${this.config.organization}/${this.config.project}/_apis/wit/workitems/${story.parentId}`,
|
|
392
|
-
attributes: {
|
|
393
|
-
name: "Parent"
|
|
394
|
-
}
|
|
380
|
+
const response = await this.client.post('/wit/wiql?api-version=7.0', {
|
|
381
|
+
query: wiql
|
|
382
|
+
});
|
|
383
|
+
const workItems = response.data.workItems;
|
|
384
|
+
if (workItems.length === 0) {
|
|
385
|
+
return null;
|
|
395
386
|
}
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
}
|
|
406
|
-
/**
|
|
407
|
-
* Update ADO User Story
|
|
408
|
-
*/
|
|
409
|
-
async updateStory(storyId, updates) {
|
|
410
|
-
const payload = [];
|
|
411
|
-
if (updates.title) {
|
|
412
|
-
payload.push({
|
|
413
|
-
op: "replace",
|
|
414
|
-
path: "/fields/System.Title",
|
|
415
|
-
value: updates.title
|
|
416
|
-
});
|
|
387
|
+
// Fetch full work item details
|
|
388
|
+
const workItemId = workItems[0].id;
|
|
389
|
+
const detailsResponse = await this.client.get(`/wit/workitems/${workItemId}?api-version=7.0`);
|
|
390
|
+
const storyData = detailsResponse.data;
|
|
391
|
+
return {
|
|
392
|
+
id: storyData.id,
|
|
393
|
+
url: storyData._links.html.href,
|
|
394
|
+
fields: storyData.fields
|
|
395
|
+
};
|
|
417
396
|
}
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
397
|
+
/**
|
|
398
|
+
* Create ADO User Story
|
|
399
|
+
*/
|
|
400
|
+
async createStory(story) {
|
|
401
|
+
const payload = [
|
|
402
|
+
{
|
|
403
|
+
op: 'add',
|
|
404
|
+
path: '/fields/System.Title',
|
|
405
|
+
value: story.title
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
op: 'add',
|
|
409
|
+
path: '/fields/System.Description',
|
|
410
|
+
value: story.description
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
op: 'add',
|
|
414
|
+
path: '/fields/System.WorkItemType',
|
|
415
|
+
value: 'User Story'
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
op: 'add',
|
|
419
|
+
path: '/fields/System.Tags',
|
|
420
|
+
value: story.tags
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
op: 'add',
|
|
424
|
+
path: '/relations/-',
|
|
425
|
+
value: {
|
|
426
|
+
rel: 'System.LinkTypes.Hierarchy-Reverse',
|
|
427
|
+
url: `https://dev.azure.com/${this.config.organization}/${this.config.project}/_apis/wit/workitems/${story.parentId}`,
|
|
428
|
+
attributes: {
|
|
429
|
+
name: 'Parent'
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
];
|
|
434
|
+
const response = await this.client.post('/wit/workitems/$User%20Story?api-version=7.0', payload);
|
|
435
|
+
const storyData = response.data;
|
|
436
|
+
return {
|
|
437
|
+
id: storyData.id,
|
|
438
|
+
url: storyData._links.html.href,
|
|
439
|
+
fields: storyData.fields
|
|
440
|
+
};
|
|
424
441
|
}
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
442
|
+
/**
|
|
443
|
+
* Update ADO User Story
|
|
444
|
+
*/
|
|
445
|
+
async updateStory(storyId, updates) {
|
|
446
|
+
const payload = [];
|
|
447
|
+
if (updates.title) {
|
|
448
|
+
payload.push({
|
|
449
|
+
op: 'replace',
|
|
450
|
+
path: '/fields/System.Title',
|
|
451
|
+
value: updates.title
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
if (updates.description) {
|
|
455
|
+
payload.push({
|
|
456
|
+
op: 'replace',
|
|
457
|
+
path: '/fields/System.Description',
|
|
458
|
+
value: updates.description
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
if (updates.state) {
|
|
462
|
+
payload.push({
|
|
463
|
+
op: 'replace',
|
|
464
|
+
path: '/fields/System.State',
|
|
465
|
+
value: updates.state
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
await this.client.patch(`/wit/workitems/${storyId}?api-version=7.0`, payload);
|
|
431
469
|
}
|
|
432
|
-
await this.client.patch(`/wit/workitems/${storyId}?api-version=7.0`, payload);
|
|
433
|
-
}
|
|
434
470
|
}
|
|
435
|
-
|
|
436
|
-
AdoSpecSync
|
|
437
|
-
};
|
|
471
|
+
//# sourceMappingURL=ado-spec-sync.js.map
|