chore: snapshot main sync
This commit is contained in:
@@ -86,8 +86,6 @@ export function toolPartToSnapshot(part: ToolPart): AcpToolSnapshot {
|
||||
};
|
||||
}
|
||||
|
||||
// ─── session.next.tool.* snapshot builders ───────────────────────────────────
|
||||
|
||||
/** `session.next.tool.called` → an in-progress tool_call snapshot. */
|
||||
export function toolCalledSnapshot(p: { callID: string; tool: string; input: unknown }): AcpToolSnapshot {
|
||||
return {
|
||||
@@ -125,8 +123,6 @@ export function toolFailedSnapshot(p: { callID: string; error: unknown }): AcpTo
|
||||
};
|
||||
}
|
||||
|
||||
// ─── message.part.* dedup gate ────────────────────────────────────────────────
|
||||
|
||||
/**
|
||||
* `message.part.delta`: mark the part as streamed (so a later `message.part.updated`
|
||||
* for the same part is deduped) and return the AgentEvent to emit, or null when the
|
||||
@@ -185,8 +181,6 @@ export function classifyUpdatedPart(part: Part, st: DedupState): AgentEvent | nu
|
||||
return null;
|
||||
}
|
||||
|
||||
// ─── shared error formatters (pure) ───────────────────────────────────────────
|
||||
|
||||
export function errMsg(e: unknown): string {
|
||||
return e instanceof Error ? e.message : String(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user