create-pmos 0.726.0 → 0.727.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 -20
- 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/guide/layout.md +1 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/cozy-phone-settings.css +4 -0
- package/workspace/public/pm/cozy-phone-settings.js +75 -10
- package/workspace/server.js +5 -0
- package/workspace/test-lists/phone-update.json +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.727.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.727.0",
|
|
38
|
+
"at": "2026-11-23T04:50:40.142Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 1605,
|
|
43
|
+
"t": "Update PMOS from the phone",
|
|
44
|
+
"s": "Update PMOS from the phone",
|
|
45
|
+
"k": "new"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
36
49
|
{
|
|
37
50
|
"v": "0.726.0",
|
|
38
51
|
"at": "2026-11-23T04:24:12.361Z",
|
|
@@ -435,25 +448,6 @@
|
|
|
435
448
|
"k": "new"
|
|
436
449
|
}
|
|
437
450
|
]
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
"v": "0.699.0",
|
|
441
|
-
"at": "2026-11-22T10:23:23.766Z",
|
|
442
|
-
"f": 4,
|
|
443
|
-
"prs": [
|
|
444
|
-
{
|
|
445
|
-
"n": 1517,
|
|
446
|
-
"t": "Fixed spacing and corner values read the same-value Komorebi token (token-first step 2)",
|
|
447
|
-
"s": "Fixed spacing and corner values read the same-value Komorebi token (token-first step 2)",
|
|
448
|
-
"k": "x"
|
|
449
|
-
},
|
|
450
|
-
{
|
|
451
|
-
"n": 1518,
|
|
452
|
-
"t": "Forms keep drafts when panels close",
|
|
453
|
-
"s": "Forms keep drafts when panels close",
|
|
454
|
-
"k": "new"
|
|
455
|
-
}
|
|
456
|
-
]
|
|
457
451
|
}
|
|
458
452
|
]
|
|
459
453
|
}
|
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-23T04:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-23T04:50:37Z"}
|
|
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-23T04:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-23T04:50:37Z"}
|
|
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-23T04:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-23T04:50:37Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.727.0",
|
|
4
|
+
"at": "2026-11-23T04:50:40.142Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1605,
|
|
9
|
+
"t": "Update PMOS from the phone",
|
|
10
|
+
"s": "Update PMOS from the phone",
|
|
11
|
+
"k": "new"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
2
15
|
{
|
|
3
16
|
"v": "0.726.0",
|
|
4
17
|
"at": "2026-11-23T04:24:12.361Z",
|
|
@@ -296,7 +296,7 @@ A phone has its own layout. It is not the computer's page made smaller. There is
|
|
|
296
296
|
- **Work** is the list of initiatives: the product, search and filter, the tabs **Initiatives**, **Backlog** with its count (for example **Backlog 14**) and **Sprint**, a short **Where it stands**, and the groups At risk or late, On track and No signal. A row shows its stage, its next milestone and how many milestones are late. A Project also shows its end date.
|
|
297
297
|
- **An initiative** opens full screen: **Where it stands** with one ✦ proposal and the next 3 dates, the **Stages** as one strip with the stage now marked, the **Work breakdown** of the stage now (a red dot when late, blue in progress, an empty ring to do, a tick when done, the Jira key, subtasks under their task), one line that opens the other stages, **The case**, and **Artefacts**. There is no timeline on a phone. Swipe a ✦ line to the right to say yes and to the left to say no; press it to read why. A task, a milestone or an artefact opens full screen with ← back to the initiative, as one page with no boxes. The box at the end of the page asks PMOS about this work.
|
|
298
298
|
- **Ask PMOS** lists your chats grouped by the work they are about, with its product. "Not in a work yet" is last. A blue dot after the time marks a chat that waits for you. Write in the box at the bottom to start a new chat. In a chat, when PMOS asks before it changes or sends something, the ask is a blue-lined line: swipe it to the right to allow it, and to the left to say no. Press **Why** under it to read why PMOS asks. After you allow a change, a line says **Done** with what changed and **Undo**, until you write again.
|
|
299
|
-
- **Settings** has the theme (Light, Dark or Auto) and the version with **Check update**.
|
|
299
|
+
- **Settings** has the theme (Light, Dark or Auto) and the version with **Check update**. When a newer PMOS is ready, the button becomes **Update** (an arrow down to a line). Press it to install that version on your computer. The version line says each step, and Settings comes back on the new version when your computer restarts PMOS. This works when the phone opens the workspace at its Online address. Connectors and workspaces are on your computer.
|
|
300
300
|
- **Recording** shows the red dot, the time, the meeting's name and a small red stop at the top. Under it: the shared screen cut to the slide, with the slides (only while a screen is shared); **So far**, newest first, each point with its time; and **PMOS proposes**, the line to tell the call. Swipe it to the right to copy it, and to the left to put it away. When you stop, Today opens.
|
|
301
301
|
|
|
302
302
|
A chat on a phone uses the full width of the screen:
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.727.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.727.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -14,5 +14,9 @@ body.phs-on { overflow: hidden; }
|
|
|
14
14
|
.phs .phs-seg button[aria-pressed="true"] { font-weight: var(--fw-strong); }
|
|
15
15
|
.phs-b { flex: none; height: 40px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--cz-hair); background: var(--cz-card); color: var(--cz-ink); font: inherit; font-size: var(--fs-row); font-weight: var(--fw-strong); cursor: pointer; }
|
|
16
16
|
.phs-b:disabled { color: var(--cz-ink3); }
|
|
17
|
+
.phs-i { width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
|
|
18
|
+
.phs-i[aria-busy="true"] svg { animation: phs-pulse 1.2s ease-in-out infinite; }
|
|
19
|
+
@keyframes phs-pulse { 50% { opacity: .35; } }
|
|
20
|
+
@media (prefers-reduced-motion: reduce) { .phs-i[aria-busy="true"] svg { animation: none; } }
|
|
17
21
|
.phs-note { margin: 14px 0 0; font-size: var(--fs-body); color: var(--cz-ink2); line-height: var(--lh-body); }
|
|
18
22
|
.phs :focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; }
|
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
/* pm/cozy-phone-settings.js — Settings on a phone (phone design, board Ph2_more on Exploring 2; build brief nav-structure/phone/build-brief-v2.md).
|
|
2
2
|
*
|
|
3
|
-
* One screen, no scrolling: Theme (Light, Dark, Auto: this phone), Version ("PMOS 0.630.0") with Check update, and the note "Connectors
|
|
4
|
-
*
|
|
3
|
+
* One screen, no scrolling: Theme (Light, Dark, Auto: this phone), Version ("PMOS 0.630.0") with Check update, and the note "Connectors
|
|
4
|
+
* and workspaces are on your computer." Nothing else: Product, Your day, Jira writes, Your impact and Signed in stay in the
|
|
5
5
|
* computer's Settings (pm/cozy-settings.js), which a phone no longer opens from the menu. The menu's ⋯ stays at the top right over it.
|
|
6
6
|
*
|
|
7
7
|
* phoneSettingsHtml({ pick, version, said }) → string PURE
|
|
8
8
|
* openPhoneSettings() → the element pm/cozy-nav.js calls it on a phone; Back, Escape or another place closes it
|
|
9
9
|
* closePhoneSettings()
|
|
10
10
|
* Reads GET /api/kit/status (the version) when it opens. Writes only on a press: the theme on this phone (localStorage, cozy-nav.js
|
|
11
|
-
* setTheme) and POST /api/kit/check (Check update; it reads the newest version and changes nothing on the computer).
|
|
11
|
+
* setTheme) and POST /api/kit/check (Check update; it reads the newest version and changes nothing on the computer).
|
|
12
|
+
*
|
|
13
|
+
* UPDATE FROM THE PHONE (phone-update). When the check (or the last check, from GET /api/kit/status) finds a newer PMOS, Check update
|
|
14
|
+
* becomes an icon-only Update button. A press asks the computer to install that version through the same routes and guard as the
|
|
15
|
+
* computer's own Settings › Updates: POST /api/kit/update when the kit is behind, then POST /api/kit/upgrade-app (create-pmos@<version>
|
|
16
|
+
* workspace --reinstall --no-open, on the release line the computer follows). The server refuses it unless the phone came in on the
|
|
17
|
+
* Online address or with a kept token (kit-update.js whereFrom), because a phone on any other address could not come back. The
|
|
18
|
+
* Version line shows each step, and the screen reloads when the computer answers on the new version. */
|
|
12
19
|
import { pmGet, pmPost } from './http.js';
|
|
13
20
|
import { setTheme, themePick } from './cozy-nav.js';
|
|
14
21
|
|
|
15
22
|
const esc = (s) => String(s == null ? '' : s).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));
|
|
16
|
-
const S = { el: null, version: '', ws: '', said: '', busy: false, back: null };
|
|
23
|
+
const S = { el: null, version: '', ws: '', said: '', busy: false, back: null, latest: '', appBehind: false, kitBehind: false, updating: false };
|
|
24
|
+
const UPDATE_ICON = '<svg viewBox="0 0 24 24" width="20" height="20" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 4v11M7 10l5 5 5-5M5 20h14"/></svg>';
|
|
25
|
+
const WAIT_MS = 6 * 60000;
|
|
17
26
|
const THEMES = [['light', 'Light'], ['dark', 'Dark'], ['auto', 'Auto']];
|
|
18
27
|
|
|
19
28
|
export function phoneSettingsHtml(o = {}) {
|
|
@@ -23,17 +32,38 @@ export function phoneSettingsHtml(o = {}) {
|
|
|
23
32
|
+ `<div class="phs-row"><div class="phs-t"><b id="phsTheme">Theme</b><small>${esc(sub)}</small></div><div class="ev-seg phs-seg" role="group" aria-labelledby="phsTheme">`
|
|
24
33
|
+ THEMES.map(([k, l]) => `<button type="button" data-phs-theme="${k}" aria-pressed="${pick === k}">${l}</button>`).join('') + '</div></div>'
|
|
25
34
|
+ `<div class="phs-row"><div class="phs-t"><b>Version</b><small>${esc(o.version ? 'PMOS ' + o.version : 'PMOS')}</small>${o.said ? `<small class="phs-said" role="status">${esc(o.said)}</small>` : ''}</div>`
|
|
26
|
-
+
|
|
27
|
-
+ '<p class="phs-note">Connectors
|
|
35
|
+
+ versionButton(o) + '</div>'
|
|
36
|
+
+ '<p class="phs-note">Connectors and workspaces are on your computer.</p>';
|
|
37
|
+
}
|
|
38
|
+
/** Check update, or the icon-only Update once a newer PMOS is known (o.latest with o.ready). While it installs, the button is disabled. */
|
|
39
|
+
function versionButton(o) {
|
|
40
|
+
if (o.ready && o.latest) {
|
|
41
|
+
const label = o.updating ? 'Updating to PMOS ' + o.latest : 'Update to PMOS ' + o.latest;
|
|
42
|
+
return `<button type="button" class="phs-b phs-i" data-phs-update aria-label="${esc(label)}" title="${esc(label)}"${o.updating ? ' disabled aria-busy="true"' : ''}>${UPDATE_ICON}</button>`;
|
|
43
|
+
}
|
|
44
|
+
return `<button type="button" class="phs-b" data-phs-check${o.busy ? ' disabled' : ''}>${o.busy ? 'Checking' : 'Check update'}</button>`;
|
|
45
|
+
}
|
|
46
|
+
const ready = () => !!(S.latest && (S.appBehind || S.kitBehind));
|
|
47
|
+
function draw() {
|
|
48
|
+
if (S.el) S.el.innerHTML = phoneSettingsHtml({ pick: themePick(), version: S.version, said: S.said, busy: S.busy, latest: S.latest, ready: ready(), updating: S.updating });
|
|
49
|
+
}
|
|
50
|
+
/** Keep what a check (or the last check) says: the newest version and whether this computer is behind it. */
|
|
51
|
+
function keep(r) {
|
|
52
|
+
if (!r) return;
|
|
53
|
+
const latest = r.latest || (r.lastCheck && r.lastCheck.latest) || '';
|
|
54
|
+
if (latest) { S.latest = latest; S.appBehind = !!r.appBehind; S.kitBehind = !!r.kitBehind; }
|
|
28
55
|
}
|
|
29
|
-
function draw() { if (S.el) S.el.innerHTML = phoneSettingsHtml({ pick: themePick(), version: S.version, said: S.said, busy: S.busy }); }
|
|
30
56
|
function addCss() {
|
|
31
57
|
const href = new URL('./cozy-phone-settings.css', import.meta.url).href;
|
|
32
58
|
if (!document.querySelector(`link[href="${href}"]`)) { const l = document.createElement('link'); l.rel = 'stylesheet'; l.href = href; document.head.appendChild(l); }
|
|
33
59
|
}
|
|
34
60
|
async function readVersion() {
|
|
35
61
|
const r = await pmGet('/api/kit/status').catch(() => null);
|
|
36
|
-
if (r && r.ok) {
|
|
62
|
+
if (r && r.ok) {
|
|
63
|
+
S.version = (r.app && r.app.version) || ''; S.ws = r.ws || ''; keep(r);
|
|
64
|
+
if (!S.said && !S.updating && ready()) S.said = 'PMOS ' + S.latest + ' is ready.';
|
|
65
|
+
draw();
|
|
66
|
+
}
|
|
37
67
|
}
|
|
38
68
|
async function check() {
|
|
39
69
|
if (S.busy) return;
|
|
@@ -41,9 +71,42 @@ async function check() {
|
|
|
41
71
|
const r = await pmPost('/api/kit/check', { ws: S.ws || undefined }).catch(() => null);
|
|
42
72
|
S.busy = false;
|
|
43
73
|
if (!r || !r.ok) S.said = 'The check did not go through: ' + ((r && r.error) || 'the computer did not answer') + '.';
|
|
44
|
-
else S.said =
|
|
74
|
+
else { keep(r); S.said = ready() ? 'PMOS ' + S.latest + ' is ready.' : 'This is the newest PMOS.'; }
|
|
45
75
|
draw();
|
|
46
76
|
}
|
|
77
|
+
/** Update: the kit first when it is behind, then the app. The app update restarts the computer's PMOS, so wait for it. */
|
|
78
|
+
async function update() {
|
|
79
|
+
if (S.updating || !ready()) return;
|
|
80
|
+
const v = S.latest; const ws = S.ws || undefined;
|
|
81
|
+
S.updating = true; S.said = 'Updating PMOS on your computer to ' + v + '.'; draw();
|
|
82
|
+
const fail = (r, what) => { S.updating = false; S.said = what + ': ' + ((r && r.error) || 'the computer did not answer') + '.'; draw(); };
|
|
83
|
+
if (S.kitBehind) {
|
|
84
|
+
const r = await pmPost('/api/kit/update', { ws, version: v }).catch(() => null);
|
|
85
|
+
if (!r || !r.ok) return fail(r, 'The kit was not updated');
|
|
86
|
+
S.kitBehind = false;
|
|
87
|
+
}
|
|
88
|
+
if (!S.appBehind) { S.updating = false; S.said = 'Updated to PMOS ' + v + '.'; draw(); return; }
|
|
89
|
+
const from = S.version;
|
|
90
|
+
const r = await pmPost('/api/kit/upgrade-app', { ws, version: v, place: 'phone' }).catch(() => null);
|
|
91
|
+
if (!r || r.ok === false) return fail(r, 'The update did not start');
|
|
92
|
+
S.said = 'Installing PMOS ' + v + ' on your computer. This screen comes back when it restarts.'; draw();
|
|
93
|
+
waitBack(from);
|
|
94
|
+
}
|
|
95
|
+
/** Poll the computer until it answers on a new version, then reload. A phone that slept keeps polling when it wakes. */
|
|
96
|
+
async function waitBack(from) {
|
|
97
|
+
let down = false; const until = Date.now() + WAIT_MS;
|
|
98
|
+
while (Date.now() < until) {
|
|
99
|
+
await new Promise((ok) => setTimeout(ok, 2000));
|
|
100
|
+
const j = await pmGet('/api/sessions').catch(() => null);
|
|
101
|
+
if (!j || j.ok === false || !j.version) {
|
|
102
|
+
if (!down) { down = true; S.said = 'PMOS is restarting on your computer.'; draw(); }
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
if (j.version !== from) { location.reload(); return; }
|
|
106
|
+
if (down) { S.updating = false; S.said = 'PMOS started again on ' + j.version + ', so the update did not finish. The update log is on your computer.'; draw(); return; }
|
|
107
|
+
}
|
|
108
|
+
S.updating = false; S.said = 'Your computer did not come back on this address. Open PMOS on the computer to finish.'; draw();
|
|
109
|
+
}
|
|
47
110
|
export function openPhoneSettings() {
|
|
48
111
|
addCss();
|
|
49
112
|
if (!S.el) {
|
|
@@ -53,11 +116,13 @@ export function openPhoneSettings() {
|
|
|
53
116
|
S.el.addEventListener('click', (e) => {
|
|
54
117
|
const t = e.target.closest('[data-phs-theme]'); if (t) { setTheme(t.dataset.phsTheme, document); draw(); return; }
|
|
55
118
|
if (e.target.closest('[data-phs-check]')) check();
|
|
119
|
+
if (e.target.closest('[data-phs-update]')) update();
|
|
56
120
|
});
|
|
57
121
|
document.addEventListener('keydown', (e) => { if (e.key === 'Escape' && S.el && !S.el.hidden) { e.stopPropagation(); closePhoneSettings(); } }, true);
|
|
58
122
|
addEventListener('popstate', () => { if (S.el && !S.el.hidden) closePhoneSettings(true); });
|
|
59
123
|
}
|
|
60
|
-
S.said = '';
|
|
124
|
+
if (!S.updating) S.said = '';
|
|
125
|
+
S.back = document.activeElement;
|
|
61
126
|
S.el.hidden = false; document.body.classList.add('phs-on');
|
|
62
127
|
try { history.pushState({ phs: 1 }, ''); } catch { /* no history */ }
|
|
63
128
|
draw(); readVersion();
|
package/workspace/server.js
CHANGED
|
@@ -9699,6 +9699,11 @@ async function handleRequest(req, res) {
|
|
|
9699
9699
|
const r = kitUpdate.upgradeApp(w.root, { version: body.version, logFile: path.join(STATE, 'app-update.log') });
|
|
9700
9700
|
if (!r.ok) return json(res, { ok: false, error: r.error }, 400);
|
|
9701
9701
|
kitBusy = 'app';
|
|
9702
|
+
// phone-update: a press from the phone's Settings names its place, so the health number can count them.
|
|
9703
|
+
if (body.place === 'phone') {
|
|
9704
|
+
console.log(`[phone-update] ${APP_VERSION} -> ${body.version}`);
|
|
9705
|
+
try { require('./lib/use-log.js').record(STATE, [{ kind: 'use', page: 'phone-settings', control: 'phone-update', device: 'phone' }]); } catch { /* the count misses one */ }
|
|
9706
|
+
}
|
|
9702
9707
|
return json(res, { ok: true, ws: w.id, from: APP_VERSION, to: body.version, log: r.log });
|
|
9703
9708
|
}
|
|
9704
9709
|
/* ── page-starts-agent: a console3 press starts an agent session (a draft, a spike, an early gate), shown in Sessions ── */
|