create-pmos 0.420.0 → 0.421.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 (35) hide show
  1. package/package.json +13 -13
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/planning/evals/eval-calibration.md +1 -1
  4. package/payload/planning/okrs/health-budgets.md +1 -1
  5. package/payload/state/discoveries.md +1 -1
  6. package/workspace/changelog.json +12 -0
  7. package/workspace/guide/briefing-premium.md +1 -1
  8. package/workspace/guide/home.md +1 -0
  9. package/workspace/lib/briefing-premium-agent.js +8 -0
  10. package/workspace/lib/first-input.js +13 -6
  11. package/workspace/lib/transcript-read.js +29 -1
  12. package/workspace/package-lock.json +2 -2
  13. package/workspace/package.json +1 -1
  14. package/workspace/premium-viewer-test.js +1 -1
  15. package/workspace/public/pm/bd-span.js +6 -3
  16. package/workspace/public/pm/cozy-live-pill.js +1 -1
  17. package/workspace/public/pm/cozy-nav.js +1 -1
  18. package/workspace/public/pm/cozy-steps.js +1 -1
  19. package/workspace/public/pm/cozy-xv.js +1 -1
  20. package/workspace/public/pm/home-ask.js +7 -0
  21. package/workspace/public/pm/home-ini.js +2 -2
  22. package/workspace/public/pm/home-line.js +1 -1
  23. package/workspace/public/pm/ini-view.js +1 -1
  24. package/workspace/public/pm/premium-insights.js +1 -1
  25. package/workspace/public/pm/premium-mtg-present.js +2 -2
  26. package/workspace/public/pm/premium-report-read.js +1 -1
  27. package/workspace/public/pm/premium-report-tab.js +1 -1
  28. package/workspace/public/pm/premium-viewer.js +3 -3
  29. package/workspace/public/pm/premium-vw-mtg.js +1 -1
  30. package/workspace/public/pm/premium-vw-open.js +1 -1
  31. package/workspace/public/pm/premium-vw-slides.js +1 -1
  32. package/workspace/public/pm/prog-order.js +1 -1
  33. package/workspace/public/pm/tk-send.js +1 -1
  34. package/workspace/server.js +26 -2
  35. package/workspace/timeline-holds-test.js +9 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.420.0",
3
+ "version": "0.421.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": {
@@ -32,6 +32,18 @@
32
32
  "audit"
33
33
  ],
34
34
  "pmosChanges": [
35
+ {
36
+ "v": "0.421.0",
37
+ "at": "2026-10-26T06:44:56.884Z",
38
+ "f": 2,
39
+ "prs": [
40
+ {
41
+ "n": 1059,
42
+ "t": "Tenth testing feedback batch",
43
+ "s": "Tenth testing feedback batch"
44
+ }
45
+ ]
46
+ },
35
47
  {
36
48
  "v": "0.420.0",
37
49
  "at": "2026-10-26T05:26:08.144Z",
@@ -259,18 +271,6 @@
259
271
  "s": "Build the Ready for development page (Home A+C, Programs, 60% panel)"
260
272
  }
261
273
  ]
262
- },
263
- {
264
- "v": "0.401.0",
265
- "at": "2026-10-23T23:36:01.429Z",
266
- "f": 2,
267
- "prs": [
268
- {
269
- "n": 1025,
270
- "t": "Testing fixes round 2 (Home list, one chat box, newest-first chat, Draft it)",
271
- "s": "Testing fixes round 2 (Home list, one chat box, newest-first chat, Draft it)"
272
- }
273
- ]
274
274
  }
275
275
  ]
276
276
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@8f1cae13
1
+ kernel-source: pmos@7a112c27
2
2
  assembled: 2026-10-26
3
3
  mode: vendor
