create-pmos 0.747.0 → 0.748.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.747.0",
3
+ "version": "0.748.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.748.0",
38
+ "at": "2026-11-23T14:27:01.777Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1677,
43
+ "t": "The work popup's date press opens the range picker; keep its focus",
44
+ "s": "The work popup's date press opens the range picker; keep its focus",
45
+ "k": "x"
46
+ }
47
+ ]
48
+ },
36
49
  {
37
50
  "v": "0.747.0",
38
51
  "at": "2026-11-23T13:39:39.287Z",
@@ -611,19 +624,6 @@
611
624
  }
612
625
  }
613
626
  ]
614
- },
615
- {
616
- "v": "0.724.0",
617
- "at": "2026-11-23T02:49:31.191Z",
618
- "f": 4,
619
- "prs": [
620
- {
621
- "n": 1601,
622
- "t": "Jira reads work through the official Atlassian MCP connector",
623
- "s": "Jira reads work through the official Atlassian MCP connector",
624
- "k": "fix"
625
- }
626
- ]
627
627
  }
628
628
  ]
629
629
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@05278b1b
1
+ kernel-source: pmos@d53c1304
2
2
  assembled: 2026-11-23
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-23T13:39:35Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-23T14:26:58Z"}
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-23T13:39:35Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-23T14:26:58Z"}
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-23T13:39:35Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-23T14:26:58Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,17 @@
1
1
  [
2
+ {
3
+ "v": "0.748.0",
4
+ "at": "2026-11-23T14:27:01.777Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1677,
9
+ "t": "The work popup's date press opens the range picker; keep its focus",
10
+ "s": "The work popup's date press opens the range picker; keep its focus",
11
+ "k": "x"
12
+ }
13
+ ]
14
+ },
2
15
  {
3
16
  "v": "0.747.0",
4
17
  "at": "2026-11-23T13:39:39.287Z",
@@ -122,7 +122,7 @@ Press an initiative's name in the list, or open `?ini=<id>`. The list stays as i
122
122
  - **Tasks** show one row (one group) for each stage of the workflow, in order. Finished stages and later stages are never merged into one row; they start folded, and the current stage and any stage with a late task start open.
123
123
  - **Change a task where it is.** In the List, press a task's name. The row opens in place: change the name (Enter saves), the status, and the dates. Only one row is open at a time. Esc closes it. The ⋯ after the dates has **Milestone** (or **Make it a plain task**), **Move to a stage**, **Open the task card** and **Delete task**. A milestone has one date: its due day. Each change shows **Undo**.
124
124
  - In the List, a task's full name always shows: a long name wraps onto more lines. A short prefix such as "Bus shelter:" stays in the name, in grey. The dates show at the right. In a narrow panel or on a phone, the dates show under the name. On a computer, the Timeline's name column wraps a long name too, and its row grows; on a phone, each title stays on one line above its bar. On the Timeline, the blue Today line is your own day, from the clock of your device. Each bar starts on its start day and ends on its due day: a task that starts today starts at the Today line, and a bar, its grid line and its date at the top always meet on the same day. A task with no dates shows no date; open the row to set them.
125
- - **Set the dates on one calendar.** Every date press of a task opens the same calendar: in the List, the Timeline, the task card and the work popup. Press the first day for the start and a second day for the due day, as you pick depart and return for a flight. The days between show as one band. A day before the start becomes the new start. Press **Start** or **Due** first to change only that end, or type a day such as "15 Oct" in it and press Enter. A milestone has one **Date**: one press sets it. **No date** clears the dates. Each press saves and shows **Undo**. The arrow keys move a day or a week, and Page Up and Page Down move a month. On a phone the calendar opens from the bottom of the screen.
125
+ - **Set the dates on one calendar.** Every date press of a task opens the same calendar: in the List, the Timeline, the task card and the work popup. Press the first day for the start and a second day for the due day, as you pick depart and return for a flight. The days between show as one band. A day before the start becomes the new start. Press **Start** or **Due** first to change only that end, or type a day such as "15 Oct" in it and press Enter. A milestone has one **Date**: one press sets it. **No date** clears the dates. Each press saves and shows **Undo**. The calendar opens with the focus on a day. The arrow keys move a day or a week, Home and End go to the start and end of the week, and Page Up and Page Down move a month. On a phone the calendar opens from the bottom of the screen.
126
126
  - **Add a task to a stage.** Press **+** on an open stage. The field opens at the top of that stage, with one row of chips under it. **Stage** is the stage you pressed + on; press it to pick another stage of the workflow. **Task** can change to **Milestone**: the box becomes ◇ and **Date** takes one day. **Dates** and **Owner** are optional; with no owner, the task is yours. Enter adds the task and keeps the field open for the next one. Esc closes the field.
127
127
  - **Move a task between stages.** On a computer, drag the grip at the left of a row. On a phone, press and hold the task's name, then drag. Drop it on a stage name to put it last in that stage, or between two rows to put it there. The status and the dates do not change. The message shows **Undo**.
128
128
  - A linked Jira ticket opens in place too. Its name and status stay Jira's ("In Progress in Jira · read 4 min ago"). Its dates can change, and it can be a milestone. It has no **Delete**.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.747.0",
3
+ "version": "0.748.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.747.0",
9
+ "version": "0.748.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.747.0",
3
+ "version": "0.748.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",
@@ -944,7 +944,8 @@ function dateMenu(btn, uid, c, h) {
944
944
  const el = openPop(btn, 'pw-date', seg + `<div class="pw-rp">${rangeHtml(R)}</div>` + jiraNote(row), (b) => {
945
945
  if (b.dataset.ty) { const on = b.dataset.ty === 'ms'; closePop(); if (on !== !!row.ms) setKind(row, on, h); }
946
946
  }, { label: 'Set the date', focus: '.rp-g [tabindex="0"]' });
947
- mountRange(el.querySelector('.pw-rp'), { ...R, onPick: (patch, done) => { if (done) closePop(); if (h.dates) h.dates(uid, patch); } });
947
+ // mountRange draws the markup again, so the day openPop focused is gone: give the focus to the new one
948
+ mountRange(el.querySelector('.pw-rp'), { ...R, onPick: (patch, done) => { if (done) closePop(); if (h.dates) h.dates(uid, patch); } }).focus();
948
949
  }
949
950
  function rowMenu(btn, uid, c, h, body) {
950
951
  const row = c.W.rows.find((x) => x.uid === uid) || {};
@@ -11,7 +11,9 @@
11
11
  * S9 a Jira row: title and status read-only, "<Status> in Jira · read N min ago", dates editable, no Delete
12
12
  * S10 drag on a desktop: to another stage (section + order), inside a stage (order only, kept on the next read)
13
13
  * S11 a long press on a phone's title lifts the row · S12 a milestone on the Timeline is its ◇ only; Kanban says "◇ Nov 14"
14
- * S13 light and dark, phone and desktop: no page error. PMOS_SHOTS=<dir> writes the screens. */
14
+ * S13 light and dark, phone and desktop: no page error
15
+ * S14 the work popup on a desk: a row's date press opens the one calendar with the focus on a day; two taps save Start and Due.
16
+ * PMOS_SHOTS=<dir> writes the screens. */
15
17
  const path = require('path');
16
18
  const { besidePage } = require('./lib/beside-page'); // these checks read the full page beside the page; in the popup work shows its three parts (nav slice 3)
17
19
  const { classicBoard } = require('./lib/classic-board'); // these checks are about the four Board views, not Work (work-one-view)
@@ -63,10 +65,11 @@ const TICKETS = [{ key: 'IDPF-3387', title: 'Refactor the AppAuthService', statu
63
65
  browser = besidePage(classicBoard(await chromium.launch({ executablePath: exe })));
64
66
 
65
67
  // where: 'home' (premium.html's Viewer) or 'board' (the Board's panel)
66
- const open = async ({ where = 'home', w = 390, h = 844, theme = 'light', view = 'list' } = {}) => {
68
+ const open = async ({ where = 'home', w = 390, h = 844, theme = 'light', view = 'list', pop = false } = {}) => {
67
69
  const touch = w < 700, id = where === 'home' ? 'self-serve-v2' : 'usage-billing';
68
70
  const ctx = await browser.newContext({ viewport: { width: w, height: h }, hasTouch: touch, isMobile: touch, colorScheme: theme });
69
71
  await ctx.addInitScript(() => { try { if (localStorage.getItem('cz-pn:board') == null) localStorage.setItem('cz-pn:board', JSON.stringify({ v: 2, share: 0.405 })); } catch { /* none */ } }); // the Board's Viewer at 560 px beside the page (cozy-panels.js keeps only this share), so its Tasks Timeline is wide enough to drag
72
+ if (pop) await ctx.addInitScript(() => { try { localStorage.setItem('cz-pop-open', 'popup'); } catch { /* none */ } }); // S14: work in the popup, as a PM sees it
70
73
  await ctx.addInitScript((v) => { localStorage.setItem('pmos.tasks.view', v); localStorage.setItem('pmos.tasks.zoom', 'month'); }, view);
71
74
  const page = await ctx.newPage(), errors = [], posts = [];
72
75
  await page.clock.install({ time: DAY }); // the fixture's day: the date picker's month and its Today chips stay on it after the real day passes
@@ -110,6 +113,7 @@ const TICKETS = [{ key: 'IDPF-3387', title: 'Refactor the AppAuthService', statu
110
113
  await until(() => page.evaluate(() => document.querySelectorAll('#ibBody .ini2, #ibBody .bt-l').length > 0), 20000);
111
114
  await page.evaluate(() => { const b = [...document.querySelectorAll('[data-row="board:usage-billing"] .bt-nm, [data-key="board:usage-billing"]')].find((x) => x.offsetParent); if (b) b.click(); });
112
115
  }
116
+ if (pop) return { ctx, page, errors, posts, S };
113
117
  // a phone shows the initiative as the popup's phone page (phone design, Ph2_init); the old page with its Tasks is ⋯ › Every part
114
118
  if (touch && where === 'home') { await everyPart(page); await sleep(800); }
115
119
  await until(() => page.evaluate((v) => !!document.querySelector(v === 'list' ? '#czViewer .iv-wbs' : '#czViewer :is(.ivt, .iva, .ivk)'), view), 20000);
@@ -409,5 +413,23 @@ const TICKETS = [{ key: 'IDPF-3387', title: 'Refactor the AppAuthService', statu
409
413
  ok(`S13 ${where} ${w} dark: no page error`, D.errors.length === 0, D.errors.join(' | '));
410
414
  await D.ctx.close();
411
415
  }
416
+
417
+ /* S14 the work popup (cozy-pop-work.js dateMenu): a row's date press opens the one range picker, and two taps set Start and Due */
418
+ {
419
+ const P = await open({ where: 'board', w: 1440, h: 900, pop: true }), q = P.page;
420
+ await until(() => q.evaluate(() => !!document.querySelector('.cz-pop:not([hidden]) [data-pw-date="task-b4"]')), 20000);
421
+ await q.evaluate(() => document.querySelector('.cz-pop:not([hidden]) [data-pw-date="task-b4"]').click());
422
+ const o14 = await until(() => q.evaluate(() => { const r = document.querySelector('.pw-rp .rp'); return r ? { ends: [...r.querySelectorAll('[data-rp-end]')].map((e) => e.dataset.rpEnd + (e.classList.contains('on') ? '*' : '')).join(), seg: !!document.querySelector('.pw-seg'), clear: !!r.querySelector('[data-rp-clear]'), focus: (document.activeElement || {}).dataset ? document.activeElement.dataset.rpDay || '' : '' } : null; }).then((x) => (x && x.focus ? x : null)), 3000) || await q.evaluate(() => ({ ends: [...document.querySelectorAll('.pw-rp [data-rp-end]')].map((e) => e.dataset.rpEnd + (e.classList.contains('on') ? '*' : '')).join(), focus: (document.activeElement || {}).outerHTML ? document.activeElement.outerHTML.slice(0, 120) : '' }));
423
+ ok('S14 the work popup: a row\'s date press opens the one calendar under Task or Milestone, Start on, the focus on a day, No date at the foot', o14 && o14.ends === 'start*,due' && o14.seg && o14.clear && /^2026-10-\d\d$/.test(o14.focus), JSON.stringify(o14));
424
+ await q.click('.pw-rp .rp-g [data-rp-day="2026-10-20"]');
425
+ const s14 = await until(() => { const x = lastPost(P, '/api/boards/tasks/edit'); return x && x.body.task === 'task-b4' && x.body.start === '2026-10-20' ? x : null; });
426
+ const due14 = await until(() => q.evaluate(() => { const e = document.querySelector('.pw-rp [data-rp-end="due"]'); return !!e && e.classList.contains('on'); }));
427
+ ok('S14 the first tap saves the start and the due day is next, the calendar stays open', s14 && due14, JSON.stringify(P.posts.slice(-3)));
428
+ await q.click('.pw-rp .rp-g [data-rp-day="2026-10-24"]');
429
+ const d14 = await until(() => { const x = lastPost(P, '/api/boards/tasks/edit'); return x && x.body.task === 'task-b4' && x.body.due === '2026-10-24' ? x : null; });
430
+ ok('S14 the second tap saves the due day and closes the calendar', d14 && await until(() => q.evaluate(() => !document.querySelector('.pw-rp'))), JSON.stringify(P.posts.slice(-3)));
431
+ ok('S14 the work popup: no page error', P.errors.length === 0, P.errors.join(' | '));
432
+ await P.ctx.close();
433
+ }
412
434
  return finish();
413
435
  })();