@reigncode/sdk 1.2.26 → 1.2.29

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/package.json +5 -5
  2. package/dist/client.d.ts +0 -7
  3. package/dist/client.js +0 -25
  4. package/dist/gen/client/client.gen.d.ts +0 -2
  5. package/dist/gen/client/client.gen.js +0 -165
  6. package/dist/gen/client/index.d.ts +0 -7
  7. package/dist/gen/client/index.js +0 -5
  8. package/dist/gen/client/types.gen.d.ts +0 -127
  9. package/dist/gen/client/types.gen.js +0 -2
  10. package/dist/gen/client/utils.gen.d.ts +0 -38
  11. package/dist/gen/client/utils.gen.js +0 -226
  12. package/dist/gen/client.gen.d.ts +0 -12
  13. package/dist/gen/client.gen.js +0 -5
  14. package/dist/gen/core/auth.gen.d.ts +0 -18
  15. package/dist/gen/core/auth.gen.js +0 -14
  16. package/dist/gen/core/bodySerializer.gen.d.ts +0 -17
  17. package/dist/gen/core/bodySerializer.gen.js +0 -57
  18. package/dist/gen/core/params.gen.d.ts +0 -33
  19. package/dist/gen/core/params.gen.js +0 -89
  20. package/dist/gen/core/pathSerializer.gen.d.ts +0 -33
  21. package/dist/gen/core/pathSerializer.gen.js +0 -106
  22. package/dist/gen/core/queryKeySerializer.gen.d.ts +0 -18
  23. package/dist/gen/core/queryKeySerializer.gen.js +0 -93
  24. package/dist/gen/core/serverSentEvents.gen.d.ts +0 -59
  25. package/dist/gen/core/serverSentEvents.gen.js +0 -117
  26. package/dist/gen/core/types.gen.d.ts +0 -78
  27. package/dist/gen/core/types.gen.js +0 -2
  28. package/dist/gen/core/utils.gen.d.ts +0 -14
  29. package/dist/gen/core/utils.gen.js +0 -69
  30. package/dist/gen/sdk.gen.d.ts +0 -403
  31. package/dist/gen/sdk.gen.js +0 -881
  32. package/dist/gen/types.gen.d.ts +0 -3380
  33. package/dist/gen/types.gen.js +0 -2
  34. package/dist/index.d.ts +0 -10
  35. package/dist/index.js +0 -16
  36. package/dist/server.d.ts +0 -23
  37. package/dist/server.js +0 -94
  38. package/dist/v2/client.d.ts +0 -8
  39. package/dist/v2/client.js +0 -33
  40. package/dist/v2/gen/client/client.gen.d.ts +0 -2
  41. package/dist/v2/gen/client/client.gen.js +0 -232
  42. package/dist/v2/gen/client/index.d.ts +0 -8
  43. package/dist/v2/gen/client/index.js +0 -6
  44. package/dist/v2/gen/client/types.gen.d.ts +0 -117
  45. package/dist/v2/gen/client/types.gen.js +0 -2
  46. package/dist/v2/gen/client/utils.gen.d.ts +0 -33
  47. package/dist/v2/gen/client/utils.gen.js +0 -226
  48. package/dist/v2/gen/client.gen.d.ts +0 -12
  49. package/dist/v2/gen/client.gen.js +0 -3
  50. package/dist/v2/gen/core/auth.gen.d.ts +0 -18
  51. package/dist/v2/gen/core/auth.gen.js +0 -14
  52. package/dist/v2/gen/core/bodySerializer.gen.d.ts +0 -25
  53. package/dist/v2/gen/core/bodySerializer.gen.js +0 -57
  54. package/dist/v2/gen/core/params.gen.d.ts +0 -43
  55. package/dist/v2/gen/core/params.gen.js +0 -102
  56. package/dist/v2/gen/core/pathSerializer.gen.d.ts +0 -33
  57. package/dist/v2/gen/core/pathSerializer.gen.js +0 -106
  58. package/dist/v2/gen/core/queryKeySerializer.gen.d.ts +0 -18
  59. package/dist/v2/gen/core/queryKeySerializer.gen.js +0 -93
  60. package/dist/v2/gen/core/serverSentEvents.gen.d.ts +0 -71
  61. package/dist/v2/gen/core/serverSentEvents.gen.js +0 -133
  62. package/dist/v2/gen/core/types.gen.d.ts +0 -78
  63. package/dist/v2/gen/core/types.gen.js +0 -2
  64. package/dist/v2/gen/core/utils.gen.d.ts +0 -19
  65. package/dist/v2/gen/core/utils.gen.js +0 -87
  66. package/dist/v2/gen/sdk.gen.d.ts +0 -1272
  67. package/dist/v2/gen/sdk.gen.js +0 -2576
  68. package/dist/v2/gen/types.gen.d.ts +0 -4241
  69. package/dist/v2/gen/types.gen.js +0 -2
  70. package/dist/v2/index.d.ts +0 -10
  71. package/dist/v2/index.js +0 -16
  72. package/dist/v2/server.d.ts +0 -23
  73. package/dist/v2/server.js +0 -94
