sprinty-mcp 0.1.1 → 0.1.2

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 (57) hide show
  1. package/README.md +42 -10
  2. package/clients/claude/.claude-plugin/plugin.json +2 -2
  3. package/clients/codex/README.md +10 -0
  4. package/clients/gemini/GEMINI.md +18 -8
  5. package/clients/gemini/gemini-extension.json +2 -2
  6. package/dist/dashboard/page.d.ts +1 -1
  7. package/dist/dashboard/page.js +1 -1
  8. package/dist/dashboard/server.js +43 -0
  9. package/dist/dashboard/server.js.map +1 -1
  10. package/dist/dashboard/ui/model.d.ts +84 -0
  11. package/dist/dashboard/ui/model.js +109 -0
  12. package/dist/dashboard/ui/model.js.map +1 -0
  13. package/dist/dashboard/ui/src/main.d.ts +1 -0
  14. package/dist/dashboard/ui/src/main.js +6 -0
  15. package/dist/dashboard/ui/src/main.js.map +1 -0
  16. package/dist/dashboard-ui/assets/index-BsA3aPfs.css +1 -0
  17. package/dist/dashboard-ui/assets/index-C2yPOgFO.js +66 -0
  18. package/dist/dashboard-ui/index.html +13 -0
  19. package/dist/domain/changelog.js +1 -1
  20. package/dist/domain/changelog.js.map +1 -1
  21. package/dist/domain/enums.d.ts +3 -3
  22. package/dist/domain/enums.js +6 -3
  23. package/dist/domain/enums.js.map +1 -1
  24. package/dist/domain/events.d.ts +361 -0
  25. package/dist/domain/events.js +50 -1
  26. package/dist/domain/events.js.map +1 -1
  27. package/dist/domain/gates.d.ts +6 -0
  28. package/dist/domain/gates.js +2 -0
  29. package/dist/domain/gates.js.map +1 -1
  30. package/dist/domain/projection.d.ts +31 -1
  31. package/dist/domain/projection.js +119 -8
  32. package/dist/domain/projection.js.map +1 -1
  33. package/dist/domain/search.js +7 -0
  34. package/dist/domain/search.js.map +1 -1
  35. package/dist/gates/run.js +5 -3
  36. package/dist/gates/run.js.map +1 -1
  37. package/dist/ledger/book.d.ts +2 -2
  38. package/dist/ledger/book.js +2 -2
  39. package/dist/ledger/book.js.map +1 -1
  40. package/dist/server.d.ts +6 -0
  41. package/dist/server.js +107 -8
  42. package/dist/server.js.map +1 -1
  43. package/dist/store/store.d.ts +66 -4
  44. package/dist/store/store.js +196 -9
  45. package/dist/store/store.js.map +1 -1
  46. package/dist/tools/current.d.ts +4 -1
  47. package/dist/tools/current.js +40 -2
  48. package/dist/tools/current.js.map +1 -1
  49. package/dist/tools/register.d.ts +6 -1
  50. package/dist/tools/register.js +28 -16
  51. package/dist/tools/register.js.map +1 -1
  52. package/dist/tools/schemas.d.ts +187 -2
  53. package/dist/tools/schemas.js +36 -2
  54. package/dist/tools/schemas.js.map +1 -1
  55. package/package.json +31 -6
  56. package/skills/how-to-run-a-sprint/SKILL.md +20 -5
  57. package/skills/using-sprinty/SKILL.md +27 -10
package/README.md CHANGED
@@ -5,7 +5,8 @@ A disciplined-sprint MCP server for AI coding agents — **Claude Code, Codex, a
5
5
  Sprinty gives an agent first-class tools to run a sprint with structure that can't silently rot:
6
6
  structured **sprint → subsprint → item** objects, dependency graphs with topological ordering and
7
7
  cycle detection, an **immutable append-only ledger** anchored to real git commits,
8
- Git-backed **change maps**, Markdown changelogs with file tables, **programmatic close-gates**
8
+ Git-backed **change maps**, durable **artifacts**, bug-backed **follow-ups**, feature-sized
9
+ **spikes**, Markdown changelogs with file tables, **programmatic close-gates**
9
10
  that re-run your tests and require coverage evidence before a sprint can close, a **regex search**
