create-pmos 0.732.0 → 0.734.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 (39) hide show
  1. package/package.json +38 -14
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/okf/core/concepts/frontmatter-format.md +2 -1
  4. package/payload/planning/evals/eval-calibration.md +1 -1
  5. package/payload/planning/okrs/health-budgets.md +1 -1
  6. package/payload/state/discoveries.md +1 -1
  7. package/workspace/board-columns-test.js +6 -5
  8. package/workspace/board-deliveries-test.js +8 -7
  9. package/workspace/board-programs-test.js +6 -12
  10. package/workspace/briefing-premium-board-test.js +3 -3
  11. package/workspace/calm-timeline-test.js +5 -10
  12. package/workspace/changelog.json +37 -0
  13. package/workspace/guide/agent-capabilities.md +1 -0
  14. package/workspace/guide/cli.md +10 -1
  15. package/workspace/guide/layout.md +5 -5
  16. package/workspace/lib/pmos-verbs.js +3 -0
  17. package/workspace/lib/press-release-cli.js +108 -0
  18. package/workspace/lib/press-release.js +186 -0
  19. package/workspace/milestone-pins-test.js +4 -7
  20. package/workspace/package-lock.json +2 -2
  21. package/workspace/package.json +1 -1
  22. package/workspace/product-lane-test.js +5 -11
  23. package/workspace/program-leave-test.js +1 -1
  24. package/workspace/public/pm/bd-deliveries.js +7 -0
  25. package/workspace/public/pm/bd-phone-line.js +29 -0
  26. package/workspace/public/pm/bd-views.js +6 -3
  27. package/workspace/public/pm/bd-work-ds.css +16 -0
  28. package/workspace/public/pm/cozy-goals.css +3 -10
  29. package/workspace/public/pm/cozy-pop-work.js +9 -1
  30. package/workspace/public/pm/goals-ds.js +1 -1
  31. package/workspace/public/pm/home-app.js +2 -0
  32. package/workspace/public/pm/premium-board.js +4 -3
  33. package/workspace/public/pm/premium-goals.js +14 -34
  34. package/workspace/public/premium-goals.html +0 -1
  35. package/workspace/task-delete-test.js +1 -1
  36. package/workspace/task-milestones-test.js +4 -8
  37. package/workspace/test-lists/phone-initiative-lines.json +6 -0
  38. package/workspace/test-lists/press-release.json +9 -0
  39. package/workspace/timeline-holds-test.js +5 -16
@@ -74,7 +74,7 @@ const everyPart = async (pg) => { await pg.waitForSelector('#czViewer .pw-ph', {
74
74
  await page.route('**/api/boards/tasks/restore', (r) => { const b = JSON.parse(r.request().postData() || '{}'); posts.push(['restore', b]); gone = new Set([...gone].filter((x) => x !== b.task)); r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, task: b.task }) }); });
75
75
  await page.addInitScript(([s]) => { try { if (!sessionStorage.getItem('set')) { sessionStorage.setItem('set', '1'); for (const [k, v] of Object.entries(s)) localStorage.setItem(k, v); } } catch { /* none */ } }, [{ 'pmos.board.view': 'time', 'pmos.board.pview': 'time', 'pmos.board.span': 'year', 'pmos.tasks.view': 'list' }]);
76
76
  await page.goto(BASE + '/premium-board.html?ws=w1&board=w1');
77
- await page.waitForSelector('#ibBody [data-row]', { timeout: 15000 });
77
+ await page.waitForSelector('#ibBody [data-row], #ibBody .bd-lrow[data-key]', { timeout: 15000 });
78
78
  await page.waitForTimeout(400);
79
79
  return { ctx, page, errors, posts };
80
80
  };
@@ -80,7 +80,7 @@ const ITEMS = [
80
80
  await page.route('**/api/boards/tasks/edit', (r) => { posts.push(JSON.parse(r.request().postData() || '{}')); r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true, from: { milestone: false } }) }); });
