shuvcode 2.0.0-alpha-19 → 2.0.3-shuv.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.
@@ -1,10 +1,21 @@
1
1
  export type JsonValue = null | boolean | number | string | Array<JsonValue> | {
2
2
  [key: string]: JsonValue;
3
3
  };
4
- export type ServiceHealth = {
5
- healthy: true;
4
+ export type ServerStatus = {
6
5
  version: string;
7
6
  pid: number;
7
+ urls: Array<string>;
8
+ };
9
+ export type LocationPublicInfo = {
10
+ directory: string;
11
+ project: {
12
+ id: string;
13
+ directory: string;
14
+ canonical: string;
15
+ };
16
+ };
17
+ export type LocationPublicRef = {
18
+ directory: string;
8
19
  };
9
20
  export type ModelRef = {
10
21
  id: string;
@@ -20,13 +31,28 @@ export type PluginSource = {
20
31
  type: "builtin";
21
32
  } | {
22
33
  type: "package";
23
- package: string;
34
+ target: string;
35
+ version?: string;
36
+ outdated?: true;
37
+ updating?: true;
24
38
  } | {
25
39
  type: "local";
26
40
  path: string;
27
41
  } | {
28
42
  type: "sdk";
29
43
  };
44
+ export type PluginFeatures = {
45
+ server?: true;
46
+ tui?: true;
47
+ rpc?: true;
48
+ };
49
+ export type PluginState = {
50
+ status: "active";
51
+ } | {
52
+ status: "failed";
53
+ error: string;
54
+ ref?: string;
55
+ };
30
56
  export type SessionForkBoundary = {
31
57
  type: "before";
32
58
  messageID: string;
@@ -44,10 +70,6 @@ export type TokenUsageInfo = {
44
70
  write: number;
45
71
  };
46
72
  };
47
- export type LocationRef = {
48
- directory: string;
49
- workspaceID?: string;
50
- };
51
73
  export type SessionMetadata = {
52
74
  [x: string]: JsonValue;
53
75
  };
@@ -58,7 +80,6 @@ export type FileDiffInfo = {
58
80
  deletions: number;
59
81
  status: "added" | "deleted" | "modified";
60
82
  };
61
- export type SessionPolicyToolID = string;
62
83
  export type SessionStatsToolTotals = {
63
84
  calls: number;
64
85
  succeeded: number;
@@ -204,8 +225,15 @@ export type SessionMessageCompactionRunning = {
204
225
  summary: string;
205
226
  recent: string;
206
227
  };
207
- export type SessionMessageCompactionCompleted = {
208
- type: "compaction";
228
+ export type SessionProviderContextProvenance = {
229
+ providerID: string;
230
+ provider: string;
231
+ modelID: string;
232
+ route: string;
233
+ protocol: string;
234
+ endpoint: string;
235
+ };
236
+ export type SessionMessageIdle = {
209
237
  id: string;
210
238
  metadata?: {
211
239
  [x: string]: JsonValue;
@@ -213,10 +241,8 @@ export type SessionMessageCompactionCompleted = {
213
241
  time: {
214
242
  created: number;
215
243
  };
216
- status: "completed";
217
- reason: "auto" | "manual";
218
- summary: string;
219
- recent: string;
244
+ type: "idle";
245
+ outcome: "succeeded" | "failed" | "interrupted";
220
246
  };
221
247
  export type SessionActive = {
222
248
  type: "running";
@@ -231,27 +257,15 @@ export type SessionInboxSyntheticPayload = {
231
257
  };
232
258
  export type SessionInboxCompactionPayload = {};
233
259
  export type InstructionEntryKey = string;
234
- export type SessionDynamicToolDefinition = {
235
- name: string;
236
- description: string;
237
- parameters?: {
238
- [x: string]: JsonValue;
239
- };
240
- };
241
- export type SessionDynamicToolCall = {
242
- callID: string;
243
- sessionID: string;
244
- tool: string;
245
- input: JsonValue;
246
- time: {
247
- requested: number;
248
- };
249
- };
250
260
  export type SessionGenerateResponse = {
251
261
  data: {
252
262
  text: string;
253
263
  };
254
264
  };
265
+ export type LocationRef = {
266
+ directory: string;
267
+ workspaceID?: string;
268
+ };
255
269
  export type SessionInboxSyntheticPayload1 = {
256
270
  text: string;
257
271
  description?: string;
@@ -304,11 +318,17 @@ export type SessionInterruptResponse = {
304
318
  };
305
319
  export type ModelReasoningField = "reasoning" | "reasoning_content" | "reasoning_text" | (string & {});
306
320
  export type ModelMaxTokensField = "max_completion_tokens" | "max_tokens";
321
+ export type ProviderCompaction = {
322
+ mode: "local";
323
+ } | {
324
+ mode: "provider";
325
+ threshold?: number;
326
+ };
327
+ export type ProviderTransport = "http" | "websocket";
307
328
  export type ModelCapabilities = {
308
329
  tools: boolean;
309
330
  input: Array<string>;
310
331
  output: Array<string>;
311
- responsesWebsockets?: boolean;
312
332
  };
313
333
  export type ModelVariant = {
314
334
  id: string;
@@ -328,22 +348,6 @@ export type GenerateTextResponse = {
328
348
  text: string;
329
349
  };
330
350
  };
331
- export type ProviderInfo = {
332
- id: string;
333
- integrationID?: string;
334
- name: string;
335
- activation: "auto" | "enabled" | "disabled";
336
- package: string;
337
- settings?: {
338
- [x: string]: any;
339
- };
340
- headers?: {
341
- [x: string]: string;
342
- };
343
- body?: {
344
- [x: string]: any;
345
- };
346
- };
347
351
  export type FormWhen = {
348
352
  key: string;
349
353
  op: "eq" | "neq";
@@ -380,37 +384,47 @@ export type ConnectionEnvInfo = {
380
384
  type: "env";
381
385
  name: string;
382
386
  };
387
+ export type IntegrationAttempt = {
388
+ attemptID: string;
389
+ url: string;
390
+ instructions: string;
391
+ mode: "auto" | "code";
392
+ time: {
393
+ created: number;
394
+ expires: number;
395
+ };
396
+ };
383
397
  export type IntegrationAttemptStatus = {
384
398
  status: "pending";
385
399
  time: {
386
- created: number | "Infinity" | "-Infinity" | "NaN";
387
- expires: number | "Infinity" | "-Infinity" | "NaN";
400
+ created: number;
401
+ expires: number;
388
402
  };
389
403
  } | {
390
404
  status: "complete";
391
405
  time: {
392
- created: number | "Infinity" | "-Infinity" | "NaN";
393
- expires: number | "Infinity" | "-Infinity" | "NaN";
406
+ created: number;
407
+ expires: number;
394
408
  };
395
409
  } | {
396
410
  status: "failed";
397
411
  message: string;
398
412
  time: {
399
- created: number | "Infinity" | "-Infinity" | "NaN";
400
- expires: number | "Infinity" | "-Infinity" | "NaN";
413
+ created: number;
414
+ expires: number;
401
415
  };
402
416
  } | {
403
417
  status: "expired";
404
418
  time: {
405
- created: number | "Infinity" | "-Infinity" | "NaN";
406
- expires: number | "Infinity" | "-Infinity" | "NaN";
419
+ created: number;
420
+ expires: number;
407
421
  };
408
422
  };
409
423
  export type IntegrationCommandAttempt = {
410
424
  attemptID: string;
411
425
  time: {
412
- created: number | "Infinity" | "-Infinity" | "NaN";
413
- expires: number | "Infinity" | "-Infinity" | "NaN";
426
+ created: number;
427
+ expires: number;
414
428
  };
415
429
  };
416
430
  export type IntegrationCommandAttemptStatus = {
@@ -440,14 +454,6 @@ export type IntegrationCommandAttemptStatus = {
440
454
  expires: number | "Infinity" | "-Infinity" | "NaN";
441
455
  };
442
456
  };
443
- export type AuthProfile = {
444
- providerID: string;
445
- profileID?: string;
446
- source: "stored" | "environment";
447
- type: "key" | "oauth" | "unknown";
448
- usable: boolean;
449
- reason: "configured" | "expired" | "empty" | "malformed";
450
- };
451
457
  export type McpStatusConnected = {
452
458
  status: "connected";
453
459
  };
@@ -463,6 +469,7 @@ export type McpStatusFailed = {
463
469
  };
464
470
  export type McpStatusNeedsAuth = {
465
471
  status: "needs_auth";
472
+ error: string;
466
473
  };
467
474
  export type McpResource = {
468
475
  server: string;
@@ -490,12 +497,6 @@ export type ProjectCommands = {
490
497
  export type ProjectTime = {
491
498
  created: number;
492
499
  updated: number;
493
- initialized?: number;
494
- };
495
- export type ProjectCurrent = {
496
- id: string;
497
- directory: string;
498
- canonical: string;
499
500
  };
500
501
  export type FormMetadata = {
501
502
  [x: string]: JsonValue;
@@ -524,17 +525,12 @@ export type SkillInfo = {
524
525
  id: string;
525
526
  name: string;
526
527
  description?: string;
527
- slash?: boolean;
528
528
  autoinvoke?: boolean;
529
- location: string;
529
+ path: string;
530
530
  content: string;
531
531
  };
532
- export type SessionDynamicToolDefinition1 = {
533
- name: string;
534
- description: string;
535
- parameters?: {
536
- [x: string]: any;
537
- };
532
+ export type RpcOutput = {
533
+ output?: any;
538
534
  };
539
535
  export type PermissionReply = "once" | "always" | "reject";
540
536
  export type Pty = {
@@ -638,15 +634,11 @@ export type ShellInfo1 = {
638
634
  export type ReferenceLocalSource = {
639
635
  type: "local";
640
636
  path: string;
641
- description?: string;
642
- hidden?: boolean;
643
637
  };
644
638
  export type ReferenceGitSource = {
645
639
  type: "git";
646
640
  repository: string;
647
641
  branch?: string;
648
- description?: string;
649
- hidden?: boolean;
650
642
  };
651
643
  export type WorktreeDirectory = {
652
644
  directory: string;
@@ -655,9 +647,6 @@ export type WorktreeDirectory = {
655
647
  export type WorktreeInfo = {
656
648
  directory: string;
657
649
  };
658
- export type WorkspaceDestroyResult = {
659
- destroyed: boolean;
660
- };
661
650
  export type VcsBranch = {
662
651
  current?: string;
663
652
  default?: string;
@@ -686,31 +675,14 @@ export type WebSearchResult = {
686
675
  published?: number;
687
676
  };
688
677
  };
689
- export type ProviderRequest = {
690
- settings: ProviderSettings;
691
- headers: {
692
- [x: string]: string;
693
- };
694
- body: {
695
- [x: string]: any;
696
- };
697
- };
698
- export type PermissionRule = {
699
- action: string;
700
- resource: string;
701
- effect: PermissionEffect;
678
+ export type McpProtocol = "legacy" | "auto" | "2026-07-28";
679
+ export type ConfigWorktree = {
680
+ directory: string;
702
681
  };
703
- export type PluginInfo = {
704
- id: string;
705
- source: PluginSource;
706
- status: "active";
707
- tui: boolean;
708
- } | {
709
- id?: string;
710
- source: PluginSource;
711
- status: "failed";
712
- error: string;
713
- tui: boolean;
682
+ export type ConfigShellOption = {
683
+ path: string;
684
+ name: string;
685
+ acceptable: boolean;
714
686
  };
715
687
  export type SessionMessageLocationSwitched = {
716
688
  id: string;
@@ -721,38 +693,67 @@ export type SessionMessageLocationSwitched = {
721
693
  created: number;
722
694
  };
723
695
  type: "location-switched";
724
- location: LocationRef;
725
696
  projectID?: string;
726
697
  subpath?: string;
698
+ location: LocationPublicRef;
727
699
  previous?: {
728
- location: LocationRef;
700
+ location: LocationPublicRef;
729
701
  projectID?: string;
730
702
  subpath?: string;
731
- };
703
+ } | null;
732
704
  };
733
705
  export type SessionInboxMovePayload = {
734
- location: LocationRef;
735
706
  projectID: string;
736
707
  subpath?: string;
708
+ location: LocationPublicRef;
709
+ };
710
+ export type V2EventRpc = {
711
+ id: string;
712
+ created: number;
713
+ metadata?: {
714
+ [x: string]: any;
715
+ } | undefined;
716
+ type: `${"rpc."}${string}`;
717
+ location: LocationPublicRef;
718
+ data: {
719
+ [x: string]: any;
720
+ };
737
721
  };
738
722
  export type V2EventServerConnected = {
739
723
  id: string;
740
724
  metadata?: {
741
725
  [x: string]: any;
742
726
  } | undefined;
743
- location?: LocationRef | undefined;
727
+ location?: LocationPublicRef | undefined;
744
728
  type: "server.connected";
745
729
  data: {};
746
730
  };
731
+ export type ProviderRequest = {
732
+ settings: ProviderSettings;
733
+ headers: {
734
+ [x: string]: string;
735
+ };
736
+ body: {
737
+ [x: string]: any;
738
+ };
739
+ };
740
+ export type PermissionRule = {
741
+ action: string;
742
+ resource: string;
743
+ effect: PermissionEffect;
744
+ };
745
+ export type PluginInfo = {
746
+ id?: string;
747
+ source: PluginSource;
748
+ features: PluginFeatures;
749
+ state: PluginState;
750
+ };
747
751
  export type SessionRevert = {
748
752
  messageID: string;
749
753
  partID?: string;
750
754
  snapshot?: string;
751
755
  files?: Array<FileDiffInfo>;
752
756
  };
753
- export type SessionPolicyTools = {
754
- allow: Array<SessionPolicyToolID>;
755
- };
756
757
  export type SessionStatsTools = {
757
758
  mode: "none";
758
759
  } | {
@@ -831,11 +832,20 @@ export type SessionMessageCompactionFailed = {
831
832
  status: "failed";
832
833
  reason: "auto" | "manual";
833
834
  error: SessionStructuredError;
835
+ cost?: MoneyUSD;
836
+ tokens?: TokenUsageInfo;
837
+ };
838
+ export type SessionProviderContext = {
839
+ version: 1;
840
+ provenance: SessionProviderContextProvenance;
841
+ messages: JsonValue;
834
842
  };
835
843
  export type SessionInboxSynthetic = {
836
844
  id: string;
837
845
  sessionID: string;
838
- timeCreated: number;
846
+ time: {
847
+ created: number;
848
+ };
839
849
  type: "synthetic";
840
850
  payload: SessionInboxSyntheticPayload;
841
851
  delivery: SessionInboxDelivery;
@@ -843,7 +853,9 @@ export type SessionInboxSynthetic = {
843
853
  export type SessionInboxCompaction = {
844
854
  id: string;
845
855
  sessionID: string;
846
- timeCreated: number;
856
+ time: {
857
+ created: number;
858
+ };
847
859
  type: "compaction";
848
860
  payload: SessionInboxCompactionPayload;
849
861
  delivery: SessionInboxDelivery;
@@ -895,26 +907,6 @@ export type SessionModelSelected = {
895
907
  previous?: ModelRef;
896
908
  };
897
909
  };
898
- export type SessionMoved = {
899
- id: string;
900
- created: number;
901
- metadata?: {
902
- [x: string]: any;
903
- };
904
- type: "session.moved";
905
- durable: {
906
- aggregateID: string;
907
- seq: number;
908
- version: 1;
909
- };
910
- location?: LocationRef;
911
- data: {
912
- sessionID: string;
913
- location: LocationRef;
914
- projectID: string;
915
- subpath?: string;
916
- };
917
- };
918
910
  export type SessionRenamed = {
919
911
  id: string;
920
912
  created: number;
@@ -1090,7 +1082,7 @@ export type SessionExecutionInterrupted = {
1090
1082
  location?: LocationRef;
1091
1083
  data: {
1092
1084
  sessionID: string;
1093
- reason: "user" | "shutdown" | "superseded";
1085
+ reason: "user" | "shutdown" | "superseded" | "inactivity";
1094
1086
  };
1095
1087
  };
1096
1088
  export type SessionInstructionsUpdated = {
@@ -1295,26 +1287,6 @@ export type SessionCompactionStarted = {
1295
1287
  inputID?: string;
1296
1288
  };
1297
1289
  };
1298
- export type SessionCompactionEnded = {
1299
- id: string;
1300
- created: number;
1301
- metadata?: {
1302
- [x: string]: any;
1303
- };
1304
- type: "session.compaction.ended";
1305
- durable: {
1306
- aggregateID: string;
1307
- seq: number;
1308
- version: 1;
1309
- };
1310
- location?: LocationRef;
1311
- data: {
1312
- sessionID: string;
1313
- reason: "auto" | "manual";
1314
- text: string;
1315
- recent: string;
1316
- };
1317
- };
1318
1290
  export type SessionCompactionFailed = {
1319
1291
  id: string;
1320
1292
  created: number;
@@ -1333,6 +1305,8 @@ export type SessionCompactionFailed = {
1333
1305
  reason: "auto" | "manual";
1334
1306
  error: SessionStructuredError;
1335
1307
  inputID?: string;
1308
+ cost?: MoneyUSD;
1309
+ tokens?: TokenUsageInfo;
1336
1310
  };
1337
1311
  };
1338
1312
  export type SessionRevertCleared = {
@@ -1433,13 +1407,23 @@ export type IntegrationUpdated = {
1433
1407
  location?: LocationRef;
1434
1408
  data: {};
1435
1409
  };
1436
- export type CatalogUpdated = {
1410
+ export type ProviderUpdated = {
1411
+ id: string;
1412
+ created: number;
1413
+ metadata?: {
1414
+ [x: string]: any;
1415
+ };
1416
+ type: "provider.updated";
1417
+ location?: LocationRef;
1418
+ data: {};
1419
+ };
1420
+ export type ModelUpdated = {
1437
1421
  id: string;
1438
1422
  created: number;
1439
1423
  metadata?: {
1440
1424
  [x: string]: any;
1441
1425
  };
1442
- type: "catalog.updated";
1426
+ type: "model.updated";
1443
1427
  location?: LocationRef;
1444
1428
  data: {};
1445
1429
  };
@@ -1542,47 +1526,6 @@ export type SessionCompactionDelta = {
1542
1526
  text: string;
1543
1527
  };
1544
1528
  };
1545
- export type SessionToolDynamicRequested = {
1546
- id: string;
1547
- created: number;
1548
- metadata?: {
1549
- [x: string]: any;
1550
- };
1551
- type: "session.tool.dynamic.requested";
1552
- location?: LocationRef;
1553
- data: {
1554
- sessionID: string;
1555
- callID: string;
1556
- tool: string;
1557
- input: JsonValue;
1558
- };
1559
- };
1560
- export type SessionToolDynamicReplied = {
1561
- id: string;
1562
- created: number;
1563
- metadata?: {
1564
- [x: string]: any;
1565
- };
1566
- type: "session.tool.dynamic.replied";
1567
- location?: LocationRef;
1568
- data: {
1569
- sessionID: string;
1570
- callID: string;
1571
- };
1572
- };
1573
- export type SessionToolDynamicCancelled = {
1574
- id: string;
1575
- created: number;
1576
- metadata?: {
1577
- [x: string]: any;
1578
- };
1579
- type: "session.tool.dynamic.cancelled";
1580
- location?: LocationRef;
1581
- data: {
1582
- sessionID: string;
1583
- callID: string;
1584
- };
1585
- };
1586
1529
  export type FilesystemChanged = {
1587
1530
  id: string;
1588
1531
  created: number;
@@ -1606,18 +1549,6 @@ export type ReferenceUpdated = {
1606
1549
  location?: LocationRef;
1607
1550
  data: {};
1608
1551
  };
1609
- export type PluginAdded = {
1610
- id: string;
1611
- created: number;
1612
- metadata?: {
1613
- [x: string]: any;
1614
- };
1615
- type: "plugin.added";
1616
- location?: LocationRef;
1617
- data: {
1618
- id: string;
1619
- };
1620
- };
1621
1552
  export type PluginUpdated = {
1622
1553
  id: string;
1623
1554
  created: number;
@@ -1900,7 +1831,32 @@ export type McpResourcesChanged = {
1900
1831
  server: string;
1901
1832
  };
1902
1833
  };
1903
- export type SessionShellStarted = {
1834
+ export type SessionMoved = {
1835
+ id: string;
1836
+ created: number;
1837
+ metadata?: {
1838
+ [x: string]: any;
1839
+ };
1840
+ type: "session.moved";
1841
+ durable: {
1842
+ aggregateID: string;
1843
+ seq: number;
1844
+ version: 1;
1845
+ };
1846
+ location?: LocationRef;
1847
+ data: {
1848
+ sessionID: string;
1849
+ location: LocationRef;
1850
+ projectID: string;
1851
+ subpath?: string;
1852
+ };
1853
+ };
1854
+ export type SessionInboxMovePayload1 = {
1855
+ location: LocationRef;
1856
+ projectID: string;
1857
+ subpath?: string;
1858
+ };
1859
+ export type SessionShellStarted = {
1904
1860
  id: string;
1905
1861
  created: number;
1906
1862
  metadata?: {
@@ -2113,6 +2069,25 @@ export type ModelCompatibility = {
2113
2069
  requireFinishReason?: boolean;
2114
2070
  requireAssistantAfterTool?: boolean;
2115
2071
  };
2072
+ export type ProviderInfo = {
2073
+ id: string;
2074
+ canonical?: string;
2075
+ integrationID?: string;
2076
+ name: string;
2077
+ activation: "auto" | "enabled" | "disabled";
2078
+ package: string;
2079
+ compaction?: ProviderCompaction;
2080
+ transport?: ProviderTransport;
2081
+ settings?: {
2082
+ [x: string]: any;
2083
+ };
2084
+ headers?: {
2085
+ [x: string]: string;
2086
+ };
2087
+ body?: {
2088
+ [x: string]: any;
2089
+ };
2090
+ };
2116
2091
  export type ModelCost = {
2117
2092
  tier?: {
2118
2093
  type: "context";
@@ -2186,12 +2161,6 @@ export type FormMultiselectField = {
2186
2161
  default?: Array<string>;
2187
2162
  };
2188
2163
  export type ConnectionInfo = ConnectionCredentialInfo | ConnectionEnvInfo;
2189
- export type AuthStatus = {
2190
- ready: boolean;
2191
- storage: "available" | "unavailable";
2192
- verification: "not_performed";
2193
- profiles: Array<AuthProfile>;
2194
- };
2195
2164
  export type McpServer = {
2196
2165
  name: string;
2197
2166
  status: McpStatusConnected | McpStatusPending | McpStatusDisabled | McpStatusFailed | McpStatusNeedsAuth;
@@ -2266,19 +2235,6 @@ export type PermissionAsked = {
2266
2235
  message?: string;
2267
2236
  };
2268
2237
  };
2269
- export type SessionToolsUpdated = {
2270
- id: string;
2271
- created: number;
2272
- metadata?: {
2273
- [x: string]: any;
2274
- };
2275
- type: "session.tools.updated";
2276
- location?: LocationRef;
2277
- data: {
2278
- sessionID: string;
2279
- tools: Array<SessionDynamicToolDefinition1>;
2280
- };
2281
- };
2282
2238
  export type PermissionReplied = {
2283
2239
  id: string;
2284
2240
  created: number;
@@ -2417,15 +2373,17 @@ export type WorktreeList = Array<WorktreeDirectory>;
2417
2373
  export type VcsInfo = {
2418
2374
  branch: VcsBranch;
2419
2375
  };
2420
- export type PermissionRuleset = Array<PermissionRule>;
2421
2376
  export type SessionInboxMove = {
2422
2377
  id: string;
2423
2378
  sessionID: string;
2424
- timeCreated: number;
2379
+ time: {
2380
+ created: number;
2381
+ };
2425
2382
  type: "move";
2426
- payload: SessionInboxMovePayload;
2427
2383
  delivery: SessionInboxDelivery;
2384
+ payload: SessionInboxMovePayload;
2428
2385
  };
2386
+ export type PermissionRuleset = Array<PermissionRule>;
2429
2387
  export type SessionRevertStaged = {
2430
2388
  id: string;
2431
2389
  created: number;
@@ -2444,9 +2402,6 @@ export type SessionRevertStaged = {
2444
2402
  revert: SessionRevert;
2445
2403
  };
2446
2404
  };
2447
- export type SessionPolicy = {
2448
- tools: SessionPolicyTools;
2449
- };
2450
2405
  export type SessionStatsInfo = {
2451
2406
  range: {
2452
2407
  from: number;
@@ -2517,7 +2472,73 @@ export type SessionMessageToolStateError = {
2517
2472
  [x: string]: JsonValue;
2518
2473
  };
2519
2474
  };
2520
- export type SessionMessageCompaction = SessionMessageCompactionRunning | SessionMessageCompactionCompleted | SessionMessageCompactionFailed;
2475
+ export type SessionMessageCompactionCompleted = {
2476
+ type: "compaction";
2477
+ id: string;
2478
+ metadata?: {
2479
+ [x: string]: JsonValue;
2480
+ };
2481
+ time: {
2482
+ created: number;
2483
+ };
2484
+ status: "completed";
2485
+ reason: "auto" | "manual";
2486
+ model?: ModelRef;
2487
+ providerState?: SessionMessageProviderState;
2488
+ summary: string;
2489
+ recent: string;
2490
+ providerContext?: SessionProviderContext;
2491
+ cost?: MoneyUSD;
2492
+ tokens?: TokenUsageInfo;
2493
+ };
2494
+ export type SessionCompactionEnded = {
2495
+ id: string;
2496
+ created: number;
2497
+ metadata?: {
2498
+ [x: string]: any;
2499
+ };
2500
+ type: "session.compaction.ended";
2501
+ durable: {
2502
+ aggregateID: string;
2503
+ seq: number;
2504
+ version: 1;
2505
+ };
2506
+ location?: LocationRef;
2507
+ data: {
2508
+ sessionID: string;
2509
+ reason: "auto" | "manual";
2510
+ model?: ModelRef;
2511
+ providerState?: SessionMessageProviderState1;
2512
+ providerContext?: SessionProviderContext;
2513
+ text: string;
2514
+ recent: string;
2515
+ cost?: MoneyUSD;
2516
+ tokens?: TokenUsageInfo;
2517
+ };
2518
+ };
2519
+ export type SessionForked = {
2520
+ id: string;
2521
+ created: number;
2522
+ metadata?: {
2523
+ [x: string]: any;
2524
+ };
2525
+ type: "session.forked";
2526
+ durable: {
2527
+ aggregateID: string;
2528
+ seq: number;
2529
+ version: 2;
2530
+ };
2531
+ location?: LocationRef;
2532
+ data: {
2533
+ sessionID: string;
2534
+ parentID: string;
2535
+ boundary: SessionForkBoundary;
2536
+ instructions?: {
2537
+ [x: string]: string;
2538
+ };
2539
+ instructionEntries?: InstructionEntrySnapshot;
2540
+ };
2541
+ };
2521
2542
  export type SessionToolSuccess = {
2522
2543
  id: string;
2523
2544
  created: number;
@@ -2594,10 +2615,13 @@ export type ModelInfo = {
2594
2615
  id: string;
2595
2616
  modelID: string;
2596
2617
  providerID: string;
2618
+ canonical?: string;
2597
2619
  family?: string;
2598
2620
  name: string;
2599
2621
  compatibility?: ModelCompatibility;
2600
2622
  package?: string;
2623
+ compaction?: ProviderCompaction;
2624
+ transport?: ProviderTransport;
2601
2625
  settings?: {
2602
2626
  [x: string]: any;
2603
2627
  };
@@ -2665,6 +2689,79 @@ export type AgentInfo = {
2665
2689
  steps?: number;
2666
2690
  permissions: PermissionRuleset;
2667
2691
  };
2692
+ export type SessionPermissionsUpdated = {
2693
+ id: string;
2694
+ created: number;
2695
+ metadata?: {
2696
+ [x: string]: any;
2697
+ };
2698
+ type: "session.permissions.updated";
2699
+ durable: {
2700
+ aggregateID: string;
2701
+ seq: number;
2702
+ version: 1;
2703
+ };
2704
+ location?: LocationRef;
2705
+ data: {
2706
+ sessionID: string;
2707
+ permissions: PermissionRuleset;
2708
+ };
2709
+ };
2710
+ export type SessionInfo = {
2711
+ id: string;
2712
+ parentID?: string;
2713
+ fork?: {
2714
+ sessionID: string;
2715
+ boundary: SessionForkBoundary;
2716
+ };
2717
+ projectID: string;
2718
+ agent?: string;
2719
+ model?: ModelRef;
2720
+ cost: MoneyUSD;
2721
+ tokens: TokenUsageInfo;
2722
+ outcome?: "succeeded" | "failed" | "interrupted";
2723
+ time: {
2724
+ created: number;
2725
+ updated: number;
2726
+ idle?: number;
2727
+ viewed?: number;
2728
+ archived?: number;
2729
+ };
2730
+ title?: string;
2731
+ subpath?: string;
2732
+ metadata?: SessionMetadata;
2733
+ permissions?: PermissionRuleset;
2734
+ revert?: SessionRevert;
2735
+ location: LocationPublicRef;
2736
+ };
2737
+ export type SessionCreated = {
2738
+ id: string;
2739
+ created: number;
2740
+ metadata?: {
2741
+ [x: string]: any;
2742
+ };
2743
+ type: "session.created";
2744
+ durable: {
2745
+ aggregateID: string;
2746
+ seq: number;
2747
+ version: 1;
2748
+ };
2749
+ location?: LocationRef;
2750
+ data: {
2751
+ sessionID: string;
2752
+ projectID: string;
2753
+ location: LocationRef;
2754
+ subpath?: string;
2755
+ parentID?: string;
2756
+ slug: string;
2757
+ title?: string;
2758
+ agent?: string;
2759
+ model?: ModelRef;
2760
+ metadata?: SessionMetadata;
2761
+ permissions?: PermissionRuleset;
2762
+ version: string;
2763
+ };
2764
+ };
2668
2765
  export type ConfigEntry = {
2669
2766
  type: "document";
2670
2767
  path?: string;
@@ -2677,7 +2774,7 @@ export type ConfigEntry = {
2677
2774
  variant?: string;
2678
2775
  };
2679
2776
  default_agent?: string;
2680
- autoupdate?: boolean | "notify";
2777
+ update?: "disable" | "notify" | "auto";
2681
2778
  share?: "manual" | "auto" | "disabled";
2682
2779
  enterprise?: {
2683
2780
  url?: string;
@@ -2750,11 +2847,6 @@ export type ConfigEntry = {
2750
2847
  max_lines?: number;
2751
2848
  max_bytes?: number;
2752
2849
  };
2753
- codemode?: {
2754
- timeout_ms?: number | null;
2755
- max_tool_calls?: number | null;
2756
- max_output_bytes?: number | null;
2757
- };
2758
2850
  mcp?: {
2759
2851
  timeout?: {
2760
2852
  startup?: number;
@@ -2776,6 +2868,7 @@ export type ConfigEntry = {
2776
2868
  catalog?: number;
2777
2869
  execution?: number;
2778
2870
  };
2871
+ protocol?: McpProtocol;
2779
2872
  } | {
2780
2873
  type: "remote";
2781
2874
  url: string;
@@ -2796,6 +2889,7 @@ export type ConfigEntry = {
2796
2889
  catalog?: number;
2797
2890
  execution?: number;
2798
2891
  };
2892
+ protocol?: McpProtocol;
2799
2893
  };
2800
2894
  };
2801
2895
  };
@@ -2817,6 +2911,7 @@ export type ConfigEntry = {
2817
2911
  model: string;
2818
2912
  variant?: string;
2819
2913
  };
2914
+ subagent?: boolean;
2820
2915
  subtask?: boolean;
2821
2916
  };
2822
2917
  };
@@ -2842,6 +2937,7 @@ export type ConfigEntry = {
2842
2937
  [x: string]: JsonValue;
2843
2938
  };
2844
2939
  }>;
2940
+ worktree?: ConfigWorktree;
2845
2941
  warming?: boolean | {
2846
2942
  prompt?: string;
2847
2943
  interval?: string;
@@ -2849,6 +2945,9 @@ export type ConfigEntry = {
2849
2945
  };
2850
2946
  providers?: {
2851
2947
  [x: string]: {
2948
+ compaction?: ProviderCompaction;
2949
+ transport?: ProviderTransport;
2950
+ canonical?: string;
2852
2951
  name?: string;
2853
2952
  env?: Array<string>;
2854
2953
  package?: string;
@@ -2863,6 +2962,8 @@ export type ConfigEntry = {
2863
2962
  };
2864
2963
  models?: {
2865
2964
  [x: string]: {
2965
+ compaction?: ProviderCompaction;
2966
+ transport?: ProviderTransport;
2866
2967
  modelID?: string;
2867
2968
  family?: string;
2868
2969
  name?: string;
@@ -2936,96 +3037,13 @@ export type ConfigEntry = {
2936
3037
  } | {
2937
3038
  type: "directory";
2938
3039
  path: string;
2939
- } | {
2940
- type: "agents";
2941
- path: string;
2942
- } | {
2943
- type: "claude";
2944
- path: string;
2945
3040
  };
2946
- export type SessionInfo = {
3041
+ export type SessionInboxUser = {
2947
3042
  id: string;
2948
- parentID?: string;
2949
- fork?: {
2950
- sessionID: string;
2951
- boundary: SessionForkBoundary;
2952
- };
2953
- projectID: string;
2954
- agent?: string;
2955
- model?: ModelRef;
2956
- cost: MoneyUSD;
2957
- tokens: TokenUsageInfo;
2958
- outcome?: "succeeded" | "failed" | "interrupted";
3043
+ sessionID: string;
2959
3044
  time: {
2960
3045
  created: number;
2961
- updated: number;
2962
- idle?: number;
2963
- viewed?: number;
2964
- archived?: number;
2965
- };
2966
- title?: string;
2967
- location: LocationRef;
2968
- subpath?: string;
2969
- metadata?: SessionMetadata;
2970
- revert?: SessionRevert;
2971
- policy?: SessionPolicy;
2972
- };
2973
- export type SessionCreated = {
2974
- id: string;
2975
- created: number;
2976
- metadata?: {
2977
- [x: string]: any;
2978
- };
2979
- type: "session.created";
2980
- durable: {
2981
- aggregateID: string;
2982
- seq: number;
2983
- version: 1;
2984
- };
2985
- location?: LocationRef;
2986
- data: {
2987
- sessionID: string;
2988
- projectID: string;
2989
- location: LocationRef;
2990
- subpath?: string;
2991
- parentID?: string;
2992
- slug: string;
2993
- title?: string;
2994
- agent?: string;
2995
- model?: ModelRef;
2996
- policy?: SessionPolicy;
2997
- metadata?: SessionMetadata;
2998
- version: string;
2999
- };
3000
- };
3001
- export type SessionForked = {
3002
- id: string;
3003
- created: number;
3004
- metadata?: {
3005
- [x: string]: any;
3006
3046
  };
3007
- type: "session.forked";
3008
- durable: {
3009
- aggregateID: string;
3010
- seq: number;
3011
- version: 2;
3012
- };
3013
- location?: LocationRef;
3014
- data: {
3015
- sessionID: string;
3016
- parentID: string;
3017
- boundary: SessionForkBoundary;
3018
- instructions?: {
3019
- [x: string]: string;
3020
- };
3021
- policy?: SessionPolicy;
3022
- instructionEntries?: InstructionEntrySnapshot;
3023
- };
3024
- };
3025
- export type SessionInboxUser = {
3026
- id: string;
3027
- sessionID: string;
3028
- timeCreated: number;
3029
3047
  type: "user";
3030
3048
  payload: SessionInboxUserPayload;
3031
3049
  delivery: SessionInboxDelivery;
@@ -3044,7 +3062,7 @@ export type SessionInboxItem = {
3044
3062
  delivery: SessionInboxDelivery;
3045
3063
  } | {
3046
3064
  type: "move";
3047
- payload: SessionInboxMovePayload;
3065
+ payload: SessionInboxMovePayload1;
3048
3066
  delivery: SessionInboxDelivery;
3049
3067
  };
3050
3068
  export type SessionMessageAssistantTool = {
@@ -3061,6 +3079,7 @@ export type SessionMessageAssistantTool = {
3061
3079
  completed?: number;
3062
3080
  };
3063
3081
  };
3082
+ export type SessionMessageCompaction = SessionMessageCompactionRunning | SessionMessageCompactionCompleted | SessionMessageCompactionFailed;
3064
3083
  export type SessionMessageAssistantTool1 = {
3065
3084
  type: "tool";
3066
3085
  id: string;
@@ -3157,7 +3176,7 @@ export type FormInfo1 = {
3157
3176
  metadata?: FormMetadata1;
3158
3177
  fields: FormFields2;
3159
3178
  };
3160
- export type SessionMessageInfo = SessionMessageAgentSelected | SessionMessageModelSelected | SessionMessageLocationSwitched | SessionMessageUser | SessionMessageSynthetic | SessionMessageSystem | SessionMessageSkill | SessionMessageShell | SessionMessageAssistant | SessionMessageCompaction;
3179
+ export type SessionMessageInfo = SessionMessageAgentSelected | SessionMessageModelSelected | SessionMessageLocationSwitched | SessionMessageUser | SessionMessageSynthetic | SessionMessageSystem | SessionMessageSkill | SessionMessageShell | SessionMessageAssistant | SessionMessageCompaction | SessionMessageIdle;
3161
3180
  export type SessionMessageContentUpdated = {
3162
3181
  id: string;
3163
3182
  created: number;
@@ -3201,23 +3220,18 @@ export type SessionMessagesResponse = {
3201
3220
  next?: string | null;
3202
3221
  };
3203
3222
  };
3204
- export type SessionEventDurable = SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionViewed | 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 | SessionMessageContentUpdated | SessionUsageRecorded;
3223
+ export type SessionEventDurable = SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionPermissionsUpdated | SessionViewed | 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;
3205
3224
  export type IntegrationInfo = {
3206
3225
  id: string;
3207
3226
  name: string;
3208
3227
  metadata?: {
3209
- [x: string]: JsonValue;
3228
+ [x: string]: any;
3210
3229
  };
3211
3230
  methods: Array<IntegrationMethod>;
3212
3231
  connections: Array<ConnectionInfo>;
3213
3232
  };
3214
- export type V2Event = ModelsDevRefreshed | CredentialUpdated | CredentialSwitched | IntegrationUpdated | CatalogUpdated | AgentUpdated | SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionViewed | 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 | SessionToolsUpdated | SessionToolDynamicRequested | SessionToolDynamicReplied | SessionToolDynamicCancelled | SessionMessageContentUpdated | FilesystemChanged | ReferenceUpdated | PermissionAsked | PermissionReplied | PluginAdded | 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 | V2EventServerConnected;
3233
+ export type V2Event = ModelsDevRefreshed | CredentialUpdated | CredentialSwitched | IntegrationUpdated | ProviderUpdated | ModelUpdated | AgentUpdated | SessionCreated | SessionAgentSelected | SessionModelSelected | SessionMoved | SessionRenamed | SessionPermissionsUpdated | SessionViewed | 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;
3215
3234
  export type SessionLogItem = SessionEventDurable | EventLogSynced;
3216
- export type UnauthorizedError = {
3217
- readonly _tag: "UnauthorizedError";
3218
- readonly message: string;
3219
- };
3220
- export declare const isUnauthorizedError: (value: unknown) => value is UnauthorizedError;
3221
3235
  export type InvalidRequestError = {
3222
3236
  readonly _tag: "InvalidRequestError";
3223
3237
  readonly message: string;
@@ -3225,29 +3239,40 @@ export type InvalidRequestError = {
3225
3239
  readonly field?: string | undefined;
3226
3240
  };
3227
3241
  export declare const isInvalidRequestError: (value: unknown) => value is InvalidRequestError;
3242
+ export type UnauthorizedError = {
3243
+ readonly _tag: "UnauthorizedError";
3244
+ readonly message: string;
3245
+ };
3246
+ export declare const isUnauthorizedError: (value: unknown) => value is UnauthorizedError;
3228
3247
  export type AgentNotFoundError = {
3229
3248
  readonly _tag: "AgentNotFoundError";
3230
3249
  readonly agentID: string;
3231
3250
  readonly message: string;
3232
3251
  };
3233
3252
  export declare const isAgentNotFoundError: (value: unknown) => value is AgentNotFoundError;
3253
+ export type ServiceUnavailableError = {
3254
+ readonly _tag: "ServiceUnavailableError";
3255
+ readonly message: string;
3256
+ readonly service?: string | undefined;
3257
+ };
3258
+ export declare const isServiceUnavailableError: (value: unknown) => value is ServiceUnavailableError;
3234
3259
  export type InvalidCursorError = {
3235
3260
  readonly _tag: "InvalidCursorError";
3236
3261
  readonly message: string;
3237
3262
  };
3238
3263
  export declare const isInvalidCursorError: (value: unknown) => value is InvalidCursorError;
3239
- export type ConflictError = {
3240
- readonly _tag: "ConflictError";
3241
- readonly message: string;
3242
- readonly resource?: string | undefined;
3243
- };
3244
- export declare const isConflictError: (value: unknown) => value is ConflictError;
3245
3264
  export type SessionNotFoundError = {
3246
3265
  readonly _tag: "SessionNotFoundError";
3247
3266
  readonly sessionID: string;
3248
3267
  readonly message: string;
3249
3268
  };
3250
3269
  export declare const isSessionNotFoundError: (value: unknown) => value is SessionNotFoundError;
3270
+ export type ConflictError = {
3271
+ readonly _tag: "ConflictError";
3272
+ readonly message: string;
3273
+ readonly resource?: string | undefined;
3274
+ };
3275
+ export declare const isConflictError: (value: unknown) => value is ConflictError;
3251
3276
  export type UnknownError = {
3252
3277
  readonly _tag: "UnknownError";
3253
3278
  readonly message: string;
@@ -3279,12 +3304,6 @@ export type SkillNotFoundError = {
3279
3304
  readonly message: string;
3280
3305
  };
3281
3306
  export declare const isSkillNotFoundError: (value: unknown) => value is SkillNotFoundError;
3282
- export type ServiceUnavailableError = {
3283
- readonly _tag: "ServiceUnavailableError";
3284
- readonly message: string;
3285
- readonly service?: string | undefined;
3286
- };
3287
- export declare const isServiceUnavailableError: (value: unknown) => value is ServiceUnavailableError;
3288
3307
  export type SessionBusyError = {
3289
3308
  readonly _tag: "SessionBusyError";
3290
3309
  readonly sessionID: string;
@@ -3304,6 +3323,26 @@ export type ProviderNotFoundError = {
3304
3323
  readonly message: string;
3305
3324
  };
3306
3325
  export declare const isProviderNotFoundError: (value: unknown) => value is ProviderNotFoundError;
3326
+ export type IntegrationNotFoundError = {
3327
+ readonly _tag: "IntegrationNotFoundError";
3328
+ readonly integrationID: string;
3329
+ readonly message: string;
3330
+ };
3331
+ export declare const isIntegrationNotFoundError: (value: unknown) => value is IntegrationNotFoundError;
3332
+ export type IntegrationAttemptNotFoundError = {
3333
+ readonly _tag: "IntegrationAttemptNotFoundError";
3334
+ readonly integrationID: string;
3335
+ readonly attemptID: string;
3336
+ readonly message: string;
3337
+ };
3338
+ export declare const isIntegrationAttemptNotFoundError: (value: unknown) => value is IntegrationAttemptNotFoundError;
3339
+ export type IntegrationMethodNotFoundError = {
3340
+ readonly _tag: "IntegrationMethodNotFoundError";
3341
+ readonly integrationID: string;
3342
+ readonly methodID: string;
3343
+ readonly message: string;
3344
+ };
3345
+ export declare const isIntegrationMethodNotFoundError: (value: unknown) => value is IntegrationMethodNotFoundError;
3307
3346
  export type McpServerNotFoundError = {
3308
3347
  readonly _tag: "McpServerNotFoundError";
3309
3348
  readonly server: string;
@@ -3322,24 +3361,44 @@ export type FormNotFoundError = {
3322
3361
  readonly message: string;
3323
3362
  };
3324
3363
  export declare const isFormNotFoundError: (value: unknown) => value is FormNotFoundError;
3325
- export type FormAlreadySettledError = {
3326
- readonly _tag: "FormAlreadySettledError";
3327
- readonly id: string;
3328
- readonly message: string;
3329
- };
3330
- export declare const isFormAlreadySettledError: (value: unknown) => value is FormAlreadySettledError;
3331
3364
  export type FormInvalidAnswerError = {
3332
3365
  readonly _tag: "FormInvalidAnswerError";
3333
3366
  readonly id: string;
3334
3367
  readonly message: string;
3335
3368
  };
3336
3369
  export declare const isFormInvalidAnswerError: (value: unknown) => value is FormInvalidAnswerError;
3370
+ export type FormAlreadySettledError = {
3371
+ readonly _tag: "FormAlreadySettledError";
3372
+ readonly id: string;
3373
+ readonly message: string;
3374
+ };
3375
+ export declare const isFormAlreadySettledError: (value: unknown) => value is FormAlreadySettledError;
3337
3376
  export type PermissionNotFoundError = {
3338
3377
  readonly _tag: "PermissionNotFoundError";
3339
3378
  readonly requestID: string;
3340
3379
  readonly message: string;
3341
3380
  };
3342
3381
  export declare const isPermissionNotFoundError: (value: unknown) => value is PermissionNotFoundError;
3382
+ export type FileNotFoundError = {
3383
+ readonly _tag: "FileNotFoundError";
3384
+ readonly path: string;
3385
+ readonly message: string;
3386
+ };
3387
+ export declare const isFileNotFoundError: (value: unknown) => value is FileNotFoundError;
3388
+ export type RpcError = {
3389
+ readonly _tag: "RpcError";
3390
+ readonly type: string;
3391
+ readonly message: string;
3392
+ readonly data?: unknown | undefined;
3393
+ };
3394
+ export declare const isRpcError: (value: unknown) => value is RpcError;
3395
+ export type RpcInternalError = {
3396
+ readonly _tag: "RpcInternalError";
3397
+ readonly type: "rpc.internal" | "rpc.invalid_output";
3398
+ readonly message: string;
3399
+ readonly data?: unknown | undefined;
3400
+ };
3401
+ export declare const isRpcInternalError: (value: unknown) => value is RpcInternalError;
3343
3402
  export type PtyNotFoundError = {
3344
3403
  readonly _tag: "PtyNotFoundError";
3345
3404
  readonly ptyID: string;
@@ -3365,45 +3424,24 @@ export type WorktreeError = {
3365
3424
  };
3366
3425
  };
3367
3426
  export declare const isWorktreeError: (value: unknown) => value is WorktreeError;
3368
- export type HealthGetOutput = ServiceHealth;
3369
- export type ServerGetOutput = {
3370
- urls: Array<string>;
3371
- };
3427
+ export type ServerStatusOutput = ServerStatus;
3372
3428
  export type LocationGetInput = {
3373
3429
  readonly location?: {
3374
3430
  readonly location?: {
3375
3431
  readonly directory?: string | undefined;
3376
- readonly workspace?: string | undefined;
3377
3432
  } | undefined;
3378
3433
  }["location"];
3379
3434
  };
3380
- export type LocationGetOutput = {
3381
- directory: string;
3382
- workspaceID?: string;
3383
- project: {
3384
- id: string;
3385
- directory: string;
3386
- canonical: string;
3387
- };
3388
- };
3435
+ export type LocationGetOutput = LocationPublicInfo;
3389
3436
  export type AgentListInput = {
3390
3437
  readonly location?: {
3391
3438
  readonly location?: {
3392
3439
  readonly directory?: string | undefined;
3393
- readonly workspace?: string | undefined;
3394
3440
  } | undefined;
3395
3441
  }["location"];
3396
3442
  };
3397
3443
  export type AgentListOutput = {
3398
- location: {
3399
- directory: string;
3400
- workspaceID?: string;
3401
- project: {
3402
- id: string;
3403
- directory: string;
3404
- canonical: string;
3405
- };
3406
- };
3444
+ location: LocationPublicRef;
3407
3445
  data: Array<AgentInfo>;
3408
3446
  };
3409
3447
  export type AgentGetInput = {
@@ -3413,56 +3451,51 @@ export type AgentGetInput = {
3413
3451
  readonly location?: {
3414
3452
  readonly location?: {
3415
3453
  readonly directory?: string | undefined;
3416
- readonly workspace?: string | undefined;
3417
3454
  } | undefined;
3418
3455
  }["location"];
3419
3456
  };
3420
3457
  export type AgentGetOutput = {
3421
- location: {
3422
- directory: string;
3423
- workspaceID?: string;
3424
- project: {
3425
- id: string;
3426
- directory: string;
3427
- canonical: string;
3428
- };
3429
- };
3458
+ location: LocationPublicRef;
3430
3459
  data: AgentInfo;
3431
3460
  };
3432
3461
  export type PluginListInput = {
3433
3462
  readonly location?: {
3434
3463
  readonly location?: {
3435
3464
  readonly directory?: string | undefined;
3436
- readonly workspace?: string | undefined;
3437
3465
  } | undefined;
3438
3466
  }["location"];
3439
3467
  };
3440
3468
  export type PluginListOutput = {
3441
- location: {
3442
- directory: string;
3443
- workspaceID?: string;
3444
- project: {
3445
- id: string;
3446
- directory: string;
3447
- canonical: string;
3448
- };
3449
- };
3469
+ location: LocationPublicRef;
3470
+ data: Array<PluginInfo>;
3471
+ };
3472
+ export type PluginCheckInput = {
3473
+ readonly location?: {
3474
+ readonly location?: {
3475
+ readonly directory?: string | undefined;
3476
+ } | undefined;
3477
+ }["location"];
3478
+ readonly target?: {
3479
+ readonly target?: string | undefined;
3480
+ }["target"];
3481
+ };
3482
+ export type PluginCheckOutput = {
3483
+ location: LocationPublicRef;
3450
3484
  data: Array<PluginInfo>;
3451
3485
  };
3486
+ export type PluginUpdateInput = {
3487
+ readonly location?: {
3488
+ readonly location?: {
3489
+ readonly directory?: string | undefined;
3490
+ } | undefined;
3491
+ }["location"];
3492
+ readonly targets: {
3493
+ readonly targets: ReadonlyArray<string>;
3494
+ }["targets"];
3495
+ };
3496
+ export type PluginUpdateOutput = void;
3452
3497
  export type SessionListInput = {
3453
- readonly workspace?: {
3454
- readonly workspace?: string | undefined;
3455
- readonly limit?: number | undefined;
3456
- readonly order?: "asc" | "desc" | undefined;
3457
- readonly search?: string | undefined;
3458
- readonly parentID?: string | null | undefined;
3459
- readonly directory?: string | undefined;
3460
- readonly project?: string | undefined;
3461
- readonly subpath?: string | undefined;
3462
- readonly cursor?: string | undefined;
3463
- }["workspace"];
3464
3498
  readonly limit?: {
3465
- readonly workspace?: string | undefined;
3466
3499
  readonly limit?: number | undefined;
3467
3500
  readonly order?: "asc" | "desc" | undefined;
3468
3501
  readonly search?: string | undefined;
@@ -3473,7 +3506,6 @@ export type SessionListInput = {
3473
3506
  readonly cursor?: string | undefined;
3474
3507
  }["limit"];
3475
3508
  readonly order?: {
3476
- readonly workspace?: string | undefined;
3477
3509
  readonly limit?: number | undefined;
3478
3510
  readonly order?: "asc" | "desc" | undefined;
3479
3511
  readonly search?: string | undefined;
@@ -3484,7 +3516,6 @@ export type SessionListInput = {
3484
3516
  readonly cursor?: string | undefined;
3485
3517
  }["order"];
3486
3518
  readonly search?: {
3487
- readonly workspace?: string | undefined;
3488
3519
  readonly limit?: number | undefined;
3489
3520
  readonly order?: "asc" | "desc" | undefined;
3490
3521
  readonly search?: string | undefined;
@@ -3495,7 +3526,6 @@ export type SessionListInput = {
3495
3526
  readonly cursor?: string | undefined;
3496
3527
  }["search"];
3497
3528
  readonly parentID?: {
3498
- readonly workspace?: string | undefined;
3499
3529
  readonly limit?: number | undefined;
3500
3530
  readonly order?: "asc" | "desc" | undefined;
3501
3531
  readonly search?: string | undefined;
@@ -3506,7 +3536,6 @@ export type SessionListInput = {
3506
3536
  readonly cursor?: string | undefined;
3507
3537
  }["parentID"];
3508
3538
  readonly directory?: {
3509
- readonly workspace?: string | undefined;
3510
3539
  readonly limit?: number | undefined;
3511
3540
  readonly order?: "asc" | "desc" | undefined;
3512
3541
  readonly search?: string | undefined;
@@ -3517,7 +3546,6 @@ export type SessionListInput = {
3517
3546
  readonly cursor?: string | undefined;
3518
3547
  }["directory"];
3519
3548
  readonly project?: {
3520
- readonly workspace?: string | undefined;
3521
3549
  readonly limit?: number | undefined;
3522
3550
  readonly order?: "asc" | "desc" | undefined;
3523
3551
  readonly search?: string | undefined;
@@ -3528,7 +3556,6 @@ export type SessionListInput = {
3528
3556
  readonly cursor?: string | undefined;
3529
3557
  }["project"];
3530
3558
  readonly subpath?: {
3531
- readonly workspace?: string | undefined;
3532
3559
  readonly limit?: number | undefined;
3533
3560
  readonly order?: "asc" | "desc" | undefined;
3534
3561
  readonly search?: string | undefined;
@@ -3539,7 +3566,6 @@ export type SessionListInput = {
3539
3566
  readonly cursor?: string | undefined;
3540
3567
  }["subpath"];
3541
3568
  readonly cursor?: {
3542
- readonly workspace?: string | undefined;
3543
3569
  readonly limit?: number | undefined;
3544
3570
  readonly order?: "asc" | "desc" | undefined;
3545
3571
  readonly search?: string | undefined;
@@ -3603,22 +3629,14 @@ export type SessionCreateInput = {
3603
3629
  } | null;
3604
3630
  readonly location?: {
3605
3631
  readonly directory: string;
3606
- readonly workspaceID?: string;
3607
- } | null;
3608
- readonly policy?: {
3609
- readonly tools: {
3610
- readonly allow: ReadonlyArray<string>;
3611
- };
3612
3632
  } | null;
3613
3633
  readonly metadata?: {
3614
3634
  readonly [x: string]: JsonValue;
3615
3635
  } | null;
3616
- readonly tools?: ReadonlyArray<{
3617
- readonly name: string;
3618
- readonly description: string;
3619
- readonly parameters?: {
3620
- readonly [x: string]: JsonValue;
3621
- };
3636
+ readonly permissions?: ReadonlyArray<{
3637
+ readonly action: string;
3638
+ readonly resource: string;
3639
+ readonly effect: "allow" | "deny" | "ask";
3622
3640
  }> | null;
3623
3641
  }["id"];
3624
3642
  readonly title?: {
@@ -3632,22 +3650,14 @@ export type SessionCreateInput = {
3632
3650
  } | null;
3633
3651
  readonly location?: {
3634
3652
  readonly directory: string;
3635
- readonly workspaceID?: string;
3636
- } | null;
3637
- readonly policy?: {
3638
- readonly tools: {
3639
- readonly allow: ReadonlyArray<string>;
3640
- };
3641
3653
  } | null;
3642
3654
  readonly metadata?: {
3643
3655
  readonly [x: string]: JsonValue;
3644
3656
  } | null;
3645
- readonly tools?: ReadonlyArray<{
3646
- readonly name: string;
3647
- readonly description: string;
3648
- readonly parameters?: {
3649
- readonly [x: string]: JsonValue;
3650
- };
3657
+ readonly permissions?: ReadonlyArray<{
3658
+ readonly action: string;
3659
+ readonly resource: string;
3660
+ readonly effect: "allow" | "deny" | "ask";
3651
3661
  }> | null;
3652
3662
  }["title"];
3653
3663
  readonly agent?: {
@@ -3661,22 +3671,14 @@ export type SessionCreateInput = {
3661
3671
  } | null;
3662
3672
  readonly location?: {
3663
3673
  readonly directory: string;
3664
- readonly workspaceID?: string;
3665
- } | null;
3666
- readonly policy?: {
3667
- readonly tools: {
3668
- readonly allow: ReadonlyArray<string>;
3669
- };
3670
3674
  } | null;
3671
3675
  readonly metadata?: {
3672
3676
  readonly [x: string]: JsonValue;
3673
3677
  } | null;
3674
- readonly tools?: ReadonlyArray<{
3675
- readonly name: string;
3676
- readonly description: string;
3677
- readonly parameters?: {
3678
- readonly [x: string]: JsonValue;
3679
- };
3678
+ readonly permissions?: ReadonlyArray<{
3679
+ readonly action: string;
3680
+ readonly resource: string;
3681
+ readonly effect: "allow" | "deny" | "ask";
3680
3682
  }> | null;
3681
3683
  }["agent"];
3682
3684
  readonly model?: {
@@ -3690,22 +3692,14 @@ export type SessionCreateInput = {
3690
3692
  } | null;
3691
3693
  readonly location?: {
3692
3694
  readonly directory: string;
3693
- readonly workspaceID?: string;
3694
- } | null;
3695
- readonly policy?: {
3696
- readonly tools: {
3697
- readonly allow: ReadonlyArray<string>;
3698
- };
3699
3695
  } | null;
3700
3696
  readonly metadata?: {
3701
3697
  readonly [x: string]: JsonValue;
3702
3698
  } | null;
3703
- readonly tools?: ReadonlyArray<{
3704
- readonly name: string;
3705
- readonly description: string;
3706
- readonly parameters?: {
3707
- readonly [x: string]: JsonValue;
3708
- };
3699
+ readonly permissions?: ReadonlyArray<{
3700
+ readonly action: string;
3701
+ readonly resource: string;
3702
+ readonly effect: "allow" | "deny" | "ask";
3709
3703
  }> | null;
3710
3704
  }["model"];
3711
3705
  readonly location?: {
@@ -3719,53 +3713,16 @@ export type SessionCreateInput = {
3719
3713
  } | null;
3720
3714
  readonly location?: {
3721
3715
  readonly directory: string;
3722
- readonly workspaceID?: string;
3723
- } | null;
3724
- readonly policy?: {
3725
- readonly tools: {
3726
- readonly allow: ReadonlyArray<string>;
3727
- };
3728
3716
  } | null;
3729
3717
  readonly metadata?: {
3730
3718
  readonly [x: string]: JsonValue;
3731
3719
  } | null;
3732
- readonly tools?: ReadonlyArray<{
3733
- readonly name: string;
3734
- readonly description: string;
3735
- readonly parameters?: {
3736
- readonly [x: string]: JsonValue;
3737
- };
3720
+ readonly permissions?: ReadonlyArray<{
3721
+ readonly action: string;
3722
+ readonly resource: string;
3723
+ readonly effect: "allow" | "deny" | "ask";
3738
3724
  }> | null;
3739
3725
  }["location"];
3740
- readonly policy?: {
3741
- readonly id?: string | null;
3742
- readonly title?: string | null;
3743
- readonly agent?: string | null;
3744
- readonly model?: {
3745
- readonly id: string;
3746
- readonly providerID: string;
3747
- readonly variant?: string;
3748
- } | null;
3749
- readonly location?: {
3750
- readonly directory: string;
3751
- readonly workspaceID?: string;
3752
- } | null;
3753
- readonly policy?: {
3754
- readonly tools: {
3755
- readonly allow: ReadonlyArray<string>;
3756
- };
3757
- } | null;
3758
- readonly metadata?: {
3759
- readonly [x: string]: JsonValue;
3760
- } | null;
3761
- readonly tools?: ReadonlyArray<{
3762
- readonly name: string;
3763
- readonly description: string;
3764
- readonly parameters?: {
3765
- readonly [x: string]: JsonValue;
3766
- };
3767
- }> | null;
3768
- }["policy"];
3769
3726
  readonly metadata?: {
3770
3727
  readonly id?: string | null;
3771
3728
  readonly title?: string | null;
@@ -3776,26 +3733,18 @@ export type SessionCreateInput = {
3776
3733
  readonly variant?: string;
3777
3734
  } | null;
3778
3735
  readonly location?: {
3779
- readonly directory: string;
3780
- readonly workspaceID?: string;
3781
- } | null;
3782
- readonly policy?: {
3783
- readonly tools: {
3784
- readonly allow: ReadonlyArray<string>;
3785
- };
3736
+ readonly directory: string;
3786
3737
  } | null;
3787
3738
  readonly metadata?: {
3788
3739
  readonly [x: string]: JsonValue;
3789
3740
  } | null;
3790
- readonly tools?: ReadonlyArray<{
3791
- readonly name: string;
3792
- readonly description: string;
3793
- readonly parameters?: {
3794
- readonly [x: string]: JsonValue;
3795
- };
3741
+ readonly permissions?: ReadonlyArray<{
3742
+ readonly action: string;
3743
+ readonly resource: string;
3744
+ readonly effect: "allow" | "deny" | "ask";
3796
3745
  }> | null;
3797
3746
  }["metadata"];
3798
- readonly tools?: {
3747
+ readonly permissions?: {
3799
3748
  readonly id?: string | null;
3800
3749
  readonly title?: string | null;
3801
3750
  readonly agent?: string | null;
@@ -3806,24 +3755,16 @@ export type SessionCreateInput = {
3806
3755
  } | null;
3807
3756
  readonly location?: {
3808
3757
  readonly directory: string;
3809
- readonly workspaceID?: string;
3810
- } | null;
3811
- readonly policy?: {
3812
- readonly tools: {
3813
- readonly allow: ReadonlyArray<string>;
3814
- };
3815
3758
  } | null;
3816
3759
  readonly metadata?: {
3817
3760
  readonly [x: string]: JsonValue;
3818
3761
  } | null;
3819
- readonly tools?: ReadonlyArray<{
3820
- readonly name: string;
3821
- readonly description: string;
3822
- readonly parameters?: {
3823
- readonly [x: string]: JsonValue;
3824
- };
3762
+ readonly permissions?: ReadonlyArray<{
3763
+ readonly action: string;
3764
+ readonly resource: string;
3765
+ readonly effect: "allow" | "deny" | "ask";
3825
3766
  }> | null;
3826
- }["tools"];
3767
+ }["permissions"];
3827
3768
  };
3828
3769
  export type SessionCreateOutput = {
3829
3770
  data: SessionInfo;
@@ -3869,14 +3810,15 @@ export type SessionImportInput = {
3869
3810
  readonly archived?: number;
3870
3811
  };
3871
3812
  readonly title?: string;
3872
- readonly location: {
3873
- readonly directory: string;
3874
- readonly workspaceID?: string;
3875
- };
3876
3813
  readonly subpath?: string;
3877
3814
  readonly metadata?: {
3878
3815
  readonly [x: string]: JsonValue;
3879
3816
  };
3817
+ readonly permissions?: ReadonlyArray<{
3818
+ readonly action: string;
3819
+ readonly resource: string;
3820
+ readonly effect: "allow" | "deny" | "ask";
3821
+ }>;
3880
3822
  readonly revert?: {
3881
3823
  readonly messageID: string;
3882
3824
  readonly partID?: string;
@@ -3889,10 +3831,8 @@ export type SessionImportInput = {
3889
3831
  readonly status: "added" | "deleted" | "modified";
3890
3832
  }>;
3891
3833
  };
3892
- readonly policy?: {
3893
- readonly tools: {
3894
- readonly allow: ReadonlyArray<string>;
3895
- };
3834
+ readonly location: {
3835
+ readonly directory: string;
3896
3836
  };
3897
3837
  };
3898
3838
  readonly messages: ReadonlyArray<{
@@ -3934,20 +3874,18 @@ export type SessionImportInput = {
3934
3874
  readonly created: number;
3935
3875
  };
3936
3876
  readonly type: "location-switched";
3877
+ readonly projectID?: string;
3878
+ readonly subpath?: string;
3937
3879
  readonly location: {
3938
3880
  readonly directory: string;
3939
- readonly workspaceID?: string;
3940
3881
  };
3941
- readonly projectID?: string;
3942
- readonly subpath?: string;
3943
3882
  readonly previous?: {
3944
3883
  readonly location: {
3945
3884
  readonly directory: string;
3946
- readonly workspaceID?: string;
3947
3885
  };
3948
3886
  readonly projectID?: string;
3949
3887
  readonly subpath?: string;
3950
- };
3888
+ } | null;
3951
3889
  } | {
3952
3890
  readonly id: string;
3953
3891
  readonly metadata?: {
@@ -4228,8 +4166,38 @@ export type SessionImportInput = {
4228
4166
  };
4229
4167
  readonly status: "completed";
4230
4168
  readonly reason: "auto" | "manual";
4169
+ readonly model?: {
4170
+ readonly id: string;
4171
+ readonly providerID: string;
4172
+ readonly variant?: string;
4173
+ };
4174
+ readonly providerState?: {
4175
+ readonly [x: string]: JsonValue;
4176
+ };
4231
4177
  readonly summary: string;
4232
4178
  readonly recent: string;
4179
+ readonly providerContext?: {
4180
+ readonly version: 1;
4181
+ readonly provenance: {
4182
+ readonly providerID: string;
4183
+ readonly provider: string;
4184
+ readonly modelID: string;
4185
+ readonly route: string;
4186
+ readonly protocol: string;
4187
+ readonly endpoint: string;
4188
+ };
4189
+ readonly messages: JsonValue;
4190
+ };
4191
+ readonly cost?: number;
4192
+ readonly tokens?: {
4193
+ readonly input: number;
4194
+ readonly output: number;
4195
+ readonly reasoning: number;
4196
+ readonly cache: {
4197
+ readonly read: number;
4198
+ readonly write: number;
4199
+ };
4200
+ };
4233
4201
  } | {
4234
4202
  readonly type: "compaction";
4235
4203
  readonly id: string;
@@ -4246,10 +4214,29 @@ export type SessionImportInput = {
4246
4214
  readonly message: string;
4247
4215
  readonly status?: number;
4248
4216
  };
4249
- })>;
4217
+ readonly cost?: number;
4218
+ readonly tokens?: {
4219
+ readonly input: number;
4220
+ readonly output: number;
4221
+ readonly reasoning: number;
4222
+ readonly cache: {
4223
+ readonly read: number;
4224
+ readonly write: number;
4225
+ };
4226
+ };
4227
+ }) | {
4228
+ readonly id: string;
4229
+ readonly metadata?: {
4230
+ readonly [x: string]: JsonValue;
4231
+ };
4232
+ readonly time: {
4233
+ readonly created: number;
4234
+ };
4235
+ readonly type: "idle";
4236
+ readonly outcome: "succeeded" | "failed" | "interrupted";
4237
+ }>;
4250
4238
  readonly location?: {
4251
4239
  readonly directory: string;
4252
- readonly workspaceID?: string;
4253
4240
  } | null;
4254
4241
  }["info"];
4255
4242
  readonly messages: {
@@ -4292,14 +4279,15 @@ export type SessionImportInput = {
4292
4279
  readonly archived?: number;
4293
4280
  };
4294
4281
  readonly title?: string;
4295
- readonly location: {
4296
- readonly directory: string;
4297
- readonly workspaceID?: string;
4298
- };
4299
4282
  readonly subpath?: string;
4300
4283
  readonly metadata?: {
4301
4284
  readonly [x: string]: JsonValue;
4302
4285
  };
4286
+ readonly permissions?: ReadonlyArray<{
4287
+ readonly action: string;
4288
+ readonly resource: string;
4289
+ readonly effect: "allow" | "deny" | "ask";
4290
+ }>;
4303
4291
  readonly revert?: {
4304
4292
  readonly messageID: string;
4305
4293
  readonly partID?: string;
@@ -4312,10 +4300,8 @@ export type SessionImportInput = {
4312
4300
  readonly status: "added" | "deleted" | "modified";
4313
4301
  }>;
4314
4302
  };
4315
- readonly policy?: {
4316
- readonly tools: {
4317
- readonly allow: ReadonlyArray<string>;
4318
- };
4303
+ readonly location: {
4304
+ readonly directory: string;
4319
4305
  };
4320
4306
  };
4321
4307
  readonly messages: ReadonlyArray<{
@@ -4357,20 +4343,18 @@ export type SessionImportInput = {
4357
4343
  readonly created: number;
4358
4344
  };
4359
4345
  readonly type: "location-switched";
4346
+ readonly projectID?: string;
4347
+ readonly subpath?: string;
4360
4348
  readonly location: {
4361
4349
  readonly directory: string;
4362
- readonly workspaceID?: string;
4363
4350
  };
4364
- readonly projectID?: string;
4365
- readonly subpath?: string;
4366
4351
  readonly previous?: {
4367
4352
  readonly location: {
4368
4353
  readonly directory: string;
4369
- readonly workspaceID?: string;
4370
4354
  };
4371
4355
  readonly projectID?: string;
4372
4356
  readonly subpath?: string;
4373
- };
4357
+ } | null;
4374
4358
  } | {
4375
4359
  readonly id: string;
4376
4360
  readonly metadata?: {
@@ -4651,8 +4635,38 @@ export type SessionImportInput = {
4651
4635
  };
4652
4636
  readonly status: "completed";
4653
4637
  readonly reason: "auto" | "manual";
4638
+ readonly model?: {
4639
+ readonly id: string;
4640
+ readonly providerID: string;
4641
+ readonly variant?: string;
4642
+ };
4643
+ readonly providerState?: {
4644
+ readonly [x: string]: JsonValue;
4645
+ };
4654
4646
  readonly summary: string;
4655
4647
  readonly recent: string;
4648
+ readonly providerContext?: {
4649
+ readonly version: 1;
4650
+ readonly provenance: {
4651
+ readonly providerID: string;
4652
+ readonly provider: string;
4653
+ readonly modelID: string;
4654
+ readonly route: string;
4655
+ readonly protocol: string;
4656
+ readonly endpoint: string;
4657
+ };
4658
+ readonly messages: JsonValue;
4659
+ };
4660
+ readonly cost?: number;
4661
+ readonly tokens?: {
4662
+ readonly input: number;
4663
+ readonly output: number;
4664
+ readonly reasoning: number;
4665
+ readonly cache: {
4666
+ readonly read: number;
4667
+ readonly write: number;
4668
+ };
4669
+ };
4656
4670
  } | {
4657
4671
  readonly type: "compaction";
4658
4672
  readonly id: string;
@@ -4669,10 +4683,29 @@ export type SessionImportInput = {
4669
4683
  readonly message: string;
4670
4684
  readonly status?: number;
4671
4685
  };
4672
- })>;
4686
+ readonly cost?: number;
4687
+ readonly tokens?: {
4688
+ readonly input: number;
4689
+ readonly output: number;
4690
+ readonly reasoning: number;
4691
+ readonly cache: {
4692
+ readonly read: number;
4693
+ readonly write: number;
4694
+ };
4695
+ };
4696
+ }) | {
4697
+ readonly id: string;
4698
+ readonly metadata?: {
4699
+ readonly [x: string]: JsonValue;
4700
+ };
4701
+ readonly time: {
4702
+ readonly created: number;
4703
+ };
4704
+ readonly type: "idle";
4705
+ readonly outcome: "succeeded" | "failed" | "interrupted";
4706
+ }>;
4673
4707
  readonly location?: {
4674
4708
  readonly directory: string;
4675
- readonly workspaceID?: string;
4676
4709
  } | null;
4677
4710
  }["messages"];
4678
4711
  readonly location?: {
@@ -4715,14 +4748,15 @@ export type SessionImportInput = {
4715
4748
  readonly archived?: number;
4716
4749
  };
4717
4750
  readonly title?: string;
4718
- readonly location: {
4719
- readonly directory: string;
4720
- readonly workspaceID?: string;
4721
- };
4722
4751
  readonly subpath?: string;
4723
4752
  readonly metadata?: {
4724
4753
  readonly [x: string]: JsonValue;
4725
4754
  };
4755
+ readonly permissions?: ReadonlyArray<{
4756
+ readonly action: string;
4757
+ readonly resource: string;
4758
+ readonly effect: "allow" | "deny" | "ask";
4759
+ }>;
4726
4760
  readonly revert?: {
4727
4761
  readonly messageID: string;
4728
4762
  readonly partID?: string;
@@ -4735,10 +4769,8 @@ export type SessionImportInput = {
4735
4769
  readonly status: "added" | "deleted" | "modified";
4736
4770
  }>;
4737
4771
  };
4738
- readonly policy?: {
4739
- readonly tools: {
4740
- readonly allow: ReadonlyArray<string>;
4741
- };
4772
+ readonly location: {
4773
+ readonly directory: string;
4742
4774
  };
4743
4775
  };
4744
4776
  readonly messages: ReadonlyArray<{
@@ -4780,20 +4812,18 @@ export type SessionImportInput = {
4780
4812
  readonly created: number;
4781
4813
  };
4782
4814
  readonly type: "location-switched";
4815
+ readonly projectID?: string;
4816
+ readonly subpath?: string;
4783
4817
  readonly location: {
4784
4818
  readonly directory: string;
4785
- readonly workspaceID?: string;
4786
4819
  };
4787
- readonly projectID?: string;
4788
- readonly subpath?: string;
4789
4820
  readonly previous?: {
4790
4821
  readonly location: {
4791
4822
  readonly directory: string;
4792
- readonly workspaceID?: string;
4793
4823
  };
4794
4824
  readonly projectID?: string;
4795
4825
  readonly subpath?: string;
4796
- };
4826
+ } | null;
4797
4827
  } | {
4798
4828
  readonly id: string;
4799
4829
  readonly metadata?: {
@@ -5074,8 +5104,38 @@ export type SessionImportInput = {
5074
5104
  };
5075
5105
  readonly status: "completed";
5076
5106
  readonly reason: "auto" | "manual";
5107
+ readonly model?: {
5108
+ readonly id: string;
5109
+ readonly providerID: string;
5110
+ readonly variant?: string;
5111
+ };
5112
+ readonly providerState?: {
5113
+ readonly [x: string]: JsonValue;
5114
+ };
5077
5115
  readonly summary: string;
5078
5116
  readonly recent: string;
5117
+ readonly providerContext?: {
5118
+ readonly version: 1;
5119
+ readonly provenance: {
5120
+ readonly providerID: string;
5121
+ readonly provider: string;
5122
+ readonly modelID: string;
5123
+ readonly route: string;
5124
+ readonly protocol: string;
5125
+ readonly endpoint: string;
5126
+ };
5127
+ readonly messages: JsonValue;
5128
+ };
5129
+ readonly cost?: number;
5130
+ readonly tokens?: {
5131
+ readonly input: number;
5132
+ readonly output: number;
5133
+ readonly reasoning: number;
5134
+ readonly cache: {
5135
+ readonly read: number;
5136
+ readonly write: number;
5137
+ };
5138
+ };
5079
5139
  } | {
5080
5140
  readonly type: "compaction";
5081
5141
  readonly id: string;
@@ -5092,10 +5152,29 @@ export type SessionImportInput = {
5092
5152
  readonly message: string;
5093
5153
  readonly status?: number;
5094
5154
  };
5095
- })>;
5155
+ readonly cost?: number;
5156
+ readonly tokens?: {
5157
+ readonly input: number;
5158
+ readonly output: number;
5159
+ readonly reasoning: number;
5160
+ readonly cache: {
5161
+ readonly read: number;
5162
+ readonly write: number;
5163
+ };
5164
+ };
5165
+ }) | {
5166
+ readonly id: string;
5167
+ readonly metadata?: {
5168
+ readonly [x: string]: JsonValue;
5169
+ };
5170
+ readonly time: {
5171
+ readonly created: number;
5172
+ };
5173
+ readonly type: "idle";
5174
+ readonly outcome: "succeeded" | "failed" | "interrupted";
5175
+ }>;
5096
5176
  readonly location?: {
5097
5177
  readonly directory: string;
5098
- readonly workspaceID?: string;
5099
5178
  } | null;
5100
5179
  }["location"];
5101
5180
  };
@@ -5136,66 +5215,9 @@ export type SessionForkInput = {
5136
5215
  readonly sessionID: {
5137
5216
  readonly sessionID: string;
5138
5217
  }["sessionID"];
5139
- readonly boundary: {
5140
- readonly boundary: {
5141
- readonly type: "before";
5142
- readonly messageID: string;
5143
- } | {
5144
- readonly type: "through";
5145
- };
5146
- readonly policy?: {
5147
- readonly tools: {
5148
- readonly allow: ReadonlyArray<string>;
5149
- };
5150
- } | null;
5151
- readonly tools?: ReadonlyArray<{
5152
- readonly name: string;
5153
- readonly description: string;
5154
- readonly parameters?: {
5155
- readonly [x: string]: JsonValue;
5156
- };
5157
- }> | null;
5158
- }["boundary"];
5159
- readonly policy?: {
5160
- readonly boundary: {
5161
- readonly type: "before";
5162
- readonly messageID: string;
5163
- } | {
5164
- readonly type: "through";
5165
- };
5166
- readonly policy?: {
5167
- readonly tools: {
5168
- readonly allow: ReadonlyArray<string>;
5169
- };
5170
- } | null;
5171
- readonly tools?: ReadonlyArray<{
5172
- readonly name: string;
5173
- readonly description: string;
5174
- readonly parameters?: {
5175
- readonly [x: string]: JsonValue;
5176
- };
5177
- }> | null;
5178
- }["policy"];
5179
- readonly tools?: {
5180
- readonly boundary: {
5181
- readonly type: "before";
5182
- readonly messageID: string;
5183
- } | {
5184
- readonly type: "through";
5185
- };
5186
- readonly policy?: {
5187
- readonly tools: {
5188
- readonly allow: ReadonlyArray<string>;
5189
- };
5190
- } | null;
5191
- readonly tools?: ReadonlyArray<{
5192
- readonly name: string;
5193
- readonly description: string;
5194
- readonly parameters?: {
5195
- readonly [x: string]: JsonValue;
5196
- };
5197
- }> | null;
5198
- }["tools"];
5218
+ readonly before?: {
5219
+ readonly before?: string | undefined;
5220
+ }["before"];
5199
5221
  };
5200
5222
  export type SessionForkOutput = {
5201
5223
  data: SessionInfo;
@@ -5237,18 +5259,11 @@ export type SessionMoveInput = {
5237
5259
  }["sessionID"];
5238
5260
  readonly directory: {
5239
5261
  readonly directory: string;
5240
- readonly workspaceID?: string;
5241
- readonly delivery?: ("steer" | "queue") | null;
5262
+ readonly delivery?: ("steer" | "queue") | undefined;
5242
5263
  }["directory"];
5243
- readonly workspaceID?: {
5244
- readonly directory: string;
5245
- readonly workspaceID?: string;
5246
- readonly delivery?: ("steer" | "queue") | null;
5247
- }["workspaceID"];
5248
5264
  readonly delivery?: {
5249
5265
  readonly directory: string;
5250
- readonly workspaceID?: string;
5251
- readonly delivery?: ("steer" | "queue") | null;
5266
+ readonly delivery?: ("steer" | "queue") | undefined;
5252
5267
  }["delivery"];
5253
5268
  };
5254
5269
  export type SessionMoveOutput = void;
@@ -5544,8 +5559,8 @@ export type SessionCommandInput = {
5544
5559
  readonly sessionID: {
5545
5560
  readonly sessionID: string;
5546
5561
  }["sessionID"];
5547
- readonly command: {
5548
- readonly command: string;
5562
+ readonly name: {
5563
+ readonly name: string;
5549
5564
  readonly text: string;
5550
5565
  readonly files?: ReadonlyArray<{
5551
5566
  readonly uri: string;
@@ -5574,9 +5589,9 @@ export type SessionCommandInput = {
5574
5589
  };
5575
5590
  }>;
5576
5591
  readonly delivery?: ("steer" | "queue") | null;
5577
- }["command"];
5592
+ }["name"];
5578
5593
  readonly text: {
5579
- readonly command: string;
5594
+ readonly name: string;
5580
5595
  readonly text: string;
5581
5596
  readonly files?: ReadonlyArray<{
5582
5597
  readonly uri: string;
@@ -5607,7 +5622,7 @@ export type SessionCommandInput = {
5607
5622
  readonly delivery?: ("steer" | "queue") | null;
5608
5623
  }["text"];
5609
5624
  readonly files?: {
5610
- readonly command: string;
5625
+ readonly name: string;
5611
5626
  readonly text: string;
5612
5627
  readonly files?: ReadonlyArray<{
5613
5628
  readonly uri: string;
@@ -5638,7 +5653,7 @@ export type SessionCommandInput = {
5638
5653
  readonly delivery?: ("steer" | "queue") | null;
5639
5654
  }["files"];
5640
5655
  readonly agents?: {
5641
- readonly command: string;
5656
+ readonly name: string;
5642
5657
  readonly text: string;
5643
5658
  readonly files?: ReadonlyArray<{
5644
5659
  readonly uri: string;
@@ -5669,7 +5684,7 @@ export type SessionCommandInput = {
5669
5684
  readonly delivery?: ("steer" | "queue") | null;
5670
5685
  }["agents"];
5671
5686
  readonly skills?: {
5672
- readonly command: string;
5687
+ readonly name: string;
5673
5688
  readonly text: string;
5674
5689
  readonly files?: ReadonlyArray<{
5675
5690
  readonly uri: string;
@@ -5700,7 +5715,7 @@ export type SessionCommandInput = {
5700
5715
  readonly delivery?: ("steer" | "queue") | null;
5701
5716
  }["skills"];
5702
5717
  readonly delivery?: {
5703
- readonly command: string;
5718
+ readonly name: string;
5704
5719
  readonly text: string;
5705
5720
  readonly files?: ReadonlyArray<{
5706
5721
  readonly uri: string;
@@ -5736,19 +5751,12 @@ export type SessionSkillInput = {
5736
5751
  readonly sessionID: {
5737
5752
  readonly sessionID: string;
5738
5753
  }["sessionID"];
5739
- readonly id?: {
5740
- readonly id?: string | undefined;
5741
- readonly skill: string;
5754
+ readonly id: {
5755
+ readonly id: string;
5742
5756
  readonly resume?: boolean | undefined;
5743
5757
  }["id"];
5744
- readonly skill: {
5745
- readonly id?: string | undefined;
5746
- readonly skill: string;
5747
- readonly resume?: boolean | undefined;
5748
- }["skill"];
5749
5758
  readonly resume?: {
5750
- readonly id?: string | undefined;
5751
- readonly skill: string;
5759
+ readonly id: string;
5752
5760
  readonly resume?: boolean | undefined;
5753
5761
  }["resume"];
5754
5762
  };
@@ -5893,6 +5901,29 @@ export type SessionContextInput = {
5893
5901
  export type SessionContextOutput = {
5894
5902
  data: Array<SessionMessageInfo>;
5895
5903
  }["data"];
5904
+ export type SessionDiffInput = {
5905
+ readonly sessionID: {
5906
+ readonly sessionID: string;
5907
+ }["sessionID"];
5908
+ readonly from?: {
5909
+ readonly from?: string | undefined;
5910
+ readonly to?: string | undefined;
5911
+ readonly context?: number | undefined;
5912
+ }["from"];
5913
+ readonly to?: {
5914
+ readonly from?: string | undefined;
5915
+ readonly to?: string | undefined;
5916
+ readonly context?: number | undefined;
5917
+ }["to"];
5918
+ readonly context?: {
5919
+ readonly from?: string | undefined;
5920
+ readonly to?: string | undefined;
5921
+ readonly context?: number | undefined;
5922
+ }["context"];
5923
+ };
5924
+ export type SessionDiffOutput = {
5925
+ data: Array<FileDiffInfo>;
5926
+ }["data"];
5896
5927
  export type SessionInboxListInput = {
5897
5928
  readonly sessionID: {
5898
5929
  readonly sessionID: string;
@@ -5961,61 +5992,12 @@ export type SessionInstructionsEntryRemoveInput = {
5961
5992
  readonly sessionID: string;
5962
5993
  readonly key: string;
5963
5994
  }["sessionID"];
5964
- readonly key: {
5965
- readonly sessionID: string;
5966
- readonly key: string;
5967
- }["key"];
5968
- };
5969
- export type SessionInstructionsEntryRemoveOutput = void;
5970
- export type SessionToolsPutInput = {
5971
- readonly sessionID: {
5972
- readonly sessionID: string;
5973
- }["sessionID"];
5974
- readonly tools: {
5975
- readonly tools: ReadonlyArray<{
5976
- readonly name: string;
5977
- readonly description: string;
5978
- readonly parameters?: {
5979
- readonly [x: string]: JsonValue;
5980
- };
5981
- }>;
5982
- }["tools"];
5983
- };
5984
- export type SessionToolsPutOutput = void;
5985
- export type SessionToolsListInput = {
5986
- readonly sessionID: {
5987
- readonly sessionID: string;
5988
- }["sessionID"];
5989
- };
5990
- export type SessionToolsListOutput = {
5991
- data: Array<SessionDynamicToolDefinition>;
5992
- }["data"];
5993
- export type SessionToolsCallsInput = {
5994
- readonly sessionID: {
5995
- readonly sessionID: string;
5996
- }["sessionID"];
5997
- };
5998
- export type SessionToolsCallsOutput = {
5999
- data: Array<SessionDynamicToolCall>;
6000
- }["data"];
6001
- export type SessionToolsReplyInput = {
6002
- readonly sessionID: {
6003
- readonly sessionID: string;
6004
- readonly callID: string;
6005
- }["sessionID"];
6006
- readonly callID: {
5995
+ readonly key: {
6007
5996
  readonly sessionID: string;
6008
- readonly callID: string;
6009
- }["callID"];
6010
- readonly payload: {
6011
- readonly status: "completed";
6012
- readonly content: string;
6013
- } | {
6014
- readonly status: "failed";
6015
- readonly message: string;
6016
- };
5997
+ readonly key: string;
5998
+ }["key"];
6017
5999
  };
6018
- export type SessionToolsReplyOutput = void;
6000
+ export type SessionInstructionsEntryRemoveOutput = void;
6019
6001
  export type SessionGenerateInput = {
6020
6002
  readonly sessionID: {
6021
6003
  readonly sessionID: string;
@@ -6043,9 +6025,9 @@ export type SessionInterruptInput = {
6043
6025
  readonly sessionID: {
6044
6026
  readonly sessionID: string;
6045
6027
  }["sessionID"];
6046
- readonly continue?: {
6047
- readonly continue?: boolean | undefined;
6048
- }["continue"];
6028
+ readonly resume?: {
6029
+ readonly resume?: boolean | undefined;
6030
+ }["resume"];
6049
6031
  };
6050
6032
  export type SessionInterruptOutput = SessionInterruptResponse;
6051
6033
  export type SessionBackgroundInput = {
@@ -6054,7 +6036,7 @@ export type SessionBackgroundInput = {
6054
6036
  }["sessionID"];
6055
6037
  };
6056
6038
  export type SessionBackgroundOutput = void;
6057
- export type SessionMessageInput = {
6039
+ export type SessionMessageGetInput = {
6058
6040
  readonly sessionID: {
6059
6041
  readonly sessionID: string;
6060
6042
  readonly messageID: string;
@@ -6064,130 +6046,9 @@ export type SessionMessageInput = {
6064
6046
  readonly messageID: string;
6065
6047
  }["messageID"];
6066
6048
  };
6067
- export type SessionMessageOutput = {
6049
+ export type SessionMessageGetOutput = {
6068
6050
  data: SessionMessageInfo;
6069
6051
  }["data"];
6070
- export type SessionMessageUpdateInput = {
6071
- readonly sessionID: {
6072
- readonly sessionID: string;
6073
- readonly messageID: string;
6074
- }["sessionID"];
6075
- readonly messageID: {
6076
- readonly sessionID: string;
6077
- readonly messageID: string;
6078
- }["messageID"];
6079
- readonly content: {
6080
- readonly content: ReadonlyArray<{
6081
- readonly type: "text";
6082
- readonly text: string;
6083
- readonly state?: {
6084
- readonly [x: string]: JsonValue;
6085
- };
6086
- } | {
6087
- readonly type: "reasoning";
6088
- readonly text: string;
6089
- readonly state?: {
6090
- readonly [x: string]: JsonValue;
6091
- };
6092
- readonly time?: {
6093
- readonly created: number;
6094
- readonly completed?: number;
6095
- };
6096
- } | {
6097
- readonly type: "tool";
6098
- readonly id: string;
6099
- readonly name: string;
6100
- readonly executed?: boolean;
6101
- readonly providerState?: {
6102
- readonly [x: string]: JsonValue;
6103
- };
6104
- readonly providerResultState?: {
6105
- readonly [x: string]: JsonValue;
6106
- };
6107
- readonly state: {
6108
- readonly status: "streaming";
6109
- readonly input: string;
6110
- } | {
6111
- readonly status: "running";
6112
- readonly input: {
6113
- readonly [x: string]: JsonValue;
6114
- };
6115
- readonly metadata: {
6116
- readonly [x: string]: JsonValue;
6117
- };
6118
- } | {
6119
- readonly status: "completed";
6120
- readonly input: {
6121
- readonly [x: string]: JsonValue;
6122
- };
6123
- readonly content: readonly [
6124
- ({
6125
- readonly type: "text";
6126
- readonly text: string;
6127
- } | {
6128
- readonly type: "file";
6129
- readonly uri: string;
6130
- readonly mime: string;
6131
- readonly name?: string | null;
6132
- }),
6133
- ...Array<{
6134
- readonly type: "text";
6135
- readonly text: string;
6136
- } | {
6137
- readonly type: "file";
6138
- readonly uri: string;
6139
- readonly mime: string;
6140
- readonly name?: string | null;
6141
- }>
6142
- ];
6143
- readonly metadata?: {
6144
- readonly [x: string]: JsonValue;
6145
- };
6146
- } | {
6147
- readonly status: "error";
6148
- readonly input: {
6149
- readonly [x: string]: JsonValue;
6150
- };
6151
- readonly error: {
6152
- readonly type: string;
6153
- readonly message: string;
6154
- readonly status?: number;
6155
- };
6156
- readonly content?: readonly [
6157
- ({
6158
- readonly type: "text";
6159
- readonly text: string;
6160
- } | {
6161
- readonly type: "file";
6162
- readonly uri: string;
6163
- readonly mime: string;
6164
- readonly name?: string | null;
6165
- }),
6166
- ...Array<{
6167
- readonly type: "text";
6168
- readonly text: string;
6169
- } | {
6170
- readonly type: "file";
6171
- readonly uri: string;
6172
- readonly mime: string;
6173
- readonly name?: string | null;
6174
- }>
6175
- ];
6176
- readonly metadata?: {
6177
- readonly [x: string]: JsonValue;
6178
- };
6179
- };
6180
- readonly time: {
6181
- readonly created: number;
6182
- readonly ran?: number;
6183
- readonly completed?: number;
6184
- };
6185
- }>;
6186
- }["content"];
6187
- };
6188
- export type SessionMessageUpdateOutput = {
6189
- data: SessionMessageAssistant;
6190
- }["data"];
6191
6052
  export type SessionEnvironmentInput = {
6192
6053
  readonly sessionID: {
6193
6054
  readonly sessionID: string;
@@ -6216,57 +6077,48 @@ export type MessageListInput = {
6216
6077
  readonly limit?: number | undefined;
6217
6078
  readonly order?: "asc" | "desc" | undefined;
6218
6079
  readonly cursor?: string | undefined;
6080
+ readonly type?: "agent-switched" | "model-switched" | "location-switched" | "user" | "synthetic" | "system" | "skill" | "shell" | "assistant" | "compaction" | undefined;
6219
6081
  }["limit"];
6220
6082
  readonly order?: {
6221
6083
  readonly limit?: number | undefined;
6222
6084
  readonly order?: "asc" | "desc" | undefined;
6223
6085
  readonly cursor?: string | undefined;
6086
+ readonly type?: "agent-switched" | "model-switched" | "location-switched" | "user" | "synthetic" | "system" | "skill" | "shell" | "assistant" | "compaction" | undefined;
6224
6087
  }["order"];
6225
6088
  readonly cursor?: {
6226
6089
  readonly limit?: number | undefined;
6227
6090
  readonly order?: "asc" | "desc" | undefined;
6228
6091
  readonly cursor?: string | undefined;
6092
+ readonly type?: "agent-switched" | "model-switched" | "location-switched" | "user" | "synthetic" | "system" | "skill" | "shell" | "assistant" | "compaction" | undefined;
6229
6093
  }["cursor"];
6094
+ readonly type?: {
6095
+ readonly limit?: number | undefined;
6096
+ readonly order?: "asc" | "desc" | undefined;
6097
+ readonly cursor?: string | undefined;
6098
+ readonly type?: "agent-switched" | "model-switched" | "location-switched" | "user" | "synthetic" | "system" | "skill" | "shell" | "assistant" | "compaction" | undefined;
6099
+ }["type"];
6230
6100
  };
6231
6101
  export type MessageListOutput = SessionMessagesResponse;
6232
6102
  export type ModelListInput = {
6233
6103
  readonly location?: {
6234
6104
  readonly location?: {
6235
6105
  readonly directory?: string | undefined;
6236
- readonly workspace?: string | undefined;
6237
6106
  } | undefined;
6238
6107
  }["location"];
6239
6108
  };
6240
6109
  export type ModelListOutput = {
6241
- location: {
6242
- directory: string;
6243
- workspaceID?: string;
6244
- project: {
6245
- id: string;
6246
- directory: string;
6247
- canonical: string;
6248
- };
6249
- };
6110
+ location: LocationPublicRef;
6250
6111
  data: Array<ModelInfo>;
6251
6112
  };
6252
6113
  export type ModelDefaultInput = {
6253
6114
  readonly location?: {
6254
6115
  readonly location?: {
6255
6116
  readonly directory?: string | undefined;
6256
- readonly workspace?: string | undefined;
6257
6117
  } | undefined;
6258
6118
  }["location"];
6259
6119
  };
6260
6120
  export type ModelDefaultOutput = {
6261
- location: {
6262
- directory: string;
6263
- workspaceID?: string;
6264
- project: {
6265
- id: string;
6266
- directory: string;
6267
- canonical: string;
6268
- };
6269
- };
6121
+ location: LocationPublicRef;
6270
6122
  data: ModelInfo | null;
6271
6123
  };
6272
6124
  export type GenerateTextInput = {
@@ -6292,20 +6144,11 @@ export type ProviderListInput = {
6292
6144
  readonly location?: {
6293
6145
  readonly location?: {
6294
6146
  readonly directory?: string | undefined;
6295
- readonly workspace?: string | undefined;
6296
6147
  } | undefined;
6297
6148
  }["location"];
6298
6149
  };
6299
6150
  export type ProviderListOutput = {
6300
- location: {
6301
- directory: string;
6302
- workspaceID?: string;
6303
- project: {
6304
- id: string;
6305
- directory: string;
6306
- canonical: string;
6307
- };
6308
- };
6151
+ location: LocationPublicRef;
6309
6152
  data: Array<ProviderInfo>;
6310
6153
  };
6311
6154
  export type ProviderGetInput = {
@@ -6315,40 +6158,22 @@ export type ProviderGetInput = {
6315
6158
  readonly location?: {
6316
6159
  readonly location?: {
6317
6160
  readonly directory?: string | undefined;
6318
- readonly workspace?: string | undefined;
6319
6161
  } | undefined;
6320
6162
  }["location"];
6321
6163
  };
6322
6164
  export type ProviderGetOutput = {
6323
- location: {
6324
- directory: string;
6325
- workspaceID?: string;
6326
- project: {
6327
- id: string;
6328
- directory: string;
6329
- canonical: string;
6330
- };
6331
- };
6165
+ location: LocationPublicRef;
6332
6166
  data: ProviderInfo;
6333
6167
  };
6334
6168
  export type IntegrationListInput = {
6335
6169
  readonly location?: {
6336
6170
  readonly location?: {
6337
6171
  readonly directory?: string | undefined;
6338
- readonly workspace?: string | undefined;
6339
6172
  } | undefined;
6340
6173
  }["location"];
6341
6174
  };
6342
6175
  export type IntegrationListOutput = {
6343
- location: {
6344
- directory: string;
6345
- workspaceID?: string;
6346
- project: {
6347
- id: string;
6348
- directory: string;
6349
- canonical: string;
6350
- };
6351
- };
6176
+ location: LocationPublicRef;
6352
6177
  data: Array<IntegrationInfo>;
6353
6178
  };
6354
6179
  export type IntegrationGetInput = {
@@ -6358,27 +6183,17 @@ export type IntegrationGetInput = {
6358
6183
  readonly location?: {
6359
6184
  readonly location?: {
6360
6185
  readonly directory?: string | undefined;
6361
- readonly workspace?: string | undefined;
6362
6186
  } | undefined;
6363
6187
  }["location"];
6364
6188
  };
6365
6189
  export type IntegrationGetOutput = {
6366
- location: {
6367
- directory: string;
6368
- workspaceID?: string;
6369
- project: {
6370
- id: string;
6371
- directory: string;
6372
- canonical: string;
6373
- };
6374
- };
6375
- data: IntegrationInfo | null;
6190
+ location: LocationPublicRef;
6191
+ data: IntegrationInfo;
6376
6192
  };
6377
6193
  export type IntegrationWellknownAddInput = {
6378
6194
  readonly location?: {
6379
6195
  readonly location?: {
6380
6196
  readonly directory?: string | undefined;
6381
- readonly workspace?: string | undefined;
6382
6197
  } | undefined;
6383
6198
  }["location"];
6384
6199
  readonly url: {
@@ -6393,7 +6208,6 @@ export type IntegrationConnectKeyInput = {
6393
6208
  readonly location?: {
6394
6209
  readonly location?: {
6395
6210
  readonly directory?: string | undefined;
6396
- readonly workspace?: string | undefined;
6397
6211
  } | undefined;
6398
6212
  }["location"];
6399
6213
  readonly key: {
@@ -6426,7 +6240,6 @@ export type IntegrationOauthConnectInput = {
6426
6240
  readonly location?: {
6427
6241
  readonly location?: {
6428
6242
  readonly directory?: string | undefined;
6429
- readonly workspace?: string | undefined;
6430
6243
  } | undefined;
6431
6244
  }["location"];
6432
6245
  readonly methodID: {
@@ -6452,25 +6265,8 @@ export type IntegrationOauthConnectInput = {
6452
6265
  }["label"];
6453
6266
  };
6454
6267
  export type IntegrationOauthConnectOutput = {
6455
- location: {
6456
- directory: string;
6457
- workspaceID?: string;
6458
- project: {
6459
- id: string;
6460
- directory: string;
6461
- canonical: string;
6462
- };
6463
- };
6464
- data: {
6465
- attemptID: string;
6466
- url: string;
6467
- instructions: string;
6468
- mode: "auto" | "code";
6469
- time: {
6470
- created: number | "Infinity" | "-Infinity" | "NaN";
6471
- expires: number | "Infinity" | "-Infinity" | "NaN";
6472
- };
6473
- };
6268
+ location: LocationPublicRef;
6269
+ data: IntegrationAttempt;
6474
6270
  };
6475
6271
  export type IntegrationOauthStatusInput = {
6476
6272
  readonly integrationID: {
@@ -6484,20 +6280,11 @@ export type IntegrationOauthStatusInput = {
6484
6280
  readonly location?: {
6485
6281
  readonly location?: {
6486
6282
  readonly directory?: string | undefined;
6487
- readonly workspace?: string | undefined;
6488
6283
  } | undefined;
6489
6284
  }["location"];
6490
6285
  };
6491
6286
  export type IntegrationOauthStatusOutput = {
6492
- location: {
6493
- directory: string;
6494
- workspaceID?: string;
6495
- project: {
6496
- id: string;
6497
- directory: string;
6498
- canonical: string;
6499
- };
6500
- };
6287
+ location: LocationPublicRef;
6501
6288
  data: IntegrationAttemptStatus;
6502
6289
  };
6503
6290
  export type IntegrationOauthCompleteInput = {
@@ -6512,7 +6299,6 @@ export type IntegrationOauthCompleteInput = {
6512
6299
  readonly location?: {
6513
6300
  readonly location?: {
6514
6301
  readonly directory?: string | undefined;
6515
- readonly workspace?: string | undefined;
6516
6302
  } | undefined;
6517
6303
  }["location"];
6518
6304
  readonly code?: {
@@ -6532,7 +6318,6 @@ export type IntegrationOauthCancelInput = {
6532
6318
  readonly location?: {
6533
6319
  readonly location?: {
6534
6320
  readonly directory?: string | undefined;
6535
- readonly workspace?: string | undefined;
6536
6321
  } | undefined;
6537
6322
  }["location"];
6538
6323
  };
@@ -6544,7 +6329,6 @@ export type IntegrationCommandConnectInput = {
6544
6329
  readonly location?: {
6545
6330
  readonly location?: {
6546
6331
  readonly directory?: string | undefined;
6547
- readonly workspace?: string | undefined;
6548
6332
  } | undefined;
6549
6333
  }["location"];
6550
6334
  readonly methodID: {
@@ -6557,15 +6341,7 @@ export type IntegrationCommandConnectInput = {
6557
6341
  }["label"];
6558
6342
  };
6559
6343
  export type IntegrationCommandConnectOutput = {
6560
- location: {
6561
- directory: string;
6562
- workspaceID?: string;
6563
- project: {
6564
- id: string;
6565
- directory: string;
6566
- canonical: string;
6567
- };
6568
- };
6344
+ location: LocationPublicRef;
6569
6345
  data: IntegrationCommandAttempt;
6570
6346
  };
6571
6347
  export type IntegrationCommandStatusInput = {
@@ -6580,20 +6356,11 @@ export type IntegrationCommandStatusInput = {
6580
6356
  readonly location?: {
6581
6357
  readonly location?: {
6582
6358
  readonly directory?: string | undefined;
6583
- readonly workspace?: string | undefined;
6584
6359
  } | undefined;
6585
6360
  }["location"];
6586
6361
  };
6587
6362
  export type IntegrationCommandStatusOutput = {
6588
- location: {
6589
- directory: string;
6590
- workspaceID?: string;
6591
- project: {
6592
- id: string;
6593
- directory: string;
6594
- canonical: string;
6595
- };
6596
- };
6363
+ location: LocationPublicRef;
6597
6364
  data: IntegrationCommandAttemptStatus;
6598
6365
  };
6599
6366
  export type IntegrationCommandCancelInput = {
@@ -6608,49 +6375,19 @@ export type IntegrationCommandCancelInput = {
6608
6375
  readonly location?: {
6609
6376
  readonly location?: {
6610
6377
  readonly directory?: string | undefined;
6611
- readonly workspace?: string | undefined;
6612
6378
  } | undefined;
6613
6379
  }["location"];
6614
6380
  };
6615
6381
  export type IntegrationCommandCancelOutput = void;
6616
- export type AuthStatusInput = {
6617
- readonly location?: {
6618
- readonly location?: {
6619
- readonly directory?: string | undefined;
6620
- readonly workspace?: string | undefined;
6621
- } | undefined;
6622
- }["location"];
6623
- };
6624
- export type AuthStatusOutput = {
6625
- location: {
6626
- directory: string;
6627
- workspaceID?: string;
6628
- project: {
6629
- id: string;
6630
- directory: string;
6631
- canonical: string;
6632
- };
6633
- };
6634
- data: AuthStatus;
6635
- };
6636
6382
  export type McpListInput = {
6637
6383
  readonly location?: {
6638
6384
  readonly location?: {
6639
6385
  readonly directory?: string | undefined;
6640
- readonly workspace?: string | undefined;
6641
6386
  } | undefined;
6642
6387
  }["location"];
6643
6388
  };
6644
6389
  export type McpListOutput = {
6645
- location: {
6646
- directory: string;
6647
- workspaceID?: string;
6648
- project: {
6649
- id: string;
6650
- directory: string;
6651
- canonical: string;
6652
- };
6653
- };
6390
+ location: LocationPublicRef;
6654
6391
  data: Array<McpServer>;
6655
6392
  };
6656
6393
  export type McpAddInput = {
@@ -6660,7 +6397,6 @@ export type McpAddInput = {
6660
6397
  readonly location?: {
6661
6398
  readonly location?: {
6662
6399
  readonly directory?: string | undefined;
6663
- readonly workspace?: string | undefined;
6664
6400
  } | undefined;
6665
6401
  }["location"];
6666
6402
  readonly config: {
@@ -6678,6 +6414,7 @@ export type McpAddInput = {
6678
6414
  readonly catalog?: number;
6679
6415
  readonly execution?: number;
6680
6416
  };
6417
+ readonly protocol?: "legacy" | "auto" | "2026-07-28";
6681
6418
  } | {
6682
6419
  readonly type: "remote";
6683
6420
  readonly url: string;
@@ -6698,6 +6435,7 @@ export type McpAddInput = {
6698
6435
  readonly catalog?: number;
6699
6436
  readonly execution?: number;
6700
6437
  };
6438
+ readonly protocol?: "legacy" | "auto" | "2026-07-28";
6701
6439
  };
6702
6440
  }["config"];
6703
6441
  };
@@ -6709,7 +6447,6 @@ export type McpRemoveInput = {
6709
6447
  readonly location?: {
6710
6448
  readonly location?: {
6711
6449
  readonly directory?: string | undefined;
6712
- readonly workspace?: string | undefined;
6713
6450
  } | undefined;
6714
6451
  }["location"];
6715
6452
  };
@@ -6721,7 +6458,6 @@ export type McpConnectInput = {
6721
6458
  readonly location?: {
6722
6459
  readonly location?: {
6723
6460
  readonly directory?: string | undefined;
6724
- readonly workspace?: string | undefined;
6725
6461
  } | undefined;
6726
6462
  }["location"];
6727
6463
  };
@@ -6733,7 +6469,6 @@ export type McpDisconnectInput = {
6733
6469
  readonly location?: {
6734
6470
  readonly location?: {
6735
6471
  readonly directory?: string | undefined;
6736
- readonly workspace?: string | undefined;
6737
6472
  } | undefined;
6738
6473
  }["location"];
6739
6474
  };
@@ -6742,32 +6477,17 @@ export type McpResourceCatalogInput = {
6742
6477
  readonly location?: {
6743
6478
  readonly location?: {
6744
6479
  readonly directory?: string | undefined;
6745
- readonly workspace?: string | undefined;
6746
6480
  } | undefined;
6747
6481
  }["location"];
6748
6482
  };
6749
6483
  export type McpResourceCatalogOutput = {
6750
- location: {
6751
- directory: string;
6752
- workspaceID?: string;
6753
- project: {
6754
- id: string;
6755
- directory: string;
6756
- canonical: string;
6757
- };
6758
- };
6484
+ location: LocationPublicRef;
6759
6485
  data: McpResourceCatalog;
6760
6486
  };
6761
6487
  export type CredentialUpdateInput = {
6762
6488
  readonly credentialID: {
6763
6489
  readonly credentialID: string;
6764
6490
  }["credentialID"];
6765
- readonly location?: {
6766
- readonly location?: {
6767
- readonly directory?: string | undefined;
6768
- readonly workspace?: string | undefined;
6769
- } | undefined;
6770
- }["location"];
6771
6491
  readonly label: {
6772
6492
  readonly label: string;
6773
6493
  }["label"];
@@ -6777,24 +6497,12 @@ export type CredentialActivateInput = {
6777
6497
  readonly credentialID: {
6778
6498
  readonly credentialID: string;
6779
6499
  }["credentialID"];
6780
- readonly location?: {
6781
- readonly location?: {
6782
- readonly directory?: string | undefined;
6783
- readonly workspace?: string | undefined;
6784
- } | undefined;
6785
- }["location"];
6786
6500
  };
6787
6501
  export type CredentialActivateOutput = void;
6788
6502
  export type CredentialRemoveInput = {
6789
6503
  readonly credentialID: {
6790
6504
  readonly credentialID: string;
6791
6505
  }["credentialID"];
6792
- readonly location?: {
6793
- readonly location?: {
6794
- readonly directory?: string | undefined;
6795
- readonly workspace?: string | undefined;
6796
- } | undefined;
6797
- }["location"];
6798
6506
  };
6799
6507
  export type CredentialRemoveOutput = void;
6800
6508
  export type ProjectListOutput = Array<Project>;
@@ -6802,7 +6510,20 @@ export type ProjectUpdateInput = {
6802
6510
  readonly projectID: {
6803
6511
  readonly projectID: string;
6804
6512
  }["projectID"];
6513
+ readonly canonical?: {
6514
+ readonly canonical?: string;
6515
+ readonly name?: string;
6516
+ readonly icon?: {
6517
+ readonly url?: string;
6518
+ readonly override?: string;
6519
+ readonly color?: string;
6520
+ };
6521
+ readonly commands?: {
6522
+ readonly start?: string;
6523
+ };
6524
+ }["canonical"];
6805
6525
  readonly name?: {
6526
+ readonly canonical?: string;
6806
6527
  readonly name?: string;
6807
6528
  readonly icon?: {
6808
6529
  readonly url?: string;
@@ -6814,6 +6535,7 @@ export type ProjectUpdateInput = {
6814
6535
  };
6815
6536
  }["name"];
6816
6537
  readonly icon?: {
6538
+ readonly canonical?: string;
6817
6539
  readonly name?: string;
6818
6540
  readonly icon?: {
6819
6541
  readonly url?: string;
@@ -6825,6 +6547,7 @@ export type ProjectUpdateInput = {
6825
6547
  };
6826
6548
  }["icon"];
6827
6549
  readonly commands?: {
6550
+ readonly canonical?: string;
6828
6551
  readonly name?: string;
6829
6552
  readonly icon?: {
6830
6553
  readonly url?: string;
@@ -6837,33 +6560,15 @@ export type ProjectUpdateInput = {
6837
6560
  }["commands"];
6838
6561
  };
6839
6562
  export type ProjectUpdateOutput = Project;
6840
- export type ProjectCurrentInput = {
6841
- readonly location?: {
6842
- readonly location?: {
6843
- readonly directory?: string | undefined;
6844
- readonly workspace?: string | undefined;
6845
- } | undefined;
6846
- }["location"];
6847
- };
6848
- export type ProjectCurrentOutput = ProjectCurrent;
6849
6563
  export type FormRequestListInput = {
6850
6564
  readonly location?: {
6851
6565
  readonly location?: {
6852
6566
  readonly directory?: string | undefined;
6853
- readonly workspace?: string | undefined;
6854
6567
  } | undefined;
6855
6568
  }["location"];
6856
6569
  };
6857
6570
  export type FormRequestListOutput = {
6858
- location: {
6859
- directory: string;
6860
- workspaceID?: string;
6861
- project: {
6862
- id: string;
6863
- directory: string;
6864
- canonical: string;
6865
- };
6866
- };
6571
+ location: LocationPublicRef;
6867
6572
  data: Array<FormInfo>;
6868
6573
  };
6869
6574
  export type FormListInput = {
@@ -7695,20 +7400,11 @@ export type PermissionRequestListInput = {
7695
7400
  readonly location?: {
7696
7401
  readonly location?: {
7697
7402
  readonly directory?: string | undefined;
7698
- readonly workspace?: string | undefined;
7699
7403
  } | undefined;
7700
7404
  }["location"];
7701
7405
  };
7702
7406
  export type PermissionRequestListOutput = {
7703
- location: {
7704
- directory: string;
7705
- workspaceID?: string;
7706
- project: {
7707
- id: string;
7708
- directory: string;
7709
- canonical: string;
7710
- };
7711
- };
7407
+ location: LocationPublicRef;
7712
7408
  data: Array<PermissionRequest>;
7713
7409
  };
7714
7410
  export type PermissionSavedListInput = {
@@ -7881,11 +7577,23 @@ export type PermissionReplyInput = {
7881
7577
  }["message"];
7882
7578
  };
7883
7579
  export type PermissionReplyOutput = void;
7580
+ export type PermissionRulesInput = {
7581
+ readonly sessionID: {
7582
+ readonly sessionID: string;
7583
+ }["sessionID"];
7584
+ readonly permissions: {
7585
+ readonly permissions: ReadonlyArray<{
7586
+ readonly action: string;
7587
+ readonly resource: string;
7588
+ readonly effect: "allow" | "deny" | "ask";
7589
+ }>;
7590
+ }["permissions"];
7591
+ };
7592
+ export type PermissionRulesOutput = void;
7884
7593
  export type FileReadInput = {
7885
7594
  readonly location?: {
7886
7595
  readonly location?: {
7887
7596
  readonly directory?: string | undefined;
7888
- readonly workspace?: string | undefined;
7889
7597
  } | undefined;
7890
7598
  }["location"];
7891
7599
  readonly path: string;
@@ -7895,35 +7603,24 @@ export type FileListInput = {
7895
7603
  readonly location?: {
7896
7604
  readonly location?: {
7897
7605
  readonly directory?: string | undefined;
7898
- readonly workspace?: string | undefined;
7899
7606
  } | undefined;
7900
7607
  readonly path?: string | undefined;
7901
7608
  }["location"];
7902
7609
  readonly path?: {
7903
7610
  readonly location?: {
7904
7611
  readonly directory?: string | undefined;
7905
- readonly workspace?: string | undefined;
7906
7612
  } | undefined;
7907
7613
  readonly path?: string | undefined;
7908
7614
  }["path"];
7909
7615
  };
7910
7616
  export type FileListOutput = {
7911
- location: {
7912
- directory: string;
7913
- workspaceID?: string;
7914
- project: {
7915
- id: string;
7916
- directory: string;
7917
- canonical: string;
7918
- };
7919
- };
7617
+ location: LocationPublicRef;
7920
7618
  data: Array<FileSystemEntry>;
7921
7619
  };
7922
7620
  export type FileFindInput = {
7923
7621
  readonly location?: {
7924
7622
  readonly location?: {
7925
7623
  readonly directory?: string | undefined;
7926
- readonly workspace?: string | undefined;
7927
7624
  } | undefined;
7928
7625
  readonly query: string;
7929
7626
  readonly type?: "file" | "directory" | undefined;
@@ -7932,7 +7629,6 @@ export type FileFindInput = {
7932
7629
  readonly query: {
7933
7630
  readonly location?: {
7934
7631
  readonly directory?: string | undefined;
7935
- readonly workspace?: string | undefined;
7936
7632
  } | undefined;
7937
7633
  readonly query: string;
7938
7634
  readonly type?: "file" | "directory" | undefined;
@@ -7941,7 +7637,6 @@ export type FileFindInput = {
7941
7637
  readonly type?: {
7942
7638
  readonly location?: {
7943
7639
  readonly directory?: string | undefined;
7944
- readonly workspace?: string | undefined;
7945
7640
  } | undefined;
7946
7641
  readonly query: string;
7947
7642
  readonly type?: "file" | "directory" | undefined;
@@ -7950,7 +7645,6 @@ export type FileFindInput = {
7950
7645
  readonly limit?: {
7951
7646
  readonly location?: {
7952
7647
  readonly directory?: string | undefined;
7953
- readonly workspace?: string | undefined;
7954
7648
  } | undefined;
7955
7649
  readonly query: string;
7956
7650
  readonly type?: "file" | "directory" | undefined;
@@ -7958,83 +7652,66 @@ export type FileFindInput = {
7958
7652
  }["limit"];
7959
7653
  };
7960
7654
  export type FileFindOutput = {
7961
- location: {
7962
- directory: string;
7963
- workspaceID?: string;
7964
- project: {
7965
- id: string;
7966
- directory: string;
7967
- canonical: string;
7968
- };
7969
- };
7655
+ location: LocationPublicRef;
7970
7656
  data: Array<FileSystemEntry>;
7971
7657
  };
7972
7658
  export type CommandListInput = {
7973
7659
  readonly location?: {
7974
7660
  readonly location?: {
7975
7661
  readonly directory?: string | undefined;
7976
- readonly workspace?: string | undefined;
7977
7662
  } | undefined;
7978
7663
  }["location"];
7979
7664
  };
7980
7665
  export type CommandListOutput = {
7981
- location: {
7982
- directory: string;
7983
- workspaceID?: string;
7984
- project: {
7985
- id: string;
7986
- directory: string;
7987
- canonical: string;
7988
- };
7989
- };
7666
+ location: LocationPublicRef;
7990
7667
  data: Array<CommandInfo>;
7991
7668
  };
7992
7669
  export type SkillListInput = {
7993
7670
  readonly location?: {
7994
7671
  readonly location?: {
7995
7672
  readonly directory?: string | undefined;
7996
- readonly workspace?: string | undefined;
7997
7673
  } | undefined;
7998
7674
  }["location"];
7999
7675
  };
8000
7676
  export type SkillListOutput = {
8001
- location: {
8002
- directory: string;
8003
- workspaceID?: string;
8004
- project: {
8005
- id: string;
8006
- directory: string;
8007
- canonical: string;
8008
- };
8009
- };
7677
+ location: LocationPublicRef;
8010
7678
  data: Array<SkillInfo>;
8011
7679
  };
7680
+ export type RpcCallInput = {
7681
+ readonly rpcID: {
7682
+ readonly rpcID: string;
7683
+ readonly method: string;
7684
+ }["rpcID"];
7685
+ readonly method: {
7686
+ readonly rpcID: string;
7687
+ readonly method: string;
7688
+ }["method"];
7689
+ readonly location?: {
7690
+ readonly location?: {
7691
+ readonly directory?: string | undefined;
7692
+ } | undefined;
7693
+ }["location"];
7694
+ readonly input?: {
7695
+ readonly input: JsonValue;
7696
+ }["input"];
7697
+ };
7698
+ export type RpcCallOutput = RpcOutput;
8012
7699
  export type EventSubscribeOutput = V2Event;
8013
7700
  export type PtyListInput = {
8014
7701
  readonly location?: {
8015
7702
  readonly location?: {
8016
7703
  readonly directory?: string | undefined;
8017
- readonly workspace?: string | undefined;
8018
7704
  } | undefined;
8019
7705
  }["location"];
8020
7706
  };
8021
7707
  export type PtyListOutput = {
8022
- location: {
8023
- directory: string;
8024
- workspaceID?: string;
8025
- project: {
8026
- id: string;
8027
- directory: string;
8028
- canonical: string;
8029
- };
8030
- };
7708
+ location: LocationPublicRef;
8031
7709
  data: Array<Pty>;
8032
7710
  };
8033
7711
  export type PtyCreateInput = {
8034
7712
  readonly location?: {
8035
7713
  readonly location?: {
8036
7714
  readonly directory?: string | undefined;
8037
- readonly workspace?: string | undefined;
8038
7715
  } | undefined;
8039
7716
  }["location"];
8040
7717
  readonly command?: {
@@ -8084,15 +7761,7 @@ export type PtyCreateInput = {
8084
7761
  }["env"];
8085
7762
  };
8086
7763
  export type PtyCreateOutput = {
8087
- location: {
8088
- directory: string;
8089
- workspaceID?: string;
8090
- project: {
8091
- id: string;
8092
- directory: string;
8093
- canonical: string;
8094
- };
8095
- };
7764
+ location: LocationPublicRef;
8096
7765
  data: Pty;
8097
7766
  };
8098
7767
  export type PtyGetInput = {
@@ -8102,20 +7771,11 @@ export type PtyGetInput = {
8102
7771
  readonly location?: {
8103
7772
  readonly location?: {
8104
7773
  readonly directory?: string | undefined;
8105
- readonly workspace?: string | undefined;
8106
7774
  } | undefined;
8107
7775
  }["location"];
8108
7776
  };
8109
7777
  export type PtyGetOutput = {
8110
- location: {
8111
- directory: string;
8112
- workspaceID?: string;
8113
- project: {
8114
- id: string;
8115
- directory: string;
8116
- canonical: string;
8117
- };
8118
- };
7778
+ location: LocationPublicRef;
8119
7779
  data: Pty;
8120
7780
  };
8121
7781
  export type PtyUpdateInput = {
@@ -8125,7 +7785,6 @@ export type PtyUpdateInput = {
8125
7785
  readonly location?: {
8126
7786
  readonly location?: {
8127
7787
  readonly directory?: string | undefined;
8128
- readonly workspace?: string | undefined;
8129
7788
  } | undefined;
8130
7789
  }["location"];
8131
7790
  readonly title?: {
@@ -8144,15 +7803,7 @@ export type PtyUpdateInput = {
8144
7803
  }["size"];
8145
7804
  };
8146
7805
  export type PtyUpdateOutput = {
8147
- location: {
8148
- directory: string;
8149
- workspaceID?: string;
8150
- project: {
8151
- id: string;
8152
- directory: string;
8153
- canonical: string;
8154
- };
8155
- };
7806
+ location: LocationPublicRef;
8156
7807
  data: Pty;
8157
7808
  };
8158
7809
  export type PtyRemoveInput = {
@@ -8162,7 +7813,6 @@ export type PtyRemoveInput = {
8162
7813
  readonly location?: {
8163
7814
  readonly location?: {
8164
7815
  readonly directory?: string | undefined;
8165
- readonly workspace?: string | undefined;
8166
7816
  } | undefined;
8167
7817
  }["location"];
8168
7818
  };
@@ -8174,7 +7824,6 @@ export type PtyConnectTokenInput = {
8174
7824
  readonly location?: {
8175
7825
  readonly location?: {
8176
7826
  readonly directory?: string | undefined;
8177
- readonly workspace?: string | undefined;
8178
7827
  } | undefined;
8179
7828
  }["location"];
8180
7829
  readonly "x-opencode-ticket"?: {
@@ -8182,15 +7831,7 @@ export type PtyConnectTokenInput = {
8182
7831
  }["x-opencode-ticket"];
8183
7832
  };
8184
7833
  export type PtyConnectTokenOutput = {
8185
- location: {
8186
- directory: string;
8187
- workspaceID?: string;
8188
- project: {
8189
- id: string;
8190
- directory: string;
8191
- canonical: string;
8192
- };
8193
- };
7834
+ location: LocationPublicRef;
8194
7835
  data: PtyTicketConnectToken;
8195
7836
  };
8196
7837
  export type ExperimentalPersistentPtyReadInput = {
@@ -8361,27 +8002,17 @@ export type ShellListInput = {
8361
8002
  readonly location?: {
8362
8003
  readonly location?: {
8363
8004
  readonly directory?: string | undefined;
8364
- readonly workspace?: string | undefined;
8365
8005
  } | undefined;
8366
8006
  }["location"];
8367
8007
  };
8368
8008
  export type ShellListOutput = {
8369
- location: {
8370
- directory: string;
8371
- workspaceID?: string;
8372
- project: {
8373
- id: string;
8374
- directory: string;
8375
- canonical: string;
8376
- };
8377
- };
8009
+ location: LocationPublicRef;
8378
8010
  data: Array<ShellInfo1>;
8379
8011
  };
8380
8012
  export type ShellCreateInput = {
8381
8013
  readonly location?: {
8382
8014
  readonly location?: {
8383
8015
  readonly directory?: string | undefined;
8384
- readonly workspace?: string | undefined;
8385
8016
  } | undefined;
8386
8017
  }["location"];
8387
8018
  readonly command: {
@@ -8418,15 +8049,7 @@ export type ShellCreateInput = {
8418
8049
  }["metadata"];
8419
8050
  };
8420
8051
  export type ShellCreateOutput = {
8421
- location: {
8422
- directory: string;
8423
- workspaceID?: string;
8424
- project: {
8425
- id: string;
8426
- directory: string;
8427
- canonical: string;
8428
- };
8429
- };
8052
+ location: LocationPublicRef;
8430
8053
  data: ShellInfo1;
8431
8054
  };
8432
8055
  export type ShellGetInput = {
@@ -8436,20 +8059,11 @@ export type ShellGetInput = {
8436
8059
  readonly location?: {
8437
8060
  readonly location?: {
8438
8061
  readonly directory?: string | undefined;
8439
- readonly workspace?: string | undefined;
8440
8062
  } | undefined;
8441
8063
  }["location"];
8442
8064
  };
8443
8065
  export type ShellGetOutput = {
8444
- location: {
8445
- directory: string;
8446
- workspaceID?: string;
8447
- project: {
8448
- id: string;
8449
- directory: string;
8450
- canonical: string;
8451
- };
8452
- };
8066
+ location: LocationPublicRef;
8453
8067
  data: ShellInfo1;
8454
8068
  };
8455
8069
  export type ShellTimeoutInput = {
@@ -8459,7 +8073,6 @@ export type ShellTimeoutInput = {
8459
8073
  readonly location?: {
8460
8074
  readonly location?: {
8461
8075
  readonly directory?: string | undefined;
8462
- readonly workspace?: string | undefined;
8463
8076
  } | undefined;
8464
8077
  }["location"];
8465
8078
  readonly timeout: {
@@ -8467,15 +8080,7 @@ export type ShellTimeoutInput = {
8467
8080
  }["timeout"];
8468
8081
  };
8469
8082
  export type ShellTimeoutOutput = {
8470
- location: {
8471
- directory: string;
8472
- workspaceID?: string;
8473
- project: {
8474
- id: string;
8475
- directory: string;
8476
- canonical: string;
8477
- };
8478
- };
8083
+ location: LocationPublicRef;
8479
8084
  data: ShellInfo1;
8480
8085
  };
8481
8086
  export type ShellOutputInput = {
@@ -8485,7 +8090,6 @@ export type ShellOutputInput = {
8485
8090
  readonly location?: {
8486
8091
  readonly location?: {
8487
8092
  readonly directory?: string | undefined;
8488
- readonly workspace?: string | undefined;
8489
8093
  } | undefined;
8490
8094
  readonly cursor?: number | undefined;
8491
8095
  readonly limit?: number | undefined;
@@ -8493,7 +8097,6 @@ export type ShellOutputInput = {
8493
8097
  readonly cursor?: {
8494
8098
  readonly location?: {
8495
8099
  readonly directory?: string | undefined;
8496
- readonly workspace?: string | undefined;
8497
8100
  } | undefined;
8498
8101
  readonly cursor?: number | undefined;
8499
8102
  readonly limit?: number | undefined;
@@ -8501,22 +8104,13 @@ export type ShellOutputInput = {
8501
8104
  readonly limit?: {
8502
8105
  readonly location?: {
8503
8106
  readonly directory?: string | undefined;
8504
- readonly workspace?: string | undefined;
8505
8107
  } | undefined;
8506
8108
  readonly cursor?: number | undefined;
8507
8109
  readonly limit?: number | undefined;
8508
8110
  }["limit"];
8509
8111
  };
8510
8112
  export type ShellOutputOutput = {
8511
- location: {
8512
- directory: string;
8513
- workspaceID?: string;
8514
- project: {
8515
- id: string;
8516
- directory: string;
8517
- canonical: string;
8518
- };
8519
- };
8113
+ location: LocationPublicRef;
8520
8114
  data: {
8521
8115
  output: string;
8522
8116
  cursor: number;
@@ -8531,7 +8125,6 @@ export type ShellRemoveInput = {
8531
8125
  readonly location?: {
8532
8126
  readonly location?: {
8533
8127
  readonly directory?: string | undefined;
8534
- readonly workspace?: string | undefined;
8535
8128
  } | undefined;
8536
8129
  }["location"];
8537
8130
  };
@@ -8540,20 +8133,11 @@ export type ReferenceListInput = {
8540
8133
  readonly location?: {
8541
8134
  readonly location?: {
8542
8135
  readonly directory?: string | undefined;
8543
- readonly workspace?: string | undefined;
8544
8136
  } | undefined;
8545
8137
  }["location"];
8546
8138
  };
8547
8139
  export type ReferenceListOutput = {
8548
- location: {
8549
- directory: string;
8550
- workspaceID?: string;
8551
- project: {
8552
- id: string;
8553
- directory: string;
8554
- canonical: string;
8555
- };
8556
- };
8140
+ location: LocationPublicRef;
8557
8141
  data: Array<ReferenceInfo>;
8558
8142
  };
8559
8143
  export type WorktreeListInput = {
@@ -8565,40 +8149,37 @@ export type WorktreeListOutput = WorktreeList;
8565
8149
  export type WorktreeCreateInput = {
8566
8150
  readonly projectID: {
8567
8151
  readonly projectID: string;
8568
- }["projectID"];
8569
- readonly strategy: {
8570
- readonly strategy: string;
8571
8152
  readonly from?: string;
8572
8153
  readonly branch?: string;
8573
- readonly directory: string;
8154
+ readonly directory?: string;
8574
8155
  readonly name?: string;
8575
- }["strategy"];
8156
+ }["projectID"];
8576
8157
  readonly from?: {
8577
- readonly strategy: string;
8158
+ readonly projectID: string;
8578
8159
  readonly from?: string;
8579
8160
  readonly branch?: string;
8580
- readonly directory: string;
8161
+ readonly directory?: string;
8581
8162
  readonly name?: string;
8582
8163
  }["from"];
8583
8164
  readonly branch?: {
8584
- readonly strategy: string;
8165
+ readonly projectID: string;
8585
8166
  readonly from?: string;
8586
8167
  readonly branch?: string;
8587
- readonly directory: string;
8168
+ readonly directory?: string;
8588
8169
  readonly name?: string;
8589
8170
  }["branch"];
8590
- readonly directory: {
8591
- readonly strategy: string;
8171
+ readonly directory?: {
8172
+ readonly projectID: string;
8592
8173
  readonly from?: string;
8593
8174
  readonly branch?: string;
8594
- readonly directory: string;
8175
+ readonly directory?: string;
8595
8176
  readonly name?: string;
8596
8177
  }["directory"];
8597
8178
  readonly name?: {
8598
- readonly strategy: string;
8179
+ readonly projectID: string;
8599
8180
  readonly from?: string;
8600
8181
  readonly branch?: string;
8601
- readonly directory: string;
8182
+ readonly directory?: string;
8602
8183
  readonly name?: string;
8603
8184
  }["name"];
8604
8185
  };
@@ -8606,12 +8187,16 @@ export type WorktreeCreateOutput = WorktreeInfo;
8606
8187
  export type WorktreeRemoveInput = {
8607
8188
  readonly projectID: {
8608
8189
  readonly projectID: string;
8190
+ readonly directory: string;
8191
+ readonly force: boolean;
8609
8192
  }["projectID"];
8610
8193
  readonly directory: {
8194
+ readonly projectID: string;
8611
8195
  readonly directory: string;
8612
8196
  readonly force: boolean;
8613
8197
  }["directory"];
8614
8198
  readonly force: {
8199
+ readonly projectID: string;
8615
8200
  readonly directory: string;
8616
8201
  readonly force: boolean;
8617
8202
  }["force"];
@@ -8623,90 +8208,43 @@ export type WorktreeRefreshInput = {
8623
8208
  }["projectID"];
8624
8209
  };
8625
8210
  export type WorktreeRefreshOutput = void;
8626
- export type WorkspaceCreateInput = {
8627
- readonly id?: {
8628
- readonly id?: string | undefined;
8629
- readonly provider: string;
8630
- }["id"];
8631
- readonly provider: {
8632
- readonly id?: string | undefined;
8633
- readonly provider: string;
8634
- }["provider"];
8635
- };
8636
- export type WorkspaceCreateOutput = {
8637
- data: string;
8638
- }["data"];
8639
- export type WorkspaceDestroyInput = {
8640
- readonly workspaceID: {
8641
- readonly workspaceID: string;
8642
- }["workspaceID"];
8643
- };
8644
- export type WorkspaceDestroyOutput = WorkspaceDestroyResult;
8645
8211
  export type VcsGetInput = {
8646
8212
  readonly location?: {
8647
8213
  readonly location?: {
8648
8214
  readonly directory?: string | undefined;
8649
- readonly workspace?: string | undefined;
8650
8215
  } | undefined;
8651
8216
  }["location"];
8652
8217
  };
8653
8218
  export type VcsGetOutput = {
8654
- location: {
8655
- directory: string;
8656
- workspaceID?: string;
8657
- project: {
8658
- id: string;
8659
- directory: string;
8660
- canonical: string;
8661
- };
8662
- };
8219
+ location: LocationPublicRef;
8663
8220
  data: VcsInfo;
8664
8221
  };
8665
8222
  export type VcsBaseInput = {
8666
8223
  readonly location?: {
8667
8224
  readonly location?: {
8668
8225
  readonly directory?: string | undefined;
8669
- readonly workspace?: string | undefined;
8670
8226
  } | undefined;
8671
8227
  }["location"];
8672
8228
  };
8673
8229
  export type VcsBaseOutput = {
8674
- location: {
8675
- directory: string;
8676
- workspaceID?: string;
8677
- project: {
8678
- id: string;
8679
- directory: string;
8680
- canonical: string;
8681
- };
8682
- };
8230
+ location: LocationPublicRef;
8683
8231
  data: VcsBase | null;
8684
8232
  };
8685
8233
  export type VcsStatusInput = {
8686
8234
  readonly location?: {
8687
8235
  readonly location?: {
8688
8236
  readonly directory?: string | undefined;
8689
- readonly workspace?: string | undefined;
8690
8237
  } | undefined;
8691
8238
  }["location"];
8692
8239
  };
8693
8240
  export type VcsStatusOutput = {
8694
- location: {
8695
- directory: string;
8696
- workspaceID?: string;
8697
- project: {
8698
- id: string;
8699
- directory: string;
8700
- canonical: string;
8701
- };
8702
- };
8241
+ location: LocationPublicRef;
8703
8242
  data: Array<VcsFileStatus>;
8704
8243
  };
8705
8244
  export type VcsBranchesInput = {
8706
8245
  readonly location?: {
8707
8246
  readonly location?: {
8708
8247
  readonly directory?: string | undefined;
8709
- readonly workspace?: string | undefined;
8710
8248
  } | undefined;
8711
8249
  readonly search?: string | undefined;
8712
8250
  readonly limit?: number | undefined;
@@ -8714,7 +8252,6 @@ export type VcsBranchesInput = {
8714
8252
  readonly search?: {
8715
8253
  readonly location?: {
8716
8254
  readonly directory?: string | undefined;
8717
- readonly workspace?: string | undefined;
8718
8255
  } | undefined;
8719
8256
  readonly search?: string | undefined;
8720
8257
  readonly limit?: number | undefined;
@@ -8722,29 +8259,19 @@ export type VcsBranchesInput = {
8722
8259
  readonly limit?: {
8723
8260
  readonly location?: {
8724
8261
  readonly directory?: string | undefined;
8725
- readonly workspace?: string | undefined;
8726
8262
  } | undefined;
8727
8263
  readonly search?: string | undefined;
8728
8264
  readonly limit?: number | undefined;
8729
8265
  }["limit"];
8730
8266
  };
8731
8267
  export type VcsBranchesOutput = {
8732
- location: {
8733
- directory: string;
8734
- workspaceID?: string;
8735
- project: {
8736
- id: string;
8737
- directory: string;
8738
- canonical: string;
8739
- };
8740
- };
8268
+ location: LocationPublicRef;
8741
8269
  data: VcsBranchList;
8742
8270
  };
8743
8271
  export type VcsDiffInput = {
8744
8272
  readonly location?: {
8745
8273
  readonly location?: {
8746
8274
  readonly directory?: string | undefined;
8747
- readonly workspace?: string | undefined;
8748
8275
  } | undefined;
8749
8276
  readonly mode: "working" | "branch" | "committed";
8750
8277
  readonly base?: string | undefined;
@@ -8753,7 +8280,6 @@ export type VcsDiffInput = {
8753
8280
  readonly mode: {
8754
8281
  readonly location?: {
8755
8282
  readonly directory?: string | undefined;
8756
- readonly workspace?: string | undefined;
8757
8283
  } | undefined;
8758
8284
  readonly mode: "working" | "branch" | "committed";
8759
8285
  readonly base?: string | undefined;
@@ -8762,7 +8288,6 @@ export type VcsDiffInput = {
8762
8288
  readonly base?: {
8763
8289
  readonly location?: {
8764
8290
  readonly directory?: string | undefined;
8765
- readonly workspace?: string | undefined;
8766
8291
  } | undefined;
8767
8292
  readonly mode: "working" | "branch" | "committed";
8768
8293
  readonly base?: string | undefined;
@@ -8771,7 +8296,6 @@ export type VcsDiffInput = {
8771
8296
  readonly context?: {
8772
8297
  readonly location?: {
8773
8298
  readonly directory?: string | undefined;
8774
- readonly workspace?: string | undefined;
8775
8299
  } | undefined;
8776
8300
  readonly mode: "working" | "branch" | "committed";
8777
8301
  readonly base?: string | undefined;
@@ -8779,23 +8303,14 @@ export type VcsDiffInput = {
8779
8303
  }["context"];
8780
8304
  };
8781
8305
  export type VcsDiffOutput = {
8782
- location: {
8783
- directory: string;
8784
- workspaceID?: string;
8785
- project: {
8786
- id: string;
8787
- directory: string;
8788
- canonical: string;
8789
- };
8790
- };
8306
+ location: LocationPublicRef;
8791
8307
  data: Array<FileDiffInfo>;
8792
8308
  };
8793
- export type DebugLocationListOutput = Array<LocationRef>;
8309
+ export type DebugLocationListOutput = Array<LocationPublicRef>;
8794
8310
  export type DebugLocationEvictInput = {
8795
8311
  readonly location?: {
8796
8312
  readonly location?: {
8797
8313
  readonly directory?: string | undefined;
8798
- readonly workspace?: string | undefined;
8799
8314
  } | undefined;
8800
8315
  }["location"];
8801
8316
  };
@@ -8817,27 +8332,17 @@ export type WebsearchProvidersInput = {
8817
8332
  readonly location?: {
8818
8333
  readonly location?: {
8819
8334
  readonly directory?: string | undefined;
8820
- readonly workspace?: string | undefined;
8821
8335
  } | undefined;
8822
8336
  }["location"];
8823
8337
  };
8824
8338
  export type WebsearchProvidersOutput = {
8825
- location: {
8826
- directory: string;
8827
- workspaceID?: string;
8828
- project: {
8829
- id: string;
8830
- directory: string;
8831
- canonical: string;
8832
- };
8833
- };
8339
+ location: LocationPublicRef;
8834
8340
  data: Array<WebSearchProvider>;
8835
8341
  };
8836
8342
  export type WebsearchQueryInput = {
8837
8343
  readonly location?: {
8838
8344
  readonly location?: {
8839
8345
  readonly directory?: string | undefined;
8840
- readonly workspace?: string | undefined;
8841
8346
  } | undefined;
8842
8347
  }["location"];
8843
8348
  readonly query: {
@@ -8850,15 +8355,7 @@ export type WebsearchQueryInput = {
8850
8355
  }["providerID"];
8851
8356
  };
8852
8357
  export type WebsearchQueryOutput = {
8853
- location: {
8854
- directory: string;
8855
- workspaceID?: string;
8856
- project: {
8857
- id: string;
8858
- directory: string;
8859
- canonical: string;
8860
- };
8861
- };
8358
+ location: LocationPublicRef;
8862
8359
  data: {
8863
8360
  providerID: string;
8864
8361
  results: Array<WebSearchResult>;
@@ -8868,8 +8365,14 @@ export type ConfigGetInput = {
8868
8365
  readonly location?: {
8869
8366
  readonly location?: {
8870
8367
  readonly directory?: string | undefined;
8871
- readonly workspace?: string | undefined;
8872
8368
  } | undefined;
8873
8369
  }["location"];
8874
8370
  };
8875
8371
  export type ConfigGetOutput = Array<ConfigEntry>;
8372
+ export type ConfigShellsOutput = Array<ConfigShellOption>;
8373
+ export type ConfigUpdateInput = {
8374
+ readonly shell: {
8375
+ readonly shell: string | null;
8376
+ }["shell"];
8377
+ };
8378
+ export type ConfigUpdateOutput = void;