create-pmos 0.291.0 → 0.292.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.291.0",
3
+ "version": "0.292.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@f217528
1
+ kernel-source: pmos@55dde98
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-19T03:45:27Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-19T04:07:27Z"}
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-19T03:45:27Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-19T04:07:27Z"}
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-19T03:45:27Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-19T04:07:27Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -189,6 +189,8 @@ My work is the second place on the rail, at `/premium-work.html`. It reads the l
189
189
 
190
190
  **Row suggestions and buttons.** A row shows a suggestion line only when a record backs it: an agent's offer on the item, a draft that is ready, or a date. A row also has one button: Today, Tomorrow, Review, or Give to agent. Give to agent opens the item, where you start the agent. A row from Jira shows its Jira key.
191
191
 
192
+ **Weekly review.** A card lists five steps: sort the inbox, place your tray, check who owes you, review agent drafts, and look at what sat untouched. Each step shows a count from your list and opens its first item. **Start the review** opens the first step that has something. On a Friday the card reads Friday review. PMOS keeps no review schedule and no timing, so the card shows none. The tray's shelf of agent answers, ideas and reports is not built, because PMOS holds no records for it.
193
+
192
194
  **The agent's draft.** In an item's dialog the draft shows as formatted text, with a list of the agent's turns under it. **View round** opens the text of that round.
193
195
 
194
196
  **An agent's offer.** When an agent has offered to draft an item, the dialog shows three choices: let the agent draft it (suggested), do it today, or not before next Monday. You pick one and press its button. A row with steps says how many it has and how many an agent can do. PMOS does not record that a step is done, so it shows no "done" count.
@@ -109,6 +109,21 @@ function weekOf({ today, items, events }) {
109
109
  note: (read ? 'Bars are meeting time from your calendar. ' : 'The calendar could not be read, so there are no bars. ') + 'Done and due counts come from your list. PMOS holds no estimate or working hours, so it does not say what will not fit.' };
110
110
  }
111
111
 
