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