specweave 1.0.424 → 1.0.426

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.
Files changed (93) hide show
  1. package/bin/specweave.js +35 -0
  2. package/dist/dashboard/assets/index-BZjLFWPM.js +11 -0
  3. package/dist/dashboard/assets/index-Dml32UC5.css +1 -0
  4. package/dist/dashboard/index.html +2 -2
  5. package/dist/src/cli/commands/init.d.ts.map +1 -1
  6. package/dist/src/cli/commands/init.js +33 -60
  7. package/dist/src/cli/commands/init.js.map +1 -1
  8. package/dist/src/cli/commands/sync-gaps.d.ts +29 -0
  9. package/dist/src/cli/commands/sync-gaps.d.ts.map +1 -0
  10. package/dist/src/cli/commands/sync-gaps.js +124 -0
  11. package/dist/src/cli/commands/sync-gaps.js.map +1 -0
  12. package/dist/src/cli/commands/sync-retry.d.ts +36 -0
  13. package/dist/src/cli/commands/sync-retry.d.ts.map +1 -0
  14. package/dist/src/cli/commands/sync-retry.js +120 -0
  15. package/dist/src/cli/commands/sync-retry.js.map +1 -0
  16. package/dist/src/cli/commands/sync-status.d.ts +27 -0
  17. package/dist/src/cli/commands/sync-status.d.ts.map +1 -0
  18. package/dist/src/cli/commands/sync-status.js +98 -0
  19. package/dist/src/cli/commands/sync-status.js.map +1 -0
  20. package/dist/src/cli/helpers/init/index.d.ts +1 -1
  21. package/dist/src/cli/helpers/init/index.d.ts.map +1 -1
  22. package/dist/src/cli/helpers/init/index.js +1 -1
  23. package/dist/src/cli/helpers/init/index.js.map +1 -1
  24. package/dist/src/cli/helpers/init/path-utils.d.ts +23 -0
  25. package/dist/src/cli/helpers/init/path-utils.d.ts.map +1 -1
  26. package/dist/src/cli/helpers/init/path-utils.js +26 -0
  27. package/dist/src/cli/helpers/init/path-utils.js.map +1 -1
  28. package/dist/src/core/hooks/LifecycleHookDispatcher.d.ts +8 -1
  29. package/dist/src/core/hooks/LifecycleHookDispatcher.d.ts.map +1 -1
  30. package/dist/src/core/hooks/LifecycleHookDispatcher.js +49 -2
  31. package/dist/src/core/hooks/LifecycleHookDispatcher.js.map +1 -1
  32. package/dist/src/core/living-docs/living-docs-sync.d.ts.map +1 -1
  33. package/dist/src/core/living-docs/living-docs-sync.js +10 -4
  34. package/dist/src/core/living-docs/living-docs-sync.js.map +1 -1
  35. package/dist/src/core/living-docs/types.d.ts +1 -0
  36. package/dist/src/core/living-docs/types.d.ts.map +1 -1
  37. package/dist/src/core/qa/qa-runner.d.ts.map +1 -1
  38. package/dist/src/core/qa/qa-runner.js +202 -40
  39. package/dist/src/core/qa/qa-runner.js.map +1 -1
  40. package/dist/src/core/sync/ac-gate.d.ts +30 -0
  41. package/dist/src/core/sync/ac-gate.d.ts.map +1 -0
  42. package/dist/src/core/sync/ac-gate.js +132 -0
  43. package/dist/src/core/sync/ac-gate.js.map +1 -0
  44. package/dist/src/core/sync/cached-rate-limiter.d.ts +32 -0
  45. package/dist/src/core/sync/cached-rate-limiter.d.ts.map +1 -0
  46. package/dist/src/core/sync/cached-rate-limiter.js +47 -0
  47. package/dist/src/core/sync/cached-rate-limiter.js.map +1 -0
  48. package/dist/src/core/sync/circuit-breaker-registry.d.ts +16 -0
  49. package/dist/src/core/sync/circuit-breaker-registry.d.ts.map +1 -0
  50. package/dist/src/core/sync/circuit-breaker-registry.js +33 -0
  51. package/dist/src/core/sync/circuit-breaker-registry.js.map +1 -0
  52. package/dist/src/core/sync/sync-resilience-audit-logger.d.ts +42 -0
  53. package/dist/src/core/sync/sync-resilience-audit-logger.d.ts.map +1 -0
  54. package/dist/src/core/sync/sync-resilience-audit-logger.js +97 -0
  55. package/dist/src/core/sync/sync-resilience-audit-logger.js.map +1 -0
  56. package/dist/src/core/sync/sync-resilience.d.ts +49 -0
  57. package/dist/src/core/sync/sync-resilience.d.ts.map +1 -0
  58. package/dist/src/core/sync/sync-resilience.js +133 -0
  59. package/dist/src/core/sync/sync-resilience.js.map +1 -0
  60. package/dist/src/core/sync/sync-retry-queue.d.ts +57 -0
  61. package/dist/src/core/sync/sync-retry-queue.d.ts.map +1 -0
  62. package/dist/src/core/sync/sync-retry-queue.js +115 -0
  63. package/dist/src/core/sync/sync-retry-queue.js.map +1 -0
  64. package/dist/src/dashboard/server/dashboard-server.d.ts.map +1 -1
  65. package/dist/src/dashboard/server/dashboard-server.js +16 -0
  66. package/dist/src/dashboard/server/dashboard-server.js.map +1 -1
  67. package/dist/src/dashboard/server/data/dashboard-data-aggregator.d.ts +22 -0
  68. package/dist/src/dashboard/server/data/dashboard-data-aggregator.d.ts.map +1 -1
  69. package/dist/src/dashboard/server/data/dashboard-data-aggregator.js +90 -0
  70. package/dist/src/dashboard/server/data/dashboard-data-aggregator.js.map +1 -1
  71. package/dist/src/dashboard/types.d.ts +1 -1
  72. package/dist/src/dashboard/types.d.ts.map +1 -1
  73. package/dist/src/utils/docs-preview/config-generator.d.ts.map +1 -1
  74. package/dist/src/utils/docs-preview/config-generator.js +1 -0
  75. package/dist/src/utils/docs-preview/config-generator.js.map +1 -1
  76. package/dist/src/utils/image-generator.d.ts.map +1 -1
  77. package/dist/src/utils/image-generator.js +9 -0
  78. package/dist/src/utils/image-generator.js.map +1 -1
  79. package/package.json +1 -1
  80. package/plugins/specweave/hooks/v2/guards/increment-existence-guard.sh +80 -11
  81. package/plugins/specweave/skills/pm/phases/02-spec-creation.md +26 -5
  82. package/plugins/specweave/skills/pm/templates/spec-template.md +48 -0
  83. package/plugins/specweave/skills/team-build/SKILL.md +120 -39
  84. package/plugins/specweave/skills/team-lead/agents/brainstorm-advocate.md +65 -0
  85. package/plugins/specweave/skills/team-lead/agents/brainstorm-critic.md +75 -0
  86. package/plugins/specweave/skills/team-lead/agents/brainstorm-pragmatist.md +83 -0
  87. package/plugins/specweave/skills/team-lead/agents/reviewer-logic.md +63 -0
  88. package/plugins/specweave/skills/team-lead/agents/reviewer-performance.md +63 -0
  89. package/plugins/specweave/skills/team-lead/agents/reviewer-security.md +62 -0
  90. package/dist/dashboard/assets/index-DMjF8l_s.css +0 -1
  91. package/dist/dashboard/assets/index-x2hb1BtS.js +0 -11
  92. package/plugins/specweave/hooks/.specweave/state/status-line.json +0 -1
  93. package/plugins/specweave/skills/.specweave/logs/decisions.jsonl +0 -2
