create-pmos 0.587.0 → 0.589.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 (41) hide show
  1. package/package.json +27 -27
  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 +26 -0
  7. package/workspace/guide/home.md +13 -2
  8. package/workspace/guide/notes.md +14 -0
  9. package/workspace/lib/jira-status.js +10 -3
  10. package/workspace/lib/meeting-guest-page.js +53 -0
  11. package/workspace/lib/outbox-store.js +9 -2
  12. package/workspace/lib/route-modules.js +1 -0
  13. package/workspace/lib/routes-outbox.js +17 -2
  14. package/workspace/lib/routes-waiting.js +24 -0
  15. package/workspace/lib/share-store.js +3 -2
  16. package/workspace/lib/waiting-on.js +252 -0
  17. package/workspace/milestone-suggest-test.js +5 -4
  18. package/workspace/package-lock.json +2 -2
  19. package/workspace/package.json +1 -1
  20. package/workspace/panels-test.js +1 -1
  21. package/workspace/program-order-test.js +3 -1
  22. package/workspace/public/pm/cozy-today.css +28 -0
  23. package/workspace/public/pm/good-morning.js +6 -2
  24. package/workspace/public/pm/home-app.js +60 -5
  25. package/workspace/public/pm/home-day.js +4 -1
  26. package/workspace/public/pm/home-list.js +3 -1
  27. package/workspace/public/pm/home-today.js +6 -3
  28. package/workspace/public/pm/home-top.js +102 -0
  29. package/workspace/public/pm/ini-tasks.js +6 -2
  30. package/workspace/public/pm/meeting-share.js +192 -0
  31. package/workspace/public/pm/move-rank.js +12 -3
  32. package/workspace/public/pm/outbox-view.js +54 -1
  33. package/workspace/public/pm/premium-vw-doc.css +28 -0
  34. package/workspace/public/pm/premium-vw-mtg.js +13 -8
  35. package/workspace/public/pm/premium-vw-share.js +70 -9
  36. package/workspace/server.js +41 -1
  37. package/workspace/share-server.js +14 -2
  38. package/workspace/sort-order-test.js +3 -1
  39. package/workspace/stage-card-tasks-test.js +2 -0
  40. package/workspace/test-lists/home-your-move-waiting.json +11 -0
  41. package/workspace/test-lists/meeting-share.json +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.587.0",
3
+ "version": "0.589.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,32 @@
33
33
  "audit"
34
34
  ],
35
35
  "pmosChanges": [
36
+ {
37
+ "v": "0.589.0",
38
+ "at": "2026-11-17T11:57:51.177Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1323,
43
+ "t": "A calmer Home — Your move and Waiting on others above today's list",
44
+ "s": "A calmer Home — Your move and Waiting on others above today's list",
45
+ "k": "new"
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "v": "0.588.0",
51
+ "at": "2026-11-17T10:44:25.596Z",
52
+ "f": 4,
53
+ "prs": [
54
+ {
55
+ "n": 1324,
56
+ "t": "Share a meeting note with people who have no PMOS",
57
+ "s": "Share a meeting note with people who have no PMOS",
58
+ "k": "new"
59
+ }
60
+ ]
61
+ },
36
62
  {
37
63
  "v": "0.587.0",
38
64
  "at": "2026-11-17T10:24:56.955Z",
@@ -272,32 +298,6 @@
272
298
  "k": "new"
273
299
  }
274
300
  ]
275
- },
276
- {
277
- "v": "0.569.0",
278
- "at": "2026-11-15T17:07:37.237Z",
279
- "f": 4,
280
- "prs": [
281
- {
282
- "n": 1301,
283
- "t": "Close the five gaps the launch rerun found (launch simulation W6)",
284
- "s": "Close the five gaps the launch rerun found (launch simulation W6)",
285
- "k": "new"
286
- }
287
- ]
288
- },
289
- {
290
- "v": "0.568.0",
291
- "at": "2026-11-12T05:06:58.936Z",
292
- "f": 4,
293
- "prs": [
294
- {
295
- "n": 1300,
296
- "t": "Project and Full SDLC get their own workflows and gates (launch simulation W5)",
297
- "s": "Project and Full SDLC get their own workflows and gates (launch simulation W5)",
298
- "k": "new"
299
- }
300
- ]
301
301
  }
302
302
  ]
