toolroll 0.9.119 → 0.9.120

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 (40) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +8 -8
  3. package/dist/assignment.js +9 -7
  4. package/dist/browser/workspace.js +23 -23
  5. package/dist/builder.js +2 -1
  6. package/dist/cli-help.js +1 -0
  7. package/dist/codex-limits.js +40 -22
  8. package/dist/contracts/console-api.js +2 -0
  9. package/dist/engine-reads.js +3 -1
  10. package/dist/flexible-import.js +38 -0
  11. package/dist/flexible-save.js +128 -0
  12. package/dist/flexible-session.js +9 -2
  13. package/dist/flexible-ship.js +3 -3
  14. package/dist/flexible-thread.js +2 -2
  15. package/dist/local-checks.js +32 -0
  16. package/dist/local-landing.js +321 -63
  17. package/dist/local-owner.js +2 -0
  18. package/dist/operate.js +25 -7
  19. package/dist/plan-limits-demand.js +48 -0
  20. package/dist/result-follow-ups.js +22 -8
  21. package/dist/review-context.js +2 -1
  22. package/dist/server/direct-chat.js +24 -3
  23. package/dist/server/engine-api.js +24 -3
  24. package/dist/server/render-results.js +6 -4
  25. package/dist/server/route-table.js +6 -1
  26. package/dist/server/send-back-build.js +4 -0
  27. package/dist/server/settings.js +2 -0
  28. package/dist/server/task-views.js +8 -3
  29. package/dist/server/tasks.js +51 -9
  30. package/dist/settings-groups-ui.js +1 -1
  31. package/dist/subscription-usage.js +11 -5
  32. package/dist/surface.js +3 -2
  33. package/dist/task-base.js +23 -4
  34. package/dist/task-outcome-cli.js +10 -1
  35. package/dist/tui/darwin-arm64/toolroll-tui +0 -0
  36. package/dist/tui/darwin-x64/toolroll-tui +0 -0
  37. package/dist/tui/linux-arm64/toolroll-tui +0 -0
  38. package/dist/tui/linux-x64/toolroll-tui +0 -0
  39. package/dist/verification-evidence.js +3 -1
  40. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,37 @@ 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.120 — 2026-11-25
8
+
9
+ Landing puts exactly the change you reviewed on your branch, thread work can reach a local project, and Toolroll
10
+ stops spending plan usage while it sits idle.
11
+
12
+ ### New
13
+
14
+ - **Save a thread's work as a branch** in your project: `S` on a thread in the workbench, **Save as branch** in the
15
+ browser, or `toolroll thread save <id>`. It works after the thread ends and shows the `git merge` to run.
16
+ - **Land from the workbench:** **B** on a finished task (and "Land" in the palette). `task land` is listed in
17
+ `toolroll task --help`, and accepting a task says how to land it.
18
+ - **Reply to a Direct Chat** from its page in the browser.
19
+
20
+ ### Changed
21
+
22
+ - **Land puts one commit on your branch:** exactly the files that were checked, never the attempts you sent back.
23
+ With the branch checked out in your project folder, Toolroll never touches it: it gives you one `git merge` to run.
24
+ - **A sent-back revision shows its whole change since main,** not only what changed since the rejected attempt.
25
+ - **No plan-usage checks while Toolroll is idle:** it reads plan limits only while work runs, or for a few minutes
26
+ after you open Spend.
27
+ - **Build again right away** is offered wherever Approve would work with an empty password field.
28
+ - **Run checks** works from the browser session `toolroll` opens on a solo install, for the check command you approved.
29
+
30
+ ### Fixed
31
+
32
+ - **Running checks again no longer reopens accepted work;** a failing re-check blocks Land and says why.
33
+ - **"Looks right" accepts a passed result** in the browser without asking for a reason.
34
+ - **The task page says "On main"** after you merge the work yourself, and Undo still works.
35
+ - **A thread's Diff refreshes when a turn ends** and says when the agent has edits it hasn't committed.
36
+ - **Settings shows signed-in sessions,** not "devices", and the README's links work from npm.
37
+
7
38
  ## 0.9.119 — 2026-11-25
8
39
 
9
40
  Thread agents remember the conversation, accepted work can land on your branch, and releases stop re-running the
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  <div align="center">
2
2
 
3
3
  <picture>
