@opencode-ai/sdk 1.1.48 → 1.1.49

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.
@@ -1370,7 +1370,7 @@ export type FileNode = {
1370
1370
  ignored: boolean;
1371
1371
  };
1372
1372
  export type FileContent = {
1373
- type: "text";
1373
+ type: "text" | "binary";
1374
1374
  content: string;
1375
1375
  diff?: string;
1376
1376
  patch?: {
@@ -83,6 +83,7 @@ export type FileDiff = {
83
83
  after: string;
84
84
  additions: number;
85
85
  deletions: number;
86
+ status?: "added" | "deleted" | "modified";
86
87
  };
87
88
  export type UserMessage = {
88
89
  id: string;
@@ -1162,6 +1163,10 @@ export type ServerConfig = {
1162
1163
  * Enable mDNS service discovery
1163
1164
  */
1164
1165
  mdns?: boolean;
1166
+ /**
1167
+ * Custom domain name for mDNS service (default: opencode.local)
1168
+ */
1169
+ mdnsDomain?: string;
1165
1170
  /**
1166
1171
  * Additional domains to allow for CORS
1167
1172
  */
@@ -1195,6 +1200,10 @@ export type PermissionConfig = {
1195
1200
  } | PermissionActionConfig;
1196
1201
  export type AgentConfig = {
1197
1202
  model?: string;
1203
+ /**
1204
+ * Default model variant for this agent (applies only when using the agent's configured model).
1205
+ */
1206
+ variant?: string;
1198
1207
  temperature?: number;
1199
1208
  top_p?: number;
1200
1209
  prompt?: string;
@@ -1809,7 +1818,7 @@ export type FileNode = {
1809
1818
  ignored: boolean;
1810
1819
  };
1811
1820
  export type FileContent = {
1812
- type: "text";
1821
+ type: "text" | "binary";
1813
1822
  content: string;
1814
1823
  diff?: string;
1815
1824
  patch?: {
@@ -1887,6 +1896,7 @@ export type Agent = {
1887
1896
  modelID: string;
1888
1897
  providerID: string;
1889
1898
  };
1899
+ variant?: string;
1890
1900
  prompt?: string;
1891
1901
  options: {
1892
1902
  [key: string]: unknown;
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": "1.1.48",
4
+ "version": "1.1.49",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {