sprinty-mcp 0.1.2 → 0.1.3

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 (50) hide show
  1. package/README.md +23 -8
  2. package/clients/claude/.claude-plugin/plugin.json +1 -1
  3. package/clients/gemini/GEMINI.md +1 -1
  4. package/clients/gemini/gemini-extension.json +1 -1
  5. package/dist/dashboard/page.d.ts +1 -1
  6. package/dist/dashboard/page.js +2 -1
  7. package/dist/dashboard/page.js.map +1 -1
  8. package/dist/dashboard/server.js +2 -1
  9. package/dist/dashboard/server.js.map +1 -1
  10. package/dist/dashboard/ui/model.d.ts +3 -1
  11. package/dist/dashboard/ui/model.js +29 -9
  12. package/dist/dashboard/ui/model.js.map +1 -1
  13. package/dist/dashboard-ui/assets/index-DqR_XeMj.js +66 -0
  14. package/dist/dashboard-ui/assets/index-xdWTtMVs.css +1 -0
  15. package/dist/dashboard-ui/index.html +2 -2
  16. package/dist/domain/change-map.js +13 -4
  17. package/dist/domain/change-map.js.map +1 -1
  18. package/dist/domain/changelog.js +17 -4
  19. package/dist/domain/changelog.js.map +1 -1
  20. package/dist/domain/coverage.d.ts +145 -0
  21. package/dist/domain/coverage.js +5 -0
  22. package/dist/domain/coverage.js.map +1 -1
  23. package/dist/domain/events.d.ts +714 -24
  24. package/dist/domain/events.js +5 -2
  25. package/dist/domain/events.js.map +1 -1
  26. package/dist/domain/gates.d.ts +58 -1
  27. package/dist/domain/gates.js +10 -0
  28. package/dist/domain/gates.js.map +1 -1
  29. package/dist/domain/projection.d.ts +3 -1
  30. package/dist/domain/projection.js +17 -6
  31. package/dist/domain/projection.js.map +1 -1
  32. package/dist/server.js +10 -2
  33. package/dist/server.js.map +1 -1
  34. package/dist/store/store.d.ts +2 -0
  35. package/dist/store/store.js +80 -28
  36. package/dist/store/store.js.map +1 -1
  37. package/dist/tools/current.d.ts +10 -1
  38. package/dist/tools/current.js +36 -6
  39. package/dist/tools/current.js.map +1 -1
  40. package/dist/tools/register.d.ts +1 -1
  41. package/dist/tools/register.js +15 -7
  42. package/dist/tools/register.js.map +1 -1
  43. package/dist/tools/schemas.d.ts +81 -1
  44. package/dist/tools/schemas.js +14 -1
  45. package/dist/tools/schemas.js.map +1 -1
  46. package/package.json +2 -1
  47. package/skills/how-to-run-a-sprint/SKILL.md +24 -10
  48. package/skills/using-sprinty/SKILL.md +25 -9
  49. package/dist/dashboard-ui/assets/index-BsA3aPfs.css +0 -1
  50. package/dist/dashboard-ui/assets/index-C2yPOgFO.js +0 -66
