toolroll 0.9.129 → 0.9.131

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.
Files changed (155) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/agent-fence.js +0 -2
  3. package/dist/agent-state.js +1 -1
  4. package/dist/agents-board.js +0 -3
  5. package/dist/assignment.js +4 -3
  6. package/dist/backup-ui.js +6 -3
  7. package/dist/bounded-spawn.js +0 -1
  8. package/dist/browser/manifest.json +57 -0
  9. package/dist/browser/terminal.4d1cf20c32ad7c2099df657358d540d5fd92bb55195a88121e74b28467238b42.css.br +0 -0
  10. package/dist/browser/terminal.4d1cf20c32ad7c2099df657358d540d5fd92bb55195a88121e74b28467238b42.css.gz +0 -0
  11. package/dist/browser/{terminal.js → terminal.8978c8cbb268e1006f4b0be371c2401b58078e6d9f1380f4a5c2a12da843909f.js} +1 -1
  12. package/dist/browser/terminal.8978c8cbb268e1006f4b0be371c2401b58078e6d9f1380f4a5c2a12da843909f.js.br +0 -0
  13. package/dist/browser/terminal.8978c8cbb268e1006f4b0be371c2401b58078e6d9f1380f4a5c2a12da843909f.js.gz +0 -0
  14. package/dist/browser/{workspace.js → workspace.4f5935dc80574baadf1adafd39a08c567fb1fac1323052ca355546622f9b06d2.js} +25 -25
  15. package/dist/browser/workspace.4f5935dc80574baadf1adafd39a08c567fb1fac1323052ca355546622f9b06d2.js.br +0 -0
  16. package/dist/browser/workspace.4f5935dc80574baadf1adafd39a08c567fb1fac1323052ca355546622f9b06d2.js.gz +0 -0
  17. package/dist/browser/{workspace.css → workspace.a0752f935cfeaf16758d1085fe8f3e1719a7cd525b91a9c9943c789d65879a54.css} +1 -1
  18. package/dist/browser/workspace.a0752f935cfeaf16758d1085fe8f3e1719a7cd525b91a9c9943c789d65879a54.css.br +0 -0
  19. package/dist/browser/workspace.a0752f935cfeaf16758d1085fe8f3e1719a7cd525b91a9c9943c789d65879a54.css.gz +0 -0
  20. package/dist/browser-shell.js +271 -25
  21. package/dist/builder-restart.js +13 -4
  22. package/dist/builder.js +4 -1
  23. package/dist/canvas-freshness.js +122 -0
  24. package/dist/canvas-fs.js +273 -0
  25. package/dist/canvas-reads.js +747 -0
  26. package/dist/canvas-state-key.js +45 -0
  27. package/dist/canvas-state-worker.js +12 -0
  28. package/dist/central-recovery-stage.js +3 -3
  29. package/dist/chat-actions.js +26 -0
  30. package/dist/chat-channel.js +4 -3
  31. package/dist/chat-follow.js +4 -0
  32. package/dist/chat-task-actions.js +1 -1
  33. package/dist/chat-warmth.js +0 -1
  34. package/dist/check-report.js +0 -6
  35. package/dist/commit-extract.js +79 -40
  36. package/dist/companion/access.js +1 -0
  37. package/dist/companion/actions.js +79 -16
  38. package/dist/companion/canvas.js +141 -0
  39. package/dist/companion/chat-origin.js +92 -0
  40. package/dist/companion/chat.js +571 -0
  41. package/dist/companion/daemon.js +46 -5
  42. package/dist/companion/finish.js +51 -0
  43. package/dist/companion/reads.js +5 -1
  44. package/dist/companion/schema.js +64 -0
  45. package/dist/companion/service.js +1 -0
  46. package/dist/companion/store.js +1 -0
  47. package/dist/companion/webauthn.js +11 -2
  48. package/dist/console-instance.js +0 -4
  49. package/dist/contracts/console-api.js +1 -1
  50. package/dist/converse.js +0 -1
  51. package/dist/coordinator.js +1 -1
  52. package/dist/db-tuning.js +16 -0
  53. package/dist/desktop-config.js +156 -0
  54. package/dist/desktop-host.js +6 -152
  55. package/dist/desktop-update.js +1 -1
  56. package/dist/discord.js +9 -3
  57. package/dist/dispatch.js +32 -4
  58. package/dist/doctor.js +30 -0
  59. package/dist/evidence.js +49 -3
  60. package/dist/exec.js +3 -0
  61. package/dist/finished-task-sql.js +14 -0
  62. package/dist/flexible-answers.js +0 -1
  63. package/dist/git-views.js +7 -1
  64. package/dist/github-read.js +41 -0
  65. package/dist/guides.js +4 -3
  66. package/dist/invoke.js +12 -2
  67. package/dist/lead-doors.js +50 -3
  68. package/dist/lead-queue-runtime.js +18 -6
  69. package/dist/lead-queue.js +25 -0
  70. package/dist/lead-status.js +3 -3
  71. package/dist/live-backup-change.js +93 -0
  72. package/dist/live-backup.js +75 -31
  73. package/dist/live-bus.js +3 -2
  74. package/dist/live-records.js +0 -1
  75. package/dist/local-owner.js +0 -1
  76. package/dist/loop-recovery.js +40 -0
  77. package/dist/maintenance.js +29 -1
  78. package/dist/model-choices.js +0 -11
  79. package/dist/needs-you.js +2 -0
  80. package/dist/nightly-check.js +0 -3
  81. package/dist/nightly-github.js +1 -2
  82. package/dist/notification-retention.js +119 -0
  83. package/dist/observations.js +0 -1
  84. package/dist/operate.js +393 -56
  85. package/dist/planner.js +4 -1
  86. package/dist/pull-request-flow.js +56 -15
  87. package/dist/qr.js +0 -25
  88. package/dist/query-index-schema.js +10 -0
  89. package/dist/read-executor-worker.js +9 -7
  90. package/dist/read-executor.js +18 -1
  91. package/dist/read-worker-connection.js +7 -0
  92. package/dist/release-adapters.js +63 -48
  93. package/dist/release-auto.js +17 -13
  94. package/dist/release-card.js +0 -4
  95. package/dist/release-cli.js +58 -10
  96. package/dist/release-next.js +1 -1
  97. package/dist/release-stops.js +71 -0
  98. package/dist/release-supersede.js +125 -0
  99. package/dist/release-supervise.js +90 -0
  100. package/dist/release.js +265 -42
  101. package/dist/restore-retirement.js +4 -1
  102. package/dist/result-review.js +0 -3
  103. package/dist/retention-ui.js +1 -1
  104. package/dist/retention.js +14 -21
  105. package/dist/review-context.js +0 -5
  106. package/dist/route-rules.js +1 -5
  107. package/dist/runner.js +36 -1
  108. package/dist/sandbox-runtime.js +0 -1
  109. package/dist/scope.js +1 -13
  110. package/dist/scout.js +4 -7
  111. package/dist/serve.js +122 -12
  112. package/dist/server/kit.js +1 -0
  113. package/dist/server/live.js +9 -2
  114. package/dist/server/pages.js +3 -2
  115. package/dist/server/phone-engine-api.js +22 -2
  116. package/dist/server/render-pages.js +1 -11
  117. package/dist/server/render-results.js +0 -1
  118. package/dist/server/render-tasks.js +0 -68
  119. package/dist/server/route-table.js +1 -1
  120. package/dist/server/settings-phone.js +32 -9
  121. package/dist/server/settings-scripts.js +1 -1
  122. package/dist/server/settings-section-table.js +0 -3
  123. package/dist/server/settings-sections.js +4 -2
  124. package/dist/server/settings.js +20 -5
  125. package/dist/server/terminals.js +2 -1
  126. package/dist/shutdown-proof.js +29 -0
  127. package/dist/slack.js +9 -3
  128. package/dist/sqlite-telemetry.js +26 -14
  129. package/dist/statement-cache.js +137 -0
  130. package/dist/store.js +86 -14
  131. package/dist/structured-output.js +0 -1
  132. package/dist/style-asset.js +20 -7
  133. package/dist/tailnet.js +0 -3
  134. package/dist/task-control.js +5 -0
  135. package/dist/task-sizing.js +0 -1
  136. package/dist/task-status.js +1 -1
  137. package/dist/teams.js +9 -3
  138. package/dist/teardown-git.js +10 -1
  139. package/dist/telegram.js +4 -1
  140. package/dist/toolroll-update-cli.js +19 -3
  141. package/dist/toolroll-update-ui.js +2 -2
  142. package/dist/toolroll-update.js +95 -15
  143. package/dist/up-processes.js +16 -1
  144. package/dist/up-role-child.js +2 -0
  145. package/dist/wake-hub.js +15 -6
  146. package/dist/work-index.js +101 -44
  147. package/dist/work-reads.js +53 -9
  148. package/dist/work-snapshots.js +185 -0
  149. package/dist/worker-statement-cache.js +83 -0
  150. package/dist/workspace-revision.js +145 -21
  151. package/package.json +1 -1
  152. package/dist/companion/webauthn-test-support.js +0 -44
  153. package/dist/contracts/contract-test.js +0 -55
  154. package/dist/unfenced-test-support.js +0 -6
  155. /package/dist/browser/{terminal.css → terminal.4d1cf20c32ad7c2099df657358d540d5fd92bb55195a88121e74b28467238b42.css} +0 -0