4
- <source media="(prefers-color-scheme: dark)" srcset="docs/media/wordmark-dark.svg">
5
- <img src="docs/media/wordmark-light.svg" alt="Toolroll" width="440">
4
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/ap9000/toolroll/main/docs/media/wordmark-dark.svg">
5
+ <img src="https://raw.githubusercontent.com/ap9000/toolroll/main/docs/media/wordmark-light.svg" alt="Toolroll" width="440">
6
6
  </picture>
7
7
 
8
8
  ### Your agents build. You decide.
@@ -10,8 +10,8 @@
10
10
  **Delegate changes. Review verified diffs. Ship in one keystroke — in the native macOS app or your terminal.**
11
11
 
12
12
  <picture>
13
- <source media="(prefers-color-scheme: light)" srcset="docs/media/terminal-workbench-light.png">
14
- <img src="docs/media/terminal-workbench.png" alt="Toolroll: native macOS app and terminal workbench with tasks that need you and live streaming output" width="900">
13
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/ap9000/toolroll/main/docs/media/terminal-workbench-light.png">
14
+ <img src="https://raw.githubusercontent.com/ap9000/toolroll/main/docs/media/terminal-workbench.png" alt="Toolroll: native macOS app and terminal workbench with tasks that need you and live streaming output" width="900">
15
15
  </picture>
16
16
  <sub>Native SwiftUI macOS app and keyboard-driven terminal workbench, zero Electron, zero telemetry.</sub>
17
17
 
@@ -19,7 +19,7 @@ For Claude Code, Codex, and Gemini — using the subscriptions already on your m
19
19
 
