create-pmos 0.757.0 → 0.758.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 +14 -47
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/changelog.json +13 -0
- package/workspace/lib/cos-chat.js +7 -2
- package/workspace/lib/transcript-read.js +15 -2
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/test-lists/transcript-resumed-folder.json +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.758.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": {
|
|
@@ -33,6 +33,19 @@
|
|
|
33
33
|
"audit"
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
|
+
{
|
|
37
|
+
"v": "0.758.0",
|
|
38
|
+
"at": "2026-11-24T02:19:59.803Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 1708,
|
|
43
|
+
"t": "A resumed chat's answer comes back to the chat panel",
|
|
44
|
+
"s": "A resumed chat's answer comes back to the chat panel",
|
|
45
|
+
"k": "fix"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
36
49
|
{
|
|
37
50
|
"v": "0.757.0",
|
|
38
51
|
"at": "2026-11-24T01:28:20.135Z",
|
|
@@ -391,52 +404,6 @@
|
|
|
391
404
|
}
|
|
392
405
|
}
|
|
393
406
|
]
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
"v": "0.737.0",
|
|
397
|
-
"at": "2026-11-23T06:47:33.938Z",
|
|
398
|
-
"f": 4,
|
|
399
|
-
"prs": [
|
|
400
|
-
{
|
|
401
|
-
"n": 1643,
|
|
402
|
-
"t": "Pick a task's start and due on one calendar, like depart and return",
|
|
403
|
-
"s": "Pick a task's start and due on one calendar, like depart and return",
|
|
404
|
-
"k": "new",
|
|
405
|
-
"try": {
|
|
406
|
-
"steps": [
|
|
407
|
-
"Open any task and press its dates.",
|
|
408
|
-
"Tap a start day, then a due day."
|
|
409
|
-
],
|
|
410
|
-
"see": "One calendar with the days between shaded, like booking a trip."
|
|
411
|
-
}
|
|
412
|
-
},
|
|
413
|
-
{
|
|
414
|
-
"n": 1633,
|
|
415
|
-
"t": "Focus mode, one item and its chat (A335)",
|
|
416
|
-
"s": "Focus mode, one item and its chat (A335)",
|
|
417
|
-
"k": "new",
|
|
418
|
-
"try": {
|
|
419
|
-
"steps": [
|
|
420
|
-
"On Today or Work, pick an item and press F."
|
|
421
|
-
],
|
|
422
|
-
"see": "Only that item and its chat show. Press F again to get the page back.",
|
|
423
|
-
"open": "/premium-board.html"
|
|
424
|
-
}
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
"n": 1636,
|
|
428
|
-
"t": "One Overview block on the initiative popup that folds",
|
|
429
|
-
"s": "One Overview block on the initiative popup that folds",
|
|
430
|
-
"k": "new",
|
|
431
|
-
"try": {
|
|
432
|
-
"steps": [
|
|
433
|
-
"Open an initiative's popup on the computer.",
|
|
434
|
-
"Press the Overview head."
|
|
435
|
-
],
|
|
436
|
-
"see": "Where it stands and the case sit in one block on top; folded, it keeps one line."
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
]
|
|
440
407
|
}
|
|
441
408
|
]
|
|
442
409
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -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-11-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-24T02:19:56Z"}
|
|
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-11-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-24T02:19:56Z"}
|
|
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-11-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-24T02:19:56Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.758.0",
|
|
4
|
+
"at": "2026-11-24T02:19:59.803Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1708,
|
|
9
|
+
"t": "A resumed chat's answer comes back to the chat panel",
|
|
10
|
+
"s": "A resumed chat's answer comes back to the chat panel",
|
|
11
|
+
"k": "fix"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
2
15
|
{
|
|
3
16
|
"v": "0.757.0",
|
|
4
17
|
"at": "2026-11-24T01:28:20.135Z",
|
|
@@ -21,6 +21,9 @@ const KEY = 'chat:main';
|
|
|
21
21
|
const MARK = '[PMOS chief of staff]';
|
|
22
22
|
const SAYS = 'The PM says: ';
|
|
23
23
|
|
|
24
|
+
/** The sources block, said in full on every message that names reads, so a session that never saw RULE still knows the format. */
|
|
25
|
+
const SRC_ASK = 'End with the pmos-src block: one fenced code block with the language tag pmos-src holding one JSON array such as [{"name":"Calendar","fresh":"read now"}], one entry per source you read and how fresh it is.';
|
|
26
|
+
|
|
24
27
|
const isKey = (key) => String(key || '') === KEY;
|
|
25
28
|
|
|
26
29
|
/** Words that point at a `pmos` read, best first. Each entry: the verb, and the words that send a question to it. */
|
|
@@ -63,7 +66,9 @@ function wrap(text, page) {
|
|
|
63
66
|
const t = String(text == null ? '' : text);
|
|
64
67
|
const verbs = routeOf(t);
|
|
65
68
|
const lines = [MARK + (page ? ' The PM is on ' + String(page).replace(/\s+/g, ' ').slice(0, 120) + '; answer about it first.' : '')];
|
|
66
|
-
|
|
69
|
+
// bug 2026-11-24: a session that did not open with RULE (a resumed chat, a session picked in the popup) asked "what pmos-src block format?",
|
|
70
|
+
// so the line names the format itself, not only the block
|
|
71
|
+
if (verbs.length) lines.push('Reads that fit: ' + verbs.map((v) => 'pmos ' + v).join(', ') + '. ' + SRC_ASK);
|
|
67
72
|
return lines.join(' ') + '\n\n' + SAYS + t;
|
|
68
73
|
}
|
|
69
74
|
|
|
@@ -87,4 +92,4 @@ function briefsBlock(lines) {
|
|
|
87
92
|
return ls.length ? [['The unit owners\' newest briefs (pmos units has the rest; a failed run is done work with a reason, not the PM\'s):', ...ls].join('\n')] : [];
|
|
88
93
|
}
|
|
89
94
|
|
|
90
|
-
module.exports = { KEY, MARK, RULE, ROUTES, isKey, routeOf, wrap, parseSources, briefsBlock, unitOfKey };
|
|
95
|
+
module.exports = { KEY, MARK, RULE, SRC_ASK, ROUTES, isKey, routeOf, wrap, parseSources, briefsBlock, unitOfKey };
|
|
@@ -156,6 +156,14 @@ function descendants(pid, listChildren, maxDepth = MAX_WALK_DEPTH) {
|
|
|
156
156
|
* written). The cwd-in-root proof here is what makes the child-walk safe: it runs on EVERY pid we
|
|
157
157
|
* consider, pane or descendant, identically.
|
|
158
158
|
*/
|
|
159
|
+
/** <home>/projects/<any>/<sessionId>.jsonl, or null. Only a plain id is looked up (no path parts). */
|
|
160
|
+
function otherProjectFile(home, sessionId) {
|
|
161
|
+
const id = String(sessionId || '');
|
|
162
|
+
if (!/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/.test(id)) return null;
|
|
163
|
+
let subs = []; try { subs = fs.readdirSync(path.join(home, 'projects')); } catch { return null; }
|
|
164
|
+
for (const p of subs) { const f = path.join(home, 'projects', p, id + '.jsonl'); try { if (fs.statSync(f).isFile()) return f; } catch { /* not here */ } }
|
|
165
|
+
return null;
|
|
166
|
+
}
|
|
159
167
|
function resolvePid(pid, root, home) {
|
|
160
168
|
if (Array.isArray(home)) {
|
|
161
169
|
let first = null;
|
|
@@ -176,8 +184,13 @@ function resolvePid(pid, root, home) {
|
|
|
176
184
|
const rel = path.relative(root, reg.cwd);
|
|
177
185
|
if (root && (rel.startsWith('..') || path.isAbsolute(rel))) return { outside: true };
|
|
178
186
|
const file = path.join(home, 'projects', slugFor(reg.cwd), `${reg.sessionId}.jsonl`);
|
|
179
|
-
if (
|
|
180
|
-
|
|
187
|
+
if (fs.existsSync(file)) return { sessionId: reg.sessionId, file, version: reg.version || null };
|
|
188
|
+
// bug 2026-11-24 ("the chat didn't come back to the chat panel"): `claude --resume <id>` started in another folder keeps writing the
|
|
189
|
+
// conversation's file under the project folder it was FIRST started in, while the session record names the new cwd. A PMOS chat resumes
|
|
190
|
+
// its own conversation from whichever workspace the PM is in, so the cwd's folder held no file and the chat waited on "PMOS is working"
|
|
191
|
+
// while the answer sat in the terminal. The session id is unique, so the file of that id in any project folder of this home is the one.
|
|
192
|
+
const moved = otherProjectFile(home, reg.sessionId);
|
|
193
|
+
return moved ? { sessionId: reg.sessionId, file: moved, version: reg.version || null } : { noTranscript: true };
|
|
181
194
|
}
|
|
182
195
|
|
|
183
196
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.758.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pmos-workspace",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.758.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "A resumed chat's transcript is found in the project folder it was first started in (initiative chat-reply-resumed-folder, done test C1-C2). Pure; no browser, no server.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"transcript-resumed-folder.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"transcript-resumed-folder.test.js": 1
|
|
8
|
+
}
|
|
9
|
+
}
|