create-pmos 0.108.0 → 0.109.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 +1 -1
- 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/guide/layout.md +2 -2
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/dest-settings.js +9 -2
- package/workspace/public/pm/dock-sessions.js +9 -2
- package/workspace/public/pm/dock.js +11 -0
- package/workspace/public/pm/frame-copy.js +1 -0
- package/workspace/public/pm/panel-newsess.js +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.109.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": {
|
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-08T03:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-08T03:57:21Z"}
|
|
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-08T03:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-08T03:57:21Z"}
|
|
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-08T03:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-08T03:57:21Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Guide
|
|
3
3
|
title: "Guide: layout"
|
|
4
4
|
description: "The frame: one top bar, the place on screen, the detail and the agent dock; the phone tabs and lists; the keys; and the older layout."
|
|
5
|
-
timestamp: 2026-10-
|
|
5
|
+
timestamp: 2026-10-08
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Guide: layout
|
|
@@ -31,7 +31,7 @@ Settings holds settings only, in eight sections. On a wide screen they are cards
|
|
|
31
31
|
|
|
32
32
|
- **Repositories**: every registered repository. Press a repository to make it the current one. Press its ⋯ for **Rename** or **Remove from PMOS**. Each asks in a sheet, and a remove asks you to confirm. **Add repository** shows the scan of a folder before you add it.
|
|
33
33
|
- **Profiles**: the Claude profiles a session can start with. These are the descriptors in `~/.claude/profiles`, and also the profiles you already run: a shell command that sets `CLAUDE_CONFIG_DIR` (for example `alias claude-work='CLAUDE_CONFIG_DIR=~/.claude-work claude'`), a launcher script named `claude-*`, or a config folder such as `~/.claude-work`. Each profile is a row with a **Detected** badge when PMOS found it rather than wrote it, and a **Default** badge when it is the default. Its ⋯ menu has **Use as default**. A profile found this way says where it was found, and a session under it sets only `CLAUDE_CONFIG_DIR`. The list reads again every few seconds while Settings is open, and **Look again** in the Claude profiles menu reads it at once. When nothing is found, the note names the start-up files and folders PMOS looked at. Press **New profile** to make one. This writes `~/.claude/profiles/<id>.json`. Account secrets are never shown in the browser.
|
|
34
|
-
- **New sessions**: the default CLI, the default model, the default Claude profile and the default launch flags for a new session. The flags come from `claude --help`, for example `--chrome`. A flag that needs a value lists the values it accepts.
|
|
34
|
+
- **New sessions**: the default CLI, the default model, the default Claude profile and the default launch flags for a new session. The flags come from `claude --help`, for example `--chrome`. A flag that needs a value lists the values it accepts. The default profile is one setting for the whole workspace. PMOS keeps it on the server, so every browser, port and device starts a Claude session with the same profile. Choose it here or with "make … the default" in the New session form. Both change the same setting.
|
|
35
35
|
- **Validate consent**: the consent of the current repository. Use its switch to turn it on or off. **Open Validate** opens the Validate page as a tab.
|
|
36
36
|
- **People**: whether the morning brief keeps attendee names from the calendar for the current repository. It is off until you turn it on. Turning it off also hides the names recorded before.
|
|
37
37
|
- **Online**: puts this workspace at your own address, such as `pmos.pm-os.app`, through a Cloudflare tunnel. Enter the public address, the tunnel name, your Cloudflare team domain, the Access audience (AUD) tag and your email, then turn on the **Online** switch. The workspace runs the tunnel and remembers the switch when it restarts. On your phone, open the address and sign in with Cloudflare Access (Google or an email code). The workspace does not ask for its token there. Only the computer that runs the workspace can change this section. A phone sees whether it is on. When a sign-in at the address is refused, this section names the check that failed, such as the email or the AUD tag. [REMOTE.md](../REMOTE.md) has the one-time Cloudflare steps.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.109.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.109.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/workspace/package.json
CHANGED
|
@@ -28,7 +28,7 @@ import { pmGet, pmPost } from './http.js';
|
|
|
28
28
|
import { button, iconButton, field, badge, row, tabs, menu, empty } from './primitives.js';
|
|
29
29
|
import { repoTuples, activeProduct, renameRepo, removeRepo } from './panel-repos.js';
|
|
30
30
|
import { repoRow } from './fixture.js';
|
|
31
|
-
import { sessionDefaults, setSessionDefaults } from './dock.js';
|
|
31
|
+
import { sessionDefaults, setSessionDefaults, adoptProfileDefault } from './dock.js';
|
|
32
32
|
import { COPY } from './frame-copy.js';
|
|
33
33
|
import { askConfirm } from './dialogs.js';
|
|
34
34
|
import { icon } from './icons.js';
|
|
@@ -219,8 +219,13 @@ function profilesSection() {
|
|
|
219
219
|
/** The default Claude profile, from a row or the select: kept for the dock, and remembered by the server for the New session form. */
|
|
220
220
|
function chooseDefaultProfile(id) {
|
|
221
221
|
setSessionDefaults({ profile: id || null });
|
|
222
|
-
pmPost('/api/profiles/prefer', { agent: 'claude', profile: id || null });
|
|
223
222
|
setState({});
|
|
223
|
+
// the server's answer is the default: a refusal reads the profiles again, so the select goes back to what is stored
|
|
224
|
+
pmPost('/api/profiles/prefer', { agent: 'claude', profile: id || null }).then((j) => {
|
|
225
|
+
if (j && j.ok && j.prefs) { adoptProfileDefault({ prefs: j.prefs }); if (sess.profiles) sess.profiles = { ...sess.profiles, prefs: j.prefs }; }
|
|
226
|
+
else { sess.msg = (j && j.error) || P.profileDefaultFailed; readProfilesAgain(); }
|
|
227
|
+
setState({});
|
|
228
|
+
});
|
|
224
229
|
}
|
|
225
230
|
|
|
226
231
|
/* ── the Claude profile and launch flags a new session starts with (workspace-launch-flags) ───────────────────────── */
|
|
@@ -244,6 +249,8 @@ function readProfilesAgain() {
|
|
|
244
249
|
pmGet('/api/profiles').then((j) => {
|
|
245
250
|
sess.reading = false; sess.readAt = Date.now();
|
|
246
251
|
sess.profiles = j || { ok: false, error: 'no answer', profiles: [] };
|
|
252
|
+
// the server's default wins over this browser's copy, so every browser and port shows and starts with the same one
|
|
253
|
+
adoptProfileDefault(sess.profiles);
|
|
247
254
|
// the detail column and the New session form read the same answer
|
|
248
255
|
state.profiles = sess.profiles;
|
|
249
256
|
setState({});
|
|
@@ -24,7 +24,7 @@ import { state, setState } from './state.js';
|
|
|
24
24
|
import { boardOf } from './board-read.js';
|
|
25
25
|
import { button, iconButton, row, field, sheet, toast } from './primitives.js';
|
|
26
26
|
import { COPY } from './frame-copy.js';
|
|
27
|
-
import { sessionDefaults, loadSkills } from './dock.js';
|
|
27
|
+
import { sessionDefaults, adoptProfileDefault, loadSkills } from './dock.js';
|
|
28
28
|
|
|
29
29
|
let dataMod = null; let termMod = null; let iniMod = null; let tabsMod = null;
|
|
30
30
|
import('./data.js').then((m) => { dataMod = m; }).catch(() => { dataMod = null; });
|
|
@@ -298,10 +298,17 @@ export function openNewSessionSheet(repo, preset) {
|
|
|
298
298
|
const typed = nameF.control.value.trim();
|
|
299
299
|
const base = (sk ? (sk.label || sk.skill || sk.id) : (d.cli === 'claude' ? 'Claude' : 'Shell')) + (m.initiative ? ' · ' + m.initiative : '');
|
|
300
300
|
const name = typed || uniqueName(base);
|
|
301
|
+
// The default profile is the server's. This browser's copy can be empty or old (another browser, port or host name),
|
|
302
|
+
// so a Claude start reads it first; if the read fails, the copy is used.
|
|
303
|
+
const claudeStart = !!sk || d.cli === 'claude';
|
|
304
|
+
m.busy = true; // one start per press, while the read is out too
|
|
305
|
+
const profile = claudeStart && dataMod && typeof dataMod.loadProfiles === 'function'
|
|
306
|
+
? adoptProfileDefault(await dataMod.loadProfiles().catch(() => null)) : d.profile;
|
|
307
|
+
m.busy = false;
|
|
301
308
|
const common = {
|
|
302
309
|
name, agent: sk ? 'claude' : d.cli, initiative: m.initiative || null,
|
|
303
310
|
// the Settings defaults for a Claude session (workspace-launch-flags); a shell takes neither
|
|
304
|
-
profile:
|
|
311
|
+
profile: claudeStart ? profile : null,
|
|
305
312
|
flags: !sk && d.cli === 'claude' && d.flags.length ? d.flags.map((x) => ({ flag: x.flag, ...(x.value ? { value: x.value } : {}) })) : undefined,
|
|
306
313
|
skill: sk ? sk.id : null, workType: sk ? typeOfSkill(sk) : 'general',
|
|
307
314
|
tier: !sk && d.cli === 'claude' && d.tier !== 'auto' ? d.tier : null,
|
|
@@ -47,6 +47,17 @@ export function sessionDefaults() {
|
|
|
47
47
|
return { cli: CLIS.includes(r.cli) ? r.cli : 'shell', tier: TIERS.includes(r.tier) ? r.tier : 'auto', profile: cleanProfile(r.profile), flags: cleanFlags(r.flags) };
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
/* The default Claude profile is the SERVER's (prefs.json, `prefs.claude`), not this browser's. The copy above is a cache: it
|
|
51
|
+
* lives per browser origin, so another browser, a phone, or the workspace on another port or host name starts with an
|
|
52
|
+
* empty or old copy. A dock start then sent no profile, or an old one, and the session opened under a different Claude
|
|
53
|
+
* profile than the one set as the default. Every profiles read carries `prefs`; this makes the cache follow it. */
|
|
54
|
+
export function adoptProfileDefault(read) {
|
|
55
|
+
if (!read || read.ok === false || !read.prefs || typeof read.prefs !== 'object') return sessionDefaults().profile;
|
|
56
|
+
const want = cleanProfile(read.prefs.claude);
|
|
57
|
+
if (sessionDefaults().profile !== want) setSessionDefaults({ profile: want });
|
|
58
|
+
return want;
|
|
59
|
+
}
|
|
60
|
+
|
|
50
61
|
export function setSessionDefaults(patch) {
|
|
51
62
|
const next = { ...sessionDefaults(), ...(patch || {}) };
|
|
52
63
|
const clean = { cli: CLIS.includes(next.cli) ? next.cli : 'shell', tier: TIERS.includes(next.tier) ? next.tier : 'auto', profile: cleanProfile(next.profile), flags: cleanFlags(next.flags) };
|
|
@@ -175,6 +175,7 @@ export const COPY = {
|
|
|
175
175
|
modelDeep: 'Deep',
|
|
176
176
|
sessionsNote: 'The dock starts new sessions with these defaults. A model, a profile and launch flags apply only to a Claude session. The New session form can change them for one session.',
|
|
177
177
|
profileDefault: 'Default Claude profile',
|
|
178
|
+
profileDefaultFailed: 'The default profile could not be saved.',
|
|
178
179
|
noProfile: 'No profile',
|
|
179
180
|
profileMissing: (id) => id + ' (not found now)',
|
|
180
181
|
flagsDefault: 'Default launch flags',
|
|
@@ -34,7 +34,7 @@ import { state, setState, FIXTURE } from './state.js';
|
|
|
34
34
|
import * as FX from './fixture.js';
|
|
35
35
|
import { openTerm as openTermTab } from './panel-initiatives.js';
|
|
36
36
|
import { startHere } from './panel-trees.js';
|
|
37
|
-
import { sessionDefaults } from './dock.js';
|
|
37
|
+
import { sessionDefaults, setSessionDefaults, adoptProfileDefault } from './dock.js';
|
|
38
38
|
import { button } from './primitives.js';
|
|
39
39
|
import { flagPicker, flagsLine, flagsMissingValue, flagsWire } from './flag-picker.js';
|
|
40
40
|
|
|
@@ -184,6 +184,8 @@ function refreshReads() {
|
|
|
184
184
|
}
|
|
185
185
|
if (typeof dataMod.loadProfiles === 'function') {
|
|
186
186
|
dataMod.loadProfiles().then((r) => {
|
|
187
|
+
// the server's Claude default wins over this browser's copy (dock.js adoptProfileDefault)
|
|
188
|
+
adoptProfileDefault(r);
|
|
187
189
|
setState({ profiles: r || null });
|
|
188
190
|
// Preselect from the server's remembered preference — never from a hardcoded name. A
|
|
189
191
|
// preference naming a descriptor that no longer reads preselects NOTHING rather than
|
|
@@ -414,6 +416,8 @@ async function setDefault() {
|
|
|
414
416
|
if (!dataMod || typeof dataMod.preferProfile !== 'function') return;
|
|
415
417
|
const r = await dataMod.preferProfile(state.newSessAgent || 'shell', state.preflightProfile === undefined ? null : state.preflightProfile);
|
|
416
418
|
if (!r || !r.ok) { setState({ newSessError: (r && r.error) || 'the default could not be saved' }); return; }
|
|
419
|
+
// the Claude default is one default: Settings and a dock start read it too, so they follow this choice
|
|
420
|
+
if ((state.newSessAgent || 'shell') === 'claude') setSessionDefaults({ profile: state.preflightProfile || null });
|
|
417
421
|
setState((s) => ({ newSessError: null, profiles: s.profiles ? { ...s.profiles, prefs: r.prefs || {} } : s.profiles }));
|
|
418
422
|
}
|
|
419
423
|
|