create-pmos 0.652.0 → 0.654.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 +20 -14
- package/payload/KIT-VERSION +2 -2
- 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/payload/state/log.md +1 -1
- package/workspace/changelog.json +19 -0
- package/workspace/guide/backlog.md +1 -1
- package/workspace/guide/settings-and-switches.md +3 -0
- package/workspace/lib/kit-update.js +29 -4
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/bd-backlog.js +1 -1
- package/workspace/server.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.654.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,25 @@
|
|
|
33
33
|
"audit"
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
|
+
{
|
|
37
|
+
"v": "0.654.0",
|
|
38
|
+
"at": "2026-11-22T01:23:23.116Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 1436,
|
|
43
|
+
"t": "The Initiatives | Backlog switch is a tablist with its label again",
|
|
44
|
+
"s": "The Initiatives | Backlog switch is a tablist with its label again",
|
|
45
|
+
"k": "fix"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"n": 1437,
|
|
49
|
+
"t": "Publish to beta first; promote to GA only on evidence",
|
|
50
|
+
"s": "Publish to beta first; promote to GA only on evidence",
|
|
51
|
+
"k": "x"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
},
|
|
36
55
|
{
|
|
37
56
|
"v": "0.652.0",
|
|
38
57
|
"at": "2026-11-20T09:04:15.002Z",
|
|
@@ -297,19 +316,6 @@
|
|
|
297
316
|
"k": "fix"
|
|
298
317
|
}
|
|
299
318
|
]
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
"v": "0.628.0",
|
|
303
|
-
"at": "2026-11-19T06:53:24.081Z",
|
|
304
|
-
"f": 4,
|
|
305
|
-
"prs": [
|
|
306
|
-
{
|
|
307
|
-
"n": 1409,
|
|
308
|
-
"t": "The work popup fills its width; done tasks muted, not struck through",
|
|
309
|
-
"s": "The work popup fills its width; done tasks muted, not struck through",
|
|
310
|
-
"k": "fix"
|
|
311
|
-
}
|
|
312
|
-
]
|
|
313
319
|
}
|
|
314
320
|
]
|
|
315
321
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
kernel-source: pmos@
|
|
2
|
-
assembled: 2026-11-
|
|
1
|
+
kernel-source: pmos@27d1037a
|
|
2
|
+
assembled: 2026-11-22
|
|
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-11-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-22T01:23:19Z"}
|
|
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-22T01:23:19Z"}
|
|
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-22T01:23:19Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/payload/state/log.md
CHANGED
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.654.0",
|
|
4
|
+
"at": "2026-11-22T01:23:23.116Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1436,
|
|
9
|
+
"t": "The Initiatives | Backlog switch is a tablist with its label again",
|
|
10
|
+
"s": "The Initiatives | Backlog switch is a tablist with its label again",
|
|
11
|
+
"k": "fix"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"n": 1437,
|
|
15
|
+
"t": "Publish to beta first; promote to GA only on evidence",
|
|
16
|
+
"s": "Publish to beta first; promote to GA only on evidence",
|
|
17
|
+
"k": "x"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
},
|
|
2
21
|
{
|
|
3
22
|
"v": "0.652.0",
|
|
4
23
|
"at": "2026-11-20T09:04:15.002Z",
|
|
@@ -14,7 +14,7 @@ The Backlog lists every open task of the products you picked, the way Jira's bac
|
|
|
14
14
|
1. Go to **Board**. Work shows.
|
|
15
15
|
2. Press **Backlog** on the switch at the top, **Initiatives | Backlog**. The number beside it is how many tasks are open.
|
|
16
16
|
|
|
17
|
-
On a phone the switch has its own line above the list. PMOS remembers your choice for each pick of products.
|
|
17
|
+
On a phone the switch has its own line above the list. PMOS remembers your choice for each pick of products. A screen reader reads the switch as a set of tabs named "Work".
|
|
18
18
|
|
|
19
19
|
The Work page uses the PMOS design system (see [Layout](layout.md#the-design-system)): the switch is its Tabs, the toolbar buttons its Buttons, and the timeline its chart colours. Done is leaf green, now is blue, planned is grey, and late and the today line are the alert colour.
|
|
20
20
|
|
|
@@ -21,6 +21,8 @@ Press the round menu button at the bottom of any page, then the **Settings** ico
|
|
|
21
21
|
|
|
22
22
|
Open **Updates**. PMOS asks the npm registry for the latest version at once, and the card says if a newer one is ready. **Check now** asks again. PMOS also checks once a day while a page is open. To check only when you press **Check now**, set the update check to press (the `upd.check` setting, or `PMOS_UPDATE_CHECK=press`).
|
|
23
23
|
|
|
24
|
+
Every new version goes to beta first. A computer that follows beta (the `upd.channel` setting set to early, or `PMOS_CHANNEL=beta`) is offered it at once. Every other computer is offered a version only after it becomes general availability (GA). A beta becomes GA only after it was used and checked, never because time passed.
|
|
25
|
+
|
|
24
26
|
- **Update to** a version on the **PMOS app** row updates the app. Press **Update** (or **Restart to update**) and PMOS starts at once, with no second question. PMOS stops, installs the new version, and starts again. Open terminals keep running. The page that you are on reloads when the new version starts. PMOS does not open a new tab. If the update is refused, or PMOS starts again on the old version, or PMOS does not come back, the row says so and names the update log.
|
|
25
27
|
- When PMOS runs from a PMOS checkout, the row says to update it with `git pull`. There is no Update button.
|
|
26
28
|
- **Update** on a workspace row updates the kit in that repository. It replaces the kit files in its `pmos/` folder (AGENTS.md, skills, scripts, templates, `okf/core`, the mod and KIT-VERSION). It does not change `state/`, `planning/` or `okf/product/`, and it does not commit. Review the change in the repository as a normal pull request.
|
|
@@ -189,6 +191,7 @@ An "off" switch accepts `off`, `0`, `false` or `no` unless the row says a differ
|
|
|
189
191
|
| `PMOS_AUTO_PROFILE` | `0` stops PMOS writing a repository profile. `1` turns it on for a server with its own state folder. | on | — |
|
|
190
192
|
| `PMOS_AUTO_LAUNCHER` | `0` does not add the login item during setup. | on | — |
|
|
191
193
|
| `PMOS_UPDATE_CHECK` | `press` checks for an update only when you press **Check now**. | daily | Updates (the `upd.check` setting) |
|
|
194
|
+
| `PMOS_CHANNEL` | `beta` offers each new version as soon as it is published; `latest` offers only GA versions. | GA | Updates (the `upd.channel` setting) |
|
|
192
195
|
| `PMOS_UPDATE_SOURCE` | A built create-pmos package on this computer to update from. | the npm registry | — |
|
|
193
196
|
| `PMOS_KIT_PAYLOAD` | The kit folder that project setup copies. | the app's `payload/` | — |
|
|
194
197
|
| `PMOS_INGEST_TIMEOUT_MS` | The longest time a repository clone may take. | 2 minutes | — |
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
* readKit(root) → { present:false } | { present:true, version, kernelSource, installed, mode }
|
|
5
5
|
* status({ root, appVersion, appDir }) → { app: { version, fromCheckout }, kit, changes } local only, no network
|
|
6
6
|
* source(env) → { kind:'npm' } | { kind:'local', path } | { kind:'local', path, error }
|
|
7
|
-
*
|
|
7
|
+
* channel(env, stateDir) → 'latest' | 'beta' which release line this computer follows (factory line, 2026-11-21)
|
|
8
|
+
* latest({ exec, source, tag }) → Promise<{ ok, version, changes, tag } | { ok:false, error }> npm view create-pmos[@beta] version pmosChanges
|
|
8
9
|
* readChanges(appDir) → [{ v, at, prs: [{ n, t?, s }] }] the installed app's changelog.json, newest first
|
|
9
10
|
* readLastCheck(stateDir) · writeLastCheck(stateDir, { latest, changes }) the last check's answer, kept in the state folder
|
|
10
11
|
* compare(st, latestVersion) → { appBehind, kitBehind }
|
|
@@ -25,6 +26,11 @@
|
|
|
25
26
|
* minute later. The app upgrade stops this server (create-pmos runs `pmos stop`), so it runs DETACHED, writes its output
|
|
26
27
|
* to a log file, and the page waits for the server to come back.
|
|
27
28
|
*
|
|
29
|
+
* TWO RELEASE LINES (factory line, Wawan 2026-11-21). kit-publish publishes every merge under the npm tag `beta`.
|
|
30
|
+
* A beta becomes `latest` (GA, what everyone installs) only by kit-promote.yml, on evidence: the PM used the changed part
|
|
31
|
+
* and the Checker passed it on real data. A computer follows beta when the setting upd.channel is `early` or PMOS_CHANNEL
|
|
32
|
+
* is `beta`; every other computer follows GA and sees no beta. When no beta exists yet, the check reads GA.
|
|
33
|
+
*
|
|
28
34
|
* WHAT'S NEW (premium-updates). kit-publish writes workspace/changelog.json (one summary per kit, copied from its merged PRs)
|
|
29
35
|
* and the newest 20 entries as the package's `pmosChanges` field. The installed list is read from disk; the check reads the
|
|
30
36
|
* newer kits' entries in the same `npm view` call, so the page can say what an update brings before it runs.
|
|
@@ -208,7 +214,16 @@ function why(r, what) {
|
|
|
208
214
|
return `${what} did not finish${said ? ': ' + said : ''}`;
|
|
209
215
|
}
|
|
210
216
|
|
|
211
|
-
|
|
217
|
+
/** The release line this computer follows: 'beta' (setting upd.channel = early, or PMOS_CHANNEL=beta) or 'latest' (GA). */
|
|
218
|
+
function channel(env = process.env, stateDir = null) {
|
|
219
|
+
const e = String((env && env.PMOS_CHANNEL) || '').trim().toLowerCase();
|
|
220
|
+
if (e === 'beta' || e === 'early') return 'beta';
|
|
221
|
+
if (e === 'latest' || e === 'ga' || e === 'stable') return 'latest';
|
|
222
|
+
if (!stateDir) return 'latest';
|
|
223
|
+
try { return require('./settings-store.js').get(stateDir, 'upd.channel') === 'early' ? 'beta' : 'latest'; } catch { return 'latest'; }
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
async function latest({ exec = cp.execFile, source: src = source(), tag = 'latest' } = {}) {
|
|
212
227
|
if (src.kind === 'local') {
|
|
213
228
|
if (src.error) return { ok: false, error: src.error };
|
|
214
229
|
if (!src.version) return { ok: false, error: `${src.path} has no version number` };
|
|
@@ -218,7 +233,17 @@ async function latest({ exec = cp.execFile, source: src = source() } = {}) {
|
|
|
218
233
|
}
|
|
219
234
|
// pmosChanges: the newest kits' summaries (premium-updates). A package published before it has none, and npm then answers
|
|
220
235
|
// with the version alone, as a plain JSON string.
|
|
221
|
-
|
|
236
|
+
// GA asks exactly what it always asked. Beta asks for both tags and takes the newer: no beta yet, or a GA newer than
|
|
237
|
+
// the beta, gives GA.
|
|
238
|
+
const ga = await viewLatest({ exec, spec: PKG_NAME });
|
|
239
|
+
if (tag !== 'beta') return ga;
|
|
240
|
+
const b = await viewLatest({ exec, spec: `${PKG_NAME}@beta` });
|
|
241
|
+
if (!b.ok || (ga.ok && cmpVer(b.version, ga.version) <= 0)) return ga;
|
|
242
|
+
return { ...b, tag: 'beta' };
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
async function viewLatest({ exec, spec }) {
|
|
246
|
+
const r = await run(exec, NPM, ['view', spec, 'version', 'pmosChanges', '--json'], { timeout: CHECK_TIMEOUT_MS });
|
|
222
247
|
const bad = why(r, 'The check');
|
|
223
248
|
if (bad) return { ok: false, error: bad };
|
|
224
249
|
let v = r.stdout.trim();
|
|
@@ -352,4 +377,4 @@ function releaseHeads(pkg = PKG_NAME, { exec = cp.execFileSync } = {}) {
|
|
|
352
377
|
{ encoding: 'utf8', timeout: 20000, stdio: ['ignore', 'pipe', 'ignore'], windowsHide: true, shell: IS_WIN }));
|
|
353
378
|
}
|
|
354
379
|
|
|
355
|
-
module.exports = { PKG_NAME, releaseHeads, windowsHop, appUpdateCommand, cmpVer, readChanges, readLastCheck, writeLastCheck, notServedYet, validVersion, source, npxArgs, readKit, fromCheckout, status, compare, latest, updateKit, updateEnv, upgradeApp, whereFrom };
|
|
380
|
+
module.exports = { PKG_NAME, channel, releaseHeads, windowsHop, appUpdateCommand, cmpVer, readChanges, readLastCheck, writeLastCheck, notServedYet, validVersion, source, npxArgs, readKit, fromCheckout, status, compare, latest, updateKit, updateEnv, upgradeApp, whereFrom };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.654.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.654.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -652,7 +652,7 @@ export function sync(api) {
|
|
|
652
652
|
const p = get(PREFS, {}) || {}; SORT = BM.SORTS.some(([k]) => k === p.sort) ? p.sort : 'due'; FOLD = p.fold && typeof p.fold === 'object' ? p.fold : {};
|
|
653
653
|
const crumb = document.getElementById('crumbHost'), ib = document.getElementById('ibBody');
|
|
654
654
|
if (!crumb || !ib) return;
|
|
655
|
-
sw = document.createElement('span'); sw.className = 'bk-sw pm-tabs';
|
|
655
|
+
sw = document.createElement('span'); sw.className = 'bk-sw pm-tabs'; sw.setAttribute('role', 'tablist'); sw.setAttribute('aria-label', 'Work'); // the system's Tabs (design-system ui/components/Tabs)
|
|
656
656
|
// on a desk the switch sits in the toolbar after the product picker; on a phone the toolbar is full, so it takes its own line above the list
|
|
657
657
|
const PH = matchMedia('(max-width: 760px)');
|
|
658
658
|
const place = () => { if (PH.matches) ib.insertAdjacentElement('beforebegin', sw); else (crumb.closest('.wk-path') || crumb).insertAdjacentElement('afterend', sw); sw.classList.toggle('bk-sw-row', PH.matches); };
|
package/workspace/server.js
CHANGED
|
@@ -9617,7 +9617,7 @@ async function handleRequest(req, res) {
|
|
|
9617
9617
|
if (!w) return json(res, { ok: false, error: 'no such workspace' }, 400);
|
|
9618
9618
|
const st = () => kitUpdate.status({ root: w.root, appVersion: APP_VERSION, appDir: __dirname, env: process.env });
|
|
9619
9619
|
if (p === '/api/kit/check') {
|
|
9620
|
-
const r = await kitUpdate.latest({ source: kitUpdate.source() });
|
|
9620
|
+
const r = await kitUpdate.latest({ source: kitUpdate.source(), tag: kitUpdate.channel(process.env, STATE) });
|
|
9621
9621
|
const now = st();
|
|
9622
9622
|
if (!r.ok) return json(res, { ok: false, error: r.error, ws: w.id, ...now }, 502);
|
|
9623
9623
|
const lastCheck = kitUpdate.writeLastCheck(STATE, { latest: r.version, changes: r.changes });
|