package/README.md CHANGED
@@ -59,8 +59,10 @@ Sprinty does not guess from the MCP server process cwd. Start a sprint with expl
59
59
  ```
60
60
 
61
61
  `git_dir` is where commits, gates, coverage, and change maps run. `data_dir` is where Sprinty stores
62
- the `current` pointer and append-only JSONL ledgers. For read-only tools before `sprint_new`, you may
63
- pre-bind the MCP server with `SPRINTY_GIT_DIR` and `SPRINTY_DATA_DIR` or `--git-dir` and
62
+ the `current` pointer and append-only JSONL ledgers. Use a worktree-scoped, uncommitted `data_dir`,
63
+ such as `<git_dir>/.sprinty` when that path is gitignored; avoid shared temp dirs or any directory
64
+ that will be committed. For read-only tools before `sprint_new`, you may pre-bind the MCP server
65
+ with `SPRINTY_GIT_DIR` and `SPRINTY_DATA_DIR` or `--git-dir` and
64
66
  `--data-dir`; both are required together. `SPRINTY_REPO_DIR` and `SPRINTY_WORKTREE` remain accepted
65
67
  as legacy aliases for `git_dir` only when a `data_dir` is also supplied.
66
68
 
@@ -97,7 +99,7 @@ sprint_new(goal, git_dir, data_dir, context_notes?)
97
99
  -> dashboard()
98
100
  -> subsprint_new(description, goals[], gates[], dependencies?)
99
101
  -> spike(description, goals[], gates[], dependencies?)
100
- -> add(subsprint, description, code_locations[], gates[], dependencies?)
102
+ -> add(subsprint, title, description, code_locations[], gates[], dependencies?)
101
103
  -> artifact_add/list/amend/deprecate(...)
102
104
  -> follow_up(target, description, bug_id|bug_ids)
103
105
  -> dependencies(target, dependencies[])
@@ -125,7 +127,8 @@ commit ids and changelog lines for completed items, changed-file hotspots, and a
125
127
  from the immutable timeline.
126
128
 
127
129
  The dashboard server binds to `127.0.0.1` on an ephemeral port and is read-only. It lives only for
128
- the running MCP server process.
130
+ the running MCP server process, and a successful `sprint_close()` or `sprint_archive()` stops that
131
+ dashboard URL so old sprint dashboards do not pile up.
129
132
 
130
133
  ## Proof Model
131
134
 
@@ -135,21 +138,33 @@ items require a real git commit id and controlled changelog entry when `done()`
135
138
  Git-backed change map for the commit: file, language, directory, additions, deletions, net change,
136
139
  churn, item ids, and commit ids. `changelog()` renders a Markdown release note with semver sections,
137
140
  coverage, and change-map tables. `done()` also requires passing evidence for every declared item
138
- gate, including manual gates. Dependencies are stored as a real graph: `current()` returns nodes,
139
- edges, adjacency indexes, topological order, and cycle information; writes reject cycles. At close,
140
- executable gates are re-run by Sprinty and `sprint_close()` requires an LCOV coverage report path.
141
+ gate, including manual gates. When an early declared gate was a placeholder, `done()` can record an
142
+ explicit supersession: the final passing gate result names the declared gate in `supersedes` and
143
+ includes a `supersession_reason`, preserving strict evidence without pretending the placeholder
144
+ command was the final proof. Dependencies are stored as a real graph: `current()` returns nodes,
145
+ edges, adjacency indexes, topological order, cycle information, the first actionable `current`
146
+ item, actionable `next` items, `blocked_open` items, and enriched relation rows that name direct
147
+ blockers/unblocked work with statuses. Writes reject cycles. At close, executable gates are re-run
148
+ by Sprinty and `sprint_close()` requires an LCOV coverage report path.
141
149
  Artifacts are append-only too: amendments and deprecations are separate ledger events, never
142
150
  in-place edits or deletes. Follow-ups require bug ids. Spikes are subsprints with a `spike` flag:
143
151
  they can have normal items, but must be concluded or deprecated with a reason, and spike work is
144
152
  kept out of release changelog output.
145
153
 
154
+ Items have two text fields by design: `title` is a short one-line label for the tree/dashboard, and
155
+ `description` is bounded detail for the expanded item body. Use one item per independently
156
+ verifiable behavior, tool, endpoint, component, or migration step. If an item needs a list of
157
+ unrelated deliverables in the title, split it before adding it. Oversized `add()` calls return a
158
+ validation nudge to use `split()` or smaller atomic items.
159
+
146
160
  ## Storage
147
161
 
148
162
  One append-only JSONL ledger file per sprint under the explicit `data_dir`, with a `current` pointer
149
163
  naming the active sprint (this enforces one-open-sprint unicity for that binding). `git_dir` and
150
164
  `data_dir` are intentionally separate so agents can run gates against one checkout while storing
151
165
  Sprinty state somewhere deliberate. It is local state — keep it gitignored when `data_dir` lives
152
- inside a repository.
166
+ inside a repository, and scope it to the active worktree or repo instead of a shared process temp
167
+ directory.
153
168
 
154
169
  ## Develop
155
170
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprinty",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Disciplined sprint workflow: dashboard-at-start, feature subsprints, artifacts, bug-id follow-ups, spike investigations, an immutable git-anchored ledger, and programmatic close gates.",
5
5
  "author": { "name": "Elie Bursztein" },
6
6
  "homepage": "https://github.com/ebursztein/sprinty",
@@ -9,7 +9,7 @@ sprint_new(goal, git_dir, data_dir, context_notes?)
9
9
  -> dashboard()
10
10
  -> subsprint_new(description, goals[], gates[], dependencies?)
11
11
  -> spike(description, goals[], gates[], dependencies?)
12
- -> add(subsprint, description, code_locations[], gates[], dependencies?)
12
+ -> add(subsprint, title, description, code_locations[], gates[], dependencies?)
13
13
  -> artifact_add/list/amend/deprecate(...)
14
14
  -> follow_up(target, description, bug_id|bug_ids)
15
15
  -> dependencies(target, dependencies[])
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprinty",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Disciplined sprint workflow with dashboard-at-start, feature subsprints, artifacts, bug-id follow-ups, spike investigations, an immutable git-anchored ledger, and close gates.",
5
5
  "contextFileName": "GEMINI.md",
6
6
  "mcpServers": {
@@ -1 +1 @@
1
- export declare const PAGE = "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n<title>sprinty dashboard</title>\n<style>\n:root{color-scheme:dark;--bg:#101112;--panel:#191b1f;--panel2:#20242a;--line:#333842;--text:#f0f2f4;--muted:#9ca6b3;--blue:#80b8ff;--green:#7bd88f;--red:#ff8b8b;--yellow:#f4c96b}\n*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.45 ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,\"Segoe UI\",sans-serif}\nheader{display:grid;grid-template-columns:1fr auto;gap:1rem;align-items:end;padding:1.25rem 1.5rem;border-bottom:1px solid var(--line);background:#15171a}\nh1{margin:0;font-size:1.25rem;font-weight:700;letter-spacing:0}.meta{display:flex;flex-wrap:wrap;gap:.6rem;color:var(--muted);font-size:.85rem}.pill{border:1px solid var(--line);border-radius:999px;padding:.2rem .55rem;background:var(--panel2);color:var(--muted)}\n.pill.active{color:var(--green);border-color:#3b7049}.pill.closed{color:var(--blue);border-color:#355c88}\nmain{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(22rem,.75fr);gap:1rem;padding:1rem;max-width:1400px;margin:0 auto}\nsection{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:1rem;min-width:0}section+section{margin-top:1rem}\nh2{margin:0 0 .75rem;font-size:.82rem;text-transform:uppercase;color:var(--muted);letter-spacing:.04em}\n.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem}.metric{background:var(--panel2);border:1px solid var(--line);border-radius:6px;padding:.75rem}.metric b{display:block;font-size:1.3rem}.metric span{color:var(--muted);font-size:.8rem}\n.sub{border-top:1px solid var(--line);padding:1rem 0}.sub:first-child{border-top:0;padding-top:0}.row{display:flex;gap:.6rem;align-items:center;justify-content:space-between}.title{font-weight:650}.desc{color:var(--muted);margin:.15rem 0 .6rem}.items{display:grid;gap:.55rem}\n.item{border:1px solid var(--line);background:var(--panel2);border-radius:6px;padding:.7rem}.item.terminal{opacity:.72}.item-head{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center;margin-bottom:.3rem}.id{font:12px ui-monospace,monospace;color:var(--blue)}\n.status{font-size:.75rem;color:var(--muted)}.open{color:var(--yellow)}.completed{color:var(--green)}.split{color:var(--blue)}.deprecated,.failed{color:var(--red)}\n.gates{display:grid;gap:.25rem;margin-top:.45rem}.gate{font:12px ui-monospace,monospace;color:var(--muted);overflow-wrap:anywhere}.gate.pass{color:var(--green)}.gate.fail{color:var(--red)}\n.timeline{display:grid;gap:.5rem}.event{display:grid;grid-template-columns:8.5rem minmax(0,1fr);gap:.7rem;border-top:1px solid var(--line);padding-top:.5rem}.event:first-child{border-top:0;padding-top:0}.time{color:var(--muted);font:12px ui-monospace,monospace}.event b{font-size:.82rem}.event p{margin:.12rem 0 0;color:var(--muted);overflow-wrap:anywhere}\n.empty{color:var(--muted);padding:.6rem 0}.error{color:var(--red)}\n@media(max-width:850px){header{grid-template-columns:1fr}main{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.event{grid-template-columns:1fr}}\n</style>\n</head>\n<body>\n<header>\n <div>\n <h1 id=\"goal\">Loading sprint...</h1>\n <div class=\"meta\">\n <span id=\"branch\"></span>\n <span id=\"worktree\"></span>\n <span id=\"created\"></span>\n </div>\n </div>\n <span id=\"status\" class=\"pill\">loading</span>\n</header>\n<main>\n <div>\n <section>\n <h2>Progress</h2>\n <div class=\"metrics\">\n <div class=\"metric\"><b id=\"metric-subsprints\">0</b><span>subsprints</span></div>\n <div class=\"metric\"><b id=\"metric-items\">0</b><span>items</span></div>\n <div class=\"metric\"><b id=\"metric-open\">0</b><span>open</span></div>\n <div class=\"metric\"><b id=\"metric-gates\">0</b><span>gate results</span></div>\n <div class=\"metric\"><b id=\"metric-coverage\">--</b><span>line coverage</span></div>\n </div>\n </section>\n <section>\n <h2>Active Items</h2>\n <div id=\"active-items\" class=\"items\"></div>\n </section>\n <section>\n <h2>Subsprints</h2>\n <div id=\"subsprints\"></div>\n </section>\n </div>\n <aside>\n <section>\n <h2>Hotspots</h2>\n <div id=\"hotspots\" class=\"items\"></div>\n </section>\n <section>\n <h2>Timeline</h2>\n <div id=\"timeline\" class=\"timeline\"></div>\n </section>\n </aside>\n</main>\n<script>\nfunction byId(id){return document.getElementById(id)}\nfunction clear(node){node.replaceChildren()}\nfunction text(tag, className, value){\n const node=document.createElement(tag);\n if(className)node.className=className;\n node.textContent=value == null ? \"\" : String(value);\n return node;\n}\nfunction fmt(ts){\n if(!ts)return \"\";\n const d=new Date(ts);\n return Number.isNaN(d.valueOf()) ? ts : d.toLocaleString();\n}\nfunction summarize(s){\n const subs=s.subsprints||[];\n const items=subs.flatMap(function(ss){return ss.items||[]});\n const gateResults=items.reduce(function(n,i){return n+(i.gate_results||[]).length},0);\n return {subs:subs,items:items,open:items.filter(function(i){return i.status===\"open\"}),gateResults:gateResults};\n}\nfunction renderGateResults(item, target){\n const gates=document.createElement(\"div\");\n gates.className=\"gates\";\n const results=item.gate_results||[];\n if(results.length===0){\n gates.append(text(\"div\",\"gate\",\"pending evidence\"));\n } else {\n results.forEach(function(g){\n gates.append(text(\"div\",\"gate \"+(g.passed?\"pass\":\"fail\"),(g.passed?\"pass \":\"fail \")+g.kind+\": \"+g.spec+\" - \"+g.evidence));\n });\n }\n target.append(gates);\n}\nfunction renderItem(item){\n const node=document.createElement(\"div\");\n node.className=\"item \"+(item.status!==\"open\"?\"terminal\":\"\");\n const head=document.createElement(\"div\");\n head.className=\"item-head\";\n head.append(text(\"span\",\"id\",item.id));\n head.append(text(\"span\",\"status \"+item.status,item.disposition||item.status));\n if(item.commit_id)head.append(text(\"span\",\"status\",\"commit \"+item.commit_id));\n if(item.changelog)head.append(text(\"span\",\"status\",item.changelog.verb+\": \"+item.changelog.line));\n head.append(text(\"span\",\"status\",fmt(item.created_at)));\n node.append(head);\n node.append(text(\"div\",\"title\",item.description));\n if(item.code_locations&&item.code_locations.length)node.append(text(\"div\",\"desc\",item.code_locations.join(\", \")));\n renderGateResults(item,node);\n return node;\n}\nfunction renderSubsprint(ss){\n const node=document.createElement(\"div\");\n node.className=\"sub\";\n const row=document.createElement(\"div\");\n row.className=\"row\";\n row.append(text(\"div\",\"title\",ss.id+\" - \"+ss.description));\n row.append(text(\"span\",\"pill \"+ss.status,ss.status));\n node.append(row);\n node.append(text(\"div\",\"desc\",(ss.goals||[]).join(\"; \")));\n const items=document.createElement(\"div\");\n items.className=\"items\";\n (ss.items||[]).forEach(function(item){items.append(renderItem(item))});\n if(!items.childNodes.length)items.append(text(\"div\",\"empty\",\"No items yet.\"));\n node.append(items);\n return node;\n}\nfunction renderTimeline(s){\n const timeline=byId(\"timeline\");\n clear(timeline);\n const events=(s.timeline||[]).slice(-30).reverse();\n if(events.length===0){timeline.append(text(\"div\",\"empty\",\"No events yet.\"));return}\n events.forEach(function(e){\n const node=document.createElement(\"div\");\n node.className=\"event\";\n node.append(text(\"div\",\"time\",fmt(e.ts)));\n const body=document.createElement(\"div\");\n body.append(text(\"b\",\"\",e.id+\" / \"+e.type));\n body.append(text(\"p\",\"\",e.text));\n node.append(body);\n timeline.append(node);\n });\n}\nfunction renderHotspots(s){\n const target=byId(\"hotspots\");\n clear(target);\n const rows=((s.change_map&&s.change_map.hotspots)||[]).slice(0,8);\n if(rows.length===0){target.append(text(\"div\",\"empty\",\"No changed files yet.\"));return}\n rows.forEach(function(row){\n const node=document.createElement(\"div\");\n node.className=\"item\";\n const head=document.createElement(\"div\");\n head.className=\"item-head\";\n head.append(text(\"span\",\"id\",row.file));\n head.append(text(\"span\",\"status\",\"churn \"+row.churn));\n head.append(text(\"span\",\"status\",\"+\"+row.additions+\" -\"+row.deletions));\n node.append(head);\n node.append(text(\"div\",\"desc\",row.language+\" / \"+row.directory+\" / \"+(row.items||[]).join(\", \")));\n target.append(node);\n });\n}\nfunction render(s){\n const summary=summarize(s);\n byId(\"goal\").textContent=s.goal||\"(no sprint)\";\n byId(\"branch\").textContent=s.branch ? \"branch \"+s.branch : \"\";\n byId(\"worktree\").textContent=\"git \"+(s.dir||s.worktree||\"\")+\" data \"+(s.data_dir||\"\");\n byId(\"created\").textContent=s.created_at ? \"started \"+fmt(s.created_at) : \"\";\n const status=byId(\"status\");\n status.className=\"pill \"+(s.status||\"active\");\n status.textContent=s.status||\"active\";\n byId(\"metric-subsprints\").textContent=String(summary.subs.length);\n byId(\"metric-items\").textContent=String(summary.items.length);\n byId(\"metric-open\").textContent=String(summary.open.length);\n byId(\"metric-gates\").textContent=String(summary.gateResults);\n byId(\"metric-coverage\").textContent=s.coverage&&s.coverage.lines ? String(s.coverage.lines.percent)+\"%\" : \"--\";\n const active=byId(\"active-items\");\n clear(active);\n summary.open.forEach(function(item){active.append(renderItem(item))});\n if(!active.childNodes.length)active.append(text(\"div\",\"empty\",\"No open items.\"));\n const subsprints=byId(\"subsprints\");\n clear(subsprints);\n summary.subs.forEach(function(ss){subsprints.append(renderSubsprint(ss))});\n if(!subsprints.childNodes.length)subsprints.append(text(\"div\",\"empty\",\"No subsprints yet.\"));\n renderHotspots(s);\n renderTimeline(s);\n}\nasync function tick(){\n try{\n const response=await fetch(\"/state\");\n render(await response.json());\n }catch(err){\n byId(\"goal\").textContent=\"Dashboard disconnected\";\n const active=byId(\"active-items\");\n clear(active);\n active.append(text(\"div\",\"error\",err && err.message ? err.message : \"Unable to load state.\"));\n }\n}\ntick();setInterval(tick,2000);\n</script>\n</body>\n</html>";
1
+ export declare const PAGE = "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">\n<title>sprinty dashboard</title>\n<style>\n:root{color-scheme:dark;--bg:#101112;--panel:#191b1f;--panel2:#20242a;--line:#333842;--text:#f0f2f4;--muted:#9ca6b3;--blue:#80b8ff;--green:#7bd88f;--red:#ff8b8b;--yellow:#f4c96b}\n*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.45 ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,\"Segoe UI\",sans-serif}\nheader{display:grid;grid-template-columns:1fr auto;gap:1rem;align-items:end;padding:1.25rem 1.5rem;border-bottom:1px solid var(--line);background:#15171a}\nh1{margin:0;font-size:1.25rem;font-weight:700;letter-spacing:0}.meta{display:flex;flex-wrap:wrap;gap:.6rem;color:var(--muted);font-size:.85rem}.pill{border:1px solid var(--line);border-radius:999px;padding:.2rem .55rem;background:var(--panel2);color:var(--muted)}\n.pill.active{color:var(--green);border-color:#3b7049}.pill.closed{color:var(--blue);border-color:#355c88}\nmain{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(22rem,.75fr);gap:1rem;padding:1rem;max-width:1400px;margin:0 auto}\nsection{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:1rem;min-width:0}section+section{margin-top:1rem}\nh2{margin:0 0 .75rem;font-size:.82rem;text-transform:uppercase;color:var(--muted);letter-spacing:.04em}\n.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem}.metric{background:var(--panel2);border:1px solid var(--line);border-radius:6px;padding:.75rem}.metric b{display:block;font-size:1.3rem}.metric span{color:var(--muted);font-size:.8rem}\n.sub{border-top:1px solid var(--line);padding:1rem 0}.sub:first-child{border-top:0;padding-top:0}.row{display:flex;gap:.6rem;align-items:center;justify-content:space-between}.title{font-weight:650}.desc{color:var(--muted);margin:.15rem 0 .6rem}.items{display:grid;gap:.55rem}\n.item{border:1px solid var(--line);background:var(--panel2);border-radius:6px;padding:.7rem}.item.terminal{opacity:.72}.item-head{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center;margin-bottom:.3rem}.id{font:12px ui-monospace,monospace;color:var(--blue)}\n.status{font-size:.75rem;color:var(--muted)}.open{color:var(--yellow)}.completed{color:var(--green)}.split{color:var(--blue)}.deprecated,.failed{color:var(--red)}\n.gates{display:grid;gap:.25rem;margin-top:.45rem}.gate{font:12px ui-monospace,monospace;color:var(--muted);overflow-wrap:anywhere}.gate.pass{color:var(--green)}.gate.fail{color:var(--red)}\n.timeline{display:grid;gap:.5rem}.event{display:grid;grid-template-columns:8.5rem minmax(0,1fr);gap:.7rem;border-top:1px solid var(--line);padding-top:.5rem}.event:first-child{border-top:0;padding-top:0}.time{color:var(--muted);font:12px ui-monospace,monospace}.event b{font-size:.82rem}.event p{margin:.12rem 0 0;color:var(--muted);overflow-wrap:anywhere}\n.empty{color:var(--muted);padding:.6rem 0}.error{color:var(--red)}\n@media(max-width:850px){header{grid-template-columns:1fr}main{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.event{grid-template-columns:1fr}}\n</style>\n</head>\n<body>\n<header>\n <div>\n <h1 id=\"goal\">Loading sprint...</h1>\n <div class=\"meta\">\n <span id=\"branch\"></span>\n <span id=\"worktree\"></span>\n <span id=\"created\"></span>\n </div>\n </div>\n <span id=\"status\" class=\"pill\">loading</span>\n</header>\n<main>\n <div>\n <section>\n <h2>Progress</h2>\n <div class=\"metrics\">\n <div class=\"metric\"><b id=\"metric-subsprints\">0</b><span>subsprints</span></div>\n <div class=\"metric\"><b id=\"metric-items\">0</b><span>items</span></div>\n <div class=\"metric\"><b id=\"metric-open\">0</b><span>open</span></div>\n <div class=\"metric\"><b id=\"metric-gates\">0</b><span>gate results</span></div>\n <div class=\"metric\"><b id=\"metric-coverage\">--</b><span>line coverage</span></div>\n </div>\n </section>\n <section>\n <h2>Active Items</h2>\n <div id=\"active-items\" class=\"items\"></div>\n </section>\n <section>\n <h2>Subsprints</h2>\n <div id=\"subsprints\"></div>\n </section>\n </div>\n <aside>\n <section>\n <h2>Hotspots</h2>\n <div id=\"hotspots\" class=\"items\"></div>\n </section>\n <section>\n <h2>Timeline</h2>\n <div id=\"timeline\" class=\"timeline\"></div>\n </section>\n </aside>\n</main>\n<script>\nfunction byId(id){return document.getElementById(id)}\nfunction clear(node){node.replaceChildren()}\nfunction text(tag, className, value){\n const node=document.createElement(tag);\n if(className)node.className=className;\n node.textContent=value == null ? \"\" : String(value);\n return node;\n}\nfunction fmt(ts){\n if(!ts)return \"\";\n const d=new Date(ts);\n return Number.isNaN(d.valueOf()) ? ts : d.toLocaleString();\n}\nfunction summarize(s){\n const subs=s.subsprints||[];\n const items=subs.flatMap(function(ss){return ss.items||[]});\n const gateResults=items.reduce(function(n,i){return n+(i.gate_results||[]).length},0);\n return {subs:subs,items:items,open:items.filter(function(i){return i.status===\"open\"}),gateResults:gateResults};\n}\nfunction renderGateResults(item, target){\n const gates=document.createElement(\"div\");\n gates.className=\"gates\";\n const results=item.gate_results||[];\n if(results.length===0){\n gates.append(text(\"div\",\"gate\",\"pending evidence\"));\n } else {\n results.forEach(function(g){\n gates.append(text(\"div\",\"gate \"+(g.passed?\"pass\":\"fail\"),(g.passed?\"pass \":\"fail \")+g.kind+\": \"+g.spec+\" - \"+g.evidence));\n });\n }\n target.append(gates);\n}\nfunction renderItem(item){\n const node=document.createElement(\"div\");\n node.className=\"item \"+(item.status!==\"open\"?\"terminal\":\"\");\n const head=document.createElement(\"div\");\n head.className=\"item-head\";\n head.append(text(\"span\",\"id\",item.id));\n head.append(text(\"span\",\"status \"+item.status,item.disposition||item.status));\n if(item.commit_id)head.append(text(\"span\",\"status\",\"commit \"+item.commit_id));\n if(item.changelog)head.append(text(\"span\",\"status\",item.changelog.verb+\": \"+item.changelog.line));\n head.append(text(\"span\",\"status\",fmt(item.created_at)));\n node.append(head);\n node.append(text(\"div\",\"title\",item.title||item.description));\n if(item.title&&item.description&&item.title!==item.description)node.append(text(\"div\",\"desc\",item.description));\n if(item.code_locations&&item.code_locations.length)node.append(text(\"div\",\"desc\",item.code_locations.join(\", \")));\n renderGateResults(item,node);\n return node;\n}\nfunction renderSubsprint(ss){\n const node=document.createElement(\"div\");\n node.className=\"sub\";\n const row=document.createElement(\"div\");\n row.className=\"row\";\n row.append(text(\"div\",\"title\",ss.id+\" - \"+ss.description));\n row.append(text(\"span\",\"pill \"+ss.status,ss.status));\n node.append(row);\n node.append(text(\"div\",\"desc\",(ss.goals||[]).join(\"; \")));\n const items=document.createElement(\"div\");\n items.className=\"items\";\n (ss.items||[]).forEach(function(item){items.append(renderItem(item))});\n if(!items.childNodes.length)items.append(text(\"div\",\"empty\",\"No items yet.\"));\n node.append(items);\n return node;\n}\nfunction renderTimeline(s){\n const timeline=byId(\"timeline\");\n clear(timeline);\n const events=(s.timeline||[]).slice(-30).reverse();\n if(events.length===0){timeline.append(text(\"div\",\"empty\",\"No events yet.\"));return}\n events.forEach(function(e){\n const node=document.createElement(\"div\");\n node.className=\"event\";\n node.append(text(\"div\",\"time\",fmt(e.ts)));\n const body=document.createElement(\"div\");\n body.append(text(\"b\",\"\",e.id+\" / \"+e.type));\n body.append(text(\"p\",\"\",e.text));\n node.append(body);\n timeline.append(node);\n });\n}\nfunction renderHotspots(s){\n const target=byId(\"hotspots\");\n clear(target);\n const rows=((s.change_map&&s.change_map.hotspots)||[]).slice(0,8);\n if(rows.length===0){target.append(text(\"div\",\"empty\",\"No changed files yet.\"));return}\n rows.forEach(function(row){\n const node=document.createElement(\"div\");\n node.className=\"item\";\n const head=document.createElement(\"div\");\n head.className=\"item-head\";\n head.append(text(\"span\",\"id\",row.file));\n head.append(text(\"span\",\"status\",\"churn \"+row.churn));\n head.append(text(\"span\",\"status\",\"+\"+row.additions+\" -\"+row.deletions));\n node.append(head);\n node.append(text(\"div\",\"desc\",row.language+\" / \"+row.directory+\" / \"+(row.items||[]).join(\", \")));\n target.append(node);\n });\n}\nfunction render(s){\n const summary=summarize(s);\n byId(\"goal\").textContent=s.goal||\"(no sprint)\";\n byId(\"branch\").textContent=s.branch ? \"branch \"+s.branch : \"\";\n byId(\"worktree\").textContent=\"git \"+(s.dir||s.worktree||\"\")+\" data \"+(s.data_dir||\"\");\n byId(\"created\").textContent=s.created_at ? \"started \"+fmt(s.created_at) : \"\";\n const status=byId(\"status\");\n status.className=\"pill \"+(s.status||\"active\");\n status.textContent=s.status||\"active\";\n byId(\"metric-subsprints\").textContent=String(summary.subs.length);\n byId(\"metric-items\").textContent=String(summary.items.length);\n byId(\"metric-open\").textContent=String(summary.open.length);\n byId(\"metric-gates\").textContent=String(summary.gateResults);\n byId(\"metric-coverage\").textContent=s.coverage&&s.coverage.lines ? String(s.coverage.lines.percent)+\"%\" : \"--\";\n const active=byId(\"active-items\");\n clear(active);\n summary.open.forEach(function(item){active.append(renderItem(item))});\n if(!active.childNodes.length)active.append(text(\"div\",\"empty\",\"No open items.\"));\n const subsprints=byId(\"subsprints\");\n clear(subsprints);\n summary.subs.forEach(function(ss){subsprints.append(renderSubsprint(ss))});\n if(!subsprints.childNodes.length)subsprints.append(text(\"div\",\"empty\",\"No subsprints yet.\"));\n renderHotspots(s);\n renderTimeline(s);\n}\nasync function tick(){\n try{\n const response=await fetch(\"/state\");\n render(await response.json());\n }catch(err){\n byId(\"goal\").textContent=\"Dashboard disconnected\";\n const active=byId(\"active-items\");\n clear(active);\n active.append(text(\"div\",\"error\",err && err.message ? err.message : \"Unable to load state.\"));\n }\n}\ntick();setInterval(tick,2000);\n</script>\n</body>\n</html>";
@@ -111,7 +111,8 @@ function renderItem(item){
111
111
  if(item.changelog)head.append(text("span","status",item.changelog.verb+": "+item.changelog.line));
112
112
  head.append(text("span","status",fmt(item.created_at)));
113
113
  node.append(head);
114
- node.append(text("div","title",item.description));
114
+ node.append(text("div","title",item.title||item.description));
115
+ if(item.title&&item.description&&item.title!==item.description)node.append(text("div","desc",item.description));
115
116
  if(item.code_locations&&item.code_locations.length)node.append(text("div","desc",item.code_locations.join(", ")));
116
117
  renderGateResults(item,node);
117
118
  return node;
@@ -1 +1 @@
1
- {"version":3,"file":"page.js","sourceRoot":"","sources":["../../src/dashboard/page.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA+MZ,CAAC"}
1
+ {"version":3,"file":"page.js","sourceRoot":"","sources":["../../src/dashboard/page.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAgNZ,CAAC"}
@@ -25,6 +25,7 @@ export function startDashboard(getState) {
25
25
  changelog: [],
26
26
  change_map: { by_file: [], by_directory: [], by_language: [], hotspots: [] },
27
27
  coverage: null,
28
+ coverage_state: { status: "not_configured" },
28
29
  }));
29
30
  return;
30
31
  }
@@ -73,8 +74,8 @@ function contentType(path) {
73
74
  function dashboardStaticRoot() {
74
75
  const here = dirname(fileURLToPath(import.meta.url));
75
76
  const candidates = [
76
- join(here, "..", "dashboard-ui"),
77
77
  join(process.cwd(), "dist", "dashboard-ui"),
78
+ join(here, "..", "dashboard-ui"),
78
79
  ];
79
80
  return candidates.find((candidate) => existsSync(join(candidate, "index.html"))) ?? candidates[0];
80
81
  }
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/dashboard/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,MAAM,WAAW,CAAC;AAEtD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAKjC,MAAM,UAAU,cAAc,CAAC,QAAiC;I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CAAC,IAAI,UAAU,CAAC,CAAC,CAAE,CAAC;AACrG,CAAC"}
@@ -1,10 +1,11 @@
1
1
  import type { ArtifactView, ItemView, SprintView, SubsprintView, TimelineEntry } from "../../domain/projection.js";
2
- export type TreeTone = "done" | "active" | "current" | "next" | "muted" | "normal";
2
+ export type TreeTone = "done" | "active" | "current" | "next" | "blocked" | "muted" | "normal";
3
3
  export interface DashboardModel {
4
4
  sprint: SprintView;
5
5
  activeSubsprint: SubsprintView | null;
6
6
  currentItem: ItemView | null;
7
7
  nextItem: ItemView | null;
8
+ blockedItems: ItemView[];
8
9
  progress: {
9
10
  items: {
10
11
  total: number;
@@ -71,6 +72,7 @@ export interface TreeItem {
71
72
  tone: TreeTone;
72
73
  gateSummary: string;
73
74
  dependencies: string[];
75
+ blocked: boolean;
74
76
  }
75
77
  export interface TimelineRow {
76
78
  seq: number;
@@ -1,8 +1,9 @@
1
1
  export function deriveDashboardModel(sprint) {
2
2
  const items = sprint.subsprints.flatMap((sub) => sub.items);
3
- const openItems = orderOpenItems(sprint, items);
4
- const currentItem = openItems[0] ?? null;
5
- const nextItem = openItems[1] ?? null;
3
+ const { available, blocked } = orderOpenItems(sprint, items);
4
+ const blockedIds = new Set(blocked.map((item) => item.id));
5
+ const currentItem = available[0] ?? null;
6
+ const nextItem = available[1] ?? null;
6
7
  const activeSubsprint = currentItem
7
8
  ? sprint.subsprints.find((sub) => sub.id === currentItem.subsprint_id) ?? null
8
9
  : sprint.subsprints.find((sub) => sub.status === "open") ?? null;
@@ -20,8 +21,9 @@ export function deriveDashboardModel(sprint) {
20
21
  activeSubsprint,
21
22
  currentItem,
22
23
  nextItem,
24
+ blockedItems: blocked,
23
25
  progress: {
24
- items: { total: items.length, done, open: openItems.length, percent: percent(done, items.length) },
26
+ items: { total: items.length, done, open: items.length - done, percent: percent(done, items.length) },
25
27
  statuses: statusTotals,
26
28
  gates: gateTotals,
27
29
  subsprints: subsprintProgress,
@@ -32,20 +34,31 @@ export function deriveDashboardModel(sprint) {
32
34
  recent: sprint.artifacts.filter((artifact) => artifact.status === "active").slice(-6).reverse(),
33
35
  deprecated: sprint.artifacts.filter((artifact) => artifact.status === "deprecated"),
34
36
  },
35
- tree: sprint.subsprints.map((sub) => treeSubsprint(sub, activeSubsprint, currentItem, nextItem)),
37
+ tree: sprint.subsprints.map((sub) => treeSubsprint(sub, activeSubsprint, currentItem, nextItem, blockedIds)),
36
38
  timeline: sprint.timeline.slice().reverse().map(timelineRow),
37
39
  ledger: sprint.timeline.map(timelineRow),
38
40
  };
39
41
  }
40
42
  function orderOpenItems(sprint, items) {
41
43
  const openById = new Map(items.filter((item) => item.status === "open").map((item) => [item.id, item]));
44
+ const statusById = new Map(sprint.graph.nodes.map((node) => [node.id, node.status]));
42
45
  const ordered = (sprint.graph.topological_order ?? [])
43
46
  .map((id) => openById.get(id))
44
47
  .filter((item) => Boolean(item));
45
48
  const seen = new Set(ordered.map((item) => item.id));
46
- return [...ordered, ...items.filter((item) => item.status === "open" && !seen.has(item.id))];
49
+ const allOpen = [...ordered, ...items.filter((item) => item.status === "open" && !seen.has(item.id))];
50
+ const available = [];
51
+ const blocked = [];
52
+ for (const item of allOpen) {
53
+ const blockers = sprint.graph.blocked_by?.[item.id] ?? item.dependencies;
54
+ if (blockers.some((id) => statusById.get(id) === "open"))
55
+ blocked.push(item);
56
+ else
57
+ available.push(item);
58
+ }
59
+ return { available, blocked };
47
60
  }
48
- function treeSubsprint(sub, active, current, next) {
61
+ function treeSubsprint(sub, active, current, next, blockedIds) {
49
62
  const total = sub.items.length;
50
63
  const done = sub.items.filter((item) => item.status !== "open").length;
51
64
  const isActive = active?.id === sub.id;
@@ -59,11 +72,12 @@ function treeSubsprint(sub, active, current, next) {
59
72
  progress: { done, total, percent: percent(done, total) },
60
73
  items: sub.items.map((item) => ({
61
74
  id: item.id,
62
- label: item.description,
75
+ label: itemTitle(item),
63
76
  status: item.status,
64
- tone: item.id === current?.id ? "current" : item.id === next?.id ? "next" : item.status === "open" ? "normal" : "muted",
77
+ tone: item.id === current?.id ? "current" : item.id === next?.id ? "next" : blockedIds.has(item.id) ? "blocked" : item.status === "open" ? "normal" : "muted",
65
78
  gateSummary: gateSummary(item),
66
79
  dependencies: item.dependencies,
80
+ blocked: blockedIds.has(item.id),
67
81
  })),
68
82
  };
69
83
  }
@@ -100,6 +114,12 @@ function gateSummary(item) {
100
114
  const pending = Math.max(0, item.gates.length - passed - failed);
101
115
  return `${passed}/${item.gates.length} pass${failed ? `, ${failed} fail` : ""}${pending ? `, ${pending} pending` : ""}`;
102
116
  }
117
+ function itemTitle(item) {
118
+ const title = item.title;
119
+ if (title?.trim())
120
+ return title;
121
+ return item.description.split(/\s+/).slice(0, 10).join(" ");
122
+ }
103
123
  function timelineRow(entry) {
104
124
  return { seq: entry.seq, id: entry.id, type: entry.type, text: entry.text, time: entry.ts };
105
125
  }
@@ -1 +1 @@
1
- {"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/dashboard/ui/model.ts"],"names":[],"mappings":"AAoDA,MAAM,UAAU,oBAAoB,CAAC,MAAkB;IACrD,MAAM,KAAK,GAAG,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAC5D,MAAM,SAAS,GAAG,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAChD,MAAM,WAAW,GAAG,SAAS,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC;IACzC,MAAM,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC;IACtC,MAAM,eAAe,GAAG,WAAW;QACjC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,WAAW,CAAC,YAAY,CAAC,IAAI,IAAI;QAC9E,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,GAAG,EA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