create-pmos 0.780.0 → 0.782.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 (66) hide show
  1. package/package.json +47 -73
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/design-system/ui/README.md +2 -2
  4. package/payload/design-system/ui/components/MainItem/README.md +4 -2
  5. package/payload/design-system/ui/components/MainItem/preview.html +2 -2
  6. package/payload/design-system/ui/components/MainSide/README.md +4 -2
  7. package/payload/design-system/ui/components/MainSide/preview.html +2 -2
  8. package/payload/design-system/ui/components/Popup/README.md +15 -0
  9. package/payload/design-system/ui/components/Popup/preview.html +8 -0
  10. package/payload/design-system/ui/components/Reading/README.md +19 -0
  11. package/payload/design-system/ui/components/Reading/preview.html +8 -0
  12. package/payload/design-system/ui/components/SingleColumn/README.md +4 -2
  13. package/payload/design-system/ui/components/SingleColumn/preview.html +2 -2
  14. package/payload/design-system/ui/components/bundle.css +29 -0
  15. package/payload/design-system/ui/pages.md +6 -6
  16. package/payload/design-system/ui/tokens.css +1 -1
  17. package/payload/design-system/ui/tokens.json +30 -0
  18. package/payload/planning/evals/eval-calibration.md +1 -1
  19. package/payload/planning/okrs/health-budgets.md +1 -1
  20. package/payload/state/discoveries.md +1 -1
  21. package/workspace/changelog.json +46 -0
  22. package/workspace/design-system/ui/README.md +2 -2
  23. package/workspace/design-system/ui/components/MainItem/README.md +4 -2
  24. package/workspace/design-system/ui/components/MainItem/preview.html +2 -2
  25. package/workspace/design-system/ui/components/MainSide/README.md +4 -2
  26. package/workspace/design-system/ui/components/MainSide/preview.html +2 -2
  27. package/workspace/design-system/ui/components/Popup/README.md +15 -0
  28. package/workspace/design-system/ui/components/Popup/preview.html +8 -0
  29. package/workspace/design-system/ui/components/Reading/README.md +19 -0
  30. package/workspace/design-system/ui/components/Reading/preview.html +8 -0
  31. package/workspace/design-system/ui/components/SingleColumn/README.md +4 -2
  32. package/workspace/design-system/ui/components/SingleColumn/preview.html +2 -2
  33. package/workspace/design-system/ui/components/bundle.css +29 -0
  34. package/workspace/design-system/ui/pages.md +6 -6
  35. package/workspace/design-system/ui/tokens.css +1 -1
  36. package/workspace/design-system/ui/tokens.json +30 -0
  37. package/workspace/guide/agent-capabilities.md +2 -1
  38. package/workspace/guide/claude-proposes.md +11 -1
  39. package/workspace/guide/cli.md +9 -1
  40. package/workspace/guide/layout.md +14 -0
  41. package/workspace/lib/card-catalog.js +67 -0
  42. package/workspace/lib/card-catalog.json +2032 -0
  43. package/workspace/lib/pmos-verbs.js +3 -0
  44. package/workspace/lib/routes-card-catalog.js +19 -0
  45. package/workspace/lib/routes-slash.js +7 -1
  46. package/workspace/lib/routes-star-drafts.js +36 -0
  47. package/workspace/lib/sprint-cli.js +79 -0
  48. package/workspace/lib/sprint-retro.js +176 -0
  49. package/workspace/lib/star-draft.js +99 -0
  50. package/workspace/lib/task-cli.js +26 -12
  51. package/workspace/package-lock.json +2 -2
  52. package/workspace/package.json +1 -1
  53. package/workspace/public/pm/action-run.js +120 -0
  54. package/workspace/public/pm/bd-pop-ds.js +2 -2
  55. package/workspace/public/pm/card-run.js +25 -0
  56. package/workspace/public/pm/cozy-pop-work.js +91 -10
  57. package/workspace/public/pm/goals-open.js +14 -2
  58. package/workspace/public/pm/komorebi.css +29 -1
  59. package/workspace/public/pm/premium-vw-doc.css +31 -0
  60. package/workspace/public/pm/premium-vw-doc.js +49 -3
  61. package/workspace/public/pm/reading-model.js +76 -0
  62. package/workspace/public/pm/star-draft.js +63 -0
  63. package/workspace/public/pm/state-blocks.js +18 -1
  64. package/workspace/test-lists/reading-layouts.json +9 -0
  65. package/workspace/test-lists/sprint-retro-one-change.json +9 -0
  66. package/workspace/test-lists/star-buttons-act-directly.json +13 -0
