@opencode-ai/client 0.0.0-dev-17471

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 (40) hide show
  1. package/README.md +27 -0
  2. package/dist/contract.d.ts +1 -0
  3. package/dist/contract.js +1 -0
  4. package/dist/effect/api/api.d.ts +2155 -0
  5. package/dist/effect/api/api.js +0 -0
  6. package/dist/effect/api.d.ts +7 -0
  7. package/dist/effect/api.js +0 -0
  8. package/dist/effect/generated/client-error.d.ts +7 -0
  9. package/dist/effect/generated/client-error.js +5 -0
  10. package/dist/effect/generated/client.d.ts +2208 -0
  11. package/dist/effect/generated/client.js +460 -0
  12. package/dist/effect/generated/index.d.ts +2 -0
  13. package/dist/effect/generated/index.js +2 -0
  14. package/dist/effect/index.d.ts +32 -0
  15. package/dist/effect/index.js +28 -0
  16. package/dist/effect/service.d.ts +78 -0
  17. package/dist/effect/service.js +286 -0
  18. package/dist/promise/api.d.ts +18 -0
  19. package/dist/promise/api.js +0 -0
  20. package/dist/promise/generated/client-error.d.ts +6 -0
  21. package/dist/promise/generated/client-error.js +8 -0
  22. package/dist/promise/generated/client.d.ts +228 -0
  23. package/dist/promise/generated/client.js +1205 -0
  24. package/dist/promise/generated/index.d.ts +3 -0
  25. package/dist/promise/generated/index.js +3 -0
  26. package/dist/promise/generated/types.d.ts +7807 -0
  27. package/dist/promise/generated/types.js +26 -0
  28. package/dist/promise/index.d.ts +4 -0
  29. package/dist/promise/index.js +1 -0
  30. package/dist/promise/service.d.ts +26 -0
  31. package/dist/promise/service.js +273 -0
  32. package/dist/service-contender.d.ts +11 -0
  33. package/dist/service-contender.js +52 -0
  34. package/dist/service-timing.d.ts +13 -0
  35. package/dist/service-timing.js +19 -0
  36. package/dist/service-version.d.ts +2 -0
  37. package/dist/service-version.js +9 -0
  38. package/dist/service.d.ts +48 -0
  39. package/dist/service.js +0 -0
  40. package/package.json +75 -0
