@tekyzinc/gsd-t 2.50.12 → 2.53.10
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/CHANGELOG.md +24 -0
- package/README.md +379 -372
- package/bin/component-registry.js +250 -0
- package/bin/graph-cgc.js +510 -510
- package/bin/graph-indexer.js +147 -147
- package/bin/graph-overlay.js +195 -195
- package/bin/graph-parsers.js +327 -327
- package/bin/graph-query.js +453 -452
- package/bin/graph-store.js +154 -154
- package/bin/qa-calibrator.js +194 -0
- package/bin/scan-data-collector.js +153 -153
- package/bin/scan-diagrams-generators.js +187 -187
- package/bin/scan-diagrams.js +79 -79
- package/bin/scan-renderer.js +92 -92
- package/bin/scan-report-sections.js +121 -121
- package/bin/scan-report.js +184 -184
- package/bin/scan-schema-parsers.js +199 -199
- package/bin/scan-schema.js +103 -103
- package/bin/token-budget.js +246 -0
- package/commands/Claude-md.md +10 -10
- package/commands/branch.md +15 -15
- package/commands/checkin.md +45 -45
- package/commands/global-change.md +209 -209
- package/commands/gsd-t-audit.md +199 -0
- package/commands/gsd-t-backlog-add.md +94 -94
- package/commands/gsd-t-backlog-edit.md +111 -111
- package/commands/gsd-t-backlog-list.md +63 -63
- package/commands/gsd-t-backlog-move.md +94 -94
- package/commands/gsd-t-backlog-promote.md +123 -123
- package/commands/gsd-t-backlog-remove.md +86 -86
- package/commands/gsd-t-backlog-settings.md +158 -158
- package/commands/gsd-t-complete-milestone.md +528 -515
- package/commands/gsd-t-debug.md +506 -399
- package/commands/gsd-t-discuss.md +174 -174
- package/commands/gsd-t-execute.md +758 -634
- package/commands/gsd-t-feature.md +276 -276
- package/commands/gsd-t-health.md +142 -142
- package/commands/gsd-t-help.md +465 -457
- package/commands/gsd-t-impact.md +302 -302
- package/commands/gsd-t-init.md +320 -280
- package/commands/gsd-t-integrate.md +365 -249
- package/commands/gsd-t-milestone.md +87 -87
- package/commands/gsd-t-partition.md +442 -361
- package/commands/gsd-t-pause.md +82 -82
- package/commands/gsd-t-plan.md +345 -344
- package/commands/gsd-t-populate.md +111 -111
- package/commands/gsd-t-prd.md +326 -326
- package/commands/gsd-t-project.md +211 -211
- package/commands/gsd-t-promote-debt.md +123 -123
- package/commands/gsd-t-prompt.md +137 -137
- package/commands/gsd-t-qa.md +266 -266
- package/commands/gsd-t-quick.md +357 -234
- package/commands/gsd-t-reflect.md +134 -134
- package/commands/gsd-t-resume.md +72 -72
- package/commands/gsd-t-scan.md +615 -615
- package/commands/gsd-t-setup.md +76 -0
- package/commands/gsd-t-status.md +192 -166
- package/commands/gsd-t-test-sync.md +381 -381
- package/commands/gsd-t-triage-and-merge.md +171 -171
- package/commands/gsd-t-verify.md +382 -382
- package/commands/gsd-t-visualize.md +118 -118
- package/commands/gsd-t-wave.md +401 -378
- package/docs/GSD-T-README.md +425 -422
- package/docs/architecture.md +385 -369
- package/docs/harness-design-analysis.md +371 -0
- package/docs/infrastructure.md +205 -205
- package/docs/prd-graph-engine.md +398 -398
- package/docs/prd-gsd2-hybrid.md +559 -559
- package/docs/prd-harness-evolution.md +583 -0
- package/docs/requirements.md +14 -0
- package/docs/workflows.md +226 -226
- package/examples/.gsd-t/domains/example-domain/scope.md +13 -13
- package/package.json +40 -40
- package/scripts/gsd-t-auto-route.js +39 -39
- package/scripts/gsd-t-dashboard-mockup.html +1143 -1143
- package/scripts/gsd-t-dashboard-server.js +171 -171
- package/scripts/gsd-t-dashboard.html +262 -262
- package/scripts/gsd-t-event-writer.js +128 -128
- package/scripts/gsd-t-statusline.js +94 -94
- package/scripts/gsd-t-tools.js +175 -175
- package/templates/CLAUDE-global.md +639 -614
- package/templates/CLAUDE-project.md +24 -0
- package/templates/backlog-settings.md +18 -18
- package/templates/backlog.md +1 -1
- package/templates/progress.md +40 -40
- package/templates/shared-services-contract.md +60 -60
- package/templates/stacks/desktop.ini +2 -2
- package/bin/desktop.ini +0 -2
- package/commands/desktop.ini +0 -2
- package/docs/ci-examples/desktop.ini +0 -2
- package/docs/desktop.ini +0 -2
- package/examples/.gsd-t/contracts/desktop.ini +0 -2
- package/examples/.gsd-t/desktop.ini +0 -2
- package/examples/.gsd-t/domains/desktop.ini +0 -2
- package/examples/.gsd-t/domains/example-domain/desktop.ini +0 -2
- package/examples/desktop.ini +0 -2
- package/examples/rules/desktop.ini +0 -2
- package/scripts/desktop.ini +0 -2
- 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.
|