@zvada/agent-server 0.3.26 → 0.3.28
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 +71 -0
- package/README.md +7 -5
- package/dist/client/client.js +27 -11
- package/dist/client/connection.js +35 -3
- package/dist/core/agents/acp/account.js +111 -0
- package/dist/core/agents/acp/acp-agent.js +247 -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/approvals.js +1 -1
- package/dist/core/agents/claude-code/login.js +4 -1
- package/dist/core/agents/claude-code/session.js +38 -10
- package/dist/core/agents/claude-code/spawn.js +0 -26
- 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/codex-app-server/plan-approval.js +1 -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 +137 -0
- package/dist/core/agents/gemini/tools.js +91 -0
- package/dist/core/agents/login.js +8 -6
- package/dist/core/agents/scripted/scripted-agent.js +30 -3
- package/dist/core/agents/stderr-tail.js +5 -2
- package/dist/core/presets.js +17 -1
- 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/core/runtime/agent-runtime.js +15 -5
- package/dist/core/runtime/event-processor.js +13 -8
- package/dist/core/runtime/origin-line.js +42 -0
- package/dist/core/runtime/request-broker.js +2 -1
- package/dist/core/runtime/steering.js +4 -3
- package/dist/core/runtime/turn.js +6 -4
- package/dist/operator/errors.js +97 -0
- package/dist/operator/index.js +10 -5
- package/dist/operator/mcp.js +7 -12
- package/dist/operator/operator.js +1431 -378
- package/dist/operator/refs.js +59 -0
- package/dist/operator/render.js +199 -94
- package/dist/operator/session-tools.js +88 -0
- package/dist/operator/types.js +30 -0
- package/dist/operator/view.js +82 -27
- package/dist/protocol/account.js +5 -1
- package/dist/protocol/auth.js +5 -1
- package/dist/protocol/config.js +12 -5
- package/dist/protocol/conversation.js +3 -0
- package/dist/protocol/credentials.js +9 -1
- package/dist/protocol/harness.js +9 -1
- package/dist/protocol/history.js +2 -1
- package/dist/protocol/index.js +1 -0
- package/dist/protocol/lifecycle.js +19 -0
- package/dist/protocol/origin.js +39 -0
- package/dist/protocol/reduce.js +2 -0
- package/dist/protocol/wire.js +17 -0
- package/dist/server/bin.js +22 -7
- package/dist/server/install.js +6 -4
- package/dist/server/routes.js +15 -5
- package/dist/types/client/client.d.ts.map +1 -1
- package/dist/types/client/connection.d.ts +14 -2
- package/dist/types/client/connection.d.ts.map +1 -1
- package/dist/types/client/turns.d.ts +2 -2
- package/dist/types/client/turns.d.ts.map +1 -1
- 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 +92 -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/base.d.ts +2 -0
- package/dist/types/core/agents/base.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/session.d.ts +3 -0
- 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/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/scripted/scripted-agent.d.ts +14 -1
- package/dist/types/core/agents/scripted/scripted-agent.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/core/runtime/agent-runtime.d.ts +4 -2
- package/dist/types/core/runtime/agent-runtime.d.ts.map +1 -1
- package/dist/types/core/runtime/event-processor.d.ts +2 -2
- package/dist/types/core/runtime/event-processor.d.ts.map +1 -1
- package/dist/types/core/runtime/origin-line.d.ts +15 -0
- package/dist/types/core/runtime/origin-line.d.ts.map +1 -0
- package/dist/types/core/runtime/request-broker.d.ts +1 -1
- package/dist/types/core/runtime/request-broker.d.ts.map +1 -1
- package/dist/types/core/runtime/steering.d.ts +7 -4
- package/dist/types/core/runtime/steering.d.ts.map +1 -1
- package/dist/types/core/runtime/turn.d.ts.map +1 -1
- package/dist/types/operator/errors.d.ts +87 -0
- package/dist/types/operator/errors.d.ts.map +1 -0
- package/dist/types/operator/index.d.ts +10 -5
- package/dist/types/operator/index.d.ts.map +1 -1
- package/dist/types/operator/mcp.d.ts +1 -1
- package/dist/types/operator/mcp.d.ts.map +1 -1
- package/dist/types/operator/operator.d.ts +15 -197
- package/dist/types/operator/operator.d.ts.map +1 -1
- package/dist/types/operator/refs.d.ts +25 -0
- package/dist/types/operator/refs.d.ts.map +1 -0
- package/dist/types/operator/render.d.ts +67 -22
- package/dist/types/operator/render.d.ts.map +1 -1
- package/dist/types/operator/session-tools.d.ts +61 -0
- package/dist/types/operator/session-tools.d.ts.map +1 -0
- package/dist/types/operator/types.d.ts +442 -0
- package/dist/types/operator/types.d.ts.map +1 -0
- package/dist/types/operator/view.d.ts +19 -29
- package/dist/types/operator/view.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 +22 -5
- package/dist/types/protocol/config.d.ts.map +1 -1
- package/dist/types/protocol/conversation.d.ts +47 -6
- package/dist/types/protocol/conversation.d.ts.map +1 -1
- 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/history.d.ts +1 -1
- package/dist/types/protocol/history.d.ts.map +1 -1
- package/dist/types/protocol/index.d.ts +1 -0
- package/dist/types/protocol/index.d.ts.map +1 -1
- package/dist/types/protocol/lifecycle.d.ts +48 -10
- package/dist/types/protocol/lifecycle.d.ts.map +1 -1
- package/dist/types/protocol/models.d.ts +3 -0
- package/dist/types/protocol/models.d.ts.map +1 -1
- package/dist/types/protocol/origin.d.ts +49 -0
- package/dist/types/protocol/origin.d.ts.map +1 -0
- package/dist/types/protocol/reduce.d.ts.map +1 -1
- package/dist/types/protocol/wire-api.d.ts +78 -30
- package/dist/types/protocol/wire-api.d.ts.map +1 -1
- package/dist/types/protocol/wire.d.ts +78 -12
- 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/dist/types/server/routes.d.ts.map +1 -1
- package/docs/consuming.md +62 -121
- package/docs/deploy.md +17 -8
- package/docs/harnesses.md +166 -44
- package/docs/sync-history.md +2 -1
- package/package.json +1 -1
- package/src/client/client.ts +36 -9
- package/src/client/connection.ts +31 -1
- package/src/client/turns.ts +2 -1
- package/src/core/agents/acp/account.ts +158 -0
- package/src/core/agents/acp/acp-agent.ts +288 -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 +127 -0
- package/src/core/agents/acp/prompts.ts +287 -0
- package/src/core/agents/acp/requests.ts +16 -9
- package/src/core/agents/base.ts +2 -0
- package/src/core/agents/claude-code/approvals.ts +2 -2
- package/src/core/agents/claude-code/login.ts +4 -1
- package/src/core/agents/claude-code/session.ts +38 -8
- package/src/core/agents/claude-code/spawn.ts +0 -26
- 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/codex-app-server/plan-approval.ts +1 -1
- 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 +162 -0
- package/src/core/agents/gemini/tools.ts +99 -0
- package/src/core/agents/login.ts +14 -8
- package/src/core/agents/scripted/scripted-agent.ts +42 -3
- package/src/core/agents/stderr-tail.ts +5 -2
- package/src/core/presets.ts +19 -3
- 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/core/runtime/agent-runtime.ts +31 -7
- package/src/core/runtime/event-processor.ts +13 -6
- package/src/core/runtime/origin-line.ts +43 -0
- package/src/core/runtime/request-broker.ts +2 -0
- package/src/core/runtime/steering.ts +8 -4
- package/src/core/runtime/turn.ts +11 -4
- package/src/operator/errors.ts +221 -0
- package/src/operator/index.ts +18 -23
- package/src/operator/mcp.ts +7 -16
- package/src/operator/operator.ts +1684 -610
- package/src/operator/refs.ts +75 -0
- package/src/operator/render.ts +260 -118
- package/src/operator/session-tools.ts +127 -0
- package/src/operator/types.ts +506 -0
- package/src/operator/view.ts +93 -42
- package/src/protocol/account.ts +5 -2
- package/src/protocol/auth.ts +5 -1
- package/src/protocol/config.ts +14 -6
- package/src/protocol/conversation.ts +3 -0
- package/src/protocol/credentials.ts +11 -2
- package/src/protocol/harness.ts +9 -1
- package/src/protocol/history.ts +2 -1
- package/src/protocol/index.ts +1 -0
- package/src/protocol/lifecycle.ts +21 -0
- package/src/protocol/origin.ts +47 -0
- package/src/protocol/reduce.ts +4 -0
- package/src/protocol/wire.ts +18 -0
- package/src/server/bin.ts +20 -6
- package/src/server/install.ts +6 -3
- package/src/server/routes.ts +16 -5
|
@@ -30,6 +30,18 @@ import { type DecodedLifecycleEvent, type UnknownEvent } from "./lifecycle.ts";
|
|
|
30
30
|
* `session/unsubscribeAll`, each with its own answer, not `{all: true}`.
|
|
31
31
|
*/
|
|
32
32
|
export declare const WIRE_PROTOCOL_VERSION = 6;
|
|
33
|
+
/**
|
|
34
|
+
* What a server takes beyond its protocol version, named in `initialize`'s
|
|
35
|
+
* `features`. A field a server's schema does not know is stripped, not
|
|
36
|
+
* refused, so a client asks before it sends one whose loss would change
|
|
37
|
+
* what the agent does.
|
|
38
|
+
* - `origin`: `turn/start` and `turn/steer` carry who sent the input, and the
|
|
39
|
+
* agent is told when it is not the person (LLP 0019). A client sends a
|
|
40
|
+
* non-person origin only to a server that names it.
|
|
41
|
+
*/
|
|
42
|
+
export declare const WIRE_FEATURES: {
|
|
43
|
+
readonly origin: "origin";
|
|
44
|
+
};
|
|
33
45
|
export declare const JsonRpcIdSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
34
46
|
export type JsonRpcId = z.infer<typeof JsonRpcIdSchema>;
|
|
35
47
|
export declare const JsonRpcErrorSchema: z.ZodObject<{
|
|
@@ -180,6 +192,7 @@ export declare const InitializeResultSchema: z.ZodObject<{
|
|
|
180
192
|
steering: z.ZodOptional<z.ZodBoolean>;
|
|
181
193
|
ignoredSettings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
182
194
|
}, z.core.$strip>>;
|
|
195
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
183
196
|
}, z.core.$strip>;
|
|
184
197
|
export type InitializeResult = z.infer<typeof InitializeResultSchema>;
|
|
185
198
|
/**
|
|
@@ -217,6 +230,7 @@ export declare const TurnStartParamsSchema: z.ZodObject<{
|
|
|
217
230
|
harness: z.ZodEnum<{
|
|
218
231
|
"claude-code": "claude-code";
|
|
219
232
|
"codex-app-server": "codex-app-server";
|
|
233
|
+
gemini: "gemini";
|
|
220
234
|
acp: "acp";
|
|
221
235
|
scripted: "scripted";
|
|
222
236
|
}>;
|
|
@@ -263,6 +277,17 @@ export declare const TurnStartParamsSchema: z.ZodObject<{
|
|
|
263
277
|
disableTools: z.ZodOptional<z.ZodBoolean>;
|
|
264
278
|
includeRaw: z.ZodOptional<z.ZodBoolean>;
|
|
265
279
|
}, z.core.$strip>;
|
|
280
|
+
origin: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
281
|
+
kind: z.ZodLiteral<"person">;
|
|
282
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
283
|
+
kind: z.ZodLiteral<"session">;
|
|
284
|
+
sessionId: z.ZodString;
|
|
285
|
+
name: z.ZodOptional<z.ZodString>;
|
|
286
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
287
|
+
kind: z.ZodLiteral<"assistant">;
|
|
288
|
+
id: z.ZodString;
|
|
289
|
+
name: z.ZodString;
|
|
290
|
+
}, z.core.$strip>], "kind">>;
|
|
266
291
|
subscribe: z.ZodOptional<z.ZodBoolean>;
|
|
267
292
|
}, z.core.$strip>;
|
|
268
293
|
export type TurnStartParams = z.infer<typeof TurnStartParamsSchema>;
|
|
@@ -275,7 +300,7 @@ export declare const TurnStartResultSchema: z.ZodObject<{
|
|
|
275
300
|
timestamp: z.ZodNumber;
|
|
276
301
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
277
302
|
execution: z.ZodOptional<z.ZodObject<{
|
|
278
|
-
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown>>;
|
|
303
|
+
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "gemini" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "gemini" | "acp" | "scripted", unknown>>;
|
|
279
304
|
model: z.ZodOptional<z.ZodString>;
|
|
280
305
|
thinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
281
306
|
permissionMode: z.ZodOptional<z.ZodType<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown, z.core.$ZodTypeInternals<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown>>>;
|
|
@@ -369,6 +394,17 @@ export declare const TurnSteerParamsSchema: z.ZodObject<{
|
|
|
369
394
|
mimeType: z.ZodString;
|
|
370
395
|
filename: z.ZodOptional<z.ZodString>;
|
|
371
396
|
}, z.core.$strip>], "type">>]>;
|
|
397
|
+
origin: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
398
|
+
kind: z.ZodLiteral<"person">;
|
|
399
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
400
|
+
kind: z.ZodLiteral<"session">;
|
|
401
|
+
sessionId: z.ZodString;
|
|
402
|
+
name: z.ZodOptional<z.ZodString>;
|
|
403
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
404
|
+
kind: z.ZodLiteral<"assistant">;
|
|
405
|
+
id: z.ZodString;
|
|
406
|
+
name: z.ZodString;
|
|
407
|
+
}, z.core.$strip>], "kind">>;
|
|
372
408
|
}, z.core.$strip>;
|
|
373
409
|
export type TurnSteerParams = z.infer<typeof TurnSteerParamsSchema>;
|
|
374
410
|
/**
|
|
@@ -457,7 +493,7 @@ export declare const WireEventEnvelopeSchema: z.ZodObject<{
|
|
|
457
493
|
type: z.ZodLiteral<"session.created">;
|
|
458
494
|
sessionId: z.ZodString;
|
|
459
495
|
nativeSessionId: z.ZodString;
|
|
460
|
-
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown>>;
|
|
496
|
+
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "gemini" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "gemini" | "acp" | "scripted", unknown>>;
|
|
461
497
|
model: z.ZodOptional<z.ZodString>;
|
|
462
498
|
resumed: z.ZodOptional<z.ZodBoolean>;
|
|
463
499
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -470,7 +506,7 @@ export declare const WireEventEnvelopeSchema: z.ZodObject<{
|
|
|
470
506
|
timestamp: z.ZodNumber;
|
|
471
507
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
472
508
|
execution: z.ZodOptional<z.ZodObject<{
|
|
473
|
-
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown>>;
|
|
509
|
+
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "gemini" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "gemini" | "acp" | "scripted", unknown>>;
|
|
474
510
|
model: z.ZodOptional<z.ZodString>;
|
|
475
511
|
thinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
476
512
|
permissionMode: z.ZodOptional<z.ZodType<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown, z.core.$ZodTypeInternals<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown>>>;
|
|
@@ -487,11 +523,24 @@ export declare const WireEventEnvelopeSchema: z.ZodObject<{
|
|
|
487
523
|
messageId: z.ZodString;
|
|
488
524
|
outputIndex: z.ZodNumber;
|
|
489
525
|
role: z.ZodEnum<{
|
|
490
|
-
user: "user";
|
|
491
526
|
assistant: "assistant";
|
|
527
|
+
user: "user";
|
|
492
528
|
}>;
|
|
493
529
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
494
530
|
model: z.ZodOptional<z.ZodString>;
|
|
531
|
+
origin: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
532
|
+
kind: z.ZodLiteral<"person">;
|
|
533
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
534
|
+
kind: z.ZodLiteral<"session">;
|
|
535
|
+
sessionId: z.ZodString;
|
|
536
|
+
name: z.ZodOptional<z.ZodString>;
|
|
537
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
538
|
+
kind: z.ZodLiteral<"assistant">;
|
|
539
|
+
id: z.ZodString;
|
|
540
|
+
name: z.ZodString;
|
|
541
|
+
}, z.core.$strip>], "kind">, z.ZodObject<{
|
|
542
|
+
kind: z.ZodString;
|
|
543
|
+
}, z.core.$loose>]>>;
|
|
495
544
|
sessionId: z.ZodString;
|
|
496
545
|
turnId: z.ZodString;
|
|
497
546
|
type: z.ZodLiteral<"message.started">;
|
|
@@ -694,7 +743,7 @@ export declare const WireEventEnvelopeSchema: z.ZodObject<{
|
|
|
694
743
|
timestamp: z.ZodNumber;
|
|
695
744
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
696
745
|
execution: z.ZodOptional<z.ZodObject<{
|
|
697
|
-
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown>>;
|
|
746
|
+
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "gemini" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "gemini" | "acp" | "scripted", unknown>>;
|
|
698
747
|
model: z.ZodOptional<z.ZodString>;
|
|
699
748
|
thinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
700
749
|
permissionMode: z.ZodOptional<z.ZodType<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown, z.core.$ZodTypeInternals<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown>>>;
|
|
@@ -787,6 +836,7 @@ export declare const WireEventEnvelopeSchema: z.ZodObject<{
|
|
|
787
836
|
timestamp: z.ZodNumber;
|
|
788
837
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
789
838
|
requestId: z.ZodString;
|
|
839
|
+
purpose: z.ZodOptional<z.ZodType<(string & {}) | "tool" | "plan", unknown, z.core.$ZodTypeInternals<(string & {}) | "tool" | "plan", unknown>>>;
|
|
790
840
|
title: z.ZodString;
|
|
791
841
|
toolCall: z.ZodOptional<z.ZodObject<{
|
|
792
842
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
@@ -873,7 +923,7 @@ export declare const WireEventEnvelopeSchema: z.ZodObject<{
|
|
|
873
923
|
}, z.core.$strip>, z.ZodObject<{
|
|
874
924
|
timestamp: z.ZodNumber;
|
|
875
925
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
876
|
-
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown>>;
|
|
926
|
+
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "gemini" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "gemini" | "acp" | "scripted", unknown>>;
|
|
877
927
|
data: z.ZodUnknown;
|
|
878
928
|
sessionId: z.ZodString;
|
|
879
929
|
turnId: z.ZodString;
|
|
@@ -914,7 +964,7 @@ export declare const EventsReplayResultSchema: z.ZodObject<{
|
|
|
914
964
|
type: z.ZodLiteral<"session.created">;
|
|
915
965
|
sessionId: z.ZodString;
|
|
916
966
|
nativeSessionId: z.ZodString;
|
|
917
|
-
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown>>;
|
|
967
|
+
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "gemini" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "gemini" | "acp" | "scripted", unknown>>;
|
|
918
968
|
model: z.ZodOptional<z.ZodString>;
|
|
919
969
|
resumed: z.ZodOptional<z.ZodBoolean>;
|
|
920
970
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -927,7 +977,7 @@ export declare const EventsReplayResultSchema: z.ZodObject<{
|
|
|
927
977
|
timestamp: z.ZodNumber;
|
|
928
978
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
929
979
|
execution: z.ZodOptional<z.ZodObject<{
|
|
930
|
-
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown>>;
|
|
980
|
+
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "gemini" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "gemini" | "acp" | "scripted", unknown>>;
|
|
931
981
|
model: z.ZodOptional<z.ZodString>;
|
|
932
982
|
thinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
933
983
|
permissionMode: z.ZodOptional<z.ZodType<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown, z.core.$ZodTypeInternals<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown>>>;
|
|
@@ -944,11 +994,24 @@ export declare const EventsReplayResultSchema: z.ZodObject<{
|
|
|
944
994
|
messageId: z.ZodString;
|
|
945
995
|
outputIndex: z.ZodNumber;
|
|
946
996
|
role: z.ZodEnum<{
|
|
947
|
-
user: "user";
|
|
948
997
|
assistant: "assistant";
|
|
998
|
+
user: "user";
|
|
949
999
|
}>;
|
|
950
1000
|
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
951
1001
|
model: z.ZodOptional<z.ZodString>;
|
|
1002
|
+
origin: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1003
|
+
kind: z.ZodLiteral<"person">;
|
|
1004
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1005
|
+
kind: z.ZodLiteral<"session">;
|
|
1006
|
+
sessionId: z.ZodString;
|
|
1007
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1008
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1009
|
+
kind: z.ZodLiteral<"assistant">;
|
|
1010
|
+
id: z.ZodString;
|
|
1011
|
+
name: z.ZodString;
|
|
1012
|
+
}, z.core.$strip>], "kind">, z.ZodObject<{
|
|
1013
|
+
kind: z.ZodString;
|
|
1014
|
+
}, z.core.$loose>]>>;
|
|
952
1015
|
sessionId: z.ZodString;
|
|
953
1016
|
turnId: z.ZodString;
|
|
954
1017
|
type: z.ZodLiteral<"message.started">;
|
|
@@ -1151,7 +1214,7 @@ export declare const EventsReplayResultSchema: z.ZodObject<{
|
|
|
1151
1214
|
timestamp: z.ZodNumber;
|
|
1152
1215
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1153
1216
|
execution: z.ZodOptional<z.ZodObject<{
|
|
1154
|
-
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown>>;
|
|
1217
|
+
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "gemini" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "gemini" | "acp" | "scripted", unknown>>;
|
|
1155
1218
|
model: z.ZodOptional<z.ZodString>;
|
|
1156
1219
|
thinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
1157
1220
|
permissionMode: z.ZodOptional<z.ZodType<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown, z.core.$ZodTypeInternals<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown>>>;
|
|
@@ -1244,6 +1307,7 @@ export declare const EventsReplayResultSchema: z.ZodObject<{
|
|
|
1244
1307
|
timestamp: z.ZodNumber;
|
|
1245
1308
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1246
1309
|
requestId: z.ZodString;
|
|
1310
|
+
purpose: z.ZodOptional<z.ZodType<(string & {}) | "tool" | "plan", unknown, z.core.$ZodTypeInternals<(string & {}) | "tool" | "plan", unknown>>>;
|
|
1247
1311
|
title: z.ZodString;
|
|
1248
1312
|
toolCall: z.ZodOptional<z.ZodObject<{
|
|
1249
1313
|
toolCallId: z.ZodOptional<z.ZodString>;
|
|
@@ -1330,7 +1394,7 @@ export declare const EventsReplayResultSchema: z.ZodObject<{
|
|
|
1330
1394
|
}, z.core.$strip>, z.ZodObject<{
|
|
1331
1395
|
timestamp: z.ZodNumber;
|
|
1332
1396
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1333
|
-
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown>>;
|
|
1397
|
+
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "gemini" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "gemini" | "acp" | "scripted", unknown>>;
|
|
1334
1398
|
data: z.ZodUnknown;
|
|
1335
1399
|
sessionId: z.ZodString;
|
|
1336
1400
|
turnId: z.ZodString;
|
|
@@ -1363,6 +1427,7 @@ export declare const ModelsListParamsSchema: z.ZodObject<{
|
|
|
1363
1427
|
harness: z.ZodEnum<{
|
|
1364
1428
|
"claude-code": "claude-code";
|
|
1365
1429
|
"codex-app-server": "codex-app-server";
|
|
1430
|
+
gemini: "gemini";
|
|
1366
1431
|
acp: "acp";
|
|
1367
1432
|
scripted: "scripted";
|
|
1368
1433
|
}>;
|
|
@@ -1417,7 +1482,7 @@ export declare const TurnReceiptSchema: z.ZodObject<{
|
|
|
1417
1482
|
timestamp: z.ZodNumber;
|
|
1418
1483
|
_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1419
1484
|
execution: z.ZodOptional<z.ZodObject<{
|
|
1420
|
-
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "acp" | "scripted", unknown>>;
|
|
1485
|
+
harness: z.ZodType<(string & {}) | "claude-code" | "codex-app-server" | "gemini" | "acp" | "scripted", unknown, z.core.$ZodTypeInternals<(string & {}) | "claude-code" | "codex-app-server" | "gemini" | "acp" | "scripted", unknown>>;
|
|
1421
1486
|
model: z.ZodOptional<z.ZodString>;
|
|
1422
1487
|
thinkingLevel: z.ZodOptional<z.ZodType<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown, z.core.$ZodTypeInternals<(string & {}) | "off" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra", unknown>>>;
|
|
1423
1488
|
permissionMode: z.ZodOptional<z.ZodType<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown, z.core.$ZodTypeInternals<"default" | (string & {}) | "plan" | "accept_edits" | "dont_ask" | "bypass_permissions", unknown>>>;
|
|
@@ -1487,6 +1552,7 @@ export declare const DurableSessionSchema: z.ZodObject<{
|
|
|
1487
1552
|
harness: z.ZodEnum<{
|
|
1488
1553
|
"claude-code": "claude-code";
|
|
1489
1554
|
"codex-app-server": "codex-app-server";
|
|
1555
|
+
gemini: "gemini";
|
|
1490
1556
|
acp: "acp";
|
|
1491
1557
|
scripted: "scripted";
|
|
1492
1558
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire.d.ts","sourceRoot":"","sources":["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I,CAAC;CAC5B,CAkBA"}
|
|
@@ -37,7 +37,8 @@ export declare function nothingToInstall(name: string, harness: AgentHarness): s
|
|
|
37
37
|
/**
|
|
38
38
|
* The line `install` prints for a CLI it installed, saying what its version
|
|
39
39
|
* is: Claude's is the Claude SDK package's (`0.3.288`), which carries a
|
|
40
|
-
* Claude Code of its own number (`2.1.288`), the one `claude --version` says
|
|
40
|
+
* Claude Code of its own number (`2.1.288`), the one `claude --version` says;
|
|
41
|
+
* every other tool's is its CLI's own.
|
|
41
42
|
*/
|
|
42
43
|
export declare function installedLine({ tool, platform, cli }: InstallResult): string;
|
|
43
44
|
/** The platforms named, each one some CLI is published for, or what is wrong. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../../src/server/install.ts"],"names":[],"mappings":"AAGA,OAAO,EAEN,cAAc,EACd,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAEhB,MAAM,kBAAkB,CAAC;AAK1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,MAAM,WAAW,cAAc;IAC9B,yEAAyE;IACzE,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,iEAAiE;IACjE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,iDAAiD;IACjD,iBAAiB,CAAC,EAAE,CACnB,OAAO,EAAE,gBAAgB,EACzB,QAAQ,EAAE,YAAY,KAClB,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,OAAO,CAAC,CAAC;CAC/C;AAED,MAAM,WAAW,aAAa;IAC7B,IAAI,EAAE,OAAO,CAAC;IACd,yCAAyC;IACzC,QAAQ,EAAE,M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,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,MAAM,CAM5E;AAqBD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,EAAE,aAAa,GAAG,MAAM,CAQ5E;AAED,iFAAiF;AACjF,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,YAAY,EAAE,CAQrE;AAkED;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,OAAO,GAAE,cAAmB,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAyCvF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../src/server/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAc,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAGN,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,UAAU,
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../src/server/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAc,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAGN,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EAIf,YAAY,EAEZ,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EAErB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,aAAa,EAElB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,KAAK,EAAqB,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAE3E,qEAAqE;AACrE,MAAM,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CAAC;IAC9B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,gDAAgD;IAChD,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,8CAA8C;IAC9C,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,gBAAgB,EAAE,QAAQ,GAAG,YAAY,GAAG,WAAW,CAAC,CAAC;IACjF,kDAAkD;IAClD,SAAS,IAAI,OAAO,CAAC;IACrB,0EAA0E;IAC1E,WAAW,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,CAAC;IACvC,SAAS,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC7C,+EAA+E;IAC/E,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B;AA0BD,0FAA0F;AAC1F,wBAAgB,eAAe,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC,eAAe,CAAC,CA6PxE;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAC5B,KAAK,EAAE,mBAAmB,EAC1B,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAAC,GACpD,MAAM,CAAC,aAAa,CAAC,CAkCvB"}
|
package/docs/consuming.md
CHANGED
|
@@ -977,140 +977,81 @@ event later: its `events/replay` answers `unknownSession`, and that answer *is*
|
|
|
977
977
|
the terminal signal (the session is gone; nothing more will be appended to it).
|
|
978
978
|
Treat `unknownSession` on replay as "session over", not as an error to retry.
|
|
979
979
|
|
|
980
|
-
## Let
|
|
980
|
+
## Let agents operate your sessions
|
|
981
981
|
|
|
982
|
-
In this section the operator is
|
|
982
|
+
In this section the operator is the agent doing it; elsewhere in this guide
|
|
983
983
|
it is whoever runs the engine (an operator option).
|
|
984
|
-
`@zvada/agent-server/operator` gives
|
|
985
|
-
CLI agent)
|
|
986
|
-
|
|
987
|
-
`
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
`
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
984
|
+
`@zvada/agent-server/operator` gives an outside assistant (ChatGPT, Claude, a
|
|
985
|
+
CLI agent), your own window, and your own sessions' agents one set of tools
|
|
986
|
+
over your product's sessions: `whoami`, `list_sessions`, `read_session`,
|
|
987
|
+
`wait_for_sessions`, `list_models`, `start_session`, `send_message`,
|
|
988
|
+
`answer_request`, `stop_sessions`, `archive` (LLP 0019, LLP 0014). A tool your
|
|
989
|
+
host cannot serve is not listed. They answer in short text that names the
|
|
990
|
+
next call (only calls that exist), quote what agents and repositories wrote
|
|
991
|
+
after ` | `, and refuse with a closed set of codes:
|
|
992
|
+
`refused (<code>): <sentence>`.
|
|
993
|
+
|
|
994
|
+
When a message is clipped, follow its `read_session` hint with `full: true`.
|
|
995
|
+
A wait explains when its reply is older than the last 100 messages a read
|
|
996
|
+
can select. Copy the `page` hint to continue a long read in pages of up to
|
|
997
|
+
20,000 UTF-16 units. If the text changes, `stale_cursor` gives the call to
|
|
998
|
+
start again. The transcript cursor (`after`) reads new messages.
|
|
999
|
+
|
|
1000
|
+
The package owns, for every host, and keeps nothing between calls: a
|
|
1001
|
+
message is sent only while the call carrying it is open (to a busy session
|
|
1002
|
+
after its turn ends on its own, within the call's wait; otherwise the
|
|
1003
|
+
answer says nothing was sent); an identical request in flight runs nothing
|
|
1004
|
+
new;
|
|
1005
|
+
a session may not act on itself, reads only in plan mode, answers only in
|
|
1006
|
+
sessions it started, and a permission only with full access; depth, starts
|
|
1007
|
+
per session, agent setups and starts per minute are limited (`limits`);
|
|
1008
|
+
waits are capped by caller (a session 120 s by default, at most 240; an
|
|
1009
|
+
outside caller 60, at most 90 and never past `endsAt`). Each message carries
|
|
1010
|
+
its sender to the engine (`origin`), which tells the receiving agent when it
|
|
1011
|
+
is not the person.
|
|
1012
|
+
|
|
1013
|
+
You implement `OperatorHost`: `list`, `view` (with the turn facts
|
|
1014
|
+
`running` and `lastEnded`, whatever page it shows), `turn` (one turn by
|
|
1015
|
+
id), `send` and `onChange` are required; the rest are capabilities (`entry`, `projects`, `start`,
|
|
1016
|
+
`cancel`, `respond`, `archive`, `models`, `authorize`, `policy`, `admit`,
|
|
1017
|
+
`outcome`, `describe`). A session is an engine session, its id minted by
|
|
1018
|
+
your `start` before it returns, even while its new workspace is set up
|
|
1019
|
+
(`status: setting_up`), and delivering the first message once it is set
|
|
1020
|
+
up is your `start`'s, as the turn `input.turnId` (a `cancel` with no turn
|
|
1021
|
+
id drops it); a workspace is your container for sessions. The package's
|
|
1022
|
+
checks are preflight: enforce archive eligibility, a start into an archived
|
|
1023
|
+
workspace or by an archived starter, and any cap across starters (agent
|
|
1024
|
+
setups, disk) atomically at your own commit, by throwing `Refused` with the
|
|
1025
|
+
code and the sessions concerned; the package words it. `viewOf` makes a session's
|
|
1026
|
+
`SessionView` from the engine's folded state; a host with rows of its own
|
|
1027
|
+
builds the same shape. `send` gets a turn id the package minted, to pass to
|
|
1028
|
+
`turn/start` as is, so a repeat converges. Keep your own access check at
|
|
1029
|
+
each write as well: the package asks `authorize` before each tool and each
|
|
1030
|
+
write it makes, not inside yours. A host that serves session callers gives
|
|
1031
|
+
`policy`, the facts the rules and limits rest on, from its own store.
|
|
1032
|
+
`test/operator/engine-host.ts` is a complete host over the engine in about
|
|
1033
|
+
200 lines.
|
|
1003
1034
|
|
|
1004
1035
|
```ts
|
|
1005
|
-
import {
|
|
1036
|
+
import { createMcpHandler, createOperator, tool } from "@zvada/agent-server/operator";
|
|
1006
1037
|
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
if (held) held.state = reduceConversation(held.state, event);
|
|
1010
|
-
for (const wake of waiters) wake(); // `changed` below
|
|
1038
|
+
const operator = createOperator(host, {
|
|
1039
|
+
extra: [tool({ name: "read_changes", title: "Read changes", description: "…", input: {…}, effect: "read", run })],
|
|
1011
1040
|
});
|
|
1012
|
-
const
|
|
1013
|
-
list: async () => [...sessions].map(([id, s]) =>
|
|
1014
|
-
({ id, name: s.name, group: s.project, phase: phaseOf(viewOf(s.state)), root: s.cwd })),
|
|
1015
|
-
view: async (_caller, id) => viewOf(sessions.get(id)!.state),
|
|
1016
|
-
async send(_caller, id, message, { delivery }) {
|
|
1017
|
-
if (delivery === "interrupt") await client.cancelTurn(id);
|
|
1018
|
-
try {
|
|
1019
|
-
await client.startTurn({ sessionId: id, turnId: crypto.randomUUID(), input: message, config: configFor(id) });
|
|
1020
|
-
} catch (error) {
|
|
1021
|
-
if (/turnActive/.test(String(error))) throw new OperatorError("It is still working. Nothing was sent.");
|
|
1022
|
-
throw error;
|
|
1023
|
-
}
|
|
1024
|
-
},
|
|
1025
|
-
cancel: async (_caller, id) => void (await client.cancelTurn(id)),
|
|
1026
|
-
async respond(_caller, id, answer) {
|
|
1027
|
-
if (answer.kind === "question") await client.respondElicitation(id, answer.requestId, answer.outcome);
|
|
1028
|
-
else await client.respondPermission(id, answer.requestId, answer.outcome);
|
|
1029
|
-
},
|
|
1030
|
-
start: async (_caller, { group, message }) => newSession(group, message), // optional
|
|
1031
|
-
groups: async () => projects.map((p) => p.name), // optional
|
|
1032
|
-
outcome: async (_caller, entry) => `changes: ${await diffStat(entry.root)}`, // optional
|
|
1033
|
-
changed: (signal) => new Promise((resolve) => { // optional
|
|
1034
|
-
const wake = () => { waiters.delete(wake); resolve(); };
|
|
1035
|
-
waiters.add(wake);
|
|
1036
|
-
signal.addEventListener("abort", wake, { once: true });
|
|
1037
|
-
}),
|
|
1038
|
-
};
|
|
1039
|
-
const operator = createOperator(host);
|
|
1040
|
-
```
|
|
1041
|
-
|
|
1042
|
-
`viewOf` makes a session's view from the engine's folded state; a host that
|
|
1043
|
-
keeps rows of its own builds the same `SessionView` (its messages, what it
|
|
1044
|
-
waits on in the engine's request shapes). This host makes its own turn ids
|
|
1045
|
-
and does not detect repeats, so a model that sends the same message twice is
|
|
1046
|
-
told the session is busy. A host that wants to join a repeat instead (the
|
|
1047
|
-
same caller, session and message while the turn that message started has not
|
|
1048
|
-
ended) sends nothing and resolves `send` to `{ duplicate: true }`; `start`
|
|
1049
|
-
returns its `SessionEntry` with `duplicate: true` for the same caller's same
|
|
1050
|
-
task in the same project while that session sets up or its first turn runs
|
|
1051
|
-
(`StartResult`). Only then does `wait: 0` look at the session, answering how
|
|
1052
|
-
that turn stands, and a wait settle from the current view at once; a fresh
|
|
1053
|
-
send or start answers "the agent is working", since your view may not show
|
|
1054
|
-
its turn yet. `start` may return as soon as the session exists: until its
|
|
1055
|
-
first turn begins, its view is `working` with no messages, and the wait
|
|
1056
|
-
covers setup and the turn alike. When a send or a stop did something your
|
|
1057
|
-
view cannot show (a message you held and replaced, or dropped before it was
|
|
1058
|
-
sent), say it in one line: `send` resolves to `{ note }`, which
|
|
1059
|
-
`send_message` says before the outcome, and `cancel` resolves to `{ note }`,
|
|
1060
|
-
which `stop_session` answers with instead of waiting for the view to change.
|
|
1061
|
-
`start` is optional, and without it there is no `start_session`.
|
|
1062
|
-
`entry(caller, id)` is optional too: a host whose `list` holds only its
|
|
1063
|
-
newest sessions gives the others by id there. It gets any reference that
|
|
1064
|
-
names nothing listed, and may throw an `OperatorError` to refuse one in your
|
|
1065
|
-
words (a session archived). `groups(caller)` is optional: every project a
|
|
1066
|
-
session could start in, so `list_sessions` shows the ones with no session
|
|
1067
|
-
yet. `extra: [tool({...})]` adds your own tools (a diff, an archive) beside
|
|
1068
|
-
these; mark one that reaches past your host `openWorld` and one that may
|
|
1069
|
-
lose work `destructive`. `changed` must remove what it registered when its
|
|
1070
|
-
signal aborts; the operator aborts it after every look. A plan request you
|
|
1071
|
-
build yourself uses the engine's `PLAN_OPTIONS` and `PLAN_TITLE`, exported
|
|
1072
|
-
here, so `answer_request` reads it as a plan.
|
|
1073
|
-
|
|
1074
|
-
Access is yours too. `tools()` is the same for every caller (an assistant
|
|
1075
|
-
keeps the list it got when it connected), so refuse a call around `call`, in
|
|
1076
|
-
your words:
|
|
1077
|
-
|
|
1078
|
-
```ts
|
|
1079
|
-
import { OperatorError, type ToolSource } from "@zvada/agent-server/operator";
|
|
1080
|
-
|
|
1081
|
-
const tools: ToolSource<Caller> = {
|
|
1082
|
-
tools: (caller) => operator.tools(caller),
|
|
1083
|
-
async call(name, args, caller) {
|
|
1084
|
-
const found = operator.tools(caller).find((tool) => tool.name === name);
|
|
1085
|
-
if (found && !found.readOnly && !caller.canOperate) {
|
|
1086
|
-
throw new OperatorError(`${name} needs operate access here. Nothing was done.`);
|
|
1087
|
-
}
|
|
1088
|
-
return operator.call(name, args, caller);
|
|
1089
|
-
},
|
|
1090
|
-
};
|
|
1091
|
-
```
|
|
1092
|
-
|
|
1093
|
-
Serve them over MCP (stateless Streamable HTTP) with `createMcpHandler`. It
|
|
1094
|
-
has no dependency and is not a server: your route authenticates and names the
|
|
1095
|
-
caller.
|
|
1096
|
-
|
|
1097
|
-
```ts
|
|
1098
|
-
import { createMcpHandler } from "@zvada/agent-server/operator";
|
|
1099
|
-
|
|
1100
|
-
const mcp = createMcpHandler(tools, { name: "my-product", version: "1.0.0" });
|
|
1041
|
+
const mcp = createMcpHandler(operator, { name: "my-product", version: "1.0.0" });
|
|
1101
1042
|
app.post("/mcp", async (c) => {
|
|
1102
1043
|
const caller = await authenticate(c.req.header("authorization")); // yours: 401 if not
|
|
1103
|
-
const answer = await mcp(await c.req.json(), caller);
|
|
1044
|
+
const answer = await mcp(await c.req.json(), caller); // an ExternalCaller
|
|
1104
1045
|
return answer === null ? c.body(null, 202) : c.json(answer);
|
|
1105
1046
|
});
|
|
1106
1047
|
app.get("/mcp", (c) => c.body(null, 405));
|
|
1107
1048
|
```
|
|
1108
1049
|
|
|
1109
|
-
A
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1050
|
+
A host's own tool declares its `effect` honestly (anything that changes
|
|
1051
|
+
something or posts outside is `write`); plan mode and `authorize` apply to
|
|
1052
|
+
it, and it may not change sessions. A failed call reaches the model as an
|
|
1053
|
+
`isError` tool result: an `OperatorError`'s words as they are, any other
|
|
1054
|
+
failure as `refused (failed)` with none of its text.
|
|
1114
1055
|
|
|
1115
1056
|
## Listen to the engine's diagnostics
|
|
1116
1057
|
|
package/docs/deploy.md
CHANGED
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## CLI provisioning (deterministic agents)
|
|
4
4
|
|
|
5
|
-
The
|
|
6
|
-
unpacked). Instead of trusting whatever version
|
|
7
|
-
engine downloads **the builds this release pins**
|
|
8
|
-
|
|
5
|
+
The harnesses spawn real CLIs (`claude` ~220 MB, `codex` ~320 MB, and the
|
|
6
|
+
gemini harness's `agy` ~230 MB unpacked). Instead of trusting whatever version
|
|
7
|
+
a host happens to have, the engine downloads **the builds this release pins**
|
|
8
|
+
(Claude's and Codex's from the npm registry, agy's from the addresses Google's
|
|
9
|
+
update manifest named) into a local cache and installs them atomically,
|
|
10
|
+
shared across processes. Nothing
|
|
9
11
|
needs to be installed on the machine first: no Node, npm or package manager,
|
|
10
12
|
only the system `tar` (macOS, Linux, Windows 10 and later have one). Three
|
|
11
13
|
modes (`--provision`, `$AGENT_SERVER_PROVISION`, or
|
|
@@ -25,8 +27,10 @@ codex (so your lockfile can pin it). A `codex` on `PATH` counts only in
|
|
|
25
27
|
`system` mode: anywhere else it is no build anyone chose for this engine, and
|
|
26
28
|
may be another app's private copy (Conductor puts its own on `PATH`), of
|
|
27
29
|
another version whose app-server may not run the turn (an older one fails
|
|
28
|
-
on the default model).
|
|
29
|
-
|
|
30
|
+
on the default model). agy's host install (where Google's installer puts it,
|
|
31
|
+
`~/.local/bin/agy` or `%LOCALAPPDATA%\agy\bin\agy.exe`, then `PATH`) counts
|
|
32
|
+
only in `system` mode too: it updates itself.
|
|
33
|
+
Overrides are operator-level only — `$CLAUDE_CLI_PATH` / `$CODEX_CLI_PATH` / `$ANTIGRAVITY_CLI_PATH` (or
|
|
30
34
|
`provision.overrides`), never wire config: a remote client must not choose the
|
|
31
35
|
executable a server spawns. Auth stays host-side either way: managed CLIs read
|
|
32
36
|
the same `~/.claude` / `~/.codex` (or per-turn `config.apiKey` BYOK) as your
|
|
@@ -45,7 +49,10 @@ installed. (npm itself never changes a published version's bytes; the table
|
|
|
45
49
|
is what holds a mirror to them.) A version the table does not pin (an
|
|
46
50
|
operator's `provision.pins`) is checked against the installed Claude SDK's
|
|
47
51
|
manifest when it names that version, else against the registry's checksum
|
|
48
|
-
only, and the log says so once.
|
|
52
|
+
only, and the log says so once. agy's entries are each build's address and
|
|
53
|
+
the sha512 Google's update manifest named for it, which Google does not sign;
|
|
54
|
+
an agy version the table does not hold is refused, since nothing else can say
|
|
55
|
+
where it is or vouch for it.
|
|
49
56
|
|
|
50
57
|
**A product that bundles the Claude SDK** (an ESM or single-file build of its
|
|
51
58
|
own) sets `provision.pins.claude` to the SDK's version: nothing on disk says
|
|
@@ -213,7 +220,9 @@ send the same token: `AgentServerClient.connect(url, { token })`, or the CLI's
|
|
|
213
220
|
`clis/list` before its first turn; a sandbox without baked CLIs is prepared
|
|
214
221
|
remotely with `clis/prepare`, its progress streaming back.
|
|
215
222
|
|
|
216
|
-
`agent-server install`
|
|
223
|
+
`agent-server install` with no `--harness` fetches every managed CLI, agy
|
|
224
|
+
(the gemini harness's, about 90 MB to download) among them; `--harness a,b`
|
|
225
|
+
fetches only what you run. It respects
|
|
217
226
|
`$AGENT_SERVER_CACHE_DIR` (e.g. point it at a persistent volume instead of
|
|
218
227
|
baking). It says what each version is: Claude's is the Claude SDK package's
|
|
219
228
|
(`claude: Claude SDK package 0.3.288 (Claude Code 2.1.288) for linux-x64
|