|
@@ -862,17 +862,16 @@ export class Tool extends HeyApiClient {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export class Worktree extends HeyApiClient {
|
|
|
|
|
|
|
+export class Workspace extends HeyApiClient {
|
|
|
/**
|
|
/**
|
|
|
- * Remove worktree
|
|
|
|
|
|
|
+ * List workspaces
|
|
|
*
|
|
*
|
|
|
- * Remove a git worktree and delete its branch.
|
|
|
|
|
|
|
+ * List all workspaces.
|
|
|
*/
|
|
*/
|
|
|
- public remove<ThrowOnError extends boolean = false>(
|
|
|
|
|
|
|
+ public list<ThrowOnError extends boolean = false>(
|
|
|
parameters?: {
|
|
parameters?: {
|
|
|
directory?: string
|
|
directory?: string
|
|
|
workspace?: string
|
|
workspace?: string
|
|
|
- worktreeRemoveInput?: WorktreeRemoveInput
|
|
|
|
|
},
|
|
},
|
|
|
options?: Options<never, ThrowOnError>,
|
|
options?: Options<never, ThrowOnError>,
|
|
|
) {
|
|
) {
|
|
@@ -883,32 +882,32 @@ export class Worktree extends HeyApiClient {
|
|
|
args: [
|
|
args: [
|
|
|
{ in: "query", key: "directory" },
|
|
{ in: "query", key: "directory" },
|
|
|
{ in: "query", key: "workspace" },
|
|
{ in: "query", key: "workspace" },
|
|
|
- { key: "worktreeRemoveInput", map: "body" },
|
|
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
)
|
|
)
|
|
|
- return (options?.client ?? this.client).delete<WorktreeRemoveResponses, WorktreeRemoveErrors, ThrowOnError>({
|
|
|
|
|
- url: "/experimental/worktree",
|
|
|
|
|
|
|
+ return (options?.client ?? this.client).get<ExperimentalWorkspaceListResponses, unknown, ThrowOnError>({
|
|
|
|
|
+ url: "/experimental/workspace",
|
|
|
...options,
|
|
...options,
|
|
|
...params,
|
|
...params,
|
|
|
- headers: {
|
|
|
|
|
- "Content-Type": "application/json",
|
|
|
|
|
- ...options?.headers,
|
|
|
|
|
- ...params.headers,
|
|
|
|
|
- },
|
|
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * List worktrees
|
|
|
|
|
|
|
+ * Create workspace
|
|
|
*
|
|
*
|
|
|
- * List all sandbox worktrees for the current project.
|
|
|
|
|
|
|
+ * Create a workspace for the current project.
|
|
|
*/
|
|
*/
|
|
|
- public list<ThrowOnError extends boolean = false>(
|
|
|
|
|
|
|
+ public create<ThrowOnError extends boolean = false>(
|
|
|
parameters?: {
|
|
parameters?: {
|
|
|
directory?: string
|
|
directory?: string
|
|
|
workspace?: string
|
|
workspace?: string
|
|
|
|
|
+ body?: {
|
|
|
|
|
+ branch?: string | null
|
|
|
|
|
+ } & {
|
|
|
|
|
+ type: "worktree"
|
|
|
|
|
+ name: string
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
options?: Options<never, ThrowOnError>,
|
|
options?: Options<never, ThrowOnError>,
|
|
|
) {
|
|
) {
|
|
@@ -919,27 +918,37 @@ export class Worktree extends HeyApiClient {
|
|
|
args: [
|
|
args: [
|
|
|
{ in: "query", key: "directory" },
|
|
{ in: "query", key: "directory" },
|
|
|
{ in: "query", key: "workspace" },
|
|
{ in: "query", key: "workspace" },
|
|
|
|
|
+ { key: "body", map: "body" },
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
)
|
|
)
|
|
|
- return (options?.client ?? this.client).get<WorktreeListResponses, unknown, ThrowOnError>({
|
|
|
|
|
- url: "/experimental/worktree",
|
|
|
|
|
|
|
+ return (options?.client ?? this.client).post<
|
|
|
|
|
+ ExperimentalWorkspaceCreateResponses,
|
|
|
|
|
+ ExperimentalWorkspaceCreateErrors,
|
|
|
|
|
+ ThrowOnError
|
|
|
|
|
+ >({
|
|
|
|
|
+ url: "/experimental/workspace",
|
|
|
...options,
|
|
...options,
|
|
|
...params,
|
|
...params,
|
|
|
|
|
+ headers: {
|
|
|
|
|
+ "Content-Type": "application/json",
|
|
|
|
|
+ ...options?.headers,
|
|
|
|
|
+ ...params.headers,
|
|
|
|
|
+ },
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * Create worktree
|
|
|
|
|
|
|
+ * Remove workspace
|
|
|
*
|
|
*
|
|
|
- * Create a new git worktree for the current project and run any configured startup scripts.
|
|
|
|
|
|
|
+ * Remove an existing workspace.
|
|
|
*/
|
|
*/
|
|
|
- public create<ThrowOnError extends boolean = false>(
|
|
|
|
|
- parameters?: {
|
|
|
|
|
|
|
+ public remove<ThrowOnError extends boolean = false>(
|
|
|
|
|
+ parameters: {
|
|
|
|
|
+ id: string
|
|
|
directory?: string
|
|
directory?: string
|
|
|
workspace?: string
|
|
workspace?: string
|
|
|
- worktreeCreateInput?: WorktreeCreateInput
|
|
|
|
|
},
|
|
},
|
|
|
options?: Options<never, ThrowOnError>,
|
|
options?: Options<never, ThrowOnError>,
|
|
|
) {
|
|
) {
|
|
@@ -948,35 +957,41 @@ export class Worktree extends HeyApiClient {
|
|
|
[
|
|
[
|
|
|
{
|
|
{
|
|
|
args: [
|
|
args: [
|
|
|
|
|
+ { in: "path", key: "id" },
|
|
|
{ in: "query", key: "directory" },
|
|
{ in: "query", key: "directory" },
|
|
|
{ in: "query", key: "workspace" },
|
|
{ in: "query", key: "workspace" },
|
|
|
- { key: "worktreeCreateInput", map: "body" },
|
|
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
)
|
|
)
|
|
|
- return (options?.client ?? this.client).post<WorktreeCreateResponses, WorktreeCreateErrors, ThrowOnError>({
|
|
|
|
|
- url: "/experimental/worktree",
|
|
|
|
|
|
|
+ return (options?.client ?? this.client).delete<
|
|
|
|
|
+ ExperimentalWorkspaceRemoveResponses,
|
|
|
|
|
+ ExperimentalWorkspaceRemoveErrors,
|
|
|
|
|
+ ThrowOnError
|
|
|
|
|
+ >({
|
|
|
|
|
+ url: "/experimental/workspace/{id}",
|
|
|
...options,
|
|
...options,
|
|
|
...params,
|
|
...params,
|
|
|
- headers: {
|
|
|
|
|
- "Content-Type": "application/json",
|
|
|
|
|
- ...options?.headers,
|
|
|
|
|
- ...params.headers,
|
|
|
|
|
- },
|
|
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
|
|
+export class Session extends HeyApiClient {
|
|
|
/**
|
|
/**
|
|
|
- * Reset worktree
|
|
|
|
|
|
|
+ * List sessions
|
|
|
*
|
|
*
|
|
|
- * Reset a worktree branch to the primary default branch.
|
|
|
|
|
|
|
+ * Get a list of all OpenCode sessions across projects, sorted by most recently updated. Archived sessions are excluded by default.
|
|
|
*/
|
|
*/
|
|
|
- public reset<ThrowOnError extends boolean = false>(
|
|
|
|
|
|
|
+ public list<ThrowOnError extends boolean = false>(
|
|
|
parameters?: {
|
|
parameters?: {
|
|
|
directory?: string
|
|
directory?: string
|
|
|
workspace?: string
|
|
workspace?: string
|
|
|
- worktreeResetInput?: WorktreeResetInput
|
|
|
|
|
|
|
+ roots?: boolean
|
|
|
|
|
+ start?: number
|
|
|
|
|
+ cursor?: number
|
|
|
|
|
+ search?: string
|
|
|
|
|
+ limit?: number
|
|
|
|
|
+ archived?: boolean
|
|
|
},
|
|
},
|
|
|
options?: Options<never, ThrowOnError>,
|
|
options?: Options<never, ThrowOnError>,
|
|
|
) {
|
|
) {
|
|
@@ -987,33 +1002,32 @@ export class Worktree extends HeyApiClient {
|
|
|
args: [
|
|
args: [
|
|
|
{ in: "query", key: "directory" },
|
|
{ in: "query", key: "directory" },
|
|
|
{ in: "query", key: "workspace" },
|
|
{ in: "query", key: "workspace" },
|
|
|
- { key: "worktreeResetInput", map: "body" },
|
|
|
|
|
|
|
+ { in: "query", key: "roots" },
|
|
|
|
|
+ { in: "query", key: "start" },
|
|
|
|
|
+ { in: "query", key: "cursor" },
|
|
|
|
|
+ { in: "query", key: "search" },
|
|
|
|
|
+ { in: "query", key: "limit" },
|
|
|
|
|
+ { in: "query", key: "archived" },
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
)
|
|
)
|
|
|
- return (options?.client ?? this.client).post<WorktreeResetResponses, WorktreeResetErrors, ThrowOnError>({
|
|
|
|
|
- url: "/experimental/worktree/reset",
|
|
|
|
|
|
|
+ return (options?.client ?? this.client).get<ExperimentalSessionListResponses, unknown, ThrowOnError>({
|
|
|
|
|
+ url: "/experimental/session",
|
|
|
...options,
|
|
...options,
|
|
|
...params,
|
|
...params,
|
|
|
- headers: {
|
|
|
|
|
- "Content-Type": "application/json",
|
|
|
|
|
- ...options?.headers,
|
|
|
|
|
- ...params.headers,
|
|
|
|
|
- },
|
|
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export class Workspace extends HeyApiClient {
|
|
|
|
|
|
|
+export class Resource extends HeyApiClient {
|
|
|
/**
|
|
/**
|
|
|
- * Remove workspace
|
|
|
|
|
|
|
+ * Get MCP resources
|
|
|
*
|
|
*
|
|
|
- * Remove an existing workspace.
|
|
|
|
|
|
|
+ * Get all available MCP resources from connected servers. Optionally filter by name.
|
|
|
*/
|
|
*/
|
|
|
- public remove<ThrowOnError extends boolean = false>(
|
|
|
|
|
- parameters: {
|
|
|
|
|
- id: string
|
|
|
|
|
|
|
+ public list<ThrowOnError extends boolean = false>(
|
|
|
|
|
+ parameters?: {
|
|
|
directory?: string
|
|
directory?: string
|
|
|
workspace?: string
|
|
workspace?: string
|
|
|
},
|
|
},
|
|
@@ -1024,39 +1038,48 @@ export class Workspace extends HeyApiClient {
|
|
|
[
|
|
[
|
|
|
{
|
|
{
|
|
|
args: [
|
|
args: [
|
|
|
- { in: "path", key: "id" },
|
|
|
|
|
{ in: "query", key: "directory" },
|
|
{ in: "query", key: "directory" },
|
|
|
{ in: "query", key: "workspace" },
|
|
{ in: "query", key: "workspace" },
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
)
|
|
)
|
|
|
- return (options?.client ?? this.client).delete<
|
|
|
|
|
- ExperimentalWorkspaceRemoveResponses,
|
|
|
|
|
- ExperimentalWorkspaceRemoveErrors,
|
|
|
|
|
- ThrowOnError
|
|
|
|
|
- >({
|
|
|
|
|
- url: "/experimental/workspace/{id}",
|
|
|
|
|
|
|
+ return (options?.client ?? this.client).get<ExperimentalResourceListResponses, unknown, ThrowOnError>({
|
|
|
|
|
+ url: "/experimental/resource",
|
|
|
...options,
|
|
...options,
|
|
|
...params,
|
|
...params,
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+export class Experimental extends HeyApiClient {
|
|
|
|
|
+ private _workspace?: Workspace
|
|
|
|
|
+ get workspace(): Workspace {
|
|
|
|
|
+ return (this._workspace ??= new Workspace({ client: this.client }))
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ private _session?: Session
|
|
|
|
|
+ get session(): Session {
|
|
|
|
|
+ return (this._session ??= new Session({ client: this.client }))
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ private _resource?: Resource
|
|
|
|
|
+ get resource(): Resource {
|
|
|
|
|
+ return (this._resource ??= new Resource({ client: this.client }))
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
|
|
+export class Worktree extends HeyApiClient {
|
|
|
/**
|
|
/**
|
|
|
- * Create workspace
|
|
|
|
|
|
|
+ * Remove worktree
|
|
|
*
|
|
*
|
|
|
- * Create a workspace for the current project.
|
|
|
|
|
|
|
+ * Remove a git worktree and delete its branch.
|
|
|
*/
|
|
*/
|
|
|
- public create<ThrowOnError extends boolean = false>(
|
|
|
|
|
- parameters: {
|
|
|
|
|
- id: string
|
|
|
|
|
|
|
+ public remove<ThrowOnError extends boolean = false>(
|
|
|
|
|
+ parameters?: {
|
|
|
directory?: string
|
|
directory?: string
|
|
|
workspace?: string
|
|
workspace?: string
|
|
|
- branch?: string | null
|
|
|
|
|
- config?: {
|
|
|
|
|
- directory: string
|
|
|
|
|
- type: "worktree"
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ worktreeRemoveInput?: WorktreeRemoveInput
|
|
|
},
|
|
},
|
|
|
options?: Options<never, ThrowOnError>,
|
|
options?: Options<never, ThrowOnError>,
|
|
|
) {
|
|
) {
|
|
@@ -1065,21 +1088,15 @@ export class Workspace extends HeyApiClient {
|
|
|
[
|
|
[
|
|
|
{
|
|
{
|
|
|
args: [
|
|
args: [
|
|
|
- { in: "path", key: "id" },
|
|
|
|
|
{ in: "query", key: "directory" },
|
|
{ in: "query", key: "directory" },
|
|
|
{ in: "query", key: "workspace" },
|
|
{ in: "query", key: "workspace" },
|
|
|
- { in: "body", key: "branch" },
|
|
|
|
|
- { in: "body", key: "config" },
|
|
|
|
|
|
|
+ { key: "worktreeRemoveInput", map: "body" },
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
)
|
|
)
|
|
|
- return (options?.client ?? this.client).post<
|
|
|
|
|
- ExperimentalWorkspaceCreateResponses,
|
|
|
|
|
- ExperimentalWorkspaceCreateErrors,
|
|
|
|
|
- ThrowOnError
|
|
|
|
|
- >({
|
|
|
|
|
- url: "/experimental/workspace/{id}",
|
|
|
|
|
|
|
+ return (options?.client ?? this.client).delete<WorktreeRemoveResponses, WorktreeRemoveErrors, ThrowOnError>({
|
|
|
|
|
+ url: "/experimental/worktree",
|
|
|
...options,
|
|
...options,
|
|
|
...params,
|
|
...params,
|
|
|
headers: {
|
|
headers: {
|
|
@@ -1091,9 +1108,9 @@ export class Workspace extends HeyApiClient {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * List workspaces
|
|
|
|
|
|
|
+ * List worktrees
|
|
|
*
|
|
*
|
|
|
- * List all workspaces.
|
|
|
|
|
|
|
+ * List all sandbox worktrees for the current project.
|
|
|
*/
|
|
*/
|
|
|
public list<ThrowOnError extends boolean = false>(
|
|
public list<ThrowOnError extends boolean = false>(
|
|
|
parameters?: {
|
|
parameters?: {
|
|
@@ -1113,30 +1130,23 @@ export class Workspace extends HeyApiClient {
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
)
|
|
)
|
|
|
- return (options?.client ?? this.client).get<ExperimentalWorkspaceListResponses, unknown, ThrowOnError>({
|
|
|
|
|
- url: "/experimental/workspace",
|
|
|
|
|
|
|
+ return (options?.client ?? this.client).get<WorktreeListResponses, unknown, ThrowOnError>({
|
|
|
|
|
+ url: "/experimental/worktree",
|
|
|
...options,
|
|
...options,
|
|
|
...params,
|
|
...params,
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
-export class Session extends HeyApiClient {
|
|
|
|
|
/**
|
|
/**
|
|
|
- * List sessions
|
|
|
|
|
|
|
+ * Create worktree
|
|
|
*
|
|
*
|
|
|
- * Get a list of all OpenCode sessions across projects, sorted by most recently updated. Archived sessions are excluded by default.
|
|
|
|
|
|
|
+ * Create a new git worktree for the current project and run any configured startup scripts.
|
|
|
*/
|
|
*/
|
|
|
- public list<ThrowOnError extends boolean = false>(
|
|
|
|
|
|
|
+ public create<ThrowOnError extends boolean = false>(
|
|
|
parameters?: {
|
|
parameters?: {
|
|
|
directory?: string
|
|
directory?: string
|
|
|
workspace?: string
|
|
workspace?: string
|
|
|
- roots?: boolean
|
|
|
|
|
- start?: number
|
|
|
|
|
- cursor?: number
|
|
|
|
|
- search?: string
|
|
|
|
|
- limit?: number
|
|
|
|
|
- archived?: boolean
|
|
|
|
|
|
|
+ worktreeCreateInput?: WorktreeCreateInput
|
|
|
},
|
|
},
|
|
|
options?: Options<never, ThrowOnError>,
|
|
options?: Options<never, ThrowOnError>,
|
|
|
) {
|
|
) {
|
|
@@ -1147,34 +1157,33 @@ export class Session extends HeyApiClient {
|
|
|
args: [
|
|
args: [
|
|
|
{ in: "query", key: "directory" },
|
|
{ in: "query", key: "directory" },
|
|
|
{ in: "query", key: "workspace" },
|
|
{ in: "query", key: "workspace" },
|
|
|
- { in: "query", key: "roots" },
|
|
|
|
|
- { in: "query", key: "start" },
|
|
|
|
|
- { in: "query", key: "cursor" },
|
|
|
|
|
- { in: "query", key: "search" },
|
|
|
|
|
- { in: "query", key: "limit" },
|
|
|
|
|
- { in: "query", key: "archived" },
|
|
|
|
|
|
|
+ { key: "worktreeCreateInput", map: "body" },
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
)
|
|
)
|
|
|
- return (options?.client ?? this.client).get<ExperimentalSessionListResponses, unknown, ThrowOnError>({
|
|
|
|
|
- url: "/experimental/session",
|
|
|
|
|
|
|
+ return (options?.client ?? this.client).post<WorktreeCreateResponses, WorktreeCreateErrors, ThrowOnError>({
|
|
|
|
|
+ url: "/experimental/worktree",
|
|
|
...options,
|
|
...options,
|
|
|
...params,
|
|
...params,
|
|
|
|
|
+ headers: {
|
|
|
|
|
+ "Content-Type": "application/json",
|
|
|
|
|
+ ...options?.headers,
|
|
|
|
|
+ ...params.headers,
|
|
|
|
|
+ },
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
|
|
|
|
|
-export class Resource extends HeyApiClient {
|
|
|
|
|
/**
|
|
/**
|
|
|
- * Get MCP resources
|
|
|
|
|
|
|
+ * Reset worktree
|
|
|
*
|
|
*
|
|
|
- * Get all available MCP resources from connected servers. Optionally filter by name.
|
|
|
|
|
|
|
+ * Reset a worktree branch to the primary default branch.
|
|
|
*/
|
|
*/
|
|
|
- public list<ThrowOnError extends boolean = false>(
|
|
|
|
|
|
|
+ public reset<ThrowOnError extends boolean = false>(
|
|
|
parameters?: {
|
|
parameters?: {
|
|
|
directory?: string
|
|
directory?: string
|
|
|
workspace?: string
|
|
workspace?: string
|
|
|
|
|
+ worktreeResetInput?: WorktreeResetInput
|
|
|
},
|
|
},
|
|
|
options?: Options<never, ThrowOnError>,
|
|
options?: Options<never, ThrowOnError>,
|
|
|
) {
|
|
) {
|
|
@@ -1185,35 +1194,24 @@ export class Resource extends HeyApiClient {
|
|
|
args: [
|
|
args: [
|
|
|
{ in: "query", key: "directory" },
|
|
{ in: "query", key: "directory" },
|
|
|
{ in: "query", key: "workspace" },
|
|
{ in: "query", key: "workspace" },
|
|
|
|
|
+ { key: "worktreeResetInput", map: "body" },
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
)
|
|
)
|
|
|
- return (options?.client ?? this.client).get<ExperimentalResourceListResponses, unknown, ThrowOnError>({
|
|
|
|
|
- url: "/experimental/resource",
|
|
|
|
|
|
|
+ return (options?.client ?? this.client).post<WorktreeResetResponses, WorktreeResetErrors, ThrowOnError>({
|
|
|
|
|
+ url: "/experimental/worktree/reset",
|
|
|
...options,
|
|
...options,
|
|
|
...params,
|
|
...params,
|
|
|
|
|
+ headers: {
|
|
|
|
|
+ "Content-Type": "application/json",
|
|
|
|
|
+ ...options?.headers,
|
|
|
|
|
+ ...params.headers,
|
|
|
|
|
+ },
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export class Experimental extends HeyApiClient {
|
|
|
|
|
- private _workspace?: Workspace
|
|
|
|
|
- get workspace(): Workspace {
|
|
|
|
|
- return (this._workspace ??= new Workspace({ client: this.client }))
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- private _session?: Session
|
|
|
|
|
- get session(): Session {
|
|
|
|
|
- return (this._session ??= new Session({ client: this.client }))
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- private _resource?: Resource
|
|
|
|
|
- get resource(): Resource {
|
|
|
|
|
- return (this._resource ??= new Resource({ client: this.client }))
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
export class Session2 extends HeyApiClient {
|
|
export class Session2 extends HeyApiClient {
|
|
|
/**
|
|
/**
|
|
|
* List sessions
|
|
* List sessions
|
|
@@ -3898,16 +3896,16 @@ export class OpencodeClient extends HeyApiClient {
|
|
|
return (this._tool ??= new Tool({ client: this.client }))
|
|
return (this._tool ??= new Tool({ client: this.client }))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- private _worktree?: Worktree
|
|
|
|
|
- get worktree(): Worktree {
|
|
|
|
|
- return (this._worktree ??= new Worktree({ client: this.client }))
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
private _experimental?: Experimental
|
|
private _experimental?: Experimental
|
|
|
get experimental(): Experimental {
|
|
get experimental(): Experimental {
|
|
|
return (this._experimental ??= new Experimental({ client: this.client }))
|
|
return (this._experimental ??= new Experimental({ client: this.client }))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ private _worktree?: Worktree
|
|
|
|
|
+ get worktree(): Worktree {
|
|
|
|
|
+ return (this._worktree ??= new Worktree({ client: this.client }))
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
private _session?: Session2
|
|
private _session?: Session2
|
|
|
get session(): Session2 {
|
|
get session(): Session2 {
|
|
|
return (this._session ??= new Session2({ client: this.client }))
|
|
return (this._session ??= new Session2({ client: this.client }))
|