release: v0.7.2

This commit is contained in:
opencode
2025-09-11 17:02:59 +00:00
parent 3e9b451fb4
commit 84f0c63fa1
11 changed files with 21 additions and 10 deletions

View File

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

View File

@@ -50,6 +50,9 @@ export type Event =
| ({
type: "session.error"
} & EventSessionError)
| ({
type: "session.compacted"
} & EventSessionCompacted)
| ({
type: "server.connected"
} & EventServerConnected)
@@ -478,6 +481,7 @@ export type Session = {
time: {
created: number
updated: number
compacting?: number
}
revert?: {
messageID: string
@@ -521,6 +525,13 @@ export type EventSessionError = {
}
}
export type EventSessionCompacted = {
type: "session.compacted"
properties: {
sessionID: string
}
}
export type EventServerConnected = {
type: "server.connected"
properties: {