@opencode/client 2.2.0 → 2.2.1

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 (68) hide show
  1. package/dist/chunks/{service-timing-jpd9ebw3.js → mcp-0e9xp5b3.js} +17 -17
  2. package/dist/chunks/{service-timing-myz4ngx9.js → mcp-15p82y03.js} +5 -5
  3. package/dist/chunks/{service-timing-rxd7awy0.js → mcp-4z60zgnr.js} +229 -126
  4. package/dist/chunks/mcp-60xe5cbf.js +4 -0
  5. package/dist/chunks/mcp-6v8v0sqq.js +30 -0
  6. package/dist/chunks/{service-timing-8ye1ye6f.js → mcp-8ye1ye6f.js} +2 -2
  7. package/dist/chunks/{service-timing-cyxwqteg.js → mcp-csehnca4.js} +6 -2
  8. package/dist/chunks/{service-timing-8we1dz3p.js → mcp-cvg5j6d1.js} +6 -5
  9. package/dist/chunks/{service-timing-gecjxyvt.js → mcp-gecjxyvt.js} +1 -1
  10. package/dist/chunks/{service-timing-ab9bm97w.js → mcp-kdshn947.js} +1 -1
  11. package/dist/chunks/{service-timing-js54wxgp.js → mcp-nwcpakzx.js} +2 -2
  12. package/dist/chunks/{service-timing-knyqkv17.js → mcp-qhd5h5hk.js} +2 -2
  13. package/dist/chunks/{service-timing-ryy6kscr.js → mcp-ryy6kscr.js} +1 -1
  14. package/dist/chunks/{service-timing-7f0py9js.js → mcp-y2etg5bs.js} +2 -2
  15. package/dist/chunks/{service-timing-wcsbjfhx.js → mcp-yn2a71yh.js} +498 -374
  16. package/dist/contract.d.ts +1 -1
  17. package/dist/contract.js +3 -1
  18. package/dist/effect/api/api.d.ts +632 -342
  19. package/dist/effect/client.d.ts +330 -121
  20. package/dist/effect/client.js +12 -12
  21. package/dist/effect/generated/client-error.js +3 -3
  22. package/dist/effect/generated/client.d.ts +365 -122
  23. package/dist/effect/generated/client.js +5 -5
  24. package/dist/effect/generated/index.js +8 -8
  25. package/dist/effect/index.js +12 -12
  26. package/dist/effect/rpc.js +4 -4
  27. package/dist/effect/service.js +6 -6
  28. package/dist/promise/api.d.ts +3 -0
  29. package/dist/promise/client.d.ts +206 -137
  30. package/dist/promise/client.js +11 -11
  31. package/dist/promise/generated/client-error.js +3 -3
  32. package/dist/promise/generated/client.d.ts +242 -138
  33. package/dist/promise/generated/client.js +4 -4
  34. package/dist/promise/generated/index.js +16 -14
  35. package/dist/promise/generated/types.d.ts +638 -396
  36. package/dist/promise/generated/types.js +7 -5
  37. package/dist/promise/index.js +19 -17
  38. package/dist/promise/rpc.js +2 -2
  39. package/dist/promise/service.js +6 -6
  40. package/dist/pty-handoff.js +4 -4
  41. package/dist/rpc-runtime.js +1 -1
  42. package/dist/service-contender.js +1 -1
  43. package/dist/service-probe.js +3 -3
  44. package/dist/service-timing.js +1 -1
  45. package/dist/service-version.js +1 -1
  46. package/dist/service.js +1 -1
  47. package/dist/shared-events.js +1 -1
  48. package/dist/solid/connection.js +1 -1
  49. package/dist/solid/data.js +9 -9
  50. package/dist/solid/index.js +13 -13
  51. package/dist/solid/pty.js +1 -1
  52. package/dist/solid/retention.js +1 -1
  53. package/dist/solid/usage.js +1 -1
  54. package/package.json +5 -5
  55. package/dist/chunks/service-timing-b80wmp2t.js +0 -30
  56. package/dist/chunks/service-timing-vmytr4q8.js +0 -4
  57. /package/dist/chunks/{service-timing-6mptkzbc.js → mcp-6mptkzbc.js} +0 -0
  58. /package/dist/chunks/{service-timing-6mq2wh8y.js → mcp-6mq2wh8y.js} +0 -0
  59. /package/dist/chunks/{service-timing-8s2anffy.js → mcp-8s2anffy.js} +0 -0
  60. /package/dist/chunks/{service-timing-9rqn6x4v.js → mcp-9rqn6x4v.js} +0 -0
  61. /package/dist/chunks/{service-timing-gne7h7mq.js → mcp-gne7h7mq.js} +0 -0
  62. /package/dist/chunks/{service-timing-m2eywc8w.js → mcp-m2eywc8w.js} +0 -0
  63. /package/dist/chunks/{service-timing-qav6mfdz.js → mcp-qav6mfdz.js} +0 -0
  64. /package/dist/chunks/{service-timing-sxt88q69.js → mcp-sxt88q69.js} +0 -0
  65. /package/dist/chunks/{service-timing-ve4aws36.js → mcp-ve4aws36.js} +0 -0
  66. /package/dist/chunks/{service-timing-vyas3vgt.js → mcp-vyas3vgt.js} +0 -0
  67. /package/dist/chunks/{service-timing-xgnj2w4v.js → mcp-xgnj2w4v.js} +0 -0
  68. /package/dist/chunks/{service-timing-ydhz1zrh.js → mcp-ydhz1zrh.js} +0 -0
@@ -6,16 +6,17 @@ import type { Session } from "@opencode/schema/session";
6
6
  import type { AbsolutePath } from "@opencode/schema/schema";
7
7
  import type { Project } from "@opencode/schema/project";
8
8
  import type { RelativePath } from "@opencode/schema/schema";
9
- import type { Money } from "@opencode/schema/money";
10
9
  import type { Model } from "@opencode/schema/model";
11
- import type { DateTime } from "effect";
12
10
  import type { Permission } from "@opencode/schema/permission";
13
11
  import type { SessionMessage } from "@opencode/schema/session-message";
14
12
  import type { SessionInbox } from "@opencode/schema/session-inbox";
15
13
  import type { PromptInput } from "@opencode/schema/prompt-input";
16
14
  import type { AgentAttachment } from "@opencode/schema/prompt";
17
- import type { Skill } from "@opencode/schema/skill";
18
15
  import type { FileDiff } from "@opencode/schema/file-diff";
16
+ import type { Form } from "@opencode/schema/form";
17
+ import type { DateTime } from "effect";
18
+ import type { Money } from "@opencode/schema/money";
19
+ import type { Skill } from "@opencode/schema/skill";
19
20
  import type { InstructionEntry } from "@opencode/schema/instruction-entry";
20
21
  import type { Schema } from "effect";
21
22
  import type { Event } from "@opencode/schema/event";
@@ -24,7 +25,6 @@ import type { Workspace } from "@opencode/schema/workspace";
24
25
  import type { Instruction } from "@opencode/schema/instruction";
25
26
  import type { Snapshot } from "@opencode/schema/snapshot";
26
27
  import type { Shell } from "@opencode/schema/shell";
27
- import type { Form } from "@opencode/schema/form";
28
28
  import type { Generate } from "@opencode/schema/generate";
29
29
  import type { Provider } from "@opencode/schema/provider";
30
30
  import type { Integration } from "@opencode/schema/integration";
@@ -36,6 +36,7 @@ import type { FileSystem } from "@opencode/schema/filesystem";
36
36
  import type { Command } from "@opencode/schema/command";
37
37
  import type { OpenCodeEvent } from "@opencode/protocol/groups/event";
38
38
  import type { Pty } from "@opencode/schema/pty";
39
+ import type { Schedule } from "@opencode/schema/schedule";
39
40
  import type { Reference } from "@opencode/schema/reference";
40
41
  import type { Worktree } from "@opencode/schema/worktree";
41
42
  import type { Vcs } from "@opencode/schema/vcs";
@@ -175,81 +176,6 @@ export type SessionListOutput = {
175
176
  };
176
177
  };
177
178
  export type SessionListOperation<E = never> = (input?: SessionListInput) => Effect.Effect<SessionListOutput, E>;
