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

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;