package/CHANGELOG.md CHANGED
@@ -4,6 +4,50 @@ Each release opens with one line on its theme, then **New**, **Changed**, **Fixe
4
4
  the ones it has). Each item is at most two lines and says where to find it. Notes for maintainers (CI, the release
5
5
  tooling) go on the GitHub release, not here. Entries before 0.9.104 use the older format.
6
6
 
7
+ ## 0.9.131 — 2026-11-29
8
+
9
+ Toolroll keeps itself running: builders and releases recover on their own, and every console page answers in tens of
10
+ milliseconds while builds run.
11
+
12
+ ### Changed
13
+ - Pages answer fast under load: Home, Work, Agents, Settings and Projects about 10 ms on the server, Chat about 30 ms,
14
+ even while builds write to the database (they were ~0.5 s).
15
+ - Builders recover by themselves after the database was busy or a worker stalled; status says "This project's builder
16
+ stopped; Toolroll is restarting it" instead of showing a free builder that isn't there. `toolroll doctor` lists them.
17
+ - A release now sees itself through: it waits out its own Git lock, GitHub outages and npm/Homebrew catching up, and
18
+ picks up where it stopped (within a 6-hour budget). `--new` puts the earlier attempt away instead of leaving it queued.
19
+ - A CI failure caused by GitHub's own runner before any test ran is rerun once, automatically; test failures never are.
20
+ - Faster database reads: a larger cache, temporary data in memory, reused queries and better indexes (schema v190).
21
+
22
+ ### Fixed
23
+ - A builder renewing its hold a few seconds late is no longer treated as having lost the project.
24
+ - A worker that couldn't finish shutting down no longer sits idle forever; it exits once its builds are proved stopped.
25
+ - A release on the main road no longer fails after merge because GitHub forgot the pull request.
26
+
27
+ ## 0.9.130 — 2026-11-29
28
+
29
+ Talk to the lead from your iPhone, see your Canvas there, pair and turn on approvals in one go, and a faster console.
30
+
31
+ ### New
32
+
33
+ - **Lead tab on iPhone**: talk to the lead from your phone, in your main conversation or a task's own thread (Ask Lead on a task). Replies stream in as they're written; what you type while your Mac is out of reach is kept as a draft and only sends when you tap Send. A message from the phone can never approve anything on its own. Needs the Mac's chat on a Claude or Codex membership.
34
+ - **Finish work from your iPhone**: open the pull request, land a result on your branch, or undo a landing, each confirmed with your passkey and showing exactly where it goes. Merging a pull request stays on your Mac for now ("Merge it on your Mac").
35
+ - **Canvas on iPhone** (Work → Canvas): each project's Web and App · iPhone screens with their capture time, an out-of-date badge, full-screen zoom, light and dark, and pins linked to their tasks. View only for now.
36
+
37
+ ### Changed
38
+
39
+ - **Pair and turn on approvals in one go**: confirming the pairing code on your Mac also opens passkey setup for that phone, and the phone goes straight to Turn on approvals. A paired phone without a passkey says so instead of showing approve buttons that would fail.
40
+ - **Faster console**: the app's script and styles are cached and compressed, so a repeat visit downloads almost nothing (Home about 2.0 s → 0.9 s, Settings 1.8 s → 0.6 s on a phone), and pages no longer re-download the whole work list just to update the Needs you count.
41
+ - **Lighter backups**: the continuous backup copies only when something changed (a quick check on each copy, a full check at least daily) instead of copying and fully checking the whole database every 5 minutes. Settings → Backups says which check each copy passed.
42
+ - **Old progress notifications are cleared**: progress pings for finished tasks and undeliverable old receipts are removed after 30 days, so the database stops growing from them.
43
+ - **Version drift is shown**: when the background service runs a different build from `toolroll`, the update preview, `toolroll status` and the console (Settings → Updates, General → Version) say which is newer and to run `toolroll update --yes`.
44
+
45
+ ### Fixed
46
+
47
+ - **Fewer dropped requests behind a proxy**: the console keeps idle connections open longer than Tailscale serve or a reverse proxy does, so a reused connection is never reset.
48
+ - **`toolroll update` updates the background service too**: a launchd service still running an older build is drained, pointed at the new build and restarted, instead of refusing "Stop it first" or leaving it behind.
49
+ - **Already up to date, service behind**: `toolroll update --yes` reinstalls the current release and points the service at it.
50
+
7
51
  ## 0.9.129 — 2026-11-28
