@opencow-ai/opencow-agent-sdk 0.4.18 → 0.4.20

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.
@@ -20,14 +20,12 @@ export type Query = AsyncIterable<SDKMessage> & {
20
20
  */
21
21
  interrupt(): Promise<void> | void;
22
22
  /**
23
- * Abort a single in-flight run_in_background sub-agent by its agentId, without
24
- * touching the main turn or other agents. The agent's AbortController is
25
- * signalled (killAsyncAgent), so its in-flight tool calls unwind cleanly.
26
- * No-op if the agent is unknown or already settled. Lets a host surface a
27
- * per-agent "stop" affordance (desktop UI) on top of the model-facing
28
- * TaskStop tool.
23
+ * Stop a single in-flight run_in_background sub-agent by its agentId without
24
+ * touching the main turn or sibling agents. Resolves after the agent's MCP
25
+ * cleanup and finalizers complete. Unknown or already-settled agents resolve
26
+ * immediately.
29
27
  */
30
- killAgent(agentId: string): void;
28
+ killAgent(agentId: string): Promise<void>;
31
29
  };
32
30
  /** @internal */
33
31
  export type InternalQuery = Query;
@@ -6,6 +6,14 @@ export declare class MalformedCommandError extends Error {
6
6
  export declare class AbortError extends Error {
7
7
  constructor(message?: string);
8
8
  }
9
+ /**
10
+ * A deterministic tool failure that the model cannot repair by retrying the
11
+ * same call. The dispatch loop returns the tool error to the client, then
12
+ * stops the current model continuation so it cannot enter a retry storm.
13
+ */
14
+ export declare class ToolContinuationStopError extends Error {
15
+ constructor(message: string, options?: ErrorOptions);
16
+ }
9
17
  /**
10
18
  * True iff `e` is any of the abort-shaped errors the codebase encounters:
11
19
  * our AbortError class, a DOMException from AbortController.abort()