@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
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { InitializeResponse } from "@agentclientprotocol/sdk";
|
|
2
|
+
import type { AgentCapabilities, AgentHarness, McpTool, RunConfig } from "../../../protocol/index.ts";
|
|
3
|
+
import type { AgentExecuteOptions } from "../base.ts";
|
|
4
|
+
import type { CliLogin } from "../login.ts";
|
|
5
|
+
import type { AcpAccount } from "./account.ts";
|
|
6
|
+
import type { AcpLaunch } from "./client.ts";
|
|
7
|
+
import type { ModeIds } from "./mappings.ts";
|
|
8
|
+
/** A tool call as the agent names it: ACP's `name`, its input, and once it ended its output. */
|
|
9
|
+
export interface AcpToolCall {
|
|
10
|
+
name?: string | null;
|
|
11
|
+
rawInput?: unknown;
|
|
12
|
+
rawOutput?: unknown;
|
|
13
|
+
}
|
|
14
|
+
/** What a harness reads of its agent's tool calls beyond ACP's kind and text (LLP 0002). */
|
|
15
|
+
export interface AcpToolRules {
|
|
16
|
+
/**
|
|
17
|
+
* What a call acts on, from the agent's own names: its MCP server and
|
|
18
|
+
* tool, told apart against the session's own server names, and a
|
|
19
|
+
* command's line. What it does not say is left out.
|
|
20
|
+
*/
|
|
21
|
+
describe(call: AcpToolCall, servers: readonly string[]): {
|
|
22
|
+
mcp?: McpTool;
|
|
23
|
+
command?: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* A finished call's output, where the agent's `rawOutput` holds it: its
|
|
27
|
+
* text, a command's exit code (`metadata.exitCode`; non-zero fails the
|
|
28
|
+
* call), and `failed` for a call the agent says did not run, with no exit
|
|
29
|
+
* code to say it (the text then says why). Undefined: ACP's reading.
|
|
30
|
+
*/
|
|
31
|
+
output?(call: AcpToolCall): {
|
|
32
|
+
text: string;
|
|
33
|
+
exitCode?: number;
|
|
34
|
+
failed?: boolean;
|
|
35
|
+
} | undefined;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* What one ACP agent decides that the protocol does not: the name it runs
|
|
39
|
+
* under, what it supports (`capabilities.steering`: a prompt sent while one
|
|
40
|
+
* runs is input to the running turn), how it starts, and where it departs
|
|
41
|
+
* from what its `initialize` says. The protocol is `ProfiledAcpAgent`'s, so a harness
|
|
42
|
+
* that runs one agent over ACP is a profile, never a second client; it
|
|
43
|
+
* reaches the agent only through its harness's registration
|
|
44
|
+
* (`ProfiledAcpAgent`). Operator-level only: nothing in it comes from the
|
|
45
|
+
* wire.
|
|
46
|
+
*/
|
|
47
|
+
export interface AcpProfile {
|
|
48
|
+
/** The harness it runs under: its turns, its processes and its host-tool leases say so. */
|
|
49
|
+
readonly harness: AgentHarness;
|
|
50
|
+
/** What it supports (LLP 0001, D22). */
|
|
51
|
+
readonly capabilities: AgentCapabilities;
|
|
52
|
+
/**
|
|
53
|
+
* The agent subprocess to start, undefined when none is configured. Never
|
|
54
|
+
* from the wire: the command is arbitrary code execution.
|
|
55
|
+
*/
|
|
56
|
+
launch(): Promise<AcpLaunch | undefined> | AcpLaunch | undefined;
|
|
57
|
+
/** Throws for a turn it cannot run (a setting the agent cannot honour), first in the turn, before anything starts. */
|
|
58
|
+
admit?(options: AgentExecuteOptions): void;
|
|
59
|
+
/** Throws for an agent it cannot drive (a version below its floor), at once after `initialize`. */
|
|
60
|
+
accept?(init: InitializeResponse): void;
|
|
61
|
+
/** The agent takes HTTP MCP servers, though its `initialize` does not say so. */
|
|
62
|
+
readonly httpMcp?: boolean;
|
|
63
|
+
/** The agent's own id for an engine mode, where its ids name none (`permissionModeOf`). */
|
|
64
|
+
readonly modeIds?: ModeIds;
|
|
65
|
+
/**
|
|
66
|
+
* What a new conversation starts with and keeps for its life: `meta(options)`
|
|
67
|
+
* goes with `session/new`, never with a resume or a load. A later turn on
|
|
68
|
+
* that conversation whose `meta` differs did not apply `settings`.
|
|
69
|
+
*/
|
|
70
|
+
readonly newSession?: {
|
|
71
|
+
readonly settings: readonly (keyof RunConfig)[];
|
|
72
|
+
meta(options: AgentExecuteOptions): Record<string, unknown> | undefined;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Present: the harness lists its models, and a turn runs only one it
|
|
76
|
+
* `offers`, also when it names none. Absent: a turn names any the agent
|
|
77
|
+
* offers.
|
|
78
|
+
*/
|
|
79
|
+
readonly models?: {
|
|
80
|
+
offers(value: string): boolean;
|
|
81
|
+
};
|
|
82
|
+
/** What its tool calls are beyond ACP's kind; the harness's adapter reads them the same. */
|
|
83
|
+
readonly tools?: AcpToolRules;
|
|
84
|
+
/**
|
|
85
|
+
* Its CLI's own login (`Agent.login`), which reads the account through
|
|
86
|
+
* the agent's own sessions with no turn. Absent: the agent signs in on its own.
|
|
87
|
+
*/
|
|
88
|
+
login?(account: AcpAccount): CliLogin;
|
|
89
|
+
}
|
|
90
|
+
/** The `acp` harness: any ACP v1 agent the operator launches, taken at its `initialize`'s word. */
|
|
91
|
+
export declare function genericAcpProfile(launch: AcpProfile["launch"]): AcpProfile;
|
|
92
|
+
//# sourceMappingURL=profile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/acp/profile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,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G,SAAS,GAAG,SAAS,CAAC;IACjE,sHAAsH;IACtH,KAAK,CAAC,CAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAC3C,mGAAmG;IACnG,MAAM,CAAC,CAAC,IAAI,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACxC,iFAAiF;IACjF,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,2FAA2F;IAC3F,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE;QACrB,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC,MAAM,SAAS,CAAC,EAAE,CAAC;QAChD,IAAI,CAAC,OAAO,EAAE,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;KACxE,CAAC;IACF;;;;OAIG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE;QAAE,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IACrD,4FAA4F;IAC5F,QAAQ,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC;IAC9B;;;OAGG;IACH,KAAK,CAAC,CAAC,OAAO,EAAE,UAAU,GAAG,QAAQ,CAAC;CACtC;AAmCD,mGAAmG;AACnG,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,GAAG,UAAU,CAE1E"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import type { ContentBlock, PromptResponse, SessionUpdate } from "@agentclientprotocol/sdk";
|
|
2
|
+
import type { AgentRequests } from "./client.ts";
|
|
3
|
+
/** How a turn's prompts end, and the steers the agent read on the way. */
|
|
4
|
+
export interface PromptEnds {
|
|
5
|
+
/** The agent read a steer: its echo goes before what the agent says next. */
|
|
6
|
+
read(steerId: string): void;
|
|
7
|
+
/** No prompt is in flight: the newest prompt's stop reason, the usage summed over every answer. */
|
|
8
|
+
ended(result: Pick<PromptResponse, "stopReason" | "usage">): void;
|
|
9
|
+
/** The turn's own prompt failed, and no prompt is in flight. */
|
|
10
|
+
failed(error: unknown): void;
|
|
11
|
+
}
|
|
12
|
+
export interface TurnPromptsOptions {
|
|
13
|
+
/** Send a prompt on the turn's session. */
|
|
14
|
+
send(prompt: ContentBlock[]): Promise<PromptResponse>;
|
|
15
|
+
/** What the agent asks, for a turn that takes steers (`AcpClient.asking`). */
|
|
16
|
+
asking?: AgentRequests;
|
|
17
|
+
/** The turn's: once aborted no steer is sent, and those left are undelivered. */
|
|
18
|
+
signal: AbortSignal;
|
|
19
|
+
ends: PromptEnds;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The prompts a turn has in flight: its own, then each steer, sent as a
|
|
23
|
+
* prompt of its own to an agent that takes a prompt while one runs as input
|
|
24
|
+
* to the running turn (Antigravity). Such an agent answers the prompt before
|
|
25
|
+
* at once (`end_turn`, the usage of the steps it finished) and goes on; it
|
|
26
|
+
* refuses a prompt while it asks the person.
|
|
27
|
+
*
|
|
28
|
+
* - Order: steers wait in order, and the head stays the head until it is
|
|
29
|
+
* settled. It is sent once the agent asks nothing (`asking`); it is taken
|
|
30
|
+
* when the prompt before it answers, and refused when its own prompt
|
|
31
|
+
* fails. A refused head goes again, in place, only when a request of the
|
|
32
|
+
* agent's arrived after it was sent (the two crossed); refused with none
|
|
33
|
+
* between, it is undelivered, and the next steer is the head.
|
|
34
|
+
* - Read: a taken steer is read by the first model call that starts after
|
|
35
|
+
* it was taken; the call running then goes on without it. A call ends with
|
|
36
|
+
* a usage report (`usage_update`, after every call; its tool calls are
|
|
37
|
+
* announced after it), and its output is its message and thought chunks.
|
|
38
|
+
* Taken while a call streams (from its first chunk to its usage report),
|
|
39
|
+
* it waits for that report, whatever tool calls are open (a command left
|
|
40
|
+
* running in the background). Otherwise, while a tool call of the turn is
|
|
41
|
+
* open, or after a call's usage report or the end of its last open tool
|
|
42
|
+
* call with no chunk since, no call is known to run: it is read at the
|
|
43
|
+
* next chunk, or the next usage report for a call that made none. After a tool ends the wire cannot
|
|
44
|
+
* tell whether Antigravity's next call carries it (one run of three did):
|
|
45
|
+
* the echo is then one message early at worst, never after its reply. Otherwise one usage report must pass first, then the same. A steer's
|
|
46
|
+
* own answer reads nothing (a later steer supersedes it at once); one still
|
|
47
|
+
* unread when the turn ends with its prompts answered, cancelled included,
|
|
48
|
+
* is read then, and none when the turn fails. The echo goes out just before
|
|
49
|
+
* what it is read at (`update`). One whose own prompt fails was never read,
|
|
50
|
+
* and is undelivered.
|
|
51
|
+
* - Result: the turn ends when no prompt is in flight, with the stop reason
|
|
52
|
+
* of the newest prompt sent that answered and the usage of every answer.
|
|
53
|
+
*/
|
|
54
|
+
export declare class TurnPrompts {
|
|
55
|
+
private readonly options;
|
|
56
|
+
private readonly flying;
|
|
57
|
+
/** Steers not yet taken, the head first. */
|
|
58
|
+
private readonly waiting;
|
|
59
|
+
/** Steers taken and not yet read, in order. */
|
|
60
|
+
private readonly taken;
|
|
61
|
+
/** The turn's tool calls not yet `completed` or `failed`: while one is, no model call runs. */
|
|
62
|
+
private readonly tools;
|
|
63
|
+
/** The turn has made a chunk or a tool update. */
|
|
64
|
+
private produced;
|
|
65
|
+
/** No call's output since a call (its usage report, after output) or the last open tool call ended. */
|
|
66
|
+
private betweenCalls;
|
|
67
|
+
/** A model call is streaming, for certain: from a chunk to the next usage report. */
|
|
68
|
+
private streaming;
|
|
69
|
+
private sent;
|
|
70
|
+
private newest?;
|
|
71
|
+
private usage?;
|
|
72
|
+
private failure?;
|
|
73
|
+
private done;
|
|
74
|
+
private pumping;
|
|
75
|
+
private settle;
|
|
76
|
+
/** Settles once no prompt is in flight, or the agent is gone. */
|
|
77
|
+
readonly settled: Promise<void>;
|
|
78
|
+
constructor(options: TurnPromptsOptions);
|
|
79
|
+
/** Whether the turn still takes a prompt. */
|
|
80
|
+
get open(): boolean;
|
|
81
|
+
/** The turn's own prompt. */
|
|
82
|
+
start(prompt: ContentBlock[]): void;
|
|
83
|
+
/** A steer: it waits behind the steers before it. */
|
|
84
|
+
steer(steerId: string, prompt: ContentBlock[]): void;
|
|
85
|
+
/**
|
|
86
|
+
* An update of the turn's session, before it goes out: a chunk reads the
|
|
87
|
+
* steers taken whose call has started, a usage report ends a call.
|
|
88
|
+
*/
|
|
89
|
+
update(update: SessionUpdate): void;
|
|
90
|
+
/** How many steers taken, in order, are past every usage report they waited for. */
|
|
91
|
+
private ready;
|
|
92
|
+
/** The agent is gone: nothing more is told. */
|
|
93
|
+
close(): void;
|
|
94
|
+
private send;
|
|
95
|
+
private answered;
|
|
96
|
+
private refused;
|
|
97
|
+
/** The head is taken: the next steer is the head. */
|
|
98
|
+
private take;
|
|
99
|
+
/** Read the first `count` steers taken. */
|
|
100
|
+
private read;
|
|
101
|
+
/** Send the head once the agent asks nothing, unless it is in flight already. */
|
|
102
|
+
private pump;
|
|
103
|
+
/** Whether a steer may still go: the turn runs, and its own prompt has not failed. */
|
|
104
|
+
private get sending();
|
|
105
|
+
private remove;
|
|
106
|
+
private endIfIdle;
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=prompts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/acp/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAS,MAAM,0BAA0B,CAAC;AACnG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAkCjD,0EAA0E;AAC1E,MAAM,WAAW,UAAU;IAC1B,6EAA6E;IAC7E,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,mGAAmG;IACnG,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,YAAY,GAAG,OAAO,CAAC,GAAG,IAAI,CAAC;IAClE,gEAAgE;IAChE,MAA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AAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,IAAI;IAKpD;;;OAGG;IACH,MAAM,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI;IAgCnC,oFAAoF;IACpF,OAAO,CAAC,KAAK;IAKb,+CAA+C;IAC/C,KAAK,IAAI,IAAI;IAKb,OAAO,CAAC,IAAI;IASZ,OAAO,CAAC,QAAQ;IAgBhB,OAAO,CAAC,OAAO;IAef,qDAAqD;IACrD,OAAO,CAAC,IAAI;IAcZ,2CAA2C;IAC3C,OAAO,CAAC,IAAI;IAIZ,iFAAiF;YACnE,IAAI;IAqBlB,sFAAsF;IACtF,OAAO,KAAK,OAAO,GAElB;IAED,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,SAAS;CAcjB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CreateElicitationRequest, CreateElicitationResponse, RequestPermissionRequest, RequestPermissionResponse } from "@agentclientprotocol/sdk";
|
|
2
|
-
import type { PermissionMode } from "../../../protocol/index.ts";
|
|
2
|
+
import type { McpTool, PermissionMode } from "../../../protocol/index.ts";
|
|
3
3
|
import type { ElicitationRequestHandler, PermissionRequestHandler } from "../base.ts";
|
|
4
|
+
import type { AcpToolCall } from "./profile.ts";
|
|
4
5
|
/**
|
|
5
6
|
* What the turn running on a session answers the agent's requests with: set
|
|
6
7
|
* and cleared as ONE value, so stale partial state (an authorization bypass)
|
|
@@ -20,6 +21,11 @@ export interface TurnScope {
|
|
|
20
21
|
export interface RequestScope {
|
|
21
22
|
readonly acpSessionId: string;
|
|
22
23
|
turn?: TurnScope;
|
|
24
|
+
/** What the harness's tool rules read of a call (`AcpProfile.stream`). */
|
|
25
|
+
describe?(call: AcpToolCall): {
|
|
26
|
+
mcp?: McpTool;
|
|
27
|
+
command?: string;
|
|
28
|
+
};
|
|
23
29
|
}
|
|
24
30
|
/** Answer an agent permission request against the session's current turn. */
|
|
25
31
|
export declare function answerPermission(scope: RequestScope, request: RequestPermissionRequest): Promise<RequestPermissionResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/acp/requests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,EACzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/acp/requests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,EACzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,KAAK,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAUtF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,WAAW,SAAS;IACzB,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC,6EAA6E;IAC7E,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,MAAM,EAAE,WAAW,CAAC;IACpB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wFAAwF;AACxF,MAAM,WAAW,YAAY;IAC5B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,0EAA0E;IAC1E,QAAQ,CAAC,CAAC,IAAI,EAAE,WAAW,GAAG;QAAE,GAAG,CAAC,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAClE;AAED,6EAA6E;AAC7E,wBAAsB,gBAAgB,CACrC,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,wBAAwB,GAC/B,OAAO,CAAC,yBAAyB,CAAC,CA0CpC;AAcD,mFAAmF;AACnF,wBAAsB,iBAAiB,CACtC,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,wBAAwB,GAC/B,OAAO,CAAC,yBAAyB,CAAC,CA0BpC"}
|
|
@@ -43,6 +43,8 @@ export type PermissionRequestHandler = (toolCall: PermissionToolCall, opts?: {
|
|
|
43
43
|
* comes from them; the decision says which was picked.
|
|
44
44
|
*/
|
|
45
45
|
options?: PermissionOption[];
|
|
46
|
+
/** A plan's approval says so (`permission.requested`'s `purpose`); anything else is a tool's. */
|
|
47
|
+
purpose?: "plan";
|
|
46
48
|
/**
|
|
47
49
|
* How an "always" answer works for this request. `{ rule }`: the harness
|
|
48
50
|
* keeps it itself, scoped as `rule` says (Claude's own session rule,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/core/agents/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,kBAAkB,EAClB,yBAAyB,EACzB,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,SAAS,EACT,aAAa,EACb,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAExE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAC3B,CAAC;IACD,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC,GAAG,YAAY,CAAC,GACjB,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAA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Y,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAWrD,MAAM,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC;IAoBnD,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC;IAmG9D,MAAM,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;CASlD"}
|
|
@@ -59,6 +59,8 @@ export declare class ClaudeSession implements PooledProcess, PooledClient {
|
|
|
59
59
|
private readonly planWindows;
|
|
60
60
|
/** The `claude` process the engine started for it; none under an operator's spawner. */
|
|
61
61
|
private native?;
|
|
62
|
+
/** The CLI was still running when the session asked it to stop. */
|
|
63
|
+
private stoppedCli;
|
|
62
64
|
/** Its end, once it began: settles when its process is stopped. */
|
|
63
65
|
private ending?;
|
|
64
66
|
private readonly closeHandlers;
|
|
@@ -166,6 +168,7 @@ export declare class ClaudeSession implements PooledProcess, PooledClient {
|
|
|
166
168
|
terminate(reason?: ClaudeSessionEndReason): Promise<void>;
|
|
167
169
|
private end;
|
|
168
170
|
private consumeEvents;
|
|
171
|
+
private failStream;
|
|
169
172
|
/** What an event says of the session: its native id, its mode, plan windows, spend, steers read. */
|
|
170
173
|
private observe;
|
|
171
174
|
/** Hand an event to the running turn; a result answering it settles the turn. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/claude-code/session.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,mBAAmB,EAMnB,cAAc,EACd,MAAM,gCAAgC,CAAC;AAExC,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAMlF,OAAO,EAEN,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,WAAW,EACX,MAAM,oBAAoB,CAAC;AAI5B,OAAO,EAAE,oBAAoB,EAAE,M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iB,GAAG,OAAO,CAAC,OAAO,CAAC;IAM3D;;;;;OAKG;IACG,QAAQ,CAAC,IAAI,EAAE,UAAU,EAAE,SAAS,SAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAO3E;;;;;;OAMG;IACG,YAAY,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;YAKtD,SAAS;IAcvB;;;;;;;OAOG;YACW,eAAe;IAc7B,oEAAoE;YACtD,YAAY;IAe1B;;;;OAIG;IACH,SAAS,CAAC,MAAM,GAAE,sBAAmC,GAAG,OAAO,CAAC,IAAI,CAAC;YAUvD,GAAG;YA4BH,aAAa;YA4Bb,UAAU;IAgBxB,oGAAoG;IACpG,OAAO,CAAC,OAAO;IA2Bf,iFAAiF;IACjF,OAAO,CAAC,KAAK;IAgCb;;;OAGG;IACH,OAAO,CAAC,aAAa;IAcrB,OAAO,CAAC,OAAO;CAKf;AAED,sFAAsF;AACtF,MAAM,WAAW,cAAc;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,wFAAwF;IACxF,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,gFAAgF;AAChF,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;AAE3E;;;;GAIG;AACH,wBAAgB,iBAAiB,CAChC,QAAQ,EAAE,qBAAqB,GAAG,IAAI,CAAC,sBAAsB,EAAE,cAAc,CAAC,GAC5E,iBAAiB,CAiDnB"}
|
|
@@ -17,13 +17,5 @@ export interface ClaudeSpawn {
|
|
|
17
17
|
* callback, which the SDK calls only from its own spawner, is called here.
|
|
18
18
|
*/
|
|
19
19
|
export declare function claudeSpawner(spawn: ClaudeSpawn, operator?: Spawner, stderr?: (data: string) => void): Spawner;
|
|
20
|
-
/**
|
|
21
|
-
* Put the CLI's own words back into the SDK's exit error, as the SDK's own
|
|
22
|
-
* spawner words it ("Claude Code process exited with code 1. stderr: …"):
|
|
23
|
-
* the last 2 KB, trimmed, with its secrets redacted (the SDK redacts its own;
|
|
24
|
-
* this marks each `[REDACTED]`). The SDK builds that tail only from its own
|
|
25
|
-
* spawner. Its message alone changes, so the error keeps its class and fields.
|
|
26
|
-
*/
|
|
27
|
-
export declare function withStderr(error: unknown, tail: string): unknown;
|
|
28
20
|
export {};
|
|
29
21
|
//# sourceMappingURL=spawn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spawn.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/claude-code/spawn.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAgC,MAAM,gCAAgC,CAAC;AAC5F,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"spawn.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/claude-code/spawn.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAgC,MAAM,gCAAgC,CAAC;AAC5F,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAI1F,KAAK,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC;AAE9D,kFAAkF;AAClF,MAAM,WAAW,WAAW;IAC3B,SAAS,EAAE,eAAe,CAAC;IAC3B,sFAAsF;IACtF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iGAAiG;IACjG,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;CAC5C;AAkDD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC5B,KAAK,EAAE,WAAW,EAClB,QAAQ,CAAC,EAAE,OAAO,EAClB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAC7B,OAAO,CAuCT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/codex-app-server/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,eAAe,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/codex-app-server/client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAiBvD,KAAK,mBAAmB,GAAG,CAAC,CAAC,EAAE,iBAAiB,KAAK,IAAI,CAAC;AAE1D,iFAAiF;AACjF,MAAM,MAAM,oBAAoB,GAAG,CAClC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC3B,OAAO,CAAC,OAAO,CAAC,CAAC;AAEtB;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC/B,2DAA2D;IAC3D,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,0EAA0E;IAC1E,QAAQ,CAAC,SAAS,EAAE,KAAK,GAAG,SAAS,CAAC;IACtC,4DAA4D;IAC5D,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/E,cAAc,CAAC,OAAO,EAAE,mBAAmB,GAAG,MAAM,IAAI,CAAC;IACzD,8EAA8E;IAC9E,iBAAiB,CAAC,OAAO,EAAE,oBAAoB,GAAG,SAAS,GAAG,IAAI,CAAC;IACnE;;;OAGG;IACH,OAAO,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;IACtD,yEAAy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
|
|
2
|
+
import type { AcpRawEvent } from "../acp/adapter.ts";
|
|
3
|
+
import type { EventTransformer } from "../types.ts";
|
|
4
|
+
/**
|
|
5
|
+
* The failure an Antigravity message chunk reports, when the chunk's whole
|
|
6
|
+
* text is one of its wordings: the category from Google's status (its word
|
|
7
|
+
* in any case), `network` for a request that got no HTTP response, and any
|
|
8
|
+
* other executor error by its words (`classifyError`); the message Google's
|
|
9
|
+
* own sentence with its status, never the map dump of `Details`, or the
|
|
10
|
+
* executor's words as they are.
|
|
11
|
+
*/
|
|
12
|
+
export declare function antigravityFailure(text: string): ErrorInfo | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The gemini adapter's reading of a failed model call, in front of the ACP
|
|
15
|
+
* adapter: Antigravity never fails a prompt for it, but sends one message
|
|
16
|
+
* chunk saying so (`antigravityFailure`) and answers `end_turn`. Such a chunk
|
|
17
|
+
* is held; any later content of the turn (`isContent`) lets it go as the
|
|
18
|
+
* text it is, in its place, while updates that are not content do not. A
|
|
19
|
+
* steer read waits behind it: after the chunk once it goes, or before the
|
|
20
|
+
* turn's end (the agent took the steer). At the prompt's answer a chunk still
|
|
21
|
+
* held fails the turn instead, with its category and message and the
|
|
22
|
+
* answer's usage; a cancelled prompt stays cancelled, its words shown.
|
|
23
|
+
*/
|
|
24
|
+
export declare function antigravityFailures(acp: EventTransformer<AcpRawEvent>): EventTransformer<AcpRawEvent>;
|
|
25
|
+
//# sourceMappingURL=failures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"failures.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/gemini/failures.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,SAAS,EAAiB,MAAM,4BAA4B,CAAC;AAC/F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AA6CpD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAatE;AAoBD;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAClC,GAAG,EAAE,gBAAgB,CAAC,WAAW,CAAC,GAChC,gBAAgB,CAAC,WAAW,CAAC,CA6C/B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { AuthMethod } from "../../../protocol/index.ts";
|
|
2
|
+
import { type AcpAccount } from "../acp/account.ts";
|
|
3
|
+
import { type CliLogin, type LoginOptions, type LoginStatus, type NativeLogin } from "../login.ts";
|
|
4
|
+
/**
|
|
5
|
+
* The Antigravity CLI's login: one per OS user, in the system keyring
|
|
6
|
+
* (`store` absent), whatever folder flags it runs with. Its status is a
|
|
7
|
+
* session the agent opens, or refuses; sign-in is `agy acp --login`; sign-out
|
|
8
|
+
* the agent's ACP `logout`.
|
|
9
|
+
*/
|
|
10
|
+
export declare class AntigravityCliLogin implements CliLogin {
|
|
11
|
+
private readonly account;
|
|
12
|
+
constructor(account: AcpAccount);
|
|
13
|
+
/**
|
|
14
|
+
* Its sign-ins, and the command that runs one in a terminal, with the
|
|
15
|
+
* launch's fixed environment: refused, as a turn is, with no agy to run.
|
|
16
|
+
*/
|
|
17
|
+
methods(_options: LoginOptions): Promise<AuthMethod[]>;
|
|
18
|
+
status(options: LoginOptions): Promise<LoginStatus>;
|
|
19
|
+
/**
|
|
20
|
+
* `agy acp --login`: it prints the sign-in address, then reads the code
|
|
21
|
+
* the page shows from stdin, and exits 0 once it stored the login. A desktop
|
|
22
|
+
* agy also opens the browser itself.
|
|
23
|
+
*/
|
|
24
|
+
start(id: string, options: LoginOptions): Promise<NativeLogin>;
|
|
25
|
+
/** The method Google documents, ACP `logout`: it removes the OS keyring entry (LLP 0020.002). */
|
|
26
|
+
logout(options: LoginOptions): Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=login.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/gemini/login.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAK7D,OAAO,EAAE,KAAK,UAAU,EAAsC,MAAM,mBAAmB,CAAC;AACxF,OAAO,EACN,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,WAAW,EAGhB,MAAM,aAAa,CAAC;AAqDrB;;;;;GAKG;AACH,qBAAa,mBAAoB,YAAW,QAAQ;IACvC,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,UAAU;IAEhD;;;OAGG;IACG,OAAO,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;IAMtD,MAAM,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC;IAWzD;;;;OAIG;IACG,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC;IAkEpE,iGAAiG;IAC3F,MAAM,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;CAQlD"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type AcpAgentOptions, ProfiledAcpAgent } from "../acp/acp-agent.ts";
|
|
2
|
+
import type { AcpProfile } from "../acp/profile.ts";
|
|
3
|
+
import type { InheritConfig } from "../inherit-config.ts";
|
|
4
|
+
import type { AdapterFactory } from "../types.ts";
|
|
5
|
+
/** The oldest Antigravity CLI the harness drives: the one its behaviour was measured on. */
|
|
6
|
+
export declare const ANTIGRAVITY_FLOOR = "1.5.13";
|
|
7
|
+
/**
|
|
8
|
+
* A Gemini model, by its id: `gemini-<version>-…`. Antigravity also lists
|
|
9
|
+
* Claude and GPT-OSS models and its `gemini-pro-orchestrator-*` entries,
|
|
10
|
+
* which the harness does not offer.
|
|
11
|
+
*/
|
|
12
|
+
export declare function isGeminiModel(id: string): boolean;
|
|
13
|
+
/** What the gemini harness is made with: the operator's, never the wire's. */
|
|
14
|
+
export interface GeminiOptions {
|
|
15
|
+
inheritConfig?: InheritConfig;
|
|
16
|
+
/** Where agy is: the registry's provisioner, as for the other harnesses. */
|
|
17
|
+
resolveCliPath: () => Promise<string | undefined>;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The `gemini` harness's profile: Google's Antigravity CLI (`agy acp`) on the
|
|
21
|
+
* person's own Antigravity sign-in, offering Gemini models only.
|
|
22
|
+
*/
|
|
23
|
+
export declare function geminiProfile(options: GeminiOptions): AcpProfile;
|
|
24
|
+
/**
|
|
25
|
+
* The `gemini` harness as the registry registers it: the ACP agent on its
|
|
26
|
+
* profile, and the ACP adapter reading the same profile behind Antigravity's
|
|
27
|
+
* failure reading (`antigravityFailures`).
|
|
28
|
+
*/
|
|
29
|
+
export declare function geminiHarness(options: GeminiOptions & Omit<AcpAgentOptions, "resolveLaunch">): [ProfiledAcpAgent, AdapterFactory];
|
|
30
|
+
//# sourceMappingURL=profile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/gemini/profile.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,eAAe,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE7E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAKlD,4FAA4F;AAC5F,eAAO,MAAM,iBAAiB,WAAW,CAAC;AA8B1C;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAEjD;AAwDD,8EAA8E;AAC9E,MAAM,WAAW,aAAa;IAC7B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,4EAA4E;IAC5E,cAAc,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAClD;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,UAAU,CA2BhE;AAGD;;;;GAIG;AACH,wBAAgB,aAAa,CAC5B,OAAO,EAAE,aAAa,GAAG,IAAI,CAAC,eAAe,EAAE,eAAe,CAAC,GAC7D,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAOpC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { McpTool } from "../../../protocol/index.ts";
|
|
2
|
+
import type { AcpToolRules } from "../acp/profile.ts";
|
|
3
|
+
/**
|
|
4
|
+
* The server and tool of an MCP call, against the session's own server
|
|
5
|
+
* names, the longest that fits first: Antigravity's `_` joins both and is
|
|
6
|
+
* in either, so a name it cannot tell apart that way names neither, nor do
|
|
7
|
+
* two servers it spells the same.
|
|
8
|
+
*/
|
|
9
|
+
export declare function antigravityMcpTool(name: string, servers: readonly string[]): McpTool | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* What an Antigravity tool call is beyond ACP's kind: `run_command`'s
|
|
12
|
+
* `CommandLine` is its command; an MCP tool is `mcp_<server>_<tool>` for a
|
|
13
|
+
* server the engine passed, and `call_mcp_tool` with `ServerName` and
|
|
14
|
+
* `ToolName` for one from a configuration file. Its other calls say nothing
|
|
15
|
+
* more, and nothing is guessed.
|
|
16
|
+
*/
|
|
17
|
+
export declare const antigravityToolRules: AcpToolRules;
|
|
18
|
+
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/gemini/tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAQtD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,GAAG,SAAS,CAahG;AAoDD;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,EAAE,YAUlC,CAAC"}
|
|
@@ -6,7 +6,12 @@ export interface LoginOptions {
|
|
|
6
6
|
/** Stops a status read, or a login's start, that took too long. */
|
|
7
7
|
signal?: AbortSignal;
|
|
8
8
|
}
|
|
9
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* A harness's login as its CLI says it; the runtime adds the harness and its
|
|
11
|
+
* `methods`, and names it (`accountLabel`). A CLI that names a
|
|
12
|
+
* subscription's plan itself says so in `label`, which the name keeps;
|
|
13
|
+
* otherwise it leaves `label` out.
|
|
14
|
+
*/
|
|
10
15
|
export type LoginStatus = Omit<HarnessAuth, "harness" | "methods">;
|
|
11
16
|
/** A login the CLI is running: where the user signs in, and how it ends. */
|
|
12
17
|
export interface NativeLogin {
|
|
@@ -50,11 +55,16 @@ export interface CliLogin {
|
|
|
50
55
|
/** The method a login names, refused unless the harness offers it as a login. */
|
|
51
56
|
export declare function loginMethod<M extends AuthMethod>(methods: readonly M[], id: string): M;
|
|
52
57
|
/**
|
|
53
|
-
* Signing in from a terminal with the CLI's own command.
|
|
54
|
-
*
|
|
55
|
-
* (`
|
|
58
|
+
* Signing in from a terminal with the CLI's own command. A CLI with more than
|
|
59
|
+
* one store names the variable that picks it (`store.variable`) and the
|
|
60
|
+
* environment a turn would run with (`store.env`): of it, the method takes
|
|
61
|
+
* only that variable, so the login lands where turns look. A CLI with one
|
|
62
|
+
* store names none.
|
|
56
63
|
*/
|
|
57
|
-
export declare function terminalMethod(command: string[],
|
|
64
|
+
export declare function terminalMethod(command: string[], store?: {
|
|
65
|
+
variable: string;
|
|
66
|
+
env: Record<string, string | undefined>;
|
|
67
|
+
}): AuthMethod;
|
|
58
68
|
/**
|
|
59
69
|
* Run one of a CLI's auth commands to its end, held by the lifeline and not
|
|
60
70
|
* recorded (no session waits on it): its exit code and what it wrote.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../../src/core/agents/login.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAIxE,qFAAqF;AACrF,MAAM,WAAW,YAAY;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,mEAAmE;IACnE,MAAM,CAAC,EAAE,WAAW,CAAC;CACrB;AAED
|
|
1
|
+
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../../src/core/agents/login.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAIxE,qFAAqF;AACrF,MAAM,WAAW,YAAY;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,mEAAmE;IACnE,MAAM,CAAC,EAAE,WAAW,CAAC;CACrB;AAED;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,SAAS,CAAC,CAAC;AAEnE,4EAA4E;AAC5E,MAAM,WAAW,WAAW;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,uGAAuG;IACvG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wGAAwG;IACxG,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IA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AC,UAAU,CAAC;IACvB,OAAO,EAAE,YAAY,CAAC;IACtB,MAAM,CAAC,EAAE,WAAW,CAAC;CACrB,GACC,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAoBlE"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type AgentInput, type ModelDescriptor } from "../../../protocol/index.ts";
|
|
2
2
|
import type { NativeProcesses } from "../../processes/native-processes.ts";
|
|
3
3
|
import type { AgentExecuteOptions, RawAgentEvent } from "../base.ts";
|
|
4
|
+
import { type HostTools } from "../host-tools.ts";
|
|
4
5
|
import type { CliLogin } from "../login.ts";
|
|
5
6
|
import { SessionAgent } from "../session-agent.ts";
|
|
6
7
|
import { type ScriptStep, type ScriptStepOutcome } from "./steps.ts";
|
|
@@ -34,6 +35,12 @@ export interface ScriptedAgentOptions {
|
|
|
34
35
|
* restart fences its cut-off sessions.
|
|
35
36
|
*/
|
|
36
37
|
processes?: NativeProcesses;
|
|
38
|
+
/**
|
|
39
|
+
* The host's tools (`hostTools`): a session's source is a turn's `http`
|
|
40
|
+
* MCP server at the engine's loopback, so a `call` step calls it as an
|
|
41
|
+
* agent would, each call naming the turn running then (LLP 0018).
|
|
42
|
+
*/
|
|
43
|
+
hostTools?: HostTools;
|
|
37
44
|
}
|
|
38
45
|
/** A harness that plays a script instead of a model (see the top of this file). */
|
|
39
46
|
export declare class ScriptedAgent extends SessionAgent {
|
|
@@ -58,9 +65,12 @@ export declare class ScriptedAgent extends SessionAgent {
|
|
|
58
65
|
/** Turns each session has run in this engine. */
|
|
59
66
|
private readonly turns;
|
|
60
67
|
readonly processes?: NativeProcesses;
|
|
68
|
+
private readonly host?;
|
|
69
|
+
/** Each session's running turn and its mode, as its host tools' calls read them. */
|
|
70
|
+
private readonly live;
|
|
61
71
|
constructor(options: ScriptedAgentOptions);
|
|
62
72
|
listModels(): Promise<ModelDescriptor[]>;
|
|
63
|
-
protected executeTurn(input: AgentInput,
|
|
73
|
+
protected executeTurn(input: AgentInput, given: AgentExecuteOptions, controller: AbortController): AsyncIterableIterator<RawAgentEvent>;
|
|
64
74
|
private play;
|
|
65
75
|
/**
|
|
66
76
|
* Ask the engine's permission broker about a call: the input to run (the
|
|
@@ -68,6 +78,9 @@ export declare class ScriptedAgent extends SessionAgent {
|
|
|
68
78
|
* the user cancelled the turn.
|
|
69
79
|
*/
|
|
70
80
|
private permit;
|
|
81
|
+
/** The turn's MCP servers with the host's, by the name its source gives, when it has one. */
|
|
82
|
+
private withHostTools;
|
|
71
83
|
release(sessionId: string): Promise<void>;
|
|
84
|
+
terminateAll(): Promise<void>;
|
|
72
85
|
}
|
|
73
86
|
//# sourceMappingURL=scripted-agent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scripted-agent.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/scripted/scripted-agent.ts"],"names":[],"mappings":"AAmBA,OAAO,EAEN,KAAK,UAAU,EACf,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"scripted-agent.d.ts","sourceRoot":"","sources":["../../../../../src/core/agents/scripted/scripted-agent.ts"],"names":[],"mappings":"AAmBA,OAAO,EAEN,KAAK,UAAU,EACf,KAAK,eAAe,EAKpB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAG3E,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAErE,OAAO,EAEN,KAAK,SAAS,EAGd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGnD,OAAO,EAAiB,KAAK,UAAU,EAAE,KAAK,iBAAiB,EAAY,MAAM,YAAY,CAAC;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