@@ -0,0 +1,2155 @@
1
+ import type { Effect, Stream } from "effect";
2
+ import type { Location } from "@opencode-ai/schema/location";
3
+ import type { Agent } from "@opencode-ai/schema/agent";
4
+ import type { Plugin } from "@opencode-ai/schema/plugin";
5
+ import type { Workspace } from "@opencode-ai/schema/workspace";
6
+ import type { Session } from "@opencode-ai/schema/session";
7
+ import type { AbsolutePath } from "@opencode-ai/schema/schema";
8
+ import type { Project } from "@opencode-ai/schema/project";
9
+ import type { RelativePath } from "@opencode-ai/schema/schema";
10
+ import type { Brand } from "effect";
11
+ import type { Model } from "@opencode-ai/schema/model";
12
+ import type { SessionMessage } from "@opencode-ai/schema/session-message";
13
+ import type { SessionInbox } from "@opencode-ai/schema/session-inbox";
14
+ import type { PromptInput } from "@opencode-ai/schema/prompt-input";
15
+ import type { AgentAttachment } from "@opencode-ai/schema/prompt";
16
+ import type { Skill } from "@opencode-ai/schema/skill";
17
+ import type { Event } from "@opencode-ai/schema/event";
18
+ import type { InstructionEntry } from "@opencode-ai/schema/instruction-entry";
19
+ import type { Schema } from "effect";
20
+ import type { EventLog } from "@opencode-ai/schema/event-log";
21
+ import type { Shell } from "@opencode-ai/schema/shell";
22
+ import type { Provider } from "@opencode-ai/schema/provider";
23
+ import type { Integration } from "@opencode-ai/schema/integration";
24
+ import type { Form } from "@opencode-ai/schema/form";
25
+ import type { Mcp } from "@opencode-ai/schema/mcp";
26
+ import type { Credential } from "@opencode-ai/schema/credential";
27
+ import type { Permission } from "@opencode-ai/schema/permission";
28
+ import type { PermissionSaved } from "@opencode-ai/schema/permission-saved";
29
+ import type { FileSystem } from "@opencode-ai/schema/filesystem";
30
+ import type { Command } from "@opencode-ai/schema/command";
31
+ import type { OpenCodeEvent } from "@opencode-ai/protocol/groups/event";
32
+ import type { Pty } from "@opencode-ai/schema/pty";
33
+ import type { Reference } from "@opencode-ai/schema/reference";
34
+ import type { Worktree } from "@opencode-ai/schema/worktree";
35
+ import type { Vcs } from "@opencode-ai/schema/vcs";
36
+ import type { FileDiff } from "@opencode-ai/schema/file-diff";
37
+ import type { WebSearch } from "@opencode-ai/schema/websearch";
38
+ import type { Config } from "@opencode-ai/schema/config";
39
+ export type Endpoint0_0Output = {
40
+ readonly healthy: true;
41
+ readonly version: string;
42
+ readonly pid: number;
43
+ };
44
+ export type HealthGetOperation<E = never> = () => Effect.Effect<Endpoint0_0Output, E>;
45
+ export type Endpoint0_1Input = {
46
+ readonly instanceID: string;
47
+ };
48
+ export type Endpoint0_1Output = {
49
+ readonly accepted: boolean;
50
+ };
51
+ export type HealthStopOperation<E = never> = (input: Endpoint0_1Input) => Effect.Effect<Endpoint0_1Output, E>;
52
+ export interface HealthApi<E = never> {
53
+ readonly get: HealthGetOperation<E>;
54
+ readonly stop: HealthStopOperation<E>;
55
+ }
56
+ export type Endpoint1_0Output = {
57
+ readonly urls: ReadonlyArray<string>;
58
+ };
59
+ export type ServerGetOperation<E = never> = () => Effect.Effect<Endpoint1_0Output, E>;
60
+ export interface ServerApi<E = never> {
61
+ readonly get: ServerGetOperation<E>;
62
+ }
63
+ export type Endpoint2_0Input = {
64
+ readonly location?: {
65
+ readonly directory?: string | undefined;
66
+ readonly workspace?: string | undefined;
67
+ } | undefined;
68
+ };
69
+ export type Endpoint2_0Output = Location.Info;
70
+ export type LocationGetOperation<E = never> = (input?: Endpoint2_0Input) => Effect.Effect<Endpoint2_0Output, E>;
71
+ export interface LocationApi<E = never> {
72
+ readonly get: LocationGetOperation<E>;
73
+ }
74
+ export type Endpoint3_0Input = {
75
+ readonly location?: {
76
+ readonly directory?: string | undefined;
77
+ readonly workspace?: string | undefined;
78
+ } | undefined;
79
+ };
80
+ export type Endpoint3_0Output = {
81
+ readonly location: Location.Info;
82
+ readonly data: ReadonlyArray<Agent.Info>;
83
+ };
84
+ export type AgentListOperation<E = never> = (input?: Endpoint3_0Input) => Effect.Effect<Endpoint3_0Output, E>;
85
+ export type Endpoint3_1Input = {
86
+ readonly agentID: Agent.ID;
87
+ readonly location?: {
88
+ readonly directory?: string | undefined;
89
+ readonly workspace?: string | undefined;
90
+ } | undefined;
91
+ };
92
+ export type Endpoint3_1Output = {
93
+ readonly location: Location.Info;
94
+ readonly data: Agent.Info;
95
+ };
96
+ export type AgentGetOperation<E = never> = (input: Endpoint3_1Input) => Effect.Effect<Endpoint3_1Output, E>;
97
+ export interface AgentApi<E = never> {
98
+ readonly list: AgentListOperation<E>;
99
+ readonly get: AgentGetOperation<E>;
100
+ }
101
+ export type Endpoint4_0Input = {
102
+ readonly location?: {
103
+ readonly directory?: string | undefined;
104
+ readonly workspace?: string | undefined;
105
+ } | undefined;
106
+ };
107
+ export type Endpoint4_0Output = {
108
+ readonly location: Location.Info;
109
+ readonly data: ReadonlyArray<Plugin.Info>;
110
+ };
111
+ export type PluginListOperation<E = never> = (input?: Endpoint4_0Input) => Effect.Effect<Endpoint4_0Output, E>;
112
+ export interface PluginApi<E = never> {
113
+ readonly list: PluginListOperation<E>;
114
+ }
115
+ export type Endpoint5_0Input = {
116
+ readonly workspace?: Workspace.ID | undefined;
117
+ readonly limit?: number | undefined;
118
+ readonly order?: "asc" | "desc" | undefined;
119
+ readonly search?: string | undefined;
120
+ readonly parentID?: Session.ID | null | undefined;
121
+ readonly directory?: AbsolutePath | undefined;
122
+ readonly project?: Project.ID | undefined;
123
+ readonly subpath?: RelativePath | undefined;
124
+ readonly cursor?: (string & Brand.Brand<"SessionsCursor">) | undefined;
125
+ };
126
+ export type Endpoint5_0Output = {
127
+ readonly data: ReadonlyArray<Session.Info>;
128
+ readonly cursor: {
129
+ readonly previous?: (string & Brand.Brand<"SessionsCursor">) | undefined;
130
+ readonly next?: (string & Brand.Brand<"SessionsCursor">) | undefined;
131
+ };
132
+ };
133
+ export type SessionListOperation<E = never> = (input?: Endpoint5_0Input) => Effect.Effect<Endpoint5_0Output, E>;
134
+ export type Endpoint5_1Input = {
135
+ readonly id?: Session.ID | undefined;
136
+ readonly title?: string | undefined;
137
+ readonly agent?: Agent.ID | undefined;
138
+ readonly model?: Model.Ref | undefined;
139
+ readonly location?: Location.Ref | undefined;
140
+ };
141
+ export type Endpoint5_1Output = Session.Info;
142
+ export type SessionCreateOperation<E = never> = (input?: Endpoint5_1Input) => Effect.Effect<Endpoint5_1Output, E>;
143
+ export type Endpoint5_2Input = {
144
+ readonly info: Session.Info;
145
+ readonly messages: ReadonlyArray<SessionMessage.Info>;
146
+ readonly location?: Location.Ref | undefined;
147
+ };
148
+ export type Endpoint5_2Output = Session.Info;
149
+ export type SessionImportOperation<E = never> = (input: Endpoint5_2Input) => Effect.Effect<Endpoint5_2Output, E>;
150
+ export type Endpoint5_3Input = {
151
+ readonly sessionID: Session.ID;
152
+ readonly sanitize?: boolean | undefined;
153
+ };
154
+ export type Endpoint5_3Output = {
155
+ readonly info: Session.Info;
156
+ readonly messages: ReadonlyArray<SessionMessage.Info>;
157
+ };
158
+ export type SessionExportOperation<E = never> = (input: Endpoint5_3Input) => Effect.Effect<Endpoint5_3Output, E>;
159
+ export type Endpoint5_4Output = {
160
+ readonly [x: Session.ID]: {
161
+ readonly type: "running";
162
+ };
163
+ };
164
+ export type SessionActiveOperation<E = never> = () => Effect.Effect<Endpoint5_4Output, E>;
165
+ export type Endpoint5_5Input = {
166
+ readonly sessionID: Session.ID;
167
+ };
168
+ export type Endpoint5_5Output = Session.Info;
169
+ export type SessionGetOperation<E = never> = (input: Endpoint5_5Input) => Effect.Effect<Endpoint5_5Output, E>;
170
+ export type Endpoint5_6Input = {
171
+ readonly sessionID: Session.ID;
172
+ };
173
+ export type Endpoint5_6Output = void;
174
+ export type SessionRemoveOperation<E = never> = (input: Endpoint5_6Input) => Effect.Effect<Endpoint5_6Output, E>;
175
+ export type Endpoint5_7Input = {
176
+ readonly sessionID: Session.ID;
177
+ readonly boundary: Session.ForkRequestBoundary;
178
+ };
179
+ export type Endpoint5_7Output = Session.Info;
180
+ export type SessionForkOperation<E = never> = (input: Endpoint5_7Input) => Effect.Effect<Endpoint5_7Output, E>;
181
+ export type Endpoint5_8Input = {
182
+ readonly sessionID: Session.ID;
183
+ readonly agent: Agent.ID;
184
+ };
185
+ export type Endpoint5_8Output = void;
186
+ export type SessionSwitchAgentOperation<E = never> = (input: Endpoint5_8Input) => Effect.Effect<Endpoint5_8Output, E>;
187
+ export type Endpoint5_9Input = {
188
+ readonly sessionID: Session.ID;
189
+ readonly model: Model.Ref;
190
+ };
191
+ export type Endpoint5_9Output = void;
192
+ export type SessionSwitchModelOperation<E = never> = (input: Endpoint5_9Input) => Effect.Effect<Endpoint5_9Output, E>;
193
+ export type Endpoint5_10Input = {
194
+ readonly sessionID: Session.ID;
195
+ readonly title: string;
196
+ };
197
+ export type Endpoint5_10Output = void;
198
+ export type SessionRenameOperation<E = never> = (input: Endpoint5_10Input) => Effect.Effect<Endpoint5_10Output, E>;
199
+ export type Endpoint5_11Input = {
200
+ readonly sessionID: Session.ID;
201
+ readonly directory: AbsolutePath;
202
+ readonly workspaceID?: Workspace.ID | undefined;
203
+ readonly delivery?: SessionInbox.Delivery | undefined;
204
+ };
205
+ export type Endpoint5_11Output = void;
206
+ export type SessionMoveOperation<E = never> = (input: Endpoint5_11Input) => Effect.Effect<Endpoint5_11Output, E>;
207
+ export type Endpoint5_12Input = {
208
+ readonly sessionID: Session.ID;
209
+ readonly id?: SessionMessage.ID | undefined;
210
+ readonly text: string;
211
+ readonly files?: ReadonlyArray<PromptInput.FileAttachment> | undefined;
212
+ readonly agents?: ReadonlyArray<AgentAttachment> | undefined;
213
+ readonly skills?: ReadonlyArray<PromptInput.SkillAttachment> | undefined;
214
+ readonly metadata?: {
215
+ readonly [x: string]: unknown;
216
+ } | undefined;
217
+ readonly delivery?: SessionInbox.Delivery | undefined;
218
+ readonly resume?: boolean | undefined;
219
+ };
220
+ export type Endpoint5_12Output = SessionInbox.User;
221
+ export type SessionPromptOperation<E = never> = (input: Endpoint5_12Input) => Effect.Effect<Endpoint5_12Output, E>;
222
+ export type Endpoint5_13Input = {
223
+ readonly sessionID: Session.ID;
224
+ readonly id?: SessionMessage.ID | undefined;
225
+ readonly command: string;
226
+ readonly arguments?: string | undefined;
227
+ readonly agent?: Agent.ID | undefined;
228
+ readonly model?: Model.Ref | undefined;
229
+ readonly files?: ReadonlyArray<PromptInput.FileAttachment> | undefined;
230
+ readonly agents?: ReadonlyArray<AgentAttachment> | undefined;
231
+ readonly skills?: ReadonlyArray<PromptInput.SkillAttachment> | undefined;
232
+ readonly delivery?: SessionInbox.Delivery | undefined;
233
+ readonly resume?: boolean | undefined;
234
+ };
235
+ export type Endpoint5_13Output = SessionInbox.User;
236
+ export type SessionCommandOperation<E = never> = (input: Endpoint5_13Input) => Effect.Effect<Endpoint5_13Output, E>;
237
+ export type Endpoint5_14Input = {
238
+ readonly sessionID: Session.ID;
239
+ readonly id?: SessionMessage.ID | undefined;
240
+ readonly skill: Skill.ID;
241
+ readonly resume?: boolean | undefined;
242
+ };
243
+ export type Endpoint5_14Output = void;
244
+ export type SessionSkillOperation<E = never> = (input: Endpoint5_14Input) => Effect.Effect<Endpoint5_14Output, E>;
245
+ export type Endpoint5_15Input = {
246
+ readonly sessionID: Session.ID;
247
+ readonly id?: SessionMessage.ID | undefined;
248
+ readonly text: string;
249
+ readonly description?: string | undefined;
250
+ readonly metadata?: {
251
+ readonly [x: string]: unknown;
252
+ } | undefined;
253
+ readonly delivery?: SessionInbox.Delivery | undefined;
254
+ readonly resume?: boolean | undefined;
255
+ };
256
+ export type Endpoint5_15Output = SessionInbox.Synthetic;
257
+ export type SessionSyntheticOperation<E = never> = (input: Endpoint5_15Input) => Effect.Effect<Endpoint5_15Output, E>;
258
+ export type Endpoint5_16Input = {
259
+ readonly sessionID: Session.ID;
260
+ readonly id?: Event.ID | undefined;
261
+ readonly command: string;
262
+ };
263
+ export type Endpoint5_16Output = void;
264
+ export type SessionShellOperation<E = never> = (input: Endpoint5_16Input) => Effect.Effect<Endpoint5_16Output, E>;
265
+ export type Endpoint5_17Input = {
266
+ readonly sessionID: Session.ID;
267
+ readonly id?: SessionMessage.ID | undefined;
268
+ readonly delivery?: SessionInbox.Delivery | undefined;
269
+ };
270
+ export type Endpoint5_17Output = SessionInbox.Compaction;
271
+ export type SessionCompactOperation<E = never> = (input: Endpoint5_17Input) => Effect.Effect<Endpoint5_17Output, E>;
272
+ export type Endpoint5_18Input = {
273
+ readonly sessionID: Session.ID;
274
+ };
275
+ export type Endpoint5_18Output = void;
276
+ export type SessionWaitOperation<E = never> = (input: Endpoint5_18Input) => Effect.Effect<Endpoint5_18Output, E>;
277
+ export type Endpoint5_19Input = {
278
+ readonly sessionID: Session.ID;
279
+ readonly messageID: SessionMessage.ID;
280
+ readonly files?: boolean | undefined;
281
+ };
282
+ export type Endpoint5_19Output = Session.Revert;
283
+ export type SessionRevertStageOperation<E = never> = (input: Endpoint5_19Input) => Effect.Effect<Endpoint5_19Output, E>;
284
+ export type Endpoint5_20Input = {
285
+ readonly sessionID: Session.ID;
286
+ };
287
+ export type Endpoint5_20Output = void;
288
+ export type SessionRevertClearOperation<E = never> = (input: Endpoint5_20Input) => Effect.Effect<Endpoint5_20Output, E>;
289
+ export type Endpoint5_21Input = {
290
+ readonly sessionID: Session.ID;
291
+ };
292
+ export type Endpoint5_21Output = void;
293
+ export type SessionRevertCommitOperation<E = never> = (input: Endpoint5_21Input) => Effect.Effect<Endpoint5_21Output, E>;
294
+ export type Endpoint5_22Input = {
295
+ readonly sessionID: Session.ID;
296
+ };
297
+ export type Endpoint5_22Output = ReadonlyArray<SessionMessage.Info>;
298
+ export type SessionContextOperation<E = never> = (input: Endpoint5_22Input) => Effect.Effect<Endpoint5_22Output, E>;
299
+ export type Endpoint5_23Input = {
300
+ readonly sessionID: Session.ID;
301
+ };
302
+ export type Endpoint5_23Output = ReadonlyArray<SessionInbox.Info>;
303
+ export type SessionInboxListOperation<E = never> = (input: Endpoint5_23Input) => Effect.Effect<Endpoint5_23Output, E>;
304
+ export type Endpoint5_24Input = {
305
+ readonly sessionID: Session.ID;
306
+ readonly inboxID: SessionMessage.ID;
307
+ };
308
+ export type Endpoint5_24Output = void;
309
+ export type SessionInboxCancelOperation<E = never> = (input: Endpoint5_24Input) => Effect.Effect<Endpoint5_24Output, E>;
310
+ export type Endpoint5_25Input = {
311
+ readonly sessionID: Session.ID;
312
+ readonly inboxID: SessionMessage.ID;
313
+ };
314
+ export type Endpoint5_25Output = void;
315
+ export type SessionInboxSteerOperation<E = never> = (input: Endpoint5_25Input) => Effect.Effect<Endpoint5_25Output, E>;
316
+ export type Endpoint5_26Input = {
317
+ readonly sessionID: Session.ID;
318
+ readonly inboxID: SessionMessage.ID;
319
+ };
320
+ export type Endpoint5_26Output = void;
321
+ export type SessionInboxQueueOperation<E = never> = (input: Endpoint5_26Input) => Effect.Effect<Endpoint5_26Output, E>;
322
+ export type Endpoint5_27Input = {
323
+ readonly sessionID: Session.ID;
324
+ };
325
+ export type Endpoint5_27Output = ReadonlyArray<InstructionEntry.Info>;
326
+ export type SessionInstructionsEntryListOperation<E = never> = (input: Endpoint5_27Input) => Effect.Effect<Endpoint5_27Output, E>;
327
+ export type Endpoint5_28Input = {
328
+ readonly sessionID: Session.ID;
329
+ readonly key: InstructionEntry.Key;
330
+ readonly value: Schema.Json;
331
+ };
332
+ export type Endpoint5_28Output = void;
333
+ export type SessionInstructionsEntryPutOperation<E = never> = (input: Endpoint5_28Input) => Effect.Effect<Endpoint5_28Output, E>;
334
+ export type Endpoint5_29Input = {
335
+ readonly sessionID: Session.ID;
336
+ readonly key: InstructionEntry.Key;
337
+ };
338
+ export type Endpoint5_29Output = void;
339
+ export type SessionInstructionsEntryRemoveOperation<E = never> = (input: Endpoint5_29Input) => Effect.Effect<Endpoint5_29Output, E>;
340
+ export type Endpoint5_30Input = {
341
+ readonly sessionID: Session.ID;
342
+ readonly prompt: string;
343
+ };
344
+ export type Endpoint5_30Output = {
345
+ readonly text: string;
346
+ };
347
+ export type SessionGenerateOperation<E = never> = (input: Endpoint5_30Input) => Effect.Effect<Endpoint5_30Output, E>;
348
+ export type Endpoint5_31Input = {
349
+ readonly sessionID: Session.ID;
350
+ readonly after?: Event.Seq | undefined;
351
+ readonly follow?: boolean | undefined;
352
+ };
353
+ export type Endpoint5_31Output = ({
354
+ readonly id: Event.ID;
355
+ readonly created: number;
356
+ readonly metadata?: {
357
+ readonly [x: string]: unknown;
358
+ } | undefined;
359
+ readonly type: "session.created";
360
+ readonly durable: {
361
+ readonly aggregateID: string;
362
+ readonly seq: Event.Seq;
363
+ readonly version: Event.Version;
364
+ };
365
+ readonly location?: Location.Ref | undefined;
366
+ readonly data: {
367
+ readonly sessionID: Session.ID;
368
+ readonly projectID: Project.ID;
369
+ readonly location: Location.Ref;
370
+ readonly subpath?: RelativePath | undefined;
371
+ readonly parentID?: Session.ID | undefined;
372
+ readonly slug: string;
373
+ readonly title?: string | undefined;
374
+ readonly agent?: Agent.ID | undefined;
375
+ readonly model?: Model.Ref | undefined;
376
+ readonly version: string;
377
+ };
378
+ } | {
379
+ readonly id: Event.ID;
380
+ readonly created: number;
381
+ readonly metadata?: {
382
+ readonly [x: string]: unknown;
383
+ } | undefined;
384
+ readonly type: "session.agent.selected";
385
+ readonly durable: {
386
+ readonly aggregateID: string;
387
+ readonly seq: Event.Seq;
388
+ readonly version: Event.Version;
389
+ };
390
+ readonly location?: Location.Ref | undefined;
391
+ readonly data: {
392
+ readonly sessionID: Session.ID;
393
+ readonly agent: Agent.ID;
394
+ readonly previous?: Agent.ID | undefined;
395
+ };
396
+ } | {
397
+ readonly id: Event.ID;
398
+ readonly created: number;
399
+ readonly metadata?: {
400
+ readonly [x: string]: unknown;
401
+ } | undefined;
402
+ readonly type: "session.model.selected";
403
+ readonly durable: {
404
+ readonly aggregateID: string;
405
+ readonly seq: Event.Seq;
406
+ readonly version: Event.Version;
407
+ };
408
+ readonly location?: Location.Ref | undefined;
409
+ readonly data: {
410
+ readonly sessionID: Session.ID;
411
+ readonly model: Model.Ref;
412
+ readonly previous?: Model.Ref | undefined;
413
+ };
414
+ } | {
415
+ readonly id: Event.ID;
416
+ readonly created: number;
417
+ readonly metadata?: {
418
+ readonly [x: string]: unknown;
419
+ } | undefined;
420
+ readonly type: "session.moved";
421
+ readonly durable: {
422
+ readonly aggregateID: string;
423
+ readonly seq: Event.Seq;
424
+ readonly version: Event.Version;
425
+ };
426
+ readonly location?: Location.Ref | undefined;
427
+ readonly data: {
428
+ readonly sessionID: Session.ID;
429
+ readonly location: Location.Ref;
430
+ readonly projectID: Project.ID;
431
+ readonly subpath?: RelativePath | undefined;
432
+ };
433
+ } | {
434
+ readonly id: Event.ID;
435
+ readonly created: number;
436
+ readonly metadata?: {
437
+ readonly [x: string]: unknown;
438
+ } | undefined;
439
+ readonly type: "session.renamed";
440
+ readonly durable: {
441
+ readonly aggregateID: string;
442
+ readonly seq: Event.Seq;
443
+ readonly version: Event.Version;
444
+ };
445
+ readonly location?: Location.Ref | undefined;
446
+ readonly data: {
447
+ readonly sessionID: Session.ID;
448
+ readonly title: string;
449
+ };
450
+ } | {
451
+ readonly id: Event.ID;
452
+ readonly created: number;
453
+ readonly metadata?: {
454
+ readonly [x: string]: unknown;
455
+ } | undefined;
456
+ readonly type: "session.deleted";
457
+ readonly durable: {
458
+ readonly aggregateID: string;
459
+ readonly seq: Event.Seq;
460
+ readonly version: Event.Version;
461
+ };
462
+ readonly location?: Location.Ref | undefined;
463
+ readonly data: {
464
+ readonly sessionID: Session.ID;
465
+ };
466
+ } | {
467
+ readonly id: Event.ID;
468
+ readonly created: number;
469
+ readonly metadata?: {
470
+ readonly [x: string]: unknown;
471
+ } | undefined;
472
+ readonly type: "session.forked";
473
+ readonly durable: {
474
+ readonly aggregateID: string;
475
+ readonly seq: Event.Seq;
476
+ readonly version: Event.Version;
477
+ };
478
+ readonly location?: Location.Ref | undefined;
479
+ readonly data: {
480
+ readonly sessionID: Session.ID;
481
+ readonly parentID: Session.ID;
482
+ readonly boundary: Session.ForkBoundary;
483
+ readonly instructions?: {
484
+ readonly [x: string & Brand.Brand<"Instruction.Key">]: string & Brand.Brand<"Instruction.Hash">;
485
+ } | undefined;
486
+ };
487
+ } | {
488
+ readonly id: Event.ID;
489
+ readonly created: number;
490
+ readonly metadata?: {
491
+ readonly [x: string]: unknown;
492
+ } | undefined;
493
+ readonly type: "session.inbox.delivered";
494
+ readonly durable: {
495
+ readonly aggregateID: string;
496
+ readonly seq: Event.Seq;
497
+ readonly version: Event.Version;
498
+ };
499
+ readonly location?: Location.Ref | undefined;
500
+ readonly data: {
501
+ readonly sessionID: Session.ID;
502
+ readonly inboxID: SessionMessage.ID;
503
+ };
504
+ } | {
505
+ readonly id: Event.ID;
506
+ readonly created: number;
507
+ readonly metadata?: {
508
+ readonly [x: string]: unknown;
509
+ } | undefined;
510
+ readonly type: "session.inbox.enqueued";
511
+ readonly durable: {
512
+ readonly aggregateID: string;
513
+ readonly seq: Event.Seq;
514
+ readonly version: Event.Version;
515
+ };
516
+ readonly location?: Location.Ref | undefined;
517
+ readonly data: {
518
+ readonly sessionID: Session.ID;
519
+ readonly inboxID: SessionMessage.ID;
520
+ readonly item: SessionInbox.Item;
521
+ };
522
+ } | {
523
+ readonly id: Event.ID;
524
+ readonly created: number;
525
+ readonly metadata?: {
526
+ readonly [x: string]: unknown;
527
+ } | undefined;
528
+ readonly type: "session.inbox.cancelled";
529
+ readonly durable: {
530
+ readonly aggregateID: string;
531
+ readonly seq: Event.Seq;
532
+ readonly version: Event.Version;
533
+ };
534
+ readonly location?: Location.Ref | undefined;
535
+ readonly data: {
536
+ readonly sessionID: Session.ID;
537
+ readonly inboxID: SessionMessage.ID;
538
+ };
539
+ } | {
540
+ readonly id: Event.ID;
541
+ readonly created: number;
542
+ readonly metadata?: {
543
+ readonly [x: string]: unknown;
544
+ } | undefined;
545
+ readonly type: "session.inbox.delivery.changed";
546
+ readonly durable: {
547
+ readonly aggregateID: string;
548
+ readonly seq: Event.Seq;
549
+ readonly version: Event.Version;
550
+ };
551
+ readonly location?: Location.Ref | undefined;
552
+ readonly data: {
553
+ readonly sessionID: Session.ID;
554
+ readonly inboxID: SessionMessage.ID;
555
+ readonly delivery: SessionInbox.Delivery;
556
+ };
557
+ } | {
558
+ readonly id: Event.ID;
559
+ readonly created: number;
560
+ readonly metadata?: {
561
+ readonly [x: string]: unknown;
562
+ } | undefined;
563
+ readonly type: "session.execution.started";
564
+ readonly durable: {
565
+ readonly aggregateID: string;
566
+ readonly seq: Event.Seq;
567
+ readonly version: Event.Version;
568
+ };
569
+ readonly location?: Location.Ref | undefined;
570
+ readonly data: {
571
+ readonly sessionID: Session.ID;
572
+ };
573
+ } | {
574
+ readonly id: Event.ID;
575
+ readonly created: number;
576
+ readonly metadata?: {
577
+ readonly [x: string]: unknown;
578
+ } | undefined;
579
+ readonly type: "session.execution.succeeded";
580
+ readonly durable: {
581
+ readonly aggregateID: string;
582
+ readonly seq: Event.Seq;
583
+ readonly version: Event.Version;
584
+ };
585
+ readonly location?: Location.Ref | undefined;
586
+ readonly data: {
587
+ readonly sessionID: Session.ID;
588
+ };
589
+ } | {
590
+ readonly id: Event.ID;
591
+ readonly created: number;
592
+ readonly metadata?: {
593
+ readonly [x: string]: unknown;
594
+ } | undefined;
595
+ readonly type: "session.execution.failed";
596
+ readonly durable: {
597
+ readonly aggregateID: string;
598
+ readonly seq: Event.Seq;
599
+ readonly version: Event.Version;
600
+ };
601
+ readonly location?: Location.Ref | undefined;
602
+ readonly data: {
603
+ readonly sessionID: Session.ID;
604
+ readonly error: {
605
+ readonly type: string;
606
+ readonly message: string;
607
+ readonly status?: number | undefined;
608
+ };
609
+ };
610
+ } | {
611
+ readonly id: Event.ID;
612
+ readonly created: number;
613
+ readonly metadata?: {
614
+ readonly [x: string]: unknown;
615
+ } | undefined;
616
+ readonly type: "session.execution.interrupted";
617
+ readonly durable: {
618
+ readonly aggregateID: string;
619
+ readonly seq: Event.Seq;
620
+ readonly version: Event.Version;
621
+ };
622
+ readonly location?: Location.Ref | undefined;
623
+ readonly data: {
624
+ readonly sessionID: Session.ID;
625
+ readonly reason: "user" | "shutdown" | "superseded";
626
+ };
627
+ } | {
628
+ readonly id: Event.ID;
629
+ readonly created: number;
630
+ readonly metadata?: {
631
+ readonly [x: string]: unknown;
632
+ } | undefined;
633
+ readonly type: "session.instructions.updated";
634
+ readonly durable: {
635
+ readonly aggregateID: string;
636
+ readonly seq: Event.Seq;
637
+ readonly version: Event.Version;
638
+ };
639
+ readonly location?: Location.Ref | undefined;
640
+ readonly data: {
641
+ readonly sessionID: Session.ID;
642
+ readonly delta: {
643
+ readonly [x: string]: (string & Brand.Brand<"Instruction.Hash">) | "removed";
644
+ };
645
+ readonly text?: string | undefined;
646
+ };
647
+ } | {
648
+ readonly id: Event.ID;
649
+ readonly created: number;
650
+ readonly metadata?: {
651
+ readonly [x: string]: unknown;
652
+ } | undefined;
653
+ readonly type: "session.synthetic";
654
+ readonly durable: {
655
+ readonly aggregateID: string;
656
+ readonly seq: Event.Seq;
657
+ readonly version: Event.Version;
658
+ };
659
+ readonly location?: Location.Ref | undefined;
660
+ readonly data: {
661
+ readonly sessionID: Session.ID;
662
+ readonly text: string;
663
+ readonly description?: string | undefined;
664
+ readonly metadata?: {
665
+ readonly [x: string]: unknown;
666
+ } | undefined;
667
+ };
668
+ } | {
669
+ readonly id: Event.ID;
670
+ readonly created: number;
671
+ readonly metadata?: {
672
+ readonly [x: string]: unknown;
673
+ } | undefined;
674
+ readonly type: "session.skill.activated";
675
+ readonly durable: {
676
+ readonly aggregateID: string;
677
+ readonly seq: Event.Seq;
678
+ readonly version: Event.Version;
679
+ };
680
+ readonly location?: Location.Ref | undefined;
681
+ readonly data: {
682
+ readonly sessionID: Session.ID;
683
+ readonly id: Skill.ID;
684
+ readonly name: Skill.Name;
685
+ readonly text: string;
686
+ };
687
+ } | {
688
+ readonly id: Event.ID;
689
+ readonly created: number;
690
+ readonly metadata?: {
691
+ readonly [x: string]: unknown;
692
+ } | undefined;
693
+ readonly type: "session.shell.started";
694
+ readonly durable: {
695
+ readonly aggregateID: string;
696
+ readonly seq: Event.Seq;
697
+ readonly version: Event.Version;
698
+ };
699
+ readonly location?: Location.Ref | undefined;
700
+ readonly data: {
701
+ readonly sessionID: Session.ID;
702
+ readonly shell: Shell.Info;
703
+ };
704
+ } | {
705
+ readonly id: Event.ID;
706
+ readonly created: number;
707
+ readonly metadata?: {
708
+ readonly [x: string]: unknown;
709
+ } | undefined;
710
+ readonly type: "session.shell.ended";
711
+ readonly durable: {
712
+ readonly aggregateID: string;
713
+ readonly seq: Event.Seq;
714
+ readonly version: Event.Version;
715
+ };
716
+ readonly location?: Location.Ref | undefined;
717
+ readonly data: {
718
+ readonly sessionID: Session.ID;
719
+ readonly shell: Shell.Info;
720
+ readonly output: {
721
+ readonly output: string;
722
+ readonly cursor: number;
723
+ readonly size: number;
724
+ readonly truncated: boolean;
725
+ };
726
+ };
727
+ } | {
728
+ readonly id: Event.ID;
729
+ readonly created: number;
730
+ readonly metadata?: {
731
+ readonly [x: string]: unknown;
732
+ } | undefined;
733
+ readonly type: "session.step.started";
734
+ readonly durable: {
735
+ readonly aggregateID: string;
736
+ readonly seq: Event.Seq;
737
+ readonly version: Event.Version;
738
+ };
739
+ readonly location?: Location.Ref | undefined;
740
+ readonly data: {
741
+ readonly sessionID: Session.ID;
742
+ readonly assistantMessageID: SessionMessage.ID;
743
+ readonly agent: Agent.ID;
744
+ readonly model: Model.Ref;
745
+ readonly snapshot?: (string & Brand.Brand<"Snapshot.ID">) | undefined;
746
+ };
747
+ } | {
748
+ readonly id: Event.ID;
749
+ readonly created: number;
750
+ readonly metadata?: {
751
+ readonly [x: string]: unknown;
752
+ } | undefined;
753
+ readonly type: "session.step.ended";
754
+ readonly durable: {
755
+ readonly aggregateID: string;
756
+ readonly seq: Event.Seq;
757
+ readonly version: Event.Version;
758
+ };
759
+ readonly location?: Location.Ref | undefined;
760
+ readonly data: {
761
+ readonly sessionID: Session.ID;
762
+ readonly assistantMessageID: SessionMessage.ID;
763
+ readonly finish: "stop" | "length" | "tool-calls" | "content-filter" | "error" | "unknown";
764
+ readonly cost: number & Brand.Brand<"Money.USD">;
765
+ readonly tokens: {
766
+ readonly input: number;
767
+ readonly output: number;
768
+ readonly reasoning: number;
769
+ readonly cache: {
770
+ readonly read: number;
771
+ readonly write: number;
772
+ };
773
+ };
774
+ readonly snapshot?: (string & Brand.Brand<"Snapshot.ID">) | undefined;
775
+ readonly files?: ReadonlyArray<RelativePath> | undefined;
776
+ };
777
+ } | {
778
+ readonly id: Event.ID;
779
+ readonly created: number;
780
+ readonly metadata?: {
781
+ readonly [x: string]: unknown;
782
+ } | undefined;
783
+ readonly type: "session.step.failed";
784
+ readonly durable: {
785
+ readonly aggregateID: string;
786
+ readonly seq: Event.Seq;
787
+ readonly version: Event.Version;
788
+ };
789
+ readonly location?: Location.Ref | undefined;
790
+ readonly data: {
791
+ readonly sessionID: Session.ID;
792
+ readonly assistantMessageID: SessionMessage.ID;
793
+ readonly error: {
794
+ readonly type: string;
795
+ readonly message: string;
796
+ readonly status?: number | undefined;
797
+ };
798
+ readonly cost?: (number & Brand.Brand<"Money.USD">) | undefined;
799
+ readonly tokens?: {
800
+ readonly input: number;
801
+ readonly output: number;
802
+ readonly reasoning: number;
803
+ readonly cache: {
804
+ readonly read: number;
805
+ readonly write: number;
806
+ };
807
+ } | undefined;
808
+ readonly snapshot?: (string & Brand.Brand<"Snapshot.ID">) | undefined;
809
+ readonly files?: ReadonlyArray<RelativePath> | undefined;
810
+ };
811
+ } | {
812
+ readonly id: Event.ID;
813
+ readonly created: number;
814
+ readonly metadata?: {
815
+ readonly [x: string]: unknown;
816
+ } | undefined;
817
+ readonly type: "session.text.started";
818
+ readonly durable: {
819
+ readonly aggregateID: string;
820
+ readonly seq: Event.Seq;
821
+ readonly version: Event.Version;
822
+ };
823
+ readonly location?: Location.Ref | undefined;
824
+ readonly data: {
825
+ readonly sessionID: Session.ID;
826
+ readonly assistantMessageID: SessionMessage.ID;
827
+ readonly ordinal: number;
828
+ };
829
+ } | {
830
+ readonly id: Event.ID;
831
+ readonly created: number;
832
+ readonly metadata?: {
833
+ readonly [x: string]: unknown;
834
+ } | undefined;
835
+ readonly type: "session.text.ended";
836
+ readonly durable: {
837
+ readonly aggregateID: string;
838
+ readonly seq: Event.Seq;
839
+ readonly version: Event.Version;
840
+ };
841
+ readonly location?: Location.Ref | undefined;
842
+ readonly data: {
843
+ readonly sessionID: Session.ID;
844
+ readonly assistantMessageID: SessionMessage.ID;
845
+ readonly ordinal: number;
846
+ readonly text: string;
847
+ readonly state?: SessionMessage.ProviderState | undefined;
848
+ };
849
+ } | {
850
+ readonly id: Event.ID;
851
+ readonly created: number;
852
+ readonly metadata?: {
853
+ readonly [x: string]: unknown;
854
+ } | undefined;
855
+ readonly type: "session.reasoning.started";
856
+ readonly durable: {
857
+ readonly aggregateID: string;
858
+ readonly seq: Event.Seq;
859
+ readonly version: Event.Version;
860
+ };
861
+ readonly location?: Location.Ref | undefined;
862
+ readonly data: {
863
+ readonly sessionID: Session.ID;
864
+ readonly assistantMessageID: SessionMessage.ID;
865
+ readonly ordinal: number;
866
+ readonly state?: SessionMessage.ProviderState | undefined;
867
+ };
868
+ } | {
869
+ readonly id: Event.ID;
870
+ readonly created: number;
871
+ readonly metadata?: {
872
+ readonly [x: string]: unknown;
873
+ } | undefined;
874
+ readonly type: "session.reasoning.ended";
875
+ readonly durable: {
876
+ readonly aggregateID: string;
877
+ readonly seq: Event.Seq;
878
+ readonly version: Event.Version;
879
+ };
880
+ readonly location?: Location.Ref | undefined;
881
+ readonly data: {
882
+ readonly sessionID: Session.ID;
883
+ readonly assistantMessageID: SessionMessage.ID;
884
+ readonly ordinal: number;
885
+ readonly text: string;
886
+ readonly state?: SessionMessage.ProviderState | undefined;
887
+ };
888
+ } | {
889
+ readonly id: Event.ID;
890
+ readonly created: number;
891
+ readonly metadata?: {
892
+ readonly [x: string]: unknown;
893
+ } | undefined;
894
+ readonly type: "session.tool.input.started";
895
+ readonly durable: {
896
+ readonly aggregateID: string;
897
+ readonly seq: Event.Seq;
898
+ readonly version: Event.Version;
899
+ };
900
+ readonly location?: Location.Ref | undefined;
901
+ readonly data: {
902
+ readonly sessionID: Session.ID;
903
+ readonly assistantMessageID: SessionMessage.ID;
904
+ readonly id: string;
905
+ readonly name: string;
906
+ };
907
+ } | {
908
+ readonly id: Event.ID;
909
+ readonly created: number;
910
+ readonly metadata?: {
911
+ readonly [x: string]: unknown;
912
+ } | undefined;
913
+ readonly type: "session.tool.input.ended";
914
+ readonly durable: {
915
+ readonly aggregateID: string;
916
+ readonly seq: Event.Seq;
917
+ readonly version: Event.Version;
918
+ };
919
+ readonly location?: Location.Ref | undefined;
920
+ readonly data: {
921
+ readonly sessionID: Session.ID;
922
+ readonly assistantMessageID: SessionMessage.ID;
923
+ readonly id: string;
924
+ readonly text: string;
925
+ };
926
+ } | {
927
+ readonly id: Event.ID;
928
+ readonly created: number;
929
+ readonly metadata?: {
930
+ readonly [x: string]: unknown;
931
+ } | undefined;
932
+ readonly type: "session.tool.called";
933
+ readonly durable: {
934
+ readonly aggregateID: string;
935
+ readonly seq: Event.Seq;
936
+ readonly version: Event.Version;
937
+ };
938
+ readonly location?: Location.Ref | undefined;
939
+ readonly data: {
940
+ readonly sessionID: Session.ID;
941
+ readonly assistantMessageID: SessionMessage.ID;
942
+ readonly id: string;
943
+ readonly input: {
944
+ readonly [x: string]: unknown;
945
+ };
946
+ readonly executed: boolean;
947
+ readonly state?: SessionMessage.ProviderState | undefined;
948
+ };
949
+ } | {
950
+ readonly id: Event.ID;
951
+ readonly created: number;
952
+ readonly metadata?: {
953
+ readonly [x: string]: unknown;
954
+ } | undefined;
955
+ readonly type: "session.tool.success";
956
+ readonly durable: {
957
+ readonly aggregateID: string;
958
+ readonly seq: Event.Seq;
959
+ readonly version: Event.Version;
960
+ };
961
+ readonly location?: Location.Ref | undefined;
962
+ readonly data: {
963
+ readonly sessionID: Session.ID;
964
+ readonly assistantMessageID: SessionMessage.ID;
965
+ readonly id: string;
966
+ readonly content: readonly [
967
+ ({
968
+ readonly type: "text";
969
+ readonly text: string;
970
+ } | {
971
+ readonly type: "file";
972
+ readonly uri: string;
973
+ readonly mime: string;
974
+ readonly name?: string | undefined;
975
+ }),
976
+ ...Array<{
977
+ readonly type: "text";
978
+ readonly text: string;
979
+ } | {
980
+ readonly type: "file";
981
+ readonly uri: string;
982
+ readonly mime: string;
983
+ readonly name?: string | undefined;
984
+ }>
985
+ ];
986
+ readonly metadata?: {
987
+ readonly [x: string]: Schema.Json;
988
+ } | undefined;
989
+ readonly executed: boolean;
990
+ readonly resultState?: SessionMessage.ProviderState | undefined;
991
+ };
992
+ } | {
993
+ readonly id: Event.ID;
994
+ readonly created: number;
995
+ readonly metadata?: {
996
+ readonly [x: string]: unknown;
997
+ } | undefined;
998
+ readonly type: "session.tool.failed";
999
+ readonly durable: {
1000
+ readonly aggregateID: string;
1001
+ readonly seq: Event.Seq;
1002
+ readonly version: Event.Version;
1003
+ };
1004
+ readonly location?: Location.Ref | undefined;
1005
+ readonly data: {
1006
+ readonly sessionID: Session.ID;
1007
+ readonly assistantMessageID: SessionMessage.ID;
1008
+ readonly id: string;
1009
+ readonly error: {
1010
+ readonly type: string;
1011
+ readonly message: string;
1012
+ readonly status?: number | undefined;
1013
+ };
1014
+ readonly content?: readonly [
1015
+ ({
1016
+ readonly type: "text";
1017
+ readonly text: string;
1018
+ } | {
1019
+ readonly type: "file";
1020
+ readonly uri: string;
1021
+ readonly mime: string;
1022
+ readonly name?: string | undefined;
1023
+ }),
1024
+ ...Array<{
1025
+ readonly type: "text";
1026
+ readonly text: string;
1027
+ } | {
1028
+ readonly type: "file";
1029
+ readonly uri: string;
1030
+ readonly mime: string;
1031
+ readonly name?: string | undefined;
1032
+ }>
1033
+ ] | undefined;
1034
+ readonly metadata?: {
1035
+ readonly [x: string]: Schema.Json;
1036
+ } | undefined;
1037
+ readonly executed: boolean;
1038
+ readonly resultState?: SessionMessage.ProviderState | undefined;
1039
+ };
1040
+ } | {
1041
+ readonly id: Event.ID;
1042
+ readonly created: number;
1043
+ readonly metadata?: {
1044
+ readonly [x: string]: unknown;
1045
+ } | undefined;
1046
+ readonly type: "session.retry.scheduled";
1047
+ readonly durable: {
1048
+ readonly aggregateID: string;
1049
+ readonly seq: Event.Seq;
1050
+ readonly version: Event.Version;
1051
+ };
1052
+ readonly location?: Location.Ref | undefined;
1053
+ readonly data: {
1054
+ readonly sessionID: Session.ID;
1055
+ readonly assistantMessageID: SessionMessage.ID;
1056
+ readonly attempt: number;
1057
+ readonly at: number;
1058
+ readonly error: {
1059
+ readonly type: string;
1060
+ readonly message: string;
1061
+ readonly status?: number | undefined;
1062
+ };
1063
+ };
1064
+ } | {
1065
+ readonly id: Event.ID;
1066
+ readonly created: number;
1067
+ readonly metadata?: {
1068
+ readonly [x: string]: unknown;
1069
+ } | undefined;
1070
+ readonly type: "session.compaction.started";
1071
+ readonly durable: {
1072
+ readonly aggregateID: string;
1073
+ readonly seq: Event.Seq;
1074
+ readonly version: Event.Version;
1075
+ };
1076
+ readonly location?: Location.Ref | undefined;
1077
+ readonly data: {
1078
+ readonly sessionID: Session.ID;
1079
+ readonly reason: "auto" | "manual";
1080
+ readonly recent: string;
1081
+ readonly inputID?: SessionMessage.ID | undefined;
1082
+ };
1083
+ } | {
1084
+ readonly id: Event.ID;
1085
+ readonly created: number;
1086
+ readonly metadata?: {
1087
+ readonly [x: string]: unknown;
1088
+ } | undefined;
1089
+ readonly type: "session.compaction.ended";
1090
+ readonly durable: {
1091
+ readonly aggregateID: string;
1092
+ readonly seq: Event.Seq;
1093
+ readonly version: Event.Version;
1094
+ };
1095
+ readonly location?: Location.Ref | undefined;
1096
+ readonly data: {
1097
+ readonly sessionID: Session.ID;
1098
+ readonly reason: "auto" | "manual";
1099
+ readonly text: string;
1100
+ readonly recent: string;
1101
+ };
1102
+ } | {
1103
+ readonly id: Event.ID;
1104
+ readonly created: number;
1105
+ readonly metadata?: {
1106
+ readonly [x: string]: unknown;
1107
+ } | undefined;
1108
+ readonly type: "session.compaction.failed";
1109
+ readonly durable: {
1110
+ readonly aggregateID: string;
1111
+ readonly seq: Event.Seq;
1112
+ readonly version: Event.Version;
1113
+ };
1114
+ readonly location?: Location.Ref | undefined;
1115
+ readonly data: {
1116
+ readonly sessionID: Session.ID;
1117
+ readonly reason: "auto" | "manual";
1118
+ readonly error: {
1119
+ readonly type: string;
1120
+ readonly message: string;
1121
+ readonly status?: number | undefined;
1122
+ };
1123
+ readonly inputID?: SessionMessage.ID | undefined;
1124
+ };
1125
+ } | {
1126
+ readonly id: Event.ID;
1127
+ readonly created: number;
1128
+ readonly metadata?: {
1129
+ readonly [x: string]: unknown;
1130
+ } | undefined;
1131
+ readonly type: "session.revert.staged";
1132
+ readonly durable: {
1133
+ readonly aggregateID: string;
1134
+ readonly seq: Event.Seq;
1135
+ readonly version: Event.Version;
1136
+ };
1137
+ readonly location?: Location.Ref | undefined;
1138
+ readonly data: {
1139
+ readonly sessionID: Session.ID;
1140
+ readonly revert: Session.Revert;
1141
+ };
1142
+ } | {
1143
+ readonly id: Event.ID;
1144
+ readonly created: number;
1145
+ readonly metadata?: {
1146
+ readonly [x: string]: unknown;
1147
+ } | undefined;
1148
+ readonly type: "session.revert.cleared";
1149
+ readonly durable: {
1150
+ readonly aggregateID: string;
1151
+ readonly seq: Event.Seq;
1152
+ readonly version: Event.Version;
1153
+ };
1154
+ readonly location?: Location.Ref | undefined;
1155
+ readonly data: {
1156
+ readonly sessionID: Session.ID;
1157
+ };
1158
+ } | {
1159
+ readonly id: Event.ID;
1160
+ readonly created: number;
1161
+ readonly metadata?: {
1162
+ readonly [x: string]: unknown;
1163
+ } | undefined;
1164
+ readonly type: "session.revert.committed";
1165
+ readonly durable: {
1166
+ readonly aggregateID: string;
1167
+ readonly seq: Event.Seq;
1168
+ readonly version: Event.Version;
1169
+ };
1170
+ readonly location?: Location.Ref | undefined;
1171
+ readonly data: {
1172
+ readonly sessionID: Session.ID;
1173
+ readonly to: SessionMessage.ID;
1174
+ };
1175
+ } | {
1176
+ readonly id: Event.ID;
1177
+ readonly created: number;
1178
+ readonly metadata?: {
1179
+ readonly [x: string]: unknown;
1180
+ } | undefined;
1181
+ readonly type: "session.usage.recorded";
1182
+ readonly durable: {
1183
+ readonly aggregateID: string;
1184
+ readonly seq: Event.Seq;
1185
+ readonly version: Event.Version;
1186
+ };
1187
+ readonly location?: Location.Ref | undefined;
1188
+ readonly data: {
1189
+ readonly sessionID: Session.ID;
1190
+ readonly source: "title" | "compaction";
1191
+ readonly cost: number & Brand.Brand<"Money.USD">;
1192
+ readonly tokens: {
1193
+ readonly input: number;
1194
+ readonly output: number;
1195
+ readonly reasoning: number;
1196
+ readonly cache: {
1197
+ readonly read: number;
1198
+ readonly write: number;
1199
+ };
1200
+ };
1201
+ };
1202
+ }) | EventLog.Synced;
1203
+ export type SessionLogOperation<E = never> = (input: Endpoint5_31Input) => Stream.Stream<Endpoint5_31Output, E>;
1204
+ export type Endpoint5_32Input = {
1205
+ readonly sessionID: Session.ID;
1206
+ readonly continue?: boolean | undefined;
1207
+ };
1208
+ export type Endpoint5_32Output = void;
1209
+ export type SessionInterruptOperation<E = never> = (input: Endpoint5_32Input) => Effect.Effect<Endpoint5_32Output, E>;
1210
+ export type Endpoint5_33Input = {
1211
+ readonly sessionID: Session.ID;
1212
+ };
1213
+ export type Endpoint5_33Output = void;
1214
+ export type SessionBackgroundOperation<E = never> = (input: Endpoint5_33Input) => Effect.Effect<Endpoint5_33Output, E>;
1215
+ export type Endpoint5_34Input = {
1216
+ readonly sessionID: Session.ID;
1217
+ readonly messageID: SessionMessage.ID;
1218
+ };
1219
+ export type Endpoint5_34Output = SessionMessage.Info;
1220
+ export type SessionMessageOperation<E = never> = (input: Endpoint5_34Input) => Effect.Effect<Endpoint5_34Output, E>;
1221
+ export interface SessionApi<E = never> {
1222
+ readonly list: SessionListOperation<E>;
1223
+ readonly create: SessionCreateOperation<E>;
1224
+ readonly import: SessionImportOperation<E>;
1225
+ readonly export: SessionExportOperation<E>;
1226
+ readonly active: SessionActiveOperation<E>;
1227
+ readonly get: SessionGetOperation<E>;
1228
+ readonly remove: SessionRemoveOperation<E>;
1229
+ readonly fork: SessionForkOperation<E>;
1230
+ readonly switchAgent: SessionSwitchAgentOperation<E>;
1231
+ readonly switchModel: SessionSwitchModelOperation<E>;
1232
+ readonly rename: SessionRenameOperation<E>;
1233
+ readonly move: SessionMoveOperation<E>;
1234
+ readonly prompt: SessionPromptOperation<E>;
1235
+ readonly command: SessionCommandOperation<E>;
1236
+ readonly skill: SessionSkillOperation<E>;
1237
+ readonly synthetic: SessionSyntheticOperation<E>;
1238
+ readonly shell: SessionShellOperation<E>;
1239
+ readonly compact: SessionCompactOperation<E>;
1240
+ readonly wait: SessionWaitOperation<E>;
1241
+ readonly revert: {
1242
+ readonly stage: SessionRevertStageOperation<E>;
1243
+ readonly clear: SessionRevertClearOperation<E>;
1244
+ readonly commit: SessionRevertCommitOperation<E>;
1245
+ };
1246
+ readonly context: SessionContextOperation<E>;
1247
+ readonly inbox: {
1248
+ readonly list: SessionInboxListOperation<E>;
1249
+ readonly cancel: SessionInboxCancelOperation<E>;
1250
+ readonly steer: SessionInboxSteerOperation<E>;
1251
+ readonly queue: SessionInboxQueueOperation<E>;
1252
+ };
1253
+ readonly instructions: {
1254
+ readonly entry: {
1255
+ readonly list: SessionInstructionsEntryListOperation<E>;
1256
+ readonly put: SessionInstructionsEntryPutOperation<E>;
1257
+ readonly remove: SessionInstructionsEntryRemoveOperation<E>;
1258
+ };
1259
+ };
1260
+ readonly generate: SessionGenerateOperation<E>;
1261
+ readonly log: SessionLogOperation<E>;
1262
+ readonly interrupt: SessionInterruptOperation<E>;
1263
+ readonly background: SessionBackgroundOperation<E>;
1264
+ readonly message: SessionMessageOperation<E>;
1265
+ }
1266
+ export type Endpoint6_0Input = {
1267
+ readonly sessionID: Session.ID;
1268
+ readonly limit?: number | undefined;
1269
+ readonly order?: "asc" | "desc" | undefined;
1270
+ readonly cursor?: string | undefined;
1271
+ };
1272
+ export type Endpoint6_0Output = {
1273
+ readonly data: ReadonlyArray<SessionMessage.Info>;
1274
+ readonly cursor: {
1275
+ readonly previous?: string | undefined;
1276
+ readonly next?: string | undefined;
1277
+ };
1278
+ };
1279
+ export type MessageListOperation<E = never> = (input: Endpoint6_0Input) => Effect.Effect<Endpoint6_0Output, E>;
1280
+ export interface MessageApi<E = never> {
1281
+ readonly list: MessageListOperation<E>;
1282
+ }
1283
+ export type Endpoint7_0Input = {
1284
+ readonly location?: {
1285
+ readonly directory?: string | undefined;
1286
+ readonly workspace?: string | undefined;
1287
+ } | undefined;
1288
+ };
1289
+ export type Endpoint7_0Output = {
1290
+ readonly location: Location.Info;
1291
+ readonly data: ReadonlyArray<Model.Info>;
1292
+ };
1293
+ export type ModelListOperation<E = never> = (input?: Endpoint7_0Input) => Effect.Effect<Endpoint7_0Output, E>;
1294
+ export type Endpoint7_1Input = {
1295
+ readonly location?: {
1296
+ readonly directory?: string | undefined;
1297
+ readonly workspace?: string | undefined;
1298
+ } | undefined;
1299
+ };
1300
+ export type Endpoint7_1Output = {
1301
+ readonly location: Location.Info;
1302
+ readonly data: Model.Info | undefined;
1303
+ };
1304
+ export type ModelDefaultOperation<E = never> = (input?: Endpoint7_1Input) => Effect.Effect<Endpoint7_1Output, E>;
1305
+ export interface ModelApi<E = never> {
1306
+ readonly list: ModelListOperation<E>;
1307
+ readonly default: ModelDefaultOperation<E>;
1308
+ }
1309
+ export type Endpoint8_0Input = {
1310
+ readonly location?: {
1311
+ readonly directory?: string | undefined;
1312
+ readonly workspace?: string | undefined;
1313
+ } | undefined;
1314
+ readonly prompt: string;
1315
+ readonly model?: Model.Ref | undefined;
1316
+ };
1317
+ export type Endpoint8_0Output = {
1318
+ readonly text: string;
1319
+ };
1320
+ export type GenerateTextOperation<E = never> = (input: Endpoint8_0Input) => Effect.Effect<Endpoint8_0Output, E>;
1321
+ export interface GenerateApi<E = never> {
1322
+ readonly text: GenerateTextOperation<E>;
1323
+ }
1324
+ export type Endpoint9_0Input = {
1325
+ readonly location?: {
1326
+ readonly directory?: string | undefined;
1327
+ readonly workspace?: string | undefined;
1328
+ } | undefined;
1329
+ };
1330
+ export type Endpoint9_0Output = {
1331
+ readonly location: Location.Info;
1332
+ readonly data: ReadonlyArray<Provider.Info>;
1333
+ };
1334
+ export type ProviderListOperation<E = never> = (input?: Endpoint9_0Input) => Effect.Effect<Endpoint9_0Output, E>;
1335
+ export type Endpoint9_1Input = {
1336
+ readonly providerID: Provider.ID;
1337
+ readonly location?: {
1338
+ readonly directory?: string | undefined;
1339
+ readonly workspace?: string | undefined;
1340
+ } | undefined;
1341
+ };
1342
+ export type Endpoint9_1Output = {
1343
+ readonly location: Location.Info;
1344
+ readonly data: Provider.Info;
1345
+ };
1346
+ export type ProviderGetOperation<E = never> = (input: Endpoint9_1Input) => Effect.Effect<Endpoint9_1Output, E>;
1347
+ export interface ProviderApi<E = never> {
1348
+ readonly list: ProviderListOperation<E>;
1349
+ readonly get: ProviderGetOperation<E>;
1350
+ }
1351
+ export type Endpoint10_0Input = {
1352
+ readonly location?: {
1353
+ readonly directory?: string | undefined;
1354
+ readonly workspace?: string | undefined;
1355
+ } | undefined;
1356
+ };
1357
+ export type Endpoint10_0Output = {
1358
+ readonly location: Location.Info;
1359
+ readonly data: ReadonlyArray<Integration.Info>;
1360
+ };
1361
+ export type IntegrationListOperation<E = never> = (input?: Endpoint10_0Input) => Effect.Effect<Endpoint10_0Output, E>;
1362
+ export type Endpoint10_1Input = {
1363
+ readonly integrationID: Integration.ID;
1364
+ readonly location?: {
1365
+ readonly directory?: string | undefined;
1366
+ readonly workspace?: string | undefined;
1367
+ } | undefined;
1368
+ };
1369
+ export type Endpoint10_1Output = {
1370
+ readonly location: Location.Info;
1371
+ readonly data: Integration.Info | undefined;
1372
+ };
1373
+ export type IntegrationGetOperation<E = never> = (input: Endpoint10_1Input) => Effect.Effect<Endpoint10_1Output, E>;
1374
+ export type Endpoint10_2Input = {
1375
+ readonly location?: {
1376
+ readonly directory?: string | undefined;
1377
+ readonly workspace?: string | undefined;
1378
+ } | undefined;
1379
+ readonly url: string;
1380
+ };
1381
+ export type Endpoint10_2Output = void;
1382
+ export type IntegrationWellknownAddOperation<E = never> = (input: Endpoint10_2Input) => Effect.Effect<Endpoint10_2Output, E>;
1383
+ export type Endpoint10_3Input = {
1384
+ readonly integrationID: Integration.ID;
1385
+ readonly location?: {
1386
+ readonly directory?: string | undefined;
1387
+ readonly workspace?: string | undefined;
1388
+ } | undefined;
1389
+ readonly key: string;
1390
+ readonly answer?: Form.Answer | undefined;
1391
+ readonly label?: string | undefined;
1392
+ };
1393
+ export type Endpoint10_3Output = void;
1394
+ export type IntegrationConnectKeyOperation<E = never> = (input: Endpoint10_3Input) => Effect.Effect<Endpoint10_3Output, E>;
1395
+ export type Endpoint10_4Input = {
1396
+ readonly integrationID: Integration.ID;
1397
+ readonly location?: {
1398
+ readonly directory?: string | undefined;
1399
+ readonly workspace?: string | undefined;
1400
+ } | undefined;
1401
+ readonly methodID: Integration.MethodID;
1402
+ readonly answer?: Form.Answer | undefined;
1403
+ readonly label?: string | undefined;
1404
+ };
1405
+ export type Endpoint10_4Output = {
1406
+ readonly location: Location.Info;
1407
+ readonly data: Integration.Attempt;
1408
+ };
1409
+ export type IntegrationOauthConnectOperation<E = never> = (input: Endpoint10_4Input) => Effect.Effect<Endpoint10_4Output, E>;
1410
+ export type Endpoint10_5Input = {
1411
+ readonly integrationID: Integration.ID;
1412
+ readonly attemptID: Integration.AttemptID;
1413
+ readonly location?: {
1414
+ readonly directory?: string | undefined;
1415
+ readonly workspace?: string | undefined;
1416
+ } | undefined;
1417
+ };
1418
+ export type Endpoint10_5Output = {
1419
+ readonly location: Location.Info;
1420
+ readonly data: Integration.AttemptStatus;
1421
+ };
1422
+ export type IntegrationOauthStatusOperation<E = never> = (input: Endpoint10_5Input) => Effect.Effect<Endpoint10_5Output, E>;
1423
+ export type Endpoint10_6Input = {
1424
+ readonly integrationID: Integration.ID;
1425
+ readonly attemptID: Integration.AttemptID;
1426
+ readonly location?: {
1427
+ readonly directory?: string | undefined;
1428
+ readonly workspace?: string | undefined;
1429
+ } | undefined;
1430
+ readonly code?: string | undefined;
1431
+ };
1432
+ export type Endpoint10_6Output = void;
1433
+ export type IntegrationOauthCompleteOperation<E = never> = (input: Endpoint10_6Input) => Effect.Effect<Endpoint10_6Output, E>;
1434
+ export type Endpoint10_7Input = {
1435
+ readonly integrationID: Integration.ID;
1436
+ readonly attemptID: Integration.AttemptID;
1437
+ readonly location?: {
1438
+ readonly directory?: string | undefined;
1439
+ readonly workspace?: string | undefined;
1440
+ } | undefined;
1441
+ };
1442
+ export type Endpoint10_7Output = void;
1443
+ export type IntegrationOauthCancelOperation<E = never> = (input: Endpoint10_7Input) => Effect.Effect<Endpoint10_7Output, E>;
1444
+ export type Endpoint10_8Input = {
1445
+ readonly integrationID: Integration.ID;
1446
+ readonly location?: {
1447
+ readonly directory?: string | undefined;
1448
+ readonly workspace?: string | undefined;
1449
+ } | undefined;
1450
+ readonly methodID: Integration.MethodID;
1451
+ readonly label?: string | undefined;
1452
+ };
1453
+ export type Endpoint10_8Output = {
1454
+ readonly location: Location.Info;
1455
+ readonly data: Integration.CommandAttempt;
1456
+ };
1457
+ export type IntegrationCommandConnectOperation<E = never> = (input: Endpoint10_8Input) => Effect.Effect<Endpoint10_8Output, E>;
1458
+ export type Endpoint10_9Input = {
1459
+ readonly integrationID: Integration.ID;
1460
+ readonly attemptID: Integration.AttemptID;
1461
+ readonly location?: {
1462
+ readonly directory?: string | undefined;
1463
+ readonly workspace?: string | undefined;
1464
+ } | undefined;
1465
+ };
1466
+ export type Endpoint10_9Output = {
1467
+ readonly location: Location.Info;
1468
+ readonly data: Integration.CommandAttemptStatus;
1469
+ };
1470
+ export type IntegrationCommandStatusOperation<E = never> = (input: Endpoint10_9Input) => Effect.Effect<Endpoint10_9Output, E>;
1471
+ export type Endpoint10_10Input = {
1472
+ readonly integrationID: Integration.ID;
1473
+ readonly attemptID: Integration.AttemptID;
1474
+ readonly location?: {
1475
+ readonly directory?: string | undefined;
1476
+ readonly workspace?: string | undefined;
1477
+ } | undefined;
1478
+ };
1479
+ export type Endpoint10_10Output = void;
1480
+ export type IntegrationCommandCancelOperation<E = never> = (input: Endpoint10_10Input) => Effect.Effect<Endpoint10_10Output, E>;
1481
+ export interface IntegrationApi<E = never> {
1482
+ readonly list: IntegrationListOperation<E>;
1483
+ readonly get: IntegrationGetOperation<E>;
1484
+ readonly wellknown: {
1485
+ readonly add: IntegrationWellknownAddOperation<E>;
1486
+ };
1487
+ readonly connect: {
1488
+ readonly key: IntegrationConnectKeyOperation<E>;
1489
+ };
1490
+ readonly oauth: {
1491
+ readonly connect: IntegrationOauthConnectOperation<E>;
1492
+ readonly status: IntegrationOauthStatusOperation<E>;
1493
+ readonly complete: IntegrationOauthCompleteOperation<E>;
1494
+ readonly cancel: IntegrationOauthCancelOperation<E>;
1495
+ };
1496
+ readonly command: {
1497
+ readonly connect: IntegrationCommandConnectOperation<E>;
1498
+ readonly status: IntegrationCommandStatusOperation<E>;
1499
+ readonly cancel: IntegrationCommandCancelOperation<E>;
1500
+ };
1501
+ }
1502
+ export type Endpoint11_0Input = {
1503
+ readonly location?: {
1504
+ readonly directory?: string | undefined;
1505
+ readonly workspace?: string | undefined;
1506
+ } | undefined;
1507
+ };
1508
+ export type Endpoint11_0Output = {
1509
+ readonly location: Location.Info;
1510
+ readonly data: ReadonlyArray<Mcp.Server>;
1511
+ };
1512
+ export type McpListOperation<E = never> = (input?: Endpoint11_0Input) => Effect.Effect<Endpoint11_0Output, E>;
1513
+ export type Endpoint11_1Input = {
1514
+ readonly server: string;
1515
+ readonly location?: {
1516
+ readonly directory?: string | undefined;
1517
+ readonly workspace?: string | undefined;
1518
+ } | undefined;
1519
+ readonly config: Mcp.LocalConfig | Mcp.RemoteConfig;
1520
+ };
1521
+ export type Endpoint11_1Output = void;
1522
+ export type McpAddOperation<E = never> = (input: Endpoint11_1Input) => Effect.Effect<Endpoint11_1Output, E>;
1523
+ export type Endpoint11_2Input = {
1524
+ readonly server: string;
1525
+ readonly location?: {
1526
+ readonly directory?: string | undefined;
1527
+ readonly workspace?: string | undefined;
1528
+ } | undefined;
1529
+ };
1530
+ export type Endpoint11_2Output = void;
1531
+ export type McpRemoveOperation<E = never> = (input: Endpoint11_2Input) => Effect.Effect<Endpoint11_2Output, E>;
1532
+ export type Endpoint11_3Input = {
1533
+ readonly server: string;
1534
+ readonly location?: {
1535
+ readonly directory?: string | undefined;
1536
+ readonly workspace?: string | undefined;
1537
+ } | undefined;
1538
+ };
1539
+ export type Endpoint11_3Output = void;
1540
+ export type McpConnectOperation<E = never> = (input: Endpoint11_3Input) => Effect.Effect<Endpoint11_3Output, E>;
1541
+ export type Endpoint11_4Input = {
1542
+ readonly server: string;
1543
+ readonly location?: {
1544
+ readonly directory?: string | undefined;
1545
+ readonly workspace?: string | undefined;
1546
+ } | undefined;
1547
+ };
1548
+ export type Endpoint11_4Output = void;
1549
+ export type McpDisconnectOperation<E = never> = (input: Endpoint11_4Input) => Effect.Effect<Endpoint11_4Output, E>;
1550
+ export type Endpoint11_5Input = {
1551
+ readonly location?: {
1552
+ readonly directory?: string | undefined;
1553
+ readonly workspace?: string | undefined;
1554
+ } | undefined;
1555
+ };
1556
+ export type Endpoint11_5Output = {
1557
+ readonly location: Location.Info;
1558
+ readonly data: Mcp.ResourceCatalog;
1559
+ };
1560
+ export type McpResourceCatalogOperation<E = never> = (input?: Endpoint11_5Input) => Effect.Effect<Endpoint11_5Output, E>;
1561
+ export interface McpApi<E = never> {
1562
+ readonly list: McpListOperation<E>;
1563
+ readonly add: McpAddOperation<E>;
1564
+ readonly remove: McpRemoveOperation<E>;
1565
+ readonly connect: McpConnectOperation<E>;
1566
+ readonly disconnect: McpDisconnectOperation<E>;
1567
+ readonly resource: {
1568
+ readonly catalog: McpResourceCatalogOperation<E>;
1569
+ };
1570
+ }
1571
+ export type Endpoint12_0Input = {
1572
+ readonly credentialID: Credential.ID;
1573
+ readonly location?: {
1574
+ readonly directory?: string | undefined;
1575
+ readonly workspace?: string | undefined;
1576
+ } | undefined;
1577
+ readonly label: string;
1578
+ };
1579
+ export type Endpoint12_0Output = void;
1580
+ export type CredentialUpdateOperation<E = never> = (input: Endpoint12_0Input) => Effect.Effect<Endpoint12_0Output, E>;
1581
+ export type Endpoint12_1Input = {
1582
+ readonly credentialID: Credential.ID;
1583
+ readonly location?: {
1584
+ readonly directory?: string | undefined;
1585
+ readonly workspace?: string | undefined;
1586
+ } | undefined;
1587
+ };
1588
+ export type Endpoint12_1Output = void;
1589
+ export type CredentialRemoveOperation<E = never> = (input: Endpoint12_1Input) => Effect.Effect<Endpoint12_1Output, E>;
1590
+ export interface CredentialApi<E = never> {
1591
+ readonly update: CredentialUpdateOperation<E>;
1592
+ readonly remove: CredentialRemoveOperation<E>;
1593
+ }
1594
+ export type Endpoint13_0Output = ReadonlyArray<Project.Info>;
1595
+ export type ProjectListOperation<E = never> = () => Effect.Effect<Endpoint13_0Output, E>;
1596
+ export type Endpoint13_1Input = {
1597
+ readonly location?: {
1598
+ readonly directory?: string | undefined;
1599
+ readonly workspace?: string | undefined;
1600
+ } | undefined;
1601
+ };
1602
+ export type Endpoint13_1Output = Project.Current;
1603
+ export type ProjectCurrentOperation<E = never> = (input?: Endpoint13_1Input) => Effect.Effect<Endpoint13_1Output, E>;
1604
+ export interface ProjectApi<E = never> {
1605
+ readonly list: ProjectListOperation<E>;
1606
+ readonly current: ProjectCurrentOperation<E>;
1607
+ }
1608
+ export type Endpoint14_0Input = {
1609
+ readonly location?: {
1610
+ readonly directory?: string | undefined;
1611
+ readonly workspace?: string | undefined;
1612
+ } | undefined;
1613
+ };
1614
+ export type Endpoint14_0Output = {
1615
+ readonly location: Location.Info;
1616
+ readonly data: ReadonlyArray<Form.Info>;
1617
+ };
1618
+ export type FormRequestListOperation<E = never> = (input?: Endpoint14_0Input) => Effect.Effect<Endpoint14_0Output, E>;
1619
+ export type Endpoint14_1Input = {
1620
+ readonly sessionID: string;
1621
+ };
1622
+ export type Endpoint14_1Output = ReadonlyArray<Form.Info>;
1623
+ export type FormListOperation<E = never> = (input: Endpoint14_1Input) => Effect.Effect<Endpoint14_1Output, E>;
1624
+ export type Endpoint14_2Input = {
1625
+ readonly sessionID: string;
1626
+ readonly id?: Form.ID | undefined;
1627
+ readonly title: string;
1628
+ readonly metadata?: Form.Metadata | undefined;
1629
+ readonly fields: Form.Fields;
1630
+ };
1631
+ export type Endpoint14_2Output = Form.Info;
1632
+ export type FormCreateOperation<E = never> = (input: Endpoint14_2Input) => Effect.Effect<Endpoint14_2Output, E>;
1633
+ export type Endpoint14_3Input = {
1634
+ readonly sessionID: string;
1635
+ readonly formID: Form.ID;
1636
+ };
1637
+ export type Endpoint14_3Output = Form.Info;
1638
+ export type FormGetOperation<E = never> = (input: Endpoint14_3Input) => Effect.Effect<Endpoint14_3Output, E>;
1639
+ export type Endpoint14_4Input = {
1640
+ readonly sessionID: string;
1641
+ readonly formID: Form.ID;
1642
+ };
1643
+ export type Endpoint14_4Output = Form.State;
1644
+ export type FormStateOperation<E = never> = (input: Endpoint14_4Input) => Effect.Effect<Endpoint14_4Output, E>;
1645
+ export type Endpoint14_5Input = {
1646
+ readonly sessionID: string;
1647
+ readonly formID: Form.ID;
1648
+ readonly answer: Form.Answer;
1649
+ };
1650
+ export type Endpoint14_5Output = void;
1651
+ export type FormReplyOperation<E = never> = (input: Endpoint14_5Input) => Effect.Effect<Endpoint14_5Output, E>;
1652
+ export type Endpoint14_6Input = {
1653
+ readonly sessionID: string;
1654
+ readonly formID: Form.ID;
1655
+ };
1656
+ export type Endpoint14_6Output = void;
1657
+ export type FormCancelOperation<E = never> = (input: Endpoint14_6Input) => Effect.Effect<Endpoint14_6Output, E>;
1658
+ export interface FormApi<E = never> {
1659
+ readonly request: {
1660
+ readonly list: FormRequestListOperation<E>;
1661
+ };
1662
+ readonly list: FormListOperation<E>;
1663
+ readonly create: FormCreateOperation<E>;
1664
+ readonly get: FormGetOperation<E>;
1665
+ readonly state: FormStateOperation<E>;
1666
+ readonly reply: FormReplyOperation<E>;
1667
+ readonly cancel: FormCancelOperation<E>;
1668
+ }
1669
+ export type Endpoint15_0Input = {
1670
+ readonly location?: {
1671
+ readonly directory?: string | undefined;
1672
+ readonly workspace?: string | undefined;
1673
+ } | undefined;
1674
+ };
1675
+ export type Endpoint15_0Output = {
1676
+ readonly location: Location.Info;
1677
+ readonly data: ReadonlyArray<Permission.Request>;
1678
+ };
1679
+ export type PermissionRequestListOperation<E = never> = (input?: Endpoint15_0Input) => Effect.Effect<Endpoint15_0Output, E>;
1680
+ export type Endpoint15_1Input = {
1681
+ readonly projectID?: Project.ID | undefined;
1682
+ };
1683
+ export type Endpoint15_1Output = ReadonlyArray<PermissionSaved.Info>;
1684
+ export type PermissionSavedListOperation<E = never> = (input?: Endpoint15_1Input) => Effect.Effect<Endpoint15_1Output, E>;
1685
+ export type Endpoint15_2Input = {
1686
+ readonly id: PermissionSaved.ID;
1687
+ };
1688
+ export type Endpoint15_2Output = void;
1689
+ export type PermissionSavedRemoveOperation<E = never> = (input: Endpoint15_2Input) => Effect.Effect<Endpoint15_2Output, E>;
1690
+ export type Endpoint15_3Input = {
1691
+ readonly sessionID: Session.ID;
1692
+ readonly id?: Permission.ID | undefined;
1693
+ readonly action: string;
1694
+ readonly resources: ReadonlyArray<string>;
1695
+ readonly save?: ReadonlyArray<string> | undefined;
1696
+ readonly metadata?: {
1697
+ readonly [x: string]: unknown;
1698
+ } | undefined;
1699
+ readonly source?: Permission.Source | undefined;
1700
+ readonly agent?: Agent.ID | undefined;
1701
+ };
1702
+ export type Endpoint15_3Output = {
1703
+ readonly id: Permission.ID;
1704
+ readonly effect: Permission.Effect;
1705
+ };
1706
+ export type PermissionCreateOperation<E = never> = (input: Endpoint15_3Input) => Effect.Effect<Endpoint15_3Output, E>;
1707
+ export type Endpoint15_4Input = {
1708
+ readonly sessionID: Session.ID;
1709
+ };
1710
+ export type Endpoint15_4Output = ReadonlyArray<Permission.Request>;
1711
+ export type PermissionListOperation<E = never> = (input: Endpoint15_4Input) => Effect.Effect<Endpoint15_4Output, E>;
1712
+ export type Endpoint15_5Input = {
1713
+ readonly sessionID: Session.ID;
1714
+ readonly requestID: Permission.ID;
1715
+ };
1716
+ export type Endpoint15_5Output = Permission.Request;
1717
+ export type PermissionGetOperation<E = never> = (input: Endpoint15_5Input) => Effect.Effect<Endpoint15_5Output, E>;
1718
+ export type Endpoint15_6Input = {
1719
+ readonly sessionID: Session.ID;
1720
+ readonly requestID: Permission.ID;
1721
+ readonly reply: Permission.Reply;
1722
+ readonly message?: string | undefined;
1723
+ };
1724
+ export type Endpoint15_6Output = void;
1725
+ export type PermissionReplyOperation<E = never> = (input: Endpoint15_6Input) => Effect.Effect<Endpoint15_6Output, E>;
1726
+ export interface PermissionApi<E = never> {
1727
+ readonly request: {
1728
+ readonly list: PermissionRequestListOperation<E>;
1729
+ };
1730
+ readonly saved: {
1731
+ readonly list: PermissionSavedListOperation<E>;
1732
+ readonly remove: PermissionSavedRemoveOperation<E>;
1733
+ };
1734
+ readonly create: PermissionCreateOperation<E>;
1735
+ readonly list: PermissionListOperation<E>;
1736
+ readonly get: PermissionGetOperation<E>;
1737
+ readonly reply: PermissionReplyOperation<E>;
1738
+ }
1739
+ export type Endpoint16_0Input = {
1740
+ readonly location?: {
1741
+ readonly directory?: string | undefined;
1742
+ readonly workspace?: string | undefined;
1743
+ } | undefined;
1744
+ readonly path?: RelativePath | undefined;
1745
+ };
1746
+ export type Endpoint16_0Output = {
1747
+ readonly location: Location.Info;
1748
+ readonly data: ReadonlyArray<FileSystem.Entry>;
1749
+ };
1750
+ export type FileListOperation<E = never> = (input?: Endpoint16_0Input) => Effect.Effect<Endpoint16_0Output, E>;
1751
+ export type Endpoint16_1Input = {
1752
+ readonly location?: {
1753
+ readonly directory?: string | undefined;
1754
+ readonly workspace?: string | undefined;
1755
+ } | undefined;
1756
+ readonly query: string;
1757
+ readonly type?: "file" | "directory" | undefined;
1758
+ readonly limit?: number | undefined;
1759
+ };
1760
+ export type Endpoint16_1Output = {
1761
+ readonly location: Location.Info;
1762
+ readonly data: ReadonlyArray<FileSystem.Entry>;
1763
+ };
1764
+ export type FileFindOperation<E = never> = (input: Endpoint16_1Input) => Effect.Effect<Endpoint16_1Output, E>;
1765
+ export interface FileApi<E = never> {
1766
+ readonly list: FileListOperation<E>;
1767
+ readonly find: FileFindOperation<E>;
1768
+ }
1769
+ export type Endpoint17_0Input = {
1770
+ readonly location?: {
1771
+ readonly directory?: string | undefined;
1772
+ readonly workspace?: string | undefined;
1773
+ } | undefined;
1774
+ };
1775
+ export type Endpoint17_0Output = {
1776
+ readonly location: Location.Info;
1777
+ readonly data: ReadonlyArray<Command.Info>;
1778
+ };
1779
+ export type CommandListOperation<E = never> = (input?: Endpoint17_0Input) => Effect.Effect<Endpoint17_0Output, E>;
1780
+ export interface CommandApi<E = never> {
1781
+ readonly list: CommandListOperation<E>;
1782
+ }
1783
+ export type Endpoint18_0Input = {
1784
+ readonly location?: {
1785
+ readonly directory?: string | undefined;
1786
+ readonly workspace?: string | undefined;
1787
+ } | undefined;
1788
+ };
1789
+ export type Endpoint18_0Output = {
1790
+ readonly location: Location.Info;
1791
+ readonly data: ReadonlyArray<Skill.Info>;
1792
+ };
1793
+ export type SkillListOperation<E = never> = (input?: Endpoint18_0Input) => Effect.Effect<Endpoint18_0Output, E>;
1794
+ export interface SkillApi<E = never> {
1795
+ readonly list: SkillListOperation<E>;
1796
+ }
1797
+ export type Endpoint19_0Output = OpenCodeEvent;
1798
+ export type EventSubscribeOperation<E = never> = () => Stream.Stream<Endpoint19_0Output, E>;
1799
+ export interface EventApi<E = never> {
1800
+ readonly subscribe: EventSubscribeOperation<E>;
1801
+ }
1802
+ export type Endpoint20_0Input = {
1803
+ readonly location?: {
1804
+ readonly directory?: string | undefined;
1805
+ readonly workspace?: string | undefined;
1806
+ } | undefined;
1807
+ };
1808
+ export type Endpoint20_0Output = {
1809
+ readonly location: Location.Info;
1810
+ readonly data: ReadonlyArray<Pty.Info>;
1811
+ };
1812
+ export type PtyListOperation<E = never> = (input?: Endpoint20_0Input) => Effect.Effect<Endpoint20_0Output, E>;
1813
+ export type Endpoint20_1Input = {
1814
+ readonly location?: {
1815
+ readonly directory?: string | undefined;
1816
+ readonly workspace?: string | undefined;
1817
+ } | undefined;
1818
+ readonly command?: string | undefined;
1819
+ readonly args?: ReadonlyArray<string> | undefined;
1820
+ readonly cwd?: string | undefined;
1821
+ readonly title?: string | undefined;
1822
+ readonly env?: {
1823
+ readonly [x: string]: string;
1824
+ } | undefined;
1825
+ };
1826
+ export type Endpoint20_1Output = {
1827
+ readonly location: Location.Info;
1828
+ readonly data: Pty.Info;
1829
+ };
1830
+ export type PtyCreateOperation<E = never> = (input?: Endpoint20_1Input) => Effect.Effect<Endpoint20_1Output, E>;
1831
+ export type Endpoint20_2Input = {
1832
+ readonly ptyID: Pty.ID;
1833
+ readonly location?: {
1834
+ readonly directory?: string | undefined;
1835
+ readonly workspace?: string | undefined;
1836
+ } | undefined;
1837
+ };
1838
+ export type Endpoint20_2Output = {
1839
+ readonly location: Location.Info;
1840
+ readonly data: Pty.Info;
1841
+ };
1842
+ export type PtyGetOperation<E = never> = (input: Endpoint20_2Input) => Effect.Effect<Endpoint20_2Output, E>;
1843
+ export type Endpoint20_3Input = {
1844
+ readonly ptyID: Pty.ID;
1845
+ readonly location?: {
1846
+ readonly directory?: string | undefined;
1847
+ readonly workspace?: string | undefined;
1848
+ } | undefined;
1849
+ readonly title?: string | undefined;
1850
+ readonly size?: {
1851
+ readonly rows: number;
1852
+ readonly cols: number;
1853
+ } | undefined;
1854
+ };
1855
+ export type Endpoint20_3Output = {
1856
+ readonly location: Location.Info;
1857
+ readonly data: Pty.Info;
1858
+ };
1859
+ export type PtyUpdateOperation<E = never> = (input: Endpoint20_3Input) => Effect.Effect<Endpoint20_3Output, E>;
1860
+ export type Endpoint20_4Input = {
1861
+ readonly ptyID: Pty.ID;
1862
+ readonly location?: {
1863
+ readonly directory?: string | undefined;
1864
+ readonly workspace?: string | undefined;
1865
+ } | undefined;
1866
+ };
1867
+ export type Endpoint20_4Output = void;
1868
+ export type PtyRemoveOperation<E = never> = (input: Endpoint20_4Input) => Effect.Effect<Endpoint20_4Output, E>;
1869
+ export interface PtyApi<E = never> {
1870
+ readonly list: PtyListOperation<E>;
1871
+ readonly create: PtyCreateOperation<E>;
1872
+ readonly get: PtyGetOperation<E>;
1873
+ readonly update: PtyUpdateOperation<E>;
1874
+ readonly remove: PtyRemoveOperation<E>;
1875
+ }
1876
+ export type Endpoint21_0Input = {
1877
+ readonly location?: {
1878
+ readonly directory?: string | undefined;
1879
+ readonly workspace?: string | undefined;
1880
+ } | undefined;
1881
+ };
1882
+ export type Endpoint21_0Output = {
1883
+ readonly location: Location.Info;
1884
+ readonly data: ReadonlyArray<Shell.Info>;
1885
+ };
1886
+ export type ShellListOperation<E = never> = (input?: Endpoint21_0Input) => Effect.Effect<Endpoint21_0Output, E>;
1887
+ export type Endpoint21_1Input = {
1888
+ readonly location?: {
1889
+ readonly directory?: string | undefined;
1890
+ readonly workspace?: string | undefined;
1891
+ } | undefined;
1892
+ readonly command: string;
1893
+ readonly cwd?: string | undefined;
1894
+ readonly timeout: number;
1895
+ readonly metadata?: {
1896
+ readonly [x: string]: unknown;
1897
+ } | undefined;
1898
+ };
1899
+ export type Endpoint21_1Output = {
1900
+ readonly location: Location.Info;
1901
+ readonly data: Shell.Info;
1902
+ };
1903
+ export type ShellCreateOperation<E = never> = (input: Endpoint21_1Input) => Effect.Effect<Endpoint21_1Output, E>;
1904
+ export type Endpoint21_2Input = {
1905
+ readonly id: Shell.ID;
1906
+ readonly location?: {
1907
+ readonly directory?: string | undefined;
1908
+ readonly workspace?: string | undefined;
1909
+ } | undefined;
1910
+ };
1911
+ export type Endpoint21_2Output = {
1912
+ readonly location: Location.Info;
1913
+ readonly data: Shell.Info;
1914
+ };
1915
+ export type ShellGetOperation<E = never> = (input: Endpoint21_2Input) => Effect.Effect<Endpoint21_2Output, E>;
1916
+ export type Endpoint21_3Input = {
1917
+ readonly id: Shell.ID;
1918
+ readonly location?: {
1919
+ readonly directory?: string | undefined;
1920
+ readonly workspace?: string | undefined;
1921
+ } | undefined;
1922
+ readonly timeout: number;
1923
+ };
1924
+ export type Endpoint21_3Output = {
1925
+ readonly location: Location.Info;
1926
+ readonly data: Shell.Info;
1927
+ };
1928
+ export type ShellTimeoutOperation<E = never> = (input: Endpoint21_3Input) => Effect.Effect<Endpoint21_3Output, E>;
1929
+ export type Endpoint21_4Input = {
1930
+ readonly id: Shell.ID;
1931
+ readonly location?: {
1932
+ readonly directory?: string | undefined;
1933
+ readonly workspace?: string | undefined;
1934
+ } | undefined;
1935
+ readonly cursor?: number | undefined;
1936
+ readonly limit?: number | undefined;
1937
+ };
1938
+ export type Endpoint21_4Output = {
1939
+ readonly location: Location.Info;
1940
+ readonly data: {
1941
+ readonly output: string;
1942
+ readonly cursor: number;
1943
+ readonly size: number;
1944
+ readonly truncated: boolean;
1945
+ };
1946
+ };
1947
+ export type ShellOutputOperation<E = never> = (input: Endpoint21_4Input) => Effect.Effect<Endpoint21_4Output, E>;
1948
+ export type Endpoint21_5Input = {
1949
+ readonly id: Shell.ID;
1950
+ readonly location?: {
1951
+ readonly directory?: string | undefined;
1952
+ readonly workspace?: string | undefined;
1953
+ } | undefined;
1954
+ };
1955
+ export type Endpoint21_5Output = void;
1956
+ export type ShellRemoveOperation<E = never> = (input: Endpoint21_5Input) => Effect.Effect<Endpoint21_5Output, E>;
1957
+ export interface ShellApi<E = never> {
1958
+ readonly list: ShellListOperation<E>;
1959
+ readonly create: ShellCreateOperation<E>;
1960
+ readonly get: ShellGetOperation<E>;
1961
+ readonly timeout: ShellTimeoutOperation<E>;
1962
+ readonly output: ShellOutputOperation<E>;
1963
+ readonly remove: ShellRemoveOperation<E>;
1964
+ }
1965
+ export type Endpoint22_0Input = {
1966
+ readonly location?: {
1967
+ readonly directory?: string | undefined;
1968
+ readonly workspace?: string | undefined;
1969
+ } | undefined;
1970
+ };
1971
+ export type Endpoint22_0Output = {
1972
+ readonly location: Location.Info;
1973
+ readonly data: ReadonlyArray<Reference.Info>;
1974
+ };
1975
+ export type ReferenceListOperation<E = never> = (input?: Endpoint22_0Input) => Effect.Effect<Endpoint22_0Output, E>;
1976
+ export interface ReferenceApi<E = never> {
1977
+ readonly list: ReferenceListOperation<E>;
1978
+ }
1979
+ export type Endpoint23_0Input = {
1980
+ readonly projectID: Project.ID;
1981
+ };
1982
+ export type Endpoint23_0Output = Worktree.List;
1983
+ export type WorktreeListOperation<E = never> = (input: Endpoint23_0Input) => Effect.Effect<Endpoint23_0Output, E>;
1984
+ export type Endpoint23_1Input = {
1985
+ readonly projectID: Project.ID;
1986
+ readonly strategy: Worktree.StrategyID;
1987
+ readonly from?: AbsolutePath | undefined;
1988
+ readonly directory: AbsolutePath;
1989
+ readonly name?: string | undefined;
1990
+ };
1991
+ export type Endpoint23_1Output = Worktree.Info;
1992
+ export type WorktreeCreateOperation<E = never> = (input: Endpoint23_1Input) => Effect.Effect<Endpoint23_1Output, E>;
1993
+ export type Endpoint23_2Input = {
1994
+ readonly projectID: Project.ID;
1995
+ readonly directory: AbsolutePath;
1996
+ readonly force: boolean;
1997
+ };
1998
+ export type Endpoint23_2Output = void;
1999
+ export type WorktreeRemoveOperation<E = never> = (input: Endpoint23_2Input) => Effect.Effect<Endpoint23_2Output, E>;
2000
+ export type Endpoint23_3Input = {
2001
+ readonly projectID: Project.ID;
2002
+ };
2003
+ export type Endpoint23_3Output = void;
2004
+ export type WorktreeRefreshOperation<E = never> = (input: Endpoint23_3Input) => Effect.Effect<Endpoint23_3Output, E>;
2005
+ export interface WorktreeApi<E = never> {
2006
+ readonly list: WorktreeListOperation<E>;
2007
+ readonly create: WorktreeCreateOperation<E>;
2008
+ readonly remove: WorktreeRemoveOperation<E>;
2009
+ readonly refresh: WorktreeRefreshOperation<E>;
2010
+ }
2011
+ export type Endpoint24_0Input = {
2012
+ readonly location?: {
2013
+ readonly directory?: string | undefined;
2014
+ readonly workspace?: string | undefined;
2015
+ } | undefined;
2016
+ };
2017
+ export type Endpoint24_0Output = {
2018
+ readonly location: Location.Info;
2019
+ readonly data: Vcs.Info;
2020
+ };
2021
+ export type VcsGetOperation<E = never> = (input?: Endpoint24_0Input) => Effect.Effect<Endpoint24_0Output, E>;
2022
+ export type Endpoint24_1Input = {
2023
+ readonly location?: {
2024
+ readonly directory?: string | undefined;
2025
+ readonly workspace?: string | undefined;
2026
+ } | undefined;
2027
+ };
2028
+ export type Endpoint24_1Output = {
2029
+ readonly location: Location.Info;
2030
+ readonly data: ReadonlyArray<Vcs.FileStatus>;
2031
+ };
2032
+ export type VcsStatusOperation<E = never> = (input?: Endpoint24_1Input) => Effect.Effect<Endpoint24_1Output, E>;
2033
+ export type Endpoint24_2Input = {
2034
+ readonly location?: {
2035
+ readonly directory?: string | undefined;
2036
+ readonly workspace?: string | undefined;
2037
+ } | undefined;
2038
+ readonly mode: Vcs.Mode;
2039
+ readonly context?: number | undefined;
2040
+ };
2041
+ export type Endpoint24_2Output = {
2042
+ readonly location: Location.Info;
2043
+ readonly data: ReadonlyArray<FileDiff.Info>;
2044
+ };
2045
+ export type VcsDiffOperation<E = never> = (input: Endpoint24_2Input) => Effect.Effect<Endpoint24_2Output, E>;
2046
+ export interface VcsApi<E = never> {
2047
+ readonly get: VcsGetOperation<E>;
2048
+ readonly status: VcsStatusOperation<E>;
2049
+ readonly diff: VcsDiffOperation<E>;
2050
+ }
2051
+ export type Endpoint25_0Output = ReadonlyArray<Location.Ref>;
2052
+ export type DebugLocationListOperation<E = never> = () => Effect.Effect<Endpoint25_0Output, E>;
2053
+ export type Endpoint25_1Input = {
2054
+ readonly location?: {
2055
+ readonly directory?: string | undefined;
2056
+ readonly workspace?: string | undefined;
2057
+ } | undefined;
2058
+ };
2059
+ export type Endpoint25_1Output = void;
2060
+ export type DebugLocationEvictOperation<E = never> = (input?: Endpoint25_1Input) => Effect.Effect<Endpoint25_1Output, E>;
2061
+ export interface DebugApi<E = never> {
2062
+ readonly location: {
2063
+ readonly list: DebugLocationListOperation<E>;
2064
+ readonly evict: DebugLocationEvictOperation<E>;
2065
+ };
2066
+ }
2067
+ export type Endpoint26_0Output = {
2068
+ readonly status: "required" | "completed";
2069
+ } | {
2070
+ readonly status: "running";
2071
+ readonly progress: {
2072
+ readonly label: string;
2073
+ readonly numerator?: number | undefined;
2074
+ readonly denominator?: number | undefined;
2075
+ };
2076
+ } | {
2077
+ readonly status: "error";
2078
+ readonly error: string;
2079
+ };
2080
+ export type MigrationV1StatusOperation<E = never> = () => Effect.Effect<Endpoint26_0Output, E>;
2081
+ export interface MigrationApi<E = never> {
2082
+ readonly v1: {
2083
+ readonly status: MigrationV1StatusOperation<E>;
2084
+ };
2085
+ }
2086
+ export type Endpoint27_0Input = {
2087
+ readonly location?: {
2088
+ readonly directory?: string | undefined;
2089
+ readonly workspace?: string | undefined;
2090
+ } | undefined;
2091
+ };
2092
+ export type Endpoint27_0Output = {
2093
+ readonly location: Location.Info;
2094
+ readonly data: ReadonlyArray<WebSearch.Provider>;
2095
+ };
2096
+ export type WebsearchProvidersOperation<E = never> = (input?: Endpoint27_0Input) => Effect.Effect<Endpoint27_0Output, E>;
2097
+ export type Endpoint27_1Input = {
2098
+ readonly location?: {
2099
+ readonly directory?: string | undefined;
2100
+ readonly workspace?: string | undefined;
2101
+ } | undefined;
2102
+ readonly query: string;
2103
+ readonly providerID?: WebSearch.ID | undefined;
2104
+ };
2105
+ export type Endpoint27_1Output = {
2106
+ readonly location: Location.Info;
2107
+ readonly data: WebSearch.Response;
2108
+ };
2109
+ export type WebsearchQueryOperation<E = never> = (input: Endpoint27_1Input) => Effect.Effect<Endpoint27_1Output, E>;
2110
+ export interface WebsearchApi<E = never> {
2111
+ readonly providers: WebsearchProvidersOperation<E>;
2112
+ readonly query: WebsearchQueryOperation<E>;
2113
+ }
2114
+ export type Endpoint28_0Input = {
2115
+ readonly location?: {
2116
+ readonly directory?: string | undefined;
2117
+ readonly workspace?: string | undefined;
2118
+ } | undefined;
2119
+ };
2120
+ export type Endpoint28_0Output = ReadonlyArray<Config.Entry>;
2121
+ export type ConfigGetOperation<E = never> = (input?: Endpoint28_0Input) => Effect.Effect<Endpoint28_0Output, E>;
2122
+ export interface ConfigApi<E = never> {
2123
+ readonly get: ConfigGetOperation<E>;
2124
+ }
2125
+ export interface AppApi<E = never> {
2126
+ readonly health: HealthApi<E>;
2127
+ readonly server: ServerApi<E>;
2128
+ readonly location: LocationApi<E>;
2129
+ readonly agent: AgentApi<E>;
2130
+ readonly plugin: PluginApi<E>;
2131
+ readonly session: SessionApi<E>;
2132
+ readonly message: MessageApi<E>;
2133
+ readonly model: ModelApi<E>;
2134
+ readonly generate: GenerateApi<E>;
2135
+ readonly provider: ProviderApi<E>;
2136
+ readonly integration: IntegrationApi<E>;
2137
+ readonly mcp: McpApi<E>;
2138
+ readonly credential: CredentialApi<E>;
2139
+ readonly project: ProjectApi<E>;
2140
+ readonly form: FormApi<E>;
2141
+ readonly permission: PermissionApi<E>;
2142
+ readonly file: FileApi<E>;
2143
+ readonly command: CommandApi<E>;
2144
+ readonly skill: SkillApi<E>;
2145
+ readonly event: EventApi<E>;
2146
+ readonly pty: PtyApi<E>;
2147
+ readonly shell: ShellApi<E>;
2148
+ readonly reference: ReferenceApi<E>;
2149
+ readonly worktree: WorktreeApi<E>;
2150
+ readonly vcs: VcsApi<E>;
2151
+ readonly debug: DebugApi<E>;
2152
+ readonly migration: MigrationApi<E>;
2153
+ readonly websearch: WebsearchApi<E>;
2154
+ readonly config: ConfigApi<E>;
2155
+ }