chore: generate

This commit is contained in:
opencode-agent[bot] 2026-06-14 11:25:37 +00:00
commit 4810df0a71
19 changed files with 115 additions and 88 deletions

View file

@ -78,8 +78,8 @@ export function createSessionComposerState(options?: { closeMs?: number | (() =>
if (store.responding === perm.id) return
setStore("responding", perm.id)
sdk().client.permission
.respond({ sessionID: perm.sessionID, permissionID: perm.id, response })
sdk()
.client.permission.respond({ sessionID: perm.sessionID, permissionID: perm.id, response })
.catch((err: unknown) => {
const description = err instanceof Error ? err.message : String(err)
showToast({ title: language.t("common.requestFailed"), description })

View file

@ -853,8 +853,8 @@ export function MessageTimeline(props: {
const index = sessions.findIndex((s) => s.id === sessionID)
const nextSession = index === -1 ? undefined : (sessions[index + 1] ?? sessions[index - 1])
await sdk().client.session
.update({ sessionID, time: { archived: Date.now() } })
await sdk()
.client.session.update({ sessionID, time: { archived: Date.now() } })
.then(() => {
sync().set(
produce((draft) => {
@ -882,8 +882,8 @@ export function MessageTimeline(props: {
const index = sessions.findIndex((s) => s.id === sessionID)
const nextSession = index === -1 ? undefined : (sessions[index + 1] ?? sessions[index - 1])
const result = await sdk().client.session
.delete({ sessionID })
const result = await sdk()
.client.session.delete({ sessionID })
.then((x) => x.data)
.catch((err) => {
showToast({

View file

@ -53,8 +53,8 @@ export function SessionReviewTab(props: SessionReviewTabProps) {
const layout = useLayout()
const readFile = async (path: string) => {
return sdk().client.file
.read({ path })
return sdk()
.client.file.read({ path })
.then((x) => x.data)
.catch((error) => {
console.debug("[session-review] failed to read file", { path, error })

View file

@ -175,8 +175,8 @@ export const useSessionCommands = (actions: SessionCommandContext) => {
return
}
const url = await sdk().client.session
.share({ sessionID })
const url = await sdk()
.client.session.share({ sessionID })
.then((res) => res.data?.share?.url)
.catch(() => undefined)
if (!url) {
@ -195,8 +195,8 @@ export const useSessionCommands = (actions: SessionCommandContext) => {
const sessionID = params.id
if (!sessionID) return
await sdk().client.session
.unshare({ sessionID })
await sdk()
.client.session.unshare({ sessionID })
.then(() =>
showToast({
title: language.t("toast.session.unshare.success.title"),
@ -284,7 +284,9 @@ export const useSessionCommands = (actions: SessionCommandContext) => {
if (!sessionID) return
if (sync().data.session_working(params.id ?? "")) {
await sdk().client.session.abort({ sessionID }).catch(() => {})
await sdk()
.client.session.abort({ sessionID })
.catch(() => {})
}
const revert = info()?.revert?.messageID