@tekyzinc/gsd-t 2.51.10 → 2.53.11

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 (100) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +379 -373
  3. package/bin/component-registry.js +250 -0
  4. package/bin/graph-cgc.js +510 -510
  5. package/bin/graph-indexer.js +147 -147
  6. package/bin/graph-overlay.js +195 -195
  7. package/bin/graph-parsers.js +327 -327
  8. package/bin/graph-query.js +453 -452
  9. package/bin/graph-store.js +154 -154
  10. package/bin/qa-calibrator.js +194 -0
  11. package/bin/scan-data-collector.js +153 -153
  12. package/bin/scan-diagrams-generators.js +187 -187
  13. package/bin/scan-diagrams.js +79 -79
  14. package/bin/scan-renderer.js +92 -92
  15. package/bin/scan-report-sections.js +121 -121
  16. package/bin/scan-report.js +184 -184
  17. package/bin/scan-schema-parsers.js +199 -199
  18. package/bin/scan-schema.js +103 -103
  19. package/bin/token-budget.js +246 -0
  20. package/commands/Claude-md.md +10 -10
  21. package/commands/branch.md +15 -15
  22. package/commands/checkin.md +45 -45
  23. package/commands/global-change.md +209 -209
  24. package/commands/gsd-t-audit.md +199 -0
  25. package/commands/gsd-t-backlog-add.md +94 -94
  26. package/commands/gsd-t-backlog-edit.md +111 -111
  27. package/commands/gsd-t-backlog-list.md +63 -63
  28. package/commands/gsd-t-backlog-move.md +94 -94
  29. package/commands/gsd-t-backlog-promote.md +123 -123
  30. package/commands/gsd-t-backlog-remove.md +86 -86
  31. package/commands/gsd-t-backlog-settings.md +158 -158
  32. package/commands/gsd-t-complete-milestone.md +528 -515
  33. package/commands/gsd-t-debug.md +506 -482
  34. package/commands/gsd-t-discuss.md +174 -174
  35. package/commands/gsd-t-execute.md +758 -715
  36. package/commands/gsd-t-feature.md +276 -276
  37. package/commands/gsd-t-health.md +142 -142
  38. package/commands/gsd-t-help.md +465 -457
  39. package/commands/gsd-t-impact.md +302 -302
  40. package/commands/gsd-t-init-scan-setup.md +1 -5
  41. package/commands/gsd-t-init.md +314 -280
  42. package/commands/gsd-t-integrate.md +365 -333
  43. package/commands/gsd-t-milestone.md +87 -87
  44. package/commands/gsd-t-partition.md +442 -361
  45. package/commands/gsd-t-pause.md +82 -82
  46. package/commands/gsd-t-plan.md +345 -344
  47. package/commands/gsd-t-populate.md +111 -111
  48. package/commands/gsd-t-prd.md +326 -326
  49. package/commands/gsd-t-project.md +211 -211
  50. package/commands/gsd-t-promote-debt.md +123 -123
  51. package/commands/gsd-t-prompt.md +137 -137
  52. package/commands/gsd-t-qa.md +266 -266
  53. package/commands/gsd-t-quick.md +357 -315
  54. package/commands/gsd-t-reflect.md +134 -134
  55. package/commands/gsd-t-resume.md +72 -72
  56. package/commands/gsd-t-scan.md +615 -615
  57. package/commands/gsd-t-setup.md +76 -0
  58. package/commands/gsd-t-status.md +192 -166
  59. package/commands/gsd-t-test-sync.md +381 -381
  60. package/commands/gsd-t-triage-and-merge.md +171 -171
  61. package/commands/gsd-t-verify.md +382 -382
  62. package/commands/gsd-t-visualize.md +118 -118
  63. package/commands/gsd-t-wave.md +401 -378
  64. package/docs/GSD-T-README.md +425 -424
  65. package/docs/architecture.md +385 -369
  66. package/docs/harness-design-analysis.md +371 -0
  67. package/docs/infrastructure.md +205 -205
  68. package/docs/prd-graph-engine.md +398 -398
  69. package/docs/prd-gsd2-hybrid.md +559 -559
  70. package/docs/prd-harness-evolution.md +583 -0
  71. package/docs/requirements.md +14 -0
  72. package/docs/workflows.md +226 -226
  73. package/examples/.gsd-t/domains/example-domain/scope.md +13 -13
  74. package/package.json +40 -40
  75. package/scripts/gsd-t-auto-route.js +39 -39
  76. package/scripts/gsd-t-dashboard-mockup.html +1143 -1143
  77. package/scripts/gsd-t-dashboard-server.js +171 -171
  78. package/scripts/gsd-t-dashboard.html +262 -262
  79. package/scripts/gsd-t-event-writer.js +128 -128
  80. package/scripts/gsd-t-statusline.js +94 -94
  81. package/scripts/gsd-t-tools.js +175 -175
  82. package/templates/CLAUDE-global.md +638 -634
  83. package/templates/CLAUDE-project.md +24 -0
  84. package/templates/backlog-settings.md +18 -18
  85. package/templates/backlog.md +1 -1
  86. package/templates/progress.md +40 -40
  87. package/templates/shared-services-contract.md +60 -60
  88. package/templates/stacks/desktop.ini +2 -2
  89. package/bin/desktop.ini +0 -2
  90. package/commands/desktop.ini +0 -2
  91. package/docs/ci-examples/desktop.ini +0 -2
  92. package/docs/desktop.ini +0 -2
  93. package/examples/.gsd-t/contracts/desktop.ini +0 -2
  94. package/examples/.gsd-t/desktop.ini +0 -2
  95. package/examples/.gsd-t/domains/desktop.ini +0 -2
  96. package/examples/.gsd-t/domains/example-domain/desktop.ini +0 -2
  97. package/examples/desktop.ini +0 -2
  98. package/examples/rules/desktop.ini +0 -2
  99. package/scripts/desktop.ini +0 -2
  100. package/templates/desktop.ini +0 -2
