@nikcli-ai/sdk 1.320.0 → 1.322.0

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.
@@ -454,6 +454,7 @@ export type ProviderConfig = {
454
454
  variants?: {
455
455
  [x: string]: {
456
456
  disabled?: boolean | undefined;
457
+ } & {
457
458
  [x: string]: any | undefined;
458
459
  };
459
460
  } | undefined;
@@ -463,7 +464,7 @@ export type ProviderConfig = {
463
464
  auth_provider?: string | undefined;
464
465
  whitelist?: Array<string> | undefined;
465
466
  blacklist?: Array<string> | undefined;
466
- options?: {
467
+ options?: ({
467
468
  apiKey?: string | undefined;
468
469
  baseURL?: string | undefined;
469
470
  enterpriseUrl?: string | undefined;
@@ -471,8 +472,9 @@ export type ProviderConfig = {
471
472
  timeout?: number | false | undefined;
472
473
  headerTimeout?: number | false | undefined;
473
474
  chunkTimeout?: number | undefined;
475
+ } & {
474
476
  [x: string]: any | undefined;
475
- } | undefined;
477
+ }) | undefined;
476
478
  };
477
479
  export type McpLocalConfig = {
478
480
  type: "local";
@@ -890,24 +892,351 @@ export type MobilePromptStashEntry = {
890
892
  export type MobileSuccess = {
891
893
  success: true;
892
894
  };
893
- export type MobileGithubBranch = {
894
- name: string;
895
- protected?: boolean | undefined;
896
- commit: {
897
- sha: string;
898
- };
895
+ export type MobileGithubBranch = {
896
+ name: string;
897
+ protected?: boolean | undefined;
898
+ commit: {
899
+ sha: string;
900
+ };
901
+ };
902
+ export type MobileGithubImport = {
903
+ owner: string;
904
+ repo: string;
905
+ fullName: string;
906
+ directory: string;
907
+ cloneUrl: string;
908
+ defaultBranch: string;
909
+ private: boolean;
910
+ importedAt: number;
911
+ updatedAt: number;
912
+ projectID?: string | undefined;
913
+ };
914
+ export type KeybindsConfig1 = {
915
+ leader?: string | undefined;
916
+ app_exit?: string | undefined;
917
+ editor_open?: string | undefined;
918
+ theme_list?: string | undefined;
919
+ sidebar_toggle?: string | undefined;
920
+ scrollbar_toggle?: string | undefined;
921
+ username_toggle?: string | undefined;
922
+ status_view?: string | undefined;
923
+ sync_view?: string | undefined;
924
+ session_export?: string | undefined;
925
+ session_new?: string | undefined;
926
+ session_list?: string | undefined;
927
+ session_timeline?: string | undefined;
928
+ session_fork?: string | undefined;
929
+ session_rename?: string | undefined;
930
+ session_delete?: string | undefined;
931
+ session_pin_toggle?: string | undefined;
932
+ session_scope_toggle?: string | undefined;
933
+ session_tab_back?: string | undefined;
934
+ session_tab_forward?: string | undefined;
935
+ session_quick_switch_1?: string | undefined;
936
+ session_quick_switch_2?: string | undefined;
937
+ session_quick_switch_3?: string | undefined;
938
+ session_quick_switch_4?: string | undefined;
939
+ session_quick_switch_5?: string | undefined;
940
+ session_quick_switch_6?: string | undefined;
941
+ session_quick_switch_7?: string | undefined;
942
+ session_quick_switch_8?: string | undefined;
943
+ session_quick_switch_9?: string | undefined;
944
+ stash_delete?: string | undefined;
945
+ model_provider_list?: string | undefined;
946
+ model_favorite_toggle?: string | undefined;
947
+ session_share?: string | undefined;
948
+ session_unshare?: string | undefined;
949
+ session_interrupt?: string | undefined;
950
+ session_codebro_open?: string | undefined;
951
+ subtask_background?: string | undefined;
952
+ subtask_picker?: string | undefined;
953
+ session_compact?: string | undefined;
954
+ messages_page_up?: string | undefined;
955
+ messages_page_down?: string | undefined;
956
+ messages_line_up?: string | undefined;
957
+ messages_line_down?: string | undefined;
958
+ messages_half_page_up?: string | undefined;
959
+ messages_half_page_down?: string | undefined;
960
+ messages_first?: string | undefined;
961
+ messages_last?: string | undefined;
962
+ messages_next?: string | undefined;
963
+ messages_previous?: string | undefined;
964
+ messages_last_user?: string | undefined;
965
+ messages_copy?: string | undefined;
966
+ messages_undo?: string | undefined;
967
+ messages_redo?: string | undefined;
968
+ messages_toggle_conceal?: string | undefined;
969
+ tool_details?: string | undefined;
970
+ model_list?: string | undefined;
971
+ model_cycle_recent?: string | undefined;
972
+ model_cycle_recent_reverse?: string | undefined;
973
+ model_cycle_favorite?: string | undefined;
974
+ model_cycle_favorite_reverse?: string | undefined;
975
+ command_list?: string | undefined;
976
+ agent_list?: string | undefined;
977
+ agent_cycle?: string | undefined;
978
+ agent_cycle_reverse?: string | undefined;
979
+ permission_mode?: string | undefined;
980
+ variant_cycle?: string | undefined;
981
+ input_clear?: string | undefined;
982
+ input_paste?: string | undefined;
983
+ input_submit?: string | undefined;
984
+ input_newline?: string | undefined;
985
+ input_move_left?: string | undefined;
986
+ input_move_right?: string | undefined;
987
+ input_move_up?: string | undefined;
988
+ input_move_down?: string | undefined;
989
+ input_select_left?: string | undefined;
990
+ input_select_right?: string | undefined;
991
+ input_select_up?: string | undefined;
992
+ input_select_down?: string | undefined;
993
+ input_line_home?: string | undefined;
994
+ input_line_end?: string | undefined;
995
+ input_select_line_home?: string | undefined;
996
+ input_select_line_end?: string | undefined;
997
+ input_visual_line_home?: string | undefined;
998
+ input_visual_line_end?: string | undefined;
999
+ input_select_visual_line_home?: string | undefined;
1000
+ input_select_visual_line_end?: string | undefined;
1001
+ input_buffer_home?: string | undefined;
1002
+ input_buffer_end?: string | undefined;
1003
+ input_select_buffer_home?: string | undefined;
1004
+ input_select_buffer_end?: string | undefined;
1005
+ input_delete_line?: string | undefined;
1006
+ input_delete_to_line_end?: string | undefined;
1007
+ input_delete_to_line_start?: string | undefined;
1008
+ input_backspace?: string | undefined;
1009
+ input_delete?: string | undefined;
1010
+ input_undo?: string | undefined;
1011
+ input_redo?: string | undefined;
1012
+ input_word_forward?: string | undefined;
1013
+ input_word_backward?: string | undefined;
1014
+ input_select_word_forward?: string | undefined;
1015
+ input_select_word_backward?: string | undefined;
1016
+ input_delete_word_forward?: string | undefined;
1017
+ input_delete_word_backward?: string | undefined;
1018
+ history_previous?: string | undefined;
1019
+ history_next?: string | undefined;
1020
+ session_child_cycle?: string | undefined;
1021
+ session_child_cycle_reverse?: string | undefined;
1022
+ session_parent?: string | undefined;
1023
+ session_child_close?: string | undefined;
1024
+ terminal_suspend?: string | undefined;
1025
+ terminal_title_toggle?: string | undefined;
1026
+ tips_toggle?: string | undefined;
1027
+ voice_record?: string | undefined;
1028
+ app_support?: string | undefined;
1029
+ };
1030
+ export type LogLevel1 = "DEBUG" | "INFO" | "WARN" | "ERROR";
1031
+ export type AdsItemConfig1 = {
1032
+ id: string;
1033
+ text: string;
1034
+ url?: string | undefined;
1035
+ enabled?: boolean | undefined;
1036
+ };
1037
+ export type ServerConfig1 = {
1038
+ port?: number | undefined;
1039
+ hostname?: string | undefined;
1040
+ mdns?: boolean | undefined;
1041
+ cors?: Array<string> | undefined;
1042
+ };
1043
+ export type RemoteConfig1 = {
1044
+ enabled?: boolean | undefined;
1045
+ enableTunnel?: boolean | undefined;
1046
+ provider?: "localtunnel" | "cloudflared" | "ngrok" | "remotosh" | "none" | undefined;
1047
+ askOnExistingSession?: boolean | undefined;
1048
+ };
1049
+ export type TeleportConfig1 = {
1050
+ url?: string | undefined;
1051
+ token?: string | undefined;
1052
+ };
1053
+ export type ReferenceConfig1 = {
1054
+ type: "git";
1055
+ repository: string;
1056
+ branch?: string | undefined;
1057
+ description?: string | undefined;
1058
+ } | {
1059
+ type: "local";
1060
+ path: string;
1061
+ description?: string | undefined;
1062
+ };
1063
+ export type ProviderConfig1 = {
1064
+ api?: string | undefined;
1065
+ name?: string | undefined;
1066
+ env?: Array<string> | undefined;
1067
+ id?: string | undefined;
1068
+ npm?: string | undefined;
1069
+ models?: {
1070
+ [x: string]: {
1071
+ id?: string | undefined;
1072
+ name?: string | undefined;
1073
+ family?: string | undefined;
1074
+ release_date?: string | undefined;
1075
+ attachment?: boolean | undefined;
1076
+ reasoning?: boolean | undefined;
1077
+ temperature?: boolean | undefined;
1078
+ tool_call?: boolean | undefined;
1079
+ interleaved?: true | {
1080
+ field: "reasoning_content" | "reasoning_details";
1081
+ } | undefined;
1082
+ cost?: {
1083
+ input: number;
1084
+ output: number;
1085
+ cache_read?: number | undefined;
1086
+ cache_write?: number | undefined;
1087
+ context_over_200k?: {
1088
+ input: number;
1089
+ output: number;
1090
+ cache_read?: number | undefined;
1091
+ cache_write?: number | undefined;
1092
+ } | undefined;
1093
+ } | undefined;
1094
+ limit?: {
1095
+ context: number;
1096
+ input?: number | undefined;
1097
+ output: number;
1098
+ } | undefined;
1099
+ modalities?: {
1100
+ input: Array<"text" | "audio" | "image" | "video" | "pdf">;
1101
+ output: Array<"text" | "audio" | "image" | "video" | "pdf">;
1102
+ } | undefined;
1103
+ experimental?: boolean | undefined;
1104
+ status?: "alpha" | "beta" | "deprecated" | undefined;
1105
+ options?: {
1106
+ [x: string]: any;
1107
+ } | undefined;
1108
+ headers?: {
1109
+ [x: string]: string;
1110
+ } | undefined;
1111
+ provider?: {
1112
+ npm: string;
1113
+ api: string;
1114
+ } | undefined;
1115
+ reasoning_options?: Array<{
1116
+ type: "effort";
1117
+ values: Array<string | null>;
1118
+ } | {
1119
+ type: "toggle";
1120
+ } | {
1121
+ type: "budget_tokens";
1122
+ min?: number | undefined;
1123
+ max?: number | undefined;
1124
+ }> | undefined;
1125
+ variants?: {
1126
+ [x: string]: {
1127
+ disabled?: boolean | undefined;
1128
+ } & {
1129
+ [x: string]: any | undefined;
1130
+ };
1131
+ } | undefined;
1132
+ disabled?: boolean | undefined;
1133
+ };
1134
+ } | undefined;
1135
+ auth_provider?: string | undefined;
1136
+ whitelist?: Array<string> | undefined;
1137
+ blacklist?: Array<string> | undefined;
1138
+ options?: ({
1139
+ apiKey?: string | undefined;
1140
+ baseURL?: string | undefined;
1141
+ enterpriseUrl?: string | undefined;
1142
+ setCacheKey?: boolean | undefined;
1143
+ timeout?: number | false | undefined;
1144
+ headerTimeout?: number | false | undefined;
1145
+ chunkTimeout?: number | undefined;
1146
+ } & {
1147
+ [x: string]: any | undefined;
1148
+ }) | undefined;
1149
+ };
1150
+ export type McpLocalConfig1 = {
1151
+ type: "local";
1152
+ command: Array<string>;
1153
+ environment?: {
1154
+ [x: string]: string;
1155
+ } | undefined;
1156
+ enabled?: boolean | undefined;
1157
+ timeout?: number | undefined;
1158
+ };
1159
+ export type McpOAuthConfig1 = {
1160
+ clientId?: string | undefined;
1161
+ clientSecret?: string | undefined;
1162
+ scope?: string | undefined;
1163
+ };
1164
+ export type ConnectorFigma1 = {
1165
+ type: "figma";
1166
+ token?: string | undefined;
1167
+ enabled?: boolean | undefined;
1168
+ };
1169
+ export type ConnectorSlack1 = {
1170
+ type: "slack";
1171
+ botToken?: string | undefined;
1172
+ teamId?: string | undefined;
1173
+ enabled?: boolean | undefined;
1174
+ };
1175
+ export type ConnectorGithub1 = {
1176
+ type: "github";
1177
+ token?: string | undefined;
1178
+ oauthClientId?: string | undefined;
1179
+ clientId?: string | undefined;
1180
+ enabled?: boolean | undefined;
1181
+ };
1182
+ export type ConnectorLovable1 = {
1183
+ type: "lovable";
1184
+ token?: string | undefined;
1185
+ apiKey?: string | undefined;
1186
+ enabled?: boolean | undefined;
1187
+ };
1188
+ export type ConnectorDiscord1 = {
1189
+ type: "discord";
1190
+ botToken?: string | undefined;
1191
+ enabled?: boolean | undefined;
1192
+ };
1193
+ export type ConnectorTeams1 = {
1194
+ type: "teams";
1195
+ botToken?: string | undefined;
1196
+ enabled?: boolean | undefined;
1197
+ };
1198
+ export type ConnectorGChat1 = {
1199
+ type: "gchat";
1200
+ botToken?: string | undefined;
1201
+ enabled?: boolean | undefined;
1202
+ };
1203
+ export type ConnectorLinear1 = {
1204
+ type: "linear";
1205
+ botToken?: string | undefined;
1206
+ enabled?: boolean | undefined;
1207
+ };
1208
+ export type LayoutConfig1 = "auto" | "stretch";
1209
+ export type PolicyStatementConfig1 = {
1210
+ effect: "allow" | "deny";
1211
+ action: string;
1212
+ resource: string;
1213
+ };
1214
+ export type RagConfig1 = {
1215
+ model?: string | undefined;
1216
+ provider?: string | undefined;
1217
+ };
1218
+ export type ImageConfig1 = {
1219
+ model?: string | undefined;
1220
+ provider?: string | undefined;
1221
+ };
1222
+ export type ComputerConfig1 = {
1223
+ mode?: "sandbox" | "host" | undefined;
1224
+ width?: number | undefined;
1225
+ height?: number | undefined;
1226
+ };
1227
+ export type AttachmentConfig1 = {
1228
+ image?: {
1229
+ auto_resize?: boolean | undefined;
1230
+ max_width?: number | undefined;
1231
+ max_height?: number | undefined;
1232
+ max_base64_bytes?: number | undefined;
1233
+ } | undefined;
899
1234
  };
900
- export type MobileGithubImport = {
901
- owner: string;
902
- repo: string;
903
- fullName: string;
904
- directory: string;
905
- cloneUrl: string;
906
- defaultBranch: string;
907
- private: boolean;
908
- importedAt: number;
909
- updatedAt: number;
910
- projectID?: string | undefined;
1235
+ export type SpeakConfig1 = {
1236
+ provider?: string | undefined;
1237
+ model?: string | undefined;
1238
+ modelId?: string | undefined;
1239
+ outputFormat?: string | undefined;
911
1240
  };
912
1241
  export type MobileGithubDeviceAuthStart = {
913
1242
  deviceCode: string;
@@ -963,6 +1292,13 @@ export type SessionWorktree = {
963
1292
  repositoryDirectory?: string | undefined;
964
1293
  cleanedAt?: number | undefined;
965
1294
  };
1295
+ export type SessionWorktree1 = {
1296
+ name: string;
1297
+ branch: string;
1298
+ directory: string;
1299
+ repositoryDirectory?: string | undefined;
1300
+ cleanedAt?: number | undefined;
1301
+ };
966
1302
  export type SessionMobile = {
967
1303
  platforms: Array<"ios" | "android" | "expo" | "flutter" | "react-native">;
968
1304
  primaryPlatform: string;
@@ -978,6 +1314,32 @@ export type SessionMobile = {
978
1314
  }> | undefined;
979
1315
  };
980
1316
  export type PermissionAction = "allow" | "deny" | "ask";
1317
+ export type Worktree1 = {
1318
+ name: string;
1319
+ branch?: string | undefined;
1320
+ directory: string;
1321
+ };
1322
+ export type Project1 = {
1323
+ id: string;
1324
+ worktree: string;
1325
+ canonical: string;
1326
+ vcs?: "git" | undefined;
1327
+ name?: string | undefined;
1328
+ icon?: {
1329
+ url?: string | undefined;
1330
+ override?: string | undefined;
1331
+ color?: string | undefined;
1332
+ } | undefined;
1333
+ commands?: {
1334
+ start?: string | undefined;
1335
+ } | undefined;
1336
+ time: {
1337
+ created: number;
1338
+ updated: number;
1339
+ initialized?: number | undefined;
1340
+ };
1341
+ sandboxes: Array<string>;
1342
+ };
981
1343
  export type Workspace = {
982
1344
  id: string;
983
1345
  name: string;
@@ -1006,6 +1368,44 @@ export type Workspace = {
1006
1368
  eventLimit?: number | undefined;
1007
1369
  };
1008
1370
  };
1371
+ export type FileDiff1 = {
1372
+ file: string;
1373
+ patch: string;
1374
+ additions: number;
1375
+ deletions: number;
1376
+ status?: "added" | "deleted" | "modified" | undefined;
1377
+ before: string;
1378
+ after: string;
1379
+ };
1380
+ export type SessionWorktree2 = {
1381
+ name: string;
1382
+ branch: string;
1383
+ directory: string;
1384
+ repositoryDirectory?: string | undefined;
1385
+ cleanedAt?: number | undefined;
1386
+ };
1387
+ export type SessionWorktree3 = {
1388
+ name: string;
1389
+ branch: string;
1390
+ directory: string;
1391
+ repositoryDirectory?: string | undefined;
1392
+ cleanedAt?: number | undefined;
1393
+ };
1394
+ export type SessionMobile1 = {
1395
+ platforms: Array<"ios" | "android" | "expo" | "flutter" | "react-native">;
1396
+ primaryPlatform: string;
1397
+ method: string;
1398
+ detectedAt: number;
1399
+ buildStatus?: "unknown" | "building" | "succeeded" | "failed" | undefined;
1400
+ lastBuildAt?: number | undefined;
1401
+ artifacts?: Array<{
1402
+ platform: string;
1403
+ path: string;
1404
+ size?: number | undefined;
1405
+ createdAt?: number | undefined;
1406
+ }> | undefined;
1407
+ };
1408
+ export type PermissionAction1 = "allow" | "deny" | "ask";
1009
1409
  export type SessionStatus = {
1010
1410
  type: "idle";
1011
1411
  } | {
@@ -1019,6 +1419,15 @@ export type SessionStatus = {
1019
1419
  } | {
1020
1420
  type: "busy";
1021
1421
  };
1422
+ export type FileDiff2 = {
1423
+ file: string;
1424
+ patch: string;
1425
+ additions: number;
1426
+ deletions: number;
1427
+ status?: "added" | "deleted" | "modified" | undefined;
1428
+ before: string;
1429
+ after: string;
1430
+ };
1022
1431
  export type SessionWorktree4 = {
1023
1432
  name: string;
1024
1433
  branch: string;
@@ -1047,12 +1456,73 @@ export type SessionMobile2 = {
1047
1456
  createdAt?: number;
1048
1457
  }>;
1049
1458
  };
1459
+ export type PermissionAction2 = "allow" | "deny" | "ask";
1460
+ export type FileDiff3 = {
1461
+ file: string;
1462
+ patch: string;
1463
+ additions: number;
1464
+ deletions: number;
1465
+ status?: "added" | "deleted" | "modified" | undefined;
1466
+ before: string;
1467
+ after: string;
1468
+ };
1469
+ export type SessionWorktree6 = {
1470
+ name: string;
1471
+ branch: string;
1472
+ directory: string;
1473
+ repositoryDirectory?: string | undefined;
1474
+ cleanedAt?: number | undefined;
1475
+ };
1476
+ export type SessionWorktree7 = {
1477
+ name: string;
1478
+ branch: string;
1479
+ directory: string;
1480
+ repositoryDirectory?: string | undefined;
1481
+ cleanedAt?: number | undefined;
1482
+ };
1483
+ export type SessionMobile3 = {
1484
+ platforms: Array<"ios" | "android" | "expo" | "flutter" | "react-native">;
1485
+ primaryPlatform: string;
1486
+ method: string;
1487
+ detectedAt: number;
1488
+ buildStatus?: "unknown" | "building" | "succeeded" | "failed" | undefined;
1489
+ lastBuildAt?: number | undefined;
1490
+ artifacts?: Array<{
1491
+ platform: string;
1492
+ path: string;
1493
+ size?: number | undefined;
1494
+ createdAt?: number | undefined;
1495
+ }> | undefined;
1496
+ };
1497
+ export type PermissionAction3 = "allow" | "deny" | "ask";
1498
+ export type SessionStatus1 = {
1499
+ type: "idle";
1500
+ } | {
1501
+ type: "retry";
1502
+ attempt: number;
1503
+ message: string;
1504
+ next: number;
1505
+ } | {
1506
+ type: "busy";
1507
+ since: number;
1508
+ } | {
1509
+ type: "busy";
1510
+ };
1050
1511
  export type OutputFormatText = {
1051
1512
  type: "text";
1052
1513
  };
1053
1514
  export type JSONSchema = {
1054
1515
  [x: string]: any;
1055
1516
  };
1517
+ export type FileDiff4 = {
1518
+ file: string;
1519
+ patch: string;
1520
+ additions: number;
1521
+ deletions: number;
1522
+ status?: "added" | "deleted" | "modified" | undefined;
1523
+ before: string;
1524
+ after: string;
1525
+ };
1056
1526
  export type ProviderAuthError = {
1057
1527
  name: "ProviderAuthError";
1058
1528
  data: {
@@ -1157,6 +1627,11 @@ export type FilePartSourceText = {
1157
1627
  start: number;
1158
1628
  end: number;
1159
1629
  };
1630
+ export type FilePartSourceText1 = {
1631
+ value: string;
1632
+ start: number;
1633
+ end: number;
1634
+ };
1160
1635
  export type Range = {
1161
1636
  start: {
1162
1637
  line: number;
@@ -1167,6 +1642,11 @@ export type Range = {
1167
1642
  character: number;
1168
1643
  };
1169
1644
  };
1645
+ export type FilePartSourceText2 = {
1646
+ value: string;
1647
+ start: number;
1648
+ end: number;
1649
+ };
1170
1650
  export type ToolStatePending = {
1171
1651
  status: "pending";
1172
1652
  input: {
@@ -1199,6 +1679,31 @@ export type ToolStateRunning = {
1199
1679
  start: number;
1200
1680
  };
1201
1681
  };
1682
+ export type FilePartSourceText3 = {
1683
+ value: string;
1684
+ start: number;
1685
+ end: number;
1686
+ };
1687
+ export type FilePartSourceText4 = {
1688
+ value: string;
1689
+ start: number;
1690
+ end: number;
1691
+ };
1692
+ export type Range1 = {
1693
+ start: {
1694
+ line: number;
1695
+ character: number;
1696
+ };
1697
+ end: {
1698
+ line: number;
1699
+ character: number;
1700
+ };
1701
+ };
1702
+ export type FilePartSourceText5 = {
1703
+ value: string;
1704
+ start: number;
1705
+ end: number;
1706
+ };
1202
1707
  export type ToolStateError = {
1203
1708
  status: "error";
1204
1709
  input: {
@@ -1266,6 +1771,22 @@ export type AgentPart = {
1266
1771
  end: number;
1267
1772
  } | undefined;
1268
1773
  };
1774
+ export type APIError1 = {
1775
+ name: "APIError";
1776
+ data: {
1777
+ message: string;
1778
+ statusCode?: number | undefined;
1779
+ isRetryable: boolean;
1780
+ responseHeaders?: {
1781
+ [x: string]: string;
1782
+ } | undefined;
1783
+ responseBody?: string | undefined;
1784
+ metadata?: {
1785
+ [x: string]: string;
1786
+ } | undefined;
1787
+ classification?: "payload-too-large" | undefined;
1788
+ };
1789
+ };
1269
1790
  export type CompactionPart = {
1270
1791
  id: string;
1271
1792
  sessionID: string;
@@ -1309,9 +1830,29 @@ export type QuestionOption = {
1309
1830
  label: string;
1310
1831
  description: string;
1311
1832
  };
1833
+ export type OutputFormatText1 = {
1834
+ type: "text";
1835
+ };
1312
1836
  export type JSONSchema1 = {
1313
1837
  [x: string]: any;
1314
1838
  };
1839
+ export type ProviderAuthError1 = {
1840
+ name: "ProviderAuthError";
1841
+ data: {
1842
+ providerID: string;
1843
+ message: string;
1844
+ };
1845
+ };
1846
+ export type UnknownError1 = {
1847
+ name: "UnknownError";
1848
+ data: {
1849
+ message: string;
1850
+ };
1851
+ };
1852
+ export type MessageOutputLengthError1 = {
1853
+ name: "MessageOutputLengthError";
1854
+ data: {};
1855
+ };
1315
1856
  export type MessageContextOverflowError1 = {
1316
1857
  name: "MessageContextOverflowError";
1317
1858
  data: {
@@ -1320,6 +1861,19 @@ export type MessageContextOverflowError1 = {
1320
1861
  responseBody?: string;
1321
1862
  };
1322
1863
  };
1864
+ export type MessageAbortedError1 = {
1865
+ name: "MessageAbortedError";
1866
+ data: {
1867
+ message: string;
1868
+ };
1869
+ };
1870
+ export type StructuredOutputError1 = {
1871
+ name: "StructuredOutputError";
1872
+ data: {
1873
+ message: string;
1874
+ retries: number;
1875
+ };
1876
+ };
1323
1877
  export type APIError2 = {
1324
1878
  name: "APIError";
1325
1879
  data: {
@@ -1386,6 +1940,16 @@ export type FilePartSourceText6 = {
1386
1940
  start: number;
1387
1941
  end: number;
1388
1942
  };
1943
+ export type Range2 = {
1944
+ start: {
1945
+ line: number;
1946
+ character: number;
1947
+ };
1948
+ end: {
1949
+ line: number;
1950
+ character: number;
1951
+ };
1952
+ };
1389
1953
  export type ToolStatePending1 = {
1390
1954
  status: "pending";
1391
1955
  input: {
@@ -1458,6 +2022,21 @@ export type StepFinishPart1 = {
1458
2022
  };
1459
2023
  };
1460
2024
  };
2025
+ export type SnapshotPart1 = {
2026
+ id: string;
2027
+ sessionID: string;
2028
+ messageID: string;
2029
+ type: "snapshot";
2030
+ snapshot: string;
2031
+ };
2032
+ export type PatchPart1 = {
2033
+ id: string;
2034
+ sessionID: string;
2035
+ messageID: string;
2036
+ type: "patch";
2037
+ hash: string;
2038
+ files: Array<string>;
2039
+ };
1461
2040
  export type AgentPart1 = {
1462
2041
  id: string;
1463
2042
  sessionID: string;
@@ -1470,6 +2049,13 @@ export type AgentPart1 = {
1470
2049
  end: number;
1471
2050
  };
1472
2051
  };
2052
+ export type CompactionPart1 = {
2053
+ id: string;
2054
+ sessionID: string;
2055
+ messageID: string;
2056
+ type: "compaction";
2057
+ auto: boolean;
2058
+ };
1473
2059
  export type MobileAccepted = {
1474
2060
  accepted: true;
1475
2061
  };
@@ -1495,6 +2081,11 @@ export type MobileTeleportResult = {
1495
2081
  directory?: string | undefined;
1496
2082
  workspace: boolean;
1497
2083
  };
2084
+ export type Worktree2 = {
2085
+ name: string;
2086
+ branch?: string | undefined;
2087
+ directory: string;
2088
+ };
1498
2089
  export type MobileGitChange = {
1499
2090
  status: "added" | "modified" | "deleted" | "renamed";
1500
2091
  path: string;
@@ -1690,6 +2281,27 @@ export type MobileMissionExec = {
1690
2281
  error?: string | undefined;
1691
2282
  ok: boolean;
1692
2283
  };
2284
+ export type Project2 = {
2285
+ id: string;
2286
+ worktree: string;
2287
+ canonical: string;
2288
+ vcs?: "git" | undefined;
2289
+ name?: string | undefined;
2290
+ icon?: {
2291
+ url?: string | undefined;
2292
+ override?: string | undefined;
2293
+ color?: string | undefined;
2294
+ } | undefined;
2295
+ commands?: {
2296
+ start?: string | undefined;
2297
+ } | undefined;
2298
+ time: {
2299
+ created: number;
2300
+ updated: number;
2301
+ initialized?: number | undefined;
2302
+ };
2303
+ sandboxes: Array<string>;
2304
+ };
1693
2305
  export type ProjectDirectory = {
1694
2306
  directory: string;
1695
2307
  strategy?: string | undefined;
@@ -1713,6 +2325,24 @@ export type ProviderOAuthAuthorization = {
1713
2325
  method: "auto" | "code" | "auto-code";
1714
2326
  instructions: string;
1715
2327
  };
2328
+ export type QuestionOption1 = {
2329
+ label: string;
2330
+ description: string;
2331
+ };
2332
+ export type PermissionRequest1 = {
2333
+ id: string;
2334
+ sessionID: string;
2335
+ permission: string;
2336
+ patterns: Array<string>;
2337
+ metadata: {
2338
+ [x: string]: any;
2339
+ };
2340
+ always: Array<string>;
2341
+ tool?: {
2342
+ messageID: string;
2343
+ callID: string;
2344
+ } | undefined;
2345
+ };
1716
2346
  export type Pty1 = {
1717
2347
  id: string;
1718
2348
  title: string;
@@ -1756,6 +2386,19 @@ export type LoopPullRequestRef = {
1756
2386
  action: "created" | "updated";
1757
2387
  };
1758
2388
  export type LoopBooleanResult = boolean;
2389
+ export type SessionStatus2 = {
2390
+ type: "idle";
2391
+ } | {
2392
+ type: "retry";
2393
+ attempt: number;
2394
+ message: string;
2395
+ next: number;
2396
+ } | {
2397
+ type: "busy";
2398
+ since: number;
2399
+ } | {
2400
+ type: "busy";
2401
+ };
1759
2402
  export type BooleanResult = boolean;
1760
2403
  export type TextPartInput = {
1761
2404
  type: "text";
@@ -1992,6 +2635,27 @@ export type ConfigProfileInfo = {
1992
2635
  plugins: Array<string>;
1993
2636
  providerCount: number;
1994
2637
  };
2638
+ export type Project3 = {
2639
+ id: string;
2640
+ worktree: string;
2641
+ canonical: string;
2642
+ vcs?: "git" | undefined;
2643
+ name?: string | undefined;
2644
+ icon?: {
2645
+ url?: string | undefined;
2646
+ override?: string | undefined;
2647
+ color?: string | undefined;
2648
+ } | undefined;
2649
+ commands?: {
2650
+ start?: string | undefined;
2651
+ } | undefined;
2652
+ time: {
2653
+ created: number;
2654
+ updated: number;
2655
+ initialized?: number | undefined;
2656
+ };
2657
+ sandboxes: Array<string>;
2658
+ };
1995
2659
  export type EventTelemetryRecord = {
1996
2660
  type: "telemetry.record";
1997
2661
  properties: {
@@ -2075,6 +2739,15 @@ export type EventLspUpdated = {
2075
2739
  type: "lsp.updated";
2076
2740
  properties: {};
2077
2741
  };
2742
+ export type FileDiff5 = {
2743
+ file: string;
2744
+ patch: string;
2745
+ additions: number;
2746
+ deletions: number;
2747
+ status?: "added" | "deleted" | "modified" | undefined;
2748
+ before: string;
2749
+ after: string;
2750
+ };
2078
2751
  export type MessageContextOverflowError2 = {
2079
2752
  name: "MessageContextOverflowError";
2080
2753
  data: {
@@ -2083,6 +2756,13 @@ export type MessageContextOverflowError2 = {
2083
2756
  responseBody?: string;
2084
2757
  };
2085
2758
  };
2759
+ export type StructuredOutputError2 = {
2760
+ name: "StructuredOutputError";
2761
+ data: {
2762
+ message: string;
2763
+ retries: number;
2764
+ };
2765
+ };
2086
2766
  export type APIError3 = {
2087
2767
  name: "APIError";
2088
2768
  data: {
@@ -2136,6 +2816,16 @@ export type ReasoningPart2 = {
2136
2816
  end?: number;
2137
2817
  };
2138
2818
  };
2819
+ export type Range3 = {
2820
+ start: {
2821
+ line: number;
2822
+ character: number;
2823
+ };
2824
+ end: {
2825
+ line: number;
2826
+ character: number;
2827
+ };
2828
+ };
2139
2829
  export type ToolStateRunning2 = {
2140
2830
  status: "running";
2141
2831
  input: {
@@ -2209,13 +2899,6 @@ export type SessionWorktree8 = {
2209
2899
  repositoryDirectory?: string;
2210
2900
  cleanedAt?: number;
2211
2901
  };
2212
- export type SessionWorktree9 = {
2213
- name: string;
2214
- branch: string;
2215
- directory: string;
2216
- repositoryDirectory?: string;
2217
- cleanedAt?: number;
2218
- };
2219
2902
  export type SessionMobile4 = {
2220
2903
  platforms: Array<"ios" | "android" | "expo" | "flutter" | "react-native">;
2221
2904
  primaryPlatform: string;
@@ -2293,6 +2976,19 @@ export type EventVcsBranchUpdated = {
2293
2976
  branch?: string | undefined;
2294
2977
  };
2295
2978
  };
2979
+ export type SessionStatus3 = {
2980
+ type: "idle";
2981
+ } | {
2982
+ type: "retry";
2983
+ attempt: number;
2984
+ message: string;
2985
+ next: number;
2986
+ } | {
2987
+ type: "busy";
2988
+ since: number;
2989
+ } | {
2990
+ type: "busy";
2991
+ };
2296
2992
  export type EventSessionIdle = {
2297
2993
  type: "session.idle";
2298
2994
  properties: {
@@ -2305,12 +3001,33 @@ export type EventSessionCompacted = {
2305
3001
  sessionID: string;
2306
3002
  };
2307
3003
  };
3004
+ export type SessionGoalState1 = {
3005
+ sessionID: string;
3006
+ goalID: string;
3007
+ objective: string;
3008
+ status: "active" | "paused" | "blocked" | "usage_limited" | "budget_limited" | "complete";
3009
+ tokenBudget?: number;
3010
+ tokensUsed: number;
3011
+ timeUsedSeconds: number;
3012
+ iterationCount: number;
3013
+ timeCreated: number;
3014
+ timeUpdated: number;
3015
+ };
2308
3016
  export type EventIdeInstalled = {
2309
3017
  type: "ide.installed";
2310
3018
  properties: {
2311
3019
  ide: string;
2312
3020
  };
2313
3021
  };
3022
+ export type Pty2 = {
3023
+ id: string;
3024
+ title: string;
3025
+ command: string;
3026
+ args: Array<string>;
3027
+ cwd: string;
3028
+ status: "running" | "exited";
3029
+ pid: number;
3030
+ };
2314
3031
  export type EventPtyExited = {
2315
3032
  type: "pty.exited";
2316
3033
  properties: {
@@ -2374,8 +3091,8 @@ export type EventMonitorCreated = {
2374
3091
  commandPath: string;
2375
3092
  pidPath: string;
2376
3093
  exitCodePath: string;
2377
- preview?: string | undefined | undefined;
2378
- bytes?: number | undefined | undefined;
3094
+ preview?: string | undefined;
3095
+ bytes?: number | undefined;
2379
3096
  time: {
2380
3097
  created: number;
2381
3098
  updated: number;
@@ -2408,8 +3125,8 @@ export type EventMonitorUpdated = {
2408
3125
  commandPath: string;
2409
3126
  pidPath: string;
2410
3127
  exitCodePath: string;
2411
- preview?: string | undefined | undefined;
2412
- bytes?: number | undefined | undefined;
3128
+ preview?: string | undefined;
3129
+ bytes?: number | undefined;
2413
3130
  time: {
2414
3131
  created: number;
2415
3132
  updated: number;
@@ -2813,17 +3530,20 @@ export type MobileBootstrap = {
2813
3530
  root?: string | undefined;
2814
3531
  } | undefined;
2815
3532
  };
2816
- export type EventProjectUpdated = {
2817
- type: "project.updated";
2818
- properties: Project;
3533
+ export type AdsConfig1 = {
3534
+ enabled?: boolean | undefined;
3535
+ ratio?: number | undefined;
3536
+ items?: Array<AdsItemConfig1> | undefined;
2819
3537
  };
2820
- export type FileDiffList = Array<FileDiff>;
2821
- export type EventSessionDiff = {
2822
- type: "session.diff";
2823
- properties: {
2824
- sessionID: string;
2825
- diff: Array<FileDiff>;
2826
- };
3538
+ export type McpRemoteConfig1 = {
3539
+ type: "remote";
3540
+ url: string;
3541
+ enabled?: boolean | undefined;
3542
+ headers?: {
3543
+ [x: string]: string;
3544
+ } | undefined;
3545
+ oauth?: McpOAuthConfig1 | false | undefined;
3546
+ timeout?: number | undefined;
2827
3547
  };
2828
3548
  export type SessionGithub = {
2829
3549
  owner: string;
@@ -2850,16 +3570,32 @@ export type PermissionRule = {
2850
3570
  pattern: string;
2851
3571
  action: PermissionAction;
2852
3572
  };
2853
- export type SessionStatusMap = {
2854
- [x: string]: SessionStatus;
3573
+ export type SessionGithub1 = {
3574
+ owner: string;
3575
+ repo: string;
3576
+ fullName: string;
3577
+ baseBranch: string;
3578
+ headBranch: string;
3579
+ repositoryDirectory?: string | undefined;
3580
+ cloneUrl?: string | undefined;
3581
+ htmlUrl?: string | undefined;
3582
+ private?: boolean | undefined;
3583
+ worktree: SessionWorktree2;
3584
+ pullRequest?: {
3585
+ number: number;
3586
+ url: string;
3587
+ title: string;
3588
+ } | undefined;
3589
+ lastCommitSha?: string | undefined;
3590
+ publishedAt?: number | undefined;
3591
+ publishError?: string | undefined;
2855
3592
  };
2856
- export type EventSessionStatus = {
2857
- type: "session.status";
2858
- properties: {
2859
- sessionID: string;
2860
- status: SessionStatus;
2861
- };
3593
+ export type PermissionRule1 = {
3594
+ permission: string;
3595
+ pattern: string;
3596
+ action: PermissionAction1;
2862
3597
  };
3598
+ export type FileDiffList = Array<FileDiff2>;
2863
3599
  export type SessionGithub2 = {
2864
3600
  owner: string;
2865
3601
  repo: string;
@@ -2880,6 +3616,36 @@ export type SessionGithub2 = {
2880
3616
  publishedAt?: number;
2881
3617
  publishError?: string;
2882
3618
  };
3619
+ export type PermissionRule2 = {
3620
+ permission: string;
3621
+ pattern: string;
3622
+ action: PermissionAction2;
3623
+ };
3624
+ export type SessionGithub3 = {
3625
+ owner: string;
3626
+ repo: string;
3627
+ fullName: string;
3628
+ baseBranch: string;
3629
+ headBranch: string;
3630
+ repositoryDirectory?: string | undefined;
3631
+ cloneUrl?: string | undefined;
3632
+ htmlUrl?: string | undefined;
3633
+ private?: boolean | undefined;
3634
+ worktree: SessionWorktree6;
3635
+ pullRequest?: {
3636
+ number: number;
3637
+ url: string;
3638
+ title: string;
3639
+ } | undefined;
3640
+ lastCommitSha?: string | undefined;
3641
+ publishedAt?: number | undefined;
3642
+ publishError?: string | undefined;
3643
+ };
3644
+ export type PermissionRule3 = {
3645
+ permission: string;
3646
+ pattern: string;
3647
+ action: PermissionAction3;
3648
+ };
2883
3649
  export type OutputFormatJsonSchema = {
2884
3650
  type: "json_schema";
2885
3651
  schema: JSONSchema;
@@ -2918,36 +3684,55 @@ export type AssistantMessage = {
2918
3684
  structured?: unknown | undefined;
2919
3685
  finish?: string | undefined;
2920
3686
  };
2921
- export type RetryPart = {
2922
- id: string;
2923
- sessionID: string;
2924
- messageID: string;
2925
- type: "retry";
2926
- attempt: number;
2927
- error: APIError;
2928
- time: {
2929
- created: number;
2930
- };
2931
- };
2932
3687
  export type FileSource = {
2933
3688
  text: FilePartSourceText;
2934
3689
  type: "file";
2935
3690
  path: string;
2936
3691
  };
3692
+ export type SymbolSource = {
3693
+ text: FilePartSourceText1;
3694
+ type: "symbol";
3695
+ path: string;
3696
+ range: Range;
3697
+ name: string;
3698
+ kind: number;
3699
+ };
2937
3700
  export type ResourceSource = {
2938
- text: FilePartSourceText;
3701
+ text: FilePartSourceText2;
2939
3702
  type: "resource";
2940
3703
  clientName: string;
2941
3704
  uri: string;
2942
3705
  };
2943
- export type SymbolSource = {
2944
- text: FilePartSourceText;
3706
+ export type FileSource1 = {
3707
+ text: FilePartSourceText3;
3708
+ type: "file";
3709
+ path: string;
3710
+ };
3711
+ export type SymbolSource1 = {
3712
+ text: FilePartSourceText4;
2945
3713
  type: "symbol";
2946
3714
  path: string;
2947
- range: Range;
3715
+ range: Range1;
2948
3716
  name: string;
2949
3717
  kind: number;
2950
3718
  };
3719
+ export type ResourceSource1 = {
3720
+ text: FilePartSourceText5;
3721
+ type: "resource";
3722
+ clientName: string;
3723
+ uri: string;
3724
+ };
3725
+ export type RetryPart = {
3726
+ id: string;
3727
+ sessionID: string;
3728
+ messageID: string;
3729
+ type: "retry";
3730
+ attempt: number;
3731
+ error: APIError1;
3732
+ time: {
3733
+ created: number;
3734
+ };
3735
+ };
2951
3736
  export type QuestionInfo = {
2952
3737
  question: string;
2953
3738
  header: string;
@@ -2968,7 +3753,7 @@ export type AssistantMessage1 = {
2968
3753
  created: number;
2969
3754
  completed?: number;
2970
3755
  };
2971
- error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageContextOverflowError1 | MessageAbortedError | StructuredOutputError | APIError2;
3756
+ error?: ProviderAuthError1 | UnknownError1 | MessageOutputLengthError1 | MessageContextOverflowError1 | MessageAbortedError1 | StructuredOutputError1 | APIError2;
2972
3757
  parentID: string;
2973
3758
  modelID: string;
2974
3759
  providerID: string;
@@ -3009,25 +3794,17 @@ export type FileSource2 = {
3009
3794
  type: "file";
3010
3795
  path: string;
3011
3796
  };
3012
- export type SymbolSource2 = {
3013
- text: FilePartSourceText6;
3014
- type: "symbol";
3015
- path: string;
3016
- range: Range;
3017
- name: string;
3018
- kind: number;
3019
- };
3020
3797
  export type ResourceSource2 = {
3021
3798
  text: FilePartSourceText6;
3022
3799
  type: "resource";
3023
3800
  clientName: string;
3024
3801
  uri: string;
3025
3802
  };
3026
- export type SymbolSource3 = {
3803
+ export type SymbolSource2 = {
3027
3804
  text: FilePartSourceText6;
3028
3805
  type: "symbol";
3029
3806
  path: string;
3030
- range: Range;
3807
+ range: Range2;
3031
3808
  name: string;
3032
3809
  kind: number;
3033
3810
  };
@@ -3066,27 +3843,22 @@ export type LoopDefinition = {
3066
3843
  timeoutMs?: number;
3067
3844
  createPR?: boolean;
3068
3845
  sandbox?: boolean;
3069
- worktree?: LoopWorktree;
3070
- paused?: boolean;
3071
- enabled: boolean;
3072
- createdAt: number;
3073
- };
3074
- export type RoutineTrigger = RoutineTriggerSchedule | RoutineTriggerApi;
3075
- export type EventPtyCreated = {
3076
- type: "pty.created";
3077
- properties: {
3078
- info: Pty;
3079
- };
3080
- };
3081
- export type EventPtyUpdated = {
3082
- type: "pty.updated";
3083
- properties: {
3084
- info: Pty;
3085
- };
3846
+ worktree?: LoopWorktree;
3847
+ paused?: boolean;
3848
+ enabled: boolean;
3849
+ createdAt: number;
3086
3850
  };
3851
+ export type RoutineTrigger = RoutineTriggerSchedule | RoutineTriggerApi;
3087
3852
  export type ProviderAuthMethods = {
3088
3853
  [x: string]: Array<ProviderAuthMethod>;
3089
3854
  };
3855
+ export type QuestionInfo1 = {
3856
+ question: string;
3857
+ header: string;
3858
+ options: Array<QuestionOption1>;
3859
+ multiple?: boolean | undefined;
3860
+ custom?: boolean | undefined;
3861
+ };
3090
3862
  export type PtyList = Array<Pty1>;
3091
3863
  export type LoopTemplatesOutput2 = {
3092
3864
  templates: Array<LoopTemplate>;
@@ -3103,6 +3875,9 @@ export type LoopRun = {
3103
3875
  ok: boolean;
3104
3876
  pullRequest?: LoopPullRequestRef;
3105
3877
  };
3878
+ export type SessionStatusMap = {
3879
+ [x: string]: SessionStatus2;
3880
+ };
3106
3881
  export type SessionContextBreakdown = {
3107
3882
  model?: {
3108
3883
  providerID: string;
@@ -3122,13 +3897,6 @@ export type SessionContextBreakdown = {
3122
3897
  estimatedTotal: number;
3123
3898
  };
3124
3899
  export type SessionGoalOutput2 = SessionGoalState | null;
3125
- export type EventSessionGoal = {
3126
- type: "session.goal";
3127
- properties: {
3128
- sessionID: string;
3129
- goal: SessionGoalState | null;
3130
- };
3131
- };
3132
3900
  export type SessionBackgroundOutput2 = Array<DelegationJob>;
3133
3901
  export type SessionBackgroundInspectOutput2 = DelegationJob | null;
3134
3902
  export type SyncStatsOutput2 = {
@@ -3159,6 +3927,10 @@ export type ConfigProfilesList = {
3159
3927
  };
3160
3928
  activeProfile: string;
3161
3929
  };
3930
+ export type EventProjectUpdated = {
3931
+ type: "project.updated";
3932
+ properties: Project3;
3933
+ };
3162
3934
  export type EventPermissionAsked = {
3163
3935
  type: "permission.asked";
3164
3936
  properties: PermissionRequest2;
@@ -3178,6 +3950,13 @@ export type EventQuestionReplied = {
3178
3950
  answers: Array<QuestionAnswer>;
3179
3951
  };
3180
3952
  };
3953
+ export type EventSessionDiff = {
3954
+ type: "session.diff";
3955
+ properties: {
3956
+ sessionID: string;
3957
+ diff: Array<FileDiff5>;
3958
+ };
3959
+ };
3181
3960
  export type AssistantMessage2 = {
3182
3961
  id: string;
3183
3962
  sessionID: string;
@@ -3186,7 +3965,7 @@ export type AssistantMessage2 = {
3186
3965
  created: number;
3187
3966
  completed?: number;
3188
3967
  };
3189
- error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageContextOverflowError2 | MessageAbortedError | StructuredOutputError | APIError3;
3968
+ error?: ProviderAuthError1 | UnknownError1 | MessageOutputLengthError1 | MessageContextOverflowError2 | MessageAbortedError1 | StructuredOutputError2 | APIError3;
3190
3969
  parentID: string;
3191
3970
  modelID: string;
3192
3971
  providerID: string;
@@ -3226,9 +4005,17 @@ export type EventSessionError = {
3226
4005
  type: "session.error";
3227
4006
  properties: {
3228
4007
  sessionID?: string | undefined;
3229
- error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageContextOverflowError2 | MessageAbortedError | StructuredOutputError | APIError3 | undefined;
4008
+ error?: ProviderAuthError1 | UnknownError1 | MessageOutputLengthError1 | MessageContextOverflowError2 | MessageAbortedError1 | StructuredOutputError2 | APIError3 | undefined;
3230
4009
  };
3231
4010
  };
4011
+ export type SymbolSource3 = {
4012
+ text: FilePartSourceText6;
4013
+ type: "symbol";
4014
+ path: string;
4015
+ range: Range3;
4016
+ name: string;
4017
+ kind: number;
4018
+ };
3232
4019
  export type SessionGithub4 = {
3233
4020
  owner: string;
3234
4021
  repo: string;
@@ -3249,6 +4036,32 @@ export type SessionGithub4 = {
3249
4036
  publishedAt?: number;
3250
4037
  publishError?: string;
3251
4038
  };
4039
+ export type EventSessionStatus = {
4040
+ type: "session.status";
4041
+ properties: {
4042
+ sessionID: string;
4043
+ status: SessionStatus3;
4044
+ };
4045
+ };
4046
+ export type EventSessionGoal = {
4047
+ type: "session.goal";
4048
+ properties: {
4049
+ sessionID: string;
4050
+ goal: SessionGoalState1 | null;
4051
+ };
4052
+ };
4053
+ export type EventPtyCreated = {
4054
+ type: "pty.created";
4055
+ properties: {
4056
+ info: Pty2;
4057
+ };
4058
+ };
4059
+ export type EventPtyUpdated = {
4060
+ type: "pty.updated";
4061
+ properties: {
4062
+ info: Pty2;
4063
+ };
4064
+ };
3252
4065
  export type UserSession = {
3253
4066
  token: string;
3254
4067
  user: PublicUser;
@@ -3300,8 +4113,12 @@ export type MissionDefinition = {
3300
4113
  createdAt: number;
3301
4114
  };
3302
4115
  export type PermissionRuleset = Array<PermissionRule>;
4116
+ export type PermissionRuleset1 = Array<PermissionRule1>;
4117
+ export type PermissionRuleset2 = Array<PermissionRule2>;
4118
+ export type PermissionRuleset3 = Array<PermissionRule3>;
3303
4119
  export type OutputFormat = OutputFormatText | OutputFormatJsonSchema;
3304
4120
  export type FilePartSource = FileSource | SymbolSource | ResourceSource;
4121
+ export type FilePartSource1 = FileSource1 | SymbolSource1 | ResourceSource1;
3305
4122
  export type QuestionRequest = {
3306
4123
  id: string;
3307
4124
  sessionID: string;
@@ -3311,10 +4128,8 @@ export type QuestionRequest = {
3311
4128
  callID: string;
3312
4129
  } | undefined;
3313
4130
  };
3314
- export type OutputFormat1 = OutputFormatText | OutputFormatJsonSchema1;
3315
- export type OutputFormat2 = OutputFormatText | OutputFormatJsonSchema1;
4131
+ export type OutputFormat1 = OutputFormatText1 | OutputFormatJsonSchema1;
3316
4132
  export type FilePartSource2 = FileSource2 | SymbolSource2 | ResourceSource2;
3317
- export type FilePartSource3 = FileSource2 | SymbolSource3 | ResourceSource2;
3318
4133
  export type LoopListOutput2 = {
3319
4134
  loops: Array<LoopDefinition>;
3320
4135
  runtimes: Array<LoopRuntime>;
@@ -3340,6 +4155,15 @@ export type MobileRoutine = {
3340
4155
  lastRunAt?: number | undefined;
3341
4156
  lastSessionID?: string | undefined;
3342
4157
  };
4158
+ export type QuestionRequest1 = {
4159
+ id: string;
4160
+ sessionID: string;
4161
+ questions: Array<QuestionInfo1>;
4162
+ tool?: {
4163
+ messageID: string;
4164
+ callID: string;
4165
+ } | undefined;
4166
+ };
3343
4167
  export type LoopRunsOutput2 = {
3344
4168
  runs: Array<LoopRun>;
3345
4169
  };
@@ -3481,6 +4305,7 @@ export type TuiConfig = {
3481
4305
  source: string;
3482
4306
  };
3483
4307
  };
4308
+ } & {
3484
4309
  [x: string]: any;
3485
4310
  };
3486
4311
  export type OptionalWorkspace = Workspace1 | null;
@@ -3493,6 +4318,7 @@ export type QuestionRequest2 = {
3493
4318
  callID: string;
3494
4319
  } | undefined;
3495
4320
  };
4321
+ export type FilePartSource3 = FileSource2 | SymbolSource3 | ResourceSource2;
3496
4322
  export type PermissionConfig = {
3497
4323
  [x: string]: PermissionRuleConfig | undefined;
3498
4324
  };
@@ -3521,7 +4347,7 @@ export type Session = {
3521
4347
  url: string;
3522
4348
  } | undefined;
3523
4349
  github?: SessionGithub | undefined;
3524
- worktree?: SessionWorktree | undefined;
4350
+ worktree?: SessionWorktree1 | undefined;
3525
4351
  mobile?: SessionMobile | undefined;
3526
4352
  title: string;
3527
4353
  activeCommand?: string | undefined;
@@ -3549,6 +4375,51 @@ export type Session = {
3549
4375
  modelID: string;
3550
4376
  } | undefined;
3551
4377
  };
4378
+ export type Session1 = {
4379
+ id: string;
4380
+ slug: string;
4381
+ projectID: string;
4382
+ directory: string;
4383
+ parentID?: string | undefined;
4384
+ workspaceID?: string | undefined;
4385
+ summary?: {
4386
+ additions: number;
4387
+ deletions: number;
4388
+ files: number;
4389
+ diffs?: Array<FileDiff1> | undefined;
4390
+ } | undefined;
4391
+ share?: {
4392
+ url: string;
4393
+ } | undefined;
4394
+ github?: SessionGithub1 | undefined;
4395
+ worktree?: SessionWorktree3 | undefined;
4396
+ mobile?: SessionMobile1 | undefined;
4397
+ title: string;
4398
+ activeCommand?: string | undefined;
4399
+ version: string;
4400
+ time: {
4401
+ created: number;
4402
+ updated: number;
4403
+ compacting?: number | undefined;
4404
+ archived?: number | undefined;
4405
+ };
4406
+ permission?: PermissionRuleset1 | undefined;
4407
+ skills?: Array<string> | undefined;
4408
+ disabledInstructions?: Array<string> | undefined;
4409
+ disabledTools?: {
4410
+ [x: string]: boolean;
4411
+ } | undefined;
4412
+ revert?: {
4413
+ messageID: string;
4414
+ partID?: string | undefined;
4415
+ snapshot?: string | undefined;
4416
+ diff?: string | undefined;
4417
+ } | undefined;
4418
+ lastModel?: {
4419
+ providerID: string;
4420
+ modelID: string;
4421
+ } | undefined;
4422
+ };
3552
4423
  export type Session2 = {
3553
4424
  id: string;
3554
4425
  slug: string;
@@ -3560,7 +4431,7 @@ export type Session2 = {
3560
4431
  additions: number;
3561
4432
  deletions: number;
3562
4433
  files: number;
3563
- diffs?: Array<FileDiff>;
4434
+ diffs?: Array<FileDiff2>;
3564
4435
  };
3565
4436
  share?: {
3566
4437
  url: string;
@@ -3577,7 +4448,7 @@ export type Session2 = {
3577
4448
  compacting?: number;
3578
4449
  archived?: number;
3579
4450
  };
3580
- permission?: PermissionRuleset;
4451
+ permission?: PermissionRuleset2;
3581
4452
  skills?: Array<string>;
3582
4453
  disabledInstructions?: Array<string>;
3583
4454
  disabledTools?: {
@@ -3605,13 +4476,13 @@ export type Session4 = {
3605
4476
  additions: number;
3606
4477
  deletions: number;
3607
4478
  files: number;
3608
- diffs?: Array<FileDiff>;
4479
+ diffs?: Array<FileDiff5>;
3609
4480
  };
3610
4481
  share?: {
3611
4482
  url: string;
3612
4483
  };
3613
4484
  github?: SessionGithub4;
3614
- worktree?: SessionWorktree9;
4485
+ worktree?: SessionWorktree8;
3615
4486
  mobile?: SessionMobile4;
3616
4487
  title: string;
3617
4488
  activeCommand?: string;
@@ -3622,7 +4493,7 @@ export type Session4 = {
3622
4493
  compacting?: number;
3623
4494
  archived?: number;
3624
4495
  };
3625
- permission?: PermissionRuleset;
4496
+ permission?: PermissionRuleset2;
3626
4497
  skills?: Array<string>;
3627
4498
  disabledInstructions?: Array<string>;
3628
4499
  disabledTools?: {
@@ -3639,6 +4510,51 @@ export type Session4 = {
3639
4510
  modelID: string;
3640
4511
  };
3641
4512
  };
4513
+ export type Session3 = {
4514
+ id: string;
4515
+ slug: string;
4516
+ projectID: string;
4517
+ directory: string;
4518
+ parentID?: string | undefined;
4519
+ workspaceID?: string | undefined;
4520
+ summary?: {
4521
+ additions: number;
4522
+ deletions: number;
4523
+ files: number;
4524
+ diffs?: Array<FileDiff3> | undefined;
4525
+ } | undefined;
4526
+ share?: {
4527
+ url: string;
4528
+ } | undefined;
4529
+ github?: SessionGithub3 | undefined;
4530
+ worktree?: SessionWorktree7 | undefined;
4531
+ mobile?: SessionMobile3 | undefined;
4532
+ title: string;
4533
+ activeCommand?: string | undefined;
4534
+ version: string;
4535
+ time: {
4536
+ created: number;
4537
+ updated: number;
4538
+ compacting?: number | undefined;
4539
+ archived?: number | undefined;
4540
+ };
4541
+ permission?: PermissionRuleset3 | undefined;
4542
+ skills?: Array<string> | undefined;
4543
+ disabledInstructions?: Array<string> | undefined;
4544
+ disabledTools?: {
4545
+ [x: string]: boolean;
4546
+ } | undefined;
4547
+ revert?: {
4548
+ messageID: string;
4549
+ partID?: string | undefined;
4550
+ snapshot?: string | undefined;
4551
+ diff?: string | undefined;
4552
+ } | undefined;
4553
+ lastModel?: {
4554
+ providerID: string;
4555
+ modelID: string;
4556
+ } | undefined;
4557
+ };
3642
4558
  export type UserMessage = {
3643
4559
  id: string;
3644
4560
  sessionID: string;
@@ -3650,7 +4566,7 @@ export type UserMessage = {
3650
4566
  summary?: {
3651
4567
  title?: string | undefined;
3652
4568
  body?: string | undefined;
3653
- diffs: Array<FileDiff>;
4569
+ diffs: Array<FileDiff4>;
3654
4570
  } | undefined;
3655
4571
  agent: string;
3656
4572
  model: {
@@ -3673,6 +4589,16 @@ export type FilePart = {
3673
4589
  url: string;
3674
4590
  source?: FilePartSource | undefined;
3675
4591
  };
4592
+ export type FilePart1 = {
4593
+ id: string;
4594
+ sessionID: string;
4595
+ messageID: string;
4596
+ type: "file";
4597
+ mime: string;
4598
+ filename?: string | undefined;
4599
+ url: string;
4600
+ source?: FilePartSource1 | undefined;
4601
+ };
3676
4602
  export type UserMessage1 = {
3677
4603
  id: string;
3678
4604
  sessionID: string;
@@ -3684,7 +4610,7 @@ export type UserMessage1 = {
3684
4610
  summary?: {
3685
4611
  title?: string;
3686
4612
  body?: string;
3687
- diffs: Array<FileDiff>;
4613
+ diffs: Array<FileDiff2>;
3688
4614
  };
3689
4615
  agent: string;
3690
4616
  model: {
@@ -3708,7 +4634,7 @@ export type UserMessage2 = {
3708
4634
  summary?: {
3709
4635
  title?: string;
3710
4636
  body?: string;
3711
- diffs: Array<FileDiff>;
4637
+ diffs: Array<FileDiff5>;
3712
4638
  };
3713
4639
  agent: string;
3714
4640
  model: {
@@ -3739,6 +4665,10 @@ export type FilePartInput = {
3739
4665
  source?: FilePartSource2;
3740
4666
  id?: string | undefined;
3741
4667
  };
4668
+ export type EventQuestionAsked = {
4669
+ type: "question.asked";
4670
+ properties: QuestionRequest2;
4671
+ };
3742
4672
  export type FilePart3 = {
3743
4673
  id: string;
3744
4674
  sessionID: string;
@@ -3749,10 +4679,6 @@ export type FilePart3 = {
3749
4679
  url: string;
3750
4680
  source?: FilePartSource3;
3751
4681
  };
3752
- export type EventQuestionAsked = {
3753
- type: "question.asked";
3754
- properties: QuestionRequest2;
3755
- };
3756
4682
  export type AgentConfig = {
3757
4683
  model?: string | undefined;
3758
4684
  variant?: string | undefined;
@@ -3776,16 +4702,43 @@ export type AgentConfig = {
3776
4702
  permission?: PermissionConfig | undefined;
3777
4703
  advisor?: string | undefined;
3778
4704
  advisor_max_uses?: number | undefined;
4705
+ } & {
4706
+ [x: string]: any | undefined;
4707
+ };
4708
+ export type AgentConfig1 = {
4709
+ model?: string | undefined;
4710
+ variant?: string | undefined;
4711
+ temperature?: number | undefined;
4712
+ top_p?: number | undefined;
4713
+ prompt?: string | undefined;
4714
+ tools?: {
4715
+ [x: string]: boolean;
4716
+ } | undefined;
4717
+ disable?: boolean | undefined;
4718
+ description?: string | undefined;
4719
+ mode?: "subagent" | "primary" | "all" | undefined;
4720
+ hidden?: boolean | undefined;
4721
+ options?: {
4722
+ [x: string]: any;
4723
+ } | undefined;
4724
+ color?: string | undefined;
4725
+ steps?: number | undefined;
4726
+ order?: number | undefined;
4727
+ maxSteps?: number | undefined;
4728
+ permission?: PermissionConfig | undefined;
4729
+ advisor?: string | undefined;
4730
+ advisor_max_uses?: number | undefined;
4731
+ } & {
3779
4732
  [x: string]: any | undefined;
3780
4733
  };
3781
4734
  export type MobileGithubSessionCreateResult = {
3782
4735
  session: Session;
3783
- worktree: Worktree;
3784
- project: Project;
4736
+ worktree: Worktree1;
4737
+ project: Project1;
3785
4738
  workspace?: Workspace | undefined;
3786
4739
  };
3787
4740
  export type MobileSessionSummary = {
3788
- info: Session;
4741
+ info: Session1;
3789
4742
  status?: SessionStatus | undefined;
3790
4743
  };
3791
4744
  export type SessionList = Array<Session2>;
@@ -3823,7 +4776,7 @@ export type ToolStateCompleted = {
3823
4776
  end: number;
3824
4777
  compacted?: number | undefined;
3825
4778
  };
3826
- attachments?: Array<FilePart> | undefined;
4779
+ attachments?: Array<FilePart1> | undefined;
3827
4780
  };
3828
4781
  export type Message1 = UserMessage1 | AssistantMessage1;
3829
4782
  export type Message2 = UserMessage2 | AssistantMessage2;
@@ -3927,12 +4880,13 @@ export type Config = {
3927
4880
  small_model?: string | undefined;
3928
4881
  default_agent?: string | undefined;
3929
4882
  username?: string | undefined;
3930
- mode?: {
4883
+ mode?: ({
3931
4884
  build?: AgentConfig | undefined;
3932
4885
  plan?: AgentConfig | undefined;
4886
+ } & {
3933
4887
  [x: string]: AgentConfig | undefined;
3934
- } | undefined;
3935
- agent?: {
4888
+ }) | undefined;
4889
+ agent?: ({
3936
4890
  plan?: AgentConfig | undefined;
3937
4891
  build?: AgentConfig | undefined;
3938
4892
  general?: AgentConfig | undefined;
@@ -3941,8 +4895,9 @@ export type Config = {
3941
4895
  title?: AgentConfig | undefined;
3942
4896
  summary?: AgentConfig | undefined;
3943
4897
  compaction?: AgentConfig | undefined;
4898
+ } & {
3944
4899
  [x: string]: AgentConfig | undefined;
3945
- } | undefined;
4900
+ }) | undefined;
3946
4901
  provider?: {
3947
4902
  [x: string]: ProviderConfig;
3948
4903
  } | undefined;
@@ -4132,6 +5087,7 @@ export type Config = {
4132
5087
  autoDetect?: boolean | undefined;
4133
5088
  } | undefined;
4134
5089
  } | undefined;
5090
+ } & {
4135
5091
  [x: string]: any;
4136
5092
  };
4137
5093
  export type MobileConfigInfo = {
@@ -4146,8 +5102,8 @@ export type MobileConfigInfo = {
4146
5102
  autoDetect?: boolean | undefined;
4147
5103
  replyLanguage?: boolean | string | undefined;
4148
5104
  } | undefined;
4149
- keybinds?: KeybindsConfig | undefined;
4150
- logLevel?: LogLevel | undefined;
5105
+ keybinds?: KeybindsConfig1 | undefined;
5106
+ logLevel?: LogLevel1 | undefined;
4151
5107
  tui?: {
4152
5108
  scroll_speed?: number | undefined;
4153
5109
  scroll_acceleration?: {
@@ -4159,10 +5115,10 @@ export type MobileConfigInfo = {
4159
5115
  bg_pulse?: boolean | undefined;
4160
5116
  turn_tokens?: boolean | undefined;
4161
5117
  } | undefined;
4162
- ads?: AdsConfig | undefined;
4163
- server?: ServerConfig | undefined;
4164
- remote?: RemoteConfig | undefined;
4165
- teleport?: TeleportConfig | undefined;
5118
+ ads?: AdsConfig1 | undefined;
5119
+ server?: ServerConfig1 | undefined;
5120
+ remote?: RemoteConfig1 | undefined;
5121
+ teleport?: TeleportConfig1 | undefined;
4166
5122
  command?: {
4167
5123
  [x: string]: {
4168
5124
  template?: string | undefined;
@@ -4174,7 +5130,7 @@ export type MobileConfigInfo = {
4174
5130
  };
4175
5131
  } | undefined;
4176
5132
  reference?: {
4177
- [x: string]: ReferenceConfig;
5133
+ [x: string]: ReferenceConfig1;
4178
5134
  } | undefined;
4179
5135
  watcher?: {
4180
5136
  ignore?: Array<string> | undefined;
@@ -4199,32 +5155,34 @@ export type MobileConfigInfo = {
4199
5155
  small_model?: string | undefined;
4200
5156
  default_agent?: string | undefined;
4201
5157
  username?: string | undefined;
4202
- mode?: {
4203
- build?: AgentConfig | undefined;
4204
- plan?: AgentConfig | undefined;
4205
- [x: string]: AgentConfig | undefined;
4206
- } | undefined;
4207
- agent?: {
4208
- plan?: AgentConfig | undefined;
4209
- build?: AgentConfig | undefined;
4210
- general?: AgentConfig | undefined;
4211
- explore?: AgentConfig | undefined;
4212
- scout?: AgentConfig | undefined;
4213
- title?: AgentConfig | undefined;
4214
- summary?: AgentConfig | undefined;
4215
- compaction?: AgentConfig | undefined;
4216
- [x: string]: AgentConfig | undefined;
4217
- } | undefined;
5158
+ mode?: ({
5159
+ build?: AgentConfig1 | undefined;
5160
+ plan?: AgentConfig1 | undefined;
5161
+ } & {
5162
+ [x: string]: AgentConfig1 | undefined;
5163
+ }) | undefined;
5164
+ agent?: ({
5165
+ plan?: AgentConfig1 | undefined;
5166
+ build?: AgentConfig1 | undefined;
5167
+ general?: AgentConfig1 | undefined;
5168
+ explore?: AgentConfig1 | undefined;
5169
+ scout?: AgentConfig1 | undefined;
5170
+ title?: AgentConfig1 | undefined;
5171
+ summary?: AgentConfig1 | undefined;
5172
+ compaction?: AgentConfig1 | undefined;
5173
+ } & {
5174
+ [x: string]: AgentConfig1 | undefined;
5175
+ }) | undefined;
4218
5176
  provider?: {
4219
- [x: string]: ProviderConfig;
5177
+ [x: string]: ProviderConfig1;
4220
5178
  } | undefined;
4221
5179
  mcp?: {
4222
- [x: string]: McpLocalConfig | McpRemoteConfig | {
5180
+ [x: string]: McpLocalConfig1 | McpRemoteConfig1 | {
4223
5181
  enabled: boolean;
4224
5182
  };
4225
5183
  } | undefined;
4226
5184
  connectors?: {
4227
- [x: string]: ConnectorFigma | ConnectorSlack | ConnectorGithub | ConnectorLovable | ConnectorDiscord | ConnectorTeams | ConnectorGChat | ConnectorLinear | {
5185
+ [x: string]: ConnectorFigma1 | ConnectorSlack1 | ConnectorGithub1 | ConnectorLovable1 | ConnectorDiscord1 | ConnectorTeams1 | ConnectorGChat1 | ConnectorLinear1 | {
4228
5186
  enabled: boolean;
4229
5187
  };
4230
5188
  } | undefined;
@@ -4261,7 +5219,7 @@ export type MobileConfigInfo = {
4261
5219
  };
4262
5220
  } | undefined;
4263
5221
  instructions?: Array<string> | undefined;
4264
- layout?: LayoutConfig | undefined;
5222
+ layout?: LayoutConfig1 | undefined;
4265
5223
  permission?: PermissionConfig | undefined;
4266
5224
  tools?: {
4267
5225
  [x: string]: boolean;
@@ -4281,7 +5239,7 @@ export type MobileConfigInfo = {
4281
5239
  reserved?: number | undefined;
4282
5240
  } | undefined;
4283
5241
  experimental?: {
4284
- policies?: Array<PolicyStatementConfig> | undefined;
5242
+ policies?: Array<PolicyStatementConfig1> | undefined;
4285
5243
  hook?: {
4286
5244
  file_edited?: {
4287
5245
  [x: string]: Array<{
@@ -4329,12 +5287,12 @@ export type MobileConfigInfo = {
4329
5287
  schemaEncoding?: boolean | undefined;
4330
5288
  } | undefined;
4331
5289
  } | undefined;
4332
- rag?: RagConfig | undefined;
4333
- image?: ImageConfig | undefined;
5290
+ rag?: RagConfig1 | undefined;
5291
+ image?: ImageConfig1 | undefined;
4334
5292
  browser?: unknown | undefined;
4335
- computer?: ComputerConfig | undefined;
4336
- attachment?: AttachmentConfig | undefined;
4337
- speak?: SpeakConfig | undefined;
5293
+ computer?: ComputerConfig1 | undefined;
5294
+ attachment?: AttachmentConfig1 | undefined;
5295
+ speak?: SpeakConfig1 | undefined;
4338
5296
  notifications?: {
4339
5297
  todo?: {
4340
5298
  enabled?: boolean | undefined;
@@ -4426,7 +5384,7 @@ export type SessionPendingPromptInput = {
4426
5384
  tools?: {
4427
5385
  [x: string]: boolean;
4428
5386
  };
4429
- format?: OutputFormat2;
5387
+ format?: OutputFormat1;
4430
5388
  system?: string;
4431
5389
  variant?: string;
4432
5390
  parts: Array<PromptPartInput>;
@@ -4477,12 +5435,12 @@ export type ToolPart2 = {
4477
5435
  };
4478
5436
  };
4479
5437
  export type Part = TextPart | SubtaskPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart;
4480
- export type Part1 = TextPart1 | SubtaskPart1 | ReasoningPart1 | FilePart2 | ToolPart1 | StepStartPart1 | StepFinishPart1 | SnapshotPart | PatchPart | AgentPart1 | RetryPart1 | CompactionPart;
5438
+ export type Part1 = TextPart1 | SubtaskPart1 | ReasoningPart1 | FilePart2 | ToolPart1 | StepStartPart1 | StepFinishPart1 | SnapshotPart1 | PatchPart1 | AgentPart1 | RetryPart1 | CompactionPart1;
4481
5439
  export type SessionPendingInputList = Array<SessionPendingInput2>;
4482
- export type Part2 = TextPart2 | SubtaskPart1 | ReasoningPart2 | FilePart3 | ToolPart2 | StepStartPart1 | StepFinishPart2 | SnapshotPart | PatchPart | AgentPart1 | RetryPart2 | CompactionPart;
5440
+ export type Part2 = TextPart2 | SubtaskPart1 | ReasoningPart2 | FilePart3 | ToolPart2 | StepStartPart1 | StepFinishPart2 | SnapshotPart1 | PatchPart1 | AgentPart1 | RetryPart2 | CompactionPart1;
4483
5441
  export type MobileSessionDetail = {
4484
- info: Session;
4485
- status?: SessionStatus | undefined;
5442
+ info: Session3;
5443
+ status?: SessionStatus1 | undefined;
4486
5444
  messages: Array<{
4487
5445
  info: Message;
4488
5446
  parts: Array<Part>;
@@ -4514,7 +5472,7 @@ export type ShareData = Array<{
4514
5472
  data: Part1;
4515
5473
  } | {
4516
5474
  type: "session_diff";
4517
- data: Array<FileDiff>;
5475
+ data: Array<FileDiff2>;
4518
5476
  } | {
4519
5477
  type: "model";
4520
5478
  data: Array<Model>;
@@ -4527,9 +5485,10 @@ export type EventMessagePartUpdated = {
4527
5485
  };
4528
5486
  };
4529
5487
  export type Event = EventProjectUpdated | EventTelemetryRecord | EventServerInstanceDisposed | EventPermissionAsked | EventPermissionReplied | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventSessionPendingPromoted | EventSessionInstructionsUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventFileWatcherUpdated | EventVcsBranchUpdated | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventSessionGoal | EventIdeInstalled | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventSessionV2Updated | EventSessionEntryUpdated | EventSessionEntryRemoved | EventFileEdited | EventMonitorCreated | EventMonitorUpdated | EventMonitorOutput | EventMonitorCompleted | EventLoopUpserted | EventLoopRemoved | EventLoopRunStarted | EventLoopRunFinished | EventLoopRuntimeChanged | EventMissionUpserted | EventMissionRemoved | EventMissionStarted | EventMissionFinished | EventMissionExecStarted | EventMissionExecFinished | EventMissionRuntimeChanged | EventMissionAborted | EventWorkspaceStatus | EventWorkspaceReady | EventWorkspaceFailed | EventDelegationCompleted;
5488
+ export type Event1 = EventProjectUpdated | EventTelemetryRecord | EventServerInstanceDisposed | EventPermissionAsked | EventPermissionReplied | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventSessionPendingPromoted | EventSessionInstructionsUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventFileWatcherUpdated | EventVcsBranchUpdated | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventSessionGoal | EventIdeInstalled | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventSessionV2Updated | EventSessionEntryUpdated | EventSessionEntryRemoved | EventFileEdited | EventMonitorCreated | EventMonitorUpdated | EventMonitorOutput | EventMonitorCompleted | EventLoopUpserted | EventLoopRemoved | EventLoopRunStarted | EventLoopRunFinished | EventLoopRuntimeChanged | EventMissionUpserted | EventMissionRemoved | EventMissionStarted | EventMissionFinished | EventMissionExecStarted | EventMissionExecFinished | EventMissionRuntimeChanged | EventMissionAborted | EventWorkspaceStatus | EventWorkspaceReady | EventWorkspaceFailed | EventDelegationCompleted;
4530
5489
  export type GlobalEvent = {
4531
5490
  directory: string;
4532
- payload: Event;
5491
+ payload: Event1;
4533
5492
  };
4534
5493
  export type VcsApplyError = {
4535
5494
  readonly name: "VcsApplyError";
@@ -6542,8 +7501,8 @@ export type ConfigUpdateInput = {
6542
7501
  readonly small_model?: string | undefined;
6543
7502
  readonly default_agent?: string | undefined;
6544
7503
  readonly username?: string | undefined;
6545
- readonly mode?: {
6546
- readonly build?: {
7504
+ readonly mode?: ({
7505
+ readonly build?: ({
6547
7506
  readonly model?: string | undefined;
6548
7507
  readonly variant?: string | undefined;
6549
7508
  readonly temperature?: number | undefined;
@@ -6570,9 +7529,10 @@ export type ConfigUpdateInput = {
6570
7529
  } | undefined;
6571
7530
  readonly advisor?: string | undefined;
6572
7531
  readonly advisor_max_uses?: number | undefined;
7532
+ } & {
6573
7533
  readonly [x: string]: any | undefined;
6574
- } | undefined;
6575
- readonly plan?: {
7534
+ }) | undefined;
7535
+ readonly plan?: ({
6576
7536
  readonly model?: string | undefined;
6577
7537
  readonly variant?: string | undefined;
6578
7538
  readonly temperature?: number | undefined;
@@ -6599,9 +7559,11 @@ export type ConfigUpdateInput = {
6599
7559
  } | undefined;
6600
7560
  readonly advisor?: string | undefined;
6601
7561
  readonly advisor_max_uses?: number | undefined;
7562
+ } & {
6602
7563
  readonly [x: string]: any | undefined;
6603
- } | undefined;
6604
- readonly [x: string]: {
7564
+ }) | undefined;
7565
+ } & {
7566
+ readonly [x: string]: ({
6605
7567
  readonly model?: string | undefined;
6606
7568
  readonly variant?: string | undefined;
6607
7569
  readonly temperature?: number | undefined;
@@ -6628,11 +7590,12 @@ export type ConfigUpdateInput = {
6628
7590
  } | undefined;
6629
7591
  readonly advisor?: string | undefined;
6630
7592
  readonly advisor_max_uses?: number | undefined;
7593
+ } & {
6631
7594
  readonly [x: string]: any | undefined;
6632
- } | undefined;
6633
- } | undefined;
6634
- readonly agent?: {
6635
- readonly plan?: {
7595
+ }) | undefined;
7596
+ }) | undefined;
7597
+ readonly agent?: ({
7598
+ readonly plan?: ({
6636
7599
  readonly model?: string | undefined;
6637
7600
  readonly variant?: string | undefined;
6638
7601
  readonly temperature?: number | undefined;
@@ -6659,9 +7622,10 @@ export type ConfigUpdateInput = {
6659
7622
  } | undefined;
6660
7623
  readonly advisor?: string | undefined;
6661
7624
  readonly advisor_max_uses?: number | undefined;
7625
+ } & {
6662
7626
  readonly [x: string]: any | undefined;
6663
- } | undefined;
6664
- readonly build?: {
7627
+ }) | undefined;
7628
+ readonly build?: ({
6665
7629
  readonly model?: string | undefined;
6666
7630
  readonly variant?: string | undefined;
6667
7631
  readonly temperature?: number | undefined;
@@ -6688,9 +7652,10 @@ export type ConfigUpdateInput = {
6688
7652
  } | undefined;
6689
7653
  readonly advisor?: string | undefined;
6690
7654
  readonly advisor_max_uses?: number | undefined;
7655
+ } & {
6691
7656
  readonly [x: string]: any | undefined;
6692
- } | undefined;
6693
- readonly general?: {
7657
+ }) | undefined;
7658
+ readonly general?: ({
6694
7659
  readonly model?: string | undefined;
6695
7660
  readonly variant?: string | undefined;
6696
7661
  readonly temperature?: number | undefined;
@@ -6717,9 +7682,10 @@ export type ConfigUpdateInput = {
6717
7682
  } | undefined;
6718
7683
  readonly advisor?: string | undefined;
6719
7684
  readonly advisor_max_uses?: number | undefined;
7685
+ } & {
6720
7686
  readonly [x: string]: any | undefined;
6721
- } | undefined;
6722
- readonly explore?: {
7687
+ }) | undefined;
7688
+ readonly explore?: ({
6723
7689
  readonly model?: string | undefined;
6724
7690
  readonly variant?: string | undefined;
6725
7691
  readonly temperature?: number | undefined;
@@ -6746,9 +7712,10 @@ export type ConfigUpdateInput = {
6746
7712
  } | undefined;
6747
7713
  readonly advisor?: string | undefined;
6748
7714
  readonly advisor_max_uses?: number | undefined;
7715
+ } & {
6749
7716
  readonly [x: string]: any | undefined;
6750
- } | undefined;
6751
- readonly scout?: {
7717
+ }) | undefined;
7718
+ readonly scout?: ({
6752
7719
  readonly model?: string | undefined;
6753
7720
  readonly variant?: string | undefined;
6754
7721
  readonly temperature?: number | undefined;
@@ -6775,9 +7742,10 @@ export type ConfigUpdateInput = {
6775
7742
  } | undefined;
6776
7743
  readonly advisor?: string | undefined;
6777
7744
  readonly advisor_max_uses?: number | undefined;
7745
+ } & {
6778
7746
  readonly [x: string]: any | undefined;
6779
- } | undefined;
6780
- readonly title?: {
7747
+ }) | undefined;
7748
+ readonly title?: ({
6781
7749
  readonly model?: string | undefined;
6782
7750
  readonly variant?: string | undefined;
6783
7751
  readonly temperature?: number | undefined;
@@ -6804,9 +7772,10 @@ export type ConfigUpdateInput = {
6804
7772
  } | undefined;
6805
7773
  readonly advisor?: string | undefined;
6806
7774
  readonly advisor_max_uses?: number | undefined;
7775
+ } & {
6807
7776
  readonly [x: string]: any | undefined;
6808
- } | undefined;
6809
- readonly summary?: {
7777
+ }) | undefined;
7778
+ readonly summary?: ({
6810
7779
  readonly model?: string | undefined;
6811
7780
  readonly variant?: string | undefined;
6812
7781
  readonly temperature?: number | undefined;
@@ -6833,9 +7802,10 @@ export type ConfigUpdateInput = {
6833
7802
  } | undefined;
6834
7803
  readonly advisor?: string | undefined;
6835
7804
  readonly advisor_max_uses?: number | undefined;
7805
+ } & {
6836
7806
  readonly [x: string]: any | undefined;
6837
- } | undefined;
6838
- readonly compaction?: {
7807
+ }) | undefined;
7808
+ readonly compaction?: ({
6839
7809
  readonly model?: string | undefined;
6840
7810
  readonly variant?: string | undefined;
6841
7811
  readonly temperature?: number | undefined;
@@ -6862,9 +7832,11 @@ export type ConfigUpdateInput = {
6862
7832
  } | undefined;
6863
7833
  readonly advisor?: string | undefined;
6864
7834
  readonly advisor_max_uses?: number | undefined;
7835
+ } & {
6865
7836
  readonly [x: string]: any | undefined;
6866
- } | undefined;
6867
- readonly [x: string]: {
7837
+ }) | undefined;
7838
+ } & {
7839
+ readonly [x: string]: ({
6868
7840
  readonly model?: string | undefined;
6869
7841
  readonly variant?: string | undefined;
6870
7842
  readonly temperature?: number | undefined;
@@ -6891,9 +7863,10 @@ export type ConfigUpdateInput = {
6891
7863
  } | undefined;
6892
7864
  readonly advisor?: string | undefined;
6893
7865
  readonly advisor_max_uses?: number | undefined;
7866
+ } & {
6894
7867
  readonly [x: string]: any | undefined;
6895
- } | undefined;
6896
- } | undefined;
7868
+ }) | undefined;
7869
+ }) | undefined;
6897
7870
  readonly provider?: {
6898
7871
  readonly [x: string]: {
6899
7872
  readonly api?: string | undefined;
@@ -6960,6 +7933,7 @@ export type ConfigUpdateInput = {
6960
7933
  readonly variants?: {
6961
7934
  readonly [x: string]: {
6962
7935
  readonly disabled?: boolean | undefined;
7936
+ } & {
6963
7937
  readonly [x: string]: any | undefined;
6964
7938
  };
6965
7939
  } | undefined;
@@ -6969,7 +7943,7 @@ export type ConfigUpdateInput = {
6969
7943
  readonly auth_provider?: string | undefined;
6970
7944
  readonly whitelist?: ReadonlyArray<string> | undefined;
6971
7945
  readonly blacklist?: ReadonlyArray<string> | undefined;
6972
- readonly options?: {
7946
+ readonly options?: ({
6973
7947
  readonly apiKey?: string | undefined;
6974
7948
  readonly baseURL?: string | undefined;
6975
7949
  readonly enterpriseUrl?: string | undefined;
@@ -6977,8 +7951,9 @@ export type ConfigUpdateInput = {
6977
7951
  readonly timeout?: number | false | undefined;
6978
7952
  readonly headerTimeout?: number | false | undefined;
6979
7953
  readonly chunkTimeout?: number | undefined;
7954
+ } & {
6980
7955
  readonly [x: string]: any | undefined;
6981
- } | undefined;
7956
+ }) | undefined;
6982
7957
  };
6983
7958
  } | undefined;
6984
7959
  readonly mcp?: {
@@ -7254,6 +8229,7 @@ export type ConfigUpdateInput = {
7254
8229
  readonly autoDetect?: boolean | undefined;
7255
8230
  } | undefined;
7256
8231
  } | undefined;
8232
+ } & {
7257
8233
  readonly [x: string]: any;
7258
8234
  };
7259
8235
  };
@@ -7675,7 +8651,7 @@ export type MobileSessionDiffInput = {
7675
8651
  readonly messageID: string;
7676
8652
  }["messageID"];
7677
8653
  };
7678
- export type MobileSessionDiffOutput = Array<FileDiff>;
8654
+ export type MobileSessionDiffOutput = Array<FileDiff2>;
7679
8655
  export type MobileSessionCommandListInput = {
7680
8656
  readonly sessionID: {
7681
8657
  readonly sessionID: string;
@@ -7831,7 +8807,7 @@ export type MobileWorktreeCreateInput = {
7831
8807
  readonly sourceDirectory?: MobileWorktreeCreatePayload["sourceDirectory"];
7832
8808
  readonly root?: MobileWorktreeCreatePayload["root"];
7833
8809
  };
7834
- export type MobileWorktreeCreateOutput = Worktree;
8810
+ export type MobileWorktreeCreateOutput = Worktree2;
7835
8811
  export type MobileWorktreeRemoveInput = {
7836
8812
  readonly directory: MobileWorktreeRemovePayload["directory"];
7837
8813
  readonly force?: MobileWorktreeRemovePayload["force"];
@@ -8334,8 +9310,8 @@ export type MobileHostDevtoolsOutput = {
8334
9310
  uptimeSec?: number | undefined;
8335
9311
  platform?: string | undefined;
8336
9312
  };
8337
- export type ProjectListOutput = Array<Project>;
8338
- export type ProjectCurrentOutput = Project;
9313
+ export type ProjectListOutput = Array<Project2>;
9314
+ export type ProjectCurrentOutput = Project2;
8339
9315
  export type ProjectUpdateInput = {
8340
9316
  readonly projectID: {
8341
9317
  readonly projectID: string;
@@ -8343,7 +9319,7 @@ export type ProjectUpdateInput = {
8343
9319
  readonly name?: ProjectUpdatePayload["name"];
8344
9320
  readonly icon?: ProjectUpdatePayload["icon"];
8345
9321
  };
8346
- export type ProjectUpdateOutput = Project;
9322
+ export type ProjectUpdateOutput = Project2;
8347
9323
  export type ProjectDirectoryListInput = {
8348
9324
  readonly projectID: {
8349
9325
  readonly projectID: string;
@@ -8403,7 +9379,7 @@ export type ProviderOauthCallbackInput = {
8403
9379
  readonly code?: ProviderOauthCallbackPayload["code"];
8404
9380
  };
8405
9381
  export type ProviderOauthCallbackOutput = boolean;
8406
- export type QuestionListOutput = Array<QuestionRequest>;
9382
+ export type QuestionListOutput = Array<QuestionRequest1>;
8407
9383
  export type QuestionReplyInput = {
8408
9384
  readonly requestID: {
8409
9385
  readonly requestID: string;
@@ -8417,7 +9393,7 @@ export type QuestionRejectInput = {
8417
9393
  }["requestID"];
8418
9394
  };
8419
9395
  export type QuestionRejectOutput = boolean;
8420
- export type PermissionListOutput = Array<PermissionRequest>;
9396
+ export type PermissionListOutput = Array<PermissionRequest1>;
8421
9397
  export type PermissionReplyInput = {
8422
9398
  readonly requestID: {
8423
9399
  readonly requestID: string;