81
81
  await page.addInitScript(([s]) => { try { if (!sessionStorage.getItem('set')) { sessionStorage.setItem('set', '1'); for (const [k, v] of Object.entries(s)) localStorage.setItem(k, v); } } catch { /* none */ } }, [{ 'pmos.board.view': 'time', 'pmos.board.pview': 'time', 'pmos.board.span': o.span || 'year', 'pmos.tasks.view': o.tasksView || 'list', 'pmos.tasks.zoom': 'month', 'pmos.board.msMode': o.mode || 'all' }]);
82
82
  await page.goto(BASE + '/premium-board.html?ws=w1&board=w1');
83
- await page.waitForSelector('#ibBody [data-row]', { timeout: 15000 });
83
+ await page.waitForSelector('#ibBody [data-row], #ibBody .bd-lrow[data-key]', { timeout: 15000 });
84
84
  await page.waitForTimeout(500);
85
85
  return { ctx, page, errors, posts };
86
86
  };
@@ -176,15 +176,11 @@ const ITEMS = [
176
176
  await ctx.close();
177
177
  }
178
178
 
179
- /* P — the phone */
179
+ /* P — the phone has no Gantt (board PhIniB, initiative phone-initiative-lines): a stored Timeline opens the List, each row with its own line */
180
180
  {
181
181
  const { ctx, page: p, errors } = await open({ w: 390, h: 844, phone: true });
182
- const sc = await rowOf(p, 'board:scarlet');
183
- ok('P the phone draws the ◇s with no dates', sc && sc.tm.length === 2 && !sc.tml.length, JSON.stringify(sc));
184
- await p.click('#ibBody .tgq-r[data-row="board:scarlet"] > .tg-p', { position: { x: 300, y: 10 } });
185
- const sh = await p.evaluate(() => { const m = document.querySelector('.tg-msp.sh'); return m ? { h: (m.querySelector('.h') || {}).textContent, rows: [...m.querySelectorAll('[data-ms-open]')].map((b) => b.textContent) } : null; });
186
- ok('P a tap on the row opens a sheet with its milestones, the end one too', sh && sh.h === 'Scarlet — ST What’s The News' && sh.rows.join('|') === 'Pilot with 2 newsroomsDec 11|Feature deliveredJan 29|KPI evaluatedMar 31', JSON.stringify(sh));
187
- await shot(p, 'milestones-phone-390');
182
+ const ph = await p.evaluate(() => ({ tg: document.querySelectorAll('#ibBody .tg, #ibBody .tgq-r').length, rows: document.querySelectorAll('#ibBody .bd-lrow.ini2').length, scroll: document.documentElement.scrollWidth <= innerWidth + 1 }));
183
+ ok('P the phone draws no timeline: the List, with no sideways page scroll', ph.tg === 0 && ph.rows >= 1 && ph.scroll, JSON.stringify(ph));
188
184
  ok('the phone threw nothing', !errors.length, errors.join('\n'));
189
185
  await ctx.close();
190
186
  }
@@ -0,0 +1,6 @@
1
+ {
2
+ "_comment": "Initiative phone-initiative-lines (board PhIniB): the phone's initiatives without the Gantt, each row with its own small line (pm/bd-phone-line.js). Pure checks.",
3
+ "modules": [
4
+ "phone-initiative-lines.test.js"
5
+ ]
6
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "initiative press-release-faq (bet A362): pmos press-release, a one-page press release and FAQ drafted from a bet's record (pure, node, scratch folders, model stand-in).",
3
+ "modules": [
4
+ "test/press-release.test.js"
5
+ ],
6
+ "seconds": {
7
+ "test/press-release.test.js": 1
8
+ }
9
+ }
@@ -73,7 +73,7 @@ const ROWS = [
73
73
  await page.route('**/api/lifecycle', (r) => { posts.push(JSON.parse(r.request().postData() || '{}')); r.fulfill({ contentType: 'application/json', body: JSON.stringify({ ok: true }) }); });
74
74
  await page.addInitScript(([s]) => { try { if (!sessionStorage.getItem('set')) { sessionStorage.setItem('set', '1'); for (const [k, v] of Object.entries(s)) localStorage.setItem(k, v); } } catch { /* none */ } }, [{ 'pmos.board.tlcols': '[]', 'pmos.board.view': 'time', 'pmos.board.pview': 'time', 'pmos.board.span': o.span || 'year' }]);
75
75
  await page.goto(BASE + '/premium-board.html?ws=w1&board=w1');
76
- await page.waitForSelector('#ibBody [data-row]', { timeout: 15000 });
76
+ await page.waitForSelector('#ibBody [data-row], #ibBody .bd-lrow[data-key]', { timeout: 15000 });
77
77
  await page.waitForTimeout(500);
78
78
  return { ctx, page, errors, posts };
79
79
  };
