create-pmos 0.551.0 → 0.552.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.551.0",
3
+ "version": "0.552.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,19 @@
33
33
  "audit"
34
34
  ],
35
35
  "pmosChanges": [
36
+ {
37
+ "v": "0.552.0",
38
+ "at": "2026-11-10T22:15:08.780Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1280,
43
+ "t": "Phone menu button clears the chat box; the PM can clear an Intent line",
44
+ "s": "Phone menu button clears the chat box; the PM can clear an Intent line",
45
+ "k": "fix"
46
+ }
47
+ ]
48
+ },
36
49
  {
37
50
  "v": "0.551.0",
38
51
  "at": "2026-11-10T11:25:58.991Z",
@@ -351,19 +364,6 @@
351
364
  "k": "new"
352
365
  }
353
366
  ]
354
- },
355
- {
356
- "v": "0.532.0",
357
- "at": "2026-11-04T19:01:35.763Z",
358
- "f": 4,
359
- "prs": [
360
- {
361
- "n": 1248,
362
- "t": "Report templates T02–T08",
363
- "s": "Report templates T02–T08",
364
- "k": "new"
365
- }
366
- ]
367
367
  }
368
368
  ]
369
369
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@bc3f5f8c
1
+ kernel-source: pmos@8fe462f4
2
2
  assembled: 2026-11-10
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-10T11:25:55Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-10T22:15:06Z"}
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-10T11:25:55Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-10T22:15:06Z"}
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-10T11:25:55Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-10T22:15:06Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,17 @@
1
1
  [
2
+ {
3
+ "v": "0.552.0",
4
+ "at": "2026-11-10T22:15:08.780Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1280,
9
+ "t": "Phone menu button clears the chat box; the PM can clear an Intent line",
10
+ "s": "Phone menu button clears the chat box; the PM can clear an Intent line",
11
+ "k": "fix"
12
+ }
13
+ ]
14
+ },
2
15
  {
3
16
  "v": "0.551.0",
4
17
  "at": "2026-11-10T11:25:58.991Z",
@@ -2,7 +2,7 @@
2
2
  type: Guide
3
3
  title: "Layout and first run: the places, the menu, the Viewer, the launcher and Adler"
4
4
  description: "The three places, the menu button, the Viewer, the keys and the phone; the first run; when features appear; the PMOS app; and Adler."
5
- timestamp: 2026-11-08
5
+ timestamp: 2026-11-10
6
6
  ---
7
7
 
8
8
  # Layout and first run
@@ -45,7 +45,7 @@ A key that you type in a field, or in a terminal, goes to the field or the termi
45
45
 
46
46
  ## On a phone
47
47
 
48
- At phone width, Home's list is the page. A row opens its item over the list, with a back bar. The menu button is at the bottom right. Search fills the screen. The Viewer fills the screen, and ← at the first item closes it.
48
+ At phone width, Home's list is the page. A row opens its item over the list, with a back bar. The menu button is at the bottom right. In a chat it sits just above the message box, never on it. Search fills the screen. The Viewer fills the screen, and ← at the first item closes it.
49
49
 
50
50
  ## First run
51
51
 
@@ -86,6 +86,7 @@ The Viewer of a program, and the product page, are one page. There is no Work an
86
86
  - The top shows Claude's ✦ line, then the goal card with its milestones and the forecast bar. Goals show a short title, not the KR's full text.
87
87
  - On the product page, **The story so far** comes under the ✦ line. Claude writes it from the records, and every line shows its source as a chip. This story is your weekly update: the update leads with it, without the sources. The ✦ line then says "Your weekly update is this story." Claude keeps it current when it prepares the weekly report. With no story, there is no card.
88
88
  - On the product page, **Intent** comes under the story: what we want, the limits Claude works inside, and what we will not do. It is yours. Press the pencil to edit the three parts, one line each. Claude never changes it; when a record says it should change, Claude adds a ✦ row under the card, for example "Add a limit: …" with its source. ✓ adds it, ✕ declines it.
89
+ - To clear a part of the Intent, press the pencil, empty that box and press ✓. An emptied part leaves the card. When every part is empty, the card says it is not written yet.
89
90
  - Each goal row shows the KR as a chip, then a short title, then one grey line on how it reads. The KR id alone is never the title.
90
91
  - When Claude proposes changes, a folded row under the goal card counts them. Only the owner sees this row. Press it to open every proposal, each with Claude's pick: ✕ drops it, ✎ opens it to change, ✓ keeps the pick.
91
92
  - On the product page, the same row also holds **Goals I would change**: a KR whose wording reads badly, with the old words struck through, the new words, one reason and a test read (its source and number). Claude lists a goal only when its test read returned a number.
@@ -19,11 +19,13 @@
19
19
  * `now` (one paragraph per line) and its `week` lines of the last `days` days; every line carries the sources of its set
20
20
  * lessonsOf(state) → [{ scope, text, sources, at }] every Lessons line of every scope, newest first (Settings › Claude, AwG2)
21
21
  * intentOf(state, scopes) → { scope, fields: { want, limits, not } } the Intent card on the product page (board AwI): the first scope
22
- * that holds an Intent line, else the first scope with every field empty. A field is { id, text, at, by } | null
22
+ * that holds an Intent line (a scope whose lines the PM cleared counts, and shows empty), else the first scope with every field
23
+ * empty. A field is { id, text, at, by } | null
23
24
  * withLine(current, text) → text an Intent proposal that adds one line: the field's text with the line after it (a line already there is kept once)
24
25
  *
25
26
  * THE LINES. Every line is { v: 1, ev, id, scope, at, by }.
26
- * set { artefact, field, text, sources: [{ label, ref }] } a value. A `one` field: the newest set wins. A `list` field: every set is a line.
27
+ * set { artefact, field, text, sources: [{ label, ref }] } a value. A `one` field: the newest set wins; the PM's empty text clears it.
28
+ * A `list` field: every set is a line.
27
29
  * undo { ref } the set with id `ref` no longer counts
28
30
  * carry { artefact, field, from: { kind, ref, path?, title?, state?, text? } } an older record (a core document, a kept driver proposal,
29
31
  * a report draft) that now lives under this artefact. The old record stays where it is: a carry is a pointer, never a copy that
@@ -224,7 +226,8 @@ function viewOf(state, scope) {
224
226
  const fields = {};
225
227
  for (const fd of a.fields) {
226
228
  const sets = x.sets.filter((l) => l.field === fd.name).map((l) => ({ id: l.id, text: l.text, sources: l.sources || [], by: l.by || null, at: l.at || null }));
227
- fields[fd.name] = fd.mode === 'one' ? (sets.length ? sets[sets.length - 1] : null) : sets;
229
+ // a `one` field whose newest set is the PM's empty one is cleared: it reads as null
230
+ fields[fd.name] = fd.mode === 'one' ? (sets.length && sets[sets.length - 1].text ? sets[sets.length - 1] : null) : sets;
228
231
  }
229
232
  const carried = x.carried.map((l) => ({ field: l.field || null, ...l.from, at: l.at || null }));
230
233
  const empty = !carried.length && Object.values(fields).every((v) => (Array.isArray(v) ? !v.length : !v));
@@ -281,8 +284,11 @@ function lessonsOf(state) {
281
284
  function intentOf(state, scopes) {
282
285
  const L = (scopes || []).filter((sc) => parseScope(sc));
283
286
  const pick = (sc) => { const v = viewOf(state, sc); return v && v.artefacts.find((a) => a.key === 'intent'); };
287
+ // a scope where the PM cleared every line still owns the card: it shows empty, not the portfolio's lines underneath
288
+ const written = (sc) => { const x = state && state.get(parseScope(sc).scope); const i = x && x.get('intent'); return !!(i && i.sets.length); };
284
289
  for (const sc of L) {
285
290
  const a = pick(sc);
291
+ if (a && written(sc) && ['want', 'limits', 'not'].every((k) => !a.fields[k])) return { scope: parseScope(sc).scope, fields: { want: null, limits: null, not: null } };
286
292
  if (a && !a.empty && ['want', 'limits', 'not'].some((k) => a.fields[k])) return { scope: parseScope(sc).scope, fields: { want: a.fields.want, limits: a.fields.limits, not: a.fields.not } };
287
293
  }
288
294
  return L.length ? { scope: parseScope(L[0]).scope, fields: { want: null, limits: null, not: null } } : null;
@@ -311,8 +317,10 @@ function checkSet({ scope, artefact, field, text, sources } = {}, actor) {
311
317
  if (!a.scopes.includes(p.kind)) return refuse(400, `${a.title} lives on ${a.scopes.join(' or ')}, not on ${p.kind}`);
312
318
  const fd = field ? fieldOf(a.key, field) : a.fields[0];
313
319
  if (!fd) return refuse(400, `field must be one of ${a.fields.map((x) => x.name).join(', ')}`);
314
- if (typeof text !== 'string' || !text.trim() || text.length > MAX_TEXT) return refuse(400, `text is 1 to ${MAX_TEXT} characters`);
315
- if (a.key === 'experiment' && fd.name === 'executor' && !EXECUTORS.includes(text.trim())) return refuse(400, `executor is one of ${EXECUTORS.join(', ')}`);
320
+ // The PM clears a `one` field with empty text: the set is kept (so Undo and pmEdited still see it) and the field reads as empty.
321
+ const clear = typeof text === 'string' && !text.trim() && fd.mode === 'one' && isPmActor(actor);
322
+ if (!clear && (typeof text !== 'string' || !text.trim() || text.length > MAX_TEXT)) return refuse(400, `text is 1 to ${MAX_TEXT} characters`);
323
+ if (!clear && a.key === 'experiment' && fd.name === 'executor' && !EXECUTORS.includes(text.trim())) return refuse(400, `executor is one of ${EXECUTORS.join(', ')}`);
316
324
  const src = [];
317
325
  for (const s of Array.isArray(sources) ? sources : []) {
318
326
  if (!isObj(s) || !oneLine(s.label, 80) || !oneLine(s.ref, 500)) return refuse(400, 'each source needs a label (up to 80 characters) and a ref (up to 500)');
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.551.0",
3
+ "version": "0.552.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.551.0",
9
+ "version": "0.552.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@anthropic-ai/sdk": "^1.3.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.551.0",
3
+ "version": "0.552.0",
4
4
  "private": true,
5
5
  "description": "PMOS Terminal Workspace — local companion hosting real PTYs beside the library and gates (D62)",
6
6
  "license": "MIT",
@@ -75,8 +75,19 @@ export function mountChat(el, host) {
75
75
  const toEnd = () => { log.scrollTop = log.scrollHeight; if (log.clientHeight && pageScrolls()) { const se = document.scrollingElement || document.documentElement; se.scrollTop = se.scrollHeight; } };
76
76
  if (typeof ResizeObserver === 'function') new ResizeObserver(() => { if (C.jump && log.clientHeight) { toEnd(); if (C.conv) C.jump = false; } }).observe(log);
77
77
  reopen.onclick = () => host.reopenViewer();
78
- // the foot's height, for the place menu's button on a phone: it sits just above the box and its bars (cozy-home.css --hm-foot-h)
79
- if (typeof ResizeObserver === 'function') new ResizeObserver(() => document.body.style.setProperty('--bd-hmfoot', Math.round(foot.getBoundingClientRect().height) + 'px')).observe(foot);
78
+ // for the place menu's button on a phone (cozy-home.css): the room from the top of the foot to the bottom of the screen, so the button
79
+ // sits just above the box and its bars. Not the foot's height: when the page is short the foot ends above the screen's bottom (the page's
80
+ // own padding is under it) and a height alone put the button over the box's right end (batch 29 item 2)
81
+ const footRoom = () => {
82
+ const r = foot.getBoundingClientRect(); if (!r.height) return;
83
+ const vh = window.innerHeight || r.bottom;
84
+ document.body.style.setProperty('--bd-hmfoot', Math.round(Math.min(Math.max(r.height, vh - r.top), vh - 72)) + 'px');
85
+ };
86
+ let roomQ = 0;
87
+ const roomSoon = () => { if (!roomQ) roomQ = requestAnimationFrame(() => { roomQ = 0; footRoom(); }); };
88
+ if (typeof ResizeObserver === 'function') new ResizeObserver(roomSoon).observe(foot);
89
+ window.addEventListener('resize', roomSoon, { passive: true });
90
+ window.addEventListener('scroll', roomSoon, { passive: true });
80
91
 
81
92
  const role = () => (C.t && C.t.role) || roleOf(C.sess || null, host.roles(), firstUser());
82
93
  const firstUser = () => { const m = ((C.conv && C.conv.messages) || []).find((x) => x.role === 'user'); return m ? m.text : ''; };
@@ -83,7 +83,7 @@ export async function onIntentSubmit(e, root, o) {
83
83
  const x = o.get(); if (!x || !x.intent) return true;
84
84
  const F = x.intent.fields || {};
85
85
  const changed = FIELDS.map(([k]) => [k, String((f.elements[k] && f.elements[k].value) || '').split(/\n+/).map((l) => l.trim()).filter(Boolean).join('\n')])
86
- .filter(([k, v]) => v && v !== linesOf(F[k]).join('\n'));
86
+ .filter(([k, v]) => v !== linesOf(F[k]).join('\n')); // an emptied field is a change too: it clears that part
87
87
  for (const [k, v] of changed) {
88
88
  const r = await pmPost('/api/artefacts/set', { ws: o.ws() || undefined, scope: x.intent.scope, artefact: 'intent', field: k, text: v }).catch(() => null);
89
89
  if (!r || !r.ok) { if (o.toast) o.toast((r && r.error) || 'It could not be saved. Nothing changed.'); break; }