@opencode-ai/sdk 0.15.10 → 0.15.12

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.
@@ -552,8 +552,10 @@ export type Todo = {
552
552
  };
553
553
  export type FileDiff = {
554
554
  file: string;
555
- left: string;
556
- right: string;
555
+ before: string;
556
+ after: string;
557
+ additions: number;
558
+ deletions: number;
557
559
  };
558
560
  export type UserMessage = {
559
561
  id: string;
@@ -892,6 +894,7 @@ export type FileNode = {
892
894
  ignored: boolean;
893
895
  };
894
896
  export type FileContent = {
897
+ type: "text";
895
898
  content: string;
896
899
  diff?: string;
897
900
  patch?: {
@@ -908,6 +911,8 @@ export type FileContent = {
908
911
  }>;
909
912
  index?: string;
910
913
  };
914
+ encoding?: "base64";
915
+ mimeType?: string;
911
916
  };
912
917
  export type File = {
913
918
  path: string;
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.15.10",
4
+ "version": "0.15.12",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "typecheck": "tsgo --noEmit",