@@ -0,0 +1,8 @@
1
+ <!-- @dsCard group="4 · Layouts" height=300 -->
2
+ <!doctype html>
3
+ <html>
4
+ <head><meta charset="utf-8"><title>preview</title></head>
5
+ <body>
6
+ <div class="pm"><div class="pm-layout-popup"><div class="pm-head"><button class="pm-btn" aria-label="Back">←</button><nav class="pm-path"><a href="#">Work</a> › Email OTP login</nav><button class="pm-btn" aria-label="Close">×</button></div><div class="pm-block flat" style="align-items:center;justify-content:center"><span class="pm-meta">Title and meta</span></div><div class="pm-block flat" style="align-items:center;justify-content:center"><span class="pm-meta">Where it stands</span></div><div class="pm-block flat" style="align-items:center;justify-content:center;min-height:72px"><span class="pm-meta">Breakdown or Detail</span></div></div></div>
7
+ </body>
8
+ </html>
@@ -0,0 +1,19 @@
1
+ ---
2
+ type: Reference
3
+ title: "PMOS design system: Reading"
4
+ description: "Reading: one calm view for every document."
5
+ timestamp: 2026-11-24
6
+ ---
7
+
8
+ Reading: one calm view for every document PMOS writes or opens: docs, specs, briefs, reports, weekly updates, meeting notes, guides, notes, notepad, copies, shared links and text files. Slides, PDF and prototypes keep Stage; a task, ticket or event keeps the Full popup.
9
+
10
+ Class: `pm-layout-reading`. Slots: `pm-head` (Back, `pm-path`, comments count, chat, More, ×), `pm-contents` (left), `pm-main` (the column, `--doc-measure` = 640 px), `pm-margin` (right, comments).
11
+
12
+ - In `pm-main`: the title and meta strip (who drafted ✦, who checked, for whom), In short (Summary: the answer and the ask), then one section per heading. Body text uses the PMOS Documents reading sizes (16 px).
13
+ - With no comments there is no `pm-margin`, and the column moves over.
14
+
15
+ ## Interaction
16
+
17
+ - Each section folds; the open state is kept per document. Contents follows the scroll and jumps to a section.
18
+ - A comment sits in the margin beside its line.
19
+ - Below 1100 px Contents folds away. On a phone it is one column with no Contents or margin: each section shows its comment count and opens its comments as a sheet.
@@ -0,0 +1,8 @@
1
+ <!-- @dsCard group="4 · Layouts" height=300 -->
2
+ <!doctype html>
3
+ <html>
4
+ <head><meta charset="utf-8"><title>preview</title></head>
5
+ <body>
6
+ <div class="pm"><div class="pm-layout-reading" style="--width-contents:20%;--width-margin:22%;--doc-measure:1fr"><div class="pm-head"><button class="pm-btn" aria-label="Back">←</button><nav class="pm-path"><a href="#">Library</a> › Weekly update</nav><button class="pm-btn" aria-label="Close">×</button></div><nav class="pm-contents"><a href="#" aria-current="true">In short</a><a href="#">Sign-up fell</a><a href="#">Rollout order</a></nav><div class="pm-main"><div class="pm-block flat" style="align-items:center;justify-content:center"><span class="pm-meta">Title · meta strip</span></div><div class="pm-block flat" style="align-items:center;justify-content:center"><span class="pm-meta">In short (Summary)</span></div><div class="pm-block flat" style="align-items:center;justify-content:center;min-height:72px"><span class="pm-meta">Sections, each folds</span></div></div><aside class="pm-margin"><div class="pm-block flat" style="align-items:center;justify-content:center;min-height:72px"><span class="pm-meta">A comment beside its line</span></div></aside></div></div>
7
+ </body>
8
+ </html>
@@ -1,8 +1,10 @@
1
1
  ---
2
2
  type: Reference
3
3
  title: "PMOS design system: SingleColumn"
4
- description: "One centred column. Goals, Intelligence, Settings, Welcome use it. On phones every layout becomes single column, Now first."
5
- timestamp: 2026-11-19
4
+ description: "One centred column, no wider than `--page-measure`. Goals, Intelligence, Meeting recording and Welcome use it. On phones every layout becomes single column, Now first.
5
+
6
+ Class: `pm-layout-single`. Blocks go straight inside, in reading order."
7
+ timestamp: 2026-11-24
6
8
  ---
7
9
 
8
10
  One centred column. Goals, Intelligence, Settings, Welcome use it. On phones every layout becomes single column, Now first.
@@ -1,8 +1,8 @@
1
- <!-- @dsCard group="4 · Layouts" height=260 -->
1
+ <!-- @dsCard group="4 · Layouts" height=300 -->
2
2
  <!doctype html>