303
303
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@8b05fc39
1
+ kernel-source: pmos@3b54ad21
2
2
  assembled: 2026-11-17
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-11-17T10:24:53Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-17T11:57:48Z"}
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-17T10:24:53Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-17T11:57:48Z"}
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-17T10:24:53Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-17T11:57:48Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,30 @@
1
1
  [
2
+ {
3
+ "v": "0.589.0",
4
+ "at": "2026-11-17T11:57:51.177Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1323,
9
+ "t": "A calmer Home — Your move and Waiting on others above today's list",
10
+ "s": "A calmer Home — Your move and Waiting on others above today's list",
11
+ "k": "new"
12
+ }
13
+ ]
14
+ },
15
+ {
16
+ "v": "0.588.0",
17
+ "at": "2026-11-17T10:44:25.596Z",
18
+ "f": 4,
19
+ "prs": [
20
+ {
21
+ "n": 1324,
22
+ "t": "Share a meeting note with people who have no PMOS",
23
+ "s": "Share a meeting note with people who have no PMOS",
24
+ "k": "new"
25
+ }
26
+ ]
27
+ },
2
28
  {
3
29
  "v": "0.587.0",
4
30
  "at": "2026-11-17T10:24:56.955Z",
@@ -2,7 +2,7 @@
2
2
  type: Guide
3
3
  title: "Home: your list, the chat, the Viewer, My work, documents and people"
4
4
  description: "Home's list, Mentions, Your day, the chat and the Viewer; My work; documents and their copies; People; and the suggested next prompt."
5
- timestamp: 2026-11-11
5
+ timestamp: 2026-11-17
6
6
  ---
7
7
 
8
8
  # Home
@@ -36,7 +36,8 @@ Home, the Board, Insights and the Viewer use one typeface, Plus Jakarta Sans, wi
36
36
  - Then the list is grouped by **product**. A product header shows a tile with the product's short name, the product name, one dot for each goal (green on track, amber off track) and a chevron. When the product has chats of its own (the product's chat and its new sessions), the header has the same pill as an initiative row: press it to see them, and **+** starts a new session in the product. These chats are not under **Not in an initiative**. A program header has the same pill for the program's own chats, and **+** starts a new session in the program. The chat then shows the program or the product as its scope, not **Loose**. You set the short name in Settings. Press the product's name to open the product in the Viewer, with its goals and this week's update and metrics review. The chat then talks about the product. This is the same for every product in the list: Home stays on the workspace you opened it on. For another product, the weekly update and the metrics review open that product's own Home in a new tab. An initiative of another product opens from that product's own board, and its chat works in that product's workspace. This is also true for a new initiative that an agent made with `pmos initiative new` and that is not on the board's Now list yet: it opens with its title, stage and tasks.
37
37
  - Each row is one line. A dot is a session: blue when it waits on you, a ring while it runs. A check box is a task: amber when it is late. The stage track on the right shows where the initiative is. A session that runs under an initiative shows indented under it. An initiative shows its 3 most urgent tasks, and **N more** shows the rest.
38
38
  - **Not in an initiative** is one line at the end, with a blue dot, an amber square and a count. Press it to open the items that have no initiative.
39
- - **Kept** and **Done** are in the filter icon's menu, on a desktop only.
39
+ - **Mine**, **Kept** and **Done** are in the filter icon's menu, on a desktop only. **Mine** shows only what waits on you, under the heading **Waiting on you**.
40
+ - The weekly update and a program's milestone changes show once, in **Your move** at the top of the list. They are not rows in the list below it.
40
41
  - Every group stays open or closed after you reload the page.
41
42
  - On a desktop, the chat has a header line with the open item's name and where it sits (its initiative, product or program).
42
43
  - The microphone in the chat box turns what you say into text. Nothing is sent until you press send.
@@ -44,6 +45,16 @@ Home, the Board, Insights and the Viewer use one typeface, Plus Jakarta Sans, wi
44
45
 
45
46
  ## Your move
46
47
 
