create-pmos 0.300.0 → 0.301.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.300.0",
3
+ "version": "0.301.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@5fa27d4
1
+ kernel-source: pmos@2c19189
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:00:37Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-19T07:05:22Z"}
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:00:37Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-19T07:05:22Z"}
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:00:37Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-19T07:05:22Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -193,11 +193,13 @@ My work is the second place on the rail, at `/premium-work.html`. It reads the l
193
193
 
194
194
  **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 tabs are drawn from your own items (see below). Answers, ideas and reports an agent files by itself are not shown, because PMOS holds no records for them.
195
195
 
196
+ **Decide.** An inbox row shows a **Decide** button that opens the item, where you give it a day, put it in Someday or drop it.
197
+
196
198
  **Tray tabs.** The tray has six tabs, each built from your item records: **To place**, **Ready** (an agent draft is ready), **Working** (an agent is running), **Kept** (you pressed Keep), **Used** (done in the last 7 days) and **Compost** (untouched for the review days). A row shows a button that fits its tab: Today, Review, Use it, or Let go.
197
199
 
198
200
  **The item dialog.** The dialog shows **Done**, **Not yet** (Later today, Tomorrow, Next week, Do today) and **Drop it**. **More** opens the rest: Edit, Who does each step, Not before, Someday and Waiting on someone. Every action stays reachable.
199
201
 
200
- **The agent's draft.** The draft shows as formatted text in the detail panel on the right, labelled as the agent's and not checked, with **Open** and **Copy**. It appears there as soon as the agent finishes, even while the dialog is open. The left column keeps the conversation (with **View round**) and the decision cards, in the console's words: **Post it to Jira** (marked outward, with exactly the text that goes), **Edit the draft**, **Keep it as a draft** and **Mark it done**. Post asks you to confirm the exact text first, and nothing is posted before that.
202
+ **The agent's draft.** The draft shows as formatted text in the detail panel on the right, labelled as the agent's and not checked, with **Open** and **Copy**. Its heading names the item ("Draft for IDPF-2989", or "Draft for you"), the round and the time of the latest round, and an approved step shows as "Step when you approve". A long draft is cut short, with **Show all**. It appears there as soon as the agent finishes, even while the dialog is open. The left column keeps the conversation (with **View round**) and the decision cards, in the console's words: **Post it to Jira** (marked outward, with exactly the text that goes), **Edit the draft**, **Keep it as a draft** and **Mark it done**. Post asks you to confirm the exact text first, and nothing is posted before that.
201
203
 
202
204
  **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.
203
205
 