178
- export type SessionStatsInput = {
179
- readonly from?: number | undefined;
180
- readonly to?: number | undefined;
181
- readonly project?: Project.ID | undefined;
182
- readonly timezone?: string | undefined;
183
- readonly tools?: "none" | "summary" | "detail" | undefined;
184
- };
185
- export type SessionStatsOutput = {
186
- readonly range: {
187
- readonly from: DateTime.Utc;
188
- readonly to: DateTime.Utc;
189
- };
190
- readonly sessions: number;
191
- readonly subagents: number;
192
- readonly prompts: number;
193
- readonly steps: number;
194
- readonly tokens: {
195
- readonly input: number;
196
- readonly output: number;
197
- readonly reasoning: number;
198
- readonly cache: {
199
- readonly read: number;
200
- readonly write: number;
201
- };
202
- };
203
- readonly cost: Money.USD;
204
- readonly tools: {
205
- readonly mode: "none";
206
- } | {
207
- readonly mode: "summary";
208
- readonly totals: {
209
- readonly calls: number;
210
- readonly succeeded: number;
211
- readonly failed: number;
212
- readonly unfinished: number;
213
- };
214
- } | {
215
- readonly mode: "detail";
216
- readonly totals: {
217
- readonly calls: number;
218
- readonly succeeded: number;
219
- readonly failed: number;
220
- readonly unfinished: number;
221
- };
222
- readonly usage: ReadonlyArray<{
223
- readonly name: string;
224
- readonly calls: number;
225
- readonly succeeded: number;
226
- readonly failed: number;
227
- readonly unfinished: number;
228
- readonly durationP50?: number | undefined;
229
- }>;
230
- };
231
- readonly activeDays: number;
232
- readonly streak: number;
233
- readonly activity: ReadonlyArray<{
234
- readonly date: string;
235
- readonly steps: number;
236
- }>;
237
- readonly models: ReadonlyArray<{
238
- readonly model: Model.Ref;
239
- readonly steps: number;
240
- readonly tokens: {
241
- readonly input: number;
242
- readonly output: number;
243
- readonly reasoning: number;
244
- readonly cache: {
245
- readonly read: number;
246
- readonly write: number;
247
- };
248
- };
249
- readonly cost: Money.USD;
250
- }>;
251
- };
252
- export type SessionStatsOperation<E = never> = (input?: SessionStatsInput) => Effect.Effect<SessionStatsOutput, E>;
253
179
  export type SessionCreateInput = {
254
180
  readonly id?: Session.ID | undefined;
255
181
  readonly parentID?: Session.ID | undefined;
@@ -262,22 +188,6 @@ export type SessionCreateInput = {
262
188
  };
263
189
  export type SessionCreateOutput = Session.Info;
264
190
  export type SessionCreateOperation<E = never> = (input?: SessionCreateInput) => Effect.Effect<SessionCreateOutput, E>;
265
- export type SessionImportInput = {
266
- readonly info: Session.Info;
267
- readonly messages: ReadonlyArray<SessionMessage.Info>;
268
- readonly location?: Location.PublicRef | undefined;
269
- };
270
- export type SessionImportOutput = Session.Info;
271
- export type SessionImportOperation<E = never> = (input: SessionImportInput) => Effect.Effect<SessionImportOutput, E>;
272
- export type SessionExportInput = {
273
- readonly sessionID: Session.ID;
274
- readonly sanitize?: boolean | undefined;
275
- };
276
- export type SessionExportOutput = {
277
- readonly info: Session.Info;
278
- readonly messages: ReadonlyArray<SessionMessage.Info>;
279
- };
280
- export type SessionExportOperation<E = never> = (input: SessionExportInput) => Effect.Effect<SessionExportOutput, E>;
281
191
  export type SessionActiveOutput = {
282
192
  readonly [x: Session.ID]: {
283
193
  readonly type: "running";
@@ -354,13 +264,6 @@ export type SessionCommandInput = {
354
264
  };
355
265
  export type SessionCommandOutput = void;
356
266
  export type SessionCommandOperation<E = never> = (input: SessionCommandInput) => Effect.Effect<SessionCommandOutput, E>;
357
- export type SessionSkillInput = {
358
- readonly sessionID: Session.ID;
359
- readonly id: Skill.ID;
360
- readonly resume?: boolean | undefined;
361
- };
362
- export type SessionSkillOutput = void;
363
- export type SessionSkillOperation<E = never> = (input: SessionSkillInput) => Effect.Effect<SessionSkillOutput, E>;
364
267
  export type SessionSyntheticInput = {
365
268
  readonly sessionID: Session.ID;
366
269
  readonly id?: SessionMessage.ID | undefined;
@@ -388,11 +291,6 @@ export type SessionCompactInput = {
388
291
  };
389
292
  export type SessionCompactOutput = SessionInbox.Compaction;
390
293
  export type SessionCompactOperation<E = never> = (input: SessionCompactInput) => Effect.Effect<SessionCompactOutput, E>;
391
- export type SessionWaitInput = {
392
- readonly sessionID: Session.ID;
393
- };
394
- export type SessionWaitOutput = void;
395
- export type SessionWaitOperation<E = never> = (input: SessionWaitInput) => Effect.Effect<SessionWaitOutput, E>;
396
294
  export type SessionRevertStageInput = {
397
295
  readonly sessionID: Session.ID;
398
296
  readonly messageID: SessionMessage.ID;
@@ -441,38 +339,276 @@ export type SessionInboxUpdateInput = {
441
339
  };
442
340
  export type SessionInboxUpdateOutput = void;
443
341
  export type SessionInboxUpdateOperation<E = never> = (input: SessionInboxUpdateInput) => Effect.Effect<SessionInboxUpdateOutput, E>;
444
- export type SessionInstructionsEntryListInput = {
342
+ export type SessionGenerateInput = {
445
343
  readonly sessionID: Session.ID;
344
+ readonly prompt: string;
446
345
  };
447
- export type SessionInstructionsEntryListOutput = ReadonlyArray<InstructionEntry.Info>;
448
- export type SessionInstructionsEntryListOperation<E = never> = (input: SessionInstructionsEntryListInput) => Effect.Effect<SessionInstructionsEntryListOutput, E>;
449
- export type SessionInstructionsEntryPutInput = {
346
+ export type SessionGenerateOutput = {
347
+ readonly text: string;
348
+ };
349
+ export type SessionGenerateOperation<E = never> = (input: SessionGenerateInput) => Effect.Effect<SessionGenerateOutput, E>;
350
+ export type SessionInterruptInput = {
450
351
  readonly sessionID: Session.ID;
451
- readonly key: InstructionEntry.Key;
452
- readonly value: Schema.Json;
352
+ readonly resume?: boolean | undefined;
453
353
  };
454
- export type SessionInstructionsEntryPutOutput = void;
455
- export type SessionInstructionsEntryPutOperation<E = never> = (input: SessionInstructionsEntryPutInput) => Effect.Effect<SessionInstructionsEntryPutOutput, E>;
456
- export type SessionInstructionsEntryRemoveInput = {
354
+ export type SessionInterruptOutput = {
355
+ readonly interrupted: boolean;
356
+ };
357
+ export type SessionInterruptOperation<E = never> = (input: SessionInterruptInput) => Effect.Effect<SessionInterruptOutput, E>;
358
+ export type SessionBackgroundInput = {
457
359
  readonly sessionID: Session.ID;
458
- readonly key: InstructionEntry.Key;
459
360
  };
460
- export type SessionInstructionsEntryRemoveOutput = void;
461
- export type SessionInstructionsEntryRemoveOperation<E = never> = (input: SessionInstructionsEntryRemoveInput) => Effect.Effect<SessionInstructionsEntryRemoveOutput, E>;
462
- export type SessionGenerateInput = {
361
+ export type SessionBackgroundOutput = void;
362
+ export type SessionBackgroundOperation<E = never> = (input: SessionBackgroundInput) => Effect.Effect<SessionBackgroundOutput, E>;
363
+ export type SessionMessageGetInput = {
463
364
  readonly sessionID: Session.ID;
464
- readonly prompt: string;
365
+ readonly messageID: SessionMessage.ID;
465
366
  };
466
- export type SessionGenerateOutput = {
467
- readonly text: string;
367
+ export type SessionMessageGetOutput = SessionMessage.Info;
368
+ export type SessionMessageGetOperation<E = never> = (input: SessionMessageGetInput) => Effect.Effect<SessionMessageGetOutput, E>;
369
+ export type SessionFormListInput = {
370
+ readonly sessionID: string;
468
371
  };
469
- export type SessionGenerateOperation<E = never> = (input: SessionGenerateInput) => Effect.Effect<SessionGenerateOutput, E>;
470
- export type SessionLogInput = {
372
+ export type SessionFormListOutput = ReadonlyArray<Form.Info>;
373
+ export type SessionFormListOperation<E = never> = (input: SessionFormListInput) => Effect.Effect<SessionFormListOutput, E>;
374
+ export type SessionFormCreateInput = {
375
+ readonly sessionID: string;
376
+ readonly id?: Form.ID | undefined;
377
+ readonly title: string;
378
+ readonly metadata?: Form.Metadata | undefined;
379
+ readonly fields: Form.Fields;
380
+ };
381
+ export type SessionFormCreateOutput = Form.Info;
382
+ export type SessionFormCreateOperation<E = never> = (input: SessionFormCreateInput) => Effect.Effect<SessionFormCreateOutput, E>;
383
+ export type SessionFormGetInput = {
384
+ readonly sessionID: string;
385
+ readonly formID: Form.ID;
386
+ };
387
+ export type SessionFormGetOutput = Form.Detail;
388
+ export type SessionFormGetOperation<E = never> = (input: SessionFormGetInput) => Effect.Effect<SessionFormGetOutput, E>;
389
+ export type SessionFormReplyInput = {
390
+ readonly sessionID: string;
391
+ readonly formID: Form.ID;
392
+ readonly answer: Form.Answer;
393
+ };
394
+ export type SessionFormReplyOutput = void;
395
+ export type SessionFormReplyOperation<E = never> = (input: SessionFormReplyInput) => Effect.Effect<SessionFormReplyOutput, E>;
396
+ export type SessionFormCancelInput = {
397
+ readonly sessionID: string;
398
+ readonly formID: Form.ID;
399
+ readonly message?: string | undefined;
400
+ };
401
+ export type SessionFormCancelOutput = void;
402
+ export type SessionFormCancelOperation<E = never> = (input: SessionFormCancelInput) => Effect.Effect<SessionFormCancelOutput, E>;
403
+ export type SessionEnvironmentInput = {
404
+ readonly sessionID: Session.ID;
405
+ readonly variables: {
406
+ readonly [x: string]: string;
407
+ };
408
+ };
409
+ export type SessionEnvironmentOutput = void;
410
+ export type SessionEnvironmentOperation<E = never> = (input: SessionEnvironmentInput) => Effect.Effect<SessionEnvironmentOutput, E>;
411
+ export type SessionViewInput = {
412
+ readonly sessionID: Session.ID;
413
+ readonly idle: DateTime.Utc;
414
+ };
415
+ export type SessionViewOutput = void;
416
+ export type SessionViewOperation<E = never> = (input: SessionViewInput) => Effect.Effect<SessionViewOutput, E>;
417
+ export interface SessionApi<E = never> {
418
+ readonly list: SessionListOperation<E>;
419
+ readonly create: SessionCreateOperation<E>;
420
+ readonly active: SessionActiveOperation<E>;
421
+ readonly get: SessionGetOperation<E>;
422
+ readonly remove: SessionRemoveOperation<E>;
423
+ readonly fork: SessionForkOperation<E>;
424
+ readonly switchAgent: SessionSwitchAgentOperation<E>;
425
+ readonly switchModel: SessionSwitchModelOperation<E>;
426
+ readonly update: SessionUpdateOperation<E>;
427
+ readonly move: SessionMoveOperation<E>;
428
+ readonly prompt: SessionPromptOperation<E>;
429
+ readonly command: SessionCommandOperation<E>;
430
+ readonly synthetic: SessionSyntheticOperation<E>;
431
+ readonly shell: SessionShellOperation<E>;
432
+ readonly compact: SessionCompactOperation<E>;
433
+ readonly revert: {
434
+ readonly stage: SessionRevertStageOperation<E>;
435
+ readonly clear: SessionRevertClearOperation<E>;
436
+ readonly commit: SessionRevertCommitOperation<E>;
437
+ };
438
+ readonly context: SessionContextOperation<E>;
439
+ readonly diff: SessionDiffOperation<E>;
440
+ readonly inbox: {
441
+ readonly list: SessionInboxListOperation<E>;
442
+ readonly cancel: SessionInboxCancelOperation<E>;
443
+ readonly update: SessionInboxUpdateOperation<E>;
444
+ };
445
+ readonly generate: SessionGenerateOperation<E>;
446
+ readonly interrupt: SessionInterruptOperation<E>;
447
+ readonly background: SessionBackgroundOperation<E>;
448
+ readonly message: {
449
+ readonly get: SessionMessageGetOperation<E>;
450
+ };
451
+ readonly form: {
452
+ readonly list: SessionFormListOperation<E>;
453
+ readonly create: SessionFormCreateOperation<E>;
454
+ readonly get: SessionFormGetOperation<E>;
455
+ readonly reply: SessionFormReplyOperation<E>;
456
+ readonly cancel: SessionFormCancelOperation<E>;
457
+ };
458
+ readonly environment: SessionEnvironmentOperation<E>;
459
+ readonly view: SessionViewOperation<E>;
460
+ /** @deprecated Use `client.experimental.session.stats`. Removed in the next minor. */
461
+ readonly stats: ExperimentalSessionStatsOperation<E>;
462
+ /** @deprecated Use `client.experimental.session.import`. Removed in the next minor. */
463
+ readonly import: ExperimentalSessionImportOperation<E>;
464
+ /** @deprecated Use `client.experimental.session.export`. Removed in the next minor. */
465
+ readonly export: ExperimentalSessionExportOperation<E>;
466
+ /** @deprecated Use `client.experimental.session.skill`. Removed in the next minor. */
467
+ readonly skill: ExperimentalSessionSkillOperation<E>;
468
+ /** @deprecated Use `client.experimental.session.wait`. Removed in the next minor. */
469
+ readonly wait: ExperimentalSessionWaitOperation<E>;
470
+ /** @deprecated Use `client.experimental.session.instructions`. Removed in the next minor. */
471
+ readonly instructions: {
472
+ /** @deprecated Use `client.experimental.session.instructions.entry`. Removed in the next minor. */
473
+ readonly entry: {
474
+ /** @deprecated Use `client.experimental.session.instructions.entry.list`. Removed in the next minor. */
475
+ readonly list: ExperimentalSessionInstructionsEntryListOperation<E>;
476
+ /** @deprecated Use `client.experimental.session.instructions.entry.put`. Removed in the next minor. */
477
+ readonly put: ExperimentalSessionInstructionsEntryPutOperation<E>;
478
+ /** @deprecated Use `client.experimental.session.instructions.entry.remove`. Removed in the next minor. */
479
+ readonly remove: ExperimentalSessionInstructionsEntryRemoveOperation<E>;
480
+ };
481
+ };
482
+ /** @deprecated Use `client.experimental.session.log`. Removed in the next minor. */
483
+ readonly log: ExperimentalSessionLogOperation<E>;
484
+ }
485
+ export type ExperimentalSessionStatsInput = {
486
+ readonly from?: number | undefined;
487
+ readonly to?: number | undefined;
488
+ readonly project?: Project.ID | undefined;
489
+ readonly timezone?: string | undefined;
490
+ readonly tools?: "none" | "summary" | "detail" | undefined;
491
+ };
492
+ export type ExperimentalSessionStatsOutput = {
493
+ readonly range: {
494
+ readonly from: DateTime.Utc;
495
+ readonly to: DateTime.Utc;
496
+ };
497
+ readonly sessions: number;
498
+ readonly subagents: number;
499
+ readonly prompts: number;
500
+ readonly steps: number;
501
+ readonly tokens: {
502
+ readonly input: number;
503
+ readonly output: number;
504
+ readonly reasoning: number;
505
+ readonly cache: {
506
+ readonly read: number;
507
+ readonly write: number;
508
+ };
509
+ };
510
+ readonly cost: Money.USD;
511
+ readonly tools: {
512
+ readonly mode: "none";
513
+ } | {
514
+ readonly mode: "summary";
515
+ readonly totals: {
516
+ readonly calls: number;
517
+ readonly succeeded: number;
518
+ readonly failed: number;
519
+ readonly unfinished: number;
520
+ };
521
+ } | {
522
+ readonly mode: "detail";
523
+ readonly totals: {
524
+ readonly calls: number;
525
+ readonly succeeded: number;
526
+ readonly failed: number;
527
+ readonly unfinished: number;
528
+ };
529
+ readonly usage: ReadonlyArray<{
530
+ readonly name: string;
531
+ readonly calls: number;
532
+ readonly succeeded: number;
533
+ readonly failed: number;
534
+ readonly unfinished: number;
535
+ readonly durationP50?: number | undefined;
536
+ }>;
537
+ };
538
+ readonly activeDays: number;
539
+ readonly streak: number;
540
+ readonly activity: ReadonlyArray<{
541
+ readonly date: string;
542
+ readonly steps: number;
543
+ }>;
544
+ readonly models: ReadonlyArray<{
545
+ readonly model: Model.Ref;
546
+ readonly steps: number;
547
+ readonly tokens: {
548
+ readonly input: number;
549
+ readonly output: number;
550
+ readonly reasoning: number;
551
+ readonly cache: {
552
+ readonly read: number;
553
+ readonly write: number;
554
+ };
555
+ };
556
+ readonly cost: Money.USD;
557
+ }>;
558
+ };
559
+ export type ExperimentalSessionStatsOperation<E = never> = (input?: ExperimentalSessionStatsInput) => Effect.Effect<ExperimentalSessionStatsOutput, E>;
560
+ export type ExperimentalSessionImportInput = {
561
+ readonly info: Session.Info;
562
+ readonly messages: ReadonlyArray<SessionMessage.Info>;
563
+ readonly location?: Location.PublicRef | undefined;
564
+ };
565
+ export type ExperimentalSessionImportOutput = Session.Info;
566
+ export type ExperimentalSessionImportOperation<E = never> = (input: ExperimentalSessionImportInput) => Effect.Effect<ExperimentalSessionImportOutput, E>;
567
+ export type ExperimentalSessionExportInput = {
568
+ readonly sessionID: Session.ID;
569
+ readonly sanitize?: boolean | undefined;
570
+ };
571
+ export type ExperimentalSessionExportOutput = {
572
+ readonly info: Session.Info;
573
+ readonly messages: ReadonlyArray<SessionMessage.Info>;
574
+ };
575
+ export type ExperimentalSessionExportOperation<E = never> = (input: ExperimentalSessionExportInput) => Effect.Effect<ExperimentalSessionExportOutput, E>;
576
+ export type ExperimentalSessionSkillInput = {
577
+ readonly sessionID: Session.ID;
578
+ readonly id: Skill.ID;
579
+ readonly resume?: boolean | undefined;
580
+ };
581
+ export type ExperimentalSessionSkillOutput = void;
582
+ export type ExperimentalSessionSkillOperation<E = never> = (input: ExperimentalSessionSkillInput) => Effect.Effect<ExperimentalSessionSkillOutput, E>;
583
+ export type ExperimentalSessionWaitInput = {
584
+ readonly sessionID: Session.ID;
585
+ };
586
+ export type ExperimentalSessionWaitOutput = void;
587
+ export type ExperimentalSessionWaitOperation<E = never> = (input: ExperimentalSessionWaitInput) => Effect.Effect<ExperimentalSessionWaitOutput, E>;
588
+ export type ExperimentalSessionInstructionsEntryListInput = {
589
+ readonly sessionID: Session.ID;
590
+ };
591
+ export type ExperimentalSessionInstructionsEntryListOutput = ReadonlyArray<InstructionEntry.Info>;
592
+ export type ExperimentalSessionInstructionsEntryListOperation<E = never> = (input: ExperimentalSessionInstructionsEntryListInput) => Effect.Effect<ExperimentalSessionInstructionsEntryListOutput, E>;
593
+ export type ExperimentalSessionInstructionsEntryPutInput = {
594
+ readonly sessionID: Session.ID;
595
+ readonly key: InstructionEntry.Key;
596
+ readonly value: Schema.Json;
597
+ };
598
+ export type ExperimentalSessionInstructionsEntryPutOutput = void;
599
+ export type ExperimentalSessionInstructionsEntryPutOperation<E = never> = (input: ExperimentalSessionInstructionsEntryPutInput) => Effect.Effect<ExperimentalSessionInstructionsEntryPutOutput, E>;
600
+ export type ExperimentalSessionInstructionsEntryRemoveInput = {
601
+ readonly sessionID: Session.ID;
602
+ readonly key: InstructionEntry.Key;
603
+ };
604
+ export type ExperimentalSessionInstructionsEntryRemoveOutput = void;
605
+ export type ExperimentalSessionInstructionsEntryRemoveOperation<E = never> = (input: ExperimentalSessionInstructionsEntryRemoveInput) => Effect.Effect<ExperimentalSessionInstructionsEntryRemoveOutput, E>;
606
+ export type ExperimentalSessionLogInput = {
471
607
  readonly sessionID: Session.ID;
472
608
  readonly after?: Event.Seq | undefined;
473
609
  readonly follow?: boolean | undefined;
474
610
  };
475
- export type SessionLogOutput = ({
611
+ export type ExperimentalSessionLogOutput = ({
476
612
  readonly id: Event.ID;
477
613
  readonly created: number;
478
614
  readonly metadata?: {
@@ -1636,130 +1772,21 @@ export type SessionLogOutput = ({
1636
1772
  readonly content: ReadonlyArray<SessionMessage.AssistantContentEncoded>;
1637
1773
  };
1638
1774
  }) | EventLog.Synced;
1639
- export type SessionLogOperation<E = never> = (input: SessionLogInput) => Stream.Stream<SessionLogOutput, E>;
1640
- export type SessionInterruptInput = {
1641
- readonly sessionID: Session.ID;
1642
- readonly resume?: boolean | undefined;
1643
- };
1644
- export type SessionInterruptOutput = {
1645
- readonly interrupted: boolean;
1646
- };
1647
- export type SessionInterruptOperation<E = never> = (input: SessionInterruptInput) => Effect.Effect<SessionInterruptOutput, E>;
1648
- export type SessionBackgroundInput = {
1649
- readonly sessionID: Session.ID;
1650
- };
1651
- export type SessionBackgroundOutput = void;
1652
- export type SessionBackgroundOperation<E = never> = (input: SessionBackgroundInput) => Effect.Effect<SessionBackgroundOutput, E>;
1653
- export type SessionMessageGetInput = {
1654
- readonly sessionID: Session.ID;
1655
- readonly messageID: SessionMessage.ID;
1656
- };
1657
- export type SessionMessageGetOutput = SessionMessage.Info;
1658
- export type SessionMessageGetOperation<E = never> = (input: SessionMessageGetInput) => Effect.Effect<SessionMessageGetOutput, E>;
1659
- export type SessionFormListInput = {
1660
- readonly sessionID: string;
1661
- };
1662
- export type SessionFormListOutput = ReadonlyArray<Form.Info>;
1663
- export type SessionFormListOperation<E = never> = (input: SessionFormListInput) => Effect.Effect<SessionFormListOutput, E>;
1664
- export type SessionFormCreateInput = {
1665
- readonly sessionID: string;
1666
- readonly id?: Form.ID | undefined;
1667
- readonly title: string;
1668
- readonly metadata?: Form.Metadata | undefined;
1669
- readonly fields: Form.Fields;
1670
- };
1671
- export type SessionFormCreateOutput = Form.Info;
1672
- export type SessionFormCreateOperation<E = never> = (input: SessionFormCreateInput) => Effect.Effect<SessionFormCreateOutput, E>;
1673
- export type SessionFormGetInput = {
1674
- readonly sessionID: string;
1675
- readonly formID: Form.ID;
1676
- };
1677
- export type SessionFormGetOutput = Form.Detail;
1678
- export type SessionFormGetOperation<E = never> = (input: SessionFormGetInput) => Effect.Effect<SessionFormGetOutput, E>;
1679
- export type SessionFormReplyInput = {
1680
- readonly sessionID: string;
1681
- readonly formID: Form.ID;
1682
- readonly answer: Form.Answer;
1683
- };
1684
- export type SessionFormReplyOutput = void;
1685
- export type SessionFormReplyOperation<E = never> = (input: SessionFormReplyInput) => Effect.Effect<SessionFormReplyOutput, E>;
1686
- export type SessionFormCancelInput = {
1687
- readonly sessionID: string;
1688
- readonly formID: Form.ID;
1689
- readonly message?: string | undefined;
1690
- };
1691
- export type SessionFormCancelOutput = void;
1692
- export type SessionFormCancelOperation<E = never> = (input: SessionFormCancelInput) => Effect.Effect<SessionFormCancelOutput, E>;
1693
- export type SessionEnvironmentInput = {
1694
- readonly sessionID: Session.ID;
1695
- readonly variables: {
1696
- readonly [x: string]: string;
1697
- };
1698
- };
1699
- export type SessionEnvironmentOutput = void;
1700
- export type SessionEnvironmentOperation<E = never> = (input: SessionEnvironmentInput) => Effect.Effect<SessionEnvironmentOutput, E>;
1701
- export type SessionViewInput = {
1702
- readonly sessionID: Session.ID;
1703
- readonly idle: DateTime.Utc;
1704
- };
1705
- export type SessionViewOutput = void;
1706
- export type SessionViewOperation<E = never> = (input: SessionViewInput) => Effect.Effect<SessionViewOutput, E>;
1707
- export interface SessionApi<E = never> {
1708
- readonly list: SessionListOperation<E>;
1709
- readonly stats: SessionStatsOperation<E>;
1710
- readonly create: SessionCreateOperation<E>;
1711
- readonly import: SessionImportOperation<E>;
1712
- readonly export: SessionExportOperation<E>;
1713
- readonly active: SessionActiveOperation<E>;
1714
- readonly get: SessionGetOperation<E>;
1715
- readonly remove: SessionRemoveOperation<E>;
1716
- readonly fork: SessionForkOperation<E>;
1717
- readonly switchAgent: SessionSwitchAgentOperation<E>;
1718
- readonly switchModel: SessionSwitchModelOperation<E>;
1719
- readonly update: SessionUpdateOperation<E>;
1720
- readonly move: SessionMoveOperation<E>;
1721
- readonly prompt: SessionPromptOperation<E>;
1722
- readonly command: SessionCommandOperation<E>;
1723
- readonly skill: SessionSkillOperation<E>;
1724
- readonly synthetic: SessionSyntheticOperation<E>;
1725
- readonly shell: SessionShellOperation<E>;
1726
- readonly compact: SessionCompactOperation<E>;
1727
- readonly wait: SessionWaitOperation<E>;
1728
- readonly revert: {
1729
- readonly stage: SessionRevertStageOperation<E>;
1730
- readonly clear: SessionRevertClearOperation<E>;
1731
- readonly commit: SessionRevertCommitOperation<E>;
1732
- };
1733
- readonly context: SessionContextOperation<E>;
1734
- readonly diff: SessionDiffOperation<E>;
1735
- readonly inbox: {
1736
- readonly list: SessionInboxListOperation<E>;
1737
- readonly cancel: SessionInboxCancelOperation<E>;
1738
- readonly update: SessionInboxUpdateOperation<E>;
1739
- };
1775
+ export type ExperimentalSessionLogOperation<E = never> = (input: ExperimentalSessionLogInput) => Stream.Stream<ExperimentalSessionLogOutput, E>;
1776
+ export interface ExperimentalSessionApi<E = never> {
1777
+ readonly stats: ExperimentalSessionStatsOperation<E>;
1778
+ readonly import: ExperimentalSessionImportOperation<E>;
1779
+ readonly export: ExperimentalSessionExportOperation<E>;
1780
+ readonly skill: ExperimentalSessionSkillOperation<E>;
1781
+ readonly wait: ExperimentalSessionWaitOperation<E>;
1740
1782
  readonly instructions: {
1741
1783
  readonly entry: {
1742
- readonly list: SessionInstructionsEntryListOperation<E>;
1743
- readonly put: SessionInstructionsEntryPutOperation<E>;
1744
- readonly remove: SessionInstructionsEntryRemoveOperation<E>;
1784
+ readonly list: ExperimentalSessionInstructionsEntryListOperation<E>;
1785
+ readonly put: ExperimentalSessionInstructionsEntryPutOperation<E>;
1786
+ readonly remove: ExperimentalSessionInstructionsEntryRemoveOperation<E>;
1745
1787
  };
1746
1788
  };
1747
- readonly generate: SessionGenerateOperation<E>;
1748
- readonly log: SessionLogOperation<E>;
1749
- readonly interrupt: SessionInterruptOperation<E>;
1750
- readonly background: SessionBackgroundOperation<E>;
1751
- readonly message: {
1752
- readonly get: SessionMessageGetOperation<E>;
1753
- };
1754
- readonly form: {
1755
- readonly list: SessionFormListOperation<E>;
1756
- readonly create: SessionFormCreateOperation<E>;
1757
- readonly get: SessionFormGetOperation<E>;
1758
- readonly reply: SessionFormReplyOperation<E>;
1759
- readonly cancel: SessionFormCancelOperation<E>;
1760
- };
1761
- readonly environment: SessionEnvironmentOperation<E>;
1762
- readonly view: SessionViewOperation<E>;
1789
+ readonly log: ExperimentalSessionLogOperation<E>;
1763
1790
  }
1764
1791
  export type MessageListInput = {
1765
1792
  readonly sessionID: Session.ID;
@@ -1804,15 +1831,15 @@ export interface ModelApi<E = never> {
1804
1831
  readonly list: ModelListOperation<E>;
1805
1832
  readonly default: ModelDefaultOperation<E>;
1806
1833
  }
1807
- export type GenerateTextInput = {
1834
+ export type ExperimentalGenerateTextInput = {
1808
1835
  readonly prompt: string;
1809
1836
  readonly model?: Model.Ref | undefined;
1810
1837
  };
1811
- export type GenerateTextOutput = {
1838
+ export type ExperimentalGenerateTextOutput = {
1812
1839
  readonly text: string;
1813
1840
  };
1814
- export type GenerateTextOperation<E = never> = (input: GenerateTextInput) => Effect.Effect<GenerateTextOutput, E>;
1815
- export type GenerateImageInput = {
1841
+ export type ExperimentalGenerateTextOperation<E = never> = (input: ExperimentalGenerateTextInput) => Effect.Effect<ExperimentalGenerateTextOutput, E>;
1842
+ export type ExperimentalGenerateImageInput = {
1816
1843
  readonly model: Model.Ref;
1817
1844
  readonly prompt: string;
1818
1845
  readonly images?: ReadonlyArray<Generate.File> | undefined;
@@ -1820,21 +1847,21 @@ export type GenerateImageInput = {
1820
1847
  readonly aspect?: Generate.ImageAspect | undefined;
1821
1848
  readonly resolution?: Generate.ImageResolution | undefined;
1822
1849
  };
1823
- export type GenerateImageOutput = Generate.ImageResult;
1824
- export type GenerateImageOperation<E = never> = (input: GenerateImageInput) => Effect.Effect<GenerateImageOutput, E>;
1825
- export type GenerateDecisionsInput = {
1850
+ export type ExperimentalGenerateImageOutput = Generate.ImageResult;
1851
+ export type ExperimentalGenerateImageOperation<E = never> = (input: ExperimentalGenerateImageInput) => Effect.Effect<ExperimentalGenerateImageOutput, E>;
1852
+ export type ExperimentalGenerateDecisionsInput = {
1826
1853
  readonly model: Model.Ref;
1827
1854
  readonly input: ReadonlyArray<Generate.DecisionPart>;
1828
1855
  readonly questions: ReadonlyArray<Generate.DecisionQuestion>;
1829
1856
  };
1830
- export type GenerateDecisionsOutput = Generate.DecisionResult;
1831
- export type GenerateDecisionsOperation<E = never> = (input: GenerateDecisionsInput) => Effect.Effect<GenerateDecisionsOutput, E>;
1832
- export interface GenerateApi<E = never> {
1833
- readonly text: GenerateTextOperation<E>;
1834
- readonly image: GenerateImageOperation<E>;
1835
- readonly decisions: GenerateDecisionsOperation<E>;
1857
+ export type ExperimentalGenerateDecisionsOutput = Generate.DecisionResult;
1858
+ export type ExperimentalGenerateDecisionsOperation<E = never> = (input: ExperimentalGenerateDecisionsInput) => Effect.Effect<ExperimentalGenerateDecisionsOutput, E>;
1859
+ export interface ExperimentalGenerateApi<E = never> {
1860
+ readonly text: ExperimentalGenerateTextOperation<E>;
1861
+ readonly image: ExperimentalGenerateImageOperation<E>;
1862
+ readonly decisions: ExperimentalGenerateDecisionsOperation<E>;
1836
1863
  }
1837
- export type VoiceModelsOutput = {
1864
+ export type ExperimentalVoiceModelsOutput = {
1838
1865
  readonly models: ReadonlyArray<{
1839
1866
  readonly model: string;
1840
1867
  readonly provider: string;
@@ -1843,8 +1870,8 @@ export type VoiceModelsOutput = {
1843
1870
  }>;
1844
1871
  readonly default?: string | undefined;
1845
1872
  };
1846
- export type VoiceModelsOperation<E = never> = () => Effect.Effect<VoiceModelsOutput, E>;
1847
- export type VoiceSessionInput = {
1873
+ export type ExperimentalVoiceModelsOperation<E = never> = () => Effect.Effect<ExperimentalVoiceModelsOutput, E>;
1874
+ export type ExperimentalVoiceSessionInput = {
1848
1875
  readonly model: string;
1849
1876
  readonly session?: {
1850
1877
  readonly [x: string]: unknown;
@@ -1857,7 +1884,7 @@ export type VoiceSessionInput = {
1857
1884
  readonly type: "websocket";
1858
1885
  };
1859
1886
  };
1860
- export type VoiceSessionOutput = {
1887
+ export type ExperimentalVoiceSessionOutput = {
1861
1888
  readonly transport: {
1862
1889
  readonly type: "webrtc";
1863
1890
  readonly sdp: string;
@@ -1868,10 +1895,10 @@ export type VoiceSessionOutput = {
1868
1895
  readonly expiresAt: number;
1869
1896
  };
1870
1897
  };
1871
- export type VoiceSessionOperation<E = never> = (input: VoiceSessionInput) => Effect.Effect<VoiceSessionOutput, E>;
1872
- export interface VoiceApi<E = never> {
1873
- readonly models: VoiceModelsOperation<E>;
1874
- readonly session: VoiceSessionOperation<E>;
1898
+ export type ExperimentalVoiceSessionOperation<E = never> = (input: ExperimentalVoiceSessionInput) => Effect.Effect<ExperimentalVoiceSessionOutput, E>;
1899
+ export interface ExperimentalVoiceApi<E = never> {
1900
+ readonly models: ExperimentalVoiceModelsOperation<E>;
1901
+ readonly session: ExperimentalVoiceSessionOperation<E>;
1875
1902
  }
1876
1903
  export type ProviderListInput = {
1877
1904
  readonly location?: {
@@ -1919,14 +1946,6 @@ export type IntegrationGetOutput = {
1919
1946
  readonly data: Integration.Info;
1920
1947
  };
1921
1948
  export type IntegrationGetOperation<E = never> = (input: IntegrationGetInput) => Effect.Effect<IntegrationGetOutput, E>;
1922
- export type IntegrationWellknownAddInput = {
1923
- readonly location?: {
1924
- readonly directory?: string | undefined;
1925
- } | undefined;
1926
- readonly url: string;
1927
- };
1928
- export type IntegrationWellknownAddOutput = void;
1929
- export type IntegrationWellknownAddOperation<E = never> = (input: IntegrationWellknownAddInput) => Effect.Effect<IntegrationWellknownAddOutput, E>;
1930
1949
  export type IntegrationConnectKeyInput = {
1931
1950
  readonly integrationID: Integration.ID;
1932
1951
  readonly location?: {
@@ -2031,9 +2050,6 @@ export type IntegrationCommandCancelOperation<E = never> = (input: IntegrationCo
2031
2050
  export interface IntegrationApi<E = never> {
2032
2051
  readonly list: IntegrationListOperation<E>;
2033
2052
  readonly get: IntegrationGetOperation<E>;
2034
- readonly wellknown: {
2035
- readonly add: IntegrationWellknownAddOperation<E>;
2036
- };
2037
2053
  readonly connect: {
2038
2054
  readonly key: IntegrationConnectKeyOperation<E>;
2039
2055
  readonly external: IntegrationConnectExternalOperation<E>;
@@ -2049,6 +2065,24 @@ export interface IntegrationApi<E = never> {
2049
2065
  readonly status: IntegrationCommandStatusOperation<E>;
2050
2066
  readonly cancel: IntegrationCommandCancelOperation<E>;
2051
2067
  };
2068
+ /** @deprecated Use `client.experimental.integration.wellknown`. Removed in the next minor. */
2069
+ readonly wellknown: {
2070
+ /** @deprecated Use `client.experimental.integration.wellknown.add`. Removed in the next minor. */
2071
+ readonly add: ExperimentalIntegrationWellknownAddOperation<E>;
2072
+ };
2073
+ }
2074
+ export type ExperimentalIntegrationWellknownAddInput = {
2075
+ readonly location?: {
2076
+ readonly directory?: string | undefined;
2077
+ } | undefined;
2078
+ readonly url: string;
2079
+ };
2080
+ export type ExperimentalIntegrationWellknownAddOutput = void;
2081
+ export type ExperimentalIntegrationWellknownAddOperation<E = never> = (input: ExperimentalIntegrationWellknownAddInput) => Effect.Effect<ExperimentalIntegrationWellknownAddOutput, E>;
2082
+ export interface ExperimentalIntegrationApi<E = never> {
2083
+ readonly wellknown: {
2084
+ readonly add: ExperimentalIntegrationWellknownAddOperation<E>;
2085
+ };
2052
2086
  }
2053
2087
  export type McpListInput = {
2054
2088
  readonly location?: {
@@ -2060,72 +2094,87 @@ export type McpListOutput = {
2060
2094
  readonly data: ReadonlyArray<Mcp.Server>;
2061
2095
  };
2062
2096
  export type McpListOperation<E = never> = (input?: McpListInput) => Effect.Effect<McpListOutput, E>;
2063
- export type McpAddInput = {
2064
- readonly server: string;
2097
+ export type McpResourceCatalogInput = {
2065
2098
  readonly location?: {
2066
2099
  readonly directory?: string | undefined;
2067
2100
  } | undefined;
2068
- readonly config: Mcp.LocalConfig | Mcp.RemoteConfig;
2069
2101
  };
2070
- export type McpAddOutput = void;
2071
- export type McpAddOperation<E = never> = (input: McpAddInput) => Effect.Effect<McpAddOutput, E>;
2072
- export type McpRemoveInput = {
2102
+ export type McpResourceCatalogOutput = {
2103
+ readonly location: Location.PublicRef;
2104
+ readonly data: Mcp.ResourceCatalog;
2105
+ };
2106
+ export type McpResourceCatalogOperation<E = never> = (input?: McpResourceCatalogInput) => Effect.Effect<McpResourceCatalogOutput, E>;
2107
+ export interface McpApi<E = never> {
2108
+ readonly list: McpListOperation<E>;
2109
+ readonly resource: {
2110
+ readonly catalog: McpResourceCatalogOperation<E>;
2111
+ };
2112
+ /** @deprecated Use `client.experimental.mcp.add`. Removed in the next minor. */
2113
+ readonly add: ExperimentalMcpAddOperation<E>;
2114
+ /** @deprecated Use `client.experimental.mcp.remove`. Removed in the next minor. */
2115
+ readonly remove: ExperimentalMcpRemoveOperation<E>;
2116
+ /** @deprecated Use `client.experimental.mcp.connect`. Removed in the next minor. */
2117
+ readonly connect: ExperimentalMcpConnectOperation<E>;
2118
+ /** @deprecated Use `client.experimental.mcp.disconnect`. Removed in the next minor. */
2119
+ readonly disconnect: ExperimentalMcpDisconnectOperation<E>;
2120
+ /** @deprecated Use `client.experimental.mcp.client`. Removed in the next minor. */
2121
+ readonly client: {
2122
+ /** @deprecated Use `client.experimental.mcp.client.token`. Removed in the next minor. */
2123
+ readonly token: ExperimentalMcpClientTokenOperation<E>;
2124
+ };
2125
+ }
2126
+ export type ExperimentalMcpAddInput = {
2073
2127
  readonly server: string;
2074
2128
  readonly location?: {
2075
2129
  readonly directory?: string | undefined;
2076
2130
  } | undefined;
2131
+ readonly config: Mcp.LocalConfig | Mcp.RemoteConfig;
2077
2132
  };
2078
- export type McpRemoveOutput = void;
2079
- export type McpRemoveOperation<E = never> = (input: McpRemoveInput) => Effect.Effect<McpRemoveOutput, E>;
2080
- export type McpConnectInput = {
2133
+ export type ExperimentalMcpAddOutput = void;
2134
+ export type ExperimentalMcpAddOperation<E = never> = (input: ExperimentalMcpAddInput) => Effect.Effect<ExperimentalMcpAddOutput, E>;
2135
+ export type ExperimentalMcpRemoveInput = {
2081
2136
  readonly server: string;
2082
2137
  readonly location?: {
2083
2138
  readonly directory?: string | undefined;
2084
2139
  } | undefined;
2085
2140
  };
2086
- export type McpConnectOutput = void;
2087
- export type McpConnectOperation<E = never> = (input: McpConnectInput) => Effect.Effect<McpConnectOutput, E>;
2088
- export type McpDisconnectInput = {
2141
+ export type ExperimentalMcpRemoveOutput = void;
2142
+ export type ExperimentalMcpRemoveOperation<E = never> = (input: ExperimentalMcpRemoveInput) => Effect.Effect<ExperimentalMcpRemoveOutput, E>;
2143
+ export type ExperimentalMcpConnectInput = {
2089
2144
  readonly server: string;
2090
2145
  readonly location?: {
2091
2146
  readonly directory?: string | undefined;
2092
2147
  } | undefined;
2093
2148
  };
2094
- export type McpDisconnectOutput = void;
2095
- export type McpDisconnectOperation<E = never> = (input: McpDisconnectInput) => Effect.Effect<McpDisconnectOutput, E>;
2096
- export type McpResourceCatalogInput = {
2149
+ export type ExperimentalMcpConnectOutput = void;
2150
+ export type ExperimentalMcpConnectOperation<E = never> = (input: ExperimentalMcpConnectInput) => Effect.Effect<ExperimentalMcpConnectOutput, E>;
2151
+ export type ExperimentalMcpDisconnectInput = {
2152
+ readonly server: string;
2097
2153
  readonly location?: {
2098
2154
  readonly directory?: string | undefined;
2099
2155
  } | undefined;
2100
2156
  };
2101
- export type McpResourceCatalogOutput = {
2102
- readonly location: Location.PublicRef;
2103
- readonly data: Mcp.ResourceCatalog;
2104
- };
2105
- export type McpResourceCatalogOperation<E = never> = (input?: McpResourceCatalogInput) => Effect.Effect<McpResourceCatalogOutput, E>;
2106
- export type McpClientTokenInput = {
2157
+ export type ExperimentalMcpDisconnectOutput = void;
2158
+ export type ExperimentalMcpDisconnectOperation<E = never> = (input: ExperimentalMcpDisconnectInput) => Effect.Effect<ExperimentalMcpDisconnectOutput, E>;
2159
+ export type ExperimentalMcpClientTokenInput = {
2107
2160
  readonly location?: {
2108
2161
  readonly directory?: string | undefined;
2109
2162
  } | undefined;
2110
2163
  readonly name: string;
2111
2164
  readonly "x-opencode-ticket"?: string | undefined;
2112
2165
  };
2113
- export type McpClientTokenOutput = {
2166
+ export type ExperimentalMcpClientTokenOutput = {
2114
2167
  readonly location: Location.PublicRef;
2115
2168
  readonly data: PtyTicket.ConnectToken;
2116
2169
  };
2117
- export type McpClientTokenOperation<E = never> = (input: McpClientTokenInput) => Effect.Effect<McpClientTokenOutput, E>;
2118
- export interface McpApi<E = never> {
2119
- readonly list: McpListOperation<E>;
2120
- readonly add: McpAddOperation<E>;
2121
- readonly remove: McpRemoveOperation<E>;
2122
- readonly connect: McpConnectOperation<E>;
2123
- readonly disconnect: McpDisconnectOperation<E>;
2124
- readonly resource: {
2125
- readonly catalog: McpResourceCatalogOperation<E>;
2126
- };
2170
+ export type ExperimentalMcpClientTokenOperation<E = never> = (input: ExperimentalMcpClientTokenInput) => Effect.Effect<ExperimentalMcpClientTokenOutput, E>;
2171
+ export interface ExperimentalMcpApi<E = never> {
2172
+ readonly add: ExperimentalMcpAddOperation<E>;
2173
+ readonly remove: ExperimentalMcpRemoveOperation<E>;
2174
+ readonly connect: ExperimentalMcpConnectOperation<E>;
2175
+ readonly disconnect: ExperimentalMcpDisconnectOperation<E>;
2127
2176
  readonly client: {
2128
- readonly token: McpClientTokenOperation<E>;
2177
+ readonly token: ExperimentalMcpClientTokenOperation<E>;
2129
2178
  };
2130
2179
  }
2131
2180
  export type CredentialListOutput = ReadonlyArray<Credential.Entry>;
@@ -2294,27 +2343,33 @@ export type FileFindOutput = {
2294
2343
  readonly data: ReadonlyArray<FileSystem.Entry>;
2295
2344
  };
2296
2345
  export type FileFindOperation<E = never> = (input: FileFindInput) => Effect.Effect<FileFindOutput, E>;
2297
- export type FileWatchInput = {
2346
+ export interface FileApi<E = never> {
2347
+ readonly list: FileListOperation<E>;
2348
+ readonly find: FileFindOperation<E>;
2349
+ /** @deprecated Use `client.experimental.file.watch`. Removed in the next minor. */
2350
+ readonly watch: ExperimentalFileWatchOperation<E>;
2351
+ /** @deprecated Use `client.experimental.file.unwatch`. Removed in the next minor. */
2352
+ readonly unwatch: ExperimentalFileUnwatchOperation<E>;
2353
+ }
2354
+ export type ExperimentalFileWatchInput = {
2298
2355
  readonly location?: {
2299
2356
  readonly directory?: string | undefined;
2300
2357
  } | undefined;
2301
2358
  readonly path: string;
2302
2359
  };
2303
- export type FileWatchOutput = void;
2304
- export type FileWatchOperation<E = never> = (input: FileWatchInput) => Effect.Effect<FileWatchOutput, E>;
2305
- export type FileUnwatchInput = {
2360
+ export type ExperimentalFileWatchOutput = void;
2361
+ export type ExperimentalFileWatchOperation<E = never> = (input: ExperimentalFileWatchInput) => Effect.Effect<ExperimentalFileWatchOutput, E>;
2362
+ export type ExperimentalFileUnwatchInput = {
2306
2363
  readonly location?: {
2307
2364
  readonly directory?: string | undefined;
2308
2365
  } | undefined;
2309
2366
  readonly path: string;
2310
2367
  };
2311
- export type FileUnwatchOutput = void;
2312
- export type FileUnwatchOperation<E = never> = (input: FileUnwatchInput) => Effect.Effect<FileUnwatchOutput, E>;
2313
- export interface FileApi<E = never> {
2314
- readonly list: FileListOperation<E>;
2315
- readonly find: FileFindOperation<E>;
2316
- readonly watch: FileWatchOperation<E>;
2317
- readonly unwatch: FileUnwatchOperation<E>;
2368
+ export type ExperimentalFileUnwatchOutput = void;
2369
+ export type ExperimentalFileUnwatchOperation<E = never> = (input: ExperimentalFileUnwatchInput) => Effect.Effect<ExperimentalFileUnwatchOutput, E>;
2370
+ export interface ExperimentalFileApi<E = never> {
2371
+ readonly watch: ExperimentalFileWatchOperation<E>;
2372
+ readonly unwatch: ExperimentalFileUnwatchOperation<E>;
2318
2373
  }
2319
2374
  export type CommandListInput = {
2320
2375
  readonly location?: {
@@ -2635,6 +2690,40 @@ export type ExperimentalPersistentPtyConnectTokenInput = {
2635
2690
  };
2636
2691
  export type ExperimentalPersistentPtyConnectTokenOutput = PtyTicket.ConnectToken;
2637
2692
  export type ExperimentalPersistentPtyConnectTokenOperation<E = never> = (input: ExperimentalPersistentPtyConnectTokenInput) => Effect.Effect<ExperimentalPersistentPtyConnectTokenOutput, E>;
2693
+ export type ExperimentalScheduleCreateInput = {
2694
+ readonly sessionID: Session.ID;
2695
+ readonly name?: string | undefined;
2696
+ readonly when: Schedule.WhenInput;
2697
+ readonly ends?: Schedule.Ends | undefined;
2698
+ readonly prompt: string;
2699
+ };
2700
+ export type ExperimentalScheduleCreateOutput = Schedule.Info;
2701
+ export type ExperimentalScheduleCreateOperation<E = never> = (input: ExperimentalScheduleCreateInput) => Effect.Effect<ExperimentalScheduleCreateOutput, E>;
2702
+ export type ExperimentalScheduleListInput = {
2703
+ readonly sessionID: Session.ID;
2704
+ };
2705
+ export type ExperimentalScheduleListOutput = ReadonlyArray<Schedule.Info>;
2706
+ export type ExperimentalScheduleListOperation<E = never> = (input: ExperimentalScheduleListInput) => Effect.Effect<ExperimentalScheduleListOutput, E>;
2707
+ export type ExperimentalScheduleGetInput = {
2708
+ readonly scheduleID: Schedule.ID;
2709
+ };
2710
+ export type ExperimentalScheduleGetOutput = Schedule.Info;
2711
+ export type ExperimentalScheduleGetOperation<E = never> = (input: ExperimentalScheduleGetInput) => Effect.Effect<ExperimentalScheduleGetOutput, E>;
2712
+ export type ExperimentalSchedulePauseInput = {
2713
+ readonly scheduleID: Schedule.ID;
2714
+ };
2715
+ export type ExperimentalSchedulePauseOutput = Schedule.Info;
2716
+ export type ExperimentalSchedulePauseOperation<E = never> = (input: ExperimentalSchedulePauseInput) => Effect.Effect<ExperimentalSchedulePauseOutput, E>;
2717
+ export type ExperimentalScheduleResumeInput = {
2718
+ readonly scheduleID: Schedule.ID;
2719
+ };
2720
+ export type ExperimentalScheduleResumeOutput = Schedule.Info;
2721
+ export type ExperimentalScheduleResumeOperation<E = never> = (input: ExperimentalScheduleResumeInput) => Effect.Effect<ExperimentalScheduleResumeOutput, E>;
2722
+ export type ExperimentalScheduleDeleteInput = {
2723
+ readonly scheduleID: Schedule.ID;
2724
+ };
2725
+ export type ExperimentalScheduleDeleteOutput = void;
2726
+ export type ExperimentalScheduleDeleteOperation<E = never> = (input: ExperimentalScheduleDeleteInput) => Effect.Effect<ExperimentalScheduleDeleteOutput, E>;
2638
2727
  export interface ExperimentalApi<E = never> {
2639
2728
  readonly persistentPty: {
2640
2729
  readonly read: ExperimentalPersistentPtyReadOperation<E>;
@@ -2648,6 +2737,14 @@ export interface ExperimentalApi<E = never> {
2648
2737
  readonly remove: ExperimentalPersistentPtyRemoveOperation<E>;
2649
2738
  readonly connectToken: ExperimentalPersistentPtyConnectTokenOperation<E>;
2650
2739
  };
2740
+ readonly schedule: {
2741
+ readonly create: ExperimentalScheduleCreateOperation<E>;
2742
+ readonly list: ExperimentalScheduleListOperation<E>;
2743
+ readonly get: ExperimentalScheduleGetOperation<E>;
2744
+ readonly pause: ExperimentalSchedulePauseOperation<E>;
2745
+ readonly resume: ExperimentalScheduleResumeOperation<E>;
2746
+ readonly delete: ExperimentalScheduleDeleteOperation<E>;
2747
+ };
2651
2748
  }
2652
2749
  export type ShellListInput = {
2653
2750
  readonly location?: {
@@ -2869,7 +2966,7 @@ export interface DebugApi<E = never> {
2869
2966
  readonly evict: DebugLocationEvictOperation<E>;
2870
2967
  };
2871
2968
  }
2872
- export type MigrationV1StatusOutput = {
2969
+ export type ExperimentalMigrationV1StatusOutput = {
2873
2970
  readonly status: "required" | "completed";
2874
2971
  } | {
2875
2972
  readonly status: "running";
@@ -2882,10 +2979,10 @@ export type MigrationV1StatusOutput = {
2882
2979
  readonly status: "error";
2883
2980
  readonly error: string;
2884
2981
  };
2885
- export type MigrationV1StatusOperation<E = never> = () => Effect.Effect<MigrationV1StatusOutput, E>;
2886
- export interface MigrationApi<E = never> {
2982
+ export type ExperimentalMigrationV1StatusOperation<E = never> = () => Effect.Effect<ExperimentalMigrationV1StatusOutput, E>;
2983
+ export interface ExperimentalMigrationApi<E = never> {
2887
2984
  readonly v1: {
2888
- readonly status: MigrationV1StatusOperation<E>;
2985
+ readonly status: ExperimentalMigrationV1StatusOperation<E>;
2889
2986
  };
2890
2987
  }
2891
2988
  export type WebsearchProvidersInput = {
@@ -2914,18 +3011,18 @@ export interface WebsearchApi<E = never> {
2914
3011
  readonly providers: WebsearchProvidersOperation<E>;
2915
3012
  readonly query: WebsearchQueryOperation<E>;
2916
3013
  }
2917
- export type UsageLimitsInput = {
3014
+ export type ExperimentalUsageLimitsInput = {
2918
3015
  readonly location?: {
2919
3016
  readonly directory?: string | undefined;
2920
3017
  } | undefined;
2921
3018
  };
2922
- export type UsageLimitsOutput = {
3019
+ export type ExperimentalUsageLimitsOutput = {
2923
3020
  readonly location: Location.PublicRef;
2924
3021
  readonly data: UsageLimits.Info | null;
2925
3022
  };
2926
- export type UsageLimitsOperation<E = never> = (input?: UsageLimitsInput) => Effect.Effect<UsageLimitsOutput, E>;
2927
- export interface UsageApi<E = never> {
2928
- readonly limits: UsageLimitsOperation<E>;
3023
+ export type ExperimentalUsageLimitsOperation<E = never> = (input?: ExperimentalUsageLimitsInput) => Effect.Effect<ExperimentalUsageLimitsOutput, E>;
3024
+ export interface ExperimentalUsageApi<E = never> {
3025
+ readonly limits: ExperimentalUsageLimitsOperation<E>;
2929
3026
  }
2930
3027
  export type ConfigGetInput = {
2931
3028
  readonly location?: {
@@ -2940,26 +3037,193 @@ export type ConfigShellsOutput = ReadonlyArray<{
2940
3037
  readonly acceptable: boolean;
2941
3038
  }>;
2942
3039
  export type ConfigShellsOperation<E = never> = () => Effect.Effect<ConfigShellsOutput, E>;
2943
- export type ConfigUpdateInput = {
2944
- readonly shell: string | null;
2945
- };
2946
- export type ConfigUpdateOutput = void;
2947
- export type ConfigUpdateOperation<E = never> = (input: ConfigUpdateInput) => Effect.Effect<ConfigUpdateOutput, E>;
2948
3040
  export interface ConfigApi<E = never> {
2949
3041
  readonly get: ConfigGetOperation<E>;
2950
3042
  readonly shells: ConfigShellsOperation<E>;
2951
- readonly update: ConfigUpdateOperation<E>;
3043
+ /** @deprecated Use `client.experimental.config.update`. Removed in the next minor. */
3044
+ readonly update: ExperimentalConfigUpdateOperation<E>;
2952
3045
  }
3046
+ export type ExperimentalConfigUpdateInput = {
3047
+ readonly shell: string | null;
3048
+ };
3049
+ export type ExperimentalConfigUpdateOutput = void;
3050
+ export type ExperimentalConfigUpdateOperation<E = never> = (input: ExperimentalConfigUpdateInput) => Effect.Effect<ExperimentalConfigUpdateOutput, E>;
3051
+ export interface ExperimentalConfigApi<E = never> {
3052
+ readonly update: ExperimentalConfigUpdateOperation<E>;
3053
+ }
3054
+ /** @deprecated Use `ExperimentalSessionStatsInput`. Removed in the next minor. */
3055
+ export type SessionStatsInput = ExperimentalSessionStatsInput;
3056
+ /** @deprecated Use `ExperimentalSessionStatsOutput`. Removed in the next minor. */
3057
+ export type SessionStatsOutput = ExperimentalSessionStatsOutput;
3058
+ /** @deprecated Use `ExperimentalSessionStatsOperation`. Removed in the next minor. */
3059
+ export type SessionStatsOperation<E = never> = ExperimentalSessionStatsOperation<E>;
3060
+ /** @deprecated Use `ExperimentalSessionImportInput`. Removed in the next minor. */
3061
+ export type SessionImportInput = ExperimentalSessionImportInput;
3062
+ /** @deprecated Use `ExperimentalSessionImportOutput`. Removed in the next minor. */
3063
+ export type SessionImportOutput = ExperimentalSessionImportOutput;
3064
+ /** @deprecated Use `ExperimentalSessionImportOperation`. Removed in the next minor. */
3065
+ export type SessionImportOperation<E = never> = ExperimentalSessionImportOperation<E>;
3066
+ /** @deprecated Use `ExperimentalSessionExportInput`. Removed in the next minor. */
3067
+ export type SessionExportInput = ExperimentalSessionExportInput;
3068
+ /** @deprecated Use `ExperimentalSessionExportOutput`. Removed in the next minor. */
3069
+ export type SessionExportOutput = ExperimentalSessionExportOutput;
3070
+ /** @deprecated Use `ExperimentalSessionExportOperation`. Removed in the next minor. */
3071
+ export type SessionExportOperation<E = never> = ExperimentalSessionExportOperation<E>;
3072
+ /** @deprecated Use `ExperimentalSessionSkillInput`. Removed in the next minor. */
3073
+ export type SessionSkillInput = ExperimentalSessionSkillInput;
3074
+ /** @deprecated Use `ExperimentalSessionSkillOutput`. Removed in the next minor. */
3075
+ export type SessionSkillOutput = ExperimentalSessionSkillOutput;
3076
+ /** @deprecated Use `ExperimentalSessionSkillOperation`. Removed in the next minor. */
3077
+ export type SessionSkillOperation<E = never> = ExperimentalSessionSkillOperation<E>;
3078
+ /** @deprecated Use `ExperimentalSessionWaitInput`. Removed in the next minor. */
3079
+ export type SessionWaitInput = ExperimentalSessionWaitInput;
3080
+ /** @deprecated Use `ExperimentalSessionWaitOutput`. Removed in the next minor. */
3081
+ export type SessionWaitOutput = ExperimentalSessionWaitOutput;
3082
+ /** @deprecated Use `ExperimentalSessionWaitOperation`. Removed in the next minor. */
3083
+ export type SessionWaitOperation<E = never> = ExperimentalSessionWaitOperation<E>;
3084
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryListInput`. Removed in the next minor. */
3085
+ export type SessionInstructionsEntryListInput = ExperimentalSessionInstructionsEntryListInput;
3086
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryListOutput`. Removed in the next minor. */
3087
+ export type SessionInstructionsEntryListOutput = ExperimentalSessionInstructionsEntryListOutput;
3088
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryListOperation`. Removed in the next minor. */
3089
+ export type SessionInstructionsEntryListOperation<E = never> = ExperimentalSessionInstructionsEntryListOperation<E>;
3090
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryPutInput`. Removed in the next minor. */
3091
+ export type SessionInstructionsEntryPutInput = ExperimentalSessionInstructionsEntryPutInput;
3092
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryPutOutput`. Removed in the next minor. */
3093
+ export type SessionInstructionsEntryPutOutput = ExperimentalSessionInstructionsEntryPutOutput;
3094
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryPutOperation`. Removed in the next minor. */
3095
+ export type SessionInstructionsEntryPutOperation<E = never> = ExperimentalSessionInstructionsEntryPutOperation<E>;
3096
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryRemoveInput`. Removed in the next minor. */
3097
+ export type SessionInstructionsEntryRemoveInput = ExperimentalSessionInstructionsEntryRemoveInput;
3098
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryRemoveOutput`. Removed in the next minor. */
3099
+ export type SessionInstructionsEntryRemoveOutput = ExperimentalSessionInstructionsEntryRemoveOutput;
3100
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryRemoveOperation`. Removed in the next minor. */
3101
+ export type SessionInstructionsEntryRemoveOperation<E = never> = ExperimentalSessionInstructionsEntryRemoveOperation<E>;
3102
+ /** @deprecated Use `ExperimentalSessionLogInput`. Removed in the next minor. */
3103
+ export type SessionLogInput = ExperimentalSessionLogInput;
3104
+ /** @deprecated Use `ExperimentalSessionLogOutput`. Removed in the next minor. */
3105
+ export type SessionLogOutput = ExperimentalSessionLogOutput;
3106
+ /** @deprecated Use `ExperimentalSessionLogOperation`. Removed in the next minor. */
3107
+ export type SessionLogOperation<E = never> = ExperimentalSessionLogOperation<E>;
3108
+ /** @deprecated Use `ExperimentalGenerateTextInput`. Removed in the next minor. */
3109
+ export type GenerateTextInput = ExperimentalGenerateTextInput;
3110
+ /** @deprecated Use `ExperimentalGenerateTextOutput`. Removed in the next minor. */
3111
+ export type GenerateTextOutput = ExperimentalGenerateTextOutput;
3112
+ /** @deprecated Use `ExperimentalGenerateTextOperation`. Removed in the next minor. */
3113
+ export type GenerateTextOperation<E = never> = ExperimentalGenerateTextOperation<E>;
3114
+ /** @deprecated Use `ExperimentalGenerateImageInput`. Removed in the next minor. */
3115
+ export type GenerateImageInput = ExperimentalGenerateImageInput;
3116
+ /** @deprecated Use `ExperimentalGenerateImageOutput`. Removed in the next minor. */
3117
+ export type GenerateImageOutput = ExperimentalGenerateImageOutput;
3118
+ /** @deprecated Use `ExperimentalGenerateImageOperation`. Removed in the next minor. */
3119
+ export type GenerateImageOperation<E = never> = ExperimentalGenerateImageOperation<E>;
3120
+ /** @deprecated Use `ExperimentalGenerateDecisionsInput`. Removed in the next minor. */
3121
+ export type GenerateDecisionsInput = ExperimentalGenerateDecisionsInput;
3122
+ /** @deprecated Use `ExperimentalGenerateDecisionsOutput`. Removed in the next minor. */
3123
+ export type GenerateDecisionsOutput = ExperimentalGenerateDecisionsOutput;
3124
+ /** @deprecated Use `ExperimentalGenerateDecisionsOperation`. Removed in the next minor. */
3125
+ export type GenerateDecisionsOperation<E = never> = ExperimentalGenerateDecisionsOperation<E>;
3126
+ /** @deprecated Use `ExperimentalVoiceModelsOutput`. Removed in the next minor. */
3127
+ export type VoiceModelsOutput = ExperimentalVoiceModelsOutput;
3128
+ /** @deprecated Use `ExperimentalVoiceModelsOperation`. Removed in the next minor. */
3129
+ export type VoiceModelsOperation<E = never> = ExperimentalVoiceModelsOperation<E>;
3130
+ /** @deprecated Use `ExperimentalVoiceSessionInput`. Removed in the next minor. */
3131
+ export type VoiceSessionInput = ExperimentalVoiceSessionInput;
3132
+ /** @deprecated Use `ExperimentalVoiceSessionOutput`. Removed in the next minor. */
3133
+ export type VoiceSessionOutput = ExperimentalVoiceSessionOutput;
3134
+ /** @deprecated Use `ExperimentalVoiceSessionOperation`. Removed in the next minor. */
3135
+ export type VoiceSessionOperation<E = never> = ExperimentalVoiceSessionOperation<E>;
3136
+ /** @deprecated Use `ExperimentalIntegrationWellknownAddInput`. Removed in the next minor. */
3137
+ export type IntegrationWellknownAddInput = ExperimentalIntegrationWellknownAddInput;
3138
+ /** @deprecated Use `ExperimentalIntegrationWellknownAddOutput`. Removed in the next minor. */
3139
+ export type IntegrationWellknownAddOutput = ExperimentalIntegrationWellknownAddOutput;
3140
+ /** @deprecated Use `ExperimentalIntegrationWellknownAddOperation`. Removed in the next minor. */
3141
+ export type IntegrationWellknownAddOperation<E = never> = ExperimentalIntegrationWellknownAddOperation<E>;
3142
+ /** @deprecated Use `ExperimentalMcpAddInput`. Removed in the next minor. */
3143
+ export type McpAddInput = ExperimentalMcpAddInput;
3144
+ /** @deprecated Use `ExperimentalMcpAddOutput`. Removed in the next minor. */
3145
+ export type McpAddOutput = ExperimentalMcpAddOutput;
3146
+ /** @deprecated Use `ExperimentalMcpAddOperation`. Removed in the next minor. */
3147
+ export type McpAddOperation<E = never> = ExperimentalMcpAddOperation<E>;
3148
+ /** @deprecated Use `ExperimentalMcpRemoveInput`. Removed in the next minor. */
3149
+ export type McpRemoveInput = ExperimentalMcpRemoveInput;
3150
+ /** @deprecated Use `ExperimentalMcpRemoveOutput`. Removed in the next minor. */
3151
+ export type McpRemoveOutput = ExperimentalMcpRemoveOutput;
3152
+ /** @deprecated Use `ExperimentalMcpRemoveOperation`. Removed in the next minor. */
3153
+ export type McpRemoveOperation<E = never> = ExperimentalMcpRemoveOperation<E>;
3154
+ /** @deprecated Use `ExperimentalMcpConnectInput`. Removed in the next minor. */
3155
+ export type McpConnectInput = ExperimentalMcpConnectInput;
3156
+ /** @deprecated Use `ExperimentalMcpConnectOutput`. Removed in the next minor. */
3157
+ export type McpConnectOutput = ExperimentalMcpConnectOutput;
3158
+ /** @deprecated Use `ExperimentalMcpConnectOperation`. Removed in the next minor. */
3159
+ export type McpConnectOperation<E = never> = ExperimentalMcpConnectOperation<E>;
3160
+ /** @deprecated Use `ExperimentalMcpDisconnectInput`. Removed in the next minor. */
3161
+ export type McpDisconnectInput = ExperimentalMcpDisconnectInput;
3162
+ /** @deprecated Use `ExperimentalMcpDisconnectOutput`. Removed in the next minor. */
3163
+ export type McpDisconnectOutput = ExperimentalMcpDisconnectOutput;
3164
+ /** @deprecated Use `ExperimentalMcpDisconnectOperation`. Removed in the next minor. */
3165
+ export type McpDisconnectOperation<E = never> = ExperimentalMcpDisconnectOperation<E>;
3166
+ /** @deprecated Use `ExperimentalMcpClientTokenInput`. Removed in the next minor. */
3167
+ export type McpClientTokenInput = ExperimentalMcpClientTokenInput;
3168
+ /** @deprecated Use `ExperimentalMcpClientTokenOutput`. Removed in the next minor. */
3169
+ export type McpClientTokenOutput = ExperimentalMcpClientTokenOutput;
3170
+ /** @deprecated Use `ExperimentalMcpClientTokenOperation`. Removed in the next minor. */
3171
+ export type McpClientTokenOperation<E = never> = ExperimentalMcpClientTokenOperation<E>;
3172
+ /** @deprecated Use `ExperimentalFileWatchInput`. Removed in the next minor. */
3173
+ export type FileWatchInput = ExperimentalFileWatchInput;
3174
+ /** @deprecated Use `ExperimentalFileWatchOutput`. Removed in the next minor. */
3175
+ export type FileWatchOutput = ExperimentalFileWatchOutput;
3176
+ /** @deprecated Use `ExperimentalFileWatchOperation`. Removed in the next minor. */
3177
+ export type FileWatchOperation<E = never> = ExperimentalFileWatchOperation<E>;
3178
+ /** @deprecated Use `ExperimentalFileUnwatchInput`. Removed in the next minor. */
3179
+ export type FileUnwatchInput = ExperimentalFileUnwatchInput;
3180
+ /** @deprecated Use `ExperimentalFileUnwatchOutput`. Removed in the next minor. */
3181
+ export type FileUnwatchOutput = ExperimentalFileUnwatchOutput;
3182
+ /** @deprecated Use `ExperimentalFileUnwatchOperation`. Removed in the next minor. */
3183
+ export type FileUnwatchOperation<E = never> = ExperimentalFileUnwatchOperation<E>;
3184
+ /** @deprecated Use `ExperimentalMigrationV1StatusOutput`. Removed in the next minor. */
3185
+ export type MigrationV1StatusOutput = ExperimentalMigrationV1StatusOutput;
3186
+ /** @deprecated Use `ExperimentalMigrationV1StatusOperation`. Removed in the next minor. */
3187
+ export type MigrationV1StatusOperation<E = never> = ExperimentalMigrationV1StatusOperation<E>;
3188
+ /** @deprecated Use `ExperimentalUsageLimitsInput`. Removed in the next minor. */
3189
+ export type UsageLimitsInput = ExperimentalUsageLimitsInput;
3190
+ /** @deprecated Use `ExperimentalUsageLimitsOutput`. Removed in the next minor. */
3191
+ export type UsageLimitsOutput = ExperimentalUsageLimitsOutput;
3192
+ /** @deprecated Use `ExperimentalUsageLimitsOperation`. Removed in the next minor. */
3193
+ export type UsageLimitsOperation<E = never> = ExperimentalUsageLimitsOperation<E>;
3194
+ /** @deprecated Use `ExperimentalConfigUpdateInput`. Removed in the next minor. */
3195
+ export type ConfigUpdateInput = ExperimentalConfigUpdateInput;
3196
+ /** @deprecated Use `ExperimentalConfigUpdateOutput`. Removed in the next minor. */
3197
+ export type ConfigUpdateOutput = ExperimentalConfigUpdateOutput;
3198
+ /** @deprecated Use `ExperimentalConfigUpdateOperation`. Removed in the next minor. */
3199
+ export type ConfigUpdateOperation<E = never> = ExperimentalConfigUpdateOperation<E>;
3200
+ /** @deprecated Use `ExperimentalGenerateApi`. Removed in the next minor. */
3201
+ export type GenerateApi<E = never> = ExperimentalGenerateApi<E>;
3202
+ /** @deprecated Use `ExperimentalVoiceApi`. Removed in the next minor. */
3203
+ export type VoiceApi<E = never> = ExperimentalVoiceApi<E>;
3204
+ /** @deprecated Use `ExperimentalMigrationApi`. Removed in the next minor. */
3205
+ export type MigrationApi<E = never> = ExperimentalMigrationApi<E>;
3206
+ /** @deprecated Use `ExperimentalUsageApi`. Removed in the next minor. */
3207
+ export type UsageApi<E = never> = ExperimentalUsageApi<E>;
2953
3208
  export interface AppApi<E = never> {
2954
3209
  readonly server: ServerApi<E>;
2955
3210
  readonly location: LocationApi<E>;
2956
3211
  readonly agent: AgentApi<E>;
2957
3212
  readonly plugin: PluginApi<E>;
2958
3213
  readonly session: SessionApi<E>;
3214
+ readonly experimental: ExperimentalApi<E> & {
3215
+ readonly session: ExperimentalSessionApi<E>;
3216
+ readonly generate: ExperimentalGenerateApi<E>;
3217
+ readonly voice: ExperimentalVoiceApi<E>;
3218
+ readonly integration: ExperimentalIntegrationApi<E>;
3219
+ readonly mcp: ExperimentalMcpApi<E>;
3220
+ readonly file: ExperimentalFileApi<E>;
3221
+ readonly migration: ExperimentalMigrationApi<E>;
3222
+ readonly usage: ExperimentalUsageApi<E>;
3223
+ readonly config: ExperimentalConfigApi<E>;
3224
+ };
2959
3225
  readonly message: MessageApi<E>;
2960
3226
  readonly model: ModelApi<E>;
2961
- readonly generate: GenerateApi<E>;
2962
- readonly voice: VoiceApi<E>;
2963
3227
  readonly provider: ProviderApi<E>;
2964
3228
  readonly integration: IntegrationApi<E>;
2965
3229
  readonly mcp: McpApi<E>;
@@ -2973,14 +3237,40 @@ export interface AppApi<E = never> {
2973
3237
  readonly rpc: RpcApi<E>;
2974
3238
  readonly event: EventApi<E>;
2975
3239
  readonly pty: PtyApi<E>;
2976
- readonly experimental: ExperimentalApi<E>;
2977
3240
  readonly shell: ShellApi<E>;
2978
3241
  readonly reference: ReferenceApi<E>;
2979
3242
  readonly worktree: WorktreeApi<E>;
2980
3243
  readonly vcs: VcsApi<E>;
2981
3244
  readonly debug: DebugApi<E>;
2982
- readonly migration: MigrationApi<E>;
2983
3245
  readonly websearch: WebsearchApi<E>;
2984
- readonly usage: UsageApi<E>;
2985
3246
  readonly config: ConfigApi<E>;
3247
+ /** @deprecated Use `client.experimental.generate`. Removed in the next minor. */
3248
+ readonly generate: {
3249
+ /** @deprecated Use `client.experimental.generate.text`. Removed in the next minor. */
3250
+ readonly text: ExperimentalGenerateTextOperation<E>;
3251
+ /** @deprecated Use `client.experimental.generate.image`. Removed in the next minor. */
3252
+ readonly image: ExperimentalGenerateImageOperation<E>;
3253
+ /** @deprecated Use `client.experimental.generate.decisions`. Removed in the next minor. */
3254
+ readonly decisions: ExperimentalGenerateDecisionsOperation<E>;
3255
+ };
3256
+ /** @deprecated Use `client.experimental.voice`. Removed in the next minor. */
3257
+ readonly voice: {
3258
+ /** @deprecated Use `client.experimental.voice.models`. Removed in the next minor. */
3259
+ readonly models: ExperimentalVoiceModelsOperation<E>;
3260
+ /** @deprecated Use `client.experimental.voice.session`. Removed in the next minor. */
3261
+ readonly session: ExperimentalVoiceSessionOperation<E>;
3262
+ };
3263
+ /** @deprecated Use `client.experimental.migration`. Removed in the next minor. */
3264
+ readonly migration: {
3265
+ /** @deprecated Use `client.experimental.migration.v1`. Removed in the next minor. */
3266
+ readonly v1: {
3267
+ /** @deprecated Use `client.experimental.migration.v1.status`. Removed in the next minor. */
3268
+ readonly status: ExperimentalMigrationV1StatusOperation<E>;
3269
+ };
3270
+ };
3271
+ /** @deprecated Use `client.experimental.usage`. Removed in the next minor. */
3272
+ readonly usage: {
3273
+ /** @deprecated Use `client.experimental.usage.limits`. Removed in the next minor. */
3274
+ readonly limits: ExperimentalUsageLimitsOperation<E>;
3275
+ };
2986
3276
  }