toolroll 0.9.22 → 0.9.23
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 +5 -0
- package/dist/flow-send.js +10 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.9.23 — 2026-10-04
|
|
4
|
+
|
|
5
|
+
- After a research step, a flow's message to you now carries that research's
|
|
6
|
+
screenshots. Before, it only looked for a build's.
|
|
7
|
+
|
|
3
8
|
## 0.9.22 — 2026-10-04
|
|
4
9
|
|
|
5
10
|
- **Research takes screenshots again.** The research step's browser now runs
|
package/dist/flow-send.js
CHANGED
|
@@ -55,6 +55,14 @@ function resultOf(store, taskId, now, evidenceRoot) {
|
|
|
55
55
|
shots: receipt !== null && store.artifactsFor(receipt.runId).some(one => one.kind === "screenshot") ? { taskId: receipt.taskId, run: receipt.runId } : null,
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
+
/** A research task's latest delivered report, when its run saved screenshots: what that step produced to show. */
|
|
59
|
+
function reportShotsOf(store, taskId) {
|
|
60
|
+
const ref = store.lookupRef(taskId);
|
|
61
|
+
if (ref === null)
|
|
62
|
+
return null;
|
|
63
|
+
const run = store.runsFor(ref.id).find(one => one.finishedAt !== null && one.role === "scout");
|
|
64
|
+
return run !== undefined && run.outcome === "built" && store.artifactsFor(run.id).some(one => one.kind === "screenshot") ? { taskId, run: run.id } : null;
|
|
65
|
+
}
|
|
58
66
|
/** What a visit sends its person, worked out from the card as it is now. */
|
|
59
67
|
export function flowSendContent(store, flow, definition, stage, card, now, evidenceRoot) {
|
|
60
68
|
const before = stepBefore(store, definition, card);
|
|
@@ -90,7 +98,8 @@ export function flowSendContent(store, flow, definition, stage, card, now, evide
|
|
|
90
98
|
const options = stage.kind === "choose" ? (stage.options ?? []).map((one, choice) => ({ choice, label: one.label })) : undefined;
|
|
91
99
|
return {
|
|
92
100
|
title: cut(plain(before === null ? card.title : `${card.title} · ${before.title}`), 200), ...(before === null ? {} : { from: before.title }),
|
|
93
|
-
|
|
101
|
+
// After research, its own screenshots are what that step produced; otherwise the build's.
|
|
102
|
+
summary: plain(lines.join("\n\n")), links, shots: (report === null ? null : reportShotsOf(store, report)) ?? result?.shots ?? null,
|
|
94
103
|
...(options === undefined ? {} : { options, reply: replyTarget(stage) !== null }),
|
|
95
104
|
};
|
|
96
105
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "toolroll",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.23",
|
|
4
4
|
"description": "A control plane for unattended coding agents — queue tasks, walk away, come back to pull requests. Agents build in leased worktrees, never touch your default branch, and interrupt you only for decisions that need a human.",
|
|
5
5
|
"directories": {
|
|
6
6
|
"doc": "docs"
|