48
+ ### The top of Home
49
+
50
+ The top of Home's list says what is yours first, then who you wait on. When there is nothing to say, the top shows nothing.
51
+
52
+ - **Your move** shows the calls that always wait for you, in the same order as Good morning. Each row's quiet line starts with its kind: Message, Move the team reads, Your call, Blocked, Verdict, New request, Merge, or Delete or spend. An agreed meeting action that nobody owns is **Your call**: "Commerce workaround needs an owner". At most 5 show. The fold line under them says what it hides, for example "2 more · new request: Approve the intake and 1 other". Press it to see all of them, and **Show fewer** to close them.
53
+ - **Waiting on others** lists what someone else owes you. A row shows only when there is a real person: a meeting-note action that someone else owns, a Jira issue assigned to someone else with no update for 5 days or more on an initiative in Build, or a message you sent that has no reply. A row shows who, where it comes from, since when and how long.
54
+ - After 3 days, PMOS drafts one nudge for a row and puts it in the outbox: "Nudge drafted · goes as a Jira comment only when you send it from the Viewer". Press ↗ to open it in the Viewer. There, **Send**, **Edit** and **Not now** act on it. **Not now** hides the nudge until 09:00 the next day. Nothing is sent from the list. When no channel is connected, Send says so and offers **Copy**.
55
+ - A row leaves Waiting on others with a line, never in silence: "Faye replied on MSD-4388", "MSD-2 is done", or that PMOS no longer sees it. These lines stay for 7 days.
56
+ - Under them, one quiet line says what PMOS did since yesterday, with Undo, and one line says how the rest stands, for example "Everything else is on track · 8 initiatives in 3 products". It says "on track" only when every open initiative is on track.
57
+
47
58
  Your move is the one inbox. Every ask that needs you waits here, in PMOS's order: an outcome check past its date, grill findings, changes from your meetings and programs, a reply you owe in Mentions, a draft in the outbox, a key result with no reading, Lab findings that fit no initiative, and what PMOS proposes on each initiative.
48
59
 
49
60
  - **At most 5 show.** The rest are under **Can wait**, in the same order. Nothing is dropped.
@@ -391,6 +391,20 @@ To take notes for a calendar event, open the meeting from Your day or the calend
391
391
  - **Summary by agent** starts an agent session in the selected repository that writes a summary into the note. Lines that look like a secret are removed first.
392
392
  - **Delete note** in the **⋯** menu removes the note, its transcript, its summaries and its audio from this machine after you confirm. The note's summary goes from the calendar and the initiative. You cannot undo it. Deleting a note that is not being taken does not stop the one that is.
393
393
 
394
+ ## Share a meeting note
395
+
396
+ You can share a meeting note with people who do not use PMOS. They get a read-only page. Nothing is sent for you.
397
+
398
+ 1. Open a meeting that has notes. Press the share icon, next to **⋯**.
399
+ 2. Under **What goes out**, PMOS turns on Summary, Decisions, Next steps and Questions. Facts mentioned and Since the last one stay off. Press a chip to change it. The transcript, the recording and the screen shots never go out.
400
+ 3. The **✦** row tells you what PMOS kept back. Press it to see the list:
401
+ - **Stays inside**: your own to-dos and rules, and lines about a team or a person who was not in the meeting. Press the eye on a line to let it go out.
402
+ - **Taken out of the lines that go**: the link to the initiative, ticket keys, who said what, call links and email addresses. Press a chip to leave that detail in.
403
+ 4. These choices change only the shared copy. Your own note stays the same. Set the password (on by default) and when the link ends (1, 7 or 30 days). Then press the link icon. The link is a copy of the note as it is now.
404
+ 5. Under **Follow-up**, the mail icon opens a draft in your mail app. The draft has a subject, the parts that go out and the link. The copy icon puts the draft on the clipboard. Send the password in a different message.
405
+
406
+ Guests see the title, the date, first names, and the parts you chose. The page has a download icon and says PMOS. **Open links** lists each link with its views. **Turn off** deletes the copy at once. Share links use your Online hostname, so set up Online in Settings first. A private note cannot be shared.
407
+
394
408
  ## What stays on your machine
395
409
 
396
410
  - Audio never leaves this machine. The page sends it to the workspace on this machine, which gives it to whisper.cpp in a temporary file and deletes that file at once. For replay, the workspace keeps one recording of each note in `notes/recordings/` in the state folder, with a cleaned copy beside it when you use **Clean up the replay sound**, until you delete the audio, the note, or mark the note private. The cleaned copy is made by ffmpeg on this machine, and nothing is sent anywhere. The browser's own recognition is used only on the device, never in the cloud.