3
3
  <html>
4
4
  <head><meta charset="utf-8"><title>preview</title></head>
5
5
  <body>
6
- <div class="pm"><div style="height:220px;display:flex;gap:8px;padding:8px;border-radius:var(--radius-card);border:1px solid var(--line)"><div style="width:36px;background:var(--well);border-radius:var(--radius-card)"></div><div style="flex:1;display:flex;justify-content:center"><div style="width:60%;display:flex;flex-direction:column;gap:8px"><div style="border:1px solid var(--line);border-radius:var(--radius-md);background:var(--card);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;height:60px">Number</div><div style="border:1px solid var(--line);border-radius:var(--radius-md);background:var(--card);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;height:60px">Number</div><div style="border:1px solid var(--line);border-radius:var(--radius-md);background:var(--card);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;flex:1">Summary</div></div></div></div></div>
6
+ <div class="pm"><div class="pm-layout-single"><div class="pm-block flat" style="align-items:center;justify-content:center"><span class="pm-meta">Summary</span></div><div class="pm-block flat" style="align-items:center;justify-content:center"><span class="pm-meta">Number · Number · Number</span></div><div class="pm-block flat" style="align-items:center;justify-content:center;min-height:96px"><span class="pm-meta">List or Table</span></div></div></div>
7
7
  </body>
8
8
  </html>
@@ -132,6 +132,35 @@ body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--font-s
132
132
  .pm-rail .pm-count{position:absolute;top:3px;right:5px}
133
133
  .pm-path{display:flex;align-items:center;gap:6px;font-size:var(--type-small)}
134
134
  .pm-path a{color:var(--blue)}
135
+ /* Layouts (group 4, pages.md): a page picks one and fills its slots with blocks; gaps, widths and corners are tokens. The chat is the slide-over, never a slot. */
136
+ .pm-main,.pm-side,.pm-item,.pm-margin,.pm-contents{display:flex;flex-direction:column;gap:var(--space-16);min-width:0}
137
+ .pm-layout-single,.pm-layout-popup{display:flex;flex-direction:column;gap:var(--space-16);width:100%;max-width:var(--page-measure);margin:0 auto}
138
+ .pm-layout-side,.pm-layout-open,.pm-layout-reading{display:grid;gap:var(--space-16);align-items:start}
139
+ .pm-layout-side{grid-template-columns:minmax(0,1fr) var(--width-side)}
140
+ .pm-layout-side>.pm-side,.pm-layout-reading>.pm-contents{position:sticky;top:0}
141
+ .pm-layout-open{grid-template-columns:minmax(0,1fr)}
142
+ .pm-layout-open:has(>.pm-item){grid-template-columns:minmax(0,1fr) var(--width-item)}
143
+ .pm-layout-open>.pm-item,.pm-layout-popup{background:var(--card);border-radius:var(--radius-panel);box-shadow:var(--raise);padding:var(--space-24)}
144
+ .pm-layout-popup{box-shadow:var(--lift);padding:var(--space-24) var(--space-32)}
145
+ .pm-head{display:flex;align-items:center;gap:var(--space-8);min-width:0}
146
+ .pm-layout-reading{grid-template:"head head head" auto "contents main margin" 1fr/var(--width-contents) minmax(0,var(--doc-measure)) var(--width-margin);gap:var(--space-24) var(--space-32);justify-content:center}
147
+ .pm-layout-reading:not(:has(>.pm-margin)){grid-template:"head head" auto "contents main" 1fr/var(--width-contents) minmax(0,var(--doc-measure))}
148
+ .pm-layout-reading>.pm-head{grid-area:head}
149
+ .pm-layout-reading>.pm-contents{grid-area:contents;gap:var(--space-4);font-size:var(--type-small)}
150
+ .pm-layout-reading>.pm-main{grid-area:main;gap:var(--space-24)}
151
+ .pm-layout-reading>.pm-margin{grid-area:margin}
152
+ @media (max-width: 1100px){
153
+ .pm-layout-side{grid-template-columns:minmax(0,1fr)}
154
+ .pm-layout-reading{grid-template:"head head" auto "main margin" 1fr/minmax(0,var(--doc-measure)) var(--width-margin)}
155
+ .pm-layout-reading:not(:has(>.pm-margin)){grid-template:"head" auto "main" 1fr/minmax(0,var(--doc-measure))}
156
+ .pm-layout-reading>.pm-contents{display:none}
157
+ }
158
+ @media (max-width: 720px){
159
+ .pm-layout-open:has(>.pm-item){grid-template-columns:minmax(0,1fr)}
160
+ .pm-layout-open:has(>.pm-item)>.pm-main,.pm-layout-reading>.pm-margin{display:none}
161
+ .pm-layout-popup{padding:var(--space-16);border-radius:0;box-shadow:none}
162
+ .pm-layout-reading,.pm-layout-reading:not(:has(>.pm-margin)){grid-template:"head" auto "main" 1fr/minmax(0,1fr)}
163
+ }
135
164
  /* States every block has (interactions.md, components/State): empty, loading, error. A state sits where the block's rows go. */
