release: v0.5.2

This commit is contained in:
opencode
2025-08-15 15:22:21 +00:00
parent 07dbc30c63
commit 57b04d9eb7
11 changed files with 25 additions and 10 deletions

View File

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

View File

@@ -212,6 +212,10 @@ class Session extends _HeyApiClient {
return (options?.client ?? this._client).post<SessionCreateResponses, SessionCreateErrors, ThrowOnError>({
url: "/session",
...options,
headers: {
"Content-Type": "application/json",
...options?.headers,
},
})
}

View File

@@ -801,6 +801,14 @@ export type KeybindsConfig = {
* Compact the session
*/
session_compact: string
/**
* Cycle to next child session
*/
session_child_cycle: string
/**
* Cycle to previous child session
*/
session_child_cycle_reverse: string
/**
* Scroll messages up by one page
*/
@@ -1239,7 +1247,10 @@ export type SessionListResponses = {
export type SessionListResponse = SessionListResponses[keyof SessionListResponses]
export type SessionCreateData = {
body?: never
body?: {
parentID?: string
title?: string
}
path?: never
query?: never
url: "/session"