release: v0.4.6

This commit is contained in:
opencode
2025-08-11 01:59:27 +00:00
parent 70db372466
commit 55c294c013
10 changed files with 42 additions and 38 deletions

View File

@@ -1,7 +1,7 @@
{ {
"$schema": "https://json.schemastore.org/package.json", "$schema": "https://json.schemastore.org/package.json",
"name": "@opencode/cloud-core", "name": "@opencode/cloud-core",
"version": "0.4.3", "version": "0.4.6",
"private": true, "private": true,
"type": "module", "type": "module",
"dependencies": { "dependencies": {

View File

@@ -1,6 +1,6 @@
{ {
"name": "@opencode/cloud-function", "name": "@opencode/cloud-function",
"version": "0.4.3", "version": "0.4.6",
"$schema": "https://json.schemastore.org/package.json", "$schema": "https://json.schemastore.org/package.json",
"private": true, "private": true,
"type": "module", "type": "module",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@opencode/cloud-web", "name": "@opencode/cloud-web",
"version": "0.4.3", "version": "0.4.6",
"private": true, "private": true,
"description": "", "description": "",
"type": "module", "type": "module",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@opencode/function", "name": "@opencode/function",
"version": "0.4.3", "version": "0.4.6",
"$schema": "https://json.schemastore.org/package.json", "$schema": "https://json.schemastore.org/package.json",
"private": true, "private": true,
"type": "module", "type": "module",

View File

@@ -1,6 +1,6 @@
{ {
"$schema": "https://json.schemastore.org/package.json", "$schema": "https://json.schemastore.org/package.json",
"version": "0.4.3", "version": "0.4.6",
"name": "opencode", "name": "opencode",
"type": "module", "type": "module",
"private": true, "private": true,

View File

@@ -1,7 +1,7 @@
{ {
"$schema": "https://json.schemastore.org/package.json", "$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/plugin", "name": "@opencode-ai/plugin",
"version": "0.4.3", "version": "0.4.6",
"type": "module", "type": "module",
"scripts": { "scripts": {
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"

View File

@@ -1,7 +1,7 @@
{ {
"$schema": "https://json.schemastore.org/package.json", "$schema": "https://json.schemastore.org/package.json",
"name": "@opencode-ai/sdk", "name": "@opencode-ai/sdk",
"version": "0.4.3", "version": "0.4.6",
"type": "module", "type": "module",
"scripts": { "scripts": {
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"

View File

@@ -22,15 +22,18 @@ export type Event =
| ({ | ({
type: "storage.write" type: "storage.write"
} & EventStorageWrite) } & EventStorageWrite)
| ({
type: "file.edited"
} & EventFileEdited)
| ({
type: "server.connected"
} & EventServerConnected)
| ({ | ({
type: "permission.updated" type: "permission.updated"
} & EventPermissionUpdated) } & EventPermissionUpdated)
| ({ | ({
type: "permission.replied" type: "permission.replied"
} & EventPermissionReplied) } & EventPermissionReplied)
| ({
type: "file.edited"
} & EventFileEdited)
| ({ | ({
type: "session.updated" type: "session.updated"
} & EventSessionUpdated) } & EventSessionUpdated)
@@ -43,9 +46,6 @@ export type Event =
| ({ | ({
type: "session.error" type: "session.error"
} & EventSessionError) } & EventSessionError)
| ({
type: "server.connected"
} & EventServerConnected)
| ({ | ({
type: "file.watcher.updated" type: "file.watcher.updated"
} & EventFileWatcherUpdated) } & 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 = { export type EventPermissionUpdated = {
type: string type: string
properties: Permission properties: Permission
@@ -455,13 +469,6 @@ export type EventPermissionReplied = {
} }
} }
export type EventFileEdited = {
type: string
properties: {
file: string
}
}
export type EventSessionUpdated = { export type EventSessionUpdated = {
type: string type: string
properties: { properties: {
@@ -523,13 +530,6 @@ export type EventSessionError = {
} }
} }
export type EventServerConnected = {
type: string
properties: {
[key: string]: unknown
}
}
export type EventFileWatcherUpdated = { export type EventFileWatcherUpdated = {
type: string type: string
properties: { properties: {
@@ -907,13 +907,17 @@ export type AgentConfig = {
* Description of when to use the agent * Description of when to use the agent
*/ */
description?: string description?: string
/**
* Additional model options passed through to provider
*/
options?: {
[key: string]: unknown
}
mode?: string mode?: string
[key: string]:
| unknown
| string
| number
| {
[key: string]: boolean
}
| boolean
| string
| undefined
} }
export type Provider = { export type Provider = {
@@ -1053,9 +1057,6 @@ export type Agent = {
mode: string mode: string
topP?: number topP?: number
temperature?: number temperature?: number
options: {
[key: string]: unknown
}
model?: { model?: {
modelID: string modelID: string
providerID: string providerID: string
@@ -1064,6 +1065,9 @@ export type Agent = {
tools: { tools: {
[key: string]: boolean [key: string]: boolean
} }
options: {
[key: string]: unknown
}
} }
export type EventSubscribeData = { export type EventSubscribeData = {

View File

@@ -1,7 +1,7 @@
{ {
"name": "@opencode/web", "name": "@opencode/web",
"type": "module", "type": "module",
"version": "0.4.3", "version": "0.4.6",
"scripts": { "scripts": {
"dev": "astro dev", "dev": "astro dev",
"dev:remote": "sst shell --stage=dev --target=Web astro dev", "dev:remote": "sst shell --stage=dev --target=Web astro dev",

View File

@@ -2,7 +2,7 @@
"name": "opencode", "name": "opencode",
"displayName": "opencode", "displayName": "opencode",
"description": "opencode for VS Code", "description": "opencode for VS Code",
"version": "0.4.3", "version": "0.4.6",
"publisher": "sst-dev", "publisher": "sst-dev",
"repository": { "repository": {
"type": "git", "type": "git",