20
20
  [![npm](https://img.shields.io/npm/v/toolroll?color=171717)](https://www.npmjs.com/package/toolroll)
21
21
  [![CI](https://github.com/ap9000/toolroll/actions/workflows/ci.yml/badge.svg)](https://github.com/ap9000/toolroll/actions/workflows/ci.yml)
22
- [![license](https://img.shields.io/badge/license-MIT-171717)](LICENSE)
22
+ [![license](https://img.shields.io/badge/license-MIT-171717)](https://github.com/ap9000/toolroll/blob/main/LICENSE)
23
23
  [![Homebrew](https://img.shields.io/badge/homebrew-ap9000%2Ftoolroll-171717)](https://github.com/ap9000/homebrew-toolroll)
24
24
  ![node](https://img.shields.io/badge/node-%E2%89%A5%2022.20-171717)
25
25
 
@@ -175,9 +175,9 @@ docs for language models.
175
175
  ## Contributing
176
176
 
177
177
  Provider adapters are the most useful place to start. See
178
- [CONTRIBUTING.md](CONTRIBUTING.md). Report security issues as
179
- [SECURITY.md](SECURITY.md) describes.
178
+ [CONTRIBUTING.md](https://github.com/ap9000/toolroll/blob/main/CONTRIBUTING.md). Report security issues as
179
+ [SECURITY.md](https://github.com/ap9000/toolroll/blob/main/SECURITY.md) describes.
180
180
 
181
181
  ## License
182
182
 
183
- [MIT](LICENSE)
183
+ [MIT](https://github.com/ap9000/toolroll/blob/main/LICENSE)
@@ -18,7 +18,7 @@ import { historicalAssessmentReason } from "./assignment-presentation.js";
18
18
  import { manualReviewOnly, shownVerdictOf } from "./proof.js";
19
19
  import { ACCEPT_NEEDS_REASON, cantAcceptYetOf } from "./result-acts.js";
20
20
  import { requiredCheckCommandFor, runCheckLevel } from "./check-levels.js";
21
- import { followUpChecksOf, withFollowUps } from "./result-follow-ups.js";
21
+ import { FOLLOW_UP_LOG, FOLLOW_UP_RECEIPT, followUpChecksOf, withFollowUps } from "./result-follow-ups.js";
22
22
  import { buildReviewOf, findingWords } from "./review-switch.js";
23
23
  import { NEEDS, WAITS, processNeedOf, resultHoldUpSentence } from "./needs-you.js";
24
24
  import { assignmentStageOf, checkBackingOf, completionBlockersOf, receiptChecksOf, requirementWordOf } from "./task-status.js";
@@ -176,7 +176,9 @@ export function assignmentOf(given, taskId, now, access, root, memo) {
176
176
  .map(artifact => `Saved ${artifact.kind} #${artifact.id} (run ${run.id}) is unavailable or changed.`)));
177
177
  const finishedBuild = result?.role === "builder" && (result.outcome === "built" || result.outcome === "no-change") &&
178
178
  result.finishedAt !== null && /^[a-f0-9]{40}$/.test(result.headRevision ?? "");
179
- const sealFor = (ownChecks) => {
179
+ const sealFor = (ownChecks, asOf) => {
180
+ const sealed = asOf === undefined ? artifacts : artifacts.filter(a => !(a.kind === "structured-output" && (a.capture === FOLLOW_UP_LOG || a.capture === FOLLOW_UP_RECEIPT)
181
+ && Date.parse(a.createdAt) > asOf.getTime()));
180
182
  const checks = ownChecks === null || ownChecks.level !== "off" || ownChecks.status === "passed" || ownChecks.status === "failed" ? ownChecks
181
183
  : { ...ownChecks, release: releaseCoverageOf(store, root, current.repo, result.headRevision, memo === undefined ? {} : { memo }) };
182
184
  const completionKind = result?.role === "scout" && result.outcome === "built" && result.finishedAt !== null ? "research-report"
@@ -185,12 +187,12 @@ export function assignmentOf(given, taskId, now, access, root, memo) {
185
187
  const receiptBody = result === null ? null : {
186
188
  rootId: family.root.id, taskId: current.id, runId: result.id, base: result.baseRevision,
187
189
  head: result.headRevision, scopeDigest: result.scopeDigest ?? null, proof, completionKind, proofAcceptance: acceptance, checks: checks,
188
- artifacts: artifacts.map(a => ({ id: a.id, kind: a.kind, sha256: a.sha256, bytes: a.bytesStored,
190
+ artifacts: sealed.map(a => ({ id: a.id, kind: a.kind, sha256: a.sha256, bytes: a.bytesStored,
189
191
  complete: !a.truncated && a.captureStatus !== "failed" })),
190
192
  caveats: [...(proof?.reasons ?? []), ...unavailable,
191
- ...(completionKind === "research-report" && reports.length !== 1 ? ["The report artifact is missing or ambiguous."] : []), ...(completionKind === "accepted-exception" && !artifacts.some(a => a.kind === "proof") ? ["No builder proof artifact is recorded."] : []),
192
- ...(artifacts.some(a => a.kind === "check-log" && a.truncated) ? ["The check log was shortened when stored; only the retained output is available."] : []),
193
- ...artifacts.filter(a => a.kind !== "check-log" && (a.truncated || a.captureStatus === "failed")).map(a => `Saved ${a.kind} #${a.id} is ${a.captureStatus === "failed" ? "a failed capture" : "incomplete"}.`)],
193
+ ...(completionKind === "research-report" && reports.length !== 1 ? ["The report artifact is missing or ambiguous."] : []), ...(completionKind === "accepted-exception" && !sealed.some(a => a.kind === "proof") ? ["No builder proof artifact is recorded."] : []),
194
+ ...(sealed.some(a => a.kind === "check-log" && a.truncated) ? ["The check log was shortened when stored; only the retained output is available."] : []),
195
+ ...sealed.filter(a => a.kind !== "check-log" && (a.truncated || a.captureStatus === "failed")).map(a => `Saved ${a.kind} #${a.id} is ${a.captureStatus === "failed" ? "a failed capture" : "incomplete"}.`)],
194
196
  agentReport: result.handoff, evidence: "recorded",
195
197
  };
196
198
  const sealedBody = receiptBody === null ? null : { ...receiptBody, checks: sealedChecks(receiptBody.checks) };
@@ -263,7 +265,7 @@ export function assignmentOf(given, taskId, now, access, root, memo) {
263
265
  .all(family.root.id, result.id, CHECK_ACTION, receipt.digest).find(row => COMPLETER_ACTOR.test(String(row["actor"])));
264
266
  const historical = exact !== undefined ? undefined : store.handle.prepare("SELECT actor,at,detail,outcome FROM action_ledger WHERE task_id = ? AND run_id = ? AND action = ? AND source = 'work' ORDER BY id DESC LIMIT 3")
265
267
  .all(family.root.id, result.id, CHECK_ACTION).filter(row => COMPLETER_ACTOR.test(String(row["actor"])) && !Number.isNaN(Date.parse(String(row["at"]))))
266
- .find(row => sealFor(assignmentChecksForRun(store, root, result.id, now, new Date(String(row["at"])))).receipt?.digest === String(row["outcome"]));
268
+ .find(row => sealFor(assignmentChecksForRun(store, root, result.id, now, new Date(String(row["at"]))), new Date(String(row["at"]))).receipt?.digest === String(row["outcome"]));
267
269
  const checked = exact ?? historical;
268
270
  if (checked !== undefined) {
269
271
  const rootRef = store.lookupRef(family.root.id);