@opencode-ai/sdk 0.0.0-snapshot-virtualized-diffs-202602101647 → 0.0.0-snapshot-virtualized-diffs-202602101757

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.
@@ -133,6 +133,13 @@ export type MessageAbortedError = {
133
133
  message: string;
134
134
  };
135
135
  };
136
+ export type ContextOverflowError = {
137
+ name: "ContextOverflowError";
138
+ data: {
139
+ message: string;
140
+ responseBody?: string;
141
+ };
142
+ };
136
143
  export type ApiError = {
137
144
  name: "APIError";
138
145
  data: {
@@ -156,7 +163,7 @@ export type AssistantMessage = {
156
163
  created: number;
157
164
  completed?: number;
158
165
  };
159
- error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError;
166
+ error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ContextOverflowError | ApiError;
160
167
  parentID: string;
161
168
  modelID: string;
162
169
  providerID: string;
@@ -706,7 +713,7 @@ export type EventSessionError = {
706
713
  type: "session.error";
707
714
  properties: {
708
715
  sessionID?: string;
709
- error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError;
716
+ error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ContextOverflowError | ApiError;
710
717
  };
711
718
  };
712
719
  export type EventVcsBranchUpdated = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/sdk",
4
- "version": "0.0.0-snapshot-virtualized-diffs-202602101647",
4
+ "version": "0.0.0-snapshot-virtualized-diffs-202602101757",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {