mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-20 01:04:22 +01:00
release: v0.5.2
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user