create-pmos 0.635.0 → 0.636.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 (150) hide show
  1. package/bin/create-pmos.js +1 -0
  2. package/package.json +14 -20
  3. package/payload/KIT-VERSION +2 -2
  4. package/payload/README.md +37 -113
  5. package/payload/design-system/README.md +98 -0
  6. package/payload/design-system/components/Badge/README.md +16 -0
  7. package/payload/design-system/components/Badge/preview.html +8 -0
  8. package/payload/design-system/components/Button/README.md +20 -0
  9. package/payload/design-system/components/Button/preview.html +8 -0
  10. package/payload/design-system/components/Calendar/README.md +14 -0
  11. package/payload/design-system/components/Calendar/preview.html +11 -0
  12. package/payload/design-system/components/Chart/README.md +24 -0
  13. package/payload/design-system/components/Chart/preview.html +50 -0
  14. package/payload/design-system/components/Conversation/README.md +14 -0
  15. package/payload/design-system/components/Conversation/preview.html +8 -0
  16. package/payload/design-system/components/Detail/README.md +17 -0
  17. package/payload/design-system/components/Detail/preview.html +8 -0
  18. package/payload/design-system/components/Document/README.md +15 -0
  19. package/payload/design-system/components/Document/preview.html +8 -0
  20. package/payload/design-system/components/Event/README.md +13 -0
  21. package/payload/design-system/components/Event/preview.html +8 -0
  22. package/payload/design-system/components/Field/README.md +13 -0
  23. package/payload/design-system/components/Field/preview.html +8 -0
  24. package/payload/design-system/components/Icon/README.md +12 -0
  25. package/payload/design-system/components/Icon/preview.html +8 -0
  26. package/payload/design-system/components/Input/README.md +17 -0
  27. package/payload/design-system/components/Input/preview.html +8 -0
  28. package/payload/design-system/components/List/README.md +21 -0
  29. package/payload/design-system/components/List/preview.html +15 -0
  30. package/payload/design-system/components/ListRow/README.md +19 -0
  31. package/payload/design-system/components/ListRow/preview.html +8 -0
  32. package/payload/design-system/components/MainItem/README.md +13 -0
  33. package/payload/design-system/components/MainItem/preview.html +8 -0
  34. package/payload/design-system/components/MainSide/README.md +12 -0
  35. package/payload/design-system/components/MainSide/preview.html +8 -0
  36. package/payload/design-system/components/Menu/README.md +13 -0
  37. package/payload/design-system/components/Menu/preview.html +8 -0
  38. package/payload/design-system/components/Navigation/README.md +14 -0
  39. package/payload/design-system/components/Navigation/preview.html +8 -0
  40. package/payload/design-system/components/Number/README.md +17 -0
  41. package/payload/design-system/components/Number/preview.html +8 -0
  42. package/payload/design-system/components/Settings/README.md +13 -0
  43. package/payload/design-system/components/Settings/preview.html +10 -0
  44. package/payload/design-system/components/SingleColumn/README.md +12 -0
  45. package/payload/design-system/components/SingleColumn/preview.html +8 -0
  46. package/payload/design-system/components/Stage/README.md +13 -0
  47. package/payload/design-system/components/Stage/preview.html +8 -0
  48. package/payload/design-system/components/Suggestion/README.md +14 -0
  49. package/payload/design-system/components/Suggestion/preview.html +10 -0
  50. package/payload/design-system/components/Summary/README.md +19 -0
  51. package/payload/design-system/components/Summary/preview.html +10 -0
  52. package/payload/design-system/components/Switch/README.md +13 -0
  53. package/payload/design-system/components/Switch/preview.html +10 -0
  54. package/payload/design-system/components/Table/README.md +18 -0
  55. package/payload/design-system/components/Table/preview.html +23 -0
  56. package/payload/design-system/components/Tabs/README.md +13 -0
  57. package/payload/design-system/components/Tabs/preview.html +11 -0
  58. package/payload/design-system/components/Timeline/README.md +15 -0
  59. package/payload/design-system/components/Timeline/preview.html +8 -0
  60. package/payload/design-system/components/Toast/README.md +14 -0
  61. package/payload/design-system/components/Toast/preview.html +8 -0
  62. package/payload/design-system/components/TodayPage/README.md +12 -0
  63. package/payload/design-system/components/TodayPage/preview.html +8 -0
  64. package/payload/design-system/components/bundle.css +126 -0
  65. package/payload/design-system/interactions.md +48 -0
  66. package/payload/design-system/pages.md +34 -0
  67. package/payload/design-system/tokens.css +9 -0
  68. package/payload/design-system/tokens.json +339 -0
  69. package/payload/planning/evals/eval-calibration.md +1 -1
  70. package/payload/planning/okrs/health-budgets.md +1 -1
  71. package/payload/state/discoveries.md +1 -1
  72. package/payload/state/log.md +1 -1
  73. package/workspace/changelog.json +13 -0
  74. package/workspace/ci-checks.sh +3 -0
  75. package/workspace/design-system/README.md +98 -0
  76. package/workspace/design-system/components/Badge/README.md +16 -0
  77. package/workspace/design-system/components/Badge/preview.html +8 -0
  78. package/workspace/design-system/components/Button/README.md +20 -0
  79. package/workspace/design-system/components/Button/preview.html +8 -0
  80. package/workspace/design-system/components/Calendar/README.md +14 -0
  81. package/workspace/design-system/components/Calendar/preview.html +11 -0
  82. package/workspace/design-system/components/Chart/README.md +24 -0
  83. package/workspace/design-system/components/Chart/preview.html +50 -0
  84. package/workspace/design-system/components/Conversation/README.md +14 -0
  85. package/workspace/design-system/components/Conversation/preview.html +8 -0
  86. package/workspace/design-system/components/Detail/README.md +17 -0
  87. package/workspace/design-system/components/Detail/preview.html +8 -0
  88. package/workspace/design-system/components/Document/README.md +15 -0
  89. package/workspace/design-system/components/Document/preview.html +8 -0
  90. package/workspace/design-system/components/Event/README.md +13 -0
  91. package/workspace/design-system/components/Event/preview.html +8 -0
  92. package/workspace/design-system/components/Field/README.md +13 -0
  93. package/workspace/design-system/components/Field/preview.html +8 -0
  94. package/workspace/design-system/components/Icon/README.md +12 -0
  95. package/workspace/design-system/components/Icon/preview.html +8 -0
  96. package/workspace/design-system/components/Input/README.md +17 -0
  97. package/workspace/design-system/components/Input/preview.html +8 -0
  98. package/workspace/design-system/components/List/README.md +21 -0
  99. package/workspace/design-system/components/List/preview.html +15 -0
  100. package/workspace/design-system/components/ListRow/README.md +19 -0
  101. package/workspace/design-system/components/ListRow/preview.html +8 -0
  102. package/workspace/design-system/components/MainItem/README.md +13 -0
  103. package/workspace/design-system/components/MainItem/preview.html +8 -0
  104. package/workspace/design-system/components/MainSide/README.md +12 -0
  105. package/workspace/design-system/components/MainSide/preview.html +8 -0
  106. package/workspace/design-system/components/Menu/README.md +13 -0
  107. package/workspace/design-system/components/Menu/preview.html +8 -0
  108. package/workspace/design-system/components/Navigation/README.md +14 -0
  109. package/workspace/design-system/components/Navigation/preview.html +8 -0
  110. package/workspace/design-system/components/Number/README.md +17 -0
  111. package/workspace/design-system/components/Number/preview.html +8 -0
  112. package/workspace/design-system/components/Settings/README.md +13 -0
  113. package/workspace/design-system/components/Settings/preview.html +10 -0
  114. package/workspace/design-system/components/SingleColumn/README.md +12 -0
  115. package/workspace/design-system/components/SingleColumn/preview.html +8 -0
  116. package/workspace/design-system/components/Stage/README.md +13 -0
  117. package/workspace/design-system/components/Stage/preview.html +8 -0
  118. package/workspace/design-system/components/Suggestion/README.md +14 -0
  119. package/workspace/design-system/components/Suggestion/preview.html +10 -0
  120. package/workspace/design-system/components/Summary/README.md +19 -0
  121. package/workspace/design-system/components/Summary/preview.html +10 -0
  122. package/workspace/design-system/components/Switch/README.md +13 -0
  123. package/workspace/design-system/components/Switch/preview.html +10 -0
  124. package/workspace/design-system/components/Table/README.md +18 -0
  125. package/workspace/design-system/components/Table/preview.html +23 -0
  126. package/workspace/design-system/components/Tabs/README.md +13 -0
  127. package/workspace/design-system/components/Tabs/preview.html +11 -0
  128. package/workspace/design-system/components/Timeline/README.md +15 -0
  129. package/workspace/design-system/components/Timeline/preview.html +8 -0
  130. package/workspace/design-system/components/Toast/README.md +14 -0
  131. package/workspace/design-system/components/Toast/preview.html +8 -0
  132. package/workspace/design-system/components/TodayPage/README.md +12 -0
  133. package/workspace/design-system/components/TodayPage/preview.html +8 -0
  134. package/workspace/design-system/components/bundle.css +126 -0
  135. package/workspace/design-system/interactions.md +48 -0
  136. package/workspace/design-system/pages.md +34 -0
  137. package/workspace/design-system/tokens.css +9 -0
  138. package/workspace/design-system/tokens.json +339 -0
  139. package/workspace/guide/agent-capabilities.md +2 -2
  140. package/workspace/guide/layout.md +6 -0
  141. package/workspace/lib/design-system.js +145 -0
  142. package/workspace/lib/idle-lab-engine.js +5 -1
  143. package/workspace/lib/live-round.js +15 -1
  144. package/workspace/package-lock.json +2 -2
  145. package/workspace/package.json +1 -1
  146. package/workspace/public/pm/komorebi.css +145 -0
  147. package/workspace/public/pm/komorebi.js +240 -0
  148. package/workspace/run-tests.js +6 -1
  149. package/workspace/test-lists/design-system.json +9 -0
  150. package/workspace/test-lists/komorebi.json +9 -0