@@ -25,7 +25,8 @@
25
25
  * completed?, goal? } | null, subtasks: { done, total }, fixVersion: [names], points: number | null, resolved: YYYY-MM-DD | null,
26
26
  * flagged, reason, url }. The sprint's dates, `points` and `resolved` feed the sprint burndown (lib/stage-tools.js); a
27
27
  * reading saved before they were carried has none of them, and the burndown says it cannot be drawn. A ticket the search did not return keeps its last reading, marked
28
- * stale. Titles and statuses only: never a description, a comment or a person.
28
+ * stale. Titles and statuses only: never a description or a comment. The one person a reading carries is the assignee's display name, with
29
+ * the time of the last update (`assignee`, `updated`): Waiting on others names who a stale ticket waits on (home-your-move-waiting).
29
30
  *
30
31
  * BOUNDARY (J15). No network module, no child process. The only write is the snapshot file.
31
32
  */
@@ -190,6 +191,12 @@ function typeParent(t, p) {
190
191
  if (KEY_RE.test(pk)) out.parent = pk;
191
192
  return out;
192
193
  }
194
+ /** The assignee's display name and the last update time, when the read has them (Waiting on others); {} when it has neither. */
195
+ function whoWhen(a, up) {
196
+ const name = clip(oneLine(typeof a === 'string' ? a : a && typeof a === 'object' ? a.displayName || a.name || '' : ''), 80);
197
+ const t = Date.parse(isStr(up) ? up : '');
198
+ return { ...(name ? { assignee: name } : {}), ...(Number.isFinite(t) ? { updated: new Date(t).toISOString() } : {}) };
199
+ }
193
200
  function normalizeIssue(x) {
194
201
  if (!x || typeof x !== 'object') return null;
195
202
  const key = oneLine(x.key).toUpperCase();
@@ -204,7 +211,7 @@ function normalizeIssue(x) {
204
211
  return { key, summary, status, category: categoryOf(status, st.statusCategory), sprint: sprintIn(f), subtasks: subtasksOf(f.subtasks), fixVersion: fixVersionsOf(f.fixVersions),
205
212
  points: pointsIn(f), resolved: dayOf(f.resolutiondate || f.resolved),
206
213
  flagged, reason: flagged ? (flaggedIn(f) ? 'Flagged in Jira' : `Status: ${status}`) : null, url: urlOf(x, key),
207
- ...typeParent(f.issuetype, f.parent) };
214
+ ...typeParent(f.issuetype, f.parent), ...whoWhen(f.assignee, f.updated) };
208
215
  }
209
216
  // The flat shape: what the skill tells the agent to write when it is unsure of the connector's shape.
210
217
  const summary = clip(oneLine(x.summary || x.title), 250);
@@ -214,7 +221,7 @@ function normalizeIssue(x) {
214
221
  return { key, summary, status, category: categoryOf(status, x.category), sprint: sprintOf(x.sprint), subtasks: subtasksOf(x.subtasks), fixVersion: fixVersionsOf(x.fixVersions != null ? x.fixVersions : x.fixVersion),
215
222
  points: pointsIn(x), resolved: dayOf(x.resolved || x.resolutiondate),
216
223
  flagged, reason: flagged ? clip(oneLine(x.reason || x.flag_reason || (x.flagged === true ? 'Flagged in Jira' : `Status: ${status}`)), 160) : null,
217
- url: urlOf(x, key), ...typeParent(x.type != null ? x.type : x.issuetype, x.parent) };
224
+ url: urlOf(x, key), ...typeParent(x.type != null ? x.type : x.issuetype, x.parent), ...whoWhen(x.assignee, x.updated) };
218
225
  }
