create-pmos 0.713.0 → 0.714.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.713.0",
3
+ "version": "0.714.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,25 @@
33
33
  "audit"
34
34
  ],
35
35
  "pmosChanges": [
36
+ {
37
+ "v": "0.714.0",
38
+ "at": "2026-11-22T18:31:53.842Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1578,
43
+ "t": "One key each for approve, open, next sprint, park and Undo, plus a ? list (job #1577)",
44
+ "s": "One key each for approve, open, next sprint, park and Undo, plus a ?",
45
+ "k": "new"
46
+ },
47
+ {
48
+ "n": 1579,
49
+ "t": "One next step on a page that has nothing in it yet (A474)",
50
+ "s": "One next step on a page that has nothing in it yet (A474)",
51
+ "k": "new"
52
+ }
53
+ ]
54
+ },
36
55
  {
37
56
  "v": "0.713.0",
38
57
  "at": "2026-11-22T15:29:37.584Z",
@@ -459,19 +478,6 @@
459
478
  "k": "x"
460
479
  }
461
480
  ]
462
- },
463
- {
464
- "v": "0.675.0",
465
- "at": "2026-11-22T05:53:46.914Z",
466
- "f": 4,
467
- "prs": [
468
- {
469
- "n": 1460,
470
- "t": "Read one goal metric per product from the query its source names",
471
- "s": "Read one goal metric per product from the query its source names",
472
- "k": "new"
473
- }
474
- ]
475
481
  }
476
482
  ]
477
483
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@4fb1464e
1
+ kernel-source: pmos@a2627da1
2
2
  assembled: 2026-11-22
3
3
  mode: vendor
