mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 12:17:40 +00:00
ACP: carry dedupe/projector updates onto configurable acpx branch
This commit is contained in:
@@ -2,6 +2,19 @@ export type AcpRuntimePromptMode = "prompt" | "steer";
|
||||
|
||||
export type AcpRuntimeSessionMode = "persistent" | "oneshot";
|
||||
|
||||
export type AcpSessionUpdateTag =
|
||||
| "agent_message_chunk"
|
||||
| "agent_thought_chunk"
|
||||
| "tool_call"
|
||||
| "tool_call_update"
|
||||
| "usage_update"
|
||||
| "available_commands_update"
|
||||
| "current_mode_update"
|
||||
| "config_option_update"
|
||||
| "session_info_update"
|
||||
| "plan"
|
||||
| (string & {});
|
||||
|
||||
export type AcpRuntimeControl = "session/set_mode" | "session/set_config_option" | "session/status";
|
||||
|
||||
export type AcpRuntimeHandle = {
|
||||
@@ -67,14 +80,22 @@ export type AcpRuntimeEvent =
|
||||
type: "text_delta";
|
||||
text: string;
|
||||
stream?: "output" | "thought";
|
||||
tag?: AcpSessionUpdateTag;
|
||||
}
|
||||
| {
|
||||
type: "status";
|
||||
text: string;
|
||||
tag?: AcpSessionUpdateTag;
|
||||
used?: number;
|
||||
size?: number;
|
||||
}
|
||||
| {
|
||||
type: "tool_call";
|
||||
text: string;
|
||||
tag?: AcpSessionUpdateTag;
|
||||
toolCallId?: string;
|
||||
status?: string;
|
||||
title?: string;
|
||||
}
|
||||
| {
|
||||
type: "done";
|
||||
|
||||
Reference in New Issue
Block a user