specweave 0.13.5 → 0.13.6
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/bin/specweave.js +1 -0
- package/dist/cli/commands/init.d.ts +1 -0
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +50 -37
- package/dist/cli/commands/init.js.map +1 -1
- package/package.json +1 -1
- package/plugins/specweave/lib/hooks/git-diff-analyzer.js +129 -213
- package/plugins/specweave/lib/hooks/invoke-translator-skill.js +146 -192
- package/plugins/specweave/lib/hooks/prepare-reflection-context.js +103 -116
- package/plugins/specweave/lib/hooks/reflection-config-loader.js +85 -125
- package/plugins/specweave/lib/hooks/reflection-parser.js +267 -385
- package/plugins/specweave/lib/hooks/reflection-prompt-builder.js +169 -226
- package/plugins/specweave/lib/hooks/reflection-storage.js +223 -297
- package/plugins/specweave/lib/hooks/run-self-reflection.js +120 -191
- package/plugins/specweave/lib/hooks/sync-living-docs.js +87 -129
- package/plugins/specweave/lib/hooks/translate-file.js +239 -300
- package/plugins/specweave/lib/hooks/translate-living-docs.js +88 -144
- package/plugins/specweave/lib/hooks/types/reflection-types.js +57 -72
- package/plugins/specweave/lib/hooks/update-tasks-md.js +117 -179
- package/plugins/specweave-ado/lib/ado-board-resolver.js +135 -205
- package/plugins/specweave-ado/lib/ado-hierarchical-sync.js +223 -335
- package/plugins/specweave-ado/lib/ado-spec-sync.js +380 -414
- package/plugins/specweave-ado/lib/project-selector.js +168 -196
- package/plugins/specweave-github/hooks/hooks.json +11 -0
- package/plugins/specweave-github/hooks/post-increment-done.sh +224 -0
- package/plugins/specweave-github/lib/cli-sync-increment-changes.js +9 -20
- package/plugins/specweave-github/lib/github-board-resolver.js +69 -115
- package/plugins/specweave-github/lib/github-client-v2.js +400 -389
- package/plugins/specweave-github/lib/github-client.js +246 -280
- package/plugins/specweave-github/lib/github-hierarchical-sync.js +168 -251
- package/plugins/specweave-github/lib/github-issue-updater.js +231 -288
- package/plugins/specweave-github/lib/github-spec-sync.js +379 -420
- package/plugins/specweave-github/lib/github-sync-bidirectional.js +175 -202
- package/plugins/specweave-github/lib/github-sync-increment-changes.js +212 -251
- package/plugins/specweave-github/lib/index.js +11 -10
- package/plugins/specweave-github/lib/repo-selector.js +174 -201
- package/plugins/specweave-github/lib/subtask-sync.js +132 -125
- package/plugins/specweave-github/lib/task-parser.js +191 -207
- package/plugins/specweave-github/lib/task-sync.js +344 -296
- package/plugins/specweave-github/lib/types.js +0 -5
- package/plugins/specweave-jira/lib/jira-board-resolver.js +50 -79
- package/plugins/specweave-jira/lib/jira-hierarchical-sync.js +119 -191
- package/plugins/specweave-jira/lib/jira-spec-sync.js +366 -405
- package/plugins/specweave-jira/lib/project-selector.js +172 -201
- package/plugins/specweave-jira/lib/reorganization-detector.js +202 -237
- package/plugins/specweave-jira/lib/setup-wizard.js +162 -204
- package/src/templates/AGENTS.md.template +42 -0
- package/dist/core/agent-model-manager.d.ts +0 -52
- package/dist/core/agent-model-manager.d.ts.map +0 -1
- package/dist/core/agent-model-manager.js +0 -120
- package/dist/core/agent-model-manager.js.map +0 -1
- package/dist/core/model-selector.d.ts +0 -57
- package/dist/core/model-selector.d.ts.map +0 -1
- package/dist/core/model-selector.js +0 -115
- package/dist/core/model-selector.js.map +0 -1
- package/dist/core/phase-detector.d.ts +0 -62
- package/dist/core/phase-detector.d.ts.map +0 -1
- package/dist/core/phase-detector.js +0 -229
- package/dist/core/phase-detector.js.map +0 -1
- package/dist/hooks/lib/git-diff-analyzer.d.ts +0 -89
- package/dist/hooks/lib/git-diff-analyzer.d.ts.map +0 -1
- package/dist/hooks/lib/git-diff-analyzer.js +0 -226
- package/dist/hooks/lib/git-diff-analyzer.js.map +0 -1
- package/dist/hooks/lib/invoke-translator-skill.d.ts +0 -60
- package/dist/hooks/lib/invoke-translator-skill.d.ts.map +0 -1
- package/dist/hooks/lib/invoke-translator-skill.js +0 -201
- package/dist/hooks/lib/invoke-translator-skill.js.map +0 -1
- package/dist/hooks/lib/prepare-reflection-context.d.ts +0 -42
- package/dist/hooks/lib/prepare-reflection-context.d.ts.map +0 -1
- package/dist/hooks/lib/prepare-reflection-context.js +0 -123
- package/dist/hooks/lib/prepare-reflection-context.js.map +0 -1
- package/dist/hooks/lib/reflection-config-loader.d.ts +0 -45
- package/dist/hooks/lib/reflection-config-loader.d.ts.map +0 -1
- package/dist/hooks/lib/reflection-config-loader.js +0 -132
- package/dist/hooks/lib/reflection-config-loader.js.map +0 -1
- package/dist/hooks/lib/reflection-parser.d.ts +0 -33
- package/dist/hooks/lib/reflection-parser.d.ts.map +0 -1
- package/dist/hooks/lib/reflection-parser.js +0 -419
- package/dist/hooks/lib/reflection-parser.js.map +0 -1
- package/dist/hooks/lib/reflection-prompt-builder.d.ts +0 -56
- package/dist/hooks/lib/reflection-prompt-builder.d.ts.map +0 -1
- package/dist/hooks/lib/reflection-prompt-builder.js +0 -239
- package/dist/hooks/lib/reflection-prompt-builder.js.map +0 -1
- package/dist/hooks/lib/reflection-storage.d.ts +0 -64
- package/dist/hooks/lib/reflection-storage.d.ts.map +0 -1
- package/dist/hooks/lib/reflection-storage.js +0 -305
- package/dist/hooks/lib/reflection-storage.js.map +0 -1
- package/dist/hooks/lib/run-self-reflection.d.ts +0 -43
- package/dist/hooks/lib/run-self-reflection.d.ts.map +0 -1
- package/dist/hooks/lib/run-self-reflection.js +0 -203
- package/dist/hooks/lib/run-self-reflection.js.map +0 -1
- package/dist/hooks/lib/sync-living-docs.d.ts +0 -27
- package/dist/hooks/lib/sync-living-docs.d.ts.map +0 -1
- package/dist/hooks/lib/sync-living-docs.js +0 -116
- package/dist/hooks/lib/sync-living-docs.js.map +0 -1
- package/dist/hooks/lib/translate-file.d.ts +0 -59
- package/dist/hooks/lib/translate-file.d.ts.map +0 -1
- package/dist/hooks/lib/translate-file.js +0 -350
- package/dist/hooks/lib/translate-file.js.map +0 -1
- package/dist/hooks/lib/translate-living-docs.d.ts +0 -13
- package/dist/hooks/lib/translate-living-docs.d.ts.map +0 -1
- package/dist/hooks/lib/translate-living-docs.js +0 -175
- package/dist/hooks/lib/translate-living-docs.js.map +0 -1
- package/dist/hooks/lib/types/reflection-types.d.ts +0 -164
- package/dist/hooks/lib/types/reflection-types.d.ts.map +0 -1
- package/dist/hooks/lib/types/reflection-types.js +0 -73
- package/dist/hooks/lib/types/reflection-types.js.map +0 -1
- package/dist/hooks/lib/update-tasks-md.d.ts +0 -29
- package/dist/hooks/lib/update-tasks-md.d.ts.map +0 -1
- package/dist/hooks/lib/update-tasks-md.js +0 -203
- package/dist/hooks/lib/update-tasks-md.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.d.ts +0 -89
- package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.js +0 -226
- package/dist/plugins/specweave/lib/hooks/git-diff-analyzer.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.d.ts +0 -60
- package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.js +0 -201
- package/dist/plugins/specweave/lib/hooks/invoke-translator-skill.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.d.ts +0 -42
- package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.js +0 -123
- package/dist/plugins/specweave/lib/hooks/prepare-reflection-context.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/reflection-config-loader.d.ts +0 -45
- package/dist/plugins/specweave/lib/hooks/reflection-config-loader.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/reflection-config-loader.js +0 -132
- package/dist/plugins/specweave/lib/hooks/reflection-config-loader.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/reflection-parser.d.ts +0 -33
- package/dist/plugins/specweave/lib/hooks/reflection-parser.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/reflection-parser.js +0 -419
- package/dist/plugins/specweave/lib/hooks/reflection-parser.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.d.ts +0 -56
- package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.js +0 -239
- package/dist/plugins/specweave/lib/hooks/reflection-prompt-builder.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/reflection-storage.d.ts +0 -64
- package/dist/plugins/specweave/lib/hooks/reflection-storage.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/reflection-storage.js +0 -305
- package/dist/plugins/specweave/lib/hooks/reflection-storage.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/run-self-reflection.d.ts +0 -43
- package/dist/plugins/specweave/lib/hooks/run-self-reflection.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/run-self-reflection.js +0 -203
- package/dist/plugins/specweave/lib/hooks/run-self-reflection.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/sync-living-docs.d.ts +0 -27
- package/dist/plugins/specweave/lib/hooks/sync-living-docs.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/sync-living-docs.js +0 -144
- package/dist/plugins/specweave/lib/hooks/sync-living-docs.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/translate-file.d.ts +0 -59
- package/dist/plugins/specweave/lib/hooks/translate-file.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/translate-file.js +0 -350
- package/dist/plugins/specweave/lib/hooks/translate-file.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/translate-living-docs.d.ts +0 -13
- package/dist/plugins/specweave/lib/hooks/translate-living-docs.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/translate-living-docs.js +0 -175
- package/dist/plugins/specweave/lib/hooks/translate-living-docs.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/types/reflection-types.d.ts +0 -164
- package/dist/plugins/specweave/lib/hooks/types/reflection-types.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/types/reflection-types.js +0 -73
- package/dist/plugins/specweave/lib/hooks/types/reflection-types.js.map +0 -1
- package/dist/plugins/specweave/lib/hooks/update-tasks-md.d.ts +0 -29
- package/dist/plugins/specweave/lib/hooks/update-tasks-md.d.ts.map +0 -1
- package/dist/plugins/specweave/lib/hooks/update-tasks-md.js +0 -203
- package/dist/plugins/specweave/lib/hooks/update-tasks-md.js.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-board-resolver.d.ts +0 -94
- package/dist/plugins/specweave-ado/lib/ado-board-resolver.d.ts.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-board-resolver.js +0 -219
- package/dist/plugins/specweave-ado/lib/ado-board-resolver.js.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-client-v2.d.ts +0 -124
- package/dist/plugins/specweave-ado/lib/ado-client-v2.d.ts.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-client-v2.js +0 -382
- package/dist/plugins/specweave-ado/lib/ado-client-v2.js.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-client.d.ts +0 -112
- package/dist/plugins/specweave-ado/lib/ado-client.d.ts.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-client.js +0 -257
- package/dist/plugins/specweave-ado/lib/ado-client.js.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-hierarchical-sync.d.ts +0 -40
- package/dist/plugins/specweave-ado/lib/ado-hierarchical-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-hierarchical-sync.js +0 -370
- package/dist/plugins/specweave-ado/lib/ado-hierarchical-sync.js.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-spec-sync.d.ts +0 -100
- package/dist/plugins/specweave-ado/lib/ado-spec-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-spec-sync.js +0 -471
- package/dist/plugins/specweave-ado/lib/ado-spec-sync.js.map +0 -1
- package/dist/plugins/specweave-ado/lib/project-selector.d.ts +0 -42
- package/dist/plugins/specweave-ado/lib/project-selector.d.ts.map +0 -1
- package/dist/plugins/specweave-ado/lib/project-selector.js +0 -211
- package/dist/plugins/specweave-ado/lib/project-selector.js.map +0 -1
- package/dist/plugins/specweave-github/lib/cli-sync-increment-changes.d.ts +0 -12
- package/dist/plugins/specweave-github/lib/cli-sync-increment-changes.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/cli-sync-increment-changes.js +0 -28
- package/dist/plugins/specweave-github/lib/cli-sync-increment-changes.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-board-resolver.d.ts +0 -54
- package/dist/plugins/specweave-github/lib/github-board-resolver.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-board-resolver.js +0 -122
- package/dist/plugins/specweave-github/lib/github-board-resolver.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-client-v2.d.ts +0 -104
- package/dist/plugins/specweave-github/lib/github-client-v2.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-client-v2.js +0 -408
- package/dist/plugins/specweave-github/lib/github-client-v2.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-client.d.ts +0 -96
- package/dist/plugins/specweave-github/lib/github-client.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-client.js +0 -299
- package/dist/plugins/specweave-github/lib/github-client.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-hierarchical-sync.d.ts +0 -29
- package/dist/plugins/specweave-github/lib/github-hierarchical-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-hierarchical-sync.js +0 -268
- package/dist/plugins/specweave-github/lib/github-hierarchical-sync.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-issue-updater.d.ts +0 -61
- package/dist/plugins/specweave-github/lib/github-issue-updater.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-issue-updater.js +0 -327
- package/dist/plugins/specweave-github/lib/github-issue-updater.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-spec-sync.d.ts +0 -108
- package/dist/plugins/specweave-github/lib/github-spec-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-spec-sync.js +0 -505
- package/dist/plugins/specweave-github/lib/github-spec-sync.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-sync-bidirectional.d.ts +0 -36
- package/dist/plugins/specweave-github/lib/github-sync-bidirectional.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-sync-bidirectional.js +0 -228
- package/dist/plugins/specweave-github/lib/github-sync-bidirectional.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-sync-increment-changes.d.ts +0 -18
- package/dist/plugins/specweave-github/lib/github-sync-increment-changes.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-sync-increment-changes.js +0 -287
- package/dist/plugins/specweave-github/lib/github-sync-increment-changes.js.map +0 -1
- package/dist/plugins/specweave-github/lib/index.d.ts +0 -10
- package/dist/plugins/specweave-github/lib/index.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/index.js +0 -10
- package/dist/plugins/specweave-github/lib/index.js.map +0 -1
- package/dist/plugins/specweave-github/lib/repo-selector.d.ts +0 -49
- package/dist/plugins/specweave-github/lib/repo-selector.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/repo-selector.js +0 -216
- package/dist/plugins/specweave-github/lib/repo-selector.js.map +0 -1
- package/dist/plugins/specweave-github/lib/subtask-sync.d.ts +0 -51
- package/dist/plugins/specweave-github/lib/subtask-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/subtask-sync.js +0 -147
- package/dist/plugins/specweave-github/lib/subtask-sync.js.map +0 -1
- package/dist/plugins/specweave-github/lib/task-parser.d.ts +0 -37
- package/dist/plugins/specweave-github/lib/task-parser.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/task-parser.js +0 -211
- package/dist/plugins/specweave-github/lib/task-parser.js.map +0 -1
- package/dist/plugins/specweave-github/lib/task-sync.d.ts +0 -51
- package/dist/plugins/specweave-github/lib/task-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/task-sync.js +0 -332
- package/dist/plugins/specweave-github/lib/task-sync.js.map +0 -1
- package/dist/plugins/specweave-github/lib/types.d.ts +0 -80
- package/dist/plugins/specweave-github/lib/types.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/types.js +0 -5
- package/dist/plugins/specweave-github/lib/types.js.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-board-resolver.d.ts +0 -50
- package/dist/plugins/specweave-jira/lib/jira-board-resolver.d.ts.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-board-resolver.js +0 -84
- package/dist/plugins/specweave-jira/lib/jira-board-resolver.js.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-hierarchical-sync.d.ts +0 -33
- package/dist/plugins/specweave-jira/lib/jira-hierarchical-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-hierarchical-sync.js +0 -206
- package/dist/plugins/specweave-jira/lib/jira-hierarchical-sync.js.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-spec-sync.d.ts +0 -105
- package/dist/plugins/specweave-jira/lib/jira-spec-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-spec-sync.js +0 -456
- package/dist/plugins/specweave-jira/lib/jira-spec-sync.js.map +0 -1
- package/dist/plugins/specweave-jira/lib/project-selector.d.ts +0 -42
- package/dist/plugins/specweave-jira/lib/project-selector.d.ts.map +0 -1
- package/dist/plugins/specweave-jira/lib/project-selector.js +0 -216
- package/dist/plugins/specweave-jira/lib/project-selector.js.map +0 -1
- package/dist/plugins/specweave-jira/lib/reorganization-detector.d.ts +0 -67
- package/dist/plugins/specweave-jira/lib/reorganization-detector.d.ts.map +0 -1
- package/dist/plugins/specweave-jira/lib/reorganization-detector.js +0 -252
- package/dist/plugins/specweave-jira/lib/reorganization-detector.js.map +0 -1
- package/dist/plugins/specweave-jira/lib/setup-wizard.d.ts +0 -29
- package/dist/plugins/specweave-jira/lib/setup-wizard.d.ts.map +0 -1
- package/dist/plugins/specweave-jira/lib/setup-wizard.js +0 -219
- package/dist/plugins/specweave-jira/lib/setup-wizard.js.map +0 -1
- package/dist/src/adapters/adapter-base.d.ts +0 -71
- package/dist/src/adapters/adapter-base.d.ts.map +0 -1
- package/dist/src/adapters/adapter-base.js +0 -139
- package/dist/src/adapters/adapter-base.js.map +0 -1
- package/dist/src/adapters/adapter-interface.d.ts +0 -149
- package/dist/src/adapters/adapter-interface.d.ts.map +0 -1
- package/dist/src/adapters/adapter-interface.js +0 -8
- package/dist/src/adapters/adapter-interface.js.map +0 -1
- package/dist/src/adapters/adapter-loader.d.ts +0 -91
- package/dist/src/adapters/adapter-loader.d.ts.map +0 -1
- package/dist/src/adapters/adapter-loader.js +0 -238
- package/dist/src/adapters/adapter-loader.js.map +0 -1
- package/dist/src/adapters/agents-md-generator.d.ts +0 -48
- package/dist/src/adapters/agents-md-generator.d.ts.map +0 -1
- package/dist/src/adapters/agents-md-generator.js +0 -193
- package/dist/src/adapters/agents-md-generator.js.map +0 -1
- package/dist/src/adapters/claude/adapter.d.ts +0 -128
- package/dist/src/adapters/claude/adapter.d.ts.map +0 -1
- package/dist/src/adapters/claude/adapter.js +0 -415
- package/dist/src/adapters/claude/adapter.js.map +0 -1
- package/dist/src/adapters/claude-md-generator.d.ts +0 -78
- package/dist/src/adapters/claude-md-generator.d.ts.map +0 -1
- package/dist/src/adapters/claude-md-generator.js +0 -307
- package/dist/src/adapters/claude-md-generator.js.map +0 -1
- package/dist/src/adapters/codex/adapter.d.ts +0 -50
- package/dist/src/adapters/codex/adapter.d.ts.map +0 -1
- package/dist/src/adapters/codex/adapter.js +0 -316
- package/dist/src/adapters/codex/adapter.js.map +0 -1
- package/dist/src/adapters/cursor/adapter.d.ts +0 -98
- package/dist/src/adapters/cursor/adapter.d.ts.map +0 -1
- package/dist/src/adapters/cursor/adapter.js +0 -406
- package/dist/src/adapters/cursor/adapter.js.map +0 -1
- package/dist/src/adapters/doc-generator.d.ts +0 -69
- package/dist/src/adapters/doc-generator.d.ts.map +0 -1
- package/dist/src/adapters/doc-generator.js +0 -247
- package/dist/src/adapters/doc-generator.js.map +0 -1
- package/dist/src/adapters/gemini/adapter.d.ts +0 -50
- package/dist/src/adapters/gemini/adapter.d.ts.map +0 -1
- package/dist/src/adapters/gemini/adapter.js +0 -281
- package/dist/src/adapters/gemini/adapter.js.map +0 -1
- package/dist/src/adapters/generic/adapter.d.ts +0 -86
- package/dist/src/adapters/generic/adapter.d.ts.map +0 -1
- package/dist/src/adapters/generic/adapter.js +0 -338
- package/dist/src/adapters/generic/adapter.js.map +0 -1
- package/dist/src/cli/commands/abandon.d.ts +0 -13
- package/dist/src/cli/commands/abandon.d.ts.map +0 -1
- package/dist/src/cli/commands/abandon.js +0 -15
- package/dist/src/cli/commands/abandon.js.map +0 -1
- package/dist/src/cli/commands/import-docs.d.ts +0 -21
- package/dist/src/cli/commands/import-docs.d.ts.map +0 -1
- package/dist/src/cli/commands/import-docs.js +0 -146
- package/dist/src/cli/commands/import-docs.js.map +0 -1
- package/dist/src/cli/commands/init-multiproject.d.ts +0 -11
- package/dist/src/cli/commands/init-multiproject.d.ts.map +0 -1
- package/dist/src/cli/commands/init-multiproject.js +0 -202
- package/dist/src/cli/commands/init-multiproject.js.map +0 -1
- package/dist/src/cli/commands/init.d.ts +0 -9
- package/dist/src/cli/commands/init.d.ts.map +0 -1
- package/dist/src/cli/commands/init.js +0 -1444
- package/dist/src/cli/commands/init.js.map +0 -1
- package/dist/src/cli/commands/install.d.ts +0 -9
- package/dist/src/cli/commands/install.d.ts.map +0 -1
- package/dist/src/cli/commands/install.js +0 -127
- package/dist/src/cli/commands/install.js.map +0 -1
- package/dist/src/cli/commands/list.d.ts +0 -8
- package/dist/src/cli/commands/list.d.ts.map +0 -1
- package/dist/src/cli/commands/list.js +0 -119
- package/dist/src/cli/commands/list.js.map +0 -1
- package/dist/src/cli/commands/migrate-to-multiproject.d.ts +0 -37
- package/dist/src/cli/commands/migrate-to-multiproject.d.ts.map +0 -1
- package/dist/src/cli/commands/migrate-to-multiproject.js +0 -189
- package/dist/src/cli/commands/migrate-to-multiproject.js.map +0 -1
- package/dist/src/cli/commands/migrate-to-profiles.d.ts +0 -25
- package/dist/src/cli/commands/migrate-to-profiles.d.ts.map +0 -1
- package/dist/src/cli/commands/migrate-to-profiles.js +0 -350
- package/dist/src/cli/commands/migrate-to-profiles.js.map +0 -1
- package/dist/src/cli/commands/pause.d.ts +0 -13
- package/dist/src/cli/commands/pause.d.ts.map +0 -1
- package/dist/src/cli/commands/pause.js +0 -15
- package/dist/src/cli/commands/pause.js.map +0 -1
- package/dist/src/cli/commands/qa.d.ts +0 -54
- package/dist/src/cli/commands/qa.d.ts.map +0 -1
- package/dist/src/cli/commands/qa.js +0 -98
- package/dist/src/cli/commands/qa.js.map +0 -1
- package/dist/src/cli/commands/resume.d.ts +0 -12
- package/dist/src/cli/commands/resume.d.ts.map +0 -1
- package/dist/src/cli/commands/resume.js +0 -14
- package/dist/src/cli/commands/resume.js.map +0 -1
- package/dist/src/cli/commands/status.d.ts +0 -12
- package/dist/src/cli/commands/status.d.ts.map +0 -1
- package/dist/src/cli/commands/status.js +0 -23
- package/dist/src/cli/commands/status.js.map +0 -1
- package/dist/src/cli/commands/switch-project.d.ts +0 -13
- package/dist/src/cli/commands/switch-project.d.ts.map +0 -1
- package/dist/src/cli/commands/switch-project.js +0 -91
- package/dist/src/cli/commands/switch-project.js.map +0 -1
- package/dist/src/cli/commands/validate-jira.d.ts +0 -35
- package/dist/src/cli/commands/validate-jira.d.ts.map +0 -1
- package/dist/src/cli/commands/validate-jira.js +0 -112
- package/dist/src/cli/commands/validate-jira.js.map +0 -1
- package/dist/src/cli/commands/validate-plugins.d.ts +0 -41
- package/dist/src/cli/commands/validate-plugins.d.ts.map +0 -1
- package/dist/src/cli/commands/validate-plugins.js +0 -171
- package/dist/src/cli/commands/validate-plugins.js.map +0 -1
- package/dist/src/cli/helpers/issue-tracker/ado.d.ts +0 -57
- package/dist/src/cli/helpers/issue-tracker/ado.d.ts.map +0 -1
- package/dist/src/cli/helpers/issue-tracker/ado.js +0 -243
- package/dist/src/cli/helpers/issue-tracker/ado.js.map +0 -1
- package/dist/src/cli/helpers/issue-tracker/github.d.ts +0 -65
- package/dist/src/cli/helpers/issue-tracker/github.d.ts.map +0 -1
- package/dist/src/cli/helpers/issue-tracker/github.js +0 -426
- package/dist/src/cli/helpers/issue-tracker/github.js.map +0 -1
- package/dist/src/cli/helpers/issue-tracker/index.d.ts +0 -22
- package/dist/src/cli/helpers/issue-tracker/index.d.ts.map +0 -1
- package/dist/src/cli/helpers/issue-tracker/index.js +0 -314
- package/dist/src/cli/helpers/issue-tracker/index.js.map +0 -1
- package/dist/src/cli/helpers/issue-tracker/jira.d.ts +0 -61
- package/dist/src/cli/helpers/issue-tracker/jira.d.ts.map +0 -1
- package/dist/src/cli/helpers/issue-tracker/jira.js +0 -404
- package/dist/src/cli/helpers/issue-tracker/jira.js.map +0 -1
- package/dist/src/cli/helpers/issue-tracker/types.d.ts +0 -108
- package/dist/src/cli/helpers/issue-tracker/types.d.ts.map +0 -1
- package/dist/src/cli/helpers/issue-tracker/types.js +0 -16
- package/dist/src/cli/helpers/issue-tracker/types.js.map +0 -1
- package/dist/src/cli/helpers/issue-tracker/utils.d.ts +0 -112
- package/dist/src/cli/helpers/issue-tracker/utils.d.ts.map +0 -1
- package/dist/src/cli/helpers/issue-tracker/utils.js +0 -247
- package/dist/src/cli/helpers/issue-tracker/utils.js.map +0 -1
- package/dist/src/core/agent-model-manager.d.ts +0 -52
- package/dist/src/core/agent-model-manager.d.ts.map +0 -1
- package/dist/src/core/agent-model-manager.js +0 -120
- package/dist/src/core/agent-model-manager.js.map +0 -1
- package/dist/src/core/brownfield/analyzer.d.ts +0 -86
- package/dist/src/core/brownfield/analyzer.d.ts.map +0 -1
- package/dist/src/core/brownfield/analyzer.js +0 -365
- package/dist/src/core/brownfield/analyzer.js.map +0 -1
- package/dist/src/core/brownfield/importer.d.ts +0 -76
- package/dist/src/core/brownfield/importer.d.ts.map +0 -1
- package/dist/src/core/brownfield/importer.js +0 -287
- package/dist/src/core/brownfield/importer.js.map +0 -1
- package/dist/src/core/config-manager.d.ts +0 -47
- package/dist/src/core/config-manager.d.ts.map +0 -1
- package/dist/src/core/config-manager.js +0 -136
- package/dist/src/core/config-manager.js.map +0 -1
- package/dist/src/core/cost-tracker.d.ts +0 -108
- package/dist/src/core/cost-tracker.d.ts.map +0 -1
- package/dist/src/core/cost-tracker.js +0 -281
- package/dist/src/core/cost-tracker.js.map +0 -1
- package/dist/src/core/credentials-manager.d.ts +0 -107
- package/dist/src/core/credentials-manager.d.ts.map +0 -1
- package/dist/src/core/credentials-manager.js +0 -457
- package/dist/src/core/credentials-manager.js.map +0 -1
- package/dist/src/core/i18n/language-detector.d.ts +0 -29
- package/dist/src/core/i18n/language-detector.d.ts.map +0 -1
- package/dist/src/core/i18n/language-detector.js +0 -143
- package/dist/src/core/i18n/language-detector.js.map +0 -1
- package/dist/src/core/i18n/language-manager.d.ts +0 -101
- package/dist/src/core/i18n/language-manager.d.ts.map +0 -1
- package/dist/src/core/i18n/language-manager.js +0 -232
- package/dist/src/core/i18n/language-manager.js.map +0 -1
- package/dist/src/core/i18n/language-registry.d.ts +0 -44
- package/dist/src/core/i18n/language-registry.d.ts.map +0 -1
- package/dist/src/core/i18n/language-registry.js +0 -234
- package/dist/src/core/i18n/language-registry.js.map +0 -1
- package/dist/src/core/i18n/locale-manager.d.ts +0 -62
- package/dist/src/core/i18n/locale-manager.d.ts.map +0 -1
- package/dist/src/core/i18n/locale-manager.js +0 -137
- package/dist/src/core/i18n/locale-manager.js.map +0 -1
- package/dist/src/core/i18n/system-prompt-injector.d.ts +0 -33
- package/dist/src/core/i18n/system-prompt-injector.d.ts.map +0 -1
- package/dist/src/core/i18n/system-prompt-injector.js +0 -131
- package/dist/src/core/i18n/system-prompt-injector.js.map +0 -1
- package/dist/src/core/i18n/types.d.ts +0 -151
- package/dist/src/core/i18n/types.d.ts.map +0 -1
- package/dist/src/core/i18n/types.js +0 -11
- package/dist/src/core/i18n/types.js.map +0 -1
- package/dist/src/core/increment/limits.d.ts +0 -68
- package/dist/src/core/increment/limits.d.ts.map +0 -1
- package/dist/src/core/increment/limits.js +0 -224
- package/dist/src/core/increment/limits.js.map +0 -1
- package/dist/src/core/increment/metadata-manager.d.ts +0 -114
- package/dist/src/core/increment/metadata-manager.d.ts.map +0 -1
- package/dist/src/core/increment/metadata-manager.js +0 -320
- package/dist/src/core/increment/metadata-manager.js.map +0 -1
- package/dist/src/core/increment/status-commands.d.ts +0 -43
- package/dist/src/core/increment/status-commands.d.ts.map +0 -1
- package/dist/src/core/increment/status-commands.js +0 -277
- package/dist/src/core/increment/status-commands.js.map +0 -1
- package/dist/src/core/increment-status.d.ts +0 -72
- package/dist/src/core/increment-status.d.ts.map +0 -1
- package/dist/src/core/increment-status.js +0 -227
- package/dist/src/core/increment-status.js.map +0 -1
- package/dist/src/core/model-selector.d.ts +0 -57
- package/dist/src/core/model-selector.d.ts.map +0 -1
- package/dist/src/core/model-selector.js +0 -115
- package/dist/src/core/model-selector.js.map +0 -1
- package/dist/src/core/phase-detector.d.ts +0 -62
- package/dist/src/core/phase-detector.d.ts.map +0 -1
- package/dist/src/core/phase-detector.js +0 -229
- package/dist/src/core/phase-detector.js.map +0 -1
- package/dist/src/core/plugin-loader.d.ts +0 -131
- package/dist/src/core/plugin-loader.d.ts.map +0 -1
- package/dist/src/core/plugin-loader.js +0 -421
- package/dist/src/core/plugin-loader.js.map +0 -1
- package/dist/src/core/project-manager.d.ts +0 -127
- package/dist/src/core/project-manager.d.ts.map +0 -1
- package/dist/src/core/project-manager.js +0 -524
- package/dist/src/core/project-manager.js.map +0 -1
- package/dist/src/core/project-structure-detector.d.ts +0 -92
- package/dist/src/core/project-structure-detector.d.ts.map +0 -1
- package/dist/src/core/project-structure-detector.js +0 -289
- package/dist/src/core/project-structure-detector.js.map +0 -1
- package/dist/src/core/qa/qa-runner.d.ts +0 -16
- package/dist/src/core/qa/qa-runner.d.ts.map +0 -1
- package/dist/src/core/qa/qa-runner.js +0 -404
- package/dist/src/core/qa/qa-runner.js.map +0 -1
- package/dist/src/core/qa/quality-gate-decider.d.ts +0 -53
- package/dist/src/core/qa/quality-gate-decider.d.ts.map +0 -1
- package/dist/src/core/qa/quality-gate-decider.js +0 -268
- package/dist/src/core/qa/quality-gate-decider.js.map +0 -1
- package/dist/src/core/qa/risk-calculator.d.ts +0 -126
- package/dist/src/core/qa/risk-calculator.d.ts.map +0 -1
- package/dist/src/core/qa/risk-calculator.js +0 -247
- package/dist/src/core/qa/risk-calculator.js.map +0 -1
- package/dist/src/core/qa/types.d.ts +0 -315
- package/dist/src/core/qa/types.d.ts.map +0 -1
- package/dist/src/core/qa/types.js +0 -8
- package/dist/src/core/qa/types.js.map +0 -1
- package/dist/src/core/rfc-generator-v2.d.ts +0 -149
- package/dist/src/core/rfc-generator-v2.d.ts.map +0 -1
- package/dist/src/core/rfc-generator-v2.js +0 -399
- package/dist/src/core/rfc-generator-v2.js.map +0 -1
- package/dist/src/core/specs/spec-metadata-manager.d.ts +0 -70
- package/dist/src/core/specs/spec-metadata-manager.d.ts.map +0 -1
- package/dist/src/core/specs/spec-metadata-manager.js +0 -371
- package/dist/src/core/specs/spec-metadata-manager.js.map +0 -1
- package/dist/src/core/specs/spec-parser.d.ts +0 -66
- package/dist/src/core/specs/spec-parser.d.ts.map +0 -1
- package/dist/src/core/specs/spec-parser.js +0 -276
- package/dist/src/core/specs/spec-parser.js.map +0 -1
- package/dist/src/core/sync/bidirectional-engine.d.ts +0 -110
- package/dist/src/core/sync/bidirectional-engine.d.ts.map +0 -1
- package/dist/src/core/sync/bidirectional-engine.js +0 -356
- package/dist/src/core/sync/bidirectional-engine.js.map +0 -1
- package/dist/src/core/sync/folder-mapper.d.ts +0 -71
- package/dist/src/core/sync/folder-mapper.d.ts.map +0 -1
- package/dist/src/core/sync/folder-mapper.js +0 -168
- package/dist/src/core/sync/folder-mapper.js.map +0 -1
- package/dist/src/core/sync/profile-manager.d.ts +0 -72
- package/dist/src/core/sync/profile-manager.d.ts.map +0 -1
- package/dist/src/core/sync/profile-manager.js +0 -338
- package/dist/src/core/sync/profile-manager.js.map +0 -1
- package/dist/src/core/sync/profile-selector.d.ts +0 -52
- package/dist/src/core/sync/profile-selector.d.ts.map +0 -1
- package/dist/src/core/sync/profile-selector.js +0 -179
- package/dist/src/core/sync/profile-selector.js.map +0 -1
- package/dist/src/core/sync/profile-validator.d.ts +0 -52
- package/dist/src/core/sync/profile-validator.d.ts.map +0 -1
- package/dist/src/core/sync/profile-validator.js +0 -225
- package/dist/src/core/sync/profile-validator.js.map +0 -1
- package/dist/src/core/sync/project-context.d.ts +0 -81
- package/dist/src/core/sync/project-context.d.ts.map +0 -1
- package/dist/src/core/sync/project-context.js +0 -354
- package/dist/src/core/sync/project-context.js.map +0 -1
- package/dist/src/core/sync/rate-limiter.d.ts +0 -116
- package/dist/src/core/sync/rate-limiter.d.ts.map +0 -1
- package/dist/src/core/sync/rate-limiter.js +0 -308
- package/dist/src/core/sync/rate-limiter.js.map +0 -1
- package/dist/src/core/sync/time-range-selector.d.ts +0 -48
- package/dist/src/core/sync/time-range-selector.d.ts.map +0 -1
- package/dist/src/core/sync/time-range-selector.js +0 -224
- package/dist/src/core/sync/time-range-selector.js.map +0 -1
- package/dist/src/core/types/config.d.ts +0 -90
- package/dist/src/core/types/config.d.ts.map +0 -1
- package/dist/src/core/types/config.js +0 -44
- package/dist/src/core/types/config.js.map +0 -1
- package/dist/src/core/types/increment-metadata.d.ts +0 -120
- package/dist/src/core/types/increment-metadata.d.ts.map +0 -1
- package/dist/src/core/types/increment-metadata.js +0 -138
- package/dist/src/core/types/increment-metadata.js.map +0 -1
- package/dist/src/core/types/plugin.d.ts +0 -283
- package/dist/src/core/types/plugin.d.ts.map +0 -1
- package/dist/src/core/types/plugin.js +0 -49
- package/dist/src/core/types/plugin.js.map +0 -1
- package/dist/src/core/types/spec-metadata.d.ts +0 -229
- package/dist/src/core/types/spec-metadata.d.ts.map +0 -1
- package/dist/src/core/types/spec-metadata.js +0 -14
- package/dist/src/core/types/spec-metadata.js.map +0 -1
- package/dist/src/core/types/sync-profile.d.ts +0 -403
- package/dist/src/core/types/sync-profile.d.ts.map +0 -1
- package/dist/src/core/types/sync-profile.js +0 -55
- package/dist/src/core/types/sync-profile.js.map +0 -1
- package/dist/src/hooks/lib/git-diff-analyzer.d.ts +0 -89
- package/dist/src/hooks/lib/git-diff-analyzer.d.ts.map +0 -1
- package/dist/src/hooks/lib/git-diff-analyzer.js +0 -226
- package/dist/src/hooks/lib/git-diff-analyzer.js.map +0 -1
- package/dist/src/hooks/lib/invoke-translator-skill.d.ts +0 -60
- package/dist/src/hooks/lib/invoke-translator-skill.d.ts.map +0 -1
- package/dist/src/hooks/lib/invoke-translator-skill.js +0 -201
- package/dist/src/hooks/lib/invoke-translator-skill.js.map +0 -1
- package/dist/src/hooks/lib/prepare-reflection-context.d.ts +0 -42
- package/dist/src/hooks/lib/prepare-reflection-context.d.ts.map +0 -1
- package/dist/src/hooks/lib/prepare-reflection-context.js +0 -123
- package/dist/src/hooks/lib/prepare-reflection-context.js.map +0 -1
- package/dist/src/hooks/lib/reflection-config-loader.d.ts +0 -45
- package/dist/src/hooks/lib/reflection-config-loader.d.ts.map +0 -1
- package/dist/src/hooks/lib/reflection-config-loader.js +0 -132
- package/dist/src/hooks/lib/reflection-config-loader.js.map +0 -1
- package/dist/src/hooks/lib/reflection-parser.d.ts +0 -33
- package/dist/src/hooks/lib/reflection-parser.d.ts.map +0 -1
- package/dist/src/hooks/lib/reflection-parser.js +0 -419
- package/dist/src/hooks/lib/reflection-parser.js.map +0 -1
- package/dist/src/hooks/lib/reflection-prompt-builder.d.ts +0 -56
- package/dist/src/hooks/lib/reflection-prompt-builder.d.ts.map +0 -1
- package/dist/src/hooks/lib/reflection-prompt-builder.js +0 -239
- package/dist/src/hooks/lib/reflection-prompt-builder.js.map +0 -1
- package/dist/src/hooks/lib/reflection-storage.d.ts +0 -64
- package/dist/src/hooks/lib/reflection-storage.d.ts.map +0 -1
- package/dist/src/hooks/lib/reflection-storage.js +0 -305
- package/dist/src/hooks/lib/reflection-storage.js.map +0 -1
- package/dist/src/hooks/lib/run-self-reflection.d.ts +0 -43
- package/dist/src/hooks/lib/run-self-reflection.d.ts.map +0 -1
- package/dist/src/hooks/lib/run-self-reflection.js +0 -203
- package/dist/src/hooks/lib/run-self-reflection.js.map +0 -1
- package/dist/src/hooks/lib/sync-living-docs.d.ts +0 -27
- package/dist/src/hooks/lib/sync-living-docs.d.ts.map +0 -1
- package/dist/src/hooks/lib/sync-living-docs.js +0 -116
- package/dist/src/hooks/lib/sync-living-docs.js.map +0 -1
- package/dist/src/hooks/lib/translate-file.d.ts +0 -59
- package/dist/src/hooks/lib/translate-file.d.ts.map +0 -1
- package/dist/src/hooks/lib/translate-file.js +0 -350
- package/dist/src/hooks/lib/translate-file.js.map +0 -1
- package/dist/src/hooks/lib/translate-living-docs.d.ts +0 -13
- package/dist/src/hooks/lib/translate-living-docs.d.ts.map +0 -1
- package/dist/src/hooks/lib/translate-living-docs.js +0 -175
- package/dist/src/hooks/lib/translate-living-docs.js.map +0 -1
- package/dist/src/hooks/lib/types/reflection-types.d.ts +0 -164
- package/dist/src/hooks/lib/types/reflection-types.d.ts.map +0 -1
- package/dist/src/hooks/lib/types/reflection-types.js +0 -73
- package/dist/src/hooks/lib/types/reflection-types.js.map +0 -1
- package/dist/src/hooks/lib/update-tasks-md.d.ts +0 -29
- package/dist/src/hooks/lib/update-tasks-md.d.ts.map +0 -1
- package/dist/src/hooks/lib/update-tasks-md.js +0 -203
- package/dist/src/hooks/lib/update-tasks-md.js.map +0 -1
- package/dist/src/integrations/ado/ado-client.d.ts +0 -127
- package/dist/src/integrations/ado/ado-client.d.ts.map +0 -1
- package/dist/src/integrations/ado/ado-client.js +0 -416
- package/dist/src/integrations/ado/ado-client.js.map +0 -1
- package/dist/src/integrations/jira/jira-client.d.ts +0 -139
- package/dist/src/integrations/jira/jira-client.d.ts.map +0 -1
- package/dist/src/integrations/jira/jira-client.js +0 -386
- package/dist/src/integrations/jira/jira-client.js.map +0 -1
- package/dist/src/integrations/jira/jira-incremental-mapper.d.ts +0 -75
- package/dist/src/integrations/jira/jira-incremental-mapper.d.ts.map +0 -1
- package/dist/src/integrations/jira/jira-incremental-mapper.js +0 -474
- package/dist/src/integrations/jira/jira-incremental-mapper.js.map +0 -1
- package/dist/src/integrations/jira/jira-mapper.d.ts +0 -105
- package/dist/src/integrations/jira/jira-mapper.d.ts.map +0 -1
- package/dist/src/integrations/jira/jira-mapper.js +0 -494
- package/dist/src/integrations/jira/jira-mapper.js.map +0 -1
- package/dist/src/metrics/calculators/change-failure-rate.d.ts +0 -22
- package/dist/src/metrics/calculators/change-failure-rate.d.ts.map +0 -1
- package/dist/src/metrics/calculators/change-failure-rate.js +0 -70
- package/dist/src/metrics/calculators/change-failure-rate.js.map +0 -1
- package/dist/src/metrics/calculators/deployment-frequency.d.ts +0 -20
- package/dist/src/metrics/calculators/deployment-frequency.d.ts.map +0 -1
- package/dist/src/metrics/calculators/deployment-frequency.js +0 -61
- package/dist/src/metrics/calculators/deployment-frequency.js.map +0 -1
- package/dist/src/metrics/calculators/lead-time.d.ts +0 -22
- package/dist/src/metrics/calculators/lead-time.d.ts.map +0 -1
- package/dist/src/metrics/calculators/lead-time.js +0 -82
- package/dist/src/metrics/calculators/lead-time.js.map +0 -1
- package/dist/src/metrics/calculators/mttr.d.ts +0 -21
- package/dist/src/metrics/calculators/mttr.d.ts.map +0 -1
- package/dist/src/metrics/calculators/mttr.js +0 -60
- package/dist/src/metrics/calculators/mttr.js.map +0 -1
- package/dist/src/metrics/dora-calculator.d.ts +0 -28
- package/dist/src/metrics/dora-calculator.d.ts.map +0 -1
- package/dist/src/metrics/dora-calculator.js +0 -117
- package/dist/src/metrics/dora-calculator.js.map +0 -1
- package/dist/src/metrics/github-client.d.ts +0 -51
- package/dist/src/metrics/github-client.d.ts.map +0 -1
- package/dist/src/metrics/github-client.js +0 -133
- package/dist/src/metrics/github-client.js.map +0 -1
- package/dist/src/metrics/report-generator.d.ts +0 -17
- package/dist/src/metrics/report-generator.d.ts.map +0 -1
- package/dist/src/metrics/report-generator.js +0 -403
- package/dist/src/metrics/report-generator.js.map +0 -1
- package/dist/src/metrics/types.d.ts +0 -112
- package/dist/src/metrics/types.d.ts.map +0 -1
- package/dist/src/metrics/types.js +0 -10
- package/dist/src/metrics/types.js.map +0 -1
- package/dist/src/metrics/utils/percentile.d.ts +0 -25
- package/dist/src/metrics/utils/percentile.d.ts.map +0 -1
- package/dist/src/metrics/utils/percentile.js +0 -46
- package/dist/src/metrics/utils/percentile.js.map +0 -1
- package/dist/src/metrics/utils/tier-classifier.d.ts +0 -61
- package/dist/src/metrics/utils/tier-classifier.d.ts.map +0 -1
- package/dist/src/metrics/utils/tier-classifier.js +0 -100
- package/dist/src/metrics/utils/tier-classifier.js.map +0 -1
- package/dist/src/testing/test-generator.d.ts +0 -117
- package/dist/src/testing/test-generator.d.ts.map +0 -1
- package/dist/src/testing/test-generator.js +0 -370
- package/dist/src/testing/test-generator.js.map +0 -1
- package/dist/src/types/cost-tracking.d.ts +0 -43
- package/dist/src/types/cost-tracking.d.ts.map +0 -1
- package/dist/src/types/cost-tracking.js +0 -8
- package/dist/src/types/cost-tracking.js.map +0 -1
- package/dist/src/types/model-selection.d.ts +0 -53
- package/dist/src/types/model-selection.d.ts.map +0 -1
- package/dist/src/types/model-selection.js +0 -12
- package/dist/src/types/model-selection.js.map +0 -1
- package/dist/src/utils/agents-md-compiler.d.ts +0 -68
- package/dist/src/utils/agents-md-compiler.d.ts.map +0 -1
- package/dist/src/utils/agents-md-compiler.js +0 -420
- package/dist/src/utils/agents-md-compiler.js.map +0 -1
- package/dist/src/utils/auth-helpers.d.ts +0 -58
- package/dist/src/utils/auth-helpers.d.ts.map +0 -1
- package/dist/src/utils/auth-helpers.js +0 -108
- package/dist/src/utils/auth-helpers.js.map +0 -1
- package/dist/src/utils/auto-install.d.ts +0 -47
- package/dist/src/utils/auto-install.d.ts.map +0 -1
- package/dist/src/utils/auto-install.js +0 -211
- package/dist/src/utils/auto-install.js.map +0 -1
- package/dist/src/utils/claude-cli-detector.d.ts +0 -75
- package/dist/src/utils/claude-cli-detector.d.ts.map +0 -1
- package/dist/src/utils/claude-cli-detector.js +0 -285
- package/dist/src/utils/claude-cli-detector.js.map +0 -1
- package/dist/src/utils/cost-reporter.d.ts +0 -58
- package/dist/src/utils/cost-reporter.d.ts.map +0 -1
- package/dist/src/utils/cost-reporter.js +0 -224
- package/dist/src/utils/cost-reporter.js.map +0 -1
- package/dist/src/utils/docs-preview/config-generator.d.ts +0 -46
- package/dist/src/utils/docs-preview/config-generator.d.ts.map +0 -1
- package/dist/src/utils/docs-preview/config-generator.js +0 -377
- package/dist/src/utils/docs-preview/config-generator.js.map +0 -1
- package/dist/src/utils/docs-preview/docusaurus-setup.d.ts +0 -38
- package/dist/src/utils/docs-preview/docusaurus-setup.d.ts.map +0 -1
- package/dist/src/utils/docs-preview/docusaurus-setup.js +0 -177
- package/dist/src/utils/docs-preview/docusaurus-setup.js.map +0 -1
- package/dist/src/utils/docs-preview/index.d.ts +0 -7
- package/dist/src/utils/docs-preview/index.d.ts.map +0 -1
- package/dist/src/utils/docs-preview/index.js +0 -7
- package/dist/src/utils/docs-preview/index.js.map +0 -1
- package/dist/src/utils/docs-preview/package-installer.d.ts +0 -42
- package/dist/src/utils/docs-preview/package-installer.d.ts.map +0 -1
- package/dist/src/utils/docs-preview/package-installer.js +0 -182
- package/dist/src/utils/docs-preview/package-installer.js.map +0 -1
- package/dist/src/utils/docs-preview/server-manager.d.ts +0 -30
- package/dist/src/utils/docs-preview/server-manager.d.ts.map +0 -1
- package/dist/src/utils/docs-preview/server-manager.js +0 -212
- package/dist/src/utils/docs-preview/server-manager.js.map +0 -1
- package/dist/src/utils/docs-preview/sidebar-builder.d.ts +0 -32
- package/dist/src/utils/docs-preview/sidebar-builder.d.ts.map +0 -1
- package/dist/src/utils/docs-preview/sidebar-builder.js +0 -202
- package/dist/src/utils/docs-preview/sidebar-builder.js.map +0 -1
- package/dist/src/utils/docs-preview/types.d.ts +0 -57
- package/dist/src/utils/docs-preview/types.d.ts.map +0 -1
- package/dist/src/utils/docs-preview/types.js +0 -2
- package/dist/src/utils/docs-preview/types.js.map +0 -1
- package/dist/src/utils/env-file.d.ts +0 -88
- package/dist/src/utils/env-file.d.ts.map +0 -1
- package/dist/src/utils/env-file.js +0 -180
- package/dist/src/utils/env-file.js.map +0 -1
- package/dist/src/utils/env-multi-project-parser.d.ts +0 -220
- package/dist/src/utils/env-multi-project-parser.d.ts.map +0 -1
- package/dist/src/utils/env-multi-project-parser.js +0 -403
- package/dist/src/utils/env-multi-project-parser.js.map +0 -1
- package/dist/src/utils/esm-helpers.d.ts +0 -50
- package/dist/src/utils/esm-helpers.d.ts.map +0 -1
- package/dist/src/utils/esm-helpers.js +0 -57
- package/dist/src/utils/esm-helpers.js.map +0 -1
- package/dist/src/utils/execFileNoThrow.d.ts +0 -99
- package/dist/src/utils/execFileNoThrow.d.ts.map +0 -1
- package/dist/src/utils/execFileNoThrow.js +0 -137
- package/dist/src/utils/execFileNoThrow.js.map +0 -1
- package/dist/src/utils/external-resource-validator.d.ts +0 -102
- package/dist/src/utils/external-resource-validator.d.ts.map +0 -1
- package/dist/src/utils/external-resource-validator.js +0 -442
- package/dist/src/utils/external-resource-validator.js.map +0 -1
- package/dist/src/utils/generate-skills-index.d.ts +0 -24
- package/dist/src/utils/generate-skills-index.d.ts.map +0 -1
- package/dist/src/utils/generate-skills-index.js +0 -410
- package/dist/src/utils/generate-skills-index.js.map +0 -1
- package/dist/src/utils/model-selection.d.ts +0 -75
- package/dist/src/utils/model-selection.d.ts.map +0 -1
- package/dist/src/utils/model-selection.js +0 -204
- package/dist/src/utils/model-selection.js.map +0 -1
- package/dist/src/utils/plugin-validator.d.ts +0 -161
- package/dist/src/utils/plugin-validator.d.ts.map +0 -1
- package/dist/src/utils/plugin-validator.js +0 -558
- package/dist/src/utils/plugin-validator.js.map +0 -1
- package/dist/src/utils/pricing-constants.d.ts +0 -70
- package/dist/src/utils/pricing-constants.d.ts.map +0 -1
- package/dist/src/utils/pricing-constants.js +0 -71
- package/dist/src/utils/pricing-constants.js.map +0 -1
- package/dist/src/utils/project-detection.d.ts +0 -141
- package/dist/src/utils/project-detection.d.ts.map +0 -1
- package/dist/src/utils/project-detection.js +0 -321
- package/dist/src/utils/project-detection.js.map +0 -1
- package/dist/src/utils/string-utils.d.ts +0 -40
- package/dist/src/utils/string-utils.d.ts.map +0 -1
- package/dist/src/utils/string-utils.js +0 -58
- package/dist/src/utils/string-utils.js.map +0 -1
- package/dist/src/utils/translation.d.ts +0 -187
- package/dist/src/utils/translation.d.ts.map +0 -1
- package/dist/src/utils/translation.js +0 -414
- package/dist/src/utils/translation.js.map +0 -1
|
@@ -1,203 +1,132 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* 6. Store reflection
|
|
11
|
-
*
|
|
12
|
-
* @module run-self-reflection
|
|
13
|
-
*/
|
|
14
|
-
import { loadAndValidateReflectionConfig } from './reflection-config-loader';
|
|
15
|
-
import { getModifiedFiles, getModifiedFilesSummary } from './git-diff-analyzer';
|
|
16
|
-
import { buildReflectionPrompt, estimatePromptTokens } from './reflection-prompt-builder';
|
|
17
|
-
import { parseReflectionMarkdown, validateReflectionResult } from './reflection-parser';
|
|
18
|
-
import { saveReflection } from './reflection-storage';
|
|
19
|
-
import { ReflectionMode, ReflectionModel } from './types/reflection-types';
|
|
20
|
-
/**
|
|
21
|
-
* Check if reflection should run for the current context
|
|
22
|
-
*
|
|
23
|
-
* @param context Reflection context with config and modified files
|
|
24
|
-
* @returns True if reflection should run
|
|
25
|
-
*/
|
|
1
|
+
import { loadAndValidateReflectionConfig } from "./reflection-config-loader";
|
|
2
|
+
import { getModifiedFiles, getModifiedFilesSummary } from "./git-diff-analyzer";
|
|
3
|
+
import { buildReflectionPrompt, estimatePromptTokens } from "./reflection-prompt-builder";
|
|
4
|
+
import { parseReflectionMarkdown, validateReflectionResult } from "./reflection-parser";
|
|
5
|
+
import { saveReflection } from "./reflection-storage";
|
|
6
|
+
import {
|
|
7
|
+
ReflectionMode,
|
|
8
|
+
ReflectionModel
|
|
9
|
+
} from "./types/reflection-types";
|
|
26
10
|
function shouldRunReflection(context) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
// Check if there are modified files to analyze
|
|
42
|
-
if (modifiedFiles.length === 0) {
|
|
43
|
-
return false;
|
|
44
|
-
}
|
|
45
|
-
return true;
|
|
11
|
+
const { config, modifiedFiles } = context;
|
|
12
|
+
if (!config.enabled) {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
if (config.mode === ReflectionMode.DISABLED) {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
if (config.mode === ReflectionMode.MANUAL) {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
if (modifiedFiles.length === 0) {
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
return true;
|
|
46
25
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const pricing = {
|
|
58
|
-
[ReflectionModel.HAIKU]: { input: 0.80, output: 4.00 },
|
|
59
|
-
[ReflectionModel.SONNET]: { input: 3.00, output: 15.00 },
|
|
60
|
-
[ReflectionModel.OPUS]: { input: 15.00, output: 75.00 }
|
|
61
|
-
};
|
|
62
|
-
const modelPricing = pricing[model];
|
|
63
|
-
const inputCost = (promptTokens / 1000000) * modelPricing.input;
|
|
64
|
-
const outputCost = (responseTokens / 1000000) * modelPricing.output;
|
|
65
|
-
return inputCost + outputCost;
|
|
26
|
+
function estimateReflectionCost(model, promptTokens, responseTokens = 2e3) {
|
|
27
|
+
const pricing = {
|
|
28
|
+
[ReflectionModel.HAIKU]: { input: 0.8, output: 4 },
|
|
29
|
+
[ReflectionModel.SONNET]: { input: 3, output: 15 },
|
|
30
|
+
[ReflectionModel.OPUS]: { input: 15, output: 75 }
|
|
31
|
+
};
|
|
32
|
+
const modelPricing = pricing[model];
|
|
33
|
+
const inputCost = promptTokens / 1e6 * modelPricing.input;
|
|
34
|
+
const outputCost = responseTokens / 1e6 * modelPricing.output;
|
|
35
|
+
return inputCost + outputCost;
|
|
66
36
|
}
|
|
67
|
-
/**
|
|
68
|
-
* Invoke reflective-reviewer agent to analyze code
|
|
69
|
-
*
|
|
70
|
-
* @param prompt Reflection prompt
|
|
71
|
-
* @param model Model to use (haiku, sonnet, opus)
|
|
72
|
-
* @returns Agent response (markdown reflection)
|
|
73
|
-
*/
|
|
74
37
|
async function invokeReflectiveReviewerAgent(prompt, model) {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
//
|
|
79
|
-
// For now, we'll return a mock response to enable testing
|
|
80
|
-
// The actual implementation will be in the hook integration (T-008)
|
|
81
|
-
throw new Error('Agent invocation not implemented yet. ' +
|
|
82
|
-
'This function will be implemented in hook integration (T-008). ' +
|
|
83
|
-
'Call this from the post-task-completion hook using the Task tool.');
|
|
38
|
+
throw new Error(
|
|
39
|
+
"Agent invocation not implemented yet. This function will be implemented in hook integration (T-008). Call this from the post-task-completion hook using the Task tool."
|
|
40
|
+
);
|
|
84
41
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
return {
|
|
133
|
-
success: false,
|
|
134
|
-
error: {
|
|
135
|
-
message: 'Reflection validation failed',
|
|
136
|
-
code: 'VALIDATION_ERROR',
|
|
137
|
-
details: validation.errors
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
// Step 8: Store reflection (if enabled)
|
|
142
|
-
if (config.storeReflections) {
|
|
143
|
-
try {
|
|
144
|
-
saveReflection(reflectionResult, incrementId, taskId);
|
|
145
|
-
}
|
|
146
|
-
catch (storageError) {
|
|
147
|
-
// Storage failure shouldn't fail the entire reflection
|
|
148
|
-
console.warn(`Failed to store reflection: ${storageError.message}`);
|
|
149
|
-
}
|
|
42
|
+
async function runSelfReflection(context) {
|
|
43
|
+
const { incrementId, taskId, modifiedFiles, config } = context;
|
|
44
|
+
const startTime = Date.now();
|
|
45
|
+
try {
|
|
46
|
+
if (!shouldRunReflection(context)) {
|
|
47
|
+
return {
|
|
48
|
+
success: true,
|
|
49
|
+
result: void 0,
|
|
50
|
+
error: void 0
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
const prompt = buildReflectionPrompt({
|
|
54
|
+
taskId,
|
|
55
|
+
taskName: `Task ${taskId}`,
|
|
56
|
+
// Will be enhanced with actual task name in hook
|
|
57
|
+
modifiedFiles,
|
|
58
|
+
config,
|
|
59
|
+
incrementId,
|
|
60
|
+
includeFullDiff: false
|
|
61
|
+
// Use simplified prompt for token efficiency
|
|
62
|
+
});
|
|
63
|
+
const promptTokens = estimatePromptTokens(prompt);
|
|
64
|
+
const estimatedCost = estimateReflectionCost(config.model, promptTokens);
|
|
65
|
+
const agentResponse = await invokeReflectiveReviewerAgent(prompt, config.model);
|
|
66
|
+
const endTime = Date.now();
|
|
67
|
+
const reflectionTime = Math.round((endTime - startTime) / 1e3);
|
|
68
|
+
const reflectionResult = parseReflectionMarkdown(
|
|
69
|
+
agentResponse,
|
|
70
|
+
`Task ${taskId}`,
|
|
71
|
+
config.model,
|
|
72
|
+
reflectionTime,
|
|
73
|
+
estimatedCost
|
|
74
|
+
);
|
|
75
|
+
const fileStats = getModifiedFilesSummary(modifiedFiles);
|
|
76
|
+
reflectionResult.filesModified = {
|
|
77
|
+
count: fileStats.count,
|
|
78
|
+
linesAdded: fileStats.linesAdded,
|
|
79
|
+
linesRemoved: fileStats.linesRemoved
|
|
80
|
+
};
|
|
81
|
+
const validation = validateReflectionResult(reflectionResult);
|
|
82
|
+
if (!validation.valid) {
|
|
83
|
+
return {
|
|
84
|
+
success: false,
|
|
85
|
+
error: {
|
|
86
|
+
message: "Reflection validation failed",
|
|
87
|
+
code: "VALIDATION_ERROR",
|
|
88
|
+
details: validation.errors
|
|
150
89
|
}
|
|
151
|
-
|
|
152
|
-
return {
|
|
153
|
-
success: true,
|
|
154
|
-
result: reflectionResult
|
|
155
|
-
};
|
|
90
|
+
};
|
|
156
91
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
code: 'REFLECTION_ERROR',
|
|
164
|
-
details: error.stack
|
|
165
|
-
}
|
|
166
|
-
};
|
|
92
|
+
if (config.storeReflections) {
|
|
93
|
+
try {
|
|
94
|
+
saveReflection(reflectionResult, incrementId, taskId);
|
|
95
|
+
} catch (storageError) {
|
|
96
|
+
console.warn(`Failed to store reflection: ${storageError.message}`);
|
|
97
|
+
}
|
|
167
98
|
}
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Create reflection context from hook environment
|
|
171
|
-
* Helper function for hook integration
|
|
172
|
-
*
|
|
173
|
-
* @param incrementId Increment identifier
|
|
174
|
-
* @param taskId Task identifier
|
|
175
|
-
* @param projectRoot Project root directory (optional, auto-detected)
|
|
176
|
-
* @returns Reflection context ready for runSelfReflection
|
|
177
|
-
*/
|
|
178
|
-
export function createReflectionContext(incrementId, taskId, projectRoot) {
|
|
179
|
-
// Load and validate configuration
|
|
180
|
-
const config = loadAndValidateReflectionConfig(projectRoot);
|
|
181
|
-
// Get modified files from git
|
|
182
|
-
const modifiedFiles = getModifiedFiles(projectRoot);
|
|
183
99
|
return {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
modifiedFiles,
|
|
187
|
-
config
|
|
100
|
+
success: true,
|
|
101
|
+
result: reflectionResult
|
|
188
102
|
};
|
|
103
|
+
} catch (error) {
|
|
104
|
+
return {
|
|
105
|
+
success: false,
|
|
106
|
+
error: {
|
|
107
|
+
message: error.message || "Unknown error during reflection",
|
|
108
|
+
code: "REFLECTION_ERROR",
|
|
109
|
+
details: error.stack
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
function createReflectionContext(incrementId, taskId, projectRoot) {
|
|
115
|
+
const config = loadAndValidateReflectionConfig(projectRoot);
|
|
116
|
+
const modifiedFiles = getModifiedFiles(projectRoot);
|
|
117
|
+
return {
|
|
118
|
+
incrementId,
|
|
119
|
+
taskId,
|
|
120
|
+
modifiedFiles,
|
|
121
|
+
config
|
|
122
|
+
};
|
|
189
123
|
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
*
|
|
194
|
-
* @param incrementId Increment identifier
|
|
195
|
-
* @param taskId Task identifier
|
|
196
|
-
* @param projectRoot Project root directory (optional)
|
|
197
|
-
* @returns Reflection execution result
|
|
198
|
-
*/
|
|
199
|
-
export async function runReflectionAuto(incrementId, taskId, projectRoot) {
|
|
200
|
-
const context = createReflectionContext(incrementId, taskId, projectRoot);
|
|
201
|
-
return runSelfReflection(context);
|
|
124
|
+
async function runReflectionAuto(incrementId, taskId, projectRoot) {
|
|
125
|
+
const context = createReflectionContext(incrementId, taskId, projectRoot);
|
|
126
|
+
return runSelfReflection(context);
|
|
202
127
|
}
|
|
203
|
-
|
|
128
|
+
export {
|
|
129
|
+
createReflectionContext,
|
|
130
|
+
runReflectionAuto,
|
|
131
|
+
runSelfReflection
|
|
132
|
+
};
|
|
@@ -1,144 +1,102 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* Automatically syncs living documentation after task completion.
|
|
6
|
-
*
|
|
7
|
-
* Usage:
|
|
8
|
-
* node dist/hooks/lib/sync-living-docs.js <incrementId>
|
|
9
|
-
*
|
|
10
|
-
* Example:
|
|
11
|
-
* node dist/hooks/lib/sync-living-docs.js 0006-llm-native-i18n
|
|
12
|
-
*
|
|
13
|
-
* What it does:
|
|
14
|
-
* 1. Checks if sync_living_docs enabled in config
|
|
15
|
-
* 2. Detects changed docs via git diff
|
|
16
|
-
* 3. Invokes /sync-docs update command (future implementation)
|
|
17
|
-
* 4. Logs sync actions
|
|
18
|
-
*
|
|
19
|
-
* @author SpecWeave Team
|
|
20
|
-
* @version 1.0.0
|
|
21
|
-
*/
|
|
22
|
-
import fs from 'fs-extra';
|
|
23
|
-
import path from 'path';
|
|
24
|
-
import { execSync } from 'child_process';
|
|
25
|
-
/**
|
|
26
|
-
* Main function - sync living docs for given increment
|
|
27
|
-
*/
|
|
2
|
+
import fs from "fs-extra";
|
|
3
|
+
import path from "path";
|
|
4
|
+
import { execSync } from "child_process";
|
|
28
5
|
async function syncLivingDocs(incrementId) {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
// 2. Check if sync enabled
|
|
38
|
-
const syncEnabled = config.hooks?.post_task_completion?.sync_living_docs ?? false;
|
|
39
|
-
if (!syncEnabled) {
|
|
40
|
-
console.log('ℹ️ Living docs sync disabled in config');
|
|
41
|
-
console.log(' To enable: Set hooks.post_task_completion.sync_living_docs = true');
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
console.log('✅ Living docs sync enabled');
|
|
45
|
-
// 3. Detect changed docs via git diff
|
|
46
|
-
const changedDocs = detectChangedDocs();
|
|
47
|
-
if (changedDocs.length === 0) {
|
|
48
|
-
console.log('ℹ️ No living docs changed (no git diff in .specweave/docs/)');
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
console.log(`📄 Detected ${changedDocs.length} changed doc(s):`);
|
|
52
|
-
changedDocs.forEach((doc) => console.log(` - ${doc}`));
|
|
53
|
-
// 4. Sync to GitHub if configured
|
|
54
|
-
await syncToGitHub(incrementId, changedDocs);
|
|
55
|
-
console.log('✅ Living docs sync complete\n');
|
|
6
|
+
try {
|
|
7
|
+
console.log(`
|
|
8
|
+
\u{1F4DA} Checking living docs sync for increment: ${incrementId}`);
|
|
9
|
+
const configPath = path.join(process.cwd(), ".specweave", "config.json");
|
|
10
|
+
let config = {};
|
|
11
|
+
if (fs.existsSync(configPath)) {
|
|
12
|
+
config = JSON.parse(await fs.readFile(configPath, "utf-8"));
|
|
56
13
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
14
|
+
const syncEnabled = config.hooks?.post_task_completion?.sync_living_docs ?? false;
|
|
15
|
+
if (!syncEnabled) {
|
|
16
|
+
console.log("\u2139\uFE0F Living docs sync disabled in config");
|
|
17
|
+
console.log(" To enable: Set hooks.post_task_completion.sync_living_docs = true");
|
|
18
|
+
return;
|
|
60
19
|
}
|
|
20
|
+
console.log("\u2705 Living docs sync enabled");
|
|
21
|
+
const changedDocs = detectChangedDocs();
|
|
22
|
+
if (changedDocs.length === 0) {
|
|
23
|
+
console.log("\u2139\uFE0F No living docs changed (no git diff in .specweave/docs/)");
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
console.log(`\u{1F4C4} Detected ${changedDocs.length} changed doc(s):`);
|
|
27
|
+
changedDocs.forEach((doc) => console.log(` - ${doc}`));
|
|
28
|
+
await syncToGitHub(incrementId, changedDocs);
|
|
29
|
+
console.log("\u2705 Living docs sync complete\n");
|
|
30
|
+
} catch (error) {
|
|
31
|
+
console.error("\u274C Error syncing living docs:", error);
|
|
32
|
+
}
|
|
61
33
|
}
|
|
62
|
-
/**
|
|
63
|
-
* Detect changed documentation files via git diff
|
|
64
|
-
*/
|
|
65
34
|
function detectChangedDocs() {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
return [];
|
|
74
|
-
}
|
|
75
|
-
// Filter to only .md files
|
|
76
|
-
const files = output
|
|
77
|
-
.split('\n')
|
|
78
|
-
.filter((f) => f.endsWith('.md'))
|
|
79
|
-
.filter((f) => f.length > 0);
|
|
80
|
-
return files;
|
|
81
|
-
}
|
|
82
|
-
catch (error) {
|
|
83
|
-
console.warn('⚠️ Could not detect git changes:', error);
|
|
84
|
-
return [];
|
|
35
|
+
try {
|
|
36
|
+
const output = execSync("git diff --name-only .specweave/docs/ 2>/dev/null || true", {
|
|
37
|
+
encoding: "utf-8",
|
|
38
|
+
cwd: process.cwd()
|
|
39
|
+
}).trim();
|
|
40
|
+
if (!output) {
|
|
41
|
+
return [];
|
|
85
42
|
}
|
|
43
|
+
const files = output.split("\n").filter((f) => f.endsWith(".md")).filter((f) => f.length > 0);
|
|
44
|
+
return files;
|
|
45
|
+
} catch (error) {
|
|
46
|
+
console.warn("\u26A0\uFE0F Could not detect git changes:", error);
|
|
47
|
+
return [];
|
|
48
|
+
}
|
|
86
49
|
}
|
|
87
|
-
/**
|
|
88
|
-
* Sync changed docs to GitHub
|
|
89
|
-
*/
|
|
90
50
|
async function syncToGitHub(incrementId, changedDocs) {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
console.log(` Syncing to ${owner}/${repo}#${issueNumber}`);
|
|
110
|
-
// 3. Collect all living docs
|
|
111
|
-
const livingDocs = await collectLivingDocs(incrementId);
|
|
112
|
-
// 4. Update issue with living docs section
|
|
113
|
-
if (livingDocs.specs.length > 0 || livingDocs.architecture.length > 0 || livingDocs.diagrams.length > 0) {
|
|
114
|
-
await updateIssueLivingDocs(issueNumber, livingDocs, owner, repo);
|
|
115
|
-
}
|
|
116
|
-
// 5. Post comments for newly created architecture docs
|
|
117
|
-
for (const docPath of changedDocs) {
|
|
118
|
-
if (docPath.includes('/architecture/')) {
|
|
119
|
-
await postArchitectureComment(issueNumber, docPath, owner, repo);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
console.log('✅ GitHub sync complete');
|
|
51
|
+
try {
|
|
52
|
+
console.log("\n\u{1F504} Syncing to GitHub...");
|
|
53
|
+
const {
|
|
54
|
+
loadIncrementMetadata,
|
|
55
|
+
detectRepo,
|
|
56
|
+
collectLivingDocs,
|
|
57
|
+
updateIssueLivingDocs,
|
|
58
|
+
postArchitectureComment
|
|
59
|
+
} = await import("../../../specweave-github/lib/github-issue-updater.js");
|
|
60
|
+
const metadata = await loadIncrementMetadata(incrementId);
|
|
61
|
+
if (!metadata?.github?.issue) {
|
|
62
|
+
console.log("\u2139\uFE0F No GitHub issue linked, skipping GitHub sync");
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
const repoInfo = await detectRepo();
|
|
66
|
+
if (!repoInfo) {
|
|
67
|
+
console.log("\u26A0\uFE0F Could not detect GitHub repository, skipping GitHub sync");
|
|
68
|
+
return;
|
|
123
69
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
70
|
+
const { owner, repo } = repoInfo;
|
|
71
|
+
const issueNumber = metadata.github.issue;
|
|
72
|
+
console.log(` Syncing to ${owner}/${repo}#${issueNumber}`);
|
|
73
|
+
const livingDocs = await collectLivingDocs(incrementId);
|
|
74
|
+
if (livingDocs.specs.length > 0 || livingDocs.architecture.length > 0 || livingDocs.diagrams.length > 0) {
|
|
75
|
+
await updateIssueLivingDocs(issueNumber, livingDocs, owner, repo);
|
|
127
76
|
}
|
|
77
|
+
for (const docPath of changedDocs) {
|
|
78
|
+
if (docPath.includes("/architecture/")) {
|
|
79
|
+
await postArchitectureComment(issueNumber, docPath, owner, repo);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
console.log("\u2705 GitHub sync complete");
|
|
83
|
+
} catch (error) {
|
|
84
|
+
console.error("\u274C Error syncing to GitHub:", error);
|
|
85
|
+
console.error(" (Non-blocking - continuing...)");
|
|
86
|
+
}
|
|
128
87
|
}
|
|
129
|
-
// CLI entry point
|
|
130
88
|
const isMainModule = import.meta.url === `file://${process.argv[1]}`;
|
|
131
89
|
if (isMainModule) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
});
|
|
90
|
+
const incrementId = process.argv[2];
|
|
91
|
+
if (!incrementId) {
|
|
92
|
+
console.error("\u274C Usage: sync-living-docs <incrementId>");
|
|
93
|
+
console.error(" Example: sync-living-docs 0006-llm-native-i18n");
|
|
94
|
+
process.exit(1);
|
|
95
|
+
}
|
|
96
|
+
syncLivingDocs(incrementId).catch((error) => {
|
|
97
|
+
console.error("\u274C Fatal error:", error);
|
|
98
|
+
});
|
|
142
99
|
}
|
|
143
|
-
export {
|
|
144
|
-
|
|
100
|
+
export {
|
|
101
|
+
syncLivingDocs
|
|
102
|
+
};
|