@ambystech/ambykit 1.1.1 → 1.2.0

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 (76) hide show
  1. package/CHANGELOG.md +25 -1
  2. package/dist/cli/dashboard.d.ts +13 -2
  3. package/dist/cli/dashboard.js +144 -23
  4. package/dist/cli/dashboard.js.map +1 -1
  5. package/dist/cli/ui/capabilities.js +20 -1
  6. package/dist/cli/ui/capabilities.js.map +1 -1
  7. package/dist/cli/ui/dashboard/attention.d.ts +10 -0
  8. package/dist/cli/ui/dashboard/attention.js +41 -0
  9. package/dist/cli/ui/dashboard/attention.js.map +1 -0
  10. package/dist/cli/ui/dashboard/burndown-chart.d.ts +16 -0
  11. package/dist/cli/ui/dashboard/burndown-chart.js +117 -0
  12. package/dist/cli/ui/dashboard/burndown-chart.js.map +1 -0
  13. package/dist/cli/ui/dashboard/cards.d.ts +25 -0
  14. package/dist/cli/ui/dashboard/cards.js +93 -0
  15. package/dist/cli/ui/dashboard/cards.js.map +1 -0
  16. package/dist/cli/ui/dashboard/feature-chart.d.ts +14 -0
  17. package/dist/cli/ui/dashboard/feature-chart.js +70 -0
  18. package/dist/cli/ui/dashboard/feature-chart.js.map +1 -0
  19. package/dist/cli/ui/dashboard/feature-view.d.ts +18 -0
  20. package/dist/cli/ui/dashboard/feature-view.js +95 -0
  21. package/dist/cli/ui/dashboard/feature-view.js.map +1 -0
  22. package/dist/cli/ui/dashboard/layout.d.ts +7 -0
  23. package/dist/cli/ui/dashboard/layout.js +12 -0
  24. package/dist/cli/ui/dashboard/layout.js.map +1 -0
  25. package/dist/cli/ui/dashboard/panel.d.ts +25 -0
  26. package/dist/cli/ui/dashboard/panel.js +92 -0
  27. package/dist/cli/ui/dashboard/panel.js.map +1 -0
  28. package/dist/cli/ui/dashboard/render-overview.d.ts +29 -0
  29. package/dist/cli/ui/dashboard/render-overview.js +125 -0
  30. package/dist/cli/ui/dashboard/render-overview.js.map +1 -0
  31. package/dist/cli/ui/dashboard/status-chart.d.ts +21 -0
  32. package/dist/cli/ui/dashboard/status-chart.js +93 -0
  33. package/dist/cli/ui/dashboard/status-chart.js.map +1 -0
  34. package/dist/cli/ui/dashboard/tokens.d.ts +988 -0
  35. package/dist/cli/ui/dashboard/tokens.js +1024 -0
  36. package/dist/cli/ui/dashboard/tokens.js.map +1 -0
  37. package/dist/cli/ui/dashboard/up-next.d.ts +13 -0
  38. package/dist/cli/ui/dashboard/up-next.js +41 -0
  39. package/dist/cli/ui/dashboard/up-next.js.map +1 -0
  40. package/dist/cli/ui/interactive/fullscreen.d.ts +6 -0
  41. package/dist/cli/ui/interactive/fullscreen.js +8 -0
  42. package/dist/cli/ui/interactive/fullscreen.js.map +1 -1
  43. package/dist/cli/ui/interactive/overview.d.ts +38 -0
  44. package/dist/cli/ui/interactive/overview.js +170 -0
  45. package/dist/cli/ui/interactive/overview.js.map +1 -0
  46. package/dist/cli/ui/theme.d.ts +13 -0
  47. package/dist/cli/ui/theme.js +17 -0
  48. package/dist/cli/ui/theme.js.map +1 -1
  49. package/dist/cli/ui/types.d.ts +4 -0
  50. package/dist/core/analyze.d.ts +6 -0
  51. package/dist/core/analyze.js +1 -1
  52. package/dist/core/analyze.js.map +1 -1
  53. package/dist/core/burndown.d.ts +62 -0
  54. package/dist/core/burndown.js +169 -0
  55. package/dist/core/burndown.js.map +1 -0
  56. package/dist/core/clarifications.d.ts +7 -0
  57. package/dist/core/clarifications.js +31 -0
  58. package/dist/core/clarifications.js.map +1 -0
  59. package/dist/core/dashboard.d.ts +7 -2
  60. package/dist/core/dashboard.js +24 -8
  61. package/dist/core/dashboard.js.map +1 -1
  62. package/dist/core/features.d.ts +14 -0
  63. package/dist/core/features.js +97 -0
  64. package/dist/core/features.js.map +1 -0
  65. package/dist/core/git.d.ts +5 -0
  66. package/dist/core/git.js +13 -0
  67. package/dist/core/git.js.map +1 -1
  68. package/dist/core/overview-types.d.ts +99 -0
  69. package/dist/core/overview-types.js +11 -0
  70. package/dist/core/overview-types.js.map +1 -0
  71. package/dist/core/overview.d.ts +42 -0
  72. package/dist/core/overview.js +259 -0
  73. package/dist/core/overview.js.map +1 -0
  74. package/docs/cli-reference.md +42 -13
  75. package/docs/getting-started.md +1 -1
  76. package/package.json +2 -2
