@tekyzinc/gsd-t 3.29.11 → 4.0.14

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 (114) hide show
  1. package/CHANGELOG.md +171 -0
  2. package/bin/gsd-t-parallel.cjs +64 -13
  3. package/bin/gsd-t.js +48 -376
  4. package/bin/journey-coverage.cjs +6 -3
  5. package/bin/parallel-cli.cjs +13 -1
  6. package/commands/gsd-t-complete-milestone.md +6 -12
  7. package/commands/gsd-t-debug.md +47 -533
  8. package/commands/gsd-t-design-decompose.md +24 -497
  9. package/commands/gsd-t-doc-ripple.md +23 -139
  10. package/commands/gsd-t-execute.md +41 -958
  11. package/commands/gsd-t-feature.md +2 -6
  12. package/commands/gsd-t-gap-analysis.md +3 -6
  13. package/commands/gsd-t-help.md +2 -4
  14. package/commands/gsd-t-impact.md +26 -295
  15. package/commands/gsd-t-init-scan-setup.md +7 -7
  16. package/commands/gsd-t-integrate.md +44 -369
  17. package/commands/gsd-t-milestone.md +25 -124
  18. package/commands/gsd-t-partition.md +28 -539
  19. package/commands/gsd-t-plan.md +26 -472
  20. package/commands/gsd-t-prd.md +25 -311
  21. package/commands/gsd-t-quick.md +1 -1
  22. package/commands/gsd-t-resume.md +0 -33
  23. package/commands/gsd-t-scan.md +45 -652
  24. package/commands/gsd-t-verify.md +52 -569
  25. package/commands/gsd-t-wave.md +41 -430
  26. package/package.json +1 -1
  27. package/scripts/gsd-t-calibration-hook.js +3 -1
  28. package/scripts/hooks/pre-commit-journey-coverage +0 -2
  29. package/scripts/hooks/pre-commit-playwright-gate +0 -2
  30. package/templates/CLAUDE-global.md +44 -173
  31. package/templates/CLAUDE-project.md +118 -104
  32. package/templates/prompts/design-verify-subagent.md +3 -0
  33. package/templates/prompts/qa-subagent.md +3 -0
  34. package/templates/prompts/red-team-subagent.md +5 -2
  35. package/templates/workflows/_lib.js +176 -0
  36. package/templates/workflows/gsd-t-debug.workflow.js +86 -0
  37. package/templates/workflows/gsd-t-execute.workflow.js +206 -0
  38. package/templates/workflows/gsd-t-integrate.workflow.js +71 -0
  39. package/templates/workflows/gsd-t-phase.workflow.js +94 -0
  40. package/templates/workflows/gsd-t-quick.workflow.js +72 -0
  41. package/templates/workflows/gsd-t-scan.workflow.js +711 -0
  42. package/templates/workflows/gsd-t-verify.workflow.js +348 -0
  43. package/templates/workflows/gsd-t-wave.workflow.js +43 -0
  44. package/bin/check-headless-sessions.js +0 -140
  45. package/bin/context-budget-audit.cjs +0 -447
  46. package/bin/context-meter-config.cjs +0 -101
  47. package/bin/context-meter-config.test.cjs +0 -101
  48. package/bin/event-stream.cjs +0 -205
  49. package/bin/gsd-t-benchmark-orchestrator.js +0 -437
  50. package/bin/gsd-t-capture-lint.cjs +0 -440
  51. package/bin/gsd-t-economics.cjs +0 -315
  52. package/bin/gsd-t-in-session-usage.cjs +0 -213
  53. package/bin/gsd-t-orchestrator-config.cjs +0 -161
  54. package/bin/gsd-t-orchestrator-queue.cjs +0 -180
  55. package/bin/gsd-t-orchestrator-recover.cjs +0 -231
  56. package/bin/gsd-t-orchestrator-worker.cjs +0 -219
  57. package/bin/gsd-t-orchestrator.js +0 -535
  58. package/bin/gsd-t-parallel-probe.cjs +0 -132
  59. package/bin/gsd-t-ratelimit-probe-worker.cjs +0 -237
  60. package/bin/gsd-t-ratelimit-probe.cjs +0 -648
  61. package/bin/gsd-t-report-tokens.cjs +0 -549
  62. package/bin/gsd-t-stream-feed-client.cjs +0 -151
  63. package/bin/gsd-t-token-backfill.cjs +0 -366
  64. package/bin/gsd-t-token-capture.cjs +0 -321
  65. package/bin/gsd-t-token-dashboard.cjs +0 -353
  66. package/bin/gsd-t-token-regenerate-log.cjs +0 -129
  67. package/bin/gsd-t-tool-attribution.cjs +0 -377
  68. package/bin/gsd-t-tool-cost.cjs +0 -195
  69. package/bin/gsd-t-transcript-tee.cjs +0 -246
  70. package/bin/gsd-t-unattended-heartbeat.cjs +0 -188
  71. package/bin/gsd-t-unattended-platform.cjs +0 -551
  72. package/bin/gsd-t-unattended-platform.js +0 -381
  73. package/bin/gsd-t-unattended-safety.cjs +0 -773
  74. package/bin/gsd-t-unattended-safety.js +0 -788
  75. package/bin/gsd-t-unattended.cjs +0 -2109
  76. package/bin/gsd-t-unattended.js +0 -1367
  77. package/bin/gsd-t-worker-dispatch.cjs +0 -211
  78. package/bin/handoff-lock.cjs +0 -249
  79. package/bin/handoff-lock.js +0 -249
  80. package/bin/headless-auto-spawn.cjs +0 -711
  81. package/bin/headless-auto-spawn.js +0 -373
  82. package/bin/headless-exit-codes.cjs +0 -67
  83. package/bin/live-activity-report.cjs +0 -615
  84. package/bin/log-tail.cjs +0 -81
  85. package/bin/m44-proof-measure.cjs +0 -285
  86. package/bin/m46-iter-proof.cjs +0 -149
  87. package/bin/m46-worker-proof.cjs +0 -201
  88. package/bin/m55-substrate-proof.cjs +0 -134
  89. package/bin/metrics-rollup.js +0 -200
  90. package/bin/model-windows.cjs +0 -99
  91. package/bin/model-windows.test.cjs +0 -75
  92. package/bin/parallelism-report.cjs +0 -535
  93. package/bin/runway-estimator.cjs +0 -242
  94. package/bin/spawn-plan-derive.cjs +0 -163
  95. package/bin/spawn-plan-status-updater.cjs +0 -292
  96. package/bin/spawn-plan-writer.cjs +0 -204
  97. package/bin/supervisor-pid-fingerprint.cjs +0 -126
  98. package/bin/token-budget.cjs +0 -265
  99. package/bin/unattended-watch-format.cjs +0 -178
  100. package/bin/watch-progress.js +0 -155
  101. package/commands/gsd-t-unattended-stop.md +0 -85
  102. package/commands/gsd-t-unattended-watch.md +0 -465
  103. package/commands/gsd-t-unattended.md +0 -476
  104. package/commands/gsd-t-visualize.md +0 -116
  105. package/scripts/gsd-t-context-meter.e2e.test.js +0 -364
  106. package/scripts/gsd-t-context-meter.js +0 -341
  107. package/scripts/gsd-t-context-meter.test.js +0 -471
  108. package/scripts/gsd-t-dashboard-server.js +0 -1203
  109. package/scripts/gsd-t-post-commit-spawn-plan.sh +0 -86
  110. package/scripts/gsd-t-transcript.html +0 -1821
  111. package/scripts/hooks/gsd-t-conversation-capture.js +0 -439
  112. package/scripts/hooks/gsd-t-in-session-usage-hook.js +0 -84
  113. package/scripts/spawn-plan-fmt-tokens.cjs +0 -80
  114. package/templates/hooks/post-commit-spawn-plan.sh +0 -85
