toolroll 0.9.129 → 0.9.130

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 (113) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/agent-fence.js +0 -2
  3. package/dist/agents-board.js +0 -3
  4. package/dist/assignment.js +4 -3
  5. package/dist/backup-ui.js +6 -3
  6. package/dist/bounded-spawn.js +0 -1
  7. package/dist/browser/manifest.json +57 -0
  8. package/dist/browser/terminal.2a682d0b91a35288271c73b7ee253e524cca0917d17fbaf6733e80b7a767a37c.js.br +0 -0
  9. package/dist/browser/terminal.2a682d0b91a35288271c73b7ee253e524cca0917d17fbaf6733e80b7a767a37c.js.gz +0 -0
  10. package/dist/browser/terminal.4d1cf20c32ad7c2099df657358d540d5fd92bb55195a88121e74b28467238b42.css.br +0 -0
  11. package/dist/browser/terminal.4d1cf20c32ad7c2099df657358d540d5fd92bb55195a88121e74b28467238b42.css.gz +0 -0
  12. package/dist/browser/{workspace.js → workspace.9bd1db81d3c897045a5d82d4804e374e41e78b1b2cfd05d37b982a4ea0d02626.js} +25 -25
  13. package/dist/browser/workspace.9bd1db81d3c897045a5d82d4804e374e41e78b1b2cfd05d37b982a4ea0d02626.js.br +0 -0
  14. package/dist/browser/workspace.9bd1db81d3c897045a5d82d4804e374e41e78b1b2cfd05d37b982a4ea0d02626.js.gz +0 -0
  15. package/dist/browser/{workspace.css → workspace.a0752f935cfeaf16758d1085fe8f3e1719a7cd525b91a9c9943c789d65879a54.css} +1 -1
  16. package/dist/browser/workspace.a0752f935cfeaf16758d1085fe8f3e1719a7cd525b91a9c9943c789d65879a54.css.br +0 -0
  17. package/dist/browser/workspace.a0752f935cfeaf16758d1085fe8f3e1719a7cd525b91a9c9943c789d65879a54.css.gz +0 -0
  18. package/dist/browser-shell.js +271 -25
  19. package/dist/canvas-freshness.js +122 -0
  20. package/dist/canvas-fs.js +273 -0
  21. package/dist/canvas-reads.js +747 -0
  22. package/dist/canvas-state-key.js +45 -0
  23. package/dist/canvas-state-worker.js +12 -0
  24. package/dist/central-recovery-stage.js +3 -3
  25. package/dist/chat-actions.js +26 -0
  26. package/dist/chat-channel.js +4 -3
  27. package/dist/chat-task-actions.js +1 -1
  28. package/dist/chat-warmth.js +0 -1
  29. package/dist/check-report.js +0 -6
  30. package/dist/commit-extract.js +79 -40
  31. package/dist/companion/access.js +1 -0
  32. package/dist/companion/actions.js +79 -16
  33. package/dist/companion/canvas.js +141 -0
  34. package/dist/companion/chat-origin.js +92 -0
  35. package/dist/companion/chat.js +571 -0
  36. package/dist/companion/daemon.js +46 -5
  37. package/dist/companion/finish.js +51 -0
  38. package/dist/companion/reads.js +5 -1
  39. package/dist/companion/schema.js +64 -0
  40. package/dist/companion/service.js +1 -0
  41. package/dist/companion/store.js +1 -0
  42. package/dist/companion/webauthn.js +11 -2
  43. package/dist/console-instance.js +0 -4
  44. package/dist/contracts/console-api.js +1 -1
  45. package/dist/converse.js +0 -1
  46. package/dist/coordinator.js +1 -1
  47. package/dist/desktop-config.js +156 -0
  48. package/dist/desktop-host.js +6 -152
  49. package/dist/desktop-update.js +1 -1
  50. package/dist/finished-task-sql.js +14 -0
  51. package/dist/flexible-answers.js +0 -1
  52. package/dist/github-read.js +41 -0
  53. package/dist/guides.js +4 -3
  54. package/dist/lead-doors.js +50 -3
  55. package/dist/lead-queue-runtime.js +11 -2
  56. package/dist/lead-queue.js +25 -0
  57. package/dist/live-backup-change.js +93 -0
  58. package/dist/live-backup.js +75 -31
  59. package/dist/live-bus.js +3 -2
  60. package/dist/live-records.js +0 -1
  61. package/dist/local-owner.js +0 -1
  62. package/dist/model-choices.js +0 -11
  63. package/dist/nightly-check.js +0 -3
  64. package/dist/nightly-github.js +1 -2
  65. package/dist/notification-retention.js +119 -0
  66. package/dist/observations.js +0 -1
  67. package/dist/operate.js +17 -4
  68. package/dist/pull-request-flow.js +56 -15
  69. package/dist/qr.js +0 -25
  70. package/dist/release-adapters.js +12 -42
  71. package/dist/release-auto.js +17 -13
  72. package/dist/release-card.js +0 -4
  73. package/dist/release-cli.js +37 -2
  74. package/dist/release.js +13 -2
  75. package/dist/restore-retirement.js +4 -1
  76. package/dist/result-review.js +0 -3
  77. package/dist/retention-ui.js +1 -1
  78. package/dist/retention.js +14 -21
  79. package/dist/review-context.js +0 -5
  80. package/dist/route-rules.js +1 -5
  81. package/dist/sandbox-runtime.js +0 -1
  82. package/dist/scope.js +1 -13
  83. package/dist/scout.js +0 -6
  84. package/dist/serve.js +31 -7
  85. package/dist/server/kit.js +1 -0
  86. package/dist/server/live.js +9 -2
  87. package/dist/server/pages.js +3 -2
  88. package/dist/server/phone-engine-api.js +22 -2
  89. package/dist/server/render-pages.js +1 -11
  90. package/dist/server/render-results.js +0 -1
  91. package/dist/server/render-tasks.js +0 -68
  92. package/dist/server/route-table.js +1 -1
  93. package/dist/server/settings-phone.js +32 -9
  94. package/dist/server/settings-scripts.js +1 -1
  95. package/dist/server/settings-section-table.js +0 -3
  96. package/dist/server/settings-sections.js +4 -2
  97. package/dist/server/settings.js +20 -5
  98. package/dist/server/terminals.js +2 -1
  99. package/dist/store.js +20 -5
  100. package/dist/structured-output.js +0 -1
  101. package/dist/style-asset.js +20 -7
  102. package/dist/tailnet.js +0 -3
  103. package/dist/task-control.js +5 -0
  104. package/dist/task-sizing.js +0 -1
  105. package/dist/toolroll-update-cli.js +19 -3
  106. package/dist/toolroll-update-ui.js +2 -2
  107. package/dist/toolroll-update.js +95 -15
  108. package/package.json +1 -1
  109. package/dist/companion/webauthn-test-support.js +0 -44
  110. package/dist/contracts/contract-test.js +0 -55
  111. package/dist/unfenced-test-support.js +0 -6
  112. /package/dist/browser/{terminal.js → terminal.2a682d0b91a35288271c73b7ee253e524cca0917d17fbaf6733e80b7a767a37c.js} +0 -0
  113. /package/dist/browser/{terminal.css → terminal.4d1cf20c32ad7c2099df657358d540d5fd92bb55195a88121e74b28467238b42.css} +0 -0
