@agentclientprotocol/claude-agent-acp 0.102.1-preview.8 → 0.103.0
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/dist/message-filters.d.ts +0 -1
- package/dist/message-filters.d.ts.map +1 -1
- package/dist/message-filters.js +0 -3
- package/dist/tools.d.ts +1 -20
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +0 -20
- package/package.json +1 -1
|
@@ -7,7 +7,6 @@ export declare const LOCAL_ONLY_COMMANDS: Set<string>;
|
|
|
7
7
|
* `hi<system-reminder>…</system-reminder>` becomes `hi`.
|
|
8
8
|
*/
|
|
9
9
|
export declare function stripLocalCommandMetadata(content: unknown): unknown | null;
|
|
10
|
-
export declare function isLocalCommandMetadata(content: unknown): boolean;
|
|
11
10
|
/**
|
|
12
11
|
* True for the synthetic assistant message the CLI injects into the transcript
|
|
13
12
|
* when a turn fails authentication (e.g. "Not logged in · Please run /login",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-filters.d.ts","sourceRoot":"","sources":["../src/message-filters.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,mBAAmB,aAAqD,CAAC;AA+FtF;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,GAAG,IAAI,CAyB1E;AAED
|
|
1
|
+
{"version":3,"file":"message-filters.d.ts","sourceRoot":"","sources":["../src/message-filters.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,mBAAmB,aAAqD,CAAC;AA+FtF;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,GAAG,IAAI,CAyB1E;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,OAAO,GAAG,OAAO,CAgBpE;AAYD;;;;;;;;;GASG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAanE"}
|
package/dist/message-filters.js
CHANGED
|
@@ -129,9 +129,6 @@ export function stripLocalCommandMetadata(content) {
|
|
|
129
129
|
return null;
|
|
130
130
|
return kept;
|
|
131
131
|
}
|
|
132
|
-
export function isLocalCommandMetadata(content) {
|
|
133
|
-
return stripLocalCommandMetadata(content) === null;
|
|
134
|
-
}
|
|
135
132
|
/**
|
|
136
133
|
* True for the synthetic assistant message the CLI injects into the transcript
|
|
137
134
|
* when a turn fails authentication (e.g. "Not logged in · Please run /login",
|
package/dist/tools.d.ts
CHANGED
|
@@ -1,26 +1,7 @@
|
|
|
1
|
-
import type { PlanEntry
|
|
1
|
+
import type { PlanEntry } from "@agentclientprotocol/sdk/unstable";
|
|
2
2
|
import { HookCallback } from "@anthropic-ai/claude-agent-sdk";
|
|
3
3
|
import type { TaskCreateInput, TaskCreateOutput, TaskListOutput, TaskUpdateInput, TaskUpdateOutput } from "@anthropic-ai/claude-agent-sdk/sdk-tools.js";
|
|
4
|
-
import type { ToolResultBlock } from "./tool-calls/content.js";
|
|
5
|
-
import { type RenderedResult } from "./tool-calls/renderer.js";
|
|
6
4
|
export { markdownEscape, toDisplayPath } from "./tool-calls/content.js";
|
|
7
|
-
/**
|
|
8
|
-
* The title, kind, content, and locations of a tool use, for a client with the
|
|
9
|
-
* given terminal and patch capabilities. The {@link AcpToolCallRenderer} builds
|
|
10
|
-
* them from the facts of the tool reporter.
|
|
11
|
-
*/
|
|
12
|
-
export declare function toolInfoFromToolUse(toolUse: any, supportsTerminalOutput?: boolean, cwd?: string, supportsDiffPatch?: boolean): {
|
|
13
|
-
title: string;
|
|
14
|
-
kind: ToolKind;
|
|
15
|
-
content: ToolCallContent[];
|
|
16
|
-
locations?: ToolCallLocation[];
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* The result fields of a tool result, for a client with the given terminal
|
|
20
|
-
* capabilities. The {@link AcpToolCallRenderer} builds them from the facts of
|
|
21
|
-
* the tool reporter.
|
|
22
|
-
*/
|
|
23
|
-
export declare function toolUpdateFromToolResult(toolResult: ToolResultBlock, toolUse: any | undefined, supportsTerminalOutput?: boolean, toolUseResult?: unknown, preferTerminalOutputDelta?: boolean): RenderedResult;
|
|
24
5
|
export type ClaudePlanEntry = {
|
|
25
6
|
content: string;
|
|
26
7
|
status: "pending" | "in_progress" | "completed";
|
package/dist/tools.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,gBAAgB,EACjB,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExE,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,SAAS,GAAG,aAAa,GAAG,WAAW,CAAC;IAChD,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,WAAW,CAAC,KAAK,EAAE;IAAE,KAAK,EAAE,eAAe,EAAE,CAAA;CAAE,GAAG,SAAS,GAAG,SAAS,EAAE,CAMxF;AAED;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,SAAS,GAAG,aAAa,GAAG,WAAW,CAAC;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AACF,MAAM,MAAM,SAAS,GAAG,GAAG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AAG,IAAI,CAK9D;AAED,2EAA2E;AAC3E,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAE1D;AAED;8EAC8E;AAC9E,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAK5D;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAIxD;AAGD,eAAO,MAAM,qBAAqB,GAC/B,UAAU;IAAE,eAAe,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAAE,KAAG,YAoBtD,CAAC;AAEJ;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,GACxB,SAAS;IAAE,SAAS,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAAE,KAAG,YAsBpE,CAAC"}
|
package/dist/tools.js
CHANGED
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
import { ClientCapabilities } from "./tool-calls/client-capabilities.js";
|
|
2
|
-
import { AcpToolCallRenderer } from "./tool-calls/renderer.js";
|
|
3
1
|
export { markdownEscape, toDisplayPath } from "./tool-calls/content.js";
|
|
4
|
-
/**
|
|
5
|
-
* The title, kind, content, and locations of a tool use, for a client with the
|
|
6
|
-
* given terminal and patch capabilities. The {@link AcpToolCallRenderer} builds
|
|
7
|
-
* them from the facts of the tool reporter.
|
|
8
|
-
*/
|
|
9
|
-
export function toolInfoFromToolUse(toolUse, supportsTerminalOutput = false, cwd, supportsDiffPatch = false) {
|
|
10
|
-
const renderer = new AcpToolCallRenderer(new ClientCapabilities(supportsTerminalOutput, false, supportsDiffPatch));
|
|
11
|
-
return renderer.toolInfo({ id: toolUse?.id, name: toolUse?.name, input: toolUse?.input }, cwd);
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* The result fields of a tool result, for a client with the given terminal
|
|
15
|
-
* capabilities. The {@link AcpToolCallRenderer} builds them from the facts of
|
|
16
|
-
* the tool reporter.
|
|
17
|
-
*/
|
|
18
|
-
export function toolUpdateFromToolResult(toolResult, toolUse, supportsTerminalOutput = false, toolUseResult, preferTerminalOutputDelta = false) {
|
|
19
|
-
const renderer = new AcpToolCallRenderer(new ClientCapabilities(supportsTerminalOutput, preferTerminalOutputDelta));
|
|
20
|
-
return renderer.resultFields({ id: toolUse?.id, name: toolUse?.name ?? "", input: toolUse?.input }, toolResult, toolUseResult);
|
|
21
|
-
}
|
|
22
2
|
export function planEntries(input) {
|
|
23
3
|
return (input?.todos ?? []).map((todo) => ({
|
|
24
4
|
content: todo.status === "in_progress" && todo.activeForm ? todo.activeForm : todo.content,
|
package/package.json
CHANGED