chore: generate
This commit is contained in:
@@ -10,7 +10,8 @@ import { zodToJsonSchema } from "zod-to-json-schema"
|
|||||||
import { errors } from "../error"
|
import { errors } from "../error"
|
||||||
import { lazy } from "../../util/lazy"
|
import { lazy } from "../../util/lazy"
|
||||||
|
|
||||||
export const ExperimentalRoutes = lazy(() => new Hono()
|
export const ExperimentalRoutes = lazy(() =>
|
||||||
|
new Hono()
|
||||||
.get(
|
.get(
|
||||||
"/tool/ids",
|
"/tool/ids",
|
||||||
describeRoute({
|
describeRoute({
|
||||||
@@ -152,5 +153,5 @@ export const ExperimentalRoutes = lazy(() => new Hono()
|
|||||||
async (c) => {
|
async (c) => {
|
||||||
return c.json(await MCP.resources())
|
return c.json(await MCP.resources())
|
||||||
},
|
},
|
||||||
)
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ import { LSP } from "../../lsp"
|
|||||||
import { Instance } from "../../project/instance"
|
import { Instance } from "../../project/instance"
|
||||||
import { lazy } from "../../util/lazy"
|
import { lazy } from "../../util/lazy"
|
||||||
|
|
||||||
export const FileRoutes = lazy(() => new Hono()
|
export const FileRoutes = lazy(() =>
|
||||||
|
new Hono()
|
||||||
.get(
|
.get(
|
||||||
"/find",
|
"/find",
|
||||||
describeRoute({
|
describeRoute({
|
||||||
@@ -192,5 +193,5 @@ export const FileRoutes = lazy(() => new Hono()
|
|||||||
const content = await File.status()
|
const content = await File.status()
|
||||||
return c.json(content)
|
return c.json(content)
|
||||||
},
|
},
|
||||||
)
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ const log = Log.create({ service: "server" })
|
|||||||
|
|
||||||
export const GlobalDisposedEvent = BusEvent.define("global.disposed", z.object({}))
|
export const GlobalDisposedEvent = BusEvent.define("global.disposed", z.object({}))
|
||||||
|
|
||||||
export const GlobalRoutes = lazy(() => new Hono()
|
export const GlobalRoutes = lazy(() =>
|
||||||
|
new Hono()
|
||||||
.get(
|
.get(
|
||||||
"/health",
|
"/health",
|
||||||
describeRoute({
|
describeRoute({
|
||||||
@@ -130,5 +131,5 @@ export const GlobalRoutes = lazy(() => new Hono()
|
|||||||
})
|
})
|
||||||
return c.json(true)
|
return c.json(true)
|
||||||
},
|
},
|
||||||
)
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,7 +6,8 @@ import { Config } from "../../config/config"
|
|||||||
import { errors } from "../error"
|
import { errors } from "../error"
|
||||||
import { lazy } from "../../util/lazy"
|
import { lazy } from "../../util/lazy"
|
||||||
|
|
||||||
export const McpRoutes = lazy(() => new Hono()
|
export const McpRoutes = lazy(() =>
|
||||||
|
new Hono()
|
||||||
.get(
|
.get(
|
||||||
"/",
|
"/",
|
||||||
describeRoute({
|
describeRoute({
|
||||||
@@ -220,5 +221,5 @@ export const McpRoutes = lazy(() => new Hono()
|
|||||||
await MCP.disconnect(name)
|
await MCP.disconnect(name)
|
||||||
return c.json(true)
|
return c.json(true)
|
||||||
},
|
},
|
||||||
)
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,7 +5,8 @@ import { PermissionNext } from "@/permission/next"
|
|||||||
import { errors } from "../error"
|
import { errors } from "../error"
|
||||||
import { lazy } from "../../util/lazy"
|
import { lazy } from "../../util/lazy"
|
||||||
|
|
||||||
export const PermissionRoutes = lazy(() => new Hono()
|
export const PermissionRoutes = lazy(() =>
|
||||||
|
new Hono()
|
||||||
.post(
|
.post(
|
||||||
"/:requestID/reply",
|
"/:requestID/reply",
|
||||||
describeRoute({
|
describeRoute({
|
||||||
@@ -63,5 +64,5 @@ export const PermissionRoutes = lazy(() => new Hono()
|
|||||||
const permissions = await PermissionNext.list()
|
const permissions = await PermissionNext.list()
|
||||||
return c.json(permissions)
|
return c.json(permissions)
|
||||||
},
|
},
|
||||||
)
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ import z from "zod"
|
|||||||
import { errors } from "../error"
|
import { errors } from "../error"
|
||||||
import { lazy } from "../../util/lazy"
|
import { lazy } from "../../util/lazy"
|
||||||
|
|
||||||
export const ProjectRoutes = lazy(() => new Hono()
|
export const ProjectRoutes = lazy(() =>
|
||||||
|
new Hono()
|
||||||
.get(
|
.get(
|
||||||
"/",
|
"/",
|
||||||
describeRoute({
|
describeRoute({
|
||||||
@@ -77,5 +78,5 @@ export const ProjectRoutes = lazy(() => new Hono()
|
|||||||
const project = await Project.update({ ...body, projectID })
|
const project = await Project.update({ ...body, projectID })
|
||||||
return c.json(project)
|
return c.json(project)
|
||||||
},
|
},
|
||||||
)
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -9,7 +9,8 @@ import { mapValues } from "remeda"
|
|||||||
import { errors } from "../error"
|
import { errors } from "../error"
|
||||||
import { lazy } from "../../util/lazy"
|
import { lazy } from "../../util/lazy"
|
||||||
|
|
||||||
export const ProviderRoutes = lazy(() => new Hono()
|
export const ProviderRoutes = lazy(() =>
|
||||||
|
new Hono()
|
||||||
.get(
|
.get(
|
||||||
"/",
|
"/",
|
||||||
describeRoute({
|
describeRoute({
|
||||||
@@ -160,5 +161,5 @@ export const ProviderRoutes = lazy(() => new Hono()
|
|||||||
})
|
})
|
||||||
return c.json(true)
|
return c.json(true)
|
||||||
},
|
},
|
||||||
)
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ import { Storage } from "../../storage/storage"
|
|||||||
import { errors } from "../error"
|
import { errors } from "../error"
|
||||||
import { lazy } from "../../util/lazy"
|
import { lazy } from "../../util/lazy"
|
||||||
|
|
||||||
export const PtyRoutes = lazy(() => new Hono()
|
export const PtyRoutes = lazy(() =>
|
||||||
|
new Hono()
|
||||||
.get(
|
.get(
|
||||||
"/",
|
"/",
|
||||||
describeRoute({
|
describeRoute({
|
||||||
@@ -164,5 +165,5 @@ export const PtyRoutes = lazy(() => new Hono()
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
)
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,7 +6,8 @@ import z from "zod"
|
|||||||
import { errors } from "../error"
|
import { errors } from "../error"
|
||||||
import { lazy } from "../../util/lazy"
|
import { lazy } from "../../util/lazy"
|
||||||
|
|
||||||
export const QuestionRoutes = lazy(() => new Hono()
|
export const QuestionRoutes = lazy(() =>
|
||||||
|
new Hono()
|
||||||
.get(
|
.get(
|
||||||
"/",
|
"/",
|
||||||
describeRoute({
|
describeRoute({
|
||||||
@@ -93,5 +94,5 @@ export const QuestionRoutes = lazy(() => new Hono()
|
|||||||
await Question.reject(params.requestID)
|
await Question.reject(params.requestID)
|
||||||
return c.json(true)
|
return c.json(true)
|
||||||
},
|
},
|
||||||
)
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import type {
|
|||||||
AppAgentsResponses,
|
AppAgentsResponses,
|
||||||
AppLogErrors,
|
AppLogErrors,
|
||||||
AppLogResponses,
|
AppLogResponses,
|
||||||
|
AppSkillsResponses,
|
||||||
Auth as Auth3,
|
Auth as Auth3,
|
||||||
AuthSetErrors,
|
AuthSetErrors,
|
||||||
AuthSetResponses,
|
AuthSetResponses,
|
||||||
@@ -100,7 +101,6 @@ import type {
|
|||||||
SessionCreateResponses,
|
SessionCreateResponses,
|
||||||
SessionDeleteErrors,
|
SessionDeleteErrors,
|
||||||
SessionDeleteResponses,
|
SessionDeleteResponses,
|
||||||
SessionDiffErrors,
|
|
||||||
SessionDiffResponses,
|
SessionDiffResponses,
|
||||||
SessionForkResponses,
|
SessionForkResponses,
|
||||||
SessionGetErrors,
|
SessionGetErrors,
|
||||||
@@ -653,48 +653,6 @@ export class Tool extends HeyApiClient {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Instance extends HeyApiClient {
|
|
||||||
/**
|
|
||||||
* Dispose instance
|
|
||||||
*
|
|
||||||
* Clean up and dispose the current OpenCode instance, releasing all resources.
|
|
||||||
*/
|
|
||||||
public dispose<ThrowOnError extends boolean = false>(
|
|
||||||
parameters?: {
|
|
||||||
directory?: string
|
|
||||||
},
|
|
||||||
options?: Options<never, ThrowOnError>,
|
|
||||||
) {
|
|
||||||
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }])
|
|
||||||
return (options?.client ?? this.client).post<InstanceDisposeResponses, unknown, ThrowOnError>({
|
|
||||||
url: "/instance/dispose",
|
|
||||||
...options,
|
|
||||||
...params,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class Path extends HeyApiClient {
|
|
||||||
/**
|
|
||||||
* Get paths
|
|
||||||
*
|
|
||||||
* Retrieve the current working directory and related path information for the OpenCode instance.
|
|
||||||
*/
|
|
||||||
public get<ThrowOnError extends boolean = false>(
|
|
||||||
parameters?: {
|
|
||||||
directory?: string
|
|
||||||
},
|
|
||||||
options?: Options<never, ThrowOnError>,
|
|
||||||
) {
|
|
||||||
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }])
|
|
||||||
return (options?.client ?? this.client).get<PathGetResponses, unknown, ThrowOnError>({
|
|
||||||
url: "/path",
|
|
||||||
...options,
|
|
||||||
...params,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class Worktree extends HeyApiClient {
|
export class Worktree extends HeyApiClient {
|
||||||
/**
|
/**
|
||||||
* List worktrees
|
* List worktrees
|
||||||
@@ -751,27 +709,34 @@ export class Worktree extends HeyApiClient {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Vcs extends HeyApiClient {
|
export class Resource extends HeyApiClient {
|
||||||
/**
|
/**
|
||||||
* Get VCS info
|
* Get MCP resources
|
||||||
*
|
*
|
||||||
* Retrieve version control system (VCS) information for the current project, such as git branch.
|
* Get all available MCP resources from connected servers. Optionally filter by name.
|
||||||
*/
|
*/
|
||||||
public get<ThrowOnError extends boolean = false>(
|
public list<ThrowOnError extends boolean = false>(
|
||||||
parameters?: {
|
parameters?: {
|
||||||
directory?: string
|
directory?: string
|
||||||
},
|
},
|
||||||
options?: Options<never, ThrowOnError>,
|
options?: Options<never, ThrowOnError>,
|
||||||
) {
|
) {
|
||||||
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }])
|
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }])
|
||||||
return (options?.client ?? this.client).get<VcsGetResponses, unknown, ThrowOnError>({
|
return (options?.client ?? this.client).get<ExperimentalResourceListResponses, unknown, ThrowOnError>({
|
||||||
url: "/vcs",
|
url: "/experimental/resource",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...params,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export class Experimental extends HeyApiClient {
|
||||||
|
private _resource?: Resource
|
||||||
|
get resource(): Resource {
|
||||||
|
return (this._resource ??= new Resource({ client: this.client }))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export class Session extends HeyApiClient {
|
export class Session extends HeyApiClient {
|
||||||
/**
|
/**
|
||||||
* List sessions
|
* List sessions
|
||||||
@@ -1197,9 +1162,9 @@ export class Session extends HeyApiClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get session diff
|
* Get message diff
|
||||||
*
|
*
|
||||||
* Get all file changes (diffs) made during this session.
|
* Get the file changes (diff) that resulted from a specific user message in the session.
|
||||||
*/
|
*/
|
||||||
public diff<ThrowOnError extends boolean = false>(
|
public diff<ThrowOnError extends boolean = false>(
|
||||||
parameters: {
|
parameters: {
|
||||||
@@ -1221,7 +1186,7 @@ export class Session extends HeyApiClient {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
return (options?.client ?? this.client).get<SessionDiffResponses, SessionDiffErrors, ThrowOnError>({
|
return (options?.client ?? this.client).get<SessionDiffResponses, unknown, ThrowOnError>({
|
||||||
url: "/session/{sessionID}/diff",
|
url: "/session/{sessionID}/diff",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...params,
|
||||||
@@ -1877,27 +1842,6 @@ export class Question extends HeyApiClient {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Command extends HeyApiClient {
|
|
||||||
/**
|
|
||||||
* List commands
|
|
||||||
*
|
|
||||||
* Get a list of all available commands in the OpenCode system.
|
|
||||||
*/
|
|
||||||
public list<ThrowOnError extends boolean = false>(
|
|
||||||
parameters?: {
|
|
||||||
directory?: string
|
|
||||||
},
|
|
||||||
options?: Options<never, ThrowOnError>,
|
|
||||||
) {
|
|
||||||
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }])
|
|
||||||
return (options?.client ?? this.client).get<CommandListResponses, unknown, ThrowOnError>({
|
|
||||||
url: "/command",
|
|
||||||
...options,
|
|
||||||
...params,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class Oauth extends HeyApiClient {
|
export class Oauth extends HeyApiClient {
|
||||||
/**
|
/**
|
||||||
* OAuth authorize
|
* OAuth authorize
|
||||||
@@ -2208,70 +2152,6 @@ export class File extends HeyApiClient {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class App extends HeyApiClient {
|
|
||||||
/**
|
|
||||||
* Write log
|
|
||||||
*
|
|
||||||
* Write a log entry to the server logs with specified level and metadata.
|
|
||||||
*/
|
|
||||||
public log<ThrowOnError extends boolean = false>(
|
|
||||||
parameters?: {
|
|
||||||
directory?: string
|
|
||||||
service?: string
|
|
||||||
level?: "debug" | "info" | "error" | "warn"
|
|
||||||
message?: string
|
|
||||||
extra?: {
|
|
||||||
[key: string]: unknown
|
|
||||||
}
|
|
||||||
},
|
|
||||||
options?: Options<never, ThrowOnError>,
|
|
||||||
) {
|
|
||||||
const params = buildClientParams(
|
|
||||||
[parameters],
|
|
||||||
[
|
|
||||||
{
|
|
||||||
args: [
|
|
||||||
{ in: "query", key: "directory" },
|
|
||||||
{ in: "body", key: "service" },
|
|
||||||
{ in: "body", key: "level" },
|
|
||||||
{ in: "body", key: "message" },
|
|
||||||
{ in: "body", key: "extra" },
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
)
|
|
||||||
return (options?.client ?? this.client).post<AppLogResponses, AppLogErrors, ThrowOnError>({
|
|
||||||
url: "/log",
|
|
||||||
...options,
|
|
||||||
...params,
|
|
||||||
headers: {
|
|
||||||
"Content-Type": "application/json",
|
|
||||||
...options?.headers,
|
|
||||||
...params.headers,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* List agents
|
|
||||||
*
|
|
||||||
* Get a list of all available AI agents in the OpenCode system.
|
|
||||||
*/
|
|
||||||
public agents<ThrowOnError extends boolean = false>(
|
|
||||||
parameters?: {
|
|
||||||
directory?: string
|
|
||||||
},
|
|
||||||
options?: Options<never, ThrowOnError>,
|
|
||||||
) {
|
|
||||||
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }])
|
|
||||||
return (options?.client ?? this.client).get<AppAgentsResponses, unknown, ThrowOnError>({
|
|
||||||
url: "/agent",
|
|
||||||
...options,
|
|
||||||
...params,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class Auth extends HeyApiClient {
|
export class Auth extends HeyApiClient {
|
||||||
/**
|
/**
|
||||||
* Remove MCP OAuth
|
* Remove MCP OAuth
|
||||||
@@ -2522,76 +2402,6 @@ export class Mcp extends HeyApiClient {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Resource extends HeyApiClient {
|
|
||||||
/**
|
|
||||||
* Get MCP resources
|
|
||||||
*
|
|
||||||
* Get all available MCP resources from connected servers. Optionally filter by name.
|
|
||||||
*/
|
|
||||||
public list<ThrowOnError extends boolean = false>(
|
|
||||||
parameters?: {
|
|
||||||
directory?: string
|
|
||||||
},
|
|
||||||
options?: Options<never, ThrowOnError>,
|
|
||||||
) {
|
|
||||||
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }])
|
|
||||||
return (options?.client ?? this.client).get<ExperimentalResourceListResponses, unknown, ThrowOnError>({
|
|
||||||
url: "/experimental/resource",
|
|
||||||
...options,
|
|
||||||
...params,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class Experimental extends HeyApiClient {
|
|
||||||
private _resource?: Resource
|
|
||||||
get resource(): Resource {
|
|
||||||
return (this._resource ??= new Resource({ client: this.client }))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class Lsp extends HeyApiClient {
|
|
||||||
/**
|
|
||||||
* Get LSP status
|
|
||||||
*
|
|
||||||
* Get LSP server status
|
|
||||||
*/
|
|
||||||
public status<ThrowOnError extends boolean = false>(
|
|
||||||
parameters?: {
|
|
||||||
directory?: string
|
|
||||||
},
|
|
||||||
options?: Options<never, ThrowOnError>,
|
|
||||||
) {
|
|
||||||
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }])
|
|
||||||
return (options?.client ?? this.client).get<LspStatusResponses, unknown, ThrowOnError>({
|
|
||||||
url: "/lsp",
|
|
||||||
...options,
|
|
||||||
...params,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class Formatter extends HeyApiClient {
|
|
||||||
/**
|
|
||||||
* Get formatter status
|
|
||||||
*
|
|
||||||
* Get formatter status
|
|
||||||
*/
|
|
||||||
public status<ThrowOnError extends boolean = false>(
|
|
||||||
parameters?: {
|
|
||||||
directory?: string
|
|
||||||
},
|
|
||||||
options?: Options<never, ThrowOnError>,
|
|
||||||
) {
|
|
||||||
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }])
|
|
||||||
return (options?.client ?? this.client).get<FormatterStatusResponses, unknown, ThrowOnError>({
|
|
||||||
url: "/formatter",
|
|
||||||
...options,
|
|
||||||
...params,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class Control extends HeyApiClient {
|
export class Control extends HeyApiClient {
|
||||||
/**
|
/**
|
||||||
* Get next TUI request
|
* Get next TUI request
|
||||||
@@ -2930,6 +2740,215 @@ export class Tui extends HeyApiClient {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export class Instance extends HeyApiClient {
|
||||||
|
/**
|
||||||
|
* Dispose instance
|
||||||
|
*
|
||||||
|
* Clean up and dispose the current OpenCode instance, releasing all resources.
|
||||||
|
*/
|
||||||
|
public dispose<ThrowOnError extends boolean = false>(
|
||||||
|
parameters?: {
|
||||||
|
directory?: string
|
||||||
|
},
|
||||||
|
options?: Options<never, ThrowOnError>,
|
||||||
|
) {
|
||||||
|
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }])
|
||||||
|
return (options?.client ?? this.client).post<InstanceDisposeResponses, unknown, ThrowOnError>({
|
||||||
|
url: "/instance/dispose",
|
||||||
|
...options,
|
||||||
|
...params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export class Path extends HeyApiClient {
|
||||||
|
/**
|
||||||
|
* Get paths
|
||||||
|
*
|
||||||
|
* Retrieve the current working directory and related path information for the OpenCode instance.
|
||||||
|
*/
|
||||||
|
public get<ThrowOnError extends boolean = false>(
|
||||||
|
parameters?: {
|
||||||
|
directory?: string
|
||||||
|
},
|
||||||
|
options?: Options<never, ThrowOnError>,
|
||||||
|
) {
|
||||||
|
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }])
|
||||||
|
return (options?.client ?? this.client).get<PathGetResponses, unknown, ThrowOnError>({
|
||||||
|
url: "/path",
|
||||||
|
...options,
|
||||||
|
...params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export class Vcs extends HeyApiClient {
|
||||||
|
/**
|
||||||
|
* Get VCS info
|
||||||
|
*
|
||||||
|
* Retrieve version control system (VCS) information for the current project, such as git branch.
|
||||||
|
*/
|
||||||
|
public get<ThrowOnError extends boolean = false>(
|
||||||
|
parameters?: {
|
||||||
|
directory?: string
|
||||||
|
},
|
||||||
|
options?: Options<never, ThrowOnError>,
|
||||||
|
) {
|
||||||
|
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }])
|
||||||
|
return (options?.client ?? this.client).get<VcsGetResponses, unknown, ThrowOnError>({
|
||||||
|
url: "/vcs",
|
||||||
|
...options,
|
||||||
|
...params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export class Command extends HeyApiClient {
|
||||||
|
/**
|
||||||
|
* List commands
|
||||||
|
*
|
||||||
|
* Get a list of all available commands in the OpenCode system.
|
||||||
|
*/
|
||||||
|
public list<ThrowOnError extends boolean = false>(
|
||||||
|
parameters?: {
|
||||||
|
directory?: string
|
||||||
|
},
|
||||||
|
options?: Options<never, ThrowOnError>,
|
||||||
|
) {
|
||||||
|
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }])
|
||||||
|
return (options?.client ?? this.client).get<CommandListResponses, unknown, ThrowOnError>({
|
||||||
|
url: "/command",
|
||||||
|
...options,
|
||||||
|
...params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export class App extends HeyApiClient {
|
||||||
|
/**
|
||||||
|
* Write log
|
||||||
|
*
|
||||||
|
* Write a log entry to the server logs with specified level and metadata.
|
||||||
|
*/
|
||||||
|
public log<ThrowOnError extends boolean = false>(
|
||||||
|
parameters?: {
|
||||||
|
directory?: string
|
||||||
|
service?: string
|
||||||
|
level?: "debug" | "info" | "error" | "warn"
|
||||||
|
message?: string
|
||||||
|
extra?: {
|
||||||
|
[key: string]: unknown
|
||||||
|
}
|
||||||
|
},
|
||||||
|
options?: Options<never, ThrowOnError>,
|
||||||
|
) {
|
||||||
|
const params = buildClientParams(
|
||||||
|
[parameters],
|
||||||
|
[
|
||||||
|
{
|
||||||
|
args: [
|
||||||
|
{ in: "query", key: "directory" },
|
||||||
|
{ in: "body", key: "service" },
|
||||||
|
{ in: "body", key: "level" },
|
||||||
|
{ in: "body", key: "message" },
|
||||||
|
{ in: "body", key: "extra" },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
)
|
||||||
|
return (options?.client ?? this.client).post<AppLogResponses, AppLogErrors, ThrowOnError>({
|
||||||
|
url: "/log",
|
||||||
|
...options,
|
||||||
|
...params,
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
...options?.headers,
|
||||||
|
...params.headers,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List agents
|
||||||
|
*
|
||||||
|
* Get a list of all available AI agents in the OpenCode system.
|
||||||
|
*/
|
||||||
|
public agents<ThrowOnError extends boolean = false>(
|
||||||
|
parameters?: {
|
||||||
|
directory?: string
|
||||||
|
},
|
||||||
|
options?: Options<never, ThrowOnError>,
|
||||||
|
) {
|
||||||
|
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }])
|
||||||
|
return (options?.client ?? this.client).get<AppAgentsResponses, unknown, ThrowOnError>({
|
||||||
|
url: "/agent",
|
||||||
|
...options,
|
||||||
|
...params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List skills
|
||||||
|
*
|
||||||
|
* Get a list of all available skills in the OpenCode system.
|
||||||
|
*/
|
||||||
|
public skills<ThrowOnError extends boolean = false>(
|
||||||
|
parameters?: {
|
||||||
|
directory?: string
|
||||||
|
},
|
||||||
|
options?: Options<never, ThrowOnError>,
|
||||||
|
) {
|
||||||
|
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }])
|
||||||
|
return (options?.client ?? this.client).get<AppSkillsResponses, unknown, ThrowOnError>({
|
||||||
|
url: "/skill",
|
||||||
|
...options,
|
||||||
|
...params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export class Lsp extends HeyApiClient {
|
||||||
|
/**
|
||||||
|
* Get LSP status
|
||||||
|
*
|
||||||
|
* Get LSP server status
|
||||||
|
*/
|
||||||
|
public status<ThrowOnError extends boolean = false>(
|
||||||
|
parameters?: {
|
||||||
|
directory?: string
|
||||||
|
},
|
||||||
|
options?: Options<never, ThrowOnError>,
|
||||||
|
) {
|
||||||
|
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }])
|
||||||
|
return (options?.client ?? this.client).get<LspStatusResponses, unknown, ThrowOnError>({
|
||||||
|
url: "/lsp",
|
||||||
|
...options,
|
||||||
|
...params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export class Formatter extends HeyApiClient {
|
||||||
|
/**
|
||||||
|
* Get formatter status
|
||||||
|
*
|
||||||
|
* Get formatter status
|
||||||
|
*/
|
||||||
|
public status<ThrowOnError extends boolean = false>(
|
||||||
|
parameters?: {
|
||||||
|
directory?: string
|
||||||
|
},
|
||||||
|
options?: Options<never, ThrowOnError>,
|
||||||
|
) {
|
||||||
|
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }])
|
||||||
|
return (options?.client ?? this.client).get<FormatterStatusResponses, unknown, ThrowOnError>({
|
||||||
|
url: "/formatter",
|
||||||
|
...options,
|
||||||
|
...params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export class Auth2 extends HeyApiClient {
|
export class Auth2 extends HeyApiClient {
|
||||||
/**
|
/**
|
||||||
* Set auth credentials
|
* Set auth credentials
|
||||||
@@ -3023,24 +3042,14 @@ export class OpencodeClient extends HeyApiClient {
|
|||||||
return (this._tool ??= new Tool({ client: this.client }))
|
return (this._tool ??= new Tool({ client: this.client }))
|
||||||
}
|
}
|
||||||
|
|
||||||
private _instance?: Instance
|
|
||||||
get instance(): Instance {
|
|
||||||
return (this._instance ??= new Instance({ client: this.client }))
|
|
||||||
}
|
|
||||||
|
|
||||||
private _path?: Path
|
|
||||||
get path(): Path {
|
|
||||||
return (this._path ??= new Path({ client: this.client }))
|
|
||||||
}
|
|
||||||
|
|
||||||
private _worktree?: Worktree
|
private _worktree?: Worktree
|
||||||
get worktree(): Worktree {
|
get worktree(): Worktree {
|
||||||
return (this._worktree ??= new Worktree({ client: this.client }))
|
return (this._worktree ??= new Worktree({ client: this.client }))
|
||||||
}
|
}
|
||||||
|
|
||||||
private _vcs?: Vcs
|
private _experimental?: Experimental
|
||||||
get vcs(): Vcs {
|
get experimental(): Experimental {
|
||||||
return (this._vcs ??= new Vcs({ client: this.client }))
|
return (this._experimental ??= new Experimental({ client: this.client }))
|
||||||
}
|
}
|
||||||
|
|
||||||
private _session?: Session
|
private _session?: Session
|
||||||
@@ -3063,11 +3072,6 @@ export class OpencodeClient extends HeyApiClient {
|
|||||||
return (this._question ??= new Question({ client: this.client }))
|
return (this._question ??= new Question({ client: this.client }))
|
||||||
}
|
}
|
||||||
|
|
||||||
private _command?: Command
|
|
||||||
get command(): Command {
|
|
||||||
return (this._command ??= new Command({ client: this.client }))
|
|
||||||
}
|
|
||||||
|
|
||||||
private _provider?: Provider
|
private _provider?: Provider
|
||||||
get provider(): Provider {
|
get provider(): Provider {
|
||||||
return (this._provider ??= new Provider({ client: this.client }))
|
return (this._provider ??= new Provider({ client: this.client }))
|
||||||
@@ -3083,19 +3087,39 @@ export class OpencodeClient extends HeyApiClient {
|
|||||||
return (this._file ??= new File({ client: this.client }))
|
return (this._file ??= new File({ client: this.client }))
|
||||||
}
|
}
|
||||||
|
|
||||||
private _app?: App
|
|
||||||
get app(): App {
|
|
||||||
return (this._app ??= new App({ client: this.client }))
|
|
||||||
}
|
|
||||||
|
|
||||||
private _mcp?: Mcp
|
private _mcp?: Mcp
|
||||||
get mcp(): Mcp {
|
get mcp(): Mcp {
|
||||||
return (this._mcp ??= new Mcp({ client: this.client }))
|
return (this._mcp ??= new Mcp({ client: this.client }))
|
||||||
}
|
}
|
||||||
|
|
||||||
private _experimental?: Experimental
|
private _tui?: Tui
|
||||||
get experimental(): Experimental {
|
get tui(): Tui {
|
||||||
return (this._experimental ??= new Experimental({ client: this.client }))
|
return (this._tui ??= new Tui({ client: this.client }))
|
||||||
|
}
|
||||||
|
|
||||||
|
private _instance?: Instance
|
||||||
|
get instance(): Instance {
|
||||||
|
return (this._instance ??= new Instance({ client: this.client }))
|
||||||
|
}
|
||||||
|
|
||||||
|
private _path?: Path
|
||||||
|
get path(): Path {
|
||||||
|
return (this._path ??= new Path({ client: this.client }))
|
||||||
|
}
|
||||||
|
|
||||||
|
private _vcs?: Vcs
|
||||||
|
get vcs(): Vcs {
|
||||||
|
return (this._vcs ??= new Vcs({ client: this.client }))
|
||||||
|
}
|
||||||
|
|
||||||
|
private _command?: Command
|
||||||
|
get command(): Command {
|
||||||
|
return (this._command ??= new Command({ client: this.client }))
|
||||||
|
}
|
||||||
|
|
||||||
|
private _app?: App
|
||||||
|
get app(): App {
|
||||||
|
return (this._app ??= new App({ client: this.client }))
|
||||||
}
|
}
|
||||||
|
|
||||||
private _lsp?: Lsp
|
private _lsp?: Lsp
|
||||||
@@ -3108,11 +3132,6 @@ export class OpencodeClient extends HeyApiClient {
|
|||||||
return (this._formatter ??= new Formatter({ client: this.client }))
|
return (this._formatter ??= new Formatter({ client: this.client }))
|
||||||
}
|
}
|
||||||
|
|
||||||
private _tui?: Tui
|
|
||||||
get tui(): Tui {
|
|
||||||
return (this._tui ??= new Tui({ client: this.client }))
|
|
||||||
}
|
|
||||||
|
|
||||||
private _auth?: Auth2
|
private _auth?: Auth2
|
||||||
get auth(): Auth2 {
|
get auth(): Auth2 {
|
||||||
return (this._auth ??= new Auth2({ client: this.client }))
|
return (this._auth ??= new Auth2({ client: this.client }))
|
||||||
|
|||||||
@@ -62,6 +62,13 @@ export type EventLspUpdated = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type EventFileEdited = {
|
||||||
|
type: "file.edited"
|
||||||
|
properties: {
|
||||||
|
file: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
export type FileDiff = {
|
export type FileDiff = {
|
||||||
file: string
|
file: string
|
||||||
before: string
|
before: string
|
||||||
@@ -599,13 +606,6 @@ export type EventSessionCompacted = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export type EventFileEdited = {
|
|
||||||
type: "file.edited"
|
|
||||||
properties: {
|
|
||||||
file: string
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type Todo = {
|
export type Todo = {
|
||||||
/**
|
/**
|
||||||
* Brief description of the task
|
* Brief description of the task
|
||||||
@@ -843,15 +843,15 @@ export type EventPtyDeleted = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export type EventServerConnected = {
|
export type EventGlobalDisposed = {
|
||||||
type: "server.connected"
|
type: "global.disposed"
|
||||||
properties: {
|
properties: {
|
||||||
[key: string]: unknown
|
[key: string]: unknown
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export type EventGlobalDisposed = {
|
export type EventServerConnected = {
|
||||||
type: "global.disposed"
|
type: "server.connected"
|
||||||
properties: {
|
properties: {
|
||||||
[key: string]: unknown
|
[key: string]: unknown
|
||||||
}
|
}
|
||||||
@@ -864,6 +864,7 @@ export type Event =
|
|||||||
| EventServerInstanceDisposed
|
| EventServerInstanceDisposed
|
||||||
| EventLspClientDiagnostics
|
| EventLspClientDiagnostics
|
||||||
| EventLspUpdated
|
| EventLspUpdated
|
||||||
|
| EventFileEdited
|
||||||
| EventMessageUpdated
|
| EventMessageUpdated
|
||||||
| EventMessageRemoved
|
| EventMessageRemoved
|
||||||
| EventMessagePartUpdated
|
| EventMessagePartUpdated
|
||||||
@@ -876,7 +877,6 @@ export type Event =
|
|||||||
| EventQuestionReplied
|
| EventQuestionReplied
|
||||||
| EventQuestionRejected
|
| EventQuestionRejected
|
||||||
| EventSessionCompacted
|
| EventSessionCompacted
|
||||||
| EventFileEdited
|
|
||||||
| EventTodoUpdated
|
| EventTodoUpdated
|
||||||
| EventTuiPromptAppend
|
| EventTuiPromptAppend
|
||||||
| EventTuiCommandExecute
|
| EventTuiCommandExecute
|
||||||
@@ -896,8 +896,8 @@ export type Event =
|
|||||||
| EventPtyUpdated
|
| EventPtyUpdated
|
||||||
| EventPtyExited
|
| EventPtyExited
|
||||||
| EventPtyDeleted
|
| EventPtyDeleted
|
||||||
| EventServerConnected
|
|
||||||
| EventGlobalDisposed
|
| EventGlobalDisposed
|
||||||
|
| EventServerConnected
|
||||||
|
|
||||||
export type GlobalEvent = {
|
export type GlobalEvent = {
|
||||||
directory: string
|
directory: string
|
||||||
@@ -1796,98 +1796,6 @@ export type Config = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ToolIds = Array<string>
|
|
||||||
|
|
||||||
export type ToolListItem = {
|
|
||||||
id: string
|
|
||||||
description: string
|
|
||||||
parameters: unknown
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ToolList = Array<ToolListItem>
|
|
||||||
|
|
||||||
export type Path = {
|
|
||||||
home: string
|
|
||||||
state: string
|
|
||||||
config: string
|
|
||||||
worktree: string
|
|
||||||
directory: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type Worktree = {
|
|
||||||
name: string
|
|
||||||
branch: string
|
|
||||||
directory: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type WorktreeCreateInput = {
|
|
||||||
name?: string
|
|
||||||
startCommand?: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type VcsInfo = {
|
|
||||||
branch: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type TextPartInput = {
|
|
||||||
id?: string
|
|
||||||
type: "text"
|
|
||||||
text: string
|
|
||||||
synthetic?: boolean
|
|
||||||
ignored?: boolean
|
|
||||||
time?: {
|
|
||||||
start: number
|
|
||||||
end?: number
|
|
||||||
}
|
|
||||||
metadata?: {
|
|
||||||
[key: string]: unknown
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type FilePartInput = {
|
|
||||||
id?: string
|
|
||||||
type: "file"
|
|
||||||
mime: string
|
|
||||||
filename?: string
|
|
||||||
url: string
|
|
||||||
source?: FilePartSource
|
|
||||||
}
|
|
||||||
|
|
||||||
export type AgentPartInput = {
|
|
||||||
id?: string
|
|
||||||
type: "agent"
|
|
||||||
name: string
|
|
||||||
source?: {
|
|
||||||
value: string
|
|
||||||
start: number
|
|
||||||
end: number
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type SubtaskPartInput = {
|
|
||||||
id?: string
|
|
||||||
type: "subtask"
|
|
||||||
prompt: string
|
|
||||||
description: string
|
|
||||||
agent: string
|
|
||||||
model?: {
|
|
||||||
providerID: string
|
|
||||||
modelID: string
|
|
||||||
}
|
|
||||||
command?: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type Command = {
|
|
||||||
name: string
|
|
||||||
description?: string
|
|
||||||
agent?: string
|
|
||||||
model?: string
|
|
||||||
mcp?: boolean
|
|
||||||
template: string
|
|
||||||
subtask?: boolean
|
|
||||||
hints: Array<string>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type Model = {
|
export type Model = {
|
||||||
id: string
|
id: string
|
||||||
providerID: string
|
providerID: string
|
||||||
@@ -1973,6 +1881,83 @@ export type Provider = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type ToolIds = Array<string>
|
||||||
|
|
||||||
|
export type ToolListItem = {
|
||||||
|
id: string
|
||||||
|
description: string
|
||||||
|
parameters: unknown
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ToolList = Array<ToolListItem>
|
||||||
|
|
||||||
|
export type Worktree = {
|
||||||
|
name: string
|
||||||
|
branch: string
|
||||||
|
directory: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type WorktreeCreateInput = {
|
||||||
|
name?: string
|
||||||
|
startCommand?: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type McpResource = {
|
||||||
|
name: string
|
||||||
|
uri: string
|
||||||
|
description?: string
|
||||||
|
mimeType?: string
|
||||||
|
client: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type TextPartInput = {
|
||||||
|
id?: string
|
||||||
|
type: "text"
|
||||||
|
text: string
|
||||||
|
synthetic?: boolean
|
||||||
|
ignored?: boolean
|
||||||
|
time?: {
|
||||||
|
start: number
|
||||||
|
end?: number
|
||||||
|
}
|
||||||
|
metadata?: {
|
||||||
|
[key: string]: unknown
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type FilePartInput = {
|
||||||
|
id?: string
|
||||||
|
type: "file"
|
||||||
|
mime: string
|
||||||
|
filename?: string
|
||||||
|
url: string
|
||||||
|
source?: FilePartSource
|
||||||
|
}
|
||||||
|
|
||||||
|
export type AgentPartInput = {
|
||||||
|
id?: string
|
||||||
|
type: "agent"
|
||||||
|
name: string
|
||||||
|
source?: {
|
||||||
|
value: string
|
||||||
|
start: number
|
||||||
|
end: number
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type SubtaskPartInput = {
|
||||||
|
id?: string
|
||||||
|
type: "subtask"
|
||||||
|
prompt: string
|
||||||
|
description: string
|
||||||
|
agent: string
|
||||||
|
model?: {
|
||||||
|
providerID: string
|
||||||
|
modelID: string
|
||||||
|
}
|
||||||
|
command?: string
|
||||||
|
}
|
||||||
|
|
||||||
export type ProviderAuthMethod = {
|
export type ProviderAuthMethod = {
|
||||||
type: "oauth" | "api"
|
type: "oauth" | "api"
|
||||||
label: string
|
label: string
|
||||||
@@ -2030,27 +2015,6 @@ export type File = {
|
|||||||
status: "added" | "deleted" | "modified"
|
status: "added" | "deleted" | "modified"
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Agent = {
|
|
||||||
name: string
|
|
||||||
description?: string
|
|
||||||
mode: "subagent" | "primary" | "all"
|
|
||||||
native?: boolean
|
|
||||||
hidden?: boolean
|
|
||||||
topP?: number
|
|
||||||
temperature?: number
|
|
||||||
color?: string
|
|
||||||
permission: PermissionRuleset
|
|
||||||
model?: {
|
|
||||||
modelID: string
|
|
||||||
providerID: string
|
|
||||||
}
|
|
||||||
prompt?: string
|
|
||||||
options: {
|
|
||||||
[key: string]: unknown
|
|
||||||
}
|
|
||||||
steps?: number
|
|
||||||
}
|
|
||||||
|
|
||||||
export type McpStatusConnected = {
|
export type McpStatusConnected = {
|
||||||
status: "connected"
|
status: "connected"
|
||||||
}
|
}
|
||||||
@@ -2080,12 +2044,48 @@ export type McpStatus =
|
|||||||
| McpStatusNeedsAuth
|
| McpStatusNeedsAuth
|
||||||
| McpStatusNeedsClientRegistration
|
| McpStatusNeedsClientRegistration
|
||||||
|
|
||||||
export type McpResource = {
|
export type Path = {
|
||||||
|
home: string
|
||||||
|
state: string
|
||||||
|
config: string
|
||||||
|
worktree: string
|
||||||
|
directory: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type VcsInfo = {
|
||||||
|
branch: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type Command = {
|
||||||
name: string
|
name: string
|
||||||
uri: string
|
|
||||||
description?: string
|
description?: string
|
||||||
mimeType?: string
|
agent?: string
|
||||||
client: string
|
model?: string
|
||||||
|
mcp?: boolean
|
||||||
|
template: string
|
||||||
|
subtask?: boolean
|
||||||
|
hints: Array<string>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type Agent = {
|
||||||
|
name: string
|
||||||
|
description?: string
|
||||||
|
mode: "subagent" | "primary" | "all"
|
||||||
|
native?: boolean
|
||||||
|
hidden?: boolean
|
||||||
|
topP?: number
|
||||||
|
temperature?: number
|
||||||
|
color?: string
|
||||||
|
permission: PermissionRuleset
|
||||||
|
model?: {
|
||||||
|
modelID: string
|
||||||
|
providerID: string
|
||||||
|
}
|
||||||
|
prompt?: string
|
||||||
|
options: {
|
||||||
|
[key: string]: unknown
|
||||||
|
}
|
||||||
|
steps?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type LspStatus = {
|
export type LspStatus = {
|
||||||
@@ -2469,6 +2469,29 @@ export type ConfigUpdateResponses = {
|
|||||||
|
|
||||||
export type ConfigUpdateResponse = ConfigUpdateResponses[keyof ConfigUpdateResponses]
|
export type ConfigUpdateResponse = ConfigUpdateResponses[keyof ConfigUpdateResponses]
|
||||||
|
|
||||||
|
export type ConfigProvidersData = {
|
||||||
|
body?: never
|
||||||
|
path?: never
|
||||||
|
query?: {
|
||||||
|
directory?: string
|
||||||
|
}
|
||||||
|
url: "/config/providers"
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConfigProvidersResponses = {
|
||||||
|
/**
|
||||||
|
* List of providers
|
||||||
|
*/
|
||||||
|
200: {
|
||||||
|
providers: Array<Provider>
|
||||||
|
default: {
|
||||||
|
[key: string]: string
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ConfigProvidersResponse = ConfigProvidersResponses[keyof ConfigProvidersResponses]
|
||||||
|
|
||||||
export type ToolIdsData = {
|
export type ToolIdsData = {
|
||||||
body?: never
|
body?: never
|
||||||
path?: never
|
path?: never
|
||||||
@@ -2525,42 +2548,6 @@ export type ToolListResponses = {
|
|||||||
|
|
||||||
export type ToolListResponse = ToolListResponses[keyof ToolListResponses]
|
export type ToolListResponse = ToolListResponses[keyof ToolListResponses]
|
||||||
|
|
||||||
export type InstanceDisposeData = {
|
|
||||||
body?: never
|
|
||||||
path?: never
|
|
||||||
query?: {
|
|
||||||
directory?: string
|
|
||||||
}
|
|
||||||
url: "/instance/dispose"
|
|
||||||
}
|
|
||||||
|
|
||||||
export type InstanceDisposeResponses = {
|
|
||||||
/**
|
|
||||||
* Instance disposed
|
|
||||||
*/
|
|
||||||
200: boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
export type InstanceDisposeResponse = InstanceDisposeResponses[keyof InstanceDisposeResponses]
|
|
||||||
|
|
||||||
export type PathGetData = {
|
|
||||||
body?: never
|
|
||||||
path?: never
|
|
||||||
query?: {
|
|
||||||
directory?: string
|
|
||||||
}
|
|
||||||
url: "/path"
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PathGetResponses = {
|
|
||||||
/**
|
|
||||||
* Path
|
|
||||||
*/
|
|
||||||
200: Path
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PathGetResponse = PathGetResponses[keyof PathGetResponses]
|
|
||||||
|
|
||||||
export type WorktreeListData = {
|
export type WorktreeListData = {
|
||||||
body?: never
|
body?: never
|
||||||
path?: never
|
path?: never
|
||||||
@@ -2606,23 +2593,26 @@ export type WorktreeCreateResponses = {
|
|||||||
|
|
||||||
export type WorktreeCreateResponse = WorktreeCreateResponses[keyof WorktreeCreateResponses]
|
export type WorktreeCreateResponse = WorktreeCreateResponses[keyof WorktreeCreateResponses]
|
||||||
|
|
||||||
export type VcsGetData = {
|
export type ExperimentalResourceListData = {
|
||||||
body?: never
|
body?: never
|
||||||
path?: never
|
path?: never
|
||||||
query?: {
|
query?: {
|
||||||
directory?: string
|
directory?: string
|
||||||
}
|
}
|
||||||
url: "/vcs"
|
url: "/experimental/resource"
|
||||||
}
|
}
|
||||||
|
|
||||||
export type VcsGetResponses = {
|
export type ExperimentalResourceListResponses = {
|
||||||
/**
|
/**
|
||||||
* VCS info
|
* MCP resources
|
||||||
*/
|
*/
|
||||||
200: VcsInfo
|
200: {
|
||||||
|
[key: string]: McpResource
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export type VcsGetResponse = VcsGetResponses[keyof VcsGetResponses]
|
export type ExperimentalResourceListResponse =
|
||||||
|
ExperimentalResourceListResponses[keyof ExperimentalResourceListResponses]
|
||||||
|
|
||||||
export type SessionListData = {
|
export type SessionListData = {
|
||||||
body?: never
|
body?: never
|
||||||
@@ -3058,9 +3048,6 @@ export type SessionShareResponse = SessionShareResponses[keyof SessionShareRespo
|
|||||||
export type SessionDiffData = {
|
export type SessionDiffData = {
|
||||||
body?: never
|
body?: never
|
||||||
path: {
|
path: {
|
||||||
/**
|
|
||||||
* Session ID
|
|
||||||
*/
|
|
||||||
sessionID: string
|
sessionID: string
|
||||||
}
|
}
|
||||||
query?: {
|
query?: {
|
||||||
@@ -3070,22 +3057,9 @@ export type SessionDiffData = {
|
|||||||
url: "/session/{sessionID}/diff"
|
url: "/session/{sessionID}/diff"
|
||||||
}
|
}
|
||||||
|
|
||||||
export type SessionDiffErrors = {
|
|
||||||
/**
|
|
||||||
* Bad request
|
|
||||||
*/
|
|
||||||
400: BadRequestError
|
|
||||||
/**
|
|
||||||
* Not found
|
|
||||||
*/
|
|
||||||
404: NotFoundError
|
|
||||||
}
|
|
||||||
|
|
||||||
export type SessionDiffError = SessionDiffErrors[keyof SessionDiffErrors]
|
|
||||||
|
|
||||||
export type SessionDiffResponses = {
|
export type SessionDiffResponses = {
|
||||||
/**
|
/**
|
||||||
* List of diffs
|
* Successfully retrieved diff
|
||||||
*/
|
*/
|
||||||
200: Array<FileDiff>
|
200: Array<FileDiff>
|
||||||
}
|
}
|
||||||
@@ -3757,47 +3731,6 @@ export type QuestionRejectResponses = {
|
|||||||
|
|
||||||
export type QuestionRejectResponse = QuestionRejectResponses[keyof QuestionRejectResponses]
|
export type QuestionRejectResponse = QuestionRejectResponses[keyof QuestionRejectResponses]
|
||||||
|
|
||||||
export type CommandListData = {
|
|
||||||
body?: never
|
|
||||||
path?: never
|
|
||||||
query?: {
|
|
||||||
directory?: string
|
|
||||||
}
|
|
||||||
url: "/command"
|
|
||||||
}
|
|
||||||
|
|
||||||
export type CommandListResponses = {
|
|
||||||
/**
|
|
||||||
* List of commands
|
|
||||||
*/
|
|
||||||
200: Array<Command>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type CommandListResponse = CommandListResponses[keyof CommandListResponses]
|
|
||||||
|
|
||||||
export type ConfigProvidersData = {
|
|
||||||
body?: never
|
|
||||||
path?: never
|
|
||||||
query?: {
|
|
||||||
directory?: string
|
|
||||||
}
|
|
||||||
url: "/config/providers"
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConfigProvidersResponses = {
|
|
||||||
/**
|
|
||||||
* List of providers
|
|
||||||
*/
|
|
||||||
200: {
|
|
||||||
providers: Array<Provider>
|
|
||||||
default: {
|
|
||||||
[key: string]: string
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ConfigProvidersResponse = ConfigProvidersResponses[keyof ConfigProvidersResponses]
|
|
||||||
|
|
||||||
export type ProviderListData = {
|
export type ProviderListData = {
|
||||||
body?: never
|
body?: never
|
||||||
path?: never
|
path?: never
|
||||||
@@ -4112,70 +4045,6 @@ export type FileStatusResponses = {
|
|||||||
|
|
||||||
export type FileStatusResponse = FileStatusResponses[keyof FileStatusResponses]
|
export type FileStatusResponse = FileStatusResponses[keyof FileStatusResponses]
|
||||||
|
|
||||||
export type AppLogData = {
|
|
||||||
body?: {
|
|
||||||
/**
|
|
||||||
* Service name for the log entry
|
|
||||||
*/
|
|
||||||
service: string
|
|
||||||
/**
|
|
||||||
* Log level
|
|
||||||
*/
|
|
||||||
level: "debug" | "info" | "error" | "warn"
|
|
||||||
/**
|
|
||||||
* Log message
|
|
||||||
*/
|
|
||||||
message: string
|
|
||||||
/**
|
|
||||||
* Additional metadata for the log entry
|
|
||||||
*/
|
|
||||||
extra?: {
|
|
||||||
[key: string]: unknown
|
|
||||||
}
|
|
||||||
}
|
|
||||||
path?: never
|
|
||||||
query?: {
|
|
||||||
directory?: string
|
|
||||||
}
|
|
||||||
url: "/log"
|
|
||||||
}
|
|
||||||
|
|
||||||
export type AppLogErrors = {
|
|
||||||
/**
|
|
||||||
* Bad request
|
|
||||||
*/
|
|
||||||
400: BadRequestError
|
|
||||||
}
|
|
||||||
|
|
||||||
export type AppLogError = AppLogErrors[keyof AppLogErrors]
|
|
||||||
|
|
||||||
export type AppLogResponses = {
|
|
||||||
/**
|
|
||||||
* Log entry written successfully
|
|
||||||
*/
|
|
||||||
200: boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
export type AppLogResponse = AppLogResponses[keyof AppLogResponses]
|
|
||||||
|
|
||||||
export type AppAgentsData = {
|
|
||||||
body?: never
|
|
||||||
path?: never
|
|
||||||
query?: {
|
|
||||||
directory?: string
|
|
||||||
}
|
|
||||||
url: "/agent"
|
|
||||||
}
|
|
||||||
|
|
||||||
export type AppAgentsResponses = {
|
|
||||||
/**
|
|
||||||
* List of agents
|
|
||||||
*/
|
|
||||||
200: Array<Agent>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type AppAgentsResponse = AppAgentsResponses[keyof AppAgentsResponses]
|
|
||||||
|
|
||||||
export type McpStatusData = {
|
export type McpStatusData = {
|
||||||
body?: never
|
body?: never
|
||||||
path?: never
|
path?: never
|
||||||
@@ -4408,63 +4277,6 @@ export type McpDisconnectResponses = {
|
|||||||
|
|
||||||
export type McpDisconnectResponse = McpDisconnectResponses[keyof McpDisconnectResponses]
|
export type McpDisconnectResponse = McpDisconnectResponses[keyof McpDisconnectResponses]
|
||||||
|
|
||||||
export type ExperimentalResourceListData = {
|
|
||||||
body?: never
|
|
||||||
path?: never
|
|
||||||
query?: {
|
|
||||||
directory?: string
|
|
||||||
}
|
|
||||||
url: "/experimental/resource"
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExperimentalResourceListResponses = {
|
|
||||||
/**
|
|
||||||
* MCP resources
|
|
||||||
*/
|
|
||||||
200: {
|
|
||||||
[key: string]: McpResource
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ExperimentalResourceListResponse =
|
|
||||||
ExperimentalResourceListResponses[keyof ExperimentalResourceListResponses]
|
|
||||||
|
|
||||||
export type LspStatusData = {
|
|
||||||
body?: never
|
|
||||||
path?: never
|
|
||||||
query?: {
|
|
||||||
directory?: string
|
|
||||||
}
|
|
||||||
url: "/lsp"
|
|
||||||
}
|
|
||||||
|
|
||||||
export type LspStatusResponses = {
|
|
||||||
/**
|
|
||||||
* LSP server status
|
|
||||||
*/
|
|
||||||
200: Array<LspStatus>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type LspStatusResponse = LspStatusResponses[keyof LspStatusResponses]
|
|
||||||
|
|
||||||
export type FormatterStatusData = {
|
|
||||||
body?: never
|
|
||||||
path?: never
|
|
||||||
query?: {
|
|
||||||
directory?: string
|
|
||||||
}
|
|
||||||
url: "/formatter"
|
|
||||||
}
|
|
||||||
|
|
||||||
export type FormatterStatusResponses = {
|
|
||||||
/**
|
|
||||||
* Formatter status
|
|
||||||
*/
|
|
||||||
200: Array<FormatterStatus>
|
|
||||||
}
|
|
||||||
|
|
||||||
export type FormatterStatusResponse = FormatterStatusResponses[keyof FormatterStatusResponses]
|
|
||||||
|
|
||||||
export type TuiAppendPromptData = {
|
export type TuiAppendPromptData = {
|
||||||
body?: {
|
body?: {
|
||||||
text: string
|
text: string
|
||||||
@@ -4759,6 +4571,200 @@ export type TuiControlResponseResponses = {
|
|||||||
|
|
||||||
export type TuiControlResponseResponse = TuiControlResponseResponses[keyof TuiControlResponseResponses]
|
export type TuiControlResponseResponse = TuiControlResponseResponses[keyof TuiControlResponseResponses]
|
||||||
|
|
||||||
|
export type InstanceDisposeData = {
|
||||||
|
body?: never
|
||||||
|
path?: never
|
||||||
|
query?: {
|
||||||
|
directory?: string
|
||||||
|
}
|
||||||
|
url: "/instance/dispose"
|
||||||
|
}
|
||||||
|
|
||||||
|
export type InstanceDisposeResponses = {
|
||||||
|
/**
|
||||||
|
* Instance disposed
|
||||||
|
*/
|
||||||
|
200: boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
export type InstanceDisposeResponse = InstanceDisposeResponses[keyof InstanceDisposeResponses]
|
||||||
|
|
||||||
|
export type PathGetData = {
|
||||||
|
body?: never
|
||||||
|
path?: never
|
||||||
|
query?: {
|
||||||
|
directory?: string
|
||||||
|
}
|
||||||
|
url: "/path"
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PathGetResponses = {
|
||||||
|
/**
|
||||||
|
* Path
|
||||||
|
*/
|
||||||
|
200: Path
|
||||||
|
}
|
||||||
|
|
||||||
|
export type PathGetResponse = PathGetResponses[keyof PathGetResponses]
|
||||||
|
|
||||||
|
export type VcsGetData = {
|
||||||
|
body?: never
|
||||||
|
path?: never
|
||||||
|
query?: {
|
||||||
|
directory?: string
|
||||||
|
}
|
||||||
|
url: "/vcs"
|
||||||
|
}
|
||||||
|
|
||||||
|
export type VcsGetResponses = {
|
||||||
|
/**
|
||||||
|
* VCS info
|
||||||
|
*/
|
||||||
|
200: VcsInfo
|
||||||
|
}
|
||||||
|
|
||||||
|
export type VcsGetResponse = VcsGetResponses[keyof VcsGetResponses]
|
||||||
|
|
||||||
|
export type CommandListData = {
|
||||||
|
body?: never
|
||||||
|
path?: never
|
||||||
|
query?: {
|
||||||
|
directory?: string
|
||||||
|
}
|
||||||
|
url: "/command"
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CommandListResponses = {
|
||||||
|
/**
|
||||||
|
* List of commands
|
||||||
|
*/
|
||||||
|
200: Array<Command>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type CommandListResponse = CommandListResponses[keyof CommandListResponses]
|
||||||
|
|
||||||
|
export type AppLogData = {
|
||||||
|
body?: {
|
||||||
|
/**
|
||||||
|
* Service name for the log entry
|
||||||
|
*/
|
||||||
|
service: string
|
||||||
|
/**
|
||||||
|
* Log level
|
||||||
|
*/
|
||||||
|
level: "debug" | "info" | "error" | "warn"
|
||||||
|
/**
|
||||||
|
* Log message
|
||||||
|
*/
|
||||||
|
message: string
|
||||||
|
/**
|
||||||
|
* Additional metadata for the log entry
|
||||||
|
*/
|
||||||
|
extra?: {
|
||||||
|
[key: string]: unknown
|
||||||
|
}
|
||||||
|
}
|
||||||
|
path?: never
|
||||||
|
query?: {
|
||||||
|
directory?: string
|
||||||
|
}
|
||||||
|
url: "/log"
|
||||||
|
}
|
||||||
|
|
||||||
|
export type AppLogErrors = {
|
||||||
|
/**
|
||||||
|
* Bad request
|
||||||
|
*/
|
||||||
|
400: BadRequestError
|
||||||
|
}
|
||||||
|
|
||||||
|
export type AppLogError = AppLogErrors[keyof AppLogErrors]
|
||||||
|
|
||||||
|
export type AppLogResponses = {
|
||||||
|
/**
|
||||||
|
* Log entry written successfully
|
||||||
|
*/
|
||||||
|
200: boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
export type AppLogResponse = AppLogResponses[keyof AppLogResponses]
|
||||||
|
|
||||||
|
export type AppAgentsData = {
|
||||||
|
body?: never
|
||||||
|
path?: never
|
||||||
|
query?: {
|
||||||
|
directory?: string
|
||||||
|
}
|
||||||
|
url: "/agent"
|
||||||
|
}
|
||||||
|
|
||||||
|
export type AppAgentsResponses = {
|
||||||
|
/**
|
||||||
|
* List of agents
|
||||||
|
*/
|
||||||
|
200: Array<Agent>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type AppAgentsResponse = AppAgentsResponses[keyof AppAgentsResponses]
|
||||||
|
|
||||||
|
export type AppSkillsData = {
|
||||||
|
body?: never
|
||||||
|
path?: never
|
||||||
|
query?: {
|
||||||
|
directory?: string
|
||||||
|
}
|
||||||
|
url: "/skill"
|
||||||
|
}
|
||||||
|
|
||||||
|
export type AppSkillsResponses = {
|
||||||
|
/**
|
||||||
|
* List of skills
|
||||||
|
*/
|
||||||
|
200: Array<{
|
||||||
|
name: string
|
||||||
|
description: string
|
||||||
|
location: string
|
||||||
|
}>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type AppSkillsResponse = AppSkillsResponses[keyof AppSkillsResponses]
|
||||||
|
|
||||||
|
export type LspStatusData = {
|
||||||
|
body?: never
|
||||||
|
path?: never
|
||||||
|
query?: {
|
||||||
|
directory?: string
|
||||||
|
}
|
||||||
|
url: "/lsp"
|
||||||
|
}
|
||||||
|
|
||||||
|
export type LspStatusResponses = {
|
||||||
|
/**
|
||||||
|
* LSP server status
|
||||||
|
*/
|
||||||
|
200: Array<LspStatus>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type LspStatusResponse = LspStatusResponses[keyof LspStatusResponses]
|
||||||
|
|
||||||
|
export type FormatterStatusData = {
|
||||||
|
body?: never
|
||||||
|
path?: never
|
||||||
|
query?: {
|
||||||
|
directory?: string
|
||||||
|
}
|
||||||
|
url: "/formatter"
|
||||||
|
}
|
||||||
|
|
||||||
|
export type FormatterStatusResponses = {
|
||||||
|
/**
|
||||||
|
* Formatter status
|
||||||
|
*/
|
||||||
|
200: Array<FormatterStatus>
|
||||||
|
}
|
||||||
|
|
||||||
|
export type FormatterStatusResponse = FormatterStatusResponses[keyof FormatterStatusResponses]
|
||||||
|
|
||||||
export type AuthSetData = {
|
export type AuthSetData = {
|
||||||
body?: Auth
|
body?: Auth
|
||||||
path: {
|
path: {
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user