112
+ /** The weekly review: a count and a first item for each place the PM sorts things. Every figure is a count of the list. No step time is made: PMOS does not time a review. */
113
+ function fridayOf({ today, work, tray, ready, review }) {
114
+ const first = (a) => (a[0] ? 'work:' + (a[0].it ? a[0].it.id : a[0].id) : null);
115
+ const steps = [
116
+ { key: 'inbox', label: 'Sort the inbox', n: (work.inbox || []).length, first: first(work.inbox || []) },
117
+ { key: 'tray', label: 'Place your tray', n: tray.length, first: first(tray) },
118
+ { key: 'waiting', label: 'Check who owes you', n: (work.waiting || []).length, first: first(work.waiting || []) },
119
+ { key: 'drafts', label: 'Review agent drafts', n: ready.length, first: first(ready) },
120
+ { key: 'stale', label: 'Look at what sat untouched', n: review.length, first: first(review) },
121
+ ];
122
+ const fri = isoDay(today).getDay() === 5;
123
+ return { title: fri ? 'Friday review' : 'Weekly review', cap: steps.filter((x) => x.n).length + ' of ' + steps.length + ' have something', steps, start: (steps.find((x) => x.n) || {}).key || null,
124
+ note: 'One step for each place a thing waits for you. A step opens its first item. PMOS keeps no review schedule or timing, so none is shown.' };
125
+ }
126
+
112
127
  function rowOf(it, list, v, inReview, focusIds) {
113
128
  const today = v.today, { chip, overdue } = dueChip(it, today);
114
129
  const sub = [srcLabel(it) + (it.key && it.source !== 'local' ? ' ' + it.key : ''), it.priority, it.waiting_on ? 'waiting on ' + it.waiting_on : null, (it.steps || []).length ? (it.steps || []).length + ' ' + plural((it.steps || []).length, 'step', 'steps') + ((it.steps || []).some((x) => x.who === 'agent-does' || x.who === 'agent-drafts') ? ' · agent can do ' + (it.steps || []).filter((x) => x.who !== 'you').length : '') : null].filter(Boolean).join(' · ');
@@ -210,6 +225,7 @@ function build({ v, now, events }) {
210
225
  waiting: { title: 'Waiting on others', cap: longest != null ? 'longest ' + longest + ' ' + plural(longest, 'day', 'days') : (work.waiting || []).length ? num(work.waiting.length) + ' waiting' : '', n: (work.waiting || []).length, more: Math.max(0, (work.waiting || []).length - MAX_PER), rows: waitingRows },
211
226
  review: { n: (v.review || []).length, days: v.review_days, ids: (v.review || []).map((i) => i.id) },
212
227
  dock: { needs: clear, label: 'to clear', next: firstToday ? firstToday.title : (sections[0].rows[0] ? sections[0].rows[0].title : null) },
228
+ friday: fridayOf({ today, work, tray, ready, review: v.review || [] }),
213
229
  week: weekOf({ today, items: v.items || all.map((x) => x.it), events }),
214
230
  focus, jobs,
215
231
  rows: rowsAll,
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.291.0",
3
+ "version": "0.292.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.291.0",
9
+ "version": "0.292.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.291.0",
3
+ "version": "0.292.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",
@@ -95,6 +95,17 @@ function drawReview() {
95
95
  $('#revCap').textContent = R.n + ' ' + (R.n === 1 ? 'item' : 'items');
96
96
  $('#revTxt').innerHTML = `<b>${R.n}</b> ${R.n === 1 ? 'item has' : 'items have'} sat untouched for ${R.days} days. Open one to keep it or let it go.`;
97
97
  }
98
+ function drawFriday() {
99
+ const F = M.friday; if (!F) return;
100
+ $('#hFr').textContent = F.title; $('#frCap').textContent = F.cap;
101
+ $('#frBody').innerHTML = `<ol class="frl">${F.steps.map((s, i) => `<li><button type="button" class="frs" data-fr="${s.key}"${s.n ? '' : ' disabled'}><i>${i + 1}</i><span>${esc(s.label)}</span><b>${s.n}</b></button></li>`).join('')}</ol>`
102
+ + `<div class="cact two"><button type="button" class="cta" data-fr="${F.start || ''}"${F.start ? '' : ' disabled'}><span>${F.start ? 'Start the review' : 'Nothing to review'}</span></button></div><p class="note" style="margin-top:12px">${esc(F.note)}</p>`;
103
+ }
104
+ $('#frBody').addEventListener('click', (e) => {
105
+ const b = e.target.closest('[data-fr]'); if (!b || !b.dataset.fr || !M || !M.friday) return;
106
+ const st = M.friday.steps.find((x) => x.key === b.dataset.fr); const r = st && st.first ? rowOf(st.first) : null;
107
+ if (r) openRow(r); else toast('Nothing to open here.');
108
+ });
98
109
  function drawWeek() {
99
110
  const W = M.week; if (!W) return;
100
111
  $('#weekCap').textContent = W.cap;
@@ -105,7 +116,7 @@ function drawWeek() {
105
116
  return `<div class="wkc${d.today ? ' now' : ''}${d.past ? ' past' : ''}" role="listitem" aria-label="${esc(d.dow + ' ' + d.n + ': ' + (W.calendar ? (d.meet_min ? hrs + ' of meetings, ' : 'no meetings, ') : '') + d.done + ' done, ' + d.due + ' due')}"><span class="wkl">${d.dow}</span><b>${d.n}</b><span class="wkb">${h ? `<i style="height:${h}%"></i>` : ''}</span><span class="wkt">${W.calendar ? (hrs || 'free') : '·'}</span><span class="wkn">${d.done} done${d.due ? ' · ' + d.due + ' due' : ''}</span></div>`;
106
117
  }).join('')}</div><p class="note" style="margin-top:12px">${esc(W.note)}</p>`;
107
118
  }
108
- function draw() { drawHero(); drawWeek(); drawFocus(); drawPlate(); drawTray(); drawAgents(); drawWaiting(); drawReview(); drawDock(); onScroll(); backFocus(); }
119
+ function draw() { drawHero(); drawWeek(); drawFriday(); drawFocus(); drawPlate(); drawTray(); drawAgents(); drawWaiting(); drawReview(); drawDock(); onScroll(); backFocus(); }
109
120
  const rowOf = (key) => (M && M.rows || []).find((r) => r.key === key) || null;
110
121
 
111
122
  /* ── the dialog: detail first, the presses of the Work page, the tool row, the agent, the read-only agent beside it ─────────────────── */
@@ -1896,3 +1896,6 @@ button.wl-row[aria-pressed="true"] .wl-tog{background:var(--solid);color:var(--o
1896
1896
  .dsbody .dsat i{width:18px;height:18px;border-radius:50%;background:var(--well);display:grid;place-items:center;font:600 10px var(--mono);font-style:normal;color:var(--ink-2)}
1897
1897
  .rdbar .rdsp{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}
1898
1898
  .rdbar .dsvw:last-child .dsmn,.rdbar .rdsp .dsmn{left:auto;right:0}
1899
+
1900
+ .frl{list-style:none;margin:0 0 12px;padding:0}.frs{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;min-height:44px;padding:6px 4px;text-align:left;border-top:1px solid var(--hair);font-size:14px}
1901
+ .frl li:first-child .frs{border-top:0}.frs i{font:600 12px var(--mono);font-style:normal;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--well);color:var(--ink-2)}.frs b{font-weight:650}.frs:disabled{opacity:.5}
@@ -72,6 +72,10 @@
72
72
  <div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg></span><h2 id="hWait">Waiting on others</h2><small id="waitCap"></small></div>
73
73
  <div id="waitBody"></div>
74
74
  </section>
75
+ <section class="card rise" style="--d:9" id="frCard" aria-labelledby="hFr">
76
+ <div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><rect x="4" y="5" width="16" height="15" rx="3"/><path d="m8.5 13 2.5 2.5 4.5-5"/></svg></span><h2 id="hFr">Weekly review</h2><small id="frCap"></small></div>
77
+ <div id="frBody"></div>
78
+ </section>
75
79
  <section class="card rise" style="--d:9" id="revCard" aria-labelledby="hRev" hidden>
76
80
  <div class="ch"><span class="ic"><svg class="i" viewBox="0 0 24 24"><path d="M4 12a8 8 0 0 1 14-5.3M20 12a8 8 0 0 1-14 5.3"/><path d="M18 3v4h-4M6 21v-4h4"/></svg></span><h2 id="hRev">Untouched</h2><small id="revCap"></small></div>
77
81
  <div class="revc"><p id="revTxt"></p><button id="revBtn" type="button">Look at them</button></div>
@@ -83,7 +87,7 @@
83
87
  <div class="tgrid" id="trayBody"></div>
84
88
  <p class="note" id="trayNote" style="margin-top:14px"></p>
85
89
  </section>
86
- <p class="foot" id="foot">This page reads your list, the same one the Work page reads. It writes only when you press a button that says what it does, and each press uses the Work page's own route. The shelf, the capacity bars and starting an agent are not built here. Jira and Slack items appear only when an agent session has read them.</p>
90
+ <p class="foot" id="foot">This page reads your list, the same one the Work page reads. It writes only when you press a button that says what it does, and each press uses the Work page's own route. Starting an agent from a list is not built here. The tray's shelf (agent answers, ideas and reports waiting, with Keep, Use and Let go), effort figures and review timing need records PMOS does not hold yet. Jira and Slack items appear only when an agent session has read them.</p>
87
91
  </main>
88
92
  <noscript>This page needs JavaScript.</noscript>
89
93
  <script type="module" src="/pm/premium-work.js"></script>