create-pmos 0.835.0 → 0.837.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 (47) hide show
  1. package/package.json +90 -50
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/planning/evals/eval-calibration.md +1 -1
  4. package/payload/planning/okrs/health-budgets.md +1 -1
  5. package/payload/state/discoveries.md +1 -1
  6. package/workspace/changelog.json +89 -4
  7. package/workspace/guide/breakdown.md +1 -1
  8. package/workspace/guide/cli.md +19 -0
  9. package/workspace/guide/layout.md +5 -1
  10. package/workspace/lib/built-vs-design-http.js +81 -0
  11. package/workspace/lib/built-vs-design.js +454 -0
  12. package/workspace/lib/deps-cli.js +47 -2
  13. package/workspace/lib/features.json +1 -0
  14. package/workspace/lib/first-hour.js +219 -0
  15. package/workspace/lib/needs-providers.js +1 -0
  16. package/workspace/lib/pmos-verbs.js +3 -0
  17. package/workspace/lib/prefs-sync.js +1 -0
  18. package/workspace/lib/review-cli.js +6 -0
  19. package/workspace/lib/route-modules.js +1 -0
  20. package/workspace/lib/routes-first-hour.js +37 -0
  21. package/workspace/lib/routes-pop-work.js +4 -1
  22. package/workspace/lib/routes-team-waits.js +39 -2
  23. package/workspace/lib/team-cli.js +24 -1
  24. package/workspace/lib/team-slips.js +160 -0
  25. package/workspace/package-lock.json +2 -2
  26. package/workspace/package.json +1 -1
  27. package/workspace/public/pm/ask-here-ctx.js +20 -2
  28. package/workspace/public/pm/ask-here.css +6 -1
  29. package/workspace/public/pm/ask-here.js +38 -25
  30. package/workspace/public/pm/bd-backlog.js +34 -5
  31. package/workspace/public/pm/built-vs-design.css +16 -0
  32. package/workspace/public/pm/built-vs-design.js +95 -0
  33. package/workspace/public/pm/cozy-events-view.js +1 -1
  34. package/workspace/public/pm/cozy-home.css +10 -0
  35. package/workspace/public/pm/cozy-pop-work.js +6 -4
  36. package/workspace/public/pm/cozy-today-view.js +4 -1
  37. package/workspace/public/pm/first-hour.js +78 -0
  38. package/workspace/public/pm/goals-ds.js +3 -2
  39. package/workspace/public/pm/home-chat.js +19 -3
  40. package/workspace/public/pm/ini-tasks.js +2 -2
  41. package/workspace/public/pm/page-chat.js +2 -1
  42. package/workspace/public/pm/premium-board.js +2 -0
  43. package/workspace/public/pm/team-slips.js +48 -0
  44. package/workspace/public/premium-board.html +1 -0
  45. package/workspace/test-lists/built-vs-design.json +9 -0
  46. package/workspace/test-lists/first-hour.json +9 -0
  47. package/workspace/test-lists/team-slips.json +9 -0
