@librecode/sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/client.d.ts +7 -0
  2. package/dist/client.js +25 -0
  3. package/dist/gen/client/client.gen.d.ts +2 -0
  4. package/dist/gen/client/client.gen.js +165 -0
  5. package/dist/gen/client/index.d.ts +7 -0
  6. package/dist/gen/client/index.js +5 -0
  7. package/dist/gen/client/types.gen.d.ts +127 -0
  8. package/dist/gen/client/types.gen.js +2 -0
  9. package/dist/gen/client/utils.gen.d.ts +38 -0
  10. package/dist/gen/client/utils.gen.js +226 -0
  11. package/dist/gen/client.gen.d.ts +12 -0
  12. package/dist/gen/client.gen.js +5 -0
  13. package/dist/gen/core/auth.gen.d.ts +18 -0
  14. package/dist/gen/core/auth.gen.js +14 -0
  15. package/dist/gen/core/bodySerializer.gen.d.ts +17 -0
  16. package/dist/gen/core/bodySerializer.gen.js +57 -0
  17. package/dist/gen/core/params.gen.d.ts +33 -0
  18. package/dist/gen/core/params.gen.js +89 -0
  19. package/dist/gen/core/pathSerializer.gen.d.ts +33 -0
  20. package/dist/gen/core/pathSerializer.gen.js +106 -0
  21. package/dist/gen/core/queryKeySerializer.gen.d.ts +18 -0
  22. package/dist/gen/core/queryKeySerializer.gen.js +93 -0
  23. package/dist/gen/core/serverSentEvents.gen.d.ts +59 -0
  24. package/dist/gen/core/serverSentEvents.gen.js +117 -0
  25. package/dist/gen/core/types.gen.d.ts +78 -0
  26. package/dist/gen/core/types.gen.js +2 -0
  27. package/dist/gen/core/utils.gen.d.ts +14 -0
  28. package/dist/gen/core/utils.gen.js +69 -0
  29. package/dist/gen/sdk.gen.d.ts +403 -0
  30. package/dist/gen/sdk.gen.js +881 -0
  31. package/dist/gen/types.gen.d.ts +3393 -0
  32. package/dist/gen/types.gen.js +2 -0
  33. package/dist/index.d.ts +10 -0
  34. package/dist/index.js +16 -0
  35. package/dist/server.d.ts +23 -0
  36. package/dist/server.js +94 -0
  37. package/dist/v2/client.d.ts +8 -0
  38. package/dist/v2/client.js +33 -0
  39. package/dist/v2/gen/client/client.gen.d.ts +2 -0
  40. package/dist/v2/gen/client/client.gen.js +232 -0
  41. package/dist/v2/gen/client/index.d.ts +8 -0
  42. package/dist/v2/gen/client/index.js +6 -0
  43. package/dist/v2/gen/client/types.gen.d.ts +117 -0
  44. package/dist/v2/gen/client/types.gen.js +2 -0
  45. package/dist/v2/gen/client/utils.gen.d.ts +33 -0
  46. package/dist/v2/gen/client/utils.gen.js +226 -0
  47. package/dist/v2/gen/client.gen.d.ts +12 -0
  48. package/dist/v2/gen/client.gen.js +3 -0
  49. package/dist/v2/gen/core/auth.gen.d.ts +18 -0
  50. package/dist/v2/gen/core/auth.gen.js +14 -0
  51. package/dist/v2/gen/core/bodySerializer.gen.d.ts +25 -0
  52. package/dist/v2/gen/core/bodySerializer.gen.js +57 -0
  53. package/dist/v2/gen/core/params.gen.d.ts +43 -0
  54. package/dist/v2/gen/core/params.gen.js +102 -0
  55. package/dist/v2/gen/core/pathSerializer.gen.d.ts +33 -0
  56. package/dist/v2/gen/core/pathSerializer.gen.js +106 -0
  57. package/dist/v2/gen/core/queryKeySerializer.gen.d.ts +18 -0
  58. package/dist/v2/gen/core/queryKeySerializer.gen.js +93 -0
  59. package/dist/v2/gen/core/serverSentEvents.gen.d.ts +71 -0
  60. package/dist/v2/gen/core/serverSentEvents.gen.js +133 -0
  61. package/dist/v2/gen/core/types.gen.d.ts +78 -0
  62. package/dist/v2/gen/core/types.gen.js +2 -0
  63. package/dist/v2/gen/core/utils.gen.d.ts +19 -0
  64. package/dist/v2/gen/core/utils.gen.js +87 -0
  65. package/dist/v2/gen/sdk.gen.d.ts +1291 -0
  66. package/dist/v2/gen/sdk.gen.js +2611 -0
  67. package/dist/v2/gen/types.gen.d.ts +4318 -0
  68. package/dist/v2/gen/types.gen.js +2 -0
  69. package/dist/v2/index.d.ts +10 -0
  70. package/dist/v2/index.js +16 -0
  71. package/dist/v2/server.d.ts +23 -0
  72. package/dist/v2/server.js +94 -0
  73. package/package.json +52 -0