136
165
  .pm-state{margin:0;padding:var(--space-8) 0;font-size:var(--type-small);line-height:var(--leading-small);color:var(--muted)}
137
166
  .pm-state.empty{max-width:62ch}
@@ -2,12 +2,12 @@
2
2
  type: Reference
3
3
  title: "PMOS design system: pages and their blocks"
4
4
  description: "Every workspace page with its layout and the blocks it is built from."
5
- timestamp: 2026-11-19
5
+ timestamp: 2026-11-24
6
6
  ---
7
7
 
8
8
  # Pages and their blocks
9
9
 
10
- Every workspace page, with its layout and the blocks it is built from.
10
+ Every workspace page, with its layout and the blocks it is built from. Each layout is one class (README, group 4): Single column `pm-layout-single`, Main + side `pm-layout-side`, Main + open item `pm-layout-open`, Full popup `pm-layout-popup`, Reading `pm-layout-reading`.
11
11
 
12
12
  | Page | Layout | Blocks |
13
13
  | --- | --- | --- |
@@ -16,7 +16,7 @@ Every workspace page, with its layout and the blocks it is built from.
16
16
  | Work · Board | Main + open item | Table, List, Summary |
17
17
  | Program | Main + open item | List, Number, Timeline |
18
18
  | Backlog and sprint | Main + open item | Table, Number, Summary |
19
- | Initiative | Main + open item | Detail, Summary, List, Timeline |
19
+ | Initiative · task · milestone · Jira ticket · event | Full popup | Detail, Summary, List, Timeline |
20
20
  | Goals | Single column | Number, Summary, Conversation |
21
21
  | Intelligence | Single column | Number, List, Summary |
22
22
  | Library | Main + open item | List, Detail |
@@ -24,11 +24,11 @@ Every workspace page, with its layout and the blocks it is built from.
24
24
  | Routine | Main + open item | Detail, List, Summary |
25
25
  | Workflows | Main + open item | List, Detail |
26
26
  | Viewer · item | Main + open item | Navigation, Detail, Summary, List |
27
- | Viewer · doc and report | Main + open item | Navigation, Document, Summary |
28
- | Viewer · slides, PDF, prototype | Main + open item | Navigation, Stage |
27
+ | Viewer · docs, specs, briefs, reports, weekly updates, meeting notes, guides, notes, notepad, copies, text files | Reading | Document, Summary |
28
+ | Viewer · slides, PDF, prototype | Stage | Navigation, Stage |
29
29
  | Meeting recording | Single column | Stage, Summary, List |
30
30
  | Meeting buddy | Single column | Summary |
31
31
  | Settings | Main + side | Navigation, Settings |
32
32
  | Welcome | Single column | Settings, Summary |
33
33
  | Search | slide-over | List |
34
- | Shared link | Single column | Document, Table |
34
+ | Shared link | Reading (no comments, no chat) | Document, Table |
@@ -1,7 +1,7 @@
1
1
  /* PMOS Komorebi tokens. GENERATED from tokens.json by lib/design-system.js: do not edit; run `node lib/design-system.js --write`. */
