release: v0.4.43

This commit is contained in:
opencode 2025-08-13 19:33:38 +00:00
parent 93b71477e6
commit 036b24791d
11 changed files with 49 additions and 9 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -37,6 +37,8 @@ import type {
SessionChatResponses,
SessionMessageData,
SessionMessageResponses,
SessionShellData,
SessionShellResponses,
SessionRevertData,
SessionRevertResponses,
SessionUnrevertData,
@ -332,6 +334,20 @@ class Session extends _HeyApiClient {
})
}
/**
* Run a shell command
*/
public shell<ThrowOnError extends boolean = false>(options: Options<SessionShellData, ThrowOnError>) {
return (options.client ?? this._client).post<SessionShellResponses, unknown, ThrowOnError>({
url: "/session/{id}/shell",
...options,
headers: {
"Content-Type": "application/json",
...options.headers,
},
})
}
/**
* Revert a message
*/

View file

@ -1456,6 +1456,30 @@ export type SessionMessageResponses = {
export type SessionMessageResponse = SessionMessageResponses[keyof SessionMessageResponses]
export type SessionShellData = {
body?: {
agent: string
command: string
}
path: {
/**
* Session ID
*/
id: string
}
query?: never
url: "/session/{id}/shell"
}
export type SessionShellResponses = {
/**
* Created message
*/
200: AssistantMessage
}
export type SessionShellResponse = SessionShellResponses[keyof SessionShellResponses]
export type SessionRevertData = {
body?: {
messageID: string

View file

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

View file

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