@@ -0,0 +1,219 @@
1
+ 'use strict';
2
+ /* first-hour.js — the first hour for a new engineer: four steps built from the code map and PMOS records (bet A55, initiative first-hour,
3
+ * board BatchMoreBDS panel 29, Team › Welcome).
4
+ *
5
+ * steps({ root, dir, now, tasks?, ini?, card?, map? }) → [{ key, n, title, what, detail, part? }] at most 4, the steps that have real data
6
+ * newcomers({ tasks, now }) → [name] PURE: people first named as a task owner in the last NEW_DAYS days, in a ledger older than OLD_DAYS
7
+ * fold(lines) → { [nameKey]: { who, opened: Set, ended, seen, skipped } } PURE
8
+ * view(root, { dir, now }) → { ok, welcomes: [{ who, steps: [{ ...step, done }], finished }], finished: [who], suggest: who | null }
9
+ * act(dir, act, { who, step, by, now }) → { ok, line } | { ok: false, error } act ∈ start · open · end · seen · skip
10
+ * lines(v) · count(root) the CLI's text, and the health number (welcomes started)
11
+ *
12
+ * THE FOUR STEPS (each one only when it has real data; zero is silence):
13
+ * 1 product "The product in 5 minutes" the strategy card's lines (lib/strategy-card.js): who it is for, the problem, the bet
14
+ * 2 bets "Current bets" the initiatives with a task In progress now, most recent first, at most MAX_BETS
15
+ * 3 task "Your first task: <title>" an open task with no owner, not a milestone, whose title names a part of the code map
16
+ * that has tests and is not risky (lib/code-map.js); the part with the most test files wins
17
+ * 4 ask "Who to ask" the last person to change each tested part, at most MAX_ASK people, "Sam (payments)"
18
+ * A step is done when it is opened. The PM sees one line when all of a welcome's steps are open: "Riley finished the welcome."
19
+ *
20
+ * WHO IS NEW. A name first seen as a task owner in the last NEW_DAYS days, when the task ledger holds lines older than OLD_DAYS (a new
21
+ * workspace makes everyone look new, so it suggests no one). PMOS suggests one at a time with ✦; the PM starts it, or skips the name.
22
+ *
23
+ * WHERE. <records>/first-hour.jsonl, append-only. Nothing is sent to the person: sending a welcome outside PMOS is an outward send and waits
24
+ * for the PM (strict guardrail). */
25
+ const fs = require('fs');
26
+ const path = require('path');
27
+
28
+ const FILE = 'first-hour.jsonl';
29
+ const TAG = '[first-hour]';
30
+ const ACTS = ['start', 'open', 'end', 'seen', 'skip'];
31
+ const KEYS = ['product', 'bets', 'task', 'ask'];
32
+ const NEW_DAYS = 14;
33
+ const OLD_DAYS = 30;
34
+ const MAX_BETS = 3;
35
+ const MAX_ASK = 3;
36
+ const DAY = 86400000;
37
+ const CLOSED = new Set(['Done', 'Archived', 'Cancelled', "Won't do"]);
38
+
39
+ const oneLine = (s, n = 160) => { const t = String(s == null ? '' : s).replace(/\s+/g, ' ').trim(); return t.length > n ? t.slice(0, n - 1).trimEnd() + '…' : t; };
40
+ const nameOf = (s) => oneLine(String(s || '').replace(/^person:/i, ''), 60);
41
+ const keyOf = (s) => nameOf(s).toLowerCase();
42
+ const wordsOf = (s) => new Set(String(s || '').toLowerCase().split(/[^a-z0-9]+/).filter((w) => w.length >= 3));
43
+
44
+ function recordsDirOf(root) {
45
+ try { const { repoScript } = require('./repo-script.js'); return require(repoScript('signals/layout-paths.js')).pathsFor(root).recordsDir; } catch { return path.join(root, 'planning', 'records'); }
46
+ }
47
+ function tasksOf(root) {
48
+ try {
49
+ const Facts = require('./drift-facts.js');
50
+ const stateDir = require('./driver.js').stateDirOf(root);
51
+ let storeFile = null; try { const s = require('./task-store.js').storeFor(root); storeFile = s && s.file; } catch { storeFile = null; }
52
+ return Facts.tasksOf(root, stateDir ? path.join(stateDir, 'boards.jsonl') : null, storeFile, []).tasks;
53
+ } catch { return []; }
54
+ }
55
+ function initiativesOf(root) {
56
+ try { return require('./live-notes.js').loadInitiatives(root).open; } catch { return []; }
57
+ }
58
+
59
+ /** A task's state now: { state, owner, removed, last } from its lines in time order. PURE. */
60
+ function stateOf(t) {
61
+ let state = 'To do', owner = '', removed = false, last = 0, first = Infinity;
62
+ for (const l of (t.lines || []).slice().sort((a, b) => a.at - b.at)) {
63
+ if (l.at < first) first = l.at;
64
+ if (l.at > last) last = l.at;
65
+ if (l.state) state = l.state;
66
+ if (l.owner !== undefined) owner = nameOf(l.owner);
67
+ if (l.kind === 'task-remove') removed = true;
68
+ if (l.kind === 'task-restore') removed = false;
69
+ }
70
+ return { state, owner, removed, last, first };
71
+ }
72
+
73
+ /** People first named as a task owner in the last NEW_DAYS days. PURE. */
74
+ function newcomers({ tasks = [], now = Date.now() } = {}) {
75
+ let oldest = Infinity;
76
+ const firstSeen = new Map();
77
+ for (const t of tasks) for (const l of t.lines || []) {
78
+ if (l.at < oldest) oldest = l.at;
79
+ if (!l.owner) continue;
80
+ const k = keyOf(l.owner);
81
+ if (!k) continue;
82
+ const f = firstSeen.get(k);
83
+ if (!f || l.at < f.at) firstSeen.set(k, { who: nameOf(l.owner), at: l.at });
84
+ }
85
+ if (!(oldest <= now - OLD_DAYS * DAY)) return [];
86
+ return [...firstSeen.values()].filter((f) => f.at >= now - NEW_DAYS * DAY).sort((a, b) => a.at - b.at || a.who.localeCompare(b.who)).map((f) => f.who);
87
+ }
88
+
89
+ /** The steps, from real data only. PURE when tasks, ini, card and map are given. */
90
+ function steps({ root = null, dir = null, now = Date.now(), tasks, ini, card, map } = {}) {
91
+ if (tasks === undefined) tasks = root ? tasksOf(root) : [];
92
+ if (ini === undefined) ini = root ? initiativesOf(root) : [];
93
+ if (card === undefined) { try { card = dir ? require('./strategy-card.js').read(dir) : null; } catch { card = null; } }
94
+ if (map === undefined) { try { map = dir ? require('./code-map.js').view(dir) : null; } catch { map = null; } }
95
+ const out = [];
96
+
97
+ const c = card || {};
98
+ const said = [['Who it is for', c.for], ['The problem', c.problem], ['The bet', c.bet]].filter(([, v]) => v && String(v).trim());
99
+ if (said.length) {
100
+ out.push({ key: 'product', title: 'The product in 5 minutes', what: oneLine(c.for || c.problem || c.bet, 80),
101
+ detail: said.map(([k, v]) => `${k}: ${oneLine(v)}`).join(' · ') });
102
+ }
103
+
104
+ const titles = new Map((ini || []).map((i) => [i.id, i.title || i.id]));
105
+ const open = (tasks || []).map((t) => Object.assign({}, t, stateOf(t))).filter((t) => !t.removed);
106
+ const lastBy = new Map();
107
+ for (const t of open) if (t.state === 'In progress' || t.state === 'In review') lastBy.set(t.initiative, Math.max(lastBy.get(t.initiative) || 0, t.last));
108
+ const bets = [...lastBy.entries()].sort((a, b) => b[1] - a[1] || String(a[0]).localeCompare(String(b[0]))).slice(0, MAX_BETS).map(([id]) => titles.get(id) || id);
109
+ if (bets.length) out.push({ key: 'bets', title: 'Current bets', what: bets.join(', '), detail: `Work on now: ${bets.join(' · ')}.` });
110
+
111
+ const parts = (map && Array.isArray(map.parts) ? map.parts : []).filter((p) => p.tests > 0 && !p.risky);
112
+ const names = (p) => wordsOf([p.name, (p.dir || '').split('/').pop()].join(' '));
113
+ let pick = null;
114
+ for (const t of open) {
115
+ if (CLOSED.has(t.state) || t.state !== 'To do' || t.owner || t.milestone) continue;
116
+ const w = wordsOf(t.title);
117
+ for (const p of parts) {
118
+ if (![...names(p)].some((n) => w.has(n))) continue;
119
+ if (!pick || p.tests > pick.part.tests || (p.tests === pick.part.tests && t.title.localeCompare(pick.task.title) < 0)) pick = { task: t, part: p };
120
+ }
121
+ }
122
+ if (pick) {
123
+ out.push({ key: 'task', title: `Your first task: ${oneLine(pick.task.title, 70)}`, what: `small, tested area (${pick.part.name}, ${pick.part.tested})`,
124
+ detail: `${oneLine(pick.task.title)} · in ${titles.get(pick.task.initiative) || pick.task.initiative} · part ${pick.part.name}: ${pick.part.tested}`, task: pick.task.id, part: pick.part.name });
125
+ }
126
+
127
+ const seen = new Set(), ask = [];
128
+ for (const p of parts.slice().sort((a, b) => b.code - a.code || a.name.localeCompare(b.name))) {
129
+ const by = p.last && nameOf(p.last.by);
130
+ if (!by || seen.has(by.toLowerCase())) continue;
131
+ seen.add(by.toLowerCase());
132
+ ask.push(`${by} (${p.name})`);
133
+ if (ask.length >= MAX_ASK) break;
134
+ }
135
+ if (ask.length) out.push({ key: 'ask', title: 'Who to ask', what: ask.join(', '), detail: `They changed these parts last: ${ask.join(' · ')}.` });
136
+
137
+ return out.map((s, i) => Object.assign({ n: i + 1 }, s));
138
+ }
139
+
140
+ function readLines(dir) {
141
+ let text = '';
142
+ try { text = fs.readFileSync(path.join(dir, FILE), 'utf8'); } catch { return []; }
143
+ const out = [];
144
+ for (const l of text.split('\n')) { if (!l.trim()) continue; try { const o = JSON.parse(l); if (o && ACTS.includes(o.act) && typeof o.who === 'string') out.push(o); } catch { /* torn */ } }
145
+ return out;
146
+ }
147
+
148
+ /** Each person's welcome. A later start begins it again. PURE. */
149
+ function fold(lines) {
150
+ const by = {};
151
+ for (const o of lines || []) {
152
+ const k = keyOf(o.who);
153
+ if (!k) continue;
154
+ if (o.act === 'skip') { by[k] = Object.assign(by[k] || { who: nameOf(o.who), opened: new Set() }, { skipped: true }); continue; }
155
+ if (o.act === 'start') { by[k] = { who: nameOf(o.who), opened: new Set(), started: o.at, ended: false, seen: false, skipped: false }; continue; }
156
+ const w = by[k];
157
+ if (!w || !w.started) continue;
158
+ if (o.act === 'open' && KEYS.includes(o.step)) w.opened.add(o.step);
159
+ if (o.act === 'end') w.ended = true;
160
+ if (o.act === 'seen') w.seen = true;
161
+ }
162
+ return by;
163
+ }
164
+
165
+ function view(root, { dir = null, now = Date.now(), tasks, ini, card, map, log = null } = {}) {
166
+ dir = dir || (root ? recordsDirOf(path.resolve(root)) : null);
167
+ if (tasks === undefined) tasks = root ? tasksOf(root) : [];
168
+ const by = fold(dir ? readLines(dir) : []);
169
+ const list = Object.values(by).filter((w) => w.started && !w.ended);
170
+ const s = list.length ? steps({ root, dir, now, tasks, ini, card, map }) : [];
171
+ const welcomes = [], finished = [];
172
+ for (const w of list.sort((a, b) => a.who.localeCompare(b.who))) {
173
+ const done = s.length > 0 && s.every((x) => w.opened.has(x.key));
174
+ if (done) { if (!w.seen) finished.push(w.who); continue; }
175
+ welcomes.push({ who: w.who, steps: s.map((x) => Object.assign({}, x, { done: w.opened.has(x.key) })) });
176
+ }
177
+ const suggest = newcomers({ tasks, now }).find((who) => !by[keyOf(who)]) || null;
178
+ if (log) log(`${TAG} ${welcomes.length} open · ${finished.length} finished${suggest ? ' · a suggestion' : ''}`);
179
+ return { ok: true, welcomes, finished, suggest };
180
+ }
181
+
182
+ function act(dir, a, { who, step = null, by = 'pm', now = Date.now() } = {}) {
183
+ if (!ACTS.includes(a)) return { ok: false, error: `act must be one of ${ACTS.join(', ')}` };
184
+ const name = nameOf(who);
185
+ if (!name) return { ok: false, error: 'name the person' };
186
+ if (!dir) return { ok: false, error: 'this product has no records folder' };
187
+ const w = fold(readLines(dir))[keyOf(name)];
188
+ if (a === 'open' && !KEYS.includes(step)) return { ok: false, error: `step must be one of ${KEYS.join(', ')}` };
189
+ if (['open', 'end', 'seen'].includes(a) && !(w && w.started)) return { ok: false, error: `${name} has no welcome yet: pmos team welcome ${name}` };
190
+ const line = { at: new Date(now).toISOString(), act: a, who: name, by };
191
+ if (a === 'open') line.step = step;
192
+ fs.mkdirSync(dir, { recursive: true });
193
+ fs.appendFileSync(path.join(dir, FILE), JSON.stringify(line) + '\n');
194
+ return { ok: true, line };
195
+ }
196
+
197
+ function lines(v) {
198
+ const out = [];
199
+ for (const w of v.welcomes) {
200
+ out.push(`Welcome, ${w.who} · ${w.steps.length} steps`);
201
+ for (const s of w.steps) out.push(` ${s.done ? '✓' : '·'} ${s.n} · ${s.title} — ${s.what} (open: pmos team welcome open ${w.who} ${s.key})`);
202
+ }
203
+ for (const who of v.finished) out.push(`${who} finished the welcome.`);
204
+ if (v.suggest) out.push(`✦ ${v.suggest} is new here. Start their first hour: pmos team welcome ${v.suggest}`);
205
+ if (!out.length) out.push('No welcome is open.');
206
+ return out;
207
+ }
208
+
209
+ function count(root) { const dir = recordsDirOf(path.resolve(root)); return Object.values(fold(readLines(dir))).filter((w) => w.started).length; }
210
+
211
+ module.exports = { FILE, TAG, ACTS, KEYS, NEW_DAYS, OLD_DAYS, MAX_BETS, MAX_ASK, stateOf, newcomers, steps, fold, readLines, view, act, lines, count, recordsDirOf };
212
+
213
+ if (require.main === module) {
214
+ const a = process.argv.slice(2);
215
+ if (a[0] !== 'count') { console.error('usage: node lib/first-hour.js count <root>'); process.exit(2); }
216
+ const n = count(path.resolve(a[1] || '.'));
217
+ console.log(`${TAG} ${n} welcomes started`);
218
+ console.log(String(n));
219
+ }
@@ -41,6 +41,7 @@ const PROVIDERS = Object.freeze([
41
41
  'decision-journal-needs', // decision-journal-outcome-checks: a journal decision whose check date came, with no verdict (kind 1)
42
42
  'parked-reasons', // parked-reason-way-back (bet A446): a parked initiative whose way back is met, to bring back (kind 7)
43
43
  'product-health', // product-health-score: a product's health score fell 10 points or more against its past week (kind 8)
44
+ 'team-slips', // team-slips (bet A15): another team your work waits on will likely slip, with the one ✦ move (kind 7)
44
45
  'setup-station', // setup-station: a product that has not passed Setup (tracker read, agreed goal, owner), with the next ✦ (kind 7)
45
46
  'critical-needs', // critical-moved (bet A103): a task on an initiative's critical path moved its start or due date, with go-live (kind 7)
46
47
  ]);
