@opencode-ai/sdk 1.0.218 → 1.0.220

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.
@@ -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>;
@@ -1506,12 +1526,10 @@ export type Command = {
1506
1526
  description?: string;
1507
1527
  agent?: string;
1508
1528
  model?: string;
1529
+ mcp?: boolean;
1509
1530
  template: string;
1510
1531
  subtask?: boolean;
1511
- };
1512
- export type Variant = {
1513
- disabled: boolean;
1514
- [key: string]: unknown | boolean;
1532
+ hints: Array<string>;
1515
1533
  };
1516
1534
  export type Model = {
1517
1535
  id: string;
@@ -1575,7 +1593,9 @@ export type Model = {
1575
1593
  };
1576
1594
  release_date: string;
1577
1595
  variants?: {
1578
- [key: string]: Variant;
1596
+ [key: string]: {
1597
+ [key: string]: unknown;
1598
+ };
1579
1599
  };
1580
1600
  };
1581
1601
  export type Provider = {
@@ -3047,6 +3067,11 @@ export type ProviderListResponses = {
3047
3067
  provider?: {
3048
3068
  npm: string;
3049
3069
  };
3070
+ variants?: {
3071
+ [key: string]: {
3072
+ [key: string]: unknown;
3073
+ };
3074
+ };
3050
3075
  };
3051
3076
  };
3052
3077
  }>;
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.0.218",
4
+ "version": "1.0.220",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "typecheck": "tsgo --noEmit",