@opencode-ai/sdk 1.1.47 → 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.
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -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?: {
|
|
@@ -1868,7 +1877,7 @@ export type Command = {
|
|
|
1868
1877
|
description?: string;
|
|
1869
1878
|
agent?: string;
|
|
1870
1879
|
model?: string;
|
|
1871
|
-
|
|
1880
|
+
source?: "command" | "mcp" | "skill";
|
|
1872
1881
|
template: string;
|
|
1873
1882
|
subtask?: boolean;
|
|
1874
1883
|
hints: Array<string>;
|
|
@@ -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;
|
|
@@ -4269,6 +4279,7 @@ export type AppSkillsResponses = {
|
|
|
4269
4279
|
name: string;
|
|
4270
4280
|
description: string;
|
|
4271
4281
|
location: string;
|
|
4282
|
+
content: string;
|
|
4272
4283
|
}>;
|
|
4273
4284
|
};
|
|
4274
4285
|
export type AppSkillsResponse = AppSkillsResponses[keyof AppSkillsResponses];
|