create-pmos 0.573.0 → 0.574.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.573.0",
3
+ "version": "0.574.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.574.0",
38
+ "at": "2026-11-16T06:14:05.146Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1306,
43
+ "t": "The phone chat's composer and menu button stay in place after touch scrolling",
44
+ "s": "The phone chat's composer and menu button stay in place after touch scrolling",
45
+ "k": "fix"
46
+ }
47
+ ]
48
+ },
36
49
  {
37
50
  "v": "0.573.0",
38
51
  "at": "2026-11-16T04:53:10.251Z",
@@ -291,25 +304,6 @@
291
304
  "k": "new"
292
305
  }
293
306
  ]
294
- },
295
- {
296
- "v": "0.554.0",
297
- "at": "2026-11-10T22:52:00.722Z",
298
- "f": 4,
299
- "prs": [
300
- {
301
- "n": 1281,
302
- "t": "Say PMOS, not Claude, across the workspace",
303
- "s": "Say PMOS, not Claude, across the workspace",
304
- "k": "new"
305
- },
306
- {
307
- "n": 1283,
308
- "t": "PMOS-self records leave workspace/state; CLAUDE.md names the tracked record and OKF v0.2; judging skills link their guides",
309
- "s": "PMOS-self records leave workspace/state; CLAUDE.md names the tracked record and OKF v0.2; judging skills link their guides",
310
- "k": "fix"
311
- }
312
- ]
313
307
  }
314
308
  ]
315
309
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@9d571f33
1
+ kernel-source: pmos@fffed702
2
2
  assembled: 2026-11-16
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-16T04:53:07Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-16T06:14:01Z"}
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-16T04:53:07Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-16T06:14:01Z"}
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-16T04:53:07Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-16T06:14:01Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,17 @@
1
1
  [
2
+ {
3
+ "v": "0.574.0",
4
+ "at": "2026-11-16T06:14:05.146Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1306,
9
+ "t": "The phone chat's composer and menu button stay in place after touch scrolling",
10
+ "s": "The phone chat's composer and menu button stay in place after touch scrolling",
11
+ "k": "fix"
12
+ }
13
+ ]
14
+ },
2
15
  {
3
16
  "v": "0.573.0",
4
17
  "at": "2026-11-16T04:53:10.251Z",
@@ -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. 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.
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 the message box stays at the bottom of the screen while you scroll, and the menu button sits just above it, with the Live count beside it. Messages fade out under them. Search fills the screen. The Viewer fills the screen, and ← at the first item closes it.
49
49
 
50
50
  ## First run
51
51
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.573.0",
3
+ "version": "0.574.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.573.0",
9
+ "version": "0.574.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.573.0",
3
+ "version": "0.574.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",
@@ -476,6 +476,14 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
476
476
  .hv-why input, .hv-why select, .hv-why textarea { font-size: var(--fs-field); min-height: 44px; }
477
477
  .hx-row select, .hx-add input { font-size: var(--fs-field); min-height: 44px; } /* a task's status and Add a task: 44 px targets that do not zoom the page */
478
478
  .hm-foot { position: sticky; bottom: 0; z-index: 5; margin: 0 -16px; padding: 8px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--cz-ground); } /* the composer stays on the screen while the conversation scrolls */
479
+ /* Home's composer is fixed to the screen's bottom, not sticky (batch 30 item 2): the place menu's button is fixed just above it, so the
480
+ * two share one layer and the button's offset is the composer's height alone. Sticky with a measured offset left the button over the
481
+ * messages after touch scrolling on iOS. The chat keeps the composer's height under its last message. */
482
+ body.cz-home #hmFoot { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; }
483
+ body.cz-home #hmChat { box-sizing: border-box; padding-bottom: var(--bd-hmfoot, 232px); }
484
+ /* a short fade over the text that scrolls under the button, so the button never sits on a readable line; home-line.css takes it away
485
+ * where the phone chat has no button */
486
+ body.cz-home #hmFoot::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 72px; pointer-events: none; background: var(--cz-ground); background-size: 100% 1000px; -webkit-mask-image: linear-gradient(to bottom, transparent, black 40%); mask-image: linear-gradient(to bottom, transparent, black 40%); } /* the ground is a gradient: its first colours meet the composer's top */
479
487
  .hm-x { opacity: 1; }
480
488
  .hm-unfold, .hm-folded .hm-unfold { display: none; }
481
489
  .hm-reopen { display: none; }
@@ -484,7 +492,9 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
484
492
  }
485
493
  /* the menu button sits just above the foot (the box, its bars and the hint: home-chat.js keeps --bd-hmfoot), never over a press; the log ends
486
494
  * with room for it, so the last message scrolls clear of it */