@@ -0,0 +1,48 @@
1
+ ---
2
+ type: Reference
3
+ title: "PMOS design system: interactions"
4
+ description: "How the parts behave: interaction rules, keys and block states."
5
+ timestamp: 2026-11-19
6
+ ---
7
+
8
+ # Interaction
9
+
10
+ How every part responds. A part looks the same everywhere and responds the same everywhere, so people learn it once.
11
+
12
+ ## The rules
13
+
14
+ - **Everything that looks clickable is clickable, and everything clickable shows it:** hover fills with `well`, focus shows the leaf ring.
15
+ - **Act at once, then offer Undo.** No confirm dialogs, no Save buttons. The Toast says what happened and offers Undo for 6 s.
16
+ - **Show the result where it happened.** A done row checks and fades in place; a sorted column shows its arrow.
17
+ - **Hover explains, click acts.** Tooltips give the detail (exact value, why, where it comes from). Click opens or changes.
18
+ - **Every mouse action has a key, and every gesture has a button.** Arrow keys move, Enter opens, Esc leaves, `/` searches.
19
+ - **Open beside, never away.** Clicking an item opens it next to the list (Main + open item); the list keeps its place.
20
+ - **Live by itself.** Counts, the now line and PMOS summaries update without a refresh button; the ✦ breathes while PMOS works.
21
+
22
+ ## Charts are interactive
23
+
24
+ Hover or touch for the exact value and date, click a mark to open the items behind it, click a series label to show or hide it, switch the range with Tabs, and use Left, Right and Enter on the keyboard. See the Chart component.
25
+
26
+ ## States every block has
27
+
28
+ | State | What shows |
29
+ | --- | --- |
30
+ | Loading | Soft placeholder rows in the block’s own shape. No spinner. |
31
+ | Empty | One quiet line and the next useful step. No "0 items". |
32
+ | Error | One line in words ("Jira did not answer") and Retry. |
33
+ | Working | The ✦ breathes in the block heading. |
34
+ | Changed | The changed row glows once with the leaf ring (`duration-leaf`). |
35
+
36
+ ## Keys
37
+
38
+ | Key | Does |
39
+ | --- | --- |
40
+ | `/` | Search |
41
+ | Up, Down | Move between rows |
42
+ | Left, Right | Move between chart points, months, slides |
43
+ | Enter | Open |
44
+ | Esc | Close or leave |
45
+ | `x` | Mark done |
46
+ | `t` | Move to tomorrow (on a row) or jump to today (on a calendar) |
47
+ | `j`, `k` | Next and previous item in Detail |
48
+ | `g` then a letter | Go to a page |
@@ -0,0 +1,34 @@
1
+ ---
2
+ type: Reference
3
+ title: "PMOS design system: pages and their blocks"
4
+ description: "Every workspace page with its layout and the blocks it is built from."
5
+ timestamp: 2026-11-19
6
+ ---
7
+
8
+ # Pages and their blocks
9
+
10
+ Every workspace page, with its layout and the blocks it is built from.
11
+
12
+ | Page | Layout | Blocks |
13
+ | --- | --- | --- |
14
+ | Today | Main + side | Navigation, Summary, List · side: Timeline, Summary |
15
+ | Home and chat | Main + side | Navigation, Conversation, List |
16
+ | Work · Board | Main + open item | Table, List, Summary |
17
+ | Program | Main + open item | List, Number, Timeline |
18
+ | Backlog and sprint | Main + open item | Table, Number, Summary |
19
+ | Initiative | Main + open item | Detail, Summary, List, Timeline |
20
+ | Goals | Single column | Number, Summary, Conversation |
21
+ | Intelligence | Single column | Number, List, Summary |
22
+ | Library | Main + open item | List, Detail |
23
+ | Events | Main + side | Calendar, Timeline |
24
+ | Routine | Main + open item | Detail, List, Summary |
25
+ | Workflows | Main + open item | List, Detail |
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 |
29
+ | Meeting recording | Single column | Stage, Summary, List |
30
+ | Meeting buddy | Single column | Summary |
31
+ | Settings | Main + side | Navigation, Settings |
32
+ | Welcome | Single column | Settings, Summary |
33
+ | Search | slide-over | List |
34
+ | Shared link | Single column | Document, Table |
@@ -0,0 +1,9 @@
1
+ /* PMOS Komorebi — generated from tokens.json */
2
+ :root, [data-theme="light"] {--ground:#EFE8E3;--ground-morning:#EEF3F8;--ground-afternoon:#F5EEE2;--ground-evening:#EFE8E3;--ground-night:#1B1D21;--card:#FFFFFF;--well:#F4F2EE;--line:rgba(42,46,53,.12);--ink:#2A2E35;--muted:#646A74;--blue:#2F5FB3;--on-blue:#FFFFFF;--blue-tint:#ECF1F8;--leaf:#5F7A45;--leaf-tint:#F2F4F0;--alert:#A4461A;--alert-tint:#F7EEEA;--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
+ [data-theme="dark"] {--ground:#1B1D21;--card:#24262B;--well:#1B1D21;--line:rgba(236,238,241,.12);--ink:#ECEEF1;--muted:#9EA4AD;--blue:#6AAAF0;--on-blue:#14161A;--blue-tint:#2A323D;--leaf:#A9C48C;--leaf-tint:#2F3333;--alert:#E8A07A;--alert-tint:#363132;--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 {--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;--duration-quick:120ms;--duration-enter:200ms;--duration-leaf:600ms;--duration-light:20min;--ease-out:cubic-bezier(.2, .7, .2, 1);--ease-drift:cubic-bezier(.4, 0, .2, 1);--font-sans:"Plus Jakarta Sans", system-ui, sans-serif;--font-mono:"IBM Plex Mono", ui-monospace, monospace}
5
+ .title{font-family:var(--font-sans);font-size:26px;line-height:32px;font-weight:600}
6
+ .heading{font-family:var(--font-sans);font-size:18px;line-height:24px;font-weight:600}
7
+ .body{font-family:var(--font-sans);font-size:15px;line-height:24px;font-weight:400}
8
+ .small{font-family:var(--font-sans);font-size:13px;line-height:20px;font-weight:400}
9
+ .code{font-family:var(--font-mono);font-size:13px;line-height:20px;font-weight:400}
@@ -0,0 +1,339 @@
1
+ {
2
+ "name": "PMOS Komorebi",
3
+ "version": 1,
4
+ "color": {
5
+ "themes": [
6
+ {
7
+ "id": "light",
8
+ "name": "Light"
9
+ },
10
+ {
11
+ "id": "dark",
12
+ "name": "Dark (night)"
13
+ }
14
+ ],
15
+ "tokens": [
16
+ {
17
+ "name": "ground",
18
+ "value": {
19
+ "light": "#EFE8E3",
20
+ "dark": "#1B1D21"
21
+ },
22
+ "usage": "Page ground behind panels. In the workspace it follows the clock (see ground-morning … ground-night)."
23
+ },
24
+ {
25
+ "name": "ground-morning",
26
+ "value": "#EEF3F8",
27
+ "usage": "Ground before 12:00. Cool light."
28
+ },
29
+ {
30
+ "name": "ground-afternoon",
31
+ "value": "#F5EEE2",
32
+ "usage": "Ground 12:00 to 17:00. Warm light."
33
+ },
34
+ {
35
+ "name": "ground-evening",
36
+ "value": "#EFE8E3",
37
+ "usage": "Ground 17:00 to 21:00. Dusk."
38
+ },
39
+ {
40
+ "name": "ground-night",
41
+ "value": "#1B1D21",
42
+ "usage": "Ground after 21:00; switches the page to the dark theme."
43
+ },
44
+ {
45
+ "name": "card",
46
+ "value": {
47
+ "light": "#FFFFFF",
48
+ "dark": "#24262B"
49
+ },
50
+ "usage": "Panels, cards, rows that are raised. Text: ink, muted."
51
+ },
52
+ {
53
+ "name": "well",
54
+ "value": {
55
+ "light": "#F4F2EE",
56
+ "dark": "#1B1D21"
57
+ },
58
+ "usage": "Sunken areas: tab tracks, the rail, chips, hover on rows. Text: ink, muted."
59
+ },
60
+ {
61
+ "name": "line",
62
+ "value": {
63
+ "light": "rgba(42,46,53,.12)",
64
+ "dark": "rgba(236,238,241,.12)"
65
+ },
66
+ "usage": "Hairlines, card borders, dashed folds. Never carries meaning alone."
67
+ },
68
+ {
69
+ "name": "ink",
70
+ "value": {
71
+ "light": "#2A2E35",
72
+ "dark": "#ECEEF1"
73
+ },
74
+ "usage": "All text and icons on card, well and ground."
75
+ },
76
+ {
77
+ "name": "muted",
78
+ "value": {
79
+ "light": "#646A74",
80
+ "dark": "#9EA4AD"
81
+ },
82
+ "usage": "Secondary text: why lines, meta, counts, past events. Reads 4.5:1 on card and well."
83
+ },
84
+ {
85
+ "name": "blue",
86
+ "value": {
87
+ "light": "#2F5FB3",
88
+ "dark": "#6AAAF0"
89
+ },
90
+ "usage": "PMOS speaking: the ✦ icon, primary buttons, links, the main chart series."
91
+ },
92
+ {
93
+ "name": "on-blue",
94
+ "value": {
95
+ "light": "#FFFFFF",
96
+ "dark": "#14161A"
97
+ },
98
+ "usage": "Text and icons on a blue fill."
99
+ },
100
+ {
101
+ "name": "blue-tint",
102
+ "value": {
103
+ "light": "#ECF1F8",
104
+ "dark": "#2A323D"
105
+ },
106
+ "usage": "Background of a PMOS suggestion."
107
+ },
108
+ {
109
+ "name": "leaf",
110
+ "value": {
111
+ "light": "#5F7A45",
112
+ "dark": "#A9C48C"
113
+ },
114
+ "usage": "Now and focus only: the focus ring, the page you are on, the Do first group, done in charts. Never text."
115
+ },
116
+ {
117
+ "name": "leaf-tint",
118
+ "value": {
119
+ "light": "#F2F4F0",
120
+ "dark": "#2F3333"
121
+ },
122
+ "usage": "Background of the one Now group or row."
123
+ },
124
+ {
125
+ "name": "alert",
126
+ "value": {
127
+ "light": "#A4461A",
128
+ "dark": "#E8A07A"
129
+ },
130
+ "usage": "Late, at risk, blocked, danger, the now line in the agenda. Never decoration."
131
+ },
132
+ {
133
+ "name": "alert-tint",
134
+ "value": {
135
+ "light": "#F7EEEA",
136
+ "dark": "#363132"
137
+ },
138
+ "usage": "Background of a late badge."
139
+ }
140
+ ]
141
+ },
142
+ "type": {
143
+ "fonts": [],
144
+ "families": {
145
+ "sans": "\"Plus Jakarta Sans\", system-ui, sans-serif",
146
+ "mono": "\"IBM Plex Mono\", ui-monospace, monospace"
147
+ },
148
+ "groups": [
149
+ {
150
+ "name": "Workspace",
151
+ "family": "sans",
152
+ "styles": [
153
+ {
154
+ "name": "title",
155
+ "fontSize": "26px",
156
+ "lineHeight": "32px",
157
+ "fontWeight": 600,
158
+ "usage": "One per page: the greeting or page name.",
159
+ "sample": "Good evening"
160
+ },
161
+ {
162
+ "name": "heading",
163
+ "fontSize": "18px",
164
+ "lineHeight": "24px",
165
+ "fontWeight": 600,
166
+ "usage": "Block headings: Today’s log, This sprint.",
167
+ "sample": "Today’s log"
168
+ },
169
+ {
170
+ "name": "body",
171
+ "fontSize": "15px",
172
+ "lineHeight": "24px",
173
+ "fontWeight": 400,
174
+ "usage": "Row titles (600), sentences, PMOS summaries.",
175
+ "sample": "Start with Admin APIs for Commerce and Jarvis."
176
+ },
177
+ {
178
+ "name": "small",
179
+ "fontSize": "13px",
180
+ "lineHeight": "20px",
181
+ "fontWeight": 400,
182
+ "usage": "Why lines, meta, badges, tabs, counts. Never smaller.",
183
+ "sample": "for Tender new CIAM · 21 days late"
184
+ },
185
+ {
186
+ "name": "code",
187
+ "family": "mono",
188
+ "fontSize": "13px",
189
+ "lineHeight": "20px",
190
+ "fontWeight": 400,
191
+ "usage": "Keys, ids, token names.",
192
+ "sample": "CONHUB-233"
193
+ }
194
+ ]
195
+ }
196
+ ]
197
+ },
198
+ "spacing": {
199
+ "tokens": [
200
+ {
201
+ "name": "space-4",
202
+ "value": "4px",
203
+ "usage": "Icon to text inside a chip."
204
+ },
205
+ {
206
+ "name": "space-8",
207
+ "value": "8px",
208
+ "usage": "Between buttons; row inner gap."
209
+ },
210
+ {
211
+ "name": "space-12",
212
+ "value": "12px",
213
+ "usage": "Between panels; row padding."
214
+ },
215
+ {
216
+ "name": "space-16",
217
+ "value": "16px",
218
+ "usage": "Between blocks; card padding."
219
+ },
220
+ {
221
+ "name": "space-24",
222
+ "value": "24px",
223
+ "usage": "Between groups inside a panel."
224
+ },
225
+ {
226
+ "name": "space-32",
227
+ "value": "32px",
228
+ "usage": "Panel padding."
229
+ },
230
+ {
231
+ "name": "space-48",
232
+ "value": "48px",
233
+ "usage": "Space above a page title on wide screens."
234
+ },
235
+ {
236
+ "name": "space-64",
237
+ "value": "64px",
238
+ "usage": "Empty-state breathing room."
239
+ }
240
+ ]
241
+ },
242
+ "radius": {
243
+ "tokens": [
244
+ {
245
+ "name": "radius-sm",
246
+ "value": "6px",
247
+ "usage": "Buttons, badges, tab items."
248
+ },
249
+ {
250
+ "name": "radius-md",
251
+ "value": "10px",
252
+ "usage": "Rows, inputs, events, toasts."
253
+ },
254
+ {
255
+ "name": "radius-card",
256
+ "value": "16px",
257
+ "usage": "Blocks and cards."
258
+ },
259
+ {
260
+ "name": "radius-panel",
261
+ "value": "24px",
262
+ "usage": "Panels and the rail."
263
+ },
264
+ {
265
+ "name": "radius-pill",
266
+ "value": "999px",
267
+ "usage": "Counts, chips, switches."
268
+ }
269
+ ]
270
+ },
271
+ "shadow": {
272
+ "tokens": [
273
+ {
274
+ "name": "raise",
275
+ "value": {
276
+ "light": "0 1px 2px rgba(42,46,53,.08), 0 4px 14px -6px rgba(70,80,50,.14)",
277
+ "dark": "0 1px 2px rgba(0,0,0,.4), 0 4px 14px -6px rgba(169,196,140,.08)"
278
+ },
279
+ "usage": "Now: cards, panels, the chosen tab, the next event."
280
+ },
281
+ {
282
+ "name": "lift",
283
+ "value": {
284
+ "light": "0 10px 28px -10px rgba(42,46,53,.28)",
285
+ "dark": "0 10px 28px -10px rgba(0,0,0,.6)"
286
+ },
287
+ "usage": "Things over things: toast, sheet, menu, slide-over."
288
+ },
289
+ {
290
+ "name": "glow",
291
+ "value": {
292
+ "light": "0 0 0 2px #5F7A45, 0 0 0 5px rgba(95,122,69,.10)",
293
+ "dark": "0 0 0 2px #A9C48C, 0 0 0 5px rgba(169,196,140,.12)"
294
+ },
295
+ "usage": "The leaf ring: keyboard focus and the one thing that is now."
296
+ }
297
+ ]
298
+ },
299
+ "duration": {
300
+ "note": "Motion speeds. Things move quick; light moves slow.",
301
+ "tokens": [
302
+ {
303
+ "name": "duration-quick",
304
+ "value": "120ms",
305
+ "usage": "Hover, press, row actions appearing."
306
+ },
307
+ {
308
+ "name": "duration-enter",
309
+ "value": "200ms",
310
+ "usage": "A row, panel, toast or menu arriving or leaving; fold and reorder."
311
+ },
312
+ {
313
+ "name": "duration-leaf",
314
+ "value": "600ms",
315
+ "usage": "The leaf ring lighting what is now."
316
+ },
317
+ {
318
+ "name": "duration-light",
319
+ "value": "20min",
320
+ "usage": "The ground following the clock."
321
+ }
322
+ ]
323
+ },
324
+ "easing": {
325
+ "note": "Two curves only.",
326
+ "tokens": [
327
+ {
328
+ "name": "ease-out",
329
+ "value": "cubic-bezier(.2, .7, .2, 1)",
330
+ "usage": "Things that arrive."
331
+ },
332
+ {
333
+ "name": "ease-drift",
334
+ "value": "cubic-bezier(.4, 0, .2, 1)",
335
+ "usage": "Things that move or fold."
336
+ }
337
+ ]
338
+ }
339
+ }
@@ -100,7 +100,7 @@ A loop never sends a message, moves a Jira ticket, merges into a product reposit
100
100
  | [Expected outcomes](claude-proposes.md) | Once a day. At most 3 drafts a day for each product. | The PRD's success criteria, or the anchored key result | "Expected outcome" under the initiative's ✦. Today when a check is due. | `pmos ai off outcomes`. `PMOS_OUTCOMES=off` |
101
101
  | [Metric drafts](claude-proposes.md) | A product with no North Star, the first 14 days of a quarter, a program with no goal, and an initiative that gets a PRD | The last 8 weeks of real readings | The page of that product, program or initiative | `PMOS_METRIC_DRAFT=off` |
102
102
  | [Horizon scan](intelligence-okr-goals.md) | Daily by default, at most once a day, the first time you step away after 09:00. Scan now: at most 3 a day. | The public web for your kept watch list, and your repository | Report documents and proposals you approve | Cadence: Off. `PMOS_SCAN=off` |
103
- | Live round | When you press ✓ on its ✦ ask, or run `pmos lab round`. Three runs at once. No time limit: you see its progress and can stop it. | The initiative's name, the product's Intent and its token sheet; a feedback round also reads the last version. | "PMOS prototyped it" or "PMOS improved it" under the initiative's ✦, each version as soon as it renders. | ✕ on its ✦ ask; Undo after ✓ |
103
+ | Live round | When you press ✓ on its ✦ ask, or run `pmos lab round`. Three runs at once. No time limit: you see its progress and can stop it. | The initiative's name, the product's Intent and the PMOS design system; a feedback round also reads the last version. | "PMOS prototyped it" or "PMOS improved it" under the initiative's ✦, each version as soon as it renders. | ✕ on its ✦ ask; Undo after ✓ |
104
104
  | Idle lab | When you have not used PMOS for 30 minutes. One run at a time, at most 3 results each time you step away. | Prototypes: the initiative's record, PRD and earlier specimens. Scans: public pages only, read through `pmos lab page`, and no repository. | "PMOS prototyped it", "PMOS improved it" and "PMOS scanned for it" under the initiative's ✦. A finding that fits no initiative: Intelligence › Lab. | `pmos ai off idle-lab` |
105
105
  | [Prototypes before a meeting](notes.md) | A meeting starts in the next 60 minutes, and its title, agenda or material names an initiative in Triage or Discover with no prototype. One round at a time. An initiative is tried once a week at most, and never while a round waits for you. | The initiative, as a live round reads it | Round 1 under the initiative's ✦ at minute 0. In the meeting, ✓ on **✦ Show it?** starts the next round. | `pmos ai off meeting-prewarm` |
106
106
  | [What you might have missed](claude-proposes.md) | Each Monday, for the week before. It uses no model. | Records only: tasks, dates, initiatives and Jira status | One ✦ in Home's chat, at most 3 items | `pmos ai off drift`. `PMOS_DRIFT=off` |
@@ -213,7 +213,7 @@ What each part does:
213
213
 
214
214
  - **The design sprint runs silently.** Each run works out from the initiative who the prototype is for and the one question it must answer, uses real content from the initiative, and keeps the fidelity just real enough to react to. None of that is a step you fill in. PMOS only recommends, as one ✦ on the canvas, for example "Try it on 3 to 5 people it is for", with a test link to copy.
215
215
  - **What the run makes.** One run makes the prototype first, then the flow (`flow.json`), who does what (`lanes.json`) and the sliders (`tweaks.json`). PMOS reads the page copy (`copy.json`) from the prototype's own words, so the two always agree. A file that is not well formed is "not made" with the reason, and the prototype still shows.
216
- - **What the run gets.** Each run gets the product's token sheet and the start of its component sheet (or PMOS's own), the initiative's name and the product's Intent, the files you attached, the element you pointed at, and your copy edits and sliders. A prototype must fit a 390 px phone screen.
216
+ - **What the run gets.** Each run gets the PMOS design system: its stylesheet and its rules (one lit thing per screen, icon-only buttons, the assistant is PMOS). A product that keeps its own copy of the system in `pmos/design-system/` gets that copy. A product with only its own token sheet keeps its own look. The idle lab's prototypes get the same. The run also gets the initiative's name and the product's Intent, the files you attached, the element you pointed at, and your copy edits and sliders. A prototype must fit a 390 px phone screen.
217
217
  - **What the run can do.** A run can only read and write in its own folder in the runtime folder, plus the last version and the files you attached. It has no shell, no web and nothing that sends. Nothing goes into a product repository before your ✓.
218
218
  - **What the canvas can do.** The prototype runs in a sandboxed frame. It cannot reach PMOS. The canvas talks to it only to show a screen, point, pin, play and apply your edits.
219
219
  - **Your prototype rules.** After a version renders and before it opens, PMOS checks it against your prototype rules: no device or browser frame, no instructions on the screen, no sample copy, and each rule PMOS learns from your corrections. When a correction is true of every prototype (for example "no device frame"), the chat adds it as a rule (`pmos lab rule add`). PMOS keeps a rule only when it fails a bad example and passes a good one, so a button such as "See the week" is never read as an instruction. A change to one version ("make the alert orange") or a taste ("calmer") never becomes a rule. A version that breaks a rule gets one fix run, given only the lines that broke it. You see only the fixed version, with one quiet line: "PMOS fixed 3 things before showing you this." When the fix does not reach a rule, the version still opens and the line names the rule it breaks. When nothing was fixed, there is no line. Settings › PMOS › Prototype rules lists the rules with Undo.
@@ -9,6 +9,12 @@ timestamp: 2026-11-19
9
9
 
10
10
  PMOS has four places: **Today**, **Work**, **Goals** and **Events**. PMOS opens on Today. Until each place gets its new page, Work is the Board and Goals is Intelligence. Home is still there for the links that open it, and a phone uses Home as Today. **Library** and **Routine** join the navigation when their pages ship. The console and its three columns were removed; their old addresses open Today.
11
11
 
12
+ ## The design system
13
+
14
+ PMOS has one UI design system, agreed on 2026-11-19. Its files are in the workspace's `design-system/` folder: the tokens, every part with a README, and the pages map. Each kit gets a copy in `pmos/design-system/`, so another project or session can use it. Read its `README.md` first.
15
+
16
+ The workspace's shared stylesheet, `pm/komorebi.css`, is made from those files. A page moves to it when it puts `pm-ds` on its root. Pages move one at a time, and a page that has not moved looks as it did. Slides get their own design system later.
17
+
12
18
  ## The navigation
13
19
 
14
20
  On a computer, one thin panel at the left edge of every page holds the places. It is the same on every page. Press a place to go there.
@@ -0,0 +1,145 @@
1
+ 'use strict';
2
+ /* design-system.js — the PMOS UI design system (Komorebi, agreed 2026-11-19) as code can use it. Slides get a separate system
3
+ * (Wawan 2026-11-19: "differentiate between the UI design system and slide design system"), so nothing here is about decks.
4
+ *
5
+ * The UI system's files live in workspace/design-system/ (tokens.json, tokens.css, components/bundle.css, README.md, pages.md and
6
+ * one README + preview per part). They travel three ways, all from that one folder:
7
+ * 1. the workspace: sheetOf() turns tokens.css + bundle.css into public/pm/komorebi.css, the workspace's one shared stylesheet. Every
8
+ * rule there is scoped to .pm-ds (the workspace already uses .pm as a modifier class on a few buttons and rows), the fonts are the
9
+ * self-hosted ones in public/vendor (no network), and nothing styles body, a or * outside the scope. A page moves to the system by
10
+ * loading the sheet and putting class="pm-ds" on its root.
11
+ * 2. prototypes: scaffoldOf() is the stylesheet a prototype run pastes into its page (lib/live-round.js, lib/idle-lab-engine.js), and
12
+ * RULES is the short form of README.md the run follows.
13
+ * 3. other projects: kit/build-kit.sh copies the folder into every kit as pmos/design-system/ (create-pmos KERNEL).
14
+ *
15
+ * node lib/design-system.js --write regenerate public/pm/komorebi.css after a change to the system's files
16
+ * node lib/design-system.js --check exit 1 when public/pm/komorebi.css is not what the files make (design-system.test.js)
17
+ *
18
+ * dirOf(roots) → the first <root>/{pmos/design-system, design-system, workspace/design-system} that has tokens.css, or null
19
+ * cssOf(dir) PURE-ish → tokens.css + components/bundle.css, comments and the font @import removed (for a prototype)
20
+ * sheetOf(tokens, bundle) PURE → the workspace stylesheet
21
+ */
22
+ const fs = require('fs');
23
+ const path = require('path');
24
+
25
+ const OWN = path.join(__dirname, '..', 'design-system');
26
+ const SHEET = path.join(__dirname, '..', 'public', 'pm', 'komorebi.css');
27
+ const SCOPE = '.pm-ds';
28
+ // where a product keeps the system: the kit's copy first (create-pmos), then a folder of its own, then PMOS-self's
29
+ const PLACES = ['pmos/design-system', 'design-system', 'workspace/design-system'];
30
+
31
+ /** The short form of README.md that a prototype run follows (the whole README is in the folder for a person or a long session). */
32
+ const RULES = [
33
+ 'Follow the PMOS design system (the stylesheet below is its tokens and parts):',
34
+ '- Wrap the page in <body class="pm">. Build only from the system\'s classes: pm-btn, pm-input, pm-badge, pm-li, pm-tabs, pm-field, pm-toast, pm-menu, pm-sug, pm-ev, pm-block, pm-table, pm-num, pm-cal, pm-chart, pm-leg, pm-tip, pm-pick, pm-doc, pm-stage, pm-rail; type classes title, heading, body, small. If you need something no part does, add an option to a part, not a new look.',
35
+ '- Colour has a meaning: blue is PMOS speaking (the ✦, the primary button, links); leaf is now (one lit thing per screen, never text); alert is late, at risk or blocked (never decoration). Text is ink, why lines and meta are muted. No other colours.',
36
+ '- Type: four sizes only (title 26, heading 18, body 15, small 13), bold only on what you act on. Nothing under 13 px.',
37
+ '- Every row says why it is there. Now is raised; later is flat and folded. Zero is silence: no "0 items", no empty charts.',
38
+ '- Buttons are icon-only (a 24 px stroke icon) with aria-label and a title tooltip. PMOS recommends, the person approves (Yes / No); safe actions happen at once with Undo, never "are you sure". No emoji.',
39
+ '- Write from the person\'s side in short plain sentences ("Moved to tomorrow", not "Success"). The assistant is PMOS, never "Claude".',
40
+ ].join('\n');
41
+
42
+ /** The first folder under roots that holds the system, or null. */
43
+ function dirOf(roots) {
44
+ for (const r of roots || []) {
45
+ if (!r) continue;
46
+ for (const p of PLACES) {
47
+ const d = path.join(r, p);
48
+ if (fs.existsSync(path.join(d, 'tokens.css')) && fs.existsSync(path.join(d, 'components', 'bundle.css'))) return d;
49
+ }
50
+ }
51
+ return null;
52
+ }
53
+
54
+ const stripComments = (css) => String(css || '').replace(/\/\*[\s\S]*?\*\//g, '').replace(/\n\s*\n+/g, '\n').trim();
55
+ // the system loads its fonts from Google Fonts; a prototype is sandboxed with no network and the workspace self-hosts them
56
+ const dropImports = (css) => String(css || '').replace(/^@import[^;]*;\s*/gm, '');
57
+ const read = (f) => { try { return fs.readFileSync(f, 'utf8'); } catch { return ''; } };
58
+
59
+ /** The system's CSS for a prototype: tokens then parts. */
60
+ function cssOf(dir) {
61
+ if (!dir) return '';
62
+ return stripComments(dropImports(read(path.join(dir, 'tokens.css')) + '\n' + read(path.join(dir, 'components', 'bundle.css'))));
63
+ }
64
+
65
+ /** The scaffold a prototype run gets: { css, rules, from } (empty css when no root has the system). */
66
+ function scaffoldOf(roots) {
67
+ const dir = dirOf(roots);
68
+ if (!dir) return { css: '', rules: '', from: [] };
69
+ return { css: cssOf(dir), rules: RULES, from: [path.join(dir, 'tokens.css'), path.join(dir, 'components', 'bundle.css')], ds: dir };
70
+ }
71
+
72
+ /* ── the workspace stylesheet ── */
73
+
74
+ /** Split CSS into top-level pieces: { at, sel, body } for a rule, { at: '@…', sel, body } for a block at-rule, { raw } for a statement. */
75
+ function pieces(css) {
76
+ const out = [], s = stripComments(css);
77
+ let i = 0;
78
+ while (i < s.length) {
79
+ while (i < s.length && /\s/.test(s[i])) i++;
80
+ if (i >= s.length) break;
81
+ const brace = s.indexOf('{', i), semi = s.indexOf(';', i);
82
+ if (s[i] === '@' && semi !== -1 && (brace === -1 || semi < brace)) { out.push({ raw: s.slice(i, semi + 1).trim() }); i = semi + 1; continue; }
83
+ if (brace === -1) break;
84
+ let depth = 0, j = brace;
85
+ for (; j < s.length; j++) { if (s[j] === '{') depth++; else if (s[j] === '}' && --depth === 0) break; }
86
+ out.push({ sel: s.slice(i, brace).trim(), body: s.slice(brace + 1, j).trim() });
87
+ i = j + 1;
88
+ }
89
+ return out;
90
+ }
91
+
92
+ /** One selector, scoped: the root selectors become the scope, everything else sits inside it. */
93
+ function scopeSel(sel) {
94
+ const t = sel.trim();
95
+ if (t === ':root' || t === '[data-theme="light"]' || t === 'body' || t === '.pm') return SCOPE;
96
+ if (t === '[data-theme="dark"]') return `${SCOPE}.dark, html.dark ${SCOPE}, :root[data-theme="dark"] ${SCOPE}`;
97
+ if (t === '.pm *') return `${SCOPE} *`;
98
+ if (t === '*') return `${SCOPE} *`;
99
+ return `${SCOPE} ${t}`;
100
+ }
101
+ const scopeList = (sels) => [...new Set(sels.split(',').map(scopeSel).join(', ').split(/,\s*/))].join(', ');
102
+
103
+ /** PURE. tokens.css + bundle.css → the workspace's stylesheet (public/pm/komorebi.css). */
104
+ function sheetOf(tokens, bundle) {
105
+ const L = [
106
+ '/* komorebi.css — the PMOS design system (Komorebi) for the workspace. GENERATED from workspace/design-system/ by lib/design-system.js:',
107
+ ' * do not edit; change the system\'s files and run `node lib/design-system.js --write`. Every rule is scoped to .pm-ds, so the sheet changes',
108
+ ' * nothing until a page puts class="pm-ds" on its root. The fonts are the self-hosted ones (public/vendor), never a network font. */',
109
+ "@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/vendor/plus-jakarta-sans-var.woff2) format('woff2'); }",
110
+ "@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/vendor/ibm-plex-mono-400.woff2) format('woff2'); }",
111
+ ];
112
+ const emit = (list, indent) => {
113
+ for (const p of list) {
114
+ if (p.raw) continue; // @import (the network fonts): the @font-face lines above stand in for it
115
+ if (/^@media|^@supports/.test(p.sel)) { L.push(`${indent}${p.sel} {`); emit(pieces(p.body), indent + ' '); L.push(`${indent}}`); continue; }
116
+ if (/^@keyframes/.test(p.sel)) { L.push(`${indent}${p.sel}{${p.body.replace(/\s+/g, ' ')}}`); continue; }
117
+ // the preview wrapper's own layout (padding, a column of cards) is for the system's previews, not for a workspace page
118
+ if (p.sel === '.pm' && /padding/.test(p.body) && /flex-direction/.test(p.body)) continue;
119
+ L.push(`${indent}${scopeList(p.sel)}{${p.body}}`);
120
+ }
121
+ };
122
+ emit(pieces(tokens), '');
123
+ emit(pieces(bundle), '');
124
+ // the workspace's own glue for pm/komorebi.js (the parts' behaviour): the tooltip is placed through two custom properties, never an
125
+ // inline style, and a legend swatch takes its colour from its role class
126
+ L.push(`${SCOPE} .pm-tip{left:var(--pm-tip-x,0);top:var(--pm-tip-y,0)}`);
127
+ for (const r of ['blue', 'leaf', 'muted', 'alert']) L.push(`${SCOPE} .pm-leg i.pm-sw-${r}{background:var(--${r})}`);
128
+ L.push(`${SCOPE} .pm-chart-head:empty{display:none}`);
129
+ return L.join('\n') + '\n';
130
+ }
131
+
132
+ function sheetFromDir(dir = OWN) {
133
+ return sheetOf(read(path.join(dir, 'tokens.css')), read(path.join(dir, 'components', 'bundle.css')));
134
+ }
135
+
136
+ if (require.main === module) {
137
+ const want = sheetFromDir();
138
+ if (process.argv.includes('--write')) { fs.writeFileSync(SHEET, want); console.log('✓ wrote ' + path.relative(process.cwd(), SHEET)); }
139
+ else if (process.argv.includes('--check')) {
140
+ if (read(SHEET) !== want) { console.error('✗ public/pm/komorebi.css is not what workspace/design-system/ makes. Run: node lib/design-system.js --write'); process.exit(1); }
141
+ console.log('✓ public/pm/komorebi.css matches workspace/design-system/');
142
+ } else { console.log('usage: node lib/design-system.js --write | --check'); process.exit(2); }
143
+ }
144
+
145
+ module.exports = { OWN, SHEET, SCOPE, PLACES, RULES, dirOf, cssOf, scaffoldOf, sheetOf, sheetFromDir, pieces };
@@ -44,6 +44,7 @@
44
44
  * create(deps) → { tick(turn), finish(run, r), active(), status(), products(now) }
45
45
  */
46
46
  const fs = require('fs');
47
+ const DS = require('./design-system.js');
47
48
  const path = require('path');
48
49
  const crypto = require('crypto');
49
50
  const LAB = require('./idle-lab.js');
@@ -228,6 +229,7 @@ function promptOf(skill, c, o = {}) {
228
229
  L.push('- File only what is NEW since then, with "refreshed" saying how much is new. Nothing new: file nothing.');
229
230
  }
230
231
  if (c.kind.startsWith('scan')) L.push(`- Read pages ONLY with \`pmos lab page <url>\` (at most ${MAX_PAGES}). File with \`pmos lab file ${c.ini ? 'scanned' : 'scan'} --json -\`.`);
232
+ if (o.design && o.design.css) L.push('', o.design.rules, 'Paste this stylesheet in each specimen\'s <style> tag and add only the layout you need:', '```css', o.design.css, '```');
231
233
  L.push('', 'File with `pmos lab file` only. Send nothing.');
232
234
  return L.join('\n');
233
235
  }
@@ -392,7 +394,9 @@ function create(deps) {
392
394
  if (proto) fs.mkdirSync(spec, { recursive: true }); else fs.mkdirSync(pagesDir(r, run), { recursive: true });
393
395
  } catch (e) { warn('idle lab folders', e); return { ok: false }; }
394
396
  const day = new Date(now); const today = day.getFullYear() + '-' + String(day.getMonth() + 1).padStart(2, '0') + '-' + String(day.getDate()).padStart(2, '0');
395
- const prompt = promptOf(skill, c, { run, today, budget, specimens: spec, specimenRoot: LAB.specimenDir(r) });
397
+ // a prototype is drawn in the PMOS design system: the product's copy of it (pmos/design-system/), else PMOS's own (lib/design-system.js)
398
+ const design = proto ? DS.scaffoldOf([pr.w.root, path.join(__dirname, '..')]) : null;
399
+ const prompt = promptOf(skill, c, { run, today, budget, specimens: spec, specimenRoot: LAB.specimenDir(r), design });
396
400
  const env = { PMOS_LAB_RUN: run, PMOS_LAB_KIND: c.kind, PMOS_LAB_PENDING: pendingFile(r, run), PMOS_LAB_INI: c.ini || '', PMOS_LAB_BUDGET: String(budget),
397
401
  ...(proto ? { PMOS_LAB_SPECIMENS: spec } : { PMOS_LAB_PAGES: pagesDir(r, run) }) };
398
402
  active = { run, c, start: now, session: null, dir: pr.dir, root: pr.w.root };