shuvcode 2.0.0-alpha-20 → 2.0.3-shuv.2

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;
@@ -59,10 +70,6 @@ export type TokenUsageInfo = {
59
70
  write: number;
60
71
  };
61
72
  };
62
- export type LocationRef = {
63
- directory: string;
64
- workspaceID?: string;
65
- };
66
73
  export type SessionMetadata = {
67
74
  [x: string]: JsonValue;
68
75
  };
@@ -73,7 +80,6 @@ export type FileDiffInfo = {
73
80
  deletions: number;
74
81
  status: "added" | "deleted" | "modified";
75
82
  };
76
- export type SessionPolicyToolID = string;
77
83
  export type SessionStatsToolTotals = {
78
84
  calls: number;
79
85
  succeeded: number;
@@ -219,6 +225,25 @@ export type SessionMessageCompactionRunning = {
219
225
  summary: string;
220
226
  recent: string;
221
227
  };
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 = {
237
+ id: string;
238
+ metadata?: {
239
+ [x: string]: JsonValue;
240
+ };
241
+ time: {
242
+ created: number;
243
+ };
244
+ type: "idle";
245
+ outcome: "succeeded" | "failed" | "interrupted";
246
+ };
222
247
  export type SessionActive = {
223
248
  type: "running";
224
249
  };
@@ -232,27 +257,15 @@ export type SessionInboxSyntheticPayload = {
232
257
  };
233
258
  export type SessionInboxCompactionPayload = {};
234
259
  export type InstructionEntryKey = string;
235
- export type SessionDynamicToolDefinition = {
236
- name: string;
237
- description: string;
238
- parameters?: {
239
- [x: string]: JsonValue;
240
- };
241
- };
242
- export type SessionDynamicToolCall = {
243
- callID: string;
244
- sessionID: string;
245
- tool: string;
246
- input: JsonValue;
247
- time: {
248
- requested: number;
249
- };
250
- };
251
260
  export type SessionGenerateResponse = {
252
261
  data: {
253
262
  text: string;
254
263
  };
255
264
  };
265
+ export type LocationRef = {
266
+ directory: string;
267
+ workspaceID?: string;
268
+ };
256
269
  export type SessionInboxSyntheticPayload1 = {
257
270
  text: string;
258
271
  description?: string;
@@ -305,11 +318,17 @@ export type SessionInterruptResponse = {
305
318
  };
306
319
  export type ModelReasoningField = "reasoning" | "reasoning_content" | "reasoning_text" | (string & {});
307
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";
308
328
  export type ModelCapabilities = {
309
329
  tools: boolean;
310
330
  input: Array<string>;
311
331
  output: Array<string>;
312
- responsesWebsockets?: boolean;
313
332
  };
314
333
  export type ModelVariant = {
315
334
  id: string;
@@ -329,23 +348,6 @@ export type GenerateTextResponse = {
329
348
  text: string;
330
349
  };
331
350
  };
332
- export type ProviderInfo = {
333
- id: string;
334
- canonical?: string;
335
- integrationID?: string;
336
- name: string;
337
- activation: "auto" | "enabled" | "disabled";
338
- package: string;
339
- settings?: {
340
- [x: string]: any;
341
- };
342
- headers?: {
343
- [x: string]: string;
344
- };
345
- body?: {
346
- [x: string]: any;
347
- };
348
- };
349
351
  export type FormWhen = {
350
352
  key: string;
351
353
  op: "eq" | "neq";
@@ -382,37 +384,47 @@ export type ConnectionEnvInfo = {
382
384
  type: "env";
383
385
  name: string;
384
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
+ };
385
397
  export type IntegrationAttemptStatus = {
386
398
  status: "pending";
387
399
  time: {
388
- created: number | "Infinity" | "-Infinity" | "NaN";
389
- expires: number | "Infinity" | "-Infinity" | "NaN";
400
+ created: number;
401
+ expires: number;
390
402
  };
391
403
  } | {
392
404
  status: "complete";
393
405
  time: {
394
- created: number | "Infinity" | "-Infinity" | "NaN";
395
- expires: number | "Infinity" | "-Infinity" | "NaN";
406
+ created: number;
407
+ expires: number;
396
408
  };
397
409
  } | {
398
410
  status: "failed";
399
411
  message: string;
400
412
  time: {
401
- created: number | "Infinity" | "-Infinity" | "NaN";
402
- expires: number | "Infinity" | "-Infinity" | "NaN";
413
+ created: number;
414
+ expires: number;
403
415
  };
404
416
  } | {
405
417
  status: "expired";
406
418
  time: {
407
- created: number | "Infinity" | "-Infinity" | "NaN";
408
- expires: number | "Infinity" | "-Infinity" | "NaN";
419
+ created: number;
420
+ expires: number;
409
421
  };
410
422
  };
411
423
  export type IntegrationCommandAttempt = {
412
424
  attemptID: string;
413
425
  time: {
414
- created: number | "Infinity" | "-Infinity" | "NaN";
415
- expires: number | "Infinity" | "-Infinity" | "NaN";
426
+ created: number;
427
+ expires: number;
416
428
  };
417
429
  };
418
430
  export type IntegrationCommandAttemptStatus = {
@@ -442,14 +454,6 @@ export type IntegrationCommandAttemptStatus = {
442
454
  expires: number | "Infinity" | "-Infinity" | "NaN";
443
455
  };
444
456
  };
445
- export type AuthProfile = {
446
- providerID: string;
447
- profileID?: string;
448
- source: "stored" | "environment";
449
- type: "key" | "oauth" | "unknown";
450
- usable: boolean;
451
- reason: "configured" | "expired" | "empty" | "malformed";
452
- };
453
457
  export type McpStatusConnected = {
454
458
  status: "connected";
455
459
  };
@@ -465,6 +469,7 @@ export type McpStatusFailed = {
465
469
  };
466
470
  export type McpStatusNeedsAuth = {
467
471
  status: "needs_auth";
472
+ error: string;
468
473
  };
469
474
  export type McpResource = {
470
475
  server: string;
@@ -492,19 +497,11 @@ export type ProjectCommands = {
492
497
  export type ProjectTime = {
493
498
  created: number;
494
499
  updated: number;
495
- initialized?: number;
496
- };
497
- export type ProjectCurrent = {
498
- id: string;
499
- directory: string;
500
- canonical: string;
501
500
  };
502
501
  export type FormMetadata = {
503
502
  [x: string]: JsonValue;
504
503
  };
505
504
  export type FormValue = string | number | boolean | Array<string>;
506
- export type FormValue1 = string | number | "Infinity" | "-Infinity" | "NaN" | boolean | Array<string>;
507
- export type FormResponseID = string;
508
505
  export type PermissionSource = {
509
506
  type: "tool";
510
507
  messageID: string;
@@ -516,8 +513,6 @@ export type PermissionSavedInfo = {
516
513
  action: string;
517
514
  resource: string;
518
515
  };
519
- export type PermissionReply = "once" | "always" | "reject";
520
- export type PermissionResponseID = string;
521
516
  export type FileSystemEntry = {
522
517
  path: string;
523
518
  type: "file" | "directory";
@@ -530,21 +525,14 @@ export type SkillInfo = {
530
525
  id: string;
531
526
  name: string;
532
527
  description?: string;
533
- slash?: boolean;
534
528
  autoinvoke?: boolean;
535
- location: string;
529
+ path: string;
536
530
  content: string;
537
531
  };
538
532
  export type RpcOutput = {
539
533
  output?: any;
540
534
  };
541
- export type SessionDynamicToolDefinition1 = {
542
- name: string;
543
- description: string;
544
- parameters?: {
545
- [x: string]: any;
546
- };
547
- };
535
+ export type PermissionReply = "once" | "always" | "reject";
548
536
  export type Pty = {
549
537
  id: string;
550
538
  title: string;
@@ -646,15 +634,11 @@ export type ShellInfo1 = {
646
634
  export type ReferenceLocalSource = {
647
635
  type: "local";
648
636
  path: string;
649
- description?: string;
650
- hidden?: boolean;
651
637
  };
652
638
  export type ReferenceGitSource = {
653
639
  type: "git";
654
640
  repository: string;
655
641
  branch?: string;
656
- description?: string;
657
- hidden?: boolean;
658
642
  };
659
643
  export type WorktreeDirectory = {
660
644
  directory: string;
@@ -663,9 +647,6 @@ export type WorktreeDirectory = {
663
647
  export type WorktreeInfo = {
664
648
  directory: string;
665
649
  };
666
- export type WorkspaceDestroyResult = {
667
- destroyed: boolean;
668
- };
669
650
  export type VcsBranch = {
670
651
  current?: string;
671
652
  default?: string;
@@ -694,28 +675,14 @@ export type WebSearchResult = {
694
675
  published?: number;
695
676
  };
696
677
  };
678
+ export type McpProtocol = "legacy" | "auto" | "2026-07-28";
697
679
  export type ConfigWorktree = {
698
680
  directory: string;
699
681
  };
700
- export type ProviderRequest = {
701
- settings: ProviderSettings;
702
- headers: {
703
- [x: string]: string;
704
- };
705
- body: {
706
- [x: string]: any;
707
- };
708
- };
709
- export type PermissionRule = {
710
- action: string;
711
- resource: string;
712
- effect: PermissionEffect;
713
- };
714
- export type PluginInfo = {
715
- id?: string;
716
- source: PluginSource;
717
- features: PluginFeatures;
718
- state: PluginState;
682
+ export type ConfigShellOption = {
683
+ path: string;
684
+ name: string;
685
+ acceptable: boolean;
719
686
  };
720
687
  export type SessionMessageLocationSwitched = {
721
688
  id: string;
@@ -726,19 +693,19 @@ export type SessionMessageLocationSwitched = {
726
693
  created: number;
727
694
  };
728
695
  type: "location-switched";
729
- location: LocationRef;
730
696
  projectID?: string;
731
697
  subpath?: string;
698
+ location: LocationPublicRef;
732
699
  previous?: {
733
- location: LocationRef;
700
+ location: LocationPublicRef;
734
701
  projectID?: string;
735
702
  subpath?: string;
736
- };
703
+ } | null;
737
704
  };
738
705
  export type SessionInboxMovePayload = {
739
- location: LocationRef;
740
706
  projectID: string;
741
707
  subpath?: string;
708
+ location: LocationPublicRef;
742
709
  };
743
710
  export type V2EventRpc = {
744
711
  id: string;
@@ -747,7 +714,7 @@ export type V2EventRpc = {
747
714
  [x: string]: any;
748
715
  } | undefined;
749
716
  type: `${"rpc."}${string}`;
750
- location: LocationRef;
717
+ location: LocationPublicRef;
751
718
  data: {
752
719
  [x: string]: any;
753
720
  };
@@ -757,19 +724,36 @@ export type V2EventServerConnected = {
757
724
  metadata?: {
758
725
  [x: string]: any;
759
726
  } | undefined;
760
- location?: LocationRef | undefined;
727
+ location?: LocationPublicRef | undefined;
761
728
  type: "server.connected";
762
729
  data: {};
763
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
+ };
764
751
  export type SessionRevert = {
765
752
  messageID: string;
766
753
  partID?: string;
767
754
  snapshot?: string;
768
755
  files?: Array<FileDiffInfo>;
769
756
  };
770
- export type SessionPolicyTools = {
771
- allow: Array<SessionPolicyToolID>;
772
- };
773
757
  export type SessionStatsTools = {
774
758
  mode: "none";
775
759
  } | {
@@ -830,22 +814,6 @@ export type SessionMessageAssistantReasoning = {
830
814
  completed?: number;
831
815
  };
832
816
  };
833
- export type SessionMessageCompactionCompleted = {
834
- type: "compaction";
835
- id: string;
836
- metadata?: {
837
- [x: string]: JsonValue;
838
- };
839
- time: {
840
- created: number;
841
- };
842
- status: "completed";
843
- reason: "auto" | "manual";
844
- model?: ModelRef;
845
- providerState?: SessionMessageProviderState;
846
- summary: string;
847
- recent: string;
848
- };
849
817
  export type ToolContent = ToolTextContent | ToolFileContent;
850
818
  export type SessionMessageAssistantRetry = {
851
819
  attempt: number;
@@ -864,11 +832,20 @@ export type SessionMessageCompactionFailed = {
864
832
  status: "failed";
865
833
  reason: "auto" | "manual";
866
834
  error: SessionStructuredError;
835
+ cost?: MoneyUSD;
836
+ tokens?: TokenUsageInfo;
837
+ };
838
+ export type SessionProviderContext = {
839
+ version: 1;
840
+ provenance: SessionProviderContextProvenance;
841
+ messages: JsonValue;
867
842
  };
868
843
  export type SessionInboxSynthetic = {
869
844
  id: string;
870
845
  sessionID: string;
871
- timeCreated: number;
846
+ time: {
847
+ created: number;
848
+ };
872
849
  type: "synthetic";
873
850
  payload: SessionInboxSyntheticPayload;
874
851
  delivery: SessionInboxDelivery;
@@ -876,7 +853,9 @@ export type SessionInboxSynthetic = {
876
853
  export type SessionInboxCompaction = {
877
854
  id: string;
878
855
  sessionID: string;
879
- timeCreated: number;
856
+ time: {
857
+ created: number;
858
+ };
880
859
  type: "compaction";
881
860
  payload: SessionInboxCompactionPayload;
882
861
  delivery: SessionInboxDelivery;
@@ -928,26 +907,6 @@ export type SessionModelSelected = {
928
907
  previous?: ModelRef;
929
908
  };
930
909
  };
931
- export type SessionMoved = {
932
- id: string;
933
- created: number;
934
- metadata?: {
935
- [x: string]: any;
936
- };
937
- type: "session.moved";
938
- durable: {
939
- aggregateID: string;
940
- seq: number;
941
- version: 1;
942
- };
943
- location?: LocationRef;
944
- data: {
945
- sessionID: string;
946
- location: LocationRef;
947
- projectID: string;
948
- subpath?: string;
949
- };
950
- };
951
910
  export type SessionRenamed = {
952
911
  id: string;
953
912
  created: number;
@@ -1123,7 +1082,7 @@ export type SessionExecutionInterrupted = {
1123
1082
  location?: LocationRef;
1124
1083
  data: {
1125
1084
  sessionID: string;
1126
- reason: "user" | "shutdown" | "superseded";
1085
+ reason: "user" | "shutdown" | "superseded" | "inactivity";
1127
1086
  };
1128
1087
  };
1129
1088
  export type SessionInstructionsUpdated = {
@@ -1346,6 +1305,8 @@ export type SessionCompactionFailed = {
1346
1305
  reason: "auto" | "manual";
1347
1306
  error: SessionStructuredError;
1348
1307
  inputID?: string;
1308
+ cost?: MoneyUSD;
1309
+ tokens?: TokenUsageInfo;
1349
1310
  };
1350
1311
  };
1351
1312
  export type SessionRevertCleared = {
@@ -1446,13 +1407,23 @@ export type IntegrationUpdated = {
1446
1407
  location?: LocationRef;
1447
1408
  data: {};
1448
1409
  };
1449
- 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 = {
1450
1421
  id: string;
1451
1422
  created: number;
1452
1423
  metadata?: {
1453
1424
  [x: string]: any;
1454
1425
  };
1455
- type: "catalog.updated";
1426
+ type: "model.updated";
1456
1427
  location?: LocationRef;
1457
1428
  data: {};
1458
1429
  };
@@ -1555,47 +1526,6 @@ export type SessionCompactionDelta = {
1555
1526
  text: string;
1556
1527
  };
1557
1528
  };
1558
- export type SessionToolDynamicRequested = {
1559
- id: string;
1560
- created: number;
1561
- metadata?: {
1562
- [x: string]: any;
1563
- };
1564
- type: "session.tool.dynamic.requested";
1565
- location?: LocationRef;
1566
- data: {
1567
- sessionID: string;
1568
- callID: string;
1569
- tool: string;
1570
- input: JsonValue;
1571
- };
1572
- };
1573
- export type SessionToolDynamicReplied = {
1574
- id: string;
1575
- created: number;
1576
- metadata?: {
1577
- [x: string]: any;
1578
- };
1579
- type: "session.tool.dynamic.replied";
1580
- location?: LocationRef;
1581
- data: {
1582
- sessionID: string;
1583
- callID: string;
1584
- };
1585
- };
1586
- export type SessionToolDynamicCancelled = {
1587
- id: string;
1588
- created: number;
1589
- metadata?: {
1590
- [x: string]: any;
1591
- };
1592
- type: "session.tool.dynamic.cancelled";
1593
- location?: LocationRef;
1594
- data: {
1595
- sessionID: string;
1596
- callID: string;
1597
- };
1598
- };
1599
1529
  export type FilesystemChanged = {
1600
1530
  id: string;
1601
1531
  created: number;
@@ -1901,6 +1831,31 @@ export type McpResourcesChanged = {
1901
1831
  server: string;
1902
1832
  };
1903
1833
  };
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
+ };
1904
1859
  export type SessionShellStarted = {
1905
1860
  id: string;
1906
1861
  created: number;
@@ -2092,28 +2047,6 @@ export type SessionToolCalled = {
2092
2047
  state?: SessionMessageProviderState1;
2093
2048
  };
2094
2049
  };
2095
- export type SessionCompactionEnded = {
2096
- id: string;
2097
- created: number;
2098
- metadata?: {
2099
- [x: string]: any;
2100
- };
2101
- type: "session.compaction.ended";
2102
- durable: {
2103
- aggregateID: string;
2104
- seq: number;
2105
- version: 1;
2106
- };
2107
- location?: LocationRef;
2108
- data: {
2109
- sessionID: string;
2110
- reason: "auto" | "manual";
2111
- model?: ModelRef;
2112
- providerState?: SessionMessageProviderState1;
2113
- text: string;
2114
- recent: string;
2115
- };
2116
- };
2117
2050
  export type SessionMessageAssistantText1 = {
2118
2051
  type: "text";
2119
2052
  text: string;
@@ -2136,6 +2069,25 @@ export type ModelCompatibility = {
2136
2069
  requireFinishReason?: boolean;
2137
2070
  requireAssistantAfterTool?: boolean;
2138
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
+ };
2139
2091
  export type ModelCost = {
2140
2092
  tier?: {
2141
2093
  type: "context";
@@ -2209,12 +2161,6 @@ export type FormMultiselectField = {
2209
2161
  default?: Array<string>;
2210
2162
  };
2211
2163
  export type ConnectionInfo = ConnectionCredentialInfo | ConnectionEnvInfo;
2212
- export type AuthStatus = {
2213
- ready: boolean;
2214
- storage: "available" | "unavailable";
2215
- verification: "not_performed";
2216
- profiles: Array<AuthProfile>;
2217
- };
2218
2164
  export type McpServer = {
2219
2165
  name: string;
2220
2166
  status: McpStatusConnected | McpStatusPending | McpStatusDisabled | McpStatusFailed | McpStatusNeedsAuth;
@@ -2256,9 +2202,6 @@ export type ProjectUpdated = {
2256
2202
  export type FormAnswer = {
2257
2203
  [x: string]: FormValue;
2258
2204
  };
2259
- export type FormAnswer1 = {
2260
- [x: string]: FormValue1;
2261
- };
2262
2205
  export type PermissionRequest = {
2263
2206
  id: string;
2264
2207
  sessionID: string;
@@ -2292,15 +2235,6 @@ export type PermissionAsked = {
2292
2235
  message?: string;
2293
2236
  };
2294
2237
  };
2295
- export type PermissionState = {
2296
- status: "pending";
2297
- } | {
2298
- status: "answered";
2299
- reply: PermissionReply;
2300
- message?: string;
2301
- } | {
2302
- status: "cancelled";
2303
- };
2304
2238
  export type PermissionReplied = {
2305
2239
  id: string;
2306
2240
  created: number;
@@ -2315,19 +2249,6 @@ export type PermissionReplied = {
2315
2249
  reply: PermissionReply;
2316
2250
  };
2317
2251
  };
2318
- export type SessionToolsUpdated = {
2319
- id: string;
2320
- created: number;
2321
- metadata?: {
2322
- [x: string]: any;
2323
- };
2324
- type: "session.tools.updated";
2325
- location?: LocationRef;
2326
- data: {
2327
- sessionID: string;
2328
- tools: Array<SessionDynamicToolDefinition1>;
2329
- };
2330
- };
2331
2252
  export type PtyCreated = {
2332
2253
  id: string;
2333
2254
  created: number;
@@ -2452,15 +2373,17 @@ export type WorktreeList = Array<WorktreeDirectory>;
2452
2373
  export type VcsInfo = {
2453
2374
  branch: VcsBranch;
2454
2375
  };
2455
- export type PermissionRuleset = Array<PermissionRule>;
2456
2376
  export type SessionInboxMove = {
2457
2377
  id: string;
2458
2378
  sessionID: string;
2459
- timeCreated: number;
2379
+ time: {
2380
+ created: number;
2381
+ };
2460
2382
  type: "move";
2461
- payload: SessionInboxMovePayload;
2462
2383
  delivery: SessionInboxDelivery;
2384
+ payload: SessionInboxMovePayload;
2463
2385
  };
2386
+ export type PermissionRuleset = Array<PermissionRule>;
2464
2387
  export type SessionRevertStaged = {
2465
2388
  id: string;
2466
2389
  created: number;
@@ -2479,9 +2402,6 @@ export type SessionRevertStaged = {
2479
2402
  revert: SessionRevert;
2480
2403
  };
2481
2404
  };
2482
- export type SessionPolicy = {
2483
- tools: SessionPolicyTools;
2484
- };
2485
2405
  export type SessionStatsInfo = {
2486
2406
  range: {
2487
2407
  from: number;
@@ -2552,7 +2472,73 @@ export type SessionMessageToolStateError = {
2552
2472
  [x: string]: JsonValue;
2553
2473
  };
2554
2474
  };
2555
- 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
+ };
2556
2542
  export type SessionToolSuccess = {
2557
2543
  id: string;
2558
2544
  created: number;
@@ -2634,6 +2620,8 @@ export type ModelInfo = {
2634
2620
  name: string;
2635
2621
  compatibility?: ModelCompatibility;
2636
2622
  package?: string;
2623
+ compaction?: ProviderCompaction;
2624
+ transport?: ProviderTransport;
2637
2625
  settings?: {
2638
2626
  [x: string]: any;
2639
2627
  };
@@ -2680,24 +2668,6 @@ export type FormReplied = {
2680
2668
  answer: FormAnswer;
2681
2669
  };
2682
2670
  };
2683
- export type FormState1 = {
2684
- status: "pending";
2685
- } | {
2686
- status: "answered";
2687
- answer: FormAnswer1;
2688
- } | {
2689
- status: "cancelled";
2690
- };
2691
- export type PermissionReceipt = {
2692
- request: PermissionRequest;
2693
- state: PermissionState;
2694
- available: boolean;
2695
- responseID?: PermissionResponseID;
2696
- time: {
2697
- created: number;
2698
- updated: number;
2699
- };
2700
- };
2701
2671
  export type FormField1 = FormStringField1 | FormNumberField1 | FormIntegerField1 | FormBooleanField1 | FormMultiselectField1 | FormExternalField;
2702
2672
  export type ReferenceInfo = {
2703
2673
  name: string;
@@ -2719,6 +2689,79 @@ export type AgentInfo = {
2719
2689
  steps?: number;
2720
2690
  permissions: PermissionRuleset;
2721
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
+ };
2722
2765
  export type ConfigEntry = {
2723
2766
  type: "document";
2724
2767
  path?: string;
@@ -2804,11 +2847,6 @@ export type ConfigEntry = {
2804
2847
  max_lines?: number;
2805
2848
  max_bytes?: number;
2806
2849
  };
2807
- codemode?: {
2808
- timeout_ms?: number | null;
2809
- max_tool_calls?: number | null;
2810
- max_output_bytes?: number | null;
2811
- };
2812
2850
  mcp?: {
2813
2851
  timeout?: {
2814
2852
  startup?: number;
@@ -2830,6 +2868,7 @@ export type ConfigEntry = {
2830
2868
  catalog?: number;
2831
2869
  execution?: number;
2832
2870
  };
2871
+ protocol?: McpProtocol;
2833
2872
  } | {
2834
2873
  type: "remote";
2835
2874
  url: string;
@@ -2850,6 +2889,7 @@ export type ConfigEntry = {
2850
2889
  catalog?: number;
2851
2890
  execution?: number;
2852
2891
  };
2892
+ protocol?: McpProtocol;
2853
2893
  };
2854
2894
  };
2855
2895
  };
@@ -2905,6 +2945,8 @@ export type ConfigEntry = {
2905
2945
  };
2906
2946
  providers?: {
2907
2947
  [x: string]: {
2948
+ compaction?: ProviderCompaction;
2949
+ transport?: ProviderTransport;
2908
2950
  canonical?: string;
2909
2951
  name?: string;
2910
2952
  env?: Array<string>;
@@ -2920,6 +2962,8 @@ export type ConfigEntry = {
2920
2962
  };
2921
2963
  models?: {
2922
2964
  [x: string]: {
2965
+ compaction?: ProviderCompaction;
2966
+ transport?: ProviderTransport;
2923
2967
  modelID?: string;
2924
2968
  family?: string;
2925
2969
  name?: string;
@@ -2993,96 +3037,13 @@ export type ConfigEntry = {
2993
3037
  } | {
2994
3038
  type: "directory";
2995
3039
  path: string;
2996
- } | {
2997
- type: "agents";
2998
- path: string;
2999
- } | {
3000
- type: "claude";
3001
- path: string;
3002
3040
  };
3003
- export type SessionInfo = {
3041
+ export type SessionInboxUser = {
3004
3042
  id: string;
3005
- parentID?: string;
3006
- fork?: {
3007
- sessionID: string;
3008
- boundary: SessionForkBoundary;
3009
- };
3010
- projectID: string;
3011
- agent?: string;
3012
- model?: ModelRef;
3013
- cost: MoneyUSD;
3014
- tokens: TokenUsageInfo;
3015
- outcome?: "succeeded" | "failed" | "interrupted";
3043
+ sessionID: string;
3016
3044
  time: {
3017
3045
  created: number;
3018
- updated: number;
3019
- idle?: number;
3020
- viewed?: number;
3021
- archived?: number;
3022
- };
3023
- title?: string;
3024
- location: LocationRef;
3025
- subpath?: string;
3026
- metadata?: SessionMetadata;
3027
- revert?: SessionRevert;
3028
- policy?: SessionPolicy;
3029
- };
3030
- export type SessionCreated = {
3031
- id: string;
3032
- created: number;
3033
- metadata?: {
3034
- [x: string]: any;
3035
- };
3036
- type: "session.created";
3037
- durable: {
3038
- aggregateID: string;
3039
- seq: number;
3040
- version: 1;
3041
- };
3042
- location?: LocationRef;
3043
- data: {
3044
- sessionID: string;
3045
- projectID: string;
3046
- location: LocationRef;
3047
- subpath?: string;
3048
- parentID?: string;
3049
- slug: string;
3050
- title?: string;
3051
- agent?: string;
3052
- model?: ModelRef;
3053
- policy?: SessionPolicy;
3054
- metadata?: SessionMetadata;
3055
- version: string;
3056
- };
3057
- };
3058
- export type SessionForked = {
3059
- id: string;
3060
- created: number;
3061
- metadata?: {
3062
- [x: string]: any;
3063
- };
3064
- type: "session.forked";
3065
- durable: {
3066
- aggregateID: string;
3067
- seq: number;
3068
- version: 2;
3069
- };
3070
- location?: LocationRef;
3071
- data: {
3072
- sessionID: string;
3073
- parentID: string;
3074
- boundary: SessionForkBoundary;
3075
- instructions?: {
3076
- [x: string]: string;
3077
- };
3078
- policy?: SessionPolicy;
3079
- instructionEntries?: InstructionEntrySnapshot;
3080
3046
  };
3081
- };
3082
- export type SessionInboxUser = {
3083
- id: string;
3084
- sessionID: string;
3085
- timeCreated: number;
3086
3047
  type: "user";
3087
3048
  payload: SessionInboxUserPayload;
3088
3049
  delivery: SessionInboxDelivery;
@@ -3101,7 +3062,7 @@ export type SessionInboxItem = {
3101
3062
  delivery: SessionInboxDelivery;
3102
3063
  } | {
3103
3064
  type: "move";
3104
- payload: SessionInboxMovePayload;
3065
+ payload: SessionInboxMovePayload1;
3105
3066
  delivery: SessionInboxDelivery;
3106
3067
  };
3107
3068
  export type SessionMessageAssistantTool = {
@@ -3118,6 +3079,7 @@ export type SessionMessageAssistantTool = {
3118
3079
  completed?: number;
3119
3080
  };
3120
3081
  };
3082
+ export type SessionMessageCompaction = SessionMessageCompactionRunning | SessionMessageCompactionCompleted | SessionMessageCompactionFailed;
3121
3083
  export type SessionMessageAssistantTool1 = {
3122
3084
  type: "tool";
3123
3085
  id: string;
@@ -3214,7 +3176,7 @@ export type FormInfo1 = {
3214
3176
  metadata?: FormMetadata1;
3215
3177
  fields: FormFields2;
3216
3178
  };
3217
- 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;
3218
3180
  export type SessionMessageContentUpdated = {
3219
3181
  id: string;
3220
3182
  created: number;
@@ -3235,16 +3197,6 @@ export type SessionMessageContentUpdated = {
3235
3197
  };
3236
3198
  };
3237
3199
  export type IntegrationMethod = IntegrationOAuthMethod | IntegrationCommandMethod | IntegrationKeyMethod | IntegrationEnvMethod;
3238
- export type FormReceipt = {
3239
- request: FormInfo;
3240
- state: FormState1;
3241
- available: boolean;
3242
- responseID?: FormResponseID;
3243
- time: {
3244
- created: number;
3245
- updated: number;
3246
- };
3247
- };
3248
3200
  export type FormCreated = {
3249
3201
  id: string;
3250
3202
  created: number;
@@ -3268,17 +3220,17 @@ export type SessionMessagesResponse = {
3268
3220
  next?: string | null;
3269
3221
  };
3270
3222
  };
3271
- 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;
3272
3224
  export type IntegrationInfo = {
3273
3225
  id: string;
3274
3226
  name: string;
3275
3227
  metadata?: {
3276
- [x: string]: JsonValue;
3228
+ [x: string]: any;
3277
3229
  };
3278
3230
  methods: Array<IntegrationMethod>;
3279
3231
  connections: Array<ConnectionInfo>;
3280
3232
  };
3281
- 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 | 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;
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;
3282
3234
  export type SessionLogItem = SessionEventDurable | EventLogSynced;
3283
3235
  export type InvalidRequestError = {
3284
3236
  readonly _tag: "InvalidRequestError";
@@ -3371,6 +3323,26 @@ export type ProviderNotFoundError = {
3371
3323
  readonly message: string;
3372
3324
  };
3373
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;
3374
3346
  export type McpServerNotFoundError = {
3375
3347
  readonly _tag: "McpServerNotFoundError";
3376
3348
  readonly server: string;
@@ -3407,6 +3379,12 @@ export type PermissionNotFoundError = {
3407
3379
  readonly message: string;
3408
3380
  };
3409
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;
3410
3388
  export type RpcError = {
3411
3389
  readonly _tag: "RpcError";
3412
3390
  readonly type: string;
@@ -3446,45 +3424,24 @@ export type WorktreeError = {
3446
3424
  };
3447
3425
  };
3448
3426
  export declare const isWorktreeError: (value: unknown) => value is WorktreeError;
3449
- export type HealthGetOutput = ServiceHealth;
3450
- export type ServerGetOutput = {
3451
- urls: Array<string>;
3452
- };
3427
+ export type ServerStatusOutput = ServerStatus;
3453
3428
  export type LocationGetInput = {
3454
3429
  readonly location?: {
3455
3430
  readonly location?: {
3456
3431
  readonly directory?: string | undefined;
3457
- readonly workspace?: string | undefined;
3458
3432
  } | undefined;
3459
3433
  }["location"];
3460
3434
  };
3461
- export type LocationGetOutput = {
3462
- directory: string;
3463
- workspaceID?: string;
3464
- project: {
3465
- id: string;
3466
- directory: string;
3467
- canonical: string;
3468
- };
3469
- };
3435
+ export type LocationGetOutput = LocationPublicInfo;
3470
3436
  export type AgentListInput = {
3471
3437
  readonly location?: {
3472
3438
  readonly location?: {
3473
3439
  readonly directory?: string | undefined;
3474
- readonly workspace?: string | undefined;
3475
3440
  } | undefined;
3476
3441
  }["location"];
3477
3442
  };
3478
3443
  export type AgentListOutput = {
3479
- location: {
3480
- directory: string;
3481
- workspaceID?: string;
3482
- project: {
3483
- id: string;
3484
- directory: string;
3485
- canonical: string;
3486
- };
3487
- };
3444
+ location: LocationPublicRef;
3488
3445
  data: Array<AgentInfo>;
3489
3446
  };
3490
3447
  export type AgentGetInput = {
@@ -3494,56 +3451,28 @@ export type AgentGetInput = {
3494
3451
  readonly location?: {
3495
3452
  readonly location?: {
3496
3453
  readonly directory?: string | undefined;
3497
- readonly workspace?: string | undefined;
3498
3454
  } | undefined;
3499
3455
  }["location"];
3500
3456
  };
3501
3457
  export type AgentGetOutput = {
3502
- location: {
3503
- directory: string;
3504
- workspaceID?: string;
3505
- project: {
3506
- id: string;
3507
- directory: string;
3508
- canonical: string;
3509
- };
3510
- };
3458
+ location: LocationPublicRef;
3511
3459
  data: AgentInfo;
3512
3460
  };
3513
3461
  export type PluginListInput = {
3514
3462
  readonly location?: {
3515
3463
  readonly location?: {
3516
3464
  readonly directory?: string | undefined;
3517
- readonly workspace?: string | undefined;
3518
3465
  } | undefined;
3519
3466
  }["location"];
3520
3467
  };
3521
3468
  export type PluginListOutput = {
3522
- location: {
3523
- directory: string;
3524
- workspaceID?: string;
3525
- project: {
3526
- id: string;
3527
- directory: string;
3528
- canonical: string;
3529
- };
3530
- };
3469
+ location: LocationPublicRef;
3531
3470
  data: Array<PluginInfo>;
3532
3471
  };
3533
- export type PluginAwaitActivationInput = {
3534
- readonly location?: {
3535
- readonly location?: {
3536
- readonly directory?: string | undefined;
3537
- readonly workspace?: string | undefined;
3538
- } | undefined;
3539
- }["location"];
3540
- };
3541
- export type PluginAwaitActivationOutput = void;
3542
3472
  export type PluginCheckInput = {
3543
3473
  readonly location?: {
3544
3474
  readonly location?: {
3545
3475
  readonly directory?: string | undefined;
3546
- readonly workspace?: string | undefined;
3547
3476
  } | undefined;
3548
3477
  }["location"];
3549
3478
  readonly target?: {
@@ -3551,22 +3480,13 @@ export type PluginCheckInput = {
3551
3480
  }["target"];
3552
3481
  };
3553
3482
  export type PluginCheckOutput = {
3554
- location: {
3555
- directory: string;
3556
- workspaceID?: string;
3557
- project: {
3558
- id: string;
3559
- directory: string;
3560
- canonical: string;
3561
- };
3562
- };
3483
+ location: LocationPublicRef;
3563
3484
  data: Array<PluginInfo>;
3564
3485
  };
3565
3486
  export type PluginUpdateInput = {
3566
3487
  readonly location?: {
3567
3488
  readonly location?: {
3568
3489
  readonly directory?: string | undefined;
3569
- readonly workspace?: string | undefined;
3570
3490
  } | undefined;
3571
3491
  }["location"];
3572
3492
  readonly targets: {
@@ -3575,19 +3495,7 @@ export type PluginUpdateInput = {
3575
3495
  };
3576
3496
  export type PluginUpdateOutput = void;
3577
3497
  export type SessionListInput = {
3578
- readonly workspace?: {
3579
- readonly workspace?: string | undefined;
3580
- readonly limit?: number | undefined;
3581
- readonly order?: "asc" | "desc" | undefined;
3582
- readonly search?: string | undefined;
3583
- readonly parentID?: string | null | undefined;
3584
- readonly directory?: string | undefined;
3585
- readonly project?: string | undefined;
3586
- readonly subpath?: string | undefined;
3587
- readonly cursor?: string | undefined;
3588
- }["workspace"];
3589
3498
  readonly limit?: {
3590
- readonly workspace?: string | undefined;
3591
3499
  readonly limit?: number | undefined;
3592
3500
  readonly order?: "asc" | "desc" | undefined;
3593
3501
  readonly search?: string | undefined;
@@ -3598,7 +3506,6 @@ export type SessionListInput = {
3598
3506
  readonly cursor?: string | undefined;
3599
3507
  }["limit"];
3600
3508
  readonly order?: {
3601
- readonly workspace?: string | undefined;
3602
3509
  readonly limit?: number | undefined;
3603
3510
  readonly order?: "asc" | "desc" | undefined;
3604
3511
  readonly search?: string | undefined;
@@ -3609,7 +3516,6 @@ export type SessionListInput = {
3609
3516
  readonly cursor?: string | undefined;
3610
3517
  }["order"];
3611
3518
  readonly search?: {
3612
- readonly workspace?: string | undefined;
3613
3519
  readonly limit?: number | undefined;
3614
3520
  readonly order?: "asc" | "desc" | undefined;
3615
3521
  readonly search?: string | undefined;
@@ -3620,7 +3526,6 @@ export type SessionListInput = {
3620
3526
  readonly cursor?: string | undefined;
3621
3527
  }["search"];
3622
3528
  readonly parentID?: {
3623
- readonly workspace?: string | undefined;
3624
3529
  readonly limit?: number | undefined;
3625
3530
  readonly order?: "asc" | "desc" | undefined;
3626
3531
  readonly search?: string | undefined;
@@ -3631,7 +3536,6 @@ export type SessionListInput = {
3631
3536
  readonly cursor?: string | undefined;
3632
3537
  }["parentID"];
3633
3538
  readonly directory?: {
3634
- readonly workspace?: string | undefined;
3635
3539
  readonly limit?: number | undefined;
3636
3540
  readonly order?: "asc" | "desc" | undefined;
3637
3541
  readonly search?: string | undefined;
@@ -3642,7 +3546,6 @@ export type SessionListInput = {
3642
3546
  readonly cursor?: string | undefined;
3643
3547
  }["directory"];
3644
3548
  readonly project?: {
3645
- readonly workspace?: string | undefined;
3646
3549
  readonly limit?: number | undefined;
3647
3550
  readonly order?: "asc" | "desc" | undefined;
3648
3551
  readonly search?: string | undefined;
@@ -3653,7 +3556,6 @@ export type SessionListInput = {
3653
3556
  readonly cursor?: string | undefined;
3654
3557
  }["project"];
3655
3558
  readonly subpath?: {
3656
- readonly workspace?: string | undefined;
3657
3559
  readonly limit?: number | undefined;
3658
3560
  readonly order?: "asc" | "desc" | undefined;
3659
3561
  readonly search?: string | undefined;
@@ -3664,7 +3566,6 @@ export type SessionListInput = {
3664
3566
  readonly cursor?: string | undefined;
3665
3567
  }["subpath"];
3666
3568
  readonly cursor?: {
3667
- readonly workspace?: string | undefined;
3668
3569
  readonly limit?: number | undefined;
3669
3570
  readonly order?: "asc" | "desc" | undefined;
3670
3571
  readonly search?: string | undefined;
@@ -3728,22 +3629,14 @@ export type SessionCreateInput = {
3728
3629
  } | null;
3729
3630
  readonly location?: {
3730
3631
  readonly directory: string;
3731
- readonly workspaceID?: string;
3732
- } | null;
3733
- readonly policy?: {
3734
- readonly tools: {
3735
- readonly allow: ReadonlyArray<string>;
3736
- };
3737
3632
  } | null;
3738
3633
  readonly metadata?: {
3739
3634
  readonly [x: string]: JsonValue;
3740
3635
  } | null;
3741
- readonly tools?: ReadonlyArray<{
3742
- readonly name: string;
3743
- readonly description: string;
3744
- readonly parameters?: {
3745
- readonly [x: string]: JsonValue;
3746
- };
3636
+ readonly permissions?: ReadonlyArray<{
3637
+ readonly action: string;
3638
+ readonly resource: string;
3639
+ readonly effect: "allow" | "deny" | "ask";
3747
3640
  }> | null;
3748
3641
  }["id"];
3749
3642
  readonly title?: {
@@ -3757,22 +3650,14 @@ export type SessionCreateInput = {
3757
3650
  } | null;
3758
3651
  readonly location?: {
3759
3652
  readonly directory: string;
3760
- readonly workspaceID?: string;
3761
- } | null;
3762
- readonly policy?: {
3763
- readonly tools: {
3764
- readonly allow: ReadonlyArray<string>;
3765
- };
3766
3653
  } | null;
3767
3654
  readonly metadata?: {
3768
3655
  readonly [x: string]: JsonValue;
3769
3656
  } | null;
3770
- readonly tools?: ReadonlyArray<{
3771
- readonly name: string;
3772
- readonly description: string;
3773
- readonly parameters?: {
3774
- readonly [x: string]: JsonValue;
3775
- };
3657
+ readonly permissions?: ReadonlyArray<{
3658
+ readonly action: string;
3659
+ readonly resource: string;
3660
+ readonly effect: "allow" | "deny" | "ask";
3776
3661
  }> | null;
3777
3662
  }["title"];
3778
3663
  readonly agent?: {
@@ -3786,22 +3671,14 @@ export type SessionCreateInput = {
3786
3671
  } | null;
3787
3672
  readonly location?: {
3788
3673
  readonly directory: string;
3789
- readonly workspaceID?: string;
3790
- } | null;
3791
- readonly policy?: {
3792
- readonly tools: {
3793
- readonly allow: ReadonlyArray<string>;
3794
- };
3795
3674
  } | null;
3796
3675
  readonly metadata?: {
3797
3676
  readonly [x: string]: JsonValue;
3798
3677
  } | null;
3799
- readonly tools?: ReadonlyArray<{
3800
- readonly name: string;
3801
- readonly description: string;
3802
- readonly parameters?: {
3803
- readonly [x: string]: JsonValue;
3804
- };
3678
+ readonly permissions?: ReadonlyArray<{
3679
+ readonly action: string;
3680
+ readonly resource: string;
3681
+ readonly effect: "allow" | "deny" | "ask";
3805
3682
  }> | null;
3806
3683
  }["agent"];
3807
3684
  readonly model?: {
@@ -3815,22 +3692,14 @@ export type SessionCreateInput = {
3815
3692
  } | null;
3816
3693
  readonly location?: {
3817
3694
  readonly directory: string;
3818
- readonly workspaceID?: string;
3819
- } | null;
3820
- readonly policy?: {
3821
- readonly tools: {
3822
- readonly allow: ReadonlyArray<string>;
3823
- };
3824
3695
  } | null;
3825
3696
  readonly metadata?: {
3826
3697
  readonly [x: string]: JsonValue;
3827
3698
  } | null;
3828
- readonly tools?: ReadonlyArray<{
3829
- readonly name: string;
3830
- readonly description: string;
3831
- readonly parameters?: {
3832
- readonly [x: string]: JsonValue;
3833
- };
3699
+ readonly permissions?: ReadonlyArray<{
3700
+ readonly action: string;
3701
+ readonly resource: string;
3702
+ readonly effect: "allow" | "deny" | "ask";
3834
3703
  }> | null;
3835
3704
  }["model"];
3836
3705
  readonly location?: {
@@ -3844,53 +3713,16 @@ export type SessionCreateInput = {
3844
3713
  } | null;
3845
3714
  readonly location?: {
3846
3715
  readonly directory: string;
3847
- readonly workspaceID?: string;
3848
- } | null;
3849
- readonly policy?: {
3850
- readonly tools: {
3851
- readonly allow: ReadonlyArray<string>;
3852
- };
3853
3716
  } | null;
3854
3717
  readonly metadata?: {
3855
3718
  readonly [x: string]: JsonValue;
3856
3719
  } | null;
3857
- readonly tools?: ReadonlyArray<{
3858
- readonly name: string;
3859
- readonly description: string;
3860
- readonly parameters?: {
3861
- readonly [x: string]: JsonValue;
3862
- };
3720
+ readonly permissions?: ReadonlyArray<{
3721
+ readonly action: string;
3722
+ readonly resource: string;
3723
+ readonly effect: "allow" | "deny" | "ask";
3863
3724
  }> | null;
3864
3725
  }["location"];
3865
- readonly policy?: {
3866
- readonly id?: string | null;
3867
- readonly title?: string | null;
3868
- readonly agent?: string | null;
3869
- readonly model?: {
3870
- readonly id: string;
3871
- readonly providerID: string;
3872
- readonly variant?: string;
3873
- } | null;
3874
- readonly location?: {
3875
- readonly directory: string;
3876
- readonly workspaceID?: string;
3877
- } | null;
3878
- readonly policy?: {
3879
- readonly tools: {
3880
- readonly allow: ReadonlyArray<string>;
3881
- };
3882
- } | null;
3883
- readonly metadata?: {
3884
- readonly [x: string]: JsonValue;
3885
- } | null;
3886
- readonly tools?: ReadonlyArray<{
3887
- readonly name: string;
3888
- readonly description: string;
3889
- readonly parameters?: {
3890
- readonly [x: string]: JsonValue;
3891
- };
3892
- }> | null;
3893
- }["policy"];
3894
3726
  readonly metadata?: {
3895
3727
  readonly id?: string | null;
3896
3728
  readonly title?: string | null;
@@ -3902,25 +3734,17 @@ export type SessionCreateInput = {
3902
3734
  } | null;
3903
3735
  readonly location?: {
3904
3736
  readonly directory: string;
3905
- readonly workspaceID?: string;
3906
- } | null;
3907
- readonly policy?: {
3908
- readonly tools: {
3909
- readonly allow: ReadonlyArray<string>;
3910
- };
3911
3737
  } | null;
3912
3738
  readonly metadata?: {
3913
3739
  readonly [x: string]: JsonValue;
3914
3740
  } | null;
3915
- readonly tools?: ReadonlyArray<{
3916
- readonly name: string;
3917
- readonly description: string;
3918
- readonly parameters?: {
3919
- readonly [x: string]: JsonValue;
3920
- };
3741
+ readonly permissions?: ReadonlyArray<{
3742
+ readonly action: string;
3743
+ readonly resource: string;
3744
+ readonly effect: "allow" | "deny" | "ask";
3921
3745
  }> | null;
3922
3746
  }["metadata"];
3923
- readonly tools?: {
3747
+ readonly permissions?: {
3924
3748
  readonly id?: string | null;
3925
3749
  readonly title?: string | null;
3926
3750
  readonly agent?: string | null;
@@ -3931,24 +3755,16 @@ export type SessionCreateInput = {
3931
3755
  } | null;
3932
3756
  readonly location?: {
3933
3757
  readonly directory: string;
3934
- readonly workspaceID?: string;
3935
- } | null;
3936
- readonly policy?: {
3937
- readonly tools: {
3938
- readonly allow: ReadonlyArray<string>;
3939
- };
3940
3758
  } | null;
3941
3759
  readonly metadata?: {
3942
3760
  readonly [x: string]: JsonValue;
3943
3761
  } | null;
3944
- readonly tools?: ReadonlyArray<{
3945
- readonly name: string;
3946
- readonly description: string;
3947
- readonly parameters?: {
3948
- readonly [x: string]: JsonValue;
3949
- };
3762
+ readonly permissions?: ReadonlyArray<{
3763
+ readonly action: string;
3764
+ readonly resource: string;
3765
+ readonly effect: "allow" | "deny" | "ask";
3950
3766
  }> | null;
3951
- }["tools"];
3767
+ }["permissions"];
3952
3768
  };
3953
3769
  export type SessionCreateOutput = {
3954
3770
  data: SessionInfo;
@@ -3994,14 +3810,15 @@ export type SessionImportInput = {
3994
3810
  readonly archived?: number;
3995
3811
  };
3996
3812
  readonly title?: string;
3997
- readonly location: {
3998
- readonly directory: string;
3999
- readonly workspaceID?: string;
4000
- };
4001
3813
  readonly subpath?: string;
4002
3814
  readonly metadata?: {
4003
3815
  readonly [x: string]: JsonValue;
4004
3816
  };
3817
+ readonly permissions?: ReadonlyArray<{
3818
+ readonly action: string;
3819
+ readonly resource: string;
3820
+ readonly effect: "allow" | "deny" | "ask";
3821
+ }>;
4005
3822
  readonly revert?: {
4006
3823
  readonly messageID: string;
4007
3824
  readonly partID?: string;
@@ -4014,10 +3831,8 @@ export type SessionImportInput = {
4014
3831
  readonly status: "added" | "deleted" | "modified";
4015
3832
  }>;
4016
3833
  };
4017
- readonly policy?: {
4018
- readonly tools: {
4019
- readonly allow: ReadonlyArray<string>;
4020
- };
3834
+ readonly location: {
3835
+ readonly directory: string;
4021
3836
  };
4022
3837
  };
4023
3838
  readonly messages: ReadonlyArray<{
@@ -4059,20 +3874,18 @@ export type SessionImportInput = {
4059
3874
  readonly created: number;
4060
3875
  };
4061
3876
  readonly type: "location-switched";
3877
+ readonly projectID?: string;
3878
+ readonly subpath?: string;
4062
3879
  readonly location: {
4063
3880
  readonly directory: string;
4064
- readonly workspaceID?: string;
4065
3881
  };
4066
- readonly projectID?: string;
4067
- readonly subpath?: string;
4068
3882
  readonly previous?: {
4069
3883
  readonly location: {
4070
3884
  readonly directory: string;
4071
- readonly workspaceID?: string;
4072
3885
  };
4073
3886
  readonly projectID?: string;
4074
3887
  readonly subpath?: string;
4075
- };
3888
+ } | null;
4076
3889
  } | {
4077
3890
  readonly id: string;
4078
3891
  readonly metadata?: {
@@ -4363,6 +4176,28 @@ export type SessionImportInput = {
4363
4176
  };
4364
4177
  readonly summary: string;
4365
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
+ };
4366
4201
  } | {
4367
4202
  readonly type: "compaction";
4368
4203
  readonly id: string;
@@ -4379,10 +4214,29 @@ export type SessionImportInput = {
4379
4214
  readonly message: string;
4380
4215
  readonly status?: number;
4381
4216
  };
4382
- })>;
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
+ }>;
4383
4238
  readonly location?: {
4384
4239
  readonly directory: string;
4385
- readonly workspaceID?: string;
4386
4240
  } | null;
4387
4241
  }["info"];
4388
4242
  readonly messages: {
@@ -4425,14 +4279,15 @@ export type SessionImportInput = {
4425
4279
  readonly archived?: number;
4426
4280
  };
4427
4281
  readonly title?: string;
4428
- readonly location: {
4429
- readonly directory: string;
4430
- readonly workspaceID?: string;
4431
- };
4432
4282
  readonly subpath?: string;
4433
4283
  readonly metadata?: {
4434
4284
  readonly [x: string]: JsonValue;
4435
4285
  };
4286
+ readonly permissions?: ReadonlyArray<{
4287
+ readonly action: string;
4288
+ readonly resource: string;
4289
+ readonly effect: "allow" | "deny" | "ask";
4290
+ }>;
4436
4291
  readonly revert?: {
4437
4292
  readonly messageID: string;
4438
4293
  readonly partID?: string;
@@ -4445,10 +4300,8 @@ export type SessionImportInput = {
4445
4300
  readonly status: "added" | "deleted" | "modified";
4446
4301
  }>;
4447
4302
  };
4448
- readonly policy?: {
4449
- readonly tools: {
4450
- readonly allow: ReadonlyArray<string>;
4451
- };
4303
+ readonly location: {
4304
+ readonly directory: string;
4452
4305
  };
4453
4306
  };
4454
4307
  readonly messages: ReadonlyArray<{
@@ -4490,20 +4343,18 @@ export type SessionImportInput = {
4490
4343
  readonly created: number;
4491
4344
  };
4492
4345
  readonly type: "location-switched";
4346
+ readonly projectID?: string;
4347
+ readonly subpath?: string;
4493
4348
  readonly location: {
4494
4349
  readonly directory: string;
4495
- readonly workspaceID?: string;
4496
4350
  };
4497
- readonly projectID?: string;
4498
- readonly subpath?: string;
4499
4351
  readonly previous?: {
4500
4352
  readonly location: {
4501
4353
  readonly directory: string;
4502
- readonly workspaceID?: string;
4503
4354
  };
4504
4355
  readonly projectID?: string;
4505
4356
  readonly subpath?: string;
4506
- };
4357
+ } | null;
4507
4358
  } | {
4508
4359
  readonly id: string;
4509
4360
  readonly metadata?: {
@@ -4794,6 +4645,28 @@ export type SessionImportInput = {
4794
4645
  };
4795
4646
  readonly summary: string;
4796
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
+ };
4797
4670
  } | {
4798
4671
  readonly type: "compaction";
4799
4672
  readonly id: string;
@@ -4810,10 +4683,29 @@ export type SessionImportInput = {
4810
4683
  readonly message: string;
4811
4684
  readonly status?: number;
4812
4685
  };
4813
- })>;
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
+ }>;
4814
4707
  readonly location?: {
4815
4708
  readonly directory: string;
4816
- readonly workspaceID?: string;
4817
4709
  } | null;
4818
4710
  }["messages"];
4819
4711
  readonly location?: {
@@ -4856,14 +4748,15 @@ export type SessionImportInput = {
4856
4748
  readonly archived?: number;
4857
4749
  };
4858
4750
  readonly title?: string;
4859
- readonly location: {
4860
- readonly directory: string;
4861
- readonly workspaceID?: string;
4862
- };
4863
4751
  readonly subpath?: string;
4864
4752
  readonly metadata?: {
4865
4753
  readonly [x: string]: JsonValue;
4866
4754
  };
4755
+ readonly permissions?: ReadonlyArray<{
4756
+ readonly action: string;
4757
+ readonly resource: string;
4758
+ readonly effect: "allow" | "deny" | "ask";
4759
+ }>;
4867
4760
  readonly revert?: {
4868
4761
  readonly messageID: string;
4869
4762
  readonly partID?: string;
@@ -4876,10 +4769,8 @@ export type SessionImportInput = {
4876
4769
  readonly status: "added" | "deleted" | "modified";
4877
4770
  }>;
4878
4771
  };
4879
- readonly policy?: {
4880
- readonly tools: {
4881
- readonly allow: ReadonlyArray<string>;
4882
- };
4772
+ readonly location: {
4773
+ readonly directory: string;
4883
4774
  };
4884
4775
  };
4885
4776
  readonly messages: ReadonlyArray<{
@@ -4921,20 +4812,18 @@ export type SessionImportInput = {
4921
4812
  readonly created: number;
4922
4813
  };
4923
4814
  readonly type: "location-switched";
4815
+ readonly projectID?: string;
4816
+ readonly subpath?: string;
4924
4817
  readonly location: {
4925
4818
  readonly directory: string;
4926
- readonly workspaceID?: string;
4927
4819
  };
4928
- readonly projectID?: string;
4929
- readonly subpath?: string;
4930
4820
  readonly previous?: {
4931
4821
  readonly location: {
4932
4822
  readonly directory: string;
4933
- readonly workspaceID?: string;
4934
4823
  };
4935
4824
  readonly projectID?: string;
4936
4825
  readonly subpath?: string;
4937
- };
4826
+ } | null;
4938
4827
  } | {
4939
4828
  readonly id: string;
4940
4829
  readonly metadata?: {
@@ -5225,6 +5114,28 @@ export type SessionImportInput = {
5225
5114
  };
5226
5115
  readonly summary: string;
5227
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
+ };
5228
5139
  } | {
5229
5140
  readonly type: "compaction";
5230
5141
  readonly id: string;
@@ -5241,10 +5152,29 @@ export type SessionImportInput = {
5241
5152
  readonly message: string;
5242
5153
  readonly status?: number;
5243
5154
  };
5244
- })>;
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
+ }>;
5245
5176
  readonly location?: {
5246
5177
  readonly directory: string;
5247
- readonly workspaceID?: string;
5248
5178
  } | null;
5249
5179
  }["location"];
5250
5180
  };
@@ -5285,66 +5215,9 @@ export type SessionForkInput = {
5285
5215
  readonly sessionID: {
5286
5216
  readonly sessionID: string;
5287
5217
  }["sessionID"];
5288
- readonly boundary: {
5289
- readonly boundary: {
5290
- readonly type: "before";
5291
- readonly messageID: string;
5292
- } | {
5293
- readonly type: "through";
5294
- };
5295
- readonly policy?: {
5296
- readonly tools: {
5297
- readonly allow: ReadonlyArray<string>;
5298
- };
5299
- } | null;
5300
- readonly tools?: ReadonlyArray<{
5301
- readonly name: string;
5302
- readonly description: string;
5303
- readonly parameters?: {
5304
- readonly [x: string]: JsonValue;
5305
- };
5306
- }> | null;
5307
- }["boundary"];
5308
- readonly policy?: {
5309
- readonly boundary: {
5310
- readonly type: "before";
5311
- readonly messageID: string;
5312
- } | {
5313
- readonly type: "through";
5314
- };
5315
- readonly policy?: {
5316
- readonly tools: {
5317
- readonly allow: ReadonlyArray<string>;
5318
- };
5319
- } | null;
5320
- readonly tools?: ReadonlyArray<{
5321
- readonly name: string;
5322
- readonly description: string;
5323
- readonly parameters?: {
5324
- readonly [x: string]: JsonValue;
5325
- };
5326
- }> | null;
5327
- }["policy"];
5328
- readonly tools?: {
5329
- readonly boundary: {
5330
- readonly type: "before";
5331
- readonly messageID: string;
5332
- } | {
5333
- readonly type: "through";
5334
- };
5335
- readonly policy?: {
5336
- readonly tools: {
5337
- readonly allow: ReadonlyArray<string>;
5338
- };
5339
- } | null;
5340
- readonly tools?: ReadonlyArray<{
5341
- readonly name: string;
5342
- readonly description: string;
5343
- readonly parameters?: {
5344
- readonly [x: string]: JsonValue;
5345
- };
5346
- }> | null;
5347
- }["tools"];
5218
+ readonly before?: {
5219
+ readonly before?: string | undefined;
5220
+ }["before"];
5348
5221
  };
5349
5222
  export type SessionForkOutput = {
5350
5223
  data: SessionInfo;
@@ -5386,18 +5259,11 @@ export type SessionMoveInput = {
5386
5259
  }["sessionID"];
5387
5260
  readonly directory: {
5388
5261
  readonly directory: string;
5389
- readonly workspaceID?: string;
5390
- readonly delivery?: ("steer" | "queue") | null;
5262
+ readonly delivery?: ("steer" | "queue") | undefined;
5391
5263
  }["directory"];
5392
- readonly workspaceID?: {
5393
- readonly directory: string;
5394
- readonly workspaceID?: string;
5395
- readonly delivery?: ("steer" | "queue") | null;
5396
- }["workspaceID"];
5397
5264
  readonly delivery?: {
5398
5265
  readonly directory: string;
5399
- readonly workspaceID?: string;
5400
- readonly delivery?: ("steer" | "queue") | null;
5266
+ readonly delivery?: ("steer" | "queue") | undefined;
5401
5267
  }["delivery"];
5402
5268
  };
5403
5269
  export type SessionMoveOutput = void;
@@ -5693,8 +5559,8 @@ export type SessionCommandInput = {
5693
5559
  readonly sessionID: {
5694
5560
  readonly sessionID: string;
5695
5561
  }["sessionID"];
5696
- readonly command: {
5697
- readonly command: string;
5562
+ readonly name: {
5563
+ readonly name: string;
5698
5564
  readonly text: string;
5699
5565
  readonly files?: ReadonlyArray<{
5700
5566
  readonly uri: string;
@@ -5723,9 +5589,9 @@ export type SessionCommandInput = {
5723
5589
  };
5724
5590
  }>;
5725
5591
  readonly delivery?: ("steer" | "queue") | null;
5726
- }["command"];
5592
+ }["name"];
5727
5593
  readonly text: {
5728
- readonly command: string;
5594
+ readonly name: string;
5729
5595
  readonly text: string;
5730
5596
  readonly files?: ReadonlyArray<{
5731
5597
  readonly uri: string;
@@ -5756,7 +5622,7 @@ export type SessionCommandInput = {
5756
5622
  readonly delivery?: ("steer" | "queue") | null;
5757
5623
  }["text"];
5758
5624
  readonly files?: {
5759
- readonly command: string;
5625
+ readonly name: string;
5760
5626
  readonly text: string;
5761
5627
  readonly files?: ReadonlyArray<{
5762
5628
  readonly uri: string;
@@ -5787,7 +5653,7 @@ export type SessionCommandInput = {
5787
5653
  readonly delivery?: ("steer" | "queue") | null;
5788
5654
  }["files"];
5789
5655
  readonly agents?: {
5790
- readonly command: string;
5656
+ readonly name: string;
5791
5657
  readonly text: string;
5792
5658
  readonly files?: ReadonlyArray<{
5793
5659
  readonly uri: string;
@@ -5818,7 +5684,7 @@ export type SessionCommandInput = {
5818
5684
  readonly delivery?: ("steer" | "queue") | null;
5819
5685
  }["agents"];
5820
5686
  readonly skills?: {
5821
- readonly command: string;
5687
+ readonly name: string;
5822
5688
  readonly text: string;
5823
5689
  readonly files?: ReadonlyArray<{
5824
5690
  readonly uri: string;
@@ -5849,7 +5715,7 @@ export type SessionCommandInput = {
5849
5715
  readonly delivery?: ("steer" | "queue") | null;
5850
5716
  }["skills"];
5851
5717
  readonly delivery?: {
5852
- readonly command: string;
5718
+ readonly name: string;
5853
5719
  readonly text: string;
5854
5720
  readonly files?: ReadonlyArray<{
5855
5721
  readonly uri: string;
@@ -5885,19 +5751,12 @@ export type SessionSkillInput = {
5885
5751
  readonly sessionID: {
5886
5752
  readonly sessionID: string;
5887
5753
  }["sessionID"];
5888
- readonly id?: {
5889
- readonly id?: string | undefined;
5890
- readonly skill: string;
5754
+ readonly id: {
5755
+ readonly id: string;
5891
5756
  readonly resume?: boolean | undefined;
5892
5757
  }["id"];
5893
- readonly skill: {
5894
- readonly id?: string | undefined;
5895
- readonly skill: string;
5896
- readonly resume?: boolean | undefined;
5897
- }["skill"];
5898
5758
  readonly resume?: {
5899
- readonly id?: string | undefined;
5900
- readonly skill: string;
5759
+ readonly id: string;
5901
5760
  readonly resume?: boolean | undefined;
5902
5761
  }["resume"];
5903
5762
  };
@@ -6042,6 +5901,29 @@ export type SessionContextInput = {
6042
5901
  export type SessionContextOutput = {
6043
5902
  data: Array<SessionMessageInfo>;
6044
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"];
6045
5927
  export type SessionInboxListInput = {
6046
5928
  readonly sessionID: {
6047
5929
  readonly sessionID: string;
@@ -6116,55 +5998,6 @@ export type SessionInstructionsEntryRemoveInput = {
6116
5998
  }["key"];
6117
5999
  };
6118
6000
  export type SessionInstructionsEntryRemoveOutput = void;
6119
- export type SessionToolsPutInput = {
6120
- readonly sessionID: {
6121
- readonly sessionID: string;
6122
- }["sessionID"];
6123
- readonly tools: {
6124
- readonly tools: ReadonlyArray<{
6125
- readonly name: string;
6126
- readonly description: string;
6127
- readonly parameters?: {
6128
- readonly [x: string]: JsonValue;
6129
- };
6130
- }>;
6131
- }["tools"];
6132
- };
6133
- export type SessionToolsPutOutput = void;
6134
- export type SessionToolsListInput = {
6135
- readonly sessionID: {
6136
- readonly sessionID: string;
6137
- }["sessionID"];
6138
- };
6139
- export type SessionToolsListOutput = {
6140
- data: Array<SessionDynamicToolDefinition>;
6141
- }["data"];
6142
- export type SessionToolsCallsInput = {
6143
- readonly sessionID: {
6144
- readonly sessionID: string;
6145
- }["sessionID"];
6146
- };
6147
- export type SessionToolsCallsOutput = {
6148
- data: Array<SessionDynamicToolCall>;
6149
- }["data"];
6150
- export type SessionToolsReplyInput = {
6151
- readonly sessionID: {
6152
- readonly sessionID: string;
6153
- readonly callID: string;
6154
- }["sessionID"];
6155
- readonly callID: {
6156
- readonly sessionID: string;
6157
- readonly callID: string;
6158
- }["callID"];
6159
- readonly payload: {
6160
- readonly status: "completed";
6161
- readonly content: string;
6162
- } | {
6163
- readonly status: "failed";
6164
- readonly message: string;
6165
- };
6166
- };
6167
- export type SessionToolsReplyOutput = void;
6168
6001
  export type SessionGenerateInput = {
6169
6002
  readonly sessionID: {
6170
6003
  readonly sessionID: string;
@@ -6190,152 +6023,31 @@ export type SessionLogInput = {
6190
6023
  export type SessionLogOutput = SessionLogItem;
6191
6024
  export type SessionInterruptInput = {
6192
6025
  readonly sessionID: {
6193
- readonly sessionID: string;
6194
- }["sessionID"];
6195
- readonly continue?: {
6196
- readonly continue?: boolean | undefined;
6197
- }["continue"];
6198
- };
6199
- export type SessionInterruptOutput = SessionInterruptResponse;
6200
- export type SessionBackgroundInput = {
6201
- readonly sessionID: {
6202
- readonly sessionID: string;
6203
- }["sessionID"];
6204
- };
6205
- export type SessionBackgroundOutput = void;
6206
- export type SessionMessageInput = {
6207
- readonly sessionID: {
6208
- readonly sessionID: string;
6209
- readonly messageID: string;
6210
- }["sessionID"];
6211
- readonly messageID: {
6212
- readonly sessionID: string;
6213
- readonly messageID: string;
6214
- }["messageID"];
6215
- };
6216
- export type SessionMessageOutput = {
6217
- data: SessionMessageInfo;
6218
- }["data"];
6219
- export type SessionMessageUpdateInput = {
6220
- readonly sessionID: {
6221
- readonly sessionID: string;
6222
- readonly messageID: string;
6223
- }["sessionID"];
6224
- readonly messageID: {
6225
- readonly sessionID: string;
6226
- readonly messageID: string;
6227
- }["messageID"];
6228
- readonly content: {
6229
- readonly content: ReadonlyArray<{
6230
- readonly type: "text";
6231
- readonly text: string;
6232
- readonly state?: {
6233
- readonly [x: string]: JsonValue;
6234
- };
6235
- } | {
6236
- readonly type: "reasoning";
6237
- readonly text: string;
6238
- readonly state?: {
6239
- readonly [x: string]: JsonValue;
6240
- };
6241
- readonly time?: {
6242
- readonly created: number;
6243
- readonly completed?: number;
6244
- };
6245
- } | {
6246
- readonly type: "tool";
6247
- readonly id: string;
6248
- readonly name: string;
6249
- readonly executed?: boolean;
6250
- readonly providerState?: {
6251
- readonly [x: string]: JsonValue;
6252
- };
6253
- readonly providerResultState?: {
6254
- readonly [x: string]: JsonValue;
6255
- };
6256
- readonly state: {
6257
- readonly status: "streaming";
6258
- readonly input: string;
6259
- } | {
6260
- readonly status: "running";
6261
- readonly input: {
6262
- readonly [x: string]: JsonValue;
6263
- };
6264
- readonly metadata: {
6265
- readonly [x: string]: JsonValue;
6266
- };
6267
- } | {
6268
- readonly status: "completed";
6269
- readonly input: {
6270
- readonly [x: string]: JsonValue;
6271
- };
6272
- readonly content: readonly [
6273
- ({
6274
- readonly type: "text";
6275
- readonly text: string;
6276
- } | {
6277
- readonly type: "file";
6278
- readonly uri: string;
6279
- readonly mime: string;
6280
- readonly name?: string | null;
6281
- }),
6282
- ...Array<{
6283
- readonly type: "text";
6284
- readonly text: string;
6285
- } | {
6286
- readonly type: "file";
6287
- readonly uri: string;
6288
- readonly mime: string;
6289
- readonly name?: string | null;
6290
- }>
6291
- ];
6292
- readonly metadata?: {
6293
- readonly [x: string]: JsonValue;
6294
- };
6295
- } | {
6296
- readonly status: "error";
6297
- readonly input: {
6298
- readonly [x: string]: JsonValue;
6299
- };
6300
- readonly error: {
6301
- readonly type: string;
6302
- readonly message: string;
6303
- readonly status?: number;
6304
- };
6305
- readonly content?: readonly [
6306
- ({
6307
- readonly type: "text";
6308
- readonly text: string;
6309
- } | {
6310
- readonly type: "file";
6311
- readonly uri: string;
6312
- readonly mime: string;
6313
- readonly name?: string | null;
6314
- }),
6315
- ...Array<{
6316
- readonly type: "text";
6317
- readonly text: string;
6318
- } | {
6319
- readonly type: "file";
6320
- readonly uri: string;
6321
- readonly mime: string;
6322
- readonly name?: string | null;
6323
- }>
6324
- ];
6325
- readonly metadata?: {
6326
- readonly [x: string]: JsonValue;
6327
- };
6328
- };
6329
- readonly time: {
6330
- readonly created: number;
6331
- readonly ran?: number;
6332
- readonly completed?: number;
6333
- };
6334
- }>;
6335
- }["content"];
6026
+ readonly sessionID: string;
6027
+ }["sessionID"];
6028
+ readonly resume?: {
6029
+ readonly resume?: boolean | undefined;
6030
+ }["resume"];
6031
+ };
6032
+ export type SessionInterruptOutput = SessionInterruptResponse;
6033
+ export type SessionBackgroundInput = {
6034
+ readonly sessionID: {
6035
+ readonly sessionID: string;
6036
+ }["sessionID"];
6037
+ };
6038
+ export type SessionBackgroundOutput = void;
6039
+ export type SessionMessageGetInput = {
6040
+ readonly sessionID: {
6041
+ readonly sessionID: string;
6042
+ readonly messageID: string;
6043
+ }["sessionID"];
6044
+ readonly messageID: {
6045
+ readonly sessionID: string;
6046
+ readonly messageID: string;
6047
+ }["messageID"];
6336
6048
  };
6337
- export type SessionMessageUpdateOutput = {
6338
- data: SessionMessageAssistant;
6049
+ export type SessionMessageGetOutput = {
6050
+ data: SessionMessageInfo;
6339
6051
  }["data"];
6340
6052
  export type SessionEnvironmentInput = {
6341
6053
  readonly sessionID: {
@@ -6365,57 +6077,48 @@ export type MessageListInput = {
6365
6077
  readonly limit?: number | undefined;
6366
6078
  readonly order?: "asc" | "desc" | undefined;
6367
6079
  readonly cursor?: string | undefined;
6080
+ readonly type?: "agent-switched" | "model-switched" | "location-switched" | "user" | "synthetic" | "system" | "skill" | "shell" | "assistant" | "compaction" | undefined;
6368
6081
  }["limit"];
6369
6082
  readonly order?: {
6370
6083
  readonly limit?: number | undefined;
6371
6084
  readonly order?: "asc" | "desc" | undefined;
6372
6085
  readonly cursor?: string | undefined;
6086
+ readonly type?: "agent-switched" | "model-switched" | "location-switched" | "user" | "synthetic" | "system" | "skill" | "shell" | "assistant" | "compaction" | undefined;
6373
6087
  }["order"];
6374
6088
  readonly cursor?: {
6375
6089
  readonly limit?: number | undefined;
6376
6090
  readonly order?: "asc" | "desc" | undefined;
6377
6091
  readonly cursor?: string | undefined;
6092
+ readonly type?: "agent-switched" | "model-switched" | "location-switched" | "user" | "synthetic" | "system" | "skill" | "shell" | "assistant" | "compaction" | undefined;
6378
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"];
6379
6100
  };
6380
6101
  export type MessageListOutput = SessionMessagesResponse;
6381
6102
  export type ModelListInput = {
6382
6103
  readonly location?: {
6383
6104
  readonly location?: {
6384
6105
  readonly directory?: string | undefined;
6385
- readonly workspace?: string | undefined;
6386
6106
  } | undefined;
6387
6107
  }["location"];
6388
6108
  };
6389
6109
  export type ModelListOutput = {
6390
- location: {
6391
- directory: string;
6392
- workspaceID?: string;
6393
- project: {
6394
- id: string;
6395
- directory: string;
6396
- canonical: string;
6397
- };
6398
- };
6110
+ location: LocationPublicRef;
6399
6111
  data: Array<ModelInfo>;
6400
6112
  };
6401
6113
  export type ModelDefaultInput = {
6402
6114
  readonly location?: {
6403
6115
  readonly location?: {
6404
6116
  readonly directory?: string | undefined;
6405
- readonly workspace?: string | undefined;
6406
6117
  } | undefined;
6407
6118
  }["location"];
6408
6119
  };
6409
6120
  export type ModelDefaultOutput = {
6410
- location: {
6411
- directory: string;
6412
- workspaceID?: string;
6413
- project: {
6414
- id: string;
6415
- directory: string;
6416
- canonical: string;
6417
- };
6418
- };
6121
+ location: LocationPublicRef;
6419
6122
  data: ModelInfo | null;
6420
6123
  };
6421
6124
  export type GenerateTextInput = {
@@ -6441,20 +6144,11 @@ export type ProviderListInput = {
6441
6144
  readonly location?: {
6442
6145
  readonly location?: {
6443
6146
  readonly directory?: string | undefined;
6444
- readonly workspace?: string | undefined;
6445
6147
  } | undefined;
6446
6148
  }["location"];
6447
6149
  };
6448
6150
  export type ProviderListOutput = {
6449
- location: {
6450
- directory: string;
6451
- workspaceID?: string;
6452
- project: {
6453
- id: string;
6454
- directory: string;
6455
- canonical: string;
6456
- };
6457
- };
6151
+ location: LocationPublicRef;
6458
6152
  data: Array<ProviderInfo>;
6459
6153
  };
6460
6154
  export type ProviderGetInput = {
@@ -6464,40 +6158,22 @@ export type ProviderGetInput = {
6464
6158
  readonly location?: {
6465
6159
  readonly location?: {
6466
6160
  readonly directory?: string | undefined;
6467
- readonly workspace?: string | undefined;
6468
6161
  } | undefined;
6469
6162
  }["location"];
6470
6163
  };
6471
6164
  export type ProviderGetOutput = {
6472
- location: {
6473
- directory: string;
6474
- workspaceID?: string;
6475
- project: {
6476
- id: string;
6477
- directory: string;
6478
- canonical: string;
6479
- };
6480
- };
6165
+ location: LocationPublicRef;
6481
6166
  data: ProviderInfo;
6482
6167
  };
6483
6168
  export type IntegrationListInput = {
6484
6169
  readonly location?: {
6485
6170
  readonly location?: {
6486
6171
  readonly directory?: string | undefined;
6487
- readonly workspace?: string | undefined;
6488
6172
  } | undefined;
6489
6173
  }["location"];
6490
6174
  };
6491
6175
  export type IntegrationListOutput = {
6492
- location: {
6493
- directory: string;
6494
- workspaceID?: string;
6495
- project: {
6496
- id: string;
6497
- directory: string;
6498
- canonical: string;
6499
- };
6500
- };
6176
+ location: LocationPublicRef;
6501
6177
  data: Array<IntegrationInfo>;
6502
6178
  };
6503
6179
  export type IntegrationGetInput = {
@@ -6507,27 +6183,17 @@ export type IntegrationGetInput = {
6507
6183
  readonly location?: {
6508
6184
  readonly location?: {
6509
6185
  readonly directory?: string | undefined;
6510
- readonly workspace?: string | undefined;
6511
6186
  } | undefined;
6512
6187
  }["location"];
6513
6188
  };
6514
6189
  export type IntegrationGetOutput = {
6515
- location: {
6516
- directory: string;
6517
- workspaceID?: string;
6518
- project: {
6519
- id: string;
6520
- directory: string;
6521
- canonical: string;
6522
- };
6523
- };
6524
- data: IntegrationInfo | null;
6190
+ location: LocationPublicRef;
6191
+ data: IntegrationInfo;
6525
6192
  };
6526
6193
  export type IntegrationWellknownAddInput = {
6527
6194
  readonly location?: {
6528
6195
  readonly location?: {
6529
6196
  readonly directory?: string | undefined;
6530
- readonly workspace?: string | undefined;
6531
6197
  } | undefined;
6532
6198
  }["location"];
6533
6199
  readonly url: {
@@ -6542,7 +6208,6 @@ export type IntegrationConnectKeyInput = {
6542
6208
  readonly location?: {
6543
6209
  readonly location?: {
6544
6210
  readonly directory?: string | undefined;
6545
- readonly workspace?: string | undefined;
6546
6211
  } | undefined;
6547
6212
  }["location"];
6548
6213
  readonly key: {
@@ -6575,7 +6240,6 @@ export type IntegrationOauthConnectInput = {
6575
6240
  readonly location?: {
6576
6241
  readonly location?: {
6577
6242
  readonly directory?: string | undefined;
6578
- readonly workspace?: string | undefined;
6579
6243
  } | undefined;
6580
6244
  }["location"];
6581
6245
  readonly methodID: {
@@ -6601,25 +6265,8 @@ export type IntegrationOauthConnectInput = {
6601
6265
  }["label"];
6602
6266
  };
6603
6267
  export type IntegrationOauthConnectOutput = {
6604
- location: {
6605
- directory: string;
6606
- workspaceID?: string;
6607
- project: {
6608
- id: string;
6609
- directory: string;
6610
- canonical: string;
6611
- };
6612
- };
6613
- data: {
6614
- attemptID: string;
6615
- url: string;
6616
- instructions: string;
6617
- mode: "auto" | "code";
6618
- time: {
6619
- created: number | "Infinity" | "-Infinity" | "NaN";
6620
- expires: number | "Infinity" | "-Infinity" | "NaN";
6621
- };
6622
- };
6268
+ location: LocationPublicRef;
6269
+ data: IntegrationAttempt;
6623
6270
  };
6624
6271
  export type IntegrationOauthStatusInput = {
6625
6272
  readonly integrationID: {
@@ -6633,20 +6280,11 @@ export type IntegrationOauthStatusInput = {
6633
6280
  readonly location?: {
6634
6281
  readonly location?: {
6635
6282
  readonly directory?: string | undefined;
6636
- readonly workspace?: string | undefined;
6637
6283
  } | undefined;
6638
6284
  }["location"];
6639
6285
  };
6640
6286
  export type IntegrationOauthStatusOutput = {
6641
- location: {
6642
- directory: string;
6643
- workspaceID?: string;
6644
- project: {
6645
- id: string;
6646
- directory: string;
6647
- canonical: string;
6648
- };
6649
- };
6287
+ location: LocationPublicRef;
6650
6288
  data: IntegrationAttemptStatus;
6651
6289
  };
6652
6290
  export type IntegrationOauthCompleteInput = {
@@ -6661,7 +6299,6 @@ export type IntegrationOauthCompleteInput = {
6661
6299
  readonly location?: {
6662
6300
  readonly location?: {
6663
6301
  readonly directory?: string | undefined;
6664
- readonly workspace?: string | undefined;
6665
6302
  } | undefined;
6666
6303
  }["location"];
6667
6304
  readonly code?: {
@@ -6681,7 +6318,6 @@ export type IntegrationOauthCancelInput = {
6681
6318
  readonly location?: {
6682
6319
  readonly location?: {
6683
6320
  readonly directory?: string | undefined;
6684
- readonly workspace?: string | undefined;
6685
6321
  } | undefined;
6686
6322
  }["location"];
6687
6323
  };
@@ -6693,7 +6329,6 @@ export type IntegrationCommandConnectInput = {
6693
6329
  readonly location?: {
6694
6330
  readonly location?: {
6695
6331
  readonly directory?: string | undefined;
6696
- readonly workspace?: string | undefined;
6697
6332
  } | undefined;
6698
6333
  }["location"];
6699
6334
  readonly methodID: {
@@ -6706,15 +6341,7 @@ export type IntegrationCommandConnectInput = {
6706
6341
  }["label"];
6707
6342
  };
6708
6343
  export type IntegrationCommandConnectOutput = {
6709
- location: {
6710
- directory: string;
6711
- workspaceID?: string;
6712
- project: {
6713
- id: string;
6714
- directory: string;
6715
- canonical: string;
6716
- };
6717
- };
6344
+ location: LocationPublicRef;
6718
6345
  data: IntegrationCommandAttempt;
6719
6346
  };
6720
6347
  export type IntegrationCommandStatusInput = {
@@ -6729,20 +6356,11 @@ export type IntegrationCommandStatusInput = {
6729
6356
  readonly location?: {
6730
6357
  readonly location?: {
6731
6358
  readonly directory?: string | undefined;
6732
- readonly workspace?: string | undefined;
6733
6359
  } | undefined;
6734
6360
  }["location"];
6735
6361
  };
6736
6362
  export type IntegrationCommandStatusOutput = {
6737
- location: {
6738
- directory: string;
6739
- workspaceID?: string;
6740
- project: {
6741
- id: string;
6742
- directory: string;
6743
- canonical: string;
6744
- };
6745
- };
6363
+ location: LocationPublicRef;
6746
6364
  data: IntegrationCommandAttemptStatus;
6747
6365
  };
6748
6366
  export type IntegrationCommandCancelInput = {
@@ -6757,49 +6375,19 @@ export type IntegrationCommandCancelInput = {
6757
6375
  readonly location?: {
6758
6376
  readonly location?: {
6759
6377
  readonly directory?: string | undefined;
6760
- readonly workspace?: string | undefined;
6761
6378
  } | undefined;
6762
6379
  }["location"];
6763
6380
  };
6764
6381
  export type IntegrationCommandCancelOutput = void;
6765
- export type AuthStatusInput = {
6766
- readonly location?: {
6767
- readonly location?: {
6768
- readonly directory?: string | undefined;
6769
- readonly workspace?: string | undefined;
6770
- } | undefined;
6771
- }["location"];
6772
- };
6773
- export type AuthStatusOutput = {
6774
- location: {
6775
- directory: string;
6776
- workspaceID?: string;
6777
- project: {
6778
- id: string;
6779
- directory: string;
6780
- canonical: string;
6781
- };
6782
- };
6783
- data: AuthStatus;
6784
- };
6785
6382
  export type McpListInput = {
6786
6383
  readonly location?: {
6787
6384
  readonly location?: {
6788
6385
  readonly directory?: string | undefined;
6789
- readonly workspace?: string | undefined;
6790
6386
  } | undefined;
6791
6387
  }["location"];
6792
6388
  };
6793
6389
  export type McpListOutput = {
6794
- location: {
6795
- directory: string;
6796
- workspaceID?: string;
6797
- project: {
6798
- id: string;
6799
- directory: string;
6800
- canonical: string;
6801
- };
6802
- };
6390
+ location: LocationPublicRef;
6803
6391
  data: Array<McpServer>;
6804
6392
  };
6805
6393
  export type McpAddInput = {
@@ -6809,7 +6397,6 @@ export type McpAddInput = {
6809
6397
  readonly location?: {
6810
6398
  readonly location?: {
6811
6399
  readonly directory?: string | undefined;
6812
- readonly workspace?: string | undefined;
6813
6400
  } | undefined;
6814
6401
  }["location"];
6815
6402
  readonly config: {
@@ -6827,6 +6414,7 @@ export type McpAddInput = {
6827
6414
  readonly catalog?: number;
6828
6415
  readonly execution?: number;
6829
6416
  };
6417
+ readonly protocol?: "legacy" | "auto" | "2026-07-28";
6830
6418
  } | {
6831
6419
  readonly type: "remote";
6832
6420
  readonly url: string;
@@ -6847,6 +6435,7 @@ export type McpAddInput = {
6847
6435
  readonly catalog?: number;
6848
6436
  readonly execution?: number;
6849
6437
  };
6438
+ readonly protocol?: "legacy" | "auto" | "2026-07-28";
6850
6439
  };
6851
6440
  }["config"];
6852
6441
  };
@@ -6858,7 +6447,6 @@ export type McpRemoveInput = {
6858
6447
  readonly location?: {
6859
6448
  readonly location?: {
6860
6449
  readonly directory?: string | undefined;
6861
- readonly workspace?: string | undefined;
6862
6450
  } | undefined;
6863
6451
  }["location"];
6864
6452
  };
@@ -6870,7 +6458,6 @@ export type McpConnectInput = {
6870
6458
  readonly location?: {
6871
6459
  readonly location?: {
6872
6460
  readonly directory?: string | undefined;
6873
- readonly workspace?: string | undefined;
6874
6461
  } | undefined;
6875
6462
  }["location"];
6876
6463
  };
@@ -6882,7 +6469,6 @@ export type McpDisconnectInput = {
6882
6469
  readonly location?: {
6883
6470
  readonly location?: {
6884
6471
  readonly directory?: string | undefined;
6885
- readonly workspace?: string | undefined;
6886
6472
  } | undefined;
6887
6473
  }["location"];
6888
6474
  };
@@ -6891,32 +6477,17 @@ export type McpResourceCatalogInput = {
6891
6477
  readonly location?: {
6892
6478
  readonly location?: {
6893
6479
  readonly directory?: string | undefined;
6894
- readonly workspace?: string | undefined;
6895
6480
  } | undefined;
6896
6481
  }["location"];
6897
6482
  };
6898
6483
  export type McpResourceCatalogOutput = {
6899
- location: {
6900
- directory: string;
6901
- workspaceID?: string;
6902
- project: {
6903
- id: string;
6904
- directory: string;
6905
- canonical: string;
6906
- };
6907
- };
6484
+ location: LocationPublicRef;
6908
6485
  data: McpResourceCatalog;
6909
6486
  };
6910
6487
  export type CredentialUpdateInput = {
6911
6488
  readonly credentialID: {
6912
6489
  readonly credentialID: string;
6913
6490
  }["credentialID"];
6914
- readonly location?: {
6915
- readonly location?: {
6916
- readonly directory?: string | undefined;
6917
- readonly workspace?: string | undefined;
6918
- } | undefined;
6919
- }["location"];
6920
6491
  readonly label: {
6921
6492
  readonly label: string;
6922
6493
  }["label"];
@@ -6926,24 +6497,12 @@ export type CredentialActivateInput = {
6926
6497
  readonly credentialID: {
6927
6498
  readonly credentialID: string;
6928
6499
  }["credentialID"];
6929
- readonly location?: {
6930
- readonly location?: {
6931
- readonly directory?: string | undefined;
6932
- readonly workspace?: string | undefined;
6933
- } | undefined;
6934
- }["location"];
6935
6500
  };
6936
6501
  export type CredentialActivateOutput = void;
6937
6502
  export type CredentialRemoveInput = {
6938
6503
  readonly credentialID: {
6939
6504
  readonly credentialID: string;
6940
6505
  }["credentialID"];
6941
- readonly location?: {
6942
- readonly location?: {
6943
- readonly directory?: string | undefined;
6944
- readonly workspace?: string | undefined;
6945
- } | undefined;
6946
- }["location"];
6947
6506
  };
6948
6507
  export type CredentialRemoveOutput = void;
6949
6508
  export type ProjectListOutput = Array<Project>;
@@ -6951,7 +6510,20 @@ export type ProjectUpdateInput = {
6951
6510
  readonly projectID: {
6952
6511
  readonly projectID: string;
6953
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"];
6954
6525
  readonly name?: {
6526
+ readonly canonical?: string;
6955
6527
  readonly name?: string;
6956
6528
  readonly icon?: {
6957
6529
  readonly url?: string;
@@ -6963,6 +6535,7 @@ export type ProjectUpdateInput = {
6963
6535
  };
6964
6536
  }["name"];
6965
6537
  readonly icon?: {
6538
+ readonly canonical?: string;
6966
6539
  readonly name?: string;
6967
6540
  readonly icon?: {
6968
6541
  readonly url?: string;
@@ -6974,6 +6547,7 @@ export type ProjectUpdateInput = {
6974
6547
  };
6975
6548
  }["icon"];
6976
6549
  readonly commands?: {
6550
+ readonly canonical?: string;
6977
6551
  readonly name?: string;
6978
6552
  readonly icon?: {
6979
6553
  readonly url?: string;
@@ -6986,33 +6560,15 @@ export type ProjectUpdateInput = {
6986
6560
  }["commands"];
6987
6561
  };
6988
6562
  export type ProjectUpdateOutput = Project;
6989
- export type ProjectCurrentInput = {
6990
- readonly location?: {
6991
- readonly location?: {
6992
- readonly directory?: string | undefined;
6993
- readonly workspace?: string | undefined;
6994
- } | undefined;
6995
- }["location"];
6996
- };
6997
- export type ProjectCurrentOutput = ProjectCurrent;
6998
6563
  export type FormRequestListInput = {
6999
6564
  readonly location?: {
7000
6565
  readonly location?: {
7001
6566
  readonly directory?: string | undefined;
7002
- readonly workspace?: string | undefined;
7003
6567
  } | undefined;
7004
6568
  }["location"];
7005
6569
  };
7006
6570
  export type FormRequestListOutput = {
7007
- location: {
7008
- directory: string;
7009
- workspaceID?: string;
7010
- project: {
7011
- id: string;
7012
- directory: string;
7013
- canonical: string;
7014
- };
7015
- };
6571
+ location: LocationPublicRef;
7016
6572
  data: Array<FormInfo>;
7017
6573
  };
7018
6574
  export type FormListInput = {
@@ -7813,19 +7369,6 @@ export type FormStateInput = {
7813
7369
  export type FormStateOutput = {
7814
7370
  data: FormState;
7815
7371
  }["data"];
7816
- export type FormReceiptInput = {
7817
- readonly sessionID: {
7818
- readonly sessionID: string;
7819
- readonly formID: string;
7820
- }["sessionID"];
7821
- readonly formID: {
7822
- readonly sessionID: string;
7823
- readonly formID: string;
7824
- }["formID"];
7825
- };
7826
- export type FormReceiptOutput = {
7827
- data: FormReceipt;
7828
- }["data"];
7829
7372
  export type FormReplyInput = {
7830
7373
  readonly sessionID: {
7831
7374
  readonly sessionID: string;
@@ -7837,16 +7380,9 @@ export type FormReplyInput = {
7837
7380
  }["formID"];
7838
7381
  readonly answer: {
7839
7382
  readonly answer: {
7840
- readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
7383
+ readonly [x: string]: string | number | boolean | ReadonlyArray<string>;
7841
7384
  };
7842
- readonly responseID?: string;
7843
7385
  }["answer"];
7844
- readonly responseID?: {
7845
- readonly answer: {
7846
- readonly [x: string]: string | number | "Infinity" | "-Infinity" | "NaN" | boolean | ReadonlyArray<string>;
7847
- };
7848
- readonly responseID?: string;
7849
- }["responseID"];
7850
7386
  };
7851
7387
  export type FormReplyOutput = void;
7852
7388
  export type FormCancelInput = {
@@ -7864,20 +7400,11 @@ export type PermissionRequestListInput = {
7864
7400
  readonly location?: {
7865
7401
  readonly location?: {
7866
7402
  readonly directory?: string | undefined;
7867
- readonly workspace?: string | undefined;
7868
7403
  } | undefined;
7869
7404
  }["location"];
7870
7405
  };
7871
7406
  export type PermissionRequestListOutput = {
7872
- location: {
7873
- directory: string;
7874
- workspaceID?: string;
7875
- project: {
7876
- id: string;
7877
- directory: string;
7878
- canonical: string;
7879
- };
7880
- };
7407
+ location: LocationPublicRef;
7881
7408
  data: Array<PermissionRequest>;
7882
7409
  };
7883
7410
  export type PermissionSavedListInput = {
@@ -8031,19 +7558,6 @@ export type PermissionGetInput = {
8031
7558
  export type PermissionGetOutput = {
8032
7559
  data: PermissionRequest;
8033
7560
  }["data"];
8034
- export type PermissionReceiptInput = {
8035
- readonly sessionID: {
8036
- readonly sessionID: string;
8037
- readonly requestID: string;
8038
- }["sessionID"];
8039
- readonly requestID: {
8040
- readonly sessionID: string;
8041
- readonly requestID: string;
8042
- }["requestID"];
8043
- };
8044
- export type PermissionReceiptOutput = {
8045
- data: PermissionReceipt;
8046
- }["data"];
8047
7561
  export type PermissionReplyInput = {
8048
7562
  readonly sessionID: {
8049
7563
  readonly sessionID: string;
@@ -8056,25 +7570,30 @@ export type PermissionReplyInput = {
8056
7570
  readonly reply: {
8057
7571
  readonly reply: "once" | "always" | "reject";
8058
7572
  readonly message?: string | undefined;
8059
- readonly responseID?: string | undefined;
8060
7573
  }["reply"];
8061
7574
  readonly message?: {
8062
7575
  readonly reply: "once" | "always" | "reject";
8063
7576
  readonly message?: string | undefined;
8064
- readonly responseID?: string | undefined;
8065
7577
  }["message"];
8066
- readonly responseID?: {
8067
- readonly reply: "once" | "always" | "reject";
8068
- readonly message?: string | undefined;
8069
- readonly responseID?: string | undefined;
8070
- }["responseID"];
8071
7578
  };
8072
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;
8073
7593
  export type FileReadInput = {
8074
7594
  readonly location?: {
8075
7595
  readonly location?: {
8076
7596
  readonly directory?: string | undefined;
8077
- readonly workspace?: string | undefined;
8078
7597
  } | undefined;
8079
7598
  }["location"];
8080
7599
  readonly path: string;
@@ -8084,35 +7603,24 @@ export type FileListInput = {
8084
7603
  readonly location?: {
8085
7604
  readonly location?: {
8086
7605
  readonly directory?: string | undefined;
8087
- readonly workspace?: string | undefined;
8088
7606
  } | undefined;
8089
7607
  readonly path?: string | undefined;
8090
7608
  }["location"];
8091
7609
  readonly path?: {
8092
7610
  readonly location?: {
8093
7611
  readonly directory?: string | undefined;
8094
- readonly workspace?: string | undefined;
8095
7612
  } | undefined;
8096
7613
  readonly path?: string | undefined;
8097
7614
  }["path"];
8098
7615
  };
8099
7616
  export type FileListOutput = {
8100
- location: {
8101
- directory: string;
8102
- workspaceID?: string;
8103
- project: {
8104
- id: string;
8105
- directory: string;
8106
- canonical: string;
8107
- };
8108
- };
7617
+ location: LocationPublicRef;
8109
7618
  data: Array<FileSystemEntry>;
8110
7619
  };
8111
7620
  export type FileFindInput = {
8112
7621
  readonly location?: {
8113
7622
  readonly location?: {
8114
7623
  readonly directory?: string | undefined;
8115
- readonly workspace?: string | undefined;
8116
7624
  } | undefined;
8117
7625
  readonly query: string;
8118
7626
  readonly type?: "file" | "directory" | undefined;
@@ -8121,7 +7629,6 @@ export type FileFindInput = {
8121
7629
  readonly query: {
8122
7630
  readonly location?: {
8123
7631
  readonly directory?: string | undefined;
8124
- readonly workspace?: string | undefined;
8125
7632
  } | undefined;
8126
7633
  readonly query: string;
8127
7634
  readonly type?: "file" | "directory" | undefined;
@@ -8130,7 +7637,6 @@ export type FileFindInput = {
8130
7637
  readonly type?: {
8131
7638
  readonly location?: {
8132
7639
  readonly directory?: string | undefined;
8133
- readonly workspace?: string | undefined;
8134
7640
  } | undefined;
8135
7641
  readonly query: string;
8136
7642
  readonly type?: "file" | "directory" | undefined;
@@ -8139,7 +7645,6 @@ export type FileFindInput = {
8139
7645
  readonly limit?: {
8140
7646
  readonly location?: {
8141
7647
  readonly directory?: string | undefined;
8142
- readonly workspace?: string | undefined;
8143
7648
  } | undefined;
8144
7649
  readonly query: string;
8145
7650
  readonly type?: "file" | "directory" | undefined;
@@ -8147,55 +7652,29 @@ export type FileFindInput = {
8147
7652
  }["limit"];
8148
7653
  };
8149
7654
  export type FileFindOutput = {
8150
- location: {
8151
- directory: string;
8152
- workspaceID?: string;
8153
- project: {
8154
- id: string;
8155
- directory: string;
8156
- canonical: string;
8157
- };
8158
- };
7655
+ location: LocationPublicRef;
8159
7656
  data: Array<FileSystemEntry>;
8160
7657
  };
8161
7658
  export type CommandListInput = {
8162
7659
  readonly location?: {
8163
7660
  readonly location?: {
8164
7661
  readonly directory?: string | undefined;
8165
- readonly workspace?: string | undefined;
8166
7662
  } | undefined;
8167
7663
  }["location"];
8168
7664
  };
8169
7665
  export type CommandListOutput = {
8170
- location: {
8171
- directory: string;
8172
- workspaceID?: string;
8173
- project: {
8174
- id: string;
8175
- directory: string;
8176
- canonical: string;
8177
- };
8178
- };
7666
+ location: LocationPublicRef;
8179
7667
  data: Array<CommandInfo>;
8180
7668
  };
8181
7669
  export type SkillListInput = {
8182
7670
  readonly location?: {
8183
7671
  readonly location?: {
8184
7672
  readonly directory?: string | undefined;
8185
- readonly workspace?: string | undefined;
8186
7673
  } | undefined;
8187
7674
  }["location"];
8188
7675
  };
8189
7676
  export type SkillListOutput = {
8190
- location: {
8191
- directory: string;
8192
- workspaceID?: string;
8193
- project: {
8194
- id: string;
8195
- directory: string;
8196
- canonical: string;
8197
- };
8198
- };
7677
+ location: LocationPublicRef;
8199
7678
  data: Array<SkillInfo>;
8200
7679
  };
8201
7680
  export type RpcCallInput = {
@@ -8210,7 +7689,6 @@ export type RpcCallInput = {
8210
7689
  readonly location?: {
8211
7690
  readonly location?: {
8212
7691
  readonly directory?: string | undefined;
8213
- readonly workspace?: string | undefined;
8214
7692
  } | undefined;
8215
7693
  }["location"];
8216
7694
  readonly input?: {
@@ -8223,27 +7701,17 @@ export type PtyListInput = {
8223
7701
  readonly location?: {
8224
7702
  readonly location?: {
8225
7703
  readonly directory?: string | undefined;
8226
- readonly workspace?: string | undefined;
8227
7704
  } | undefined;
8228
7705
  }["location"];
8229
7706
  };
8230
7707
  export type PtyListOutput = {
8231
- location: {
8232
- directory: string;
8233
- workspaceID?: string;
8234
- project: {
8235
- id: string;
8236
- directory: string;
8237
- canonical: string;
8238
- };
8239
- };
7708
+ location: LocationPublicRef;
8240
7709
  data: Array<Pty>;
8241
7710
  };
8242
7711
  export type PtyCreateInput = {
8243
7712
  readonly location?: {
8244
7713
  readonly location?: {
8245
7714
  readonly directory?: string | undefined;
8246
- readonly workspace?: string | undefined;
8247
7715
  } | undefined;
8248
7716
  }["location"];
8249
7717
  readonly command?: {
@@ -8293,15 +7761,7 @@ export type PtyCreateInput = {
8293
7761
  }["env"];
8294
7762
  };
8295
7763
  export type PtyCreateOutput = {
8296
- location: {
8297
- directory: string;
8298
- workspaceID?: string;
8299
- project: {
8300
- id: string;
8301
- directory: string;
8302
- canonical: string;
8303
- };
8304
- };
7764
+ location: LocationPublicRef;
8305
7765
  data: Pty;
8306
7766
  };
8307
7767
  export type PtyGetInput = {
@@ -8311,20 +7771,11 @@ export type PtyGetInput = {
8311
7771
  readonly location?: {
8312
7772
  readonly location?: {
8313
7773
  readonly directory?: string | undefined;
8314
- readonly workspace?: string | undefined;
8315
7774
  } | undefined;
8316
7775
  }["location"];
8317
7776
  };
8318
7777
  export type PtyGetOutput = {
8319
- location: {
8320
- directory: string;
8321
- workspaceID?: string;
8322
- project: {
8323
- id: string;
8324
- directory: string;
8325
- canonical: string;
8326
- };
8327
- };
7778
+ location: LocationPublicRef;
8328
7779
  data: Pty;
8329
7780
  };
8330
7781
  export type PtyUpdateInput = {
@@ -8334,7 +7785,6 @@ export type PtyUpdateInput = {
8334
7785
  readonly location?: {
8335
7786
  readonly location?: {
8336
7787
  readonly directory?: string | undefined;
8337
- readonly workspace?: string | undefined;
8338
7788
  } | undefined;
8339
7789
  }["location"];
8340
7790
  readonly title?: {
@@ -8353,15 +7803,7 @@ export type PtyUpdateInput = {
8353
7803
  }["size"];
8354
7804
  };
8355
7805
  export type PtyUpdateOutput = {
8356
- location: {
8357
- directory: string;
8358
- workspaceID?: string;
8359
- project: {
8360
- id: string;
8361
- directory: string;
8362
- canonical: string;
8363
- };
8364
- };
7806
+ location: LocationPublicRef;
8365
7807
  data: Pty;
8366
7808
  };
8367
7809
  export type PtyRemoveInput = {
@@ -8371,7 +7813,6 @@ export type PtyRemoveInput = {
8371
7813
  readonly location?: {
8372
7814
  readonly location?: {
8373
7815
  readonly directory?: string | undefined;
8374
- readonly workspace?: string | undefined;
8375
7816
  } | undefined;
8376
7817
  }["location"];
8377
7818
  };
@@ -8383,7 +7824,6 @@ export type PtyConnectTokenInput = {
8383
7824
  readonly location?: {
8384
7825
  readonly location?: {
8385
7826
  readonly directory?: string | undefined;
8386
- readonly workspace?: string | undefined;
8387
7827
  } | undefined;
8388
7828
  }["location"];
8389
7829
  readonly "x-opencode-ticket"?: {
@@ -8391,15 +7831,7 @@ export type PtyConnectTokenInput = {
8391
7831
  }["x-opencode-ticket"];
8392
7832
  };
8393
7833
  export type PtyConnectTokenOutput = {
8394
- location: {
8395
- directory: string;
8396
- workspaceID?: string;
8397
- project: {
8398
- id: string;
8399
- directory: string;
8400
- canonical: string;
8401
- };
8402
- };
7834
+ location: LocationPublicRef;
8403
7835
  data: PtyTicketConnectToken;
8404
7836
  };
8405
7837
  export type ExperimentalPersistentPtyReadInput = {
@@ -8570,27 +8002,17 @@ export type ShellListInput = {
8570
8002
  readonly location?: {
8571
8003
  readonly location?: {
8572
8004
  readonly directory?: string | undefined;
8573
- readonly workspace?: string | undefined;
8574
8005
  } | undefined;
8575
8006
  }["location"];
8576
8007
  };
8577
8008
  export type ShellListOutput = {
8578
- location: {
8579
- directory: string;
8580
- workspaceID?: string;
8581
- project: {
8582
- id: string;
8583
- directory: string;
8584
- canonical: string;
8585
- };
8586
- };
8009
+ location: LocationPublicRef;
8587
8010
  data: Array<ShellInfo1>;
8588
8011
  };
8589
8012
  export type ShellCreateInput = {
8590
8013
  readonly location?: {
8591
8014
  readonly location?: {
8592
8015
  readonly directory?: string | undefined;
8593
- readonly workspace?: string | undefined;
8594
8016
  } | undefined;
8595
8017
  }["location"];
8596
8018
  readonly command: {
@@ -8627,15 +8049,7 @@ export type ShellCreateInput = {
8627
8049
  }["metadata"];
8628
8050
  };
8629
8051
  export type ShellCreateOutput = {
8630
- location: {
8631
- directory: string;
8632
- workspaceID?: string;
8633
- project: {
8634
- id: string;
8635
- directory: string;
8636
- canonical: string;
8637
- };
8638
- };
8052
+ location: LocationPublicRef;
8639
8053
  data: ShellInfo1;
8640
8054
  };
8641
8055
  export type ShellGetInput = {
@@ -8645,20 +8059,11 @@ export type ShellGetInput = {
8645
8059
  readonly location?: {
8646
8060
  readonly location?: {
8647
8061
  readonly directory?: string | undefined;
8648
- readonly workspace?: string | undefined;
8649
8062
  } | undefined;
8650
8063
  }["location"];
8651
8064
  };
8652
8065
  export type ShellGetOutput = {
8653
- location: {
8654
- directory: string;
8655
- workspaceID?: string;
8656
- project: {
8657
- id: string;
8658
- directory: string;
8659
- canonical: string;
8660
- };
8661
- };
8066
+ location: LocationPublicRef;
8662
8067
  data: ShellInfo1;
8663
8068
  };
8664
8069
  export type ShellTimeoutInput = {
@@ -8668,7 +8073,6 @@ export type ShellTimeoutInput = {
8668
8073
  readonly location?: {
8669
8074
  readonly location?: {
8670
8075
  readonly directory?: string | undefined;
8671
- readonly workspace?: string | undefined;
8672
8076
  } | undefined;
8673
8077
  }["location"];
8674
8078
  readonly timeout: {
@@ -8676,15 +8080,7 @@ export type ShellTimeoutInput = {
8676
8080
  }["timeout"];
8677
8081
  };
8678
8082
  export type ShellTimeoutOutput = {
8679
- location: {
8680
- directory: string;
8681
- workspaceID?: string;
8682
- project: {
8683
- id: string;
8684
- directory: string;
8685
- canonical: string;
8686
- };
8687
- };
8083
+ location: LocationPublicRef;
8688
8084
  data: ShellInfo1;
8689
8085
  };
8690
8086
  export type ShellOutputInput = {
@@ -8694,7 +8090,6 @@ export type ShellOutputInput = {
8694
8090
  readonly location?: {
8695
8091
  readonly location?: {
8696
8092
  readonly directory?: string | undefined;
8697
- readonly workspace?: string | undefined;
8698
8093
  } | undefined;
8699
8094
  readonly cursor?: number | undefined;
8700
8095
  readonly limit?: number | undefined;
@@ -8702,7 +8097,6 @@ export type ShellOutputInput = {
8702
8097
  readonly cursor?: {
8703
8098
  readonly location?: {
8704
8099
  readonly directory?: string | undefined;
8705
- readonly workspace?: string | undefined;
8706
8100
  } | undefined;
8707
8101
  readonly cursor?: number | undefined;
8708
8102
  readonly limit?: number | undefined;
@@ -8710,22 +8104,13 @@ export type ShellOutputInput = {
8710
8104
  readonly limit?: {
8711
8105
  readonly location?: {
8712
8106
  readonly directory?: string | undefined;
8713
- readonly workspace?: string | undefined;
8714
8107
  } | undefined;
8715
8108
  readonly cursor?: number | undefined;
8716
8109
  readonly limit?: number | undefined;
8717
8110
  }["limit"];
8718
8111
  };
8719
8112
  export type ShellOutputOutput = {
8720
- location: {
8721
- directory: string;
8722
- workspaceID?: string;
8723
- project: {
8724
- id: string;
8725
- directory: string;
8726
- canonical: string;
8727
- };
8728
- };
8113
+ location: LocationPublicRef;
8729
8114
  data: {
8730
8115
  output: string;
8731
8116
  cursor: number;
@@ -8740,7 +8125,6 @@ export type ShellRemoveInput = {
8740
8125
  readonly location?: {
8741
8126
  readonly location?: {
8742
8127
  readonly directory?: string | undefined;
8743
- readonly workspace?: string | undefined;
8744
8128
  } | undefined;
8745
8129
  }["location"];
8746
8130
  };
@@ -8749,68 +8133,50 @@ export type ReferenceListInput = {
8749
8133
  readonly location?: {
8750
8134
  readonly location?: {
8751
8135
  readonly directory?: string | undefined;
8752
- readonly workspace?: string | undefined;
8753
8136
  } | undefined;
8754
8137
  }["location"];
8755
8138
  };
8756
8139
  export type ReferenceListOutput = {
8757
- location: {
8758
- directory: string;
8759
- workspaceID?: string;
8760
- project: {
8761
- id: string;
8762
- directory: string;
8763
- canonical: string;
8764
- };
8765
- };
8140
+ location: LocationPublicRef;
8766
8141
  data: Array<ReferenceInfo>;
8767
8142
  };
8768
8143
  export type WorktreeListInput = {
8769
- readonly location?: {
8770
- readonly location?: {
8771
- readonly directory?: string | undefined;
8772
- readonly workspace?: string | undefined;
8773
- } | undefined;
8774
- }["location"];
8144
+ readonly projectID: {
8145
+ readonly projectID: string;
8146
+ }["projectID"];
8775
8147
  };
8776
8148
  export type WorktreeListOutput = WorktreeList;
8777
8149
  export type WorktreeCreateInput = {
8778
- readonly location?: {
8779
- readonly location?: {
8780
- readonly directory?: string | undefined;
8781
- readonly workspace?: string | undefined;
8782
- } | undefined;
8783
- }["location"];
8784
- readonly strategy?: {
8785
- readonly strategy?: string;
8150
+ readonly projectID: {
8151
+ readonly projectID: string;
8786
8152
  readonly from?: string;
8787
8153
  readonly branch?: string;
8788
8154
  readonly directory?: string;
8789
8155
  readonly name?: string;
8790
- }["strategy"];
8156
+ }["projectID"];
8791
8157
  readonly from?: {
8792
- readonly strategy?: string;
8158
+ readonly projectID: string;
8793
8159
  readonly from?: string;
8794
8160
  readonly branch?: string;
8795
8161
  readonly directory?: string;
8796
8162
  readonly name?: string;
8797
8163
  }["from"];
8798
8164
  readonly branch?: {
8799
- readonly strategy?: string;
8165
+ readonly projectID: string;
8800
8166
  readonly from?: string;
8801
8167
  readonly branch?: string;
8802
8168
  readonly directory?: string;
8803
8169
  readonly name?: string;
8804
8170
  }["branch"];
8805
8171
  readonly directory?: {
8806
- readonly strategy?: string;
8172
+ readonly projectID: string;
8807
8173
  readonly from?: string;
8808
8174
  readonly branch?: string;
8809
8175
  readonly directory?: string;
8810
8176
  readonly name?: string;
8811
8177
  }["directory"];
8812
8178
  readonly name?: {
8813
- readonly strategy?: string;
8179
+ readonly projectID: string;
8814
8180
  readonly from?: string;
8815
8181
  readonly branch?: string;
8816
8182
  readonly directory?: string;
@@ -8819,115 +8185,66 @@ export type WorktreeCreateInput = {
8819
8185
  };
8820
8186
  export type WorktreeCreateOutput = WorktreeInfo;
8821
8187
  export type WorktreeRemoveInput = {
8822
- readonly location?: {
8823
- readonly location?: {
8824
- readonly directory?: string | undefined;
8825
- readonly workspace?: string | undefined;
8826
- } | undefined;
8827
- }["location"];
8188
+ readonly projectID: {
8189
+ readonly projectID: string;
8190
+ readonly directory: string;
8191
+ readonly force: boolean;
8192
+ }["projectID"];
8828
8193
  readonly directory: {
8194
+ readonly projectID: string;
8829
8195
  readonly directory: string;
8830
8196
  readonly force: boolean;
8831
8197
  }["directory"];
8832
8198
  readonly force: {
8199
+ readonly projectID: string;
8833
8200
  readonly directory: string;
8834
8201
  readonly force: boolean;
8835
8202
  }["force"];
8836
8203
  };
8837
8204
  export type WorktreeRemoveOutput = void;
8838
8205
  export type WorktreeRefreshInput = {
8839
- readonly location?: {
8840
- readonly location?: {
8841
- readonly directory?: string | undefined;
8842
- readonly workspace?: string | undefined;
8843
- } | undefined;
8844
- }["location"];
8206
+ readonly projectID: {
8207
+ readonly projectID: string;
8208
+ }["projectID"];
8845
8209
  };
8846
8210
  export type WorktreeRefreshOutput = void;
8847
- export type WorkspaceCreateInput = {
8848
- readonly id?: {
8849
- readonly id?: string | undefined;
8850
- readonly provider: string;
8851
- }["id"];
8852
- readonly provider: {
8853
- readonly id?: string | undefined;
8854
- readonly provider: string;
8855
- }["provider"];
8856
- };
8857
- export type WorkspaceCreateOutput = {
8858
- data: string;
8859
- }["data"];
8860
- export type WorkspaceDestroyInput = {
8861
- readonly workspaceID: {
8862
- readonly workspaceID: string;
8863
- }["workspaceID"];
8864
- };
8865
- export type WorkspaceDestroyOutput = WorkspaceDestroyResult;
8866
8211
  export type VcsGetInput = {
8867
8212
  readonly location?: {
8868
8213
  readonly location?: {
8869
8214
  readonly directory?: string | undefined;
8870
- readonly workspace?: string | undefined;
8871
8215
  } | undefined;
8872
8216
  }["location"];
8873
8217
  };
8874
8218
  export type VcsGetOutput = {
8875
- location: {
8876
- directory: string;
8877
- workspaceID?: string;
8878
- project: {
8879
- id: string;
8880
- directory: string;
8881
- canonical: string;
8882
- };
8883
- };
8219
+ location: LocationPublicRef;
8884
8220
  data: VcsInfo;
8885
8221
  };
8886
8222
  export type VcsBaseInput = {
8887
8223
  readonly location?: {
8888
8224
  readonly location?: {
8889
8225
  readonly directory?: string | undefined;
8890
- readonly workspace?: string | undefined;
8891
8226
  } | undefined;
8892
8227
  }["location"];
8893
8228
  };
8894
8229
  export type VcsBaseOutput = {
8895
- location: {
8896
- directory: string;
8897
- workspaceID?: string;
8898
- project: {
8899
- id: string;
8900
- directory: string;
8901
- canonical: string;
8902
- };
8903
- };
8230
+ location: LocationPublicRef;
8904
8231
  data: VcsBase | null;
8905
8232
  };
8906
8233
  export type VcsStatusInput = {
8907
8234
  readonly location?: {
8908
8235
  readonly location?: {
8909
8236
  readonly directory?: string | undefined;
8910
- readonly workspace?: string | undefined;
8911
8237
  } | undefined;
8912
8238
  }["location"];
8913
8239
  };
8914
8240
  export type VcsStatusOutput = {
8915
- location: {
8916
- directory: string;
8917
- workspaceID?: string;
8918
- project: {
8919
- id: string;
8920
- directory: string;
8921
- canonical: string;
8922
- };
8923
- };
8241
+ location: LocationPublicRef;
8924
8242
  data: Array<VcsFileStatus>;
8925
8243
  };
8926
8244
  export type VcsBranchesInput = {
8927
8245
  readonly location?: {
8928
8246
  readonly location?: {
8929
8247
  readonly directory?: string | undefined;
8930
- readonly workspace?: string | undefined;
8931
8248
  } | undefined;
8932
8249
  readonly search?: string | undefined;
8933
8250
  readonly limit?: number | undefined;
@@ -8935,7 +8252,6 @@ export type VcsBranchesInput = {
8935
8252
  readonly search?: {
8936
8253
  readonly location?: {
8937
8254
  readonly directory?: string | undefined;
8938
- readonly workspace?: string | undefined;
8939
8255
  } | undefined;
8940
8256
  readonly search?: string | undefined;
8941
8257
  readonly limit?: number | undefined;
@@ -8943,29 +8259,19 @@ export type VcsBranchesInput = {
8943
8259
  readonly limit?: {
8944
8260
  readonly location?: {
8945
8261
  readonly directory?: string | undefined;
8946
- readonly workspace?: string | undefined;
8947
8262
  } | undefined;
8948
8263
  readonly search?: string | undefined;
8949
8264
  readonly limit?: number | undefined;
8950
8265
  }["limit"];
8951
8266
  };
8952
8267
  export type VcsBranchesOutput = {
8953
- location: {
8954
- directory: string;
8955
- workspaceID?: string;
8956
- project: {
8957
- id: string;
8958
- directory: string;
8959
- canonical: string;
8960
- };
8961
- };
8268
+ location: LocationPublicRef;
8962
8269
  data: VcsBranchList;
8963
8270
  };
8964
8271
  export type VcsDiffInput = {
8965
8272
  readonly location?: {
8966
8273
  readonly location?: {
8967
8274
  readonly directory?: string | undefined;
8968
- readonly workspace?: string | undefined;
8969
8275
  } | undefined;
8970
8276
  readonly mode: "working" | "branch" | "committed";
8971
8277
  readonly base?: string | undefined;
@@ -8974,7 +8280,6 @@ export type VcsDiffInput = {
8974
8280
  readonly mode: {
8975
8281
  readonly location?: {
8976
8282
  readonly directory?: string | undefined;
8977
- readonly workspace?: string | undefined;
8978
8283
  } | undefined;
8979
8284
  readonly mode: "working" | "branch" | "committed";
8980
8285
  readonly base?: string | undefined;
@@ -8983,7 +8288,6 @@ export type VcsDiffInput = {
8983
8288
  readonly base?: {
8984
8289
  readonly location?: {
8985
8290
  readonly directory?: string | undefined;
8986
- readonly workspace?: string | undefined;
8987
8291
  } | undefined;
8988
8292
  readonly mode: "working" | "branch" | "committed";
8989
8293
  readonly base?: string | undefined;
@@ -8992,7 +8296,6 @@ export type VcsDiffInput = {
8992
8296
  readonly context?: {
8993
8297
  readonly location?: {
8994
8298
  readonly directory?: string | undefined;
8995
- readonly workspace?: string | undefined;
8996
8299
  } | undefined;
8997
8300
  readonly mode: "working" | "branch" | "committed";
8998
8301
  readonly base?: string | undefined;
@@ -9000,23 +8303,14 @@ export type VcsDiffInput = {
9000
8303
  }["context"];
9001
8304
  };
9002
8305
  export type VcsDiffOutput = {
9003
- location: {
9004
- directory: string;
9005
- workspaceID?: string;
9006
- project: {
9007
- id: string;
9008
- directory: string;
9009
- canonical: string;
9010
- };
9011
- };
8306
+ location: LocationPublicRef;
9012
8307
  data: Array<FileDiffInfo>;
9013
8308
  };
9014
- export type DebugLocationListOutput = Array<LocationRef>;
8309
+ export type DebugLocationListOutput = Array<LocationPublicRef>;
9015
8310
  export type DebugLocationEvictInput = {
9016
8311
  readonly location?: {
9017
8312
  readonly location?: {
9018
8313
  readonly directory?: string | undefined;
9019
- readonly workspace?: string | undefined;
9020
8314
  } | undefined;
9021
8315
  }["location"];
9022
8316
  };
@@ -9038,27 +8332,17 @@ export type WebsearchProvidersInput = {
9038
8332
  readonly location?: {
9039
8333
  readonly location?: {
9040
8334
  readonly directory?: string | undefined;
9041
- readonly workspace?: string | undefined;
9042
8335
  } | undefined;
9043
8336
  }["location"];
9044
8337
  };
9045
8338
  export type WebsearchProvidersOutput = {
9046
- location: {
9047
- directory: string;
9048
- workspaceID?: string;
9049
- project: {
9050
- id: string;
9051
- directory: string;
9052
- canonical: string;
9053
- };
9054
- };
8339
+ location: LocationPublicRef;
9055
8340
  data: Array<WebSearchProvider>;
9056
8341
  };
9057
8342
  export type WebsearchQueryInput = {
9058
8343
  readonly location?: {
9059
8344
  readonly location?: {
9060
8345
  readonly directory?: string | undefined;
9061
- readonly workspace?: string | undefined;
9062
8346
  } | undefined;
9063
8347
  }["location"];
9064
8348
  readonly query: {
@@ -9071,15 +8355,7 @@ export type WebsearchQueryInput = {
9071
8355
  }["providerID"];
9072
8356
  };
9073
8357
  export type WebsearchQueryOutput = {
9074
- location: {
9075
- directory: string;
9076
- workspaceID?: string;
9077
- project: {
9078
- id: string;
9079
- directory: string;
9080
- canonical: string;
9081
- };
9082
- };
8358
+ location: LocationPublicRef;
9083
8359
  data: {
9084
8360
  providerID: string;
9085
8361
  results: Array<WebSearchResult>;
@@ -9089,8 +8365,14 @@ export type ConfigGetInput = {
9089
8365
  readonly location?: {
9090
8366
  readonly location?: {
9091
8367
  readonly directory?: string | undefined;
9092
- readonly workspace?: string | undefined;
9093
8368
  } | undefined;
9094
8369
  }["location"];
9095
8370
  };
9096
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;