@@ -0,0 +1,1291 @@
1
+ import { type Client, type Options as Options2, type TDataShape } from "./client/index.js";
2
+ import type { AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillsResponses, Auth as Auth3, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config3, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiSessionSelect, EventTuiToastShow, ExperimentalResourceListResponses, ExperimentalSessionListResponses, ExperimentalWorkspaceCreateErrors, ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceListResponses, ExperimentalWorkspaceRemoveErrors, ExperimentalWorkspaceRemoveResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, InstanceDisposeResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, ProjectCurrentResponses, ProjectInitGitResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProviderApiAuthorizeErrors, ProviderApiAuthorizeResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteMessageErrors, SessionDeleteMessageResponses, SessionDeleteResponses, SessionDiffResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShareErrors, SessionShareResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUnshareErrors, SessionUnshareResponses, SessionUpdateErrors, SessionUpdateResponses, SubtaskPartInput, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptResponses, TuiControlNextResponses, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpResponses, TuiOpenModelsResponses, TuiOpenSessionsResponses, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastResponses, TuiSubmitPromptResponses, VcsGetResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
3
+ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
4
+ /**
5
+ * You can provide a client instance returned by `createClient()` instead of
6
+ * individual options. This might be also useful if you want to implement a
7
+ * custom client.
8
+ */
9
+ client?: Client;
10
+ /**
11
+ * You can pass arbitrary values through the `meta` object. This can be
12
+ * used to access values that aren't defined as part of the SDK function.
13
+ */
14
+ meta?: Record<string, unknown>;
15
+ };
16
+ declare class HeyApiClient {
17
+ protected client: Client;
18
+ constructor(args?: {
19
+ client?: Client;
20
+ });
21
+ }
22
+ declare class HeyApiRegistry<T> {
23
+ private readonly defaultKey;
24
+ private readonly instances;
25
+ get(key?: string): T;
26
+ set(value: T, key?: string): void;
27
+ }
28
+ export declare class Config extends HeyApiClient {
29
+ /**
30
+ * Get global configuration
31
+ *
32
+ * Retrieve the current global LibreCode configuration settings and preferences.
33
+ */
34
+ get<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GlobalConfigGetResponses, unknown, ThrowOnError, "fields">;
35
+ /**
36
+ * Update global configuration
37
+ *
38
+ * Update global LibreCode configuration settings and preferences.
39
+ */
40
+ update<ThrowOnError extends boolean = false>(parameters?: {
41
+ config?: Config3;
42
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GlobalConfigUpdateResponses, GlobalConfigUpdateErrors, ThrowOnError, "fields">;
43
+ }
44
+ export declare class Global extends HeyApiClient {
45
+ /**
46
+ * Get health
47
+ *
48
+ * Get health information about the LibreCode server.
49
+ */
50
+ health<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GlobalHealthResponses, unknown, ThrowOnError, "fields">;
51
+ /**
52
+ * Get global events
53
+ *
54
+ * Subscribe to global events from the LibreCode system using server-sent events.
55
+ */
56
+ event<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): Promise<import("./core/serverSentEvents.gen.js").ServerSentEventsResult<GlobalEventResponses, unknown>>;
57
+ /**
58
+ * Dispose instance
59
+ *
60
+ * Clean up and dispose all LibreCode instances, releasing all resources.
61
+ */
62
+ dispose<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GlobalDisposeResponses, unknown, ThrowOnError, "fields">;
63
+ private _config?;
64
+ get config(): Config;
65
+ }
66
+ export declare class Auth extends HeyApiClient {
67
+ /**
68
+ * Remove auth credentials
69
+ *
70
+ * Remove authentication credentials
71
+ */
72
+ remove<ThrowOnError extends boolean = false>(parameters: {
73
+ providerID: string;
74
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AuthRemoveResponses, AuthRemoveErrors, ThrowOnError, "fields">;
75
+ /**
76
+ * Set auth credentials
77
+ *
78
+ * Set authentication credentials
79
+ */
80
+ set<ThrowOnError extends boolean = false>(parameters: {
81
+ providerID: string;
82
+ auth?: Auth3;
83
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AuthSetResponses, AuthSetErrors, ThrowOnError, "fields">;
84
+ }
85
+ export declare class Project extends HeyApiClient {
86
+ /**
87
+ * List all projects
88
+ *
89
+ * Get a list of projects that have been opened with LibreCode.
90
+ */
91
+ list<ThrowOnError extends boolean = false>(parameters?: {
92
+ directory?: string;
93
+ workspace?: string;
94
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProjectListResponses, unknown, ThrowOnError, "fields">;
95
+ /**
96
+ * Get current project
97
+ *
98
+ * Retrieve the currently active project that LibreCode is working with.
99
+ */
100
+ current<ThrowOnError extends boolean = false>(parameters?: {
101
+ directory?: string;
102
+ workspace?: string;
103
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProjectCurrentResponses, unknown, ThrowOnError, "fields">;
104
+ /**
105
+ * Initialize git repository
106
+ *
107
+ * Create a git repository for the current project and return the refreshed project info.
108
+ */
109
+ initGit<ThrowOnError extends boolean = false>(parameters?: {
110
+ directory?: string;
111
+ workspace?: string;
112
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProjectInitGitResponses, unknown, ThrowOnError, "fields">;
113
+ /**
114
+ * Update project
115
+ *
116
+ * Update project properties such as name, icon, and commands.
117
+ */
118
+ update<ThrowOnError extends boolean = false>(parameters: {
119
+ projectID: string;
120
+ directory?: string;
121
+ workspace?: string;
122
+ name?: string;
123
+ icon?: {
124
+ url?: string;
125
+ override?: string;
126
+ color?: string;
127
+ };
128
+ commands?: {
129
+ /**
130
+ * Startup script to run when creating a new workspace (worktree)
131
+ */
132
+ start?: string;
133
+ };
134
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProjectUpdateResponses, ProjectUpdateErrors, ThrowOnError, "fields">;
135
+ }
136
+ export declare class Pty extends HeyApiClient {
137
+ /**
138
+ * List PTY sessions
139
+ *
140
+ * Get a list of all active pseudo-terminal (PTY) sessions managed by LibreCode.
141
+ */
142
+ list<ThrowOnError extends boolean = false>(parameters?: {
143
+ directory?: string;
144
+ workspace?: string;
145
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyListResponses, unknown, ThrowOnError, "fields">;
146
+ /**
147
+ * Create PTY session
148
+ *
149
+ * Create a new pseudo-terminal (PTY) session for running shell commands and processes.
150
+ */
151
+ create<ThrowOnError extends boolean = false>(parameters?: {
152
+ directory?: string;
153
+ workspace?: string;
154
+ command?: string;
155
+ args?: Array<string>;
156
+ cwd?: string;
157
+ title?: string;
158
+ env?: {
159
+ [key: string]: string;
160
+ };
161
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyCreateResponses, PtyCreateErrors, ThrowOnError, "fields">;
162
+ /**
163
+ * Remove PTY session
164
+ *
165
+ * Remove and terminate a specific pseudo-terminal (PTY) session.
166
+ */
167
+ remove<ThrowOnError extends boolean = false>(parameters: {
168
+ ptyID: string;
169
+ directory?: string;
170
+ workspace?: string;
171
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyRemoveResponses, PtyRemoveErrors, ThrowOnError, "fields">;
172
+ /**
173
+ * Get PTY session
174
+ *
175
+ * Retrieve detailed information about a specific pseudo-terminal (PTY) session.
176
+ */
177
+ get<ThrowOnError extends boolean = false>(parameters: {
178
+ ptyID: string;
179
+ directory?: string;
180
+ workspace?: string;
181
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyGetResponses, PtyGetErrors, ThrowOnError, "fields">;
182
+ /**
183
+ * Update PTY session
184
+ *
185
+ * Update properties of an existing pseudo-terminal (PTY) session.
186
+ */
187
+ update<ThrowOnError extends boolean = false>(parameters: {
188
+ ptyID: string;
189
+ directory?: string;
190
+ workspace?: string;
191
+ title?: string;
192
+ size?: {
193
+ rows: number;
194
+ cols: number;
195
+ };
196
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyUpdateResponses, PtyUpdateErrors, ThrowOnError, "fields">;
197
+ /**
198
+ * Connect to PTY session
199
+ *
200
+ * Establish a WebSocket connection to interact with a pseudo-terminal (PTY) session in real-time.
201
+ */
202
+ connect<ThrowOnError extends boolean = false>(parameters: {
203
+ ptyID: string;
204
+ directory?: string;
205
+ workspace?: string;
206
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyConnectResponses, PtyConnectErrors, ThrowOnError, "fields">;
207
+ }
208
+ export declare class Config2 extends HeyApiClient {
209
+ /**
210
+ * Get configuration
211
+ *
212
+ * Retrieve the current LibreCode configuration settings and preferences.
213
+ */
214
+ get<ThrowOnError extends boolean = false>(parameters?: {
215
+ directory?: string;
216
+ workspace?: string;
217
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigGetResponses, unknown, ThrowOnError, "fields">;
218
+ /**
219
+ * Update configuration
220
+ *
221
+ * Update LibreCode configuration settings and preferences.
222
+ */
223
+ update<ThrowOnError extends boolean = false>(parameters?: {
224
+ directory?: string;
225
+ workspace?: string;
226
+ config?: Config3;
227
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigUpdateResponses, ConfigUpdateErrors, ThrowOnError, "fields">;
228
+ /**
229
+ * List config providers
230
+ *
231
+ * Get a list of all configured AI providers and their default models.
232
+ */
233
+ providers<ThrowOnError extends boolean = false>(parameters?: {
234
+ directory?: string;
235
+ workspace?: string;
236
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigProvidersResponses, unknown, ThrowOnError, "fields">;
237
+ }
238
+ export declare class Tool extends HeyApiClient {
239
+ /**
240
+ * List tool IDs
241
+ *
242
+ * Get a list of all available tool IDs, including both built-in tools and dynamically registered tools.
243
+ */
244
+ ids<ThrowOnError extends boolean = false>(parameters?: {
245
+ directory?: string;
246
+ workspace?: string;
247
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ToolIdsResponses, ToolIdsErrors, ThrowOnError, "fields">;
248
+ /**
249
+ * List tools
250
+ *
251
+ * Get a list of available tools with their JSON schema parameters for a specific provider and model combination.
252
+ */
253
+ list<ThrowOnError extends boolean = false>(parameters: {
254
+ directory?: string;
255
+ workspace?: string;
256
+ provider: string;
257
+ model: string;
258
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ToolListResponses, ToolListErrors, ThrowOnError, "fields">;
259
+ }
260
+ export declare class Workspace extends HeyApiClient {
261
+ /**
262
+ * List workspaces
263
+ *
264
+ * List all workspaces.
265
+ */
266
+ list<ThrowOnError extends boolean = false>(parameters?: {
267
+ directory?: string;
268
+ workspace?: string;
269
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalWorkspaceListResponses, unknown, ThrowOnError, "fields">;
270
+ /**
271
+ * Create workspace
272
+ *
273
+ * Create a workspace for the current project.
274
+ */
275
+ create<ThrowOnError extends boolean = false>(parameters?: {
276
+ directory?: string;
277
+ workspace?: string;
278
+ id?: string;
279
+ type?: string;
280
+ branch?: string | null;
281
+ extra?: unknown | null;
282
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceCreateErrors, ThrowOnError, "fields">;
283
+ /**
284
+ * Remove workspace
285
+ *
286
+ * Remove an existing workspace.
287
+ */
288
+ remove<ThrowOnError extends boolean = false>(parameters: {
289
+ id: string;
290
+ directory?: string;
291
+ workspace?: string;
292
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalWorkspaceRemoveResponses, ExperimentalWorkspaceRemoveErrors, ThrowOnError, "fields">;
293
+ }
294
+ export declare class Session extends HeyApiClient {
295
+ /**
296
+ * List sessions
297
+ *
298
+ * Get a list of all LibreCode sessions across projects, sorted by most recently updated. Archived sessions are excluded by default.
299
+ */
300
+ list<ThrowOnError extends boolean = false>(parameters?: {
301
+ directory?: string;
302
+ workspace?: string;
303
+ roots?: boolean;
304
+ start?: number;
305
+ cursor?: number;
306
+ search?: string;
307
+ limit?: number;
308
+ archived?: boolean;
309
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalSessionListResponses, unknown, ThrowOnError, "fields">;
310
+ }
311
+ export declare class Resource extends HeyApiClient {
312
+ /**
313
+ * Get MCP resources
314
+ *
315
+ * Get all available MCP resources from connected servers. Optionally filter by name.
316
+ */
317
+ list<ThrowOnError extends boolean = false>(parameters?: {
318
+ directory?: string;
319
+ workspace?: string;
320
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalResourceListResponses, unknown, ThrowOnError, "fields">;
321
+ }
322
+ export declare class Experimental extends HeyApiClient {
323
+ private _workspace?;
324
+ get workspace(): Workspace;
325
+ private _session?;
326
+ get session(): Session;
327
+ private _resource?;
328
+ get resource(): Resource;
329
+ }
330
+ export declare class Worktree extends HeyApiClient {
331
+ /**
332
+ * Remove worktree
333
+ *
334
+ * Remove a git worktree and delete its branch.
335
+ */
336
+ remove<ThrowOnError extends boolean = false>(parameters?: {
337
+ directory?: string;
338
+ workspace?: string;
339
+ worktreeRemoveInput?: WorktreeRemoveInput;
340
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<WorktreeRemoveResponses, WorktreeRemoveErrors, ThrowOnError, "fields">;
341
+ /**
342
+ * List worktrees
343
+ *
344
+ * List all sandbox worktrees for the current project.
345
+ */
346
+ list<ThrowOnError extends boolean = false>(parameters?: {
347
+ directory?: string;
348
+ workspace?: string;
349
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<WorktreeListResponses, unknown, ThrowOnError, "fields">;
350
+ /**
351
+ * Create worktree
352
+ *
353
+ * Create a new git worktree for the current project and run any configured startup scripts.
354
+ */
355
+ create<ThrowOnError extends boolean = false>(parameters?: {
356
+ directory?: string;
357
+ workspace?: string;
358
+ worktreeCreateInput?: WorktreeCreateInput;
359
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<WorktreeCreateResponses, WorktreeCreateErrors, ThrowOnError, "fields">;
360
+ /**
361
+ * Reset worktree
362
+ *
363
+ * Reset a worktree branch to the primary default branch.
364
+ */
365
+ reset<ThrowOnError extends boolean = false>(parameters?: {
366
+ directory?: string;
367
+ workspace?: string;
368
+ worktreeResetInput?: WorktreeResetInput;
369
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<WorktreeResetResponses, WorktreeResetErrors, ThrowOnError, "fields">;
370
+ }
371
+ export declare class Session2 extends HeyApiClient {
372
+ /**
373
+ * List sessions
374
+ *
375
+ * Get a list of all LibreCode sessions, sorted by most recently updated.
376
+ */
377
+ list<ThrowOnError extends boolean = false>(parameters?: {
378
+ directory?: string;
379
+ workspace?: string;
380
+ roots?: boolean;
381
+ start?: number;
382
+ search?: string;
383
+ limit?: number;
384
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionListResponses, unknown, ThrowOnError, "fields">;
385
+ /**
386
+ * Create session
387
+ *
388
+ * Create a new LibreCode session for interacting with AI assistants and managing conversations.
389
+ */
390
+ create<ThrowOnError extends boolean = false>(parameters?: {
391
+ directory?: string;
392
+ workspace?: string;
393
+ parentID?: string;
394
+ title?: string;
395
+ permission?: PermissionRuleset;
396
+ workspaceID?: string;
397
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionCreateResponses, SessionCreateErrors, ThrowOnError, "fields">;
398
+ /**
399
+ * Get session status
400
+ *
401
+ * Retrieve the current status of all sessions, including active, idle, and completed states.
402
+ */
403
+ status<ThrowOnError extends boolean = false>(parameters?: {
404
+ directory?: string;
405
+ workspace?: string;
406
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionStatusResponses, SessionStatusErrors, ThrowOnError, "fields">;
407
+ /**
408
+ * Delete session
409
+ *
410
+ * Delete a session and permanently remove all associated data, including messages and history.
411
+ */
412
+ delete<ThrowOnError extends boolean = false>(parameters: {
413
+ sessionID: string;
414
+ directory?: string;
415
+ workspace?: string;
416
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionDeleteResponses, SessionDeleteErrors, ThrowOnError, "fields">;
417
+ /**
418
+ * Get session
419
+ *
420
+ * Retrieve detailed information about a specific LibreCode session.
421
+ */
422
+ get<ThrowOnError extends boolean = false>(parameters: {
423
+ sessionID: string;
424
+ directory?: string;
425
+ workspace?: string;
426
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionGetResponses, SessionGetErrors, ThrowOnError, "fields">;
427
+ /**
428
+ * Update session
429
+ *
430
+ * Update properties of an existing session, such as title or other metadata.
431
+ */
432
+ update<ThrowOnError extends boolean = false>(parameters: {
433
+ sessionID: string;
434
+ directory?: string;
435
+ workspace?: string;
436
+ title?: string;
437
+ time?: {
438
+ archived?: number;
439
+ };
440
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionUpdateResponses, SessionUpdateErrors, ThrowOnError, "fields">;
441
+ /**
442
+ * Get session children
443
+ *
444
+ * Retrieve all child sessions that were forked from the specified parent session.
445
+ */
446
+ children<ThrowOnError extends boolean = false>(parameters: {
447
+ sessionID: string;
448
+ directory?: string;
449
+ workspace?: string;
450
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionChildrenResponses, SessionChildrenErrors, ThrowOnError, "fields">;
451
+ /**
452
+ * Get session todos
453
+ *
454
+ * Retrieve the todo list associated with a specific session, showing tasks and action items.
455
+ */
456
+ todo<ThrowOnError extends boolean = false>(parameters: {
457
+ sessionID: string;
458
+ directory?: string;
459
+ workspace?: string;
460
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionTodoResponses, SessionTodoErrors, ThrowOnError, "fields">;
461
+ /**
462
+ * Initialize session
463
+ *
464
+ * Analyze the current application and create an AGENTS.md file with project-specific agent configurations.
465
+ */
466
+ init<ThrowOnError extends boolean = false>(parameters: {
467
+ sessionID: string;
468
+ directory?: string;
469
+ workspace?: string;
470
+ modelID?: string;
471
+ providerID?: string;
472
+ messageID?: string;
473
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionInitResponses, SessionInitErrors, ThrowOnError, "fields">;
474
+ /**
475
+ * Fork session
476
+ *
477
+ * Create a new session by forking an existing session at a specific message point.
478
+ */
479
+ fork<ThrowOnError extends boolean = false>(parameters: {
480
+ sessionID: string;
481
+ directory?: string;
482
+ workspace?: string;
483
+ messageID?: string;
484
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionForkResponses, unknown, ThrowOnError, "fields">;
485
+ /**
486
+ * Abort session
487
+ *
488
+ * Abort an active session and stop any ongoing AI processing or command execution.
489
+ */
490
+ abort<ThrowOnError extends boolean = false>(parameters: {
491
+ sessionID: string;
492
+ directory?: string;
493
+ workspace?: string;
494
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionAbortResponses, SessionAbortErrors, ThrowOnError, "fields">;
495
+ /**
496
+ * Unshare session
497
+ *
498
+ * Remove the shareable link for a session, making it private again.
499
+ */
500
+ unshare<ThrowOnError extends boolean = false>(parameters: {
501
+ sessionID: string;
502
+ directory?: string;
503
+ workspace?: string;
504
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionUnshareResponses, SessionUnshareErrors, ThrowOnError, "fields">;
505
+ /**
506
+ * Share session
507
+ *
508
+ * Create a shareable link for a session, allowing others to view the conversation.
509
+ */
510
+ share<ThrowOnError extends boolean = false>(parameters: {
511
+ sessionID: string;
512
+ directory?: string;
513
+ workspace?: string;
514
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionShareResponses, SessionShareErrors, ThrowOnError, "fields">;
515
+ /**
516
+ * Get message diff
517
+ *
518
+ * Get the file changes (diff) that resulted from a specific user message in the session.
519
+ */
520
+ diff<ThrowOnError extends boolean = false>(parameters: {
521
+ sessionID: string;
522
+ directory?: string;
523
+ workspace?: string;
524
+ messageID?: string;
525
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionDiffResponses, unknown, ThrowOnError, "fields">;
526
+ /**
527
+ * Summarize session
528
+ *
529
+ * Generate a concise summary of the session using AI compaction to preserve key information.
530
+ */
531
+ summarize<ThrowOnError extends boolean = false>(parameters: {
532
+ sessionID: string;
533
+ directory?: string;
534
+ workspace?: string;
535
+ providerID?: string;
536
+ modelID?: string;
537
+ auto?: boolean;
538
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionSummarizeResponses, SessionSummarizeErrors, ThrowOnError, "fields">;
539
+ /**
540
+ * Get session messages
541
+ *
542
+ * Retrieve all messages in a session, including user prompts and AI responses.
543
+ */
544
+ messages<ThrowOnError extends boolean = false>(parameters: {
545
+ sessionID: string;
546
+ directory?: string;
547
+ workspace?: string;
548
+ limit?: number;
549
+ before?: string;
550
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionMessagesResponses, SessionMessagesErrors, ThrowOnError, "fields">;
551
+ /**
552
+ * Send message
553
+ *
554
+ * Create and send a new message to a session, streaming the AI response.
555
+ */
556
+ prompt<ThrowOnError extends boolean = false>(parameters: {
557
+ sessionID: string;
558
+ directory?: string;
559
+ workspace?: string;
560
+ messageID?: string;
561
+ model?: {
562
+ providerID: string;
563
+ modelID: string;
564
+ };
565
+ agent?: string;
566
+ noReply?: boolean;
567
+ tools?: {
568
+ [key: string]: boolean;
569
+ };
570
+ format?: OutputFormat;
571
+ system?: string;
572
+ variant?: string;
573
+ parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
574
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionPromptResponses, SessionPromptErrors, ThrowOnError, "fields">;
575
+ /**
576
+ * Delete message
577
+ *
578
+ * Permanently delete a specific message (and all of its parts) from a session. This does not revert any file changes that may have been made while processing the message.
579
+ */
580
+ deleteMessage<ThrowOnError extends boolean = false>(parameters: {
581
+ sessionID: string;
582
+ messageID: string;
583
+ directory?: string;
584
+ workspace?: string;
585
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionDeleteMessageResponses, SessionDeleteMessageErrors, ThrowOnError, "fields">;
586
+ /**
587
+ * Get message
588
+ *
589
+ * Retrieve a specific message from a session by its message ID.
590
+ */
591
+ message<ThrowOnError extends boolean = false>(parameters: {
592
+ sessionID: string;
593
+ messageID: string;
594
+ directory?: string;
595
+ workspace?: string;
596
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionMessageResponses, SessionMessageErrors, ThrowOnError, "fields">;
597
+ /**
598
+ * Send async message
599
+ *
600
+ * Create and send a new message to a session asynchronously, starting the session if needed and returning immediately.
601
+ */
602
+ promptAsync<ThrowOnError extends boolean = false>(parameters: {
603
+ sessionID: string;
604
+ directory?: string;
605
+ workspace?: string;
606
+ messageID?: string;
607
+ model?: {
608
+ providerID: string;
609
+ modelID: string;
610
+ };
611
+ agent?: string;
612
+ noReply?: boolean;
613
+ tools?: {
614
+ [key: string]: boolean;
615
+ };
616
+ format?: OutputFormat;
617
+ system?: string;
618
+ variant?: string;
619
+ parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
620
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionPromptAsyncResponses, SessionPromptAsyncErrors, ThrowOnError, "fields">;
621
+ /**
622
+ * Send command
623
+ *
624
+ * Send a new command to a session for execution by the AI assistant.
625
+ */
626
+ command<ThrowOnError extends boolean = false>(parameters: {
627
+ sessionID: string;
628
+ directory?: string;
629
+ workspace?: string;
630
+ messageID?: string;
631
+ agent?: string;
632
+ model?: string;
633
+ arguments?: string;
634
+ command?: string;
635
+ variant?: string;
636
+ parts?: Array<{
637
+ id?: string;
638
+ type: "file";
639
+ mime: string;
640
+ filename?: string;
641
+ url: string;
642
+ source?: FilePartSource;
643
+ }>;
644
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionCommandResponses, SessionCommandErrors, ThrowOnError, "fields">;
645
+ /**
646
+ * Run shell command
647
+ *
648
+ * Execute a shell command within the session context and return the AI's response.
649
+ */
650
+ shell<ThrowOnError extends boolean = false>(parameters: {
651
+ sessionID: string;
652
+ directory?: string;
653
+ workspace?: string;
654
+ agent?: string;
655
+ model?: {
656
+ providerID: string;
657
+ modelID: string;
658
+ };
659
+ command?: string;
660
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionShellResponses, SessionShellErrors, ThrowOnError, "fields">;
661
+ /**
662
+ * Revert message
663
+ *
664
+ * Revert a specific message in a session, undoing its effects and restoring the previous state.
665
+ */
666
+ revert<ThrowOnError extends boolean = false>(parameters: {
667
+ sessionID: string;
668
+ directory?: string;
669
+ workspace?: string;
670
+ messageID?: string;
671
+ partID?: string;
672
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionRevertResponses, SessionRevertErrors, ThrowOnError, "fields">;
673
+ /**
674
+ * Restore reverted messages
675
+ *
676
+ * Restore all previously reverted messages in a session.
677
+ */
678
+ unrevert<ThrowOnError extends boolean = false>(parameters: {
679
+ sessionID: string;
680
+ directory?: string;
681
+ workspace?: string;
682
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionUnrevertResponses, SessionUnrevertErrors, ThrowOnError, "fields">;
683
+ }
684
+ export declare class Part extends HeyApiClient {
685
+ /**
686
+ * Delete a part from a message
687
+ */
688
+ delete<ThrowOnError extends boolean = false>(parameters: {
689
+ sessionID: string;
690
+ messageID: string;
691
+ partID: string;
692
+ directory?: string;
693
+ workspace?: string;
694
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PartDeleteResponses, PartDeleteErrors, ThrowOnError, "fields">;
695
+ /**
696
+ * Update a part in a message
697
+ */
698
+ update<ThrowOnError extends boolean = false>(parameters: {
699
+ sessionID: string;
700
+ messageID: string;
701
+ partID: string;
702
+ directory?: string;
703
+ workspace?: string;
704
+ part?: Part2;
705
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PartUpdateResponses, PartUpdateErrors, ThrowOnError, "fields">;
706
+ }
707
+ export declare class Permission extends HeyApiClient {
708
+ /**
709
+ * Respond to permission
710
+ *
711
+ * Approve or deny a permission request from the AI assistant.
712
+ *
713
+ * @deprecated
714
+ */
715
+ respond<ThrowOnError extends boolean = false>(parameters: {
716
+ sessionID: string;
717
+ permissionID: string;
718
+ directory?: string;
719
+ workspace?: string;
720
+ response?: "once" | "always" | "reject";
721
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PermissionRespondResponses, PermissionRespondErrors, ThrowOnError, "fields">;
722
+ /**
723
+ * Respond to permission request
724
+ *
725
+ * Approve or deny a permission request from the AI assistant.
726
+ */
727
+ reply<ThrowOnError extends boolean = false>(parameters: {
728
+ requestID: string;
729
+ directory?: string;
730
+ workspace?: string;
731
+ reply?: "once" | "always" | "reject";
732
+ message?: string;
733
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PermissionReplyResponses, PermissionReplyErrors, ThrowOnError, "fields">;
734
+ /**
735
+ * List pending permissions
736
+ *
737
+ * Get all pending permission requests across all sessions.
738
+ */
739
+ list<ThrowOnError extends boolean = false>(parameters?: {
740
+ directory?: string;
741
+ workspace?: string;
742
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PermissionListResponses, unknown, ThrowOnError, "fields">;
743
+ }
744
+ export declare class Question extends HeyApiClient {
745
+ /**
746
+ * List pending questions
747
+ *
748
+ * Get all pending question requests across all sessions.
749
+ */
750
+ list<ThrowOnError extends boolean = false>(parameters?: {
751
+ directory?: string;
752
+ workspace?: string;
753
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<QuestionListResponses, unknown, ThrowOnError, "fields">;
754
+ /**
755
+ * Reply to question request
756
+ *
757
+ * Provide answers to a question request from the AI assistant.
758
+ */
759
+ reply<ThrowOnError extends boolean = false>(parameters: {
760
+ requestID: string;
761
+ directory?: string;
762
+ workspace?: string;
763
+ answers?: Array<QuestionAnswer>;
764
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<QuestionReplyResponses, QuestionReplyErrors, ThrowOnError, "fields">;
765
+ /**
766
+ * Reject question request
767
+ *
768
+ * Reject a question request from the AI assistant.
769
+ */
770
+ reject<ThrowOnError extends boolean = false>(parameters: {
771
+ requestID: string;
772
+ directory?: string;
773
+ workspace?: string;
774
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<QuestionRejectResponses, QuestionRejectErrors, ThrowOnError, "fields">;
775
+ }
776
+ export declare class Oauth extends HeyApiClient {
777
+ /**
778
+ * OAuth authorize
779
+ *
780
+ * Initiate OAuth authorization for a specific AI provider to get an authorization URL.
781
+ */
782
+ authorize<ThrowOnError extends boolean = false>(parameters: {
783
+ providerID: string;
784
+ directory?: string;
785
+ workspace?: string;
786
+ method?: number;
787
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProviderOauthAuthorizeResponses, ProviderOauthAuthorizeErrors, ThrowOnError, "fields">;
788
+ /**
789
+ * OAuth callback
790
+ *
791
+ * Handle the OAuth callback from a provider after user authorization.
792
+ */
793
+ callback<ThrowOnError extends boolean = false>(parameters: {
794
+ providerID: string;
795
+ directory?: string;
796
+ workspace?: string;
797
+ method?: number;
798
+ code?: string;
799
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProviderOauthCallbackResponses, ProviderOauthCallbackErrors, ThrowOnError, "fields">;
800
+ }
801
+ export declare class Api extends HeyApiClient {
802
+ /**
803
+ * API key authorize
804
+ *
805
+ * Submit API key and additional inputs for a provider that requires custom authorization.
806
+ */
807
+ authorize<ThrowOnError extends boolean = false>(parameters: {
808
+ providerID: string;
809
+ directory?: string;
810
+ workspace?: string;
811
+ key?: string;
812
+ inputs?: {
813
+ [key: string]: string;
814
+ };
815
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProviderApiAuthorizeResponses, ProviderApiAuthorizeErrors, ThrowOnError, "fields">;
816
+ }
817
+ export declare class Provider extends HeyApiClient {
818
+ /**
819
+ * List providers
820
+ *
821
+ * Get a list of all available AI providers, including both available and connected ones.
822
+ */
823
+ list<ThrowOnError extends boolean = false>(parameters?: {
824
+ directory?: string;
825
+ workspace?: string;
826
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProviderListResponses, unknown, ThrowOnError, "fields">;
827
+ /**
828
+ * Get provider auth methods
829
+ *
830
+ * Retrieve available authentication methods for all AI providers.
831
+ */
832
+ auth<ThrowOnError extends boolean = false>(parameters?: {
833
+ directory?: string;
834
+ workspace?: string;
835
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProviderAuthResponses, unknown, ThrowOnError, "fields">;
836
+ private _oauth?;
837
+ get oauth(): Oauth;
838
+ private _api?;
839
+ get api(): Api;
840
+ }
841
+ export declare class Find extends HeyApiClient {
842
+ /**
843
+ * Find text
844
+ *
845
+ * Search for text patterns across files in the project using ripgrep.
846
+ */
847
+ text<ThrowOnError extends boolean = false>(parameters: {
848
+ directory?: string;
849
+ workspace?: string;
850
+ pattern: string;
851
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FindTextResponses, unknown, ThrowOnError, "fields">;
852
+ /**
853
+ * Find files
854
+ *
855
+ * Search for files or directories by name or pattern in the project directory.
856
+ */
857
+ files<ThrowOnError extends boolean = false>(parameters: {
858
+ directory?: string;
859
+ workspace?: string;
860
+ query: string;
861
+ dirs?: "true" | "false";
862
+ type?: "file" | "directory";
863
+ limit?: number;
864
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FindFilesResponses, unknown, ThrowOnError, "fields">;
865
+ /**
866
+ * Find symbols
867
+ *
868
+ * Search for workspace symbols like functions, classes, and variables using LSP.
869
+ */
870
+ symbols<ThrowOnError extends boolean = false>(parameters: {
871
+ directory?: string;
872
+ workspace?: string;
873
+ query: string;
874
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FindSymbolsResponses, unknown, ThrowOnError, "fields">;
875
+ }
876
+ export declare class File extends HeyApiClient {
877
+ /**
878
+ * List files
879
+ *
880
+ * List files and directories in a specified path.
881
+ */
882
+ list<ThrowOnError extends boolean = false>(parameters: {
883
+ directory?: string;
884
+ workspace?: string;
885
+ path: string;
886
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileListResponses, unknown, ThrowOnError, "fields">;
887
+ /**
888
+ * Read file
889
+ *
890
+ * Read the content of a specified file.
891
+ */
892
+ read<ThrowOnError extends boolean = false>(parameters: {
893
+ directory?: string;
894
+ workspace?: string;
895
+ path: string;
896
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileReadResponses, unknown, ThrowOnError, "fields">;
897
+ /**
898
+ * Get file status
899
+ *
900
+ * Get the git status of all files in the project.
901
+ */
902
+ status<ThrowOnError extends boolean = false>(parameters?: {
903
+ directory?: string;
904
+ workspace?: string;
905
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileStatusResponses, unknown, ThrowOnError, "fields">;
906
+ }
907
+ export declare class Auth2 extends HeyApiClient {
908
+ /**
909
+ * Remove MCP OAuth
910
+ *
911
+ * Remove OAuth credentials for an MCP server
912
+ */
913
+ remove<ThrowOnError extends boolean = false>(parameters: {
914
+ name: string;
915
+ directory?: string;
916
+ workspace?: string;
917
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAuthRemoveResponses, McpAuthRemoveErrors, ThrowOnError, "fields">;
918
+ /**
919
+ * Start MCP OAuth
920
+ *
921
+ * Start OAuth authentication flow for a Model Context Protocol (MCP) server.
922
+ */
923
+ start<ThrowOnError extends boolean = false>(parameters: {
924
+ name: string;
925
+ directory?: string;
926
+ workspace?: string;
927
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAuthStartResponses, McpAuthStartErrors, ThrowOnError, "fields">;
928
+ /**
929
+ * Complete MCP OAuth
930
+ *
931
+ * Complete OAuth authentication for a Model Context Protocol (MCP) server using the authorization code.
932
+ */
933
+ callback<ThrowOnError extends boolean = false>(parameters: {
934
+ name: string;
935
+ directory?: string;
936
+ workspace?: string;
937
+ code?: string;
938
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAuthCallbackResponses, McpAuthCallbackErrors, ThrowOnError, "fields">;
939
+ /**
940
+ * Authenticate MCP OAuth
941
+ *
942
+ * Start OAuth flow and wait for callback (opens browser)
943
+ */
944
+ authenticate<ThrowOnError extends boolean = false>(parameters: {
945
+ name: string;
946
+ directory?: string;
947
+ workspace?: string;
948
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAuthAuthenticateResponses, McpAuthAuthenticateErrors, ThrowOnError, "fields">;
949
+ }
950
+ export declare class Mcp extends HeyApiClient {
951
+ /**
952
+ * Get MCP status
953
+ *
954
+ * Get the status of all Model Context Protocol (MCP) servers.
955
+ */
956
+ status<ThrowOnError extends boolean = false>(parameters?: {
957
+ directory?: string;
958
+ workspace?: string;
959
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpStatusResponses, unknown, ThrowOnError, "fields">;
960
+ /**
961
+ * Add MCP server
962
+ *
963
+ * Dynamically add a new Model Context Protocol (MCP) server to the system.
964
+ */
965
+ add<ThrowOnError extends boolean = false>(parameters?: {
966
+ directory?: string;
967
+ workspace?: string;
968
+ name?: string;
969
+ config?: McpLocalConfig | McpRemoteConfig;
970
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAddResponses, McpAddErrors, ThrowOnError, "fields">;
971
+ /**
972
+ * Connect an MCP server
973
+ */
974
+ connect<ThrowOnError extends boolean = false>(parameters: {
975
+ name: string;
976
+ directory?: string;
977
+ workspace?: string;
978
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpConnectResponses, unknown, ThrowOnError, "fields">;
979
+ /**
980
+ * Disconnect an MCP server
981
+ */
982
+ disconnect<ThrowOnError extends boolean = false>(parameters: {
983
+ name: string;
984
+ directory?: string;
985
+ workspace?: string;
986
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpDisconnectResponses, unknown, ThrowOnError, "fields">;
987
+ private _auth?;
988
+ get auth(): Auth2;
989
+ }
990
+ export declare class Control extends HeyApiClient {
991
+ /**
992
+ * Get next TUI request
993
+ *
994
+ * Retrieve the next TUI (Terminal User Interface) request from the queue for processing.
995
+ */
996
+ next<ThrowOnError extends boolean = false>(parameters?: {
997
+ directory?: string;
998
+ workspace?: string;
999
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiControlNextResponses, unknown, ThrowOnError, "fields">;
1000
+ /**
1001
+ * Submit TUI response
1002
+ *
1003
+ * Submit a response to the TUI request queue to complete a pending request.
1004
+ */
1005
+ response<ThrowOnError extends boolean = false>(parameters?: {
1006
+ directory?: string;
1007
+ workspace?: string;
1008
+ body?: unknown;
1009
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiControlResponseResponses, unknown, ThrowOnError, "fields">;
1010
+ }
1011
+ export declare class Tui extends HeyApiClient {
1012
+ /**
1013
+ * Append TUI prompt
1014
+ *
1015
+ * Append prompt to the TUI
1016
+ */
1017
+ appendPrompt<ThrowOnError extends boolean = false>(parameters?: {
1018
+ directory?: string;
1019
+ workspace?: string;
1020
+ text?: string;
1021
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiAppendPromptResponses, TuiAppendPromptErrors, ThrowOnError, "fields">;
1022
+ /**
1023
+ * Open help dialog
1024
+ *
1025
+ * Open the help dialog in the TUI to display user assistance information.
1026
+ */
1027
+ openHelp<ThrowOnError extends boolean = false>(parameters?: {
1028
+ directory?: string;
1029
+ workspace?: string;
1030
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenHelpResponses, unknown, ThrowOnError, "fields">;
1031
+ /**
1032
+ * Open sessions dialog
1033
+ *
1034
+ * Open the session dialog
1035
+ */
1036
+ openSessions<ThrowOnError extends boolean = false>(parameters?: {
1037
+ directory?: string;
1038
+ workspace?: string;
1039
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenSessionsResponses, unknown, ThrowOnError, "fields">;
1040
+ /**
1041
+ * Open themes dialog
1042
+ *
1043
+ * Open the theme dialog
1044
+ */
1045
+ openThemes<ThrowOnError extends boolean = false>(parameters?: {
1046
+ directory?: string;
1047
+ workspace?: string;
1048
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenThemesResponses, unknown, ThrowOnError, "fields">;
1049
+ /**
1050
+ * Open models dialog
1051
+ *
1052
+ * Open the model dialog
1053
+ */
1054
+ openModels<ThrowOnError extends boolean = false>(parameters?: {
1055
+ directory?: string;
1056
+ workspace?: string;
1057
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenModelsResponses, unknown, ThrowOnError, "fields">;
1058
+ /**
1059
+ * Submit TUI prompt
1060
+ *
1061
+ * Submit the prompt
1062
+ */
1063
+ submitPrompt<ThrowOnError extends boolean = false>(parameters?: {
1064
+ directory?: string;
1065
+ workspace?: string;
1066
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiSubmitPromptResponses, unknown, ThrowOnError, "fields">;
1067
+ /**
1068
+ * Clear TUI prompt
1069
+ *
1070
+ * Clear the prompt
1071
+ */
1072
+ clearPrompt<ThrowOnError extends boolean = false>(parameters?: {
1073
+ directory?: string;
1074
+ workspace?: string;
1075
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiClearPromptResponses, unknown, ThrowOnError, "fields">;
1076
+ /**
1077
+ * Execute TUI command
1078
+ *
1079
+ * Execute a TUI command (e.g. agent_cycle)
1080
+ */
1081
+ executeCommand<ThrowOnError extends boolean = false>(parameters?: {
1082
+ directory?: string;
1083
+ workspace?: string;
1084
+ command?: string;
1085
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiExecuteCommandResponses, TuiExecuteCommandErrors, ThrowOnError, "fields">;
1086
+ /**
1087
+ * Show TUI toast
1088
+ *
1089
+ * Show a toast notification in the TUI
1090
+ */
1091
+ showToast<ThrowOnError extends boolean = false>(parameters?: {
1092
+ directory?: string;
1093
+ workspace?: string;
1094
+ title?: string;
1095
+ message?: string;
1096
+ variant?: "info" | "success" | "warning" | "error";
1097
+ duration?: number;
1098
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiShowToastResponses, unknown, ThrowOnError, "fields">;
1099
+ /**
1100
+ * Publish TUI event
1101
+ *
1102
+ * Publish a TUI event
1103
+ */
1104
+ publish<ThrowOnError extends boolean = false>(parameters?: {
1105
+ directory?: string;
1106
+ workspace?: string;
1107
+ body?: EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect;
1108
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiPublishResponses, TuiPublishErrors, ThrowOnError, "fields">;
1109
+ /**
1110
+ * Select session
1111
+ *
1112
+ * Navigate the TUI to display the specified session.
1113
+ */
1114
+ selectSession<ThrowOnError extends boolean = false>(parameters?: {
1115
+ directory?: string;
1116
+ workspace?: string;
1117
+ sessionID?: string;
1118
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiSelectSessionResponses, TuiSelectSessionErrors, ThrowOnError, "fields">;
1119
+ private _control?;
1120
+ get control(): Control;
1121
+ }
1122
+ export declare class Instance extends HeyApiClient {
1123
+ /**
1124
+ * Dispose instance
1125
+ *
1126
+ * Clean up and dispose the current LibreCode instance, releasing all resources.
1127
+ */
1128
+ dispose<ThrowOnError extends boolean = false>(parameters?: {
1129
+ directory?: string;
1130
+ workspace?: string;
1131
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<InstanceDisposeResponses, unknown, ThrowOnError, "fields">;
1132
+ }
1133
+ export declare class Path extends HeyApiClient {
1134
+ /**
1135
+ * Get paths
1136
+ *
1137
+ * Retrieve the current working directory and related path information for the LibreCode instance.
1138
+ */
1139
+ get<ThrowOnError extends boolean = false>(parameters?: {
1140
+ directory?: string;
1141
+ workspace?: string;
1142
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PathGetResponses, unknown, ThrowOnError, "fields">;
1143
+ }
1144
+ export declare class Vcs extends HeyApiClient {
1145
+ /**
1146
+ * Get VCS info
1147
+ *
1148
+ * Retrieve version control system (VCS) information for the current project, such as git branch.
1149
+ */
1150
+ get<ThrowOnError extends boolean = false>(parameters?: {
1151
+ directory?: string;
1152
+ workspace?: string;
1153
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<VcsGetResponses, unknown, ThrowOnError, "fields">;
1154
+ }
1155
+ export declare class Command extends HeyApiClient {
1156
+ /**
1157
+ * List commands
1158
+ *
1159
+ * Get a list of all available commands in the LibreCode system.
1160
+ */
1161
+ list<ThrowOnError extends boolean = false>(parameters?: {
1162
+ directory?: string;
1163
+ workspace?: string;
1164
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<CommandListResponses, unknown, ThrowOnError, "fields">;
1165
+ }
1166
+ export declare class App extends HeyApiClient {
1167
+ /**
1168
+ * Write log
1169
+ *
1170
+ * Write a log entry to the server logs with specified level and metadata.
1171
+ */
1172
+ log<ThrowOnError extends boolean = false>(parameters?: {
1173
+ directory?: string;
1174
+ workspace?: string;
1175
+ service?: string;
1176
+ level?: "debug" | "info" | "error" | "warn";
1177
+ message?: string;
1178
+ extra?: {
1179
+ [key: string]: unknown;
1180
+ };
1181
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppLogResponses, AppLogErrors, ThrowOnError, "fields">;
1182
+ /**
1183
+ * List agents
1184
+ *
1185
+ * Get a list of all available AI agents in the LibreCode system.
1186
+ */
1187
+ agents<ThrowOnError extends boolean = false>(parameters?: {
1188
+ directory?: string;
1189
+ workspace?: string;
1190
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppAgentsResponses, unknown, ThrowOnError, "fields">;
1191
+ /**
1192
+ * List skills
1193
+ *
1194
+ * Get a list of all available skills in the LibreCode system.
1195
+ */
1196
+ skills<ThrowOnError extends boolean = false>(parameters?: {
1197
+ directory?: string;
1198
+ workspace?: string;
1199
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppSkillsResponses, unknown, ThrowOnError, "fields">;
1200
+ }
1201
+ export declare class Lsp extends HeyApiClient {
1202
+ /**
1203
+ * Get LSP status
1204
+ *
1205
+ * Get LSP server status
1206
+ */
1207
+ status<ThrowOnError extends boolean = false>(parameters?: {
1208
+ directory?: string;
1209
+ workspace?: string;
1210
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<LspStatusResponses, unknown, ThrowOnError, "fields">;
1211
+ }
1212
+ export declare class Formatter extends HeyApiClient {
1213
+ /**
1214
+ * Get formatter status
1215
+ *
1216
+ * Get formatter status
1217
+ */
1218
+ status<ThrowOnError extends boolean = false>(parameters?: {
1219
+ directory?: string;
1220
+ workspace?: string;
1221
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FormatterStatusResponses, unknown, ThrowOnError, "fields">;
1222
+ }
1223
+ export declare class Event extends HeyApiClient {
1224
+ /**
1225
+ * Subscribe to events
1226
+ *
1227
+ * Get events
1228
+ */
1229
+ subscribe<ThrowOnError extends boolean = false>(parameters?: {
1230
+ directory?: string;
1231
+ workspace?: string;
1232
+ }, options?: Options<never, ThrowOnError>): Promise<import("./core/serverSentEvents.gen.js").ServerSentEventsResult<EventSubscribeResponses, unknown>>;
1233
+ }
1234
+ export declare class OpencodeClient extends HeyApiClient {
1235
+ static readonly __registry: HeyApiRegistry<OpencodeClient>;
1236
+ constructor(args?: {
1237
+ client?: Client;
1238
+ key?: string;
1239
+ });
1240
+ private _global?;
1241
+ get global(): Global;
1242
+ private _auth?;
1243
+ get auth(): Auth;
1244
+ private _project?;
1245
+ get project(): Project;
1246
+ private _pty?;
1247
+ get pty(): Pty;
1248
+ private _config?;
1249
+ get config(): Config2;
1250
+ private _tool?;
1251
+ get tool(): Tool;
1252
+ private _experimental?;
1253
+ get experimental(): Experimental;
1254
+ private _worktree?;
1255
+ get worktree(): Worktree;
1256
+ private _session?;
1257
+ get session(): Session2;
1258
+ private _part?;
1259
+ get part(): Part;
1260
+ private _permission?;
1261
+ get permission(): Permission;
1262
+ private _question?;
1263
+ get question(): Question;
1264
+ private _provider?;
1265
+ get provider(): Provider;
1266
+ private _find?;
1267
+ get find(): Find;
1268
+ private _file?;
1269
+ get file(): File;
1270
+ private _mcp?;
1271
+ get mcp(): Mcp;
1272
+ private _tui?;
1273
+ get tui(): Tui;
1274
+ private _instance?;
1275
+ get instance(): Instance;
1276
+ private _path?;
1277
+ get path(): Path;
1278
+ private _vcs?;
1279
+ get vcs(): Vcs;
1280
+ private _command?;
1281
+ get command(): Command;
1282
+ private _app?;
1283
+ get app(): App;
1284
+ private _lsp?;
1285
+ get lsp(): Lsp;
1286
+ private _formatter?;
1287
+ get formatter(): Formatter;
1288
+ private _event?;
1289
+ get event(): Event;
1290
+ }
1291
+ export {};