10
11
  over the record, and a **live follow-along dashboard**.
11
12
 
@@ -22,7 +23,9 @@ Sprinty has two layers:
22
23
  - optional client manifests under `clients/` for agents that support plugins or extensions.
23
24
 
24
25
  The npm package is `sprinty-mcp`. The server, MCP tool namespace, and client manifests are named
25
- `sprinty`.
26
+ `sprinty`. The tarball ships the canonical top-level `skills/` directory; client directories in a
27
+ Git checkout may symlink to it, but package consumers should treat the top-level `skills/` directory
28
+ as authoritative.
26
29
 
27
30
  ### Claude Code
28
31
 
@@ -44,6 +47,23 @@ command = "npx"
44
47
  args = ["-y", "sprinty-mcp"]
45
48
  ```
46
49
 
50
+ Sprinty does not guess from the MCP server process cwd. Start a sprint with explicit paths:
51
+
52
+ ```json
53
+ {
54
+ "goal": "Build the catalogue MCP",
55
+ "git_dir": "/absolute/path/to/your/repo",
56
+ "data_dir": "/absolute/path/to/your/repo/.sprinty",
57
+ "context_notes": ["optional context"]
58
+ }
59
+ ```
60
+
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
64
+ `--data-dir`; both are required together. `SPRINTY_REPO_DIR` and `SPRINTY_WORKTREE` remain accepted
65
+ as legacy aliases for `git_dir` only when a `data_dir` is also supplied.
66
+
47
67
  Codex CLI plugin path: install the repo-local marketplace from a repository checkout:
48
68
 
49
69
  ```bash
@@ -73,11 +93,16 @@ content rather than copying it.
73
93
  ## The loop
74
94
 
75
95
  ```
76
- sprint_new(goal, context_notes?)
96
+ sprint_new(goal, git_dir, data_dir, context_notes?)
97
+ -> dashboard()
77
98
  -> subsprint_new(description, goals[], gates[], dependencies?)
99
+ -> spike(description, goals[], gates[], dependencies?)
78
100
  -> add(subsprint, description, code_locations[], gates[], dependencies?)
101
+ -> artifact_add/list/amend/deprecate(...)
102
+ -> follow_up(target, description, bug_id|bug_ids)
79
103
  -> dependencies(target, dependencies[])
80
104
  -> done(commit_id, gate_results[], changelog) | split(...) | deprecate(reason)
105
+ -> spike_conclude(subsprint, conclusion) | spike_deprecate(subsprint, reason)
81
106
  -> changelog()
82
107
  -> sprint_close(coverage: { path, format: "lcov", command? })
83
108
  ```
@@ -93,9 +118,11 @@ The dashboard is for the human sitting next to the agent.
93
118
  2. Open the returned `http://127.0.0.1:<port>` URL in a browser.
94
119
  3. Leave it open while the sprint runs; it refreshes every two seconds.
95
120
 
96
- The dashboard shows the sprint goal, branch/worktree, start time, progress counts, line coverage,
97
- open items, gate evidence, dependency graph state, commit ids and changelog lines for completed
98
- items, changed-file hotspots, and a timestamped timeline from the immutable ledger.
121
+ Agents should call `dashboard()` right after `sprint_new()` and show the URL to the human. The
122
+ dashboard shows the sprint goal, explicit git/data paths, branch/worktree, artifact shelf, sprint progress, item status
123
+ distribution, code churn, subsprint progress, open items, gate evidence, dependency graph state,
124
+ commit ids and changelog lines for completed items, changed-file hotspots, and a paginated ledger
125
+ from the immutable timeline.
99
126
 
100
127
  The dashboard server binds to `127.0.0.1` on an ephemeral port and is read-only. It lives only for
101
128
  the running MCP server process.
@@ -111,13 +138,18 @@ coverage, and change-map tables. `done()` also requires passing evidence for eve
111
138
  gate, including manual gates. Dependencies are stored as a real graph: `current()` returns nodes,
112
139
  edges, adjacency indexes, topological order, and cycle information; writes reject cycles. At close,
113
140
  executable gates are re-run by Sprinty and `sprint_close()` requires an LCOV coverage report path.