219
226
  function normalize(raw) {
220
227
  const list = issuesList(raw);
@@ -0,0 +1,53 @@
1
+ 'use strict';
2
+ /* meeting-guest-page.js — the read-only page a guest sees for a shared meeting note (initiative shareable-meeting-notes, design "Guest page" on
3
+ * Exploring 2). The copy comes from public/pm/meeting-share.js applyCut; this file only draws it. The share server serves the page as it is,
4
+ * with no other file and a CSP that allows no script, so the cozy colours are written here, light and dark, from the cozy tokens.
5
+ * guestPage(copy, { by, ends }) → the page. FILE_TOKEN stands for the Download address; share-server.js puts the link's own in its place. */
6
+ const FILE_TOKEN = '__PMOS_FILE__';
7
+ const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }[c]));
8
+ const MON = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
9
+ const dayOf = (iso) => { const t = new Date(iso); return Number.isFinite(t.getTime()) ? t.getDate() + ' ' + MON[t.getMonth()] : ''; };
10
+ const andList = (xs) => (xs.length <= 1 ? xs.join('') : xs.slice(0, -1).join(', ') + ' and ' + xs[xs.length - 1]);
11
+ const stepMeta = (s) => [s.owner, s.due && /^\d{4}-\d{2}-\d{2}$/.test(s.due) ? dayOf(s.due + 'T12:00:00') : s.due].filter(Boolean).join(' · ');
12
+
13
+ const I_CAL = '<svg viewBox="0 0 24 24" aria-hidden="true"><rect x="4" y="5" width="16" height="15" rx="2"/><path d="M8 3v4M16 3v4M4 10h16"/></svg>';
14
+ const I_DL = '<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 4v11M7 10l5 5 5-5M5 20h14"/></svg>';
15
+ /* the cozy tokens (cozy-tokens.css), light and dark, inline: the share server serves the page with no other file */
16
+ const GUEST_CSS = `:root{--ground:#fbfaf7;--card:#fff;--well:#f5f3ee;--ink:#22201c;--ink-2:#4a463f;--ink-3:#6f6a61;--hair:#e9e5dc;--ok:#3e6e4e;--q:#a6461a;--tile:#eef2fb;--tile-ink:#2f5aa8;
17
+ --sans:"Plus Jakarta Sans",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;--mono:ui-monospace,"SF Mono",Menlo,monospace}
18
+ @media (prefers-color-scheme:dark){:root{--ground:#1b1a17;--card:#23221f;--well:#2b2925;--ink:#efece6;--ink-2:#d2cec5;--ink-3:#a7a197;--hair:#38352f;--ok:#7fb58f;--q:#e49a72;--tile:#26304a;--tile-ink:#a9c0ee}}
19
+ *{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--ground);color:var(--ink);font:400 16px/1.5 var(--sans)}
20
+ main{max-width:920px;margin:24px auto;padding:20px 24px 16px;background:var(--card);border-radius:22px;box-shadow:0 1px 2px rgba(30,25,15,.04),0 12px 40px rgba(30,25,15,.06)}
21
+ header{display:flex;align-items:center;gap:12px;min-height:44px}h1{flex:1;margin:0;font-size:17px;font-weight:600;line-height:1.3}
22
+ .tile{width:34px;height:34px;flex:none;border-radius:10px;background:var(--tile);color:var(--tile-ink);display:grid;place-items:center}
23
+ svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
24
+ .dl{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;color:var(--ink-2);text-decoration:none}.dl:hover{background:var(--well)}.dl:focus-visible{outline:2px solid var(--tile-ink);outline-offset:2px}
25
+ .body{padding:8px 0 0 46px}.meta{margin:0 0 18px;color:var(--ink-3);font-size:13px}
26
+ .sum{margin:0 0 24px;padding:14px 16px;background:var(--well);border-radius:16px;font-size:16px;line-height:1.55}
27
+ h2{margin:22px 0 8px;font:400 12px/1.4 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}
28
+ ul{list-style:none;margin:0;padding:0}li{display:flex;gap:14px;padding:10px 0;border-top:1px solid var(--hair)}li:first-child{border-top:0}
29
+ .mk{width:20px;flex:none;display:grid;place-items:start center;padding-top:6px}.dot{width:9px;height:9px;border-radius:50%;background:var(--ok)}
30
+ .box{width:11px;height:11px;border:1.5px solid var(--ink-2);border-radius:2px}.qm{font:700 11px/1 var(--sans);color:var(--q);padding-top:3px}
31
+ li p{margin:0}li small{display:block;margin-top:2px;color:var(--ink-3);font-size:13px}.tag{color:var(--ink-3);font-size:13px}
32
+ footer{display:flex;align-items:center;gap:16px;margin:28px 0 0;padding:14px 0 4px 46px;border-top:1px solid var(--hair);color:var(--ink-3);font-size:13px}footer span{flex:1}footer b{font-weight:700;color:var(--ink-2);letter-spacing:.02em}
33
+ @media (max-width:640px){main{margin:0;border-radius:0;box-shadow:none;padding:14px 16px 12px;min-height:100vh}.body,footer{padding-left:0}.sum{font-size:15px}}`;
34
+
35
+ /** The read-only page a guest sees: the title, when and who, the summary, then each section that goes. No script, no outside file. Pure. */
36
+ function guestPage(c, { by = '', ends = '' } = {}) {
37
+ const meta = [c.when, c.people.length ? andList(c.people) : ''].filter(Boolean).join(' · ');
38
+ const list = (head, items, mark, sub) => (items.length ? `<h2>${esc(head)}</h2><ul>${items.map((x) => `<li><span class="mk">${mark(x)}</span><span><p>${esc(x.text)}</p>${sub(x) ? `<small>${esc(sub(x))}</small>` : ''}</span></li>`).join('')}</ul>` : '');
39
+ const foot = [by ? 'A read-only copy shared by ' + by + '.' : 'A read-only copy.', ends ? 'The link ends ' + dayOf(ends) + '.' : ''].filter(Boolean).join(' ');
40
+ return `<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="robots" content="noindex">`
41
+ + `<title>${esc(c.title)}</title><style>${GUEST_CSS}</style></head><body><main>`
42
+ + `<header><span class="tile">${I_CAL}</span><h1>${esc(c.title)}</h1><a class="dl" href="${FILE_TOKEN}" download aria-label="Download the notes" title="Download">${I_DL}</a></header>`
43
+ + `<div class="body">${meta ? `<p class="meta">${esc(meta)}</p>` : ''}${c.summary ? `<p class="sum">${esc(c.summary)}</p>` : ''}`
44
+ + list('Decided', c.decisions, () => '<span class="dot"></span>', (x) => x.why)
45
+ + list('Next steps', c.steps, () => '<span class="box"></span>', stepMeta)
46
+ + list('Still open', c.questions, () => '<span class="qm">?</span>', () => '')
47
+ + list('Facts mentioned', c.facts, () => '<span class="dot"></span>', () => '')
48
+ + list('Since the last one', c.since, () => '<span class="box"></span>', (x) => [x.tag, x.owner].filter(Boolean).join(' · '))
49
+ + `</div><footer><span>${esc(foot)}</span><b>PMOS</b></footer></main></body></html>`;
50
+ }
51
+
52
+
53
+ module.exports = { guestPage, FILE_TOKEN };
@@ -6,6 +6,9 @@
6
6
  * <runtime>/outbox/sent.jsonl the trust ledger of sends (one 'send' line per send, with the override flag)
