@slopus/happy-providers 0.0.57 → 0.0.59
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/VENDOR_ANTHROPIC_BEDROCK.md +3 -1
- package/VENDOR_CLAUDE.md +13 -2
- package/dist/core/SessionTool.d.ts +11 -0
- package/dist/core/SessionTool.d.ts.map +1 -1
- package/dist/core/happyProvidersVersion.d.ts +1 -1
- package/dist/core/happyProvidersVersion.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/protocol/acp/AcpConnection.d.ts +10 -0
- package/dist/protocol/acp/AcpConnection.d.ts.map +1 -1
- package/dist/protocol/acp/AcpConnection.js +10 -1
- package/dist/protocol/acp/AcpConnection.js.map +1 -1
- package/dist/protocol/acp/AcpProvider.d.ts +16 -21
- package/dist/protocol/acp/AcpProvider.d.ts.map +1 -1
- package/dist/protocol/acp/AcpProvider.js.map +1 -1
- package/dist/protocol/acp/AcpSession.d.ts.map +1 -1
- package/dist/protocol/acp/AcpSession.js +119 -83
- package/dist/protocol/acp/AcpSession.js.map +1 -1
- package/dist/protocol/acp/acpDiscoverModels.js +3 -3
- package/dist/protocol/acp/acpDiscoverModels.js.map +1 -1
- package/dist/protocol/acp/impl/AcpToolBridgeServer.js +8 -2
- package/dist/protocol/acp/impl/AcpToolBridgeServer.js.map +1 -1
- package/dist/vendors/claude/ClaudeSession.d.ts.map +1 -1
- package/dist/vendors/claude/ClaudeSession.js +6 -2
- package/dist/vendors/claude/ClaudeSession.js.map +1 -1
- package/dist/vendors/claude/impl/createClaudeSessionReplay.d.ts.map +1 -1
- package/dist/vendors/claude/impl/createClaudeSessionReplay.js +13 -0
- package/dist/vendors/claude/impl/createClaudeSessionReplay.js.map +1 -1
- package/dist/vendors/claude/impl/fitClaudeImages.d.ts +17 -0
- package/dist/vendors/claude/impl/fitClaudeImages.d.ts.map +1 -0
- package/dist/vendors/claude/impl/fitClaudeImages.js +137 -0
- package/dist/vendors/claude/impl/fitClaudeImages.js.map +1 -0
- package/dist/vendors/claudeAgent/claudeAgentConnect.d.ts +1 -1
- package/dist/vendors/claudeAgent/claudeAgentConnect.d.ts.map +1 -1
- package/dist/vendors/claudeAgent/claudeAgentConnect.js +111 -19
- package/dist/vendors/claudeAgent/claudeAgentConnect.js.map +1 -1
- package/dist/vendors/codexAppServer/codexAppServerConnect.d.ts +1 -1
- package/dist/vendors/codexAppServer/codexAppServerConnect.d.ts.map +1 -1
- package/dist/vendors/codexAppServer/codexAppServerConnect.js +184 -37
- package/dist/vendors/codexAppServer/codexAppServerConnect.js.map +1 -1
- package/dist/vendors/foreignAgents/antigravityAgent.d.ts +4 -5
- package/dist/vendors/foreignAgents/antigravityAgent.d.ts.map +1 -1
- package/dist/vendors/foreignAgents/antigravityAgent.js +89 -25
- package/dist/vendors/foreignAgents/antigravityAgent.js.map +1 -1
- package/dist/vendors/foreignAgents/codexCliAgent.d.ts.map +1 -1
- package/dist/vendors/foreignAgents/codexCliAgent.js +5 -2
- package/dist/vendors/foreignAgents/codexCliAgent.js.map +1 -1
- package/package.json +2 -2
|
@@ -74,7 +74,9 @@ Fable 5.1 defaults to Runtime because AWS documents US and global inference prof
|
|
|
74
74
|
in-region Mantle route. Fable 5.2's model card lists only the `bedrock-runtime` endpoint, with
|
|
75
75
|
`us.anthropic.claude-fable-5-2` and `global.anthropic.claude-fable-5-2` and no in-region ID, so it
|
|
76
76
|
resolves like Fable 5.1 and the catalog hides a forced Mantle route. Both Fable models require the
|
|
77
|
-
AWS account to opt in to AWS review (`aws_review` data retention) before Bedrock serves them.
|
|
77
|
+
AWS account to opt in to AWS review (`aws_review` data retention) before Bedrock serves them.
|
|
78
|
+
Fable 5.2's Bedrock mapping follows AWS's model card and the Fable 5.1 precedent; it shipped
|
|
79
|
+
without a live Bedrock request. Opus 5.5 launched on both endpoints with the same us, eu, jp, au, and
|
|
78
80
|
global Runtime profiles as Opus 5; its Mantle ID is the bare `anthropic.claude-opus-5-5`.
|
|
79
81
|
Sonnet 5.5 also defaults to Runtime. AWS documents only its global profile,
|
|
80
82
|
`global.anthropic.claude-sonnet-5-5`, with no geo profiles, so every region resolves to that
|
package/VENDOR_CLAUDE.md
CHANGED
|
@@ -153,8 +153,19 @@ of a first turn. Stable UUIDs preserve parent ordering across a replay without w
|
|
|
153
153
|
Claude transcript to disk.
|
|
154
154
|
|
|
155
155
|
User messages and tool results may contain ordered text and base64 image blocks. Replay
|
|
156
|
-
maps them to Claude-native `text` and `image` content blocks.
|
|
157
|
-
|
|
156
|
+
maps them to Claude-native `text` and `image` content blocks. Claude Code refuses a whole
|
|
157
|
+
request before sending it when any image carries more than 5 MiB of base64 data ("Image base64
|
|
158
|
+
size (5.5MB) exceeds API limit (5MB)"). It shrinks a new prompt image itself but never one it
|
|
159
|
+
resumes from the transcript, and every rebuilt query replays the full history, so one such image
|
|
160
|
+
once failed every later turn at once. `impl/fitClaudeImages.ts` therefore projects every image
|
|
161
|
+
over 4.5 MiB of base64, in replay and in the live prompt, onto a copy bounded to 2000 pixels and
|
|
162
|
+
re-encoded, smaller and at lower quality in turn, until it fits. Copies are cached by content so
|
|
163
|
+
a rebuilt query sends the same bytes. Shrinking needs Bun's native image codec; an image that
|
|
164
|
+
cannot be decoded, or any image on another runtime, is sent as a short text note naming its size
|
|
165
|
+
once it exceeds the 5 MiB limit. The caller's history always keeps the original image. Live MCP
|
|
166
|
+
tool results stay untouched, since Claude Code downsizes those itself.
|
|
167
|
+
Assistant history includes every faithfully representable signed thinking block, followed by
|
|
168
|
+
text and tool-use blocks.
|
|
158
169
|
Each assistant content block is stored as a separate transcript entry with one shared API
|
|
159
170
|
message ID and an unbroken parent chain, matching Claude Code's native transcript shape.
|
|
160
171
|
This preserves thinking and parallel tool-use siblings when the SDK reconstructs a request.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TSchema } from "@sinclair/typebox";
|
|
2
|
+
import type { Context } from "@steve.kite/stdlib";
|
|
2
3
|
/** Lark grammar for OpenAI-style custom tool call syntax. */
|
|
3
4
|
export interface SessionToolLarkGrammar {
|
|
4
5
|
readonly type: "lark";
|
|
@@ -28,6 +29,16 @@ export interface SessionTool {
|
|
|
28
29
|
readonly defer?: boolean;
|
|
29
30
|
/** Ignored by providers that do not support grammar-based tools. */
|
|
30
31
|
readonly grammar?: SessionToolLarkGrammar;
|
|
32
|
+
/**
|
|
33
|
+
* `"never"`: no call of this tool ever needs approval, so an agent that gates tool calls with
|
|
34
|
+
* its own permission system may run it without asking.
|
|
35
|
+
*/
|
|
36
|
+
readonly autoReview?: "never";
|
|
37
|
+
/**
|
|
38
|
+
* Whether this exact call needs approval. An agent that asks before calling one of the
|
|
39
|
+
* caller's tools is answered from this; absent, every call needs approval.
|
|
40
|
+
*/
|
|
41
|
+
readonly shouldReviewInAutoMode?: (args: any, ctx: Context) => boolean | Promise<boolean>;
|
|
31
42
|
}
|
|
32
43
|
export interface SessionToolsOptions {
|
|
33
44
|
readonly tools?: readonly SessionTool[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionTool.d.ts","sourceRoot":"","sources":["../../sources/core/SessionTool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"SessionTool.d.ts","sourceRoot":"","sources":["../../sources/core/SessionTool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,6DAA6D;AAC7D,MAAM,WAAW,sBAAsB;IACnC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC5B;AAED,iGAAiG;AACjG,MAAM,WAAW,WAAW;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,6EAA6E;IAC7E,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IACvC;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAC7E,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,yEAAyE;IACzE,QAAQ,CAAC,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5C,kFAAkF;IAClF,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,oEAAoE;IACpE,QAAQ,CAAC,OAAO,CAAC,EAAE,sBAAsB,CAAC;IAC1C;;;OAGG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,sBAAsB,CAAC,EAAE,CAE9B,IAAI,EAAE,GAAG,EACT,GAAG,EAAE,OAAO,KACX,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,mBAAmB;IAChC,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,WAAW,EAAE,CAAC;CAC3C"}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* where a compiled binary has no `package.json` to read. A test keeps it equal to the package's own
|
|
4
4
|
* version, so a release that bumps one without the other fails before it publishes.
|
|
5
5
|
*/
|
|
6
|
-
export declare const HAPPY_PROVIDERS_VERSION = "0.0.
|
|
6
|
+
export declare const HAPPY_PROVIDERS_VERSION = "0.0.59";
|
|
7
7
|
//# sourceMappingURL=happyProvidersVersion.d.ts.map
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* where a compiled binary has no `package.json` to read. A test keeps it equal to the package's own
|
|
4
4
|
* version, so a release that bumps one without the other fails before it publishes.
|
|
5
5
|
*/
|
|
6
|
-
export const HAPPY_PROVIDERS_VERSION = "0.0.
|
|
6
|
+
export const HAPPY_PROVIDERS_VERSION = "0.0.59";
|
|
7
7
|
//# sourceMappingURL=happyProvidersVersion.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ export { GrokApiKeyCredential, type GrokApiKeyCredentialLoadOptions, type GrokAp
|
|
|
71
71
|
export { GrokSessionCredential, type GrokSessionCredentialLoadOptions, type GrokSessionCredentialValue, } from "./vendors/grok/GrokSessionCredential.js";
|
|
72
72
|
export type { AnthropicCredential, BedrockCredential, ClaudeCredential, CodexCredential, CodexProviderCredential, GeminiCredential, GrokCredential, VendorCredential, } from "./vendors/VendorCredential.js";
|
|
73
73
|
export { tryLoadCredentials, type TryLoadCredentialsOptions, } from "./vendors/tryLoadCredentials.js";
|
|
74
|
-
export { AcpProvider, type AcpAgentLaunch, type AcpAgentProfile, type
|
|
74
|
+
export { AcpProvider, type AcpAgentLaunch, type AcpAgentProfile, type AcpConfigOptionValue, type AcpPermissionAnswer, type AcpPermissionMode, type AcpPermissionQuestion, type AcpProviderOptions, type AcpTurnEnvironment, } from "./protocol/acp/AcpProvider.js";
|
|
75
75
|
export { AcpSession, type AcpSessionOptions } from "./protocol/acp/AcpSession.js";
|
|
76
76
|
export { acpDiscoverModels } from "./protocol/acp/acpDiscoverModels.js";
|
|
77
77
|
export type { AcpSelectValue } from "./protocol/acp/impl/acpConfigOptions.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../sources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,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CAAC;AAClD,OAAO,EACH,qBAAqB,EACrB,KAAK,gCAAgC,EACrC,KAAK,0BAA0B,GAClC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACH,qBAAqB,EACrB,KAAK,gCAAgC,EACrC,KAAK,0BAA0B,GAClC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACH,sBAAsB,EACtB,KAAK,iCAAiC,EACtC,KAAK,2BAA2B,GACnC,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACH,mBAAmB,EACnB,KAAK,0BAA0B,GAClC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACH,sBAAsB,EACtB,KAAK,iCAAiC,EACtC,KAAK,2BAA2B,GACnC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACH,oBAAoB,EACpB,KAAK,+BAA+B,EACpC,KAAK,yBAAyB,GACjC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACH,qBAAqB,EACrB,KAAK,gCAAgC,EACrC,KAAK,0BAA0B,GAClC,MAAM,yCAAyC,CAAC;AACjD,YAAY,EACR,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,cAAc,EACd,gBAAgB,GACnB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACH,kBAAkB,EAClB,KAAK,yBAAyB,GACjC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACH,WAAW,EACX,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../sources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,YAAY,EACR,aAAa,EACb,m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Y,EAAE,MAAM,0CAA0C,CAAC"}
|
|
@@ -36,6 +36,16 @@ export interface AcpConnection {
|
|
|
36
36
|
*/
|
|
37
37
|
terminate(groups?: readonly number[]): void;
|
|
38
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* `_meta` key on a new, resumed or loaded session: the names of the bridged Happy tools the agent
|
|
41
|
+
* may call without asking, because no call of them ever needs approval.
|
|
42
|
+
*/
|
|
43
|
+
export declare const ACP_APPROVED_TOOLS_META = "happy/approvedTools";
|
|
44
|
+
/**
|
|
45
|
+
* `_meta` key on a permission request's `toolCall` when the agent asks before calling one of
|
|
46
|
+
* Happy's bridged tools: `{ name, arguments }` of that call.
|
|
47
|
+
*/
|
|
48
|
+
export declare const ACP_BRIDGED_CALL_META = "happy/bridgedCall";
|
|
39
49
|
/** Start a foreign agent working in `cwd` that reports to `client`. */
|
|
40
50
|
export type AcpConnect = (cwd: string, client: acp.Client) => Promise<AcpConnection>;
|
|
41
51
|
//# sourceMappingURL=AcpConnection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcpConnection.d.ts","sourceRoot":"","sources":["../../../sources/protocol/acp/AcpConnection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,GAAG,MAAM,0BAA0B,CAAC;AAErD;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IAC/B,UAAU,CAAC,MAAM,EAAE,GAAG,CAAC,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;IAC3E,WAAW,CAAC,MAAM,EAAE,GAAG,CAAC,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;IAC9E,aAAa,CAAC,MAAM,EAAE,GAAG,CAAC,oBAAoB,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;IACpF,sBAAsB,CAClB,MAAM,EAAE,GAAG,CAAC,6BAA6B,GAC1C,OAAO,CAAC,GAAG,CAAC,8BA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zD,uEAAuE;AACvE,MAAM,MAAM,UAAU,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,KAAK,OAAO,CAAC,aAAa,CAAC,CAAC"}
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* `_meta` key on a new, resumed or loaded session: the names of the bridged Happy tools the agent
|
|
3
|
+
* may call without asking, because no call of them ever needs approval.
|
|
4
|
+
*/
|
|
5
|
+
export const ACP_APPROVED_TOOLS_META = "happy/approvedTools";
|
|
6
|
+
/**
|
|
7
|
+
* `_meta` key on a permission request's `toolCall` when the agent asks before calling one of
|
|
8
|
+
* Happy's bridged tools: `{ name, arguments }` of that call.
|
|
9
|
+
*/
|
|
10
|
+
export const ACP_BRIDGED_CALL_META = "happy/bridgedCall";
|
|
2
11
|
//# sourceMappingURL=AcpConnection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcpConnection.js","sourceRoot":"","sources":["../../../sources/protocol/acp/AcpConnection.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"AcpConnection.js","sourceRoot":"","sources":["../../../sources/protocol/acp/AcpConnection.ts"],"names":[],"mappings":"AA2CA;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,qBAAqB,CAAC;AAE7D;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,mBAAmB,CAAC"}
|
|
@@ -13,10 +13,24 @@ export interface AcpAgentLaunch {
|
|
|
13
13
|
}
|
|
14
14
|
/** The access the hosting agent currently grants, in Happy's four permission modes. */
|
|
15
15
|
export type AcpPermissionMode = "read_only" | "workspace_write" | "auto" | "full_access";
|
|
16
|
+
/** An action the foreign agent's own permission system wants a person to decide on. */
|
|
17
|
+
export interface AcpPermissionQuestion {
|
|
18
|
+
/** What the agent wants to do, in its own words: a command, a path, a tool call. */
|
|
19
|
+
readonly action: string;
|
|
20
|
+
/** Whether the agent offers to allow such actions for the rest of its session. */
|
|
21
|
+
readonly allowForSession: boolean;
|
|
22
|
+
}
|
|
23
|
+
/** The person's decision; `cancelled` when the question was withdrawn before they answered. */
|
|
24
|
+
export type AcpPermissionAnswer = "allow_once" | "allow_for_session" | "deny" | "cancelled";
|
|
16
25
|
/** Where and under what permission one turn of the foreign agent runs. */
|
|
17
26
|
export interface AcpTurnEnvironment {
|
|
18
27
|
readonly cwd: string;
|
|
19
28
|
readonly permissionMode?: AcpPermissionMode;
|
|
29
|
+
/**
|
|
30
|
+
* Put an action the agent asked about to the person. `signal` aborts when the turn stops and
|
|
31
|
+
* the question must be withdrawn. Without it, an ask the mode leaves open is refused.
|
|
32
|
+
*/
|
|
33
|
+
readonly askPermission?: (question: AcpPermissionQuestion, signal: AbortSignal) => Promise<AcpPermissionAnswer>;
|
|
20
34
|
}
|
|
21
35
|
/** One ACP session configuration option to set before a prompt. */
|
|
22
36
|
export interface AcpConfigOptionValue {
|
|
@@ -28,34 +42,15 @@ export interface AcpConfigOptionValue {
|
|
|
28
42
|
readonly category?: string;
|
|
29
43
|
readonly value: string | boolean;
|
|
30
44
|
}
|
|
31
|
-
/** Files to place in a private directory the foreign agent is given as an extra workspace root. */
|
|
32
|
-
export interface AcpBridgeDirectoryFile {
|
|
33
|
-
readonly path: string;
|
|
34
|
-
readonly content: string;
|
|
35
|
-
}
|
|
36
45
|
/**
|
|
37
|
-
* What differs between foreign agents. ACP fixes the wire; each agent still names its models
|
|
38
|
-
* maps permission
|
|
46
|
+
* What differs between foreign agents. ACP fixes the wire; each agent still names its models and
|
|
47
|
+
* maps permission in its own way.
|
|
39
48
|
*/
|
|
40
49
|
export interface AcpAgentProfile {
|
|
41
50
|
/** The agent's config-option values for the selected Happy model and effort. */
|
|
42
51
|
readonly modelOptions?: (model: string | undefined, effort: SessionReasoningEffort | undefined) => readonly AcpConfigOptionValue[];
|
|
43
52
|
/** The agent's config-option values that best match a Happy permission mode. */
|
|
44
53
|
readonly permissionOptions?: (mode: AcpPermissionMode) => readonly AcpConfigOptionValue[];
|
|
45
|
-
/**
|
|
46
|
-
* For agents that ignore ACP `mcpServers`: files that make the bridge discoverable when the
|
|
47
|
-
* directory holding them is passed as an additional workspace directory.
|
|
48
|
-
*/
|
|
49
|
-
readonly bridgeDirectoryFiles?: (bridge: {
|
|
50
|
-
readonly name: string;
|
|
51
|
-
readonly url: string;
|
|
52
|
-
readonly headers: Readonly<Record<string, string>>;
|
|
53
|
-
}) => readonly AcpBridgeDirectoryFile[];
|
|
54
|
-
/**
|
|
55
|
-
* For agents that bind a new session to whichever native conversation appears next in a
|
|
56
|
-
* shared store: only one new session's first prompt runs at a time, so two cannot swap.
|
|
57
|
-
*/
|
|
58
|
-
readonly serializeNewSessions?: boolean;
|
|
59
54
|
}
|
|
60
55
|
export interface AcpProviderOptions {
|
|
61
56
|
/** The ACP server to start, when the agent is not reached through `connect`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcpProvider.d.ts","sourceRoot":"","sources":["../../../sources/protocol/acp/AcpProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE1D,yFAAyF;AACzF,MAAM,WAAW,cAAc;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAA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E,MAAM,CAAS;IAC9C,gBAAyB,UAAU,EAAE,SAAS,gBAAgB,EAAE,CAAqB;IACrF,gBAAyB,WAAW,EAAE,SAAS,gBAAgB,EAAE,CAAY;IAE7E,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC;IAErC,YAAY,OAAO,EAAE,kBAAkB,EAGtC;IAEc,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,CAM/E;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcpProvider.js","sourceRoot":"","sources":["../../../sources/protocol/acp/AcpProvider.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAKtD,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"AcpProvider.js","sourceRoot":"","sources":["../../../sources/protocol/acp/AcpProvider.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAKtD,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AA0E1D;;;;;;GAMG;AACH,MAAM,OAAO,WAAY,SAAQ,YAAY;IACzC,MAAM,CAAmB,IAAI,GAAW,KAAK,CAAC;IAC9C,MAAM,CAAmB,UAAU,GAAgC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrF,MAAM,CAAmB,WAAW,GAAgC,CAAC,MAAM,CAAC,CAAC;IAEpE,OAAO,CAAqB;IAErC,YAAY,OAA2B;QACnC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAEQ,KAAK,CAAC,OAAO,CAAC,EAAU,EAAE,OAAuB;QACtD,OAAO,IAAI,UAAU,CAAC,EAAE,EAAE;YACtB,GAAG,IAAI,CAAC,OAAO;YACf,YAAY,EAAE,OAAO,CAAC,YAAY;YAClC,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,EAAE;SAC7B,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcpSession.d.ts","sourceRoot":"","sources":["../../../sources/protocol/acp/AcpSession.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AcpSession.d.ts","sourceRoot":"","sources":["../../../sources/protocol/acp/AcpSession.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE/F,OAAO,KAAK,EAAgB,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,KAAK,EAGR,kBAAkB,EAErB,MAAM,+BAA+B,CAAC;AA6BvC,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB;IACzD,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,CAAC;CAC1C;AA+CD;;;;;;GAMG;AACH,qBAAa,UAAW,SAAQ,WAAW;;IAkCvC,YAAY,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAKjD;IAED,GAAG,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,iBAAiB,GAAG,aAAa,CAmB3D;IAEK,OAAO,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAazF;IAED,OAAO,IAAI,IAAI,CASd;CA4oBJ"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { mkdir, writeFile } from "node:fs/promises";
|
|
2
|
-
import { dirname, join } from "node:path";
|
|
3
1
|
import { BaseSession } from "../../core/BaseSession.js";
|
|
4
2
|
import { acpCompactWithAgent } from "../../protocol/acp/impl/acpCompactWithAgent.js";
|
|
3
|
+
import { ACP_APPROVED_TOOLS_META, ACP_BRIDGED_CALL_META, } from "../../protocol/acp/AcpConnection.js";
|
|
5
4
|
import { acpConnectionSpawn } from "../../protocol/acp/impl/acpConnectionSpawn.js";
|
|
6
5
|
import { acpCatchUpPrompt, acpPromptFromMessages, acpReplayPrompt, } from "../../protocol/acp/impl/acpPromptFromMessages.js";
|
|
7
6
|
import { ACP_BRIDGE_NAME, AcpResponseEvents } from "../../protocol/acp/impl/acpResponseEvents.js";
|
|
@@ -12,26 +11,16 @@ import { acpAcceptsConfigValue, acpConfigOptionId } from "../../protocol/acp/imp
|
|
|
12
11
|
const PREVIOUS_PROMPT_GRACE_MS = 10_000;
|
|
13
12
|
/** How long a cancelled agent gets to end its prompt and save its session before it is stopped. */
|
|
14
13
|
const CANCEL_GRACE_MS = 2_000;
|
|
15
|
-
/** The longest a new session waits for the one before it to bind its native conversation. */
|
|
16
|
-
const NEW_SESSION_GATE_MS = 60_000;
|
|
17
14
|
/**
|
|
18
15
|
* Waits before sending a prompt the agent's service refused as too many requests again. Agents
|
|
19
16
|
* retry only briefly themselves, and a burst — a restarted agent's first request, or several
|
|
20
17
|
* sessions on one account at once — clears within seconds.
|
|
21
18
|
*/
|
|
22
19
|
const RATE_LIMIT_RETRY_MS = [3_000, 10_000, 30_000];
|
|
20
|
+
/** The most of an ask's raw input shown to the person, in characters. */
|
|
21
|
+
const MAX_ACTION_INPUT = 50_000;
|
|
23
22
|
const ABORTED = Symbol("acp_aborted");
|
|
24
23
|
const STEERED = Symbol("acp_steered");
|
|
25
|
-
/** Updates an agent can only send from inside a turn, once it has a conversation to report. */
|
|
26
|
-
const TURN_CONTENT_UPDATES = new Set([
|
|
27
|
-
"agent_message_chunk",
|
|
28
|
-
"agent_thought_chunk",
|
|
29
|
-
"tool_call",
|
|
30
|
-
"tool_call_update",
|
|
31
|
-
"plan",
|
|
32
|
-
]);
|
|
33
|
-
/** The first prompt of the last new session started per agent profile, for agents that need it. */
|
|
34
|
-
const newSessionPrompts = new WeakMap();
|
|
35
24
|
/**
|
|
36
25
|
* A Happy conversation continued inside a foreign agent's own ACP session.
|
|
37
26
|
*
|
|
@@ -60,11 +49,11 @@ export class AcpSession extends BaseSession {
|
|
|
60
49
|
/** Settles once a stopped agent process has exited, so its successor never overlaps it. */
|
|
61
50
|
#stopping = Promise.resolve();
|
|
62
51
|
#replaying = false;
|
|
63
|
-
/**
|
|
64
|
-
#
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
#
|
|
52
|
+
/** What the latest run was given: its permission mode and how to reach the person. */
|
|
53
|
+
#environment;
|
|
54
|
+
#runCtx;
|
|
55
|
+
/** Questions put to the person that the agent is still waiting on. */
|
|
56
|
+
#asks = new Set();
|
|
68
57
|
#bridge;
|
|
69
58
|
#applied = new Map();
|
|
70
59
|
/** The configuration options the foreign session last advertised. */
|
|
@@ -126,7 +115,8 @@ export class AcpSession extends BaseSession {
|
|
|
126
115
|
return;
|
|
127
116
|
}
|
|
128
117
|
const environment = this.#options.environment(ctx);
|
|
129
|
-
this.#
|
|
118
|
+
this.#environment = environment;
|
|
119
|
+
this.#runCtx = ctx;
|
|
130
120
|
yield { type: "block_start" };
|
|
131
121
|
let connection;
|
|
132
122
|
let turn;
|
|
@@ -361,7 +351,6 @@ export class AcpSession extends BaseSession {
|
|
|
361
351
|
// A stopped agent was already detached; its exit belongs to no current turn.
|
|
362
352
|
if (this.#connection !== connection)
|
|
363
353
|
return;
|
|
364
|
-
this.#openNewSessionGate();
|
|
365
354
|
this.#turn?.items.push({ kind: "prompt_error", error });
|
|
366
355
|
this.#connection = undefined;
|
|
367
356
|
this.#acpSessionId = undefined;
|
|
@@ -381,11 +370,6 @@ export class AcpSession extends BaseSession {
|
|
|
381
370
|
sessionUpdate: async (params) => {
|
|
382
371
|
if (this.#replaying || params.sessionId !== this.#acpSessionId)
|
|
383
372
|
return;
|
|
384
|
-
// Session-level notices arrive before the agent has a conversation; only turn
|
|
385
|
-
// content proves it bound one.
|
|
386
|
-
if (TURN_CONTENT_UPDATES.has(params.update.sessionUpdate)) {
|
|
387
|
-
this.#openNewSessionGate();
|
|
388
|
-
}
|
|
389
373
|
if (params.update.sessionUpdate === "config_option_update") {
|
|
390
374
|
this.#advertised = params.update.configOptions;
|
|
391
375
|
}
|
|
@@ -422,7 +406,7 @@ export class AcpSession extends BaseSession {
|
|
|
422
406
|
const response = await connection.conn.newSession({
|
|
423
407
|
cwd: environment.cwd,
|
|
424
408
|
mcpServers: await this.#mcpServers(connection),
|
|
425
|
-
|
|
409
|
+
_meta: this.#sessionMeta(),
|
|
426
410
|
});
|
|
427
411
|
this.#acpSessionId = response.sessionId;
|
|
428
412
|
this.#advertised = response.configOptions ?? undefined;
|
|
@@ -431,7 +415,6 @@ export class AcpSession extends BaseSession {
|
|
|
431
415
|
this.#record = undefined;
|
|
432
416
|
// The replaced session must not be continued by a later process before this one is kept.
|
|
433
417
|
await acpSessionRecordClear(this.#options.stateDirectory, this.id, ctx);
|
|
434
|
-
this.#unprompted = true;
|
|
435
418
|
let lastResponse = -1;
|
|
436
419
|
messages.forEach((message, index) => {
|
|
437
420
|
if (message.role === "assistant")
|
|
@@ -445,7 +428,7 @@ export class AcpSession extends BaseSession {
|
|
|
445
428
|
sessionId: record.acpSessionId,
|
|
446
429
|
cwd: environment.cwd,
|
|
447
430
|
mcpServers: await this.#mcpServers(connection),
|
|
448
|
-
|
|
431
|
+
_meta: this.#sessionMeta(),
|
|
449
432
|
};
|
|
450
433
|
try {
|
|
451
434
|
if (capabilities?.sessionCapabilities?.resume != null) {
|
|
@@ -520,23 +503,13 @@ export class AcpSession extends BaseSession {
|
|
|
520
503
|
},
|
|
521
504
|
];
|
|
522
505
|
}
|
|
523
|
-
/**
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
for (const file of files({
|
|
531
|
-
name: ACP_BRIDGE_NAME,
|
|
532
|
-
url: bridge.url,
|
|
533
|
-
headers: bridge.headers,
|
|
534
|
-
})) {
|
|
535
|
-
const path = join(directory, file.path);
|
|
536
|
-
await mkdir(dirname(path), { recursive: true, mode: 0o700 });
|
|
537
|
-
await writeFile(path, file.content, { mode: 0o600 });
|
|
538
|
-
}
|
|
539
|
-
return { additionalDirectories: [directory] };
|
|
506
|
+
/** The bridged tools the agent may call without asking: those no call of needs approval. */
|
|
507
|
+
#sessionMeta() {
|
|
508
|
+
return {
|
|
509
|
+
[ACP_APPROVED_TOOLS_META]: this.#bridgedTools
|
|
510
|
+
.filter((tool) => tool.autoReview === "never")
|
|
511
|
+
.map((tool) => AcpToolBridgeServer.toolName(tool)),
|
|
512
|
+
};
|
|
540
513
|
}
|
|
541
514
|
async #ensureBridge() {
|
|
542
515
|
if (this.#bridgedTools.length === 0)
|
|
@@ -569,28 +542,8 @@ export class AcpSession extends BaseSession {
|
|
|
569
542
|
}
|
|
570
543
|
#sendPrompt(connection, turn, prompt) {
|
|
571
544
|
const sessionId = this.#acpSessionId;
|
|
572
|
-
const profile = this.#options.profile;
|
|
573
545
|
turn.sent = prompt;
|
|
574
|
-
|
|
575
|
-
if (this.#unprompted && profile?.serializeNewSessions === true) {
|
|
576
|
-
// The agent has bound its native conversation once it reports anything, so the next
|
|
577
|
-
// new session waits only for that, never for a whole turn that may itself wait on it.
|
|
578
|
-
const before = newSessionPrompts.get(profile) ?? Promise.resolve();
|
|
579
|
-
let release;
|
|
580
|
-
const bound = new Promise((resolve) => (release = resolve));
|
|
581
|
-
this.#releaseNewSession = release;
|
|
582
|
-
newSessionPrompts.set(profile, bound);
|
|
583
|
-
send = async () => {
|
|
584
|
-
// Bounded, so a session that went quiet without ever binding cannot hold every
|
|
585
|
-
// later one forever.
|
|
586
|
-
await settleWithin(before, NEW_SESSION_GATE_MS);
|
|
587
|
-
const response = connection.conn.prompt({ sessionId, prompt });
|
|
588
|
-
void response.finally(release).catch(() => undefined);
|
|
589
|
-
return await response;
|
|
590
|
-
};
|
|
591
|
-
}
|
|
592
|
-
this.#unprompted = false;
|
|
593
|
-
this.#previousPrompt = send().then(async (response) => {
|
|
546
|
+
this.#previousPrompt = connection.conn.prompt({ sessionId, prompt }).then(async (response) => {
|
|
594
547
|
// An agent that answered a prompt has saved its session, so where this
|
|
595
548
|
// conversation stands in it may now outlive the agent's process.
|
|
596
549
|
//
|
|
@@ -609,8 +562,15 @@ export class AcpSession extends BaseSession {
|
|
|
609
562
|
await this.#writeRecord(this.#record).catch(() => undefined);
|
|
610
563
|
}
|
|
611
564
|
}
|
|
565
|
+
// A prompt that ended waits on nothing it asked.
|
|
566
|
+
if (this.#turn === turn)
|
|
567
|
+
this.#withdrawAsks();
|
|
612
568
|
turn.items.push({ kind: "prompt_end", response });
|
|
613
|
-
}, (error) =>
|
|
569
|
+
}, (error) => {
|
|
570
|
+
if (this.#turn === turn)
|
|
571
|
+
this.#withdrawAsks();
|
|
572
|
+
turn.items.push({ kind: "prompt_error", error });
|
|
573
|
+
});
|
|
614
574
|
}
|
|
615
575
|
#cancelTurn(connection) {
|
|
616
576
|
if (this.#turn === undefined)
|
|
@@ -649,9 +609,14 @@ export class AcpSession extends BaseSession {
|
|
|
649
609
|
this.#record = undefined;
|
|
650
610
|
}
|
|
651
611
|
}
|
|
612
|
+
#withdrawAsks() {
|
|
613
|
+
for (const ask of this.#asks)
|
|
614
|
+
ask.abort();
|
|
615
|
+
this.#asks.clear();
|
|
616
|
+
}
|
|
652
617
|
#abandonTurn() {
|
|
653
|
-
//
|
|
654
|
-
this.#
|
|
618
|
+
// The agent stops waiting on what it asked; each open question is withdrawn.
|
|
619
|
+
this.#withdrawAsks();
|
|
655
620
|
const turn = this.#turn;
|
|
656
621
|
this.#turn = undefined;
|
|
657
622
|
if (turn === undefined)
|
|
@@ -664,10 +629,6 @@ export class AcpSession extends BaseSession {
|
|
|
664
629
|
}
|
|
665
630
|
turn.awaiting.clear();
|
|
666
631
|
}
|
|
667
|
-
#openNewSessionGate() {
|
|
668
|
-
this.#releaseNewSession?.();
|
|
669
|
-
this.#releaseNewSession = undefined;
|
|
670
|
-
}
|
|
671
632
|
async #commit(messages) {
|
|
672
633
|
if (this.#acpSessionId === undefined || this.#cwd === undefined)
|
|
673
634
|
return;
|
|
@@ -686,15 +647,61 @@ export class AcpSession extends BaseSession {
|
|
|
686
647
|
async #writeRecord(record) {
|
|
687
648
|
await acpSessionRecordWrite(this.#options.stateDirectory, this.id, record);
|
|
688
649
|
}
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
650
|
+
/**
|
|
651
|
+
* The agent's own permission system asks before acting. Read only refuses and Full access
|
|
652
|
+
* allows without asking anyone. Otherwise a call of a bridged Happy tool that its own rule says
|
|
653
|
+
* needs no approval goes ahead in Workspace write, and everything else is put to the person.
|
|
654
|
+
*/
|
|
655
|
+
async #answerPermission(params) {
|
|
656
|
+
const environment = this.#environment;
|
|
657
|
+
const mode = environment?.permissionMode;
|
|
658
|
+
if (mode === "read_only")
|
|
659
|
+
return pick(params, "deny");
|
|
660
|
+
if (mode === "full_access") {
|
|
661
|
+
// Once when it can, else for the session: Full access never refuses for want of it.
|
|
662
|
+
const once = params.options.some((option) => option.kind === "allow_once");
|
|
663
|
+
return pick(params, once ? "allow_once" : "allow_for_session");
|
|
664
|
+
}
|
|
665
|
+
if (mode === "workspace_write" && (await this.#needsNoApproval(params))) {
|
|
666
|
+
return pick(params, "allow_once");
|
|
667
|
+
}
|
|
668
|
+
const ask = environment?.askPermission;
|
|
669
|
+
if (ask === undefined)
|
|
670
|
+
return pick(params, "deny");
|
|
671
|
+
// A stopped or finished turn has nobody to ask on its behalf.
|
|
672
|
+
if (this.#turn === undefined)
|
|
673
|
+
return pick(params, "cancelled");
|
|
674
|
+
const withdrawn = new AbortController();
|
|
675
|
+
this.#asks.add(withdrawn);
|
|
676
|
+
try {
|
|
677
|
+
const answer = await ask({
|
|
678
|
+
action: permissionAction(params.toolCall),
|
|
679
|
+
allowForSession: params.options.some((option) => option.kind === "allow_always"),
|
|
680
|
+
}, withdrawn.signal);
|
|
681
|
+
return withdrawn.signal.aborted ? pick(params, "cancelled") : pick(params, answer);
|
|
682
|
+
}
|
|
683
|
+
catch {
|
|
684
|
+
return pick(params, withdrawn.signal.aborted ? "cancelled" : "deny");
|
|
685
|
+
}
|
|
686
|
+
finally {
|
|
687
|
+
this.#asks.delete(withdrawn);
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
/** Whether the ask is about a bridged Happy tool call that its own rule lets through. */
|
|
691
|
+
async #needsNoApproval(params) {
|
|
692
|
+
const call = params.toolCall._meta?.[ACP_BRIDGED_CALL_META];
|
|
693
|
+
const tool = this.#bridgedTools.find((candidate) => AcpToolBridgeServer.toolName(candidate) === call?.name);
|
|
694
|
+
if (tool === undefined || this.#runCtx === undefined)
|
|
695
|
+
return false;
|
|
696
|
+
if (tool.autoReview === "never")
|
|
697
|
+
return true;
|
|
698
|
+
try {
|
|
699
|
+
return ((await tool.shouldReviewInAutoMode?.(call?.arguments ?? {}, this.#runCtx)) === false);
|
|
700
|
+
}
|
|
701
|
+
catch {
|
|
702
|
+
// A rule that cannot answer has not said the call is safe.
|
|
703
|
+
return false;
|
|
704
|
+
}
|
|
698
705
|
}
|
|
699
706
|
#usage(response, outputCharacters) {
|
|
700
707
|
const reported = response?.usage ?? undefined;
|
|
@@ -780,4 +787,33 @@ async function settleWithin(promise, ms) {
|
|
|
780
787
|
new Promise((resolve) => setTimeout(resolve, ms).unref()),
|
|
781
788
|
]);
|
|
782
789
|
}
|
|
790
|
+
/** The agent's option for an answer, or a cancelled outcome when it offers none that fits. */
|
|
791
|
+
function pick(params, answer) {
|
|
792
|
+
if (answer === "cancelled")
|
|
793
|
+
return { outcome: { outcome: "cancelled" } };
|
|
794
|
+
const kinds = answer === "allow_for_session"
|
|
795
|
+
? ["allow_always", "allow_once"]
|
|
796
|
+
: answer === "allow_once"
|
|
797
|
+
? ["allow_once"]
|
|
798
|
+
: ["reject_once", "reject_always"];
|
|
799
|
+
for (const kind of kinds) {
|
|
800
|
+
const option = params.options.find((candidate) => candidate.kind === kind);
|
|
801
|
+
if (option !== undefined) {
|
|
802
|
+
return { outcome: { outcome: "selected", optionId: option.optionId } };
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
return { outcome: { outcome: "cancelled" } };
|
|
806
|
+
}
|
|
807
|
+
/** The action an ask is about, as the agent described it; a long input is cut short. */
|
|
808
|
+
function permissionAction(toolCall) {
|
|
809
|
+
const title = toolCall.title?.trim();
|
|
810
|
+
const raw = toolCall.rawInput === undefined || toolCall.rawInput === null
|
|
811
|
+
? undefined
|
|
812
|
+
: JSON.stringify(toolCall.rawInput);
|
|
813
|
+
const input = raw !== undefined && raw.length > MAX_ACTION_INPUT
|
|
814
|
+
? `${raw.slice(0, MAX_ACTION_INPUT)}… (${raw.length - MAX_ACTION_INPUT} more characters not shown)`
|
|
815
|
+
: raw;
|
|
816
|
+
const text = [title, input].filter((part) => part !== undefined && part.length > 0).join("\n");
|
|
817
|
+
return text.length === 0 ? "An action the agent did not describe." : text;
|
|
818
|
+
}
|
|
783
819
|
//# sourceMappingURL=AcpSession.js.map
|