specweave 1.0.506 → 1.0.508
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-plugin/README.md +25 -32
- package/.claude-plugin/marketplace.json +1 -78
- package/dist/plugins/specweave/lib/features/release/dashboard-generator.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/features/release/dashboard-generator.js.map +1 -0
- package/dist/plugins/specweave/lib/features/release/dora-tracker.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/features/release/dora-tracker.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-ac-checkbox-sync.d.ts +44 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-ac-checkbox-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-ac-checkbox-sync.js +236 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-ac-checkbox-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-board-resolver.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-board-resolver.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-client-v2.d.ts +139 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-client-v2.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-client-v2.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-client.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-client.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-duplicate-detector.d.ts +100 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-duplicate-detector.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-duplicate-detector.js +292 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-duplicate-detector.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-permission-gate.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-permission-gate.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-profile-resolver.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-profile-resolver.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-pull-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-pull-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-rate-limiter.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-rate-limiter.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-spec-commit-sync.d.ts +38 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-spec-commit-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-spec-commit-sync.js +210 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-spec-commit-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-spec-content-sync.d.ts +28 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-spec-content-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-spec-content-sync.js +300 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-spec-content-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-spec-sync.d.ts +147 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-spec-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-spec-sync.js +749 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-spec-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-status-sync.d.ts +79 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-status-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-status-sync.js +162 -0
- package/dist/plugins/specweave/lib/integrations/ado/ado-status-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/conflict-resolver.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/conflict-resolver.js +439 -0
- package/dist/plugins/specweave/lib/integrations/ado/conflict-resolver.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/per-us-sync.d.ts +131 -0
- package/dist/plugins/specweave/lib/integrations/ado/per-us-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/ado/per-us-sync.js +322 -0
- package/dist/plugins/specweave/lib/integrations/ado/per-us-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/CodeValidator.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/CodeValidator.js +219 -0
- package/dist/plugins/specweave/lib/integrations/github/CodeValidator.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/IssueStateManager.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/IssueStateManager.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/completion-calculator.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/completion-calculator.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/duplicate-detector.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/duplicate-detector.js +423 -0
- package/dist/plugins/specweave/lib/integrations/github/duplicate-detector.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-ac-checkbox-sync.d.ts +54 -0
- package/dist/plugins/specweave/lib/integrations/github/github-ac-checkbox-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-ac-checkbox-sync.js +305 -0
- package/dist/plugins/specweave/lib/integrations/github/github-ac-checkbox-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-ac-comment-poster.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-ac-comment-poster.js +232 -0
- package/dist/plugins/specweave/lib/integrations/github/github-ac-comment-poster.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-batch-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-batch-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-board-resolver-v2.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-board-resolver-v2.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-client-v2.d.ts +214 -0
- package/dist/plugins/specweave/lib/integrations/github/github-client-v2.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-client-v2.js +812 -0
- package/dist/plugins/specweave/lib/integrations/github/github-client-v2.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-client.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-client.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-conflict-resolver.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-conflict-resolver.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-cross-repo-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-cross-repo-sync.js +172 -0
- package/dist/plugins/specweave/lib/integrations/github/github-cross-repo-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-feature-sync-cli.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-feature-sync-cli.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-feature-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-feature-sync.js +1112 -0
- package/dist/plugins/specweave/lib/integrations/github/github-feature-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-field-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-field-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-graphql-client.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-graphql-client.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-issue-body-generator.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-issue-body-generator.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-issue-body-parser.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-issue-body-parser.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-issue-updater.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-issue-updater.js +339 -0
- package/dist/plugins/specweave/lib/integrations/github/github-issue-updater.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-pull-sync.d.ts +94 -0
- package/dist/plugins/specweave/lib/integrations/github/github-pull-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-pull-sync.js +232 -0
- package/dist/plugins/specweave/lib/integrations/github/github-pull-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-push-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-push-sync.js +127 -0
- package/dist/plugins/specweave/lib/integrations/github/github-push-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-rate-limiter.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-rate-limiter.js +109 -0
- package/dist/plugins/specweave/lib/integrations/github/github-rate-limiter.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-spec-commit-sync.d.ts +37 -0
- package/dist/plugins/specweave/lib/integrations/github/github-spec-commit-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-spec-commit-sync.js +209 -0
- package/dist/plugins/specweave/lib/integrations/github/github-spec-commit-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-spec-content-sync.d.ts +28 -0
- package/dist/plugins/specweave/lib/integrations/github/github-spec-content-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-spec-content-sync.js +365 -0
- package/dist/plugins/specweave/lib/integrations/github/github-spec-content-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-spec-frontmatter-updater.d.ts +21 -0
- package/dist/plugins/specweave/lib/integrations/github/github-spec-frontmatter-updater.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-spec-frontmatter-updater.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-spec-sync.d.ts +225 -0
- package/dist/plugins/specweave/lib/integrations/github/github-spec-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-spec-sync.js +974 -0
- package/dist/plugins/specweave/lib/integrations/github/github-spec-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-sync-orchestrator.d.ts +47 -0
- package/dist/plugins/specweave/lib/integrations/github/github-sync-orchestrator.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-sync-orchestrator.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-us-auto-closer.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/github-us-auto-closer.js +219 -0
- package/dist/plugins/specweave/lib/integrations/github/github-us-auto-closer.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/index.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/index.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/per-us-sync.d.ts +126 -0
- package/dist/plugins/specweave/lib/integrations/github/per-us-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/per-us-sync.js +394 -0
- package/dist/plugins/specweave/lib/integrations/github/per-us-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/progress-comment-builder.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/progress-comment-builder.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/types.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/types.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/user-story-content-builder.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/user-story-content-builder.js +310 -0
- package/dist/plugins/specweave/lib/integrations/github/user-story-content-builder.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/user-story-issue-builder.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/github/user-story-issue-builder.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/content-format-adapter.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/content-format-adapter.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-ac-checkbox-sync.d.ts +47 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-ac-checkbox-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-ac-checkbox-sync.js +307 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-ac-checkbox-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-board-resolver.d.ts +50 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-board-resolver.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-board-resolver.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-deployment-detector.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-deployment-detector.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-duplicate-detector.d.ts +103 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-duplicate-detector.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-duplicate-detector.js +295 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-duplicate-detector.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-epic-sync.d.ts +67 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-epic-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-epic-sync.js +286 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-epic-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-field-discovery.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-field-discovery.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-paginated-search.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-paginated-search.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-permission-gate.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-permission-gate.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-spec-commit-sync.d.ts +43 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-spec-commit-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-spec-commit-sync.js +284 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-spec-commit-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-spec-content-sync.d.ts +33 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-spec-content-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-spec-content-sync.js +294 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-spec-content-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-spec-sync.d.ts +180 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-spec-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-spec-sync.js +757 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-spec-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-status-sync.d.ts +116 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-status-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-status-sync.js +302 -0
- package/dist/plugins/specweave/lib/integrations/jira/jira-status-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/metadata-paths.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/metadata-paths.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/per-us-sync.d.ts +117 -0
- package/dist/plugins/specweave/lib/integrations/jira/per-us-sync.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/per-us-sync.js +274 -0
- package/dist/plugins/specweave/lib/integrations/jira/per-us-sync.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/reorganization-detector.d.ts +80 -0
- package/dist/plugins/specweave/lib/integrations/jira/reorganization-detector.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/reorganization-detector.js.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/setup-wizard.d.ts +29 -0
- package/dist/plugins/specweave/lib/integrations/jira/setup-wizard.d.ts.map +1 -0
- package/dist/plugins/specweave/lib/integrations/jira/setup-wizard.js +198 -0
- package/dist/plugins/specweave/lib/integrations/jira/setup-wizard.js.map +1 -0
- package/dist/plugins/specweave/lib/vendor/sync/github-reconciler.d.ts +1 -1
- package/dist/plugins/specweave/lib/vendor/sync/github-reconciler.js +2 -2
- package/dist/plugins/specweave/lib/vendor/sync/github-reconciler.js.map +1 -1
- package/dist/src/cli/commands/refresh-plugins.d.ts.map +1 -1
- package/dist/src/cli/commands/refresh-plugins.js +9 -1
- package/dist/src/cli/commands/refresh-plugins.js.map +1 -1
- package/dist/src/cli/commands/sync-progress.js +1 -1
- package/dist/src/cli/commands/sync-progress.js.map +1 -1
- package/dist/src/cli/helpers/async-project-loader.js +1 -1
- package/dist/src/cli/helpers/async-project-loader.js.map +1 -1
- package/dist/src/cli/helpers/cancelation-handler.d.ts +1 -1
- package/dist/src/cli/helpers/cancelation-handler.js +1 -1
- package/dist/src/cli/helpers/init/ado-repo-cloning.js +1 -1
- package/dist/src/cli/helpers/init/ado-repo-cloning.js.map +1 -1
- package/dist/src/cli/helpers/init/github-repo-cloning.js +1 -1
- package/dist/src/cli/helpers/init/github-repo-cloning.js.map +1 -1
- package/dist/src/cli/helpers/init/jira-ado-auto-detect.d.ts +2 -2
- package/dist/src/cli/helpers/init/jira-ado-auto-detect.d.ts.map +1 -1
- package/dist/src/cli/helpers/init/jira-ado-auto-detect.js +2 -2
- package/dist/src/cli/helpers/init/jira-ado-auto-detect.js.map +1 -1
- package/dist/src/cli/helpers/init/plugin-installer.d.ts.map +1 -1
- package/dist/src/cli/helpers/init/plugin-installer.js +11 -3
- package/dist/src/cli/helpers/init/plugin-installer.js.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/ado-area-selection.js +1 -1
- package/dist/src/cli/helpers/issue-tracker/ado-area-selection.js.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/ado.js +3 -3
- package/dist/src/cli/helpers/issue-tracker/ado.js.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/github-multi-repo.js +1 -1
- package/dist/src/cli/helpers/issue-tracker/github-multi-repo.js.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/github.js +4 -4
- package/dist/src/cli/helpers/issue-tracker/github.js.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/index.js +1 -1
- package/dist/src/cli/helpers/issue-tracker/index.js.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/jira-board-selection.js +1 -1
- package/dist/src/cli/helpers/issue-tracker/jira-board-selection.js.map +1 -1
- package/dist/src/core/ac-progress-sync.js +5 -5
- package/dist/src/core/ac-progress-sync.js.map +1 -1
- package/dist/src/core/analytics/types.d.ts +1 -1
- package/dist/src/core/analytics/types.d.ts.map +1 -1
- package/dist/src/core/config/types.d.ts +1 -1
- package/dist/src/core/hooks/github-project-sync.js +4 -4
- package/dist/src/core/hooks/github-project-sync.js.map +1 -1
- package/dist/src/core/living-docs/living-docs-sync.js +5 -5
- package/dist/src/core/living-docs/living-docs-sync.js.map +1 -1
- package/dist/src/core/types/plugin.d.ts +1 -1
- package/dist/src/core/types/plugin.d.ts.map +1 -1
- package/dist/src/integrations/ado/ado-client-factory.d.ts +1 -1
- package/dist/src/integrations/ado/ado-client-factory.d.ts.map +1 -1
- package/dist/src/integrations/ado/ado-client-factory.js +1 -1
- package/dist/src/integrations/ado/ado-client-factory.js.map +1 -1
- package/dist/src/integrations/ado/ado-dependency-loader.js +1 -1
- package/dist/src/integrations/ado/ado-dependency-loader.js.map +1 -1
- package/dist/src/living-docs/smart-doc-organizer.js +1 -1
- package/dist/src/living-docs/smart-doc-organizer.js.map +1 -1
- package/dist/src/sync/ado-reconciler.d.ts +1 -1
- package/dist/src/sync/ado-reconciler.js +1 -1
- package/dist/src/sync/external-change-puller.js +1 -1
- package/dist/src/sync/external-change-puller.js.map +1 -1
- package/dist/src/sync/external-issue-auto-creator.js +1 -1
- package/dist/src/sync/external-issue-auto-creator.js.map +1 -1
- package/dist/src/sync/external-item-sync-service.js +2 -2
- package/dist/src/sync/external-item-sync-service.js.map +1 -1
- package/dist/src/sync/format-preservation-sync.d.ts +1 -1
- package/dist/src/sync/format-preservation-sync.d.ts.map +1 -1
- package/dist/src/sync/format-preservation-sync.js +1 -1
- package/dist/src/sync/format-preservation-sync.js.map +1 -1
- package/dist/src/sync/github-reconciler.d.ts +1 -1
- package/dist/src/sync/github-reconciler.js +2 -2
- package/dist/src/sync/github-reconciler.js.map +1 -1
- package/dist/src/sync/github-sync-wrapper.d.ts +2 -2
- package/dist/src/sync/github-sync-wrapper.d.ts.map +1 -1
- package/dist/src/sync/github-sync-wrapper.js +1 -1
- package/dist/src/sync/github-sync-wrapper.js.map +1 -1
- package/dist/src/sync/jira-reconciler.d.ts +1 -1
- package/dist/src/sync/jira-reconciler.js +1 -1
- package/dist/src/sync/living-docs-updater.d.ts +1 -1
- package/dist/src/sync/living-docs-updater.d.ts.map +1 -1
- package/dist/src/sync/living-docs-updater.js +1 -1
- package/dist/src/sync/living-docs-updater.js.map +1 -1
- package/dist/src/sync/pr-linker.js +1 -1
- package/dist/src/sync/pr-linker.js.map +1 -1
- package/dist/src/sync/providers/github.d.ts +1 -1
- package/dist/src/sync/providers/github.js +1 -1
- package/dist/src/sync/sync-coordinator.js +4 -4
- package/dist/src/sync/sync-coordinator.js.map +1 -1
- package/dist/src/utils/cleanup-stale-plugins.d.ts.map +1 -1
- package/dist/src/utils/cleanup-stale-plugins.js +7 -0
- package/dist/src/utils/cleanup-stale-plugins.js.map +1 -1
- package/dist/src/utils/docs-validator.js +1 -1
- package/dist/src/utils/docs-validator.js.map +1 -1
- package/dist/src/utils/plugin-copier.d.ts +16 -0
- package/dist/src/utils/plugin-copier.d.ts.map +1 -1
- package/dist/src/utils/plugin-copier.js +79 -0
- package/dist/src/utils/plugin-copier.js.map +1 -1
- package/package.json +1 -1
- package/plugins/PLUGINS-INDEX.md +23 -42
- package/plugins/specweave/.claude-plugin/plugin.json +9 -2
- package/plugins/specweave/lib/integrations/ado/ado-ac-checkbox-sync.js +241 -0
- package/plugins/specweave/lib/integrations/ado/ado-ac-checkbox-sync.ts +311 -0
- package/plugins/specweave/lib/integrations/ado/ado-client-v2.d.ts +134 -0
- package/plugins/specweave/lib/integrations/ado/ado-client-v2.ts +742 -0
- package/plugins/specweave/lib/integrations/ado/ado-duplicate-detector.js +279 -0
- package/plugins/specweave/lib/integrations/ado/ado-duplicate-detector.ts +408 -0
- package/plugins/specweave/lib/integrations/ado/ado-hierarchical-sync.d.ts +40 -0
- package/plugins/specweave/lib/integrations/ado/ado-hierarchical-sync.js +300 -0
- package/plugins/specweave/lib/integrations/ado/ado-hierarchical-sync.ts +554 -0
- package/plugins/specweave/lib/integrations/ado/ado-multi-project-sync.js +486 -0
- package/plugins/specweave/lib/integrations/ado/ado-multi-project-sync.ts +675 -0
- package/plugins/specweave/lib/integrations/ado/ado-project-detector.js +502 -0
- package/plugins/specweave/lib/integrations/ado/ado-project-detector.ts +560 -0
- package/plugins/specweave/lib/integrations/ado/ado-spec-commit-sync.d.ts +38 -0
- package/plugins/specweave/lib/integrations/ado/ado-spec-commit-sync.js +189 -0
- package/plugins/specweave/lib/integrations/ado/ado-spec-commit-sync.ts +288 -0
- package/plugins/specweave/lib/integrations/ado/ado-spec-content-sync.js +249 -0
- package/plugins/specweave/lib/integrations/ado/ado-spec-content-sync.ts +379 -0
- package/plugins/specweave/lib/integrations/ado/ado-spec-sync.d.ts +100 -0
- package/plugins/specweave/lib/integrations/ado/ado-spec-sync.js +681 -0
- package/plugins/specweave/lib/integrations/ado/ado-spec-sync.ts +893 -0
- package/plugins/specweave/lib/integrations/ado/ado-status-sync.js +150 -0
- package/plugins/specweave/lib/integrations/ado/ado-status-sync.ts +213 -0
- package/plugins/specweave/lib/integrations/ado/conflict-resolver.js +400 -0
- package/plugins/specweave/lib/integrations/ado/conflict-resolver.ts +583 -0
- package/plugins/specweave/lib/integrations/ado/per-us-sync.js +272 -0
- package/plugins/specweave/lib/integrations/ado/per-us-sync.ts +457 -0
- package/plugins/specweave/lib/integrations/ado/project-selector.d.ts +42 -0
- package/plugins/specweave/lib/integrations/ado/project-selector.ts +304 -0
- package/plugins/specweave/lib/integrations/github/CodeValidator.js +195 -0
- package/plugins/specweave/lib/integrations/github/CodeValidator.ts +284 -0
- package/plugins/specweave/lib/integrations/github/duplicate-detector.js +397 -0
- package/plugins/specweave/lib/integrations/github/duplicate-detector.ts +561 -0
- package/plugins/specweave/lib/integrations/github/github-ac-checkbox-sync.js +287 -0
- package/plugins/specweave/lib/integrations/github/github-ac-checkbox-sync.ts +391 -0
- package/plugins/specweave/lib/integrations/github/github-ac-comment-poster.js +191 -0
- package/plugins/specweave/lib/integrations/github/github-ac-comment-poster.ts +315 -0
- package/plugins/specweave/lib/integrations/github/github-board-resolver.js +81 -0
- package/plugins/specweave/lib/integrations/github/github-board-resolver.ts +175 -0
- package/plugins/specweave/lib/integrations/github/github-client-v2.js +814 -0
- package/plugins/specweave/lib/integrations/github/github-client-v2.ts +1035 -0
- package/plugins/specweave/lib/integrations/github/github-cross-repo-sync.js +182 -0
- package/plugins/specweave/lib/integrations/github/github-cross-repo-sync.ts +265 -0
- package/plugins/specweave/lib/integrations/github/github-feature-sync.js +1007 -0
- package/plugins/specweave/lib/integrations/github/github-feature-sync.ts +1403 -0
- package/plugins/specweave/lib/integrations/github/github-hierarchical-sync.d.ts +29 -0
- package/plugins/specweave/lib/integrations/github/github-hierarchical-sync.js +190 -0
- package/plugins/specweave/lib/integrations/github/github-hierarchical-sync.ts +355 -0
- package/plugins/specweave/lib/integrations/github/github-issue-updater.js +275 -0
- package/plugins/specweave/lib/integrations/github/github-issue-updater.ts +462 -0
- package/plugins/specweave/lib/integrations/github/github-multi-project-sync.js +409 -0
- package/plugins/specweave/lib/integrations/github/github-multi-project-sync.ts +555 -0
- package/plugins/specweave/lib/integrations/github/github-pull-sync.js +185 -0
- package/plugins/specweave/lib/integrations/github/github-pull-sync.ts +343 -0
- package/plugins/specweave/lib/integrations/github/github-push-sync.js +129 -0
- package/plugins/specweave/lib/integrations/github/github-push-sync.ts +188 -0
- package/plugins/specweave/lib/integrations/github/github-rate-limiter.js +96 -0
- package/plugins/specweave/lib/integrations/github/github-rate-limiter.ts +143 -0
- package/plugins/specweave/lib/integrations/github/github-spec-commit-sync.d.ts +37 -0
- package/plugins/specweave/lib/integrations/github/github-spec-commit-sync.js +186 -0
- package/plugins/specweave/lib/integrations/github/github-spec-commit-sync.ts +285 -0
- package/plugins/specweave/lib/integrations/github/github-spec-content-sync.js +298 -0
- package/plugins/specweave/lib/integrations/github/github-spec-content-sync.ts +465 -0
- package/plugins/specweave/lib/integrations/github/github-spec-frontmatter-updater.ts +306 -0
- package/plugins/specweave/lib/integrations/github/github-spec-sync.d.ts +108 -0
- package/plugins/specweave/lib/integrations/github/github-spec-sync.js +900 -0
- package/plugins/specweave/lib/integrations/github/github-spec-sync.ts +1281 -0
- package/plugins/specweave/lib/integrations/github/github-sync-orchestrator.ts +158 -0
- package/plugins/specweave/lib/integrations/github/github-us-auto-closer.js +190 -0
- package/plugins/specweave/lib/integrations/github/github-us-auto-closer.ts +313 -0
- package/plugins/specweave/lib/integrations/github/per-us-sync.js +330 -0
- package/plugins/specweave/lib/integrations/github/per-us-sync.ts +515 -0
- package/plugins/specweave/lib/integrations/github/user-story-content-builder.js +306 -0
- package/plugins/specweave/lib/integrations/github/user-story-content-builder.ts +424 -0
- package/plugins/specweave/lib/integrations/jira/jira-ac-checkbox-sync.js +300 -0
- package/plugins/specweave/lib/integrations/jira/jira-ac-checkbox-sync.ts +380 -0
- package/plugins/specweave/lib/integrations/jira/jira-board-resolver.d.ts +50 -0
- package/plugins/specweave/lib/integrations/jira/jira-board-resolver.ts +127 -0
- package/plugins/specweave/lib/integrations/jira/jira-duplicate-detector.js +279 -0
- package/plugins/specweave/lib/integrations/jira/jira-duplicate-detector.ts +420 -0
- package/plugins/specweave/lib/integrations/jira/jira-epic-sync.js +314 -0
- package/plugins/specweave/lib/integrations/jira/jira-epic-sync.ts +474 -0
- package/plugins/specweave/lib/integrations/jira/jira-hierarchical-sync.d.ts +33 -0
- package/plugins/specweave/lib/integrations/jira/jira-hierarchical-sync.js +144 -0
- package/plugins/specweave/lib/integrations/jira/jira-hierarchical-sync.ts +294 -0
- package/plugins/specweave/lib/integrations/jira/jira-multi-project-sync.js +279 -0
- package/plugins/specweave/lib/integrations/jira/jira-multi-project-sync.ts +398 -0
- package/plugins/specweave/lib/integrations/jira/jira-spec-commit-sync.d.ts +43 -0
- package/plugins/specweave/lib/integrations/jira/jira-spec-commit-sync.js +262 -0
- package/plugins/specweave/lib/integrations/jira/jira-spec-commit-sync.ts +370 -0
- package/plugins/specweave/lib/integrations/jira/jira-spec-content-sync.js +260 -0
- package/plugins/specweave/lib/integrations/jira/jira-spec-content-sync.ts +367 -0
- package/plugins/specweave/lib/integrations/jira/jira-spec-sync.d.ts +105 -0
- package/plugins/specweave/lib/integrations/jira/jira-spec-sync.js +689 -0
- package/plugins/specweave/lib/integrations/jira/jira-spec-sync.ts +947 -0
- package/plugins/specweave/lib/integrations/jira/jira-status-sync.js +215 -0
- package/plugins/specweave/lib/integrations/jira/jira-status-sync.ts +375 -0
- package/plugins/specweave/lib/integrations/jira/per-us-sync.js +235 -0
- package/plugins/specweave/lib/integrations/jira/per-us-sync.ts +384 -0
- package/plugins/specweave/lib/integrations/jira/project-selector.d.ts +42 -0
- package/plugins/specweave/lib/integrations/jira/project-selector.ts +310 -0
- package/plugins/specweave/lib/integrations/jira/reorganization-detector.d.ts +67 -0
- package/plugins/specweave/lib/integrations/jira/reorganization-detector.ts +449 -0
- package/plugins/specweave/lib/integrations/jira/setup-wizard.d.js +4 -0
- package/plugins/specweave/lib/integrations/jira/setup-wizard.d.ts +29 -0
- package/plugins/specweave/lib/integrations/jira/setup-wizard.js +156 -0
- package/plugins/specweave/lib/integrations/jira/setup-wizard.ts +238 -0
- package/plugins/specweave/lib/vendor/sync/github-reconciler.d.ts +1 -1
- package/plugins/specweave/lib/vendor/sync/github-reconciler.js +2 -2
- package/plugins/specweave/lib/vendor/sync/github-reconciler.js.map +1 -1
- package/plugins/specweave/skills/team-lead/SKILL.md +10 -5
- package/plugins/specweave/skills/team-lead/agents/brainstorm-advocate.md +12 -6
- package/plugins/specweave/skills/team-lead/agents/brainstorm-critic.md +12 -6
- package/plugins/specweave/skills/team-lead/agents/brainstorm-pragmatist.md +12 -6
- package/dist/plugins/specweave-ado/lib/ado-ac-checkbox-sync.d.ts +0 -44
- package/dist/plugins/specweave-ado/lib/ado-ac-checkbox-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-ac-checkbox-sync.js +0 -236
- package/dist/plugins/specweave-ado/lib/ado-ac-checkbox-sync.js.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-board-resolver.d.ts.map +0 -1
- 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 -139
- package/dist/plugins/specweave-ado/lib/ado-client-v2.d.ts.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-client-v2.js.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-client.d.ts.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-client.js.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-duplicate-detector.d.ts +0 -100
- package/dist/plugins/specweave-ado/lib/ado-duplicate-detector.d.ts.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-duplicate-detector.js +0 -292
- package/dist/plugins/specweave-ado/lib/ado-duplicate-detector.js.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-permission-gate.d.ts.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-permission-gate.js.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-profile-resolver.d.ts.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-profile-resolver.js.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-pull-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-pull-sync.js.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-rate-limiter.d.ts.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-rate-limiter.js.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-spec-commit-sync.d.ts +0 -38
- package/dist/plugins/specweave-ado/lib/ado-spec-commit-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-spec-commit-sync.js +0 -210
- package/dist/plugins/specweave-ado/lib/ado-spec-commit-sync.js.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-spec-content-sync.d.ts +0 -28
- package/dist/plugins/specweave-ado/lib/ado-spec-content-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-spec-content-sync.js +0 -300
- package/dist/plugins/specweave-ado/lib/ado-spec-content-sync.js.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-spec-sync.d.ts +0 -147
- 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 -749
- package/dist/plugins/specweave-ado/lib/ado-spec-sync.js.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-status-sync.d.ts +0 -79
- package/dist/plugins/specweave-ado/lib/ado-status-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-ado/lib/ado-status-sync.js +0 -162
- package/dist/plugins/specweave-ado/lib/ado-status-sync.js.map +0 -1
- package/dist/plugins/specweave-ado/lib/conflict-resolver.d.ts.map +0 -1
- package/dist/plugins/specweave-ado/lib/conflict-resolver.js +0 -439
- package/dist/plugins/specweave-ado/lib/conflict-resolver.js.map +0 -1
- package/dist/plugins/specweave-ado/lib/per-us-sync.d.ts +0 -131
- package/dist/plugins/specweave-ado/lib/per-us-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-ado/lib/per-us-sync.js +0 -322
- package/dist/plugins/specweave-ado/lib/per-us-sync.js.map +0 -1
- package/dist/plugins/specweave-github/lib/CodeValidator.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/CodeValidator.js +0 -219
- package/dist/plugins/specweave-github/lib/CodeValidator.js.map +0 -1
- package/dist/plugins/specweave-github/lib/IssueStateManager.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/IssueStateManager.js.map +0 -1
- package/dist/plugins/specweave-github/lib/completion-calculator.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/completion-calculator.js.map +0 -1
- package/dist/plugins/specweave-github/lib/duplicate-detector.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/duplicate-detector.js +0 -423
- package/dist/plugins/specweave-github/lib/duplicate-detector.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-ac-checkbox-sync.d.ts +0 -54
- package/dist/plugins/specweave-github/lib/github-ac-checkbox-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-ac-checkbox-sync.js +0 -305
- package/dist/plugins/specweave-github/lib/github-ac-checkbox-sync.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-ac-comment-poster.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-ac-comment-poster.js +0 -232
- package/dist/plugins/specweave-github/lib/github-ac-comment-poster.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-batch-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-batch-sync.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-board-resolver-v2.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-board-resolver-v2.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-client-v2.d.ts +0 -214
- 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 -812
- package/dist/plugins/specweave-github/lib/github-client-v2.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-client.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-client.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-conflict-resolver.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-conflict-resolver.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-cross-repo-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-cross-repo-sync.js +0 -172
- package/dist/plugins/specweave-github/lib/github-cross-repo-sync.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-feature-sync-cli.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-feature-sync-cli.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-feature-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-feature-sync.js +0 -1112
- package/dist/plugins/specweave-github/lib/github-feature-sync.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-field-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-field-sync.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-graphql-client.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-graphql-client.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-issue-body-generator.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-issue-body-generator.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-issue-body-parser.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-issue-body-parser.js.map +0 -1
- 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 -339
- package/dist/plugins/specweave-github/lib/github-issue-updater.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-pull-sync.d.ts +0 -94
- package/dist/plugins/specweave-github/lib/github-pull-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-pull-sync.js +0 -232
- package/dist/plugins/specweave-github/lib/github-pull-sync.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-push-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-push-sync.js +0 -127
- package/dist/plugins/specweave-github/lib/github-push-sync.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-rate-limiter.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-rate-limiter.js +0 -109
- package/dist/plugins/specweave-github/lib/github-rate-limiter.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-spec-commit-sync.d.ts +0 -37
- package/dist/plugins/specweave-github/lib/github-spec-commit-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-spec-commit-sync.js +0 -209
- package/dist/plugins/specweave-github/lib/github-spec-commit-sync.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-spec-content-sync.d.ts +0 -28
- package/dist/plugins/specweave-github/lib/github-spec-content-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-spec-content-sync.js +0 -365
- package/dist/plugins/specweave-github/lib/github-spec-content-sync.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-spec-frontmatter-updater.d.ts +0 -21
- package/dist/plugins/specweave-github/lib/github-spec-frontmatter-updater.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-spec-frontmatter-updater.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-spec-sync.d.ts +0 -225
- 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 -974
- package/dist/plugins/specweave-github/lib/github-spec-sync.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-sync-orchestrator.d.ts +0 -47
- package/dist/plugins/specweave-github/lib/github-sync-orchestrator.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-sync-orchestrator.js.map +0 -1
- package/dist/plugins/specweave-github/lib/github-us-auto-closer.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/github-us-auto-closer.js +0 -219
- package/dist/plugins/specweave-github/lib/github-us-auto-closer.js.map +0 -1
- package/dist/plugins/specweave-github/lib/index.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/index.js.map +0 -1
- package/dist/plugins/specweave-github/lib/per-us-sync.d.ts +0 -126
- package/dist/plugins/specweave-github/lib/per-us-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/per-us-sync.js +0 -394
- package/dist/plugins/specweave-github/lib/per-us-sync.js.map +0 -1
- package/dist/plugins/specweave-github/lib/progress-comment-builder.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/progress-comment-builder.js.map +0 -1
- package/dist/plugins/specweave-github/lib/types.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/types.js.map +0 -1
- package/dist/plugins/specweave-github/lib/user-story-content-builder.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/user-story-content-builder.js +0 -310
- package/dist/plugins/specweave-github/lib/user-story-content-builder.js.map +0 -1
- package/dist/plugins/specweave-github/lib/user-story-issue-builder.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/user-story-issue-builder.js.map +0 -1
- package/dist/plugins/specweave-jira/lib/content-format-adapter.d.ts.map +0 -1
- package/dist/plugins/specweave-jira/lib/content-format-adapter.js.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-ac-checkbox-sync.d.ts +0 -47
- package/dist/plugins/specweave-jira/lib/jira-ac-checkbox-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-ac-checkbox-sync.js +0 -307
- package/dist/plugins/specweave-jira/lib/jira-ac-checkbox-sync.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.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-deployment-detector.d.ts.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-deployment-detector.js.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-duplicate-detector.d.ts +0 -103
- package/dist/plugins/specweave-jira/lib/jira-duplicate-detector.d.ts.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-duplicate-detector.js +0 -295
- package/dist/plugins/specweave-jira/lib/jira-duplicate-detector.js.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-epic-sync.d.ts +0 -67
- package/dist/plugins/specweave-jira/lib/jira-epic-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-epic-sync.js +0 -286
- package/dist/plugins/specweave-jira/lib/jira-epic-sync.js.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-field-discovery.d.ts.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-field-discovery.js.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-paginated-search.d.ts.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-paginated-search.js.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-permission-gate.d.ts.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-permission-gate.js.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-spec-commit-sync.d.ts +0 -43
- package/dist/plugins/specweave-jira/lib/jira-spec-commit-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-spec-commit-sync.js +0 -284
- package/dist/plugins/specweave-jira/lib/jira-spec-commit-sync.js.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-spec-content-sync.d.ts +0 -33
- package/dist/plugins/specweave-jira/lib/jira-spec-content-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-spec-content-sync.js +0 -294
- package/dist/plugins/specweave-jira/lib/jira-spec-content-sync.js.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-spec-sync.d.ts +0 -180
- 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 -757
- package/dist/plugins/specweave-jira/lib/jira-spec-sync.js.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-status-sync.d.ts +0 -116
- package/dist/plugins/specweave-jira/lib/jira-status-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-jira/lib/jira-status-sync.js +0 -302
- package/dist/plugins/specweave-jira/lib/jira-status-sync.js.map +0 -1
- package/dist/plugins/specweave-jira/lib/metadata-paths.d.ts.map +0 -1
- package/dist/plugins/specweave-jira/lib/metadata-paths.js.map +0 -1
- package/dist/plugins/specweave-jira/lib/per-us-sync.d.ts +0 -117
- package/dist/plugins/specweave-jira/lib/per-us-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-jira/lib/per-us-sync.js +0 -274
- package/dist/plugins/specweave-jira/lib/per-us-sync.js.map +0 -1
- package/dist/plugins/specweave-jira/lib/reorganization-detector.d.ts +0 -80
- package/dist/plugins/specweave-jira/lib/reorganization-detector.d.ts.map +0 -1
- 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 -198
- package/dist/plugins/specweave-jira/lib/setup-wizard.js.map +0 -1
- package/dist/plugins/specweave-release/lib/dashboard-generator.d.ts.map +0 -1
- package/dist/plugins/specweave-release/lib/dashboard-generator.js.map +0 -1
- package/dist/plugins/specweave-release/lib/dora-tracker.d.ts.map +0 -1
- package/dist/plugins/specweave-release/lib/dora-tracker.js.map +0 -1
- package/plugins/specweave-ado/.claude-plugin/plugin.json +0 -20
- package/plugins/specweave-ado/PLUGIN.md +0 -39
- package/plugins/specweave-ado/hooks/README.md +0 -201
- package/plugins/specweave-ado/lib/ado-ac-checkbox-sync.js +0 -241
- package/plugins/specweave-ado/lib/ado-ac-checkbox-sync.ts +0 -311
- package/plugins/specweave-ado/lib/ado-client-v2.d.ts +0 -134
- package/plugins/specweave-ado/lib/ado-client-v2.ts +0 -742
- package/plugins/specweave-ado/lib/ado-duplicate-detector.js +0 -279
- package/plugins/specweave-ado/lib/ado-duplicate-detector.ts +0 -408
- package/plugins/specweave-ado/lib/ado-hierarchical-sync.d.ts +0 -40
- package/plugins/specweave-ado/lib/ado-hierarchical-sync.js +0 -300
- package/plugins/specweave-ado/lib/ado-hierarchical-sync.ts +0 -554
- package/plugins/specweave-ado/lib/ado-multi-project-sync.js +0 -486
- package/plugins/specweave-ado/lib/ado-multi-project-sync.ts +0 -675
- package/plugins/specweave-ado/lib/ado-project-detector.js +0 -502
- package/plugins/specweave-ado/lib/ado-project-detector.ts +0 -560
- package/plugins/specweave-ado/lib/ado-spec-commit-sync.d.ts +0 -38
- package/plugins/specweave-ado/lib/ado-spec-commit-sync.js +0 -189
- package/plugins/specweave-ado/lib/ado-spec-commit-sync.ts +0 -288
- package/plugins/specweave-ado/lib/ado-spec-content-sync.js +0 -249
- package/plugins/specweave-ado/lib/ado-spec-content-sync.ts +0 -379
- package/plugins/specweave-ado/lib/ado-spec-sync.d.ts +0 -100
- package/plugins/specweave-ado/lib/ado-spec-sync.js +0 -681
- package/plugins/specweave-ado/lib/ado-spec-sync.ts +0 -893
- package/plugins/specweave-ado/lib/ado-status-sync.js +0 -150
- package/plugins/specweave-ado/lib/ado-status-sync.ts +0 -213
- package/plugins/specweave-ado/lib/conflict-resolver.js +0 -400
- package/plugins/specweave-ado/lib/conflict-resolver.ts +0 -583
- package/plugins/specweave-ado/lib/per-us-sync.js +0 -272
- package/plugins/specweave-ado/lib/per-us-sync.ts +0 -457
- package/plugins/specweave-ado/lib/project-selector.d.ts +0 -42
- package/plugins/specweave-ado/lib/project-selector.ts +0 -304
- package/plugins/specweave-diagrams/.claude-plugin/plugin.json +0 -20
- package/plugins/specweave-diagrams/PLUGIN.md +0 -32
- package/plugins/specweave-docs/.claude-plugin/plugin.json +0 -10
- package/plugins/specweave-docs/PLUGIN.md +0 -27
- package/plugins/specweave-github/.claude-plugin/plugin.json +0 -19
- package/plugins/specweave-github/MULTI-PROJECT-SYNC-ARCHITECTURE.md +0 -744
- package/plugins/specweave-github/PLUGIN.md +0 -29
- package/plugins/specweave-github/SYNC-ARCHITECTURE-FIX-SUMMARY.md +0 -302
- package/plugins/specweave-github/hooks/README.md +0 -289
- package/plugins/specweave-github/lib/CodeValidator.js +0 -195
- package/plugins/specweave-github/lib/CodeValidator.ts +0 -284
- package/plugins/specweave-github/lib/duplicate-detector.js +0 -397
- package/plugins/specweave-github/lib/duplicate-detector.ts +0 -561
- package/plugins/specweave-github/lib/github-ac-checkbox-sync.js +0 -287
- package/plugins/specweave-github/lib/github-ac-checkbox-sync.ts +0 -391
- package/plugins/specweave-github/lib/github-ac-comment-poster.js +0 -191
- package/plugins/specweave-github/lib/github-ac-comment-poster.ts +0 -315
- package/plugins/specweave-github/lib/github-board-resolver.js +0 -81
- package/plugins/specweave-github/lib/github-board-resolver.ts +0 -175
- package/plugins/specweave-github/lib/github-client-v2.js +0 -814
- package/plugins/specweave-github/lib/github-client-v2.ts +0 -1035
- package/plugins/specweave-github/lib/github-cross-repo-sync.js +0 -182
- package/plugins/specweave-github/lib/github-cross-repo-sync.ts +0 -265
- package/plugins/specweave-github/lib/github-feature-sync.js +0 -1007
- package/plugins/specweave-github/lib/github-feature-sync.ts +0 -1403
- package/plugins/specweave-github/lib/github-hierarchical-sync.d.ts +0 -29
- package/plugins/specweave-github/lib/github-hierarchical-sync.js +0 -190
- package/plugins/specweave-github/lib/github-hierarchical-sync.ts +0 -355
- package/plugins/specweave-github/lib/github-issue-updater.js +0 -275
- package/plugins/specweave-github/lib/github-issue-updater.ts +0 -462
- package/plugins/specweave-github/lib/github-multi-project-sync.js +0 -409
- package/plugins/specweave-github/lib/github-multi-project-sync.ts +0 -555
- package/plugins/specweave-github/lib/github-pull-sync.js +0 -185
- package/plugins/specweave-github/lib/github-pull-sync.ts +0 -343
- package/plugins/specweave-github/lib/github-push-sync.js +0 -129
- package/plugins/specweave-github/lib/github-push-sync.ts +0 -188
- package/plugins/specweave-github/lib/github-rate-limiter.js +0 -96
- package/plugins/specweave-github/lib/github-rate-limiter.ts +0 -143
- package/plugins/specweave-github/lib/github-spec-commit-sync.d.ts +0 -37
- package/plugins/specweave-github/lib/github-spec-commit-sync.js +0 -186
- package/plugins/specweave-github/lib/github-spec-commit-sync.ts +0 -285
- package/plugins/specweave-github/lib/github-spec-content-sync.js +0 -298
- package/plugins/specweave-github/lib/github-spec-content-sync.ts +0 -465
- package/plugins/specweave-github/lib/github-spec-frontmatter-updater.ts +0 -306
- package/plugins/specweave-github/lib/github-spec-sync.d.ts +0 -108
- package/plugins/specweave-github/lib/github-spec-sync.js +0 -900
- package/plugins/specweave-github/lib/github-spec-sync.ts +0 -1281
- package/plugins/specweave-github/lib/github-sync-orchestrator.ts +0 -158
- package/plugins/specweave-github/lib/github-us-auto-closer.js +0 -190
- package/plugins/specweave-github/lib/github-us-auto-closer.ts +0 -313
- package/plugins/specweave-github/lib/per-us-sync.js +0 -330
- package/plugins/specweave-github/lib/per-us-sync.ts +0 -515
- package/plugins/specweave-github/lib/user-story-content-builder.js +0 -306
- package/plugins/specweave-github/lib/user-story-content-builder.ts +0 -424
- package/plugins/specweave-jira/.claude-plugin/plugin.json +0 -20
- package/plugins/specweave-jira/PLUGIN.md +0 -28
- package/plugins/specweave-jira/hooks/README.md +0 -201
- package/plugins/specweave-jira/lib/jira-ac-checkbox-sync.js +0 -300
- package/plugins/specweave-jira/lib/jira-ac-checkbox-sync.ts +0 -380
- package/plugins/specweave-jira/lib/jira-board-resolver.d.ts +0 -50
- package/plugins/specweave-jira/lib/jira-board-resolver.ts +0 -127
- package/plugins/specweave-jira/lib/jira-duplicate-detector.js +0 -279
- package/plugins/specweave-jira/lib/jira-duplicate-detector.ts +0 -420
- package/plugins/specweave-jira/lib/jira-epic-sync.js +0 -314
- package/plugins/specweave-jira/lib/jira-epic-sync.ts +0 -474
- package/plugins/specweave-jira/lib/jira-hierarchical-sync.d.ts +0 -33
- package/plugins/specweave-jira/lib/jira-hierarchical-sync.js +0 -144
- package/plugins/specweave-jira/lib/jira-hierarchical-sync.ts +0 -294
- package/plugins/specweave-jira/lib/jira-multi-project-sync.js +0 -279
- package/plugins/specweave-jira/lib/jira-multi-project-sync.ts +0 -398
- package/plugins/specweave-jira/lib/jira-spec-commit-sync.d.ts +0 -43
- package/plugins/specweave-jira/lib/jira-spec-commit-sync.js +0 -262
- package/plugins/specweave-jira/lib/jira-spec-commit-sync.ts +0 -370
- package/plugins/specweave-jira/lib/jira-spec-content-sync.js +0 -260
- package/plugins/specweave-jira/lib/jira-spec-content-sync.ts +0 -367
- package/plugins/specweave-jira/lib/jira-spec-sync.d.ts +0 -105
- package/plugins/specweave-jira/lib/jira-spec-sync.js +0 -689
- package/plugins/specweave-jira/lib/jira-spec-sync.ts +0 -947
- package/plugins/specweave-jira/lib/jira-status-sync.js +0 -215
- package/plugins/specweave-jira/lib/jira-status-sync.ts +0 -375
- package/plugins/specweave-jira/lib/per-us-sync.js +0 -235
- package/plugins/specweave-jira/lib/per-us-sync.ts +0 -384
- package/plugins/specweave-jira/lib/project-selector.d.ts +0 -42
- package/plugins/specweave-jira/lib/project-selector.ts +0 -310
- package/plugins/specweave-jira/lib/reorganization-detector.d.ts +0 -67
- package/plugins/specweave-jira/lib/reorganization-detector.ts +0 -449
- package/plugins/specweave-jira/lib/setup-wizard.d.js +0 -4
- package/plugins/specweave-jira/lib/setup-wizard.d.ts +0 -29
- package/plugins/specweave-jira/lib/setup-wizard.js +0 -156
- package/plugins/specweave-jira/lib/setup-wizard.ts +0 -238
- package/plugins/specweave-media/.claude-plugin/plugin.json +0 -24
- package/plugins/specweave-media/PLUGIN.md +0 -37
- package/plugins/specweave-media/test-providers.sh +0 -308
- package/plugins/specweave-release/.claude-plugin/plugin.json +0 -29
- package/plugins/specweave-release/IMPLEMENTATION.md +0 -446
- package/plugins/specweave-release/PLUGIN.md +0 -38
- package/plugins/specweave-release/README.md +0 -508
- package/plugins/specweave-release/hooks/post-task-completion.sh +0 -113
- /package/dist/plugins/{specweave-release/lib → specweave/lib/features/release}/dashboard-generator.d.ts +0 -0
- /package/dist/plugins/{specweave-release/lib → specweave/lib/features/release}/dashboard-generator.js +0 -0
- /package/dist/plugins/{specweave-release/lib → specweave/lib/features/release}/dora-tracker.d.ts +0 -0
- /package/dist/plugins/{specweave-release/lib → specweave/lib/features/release}/dora-tracker.js +0 -0
- /package/dist/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-board-resolver.d.ts +0 -0
- /package/dist/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-board-resolver.js +0 -0
- /package/dist/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-client-v2.js +0 -0
- /package/dist/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-client.d.ts +0 -0
- /package/dist/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-client.js +0 -0
- /package/dist/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-permission-gate.d.ts +0 -0
- /package/dist/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-permission-gate.js +0 -0
- /package/dist/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-profile-resolver.d.ts +0 -0
- /package/dist/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-profile-resolver.js +0 -0
- /package/dist/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-pull-sync.d.ts +0 -0
- /package/dist/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-pull-sync.js +0 -0
- /package/dist/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-rate-limiter.d.ts +0 -0
- /package/dist/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-rate-limiter.js +0 -0
- /package/dist/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/conflict-resolver.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/CodeValidator.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/IssueStateManager.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/IssueStateManager.js +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/completion-calculator.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/completion-calculator.js +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/duplicate-detector.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-ac-comment-poster.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-batch-sync.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-batch-sync.js +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-board-resolver-v2.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-board-resolver-v2.js +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-client.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-client.js +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-conflict-resolver.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-conflict-resolver.js +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-cross-repo-sync.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-feature-sync-cli.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-feature-sync-cli.js +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-feature-sync.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-field-sync.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-field-sync.js +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-graphql-client.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-graphql-client.js +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-issue-body-generator.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-issue-body-generator.js +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-issue-body-parser.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-issue-body-parser.js +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-issue-updater.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-push-sync.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-rate-limiter.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-spec-frontmatter-updater.js +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-sync-orchestrator.js +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-us-auto-closer.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/index.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/index.js +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/progress-comment-builder.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/progress-comment-builder.js +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/types.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/types.js +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/user-story-content-builder.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/user-story-issue-builder.d.ts +0 -0
- /package/dist/plugins/{specweave-github/lib → specweave/lib/integrations/github}/user-story-issue-builder.js +0 -0
- /package/dist/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/content-format-adapter.d.ts +0 -0
- /package/dist/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/content-format-adapter.js +0 -0
- /package/dist/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-board-resolver.js +0 -0
- /package/dist/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-deployment-detector.d.ts +0 -0
- /package/dist/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-deployment-detector.js +0 -0
- /package/dist/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-field-discovery.d.ts +0 -0
- /package/dist/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-field-discovery.js +0 -0
- /package/dist/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-paginated-search.d.ts +0 -0
- /package/dist/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-paginated-search.js +0 -0
- /package/dist/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-permission-gate.d.ts +0 -0
- /package/dist/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-permission-gate.js +0 -0
- /package/dist/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/metadata-paths.d.ts +0 -0
- /package/dist/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/metadata-paths.js +0 -0
- /package/dist/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/reorganization-detector.js +0 -0
- /package/plugins/{specweave-ado/commands/cleanup-duplicates.md → specweave/commands/ado-cleanup-duplicates.md} +0 -0
- /package/plugins/{specweave-ado/commands/clone.md → specweave/commands/ado-clone.md} +0 -0
- /package/plugins/{specweave-ado/commands/close.md → specweave/commands/ado-close.md} +0 -0
- /package/plugins/{specweave-ado/commands/create.md → specweave/commands/ado-create.md} +0 -0
- /package/plugins/{specweave-ado/commands/import-areas.md → specweave/commands/ado-import-areas.md} +0 -0
- /package/plugins/{specweave-ado/commands/import-projects.md → specweave/commands/ado-import-projects.md} +0 -0
- /package/plugins/{specweave-ado/commands/pull.md → specweave/commands/ado-pull.md} +0 -0
- /package/plugins/{specweave-ado/commands/push.md → specweave/commands/ado-push.md} +0 -0
- /package/plugins/{specweave-ado/commands/reconcile.md → specweave/commands/ado-reconcile.md} +0 -0
- /package/plugins/{specweave-ado/commands/status.md → specweave/commands/ado-status.md} +0 -0
- /package/plugins/{specweave-ado/commands/sync.md → specweave/commands/ado-sync.md} +0 -0
- /package/plugins/{specweave-diagrams → specweave}/commands/diagrams-generate.md +0 -0
- /package/plugins/{specweave-docs/commands/build.md → specweave/commands/docs-build.md} +0 -0
- /package/plugins/{specweave-docs/commands/generate.md → specweave/commands/docs-generate.md} +0 -0
- /package/plugins/{specweave-docs/commands/health.md → specweave/commands/docs-health.md} +0 -0
- /package/plugins/{specweave-docs/commands/init.md → specweave/commands/docs-init.md} +0 -0
- /package/plugins/{specweave-docs/commands/organize.md → specweave/commands/docs-organize.md} +0 -0
- /package/plugins/{specweave-docs/commands/validate.md → specweave/commands/docs-validate.md} +0 -0
- /package/plugins/{specweave-docs/commands/view.md → specweave/commands/docs-view.md} +0 -0
- /package/plugins/{specweave-github/commands/cleanup-duplicates.md → specweave/commands/github-cleanup-duplicates.md} +0 -0
- /package/plugins/{specweave-github/commands/clone.md → specweave/commands/github-clone.md} +0 -0
- /package/plugins/{specweave-github/commands/close.md → specweave/commands/github-close.md} +0 -0
- /package/plugins/{specweave-github/commands/create.md → specweave/commands/github-create.md} +0 -0
- /package/plugins/{specweave-github/commands/pull.md → specweave/commands/github-pull.md} +0 -0
- /package/plugins/{specweave-github/commands/push.md → specweave/commands/github-push.md} +0 -0
- /package/plugins/{specweave-github/commands/reconcile.md → specweave/commands/github-reconcile.md} +0 -0
- /package/plugins/{specweave-github/commands/status.md → specweave/commands/github-status.md} +0 -0
- /package/plugins/{specweave-github/commands/sync.md → specweave/commands/github-sync.md} +0 -0
- /package/plugins/{specweave-github/commands/update-user-story.md → specweave/commands/github-update-user-story.md} +0 -0
- /package/plugins/{specweave-jira/commands/cleanup-duplicates.md → specweave/commands/jira-cleanup-duplicates.md} +0 -0
- /package/plugins/{specweave-jira/commands/close.md → specweave/commands/jira-close.md} +0 -0
- /package/plugins/{specweave-jira/commands/create.md → specweave/commands/jira-create.md} +0 -0
- /package/plugins/{specweave-jira/commands/import-boards.md → specweave/commands/jira-import-boards.md} +0 -0
- /package/plugins/{specweave-jira/commands/import-projects-full.md → specweave/commands/jira-import-projects-full.md} +0 -0
- /package/plugins/{specweave-jira/commands/import-projects.md → specweave/commands/jira-import-projects.md} +0 -0
- /package/plugins/{specweave-jira/commands/pull.md → specweave/commands/jira-pull.md} +0 -0
- /package/plugins/{specweave-jira/commands/push.md → specweave/commands/jira-push.md} +0 -0
- /package/plugins/{specweave-jira/commands/reconcile.md → specweave/commands/jira-reconcile.md} +0 -0
- /package/plugins/{specweave-jira/commands/status.md → specweave/commands/jira-status.md} +0 -0
- /package/plugins/{specweave-jira/commands/sync.md → specweave/commands/jira-sync.md} +0 -0
- /package/plugins/{specweave-release/commands/align.md → specweave/commands/release-align.md} +0 -0
- /package/plugins/{specweave-release/commands/init.md → specweave/commands/release-init.md} +0 -0
- /package/plugins/{specweave-release/commands/npm.md → specweave/commands/release-npm.md} +0 -0
- /package/plugins/{specweave-release/commands/platform.md → specweave/commands/release-platform.md} +0 -0
- /package/plugins/{specweave-release/commands/rc.md → specweave/commands/release-rc.md} +0 -0
- /package/plugins/{specweave-ado/hooks/post-living-docs-update.sh → specweave/hooks/v2/integrations/ado-post-living-docs-update.sh} +0 -0
- /package/plugins/{specweave-ado/hooks/post-task-completion.sh → specweave/hooks/v2/integrations/ado-post-task.sh} +0 -0
- /package/plugins/{specweave-github/hooks → specweave/hooks/v2/integrations}/github-auto-create-handler.sh +0 -0
- /package/plugins/{specweave-github/hooks/post-task-completion.sh → specweave/hooks/v2/integrations/github-post-task.sh} +0 -0
- /package/plugins/{specweave-jira/hooks/post-task-completion.sh → specweave/hooks/v2/integrations/jira-post-task.sh} +0 -0
- /package/plugins/{specweave-release/lib → specweave/lib/features/release}/dashboard-generator.js +0 -0
- /package/plugins/{specweave-release/lib → specweave/lib/features/release}/dashboard-generator.ts +0 -0
- /package/plugins/{specweave-release/lib → specweave/lib/features/release}/dora-tracker.js +0 -0
- /package/plugins/{specweave-release/lib → specweave/lib/features/release}/dora-tracker.ts +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-board-resolver.d.js +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-board-resolver.d.ts +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-board-resolver.d.ts.map +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-board-resolver.js +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-board-resolver.js.map +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-board-resolver.ts +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-client-v2.d.js +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-client-v2.d.ts.map +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-client-v2.js +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-client-v2.js.map +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-client.d.js +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-client.d.ts +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-client.d.ts.map +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-client.js +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-client.js.map +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-client.ts +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-hierarchical-sync.d.js +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-hierarchical-sync.d.ts.map +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-hierarchical-sync.js.map +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-permission-gate.js +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-permission-gate.ts +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-profile-resolver.js +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-profile-resolver.ts +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-pull-sync.js +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-pull-sync.ts +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-rate-limiter.js +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-rate-limiter.ts +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-spec-commit-sync.d.js +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-spec-commit-sync.d.ts.map +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-spec-commit-sync.js.map +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-spec-sync.d.js +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-spec-sync.d.ts.map +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/ado-spec-sync.js.map +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/project-selector.d.js +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/project-selector.d.ts.map +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/project-selector.js +0 -0
- /package/plugins/{specweave-ado/lib → specweave/lib/integrations/ado}/project-selector.js.map +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/IssueStateManager.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/IssueStateManager.ts +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/completion-calculator.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/completion-calculator.ts +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-batch-sync.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-batch-sync.ts +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-board-resolver-v2.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-board-resolver-v2.ts +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-board-resolver.d.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-board-resolver.d.ts +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-board-resolver.d.ts.map +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-board-resolver.js.map +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-client.d.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-client.d.ts +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-client.d.ts.map +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-client.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-client.js.map +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-client.ts +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-conflict-resolver.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-conflict-resolver.ts +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-feature-sync-cli.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-feature-sync-cli.ts +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-field-sync.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-field-sync.ts +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-graphql-client.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-graphql-client.ts +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-hierarchical-sync.d.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-hierarchical-sync.d.ts.map +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-hierarchical-sync.js.map +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-issue-body-generator.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-issue-body-generator.ts +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-issue-body-parser.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-issue-body-parser.ts +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-issue-updater.d.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-issue-updater.d.ts +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-issue-updater.d.ts.map +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-issue-updater.js.map +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-spec-commit-sync.d.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-spec-commit-sync.d.ts.map +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-spec-commit-sync.js.map +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-spec-frontmatter-updater.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-spec-sync.d.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-spec-sync.d.ts.map +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-spec-sync.js.map +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/github-sync-orchestrator.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/index.d.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/index.d.ts +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/index.d.ts.map +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/index.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/index.js.map +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/index.ts +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/progress-comment-builder.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/progress-comment-builder.ts +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/repo-selector.d.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/repo-selector.d.ts +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/repo-selector.d.ts.map +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/repo-selector.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/repo-selector.js.map +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/repo-selector.ts +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/types.d.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/types.d.ts +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/types.d.ts.map +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/types.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/types.js.map +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/types.ts +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/user-story-issue-builder.js +0 -0
- /package/plugins/{specweave-github/lib → specweave/lib/integrations/github}/user-story-issue-builder.ts +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/content-format-adapter.js +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/content-format-adapter.ts +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-board-resolver.d.js +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-board-resolver.d.ts.map +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-board-resolver.js +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-board-resolver.js.map +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-deployment-detector.js +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-deployment-detector.ts +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-field-discovery.js +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-field-discovery.ts +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-hierarchical-sync.d.js +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-hierarchical-sync.d.ts.map +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-hierarchical-sync.js.map +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-paginated-search.js +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-paginated-search.ts +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-permission-gate.js +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-permission-gate.ts +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-profile-resolver.js +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-profile-resolver.ts +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-spec-commit-sync.d.js +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-spec-commit-sync.d.ts.map +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-spec-commit-sync.js.map +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-spec-sync.d.js +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-spec-sync.d.ts.map +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/jira-spec-sync.js.map +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/metadata-paths.js +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/metadata-paths.ts +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/project-selector.d.js +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/project-selector.d.ts.map +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/project-selector.js +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/project-selector.js.map +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/reorganization-detector.d.js +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/reorganization-detector.d.ts.map +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/reorganization-detector.js +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/reorganization-detector.js.map +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/setup-wizard.d.ts.map +0 -0
- /package/plugins/{specweave-jira/lib → specweave/lib/integrations/jira}/setup-wizard.js.map +0 -0
- /package/plugins/{specweave-ado/reference → specweave/reference/ado}/ado-specweave-mapping.md +0 -0
- /package/plugins/{specweave-github/reference → specweave/reference/github}/github-specweave-mapping.md +0 -0
- /package/plugins/{specweave-jira/reference → specweave/reference/jira}/confluence-page-api.md +0 -0
- /package/plugins/{specweave-jira/reference → specweave/reference/jira}/jira-specweave-mapping.md +0 -0
- /package/plugins/{specweave-ado/scripts → specweave/scripts/ado}/refresh-cache.js +0 -0
- /package/plugins/{specweave-ado/scripts → specweave/scripts/ado}/refresh-cache.ts +0 -0
- /package/plugins/{specweave-jira/scripts → specweave/scripts/jira}/import-projects.js +0 -0
- /package/plugins/{specweave-jira/scripts → specweave/scripts/jira}/import-projects.ts +0 -0
- /package/plugins/{specweave-jira/scripts → specweave/scripts/jira}/refresh-cache.js +0 -0
- /package/plugins/{specweave-jira/scripts → specweave/scripts/jira}/refresh-cache.ts +0 -0
- /package/plugins/{specweave-ado → specweave}/skills/ado-mapper/SKILL.md +0 -0
- /package/plugins/{specweave-ado → specweave}/skills/ado-multi-project/SKILL.md +0 -0
- /package/plugins/{specweave-ado → specweave}/skills/ado-resource-validator/SKILL.md +0 -0
- /package/plugins/{specweave-ado → specweave}/skills/ado-sync/README.md +0 -0
- /package/plugins/{specweave-ado → specweave}/skills/ado-sync/SKILL.md +0 -0
- /package/plugins/{specweave-diagrams → specweave}/skills/diagrams/SKILL.md +0 -0
- /package/plugins/{specweave-github → specweave}/skills/github-issue-standard/SKILL.md +0 -0
- /package/plugins/{specweave-github → specweave}/skills/github-multi-project/SKILL.md +0 -0
- /package/plugins/{specweave-github → specweave}/skills/github-sync/SKILL.md +0 -0
- /package/plugins/{specweave-github → specweave}/skills/github-sync/evals/HOW-TO-RUN-EVALS.md +0 -0
- /package/plugins/{specweave-github → specweave}/skills/github-sync/evals/evals.json +0 -0
- /package/plugins/{specweave-media → specweave}/skills/image/SKILL.md +0 -0
- /package/plugins/{specweave-jira → specweave}/skills/jira-mapper/SKILL.md +0 -0
- /package/plugins/{specweave-jira → specweave}/skills/jira-resource-validator/SKILL.md +0 -0
- /package/plugins/{specweave-jira → specweave}/skills/jira-sync/README.md +0 -0
- /package/plugins/{specweave-jira → specweave}/skills/jira-sync/SKILL.md +0 -0
- /package/plugins/{specweave-github → specweave}/skills/pr-review/SKILL.md +0 -0
- /package/plugins/{specweave-release → specweave}/skills/release-expert/SKILL.md +0 -0
- /package/plugins/{specweave-media → specweave}/skills/remotion/SKILL.md +0 -0
- /package/plugins/{specweave-media → specweave}/skills/video/SKILL.md +0 -0
|
@@ -1,1281 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* GitHub Spec Sync (Multi-Project Architecture)
|
|
3
|
-
*
|
|
4
|
-
* CORRECT ARCHITECTURE:
|
|
5
|
-
* - Syncs .specweave/docs/internal/specs/{project-id}/spec-*.md ↔ GitHub Projects
|
|
6
|
-
* - NOT increments ↔ GitHub Issues (that was wrong!)
|
|
7
|
-
*
|
|
8
|
-
* MULTI-PROJECT SUPPORT (v0.18.0+):
|
|
9
|
-
* - Detects which project a spec belongs to (by folder path)
|
|
10
|
-
* - Routes to correct GitHub repo based on project config
|
|
11
|
-
* - Supports multiple sync strategies per project
|
|
12
|
-
* - Handles cross-team specs (create issues in multiple repos)
|
|
13
|
-
*
|
|
14
|
-
* Mapping:
|
|
15
|
-
* - Spec → GitHub Project
|
|
16
|
-
* - User Story → GitHub Project Card/Issue
|
|
17
|
-
* - Acceptance Criteria → Checklist in Issue
|
|
18
|
-
*
|
|
19
|
-
* Sync Strategies:
|
|
20
|
-
* - project-per-spec: One GitHub Project per spec (default)
|
|
21
|
-
* - team-board: One GitHub Project per team (aggregates specs)
|
|
22
|
-
* - centralized: Parent repo tracks all (multi-repo pattern)
|
|
23
|
-
* - distributed: Each team syncs to their repo (microservices)
|
|
24
|
-
*
|
|
25
|
-
* @module github-spec-sync
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
import * as path from 'path';
|
|
29
|
-
import { SpecMetadataManager } from '../../../src/core/specs/spec-metadata-manager.js';
|
|
30
|
-
import { SpecParser } from '../../../src/core/specs/spec-parser.js';
|
|
31
|
-
import {
|
|
32
|
-
SpecContent,
|
|
33
|
-
UserStory,
|
|
34
|
-
SpecSyncResult,
|
|
35
|
-
SpecSyncConflict
|
|
36
|
-
} from '../../../src/core/types/spec-metadata.js';
|
|
37
|
-
import { execFileNoThrow } from '../../../src/utils/execFileNoThrow.js';
|
|
38
|
-
import { ProjectContextManager } from '../../../src/core/sync/project-context.js';
|
|
39
|
-
import { SyncProfile, GitHubConfig } from '../../../src/core/types/sync-profile.js';
|
|
40
|
-
import { getGitHubAuthFromProject } from '../../../src/utils/auth-helpers.js';
|
|
41
|
-
|
|
42
|
-
export interface GitHubProject {
|
|
43
|
-
id: number;
|
|
44
|
-
title: string;
|
|
45
|
-
number: number;
|
|
46
|
-
url: string;
|
|
47
|
-
state: 'open' | 'closed';
|
|
48
|
-
owner: string;
|
|
49
|
-
repo: string;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface GitHubProjectCard {
|
|
53
|
-
id: number;
|
|
54
|
-
note?: string;
|
|
55
|
-
state: string;
|
|
56
|
-
column_id: number;
|
|
57
|
-
content_url?: string; // Link to issue if card is linked
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface GitHubIssue {
|
|
61
|
-
number: number;
|
|
62
|
-
title: string;
|
|
63
|
-
body: string;
|
|
64
|
-
state: 'open' | 'closed';
|
|
65
|
-
labels: string[];
|
|
66
|
-
assignees: string[];
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* GitHub Sync Strategy
|
|
71
|
-
*/
|
|
72
|
-
export type GitHubSyncStrategy =
|
|
73
|
-
| 'project-per-spec' // One GitHub Project per spec (default, current behavior)
|
|
74
|
-
| 'team-board' // One GitHub Project per team (aggregates multiple specs)
|
|
75
|
-
| 'centralized' // Parent repo tracks all specs (multi-repo pattern)
|
|
76
|
-
| 'distributed'; // Each team syncs to their repo (microservices)
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Project-specific GitHub configuration
|
|
80
|
-
*/
|
|
81
|
-
export interface ProjectGitHubConfig {
|
|
82
|
-
projectId: string;
|
|
83
|
-
strategy: GitHubSyncStrategy;
|
|
84
|
-
owner: string;
|
|
85
|
-
repo: string;
|
|
86
|
-
teamBoardId?: number; // For team-board strategy
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/** Default cross-team detection keywords (English). Override via `crossTeamKeywords` config. */
|
|
90
|
-
const DEFAULT_CROSS_TEAM_KEYWORDS = [
|
|
91
|
-
'integration',
|
|
92
|
-
'cross-team',
|
|
93
|
-
'cross-project',
|
|
94
|
-
'shared',
|
|
95
|
-
'common',
|
|
96
|
-
'auth',
|
|
97
|
-
'api-contract',
|
|
98
|
-
'sync',
|
|
99
|
-
];
|
|
100
|
-
|
|
101
|
-
export class GitHubSpecSync {
|
|
102
|
-
private specManager: SpecMetadataManager;
|
|
103
|
-
private projectContextManager: ProjectContextManager;
|
|
104
|
-
private projectRoot: string;
|
|
105
|
-
private token?: string;
|
|
106
|
-
/** Configurable keywords for cross-team spec detection. Case-insensitive matching. */
|
|
107
|
-
crossTeamKeywords: string[] = DEFAULT_CROSS_TEAM_KEYWORDS;
|
|
108
|
-
|
|
109
|
-
constructor(projectRoot: string = process.cwd()) {
|
|
110
|
-
this.projectRoot = projectRoot;
|
|
111
|
-
this.specManager = new SpecMetadataManager(projectRoot);
|
|
112
|
-
this.projectContextManager = new ProjectContextManager(projectRoot);
|
|
113
|
-
// Get token from .env for gh CLI passthrough
|
|
114
|
-
this.token = getGitHubAuthFromProject(projectRoot).token;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Get environment object with GH_TOKEN for gh CLI commands.
|
|
119
|
-
* This ensures the token from .env is passed to all gh operations,
|
|
120
|
-
* regardless of `gh auth` status.
|
|
121
|
-
*/
|
|
122
|
-
private getGhEnv(): NodeJS.ProcessEnv {
|
|
123
|
-
return this.token
|
|
124
|
-
? { ...process.env, GH_TOKEN: this.token }
|
|
125
|
-
: process.env;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Detect project from spec file path
|
|
130
|
-
*
|
|
131
|
-
* Spec path format: .specweave/docs/internal/specs/{project-id}/spec-*.md
|
|
132
|
-
* OR (single project): .specweave/docs/internal/specs/spec-*.md
|
|
133
|
-
*/
|
|
134
|
-
private async detectProjectFromSpecPath(specFilePath: string): Promise<string | null> {
|
|
135
|
-
const specPathMatch = specFilePath.match(/\.specweave\/docs\/internal\/specs\/([^/]+)\//);
|
|
136
|
-
|
|
137
|
-
if (specPathMatch) {
|
|
138
|
-
// Multi-project: .specweave/docs/internal/specs/frontend/spec-001.md
|
|
139
|
-
const projectId = specPathMatch[1];
|
|
140
|
-
const project = await this.projectContextManager.getProject(projectId);
|
|
141
|
-
return project ? projectId : null;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
// Single project (default): .specweave/docs/internal/specs/spec-001.md
|
|
145
|
-
return 'default';
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* Get GitHub configuration for a project
|
|
150
|
-
*/
|
|
151
|
-
private async getGitHubConfigForProject(projectId: string): Promise<ProjectGitHubConfig | null> {
|
|
152
|
-
const config = await this.projectContextManager.load();
|
|
153
|
-
const project = await this.projectContextManager.getProject(projectId);
|
|
154
|
-
|
|
155
|
-
if (!project) {
|
|
156
|
-
return null;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
// Get profile from project's default sync profile
|
|
160
|
-
const profileId = project.defaultSyncProfile || config.defaultProfile;
|
|
161
|
-
if (!profileId) {
|
|
162
|
-
return null;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
const profile = config.profiles?.[profileId];
|
|
166
|
-
if (!profile || profile.provider !== 'github') {
|
|
167
|
-
return null;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
const githubConfig = profile.config as GitHubConfig;
|
|
171
|
-
|
|
172
|
-
return {
|
|
173
|
-
projectId,
|
|
174
|
-
strategy: (githubConfig as any).githubStrategy || 'project-per-spec',
|
|
175
|
-
owner: githubConfig.owner || '',
|
|
176
|
-
repo: githubConfig.repo || (githubConfig.repos && githubConfig.repos[0]) || '',
|
|
177
|
-
teamBoardId: (githubConfig as any).teamBoardId
|
|
178
|
-
};
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Sync spec to GitHub Project (CREATE or UPDATE)
|
|
183
|
-
*
|
|
184
|
-
* MULTI-PROJECT ARCHITECTURE:
|
|
185
|
-
* - Detects which project the spec belongs to
|
|
186
|
-
* - Routes to correct GitHub repo based on project config
|
|
187
|
-
* - Supports multiple sync strategies
|
|
188
|
-
*/
|
|
189
|
-
async syncSpecToGitHub(specId: string): Promise<SpecSyncResult> {
|
|
190
|
-
console.log(`\n🔄 Syncing spec ${specId} to GitHub Project...`);
|
|
191
|
-
|
|
192
|
-
try {
|
|
193
|
-
// 1. Load spec
|
|
194
|
-
const spec = await this.specManager.loadSpec(specId);
|
|
195
|
-
if (!spec) {
|
|
196
|
-
return {
|
|
197
|
-
success: false,
|
|
198
|
-
specId,
|
|
199
|
-
provider: 'github',
|
|
200
|
-
error: `Spec ${specId} not found`
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
// 2. Detect project from spec path
|
|
205
|
-
const projectId = await this.detectProjectFromSpecPath(spec.filePath);
|
|
206
|
-
if (!projectId) {
|
|
207
|
-
return {
|
|
208
|
-
success: false,
|
|
209
|
-
specId,
|
|
210
|
-
provider: 'github',
|
|
211
|
-
error: 'Could not determine project for spec'
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
console.log(` 📦 Detected project: ${projectId}`);
|
|
216
|
-
|
|
217
|
-
// 3. Get GitHub config for this project
|
|
218
|
-
let githubConfig = await this.getGitHubConfigForProject(projectId);
|
|
219
|
-
if (!githubConfig) {
|
|
220
|
-
// Fallback to auto-detect from git remote
|
|
221
|
-
const repoInfo = await this.detectRepo();
|
|
222
|
-
if (!repoInfo) {
|
|
223
|
-
return {
|
|
224
|
-
success: false,
|
|
225
|
-
specId,
|
|
226
|
-
provider: 'github',
|
|
227
|
-
error: `No GitHub configuration found for project '${projectId}'`
|
|
228
|
-
};
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
// Create fallback config
|
|
232
|
-
githubConfig = {
|
|
233
|
-
projectId,
|
|
234
|
-
owner: repoInfo.owner,
|
|
235
|
-
repo: repoInfo.repo,
|
|
236
|
-
strategy: 'project-per-spec'
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
console.log(` 🎯 Strategy: ${githubConfig.strategy}`);
|
|
241
|
-
console.log(` 🔗 Repository: ${githubConfig.owner}/${githubConfig.repo}`);
|
|
242
|
-
|
|
243
|
-
const { owner, repo, strategy } = githubConfig;
|
|
244
|
-
|
|
245
|
-
// 4. Handle strategy-specific sync
|
|
246
|
-
return await this.syncWithStrategy(spec, owner, repo, strategy, githubConfig);
|
|
247
|
-
|
|
248
|
-
} catch (error) {
|
|
249
|
-
console.error('❌ Error syncing to GitHub:', error);
|
|
250
|
-
return {
|
|
251
|
-
success: false,
|
|
252
|
-
specId,
|
|
253
|
-
provider: 'github',
|
|
254
|
-
error: error instanceof Error ? error.message : 'Unknown error'
|
|
255
|
-
};
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* Sync spec using specified strategy
|
|
261
|
-
*/
|
|
262
|
-
private async syncWithStrategy(
|
|
263
|
-
spec: SpecContent,
|
|
264
|
-
owner: string,
|
|
265
|
-
repo: string,
|
|
266
|
-
strategy: GitHubSyncStrategy,
|
|
267
|
-
config: ProjectGitHubConfig
|
|
268
|
-
): Promise<SpecSyncResult> {
|
|
269
|
-
const specId = spec.metadata.id;
|
|
270
|
-
|
|
271
|
-
switch (strategy) {
|
|
272
|
-
case 'project-per-spec':
|
|
273
|
-
return await this.syncProjectPerSpec(spec, owner, repo);
|
|
274
|
-
|
|
275
|
-
case 'team-board':
|
|
276
|
-
return await this.syncTeamBoard(spec, owner, repo, config.teamBoardId);
|
|
277
|
-
|
|
278
|
-
case 'centralized':
|
|
279
|
-
return await this.syncCentralized(spec, owner, repo);
|
|
280
|
-
|
|
281
|
-
case 'distributed':
|
|
282
|
-
return await this.syncDistributed(spec, config);
|
|
283
|
-
|
|
284
|
-
default:
|
|
285
|
-
// Fallback to project-per-spec
|
|
286
|
-
return await this.syncProjectPerSpec(spec, owner, repo);
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* Strategy 1: Project-per-Spec (DEFAULT)
|
|
292
|
-
* - One GitHub Project per spec
|
|
293
|
-
* - Current behavior, no changes needed
|
|
294
|
-
*/
|
|
295
|
-
private async syncProjectPerSpec(
|
|
296
|
-
spec: SpecContent,
|
|
297
|
-
owner: string,
|
|
298
|
-
repo: string
|
|
299
|
-
): Promise<SpecSyncResult> {
|
|
300
|
-
const specId = spec.metadata.id;
|
|
301
|
-
|
|
302
|
-
try {
|
|
303
|
-
// Check if spec already linked to GitHub Project
|
|
304
|
-
const existingLink = spec.metadata.externalLinks?.github;
|
|
305
|
-
|
|
306
|
-
let project: GitHubProject;
|
|
307
|
-
|
|
308
|
-
if (existingLink?.projectId) {
|
|
309
|
-
// UPDATE existing project
|
|
310
|
-
console.log(` Found existing GitHub Project #${existingLink.projectId}`);
|
|
311
|
-
project = await this.updateGitHubProject(
|
|
312
|
-
owner,
|
|
313
|
-
repo,
|
|
314
|
-
existingLink.projectId,
|
|
315
|
-
spec
|
|
316
|
-
);
|
|
317
|
-
} else {
|
|
318
|
-
// CREATE new project
|
|
319
|
-
console.log(' Creating new GitHub Project...');
|
|
320
|
-
project = await this.createGitHubProject(owner, repo, spec);
|
|
321
|
-
|
|
322
|
-
// Link spec to project
|
|
323
|
-
await this.specManager.linkToExternal(specId, 'github', {
|
|
324
|
-
id: project.id,
|
|
325
|
-
url: project.url,
|
|
326
|
-
owner,
|
|
327
|
-
repo
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
// 4. Sync user stories as issues/cards
|
|
332
|
-
const changes = await this.syncUserStories(owner, repo, project.number, spec);
|
|
333
|
-
|
|
334
|
-
console.log('✅ Sync complete!');
|
|
335
|
-
|
|
336
|
-
return {
|
|
337
|
-
success: true,
|
|
338
|
-
specId,
|
|
339
|
-
provider: 'github',
|
|
340
|
-
externalId: project.id.toString(),
|
|
341
|
-
url: project.url,
|
|
342
|
-
changes
|
|
343
|
-
};
|
|
344
|
-
|
|
345
|
-
} catch (error) {
|
|
346
|
-
console.error('❌ Error syncing to GitHub:', error);
|
|
347
|
-
return {
|
|
348
|
-
success: false,
|
|
349
|
-
specId,
|
|
350
|
-
provider: 'github',
|
|
351
|
-
error: error instanceof Error ? error.message : 'Unknown error'
|
|
352
|
-
};
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* Sync FROM GitHub Project to spec (full sync with all permissions)
|
|
358
|
-
*/
|
|
359
|
-
async syncFromGitHub(specId: string): Promise<SpecSyncResult> {
|
|
360
|
-
console.log(`\n🔄 Syncing FROM GitHub to spec ${specId}...`);
|
|
361
|
-
|
|
362
|
-
try {
|
|
363
|
-
// 1. Load spec
|
|
364
|
-
const spec = await this.specManager.loadSpec(specId);
|
|
365
|
-
if (!spec) {
|
|
366
|
-
return {
|
|
367
|
-
success: false,
|
|
368
|
-
specId,
|
|
369
|
-
provider: 'github',
|
|
370
|
-
error: `Spec ${specId} not found`
|
|
371
|
-
};
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
// 2. Get GitHub Project link
|
|
375
|
-
const githubLink = spec.metadata.externalLinks?.github;
|
|
376
|
-
if (!githubLink?.projectId) {
|
|
377
|
-
return {
|
|
378
|
-
success: false,
|
|
379
|
-
specId,
|
|
380
|
-
provider: 'github',
|
|
381
|
-
error: 'Spec not linked to GitHub Project'
|
|
382
|
-
};
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
const { owner, repo } = await this.detectRepo() || { owner: '', repo: '' };
|
|
386
|
-
|
|
387
|
-
// 3. Fetch GitHub Project state
|
|
388
|
-
const project = await this.fetchGitHubProject(owner, repo, githubLink.projectId);
|
|
389
|
-
|
|
390
|
-
// 4. Detect conflicts
|
|
391
|
-
const conflicts = await this.detectConflicts(spec, project);
|
|
392
|
-
|
|
393
|
-
if (conflicts.length === 0) {
|
|
394
|
-
console.log('✅ No conflicts - spec and GitHub in sync');
|
|
395
|
-
return {
|
|
396
|
-
success: true,
|
|
397
|
-
specId,
|
|
398
|
-
provider: 'github',
|
|
399
|
-
externalId: project.id.toString(),
|
|
400
|
-
url: project.url
|
|
401
|
-
};
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
console.log(`⚠️ Detected ${conflicts.length} conflict(s)`);
|
|
405
|
-
|
|
406
|
-
// 5. Resolve conflicts (GitHub wins by default for now)
|
|
407
|
-
await this.resolveConflicts(spec, conflicts);
|
|
408
|
-
|
|
409
|
-
console.log('✅ Sync FROM GitHub complete!');
|
|
410
|
-
|
|
411
|
-
return {
|
|
412
|
-
success: true,
|
|
413
|
-
specId,
|
|
414
|
-
provider: 'github',
|
|
415
|
-
externalId: project.id.toString(),
|
|
416
|
-
url: project.url,
|
|
417
|
-
conflicts
|
|
418
|
-
};
|
|
419
|
-
|
|
420
|
-
} catch (error) {
|
|
421
|
-
console.error('❌ Error syncing FROM GitHub:', error);
|
|
422
|
-
return {
|
|
423
|
-
success: false,
|
|
424
|
-
specId,
|
|
425
|
-
provider: 'github',
|
|
426
|
-
error: error instanceof Error ? error.message : 'Unknown error'
|
|
427
|
-
};
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
/**
|
|
432
|
-
* Create new GitHub Project for spec
|
|
433
|
-
*/
|
|
434
|
-
private async createGitHubProject(
|
|
435
|
-
owner: string,
|
|
436
|
-
repo: string,
|
|
437
|
-
spec: SpecContent
|
|
438
|
-
): Promise<GitHubProject> {
|
|
439
|
-
const projectTitle = `[${spec.metadata.id.toUpperCase()}] ${spec.metadata.title}`;
|
|
440
|
-
const projectBody = this.generateProjectDescription(spec);
|
|
441
|
-
|
|
442
|
-
// Use GraphQL to create project
|
|
443
|
-
const query = `
|
|
444
|
-
mutation CreateProject($ownerId: ID!, $title: String!, $body: String!) {
|
|
445
|
-
createProjectV2(input: {
|
|
446
|
-
ownerId: $ownerId,
|
|
447
|
-
title: $title,
|
|
448
|
-
body: $body
|
|
449
|
-
}) {
|
|
450
|
-
projectV2 {
|
|
451
|
-
id
|
|
452
|
-
title
|
|
453
|
-
number
|
|
454
|
-
url
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
`;
|
|
459
|
-
|
|
460
|
-
// Get owner ID first
|
|
461
|
-
const ownerId = await this.getOwnerId(owner);
|
|
462
|
-
|
|
463
|
-
const result = await this.executeGraphQL(query, {
|
|
464
|
-
ownerId,
|
|
465
|
-
title: projectTitle,
|
|
466
|
-
body: projectBody
|
|
467
|
-
});
|
|
468
|
-
|
|
469
|
-
const project = result.data.createProjectV2.projectV2;
|
|
470
|
-
|
|
471
|
-
console.log(` ✅ Created GitHub Project #${project.number}: ${project.url}`);
|
|
472
|
-
|
|
473
|
-
return {
|
|
474
|
-
id: parseInt(project.id, 10),
|
|
475
|
-
title: project.title,
|
|
476
|
-
number: project.number,
|
|
477
|
-
url: project.url,
|
|
478
|
-
state: 'open',
|
|
479
|
-
owner,
|
|
480
|
-
repo
|
|
481
|
-
};
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
/**
|
|
485
|
-
* Update existing GitHub Project
|
|
486
|
-
*/
|
|
487
|
-
private async updateGitHubProject(
|
|
488
|
-
owner: string,
|
|
489
|
-
repo: string,
|
|
490
|
-
projectId: number,
|
|
491
|
-
spec: SpecContent
|
|
492
|
-
): Promise<GitHubProject> {
|
|
493
|
-
const projectTitle = `[${spec.metadata.id.toUpperCase()}] ${spec.metadata.title}`;
|
|
494
|
-
const projectBody = this.generateProjectDescription(spec);
|
|
495
|
-
|
|
496
|
-
// Use GraphQL to update project
|
|
497
|
-
const query = `
|
|
498
|
-
mutation UpdateProject($projectId: ID!, $title: String, $body: String) {
|
|
499
|
-
updateProjectV2(input: {
|
|
500
|
-
projectId: $projectId,
|
|
501
|
-
title: $title,
|
|
502
|
-
body: $body
|
|
503
|
-
}) {
|
|
504
|
-
projectV2 {
|
|
505
|
-
id
|
|
506
|
-
title
|
|
507
|
-
number
|
|
508
|
-
url
|
|
509
|
-
}
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
`;
|
|
513
|
-
|
|
514
|
-
const result = await this.executeGraphQL(query, {
|
|
515
|
-
projectId: projectId.toString(),
|
|
516
|
-
title: projectTitle,
|
|
517
|
-
body: projectBody
|
|
518
|
-
});
|
|
519
|
-
|
|
520
|
-
const project = result.data.updateProjectV2.projectV2;
|
|
521
|
-
|
|
522
|
-
console.log(` ✅ Updated GitHub Project #${project.number}`);
|
|
523
|
-
|
|
524
|
-
return {
|
|
525
|
-
id: projectId,
|
|
526
|
-
title: project.title,
|
|
527
|
-
number: project.number,
|
|
528
|
-
url: project.url,
|
|
529
|
-
state: 'open',
|
|
530
|
-
owner,
|
|
531
|
-
repo
|
|
532
|
-
};
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
/**
|
|
537
|
-
* Generate project description from spec
|
|
538
|
-
*/
|
|
539
|
-
private generateProjectDescription(spec: SpecContent): string {
|
|
540
|
-
const progress = spec.metadata.progress;
|
|
541
|
-
const progressText = progress
|
|
542
|
-
? `**Progress**: ${progress.percentComplete}% (${progress.completedUserStories}/${progress.totalUserStories} user stories)`
|
|
543
|
-
: '**Progress**: N/A';
|
|
544
|
-
|
|
545
|
-
return `
|
|
546
|
-
# ${spec.metadata.title}
|
|
547
|
-
|
|
548
|
-
**Spec ID**: ${spec.metadata.id}
|
|
549
|
-
**Priority**: ${spec.metadata.priority}
|
|
550
|
-
**Status**: ${spec.metadata.status}
|
|
551
|
-
${progressText}
|
|
552
|
-
|
|
553
|
-
---
|
|
554
|
-
|
|
555
|
-
${SpecParser.extractOverview(spec.markdown)}
|
|
556
|
-
|
|
557
|
-
---
|
|
558
|
-
|
|
559
|
-
## User Stories
|
|
560
|
-
|
|
561
|
-
${spec.metadata.userStories?.length || 0} user stories tracked in this project.
|
|
562
|
-
|
|
563
|
-
---
|
|
564
|
-
|
|
565
|
-
Last updated: ${new Date().toISOString()}
|
|
566
|
-
`.trim();
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
/**
|
|
570
|
-
* Generate issue body from user story
|
|
571
|
-
*/
|
|
572
|
-
private generateIssueBody(us: UserStory): string {
|
|
573
|
-
const acList = us.acceptanceCriteria
|
|
574
|
-
.map(ac => `- [${ac.status === 'done' ? 'x' : ' '}] ${ac.description}`)
|
|
575
|
-
.join('\n');
|
|
576
|
-
|
|
577
|
-
return `
|
|
578
|
-
## User Story
|
|
579
|
-
|
|
580
|
-
${us.title}
|
|
581
|
-
|
|
582
|
-
## Acceptance Criteria
|
|
583
|
-
|
|
584
|
-
${acList}
|
|
585
|
-
|
|
586
|
-
---
|
|
587
|
-
|
|
588
|
-
**Priority**: ${us.priority}
|
|
589
|
-
**Status**: ${us.status}
|
|
590
|
-
`.trim();
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
/**
|
|
594
|
-
* Detect conflicts between spec and GitHub
|
|
595
|
-
*/
|
|
596
|
-
private async detectConflicts(
|
|
597
|
-
spec: SpecContent,
|
|
598
|
-
project: GitHubProject
|
|
599
|
-
): Promise<SpecSyncConflict[]> {
|
|
600
|
-
const conflicts: SpecSyncConflict[] = [];
|
|
601
|
-
|
|
602
|
-
// Compare project title
|
|
603
|
-
const expectedTitle = `[${spec.metadata.id.toUpperCase()}] ${spec.metadata.title}`;
|
|
604
|
-
if (project.title !== expectedTitle) {
|
|
605
|
-
conflicts.push({
|
|
606
|
-
type: 'metadata',
|
|
607
|
-
field: 'title',
|
|
608
|
-
localValue: spec.metadata.title,
|
|
609
|
-
remoteValue: project.title,
|
|
610
|
-
resolution: 'remote-wins',
|
|
611
|
-
description: 'Project title differs from spec title'
|
|
612
|
-
});
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
// TODO: Compare user stories and their statuses
|
|
616
|
-
|
|
617
|
-
return conflicts;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
/**
|
|
621
|
-
* Resolve conflicts
|
|
622
|
-
*
|
|
623
|
-
* GUARD: Only overwrites local spec title if the user explicitly configured
|
|
624
|
-
* "remote-wins" as the conflict resolution strategy. Default conflicts
|
|
625
|
-
* detected by detectConflicts() use 'remote-wins' but this guard ensures
|
|
626
|
-
* API-sourced titles never silently replace local titles.
|
|
627
|
-
*/
|
|
628
|
-
private async resolveConflicts(
|
|
629
|
-
spec: SpecContent,
|
|
630
|
-
conflicts: SpecSyncConflict[]
|
|
631
|
-
): Promise<void> {
|
|
632
|
-
for (const conflict of conflicts) {
|
|
633
|
-
if (conflict.resolution === 'remote-wins') {
|
|
634
|
-
// Guard: never overwrite local title with an API-sourced title
|
|
635
|
-
// unless the conflict was explicitly set to remote-wins by user config.
|
|
636
|
-
// The title field from detectConflicts() defaults to 'remote-wins'
|
|
637
|
-
// but we should only apply it for non-title fields or when the remote
|
|
638
|
-
// value looks like a real title (not a stub/API artifact).
|
|
639
|
-
if (conflict.field === 'title') {
|
|
640
|
-
const remoteTitle = conflict.remoteValue as string;
|
|
641
|
-
// Skip if remote title looks like a prefix-formatted project title
|
|
642
|
-
// (e.g., "[SPEC-001] Real Title") — extract and compare only the suffix
|
|
643
|
-
const remoteSuffix = remoteTitle.replace(/^\[.*?\]\s*/, '');
|
|
644
|
-
const localTitle = spec.metadata.title;
|
|
645
|
-
if (remoteSuffix === localTitle || !remoteSuffix) {
|
|
646
|
-
// No real difference or empty remote — skip
|
|
647
|
-
continue;
|
|
648
|
-
}
|
|
649
|
-
console.log(` 🔄 Resolving: ${conflict.description} (GitHub wins — explicit remote-wins)`);
|
|
650
|
-
await this.specManager.saveMetadata(spec.metadata.id, {
|
|
651
|
-
title: conflict.remoteValue
|
|
652
|
-
});
|
|
653
|
-
} else {
|
|
654
|
-
console.log(` 🔄 Resolving: ${conflict.description} (GitHub wins)`);
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
/**
|
|
661
|
-
* Execute GraphQL query against GitHub API
|
|
662
|
-
*/
|
|
663
|
-
private async executeGraphQL(query: string, variables: any): Promise<any> {
|
|
664
|
-
const result = await execFileNoThrow('gh', [
|
|
665
|
-
'api',
|
|
666
|
-
'graphql',
|
|
667
|
-
'-f',
|
|
668
|
-
`query=${query}`,
|
|
669
|
-
...Object.entries(variables).flatMap(([key, value]) => ['-F', `${key}=${value}`])
|
|
670
|
-
], { env: this.getGhEnv() });
|
|
671
|
-
|
|
672
|
-
if (result.error) {
|
|
673
|
-
throw new Error(`GraphQL query failed: ${result.error}`);
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
return JSON.parse(result.stdout);
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
/**
|
|
680
|
-
* Get owner ID (user or organization)
|
|
681
|
-
*/
|
|
682
|
-
private async getOwnerId(owner: string): Promise<string> {
|
|
683
|
-
const query = `
|
|
684
|
-
query GetOwner($login: String!) {
|
|
685
|
-
repositoryOwner(login: $login) {
|
|
686
|
-
id
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
`;
|
|
690
|
-
|
|
691
|
-
const result = await this.executeGraphQL(query, { login: owner });
|
|
692
|
-
return result.data.repositoryOwner.id;
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
/**
|
|
696
|
-
* Fetch GitHub Project details via GraphQL ProjectV2 API
|
|
697
|
-
*/
|
|
698
|
-
private async fetchGitHubProject(
|
|
699
|
-
owner: string,
|
|
700
|
-
repo: string,
|
|
701
|
-
projectId: number
|
|
702
|
-
): Promise<GitHubProject> {
|
|
703
|
-
const query = `
|
|
704
|
-
query GetProject($owner: String!, $number: Int!) {
|
|
705
|
-
user(login: $owner) {
|
|
706
|
-
projectV2(number: $number) {
|
|
707
|
-
id
|
|
708
|
-
title
|
|
709
|
-
number
|
|
710
|
-
url
|
|
711
|
-
closed
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
`;
|
|
716
|
-
|
|
717
|
-
try {
|
|
718
|
-
const result = await this.executeGraphQL(query, {
|
|
719
|
-
owner,
|
|
720
|
-
number: projectId,
|
|
721
|
-
});
|
|
722
|
-
|
|
723
|
-
// Try user first, fall back to org
|
|
724
|
-
let project = result.data?.user?.projectV2;
|
|
725
|
-
if (!project) {
|
|
726
|
-
const orgQuery = `
|
|
727
|
-
query GetOrgProject($owner: String!, $number: Int!) {
|
|
728
|
-
organization(login: $owner) {
|
|
729
|
-
projectV2(number: $number) {
|
|
730
|
-
id
|
|
731
|
-
title
|
|
732
|
-
number
|
|
733
|
-
url
|
|
734
|
-
closed
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
}
|
|
738
|
-
`;
|
|
739
|
-
const orgResult = await this.executeGraphQL(orgQuery, {
|
|
740
|
-
owner,
|
|
741
|
-
number: projectId,
|
|
742
|
-
});
|
|
743
|
-
project = orgResult.data?.organization?.projectV2;
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
if (!project) {
|
|
747
|
-
throw new Error(`GitHub Project #${projectId} not found for ${owner}`);
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
return {
|
|
751
|
-
id: projectId,
|
|
752
|
-
title: project.title,
|
|
753
|
-
number: project.number,
|
|
754
|
-
url: project.url,
|
|
755
|
-
state: project.closed ? 'closed' : 'open',
|
|
756
|
-
owner,
|
|
757
|
-
repo,
|
|
758
|
-
};
|
|
759
|
-
} catch (error) {
|
|
760
|
-
throw new Error(
|
|
761
|
-
`Failed to fetch GitHub Project #${projectId}: ${error instanceof Error ? error.message : String(error)}`
|
|
762
|
-
);
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
/**
|
|
767
|
-
* Find issue by title pattern
|
|
768
|
-
*/
|
|
769
|
-
private async findIssueByTitle(
|
|
770
|
-
owner: string,
|
|
771
|
-
repo: string,
|
|
772
|
-
usId: string
|
|
773
|
-
): Promise<GitHubIssue | null> {
|
|
774
|
-
const result = await execFileNoThrow('gh', [
|
|
775
|
-
'issue',
|
|
776
|
-
'list',
|
|
777
|
-
'--repo',
|
|
778
|
-
`${owner}/${repo}`,
|
|
779
|
-
'--search',
|
|
780
|
-
`"[${usId}]" in:title`,
|
|
781
|
-
'--json',
|
|
782
|
-
'number,title,body,state,labels',
|
|
783
|
-
'--limit',
|
|
784
|
-
'1'
|
|
785
|
-
], { env: this.getGhEnv() });
|
|
786
|
-
|
|
787
|
-
if (result.error || !result.stdout) {
|
|
788
|
-
return null;
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
const issues = JSON.parse(result.stdout);
|
|
792
|
-
return issues.length > 0 ? issues[0] : null;
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
/**
|
|
796
|
-
* Create GitHub issue
|
|
797
|
-
*/
|
|
798
|
-
private async createIssue(
|
|
799
|
-
owner: string,
|
|
800
|
-
repo: string,
|
|
801
|
-
issue: { title: string; body: string; labels: string[] }
|
|
802
|
-
): Promise<GitHubIssue> {
|
|
803
|
-
const result = await execFileNoThrow('gh', [
|
|
804
|
-
'issue',
|
|
805
|
-
'create',
|
|
806
|
-
'--repo',
|
|
807
|
-
`${owner}/${repo}`,
|
|
808
|
-
'--title',
|
|
809
|
-
issue.title,
|
|
810
|
-
'--body',
|
|
811
|
-
issue.body,
|
|
812
|
-
'--label',
|
|
813
|
-
issue.labels.join(','),
|
|
814
|
-
'--json',
|
|
815
|
-
'number,title,body,state'
|
|
816
|
-
], { env: this.getGhEnv() });
|
|
817
|
-
|
|
818
|
-
if (result.error) {
|
|
819
|
-
throw new Error(`Failed to create issue: ${result.error}`);
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
return JSON.parse(result.stdout);
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
/**
|
|
826
|
-
* Update GitHub issue
|
|
827
|
-
*/
|
|
828
|
-
private async updateIssue(
|
|
829
|
-
owner: string,
|
|
830
|
-
repo: string,
|
|
831
|
-
issueNumber: number,
|
|
832
|
-
updates: { title?: string; body?: string; state?: 'open' | 'closed' }
|
|
833
|
-
): Promise<void> {
|
|
834
|
-
const args = ['issue', 'edit', issueNumber.toString(), '--repo', `${owner}/${repo}`];
|
|
835
|
-
|
|
836
|
-
if (updates.title) {
|
|
837
|
-
args.push('--title', updates.title);
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
if (updates.body) {
|
|
841
|
-
args.push('--body', updates.body);
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
if (updates.state === 'closed') {
|
|
845
|
-
args.push('--state', 'closed');
|
|
846
|
-
} else if (updates.state === 'open') {
|
|
847
|
-
args.push('--state', 'open');
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
const result = await execFileNoThrow('gh', args, { env: this.getGhEnv() });
|
|
851
|
-
|
|
852
|
-
if (result.error) {
|
|
853
|
-
throw new Error(`Failed to update issue #${issueNumber}: ${result.error}`);
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
/**
|
|
858
|
-
* Strategy 2: Team-Board
|
|
859
|
-
* - One GitHub Project per team (aggregates multiple specs)
|
|
860
|
-
* - All specs from the same team/project sync to same board
|
|
861
|
-
*/
|
|
862
|
-
private async syncTeamBoard(
|
|
863
|
-
spec: SpecContent,
|
|
864
|
-
owner: string,
|
|
865
|
-
repo: string,
|
|
866
|
-
teamBoardId?: number
|
|
867
|
-
): Promise<SpecSyncResult> {
|
|
868
|
-
const specId = spec.metadata.id;
|
|
869
|
-
|
|
870
|
-
try {
|
|
871
|
-
console.log(' 📋 Using team-board strategy (aggregated)');
|
|
872
|
-
|
|
873
|
-
// If team board doesn't exist, create it
|
|
874
|
-
if (!teamBoardId) {
|
|
875
|
-
const projectId = await this.detectProjectFromSpecPath(spec.filePath);
|
|
876
|
-
const project = await this.projectContextManager.getProject(projectId || 'default');
|
|
877
|
-
|
|
878
|
-
const teamName = project?.team || 'Team';
|
|
879
|
-
const teamProject = await this.createGitHubProject(owner, repo, {
|
|
880
|
-
...spec,
|
|
881
|
-
metadata: {
|
|
882
|
-
...spec.metadata,
|
|
883
|
-
title: `${teamName} Board`
|
|
884
|
-
}
|
|
885
|
-
});
|
|
886
|
-
|
|
887
|
-
teamBoardId = teamProject.id;
|
|
888
|
-
|
|
889
|
-
console.log(` ✅ Created team board: ${teamName} Board (#${teamBoardId})`);
|
|
890
|
-
}
|
|
891
|
-
|
|
892
|
-
// Sync this spec's user stories to the team board
|
|
893
|
-
const changes = await this.syncUserStories(owner, repo, teamBoardId, spec);
|
|
894
|
-
|
|
895
|
-
return {
|
|
896
|
-
success: true,
|
|
897
|
-
specId,
|
|
898
|
-
provider: 'github',
|
|
899
|
-
externalId: teamBoardId.toString(),
|
|
900
|
-
url: `https://github.com/orgs/${owner}/projects/${teamBoardId}`,
|
|
901
|
-
changes
|
|
902
|
-
};
|
|
903
|
-
|
|
904
|
-
} catch (error) {
|
|
905
|
-
console.error('❌ Error syncing to team board:', error);
|
|
906
|
-
return {
|
|
907
|
-
success: false,
|
|
908
|
-
specId,
|
|
909
|
-
provider: 'github',
|
|
910
|
-
error: error instanceof Error ? error.message : 'Unknown error'
|
|
911
|
-
};
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
/**
|
|
916
|
-
* Strategy 3: Centralized
|
|
917
|
-
* - Parent repo tracks all specs (multi-repo pattern)
|
|
918
|
-
* - Issues created in parent repo with tags for child repos
|
|
919
|
-
*/
|
|
920
|
-
private async syncCentralized(
|
|
921
|
-
spec: SpecContent,
|
|
922
|
-
parentOwner: string,
|
|
923
|
-
parentRepo: string
|
|
924
|
-
): Promise<SpecSyncResult> {
|
|
925
|
-
const specId = spec.metadata.id;
|
|
926
|
-
|
|
927
|
-
try {
|
|
928
|
-
console.log(' 🏢 Using centralized strategy (parent repo tracks all)');
|
|
929
|
-
|
|
930
|
-
// Create project in parent repo
|
|
931
|
-
const project = await this.createGitHubProject(parentOwner, parentRepo, spec);
|
|
932
|
-
|
|
933
|
-
// Tag issues with project/team info
|
|
934
|
-
const projectId = await this.detectProjectFromSpecPath(spec.filePath);
|
|
935
|
-
const projectContext = await this.projectContextManager.getProject(projectId || 'default');
|
|
936
|
-
|
|
937
|
-
// Sync user stories with project tags
|
|
938
|
-
const changes = await this.syncUserStories(
|
|
939
|
-
parentOwner,
|
|
940
|
-
parentRepo,
|
|
941
|
-
project.number,
|
|
942
|
-
spec,
|
|
943
|
-
projectContext?.name ? [`project:${projectContext.name}`] : []
|
|
944
|
-
);
|
|
945
|
-
|
|
946
|
-
console.log(` ✅ Synced to parent repo: ${parentOwner}/${parentRepo}`);
|
|
947
|
-
|
|
948
|
-
return {
|
|
949
|
-
success: true,
|
|
950
|
-
specId,
|
|
951
|
-
provider: 'github',
|
|
952
|
-
externalId: project.id.toString(),
|
|
953
|
-
url: project.url,
|
|
954
|
-
changes
|
|
955
|
-
};
|
|
956
|
-
|
|
957
|
-
} catch (error) {
|
|
958
|
-
console.error('❌ Error syncing centralized:', error);
|
|
959
|
-
return {
|
|
960
|
-
success: false,
|
|
961
|
-
specId,
|
|
962
|
-
provider: 'github',
|
|
963
|
-
error: error instanceof Error ? error.message : 'Unknown error'
|
|
964
|
-
};
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
/**
|
|
969
|
-
* Strategy 4: Distributed
|
|
970
|
-
* - Each team syncs to their repo (microservices)
|
|
971
|
-
* - Cross-team specs create issues in multiple repos
|
|
972
|
-
*/
|
|
973
|
-
private async syncDistributed(
|
|
974
|
-
spec: SpecContent,
|
|
975
|
-
config: ProjectGitHubConfig
|
|
976
|
-
): Promise<SpecSyncResult> {
|
|
977
|
-
const specId = spec.metadata.id;
|
|
978
|
-
|
|
979
|
-
try {
|
|
980
|
-
console.log(' 🌐 Using distributed strategy (per-team repos)');
|
|
981
|
-
|
|
982
|
-
const projectId = config.projectId;
|
|
983
|
-
const projectContext = await this.projectContextManager.getProject(projectId);
|
|
984
|
-
|
|
985
|
-
if (!projectContext) {
|
|
986
|
-
throw new Error(`Project context not found for ${projectId}`);
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
// Determine if this is a cross-team spec
|
|
990
|
-
const isCrossTeam = this.isCrossTeamSpec(spec);
|
|
991
|
-
|
|
992
|
-
if (isCrossTeam) {
|
|
993
|
-
console.log(' 🔗 Cross-team spec detected, syncing to multiple repos');
|
|
994
|
-
return await this.syncCrossTeamSpec(spec, projectId);
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
// Single-team spec: sync to its own repo
|
|
998
|
-
return await this.syncProjectPerSpec(spec, config.owner, config.repo);
|
|
999
|
-
|
|
1000
|
-
} catch (error) {
|
|
1001
|
-
console.error('❌ Error syncing distributed:', error);
|
|
1002
|
-
return {
|
|
1003
|
-
success: false,
|
|
1004
|
-
specId,
|
|
1005
|
-
provider: 'github',
|
|
1006
|
-
error: error instanceof Error ? error.message : 'Unknown error'
|
|
1007
|
-
};
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
/**
|
|
1012
|
-
* Check if spec is cross-team (touches multiple projects)
|
|
1013
|
-
*
|
|
1014
|
-
* Detection heuristics:
|
|
1015
|
-
* - Spec title contains keywords like "integration", "cross-team", "shared"
|
|
1016
|
-
* - User stories reference multiple projects/teams
|
|
1017
|
-
* - Tags include multiple project names
|
|
1018
|
-
*/
|
|
1019
|
-
private isCrossTeamSpec(spec: SpecContent): boolean {
|
|
1020
|
-
const title = spec.metadata.title.toLowerCase();
|
|
1021
|
-
const hasCrossTeamKeyword = this.crossTeamKeywords.some(keyword =>
|
|
1022
|
-
title.toLowerCase().includes(keyword.toLowerCase())
|
|
1023
|
-
);
|
|
1024
|
-
|
|
1025
|
-
// Check tags for multiple project references
|
|
1026
|
-
const tags = spec.metadata.tags || [];
|
|
1027
|
-
const projectTags = tags.filter(tag => tag.startsWith('project:'));
|
|
1028
|
-
const hasMultipleProjects = projectTags.length > 1;
|
|
1029
|
-
|
|
1030
|
-
return hasCrossTeamKeyword || hasMultipleProjects;
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1033
|
-
/**
|
|
1034
|
-
* Sync cross-team spec to multiple repositories
|
|
1035
|
-
*
|
|
1036
|
-
* Creates issues in multiple repos:
|
|
1037
|
-
* - Frontend repo gets frontend-specific user stories
|
|
1038
|
-
* - Backend repo gets backend-specific user stories
|
|
1039
|
-
* - Shared stories get created in both with cross-links
|
|
1040
|
-
*/
|
|
1041
|
-
private async syncCrossTeamSpec(
|
|
1042
|
-
spec: SpecContent,
|
|
1043
|
-
projectId: string
|
|
1044
|
-
): Promise<SpecSyncResult> {
|
|
1045
|
-
const specId = spec.metadata.id;
|
|
1046
|
-
|
|
1047
|
-
try {
|
|
1048
|
-
// Get all related project profiles
|
|
1049
|
-
const config = await this.projectContextManager.load();
|
|
1050
|
-
const relatedProfiles = await this.detectRelatedProfiles(spec, config);
|
|
1051
|
-
|
|
1052
|
-
if (relatedProfiles.length === 0) {
|
|
1053
|
-
throw new Error('No related profiles found for cross-team spec');
|
|
1054
|
-
}
|
|
1055
|
-
|
|
1056
|
-
console.log(` 📂 Syncing to ${relatedProfiles.length} repositories:`);
|
|
1057
|
-
|
|
1058
|
-
const allChanges = {
|
|
1059
|
-
created: [] as string[],
|
|
1060
|
-
updated: [] as string[],
|
|
1061
|
-
deleted: [] as string[]
|
|
1062
|
-
};
|
|
1063
|
-
|
|
1064
|
-
// Sync to each related repo
|
|
1065
|
-
for (const profile of relatedProfiles) {
|
|
1066
|
-
const githubConfig = profile.config as GitHubConfig;
|
|
1067
|
-
console.log(` → ${githubConfig.owner}/${githubConfig.repo}`);
|
|
1068
|
-
|
|
1069
|
-
// Filter user stories relevant to this project
|
|
1070
|
-
const relevantStories = this.filterRelevantUserStories(
|
|
1071
|
-
spec,
|
|
1072
|
-
profile.projectContext?.name || ''
|
|
1073
|
-
);
|
|
1074
|
-
|
|
1075
|
-
if (relevantStories.length === 0) {
|
|
1076
|
-
console.log(` ℹ️ No relevant stories, skipping`);
|
|
1077
|
-
continue;
|
|
1078
|
-
}
|
|
1079
|
-
|
|
1080
|
-
// Create project in this repo
|
|
1081
|
-
const project = await this.createGitHubProject(
|
|
1082
|
-
githubConfig.owner || '',
|
|
1083
|
-
githubConfig.repo || '',
|
|
1084
|
-
{
|
|
1085
|
-
...spec,
|
|
1086
|
-
metadata: {
|
|
1087
|
-
...spec.metadata,
|
|
1088
|
-
userStories: relevantStories
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
);
|
|
1092
|
-
|
|
1093
|
-
// Sync user stories
|
|
1094
|
-
const changes = await this.syncUserStories(
|
|
1095
|
-
githubConfig.owner || '',
|
|
1096
|
-
githubConfig.repo || '',
|
|
1097
|
-
project.number,
|
|
1098
|
-
{ ...spec, metadata: { ...spec.metadata, userStories: relevantStories } }
|
|
1099
|
-
);
|
|
1100
|
-
|
|
1101
|
-
allChanges.created.push(...changes.created);
|
|
1102
|
-
allChanges.updated.push(...changes.updated);
|
|
1103
|
-
allChanges.deleted.push(...changes.deleted);
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
console.log(' ✅ Cross-team sync complete!');
|
|
1107
|
-
|
|
1108
|
-
return {
|
|
1109
|
-
success: true,
|
|
1110
|
-
specId,
|
|
1111
|
-
provider: 'github',
|
|
1112
|
-
externalId: 'cross-team',
|
|
1113
|
-
url: 'multiple-repos',
|
|
1114
|
-
changes: allChanges
|
|
1115
|
-
};
|
|
1116
|
-
|
|
1117
|
-
} catch (error) {
|
|
1118
|
-
console.error('❌ Error syncing cross-team spec:', error);
|
|
1119
|
-
return {
|
|
1120
|
-
success: false,
|
|
1121
|
-
specId,
|
|
1122
|
-
provider: 'github',
|
|
1123
|
-
error: error instanceof Error ? error.message : 'Unknown error'
|
|
1124
|
-
};
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
/**
|
|
1129
|
-
* Detect related profiles for cross-team spec
|
|
1130
|
-
*/
|
|
1131
|
-
private async detectRelatedProfiles(
|
|
1132
|
-
spec: SpecContent,
|
|
1133
|
-
config: any
|
|
1134
|
-
): Promise<Array<any>> {
|
|
1135
|
-
const profiles: Array<any> = [];
|
|
1136
|
-
const tags = spec.metadata.tags || [];
|
|
1137
|
-
|
|
1138
|
-
// Extract project tags (e.g., project:frontend, project:backend)
|
|
1139
|
-
const projectTags = tags
|
|
1140
|
-
.filter(tag => tag.startsWith('project:'))
|
|
1141
|
-
.map(tag => tag.replace('project:', ''));
|
|
1142
|
-
|
|
1143
|
-
// Find profiles for these projects
|
|
1144
|
-
for (const projectId of projectTags) {
|
|
1145
|
-
const project = await this.projectContextManager.getProject(projectId);
|
|
1146
|
-
if (project && project.defaultSyncProfile) {
|
|
1147
|
-
const profile = config.profiles?.[project.defaultSyncProfile];
|
|
1148
|
-
if (profile && profile.provider === 'github') {
|
|
1149
|
-
profiles.push({
|
|
1150
|
-
...profile,
|
|
1151
|
-
projectContext: project
|
|
1152
|
-
});
|
|
1153
|
-
}
|
|
1154
|
-
}
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
|
-
return profiles;
|
|
1158
|
-
}
|
|
1159
|
-
|
|
1160
|
-
/**
|
|
1161
|
-
* Filter user stories relevant to a specific project
|
|
1162
|
-
*
|
|
1163
|
-
* Heuristics:
|
|
1164
|
-
* - Story title/description contains project keywords
|
|
1165
|
-
* - Story tags include project name
|
|
1166
|
-
* - Story implementation references project folder
|
|
1167
|
-
*/
|
|
1168
|
-
private filterRelevantUserStories(
|
|
1169
|
-
spec: SpecContent,
|
|
1170
|
-
projectName: string
|
|
1171
|
-
): UserStory[] {
|
|
1172
|
-
if (!spec.metadata.userStories) {
|
|
1173
|
-
return [];
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
const projectKeywords = projectName.toLowerCase().split(/[-_\s]/);
|
|
1177
|
-
|
|
1178
|
-
return spec.metadata.userStories.filter(story => {
|
|
1179
|
-
const storyText = `${story.title} ${story.description || ''}`.toLowerCase();
|
|
1180
|
-
|
|
1181
|
-
// Check if story mentions this project
|
|
1182
|
-
const mentionsProject = projectKeywords.some(keyword =>
|
|
1183
|
-
storyText.includes(keyword)
|
|
1184
|
-
);
|
|
1185
|
-
|
|
1186
|
-
// If story doesn't mention any specific project, include it (shared story)
|
|
1187
|
-
const isShared = !storyText.match(/\b(frontend|backend|mobile|infra|platform)\b/);
|
|
1188
|
-
|
|
1189
|
-
return mentionsProject || isShared;
|
|
1190
|
-
});
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
/**
|
|
1194
|
-
* Enhanced syncUserStories with optional extra labels
|
|
1195
|
-
*/
|
|
1196
|
-
private async syncUserStories(
|
|
1197
|
-
owner: string,
|
|
1198
|
-
repo: string,
|
|
1199
|
-
projectNumber: number,
|
|
1200
|
-
spec: SpecContent,
|
|
1201
|
-
extraLabels: string[] = []
|
|
1202
|
-
): Promise<{ created: string[]; updated: string[]; deleted: string[] }> {
|
|
1203
|
-
const created: string[] = [];
|
|
1204
|
-
const updated: string[] = [];
|
|
1205
|
-
const deleted: string[] = [];
|
|
1206
|
-
|
|
1207
|
-
if (!spec.metadata.userStories || spec.metadata.userStories.length === 0) {
|
|
1208
|
-
console.log(' ℹ️ No user stories to sync');
|
|
1209
|
-
return { created, updated, deleted };
|
|
1210
|
-
}
|
|
1211
|
-
|
|
1212
|
-
console.log(` Syncing ${spec.metadata.userStories.length} user stories...`);
|
|
1213
|
-
|
|
1214
|
-
for (const us of spec.metadata.userStories) {
|
|
1215
|
-
// Create or update issue for each user story
|
|
1216
|
-
const issueTitle = `[${us.id}] ${us.title}`;
|
|
1217
|
-
const issueBody = this.generateIssueBody(us);
|
|
1218
|
-
|
|
1219
|
-
// Check if issue already exists (by title pattern)
|
|
1220
|
-
const existingIssue = await this.findIssueByTitle(owner, repo, us.id);
|
|
1221
|
-
|
|
1222
|
-
const labels = [
|
|
1223
|
-
'user-story',
|
|
1224
|
-
`spec:${spec.metadata.id}`,
|
|
1225
|
-
`priority:${us.priority}`,
|
|
1226
|
-
...extraLabels
|
|
1227
|
-
];
|
|
1228
|
-
|
|
1229
|
-
if (existingIssue) {
|
|
1230
|
-
// UPDATE existing issue
|
|
1231
|
-
await this.updateIssue(owner, repo, existingIssue.number, {
|
|
1232
|
-
title: issueTitle,
|
|
1233
|
-
body: issueBody,
|
|
1234
|
-
state: us.status === 'done' ? 'closed' : 'open'
|
|
1235
|
-
});
|
|
1236
|
-
|
|
1237
|
-
updated.push(us.id);
|
|
1238
|
-
console.log(` ✅ Updated ${us.id}`);
|
|
1239
|
-
} else {
|
|
1240
|
-
// CREATE new issue
|
|
1241
|
-
const newIssue = await this.createIssue(owner, repo, {
|
|
1242
|
-
title: issueTitle,
|
|
1243
|
-
body: issueBody,
|
|
1244
|
-
labels
|
|
1245
|
-
});
|
|
1246
|
-
|
|
1247
|
-
created.push(us.id);
|
|
1248
|
-
console.log(` ✅ Created ${us.id} → Issue #${newIssue.number}`);
|
|
1249
|
-
}
|
|
1250
|
-
}
|
|
1251
|
-
|
|
1252
|
-
return { created, updated, deleted };
|
|
1253
|
-
}
|
|
1254
|
-
|
|
1255
|
-
/**
|
|
1256
|
-
* Detect GitHub repository from git remote
|
|
1257
|
-
*/
|
|
1258
|
-
private async detectRepo(): Promise<{ owner: string; repo: string } | null> {
|
|
1259
|
-
const result = await execFileNoThrow('git', ['remote', 'get-url', 'origin']);
|
|
1260
|
-
|
|
1261
|
-
if (result.error || !result.stdout) {
|
|
1262
|
-
return null;
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
const remoteUrl = result.stdout.trim();
|
|
1266
|
-
|
|
1267
|
-
// Parse GitHub URL
|
|
1268
|
-
// Examples:
|
|
1269
|
-
// - https://github.com/owner/repo.git
|
|
1270
|
-
// - git@github.com:owner/repo.git
|
|
1271
|
-
const httpsMatch = remoteUrl.match(/github\.com[/:]([\w-]+)\/([\w-]+?)(\.git)?$/);
|
|
1272
|
-
if (httpsMatch) {
|
|
1273
|
-
return {
|
|
1274
|
-
owner: httpsMatch[1],
|
|
1275
|
-
repo: httpsMatch[2]
|
|
1276
|
-
};
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
|
-
return null;
|
|
1280
|
-
}
|
|
1281
|
-
}
|