specweave 0.28.68 → 0.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +3 -2
- package/README.md +19 -2
- package/dist/src/cli/commands/discrepancies.d.ts +89 -0
- package/dist/src/cli/commands/discrepancies.d.ts.map +1 -0
- package/dist/src/cli/commands/discrepancies.js +385 -0
- package/dist/src/cli/commands/discrepancies.js.map +1 -0
- package/dist/src/cli/commands/notifications.d.ts +70 -0
- package/dist/src/cli/commands/notifications.d.ts.map +1 -0
- package/dist/src/cli/commands/notifications.js +236 -0
- package/dist/src/cli/commands/notifications.js.map +1 -0
- package/dist/src/cli/commands/sync-logs.d.ts +54 -0
- package/dist/src/cli/commands/sync-logs.d.ts.map +1 -0
- package/dist/src/cli/commands/sync-logs.js +240 -0
- package/dist/src/cli/commands/sync-logs.js.map +1 -0
- package/dist/src/cli/commands/sync-monitor.d.ts +42 -0
- package/dist/src/cli/commands/sync-monitor.d.ts.map +1 -0
- package/dist/src/cli/commands/sync-monitor.js +191 -0
- package/dist/src/cli/commands/sync-monitor.js.map +1 -0
- package/dist/src/cli/helpers/init/brownfield-analysis.d.ts +45 -0
- package/dist/src/cli/helpers/init/brownfield-analysis.d.ts.map +1 -0
- package/dist/src/cli/helpers/init/brownfield-analysis.js +431 -0
- package/dist/src/cli/helpers/init/brownfield-analysis.js.map +1 -0
- package/dist/src/cli/helpers/init/index.d.ts +1 -0
- package/dist/src/cli/helpers/init/index.d.ts.map +1 -1
- package/dist/src/cli/helpers/init/index.js +2 -0
- package/dist/src/cli/helpers/init/index.js.map +1 -1
- package/dist/src/cli/workers/brownfield-worker.d.ts +66 -0
- package/dist/src/cli/workers/brownfield-worker.d.ts.map +1 -0
- package/dist/src/cli/workers/brownfield-worker.js +417 -0
- package/dist/src/cli/workers/brownfield-worker.js.map +1 -0
- package/dist/src/core/background/brownfield-launcher.d.ts +86 -0
- package/dist/src/core/background/brownfield-launcher.d.ts.map +1 -0
- package/dist/src/core/background/brownfield-launcher.js +295 -0
- package/dist/src/core/background/brownfield-launcher.js.map +1 -0
- package/dist/src/core/background/index.d.ts +2 -0
- package/dist/src/core/background/index.d.ts.map +1 -1
- package/dist/src/core/background/index.js +2 -0
- package/dist/src/core/background/index.js.map +1 -1
- package/dist/src/core/background/types.d.ts +23 -2
- package/dist/src/core/background/types.d.ts.map +1 -1
- package/dist/src/core/config/index.d.ts +1 -0
- package/dist/src/core/config/index.d.ts.map +1 -1
- package/dist/src/core/config/index.js +1 -0
- package/dist/src/core/config/index.js.map +1 -1
- package/dist/src/core/config/types.d.ts +6 -0
- package/dist/src/core/config/types.d.ts.map +1 -1
- package/dist/src/core/config/types.js.map +1 -1
- package/dist/src/core/dashboard/dashboard-data.d.ts +156 -0
- package/dist/src/core/dashboard/dashboard-data.d.ts.map +1 -0
- package/dist/src/core/dashboard/dashboard-data.js +191 -0
- package/dist/src/core/dashboard/dashboard-data.js.map +1 -0
- package/dist/src/core/dashboard/index.d.ts +9 -0
- package/dist/src/core/dashboard/index.d.ts.map +1 -0
- package/dist/src/core/dashboard/index.js +9 -0
- package/dist/src/core/dashboard/index.js.map +1 -0
- package/dist/src/core/discrepancy/analyzers/api-route-analyzer.d.ts +77 -0
- package/dist/src/core/discrepancy/analyzers/api-route-analyzer.d.ts.map +1 -0
- package/dist/src/core/discrepancy/analyzers/api-route-analyzer.js +286 -0
- package/dist/src/core/discrepancy/analyzers/api-route-analyzer.js.map +1 -0
- package/dist/src/core/discrepancy/analyzers/index.d.ts +8 -0
- package/dist/src/core/discrepancy/analyzers/index.d.ts.map +1 -0
- package/dist/src/core/discrepancy/analyzers/index.js +8 -0
- package/dist/src/core/discrepancy/analyzers/index.js.map +1 -0
- package/dist/src/core/discrepancy/analyzers/typescript-analyzer.d.ts +96 -0
- package/dist/src/core/discrepancy/analyzers/typescript-analyzer.d.ts.map +1 -0
- package/dist/src/core/discrepancy/analyzers/typescript-analyzer.js +247 -0
- package/dist/src/core/discrepancy/analyzers/typescript-analyzer.js.map +1 -0
- package/dist/src/core/discrepancy/brownfield-manager.d.ts +88 -0
- package/dist/src/core/discrepancy/brownfield-manager.d.ts.map +1 -0
- package/dist/src/core/discrepancy/brownfield-manager.js +520 -0
- package/dist/src/core/discrepancy/brownfield-manager.js.map +1 -0
- package/dist/src/core/discrepancy/brownfield-types.d.ts +174 -0
- package/dist/src/core/discrepancy/brownfield-types.d.ts.map +1 -0
- package/dist/src/core/discrepancy/brownfield-types.js +11 -0
- package/dist/src/core/discrepancy/brownfield-types.js.map +1 -0
- package/dist/src/core/discrepancy/detector.d.ts +92 -0
- package/dist/src/core/discrepancy/detector.d.ts.map +1 -0
- package/dist/src/core/discrepancy/detector.js +346 -0
- package/dist/src/core/discrepancy/detector.js.map +1 -0
- package/dist/src/core/discrepancy/increment-generator.d.ts +51 -0
- package/dist/src/core/discrepancy/increment-generator.d.ts.map +1 -0
- package/dist/src/core/discrepancy/increment-generator.js +234 -0
- package/dist/src/core/discrepancy/increment-generator.js.map +1 -0
- package/dist/src/core/discrepancy/index.d.ts +18 -0
- package/dist/src/core/discrepancy/index.d.ts.map +1 -0
- package/dist/src/core/discrepancy/index.js +24 -0
- package/dist/src/core/discrepancy/index.js.map +1 -0
- package/dist/src/core/discrepancy/severity-classifier.d.ts +81 -0
- package/dist/src/core/discrepancy/severity-classifier.d.ts.map +1 -0
- package/dist/src/core/discrepancy/severity-classifier.js +289 -0
- package/dist/src/core/discrepancy/severity-classifier.js.map +1 -0
- package/dist/src/core/discrepancy/spec-parser.d.ts +74 -0
- package/dist/src/core/discrepancy/spec-parser.d.ts.map +1 -0
- package/dist/src/core/discrepancy/spec-parser.js +213 -0
- package/dist/src/core/discrepancy/spec-parser.js.map +1 -0
- package/dist/src/core/discrepancy/update-recommender.d.ts +77 -0
- package/dist/src/core/discrepancy/update-recommender.d.ts.map +1 -0
- package/dist/src/core/discrepancy/update-recommender.js +323 -0
- package/dist/src/core/discrepancy/update-recommender.js.map +1 -0
- package/dist/src/core/living-docs/living-docs-sync.d.ts +13 -16
- package/dist/src/core/living-docs/living-docs-sync.d.ts.map +1 -1
- package/dist/src/core/living-docs/living-docs-sync.js +31 -112
- package/dist/src/core/living-docs/living-docs-sync.js.map +1 -1
- package/dist/src/core/logs/index.d.ts +10 -0
- package/dist/src/core/logs/index.d.ts.map +1 -0
- package/dist/src/core/logs/index.js +10 -0
- package/dist/src/core/logs/index.js.map +1 -0
- package/dist/src/core/logs/log-aggregator.d.ts +130 -0
- package/dist/src/core/logs/log-aggregator.d.ts.map +1 -0
- package/dist/src/core/logs/log-aggregator.js +206 -0
- package/dist/src/core/logs/log-aggregator.js.map +1 -0
- package/dist/src/core/logs/log-exporter.d.ts +81 -0
- package/dist/src/core/logs/log-exporter.d.ts.map +1 -0
- package/dist/src/core/logs/log-exporter.js +141 -0
- package/dist/src/core/logs/log-exporter.js.map +1 -0
- package/dist/src/core/notifications/command-integration.d.ts +82 -0
- package/dist/src/core/notifications/command-integration.d.ts.map +1 -0
- package/dist/src/core/notifications/command-integration.js +80 -0
- package/dist/src/core/notifications/command-integration.js.map +1 -0
- package/dist/src/core/notifications/index.d.ts +12 -0
- package/dist/src/core/notifications/index.d.ts.map +1 -0
- package/dist/src/core/notifications/index.js +12 -0
- package/dist/src/core/notifications/index.js.map +1 -0
- package/dist/src/core/notifications/notification-display.d.ts +70 -0
- package/dist/src/core/notifications/notification-display.d.ts.map +1 -0
- package/dist/src/core/notifications/notification-display.js +177 -0
- package/dist/src/core/notifications/notification-display.js.map +1 -0
- package/dist/src/core/notifications/notification-manager.d.ts +126 -0
- package/dist/src/core/notifications/notification-manager.d.ts.map +1 -0
- package/dist/src/core/notifications/notification-manager.js +287 -0
- package/dist/src/core/notifications/notification-manager.js.map +1 -0
- package/dist/src/core/notifications/notification-types.d.ts +159 -0
- package/dist/src/core/notifications/notification-types.d.ts.map +1 -0
- package/dist/src/core/notifications/notification-types.js +93 -0
- package/dist/src/core/notifications/notification-types.js.map +1 -0
- package/dist/src/core/scheduler/index.d.ts +11 -0
- package/dist/src/core/scheduler/index.d.ts.map +1 -0
- package/dist/src/core/scheduler/index.js +11 -0
- package/dist/src/core/scheduler/index.js.map +1 -0
- package/dist/src/core/scheduler/job-scheduler.d.ts +179 -0
- package/dist/src/core/scheduler/job-scheduler.d.ts.map +1 -0
- package/dist/src/core/scheduler/job-scheduler.js +282 -0
- package/dist/src/core/scheduler/job-scheduler.js.map +1 -0
- package/dist/src/core/scheduler/schedule-persistence.d.ts +83 -0
- package/dist/src/core/scheduler/schedule-persistence.d.ts.map +1 -0
- package/dist/src/core/scheduler/schedule-persistence.js +180 -0
- package/dist/src/core/scheduler/schedule-persistence.js.map +1 -0
- package/dist/src/core/scheduler/scheduled-job.d.ts +188 -0
- package/dist/src/core/scheduler/scheduled-job.d.ts.map +1 -0
- package/dist/src/core/scheduler/scheduled-job.js +182 -0
- package/dist/src/core/scheduler/scheduled-job.js.map +1 -0
- package/dist/src/core/sync/permission-enforcer.d.ts +206 -0
- package/dist/src/core/sync/permission-enforcer.d.ts.map +1 -0
- package/dist/src/core/sync/permission-enforcer.js +268 -0
- package/dist/src/core/sync/permission-enforcer.js.map +1 -0
- package/dist/src/core/sync/sync-audit-logger.d.ts +217 -0
- package/dist/src/core/sync/sync-audit-logger.d.ts.map +1 -0
- package/dist/src/core/sync/sync-audit-logger.js +327 -0
- package/dist/src/core/sync/sync-audit-logger.js.map +1 -0
- package/dist/src/core/sync/sync-interceptor.d.ts +190 -0
- package/dist/src/core/sync/sync-interceptor.d.ts.map +1 -0
- package/dist/src/core/sync/sync-interceptor.js +224 -0
- package/dist/src/core/sync/sync-interceptor.js.map +1 -0
- package/dist/src/core/types/increment-metadata.d.ts +5 -2
- package/dist/src/core/types/increment-metadata.d.ts.map +1 -1
- package/dist/src/core/types/sync-config.d.ts +267 -0
- package/dist/src/core/types/sync-config.d.ts.map +1 -0
- package/dist/src/core/types/sync-config.js +304 -0
- package/dist/src/core/types/sync-config.js.map +1 -0
- package/dist/src/hooks/index.d.ts +11 -0
- package/dist/src/hooks/index.d.ts.map +1 -0
- package/dist/src/hooks/index.js +11 -0
- package/dist/src/hooks/index.js.map +1 -0
- package/dist/src/hooks/platform.d.ts +125 -0
- package/dist/src/hooks/platform.d.ts.map +1 -0
- package/dist/src/hooks/platform.js +325 -0
- package/dist/src/hooks/platform.js.map +1 -0
- package/dist/src/hooks/processor.d.ts +20 -0
- package/dist/src/hooks/processor.d.ts.map +1 -0
- package/dist/src/hooks/processor.js +317 -0
- package/dist/src/hooks/processor.js.map +1 -0
- package/dist/src/hooks/scheduler-startup.d.ts +19 -0
- package/dist/src/hooks/scheduler-startup.d.ts.map +1 -0
- package/dist/src/hooks/scheduler-startup.js +92 -0
- package/dist/src/hooks/scheduler-startup.js.map +1 -0
- package/dist/src/hooks/session-start.d.ts +16 -0
- package/dist/src/hooks/session-start.d.ts.map +1 -0
- package/dist/src/hooks/session-start.js +92 -0
- package/dist/src/hooks/session-start.js.map +1 -0
- package/dist/src/importers/duplicate-detector.d.ts +13 -2
- package/dist/src/importers/duplicate-detector.d.ts.map +1 -1
- package/dist/src/importers/duplicate-detector.js +21 -2
- package/dist/src/importers/duplicate-detector.js.map +1 -1
- package/dist/src/importers/item-converter.d.ts +41 -2
- package/dist/src/importers/item-converter.d.ts.map +1 -1
- package/dist/src/importers/item-converter.js +225 -38
- package/dist/src/importers/item-converter.js.map +1 -1
- package/dist/src/living-docs/fs-id-allocator.d.ts +7 -0
- package/dist/src/living-docs/fs-id-allocator.d.ts.map +1 -1
- package/dist/src/living-docs/fs-id-allocator.js +30 -4
- package/dist/src/living-docs/fs-id-allocator.js.map +1 -1
- package/dist/src/sync/ado-sync-wrapper.d.ts +137 -0
- package/dist/src/sync/ado-sync-wrapper.d.ts.map +1 -0
- package/dist/src/sync/ado-sync-wrapper.js +148 -0
- package/dist/src/sync/ado-sync-wrapper.js.map +1 -0
- package/dist/src/sync/github-sync-wrapper.d.ts +195 -0
- package/dist/src/sync/github-sync-wrapper.d.ts.map +1 -0
- package/dist/src/sync/github-sync-wrapper.js +220 -0
- package/dist/src/sync/github-sync-wrapper.js.map +1 -0
- package/dist/src/sync/jira-sync-wrapper.d.ts +155 -0
- package/dist/src/sync/jira-sync-wrapper.d.ts.map +1 -0
- package/dist/src/sync/jira-sync-wrapper.js +175 -0
- package/dist/src/sync/jira-sync-wrapper.js.map +1 -0
- package/dist/src/utils/feature-id-derivation.d.ts +58 -0
- package/dist/src/utils/feature-id-derivation.d.ts.map +1 -0
- package/dist/src/utils/feature-id-derivation.js +77 -0
- package/dist/src/utils/feature-id-derivation.js.map +1 -0
- package/package.json +3 -1
- package/plugins/specweave/commands/specweave-discrepancies.md +141 -0
- package/plugins/specweave/commands/specweave-discrepancy-to-increment.md +160 -0
- package/plugins/specweave/commands/specweave-jobs.md +45 -2
- package/plugins/specweave/commands/specweave-notifications.md +92 -0
- package/plugins/specweave/commands/specweave-sync-logs.md +131 -0
- package/plugins/specweave/commands/specweave-sync-monitor.md +57 -0
- package/plugins/specweave/hooks/hooks.json +3 -3
- package/plugins/specweave/hooks/lib/scheduler-startup.sh +72 -0
- package/plugins/specweave/hooks/universal/dispatcher.mjs +246 -0
- package/plugins/specweave/hooks/universal/session-start.cmd +16 -0
- package/plugins/specweave/hooks/universal/session-start.ps1 +16 -0
- package/plugins/specweave/hooks/v2/dispatchers/session-start.sh +14 -5
- package/plugins/specweave/lib/vendor/core/types/increment-metadata.d.ts +5 -2
- package/plugins/specweave/skills/discrepancy-viewer.md +154 -0
- package/plugins/specweave-github/hooks/.specweave/logs/hooks-debug.log +46 -0
- package/plugins/specweave-release/hooks/.specweave/logs/dora-tracking.log +69 -0
- package/dist/plugins/specweave-github/lib/enhanced-github-sync.d.ts +0 -26
- package/dist/plugins/specweave-github/lib/enhanced-github-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-github/lib/enhanced-github-sync.js +0 -249
- package/dist/plugins/specweave-github/lib/enhanced-github-sync.js.map +0 -1
- package/dist/plugins/specweave-jira/lib/enhanced-jira-sync.d.ts +0 -28
- package/dist/plugins/specweave-jira/lib/enhanced-jira-sync.d.ts.map +0 -1
- package/dist/plugins/specweave-jira/lib/enhanced-jira-sync.js +0 -156
- package/dist/plugins/specweave-jira/lib/enhanced-jira-sync.js.map +0 -1
- package/dist/src/core/sync/bidirectional-engine.d.ts +0 -119
- package/dist/src/core/sync/bidirectional-engine.d.ts.map +0 -1
- package/dist/src/core/sync/bidirectional-engine.js +0 -359
- package/dist/src/core/sync/bidirectional-engine.js.map +0 -1
- package/dist/src/core/sync/conflict-resolver.d.ts +0 -66
- package/dist/src/core/sync/conflict-resolver.d.ts.map +0 -1
- package/dist/src/core/sync/conflict-resolver.js +0 -108
- package/dist/src/core/sync/conflict-resolver.js.map +0 -1
- package/dist/src/core/sync/enhanced-content-builder.d.ts +0 -55
- package/dist/src/core/sync/enhanced-content-builder.d.ts.map +0 -1
- package/dist/src/core/sync/enhanced-content-builder.js +0 -203
- package/dist/src/core/sync/enhanced-content-builder.js.map +0 -1
- package/dist/src/core/sync/folder-mapper.d.ts +0 -71
- package/dist/src/core/sync/folder-mapper.d.ts.map +0 -1
- package/dist/src/core/sync/folder-mapper.js +0 -203
- package/dist/src/core/sync/folder-mapper.js.map +0 -1
- package/dist/src/core/sync/label-detector.d.ts +0 -66
- package/dist/src/core/sync/label-detector.d.ts.map +0 -1
- package/dist/src/core/sync/label-detector.js +0 -224
- package/dist/src/core/sync/label-detector.js.map +0 -1
- package/dist/src/core/sync/performance-optimizer.d.ts +0 -153
- package/dist/src/core/sync/performance-optimizer.d.ts.map +0 -1
- package/dist/src/core/sync/performance-optimizer.js +0 -220
- package/dist/src/core/sync/performance-optimizer.js.map +0 -1
- package/dist/src/core/sync/profile-selector.d.ts +0 -52
- package/dist/src/core/sync/profile-selector.d.ts.map +0 -1
- package/dist/src/core/sync/profile-selector.js +0 -179
- package/dist/src/core/sync/profile-selector.js.map +0 -1
- package/dist/src/core/sync/profile-validator.d.ts +0 -52
- package/dist/src/core/sync/profile-validator.d.ts.map +0 -1
- package/dist/src/core/sync/profile-validator.js +0 -170
- package/dist/src/core/sync/profile-validator.js.map +0 -1
- package/dist/src/core/sync/rate-limiter.d.ts +0 -116
- package/dist/src/core/sync/rate-limiter.d.ts.map +0 -1
- package/dist/src/core/sync/rate-limiter.js +0 -308
- package/dist/src/core/sync/rate-limiter.js.map +0 -1
- package/dist/src/core/sync/retry-handler.d.ts +0 -98
- package/dist/src/core/sync/retry-handler.d.ts.map +0 -1
- package/dist/src/core/sync/retry-handler.js +0 -196
- package/dist/src/core/sync/retry-handler.js.map +0 -1
- package/dist/src/core/sync/retry-logic.d.ts +0 -64
- package/dist/src/core/sync/retry-logic.d.ts.map +0 -1
- package/dist/src/core/sync/retry-logic.js +0 -165
- package/dist/src/core/sync/retry-logic.js.map +0 -1
- package/dist/src/core/sync/status-cache.d.ts +0 -91
- package/dist/src/core/sync/status-cache.d.ts.map +0 -1
- package/dist/src/core/sync/status-cache.js +0 -140
- package/dist/src/core/sync/status-cache.js.map +0 -1
- package/dist/src/core/sync/status-mapper.d.ts +0 -69
- package/dist/src/core/sync/status-mapper.d.ts.map +0 -1
- package/dist/src/core/sync/status-mapper.js +0 -90
- package/dist/src/core/sync/status-mapper.js.map +0 -1
- package/dist/src/core/sync/status-sync-engine.d.ts +0 -162
- package/dist/src/core/sync/status-sync-engine.d.ts.map +0 -1
- package/dist/src/core/sync/status-sync-engine.js +0 -347
- package/dist/src/core/sync/status-sync-engine.js.map +0 -1
- package/dist/src/core/sync/sync-event-logger.d.ts +0 -113
- package/dist/src/core/sync/sync-event-logger.d.ts.map +0 -1
- package/dist/src/core/sync/sync-event-logger.js +0 -141
- package/dist/src/core/sync/sync-event-logger.js.map +0 -1
- package/dist/src/core/sync/time-range-selector.d.ts +0 -48
- package/dist/src/core/sync/time-range-selector.d.ts.map +0 -1
- package/dist/src/core/sync/time-range-selector.js +0 -224
- package/dist/src/core/sync/time-range-selector.js.map +0 -1
- package/dist/src/core/sync/types.d.ts +0 -52
- package/dist/src/core/sync/types.d.ts.map +0 -1
- package/dist/src/core/sync/types.js +0 -5
- package/dist/src/core/sync/types.js.map +0 -1
- package/dist/src/core/sync/workflow-detector.d.ts +0 -95
- package/dist/src/core/sync/workflow-detector.d.ts.map +0 -1
- package/dist/src/core/sync/workflow-detector.js +0 -175
- package/dist/src/core/sync/workflow-detector.js.map +0 -1
- package/plugins/specweave-github/lib/enhanced-github-sync.js +0 -220
- package/plugins/specweave-github/lib/enhanced-github-sync.ts +0 -322
- package/plugins/specweave-jira/lib/enhanced-jira-sync.js +0 -134
- package/plugins/specweave-jira/lib/enhanced-jira-sync.ts +0 -196
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sync Monitor Command
|
|
3
|
+
*
|
|
4
|
+
* Displays the sync orchestration dashboard with job statuses,
|
|
5
|
+
* notifications, and recent activity.
|
|
6
|
+
*
|
|
7
|
+
* @module cli/commands/sync-monitor
|
|
8
|
+
*/
|
|
9
|
+
import { Command } from 'commander';
|
|
10
|
+
import path from 'path';
|
|
11
|
+
import { DashboardDataProvider, } from '../../core/dashboard/dashboard-data.js';
|
|
12
|
+
import { getSeverityEmoji } from '../../core/notifications/notification-types.js';
|
|
13
|
+
import { consoleLogger } from '../../utils/logger.js';
|
|
14
|
+
/**
|
|
15
|
+
* Box drawing characters for ASCII dashboard
|
|
16
|
+
*/
|
|
17
|
+
const BOX = {
|
|
18
|
+
topLeft: '╔',
|
|
19
|
+
topRight: '╗',
|
|
20
|
+
bottomLeft: '╚',
|
|
21
|
+
bottomRight: '╝',
|
|
22
|
+
horizontal: '═',
|
|
23
|
+
vertical: '║',
|
|
24
|
+
headerSep: '╠',
|
|
25
|
+
headerSepRight: '╣',
|
|
26
|
+
sectionSep: '╟',
|
|
27
|
+
sectionSepRight: '╢',
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Dashboard width (excluding box borders)
|
|
31
|
+
*/
|
|
32
|
+
const DASHBOARD_WIDTH = 64;
|
|
33
|
+
/**
|
|
34
|
+
* Create the sync-monitor command
|
|
35
|
+
*/
|
|
36
|
+
export function createSyncMonitorCommand(options = {}) {
|
|
37
|
+
const logger = options.logger ?? consoleLogger;
|
|
38
|
+
const specweavePath = options.specweavePath ?? path.join(process.cwd(), '.specweave');
|
|
39
|
+
const command = new Command('sync-monitor')
|
|
40
|
+
.description('Show sync orchestration dashboard')
|
|
41
|
+
.option('--json', 'Output as JSON')
|
|
42
|
+
.action(async (cmdOptions) => {
|
|
43
|
+
await runSyncMonitor({
|
|
44
|
+
json: cmdOptions.json,
|
|
45
|
+
logger,
|
|
46
|
+
specweavePath,
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
return command;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Run the sync monitor command
|
|
53
|
+
*/
|
|
54
|
+
export async function runSyncMonitor(options) {
|
|
55
|
+
const logger = options.logger ?? consoleLogger;
|
|
56
|
+
const specweavePath = options.specweavePath ?? path.join(process.cwd(), '.specweave');
|
|
57
|
+
const provider = new DashboardDataProvider({
|
|
58
|
+
specweavePath,
|
|
59
|
+
logger,
|
|
60
|
+
});
|
|
61
|
+
try {
|
|
62
|
+
const data = await provider.getData();
|
|
63
|
+
if (options.json) {
|
|
64
|
+
console.log(JSON.stringify(data, null, 2));
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
// Format and print the dashboard
|
|
68
|
+
const output = formatDashboard(data, provider);
|
|
69
|
+
console.log(output);
|
|
70
|
+
}
|
|
71
|
+
catch (error) {
|
|
72
|
+
logger.error(`Failed to fetch dashboard data: ${error}`);
|
|
73
|
+
throw error;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Format the dashboard data as an ASCII box
|
|
78
|
+
*/
|
|
79
|
+
function formatDashboard(data, provider) {
|
|
80
|
+
const lines = [];
|
|
81
|
+
// Title
|
|
82
|
+
lines.push(boxLine(BOX.topLeft, BOX.topRight));
|
|
83
|
+
lines.push(centeredLine('SYNC MONITOR DASHBOARD'));
|
|
84
|
+
lines.push(boxLine(BOX.headerSep, BOX.headerSepRight));
|
|
85
|
+
// Jobs Section
|
|
86
|
+
lines.push(sectionHeader('SCHEDULED JOBS'));
|
|
87
|
+
lines.push(boxLine(BOX.sectionSep, BOX.sectionSepRight));
|
|
88
|
+
if (data.jobs.length === 0) {
|
|
89
|
+
lines.push(paddedLine('No scheduled jobs'));
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
for (const job of data.jobs) {
|
|
93
|
+
lines.push(formatJobLine(job, provider));
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
// Notifications Section
|
|
97
|
+
lines.push(boxLine(BOX.headerSep, BOX.headerSepRight));
|
|
98
|
+
const notifCount = data.notifications.pending;
|
|
99
|
+
lines.push(sectionHeader(`PENDING NOTIFICATIONS (${notifCount})`));
|
|
100
|
+
lines.push(boxLine(BOX.sectionSep, BOX.sectionSepRight));
|
|
101
|
+
if (data.notifications.recent.length === 0) {
|
|
102
|
+
lines.push(paddedLine('No pending notifications'));
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
for (const notif of data.notifications.recent) {
|
|
106
|
+
const emoji = getSeverityEmoji(notif.severity);
|
|
107
|
+
const severity = notif.severity.toUpperCase();
|
|
108
|
+
const text = `${emoji} ${severity}: ${notif.title}`;
|
|
109
|
+
lines.push(paddedLine(truncate(text, DASHBOARD_WIDTH - 2)));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
// Activity Section
|
|
113
|
+
lines.push(boxLine(BOX.headerSep, BOX.headerSepRight));
|
|
114
|
+
lines.push(sectionHeader('RECENT SYNC ACTIVITY (last 24h)'));
|
|
115
|
+
lines.push(boxLine(BOX.sectionSep, BOX.sectionSepRight));
|
|
116
|
+
// Platform breakdown
|
|
117
|
+
const platforms = data.activity.byPlatform;
|
|
118
|
+
const platformLine = `GitHub: ${platforms.github} │ JIRA: ${platforms.jira} │ ADO: ${platforms.ado}`;
|
|
119
|
+
lines.push(paddedLine(platformLine));
|
|
120
|
+
// Result breakdown
|
|
121
|
+
const { synced, failed, skipped } = data.activity.last24h;
|
|
122
|
+
const resultLine = `Success: ${synced} │ Failed: ${failed} │ Skipped: ${skipped}`;
|
|
123
|
+
lines.push(paddedLine(resultLine));
|
|
124
|
+
// Footer
|
|
125
|
+
lines.push(boxLine(BOX.bottomLeft, BOX.bottomRight));
|
|
126
|
+
return lines.join('\n');
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Format a job line for display
|
|
130
|
+
*/
|
|
131
|
+
function formatJobLine(job, provider) {
|
|
132
|
+
const emoji = provider.getJobStatusEmoji(job.status);
|
|
133
|
+
const statusText = job.status.padEnd(8);
|
|
134
|
+
let timeInfo = '';
|
|
135
|
+
if (job.status === 'running') {
|
|
136
|
+
// Show when started (approximate from last state change)
|
|
137
|
+
timeInfo = 'Started recently';
|
|
138
|
+
}
|
|
139
|
+
else if (job.status === 'disabled') {
|
|
140
|
+
timeInfo = '';
|
|
141
|
+
}
|
|
142
|
+
else if (job.status === 'failed') {
|
|
143
|
+
timeInfo = job.lastError ? truncate(job.lastError, 25) : 'Error';
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
const lastRun = provider.formatRelativeTime(job.lastRun);
|
|
147
|
+
const nextRun = provider.formatRelativeTime(job.nextRun);
|
|
148
|
+
timeInfo = `Last: ${lastRun} │ Next: ${nextRun}`;
|
|
149
|
+
}
|
|
150
|
+
const jobName = job.id.padEnd(18);
|
|
151
|
+
const content = `${jobName} │ ${emoji} ${statusText} │ ${timeInfo}`;
|
|
152
|
+
return paddedLine(truncate(content, DASHBOARD_WIDTH - 2));
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Create a horizontal line with specified corners
|
|
156
|
+
*/
|
|
157
|
+
function boxLine(left, right) {
|
|
158
|
+
return left + BOX.horizontal.repeat(DASHBOARD_WIDTH) + right;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Create a centered text line
|
|
162
|
+
*/
|
|
163
|
+
function centeredLine(text) {
|
|
164
|
+
const padding = Math.max(0, Math.floor((DASHBOARD_WIDTH - text.length) / 2));
|
|
165
|
+
const paddedText = ' '.repeat(padding) + text;
|
|
166
|
+
return BOX.vertical + paddedText.padEnd(DASHBOARD_WIDTH) + BOX.vertical;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Create a section header line
|
|
170
|
+
*/
|
|
171
|
+
function sectionHeader(text) {
|
|
172
|
+
return BOX.vertical + ' ' + text.padEnd(DASHBOARD_WIDTH - 1) + BOX.vertical;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Create a padded content line
|
|
176
|
+
*/
|
|
177
|
+
function paddedLine(text) {
|
|
178
|
+
return BOX.vertical + ' ' + text.padEnd(DASHBOARD_WIDTH - 1) + BOX.vertical;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Truncate text to fit width
|
|
182
|
+
*/
|
|
183
|
+
function truncate(text, maxWidth) {
|
|
184
|
+
if (text.length <= maxWidth) {
|
|
185
|
+
return text;
|
|
186
|
+
}
|
|
187
|
+
return text.slice(0, maxWidth - 3) + '...';
|
|
188
|
+
}
|
|
189
|
+
// Export for testing
|
|
190
|
+
export { formatDashboard, formatJobLine };
|
|
191
|
+
//# sourceMappingURL=sync-monitor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync-monitor.js","sourceRoot":"","sources":["../../../../src/cli/commands/sync-monitor.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EACL,qBAAqB,GAGtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAA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;IAC7E,MAAM,UAAU,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;IAC9C,OAAO,GAAG,CAAC,QAAQ,GAAG,UAAU,CAAC,MAAM,CAAC,eAAe,CAAC,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC1E,CAAC;AAED;;GAEG;AACH,SAAS,aAAa,CAAC,IAAY;IACjC,OAAO,GAAG,CAAC,QAAQ,GAAG,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,eAAe,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC9E,CAAC;AAED;;GAEG;AACH,SAAS,UAAU,CAAC,IAAY;IAC9B,OAAO,GAAG,CAAC,QAAQ,GAAG,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,eAAe,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC9E,CAAC;AAED;;GAEG;AACH,SAAS,QAAQ,CAAC,IAAY,EAAE,QAAgB;IAC9C,IAAI,IAAI,CAAC,MAAM,IAAI,QAAQ,EAAE,CAAC;QAC5B,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC;AAC7C,CAAC;AAED,qBAAqB;AACrB,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brownfield analysis prompts
|
|
3
|
+
* Handles brownfield project detection and analysis configuration
|
|
4
|
+
*/
|
|
5
|
+
import type { SupportedLanguage } from '../../../core/i18n/types.js';
|
|
6
|
+
/**
|
|
7
|
+
* Analysis depth options
|
|
8
|
+
*/
|
|
9
|
+
export type AnalysisDepth = 'quick' | 'standard' | 'deep';
|
|
10
|
+
/**
|
|
11
|
+
* Detected documentation location
|
|
12
|
+
*/
|
|
13
|
+
export interface DetectedDocsLocation {
|
|
14
|
+
path: string;
|
|
15
|
+
type: 'markdown' | 'wiki' | 'readme' | 'jsdoc' | 'mixed';
|
|
16
|
+
fileCount: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Brownfield analysis configuration result
|
|
20
|
+
*/
|
|
21
|
+
export interface BrownfieldAnalysisConfig {
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
sourceDocsPath?: string;
|
|
24
|
+
analysisDepth: AnalysisDepth;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Detect existing documentation locations in a project
|
|
28
|
+
*/
|
|
29
|
+
export declare function detectExistingDocsLocations(targetDir: string): DetectedDocsLocation[];
|
|
30
|
+
/**
|
|
31
|
+
* Prompt user for brownfield analysis configuration
|
|
32
|
+
*
|
|
33
|
+
* @param targetDir - Project directory
|
|
34
|
+
* @param language - Language for translations
|
|
35
|
+
* @returns Brownfield analysis configuration
|
|
36
|
+
*/
|
|
37
|
+
export declare function promptBrownfieldAnalysis(targetDir: string, language?: SupportedLanguage): Promise<BrownfieldAnalysisConfig>;
|
|
38
|
+
/**
|
|
39
|
+
* Update config.json with brownfield analysis configuration
|
|
40
|
+
*
|
|
41
|
+
* @param targetDir - Project directory
|
|
42
|
+
* @param config - Brownfield analysis configuration
|
|
43
|
+
*/
|
|
44
|
+
export declare function updateConfigWithBrownfield(targetDir: string, config: BrownfieldAnalysisConfig): void;
|
|
45
|
+
//# sourceMappingURL=brownfield-analysis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brownfield-analysis.d.ts","sourceRoot":"","sources":["../../../../../src/cli/helpers/init/brownfield-analysis.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;IACzD,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,aAAa,CAAC;CAC9B;AAgPD;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,MAAM,GAAG,oBAAoB,EAAE,CA6CrF;AAqDD;;;;;;GAMG;AACH,wBAAsB,wBAAwB,CAC5C,SAAS,EAAE,MAAM,EACjB,QAAQ,GAAE,iBAAwB,GACjC,OAAO,CAAC,wBAAwB,CAAC,CAsFnC;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,wBAAwB,GAC/B,IAAI,CAkBN"}
|