@opencow-ai/opencow-agent-sdk 0.4.13 → 0.4.15

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.
@@ -15,6 +15,16 @@ export type PermissionPromptTool = Tool<ReturnType<typeof permissionToolInputSch
15
15
  * (model chose to emit no content blocks)
16
16
  */
17
17
  export declare function isResultSuccessful(message: Message | undefined, stopReason?: string | null): message is Message;
18
+ export declare const ERROR_DURING_EXECUTION_DIAGNOSTIC_PREFIX = "[ede_diagnostic]";
19
+ export declare function buildErrorDuringExecutionDiagnostic({ resultType, lastContentType, stopReason, }: {
20
+ resultType: string;
21
+ lastContentType: string;
22
+ stopReason: string | null;
23
+ }): string;
24
+ export declare function buildErrorDuringExecutionErrors({ recentErrors, stopReason, }: {
25
+ recentErrors: string[];
26
+ stopReason: string | null;
27
+ }): string[];
18
28
  export declare function normalizeMessage(message: Message): Generator<SDKMessage>;
19
29
  export declare function handleOrphanedPermission(orphanedPermission: OrphanedPermission, tools: Tools, mutableMessages: Message[], processUserInputContext: ProcessUserInputContext): AsyncGenerator<SDKMessage, void, unknown>;
20
30
  export declare function extractReadFilesFromMessages(messages: Message[], cwd: string, maxSize?: number): FileStateCache;
@@ -46,7 +46,7 @@ export type SideQueryOptions = {
46
46
  /**
47
47
  * Lightweight API wrapper for "side queries" outside the main conversation loop.
48
48
  *
49
- * Use this instead of direct client.beta.messages.create() calls to ensure
49
+ * Use this instead of direct client.messages.create() calls to ensure
50
50
  * proper OAuth token validation with fingerprint attribution headers.
51
51
  *
52
52
  * This handles:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencow-ai/opencow-agent-sdk",
3
- "version": "0.4.13",
3
+ "version": "0.4.15",
4
4
  "description": "Claude Code opened to any LLM — OpenAI, Gemini, DeepSeek, Ollama, and 200+ models",
5
5
  "type": "module",
6
6
  "main": "./dist/sdk.js",