package/CHANGELOG.md CHANGED
@@ -4,6 +4,30 @@ 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.130 — 2026-11-29
8
+
9
+ Talk to the lead from your iPhone, see your Canvas there, pair and turn on approvals in one go, and a faster console.
10
+
11
+ ### New
12
+
13
+ - **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.
14
+ - **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").
15
+ - **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.
16
+
17
+ ### Changed
18
+
19
+ - **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.
20
+ - **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.
21
+ - **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.
22
+ - **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.
23
+ - **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`.
24
+
25
+ ### Fixed
26
+
27
+ - **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.
28
+ - **`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.
29
+ - **Already up to date, service behind**: `toolroll update --yes` reinstalls the current release and points the service at it.
30
+
7
31
  ## 0.9.129 — 2026-11-28
8
32
 
9
33
  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 ?? []);
@@ -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.9bd1db81d3c897045a5d82d4804e374e41e78b1b2cfd05d37b982a4ea0d02626.js",
6
+ "sha256": "9bd1db81d3c897045a5d82d4804e374e41e78b1b2cfd05d37b982a4ea0d02626",
7
+ "bytes": 1197716,
8
+ "br": {
9
+ "sha256": "b0a8d16c6994ac1984df9c1d9e9467692232036fc45cc49d5896da03c6dfcdf8",
10
+ "bytes": 305761
11
+ },
12
+ "gzip": {
13
+ "sha256": "92c02fd89e62f69df7ca5ae0224ec663fe13bf7e1f6932462ea09a97f65da8ab",
14
+ "bytes": 367162
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.2a682d0b91a35288271c73b7ee253e524cca0917d17fbaf6733e80b7a767a37c.js",
32
+ "sha256": "2a682d0b91a35288271c73b7ee253e524cca0917d17fbaf6733e80b7a767a37c",
33
+ "bytes": 780873,
34
+ "br": {
35
+ "sha256": "ddab065c7eeec564171884f4fa948da30b5ec7937d5ffc9df53bb522e5b25b33",
36
+ "bytes": 167572
37
+ },
38
+ "gzip": {
39
+ "sha256": "5652b5aee53192ef0e12f7279725e2b1cd5370b3215787ea0183e22964042d98",
40
+ "bytes": 219378
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
+ }