141
+ Artifacts are append-only too: amendments and deprecations are separate ledger events, never
142
+ in-place edits or deletes. Follow-ups require bug ids. Spikes are subsprints with a `spike` flag:
143
+ they can have normal items, but must be concluded or deprecated with a reason, and spike work is
144
+ kept out of release changelog output.
114
145
 
115
146
  ## Storage
116
147
 
117
- One append-only JSONL ledger file per sprint under `.sprinty/` in the repo you're working on, with a
118
- `.sprinty/current` pointer naming the active sprint (this enforces one-open-sprint unicity).
119
- `.sprinty/` is per working tree, so git worktrees run independent sprints. It is local state — keep
120
- it gitignored.
148
+ One append-only JSONL ledger file per sprint under the explicit `data_dir`, with a `current` pointer
149
+ naming the active sprint (this enforces one-open-sprint unicity for that binding). `git_dir` and
150
+ `data_dir` are intentionally separate so agents can run gates against one checkout while storing
151
+ Sprinty state somewhere deliberate. It is local state — keep it gitignored when `data_dir` lives
152
+ inside a repository.
121
153
 
122
154
  ## Develop
123
155
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sprinty",
3
- "version": "0.1.0",
4
- "description": "Disciplined sprint discipline: structured sprint/subsprint/item objects, an immutable git-anchored ledger, programmatic close-gates, and a live dashboard.",
3
+ "version": "0.1.2",
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",
7
7
  "repository": "https://github.com/ebursztein/sprinty",
@@ -20,12 +20,22 @@ The installed plugin provides:
20
20
  - Sprinty MCP tools through `npx -y sprinty-mcp`
21
21
  - shared Sprinty skills from the canonical repository `skills/` directory
22
22
 
23
+ The npm package includes the top-level `skills/` directory for MCP resource serving. Client
24
+ directories may contain symlinks to that canonical directory in a Git checkout; npm tarballs do not
25
+ need per-client skill copies.
26
+
23
27
  MCP-only setup without plugin skills:
24
28
 
25
29
  ```bash
26
30
  codex mcp add sprinty -- npx -y sprinty-mcp
27
31
  ```
28
32
 
33
+ Sprinty does not infer state from Codex's MCP launch cwd. Start every sprint with explicit
34
+ `git_dir` and `data_dir`; `git_dir` is where commits, gates, coverage, and change maps run, while
35
+ `data_dir` stores the `current` pointer and JSONL ledgers. For read-only tools before `sprint_new`,
36
+ you may pre-bind with both `SPRINTY_GIT_DIR` and `SPRINTY_DATA_DIR` or both `--git-dir` and
37
+ `--data-dir`.
38
+
29
39
  Do not copy skill files into client directories; keep them in the top-level `skills/` directory.
30
40
 
31
41
  For human visibility during a sprint, ask Codex to call `dashboard()` and open the returned
@@ -5,22 +5,32 @@ When a task is non-trivial, run a disciplined sprint with the sprinty MCP.
5
5
  See `skills/how-to-run-a-sprint` and `skills/using-sprinty`. The loop:
6
6
 
7
7
  ```
8
- sprint_new(goal, context_notes?)
8
+ sprint_new(goal, git_dir, data_dir, context_notes?)
9
+ -> dashboard()
9
10
  -> subsprint_new(description, goals[], gates[], dependencies?)
11
+ -> spike(description, goals[], gates[], dependencies?)
10
12
  -> add(subsprint, description, code_locations[], gates[], dependencies?)
13
+ -> artifact_add/list/amend/deprecate(...)
14
+ -> follow_up(target, description, bug_id|bug_ids)
11
15
  -> dependencies(target, dependencies[])
12
16
  -> done(commit_id, gate_results[], changelog) | split(...) | deprecate(reason)
17
+ -> spike_conclude(subsprint, conclusion) | spike_deprecate(subsprint, reason)
13
18
  -> changelog()
14
19
  -> sprint_close(coverage: { path, format: "lcov", command? })
15
20
  ```
16
21
 
17
- Rules: IDs are minted by the server (`S01`, `S01-001`) — never invent them. Every item needs a
22
+ Rules: IDs are minted by the server (`S01`, `S01-001`) — never invent them. Start with explicit
23
+ absolute `git_dir` and `data_dir`; `git_dir` is where commits/gates/coverage run, and `data_dir`
24
+ stores Sprinty's `current` pointer and JSONL ledgers. Every item needs a
18
25
  description, at least one code location, and at least one gate. `done` requires a real commit,