7
7
  * <runtime>/outbox/promises.jsonl the promise ledger, through scripts/promises.js (scripts/trust/ledger.js)
8
8
  *
9
+ * A 'snoozed' line (Not now on a nudge in the Viewer, home-your-move-waiting) sets snoozed_until; the entry stays queued.
10
+ * An entry may carry `about`: the Waiting on others row a nudge is for (lib/waiting-on.js).
11
+ *
9
12
  * foldOutbox(lines) is pure: the latest version per id. A queued or edited line carries the state scripts/outbox.js
10
13
  * computed from the trust claim rules: 'queued' or 'blocked'. A 'pressed' line (a PM press with no channel connected)
11
14
  * leaves the state and records last_result. A 'pressed' or 'sent' line counts only for the hash it names, so an edit
@@ -45,11 +48,15 @@ function foldOutbox(lines = []) {
45
48
  if (ev.event === 'restored') { gone.delete(ev.id); continue; }
46
49
  if (ev.event === 'queued' || ev.event === 'edited') {
47
50
  const { event, ...entry } = ev;
48
- byId.set(ev.id, { ...entry, state: ev.state === 'blocked' ? 'blocked' : 'queued', last_result: null, refused: null, created_at: (byId.get(ev.id) || {}).created_at || ev.at });
51
+ const was = byId.get(ev.id) || {};
52
+ byId.set(ev.id, { ...entry, ...(was.about && !entry.about ? { about: was.about } : {}), state: ev.state === 'blocked' ? 'blocked' : 'queued', last_result: null, refused: null, created_at: was.created_at || ev.at });
53
+ } else if (ev.event === 'snoozed') {
54
+ const cur = byId.get(ev.id);
55
+ if (cur) byId.set(ev.id, { ...cur, snoozed_until: ev.until || null });
49
56
  } else if (ev.event === 'pressed' || ev.event === 'sent') {
50
57
  const cur = byId.get(ev.id);
51
58
  if (!cur || cur.hash !== ev.hash) continue;
52
- if (ev.event === 'sent') byId.set(ev.id, { ...cur, state: 'sent', last_result: 'sent' });
59
+ if (ev.event === 'sent') byId.set(ev.id, { ...cur, state: 'sent', last_result: 'sent', sent_at: ev.at || null });
53
60
  else byId.set(ev.id, { ...cur, last_result: ev.reason || null });
54
61
  }
55
62
  }