@@ -55,7 +55,9 @@ function agentDetail(it) {
55
55
  if (a.state === 'suggest' && !(a.instruction || a.suggest)) return null; // an offer with no words behind it is not drawn
56
56
  const mine = isLocal(it) && !it.origin;
57
57
  const d = a.draft || null;
58
+ const rounds = (Array.isArray(a.log) ? a.log : []).filter((t) => t && t.body), lastRound = rounds[rounds.length - 1] || null;
58
59
  return {
60
+ ref: it.key || null, round: rounds.length || (d ? 1 : 0), round_at: lastRound ? lastRound.at || null : null,
59
61
  state: a.state, ask: clip(a.instruction || a.suggest || '', 500),
60
62
  draft: d ? { summary: clip(d.summary || '', 300), body: String(d.body || '').slice(0, 4000), step: d.step ? clip(d.step, 200) : null } : null,
61
63
  error: a.error ? clip(a.error, 300) : null, asks: !!a.asks, session: a.session || null,
@@ -84,7 +86,8 @@ function suggestOf(it, list, today, overdue) {
84
86
  else if (overdue) sug = { b: 'Overdue.', t: 'It was due ' + shortDate(it.due) + ' and is still open.' };
85
87
  else if (d === 0) sug = { b: 'Due today.', t: 'Its date is today.' };
86
88
  else if (d != null && d > 0 && d <= 6) sug = { b: 'This week.', t: 'Its date is ' + shortDate(it.due) + '.' };
87
- if (!cta && list !== 'waiting' && !isRunning(it) && state !== 'failed') cta = list === 'today' ? { label: 'Tomorrow', act: 'tomorrow' } : { label: 'Today', act: 'today' };
89
+ if (!cta && list === 'inbox') cta = { label: 'Decide', act: 'open' }; // the console's Decide: the item opens, where it gets a day, Someday or a drop
90
+ else if (!cta && list !== 'waiting' && !isRunning(it) && state !== 'failed') cta = list === 'today' ? { label: 'Tomorrow', act: 'tomorrow' } : { label: 'Today', act: 'today' };
88
91
  return { sug, cta };
89
92
  }
90
93
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.300.0",
3
+ "version": "0.301.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.300.0",
9
+ "version": "0.301.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.300.0",
3
+ "version": "0.301.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",
@@ -195,7 +195,7 @@ const mk = (edit) => { const v = F.view(); if (edit) edit(v); return WP.build({
195
195
  const RD = await open({ model: mk((v) => { v.work.today[0].origin = 'jira'; v.work.today[0].place = null; }) }), q = RD.page;
196
196
  await openKey(q, 'work:wbs:alpha:4.2');
197
197
  const rd = await q.evaluate(() => ({ state: document.querySelector('.agblk').dataset.state, tag: document.querySelector('.agpane .agtag').textContent, body: document.querySelector('.agpane').textContent, btn: [...document.querySelectorAll('.agblk .xco b, .agblk > .cact button')].map((b) => b.textContent.trim()), copy: !!document.querySelector('[data-pp="copy"]'), open: !!document.querySelector('[data-pp="open"]') }));
198
- ok('W7 a ready draft is labelled the agent\'s, unchecked, and shows it in the detail panel with Open and Copy, and offers Post, Edit, Keep, Mark done and Send back', rd.state === 'ready' && /Agent draft · not checked/.test(rd.tag) && /sign off A and B/.test(rd.body) && rd.copy && rd.open && rd.btn.join() === 'Post it to Jira,Edit the draft,Keep it as a draft,Mark it done,Post it to Jira,Send it back with a note', JSON.stringify(rd));
198
+ ok('W7 a ready draft is labelled the agent\'s, unchecked, and shows it in the detail panel with Open and Copy, and offers Post, Edit, Keep, Mark done and Send back', rd.state === 'ready' && /Draft for Jira/.test(rd.tag) && /Agent draft · not checked/.test(rd.body) && /sign off A and B/.test(rd.body) && rd.copy && rd.open && rd.btn.join() === 'Post it to Jira,Edit the draft,Keep it as a draft,Mark it done,Post it to Jira,Send it back with a note', JSON.stringify(rd));
199
199
  const m0 = RD.posts.length; await q.click('[data-p="ag-post"]'); await sleep(300);
200
200
  const cf = await q.evaluate(() => ({ text: document.querySelector('.xcon').textContent, btn: [...document.querySelectorAll('.xcon button')].map((b) => b.textContent.trim()) }));
201
201
  ok('W7 Post it posts nothing: it asks, names Jira and shows exactly the text', RD.posts.length === m0 && /Post this to Jira as you\?/.test(cf.text) && /Two of the three quotes meet the brief\. I would sign off A and B\./.test(cf.text) && cf.btn.join() === 'Post it to Jira now,Not yet', JSON.stringify(cf));
@@ -243,25 +243,28 @@ function paneHtml(r) {
243
243
  const p = r.dialog.pane, ag = r.dialog.agent, dr = ag && ag.draft && (ag.draft.body || ag.draft.summary) ? ag.draft : null;
244
244
  let h = '';
245
245
  if (dr) {
246
- const last = ag.turns && ag.turns.length ? ag.turns[ag.turns.length - 1] : null;
247
- h += `<article class="paper doc agpane"><div class="agpt"><p class="agtag">Agent draft · not checked${last ? ' · ' + esc(KIND[last.kind] || '') : ''}</p><span class="agpa"><button class="xtb" data-pp="open" type="button">Open</button><button class="xtb" data-pp="copy" type="button">Copy</button></span></div><div class="mdr">${mdHtml(dr.body || dr.summary)}</div></article>`;
246
+ const long = String(dr.body || '').length > 900 || String(dr.body || '').split('\n').length > 16, clip = long && !ui.all;
247
+ h += `<article class="paper doc agpane"><div class="agpt"><p class="agtag"><span class="agst">${ag.state === 'sent' ? 'Posted' : 'Draft'}</span> ${ag.mine ? 'Draft for you' : 'Draft for ' + esc(ag.ref || ag.where || 'the item')}</p><span class="agver">${ag.round ? 'Round ' + ag.round : 'Agent draft'}${ag.round_at ? ' · ' + esc(hhmm(ag.round_at)) : ''}</span><span class="agpa"><button class="xtb" data-pp="open" type="button">Open</button><button class="xtb" data-pp="copy" type="button">Copy</button></span></div><p class="note">Agent draft · not checked</p>`
248
+ + (dr.step ? `<p class="agstep">Step when you approve: ${esc(dr.step)}</p>` : '')
249
+ + `<div class="mdr${clip ? ' clipd' : ''}">${mdHtml(dr.body || dr.summary)}</div>${long ? `<button class="xtb" data-pp="all" type="button" aria-expanded="${!clip}">${clip ? 'Show all' : 'Show less'}</button>` : ''}</article>`;
248
250
  }
249
251
  let g = `<p class="dpath">${esc(p.file)}</p>${p.h ? `<h3 class="d1">${esc(p.h)}</h3>` : ''}${p.intro ? `<p>${esc(p.intro)}</p>` : ''}`; // the heading and lead line, as the mockup draws them
250
252
  if (p.rows && p.rows.length) g += `<div class="kv2">${p.rows.map(([a, b]) => `<span>${esc(a)}</span><span>${esc(b)}</span>`).join('')}</div>`;
251
253
  return h + `<article class="paper doc">${g}<p class="xn">The item as your list holds it.</p></article>`;
252
254
  }
253
255
  const paneLabel = (r) => (r.dialog.agent && r.dialog.agent.draft && (r.dialog.agent.draft.body || r.dialog.agent.draft.summary) ? 'Draft and item record' : r.dialog.pane.label);
254
- const paneSig = (r) => JSON.stringify([r.dialog.agent && r.dialog.agent.draft, r.dialog.pane]);
256
+ const paneSig = (r) => JSON.stringify([r.dialog.agent && r.dialog.agent.draft, r.dialog.agent && r.dialog.agent.round, r.dialog.agent && r.dialog.agent.state, r.dialog.pane]);
255
257
  /* the detail panel follows the item: a draft that lands while the dialog is open shows at once */
256
258
  function paintPane() {
257
259
  if (!openR || dlgKind !== 'item') return;
258
- const sg = paneSig(openR); if (sg === ui.pane) return;
260
+ const sg = paneSig(openR) + (ui.all ? 'A' : ''); if (sg === ui.pane) return;
259
261
  ui.pane = sg; const m = $('#oMain'), top = m.scrollTop;
260
262
  m.innerHTML = paneHtml(openR); $('#oLab').textContent = paneLabel(openR); m.scrollTop = top;
261
263
  }
262
264
  $('#oMain').addEventListener('click', async (e) => {
263
265
  const b = e.target.closest('[data-pp]'); if (!b || dlgKind !== 'item' || !openR) return;
264
266
  const ag = openR.dialog.agent, txt = (ag && ag.draft && (ag.draft.body || ag.draft.summary)) || '';
267
+ if (b.dataset.pp === 'all') { ui.all = !ui.all; ui.pane = ''; paintPane(); return; }
265
268
  if (b.dataset.pp === 'copy') { try { await navigator.clipboard.writeText(txt); toast('Draft copied.'); } catch (_) { toast('Copy did not work here. Select the text and copy it.'); } }
266
269
  else { const u = URL.createObjectURL(new Blob([txt], { type: 'text/plain;charset=utf-8' })); window.open(u, '_blank', 'noopener'); setTimeout(() => URL.revokeObjectURL(u), 60000); }
267
270
  });
@@ -1936,6 +1936,10 @@ button.wl-row[aria-pressed="true"] .wl-tog{background:var(--solid);color:var(--o
1936
1936
  .dscr>div:first-child{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
1937
1937
  .dscr small{font:12px var(--mono);color:var(--ink-3);overflow-wrap:anywhere}
1938
1938
  .dscr .lk{justify-self:start;min-height:44px;display:inline-flex;align-items:center}
1939
+ .agst{font:600 11px var(--mono);text-transform:uppercase;letter-spacing:.04em;color:var(--ink-3);margin-right:4px}
1940
+ .agver{font:500 12px var(--mono);color:var(--ink-3);margin-left:auto}
1941
+ .agstep{margin:6px 0;font:500 12.5px var(--mono);color:var(--ember-ink)}
1942
+ .mdr.clipd{max-height:18em;overflow:hidden}
1939
1943
 
1940
1944
  .prep{display:flex;align-items:center;gap:14px;margin:10px 0 2px;padding:10px 14px;border-radius:var(--r-in);background:var(--well)}
1941
1945
  .prep[hidden]{display:none}