create-pmos 0.712.0 → 0.713.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 (112) hide show
  1. package/package.json +80 -38
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/design-system/ui/README.md +1 -1
  4. package/payload/design-system/ui/components/State/README.md +21 -0
  5. package/payload/design-system/ui/components/State/preview.html +8 -0
  6. package/payload/design-system/ui/components/bundle.css +12 -0
  7. package/payload/design-system/ui/interactions.md +2 -0
  8. package/payload/planning/evals/eval-calibration.md +1 -1
  9. package/payload/planning/okrs/health-budgets.md +1 -1
  10. package/payload/state/discoveries.md +1 -1
  11. package/workspace/bin/back-place-health.js +70 -0
  12. package/workspace/changelog.json +79 -0
  13. package/workspace/design-system/ui/README.md +1 -1
  14. package/workspace/design-system/ui/components/State/README.md +21 -0
  15. package/workspace/design-system/ui/components/State/preview.html +8 -0
  16. package/workspace/design-system/ui/components/bundle.css +12 -0
  17. package/workspace/design-system/ui/interactions.md +2 -0
  18. package/workspace/guide/breakdown.md +20 -1
  19. package/workspace/guide/claude-proposes.md +5 -1
  20. package/workspace/guide/cli.md +10 -1
  21. package/workspace/guide/home.md +1 -0
  22. package/workspace/guide/initiatives-and-next-steps.md +13 -0
  23. package/workspace/guide/layout.md +8 -1
  24. package/workspace/guide/routine.md +10 -2
  25. package/workspace/guide/settings-and-switches.md +4 -0
  26. package/workspace/lib/briefing-premium-products.js +16 -2
  27. package/workspace/lib/changed-mark.js +34 -0
  28. package/workspace/lib/launch-cli.js +43 -5
  29. package/workspace/lib/launch-tiers.js +143 -0
  30. package/workspace/lib/needs-providers.js +1 -0
  31. package/workspace/lib/parked-cli.js +105 -0
  32. package/workspace/lib/parked-reasons.js +245 -0
  33. package/workspace/lib/pmos-verbs.js +4 -1
  34. package/workspace/lib/prefs-sync.js +138 -0
  35. package/workspace/lib/product-dots.js +60 -0
  36. package/workspace/lib/route-modules.js +2 -0
  37. package/workspace/lib/routes-briefing-premium.js +11 -1
  38. package/workspace/lib/routes-prefs.js +56 -0
  39. package/workspace/lib/routes-strategy-card.js +53 -0
  40. package/workspace/lib/routes-use-log.js +24 -3
  41. package/workspace/lib/routine-sentence.js +250 -0
  42. package/workspace/lib/strategy-card.js +133 -0
  43. package/workspace/lib/unused-controls.js +178 -0
  44. package/workspace/package-lock.json +2 -2
  45. package/workspace/package.json +1 -1
  46. package/workspace/public/pm/back-place.js +87 -0
  47. package/workspace/public/pm/bd-pop-ds.css +10 -0
  48. package/workspace/public/pm/bd-pop-ds.js +27 -3
  49. package/workspace/public/pm/bd-strategy.js +85 -0
  50. package/workspace/public/pm/bd-views.js +2 -1
  51. package/workspace/public/pm/changed-mark.css +7 -0
  52. package/workspace/public/pm/changed-mark.js +117 -0
  53. package/workspace/public/pm/cozy-pick.css +12 -0
  54. package/workspace/public/pm/cozy-pop-work.css +10 -1
  55. package/workspace/public/pm/cozy-pop-work.js +201 -17
  56. package/workspace/public/pm/cozy-routine-job.js +50 -7
  57. package/workspace/public/pm/cozy-routine.css +2 -0
  58. package/workspace/public/pm/cozy-settings.js +21 -3
  59. package/workspace/public/pm/cozy-today-page.css +1 -0
  60. package/workspace/public/pm/cozy-viewer.css +1 -1
  61. package/workspace/public/pm/cozy-viewer.js +14 -2
  62. package/workspace/public/pm/cozy-vw-mtg.css +0 -2
  63. package/workspace/public/pm/cozy-vw.css +0 -1
  64. package/workspace/public/pm/home-app.js +21 -1
  65. package/workspace/public/pm/home-today.js +2 -0
  66. package/workspace/public/pm/ini-tasks.js +4 -1
  67. package/workspace/public/pm/komorebi.css +11 -0
  68. package/workspace/public/pm/prefs-sync.js +111 -0
  69. package/workspace/public/pm/premium-board.js +20 -2
  70. package/workspace/public/pm/premium-chart-tab.js +2 -1
  71. package/workspace/public/pm/premium-mtg-replay.js +4 -3
  72. package/workspace/public/pm/premium-report-read.js +5 -4
  73. package/workspace/public/pm/premium-report-tab.js +4 -3
  74. package/workspace/public/pm/premium-vw-backlog.css +2 -1
  75. package/workspace/public/pm/premium-vw-backlog.js +4 -3
  76. package/workspace/public/pm/premium-vw-cal.css +1 -2
  77. package/workspace/public/pm/premium-vw-cal.js +14 -13
  78. package/workspace/public/pm/premium-vw-copies.js +3 -2
  79. package/workspace/public/pm/premium-vw-copy.css +0 -3
  80. package/workspace/public/pm/premium-vw-mtg.js +12 -11
  81. package/workspace/public/pm/product-switcher.js +41 -0
  82. package/workspace/public/pm/report-orders-ui.js +2 -1
  83. package/workspace/public/pm/rp-parts.js +3 -2
  84. package/workspace/public/pm/state-blocks.js +36 -0
  85. package/workspace/public/pm/use-log.js +118 -1
  86. package/workspace/public/pm/work-select.js +92 -2
  87. package/workspace/public/pm/work-tree.js +70 -0
  88. package/workspace/public/premium-aud.html +1 -0
  89. package/workspace/public/premium-board.html +5 -0
  90. package/workspace/public/premium-buddy.html +1 -0
  91. package/workspace/public/premium-events.html +1 -0
  92. package/workspace/public/premium-goals.html +1 -0
  93. package/workspace/public/premium-intelligence.html +1 -0
  94. package/workspace/public/premium-library.html +1 -0
  95. package/workspace/public/premium-present.html +1 -0
  96. package/workspace/public/premium-rec.html +1 -0
  97. package/workspace/public/premium-routine.html +1 -0
  98. package/workspace/public/premium-viewer.html +1 -0
  99. package/workspace/public/premium-workflows.html +1 -0
  100. package/workspace/public/today.html +1 -0
  101. package/workspace/server.js +20 -0
  102. package/workspace/test-lists/back-place.json +9 -0
  103. package/workspace/test-lists/changed-mark.json +9 -0
  104. package/workspace/test-lists/launch-tiers.json +9 -0
  105. package/workspace/test-lists/parked-reasons.json +9 -0
  106. package/workspace/test-lists/prefs-follow-person.json +9 -0
  107. package/workspace/test-lists/product-switcher-dots.json +9 -0
  108. package/workspace/test-lists/routine-sentence.json +9 -0
  109. package/workspace/test-lists/shared-empty-states.json +9 -0
  110. package/workspace/test-lists/strategy-card.json +9 -0
  111. package/workspace/test-lists/unused-controls.json +9 -0
  112. package/workspace/test-lists/work-subtasks-followups.json +9 -0
