@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.
- package/dist/capabilities/tools/AgentTool/AgentTool.d.ts +49 -4
- package/dist/capabilities/tools/AgentTool/agentInvocationDedupe.d.ts +7 -0
- package/dist/capabilities/tools/AgentTool/agentLifecycleFinalizer.d.ts +3 -0
- package/dist/capabilities/tools/AgentTool/inputSchema.d.ts +36 -0
- package/dist/capabilities/tools/AgentTool/worktreeIsolation.d.ts +4 -0
- package/dist/capabilities/worktree.d.ts +10 -0
- package/dist/capabilities/worktreeAvailability.d.ts +20 -0
- package/dist/cli.mjs +1189 -716
- package/dist/client.d.ts +3 -2
- package/dist/client.js +1047 -483
- package/dist/entrypoints/sdk/runtimeTypes.d.ts +5 -7
- package/dist/lib/errors.d.ts +8 -0
- package/dist/sdk.js +1047 -483
- package/dist/session/backgroundAbortRegistry.d.ts +15 -7
- package/dist/session/backgroundTaskScope.d.ts +29 -0
- package/package.json +1 -1
|
@@ -20,14 +20,12 @@ export type Query = AsyncIterable<SDKMessage> & {
|
|
|
20
20
|
*/
|
|
21
21
|
interrupt(): Promise<void> | void;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
* touching the main turn or
|
|
25
|
-
*
|
|
26
|
-
*
|
|
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;
|
package/dist/lib/errors.d.ts
CHANGED
|
@@ -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()
|