@@ -0,0 +1,42 @@
1
+ import { type StoryProgress } from "./dashboard.js";
2
+ import { type AttentionItem, type FeatureRow, type FeatureSnapshot, type Filters, type Overview, type OverviewOptions, type ParseIssue, type Phase, type Status, type Summary } from "./overview-types.js";
3
+ /**
4
+ * Compute the dashboard overview from feature snapshots (feature 014). Pure — no filesystem, no
5
+ * model tokens (FR-001). Filters apply once, before any aggregate, so every widget agrees (FR-011).
6
+ * Dependencies resolve against the unfiltered set, so a filtered story still sees its blockers.
7
+ */
8
+ export declare function computeOverview(features: FeatureSnapshot[], filters?: Filters, opts?: OverviewOptions, issues?: ParseIssue[]): Overview;
9
+ /**
10
+ * Narrow features to the filters (I-9). `feature` matches the ref (`014`) or the directory name.
11
+ * With a status filter, each feature keeps only matching stories and their tasks; features left with
12
+ * no matching story drop out.
13
+ */
14
+ export declare function applyFilters(features: FeatureSnapshot[], filters: Filters): FeatureSnapshot[];
15
+ /** Headline numbers for the summary cards (FR-002, I-1). */
16
+ export declare function summarize(features: FeatureSnapshot[]): Summary;
17
+ /** A feature is done when it has stories and every one is done. */
18
+ export declare function isFeatureDone(f: FeatureSnapshot): boolean;
19
+ /** Map a story's status onto the fixed set; empty or unknown values count as `other` (I-2). */
20
+ export declare function statusOf(s: StoryProgress): Status;
21
+ /** Story count per status, in display order, zero entries omitted (FR-003). */
22
+ export declare function statusCounts(features: FeatureSnapshot[]): Partial<Record<Status, number>>;
23
+ /**
24
+ * The furthest workflow step a feature has reached (ui.md US-5 PhaseLabel, I-7). A missing `ui.md`
25
+ * never blocks later phases.
26
+ */
27
+ export declare function phaseOf(f: FeatureSnapshot): Phase;
28
+ /** One row of the feature completion chart (FR-004, FR-005, FR-010). */
29
+ export declare function featureRow(f: FeatureSnapshot): FeatureRow;
30
+ /** Feature-qualified, unambiguous story key for display, e.g. `014:US-3` or `008-alpha:US-1`. */
31
+ export declare function storyLabel(f: FeatureSnapshot, s: StoryProgress): string;
32
+ /**
33
+ * Attention items for the scoped stories (FR-007, FR-008, I-4): graph problems first, then blocked
34
+ * (status `blocked` or a `blocked-by` target not done — done blockers are dropped), then waiting (a
35
+ * `depends-on` target not done). Each story appears once, in its highest-ranked kind.
36
+ */
37
+ export declare function attentionItems(all: FeatureSnapshot[], scoped: FeatureSnapshot[]): AttentionItem[];
38
+ /**
39
+ * Next ready tasks (FR-009, I-6): undone tasks whose story is not in Attention (unassigned tasks
40
+ * allowed), in feature order then `T###`, capped. `allDone` means nothing is left open at all.
41
+ */
42
+ export declare function upNext(scoped: FeatureSnapshot[], attention: AttentionItem[], cap: number): Overview["upNext"];
@@ -0,0 +1,259 @@
1
+ import { canonicalStoryId } from "./dashboard.js";
2
+ import { STATUS_ORDER, } from "./overview-types.js";
3
+ /**
4
+ * Compute the dashboard overview from feature snapshots (feature 014). Pure — no filesystem, no
5
+ * model tokens (FR-001). Filters apply once, before any aggregate, so every widget agrees (FR-011).
6
+ * Dependencies resolve against the unfiltered set, so a filtered story still sees its blockers.
7
+ */
8
+ export function computeOverview(features, filters = {}, opts = { upNextCap: 5 }, issues = []) {
9
+ const scoped = applyFilters(features, filters);
10
+ const attention = attentionItems(features, scoped);
11
+ return {
12
+ summary: summarize(scoped),
13
+ statusCounts: statusCounts(scoped),
14
+ features: scoped.map(featureRow),
15
+ attention,
16
+ upNext: upNext(scoped, attention, opts.upNextCap),
17
+ issues,
18
+ };
19
+ }
20
+ /**
21
+ * Narrow features to the filters (I-9). `feature` matches the ref (`014`) or the directory name.
22
+ * With a status filter, each feature keeps only matching stories and their tasks; features left with
23
+ * no matching story drop out.
24
+ */
25
+ export function applyFilters(features, filters) {
26
+ let out = features;
27
+ if (filters.feature) {
28
+ const f = filters.feature;
29
+ out = out.filter((x) => x.ref === f || x.dir === f || x.displayRef === f);
30
+ }
31
+ if (filters.status) {
32
+ const status = filters.status.toLowerCase();
33
+ out = out
34
+ .map((x) => {
35
+ const stories = x.stories.filter((s) => s.status === status);
36
+ const ids = new Set(stories.map((s) => s.id));
37
+ const tasks = x.tasks ? x.tasks.filter((t) => t.story !== null && ids.has(t.story)) : null;
38
+ return { ...x, stories, tasks };
39
+ })
40
+ .filter((x) => x.stories.length > 0);
41
+ }
42
+ return out;
43
+ }
44
+ /** Headline numbers for the summary cards (FR-002, I-1). */
45
+ export function summarize(features) {
46
+ const stories = features.flatMap((f) => f.stories);
47
+ const tasks = features.flatMap((f) => f.tasks ?? []);
48
+ const tasksDone = tasks.filter((t) => t.done).length;
49
+ return {
50
+ features: features.length,
51
+ featuresDone: features.filter(isFeatureDone).length,
52
+ stories: stories.length,
53
+ storiesDone: stories.filter((s) => s.status === "done").length,
54
+ tasksDone,
55
+ tasksTotal: tasks.length,
56
+ percent: percentOf(tasksDone, tasks.length),
57
+ };
58
+ }
59
+ /** A feature is done when it has stories and every one is done. */
60
+ export function isFeatureDone(f) {
61
+ return f.stories.length > 0 && f.stories.every((s) => s.status === "done");
62
+ }
63
+ /** Map a story's status onto the fixed set; empty or unknown values count as `other` (I-2). */
64
+ export function statusOf(s) {
65
+ return STATUS_ORDER.includes(s.status) && s.status !== "other"
66
+ ? s.status
67
+ : "other";
68
+ }
69
+ /** Story count per status, in display order, zero entries omitted (FR-003). */
70
+ export function statusCounts(features) {
71
+ const counts = {};
72
+ const all = features.flatMap((f) => f.stories);
73
+ for (const status of STATUS_ORDER) {
74
+ const n = all.filter((s) => statusOf(s) === status).length;
75
+ if (n > 0)
76
+ counts[status] = n;
77
+ }
78
+ return counts;
79
+ }
80
+ /**
81
+ * The furthest workflow step a feature has reached (ui.md US-5 PhaseLabel, I-7). A missing `ui.md`
82
+ * never blocks later phases.
83
+ */
84
+ export function phaseOf(f) {
85
+ if (isFeatureDone(f))
86
+ return "done";
87
+ if (f.tasks !== null)
88
+ return f.tasks.some((t) => t.done) ? "implementing" : "tasked";
89
+ if (f.artifacts.plan)
90
+ return "planned";
91
+ if (f.artifacts.ui)
92
+ return "designed";
93
+ return "specified";
94
+ }
95
+ /** One row of the feature completion chart (FR-004, FR-005, FR-010). */
96
+ export function featureRow(f) {
97
+ const tasks = f.tasks ? { done: f.tasks.filter((t) => t.done).length, total: f.tasks.length } : null;
98
+ return {
99
+ ref: f.displayRef,
100
+ name: f.dir,
101
+ tasks,
102
+ percent: tasks ? percentOf(tasks.done, tasks.total) : null,
103
+ phase: phaseOf(f),
104
+ clarifications: f.clarifications.length,
105
+ };
106
+ }
107
+ /** Feature-qualified, unambiguous story key for display, e.g. `014:US-3` or `008-alpha:US-1`. */
108
+ export function storyLabel(f, s) {
109
+ return `${f.displayRef}:${s.displayId}`;
110
+ }
111
+ /**
112
+ * Index stories by a collision-safe key (`dir:id`). `StoryProgress.key` uses the feature number,
113
+ * which two `008-*` features share, so the overview keys by directory instead.
114
+ */
115
+ function indexStories(features) {
116
+ const index = new Map();
117
+ for (const feature of features) {
118
+ for (const story of feature.stories)
119
+ index.set(`${feature.dir}:${story.id}`, { feature, story });
120
+ }
121
+ return index;
122
+ }
123
+ /** Resolve a dependency to a node key: bare ids stay in the story's feature; `NNN:US-1` targets NNN. */
124
+ function resolveDep(features, from, dep) {
125
+ const qualified = /^(\d+)[:/]?(US\d+)$/.exec(canonicalStoryId(dep));
126
+ if (qualified) {
127
+ const target = features.find((f) => f.ref === qualified[1]);
128
+ return `${target?.dir ?? qualified[1]}:${qualified[2]}`;
129
+ }
130
+ return `${from.dir}:${canonicalStoryId(dep)}`;
131
+ }
132
+ /** How a dependency target reads from the referencing story: local id, or qualified when cross-feature. */
133
+ function depLabel(from, target, dep) {
134
+ if (!target)
135
+ return prettyId(dep);
136
+ return target.feature.dir === from.dir ? target.story.displayId : storyLabel(target.feature, target.story);
137
+ }
138
+ /** Keys of every node that sits on a dependency cycle (DFS with coloring). */
139
+ function cycleKeys(index, edges) {
140
+ const color = new Map();
141
+ const stack = [];
142
+ const onCycle = new Set();
143
+ const visit = (key) => {
144
+ color.set(key, 1);
145
+ stack.push(key);
146
+ for (const next of edges(index.get(key))) {
147
+ if (!index.has(next))
148
+ continue;
149
+ const c = color.get(next) ?? 0;
150
+ if (c === 1)
151
+ for (const k of stack.slice(stack.indexOf(next)))
152
+ onCycle.add(k);
153
+ else if (c === 0)
154
+ visit(next);
155
+ }
156
+ stack.pop();
157
+ color.set(key, 2);
158
+ };
159
+ for (const key of index.keys())
160
+ if (!color.has(key))
161
+ visit(key);
162
+ return onCycle;
163
+ }
164
+ /**
165
+ * Attention items for the scoped stories (FR-007, FR-008, I-4): graph problems first, then blocked
166
+ * (status `blocked` or a `blocked-by` target not done — done blockers are dropped), then waiting (a
167
+ * `depends-on` target not done). Each story appears once, in its highest-ranked kind.
168
+ */
169
+ export function attentionItems(all, scoped) {
170
+ const index = indexStories(all);
171
+ const deps = (n, list) => list.map((d) => resolveDep(all, n.feature, d));
172
+ const onCycle = cycleKeys(index, (n) => deps(n, [...n.story.dependsOn, ...n.story.blockedBy]));
173
+ const isDone = (key) => index.get(key)?.story.status === "done";
174
+ const problems = [];
175
+ const blocked = [];
176
+ const waiting = [];
177
+ for (const feature of scoped) {
178
+ for (const story of feature.stories) {
179
+ if (story.status === "done")
180
+ continue;
181
+ const key = storyLabel(feature, story);
182
+ const node = { feature, story };
183
+ const label = (dep) => depLabel(feature, index.get(resolveDep(all, feature, dep)), dep);
184
+ const refs = [
185
+ ...story.dependsOn.map((dep) => ({ field: "depends-on", dep })),
186
+ ...story.blockedBy.map((dep) => ({ field: "blocked-by", dep })),
187
+ ];
188
+ const unknown = refs.filter((r) => !index.has(resolveDep(all, feature, r.dep)));
189
+ if (unknown.length > 0) {
190
+ problems.push({
191
+ key,
192
+ kind: "graph-problem",
193
+ refs: unknown.map((r) => prettyId(r.dep)),
194
+ reason: `${unknown.map((r) => `${r.field} ${prettyId(r.dep)}`).join(", ")} — unknown story`,
195
+ });
196
+ continue;
197
+ }
198
+ const selfKey = `${feature.dir}:${story.id}`;
199
+ if (onCycle.has(selfKey)) {
200
+ const refs = deps(node, [...story.dependsOn, ...story.blockedBy])
201
+ .filter((k) => onCycle.has(k))
202
+ .map((k) => depLabel(feature, index.get(k), k));
203
+ problems.push({ key, kind: "graph-problem", refs, reason: `dependency cycle with ${refs.join(", ")}` });
204
+ continue;
205
+ }
206
+ const openBlockers = story.blockedBy.filter((d) => !isDone(resolveDep(all, feature, d))).map(label);
207
+ if (story.status === "blocked" || openBlockers.length > 0) {
208
+ blocked.push({
209
+ key,
210
+ kind: "blocked",
211
+ refs: openBlockers,
212
+ reason: openBlockers.length > 0 ? `blocked-by ${openBlockers.join(", ")}` : "status: blocked",
213
+ });
214
+ continue;
215
+ }
216
+ const openDeps = story.dependsOn.filter((d) => !isDone(resolveDep(all, feature, d))).map(label);
217
+ if (openDeps.length > 0) {
218
+ waiting.push({ key, kind: "waiting", refs: openDeps, reason: `waiting on ${openDeps.join(", ")}` });
219
+ }
220
+ }
221
+ }
222
+ return [...problems, ...blocked, ...waiting];
223
+ }
224
+ /**
225
+ * Next ready tasks (FR-009, I-6): undone tasks whose story is not in Attention (unassigned tasks
226
+ * allowed), in feature order then `T###`, capped. `allDone` means nothing is left open at all.
227
+ */
228
+ export function upNext(scoped, attention, cap) {
229
+ const held = new Set(attention.map((a) => a.key));
230
+ const candidates = [];
231
+ let open = 0;
232
+ for (const feature of scoped) {
233
+ const byId = new Map(feature.stories.map((s) => [s.id, s]));
234
+ const tasks = [...(feature.tasks ?? [])].sort((a, b) => taskNumber(a) - taskNumber(b));
235
+ for (const t of tasks) {
236
+ if (t.done)
237
+ continue;
238
+ open += 1;
239
+ const story = t.story ? byId.get(t.story) : undefined;
240
+ const storyKey = story ? storyLabel(feature, story) : null;
241
+ if (storyKey && held.has(storyKey))
242
+ continue;
243
+ candidates.push({ taskId: t.id, storyKey, description: t.description, feature: feature.dir });
244
+ }
245
+ }
246
+ return { items: candidates.slice(0, Math.max(0, cap)), eligible: candidates.length, allDone: open === 0 };
247
+ }
248
+ /** Canonical ids (`US9`, `014US2`) back to their written form (`US-9`, `014:US-2`). */
249
+ function prettyId(id) {
250
+ const m = /^(?:(\d+))?US(\d+)$/.exec(id);
251
+ return m ? `${m[1] ? `${m[1]}:` : ""}US-${m[2]}` : id;
252
+ }
253
+ function taskNumber(t) {
254
+ return Number(t.id.slice(1)) || 0;
255
+ }
256
+ function percentOf(done, total) {
257
+ return total === 0 ? null : Math.round((done / total) * 100);
258
+ }
259
+ //# sourceMappingURL=overview.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overview.js","sourceRoot":"","sources":["../../src/core/overview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAqC,MAAM,gBAAgB,CAAC;AACrF,OAAO,EACL,YAAY,GAYb,MAAM,qBAAqB,CAAC;AAE7B;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAC7B,QAA2B,EAC3B,UAAmB,EAAE,EACrB,OAAwB,EAAE,SAAS,EAAE,CAAC,EAAE,EACxC,SAAuB,EAAE;IAEzB,MAAM,MAAM,GAAG,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC/C,MAAM,SAAS,GAAG,cAAc,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IACnD,OAAO;QACL,OAAO,EAAE,SAAS,CAAC,MAAM,CAAC;QAC1B,YAAY,EAAE,YAAY,CAAC,MAAM,CAAC;QAClC,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC;QAChC,SAAS;QACT,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QACjD,MAAM;KACP,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,QAA2B,EAAE,OAAgB;IACxE,IAAI,GAAG,GAAG,QAAQ,CAAC;IACnB,IAAI,OAAO,CAAC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QAAQ,CAAC,EAAU;IAC1B,MAAM,CAAC,GAAG,qBAAqB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACzC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AACxD,CAAC;AAED,SAAS,UAAU,CAAC,CAAW;IAC7B,OAAO,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,IAAY,EAAE,KAAa;IAC5C,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC;AAC/D,CAAC"}
@@ -17,7 +17,8 @@ interactive terminal, and **degrades cleanly** everywhere else so logs and pipes
17
17
  - Piped / redirected / non-interactive (CI): plain text, no color, no control sequences.
