toolroll 0.9.111 → 0.9.112

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.
@@ -671,6 +671,16 @@ export const CHAT_ACTION_PARITY = {
671
671
  how: "The door refuses cancel from any card; the card links the exact task's Cancel control when a trusted https console-url is configured, and the cancel is armed there.",
672
672
  gap: "Incomplete phone action: no phone path to cancel by design; the button only opens the task.",
673
673
  },
674
+ toolroll_view_read: {
675
+ support: "missing",
676
+ how: "Refused on the phone by design: the workbench's look is the person's own conversation in the console on this computer (view-tools.ts); the tool answers in words and nothing is read or written.",
677
+ gap: "No phone path by design: restyle from the console on this computer, or edit tui.toml.",
678
+ },
679
+ toolroll_view_set: {
680
+ support: "missing",
681
+ how: "Refused on the phone by design: the workbench's look is the person's own conversation in the console on this computer (view-tools.ts); the tool answers in words and nothing is read or written.",
682
+ gap: "No phone path by design: restyle from the console on this computer, or edit tui.toml.",
683
+ },
674
684
  };
675
685
  export function parityGaps() {
676
686
  return LEAD_TOOL_SCHEMAS.map((tool) => tool.name).filter((name) => CHAT_ACTION_PARITY[name] === undefined);
package/dist/cli-help.js CHANGED
@@ -65,6 +65,12 @@ Reports
65
65
  toolroll graph report which work graph is already here
66
66
  toolroll integrations which integrations work, and what to do about the ones that don't (--json)
67
67
 
68
+ Workbench look
69
+ toolroll view the terminal workbench's theme and saved themes
70
+ toolroll view theme set <name>
71
+ switch the workbench's theme (built in, or one your lead saved)
72
+ toolroll view reset put the workbench's settings back to the defaults (keeps tui.toml.bak)
73
+
68
74
  Projects
69
75
  toolroll repos list connected repositories, and how to adjust
70
76
  toolroll repos remove <path>
package/dist/cli.js CHANGED
@@ -331,6 +331,8 @@ async function dispatch(argv, write, mainOptions) {
331
331
  return runReposCommand(rest, write, mainOptions.onboard);
332
332
  if (first === "pulls")
333
333
  return runPullsCommand(rest, write);
334
+ if (first === "view")
335
+ return (await import("./view-tools.js")).runViewCommand(rest, write, mainOptions.viewRunner);
334
336
  if (first === "graph")
335
337
  return runGraphCommand(rest, write);
336
338
  if (first !== undefined && OPERATE_COMMANDS.has(first)) {
@@ -32,6 +32,13 @@ export const touches = z.array(text("taskTouch")).max(50);
32
32
  export const acceptance = z.array(acceptanceCriterionSchema).min(1).max(ACCEPTANCE_LIMITS.criteria);
33
33
  const note = z.string().max(LIMITS.note, { error: issue => overBy(LIMITS.note, issue.input) }).describe(`At most ${LIMITS.note} characters; longer is refused with its length, not cut.`);
34
34
  export const CODE_MAP_VIEWS = ["overview", "area", "file", "search"];
35
+ const VIEW_THEME_NAME = /^[a-z][a-z0-9-]{0,31}$/;
36
+ export const VIEW_ROLES = ["paper", "ink", "muted", "line", "selection", "selection-ink", "ground", "raised", "fill"];
37
+ const viewHex = z.string().regex(/^#[0-9a-fA-F]{6}$/);
38
+ const viewColors = z.strictObject({
39
+ paper: viewHex.optional(), ink: viewHex.optional(), muted: viewHex.optional(), line: viewHex.optional(), selection: viewHex.optional(),
40
+ "selection-ink": viewHex.optional(), ground: viewHex.optional(), raised: viewHex.optional(), fill: viewHex.optional(),
41
+ });
35
42
  export const LISTED_TASK_STATES = ["queued", "running", "done", "failed", "cancelled"];
36
43
  const ACTION_OPERATIONS = Object.keys(CHAT_ACTIONS).filter(one => !one.startsWith("flow_") && !one.startsWith("subagent_") && one !== "task_start");
37
44
  const cardProps = z.strictObject({
@@ -149,6 +156,25 @@ export const LEAD_TOOL_INPUTS = {
149
156
  }),
150
157
  propose_answer: z.strictObject({ decision: id, option: text("answerOption").min(1), rationale: text("answerRationale") }),
151
158
  propose_cancel: z.strictObject({ task: taskRef, reason: text("proposalReason") }),
159
+ toolroll_view_read: z.strictObject({}),
160
+ toolroll_view_set: z.strictObject({
161
+ theme: z.string().regex(VIEW_THEME_NAME).optional().describe("A built-in theme (terminal, light, dark, high-contrast) or a saved theme's name."),
162
+ save_theme: z.strictObject({
163
+ name: z.string().regex(VIEW_THEME_NAME).describe("Lowercase letters, digits and dashes, at most 32; not a built-in theme's name."),
164
+ base: z.enum(["terminal", "light", "dark", "high-contrast"]),
165
+ colors: viewColors.optional(),
166
+ use: z.boolean().optional().describe("true: switch to it now."),
167
+ }).optional(),
168
+ colors: viewColors.optional().describe("Role colours laid over the theme."),
169
+ density: z.enum(["compact", "comfortable"]).optional(),
170
+ glyphs: z.enum(["unicode", "ascii", "nerd"]).optional(),
171
+ columns: z.array(z.enum(["agent", "step", "age", "cost", "project"])).max(5).optional(),
172
+ list_side: z.enum(["left", "right"]).optional(),
173
+ reduced_motion: z.boolean().optional(),
174
+ key_bar: z.boolean().optional(),
175
+ show_costs: z.boolean().optional(),
176
+ notifications: z.strictObject({ asks: z.boolean().optional(), finished: z.boolean().optional(), failed: z.boolean().optional() }).optional(),
177
+ }),
152
178
  };
153
179
  export const LEAD_TOOL_READ_INPUTS = {
154
180
  ...LEAD_TOOL_INPUTS,
@@ -257,6 +283,8 @@ export const LEAD_TOOL_OUTPUTS = {
257
283
  propose_agents: proposed("agents", { task: str }),
258
284
  propose_answer: proposed("answer", { decision: int, option: str }),
259
285
  propose_cancel: proposed("cancel", { task: str }),
286
+ toolroll_view_read: z.looseObject({ settings: z.looseObject({}), allowed: z.looseObject({}), roles: list, themes: z.looseObject({}), guide: str }),
287
+ toolroll_view_set: z.looseObject({ changed: z.array(str), said: str }),
260
288
  };
261
289
  export function reportToolOutput(surface, tool, schema, body) {
262
290
  const read = parseContract(schema, body);
@@ -8,6 +8,7 @@ import { proveConsoleReadOnly } from "./quick-start.js";
8
8
  import { backgroundAsked, installationCreatedBy, localModeCandidate, localModeOf, openStore, openStoreReadOnly, recordBackgroundAsked } from "./store.js";
9
9
  import { underAgent } from "./prompt.js";
10
10
  import { savedLoginFile } from "./login-secrets.js";
11
+ const PROVE_EVERY_MS = 50;
11
12
  export { easyStartApplies, easyStartArgs } from "./easy-start-args.js";
12
13
  export const SIGN_IN_HANDOFF_MS = 60_000;
13
14
  const EXIT = { ok: 0, failed: 1, usage: 2, refused: 3 };
@@ -116,12 +117,13 @@ export async function runEasyStart(mode, args, seams) {
116
117
  stopOwned(child);
117
118
  return { ok: false, state: "refused", message: "it didn't answer in time" };
118
119
  }
119
- await sleep(250);
120
+ await sleep(PROVE_EVERY_MS);
120
121
  }
121
122
  };
122
123
  let proof = first;
123
124
  if (!proof.ok) {
124
- write("Starting Toolroll…");
125
+ if (globalThis[Symbol.for("toolroll.starting-said")] !== true)
126
+ write("Starting Toolroll…");
125
127
  proof = seams.serviceInstalled() ? await seams.startService() : await startOwned();
126
128
  if (!proof.ok) {
127
129
  write(`Toolroll didn't start: ${proof.message}.`);
package/dist/evidence.js CHANGED
@@ -499,14 +499,14 @@ export const SECRET_PATTERNS = [
499
499
  { name: "private-key", pattern: /-----BEGIN [A-Z ]*PRIVATE KEY-----/ },
500
500
  { name: "aws-access-key", pattern: /\b(?:AKIA|ASIA)[0-9A-Z]{16}\b/ },
501
501
  { name: "github-token", pattern: /\b(?:ghp|gho|ghu|ghs|ghr)_[A-Za-z0-9]{36}\b|github_pat_[A-Za-z0-9_]{22,}/ },
502
- { name: "slack-token", pattern: /\bxox[baprs]-[A-Za-z0-9-]{10,}\b/ },
502
+ { name: "slack-token", pattern: /\bxox[baprs]-[A-Za-z0-9-]{10,}(?:\b|(?![\w-]))/ },
503
503
  { name: "npm-auth-token", pattern: /_authToken\s*=\s*[^\s$][^\s]*/ },
504
- { name: "openai-key", pattern: /\bsk-[A-Za-z0-9_-]{32,}\b/ },
504
+ { name: "openai-key", pattern: /\bsk-[A-Za-z0-9_-]{32,}(?:\b|(?![\w-]))/ },
505
505
  { name: "stripe-key", pattern: /\b(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{24,}\b|\bwhsec_[A-Za-z0-9]{24,}\b/ },
506
- { name: "google-api-key", pattern: /\bAIza[0-9A-Za-z_-]{35}\b/ },
507
- { name: "gitlab-token", pattern: /\bglpat-[A-Za-z0-9_-]{20,}\b/ },
508
- { name: "telegram-bot-token", pattern: /\b\d{8,10}:AA[A-Za-z0-9_-]{33}\b/ },
509
- { name: "discord-bot-token", pattern: /\b[MN][A-Za-z\d]{23,25}\.[\w-]{6}\.[\w-]{27,}\b/ },
506
+ { name: "google-api-key", pattern: /\bAIza[0-9A-Za-z_-]{35}(?:\b|(?![\w-]))/ },
507
+ { name: "gitlab-token", pattern: /\bglpat-[A-Za-z0-9_-]{20,}(?:\b|(?![\w-]))/ },
508
+ { name: "telegram-bot-token", pattern: /\b\d{8,10}:AA[A-Za-z0-9_-]{33}(?:\b|(?![\w-]))/ },
509
+ { name: "discord-bot-token", pattern: /\b[MN][A-Za-z\d]{23,25}\.[\w-]{6}\.[\w-]{27,}(?:\b|(?![\w-]))/ },
510
510
  { name: "password-in-url", pattern: /\b[a-z][a-z0-9+.-]*:\/\/[^\s:@/]+:[^\s:@/]{3,}@[^\s/]/i },
511
511
  { name: "putty-private-key", pattern: /PuTTY-User-Key-File-\d+:/ },
512
512
  { name: "aws-secret-key", pattern: /\b(?:aws_secret_access_key|SecretAccessKey)\b["']?\s*[=:]\s*["']?[A-Za-z0-9/+]{40}/i },
@@ -71,6 +71,8 @@ import { aboutYouOf, checkAboutYouLine } from "./lead-about.js";
71
71
  import { steerStandingWords } from "./steer-status.js";
72
72
  import { agentQuestion, openAgentQuestions } from "./agent-board.js";
73
73
  import { utcMinute } from "./when-html.js";
74
+ import { RECORD_WHOLE_MAX, recordActionWhole } from "./action-ledger.js";
75
+ import { VIEW_CHANGES_PER_MINUTE, VIEW_LEDGER_ACTION } from "./view-tools.js";
74
76
  const REPO_ID = /^r[0-9]{1,3}$/;
75
77
  const TASK_ID = /^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$/;
76
78
  const ISO_STAMP = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?Z$/;
@@ -334,6 +336,8 @@ export const LEAD_CORE_TOOLS = new Set([
334
336
  "get_agents", "propose_dependency_repair",
335
337
  ]);
336
338
  const LEAD_TOOL_KEYWORDS = {
339
+ toolroll_view_read: ["workbench", "theme", "colours", "colors", "look", "restyle", "style", "terminal", "dark", "light"],
340
+ toolroll_view_set: ["workbench", "theme", "colours", "colors", "look", "restyle", "style", "density", "glyphs", "columns", "make it look"],
337
341
  show_card: ["findings", "handover", "card", "table", "chart", "graph", "report", "summary", "numbers", "data", "spend", "projects", "builders", "workers", "integrations", "show", "dashboard"],
338
342
  propose_flow: ["flow", "automation", "workflow", "schedule", "trigger", "every", "when", "email", "inbox", "sort", "follow-up", "nudge"],
339
343
  get_findings: ["finding", "findings", "review", "handover", "follow-through", "failed check", "send back"],
@@ -383,6 +387,54 @@ function summaryLine(description) {
383
387
  const first = /^(.+?[.!?])(\s|$)/.exec(description)?.[1] ?? description;
384
388
  return first.length <= 160 ? first : `${first.slice(0, 157).trimEnd()}…`;
385
389
  }
390
+ function viewRefusal(ctx) {
391
+ if (ctx.view === undefined || teamRoomOf(ctx.store, ctx.thread) !== null) {
392
+ return { ok: false, message: "Restyling the workbench is for the person's own conversation in the console on this computer: ask there, or they can edit tui.toml themselves." };
393
+ }
394
+ return null;
395
+ }
396
+ const VIEW_HISTORY_SCAN = 200;
397
+ function viewHistory(ctx) {
398
+ const rows = ctx.store.handle.prepare("SELECT id, at, outcome, detail FROM action_ledger WHERE actor = ? AND action = ? ORDER BY id DESC LIMIT ?")
399
+ .all(ctx.who.name, VIEW_LEDGER_ACTION, VIEW_HISTORY_SCAN).reverse();
400
+ const parsed = (text) => {
401
+ if (typeof text !== "string")
402
+ return null;
403
+ try {
404
+ const value = JSON.parse(text);
405
+ return typeof value === "object" && value !== null && !Array.isArray(value) ? value : null;
406
+ }
407
+ catch {
408
+ return null;
409
+ }
410
+ };
411
+ const pending = [];
412
+ const byId = new Map();
413
+ for (const row of rows) {
414
+ const detail = parsed(row["detail"]);
415
+ if (row["outcome"] === "pending") {
416
+ const change = detail?.["change"];
417
+ const one = { id: Number(row["id"]), at: String(row["at"]), change: typeof change === "object" && change !== null ? change : null, final: null };
418
+ pending.push(one);
419
+ byId.set(one.id, one);
420
+ }
421
+ else if (row["outcome"] === "done" || row["outcome"] === "failed" || row["outcome"] === "uncertain") {
422
+ const of = byId.get(Number(detail?.["pending"]));
423
+ if (of !== undefined && of.final === null)
424
+ of.final = row["outcome"];
425
+ }
426
+ }
427
+ return pending;
428
+ }
429
+ const VIEW_UNCONFIRMED_MS = 60_000;
430
+ export const VIEW_UNCERTAIN_WORDS = "This change may or may not have applied: the workbench never confirmed it.";
431
+ function settleViewChanges(ctx) {
432
+ const stale = ctx.now.getTime() - VIEW_UNCONFIRMED_MS;
433
+ for (const one of viewHistory(ctx).filter(row => row.final === null && Date.parse(row.at) < stale)) {
434
+ recordActionWhole(ctx.store.handle, { at: ctx.now.toISOString(), actor: ctx.who.name, repo: null, taskId: null, runId: null, action: VIEW_LEDGER_ACTION,
435
+ outcome: "uncertain", source: "request" }, { pending: one.id, said: VIEW_UNCERTAIN_WORDS });
436
+ }
437
+ }
386
438
  function controlTarget(ctx, args) {
387
439
  const control = args["control"];
388
440
  if (!isChatControl(control))
@@ -2205,6 +2257,60 @@ const LEAD_TOOL_HANDLERS = {
2205
2257
  return { ok: true, body: { proposal: proposalId, kind: "answer", decision: id, option: chosen.id, awaiting: chosen.reversible ? "the operator's confirmation" : "the operator's explicit confirmation — this option is irreversible" } };
2206
2258
  },
2207
2259
  },
2260
+ toolroll_view_read: {
2261
+ description: "Read the person's terminal workbench look before restyling it: its settings, what may be changed and to what, the theme roles (what each colours), the built-in and saved themes, and a short styling guide. Only in the person's own conversation on this computer.",
2262
+ handle: ctx => {
2263
+ const refused = viewRefusal(ctx);
2264
+ if (refused !== null)
2265
+ return refused;
2266
+ const read = ctx.view("read");
2267
+ if (!read.ok)
2268
+ return { ok: false, message: read.why };
2269
+ settleViewChanges(ctx);
2270
+ const body = read.body;
2271
+ return { ok: true, body: { settings: body["settings"], colors: body["colors"], allowed: body["allowed"], roles: body["roles"], themes: body["themes"], guide: body["guide"] } };
2272
+ },
2273
+ },
2274
+ toolroll_view_set: {
2275
+ description: "Restyle the person's terminal workbench (tui.toml) when they ask: a theme (built-in or saved), a saved theme of your own (save_theme: name, base, role colours; use: true switches to it, so 'make it look like X' is reusable), role colours (never a status's), density, glyphs, list columns (add only), list side, reduced motion, key bar, costs, notifications (on only: turning anything off is the person's). Read toolroll_view_read first. Contrast is enforced on every colour pair drawn: a change that makes text too faint is refused with the reason. Keys are never changed here (the person changes them). The running workbench repaints within a second; the person can undo with `toolroll view reset`.",
2276
+ handle: (ctx, args) => {
2277
+ const refused = viewRefusal(ctx);
2278
+ if (refused !== null)
2279
+ return refused;
2280
+ const raw = args;
2281
+ if ("keys" in raw)
2282
+ return { ok: false, message: "Keys can't be changed by an agent: they stay with the person (tui.toml's [keys], or the workbench's Settings screen), so an accept or a cancel never becomes a one-key accident." };
2283
+ const allowed = new Set(Object.keys(LEAD_TOOL_INPUTS.toolroll_view_set.shape));
2284
+ const unknown = Object.keys(raw).filter(key => !allowed.has(key));
2285
+ if (unknown.length > 0)
2286
+ return { ok: false, message: `toolroll_view_set takes ${[...allowed].join(", ")}; not ${unknown.slice(0, 3).map(one => redactForLead(one.slice(0, 32), { repos: [], names: [] })).join(", ")}.` };
2287
+ const change = Object.fromEntries(Object.entries(raw).filter(([, value]) => value !== undefined));
2288
+ if (Object.keys(change).length === 0)
2289
+ return { ok: false, message: "Nothing to change: name at least one setting." };
2290
+ const text = JSON.stringify(change);
2291
+ if (text.length > RECORD_WHOLE_MAX - 64)
2292
+ return { ok: false, message: "That change is too large: change a few settings at a time." };
2293
+ settleViewChanges(ctx);
2294
+ const since = ctx.now.getTime() - 60_000;
2295
+ const recent = viewHistory(ctx).filter(one => Date.parse(one.at) > since && one.final !== "failed").length;
2296
+ if (recent >= VIEW_CHANGES_PER_MINUTE)
2297
+ return { ok: false, message: `That's ${VIEW_CHANGES_PER_MINUTE} workbench changes in a minute; wait a moment before the next.` };
2298
+ const entry = { at: ctx.now.toISOString(), actor: ctx.who.name, repo: null, taskId: null, runId: null, action: VIEW_LEDGER_ACTION, source: "request" };
2299
+ const pending = recordActionWhole(ctx.store.handle, { ...entry, outcome: "pending" }, { change });
2300
+ const set = ctx.view("set", text);
2301
+ if (!set.ok) {
2302
+ if (set.unsure === true) {
2303
+ recordActionWhole(ctx.store.handle, { ...entry, outcome: "uncertain" }, { pending, said: VIEW_UNCERTAIN_WORDS, why: set.why.slice(0, 200) });
2304
+ return { ok: false, message: `${set.why}. This change may or may not have applied: read the workbench's settings before trying again.` };
2305
+ }
2306
+ recordActionWhole(ctx.store.handle, { ...entry, outcome: "failed" }, { pending, why: set.why.slice(0, 500) });
2307
+ return { ok: false, message: set.why };
2308
+ }
2309
+ const changed = Array.isArray(set.body["changed"]) ? set.body["changed"].filter((one) => typeof one === "string").slice(0, 40) : [];
2310
+ recordActionWhole(ctx.store.handle, { ...entry, outcome: "done" }, { pending, changed });
2311
+ return { ok: true, body: { changed, said: "Saved to tui.toml; the running workbench shows it within a second. `toolroll view reset` undoes it (the previous file is kept as tui.toml.bak)." } };
2312
+ },
2313
+ },
2208
2314
  propose_cancel: {
2209
2315
  description: "Propose task cancellation/reason; operator must arm and confirm.",
2210
2316
  handle: (ctx, args) => {
@@ -2223,7 +2329,7 @@ const LEAD_TOOL_HANDLERS = {
2223
2329
  };
2224
2330
  export const LEAD_TOOLS = Object.keys(LEAD_TOOL_INPUTS).map((name) => {
2225
2331
  const input = LEAD_TOOL_INPUTS[name];
2226
- const reader = name === "propose_flow" ? LEAD_TOOL_READ_INPUTS[name] : name === "propose_action" ? LEAD_TOOL_READ_INPUTS[name].loose() : LEAD_TOOL_READ_INPUTS[name].strip();
2332
+ const reader = name === "propose_flow" ? LEAD_TOOL_READ_INPUTS[name] : name === "propose_action" || name === "toolroll_view_set" ? LEAD_TOOL_READ_INPUTS[name].loose() : LEAD_TOOL_READ_INPUTS[name].strip();
2227
2333
  const handler = LEAD_TOOL_HANDLERS[name];
2228
2334
  return {
2229
2335
  name,
package/dist/lead.js CHANGED
@@ -523,7 +523,7 @@ export async function runLeadTurn(input) {
523
523
  }
524
524
  const progressId = `${turnId}:${steps}:${index}`;
525
525
  progress({ kind: "tool", turn: turnId, step: steps, id: progressId, label: leadToolLabel(call.name) });
526
- const toolContext = () => ({ store, who, now: clock(), draft, selectEvidence, ...(input.replyImage === undefined ? {} : { replyImage: input.replyImage }), step: steps, readDecisions, readResults, searchedMemory, checkedCapabilities, ask, findTools, ...(input.integrations === undefined ? {} : { integrations: input.integrations }), thread: thread.id, turn: turnId, ...(promiseChannelOfTurn(input.channel) === undefined ? {} : { channel: promiseChannelOfTurn(input.channel) }), ...(input.evidenceRoot === undefined ? {} : { evidenceRoot: input.evidenceRoot }), ...(input.mediaDelivery === undefined ? {} : { mediaDelivery: input.mediaDelivery }) });
526
+ const toolContext = () => ({ store, who, now: clock(), draft, selectEvidence, ...(input.replyImage === undefined ? {} : { replyImage: input.replyImage }), step: steps, readDecisions, readResults, searchedMemory, checkedCapabilities, ask, findTools, ...(input.integrations === undefined ? {} : { integrations: input.integrations }), thread: thread.id, turn: turnId, ...(promiseChannelOfTurn(input.channel) === undefined ? {} : { channel: promiseChannelOfTurn(input.channel) }), ...(input.evidenceRoot === undefined ? {} : { evidenceRoot: input.evidenceRoot }), ...(input.mediaDelivery === undefined ? {} : { mediaDelivery: input.mediaDelivery }), ...(input.view === undefined ? {} : { view: input.view }) });
527
527
  let startPrepared;
528
528
  if (call.name === "propose_start" && advertisedNames.has(call.name)) {
529
529
  const checked = startInputOf(toolContext(), call.args);
@@ -1,3 +1,4 @@
1
+ import { detailShown } from "./action-ledger.js";
1
2
  import { projectName } from "./project.js";
2
3
  import { exactWhenHtml } from "./when-html.js";
3
4
  import { html, postForm } from "./html.js";
@@ -44,7 +45,7 @@ ${text("ledger-outcome", "Outcome", "outcome", "Any outcome")}${text("ledger-tas
44
45
  const byActor = new URLSearchParams(kept);
45
46
  byActor.set("actor", row.actor);
46
47
  return html `<article class="h-audit" data-ledger-id="${row.id}"><span class="h-audit-time k-num">${exactWhenHtml(row.at)}</span>\
47
- <span class="h-audit-what"><a class="h-actor" href="/ledger?${byActor.toString()}" title="Only this actor's actions">${row.actor}</a> ${row.action}${row.detail === null ? "" : html `<span class="h-audit-detail">${row.detail}</span>`}</span>\
48
+ <span class="h-audit-what"><a class="h-actor" href="/ledger?${byActor.toString()}" title="Only this actor's actions">${row.actor}</a> ${row.action}${row.detail === null ? "" : html `<span class="h-audit-detail">${detailShown(row.detail)}</span>`}</span>\
48
49
  <span class="h-audit-place">${row.repo === null ? "Instance" : projectName(row.repo)} ${subject}</span><span class="h-audit-out">${row.outcome} · ${row.source}</span></article>`;
49
50
  })}</div>`;
50
51
  const paging = kept.has("before") || params.has("before") || more
package/dist/needs-you.js CHANGED
@@ -3,7 +3,8 @@ export const START_BUILDER_HREF = "/settings/computers?section=start";
3
3
  export const startBuilderHref = (taskId) => taskId === null ? START_BUILDER_HREF : `/settings/computers?task=${encodeURIComponent(taskId)}&section=start`;
4
4
  export const START_BUILDER_COMMAND = "toolroll up";
5
5
  const always = () => true;
6
- const build = (context) => context.build == null ? "the last build" : `build #${context.build}`;
6
+ const build = (context) => context.build == null ? "the last build"
7
+ : context.attempt == null ? `build #${context.build}` : `attempt ${context.attempt} (build #${context.build})`;
7
8
  const Build = (context) => context.build == null ? "The last build" : `Build #${context.build}`;
8
9
  export const NEEDS = {
9
10
  approval: { sentence: () => "Review the plan and approve it to start.", action: { code: "approve-scope", label: "Approve plan" } },
@@ -102,7 +103,9 @@ export const WAITS = {
102
103
  "plan-next": () => "Waiting to plan.",
103
104
  "research-next": () => "Waiting to research.",
104
105
  "builders-busy": () => "Waiting its turn: builders are busy.",
105
- "retry-later": context => `Waiting: Toolroll retries ${build(context)} ${context.retry ?? "soon"}.`,
106
+ "retry-later": context => context.attempt != null && context.build != null
107
+ ? `Waiting: Toolroll tries attempt ${context.attempt + 1} ${context.retry ?? "soon"}, after attempt ${context.attempt} (build #${context.build}).`
108
+ : `Waiting: Toolroll retries ${build(context)} ${context.retry ?? "soon"}.`,
106
109
  "app-update": () => "Waiting: Toolroll is updating. New work starts after it.",
107
110
  "other-task": context => context.task == null ? "Waiting for another task to finish first." : `Waiting for ${context.task} to finish first.`,
108
111
  };
@@ -320,3 +323,8 @@ export function retryNoteOf(suggestion) {
320
323
  return plain;
321
324
  return `${plain.slice(0, RETRY_NOTE_LIMIT - 1).replace(/\s+\S*$/, "").replace(/[,;:\s]+$/, "")}…`;
322
325
  }
326
+ export function runWords(runs, id) {
327
+ const builds = runs.filter(one => one.role === "builder" || one.role === "scout" || one.role === "repair").map(one => one.id).sort((a, b) => a - b);
328
+ const at = builds.indexOf(id);
329
+ return at < 0 ? `build #${id}` : `attempt ${at + 1} (build #${id})`;
330
+ }
package/dist/operate.js CHANGED
@@ -273,6 +273,7 @@ import { holdRuleOff, routeRulesPass, taskEvidenceWords } from "./route-rules.js
273
273
  import { ruleHoldOf } from "./route-store.js";
274
274
  import { wasInterrupted } from "./run-ending.js";
275
275
  import { loginFileOf, migrateLegacyLogin, removeStaleSavedLogin, savedLoginFile, writableLoginFile } from "./login-secrets.js";
276
+ import { runWords } from "./needs-you.js";
276
277
  export const EXIT = { ok: 0, failed: 1, usage: 2, refused: 3 };
277
278
  const STATES = ["queued", "running", "done", "failed", "cancelled"];
278
279
  export const OPERATE_HELP = `toolroll — operating the queue
@@ -8106,7 +8107,7 @@ function showTask(positional, context) {
8106
8107
  ...detail.runs
8107
8108
  .filter(one => one.route !== null)
8108
8109
  .slice(0, 8)
8109
- .map(one => ` build #${one.id} ${one.role.padEnd(8)} ${one.route.provider}${one.route.model === null ? "" : ` · ${one.route.model}`} [${one.route.chosen}]`),
8110
+ .map(one => ` ${runWords(detail.runs, one.id)} ${one.role.padEnd(8)} ${one.route.provider}${one.route.model === null ? "" : ` · ${one.route.model}`} [${one.route.chosen}]`),
8110
8111
  ]);
8111
8112
  }
8112
8113
  function reviewStatusLines(review, sourceRun) {
@@ -1,8 +1,13 @@
1
1
  import { scanForSecrets } from "./evidence.js";
2
2
  const HOME_FOLDER = /(?:^|[\s"'`(<[=:,])(?:\/Users\/|\/home\/|\/root\/|~\/)/;
3
3
  const DRIVE_OR_SHARE = /(?<![A-Za-z0-9+.-])[A-Za-z]:[\\/]|\\\\|\bfile:\/\//i;
4
+ const HOME_OTHERWISE = /(?:^|[\s"'`(<[=:,])\\\/(?:Users|home|root)\\\/|\$HOME[\\/]|\$\{HOME\}[\\/]|%USERPROFILE%|%HOMEPATH%|\$env:USERPROFILE\b|:\/\/\/(?:Users|home|root|[A-Za-z]:)[\\/]/i;
5
+ const decodedOnce = (text) => text.replace(/%([0-9A-Fa-f]{2})/g, (_, hex) => String.fromCharCode(Number.parseInt(hex, 16)));
6
+ const folderWords = (text) => HOME_FOLDER.test(text) || DRIVE_OR_SHARE.test(text) || HOME_OTHERWISE.test(text);
4
7
  export function privateWords(text) {
5
- return scanForSecrets(text).length > 0 || /\b\d{5,}:[A-Za-z0-9_-]{20,}\b/.test(text) || HOME_FOLDER.test(text) || DRIVE_OR_SHARE.test(text);
8
+ if (scanForSecrets(text).length > 0 || /\b\d{5,}:[A-Za-z0-9_-]{20,}\b/.test(text) || folderWords(text))
9
+ return true;
10
+ return /%[0-9A-Fa-f]{2}/.test(text) && folderWords(` ${decodedOnce(text)}`);
6
11
  }
7
12
  export const outboundPrivate = (fields) => fields.some(privateWords);
8
13
  export function textsOf(value, depth = 0) {
@@ -26,7 +26,7 @@ export const PLAIN_WORDS = [
26
26
  row("Draft a repair task", "draft\\s+a\\s+repair\\s+task", "Send back"),
27
27
  row("put away", "put(?:s|ting)?\\s+(?:it\\s+|them\\s+|tasks\\s+|old\\s+tasks\\s+)?away", "Archive"),
28
28
  row("tidy", "tidy|tidied|tidying", "Archive"),
29
- row("run #N", "(?:run|attempt|result)\\s+#?\\d+", "build #N"),
29
+ row("run #N", "(?:run|result)\\s+#?\\d+|attempt\\s+#?\\d+(?!\\s+\\(build\\s+#\\d+\\))", "build #N, or attempt N (build #M)"),
30
30
  row("reconcile", "reconcile[ds]?|reconciling|reconciliation", "Waiting: Toolroll is …"),
31
31
  row("requeue", "requeue[ds]?|requeuing", "Waiting: Toolroll is …"),
32
32
  row("claim", "claim|claimed", "Waiting: Toolroll is …"),
package/dist/release.js CHANGED
@@ -46,6 +46,7 @@ export const ADVISORY_PR_CHECKS = {
46
46
  "workbench bundle / binary · linux-x64": ".github/workflows/tui-bundle.yml",
47
47
  "workbench bundle / binary · linux-arm64": ".github/workflows/tui-bundle.yml",
48
48
  "workbench bundle / assemble": ".github/workflows/tui-bundle.yml",
49
+ "gate changes": ".github/workflows/gate-changes.yml",
49
50
  };
50
51
  export const RELEASE_TAG_CHECKS = ["release proof", "package / binary · darwin-arm64", "package / binary · darwin-x64", "package / binary · linux-x64", "package / binary · linux-arm64", "package / assemble", "publish"];
51
52
  export const RELEASE_TAG_WORKFLOW = ".github/workflows/publish.yml";
package/dist/serve.js CHANGED
@@ -1783,7 +1783,7 @@ export function createDecisionServer(options) {
1783
1783
  catch { }
1784
1784
  }
1785
1785
  await Promise.all(waits);
1786
- }),
1786
+ }).finally(() => options.onBackgroundPass?.()),
1787
1787
  onError: () => { }, });
1788
1788
  void backgroundChecks.runNow();
1789
1789
  });
@@ -37,6 +37,7 @@ import { runActivityOf } from "../task-activity.js";
37
37
  import { teamWorkspaceHtml } from '../team-ui.js';
38
38
  import { loadBotToken, redactToken } from "../telegram.js";
39
39
  import { WORK_INDEX_MAX_LIMIT, workIndexPage } from "../work-index.js";
40
+ import { binaryViewRunner, viewAllowedFor } from '../view-tools.js';
40
41
  import { html, htmlString, postForm, reauth } from "../html.js";
41
42
  import { requestContext } from "./request-context.js";
42
43
  import { refuse, screen, whenTime } from "./chrome.js";
@@ -863,7 +864,8 @@ export function createChatHandlers(runtime) {
863
864
  const ended = (ok) => { if (onProgress !== undefined)
864
865
  endLiveTurn(opened.thread.id, ok, onProgress); };
865
866
  void freshFacts.run(null, () => runLeadTurn({ store, who: principal, session: leadSession, thread: opened.thread, config: enabled.config, key: enabled.key, message,
866
- onAdmitted: () => { onProgress = beginLiveTurn(opened.thread.id, liveShape); }, onProgress: event => onProgress?.(event), channel: "console", requestId, ...(focusTask === null && chatProject !== null ? { context: `Current project: ${projectName(chatProject)} (${chatProject}). Keep this conversation about that project unless the operator explicitly asks to broaden it; use it as the repo for project tools.` } : {}), ...(focusTask === null ? {} : { context: `Current task: ${focusTask.id}. Read it with get_task before answering or proposing changes. Read its currentExecution next and bind new actions to that exact execution. Never replace the target of a prior proposal with a newer revision. Keep this turn about that task unless the operator explicitly asks to broaden it.${resultContext}${modeContext}` }), fetcher: chatFetcher, ...(options.subscriptionChatRunner === undefined ? {} : { subscriptionRunner: options.subscriptionChatRunner }), clock, evidenceRoot }))
867
+ onAdmitted: () => { onProgress = beginLiveTurn(opened.thread.id, liveShape); }, onProgress: event => onProgress?.(event), channel: "console", requestId,
868
+ ...(viewAllowed(request, who) ? { view: viewRunner } : {}), ...(focusTask === null && chatProject !== null ? { context: `Current project: ${projectName(chatProject)} (${chatProject}). Keep this conversation about that project unless the operator explicitly asks to broaden it; use it as the repo for project tools.` } : {}), ...(focusTask === null ? {} : { context: `Current task: ${focusTask.id}. Read it with get_task before answering or proposing changes. Read its currentExecution next and bind new actions to that exact execution. Never replace the target of a prior proposal with a newer revision. Keep this turn about that task unless the operator explicitly asks to broaden it.${resultContext}${modeContext}` }), fetcher: chatFetcher, ...(options.subscriptionChatRunner === undefined ? {} : { subscriptionRunner: options.subscriptionChatRunner }), clock, evidenceRoot }))
867
869
  .then(outcome => {
868
870
  if (!outcome.ok && "refused" in outcome && (outcome.refused === "concurrent" || outcome.refused === "backlog") && queueIt().kind === "queued") {
869
871
  ended(false);
@@ -1385,5 +1387,8 @@ export function createChatHandlers(runtime) {
1385
1387
  "chat.file": chatFile,
1386
1388
  "chat.ack-send": chatAckSend,
1387
1389
  });
1390
+ const viewRunner = options.viewRunner ?? binaryViewRunner();
1391
+ const viewAllowed = (request, who) => viewAllowedFor({ via: who.via, ...(who.authority === undefined ? {} : { authority: who.authority }), name: who.name,
1392
+ fromThisComputer: runtime.fromThisComputer(request), approvers: store.listApprovers().map(one => one.name) });
1388
1393
  return { registrations, chatFirstRun, phoneCard, chatProjectOf, beginLiveTurn, endLiveTurn, noteLead, takeLeadNote, demoResultView, storeChatKey, forgetChatKey, sweepChatDrafts, runChatTurn, chatHomeOf, firstTasksFor, approverCandidateCount, evictOldestCandidate };
1389
1394
  }
@@ -7,6 +7,7 @@ import { taskHref } from "./http.js";
7
7
  import { btn, chip, disclose, doc, docHeader, dock, facts, note, notice, phoneHeader, radios, slots, status } from "./kit.js";
8
8
  import { editorFileHref, evidenceBundleCard, evidenceWords, humanBytes, prefillScript, resultPanelHtml, revisionSealFields, runFactsRows, runNoun, terminalDiffCard, } from "./render-results.js";
9
9
  import { publicationFactsOf } from "./render-tasks.js";
10
+ import { detailShown } from "../action-ledger.js";
10
11
  export const sec = (title, body, attrs = html ``) => html `<section class="k-sec"${attrs}><h3>${title}</h3>${body}</section>`;
11
12
  const kitPage = (attrs, ...parts) => html `<div class="h-page" data-kit-page${attrs}>${parts}</div>`;
12
13
  export function runPage(chrome, run, taskId, artifacts, terminal = null, notes = [], csrf = "", comments = [], ciRepair = null, liveScript, peekable = false, running = false, editor = null, editorToggle = null, noted = false, structuredHandoff = null, proofBundle = null, route = null, publicationRow = null, review = null, result = null, sourceDigest = null) {
@@ -203,7 +204,7 @@ ${runs.map(run => html `<div class="h-tr" role="row"><span role="cell"><a class=
203
204
  const entries = pack.ledger.entries.filter(one => one.source !== "request");
204
205
  const requests = pack.ledger.entries.length - entries.length;
205
206
  const log = sec("Audit log", html `${entries.length === 0 ? note("No entries.") : html `<ul class="h-log">${[...entries].reverse().map(one => html `<li data-ledger-id="${one.id}">\
206
- <span class="k-num k-muted">${at(one.at)}</span><span><b>${one.actor}</b> ${one.action}${one.detail ? html `<span class="k-muted"> · ${one.detail}</span>` : ""}</span>\
207
+ <span class="k-num k-muted">${at(one.at)}</span><span><b>${one.actor}</b> ${one.action}${one.detail ? html `<span class="k-muted"> · ${detailShown(one.detail)}</span>` : ""}</span>\
207
208
  <span class="k-muted">${one.outcome}</span><span class="h-seal">${shortHash(one.seal?.hash ?? null)}</span></li>`)}</ul>`}${requests > 0 ? note(`Plus ${requests} ${requests === 1 ? "request" : "requests"} made through the console (accepted or refused), listed in the JSON.`) : ""}${pack.ledger.truncated ? note(`This record holds ${entries.length} of the task's entries and the newest ${requests} requests; the audit log export has the rest.`) : ""}`);
208
209
  const foot = html `<p class="k-note h-foot">Record digest <span class="k-mono">${pack.digest}</span>. Each entry's seal can be rechecked from the JSON: <span class="k-mono">${pack.ledger.recipe}</span>.</p>`;
209
210
  return { summary, broken, versions, agents, outcome, log, foot };
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,94 @@
1
+ import { execFileSync } from "node:child_process";
2
+ import { chooseTuiBinary, identityOf } from "./tui-launch.js";
3
+ import { engineContractDigest } from "./contracts/engine-api.js";
4
+ const VIEW_TIMEOUT_MS = 5_000;
5
+ const VIEW_MAX_OUTPUT = 256 * 1024;
6
+ const same = (a, b) => a !== null && a.dev === b.dev && a.ino === b.ino && a.size === b.size && a.mtimeNs === b.mtimeNs;
7
+ function viewEnv(env) {
8
+ const out = { PATH: "/usr/bin:/bin" };
9
+ for (const key of ["HOME", "XDG_CONFIG_HOME", "XDG_STATE_HOME"])
10
+ if (env[key] !== undefined)
11
+ out[key] = env[key];
12
+ return out;
13
+ }
14
+ export function viewAnswerOf(stdout) {
15
+ let parsed;
16
+ try {
17
+ parsed = JSON.parse(stdout.trim().split("\n").pop() ?? "");
18
+ }
19
+ catch {
20
+ return { ok: false, why: "the workbench answered something unreadable", unsure: true };
21
+ }
22
+ if (typeof parsed !== "object" || parsed === null)
23
+ return { ok: false, why: "the workbench answered something unreadable", unsure: true };
24
+ const body = parsed;
25
+ if (body["ok"] === false)
26
+ return { ok: false, why: typeof body["why"] === "string" ? body["why"].slice(0, 400) : "the workbench refused it" };
27
+ return { ok: true, body };
28
+ }
29
+ export function binaryViewRunner(env = process.env) {
30
+ return (verb, input) => {
31
+ const choice = chooseTuiBinary({ env, screenReader: false, platform: process.platform, arch: process.arch, contract: engineContractDigest() });
32
+ if (!choice.ok)
33
+ return { ok: false, why: `the terminal workbench isn't available here (${choice.why})` };
34
+ if (!same(identityOf(choice.binary), choice.identity))
35
+ return { ok: false, why: "the terminal workbench changed while it was being checked" };
36
+ try {
37
+ const stdout = execFileSync(choice.binary, ["view", verb], {
38
+ input: input ?? "", encoding: "utf8", timeout: VIEW_TIMEOUT_MS, maxBuffer: VIEW_MAX_OUTPUT, env: viewEnv(env), stdio: ["pipe", "pipe", "ignore"],
39
+ });
40
+ return viewAnswerOf(stdout);
41
+ }
42
+ catch (error) {
43
+ const out = error.stdout;
44
+ if (typeof out === "string" && out.trim() !== "")
45
+ return viewAnswerOf(out);
46
+ return { ok: false, why: "the terminal workbench didn't answer", unsure: true };
47
+ }
48
+ };
49
+ }
50
+ export const THEME_NAME = /^[a-z][a-z0-9-]{0,31}$/;
51
+ export const BUILT_IN_THEMES = ["terminal", "light", "dark", "high-contrast"];
52
+ export const VIEW_CHANGES_PER_MINUTE = 10;
53
+ export const VIEW_LEDGER_ACTION = "workbench look changed";
54
+ export async function runViewCommand(argv, write, runner = binaryViewRunner()) {
55
+ const [verb, ...rest] = argv;
56
+ const say = (answer, words) => {
57
+ if (!answer.ok) {
58
+ write(`toolroll view: ${answer.why}`);
59
+ return 1;
60
+ }
61
+ write(words(answer.body));
62
+ return 0;
63
+ };
64
+ if (verb === undefined || verb === "show") {
65
+ return say(runner("read"), body => {
66
+ const settings = (body["settings"] ?? {});
67
+ const saved = (body["themes"]?.["saved"] ?? []);
68
+ return [`theme: ${String(settings["theme"] ?? "terminal")}`, `density: ${String(settings["density"] ?? "compact")}`,
69
+ `saved themes: ${saved.length === 0 ? "none" : saved.map(one => String(one.name)).join(", ")}`].join("\n");
70
+ });
71
+ }
72
+ if (verb === "theme" && rest[0] === "set" && rest.length === 2) {
73
+ const name = rest[1];
74
+ if (!BUILT_IN_THEMES.includes(name) && !THEME_NAME.test(name)) {
75
+ write("toolroll view: a theme is terminal, light, dark, high-contrast or a saved theme's name (lowercase letters, digits and dashes)");
76
+ return 2;
77
+ }
78
+ return say(runner("set", JSON.stringify({ theme: name })), body => {
79
+ const changed = Array.isArray(body["changed"]) ? body["changed"].map(String) : [];
80
+ return changed.length === 0 ? `Theme: ${name}.` : changed.join("\n");
81
+ });
82
+ }
83
+ if (verb === "reset" && rest.length === 0)
84
+ return say(runner("reset"), body => String(body["said"] ?? "Your workbench settings are back to the defaults."));
85
+ write("usage: toolroll view [show] | toolroll view theme set <name> | toolroll view reset");
86
+ return 2;
87
+ }
88
+ export function viewAllowedFor(facts) {
89
+ if (facts.via !== "cookie" || !facts.fromThisComputer)
90
+ return false;
91
+ if (facts.authority === "local-owner")
92
+ return true;
93
+ return facts.approvers.length === 1 && facts.approvers[0] === facts.name;
94
+ }
@@ -479,7 +479,7 @@ function readWorkIndexPage(store, now, access, options, taskId = null) {
479
479
  'proof_verdict',(SELECT COALESCE(machine_verdict,verdict) FROM proof_verdict WHERE run=page_result_id),
480
480
  'proof_failed_check',(SELECT verdict='refuted' AND reasons_json LIKE '%approved verification command exited%' FROM proof_verdict WHERE run=page_result_id),'code',code,'ask_group',ask_group,'needs',needs,'person_need',person_need,'lead_claim',lead_claim,'family_running',family_running,'rank',rank,'ask_rank',ask_rank,'list_order',${ORDER},'sort_at',sort_at,
481
481
  'checked_actor',checked_actor,'checked_at',checked_at,'checked_digest',checked_digest,'checked_detail',checked_detail,'question_id',question_id,
482
- 'dependency_id',dependency_id,'dependency_state',dependency_state,'hold_until',hold_until,'attempt_run',(SELECT id FROM run WHERE task_ref IN (SELECT value FROM json_each(page.fam_refs)) AND (finished_at IS NOT NULL OR outcome IS NOT NULL) AND role NOT IN ('planner','reviewer') ORDER BY id DESC LIMIT 1),'custody_unresolved',custody_unresolved,'hold_kind',hold_kind,'hold_reason',substr(hold_reason,1,600),'hold_id',hold_id,'live_lease',live_lease IS NOT NULL,'approved',COALESCE(approved,0),
482
+ 'dependency_id',dependency_id,'dependency_state',dependency_state,'hold_until',hold_until,'attempt_run',(SELECT id FROM run WHERE task_ref IN (SELECT value FROM json_each(page.fam_refs)) AND (finished_at IS NOT NULL OR outcome IS NOT NULL) AND role NOT IN ('planner','reviewer') ORDER BY id DESC LIMIT 1),'attempt_no',CASE WHEN code='retry-scheduled' THEN (SELECT count(*) FROM run WHERE task_ref IN (SELECT value FROM json_each(page.fam_refs)) AND (finished_at IS NOT NULL OR outcome IS NOT NULL) AND role NOT IN ('planner','reviewer')) END,'custody_unresolved',custody_unresolved,'hold_kind',hold_kind,'hold_reason',substr(hold_reason,1,600),'hold_id',hold_id,'live_lease',live_lease IS NOT NULL,'approved',COALESCE(approved,0),
483
483
  'plan_changed',scope_digest IS NOT NULL AND digest IS NOT scope_digest,'head_ok',length(head_revision)=40 AND head_revision NOT GLOB '*[^a-f0-9]*','stop_run',stop_run,'unfinished',unfinished,'signed_out',signed_out,'no_agent',no_agent,'models_cleared',models_cleared,
484
484
  'question_run',(SELECT run FROM decision WHERE id=page.question_id),'agent_ask',page.agent_ask,
485
485
  'agent_ask_run',(SELECT run FROM agent_question WHERE id=page.agent_ask),'agent_ask_text',(SELECT substr(question,1,300) FROM agent_question WHERE id=page.agent_ask),'replaced_by',(SELECT successor FROM task_replacement WHERE task_ref=page.ref_id),
@@ -706,7 +706,7 @@ function itemOf(row, principal, probe, leadName, readiness, readable = false, no
706
706
  if (code === 'waiting-incident')
707
707
  detail = `The last attempts failed the same way (${failedAttemptSentence(s(row, 'attempt_reason')).replace(/[.\s]+$/, '').replace(/^./, first => first.toLowerCase())}). Retry, or change the plan.`;
708
708
  const context = code === 'stopping' ? { build: n(row, 'stop_run') || null }
709
- : code === 'retry-scheduled' ? { build: n(row, 'attempt_run') || null, retry: s(row, 'hold_until') === null ? null : retryWhenWords(s(row, 'hold_until'), now) }
709
+ : code === 'retry-scheduled' ? { build: n(row, 'attempt_run') || null, attempt: n(row, 'attempt_no') || null, retry: s(row, 'hold_until') === null ? null : retryWhenWords(s(row, 'hold_until'), now) }
710
710
  : code === 'vanished-run' ? { build: n(row, 'unfinished') || null }
711
711
  : code === 'earlier-active' ? { task: s(row, 'earlier_id') }
712
712
  : code === 'waiting-dependency' ? { task: s(row, 'dependency_id') } : {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toolroll",
3
- "version": "0.9.111",
3
+ "version": "0.9.112",
4
4
  "description": "Your agents build. You decide. A control plane for coding agents — Claude Code, Codex, Gemini: approve the exact scope once, get results back Ready with the diff, the passing check and screenshots. Runs on your machine.",
5
5
  "directories": {
6
6
  "doc": "docs"
@@ -94,6 +94,7 @@
94
94
  "class-variance-authority": "0.7.1",
95
95
  "clsx": "2.1.1",
96
96
  "esbuild": "0.28.2",
97
+ "fast-check": "4.10.2",
97
98
  "happy-dom": "20.14.5",
98
99
  "ink": "6.8.0",
99
100
  "ink-testing-library": "4.0.0",