specweave 0.12.7 → 0.13.1
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 +142 -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/dist/utils/external-resource-validator.js +1 -1
- package/dist/utils/external-resource-validator.js.map +1 -1
- 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,280 @@
|
|
|
1
|
+
# SpecWeave GitHub Plugin Hooks
|
|
2
|
+
|
|
3
|
+
**Plugin**: `specweave-github`
|
|
4
|
+
**Location**: `plugins/specweave-github/hooks/`
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
|
|
10
|
+
This hook automatically syncs SpecWeave increment progress to GitHub Issues after each task completion.
|
|
11
|
+
|
|
12
|
+
**Key Features**:
|
|
13
|
+
- ✅ Updates GitHub issue checkboxes based on `tasks.md` completion status
|
|
14
|
+
- ✅ Posts progress comments with percentage completion
|
|
15
|
+
- ✅ Bidirectional sync (local → GitHub)
|
|
16
|
+
- ✅ Non-blocking (failures don't stop core workflow)
|
|
17
|
+
- ✅ Self-contained (no dependencies on core plugin)
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Available Hooks
|
|
22
|
+
|
|
23
|
+
### 1. `post-task-completion.sh`
|
|
24
|
+
|
|
25
|
+
**Triggers**: After ANY task is marked complete (via TodoWrite tool)
|
|
26
|
+
|
|
27
|
+
**Preconditions**:
|
|
28
|
+
- ✅ Active increment exists (`.specweave/increments/####/`)
|
|
29
|
+
- ✅ `metadata.json` has `.github.issue` field
|
|
30
|
+
- ✅ GitHub CLI (`gh`) installed and authenticated
|
|
31
|
+
- ✅ `tasks.md` file exists in increment
|
|
32
|
+
|
|
33
|
+
**Actions**:
|
|
34
|
+
1. Reads completed tasks from `tasks.md`
|
|
35
|
+
2. Fetches GitHub issue body
|
|
36
|
+
3. Updates checkboxes for completed tasks
|
|
37
|
+
4. Posts progress comment with percentage
|
|
38
|
+
5. Logs all actions to `.specweave/logs/hooks-debug.log`
|
|
39
|
+
|
|
40
|
+
**Example Flow**:
|
|
41
|
+
```
|
|
42
|
+
Task T-003 completed in tasks.md
|
|
43
|
+
↓
|
|
44
|
+
Hook fires (PostToolUse + TodoWrite matcher)
|
|
45
|
+
↓
|
|
46
|
+
GitHub issue #42 checkboxes updated: [ ] T-003 → [x] T-003
|
|
47
|
+
↓
|
|
48
|
+
Progress comment posted: "Progress Update: 3/5 tasks (60%)"
|
|
49
|
+
↓
|
|
50
|
+
Log: "[GitHub] ✅ GitHub sync complete"
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**Dependencies**:
|
|
54
|
+
- `gh` CLI (GitHub CLI)
|
|
55
|
+
- `jq` for JSON parsing
|
|
56
|
+
- Bash 4.0+
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Configuration
|
|
61
|
+
|
|
62
|
+
### Hook Registration (`hooks.json`)
|
|
63
|
+
|
|
64
|
+
```json
|
|
65
|
+
{
|
|
66
|
+
"hooks": {
|
|
67
|
+
"PostToolUse": [
|
|
68
|
+
{
|
|
69
|
+
"matcher": "TodoWrite",
|
|
70
|
+
"hooks": [
|
|
71
|
+
{
|
|
72
|
+
"type": "command",
|
|
73
|
+
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/post-task-completion.sh"
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
**Key Points**:
|
|
83
|
+
- Uses `${CLAUDE_PLUGIN_ROOT}` to reference plugin directory
|
|
84
|
+
- Matches `TodoWrite` tool (fires when tasks complete)
|
|
85
|
+
- Runs as `command` type (shell script)
|
|
86
|
+
|
|
87
|
+
### Metadata Format
|
|
88
|
+
|
|
89
|
+
Increments must have `metadata.json` with GitHub issue link:
|
|
90
|
+
|
|
91
|
+
```json
|
|
92
|
+
{
|
|
93
|
+
"github": {
|
|
94
|
+
"issue": 42,
|
|
95
|
+
"url": "https://github.com/owner/repo/issues/42",
|
|
96
|
+
"repo": "owner/repo"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Installation
|
|
104
|
+
|
|
105
|
+
### Automatic (Recommended)
|
|
106
|
+
|
|
107
|
+
When `specweave init` runs, all plugin hooks are automatically installed:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
npx specweave init my-project
|
|
111
|
+
# Installs all plugins including specweave-github
|
|
112
|
+
# Hooks auto-register via hooks.json
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Manual (Development)
|
|
116
|
+
|
|
117
|
+
For testing or development:
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
# Install plugin
|
|
121
|
+
/plugin install specweave-github
|
|
122
|
+
|
|
123
|
+
# Verify hook registration
|
|
124
|
+
cat ~/.claude/settings.json
|
|
125
|
+
# Should show specweave-github hooks registered
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## Testing
|
|
131
|
+
|
|
132
|
+
### Test Hook Independently
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
# Test syntax
|
|
136
|
+
bash -n plugins/specweave-github/hooks/post-task-completion.sh
|
|
137
|
+
|
|
138
|
+
# Test execution (requires active increment + GitHub issue)
|
|
139
|
+
./plugins/specweave-github/hooks/post-task-completion.sh
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Test with GitHub Issue
|
|
143
|
+
|
|
144
|
+
1. Create increment: `/specweave:increment "test feature"`
|
|
145
|
+
2. Create GitHub issue: `/specweave-github:create-issue 0001`
|
|
146
|
+
3. Complete a task (TodoWrite)
|
|
147
|
+
4. Hook fires → Check GitHub issue for updates
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## Logging
|
|
152
|
+
|
|
153
|
+
All GitHub sync actions are logged to:
|
|
154
|
+
|
|
155
|
+
```
|
|
156
|
+
.specweave/logs/hooks-debug.log
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
**Example Log Output**:
|
|
160
|
+
```
|
|
161
|
+
[2025-11-10] [GitHub] 🔗 GitHub sync hook fired
|
|
162
|
+
[2025-11-10] [GitHub] 🔄 Syncing to GitHub issue #42
|
|
163
|
+
[2025-11-10] [GitHub] 📊 Syncing task checkboxes to GitHub issue #42
|
|
164
|
+
[2025-11-10] [GitHub] Completed tasks found: T-001 T-002 T-003
|
|
165
|
+
[2025-11-10] [GitHub] Updated checkbox for task: T-001
|
|
166
|
+
[2025-11-10] [GitHub] Updated checkbox for task: T-002
|
|
167
|
+
[2025-11-10] [GitHub] Updated checkbox for task: T-003
|
|
168
|
+
[2025-11-10] [GitHub] ✅ Issue description checkboxes updated
|
|
169
|
+
[2025-11-10] [GitHub] ✅ Progress comment posted (60%)
|
|
170
|
+
[2025-11-10] [GitHub] ✅ GitHub sync complete
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
**Log Prefixes**:
|
|
174
|
+
- `[GitHub]` - All messages from this hook
|
|
175
|
+
- `🔗` - Hook fired
|
|
176
|
+
- `🔄` - Syncing started
|
|
177
|
+
- `📊` - Syncing task data
|
|
178
|
+
- `✅` - Success
|
|
179
|
+
- `⚠️` - Warning (non-blocking failure)
|
|
180
|
+
- `ℹ️` - Info (skipped due to precondition)
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Architecture
|
|
185
|
+
|
|
186
|
+
### How It Works with Core Plugin
|
|
187
|
+
|
|
188
|
+
**Before (v0.12.x)**:
|
|
189
|
+
```
|
|
190
|
+
Core hook (500+ lines)
|
|
191
|
+
├── Sound notifications
|
|
192
|
+
├── Living docs sync
|
|
193
|
+
├── Translation
|
|
194
|
+
├── GitHub sync ← Embedded in core!
|
|
195
|
+
├── JIRA sync ← Embedded in core!
|
|
196
|
+
└── ADO sync ← Embedded in core!
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
**After (v0.13.0+)**:
|
|
200
|
+
```
|
|
201
|
+
Core hook (330 lines) GitHub plugin hook (241 lines)
|
|
202
|
+
├── Sound notifications ├── Check for GitHub issue
|
|
203
|
+
├── Living docs sync ├── Update checkboxes
|
|
204
|
+
├── Translation ├── Post progress comment
|
|
205
|
+
└── Self-reflection └── Log actions
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
**Key Benefits**:
|
|
209
|
+
- ✅ **Separation of concerns**: Core plugin has NO external tool dependencies
|
|
210
|
+
- ✅ **Optional plugin**: GitHub sync only runs if `specweave-github` installed
|
|
211
|
+
- ✅ **Independent testing**: Test GitHub sync in isolation
|
|
212
|
+
- ✅ **Cleaner code**: Each hook <250 lines, single responsibility
|
|
213
|
+
- ✅ **Parallel execution**: Claude Code runs all hooks concurrently
|
|
214
|
+
|
|
215
|
+
---
|
|
216
|
+
|
|
217
|
+
## Troubleshooting
|
|
218
|
+
|
|
219
|
+
### Hook Not Firing
|
|
220
|
+
|
|
221
|
+
**Check**:
|
|
222
|
+
1. Plugin installed: `/plugin list --installed | grep specweave-github`
|
|
223
|
+
2. Hook registered: `cat ~/.claude/settings.json | grep specweave-github`
|
|
224
|
+
3. Active increment: `cat .specweave/logs/current-increment`
|
|
225
|
+
4. GitHub issue linked: `cat .specweave/increments/####/metadata.json | jq .github`
|
|
226
|
+
|
|
227
|
+
### GitHub CLI Not Found
|
|
228
|
+
|
|
229
|
+
**Fix**:
|
|
230
|
+
```bash
|
|
231
|
+
# macOS
|
|
232
|
+
brew install gh
|
|
233
|
+
|
|
234
|
+
# Linux
|
|
235
|
+
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
|
|
236
|
+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
|
|
237
|
+
sudo apt update
|
|
238
|
+
sudo apt install gh
|
|
239
|
+
|
|
240
|
+
# Authenticate
|
|
241
|
+
gh auth login
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### Sync Failures
|
|
245
|
+
|
|
246
|
+
**Check logs**:
|
|
247
|
+
```bash
|
|
248
|
+
tail -f .specweave/logs/hooks-debug.log | grep '\[GitHub\]'
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
**Common issues**:
|
|
252
|
+
- ❌ No `metadata.json`: Create GitHub issue via `/specweave-github:create-issue`
|
|
253
|
+
- ❌ Not authenticated: Run `gh auth login`
|
|
254
|
+
- ❌ Invalid issue number: Check `metadata.json` has correct issue ID
|
|
255
|
+
- ❌ Network error: Check internet connection
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
|
|
259
|
+
## Migration from v0.12.x
|
|
260
|
+
|
|
261
|
+
If upgrading from SpecWeave v0.12.x or earlier:
|
|
262
|
+
|
|
263
|
+
1. **Automatic**: Run `specweave init` (re-installs all hooks)
|
|
264
|
+
2. **Manual**: Copy `plugins/specweave-github/hooks/` to `.claude/hooks/` (not recommended)
|
|
265
|
+
|
|
266
|
+
**No action needed**: Existing increments with GitHub issues will continue to sync automatically.
|
|
267
|
+
|
|
268
|
+
---
|
|
269
|
+
|
|
270
|
+
## Related Documentation
|
|
271
|
+
|
|
272
|
+
- **Core Plugin Hooks**: `plugins/specweave/hooks/README.md`
|
|
273
|
+
- **Architecture Analysis**: `.specweave/increments/0018-strict-increment-discipline-enforcement/reports/HOOKS-ARCHITECTURE-ANALYSIS.md`
|
|
274
|
+
- **Claude Code Hooks Guide**: https://code.claude.com/docs/en/hooks-guide
|
|
275
|
+
- **GitHub Sync Command**: `plugins/specweave-github/commands/specweave-github-sync.md`
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
**Version**: v0.13.0+
|
|
280
|
+
**Last Updated**: 2025-11-10
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# SpecWeave GitHub Sync Hook
|
|
4
|
+
# Runs after task completion to sync progress to GitHub Issues
|
|
5
|
+
#
|
|
6
|
+
# This hook is part of the specweave-github plugin and handles:
|
|
7
|
+
# - Updating GitHub issue checkboxes based on tasks.md completion status
|
|
8
|
+
# - Posting progress comments to GitHub issues
|
|
9
|
+
# - Syncing task completion state bidirectionally
|
|
10
|
+
#
|
|
11
|
+
# Dependencies:
|
|
12
|
+
# - gh CLI (GitHub CLI) must be installed and authenticated
|
|
13
|
+
# - jq for JSON parsing
|
|
14
|
+
# - metadata.json must have .github.issue field
|
|
15
|
+
|
|
16
|
+
set -e
|
|
17
|
+
|
|
18
|
+
# ============================================================================
|
|
19
|
+
# PROJECT ROOT DETECTION
|
|
20
|
+
# ============================================================================
|
|
21
|
+
|
|
22
|
+
# Find project root by searching upward for .specweave/ directory
|
|
23
|
+
find_project_root() {
|
|
24
|
+
local dir="$1"
|
|
25
|
+
while [ "$dir" != "/" ]; do
|
|
26
|
+
if [ -d "$dir/.specweave" ]; then
|
|
27
|
+
echo "$dir"
|
|
28
|
+
return 0
|
|
29
|
+
fi
|
|
30
|
+
dir="$(dirname "$dir")"
|
|
31
|
+
done
|
|
32
|
+
# Fallback: try current directory
|
|
33
|
+
if [ -d "$(pwd)/.specweave" ]; then
|
|
34
|
+
pwd
|
|
35
|
+
else
|
|
36
|
+
echo "$(pwd)"
|
|
37
|
+
fi
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
PROJECT_ROOT="$(find_project_root "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)")"
|
|
41
|
+
cd "$PROJECT_ROOT" 2>/dev/null || true
|
|
42
|
+
|
|
43
|
+
# ============================================================================
|
|
44
|
+
# CONFIGURATION
|
|
45
|
+
# ============================================================================
|
|
46
|
+
|
|
47
|
+
LOGS_DIR=".specweave/logs"
|
|
48
|
+
DEBUG_LOG="$LOGS_DIR/hooks-debug.log"
|
|
49
|
+
|
|
50
|
+
mkdir -p "$LOGS_DIR" 2>/dev/null || true
|
|
51
|
+
|
|
52
|
+
# ============================================================================
|
|
53
|
+
# PRECONDITIONS CHECK
|
|
54
|
+
# ============================================================================
|
|
55
|
+
|
|
56
|
+
echo "[$(date)] [GitHub] 🔗 GitHub sync hook fired" >> "$DEBUG_LOG" 2>/dev/null || true
|
|
57
|
+
|
|
58
|
+
# Detect current increment
|
|
59
|
+
CURRENT_INCREMENT=$(ls -t .specweave/increments/ 2>/dev/null | grep -v "_backlog" | head -1)
|
|
60
|
+
|
|
61
|
+
if [ -z "$CURRENT_INCREMENT" ]; then
|
|
62
|
+
echo "[$(date)] [GitHub] ℹ️ No active increment, skipping GitHub sync" >> "$DEBUG_LOG" 2>/dev/null || true
|
|
63
|
+
cat <<EOF
|
|
64
|
+
{
|
|
65
|
+
"continue": true
|
|
66
|
+
}
|
|
67
|
+
EOF
|
|
68
|
+
exit 0
|
|
69
|
+
fi
|
|
70
|
+
|
|
71
|
+
# Check for metadata.json
|
|
72
|
+
METADATA_FILE=".specweave/increments/$CURRENT_INCREMENT/metadata.json"
|
|
73
|
+
|
|
74
|
+
if [ ! -f "$METADATA_FILE" ]; then
|
|
75
|
+
echo "[$(date)] [GitHub] ℹ️ No metadata.json for $CURRENT_INCREMENT, skipping GitHub sync" >> "$DEBUG_LOG" 2>/dev/null || true
|
|
76
|
+
cat <<EOF
|
|
77
|
+
{
|
|
78
|
+
"continue": true
|
|
79
|
+
}
|
|
80
|
+
EOF
|
|
81
|
+
exit 0
|
|
82
|
+
fi
|
|
83
|
+
|
|
84
|
+
# Check for GitHub issue link
|
|
85
|
+
if ! command -v jq &> /dev/null; then
|
|
86
|
+
echo "[$(date)] [GitHub] ⚠️ jq not found, skipping GitHub sync" >> "$DEBUG_LOG" 2>/dev/null || true
|
|
87
|
+
cat <<EOF
|
|
88
|
+
{
|
|
89
|
+
"continue": true
|
|
90
|
+
}
|
|
91
|
+
EOF
|
|
92
|
+
exit 0
|
|
93
|
+
fi
|
|
94
|
+
|
|
95
|
+
GITHUB_ISSUE=$(jq -r '.github.issue // empty' "$METADATA_FILE" 2>/dev/null)
|
|
96
|
+
|
|
97
|
+
if [ -z "$GITHUB_ISSUE" ]; then
|
|
98
|
+
echo "[$(date)] [GitHub] ℹ️ No GitHub issue linked to $CURRENT_INCREMENT, skipping sync" >> "$DEBUG_LOG" 2>/dev/null || true
|
|
99
|
+
cat <<EOF
|
|
100
|
+
{
|
|
101
|
+
"continue": true
|
|
102
|
+
}
|
|
103
|
+
EOF
|
|
104
|
+
exit 0
|
|
105
|
+
fi
|
|
106
|
+
|
|
107
|
+
# Check for gh CLI
|
|
108
|
+
if ! command -v gh &> /dev/null; then
|
|
109
|
+
echo "[$(date)] [GitHub] ⚠️ GitHub CLI (gh) not found, skipping sync" >> "$DEBUG_LOG" 2>/dev/null || true
|
|
110
|
+
cat <<EOF
|
|
111
|
+
{
|
|
112
|
+
"continue": true
|
|
113
|
+
}
|
|
114
|
+
EOF
|
|
115
|
+
exit 0
|
|
116
|
+
fi
|
|
117
|
+
|
|
118
|
+
# ============================================================================
|
|
119
|
+
# GITHUB SYNC LOGIC
|
|
120
|
+
# ============================================================================
|
|
121
|
+
|
|
122
|
+
echo "[$(date)] [GitHub] 🔄 Syncing to GitHub issue #$GITHUB_ISSUE" >> "$DEBUG_LOG" 2>/dev/null || true
|
|
123
|
+
|
|
124
|
+
TASKS_FILE=".specweave/increments/$CURRENT_INCREMENT/tasks.md"
|
|
125
|
+
|
|
126
|
+
if [ ! -f "$TASKS_FILE" ]; then
|
|
127
|
+
echo "[$(date)] [GitHub] ℹ️ tasks.md not found for $CURRENT_INCREMENT, skipping sync" >> "$DEBUG_LOG" 2>/dev/null || true
|
|
128
|
+
cat <<EOF
|
|
129
|
+
{
|
|
130
|
+
"continue": true
|
|
131
|
+
}
|
|
132
|
+
EOF
|
|
133
|
+
exit 0
|
|
134
|
+
fi
|
|
135
|
+
|
|
136
|
+
echo "[$(date)] [GitHub] 📊 Syncing task checkboxes to GitHub issue #$GITHUB_ISSUE" >> "$DEBUG_LOG" 2>/dev/null || true
|
|
137
|
+
|
|
138
|
+
# Get list of completed tasks from tasks.md
|
|
139
|
+
# Find all "## T-XXX:" headers where the task has "[x]" checkbox
|
|
140
|
+
COMPLETED_TASK_IDS=$(awk '
|
|
141
|
+
/^## T-[0-9]+:/ {
|
|
142
|
+
task_id = $2
|
|
143
|
+
gsub(/:/, "", task_id)
|
|
144
|
+
current_task = task_id
|
|
145
|
+
task_title = substr($0, index($0, $3))
|
|
146
|
+
next
|
|
147
|
+
}
|
|
148
|
+
/^- \[x\]/ && current_task != "" {
|
|
149
|
+
# Found a completed checkbox under a task
|
|
150
|
+
print current_task
|
|
151
|
+
current_task = ""
|
|
152
|
+
}
|
|
153
|
+
' "$TASKS_FILE" 2>/dev/null)
|
|
154
|
+
|
|
155
|
+
echo "[$(date)] [GitHub] Completed tasks found: $COMPLETED_TASK_IDS" >> "$DEBUG_LOG" 2>/dev/null || true
|
|
156
|
+
|
|
157
|
+
# Read current issue body
|
|
158
|
+
ISSUE_BODY=$(gh issue view "$GITHUB_ISSUE" --json body -q .body 2>/dev/null || echo "")
|
|
159
|
+
|
|
160
|
+
if [ -z "$ISSUE_BODY" ]; then
|
|
161
|
+
echo "[$(date)] [GitHub] ⚠️ Failed to read issue body, skipping sync" >> "$DEBUG_LOG" 2>/dev/null || true
|
|
162
|
+
cat <<EOF
|
|
163
|
+
{
|
|
164
|
+
"continue": true
|
|
165
|
+
}
|
|
166
|
+
EOF
|
|
167
|
+
exit 0
|
|
168
|
+
fi
|
|
169
|
+
|
|
170
|
+
# Create temporary file for updated body
|
|
171
|
+
TEMP_BODY=$(mktemp)
|
|
172
|
+
echo "$ISSUE_BODY" > "$TEMP_BODY"
|
|
173
|
+
|
|
174
|
+
# Update checkboxes for completed tasks
|
|
175
|
+
# Pattern: "- [ ] task-name" -> "- [x] task-name"
|
|
176
|
+
for task_id in $COMPLETED_TASK_IDS; do
|
|
177
|
+
# Update checkbox for this task ID
|
|
178
|
+
# Look for patterns like "[ ] T-013:" or "[ ] CLAUDE.md updates" etc.
|
|
179
|
+
sed -i.bak "s/- \[ \] \(.*${task_id}.*\)/- [x] \1/g" "$TEMP_BODY" 2>/dev/null || true
|
|
180
|
+
sed -i.bak "s/- \[ \] \(.*T-0*${task_id#T-}[: ].*\)/- [x] \1/g" "$TEMP_BODY" 2>/dev/null || true
|
|
181
|
+
|
|
182
|
+
echo "[$(date)] [GitHub] Updated checkbox for task: $task_id" >> "$DEBUG_LOG" 2>/dev/null || true
|
|
183
|
+
done
|
|
184
|
+
|
|
185
|
+
# Also update based on task names (more reliable)
|
|
186
|
+
# Check for common patterns in issue body
|
|
187
|
+
if grep -q "test-aware-planner" "$TASKS_FILE" && grep -q "\[x\]" "$TASKS_FILE"; then
|
|
188
|
+
sed -i.bak "s/- \[ \] \(.*test-aware-planner.*\)/- [x] \1/g" "$TEMP_BODY" 2>/dev/null || true
|
|
189
|
+
fi
|
|
190
|
+
if grep -q "PM.*increment-planner" "$TASKS_FILE" && grep -q "\[x\]" "$TASKS_FILE"; then
|
|
191
|
+
sed -i.bak "s/- \[ \] \(.*PM.*increment-planner.*\)/- [x] \1/g" "$TEMP_BODY" 2>/dev/null || true
|
|
192
|
+
sed -i.bak "s/- \[ \] \(.*Enhanced PM.*\)/- [x] \1/g" "$TEMP_BODY" 2>/dev/null || true
|
|
193
|
+
fi
|
|
194
|
+
if grep -q "CLAUDE.md" "$TASKS_FILE" && grep -q "\[x\]" "$TASKS_FILE"; then
|
|
195
|
+
sed -i.bak "s/- \[ \] \(.*CLAUDE\.md.*\)/- [x] \1/g" "$TEMP_BODY" 2>/dev/null || true
|
|
196
|
+
fi
|
|
197
|
+
|
|
198
|
+
# Read updated body
|
|
199
|
+
UPDATED_BODY=$(cat "$TEMP_BODY")
|
|
200
|
+
|
|
201
|
+
# Update issue with new body
|
|
202
|
+
gh issue edit "$GITHUB_ISSUE" --body "$UPDATED_BODY" 2>&1 | tee -a "$DEBUG_LOG" >/dev/null || {
|
|
203
|
+
echo "[$(date)] [GitHub] ⚠️ Failed to update issue description (non-blocking)" >> "$DEBUG_LOG" 2>/dev/null || true
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
# Cleanup
|
|
207
|
+
rm -f "$TEMP_BODY" "$TEMP_BODY.bak"
|
|
208
|
+
|
|
209
|
+
echo "[$(date)] [GitHub] ✅ Issue description checkboxes updated" >> "$DEBUG_LOG" 2>/dev/null || true
|
|
210
|
+
|
|
211
|
+
# Calculate progress for comment
|
|
212
|
+
TOTAL_TASKS=$(grep -c "^## T-[0-9]" "$TASKS_FILE" 2>/dev/null || echo "0")
|
|
213
|
+
COMPLETED_TASKS=$(echo "$COMPLETED_TASK_IDS" | wc -w | tr -d ' ')
|
|
214
|
+
|
|
215
|
+
if [ "$TOTAL_TASKS" -gt 0 ]; then
|
|
216
|
+
PROGRESS_PCT=$((COMPLETED_TASKS * 100 / TOTAL_TASKS))
|
|
217
|
+
|
|
218
|
+
# Post progress comment
|
|
219
|
+
gh issue comment "$GITHUB_ISSUE" --body "**Progress Update**: $COMPLETED_TASKS/$TOTAL_TASKS tasks ($PROGRESS_PCT%)
|
|
220
|
+
|
|
221
|
+
Increment: \`$CURRENT_INCREMENT\`
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
🤖 Auto-updated by SpecWeave GitHub plugin" 2>&1 | tee -a "$DEBUG_LOG" >/dev/null || {
|
|
225
|
+
echo "[$(date)] [GitHub] ⚠️ Failed to comment on GitHub issue (non-blocking)" >> "$DEBUG_LOG" 2>/dev/null || true
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
echo "[$(date)] [GitHub] ✅ Progress comment posted ($PROGRESS_PCT%)" >> "$DEBUG_LOG" 2>/dev/null || true
|
|
229
|
+
fi
|
|
230
|
+
|
|
231
|
+
echo "[$(date)] [GitHub] ✅ GitHub sync complete" >> "$DEBUG_LOG" 2>/dev/null || true
|
|
232
|
+
|
|
233
|
+
# ============================================================================
|
|
234
|
+
# OUTPUT TO CLAUDE
|
|
235
|
+
# ============================================================================
|
|
236
|
+
|
|
237
|
+
cat <<EOF
|
|
238
|
+
{
|
|
239
|
+
"continue": true
|
|
240
|
+
}
|
|
241
|
+
EOF
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* CLI wrapper for syncing increment changes to GitHub
|
|
4
|
+
*
|
|
5
|
+
* Usage:
|
|
6
|
+
* node dist/plugins/specweave-github/lib/cli-sync-increment-changes.js <incrementId> <changedFile>
|
|
7
|
+
*
|
|
8
|
+
* Example:
|
|
9
|
+
* node dist/plugins/specweave-github/lib/cli-sync-increment-changes.js 0015-hierarchical-sync spec.md
|
|
10
|
+
*/
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=cli-sync-increment-changes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-sync-increment-changes.d.ts","sourceRoot":"","sources":["cli-sync-increment-changes.ts"],"names":[],"mappings":";AAEA;;;;;;;;GAQG"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* CLI wrapper for syncing increment changes to GitHub
|
|
4
|
+
*
|
|
5
|
+
* Usage:
|
|
6
|
+
* node dist/plugins/specweave-github/lib/cli-sync-increment-changes.js <incrementId> <changedFile>
|
|
7
|
+
*
|
|
8
|
+
* Example:
|
|
9
|
+
* node dist/plugins/specweave-github/lib/cli-sync-increment-changes.js 0015-hierarchical-sync spec.md
|
|
10
|
+
*/
|
|
11
|
+
import { syncIncrementChanges } from './github-sync-increment-changes.js';
|
|
12
|
+
const incrementId = process.argv[2];
|
|
13
|
+
const changedFile = process.argv[3];
|
|
14
|
+
if (!incrementId || !changedFile) {
|
|
15
|
+
console.error('❌ Usage: cli-sync-increment-changes <incrementId> <changedFile>');
|
|
16
|
+
console.error(' Example: cli-sync-increment-changes 0015-hierarchical-sync spec.md');
|
|
17
|
+
process.exit(1);
|
|
18
|
+
}
|
|
19
|
+
if (!['spec.md', 'plan.md', 'tasks.md'].includes(changedFile)) {
|
|
20
|
+
console.error(`❌ Invalid file: ${changedFile}`);
|
|
21
|
+
console.error(' Must be one of: spec.md, plan.md, tasks.md');
|
|
22
|
+
process.exit(1);
|
|
23
|
+
}
|
|
24
|
+
syncIncrementChanges(incrementId, changedFile).catch((error) => {
|
|
25
|
+
console.error('❌ Fatal error:', error);
|
|
26
|
+
// Don't exit with error code - best-effort sync
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=cli-sync-increment-changes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-sync-increment-changes.js","sourceRoot":"","sources":["cli-sync-increment-changes.ts"],"names":[],"mappings":";AAEA;;;;;;;;GAQG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAE1E,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpC,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAuC,CAAC;AAE1E,IAAI,CAAC,WAAW,IAAI,CAAC,WAAW,EAAE,CAAC;IACjC,OAAO,CAAC,KAAK,CAAC,iEAAiE,CAAC,CAAC;IACjF,OAAO,CAAC,KAAK,CAAC,uEAAuE,CAAC,CAAC;IACvF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;IAC9D,OAAO,CAAC,KAAK,CAAC,mBAAmB,WAAW,EAAE,CAAC,CAAC;IAChD,OAAO,CAAC,KAAK,CAAC,+CAA+C,CAAC,CAAC;IAC/D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,oBAAoB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IAC7D,OAAO,CAAC,KAAK,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;IACvC,gDAAgD;AAClD,CAAC,CAAC,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GitHub Project Board Resolution for Hierarchical Sync
|
|
3
|
+
*
|
|
4
|
+
* Resolves project board names to board IDs for use in search queries.
|
|
5
|
+
* Supports both GitHub Classic Projects (v1) and Projects v2 (beta).
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* GitHub Project Board (Classic Projects)
|
|
9
|
+
*/
|
|
10
|
+
export interface GitHubProjectBoard {
|
|
11
|
+
id: number;
|
|
12
|
+
name: string;
|
|
13
|
+
number: number;
|
|
14
|
+
state: 'open' | 'closed';
|
|
15
|
+
html_url: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Fetch all project boards for a GitHub repository
|
|
19
|
+
*
|
|
20
|
+
* Uses GitHub CLI: gh api repos/{owner}/{repo}/projects
|
|
21
|
+
*
|
|
22
|
+
* @param owner Repository owner
|
|
23
|
+
* @param repo Repository name
|
|
24
|
+
* @returns Array of project boards
|
|
25
|
+
*/
|
|
26
|
+
export declare function fetchBoardsForRepo(owner: string, repo: string): Promise<GitHubProjectBoard[]>;
|
|
27
|
+
/**
|
|
28
|
+
* Fetch organization-level project boards
|
|
29
|
+
*
|
|
30
|
+
* Uses GitHub CLI: gh api orgs/{org}/projects
|
|
31
|
+
*
|
|
32
|
+
* @param org Organization name
|
|
33
|
+
* @returns Array of organization project boards
|
|
34
|
+
*/
|
|
35
|
+
export declare function fetchBoardsForOrg(org: string): Promise<GitHubProjectBoard[]>;
|
|
36
|
+
/**
|
|
37
|
+
* Resolve board names to board numbers (for repo-level projects)
|
|
38
|
+
*
|
|
39
|
+
* @param owner Repository owner
|
|
40
|
+
* @param repo Repository name
|
|
41
|
+
* @param boardNames Array of board names to resolve
|
|
42
|
+
* @returns Map of board name → board number
|
|
43
|
+
*/
|
|
44
|
+
export declare function resolveBoardNames(owner: string, repo: string, boardNames: string[]): Promise<Map<string, number>>;
|
|
45
|
+
/**
|
|
46
|
+
* Get board numbers for a list of board names (helper function)
|
|
47
|
+
*
|
|
48
|
+
* @param owner Repository owner
|
|
49
|
+
* @param repo Repository name
|
|
50
|
+
* @param boardNames Array of board names
|
|
51
|
+
* @returns Array of board numbers (skips boards not found)
|
|
52
|
+
*/
|
|
53
|
+
export declare function getBoardNumbers(owner: string, repo: string, boardNames: string[]): Promise<number[]>;
|
|
54
|
+
//# sourceMappingURL=github-board-resolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"github-board-resolver.d.ts","sourceRoot":"","sources":["github-board-resolver.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,QAAQ,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;GAQG;AACH,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAgC/B;AAED;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAgC/B;AAED;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAAE,GACnB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAwB9B;AAED;;;;;;;GAOG;AACH,wBAAsB,eAAe,CACnC,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,MAAM,EAAE,GACnB,OAAO,CAAC,MAAM,EAAE,CAAC,CAGnB"}
|