@opencode/client 0.0.0-dev-192 → 0.0.0-dev-201

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-8jxa4f6s.js → shared-events-00979gww.js} +17 -17
  2. package/dist/chunks/{service-8we1dz3p.js → shared-events-0f3b9fnq.js} +5 -5
  3. package/dist/chunks/shared-events-60xe5cbf.js +4 -0
  4. package/dist/chunks/{service-y2etg5bs.js → shared-events-7f0py9js.js} +2 -2
  5. package/dist/chunks/{service-8ye1ye6f.js → shared-events-8ye1ye6f.js} +2 -2
  6. package/dist/chunks/shared-events-ek8qkqrq.js +30 -0
  7. package/dist/chunks/{service-gecjxyvt.js → shared-events-gecjxyvt.js} +1 -1
  8. package/dist/chunks/{service-m37zsx6v.js → shared-events-j4snqxar.js} +207 -126
  9. package/dist/chunks/{service-nwcpakzx.js → shared-events-js54wxgp.js} +2 -2
  10. package/dist/chunks/{service-cyxwqteg.js → shared-events-khkm0pf7.js} +6 -2
  11. package/dist/chunks/{service-15p82y03.js → shared-events-myz4ngx9.js} +5 -5
  12. package/dist/chunks/{service-ryy6kscr.js → shared-events-ryy6kscr.js} +1 -1
  13. package/dist/chunks/{service-0mrkn4v6.js → shared-events-sp3vqdnr.js} +446 -374
  14. package/dist/chunks/{service-h6f391n3.js → shared-events-yhgf3er7.js} +2 -2
  15. package/dist/chunks/{service-ab9bm97w.js → shared-events-z11mztjj.js} +1 -1
  16. package/dist/contract.d.ts +1 -1
  17. package/dist/contract.js +3 -1
  18. package/dist/effect/api/api.d.ts +589 -342
  19. package/dist/effect/client.d.ts +174 -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 +209 -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 +198 -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 +234 -138
  33. package/dist/promise/generated/client.js +4 -4
  34. package/dist/promise/generated/index.js +12 -12
  35. package/dist/promise/generated/types.d.ts +463 -363
  36. package/dist/promise/generated/types.js +5 -5
  37. package/dist/promise/index.js +16 -16
  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 +4 -4
  55. package/dist/chunks/service-nrbbv8kf.js +0 -30
  56. package/dist/chunks/service-vmytr4q8.js +0 -4
  57. /package/dist/chunks/{service-6mptkzbc.js → shared-events-6mptkzbc.js} +0 -0
  58. /package/dist/chunks/{service-6mq2wh8y.js → shared-events-6mq2wh8y.js} +0 -0
  59. /package/dist/chunks/{service-8s2anffy.js → shared-events-8s2anffy.js} +0 -0
  60. /package/dist/chunks/{service-9rqn6x4v.js → shared-events-9rqn6x4v.js} +0 -0
  61. /package/dist/chunks/{service-gne7h7mq.js → shared-events-gne7h7mq.js} +0 -0
  62. /package/dist/chunks/{service-m2eywc8w.js → shared-events-m2eywc8w.js} +0 -0
  63. /package/dist/chunks/{service-qav6mfdz.js → shared-events-qav6mfdz.js} +0 -0
  64. /package/dist/chunks/{service-sxt88q69.js → shared-events-sxt88q69.js} +0 -0
  65. /package/dist/chunks/{service-ve4aws36.js → shared-events-ve4aws36.js} +0 -0
  66. /package/dist/chunks/{service-vyas3vgt.js → shared-events-vyas3vgt.js} +0 -0
  67. /package/dist/chunks/{service-xgnj2w4v.js → shared-events-xgnj2w4v.js} +0 -0
  68. /package/dist/chunks/{service-ydhz1zrh.js → shared-events-ydhz1zrh.js} +0 -0
@@ -95,23 +95,8 @@ export type FileDiffInfo = {
95
95
  more?: true;
96
96
  };
97
97
  export type SessionsCursor = string;
