@join-pantheon/cli 0.34.1 → 0.34.2-rc.1

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.
@@ -1,4 +1,4 @@
1
- import { MARK, SEAL, actWords, cap, esc, head, longDay, pct, plural, rangeSeg, rangeWords, script, secbar, spark, split, stackedColumns, when } from "./admin-ui.js";
1
+ import { ACT_KEY, MARK, SEAL, actChip, actWords, cap, esc, head, longDay, pct, plural, rangeSeg, rangeWords, script, secbar, spark, split, stackedColumns, when } from "./admin-ui.js";
2
2
  import { FOUNDER_CSS, definitionsSection, founderSections } from "./admin-founder.js";
3
3
  import { GOAL_CSS, goalDiagram, goalSummary } from "./goal-flow.js";
4
4
  import { dur, median, refusalWords } from "./flow-stats.js";
@@ -665,7 +665,7 @@ export function renderTeam(d) {
665
665
  const open = d.feed.read?.id === r.id;
666
666
  const fromTo = `<b class="who">${esc(r.from)}</b> → ${r.to?.length ? r.to.map(esc).join(", ") : "everyone"}<span class="sub">${r.from === "pantheon" ? `<span class="role">the relay</span>` : `<span class="role ${r.role === "worker" ? "w" : "p"}">${r.role === "worker" ? "worker" : r.role === "cli" ? "command line" : "window"}</span>`}</span>`;
667
667
  const action = open ? `<a class="more" href="${esc(feedLink({}))}#m-${esc(r.id)}">Show less</a>` : `<a class="more" href="${esc(feedLink({ read: r.id }))}#m-${esc(r.id)}" data-read="${esc(r.id)}" data-seq="${r.seq}">Read in full</a>`;
668
- const row = `<tr id="m-${esc(r.id)}"><td data-l="#" class="c num muted">#${r.seq}</td><td data-l="When" class="c num">${when(r.ts, "time")}</td><td data-l="From → to" class="ft">${fromTo}</td><td data-l="Act" class="c"><span class="chip plain act" data-act="${esc(r.act)}" title="${esc(r.act)}">${esc(actWords(r.act))}</span></td><td data-l="Summary" class="span sum wrapc">${esc(r.gist) || `<span class="quiet">(empty message)</span>`}${r.goalTitle ? `<span class="sub">in <a href="${esc(feedLink({ goal: r.goal ?? "", before: undefined, read: undefined }))}">${esc(r.goalTitle)}</a></span>` : ""}</td><td class="c r span rd">${action}</td></tr>`;
668
+ const row = `<tr id="m-${esc(r.id)}"><td data-l="#" class="c num muted">#${r.seq}</td><td data-l="When" class="c num">${when(r.ts, "time")}</td><td data-l="From → to" class="ft">${fromTo}</td><td data-l="Act" class="c">${actChip(r.act)}</td><td data-l="Summary" class="span sum wrapc">${esc(r.gist) || `<span class="quiet">(empty message)</span>`}${r.goalTitle ? `<span class="sub">in <a href="${esc(feedLink({ goal: r.goal ?? "", before: undefined, read: undefined }))}">${esc(r.goalTitle)}</a></span>` : ""}</td><td class="c r span rd">${action}</td></tr>`;
669
669
  const full = open && d.feed.read ? `<tr class="detail" id="d-${esc(r.id)}"><td colspan="6" class="span"><div class="inread">${fullMessageHtml(d.feed.read)}</div></td></tr>` : "";
670
670
  return row + full;
671
671
  }).join("");