@@ -1,1272 +0,0 @@
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, 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 ReignCode 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 ReignCode 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 ReignCode 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 ReignCode 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 ReignCode 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 ReignCode.
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 ReignCode 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 ReignCode.
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 ReignCode 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 ReignCode 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 ReignCode 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 ReignCode 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 ReignCode 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 ReignCode 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
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionMessagesResponses, SessionMessagesErrors, ThrowOnError, "fields">;
550
- /**
551
- * Send message
552
- *
553
- * Create and send a new message to a session, streaming the AI response.
554
- */
555
- prompt<ThrowOnError extends boolean = false>(parameters: {
556
- sessionID: string;
557
- directory?: string;
558
- workspace?: string;
559
- messageID?: string;
560
- model?: {
561
- providerID: string;
562
- modelID: string;
563
- };
564
- agent?: string;
565
- noReply?: boolean;
566
- tools?: {
567
- [key: string]: boolean;
568
- };
569
- format?: OutputFormat;
570
- system?: string;
571
- variant?: string;
572
- parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
573
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionPromptResponses, SessionPromptErrors, ThrowOnError, "fields">;
574
- /**
575
- * Delete message
576
- *
577
- * 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.
578
- */
579
- deleteMessage<ThrowOnError extends boolean = false>(parameters: {
580
- sessionID: string;
581
- messageID: string;
582
- directory?: string;
583
- workspace?: string;
584
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionDeleteMessageResponses, SessionDeleteMessageErrors, ThrowOnError, "fields">;
585
- /**
586
- * Get message
587
- *
588
- * Retrieve a specific message from a session by its message ID.
589
- */
590
- message<ThrowOnError extends boolean = false>(parameters: {
591
- sessionID: string;
592
- messageID: string;
593
- directory?: string;
594
- workspace?: string;
595
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionMessageResponses, SessionMessageErrors, ThrowOnError, "fields">;
596
- /**
597
- * Send async message
598
- *
599
- * Create and send a new message to a session asynchronously, starting the session if needed and returning immediately.
600
- */
601
- promptAsync<ThrowOnError extends boolean = false>(parameters: {
602
- sessionID: string;
603
- directory?: string;
604
- workspace?: string;
605
- messageID?: string;
606
- model?: {
607
- providerID: string;
608
- modelID: string;
609
- };
610
- agent?: string;
611
- noReply?: boolean;
612
- tools?: {
613
- [key: string]: boolean;
614
- };
615
- format?: OutputFormat;
616
- system?: string;
617
- variant?: string;
618
- parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
619
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionPromptAsyncResponses, SessionPromptAsyncErrors, ThrowOnError, "fields">;
620
- /**
621
- * Send command
622
- *
623
- * Send a new command to a session for execution by the AI assistant.
624
- */
625
- command<ThrowOnError extends boolean = false>(parameters: {
626
- sessionID: string;
627
- directory?: string;
628
- workspace?: string;
629
- messageID?: string;
630
- agent?: string;
631
- model?: string;
632
- arguments?: string;
633
- command?: string;
634
- variant?: string;
635
- parts?: Array<{
636
- id?: string;
637
- type: "file";
638
- mime: string;
639
- filename?: string;
640
- url: string;
641
- source?: FilePartSource;
642
- }>;
643
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionCommandResponses, SessionCommandErrors, ThrowOnError, "fields">;
644
- /**
645
- * Run shell command
646
- *
647
- * Execute a shell command within the session context and return the AI's response.
648
- */
649
- shell<ThrowOnError extends boolean = false>(parameters: {
650
- sessionID: string;
651
- directory?: string;
652
- workspace?: string;
653
- agent?: string;
654
- model?: {
655
- providerID: string;
656
- modelID: string;
657
- };
658
- command?: string;
659
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionShellResponses, SessionShellErrors, ThrowOnError, "fields">;
660
- /**
661
- * Revert message
662
- *
663
- * Revert a specific message in a session, undoing its effects and restoring the previous state.
664
- */
665
- revert<ThrowOnError extends boolean = false>(parameters: {
666
- sessionID: string;
667
- directory?: string;
668
- workspace?: string;
669
- messageID?: string;
670
- partID?: string;
671
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionRevertResponses, SessionRevertErrors, ThrowOnError, "fields">;
672
- /**
673
- * Restore reverted messages
674
- *
675
- * Restore all previously reverted messages in a session.
676
- */
677
- unrevert<ThrowOnError extends boolean = false>(parameters: {
678
- sessionID: string;
679
- directory?: string;
680
- workspace?: string;
681
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionUnrevertResponses, SessionUnrevertErrors, ThrowOnError, "fields">;
682
- }
683
- export declare class Part extends HeyApiClient {
684
- /**
685
- * Delete a part from a message
686
- */
687
- delete<ThrowOnError extends boolean = false>(parameters: {
688
- sessionID: string;
689
- messageID: string;
690
- partID: string;
691
- directory?: string;
692
- workspace?: string;
693
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PartDeleteResponses, PartDeleteErrors, ThrowOnError, "fields">;
694
- /**
695
- * Update a part in a message
696
- */
697
- update<ThrowOnError extends boolean = false>(parameters: {
698
- sessionID: string;
699
- messageID: string;
700
- partID: string;
701
- directory?: string;
702
- workspace?: string;
703
- part?: Part2;
704
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PartUpdateResponses, PartUpdateErrors, ThrowOnError, "fields">;
705
- }
706
- export declare class Permission extends HeyApiClient {
707
- /**
708
- * Respond to permission
709
- *
710
- * Approve or deny a permission request from the AI assistant.
711
- *
712
- * @deprecated
713
- */
714
- respond<ThrowOnError extends boolean = false>(parameters: {
715
- sessionID: string;
716
- permissionID: string;
717
- directory?: string;
718
- workspace?: string;
719
- response?: "once" | "always" | "reject";
720
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PermissionRespondResponses, PermissionRespondErrors, ThrowOnError, "fields">;
721
- /**
722
- * Respond to permission request
723
- *
724
- * Approve or deny a permission request from the AI assistant.
725
- */
726
- reply<ThrowOnError extends boolean = false>(parameters: {
727
- requestID: string;
728
- directory?: string;
729
- workspace?: string;
730
- reply?: "once" | "always" | "reject";
731
- message?: string;
732
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PermissionReplyResponses, PermissionReplyErrors, ThrowOnError, "fields">;
733
- /**
734
- * List pending permissions
735
- *
736
- * Get all pending permission requests across all sessions.
737
- */
738
- list<ThrowOnError extends boolean = false>(parameters?: {
739
- directory?: string;
740
- workspace?: string;
741
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PermissionListResponses, unknown, ThrowOnError, "fields">;
742
- }
743
- export declare class Question extends HeyApiClient {
744
- /**
745
- * List pending questions
746
- *
747
- * Get all pending question requests across all sessions.
748
- */
749
- list<ThrowOnError extends boolean = false>(parameters?: {
750
- directory?: string;
751
- workspace?: string;
752
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<QuestionListResponses, unknown, ThrowOnError, "fields">;
753
- /**
754
- * Reply to question request
755
- *
756
- * Provide answers to a question request from the AI assistant.
757
- */
758
- reply<ThrowOnError extends boolean = false>(parameters: {
759
- requestID: string;
760
- directory?: string;
761
- workspace?: string;
762
- answers?: Array<QuestionAnswer>;
763
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<QuestionReplyResponses, QuestionReplyErrors, ThrowOnError, "fields">;
764
- /**
765
- * Reject question request
766
- *
767
- * Reject a question request from the AI assistant.
768
- */
769
- reject<ThrowOnError extends boolean = false>(parameters: {
770
- requestID: string;
771
- directory?: string;
772
- workspace?: string;
773
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<QuestionRejectResponses, QuestionRejectErrors, ThrowOnError, "fields">;
774
- }
775
- export declare class Oauth extends HeyApiClient {
776
- /**
777
- * OAuth authorize
778
- *
779
- * Initiate OAuth authorization for a specific AI provider to get an authorization URL.
780
- */
781
- authorize<ThrowOnError extends boolean = false>(parameters: {
782
- providerID: string;
783
- directory?: string;
784
- workspace?: string;
785
- method?: number;
786
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProviderOauthAuthorizeResponses, ProviderOauthAuthorizeErrors, ThrowOnError, "fields">;
787
- /**
788
- * OAuth callback
789
- *
790
- * Handle the OAuth callback from a provider after user authorization.
791
- */
792
- callback<ThrowOnError extends boolean = false>(parameters: {
793
- providerID: string;
794
- directory?: string;
795
- workspace?: string;
796
- method?: number;
797
- code?: string;
798
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProviderOauthCallbackResponses, ProviderOauthCallbackErrors, ThrowOnError, "fields">;
799
- }
800
- export declare class Provider extends HeyApiClient {
801
- /**
802
- * List providers
803
- *
804
- * Get a list of all available AI providers, including both available and connected ones.
805
- */
806
- list<ThrowOnError extends boolean = false>(parameters?: {
807
- directory?: string;
808
- workspace?: string;
809
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProviderListResponses, unknown, ThrowOnError, "fields">;
810
- /**
811
- * Get provider auth methods
812
- *
813
- * Retrieve available authentication methods for all AI providers.
814
- */
815
- auth<ThrowOnError extends boolean = false>(parameters?: {
816
- directory?: string;
817
- workspace?: string;
818
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProviderAuthResponses, unknown, ThrowOnError, "fields">;
819
- private _oauth?;
820
- get oauth(): Oauth;
821
- }
822
- export declare class Find extends HeyApiClient {
823
- /**
824
- * Find text
825
- *
826
- * Search for text patterns across files in the project using ripgrep.
827
- */
828
- text<ThrowOnError extends boolean = false>(parameters: {
829
- directory?: string;
830
- workspace?: string;
831
- pattern: string;
832
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FindTextResponses, unknown, ThrowOnError, "fields">;
833
- /**
834
- * Find files
835
- *
836
- * Search for files or directories by name or pattern in the project directory.
837
- */
838
- files<ThrowOnError extends boolean = false>(parameters: {
839
- directory?: string;
840
- workspace?: string;
841
- query: string;
842
- dirs?: "true" | "false";
843
- type?: "file" | "directory";
844
- limit?: number;
845
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FindFilesResponses, unknown, ThrowOnError, "fields">;
846
- /**
847
- * Find symbols
848
- *
849
- * Search for workspace symbols like functions, classes, and variables using LSP.
850
- */
851
- symbols<ThrowOnError extends boolean = false>(parameters: {
852
- directory?: string;
853
- workspace?: string;
854
- query: string;
855
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FindSymbolsResponses, unknown, ThrowOnError, "fields">;
856
- }
857
- export declare class File extends HeyApiClient {
858
- /**
859
- * List files
860
- *
861
- * List files and directories in a specified path.
862
- */
863
- list<ThrowOnError extends boolean = false>(parameters: {
864
- directory?: string;
865
- workspace?: string;
866
- path: string;
867
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileListResponses, unknown, ThrowOnError, "fields">;
868
- /**
869
- * Read file
870
- *
871
- * Read the content of a specified file.
872
- */
873
- read<ThrowOnError extends boolean = false>(parameters: {
874
- directory?: string;
875
- workspace?: string;
876
- path: string;
877
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileReadResponses, unknown, ThrowOnError, "fields">;
878
- /**
879
- * Get file status
880
- *
881
- * Get the git status of all files in the project.
882
- */
883
- status<ThrowOnError extends boolean = false>(parameters?: {
884
- directory?: string;
885
- workspace?: string;
886
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileStatusResponses, unknown, ThrowOnError, "fields">;
887
- }
888
- export declare class Auth2 extends HeyApiClient {
889
- /**
890
- * Remove MCP OAuth
891
- *
892
- * Remove OAuth credentials for an MCP server
893
- */
894
- remove<ThrowOnError extends boolean = false>(parameters: {
895
- name: string;
896
- directory?: string;
897
- workspace?: string;
898
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAuthRemoveResponses, McpAuthRemoveErrors, ThrowOnError, "fields">;
899
- /**
900
- * Start MCP OAuth
901
- *
902
- * Start OAuth authentication flow for a Model Context Protocol (MCP) server.
903
- */
904
- start<ThrowOnError extends boolean = false>(parameters: {
905
- name: string;
906
- directory?: string;
907
- workspace?: string;
908
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAuthStartResponses, McpAuthStartErrors, ThrowOnError, "fields">;
909
- /**
910
- * Complete MCP OAuth
911
- *
912
- * Complete OAuth authentication for a Model Context Protocol (MCP) server using the authorization code.
913
- */
914
- callback<ThrowOnError extends boolean = false>(parameters: {
915
- name: string;
916
- directory?: string;
917
- workspace?: string;
918
- code?: string;
919
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAuthCallbackResponses, McpAuthCallbackErrors, ThrowOnError, "fields">;
920
- /**
921
- * Authenticate MCP OAuth
922
- *
923
- * Start OAuth flow and wait for callback (opens browser)
924
- */
925
- authenticate<ThrowOnError extends boolean = false>(parameters: {
926
- name: string;
927
- directory?: string;
928
- workspace?: string;
929
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAuthAuthenticateResponses, McpAuthAuthenticateErrors, ThrowOnError, "fields">;
930
- }
931
- export declare class Mcp extends HeyApiClient {
932
- /**
933
- * Get MCP status
934
- *
935
- * Get the status of all Model Context Protocol (MCP) servers.
936
- */
937
- status<ThrowOnError extends boolean = false>(parameters?: {
938
- directory?: string;
939
- workspace?: string;
940
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpStatusResponses, unknown, ThrowOnError, "fields">;
941
- /**
942
- * Add MCP server
943
- *
944
- * Dynamically add a new Model Context Protocol (MCP) server to the system.
945
- */
946
- add<ThrowOnError extends boolean = false>(parameters?: {
947
- directory?: string;
948
- workspace?: string;
949
- name?: string;
950
- config?: McpLocalConfig | McpRemoteConfig;
951
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAddResponses, McpAddErrors, ThrowOnError, "fields">;
952
- /**
953
- * Connect an MCP server
954
- */
955
- connect<ThrowOnError extends boolean = false>(parameters: {
956
- name: string;
957
- directory?: string;
958
- workspace?: string;
959
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpConnectResponses, unknown, ThrowOnError, "fields">;
960
- /**
961
- * Disconnect an MCP server
962
- */
963
- disconnect<ThrowOnError extends boolean = false>(parameters: {
964
- name: string;
965
- directory?: string;
966
- workspace?: string;
967
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpDisconnectResponses, unknown, ThrowOnError, "fields">;
968
- private _auth?;
969
- get auth(): Auth2;
970
- }
971
- export declare class Control extends HeyApiClient {
972
- /**
973
- * Get next TUI request
974
- *
975
- * Retrieve the next TUI (Terminal User Interface) request from the queue for processing.
976
- */
977
- next<ThrowOnError extends boolean = false>(parameters?: {
978
- directory?: string;
979
- workspace?: string;
980
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiControlNextResponses, unknown, ThrowOnError, "fields">;
981
- /**
982
- * Submit TUI response
983
- *
984
- * Submit a response to the TUI request queue to complete a pending request.
985
- */
986
- response<ThrowOnError extends boolean = false>(parameters?: {
987
- directory?: string;
988
- workspace?: string;
989
- body?: unknown;
990
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiControlResponseResponses, unknown, ThrowOnError, "fields">;
991
- }
992
- export declare class Tui extends HeyApiClient {
993
- /**
994
- * Append TUI prompt
995
- *
996
- * Append prompt to the TUI
997
- */
998
- appendPrompt<ThrowOnError extends boolean = false>(parameters?: {
999
- directory?: string;
1000
- workspace?: string;
1001
- text?: string;
1002
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiAppendPromptResponses, TuiAppendPromptErrors, ThrowOnError, "fields">;
1003
- /**
1004
- * Open help dialog
1005
- *
1006
- * Open the help dialog in the TUI to display user assistance information.
1007
- */
1008
- openHelp<ThrowOnError extends boolean = false>(parameters?: {
1009
- directory?: string;
1010
- workspace?: string;
1011
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenHelpResponses, unknown, ThrowOnError, "fields">;
1012
- /**
1013
- * Open sessions dialog
1014
- *
1015
- * Open the session dialog
1016
- */
1017
- openSessions<ThrowOnError extends boolean = false>(parameters?: {
1018
- directory?: string;
1019
- workspace?: string;
1020
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenSessionsResponses, unknown, ThrowOnError, "fields">;
1021
- /**
1022
- * Open themes dialog
1023
- *
1024
- * Open the theme dialog
1025
- */
1026
- openThemes<ThrowOnError extends boolean = false>(parameters?: {
1027
- directory?: string;
1028
- workspace?: string;
1029
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenThemesResponses, unknown, ThrowOnError, "fields">;
1030
- /**
1031
- * Open models dialog
1032
- *
1033
- * Open the model dialog
1034
- */
1035
- openModels<ThrowOnError extends boolean = false>(parameters?: {
1036
- directory?: string;
1037
- workspace?: string;
1038
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenModelsResponses, unknown, ThrowOnError, "fields">;
1039
- /**
1040
- * Submit TUI prompt
1041
- *
1042
- * Submit the prompt
1043
- */
1044
- submitPrompt<ThrowOnError extends boolean = false>(parameters?: {
1045
- directory?: string;
1046
- workspace?: string;
1047
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiSubmitPromptResponses, unknown, ThrowOnError, "fields">;
1048
- /**
1049
- * Clear TUI prompt
1050
- *
1051
- * Clear the prompt
1052
- */
1053
- clearPrompt<ThrowOnError extends boolean = false>(parameters?: {
1054
- directory?: string;
1055
- workspace?: string;
1056
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiClearPromptResponses, unknown, ThrowOnError, "fields">;
1057
- /**
1058
- * Execute TUI command
1059
- *
1060
- * Execute a TUI command (e.g. agent_cycle)
1061
- */
1062
- executeCommand<ThrowOnError extends boolean = false>(parameters?: {
1063
- directory?: string;
1064
- workspace?: string;
1065
- command?: string;
1066
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiExecuteCommandResponses, TuiExecuteCommandErrors, ThrowOnError, "fields">;
1067
- /**
1068
- * Show TUI toast
1069
- *
1070
- * Show a toast notification in the TUI
1071
- */
1072
- showToast<ThrowOnError extends boolean = false>(parameters?: {
1073
- directory?: string;
1074
- workspace?: string;
1075
- title?: string;
1076
- message?: string;
1077
- variant?: "info" | "success" | "warning" | "error";
1078
- duration?: number;
1079
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiShowToastResponses, unknown, ThrowOnError, "fields">;
1080
- /**
1081
- * Publish TUI event
1082
- *
1083
- * Publish a TUI event
1084
- */
1085
- publish<ThrowOnError extends boolean = false>(parameters?: {
1086
- directory?: string;
1087
- workspace?: string;
1088
- body?: EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect;
1089
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiPublishResponses, TuiPublishErrors, ThrowOnError, "fields">;
1090
- /**
1091
- * Select session
1092
- *
1093
- * Navigate the TUI to display the specified session.
1094
- */
1095
- selectSession<ThrowOnError extends boolean = false>(parameters?: {
1096
- directory?: string;
1097
- workspace?: string;
1098
- sessionID?: string;
1099
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiSelectSessionResponses, TuiSelectSessionErrors, ThrowOnError, "fields">;
1100
- private _control?;
1101
- get control(): Control;
1102
- }
1103
- export declare class Instance extends HeyApiClient {
1104
- /**
1105
- * Dispose instance
1106
- *
1107
- * Clean up and dispose the current ReignCode instance, releasing all resources.
1108
- */
1109
- dispose<ThrowOnError extends boolean = false>(parameters?: {
1110
- directory?: string;
1111
- workspace?: string;
1112
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<InstanceDisposeResponses, unknown, ThrowOnError, "fields">;
1113
- }
1114
- export declare class Path extends HeyApiClient {
1115
- /**
1116
- * Get paths
1117
- *
1118
- * Retrieve the current working directory and related path information for the ReignCode instance.
1119
- */
1120
- get<ThrowOnError extends boolean = false>(parameters?: {
1121
- directory?: string;
1122
- workspace?: string;
1123
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PathGetResponses, unknown, ThrowOnError, "fields">;
1124
- }
1125
- export declare class Vcs extends HeyApiClient {
1126
- /**
1127
- * Get VCS info
1128
- *
1129
- * Retrieve version control system (VCS) information for the current project, such as git branch.
1130
- */
1131
- get<ThrowOnError extends boolean = false>(parameters?: {
1132
- directory?: string;
1133
- workspace?: string;
1134
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<VcsGetResponses, unknown, ThrowOnError, "fields">;
1135
- }
1136
- export declare class Command extends HeyApiClient {
1137
- /**
1138
- * List commands
1139
- *
1140
- * Get a list of all available commands in the ReignCode system.
1141
- */
1142
- list<ThrowOnError extends boolean = false>(parameters?: {
1143
- directory?: string;
1144
- workspace?: string;
1145
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<CommandListResponses, unknown, ThrowOnError, "fields">;
1146
- }
1147
- export declare class App extends HeyApiClient {
1148
- /**
1149
- * Write log
1150
- *
1151
- * Write a log entry to the server logs with specified level and metadata.
1152
- */
1153
- log<ThrowOnError extends boolean = false>(parameters?: {
1154
- directory?: string;
1155
- workspace?: string;
1156
- service?: string;
1157
- level?: "debug" | "info" | "error" | "warn";
1158
- message?: string;
1159
- extra?: {
1160
- [key: string]: unknown;
1161
- };
1162
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppLogResponses, AppLogErrors, ThrowOnError, "fields">;
1163
- /**
1164
- * List agents
1165
- *
1166
- * Get a list of all available AI agents in the ReignCode system.
1167
- */
1168
- agents<ThrowOnError extends boolean = false>(parameters?: {
1169
- directory?: string;
1170
- workspace?: string;
1171
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppAgentsResponses, unknown, ThrowOnError, "fields">;
1172
- /**
1173
- * List skills
1174
- *
1175
- * Get a list of all available skills in the ReignCode system.
1176
- */
1177
- skills<ThrowOnError extends boolean = false>(parameters?: {
1178
- directory?: string;
1179
- workspace?: string;
1180
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppSkillsResponses, unknown, ThrowOnError, "fields">;
1181
- }
1182
- export declare class Lsp extends HeyApiClient {
1183
- /**
1184
- * Get LSP status
1185
- *
1186
- * Get LSP server status
1187
- */
1188
- status<ThrowOnError extends boolean = false>(parameters?: {
1189
- directory?: string;
1190
- workspace?: string;
1191
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<LspStatusResponses, unknown, ThrowOnError, "fields">;
1192
- }
1193
- export declare class Formatter extends HeyApiClient {
1194
- /**
1195
- * Get formatter status
1196
- *
1197
- * Get formatter status
1198
- */
1199
- status<ThrowOnError extends boolean = false>(parameters?: {
1200
- directory?: string;
1201
- workspace?: string;
1202
- }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FormatterStatusResponses, unknown, ThrowOnError, "fields">;
1203
- }
1204
- export declare class Event extends HeyApiClient {
1205
- /**
1206
- * Subscribe to events
1207
- *
1208
- * Get events
1209
- */
1210
- subscribe<ThrowOnError extends boolean = false>(parameters?: {
1211
- directory?: string;
1212
- workspace?: string;
1213
- }, options?: Options<never, ThrowOnError>): Promise<import("./core/serverSentEvents.gen.js").ServerSentEventsResult<EventSubscribeResponses, unknown>>;
1214
- }
1215
- export declare class ReigncodeClient extends HeyApiClient {
1216
- static readonly __registry: HeyApiRegistry<ReigncodeClient>;
1217
- constructor(args?: {
1218
- client?: Client;
1219
- key?: string;
1220
- });
1221
- private _global?;
1222
- get global(): Global;
1223
- private _auth?;
1224
- get auth(): Auth;
1225
- private _project?;
1226
- get project(): Project;
1227
- private _pty?;
1228
- get pty(): Pty;
1229
- private _config?;
1230
- get config(): Config2;
1231
- private _tool?;
1232
- get tool(): Tool;
1233
- private _experimental?;
1234
- get experimental(): Experimental;
1235
- private _worktree?;
1236
- get worktree(): Worktree;
1237
- private _session?;
1238
- get session(): Session2;
1239
- private _part?;
1240
- get part(): Part;
1241
- private _permission?;
1242
- get permission(): Permission;
1243
- private _question?;
1244
- get question(): Question;
1245
- private _provider?;
1246
- get provider(): Provider;
1247
- private _find?;
1248
- get find(): Find;
1249
- private _file?;
1250
- get file(): File;
1251
- private _mcp?;
1252
- get mcp(): Mcp;
1253
- private _tui?;
1254
- get tui(): Tui;
1255
- private _instance?;
1256
- get instance(): Instance;
1257
- private _path?;
1258
- get path(): Path;
1259
- private _vcs?;
1260
- get vcs(): Vcs;
1261
- private _command?;
1262
- get command(): Command;
1263
- private _app?;
1264
- get app(): App;
1265
- private _lsp?;
1266
- get lsp(): Lsp;
1267
- private _formatter?;
1268
- get formatter(): Formatter;
1269
- private _event?;
1270
- get event(): Event;
1271
- }
1272
- export {};