@@ -3,6 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <meta name="pmos-nonce" content="" />
6
+ <script src="/api/view-prefs/boot.js"></script>
6
7
  <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
7
8
  <title>PMOS · Events</title>
8
9
  <!-- Events (initiative events-place; rebuilt from the design system's blocks by events-ds-page, board EventsDS on Exploring 3): everything
@@ -3,6 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <meta name="pmos-nonce" content="" />
6
+ <script src="/api/view-prefs/boot.js"></script>
6
7
  <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
7
8
  <title>PMOS · Goals</title>
8
9
  <!-- Goals, rebuilt from design system blocks (initiative goals-ds-page; board GoalsDS on Exploring 3, page "pages"): the path with the product
@@ -3,6 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <meta name="pmos-nonce" content="" />
6
+ <script src="/api/view-prefs/boot.js"></script>
6
7
  <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
7
8
  <title>PMOS · Intelligence</title>
8
9
  <!-- Intelligence (batch 15 item 1; it was Insights, and /premium-insights.html still serves it): ONE column of Komorebi blocks, drawn to the board
@@ -3,6 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <meta name="pmos-nonce" content="" />
6
+ <script src="/api/view-prefs/boot.js"></script>
6
7
  <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
7
8
  <title>PMOS · Library</title>
8
9
  <!-- Library (initiative library-place; slice 7 of the six-place navigation; rebuilt from Komorebi blocks in library-ds-page). Everything
@@ -3,6 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <meta name="pmos-nonce" content="" />
6
+ <script src="/api/view-prefs/boot.js"></script>
6
7
  <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
7
8
  <title>Present · PMOS</title>
8
9
  <!-- Present mode (live round W3, initiative live-round-present): GET /pm/present?ws&board&id. A prototype round's frames on a shared
@@ -3,6 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <meta name="pmos-nonce" content="" />
6
+ <script src="/api/view-prefs/boot.js"></script>
6
7
  <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
7
8
  <title>PMOS · Recording</title>
8
9
  <!-- The recording tab (batch 12 item 1): ?note=<id>[&ws=][&go=1]. It holds the recorder and never navigates away, so its links open
@@ -3,6 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <meta name="pmos-nonce" content="" />
6
+ <script src="/api/view-prefs/boot.js"></script>
6
7
  <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
7
8
  <title>PMOS · Routine</title>
8
9
  <!-- Routine (initiative routine-place, slice 8 of the six-place navigation; rebuilt from the design system's blocks by initiative
@@ -3,6 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <meta name="pmos-nonce" content="" />
6
+ <script src="/api/view-prefs/boot.js"></script>
6
7
  <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
7
8
  <title>PMOS · Viewer</title>
8
9
  <!-- The Viewer on its own page (initiative premium-agreed-design, area viewer). It is the address "Open in a new tab" gives an item:
@@ -3,6 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <meta name="pmos-nonce" content="" />
6
+ <script src="/api/view-prefs/boot.js"></script>
6
7
  <meta name="viewport" content="width=device-width, initial-scale=1" />
7
8
  <title>PMOS · Workflows</title>
8
9
  <!-- UI grill U1: Workflows is a sub-panel of Settings (Workspaces › Workflows), not a page. This address opens Home with Settings on it;
@@ -3,6 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <meta name="pmos-nonce" content="" />
6
+ <script src="/api/view-prefs/boot.js"></script>
6
7
  <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
7
8
  <title>PMOS · Today</title>
8
9
  <!-- Today (slice 5 of the six-place navigation, initiative today-log-page; board 1 on Exploring 2): the place the app lands on. On a desk it is
@@ -8320,6 +8320,26 @@ async function handleRequest(req, res) {
8320
8320
  const list = readSchedules(); list.unshift(sched); writeSchedules(list);
8321
8321
  return json(res, { ok: true, schedule: sched });
8322
8322
  }
8323
+ if (p === '/api/routine-sentence' && req.method === 'POST') {
8324
+ // routine-from-sentence (bet A144): one typed sentence → a routine. Without `set` it only reads and writes nothing; `set: true` is the
8325
+ // PM's one press, and the routine runs report-special, which writes a draft and sends nothing (lib/routine-sentence.js).
8326
+ let body = {}; try { body = JSON.parse((await readBody(req)) || '{}'); } catch { return json(res, { ok: false, error: 'invalid JSON' }, 400); }
8327
+ const RS = require('./lib/routine-sentence.js');
8328
+ const got = RS.read(body.text);
8329
+ if (!got.ok) return json(res, { ok: false, ask: got.ask, error: got.ask }, body.set ? 400 : 200);
8330
+ const w = getWs(body.ws);
8331
+ const next = scheduleLogic.nextRun({ ...got.schedule, day: got.schedule.day || 'Mon', dayOfMonth: got.schedule.dayOfMonth || 1 });
8332
+ if (!body.set) return json(res, { ok: true, read: got, next });
8333
+ if (!taskById(RS.SKILL, w ? w.root : null)) return json(res, { ok: false, error: 'the draft skill is not installed' }, 400);
8334
+ const norm = scheduleLogic.normalizeSchedule({ ...got.schedule, skill: RS.SKILL, task: RS.SKILL });
8335
+ if (!norm.ok) return json(res, { ok: false, error: norm.error }, 400);
8336
+ const sched = { id: 'sc-' + Date.now().toString(36), ws: w ? w.id : wsId(SELF_ROOT), ...norm.schedule,
8337
+ profile: null, lastRun: null, lastStatus: null, made: 'sentence', madeAt: nowISO(), said: String(body.text).replace(/\s+/g, ' ').trim().slice(0, 600) };
8338
+ sched.nextRun = scheduleLogic.nextRun(sched);
8339
+ const list = readSchedules(); list.unshift(sched); writeSchedules(list);
8340
+ console.log(`${RS.TAG} set ${sched.id} ${sched.cadence} next ${sched.nextRun}`);
8341
+ return json(res, { ok: true, schedule: sched, read: got });
8342
+ }
8323
8343
  if (p === '/api/schedules/seed' && req.method === 'POST') {
8324
8344
  // D71 — one press creates the recommended schedules for a repository. Idempotent: a schedule for
8325
8345
  // the same skill in the same repository is never created twice. Never reached by anything but the
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Back restores your place (back-restores-place, done test B1-B7): the pure place module public/pm/back-place.js over a stand-in body, the Viewer's wiring in cozy-viewer.js, and the health replay bin/back-place-health.js. No browser.",
3
+ "modules": [
4
+ "back-place.test.js"
5
+ ],
6
+ "seconds": {
7
+ "back-place.test.js": 1
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Undo right on the item PMOS changed (bet A456, done test planning/done-tests/undo-on-changed-item.md C1-C6): the pure mark model and HTML, the Board wiring read from the files, the health CLI over a scratch use log. No connector, model or network.",
3
+ "modules": [
4
+ "changed-mark.test.js"
5
+ ],
6
+ "seconds": {
7
+ "changed-mark.test.js": 2
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Launch tiers (initiative launch-tiers, done test T1-T11): the tier from launch_tier or reach and risk, its launch steps, and pmos launch tier/check/list on a scratch product. No server, connector, model or network.",
3
+ "modules": [
4
+ "launch-tiers.test.js"
5
+ ],
6
+ "seconds": {
7
+ "launch-tiers.test.js": 15
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Parked work keeps a reason and a way back (initiative parked-reason-way-back, bet A446, done test P1-P9): the parked list, the way-back check, the hold and bring-back writers, the Today card's needs rows and the pmos parked verb. Temp repositories in both layouts. No server, network or browser.",
3
+ "modules": [
4
+ "parked-reasons.test.js"
5
+ ],
6
+ "seconds": {
7
+ "parked-reasons.test.js": 3
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "View preferences that follow the person (bet A461, done test planning/done-tests/prefs-follow-person.md C1-C9): the store in the runtime folder, the page script in a vm with a fake storage, the routes in process, and the page tags. No browser, connector, model or network.",
3
+ "modules": [
4
+ "prefs-sync.test.js"
5
+ ],
6
+ "seconds": {
7
+ "prefs-sync.test.js": 2
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "The product switcher row with a quiet dot (bet A381, done test planning/done-tests/product-switcher-dots.md C1-C7): each product's needs count, the products route with ?needs=1, the row's pure HTML and press rule, and the use-log count. No connector, model or network.",
3
+ "modules": [
4
+ "product-switcher-dots.test.js"
5
+ ],
6
+ "seconds": {
7
+ "product-switcher-dots.test.js": 3
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "A routine from one typed sentence (bet A144, done test planning/done-tests/routine-from-sentence.md C1-C6): the pure reader on a fixed clock, POST /api/schedules/sentence on a scratch server, the New routine popup html and the health count. No browser, connector, model or network.",
3
+ "modules": [
4
+ "routine-sentence.test.js"
5
+ ],
6
+ "seconds": {
7
+ "routine-sentence.test.js": 6
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "One shared empty, loading and error block (initiative shared-empty-states, done test S1-S6): the Komorebi State part, state-blocks.js, and the Viewer scripts that call it. Pure: reads files and calls the module.",
3
+ "modules": [
4
+ "state-blocks.test.js"
5
+ ],
6
+ "seconds": {
7
+ "state-blocks.test.js": 2
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "The five-line strategy above each product's Board and the gentle \"doesn't fit\" note (bet A458, done test planning/done-tests/strategy-five-lines.md C1-C7). Pure checks and the routes in process. No connector, model or network.",
3
+ "modules": [
4
+ "strategy-card.test.js"
5
+ ],
6
+ "seconds": {
7
+ "strategy-card.test.js": 2
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Hide the buttons nobody presses (idea A454, done test planning/done-tests/hide-unused-controls.md H1-H7): the rule, the store on this computer, the routes in process, the page side's pure helpers and the Settings list. No connector, model or network.",
3
+ "modules": [
4
+ "unused-controls.test.js"
5
+ ],
6
+ "seconds": {
7
+ "unused-controls.test.js": 3
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_comment": "Work breakdown follow-ups: drag to nest, hold to select, Gantt group shift, the grouping proposal, the Jira column, the Source filter and Set epic (initiative work-subtasks-followups, done test F1-F9). Pure checks; no browser, server, connector, model or network.",
3
+ "modules": [
4
+ "work-followups.test.js"
5
+ ],
6
+ "seconds": {
7
+ "work-followups.test.js": 2
8
+ }
9
+ }