package/bin/specweave.js CHANGED
@@ -933,6 +933,41 @@ program
933
933
  await syncTask([incrementId]);
934
934
  });
935
935
 
936
+ // Sync-retry command - Process retry queue for failed syncs
937
+ program
938
+ .command('sync-retry')
939
+ .description('Process the sync retry queue (retry failed external syncs with backoff)')
940
+ .option('--dry-run', 'Show what would be retried without executing')
941
+ .option('--force', 'Retry all entries regardless of backoff timing')
942
+ .option('--clear', 'Clear the entire retry queue')
943
+ .action(async (options) => {
944
+ const { syncRetryCommand } = await import('../dist/src/cli/commands/sync-retry.js');
945
+ const result = await syncRetryCommand(process.cwd(), options);
946
+ if (result.failed > 0) process.exitCode = 1;
947
+ });
948
+
949
+ // Sync-gaps command - Detect increments with partial external sync
950
+ program
951
+ .command('sync-gaps')
952
+ .description('Detect increments with partial external sync coverage')
953
+ .option('--json', 'Output as JSON')
954
+ .option('--fix', 'Attempt missing syncs for each gap')
955
+ .action(async (options) => {
956
+ const { syncGapsCommand } = await import('../dist/src/cli/commands/sync-gaps.js');
957
+ const result = await syncGapsCommand(process.cwd(), options);
958
+ process.exitCode = result.exitCode;
959
+ });
960
+
961
+ // Sync-status command - Overall sync health report
962
+ program
963
+ .command('sync-status')
964
+ .description('Show sync health: retry queue, circuit breakers, rate limits, recent errors')
965
+ .action(async () => {
966
+ const { syncStatusCommand } = await import('../dist/src/cli/commands/sync-status.js');
967
+ const result = await syncStatusCommand(process.cwd());
968
+ process.exitCode = result.exitCode;
969
+ });
970
+
936
971
  // Docs command - Documentation preview, build, validation
937
972
  const docsCmd = program
938
973
  .command('docs')