specweave 0.12.7 → 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 +25 -313
- 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/core/increment/discipline-checker.d.ts +60 -0
- package/dist/core/increment/discipline-checker.d.ts.map +1 -0
- package/dist/core/increment/discipline-checker.js +274 -0
- package/dist/core/increment/discipline-checker.js.map +1 -0
- package/dist/core/increment/metadata-validator.d.ts +33 -0
- package/dist/core/increment/metadata-validator.d.ts.map +1 -0
- package/dist/core/increment/metadata-validator.js +147 -0
- package/dist/core/increment/metadata-validator.js.map +1 -0
- package/dist/core/increment/types.d.ts +88 -0
- package/dist/core/increment/types.d.ts.map +1 -0
- package/dist/core/increment/types.js +8 -0
- package/dist/core/increment/types.js.map +1 -0
- package/dist/core/qa/qa-runner.d.ts.map +1 -1
- package/dist/core/qa/qa-runner.js +22 -4
- package/dist/core/qa/qa-runner.js.map +1 -1
- package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.d.ts +89 -0
- package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.js +226 -0
- package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.d.ts +60 -0
- package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.js +201 -0
- package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.d.ts +42 -0
- package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.js +123 -0
- package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/reflection-config-loader.d.ts +45 -0
- package/dist/plugins/specweave/lib/hooks/reflection-config-loader.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/reflection-config-loader.js +132 -0
- package/dist/plugins/specweave/lib/hooks/reflection-config-loader.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/reflection-parser.d.ts +33 -0
- package/dist/plugins/specweave/lib/hooks/reflection-parser.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/reflection-parser.js +419 -0
- package/dist/plugins/specweave/lib/hooks/reflection-parser.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.d.ts +56 -0
- package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.js +239 -0
- package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/reflection-storage.d.ts +64 -0
- package/dist/plugins/specweave/lib/hooks/reflection-storage.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/reflection-storage.js +305 -0
- package/dist/plugins/specweave/lib/hooks/reflection-storage.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/run-self-reflection.d.ts +43 -0
- package/dist/plugins/specweave/lib/hooks/run-self-reflection.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/run-self-reflection.js +203 -0
- package/dist/plugins/specweave/lib/hooks/run-self-reflection.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/sync-living-docs.d.ts +27 -0
- package/dist/plugins/specweave/lib/hooks/sync-living-docs.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/sync-living-docs.js +144 -0
- package/dist/plugins/specweave/lib/hooks/sync-living-docs.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/translate-file.d.ts +59 -0
- package/dist/plugins/specweave/lib/hooks/translate-file.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/translate-file.js +350 -0
- package/dist/plugins/specweave/lib/hooks/translate-file.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/translate-living-docs.d.ts +13 -0
- package/dist/plugins/specweave/lib/hooks/translate-living-docs.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/translate-living-docs.js +175 -0
- package/dist/plugins/specweave/lib/hooks/translate-living-docs.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/types/reflection-types.d.ts +164 -0
- package/dist/plugins/specweave/lib/hooks/types/reflection-types.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/types/reflection-types.js +73 -0
- package/dist/plugins/specweave/lib/hooks/types/reflection-types.js.map +1 -0
- package/dist/plugins/specweave/lib/hooks/update-tasks-md.d.ts +29 -0
- package/dist/plugins/specweave/lib/hooks/update-tasks-md.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/hooks/update-tasks-md.js +203 -0
- package/dist/plugins/specweave/lib/hooks/update-tasks-md.js.map +1 -0
- package/dist/plugins/specweave-ado/lib/ado-board-resolver.d.ts +94 -0
- package/dist/plugins/specweave-ado/lib/ado-board-resolver.d.ts.map +1 -0
- package/dist/plugins/specweave-ado/lib/ado-board-resolver.js +219 -0
- package/dist/plugins/specweave-ado/lib/ado-board-resolver.js.map +1 -0
- package/dist/plugins/specweave-ado/lib/ado-client-v2.d.ts +124 -0
- package/dist/plugins/specweave-ado/lib/ado-client-v2.d.ts.map +1 -0
- package/dist/plugins/specweave-ado/lib/ado-client-v2.js +382 -0
- package/dist/plugins/specweave-ado/lib/ado-client-v2.js.map +1 -0
- package/dist/plugins/specweave-ado/lib/ado-client.d.ts +112 -0
- package/dist/plugins/specweave-ado/lib/ado-client.d.ts.map +1 -0
- package/dist/plugins/specweave-ado/lib/ado-client.js +257 -0
- package/dist/plugins/specweave-ado/lib/ado-client.js.map +1 -0
- package/dist/plugins/specweave-ado/lib/ado-hierarchical-sync.d.ts +40 -0
- package/dist/plugins/specweave-ado/lib/ado-hierarchical-sync.d.ts.map +1 -0
- package/dist/plugins/specweave-ado/lib/ado-hierarchical-sync.js +370 -0
- package/dist/plugins/specweave-ado/lib/ado-hierarchical-sync.js.map +1 -0
- package/dist/plugins/specweave-ado/lib/ado-spec-sync.d.ts +100 -0
- package/dist/plugins/specweave-ado/lib/ado-spec-sync.d.ts.map +1 -0
- package/dist/plugins/specweave-ado/lib/ado-spec-sync.js +471 -0
- package/dist/plugins/specweave-ado/lib/ado-spec-sync.js.map +1 -0
- package/dist/plugins/specweave-ado/lib/project-selector.d.ts +42 -0
- package/dist/plugins/specweave-ado/lib/project-selector.d.ts.map +1 -0
- package/dist/plugins/specweave-ado/lib/project-selector.js +211 -0
- package/dist/plugins/specweave-ado/lib/project-selector.js.map +1 -0
- package/dist/plugins/specweave-github/lib/cli-sync-increment-changes.d.ts +12 -0
- package/dist/plugins/specweave-github/lib/cli-sync-increment-changes.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/cli-sync-increment-changes.js +28 -0
- package/dist/plugins/specweave-github/lib/cli-sync-increment-changes.js.map +1 -0
- package/dist/plugins/specweave-github/lib/github-board-resolver.d.ts +54 -0
- package/dist/plugins/specweave-github/lib/github-board-resolver.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/github-board-resolver.js +122 -0
- package/dist/plugins/specweave-github/lib/github-board-resolver.js.map +1 -0
- package/dist/plugins/specweave-github/lib/github-client-v2.d.ts +104 -0
- package/dist/plugins/specweave-github/lib/github-client-v2.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/github-client-v2.js +408 -0
- package/dist/plugins/specweave-github/lib/github-client-v2.js.map +1 -0
- package/dist/plugins/specweave-github/lib/github-client.d.ts +96 -0
- package/dist/plugins/specweave-github/lib/github-client.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/github-client.js +299 -0
- package/dist/plugins/specweave-github/lib/github-client.js.map +1 -0
- package/dist/plugins/specweave-github/lib/github-hierarchical-sync.d.ts +29 -0
- package/dist/plugins/specweave-github/lib/github-hierarchical-sync.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/github-hierarchical-sync.js +268 -0
- package/dist/plugins/specweave-github/lib/github-hierarchical-sync.js.map +1 -0
- package/dist/plugins/specweave-github/lib/github-issue-updater.d.ts +61 -0
- package/dist/plugins/specweave-github/lib/github-issue-updater.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/github-issue-updater.js +327 -0
- package/dist/plugins/specweave-github/lib/github-issue-updater.js.map +1 -0
- package/dist/plugins/specweave-github/lib/github-spec-sync.d.ts +108 -0
- package/dist/plugins/specweave-github/lib/github-spec-sync.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/github-spec-sync.js +505 -0
- package/dist/plugins/specweave-github/lib/github-spec-sync.js.map +1 -0
- package/dist/plugins/specweave-github/lib/github-sync-bidirectional.d.ts +36 -0
- package/dist/plugins/specweave-github/lib/github-sync-bidirectional.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/github-sync-bidirectional.js +228 -0
- package/dist/plugins/specweave-github/lib/github-sync-bidirectional.js.map +1 -0
- package/dist/plugins/specweave-github/lib/github-sync-increment-changes.d.ts +18 -0
- package/dist/plugins/specweave-github/lib/github-sync-increment-changes.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/github-sync-increment-changes.js +287 -0
- package/dist/plugins/specweave-github/lib/github-sync-increment-changes.js.map +1 -0
- package/dist/plugins/specweave-github/lib/index.d.ts +10 -0
- package/dist/plugins/specweave-github/lib/index.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/index.js +10 -0
- package/dist/plugins/specweave-github/lib/index.js.map +1 -0
- package/dist/plugins/specweave-github/lib/repo-selector.d.ts +49 -0
- package/dist/plugins/specweave-github/lib/repo-selector.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/repo-selector.js +216 -0
- package/dist/plugins/specweave-github/lib/repo-selector.js.map +1 -0
- package/dist/plugins/specweave-github/lib/subtask-sync.d.ts +51 -0
- package/dist/plugins/specweave-github/lib/subtask-sync.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/subtask-sync.js +147 -0
- package/dist/plugins/specweave-github/lib/subtask-sync.js.map +1 -0
- package/dist/plugins/specweave-github/lib/task-parser.d.ts +37 -0
- package/dist/plugins/specweave-github/lib/task-parser.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/task-parser.js +211 -0
- package/dist/plugins/specweave-github/lib/task-parser.js.map +1 -0
- package/dist/plugins/specweave-github/lib/task-sync.d.ts +51 -0
- package/dist/plugins/specweave-github/lib/task-sync.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/task-sync.js +332 -0
- package/dist/plugins/specweave-github/lib/task-sync.js.map +1 -0
- package/dist/plugins/specweave-github/lib/types.d.ts +80 -0
- package/dist/plugins/specweave-github/lib/types.d.ts.map +1 -0
- package/dist/plugins/specweave-github/lib/types.js +5 -0
- package/dist/plugins/specweave-github/lib/types.js.map +1 -0
- package/dist/plugins/specweave-jira/lib/jira-board-resolver.d.ts +50 -0
- package/dist/plugins/specweave-jira/lib/jira-board-resolver.d.ts.map +1 -0
- package/dist/plugins/specweave-jira/lib/jira-board-resolver.js +84 -0
- package/dist/plugins/specweave-jira/lib/jira-board-resolver.js.map +1 -0
- package/dist/plugins/specweave-jira/lib/jira-hierarchical-sync.d.ts +33 -0
- package/dist/plugins/specweave-jira/lib/jira-hierarchical-sync.d.ts.map +1 -0
- package/dist/plugins/specweave-jira/lib/jira-hierarchical-sync.js +206 -0
- package/dist/plugins/specweave-jira/lib/jira-hierarchical-sync.js.map +1 -0
- package/dist/plugins/specweave-jira/lib/jira-spec-sync.d.ts +105 -0
- package/dist/plugins/specweave-jira/lib/jira-spec-sync.d.ts.map +1 -0
- package/dist/plugins/specweave-jira/lib/jira-spec-sync.js +456 -0
- package/dist/plugins/specweave-jira/lib/jira-spec-sync.js.map +1 -0
- package/dist/plugins/specweave-jira/lib/project-selector.d.ts +42 -0
- package/dist/plugins/specweave-jira/lib/project-selector.d.ts.map +1 -0
- package/dist/plugins/specweave-jira/lib/project-selector.js +216 -0
- package/dist/plugins/specweave-jira/lib/project-selector.js.map +1 -0
- package/dist/plugins/specweave-jira/lib/reorganization-detector.d.ts +67 -0
- package/dist/plugins/specweave-jira/lib/reorganization-detector.d.ts.map +1 -0
- package/dist/plugins/specweave-jira/lib/reorganization-detector.js +252 -0
- package/dist/plugins/specweave-jira/lib/reorganization-detector.js.map +1 -0
- package/dist/plugins/specweave-jira/lib/setup-wizard.d.ts +29 -0
- package/dist/plugins/specweave-jira/lib/setup-wizard.d.ts.map +1 -0
- package/dist/plugins/specweave-jira/lib/setup-wizard.js +219 -0
- package/dist/plugins/specweave-jira/lib/setup-wizard.js.map +1 -0
- package/dist/src/adapters/adapter-base.d.ts +71 -0
- package/dist/src/adapters/adapter-base.d.ts.map +1 -0
- package/dist/src/adapters/adapter-base.js +139 -0
- package/dist/src/adapters/adapter-base.js.map +1 -0
- package/dist/src/adapters/adapter-interface.d.ts +149 -0
- package/dist/src/adapters/adapter-interface.d.ts.map +1 -0
- package/dist/src/adapters/adapter-interface.js +8 -0
- package/dist/src/adapters/adapter-interface.js.map +1 -0
- package/dist/src/adapters/adapter-loader.d.ts +91 -0
- package/dist/src/adapters/adapter-loader.d.ts.map +1 -0
- package/dist/src/adapters/adapter-loader.js +238 -0
- package/dist/src/adapters/adapter-loader.js.map +1 -0
- package/dist/src/adapters/agents-md-generator.d.ts +48 -0
- package/dist/src/adapters/agents-md-generator.d.ts.map +1 -0
- package/dist/src/adapters/agents-md-generator.js +193 -0
- package/dist/src/adapters/agents-md-generator.js.map +1 -0
- package/dist/src/adapters/claude/adapter.d.ts +128 -0
- package/dist/src/adapters/claude/adapter.d.ts.map +1 -0
- package/dist/src/adapters/claude/adapter.js +415 -0
- package/dist/src/adapters/claude/adapter.js.map +1 -0
- package/dist/src/adapters/claude-md-generator.d.ts +78 -0
- package/dist/src/adapters/claude-md-generator.d.ts.map +1 -0
- package/dist/src/adapters/claude-md-generator.js +307 -0
- package/dist/src/adapters/claude-md-generator.js.map +1 -0
- package/dist/src/adapters/codex/adapter.d.ts +50 -0
- package/dist/src/adapters/codex/adapter.d.ts.map +1 -0
- package/dist/src/adapters/codex/adapter.js +316 -0
- package/dist/src/adapters/codex/adapter.js.map +1 -0
- package/dist/src/adapters/cursor/adapter.d.ts +98 -0
- package/dist/src/adapters/cursor/adapter.d.ts.map +1 -0
- package/dist/src/adapters/cursor/adapter.js +406 -0
- package/dist/src/adapters/cursor/adapter.js.map +1 -0
- package/dist/src/adapters/doc-generator.d.ts +69 -0
- package/dist/src/adapters/doc-generator.d.ts.map +1 -0
- package/dist/src/adapters/doc-generator.js +247 -0
- package/dist/src/adapters/doc-generator.js.map +1 -0
- package/dist/src/adapters/gemini/adapter.d.ts +50 -0
- package/dist/src/adapters/gemini/adapter.d.ts.map +1 -0
- package/dist/src/adapters/gemini/adapter.js +281 -0
- package/dist/src/adapters/gemini/adapter.js.map +1 -0
- package/dist/src/adapters/generic/adapter.d.ts +86 -0
- package/dist/src/adapters/generic/adapter.d.ts.map +1 -0
- package/dist/src/adapters/generic/adapter.js +338 -0
- package/dist/src/adapters/generic/adapter.js.map +1 -0
- package/dist/src/cli/commands/abandon.d.ts +13 -0
- package/dist/src/cli/commands/abandon.d.ts.map +1 -0
- package/dist/src/cli/commands/abandon.js +15 -0
- package/dist/src/cli/commands/abandon.js.map +1 -0
- package/dist/src/cli/commands/import-docs.d.ts +21 -0
- package/dist/src/cli/commands/import-docs.d.ts.map +1 -0
- package/dist/src/cli/commands/import-docs.js +146 -0
- package/dist/src/cli/commands/import-docs.js.map +1 -0
- package/dist/src/cli/commands/init-multiproject.d.ts +11 -0
- package/dist/src/cli/commands/init-multiproject.d.ts.map +1 -0
- package/dist/src/cli/commands/init-multiproject.js +202 -0
- package/dist/src/cli/commands/init-multiproject.js.map +1 -0
- package/dist/src/cli/commands/init.d.ts +9 -0
- package/dist/src/cli/commands/init.d.ts.map +1 -0
- package/dist/src/cli/commands/init.js +1444 -0
- package/dist/src/cli/commands/init.js.map +1 -0
- package/dist/src/cli/commands/install.d.ts +9 -0
- package/dist/src/cli/commands/install.d.ts.map +1 -0
- package/dist/src/cli/commands/install.js +127 -0
- package/dist/src/cli/commands/install.js.map +1 -0
- package/dist/src/cli/commands/list.d.ts +8 -0
- package/dist/src/cli/commands/list.d.ts.map +1 -0
- package/dist/src/cli/commands/list.js +119 -0
- package/dist/src/cli/commands/list.js.map +1 -0
- package/dist/src/cli/commands/migrate-to-multiproject.d.ts +37 -0
- package/dist/src/cli/commands/migrate-to-multiproject.d.ts.map +1 -0
- package/dist/src/cli/commands/migrate-to-multiproject.js +189 -0
- package/dist/src/cli/commands/migrate-to-multiproject.js.map +1 -0
- package/dist/src/cli/commands/migrate-to-profiles.d.ts +25 -0
- package/dist/src/cli/commands/migrate-to-profiles.d.ts.map +1 -0
- package/dist/src/cli/commands/migrate-to-profiles.js +350 -0
- package/dist/src/cli/commands/migrate-to-profiles.js.map +1 -0
- package/dist/src/cli/commands/pause.d.ts +13 -0
- package/dist/src/cli/commands/pause.d.ts.map +1 -0
- package/dist/src/cli/commands/pause.js +15 -0
- package/dist/src/cli/commands/pause.js.map +1 -0
- package/dist/src/cli/commands/qa.d.ts +54 -0
- package/dist/src/cli/commands/qa.d.ts.map +1 -0
- package/dist/src/cli/commands/qa.js +98 -0
- package/dist/src/cli/commands/qa.js.map +1 -0
- package/dist/src/cli/commands/resume.d.ts +12 -0
- package/dist/src/cli/commands/resume.d.ts.map +1 -0
- package/dist/src/cli/commands/resume.js +14 -0
- package/dist/src/cli/commands/resume.js.map +1 -0
- package/dist/src/cli/commands/status.d.ts +12 -0
- package/dist/src/cli/commands/status.d.ts.map +1 -0
- package/dist/src/cli/commands/status.js +23 -0
- package/dist/src/cli/commands/status.js.map +1 -0
- package/dist/src/cli/commands/switch-project.d.ts +13 -0
- package/dist/src/cli/commands/switch-project.d.ts.map +1 -0
- package/dist/src/cli/commands/switch-project.js +91 -0
- package/dist/src/cli/commands/switch-project.js.map +1 -0
- package/dist/src/cli/commands/validate-jira.d.ts +35 -0
- package/dist/src/cli/commands/validate-jira.d.ts.map +1 -0
- package/dist/src/cli/commands/validate-jira.js +112 -0
- package/dist/src/cli/commands/validate-jira.js.map +1 -0
- package/dist/src/cli/commands/validate-plugins.d.ts +41 -0
- package/dist/src/cli/commands/validate-plugins.d.ts.map +1 -0
- package/dist/src/cli/commands/validate-plugins.js +171 -0
- package/dist/src/cli/commands/validate-plugins.js.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/ado.d.ts +57 -0
- package/dist/src/cli/helpers/issue-tracker/ado.d.ts.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/ado.js +243 -0
- package/dist/src/cli/helpers/issue-tracker/ado.js.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/github.d.ts +65 -0
- package/dist/src/cli/helpers/issue-tracker/github.d.ts.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/github.js +426 -0
- package/dist/src/cli/helpers/issue-tracker/github.js.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/index.d.ts +22 -0
- package/dist/src/cli/helpers/issue-tracker/index.d.ts.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/index.js +314 -0
- package/dist/src/cli/helpers/issue-tracker/index.js.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/jira.d.ts +61 -0
- package/dist/src/cli/helpers/issue-tracker/jira.d.ts.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/jira.js +404 -0
- package/dist/src/cli/helpers/issue-tracker/jira.js.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/types.d.ts +108 -0
- package/dist/src/cli/helpers/issue-tracker/types.d.ts.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/types.js +16 -0
- package/dist/src/cli/helpers/issue-tracker/types.js.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/utils.d.ts +112 -0
- package/dist/src/cli/helpers/issue-tracker/utils.d.ts.map +1 -0
- package/dist/src/cli/helpers/issue-tracker/utils.js +247 -0
- package/dist/src/cli/helpers/issue-tracker/utils.js.map +1 -0
- package/dist/src/core/agent-model-manager.d.ts +52 -0
- package/dist/src/core/agent-model-manager.d.ts.map +1 -0
- package/dist/src/core/agent-model-manager.js +120 -0
- package/dist/src/core/agent-model-manager.js.map +1 -0
- package/dist/src/core/brownfield/analyzer.d.ts +86 -0
- package/dist/src/core/brownfield/analyzer.d.ts.map +1 -0
- package/dist/src/core/brownfield/analyzer.js +365 -0
- package/dist/src/core/brownfield/analyzer.js.map +1 -0
- package/dist/src/core/brownfield/importer.d.ts +76 -0
- package/dist/src/core/brownfield/importer.d.ts.map +1 -0
- package/dist/src/core/brownfield/importer.js +287 -0
- package/dist/src/core/brownfield/importer.js.map +1 -0
- package/dist/src/core/config-manager.d.ts +47 -0
- package/dist/src/core/config-manager.d.ts.map +1 -0
- package/dist/src/core/config-manager.js +136 -0
- package/dist/src/core/config-manager.js.map +1 -0
- package/dist/src/core/cost-tracker.d.ts +108 -0
- package/dist/src/core/cost-tracker.d.ts.map +1 -0
- package/dist/src/core/cost-tracker.js +281 -0
- package/dist/src/core/cost-tracker.js.map +1 -0
- package/dist/src/core/credentials-manager.d.ts +107 -0
- package/dist/src/core/credentials-manager.d.ts.map +1 -0
- package/dist/src/core/credentials-manager.js +457 -0
- package/dist/src/core/credentials-manager.js.map +1 -0
- package/dist/src/core/i18n/language-detector.d.ts +29 -0
- package/dist/src/core/i18n/language-detector.d.ts.map +1 -0
- package/dist/src/core/i18n/language-detector.js +143 -0
- package/dist/src/core/i18n/language-detector.js.map +1 -0
- package/dist/src/core/i18n/language-manager.d.ts +101 -0
- package/dist/src/core/i18n/language-manager.d.ts.map +1 -0
- package/dist/src/core/i18n/language-manager.js +232 -0
- package/dist/src/core/i18n/language-manager.js.map +1 -0
- package/dist/src/core/i18n/language-registry.d.ts +44 -0
- package/dist/src/core/i18n/language-registry.d.ts.map +1 -0
- package/dist/src/core/i18n/language-registry.js +234 -0
- package/dist/src/core/i18n/language-registry.js.map +1 -0
- package/dist/src/core/i18n/locale-manager.d.ts +62 -0
- package/dist/src/core/i18n/locale-manager.d.ts.map +1 -0
- package/dist/src/core/i18n/locale-manager.js +137 -0
- package/dist/src/core/i18n/locale-manager.js.map +1 -0
- package/dist/src/core/i18n/system-prompt-injector.d.ts +33 -0
- package/dist/src/core/i18n/system-prompt-injector.d.ts.map +1 -0
- package/dist/src/core/i18n/system-prompt-injector.js +131 -0
- package/dist/src/core/i18n/system-prompt-injector.js.map +1 -0
- package/dist/src/core/i18n/types.d.ts +151 -0
- package/dist/src/core/i18n/types.d.ts.map +1 -0
- package/dist/src/core/i18n/types.js +11 -0
- package/dist/src/core/i18n/types.js.map +1 -0
- package/dist/src/core/increment/limits.d.ts +68 -0
- package/dist/src/core/increment/limits.d.ts.map +1 -0
- package/dist/src/core/increment/limits.js +224 -0
- package/dist/src/core/increment/limits.js.map +1 -0
- package/dist/src/core/increment/metadata-manager.d.ts +114 -0
- package/dist/src/core/increment/metadata-manager.d.ts.map +1 -0
- package/dist/src/core/increment/metadata-manager.js +320 -0
- package/dist/src/core/increment/metadata-manager.js.map +1 -0
- package/dist/src/core/increment/status-commands.d.ts +43 -0
- package/dist/src/core/increment/status-commands.d.ts.map +1 -0
- package/dist/src/core/increment/status-commands.js +277 -0
- package/dist/src/core/increment/status-commands.js.map +1 -0
- package/dist/src/core/increment-status.d.ts +72 -0
- package/dist/src/core/increment-status.d.ts.map +1 -0
- package/dist/src/core/increment-status.js +227 -0
- package/dist/src/core/increment-status.js.map +1 -0
- package/dist/src/core/model-selector.d.ts +57 -0
- package/dist/src/core/model-selector.d.ts.map +1 -0
- package/dist/src/core/model-selector.js +115 -0
- package/dist/src/core/model-selector.js.map +1 -0
- package/dist/src/core/phase-detector.d.ts +62 -0
- package/dist/src/core/phase-detector.d.ts.map +1 -0
- package/dist/src/core/phase-detector.js +229 -0
- package/dist/src/core/phase-detector.js.map +1 -0
- package/dist/src/core/plugin-loader.d.ts +131 -0
- package/dist/src/core/plugin-loader.d.ts.map +1 -0
- package/dist/src/core/plugin-loader.js +421 -0
- package/dist/src/core/plugin-loader.js.map +1 -0
- package/dist/src/core/project-manager.d.ts +127 -0
- package/dist/src/core/project-manager.d.ts.map +1 -0
- package/dist/src/core/project-manager.js +524 -0
- package/dist/src/core/project-manager.js.map +1 -0
- package/dist/src/core/project-structure-detector.d.ts +92 -0
- package/dist/src/core/project-structure-detector.d.ts.map +1 -0
- package/dist/src/core/project-structure-detector.js +289 -0
- package/dist/src/core/project-structure-detector.js.map +1 -0
- package/dist/src/core/qa/qa-runner.d.ts +16 -0
- package/dist/src/core/qa/qa-runner.d.ts.map +1 -0
- package/dist/src/core/qa/qa-runner.js +404 -0
- package/dist/src/core/qa/qa-runner.js.map +1 -0
- package/dist/src/core/qa/quality-gate-decider.d.ts +53 -0
- package/dist/src/core/qa/quality-gate-decider.d.ts.map +1 -0
- package/dist/src/core/qa/quality-gate-decider.js +268 -0
- package/dist/src/core/qa/quality-gate-decider.js.map +1 -0
- package/dist/src/core/qa/risk-calculator.d.ts +126 -0
- package/dist/src/core/qa/risk-calculator.d.ts.map +1 -0
- package/dist/src/core/qa/risk-calculator.js +247 -0
- package/dist/src/core/qa/risk-calculator.js.map +1 -0
- package/dist/src/core/qa/types.d.ts +315 -0
- package/dist/src/core/qa/types.d.ts.map +1 -0
- package/dist/src/core/qa/types.js +8 -0
- package/dist/src/core/qa/types.js.map +1 -0
- package/dist/src/core/rfc-generator-v2.d.ts +149 -0
- package/dist/src/core/rfc-generator-v2.d.ts.map +1 -0
- package/dist/src/core/rfc-generator-v2.js +399 -0
- package/dist/src/core/rfc-generator-v2.js.map +1 -0
- package/dist/src/core/specs/spec-metadata-manager.d.ts +70 -0
- package/dist/src/core/specs/spec-metadata-manager.d.ts.map +1 -0
- package/dist/src/core/specs/spec-metadata-manager.js +371 -0
- package/dist/src/core/specs/spec-metadata-manager.js.map +1 -0
- package/dist/src/core/specs/spec-parser.d.ts +66 -0
- package/dist/src/core/specs/spec-parser.d.ts.map +1 -0
- package/dist/src/core/specs/spec-parser.js +276 -0
- package/dist/src/core/specs/spec-parser.js.map +1 -0
- package/dist/src/core/sync/bidirectional-engine.d.ts +110 -0
- package/dist/src/core/sync/bidirectional-engine.d.ts.map +1 -0
- package/dist/src/core/sync/bidirectional-engine.js +356 -0
- package/dist/src/core/sync/bidirectional-engine.js.map +1 -0
- package/dist/src/core/sync/folder-mapper.d.ts +71 -0
- package/dist/src/core/sync/folder-mapper.d.ts.map +1 -0
- package/dist/src/core/sync/folder-mapper.js +168 -0
- package/dist/src/core/sync/folder-mapper.js.map +1 -0
- package/dist/src/core/sync/profile-manager.d.ts +72 -0
- package/dist/src/core/sync/profile-manager.d.ts.map +1 -0
- package/dist/src/core/sync/profile-manager.js +338 -0
- package/dist/src/core/sync/profile-manager.js.map +1 -0
- package/dist/src/core/sync/profile-selector.d.ts +52 -0
- package/dist/src/core/sync/profile-selector.d.ts.map +1 -0
- package/dist/src/core/sync/profile-selector.js +179 -0
- package/dist/src/core/sync/profile-selector.js.map +1 -0
- package/dist/src/core/sync/profile-validator.d.ts +52 -0
- package/dist/src/core/sync/profile-validator.d.ts.map +1 -0
- package/dist/src/core/sync/profile-validator.js +225 -0
- package/dist/src/core/sync/profile-validator.js.map +1 -0
- package/dist/src/core/sync/project-context.d.ts +81 -0
- package/dist/src/core/sync/project-context.d.ts.map +1 -0
- package/dist/src/core/sync/project-context.js +354 -0
- package/dist/src/core/sync/project-context.js.map +1 -0
- package/dist/src/core/sync/rate-limiter.d.ts +116 -0
- package/dist/src/core/sync/rate-limiter.d.ts.map +1 -0
- package/dist/src/core/sync/rate-limiter.js +308 -0
- package/dist/src/core/sync/rate-limiter.js.map +1 -0
- package/dist/src/core/sync/time-range-selector.d.ts +48 -0
- package/dist/src/core/sync/time-range-selector.d.ts.map +1 -0
- package/dist/src/core/sync/time-range-selector.js +224 -0
- package/dist/src/core/sync/time-range-selector.js.map +1 -0
- package/dist/src/core/types/config.d.ts +90 -0
- package/dist/src/core/types/config.d.ts.map +1 -0
- package/dist/src/core/types/config.js +44 -0
- package/dist/src/core/types/config.js.map +1 -0
- package/dist/src/core/types/increment-metadata.d.ts +120 -0
- package/dist/src/core/types/increment-metadata.d.ts.map +1 -0
- package/dist/src/core/types/increment-metadata.js +138 -0
- package/dist/src/core/types/increment-metadata.js.map +1 -0
- package/dist/src/core/types/plugin.d.ts +283 -0
- package/dist/src/core/types/plugin.d.ts.map +1 -0
- package/dist/src/core/types/plugin.js +49 -0
- package/dist/src/core/types/plugin.js.map +1 -0
- package/dist/src/core/types/spec-metadata.d.ts +229 -0
- package/dist/src/core/types/spec-metadata.d.ts.map +1 -0
- package/dist/src/core/types/spec-metadata.js +14 -0
- package/dist/src/core/types/spec-metadata.js.map +1 -0
- package/dist/src/core/types/sync-profile.d.ts +403 -0
- package/dist/src/core/types/sync-profile.d.ts.map +1 -0
- package/dist/src/core/types/sync-profile.js +55 -0
- package/dist/src/core/types/sync-profile.js.map +1 -0
- package/dist/src/hooks/lib/git-diff-analyzer.d.ts +89 -0
- package/dist/src/hooks/lib/git-diff-analyzer.d.ts.map +1 -0
- package/dist/src/hooks/lib/git-diff-analyzer.js +226 -0
- package/dist/src/hooks/lib/git-diff-analyzer.js.map +1 -0
- package/dist/src/hooks/lib/invoke-translator-skill.d.ts +60 -0
- package/dist/src/hooks/lib/invoke-translator-skill.d.ts.map +1 -0
- package/dist/src/hooks/lib/invoke-translator-skill.js +201 -0
- package/dist/src/hooks/lib/invoke-translator-skill.js.map +1 -0
- package/dist/src/hooks/lib/prepare-reflection-context.d.ts +42 -0
- package/dist/src/hooks/lib/prepare-reflection-context.d.ts.map +1 -0
- package/dist/src/hooks/lib/prepare-reflection-context.js +123 -0
- package/dist/src/hooks/lib/prepare-reflection-context.js.map +1 -0
- package/dist/src/hooks/lib/reflection-config-loader.d.ts +45 -0
- package/dist/src/hooks/lib/reflection-config-loader.d.ts.map +1 -0
- package/dist/src/hooks/lib/reflection-config-loader.js +132 -0
- package/dist/src/hooks/lib/reflection-config-loader.js.map +1 -0
- package/dist/src/hooks/lib/reflection-parser.d.ts +33 -0
- package/dist/src/hooks/lib/reflection-parser.d.ts.map +1 -0
- package/dist/src/hooks/lib/reflection-parser.js +419 -0
- package/dist/src/hooks/lib/reflection-parser.js.map +1 -0
- package/dist/src/hooks/lib/reflection-prompt-builder.d.ts +56 -0
- package/dist/src/hooks/lib/reflection-prompt-builder.d.ts.map +1 -0
- package/dist/src/hooks/lib/reflection-prompt-builder.js +239 -0
- package/dist/src/hooks/lib/reflection-prompt-builder.js.map +1 -0
- package/dist/src/hooks/lib/reflection-storage.d.ts +64 -0
- package/dist/src/hooks/lib/reflection-storage.d.ts.map +1 -0
- package/dist/src/hooks/lib/reflection-storage.js +305 -0
- package/dist/src/hooks/lib/reflection-storage.js.map +1 -0
- package/dist/src/hooks/lib/run-self-reflection.d.ts +43 -0
- package/dist/src/hooks/lib/run-self-reflection.d.ts.map +1 -0
- package/dist/src/hooks/lib/run-self-reflection.js +203 -0
- package/dist/src/hooks/lib/run-self-reflection.js.map +1 -0
- package/dist/src/hooks/lib/sync-living-docs.d.ts +27 -0
- package/dist/src/hooks/lib/sync-living-docs.d.ts.map +1 -0
- package/dist/src/hooks/lib/sync-living-docs.js +116 -0
- package/dist/src/hooks/lib/sync-living-docs.js.map +1 -0
- package/dist/src/hooks/lib/translate-file.d.ts +59 -0
- package/dist/src/hooks/lib/translate-file.d.ts.map +1 -0
- package/dist/src/hooks/lib/translate-file.js +350 -0
- package/dist/src/hooks/lib/translate-file.js.map +1 -0
- package/dist/src/hooks/lib/translate-living-docs.d.ts +13 -0
- package/dist/src/hooks/lib/translate-living-docs.d.ts.map +1 -0
- package/dist/src/hooks/lib/translate-living-docs.js +175 -0
- package/dist/src/hooks/lib/translate-living-docs.js.map +1 -0
- package/dist/src/hooks/lib/types/reflection-types.d.ts +164 -0
- package/dist/src/hooks/lib/types/reflection-types.d.ts.map +1 -0
- package/dist/src/hooks/lib/types/reflection-types.js +73 -0
- package/dist/src/hooks/lib/types/reflection-types.js.map +1 -0
- package/dist/src/hooks/lib/update-tasks-md.d.ts +29 -0
- package/dist/src/hooks/lib/update-tasks-md.d.ts.map +1 -0
- package/dist/src/hooks/lib/update-tasks-md.js +203 -0
- package/dist/src/hooks/lib/update-tasks-md.js.map +1 -0
- package/dist/src/integrations/ado/ado-client.d.ts +127 -0
- package/dist/src/integrations/ado/ado-client.d.ts.map +1 -0
- package/dist/src/integrations/ado/ado-client.js +416 -0
- package/dist/src/integrations/ado/ado-client.js.map +1 -0
- package/dist/src/integrations/jira/jira-client.d.ts +139 -0
- package/dist/src/integrations/jira/jira-client.d.ts.map +1 -0
- package/dist/src/integrations/jira/jira-client.js +386 -0
- package/dist/src/integrations/jira/jira-client.js.map +1 -0
- package/dist/src/integrations/jira/jira-incremental-mapper.d.ts +75 -0
- package/dist/src/integrations/jira/jira-incremental-mapper.d.ts.map +1 -0
- package/dist/src/integrations/jira/jira-incremental-mapper.js +474 -0
- package/dist/src/integrations/jira/jira-incremental-mapper.js.map +1 -0
- package/dist/src/integrations/jira/jira-mapper.d.ts +105 -0
- package/dist/src/integrations/jira/jira-mapper.d.ts.map +1 -0
- package/dist/src/integrations/jira/jira-mapper.js +494 -0
- package/dist/src/integrations/jira/jira-mapper.js.map +1 -0
- package/dist/src/metrics/calculators/change-failure-rate.d.ts +22 -0
- package/dist/src/metrics/calculators/change-failure-rate.d.ts.map +1 -0
- package/dist/src/metrics/calculators/change-failure-rate.js +70 -0
- package/dist/src/metrics/calculators/change-failure-rate.js.map +1 -0
- package/dist/src/metrics/calculators/deployment-frequency.d.ts +20 -0
- package/dist/src/metrics/calculators/deployment-frequency.d.ts.map +1 -0
- package/dist/src/metrics/calculators/deployment-frequency.js +61 -0
- package/dist/src/metrics/calculators/deployment-frequency.js.map +1 -0
- package/dist/src/metrics/calculators/lead-time.d.ts +22 -0
- package/dist/src/metrics/calculators/lead-time.d.ts.map +1 -0
- package/dist/src/metrics/calculators/lead-time.js +82 -0
- package/dist/src/metrics/calculators/lead-time.js.map +1 -0
- package/dist/src/metrics/calculators/mttr.d.ts +21 -0
- package/dist/src/metrics/calculators/mttr.d.ts.map +1 -0
- package/dist/src/metrics/calculators/mttr.js +60 -0
- package/dist/src/metrics/calculators/mttr.js.map +1 -0
- package/dist/src/metrics/dora-calculator.d.ts +28 -0
- package/dist/src/metrics/dora-calculator.d.ts.map +1 -0
- package/dist/src/metrics/dora-calculator.js +117 -0
- package/dist/src/metrics/dora-calculator.js.map +1 -0
- package/dist/src/metrics/github-client.d.ts +51 -0
- package/dist/src/metrics/github-client.d.ts.map +1 -0
- package/dist/src/metrics/github-client.js +133 -0
- package/dist/src/metrics/github-client.js.map +1 -0
- package/dist/src/metrics/report-generator.d.ts +17 -0
- package/dist/src/metrics/report-generator.d.ts.map +1 -0
- package/dist/src/metrics/report-generator.js +403 -0
- package/dist/src/metrics/report-generator.js.map +1 -0
- package/dist/src/metrics/types.d.ts +112 -0
- package/dist/src/metrics/types.d.ts.map +1 -0
- package/dist/src/metrics/types.js +10 -0
- package/dist/src/metrics/types.js.map +1 -0
- package/dist/src/metrics/utils/percentile.d.ts +25 -0
- package/dist/src/metrics/utils/percentile.d.ts.map +1 -0
- package/dist/src/metrics/utils/percentile.js +46 -0
- package/dist/src/metrics/utils/percentile.js.map +1 -0
- package/dist/src/metrics/utils/tier-classifier.d.ts +61 -0
- package/dist/src/metrics/utils/tier-classifier.d.ts.map +1 -0
- package/dist/src/metrics/utils/tier-classifier.js +100 -0
- package/dist/src/metrics/utils/tier-classifier.js.map +1 -0
- package/dist/src/testing/test-generator.d.ts +117 -0
- package/dist/src/testing/test-generator.d.ts.map +1 -0
- package/dist/src/testing/test-generator.js +370 -0
- package/dist/src/testing/test-generator.js.map +1 -0
- package/dist/src/types/cost-tracking.d.ts +43 -0
- package/dist/src/types/cost-tracking.d.ts.map +1 -0
- package/dist/src/types/cost-tracking.js +8 -0
- package/dist/src/types/cost-tracking.js.map +1 -0
- package/dist/src/types/model-selection.d.ts +53 -0
- package/dist/src/types/model-selection.d.ts.map +1 -0
- package/dist/src/types/model-selection.js +12 -0
- package/dist/src/types/model-selection.js.map +1 -0
- package/dist/src/utils/agents-md-compiler.d.ts +68 -0
- package/dist/src/utils/agents-md-compiler.d.ts.map +1 -0
- package/dist/src/utils/agents-md-compiler.js +420 -0
- package/dist/src/utils/agents-md-compiler.js.map +1 -0
- package/dist/src/utils/auth-helpers.d.ts +58 -0
- package/dist/src/utils/auth-helpers.d.ts.map +1 -0
- package/dist/src/utils/auth-helpers.js +108 -0
- package/dist/src/utils/auth-helpers.js.map +1 -0
- package/dist/src/utils/auto-install.d.ts +47 -0
- package/dist/src/utils/auto-install.d.ts.map +1 -0
- package/dist/src/utils/auto-install.js +211 -0
- package/dist/src/utils/auto-install.js.map +1 -0
- package/dist/src/utils/claude-cli-detector.d.ts +75 -0
- package/dist/src/utils/claude-cli-detector.d.ts.map +1 -0
- package/dist/src/utils/claude-cli-detector.js +285 -0
- package/dist/src/utils/claude-cli-detector.js.map +1 -0
- package/dist/src/utils/cost-reporter.d.ts +58 -0
- package/dist/src/utils/cost-reporter.d.ts.map +1 -0
- package/dist/src/utils/cost-reporter.js +224 -0
- package/dist/src/utils/cost-reporter.js.map +1 -0
- package/dist/src/utils/docs-preview/config-generator.d.ts +46 -0
- package/dist/src/utils/docs-preview/config-generator.d.ts.map +1 -0
- package/dist/src/utils/docs-preview/config-generator.js +377 -0
- package/dist/src/utils/docs-preview/config-generator.js.map +1 -0
- package/dist/src/utils/docs-preview/docusaurus-setup.d.ts +38 -0
- package/dist/src/utils/docs-preview/docusaurus-setup.d.ts.map +1 -0
- package/dist/src/utils/docs-preview/docusaurus-setup.js +177 -0
- package/dist/src/utils/docs-preview/docusaurus-setup.js.map +1 -0
- package/dist/src/utils/docs-preview/index.d.ts +7 -0
- package/dist/src/utils/docs-preview/index.d.ts.map +1 -0
- package/dist/src/utils/docs-preview/index.js +7 -0
- package/dist/src/utils/docs-preview/index.js.map +1 -0
- package/dist/src/utils/docs-preview/package-installer.d.ts +42 -0
- package/dist/src/utils/docs-preview/package-installer.d.ts.map +1 -0
- package/dist/src/utils/docs-preview/package-installer.js +182 -0
- package/dist/src/utils/docs-preview/package-installer.js.map +1 -0
- package/dist/src/utils/docs-preview/server-manager.d.ts +30 -0
- package/dist/src/utils/docs-preview/server-manager.d.ts.map +1 -0
- package/dist/src/utils/docs-preview/server-manager.js +212 -0
- package/dist/src/utils/docs-preview/server-manager.js.map +1 -0
- package/dist/src/utils/docs-preview/sidebar-builder.d.ts +32 -0
- package/dist/src/utils/docs-preview/sidebar-builder.d.ts.map +1 -0
- package/dist/src/utils/docs-preview/sidebar-builder.js +202 -0
- package/dist/src/utils/docs-preview/sidebar-builder.js.map +1 -0
- package/dist/src/utils/docs-preview/types.d.ts +57 -0
- package/dist/src/utils/docs-preview/types.d.ts.map +1 -0
- package/dist/src/utils/docs-preview/types.js +2 -0
- package/dist/src/utils/docs-preview/types.js.map +1 -0
- package/dist/src/utils/env-file.d.ts +88 -0
- package/dist/src/utils/env-file.d.ts.map +1 -0
- package/dist/src/utils/env-file.js +180 -0
- package/dist/src/utils/env-file.js.map +1 -0
- package/dist/src/utils/env-multi-project-parser.d.ts +220 -0
- package/dist/src/utils/env-multi-project-parser.d.ts.map +1 -0
- package/dist/src/utils/env-multi-project-parser.js +403 -0
- package/dist/src/utils/env-multi-project-parser.js.map +1 -0
- package/dist/src/utils/esm-helpers.d.ts +50 -0
- package/dist/src/utils/esm-helpers.d.ts.map +1 -0
- package/dist/src/utils/esm-helpers.js +57 -0
- package/dist/src/utils/esm-helpers.js.map +1 -0
- package/dist/src/utils/execFileNoThrow.d.ts +99 -0
- package/dist/src/utils/execFileNoThrow.d.ts.map +1 -0
- package/dist/src/utils/execFileNoThrow.js +137 -0
- package/dist/src/utils/execFileNoThrow.js.map +1 -0
- package/dist/src/utils/external-resource-validator.d.ts +102 -0
- package/dist/src/utils/external-resource-validator.d.ts.map +1 -0
- package/dist/src/utils/external-resource-validator.js +442 -0
- package/dist/src/utils/external-resource-validator.js.map +1 -0
- package/dist/src/utils/generate-skills-index.d.ts +24 -0
- package/dist/src/utils/generate-skills-index.d.ts.map +1 -0
- package/dist/src/utils/generate-skills-index.js +410 -0
- package/dist/src/utils/generate-skills-index.js.map +1 -0
- package/dist/src/utils/model-selection.d.ts +75 -0
- package/dist/src/utils/model-selection.d.ts.map +1 -0
- package/dist/src/utils/model-selection.js +204 -0
- package/dist/src/utils/model-selection.js.map +1 -0
- package/dist/src/utils/plugin-validator.d.ts +161 -0
- package/dist/src/utils/plugin-validator.d.ts.map +1 -0
- package/dist/src/utils/plugin-validator.js +558 -0
- package/dist/src/utils/plugin-validator.js.map +1 -0
- package/dist/src/utils/pricing-constants.d.ts +70 -0
- package/dist/src/utils/pricing-constants.d.ts.map +1 -0
- package/dist/src/utils/pricing-constants.js +71 -0
- package/dist/src/utils/pricing-constants.js.map +1 -0
- package/dist/src/utils/project-detection.d.ts +141 -0
- package/dist/src/utils/project-detection.d.ts.map +1 -0
- package/dist/src/utils/project-detection.js +321 -0
- package/dist/src/utils/project-detection.js.map +1 -0
- package/dist/src/utils/string-utils.d.ts +40 -0
- package/dist/src/utils/string-utils.d.ts.map +1 -0
- package/dist/src/utils/string-utils.js +58 -0
- package/dist/src/utils/string-utils.js.map +1 -0
- package/dist/src/utils/translation.d.ts +187 -0
- package/dist/src/utils/translation.d.ts.map +1 -0
- package/dist/src/utils/translation.js +414 -0
- package/dist/src/utils/translation.js.map +1 -0
- package/package.json +4 -3
- package/plugins/specweave/.claude-plugin/plugin.json +2 -1
- package/plugins/specweave/agents/pm/AGENT.md +8 -38
- package/plugins/specweave/commands/specweave-increment.md +28 -48
- package/plugins/specweave/hooks/README.md +289 -92
- package/plugins/specweave/hooks/hooks.json +10 -0
- package/plugins/specweave/hooks/post-increment-completion.sh +83 -0
- package/plugins/specweave/hooks/post-increment-planning.sh +2 -2
- package/plugins/specweave/hooks/post-task-completion.sh +20 -141
- package/plugins/specweave/hooks/user-prompt-submit.sh +142 -0
- package/plugins/specweave/lib/hooks/git-diff-analyzer.d.js +0 -0
- package/plugins/specweave/lib/hooks/git-diff-analyzer.d.ts +89 -0
- package/plugins/specweave/lib/hooks/git-diff-analyzer.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/git-diff-analyzer.js +226 -0
- package/plugins/specweave/lib/hooks/git-diff-analyzer.js.map +1 -0
- package/plugins/specweave/lib/hooks/invoke-translator-skill.d.js +0 -0
- package/plugins/specweave/lib/hooks/invoke-translator-skill.d.ts +60 -0
- package/plugins/specweave/lib/hooks/invoke-translator-skill.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/invoke-translator-skill.js +201 -0
- package/plugins/specweave/lib/hooks/invoke-translator-skill.js.map +1 -0
- package/plugins/specweave/lib/hooks/prepare-reflection-context.d.js +0 -0
- package/plugins/specweave/lib/hooks/prepare-reflection-context.d.ts +42 -0
- package/plugins/specweave/lib/hooks/prepare-reflection-context.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/prepare-reflection-context.js +123 -0
- package/plugins/specweave/lib/hooks/prepare-reflection-context.js.map +1 -0
- package/plugins/specweave/lib/hooks/reflection-config-loader.d.js +0 -0
- package/plugins/specweave/lib/hooks/reflection-config-loader.d.ts +45 -0
- package/plugins/specweave/lib/hooks/reflection-config-loader.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/reflection-config-loader.js +132 -0
- package/plugins/specweave/lib/hooks/reflection-config-loader.js.map +1 -0
- package/plugins/specweave/lib/hooks/reflection-parser.d.js +0 -0
- package/plugins/specweave/lib/hooks/reflection-parser.d.ts +33 -0
- package/plugins/specweave/lib/hooks/reflection-parser.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/reflection-parser.js +419 -0
- package/plugins/specweave/lib/hooks/reflection-parser.js.map +1 -0
- package/plugins/specweave/lib/hooks/reflection-prompt-builder.d.js +0 -0
- package/plugins/specweave/lib/hooks/reflection-prompt-builder.d.ts +56 -0
- package/plugins/specweave/lib/hooks/reflection-prompt-builder.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/reflection-prompt-builder.js +239 -0
- package/plugins/specweave/lib/hooks/reflection-prompt-builder.js.map +1 -0
- package/plugins/specweave/lib/hooks/reflection-storage.d.js +0 -0
- package/plugins/specweave/lib/hooks/reflection-storage.d.ts +64 -0
- package/plugins/specweave/lib/hooks/reflection-storage.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/reflection-storage.js +305 -0
- package/plugins/specweave/lib/hooks/reflection-storage.js.map +1 -0
- package/plugins/specweave/lib/hooks/run-self-reflection.d.js +0 -0
- package/plugins/specweave/lib/hooks/run-self-reflection.d.ts +43 -0
- package/plugins/specweave/lib/hooks/run-self-reflection.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/run-self-reflection.js +203 -0
- package/plugins/specweave/lib/hooks/run-self-reflection.js.map +1 -0
- package/plugins/specweave/lib/hooks/sync-living-docs.d.js +1 -0
- package/plugins/specweave/lib/hooks/sync-living-docs.d.ts +27 -0
- package/plugins/specweave/lib/hooks/sync-living-docs.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/sync-living-docs.js +144 -0
- package/plugins/specweave/lib/hooks/sync-living-docs.js.map +1 -0
- package/plugins/specweave/lib/hooks/translate-file.d.js +0 -0
- package/plugins/specweave/lib/hooks/translate-file.d.ts +59 -0
- package/plugins/specweave/lib/hooks/translate-file.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/translate-file.js +350 -0
- package/plugins/specweave/lib/hooks/translate-file.js.map +1 -0
- package/plugins/specweave/lib/hooks/translate-living-docs.d.js +0 -0
- package/plugins/specweave/lib/hooks/translate-living-docs.d.ts +13 -0
- package/plugins/specweave/lib/hooks/translate-living-docs.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/translate-living-docs.js +175 -0
- package/plugins/specweave/lib/hooks/translate-living-docs.js.map +1 -0
- package/plugins/specweave/lib/hooks/types/reflection-types.d.js +0 -0
- package/plugins/specweave/lib/hooks/types/reflection-types.d.ts +164 -0
- package/plugins/specweave/lib/hooks/types/reflection-types.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/types/reflection-types.js +73 -0
- package/plugins/specweave/lib/hooks/types/reflection-types.js.map +1 -0
- package/plugins/specweave/lib/hooks/update-tasks-md.d.js +1 -0
- package/plugins/specweave/lib/hooks/update-tasks-md.d.ts +29 -0
- package/plugins/specweave/lib/hooks/update-tasks-md.d.ts.map +1 -0
- package/plugins/specweave/lib/hooks/update-tasks-md.js +203 -0
- package/plugins/specweave/lib/hooks/update-tasks-md.js.map +1 -0
- package/plugins/specweave-ado/.claude-plugin/plugin.json +2 -1
- package/plugins/specweave-ado/hooks/README.md +201 -0
- package/plugins/specweave-ado/hooks/hooks.json +15 -0
- package/plugins/specweave-ado/hooks/post-task-completion.sh +150 -0
- package/plugins/specweave-ado/lib/ado-board-resolver.d.js +0 -0
- package/plugins/specweave-ado/lib/ado-board-resolver.d.ts +94 -0
- package/plugins/specweave-ado/lib/ado-board-resolver.d.ts.map +1 -0
- package/plugins/specweave-ado/lib/ado-board-resolver.js +219 -0
- package/plugins/specweave-ado/lib/ado-board-resolver.js.map +1 -0
- package/plugins/specweave-ado/lib/ado-client-v2.d.js +0 -0
- package/plugins/specweave-ado/lib/ado-client-v2.d.ts +124 -0
- package/plugins/specweave-ado/lib/ado-client-v2.d.ts.map +1 -0
- package/plugins/specweave-ado/lib/ado-client-v2.js +435 -0
- package/plugins/specweave-ado/lib/ado-client-v2.js.map +1 -0
- package/plugins/specweave-ado/lib/ado-client-v2.ts +134 -10
- package/plugins/specweave-ado/lib/ado-client.d.js +4 -0
- package/plugins/specweave-ado/lib/ado-client.d.ts +112 -0
- package/plugins/specweave-ado/lib/ado-client.d.ts.map +1 -0
- package/plugins/specweave-ado/lib/ado-client.js +248 -0
- package/plugins/specweave-ado/lib/ado-client.js.map +1 -0
- package/plugins/specweave-ado/lib/ado-client.ts +19 -3
- package/plugins/specweave-ado/lib/ado-hierarchical-sync.d.js +0 -0
- package/plugins/specweave-ado/lib/ado-hierarchical-sync.d.ts +40 -0
- package/plugins/specweave-ado/lib/ado-hierarchical-sync.d.ts.map +1 -0
- package/plugins/specweave-ado/lib/ado-hierarchical-sync.js +370 -0
- package/plugins/specweave-ado/lib/ado-hierarchical-sync.js.map +1 -0
- package/plugins/specweave-ado/lib/ado-spec-sync.d.js +0 -0
- package/plugins/specweave-ado/lib/ado-spec-sync.d.ts +100 -0
- package/plugins/specweave-ado/lib/ado-spec-sync.d.ts.map +1 -0
- package/plugins/specweave-ado/lib/ado-spec-sync.js +471 -0
- package/plugins/specweave-ado/lib/ado-spec-sync.js.map +1 -0
- package/plugins/specweave-ado/lib/project-selector.d.js +0 -0
- package/plugins/specweave-github/.claude-plugin/plugin.json +2 -1
- package/plugins/specweave-github/hooks/README.md +280 -0
- package/plugins/specweave-github/hooks/hooks.json +15 -0
- package/plugins/specweave-github/hooks/post-task-completion.sh +241 -0
- package/plugins/specweave-github/lib/cli-sync-increment-changes.d.js +1 -0
- package/plugins/specweave-github/lib/cli-sync-increment-changes.d.ts +12 -0
- package/plugins/specweave-github/lib/cli-sync-increment-changes.d.ts.map +1 -0
- package/plugins/specweave-github/lib/cli-sync-increment-changes.js +28 -0
- package/plugins/specweave-github/lib/cli-sync-increment-changes.js.map +1 -0
- package/plugins/specweave-github/lib/github-board-resolver.d.js +0 -0
- package/plugins/specweave-github/lib/github-board-resolver.d.ts +54 -0
- package/plugins/specweave-github/lib/github-board-resolver.d.ts.map +1 -0
- package/plugins/specweave-github/lib/github-board-resolver.js +122 -0
- package/plugins/specweave-github/lib/github-board-resolver.js.map +1 -0
- package/plugins/specweave-github/lib/github-client-v2.d.js +0 -0
- package/plugins/specweave-github/lib/github-client-v2.d.ts +104 -0
- package/plugins/specweave-github/lib/github-client-v2.d.ts.map +1 -0
- package/plugins/specweave-github/lib/github-client-v2.js +408 -0
- package/plugins/specweave-github/lib/github-client-v2.js.map +1 -0
- package/plugins/specweave-github/lib/github-client.d.js +0 -0
- package/plugins/specweave-github/lib/github-client.d.ts +96 -0
- package/plugins/specweave-github/lib/github-client.d.ts.map +1 -0
- package/plugins/specweave-github/lib/github-client.js +299 -0
- package/plugins/specweave-github/lib/github-client.js.map +1 -0
- package/plugins/specweave-github/lib/github-hierarchical-sync.d.js +0 -0
- package/plugins/specweave-github/lib/github-hierarchical-sync.d.ts +29 -0
- package/plugins/specweave-github/lib/github-hierarchical-sync.d.ts.map +1 -0
- package/plugins/specweave-github/lib/github-hierarchical-sync.js +268 -0
- package/plugins/specweave-github/lib/github-hierarchical-sync.js.map +1 -0
- package/plugins/specweave-github/lib/github-issue-updater.d.js +0 -0
- package/plugins/specweave-github/lib/github-issue-updater.d.ts +61 -0
- package/plugins/specweave-github/lib/github-issue-updater.d.ts.map +1 -0
- package/plugins/specweave-github/lib/github-issue-updater.js +327 -0
- package/plugins/specweave-github/lib/github-issue-updater.js.map +1 -0
- package/plugins/specweave-github/lib/github-spec-sync.d.js +0 -0
- package/plugins/specweave-github/lib/github-spec-sync.d.ts +108 -0
- package/plugins/specweave-github/lib/github-spec-sync.d.ts.map +1 -0
- package/plugins/specweave-github/lib/github-spec-sync.js +505 -0
- package/plugins/specweave-github/lib/github-spec-sync.js.map +1 -0
- package/plugins/specweave-github/lib/github-sync-bidirectional.d.js +0 -0
- package/plugins/specweave-github/lib/github-sync-bidirectional.d.ts +36 -0
- package/plugins/specweave-github/lib/github-sync-bidirectional.d.ts.map +1 -0
- package/plugins/specweave-github/lib/github-sync-bidirectional.js +228 -0
- package/plugins/specweave-github/lib/github-sync-bidirectional.js.map +1 -0
- package/plugins/specweave-github/lib/github-sync-increment-changes.d.js +0 -0
- package/plugins/specweave-github/lib/github-sync-increment-changes.d.ts +18 -0
- package/plugins/specweave-github/lib/github-sync-increment-changes.d.ts.map +1 -0
- package/plugins/specweave-github/lib/github-sync-increment-changes.js +287 -0
- package/plugins/specweave-github/lib/github-sync-increment-changes.js.map +1 -0
- package/plugins/specweave-github/lib/index.d.js +11 -0
- package/plugins/specweave-github/lib/index.d.ts +10 -0
- package/plugins/specweave-github/lib/index.d.ts.map +1 -0
- package/plugins/specweave-github/lib/index.js +10 -0
- package/plugins/specweave-github/lib/index.js.map +1 -0
- package/plugins/specweave-github/lib/repo-selector.d.js +0 -0
- package/plugins/specweave-github/lib/repo-selector.d.ts +49 -0
- package/plugins/specweave-github/lib/repo-selector.d.ts.map +1 -0
- package/plugins/specweave-github/lib/repo-selector.js +216 -0
- package/plugins/specweave-github/lib/repo-selector.js.map +1 -0
- package/plugins/specweave-github/lib/subtask-sync.d.js +0 -0
- package/plugins/specweave-github/lib/subtask-sync.d.ts +51 -0
- package/plugins/specweave-github/lib/subtask-sync.d.ts.map +1 -0
- package/plugins/specweave-github/lib/subtask-sync.js +147 -0
- package/plugins/specweave-github/lib/subtask-sync.js.map +1 -0
- package/plugins/specweave-github/lib/task-parser.d.js +0 -0
- package/plugins/specweave-github/lib/task-parser.d.ts +37 -0
- package/plugins/specweave-github/lib/task-parser.d.ts.map +1 -0
- package/plugins/specweave-github/lib/task-parser.js +211 -0
- package/plugins/specweave-github/lib/task-parser.js.map +1 -0
- package/plugins/specweave-github/lib/task-sync.d.js +0 -0
- package/plugins/specweave-github/lib/task-sync.d.ts +51 -0
- package/plugins/specweave-github/lib/task-sync.d.ts.map +1 -0
- package/plugins/specweave-github/lib/task-sync.js +332 -0
- package/plugins/specweave-github/lib/task-sync.js.map +1 -0
- package/plugins/specweave-github/lib/types.d.js +0 -0
- package/plugins/specweave-github/lib/types.d.ts +80 -0
- package/plugins/specweave-github/lib/types.d.ts.map +1 -0
- package/plugins/specweave-github/lib/types.js +5 -0
- package/plugins/specweave-github/lib/types.js.map +1 -0
- package/plugins/specweave-jira/.claude-plugin/plugin.json +2 -1
- package/plugins/specweave-jira/hooks/README.md +201 -0
- package/plugins/specweave-jira/hooks/hooks.json +15 -0
- package/plugins/specweave-jira/hooks/post-task-completion.sh +150 -0
- package/plugins/specweave-jira/lib/jira-board-resolver.d.js +0 -0
- package/plugins/specweave-jira/lib/jira-board-resolver.d.ts +50 -0
- package/plugins/specweave-jira/lib/jira-board-resolver.d.ts.map +1 -0
- package/plugins/specweave-jira/lib/jira-board-resolver.js +84 -0
- package/plugins/specweave-jira/lib/jira-board-resolver.js.map +1 -0
- package/plugins/specweave-jira/lib/jira-hierarchical-sync.d.js +0 -0
- package/plugins/specweave-jira/lib/jira-hierarchical-sync.d.ts +33 -0
- package/plugins/specweave-jira/lib/jira-hierarchical-sync.d.ts.map +1 -0
- package/plugins/specweave-jira/lib/jira-hierarchical-sync.js +206 -0
- package/plugins/specweave-jira/lib/jira-hierarchical-sync.js.map +1 -0
- package/plugins/specweave-jira/lib/jira-spec-sync.d.js +0 -0
- package/plugins/specweave-jira/lib/jira-spec-sync.d.ts +105 -0
- package/plugins/specweave-jira/lib/jira-spec-sync.d.ts.map +1 -0
- package/plugins/specweave-jira/lib/jira-spec-sync.js +456 -0
- package/plugins/specweave-jira/lib/jira-spec-sync.js.map +1 -0
- package/plugins/specweave-jira/lib/project-selector.d.js +0 -0
- package/plugins/specweave-jira/lib/project-selector.d.ts +42 -0
- package/plugins/specweave-jira/lib/project-selector.d.ts.map +1 -0
- package/plugins/specweave-jira/lib/project-selector.js +216 -0
- package/plugins/specweave-jira/lib/project-selector.js.map +1 -0
- package/plugins/specweave-jira/lib/reorganization-detector.d.js +0 -0
- package/plugins/specweave-jira/lib/reorganization-detector.d.ts +67 -0
- package/plugins/specweave-jira/lib/reorganization-detector.d.ts.map +1 -0
- package/plugins/specweave-jira/lib/reorganization-detector.js +252 -0
- package/plugins/specweave-jira/lib/reorganization-detector.js.map +1 -0
- package/plugins/specweave-jira/lib/setup-wizard.d.js +4 -0
- package/plugins/specweave-jira/lib/setup-wizard.d.ts +29 -0
- package/plugins/specweave-jira/lib/setup-wizard.d.ts.map +1 -0
- package/plugins/specweave-jira/lib/setup-wizard.js +219 -0
- package/plugins/specweave-jira/lib/setup-wizard.js.map +1 -0
- package/src/templates/CLAUDE.md.template +41 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Profile Manager for Multi-Project Sync
|
|
3
|
+
*
|
|
4
|
+
* Manages sync profiles across multiple external projects (GitHub, JIRA, ADO).
|
|
5
|
+
* Handles CRUD operations, validation, and profile selection.
|
|
6
|
+
*/
|
|
7
|
+
import { SyncProfile, SyncProvider, ProfileValidationResult, SyncConfiguration } from '../types/sync-profile';
|
|
8
|
+
export declare class ProfileManager {
|
|
9
|
+
private configPath;
|
|
10
|
+
private config;
|
|
11
|
+
constructor(projectRoot: string);
|
|
12
|
+
/**
|
|
13
|
+
* Load sync configuration from disk
|
|
14
|
+
*/
|
|
15
|
+
load(): Promise<SyncConfiguration>;
|
|
16
|
+
/**
|
|
17
|
+
* Save sync configuration to disk
|
|
18
|
+
*/
|
|
19
|
+
save(): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Get all profiles
|
|
22
|
+
*/
|
|
23
|
+
getAllProfiles(): Promise<Record<string, SyncProfile>>;
|
|
24
|
+
/**
|
|
25
|
+
* Get a specific profile by ID
|
|
26
|
+
*/
|
|
27
|
+
getProfile(profileId: string): Promise<SyncProfile | null>;
|
|
28
|
+
/**
|
|
29
|
+
* Get active profile
|
|
30
|
+
*/
|
|
31
|
+
getActiveProfile(): Promise<{
|
|
32
|
+
id: string;
|
|
33
|
+
profile: SyncProfile;
|
|
34
|
+
} | null>;
|
|
35
|
+
/**
|
|
36
|
+
* Set active profile
|
|
37
|
+
*/
|
|
38
|
+
setActiveProfile(profileId: string): Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* Create a new profile
|
|
41
|
+
*/
|
|
42
|
+
createProfile(profileId: string, profile: SyncProfile): Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* Update an existing profile
|
|
45
|
+
*/
|
|
46
|
+
updateProfile(profileId: string, updates: Partial<SyncProfile>): Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
* Delete a profile
|
|
49
|
+
*/
|
|
50
|
+
deleteProfile(profileId: string): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* Get profiles by provider
|
|
53
|
+
*/
|
|
54
|
+
getProfilesByProvider(provider: SyncProvider): Promise<Record<string, SyncProfile>>;
|
|
55
|
+
/**
|
|
56
|
+
* Get profiles for a project
|
|
57
|
+
*/
|
|
58
|
+
getProfilesForProject(projectName: string): Promise<Record<string, SyncProfile>>;
|
|
59
|
+
/**
|
|
60
|
+
* Validate a sync profile
|
|
61
|
+
*/
|
|
62
|
+
validateProfile(profile: SyncProfile): ProfileValidationResult;
|
|
63
|
+
/**
|
|
64
|
+
* Get profile statistics
|
|
65
|
+
*/
|
|
66
|
+
getStats(): Promise<{
|
|
67
|
+
totalProfiles: number;
|
|
68
|
+
byProvider: Record<SyncProvider, number>;
|
|
69
|
+
activeProfile: string | null;
|
|
70
|
+
}>;
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=profile-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile-manager.d.ts","sourceRoot":"","sources":["../../../../src/core/sync/profile-manager.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EACL,WAAW,EAEX,YAAY,EACZ,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAE/B,qBAAa,cAAc;IACzB,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,MAAM,CAAkC;gBAEpC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Y,EAAE,MAAM,CAAC,CAAC;QACzC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;KAC9B,CAAC;CAoBH"}
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Profile Manager for Multi-Project Sync
|
|
3
|
+
*
|
|
4
|
+
* Manages sync profiles across multiple external projects (GitHub, JIRA, ADO).
|
|
5
|
+
* Handles CRUD operations, validation, and profile selection.
|
|
6
|
+
*/
|
|
7
|
+
import * as fs from 'fs-extra';
|
|
8
|
+
import * as path from 'path';
|
|
9
|
+
export class ProfileManager {
|
|
10
|
+
constructor(projectRoot) {
|
|
11
|
+
this.config = null;
|
|
12
|
+
this.configPath = path.join(projectRoot, '.specweave', 'config.json');
|
|
13
|
+
}
|
|
14
|
+
// ==========================================================================
|
|
15
|
+
// Load/Save Operations
|
|
16
|
+
// ==========================================================================
|
|
17
|
+
/**
|
|
18
|
+
* Load sync configuration from disk
|
|
19
|
+
*/
|
|
20
|
+
async load() {
|
|
21
|
+
if (this.config) {
|
|
22
|
+
return this.config;
|
|
23
|
+
}
|
|
24
|
+
try {
|
|
25
|
+
const content = await fs.readFile(this.configPath, 'utf-8');
|
|
26
|
+
const fullConfig = JSON.parse(content);
|
|
27
|
+
this.config = fullConfig.sync || {
|
|
28
|
+
profiles: {},
|
|
29
|
+
settings: {
|
|
30
|
+
autoDetectProject: true,
|
|
31
|
+
defaultTimeRange: '1M',
|
|
32
|
+
rateLimitProtection: true,
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
return this.config;
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
if (error.code === 'ENOENT') {
|
|
39
|
+
// Config doesn't exist yet - return empty
|
|
40
|
+
this.config = {
|
|
41
|
+
profiles: {},
|
|
42
|
+
settings: {
|
|
43
|
+
autoDetectProject: true,
|
|
44
|
+
defaultTimeRange: '1M',
|
|
45
|
+
rateLimitProtection: true,
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
return this.config;
|
|
49
|
+
}
|
|
50
|
+
throw error;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Save sync configuration to disk
|
|
55
|
+
*/
|
|
56
|
+
async save() {
|
|
57
|
+
if (!this.config) {
|
|
58
|
+
throw new Error('No configuration loaded. Call load() first.');
|
|
59
|
+
}
|
|
60
|
+
// Read full config
|
|
61
|
+
let fullConfig = {};
|
|
62
|
+
try {
|
|
63
|
+
const content = await fs.readFile(this.configPath, 'utf-8');
|
|
64
|
+
fullConfig = JSON.parse(content);
|
|
65
|
+
}
|
|
66
|
+
catch (error) {
|
|
67
|
+
if (error.code !== 'ENOENT') {
|
|
68
|
+
throw error;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
// Merge sync section
|
|
72
|
+
fullConfig.sync = this.config;
|
|
73
|
+
// Write back
|
|
74
|
+
await fs.ensureDir(path.dirname(this.configPath));
|
|
75
|
+
await fs.writeFile(this.configPath, JSON.stringify(fullConfig, null, 2), 'utf-8');
|
|
76
|
+
}
|
|
77
|
+
// ==========================================================================
|
|
78
|
+
// Profile CRUD Operations
|
|
79
|
+
// ==========================================================================
|
|
80
|
+
/**
|
|
81
|
+
* Get all profiles
|
|
82
|
+
*/
|
|
83
|
+
async getAllProfiles() {
|
|
84
|
+
const config = await this.load();
|
|
85
|
+
return config.profiles || {};
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Get a specific profile by ID
|
|
89
|
+
*/
|
|
90
|
+
async getProfile(profileId) {
|
|
91
|
+
const config = await this.load();
|
|
92
|
+
return config.profiles?.[profileId] || null;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Get active profile
|
|
96
|
+
*/
|
|
97
|
+
async getActiveProfile() {
|
|
98
|
+
const config = await this.load();
|
|
99
|
+
const activeId = config.activeProfile;
|
|
100
|
+
if (!activeId) {
|
|
101
|
+
return null;
|
|
102
|
+
}
|
|
103
|
+
const profile = config.profiles?.[activeId];
|
|
104
|
+
if (!profile) {
|
|
105
|
+
return null;
|
|
106
|
+
}
|
|
107
|
+
return { id: activeId, profile };
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Set active profile
|
|
111
|
+
*/
|
|
112
|
+
async setActiveProfile(profileId) {
|
|
113
|
+
const config = await this.load();
|
|
114
|
+
// Validate profile exists
|
|
115
|
+
if (!config.profiles?.[profileId]) {
|
|
116
|
+
throw new Error(`Profile '${profileId}' does not exist`);
|
|
117
|
+
}
|
|
118
|
+
config.activeProfile = profileId;
|
|
119
|
+
await this.save();
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Create a new profile
|
|
123
|
+
*/
|
|
124
|
+
async createProfile(profileId, profile) {
|
|
125
|
+
const config = await this.load();
|
|
126
|
+
// Validate ID format
|
|
127
|
+
if (!/^[a-z0-9-]+$/.test(profileId)) {
|
|
128
|
+
throw new Error('Profile ID must contain only lowercase letters, numbers, and hyphens');
|
|
129
|
+
}
|
|
130
|
+
// Check if profile already exists
|
|
131
|
+
if (config.profiles?.[profileId]) {
|
|
132
|
+
throw new Error(`Profile '${profileId}' already exists`);
|
|
133
|
+
}
|
|
134
|
+
// Validate profile
|
|
135
|
+
const validation = this.validateProfile(profile);
|
|
136
|
+
if (!validation.valid) {
|
|
137
|
+
throw new Error(`Invalid profile: ${validation.errors.join(', ')}`);
|
|
138
|
+
}
|
|
139
|
+
// Add profile
|
|
140
|
+
if (!config.profiles) {
|
|
141
|
+
config.profiles = {};
|
|
142
|
+
}
|
|
143
|
+
config.profiles[profileId] = profile;
|
|
144
|
+
// Set as active if first profile
|
|
145
|
+
if (Object.keys(config.profiles).length === 1) {
|
|
146
|
+
config.activeProfile = profileId;
|
|
147
|
+
}
|
|
148
|
+
await this.save();
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Update an existing profile
|
|
152
|
+
*/
|
|
153
|
+
async updateProfile(profileId, updates) {
|
|
154
|
+
const config = await this.load();
|
|
155
|
+
const existing = config.profiles?.[profileId];
|
|
156
|
+
if (!existing) {
|
|
157
|
+
throw new Error(`Profile '${profileId}' does not exist`);
|
|
158
|
+
}
|
|
159
|
+
// Merge updates
|
|
160
|
+
const updated = { ...existing, ...updates };
|
|
161
|
+
// Validate updated profile
|
|
162
|
+
const validation = this.validateProfile(updated);
|
|
163
|
+
if (!validation.valid) {
|
|
164
|
+
throw new Error(`Invalid profile: ${validation.errors.join(', ')}`);
|
|
165
|
+
}
|
|
166
|
+
config.profiles[profileId] = updated;
|
|
167
|
+
await this.save();
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Delete a profile
|
|
171
|
+
*/
|
|
172
|
+
async deleteProfile(profileId) {
|
|
173
|
+
const config = await this.load();
|
|
174
|
+
if (!config.profiles?.[profileId]) {
|
|
175
|
+
throw new Error(`Profile '${profileId}' does not exist`);
|
|
176
|
+
}
|
|
177
|
+
delete config.profiles[profileId];
|
|
178
|
+
// If this was the active profile, clear it
|
|
179
|
+
if (config.activeProfile === profileId) {
|
|
180
|
+
config.activeProfile = undefined;
|
|
181
|
+
// Set first available profile as active
|
|
182
|
+
const remaining = Object.keys(config.profiles);
|
|
183
|
+
if (remaining.length > 0) {
|
|
184
|
+
config.activeProfile = remaining[0];
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
await this.save();
|
|
188
|
+
}
|
|
189
|
+
// ==========================================================================
|
|
190
|
+
// Profile Queries
|
|
191
|
+
// ==========================================================================
|
|
192
|
+
/**
|
|
193
|
+
* Get profiles by provider
|
|
194
|
+
*/
|
|
195
|
+
async getProfilesByProvider(provider) {
|
|
196
|
+
const all = await this.getAllProfiles();
|
|
197
|
+
const filtered = {};
|
|
198
|
+
for (const [id, profile] of Object.entries(all)) {
|
|
199
|
+
if (profile.provider === provider) {
|
|
200
|
+
filtered[id] = profile;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
return filtered;
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Get profiles for a project
|
|
207
|
+
*/
|
|
208
|
+
async getProfilesForProject(projectName) {
|
|
209
|
+
const all = await this.getAllProfiles();
|
|
210
|
+
const filtered = {};
|
|
211
|
+
const lowerName = projectName.toLowerCase();
|
|
212
|
+
for (const [id, profile] of Object.entries(all)) {
|
|
213
|
+
if (!profile.projectContext) {
|
|
214
|
+
continue;
|
|
215
|
+
}
|
|
216
|
+
// Match by name
|
|
217
|
+
if (profile.projectContext.name.toLowerCase() === lowerName) {
|
|
218
|
+
filtered[id] = profile;
|
|
219
|
+
continue;
|
|
220
|
+
}
|
|
221
|
+
// Match by keywords
|
|
222
|
+
if (profile.projectContext.keywords) {
|
|
223
|
+
for (const keyword of profile.projectContext.keywords) {
|
|
224
|
+
if (lowerName.includes(keyword.toLowerCase()) ||
|
|
225
|
+
keyword.toLowerCase().includes(lowerName)) {
|
|
226
|
+
filtered[id] = profile;
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
return filtered;
|
|
233
|
+
}
|
|
234
|
+
// ==========================================================================
|
|
235
|
+
// Validation
|
|
236
|
+
// ==========================================================================
|
|
237
|
+
/**
|
|
238
|
+
* Validate a sync profile
|
|
239
|
+
*/
|
|
240
|
+
validateProfile(profile) {
|
|
241
|
+
const errors = [];
|
|
242
|
+
const warnings = [];
|
|
243
|
+
// Required fields
|
|
244
|
+
if (!profile.provider) {
|
|
245
|
+
errors.push('Provider is required');
|
|
246
|
+
}
|
|
247
|
+
else if (!['github', 'jira', 'ado'].includes(profile.provider)) {
|
|
248
|
+
errors.push(`Invalid provider: ${profile.provider}`);
|
|
249
|
+
}
|
|
250
|
+
if (!profile.displayName || profile.displayName.trim().length === 0) {
|
|
251
|
+
errors.push('Display name is required');
|
|
252
|
+
}
|
|
253
|
+
if (!profile.config) {
|
|
254
|
+
errors.push('Configuration is required');
|
|
255
|
+
}
|
|
256
|
+
else {
|
|
257
|
+
// Provider-specific validation
|
|
258
|
+
if (profile.provider === 'github') {
|
|
259
|
+
const config = profile.config;
|
|
260
|
+
if (!config.owner)
|
|
261
|
+
errors.push('GitHub owner is required');
|
|
262
|
+
if (!config.repo)
|
|
263
|
+
errors.push('GitHub repo is required');
|
|
264
|
+
}
|
|
265
|
+
else if (profile.provider === 'jira') {
|
|
266
|
+
const config = profile.config;
|
|
267
|
+
if (!config.domain)
|
|
268
|
+
errors.push('JIRA domain is required');
|
|
269
|
+
if (!config.projectKey)
|
|
270
|
+
errors.push('JIRA project key is required');
|
|
271
|
+
}
|
|
272
|
+
else if (profile.provider === 'ado') {
|
|
273
|
+
const config = profile.config;
|
|
274
|
+
if (!config.organization)
|
|
275
|
+
errors.push('ADO organization is required');
|
|
276
|
+
if (!config.project)
|
|
277
|
+
errors.push('ADO project is required');
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
if (!profile.timeRange) {
|
|
281
|
+
errors.push('Time range configuration is required');
|
|
282
|
+
}
|
|
283
|
+
else {
|
|
284
|
+
if (!profile.timeRange.default) {
|
|
285
|
+
errors.push('Default time range is required');
|
|
286
|
+
}
|
|
287
|
+
if (!profile.timeRange.max) {
|
|
288
|
+
errors.push('Maximum time range is required');
|
|
289
|
+
}
|
|
290
|
+
// Warn if max < default
|
|
291
|
+
if (profile.timeRange.max && profile.timeRange.default) {
|
|
292
|
+
const presets = ['1W', '2W', '1M', '3M', '6M', '1Y', 'ALL'];
|
|
293
|
+
const defaultIdx = presets.indexOf(profile.timeRange.default);
|
|
294
|
+
const maxIdx = presets.indexOf(profile.timeRange.max);
|
|
295
|
+
if (defaultIdx > maxIdx) {
|
|
296
|
+
warnings.push('Default time range should not exceed maximum time range');
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
// Warnings
|
|
301
|
+
if (!profile.projectContext) {
|
|
302
|
+
warnings.push('Project context is recommended for smart project detection');
|
|
303
|
+
}
|
|
304
|
+
if (profile.rateLimits &&
|
|
305
|
+
profile.rateLimits.maxItemsPerSync < profile.rateLimits.warnThreshold) {
|
|
306
|
+
warnings.push('Warn threshold should be less than max items per sync');
|
|
307
|
+
}
|
|
308
|
+
return {
|
|
309
|
+
valid: errors.length === 0,
|
|
310
|
+
errors,
|
|
311
|
+
warnings,
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
// ==========================================================================
|
|
315
|
+
// Statistics
|
|
316
|
+
// ==========================================================================
|
|
317
|
+
/**
|
|
318
|
+
* Get profile statistics
|
|
319
|
+
*/
|
|
320
|
+
async getStats() {
|
|
321
|
+
const config = await this.load();
|
|
322
|
+
const all = config.profiles || {};
|
|
323
|
+
const stats = {
|
|
324
|
+
totalProfiles: Object.keys(all).length,
|
|
325
|
+
byProvider: {
|
|
326
|
+
github: 0,
|
|
327
|
+
jira: 0,
|
|
328
|
+
ado: 0,
|
|
329
|
+
},
|
|
330
|
+
activeProfile: config.activeProfile || null,
|
|
331
|
+
};
|
|
332
|
+
for (const profile of Object.values(all)) {
|
|
333
|
+
stats.byProvider[profile.provider]++;
|
|
334
|
+
}
|
|
335
|
+
return stats;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
//# sourceMappingURL=profile-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile-manager.js","sourceRoot":"","sources":["../../../../src/core/sync/profile-manager.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAS7B,MAAM,OAAO,cAAc;IAIzB,YAAY,WAAmB;QAFvB,WAAM,GAA6B,IAAI,CAAC;QAG9C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC;IACxE,CAAC;IAED,6EAA6E;IAC7E,uBAAuB;IACvB,6EAA6E;IAE7E;;OAEG;IACH,KAAK,CAAC,IAAI;Q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;YACL,KAAK,EAAE,MAAM,CAAC,MAAM,KAAK,CAAC;YAC1B,MAAM;YACN,QAAQ;SACT,CAAC;IACJ,CAAC;IAED,6EAA6E;IAC7E,aAAa;IACb,6EAA6E;IAE7E;;OAEG;IACH,KAAK,CAAC,QAAQ;QAKZ,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;QACjC,MAAM,GAAG,GAAG,MAAM,CAAC,QAAQ,IAAI,EAAE,CAAC;QAElC,MAAM,KAAK,GAAG;YACZ,aAAa,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM;YACtC,UAAU,EAAE;gBACV,MAAM,EAAE,CAAC;gBACT,IAAI,EAAE,CAAC;gBACP,GAAG,EAAE,CAAC;aACyB;YACjC,aAAa,EAAE,MAAM,CAAC,aAAa,IAAI,IAAI;SAC5C,CAAC;QAEF,KAAK,MAAM,OAAO,IAAI,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;YACzC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;QACvC,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interactive Profile Selector
|
|
3
|
+
*
|
|
4
|
+
* Rich CLI interface for selecting sync profiles with:
|
|
5
|
+
* - Profile listing by provider
|
|
6
|
+
* - Profile details and metadata
|
|
7
|
+
* - Smart filtering and search
|
|
8
|
+
* - Create new profile option
|
|
9
|
+
*/
|
|
10
|
+
import { SyncProfile, SyncProvider } from '../types/sync-profile';
|
|
11
|
+
export declare class ProfileSelector {
|
|
12
|
+
private profileManager;
|
|
13
|
+
constructor(projectRoot: string);
|
|
14
|
+
/**
|
|
15
|
+
* Display all profiles grouped by provider
|
|
16
|
+
*/
|
|
17
|
+
displayAllProfiles(): Promise<{
|
|
18
|
+
profiles: Record<string, SyncProfile>;
|
|
19
|
+
activeProfileId: string | null;
|
|
20
|
+
byProvider: Record<SyncProvider, ProfileOption[]>;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* Display profiles for a specific provider
|
|
24
|
+
*/
|
|
25
|
+
displayProfilesByProvider(provider: SyncProvider): Promise<ProfileOption[]>;
|
|
26
|
+
/**
|
|
27
|
+
* Format profile option for display
|
|
28
|
+
*/
|
|
29
|
+
formatOption(option: ProfileOption, index: number): string[];
|
|
30
|
+
/**
|
|
31
|
+
* Format profile list header
|
|
32
|
+
*/
|
|
33
|
+
formatHeader(provider?: SyncProvider): string[];
|
|
34
|
+
/**
|
|
35
|
+
* Format "no profiles" message
|
|
36
|
+
*/
|
|
37
|
+
formatNoProfiles(provider?: SyncProvider): string[];
|
|
38
|
+
/**
|
|
39
|
+
* Display profile stats
|
|
40
|
+
*/
|
|
41
|
+
displayStats(): Promise<string[]>;
|
|
42
|
+
private formatProfileDetails;
|
|
43
|
+
private getProviderIcon;
|
|
44
|
+
private getProviderDisplayName;
|
|
45
|
+
}
|
|
46
|
+
export interface ProfileOption {
|
|
47
|
+
id: string;
|
|
48
|
+
profile: SyncProfile;
|
|
49
|
+
isActive: boolean;
|
|
50
|
+
details: string;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=profile-selector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile-selector.d.ts","sourceRoot":"","sources":["../../../../src/core/sync/profile-selector.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAMlE,qBAAa,eAAe;IAC1B,OAAO,CAAC,cAAc,CAAiB;gBAE3B,WAAW,EAAE,MAAM;IAQ/B;;OAEG;IACG,kBAAkB,IAAI,OAAO,CAAC;QAClC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;QACtC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;QAC/B,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,aAAa,EAAE,CAAC,CAAC;KACnD,CAAC;IA4BF;;OAEG;IACG,yBAAyB,CAC7B,QAAQ,EAAE,YAAY,GACrB,OAAO,CAAC,aAAa,EAAE,CAAC;IAkB3B;;OAEG;IACH,YAAY,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE;IAgC5D;;OAEG;IACH,YAAY,CAAC,QAAQ,CAAC,EAAE,YAAY,GAAG,MAAM,EAAE;IAc/C;;OAEG;IACH,gBAAgB,CAAC,QAAQ,CAAC,EAAE,YAAY,GAAG,MAAM,EAAE;IAiBnD;;OAEG;IACG,YAAY,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAgCvC,OAAO,CAAC,oBAAoB;IAsB5B,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,sBAAsB;CAQ/B;AAMD,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,WAAW,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interactive Profile Selector
|
|
3
|
+
*
|
|
4
|
+
* Rich CLI interface for selecting sync profiles with:
|
|
5
|
+
* - Profile listing by provider
|
|
6
|
+
* - Profile details and metadata
|
|
7
|
+
* - Smart filtering and search
|
|
8
|
+
* - Create new profile option
|
|
9
|
+
*/
|
|
10
|
+
import { ProfileManager } from './profile-manager';
|
|
11
|
+
// ============================================================================
|
|
12
|
+
// Profile Selector
|
|
13
|
+
// ============================================================================
|
|
14
|
+
export class ProfileSelector {
|
|
15
|
+
constructor(projectRoot) {
|
|
16
|
+
this.profileManager = new ProfileManager(projectRoot);
|
|
17
|
+
}
|
|
18
|
+
// ==========================================================================
|
|
19
|
+
// Interactive Selection
|
|
20
|
+
// ==========================================================================
|
|
21
|
+
/**
|
|
22
|
+
* Display all profiles grouped by provider
|
|
23
|
+
*/
|
|
24
|
+
async displayAllProfiles() {
|
|
25
|
+
const allProfiles = await this.profileManager.getAllProfiles();
|
|
26
|
+
const activeProfile = await this.profileManager.getActiveProfile();
|
|
27
|
+
const byProvider = {
|
|
28
|
+
github: [],
|
|
29
|
+
jira: [],
|
|
30
|
+
ado: [],
|
|
31
|
+
};
|
|
32
|
+
for (const [id, profile] of Object.entries(allProfiles)) {
|
|
33
|
+
const option = {
|
|
34
|
+
id,
|
|
35
|
+
profile,
|
|
36
|
+
isActive: activeProfile?.id === id,
|
|
37
|
+
details: this.formatProfileDetails(profile),
|
|
38
|
+
};
|
|
39
|
+
byProvider[profile.provider].push(option);
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
profiles: allProfiles,
|
|
43
|
+
activeProfileId: activeProfile?.id || null,
|
|
44
|
+
byProvider,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Display profiles for a specific provider
|
|
49
|
+
*/
|
|
50
|
+
async displayProfilesByProvider(provider) {
|
|
51
|
+
const profiles = await this.profileManager.getProfilesByProvider(provider);
|
|
52
|
+
const activeProfile = await this.profileManager.getActiveProfile();
|
|
53
|
+
const options = [];
|
|
54
|
+
for (const [id, profile] of Object.entries(profiles)) {
|
|
55
|
+
options.push({
|
|
56
|
+
id,
|
|
57
|
+
profile,
|
|
58
|
+
isActive: activeProfile?.id === id,
|
|
59
|
+
details: this.formatProfileDetails(profile),
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
return options;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Format profile option for display
|
|
66
|
+
*/
|
|
67
|
+
formatOption(option, index) {
|
|
68
|
+
const lines = [];
|
|
69
|
+
// Profile name
|
|
70
|
+
const activeTag = option.isActive ? ' (active)' : '';
|
|
71
|
+
lines.push(` ${index + 1}. ${option.profile.displayName}${activeTag}`);
|
|
72
|
+
// Configuration details
|
|
73
|
+
lines.push(` └─ ${this.getProviderIcon(option.profile.provider)} ${option.details}`);
|
|
74
|
+
// Description (if present)
|
|
75
|
+
if (option.profile.description) {
|
|
76
|
+
lines.push(` └─ ${option.profile.description}`);
|
|
77
|
+
}
|
|
78
|
+
// Time range defaults
|
|
79
|
+
lines.push(` └─ Default time range: ${option.profile.timeRange.default} (max: ${option.profile.timeRange.max})`);
|
|
80
|
+
// Project context (if present)
|
|
81
|
+
if (option.profile.projectContext) {
|
|
82
|
+
lines.push(` └─ Project: ${option.profile.projectContext.name}`);
|
|
83
|
+
}
|
|
84
|
+
return lines;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Format profile list header
|
|
88
|
+
*/
|
|
89
|
+
formatHeader(provider) {
|
|
90
|
+
const lines = [];
|
|
91
|
+
if (provider) {
|
|
92
|
+
lines.push(`🔗 ${this.getProviderDisplayName(provider)} Profiles:`);
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
lines.push('🔗 Available Sync Profiles:');
|
|
96
|
+
}
|
|
97
|
+
lines.push('');
|
|
98
|
+
return lines;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Format "no profiles" message
|
|
102
|
+
*/
|
|
103
|
+
formatNoProfiles(provider) {
|
|
104
|
+
const lines = [];
|
|
105
|
+
if (provider) {
|
|
106
|
+
lines.push(`No ${this.getProviderDisplayName(provider)} profiles configured yet.`);
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
lines.push('No sync profiles configured yet.');
|
|
110
|
+
}
|
|
111
|
+
lines.push('');
|
|
112
|
+
lines.push('Create your first profile:');
|
|
113
|
+
lines.push(' /specweave:sync-profile create');
|
|
114
|
+
lines.push('');
|
|
115
|
+
return lines;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Display profile stats
|
|
119
|
+
*/
|
|
120
|
+
async displayStats() {
|
|
121
|
+
const stats = await this.profileManager.getStats();
|
|
122
|
+
const lines = [];
|
|
123
|
+
lines.push('📊 Profile Statistics:');
|
|
124
|
+
lines.push('');
|
|
125
|
+
lines.push(` Total profiles: ${stats.totalProfiles}`);
|
|
126
|
+
if (stats.totalProfiles > 0) {
|
|
127
|
+
lines.push('');
|
|
128
|
+
lines.push(' By provider:');
|
|
129
|
+
for (const [provider, count] of Object.entries(stats.byProvider)) {
|
|
130
|
+
if (count > 0) {
|
|
131
|
+
lines.push(` ├─ ${this.getProviderIcon(provider)} ${this.getProviderDisplayName(provider)}: ${count}`);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
if (stats.activeProfile) {
|
|
136
|
+
lines.push('');
|
|
137
|
+
lines.push(` Active profile: ${stats.activeProfile}`);
|
|
138
|
+
}
|
|
139
|
+
return lines;
|
|
140
|
+
}
|
|
141
|
+
// ==========================================================================
|
|
142
|
+
// Profile Details Formatting
|
|
143
|
+
// ==========================================================================
|
|
144
|
+
formatProfileDetails(profile) {
|
|
145
|
+
switch (profile.provider) {
|
|
146
|
+
case 'github': {
|
|
147
|
+
const config = profile.config;
|
|
148
|
+
return `GitHub: ${config.owner}/${config.repo}`;
|
|
149
|
+
}
|
|
150
|
+
case 'jira': {
|
|
151
|
+
const config = profile.config;
|
|
152
|
+
return `JIRA: ${config.domain} (${config.projectKey})`;
|
|
153
|
+
}
|
|
154
|
+
case 'ado': {
|
|
155
|
+
const config = profile.config;
|
|
156
|
+
return `Azure DevOps: ${config.organization}/${config.project}`;
|
|
157
|
+
}
|
|
158
|
+
default:
|
|
159
|
+
return 'Unknown provider';
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
getProviderIcon(provider) {
|
|
163
|
+
const icons = {
|
|
164
|
+
github: '🐙',
|
|
165
|
+
jira: '📋',
|
|
166
|
+
ado: '⚡',
|
|
167
|
+
};
|
|
168
|
+
return icons[provider] || '🔗';
|
|
169
|
+
}
|
|
170
|
+
getProviderDisplayName(provider) {
|
|
171
|
+
const names = {
|
|
172
|
+
github: 'GitHub',
|
|
173
|
+
jira: 'JIRA',
|
|
174
|
+
ado: 'Azure DevOps',
|
|
175
|
+
};
|
|
176
|
+
return names[provider] || provider;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
//# sourceMappingURL=profile-selector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile-selector.js","sourceRoot":"","sources":["../../../../src/core/sync/profile-selector.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGnD,+EAA+E;AAC/E,mBAAmB;AACnB,+EAA+E;AAE/E,MAAM,OAAO,eAAe;IAG1B,YAAY,WAAmB;QAC7B,IAAI,CAAC,cAAc,GAAG,IAAI,cAAc,CAAC,WAAW,CAAC,CAAC;IACxD,CAAC;IAED,6EAA6E;IAC7E,wBAAwB;IACxB,6EAA6E;IAE7E;;OAEG;IACH,KAAK,CAAC,kBAAkB;QAKtB,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,cAAc,EAAE,CAAC;QAC/D,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,gBAAgB,EAAE,CAAC;QAEnE,MAAM,UAAU,GAA0C;YACxD,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,EAAE;YACR,GAAG,EAAE,EAAE;SACR,CAAC;QAEF,KAAK,MAAM,CAAC,EAAE,EAAE,OAAO,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC;YACxD,MAAM,MAAM,GAAkB;gBAC5B,EAAE;gBACF,OAAO;gBACP,QAAQ,EAAE,aAAa,EAAE,EAAE,KAAK,EAAE;gBAClC,OAAO,EAAE,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC;aAC5C,CAAC;YAEF,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;Q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