specweave 0.33.5 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/README.md +13 -13
- package/.claude-plugin/marketplace.json +26 -37
- package/CLAUDE.md +427 -70
- package/README.md +34 -31
- package/bin/fix-marketplace-errors.sh +1 -1
- package/bin/install-commands.sh +2 -2
- package/bin/specweave.js +58 -1
- package/dist/plugins/specweave-github/lib/ThreeLayerSyncManager.d.ts +5 -0
- package/dist/plugins/specweave-github/lib/ThreeLayerSyncManager.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/ThreeLayerSyncManager.js +14 -4
- package/dist/plugins/specweave-github/lib/ThreeLayerSyncManager.js.map +1 -1
- package/dist/plugins/specweave-github/lib/completion-calculator.d.ts +1 -0
- package/dist/plugins/specweave-github/lib/completion-calculator.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/completion-calculator.js +2 -0
- package/dist/plugins/specweave-github/lib/completion-calculator.js.map +1 -1
- package/dist/plugins/specweave-github/lib/duplicate-detector.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/duplicate-detector.js +20 -6
- package/dist/plugins/specweave-github/lib/duplicate-detector.js.map +1 -1
- package/dist/plugins/specweave-github/lib/github-client-v2.d.ts +9 -0
- package/dist/plugins/specweave-github/lib/github-client-v2.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/github-client-v2.js +31 -18
- package/dist/plugins/specweave-github/lib/github-client-v2.js.map +1 -1
- package/dist/plugins/specweave-github/lib/github-feature-sync.d.ts +7 -0
- package/dist/plugins/specweave-github/lib/github-feature-sync.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/github-feature-sync.js +47 -11
- package/dist/plugins/specweave-github/lib/github-feature-sync.js.map +1 -1
- package/dist/plugins/specweave-github/lib/github-increment-sync-cli.js +39 -13
- package/dist/plugins/specweave-github/lib/github-increment-sync-cli.js.map +1 -1
- package/dist/plugins/specweave-github/lib/github-issue-updater.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/github-issue-updater.js +15 -3
- package/dist/plugins/specweave-github/lib/github-issue-updater.js.map +1 -1
- package/dist/plugins/specweave-github/lib/github-spec-sync.d.ts +7 -0
- package/dist/plugins/specweave-github/lib/github-spec-sync.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/github-spec-sync.js +17 -4
- package/dist/plugins/specweave-github/lib/github-spec-sync.js.map +1 -1
- package/dist/plugins/specweave-github/lib/github-sync-bidirectional.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/github-sync-bidirectional.js +13 -3
- package/dist/plugins/specweave-github/lib/github-sync-bidirectional.js.map +1 -1
- package/dist/plugins/specweave-github/lib/github-sync-increment-changes.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/github-sync-increment-changes.js +14 -4
- package/dist/plugins/specweave-github/lib/github-sync-increment-changes.js.map +1 -1
- package/dist/plugins/specweave-github/lib/increment-issue-builder.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/increment-issue-builder.js +24 -8
- package/dist/plugins/specweave-github/lib/increment-issue-builder.js.map +1 -1
- package/dist/plugins/specweave-github/lib/user-story-content-builder.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/user-story-content-builder.js +21 -18
- package/dist/plugins/specweave-github/lib/user-story-content-builder.js.map +1 -1
- package/dist/plugins/specweave-github/lib/user-story-issue-builder.d.ts +3 -0
- package/dist/plugins/specweave-github/lib/user-story-issue-builder.d.ts.map +1 -1
- package/dist/plugins/specweave-github/lib/user-story-issue-builder.js +20 -19
- package/dist/plugins/specweave-github/lib/user-story-issue-builder.js.map +1 -1
- package/dist/src/cli/cleanup-zombies.js +34 -18
- package/dist/src/cli/cleanup-zombies.js.map +1 -1
- package/dist/src/cli/commands/discrepancies.js +6 -6
- package/dist/src/cli/commands/discrepancies.js.map +1 -1
- package/dist/src/cli/commands/docs.js +1 -1
- package/dist/src/cli/commands/docs.js.map +1 -1
- package/dist/src/cli/commands/import-docs.d.ts +1 -1
- package/dist/src/cli/commands/import-docs.js +2 -2
- package/dist/src/cli/commands/import-docs.js.map +1 -1
- package/dist/src/cli/commands/import-external.d.ts +1 -1
- package/dist/src/cli/commands/import-external.js +1 -1
- package/dist/src/cli/commands/init-multiproject.d.ts +1 -1
- package/dist/src/cli/commands/init-multiproject.js +3 -3
- package/dist/src/cli/commands/init-multiproject.js.map +1 -1
- package/dist/src/cli/commands/init.js +2 -2
- package/dist/src/cli/commands/init.js.map +1 -1
- package/dist/src/cli/commands/living-docs.d.ts +1 -0
- package/dist/src/cli/commands/living-docs.d.ts.map +1 -1
- package/dist/src/cli/commands/living-docs.js +18 -2
- package/dist/src/cli/commands/living-docs.js.map +1 -1
- package/dist/src/cli/commands/migrate-to-multiproject.js +1 -1
- package/dist/src/cli/commands/migrate-to-multiproject.js.map +1 -1
- package/dist/src/cli/commands/migrate-to-profiles.js +1 -1
- package/dist/src/cli/commands/migrate-to-profiles.js.map +1 -1
- package/dist/src/cli/commands/next-command.d.ts +1 -1
- package/dist/src/cli/commands/next-command.js +9 -9
- package/dist/src/cli/commands/next-command.js.map +1 -1
- package/dist/src/cli/commands/notifications.js +3 -3
- package/dist/src/cli/commands/notifications.js.map +1 -1
- package/dist/src/cli/commands/plan/increment-detector.js +2 -2
- package/dist/src/cli/commands/plan/increment-detector.js.map +1 -1
- package/dist/src/cli/commands/plan/plan-orchestrator.d.ts +2 -2
- package/dist/src/cli/commands/plan/plan-orchestrator.js +2 -2
- package/dist/src/cli/commands/plan/plan-validator.js +2 -2
- package/dist/src/cli/commands/plan/plan-validator.js.map +1 -1
- package/dist/src/cli/commands/plan/types.d.ts +1 -1
- package/dist/src/cli/commands/plan/types.js +1 -1
- package/dist/src/cli/commands/plan-command.d.ts +3 -3
- package/dist/src/cli/commands/plan-command.js +12 -12
- package/dist/src/cli/commands/plan-command.js.map +1 -1
- package/dist/src/cli/commands/project.d.ts +77 -0
- package/dist/src/cli/commands/project.d.ts.map +1 -0
- package/dist/src/cli/commands/project.js +526 -0
- package/dist/src/cli/commands/project.js.map +1 -0
- package/dist/src/cli/commands/save.d.ts +49 -0
- package/dist/src/cli/commands/save.d.ts.map +1 -0
- package/dist/src/cli/commands/save.js +583 -0
- package/dist/src/cli/commands/save.js.map +1 -0
- package/dist/src/cli/commands/sync-spec-commits.js +15 -6
- package/dist/src/cli/commands/sync-spec-commits.js.map +1 -1
- package/dist/src/cli/commands/sync-spec-content.js +15 -6
- package/dist/src/cli/commands/sync-spec-content.js.map +1 -1
- package/dist/src/cli/helpers/init/ado-repo-cloning.js +2 -2
- package/dist/src/cli/helpers/init/ado-repo-cloning.js.map +1 -1
- package/dist/src/cli/helpers/init/bitbucket-repo-cloning.d.ts +1 -1
- package/dist/src/cli/helpers/init/bitbucket-repo-cloning.js +3 -3
- package/dist/src/cli/helpers/init/bitbucket-repo-cloning.js.map +1 -1
- package/dist/src/cli/helpers/init/brownfield-analysis.js +18 -18
- package/dist/src/cli/helpers/init/brownfield-analysis.js.map +1 -1
- package/dist/src/cli/helpers/init/directory-structure.d.ts.map +1 -1
- package/dist/src/cli/helpers/init/directory-structure.js +3 -0
- package/dist/src/cli/helpers/init/directory-structure.js.map +1 -1
- package/dist/src/cli/helpers/init/external-import.js +18 -18
- package/dist/src/cli/helpers/init/external-import.js.map +1 -1
- package/dist/src/cli/helpers/init/github-repo-cloning.d.ts +1 -1
- package/dist/src/cli/helpers/init/github-repo-cloning.js +3 -3
- package/dist/src/cli/helpers/init/github-repo-cloning.js.map +1 -1
- package/dist/src/cli/helpers/init/initial-increment-generator.js +12 -12
- package/dist/src/cli/helpers/init/living-docs-preflight.js +5 -5
- package/dist/src/cli/helpers/init/living-docs-preflight.js.map +1 -1
- package/dist/src/cli/helpers/init/next-steps.js +9 -9
- package/dist/src/cli/helpers/init/next-steps.js.map +1 -1
- package/dist/src/cli/helpers/init/plugin-installer.js +3 -3
- package/dist/src/cli/helpers/init/plugin-installer.js.map +1 -1
- package/dist/src/cli/helpers/init/translation-config.js +9 -9
- package/dist/src/cli/helpers/init/translation-config.js.map +1 -1
- package/dist/src/cli/helpers/init/types.d.ts +1 -1
- package/dist/src/cli/helpers/init/types.d.ts.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/ado.js +1 -1
- package/dist/src/cli/helpers/issue-tracker/ado.js.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/github.js +1 -1
- package/dist/src/cli/helpers/issue-tracker/github.js.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/index.js +2 -2
- package/dist/src/cli/helpers/issue-tracker/index.js.map +1 -1
- package/dist/src/cli/helpers/issue-tracker/jira.js +1 -1
- package/dist/src/cli/helpers/issue-tracker/jira.js.map +1 -1
- package/dist/src/cli/update-status-line.js +1 -1
- package/dist/src/cli/update-status-line.js.map +1 -1
- package/dist/src/cli/workers/brownfield-worker.js +1 -1
- package/dist/src/cli/workers/brownfield-worker.js.map +1 -1
- package/dist/src/cli/workers/import-worker.js +1 -1
- package/dist/src/cli/workers/import-worker.js.map +1 -1
- package/dist/src/core/background/brownfield-launcher.js +4 -4
- package/dist/src/core/background/brownfield-launcher.js.map +1 -1
- package/dist/src/core/background/index.d.ts +3 -3
- package/dist/src/core/background/index.js +3 -3
- package/dist/src/core/background/job-launcher.d.ts +1 -1
- package/dist/src/core/background/job-launcher.js +3 -3
- package/dist/src/core/background/job-launcher.js.map +1 -1
- package/dist/src/core/brownfield/importer.js +1 -1
- package/dist/src/core/brownfield/importer.js.map +1 -1
- package/dist/src/core/config/config-manager.d.ts +7 -1
- package/dist/src/core/config/config-manager.d.ts.map +1 -1
- package/dist/src/core/config/config-manager.js +24 -2
- package/dist/src/core/config/config-manager.js.map +1 -1
- package/dist/src/core/config/single-project-migrator.d.ts +110 -0
- package/dist/src/core/config/single-project-migrator.d.ts.map +1 -0
- package/dist/src/core/config/single-project-migrator.js +179 -0
- package/dist/src/core/config/single-project-migrator.js.map +1 -0
- package/dist/src/core/config/types.d.ts +3 -3
- package/dist/src/core/credentials/credentials-manager.d.ts +25 -4
- package/dist/src/core/credentials/credentials-manager.d.ts.map +1 -1
- package/dist/src/core/credentials/credentials-manager.js +54 -15
- package/dist/src/core/credentials/credentials-manager.js.map +1 -1
- package/dist/src/core/deduplication/command-deduplicator.d.ts +4 -4
- package/dist/src/core/deduplication/command-deduplicator.d.ts.map +1 -1
- package/dist/src/core/deduplication/command-deduplicator.js +3 -3
- package/dist/src/core/external-tools/external-items-counter.d.ts +4 -4
- package/dist/src/core/external-tools/external-items-counter.js +4 -4
- package/dist/src/core/external-tools/external-items-display.js +4 -4
- package/dist/src/core/external-tools/external-items-display.js.map +1 -1
- package/dist/src/core/increment/completion-validator.js +3 -3
- package/dist/src/core/increment/completion-validator.js.map +1 -1
- package/dist/src/core/increment/conflict-resolver.js +2 -2
- package/dist/src/core/increment/conflict-resolver.js.map +1 -1
- package/dist/src/core/increment/desync-detector.d.ts +1 -1
- package/dist/src/core/increment/desync-detector.js +3 -3
- package/dist/src/core/increment/desync-detector.js.map +1 -1
- package/dist/src/core/increment/discipline-checker.js +2 -2
- package/dist/src/core/increment/discipline-checker.js.map +1 -1
- package/dist/src/core/increment/increment-archiver.js +4 -4
- package/dist/src/core/increment/increment-archiver.js.map +1 -1
- package/dist/src/core/increment/increment-utils.d.ts +53 -2
- package/dist/src/core/increment/increment-utils.d.ts.map +1 -1
- package/dist/src/core/increment/increment-utils.js +78 -7
- package/dist/src/core/increment/increment-utils.js.map +1 -1
- package/dist/src/core/increment/metadata-manager.js +6 -6
- package/dist/src/core/increment/metadata-manager.js.map +1 -1
- package/dist/src/core/increment/metadata-validator.js +1 -1
- package/dist/src/core/increment/metadata-validator.js.map +1 -1
- package/dist/src/core/increment/recent-work-scanner.js +2 -2
- package/dist/src/core/increment/recent-work-scanner.js.map +1 -1
- package/dist/src/core/increment/spec-sync-manager.js +1 -1
- package/dist/src/core/increment/spec-sync-manager.js.map +1 -1
- package/dist/src/core/increment/status-auto-transition.d.ts +68 -1
- package/dist/src/core/increment/status-auto-transition.d.ts.map +1 -1
- package/dist/src/core/increment/status-auto-transition.js +141 -1
- package/dist/src/core/increment/status-auto-transition.js.map +1 -1
- package/dist/src/core/increment/status-change-sync-trigger.d.ts +1 -1
- package/dist/src/core/increment/status-change-sync-trigger.js +3 -3
- package/dist/src/core/increment/status-change-sync-trigger.js.map +1 -1
- package/dist/src/core/living-docs/cross-project-sync.d.ts +12 -0
- package/dist/src/core/living-docs/cross-project-sync.d.ts.map +1 -1
- package/dist/src/core/living-docs/cross-project-sync.js +33 -0
- package/dist/src/core/living-docs/cross-project-sync.js.map +1 -1
- package/dist/src/core/living-docs/feature-archiver.d.ts +3 -3
- package/dist/src/core/living-docs/feature-archiver.js +3 -3
- package/dist/src/core/living-docs/feature-consistency-validator.js +1 -1
- package/dist/src/core/living-docs/feature-consistency-validator.js.map +1 -1
- package/dist/src/core/living-docs/feature-id-manager.d.ts +5 -0
- package/dist/src/core/living-docs/feature-id-manager.d.ts.map +1 -1
- package/dist/src/core/living-docs/feature-id-manager.js +19 -1
- package/dist/src/core/living-docs/feature-id-manager.js.map +1 -1
- package/dist/src/core/living-docs/governance/standards-generator.js +1 -1
- package/dist/src/core/living-docs/governance/standards-generator.js.map +1 -1
- package/dist/src/core/living-docs/hierarchy-mapper.d.ts +5 -0
- package/dist/src/core/living-docs/hierarchy-mapper.d.ts.map +1 -1
- package/dist/src/core/living-docs/hierarchy-mapper.js +22 -2
- package/dist/src/core/living-docs/hierarchy-mapper.js.map +1 -1
- package/dist/src/core/living-docs/living-docs-sync.d.ts +1 -0
- package/dist/src/core/living-docs/living-docs-sync.d.ts.map +1 -1
- package/dist/src/core/living-docs/living-docs-sync.js +77 -8
- package/dist/src/core/living-docs/living-docs-sync.js.map +1 -1
- package/dist/src/core/living-docs/project-detector.d.ts +9 -0
- package/dist/src/core/living-docs/project-detector.d.ts.map +1 -1
- package/dist/src/core/living-docs/project-detector.js +38 -3
- package/dist/src/core/living-docs/project-detector.js.map +1 -1
- package/dist/src/core/living-docs/suggestions-generator.js +1 -1
- package/dist/src/core/living-docs/suggestions-generator.js.map +1 -1
- package/dist/src/core/notifications/command-integration.js +1 -1
- package/dist/src/core/notifications/command-integration.js.map +1 -1
- package/dist/src/core/project/adapters/ado-project-adapter.d.ts +73 -0
- package/dist/src/core/project/adapters/ado-project-adapter.d.ts.map +1 -0
- package/dist/src/core/project/adapters/ado-project-adapter.js +304 -0
- package/dist/src/core/project/adapters/ado-project-adapter.js.map +1 -0
- package/dist/src/core/project/adapters/github-project-adapter.d.ts +76 -0
- package/dist/src/core/project/adapters/github-project-adapter.d.ts.map +1 -0
- package/dist/src/core/project/adapters/github-project-adapter.js +315 -0
- package/dist/src/core/project/adapters/github-project-adapter.js.map +1 -0
- package/dist/src/core/project/adapters/jira-project-adapter.d.ts +69 -0
- package/dist/src/core/project/adapters/jira-project-adapter.d.ts.map +1 -0
- package/dist/src/core/project/adapters/jira-project-adapter.js +241 -0
- package/dist/src/core/project/adapters/jira-project-adapter.js.map +1 -0
- package/dist/src/core/project/project-event-bus.d.ts +72 -0
- package/dist/src/core/project/project-event-bus.d.ts.map +1 -0
- package/dist/src/core/project/project-event-bus.js +150 -0
- package/dist/src/core/project/project-event-bus.js.map +1 -0
- package/dist/src/core/project/project-manager.d.ts +0 -22
- package/dist/src/core/project/project-manager.d.ts.map +1 -1
- package/dist/src/core/project/project-manager.js +5 -275
- package/dist/src/core/project/project-manager.js.map +1 -1
- package/dist/src/core/project/project-registry.d.ts +93 -0
- package/dist/src/core/project/project-registry.d.ts.map +1 -0
- package/dist/src/core/project/project-registry.js +448 -0
- package/dist/src/core/project/project-registry.js.map +1 -0
- package/dist/src/core/project/project-resolution.d.ts +229 -0
- package/dist/src/core/project/project-resolution.d.ts.map +1 -0
- package/dist/src/core/project/project-resolution.js +633 -0
- package/dist/src/core/project/project-resolution.js.map +1 -0
- package/dist/src/core/project/types/project-types.d.ts +214 -0
- package/dist/src/core/project/types/project-types.d.ts.map +1 -0
- package/dist/src/core/project/types/project-types.js +9 -0
- package/dist/src/core/project/types/project-types.js.map +1 -0
- package/dist/src/core/repo-structure/setup-summary.js +2 -2
- package/dist/src/core/repo-structure/setup-summary.js.map +1 -1
- package/dist/src/core/specs/spec-identifier-detector.d.ts.map +1 -1
- package/dist/src/core/specs/spec-identifier-detector.js +8 -5
- package/dist/src/core/specs/spec-identifier-detector.js.map +1 -1
- package/dist/src/core/status-line/status-line-updater.js +1 -1
- package/dist/src/core/status-line/status-line-updater.js.map +1 -1
- package/dist/src/core/types/increment-metadata.d.ts +3 -3
- package/dist/src/core/types/increment-metadata.js +3 -3
- package/dist/src/core/types/increment-metadata.js.map +1 -1
- package/dist/src/core/types/sync-profile.d.ts +1 -0
- package/dist/src/core/types/sync-profile.d.ts.map +1 -1
- package/dist/src/core/types/sync-profile.js.map +1 -1
- package/dist/src/core/validators/ac-presence-validator.d.ts +4 -4
- package/dist/src/core/validators/ac-presence-validator.js +3 -3
- package/dist/src/core/validators/ac-presence-validator.js.map +1 -1
- package/dist/src/core/workflow/backlog-scanner.d.ts +5 -0
- package/dist/src/core/workflow/backlog-scanner.d.ts.map +1 -1
- package/dist/src/core/workflow/backlog-scanner.js +14 -2
- package/dist/src/core/workflow/backlog-scanner.js.map +1 -1
- package/dist/src/core/workflow/phase-detector.js +17 -17
- package/dist/src/core/workflow/phase-detector.js.map +1 -1
- package/dist/src/core/workflow/types.d.ts +1 -1
- package/dist/src/core/workflow/types.d.ts.map +1 -1
- package/dist/src/core/workflow/workflow-orchestrator.d.ts +1 -1
- package/dist/src/core/workflow/workflow-orchestrator.js +9 -9
- package/dist/src/core/workflow/workflow-orchestrator.js.map +1 -1
- package/dist/src/hooks/scheduler-startup.js +1 -1
- package/dist/src/hooks/scheduler-startup.js.map +1 -1
- package/dist/src/importers/item-converter.js +1 -1
- package/dist/src/importers/item-converter.js.map +1 -1
- package/dist/src/integrations/jira/jira-incremental-mapper.d.ts +17 -1
- package/dist/src/integrations/jira/jira-incremental-mapper.d.ts.map +1 -1
- package/dist/src/integrations/jira/jira-incremental-mapper.js +20 -12
- package/dist/src/integrations/jira/jira-incremental-mapper.js.map +1 -1
- package/dist/src/integrations/jira/jira-mapper.d.ts +17 -1
- package/dist/src/integrations/jira/jira-mapper.d.ts.map +1 -1
- package/dist/src/integrations/jira/jira-mapper.js +13 -5
- package/dist/src/integrations/jira/jira-mapper.js.map +1 -1
- package/dist/src/living-docs/enterprise-analyzer.js +1 -1
- package/dist/src/living-docs/enterprise-analyzer.js.map +1 -1
- package/dist/src/sync/ado-reconciler.d.ts +5 -0
- package/dist/src/sync/ado-reconciler.d.ts.map +1 -1
- package/dist/src/sync/ado-reconciler.js +16 -4
- package/dist/src/sync/ado-reconciler.js.map +1 -1
- package/dist/src/sync/jira-reconciler.d.ts +3 -0
- package/dist/src/sync/jira-reconciler.d.ts.map +1 -1
- package/dist/src/sync/jira-reconciler.js +12 -5
- package/dist/src/sync/jira-reconciler.js.map +1 -1
- package/dist/src/types/dashboard-cache.d.ts +4 -2
- package/dist/src/types/dashboard-cache.d.ts.map +1 -1
- package/dist/src/types/dashboard-cache.js +1 -1
- package/dist/src/types/dashboard-cache.js.map +1 -1
- package/dist/src/utils/ac-embedder.d.ts +1 -1
- package/dist/src/utils/docs-preview/docusaurus-setup.js +2 -2
- package/dist/src/utils/docs-preview/docusaurus-setup.js.map +1 -1
- package/dist/src/utils/docs-preview/sidebar-builder.js +1 -1
- package/dist/src/utils/env-multi-project-parser.d.ts +17 -0
- package/dist/src/utils/env-multi-project-parser.d.ts.map +1 -1
- package/dist/src/utils/env-multi-project-parser.js +26 -1
- package/dist/src/utils/env-multi-project-parser.js.map +1 -1
- package/dist/src/utils/external-tool-drift-detector.d.ts +2 -2
- package/dist/src/utils/external-tool-drift-detector.js +6 -6
- package/dist/src/utils/external-tool-drift-detector.js.map +1 -1
- package/dist/src/utils/notification-constants.js +2 -2
- package/dist/src/utils/notification-constants.js.map +1 -1
- package/dist/src/utils/notification-manager.d.ts +12 -3
- package/dist/src/utils/notification-manager.d.ts.map +1 -1
- package/dist/src/utils/notification-manager.js +51 -49
- package/dist/src/utils/notification-manager.js.map +1 -1
- package/dist/src/utils/platform-utils.d.ts +12 -3
- package/dist/src/utils/platform-utils.d.ts.map +1 -1
- package/dist/src/utils/platform-utils.js +35 -16
- package/dist/src/utils/platform-utils.js.map +1 -1
- package/dist/src/utils/plugin-validator.js +11 -11
- package/dist/src/utils/plugin-validator.js.map +1 -1
- package/dist/src/validators/ac-coverage-validator.d.ts +1 -1
- package/dist/src/validators/ac-coverage-validator.js +1 -1
- package/package.json +3 -1
- package/plugins/PLUGINS-INDEX.md +1 -2
- package/plugins/specweave/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave/COMMANDS.md +49 -49
- package/plugins/specweave/agents/pm/AGENT.md +18 -18
- package/plugins/specweave/agents/test-aware-planner/AGENT.md +7 -7
- package/plugins/specweave/agents/translator/AGENT.md +2 -2
- package/plugins/specweave/commands/{specweave-abandon.md → abandon.md} +20 -20
- package/plugins/specweave/commands/{specweave-analyze-standards.sh → analyze-standards.sh} +4 -4
- package/plugins/specweave/commands/{specweave-archive-features.md → archive-features.md} +7 -7
- package/plugins/specweave/commands/{specweave-archive.md → archive.md} +36 -36
- package/plugins/specweave/commands/{specweave-backlog.md → backlog.md} +24 -24
- package/plugins/specweave/commands/{specweave-check-hooks.md → check-hooks.md} +10 -10
- package/plugins/specweave/commands/{specweave-check-tests.md → check-tests.md} +14 -14
- package/plugins/specweave/commands/{specweave-costs.md → costs.md} +8 -8
- package/plugins/specweave/commands/{specweave-discrepancies.md → discrepancies.md} +15 -15
- package/plugins/specweave/commands/{specweave-discrepancy-to-increment.md → discrepancy-to-increment.md} +10 -10
- package/plugins/specweave/commands/{specweave-do.md → do.md} +37 -39
- package/plugins/specweave/commands/{specweave-done.md → done.md} +23 -23
- package/plugins/specweave/commands/{specweave-embed-acs.md → embed-acs.md} +21 -21
- package/plugins/specweave/commands/{specweave-external.md → external.md} +11 -11
- package/plugins/specweave/commands/{specweave-fix-duplicates.md → fix-duplicates.md} +16 -16
- package/plugins/specweave/commands/{specweave-import-docs.md → import-docs.md} +7 -7
- package/plugins/specweave/commands/{specweave-import-external.md → import-external.md} +9 -9
- package/plugins/specweave/commands/{specweave-increment.md → increment.md} +17 -17
- package/plugins/specweave/commands/{specweave-jobs.md → jobs.md} +28 -28
- package/plugins/specweave/commands/{specweave-judge-llm.md → judge-llm.md} +19 -19
- package/plugins/specweave/commands/{specweave-living-docs.md → living-docs.md} +72 -29
- package/plugins/specweave/commands/migrate-config.md +2 -2
- package/plugins/specweave/commands/{specweave-next.md → next.md} +20 -20
- package/plugins/specweave/commands/{specweave-notifications.md → notifications.md} +11 -11
- package/plugins/specweave/commands/{specweave-organize-docs.md → organize-docs.md} +9 -9
- package/plugins/specweave/commands/{specweave-pause.md → pause.md} +19 -19
- package/plugins/specweave/commands/{specweave-plan.md → plan.md} +19 -19
- package/plugins/specweave/commands/{specweave-progress.md → progress.md} +6 -6
- package/plugins/specweave/commands/{specweave-qa.md → qa.md} +15 -15
- package/plugins/specweave/commands/{specweave-reopen.md → reopen.md} +41 -41
- package/plugins/specweave/commands/{specweave-restore-feature.md → restore-feature.md} +6 -6
- package/plugins/specweave/commands/{specweave-restore.md → restore.md} +26 -26
- package/plugins/specweave/commands/{specweave-resume.md → resume.md} +33 -33
- package/plugins/specweave/commands/revert-wip-limit.md +4 -4
- package/plugins/specweave/commands/{specweave-save.md → save.md} +34 -34
- package/plugins/specweave/commands/{specweave-status.md → status.md} +29 -29
- package/plugins/specweave/commands/{specweave.md → sw.md} +28 -28
- package/plugins/specweave/commands/{specweave-sync-acs.md → sync-acs.md} +12 -12
- package/plugins/specweave/commands/sync-diagnostics.md +5 -5
- package/plugins/specweave/commands/{specweave-sync-docs.md → sync-docs.md} +7 -7
- package/plugins/specweave/commands/{specweave-sync-logs.md → sync-logs.md} +14 -14
- package/plugins/specweave/commands/{specweave-sync-monitor.md → sync-monitor.md} +5 -5
- package/plugins/specweave/commands/{specweave-sync-progress.md → sync-progress.md} +38 -38
- package/plugins/specweave/commands/{specweave-sync-specs.md → sync-specs.md} +17 -17
- package/plugins/specweave/commands/{specweave-sync-status.md → sync-status.md} +16 -16
- package/plugins/specweave/commands/{specweave-sync-tasks.md → sync-tasks.md} +13 -13
- package/plugins/specweave/commands/{specweave-tdd-cycle.md → tdd-cycle.md} +1 -1
- package/plugins/specweave/commands/{specweave-tdd-green.md → tdd-green.md} +1 -1
- package/plugins/specweave/commands/{specweave-tdd-red.md → tdd-red.md} +1 -1
- package/plugins/specweave/commands/{specweave-tdd-refactor.md → tdd-refactor.md} +1 -1
- package/plugins/specweave/commands/{specweave-translate.md → translate.md} +17 -17
- package/plugins/specweave/commands/{specweave-update-scope.md → update-scope.md} +8 -8
- package/plugins/specweave/commands/{specweave-update-status.md → update-status.md} +6 -6
- package/plugins/specweave/commands/{specweave-validate-features.md → validate-features.md} +8 -8
- package/plugins/specweave/commands/{specweave-validate.md → validate.md} +20 -20
- package/plugins/specweave/commands/{specweave-workflow.md → workflow.md} +40 -40
- package/plugins/specweave/hooks/README.md +5 -5
- package/plugins/specweave/hooks/config-env-separator.sh +99 -0
- package/plugins/specweave/hooks/github-metadata-guard.sh +73 -0
- package/plugins/specweave/hooks/hooks.json +32 -2
- package/plugins/specweave/hooks/post-first-increment.sh +2 -2
- package/plugins/specweave/hooks/post-increment-completion.sh +7 -7
- package/plugins/specweave/hooks/post-increment-planning.sh +11 -11
- package/plugins/specweave/hooks/post-increment-status-change.sh +1 -1
- package/plugins/specweave/hooks/post-metadata-change.sh +1 -1
- package/plugins/specweave/hooks/post-spec-update.sh +2 -2
- package/plugins/specweave/hooks/post-task-completion.sh +2 -2
- package/plugins/specweave/hooks/pre-increment-start.sh +7 -7
- package/plugins/specweave/hooks/project-folder-guard.sh +272 -0
- package/plugins/specweave/hooks/spec-project-validator.sh +68 -47
- package/plugins/specweave/hooks/user-prompt-submit.sh +27 -27
- package/plugins/specweave/hooks/v2/guards/completion-guard.sh +2 -2
- package/plugins/specweave/hooks/v2/guards/metadata-json-guard.sh +1 -1
- package/plugins/specweave/hooks/v2/handlers/github-sync-handler.sh +1 -1
- package/plugins/specweave/lib/hooks/consolidated-sync.js +35 -5
- package/plugins/specweave/lib/hooks/invoke-translator-skill.js +2 -2
- package/plugins/specweave/lib/hooks/invoke-translator-skill.ts +2 -2
- package/plugins/specweave/lib/hooks/prepare-reflection-context.js +1 -1
- package/plugins/specweave/lib/hooks/prepare-reflection-context.ts +1 -1
- package/plugins/specweave/lib/hooks/sync-living-docs.js +5 -5
- package/plugins/specweave/lib/hooks/translate-file.d.ts +1 -1
- package/plugins/specweave/lib/hooks/translate-file.js +2 -2
- package/plugins/specweave/lib/hooks/translate-file.ts +3 -3
- package/plugins/specweave/lib/hooks/us-completion-orchestrator.js +1 -1
- package/plugins/specweave/lib/hooks/us-completion-orchestrator.ts +2 -2
- package/plugins/specweave/lib/vendor/core/increment/metadata-manager.js +6 -6
- package/plugins/specweave/lib/vendor/core/increment/metadata-manager.js.map +1 -1
- package/plugins/specweave/lib/vendor/core/increment/status-auto-transition.d.ts +113 -0
- package/plugins/specweave/lib/vendor/core/increment/status-auto-transition.js +318 -0
- package/plugins/specweave/lib/vendor/core/increment/status-auto-transition.js.map +1 -0
- package/plugins/specweave/lib/vendor/core/types/increment-metadata.d.ts +3 -3
- package/plugins/specweave/lib/vendor/core/types/increment-metadata.js +3 -3
- package/plugins/specweave/lib/vendor/core/types/increment-metadata.js.map +1 -1
- package/plugins/specweave/scripts/README.md +9 -9
- package/plugins/specweave/scripts/cleanup-state.sh +1 -1
- package/plugins/specweave/scripts/jobs.js +2 -2
- package/plugins/specweave/scripts/progress.js +6 -6
- package/plugins/specweave/scripts/read-costs.sh +3 -3
- package/plugins/specweave/scripts/read-jobs.sh +8 -8
- package/plugins/specweave/scripts/read-progress.sh +17 -10
- package/plugins/specweave/scripts/read-status.sh +7 -7
- package/plugins/specweave/scripts/read-workflow.sh +18 -18
- package/plugins/specweave/scripts/rebuild-dashboard-cache.sh +6 -5
- package/plugins/specweave/scripts/session-watchdog.sh +4 -4
- package/plugins/specweave/scripts/status.js +7 -7
- package/plugins/specweave/scripts/update-dashboard-cache.sh +28 -10
- package/plugins/specweave/skills/SKILLS-INDEX.md +4 -4
- package/plugins/specweave/skills/archive-increments/SKILL.md +15 -15
- package/plugins/specweave/skills/brownfield-analyzer/SKILL.md +5 -5
- package/plugins/specweave/skills/code-standards-analyzer/SKILL.md +4 -4
- package/plugins/specweave/skills/context-loader/SKILL.md +1 -1
- package/plugins/specweave/skills/{specweave-detector → detector}/SKILL.md +5 -5
- package/plugins/specweave/skills/discrepancy-viewer.md +4 -4
- package/plugins/specweave/skills/external-sync-wizard/SKILL.md +24 -24
- package/plugins/specweave/skills/{specweave-framework → framework}/SKILL.md +33 -33
- package/plugins/specweave/skills/increment-planner/SKILL.md +25 -24
- package/plugins/specweave/skills/increment-planner/templates/spec-multi-project.md +6 -16
- package/plugins/specweave/skills/increment-planner/templates/spec-single-project.md +6 -12
- package/plugins/specweave/skills/increment-quality-judge-v2/SKILL.md +6 -6
- package/plugins/specweave/skills/increment-work-router/SKILL.md +23 -23
- package/plugins/specweave/skills/instant-status/SKILL.md +7 -7
- package/plugins/specweave/skills/plugin-validator/SKILL.md +9 -9
- package/plugins/specweave/skills/pm-closure-validation/SKILL.md +4 -4
- package/plugins/specweave/skills/progress-sync/SKILL.md +51 -51
- package/plugins/specweave/skills/project-kickstarter/SKILL.md +11 -11
- package/plugins/specweave/skills/role-orchestrator/README.md +1 -1
- package/plugins/specweave/skills/role-orchestrator/SKILL.md +4 -4
- package/plugins/specweave/skills/smart-reopen-detector/SKILL.md +17 -17
- package/plugins/specweave/skills/spec-generator/SKILL.md +6 -6
- package/plugins/specweave/skills/tdd-workflow/SKILL.md +21 -21
- package/plugins/specweave/skills/translator/SKILL.md +4 -4
- package/plugins/specweave/skills/umbrella-repo-detector/SKILL.md +5 -5
- package/plugins/specweave-ado/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-ado/agents/ado-manager/AGENT.md +4 -4
- package/plugins/specweave-ado/agents/ado-sync-judge/AGENT.md +4 -4
- package/plugins/specweave-ado/commands/cleanup-duplicates.md +9 -9
- package/plugins/specweave-ado/commands/clone.md +17 -17
- package/plugins/specweave-ado/commands/close.md +10 -10
- package/plugins/specweave-ado/commands/create.md +8 -8
- package/plugins/specweave-ado/commands/import-areas.md +15 -15
- package/plugins/specweave-ado/commands/import-projects.md +12 -12
- package/plugins/specweave-ado/commands/pull.md +25 -25
- package/plugins/specweave-ado/commands/push.md +20 -20
- package/plugins/specweave-ado/commands/reconcile.md +7 -7
- package/plugins/specweave-ado/commands/status.md +7 -7
- package/plugins/specweave-ado/commands/sync.md +17 -17
- package/plugins/specweave-ado/hooks/post-living-docs-update.sh +2 -2
- package/plugins/specweave-ado/lib/ado-project-detector.js +1 -1
- package/plugins/specweave-ado/lib/ado-project-detector.ts +1 -1
- package/plugins/specweave-ado/skills/{specweave-ado-mapper → ado-mapper}/SKILL.md +2 -2
- package/plugins/specweave-ado/skills/ado-multi-project/SKILL.md +6 -6
- package/plugins/specweave-ado/skills/ado-resource-validator/SKILL.md +5 -5
- package/plugins/specweave-ado/skills/ado-sync/SKILL.md +19 -19
- package/plugins/specweave-alternatives/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-alternatives/commands/alternatives-analyze.md +14 -14
- package/plugins/specweave-backend/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-confluent/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-cost-optimizer/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-cost-optimizer/commands/cost-analyze.md +1 -1
- package/plugins/specweave-cost-optimizer/commands/cost-optimize.md +1 -1
- package/plugins/specweave-diagrams/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-diagrams/commands/diagrams-generate.md +1 -1
- package/plugins/specweave-docs/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-docs/commands/build.md +8 -8
- package/plugins/specweave-docs/commands/generate.md +22 -22
- package/plugins/specweave-docs/commands/health.md +10 -10
- package/plugins/specweave-docs/commands/init.md +9 -9
- package/plugins/specweave-docs/commands/organize.md +10 -10
- package/plugins/specweave-docs/commands/validate.md +9 -9
- package/plugins/specweave-docs/commands/view.md +14 -14
- package/plugins/specweave-docs/skills/preview/SKILL.md +11 -11
- package/plugins/specweave-figma/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-figma/commands/figma-import.md +1 -1
- package/plugins/specweave-figma/commands/figma-to-react.md +1 -1
- package/plugins/specweave-figma/commands/figma-tokens.md +1 -1
- package/plugins/specweave-frontend/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-frontend/agents/frontend-architect/README.md +5 -5
- package/plugins/specweave-frontend/commands/component-generate.md +1 -1
- package/plugins/specweave-frontend/commands/design-system-init.md +1 -1
- package/plugins/specweave-frontend/commands/frontend-scaffold.md +1 -1
- package/plugins/specweave-frontend/commands/nextjs-setup.md +1 -1
- package/plugins/specweave-github/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-github/MULTI-PROJECT-SYNC-ARCHITECTURE.md +4 -4
- package/plugins/specweave-github/SYNC-ARCHITECTURE-FIX-SUMMARY.md +18 -18
- package/plugins/specweave-github/agents/github-manager/AGENT.md +8 -8
- package/plugins/specweave-github/commands/cleanup-duplicates.md +8 -8
- package/plugins/specweave-github/commands/close.md +25 -25
- package/plugins/specweave-github/commands/create.md +17 -17
- package/plugins/specweave-github/commands/pull.md +12 -12
- package/plugins/specweave-github/commands/push.md +12 -12
- package/plugins/specweave-github/commands/reconcile.md +7 -7
- package/plugins/specweave-github/commands/status.md +24 -24
- package/plugins/specweave-github/commands/sync.md +34 -34
- package/plugins/specweave-github/commands/update-user-story.md +6 -6
- package/plugins/specweave-github/hooks/README.md +8 -8
- package/plugins/specweave-github/hooks/post-task-completion.sh +2 -2
- package/plugins/specweave-github/lib/ThreeLayerSyncManager.js +12 -4
- package/plugins/specweave-github/lib/ThreeLayerSyncManager.ts +16 -4
- package/plugins/specweave-github/lib/completion-calculator.js +3 -1
- package/plugins/specweave-github/lib/completion-calculator.ts +6 -0
- package/plugins/specweave-github/lib/duplicate-detector.js +12 -6
- package/plugins/specweave-github/lib/duplicate-detector.ts +22 -6
- package/plugins/specweave-github/lib/github-board-resolver.js +7 -2
- package/plugins/specweave-github/lib/github-board-resolver.ts +13 -2
- package/plugins/specweave-github/lib/github-client-v2.js +29 -18
- package/plugins/specweave-github/lib/github-client-v2.ts +33 -18
- package/plugins/specweave-github/lib/github-feature-sync.js +41 -11
- package/plugins/specweave-github/lib/github-feature-sync.ts +52 -11
- package/plugins/specweave-github/lib/github-hierarchical-sync.js +6 -1
- package/plugins/specweave-github/lib/github-hierarchical-sync.ts +12 -1
- package/plugins/specweave-github/lib/github-increment-sync-cli.js +35 -17
- package/plugins/specweave-github/lib/github-increment-sync-cli.ts +44 -16
- package/plugins/specweave-github/lib/github-issue-updater.js +8 -3
- package/plugins/specweave-github/lib/github-issue-updater.ts +16 -3
- package/plugins/specweave-github/lib/github-spec-sync.js +14 -4
- package/plugins/specweave-github/lib/github-spec-sync.ts +19 -4
- package/plugins/specweave-github/lib/github-sync-bidirectional.js +8 -3
- package/plugins/specweave-github/lib/github-sync-bidirectional.ts +14 -3
- package/plugins/specweave-github/lib/github-sync-increment-changes.js +9 -4
- package/plugins/specweave-github/lib/github-sync-increment-changes.ts +15 -4
- package/plugins/specweave-github/lib/increment-issue-builder.js +23 -10
- package/plugins/specweave-github/lib/increment-issue-builder.ts +29 -11
- package/plugins/specweave-github/lib/user-story-content-builder.js +19 -16
- package/plugins/specweave-github/lib/user-story-content-builder.ts +24 -19
- package/plugins/specweave-github/lib/user-story-issue-builder.js +10 -13
- package/plugins/specweave-github/lib/user-story-issue-builder.ts +20 -19
- package/plugins/specweave-github/reference/github-specweave-mapping.md +1 -1
- package/plugins/specweave-github/skills/github-issue-standard/SKILL.md +3 -3
- package/plugins/specweave-github/skills/github-issue-tracker/SKILL.md +8 -8
- package/plugins/specweave-github/skills/github-sync/SKILL.md +14 -14
- package/plugins/specweave-infrastructure/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-infrastructure/commands/{specweave-infrastructure-monitor-setup.md → monitor-setup.md} +1 -1
- package/plugins/specweave-infrastructure/commands/{specweave-infrastructure-slo-implement.md → slo-implement.md} +1 -1
- package/plugins/specweave-jira/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-jira/agents/jira-sync-judge/AGENT.md +3 -3
- package/plugins/specweave-jira/commands/cleanup-duplicates.md +9 -9
- package/plugins/specweave-jira/commands/close.md +13 -13
- package/plugins/specweave-jira/commands/create.md +8 -8
- package/plugins/specweave-jira/commands/import-boards.md +15 -15
- package/plugins/specweave-jira/commands/import-projects-full.md +15 -15
- package/plugins/specweave-jira/commands/import-projects.md +10 -10
- package/plugins/specweave-jira/commands/pull.md +10 -10
- package/plugins/specweave-jira/commands/push.md +11 -11
- package/plugins/specweave-jira/commands/reconcile.md +7 -7
- package/plugins/specweave-jira/commands/status.md +16 -16
- package/plugins/specweave-jira/commands/sync.md +27 -27
- package/plugins/specweave-jira/skills/{specweave-jira-mapper → jira-mapper}/SKILL.md +2 -2
- package/plugins/specweave-jira/skills/jira-resource-validator/SKILL.md +4 -4
- package/plugins/specweave-jira/skills/jira-sync/SKILL.md +5 -5
- package/plugins/specweave-kafka/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-kafka/IMPLEMENTATION-COMPLETE.md +10 -10
- package/plugins/specweave-kafka/README.md +12 -12
- package/plugins/specweave-kafka/commands/deploy.md +5 -5
- package/plugins/specweave-kafka/commands/dev-env.md +2 -2
- package/plugins/specweave-kafka/commands/mcp-configure.md +3 -3
- package/plugins/specweave-kafka/commands/monitor-setup.md +3 -3
- package/plugins/specweave-kafka/skills/kafka-architecture/SKILL.md +4 -4
- package/plugins/specweave-kafka/skills/kafka-cli-tools/SKILL.md +5 -5
- package/plugins/specweave-kafka/skills/kafka-mcp-integration/SKILL.md +6 -6
- package/plugins/specweave-kafka-streams/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-kafka-streams/commands/topology.md +4 -4
- package/plugins/specweave-kubernetes/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-ml/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-ml/README.md +9 -9
- package/plugins/specweave-ml/commands/{specweave-ml-deploy.md → deploy.md} +1 -1
- package/plugins/specweave-ml/commands/{specweave-ml-evaluate.md → evaluate.md} +1 -1
- package/plugins/specweave-ml/commands/{specweave-ml-explain.md → explain.md} +1 -1
- package/plugins/specweave-ml/commands/{specweave-ml-pipeline.md → pipeline.md} +1 -1
- package/plugins/specweave-ml/skills/automl-optimizer/SKILL.md +1 -1
- package/plugins/specweave-ml/skills/data-visualizer/SKILL.md +1 -1
- package/plugins/specweave-ml/skills/experiment-tracker/SKILL.md +4 -4
- package/plugins/specweave-ml/skills/feature-engineer/SKILL.md +1 -1
- package/plugins/specweave-ml/skills/ml-deployment-helper/SKILL.md +2 -2
- package/plugins/specweave-ml/skills/ml-pipeline-orchestrator/SKILL.md +10 -10
- package/plugins/specweave-ml/skills/model-registry/SKILL.md +1 -1
- package/plugins/specweave-ml/skills/time-series-forecaster/SKILL.md +1 -1
- package/plugins/specweave-mobile/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-mobile/README.md +2 -2
- package/plugins/specweave-mobile/agents/mobile-architect/AGENT.md +2 -2
- package/plugins/specweave-mobile/skills/react-native-setup/SKILL.md +1 -1
- package/plugins/specweave-n8n/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-n8n/commands/workflow-template.md +4 -4
- package/plugins/specweave-payments/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-payments/commands/stripe-setup.md +1 -1
- package/plugins/specweave-payments/commands/subscription-flow.md +1 -1
- package/plugins/specweave-plugin-dev/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-plugin-dev/commands/plugin-create.md +1 -1
- package/plugins/specweave-plugin-dev/commands/plugin-publish.md +1 -1
- package/plugins/specweave-plugin-dev/commands/plugin-test.md +1 -1
- package/plugins/specweave-release/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-release/IMPLEMENTATION.md +14 -14
- package/plugins/specweave-release/README.md +33 -33
- package/plugins/specweave-release/agents/release-manager/AGENT.md +18 -18
- package/plugins/specweave-release/commands/{specweave-release-align.md → align.md} +19 -19
- package/plugins/specweave-release/commands/{specweave-release-init.md → init.md} +19 -19
- package/plugins/specweave-release/commands/{specweave-release-npm.md → npm.md} +14 -14
- package/plugins/specweave-release/commands/{specweave-release-platform.md → platform.md} +17 -17
- package/plugins/specweave-release/commands/{specweave-release-rc.md → rc.md} +37 -37
- package/plugins/specweave-release/hooks/post-task-completion.sh +1 -1
- package/plugins/specweave-release/skills/rc-manager/SKILL.md +12 -12
- package/plugins/specweave-release/skills/release-coordinator/SKILL.md +11 -11
- package/plugins/specweave-release/skills/release-strategy-advisor/SKILL.md +4 -4
- package/plugins/specweave-release/skills/version-aligner/SKILL.md +7 -7
- package/plugins/specweave-testing/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-testing/agents/qa-engineer/README.md +5 -5
- package/plugins/specweave-testing/commands/e2e-setup.md +1 -1
- package/plugins/specweave-testing/commands/test-coverage.md +1 -1
- package/plugins/specweave-testing/commands/test-generate.md +1 -1
- package/plugins/specweave-testing/commands/test-init.md +1 -1
- package/plugins/specweave-tooling/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-tooling/commands/{specweave-tooling-skill-create.md → skill-create.md} +1 -1
- package/plugins/specweave-tooling/commands/{specweave-tooling-skill-package.md → skill-package.md} +1 -1
- package/plugins/specweave-tooling/commands/{specweave-tooling-skill-validate.md → skill-validate.md} +1 -1
- package/plugins/specweave-ui/.claude-plugin/plugin.json +1 -1
- package/plugins/specweave-ui/commands/ui-automate.md +9 -9
- package/plugins/specweave-ui/commands/ui-inspect.md +6 -6
- package/src/templates/AGENTS.md.template +49 -49
- package/src/templates/CLAUDE.md.template +11 -11
- package/dist/src/cli/commands/switch-project.d.ts +0 -13
- package/dist/src/cli/commands/switch-project.d.ts.map +0 -1
- package/dist/src/cli/commands/switch-project.js +0 -78
- package/dist/src/cli/commands/switch-project.js.map +0 -1
- package/plugins/specweave/commands/specweave-init-multiproject.md +0 -146
- package/plugins/specweave-core/.claude-plugin/plugin.json +0 -21
- package/plugins/specweave-core/commands/architecture-review.md +0 -288
- package/plugins/specweave-core/commands/code-review.md +0 -213
- package/plugins/specweave-core/commands/refactor-plan.md +0 -249
- package/plugins/specweave-core/skills/code-quality/SKILL.md +0 -158
- package/plugins/specweave-core/skills/design-patterns/SKILL.md +0 -245
- package/plugins/specweave-core/skills/software-architecture/SKILL.md +0 -84
- /package/plugins/specweave/skills/{specweave-framework → framework}/test-cases/test-1-increment-naming.yaml +0 -0
- /package/plugins/specweave/skills/{specweave-framework → framework}/test-cases/test-2-source-of-truth.yaml +0 -0
- /package/plugins/specweave/skills/{specweave-framework → framework}/test-cases/test-3-increment-discipline.yaml +0 -0
- /package/plugins/specweave/skills/{specweave-framework → framework}/test-cases/test-4-file-placement.yaml +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Smart Save Command - Auto-sync, commit, and push with intelligent message generation
|
|
3
|
+
*
|
|
4
|
+
* Features:
|
|
5
|
+
* - Auto-generated commit messages from git changes
|
|
6
|
+
* - Smart sync (pre-flight check, auto-pull/rebase, auto-stash)
|
|
7
|
+
* - Multi-repo/umbrella support
|
|
8
|
+
* - Interactive and automatic modes
|
|
9
|
+
* - Conflict resolution guidance
|
|
10
|
+
*
|
|
11
|
+
* @module cli/commands/save
|
|
12
|
+
*/
|
|
13
|
+
import { Logger } from '../../utils/logger.js';
|
|
14
|
+
/**
|
|
15
|
+
* Save command options
|
|
16
|
+
*/
|
|
17
|
+
export interface SaveOptions {
|
|
18
|
+
/** Custom commit message */
|
|
19
|
+
message?: string;
|
|
20
|
+
/** Interactive mode - ask before each step */
|
|
21
|
+
interactive?: boolean;
|
|
22
|
+
/** Dry run - preview without executing */
|
|
23
|
+
dryRun?: boolean;
|
|
24
|
+
/** Sync strategy */
|
|
25
|
+
sync?: 'rebase' | 'merge' | 'none';
|
|
26
|
+
/** Skip auto-stash */
|
|
27
|
+
noStash?: boolean;
|
|
28
|
+
/** Only save specific repos (comma-separated) */
|
|
29
|
+
repos?: string;
|
|
30
|
+
/** Skip repos without remotes */
|
|
31
|
+
skipNoRemote?: boolean;
|
|
32
|
+
/** Include all repos (even outside umbrella config) */
|
|
33
|
+
all?: boolean;
|
|
34
|
+
/** Commit but don't push */
|
|
35
|
+
noPush?: boolean;
|
|
36
|
+
/** Force push (requires confirmation) */
|
|
37
|
+
force?: boolean;
|
|
38
|
+
/** Create new branch instead of force pushing */
|
|
39
|
+
branch?: string;
|
|
40
|
+
/** Logger instance */
|
|
41
|
+
logger?: Logger;
|
|
42
|
+
/** Project root path */
|
|
43
|
+
projectRoot?: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Execute save command
|
|
47
|
+
*/
|
|
48
|
+
export declare function executeSave(options?: SaveOptions): Promise<void>;
|
|
49
|
+
//# sourceMappingURL=save.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"save.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/save.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,OAAO,EAAE,MAAM,EAAiB,MAAM,uBAAuB,CAAC;AAI9D;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,0CAA0C;IAC1C,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,oBAAoB;IACpB,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IAEnC,sBAAsB;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,iCAAiC;IACjC,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,uDAAuD;IACvD,GAAG,CAAC,EAAE,OAAO,CAAC;IAEd,4BAA4B;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB,yCAAyC;IACzC,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,wBAAwB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAsCD;;GAEG;AACH,wBAAsB,WAAW,CAAC,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CA2L1E"}
|
|
@@ -0,0 +1,583 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Smart Save Command - Auto-sync, commit, and push with intelligent message generation
|
|
3
|
+
*
|
|
4
|
+
* Features:
|
|
5
|
+
* - Auto-generated commit messages from git changes
|
|
6
|
+
* - Smart sync (pre-flight check, auto-pull/rebase, auto-stash)
|
|
7
|
+
* - Multi-repo/umbrella support
|
|
8
|
+
* - Interactive and automatic modes
|
|
9
|
+
* - Conflict resolution guidance
|
|
10
|
+
*
|
|
11
|
+
* @module cli/commands/save
|
|
12
|
+
*/
|
|
13
|
+
import { execFileNoThrow } from '../../utils/execFileNoThrow.js';
|
|
14
|
+
import { ConfigManager } from '../../core/config/config-manager.js';
|
|
15
|
+
import { getCurrentBranch, isWorkingDirectoryClean } from '../../utils/git-utils.js';
|
|
16
|
+
import { consoleLogger } from '../../utils/logger.js';
|
|
17
|
+
import path from 'path';
|
|
18
|
+
import fs from 'fs/promises';
|
|
19
|
+
/**
|
|
20
|
+
* Execute save command
|
|
21
|
+
*/
|
|
22
|
+
export async function executeSave(options = {}) {
|
|
23
|
+
const logger = options.logger ?? consoleLogger;
|
|
24
|
+
const projectRoot = options.projectRoot ?? process.cwd();
|
|
25
|
+
const interactive = options.interactive ?? false;
|
|
26
|
+
const dryRun = options.dryRun ?? false;
|
|
27
|
+
const syncStrategy = options.sync ?? 'rebase';
|
|
28
|
+
const noStash = options.noStash ?? false;
|
|
29
|
+
const noPush = options.noPush ?? false;
|
|
30
|
+
const force = options.force ?? false;
|
|
31
|
+
try {
|
|
32
|
+
// Step 1: Detect repositories
|
|
33
|
+
logger.log('📡 Scanning for repositories...\n');
|
|
34
|
+
const repos = await detectRepositories(projectRoot, options, logger);
|
|
35
|
+
if (repos.length === 0) {
|
|
36
|
+
logger.log('❌ No repositories found');
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
logger.log(`Mode: ${repos.length === 1 ? 'Single repository' : `Umbrella (${repos.length} child repos)`}\n`);
|
|
40
|
+
if (dryRun) {
|
|
41
|
+
logger.log('🔍 DRY RUN MODE - No changes will be made\n');
|
|
42
|
+
}
|
|
43
|
+
// Step 2: Pre-flight check
|
|
44
|
+
logger.log('🔍 Pre-flight check...\n');
|
|
45
|
+
const syncStates = new Map();
|
|
46
|
+
for (const repo of repos) {
|
|
47
|
+
if (!repo.hasRemote) {
|
|
48
|
+
logger.log(`${repo.name}: ⚠️ No remote configured`);
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
const syncState = await checkSyncState(repo, logger);
|
|
52
|
+
syncStates.set(repo.id, syncState);
|
|
53
|
+
const stateEmoji = {
|
|
54
|
+
'up-to-date': '✓',
|
|
55
|
+
'ahead': '↑',
|
|
56
|
+
'behind': '↓',
|
|
57
|
+
'diverged': '⚠️',
|
|
58
|
+
'no-tracking': '?'
|
|
59
|
+
}[syncState.state];
|
|
60
|
+
logger.log(`${repo.name}: ${stateEmoji} ${syncState.state.toUpperCase()}`);
|
|
61
|
+
if (syncState.state === 'behind') {
|
|
62
|
+
logger.log(` Will pull ${syncState.behindBy} commit(s) before push`);
|
|
63
|
+
}
|
|
64
|
+
else if (syncState.state === 'diverged') {
|
|
65
|
+
logger.log(` Ahead: ${syncState.aheadBy}, Behind: ${syncState.behindBy}`);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
logger.log('');
|
|
69
|
+
// Step 3: Smart sync (auto-pull/rebase if needed)
|
|
70
|
+
if (syncStrategy !== 'none') {
|
|
71
|
+
const needsSync = Array.from(syncStates.values()).some(s => s.state === 'behind' || s.state === 'diverged');
|
|
72
|
+
if (needsSync) {
|
|
73
|
+
logger.log('🔄 Syncing repositories...\n');
|
|
74
|
+
for (const repo of repos) {
|
|
75
|
+
const syncState = syncStates.get(repo.id);
|
|
76
|
+
if (!syncState || (syncState.state !== 'behind' && syncState.state !== 'diverged')) {
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
await syncRepository(repo, syncState, syncStrategy, noStash, dryRun, logger);
|
|
80
|
+
}
|
|
81
|
+
logger.log('');
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
// Step 4: Generate/confirm commit messages
|
|
85
|
+
const messages = new Map();
|
|
86
|
+
if (options.message) {
|
|
87
|
+
// Use provided message for all repos
|
|
88
|
+
repos.forEach(repo => messages.set(repo.id, options.message));
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
// Auto-generate messages
|
|
92
|
+
logger.log('📊 Analyzing changes...\n');
|
|
93
|
+
for (const repo of repos) {
|
|
94
|
+
const changes = await analyzeChanges(repo, logger);
|
|
95
|
+
if (changes.length === 0) {
|
|
96
|
+
logger.log(`${repo.name}: ⏭️ No changes`);
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
const message = await generateCommitMessage(repo, changes, logger);
|
|
100
|
+
messages.set(repo.id, message);
|
|
101
|
+
logger.log(`${repo.name}:`);
|
|
102
|
+
logger.log(` 🤖 Auto: ${message}`);
|
|
103
|
+
}
|
|
104
|
+
logger.log('');
|
|
105
|
+
if (interactive && !dryRun) {
|
|
106
|
+
logger.log('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n');
|
|
107
|
+
logger.log('? Use per-repo messages or same for all?');
|
|
108
|
+
logger.log(' [1] Per-repo (auto-generated)');
|
|
109
|
+
logger.log(' [2] Same message (enter custom)');
|
|
110
|
+
logger.log(' [3] Edit each\n');
|
|
111
|
+
// For now, just use auto-generated
|
|
112
|
+
// TODO: Add actual prompting when interactive mode is used
|
|
113
|
+
logger.log('Using per-repo auto-generated messages\n');
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
// Step 5: Commit & Push
|
|
117
|
+
logger.log('💾 Saving changes...\n');
|
|
118
|
+
const results = {
|
|
119
|
+
saved: 0,
|
|
120
|
+
skipped: 0,
|
|
121
|
+
failed: 0,
|
|
122
|
+
synced: 0,
|
|
123
|
+
totalCommits: 0
|
|
124
|
+
};
|
|
125
|
+
for (const repo of repos) {
|
|
126
|
+
const message = messages.get(repo.id);
|
|
127
|
+
if (!message) {
|
|
128
|
+
logger.log(`${repo.name}: ⏭️ Skipped (no changes)`);
|
|
129
|
+
results.skipped++;
|
|
130
|
+
continue;
|
|
131
|
+
}
|
|
132
|
+
try {
|
|
133
|
+
await commitAndPush(repo, message, noPush, force, dryRun, logger);
|
|
134
|
+
results.saved++;
|
|
135
|
+
const syncState = syncStates.get(repo.id);
|
|
136
|
+
if (syncState && (syncState.state === 'behind' || syncState.state === 'diverged')) {
|
|
137
|
+
results.synced++;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
catch (error) {
|
|
141
|
+
logger.error(`${repo.name}: ❌ Failed - ${error.message}`);
|
|
142
|
+
results.failed++;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
// Summary
|
|
146
|
+
logger.log('');
|
|
147
|
+
logger.log('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n');
|
|
148
|
+
logger.log('✅ SUMMARY\n');
|
|
149
|
+
if (results.synced > 0) {
|
|
150
|
+
logger.log(` Synced: ${results.synced} repo(s)`);
|
|
151
|
+
}
|
|
152
|
+
logger.log(` Saved: ${results.saved}/${repos.length} repo(s)`);
|
|
153
|
+
if (results.skipped > 0) {
|
|
154
|
+
logger.log(` Skipped: ${results.skipped} (no changes)`);
|
|
155
|
+
}
|
|
156
|
+
if (results.failed > 0) {
|
|
157
|
+
logger.log(` Failed: ${results.failed}`);
|
|
158
|
+
}
|
|
159
|
+
logger.log('');
|
|
160
|
+
// Show commit messages
|
|
161
|
+
if (results.saved > 0) {
|
|
162
|
+
logger.log(' Commits:');
|
|
163
|
+
for (const repo of repos) {
|
|
164
|
+
const message = messages.get(repo.id);
|
|
165
|
+
if (message) {
|
|
166
|
+
logger.log(` ${repo.name}: ${message}`);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
catch (error) {
|
|
172
|
+
logger.error(`❌ Save failed: ${error.message}`);
|
|
173
|
+
throw error;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Detect all repositories (single or umbrella)
|
|
178
|
+
*/
|
|
179
|
+
async function detectRepositories(projectRoot, options, logger) {
|
|
180
|
+
const configManager = new ConfigManager(projectRoot, logger);
|
|
181
|
+
const config = await configManager.read();
|
|
182
|
+
const repos = [];
|
|
183
|
+
// Check if umbrella mode
|
|
184
|
+
if (config.umbrella?.enabled && config.umbrella?.childRepos?.length) {
|
|
185
|
+
logger.log(`Umbrella mode: ${config.umbrella.childRepos.length} child repos`);
|
|
186
|
+
for (const childRepo of config.umbrella.childRepos) {
|
|
187
|
+
const repoPath = path.resolve(projectRoot, childRepo.path);
|
|
188
|
+
// Use id as fallback for name if name property doesn't exist
|
|
189
|
+
const repoName = childRepo.name || childRepo.id;
|
|
190
|
+
const githubUrl = childRepo.githubUrl;
|
|
191
|
+
const repoInfo = await getRepoInfo(childRepo.id, repoName, repoPath, githubUrl, logger);
|
|
192
|
+
if (repoInfo) {
|
|
193
|
+
repos.push(repoInfo);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
// Single repo mode
|
|
199
|
+
const repoInfo = await getRepoInfo('main', path.basename(projectRoot), projectRoot, undefined, logger);
|
|
200
|
+
if (repoInfo) {
|
|
201
|
+
repos.push(repoInfo);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
// Filter by requested repos
|
|
205
|
+
if (options.repos) {
|
|
206
|
+
const requested = options.repos.split(',').map(r => r.trim());
|
|
207
|
+
return repos.filter(r => requested.includes(r.id) || requested.includes(r.name));
|
|
208
|
+
}
|
|
209
|
+
return repos;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Get repository information
|
|
213
|
+
*/
|
|
214
|
+
async function getRepoInfo(id, name, repoPath, githubUrl, logger) {
|
|
215
|
+
try {
|
|
216
|
+
// Check if directory exists
|
|
217
|
+
await fs.access(repoPath);
|
|
218
|
+
// Check if it's a git repo
|
|
219
|
+
const gitCheck = await execFileNoThrow('git', ['rev-parse', '--git-dir'], { cwd: repoPath });
|
|
220
|
+
if (gitCheck.exitCode !== 0) {
|
|
221
|
+
return null;
|
|
222
|
+
}
|
|
223
|
+
// Get branch
|
|
224
|
+
const branch = await getCurrentBranch(repoPath);
|
|
225
|
+
// Check if remote exists
|
|
226
|
+
const remoteCheck = await execFileNoThrow('git', ['remote', 'get-url', 'origin'], { cwd: repoPath });
|
|
227
|
+
const hasRemote = remoteCheck.exitCode === 0;
|
|
228
|
+
// Check if working directory is dirty
|
|
229
|
+
const isDirty = !(await isWorkingDirectoryClean(repoPath));
|
|
230
|
+
// Get status
|
|
231
|
+
const statusResult = await execFileNoThrow('git', ['status', '--porcelain'], { cwd: repoPath });
|
|
232
|
+
const status = statusResult.stdout.trim();
|
|
233
|
+
return {
|
|
234
|
+
id,
|
|
235
|
+
name,
|
|
236
|
+
path: path.relative(process.cwd(), repoPath),
|
|
237
|
+
absolutePath: repoPath,
|
|
238
|
+
githubUrl,
|
|
239
|
+
hasRemote,
|
|
240
|
+
branch,
|
|
241
|
+
isDirty,
|
|
242
|
+
status
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
catch (error) {
|
|
246
|
+
return null;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Check sync state with remote
|
|
251
|
+
*/
|
|
252
|
+
async function checkSyncState(repo, logger) {
|
|
253
|
+
try {
|
|
254
|
+
// Fetch without merge
|
|
255
|
+
await execFileNoThrow('git', ['fetch', 'origin'], { cwd: repo.absolutePath });
|
|
256
|
+
// Get refs
|
|
257
|
+
const localResult = await execFileNoThrow('git', ['rev-parse', 'HEAD'], { cwd: repo.absolutePath });
|
|
258
|
+
const local = localResult.stdout.trim();
|
|
259
|
+
const remoteResult = await execFileNoThrow('git', ['rev-parse', '@{u}'], { cwd: repo.absolutePath });
|
|
260
|
+
if (remoteResult.exitCode !== 0) {
|
|
261
|
+
return {
|
|
262
|
+
state: 'no-tracking',
|
|
263
|
+
local,
|
|
264
|
+
remote: '',
|
|
265
|
+
base: '',
|
|
266
|
+
aheadBy: 0,
|
|
267
|
+
behindBy: 0
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
const remote = remoteResult.stdout.trim();
|
|
271
|
+
const baseResult = await execFileNoThrow('git', ['merge-base', 'HEAD', '@{u}'], { cwd: repo.absolutePath });
|
|
272
|
+
const base = baseResult.stdout.trim();
|
|
273
|
+
// Count commits
|
|
274
|
+
const aheadResult = await execFileNoThrow('git', ['rev-list', '--count', `${remote}..HEAD`], { cwd: repo.absolutePath });
|
|
275
|
+
const aheadBy = parseInt(aheadResult.stdout.trim() || '0', 10);
|
|
276
|
+
const behindResult = await execFileNoThrow('git', ['rev-list', '--count', `HEAD..${remote}`], { cwd: repo.absolutePath });
|
|
277
|
+
const behindBy = parseInt(behindResult.stdout.trim() || '0', 10);
|
|
278
|
+
// Determine state
|
|
279
|
+
let state;
|
|
280
|
+
if (local === remote) {
|
|
281
|
+
state = 'up-to-date';
|
|
282
|
+
}
|
|
283
|
+
else if (local === base) {
|
|
284
|
+
state = 'behind';
|
|
285
|
+
}
|
|
286
|
+
else if (remote === base) {
|
|
287
|
+
state = 'ahead';
|
|
288
|
+
}
|
|
289
|
+
else {
|
|
290
|
+
state = 'diverged';
|
|
291
|
+
}
|
|
292
|
+
return {
|
|
293
|
+
state,
|
|
294
|
+
local,
|
|
295
|
+
remote,
|
|
296
|
+
base,
|
|
297
|
+
aheadBy,
|
|
298
|
+
behindBy
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
catch (error) {
|
|
302
|
+
throw new Error(`Failed to check sync state: ${error.message}`);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Sync repository with remote
|
|
307
|
+
*/
|
|
308
|
+
async function syncRepository(repo, syncState, strategy, noStash, dryRun, logger) {
|
|
309
|
+
logger.log(`${repo.name}:`);
|
|
310
|
+
try {
|
|
311
|
+
// Stash if dirty and not noStash
|
|
312
|
+
let stashed = false;
|
|
313
|
+
if (repo.isDirty && !noStash) {
|
|
314
|
+
logger.log(' 📦 Stashing uncommitted changes...');
|
|
315
|
+
if (!dryRun) {
|
|
316
|
+
const stashResult = await execFileNoThrow('git', ['stash', 'push', '-m', 'specweave-save-autostash'], { cwd: repo.absolutePath });
|
|
317
|
+
if (stashResult.exitCode !== 0) {
|
|
318
|
+
throw new Error(`Stash failed: ${stashResult.stderr}`);
|
|
319
|
+
}
|
|
320
|
+
stashed = true;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
// Pull with strategy
|
|
324
|
+
const pullArgs = strategy === 'rebase' ? ['pull', '--rebase', 'origin', repo.branch] : ['pull', 'origin', repo.branch];
|
|
325
|
+
logger.log(` 🔄 ${dryRun ? 'Would pull' : 'Pulling'}: git ${pullArgs.join(' ')}`);
|
|
326
|
+
if (!dryRun) {
|
|
327
|
+
const pullResult = await execFileNoThrow('git', pullArgs, { cwd: repo.absolutePath });
|
|
328
|
+
if (pullResult.exitCode !== 0) {
|
|
329
|
+
// Check if it's a conflict
|
|
330
|
+
if (pullResult.stderr.includes('CONFLICT') || pullResult.stderr.includes('conflict')) {
|
|
331
|
+
throw new Error('Merge conflict detected - please resolve manually');
|
|
332
|
+
}
|
|
333
|
+
throw new Error(`Pull failed: ${pullResult.stderr}`);
|
|
334
|
+
}
|
|
335
|
+
logger.log(` ✓ Synced (${syncState.behindBy} commit(s))`);
|
|
336
|
+
}
|
|
337
|
+
// Restore stash
|
|
338
|
+
if (stashed && !dryRun) {
|
|
339
|
+
logger.log(' 📦 Restoring stashed changes...');
|
|
340
|
+
const unstashResult = await execFileNoThrow('git', ['stash', 'pop'], { cwd: repo.absolutePath });
|
|
341
|
+
if (unstashResult.exitCode !== 0) {
|
|
342
|
+
throw new Error(`Unstash failed: ${unstashResult.stderr}`);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
logger.log('');
|
|
346
|
+
}
|
|
347
|
+
catch (error) {
|
|
348
|
+
logger.error(` ❌ Sync failed: ${error.message}`);
|
|
349
|
+
throw error;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Analyze git changes
|
|
354
|
+
*/
|
|
355
|
+
async function analyzeChanges(repo, logger) {
|
|
356
|
+
const statusResult = await execFileNoThrow('git', ['status', '--porcelain'], { cwd: repo.absolutePath });
|
|
357
|
+
if (statusResult.exitCode !== 0) {
|
|
358
|
+
return [];
|
|
359
|
+
}
|
|
360
|
+
const lines = statusResult.stdout.trim().split('\n').filter(l => l);
|
|
361
|
+
const changes = [];
|
|
362
|
+
for (const line of lines) {
|
|
363
|
+
if (line.length < 4)
|
|
364
|
+
continue;
|
|
365
|
+
const statusCode = line.substring(0, 2);
|
|
366
|
+
const filePath = line.substring(3);
|
|
367
|
+
let status;
|
|
368
|
+
if (statusCode.includes('??') || statusCode.includes('A')) {
|
|
369
|
+
status = 'new';
|
|
370
|
+
}
|
|
371
|
+
else if (statusCode.includes('M')) {
|
|
372
|
+
status = 'modified';
|
|
373
|
+
}
|
|
374
|
+
else if (statusCode.includes('D')) {
|
|
375
|
+
status = 'deleted';
|
|
376
|
+
}
|
|
377
|
+
else if (statusCode.includes('R')) {
|
|
378
|
+
status = 'renamed';
|
|
379
|
+
}
|
|
380
|
+
else {
|
|
381
|
+
status = 'modified';
|
|
382
|
+
}
|
|
383
|
+
const category = categorizeFile(filePath);
|
|
384
|
+
changes.push({
|
|
385
|
+
path: filePath,
|
|
386
|
+
status,
|
|
387
|
+
category
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
return changes;
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Categorize file by type
|
|
394
|
+
*/
|
|
395
|
+
function categorizeFile(filePath) {
|
|
396
|
+
if (filePath.match(/\.(md|txt|rst)$/i) || filePath.includes('docs/') || filePath.includes('README')) {
|
|
397
|
+
return 'docs';
|
|
398
|
+
}
|
|
399
|
+
if (filePath.match(/\.(test|spec)\.(ts|js|tsx|jsx)$/i) || filePath.includes('tests/') || filePath.includes('__tests__/')) {
|
|
400
|
+
return 'tests';
|
|
401
|
+
}
|
|
402
|
+
if (filePath.match(/\.(ts|js|tsx|jsx|py|go|rs|java|c|cpp|cs)$/i) && !filePath.includes('.test.') && !filePath.includes('.spec.')) {
|
|
403
|
+
return 'source';
|
|
404
|
+
}
|
|
405
|
+
if (filePath.match(/package(-lock)?\.json|yarn\.lock|.*\.config\.(ts|js)|tsconfig/i)) {
|
|
406
|
+
return 'config';
|
|
407
|
+
}
|
|
408
|
+
if (filePath.includes('.github/') || filePath.includes('.gitlab-ci') || filePath.includes('Jenkinsfile')) {
|
|
409
|
+
return 'ci';
|
|
410
|
+
}
|
|
411
|
+
if (filePath.includes('dist/') || filePath.includes('build/')) {
|
|
412
|
+
return 'build';
|
|
413
|
+
}
|
|
414
|
+
if (filePath.includes('.specweave/increments/')) {
|
|
415
|
+
return 'increment';
|
|
416
|
+
}
|
|
417
|
+
if (filePath.match(/\.(css|scss|less|sass)$/i)) {
|
|
418
|
+
return 'styles';
|
|
419
|
+
}
|
|
420
|
+
if (filePath.includes('scripts/') || filePath.includes('bin/')) {
|
|
421
|
+
return 'scripts';
|
|
422
|
+
}
|
|
423
|
+
return 'other';
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Generate commit message from changes
|
|
427
|
+
*/
|
|
428
|
+
async function generateCommitMessage(repo, changes, logger) {
|
|
429
|
+
// Count by category
|
|
430
|
+
const categoryCounts = new Map();
|
|
431
|
+
for (const change of changes) {
|
|
432
|
+
categoryCounts.set(change.category, (categoryCounts.get(change.category) || 0) + 1);
|
|
433
|
+
}
|
|
434
|
+
// Count by status
|
|
435
|
+
const statusCounts = new Map();
|
|
436
|
+
for (const change of changes) {
|
|
437
|
+
statusCounts.set(change.status, (statusCounts.get(change.status) || 0) + 1);
|
|
438
|
+
}
|
|
439
|
+
// Determine primary type
|
|
440
|
+
const sortedCategories = Array.from(categoryCounts.entries())
|
|
441
|
+
.sort((a, b) => b[1] - a[1]);
|
|
442
|
+
const primaryCategory = sortedCategories[0]?.[0] || 'other';
|
|
443
|
+
// Map category to commit type
|
|
444
|
+
const typeMap = {
|
|
445
|
+
docs: 'docs',
|
|
446
|
+
source: 'feat',
|
|
447
|
+
tests: 'test',
|
|
448
|
+
config: 'chore',
|
|
449
|
+
ci: 'ci',
|
|
450
|
+
build: 'build',
|
|
451
|
+
increment: 'feat',
|
|
452
|
+
styles: 'style',
|
|
453
|
+
scripts: 'chore',
|
|
454
|
+
other: 'chore'
|
|
455
|
+
};
|
|
456
|
+
const commitType = typeMap[primaryCategory] || 'chore';
|
|
457
|
+
// Determine action verb
|
|
458
|
+
const newCount = statusCounts.get('new') || 0;
|
|
459
|
+
const modifiedCount = statusCounts.get('modified') || 0;
|
|
460
|
+
const deletedCount = statusCounts.get('deleted') || 0;
|
|
461
|
+
let action;
|
|
462
|
+
if (deletedCount > newCount && deletedCount > modifiedCount) {
|
|
463
|
+
action = 'remove';
|
|
464
|
+
}
|
|
465
|
+
else if (newCount > modifiedCount) {
|
|
466
|
+
action = 'add';
|
|
467
|
+
}
|
|
468
|
+
else {
|
|
469
|
+
action = 'update';
|
|
470
|
+
}
|
|
471
|
+
// Derive scope from common path
|
|
472
|
+
const commonPath = findCommonPath(changes.map(c => c.path));
|
|
473
|
+
const scope = commonPath ? path.basename(path.dirname(commonPath)) : '';
|
|
474
|
+
// Check for active increment
|
|
475
|
+
let incrementContext = '';
|
|
476
|
+
const incrementFiles = changes.filter(c => c.category === 'increment');
|
|
477
|
+
if (incrementFiles.length > 0) {
|
|
478
|
+
// Try to extract increment name
|
|
479
|
+
const match = incrementFiles[0].path.match(/increments\/(\d{4}E?-[^/]+)/);
|
|
480
|
+
if (match) {
|
|
481
|
+
incrementContext = ` (${match[1]})`;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
// Generate description
|
|
485
|
+
let description;
|
|
486
|
+
if (changes.length === 1) {
|
|
487
|
+
const fileName = path.basename(changes[0].path, path.extname(changes[0].path));
|
|
488
|
+
description = `${action} ${fileName}`;
|
|
489
|
+
}
|
|
490
|
+
else if (primaryCategory === 'docs' && changes.length <= 5) {
|
|
491
|
+
description = `${action} documentation`;
|
|
492
|
+
}
|
|
493
|
+
else if (primaryCategory === 'tests') {
|
|
494
|
+
description = `${action} tests`;
|
|
495
|
+
}
|
|
496
|
+
else if (changes.length <= 5) {
|
|
497
|
+
description = `${action} ${primaryCategory} files`;
|
|
498
|
+
}
|
|
499
|
+
else {
|
|
500
|
+
description = `${action} ${primaryCategory}`;
|
|
501
|
+
}
|
|
502
|
+
// Build final message
|
|
503
|
+
const scopePart = scope ? `(${scope})` : '';
|
|
504
|
+
const message = `${commitType}${scopePart}: ${description}${incrementContext}`;
|
|
505
|
+
return message;
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* Find common path prefix
|
|
509
|
+
*/
|
|
510
|
+
function findCommonPath(paths) {
|
|
511
|
+
if (paths.length === 0)
|
|
512
|
+
return '';
|
|
513
|
+
if (paths.length === 1)
|
|
514
|
+
return paths[0];
|
|
515
|
+
const parts = paths.map(p => p.split('/'));
|
|
516
|
+
const minLength = Math.min(...parts.map(p => p.length));
|
|
517
|
+
let commonParts = [];
|
|
518
|
+
for (let i = 0; i < minLength; i++) {
|
|
519
|
+
const part = parts[0][i];
|
|
520
|
+
if (parts.every(p => p[i] === part)) {
|
|
521
|
+
commonParts.push(part);
|
|
522
|
+
}
|
|
523
|
+
else {
|
|
524
|
+
break;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
return commonParts.join('/');
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* Commit and push changes
|
|
531
|
+
*/
|
|
532
|
+
async function commitAndPush(repo, message, noPush, force, dryRun, logger) {
|
|
533
|
+
logger.log(`${repo.name}:`);
|
|
534
|
+
try {
|
|
535
|
+
// Add all changes
|
|
536
|
+
if (dryRun) {
|
|
537
|
+
logger.log(' Would: git add -A');
|
|
538
|
+
}
|
|
539
|
+
else {
|
|
540
|
+
const addResult = await execFileNoThrow('git', ['add', '-A'], { cwd: repo.absolutePath });
|
|
541
|
+
if (addResult.exitCode !== 0) {
|
|
542
|
+
throw new Error(`git add failed: ${addResult.stderr}`);
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
// Commit
|
|
546
|
+
if (dryRun) {
|
|
547
|
+
logger.log(` Would: git commit -m "${message}"`);
|
|
548
|
+
}
|
|
549
|
+
else {
|
|
550
|
+
const commitResult = await execFileNoThrow('git', ['commit', '-m', message], { cwd: repo.absolutePath });
|
|
551
|
+
if (commitResult.exitCode !== 0) {
|
|
552
|
+
// Check if nothing to commit
|
|
553
|
+
if (commitResult.stdout.includes('nothing to commit') || commitResult.stdout.includes('no changes')) {
|
|
554
|
+
logger.log(' ⏭️ No changes to commit');
|
|
555
|
+
return;
|
|
556
|
+
}
|
|
557
|
+
throw new Error(`git commit failed: ${commitResult.stderr}`);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
// Push
|
|
561
|
+
if (!noPush) {
|
|
562
|
+
const pushArgs = force ? ['push', '--force', 'origin', repo.branch] : ['push', 'origin', repo.branch];
|
|
563
|
+
if (dryRun) {
|
|
564
|
+
logger.log(` Would: git ${pushArgs.join(' ')}`);
|
|
565
|
+
}
|
|
566
|
+
else {
|
|
567
|
+
const pushResult = await execFileNoThrow('git', pushArgs, { cwd: repo.absolutePath });
|
|
568
|
+
if (pushResult.exitCode !== 0) {
|
|
569
|
+
throw new Error(`git push failed: ${pushResult.stderr}`);
|
|
570
|
+
}
|
|
571
|
+
logger.log(' ✓ Done!');
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
else {
|
|
575
|
+
logger.log(' ✓ Committed (not pushed)');
|
|
576
|
+
}
|
|
577
|
+
logger.log('');
|
|
578
|
+
}
|
|
579
|
+
catch (error) {
|
|
580
|
+
throw error;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
//# sourceMappingURL=save.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"save.js","sourceRoot":"","sources":["../../../../src/cli/commands/save.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAoB,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACvG,OAAO,EAAU,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,aAAa,CAAC;AAkF7B;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,UAAuB,EAAE;IACzD,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,aAAa,CAAC;IAC/C,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,IAAI,OAAO,CAA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