@@ -1,118 +1,118 @@
1
- # GSD-T: Visualize — Launch Real-Time Agent Dashboard
2
-
3
- You are launching the GSD-T real-time agent dashboard — an SSE-backed browser visualization of agent activity.
4
-
5
- ## Step 0: Launch via Subagent
6
-
7
- When invoked directly by the user, spawn yourself as a Task subagent for a fresh context window.
8
-
9
- **OBSERVABILITY LOGGING — before spawning:**
10
-
11
- Run via Bash:
12
- `T_START=$(date +%s) && DT_START=$(date +"%Y-%m-%d %H:%M") && TOK_START=${CLAUDE_CONTEXT_TOKENS_USED:-0} && TOK_MAX=${CLAUDE_CONTEXT_TOKENS_MAX:-200000}`
13
-
14
- ```
15
- Task subagent (general-purpose, model: sonnet):
16
- "Run the GSD-T visualize command. Read commands/gsd-t-visualize.md for your full instructions.
17
- Arguments: {$ARGUMENTS}
18
- Skip Step 0 — you are already the subagent."
19
- ```
20
-
21
- **OBSERVABILITY LOGGING — after subagent returns:**
22
-
23
- Run via Bash:
24
- `T_END=$(date +%s) && DT_END=$(date +"%Y-%m-%d %H:%M") && TOK_END=${CLAUDE_CONTEXT_TOKENS_USED:-0} && DURATION=$((T_END-T_START))`
25
-
26
- Compute tokens:
27
- - No compaction (TOK_END >= TOK_START): `TOKENS=$((TOK_END-TOK_START))`, COMPACTED=null
28
- - Compaction detected (TOK_END < TOK_START): `TOKENS=$(((TOK_MAX-TOK_START)+TOK_END))`, COMPACTED=$DT_END
29
-
30
- Append to `.gsd-t/token-log.md` (create with header `| Datetime-start | Datetime-end | Command | Step | Model | Duration(s) | Notes | Tokens | Compacted |` if missing):
31
- `| {DT_START} | {DT_END} | gsd-t-visualize | Step 0 | sonnet | {DURATION}s | dashboard launched | {TOKENS} | {COMPACTED} |`
32
-
33
- Return the subagent's output and stop. Only skip Step 0 if you are already running as a subagent.
34
-
35
- ## Step 1: Write command_invoked Event
36
-
37
- Run via Bash:
38
- ```bash
39
- node ~/.claude/scripts/gsd-t-event-writer.js --type command_invoked --command gsd-t-visualize --reasoning "Launching dashboard" || true
40
- ```
41
-
42
- ## Step 1.5: Context Metrics for Dashboard
43
-
44
- If `.gsd-t/token-log.md` exists, the dashboard server automatically reads it and provides context utilization metrics for visualization. These metrics are served from the `/api/token-breakdown` endpoint and rendered as:
45
-
46
- 1. **Context utilization timeline** — Ctx% over time, ordered by Datetime-start
47
- 2. **Token breakdown by domain** — bar chart grouping Tokens by Domain column (gracefully handles older rows without Domain column — they are grouped as "(untagged)")
48
- 3. **Compaction proximity warnings** — rows where Ctx% >= 70 are highlighted; rows where Ctx% >= 85 are marked critical (🔴)
49
-
50
- If `.gsd-t/token-log.md` does not exist, context metrics panels are hidden (not shown as errors).
51
-
52
- ## Step 1.6: Graph Data for Dashboard
53
-
54
- If `.gsd-t/graph/index.json` exists, the dashboard can render entity-relationship visualizations from the graph data. The dashboard server will detect and serve graph data automatically — no additional configuration needed.
55
-
56
- ## Step 2: Check $ARGUMENTS for "stop"
57
-
58
- If `$ARGUMENTS` contains "stop", skip to **Step 5**. Otherwise continue to Step 3.
59
-
60
- ## Step 3: Check if Server is Already Running
61
-
62
- Run via Bash:
63
- ```bash
64
- if [ -f .gsd-t/dashboard.pid ]; then
65
- PID=$(cat .gsd-t/dashboard.pid)
66
- curl -sf http://localhost:7433/ping 2>/dev/null | grep -q '"ok"' && echo "SERVER_RUNNING=true" || echo "SERVER_RUNNING=false"
67
- else
68
- echo "SERVER_RUNNING=false"
69
- fi
70
- ```
71
-
72
- If output is `SERVER_RUNNING=true`, skip Step 3a and go directly to Step 4.
73
-
74
- ### Step 3a: Start Server if Not Running
75
-
76
- Run via Bash:
77
- ```bash
78
- node ~/.claude/scripts/gsd-t-dashboard-server.js --detach || true
79
- for i in 1 2 3 4 5; do
80
- curl -sf http://localhost:7433/ping 2>/dev/null | grep -q '"ok"' && break
81
- sleep 1
82
- done
83
- ```
84
-
85
- ## Step 4: Open Browser
86
-
87
- Run via Bash:
88
- ```bash
89
- node -e "const {execFileSync}=require('child_process'); const url='http://localhost:7433'; try { if(process.platform==='win32'){execFileSync('cmd',['/c','start','',url],{stdio:'ignore'})}else{execFileSync(process.platform==='darwin'?'open':'xdg-open',[url],{stdio:'ignore'})} } catch(e) { console.error('Could not open browser:', e.message); }" || true
90
- ```
91
-
92
- Report to the user: "Dashboard is running at http://localhost:7433 — browser opened."
93
-
94
- ## Step 5: Stop Handler
95
-
96
- Run only when `$ARGUMENTS` contains "stop".
97
-
98
- Run via Bash:
99
- ```bash
100
- if [ -f .gsd-t/dashboard.pid ]; then
101
- PID=$(cat .gsd-t/dashboard.pid)
102
- curl -sf http://localhost:7433/stop 2>/dev/null || kill $PID 2>/dev/null || true
103
- rm -f .gsd-t/dashboard.pid
104
- echo "Dashboard server stopped"
105
- else
106
- echo "No dashboard server running (no .gsd-t/dashboard.pid found)"
107
- fi
108
- ```
109
-
110
- ## Document Ripple
111
-
112
- Note: All 4 reference files (README.md, docs/GSD-T-README.md, templates/CLAUDE-global.md, commands/gsd-t-help.md) are updated in Task 3 of Milestone 15, not here.
113
-
114
- $ARGUMENTS
115
-
116
- ## Auto-Clear
117
-
118
- All work is committed to project files. Execute `/clear` to free the context window for the next command.
1
+ # GSD-T: Visualize — Launch Real-Time Agent Dashboard
2
+
3
+ You are launching the GSD-T real-time agent dashboard — an SSE-backed browser visualization of agent activity.
4
+
5
+ ## Step 0: Launch via Subagent
6
+
7
+ When invoked directly by the user, spawn yourself as a Task subagent for a fresh context window.
8
+
9
+ **OBSERVABILITY LOGGING — before spawning:**
10
+
11
+ Run via Bash:
12
+ `T_START=$(date +%s) && DT_START=$(date +"%Y-%m-%d %H:%M") && TOK_START=${CLAUDE_CONTEXT_TOKENS_USED:-0} && TOK_MAX=${CLAUDE_CONTEXT_TOKENS_MAX:-200000}`
13
+
14
+ ```
15
+ Task subagent (general-purpose, model: sonnet):
16
+ "Run the GSD-T visualize command. Read commands/gsd-t-visualize.md for your full instructions.
17
+ Arguments: {$ARGUMENTS}
18
+ Skip Step 0 — you are already the subagent."
19
+ ```
20
+
21
+ **OBSERVABILITY LOGGING — after subagent returns:**
22
+
23
+ Run via Bash:
24
+ `T_END=$(date +%s) && DT_END=$(date +"%Y-%m-%d %H:%M") && TOK_END=${CLAUDE_CONTEXT_TOKENS_USED:-0} && DURATION=$((T_END-T_START))`
25
+
26
+ Compute tokens:
27
+ - No compaction (TOK_END >= TOK_START): `TOKENS=$((TOK_END-TOK_START))`, COMPACTED=null
28
+ - Compaction detected (TOK_END < TOK_START): `TOKENS=$(((TOK_MAX-TOK_START)+TOK_END))`, COMPACTED=$DT_END
29
+
30
+ Append to `.gsd-t/token-log.md` (create with header `| Datetime-start | Datetime-end | Command | Step | Model | Duration(s) | Notes | Tokens | Compacted |` if missing):
31
+ `| {DT_START} | {DT_END} | gsd-t-visualize | Step 0 | sonnet | {DURATION}s | dashboard launched | {TOKENS} | {COMPACTED} |`
32
+
33
+ Return the subagent's output and stop. Only skip Step 0 if you are already running as a subagent.
34
+
35
+ ## Step 1: Write command_invoked Event
36
+
37
+ Run via Bash:
38
+ ```bash
39
+ node ~/.claude/scripts/gsd-t-event-writer.js --type command_invoked --command gsd-t-visualize --reasoning "Launching dashboard" || true
40
+ ```
41
+
42
+ ## Step 1.5: Context Metrics for Dashboard
43
+
44
+ If `.gsd-t/token-log.md` exists, the dashboard server automatically reads it and provides context utilization metrics for visualization. These metrics are served from the `/api/token-breakdown` endpoint and rendered as:
45
+
46
+ 1. **Context utilization timeline** — Ctx% over time, ordered by Datetime-start
47
+ 2. **Token breakdown by domain** — bar chart grouping Tokens by Domain column (gracefully handles older rows without Domain column — they are grouped as "(untagged)")
48
+ 3. **Compaction proximity warnings** — rows where Ctx% >= 70 are highlighted; rows where Ctx% >= 85 are marked critical (🔴)
49
+
50
+ If `.gsd-t/token-log.md` does not exist, context metrics panels are hidden (not shown as errors).
51
+
52
+ ## Step 1.6: Graph Data for Dashboard
53
+
54
+ If `.gsd-t/graph/index.json` exists, the dashboard can render entity-relationship visualizations from the graph data. The dashboard server will detect and serve graph data automatically — no additional configuration needed.
55
+
56
+ ## Step 2: Check $ARGUMENTS for "stop"
57
+
58
+ If `$ARGUMENTS` contains "stop", skip to **Step 5**. Otherwise continue to Step 3.
59
+
60
+ ## Step 3: Check if Server is Already Running
61
+
62
+ Run via Bash:
63
+ ```bash
64
+ if [ -f .gsd-t/dashboard.pid ]; then
65
+ PID=$(cat .gsd-t/dashboard.pid)
66
+ curl -sf http://localhost:7433/ping 2>/dev/null | grep -q '"ok"' && echo "SERVER_RUNNING=true" || echo "SERVER_RUNNING=false"
67
+ else
68
+ echo "SERVER_RUNNING=false"
69
+ fi
70
+ ```
71
+
72
+ If output is `SERVER_RUNNING=true`, skip Step 3a and go directly to Step 4.
73
+
74
+ ### Step 3a: Start Server if Not Running
75
+
76
+ Run via Bash:
77
+ ```bash
78
+ node ~/.claude/scripts/gsd-t-dashboard-server.js --detach || true
79
+ for i in 1 2 3 4 5; do
80
+ curl -sf http://localhost:7433/ping 2>/dev/null | grep -q '"ok"' && break
81
+ sleep 1
82
+ done
83
+ ```
84
+
85
+ ## Step 4: Open Browser
86
+
87
+ Run via Bash:
88
+ ```bash
89
+ node -e "const {execFileSync}=require('child_process'); const url='http://localhost:7433'; try { if(process.platform==='win32'){execFileSync('cmd',['/c','start','',url],{stdio:'ignore'})}else{execFileSync(process.platform==='darwin'?'open':'xdg-open',[url],{stdio:'ignore'})} } catch(e) { console.error('Could not open browser:', e.message); }" || true
90
+ ```
91
+
92
+ Report to the user: "Dashboard is running at http://localhost:7433 — browser opened."
93
+
94
+ ## Step 5: Stop Handler
95
+
96
+ Run only when `$ARGUMENTS` contains "stop".
97
+
98
+ Run via Bash:
99
+ ```bash
100
+ if [ -f .gsd-t/dashboard.pid ]; then
101
+ PID=$(cat .gsd-t/dashboard.pid)
102
+ curl -sf http://localhost:7433/stop 2>/dev/null || kill $PID 2>/dev/null || true
103
+ rm -f .gsd-t/dashboard.pid
104
+ echo "Dashboard server stopped"
105
+ else
106
+ echo "No dashboard server running (no .gsd-t/dashboard.pid found)"
107
+ fi
108
+ ```
109
+
110
+ ## Document Ripple
111
+
112
+ Note: All 4 reference files (README.md, docs/GSD-T-README.md, templates/CLAUDE-global.md, commands/gsd-t-help.md) are updated in Task 3 of Milestone 15, not here.
113
+
114
+ $ARGUMENTS
115
+
116
+ ## Auto-Clear
117
+
118
+ All work is committed to project files. Execute `/clear` to free the context window for the next command.