diff options
| author | opencode <[email protected]> | 2025-08-11 01:59:27 +0000 |
|---|---|---|
| committer | opencode <[email protected]> | 2025-08-11 01:59:27 +0000 |
| commit | 55c294c013ae1569dba96b41d1950f5a1a29b6e5 (patch) | |
| tree | f92bfec39bdaac49d26b0222d7788aca4718e068 /packages/sdk/js | |
| parent | 70db372466bdf1037f78bb839ff2018db19f30e1 (diff) | |
| download | opencode-55c294c013ae1569dba96b41d1950f5a1a29b6e5.tar.gz opencode-55c294c013ae1569dba96b41d1950f5a1a29b6e5.zip | |
release: v0.4.6
Diffstat (limited to 'packages/sdk/js')
| -rw-r--r-- | packages/sdk/js/package.json | 2 | ||||
| -rw-r--r-- | packages/sdk/js/src/gen/types.gen.ts | 62 |
2 files changed, 34 insertions, 30 deletions
diff --git a/packages/sdk/js/package.json b/packages/sdk/js/package.json index fd4d1df80..dae5ccadc 100644 --- a/packages/sdk/js/package.json +++ b/packages/sdk/js/package.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/package.json", "name": "@opencode-ai/sdk", - "version": "0.4.3", + "version": "0.4.6", "type": "module", "scripts": { "typecheck": "tsc --noEmit" 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 @@ -23,15 +23,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) | ({ @@ -44,9 +47,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 = { |