@@ -169,6 +169,9 @@ const VERBS = Object.freeze({
169
169
  help: 'pmos goals [starter|draft|keep <n>|drop <n>|undo] — starter goals PMOS drafts from your own product, each with its source; keep one and it becomes a goal (pmos goals help)' }),
170
170
  hire: Object.freeze({ module: 'hire-draft.js', run: null, guide: 'cli.md',
171
171
  help: 'pmos hire [draft|show|count] — the role your open work most needs, per person, and a one-page role brief PMOS drafts for you to edit (pmos hire help)' }),
172
+ // Not a pm-os-absorb verb (run: null): initiative built-vs-design (job #1903, A380) added it through the same table.
173
+ review: Object.freeze({ module: 'review-cli.js', run: null, guide: 'cli.md',
174
+ help: 'pmos review shots|list|note|accept|fix|count — a built screen beside the design it came from, each difference circled and numbered (pmos review help)' }),
172
175
  prototype: Object.freeze({ module: 'prototype-cli.js', run: null, guide: 'cli.md',
173
176
  help: 'pmos prototype findings|personas|persona … — where simulated users (one per persona) got stuck on a prototype, never a score, and the personas that walk it (pmos prototype help)' }),
174
177
  // Not a pm-os-absorb verb (run: null): initiative connector-data (job #1920, A150) added it through the same table.
