@opencode-ai/sdk 1.0.217 → 1.0.219
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/v2/gen/types.gen.d.ts +29 -5
- package/package.json +1 -1
|
@@ -1031,6 +1031,10 @@ export type ServerConfig = {
|
|
|
1031
1031
|
* Enable mDNS service discovery
|
|
1032
1032
|
*/
|
|
1033
1033
|
mdns?: boolean;
|
|
1034
|
+
/**
|
|
1035
|
+
* Additional domains to allow for CORS
|
|
1036
|
+
*/
|
|
1037
|
+
cors?: Array<string>;
|
|
1034
1038
|
};
|
|
1035
1039
|
export type AgentConfig = {
|
|
1036
1040
|
model?: string;
|
|
@@ -1131,6 +1135,18 @@ export type ProviderConfig = {
|
|
|
1131
1135
|
provider?: {
|
|
1132
1136
|
npm: string;
|
|
1133
1137
|
};
|
|
1138
|
+
/**
|
|
1139
|
+
* Variant-specific configuration
|
|
1140
|
+
*/
|
|
1141
|
+
variants?: {
|
|
1142
|
+
[key: string]: {
|
|
1143
|
+
/**
|
|
1144
|
+
* Disable this variant for the model
|
|
1145
|
+
*/
|
|
1146
|
+
disabled?: boolean;
|
|
1147
|
+
[key: string]: unknown | boolean | undefined;
|
|
1148
|
+
};
|
|
1149
|
+
};
|
|
1134
1150
|
};
|
|
1135
1151
|
};
|
|
1136
1152
|
whitelist?: Array<string>;
|
|
@@ -1442,6 +1458,10 @@ export type Config = {
|
|
|
1442
1458
|
* Continue the agent loop when a tool call is denied
|
|
1443
1459
|
*/
|
|
1444
1460
|
continue_loop_on_deny?: boolean;
|
|
1461
|
+
/**
|
|
1462
|
+
* Timeout in milliseconds for model context protocol (MCP) requests
|
|
1463
|
+
*/
|
|
1464
|
+
mcp_timeout?: number;
|
|
1445
1465
|
};
|
|
1446
1466
|
};
|
|
1447
1467
|
export type ToolIds = Array<string>;
|
|
@@ -1508,10 +1528,7 @@ export type Command = {
|
|
|
1508
1528
|
model?: string;
|
|
1509
1529
|
template: string;
|
|
1510
1530
|
subtask?: boolean;
|
|
1511
|
-
|
|
1512
|
-
export type Variant = {
|
|
1513
|
-
disabled: boolean;
|
|
1514
|
-
[key: string]: unknown | boolean;
|
|
1531
|
+
hints: Array<string>;
|
|
1515
1532
|
};
|
|
1516
1533
|
export type Model = {
|
|
1517
1534
|
id: string;
|
|
@@ -1575,7 +1592,9 @@ export type Model = {
|
|
|
1575
1592
|
};
|
|
1576
1593
|
release_date: string;
|
|
1577
1594
|
variants?: {
|
|
1578
|
-
[key: string]:
|
|
1595
|
+
[key: string]: {
|
|
1596
|
+
[key: string]: unknown;
|
|
1597
|
+
};
|
|
1579
1598
|
};
|
|
1580
1599
|
};
|
|
1581
1600
|
export type Provider = {
|
|
@@ -3047,6 +3066,11 @@ export type ProviderListResponses = {
|
|
|
3047
3066
|
provider?: {
|
|
3048
3067
|
npm: string;
|
|
3049
3068
|
};
|
|
3069
|
+
variants?: {
|
|
3070
|
+
[key: string]: {
|
|
3071
|
+
[key: string]: unknown;
|
|
3072
|
+
};
|
|
3073
|
+
};
|
|
3050
3074
|
};
|
|
3051
3075
|
};
|
|
3052
3076
|
}>;
|