@theokit/sdk 2.11.2 → 2.11.3

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.
@@ -42,6 +42,18 @@ interface OpenAIDeltaChunk {
42
42
  cache_creation_input_tokens?: number;
43
43
  cache_read_input_tokens?: number;
44
44
  };
45
+ /**
46
+ * In-stream provider error. OpenRouter (and some OpenAI-compatible proxies)
47
+ * report auth / quota / rate-limit failures as an HTTP 200 SSE body carrying
48
+ * `data: {"error":{"message":"...","code":401}}` instead of a non-2xx status.
49
+ * Without surfacing this, the round finishes empty and the failure is silent
50
+ * (usetheodev/theocode#31).
51
+ */
52
+ error?: {
53
+ message?: string;
54
+ code?: number | string;
55
+ type?: string;
56
+ };
45
57
  }
46
58
  export declare class OpenAIClient implements LlmClient {
47
59
  private readonly options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theokit/sdk",
3
- "version": "2.11.2",
3
+ "version": "2.11.3",
4
4
  "description": "TypeScript SDK for the Theo agent harness — same surface, local or cloud.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/usetheo/theokit-sdk#readme",
@@ -364,8 +364,8 @@
364
364
  "typedoc": "^0.28.19",
365
365
  "ws": "^8.18.0",
366
366
  "zod": "^4.0.0",
367
- "@theokit/sdk-handoff": "0.1.0",
368
- "@theokit/sdk-memory": "0.2.0"
367
+ "@theokit/sdk-memory": "0.2.0",
368
+ "@theokit/sdk-handoff": "0.1.0"
369
369
  },
370
370
  "scripts": {
371
371
  "build": "tsup && cp src/internal/providers/provider-catalog.json dist/provider-catalog.json",