toolroll 0.9.126 → 0.9.127
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.
- package/CHANGELOG.md +28 -0
- package/dist/assignment.js +14 -4
- package/dist/browser/workspace.js +1 -1
- package/dist/contracts/engine-api.js +3 -0
- package/dist/easy-start.js +1 -0
- package/dist/engine-reads.js +21 -2
- package/dist/flexible-conversation.js +79 -1
- package/dist/flexible-import.js +159 -2
- package/dist/flexible-save.js +49 -4
- package/dist/flexible-session.js +33 -7
- package/dist/flexible-start.js +2 -1
- package/dist/landed-rows.js +138 -0
- package/dist/local-landing.js +20 -2
- package/dist/merge-checklist.js +33 -8
- package/dist/operate.js +76 -16
- package/dist/result-follow-ups.js +8 -1
- package/dist/revision-catch-up.js +98 -0
- package/dist/server/engine-api.js +13 -8
- package/dist/server/pages.js +5 -2
- package/dist/server/render-results.js +4 -2
- package/dist/server/task-views.js +4 -1
- package/dist/skill-library.js +2 -12
- package/dist/task-base.js +11 -0
- package/dist/task-status.js +11 -4
- package/dist/teardown-git.js +6 -0
- package/dist/toolroll-update-cli.js +2 -1
- package/dist/tui/darwin-arm64/toolroll-tui +0 -0
- package/dist/tui/darwin-x64/toolroll-tui +0 -0
- package/dist/tui/linux-arm64/toolroll-tui +0 -0
- package/dist/tui/linux-x64/toolroll-tui +0 -0
- package/dist/unreachable.js +15 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,34 @@ 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.127 — 2026-11-26
|
|
8
|
+
|
|
9
|
+
Two tasks built from the same main can both land; a thread's leftover edits are saved; accepted work reads accepted.
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- **Send back brings work behind main up to date**: Toolroll merges the current main into the new attempt before
|
|
14
|
+
the agent starts, so it can land. If main conflicts, the task page and `task land` say to merge it by hand.
|
|
15
|
+
- **The workbench offers Send back (r)** on accepted work that is behind main.
|
|
16
|
+
- **Accepted work reads accepted**: "Can I merge?" agrees with Land, "No check is set" is a note rather than a
|
|
17
|
+
blocker, and Looks right / Not right go away once you've accepted it.
|
|
18
|
+
- **Landed work shows "Landed on main (sha)"** in the workbench list and detail, `task list`, and first in `task
|
|
19
|
+
show`. Pressing B on it says it's already landed.
|
|
20
|
+
- **Attempts count the same everywhere**: the third build of a task is "attempt 3" in the workbench and on the web.
|
|
21
|
+
- **Checks read "out of date"** when the check command changed after a failed run.
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- **Saving a thread after it ends keeps edits its agent left uncommitted**, and ending a thread says when it left
|
|
26
|
+
some. "Already saved" now appears only when nothing new is left.
|
|
27
|
+
- **An ended thread's transcript** shows the replies and work steps you saw live.
|
|
28
|
+
- **A new thread's Diff tab** no longer shows the previously selected task's diff.
|
|
29
|
+
- **The approval card for a send back** shows the note you typed.
|
|
30
|
+
- **`toolroll verify set`** with no password says to run `toolroll password set` first, without prompting.
|
|
31
|
+
- **`toolroll update` offline** says it couldn't reach the release server and that nothing changed.
|
|
32
|
+
- **`toolroll open --web`** with no working browser says what to do next.
|
|
33
|
+
- **The workbench** leaves the screen on a fresh line, and a refusal too long for the status line opens in full.
|
|
34
|
+
|
|
7
35
|
## 0.9.126 — 2026-11-26
|
|
8
36
|
|
|
9
37
|
Toolroll starts on more machines and says exactly what to fix when it can't; finished work reads finished everywhere.
|
package/dist/assignment.js
CHANGED
|
@@ -92,6 +92,10 @@ export function assignmentChecksForRun(given, root, runId, now, asOf) {
|
|
|
92
92
|
const batch = waitingBatch ? { state: "waiting", tested: null, peers: [] }
|
|
93
93
|
: sealedBatch !== null && latest !== undefined ? { state: sealedBatch.mode, tested: latest.tested ?? sealedBatch.tested,
|
|
94
94
|
peers: sealedBatch.members.filter(one => one.run !== runId).map(one => one.task) } : null;
|
|
95
|
+
if (latest?.state === "failed" && latest.outdated === true && read.status === "failed") {
|
|
96
|
+
return { ...own, running: read.running, ...(batch === null ? {} : { batch }), status: "unavailable", cause: "command-changed", level: read.level, exitCode: null,
|
|
97
|
+
logArtifactId: latest.logArtifactId ?? own.logArtifactId, detail: "The check command changed since this check." };
|
|
98
|
+
}
|
|
95
99
|
return { ...own, running: read.running, ...(batch === null ? {} : { batch }),
|
|
96
100
|
...(changed ? { status: read.status, level: read.level, exitCode: read.exitCode, logArtifactId: latest?.logArtifactId ?? own.logArtifactId,
|
|
97
101
|
detail: read.status === "passed" ? `${words} passed.` : `${words} failed (exit ${read.exitCode}).` } : {}) };
|
|
@@ -261,8 +265,9 @@ export function assignmentOf(given, taskId, now, access, root, memo) {
|
|
|
261
265
|
: completionKind === "accepted-exception" ? "An operator accepted this result with its recorded limitations. The lead can inspect that decision; the recorded checks are unchanged."
|
|
262
266
|
: receipt.checks.detail;
|
|
263
267
|
primaryAction = { code: "open-result", label: completionKind === "research-report" ? "Read report" : "Open result", target: { taskId: current.id, runId: result.id, decisionId: null }, access: "read", retry: "read-again" };
|
|
264
|
-
const
|
|
265
|
-
.all(family.root.id, result.id, CHECK_ACTION, receipt.digest)
|
|
268
|
+
const exactRows = store.handle.prepare("SELECT actor,at,detail FROM action_ledger WHERE task_id = ? AND run_id = ? AND action = ? AND outcome = ? AND source = 'work' ORDER BY id DESC")
|
|
269
|
+
.all(family.root.id, result.id, CHECK_ACTION, receipt.digest);
|
|
270
|
+
const exact = exactRows.find(row => COMPLETER_ACTOR.test(String(row["actor"])));
|
|
266
271
|
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")
|
|
267
272
|
.all(family.root.id, result.id, CHECK_ACTION).filter(row => COMPLETER_ACTOR.test(String(row["actor"])) && !Number.isNaN(Date.parse(String(row["at"]))))
|
|
268
273
|
.find(row => sealFor(assignmentChecksForRun(store, root, result.id, now, new Date(String(row["at"]))), new Date(String(row["at"]))).receipt?.digest === String(row["outcome"]));
|
|
@@ -271,8 +276,12 @@ export function assignmentOf(given, taskId, now, access, root, memo) {
|
|
|
271
276
|
const rootRef = store.lookupRef(family.root.id);
|
|
272
277
|
const byLead = rootRef !== null && olderStoreSafe(() => store.taskActs(rootRef.id), []).filter(one => one.act === "completed").at(-1)?.lead === true;
|
|
273
278
|
const landed = landedReasonOf(String(checked["actor"]), checked["detail"] == null ? null : String(checked["detail"]));
|
|
279
|
+
const byPerson = (row) => String(row["actor"]).startsWith("operator:") && row["detail"] === COMPLETION_BY_PERSON;
|
|
280
|
+
const personRow = exact === undefined ? (byPerson(checked) ? checked : undefined) : byPerson(exact) ? exact : exactRows.find(byPerson);
|
|
281
|
+
const person = personRow === undefined ? null : String(personRow["actor"]).slice("operator:".length);
|
|
274
282
|
completion = { actor: String(checked["actor"]), at: String(checked["at"]), digest: exact === undefined ? String(checked["outcome"]) : receipt.digest,
|
|
275
|
-
...(byLead && landed === null ? { lead: true } : {}), ...(landed === null ? {} : { landed }), ...(exact === undefined ? { historical: true } : {})
|
|
283
|
+
...(byLead && landed === null ? { lead: true } : {}), ...(landed === null ? {} : { landed }), ...(exact === undefined ? { historical: true } : {}),
|
|
284
|
+
...(person === null ? {} : { person }) };
|
|
276
285
|
state = "complete";
|
|
277
286
|
primaryAction = { ...primaryAction, label: completionKind === "research-report" ? "Read report" : "Open result" };
|
|
278
287
|
const label = byLead ? "the lead" : completion.actor.startsWith("operator:") ? completion.actor.slice(9) : owner && completion.actor === actorOf(owner) ? owner.label : "the previous lead";
|
|
@@ -472,7 +481,8 @@ function acknowledgeCurrent(store, current, receiptDigest, actor, now, root, acc
|
|
|
472
481
|
store.noteTaskAct(ref.id, "completed", now, undefined, by);
|
|
473
482
|
store.bumpWake();
|
|
474
483
|
}
|
|
475
|
-
else if (person !== null && personCompletionOwed(store, receipt.taskId, receipt.runId, receiptDigest, person, root)
|
|
484
|
+
else if (person !== null && (personCompletionOwed(store, receipt.taskId, receipt.runId, receiptDigest, person, root)
|
|
485
|
+
|| (current.completion !== null && current.completion.digest === receiptDigest && current.completion.historical !== true && current.completion.person === undefined))) {
|
|
476
486
|
store.recordAction({ at: now.toISOString(), actor, repo: current.repo,
|
|
477
487
|
taskId: current.rootId, runId: receipt.runId, action: CHECK_ACTION, outcome: receiptDigest, source: "work", detail: COMPLETION_BY_PERSON });
|
|
478
488
|
store.bumpWake();
|