create-pmos 0.304.0 → 0.305.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.304.0",
3
+ "version": "0.305.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": {
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@136df86
1
+ kernel-source: pmos@63f4202
2
2
  assembled: 2026-10-19
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-10-19T07:53:58Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-19T08:44:50Z"}
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-10-19T07:53:58Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-19T08:44:50Z"}
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-10-19T07:53:58Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-19T08:44:50Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -8,8 +8,9 @@
8
8
  * fresh the freshness line is one dot beside the date; pressing it shows the full line
9
9
  * more Backlog, Releases, Docs and Sprints show only after More; each still opens
10
10
  * calendar one Layers button shows and hides the layer chips
11
+ * scroll after a scroll the page tabs and the tools stay at the top of the window
11
12
  * reports no deck is drawn
12
- * phone at 400 wide on the desktop layout (lib/c3-full-console.js), nothing changes: the title shows and no dot is drawn (c3-phone-test.js tests the companion)
13
+ * phone at 400 wide on the desktop layout (lib/c3-full-console.js), nothing changes: the title shows, and no dot and no pinned bar is drawn (c3-phone-test.js tests the companion)
13
14
  * No script error may be raised.
14
15
  */
15
16
  const path = require('path');
@@ -127,6 +128,17 @@ const shown = (s) => { const n = document.querySelector(s); return !!n && getCom
127
128
  }
128
129
  await page.context().close();
129
130
 
131
+ /* ── the top bar stays put as the page scrolls, demo Briefing (a long page) ── */
132
+ page = await open(1280, '/console.html?demo=1&tab=brief');
133
+ await waitFor(page, () => !!document.querySelector('.qt-bar') && document.documentElement.scrollHeight > innerHeight + 200);
134
+ const navTop = () => page.evaluate(() => Math.round(document.querySelector('nav.c3tabs').getBoundingClientRect().top));
135
+ const before = await navTop();
136
+ await page.mouse.wheel(0, 600);
137
+ await waitFor(page, () => scrollY > 200, null, 5000);
138
+ const pinned = await page.evaluate(() => ({ y: Math.round(scrollY), nav: Math.round(document.querySelector('nav.c3tabs').getBoundingClientRect().top), tools: Math.round(document.querySelector('.c3top').getBoundingClientRect().bottom) }));
139
+ ok('S1 after a scroll the page tabs and the tools stay at the top of the window', pinned.y > 200 && pinned.nav >= 0 && pinned.nav <= Math.max(before, 0) && pinned.tools > 0, JSON.stringify({ before, ...pinned }));
140
+ await page.context().close();
141
+
130
142
  /* ── Reports, demo mode ── */
131
143
  page = await open(1280, '/console.html?demo=1&tab=rep');
132
144
  await waitFor(page, () => !!document.querySelector('[data-rp3]'));
@@ -136,8 +148,8 @@ const shown = (s) => { const n = document.querySelector(s); return !!n && getCom
136
148
  /* ── phone: unchanged ── */
137
149
  page = await open(400, '/console.html?tab=init');
138
150
  await page.waitForTimeout(400);
139
- const ph = await page.evaluate((shownSrc) => { const vis = new Function('s', 'return (' + shownSrc + ')(s)'); return { title: vis('.c3top h1'), dot: !!document.querySelector('[data-c3pg="fresh-dot"]') }; }, shown.toString());
140
- ok('P1 at 400 wide the page keeps today\'s layout: the title shows and no dot is drawn', ph.title && !ph.dot, JSON.stringify(ph));
151
+ const ph = await page.evaluate((shownSrc) => { const vis = new Function('s', 'return (' + shownSrc + ')(s)'); return { title: vis('.c3top h1'), dot: !!document.querySelector('[data-c3pg="fresh-dot"]'), bar: !!document.querySelector('.qt-bar') }; }, shown.toString());
152
+ ok('P1 at 400 wide the page keeps today\'s layout: the title shows, no dot and no pinned bar is drawn', ph.title && !ph.dot && !ph.bar, JSON.stringify(ph));
141
153
  await page.context().close();
142
154
 
143
155
  ok('E1 no script error', errors.length === 0, errors.join(' | '));
@@ -154,4 +154,6 @@ An item has its actions in one place only. On the Briefing, Today and Portfolio
154
154
 
155
155
  At 400 pixels wide the Briefing is one column (greeting, The brief, cards, Needs you, Mentions, Today, Portfolio pulse) with no sideways scroll. Each button in an opened row is 44 pixels high.
156
156
 
157
+ On a screen wider than 600 pixels, the top bar stays at the top of the window when you scroll a page. The top bar holds the five tabs, the date and the tool buttons. Cards that also stay in place as you scroll, such as the right column, stop under the top bar.
158
+
157
159
  On a phone, every console page has the same top. The page title has Record at its right. The sunrise line is under it, then the tool buttons in one row. The five tabs share the width, and each tab shows an icon over its name, so Initiatives and Reports are always on screen. A count shows at the top right of its tab's icon. A person in a row shows as a small round letter, and you can tap anywhere in the 44-pixel square around it. A line that has a sentence and a due date wraps like normal text.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.304.0",
3
+ "version": "0.305.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.304.0",
9
+ "version": "0.305.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.304.0",
3
+ "version": "0.305.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",
@@ -2,7 +2,9 @@
2
2
  * At most two rows sit above a page's content: row one is the page tabs with the date, the freshness dot and the tools on the
3
3
  * right; row two is the page's own context (breadcrumb, status, sub-tabs, actions). Teaching sentences, empty cards and extra
4
4
  * chips are not drawn; decks show on Briefing only. Everything is scoped under .c3 and uses tokens only. */
5
- /* Phone widths keep today's layout: the phone gets its own companion design (Wawan, 2026-10-12), so every rule here is for 601px and up. */
5
+ /* Phone widths keep today's layout: the phone gets its own companion design (Wawan, 2026-10-12), so every rule below is for 601px and up. */
6
+ /* Below 601px the bar wrapper draws nothing, so the phone layout is the same as before. */
7
+ .c3 .qt-bar{display:contents}
6
8
  @media (min-width:601px){
7
9
  /* 1. Header: one row. Title and date left, a short tool set right. */
8
10
  .c3 .c3top{display:flex !important;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:nowrap}
@@ -102,4 +104,10 @@
102
104
  .c3 [data-ini-view="board"] > .calbody{padding-top:4px}
103
105
  .c3.qt-stack .c3top{position:static;justify-content:flex-end !important;min-height:0}
104
106
  .c3.qt-stack nav.c3tabs{padding-right:0}
107
+ /* The top bar (page tabs, date and tools) stays at the top of the window while the page scrolls.
108
+ * Cards that already stay put as the page scrolls (a right column, the Settings sections, a Work item's detail) stop under it. */
109
+ .c3 .qt-bar{display:block;position:sticky;top:0;z-index:10;background:var(--background)}
110
+ .c3.qt-stack .qt-bar{display:grid;gap:14px}
111
+ .c3 .bcol.r,.c3 .c3set .st-nav{top:calc(var(--in-qt-bar, 0px) + 12px)}
112
+ .c3 .td-day__detail{top:calc(var(--in-qt-bar, 0px) + 8px);max-height:calc(100vh - var(--in-qt-bar, 0px) - 16px)}
105
113
  }
@@ -2,6 +2,7 @@
2
2
  * version 2, linked from the initiative record).
3
3
  *
4
4
  * mountQuiet(root) links c3-quiet.css once and keeps the page in its quiet layout as the views draw:
5
+ * - the page tabs and the tools stay at the top of the window while the page scrolls;
5
6
  * - the freshness line folds into one dot next to the date ("4 sources not read"); pressing the dot shows the full line;
6
7
  * - a board: its status joins the breadcrumb, the board tabs join that row, Backlog, Releases, Docs and Sprints go
7
8
  * behind More (a menu; the open one shows beside the five, c3-board-declutter), Dashboard and the all-zero Work items card are not shown;
@@ -51,8 +52,16 @@ function header(root) {
51
52
  dot.classList.toggle('ok', !bad);
52
53
  if (dot.title !== words) { dot.title = words; dot.setAttribute('aria-label', words + '. Show when each source was read'); }
53
54
  }
54
- // The tools sit on the tab row when both fit; when they do not (a narrow window, the demo banner), they take their own row.
55
+ // The page tabs and the tools share one bar that stays at the top of the window while the page scrolls.
56
+ // Its height is kept on the root, so cards that also stay put as the page scrolls stop under it.
55
57
  const nav = root.querySelector('nav.c3tabs');
58
+ if (nav && !root.querySelector('.qt-bar') && nav.parentElement === top.parentElement) {
59
+ const bar = mk('div', 'qt-bar'); bar.setAttribute('data-c3pg', 'top-bar');
60
+ top.before(bar); bar.append(top, nav);
61
+ const keep = () => root.style.setProperty('--in-qt-bar', bar.offsetHeight + 'px');
62
+ keep(); new ResizeObserver(keep).observe(bar);
63
+ }
64
+ // The tools sit on the tab row when both fit; when they do not (a narrow window, the demo banner), they take their own row.
56
65
  const w = Math.ceil(top.getBoundingClientRect().width);
57
66
  if (nav && w) {
58
67
  const tabs = [...nav.querySelectorAll('[role="tab"]')];
@@ -109,6 +118,15 @@ function portfolio(v) {
109
118
  /* Phone widths keep today's layout (the phone gets its own companion design), so nothing moves below 601px. */
110
119
  const wide = () => typeof matchMedia !== 'function' || matchMedia('(min-width: 601px)').matches;
111
120
 
121
+ /* Work: the lenses beside Add work. A redraw draws the lenses again in their own bar, so the old copy beside Add work goes first:
122
+ * this runs straight from the observer as well, so the page never holds two lens rows at once. */
123
+ function work(root) {
124
+ for (const w of root.querySelectorAll('.wk')) {
125
+ const add = w.querySelector(':scope > .c3add'), bar = w.querySelector(':scope > .calbar'), l = bar && bar.querySelector('[data-pm-lenses]');
126
+ if (add && l && l.parentElement === bar) { for (const o of add.querySelectorAll('[data-pm-lenses]')) o.remove(); add.appendChild(l); bar.classList.add('qt-moved'); }
127
+ }
128
+ }
129
+
112
130
  function apply(root) {
113
131
  if (!wide()) return;
114
132
  header(root);
@@ -138,11 +156,7 @@ function apply(root) {
138
156
  }
139
157
  // Calendar: the Detail card shows once a meeting or a marker is picked (not its "Select a meeting" note).
140
158
  for (const d of root.querySelectorAll('[data-cal3="detail"]')) d.classList.toggle('qt-hide', /^Select a meeting to see/.test((d.querySelector('.cal3-note') || {}).textContent || '') && !d.querySelector('button, a'));
141
- // Work: the lenses beside Add work.
142
- for (const w of root.querySelectorAll('.wk')) {
143
- const add = w.querySelector(':scope > .c3add'), bar = w.querySelector(':scope > .calbar'), l = bar && bar.querySelector('[data-pm-lenses]');
144
- if (add && l && l.parentElement === bar) { for (const o of add.querySelectorAll('[data-pm-lenses]')) o.remove(); add.appendChild(l); bar.classList.add('qt-moved'); }
145
- }
159
+ work(root);
146
160
  // Reports: Send this as a report and Edit dashboard on the tab row.
147
161
  for (const r of root.querySelectorAll('[data-rp3]')) {
148
162
  const scope = r.querySelector(':scope > .calbar .rp3-scope'), acts = r.querySelector('.rp3-head > .chips2');
@@ -158,6 +172,6 @@ export function mountQuiet(root) {
158
172
  let t = null;
159
173
  const run = () => { t = null; try { apply(root); } catch { /* a view mid-draw; the next mutation runs it again */ } };
160
174
  run();
161
- new MutationObserver(() => { if (!t) t = setTimeout(run, 50); }).observe(root, { subtree: true, childList: true });
175
+ new MutationObserver(() => { if (wide()) { try { work(root); } catch { /* the next run moves it */ } } if (!t) t = setTimeout(run, 50); }).observe(root, { subtree: true, childList: true });
162
176
  if (typeof matchMedia === 'function') matchMedia('(min-width: 601px)').addEventListener('change', () => { if (!t) t = setTimeout(run, 50); });
163
177
  }