8
52
 
9
53
  The Toolroll iPhone app: see what needs you, read plans and changes, and approve with a passkey, from anywhere.
@@ -873,8 +873,6 @@ export function linuxFenceAvailable(platform = process.platform, probe = () => s
873
873
  }
874
874
  return linuxWorks;
875
875
  }
876
- export class LinuxFenceUnavailable extends Error {
877
- }
878
876
  export function srtTermsOf(fence, grants = NO_GRANTS) {
879
877
  const denyRead = new Set(fence.map(real));
880
878
  const regular = new Set(grants.exactRegular ?? []);
@@ -42,7 +42,7 @@ export function factsOfAttempt(facts, activityAt, paused, now, decisionOpen) {
42
42
  return { activity: "finished", outcome: "none", obligation: !settled && decisionOpen !== false, unread };
43
43
  return { activity: "finished", outcome: settled ? "none" : "failed", obligation: false, unread };
44
44
  }
45
- const WAITING_CODES = new Set(["queued", "planning-ready", "scouting-ready", "updating", "retry-scheduled", "waiting-dependency", "worker-at-capacity"]);
45
+ const WAITING_CODES = new Set(["queued", "planning-ready", "scouting-ready", "updating", "retry-scheduled", "waiting-dependency", "worker-at-capacity", "watch-stalled"]);
46
46
  const AT_WORK = new Set(["running", "stopping"]);
47
47
  const FLOW_ASKS = 50;
48
48
  export function projectStates(store, access, account, now, root, flowRepos) {
@@ -201,9 +201,6 @@ export const LANE_ROWS = 12;
201
201
  const LANE_LOOKBACK_MS = 24 * 60 * 60_000;
202
202
  const WINDOW_MS = { "30m": 30 * 60_000, "2h": 2 * 60 * 60_000, "24h": 24 * 60 * 60_000 };
203
203
  const LANE_ROLES = "('planner', 'builder', 'repair', 'reviewer', 'scout')";
204
- export function laneWindowOf(value) {
205
- return value === "30m" || value === "24h" ? value : "2h";
206
- }
207
204
  export function laneSinceOf(window, now) {
208
205
  return new Date(now.getTime() - WINDOW_MS[window]);
209
206
  }
@@ -25,7 +25,7 @@ import { assignmentStageOf, checkBackingOf, completionBlockersOf, receiptChecksO
25
25
  import { releaseCoverageOf } from "./release-coverage.js";
26
26
  import { leadClaimOf } from "./lead-voice.js";
27
27
  import { passkeyApprovalWindowMinutes, usesPasskeyLease, verifyPasskeyAction, verifyPasskeyLease } from "./companion/passkey-gate.js";
28
- import { acceptBindingOf, passkeyProofDetail } from "./companion/webauthn.js";
28
+ import { acceptBindingOf, passkeyProofDetail, publishDestinationForRun } from "./companion/webauthn.js";
29
29
  import { isProtectedWork, protectedChanges } from "./approval-policy.js";
30
30
  export function assignmentBrief(assignment) {
31
31
  if (assignment === null)
@@ -590,13 +590,14 @@ export function acceptAndCompleteAsOperator(store, taskId, input, who, now, root
590
590
  accountName: who.name,
591
591
  repo: before.repo,
592
592
  verb: "accept",
593
- expectedBinding: acceptBindingOf({ taskId, runId: input.runId, receiptDigest: input.receiptDigest, note: input.note, publish: input.publish === true }, receipt.runId),
593
+ expectedBinding: acceptBindingOf({ taskId, runId: input.runId, receiptDigest: input.receiptDigest, note: input.note, publish: input.publish === true,
594
+ destination: input.publish === true ? publishDestinationForRun(store, receipt.runId) : undefined }, receipt.runId),
594
595
  proof: input.passkey,
595
596
  now,
596
597
  ...(routine ? { startsLease: { minutes: passkeyApprovalWindowMinutes(store) } } : {}),
597
598
  });
598
599
  if (!verified.ok)
599
- return { ok: false, reason: verified.code === "step_up_required" ? "step-up-required" : "unauthenticated", message: verified.message };
600
+ return { ok: false, reason: verified.code === "step_up_required" ? "step-up-required" : verified.code === "binding_mismatch" ? "changed" : "unauthenticated", message: verified.message };
600
601
  passkeyProof = {
601
602
  outcome: lease ? "passkey-fresh" : "passkey",
602
603
  detail: passkeyProofDetail({ at: now, ...(lease ? { provedAtMs: verified.provedAtMs } : {}), generation: verified.accountGeneration, digest: receipt.digest, verb: "accept",
package/dist/backup-ui.js CHANGED
@@ -19,9 +19,12 @@ function liveLine(view) {
19
19
  return note("Continuous copy is off.");
20
20
  if (live.state.problem !== null)
21
21
  return notice(`The continuous copy failed: ${live.state.problem}`);
22
- if (live.state.latest === null)
22
+ const newest = live.newest ?? (live.state.latest === null ? null : { madeAt: live.state.latest.madeAt, check: "integrity" });
23
+ if (newest === null)
23
24
  return note("The first continuous copy is made within a few minutes of Toolroll starting.");
24
- return html `<p class="k-note" data-live-copy>Continuous copy checked ${when(live.state.latest.madeAt)}, every ${live.state.settings.everyMinutes === 1 ? "minute" : `${live.state.settings.everyMinutes} minutes`}.</p>`;
25
+ const every = live.state.settings.everyMinutes === 1 ? "minute" : `${live.state.settings.everyMinutes} minutes`;
26
+ const full = newest.check === "quick" && live.state.latest !== null ? ` Last full integrity check ${whenWords(live.state.latest.madeAt)}.` : "";
27
+ return html `<p class="k-note" data-live-copy>Latest continuous copy ${when(newest.madeAt)} (${newest.check === "quick" ? "quick check" : "full integrity check"}).${full} Toolroll looks for changes every ${every} and copies only when something changed; at least once a day it copies anyway and runs the full integrity check. A change made outside Toolroll (a script, or the database edited by hand) may wait for that daily copy.</p>`;
25
28
  }
26
29
  function state(view) {
27
30
  const last = view.runs[0];
@@ -89,7 +92,7 @@ function liveFields(view) {
89
92
  const every = select({ id: "backup-live-every", name: "live_every", label: "Copy continuously", current: on.enabled ? String(on.everyMinutes) : "off",
90
93
  items: [["off", "Off"], ...LIVE_EVERY.map(minutes => [String(minutes), minutes === 1 ? "Every minute" : `Every ${minutes} minutes`])] });
91
94
  return joinHtml([
92
- formRow("Copy continuously", "A checked copy of the database every few minutes, between backups.", every, "inline"),
95
+ formRow("Copy continuously", "Between backups, a checked copy of the database whenever it changed, looked for this often.", every, "inline"),
93
96
  formRow("Copy folder", "Blank: beside the database.", input({ id: "backup-live-folder", name: "live_folder", value: on.folder ?? "",
94
97
  attrs: { placeholder: live.defaultFolder, spellcheck: "false", "aria-label": "Copy folder" } })),
95
98
  ]);
@@ -8,7 +8,6 @@ const PIDS = 64;
8
8
  const PRELUDE = 'if [ "$1" != none ]; then if [ -n "$BASH_VERSION" ]; then b=$(($1/1024)); else b=$(($1/512)); fi; ulimit -f "$b" 2>/dev/null || exit 126; fi\nshift\nexec "$@"';
9
9
  let containment = null;
10
10
  const preferred = () => containment ??= effectiveContainment("preferred", probeContainmentCapability());
11
- export function resetBoundedContainmentForTests() { containment = null; }
12
11
  export function processStartedAt(pid) {
13
12
  return processIdentity(pid);
14
13
  }
@@ -0,0 +1,57 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "assets": {
4
+ "workspace.js": {
5
+ "file": "workspace.4f5935dc80574baadf1adafd39a08c567fb1fac1323052ca355546622f9b06d2.js",
6
+ "sha256": "4f5935dc80574baadf1adafd39a08c567fb1fac1323052ca355546622f9b06d2",
7
+ "bytes": 1197776,
8
+ "br": {
9
+ "sha256": "c2be5bfdd4fc54673c19458b75444a15b2d9166dc3e3b092b3b5c823a31d6ec8",
10
+ "bytes": 305782
11
+ },
12
+ "gzip": {
13
+ "sha256": "bf56e5c3d89db11afb0dbdf8839d517162108ca814b8e3fe72ee868cd072c9a9",
14
+ "bytes": 367180
15
+ }
16
+ },
17
+ "workspace.css": {
18
+ "file": "workspace.a0752f935cfeaf16758d1085fe8f3e1719a7cd525b91a9c9943c789d65879a54.css",
19
+ "sha256": "a0752f935cfeaf16758d1085fe8f3e1719a7cd525b91a9c9943c789d65879a54",
20
+ "bytes": 230217,
21
+ "br": {
22
+ "sha256": "d366b686570d4545e2464490af77461b74808f0f90e3b269324e1d137a4dd6df",
23
+ "bytes": 30944
24
+ },
25
+ "gzip": {
26
+ "sha256": "ec3be3bfe980eef77dca2076e5efcb88c6d2bf34ab016199aeb4e187409395f2",
27
+ "bytes": 36317
28
+ }
29
+ },
30
+ "terminal.js": {
31
+ "file": "terminal.8978c8cbb268e1006f4b0be371c2401b58078e6d9f1380f4a5c2a12da843909f.js",
32
+ "sha256": "8978c8cbb268e1006f4b0be371c2401b58078e6d9f1380f4a5c2a12da843909f",
33
+ "bytes": 780933,
34
+ "br": {
35
+ "sha256": "bcdd69300f56d77bff7066d21b40a075827c19a0b50bcbb17293173059480fd1",
36
+ "bytes": 167682
37
+ },
38
+ "gzip": {
39
+ "sha256": "82ed7a0beefa256275cc03facd5f4485dd6956d38ee97e9492693b257ee8fa39",
40
+ "bytes": 219398
41
+ }
42
+ },
43
+ "terminal.css": {
44
+ "file": "terminal.4d1cf20c32ad7c2099df657358d540d5fd92bb55195a88121e74b28467238b42.css",
45
+ "sha256": "4d1cf20c32ad7c2099df657358d540d5fd92bb55195a88121e74b28467238b42",
46
+ "bytes": 77650,
47
+ "br": {
48
+ "sha256": "8dba626d3778caaddfa93a40ccd0e3c4ef04cad3865a7558cbc63646669dfb39",
49
+ "bytes": 13176
50
+ },
51
+ "gzip": {
52
+ "sha256": "ccd860a398e19a5876cd7758707cdded058690ab747f62a02d8ec172f679776a",
53
+ "bytes": 15262
54
+ }
55
+ }
56
+ }
57
+ }