18
18
  - `NO_COLOR` set: color is dropped (glyphs and words remain).
19
19
  - Terminals without extended glyphs: an ASCII fallback (`[ok]`/`x`, `#`/`-` bars) is used.
20
- - Narrow terminals: the dashboard drops lower-priority columns rather than wrapping.
20
+ - Narrow terminals: the dashboard switches to a stacked layout (and plain text below 60 columns),
21
+ and tables drop lower-priority columns rather than wrapping.
21
22
  - `--json` output is always unstyled and byte-stable — safe to parse.
22
23
 
23
24
  Multi-step commands (`init`, `add`, `sync`, `update`) show a spinner while working and a
@@ -110,24 +111,52 @@ branch is already merged. Opt in to automatic creation from `/amby.specify` by a
110
111
 
111
112
  ## `ambykit dashboard [story-id]`
112
113
 
113
- Progress view over the story/task graph, computed locally from `specs/*/spec.md` + `tasks.md` (no
114
- model tokens).
115
-
116
- - **No arg** — a table of all user stories: `Feat | Story | description | X of Y tasks | % | status | priority | blocked-by`, with an overall roll-up.
114
+ Progress view over the story/task graph, computed locally from `specs/*/` files and, for the
115
+ burndown, read-only git history (no model tokens, no network, writes nothing).
116
+
117
+ - **No arg** — the overview, top to bottom:
118
+ - summary cards: features, stories, tasks done/total, overall completion;
119
+ - **story status** stacked bar with a legend (each status has its own fill pattern and glyph, so
120
+ it reads without color);
121
+ - **Attention** — dependency cycles and unknown references first, then blocked stories (status
122
+ `blocked`, or a `blocked-by` story that is not done), then stories waiting on an unfinished
123
+ `depends-on`;
124
+ - **Up next** — the next undone tasks whose story is not in Attention (`--next=N`, default 5);
125
+ - **burndown** — remaining vs. done tasks per day/week/month from the git history of `tasks.md`
126
+ (the last column is your working tree); shows "No history available" outside a git repo;
127
+ - **feature completion** — one row per feature with its bar, workflow phase (specified → designed →
128
+ planned → tasked → implementing → done) and open `[NEEDS CLARIFICATION]` count. A feature with no
129
+ `tasks.md` reads "not planned".
130
+
131
+ Unreadable files are skipped and named in a notice line. Off a TTY (pipes, CI) the same content is
132
+ printed as plain text.
133
+ - **`--feature=X`** — the feature view for one feature (`X` is its number, e.g. `014`, or its
134
+ directory name): artifacts present, open clarifications, status, the story table with a
135
+ `Waiting on` column, and Attention / Up next / burndown scoped to the feature.
136
+ - **`--status=X`** — narrow every widget to stories with that status.
137
+ - **`--stories`** — the previous story table (`Feat | Story | description | progress | status |
138
+ priority | blocked-by`) with an overall roll-up.
117
139
  - **`story-id`** — detail for one story. Story ids **restart per feature**, so a bare `US-3` may