19
26
  passing evidence for every declared item gate, and a semver-style changelog line with a verb such as
20
- `added`, `fixed`, or `removed`. `split` and `deprecate` are terminal non-code exits. `current()`
21
- returns the dependency graph, including topological order and cycles. `done` records a Git-backed
22
- change map. `changelog()` returns Markdown with changelog and change-map tables. `sprint_close`
23
- rechecks commits, re-runs executable gates, requires an LCOV coverage report path, and refuses to
24
- close on any blocker. Use
25
- `search(pattern, context_lines)` to query the immutable ledger. Use `dashboard()` for a live view,
27
+ `added`, `fixed`, or `removed`. `split` and `deprecate` are terminal non-code exits. Each
28
+ subsprint should be one feature; use `spike()` for feature investigations, then close the spike with
29
+ `spike_conclude()` or `spike_deprecate()`. Use `artifact_add/list/amend/deprecate` for durable
30
+ outputs and `follow_up()` with bug ids for bugs found while moving fast. `current()` returns the
31
+ dependency graph, including topological order and cycles, plus relevant artifacts, recent artifacts,
32
+ and recent activity. `done` records a Git-backed change map. `changelog()` returns Markdown with
33
+ changelog and change-map tables. `sprint_close` rechecks commits, re-runs executable gates, requires
34
+ an LCOV coverage report path, and refuses to close on any blocker. Use `search(pattern,
35
+ context_lines)` to query the immutable ledger. Use `dashboard()` immediately after `sprint_new()`,
26
36
  and give the returned localhost URL to the human so they can watch the sprint timeline.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sprinty",
3
- "version": "0.1.0",
4
- "description": "Disciplined sprint discipline with an immutable git-anchored ledger and live dashboard.",
3
+ "version": "0.1.2",
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": {
7
7
  "sprinty": { "command": "npx", "args": ["-y", "sprinty-mcp"] }
@@ -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=s.worktree||s.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.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>";
@@ -170,7 +170,7 @@ function render(s){
170
170
  const summary=summarize(s);
171
171
  byId("goal").textContent=s.goal||"(no sprint)";
172
172
  byId("branch").textContent=s.branch ? "branch "+s.branch : "";
173
- byId("worktree").textContent=s.worktree||s.dir||"";
173
+ byId("worktree").textContent="git "+(s.dir||s.worktree||"")+" data "+(s.data_dir||"");
174
174
  byId("created").textContent=s.created_at ? "started "+fmt(s.created_at) : "";
175
175
  const status=byId("status");
176
176
  status.className="pill "+(s.status||"active");
@@ -1,6 +1,10 @@
1
1
  import { createServer } from "node:http";
2
+ import { existsSync, readFileSync } from "node:fs";
3
+ import { dirname, join, normalize } from "node:path";
4
+ import { fileURLToPath } from "node:url";
2
5
  import { PAGE } from "./page.js";
3
6
  export function startDashboard(getState) {
7
+ const staticRoot = dashboardStaticRoot();
4
8
  const server = createServer((req, res) => {
5
9
  if (req.url === "/state") {
6
10
  res.writeHead(200, { "content-type": "application/json" });
@@ -9,6 +13,7 @@ export function startDashboard(getState) {
9
13
  worktree: "",
10
14
  branch: "",
11
15
  dir: "",
16
+ data_dir: "",
12
17
  created_at: new Date().toISOString(),
13
18
  closed_at: null,
14
19
  status: "active",
@@ -16,12 +21,31 @@ export function startDashboard(getState) {
16
21
  timeline: [],
17
22
  context_notes: [],
18
23
  graph: { nodes: [], edges: [], blocked_by: {}, unblocks: {}, topological_order: [], cycles: [] },
24
+ artifacts: [],
19
25
  changelog: [],
20
26
  change_map: { by_file: [], by_directory: [], by_language: [], hotspots: [] },
21
27
  coverage: null,
22
28
  }));
23
29
  return;
24
30
  }
31
+ if (req.url?.startsWith("/assets/")) {
32
+ const pathname = decodeURIComponent(new URL(req.url, "http://127.0.0.1").pathname);
33
+ const asset = normalize(join(staticRoot, pathname));
34
+ if (!asset.startsWith(staticRoot) || !existsSync(asset)) {
35
+ res.writeHead(404);
36
+ res.end("not found");
37
+ return;
38
+ }
39
+ res.writeHead(200, { "content-type": contentType(asset) });
40
+ res.end(readFileSync(asset));
41
+ return;
42
+ }
43
+ const html = join(staticRoot, "index.html");
44
+ if (existsSync(html)) {
45
+ res.writeHead(200, { "content-type": "text/html" });
46
+ res.end(readFileSync(html, "utf8"));
47
+ return;
48
+ }
25
49
  res.writeHead(200, { "content-type": "text/html" });
26
50
  res.end(PAGE);
27
51
  });
@@ -35,4 +59,23 @@ export function startDashboard(getState) {
35
59
  });
