Skip to content

Commit 95e410d

Browse files
author
opencode
committed
release: v0.4.3
1 parent 13d3fba commit 95e410d

10 files changed

Lines changed: 57 additions & 29 deletions

File tree

cloud/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://json.schemastore.org/package.json",
33
"name": "@opencode/cloud-core",
4-
"version": "0.0.0",
4+
"version": "0.4.3",
55
"private": true,
66
"type": "module",
77
"dependencies": {

cloud/function/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opencode/cloud-function",
3-
"version": "0.3.130",
3+
"version": "0.4.3",
44
"$schema": "https://json.schemastore.org/package.json",
55
"private": true,
66
"type": "module",

cloud/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opencode/cloud-web",
3-
"version": "0.0.0",
3+
"version": "0.4.3",
44
"private": true,
55
"description": "",
66
"type": "module",

packages/function/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opencode/function",
3-
"version": "0.4.1",
3+
"version": "0.4.3",
44
"$schema": "https://json.schemastore.org/package.json",
55
"private": true,
66
"type": "module",

packages/opencode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://json.schemastore.org/package.json",
3-
"version": "0.4.1",
3+
"version": "0.4.3",
44
"name": "opencode",
55
"type": "module",
66
"private": true,

packages/plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://json.schemastore.org/package.json",
33
"name": "@opencode-ai/plugin",
4-
"version": "0.4.1",
4+
"version": "0.4.3",
55
"type": "module",
66
"scripts": {
77
"typecheck": "tsc --noEmit"

packages/sdk/js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://json.schemastore.org/package.json",
33
"name": "@opencode-ai/sdk",
4-
"version": "0.4.1",
4+
"version": "0.4.3",
55
"type": "module",
66
"scripts": {
77
"typecheck": "tsc --noEmit"

packages/sdk/js/src/gen/types.gen.ts

Lines changed: 48 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,15 @@ export type Event =
2222
| ({
2323
type: "storage.write"
2424
} & EventStorageWrite)
25-
| ({
26-
type: "file.edited"
27-
} & EventFileEdited)
28-
| ({
29-
type: "server.connected"
30-
} & EventServerConnected)
3125
| ({
3226
type: "permission.updated"
3327
} & EventPermissionUpdated)
3428
| ({
3529
type: "permission.replied"
3630
} & EventPermissionReplied)
31+
| ({
32+
type: "file.edited"
33+
} & EventFileEdited)
3734
| ({
3835
type: "session.updated"
3936
} & EventSessionUpdated)
@@ -46,6 +43,9 @@ export type Event =
4643
| ({
4744
type: "session.error"
4845
} & EventSessionError)
46+
| ({
47+
type: "server.connected"
48+
} & EventServerConnected)
4949
| ({
5050
type: "file.watcher.updated"
5151
} & EventFileWatcherUpdated)
@@ -182,6 +182,9 @@ export type Part =
182182
| ({
183183
type: "text"
184184
} & TextPart)
185+
| ({
186+
type: "reasoning"
187+
} & ReasoningPart)
185188
| ({
186189
type: "file"
187190
} & FilePart)
@@ -217,6 +220,21 @@ export type TextPart = {
217220
}
218221
}
219222

223+
export type ReasoningPart = {
224+
id: string
225+
sessionID: string
226+
messageID: string
227+
type: string
228+
text: string
229+
metadata?: {
230+
[key: string]: unknown
231+
}
232+
time: {
233+
start: number
234+
end?: number
235+
}
236+
}
237+
220238
export type FilePart = {
221239
id: string
222240
sessionID: string
@@ -407,20 +425,6 @@ export type EventStorageWrite = {
407425
}
408426
}
409427

410-
export type EventFileEdited = {
411-
type: string
412-
properties: {
413-
file: string
414-
}
415-
}
416-
417-
export type EventServerConnected = {
418-
type: string
419-
properties: {
420-
[key: string]: unknown
421-
}
422-
}
423-
424428
export type EventPermissionUpdated = {
425429
type: string
426430
properties: Permission
@@ -451,6 +455,13 @@ export type EventPermissionReplied = {
451455
}
452456
}
453457

458+
export type EventFileEdited = {
459+
type: string
460+
properties: {
461+
file: string
462+
}
463+
}
464+
454465
export type EventSessionUpdated = {
455466
type: string
456467
properties: {
@@ -512,6 +523,13 @@ export type EventSessionError = {
512523
}
513524
}
514525

526+
export type EventServerConnected = {
527+
type: string
528+
properties: {
529+
[key: string]: unknown
530+
}
531+
}
532+
515533
export type EventFileWatcherUpdated = {
516534
type: string
517535
properties: {
@@ -691,6 +709,7 @@ export type Config = {
691709
| {
692710
[key: string]: string
693711
}
712+
webfetch?: string
694713
}
695714
experimental?: {
696715
hook?: {
@@ -888,6 +907,12 @@ export type AgentConfig = {
888907
* Description of when to use the agent
889908
*/
890909
description?: string
910+
/**
911+
* Additional model options passed through to provider
912+
*/
913+
options?: {
914+
[key: string]: unknown
915+
}
891916
mode?: string
892917
}
893918

@@ -1028,6 +1053,9 @@ export type Agent = {
10281053
mode: string
10291054
topP?: number
10301055
temperature?: number
1056+
options: {
1057+
[key: string]: unknown
1058+
}
10311059
model?: {
10321060
modelID: string
10331061
providerID: string

packages/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@opencode/web",
33
"type": "module",
4-
"version": "0.4.1",
4+
"version": "0.4.3",
55
"scripts": {
66
"dev": "astro dev",
77
"dev:remote": "sst shell --stage=dev --target=Web astro dev",

sdks/vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "opencode",
33
"displayName": "opencode",
44
"description": "opencode for VS Code",
5-
"version": "0.4.1",
5+
"version": "0.4.3",
66
"publisher": "sst-dev",
77
"repository": {
88
"type": "git",

0 commit comments

Comments
 (0)