toolroll 0.9.125 → 0.9.126
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 +36 -0
- package/README.md +1 -1
- package/dist/agent-detect.js +23 -3
- package/dist/bounded-spawn.js +5 -36
- package/dist/browser/workspace.css +1 -1
- package/dist/browser/workspace.js +29 -29
- package/dist/browser-open.js +49 -0
- package/dist/chat-acceptance.js +1 -1
- package/dist/check-only.js +1 -1
- package/dist/cli.js +2 -2
- package/dist/connect-cli.js +2 -8
- package/dist/contracts/engine-api.js +5 -0
- package/dist/direct-chat.js +26 -18
- package/dist/doctor.js +30 -3
- package/dist/easy-start.js +43 -17
- package/dist/engine-reads.js +14 -0
- package/dist/evals.js +17 -19
- package/dist/first-run.js +5 -1
- package/dist/flexible-import.js +3 -2
- package/dist/flexible-save.js +2 -0
- package/dist/flexible-session.js +1 -1
- package/dist/flow-code.js +2 -2
- package/dist/invoke.js +4 -4
- package/dist/laptop-background.js +2 -11
- package/dist/linux-packages.js +46 -0
- package/dist/local-landing.js +26 -5
- package/dist/merge-checklist.js +33 -4
- package/dist/operate.js +16 -19
- package/dist/preflight.js +14 -0
- package/dist/process-identity.js +155 -0
- package/dist/quick-start.js +6 -1
- package/dist/release.js +8 -0
- package/dist/runner-process.js +9 -25
- package/dist/sandbox-launch.js +3 -2
- package/dist/sandbox-runtime.js +115 -15
- package/dist/sandbox-tools.js +91 -6
- package/dist/server/direct-chat.js +4 -3
- package/dist/server/merge-ready-view.js +4 -2
- package/dist/server/pages.js +1 -1
- package/dist/server/render-pages.js +1 -0
- package/dist/server/render-results.js +6 -6
- package/dist/server/render-tasks.js +2 -2
- package/dist/server/task-views.js +12 -8
- package/dist/server/tasks.js +2 -2
- package/dist/shown-text.js +14 -0
- package/dist/status-probe.js +32 -0
- package/dist/task-base.js +2 -2
- package/dist/task-status.js +7 -4
- package/dist/telegram-status.js +1 -1
- package/dist/toolroll-update.js +4 -0
- package/dist/trust-repair.js +187 -0
- 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/work-index.js +51 -3
- package/dist/workspace-ui.js +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,42 @@ 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.126 — 2026-11-26
|
|
8
|
+
|
|
9
|
+
Toolroll starts on more machines and says exactly what to fix when it can't; finished work reads finished everywhere.
|
|
10
|
+
|
|
11
|
+
### New
|
|
12
|
+
|
|
13
|
+
- **Run checks again from the workbench** (in the palette) on accepted work whose checks are out of date or failed.
|
|
14
|
+
- **One check at the first start** lists everything that would stop Toolroll (sandbox tools, a sandbox that can't
|
|
15
|
+
start, git version, process start times), each with its fix, before anything is created.
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- **Landed work says "Landed on main (sha)"** at the top of the task page, in `task show` and in the CLI, and no longer
|
|
20
|
+
asks "Can I merge?" or offers Send back. "Behind main" is gone from landed work.
|
|
21
|
+
- **Checks out of date** (the check command changed) show as out of date, not failed or unreadable, in the task list,
|
|
22
|
+
the workbench and the task page; the web keeps Run checks on the top card after a failed re-check.
|
|
23
|
+
- **Install lines use this machine's package manager** (apt, dnf, zypper, pacman, apk), with `sudo` only when needed.
|
|
24
|
+
- **When the sandbox can't start** (Docker, devcontainers), Toolroll says the cause only when it can see it, with the
|
|
25
|
+
options and what each one weakens.
|
|
26
|
+
|
|
27
|
+
### Fixed
|
|
28
|
+
|
|
29
|
+
- **Linux installs with a group-writable folder** (Ubuntu/Fedora with nvm or a user npm folder) get the exact repair
|
|
30
|
+
for each path instead of a password-only start; untrusted system programs are named with a real reinstall command.
|
|
31
|
+
- **Fedora, minimal Debian and Alpine** no longer need `ps` to start.
|
|
32
|
+
- **Servers and SSH sessions** no longer crash for want of a browser: Toolroll shows the address; a browser you chose
|
|
33
|
+
still opens.
|
|
34
|
+
- **Running `toolroll` without a terminal** no longer creates a password install behind your back.
|
|
35
|
+
- **The workbench diff** shows the new revision's changes once it's ready; a Direct Chat whose changes couldn't be read
|
|
36
|
+
says so instead of "No changes".
|
|
37
|
+
- **`toolroll update` with no database** says so before doing anything.
|
|
38
|
+
|
|
39
|
+
### Action needed
|
|
40
|
+
|
|
41
|
+
- Native Windows isn't supported: use WSL 2. 32-bit Linux isn't supported.
|
|
42
|
+
|
|
7
43
|
## 0.9.125 — 2026-11-26
|
|
8
44
|
|
|
9
45
|
Everything in 0.9.124, which was tagged but never reached npm.
|
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ For Claude Code, Codex, and Gemini — using the subscriptions already on your m
|
|
|
31
31
|
|
|
32
32
|
### CLI & Terminal Workbench (macOS or Linux)
|
|
33
33
|
|
|
34
|
-
Requires Node.js 22.20+, git 2.41+, and Claude Code (`claude`), Codex (`codex`), or Gemini signed in on this computer. On Linux, also install the sandbox tools: `sudo apt update && sudo apt install bubblewrap socat ripgrep
|
|
34
|
+
Requires Node.js 22.20+, git 2.41+, and Claude Code (`claude`), Codex (`codex`), or Gemini signed in on this computer. On Linux (64-bit), also install the sandbox tools: `sudo apt update && sudo apt install bubblewrap socat ripgrep bash debianutils` (other distributions: [Linux](docs/guide/linux.md#install-the-sandbox-tools)). Windows isn't supported; use WSL 2.
|
|
35
35
|
|
|
36
36
|
```sh
|
|
37
37
|
curl -fsSL https://raw.githubusercontent.com/ap9000/toolroll/main/install.sh | sh
|
package/dist/agent-detect.js
CHANGED
|
@@ -4,7 +4,9 @@ import { delimiter, isAbsolute, join } from "node:path";
|
|
|
4
4
|
import { ACP_AGENTS, ACP_PROVIDER_IDS, isAcpProvider } from "./acp-agents.js";
|
|
5
5
|
import { inspectAcpAgent } from "./acp-inspect.js";
|
|
6
6
|
import { resolveExecutable } from "./attest.js";
|
|
7
|
-
import { statusProbe, STATUS_TIMEOUT_MS } from "./status-probe.js";
|
|
7
|
+
import { excludedFolders, statusBinaryDiagnosis, statusProbe, STATUS_TIMEOUT_MS } from "./status-probe.js";
|
|
8
|
+
import { platformAcl } from "./trusted-path.js";
|
|
9
|
+
import { shownText } from "./shown-text.js";
|
|
8
10
|
import { keyStatus, OWN_KEY_ENV, readAuthMode } from "./keys.js";
|
|
9
11
|
import { createConnectionChecker } from "./provider-connection.js";
|
|
10
12
|
export const DETECT_TIMEOUT_MS = STATUS_TIMEOUT_MS;
|
|
@@ -86,15 +88,25 @@ export async function detectAgents(options = {}) {
|
|
|
86
88
|
return present(join(home, ".gemini", "oauth_creds.json")) ? out("signed-in", "Google account") : out("signed-out");
|
|
87
89
|
}
|
|
88
90
|
const answer = await within(check(row.id).then(value => value), timeoutMs, null);
|
|
91
|
+
const unknown = async () => {
|
|
92
|
+
const why = await (options.trustProblem ?? defaultTrustProblem)(row.binary);
|
|
93
|
+
return why === null ? out("unknown") : { ...out("unknown"), next: why };
|
|
94
|
+
};
|
|
95
|
+
const defaultTrustProblem = async (binary) => {
|
|
96
|
+
const untrusted = await excludedFolders({ store: options.store, databaseFile: options.databaseFile }, options.untrusted?.() ?? []);
|
|
97
|
+
if (untrusted === null)
|
|
98
|
+
return null;
|
|
99
|
+
return agentTrustWords(statusBinaryDiagnosis(binary, { path, uid: process.getuid?.(), untrusted, acl: platformAcl() }));
|
|
100
|
+
};
|
|
89
101
|
if (answer === null)
|
|
90
|
-
return
|
|
102
|
+
return resolved === null ? out("not-installed") : unknown();
|
|
91
103
|
if (answer.state === "not-installed" || (KEY_ANSWERS.has(answer.state) && resolved === null))
|
|
92
104
|
return out("not-installed");
|
|
93
105
|
if (answer.launchIssue === "command-not-found")
|
|
94
106
|
return { ...out("unknown"), next: "The status command exited with code 127. Check that the agent and its helpers are on Toolroll's trusted PATH." };
|
|
95
107
|
if (SIGNED_IN.has(answer.state))
|
|
96
108
|
return out("signed-in", KEY_ANSWERS.has(answer.state) ? "API key" : answer.method ?? "signed in");
|
|
97
|
-
return
|
|
109
|
+
return SIGNED_OUT.has(answer.state) ? out("signed-out") : unknown();
|
|
98
110
|
};
|
|
99
111
|
const seen = await Promise.all(DETECTED_AGENTS.map(row => one(row).catch(() => ({ id: row.id, name: row.name, state: "unknown", how: null, signIn: row.signIn, ready: false, next: null }))));
|
|
100
112
|
const agents = seen.map(agent => withNext(agent, routed, options.acpChecked));
|
|
@@ -252,3 +264,11 @@ export function npmRegistryOf(home, pkg) {
|
|
|
252
264
|
return { url: null, unsure };
|
|
253
265
|
return { url: `${url.protocol}//${url.host}${url.pathname}`.replace(/[\u0000-\u001f\u007f]/g, ""), unsure };
|
|
254
266
|
}
|
|
267
|
+
export function agentTrustWords(diagnosis) {
|
|
268
|
+
if (diagnosis === null)
|
|
269
|
+
return null;
|
|
270
|
+
const commands = diagnosis.repair?.commands ?? [];
|
|
271
|
+
const fix = commands.length > 0 ? ` Fix it: run ${commands.map(one => `\`${one}\``).join(", then ")}, then \`toolroll agents\` to check again.`
|
|
272
|
+
: " Reinstall it into a folder only you can change.";
|
|
273
|
+
return shownText(`Toolroll won't run its sign-in check: ${diagnosis.why}.${fix}`);
|
|
274
|
+
}
|
package/dist/bounded-spawn.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
2
|
import { lstatSync, readdirSync, rmSync } from "node:fs";
|
|
3
3
|
import { join, relative, isAbsolute } from "node:path";
|
|
4
|
+
import { processGroupId, processGroupRss, processIdentity, sameProcess } from "./process-identity.js";
|
|
4
5
|
import { createContainer, effectiveContainment, probeContainmentCapability } from "./containment.js";
|
|
5
6
|
const SAMPLE_MS = 250;
|
|
6
7
|
const PIDS = 64;
|
|
@@ -9,42 +10,10 @@ let containment = null;
|
|
|
9
10
|
const preferred = () => containment ??= effectiveContainment("preferred", probeContainmentCapability());
|
|
10
11
|
export function resetBoundedContainmentForTests() { containment = null; }
|
|
11
12
|
export function processStartedAt(pid) {
|
|
12
|
-
|
|
13
|
-
return null;
|
|
14
|
-
try {
|
|
15
|
-
return execFileSync("ps", ["-o", "lstart=", "-p", String(pid)], { encoding: "utf8", timeout: 2_000, stdio: ["ignore", "pipe", "ignore"] }).trim() || null;
|
|
16
|
-
}
|
|
17
|
-
catch {
|
|
18
|
-
return null;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
function processGroupOf(pid) {
|
|
22
|
-
if (process.platform === "win32")
|
|
23
|
-
return null;
|
|
24
|
-
try {
|
|
25
|
-
const group = Number(execFileSync("ps", ["-o", "pgid=", "-p", String(pid)], { encoding: "utf8", timeout: 2_000, stdio: ["ignore", "pipe", "ignore"] }).trim());
|
|
26
|
-
return Number.isInteger(group) && group > 1 ? group : null;
|
|
27
|
-
}
|
|
28
|
-
catch {
|
|
29
|
-
return null;
|
|
30
|
-
}
|
|
13
|
+
return processIdentity(pid);
|
|
31
14
|
}
|
|
32
15
|
function groupRss(pgid) {
|
|
33
|
-
return
|
|
34
|
-
execFile("ps", ["-A", "-o", "pgid=,rss="], { encoding: "utf8", timeout: 2_000, maxBuffer: 4 * 1024 * 1024 }, (error, stdout) => {
|
|
35
|
-
if (error !== null) {
|
|
36
|
-
done(null);
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
let kilobytes = 0;
|
|
40
|
-
for (const line of stdout.split("\n")) {
|
|
41
|
-
const [group, rss] = line.trim().split(/\s+/);
|
|
42
|
-
if (Number(group) === pgid)
|
|
43
|
-
kilobytes += Number(rss) || 0;
|
|
44
|
-
}
|
|
45
|
-
done(kilobytes * 1024);
|
|
46
|
-
});
|
|
47
|
-
});
|
|
16
|
+
return Promise.resolve().then(() => processGroupRss(pgid));
|
|
48
17
|
}
|
|
49
18
|
export function folderBytes(folder) {
|
|
50
19
|
let total = 0;
|
|
@@ -178,7 +147,7 @@ export const boundedRun = async (file, args, options) => {
|
|
|
178
147
|
};
|
|
179
148
|
export function cleanupLeftover(record, root) {
|
|
180
149
|
let killed = false, removed = false;
|
|
181
|
-
if (record.pid !== null && record.pgid !== null && record.startedAt !== null &&
|
|
150
|
+
if (record.pid !== null && record.pgid !== null && record.startedAt !== null && sameProcess(record.pid, record.startedAt) === "same" && processGroupId(record.pid) === record.pgid) {
|
|
182
151
|
killGroup(record.pgid);
|
|
183
152
|
killed = true;
|
|
184
153
|
}
|