2
2
  :root, [data-theme="light"] {--raise:0 1px 2px rgba(42,46,53,.08), 0 4px 14px -6px rgba(70,80,50,.14);--lift:0 10px 28px -10px rgba(42,46,53,.28);--glow:0 0 0 2px #5F7A45, 0 0 0 5px rgba(95,122,69,.10)}
3
3
  [data-theme="dark"] {--raise:0 1px 2px rgba(0,0,0,.4), 0 4px 14px -6px rgba(169,196,140,.08);--lift:0 10px 28px -10px rgba(0,0,0,.6);--glow:0 0 0 2px #A9C48C, 0 0 0 5px rgba(169,196,140,.12)}
4
- :root:where(*) {--space-4:4px;--space-8:8px;--space-12:12px;--space-16:16px;--space-24:24px;--space-32:32px;--space-48:48px;--space-64:64px;--radius-sm:6px;--radius-md:10px;--radius-card:16px;--radius-panel:24px;--radius-pill:999px}
4
+ :root:where(*) {--space-4:4px;--space-8:8px;--space-12:12px;--space-16:16px;--space-24:24px;--space-32:32px;--space-48:48px;--space-64:64px;--doc-measure:640px;--page-measure:960px;--width-side:340px;--width-item:480px;--width-contents:200px;--width-margin:240px;--radius-sm:6px;--radius-md:10px;--radius-card:16px;--radius-panel:24px;--radius-pill:999px}
5
5
  :root:where(*) {--type-title:26px;--leading-title:32px;--weight-title:600;--type-heading:18px;--leading-heading:24px;--weight-heading:600;--type-body:15px;--leading-body:24px;--weight-body:400;--type-small:13px;--leading-small:20px;--weight-small:400;--type-code:13px;--leading-code:20px;--weight-code:400}
6
6
  .title{font-family:var(--font-sans);font-size:var(--type-title);line-height:var(--leading-title);font-weight:var(--weight-title)}
7
7
  .heading{font-family:var(--font-sans);font-size:var(--type-heading);line-height:var(--leading-heading);font-weight:var(--weight-heading)}
@@ -96,6 +96,36 @@
96
96
  "name": "space-64",
97
97
  "value": "64px",
98
98
  "usage": "Empty-state breathing room."
99
+ },
100
+ {
101
+ "name": "doc-measure",
102
+ "value": "640px",
103
+ "usage": "The reading column: about 65 characters of 16 px body (the same value as PMOS Documents' doc-measure)."
104
+ },
105
+ {
106
+ "name": "page-measure",
107
+ "value": "960px",
108
+ "usage": "Widest Single column page and the Full popup."
109
+ },
110
+ {
111
+ "name": "width-side",
112
+ "value": "340px",
113
+ "usage": "The side column of Main + side (Timeline, a summary)."
114
+ },
115
+ {
116
+ "name": "width-item",
117
+ "value": "480px",
118
+ "usage": "The open item beside the list in Main + open item."
119
+ },
120
+ {
121
+ "name": "width-contents",
122
+ "value": "200px",
123
+ "usage": "Contents at the left of the Reading layout."
124
+ },
125
+ {
126
+ "name": "width-margin",
127
+ "value": "240px",
128
+ "usage": "The comment margin at the right of the Reading layout."
99
129
  }
100
130
  ]
101
131
  },
@@ -2,7 +2,7 @@
2
2
  type: Guide
3
3
  title: "What PMOS does behind the scenes, and what stays yours"
4
4
  description: "Every job PMOS runs by itself, what agents apply by themselves with Undo (D106), long-running goals, the team of role agents, the live round, the idle lab, and the PM-only acts."
5
- timestamp: 2026-11-20
5
+ timestamp: 2026-11-24
6
6
  ---
7
7
 
8
8
  # What PMOS does behind the scenes
@@ -115,6 +115,7 @@ A loop never sends a message, moves a Jira ticket, merges into a product reposit
115
115
  | [New dates, done and tidy names](claude-proposes.md) | Each morning, and when a date passes | The tasks of the initiative, and the evidence that work happened | The initiative's ✦ | `PMOS_PROPOSE=off` |
116
116
  | [Grill](claude-proposes.md) | Before an initiative leaves a stage, when a forecast turns at risk, when scope or dates move a lot, and once a month on running work with late work. Also when you write "grill this" in the initiative's chat. | The initiative, your stored research, your meeting notes and the decisions that stand | "PMOS grilled it" under the initiative's ✦ | Settings › Checks: Off. `PMOS_GRILL=off` |
117
117
  | [You decided this before](claude-proposes.md) | You add an initiative that repeats an earlier decision | `DECISIONS.md`, the decision records, the PM journal, `planning/out-of-scope/` and the initiative records | The initiative's ✦ | `pmos ai off past-repeat` |
