create-pmos 0.468.0 → 0.469.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.468.0",
3
+ "version": "0.469.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,19 @@
32
32
  "audit"
33
33
  ],
34
34
  "pmosChanges": [
35
+ {
36
+ "v": "0.469.0",
37
+ "at": "2026-10-31T10:43:44.457Z",
38
+ "f": 3,
39
+ "prs": [
40
+ {
41
+ "n": 1122,
42
+ "t": "Build and upload the Board's code for the host (board-publish slice 3, H6)",
43
+ "s": "Build and upload the Board's code for the host (board-publish slice 3, H6)",
44
+ "k": "new"
45
+ }
46
+ ]
47
+ },
35
48
  {
36
49
  "v": "0.468.0",
37
50
  "at": "2026-10-31T09:41:17.517Z",
@@ -284,19 +297,6 @@
284
297
  "k": "new"
285
298
  }
286
299
  ]
287
- },
288
- {
289
- "v": "0.449.0",
290
- "at": "2026-10-29T08:24:22.196Z",
291
- "f": 3,
292
- "prs": [
293
- {
294
- "n": 1095,
295
- "t": "The blue Adler — replace the drawn SVG Adler with the 103-PNG set",
296
- "s": "The blue Adler — replace the drawn SVG Adler with the 103-PNG set",
297
- "k": "new"
298
- }
299
- ]
300
300
  }
301
301
  ]
302
302
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@73da8b7c
1
+ kernel-source: pmos@b46a27ee
2
2
  assembled: 2026-10-31
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-31T09:41:13Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-31T10:43:41Z"}
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-31T09:41:13Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-31T10:43:41Z"}
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-31T09:41:13Z"}
5
+ generated: {by: process:create-pmos, at: "2026-10-31T10:43:41Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,17 @@
1
1
  [
2
+ {
3
+ "v": "0.469.0",
4
+ "at": "2026-10-31T10:43:44.457Z",
5
+ "f": 3,
6
+ "prs": [
7
+ {
8
+ "n": 1122,
9
+ "t": "Build and upload the Board's code for the host (board-publish slice 3, H6)",
10
+ "s": "Build and upload the Board's code for the host (board-publish slice 3, H6)",
11
+ "k": "new"
12
+ }
13
+ ]
14
+ },
2
15
  {
3
16
  "v": "0.468.0",
4
17
  "at": "2026-10-31T09:41:17.517Z",
@@ -18,14 +18,23 @@ const Host = require('./boards-host.js');
18
18
  const shareStore = require('./share-store.js');
19
19
  const secretScan = require('./secret-scan.js');
20
20
 
21
- const PM = path.join(__dirname, '..', 'public', 'pm');
22
- /** The Board's version for a pack: the host serves the viewer's files under it (PRD H6). Made from the files that make the read-only mode. */
21
+ const PUBLIC = path.join(__dirname, '..', 'public');
22
+ let versionMemo = null;
23
+ /** The Board's version for a pack: the host serves the Board's code under it (PRD H6, immutable for a year), so it must change when ANY file the Board loads
24
+ * changes. It is a hash of the page and every file under public/pm, public/vendor and public/icons. Computed once per server run. */
23
25
  function viewerVersion() {
26
+ if (versionMemo) return versionMemo;
24
27
  try {
25
28
  const h = crypto.createHash('sha256');
26
- for (const f of ['readonly-boot.js', 'readonly.js']) h.update(fs.readFileSync(path.join(PM, f)));
27
- return 'v' + h.digest('hex').slice(0, 12);
28
- } catch { return 'v0'; }
29
+ const walk = (d, rel) => fs.readdirSync(d, { withFileTypes: true }).sort((a, b) => (a.name < b.name ? -1 : 1)).forEach((e) => {
30
+ const r = rel + '/' + e.name; if (e.isDirectory()) return walk(path.join(d, e.name), r);
31
+ if (e.isFile()) { h.update(r + '\0'); h.update(fs.readFileSync(path.join(d, e.name))); }
32
+ });
33
+ h.update('premium-board.html\0'); h.update(fs.readFileSync(path.join(PUBLIC, 'premium-board.html')));
34
+ for (const dir of ['pm', 'vendor', 'icons']) { try { walk(path.join(PUBLIC, dir), '/' + dir); } catch { /* a folder this checkout does not have */ } }
35
+ versionMemo = 'v' + h.digest('hex').slice(0, 12);
36
+ } catch { versionMemo = 'v0'; }
37
+ return versionMemo;
29
38
  }
30
39
 
31
40
  /** The data pack of a selection, from the Board's own route. { ok, pack } | { ok: false, status, error } */
@@ -44,6 +53,7 @@ const kindOf = (pack) => (pack && pack.scope && pack.scope.kind) || 'multi';
44
53
  const stateDir = (ctx) => ctx.runtimeDir;
45
54
 
46
55
  module.exports = {
56
+ viewerVersion,
47
57
  prefixes: ['/api/board-publish'],
48
58
  handle: async (req, res, url, ctx) => {
49
59
  const p = url.pathname;
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.468.0",
3
+ "version": "0.469.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.468.0",
9
+ "version": "0.469.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.468.0",
3
+ "version": "0.469.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",