118
140
  match several; qualify it with the feature ref as `NNN:US-3` (also accepts `NNN/US-3`). A bare id
119
141
  that matches more than one feature prints the matches so you can pick.
120
- - **`--interactive`** — opt-in full-screen navigable view (TTY only): `↑`/`↓` move, `enter` opens a
121
- story's tasks, `←`/`esc` goes back, `q` quits. On a non-interactive terminal it falls back to the
122
- one-shot table.
142
+ - **`--interactive`** — the overview full screen (TTY only): `tab` moves focus between Attention, Up
143
+ next and Feature completion, `↑`/`↓` move, `enter` opens the feature view (and a story's tasks from
144
+ there), `esc` goes back, `f` filters by feature, `s` cycles the status filter, `q` quits. On a
145
+ non-interactive terminal it prints the plain overview.
146
+ - **`--json`** — the story list as JSON, unchanged from earlier releases.
147
+ - **`--json --overview`** — one object: `stories` (exactly the `--json` list) plus `summary`,
148
+ `statusCounts`, `features`, `attention`, `upNext`, `burndown`, `issues` and the applied `filters`.
123
149
 
124
150
  ```bash
125
151
  ambykit dashboard
126
- ambykit dashboard --interactive # full-screen navigable view (TTY only)
127
- ambykit dashboard 001:US-3 # feature-qualified (recommended)
128
- ambykit dashboard --status blocked
129
- ambykit dashboard --feature 001-password-reset
130
- ambykit dashboard --json
152
+ ambykit dashboard --interactive # full-screen overview (TTY only)
153
+ ambykit dashboard --feature=014 # feature view
154
+ ambykit dashboard --next=10 # longer Up next list
155
+ ambykit dashboard --status=blocked
156
+ ambykit dashboard --stories # the story table
157
+ ambykit dashboard 001:US-3 # story detail (feature-qualified)
158
+ ambykit dashboard --json # story list
159
+ ambykit dashboard --json --overview # story list + every aggregate
131
160
  ```
132
161
 
133
162
  ## `ambykit analyze`
@@ -81,7 +81,7 @@ appends tasks and updates story status.
81
81
  From the terminal, watch progress across the story/task graph:
82
82
 
83
83
  ```bash
84
- npx ambykit dashboard # table of all stories with % complete
84
+ npx ambykit dashboard # overview: progress, blockers, next tasks, burndown
85
85
  npx ambykit dashboard 001:US-3 # detail for one story (qualify id with the feature ref)
86
86
  ```
87
87
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ambystech/ambykit",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "Spec-Driven Development framework that helps AI coding assistants build better software — author your specs, user stories, UI design, plans and tasks once, and emit native config for Claude Code, OpenCode, GitHub Copilot, Cursor, Antigravity and more.",
5
5
  "keywords": [
6
6
  "spec-driven-development",
@@ -73,7 +73,7 @@
73
73
  },
74
74
  "dependencies": {
75
75
  "gray-matter": "^4.0.3",
76
- "zod": "^3.23.0"
76
+ "zod": "^4.6.6"
77
77
  },
78
78
  "allowScripts": {
79
79
  "esbuild@0.21.5": true