487
- @media (max-width: 760px) { body.cz-home .cz-fabw { bottom: calc(var(--bd-hmfoot, 232px) + 10px); } body.cz-home.hm-sheet .cz-fabw { bottom: 118px; } .hm-log { padding-bottom: 76px; } }
495
+ @media (max-width: 760px) { body.cz-home .cz-fabw { bottom: calc(var(--bd-hmfoot, 232px) + 10px); } body.cz-home.hm-sheet .cz-fabw { bottom: 118px; } .hm-log { padding-bottom: 76px; }
496
+ /* the Live pill sits beside the button, inside the fade, not stacked over the messages (batch 30 item 2) */
497
+ body.cz-home:not(.hm-plist):not(.hm-sheet) .cz-fabw .cz-live { left: auto; right: 68px; bottom: 6px; } }
488
498
  .hv-term { margin: 0; height: 100%; box-sizing: border-box; padding: 16px 20px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-family: var(--cz-mono); font-size: var(--fs-meta); line-height: 1.5; color: var(--cz-ink2); background: var(--cz-well); }
489
499
  .hv-xt { height: 100%; box-sizing: border-box; padding: 12px 16px; overflow: auto; background: var(--cz-well); } /* term-view.js: the session's terminal drawn by xterm.js, read only */
490
500
  .hv-xt .xterm { display: inline-block; zoom: .8; } /* xterm's 15px default drawn at 12px */
@@ -59,6 +59,7 @@ import { mountRecRow, clockOf as recClock } from './home-rec-row.js';
59
59
  import { mountSesName } from './home-ses-name.js'; // session names A: tap the session's name to rename it (canvas XmsNames)
60
60
  import * as SM from './split-merge.js'; // split one initiative in two, or merge two: Claude suggests, the PM approves (batch 11 item 14)
61
61
  import * as PM from './prog-move.js'; // move an initiative out of its program, or to another (canvas LpA1More, LpA2Other, LpA4Phone)
62
+ import { wireSettle } from './vv-settle.js'; // the phone's fixed layer back in place after the keyboard and touch scrolls (batch 30 item 2)
62
63
  import * as CW from './ctx-wedge.js'; // how full a session's context is, and Claude's ✦ Compact (batch 13 item 8, XctxA1Desk)
63
64
  import * as SO from './sort-order.js'; // the sort button and ONE order with the Board (batch 14 item 8, canvas SoAHomePhone)
64
65
  import * as PO from './prog-order.js'; // a program's order on Home: the grip, hold-then-drag on a phone, ✦ Claude's order from the dates (canvas RoAPhone)
@@ -84,6 +85,7 @@ const BOARD = P.get('board') || ''; // the Board's expand link names its board
84
85
  const boardQ = (pre = '?') => (BOARD ? pre + 'board=' + encodeURIComponent(BOARD) : '');
85
86
  const PHONE = 760;
86
87
  const isPhone = () => innerWidth <= PHONE;
88
+ if (navigator.maxTouchPoints > 0) wireSettle(window); // a touch screen only: on a desktop the page does not scroll and the nudge is not needed
87
89
  const SVG = (d, w = 16, sw = 1.8) => `<svg aria-hidden="true" width="${w}" height="${w}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="${sw}" stroke-linecap="round" stroke-linejoin="round"><path d="${d}"/></svg>`;
88
90
  /** The Everything chip's globe (chief-of-staff C1, board CsA). */
89
91
  const GLOBE = 'M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18';
@@ -75,19 +75,12 @@ 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
- // 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 });
78
+ // for the place menu's button on a phone (cozy-home.css): the composer's height. On a phone the composer is fixed to the screen's bottom
79
+ // and the button is fixed just above it, so both sit in the same layer and the height alone places the button. #1280 measured the room
80
+ // from the composer's top to innerHeight instead; after touch scrolling on iOS that room was wrong and the button floated over the
81
+ // messages (batch 30 item 2). The chat also keeps this much room under its last message.
82
+ const footRoom = () => { const h = foot.getBoundingClientRect().height; if (h) document.body.style.setProperty('--bd-hmfoot', Math.round(h) + 'px'); };
83
+ if (typeof ResizeObserver === 'function') new ResizeObserver(footRoom).observe(foot);
91
84
 
92
85
  const role = () => (C.t && C.t.role) || roleOf(C.sess || null, host.roles(), firstUser());
93
86
  const firstUser = () => { const m = ((C.conv && C.conv.messages) || []).find((x) => x.role === 'user'); return m ? m.text : ''; };
@@ -56,4 +56,5 @@ body.cz-home:not(.hm-vw-open) .hm-plw { box-sizing: border-box; width: 100%; max
56
56
  /* a phone chat has no floating menu (the line and the top bar hold what it held), and the log needs no room for it */
57
57
  body.cz-home:not(.hm-plist):not(.hm-sheet) .cz-fabw { display: none; }
58
58
  body.cz-home:not(.hm-plist) .hm-log { padding-bottom: 12px; }
59
+ body.cz-home:not(.hm-plist) #hmFoot::before { content: none; } /* no button, so no fade over the last message (cozy-home.css) */
59
60
  }
