create-pmos 0.829.0 → 0.831.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 +149 -49
- 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/briefing-premium-board-test.js +1 -1
- package/workspace/briefing-premium-insights-test.js +1 -1
- package/workspace/changelog.json +148 -22
- package/workspace/guide/agent-capabilities.md +1 -1
- package/workspace/guide/backlog.md +12 -1
- package/workspace/guide/cli.md +20 -1
- package/workspace/guide/home.md +1 -1
- package/workspace/guide/layout.md +3 -0
- package/workspace/lib/anchor-id.js +226 -0
- package/workspace/lib/artefacts-cli.js +25 -1
- package/workspace/lib/code-map.js +8 -2
- package/workspace/lib/factory-floor.js +16 -8
- package/workspace/lib/features.json +14 -13
- package/workspace/lib/initiative-cli.js +67 -2
- package/workspace/lib/lessons-draft.js +242 -0
- package/workspace/lib/people-cli.js +9 -1
- package/workspace/lib/people-prep.js +140 -0
- package/workspace/lib/pmos-verbs.js +2 -0
- package/workspace/lib/prefs-sync.js +1 -1
- package/workspace/lib/print-cli.js +49 -0
- package/workspace/lib/print-pdf.js +96 -0
- package/workspace/lib/review-reasons.js +121 -9
- package/workspace/lib/route-modules.js +1 -0
- package/workspace/lib/routes-c3-strategy.js +2 -1
- package/workspace/lib/routes-proposals.js +2 -2
- package/workspace/lib/routes-report-design.js +3 -1
- package/workspace/lib/routes-skill-map.js +39 -0
- package/workspace/lib/routes-strategy-card.js +13 -6
- package/workspace/lib/skill-map.js +199 -0
- package/workspace/lib/team-cli.js +20 -1
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/action-keys.js +1 -0
- package/workspace/public/pm/ask-here-ctx.js +25 -1
- package/workspace/public/pm/ask-here.css +7 -0
- package/workspace/public/pm/ask-here.js +15 -2
- package/workspace/public/pm/bd-backlog.css +61 -0
- package/workspace/public/pm/bd-backlog.js +62 -8
- package/workspace/public/pm/bd-work.js +12 -1
- package/workspace/public/pm/card-fold.js +123 -0
- package/workspace/public/pm/code-map.js +15 -4
- package/workspace/public/pm/cozy-board.css +5 -1
- package/workspace/public/pm/cozy-ev.css +7 -0
- package/workspace/public/pm/cozy-nav.js +2 -0
- package/workspace/public/pm/cozy-pop-work.js +2 -0
- package/workspace/public/pm/cozy-search.js +2 -2
- package/workspace/public/pm/factory.js +199 -0
- package/workspace/public/pm/pop-cap.js +5 -3
- package/workspace/public/pm/premium-board.js +4 -0
- package/workspace/public/pm/premium-report-read.js +11 -2
- package/workspace/public/pm/print-pdf.js +191 -0
- package/workspace/public/pm/readonly.js +2 -0
- package/workspace/public/pm/review-reasons.js +19 -5
- package/workspace/public/pm/skill-map.js +57 -0
- package/workspace/public/premium-board.html +2 -0
- package/workspace/test-lists/anchor-id.json +9 -0
- package/workspace/test-lists/card-fold.json +9 -0
- package/workspace/test-lists/factory-page-ui.json +9 -0
- package/workspace/test-lists/lessons-on-close.json +9 -0
- package/workspace/test-lists/people-prep.json +9 -0
- package/workspace/test-lists/print-pdf.json +9 -0
- package/workspace/test-lists/skill-map.json +9 -0
- package/workspace/test-lists/surface-ask-card.json +9 -0
- package/workspace/test-lists/voice-files.json +9 -0
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
* GET /api/voice?ws=<id> → { ok, rows, unsorted, score, suggest } customer voice by reason (lib/review-reasons.js, idea A427)
|
|
22
22
|
* POST /api/voice/file { ws, reason } → { ok, capture } the ✦: file the complaint as a triage item; /api/voice/undo { ws, capture } takes it back
|
|
23
|
+
* POST /api/voice/unread { ws, file } → { ok } takes back an export PMOS read by itself from the product's files
|
|
23
24
|
*
|
|
24
25
|
* The notes come from the Board's own backlog route (GET /api/boards/backlog, every view, the new-work stages), so they read the rows the Board draws.
|
|
25
26
|
* WHO WRITES. A page press: pm-guard requirePagePress checks the page's Origin and launch nonce. Nothing here is sent anywhere. */
|
|
@@ -109,16 +110,21 @@ async function positioning(req, res, url, ctx, send) {
|
|
|
109
110
|
|
|
110
111
|
/** Customer voice (idea A427, initiative review-reasons): survey comments and app-store reviews grouped by reason, lib/review-reasons.js.
|
|
111
112
|
* GET /api/voice?ws=<id> → { ok, rows, unsorted, score, suggest }; POST /api/voice/file { ws, reason } → { ok, capture };
|
|
112
|
-
* POST /api/voice/undo { ws, capture } → { ok }
|
|
113
|
+
* POST /api/voice/undo { ws, capture } → { ok }; POST /api/voice/unread { ws, file } → { ok } takes back an export PMOS read by itself
|
|
114
|
+
* (review-reasons-files). The GET reads new exports in the product's files first and returns `reads`. The POSTs are page presses.
|
|
115
|
+
* Nothing is sent anywhere. */
|
|
113
116
|
async function voice(req, res, url, ctx, send) {
|
|
114
117
|
const RR = require('./review-reasons.js');
|
|
115
118
|
if (url.pathname === '/api/voice' && req.method === 'GET') {
|
|
116
119
|
const root = rootFor(ctx, wsOf(ctx, url.searchParams.get('ws') || null));
|
|
117
|
-
let G;
|
|
118
|
-
try {
|
|
119
|
-
|
|
120
|
+
let G, lines;
|
|
121
|
+
try {
|
|
122
|
+
RR.readExports(root); // an export in the product's files shows with no typed ask (review-reasons-files); kept 60 s per product
|
|
123
|
+
lines = RR.read(root); G = RR.group(lines, Date.now());
|
|
124
|
+
} catch (e) { return send(500, { ok: false, error: String((e && e.message) || e).slice(0, 160) }); }
|
|
125
|
+
return send(200, { ok: true, rows: G.rows, unsorted: G.unsorted, score: G.score, suggest: G.suggest, reads: RR.readsOf(lines, Date.now()) });
|
|
120
126
|
}
|
|
121
|
-
if (
|
|
127
|
+
if (!['/api/voice/file', '/api/voice/undo', '/api/voice/unread'].includes(url.pathname)) return send(404, { ok: false, error: 'no such voice route' });
|
|
122
128
|
if (req.method !== 'POST') return send(405, { ok: false, error: 'POST' });
|
|
123
129
|
const rd = await ctx.readJson(req);
|
|
124
130
|
if (!rd.ok) return send(400, { ok: false, error: 'the body is not JSON' });
|
|
@@ -126,7 +132,8 @@ async function voice(req, res, url, ctx, send) {
|
|
|
126
132
|
const g = guard.requirePagePress(req, body);
|
|
127
133
|
if (!g.ok) return send(g.status, { ok: false, error: g.error });
|
|
128
134
|
const w = wsOf(ctx, body.ws || null), root = rootFor(ctx, w);
|
|
129
|
-
const r = url.pathname === '/api/voice/file' ? RR.file(root, body.reason, { actor: g.actor })
|
|
135
|
+
const r = url.pathname === '/api/voice/file' ? RR.file(root, body.reason, { actor: g.actor })
|
|
136
|
+
: url.pathname === '/api/voice/unread' ? RR.unread(root, body.file, { actor: g.actor }) : RR.undo(root, body.capture, { actor: g.actor });
|
|
130
137
|
if (r.ok && ctx.invalidateNeedsAgg) { try { ctx.invalidateNeedsAgg(w ? w.id : null); } catch { /* the needs queue recounts on its own read */ } }
|
|
131
138
|
return r.ok ? send(200, { ok: true, capture: r.capture || null }) : send(r.status || 400, { ok: false, error: r.error });
|
|
132
139
|
}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/* skill-map.js — the team skill map: what each person is strong at and often corrected on, and one pairing (bet A208, initiative skill-map;
|
|
3
|
+
* board BatchPeopleDS panel 11, agreed 2026-11-25). THE CORE of `pmos team skills` (lib/team-cli.js), GET/POST /api/team/skills
|
|
4
|
+
* (lib/routes-skill-map.js) and the Team skills block on Work (public/pm/skill-map.js).
|
|
5
|
+
*
|
|
6
|
+
* WHERE IT READS. Only records the product already holds, from the last WINDOW_DAYS days:
|
|
7
|
+
* approves an answered sign-off (lib/signoffs.js): a strong signal for its approver, of the kind its `what` names
|
|
8
|
+
* corrects a journal decision's `against` that starts with a name ("Ana: the dates are wrong"): a strong signal for Ana
|
|
9
|
+
* decides a journal decision whose text starts with a name ("Sam: launch on 9 Dec") or whose `by` is `pm:<slug>`: strong for the decider,
|
|
10
|
+
* unless a later decision replaced it or its outcome check said didnt-work: then a CORRECTED signal for the decider
|
|
11
|
+
* A decision an agent recorded (`by: agent:…`) with no name in its text counts for nobody. A decision logged by a press (`from`) is the PM
|
|
12
|
+
* approving a PMOS proposal, not a team decision, and counts for nobody. The kind comes from lib/correction-kinds.js's word lists; a text
|
|
13
|
+
* that matches none (`other`) is dropped.
|
|
14
|
+
*
|
|
15
|
+
* WHAT IT SHOWS. Per person: `strong` (kinds with MIN_SIGNALS or more strong signals and more strong than corrected) and `corrected` (kinds
|
|
16
|
+
* with MIN_SIGNALS or more corrected signals). A person with neither has no row (zero is silence). Rows are sorted by name: no score, no
|
|
17
|
+
* count and no rank ever leaves this module's view (the counts stay inside fold()).
|
|
18
|
+
* ONE pairing at a time: a person often corrected on a kind with a person strong at it, "Pair A with B on the next <kind> change.". A skip
|
|
19
|
+
* (✕) is one line in skill-map.jsonl in the records folder; the next pairing shows. Undo is a second line; the last line per key wins.
|
|
20
|
+
*
|
|
21
|
+
* WHO SEES IT. The person and their lead. The workspace's own user is the lead and sees every row. `as` (a person's own view) keeps only
|
|
22
|
+
* that person's row and a pairing that names nobody else (so in practice none). It is never in a report or a published page:
|
|
23
|
+
* FOR_REPORTS is false, and the route refuses a published read.
|
|
24
|
+
*
|
|
25
|
+
* signalsOf(root, { now }) → [{ who, kind, strong: bool, source }]
|
|
26
|
+
* fold(signals) → [{ who, strong: [kind], corrected: [kind], n: { strong: {kind: n}, corrected: {kind: n} } }] internal
|
|
27
|
+
* pairsOf(people) → [{ key, a, b, kind, text }] every pairing, in the order they are offered
|
|
28
|
+
* view(root, { now, as, dir }) → { ok, people: [{ who, strong, corrected }], pair, window_days, for_reports: false }
|
|
29
|
+
* act(dir, act, key, { by, now }) → { ok, line } | { ok: false, error } act ∈ skip · undo
|
|
30
|
+
* lines(v) → [string] the CLI's words
|
|
31
|
+
* CLI: node lib/skill-map.js count <root> prints `[skill-map] …` and the people with a row, alone on the last line (the health number)
|
|
32
|
+
*
|
|
33
|
+
* Works on any product built with PMOS, in either layout. Nothing is sent anywhere.
|
|
34
|
+
*/
|
|
35
|
+
const fs = require('fs');
|
|
36
|
+
const path = require('path');
|
|
37
|
+
|
|
38
|
+
const WINDOW_DAYS = 90;
|
|
39
|
+
const MIN_SIGNALS = 2;
|
|
40
|
+
const FILE = 'skill-map.jsonl';
|
|
41
|
+
const TAG = '[skill-map]';
|
|
42
|
+
const FOR_REPORTS = false;
|
|
43
|
+
const ACTS = ['skip', 'undo'];
|
|
44
|
+
const DAY = 864e5;
|
|
45
|
+
const one = (s, n = 300) => String(s == null ? '' : s).replace(/\s+/g, ' ').trim().slice(0, n);
|
|
46
|
+
|
|
47
|
+
const CK = () => require('./correction-kinds.js');
|
|
48
|
+
const AM = () => require('./approver-memory.js');
|
|
49
|
+
|
|
50
|
+
/** A kind's word in the map: the correction-kinds label, lower case ("dates", "scope", "wording"). */
|
|
51
|
+
function kindWord(kind) {
|
|
52
|
+
const k = CK().KINDS.find((x) => x.id === kind);
|
|
53
|
+
return k ? k.label.toLowerCase() : '';
|
|
54
|
+
}
|
|
55
|
+
function kindOf(text) { const k = CK().kindOf(text); return k === 'other' ? null : k; }
|
|
56
|
+
|
|
57
|
+
const cap = (s) => s ? s.charAt(0).toUpperCase() + s.slice(1) : s;
|
|
58
|
+
/** The person behind a `by`: `pm:<slug>` → "Slug"; anything else (an agent) → null. */
|
|
59
|
+
function personOfBy(by) {
|
|
60
|
+
const m = /^pm:([a-z0-9_-]{1,40})$/i.exec(String(by || ''));
|
|
61
|
+
return m ? cap(m[1].replace(/[-_]+/g, ' ')) : null;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function signoffsOf(root) {
|
|
65
|
+
try { const SO = require('./signoffs.js'); const JT = require('./jira-tickets.js'); return SO.list(SO.fileOf(JT.stateDirOf(root))); } catch { return []; }
|
|
66
|
+
}
|
|
67
|
+
function journalOf(root, today) {
|
|
68
|
+
try { const J = require('./decision-journal.js'); return J.fold(J.read(root).rows, { today }); } catch { return []; }
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** Every signal in the window, oldest first. */
|
|
72
|
+
function signalsOf(root, { now = Date.now(), signoffs, journal } = {}) {
|
|
73
|
+
const today = new Date(now).toISOString().slice(0, 10);
|
|
74
|
+
const since = new Date(now - WINDOW_DAYS * DAY).toISOString().slice(0, 10);
|
|
75
|
+
const inWindow = (d) => { const s = String(d || '').slice(0, 10); return s >= since && s <= today; };
|
|
76
|
+
const out = [];
|
|
77
|
+
const push = (who, text, strong, source, date) => {
|
|
78
|
+
const kind = kindOf(text);
|
|
79
|
+
if (!who || !kind || !inWindow(date)) return;
|
|
80
|
+
out.push({ who: one(who, 80), kind, strong, source, date: String(date).slice(0, 10) });
|
|
81
|
+
};
|
|
82
|
+
for (const s of signoffs || (root ? signoffsOf(path.resolve(root)) : [])) {
|
|
83
|
+
if (!s || !s.who || s.state !== 'answered') continue;
|
|
84
|
+
push(s.who, s.what, true, 'sign-off ' + (s.id || ''), s.answeredAt || s.asked || s.at);
|
|
85
|
+
}
|
|
86
|
+
const W = AM();
|
|
87
|
+
for (const e of journal || (root ? journalOf(path.resolve(root), today) : [])) {
|
|
88
|
+
if (!e || e.from) continue; // a press-logged line is the PM approving a PMOS proposal
|
|
89
|
+
const date = e.date || String(e.at || '').slice(0, 10);
|
|
90
|
+
const obj = e.against ? W.whoOf(e.against) : null;
|
|
91
|
+
if (obj) push(obj.who, obj.text + ' ' + (e.decided || ''), true, 'decision ' + e.id, date);
|
|
92
|
+
const named = W.whoOf(e.decided);
|
|
93
|
+
const who = named ? named.who : personOfBy(e.by);
|
|
94
|
+
if (!who) continue;
|
|
95
|
+
const text = named ? named.text : e.decided;
|
|
96
|
+
const wrong = !!e.replacedBy || e.state === 'replaced' || !!(e.verdict && e.verdict.verdict === 'didnt-work');
|
|
97
|
+
push(who, text, !wrong, 'decision ' + e.id, date);
|
|
98
|
+
}
|
|
99
|
+
return out.sort((a, b) => a.date.localeCompare(b.date));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/** One entry per person (names that are the same person merge), with the counts kept inside. */
|
|
103
|
+
function fold(signals) {
|
|
104
|
+
const W = AM();
|
|
105
|
+
const people = [];
|
|
106
|
+
for (const s of signals || []) {
|
|
107
|
+
let p = people.find((x) => W.same(x.who, s.who));
|
|
108
|
+
if (!p) { p = { who: s.who, n: { strong: {}, corrected: {} } }; people.push(p); }
|
|
109
|
+
if (s.who.length > p.who.length) p.who = s.who;
|
|
110
|
+
const side = s.strong ? p.n.strong : p.n.corrected;
|
|
111
|
+
side[s.kind] = (side[s.kind] || 0) + 1;
|
|
112
|
+
}
|
|
113
|
+
const kinds = CK().IDS;
|
|
114
|
+
for (const p of people) {
|
|
115
|
+
p.strong = kinds.filter((k) => (p.n.strong[k] || 0) >= MIN_SIGNALS && (p.n.strong[k] || 0) > (p.n.corrected[k] || 0));
|
|
116
|
+
p.corrected = kinds.filter((k) => (p.n.corrected[k] || 0) >= MIN_SIGNALS);
|
|
117
|
+
}
|
|
118
|
+
return people.filter((p) => p.strong.length || p.corrected.length).sort((a, b) => a.who.localeCompare(b.who));
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const keyOf = (a, b, kind) => [a, b, kind].map((x) => one(x, 80).toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, '')).join(':');
|
|
122
|
+
|
|
123
|
+
/** Every pairing, the most-corrected person first, then the strongest partner, then by name. */
|
|
124
|
+
function pairsOf(people) {
|
|
125
|
+
const out = [];
|
|
126
|
+
for (const a of people || []) {
|
|
127
|
+
for (const kind of a.corrected) {
|
|
128
|
+
for (const b of people) {
|
|
129
|
+
if (b === a || !b.strong.includes(kind)) continue;
|
|
130
|
+
out.push({ key: keyOf(a.who, b.who, kind), a: a.who, b: b.who, kind, text: `Pair ${a.who} with ${b.who} on the next ${kindWord(kind).replace(/s$/, '')} change.`,
|
|
131
|
+
_w: [-(a.n.corrected[kind] || 0), -(b.n.strong[kind] || 0)] });
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
out.sort((x, y) => x._w[0] - y._w[0] || x._w[1] - y._w[1] || x.a.localeCompare(y.a) || x.b.localeCompare(y.b) || x.kind.localeCompare(y.kind));
|
|
136
|
+
return out.map(({ _w, ...p }) => p);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function recordsDirOf(root) {
|
|
140
|
+
try { const { repoScript } = require('./repo-script.js'); return require(repoScript('signals/layout-paths.js')).pathsFor(root).recordsDir; } catch { return path.join(root, 'planning', 'records'); }
|
|
141
|
+
}
|
|
142
|
+
function readLines(dir) {
|
|
143
|
+
let text = '';
|
|
144
|
+
try { text = fs.readFileSync(path.join(dir, FILE), 'utf8'); } catch { return []; }
|
|
145
|
+
const out = [];
|
|
146
|
+
for (const l of text.split('\n')) { if (!l.trim()) continue; try { const o = JSON.parse(l); if (o && ACTS.includes(o.act) && typeof o.key === 'string') out.push(o); } catch { /* torn */ } }
|
|
147
|
+
return out;
|
|
148
|
+
}
|
|
149
|
+
/** The keys skipped now: the last line per key wins. */
|
|
150
|
+
function skipped(dir) {
|
|
151
|
+
const last = new Map();
|
|
152
|
+
for (const l of readLines(dir)) last.set(l.key, l.act);
|
|
153
|
+
return new Set([...last].filter(([, a]) => a === 'skip').map(([k]) => k));
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
function act(dir, what, key, { by = 'pm', now = Date.now() } = {}) {
|
|
157
|
+
if (!ACTS.includes(what)) return { ok: false, error: `act must be one of ${ACTS.join(', ')}` };
|
|
158
|
+
if (typeof key !== 'string' || !/^[a-z0-9-]{1,80}:[a-z0-9-]{1,80}:[a-z]{1,20}$/.test(key)) return { ok: false, error: 'an unknown pairing' };
|
|
159
|
+
if (!dir) return { ok: false, error: 'this product has no records folder' };
|
|
160
|
+
const line = { act: what, key, at: new Date(now).toISOString(), by: one(by, 60) };
|
|
161
|
+
try { fs.mkdirSync(dir, { recursive: true }); fs.appendFileSync(path.join(dir, FILE), JSON.stringify(line) + '\n'); } catch (e) { return { ok: false, error: 'not saved: ' + e.message }; }
|
|
162
|
+
return { ok: true, line };
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/** The map as the page and the CLI show it: names and kind words only, no number. */
|
|
166
|
+
function view(root, { now = Date.now(), as = null, dir = null, signoffs, journal, log = null } = {}) {
|
|
167
|
+
const people = fold(signalsOf(root, { now, signoffs, journal }));
|
|
168
|
+
const W = AM();
|
|
169
|
+
const skips = skipped(dir || (root ? recordsDirOf(path.resolve(root)) : null));
|
|
170
|
+
let pairs = pairsOf(people).filter((p) => !skips.has(p.key));
|
|
171
|
+
let rows = people;
|
|
172
|
+
if (as) {
|
|
173
|
+
rows = people.filter((p) => W.same(p.who, as));
|
|
174
|
+
pairs = pairs.filter((p) => W.same(p.a, as) && W.same(p.b, as)); // a person's own view never names someone else
|
|
175
|
+
}
|
|
176
|
+
const pub = rows.map((p) => ({ who: p.who, strong: p.strong.map(kindWord), corrected: p.corrected.map(kindWord) }));
|
|
177
|
+
const pair = pairs[0] || null;
|
|
178
|
+
if (log) log(`${TAG} ${pub.length} people · ${pair ? 'a pairing' : 'no pairing'}${as ? ' · own view' : ''}`);
|
|
179
|
+
return { ok: true, people: pub, pair, window_days: WINDOW_DAYS, for_reports: FOR_REPORTS };
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
function lines(v) {
|
|
183
|
+
if (!v || !v.people || !v.people.length) return ['No one has a kind of decision to show yet (last 90 days of sign-offs and decisions).'];
|
|
184
|
+
const out = v.people.map((p) => `${p.who} · strong at: ${p.strong.join(', ') || '—'} · often corrected on: ${p.corrected.join(', ') || '—'}`);
|
|
185
|
+
if (v.pair) out.push(`✦ ${v.pair.text} (skip: pmos team skills skip ${v.pair.key})`);
|
|
186
|
+
return out;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
function count(root, { now = Date.now() } = {}) { return view(root, { now }).people.length; }
|
|
190
|
+
|
|
191
|
+
module.exports = { WINDOW_DAYS, MIN_SIGNALS, FILE, TAG, FOR_REPORTS, ACTS, kindWord, personOfBy, signalsOf, fold, pairsOf, keyOf, readLines, skipped, act, view, lines, count, recordsDirOf };
|
|
192
|
+
|
|
193
|
+
if (require.main === module) {
|
|
194
|
+
const a = process.argv.slice(2);
|
|
195
|
+
if (a[0] !== 'count') { console.error('usage: node lib/skill-map.js count <root>'); process.exit(2); }
|
|
196
|
+
const n = count(path.resolve(a[1] || '.'));
|
|
197
|
+
console.log(`${TAG} ${n} people have a row on the team skill map (last ${WINDOW_DAYS} days)`);
|
|
198
|
+
console.log(String(n));
|
|
199
|
+
}
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
* pmos team status [--json] who works on what, what waits, and the inbox entries of ended dispatches
|
|
8
8
|
* pmos team pause|resume <role|all> stop or restart a role's runs (a running run ends on its own)
|
|
9
9
|
* pmos team dispatch --unit <unit> [--roles a,b] · pmos team pause|resume --unit <unit> the same for a whole unit (chief-unit-owners ✦3)
|
|
10
|
+
* pmos team skills [--as <name>] [--json] the team skill map: strong at, often corrected on, one pairing (bet A208)
|
|
11
|
+
* pmos team skills skip|undo <pairing key> skip the ✦ pairing for the next one, or bring it back
|
|
10
12
|
* common: [--root <dir>]
|
|
11
13
|
*
|
|
12
14
|
* INSIDE A ROLE RUN only (the server pins PMOS_TEAM_RUN, _ROLE, _FILE, _ROOT, _INI, _MODE; nothing here takes them as arguments):
|
|
@@ -21,7 +23,7 @@ const { execFileSync } = require('child_process');
|
|
|
21
23
|
const T = require('./agent-team.js');
|
|
22
24
|
const R = require('./team-runs.js');
|
|
23
25
|
|
|
24
|
-
const COMMANDS = { team: ['roles', 'dispatch', 'status', 'pause', 'resume', 'wrote', 'done', 'verdict'] };
|
|
26
|
+
const COMMANDS = { team: ['roles', 'dispatch', 'status', 'pause', 'resume', 'wrote', 'done', 'verdict', 'skills'] };
|
|
25
27
|
const USAGE = [
|
|
26
28
|
'usage: pmos team roles|dispatch|status|pause|resume — the role agents under the chief of staff',
|
|
27
29
|
' pmos team roles what each role owns, what wakes it, its action class and daily budget',
|
|
@@ -30,6 +32,8 @@ const USAGE = [
|
|
|
30
32
|
' pmos team status who works on what, what waits, and the inbox entries of ended dispatches',
|
|
31
33
|
' pmos team pause|resume <role|all> stop or restart a role\'s runs',
|
|
32
34
|
' pmos team dispatch --unit <unit> · pmos team pause|resume --unit <unit> the same for a whole program, product or project (pmos units)',
|
|
35
|
+
' pmos team skills [--as <name>] the team skill map (last 90 days): strong at, often corrected on, one ✦ pairing',
|
|
36
|
+
' pmos team skills skip|undo <key> skip the ✦ pairing for the next one, or bring it back',
|
|
33
37
|
'Inside a role run: pmos team wrote <path> · pmos team done "<summary>" [--propose <path> "<what>"] · pmos team verdict <path> pass|fail "<why>"',
|
|
34
38
|
'every command: [--json] [--root <dir>]',
|
|
35
39
|
];
|
|
@@ -69,6 +73,21 @@ async function run(argv, { say = (s) => console.log(s), env = process.env, cwd =
|
|
|
69
73
|
const root = inRun ? (env.PMOS_TEAM_ROOT || repoRoot(cwd)) : (flags.root ? path.resolve(cwd, flags.root) : repoRoot(cwd));
|
|
70
74
|
const dir = inRun && env.PMOS_TEAM_FILE ? path.dirname(env.PMOS_TEAM_FILE) : require('./driver.js').stateDirOf(root, { create: ['dispatch', 'pause', 'resume'].includes(verb) });
|
|
71
75
|
|
|
76
|
+
if (verb === 'skills') { // bet A208: the team skill map (lib/skill-map.js), the same view the Work block reads
|
|
77
|
+
if (inRun) return fail('a role run cannot read the team skill map; it is for the person and their lead');
|
|
78
|
+
const SM = require('./skill-map.js');
|
|
79
|
+
const sub = pos[0];
|
|
80
|
+
if (sub === 'skip' || sub === 'undo') {
|
|
81
|
+
const r = SM.act(SM.recordsDirOf(root), sub, pos[1], { by: 'cli', now });
|
|
82
|
+
return r.ok ? ok({ line: r.line }, sub === 'skip' ? '✓ pairing skipped; the next one shows (undo: pmos team skills undo ' + pos[1] + ')' : '✓ pairing back') : fail(r.error);
|
|
83
|
+
}
|
|
84
|
+
if (sub) return fail(`unknown skills command "${sub}" — skip or undo`, 2);
|
|
85
|
+
const v = SM.view(root, { now, as: flags.as || null });
|
|
86
|
+
console.error(`${SM.TAG} ${v.people.length} people · ${v.pair ? 'a pairing' : 'no pairing'}${flags.as ? ' · own view' : ''}`);
|
|
87
|
+
if (json) return ok({ people: v.people, pair: v.pair, window_days: v.window_days, for_reports: v.for_reports });
|
|
88
|
+
for (const l of SM.lines(v)) say(l);
|
|
89
|
+
return 0;
|
|
90
|
+
}
|
|
72
91
|
if (verb === 'roles') {
|
|
73
92
|
const t = T.tableForPage();
|
|
74
93
|
// launch simulation W3: say whether the Builder can run here, from the files on disk (lib/work-kind.js factoryRuns)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.831.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.831.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -165,6 +165,7 @@ export function sheetHtml(here = new Set()) {
|
|
|
165
165
|
return `<div class="pm-row"><h2 class="pm-h-sm" id="akTitle">Keys</h2>`
|
|
166
166
|
+ `<button type="button" class="pm-btn" data-ak-close aria-label="Close" title="Close">${X}</button></div>`
|
|
167
167
|
+ '<p class="pm-meta">Point at an item, or tab to it, then press its key.</p>'
|
|
168
|
+
+ '<p class="pm-meta">Right-click anything (long-press on a phone) to ask PMOS about it and see what PMOS can do for it.</p>' // surface-ask-card: the Ask card, named
|
|
168
169
|
+ `<ul>${KEYS.map((k) => row(k.key.toUpperCase(), k.say, here.has(k.act))).join('')}${row('F', 'Focus on this item')}${row('?', 'This list')}</ul>`
|
|
169
170
|
+ '<p class="pm-meta"><a href="/premium-viewer.html?open=features" data-ak-features>Every feature, with its command</a></p>'; // F: pm/focus-mode.js (bet A335); the link: feature-directory
|
|
170
171
|
}
|
|
@@ -193,7 +193,8 @@ export function target(c) {
|
|
|
193
193
|
const subject = l === 'field' ? [c.field || c.at, c.value].filter(Boolean).join(': ') : '';
|
|
194
194
|
return {
|
|
195
195
|
id: c.record.id, kind: c.record.kind.replace(/\s+/g, '-'), title: c.record.title || c.record.id, subject,
|
|
196
|
-
say: 'The PM pressed ' + (l === 'field' ? (c.field || c.at || 'part') + ' of ' : '') + 'the ' + c.record.kind + ' "' + (c.record.title || c.record.id) + '" on ' + (c.page || 'this page') + '. Read that record with pmos before you answer.'
|
|
196
|
+
say: 'The PM pressed ' + (l === 'field' ? (c.field || c.at || 'part') + ' of ' : '') + 'the ' + c.record.kind + ' "' + (c.record.title || c.record.id) + '" on ' + (c.page || 'this page') + '. Read that record with pmos before you answer.'
|
|
197
|
+
+ (c.record.kind === 'person' ? ' For a 1:1, run `pmos people prep "' + (c.record.title || c.record.id) + '"` and answer from its lines, with their sources.' : ''),
|
|
197
198
|
facts: facts.filter((f) => clean(f[1])),
|
|
198
199
|
};
|
|
199
200
|
}
|
|
@@ -216,6 +217,8 @@ const Q = {
|
|
|
216
217
|
'ticket': { '': ['Is it in step with PMOS?', 'Where does it stand?', 'Who is on it?'] },
|
|
217
218
|
'meeting': { '': ['What should I settle in it?', 'What is owed to me?', 'Draft the agenda'] },
|
|
218
219
|
'event': { '': ['What should I settle in it?', 'What is owed to me?', 'Draft the agenda'] },
|
|
220
|
+
// a person (people-prep, A85): the 1:1 brief first, so it shows with nothing typed (LINE.md Rule 12); target() names its command
|
|
221
|
+
'person': { '': ['Prepare my 1:1 with them', 'What are they carrying?', 'Where are they stuck?'] },
|
|
219
222
|
};
|
|
220
223
|
const SECTION_Q = ['What needs me here?', 'What changed here this week?', 'Explain this part'];
|
|
221
224
|
/** The field kind a column or label is: due, owner, status, stage, milestone, or '' */
|
|
@@ -238,6 +241,27 @@ export function questionsOf(c) {
|
|
|
238
241
|
const fk = l === 'field' ? (c.at ? 'place' : fieldKind(c.field)) : '';
|
|
239
242
|
return (k[fk] || k['']).slice(0, 3);
|
|
240
243
|
}
|
|
244
|
+
/* ── what PMOS can do for the pressed record (initiative surface-ask-card, board SfA): the user features whose row in lib/features.json
|
|
245
|
+
* names the record's kind in `ask`. A press asks the feature's command about this record in the card's chat; nothing runs before it. ── */
|
|
246
|
+
export const MAX_ACTIONS = 4;
|
|
247
|
+
/** The card's "What PMOS can do" line: [{ id, name, prompt }], at most MAX_ACTIONS, registry order; [] at section or page level, or when no
|
|
248
|
+
* feature names the kind (zero is silence). features: GET /api/features' rows. A command with a hint takes the record's id after it. */
|
|
249
|
+
export function actionsOf(c, features) {
|
|
250
|
+
const l = level(c);
|
|
251
|
+
if (!c || l === 'page' || l === 'section' || !c.record || !c.record.kind) return [];
|
|
252
|
+
const kind = c.record.kind === 'subtask' ? 'task' : c.record.kind;
|
|
253
|
+
return (Array.isArray(features) ? features : [])
|
|
254
|
+
.filter((f) => f && f.audience === 'user' && f.cmd && Array.isArray(f.ask) && f.ask.includes(kind))
|
|
255
|
+
.slice(0, MAX_ACTIONS)
|
|
256
|
+
.map((f) => ({ id: f.id, name: f.name, prompt: f.hint ? f.cmd + ' ' + c.record.id : f.cmd }));
|
|
257
|
+
}
|
|
258
|
+
const escH = (v) => String(v == null ? '' : v).replace(/[&<>"']/g, (ch) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[ch]);
|
|
259
|
+
const BOLT = '<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M13 3L5 14h6l-1 7 8-11h-6z"/></svg>';
|
|
260
|
+
/** The line's markup: one button per action, its name beside a bolt; '' when there is none. Pure, so the test reads it. */
|
|
261
|
+
export function actionsHtml(actions) {
|
|
262
|
+
if (!Array.isArray(actions) || !actions.length) return '';
|
|
263
|
+
return `<div class="ah-do" role="group" aria-label="What PMOS can do">${actions.map((a) => `<button type="button" data-ah-do="${escH(a.prompt)}" data-ah-feature="${escH(a.id)}" title="${escH(a.prompt)}">${BOLT}${escH(a.name)}</button>`).join('')}</div>`;
|
|
264
|
+
}
|
|
241
265
|
const DOW = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], MON = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
242
266
|
const iso = (d) => d.toISOString().slice(0, 10);
|
|
243
267
|
const label = (d) => `${DOW[d.getUTCDay()]} ${d.getUTCDate()} ${MON[d.getUTCMonth()]}`;
|
|
@@ -34,3 +34,10 @@
|
|
|
34
34
|
.ah-card.sheet .ah-grab { display: block; }
|
|
35
35
|
@media (prefers-reduced-motion: no-preference) { .ah-card { animation: ah-in 160ms cubic-bezier(.2,.7,.2,1); } }
|
|
36
36
|
@keyframes ah-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
|
|
37
|
+
/* what PMOS can do for the pressed record (surface-ask-card): the same rows as the ✦ questions, a bolt for an action */
|
|
38
|
+
.ah-do { display: flex; flex-direction: column; gap: 2px; }
|
|
39
|
+
.ah-do button { all: unset; display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 10px; border-radius: 6px; cursor: pointer; color: var(--cz-ink); font-size: var(--fs-body); }
|
|
40
|
+
.ah-do button:focus-visible { outline: 2px solid var(--cz-blue); }
|
|
41
|
+
.ah-do svg { color: var(--cz-blue); flex: none; }
|
|
42
|
+
@media (hover: hover) { .ah-do button:hover { background: var(--cz-well); } }
|
|
43
|
+
.ah-card.sheet .ah-do button { min-height: 44px; }
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
* (field → record → section → page), ⤢ moves the talk into the one full chat (page-chat.js openAbout), × or Esc closes.
|
|
8
8
|
* the record its card catalog row, live (chat-cards.js, GET /api/card-rows) with the catalog's own buttons; a pressed due date of a task
|
|
9
9
|
* or a milestone brings the catalog's "Move the date" picker. Every press is one pmos command with Undo (action-run.js).
|
|
10
|
+
* can do what PMOS can do for that kind of record (initiative surface-ask-card): the features whose lib/features.json row names the kind
|
|
11
|
+
* in `ask` (GET /api/features, read once); one press asks the feature's command about this record in the chat. None: no line.
|
|
10
12
|
* ✦ lines three questions for that kind of thing and field; one press asks it.
|
|
11
13
|
* the chat the one chat of the page (page-chat.js box(): the same element and conversation the popup shows), opened on the record's own
|
|
12
14
|
* conversation (itemTarget: pop:<kind>:<id>, its first message carries what was pressed); answers come back with live cards.
|
|
@@ -23,6 +25,7 @@ import { noteUse } from './use-log.js';
|
|
|
23
25
|
const esc = (v) => String(v == null ? '' : v).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);
|
|
24
26
|
const P = (d) => `<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="${d}"/></svg>`;
|
|
25
27
|
const I = { up: 'M12 19V5M6 11l6-6 6 6', expand: 'M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7', x: 'M6 6l12 12M18 6L6 18', star: 'M12 3l1.8 5.4L19 10.2l-5.2 1.8L12 17.4l-1.8-5.4L5 10.2l5.2-1.8z' };
|
|
28
|
+
let FEATS = null; // GET /api/features' rows, read once per page (the Ask card's "What PMOS can do" line)
|
|
26
29
|
const S = { card: null, ctx: null, el: null, ring: null, ws: '', chat: null, chatEl: null, home: null, CU: null, row: undefined, today: '', key: 0, off: null };
|
|
27
30
|
const toast = (m) => { const t = document.getElementById('toast'); if (!t) return; t.textContent = m; t.classList.add('on'); setTimeout(() => t.classList.remove('on'), 4200); };
|
|
28
31
|
|
|
@@ -100,13 +103,21 @@ function draw() {
|
|
|
100
103
|
+ `<button type="button" class="ah-icb" data-ah="up" aria-label="Ask about the bigger part instead" title="Ask about the bigger part instead"${top ? ' disabled' : ''}>${P(I.up)}</button>`
|
|
101
104
|
+ `<button type="button" class="ah-icb" data-ah="full" aria-label="Open in the full chat" title="Open in the full chat">${P(I.expand)}</button>`
|
|
102
105
|
+ `<button type="button" class="ah-icb" data-ah="x" aria-label="Close" title="Close">${P(I.x)}</button></div>`
|
|
103
|
-
+ '<div class="ah-bd"><div class="ah-rec" id="ahRec"></div>'
|
|
106
|
+
+ '<div class="ah-bd"><div class="ah-rec" id="ahRec"></div><div id="ahDo"></div>'
|
|
104
107
|
+ `<div class="ah-sug" id="ahSug">${C.questionsOf(ctx).map((q) => `<button type="button" data-ah-q="${esc(q)}">${P(I.star)}${esc(q)}</button>`).join('')}</div></div>`
|
|
105
108
|
+ '<div class="ah-chat quiet" id="ahChat"></div>';
|
|
106
109
|
ring();
|
|
107
110
|
drawRecord();
|
|
111
|
+
drawActions();
|
|
108
112
|
mountChat();
|
|
109
113
|
}
|
|
114
|
+
/** What PMOS can do for the pressed record; the features are read once, and the line fills in when they arrive. */
|
|
115
|
+
function drawActions() {
|
|
116
|
+
const box = S.card && S.card.querySelector('#ahDo'); if (!box) return;
|
|
117
|
+
if (FEATS) { box.innerHTML = C.actionsHtml(C.actionsOf(S.ctx, FEATS)); return; }
|
|
118
|
+
const k = S.key;
|
|
119
|
+
pmGet('/api/features').then((r) => { FEATS = r && r.ok && Array.isArray(r.features) ? r.features : []; if (k === S.key) drawActions(); }).catch(() => { FEATS = []; });
|
|
120
|
+
}
|
|
110
121
|
function ring() {
|
|
111
122
|
if (S.ring) S.ring.classList.remove('ah-ring');
|
|
112
123
|
S.ring = null;
|
|
@@ -152,6 +163,7 @@ function ask(q) {
|
|
|
152
163
|
const holder = S.card && S.card.querySelector('#ahChat'); if (!holder) return;
|
|
153
164
|
holder.classList.remove('quiet');
|
|
154
165
|
const sug = S.card.querySelector('#ahSug'); if (sug) sug.hidden = true;
|
|
166
|
+
const can = S.card.querySelector('#ahDo'); if (can) can.hidden = true;
|
|
155
167
|
const ta = holder.querySelector('textarea'), form = holder.querySelector('form.hm-box');
|
|
156
168
|
if (!ta || !form) return;
|
|
157
169
|
ta.value = q; ta.dispatchEvent(new Event('input', { bubbles: true }));
|
|
@@ -184,7 +196,8 @@ function wireCard() {
|
|
|
184
196
|
if (a === 'x') { close(); return; }
|
|
185
197
|
if (a === 'full') { full(); return; }
|
|
186
198
|
if (a === 'up') { const w = C.widen(S.ctx); if (w) { S.ctx = w; S.row = undefined; S.key += 1; noteUse('ask-here-widen'); putChatBack(); draw(); } return; }
|
|
187
|
-
const q = b.getAttribute('data-ah-q'); if (q) { noteUse('ask-here-question'); ask(q); }
|
|
199
|
+
const q = b.getAttribute('data-ah-q'); if (q) { noteUse('ask-here-question'); ask(q); return; }
|
|
200
|
+
const d = b.getAttribute('data-ah-do'); if (d) { noteUse('ask-here-do'); ask(d); }
|
|
188
201
|
});
|
|
189
202
|
card.addEventListener('input', (e) => { if (e.target && e.target.matches('textarea')) card.querySelector('#ahChat').classList.remove('quiet'); });
|
|
190
203
|
const esc = (e) => { if (e.key === 'Escape' && S.card) { e.stopPropagation(); close(); } };
|
|
@@ -278,3 +278,64 @@ textarea.bk-rvl-ed, .bk-rvl textarea.bd { resize: vertical; min-height: 180px; }
|
|
|
278
278
|
.pm-ds .ln-c-fin { color: var(--ink); line-height: 1.4; }
|
|
279
279
|
.pm-ds .ln-t .pm-badge.ln-ok { background: var(--leaf-tint); color: var(--leaf); }
|
|
280
280
|
.pm-ds .ln-t .pm-badge.ln-late { background: none; box-shadow: inset 0 0 0 1px var(--alert); color: var(--alert); }
|
|
281
|
+
|
|
282
|
+
/* ── Work › Factory (factory-page-ui; boards FxFloor and FxStation on the main canvas) ── pm/factory.js draws it. Komorebi tokens only.
|
|
283
|
+
* Every class starts with ff- (the page) or fx- (the station popup). Zero is silence: a quiet station is grey and has no numbers. */
|
|
284
|
+
.pm-ds .ff { display: flex; flex-direction: column; gap: var(--space-16); padding: var(--space-16) 0; }
|
|
285
|
+
.pm-ds .ff-andon { display: flex; gap: var(--space-12); align-items: flex-start; margin: 0; padding: var(--space-12) var(--space-16); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); color: var(--ink); font-size: var(--fs-row); line-height: 1.45; }
|
|
286
|
+
.pm-ds .ff-andon small { display: block; color: var(--muted); font-size: var(--fs-meta); }
|
|
287
|
+
.pm-ds .ff-andon .bd-lamp { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--leaf); }
|
|
288
|
+
.pm-ds .ff-andon.alert { background: var(--alert-tint); border-color: var(--alert); }
|
|
289
|
+
.pm-ds .ff-andon.alert .bd-lamp { background: var(--alert); }
|
|
290
|
+
.pm-ds .ff-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr) 14px) minmax(0, 1fr); align-items: stretch; }
|
|
291
|
+
.pm-ds .ff-arr { align-self: center; text-align: center; color: var(--muted); font-size: var(--fs-row); }
|
|
292
|
+
.pm-ds :is(.ff-st, .ff-side) { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: var(--space-12); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); }
|
|
293
|
+
.pm-ds :is(.ff-st, .ff-side).con { box-shadow: inset 3px 0 0 var(--alert); }
|
|
294
|
+
.pm-ds :is(.ff-st, .ff-side).quiet { background: var(--well); color: var(--muted); }
|
|
295
|
+
.pm-ds :is(.ff-st, .ff-side) header { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: var(--fs-row); }
|
|
296
|
+
.pm-ds :is(.ff-st, .ff-side).quiet header { color: var(--muted); }
|
|
297
|
+
.pm-ds :is(.ff-st, .ff-side) header b { flex: 1; min-width: 0; font-weight: var(--fw-strong); }
|
|
298
|
+
.pm-ds .ff-ic svg, .pm-ds .ff-open svg, .pm-ds .ff-undo svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
|
|
299
|
+
.pm-ds .ff-open, .pm-ds .ff-undo { all: unset; box-sizing: border-box; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-md); color: var(--muted); cursor: pointer; }
|
|
300
|
+
.pm-ds .ff-open:hover, .pm-ds .ff-undo:hover { background: var(--well); color: var(--ink); }
|
|
301
|
+
.pm-ds .ff-open:focus-visible, .pm-ds .ff-undo:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
|
|
302
|
+
.pm-ds .ff-you.con .ff-go { background: var(--blue); color: var(--on-blue); }
|
|
303
|
+
.pm-ds .ff-does { margin: 0; color: var(--muted); font-size: var(--fs-meta); line-height: 1.4; }
|
|
304
|
+
.pm-ds .ff-kv { display: flex; justify-content: space-between; gap: var(--space-8); font-size: var(--fs-meta); color: var(--muted); }
|
|
305
|
+
.pm-ds .ff-kv b { color: var(--ink); font-weight: var(--fw-strong); font-variant-numeric: tabular-nums; }
|
|
306
|
+
.pm-ds .ff-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12); }
|
|
307
|
+
.pm-ds .ff-line { margin: 0; color: var(--ink); font-size: var(--fs-row); line-height: 1.45; }
|
|
308
|
+
.pm-ds .ff-side.quiet .ff-line { color: var(--muted); }
|
|
309
|
+
.pm-ds .ff-goals { padding: var(--space-12) var(--space-16); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); }
|
|
310
|
+
.pm-ds .ff-goals h3 { margin: 0 0 var(--space-8); font-size: var(--fs-row); font-weight: var(--fw-strong); color: var(--ink); }
|
|
311
|
+
.pm-ds .ff-goals h3 small { margin-left: 6px; font-weight: var(--fw-regular); color: var(--muted); font-size: var(--fs-meta); }
|
|
312
|
+
.pm-ds .ff-goals ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-8); }
|
|
313
|
+
.pm-ds .ff-goal { display: grid; grid-template-columns: minmax(0, 2fr) auto minmax(0, 3fr); gap: var(--space-12); align-items: center; font-size: var(--fs-row); color: var(--ink); }
|
|
314
|
+
.pm-ds .ff-gn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
315
|
+
.pm-ds .ff-gc { color: var(--muted); font-size: var(--fs-meta); white-space: nowrap; }
|
|
316
|
+
.pm-ds .ff-seg { display: flex; height: 10px; gap: 2px; border-radius: var(--radius-pill); overflow: hidden; }
|
|
317
|
+
.pm-ds .ff-seg i { display: block; flex: 1 1 0; min-width: 2px; }
|
|
318
|
+
.pm-ds .ff-legend i { display: block; }
|
|
319
|
+
.pm-ds .ff-legend { display: flex; flex-wrap: wrap; gap: var(--space-12); margin: var(--space-12) 0 0; color: var(--muted); font-size: var(--fs-meta); }
|
|
320
|
+
.pm-ds .ff-legend span { display: inline-flex; align-items: center; gap: 4px; }
|
|
321
|
+
.pm-ds .ff-legend i { width: 10px; height: 10px; border-radius: 2px; }
|
|
322
|
+
.pm-ds .ff-note { margin: var(--space-8) 0 0; color: var(--muted); font-size: var(--fs-meta); }
|
|
323
|
+
/* the stage colours: the system's own hues, in workflow order */
|
|
324
|
+
.pm-ds .ff .c0 { background: var(--muted); } .pm-ds .ff .c1 { background: var(--blue); } .pm-ds .ff .c2 { background: color-mix(in oklab, var(--blue) 55%, var(--leaf)); }
|
|
325
|
+
.pm-ds .ff .c3 { background: var(--leaf); } .pm-ds .ff .c4 { background: color-mix(in oklab, var(--leaf) 50%, var(--alert)); } .pm-ds .ff .c5 { background: var(--alert); }
|
|
326
|
+
@media (max-width: 1100px) { .pm-ds .ff-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-12); } .pm-ds .ff-arr { display: none; } }
|
|
327
|
+
@media (max-width: 760px) { .pm-ds .ff-flow, .pm-ds .ff-sides { grid-template-columns: minmax(0, 1fr); } .pm-ds .ff-goal { grid-template-columns: minmax(0, 1fr) auto; } .pm-ds .ff-seg { grid-column: 1 / -1; } }
|
|
328
|
+
/* the station popup (one panel, the system's sheet) */
|
|
329
|
+
.fx-sheet { display: flex; flex-direction: column; gap: 16px; }
|
|
330
|
+
.fx-sheet .fx-sec h4 { display: flex; gap: 6px; margin: 0 0 6px; font-size: var(--fs-row); font-weight: var(--fw-strong); }
|
|
331
|
+
.fx-sheet .fx-sec h4 span { color: var(--muted); font-weight: var(--fw-regular); }
|
|
332
|
+
.fx-sheet ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
|
|
333
|
+
.fx-sheet li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-row); }
|
|
334
|
+
.fx-sheet li b { font-weight: var(--fw-strong); overflow-wrap: anywhere; }
|
|
335
|
+
.fx-sheet li span { grid-column: 1; color: var(--muted); font-size: var(--fs-meta); }
|
|
336
|
+
.fx-sheet li .ff-undo { grid-column: 2; grid-row: 1 / span 2; }
|
|
337
|
+
.fx-sheet .ff-undo svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
|
|
338
|
+
.fx-sheet .fx-more, .fx-sheet p { margin: 6px 0 0; color: var(--muted); font-size: var(--fs-meta); }
|
|
339
|
+
.fx-sheet .fx-fold summary { cursor: pointer; padding: 6px 0; font-size: var(--fs-meta); color: var(--muted); }
|
|
340
|
+
.fx-sheet .ff-undo { all: unset; box-sizing: border-box; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius-md); cursor: pointer; }
|
|
341
|
+
.fx-sheet .ff-undo:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
|