@@ -48,6 +48,7 @@ const MODULES = Object.freeze([
48
48
  'routes-runs', // console3 agent surfaces: runs grouped for the sessions panel, PM answers, corrections
49
49
  'routes-doc-health', // console3 B2: the six document health checks, recomputed from text
50
50
  'routes-outbox', // console3 B3: the outbox queue, hash-bound confirm (no channel connected)
51
+ 'routes-waiting', // home-your-move-waiting: Waiting on others, derived from records, with its exit rule
51
52
  'routes-calendar-views', // console3 C2: Day/Week/Month/Quarter/Year cells, Gantt and the strategy lens (read-only)
52
53
  'routes-briefing', // console3 C1: the day-part Briefing cards from the signal engine (read-only)
53
54
  'routes-briefing-premium', // briefing-premium: the premium Briefing's page model from repository state (read-only)
@@ -6,6 +6,8 @@
6
6
  * POST /api/outbox/draft { channel, recipient, subject?, body } → { ok, entry } origin is 'pm' (a page press)
7
7
  * POST /api/outbox/edit { id, body } → { ok, entry } a new hash; the old hash is void
8
8
  * POST /api/outbox/discard { id, undo? } → { ok } hides a draft (undo: true brings it back); a sent entry is refused
9
+ * POST /api/outbox/snooze { id, until? } → { ok, until } Not now on a nudge (home-your-move-waiting): recorded, the
10
+ * entry stays queued; until defaults to 09:00 the next morning
9
11
  * POST /api/outbox/confirm { id, hash, reason? } → { ok:false, reason:'no channel connected' } entry stays queued
10
12
  * → 422 { ok:false, state:'blocked', refused } when a claim fails the trust rules
11
13
  * and no written reason is given; with a reason it is an override (recorded)
@@ -77,6 +79,19 @@ function discard(req, body, runtimeDir, now = new Date()) {
77
79
  return { status: 200, body: { ok: true, id, discarded: true } };
78
80
  }
79
81
 
82
+ /* Not now on a drafted nudge: one 'snoozed' line, so the PM's choice is on record and the Home row hides its nudge line until then. */
83
+ function snooze(req, body, runtimeDir, now = new Date()) {
84
+ const bad = guarded(req, body); if (bad) return bad;
85
+ const cur = store.readOutbox(runtimeDir).find((e) => e.id === String(body.id || ''));
86
+ if (!cur) return fail(404, 'no such outbox entry');
87
+ if (cur.state === 'sent') return fail(409, 'a sent entry is a record and is not snoozed');
88
+ let until = Date.parse(body.until || '');
89
+ if (!Number.isFinite(until) || until <= now.getTime()) { const d = new Date(now); d.setDate(d.getDate() + 1); d.setHours(9, 0, 0, 0); until = d.getTime(); }
90
+ const iso = new Date(until).toISOString();
91
+ store.appendEvent(runtimeDir, { event: 'snoozed', id: cur.id, until: iso }, now);
92
+ return { status: 200, body: { ok: true, id: cur.id, until: iso } };
93
+ }
94
+
80
95
  function confirm(req, body, runtimeDir, now = new Date(), senders) {
81
96
  const bad = guarded(req, body); if (bad) return bad;
82
97
  const cur = store.readOutbox(runtimeDir).find((e) => e.id === body.id);
@@ -98,11 +113,11 @@ function confirm(req, body, runtimeDir, now = new Date(), senders) {
98
113
  return { status: 200, body: { ok: true, hash: r.hash, override: r.override, state: 'sent' } };
99
114
  }
100
115
 
101
- const ROUTES = { 'POST /api/outbox/draft': draft, 'POST /api/outbox/edit': edit, 'POST /api/outbox/discard': discard, 'POST /api/outbox/confirm': confirm };
116
+ const ROUTES = { 'POST /api/outbox/draft': draft, 'POST /api/outbox/edit': edit, 'POST /api/outbox/discard': discard, 'POST /api/outbox/snooze': snooze, 'POST /api/outbox/confirm': confirm };
102
117
 
103
118
  module.exports = {
104
119
  prefixes: ['/api/outbox'],
105
- claimCheck, list, draft, edit, discard, confirm, ROUTES,
120
+ claimCheck, list, draft, edit, discard, snooze, confirm, ROUTES,
106
121
  handle: async (req, res, url, ctx) => {
107
122
  const p = url.pathname;
108
123
  if (p === '/api/outbox' && req.method === 'GET') { const r = list(ctx.runtimeDir); ctx.json(res, r.body, r.status); return true; }
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+ /* routes-waiting.js — Waiting on others for Home (initiative home-your-move-waiting; lib/waiting-on.js).
3
+ *
4
+ * GET /api/waiting → { ok, rows: [{ key, source, title, who, since, days, age, where, ws, ini, link?, nudge }], gaps, closed, as_of }
5
+ *
6
+ * The read writes two things, both PMOS's own: the state file the exit rule compares with, and a drafted nudge for a row that waited
7
+ * long enough (lib/waiting-on.js NUDGE_DAYS). A nudge is an outbox draft: it leaves only when the PM sends it from the Viewer. */
8
+ const W = require('./waiting-on.js');
9
+
10
+ module.exports = {
11
+ prefixes: ['/api/waiting'],
12
+ handle: async (req, res, url, ctx) => {
13
+ if (url.pathname !== '/api/waiting') return false;
14
+ if (req.method !== 'GET') { ctx.json(res, { ok: false, error: 'GET only' }, 405); return true; }
15
+ if (!ctx.runtimeDir) { ctx.json(res, { ok: false, error: 'no runtime folder' }, 500); return true; }
16
+ let me = [];
17
+ try { const M = require('./routes-mentions.js'); const ws = typeof ctx.workspaceList === 'function' ? ctx.workspaceList() : []; me = M.myNames(ctx.runtimeDir, (ws[0] && ws[0].root) || process.cwd()); } catch { me = []; }
18
+ try {
19
+ const r = W.view(ctx.runtimeDir, { now: Date.now(), me, workspaces: typeof ctx.workspaceList === 'function' ? ctx.workspaceList() : [] });
20
+ ctx.json(res, r);
21
+ } catch (e) { ctx.json(res, { ok: false, error: String((e && e.message) || e) }, 500); }
22
+ return true;
23
+ },
24
+ };
@@ -5,7 +5,8 @@
5
5
  * THE FOLDER. `<runtime state>/shares/<id>/`, in the per-user runtime directory outside every repository, mode 0700:
6
6
  * meta.json { id, name, kind, made, ends, pw: 'scrypt$<salt>$<hash>' | null, key, views, last, fails, lockedUntil } mode 0600
7
7
  * page.html the copy as a page: an .html file as it is, markdown rendered by the caller, other text in a <pre> mode 0600
8
- * file the file's own text, for the guest's Download mode 0600
8
+ * kind 'meeting' (shareable-meeting-notes): the guest page public/pm/meeting-share.js made from the PM's cut, no script
9
+ * file the file's own text, for the guest's Download; a meeting's shared parts as Markdown mode 0600
9
10
  * id is 128 random bits (base64url, 22 characters). `key` is a random secret per link that signs the guest's cookie. No IP address,
10
11
  * header or user agent is stored (D08): a view is a count and a time.
11
12
  *
@@ -67,7 +68,7 @@ function newPassword() {
67
68
  function create(dir, o = {}) {
68
69
  const days = Number(o.days);
69
70
  if (!DAYS.includes(days)) return { ok: false, error: 'days must be 1, 7 or 30' };
70
- if (!['html', 'markdown', 'text'].includes(o.kind)) return { ok: false, error: 'kind must be html, markdown or text' };
71
+ if (!['html', 'markdown', 'text', 'meeting'].includes(o.kind)) return { ok: false, error: 'kind must be html, markdown, text or meeting' };
71
72
  if (typeof o.page !== 'string' || typeof o.file !== 'string') return { ok: false, error: 'there is nothing to share' };
72
73
  if (o.password != null) {
73
74
  const p = String(o.password);