@@ -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-10-26T05:26:05Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-26T06:44:52Z"}
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-10-26T05:26:05Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-26T06:44:52Z"}
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-10-26T05:26:05Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-26T06:44:52Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,16 @@
1
1
  [
2
+ {
3
+ "v": "0.421.0",
4
+ "at": "2026-10-26T06:44:56.884Z",
5
+ "f": 2,
6
+ "prs": [
7
+ {
8
+ "n": 1059,
9
+ "t": "Tenth testing feedback batch",
10
+ "s": "Tenth testing feedback batch"
11
+ }
12
+ ]
13
+ },
2
14
  {
3
15
  "v": "0.420.0",
4
16
  "at": "2026-10-26T05:26:08.144Z",
@@ -324,7 +324,7 @@ Board is the fourth place on the rail, after Chat, at `/premium-board.html`. It
324
324
  - **The view chip** in the Initiatives head says which view is shown (List, By stage or Timeline); press it to pick another.
325
325
  - **List** shows the late and at-risk initiatives first, then the board's now view, up to 100 loaded and 25 on screen at a time. A row shows the owner and lane, a status chip when it is not on track, how far through the workflow it is (and "derived" when the workflow engine placed it), a progress bar only when a record holds progress, and the planned finish only when an end date was set ("Not planned" otherwise). "Do this first" appears only when the first row is late.
326
326
  - **By stage** has one column for each stage of the board's workflow with the board's own count and its first five initiatives.
327
- - **List** and **Timeline** show ten tasks a page with Previous and Next; **By stage** shows six cards a column with Show more. **Timeline** draws a bar for each initiative that has dates, with the days left or over, and counts the rest. A bar runs from the earliest start to the latest due date of the initiative's breakdown items and its tasks. Every stage shows, Monitor and Evaluate too. Under a program, every initiative of the program has a row; one with no dates says **No dates** beside today. With no dates on record it says so and draws nothing.
327
+ - **List** and **Timeline** show ten tasks a page with Previous and Next; **By stage** shows six cards a column with Show more. **Timeline** draws a bar for each initiative that has dates, with the days left or over, and counts the rest. A bar runs from the earliest start to the latest due date of the initiative's breakdown items and its tasks. Every stage shows, Monitor and Evaluate too. Under a program, every initiative of the program has a row; one with no dates says **No dates** beside today. With no dates on record it says so and draws nothing. A gap in the plan that overlaps a hold still leaves out the days outside the hold, also when the hold has no return date.
328
328
  - **Sprint** appears when an agent session has read Jira for the board. Otherwise it says there is none. Press it to open the sprint's facts, with the sprint as a board in a second tab: **To do**, **In progress** and **Done** columns from the last Jira read, with the dates, the days left and the points. The sprint goal is the one the Jira status check writes from the sprint's tickets, as on the console's Sprints tab, with its summary; Jira's own goal shows under it only as a reference (**In Jira: "…"**). Until the check has written one, the tab says **No goal yet**. The active and next sprints are buttons at the top. The closed sprints are behind **Past sprints**, which is shut until you press it. Press any card to open its ticket in another tab. A ticket that is on no initiative of this board shows what the sprint read holds (title, status, points and its Jira link). The board is read only: Jira owns each ticket's status and sprint, so you move tickets in Jira. Tickets with no sprint are not in this read. **Coming up** shows the next release, from the releases ledger.
329
329
  - **Open the backlog** is in the Sprint dialog and on its sprint tab. It opens the board's Jira backlog in a tab beside the dialog: the open sprints (active, then next) and then **Backlog**, the tickets in no sprint and not done. A row shows the key, title, status, points and initiative, and why a blocked ticket is blocked. **All**, **Blocked** and **Bugs** filter it (Bugs appears only when the Jira read holds the issue type). A row opens its ticket. The list holds only the tickets the board's initiatives pushed to Jira or hold under their epics, in key order: the Jira read has no rank, assignee or capacity. You move and rank tickets in Jira. With no Jira read, the tab says so.
330
330
  - **Next release** shows the next release that carries an initiative of this board, the one planned after it, and the three latest past releases (**Released** when accepted, else **Past**). It reads the release records (`releases/releases.jsonl`, written from the console's Releases view); Jira fix versions alone do not make a release. With no release planned it says so and still lists the past ones. With none at all it says "No release is on record for this board, past or planned."
@@ -116,6 +116,7 @@ There is no My work page. The list on Home is your list:
116
116
  - A conversation opens at its latest message.
117
117
  - Type `/` to see every command: `/goal`, the commands built into Claude Code, and the commands and skills in the workspace's `.claude` folder and in your own `~/.claude` folder.
118
118
  - The mic types what you say into the box. **Stop** keeps the words, and **Discard** puts the box back. Both end listening at once.
119
+ - When Claude Code asks whether to trust the folder of a new chat, the chat shows the ask as a card: **Trust this folder** or **No, end the session**. Your first message waits until you answer, for up to 15 minutes, and is then sent. It is never typed into the question.
119
120
 
120
121
  ## Documents
121
122
 
@@ -315,6 +315,14 @@ function makeRoom(runtimeDir, sessions) {
315
315
  /** A permission option ('1'…'9') or Stop ('esc'), typed into the key's live session with no Enter. */
316
316
  function press({ runtimeDir, key, what, sessions }) {
317
317
  if (!KEY_RE.test(String(key || ''))) return fail(400, 'key must name a row');
318
+ // t<n>: an answer of the folder trust prompt, which carries no numbers to type; the server moves the selection to it and presses Enter
319
+ const pick = /^t([1-6])$/.exec(String(what));
320
+ if (pick) {
321
+ const live = runtimeDir && chatSessionOf(runtimeDir, key);
322
+ if (!live || !sessions.alive(live)) return fail(409, 'No session is running for this conversation.');
323
+ if (typeof sessions.pick !== 'function' || !sessions.pick(live, +pick[1])) return fail(409, 'The question is no longer on the screen.');
324
+ return { status: 200, body: { ok: true, session: live } };
325
+ }
318
326
  const data = Object.prototype.hasOwnProperty.call(PRESS, String(what)) ? PRESS[String(what)] : null;
319
327
  if (!data) return fail(400, 'press must be esc or 1 to 9');
320
328
  const live = runtimeDir && chatSessionOf(runtimeDir, key);
@@ -26,7 +26,9 @@
26
26
  * prompt reached it (one tmux send-keys chunk), so pressing Enter again would have sent half a prompt. When the caller passes
27
27
  * `wait` (true while the agent is not ready for typing yet), the prompt is not typed while it is true, until MAX_MS. The server
28
28
  * answers it from the pane's foreground command: the login shell that starts the agent, or Claude Code with no input box drawn
29
- * yet, means wait. Any other program (a test's stand-in agent) is typed into as before.
29
+ * yet, means wait. Any other program (a test's stand-in agent) is typed into as before. `wait` answers 'hold' while a question only
30
+ * the PM may answer is on the screen (the folder trust prompt): the prompt then waits past MAX_MS, up to HOLD_MS, and is never typed
31
+ * into the question.
30
32
  * The clock and the timers are injected, so the plan is tested without waiting. No I/O of its own: it writes only through
31
33
  * `write` and reads only through `screen`.
32
34
  */
@@ -38,7 +40,8 @@ const MAX_MS = 20000;
38
40
  const POLL_MS = 200;
39
41
  const SUBMIT_MS = 500;
40
42
  const RETRY_MS = 1500;
41
- const GATE_EVERY_MS = 1000; // how often `wait` is asked while the prompt waits for the agent
43
+ const GATE_EVERY_MS = 1000;
44
+ const HOLD_MS = 15 * 60 * 1000; // the longest a prompt waits for the PM to answer a startup question ('hold') // how often `wait` is asked while the prompt waits for the agent
42
45
  const CHECK_MS = Object.freeze([4000, 12000]); // after the Enter: read the input box at these delays, Enter again if it still holds the prompt
43
46
  const PASTE_ON = '\x1b[?2004h';
44
47
  const PASTE_OFF = '\x1b[?2004l';
@@ -94,7 +97,7 @@ function deliver(s, input, o = {}) {
94
97
  const screenFn = typeof o.screen === 'function' ? o.screen : null;
95
98
  const screen = () => { try { return String(screenFn() || ''); } catch { return ''; } };
96
99
  const waitFn = typeof o.wait === 'function' ? o.wait : null;
97
- let gateAt = -Infinity; let gated = !!waitFn;
100
+ let gateAt = -Infinity; let gated = !!waitFn; let held = false;
98
101
  const { text, enter } = splitInput(input);
99
102
  if (!s || (!text && !enter)) { done('nothing'); return; }
100
103
  const t0 = now();
@@ -118,14 +121,18 @@ function deliver(s, input, o = {}) {
118
121
  if (!firstOut && (s.lastOutputAt || 0) > base) firstOut = s.lastOutputAt;
119
122
  const t = now();
120
123
  if (!ready({ now: t, t0, lastOutputAt: s.lastOutputAt || 0, firstOut })) { later(tick, POLL_MS); return; }
121
- // the gate is read at most once a second (it is a tmux spawn) and never past MAX_MS
122
- if (gated && t - t0 < MAX_MS) {
124
+ // the gate is read at most once a second (it is a tmux spawn) and never past MAX_MS, except while it answers 'hold': a question
125
+ // only the PM may answer (Claude Code's folder trust prompt) is on the screen. Typed into, the prompt's Enter chose an answer for
126
+ // the PM and the session ended (feedback batch 10 item 1). The prompt waits for the PM's answer, up to HOLD_MS.
127
+ if (gated && (t - t0 < MAX_MS || held) && t - t0 < HOLD_MS) {
123
128
  if (t - gateAt < GATE_EVERY_MS) { later(tick, POLL_MS); return; }
124
129
  gateAt = t;
125
- let w = false; try { w = !!waitFn(); } catch { w = false; }
130
+ let w = false; try { w = waitFn(); } catch { w = false; }
131
+ held = w === 'hold';
126
132
  if (w) { later(tick, POLL_MS); return; }
127
133
  gated = false;
128
134
  }
135
+ if (held) { done('held'); return; }
129
136
  const paste = pasteOn(s.buf);
130
137
  if (text) write(paste ? '\x1b[200~' + text + '\x1b[201~' : text);
131
138
  if (!enter) { done('typed'); return; }
@@ -530,5 +530,33 @@ function permissionAsk(screen, clean = (x) => x) {
530
530
  return options.length >= 2 ? { question: clean(lines[at]).slice(0, 200), options } : null;
531
531
  }
532
532
 
533
- module.exports = { permissionAsk, askQuestions, claudeHomes, callTarget, findTranscript, readHarness, readConversation, CONV_LIMIT, prettyTool, slugFor, resolvePid, descendants,
533
+ /*
534
+ * Claude Code's folder trust prompt, read from the pane's visible screen the same way (feedback batch 10 item 1). A folder that
535
+ * Claude Code (under the profile the session runs with) was never told to trust opens with "Is this a project you trust?" or
536
+ * "Do you trust the files in this folder?", with "No, exit" as an answer. Typing the chat's first message into it chose an answer
537
+ * and the session ended within seconds, so the chat showed nothing. Returns { question, options, trust: true } or null.
538
+ */
539
+ const TRUST_RE = /(trust the files in this folder|project you (?:created or one you )?trust|trust this (?:folder|project))/i;
540
+ const SEL_RE = /^[❯›>]\s+/;
541
+ const NUM_RE = /^\d[.)]\s+/;
542
+ /** The menu's answers: the lines next to the selected one (❯), up to a blank line. Each answer's n is its place (1 first) and sel is the
543
+ * place of the selected one, so the page can move the selection to an answer (arrow keys) and press Enter. The answers may or may not
544
+ * carry numbers. */
545
+ function trustAsk(screen, clean = (x) => x) {
546
+ const lines = String(screen || '').split('\n').map((l) => l.replace(/[│┃╭╮╰╯]/g, ' ').replace(/\s+$/, '').trim());
547
+ let k = -1;
548
+ for (let i = lines.length - 1; i >= 0; i--) if (SEL_RE.test(lines[i])) { k = i; break; }
549
+ if (k < 0) return null;
550
+ let a = k, b = k;
551
+ while (a > 0 && lines[a - 1] && !TRUST_RE.test(lines[a - 1]) && a > k - 6) a--;
552
+ while (b + 1 < lines.length && lines[b + 1] && !/^Enter to confirm/i.test(lines[b + 1]) && b < k + 6) b++;
553
+ const block = lines.slice(a, b + 1).map((l) => l.replace(SEL_RE, '').replace(NUM_RE, '').trim());
554
+ if (block.length < 2 || block.length > 6 || !block.some((l) => /\bexit\b/i.test(l))) return null;
555
+ let q = null;
556
+ for (let i = a - 1; i >= 0 && i >= a - 12; i--) if (TRUST_RE.test(lines[i])) { q = lines[i]; break; }
557
+ if (!q && !block.some((l) => /trust/i.test(l))) return null;
558
+ return { question: clean(q || 'Do you trust the files in this folder?').slice(0, 200), options: block.map((l, i) => ({ n: String(i + 1), label: clean(l).slice(0, 160) })), sel: k - a + 1, trust: true };
559
+ }
560
+
561
+ module.exports = { trustAsk, permissionAsk, askQuestions, claudeHomes, callTarget, findTranscript, readHarness, readConversation, CONV_LIMIT, prettyTool, slugFor, resolvePid, descendants,
534
562
  MAX_BYTES, MAX_WALK_DEPTH, PS_SNAPSHOT_MS, defaultChildren };
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.420.0",
3
+ "version": "0.421.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.420.0",
9
+ "version": "0.421.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.420.0",
3
+ "version": "0.421.0",
4
4
  "private": true,
5
5
  "description": "PMOS Terminal Workspace — local companion hosting real PTYs beside the library and gates (D62)",
6
6
  "license": "MIT",
@@ -82,7 +82,7 @@ process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
82
82
  ok('R1 vwConfirm draws a card with the question in the shown item', (await page.textContent('#czViewer .vcf p')) === 'Undo all 3 edits?');
83
83
  await page.click('#czViewer .vcf [data-a="1"]');
84
84
  ok('R1 vwConfirm resolves true on the yes button and removes the card', (await yes) === true && !(await page.$('.vcf')));
85
- ok('R1 vwStyle adds the view\'s stylesheet link once', await page.evaluate(() => { window.__premiumViewer.vwStyle('none-such'); window.__premiumViewer.vwStyle('none-such'); window.__premiumViewer.vwStyle('../x'); const l = document.querySelectorAll('link[data-vw-css="none-such"]'); return l.length === 1 && l[0].getAttribute('href') === '/pm/premium-vw-none-such.css' && !document.querySelector('link[href*="/x.css"]'); }));
85
+ ok('R1 vwStyle adds the view\'s stylesheet link once', await page.evaluate(() => { window.__premiumViewer.vwStyle('none-such'); window.__premiumViewer.vwStyle('none-such'); window.__premiumViewer.vwStyle('../x'); const l = document.querySelectorAll('link[data-vw-css="none-such"]'); return l.length === 1 && /\/pm\/premium-vw-none-such\.css$/.test(l[0].getAttribute('href')) && !document.querySelector('link[href*="/x.css"]'); }));
86
86
  await page.click('#czViewer [data-cz-vw="close"]');
87
87
  s = await st(page);
88
88
  ok('R1 Close empties and hides the card', !s.open && s.panes.length === 0, JSON.stringify(s));
@@ -150,10 +150,13 @@ function gapsHtml(r, X, now, phone, fmt, pxPct, s, e, tone) {
150
150
  // a resumed hold narrower than 8 px closes up; a hold still running always shows, so its ⏸ is there to press
151
151
  const H = holdSpans(r, now), shown = H.filter((x) => x.kind !== 'past' || wide(x.a, x.b));
152
152
  const cut = shown.map((x) => [x.a, x.b, x]);
153
+ // a plain gap that a hold covers in part keeps the part outside it: a hold with no return date runs to today, and the work dated after it
154
+ // starts where its tasks start, not today (feedback batch 10 item 3, Email OTP: the bar came back at today, months before its Build tasks)
153
155
  for (const g of Array.isArray(r.gaps) ? r.gaps : []) {
154
- const a = day(g.from), b = day(g.to);
155
- if (!a || !b || b <= s || a >= e || !wide(a, b) || H.some((x) => x.a < b && x.b > a)) continue;
156
- cut.push([a < s ? s : a, b > e ? e : b, null]);
156
+ let parts = [[day(g.from), day(g.to)]];
157
+ if (!parts[0][0] || !parts[0][1]) continue;
158
+ for (const x of H) parts = parts.flatMap(([a, b]) => (x.a < b && x.b > a ? [[a, x.a], [x.b, b]].filter(([p, q]) => q > p) : [[a, b]]));
159
+ for (const [a, b] of parts) if (b > s && a < e && wide(a, b)) cut.push([a < s ? s : a, b > e ? e : b, null]);
157
160
  }
158
161
  cut.sort((p, q) => p[0] - q[0]);
159
162
  // the pieces: the plan minus the cuts; after a hold with no return date the rest of the plan is faded (nobody knows when it starts)
@@ -18,7 +18,7 @@ import { onRecording } from './rec-state.js';
18
18
  import { liveItems, keepOrder, pillLabel, rowLabel, clock, elapsed } from './live-model.js';
19
19
 
20
20
  const esc = (v) => String(v == null ? '' : v).replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' })[c]);
21
- const SHEET = '/pm/cozy-live-pill.css';
21
+ const SHEET = new URL('./cozy-live-pill.css', import.meta.url).href;
22
22
  const CHECK = '<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg>';
23
23
  const PHONE = '(max-width: 760px)';
24
24
  const mac = () => { try { return /Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent || ''); } catch { return false; } };
@@ -24,7 +24,7 @@ export const PLACES = [
24
24
  export { fabLabel };
25
25
  const THEME_KEY = 'pmos.c3.theme';
26
26
  const THEMES = [['light', 'Light'], ['dark', 'Dark'], ['auto', 'Auto']];
27
- const CSS = '/pm/cozy-ev.css';
27
+ const CSS = new URL('./cozy-ev.css', import.meta.url).href;
28
28
  const N = { news: 0, stale: null, here: 'home' };
29
29
 
30
30
  const store = { get(k) { try { return localStorage.getItem(k); } catch { return null; } }, set(k, v) { try { if (v) localStorage.setItem(k, v); else localStorage.removeItem(k); } catch { /* a private window */ } } };
@@ -32,7 +32,7 @@ export function ensureCss() {
32
32
  if (css || typeof document === 'undefined' || !document.head) return;
33
33
  css = true;
34
34
  if (document.querySelector('link[data-cz-steps-css]')) return;
35
- const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = '/pm/cozy-steps.css'; l.dataset.czStepsCss = ''; document.head.appendChild(l);
35
+ const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = new URL('./cozy-steps.css', import.meta.url).href; l.dataset.czStepsCss = ''; document.head.appendChild(l);
36
36
  }
37
37
 
38
38
  /** The 8-tick spinner (it turns in steps; still under reduced motion). */
@@ -12,7 +12,7 @@
12
12
  * copyText(text, said) copies the text and says so in the page's toast (setSay) */
13
13
  import { esc, toast } from './premium-shell.js';
14
14
 
15
- const CSS = '/pm/cozy-xv.css';
15
+ const CSS = new URL('./cozy-xv.css', import.meta.url).href;
16
16
  if (typeof document !== 'undefined' && !document.querySelector(`link[href="${CSS}"]`)) {
17
17
  const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = CSS; document.head.appendChild(l);
18
18
  }
@@ -47,6 +47,13 @@ export function permissionAsk(conv) {
47
47
  }
48
48
  const deny = opts.find((o) => /^no\b/i.test(o.label)) || opts[opts.length - 1];
49
49
  const allow = opts[0];
50
+ // Claude Code's folder trust prompt before its first message (feedback batch 10 item 1): the PM answers it; No ends the session
51
+ // its answers carry no numbers: t<n> asks the server to move the selection to the n-th one and press Enter
52
+ if (c.ask.trust) {
53
+ const yes = opts.find((o) => /trust|^yes\b/i.test(o.label)) || allow, no = opts.find((o) => /\bexit\b|^no\b/i.test(o.label)) || deny;
54
+ return { kind: 'file', label: 'Asks to trust this folder', title: clip(c.ask.question, 200), from: '', to: '',
55
+ answers: [{ icon: 'yes', label: 'Trust this folder', attr: `data-hm-press="t${esc(yes.n)}"`, pri: true }, { icon: 'no', label: 'No, end the session', attr: `data-hm-press="t${esc(no.n)}"` }], more: [] };
56
+ }
50
57
  const more = opts.filter((o) => o !== allow && o !== deny);
51
58
  const send = !!ch && OUTSIDE.test(ch.system || '') && WRITE.test(ch.tool || '');
52
59
  const verb = ch && ch.tool && !/^mcp__/.test(ch.tool) ? ch.tool + ' ' : '';
@@ -750,9 +750,9 @@ function pagePress(t, id, M) {
750
750
  export function mountIni(ctx) {
751
751
  X.ctx = ctx;
752
752
  if (typeof document === 'undefined') return X;
753
- if (!document.querySelector('link[data-hi-css]')) { const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = '/pm/home-ini.css'; l.dataset.hiCss = ''; document.head.appendChild(l); }
753
+ if (!document.querySelector('link[data-hi-css]')) { const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = new URL('./home-ini.css', import.meta.url).href; l.dataset.hiCss = ''; document.head.appendChild(l); }
754
754
  ensureStepsCss(); // the stage card's step list (cozy-steps.css), before the first draw
755
- if (!document.querySelector('link[data-tk-css]')) { const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = '/pm/tk-tasks.css'; l.dataset.tkCss = ''; document.head.appendChild(l); }
755
+ if (!document.querySelector('link[data-tk-css]')) { const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = new URL('./tk-tasks.css', import.meta.url).href; l.dataset.tkCss = ''; document.head.appendChild(l); }
756
756
  ctx.VW.onChange((v) => { if (!v.open || !/^ov:/.test(v.id || '')) closePop(); });
757
757
  return X;
758
758
  }
@@ -37,7 +37,7 @@ function ensureCss() {
37
37
  if (css || typeof document === 'undefined' || !document.head) return;
38
38
  css = true;
39
39
  if (document.querySelector('link[data-hm-line-css]')) return;
40
- const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = '/pm/home-line.css'; l.dataset.hmLineCss = ''; document.head.appendChild(l);
40
+ const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = new URL('./home-line.css', import.meta.url).href; l.dataset.hmLineCss = ''; document.head.appendChild(l);
41
41
  } // more than 5 items: the ones around the current one, and "Show all N" (principle 4, summary first)
42
42
 
43
43
  /** m:ss since the PM's last message: how long the run has gone on. */
@@ -23,7 +23,7 @@
23
23
  import { wfIcon } from './wf-model.js';
24
24
  import * as TV from './ini-tasks.js'; // Tasks as List, Timeline or Kanban, and the quick status and dates (batch 9 item 5b)
25
25
 
26
- const CSS = '/pm/ini-view.css';
26
+ const CSS = new URL('./ini-view.css', import.meta.url).href;
27
27
  if (typeof document !== 'undefined' && document.head && !document.querySelector(`link[href="${CSS}"]`)) {
28
28
  const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = CSS; document.head.appendChild(l);
29
29
  }
@@ -569,7 +569,7 @@ function copyText(text, said) { try { navigator.clipboard.writeText(text).then((
569
569
  let ovCss = false;
570
570
  function openGoalDetail(id, open0) {
571
571
  let g = goalById(id); if (!g) return;
572
- if (!ovCss) { ovCss = true; const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = '/pm/ov-view.css'; document.head.append(l); } // the where row Moved by shares
572
+ if (!ovCss) { ovCss = true; const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = new URL('./ov-view.css', import.meta.url).href; document.head.append(l); } // the where row Moved by shares
573
573
  const own = goalWs(g) === M.board.ws, st = { open: open0 || '', more: false, adding: false, own };
574
574
  const kr = krId(g);
575
575
  const more = [], stepsGoal = g.type === 'Done or not' && g.steps && g.steps.length;
@@ -176,7 +176,7 @@ export function presentHtml(V, slideHtml = () => '', deck = null) {
176
176
  }
177
177
 
178
178
  /* ── the page half ── */
179
- const CSS = ['/pm/premium-vw-slides.css', '/pm/cozy-mtg-present.css'];
179
+ const CSS = [new URL('./premium-vw-slides.css', import.meta.url).href, new URL('./cozy-mtg-present.css', import.meta.url).href];
180
180
  function sheets(doc, abs, again) {
181
181
  if (abs) return copySheets(doc, again);
182
182
  for (const h of CSS) if (!doc.querySelector(`link[href="${h}"]`)) { const l = doc.createElement('link'); l.rel = 'stylesheet'; l.href = h; doc.head.append(l); }
@@ -186,7 +186,7 @@ function sheets(doc, abs, again) {
186
186
  function copySheets(doc, again) {
187
187
  let st = doc.getElementById('vzxAudCss');
188
188
  if (st && st.dataset.full === '1') return;
189
- const want = CSS.concat(['/pm/cozy.css']).map((h) => h.replace(/^\/pm\//, '/'));
189
+ const want = CSS.concat([new URL('./cozy.css', import.meta.url).href]);
190
190
  const text = [], got = new Set();
191
191
  for (const sh of document.styleSheets) {
192
192
  const w = sh.href && want.find((x) => sh.href.split('?')[0].endsWith(x)); if (!w) continue;
@@ -76,7 +76,7 @@ const WAIT = (f) => `<span class="vz-wait" data-cz-placeholder="${esc(f)}">Waiti
76
76
  /** The reader's own sheet (cozy-vw-rp.css), added to the page once. */
77
77
  function rpStyle() {
78
78
  if (typeof document === 'undefined' || document.querySelector('link[data-rp-css]')) return;
79
- const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = '/pm/cozy-vw-rp.css'; l.setAttribute('data-rp-css', ''); document.head.appendChild(l);
79
+ const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = new URL('./cozy-vw-rp.css', import.meta.url).href; l.setAttribute('data-rp-css', ''); document.head.appendChild(l);
80
80
  }
81
81
  /** "Oct 21", from a cycle's YYYY-MM-DD slot. */
82
82
  export const shortSlot = (s) => { const m = /^(\d{4})-(\d{2})-(\d{2})$/.exec(String(s || '')); return m ? MONS[+m[2] - 1] + ' ' + +m[3] : String(s || ''); };
@@ -51,7 +51,7 @@ const T = new Map(); // view id → its state
51
51
  /** The report parts' sheet (cozy-vw-rp.css), added to the page once (premium-report-read.js adds the same one). */
52
52
  function rpStyle() {
53
53
  if (typeof document === 'undefined' || document.querySelector('link[data-rp-css]')) return;
54
- const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = '/pm/cozy-vw-rp.css'; l.setAttribute('data-rp-css', ''); document.head.appendChild(l);
54
+ const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = new URL('./cozy-vw-rp.css', import.meta.url).href; l.setAttribute('data-rp-css', ''); document.head.appendChild(l);
55
55
  }
56
56
  const SV = (d, n = 16) => `<svg viewBox="0 0 24 24" width="${n}" height="${n}" aria-hidden="true"><path d="${d}"/></svg>`;
57
57
  /** Open (or refresh) the view of a checked report block (report-chat.js cleanBlock). */
@@ -155,7 +155,7 @@ function onKey(e) {
155
155
  }
156
156
  export function vwStyle(name) {
157
157
  if (!/^[a-z0-9-]+$/.test(name || '') || document.querySelector(`link[data-vw-css="${name}"]`)) return;
158
- const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = `/pm/premium-vw-${name}.css`; l.dataset.vwCss = name; document.head.append(l);
158
+ const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = new URL(`./premium-vw-${name}.css`, import.meta.url).href; l.dataset.vwCss = name; document.head.append(l);
159
159
  }
160
160
  export function vwConfirm(el, o) {
161
161
  return new Promise((done) => {
@@ -170,7 +170,7 @@ export function vwConfirm(el, o) {
170
170
  }
171
171
  /* The Agreed design (initiative premium-agreed-design): the dialog and the Viewer take the cozy look on a page whose body has class cz.
172
172
  * The sheet is inert elsewhere, so it is loaded on every page that imports the viewer. */
173
- if (typeof document !== 'undefined' && document.head && !document.querySelector('link[href="/pm/cozy-viewer.css"]')) {
174
- const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = '/pm/cozy-viewer.css'; document.head.append(l);
173
+ if (typeof document !== 'undefined' && document.head && !document.querySelector('link[href$="/cozy-viewer.css"]')) {
174
+ const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = new URL('./cozy-viewer.css', import.meta.url).href; document.head.append(l);
175
175
  }
176
176
  if (typeof window !== 'undefined') window.__premiumViewer = { vwOpen, vwClose, vwShow, vwReset, vwState, vwStyle, vwConfirm, vwCount };
@@ -494,7 +494,7 @@ let WEEKS = new Map(); // date → weekView, read once per open
494
494
  const q = (o) => Object.entries(o).filter(([, v]) => v != null && v !== '').map(([k, v]) => k + '=' + encodeURIComponent(v)).join('&');
495
495
  const toast = (t) => { try { if (typeof window !== 'undefined' && window.pmToast) window.pmToast(t); } catch { /* none */ } };
496
496
  /** This module's sheet (the redesign's parts), added to the page once. */
497
- const CSS = '/pm/cozy-vw-mtg.css';
497
+ const CSS = new URL('./cozy-vw-mtg.css', import.meta.url).href;
498
498
  export function mtgStyle() { if (typeof document === 'undefined' || document.querySelector(`link[href="${CSS}"]`)) return; const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = CSS; document.head.append(l); }
499
499
  /** The Viewer is wider for a meeting (MtReplay: 780px) while it shows one; the page's own rule sizes it otherwise. */
500
500
  export function widen(k) { const v = typeof document !== 'undefined' && document.getElementById('czViewer'); if (v) { if (k) v.dataset.vzw = k; else delete v.dataset.vzw; } }
@@ -11,7 +11,7 @@
11
11
  * The modules load on first use (dynamic import), so this file has no import cycle with the view modules that import it.
12
12
  * It also adds the Viewer's style sheet (cozy-vw.css) to the page once. */
13
13
 
14
- const CSS = '/pm/cozy-vw.css';
14
+ const CSS = new URL('./cozy-vw.css', import.meta.url).href;
15
15
  export function vzStyle() {
16
16
  if (typeof document === 'undefined' || document.querySelector(`link[href="${CSS}"]`)) return;
17
17
  const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = CSS; document.head.append(l);
@@ -112,7 +112,7 @@ export function present(deck, ws, start, opt = {}) {
112
112
  if (!w || w.closed) { toast('The browser blocked the audience window. Allow pop-ups for PMOS, then press Audience window again.'); return; }
113
113
  const d = w.document;
114
114
  d.title = 'Audience · ' + deck.title;
115
- if (!d.querySelector('link[data-sl]')) for (const h of ['/pm/cozy.css', '/pm/premium-vw-slides.css']) { const l = d.createElement('link'); l.rel = 'stylesheet'; l.href = location.origin + h; l.dataset.sl = ''; d.head.append(l); }
115
+ if (!d.querySelector('link[data-sl]')) for (const h of ['./cozy.css', './premium-vw-slides.css']) { const l = d.createElement('link'); l.rel = 'stylesheet'; l.href = new URL(h, import.meta.url).href; l.dataset.sl = ''; d.head.append(l); }
116
116
  d.documentElement.dataset.theme = 'dark'; d.body.className = 'cz sl-audw';
117
117
  w.onkeydown = (e) => key(e); w.onresize = drawWin; w.onclick = () => go(1);
118
118
  P.win = w; drawWin(); o.focus();
@@ -21,7 +21,7 @@ const SV = (d, w = 2) => `<svg viewBox="0 0 24 24" fill="none" stroke="currentCo
21
21
  const GRIP = 'M9 6h.01M9 12h.01M9 18h.01M15 6h.01M15 12h.01M15 18h.01';
22
22
  const SPARK = 'M12 3l1.8 4.7L18.5 9.5l-4.7 1.8L12 16l-1.8-4.7L5.5 9.5l4.7-1.8zM18 15l.7 1.8 1.8.7-1.8.7L18 20l-.7-1.8-1.8-.7 1.8-.7z';
23
23
  const X = 'M6 6l12 12M18 6L6 18', OK = 'M5 12l5 5 9-10', CAL = 'M4 6h16v14H4zM4 10h16M8 3v4M16 3v4M12 13v5M9.5 15.5h5';
24
- const CSS = '/pm/prog-order.css';
24
+ const CSS = new URL('./prog-order.css', import.meta.url).href;
25
25
 
26
26
  /* ── "not now", per program, until a date changes ── */
27
27
  const NN_KEY = 'pmos.order.notnow';
@@ -18,7 +18,7 @@ const TICK = 'M5 12l4 4 10-10', RIGHT = 'M10 7l5 5-5 5';
18
18
  const isPhone = () => typeof innerWidth === 'number' && innerWidth <= 760;
19
19
  export function ensureCss() {
20
20
  if (typeof document === 'undefined' || document.querySelector('link[data-tk-css]')) return;
21
- const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = '/pm/tk-tasks.css'; l.dataset.tkCss = ''; document.head.appendChild(l);
21
+ const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = new URL('./tk-tasks.css', import.meta.url).href; l.dataset.tkCss = ''; document.head.appendChild(l);
22
22
  }
23
23
  const viewUrl = (ws, id) => '/api/jira/tickets?initiative=' + encodeURIComponent(id) + (ws ? '&ws=' + encodeURIComponent(ws) : '');
24
24
 
@@ -3246,7 +3246,9 @@ function sessionConversation(s) {
3246
3246
  const found = txFound(s);
3247
3247
  if (found.missing) {
3248
3248
  if (s.agent === 'shell' && /wrote no session record/.test(found.missing)) return { messages: [], state: 'shell', missing: 'No agent is running in this shell yet.' };
3249
- return { messages: [], state: 'unlinked', missing: found.missing };
3249
+ // batch 10 item 1: before its first message Claude Code can wait on its folder trust prompt; the chat shows it as an ask
3250
+ const trust = s.agent === 'claude' ? paneTrust(s) : null;
3251
+ return { messages: [], state: 'unlinked', missing: found.missing, ...(trust ? { ask: trust } : {}) };
3250
3252
  }
3251
3253
  let stamp = null;
3252
3254
  try { const st = fs.statSync(found.file); stamp = `${st.size}:${st.mtimeMs}`; } catch {}
@@ -3277,6 +3279,15 @@ function paneAsk(s, now = Date.now()) {
3277
3279
  s.ask = r.status === 0 && r.stdout ? transcript.permissionAsk(r.stdout, scrub) : null;
3278
3280
  return s.ask;
3279
3281
  }
3282
+ // The folder trust prompt on the pane's screen ({ question, options, trust }), read at most once every 1.5s like paneAsk.
3283
+ function paneTrust(s, now = Date.now()) {
3284
+ if (!s.tmux || !TMUX) return null;
3285
+ if (s.trustAt && now - s.trustAt < 1500) return s.trust || null;
3286
+ s.trustAt = now;
3287
+ const r = tmuxCtl(['capture-pane', '-p', '-t', s.tmux]);
3288
+ s.trust = r.status === 0 && r.stdout ? transcript.trustAsk(r.stdout, scrub) : null;
3289
+ return s.trust;
3290
+ }
3280
3291
  // The pane's visible screen, plain text, or '' (no tmux pane). lib/first-input.js reads Claude Code's input box from it.
3281
3292
  function paneScreen(s) {
3282
3293
  if (!s || !s.tmux || !TMUX) return '';
@@ -3300,7 +3311,7 @@ function paneNotReady(s) {
3300
3311
  const cmd = paneCommand(s);
3301
3312
  if (!cmd) return false;
3302
3313
  if (LOGIN_SHELLS.has(cmd)) return true;
3303
- if (/^(claude|\d+\.\d+\.\d+)$/i.test(cmd)) return firstInput.boxText(paneScreen(s)) === null;
3314
+ if (/^(claude|\d+\.\d+\.\d+)$/i.test(cmd)) { const sc = paneScreen(s); return transcript.trustAsk(sc) ? 'hold' : firstInput.boxText(sc) === null; }
3304
3315
  return false;
3305
3316
  }
3306
3317
  function deliverInput(s, input) {
@@ -3308,6 +3319,7 @@ function deliverInput(s, input) {
3308
3319
  firstInput.deliver(s, input, { screen, wait: screen ? () => paneNotReady(s) : null, onDone: (why) => {
3309
3320
  if (why === 'resubmitted' || why === 'unsent') { try { s.firstInput = { result: why, at: Date.now() }; } catch { /* nothing to keep */ } }
3310
3321
  if (why === 'unsent') { s.note = 'its prompt was typed but not sent'; try { pushSessions(); } catch { /* the next list shows it */ } }
3322
+ if (why === 'held') { s.note = 'its prompt waited on the folder trust question and was not sent'; try { pushSessions(); } catch { /* the next list shows it */ } }
3311
3323
  } });
3312
3324
  }
3313
3325
  function transcriptHarness(s) {
@@ -4012,6 +4024,16 @@ const chatSessions = {
4012
4024
  try { deliverInput(s, t + '\r'); return true; } catch { return false; }
4013
4025
  },
4014
4026
  keys: (id, data) => { const s = sessions.get(String(id || '')); if (!s || !s.pty || s.state === 'exited') return false; try { s.pty.write(String(data)); return true; } catch { return false; } },
4027
+ // batch 10 item 1: answer the folder trust prompt with its n-th answer: arrow keys from the selected one, then Enter
4028
+ pick: (id, n) => {
4029
+ const s = sessions.get(String(id || '')); if (!s || !s.pty || s.state === 'exited') return false;
4030
+ s.trustAt = 0; const q = paneTrust(s);
4031
+ if (!q || !(n >= 1 && n <= q.options.length)) return false;
4032
+ const d = n - q.sel;
4033
+ try { s.pty.write((d > 0 ? '\x1b[B' : '\x1b[A').repeat(Math.abs(d))); setTimeout(() => { try { s.pty.write('\r'); } catch { /* gone */ } }, 200); } catch { return false; }
4034
+ s.trust = null; s.trustAt = Date.now();
4035
+ return true;
4036
+ },
4015
4037
  // slice 4 (PRD L3): the live chat sessions, so a new one can end the longest idle; busy = working or a permission prompt waits
4016
4038
  list: (now = Date.now()) => [...sessions.values()].filter((s) => /^chat:/.test(String(s.origin || '')) && s.pty && s.state !== 'exited')
4017
4039
  .map((s) => ({ id: s.id, origin: s.origin, lastOutputAt: s.lastOutputAt, busy: harness.deriveState(s.state, s.lastOutputAt, now).state === 'working' || sessionShown(s, now) === 'blocked' })),
@@ -6830,6 +6852,8 @@ async function handleRequest(req, res) {
6830
6852
  if (t.length > 8000) return json(res, { ok: false, error: 'The message is too long (8000 characters at most).' }, 400);
6831
6853
  return chatSessions.type(sess.id, t) ? json(res, { ok: true, session: sess.id }) : json(res, { ok: false, error: 'The message did not reach the session.' }, 409);
6832
6854
  }
6855
+ const tp = /^t([1-6])$/.exec(String(body.press)); // the folder trust prompt's n-th answer (batch 10 item 1)
6856
+ if (tp) return chatSessions.pick(sess.id, +tp[1]) ? json(res, { ok: true, session: sess.id }) : json(res, { ok: false, error: 'The question is no longer on the screen.' }, 409);
6833
6857
  const KEYS = { esc: '\x1b', 1: '1', 2: '2', 3: '3', 4: '4', 5: '5', 6: '6', 7: '7', 8: '8', 9: '9' };
6834
6858
  const data = Object.prototype.hasOwnProperty.call(KEYS, String(body.press)) ? KEYS[String(body.press)] : null;
6835
6859
  if (!data) return json(res, { ok: false, error: 'press must be esc or 1 to 9' }, 400);
@@ -164,8 +164,16 @@ const ROWS = [
164
164
  const groups2 = [{ ...groups[0], products: [{ name: 'IDPF', rows: [a, b] }], rows: [a, b] }];
165
165
  d.innerHTML = S.timelineHtml([a, b], { jira: null }, 'year', { now, groups: groups2, trackPx: 1100 }).html;
166
166
  const solid = [...d.querySelectorAll('.tg-pg .tg-span')].map((x) => x.className);
167
- return { five, quarter, spans, solid };
167
+ // batch 10 item 3 (Email OTP): a hold with no return date, then no dated work until the Build tasks in March. The rest of the bar
168
+ // starts where those tasks start, not today.
169
+ const e = { key: 'board:e', id: 'e', title: 'Email OTP', start: '2026-06-25', end: '2027-06-09', holds: [{ from: '2026-09-15', to: null, back: null, reason: '' }], gaps: [{ from: '2026-09-10', to: '2027-03-18' }], track: { key: 'build' } };
170
+ d.innerHTML = S.timelineHtml([e], { jira: null }, 'year', { now, trackPx: 1100 }).html;
171
+ const eb = [...d.querySelectorAll('.tg-bar')].map((x) => parseFloat(x.style.left)), eg = d.querySelectorAll('.tg-gap').length;
172
+ d.innerHTML = S.timelineHtml([{ ...e, gaps: [] }], { jira: null }, 'year', { now, trackPx: 1100 }).html;
173
+ const nb = [...d.querySelectorAll('.tg-bar')].map((x) => parseFloat(x.style.left));
174
+ return { five, quarter, spans, solid, eb, eg, nb };
168
175
  });
176
+ ok('N2 a hold with no return date, then a plain gap: the rest of the bar starts at the next dated work, later than today', r.eb.length === 2 && r.eg === 1 && r.nb.length === 2 && r.eb[1] > r.nb[1] + 5, JSON.stringify({ eb: r.eb, nb: r.nb, eg: r.eg }));
169
177
  ok('N on 5 yr a nine-day past hold is narrower than 8 px and closes up: one whole bar; on Quarter it is a gap', r.five.bars === 1 && r.five.gaps === 0 && r.quarter.gaps === 1 && r.quarter.bars === 2, JSON.stringify(r));
170
178
  ok('G the program line is dotted where every member is on hold, solid where one still works', r.spans.join('|') === 'tg-span|tg-span ho|tg-span' && r.solid.every((x) => x === 'tg-span'), JSON.stringify(r));
171
179
  await ctx.close();