@@ -234,23 +234,12 @@ const ROWS = [
234
234
  await ctx.close();
235
235
  }
236
236
 
237
- /* M the phone: the hold's hairline and its press, no dates beside it */
237
+ /* M — the phone has no Gantt (board PhIniB, initiative phone-initiative-lines): a stored Timeline opens the List, each row with its own line */
238
238
  {
239
239
  const { ctx, page: p, errors } = await open({ w: 390, h: 844 });
240
- const m = await p.evaluate(() => ({ pz: document.querySelectorAll('#ibBody button.tg-ng.ho').length, hl: document.querySelectorAll('#ibBody .tg-hl, #ibBody .tg-pz').length, scroll: document.documentElement.scrollWidth <= innerWidth + 1 }));
241
- ok('M the phone keeps each hold\'s hairline as a press, no ⏸ and no date beside it, with no sideways page scroll', m.pz >= 4 && m.hl === 0 && m.scroll, JSON.stringify(m));
242
- await shot(p, 'timeline-holds-390');
243
- await p.click('#ibBody [data-row="board:email-otp"] .tg-ng.ho');
244
- const sh = await p.evaluate(() => { const h = document.querySelector('#bdPop'); return { sheet: h.classList.contains('sheet'), h4: (h.querySelector('h4') || {}).textContent }; });
245
- ok('M on a phone the hold\'s press opens the same menu as a sheet', sh.sheet && sh.h4 === 'On hold · 4½ months', JSON.stringify(sh));
246
- await shot(p, 'timeline-holds-menu-390');
247
- const ng = await p.evaluate(() => [...document.querySelectorAll('#ibBody .tg-ng:not(.ho)')].map((x) => x.tagName));
248
- ok('X the phone draws the hairline with no words and no press', ng.length >= 1 && ng.every((t) => t === 'SPAN'), JSON.stringify(ng));
249
- await p.keyboard.press('Escape'); await p.waitForTimeout(200);
250
- await p.click('#ibBody .tgq-r[data-row="board:recovery-codes"] > .tg-p', { position: { x: 200, y: 10 } });
251
- const sh2 = await p.evaluate(() => { const s = document.querySelector('.tg-msp.sh'); return s ? [...s.querySelectorAll('.o')].map((x) => x.textContent.trim()) : null; });
252
- ok('X tapping the row on a phone opens its sheet, which lists the gap', sh2 && sh2.some((t) => /^Nothing planned · 12 wk/.test(t)), JSON.stringify(sh2));
253
- ok('the phone timeline threw nothing', !errors.length, errors.join('\n'));
240
+ const ph = await p.evaluate(() => ({ tg: document.querySelectorAll('#ibBody .tg, #ibBody .tgq-r').length, rows: document.querySelectorAll('#ibBody .bd-lrow.ini2').length, scroll: document.documentElement.scrollWidth <= innerWidth + 1 }));
241
+ ok('M the phone draws no timeline: the List, with no sideways page scroll', ph.tg === 0 && ph.rows >= 1 && ph.scroll, JSON.stringify(ph));
242
+ ok('the phone threw nothing', !errors.length, errors.join('\n'));
254
243
  await ctx.close();
255
244
  }
256
245
  if (shots) {