118
+ | [✦ drafts](claude-proposes.md#drafts-from-a-) | You press ✓ on a ✦ that offers a draft: a line of the Overview, a program's For or Goal, the documents a gate needs, a goal or initiatives from the strategy, an outcome verdict or a goal's name. One short run for each press. | The records in the product's folder. It writes nothing and sends nothing. | The row you pressed: "PMOS is drafting it", then the draft | Press ✕ on the draft. Nothing is kept until you keep it. |
118
119
  | [Report readers](claude-proposes.md) | A report draft is written | The draft, read as the CFO, the engineering lead and the sceptic | The ✦ of each initiative the question quotes | `pmos ai off report-readers` |
119
120
  | [Initiative descriptions](claude-proposes.md) | Once a day. At most 3 drafts a day for each product. | The PRD's first Problem or Why paragraph, or the record's own first paragraph | "Description" under the initiative's ✦ | `pmos ai off descriptions`. `PMOS_DESCRIPTIONS=off` |
120
121
  | [Expected outcomes](claude-proposes.md) | Once a day. At most 3 drafts a day for each product. When a check date passes: the verdict, from the goal's reading or one short run. | The PRD's success criteria, or the anchored key result. For a verdict: the goal's reading, or the lines the run cites | "Expected outcome" under the initiative's ✦. A verdict is recorded with Undo. Your move when PMOS cannot tell. | `pmos ai off outcomes`. `PMOS_OUTCOMES=off` |
@@ -2,7 +2,7 @@
2
2
  type: Guide
3
3
  title: "PMOS proposes: the ✦, drafts and checks you keep or drop"
4
4
  description: "The one ✦ on each initiative, the grill, descriptions, expected outcomes, metric drafts, rehearsals, ask the past, your impact and the weekly drift check."
5
- timestamp: 2026-11-22
5
+ timestamp: 2026-11-24
6
6
  ---
7
7
 
8
8
  # PMOS proposes
@@ -113,6 +113,16 @@ When a PRD is written later and says more than the description, PMOS drafts **A
113
113
  - ✓ saves the draft to the record. Undo puts back what was there.
114
114
  - ✕ drops it. PMOS does not draft the same one again.
115
115
 
116
+ ### Drafts from a ✦
117
+
118
+ A ✦ that offers a draft no longer writes into the chat. When you press ✓, PMOS drafts it in the background and the row says **PMOS is drafting it**. Then the draft shows on the same row:
119
+
120
+ - A line of the Overview (Problem, Goal, Done when) and a program's For and Goal are saved on the line at once. **Undo** puts the line back.
121
+ - The documents a gate needs start their own draft runs and show in Artefacts as drafts. A done test is saved as its checks, with **Undo**.
122
+ - A goal, initiatives or a verdict show under the row you pressed. Press ✓ to keep the draft or ✕ to drop it.
123
+
124
+ If PMOS cannot draft it, the row says why and shows **Try again**. A ✦ that needs your own words, such as a list to paste, still opens Ask PMOS.
125
+
116
126
  ### Ask PMOS to draft it
117
127
 
118
128
  **Ask PMOS to draft it** opens Today's chat with a prompt. PMOS reads what it can, shows you a draft, and saves it after you say yes.
@@ -408,6 +408,14 @@ The same five lines as the Strategy card on Work ([The strategy in five lines](i
408
408
  - `pmos strategy set --line <key> --text "<line>"` writes your own line. `--text ""` blanks it.
409
409
  - `pmos strategy undo` takes back every line PMOS drafted. `--line <key>` takes back one.
410
410
 
411
+ ### pmos sprint: the retro of a closed sprint and one tracked change
412
+
413
+ The same block as One change in a past sprint on Work › Backlog. PMOS writes the retro from its own close numbers for every sprint it saw open and then closed: done of total, and why work was carried (never started, started, in review, carried two sprints in a row, added after the start). It tracks one change for the next sprint: the biggest reason with 2 or more tickets. At the next sprint's close, the retro says whether that change helped, with the number before and after. Run the commands in the product's repository, or pass `--root <dir>`. Your overrides are in `_sprint-retro.jsonl` beside the kept sprint history. Nothing is sent and Jira is not written.
414
+
415
+ - `pmos sprint retro` shows the retro of the newest closed sprint PMOS kept. `--sprint "<name>"` shows another one. `--json` prints the fields.
416
+ - `pmos sprint change --sprint "<name>" --pick <reason>` tracks another change. The reasons are `twice`, `never`, `review`, `started` and `added`.
417
+ - `pmos sprint change --sprint "<name>" --drop` tracks no change for that sprint. `--undo` goes back to PMOS's pick.
418
+
411
419
  ### pmos positioning: positioning and key messages from the strategy
412
420
 
413
421
  Once a product's five strategy lines are written, PMOS drafts a positioning statement and key messages from them on Work's Strategy card ([Positioning](positioning.md)). Each line cites the strategy lines it comes from. Run the commands in the product's repository, or pass `--root <dir>`. The kept lines are in `positioning.jsonl` in the product's records folder, and Work shows what these commands write.
@@ -571,7 +579,7 @@ An agent adds and closes tasks when you ask, so you do not have to find the task
571
579
  - `pmos task list <initiative>` lists the initiative's open tasks (To do and In progress) with their ids. `--all` adds the Done, Won't do and Archived tasks.
572
580
  - `pmos task state <task> [<task> …] --to <state>` sets the state of one or more tasks: To do, In progress, Done, Won't do or Archived. `--why` adds the reason, and for Done it is the evidence you read. Each change writes the same line as the page's press, under the agent's name. Won't do on a breakdown item withdraws it, and it cannot come back.
573
581
  - `pmos task set <task> [<task> …] --stage <stage>` puts one or more tasks under a stage of the initiative's workflow, by the stage's key or name. `--stage none` takes them out of every stage. The Tasks section groups the tasks by these stages. A task's stage is its place in the plan: it does not change the task's state, and it does not move the initiative. `set` also takes `--due`, `--start`, `--owner` and `--notes`; `--due none` and `--start none` clear a day.
574
- - `pmos task set <task> [<task> …] --parent <task>` puts tasks under a parent task as subtasks; `--parent none` moves them back to the top level. A loop or a parent that does not exist is refused. The answer prints an `Undo:` line, one command per old parent. `pmos task add … --parent <task>` adds a new task as a subtask.
582
+ - `pmos task set <task> [<task> …] --parent <task>` puts tasks under a parent task as subtasks; `--parent none` moves them back to the top level. A loop or a parent that does not exist is refused. The answer prints one `Undo:` command that puts every task back. When the tasks came from different parents, it uses `--parents <task>=<parent>|none,…`, which gives each task its own parent. `pmos task add … --parent <task>` adds a new task as a subtask.
575
583
  - `pmos task remove <task> [<task> …]` deletes a task that was added by mistake, such as a placeholder or a duplicate. The task goes from every list, and the Undo on the page brings it back. For work that stopped, use Archived or Won't do instead. A breakdown item cannot be deleted: set it to Won't do.
576
584
  - `pmos task describe <task>` prints the task's description and its sources. `pmos task describe <task> "<text>"` writes it: what the task is, why it matters, and when it is done. `none` clears it. The task page shows it at once, with Undo. When a task has no description, PMOS writes one by itself from the initiative's record, PRD and plan documents, and names its sources. A Jira ticket keeps its description in Jira.
577
585
  - `pmos task comment <task>` lists the task's comments. `pmos task comment <task> "<text>"` adds one. The task page shows it at once, under Activity › Comments. Comments stay in PMOS: nothing is sent to Jira.
@@ -27,6 +27,8 @@ The workspace has one stylesheet for each part: `pm/brand.css`, `pm/charts.css`,
27
27
 
28
28
  These pages are on the UI system: the meeting buddy, the recording tab, the audience tab, the extension's capture popup and the Welcome page. On a moved page, `pm/ds-bridge.css` points the old colour names at the system's colours, so the parts that other modules draw there follow the system too. While a screen is shared, the recording tab's stage uses the Dark theme.
29
29
 
30
+ **Five page layouts.** Every page is one of five layouts in `ui/`: Single column (`pm-layout-single`), Main + side (`pm-layout-side`), Main + open item (`pm-layout-open`), Full popup (`pm-layout-popup`) and Reading (`pm-layout-reading`). A page picks one and fills its slots with blocks. Gaps, widths and corners come from the system's tokens, so a change to a layout or a token reaches every page that uses it. The chat is always the slide-over, never a slot. On a phone every layout is one column. `ui/pages.md` says which page uses which layout; pages move onto them one at a time.
31
+
30
32
  Every block has three states, and one part of the UI system draws all three (`State` in `ui/components/`). The Viewer uses it for every tab:
31
33
 
32
34
  - **Empty**: one quiet line, and the next step when there is one.
@@ -130,6 +132,18 @@ The Viewer shows one item: an initiative, a program, a task, a document, a meeti
130
132
  - On a page drawn from the PMOS design system (Today, Today, an item on its own page), the parts inside the Viewer card follow the system too: a meeting, the calendar and a report use its corners, its buttons and its switches. A word button has a small corner, a switch looks like tabs, and a chip or a tag stays round.
131
133
  - One item shows in one Viewer only. If an item is already open, opening it again (a row, a ⌘-click, Open beside) shows it in the Viewer it is in. It never opens a second copy.
132
134
 
135
+ ### A document reads one calm way
136
+
137
+ A document opened in the Viewer (a doc, spec, brief, report, weekly update, meeting notes, guide or note) reads top to bottom:
138
+
139
+ - The title, then one line that says who drafted it (✦ when PMOS did), who checked it, for whom, the version and how long it takes to read. **Properties** opens the document's other fields.
140
+ - **In short**: the answer and the ask, from the document's In short, Summary or TL;DR section.
141
+ - One section for each heading. Press a heading to fold it. Each document keeps the sections you folded, the next time you open it.
142
+ - **Contents** at the left lists the sections and marks the one you are reading as you scroll. Press one to go to it. Below 1100 px wide, and on a phone, there is no Contents.
143
+ - Edit, Markdown, Health, Links, Copies, the report's Present, Print and Download, the Edit log and Proposals are where they were. An agent's edit still opens with **Keep** and **Undo all**.
144
+
145
+ Other kinds move to this view one at a time. Slides, PDFs and prototypes keep the stage, and a task, ticket or event keeps the task detail.
146
+
133
147
  ### What you type is kept
134
148
 
135
149
  Text you type in a PMOS box (a chat message, a Why, notes, a routine's instructions) is kept on this computer until you send it, save it or clear it.
@@ -0,0 +1,67 @@
1
+ 'use strict';
2
+ /* card-catalog.js — the one card catalog (A2UI v2, Wawan 2026-11-24): every kind of row PMOS can show, the Komorebi part that
3
+ * draws it, and its buttons. Each button runs ONE pmos command and says who acts: 'you' (one press with Undo), 'agent' (PMOS
4
+ * starts a run; the row shows the result) or 'waits' (outward or cannot be undone: it waits for the PM's yes).
5
+ *
6
+ * load() → the catalog object, read once from lib/card-catalog.json (a committed copy; nothing reads outside the repo)
7
+ * kinds() → [{ group, id, name, part, reader, actions }]
8
+ * kindOf(id) → that kind, or null
9
+ * actionOf(kindId, label) → that kind's button with that label, or null
10
+ * parseRun(run) → { verb, sub, pos: [..], flags: { name: placeholder | true } } for "pmos <verb> <sub> …", or null when the
11
+ * button runs no command ("opens the task popup")
12
+ * commands() → [{ verb, sub, run, uses: [{ kind, label }] }], one per distinct "<verb> <sub>"
13
+ *
14
+ * The page reads the same file through GET /api/card-catalog (lib/routes-card-catalog.js) and runs a button with
15
+ * public/pm/action-run.js. Pure apart from the one read. */
16
+ const fs = require('fs');
17
+ const path = require('path');
18
+
19
+ const FILE = path.join(__dirname, 'card-catalog.json');
20
+ let CAT = null;
21
+ function load() {
22
+ if (!CAT) CAT = Object.freeze(JSON.parse(fs.readFileSync(FILE, 'utf8')));
23
+ return CAT;
24
+ }
25
+ function kinds() {
26
+ const out = [];
27
+ for (const g of load().groups || []) for (const k of g.kinds || []) out.push({ group: g.id, id: k.id, name: k.name, part: k.part, reader: k.reader || null, actions: k.actions || [] });
28
+ return out;
29
+ }
30
+ function kindOf(id) { return kinds().find((k) => k.id === id) || null; }
31
+ function actionOf(kindId, label) {
32
+ const k = kindOf(kindId);
33
+ return k ? k.actions.find((a) => a.label === label) || null : null;
34
+ }
35
+ /** Split a run string into words, keeping "<a b>" and "\"…\"" whole. */
36
+ function words(s) {
37
+ const out = []; const re = /"[^"]*"|<[^>]*>|\S+/g; let m;
38
+ while ((m = re.exec(s))) out.push(m[0]);
39
+ return out;
40
+ }
41
+ function parseRun(run) {
42
+ const w = words(String(run || '').trim());
43
+ if (w[0] !== 'pmos' || !w[1]) return null;
44
+ const verb = w[1];
45
+ const sub = w[2] && !w[2].startsWith('-') && !w[2].startsWith('<') && !w[2].startsWith('"') ? w[2] : '';
46
+ const pos = [], flags = {};
47
+ for (let i = sub ? 3 : 2; i < w.length; i++) {
48
+ const x = w[i];
49
+ if (x.startsWith('--')) {
50
+ const nx = w[i + 1];
51
+ if (nx !== undefined && !nx.startsWith('--')) { flags[x.slice(2)] = nx; i++; } else flags[x.slice(2)] = true;
52
+ } else pos.push(x);
53
+ }
54
+ return { verb, sub, pos, flags };
55
+ }
56
+ function commands() {
57
+ const by = new Map();
58
+ for (const k of kinds()) for (const a of k.actions) {
59
+ const p = parseRun(a.run); if (!p) continue;
60
+ const key = p.verb + ' ' + p.sub;
61
+ if (!by.has(key)) by.set(key, { verb: p.verb, sub: p.sub, run: a.run, uses: [] });
62
+ by.get(key).uses.push({ kind: k.id, label: a.label });
63
+ }
64
+ return [...by.values()];
65
+ }
66
+
67
+ module.exports = { FILE, load, kinds, kindOf, actionOf, parseRun, commands, words };