create-pmos 0.391.0 → 0.392.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 +13 -13
- 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 +12 -0
- package/workspace/guide/briefing-premium.md +1 -1
- package/workspace/lib/chat-file-locate.js +28 -2
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/server.js +25 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.392.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": {
|
|
@@ -32,6 +32,18 @@
|
|
|
32
32
|
"audit"
|
|
33
33
|
],
|
|
34
34
|
"pmosChanges": [
|
|
35
|
+
{
|
|
36
|
+
"v": "0.392.0",
|
|
37
|
+
"at": "2026-10-22T04:00:27.581Z",
|
|
38
|
+
"f": 2,
|
|
39
|
+
"prs": [
|
|
40
|
+
{
|
|
41
|
+
"n": 1006,
|
|
42
|
+
"t": "Files Claude wrote in a git worktree open in the chat viewer",
|
|
43
|
+
"s": "Files Claude wrote in a git worktree open in the chat viewer"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
35
47
|
{
|
|
36
48
|
"v": "0.391.0",
|
|
37
49
|
"at": "2026-10-22T03:35:32.308Z",
|
|
@@ -284,18 +296,6 @@
|
|
|
284
296
|
"s": "Calmer Briefing first screen: mic, calendar ⋯, pin on hover (calmer first screen 5/5)"
|
|
285
297
|
}
|
|
286
298
|
]
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
"v": "0.372.0",
|
|
290
|
-
"at": "2026-10-21T02:53:20.808Z",
|
|
291
|
-
"f": 2,
|
|
292
|
-
"prs": [
|
|
293
|
-
{
|
|
294
|
-
"n": 981,
|
|
295
|
-
"t": "The Board's first screen has quiet chips, not two segmented rows (calmer first screen 4/5)",
|
|
296
|
-
"s": "The Board's first screen has quiet chips, not two segmented rows (calmer first screen 4/5)"
|
|
297
|
-
}
|
|
298
|
-
]
|
|
299
299
|
}
|
|
300
300
|
]
|
|
301
301
|
}
|
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-10-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-22T04:00:24Z"}
|
|
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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-22T04:00:24Z"}
|
|
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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-22T04:00:24Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.392.0",
|
|
4
|
+
"at": "2026-10-22T04:00:27.581Z",
|
|
5
|
+
"f": 2,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1006,
|
|
9
|
+
"t": "Files Claude wrote in a git worktree open in the chat viewer",
|
|
10
|
+
"s": "Files Claude wrote in a git worktree open in the chat viewer"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
},
|
|
2
14
|
{
|
|
3
15
|
"v": "0.391.0",
|
|
4
16
|
"at": "2026-10-22T03:35:32.308Z",
|
|
@@ -435,7 +435,7 @@ Every popup has this chat, including the ones that have no row of their own: a t
|
|
|
435
435
|
- **Stop** shows while Claude works. It presses Esc in the session.
|
|
436
436
|
- **The conversation** is Claude Code's own record, word for word. Claude's answers are formatted as Claude Code formats them: headings, bold, lists, code, tables, quotes and links (links open in a new tab). Your messages keep their line breaks, and a paste shows without the tags Claude Code wraps around it. A run of tool calls shows as one small grey line, for example "Used Read ×2, slack_read_thread". A connector tool shows its short name.
|
|
437
437
|
- **While a session runs**, the panel reads it again every 2 seconds and changes only when there is something new. The messages already on screen stay still, so nothing blinks beside the viewer.
|
|
438
|
-
- **A file Claude names** (a path such as `briefs/drafts/plan.md`, or a link to one) is underlined. Press it to read the file beside the conversation, as a tab in the viewer; on a phone, the Detail side shows it (on the Chat page, the viewer opens over the conversation). Markdown shows as a page, an HTML file shows as the page it draws (press **Source** for its code), and other text files show as code. An HTML page runs its own scripts, so its toggles and charts work, but it cannot reach PMOS or the internet: a web font falls back to the system font. It is read-only. While the tab is open it shows the newest version, so a file Claude is still writing stays current. A file
|
|
438
|
+
- **A file Claude names** (a path such as `briefs/drafts/plan.md`, or a link to one) is underlined. Press it to read the file beside the conversation, as a tab in the viewer; on a phone, the Detail side shows it (on the Chat page, the viewer opens over the conversation). Markdown shows as a page, an HTML file shows as the page it draws (press **Source** for its code), and other text files show as code. An HTML page runs its own scripts, so its toggles and charts work, but it cannot reach PMOS or the internet: a web font falls back to the system font. It is read-only. While the tab is open it shows the newest version, so a file Claude is still writing stays current. A file in a workspace PMOS serves, in a git worktree of one, or in the folder a session runs in opens here. Any other file says "Not in a workspace" and is not read.
|
|
439
439
|
- **Download a file** with the download icon at the right of its name in the viewer. An HTML file saves as **HTML** (as it is) or **PDF**. A markdown file saves as **Markdown**, **Word .docx** or **PDF**. Other text files save at once as they are, with no menu. PDF opens your browser's print window: choose **Save as PDF** there. An HTML page prints with no access to PMOS or the internet, as in the viewer. Word holds the note's headings, paragraphs, lists and tables.
|
|
440
440
|
- **Share a file** with the share icon beside download. On a phone, **Send a copy** comes first: it opens the phone's share sheet with the file, and no link is made. **Public link** makes a link to a copy of the file as it is now, for someone with no PMOS or Cloudflare login. The password is on, with a generated one you can change or turn off. The link ends after 7 days; press **1 day** or **30 days** to change it. Press **Create link**, then **Copy link and password**, and send the password in a different message. The same popover lists your **open links** with their end date and views; **Turn off** (pressed twice) deletes the copy at once. A file with a key or token in it is not shared. Links need Online and one more tunnel rule: see REMOTE.md, "Share links".
|
|
441
441
|
- **What an answer worked with** shows as buttons under it: the files Claude wrote, changed or read, the Jira tickets and Slack channels it used, and the links it named. The first one is the main one: a file Claude wrote comes first, then what it named in its words, then what it only read. When an answer finishes while the chat is open, its main one opens in the viewer by itself, once; answers that were there when you opened the chat open nothing. On a phone a bar over the message box offers it instead (**View**), so the conversation stays in view. A Jira ticket shows what PMOS last read from Jira for a board or initiative it syncs, with **Open in Jira**; a ticket PMOS has not read says so. A Slack channel or message opens with **Open in Slack**, as PMOS keeps no copy of Slack messages.
|
|
@@ -9,9 +9,16 @@
|
|
|
9
9
|
* base the session's own workspace id: a relative path resolves against its root.
|
|
10
10
|
* home the user's home folder, for ~/.
|
|
11
11
|
* reason: 'outside' (no served workspace holds the path), 'missing' (no such file), 'not-file' (a folder), 'bad' (no path).
|
|
12
|
-
* Both the path and each root are resolved to their real paths, so a symlink inside a workspace cannot lead out of it.
|
|
12
|
+
* Both the path and each root are resolved to their real paths, so a symlink inside a workspace cannot lead out of it.
|
|
13
|
+
*
|
|
14
|
+
* extraRoots({ workspaces, worktreesOf, sessionDirs, home }) -> [{ id, root }]
|
|
15
|
+
* The folders an agent session writes in that are not served workspaces (PM, 2026-10-22: files Claude wrote in a git worktree of pmos-idpf showed
|
|
16
|
+
* "Not in a workspace"). Two kinds only, so no other file on the machine becomes readable: the linked git worktrees of a served workspace's
|
|
17
|
+
* repository (the same repository, checked out in another folder) and the working folders of live sessions. Each gets a stable id `wt-<hash>`
|
|
18
|
+
* that GET /api/doc reads under the same root guard as a workspace. */
|
|
13
19
|
const fs = require('fs');
|
|
14
20
|
const path = require('path');
|
|
21
|
+
const crypto = require('crypto');
|
|
15
22
|
|
|
16
23
|
const inside = (root, p) => p === root || p.startsWith(root.endsWith(path.sep) ? root : root + path.sep);
|
|
17
24
|
const real = (p) => { try { return fs.realpathSync(p); } catch { return null; } };
|
|
@@ -46,4 +53,23 @@ function locate({ path: raw, roots = [], base = null, home = null } = {}) {
|
|
|
46
53
|
return { ok: true, ws: w.id, rel, abs: path.join(w.root, rel), name: path.basename(r), size: st.size, mtime: st.mtimeMs };
|
|
47
54
|
}
|
|
48
55
|
|
|
49
|
-
|
|
56
|
+
/** The id a non-workspace root is read under. Pure. */
|
|
57
|
+
const extraId = (root) => 'wt-' + crypto.createHash('sha1').update(path.resolve(root)).digest('hex').slice(0, 12);
|
|
58
|
+
|
|
59
|
+
/** Worktrees of the served repositories and live session folders, minus the served workspaces themselves. worktreesOf(root) -> [dir]. */
|
|
60
|
+
function extraRoots({ workspaces = [], worktreesOf = () => [], sessionDirs = [], home = null } = {}) {
|
|
61
|
+
const served = new Set(workspaces.filter((w) => w && w.root).map((w) => path.resolve(w.root)));
|
|
62
|
+
const seen = new Set(), out = [];
|
|
63
|
+
const add = (d) => {
|
|
64
|
+
if (!d || typeof d !== 'string' || !path.isAbsolute(d)) return;
|
|
65
|
+
const r = path.resolve(d);
|
|
66
|
+
if (served.has(r) || seen.has(r) || r === path.parse(r).root) return; // never the filesystem root
|
|
67
|
+
if (home && (r === path.resolve(home) || inside(r, path.resolve(home)))) return; // never the home folder or a folder above it
|
|
68
|
+
seen.add(r); out.push({ id: extraId(r), root: r });
|
|
69
|
+
};
|
|
70
|
+
for (const w of workspaces) { if (!w || !w.root) continue; let ds = []; try { ds = worktreesOf(w.root) || []; } catch { ds = []; } ds.forEach(add); }
|
|
71
|
+
sessionDirs.forEach(add);
|
|
72
|
+
return out;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
module.exports = { locate, cleanPath, extraRoots, extraId };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.392.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.392.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/workspace/package.json
CHANGED
package/workspace/server.js
CHANGED
|
@@ -663,6 +663,26 @@ function homeWorkspace() {
|
|
|
663
663
|
return HOME_ENABLED ? workspaces.get(wsId(SELF_ROOT)) : [...workspaces.values()][0];
|
|
664
664
|
}
|
|
665
665
|
function getWs(id) { return (id && workspaces.get(id)) || homeWorkspace(); }
|
|
666
|
+
// The folders an agent writes in that are not served workspaces: the git worktrees of a served repository and live session folders
|
|
667
|
+
// (lib/chat-file-locate.js extraRoots). A file there opens in the viewer read-only under the same root guard as a workspace. Memoised: it shells git.
|
|
668
|
+
const DOC_EXTRA_TTL_MS = 15000;
|
|
669
|
+
let docExtra = { at: 0, list: [] };
|
|
670
|
+
function docExtraRoots() {
|
|
671
|
+
if (Date.now() - docExtra.at < DOC_EXTRA_TTL_MS) return docExtra.list;
|
|
672
|
+
const list = chatFileLocate.extraRoots({
|
|
673
|
+
workspaces: [...workspaces.values()],
|
|
674
|
+
worktreesOf: (root) => gitInfo.worktrees(root).map((t) => t.dir),
|
|
675
|
+
sessionDirs: [...sessions.values()].map((s) => s && s.cwd),
|
|
676
|
+
home: os.homedir(),
|
|
677
|
+
});
|
|
678
|
+
docExtra = { at: Date.now(), list };
|
|
679
|
+
return list;
|
|
680
|
+
}
|
|
681
|
+
/** The root a document read uses: a served workspace, or a `wt-` id from docExtraRoots (an unknown `wt-` id is null, never the home workspace). */
|
|
682
|
+
function docRootOf(id) {
|
|
683
|
+
if (id && /^wt-[0-9a-f]{12}$/.test(id)) return docExtraRoots().find((r) => r.id === id) || null;
|
|
684
|
+
return getWs(id);
|
|
685
|
+
}
|
|
666
686
|
/** The registered workspace whose root is this path exactly, or null. Never the home workspace by default. */
|
|
667
687
|
function wsByRoot(root) {
|
|
668
688
|
const want = path.resolve(String(root));
|
|
@@ -7548,11 +7568,11 @@ async function handleRequest(req, res) {
|
|
|
7548
7568
|
}
|
|
7549
7569
|
if (p === '/api/doc/locate' && req.method === 'GET') {
|
|
7550
7570
|
// A file path Claude wrote in a premium chat panel: which served workspace holds it (lib/chat-file-locate.js). The panel then reads it read-only
|
|
7551
|
-
// through GET /api/doc. A path in no served workspace answers `outside`, and nothing is read.
|
|
7571
|
+
// through GET /api/doc. A path in no served workspace, no git worktree of one and no session folder answers `outside`, and nothing is read.
|
|
7552
7572
|
// a relative path is the session's own: it resolves against the folder the chat's session runs in, else the page's workspace
|
|
7553
7573
|
const sess = sessions.get(url.searchParams.get('session') || '');
|
|
7554
7574
|
const base = (sess && workspaces.get(sess.ws)) || getWs(url.searchParams.get('ws'));
|
|
7555
|
-
const r = chatFileLocate.locate({ path: url.searchParams.get('path') || '', roots: [...workspaces.values()].map((w) => ({ id: w.id, root: w.root })), base: base ? base.id : null, home: os.homedir() });
|
|
7575
|
+
const r = chatFileLocate.locate({ path: url.searchParams.get('path') || '', roots: [...[...workspaces.values()].map((w) => ({ id: w.id, root: w.root })), ...docExtraRoots()], base: base ? base.id : null, home: os.homedir() });
|
|
7556
7576
|
return json(res, r);
|
|
7557
7577
|
}
|
|
7558
7578
|
/* ── premium-viewer-share (D97): share links. Listing is a read; making and turning off a link is a page press, never an agent session. ── */
|
|
@@ -7575,7 +7595,7 @@ async function handleRequest(req, res) {
|
|
|
7575
7595
|
}
|
|
7576
7596
|
const host = shareHost();
|
|
7577
7597
|
if (!host) return json(res, { ok: false, error: 'Share links use your Online hostname. Set up Online in Settings first, or set PMOS_SHARE_HOST.' }, 409);
|
|
7578
|
-
const w =
|
|
7598
|
+
const w = docRootOf(body.ws);
|
|
7579
7599
|
const rel = String(body.path || '');
|
|
7580
7600
|
const got = w ? readTextDocWhy(w.root, rel) : { ok: false, reason: 'no such workspace' };
|
|
7581
7601
|
if (!got.ok) return json(res, { ok: false, error: got.reason }, 404);
|
|
@@ -7596,7 +7616,7 @@ async function handleRequest(req, res) {
|
|
|
7596
7616
|
// A markdown file from the viewer's download menu as Word (premium-viewer-share D4). The same guard as GET /api/doc
|
|
7597
7617
|
// (readTextDocWhy: inside the workspace, text only), built in memory by lib/report-export.js. It writes nothing and is never cached.
|
|
7598
7618
|
if (req.method !== 'GET') { res.writeHead(405, { 'Content-Type': 'text/plain; charset=utf-8' }); return res.end('GET only'); }
|
|
7599
|
-
const w =
|
|
7619
|
+
const w = docRootOf(url.searchParams.get('ws'));
|
|
7600
7620
|
const fmt = url.searchParams.get('fmt') || '';
|
|
7601
7621
|
if (fmt !== 'docx') { res.writeHead(400, { 'Content-Type': 'text/plain; charset=utf-8' }); return res.end('fmt must be docx'); }
|
|
7602
7622
|
const rel = url.searchParams.get('path') || '';
|
|
@@ -7610,7 +7630,7 @@ async function handleRequest(req, res) {
|
|
|
7610
7630
|
return res.end(out.buffer);
|
|
7611
7631
|
}
|
|
7612
7632
|
if (p === '/api/doc') {
|
|
7613
|
-
const w =
|
|
7633
|
+
const w = docRootOf(url.searchParams.get('ws'));
|
|
7614
7634
|
// `ref` — a file that exists only on an initiative's own branch (status-clarity R5). Read through git, never the
|
|
7615
7635
|
// working tree, and only from an initiative branch; the reason for a refusal travels in the body.
|
|
7616
7636
|
const ref = url.searchParams.get('ref');
|