create-pmos 0.774.0 → 0.775.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.
- package/package.json +14 -23
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/changelog.json +13 -0
- package/workspace/guide/backlog.md +6 -6
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/bd-backlog.css +28 -0
- package/workspace/public/pm/line-view.js +68 -27
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.775.0",
|
|
4
4
|
"description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -33,6 +33,19 @@
|
|
|
33
33
|
"audit"
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
|
+
{
|
|
37
|
+
"v": "0.775.0",
|
|
38
|
+
"at": "2026-11-24T10:49:49.601Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 1736,
|
|
43
|
+
"t": "The Line tab reads as a table",
|
|
44
|
+
"s": "The Line tab reads as a table",
|
|
45
|
+
"k": "fix"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
36
49
|
{
|
|
37
50
|
"v": "0.774.0",
|
|
38
51
|
"at": "2026-11-24T10:37:50.703Z",
|
|
@@ -417,28 +430,6 @@
|
|
|
417
430
|
}
|
|
418
431
|
}
|
|
419
432
|
]
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
"v": "0.755.0",
|
|
423
|
-
"at": "2026-11-24T00:55:56.769Z",
|
|
424
|
-
"f": 4,
|
|
425
|
-
"prs": [
|
|
426
|
-
{
|
|
427
|
-
"n": 1699,
|
|
428
|
-
"t": "A new product passes a Setup station before PMOS plans its work",
|
|
429
|
-
"s": "A new product passes a Setup station before PMOS plans its work",
|
|
430
|
-
"k": "new",
|
|
431
|
-
"try": {
|
|
432
|
-
"steps": [
|
|
433
|
-
"Add a first initiative to a product you just set up, then open Today",
|
|
434
|
-
"Read the Setup row: it names what is still missing",
|
|
435
|
-
"Ask the chat: agree the drafted goal"
|
|
436
|
-
],
|
|
437
|
-
"see": "Until the tracker is read, a goal is agreed and an owner is named, Today shows one Setup row saying which of the three is missing, and the chat can keep the drafted goal or the owner for you. Once…",
|
|
438
|
-
"open": "/today.html"
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
]
|
|
442
433
|
}
|
|
443
434
|
]
|
|
444
435
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Eval calibration log"
|
|
4
4
|
description: "Append-only record of every PM override of an evaluator verdict."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-24T10:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-24T10:49:46Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Health budgets"
|
|
4
4
|
description: "Closed registry of health-budget anchors (D59), edited only by the PM."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-24T10:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-24T10:49:46Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Discoveries and friction log"
|
|
4
4
|
description: "Append-only record of what runs discovered and where the process rubbed."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-24T10:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-24T10:49:46Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.775.0",
|
|
4
|
+
"at": "2026-11-24T10:49:49.601Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1736,
|
|
9
|
+
"t": "The Line tab reads as a table",
|
|
10
|
+
"s": "The Line tab reads as a table",
|
|
11
|
+
"k": "fix"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
2
15
|
{
|
|
3
16
|
"v": "0.774.0",
|
|
4
17
|
"at": "2026-11-24T10:37:50.703Z",
|
|
@@ -20,13 +20,13 @@ The Work page uses the PMOS design system (see [Layout](layout.md#the-design-sys
|
|
|
20
20
|
|
|
21
21
|
## The Line
|
|
22
22
|
|
|
23
|
-
Press **Line** on the switch to see every live initiative of your pick in one table
|
|
23
|
+
Press **Line** on the switch to see every live initiative of your pick in one table. Rows are grouped by workflow first (for example Simple feature), then by that workflow's stages in order (Discovery, then Implementation). Two workflows never share a group, so "Discover" of one workflow and "Discovery" of another stay apart. The address `/premium-board.html?work=line` opens it directly.
|
|
24
24
|
|
|
25
|
-
- The sentence above the table says where the line stands, for example "9 initiatives on the line.
|
|
26
|
-
- The columns are **Initiative**, **Days
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
25
|
+
- The sentence above the table says where the line stands, for example "9 initiatives on the line. 6 move by themselves. 2 still moving but over their stage's expected days. 1 stuck."
|
|
26
|
+
- The columns are **Initiative**, **Days in stage** (for example "28 days" with "expected 15 · 13 over" under it, in the alert colour when it is over), **To finish the stage** (the exit items still missing, or the next move when that is something else, such as waiting for capacity) and **State**.
|
|
27
|
+
- **State** is one of: **moving**, **over time** (still active, but past the stage's expected days), **stuck** (past the expected days with no activity), **waits on you**, **waiting** (on capacity, on hold or on another initiative; never stuck) and **can't tell** (PMOS could not place it, so it leaves it alone).
|
|
28
|
+
- The tabs **All**, **Stuck**, **Over time**, **Waits on you**, **Waiting** and **Can't tell** filter the table. A tab with nothing in it is not shown.
|
|
29
|
+
- A row that waits on you is answered on Today, so it is marked here and not repeated there.
|
|
30
30
|
- Press an initiative's name to open it.
|
|
31
31
|
|
|
32
32
|
## The columns
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.775.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pmos-workspace",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.775.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -239,3 +239,31 @@ textarea.bk-rvl-ed, .bk-rvl textarea.bd { resize: vertical; min-height: 180px; }
|
|
|
239
239
|
.sbo-mq { grid-column: 1 / -1; white-space: normal; }
|
|
240
240
|
.sbo-two { grid-template-columns: 1fr; }
|
|
241
241
|
}
|
|
242
|
+
|
|
243
|
+
/* the Line tab (pm/line-view.js, board QuietLine): one Komorebi table (.pm-table) grouped by workflow, then by its stations.
|
|
244
|
+
* Komorebi tokens only. Every class starts with ln-. */
|
|
245
|
+
.pm-ds section.ln { padding: 0; gap: 0; }
|
|
246
|
+
.pm-ds section.ln .ln-say { margin: 0; padding: var(--space-16) var(--space-16) var(--space-8); font-size: var(--fs-row); color: var(--ink); }
|
|
247
|
+
.pm-ds section.ln .ln-tabs { align-self: flex-start; margin: 0 var(--space-16) var(--space-12); }
|
|
248
|
+
.pm-ds section.ln .ln-wrap { overflow-x: auto; }
|
|
249
|
+
.pm-ds .ln-t { table-layout: fixed; font-size: var(--fs-row); }
|
|
250
|
+
.pm-ds .ln-t thead th { font-size: var(--fs-meta); padding: var(--space-8) var(--space-12); }
|
|
251
|
+
.pm-ds .ln-t thead th:first-child, .pm-ds .ln-t .ln-r > :first-child { padding-left: var(--space-16); }
|
|
252
|
+
.pm-ds .ln-t .ln-c-ini { width: 34%; }
|
|
253
|
+
.pm-ds .ln-t .ln-c-days { width: 150px; }
|
|
254
|
+
.pm-ds .ln-t .ln-c-st { width: 128px; }
|
|
255
|
+
.pm-ds .ln-t .ln-r > th, .pm-ds .ln-t .ln-r > td { padding: 10px var(--space-12); vertical-align: top; text-align: left; font-weight: inherit; }
|
|
256
|
+
.pm-ds .ln-t .ln-g th { padding: 6px var(--space-16); background: var(--well); color: var(--muted); font-size: var(--fs-meta); font-weight: var(--fw-strong); text-align: left; border-bottom: 1px solid var(--line); }
|
|
257
|
+
.pm-ds .ln-t .ln-g .ln-n { font-weight: var(--fw-regular); margin-left: 4px; }
|
|
258
|
+
.pm-ds .ln-t .ln-wf th { padding: var(--space-12) var(--space-16) 6px; color: var(--ink); font-size: var(--fs-row); font-weight: var(--fw-strong); text-align: left; border-bottom: 1px solid var(--line); }
|
|
259
|
+
.pm-ds .ln-t .ln-wf .pm-meta { font-weight: var(--fw-regular); margin-left: 4px; }
|
|
260
|
+
.pm-ds .ln-name { all: unset; cursor: pointer; font-weight: var(--fw-strong); color: var(--ink); line-height: 1.4; overflow-wrap: anywhere; }
|
|
261
|
+
.pm-ds .ln-name:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
|
|
262
|
+
.pm-ds .ln-name:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
|
|
263
|
+
.pm-ds .ln-c-days .ln-d { display: block; color: var(--ink); white-space: nowrap; }
|
|
264
|
+
.pm-ds .ln-c-days .ln-sub { display: block; font-size: var(--fs-meta); line-height: 18px; color: var(--muted); }
|
|
265
|
+
.pm-ds .ln-c-days.ln-over .ln-d, .pm-ds .ln-c-days.ln-over .ln-sub { color: var(--alert); }
|
|
266
|
+
.pm-ds .ln-c-days.ln-over .ln-d { font-weight: var(--fw-strong); }
|
|
267
|
+
.pm-ds .ln-c-fin { color: var(--ink); line-height: 1.4; }
|
|
268
|
+
.pm-ds .ln-t .pm-badge.ln-ok { background: var(--leaf-tint); color: var(--leaf); }
|
|
269
|
+
.pm-ds .ln-t .pm-badge.ln-late { background: none; box-shadow: inset 0 0 0 1px var(--alert); color: var(--alert); }
|
|
@@ -7,64 +7,105 @@
|
|
|
7
7
|
* dashHtml(D) → the dashed line, a link to /premium-board.html?work=line
|
|
8
8
|
*
|
|
9
9
|
* rows: lib/line.js lineOf rows (GET /api/line), each with its product (ws). you: Set of '<ws>|<initiative>' that have a Your move row (a question
|
|
10
|
-
* to the PM, a check due). A row in Your move is marked "
|
|
11
|
-
* reads moving. "Can't tell" never moves an item and never raises a row. The UI says PMOS. Text from records goes through esc(). */
|
|
10
|
+
* to the PM, a check due). A row in Your move is marked "waits on you" here and not repeated on Today. Waiting (capacity, on hold, another initiative) is never
|
|
11
|
+
* stuck and reads "waiting"; a moving row past its stage's expected days reads "over time". "Can't tell" never moves an item and never raises a row. The UI says PMOS. Text from records goes through esc(). */
|
|
12
12
|
export const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));
|
|
13
13
|
const plural = (n, a, b) => n + ' ' + (n === 1 ? a : b);
|
|
14
14
|
const cap1 = (s) => String(s || '').replace(/^[a-z]/, (c) => c.toUpperCase());
|
|
15
15
|
|
|
16
|
-
export const TABS = [['', 'All', 'all'], ['stuck', 'Stuck', 'stuck'], ['
|
|
17
|
-
|
|
16
|
+
export const TABS = [['', 'All', 'all'], ['stuck', 'Stuck', 'stuck'], ['late', 'Over time', 'late'], ['you', 'Waits on you', 'you'], ['waiting', 'Waiting', 'waiting'], ['cant', 'Can’t tell', 'cant']];
|
|
17
|
+
// state → [word, badge class]. Only stuck is the alert; over time is a warning in the days cell, its badge stays quiet.
|
|
18
|
+
const STATE = { you: ['waits on you', 'blue'], stuck: ['stuck', 'alert'], late: ['over time', 'ln-late'], waiting: ['waiting', ''], cant: ['can’t tell', ''], moving: ['moving', 'ln-ok'] };
|
|
19
|
+
const numLimit = (r) => (typeof r.limit === 'number' && r.limit > 0 ? r.limit : null);
|
|
18
20
|
|
|
19
|
-
/** One row's state:
|
|
21
|
+
/** One row's real state: waits on you first, then stuck, can't tell, waiting (capacity, on hold, another initiative), over time (moving,
|
|
22
|
+
* but past its station's expected days), moving. */
|
|
20
23
|
export function stateOf(r, you) {
|
|
21
24
|
if (you && you.has((r.ws || '') + '|' + r.id)) return 'you';
|
|
22
25
|
if (r.flag === 'stuck') return 'stuck';
|
|
23
26
|
if (r.flag === 'cant-tell') return 'cant';
|
|
27
|
+
if (r.flag === 'waiting') return 'waiting';
|
|
28
|
+
const lim = numLimit(r);
|
|
29
|
+
if (lim != null && r.daysThere != null && r.daysThere > lim) return 'late';
|
|
24
30
|
return 'moving';
|
|
25
31
|
}
|
|
26
|
-
/** Days
|
|
27
|
-
export function
|
|
28
|
-
if (r.daysThere == null) return r.quietDays != null ? 'quiet ' + plural(r.quietDays, 'day', 'days') : '';
|
|
29
|
-
|
|
32
|
+
/** Days in the stage against the stage's expected days. → { text, sub, over } ('' text when no record says). */
|
|
33
|
+
export function daysOf(r) {
|
|
34
|
+
if (r.daysThere == null) return { text: r.quietDays != null ? 'quiet ' + plural(r.quietDays, 'day', 'days') : '', sub: '', over: 0 };
|
|
35
|
+
const text = plural(r.daysThere, 'day', 'days');
|
|
36
|
+
const lim = numLimit(r);
|
|
37
|
+
if (lim != null) {
|
|
38
|
+
const over = Math.max(0, r.daysThere - lim);
|
|
39
|
+
return { text, sub: over ? `expected ${lim} · ${over} over` : `expected ${lim}`, over };
|
|
40
|
+
}
|
|
41
|
+
return { text, sub: typeof r.limit === 'string' && r.limit ? 'moves with its tickets' : '', over: 0 };
|
|
42
|
+
}
|
|
43
|
+
/** The short form, for a line of text: "28 days, expected 15 · 13 over". */
|
|
44
|
+
export function daysWord(r) { const d = daysOf(r); return d.text + (d.text && d.sub ? ', ' + d.sub : ''); }
|
|
45
|
+
/** What finishes it: the missing exit items, or the next move when it is not "finish: <the first missing item>" (said once). */
|
|
46
|
+
export function toFinish(r) {
|
|
47
|
+
const miss = (r.missing || []).filter(Boolean);
|
|
48
|
+
const next = String(r.next || '');
|
|
49
|
+
if (next && !/^finish:/i.test(next)) return cap1(next);
|
|
50
|
+
return miss.length ? miss.join(' · ') : cap1(next.replace(/^finish:\s*/i, ''));
|
|
30
51
|
}
|
|
31
52
|
export function lineModel(rows, o = {}) {
|
|
32
53
|
const you = o.you instanceof Set ? o.you : new Set(o.you || []);
|
|
33
54
|
const live = (rows || []).filter((r) => r && r.id && r.live);
|
|
34
55
|
const all = live.map((r) => ({ ...r, state: stateOf(r, you) }));
|
|
35
|
-
const counts = { all: all.length
|
|
56
|
+
const counts = { all: all.length };
|
|
57
|
+
for (const k of ['stuck', 'late', 'you', 'waiting', 'cant']) counts[k] = all.filter((r) => r.state === k).length;
|
|
36
58
|
const tab = TABS.some(([k]) => k === o.tab) && (o.tab === '' || counts[o.tab]) ? o.tab : '';
|
|
37
59
|
const shown = tab ? all.filter((r) => r.state === tab) : all;
|
|
38
|
-
|
|
60
|
+
// grouped by workflow, then by its stations in order: Discover (one workflow) and Discovery (another) never share a group
|
|
61
|
+
const wfs = new Map();
|
|
39
62
|
for (const r of shown) {
|
|
63
|
+
const wn = r.workflow || 'No workflow';
|
|
64
|
+
if (!wfs.has(wn)) wfs.set(wn, new Map());
|
|
40
65
|
const st = r.station || { key: '', name: 'No station', n: 999 };
|
|
41
|
-
const
|
|
42
|
-
|
|
66
|
+
const n = st.n == null ? 999 : st.n;
|
|
67
|
+
const k = n + '|' + String(st.name || '').toLowerCase();
|
|
68
|
+
const by = wfs.get(wn);
|
|
69
|
+
if (!by.has(k)) by.set(k, { key: wn + '|' + k, name: st.name || 'No station', n, rows: [] });
|
|
43
70
|
by.get(k).rows.push(r);
|
|
44
71
|
}
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
72
|
+
const workflows = [...wfs.entries()].map(([name, by]) => {
|
|
73
|
+
const groups = [...by.values()].sort((a, b) => a.n - b.n || a.name.localeCompare(b.name));
|
|
74
|
+
for (const g of groups) g.rows.sort((a, b) => String(a.title).localeCompare(String(b.title)));
|
|
75
|
+
return { name, n: groups.reduce((s, g) => s + g.rows.length, 0), groups };
|
|
76
|
+
}).sort((a, b) => (a.name === 'No workflow') - (b.name === 'No workflow') || b.n - a.n || a.name.localeCompare(b.name));
|
|
77
|
+
const groups = workflows.flatMap((w) => w.groups);
|
|
78
|
+
return { workflows, groups, counts, tab, live: all.length };
|
|
48
79
|
}
|
|
49
|
-
/** The Line block. M: lineModel(). o: { name: the product's name, say: a line above the table
|
|
80
|
+
/** The Line block: one Komorebi table (pm-table). M: lineModel(). o: { name: the product's name, say: a line above the table } */
|
|
50
81
|
export function lineHtml(M, o = {}) {
|
|
51
82
|
if (!M || !M.live) return `<section class="pm-block ln" aria-label="The line"><p class="pm-meta">No initiative is on a workflow yet, so the line is empty.</p></section>`;
|
|
52
83
|
const tabs = TABS.filter(([k, , c]) => k === '' || M.counts[c]).map(([k, n, c]) => `<button type="button" class="pm-tab${M.tab === k ? ' on' : ''}" role="tab" aria-selected="${M.tab === k}" data-line-tab="${k}">${esc(n)} <span class="pm-meta">${M.counts[c]}</span></button>`).join('');
|
|
53
|
-
const head = `<
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
84
|
+
const head = `<thead><tr><th scope="col" class="ln-c-ini">Initiative</th><th scope="col" class="ln-c-days">Days in stage</th><th scope="col">To finish the stage</th><th scope="col" class="ln-c-st">State</th></tr></thead>`;
|
|
85
|
+
const many = (M.workflows || []).length > 1;
|
|
86
|
+
const row = (r) => {
|
|
87
|
+
const d = daysOf(r), [word, cls] = STATE[r.state];
|
|
88
|
+
return `<tr class="ln-r ln-${r.state}"><th scope="row" class="ln-c-ini"><button type="button" class="ln-name" data-line-ini="${esc(r.id)}" data-line-ws="${esc(r.ws || '')}">${esc(r.title || r.id)}</button></th>`
|
|
89
|
+
+ `<td class="ln-c-days${d.over && (r.state === 'late' || r.state === 'stuck') ? ' ln-over' : ''}">${d.text ? `<span class="ln-d">${esc(d.text)}</span>` : ''}${d.sub ? `<span class="ln-sub">${esc(d.sub)}</span>` : ''}</td>`
|
|
90
|
+
+ `<td class="ln-c-fin">${esc(toFinish(r))}</td>`
|
|
91
|
+
+ `<td class="ln-c-st"><span class="pm-badge${cls ? ' ' + cls : ''}" title="${esc(r.why || '')}">${esc(word)}</span></td></tr>`;
|
|
92
|
+
};
|
|
93
|
+
const body = (M.workflows || [{ name: '', groups: M.groups }]).map((w) => `<tbody>`
|
|
94
|
+
+ (many ? `<tr class="ln-wf"><th scope="colgroup" colspan="4">${esc(w.name)} <span class="pm-meta">${w.n}</span></th></tr>` : '')
|
|
95
|
+
+ w.groups.map((g) => `<tr class="ln-g"><th scope="colgroup" colspan="4">${esc(g.name)} <span class="ln-n">${g.rows.length}</span></th></tr>` + g.rows.map(row).join('')).join('')
|
|
96
|
+
+ `</tbody>`).join('');
|
|
97
|
+
return `<section class="pm-block list ln" aria-label="The line">${o.say ? `<p class="ln-say">${esc(o.say)}</p>` : ''}<div class="pm-tabs ln-tabs" role="tablist" aria-label="Show">${tabs}</div>`
|
|
98
|
+
+ `<div class="ln-wrap"><table class="pm-table ln-t" aria-label="${esc((o.name ? o.name + ': ' : '') + 'initiatives by workflow stage')}">${head}${body}</table></div></section>`;
|
|
60
99
|
}
|
|
61
100
|
/** Where it stands, one sentence over the table. */
|
|
62
101
|
export function sayOf(M) {
|
|
63
102
|
if (!M || !M.live) return '';
|
|
64
|
-
const moving = M.live -
|
|
103
|
+
const c = M.counts, moving = M.live - c.you - c.stuck - c.cant - (c.late || 0) - (c.waiting || 0);
|
|
65
104
|
return [plural(M.live, 'initiative', 'initiatives') + ' on the line.', moving ? moving + (moving === 1 ? ' moves by itself.' : ' move by themselves.') : '',
|
|
66
|
-
|
|
67
|
-
|
|
105
|
+
c.late ? c.late + ' still moving but over ' + (c.late === 1 ? 'its' : 'their') + ' stage’s expected days.' : '',
|
|
106
|
+
c.you ? c.you + ' wait' + (c.you === 1 ? 's' : '') + ' on you, already in Your move.' : '',
|
|
107
|
+
c.stuck ? c.stuck + ' stuck.' : '', c.waiting ? c.waiting + ' waiting on capacity or another initiative.' : '',
|
|
108
|
+
c.cant ? c.cant + ' can’t be placed, so PMOS leaves ' + (c.cant === 1 ? 'it' : 'them') + ' alone.' : ''].filter(Boolean).join(' ');
|
|
68
109
|
}
|
|
69
110
|
/** Today's dashed line. lines: [{ ws, rows, you: [initiative id] }]. null when nothing is on the line (zero is silence). */
|
|
70
111
|
export function dashModel(lines) {
|