@@ -756,6 +756,7 @@ export function renderTeam(d) {
756
756
  ${q.goal ? `<input type="hidden" name="goal" value="${esc(q.goal)}">` : ""}
757
757
  <button class="btn">Apply</button>${d.feed.filtered ? `<a href="/admin/space?name=${enc}">Clear filters</a>` : ""}
758
758
  </form>
759
+ ${feedRows ? ACT_KEY : ""}
759
760
  <div class="card"><table class="rt msgs" id="t-messages" data-space="${esc(d.name)}" data-csrf="${esc(d.csrf)}">
760
761
  <thead><tr><th class="c">#</th><th class="c">When</th><th class="ft">From → to</th><th class="c">Act</th><th>Summary</th><th class="c"><span class="vh">Full message</span></th></tr></thead>
761
762
  <tbody>${feedRows || `<tr><td colspan="6" class="empty">${d.feed.filtered ? "No messages match these filters. Try other words, or clear the filters." : "No messages yet. They appear here when this team's agents start working together."}</td></tr>`}</tbody>
package/dist/admin-ui.js CHANGED
@@ -23,19 +23,44 @@ const TOKENS = `
23
23
  --danger-text:#9a3a24;
24
24
  /* who-asked-whom cells: how strong the darkest may get, and its text, so every cell keeps 4.5:1 */
25
25
  --matrix-max:.85;--matrix-text:var(--ink);
26
+ /* What an act means, by colour (actKind): a tint, its text (7:1 and up on the tint) and an edge that
27
+ shows the chip's shape on every surface. The label always says it in words too. */
28
+ --k-need-bg:#b8492f;--k-need-fg:#ffffff;--k-need-bd:#b8492f;
29
+ --k-push-bg:#f6dca0;--k-push-fg:#5e3c00;--k-push-bd:#b07d12;
30
+ --k-ask-bg:#dbe7f7;--k-ask-fg:#1a4378;--k-ask-bd:#5b86bf;
31
+ --k-agree-bg:#cfe8e3;--k-agree-fg:#11463f;--k-agree-bd:#3f8f86;
32
+ --k-done-bg:#d8ecd0;--k-done-fg:#1f4f17;--k-done-bd:#4f8f40;
33
+ /* the same meanings as solid dots (the goal diagram), 3:1 and up against the lanes */
34
+ --k-need-dot:#b8492f;--k-push-dot:#a46f00;--k-ask-dot:#3b6eb0;--k-agree-dot:#2e7f76;--k-done-dot:#3f8a33;--k-info-dot:#7a6e5c;
26
35
  color-scheme:light;
27
36
  }
28
37
  @media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
29
38
  --bg:var(--ink);--surface:var(--ink-mid);--surface-2:#2f2a26;--line:#433b35;--edge:#4a423b;--zebra:#2b2723;
30
- --text:var(--cream);--muted:#d8ccb6;--quiet:#c6baa4;--placeholder:#bdb19b;--shadow:#0b0a09;
39
+ /* Body text a step brighter than the secondary greys (14.7:1 on a card, 0.34.2), so the summary leads;
40
+ the greys stay at 8.5:1 and up — dimmer read as too faint (0.34.1). */
41
+ --text:#fbf6ee;--muted:#d8ccb6;--quiet:#c6baa4;--placeholder:#bdb19b;--shadow:#0b0a09;
31
42
  --link-line:#8a7f6c;--focus:var(--mustard);
32
43
  --accent-text:#ef8a72;--grid:#3a3430;--matrix-low:var(--cream);--danger-text:#ef8a72;--matrix-max:.75;--matrix-text:var(--cream);color-scheme:dark;
44
+ --k-need-bg:#e8775d;--k-need-fg:#1b1917;--k-need-bd:#e8775d;
45
+ --k-push-bg:#4a3a14;--k-push-fg:#f7d27e;--k-push-bd:#8a6a22;
46
+ --k-ask-bg:#1e3048;--k-ask-fg:#a9cdf5;--k-ask-bd:#5582bd;
47
+ --k-agree-bg:#143a37;--k-agree-fg:#8fd8ce;--k-agree-bd:#3d9087;
48
+ --k-done-bg:#1d3a1b;--k-done-fg:#a6dc9b;--k-done-bd:#4f8f46;
49
+ --k-need-dot:#e8775d;--k-push-dot:#e7b54a;--k-ask-dot:#7fb0ea;--k-agree-dot:#5fc2b6;--k-done-dot:#86c979;--k-info-dot:#bdb19b;
33
50
  }}
34
51
  :root[data-theme="dark"]{
35
52
  --bg:var(--ink);--surface:var(--ink-mid);--surface-2:#2f2a26;--line:#433b35;--edge:#4a423b;--zebra:#2b2723;
36
- --text:var(--cream);--muted:#d8ccb6;--quiet:#c6baa4;--placeholder:#bdb19b;--shadow:#0b0a09;
53
+ /* Body text a step brighter than the secondary greys (14.7:1 on a card, 0.34.2), so the summary leads;
54
+ the greys stay at 8.5:1 and up — dimmer read as too faint (0.34.1). */
55
+ --text:#fbf6ee;--muted:#d8ccb6;--quiet:#c6baa4;--placeholder:#bdb19b;--shadow:#0b0a09;
37
56
  --link-line:#8a7f6c;--focus:var(--mustard);
38
57
  --accent-text:#ef8a72;--grid:#3a3430;--matrix-low:var(--cream);--danger-text:#ef8a72;--matrix-max:.75;--matrix-text:var(--cream);color-scheme:dark;
58
+ --k-need-bg:#e8775d;--k-need-fg:#1b1917;--k-need-bd:#e8775d;
59
+ --k-push-bg:#4a3a14;--k-push-fg:#f7d27e;--k-push-bd:#8a6a22;
60
+ --k-ask-bg:#1e3048;--k-ask-fg:#a9cdf5;--k-ask-bd:#5582bd;
61
+ --k-agree-bg:#143a37;--k-agree-fg:#8fd8ce;--k-agree-bd:#3d9087;
62
+ --k-done-bg:#1d3a1b;--k-done-fg:#a6dc9b;--k-done-bd:#4f8f46;
63
+ --k-need-dot:#e8775d;--k-push-dot:#e7b54a;--k-ask-dot:#7fb0ea;--k-agree-dot:#5fc2b6;--k-done-dot:#86c979;--k-info-dot:#bdb19b;
39
64
  }`;
40
65
  export const CSS = `${TOKENS}
41
66
  *{box-sizing:border-box}
@@ -141,7 +166,15 @@ td.empty{color:var(--muted);text-align:center;padding:22px 14px}
141
166
  .chip.plain{background:var(--surface-2);color:var(--text);box-shadow:inset 0 0 0 1px var(--line)}
142
167
  .chip.line{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1.5px var(--text)}
143
168
  .chip.mono{font-family:var(--ui-mono);font-size:12.5px}
144
- .chip.act{font:600 13px/1 var(--ui)}
169
+ .chip.act{font:600 13px/1 var(--ui);background:var(--surface-2);color:var(--text);box-shadow:inset 0 0 0 1px var(--line)}
170
+ .chip.k-need{background:var(--k-need-bg);color:var(--k-need-fg);box-shadow:none}
171
+ .chip.k-push{background:var(--k-push-bg);color:var(--k-push-fg);box-shadow:inset 0 0 0 1px var(--k-push-bd)}
172
+ .chip.k-ask{background:var(--k-ask-bg);color:var(--k-ask-fg);box-shadow:inset 0 0 0 1px var(--k-ask-bd)}
173
+ .chip.k-agree{background:var(--k-agree-bg);color:var(--k-agree-fg);box-shadow:inset 0 0 0 1px var(--k-agree-bd)}
174
+ .chip.k-done{background:var(--k-done-bg);color:var(--k-done-fg);box-shadow:inset 0 0 0 1px var(--k-done-bd)}
175
+ .chip.k-closed{background:transparent;color:var(--text);box-shadow:inset 0 0 0 1.5px var(--text)}
176
+ .actkey{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;margin:0 0 12px;font-size:13.5px;color:var(--muted)}
177
+ .actkey .chip{font-size:12.5px;padding:4px 8px}
145
178
  .chip .seal{width:12px;height:12px}
146
179
  .role{font:500 13px var(--ui);color:var(--muted);white-space:nowrap}
147
180
  .role.w::before,.role.p::before{content:"";display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:5px;vertical-align:0}
@@ -202,8 +235,9 @@ details.tv td,details.tv th{padding:4px 10px}
202
235
  .privacy{display:flex;gap:10px;align-items:flex-start;padding:12px 16px;border-radius:10px;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line);font-size:14.5px;margin-top:16px}
203
236
  .hidden-text{font-style:normal;color:var(--quiet);font-size:13.5px}
204
237
  .flash{margin-top:14px;padding:10px 14px;border-radius:9px;background:var(--surface);border:1px solid var(--text);font-size:14.5px}
205
- .more{white-space:nowrap;font:600 14px var(--ui);background:transparent;border:0;color:var(--text);text-decoration:underline;text-decoration-color:var(--link-line);text-decoration-thickness:1px;text-underline-offset:3px;cursor:pointer;padding:2px 0}
206
- .more:hover{text-decoration-color:currentColor;text-decoration-thickness:2px}
238
+ /* The open-a-message and see-the-flow controls: a small outlined button, so a row's only underline is its goal's link. */
239
+ .more{display:inline-block;white-space:nowrap;font:600 13.5px/1.2 var(--ui);background:transparent;border:1px solid var(--edge);border-radius:7px;color:var(--text);text-decoration:none;cursor:pointer;padding:5px 10px}
240
+ .more:hover{background:var(--surface-2);border-color:var(--text);text-decoration:none}
207
241
  .more[aria-busy=true]{cursor:progress}
208
242
  .agewrap{white-space:nowrap}
209
243
  .fullbody{white-space:pre-wrap;overflow-wrap:anywhere;font:400 15px/1.6 var(--ui);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:14px 16px;margin-top:4px;max-width:110ch}
@@ -420,6 +454,14 @@ export const ACT_WORDS = {
420
454
  HUMAN_REQUIRED: "Needs a person", RETRACT: "Retraction", WITHDRAW: "Release request", CLOSE: "Goal closed",
421
455
  };
422
456
  export const actWords = (act) => ACT_WORDS[act] ?? cap(act.toLowerCase().replace(/_/g, " "));
457
+ const ACT_KIND = {
458
+ HUMAN_REQUIRED: "need", ESCALATE: "need", OBJECT: "push", RETRACT: "push", WITHDRAW: "push",
459
+ ASK: "ask", PROPOSE: "ask", ACCEPT: "agree", CONTRACT: "agree", COMMIT: "agree",
460
+ ANSWER: "done", DELIVERED: "done", CLOSE: "closed",
461
+ };
462
+ export const actKind = (act) => (Object.hasOwn(ACT_KIND, act) ? ACT_KIND[act] : "info");
463
+ export const actChip = (act) => `<span class="chip act k-${actKind(act)}" data-act="${esc(act)}" title="${esc(act)}">${act === "HUMAN_REQUIRED" ? SEAL : ""}${esc(actWords(act))}</span>`;
464
+ export const ACT_KEY = `<p class="actkey" aria-label="What the colours mean"><span>Colours:</span>${[["need", "Needs a person · Escalation"], ["push", "Objection · Retraction"], ["ask", "Ask · Proposal"], ["agree", "Agreed · Commitment"], ["done", "Answer · Delivered"], ["closed", "Goal closed"], ["info", "Note"]].map(([k, w]) => `<span class="chip act k-${k}">${w}</span>`).join("")}</p>`;
423
465
  export const plural = (n, one, many = `${one}s`) => `${n} ${n === 1 ? one : many}`;
424
466
  export const pct = (a, b) => (b ? Math.round((a / b) * 100) : 0);
425
467
  export const cap = (s) => (s ? s[0].toUpperCase() + s.slice(1) : s);
package/dist/goal-flow.js CHANGED
@@ -1,4 +1,4 @@
1
- import { SEAL, cap, esc, hhmm, plural, when } from "./admin-ui.js";
1
+ import { ACT_KEY, SEAL, actKind, cap, esc, hhmm, plural, when } from "./admin-ui.js";
2
2
  import { dur, flowIndex, utcDay } from "./flow-stats.js";
3
3
  export const GOAL_NODE_CAP = 200;
4
4
  export const GAP_MS = 45 * 60_000;
@@ -88,7 +88,7 @@ export function goalSummary(f) {
88
88
  return `<p class="gsum"><b>${esc(STATE_WORDS[f.goal.state] ?? f.goal.state)}</b> · started ${when(s.startedAt, "full")} · ${dur(end - s.startedAt)}${s.endedAt ? "" : " so far"} · ${s.people.length ? esc(s.people.map(cap).join(", ")) : "nobody yet"} · ${plural(s.handoffs, "hand-off")}${L ? ` · longest wait ${dur(L.ms)} (${esc(cap(L.who))}, ${esc(L.what)}${L.open ? ", still open" : ""})` : ""}${b ? ` · <span class="${b.human ? "badtext" : ""}">blocking now: ${b.human ? `${SEAL} ` : ""}${esc(cap(b.owner))}${b.human ? "'s decision" : ` owes ${esc(OWES[b.kind] ?? "a reply")}`}, ${dur(b.ageMs)}</span>` : f.goal.state === "CLOSED" ? "" : " · nothing owed"}</p>`;
89
89
  }
90
90
  export function goalDiagram(f, o = {}) {
91
- const COL = 104, GAP = 92, LEFT = 132, TOP = 46, LANE = 84, NOWPAD = 220;
91
+ const COL = 116, GAP = 92, LEFT = 132, TOP = 46, LANE = 104, NODE_UP = 12, NOWPAD = 220;
92
92
  const xs = [];
93
93
  const gaps = [];
94
94
  let x = LEFT + COL / 2;
@@ -108,7 +108,7 @@ export function goalDiagram(f, o = {}) {
108
108
  const width = Math.max(560, (f.goal.state === "CLOSED" ? lastX + COL : nowX + NOWPAD));
109
109
  const laneY = (m) => TOP + Math.max(0, f.lanes.indexOf(m)) * LANE + LANE / 2;
110
110
  const height = TOP + Math.max(1, f.lanes.length) * LANE + 18;
111
- const at = new Map(f.nodes.map((n, i) => [n.id, { x: xs[i], y: laneY(n.from), n }]));
111
+ const at = new Map(f.nodes.map((n, i) => [n.id, { x: xs[i], y: laneY(n.from) - NODE_UP, n }]));
112
112
  let svg = "";
113
113
  f.lanes.forEach((m, i) => {
114
114
  const y = TOP + i * LANE;
@@ -124,7 +124,7 @@ export function goalDiagram(f, o = {}) {
124
124
  const owedShown = [...f.open].sort((a, b) => (b.human ? 1 : 0) - (a.human ? 1 : 0) || a.since - b.since).slice(0, GOAL_OWED_CAP);
125
125
  for (const w of owedShown) {
126
126
  const src = at.get(w.ref);
127
- const y = laneY(w.owner) - 24;
127
+ const y = laneY(w.owner) - LANE / 2 + 8;
128
128
  const x1 = src ? src.x : LEFT;
129
129
  svg += `<g class="owed${w.human ? " human" : ""}"><line x1="${x1}" x2="${nowX}" y1="${y}" y2="${y}"/><circle cx="${nowX}" cy="${y}" r="5"/><text x="${nowX + 10}" y="${y + 4}">${esc(cap(w.owner))} ${w.human ? "decides" : `owes ${OWES[w.kind] ?? "a reply"}`} · ${esc(dur(w.ageMs))}</text></g>`;
130
130
  }
@@ -137,8 +137,23 @@ export function goalDiagram(f, o = {}) {
137
137
  const same = a.y === b.y;
138
138
  const midX = (a.x + b.x) / 2;
139
139
  const d = same ? `M${a.x + 10},${a.y - 8} Q${midX},${a.y - 40} ${b.x - 10},${b.y - 8}` : `M${a.x + 12},${a.y} C${midX},${a.y} ${midX},${b.y} ${b.x - 14},${b.y}`;
140
- const ly = same ? a.y - 30 : (a.y + b.y) / 2;
141
- svg += `<g class="arrow"><path d="${d}" marker-end="url(#gf-head)"/><text x="${midX}" y="${ly + 4}" text-anchor="middle">${esc(dur(b.n.ts - a.n.ts))}</text></g>`;
140
+ let lx = midX, ly = a.y - 30;
141
+ if (!same) {
142
+ const edge = b.y > a.y ? b.y + NODE_UP - LANE / 2 : b.y + NODE_UP + LANE / 2;
143
+ const x0 = a.x + 12, x3 = b.x - 14;
144
+ let best = 0.5, bestD = Infinity;
145
+ for (let t = 0; t <= 1; t += 0.02) {
146
+ const u = 1 - t, y = u * u * u * a.y + 3 * u * u * t * a.y + 3 * u * t * t * b.y + t * t * t * b.y;
147
+ if (Math.abs(y - edge) < bestD) {
148
+ bestD = Math.abs(y - edge);
149
+ best = t;
150
+ }
151
+ }
152
+ const u = 1 - best;
153
+ lx = u * u * u * x0 + 3 * u * u * best * midX + 3 * u * best * best * midX + best * best * best * x3;
154
+ ly = edge;
155
+ }
156
+ svg += `<g class="arrow"><path d="${d}" marker-end="url(#gf-head)"/><text x="${Math.round(lx)}" y="${Math.round(ly) + 4}" text-anchor="middle">${esc(dur(b.n.ts - a.n.ts))}</text></g>`;
142
157
  }
143
158
  let ord = 0;
144
159
  for (const [, p] of at) {
@@ -149,8 +164,8 @@ export function goalDiagram(f, o = {}) {
149
164
  const tip = [`${words}`, ...(o.gist ? [o.gist(n.id) || "(empty message)"] : []), new Date(n.ts).toUTCString().slice(0, 22) + " UTC"].join("|");
150
165
  const shape = n.decision || n.act === "ESCALATE" || n.act === "HUMAN_REQUIRED"
151
166
  ? `<path class="mk ${n.decision ? "dec" : "esc"}" d="M${p.x},${p.y - 11} L${p.x + 11},${p.y} L${p.x},${p.y + 11} L${p.x - 11},${p.y} Z"/>`
152
- : n.by === "worker" ? `<rect class="mk w" x="${p.x - 9}" y="${p.y - 9}" width="18" height="18" rx="3"/>` : `<circle class="mk p" cx="${p.x}" cy="${p.y}" r="9"/>`;
153
- svg += `<g class="gn" tabindex="0" data-tip="${esc(tip)}" aria-label="${esc(`${words}, ${new Date(n.ts).toUTCString().slice(0, 22)} UTC`)}"${o.readHref ? ` data-node="${ord}"` : ""}>${shape}<text class="gv" x="${p.x}" y="${p.y + 27}" text-anchor="middle">${esc(verb)}</text><text class="gt" x="${p.x}" y="${p.y + 41}" text-anchor="middle" data-t="${n.ts}" data-f="hm">${esc(hhmm(n.ts))}</text></g>`;
167
+ : n.by === "worker" ? `<rect class="mk w k-${actKind(n.act)}" x="${p.x - 9}" y="${p.y - 9}" width="18" height="18" rx="3"/>` : `<circle class="mk p k-${actKind(n.act)}" cx="${p.x}" cy="${p.y}" r="9"/>`;
168
+ svg += `<g class="gn" tabindex="0" data-tip="${esc(tip)}" aria-label="${esc(`${words}, ${new Date(n.ts).toUTCString().slice(0, 22)} UTC`)}"${o.readHref ? ` data-node="${ord}"` : ""}>${shape}<text class="gv" x="${p.x}" y="${p.y + 24}" text-anchor="middle">${esc(verb)}</text><text class="gt" x="${p.x}" y="${p.y + 38}" text-anchor="middle" data-t="${n.ts}" data-f="hm">${esc(hhmm(n.ts))}</text></g>`;
154
169
  }
155
170
  if (f.goal.state !== "CLOSED")
156
171
  svg += `<g class="now"><line x1="${nowX}" x2="${nowX}" y1="${TOP - 6}" y2="${height - 18}"/><text x="${nowX + 6}" y="38">now${idleToNow > GAP_MS ? `, ${esc(dur(idleToNow))} after the last act` : ""}</text></g>`;
@@ -160,6 +175,8 @@ export function goalDiagram(f, o = {}) {
160
175
  ${f.earlier ? `<p class="note">${plural(f.earlier, "earlier act")} not drawn: the newest ${f.nodes.length} are. The list below has the drawn ones.</p>` : ""}
161
176
  ${f.open.length > GOAL_OWED_CAP ? `<p class="note">${f.open.length} items are still owed; the ${GOAL_OWED_CAP} shown are the decisions first, then the oldest. And ${f.open.length - GOAL_OWED_CAP} more still owed.</p>` : ""}
162
177
  <div class="glegend" aria-hidden="true"><span><i class="lg p"></i>their agent window</span><span><i class="lg w"></i>their worker (unattended)</span><span><i class="lg dec"></i>a person's decision</span><span><i class="lg esc"></i>escalated, needs a person</span><span><i class="lg owed"></i>still owed, to now</span><span><i class="lg gapk"></i>idle time squeezed out</span></div>
178
+ ${ACT_KEY}
179
+ ${width > 1180 ? `<p class="note gwide">This goal is wide: scroll the diagram sideways to see all of it.</p>` : ""}
163
180
  <div class="gscroll"><svg class="gsvg" width="${width}" height="${height}" viewBox="0 0 ${width} ${height}" role="img" aria-label="${esc(label)}"><defs><marker id="gf-head" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M0,0 L10,5 L0,10 z" class="ahead"/></marker></defs>${svg}</svg></div>
164
181
  <details class="tv glist"${o.readHref ? " open" : ""}><summary>Show as a list</summary>${steps}</details>
165
182
  </div>`;
@@ -182,7 +199,8 @@ export const GOAL_CSS = `
182
199
  .gsum{font-size:15px;margin:6px 0 14px;line-height:1.6}
183
200
  .gflow .glegend{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:13.5px;color:var(--muted);margin:0 0 10px}
184
201
  .gflow .lg{display:inline-block;width:12px;height:12px;margin-right:6px;vertical-align:-1px}
185
- .lg.p{border-radius:50%;background:var(--person)}.lg.w{border-radius:2px;background:var(--worker)}
202
+ .lg.p{border-radius:50%;background:var(--muted)}.lg.w{border-radius:2px;background:var(--muted)}
203
+ .gflow .actkey{margin-bottom:10px}
186
204
  .lg.dec,.lg.esc{transform:rotate(45deg) scale(.85);background:var(--text)}.lg.esc{background:var(--accent)}
187
205
  .lg.owed{width:22px;height:0;border-top:2px dashed var(--accent-text);vertical-align:3px}
188
206
  .lg.gapk{width:2px;height:14px;border-left:2px dotted var(--muted);margin-left:5px}
@@ -194,15 +212,19 @@ export const GOAL_CSS = `
194
212
  .gsvg .gap line{stroke:var(--muted);stroke-width:2;stroke-dasharray:2 5}
195
213
  .gsvg .gap text,.gsvg .now text{font:500 12.5px var(--ui);fill:var(--muted)}
196
214
  .gsvg .now line{stroke:var(--text);stroke-width:1.5;stroke-dasharray:6 4}
197
- .gsvg .mk.p{fill:var(--person);stroke:var(--text);stroke-width:1.5}
198
- .gsvg .mk.w{fill:var(--worker);stroke:var(--text);stroke-width:1.5}
215
+ /* The shape says who acted (circle: their window, square: their worker); the fill says what it was, as in Messages. */
216
+ .gsvg .mk.p,.gsvg .mk.w{fill:var(--k-info-dot);stroke:var(--surface);stroke-width:2}
217
+ .gsvg .mk.k-need{fill:var(--k-need-dot)}.gsvg .mk.k-push{fill:var(--k-push-dot)}.gsvg .mk.k-ask{fill:var(--k-ask-dot)}
218
+ .gsvg .mk.k-agree{fill:var(--k-agree-dot)}.gsvg .mk.k-done{fill:var(--k-done-dot)}.gsvg .mk.k-closed{fill:var(--text)}
199
219
  .gsvg .mk.dec{fill:var(--text);stroke:var(--text)}
200
220
  .gsvg .mk.esc{fill:var(--accent);stroke:var(--text);stroke-width:1.5}
201
- .gsvg .gv{font:600 13px var(--ui);fill:var(--text)}
202
- .gsvg .gt{font:500 12px var(--ui-mono);fill:var(--muted)}
221
+ /* A node's words keep a halo of the lane behind them, so an arrow passing under never hides them. */
222
+ .gsvg .gv{font:600 13px var(--ui);fill:var(--text);paint-order:stroke;stroke:var(--surface);stroke-width:5px;stroke-linejoin:round}
223
+ .gsvg .gt{font:500 12px var(--ui-mono);fill:var(--muted);paint-order:stroke;stroke:var(--surface);stroke-width:5px;stroke-linejoin:round}
224
+ .gsvg .gap text,.gsvg .gday{paint-order:stroke;stroke:var(--surface);stroke-width:5px;stroke-linejoin:round}
203
225
  .gsvg .arrow path{fill:none;stroke:var(--muted);stroke-width:1.6}
204
226
  .gsvg .ahead{fill:var(--muted)}
205
- .gsvg .arrow text{font:600 12px var(--ui);fill:var(--text);paint-order:stroke;stroke:var(--surface);stroke-width:4px;stroke-linejoin:round}
227
+ .gsvg .arrow text{font:600 12px var(--ui);fill:var(--text);paint-order:stroke;stroke:var(--surface);stroke-width:6px;stroke-linejoin:round}
206
228
  .gsvg .owed line{stroke:var(--accent-text);stroke-width:2;stroke-dasharray:7 5}
207
229
  .gsvg .owed circle{fill:var(--surface);stroke:var(--accent-text);stroke-width:2}
208
230
  .gsvg .owed text{font:600 13px var(--ui);fill:var(--accent-text)}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "format": 1,
3
- "built_at": "2026-10-15T17:20:00.495Z",
3
+ "built_at": "2026-10-15T18:59:32.563Z",
4
4
  "swiftc": "Apple Swift version 6.3.3 (swiftlang-6.3.3.1.3 clang-2100.1.1.101)",
5
5
  "helpers": {
6
6
  "pantheon-tray": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@join-pantheon/cli",
3
- "version": "0.34.1",
3
+ "version": "0.34.2-rc.1",
4
4
  "description": "Let your coding agent collaborate directly with your teammates' agents — ask, agree an interface, and deliver, without a human relaying messages.",
5
5
  "type": "module",
6
6
  "bin": {