@@ -1,86 +0,0 @@
1
- #!/usr/bin/env bash
2
- # GSD-T Post-Commit Spawn-Plan Hook (M44 D8 T2)
3
- #
4
- # Greps the latest commit message for every `[M\d+-D\d+-T\d+]` task id and
5
- # flips the matching task in every ACTIVE spawn plan under `.gsd-t/spawns/`
6
- # to `done` (with commit SHA + token attribution from `.gsd-t/token-log.md`).
7
- #
8
- # Contract: .gsd-t/contracts/spawn-plan-contract.md v1.0.0
9
- #
10
- # HARD RULE: silent-fail. This hook must NEVER break the user's commit.
11
- # Every error path logs to stderr and exits 0.
12
-
13
- set +e # never bail on error — silent-fail is mandatory
14
-
15
- # Resolve project root (the dir git operates from).
16
- PROJECT_DIR="$(git rev-parse --show-toplevel 2>/dev/null)"
17
- if [ -z "$PROJECT_DIR" ] || [ ! -d "$PROJECT_DIR/.gsd-t/spawns" ]; then
18
- exit 0
19
- fi
20
-
21
- UPDATER="$PROJECT_DIR/bin/spawn-plan-status-updater.cjs"
22
- if [ ! -f "$UPDATER" ]; then
23
- exit 0
24
- fi
25
-
26
- # Require node; log once and continue if absent.
27
- if ! command -v node >/dev/null 2>&1; then
28
- echo "[spawn-plan-hook] node not found — skipping" 1>&2
29
- exit 0
30
- fi
31
-
32
- COMMIT_SHA="$(git rev-parse --short HEAD 2>/dev/null)"
33
- COMMIT_MSG="$(git log -1 --format=%B 2>/dev/null)"
34
- if [ -z "$COMMIT_SHA" ] || [ -z "$COMMIT_MSG" ]; then
35
- exit 0
36
- fi
37
-
38
- # Extract all [M\d+-D\d+-T\d+] ids (unique, preserved order).
39
- TASK_IDS="$(printf '%s' "$COMMIT_MSG" | grep -oE '\[M[0-9]+-D[0-9]+-T[0-9]+\]' | sed 's/[][]//g' | awk '!seen[$0]++')"
40
- if [ -z "$TASK_IDS" ]; then
41
- exit 0
42
- fi
43
-
44
- # Delegate patching to node. One invocation handles every active plan ×
45
- # every task id. Pipes the task-id list via stdin; silent-fails on any
46
- # error so the commit is never broken.
47
- printf '%s\n' "$TASK_IDS" | node -e '
48
- "use strict";
49
- try {
50
- const path = require("path");
51
- const fs = require("fs");
52
- const projectDir = process.argv[1];
53
- const commit = process.argv[2];
54
- let raw = "";
55
- process.stdin.setEncoding("utf8");
56
- process.stdin.on("data", (c) => { raw += c; });
57
- process.stdin.on("end", () => {
58
- try {
59
- const taskIds = raw.split("\n").map((s) => s.trim()).filter(Boolean);
60
- if (!taskIds.length) process.exit(0);
61
- const updater = require(path.join(projectDir, "bin", "spawn-plan-status-updater.cjs"));
62
- const activePaths = updater.listActivePlans(projectDir);
63
- if (!activePaths.length) process.exit(0);
64
- for (const fp of activePaths) {
65
- let plan;
66
- try { plan = JSON.parse(fs.readFileSync(fp, "utf8")); } catch (_) { continue; }
67
- const spawnId = plan && plan.spawnId;
68
- const spawnStartedAt = plan && plan.startedAt;
69
- if (!spawnId) continue;
70
- const planTaskIds = new Set((plan.tasks || []).map((t) => t && t.id).filter(Boolean));
71
- for (const taskId of taskIds) {
72
- if (!planTaskIds.has(taskId)) continue;
73
- const tokens = updater.sumTokensForTask({ projectDir, taskId, spawnStartedAt });
74
- updater.markTaskDone({ spawnId, taskId, commit, tokens, projectDir });
75
- }
76
- }
77
- } catch (err) {
78
- try { process.stderr.write("[spawn-plan-hook] " + String(err && err.message || err) + "\n"); } catch (_) { /* silent */ }
79
- }
80
- });
81
- } catch (err) {
82
- try { process.stderr.write("[spawn-plan-hook] " + String(err && err.message || err) + "\n"); } catch (_) { /* silent */ }
83
- }
84
- ' "$PROJECT_DIR" "$COMMIT_SHA" 2>/dev/null
85
-
86
- exit 0