From 55c294c013ae1569dba96b41d1950f5a1a29b6e5 Mon Sep 17 00:00:00 2001 From: opencode Date: Mon, 11 Aug 2025 01:59:27 +0000 Subject: release: v0.4.6 --- packages/sdk/js/src/gen/types.gen.ts | 62 +++++++++++++++++++----------------- 1 file changed, 33 insertions(+), 29 deletions(-) (limited to 'packages/sdk/js/src') diff --git a/packages/sdk/js/src/gen/types.gen.ts b/packages/sdk/js/src/gen/types.gen.ts index 31917e4ca..5eb197954 100644 --- a/packages/sdk/js/src/gen/types.gen.ts +++ b/packages/sdk/js/src/gen/types.gen.ts @@ -22,15 +22,18 @@ export type Event = | ({ type: "storage.write" } & EventStorageWrite) + | ({ + type: "file.edited" + } & EventFileEdited) + | ({ + type: "server.connected" + } & EventServerConnected) | ({ type: "permission.updated" } & EventPermissionUpdated) | ({ type: "permission.replied" } & EventPermissionReplied) - | ({ - type: "file.edited" - } & EventFileEdited) | ({ type: "session.updated" } & EventSessionUpdated) @@ -43,9 +46,6 @@ export type Event = | ({ type: "session.error" } & EventSessionError) - | ({ - type: "server.connected" - } & EventServerConnected) | ({ type: "file.watcher.updated" } & EventFileWatcherUpdated) @@ -425,6 +425,20 @@ export type EventStorageWrite = { } } +export type EventFileEdited = { + type: string + properties: { + file: string + } +} + +export type EventServerConnected = { + type: string + properties: { + [key: string]: unknown + } +} + export type EventPermissionUpdated = { type: string properties: Permission @@ -455,13 +469,6 @@ export type EventPermissionReplied = { } } -export type EventFileEdited = { - type: string - properties: { - file: string - } -} - export type EventSessionUpdated = { type: string properties: { @@ -523,13 +530,6 @@ export type EventSessionError = { } } -export type EventServerConnected = { - type: string - properties: { - [key: string]: unknown - } -} - export type EventFileWatcherUpdated = { type: string properties: { @@ -907,13 +907,17 @@ export type AgentConfig = { * Description of when to use the agent */ description?: string - /** - * Additional model options passed through to provider - */ - options?: { - [key: string]: unknown - } mode?: string + [key: string]: + | unknown + | string + | number + | { + [key: string]: boolean + } + | boolean + | string + | undefined } export type Provider = { @@ -1053,9 +1057,6 @@ export type Agent = { mode: string topP?: number temperature?: number - options: { - [key: string]: unknown - } model?: { modelID: string providerID: string @@ -1064,6 +1065,9 @@ export type Agent = { tools: { [key: string]: boolean } + options: { + [key: string]: unknown + } } export type EventSubscribeData = { -- cgit v1.2.3