36
60
  });
37
61
  }
62
+ function contentType(path) {
63
+ if (path.endsWith(".js"))
64
+ return "text/javascript";
65
+ if (path.endsWith(".css"))
66
+ return "text/css";
67
+ if (path.endsWith(".svg"))
68
+ return "image/svg+xml";
69
+ if (path.endsWith(".png"))
70
+ return "image/png";
71
+ return "application/octet-stream";
72
+ }
73
+ function dashboardStaticRoot() {
74
+ const here = dirname(fileURLToPath(import.meta.url));
75
+ const candidates = [
76
+ join(here, "..", "dashboard-ui"),
77
+ join(process.cwd(), "dist", "dashboard-ui"),
78
+ ];
79
+ return candidates.find((candidate) => existsSync(join(candidate, "index.html"))) ?? candidates[0];
80
+ }
38
81
  //# sourceMappingURL=server.js.map
@@ -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,IAAI,EAAE,MAAM,WAAW,CAAC;AAKjC,MAAM,UAAU,cAAc,CAAC,QAAiC;IAC9D,MAAM,MAAM,GAAW,YAAY,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QAC/C,IAAI,GAAG,CAAC,GAAG,KAAK,QAAQ,EAAE,CAAC;YACzB,GAAG,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE,CAAC,CAAC;YAC3D,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI;gBACnC,IAAI,EAAE,aAAa;gBACnB,QAAQ,EAAE,EAAE;gBACZ,MAAM,EAAE,EAAE;gBACV,GAAG,EAAE,EAAE;gBACP,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACpC,SAAS,EAAE,IAAI;gBACf,MAAM,EAAE,QAAQ;gBAChB,UAAU,EAAE,EAAE;gBACd,QAAQ,EAAE,EAAE;gBACZ,aAAa,EAAE,EAAE;gBACjB,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,QAAQ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,CAAC;YACjD,OAAO,CAAC;gBACN,GAAG,EAAE,oBAAoB,IAAI,EAAE;gBAC/B,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;aACxD,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,WAAW,CAAC,IAAY;IAC/B,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,iBAAiB,CAAC;IACnD,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;QAAE,OAAO,UAAU,CAAC;IAC7C,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;QAAE,OAAO,eAAe,CAAC;IAClD,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;QAAE,OAAO,WAAW,CAAC;IAC9C,OAAO,0BAA0B,CAAC;AACpC,CAAC;AAED,SAAS,mBAAmB;IAC1B,MAAM,IAAI,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACrD,MAAM,UAAU,GAAG;QACjB,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC;QAChC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,cAAc,CAAC;KAC5C,CAAC;IACF,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,CAAC,CAAE,CAAC;AACrG,CAAC"}
@@ -0,0 +1,84 @@
1
+ import type { ArtifactView, ItemView, SprintView, SubsprintView, TimelineEntry } from "../../domain/projection.js";
2
+ export type TreeTone = "done" | "active" | "current" | "next" | "muted" | "normal";
3
+ export interface DashboardModel {
4
+ sprint: SprintView;
5
+ activeSubsprint: SubsprintView | null;
6
+ currentItem: ItemView | null;
7
+ nextItem: ItemView | null;
8
+ progress: {
9
+ items: {
10
+ total: number;
11
+ done: number;
12
+ open: number;
13
+ percent: number;
14
+ };
15
+ statuses: {
16
+ total: number;
17
+ completed: number;
18
+ open: number;
19
+ split: number;
20
+ deprecated: number;
21
+ };
22
+ gates: {
23
+ total: number;
24
+ passed: number;
25
+ failed: number;
26
+ pending: number;
27
+ };
28
+ subsprints: Array<{
29
+ id: string;
30
+ label: string;
31
+ done: number;
32
+ total: number;
33
+ percent: number;
34
+ }>;
35
+ code: {
36
+ files: number;
37
+ additions: number;
38
+ deletions: number;
39
+ net: number;
40
+ churn: number;
41
+ hotspots: number;
42
+ };
43
+ };
44
+ artifacts: {
45
+ active: ArtifactView[];
46
+ recent: ArtifactView[];
47
+ deprecated: ArtifactView[];
48
+ };
49
+ tree: TreeSubsprint[];
50
+ timeline: TimelineRow[];
51
+ ledger: LedgerRow[];
52
+ }
53
+ export interface TreeSubsprint {
54
+ id: string;
55
+ label: string;
56
+ goals: string[];
57
+ status: SubsprintView["status"];
58
+ defaultOpen: boolean;
59
+ tone: TreeTone;
60
+ progress: {
61
+ done: number;
62
+ total: number;
63
+ percent: number;
64
+ };
65
+ items: TreeItem[];
66
+ }
67
+ export interface TreeItem {
68
+ id: string;
69
+ label: string;
70
+ status: ItemView["status"];
71
+ tone: TreeTone;
72
+ gateSummary: string;
73
+ dependencies: string[];
74
+ }
75
+ export interface TimelineRow {
76
+ seq: number;
77
+ id: string;
78
+ type: TimelineEntry["type"];
79
+ text: string;
80
+ time: string;
81
+ }
82
+ export interface LedgerRow extends TimelineRow {
83
+ }
84
+ export declare function deriveDashboardModel(sprint: SprintView): DashboardModel;
@@ -0,0 +1,109 @@
1
+ export function deriveDashboardModel(sprint) {
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;
6
+ const activeSubsprint = currentItem
7
+ ? sprint.subsprints.find((sub) => sub.id === currentItem.subsprint_id) ?? null
8
+ : sprint.subsprints.find((sub) => sub.status === "open") ?? null;
9
+ const done = items.filter((item) => item.status !== "open").length;
10
+ const statusTotals = statusProgress(items);
11
+ const gateTotals = gateProgress(items);
12
+ const code = codeStats(sprint);
13
+ const subsprintProgress = sprint.subsprints.map((sub) => {
14
+ const total = sub.items.length;
15
+ const subDone = sub.items.filter((item) => item.status !== "open").length;
16
+ return { id: sub.id, label: sub.description, done: subDone, total, percent: percent(subDone, total) };
17
+ });
18
+ return {
19
+ sprint,
20
+ activeSubsprint,
21
+ currentItem,
22
+ nextItem,
23
+ progress: {
24
+ items: { total: items.length, done, open: openItems.length, percent: percent(done, items.length) },
25
+ statuses: statusTotals,
26
+ gates: gateTotals,
27
+ subsprints: subsprintProgress,
28
+ code,
29
+ },
30
+ artifacts: {
31
+ active: sprint.artifacts.filter((artifact) => artifact.status === "active"),
32
+ recent: sprint.artifacts.filter((artifact) => artifact.status === "active").slice(-6).reverse(),
33
+ deprecated: sprint.artifacts.filter((artifact) => artifact.status === "deprecated"),
34
+ },
35
+ tree: sprint.subsprints.map((sub) => treeSubsprint(sub, activeSubsprint, currentItem, nextItem)),
36
+ timeline: sprint.timeline.slice().reverse().map(timelineRow),
37
+ ledger: sprint.timeline.map(timelineRow),
38
+ };
39
+ }
40
+ function orderOpenItems(sprint, items) {
41
+ const openById = new Map(items.filter((item) => item.status === "open").map((item) => [item.id, item]));
42
+ const ordered = (sprint.graph.topological_order ?? [])
43
+ .map((id) => openById.get(id))
44
+ .filter((item) => Boolean(item));
45
+ const seen = new Set(ordered.map((item) => item.id));
46
+ return [...ordered, ...items.filter((item) => item.status === "open" && !seen.has(item.id))];
47
+ }
48
+ function treeSubsprint(sub, active, current, next) {
49
+ const total = sub.items.length;
50
+ const done = sub.items.filter((item) => item.status !== "open").length;
51
+ const isActive = active?.id === sub.id;
52
+ return {
53
+ id: sub.id,
54
+ label: sub.description,
55
+ goals: sub.goals,
56
+ status: sub.status,
57
+ defaultOpen: isActive,
58
+ tone: sub.status === "closed" ? "done" : sub.status === "deprecated" ? "muted" : isActive ? "active" : "normal",
59
+ progress: { done, total, percent: percent(done, total) },
60
+ items: sub.items.map((item) => ({
61
+ id: item.id,
62
+ label: item.description,
63
+ status: item.status,
64
+ tone: item.id === current?.id ? "current" : item.id === next?.id ? "next" : item.status === "open" ? "normal" : "muted",
65
+ gateSummary: gateSummary(item),
66
+ dependencies: item.dependencies,
67
+ })),
68
+ };
69
+ }
70
+ function statusProgress(items) {
71
+ return {
72
+ total: items.length,
73
+ completed: items.filter((item) => item.status === "completed").length,
74
+ open: items.filter((item) => item.status === "open").length,
75
+ split: items.filter((item) => item.status === "split").length,
76
+ deprecated: items.filter((item) => item.status === "deprecated").length,
77
+ };
78
+ }
79
+ function gateProgress(items) {
80
+ const total = items.reduce((sum, item) => sum + item.gates.length, 0);
81
+ const passed = items.reduce((sum, item) => sum + item.gate_results.filter((gate) => gate.passed).length, 0);
82
+ const failed = items.reduce((sum, item) => sum + item.gate_results.filter((gate) => !gate.passed).length, 0);
83
+ return { total, passed, failed, pending: Math.max(0, total - passed - failed) };
84
+ }
85
+ function codeStats(sprint) {
86
+ return {
87
+ files: sprint.change_map.by_file.length,
88
+ additions: sprint.change_map.by_file.reduce((sum, row) => sum + row.additions, 0),
89
+ deletions: sprint.change_map.by_file.reduce((sum, row) => sum + row.deletions, 0),
90
+ net: sprint.change_map.by_file.reduce((sum, row) => sum + row.net, 0),
91
+ churn: sprint.change_map.by_file.reduce((sum, row) => sum + row.churn, 0),
92
+ hotspots: sprint.change_map.hotspots.length,
93
+ };
94
+ }
95
+ function gateSummary(item) {
96
+ if (item.gates.length === 0)
97
+ return "no gates";
98
+ const passed = item.gate_results.filter((gate) => gate.passed).length;
99
+ const failed = item.gate_results.filter((gate) => !gate.passed).length;
100
+ const pending = Math.max(0, item.gates.length - passed - failed);
101
+ return `${passed}/${item.gates.length} pass${failed ? `, ${failed} fail` : ""}${pending ? `, ${pending} pending` : ""}`;
102
+ }
103
+ function timelineRow(entry) {
104
+ return { seq: entry.seq, id: entry.id, type: entry.type, text: entry.text, time: entry.ts };
105
+ }
106
+ function percent(value, total) {
107
+ return total === 0 ? 0 : Math.round((value / total) * 100);
108
+ }
109
+ //# sourceMappingURL=model.js.map
@@ -0,0 +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,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC;IACnE,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,KAAK,MAAM,CAAC,CAAC,MAAM,CAAC;IACnE,MAAM,YAAY,GAAG,cAAc,CAAC,KAAK,CAAC,CA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,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC;AAC7D,CAAC"}
@@ -0,0 +1 @@
1
+ import "./styles.css";
@@ -0,0 +1,6 @@
1
+ import "./styles.css";
2
+ import App from "./App.svelte";
3
+ new App({
4
+ target: document.getElementById("app"),
5
+ });
6
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../src/dashboard/ui/src/main.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,GAAG,MAAM,cAAc,CAAC;AAE/B,IAAI,GAAG,CAAC;IACN,MAAM,EAAE,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAE;CACxC,CAAC,CAAC"}