98
- export type SessionStatsToolTotals = {
99
- calls: number;
100
- succeeded: number;
101
- failed: number;
102
- unfinished: number;
103
- };
104
- export type SessionStatsToolUsage = {
105
- name: string;
106
- calls: number;
107
- succeeded: number;
108
- failed: number;
109
- unfinished: number;
110
- durationP50?: number;
111
- };
112
- export type SessionStatsActivity = {
113
- date: string;
114
- steps: number;
98
+ export type SessionActive = {
99
+ type: "running";
115
100
  };
116
101
  export type PromptBase64 = string;
117
102
  export type PromptFileSource = {
@@ -127,6 +112,15 @@ export type PromptMention = {
127
112
  };
128
113
  export type SkillID = string;
129
114
  export type SkillName = string;
115
+ export type SessionInboxDelivery = "steer" | "queue";
116
+ export type SessionInboxSyntheticPayload = {
117
+ text: string;
118
+ description?: string;
119
+ metadata?: {
120
+ [x: string]: JsonValue;
121
+ };
122
+ };
123
+ export type SessionInboxCompactionPayload = {};
130
124
  export type ShellID = string;
131
125
  export type SessionMessageNative = {
132
126
  [x: string]: JsonValue;
@@ -163,24 +157,55 @@ export type SessionStructuredError = {
163
157
  };
164
158
  retryAfterMs?: number;
165
159
  };
166
- export type SessionActive = {
167
- type: "running";
168
- };
169
- export type SessionInboxDelivery = "steer" | "queue";
170
- export type SessionInboxSyntheticPayload = {
171
- text: string;
172
- description?: string;
173
- metadata?: {
174
- [x: string]: JsonValue;
175
- };
176
- };
177
- export type SessionInboxCompactionPayload = {};
178
- export type InstructionEntryKey = string;
179
160
  export type SessionGenerateResponse = {
180
161
  data: {
181
162
  text: string;
182
163
  };
183
164
  };
165
+ export type SessionInterruptResponse = {
166
+ interrupted: boolean;
167
+ };
168
+ export type FormID = string;
169
+ export type FormMetadata = {
170
+ [x: string]: JsonValue;
171
+ };
172
+ export type FormWhen = {
173
+ key: string;
174
+ op: "eq" | "neq";
175
+ value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
176
+ };
177
+ export type FormOption = {
178
+ value: string;
179
+ label: string;
180
+ description?: string;
181
+ };
182
+ export type FormExternalField = {
183
+ key: string;
184
+ type: "external";
185
+ url: string;
186
+ title?: string;
187
+ description?: string;
188
+ };
189
+ export type FormValue = string | number | "Infinity" | "-Infinity" | "NaN" | boolean | Array<string>;
190
+ export type SessionStatsToolTotals = {
191
+ calls: number;
192
+ succeeded: number;
193
+ failed: number;
194
+ unfinished: number;
195
+ };
196
+ export type SessionStatsToolUsage = {
197
+ name: string;
198
+ calls: number;
199
+ succeeded: number;
200
+ failed: number;
201
+ unfinished: number;
202
+ durationP50?: number;
203
+ };
204
+ export type SessionStatsActivity = {
205
+ date: string;
206
+ steps: number;
207
+ };
208
+ export type InstructionEntryKey = string;
184
209
  export type EventID = string;
185
210
  export type EventSeq = number;
186
211
  export type WorkspaceID = string;
@@ -211,31 +236,6 @@ export type SessionMessageToolStateRunning1 = {
211
236
  [x: string]: JsonValue;
212
237
  };
213
238
  };
214
- export type SessionInterruptResponse = {
215
- interrupted: boolean;
216
- };
217
- export type FormID = string;
218
- export type FormMetadata = {
219
- [x: string]: JsonValue;
220
- };
221
- export type FormWhen = {
222
- key: string;
223
- op: "eq" | "neq";
224
- value: string | number | "Infinity" | "-Infinity" | "NaN" | boolean;
225
- };
226
- export type FormOption = {
227
- value: string;
228
- label: string;
229
- description?: string;
230
- };
231
- export type FormExternalField = {
232
- key: string;
233
- type: "external";
234
- url: string;
235
- title?: string;
236
- description?: string;
237
- };
238
- export type FormValue = string | number | "Infinity" | "-Infinity" | "NaN" | boolean | Array<string>;
239
239
  export type ModelType = "chat" | "decision" | "image" | (string & {});
240
240
  export type ModelReasoningField = "reasoning" | "reasoning_content" | "reasoning_text" | (string & {});
241
241
  export type ModelMaxTokensField = "max_completion_tokens" | "max_tokens";
@@ -649,16 +649,6 @@ export type SessionRevert = {
649
649
  snapshot?: SnapshotID;
650
650
  files?: Array<FileDiffInfo>;
651
651
  };
652
- export type SessionStatsTools = {
653
- mode: "none";
654
- } | {
655
- mode: "summary";
656
- totals: SessionStatsToolTotals;
657
- } | {
658
- mode: "detail";
659
- totals: SessionStatsToolTotals;
660
- usage: Array<SessionStatsToolUsage>;
661
- };
662
652
  export type GenerateImageOutput2 = {
663
653
  type: "image";
664
654
  data: PromptBase64;
@@ -704,6 +694,26 @@ export type SkillInfo = {
704
694
  path: AbsolutePath;
705
695
  content: string;
706
696
  };
697
+ export type SessionInboxSynthetic = {
698
+ id: SessionMessageID;
699
+ sessionID: SessionID;
700
+ time: {
701
+ created: number;
702
+ };
703
+ type: "synthetic";
704
+ payload: SessionInboxSyntheticPayload;
705
+ delivery: SessionInboxDelivery;
706
+ };
707
+ export type SessionInboxCompaction = {
708
+ id: SessionMessageID;
709
+ sessionID: SessionID;
710
+ time: {
711
+ created: number;
712
+ };
713
+ type: "compaction";
714
+ payload: SessionInboxCompactionPayload;
715
+ delivery: SessionInboxDelivery;
716
+ };
707
717
  export type SessionMessageShell = {
708
718
  id: SessionMessageID;
709
719
  metadata?: {
@@ -808,59 +818,6 @@ export type SessionMessageIdle = {
808
818
  outcome: "succeeded" | "failed" | "interrupted";
809
819
  error?: SessionStructuredError;
810
820
  };
811
- export type SessionInboxSynthetic = {
812
- id: SessionMessageID;
813
- sessionID: SessionID;
814
- time: {
815
- created: number;
816
- };
817
- type: "synthetic";
818
- payload: SessionInboxSyntheticPayload;
819
- delivery: SessionInboxDelivery;
820
- };
821
- export type SessionInboxCompaction = {
822
- id: SessionMessageID;
823
- sessionID: SessionID;
824
- time: {
825
- created: number;
826
- };
827
- type: "compaction";
828
- payload: SessionInboxCompactionPayload;
829
- delivery: SessionInboxDelivery;
830
- };
831
- export type InstructionEntryInfo = {
832
- key: InstructionEntryKey;
833
- value: JsonValue;
834
- };
835
- export type InstructionEntrySnapshot = Array<{
836
- key: InstructionEntryKey;
837
- value: JsonValue;
838
- removed: boolean;
839
- }>;
840
- export type EventLogSynced = {
841
- type: "log.synced";
842
- aggregateID: string;
843
- seq?: EventSeq;
844
- };
845
- export type LocationRef = {
846
- directory: AbsolutePath;
847
- workspaceID?: WorkspaceID;
848
- };
849
- export type SessionMessageAssistantText1 = {
850
- type: "text";
851
- text: string;
852
- native?: SessionMessageNative1;
853
- };
854
- export type SessionMessageAssistantReasoning1 = {
855
- type: "reasoning";
856
- text: string;
857
- native?: SessionMessageNative1;
858
- time?: {
859
- created: number;
860
- completed?: number;
861
- };
862
- };
863
- export type ToolContent1 = ToolTextContent | ToolFileContent1;
864
821
  export type FormNumberField = {
865
822
  key: string;
866
823
  title?: string;
@@ -929,6 +886,49 @@ export type FormMultiselectField = {
929
886
  export type FormAnswer = {
930
887
  [x: string]: FormValue;
931
888
  };
889
+ export type SessionStatsTools = {
890
+ mode: "none";
891
+ } | {
892
+ mode: "summary";
893
+ totals: SessionStatsToolTotals;
894
+ } | {
895
+ mode: "detail";
896
+ totals: SessionStatsToolTotals;
897
+ usage: Array<SessionStatsToolUsage>;
898
+ };
899
+ export type InstructionEntryInfo = {
900
+ key: InstructionEntryKey;
901
+ value: JsonValue;
902
+ };
903
+ export type InstructionEntrySnapshot = Array<{
904
+ key: InstructionEntryKey;
905
+ value: JsonValue;
906
+ removed: boolean;
907
+ }>;
908
+ export type EventLogSynced = {
909
+ type: "log.synced";
910
+ aggregateID: string;
911
+ seq?: EventSeq;
912
+ };
913
+ export type LocationRef = {
914
+ directory: AbsolutePath;
915
+ workspaceID?: WorkspaceID;
916
+ };
917
+ export type SessionMessageAssistantText1 = {
918
+ type: "text";
919
+ text: string;
920
+ native?: SessionMessageNative1;
921
+ };
922
+ export type SessionMessageAssistantReasoning1 = {
923
+ type: "reasoning";
924
+ text: string;
925
+ native?: SessionMessageNative1;
926
+ time?: {
927
+ created: number;
928
+ completed?: number;
929
+ };
930
+ };
931
+ export type ToolContent1 = ToolTextContent | ToolFileContent1;
932
932
  export type ModelCompatibility = {
933
933
  reasoningField?: ModelReasoningField;
934
934
  requireReasoning?: boolean;
@@ -1255,12 +1255,6 @@ export type V2EventServerConnected = {
1255
1255
  };
1256
1256
  export type ReferenceSource = ReferenceLocalSource | ReferenceGitSource;
1257
1257
  export type WorktreeList = Array<WorktreeDirectory>;
1258
- export type SessionStatsModelUsage = {
1259
- model: ModelRef;
1260
- steps: number;
1261
- tokens: TokenUsageInfo;
1262
- cost: MoneyUSD;
1263
- };
1264
1258
  export type SessionMessageModelSelected = {
1265
1259
  id: SessionMessageID;
1266
1260
  metadata?: {
@@ -1290,6 +1284,12 @@ export type SessionMessageCompactionCompleted = {
1290
1284
  cost?: MoneyUSD;
1291
1285
  tokens?: TokenUsageInfo;
1292
1286
  };
1287
+ export type SessionStatsModelUsage = {
1288
+ model: ModelRef;
1289
+ steps: number;
1290
+ tokens: TokenUsageInfo;
1291
+ cost: MoneyUSD;
1292
+ };
1293
1293
  export type ProviderSettings = {
1294
1294
  timeout?: number | false;
1295
1295
  headerTimeout?: number | false;
@@ -1357,12 +1357,21 @@ export type GenerateImageResult = {
1357
1357
  tokens?: GenerateUsage;
1358
1358
  native?: GenerateNative;
1359
1359
  };
1360
- export type SessionMessageUser = {
1361
- id: SessionMessageID;
1360
+ export type SessionInboxUserPayload = {
1361
+ text: string;
1362
+ files?: Array<PromptFileAttachment>;
1363
+ agents?: Array<PromptAgentAttachment>;
1364
+ skills?: Array<PromptSkillAttachment>;
1362
1365
  metadata?: {
1363
1366
  [x: string]: JsonValue;
1364
1367
  };
1365
- time: {
1368
+ };
1369
+ export type SessionMessageUser = {
1370
+ id: SessionMessageID;
1371
+ metadata?: {
1372
+ [x: string]: JsonValue;
1373
+ };
1374
+ time: {
1366
1375
  created: number;
1367
1376
  };
1368
1377
  text: string;
@@ -1371,15 +1380,6 @@ export type SessionMessageUser = {
1371
1380
  skills?: Array<PromptSkillAttachment>;
1372
1381
  type: "user";
1373
1382
  };
1374
- export type SessionInboxUserPayload = {
1375
- text: string;
1376
- files?: Array<PromptFileAttachment>;
1377
- agents?: Array<PromptAgentAttachment>;
1378
- skills?: Array<PromptSkillAttachment>;
1379
- metadata?: {
1380
- [x: string]: JsonValue;
1381
- };
1382
- };
1383
1383
  export type SessionInboxUserPayload1 = {
1384
1384
  text: string;
1385
1385
  files?: Array<PromptFileAttachment>;
@@ -1410,6 +1410,16 @@ export type SessionMessageToolStateError = {
1410
1410
  [x: string]: JsonValue;
1411
1411
  };
1412
1412
  };
1413
+ export type FormField = FormStringField | FormNumberField | FormIntegerField | FormBooleanField | FormMultiselectField | FormExternalField;
1414
+ export type FormState = {
1415
+ status: "pending";
1416
+ } | {
1417
+ status: "answered";
1418
+ answer: FormAnswer;
1419
+ } | {
1420
+ status: "cancelled";
1421
+ message?: string;
1422
+ };
1413
1423
  export type SessionAgentSelected = {
1414
1424
  id: EventID;
1415
1425
  created: number;
@@ -2853,16 +2863,6 @@ export type SessionMessageToolStateError1 = {
2853
2863
  [x: string]: JsonValue;
2854
2864
  };
2855
2865
  };
2856
- export type FormField = FormStringField | FormNumberField | FormIntegerField | FormBooleanField | FormMultiselectField | FormExternalField;
2857
- export type FormState = {
2858
- status: "pending";
2859
- } | {
2860
- status: "answered";
2861
- answer: FormAnswer;
2862
- } | {
2863
- status: "cancelled";
2864
- message?: string;
2865
- };
2866
2866
  export type GenerateDecisionAnswer = GeneratePredicateAnswer | GenerateChoiceAnswer | GenerateScoreAnswer | GenerateErrorAnswer;
2867
2867
  export type VoiceModelsResponse = {
2868
2868
  data: {
@@ -2955,6 +2955,7 @@ export type ReferenceInfo = {
2955
2955
  hidden?: boolean;
2956
2956
  source: ReferenceSource;
2957
2957
  };
2958
+ export type SessionMessageCompaction = SessionMessageCompactionRunning | SessionMessageCompactionCompleted | SessionMessageCompactionFailed;
2958
2959
  export type SessionStatsInfo = {
2959
2960
  range: {
2960
2961
  from: number;
@@ -2972,7 +2973,6 @@ export type SessionStatsInfo = {
2972
2973
  activity: Array<SessionStatsActivity>;
2973
2974
  models: Array<SessionStatsModelUsage>;
2974
2975
  };
2975
- export type SessionMessageCompaction = SessionMessageCompactionRunning | SessionMessageCompactionCompleted | SessionMessageCompactionFailed;
2976
2976
  export type ProviderRequest = {
2977
2977
  settings: ProviderSettings;
2978
2978
  headers: {
@@ -3418,6 +3418,7 @@ export type SessionMessageAssistantTool = {
3418
3418
  completed?: number;
3419
3419
  };
3420
3420
  };
3421
+ export type FormFields = [FormField, ...Array<FormField>];
3421
3422
  export type SessionInboxItem = {
3422
3423
  type: "user";
3423
3424
  payload: SessionInboxUserPayload1;
@@ -3448,7 +3449,6 @@ export type SessionMessageAssistantTool1 = {
3448
3449
  completed?: number;
3449
3450
  };
3450
3451
  };
3451
- export type FormFields = [FormField, ...Array<FormField>];
3452
3452
  export type GenerateDecisionResult = {
3453
3453
  answers: Array<GenerateDecisionAnswer>;
3454
3454
  cost?: MoneyUSD;
@@ -3511,26 +3511,6 @@ export type SessionMessageAssistant = {
3511
3511
  error?: SessionStructuredError;
3512
3512
  retry?: SessionMessageAssistantRetry;
3513
3513
  };
3514
- export type SessionInboxEnqueued = {
3515
- id: EventID;
3516
- created: number;
3517
- metadata?: {
3518
- [x: string]: any;
3519
- };
3520
- type: "session.inbox.enqueued";
3521
- durable: {
3522
- aggregateID: string;
3523
- seq: EventSeq;
3524
- version: 1;
3525
- };
3526
- location?: LocationRef;
3527
- data: {
3528
- sessionID: SessionID;
3529
- inboxID: SessionMessageID;
3530
- item: SessionInboxItem;
3531
- };
3532
- };
3533
- export type SessionMessageAssistantContentEncoded = SessionMessageAssistantText1 | SessionMessageAssistantReasoning1 | SessionMessageAssistantTool1;
3534
3514
  export type FormInfo = {
3535
3515
  id: FormID;
3536
3516
  sessionID: string;
@@ -3563,6 +3543,26 @@ export type IntegrationExternalMethod = {
3563
3543
  label: string;
3564
3544
  form?: FormFields;
3565
3545
  };
3546
+ export type SessionInboxEnqueued = {
3547
+ id: EventID;
3548
+ created: number;
3549
+ metadata?: {
3550
+ [x: string]: any;
3551
+ };
3552
+ type: "session.inbox.enqueued";
3553
+ durable: {
3554
+ aggregateID: string;
3555
+ seq: EventSeq;
3556
+ version: 1;
3557
+ };
3558
+ location?: LocationRef;
3559
+ data: {
3560
+ sessionID: SessionID;
3561
+ inboxID: SessionMessageID;
3562
+ item: SessionInboxItem;
3563
+ };
3564
+ };
3565
+ export type SessionMessageAssistantContentEncoded = SessionMessageAssistantText1 | SessionMessageAssistantReasoning1 | SessionMessageAssistantTool1;
3566
3566
  export type GenerateDecisionsResponse = {
3567
3567
  data: GenerateDecisionResult;
3568
3568
  };
@@ -3574,6 +3574,7 @@ export type FormInfo1 = {
3574
3574
  fields: FormFields2;
3575
3575
  };
3576
3576
  export type SessionMessageInfo = SessionMessageAgentSelected | SessionMessageModelSelected | SessionMessageLocationSwitched | SessionMessageUser | SessionMessageSynthetic | SessionMessageSystem | SessionMessageSkill | SessionMessageShell | SessionMessageAssistant | SessionMessageCompaction | SessionMessageIdle;
3577
+ export type IntegrationMethod = IntegrationOAuthMethod | IntegrationCommandMethod | IntegrationKeyMethod | IntegrationExternalMethod | IntegrationEnvMethod;
3577
3578
  export type SessionMessageContentUpdated = {
3578
3579
  id: EventID;
3579
3580
  created: number;
@@ -3593,7 +3594,6 @@ export type SessionMessageContentUpdated = {
3593
3594
  content: Array<SessionMessageAssistantContentEncoded>;
3594
3595
  };
3595
3596
  };
3596
- export type IntegrationMethod = IntegrationOAuthMethod | IntegrationCommandMethod | IntegrationKeyMethod | IntegrationExternalMethod | IntegrationEnvMethod;
3597
3597
  export type FormCreated = {
3598
3598
  id: EventID;
3599
3599
  created: number;
@@ -3617,7 +3617,6 @@ export type SessionMessagesResponse = {
3617
3617
  next?: string | null;
3618
3618
  };
3619
3619
  };
3620
- export type SessionEventDurable = SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionMetadataUpdated | SessionPermissions | SessionViewed | SessionArchived | SessionUnarchived | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepStreamed | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextEnded | SessionReasoningStarted | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputEnded | SessionToolCalled | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionUsageRecorded | SessionMessageContentUpdated;
3621
3620
  export type IntegrationInfo = {
3622
3621
  id: IntegrationID;
3623
3622
  name: string;
@@ -3627,6 +3626,7 @@ export type IntegrationInfo = {
3627
3626
  methods: Array<IntegrationMethod>;
3628
3627
  connections: Array<ConnectionInfo>;
3629
3628
  };
3629
+ export type SessionEventDurable = SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionMetadataUpdated | SessionPermissions | SessionViewed | SessionArchived | SessionUnarchived | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepStreamed | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextEnded | SessionReasoningStarted | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputEnded | SessionToolCalled | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | SessionUsageRecorded | SessionMessageContentUpdated;
3630
3630
  export type V2Event = LocationShutdown | ModelsDevRefreshed | CredentialUpdated | CredentialSwitched | IntegrationUpdated | ProviderUpdated | ModelUpdated | AgentUpdated | SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionMetadataUpdated | SessionPermissions | SessionViewed | SessionArchived | SessionUnarchived | SessionUsageUpdated | SessionDeleted | SessionForked | SessionInboxDelivered | SessionInboxEnqueued | SessionInboxCancelled | SessionInboxDeliveryChanged | SessionExecutionStarted | SessionExecutionSucceeded | SessionExecutionFailed | SessionExecutionInterrupted | SessionInstructionsUpdated | SessionSynthetic | SessionSkillActivated | SessionShellStarted | SessionShellEnded | SessionStepStarted | SessionStepStreamed | SessionStepEnded | SessionStepFailed | SessionTextStarted | SessionTextDelta | SessionTextEnded | SessionReasoningStarted | SessionReasoningDelta | SessionReasoningEnded | SessionToolInputStarted | SessionToolInputDelta | SessionToolInputEnded | SessionToolCalled | SessionToolProgress | SessionToolSuccess | SessionToolFailed | SessionRetryScheduled | SessionCompactionStarted | SessionCompactionDelta | SessionCompactionEnded | SessionCompactionFailed | SessionRevertStaged | SessionRevertCleared | SessionRevertCommitted | FilesystemChanged | ReferenceUpdated | PermissionAsked | PermissionReplied | PluginUpdated | ProjectUpdated | WorktreeUpdated | WorktreeResolved | CommandUpdated | ConfigUpdated | SkillUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | PersistentPtyAdded | PersistentPtyRemoved | ShellCreated | ShellExited | ShellDeleted | FormCreated | FormReplied | FormCancelled | WebsearchUpdated | SessionStatusUpdated | SessionIdle | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | InstallationUpdated | InstallationUpdateAvailable | VcsBranchUpdated | McpStatusChanged | McpResourcesChanged | V2EventRpc | V2EventServerConnected;
3631
3631
  export type SessionLogItem = SessionEventDurable | EventLogSynced;
3632
3632
  export type InvalidRequestError = {
@@ -3678,18 +3678,6 @@ export type SessionNotFoundError = {
3678
3678
  readonly message: string;
3679
3679
  };
3680
3680
  export declare const isSessionNotFoundError: (value: unknown) => value is SessionNotFoundError;
3681
- export type ConflictError = {
3682
- readonly _tag: "ConflictError";
3683
- readonly message: string;
3684
- readonly resource?: string | undefined;
3685
- };
3686
- export declare const isConflictError: (value: unknown) => value is ConflictError;
3687
- export type UnknownError = {
3688
- readonly _tag: "UnknownError";
3689
- readonly message: string;
3690
- readonly ref?: string | undefined;
3691
- };
3692
- export declare const isUnknownError: (value: unknown) => value is UnknownError;
3693
3681
  export type MessageNotFoundError = {
3694
3682
  readonly _tag: "MessageNotFoundError";
3695
3683
  readonly sessionID: string;
@@ -3697,6 +3685,12 @@ export type MessageNotFoundError = {
3697
3685
  readonly message: string;
3698
3686
  };
3699
3687
  export declare const isMessageNotFoundError: (value: unknown) => value is MessageNotFoundError;
3688
+ export type ConflictError = {
3689
+ readonly _tag: "ConflictError";
3690
+ readonly message: string;
3691
+ readonly resource?: string | undefined;
3692
+ };
3693
+ export declare const isConflictError: (value: unknown) => value is ConflictError;
3700
3694
  export type CommandNotFoundError = {
3701
3695
  readonly _tag: "CommandNotFoundError";
3702
3696
  readonly command: string;
@@ -3709,25 +3703,18 @@ export type CommandExecutionError = {
3709
3703
  readonly message: string;
3710
3704
  };
3711
3705
  export declare const isCommandExecutionError: (value: unknown) => value is CommandExecutionError;
3712
- export type SkillNotFoundError = {
3713
- readonly _tag: "SkillNotFoundError";
3714
- readonly skill: string;
3715
- readonly message: string;
3716
- };
3717
- export declare const isSkillNotFoundError: (value: unknown) => value is SkillNotFoundError;
3718
3706
  export type SessionBusyError = {
3719
3707
  readonly _tag: "SessionBusyError";
3720
3708
  readonly sessionID: string;
3721
3709
  readonly message: string;
3722
3710
  };
3723
3711
  export declare const isSessionBusyError: (value: unknown) => value is SessionBusyError;
3724
- export type InstructionEntryValueTooLargeError = {
3725
- readonly _tag: "InstructionEntryValueTooLargeError";
3726
- readonly actualBytes: number;
3727
- readonly maxBytes: number;
3712
+ export type UnknownError = {
3713
+ readonly _tag: "UnknownError";
3728
3714
  readonly message: string;
3715
+ readonly ref?: string | undefined;
3729
3716
  };
3730
- export declare const isInstructionEntryValueTooLargeError: (value: unknown) => value is InstructionEntryValueTooLargeError;
3717
+ export declare const isUnknownError: (value: unknown) => value is UnknownError;
3731
3718
  export type FormNotFoundError = {
3732
3719
  readonly _tag: "FormNotFoundError";
3733
3720
  readonly id: string;
@@ -3746,6 +3733,19 @@ export type FormAlreadySettledError = {
3746
3733
  readonly message: string;
3747
3734
  };
3748
3735
  export declare const isFormAlreadySettledError: (value: unknown) => value is FormAlreadySettledError;
3736
+ export type SkillNotFoundError = {
3737
+ readonly _tag: "SkillNotFoundError";
3738
+ readonly skill: string;
3739
+ readonly message: string;
3740
+ };
3741
+ export declare const isSkillNotFoundError: (value: unknown) => value is SkillNotFoundError;
3742
+ export type InstructionEntryValueTooLargeError = {
3743
+ readonly _tag: "InstructionEntryValueTooLargeError";
3744
+ readonly actualBytes: number;
3745
+ readonly maxBytes: number;
3746
+ readonly message: string;
3747
+ };
3748
+ export declare const isInstructionEntryValueTooLargeError: (value: unknown) => value is InstructionEntryValueTooLargeError;
3749
3749
  export type ProviderNotFoundError = {
3750
3750
  readonly _tag: "ProviderNotFoundError";
3751
3751
  readonly providerID: string;
@@ -3952,16 +3952,6 @@ export type SessionListInput = {
3952
3952
  readonly cursor?: string | undefined;
3953
3953
  };
3954
3954
  export type SessionListOutput = SessionsResponse;
3955
- export type SessionStatsInput = {
3956
- readonly from?: number | undefined;
3957
- readonly to?: number | undefined;
3958
- readonly project?: string | undefined;
3959
- readonly timezone?: string | undefined;
3960
- readonly tools?: "none" | "summary" | "detail" | undefined;
3961
- };
3962
- export type SessionStatsOutput = {
3963
- data: SessionStatsInfo;
3964
- }["data"];
3965
3955
  export type SessionCreateInput = {
3966
3956
  readonly id?: string | null | undefined;
3967
3957
  readonly parentID?: string | null | undefined;
@@ -3987,87 +3977,6 @@ export type SessionCreateInput = {
3987
3977
  export type SessionCreateOutput = {
3988
3978
  data: SessionInfo;
3989
3979
  }["data"];
3990
- export type SessionImportInput = {
3991
- readonly info: {
3992
- readonly id: string;
3993
- readonly parentID?: string;
3994
- readonly fork?: {
3995
- readonly sessionID: string;
3996
- readonly boundary: {
3997
- readonly type: "before";
3998
- readonly messageID: string;
3999
- } | {
4000
- readonly type: "through";
4001
- readonly messageID: string;
4002
- };
4003
- };
4004
- readonly projectID: string;
4005
- readonly agent?: string;
4006
- readonly model?: {
4007
- readonly id: string;
4008
- readonly providerID: string;
4009
- readonly variant?: string;
4010
- };
4011
- readonly cost: number;
4012
- readonly tokens: {
4013
- readonly input: number;
4014
- readonly output: number;
4015
- readonly reasoning: number;
4016
- readonly cache: {
4017
- readonly read: number;
4018
- readonly write: number;
4019
- };
4020
- };
4021
- readonly outcome?: "succeeded" | "failed" | "interrupted";
4022
- readonly time: {
4023
- readonly created: number;
4024
- readonly updated: number;
4025
- readonly idle?: number;
4026
- readonly viewed?: number;
4027
- readonly archived?: number;
4028
- };
4029
- readonly title?: string;
4030
- readonly subpath?: string;
4031
- readonly metadata?: {
4032
- readonly [x: string]: JsonValue;
4033
- };
4034
- readonly permissions?: ReadonlyArray<{
4035
- readonly action: string;
4036
- readonly resource: string;
4037
- readonly effect: "allow" | "deny" | "ask";
4038
- }>;
4039
- readonly revert?: {
4040
- readonly messageID: string;
4041
- readonly partID?: string;
4042
- readonly snapshot?: string;
4043
- readonly files?: ReadonlyArray<{
4044
- readonly file: string;
4045
- readonly patch: string;
4046
- readonly additions: number;
4047
- readonly deletions: number;
4048
- readonly status: "added" | "deleted" | "modified";
4049
- readonly more?: true;
4050
- }>;
4051
- };
4052
- readonly location: {
4053
- readonly directory: string;
4054
- };
4055
- };
4056
- readonly messages: ReadonlyArray<JsonValue>;
4057
- readonly location?: {
4058
- readonly directory: string;
4059
- } | null | undefined;
4060
- };
4061
- export type SessionImportOutput = {
4062
- data: SessionInfo;
4063
- }["data"];
4064
- export type SessionExportInput = {
4065
- readonly sessionID: string;
4066
- readonly sanitize?: boolean | undefined;
4067
- };
4068
- export type SessionExportOutput = {
4069
- data: SessionTransferData;
4070
- }["data"];
4071
3980
  export type SessionActiveOutput = {
4072
3981
  data: {
4073
3982
  [x: SessionID]: SessionActive;
@@ -4196,12 +4105,6 @@ export type SessionCommandInput = {
4196
4105
  readonly delivery?: ("steer" | "queue") | null | undefined;
4197
4106
  };
4198
4107
  export type SessionCommandOutput = void;
4199
- export type SessionSkillInput = {
4200
- readonly sessionID: string;
4201
- readonly id: string;
4202
- readonly resume?: boolean | undefined;
4203
- };
4204
- export type SessionSkillOutput = void;
4205
4108
  export type SessionSyntheticInput = {
4206
4109
  readonly sessionID: string;
4207
4110
  readonly id?: string | null | undefined;
@@ -4230,10 +4133,6 @@ export type SessionCompactInput = {
4230
4133
  export type SessionCompactOutput = {
4231
4134
  data: SessionInboxCompaction;
4232
4135
  }["data"];
4233
- export type SessionWaitInput = {
4234
- readonly sessionID: string;
4235
- };
4236
- export type SessionWaitOutput = void;
4237
4136
  export type SessionRevertStageInput = {
4238
4137
  readonly sessionID: string;
4239
4138
  readonly messageID: string;
@@ -4282,34 +4181,11 @@ export type SessionInboxUpdateInput = {
4282
4181
  readonly delivery: "steer" | "queue";
4283
4182
  };
4284
4183
  export type SessionInboxUpdateOutput = void;
4285
- export type SessionInstructionsEntryListInput = {
4286
- readonly sessionID: string;
4287
- };
4288
- export type SessionInstructionsEntryListOutput = {
4289
- data: Array<InstructionEntryInfo>;
4290
- }["data"];
4291
- export type SessionInstructionsEntryPutInput = {
4292
- readonly sessionID: string;
4293
- readonly key: string;
4294
- readonly value: JsonValue;
4295
- };
4296
- export type SessionInstructionsEntryPutOutput = void;
4297
- export type SessionInstructionsEntryRemoveInput = {
4298
- readonly sessionID: string;
4299
- readonly key: string;
4300
- };
4301
- export type SessionInstructionsEntryRemoveOutput = void;
4302
4184
  export type SessionGenerateInput = {
4303
4185
  readonly sessionID: string;
4304
4186
  readonly prompt: string;
4305
4187
  };
4306
4188
  export type SessionGenerateOutput = SessionGenerateResponse["data"];
4307
- export type SessionLogInput = {
4308
- readonly sessionID: string;
4309
- readonly after?: number | undefined;
4310
- readonly follow?: boolean | undefined;
4311
- };
4312
- export type SessionLogOutput = SessionLogItem;
4313
4189
  export type SessionInterruptInput = {
4314
4190
  readonly sessionID: string;
4315
4191
  readonly resume?: boolean | undefined;
@@ -4568,6 +4444,130 @@ export type SessionViewInput = {
4568
4444
  readonly idle: number;
4569
4445
  };
4570
4446
  export type SessionViewOutput = void;
4447
+ export type ExperimentalSessionStatsInput = {
4448
+ readonly from?: number | undefined;
4449
+ readonly to?: number | undefined;
4450
+ readonly project?: string | undefined;
4451
+ readonly timezone?: string | undefined;
4452
+ readonly tools?: "none" | "summary" | "detail" | undefined;
4453
+ };
4454
+ export type ExperimentalSessionStatsOutput = {
4455
+ data: SessionStatsInfo;
4456
+ }["data"];
4457
+ export type ExperimentalSessionImportInput = {
4458
+ readonly info: {
4459
+ readonly id: string;
4460
+ readonly parentID?: string;
4461
+ readonly fork?: {
4462
+ readonly sessionID: string;
4463
+ readonly boundary: {
4464
+ readonly type: "before";
4465
+ readonly messageID: string;
4466
+ } | {
4467
+ readonly type: "through";
4468
+ readonly messageID: string;
4469
+ };
4470
+ };
4471
+ readonly projectID: string;
4472
+ readonly agent?: string;
4473
+ readonly model?: {
4474
+ readonly id: string;
4475
+ readonly providerID: string;
4476
+ readonly variant?: string;
4477
+ };
4478
+ readonly cost: number;
4479
+ readonly tokens: {
4480
+ readonly input: number;
4481
+ readonly output: number;
4482
+ readonly reasoning: number;
4483
+ readonly cache: {
4484
+ readonly read: number;
4485
+ readonly write: number;
4486
+ };
4487
+ };
4488
+ readonly outcome?: "succeeded" | "failed" | "interrupted";
4489
+ readonly time: {
4490
+ readonly created: number;
4491
+ readonly updated: number;
4492
+ readonly idle?: number;
4493
+ readonly viewed?: number;
4494
+ readonly archived?: number;
4495
+ };
4496
+ readonly title?: string;
4497
+ readonly subpath?: string;
4498
+ readonly metadata?: {
4499
+ readonly [x: string]: JsonValue;
4500
+ };
4501
+ readonly permissions?: ReadonlyArray<{
4502
+ readonly action: string;
4503
+ readonly resource: string;
4504
+ readonly effect: "allow" | "deny" | "ask";
4505
+ }>;
4506
+ readonly revert?: {
4507
+ readonly messageID: string;
4508
+ readonly partID?: string;
4509
+ readonly snapshot?: string;
4510
+ readonly files?: ReadonlyArray<{
4511
+ readonly file: string;
4512
+ readonly patch: string;
4513
+ readonly additions: number;
4514
+ readonly deletions: number;
4515
+ readonly status: "added" | "deleted" | "modified";
4516
+ readonly more?: true;
4517
+ }>;
4518
+ };
4519
+ readonly location: {
4520
+ readonly directory: string;
4521
+ };
4522
+ };
4523
+ readonly messages: ReadonlyArray<JsonValue>;
4524
+ readonly location?: {
4525
+ readonly directory: string;
4526
+ } | null | undefined;
4527
+ };
4528
+ export type ExperimentalSessionImportOutput = {
4529
+ data: SessionInfo;
4530
+ }["data"];
4531
+ export type ExperimentalSessionExportInput = {
4532
+ readonly sessionID: string;
4533
+ readonly sanitize?: boolean | undefined;
4534
+ };
4535
+ export type ExperimentalSessionExportOutput = {
4536
+ data: SessionTransferData;
4537
+ }["data"];
4538
+ export type ExperimentalSessionSkillInput = {
4539
+ readonly sessionID: string;
4540
+ readonly id: string;
4541
+ readonly resume?: boolean | undefined;
4542
+ };
4543
+ export type ExperimentalSessionSkillOutput = void;
4544
+ export type ExperimentalSessionWaitInput = {
4545
+ readonly sessionID: string;
4546
+ };
4547
+ export type ExperimentalSessionWaitOutput = void;
4548
+ export type ExperimentalSessionInstructionsEntryListInput = {
4549
+ readonly sessionID: string;
4550
+ };
4551
+ export type ExperimentalSessionInstructionsEntryListOutput = {
4552
+ data: Array<InstructionEntryInfo>;
4553
+ }["data"];
4554
+ export type ExperimentalSessionInstructionsEntryPutInput = {
4555
+ readonly sessionID: string;
4556
+ readonly key: string;
4557
+ readonly value: JsonValue;
4558
+ };
4559
+ export type ExperimentalSessionInstructionsEntryPutOutput = void;
4560
+ export type ExperimentalSessionInstructionsEntryRemoveInput = {
4561
+ readonly sessionID: string;
4562
+ readonly key: string;
4563
+ };
4564
+ export type ExperimentalSessionInstructionsEntryRemoveOutput = void;
4565
+ export type ExperimentalSessionLogInput = {
4566
+ readonly sessionID: string;
4567
+ readonly after?: number | undefined;
4568
+ readonly follow?: boolean | undefined;
4569
+ };
4570
+ export type ExperimentalSessionLogOutput = SessionLogItem;
4571
4571
  export type MessageListInput = {
4572
4572
  readonly sessionID: string;
4573
4573
  readonly limit?: number | undefined;
@@ -4595,7 +4595,7 @@ export type ModelDefaultOutput = {
4595
4595
  location: LocationPublicRef;
4596
4596
  data: ModelInfo | null;
4597
4597
  };
4598
- export type GenerateTextInput = {
4598
+ export type ExperimentalGenerateTextInput = {
4599
4599
  readonly prompt: string;
4600
4600
  readonly model?: {
4601
4601
  readonly id: string;
@@ -4603,8 +4603,8 @@ export type GenerateTextInput = {
4603
4603
  readonly variant?: string;
4604
4604
  } | null | undefined;
4605
4605
  };
4606
- export type GenerateTextOutput = GenerateTextResponse["data"];
4607
- export type GenerateImageInput = {
4606
+ export type ExperimentalGenerateTextOutput = GenerateTextResponse["data"];
4607
+ export type ExperimentalGenerateImageInput = {
4608
4608
  readonly model: {
4609
4609
  readonly id: string;
4610
4610
  readonly providerID: string;
@@ -4620,8 +4620,8 @@ export type GenerateImageInput = {
4620
4620
  readonly aspect?: `${number}${":"}${number}` | undefined;
4621
4621
  readonly resolution?: ("1K" | "2K" | "4K" | (string & {})) | undefined;
4622
4622
  };
4623
- export type GenerateImageOutput = GenerateImageResponse["data"];
4624
- export type GenerateDecisionsInput = {
4623
+ export type ExperimentalGenerateImageOutput = GenerateImageResponse["data"];
4624
+ export type ExperimentalGenerateDecisionsInput = {
4625
4625
  readonly model: {
4626
4626
  readonly id: string;
4627
4627
  readonly providerID: string;
@@ -4661,9 +4661,9 @@ export type GenerateDecisionsInput = {
4661
4661
  }>;
4662
4662
  }>;
4663
4663
  };
4664
- export type GenerateDecisionsOutput = GenerateDecisionsResponse["data"];
4665
- export type VoiceModelsOutput = VoiceModelsResponse["data"];
4666
- export type VoiceSessionInput = {
4664
+ export type ExperimentalGenerateDecisionsOutput = GenerateDecisionsResponse["data"];
4665
+ export type ExperimentalVoiceModelsOutput = VoiceModelsResponse["data"];
4666
+ export type ExperimentalVoiceSessionInput = {
4667
4667
  readonly model: string;
4668
4668
  readonly session?: {
4669
4669
  readonly [x: string]: unknown;
@@ -4676,7 +4676,7 @@ export type VoiceSessionInput = {
4676
4676
  readonly type: "websocket";
4677
4677
  };
4678
4678
  };
4679
- export type VoiceSessionOutput = VoiceSessionResponse["data"];
4679
+ export type ExperimentalVoiceSessionOutput = VoiceSessionResponse["data"];
4680
4680
  export type ProviderListInput = {
4681
4681
  readonly location?: {
4682
4682
  readonly directory?: string | undefined;
@@ -4715,13 +4715,6 @@ export type IntegrationGetOutput = {
4715
4715
  location: LocationPublicRef;
4716
4716
  data: IntegrationInfo;
4717
4717
  };
4718
- export type IntegrationWellknownAddInput = {
4719
- readonly location?: {
4720
- readonly directory?: string | undefined;
4721
- } | undefined;
4722
- readonly url: string;
4723
- };
4724
- export type IntegrationWellknownAddOutput = void;
4725
4718
  export type IntegrationConnectKeyInput = {
4726
4719
  readonly integrationID: string;
4727
4720
  readonly location?: {
@@ -4820,6 +4813,13 @@ export type IntegrationCommandCancelInput = {
4820
4813
  } | undefined;
4821
4814
  };
4822
4815
  export type IntegrationCommandCancelOutput = void;
4816
+ export type ExperimentalIntegrationWellknownAddInput = {
4817
+ readonly location?: {
4818
+ readonly directory?: string | undefined;
4819
+ } | undefined;
4820
+ readonly url: string;
4821
+ };
4822
+ export type ExperimentalIntegrationWellknownAddOutput = void;
4823
4823
  export type McpListInput = {
4824
4824
  readonly location?: {
4825
4825
  readonly directory?: string | undefined;
@@ -4829,7 +4829,16 @@ export type McpListOutput = {
4829
4829
  location: LocationPublicRef;
4830
4830
  data: Array<McpServer>;
4831
4831
  };
4832
- export type McpAddInput = {
4832
+ export type McpResourceCatalogInput = {
4833
+ readonly location?: {
4834
+ readonly directory?: string | undefined;
4835
+ } | undefined;
4836
+ };
4837
+ export type McpResourceCatalogOutput = {
4838
+ location: LocationPublicRef;
4839
+ data: McpResourceCatalog;
4840
+ };
4841
+ export type ExperimentalMcpAddInput = {
4833
4842
  readonly server: string;
4834
4843
  readonly location?: {
4835
4844
  readonly directory?: string | undefined;
@@ -4873,45 +4882,36 @@ export type McpAddInput = {
4873
4882
  readonly protocol?: "legacy" | "auto" | "2026-07-28";
4874
4883
  };
4875
4884
  };
4876
- export type McpAddOutput = void;
4877
- export type McpRemoveInput = {
4885
+ export type ExperimentalMcpAddOutput = void;
4886
+ export type ExperimentalMcpRemoveInput = {
4878
4887
  readonly server: string;
4879
4888
  readonly location?: {
4880
4889
  readonly directory?: string | undefined;
4881
4890
  } | undefined;
4882
4891
  };
4883
- export type McpRemoveOutput = void;
4884
- export type McpConnectInput = {
4892
+ export type ExperimentalMcpRemoveOutput = void;
4893
+ export type ExperimentalMcpConnectInput = {
4885
4894
  readonly server: string;
4886
4895
  readonly location?: {
4887
4896
  readonly directory?: string | undefined;
4888
4897
  } | undefined;
4889
4898
  };
4890
- export type McpConnectOutput = void;
4891
- export type McpDisconnectInput = {
4899
+ export type ExperimentalMcpConnectOutput = void;
4900
+ export type ExperimentalMcpDisconnectInput = {
4892
4901
  readonly server: string;
4893
4902
  readonly location?: {
4894
4903
  readonly directory?: string | undefined;
4895
4904
  } | undefined;
4896
4905
  };
4897
- export type McpDisconnectOutput = void;
4898
- export type McpResourceCatalogInput = {
4899
- readonly location?: {
4900
- readonly directory?: string | undefined;
4901
- } | undefined;
4902
- };
4903
- export type McpResourceCatalogOutput = {
4904
- location: LocationPublicRef;
4905
- data: McpResourceCatalog;
4906
- };
4907
- export type McpClientTokenInput = {
4906
+ export type ExperimentalMcpDisconnectOutput = void;
4907
+ export type ExperimentalMcpClientTokenInput = {
4908
4908
  readonly location?: {
4909
4909
  readonly directory?: string | undefined;
4910
4910
  } | undefined;
4911
4911
  readonly name: string;
4912
4912
  readonly "x-opencode-ticket"?: string | undefined;
4913
4913
  };
4914
- export type McpClientTokenOutput = {
4914
+ export type ExperimentalMcpClientTokenOutput = {
4915
4915
  location: LocationPublicRef;
4916
4916
  data: PtyTicketConnectToken;
4917
4917
  };
@@ -5087,31 +5087,31 @@ export type FileFindOutput = {
5087
5087
  location: LocationPublicRef;
5088
5088
  data: Array<FileSystemEntry>;
5089
5089
  };
5090
- export type FileWriteInput = {
5090
+ export type ExperimentalFileWriteInput = {
5091
5091
  readonly location?: {
5092
5092
  readonly directory?: string | undefined;
5093
5093
  } | undefined;
5094
5094
  readonly path: string;
5095
5095
  readonly payload: globalThis.Uint8Array;
5096
5096
  };
5097
- export type FileWriteOutput = {
5097
+ export type ExperimentalFileWriteOutput = {
5098
5098
  location: LocationPublicRef;
5099
5099
  data: FileSystemWrite;
5100
5100
  };
5101
- export type FileWatchInput = {
5101
+ export type ExperimentalFileWatchInput = {
5102
5102
  readonly location?: {
5103
5103
  readonly directory?: string | undefined;
5104
5104
  } | undefined;
5105
5105
  readonly path: string;
5106
5106
  };
5107
- export type FileWatchOutput = void;
5108
- export type FileUnwatchInput = {
5107
+ export type ExperimentalFileWatchOutput = void;
5108
+ export type ExperimentalFileUnwatchInput = {
5109
5109
  readonly location?: {
5110
5110
  readonly directory?: string | undefined;
5111
5111
  } | undefined;
5112
5112
  readonly path: string;
5113
5113
  };
5114
- export type FileUnwatchOutput = void;
5114
+ export type ExperimentalFileUnwatchOutput = void;
5115
5115
  export type CommandListInput = {
5116
5116
  readonly location?: {
5117
5117
  readonly directory?: string | undefined;
@@ -5451,7 +5451,7 @@ export type DebugLocationEvictInput = {
5451
5451
  } | undefined;
5452
5452
  };
5453
5453
  export type DebugLocationEvictOutput = void;
5454
- export type MigrationV1StatusOutput = {
5454
+ export type ExperimentalMigrationV1StatusOutput = {
5455
5455
  status: "required" | "completed";
5456
5456
  } | {
5457
5457
  status: "running";
@@ -5487,12 +5487,12 @@ export type WebsearchQueryOutput = {
5487
5487
  results: Array<WebSearchResult>;
5488
5488
  };
5489
5489
  };
5490
- export type UsageLimitsInput = {
5490
+ export type ExperimentalUsageLimitsInput = {
5491
5491
  readonly location?: {
5492
5492
  readonly directory?: string | undefined;
5493
5493
  } | undefined;
5494
5494
  };
5495
- export type UsageLimitsOutput = {
5495
+ export type ExperimentalUsageLimitsOutput = {
5496
5496
  location: LocationPublicRef;
5497
5497
  data: UsageLimitsInfo | null;
5498
5498
  };
@@ -5503,7 +5503,107 @@ export type ConfigGetInput = {
5503
5503
  };
5504
5504
  export type ConfigGetOutput = Array<ConfigEntry>;
5505
5505
  export type ConfigShellsOutput = Array<ConfigShellOption>;
5506
- export type ConfigUpdateInput = {
5506
+ export type ExperimentalConfigUpdateInput = {
5507
5507
  readonly shell: string | null;
5508
5508
  };
5509
- export type ConfigUpdateOutput = void;
5509
+ export type ExperimentalConfigUpdateOutput = void;
5510
+ /** @deprecated Use `ExperimentalSessionStatsInput`. Removed in the next minor. */
5511
+ export type SessionStatsInput = ExperimentalSessionStatsInput;
5512
+ /** @deprecated Use `ExperimentalSessionStatsOutput`. Removed in the next minor. */
5513
+ export type SessionStatsOutput = ExperimentalSessionStatsOutput;
5514
+ /** @deprecated Use `ExperimentalSessionImportInput`. Removed in the next minor. */
5515
+ export type SessionImportInput = ExperimentalSessionImportInput;
5516
+ /** @deprecated Use `ExperimentalSessionImportOutput`. Removed in the next minor. */
5517
+ export type SessionImportOutput = ExperimentalSessionImportOutput;
5518
+ /** @deprecated Use `ExperimentalSessionExportInput`. Removed in the next minor. */
5519
+ export type SessionExportInput = ExperimentalSessionExportInput;
5520
+ /** @deprecated Use `ExperimentalSessionExportOutput`. Removed in the next minor. */
5521
+ export type SessionExportOutput = ExperimentalSessionExportOutput;
5522
+ /** @deprecated Use `ExperimentalSessionSkillInput`. Removed in the next minor. */
5523
+ export type SessionSkillInput = ExperimentalSessionSkillInput;
5524
+ /** @deprecated Use `ExperimentalSessionSkillOutput`. Removed in the next minor. */
5525
+ export type SessionSkillOutput = ExperimentalSessionSkillOutput;
5526
+ /** @deprecated Use `ExperimentalSessionWaitInput`. Removed in the next minor. */
5527
+ export type SessionWaitInput = ExperimentalSessionWaitInput;
5528
+ /** @deprecated Use `ExperimentalSessionWaitOutput`. Removed in the next minor. */
5529
+ export type SessionWaitOutput = ExperimentalSessionWaitOutput;
5530
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryListInput`. Removed in the next minor. */
5531
+ export type SessionInstructionsEntryListInput = ExperimentalSessionInstructionsEntryListInput;
5532
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryListOutput`. Removed in the next minor. */
5533
+ export type SessionInstructionsEntryListOutput = ExperimentalSessionInstructionsEntryListOutput;
5534
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryPutInput`. Removed in the next minor. */
5535
+ export type SessionInstructionsEntryPutInput = ExperimentalSessionInstructionsEntryPutInput;
5536
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryPutOutput`. Removed in the next minor. */
5537
+ export type SessionInstructionsEntryPutOutput = ExperimentalSessionInstructionsEntryPutOutput;
5538
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryRemoveInput`. Removed in the next minor. */
5539
+ export type SessionInstructionsEntryRemoveInput = ExperimentalSessionInstructionsEntryRemoveInput;
5540
+ /** @deprecated Use `ExperimentalSessionInstructionsEntryRemoveOutput`. Removed in the next minor. */
5541
+ export type SessionInstructionsEntryRemoveOutput = ExperimentalSessionInstructionsEntryRemoveOutput;
5542
+ /** @deprecated Use `ExperimentalSessionLogInput`. Removed in the next minor. */
5543
+ export type SessionLogInput = ExperimentalSessionLogInput;
5544
+ /** @deprecated Use `ExperimentalSessionLogOutput`. Removed in the next minor. */
5545
+ export type SessionLogOutput = ExperimentalSessionLogOutput;
5546
+ /** @deprecated Use `ExperimentalGenerateTextInput`. Removed in the next minor. */
5547
+ export type GenerateTextInput = ExperimentalGenerateTextInput;
5548
+ /** @deprecated Use `ExperimentalGenerateTextOutput`. Removed in the next minor. */
5549
+ export type GenerateTextOutput = ExperimentalGenerateTextOutput;
5550
+ /** @deprecated Use `ExperimentalGenerateImageInput`. Removed in the next minor. */
5551
+ export type GenerateImageInput = ExperimentalGenerateImageInput;
5552
+ /** @deprecated Use `ExperimentalGenerateImageOutput`. Removed in the next minor. */
5553
+ export type GenerateImageOutput = ExperimentalGenerateImageOutput;
5554
+ /** @deprecated Use `ExperimentalGenerateDecisionsInput`. Removed in the next minor. */
5555
+ export type GenerateDecisionsInput = ExperimentalGenerateDecisionsInput;
5556
+ /** @deprecated Use `ExperimentalGenerateDecisionsOutput`. Removed in the next minor. */
5557
+ export type GenerateDecisionsOutput = ExperimentalGenerateDecisionsOutput;
5558
+ /** @deprecated Use `ExperimentalVoiceModelsOutput`. Removed in the next minor. */
5559
+ export type VoiceModelsOutput = ExperimentalVoiceModelsOutput;
5560
+ /** @deprecated Use `ExperimentalVoiceSessionInput`. Removed in the next minor. */
5561
+ export type VoiceSessionInput = ExperimentalVoiceSessionInput;
5562
+ /** @deprecated Use `ExperimentalVoiceSessionOutput`. Removed in the next minor. */
5563
+ export type VoiceSessionOutput = ExperimentalVoiceSessionOutput;
5564
+ /** @deprecated Use `ExperimentalIntegrationWellknownAddInput`. Removed in the next minor. */
5565
+ export type IntegrationWellknownAddInput = ExperimentalIntegrationWellknownAddInput;
5566
+ /** @deprecated Use `ExperimentalIntegrationWellknownAddOutput`. Removed in the next minor. */
5567
+ export type IntegrationWellknownAddOutput = ExperimentalIntegrationWellknownAddOutput;
5568
+ /** @deprecated Use `ExperimentalMcpAddInput`. Removed in the next minor. */
5569
+ export type McpAddInput = ExperimentalMcpAddInput;
5570
+ /** @deprecated Use `ExperimentalMcpAddOutput`. Removed in the next minor. */
5571
+ export type McpAddOutput = ExperimentalMcpAddOutput;
5572
+ /** @deprecated Use `ExperimentalMcpRemoveInput`. Removed in the next minor. */
5573
+ export type McpRemoveInput = ExperimentalMcpRemoveInput;
5574
+ /** @deprecated Use `ExperimentalMcpRemoveOutput`. Removed in the next minor. */
5575
+ export type McpRemoveOutput = ExperimentalMcpRemoveOutput;
5576
+ /** @deprecated Use `ExperimentalMcpConnectInput`. Removed in the next minor. */
5577
+ export type McpConnectInput = ExperimentalMcpConnectInput;
5578
+ /** @deprecated Use `ExperimentalMcpConnectOutput`. Removed in the next minor. */
5579
+ export type McpConnectOutput = ExperimentalMcpConnectOutput;
5580
+ /** @deprecated Use `ExperimentalMcpDisconnectInput`. Removed in the next minor. */
5581
+ export type McpDisconnectInput = ExperimentalMcpDisconnectInput;
5582
+ /** @deprecated Use `ExperimentalMcpDisconnectOutput`. Removed in the next minor. */
5583
+ export type McpDisconnectOutput = ExperimentalMcpDisconnectOutput;
5584
+ /** @deprecated Use `ExperimentalMcpClientTokenInput`. Removed in the next minor. */
5585
+ export type McpClientTokenInput = ExperimentalMcpClientTokenInput;
5586
+ /** @deprecated Use `ExperimentalMcpClientTokenOutput`. Removed in the next minor. */
5587
+ export type McpClientTokenOutput = ExperimentalMcpClientTokenOutput;
5588
+ /** @deprecated Use `ExperimentalFileWriteInput`. Removed in the next minor. */
5589
+ export type FileWriteInput = ExperimentalFileWriteInput;
5590
+ /** @deprecated Use `ExperimentalFileWriteOutput`. Removed in the next minor. */
5591
+ export type FileWriteOutput = ExperimentalFileWriteOutput;
5592
+ /** @deprecated Use `ExperimentalFileWatchInput`. Removed in the next minor. */
5593
+ export type FileWatchInput = ExperimentalFileWatchInput;
5594
+ /** @deprecated Use `ExperimentalFileWatchOutput`. Removed in the next minor. */
5595
+ export type FileWatchOutput = ExperimentalFileWatchOutput;
5596
+ /** @deprecated Use `ExperimentalFileUnwatchInput`. Removed in the next minor. */
5597
+ export type FileUnwatchInput = ExperimentalFileUnwatchInput;
5598
+ /** @deprecated Use `ExperimentalFileUnwatchOutput`. Removed in the next minor. */
5599
+ export type FileUnwatchOutput = ExperimentalFileUnwatchOutput;
5600
+ /** @deprecated Use `ExperimentalMigrationV1StatusOutput`. Removed in the next minor. */
5601
+ export type MigrationV1StatusOutput = ExperimentalMigrationV1StatusOutput;
5602
+ /** @deprecated Use `ExperimentalUsageLimitsInput`. Removed in the next minor. */
5603
+ export type UsageLimitsInput = ExperimentalUsageLimitsInput;
5604
+ /** @deprecated Use `ExperimentalUsageLimitsOutput`. Removed in the next minor. */
5605
+ export type UsageLimitsOutput = ExperimentalUsageLimitsOutput;
5606
+ /** @deprecated Use `ExperimentalConfigUpdateInput`. Removed in the next minor. */
5607
+ export type ConfigUpdateInput = ExperimentalConfigUpdateInput;
5608
+ /** @deprecated Use `ExperimentalConfigUpdateOutput`. Removed in the next minor. */
5609
+ export type ConfigUpdateOutput = ExperimentalConfigUpdateOutput;