@@ -0,0 +1,61 @@
1
+ /* pm/vv-settle.js — puts the phone's fixed layer back in place (batch 30 item 2, initiative phone-chat-touch-layout).
2
+ *
3
+ * On iOS WebKit the layer that holds position:fixed and position:sticky boxes can be left out of place after the soft keyboard closes,
4
+ * and stays there while the PM scrolls by touch: on Home's phone chat the top bar went off the screen and the composer stood in the
5
+ * middle of it with messages under it (Wawan's iPhone, 2026-11-16). A one-pixel scroll and back makes WebKit place the layer again;
6
+ * anywhere else it is a no-op. premium-shell.js does the same on the Board (2026-10-20); Home does not load premium-shell.js.
7
+ *
8
+ * settleFixed(win) nudges. drifted(v) is the pure check: the visual viewport is offset with no keyboard up and no zoom.
9
+ * wireSettle(win) settles after an input loses focus, when the keyboard closes, and when a scroll ends with the viewport drifted. */
10
+ export const EDITABLE = 'input,textarea,select,[contenteditable="true"],[contenteditable=""]';
11
+ const KB_ROOM = 150; // the visual viewport this much shorter than the layout viewport: the keyboard is up (cozy-live-pill.js uses the same)
12
+
13
+ /** v: { offsetTop, height, scale, layoutH, typing }. True when the fixed layer is likely out of place and a settle is due. */
14
+ export function drifted(v) {
15
+ if (!v || v.typing) return false;
16
+ if (v.scale && Math.abs(v.scale - 1) > 0.01) return false; // a pinch zoom offsets the viewport on purpose
17
+ if (v.layoutH && v.height && v.layoutH - v.height > KB_ROOM) return false; // the keyboard is up: the offset keeps the box in view
18
+ return Math.abs(v.offsetTop || 0) > 0.5;
19
+ }
20
+
21
+ let busy = false;
22
+ export function settleFixed(win = window) {
23
+ if (busy) return; busy = true;
24
+ try { const y = win.scrollY, d = y > 0 ? -1 : 1; win.scrollTo(win.scrollX, y + d); win.scrollTo(win.scrollX, y); }
25
+ finally { win.setTimeout(() => { busy = false; }, 0); } // the nudge's own scroll events do not start another settle
26
+ }
27
+
28
+ /** Wires the settles once per window. Returns { check } (a settle when drifted), for the caller and the tests. */
29
+ export function wireSettle(win = window) {
30
+ if (win.__czSettle) return win.__czSettle;
31
+ const doc = win.document, vv = win.visualViewport || null;
32
+ const typing = () => { const a = doc.activeElement; return !!(a && a.matches && a.matches(EDITABLE)); };
33
+ const state = () => ({ offsetTop: vv ? vv.offsetTop : 0, height: vv ? vv.height : 0, scale: vv ? vv.scale : 1, layoutH: doc.documentElement.clientHeight, typing: typing() });
34
+ // armed by the PM's own touch (or the page coming back): one settle per gesture, so a nudge that does not help cannot repeat forever
35
+ let armed = true;
36
+ const arm = () => { armed = true; };
37
+ const check = () => { if (armed && !busy && drifted(state())) { armed = false; settleFixed(win); } };
38
+ doc.addEventListener('focusout', (e) => {
39
+ if (!e.target || !e.target.matches || !e.target.matches(EDITABLE)) return;
40
+ win.setTimeout(() => settleFixed(win), 60); win.setTimeout(() => settleFixed(win), 400); // the keyboard closes over ~300 ms
41
+ });
42
+ if (vv) {
43
+ let kb = false;
44
+ vv.addEventListener('resize', () => {
45
+ const shut = state().layoutH - vv.height <= KB_ROOM;
46
+ if (kb && shut) settleFixed(win);
47
+ kb = !shut;
48
+ });
49
+ vv.addEventListener('scroll', () => { if (!kb) idle(); });
50
+ }
51
+ // a scroll's end: no scroll event for 160 ms (scrollend where there is one), or the finger lifts
52
+ let t = 0;
53
+ const idle = () => { win.clearTimeout(t); t = win.setTimeout(check, 160); };
54
+ win.addEventListener('scroll', idle, { passive: true });
55
+ win.addEventListener('scrollend', check, { passive: true });
56
+ win.addEventListener('touchend', idle, { passive: true });
57
+ win.addEventListener('touchstart', arm, { passive: true });
58
+ win.addEventListener('pageshow', () => { arm(); check(); });
59
+ win.__czSettle = { check };
60
+ return win.__czSettle;
61
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "_comment": "Batch 30 item 2, initiative phone-chat-touch-layout: the phone's fixed layer settles after the keyboard and touch scrolls (pm/vv-settle.js). Pure check and a fake window.",
3
+ "modules": [
4
+ "vv-settle.test.js"
5
+ ]
6
+ }