@@ -48,3 +48,11 @@ One part draws all three, so they look the same on every page: [State](component
48
48
  | `t` | Move to tomorrow (on a row) or jump to today (on a calendar) |
49
49
  | `j`, `k` | Next and previous item in Detail |
50
50
  | `g` then a letter | Go to a page |
51
+ | `y` | Yes to what PMOS proposes, on the item under the pointer or focus |
52
+ | `o` | Open the item under the pointer or focus |
53
+ | `s` | Move the item to the next sprint |
54
+ | `p` | Park the item (put it on hold) |
55
+ | `z` | Undo (the item's Undo, else the Toast's) |
56
+ | `?` | The list of keys, with the ones that work on this page |
57
+
58
+ `y`, `o`, `s`, `p` and `z` press the item's own button, found by its words; a button that has a key shows it in its tooltip ("Open (O)"). The workspace does this once for every page in `pm/action-keys.js`.
@@ -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-22T15:29:33Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-22T18:31:50Z"}
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-22T15:29:33Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-22T18:31:50Z"}
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-22T15:29:33Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-22T18:31:50Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,23 @@
1
1
  [
2
+ {
3
+ "v": "0.714.0",
4
+ "at": "2026-11-22T18:31:53.842Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1578,
9
+ "t": "One key each for approve, open, next sprint, park and Undo, plus a ? list (job #1577)",
10
+ "s": "One key each for approve, open, next sprint, park and Undo, plus a ?",
11
+ "k": "new"
12
+ },
13
+ {
14
+ "n": 1579,
15
+ "t": "One next step on a page that has nothing in it yet (A474)",
16
+ "s": "One next step on a page that has nothing in it yet (A474)",
17
+ "k": "new"
18
+ }
19
+ ]
20
+ },
2
21
  {
3
22
  "v": "0.713.0",
4
23
  "at": "2026-11-22T15:29:37.584Z",
@@ -48,3 +48,11 @@ One part draws all three, so they look the same on every page: [State](component
48
48
  | `t` | Move to tomorrow (on a row) or jump to today (on a calendar) |
49
49
  | `j`, `k` | Next and previous item in Detail |
50
50
  | `g` then a letter | Go to a page |
51
+ | `y` | Yes to what PMOS proposes, on the item under the pointer or focus |
52
+ | `o` | Open the item under the pointer or focus |
53
+ | `s` | Move the item to the next sprint |
54
+ | `p` | Park the item (put it on hold) |
55
+ | `z` | Undo (the item's Undo, else the Toast's) |
56
+ | `?` | The list of keys, with the ones that work on this page |
57
+
58
+ `y`, `o`, `s`, `p` and `z` press the item's own button, found by its words; a button that has a key shows it in its tooltip ("Open (O)"). The workspace does this once for every page in `pm/action-keys.js`.
@@ -270,6 +270,14 @@ The Board shows initiatives by stage, with programs, a timeline and a list. Inte
270
270
  | ⌘K (Ctrl-K) or / | Open Search from any page. A second press focuses the box. |
271
271
  | Esc | Close Search or the menu, then the Viewer. |
272
272
  | ↑ ↓ and Enter | Move through Search results and open one. |
273
+ | Y | Say yes to what PMOS proposes on the item you point at. |
274
+ | O | Open the item you point at. |
275
+ | S | Move the item you point at to the next sprint. |
276
+ | P | Park the item you point at (put it on hold). |
277
+ | Z | Undo the last change. |
278
+ | ? | Show these keys, and which of them work on this page. |
279
+
280
+ Y, O, S, P and Z press the item's own button, so they work only where the item has that button. Point at the item, or tab to it, then press the key. Hover a button to see its key, for example **Open (O)**. PMOS counts your key presses in the Use log on this computer.
273
281
 
274
282
  A key that you type in a field, or in a terminal, goes to the field or the terminal.
275
283
 
@@ -392,6 +400,17 @@ A place opens on a fact PMOS can check in your records. It never opens because a
392
400
 
393
401
  Your first initiative is the first moment. The card that sets it up comes right after setup, so this list starts after it.
394
402
 
403
+ ### One next step under the line
404
+
405
+ Under its line, a quiet place shows one ✦ next step that fills it from what PMOS already has. PMOS picks the step in this order:
406
+
407
+ | Place | First choice | Then | Else |
408
+ |---|---|---|---|
409
+ | Board and Reports | "Make initiatives from the Jira epics PMOS read" (PMOS has saved a Jira reading) | "Draft initiatives from the strategy" (the Board's strategy has a written line) | "Paste a list of the work, and PMOS makes initiatives from it" |
410
+ | Intelligence | "Draft a goal from the strategy" | "Draft a goal from your initiatives" (you have one or more) | "Write what you want to reach, and PMOS makes a goal from it" |
411
+
412
+ The arrow writes the request in the chat over the page. It does not send it. Read it, change it if you want, and send it. PMOS shows you the drafts, and keeps nothing until you say yes. The use log counts presses of the arrow (Settings › General › Use log).
413
+
395
414
  ### One ✦ a day in Home's chat
396
415
 
397
416
  When a place opens, Home's own chat shows one ✦ for it, with a link to its page in this guide (for example "How the Board works").
@@ -98,7 +98,35 @@ function facts(ctx, w, now = Date.now()) {
98
98
  let goal = false, goalTitle = '';
99
99
  try { const r = require('./okr-goals.js').read(w.root); if (r.ok && r.objectives.length) { goal = true; goalTitle = String(r.objectives[0].title || '').slice(0, 120); } } catch { /* unreadable: no goal */ }
100
100
  const week = ids.size > 0 && Number.isFinite(oldest) && oldest <= now - WEEK && newest >= now - WEEK;
101
- return { initiatives: ids.size, dated, goal, goalTitle, week };
101
+ // what could fill a waiting place (initiative empty-page-next-action): a saved Jira reading, and a written strategy line
102
+ const tracker = stateDirsOf(ctx, w).some((s) => ls(path.join(s, 'tracker', 'jira')).some((n) => n.endsWith('.md')));
103
+ let strategy = false;
104
+ try {
105
+ const dir = require(require('./repo-script.js').repoScript('signals/layout-paths.js')).pathsFor(w.root).recordsDir;
106
+ const c = require('./strategy-card.js').read(dir);
107
+ strategy = ['for', 'problem', 'bet', 'win', 'wont'].some((k) => String((c && c[k]) || '').trim());
108
+ } catch { /* no records folder: no strategy */ }
109
+ return { initiatives: ids.size, dated, goal, goalTitle, week, tracker, strategy };
110
+ }
111
+
112
+ /** The one next step a waiting place offers, from what PMOS already holds (initiative empty-page-next-action, idea A474).
113
+ * PURE. → { id, say, ask } | null. `say` is the line on screen and names the source; `ask` is what a press puts in the chat, unsent:
114
+ * it asks PMOS to show the draft before it keeps anything (the person approves). Order: Board and Reports (both fill from initiatives)
115
+ * tracker → strategy → paste; Intelligence (fills from a goal) strategy → initiatives → paste. */
116
+ const KEEP = ' Show them to me before you keep any.';
117
+ const NEXT = {
118
+ tracker: { id: 'tracker', say: 'Make initiatives from the Jira epics PMOS read', ask: 'Make draft initiatives for this product from the Jira epics PMOS has read.' + KEEP },
119
+ strategy: { id: 'strategy', say: 'Draft initiatives from the strategy', ask: 'Draft three initiatives for this product from its strategy.' + KEEP },
120
+ paste: { id: 'paste', say: 'Paste a list of the work, and PMOS makes initiatives from it', ask: 'Make an initiative from each line of this list.' + KEEP + '\n\n' },
121
+ goalStrategy: { id: 'strategy', say: 'Draft a goal from the strategy', ask: 'Draft one goal for this quarter, with two or three key results, from this product\'s strategy. Show it to me before you keep it.' },
122
+ goalWork: { id: 'initiatives', say: 'Draft a goal from your initiatives', ask: 'Draft one goal for this quarter, with two or three key results, from this product\'s open initiatives. Show it to me before you keep it.' },
123
+ goalPaste: { id: 'paste', say: 'Write what you want to reach, and PMOS makes a goal from it', ask: 'Make one goal with key results from what we want to reach this quarter. Show it to me before you keep it.\n\n' },
124
+ };
125
+ function nextOf(place, F) {
126
+ if (!F) return null;
127
+ if (place === 'insights') return { ...(F.strategy ? NEXT.goalStrategy : F.initiatives > 0 ? NEXT.goalWork : NEXT.goalPaste) };
128
+ if (place === 'board' || place === 'reports') return { ...(F.tracker ? NEXT.tracker : F.strategy ? NEXT.strategy : NEXT.paste) };
129
+ return null;
102
130
  }
103
131
 
104
132
  /** Which places the facts open. */
@@ -113,6 +141,13 @@ function isNew(ctx, w) {
113
141
  } catch { return false; }
114
142
  }
115
143
 
144
+ const told = new Set();
145
+ /** One [moments] next line per place and step, so a responder sees which step a waiting place offered. */
146
+ function logNext(place, id) {
147
+ const k = place + ':' + id; if (told.has(k)) return; told.add(k);
148
+ try { console.info('[moments] next', place, id); } catch { /* no console */ }
149
+ }
150
+
116
151
  const dayOf = (now) => { const d = new Date(now); return d.getFullYear() + '-' + String(d.getMonth() + 1).padStart(2, '0') + '-' + String(d.getDate()).padStart(2, '0'); };
117
152
 
118
153
  /** Whether moment m is due for a workspace with facts F and setup record P. */
@@ -137,7 +172,7 @@ function wordsOf(m, F) {
137
172
  * The whole view, and the writes it implies. Pure over its inputs: `rows` is one entry per workspace
138
173
  * { w, isNew, facts, progress, reveal? }. → { moment, places, writes }
139
174
  * moment the day's ✦ or null: { id, ws, product, text, sub, href, guide, guideLabel, go }
140
- * places { [place]: { quiet, dot, line } }
175
+ * places { [place]: { quiet, dot, line, next? } } next: the one step a quiet place offers (nextOf)
141
176
  * writes [{ ws, moments?, places? }] what to save (the first moment recorded, a place that opened)
142
177
  */
143
178
  function view(rows, now = Date.now()) {
@@ -148,6 +183,9 @@ function view(rows, now = Date.now()) {
148
183
  for (const p of PLACES) {
149
184
  const open = rows.some((r) => !r.isNew || openOf(r.facts)[p]);
150
185
  places[p] = { quiet: rows.length > 0 && !open, dot: false, line: QUIET[p] };
186
+ // a quiet place offers one next step, from the first new workspace's facts
187
+ const src = places[p].quiet && fresh.find((r) => r.facts);
188
+ if (src) { places[p].next = nextOf(p, src.facts); if (places[p].next) logNext(p, places[p].next.id); }
151
189
  }
152
190
  let answeredToday = false, current = null;
153
191
  for (const r of fresh) {
@@ -238,4 +276,4 @@ function visit(ctx, place, now = Date.now()) {
238
276
  return { ok: true };
239
277
  }
240
278
 
241
- module.exports = { MOMENTS, PLACES, QUIET, facts, openOf, isNew, view, rowsOf, current, answer, visit, dayOf };
279
+ module.exports = { MOMENTS, PLACES, QUIET, facts, nextOf, openOf, isNew, view, rowsOf, current, answer, visit, dayOf };
@@ -2,7 +2,7 @@
2
2
  /* routes-moments.js — a feature appears when its moment comes, over HTTP (onboarding build B3; lib/moments.js holds the rules).
3
3
  *
4
4
  * GET /api/moments → { ok, moment: { id, ws, product, text, sub, href, guide, guideLabel, go, shown } | null,
5
- * places: { board|insights|reports: { quiet, dot, line } } }
5
+ * places: { board|insights|reports: { quiet, dot, line, next? } } } next: { id, say, ask }, the one step a quiet place offers
6
6
  * the day's ✦ for Home's chat, the menu dots, and the quiet line of a place not open yet
7
7
  * POST /api/moments/shown { ws, id } → { ok } the ✦ was drawn: it is that day's moment
8
8
  * POST /api/moments/keep { ws, id } → { ok } ✓: the page opens the place; its dot clears
@@ -19,7 +19,9 @@
19
19
  * record(dir, events, now) → { ok, wrote } | { ok: false, error } at most MAX_BATCH events per call
20
20
  * summary(lines, now) → { keep, days, opens, uses, pages: [{ page, n }], controls: [{ page, control, n }] } PURE, last KEEP_DAYS days
21
21
  * clear(dir) → { ok }
22
- * CLI: node lib/use-log.js count → the distinct days with a line in the last KEEP_DAYS days, on its last line (the health number) */
22
+ * keys(lines, days, now) → { used, missed, pct } PURE, the action keys (bet A477)
23
+ * CLI: node lib/use-log.js count → the distinct days with a line in the last KEEP_DAYS days, on its last line (the health number)
24
+ * node lib/use-log.js keys [--days 7] → [action-keys] used n, [action-keys] missed n, then the hit percent on its last line */
23
25
  const fs = require('fs');
24
26
  const path = require('path');
25
27
 
@@ -118,9 +120,31 @@ function clear(dir) {
118
120
 
119
121
  module.exports = { FILE, KEEP_DAYS, MAX_BATCH, KINDS, DEVICES, PAGE_RE, CONTROL_RE, ledgerFile, pageOf, clean, readLines, record, summary, clear };
120
122
 
123
+ /** PURE: the action keys (bet A477, pm/action-keys.js) in the last `days` days: { used, missed, pct }. used = presses that acted
124
+ * (control key-<action>), missed = presses with nothing to act on (key-miss), pct = used / all, 100 when there were none. */
125
+ function keys(lines, days = 7, now = Date.now()) {
126
+ const from = now - Math.max(1, Number(days) || 7) * DAY;
127
+ let used = 0, missed = 0;
128
+ for (const l of lines || []) {
129
+ if (!l || l.kind !== 'use' || !/^key-/.test(l.control || '') || !(Date.parse(l.at) >= from)) continue;
130
+ if (l.control === 'key-miss') missed++; else used++;
131
+ }
132
+ return { used, missed, pct: used + missed ? Math.round((100 * used) / (used + missed)) : 100 };
133
+ }
134
+
135
+ module.exports.keys = keys;
136
+
121
137
  if (require.main === module) {
122
138
  const cmd = process.argv[2];
123
- if (cmd !== 'count') { console.error('usage: node lib/use-log.js count (the distinct days with a line in the last ' + KEEP_DAYS + ' days)'); process.exit(2); }
139
+ const usage = 'usage: node lib/use-log.js count (the distinct days with a line in the last ' + KEEP_DAYS + ' days)\n'
140
+ + ' node lib/use-log.js keys [--days 7] (actions taken with a key, presses with nothing to act on, and the hit percent)';
141
+ if (cmd !== 'count' && cmd !== 'keys') { console.error(usage); process.exit(2); }
124
142
  const dir = require('./state-root.js').defaultRoot({ env: process.env });
125
- console.log(String(summary(readLines(dir)).days));
143
+ if (cmd === 'count') console.log(String(summary(readLines(dir)).days));
144
+ else {
145
+ const i = process.argv.indexOf('--days'), k = keys(readLines(dir), i > 0 ? process.argv[i + 1] : 7);
146
+ console.log('[action-keys] used ' + k.used);
147
+ console.log('[action-keys] missed ' + k.missed);
148
+ console.log(String(k.pct));
149
+ }
126
150
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.713.0",
3
+ "version": "0.714.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.713.0",
9
+ "version": "0.714.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@anthropic-ai/sdk": "^1.3.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.713.0",
3
+ "version": "0.714.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",
@@ -229,6 +229,8 @@ const everyPart = async (pg) => { await pg.waitForSelector('#czViewer .pw-ph', {
229
229
  for (const [w, h, theme] of [[1280, 900, 'light'], [1280, 900, 'dark'], [390, 844, 'light'], [390, 844, 'dark']]) {
230
230
  const R = await open({ w, h, theme, props: [prop()] });
231
231
  await until(() => R.page.evaluate((v) => !!document.querySelector(v + ' .vwag'), V));
232
+ // the Viewer adds its stylesheets as it opens (premium-viewer.js, cozy-viewer.js): measure once every sheet has loaded, not before
233
+ await until(() => R.page.evaluate(() => [...document.querySelectorAll('link[rel="stylesheet"]')].every((l) => !!l.sheet)));
232
234
  const f = await R.page.evaluate(([v, small]) => {
233
235
  const bad = [], root = document.querySelector(v);
234
236
  for (const e of root.querySelectorAll('button,input,textarea')) { const r = e.getBoundingClientRect(); if (r.width && r.height && r.height < (small ? 44 : 30)) bad.push(e.textContent.trim().slice(0, 20) + ':' + Math.round(r.height)); }
@@ -0,0 +1,187 @@
1
+ /* pm/action-keys.js — one key each for the five actions people take most (bet A477, initiative action-keys).
2
+ *
3
+ * y Yes to what PMOS proposes o Open the item s Move it to the next sprint p Park it z Undo ? the list of keys
4
+ *
5
+ * A key presses the button the item ALREADY has: it adds no action and no route, so every page and every product built with PMOS gets it
6
+ * without wiring. The item is what the pointer is over, or what has focus, whichever moved last. Its button is found by its words
7
+ * (aria-label, then title, then text), in the item and its parents up to the list, section or dialog that holds it, never across the page,
8
+ * so `y` on one row never says Yes to the next row's proposal. Undo also takes the newest Toast's Undo, from anywhere.
9
+ *
10
+ * Hover explains: a button that has a key gets aria-keyshortcuts and its key in its tooltip ("Open the PRD (O)").
11
+ * Keys do nothing while typing, in a terminal, with Ctrl, Cmd or Alt, on a held key, or when the page already used the key.
12
+ * Each press is counted on this computer only (pm/use-log.js noteUse: `key-<action>` or `key-miss`, no text, no value).
13
+ *
14
+ * startActionKeys(doc) called once by the menu (pm/cozy-nav.js mountNav), which every page mounts; a second call does nothing
15
+ * actOf(words) PURE: 'approve' | 'open' | 'sprint' | 'park' | 'undo' | ''
16
+ * keyAct(e) PURE: the action a key event asks for, 'sheet' for ?, or null
17
+ * targetOf(act, here, doc) the button (or, for open, the row) the key presses, or null
18
+ * hint(el) put the key on a button's tooltip once
19
+ * sheetHtml(here) PURE: the ? list's markup; here = Set of the actions with something to act on */
20
+ import { noteUse } from './use-log.js';
21
+
22
+ export const KEYS = [
23
+ { key: 'y', act: 'approve', say: 'Yes to what PMOS proposes' },
24
+ { key: 'o', act: 'open', say: 'Open the item' },
25
+ { key: 's', act: 'sprint', say: 'Move it to the next sprint' },
26
+ { key: 'p', act: 'park', say: 'Park it' },
27
+ { key: 'z', act: 'undo', say: 'Undo' },
28
+ ];
29
+ const ACT_OF_KEY = Object.fromEntries(KEYS.map((k) => [k.key, k.act]));
30
+ const KEY_OF_ACT = Object.fromEntries(KEYS.map((k) => [k.act, k.key]));
31
+ // order matters: "Undo: open it again" is Undo, "Yes, open it" is Yes
32
+ const RULES = [
33
+ ['undo', /^undo\b/i],
34
+ ['approve', /^(yes|approve|accept)\b/i],
35
+ ['sprint', /\bnext sprint\b/i],
36
+ ['park', /^(park|put (it )?on hold|hold it|hold)\b/i],
37
+ ['open', /^open\b/i],
38
+ ];
39
+ export const PRESS = 'button, a[href], [role="button"], [role="menuitem"]';
40
+ const ROW = '[role="row"], [role="option"], [role="listitem"], .pm-li, li, tr, [data-open]';
41
+ // the item ends where its list, section or dialog starts: a key never reaches into another item
42
+ const STOP = 'body, main, [role="main"], section, [role="region"], dialog, [role="dialog"], nav, ul, ol, table, [role="list"], [role="listbox"], [role="grid"], [role="table"], [role="tree"]';
43
+ const TOAST = '.pm-toast, [data-c3-toast], .toast, [role="status"], [role="alert"]';
44
+ const TYPING = 'input, textarea, select, [contenteditable=""], [contenteditable="true"], [role="textbox"]';
45
+ const esc = (s) => String(s == null ? '' : s).replace(/[&<>"]/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;' }[c]));
46
+ const say = (s) => { try { console.info('[action-keys] ' + s); } catch { /* no console */ } };
47
+
48
+ /** The words a control is known by: aria-label, then title (without a key already added), then its text. */
49
+ export function wordsOf(el) {
50
+ if (!el || !el.getAttribute) return '';
51
+ const w = el.getAttribute('aria-label') || String(el.getAttribute('title') || '').replace(/\s*\([A-Z?]\)$/, '') || el.textContent || '';
52
+ return String(w).replace(/\s+/g, ' ').trim();
53
+ }
54
+
55
+ /** PURE: the action some words name, or ''. */
56
+ export function actOf(words) {
57
+ const w = String(words || '').trim();
58
+ if (!w) return '';
59
+ for (const [act, re] of RULES) if (re.test(w)) return act;
60
+ return '';
61
+ }
62
+
63
+ /** PURE: the action a key event asks for ('sheet' for ?), or null when the key is not ours to take. */
64
+ export function keyAct(e) {
65
+ if (!e || e.defaultPrevented || e.repeat || e.ctrlKey || e.metaKey || e.altKey) return null;
66
+ const t = e.target;
67
+ if (t && t.closest && (t.closest(TYPING) || t.closest('.xterm'))) return null;
68
+ if (t && t.isContentEditable) return null;
69
+ if (e.key === '?') return 'sheet';
70
+ return ACT_OF_KEY[e.key] || null;
71
+ }
72
+
73
+ const usable = (el) => {
74
+ if (!el || el.disabled || (el.getAttribute && (el.getAttribute('aria-disabled') === 'true' || el.hasAttribute('hidden')))) return false;
75
+ if (el.closest && el.closest('[hidden], [inert]')) return false;
76
+ return typeof el.getClientRects !== 'function' || el.getClientRects().length > 0; // display:none has no box
77
+ };
78
+ const matches = (el, sel) => !!(el && el.matches && el.matches(sel));
79
+ const pressesIn = (scope, act) => [...(matches(scope, PRESS) ? [scope] : []), ...(scope.querySelectorAll ? scope.querySelectorAll(PRESS) : [])]
80
+ .filter((c) => actOf(wordsOf(c)) === act && usable(c));
81
+
82
+ /** The button (or, for open, the row) a key presses for the item at `here`, or null. */
83
+ export function targetOf(act, here, doc = typeof document !== 'undefined' ? document : null) {
84
+ if (!KEY_OF_ACT[act]) return null;
85
+ let row = null;
86
+ for (let s = here && here.nodeType === 3 ? here.parentElement : here; s && !matches(s, STOP); s = s.parentElement) {
87
+ const c = pressesIn(s, act)[0];
88
+ if (c) return c;
89
+ if (!row && matches(s, ROW)) row = s;
90
+ }
91
+ if (act === 'undo' && doc && doc.querySelectorAll) { // the newest Toast's Undo, from anywhere on the page
92
+ const all = [...doc.querySelectorAll(TOAST)].flatMap((t) => pressesIn(t, 'undo'));
93
+ if (all.length) return all[all.length - 1];
94
+ }
95
+ if (act === 'open' && row && usable(row)) return row; // a row opens when it is pressed
96
+ return null;
97
+ }
98
+
99
+ /** The actions with something to act on anywhere on this page (the ? list marks the others). */
100
+ export function actsHere(doc) {
101
+ const out = new Set();
102
+ if (!doc || !doc.querySelectorAll) return out;
103
+ for (const c of doc.querySelectorAll(PRESS)) { const a = actOf(wordsOf(c)); if (a && usable(c)) out.add(a); }
104
+ if (doc.querySelector && doc.querySelector(ROW)) out.add('open');
105
+ return out;
106
+ }
107
+
108
+ /** Put the key on a button's tooltip once: "Open the PRD (O)". A button with no key is left alone. */
109
+ export function hint(el) {
110
+ if (!el || !el.getAttribute || el.getAttribute('aria-keyshortcuts')) return false;
111
+ const k = KEY_OF_ACT[actOf(wordsOf(el))];
112
+ if (!k) return false;
113
+ el.setAttribute('aria-keyshortcuts', k);
114
+ const t = el.getAttribute('title') || el.getAttribute('aria-label') || '';
115
+ if (t) el.setAttribute('title', t + ' (' + k.toUpperCase() + ')');
116
+ return true;
117
+ }
118
+
119
+ const X = '<svg aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 6l12 12M18 6L6 18"/></svg>';
120
+
121
+ /** PURE: the ? list. here = Set of the actions with something to act on on this page. */
122
+ export function sheetHtml(here = new Set()) {
123
+ const row = (k, words, on = true) => `<li class="pm-row"><kbd class="pm-kbd">${esc(k)}</kbd><span>${esc(words)}</span>${on ? '' : '<span class="pm-meta">Not on this page</span>'}</li>`;
124
+ return `<div class="pm-row ev-keys-head"><h2 class="pm-h-sm" id="akTitle">Keys</h2>`
125
+ + `<button type="button" class="pm-btn" data-ak-close aria-label="Close" title="Close">${X}</button></div>`
126
+ + '<p class="pm-meta">Point at an item, or tab to it, then press its key.</p>'
127
+ + `<ul class="ev-keys-list">${KEYS.map((k) => row(k.key.toUpperCase(), k.say, here.has(k.act))).join('')}${row('?', 'This list')}</ul>`;
128
+ }
129
+
130
+ let started = false;
131
+ const S = { pointer: null, pointerT: 0, focusT: 0, sheet: null };
132
+
133
+ function hereOf(doc) {
134
+ const a = doc.activeElement;
135
+ const focused = a && a !== doc.body && a !== doc.documentElement ? a : null;
136
+ return focused && (S.focusT >= S.pointerT || !S.pointer || !S.pointer.isConnected) ? focused : (S.pointer && S.pointer.isConnected ? S.pointer : focused);
137
+ }
138
+
139
+ function sheet(doc, show) {
140
+ if (S.sheet && S.sheet.open) { S.sheet.close(); if (show !== true) return; }
141
+ if (show === false) return;
142
+ let d = S.sheet;
143
+ if (!d || !d.isConnected) {
144
+ d = doc.createElement('dialog');
145
+ d.className = 'pm-ds ev-keys'; // its look is in cozy-ev.css, which the menu adds to every page
146
+ d.setAttribute('aria-labelledby', 'akTitle');
147
+ doc.body.appendChild(d);
148
+ S.sheet = d;
149
+ }
150
+ d.innerHTML = sheetHtml(actsHere(doc));
151
+ if (typeof d.showModal === 'function') d.showModal(); else d.setAttribute('open', '');
152
+ say('list opened');
153
+ }
154
+
155
+ export function startActionKeys(doc = typeof document !== 'undefined' ? document : null) {
156
+ if (started || !doc || !doc.addEventListener) return false;
157
+ started = true;
158
+ // Close, or a press on the backdrop, closes the ? list (delegated from the document, like every other part)
159
+ if (doc.defaultView) doc.defaultView.addEventListener('click', (e) => {
160
+ const d = S.sheet;
161
+ if (d && d.open && (e.target === d || (e.target && e.target.closest && e.target.closest('[data-ak-close]')))) d.close();
162
+ });
163
+ doc.addEventListener('pointerover', (e) => {
164
+ S.pointer = e.target; S.pointerT = Date.now();
165
+ const c = e.target && e.target.closest ? e.target.closest(PRESS) : null;
166
+ if (c) hint(c);
167
+ }, { passive: true });
168
+ doc.addEventListener('focusin', (e) => {
169
+ S.focusT = Date.now();
170
+ if (e.target && e.target.closest) { const c = e.target.closest(PRESS); if (c) hint(c); }
171
+ });
172
+ // the bubble phase, so a page's own key (j, k, x, t, a dialog's Esc) runs first and wins
173
+ doc.addEventListener('keydown', (e) => {
174
+ const act = keyAct(e);
175
+ if (!act) return;
176
+ if (act === 'sheet') { e.preventDefault(); sheet(doc); return; }
177
+ if (S.sheet && S.sheet.open) return; // the list is open: only Esc and ? act
178
+ const el = targetOf(act, hereOf(doc), doc);
179
+ if (!el) { noteUse('key-miss'); say(act + ': nothing here to act on'); return; }
180
+ e.preventDefault();
181
+ hint(el);
182
+ el.click();
183
+ noteUse('key-' + act);
184
+ say(act);
185
+ });
186
+ return true;
187
+ }
@@ -413,6 +413,9 @@
413
413
  /* a quiet place (pm/quiet-place.js, onboarding B3 ObA4Gradual): one honest line instead of empty tables, until its moment comes */
414
414
  .qp-on > :not(.qp-line) { display: none !important; }
415
415
  .qp-line { margin: 18vh auto 0; max-width: 520px; padding: 0 var(--space-16); text-align: center; font-size: var(--fs-row); font-weight: var(--fw-strong); color: var(--cz-ink2); line-height: 1.5; }
416
+ .qp-line > p { margin: 0; }
417
+ /* its one next step (initiative empty-page-next-action): the Komorebi Suggestion part, under the line, left-aligned inside */
418
+ .qp-line .pm-state-next, .ins-empty .pm-state-next { display: inline-flex; margin-top: var(--space-16); text-align: left; font-weight: var(--fw-regular); }
416
419
  /* Settings › Claude › How Claude decides and Lessons (boards AwG, AwG2): a lesson says what went wrong in amber, what changed in blue */
417
420
  .cz .ev-lead { margin: 0 0 var(--space-4); }
418
421
  .cz .ev-ls { display: flex; flex-direction: column; gap: 2px; }
@@ -539,3 +542,7 @@
539
542
  .ev-st.pm-ds svg.ev-gbar .bg { fill: var(--well); }
540
543
  .ev-st.pm-ds svg.ev-gbar .fg { fill: var(--leaf); }
541
544
 
545
+ /* ── the ? list of action keys (pm/action-keys.js, bet A477): a Komorebi sheet over the page; its parts are pm-h-sm, pm-row, pm-kbd, pm-meta, pm-btn ── */
546
+ .ev-keys.pm-ds { border: 0; border-radius: var(--radius-card); background: var(--card); color: var(--ink); box-shadow: var(--lift); padding: var(--space-24); width: min(420px, calc(100% - var(--space-32))); }
547
+ .ev-keys.pm-ds .ev-keys-head { justify-content: space-between; }
548
+ .ev-keys.pm-ds .ev-keys-list { list-style: none; margin: var(--space-16) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-8); }
@@ -44,6 +44,7 @@ import { mountToastFaces, loadPrefs } from './cozy-adler.js';
44
44
  import './draft-keep.js'; // forms-keep-drafts: every text box on every page keeps a draft until sent, saved or cleared
45
45
  import { pmPost } from './http.js'; // Adler (batch 16 item 2): every toast carries his S face; Settings > Adler is read once
46
46
  import { startUseLog } from './use-log.js'; // bet A466: every page mounts the menu, so the menu starts the local use log (this computer only)
47
+ import { startActionKeys } from './action-keys.js'; // bet A477: y o s p z act on the item under the pointer, ? lists the keys
47
48
 
48
49
  /* The six places (slice 1). A place shows once it has an href: Events, Library and Routine get theirs when their slice ships. Until then
49
50
  * Today is today.html (slice 5; Home before it), Work is the Board and Goals is premium-goals.html (slice 9; Intelligence before it); the keys stay the pages' own (home, board, insights). */
@@ -200,6 +201,7 @@ export function mountNav(here, doc = document, opts = {}) {
200
201
  doc.body.appendChild(w);
201
202
  mountToastFaces(doc); loadPrefs();
202
203
  startUseLog(doc);
204
+ startActionKeys(doc);
203
205
  const fab = w.querySelector('#czFab'), menu = w.querySelector('#czMenu'), scrim = w.querySelector('#czScrim');
204
206
  const draw = () => {
205
207
  N.rail = railOn();
@@ -8,6 +8,8 @@
8
8
  * (the same chat with the scope filled in), and Settings › Workflows' New workflow opens here too, so there is no second chat column.
9
9
  *
10
10
  * openCos({ here, ws? }) → true the chief-of-staff chat; here: the page's words for the chip ("Board · Atlas"), '' for none
11
+ * ask(text, { ws?, here? }) → true the chief-of-staff chat with `text` written in its box, NOT sent: the person reads it and sends it
12
+ * (a waiting page's next step, state-blocks.js next; initiative empty-page-next-action)
11
13
  * openTarget(t, o) → true any chat target (home-chat.js mountChat open), o: { title, url }; while the popup shows, its chat
12
14
  * box() → { el, chat } the chat for the popup's right side (cozy-popup.js)
13
15
  *
@@ -99,6 +101,20 @@ export async function openCos(o = {}) {
99
101
  if (!isPhone()) { const P = await import('./cozy-popup.js'); return P.openCos(cosTarget(o.here, o.ws)); }
100
102
  return openTarget(cosTarget(o.here, o.ws), { title: 'Ask PMOS', url: '/premium.html' });
101
103
  }
104
+ export async function ask(text, o = {}) {
105
+ const here = o.here != null ? String(o.here) : String((typeof document !== 'undefined' && document.title) || '').replace(/\s*[·|–-]\s*PMOS\s*$/i, '').trim();
106
+ await openCos({ here, ws: o.ws });
107
+ let n = 0;
108
+ const t = setInterval(() => {
109
+ const b = document.querySelector('.pc-chat textarea');
110
+ if (!b && ++n <= 40) return;
111
+ clearInterval(t);
112
+ if (!b) return;
113
+ b.value = String(text || ''); b.dispatchEvent(new Event('input', { bubbles: true })); b.focus();
114
+ try { b.setSelectionRange(b.value.length, b.value.length); } catch { /* not a text box */ }
115
+ }, 50);
116
+ return true;
117
+ }
102
118
  const isPhone = () => typeof innerWidth === 'number' && innerWidth <= 760;
103
119
  /** The chat itself for the popup (cozy-popup.js): mounted once, the same element and conversation reader as the chat panel. */
104
120
  export async function box() {
@@ -35,7 +35,7 @@ import * as GW from './grill-words.js'; // Grill and Forecast screens (canvas
35
35
  import * as PK from './cozy-pick.js'; // the one product picker Home, Board and Insights share (batch 12 item 5)
36
36
  import { openReport } from './premium-report-read.js';
37
37
  import { mountNav } from './cozy-nav.js';
38
- import { quietPlace, quietLine } from './quiet-place.js'; // onboarding B3: before a goal is kept Intelligence shows one line; reports before a week of movement
38
+ import { quietPlace, quietLine, quietNext } from './quiet-place.js'; // onboarding B3: before a goal is kept Intelligence shows one line; reports before a week of movement
39
39
  import { mountLivePill } from './cozy-live-pill.js';
40
40
  import { mountPanels } from './cozy-panels.js';
41
41
  import * as IM from './impact.js'; // Your impact's ✦ line (batch 16 item 7): a key result your work moved
@@ -2195,7 +2195,7 @@ function drawList() {
2195
2195
  // U3: no "Needs you N" heading; the rows and their ✓ are the signal, and the count belongs to Your move on Home (zero is silence)
2196
2196
  const needs = nNeed ? `<div class="ins-nlist" id="repNeeds" role="list" aria-label="Waiting for you">${waits.map(needRowHtml).join('')}${waitAsks.map(askNeedHtml).join('')}</div>` : '';
2197
2197
  const table = rest.length + restAsks.length ? `<div class="ins-sec"><h3>Yours</h3><span class="q">${rest.length + restAsks.length}</span></div><div class="ins-rtbl" id="repAsks">${head3}<div role="list">${rest.map(repRowHtml).join('')}${restAsks.map(askRowHtml).join('')}</div></div>`
2198
- : !empty && !needs ? (quietLine('reports') ? `<div class="ins-empty"><b>${esc(quietLine('reports'))}</b></div>` : '<div class="ins-empty"><b>No report is set up and no report file is on record.</b> Reports are made in Home.</div>') : '';
2198
+ : !empty && !needs ? (quietLine('reports') ? `<div class="ins-empty"><b>${esc(quietLine('reports'))}</b>${quietNext('reports')}</div>` : '<div class="ins-empty"><b>No report is set up and no report file is on record.</b> Reports are made in Home.</div>') : '';
2199
2199
  const dd = savedDash().length ? null : draftedDash();
2200
2200
  const dashBlock = `<div class="ins-sec"><h3>Dashboards</h3><span class="q">${dashes.length && !dd ? dashes.length + ' · a dashboard is a saved view of Goals' : dd ? '1 drafted · ' + esc(dd.name) : 'none saved · select rows, then Save'}</span></div><div class="ins-dgrid" role="list">${dd ? draftedCard(dd) : ''}${dashes.map(dashCard).join('')}</div>`;
2201
2201
  $('#repBody').innerHTML = `${needs}${oneNote()}${libFolds(LIB.L) || '<div id="readyLib"></div>'}<div id="listRows" aria-label="Dashboards and reports">${fbox}${empty}${table}${dashBlock}</div>`;
@@ -5,8 +5,12 @@
5
5
  * quietPlace(place, stage) follows the menu's read of GET /api/moments (the event 'cz:moments' from pm/cozy-nav.js): while the place is
6
6
  * quiet, the page's panel shows only its line; the moment it opens, the page is back as it was
7
7
  * quietLine(place) the line while that place is quiet, else '' (Intelligence's reports panel uses it for its empty state)
8
+ * quietNext(place) the one next step that fills the place, as state-blocks.js next() draws it, else '' (initiative
9
+ * empty-page-next-action: Make initiatives from the Jira epics PMOS read · Draft from the strategy · Paste a list)
8
10
  * A published (read-only) copy is never quiet. Quiet only applies when every workspace on this computer is new and none has reached that
9
11
  * place, so a PMOS already in use never loses a page. */
12
+ import { next } from './state-blocks.js';
13
+
10
14
  let last = null;
11
15
  if (typeof document !== 'undefined') document.addEventListener('cz:moments', (e) => { last = e.detail || null; });
12
16
 
@@ -16,14 +20,23 @@ export const quietLine = (place) => {
16
20
  return p && p.quiet ? String(p.line || '') : '';
17
21
  };
18
22
 
23
+ export const quietNext = (place) => {
24
+ if (!quietLine(place)) return '';
25
+ const p = last.places[place];
26
+ return next(p && p.next);
27
+ };
28
+
19
29
  export function quietPlace(place, stage, doc = document) {
20
30
  if (!stage || (typeof window !== 'undefined' && window.PMOS_READONLY)) return;
21
31
  const draw = () => {
22
32
  const line = quietLine(place);
23
33
  let el = stage.querySelector(':scope > .qp-line');
24
34
  if (!line) { stage.classList.remove('qp-on'); if (el) el.remove(); return; }
25
- if (!el) { el = doc.createElement('p'); el.className = 'qp-line'; el.setAttribute('role', 'status'); stage.prepend(el); }
26
- el.textContent = line;
35
+ if (!el) { el = doc.createElement('div'); el.className = 'qp-line'; stage.prepend(el); }
36
+ const p = doc.createElement('p'); p.setAttribute('role', 'status'); p.textContent = line;
37
+ el.replaceChildren(p);
38
+ const step = quietNext(place);
39
+ if (step) el.insertAdjacentHTML('beforeend', step);
27
40
  stage.classList.add('qp-on');
28
41
  };
29
42
  doc.addEventListener('cz:moments', () => setTimeout(draw, 0));
@@ -6,6 +6,12 @@
6
6
  * error(line, { retry }) one line in words that says what failed, and Retry when the page can try again.
7
7
  * `retry` is the data attribute the page listens for, e.g. 'data-vc-retry'.
8
8
  *
9
+ * next(step) the one next step of a page with nothing in it yet (initiative empty-page-next-action): the Komorebi
10
+ * Suggestion part, ✦ and step.say, with one icon-only primary button. step = { id, say, ask } from
11
+ * lib/moments.js nextOf; null draws nothing. A press puts step.ask in the one chat, unsent (Home's own box
12
+ * on Home, else page-chat.js ask), so the person reads it and sends it: nothing is kept without their yes.
13
+ * The button's first data attribute is data-sb-next, the name the local use log counts it under.
14
+ *
9
15
  * `line` and `what` are plain text and are escaped here. `step` is trusted HTML the page built (a button or a link).
10
16
  * The look lives in ui/components/bundle.css (.pm-state), so a Komorebi token change reaches every state on every page.
11
17
  * An error writes one [state-block] line per distinct failure, so a responder can find it in the console. */
@@ -13,6 +19,7 @@
13
19
  const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }[c]));
14
20
  const ATTR = /^data-[a-z0-9-]+(="[^"<>]*")?$/; // a page's own press mark, nothing else
15
21
  const RETRY = '<svg class="pm-ic" width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/></svg>';
22
+ const SEND = '<svg class="pm-ic" width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12h14M13 6l6 6-6 6"/></svg>';
16
23
  const said = new Set();
17
24
 
18
25
  export function empty(line, { step = '' } = {}) {
@@ -34,3 +41,27 @@ export function error(line, { retry = '' } = {}) {
34
41
  const btn = mark ? `<button type="button" class="pm-btn" aria-label="Try again" title="Try again" ${mark}>${RETRY}</button>` : '';
35
42
  return `<p class="pm-state error" role="alert"><span>${esc(text)}</span>${btn}</p>`;
36
43
  }
44
+
45
+ export function next(step) {
46
+ if (!step || !step.say || !step.ask) return '';
47
+ const name = 'Write it in the chat for you to send';
48
+ return `<div class="pm-sug pm-state-next"><span class="pm-star" aria-hidden="true">✦</span><span class="say">${esc(step.say)}</span>`
49
+ + `<button type="button" data-sb-next="${esc(step.ask)}" class="pm-btn primary" aria-label="${name}" title="${name}">${SEND}</button></div>`;
50
+ }
51
+
52
+ /** The step's words go in the one chat, not sent: Home's own box on Home, else the chat over this page. */
53
+ async function askInChat(text) {
54
+ const box = document.getElementById('hmIn');
55
+ if (box) { box.value = text; box.dispatchEvent(new Event('input', { bubbles: true })); box.focus(); return; }
56
+ let ws; try { ws = new URLSearchParams(location.search).get('ws') || undefined; } catch { ws = undefined; }
57
+ const M = await import('./page-chat.js');
58
+ await M.ask(text, { ws });
59
+ }
60
+ if (typeof document !== 'undefined' && document.addEventListener) {
61
+ document.addEventListener('click', (e) => {
62
+ const b = e.target && e.target.closest ? e.target.closest('[data-sb-next]') : null;
63
+ if (!b) return;
64
+ e.preventDefault();
65
+ askInChat(b.getAttribute('data-sb-next') || '').catch(() => null);
66
+ });
67
+ }
@@ -5,6 +5,7 @@
5
5
  * a script drives (navigator.webdriver: a test or a crawler is not the user's own use).
6
6
  * controlOf(el) PURE: the name a pressed element is logged under, or '' to log nothing
7
7
  * deviceOf(width) PURE: phone (≤ 760 px), tablet (≤ 1100 px) or desk
8
+ * noteUse(control) note one use a page names itself (pm/action-keys.js counts its key presses as key-<action> or key-miss)
8
9
  *
9
10
  * HIDE THE BUTTONS NOBODY PRESSES (idea A454; the rule and the store are lib/unused-controls.js). startUseLog also:
10
11
  * at load hides this page's hidden buttons (GET /api/use-log/hidden, one style rule per id, so a button drawn later is hidden too);
@@ -56,6 +57,14 @@ function note(ev) {
56
57
  Q.push({ ...ev, page: pageNow(), device: deviceNow(), t: Date.now() });
57
58
  }
58
59
 
60
+ /** Note one use the page names itself (pm/action-keys.js: `key-approve`, `key-miss`). The name must be a plain id; anything else is dropped.
61
+ * Nothing is noted before startUseLog runs, so a browser a script drives notes nothing here either. */
62
+ export function noteUse(control) {
63
+ if (!started || !ID_RE.test(String(control || ''))) return false;
64
+ note({ kind: 'use', control: String(control) });
65
+ return true;
66
+ }
67
+
59
68
  export function startUseLog(doc = typeof document !== 'undefined' ? document : null) {
60
69
  if (started || !doc) return false;
61
70
  if (botNow()) return false; // a browser driven by a script (a test, a crawler) is not the user's own use: nothing is noted
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "One key each for the top five actions (bet A477, initiative action-keys, done test planning/done-tests/action-keys.md K1-K8): the words each key presses, the keys it leaves alone, the target in the item under the pointer on a small fake page, the hover hint, the ? list, the local use-log count, and the menu's mount. No server, network or browser.",
3
+ "modules": [
4
+ "action-keys.test.js"
5
+ ],
6
+ "seconds": {
7
+ "action-keys.test.js": 2
8
+ }
9
+ }