@opencode-ai/sdk 0.15.28 → 0.15.30

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.
@@ -258,6 +258,10 @@ export type McpLocalConfig = {
258
258
  * Enable or disable the MCP server on startup
259
259
  */
260
260
  enabled?: boolean;
261
+ /**
262
+ * Timeout in ms for fetching tools from the MCP server. Defaults to 5000 (5 seconds) if not specified.
263
+ */
264
+ timeout?: number;
261
265
  };
262
266
  export type McpRemoteConfig = {
263
267
  /**
@@ -278,6 +282,10 @@ export type McpRemoteConfig = {
278
282
  headers?: {
279
283
  [key: string]: string;
280
284
  };
285
+ /**
286
+ * Timeout in ms for fetching tools from the MCP server. Defaults to 5000 (5 seconds) if not specified.
287
+ */
288
+ timeout?: number;
281
289
  };
282
290
  /**
283
291
  * @deprecated Always uses stretch layout.
@@ -402,6 +410,9 @@ export type Config = {
402
410
  options?: {
403
411
  [key: string]: unknown;
404
412
  };
413
+ headers?: {
414
+ [key: string]: string;
415
+ };
405
416
  provider?: {
406
417
  npm: string;
407
418
  };
@@ -901,6 +912,9 @@ export type Model = {
901
912
  options: {
902
913
  [key: string]: unknown;
903
914
  };
915
+ headers?: {
916
+ [key: string]: string;
917
+ };
904
918
  provider?: {
905
919
  npm: string;
906
920
  };
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.28",
4
+ "version": "0.15.30",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "typecheck": "tsgo --noEmit",