@zvada/agent-server 0.3.27 → 0.3.30
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 +61 -0
- package/README.md +6 -4
- package/dist/core/agents/acp/account.js +111 -0
- package/dist/core/agents/acp/acp-agent.js +249 -158
- package/dist/core/agents/acp/adapter.js +103 -34
- package/dist/core/agents/acp/client.js +169 -42
- package/dist/core/agents/acp/known-agents.js +12 -5
- package/dist/core/agents/acp/mappings.js +84 -20
- package/dist/core/agents/acp/models.js +59 -0
- package/dist/core/agents/acp/profile.js +36 -0
- package/dist/core/agents/acp/prompts.js +248 -0
- package/dist/core/agents/acp/requests.js +4 -4
- package/dist/core/agents/claude-code/claude-agent.js +2 -12
- package/dist/core/agents/claude-code/login.js +4 -1
- package/dist/core/agents/claude-code/session.js +50 -18
- package/dist/core/agents/claude-code/spawn.js +0 -26
- package/dist/core/agents/claude-code/turn.js +6 -2
- package/dist/core/agents/codex-app-server/client.js +12 -13
- package/dist/core/agents/codex-app-server/login.js +4 -1
- package/dist/core/agents/gemini/failures.js +133 -0
- package/dist/core/agents/gemini/login.js +173 -0
- package/dist/core/agents/gemini/profile.js +138 -0
- package/dist/core/agents/gemini/tools.js +91 -0
- package/dist/core/agents/login.js +8 -6
- package/dist/core/agents/stderr-tail.js +5 -2
- package/dist/core/presets.js +13 -0
- package/dist/core/processes/native-processes.js +23 -1
- package/dist/core/provision/install-build.js +70 -26
- package/dist/core/provision/pins.js +5 -0
- package/dist/core/provision/provisioner.js +39 -16
- package/dist/core/provision/releases.js +39 -1
- package/dist/core/provision/tools.js +87 -28
- package/dist/operator/errors.js +2 -2
- package/dist/operator/operator.js +201 -90
- package/dist/operator/render.js +34 -28
- package/dist/operator/session-tools.js +2 -1
- package/dist/protocol/account.js +5 -1
- package/dist/protocol/auth.js +5 -1
- package/dist/protocol/config.js +4 -2
- package/dist/protocol/credentials.js +9 -1
- package/dist/protocol/harness.js +9 -1
- package/dist/protocol/part-input.js +2 -6
- package/dist/protocol/text-parts.js +10 -0
- package/dist/server/bin.js +22 -7
- package/dist/server/install.js +6 -4
- package/dist/types/core/agents/acp/account.d.ts +55 -0
- package/dist/types/core/agents/acp/account.d.ts.map +1 -0
- package/dist/types/core/agents/acp/acp-agent.d.ts +65 -36
- package/dist/types/core/agents/acp/acp-agent.d.ts.map +1 -1
- package/dist/types/core/agents/acp/adapter.d.ts +28 -3
- package/dist/types/core/agents/acp/adapter.d.ts.map +1 -1
- package/dist/types/core/agents/acp/client.d.ts +66 -4
- package/dist/types/core/agents/acp/client.d.ts.map +1 -1
- package/dist/types/core/agents/acp/known-agents.d.ts +4 -2
- package/dist/types/core/agents/acp/known-agents.d.ts.map +1 -1
- package/dist/types/core/agents/acp/mappings.d.ts +53 -7
- package/dist/types/core/agents/acp/mappings.d.ts.map +1 -1
- package/dist/types/core/agents/acp/models.d.ts +22 -0
- package/dist/types/core/agents/acp/models.d.ts.map +1 -0
- package/dist/types/core/agents/acp/profile.d.ts +97 -0
- package/dist/types/core/agents/acp/profile.d.ts.map +1 -0
- package/dist/types/core/agents/acp/prompts.d.ts +108 -0
- package/dist/types/core/agents/acp/prompts.d.ts.map +1 -0
- package/dist/types/core/agents/acp/requests.d.ts +7 -1
- package/dist/types/core/agents/acp/requests.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/claude-agent.d.ts +1 -2
- package/dist/types/core/agents/claude-code/claude-agent.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/login.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/options.d.ts +1 -1
- package/dist/types/core/agents/claude-code/options.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/session.d.ts +7 -6
- package/dist/types/core/agents/claude-code/session.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/spawn.d.ts +0 -8
- package/dist/types/core/agents/claude-code/spawn.d.ts.map +1 -1
- package/dist/types/core/agents/claude-code/turn.d.ts +3 -2
- package/dist/types/core/agents/claude-code/turn.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/client.d.ts.map +1 -1
- package/dist/types/core/agents/codex-app-server/login.d.ts.map +1 -1
- package/dist/types/core/agents/gemini/failures.d.ts +25 -0
- package/dist/types/core/agents/gemini/failures.d.ts.map +1 -0
- package/dist/types/core/agents/gemini/login.d.ts +28 -0
- package/dist/types/core/agents/gemini/login.d.ts.map +1 -0
- package/dist/types/core/agents/gemini/profile.d.ts +30 -0
- package/dist/types/core/agents/gemini/profile.d.ts.map +1 -0
- package/dist/types/core/agents/gemini/tools.d.ts +18 -0
- package/dist/types/core/agents/gemini/tools.d.ts.map +1 -0
- package/dist/types/core/agents/login.d.ts +15 -5
- package/dist/types/core/agents/login.d.ts.map +1 -1
- package/dist/types/core/agents/stderr-tail.d.ts +1 -1
- package/dist/types/core/agents/stderr-tail.d.ts.map +1 -1
- package/dist/types/core/presets.d.ts +2 -2
- package/dist/types/core/presets.d.ts.map +1 -1
- package/dist/types/core/processes/native-processes.d.ts +6 -0
- package/dist/types/core/processes/native-processes.d.ts.map +1 -1
- package/dist/types/core/provision/checksums.d.ts +7 -1
- package/dist/types/core/provision/checksums.d.ts.map +1 -1
- package/dist/types/core/provision/install-build.d.ts +32 -6
- package/dist/types/core/provision/install-build.d.ts.map +1 -1
- package/dist/types/core/provision/pins.d.ts +4 -0
- package/dist/types/core/provision/pins.d.ts.map +1 -1
- package/dist/types/core/provision/provisioner.d.ts +18 -7
- package/dist/types/core/provision/provisioner.d.ts.map +1 -1
- package/dist/types/core/provision/releases.d.ts +2 -1
- package/dist/types/core/provision/releases.d.ts.map +1 -1
- package/dist/types/core/provision/tools.d.ts +36 -7
- package/dist/types/core/provision/tools.d.ts.map +1 -1
- package/dist/types/operator/errors.d.ts +5 -1
- package/dist/types/operator/errors.d.ts.map +1 -1
- package/dist/types/operator/operator.d.ts.map +1 -1
- package/dist/types/operator/render.d.ts +11 -6
- package/dist/types/operator/render.d.ts.map +1 -1
- package/dist/types/operator/session-tools.d.ts.map +1 -1
- package/dist/types/operator/types.d.ts +5 -4
- package/dist/types/operator/types.d.ts.map +1 -1
- package/dist/types/protocol/account.d.ts +4 -2
- package/dist/types/protocol/account.d.ts.map +1 -1
- package/dist/types/protocol/auth.d.ts +10 -7
- package/dist/types/protocol/auth.d.ts.map +1 -1
- package/dist/types/protocol/clis.d.ts +4 -3
- package/dist/types/protocol/clis.d.ts.map +1 -1
- package/dist/types/protocol/config.d.ts +6 -2
- package/dist/types/protocol/config.d.ts.map +1 -1
- package/dist/types/protocol/conversation.d.ts +3 -3
- package/dist/types/protocol/credentials.d.ts +8 -0
- package/dist/types/protocol/credentials.d.ts.map +1 -1
- package/dist/types/protocol/execution.d.ts +1 -1
- package/dist/types/protocol/harness.d.ts +5 -2
- package/dist/types/protocol/harness.d.ts.map +1 -1
- package/dist/types/protocol/lifecycle.d.ts +8 -8
- package/dist/types/protocol/models.d.ts +3 -0
- package/dist/types/protocol/models.d.ts.map +1 -1
- package/dist/types/protocol/part-input.d.ts.map +1 -1
- package/dist/types/protocol/text-parts.d.ts +10 -0
- package/dist/types/protocol/text-parts.d.ts.map +1 -0
- package/dist/types/protocol/wire-api.d.ts +39 -29
- package/dist/types/protocol/wire-api.d.ts.map +1 -1
- package/dist/types/protocol/wire.d.ts +13 -10
- package/dist/types/protocol/wire.d.ts.map +1 -1
- package/dist/types/server/install.d.ts +2 -1
- package/dist/types/server/install.d.ts.map +1 -1
- package/docs/consuming.md +8 -1
- package/docs/deploy.md +17 -8
- package/docs/harnesses.md +173 -44
- package/package.json +1 -1
- package/src/core/agents/acp/account.ts +158 -0
- package/src/core/agents/acp/acp-agent.ts +290 -178
- package/src/core/agents/acp/adapter.ts +126 -35
- package/src/core/agents/acp/client.ts +196 -49
- package/src/core/agents/acp/known-agents.ts +14 -5
- package/src/core/agents/acp/mappings.ts +112 -21
- package/src/core/agents/acp/models.ts +72 -0
- package/src/core/agents/acp/profile.ts +133 -0
- package/src/core/agents/acp/prompts.ts +287 -0
- package/src/core/agents/acp/requests.ts +16 -9
- package/src/core/agents/claude-code/claude-agent.ts +2 -13
- package/src/core/agents/claude-code/login.ts +4 -1
- package/src/core/agents/claude-code/options.ts +1 -1
- package/src/core/agents/claude-code/session.ts +50 -16
- package/src/core/agents/claude-code/spawn.ts +0 -26
- package/src/core/agents/claude-code/turn.ts +7 -2
- package/src/core/agents/codex-app-server/client.ts +11 -18
- package/src/core/agents/codex-app-server/login.ts +4 -5
- package/src/core/agents/gemini/failures.ts +148 -0
- package/src/core/agents/gemini/login.ts +188 -0
- package/src/core/agents/gemini/profile.ts +163 -0
- package/src/core/agents/gemini/tools.ts +99 -0
- package/src/core/agents/login.ts +14 -8
- package/src/core/agents/stderr-tail.ts +5 -2
- package/src/core/presets.ts +15 -2
- package/src/core/processes/native-processes.ts +32 -1
- package/src/core/provision/checksums.ts +12 -2
- package/src/core/provision/install-build.ts +122 -55
- package/src/core/provision/pins.ts +5 -0
- package/src/core/provision/provisioner.ts +62 -27
- package/src/core/provision/releases.ts +47 -1
- package/src/core/provision/tools.ts +124 -31
- package/src/operator/errors.ts +5 -2
- package/src/operator/operator.ts +208 -91
- package/src/operator/render.ts +61 -33
- package/src/operator/session-tools.ts +2 -1
- package/src/operator/types.ts +5 -4
- package/src/protocol/account.ts +5 -2
- package/src/protocol/auth.ts +5 -1
- package/src/protocol/config.ts +4 -2
- package/src/protocol/credentials.ts +11 -2
- package/src/protocol/harness.ts +9 -1
- package/src/protocol/part-input.ts +2 -5
- package/src/protocol/text-parts.ts +10 -0
- package/src/server/bin.ts +20 -6
- package/src/server/install.ts +6 -3
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { existsSync, lstatSync, readFileSync, readdirSync, realpathSync, } from "node:fs";
|
|
2
2
|
import { readdir } from "node:fs/promises";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
|
+
import { homedir } from "node:os";
|
|
4
5
|
import { dirname, join, resolve } from "node:path";
|
|
5
6
|
import { pathToFileURL } from "node:url";
|
|
6
7
|
import { CliNotFoundError, CliProvisionError } from "../utils/errors.js";
|
|
7
8
|
import { DEFAULT_PINS } from "./pins.js";
|
|
8
9
|
import { claudePackageSuffix, codexPackageSuffix, findOnPath, } from "./platform.js";
|
|
9
10
|
/**
|
|
10
|
-
* The managed CLIs. Each native harness maps onto exactly one of these
|
|
11
|
+
* The managed CLIs. Each native harness maps onto exactly one of these, and
|
|
12
|
+
* so does `gemini`, a profile on the ACP agent that runs Google's `agy`; the
|
|
11
13
|
* `acp` harness maps onto none (its agent binaries are arbitrary third-party
|
|
12
14
|
* commands the operator supplies, not something we pin or download), nor does
|
|
13
15
|
* `scripted`, which runs no process.
|
|
14
16
|
*/
|
|
15
|
-
export const CLI_TOOLS = ["claude", "codex"];
|
|
17
|
+
export const CLI_TOOLS = ["claude", "codex", "agy"];
|
|
16
18
|
/**
|
|
17
19
|
* Which managed CLI a harness runs on — `undefined` for unmanaged harnesses
|
|
18
20
|
* (`acp`, `scripted`). Exhaustive by construction: adding a harness fails to
|
|
@@ -21,6 +23,7 @@ export const CLI_TOOLS = ["claude", "codex"];
|
|
|
21
23
|
const TOOL_FOR_HARNESS = {
|
|
22
24
|
"claude-code": "claude",
|
|
23
25
|
"codex-app-server": "codex",
|
|
26
|
+
gemini: "agy",
|
|
24
27
|
acp: undefined,
|
|
25
28
|
scripted: undefined,
|
|
26
29
|
};
|
|
@@ -150,6 +153,7 @@ const CODEX_BINARIES = [join("bin", "codex"), join("bin", "codex.exe")];
|
|
|
150
153
|
*/
|
|
151
154
|
export const CLI_TOOL_SPECS = {
|
|
152
155
|
claude: {
|
|
156
|
+
title: "Claude Code",
|
|
153
157
|
overrideEnv: "CLAUDE_CLI_PATH",
|
|
154
158
|
binaries: ["claude", "claude.exe"],
|
|
155
159
|
platforms: [
|
|
@@ -162,10 +166,23 @@ export const CLI_TOOL_SPECS = {
|
|
|
162
166
|
"win32-arm64",
|
|
163
167
|
"win32-x64",
|
|
164
168
|
],
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
+
source: {
|
|
170
|
+
kind: "npm",
|
|
171
|
+
// The platform packages carry the native CLI matched to the SDK JS.
|
|
172
|
+
package: (platform, version) => {
|
|
173
|
+
const suffix = claudePackageSuffix(platform);
|
|
174
|
+
return {
|
|
175
|
+
name: `@anthropic-ai/claude-agent-sdk-${suffix}`,
|
|
176
|
+
registryVersion: version,
|
|
177
|
+
suffix,
|
|
178
|
+
};
|
|
179
|
+
},
|
|
180
|
+
payload: async (extractedRoot) => {
|
|
181
|
+
const dir = join(extractedRoot, "package");
|
|
182
|
+
if (existsSync(dir))
|
|
183
|
+
return dir;
|
|
184
|
+
throw new CliProvisionError("claude tarball has no package/ directory");
|
|
185
|
+
},
|
|
169
186
|
},
|
|
170
187
|
// The on-disk SDK's version (the pair that actually runs) over the
|
|
171
188
|
// release default, which only decides inside compiled binaries. Even
|
|
@@ -203,12 +220,6 @@ export const CLI_TOOL_SPECS = {
|
|
|
203
220
|
const path = join(platformDir, claudeManifestBuild(sdk.dir, suffix)?.binary ?? "claude");
|
|
204
221
|
return existsSync(path) ? { path, version: sdk.version } : undefined;
|
|
205
222
|
},
|
|
206
|
-
payload: async (extractedRoot) => {
|
|
207
|
-
const dir = join(extractedRoot, "package");
|
|
208
|
-
if (existsSync(dir))
|
|
209
|
-
return dir;
|
|
210
|
-
throw new CliProvisionError("claude tarball has no package/ directory");
|
|
211
|
-
},
|
|
212
223
|
// The SDK on disk names its own CLI's checksum, for a version this
|
|
213
224
|
// release did not pin (a consumer's lockfile moved the SDK).
|
|
214
225
|
localBuild: (suffix, version) => {
|
|
@@ -218,6 +229,7 @@ export const CLI_TOOL_SPECS = {
|
|
|
218
229
|
},
|
|
219
230
|
},
|
|
220
231
|
codex: {
|
|
232
|
+
title: "Codex CLI",
|
|
221
233
|
overrideEnv: "CODEX_CLI_PATH",
|
|
222
234
|
binaries: CODEX_BINARIES,
|
|
223
235
|
// Its linux builds are static, so there is no musl variant.
|
|
@@ -229,10 +241,25 @@ export const CLI_TOOL_SPECS = {
|
|
|
229
241
|
"win32-arm64",
|
|
230
242
|
"win32-x64",
|
|
231
243
|
],
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
244
|
+
source: {
|
|
245
|
+
kind: "npm",
|
|
246
|
+
// Codex publishes its platform builds as version suffixes of one package.
|
|
247
|
+
package: (platform, version) => {
|
|
248
|
+
const suffix = codexPackageSuffix(platform);
|
|
249
|
+
return { name: "@openai/codex", registryVersion: `${version}-${suffix}`, suffix };
|
|
250
|
+
},
|
|
251
|
+
// Codex vendors per-target trees: package/vendor/<rust-triple>/bin/codex.
|
|
252
|
+
// Install the whole tree — the CLI expects its vendored rg/zsh siblings.
|
|
253
|
+
payload: async (extractedRoot) => {
|
|
254
|
+
const vendor = join(extractedRoot, "package", "vendor");
|
|
255
|
+
const entries = existsSync(vendor) ? await readdir(vendor) : [];
|
|
256
|
+
for (const entry of entries) {
|
|
257
|
+
const dir = join(vendor, entry);
|
|
258
|
+
if (binaryIn(dir, CODEX_BINARIES))
|
|
259
|
+
return dir;
|
|
260
|
+
}
|
|
261
|
+
throw new CliProvisionError("codex tarball has no vendor/<target>/bin/codex");
|
|
262
|
+
},
|
|
236
263
|
},
|
|
237
264
|
defaultVersion: () => DEFAULT_PINS.codex,
|
|
238
265
|
// @ref LLP 0001#d18--the-engine-installs-the-clis-it-runs-pinned-builds-checked-before-a-turn — a lockfile's build, or in `system` the operator's PATH
|
|
@@ -261,19 +288,51 @@ export const CLI_TOOL_SPECS = {
|
|
|
261
288
|
const path = searchPath ? findOnPath("codex", env, platform.platform) : undefined;
|
|
262
289
|
return path ? { path } : undefined;
|
|
263
290
|
},
|
|
264
|
-
// Codex vendors per-target trees: package/vendor/<rust-triple>/bin/codex.
|
|
265
|
-
// Install the whole tree — the CLI expects its vendored rg/zsh siblings.
|
|
266
|
-
payload: async (extractedRoot) => {
|
|
267
|
-
const vendor = join(extractedRoot, "package", "vendor");
|
|
268
|
-
const entries = existsSync(vendor) ? await readdir(vendor) : [];
|
|
269
|
-
for (const entry of entries) {
|
|
270
|
-
const dir = join(vendor, entry);
|
|
271
|
-
if (binaryIn(dir, CODEX_BINARIES))
|
|
272
|
-
return dir;
|
|
273
|
-
}
|
|
274
|
-
throw new CliProvisionError("codex tarball has no vendor/<target>/bin/codex");
|
|
275
|
-
},
|
|
276
291
|
// A bare spawn would just ENOENT.
|
|
277
292
|
notOnHost: () => new CliNotFoundError("codex", 'install it, set $CODEX_CLI_PATH, or use provision mode "auto"'),
|
|
278
293
|
},
|
|
294
|
+
// Google's Antigravity CLI, for the gemini harness.
|
|
295
|
+
agy: {
|
|
296
|
+
title: "Antigravity CLI",
|
|
297
|
+
overrideEnv: "ANTIGRAVITY_CLI_PATH",
|
|
298
|
+
binaries: ["agy", "agy.exe"],
|
|
299
|
+
platforms: [
|
|
300
|
+
"darwin-arm64",
|
|
301
|
+
"darwin-x64",
|
|
302
|
+
"linux-arm64",
|
|
303
|
+
"linux-x64",
|
|
304
|
+
"linux-arm64-musl",
|
|
305
|
+
"linux-x64-musl",
|
|
306
|
+
"win32-arm64",
|
|
307
|
+
"win32-x64",
|
|
308
|
+
],
|
|
309
|
+
// Google publishes no package: each build is a file its update manifest
|
|
310
|
+
// names, with a sha512 and no signature, recorded at refresh
|
|
311
|
+
// (`scripts/refresh-cli-releases.ts`). The tarball's one member is
|
|
312
|
+
// `antigravity`, which its installer puts in place as `agy`; Windows'
|
|
313
|
+
// build is the executable itself.
|
|
314
|
+
source: {
|
|
315
|
+
kind: "url",
|
|
316
|
+
executable: ({ platform }) => platform === "win32" ? { binary: "agy.exe" } : { binary: "agy", member: "antigravity" },
|
|
317
|
+
},
|
|
318
|
+
defaultVersion: () => DEFAULT_PINS.agy,
|
|
319
|
+
// @ref LLP 0010#source-kinds — the person's own agy updates itself: only `system` runs it
|
|
320
|
+
// Where Google's installers put it (`install.sh`: ~/.local/bin/agy;
|
|
321
|
+
// `install.ps1` and `install.cmd`: %LOCALAPPDATA%\agy\bin\agy.exe),
|
|
322
|
+
// then PATH, in `system` mode only: nobody chose that build for this
|
|
323
|
+
// engine, and it updates itself.
|
|
324
|
+
hostInstall: ({ platform, env, searchPath }) => {
|
|
325
|
+
if (!searchPath)
|
|
326
|
+
return undefined;
|
|
327
|
+
const windows = platform.platform === "win32";
|
|
328
|
+
const local = windows ? env.LOCALAPPDATA : (env.HOME ?? homedir());
|
|
329
|
+
const installed = local &&
|
|
330
|
+
binaryIn(windows ? join(local, "agy", "bin") : join(local, ".local", "bin"), [
|
|
331
|
+
windows ? "agy.exe" : "agy",
|
|
332
|
+
]);
|
|
333
|
+
const path = installed || findOnPath("agy", env, platform.platform);
|
|
334
|
+
return path ? { path } : undefined;
|
|
335
|
+
},
|
|
336
|
+
notOnHost: () => new CliNotFoundError("agy", 'install Google\'s Antigravity CLI (https://antigravity.google/docs/getting-started), set $ANTIGRAVITY_CLI_PATH, or use provision mode "auto"'),
|
|
337
|
+
},
|
|
279
338
|
};
|
package/dist/operator/errors.js
CHANGED
|
@@ -89,8 +89,8 @@ export const refuse = {
|
|
|
89
89
|
limitSettingUp: (retryAfter, detail) => new OperatorError("limit_setting_up", `As many workspaces as this host sets up at once are being set up. Nothing was started. Try again in about ${retryAfter}s.`, { detail, retryAfter }),
|
|
90
90
|
limitRate: (count, retryAfter) => new OperatorError("limit_rate", `You started ${count} sessions in the last minute (the limit). Nothing was started. Try again in ${retryAfter}s.`, { retryAfter }),
|
|
91
91
|
limitResources: (retryAfter, detail) => new OperatorError("limit_resources", `This computer cannot take another session now. Nothing was started.${retryAfter ? ` Try again in ${retryAfter}s.` : ""}`, { detail, retryAfter }),
|
|
92
|
-
staleCursor: (hint, ref) => new OperatorError("stale_cursor", `That cursor no longer points into ${q(ref)}. Nothing was read.`, {
|
|
93
|
-
next: hint("read_session", { session: ref }),
|
|
92
|
+
staleCursor: (hint, ref, selection) => new OperatorError("stale_cursor", `That cursor no longer points into ${q(ref)}. Nothing was read.`, {
|
|
93
|
+
next: hint("read_session", selection ? { session: ref, ...selection, full: true } : { session: ref }),
|
|
94
94
|
}),
|
|
95
95
|
unsupported: (detail) => new OperatorError("unsupported", `This cannot be done here. ${NOTHING}`, { detail }),
|
|
96
96
|
failed: () => new OperatorError("failed", "The tool failed; nothing more is known. Try again, or tell the person."),
|