create-pmos 0.583.0 → 0.585.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 +33 -27
- 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 +32 -0
- package/workspace/guide/programs.md +2 -1
- package/workspace/lib/routes-proposals.js +10 -0
- package/workspace/lib/routes-ready-reports.js +3 -3
- package/workspace/lib/transcript-read.js +16 -4
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/dash-view.js +5 -3
- package/workspace/server.js +9 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.585.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,38 @@
|
|
|
33
33
|
"audit"
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
|
+
{
|
|
37
|
+
"v": "0.585.0",
|
|
38
|
+
"at": "2026-11-17T08:31:27.900Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 1320,
|
|
43
|
+
"t": "The live round's ✦ carries its board, and ✓ without a board is placed on the initiative's board",
|
|
44
|
+
"s": "The live round's ✦ carries its board, and ✓ without a board is placed on the initiative's board",
|
|
45
|
+
"k": "fix"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"v": "0.584.0",
|
|
51
|
+
"at": "2026-11-17T06:55:14.683Z",
|
|
52
|
+
"f": 4,
|
|
53
|
+
"prs": [
|
|
54
|
+
{
|
|
55
|
+
"n": 1319,
|
|
56
|
+
"t": "The product improve loop reads PMOS's stage from a hosted PMOS checkout",
|
|
57
|
+
"s": "The product improve loop reads PMOS's stage from a hosted PMOS checkout",
|
|
58
|
+
"k": "fix"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"n": 1318,
|
|
62
|
+
"t": "Read the add-directory trust prompt as a real 80-column pane draws it",
|
|
63
|
+
"s": "Read the add-directory trust prompt as a real 80-column pane draws it",
|
|
64
|
+
"k": "fix"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
36
68
|
{
|
|
37
69
|
"v": "0.583.0",
|
|
38
70
|
"at": "2026-11-17T04:07:38.209Z",
|
|
@@ -272,32 +304,6 @@
|
|
|
272
304
|
"k": "fix"
|
|
273
305
|
}
|
|
274
306
|
]
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
"v": "0.565.0",
|
|
278
|
-
"at": "2026-11-12T04:27:46.732Z",
|
|
279
|
-
"f": 4,
|
|
280
|
-
"prs": [
|
|
281
|
-
{
|
|
282
|
-
"n": 1296,
|
|
283
|
-
"t": "Every surface shows the one stage; pmos workflow check finds a disagreement",
|
|
284
|
-
"s": "Every surface shows the one stage; pmos workflow check finds a disagreement",
|
|
285
|
-
"k": "fix"
|
|
286
|
-
}
|
|
287
|
-
]
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
"v": "0.564.0",
|
|
291
|
-
"at": "2026-11-11T14:08:23.553Z",
|
|
292
|
-
"f": 4,
|
|
293
|
-
"prs": [
|
|
294
|
-
{
|
|
295
|
-
"n": 1295,
|
|
296
|
-
"t": "Pmos blueprint on a shallow clone warns and shows Unknown, never a merged PR as In build",
|
|
297
|
-
"s": "Pmos blueprint on a shallow clone warns and shows Unknown, never a merged PR as In build",
|
|
298
|
-
"k": "fix"
|
|
299
|
-
}
|
|
300
|
-
]
|
|
301
307
|
}
|
|
302
308
|
]
|
|
303
309
|
}
|
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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-17T08:31:24Z"}
|
|
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-17T08:31:24Z"}
|
|
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-17T08:31:24Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,36 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.585.0",
|
|
4
|
+
"at": "2026-11-17T08:31:27.900Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1320,
|
|
9
|
+
"t": "The live round's ✦ carries its board, and ✓ without a board is placed on the initiative's board",
|
|
10
|
+
"s": "The live round's ✦ carries its board, and ✓ without a board is placed on the initiative's board",
|
|
11
|
+
"k": "fix"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"v": "0.584.0",
|
|
17
|
+
"at": "2026-11-17T06:55:14.683Z",
|
|
18
|
+
"f": 4,
|
|
19
|
+
"prs": [
|
|
20
|
+
{
|
|
21
|
+
"n": 1319,
|
|
22
|
+
"t": "The product improve loop reads PMOS's stage from a hosted PMOS checkout",
|
|
23
|
+
"s": "The product improve loop reads PMOS's stage from a hosted PMOS checkout",
|
|
24
|
+
"k": "fix"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"n": 1318,
|
|
28
|
+
"t": "Read the add-directory trust prompt as a real 80-column pane draws it",
|
|
29
|
+
"s": "Read the add-directory trust prompt as a real 80-column pane draws it",
|
|
30
|
+
"k": "fix"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
2
34
|
{
|
|
3
35
|
"v": "0.583.0",
|
|
4
36
|
"at": "2026-11-17T04:07:38.209Z",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Guide
|
|
3
3
|
title: "The Board: programs, views, published boards and core documents"
|
|
4
4
|
description: "The Board's views and programs, milestones, a read-only published copy of a Board, and the core documents of each level."
|
|
5
|
-
timestamp: 2026-11-
|
|
5
|
+
timestamp: 2026-11-17
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# The Board
|
|
@@ -89,6 +89,7 @@ The Viewer of a program, and the product page, are one page. There is no Work an
|
|
|
89
89
|
- To clear a part of the Intent, press the pencil, empty that box and press ✓. An emptied part leaves the card. When every part is empty, the card says it is not written yet.
|
|
90
90
|
- Each goal row shows the KR as a chip, then a short title, then one grey line on how it reads. The KR id alone is never the title.
|
|
91
91
|
- When PMOS proposes changes, a folded row under the goal card counts them. Only the owner sees this row. Press it to open every proposal, each with PMOS's pick: ✕ drops it, ✎ opens it to change, ✓ keeps the pick.
|
|
92
|
+
- The same row also shows the first open proposal of each initiative on this page, named with its initiative, for example "Weather microsite revamp · PMOS will show 3 ways: prototype this". ✓ keeps it on that initiative's board and ✕ drops it, the same as on the initiative page.
|
|
92
93
|
- On the product page, the same row also holds **Goals I would change**: a KR whose wording reads badly, with the old words struck through, the new words, one reason and a test read (its source and number). PMOS lists a goal only when its test read returned a number.
|
|
93
94
|
- The tabs are **Tasks**, **Initiatives** (the default), **Reports** and **Documents**.
|
|
94
95
|
- The product page also shows a **Programs** card and a **Health budgets** card. Its **Initiatives** tab lists the product's own initiatives, then one card for each program that holds some of them.
|
|
@@ -502,6 +502,16 @@ module.exports = {
|
|
|
502
502
|
if (!got.ok || !isObj(got.body)) return fail(ctx, res, 400, 'the body must be a JSON object');
|
|
503
503
|
const body = got.body, g = guard.requirePagePress(req, body);
|
|
504
504
|
if (!g.ok) return fail(ctx, res, g.status, g.error);
|
|
505
|
+
// a press that names the initiative but no board (a ✦ filed from a chat or the CLI carried board '' until 2026-11-17): the board the
|
|
506
|
+
// initiative sits on stands in, so the product page's ✓ is never answered "board is required"
|
|
507
|
+
if (!(typeof body.board === 'string' && body.board) && typeof body.initiative === 'string' && body.initiative) {
|
|
508
|
+
try {
|
|
509
|
+
const w = ctx.getWs(typeof body.ws === 'string' && body.ws ? body.ws : null) || null;
|
|
510
|
+
const fr = w ? RB.frameFor(ctx, w) : null, b = w ? RB.baseRows(w, ctx) : null;
|
|
511
|
+
const row = b && b.ok ? (b.rows || []).find((r) => r && r.id === body.initiative) : null;
|
|
512
|
+
if (row && fr) body.board = RB.boardIdOf(row, fr.boards, fr.folded, w);
|
|
513
|
+
} catch { /* postFrame says what is missing */ }
|
|
514
|
+
}
|
|
505
515
|
const p = RB.postFrame(ctx, res, body);
|
|
506
516
|
if (!p) return true;
|
|
507
517
|
if (!p.file || !dirOf(ctx, p.w)) return fail(ctx, res, 409, NO_STATE);
|
|
@@ -84,7 +84,7 @@ function openInis(ctx, w) {
|
|
|
84
84
|
* "✦ My pick: ✦ My pick: [object Object]"). */
|
|
85
85
|
const pickOf = (x) => (x && typeof x.to === 'string' && x.to.trim() ? x.to.trim().slice(0, 120) : '');
|
|
86
86
|
const MAX_VIEWS = 5; // the Needs you block shows one decision: at most 5 initiatives' proposal views are built for it
|
|
87
|
-
function needsOf(ctx, w, boardId, ids) {
|
|
87
|
+
function needsOf(ctx, w, boardId, ids, titles = {}) {
|
|
88
88
|
const out = [];
|
|
89
89
|
let RP; try { RP = require('./routes-proposals.js'); } catch { return out; }
|
|
90
90
|
const open = ids.length > 1 ? openInis(ctx, w) : null;
|
|
@@ -94,7 +94,7 @@ function needsOf(ctx, w, boardId, ids) {
|
|
|
94
94
|
const ps = v.groups.flatMap((g) => g.props || []).sort((a, b) => (a.group === 'dates' ? -1 : 0) - (b.group === 'dates' ? -1 : 0));
|
|
95
95
|
const p = ps[0]; if (!p) continue;
|
|
96
96
|
const first = (p.items || [])[0] || null;
|
|
97
|
-
out.push({ id: p.id, q: String(p.title || (first && first.title) || 'A change PMOS proposes').slice(0, 160), sub: String(p.why || '').slice(0, 200), pick: pickOf(first), from: ini, ini, board: boardId, group: p.group,
|
|
97
|
+
out.push({ id: p.id, q: String(p.title || (first && first.title) || 'A change PMOS proposes').slice(0, 160), sub: String(p.why || '').slice(0, 200), pick: pickOf(first), from: ini, ini, iniTitle: String(titles[ini] || '').slice(0, 120), board: boardId, group: p.group,
|
|
98
98
|
keep: { ids: [p.id] }, drop: { sig: p.sig } });
|
|
99
99
|
}
|
|
100
100
|
return out.sort((a, b) => (a.group === 'dates' ? -1 : 0) - (b.group === 'dates' ? -1 : 0));
|
|
@@ -158,7 +158,7 @@ async function factsFor(req, ctx, w, scope, { from, now = Date.now(), cache = nu
|
|
|
158
158
|
const rst = RS.stateOf(w.root);
|
|
159
159
|
const setups = [...rst.setups.values()];
|
|
160
160
|
const inScope = P.level === 'initiative' ? [row] : rows;
|
|
161
|
-
const needs = B && !lite ? needsOf(ctx, w, B.board.id, inScope.map((r) => r.id)) : []; // lite: the tick reads the decisions only for a weekly that is due
|
|
161
|
+
const needs = B && !lite ? needsOf(ctx, w, B.board.id, inScope.map((r) => r.id), Object.fromEntries(inScope.map((r) => [r.id, r.title || '']))) : []; // lite: the tick reads the decisions only for a weekly that is due
|
|
162
162
|
// a source is stale when Jira has not been read for two days for work in Build or Deliver (PbG2)
|
|
163
163
|
let stale = null;
|
|
164
164
|
for (const r of inScope) {
|
|
@@ -586,6 +586,7 @@ const ADD_DIR_RE = /^Adding a new directory:\s*(.*)$/i;
|
|
|
586
586
|
const HINT_RE = /^(?:Enter to confirm|Esc to (?:exit|cancel))\b|\s·\s/i;
|
|
587
587
|
const SEL_RE = /^[❯›>]\s+/;
|
|
588
588
|
const NUM_RE = /^\d[.)]\s+/;
|
|
589
|
+
const ANSWER_RE = /^(?:yes|no)\b/i;
|
|
589
590
|
/** The menu's answers: the lines next to the selected one (❯), up to a blank line. Each answer's n is its place (1 first) and sel is the
|
|
590
591
|
* place of the selected one, so the page can move the selection to an answer (arrow keys) and press Enter. The answers may or may not
|
|
591
592
|
* carry numbers. */
|
|
@@ -594,13 +595,24 @@ function trustAsk(screen, clean = (x) => x) {
|
|
|
594
595
|
let k = -1;
|
|
595
596
|
for (let i = lines.length - 1; i >= 0; i--) if (SEL_RE.test(lines[i])) { k = i; break; }
|
|
596
597
|
if (k < 0) return null;
|
|
598
|
+
// The answers are the Yes/No lines next to the selected one. (2026-11-17, 0.583.0 live check: the 2.1.326 prompt has no blank line
|
|
599
|
+
// between its description and "> No, exit", so "up to a blank line" swallowed the description. Every answer of a trust prompt starts
|
|
600
|
+
// with Yes or No; nothing else on the screen does.)
|
|
601
|
+
const strip = (l) => l.replace(SEL_RE, '').replace(NUM_RE, '').trim();
|
|
602
|
+
const isAnswer = (l) => l && ANSWER_RE.test(strip(l));
|
|
603
|
+
if (!isAnswer(lines[k])) return null;
|
|
597
604
|
let a = k, b = k;
|
|
598
|
-
while (a > 0 &&
|
|
599
|
-
while (b + 1 < lines.length && lines[b + 1] && !HINT_RE.test(lines[b + 1]) && b < k + 6) b++;
|
|
600
|
-
const block = lines.slice(a, b + 1).map(
|
|
605
|
+
while (a > 0 && isAnswer(lines[a - 1]) && a > k - 6) a--;
|
|
606
|
+
while (b + 1 < lines.length && isAnswer(lines[b + 1]) && !HINT_RE.test(lines[b + 1]) && b < k + 6) b++;
|
|
607
|
+
const block = lines.slice(a, b + 1).map(strip);
|
|
601
608
|
if (block.length < 2 || block.length > 6 || !block.some((l) => /\bexit\b/i.test(l))) return null;
|
|
609
|
+
// The question, which an 80-column pane wraps ("…created or one" / "you trust?"): test each line joined with the next.
|
|
602
610
|
let q = null;
|
|
603
|
-
for (let i = a - 1; i >= 0 && i >= a - 12; i--)
|
|
611
|
+
for (let i = a - 1; i >= 0 && i >= a - 12; i--) {
|
|
612
|
+
if (TRUST_RE.test(lines[i])) { q = lines[i]; break; }
|
|
613
|
+
const two = lines[i] && lines[i + 1] ? lines[i] + ' ' + lines[i + 1] : '';
|
|
614
|
+
if (two && TRUST_RE.test(two)) { q = two; break; }
|
|
615
|
+
}
|
|
604
616
|
if (!q && !block.some((l) => /trust/i.test(l))) return null;
|
|
605
617
|
let dir = null;
|
|
606
618
|
for (let i = a - 1; i >= 0 && i >= a - 14; i--) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.585.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.585.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -155,8 +155,10 @@ export const needsOf = (d) => (d && Array.isArray(d.needsList) && d.needsList.le
|
|
|
155
155
|
export function needsHtml(d) {
|
|
156
156
|
const L = needsOf(d); if (!L.length) return '';
|
|
157
157
|
const pickOf = (n) => (typeof n.pick === 'string' ? n.pick.replace(/^✦\s*My pick:\s*/, '') : ''); // an older server sent the prefix
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
// above the initiative (a product or program page) the row names the initiative it belongs to, so a ✦ never reads as the product's own
|
|
159
|
+
const who = (n) => (d.level !== 'initiative' && n.iniTitle ? n.iniTitle + (n.sub ? ' · ' : '') : '') + (n.sub || '');
|
|
160
|
+
return sec('Needs you', L.map((n, i) => { const pk = pickOf(n), sub = who(n);
|
|
161
|
+
return `<div class="db-card db-need"><div class="db-nq">${SV(I.flag, 16)}<span class="db-rt"><b>${esc(n.q)}</b>${sub ? `<small>${esc(sub)}</small>` : ''}${pk ? `<span class="db-pick">✦ My pick: ${esc(pk)}</span>` : ''}</span></div>`
|
|
160
162
|
+ `<div class="db-acts">${ib('needs', 'Not now', I.x, { k: 'drop', i, off: !n.drop })}${ib('needs-edit', 'Change it first', I.pen, { i })}${ib('needs', 'Keep my pick' + (pk ? ': ' + pk : ''), I.chk, { solid: true, k: 'keep', i, off: !n.keep })}</div></div>`; }).join(''));
|
|
161
163
|
}
|
|
162
164
|
/** "Goals I would change": the old wording struck through, the new one, one reason and the test read with its source and number; ✎ ✕ per goal and one ✓.
|
|
@@ -256,7 +258,7 @@ export function wireDash(body, h0) {
|
|
|
256
258
|
if (a === 'report') { const r = row(k); if (r && h.openReport) h.openReport(r, d); return; }
|
|
257
259
|
b.disabled = true;
|
|
258
260
|
if (a === 'needs') {
|
|
259
|
-
const n = need() || {}, w = { ws: h.ws || undefined, board: h.board || undefined, initiative: n.ini || undefined };
|
|
261
|
+
const n = need() || {}, w = { ws: h.ws || undefined, board: h.board || n.board || undefined, initiative: n.ini || undefined };
|
|
260
262
|
if (k === 'keep') return done(await post('/api/proposals/keep', { ...w, ids: (n.keep && n.keep.ids) || [] }), 'Kept your pick.');
|
|
261
263
|
return done(await post('/api/proposals/drop', { ...w, sig: n.drop && n.drop.sig }), 'Not now. It stays in PMOS proposes.');
|
|
262
264
|
}
|
package/workspace/server.js
CHANGED
|
@@ -3131,7 +3131,8 @@ const verifyTick = () => { try { verifyRuns.tick({}); } catch (e) { warnWriteFai
|
|
|
3131
3131
|
const improveRuns = require('./lib/improve-runs.js').create({
|
|
3132
3132
|
roots: () => [...workspaces.values()].map((w) => ({ id: w.id, root: w.root })),
|
|
3133
3133
|
stateDirFor: (r) => { const w = workspaces.get(r.id); return w ? stateDirFor(w) : null; },
|
|
3134
|
-
|
|
3134
|
+
// An installed workspace (npm) is not a PMOS checkout, so the stage gate also reads a PMOS checkout the PM hosts as a workspace.
|
|
3135
|
+
selfRoot: () => { const IR = require('./lib/improve-runs.js'); if (IR.isSelf(SELF_ROOT)) return SELF_ROOT; const w = [...workspaces.values()].find((x) => x && x.root && IR.isSelf(x.root)); return w ? w.root : null; },
|
|
3135
3136
|
quota: () => orchQuota.read(STATE),
|
|
3136
3137
|
env: process.env,
|
|
3137
3138
|
spawn: (spec) => orchSpawn.spawn({ name: spec.name, agent: 'claude', ws: spec.ws, origin: spec.origin, initialInput: spec.initialInput, extraEnv: spec.env, autoDelete: undefined }),
|
|
@@ -3414,9 +3415,13 @@ const liveRound = require('./lib/live-round.js').install({
|
|
|
3414
3415
|
product: (ws) => { const w = workspaces.get(ws) || null; if (!w) return null; const dir = stateDirFor(w); return dir ? { w, dir } : null; },
|
|
3415
3416
|
info: (ws, ini) => {
|
|
3416
3417
|
const w = workspaces.get(ws); if (!w) return null;
|
|
3417
|
-
|
|
3418
|
-
let
|
|
3419
|
-
|
|
3418
|
+
const RB = require('./lib/routes-boards.js');
|
|
3419
|
+
let row = null; try { const b = RB.baseRows(w); if (b && b.ok) row = (b.rows || []).find((r) => r && r.id === ini) || null; } catch { row = null; }
|
|
3420
|
+
// the board the initiative sits on (a base row carries none; 2026-11-17 the ✦ filed with board '' and ✓ on the product page answered
|
|
3421
|
+
// "board is required"): the frame's assignment, the domain folder, or the workspace's own board
|
|
3422
|
+
let board = ''; try { const fr = row ? RB.frameFor({ stateDirFor: () => stateDirFor(w) }, w) : null; board = fr ? RB.boardIdOf(row, fr.boards, fr.folded, w) : ''; } catch { board = ''; }
|
|
3423
|
+
let intent = ''; try { const AF = require('./lib/artefacts.js'), dir = stateDirFor(w); const st = AF.fold(AF.readLines(AF.file(dir))); const it = AF.intentOf(st, [board ? 'board:' + board : null, 'portfolio'].filter(Boolean)); intent = it && it.fields.want ? it.fields.want.text : ''; } catch { intent = ''; }
|
|
3424
|
+
return { title: (row && row.title) || ini, board, description: (row && row.description) || '', intent };
|
|
3420
3425
|
},
|
|
3421
3426
|
spawn: (spec) => spawnSession({ name: spec.name, agent: 'claude', ws: spec.ws, origin: spec.origin, initialInput: spec.initialInput, initiative: spec.initiative,
|
|
3422
3427
|
writePaths: spec.writePaths, addDirs: spec.addDirs, autoDelete: undefined, onDone: spec.onDone }),
|