@@ -47,6 +47,7 @@ const KEYS = Object.freeze({
47
47
  'pmos.routine.kind', 'pmos.routine.scope.v1',
48
48
  'pmos.intel.tiles.off', 'pmos.guide.folded', 'pmos.order.notnow', 'pmos.listen.where',
49
49
  'pmos.home.cardfold', 'pmos-report-orders-hidden', 'cz-live-side',
50
+ 'pmos.chat.fs', // the text size of every chat (Small, Normal, Large), the + menu of the chat box
50
51
  'pmos.pop.five', // the work popup's four toolbar actions, worked out weekly from use (idea A498, pm/pop-cap.js)
51
52
  ]),
52
53
  prefix: Object.freeze(['pmos.board.', 'pmos.pv.tab:', 'pmos.dash.view:', 'cz-vw-fold:', 'pmos.fold:']),
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+ /* review-cli.js — `pmos review …`: a built screen beside the design it came from (initiative built-vs-design, job #1903, idea A380). The
3
+ * commands, the store and the comparison are lib/built-vs-design.js; this file is the verb module lib/pmos-verbs.js names. */
4
+ const { run, COMMANDS, USAGE } = require('./built-vs-design.js');
5
+
6
+ module.exports = { run, COMMANDS, USAGE };
@@ -155,6 +155,7 @@ const MODULES = Object.freeze([
155
155
  'routes-switches', // idea A263: who has which switch, per customer, on Work; turning one waits for the PM's own press (records switches.jsonl; page-press POST)
156
156
  'routes-prefs', // bet A461: view preferences that follow the person to the phone and other browsers (runtime view-prefs.json; page-press POST)
157
157
  'routes-skill-map', // bet A208: the team skill map on Work, for the person and their lead only (records skill-map.jsonl; page-press POST)
158
+ 'routes-first-hour', // bet A55: the first hour for a new engineer on Work (records first-hour.jsonl; page-press POST)
158
159
  'routes-stakeholders', // bet A371: an initiative's stakeholder map, decides / must agree / needs to know, in the Work popup (records stakeholders.jsonl; page-press POST)
159
160
  'routes-code-map', // idea A176: the product's code map on Work, redrawn when the default branch moves (records code-map.json; read-only)
160
161
  'routes-arch-warns', // idea A54: one warning when an initiative names a risky part of the code (reads code-map.json; read-only)
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+ /* routes-first-hour.js — the first hour for a new engineer over HTTP (bet A55, initiative first-hour). The core is lib/first-hour.js; the
3
+ * verb is `pmos team welcome`.
4
+ *
5
+ * GET /api/team/welcome?ws=<id> → { ok, welcomes, finished, suggest }
6
+ * POST /api/team/welcome { ws, act, who, step? } → { ok, line } | 400 act ∈ start · open · end · seen · skip (a page press only)
7
+ *
8
+ * WHO SEES IT. The PM and the new person, on Work; never a published page: a GET that carries `pack=` is refused with 403.
9
+ * Nothing here is sent anywhere. */
10
+ const guard = require('./pm-guard.js');
11
+ const FH = require('./first-hour.js');
12
+ const { recordsDirFor } = require('./records-dir.js');
13
+
14
+ const CHECKOUT = require('path').join(__dirname, '..', '..');
15
+ function wsOf(ctx, ws) { try { return ctx && typeof ctx.getWs === 'function' ? ctx.getWs(ws || null) : null; } catch { return null; } }
16
+ const rootFor = (ctx, w) => (ctx && ctx.repoRoot) || (w && w.root) || CHECKOUT;
17
+
18
+ async function handle(req, res, url, ctx) {
19
+ if (url.pathname !== '/api/team/welcome') return false;
20
+ const send = (status, body) => { ctx.json(res, body, status); return true; };
21
+ if (req.method === 'GET') {
22
+ if (url.searchParams.has('pack')) return send(403, { ok: false, error: 'the welcome is only for the PM and the new person; it is never on a published page' });
23
+ const wsId = url.searchParams.get('ws') || null;
24
+ const v = FH.view(rootFor(ctx, wsOf(ctx, wsId)), { dir: recordsDirFor(ctx, wsId), now: ctx.now ? ctx.now() : Date.now(), log: ctx.log || ((s) => console.log(s)) });
25
+ return send(200, v);
26
+ }
27
+ if (req.method !== 'POST') return send(405, { ok: false, error: 'GET or POST' });
28
+ const rd = await ctx.readJson(req);
29
+ if (!rd.ok) return send(400, { ok: false, error: 'the body is not JSON' });
30
+ const body = rd.body || {};
31
+ const g = guard.requirePagePress(req, body);
32
+ if (!g.ok) return send(g.status, { ok: false, error: g.error });
33
+ const r = FH.act(recordsDirFor(ctx, body.ws || null), String(body.act || ''), { who: body.who, step: body.step || null, by: (g.actor && g.actor.by) || 'pm', now: ctx.now ? ctx.now() : Date.now() });
34
+ return r.ok ? send(200, { ok: true, line: r.line }) : send(400, { ok: false, error: r.error });
35
+ }
36
+
37
+ module.exports = { prefixes: ['/api/team/welcome'], handle };
@@ -4,6 +4,7 @@
4
4
  *
5
5
  * POST /api/initiative/describe { ws, id, text } → { ok, id, from, text, same? } the record's description line
6
6
  * POST /api/initiative/describe-undo { ws, id, from, to } → { ok, kept? } back to `from` while the line still says `to`
7
+ * /api/built-vs-design… the work popup's Review block, answered by lib/built-vs-design-http.js (built-vs-design, A380)
7
8
  *
8
9
  * The writer is lib/initiative-writer.js setDescription and restoreDescription, the same as `pmos initiative describe` and the ✓ on PMOS's
9
10
  * description ✦ (lib/routes-proposals.js). Both POSTs pass pm-guard requirePagePress: the launch nonce and the page's origin, so an agent
@@ -15,6 +16,8 @@ const text = (v) => (typeof v === 'string' ? v : '');
15
16
  const bad = (status, error) => ({ status, body: { ok: false, error } });
16
17
 
17
18
  async function handle(req, res, url, ctx) {
19
+ // the popup's Review block (built-vs-design, A380): its routes ride on this module's prefixes, so adding them did not touch route-modules.js
20
+ if (url.pathname === '/api/built-vs-design' || url.pathname.startsWith('/api/built-vs-design/')) return require('./built-vs-design-http.js').handle(req, res, url, ctx);
18
21
  const send = (r) => { ctx.json(res, r.body, r.status); return true; };
19
22
  const sub = url.pathname.replace(/^\/api\/initiative\/?/, '');
20
23
  if (sub !== 'describe' && sub !== 'describe-undo') return send(bad(404, 'no such route'));
@@ -36,4 +39,4 @@ async function handle(req, res, url, ctx) {
36
39
  return send({ status: 200, body: sub === 'describe' ? { ok: true, id, from: r.from || '', text: r.text, ...(r.same ? { same: true } : {}) } : { ok: true, ...(r.kept ? { kept: true } : {}) } });
37
40
  }
38
41
 
39
- module.exports = { prefixes: ['/api/initiative/describe', '/api/initiative/describe-undo'], handle };
42
+ module.exports = { prefixes: ['/api/initiative/describe', '/api/initiative/describe-undo', '/api/built-vs-design'], handle };
@@ -4,11 +4,48 @@
4
4
  * GET /api/team-waits?ws=<id> → { ok, ws, today, waits: [lib/team-waits.js wait] } open waits, oldest first; 404 for an unknown ws
5
5
  *
6
6
  * Read only. The chat and a terminal write the same store with `pmos deps wait|done|undo` (lib/deps-cli.js), so what they write shows here
7
- * on the next read. Nothing is sent: Chase is a draft in the PM's own mail app (public/pm/team-waits.js chaseDraft). */
7
+ * on the next read. Nothing is sent: Chase is a draft in the PM's own mail app (public/pm/team-waits.js chaseDraft).
8
+ *
9
+ * Other teams' slips (initiative team-slips, bet A15; lib/team-slips.js is the store):
10
+ * GET /api/team-slips?ws=<id> → { ok, ws, today, watching, slips } the Upstream block on Work › Dependencies
11
+ * POST /api/team-slips/handle { ws, key, how } → { ok, line } the PM acted (shift | chase | skip): the row goes until a later likely date
12
+ * POST /api/team-slips/undo { ws, key } → { ok, line } Undo: the row is back
13
+ * A POST is a press on the page (pm-guard requirePagePress). No date is written and nothing is sent here. */
8
14
  const TW = require('./team-waits.js');
15
+ const TS = require('./team-slips.js');
16
+ const guard = require('./pm-guard.js');
9
17
  const { todayOf } = require('./parked-reasons.js');
10
18
 
19
+ const wsOf = (ctx, id) => { try { return ctx.getWs(id || null); } catch { return null; } };
20
+
21
+ async function slips(req, res, url, ctx) {
22
+ const p = url.pathname;
23
+ if (req.method === 'GET' && p === '/api/team-slips') {
24
+ const w = wsOf(ctx, url.searchParams.get('ws'));
25
+ if (!w || !w.root) { ctx.json(res, { ok: false, error: 'no such workspace' }, 404); return true; }
26
+ const today = todayOf();
27
+ let S = { watching: 0, slips: [] };
28
+ try { S = TS.slipsOf(w.root, { today }); } catch { S = { watching: 0, slips: [] }; }
29
+ ctx.json(res, { ok: true, ws: w.id, today, watching: S.watching, slips: S.slips });
30
+ return true;
31
+ }
32
+ if (p !== '/api/team-slips/handle' && p !== '/api/team-slips/undo') { ctx.json(res, { ok: false, error: 'no such route' }, 404); return true; }
33
+ if (req.method !== 'POST') { ctx.json(res, { ok: false, error: 'POST only' }, 405); return true; }
34
+ let body = {};
35
+ try { body = JSON.parse((await ctx.readBody(req)) || '{}'); } catch { ctx.json(res, { ok: false, error: 'invalid JSON body' }, 400); return true; }
36
+ const g = guard.requirePagePress(req, body);
37
+ if (!g.ok) { ctx.json(res, { ok: false, error: g.error }, g.status); return true; }
38
+ const w = wsOf(ctx, typeof body.ws === 'string' ? body.ws : '');
39
+ if (!w || !w.root) { ctx.json(res, { ok: false, error: 'no such workspace' }, 404); return true; }
40
+ const who = { by: (g.actor && g.actor.by) || undefined, via: (g.actor && g.actor.via) || 'ui' };
41
+ const r = p.endsWith('/handle') ? TS.handle(w.root, { key: String(body.key || '') }, { ...who, how: body.how }) : TS.undo(w.root, { key: String(body.key || '') }, who);
42
+ if (r.ok) { try { if (ctx.invalidateNeedsAgg) ctx.invalidateNeedsAgg(w.id); } catch { /* the next poll recounts */ } }
43
+ ctx.json(res, r, r.ok ? 200 : 409);
44
+ return true;
45
+ }
46
+
11
47
  async function handle(req, res, url, ctx) {
48
+ if (url.pathname.startsWith('/api/team-slips')) return slips(req, res, url, ctx);
12
49
  if (url.pathname !== '/api/team-waits') { ctx.json(res, { ok: false, error: 'no such route' }, 404); return true; }
13
50
  if (req.method !== 'GET') { ctx.json(res, { ok: false, error: 'GET only' }, 405); return true; }
14
51
  let w = null;
@@ -21,4 +58,4 @@ async function handle(req, res, url, ctx) {
21
58
  return true;
22
59
  }
23
60
 
24
- module.exports = { prefixes: ['/api/team-waits'], handle };
61
+ module.exports = { prefixes: ['/api/team-waits', '/api/team-slips'], handle };
@@ -9,6 +9,8 @@
9
9
  * pmos team dispatch --unit <unit> [--roles a,b] · pmos team pause|resume --unit <unit> the same for a whole unit (chief-unit-owners ✦3)
10
10
  * pmos team skills [--as <name>] [--json] the team skill map: strong at, often corrected on, one pairing (bet A208)
11
11
  * pmos team skills skip|undo <pairing key> skip the ✦ pairing for the next one, or bring it back
12
+ * pmos team welcome [<name>] [--json] the first hour for a new engineer: start one, or show the open ones (bet A55)
13
+ * pmos team welcome open|end|seen|skip <name> [<step>] open a step, close a welcome, clear the finished line, or skip a ✦ suggestion
12
14
  * common: [--root <dir>]
13
15
  *
14
16
  * INSIDE A ROLE RUN only (the server pins PMOS_TEAM_RUN, _ROLE, _FILE, _ROOT, _INI, _MODE; nothing here takes them as arguments):
@@ -23,7 +25,7 @@ const { execFileSync } = require('child_process');
23
25
  const T = require('./agent-team.js');
24
26
  const R = require('./team-runs.js');
25
27
 
26
- const COMMANDS = { team: ['roles', 'dispatch', 'status', 'pause', 'resume', 'wrote', 'done', 'verdict', 'skills'] };
28
+ const COMMANDS = { team: ['roles', 'dispatch', 'status', 'pause', 'resume', 'wrote', 'done', 'verdict', 'skills', 'welcome'] };
27
29
  const USAGE = [
28
30
  'usage: pmos team roles|dispatch|status|pause|resume — the role agents under the chief of staff',
29
31
  ' pmos team roles what each role owns, what wakes it, its action class and daily budget',
@@ -34,6 +36,8 @@ const USAGE = [
34
36
  ' pmos team dispatch --unit <unit> · pmos team pause|resume --unit <unit> the same for a whole program, product or project (pmos units)',
35
37
  ' pmos team skills [--as <name>] the team skill map (last 90 days): strong at, often corrected on, one ✦ pairing',
36
38
  ' pmos team skills skip|undo <key> skip the ✦ pairing for the next one, or bring it back',
39
+ ' pmos team welcome [<name>] start a new person\'s first hour, or show the open welcomes',
40
+ ' pmos team welcome open|end|seen|skip <name> [<step>] open a step (product, bets, task, ask), close it, clear the finished line, or skip a suggestion',
37
41
  'Inside a role run: pmos team wrote <path> · pmos team done "<summary>" [--propose <path> "<what>"] · pmos team verdict <path> pass|fail "<why>"',
38
42
  'every command: [--json] [--root <dir>]',
39
43
  ];
@@ -88,6 +92,25 @@ async function run(argv, { say = (s) => console.log(s), env = process.env, cwd =
88
92
  for (const l of SM.lines(v)) say(l);
89
93
  return 0;
90
94
  }
95
+ if (verb === 'welcome') { // bet A55: the first hour for a new engineer (lib/first-hour.js), the same view the Work block reads
96
+ if (inRun) return fail('a role run cannot read or write a welcome');
97
+ const FH = require('./first-hour.js');
98
+ const fdir = FH.recordsDirOf(root);
99
+ const sub = pos[0];
100
+ if (['open', 'end', 'seen', 'skip'].includes(sub)) {
101
+ const r = FH.act(fdir, sub, { who: pos[1], step: pos[2] || null, by: 'cli', now });
102
+ return r.ok ? ok({ line: r.line }, `✓ ${sub} recorded for ${r.line.who}${r.line.step ? ' (' + r.line.step + ')' : ''}`) : fail(r.error);
103
+ }
104
+ if (sub) {
105
+ const r = FH.act(fdir, 'start', { who: pos.join(' '), by: 'cli', now });
106
+ return r.ok ? ok({ line: r.line }, `✓ welcome started for ${r.line.who}; it shows on Work`) : fail(r.error);
107
+ }
108
+ const v = FH.view(root, { dir: fdir, now });
109
+ console.error(`${FH.TAG} ${v.welcomes.length} open · ${v.finished.length} finished${v.suggest ? ' · a suggestion' : ''}`);
110
+ if (json) return ok({ welcomes: v.welcomes, finished: v.finished, suggest: v.suggest });
111
+ for (const l of FH.lines(v)) say(l);
112
+ return 0;
113
+ }
91
114
  if (verb === 'roles') {
92
115
  const t = T.tableForPage();
93
116
  // launch simulation W3: say whether the Builder can run here, from the files on disk (lib/work-kind.js factoryRuns)
@@ -0,0 +1,160 @@
1
+ 'use strict';
2
+ /* team-slips.js — other teams' slips, before they hit you (initiative team-slips, bet A15; board BatchMoreADS panel 27: Today one row ·
3
+ * Work › Dependencies).
4
+ *
5
+ * PMOS reads only the other teams' boards your work waits on: the Jira keys of the open waits (lib/team-waits.js). A reading of one of those
6
+ * tickets records their date and their likely new date (`pmos deps slip`, run by the tracker read or the chat). When the likely date is past
7
+ * their date, that is a slip: one row, with their likely new date and what of yours it hits. PMOS offers one move under ✦: shift your date
8
+ * when the slip lands on or past your date, else chase them (a draft message the PM sends). The row goes once the PM has acted on it (or
9
+ * waved it off); a later likely date warns again. No slip, no row.
10
+ *
11
+ * slipsOf(root, { today }) → { file, watching, slips: [slip] }
12
+ * watching how many boards (Jira projects) of open waits PMOS watches
13
+ * slip = { key, wait, ini, title, team, theirs, likely, late (days), yours, yours_what, hits, from, move, shift_to, who, email, since }
14
+ * move 'shift' (the slip lands on or past your date) | 'chase'
15
+ * shift_to your date moved by the same days they slipped (only with move 'shift')
16
+ * read(root, { key, theirs, likely, yours, yours_what, from }, { now, by, via }) → { ok, line } | { ok: false, error } one reading
17
+ * handle(root, { key }, { now, by, via, how }) → { ok, line } the PM acted (how: 'shift' | 'chase' | 'skip'); this likely date is warned once
18
+ * undo(root, { key }, { now, by, via }) → { ok, line } Undo of handle: the row is back
19
+ * acted(root, { days, now }) → count of slips the PM acted on (shift or chase) in the last `days` days: the health number
20
+ * (`node workspace/lib/team-slips.js acted --days 30 [--root <dir>]` prints it on its last line)
21
+ * needs provider: kinds ['team-slip'] · rowsFor(w, { lead }) · sig(w) the one Today row (the first slip; "and n more" says the rest once)
22
+ *
23
+ * THE STORE. `team-slips.jsonl` next to team-waits.jsonl: { kind: 'slip-read' | 'slip-handled' | 'slip-back', key, … }. Append only.
24
+ * Nothing is sent and no date is written here: shift opens the initiative so its owner moves the date; chase is a draft in the PM's own mail app. */
25
+ const fs = require('fs');
26
+ const path = require('path');
27
+ const P = require('./parked-reasons.js');
28
+ const TW = require('./team-waits.js');
29
+
30
+ const NAME = 'team-slips';
31
+ const FILE = 'team-slips.jsonl';
32
+ const TAG = '[team-slips]';
33
+ const DAY = 864e5;
34
+ const DATE = /^\d{4}-\d{2}-\d{2}$/;
35
+ const KEY_RE = /^[A-Z][A-Z0-9_]*-\d+$/;
36
+
37
+ const clip = (s, n) => { const t = String(s == null ? '' : s).replace(/\s+/g, ' ').trim(); return t.length > n ? t.slice(0, n - 1).trimEnd() + '…' : t; };
38
+ const isDay = (v) => typeof v === 'string' && DATE.test(v) && Number.isFinite(Date.parse(v));
39
+ const addDays = (d, n) => new Date(Date.parse(d) + n * DAY).toISOString().slice(0, 10);
40
+ const diff = (a, b) => Math.round((Date.parse(b) - Date.parse(a)) / DAY);
41
+ function jsonl(file) {
42
+ let text = '';
43
+ try { text = fs.readFileSync(file, 'utf8'); } catch { return []; }
44
+ const out = [];
45
+ for (const l of text.split('\n')) { if (!l.trim()) continue; try { const r = JSON.parse(l); if (r && typeof r === 'object' && !Array.isArray(r)) out.push(r); } catch { /* a torn line */ } }
46
+ return out;
47
+ }
48
+ const fileOf = (root) => { const L = P.layoutOf(root); return L ? path.join(L.runs, FILE) : null; };
49
+ const stamp = (now, by, via) => ({ at: new Date(now).toISOString(), by: by || 'pm', via: via || 'cli' });
50
+ const append = (file, line) => { fs.mkdirSync(path.dirname(file), { recursive: true }); fs.appendFileSync(file, JSON.stringify(line) + '\n'); return line; };
51
+
52
+ /** Per key: the latest reading, and the likely date the PM last acted on (null after an Undo). */
53
+ function foldOf(file) {
54
+ const m = new Map();
55
+ for (const r of jsonl(file)) {
56
+ if (!KEY_RE.test(r.key || '')) continue;
57
+ const s = m.get(r.key) || { read: null, handled: null };
58
+ if (r.kind === 'slip-read') s.read = r;
59
+ else if (r.kind === 'slip-handled') s.handled = r;
60
+ else if (r.kind === 'slip-back') s.handled = null;
61
+ m.set(r.key, s);
62
+ }
63
+ return m;
64
+ }
65
+
66
+ function slipsOf(root, { today = P.todayOf() } = {}) {
67
+ root = path.resolve(root);
68
+ const file = fileOf(root);
69
+ if (!file) return { file: null, watching: 0, slips: [] };
70
+ const waits = TW.waitsOf(root, { today }).waits.filter((w) => w.key);
71
+ const byKey = new Map(waits.map((w) => [w.key, w]));
72
+ const watching = new Set(waits.map((w) => w.key.split('-')[0])).size;
73
+ const slips = [];
74
+ for (const [key, s] of foldOf(file)) {
75
+ const w = byKey.get(key);
76
+ const r = s.read;
77
+ if (!w || !r || !isDay(r.theirs) || !isDay(r.likely)) continue; // only the boards your open waits are on
78
+ if (r.likely <= r.theirs) continue; // no slip, no row
79
+ if (s.handled && s.handled.likely >= r.likely) continue; // warned once: acted on this likely date or a later one
80
+ const late = diff(r.theirs, r.likely);
81
+ const yours = isDay(r.yours) ? r.yours : null;
82
+ const hits = !!(yours && r.likely >= yours);
83
+ slips.push({ key, wait: w.id, ini: w.ini, title: w.title, team: w.team || w.what, theirs: r.theirs, likely: r.likely, late, yours,
84
+ yours_what: clip(r.yours_what, 80) || w.title, hits, from: clip(r.from, 60) || key.split('-')[0], move: hits ? 'shift' : 'chase',
85
+ shift_to: hits ? addDays(yours, late) : null, who: w.who, email: w.email, since: w.since });
86
+ }
87
+ slips.sort((a, b) => (b.hits - a.hits) || String(a.yours || '9999').localeCompare(String(b.yours || '9999')) || a.key.localeCompare(b.key));
88
+ return { file: path.relative(root, file).split(path.sep).join('/'), watching, slips };
89
+ }
90
+
91
+ function read(root, x = {}, { now = Date.now(), by, via } = {}) {
92
+ const file = fileOf(path.resolve(root));
93
+ if (!file) return { ok: false, error: 'no initiatives folder here (planning/initiatives or pmos/state/initiatives)' };
94
+ if (!KEY_RE.test(x.key || '')) return { ok: false, error: 'name the ticket your work waits on: a Jira key such as SEC-12' };
95
+ if (!isDay(x.theirs) || !isDay(x.likely)) return { ok: false, error: '--theirs and --likely must be days, YYYY-MM-DD' };
96
+ if (x.yours && !isDay(x.yours)) return { ok: false, error: '--yours must be a day, YYYY-MM-DD' };
97
+ const open = TW.waitsOf(path.resolve(root), { today: P.todayOf(now) }).waits;
98
+ if (!open.some((w) => w.key === x.key)) return { ok: false, error: `no open wait is on ${x.key}: PMOS reads only the boards your work waits on (pmos deps wait --key ${x.key} first)` };
99
+ return { ok: true, line: append(file, { kind: 'slip-read', key: x.key, theirs: x.theirs, likely: x.likely, yours: x.yours || '', yours_what: clip(x.yours_what, 80), from: clip(x.from, 60), ...stamp(now, by, via) }) };
100
+ }
101
+
102
+ function handle(root, { key } = {}, { now = Date.now(), by, via, how = 'skip' } = {}) {
103
+ const S = slipsOf(root, { today: P.todayOf(now) });
104
+ const s = S.slips.find((x) => x.key === key);
105
+ if (!s) return { ok: false, error: `no slip on ${key} to act on` };
106
+ return { ok: true, line: append(fileOf(path.resolve(root)), { kind: 'slip-handled', key, likely: s.likely, how: ['shift', 'chase', 'skip'].includes(how) ? how : 'skip', ...stamp(now, by, via) }) };
107
+ }
108
+
109
+ function undo(root, { key } = {}, { now = Date.now(), by, via } = {}) {
110
+ const file = fileOf(path.resolve(root));
111
+ if (!file) return { ok: false, error: 'no initiatives folder here' };
112
+ const s = foldOf(file).get(key);
113
+ if (!s || !s.handled) return { ok: false, error: `nothing to undo on ${key}` };
114
+ return { ok: true, line: append(file, { kind: 'slip-back', key, ...stamp(now, by, via) }) };
115
+ }
116
+
117
+ /** Slips the PM acted on (shift or chase, not skip) in the last `days` days, the latest per key and likely date. */
118
+ function acted(root, { days = 30, now = Date.now() } = {}) {
119
+ const file = fileOf(path.resolve(root));
120
+ if (!file) return 0;
121
+ const since = now - days * DAY;
122
+ const seen = new Set();
123
+ for (const r of jsonl(file)) if (r.kind === 'slip-handled' && r.how !== 'skip' && Date.parse(r.at) >= since) seen.add(r.key + '@' + r.likely);
124
+ return seen.size;
125
+ }
126
+
127
+ const MON = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
128
+ const dayWords = (d) => { const m = /^(\d{4})-(\d{2})-(\d{2})/.exec(String(d || '')); return m ? `${Number(m[3])} ${MON[Number(m[2]) - 1]}` : ''; };
129
+
130
+ /* ── the needs provider: one Today row, the first slip; the rest are on Work › Dependencies ── */
131
+ function rowsFor(w, { lead } = {}) {
132
+ if (!lead || !w || !w.root) return [];
133
+ const { file, slips } = slipsOf(w.root);
134
+ if (!slips.length) return [];
135
+ const s = slips[0];
136
+ const more = slips.length > 1 ? ` (and ${slips.length - 1} more on Work › Dependencies)` : '';
137
+ const cause = `${s.team} will likely slip to ${dayWords(s.likely)}${s.yours ? `; your ${s.yours_what} is ${dayWords(s.yours)}` : ''}${more}.`;
138
+ return [{
139
+ run_id: `${NAME}:${w.id}:${s.key}:${s.likely}`, kind: 'team-slip', initiative_id: s.ini || null, question: cause, doc: file, ws: w.id,
140
+ today: { kind: 7, source: NAME, cause, evidence: `${s.key} on ${s.from}: was ${s.theirs}, likely ${s.likely}`,
141
+ act: { label: s.move === 'shift' ? `Shift your date to ${dayWords(s.shift_to)}` : `Chase ${s.who || s.team}`, cli: `pmos deps slips` } },
142
+ }];
143
+ }
144
+ function sig(w) {
145
+ if (!w || !w.root) return '';
146
+ const L = P.layoutOf(w.root);
147
+ if (!L) return 'none';
148
+ return [FILE, TW.FILE].map((f) => { try { const st = fs.statSync(path.join(L.runs, f)); return st.size + ':' + st.mtimeMs; } catch { return '-'; } }).join('|') + '@' + P.todayOf();
149
+ }
150
+
151
+ module.exports = { kinds: ['team-slip'], rowsFor, sig, NAME, FILE, TAG, slipsOf, read, handle, undo, acted, dayWords };
152
+
153
+ if (require.main === module) {
154
+ const a = process.argv.slice(2);
155
+ const opt = (k, d) => { const i = a.indexOf('--' + k); return i >= 0 && a[i + 1] !== undefined ? a[i + 1] : d; };
156
+ if (a[0] !== 'acted') { console.log('usage: node lib/team-slips.js acted [--days 30] [--root <dir>]'); process.exit(2); }
157
+ const days = Number(opt('days', 30)) || 30;
158
+ console.log(`${TAG} slips acted on in the last ${days} days`);
159
+ console.log(String(acted(opt('root', process.cwd()), { days })));
160
+ }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.835.0",
3
+ "version": "0.837.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.835.0",
9
+ "version": "0.837.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.835.0",
3
+ "version": "0.837.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",