@ai-matrx/desktop-protocol 0.14.0 → 0.16.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.
package/dist/react.d.cts CHANGED
@@ -135,9 +135,9 @@ declare const StreamMeta: z.ZodDiscriminatedUnion<[z.ZodObject<{
135
135
  type StreamMeta = z.output<typeof StreamMeta>;
136
136
  declare const EndReason: z.ZodEnum<{
137
137
  error: "error";
138
+ cancelled: "cancelled";
138
139
  resource_exited: "resource_exited";
139
140
  completed: "completed";
140
- cancelled: "cancelled";
141
141
  detached: "detached";
142
142
  }>;
143
143
  type EndReason = z.output<typeof EndReason>;
@@ -1113,6 +1113,593 @@ declare const OPS: {
1113
1113
  readonly since: "1.3";
1114
1114
  readonly errors: readonly ["PLATFORM_UNSUPPORTED", "PAYLOAD_TOO_LARGE", "INTERNAL"];
1115
1115
  };
1116
+ readonly "fs.watch.start": {
1117
+ readonly params: z.ZodObject<{
1118
+ path: z.ZodString;
1119
+ recursive: z.ZodDefault<z.ZodBoolean>;
1120
+ ignore: z.ZodDefault<z.ZodArray<z.ZodString>>;
1121
+ }, z.core.$strict>;
1122
+ readonly result: z.ZodObject<{
1123
+ watch_id: z.ZodString;
1124
+ path: z.ZodString;
1125
+ expires_at_ms: z.ZodInt;
1126
+ }, z.core.$strict>;
1127
+ readonly kind: "unary";
1128
+ readonly since: "1.4";
1129
+ readonly errors: readonly ["NOT_FOUND", "PERMISSION_DENIED_OS", "INVALID_PARAMS", "RESOURCE_BUSY", "INTERNAL", "RATE_LIMITED"];
1130
+ };
1131
+ readonly "fs.watch.events": {
1132
+ readonly params: z.ZodObject<{
1133
+ watch_id: z.ZodString;
1134
+ wait_ms: z.ZodDefault<z.ZodInt>;
1135
+ }, z.core.$strict>;
1136
+ readonly result: z.ZodObject<{
1137
+ changes: z.ZodArray<z.ZodObject<{
1138
+ type: z.ZodEnum<{
1139
+ created: "created";
1140
+ deleted: "deleted";
1141
+ modified: "modified";
1142
+ moved: "moved";
1143
+ }>;
1144
+ path: z.ZodString;
1145
+ to_path: z.ZodOptional<z.ZodString>;
1146
+ kind: z.ZodEnum<{
1147
+ unknown: "unknown";
1148
+ file: "file";
1149
+ dir: "dir";
1150
+ symlink: "symlink";
1151
+ }>;
1152
+ }, z.core.$strict>>;
1153
+ overflow: z.ZodBoolean;
1154
+ expires_at_ms: z.ZodInt;
1155
+ }, z.core.$strict>;
1156
+ readonly kind: "unary";
1157
+ readonly since: "1.4";
1158
+ readonly errors: readonly ["RESOURCE_GONE", "INVALID_PARAMS", "INTERNAL"];
1159
+ };
1160
+ readonly "fs.watch.stop": {
1161
+ readonly params: z.ZodObject<{
1162
+ watch_id: z.ZodString;
1163
+ }, z.core.$strict>;
1164
+ readonly result: z.ZodObject<{
1165
+ watch_id: z.ZodString;
1166
+ }, z.core.$strict>;
1167
+ readonly kind: "unary";
1168
+ readonly since: "1.4";
1169
+ readonly errors: readonly ["RESOURCE_GONE", "INVALID_PARAMS"];
1170
+ };
1171
+ readonly "exec.job.start": {
1172
+ readonly params: z.ZodObject<{
1173
+ command: z.ZodString;
1174
+ cwd: z.ZodOptional<z.ZodString>;
1175
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1176
+ }, z.core.$strict>;
1177
+ readonly result: z.ZodObject<{
1178
+ job_id: z.ZodString;
1179
+ pid: z.ZodInt;
1180
+ cwd: z.ZodString;
1181
+ }, z.core.$strict>;
1182
+ readonly kind: "unary";
1183
+ readonly since: "1.4";
1184
+ readonly errors: readonly ["INVALID_PARAMS", "NOT_FOUND", "RATE_LIMITED", "INTERNAL"];
1185
+ };
1186
+ readonly "exec.job.output": {
1187
+ readonly params: z.ZodObject<{
1188
+ job_id: z.ZodString;
1189
+ offset: z.ZodDefault<z.ZodInt>;
1190
+ wait_ms: z.ZodDefault<z.ZodInt>;
1191
+ max_bytes: z.ZodDefault<z.ZodInt>;
1192
+ }, z.core.$strict>;
1193
+ readonly result: z.ZodObject<{
1194
+ output: z.ZodString;
1195
+ next_offset: z.ZodInt;
1196
+ dropped_bytes: z.ZodInt;
1197
+ running: z.ZodBoolean;
1198
+ exit_code: z.ZodNullable<z.ZodInt>;
1199
+ }, z.core.$strict>;
1200
+ readonly kind: "unary";
1201
+ readonly since: "1.4";
1202
+ readonly errors: readonly ["RESOURCE_GONE", "INVALID_PARAMS"];
1203
+ };
1204
+ readonly "exec.job.stop": {
1205
+ readonly params: z.ZodObject<{
1206
+ job_id: z.ZodString;
1207
+ force: z.ZodDefault<z.ZodBoolean>;
1208
+ }, z.core.$strict>;
1209
+ readonly result: z.ZodObject<{
1210
+ job_id: z.ZodString;
1211
+ exited: z.ZodBoolean;
1212
+ exit_code: z.ZodNullable<z.ZodInt>;
1213
+ }, z.core.$strict>;
1214
+ readonly kind: "unary";
1215
+ readonly since: "1.4";
1216
+ readonly errors: readonly ["RESOURCE_GONE", "INVALID_PARAMS", "INTERNAL"];
1217
+ };
1218
+ readonly "exec.job.list": {
1219
+ readonly params: z.ZodObject<{}, z.core.$strict>;
1220
+ readonly result: z.ZodObject<{
1221
+ jobs: z.ZodArray<z.ZodObject<{
1222
+ job_id: z.ZodString;
1223
+ command: z.ZodString;
1224
+ pid: z.ZodInt;
1225
+ cwd: z.ZodString;
1226
+ running: z.ZodBoolean;
1227
+ exit_code: z.ZodNullable<z.ZodInt>;
1228
+ started_at_ms: z.ZodInt;
1229
+ output_bytes: z.ZodInt;
1230
+ }, z.core.$strict>>;
1231
+ }, z.core.$strict>;
1232
+ readonly kind: "unary";
1233
+ readonly since: "1.4";
1234
+ readonly errors: readonly ["INTERNAL"];
1235
+ };
1236
+ readonly "system.open_url": {
1237
+ readonly params: z.ZodObject<{
1238
+ url: z.ZodString;
1239
+ }, z.core.$strict>;
1240
+ readonly result: z.ZodObject<{
1241
+ url: z.ZodString;
1242
+ }, z.core.$strict>;
1243
+ readonly kind: "unary";
1244
+ readonly since: "1.4";
1245
+ readonly errors: readonly ["INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
1246
+ };
1247
+ readonly "system.open_path": {
1248
+ readonly params: z.ZodObject<{
1249
+ path: z.ZodString;
1250
+ reveal: z.ZodDefault<z.ZodBoolean>;
1251
+ }, z.core.$strict>;
1252
+ readonly result: z.ZodObject<{
1253
+ path: z.ZodString;
1254
+ revealed: z.ZodBoolean;
1255
+ }, z.core.$strict>;
1256
+ readonly kind: "unary";
1257
+ readonly since: "1.4";
1258
+ readonly errors: readonly ["NOT_FOUND", "INVALID_PARAMS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
1259
+ };
1260
+ readonly "system.notify": {
1261
+ readonly params: z.ZodObject<{
1262
+ title: z.ZodString;
1263
+ body: z.ZodDefault<z.ZodString>;
1264
+ }, z.core.$strict>;
1265
+ readonly result: z.ZodObject<{
1266
+ shown: z.ZodBoolean;
1267
+ }, z.core.$strict>;
1268
+ readonly kind: "unary";
1269
+ readonly since: "1.4";
1270
+ readonly errors: readonly ["PERMISSION_DENIED_OS", "INTERNAL"];
1271
+ };
1272
+ readonly "screen.list": {
1273
+ readonly params: z.ZodObject<{}, z.core.$strict>;
1274
+ readonly result: z.ZodObject<{
1275
+ displays: z.ZodArray<z.ZodObject<{
1276
+ id: z.ZodInt;
1277
+ name: z.ZodString;
1278
+ x: z.ZodInt;
1279
+ y: z.ZodInt;
1280
+ width: z.ZodInt;
1281
+ height: z.ZodInt;
1282
+ scale: z.ZodNumber;
1283
+ primary: z.ZodBoolean;
1284
+ }, z.core.$strict>>;
1285
+ }, z.core.$strict>;
1286
+ readonly kind: "unary";
1287
+ readonly since: "1.4";
1288
+ readonly errors: readonly ["PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
1289
+ };
1290
+ readonly "screen.capture": {
1291
+ readonly params: z.ZodObject<{
1292
+ display_id: z.ZodOptional<z.ZodInt>;
1293
+ format: z.ZodDefault<z.ZodEnum<{
1294
+ jpeg: "jpeg";
1295
+ png: "png";
1296
+ }>>;
1297
+ max_width: z.ZodDefault<z.ZodInt>;
1298
+ }, z.core.$strict>;
1299
+ readonly result: z.ZodObject<{
1300
+ display_id: z.ZodInt;
1301
+ mime_type: z.ZodEnum<{
1302
+ "image/jpeg": "image/jpeg";
1303
+ "image/png": "image/png";
1304
+ }>;
1305
+ width: z.ZodInt;
1306
+ height: z.ZodInt;
1307
+ source_width: z.ZodInt;
1308
+ source_height: z.ZodInt;
1309
+ data_base64: z.ZodString;
1310
+ }, z.core.$strict>;
1311
+ readonly kind: "unary";
1312
+ readonly since: "1.4";
1313
+ readonly errors: readonly ["NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "PAYLOAD_TOO_LARGE", "INTERNAL"];
1314
+ };
1315
+ readonly "window.list": {
1316
+ readonly params: z.ZodObject<{
1317
+ title: z.ZodOptional<z.ZodString>;
1318
+ limit: z.ZodDefault<z.ZodInt>;
1319
+ }, z.core.$strict>;
1320
+ readonly result: z.ZodObject<{
1321
+ windows: z.ZodArray<z.ZodObject<{
1322
+ id: z.ZodInt;
1323
+ title: z.ZodString;
1324
+ x: z.ZodInt;
1325
+ y: z.ZodInt;
1326
+ width: z.ZodInt;
1327
+ height: z.ZodInt;
1328
+ }, z.core.$strict>>;
1329
+ total: z.ZodInt;
1330
+ truncated: z.ZodBoolean;
1331
+ }, z.core.$strict>;
1332
+ readonly kind: "unary";
1333
+ readonly since: "1.4";
1334
+ readonly errors: readonly ["PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
1335
+ };
1336
+ readonly "window.focus": {
1337
+ readonly params: z.ZodObject<{
1338
+ id: z.ZodInt;
1339
+ }, z.core.$strict>;
1340
+ readonly result: z.ZodObject<{
1341
+ window: z.ZodObject<{
1342
+ id: z.ZodInt;
1343
+ title: z.ZodString;
1344
+ x: z.ZodInt;
1345
+ y: z.ZodInt;
1346
+ width: z.ZodInt;
1347
+ height: z.ZodInt;
1348
+ }, z.core.$strict>;
1349
+ }, z.core.$strict>;
1350
+ readonly kind: "unary";
1351
+ readonly since: "1.4";
1352
+ readonly errors: readonly ["NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
1353
+ };
1354
+ readonly "window.move": {
1355
+ readonly params: z.ZodObject<{
1356
+ id: z.ZodInt;
1357
+ x: z.ZodOptional<z.ZodInt>;
1358
+ y: z.ZodOptional<z.ZodInt>;
1359
+ width: z.ZodOptional<z.ZodInt>;
1360
+ height: z.ZodOptional<z.ZodInt>;
1361
+ }, z.core.$strict>;
1362
+ readonly result: z.ZodObject<{
1363
+ window: z.ZodObject<{
1364
+ id: z.ZodInt;
1365
+ title: z.ZodString;
1366
+ x: z.ZodInt;
1367
+ y: z.ZodInt;
1368
+ width: z.ZodInt;
1369
+ height: z.ZodInt;
1370
+ }, z.core.$strict>;
1371
+ }, z.core.$strict>;
1372
+ readonly kind: "unary";
1373
+ readonly since: "1.4";
1374
+ readonly errors: readonly ["NOT_FOUND", "INVALID_PARAMS", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
1375
+ };
1376
+ readonly "window.minimize": {
1377
+ readonly params: z.ZodObject<{
1378
+ id: z.ZodInt;
1379
+ }, z.core.$strict>;
1380
+ readonly result: z.ZodObject<{
1381
+ id: z.ZodInt;
1382
+ }, z.core.$strict>;
1383
+ readonly kind: "unary";
1384
+ readonly since: "1.4";
1385
+ readonly errors: readonly ["NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
1386
+ };
1387
+ readonly "input.type_text": {
1388
+ readonly params: z.ZodObject<{
1389
+ text: z.ZodString;
1390
+ }, z.core.$strict>;
1391
+ readonly result: z.ZodObject<{
1392
+ characters: z.ZodInt;
1393
+ }, z.core.$strict>;
1394
+ readonly kind: "unary";
1395
+ readonly since: "1.4";
1396
+ readonly errors: readonly ["PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
1397
+ };
1398
+ readonly "input.hotkey": {
1399
+ readonly params: z.ZodObject<{
1400
+ keys: z.ZodArray<z.ZodEnum<{
1401
+ a: "a";
1402
+ b: "b";
1403
+ i: "i";
1404
+ meta: "meta";
1405
+ p: "p";
1406
+ q: "q";
1407
+ s: "s";
1408
+ u: "u";
1409
+ g: "g";
1410
+ 0: "0";
1411
+ shift: "shift";
1412
+ 1: "1";
1413
+ 2: "2";
1414
+ home: "home";
1415
+ 3: "3";
1416
+ 4: "4";
1417
+ 5: "5";
1418
+ 6: "6";
1419
+ 7: "7";
1420
+ 8: "8";
1421
+ 9: "9";
1422
+ end: "end";
1423
+ x: "x";
1424
+ y: "y";
1425
+ cmd: "cmd";
1426
+ ctrl: "ctrl";
1427
+ alt: "alt";
1428
+ c: "c";
1429
+ d: "d";
1430
+ e: "e";
1431
+ f: "f";
1432
+ h: "h";
1433
+ j: "j";
1434
+ k: "k";
1435
+ l: "l";
1436
+ m: "m";
1437
+ n: "n";
1438
+ o: "o";
1439
+ r: "r";
1440
+ t: "t";
1441
+ v: "v";
1442
+ w: "w";
1443
+ z: "z";
1444
+ f1: "f1";
1445
+ f2: "f2";
1446
+ f3: "f3";
1447
+ f4: "f4";
1448
+ f5: "f5";
1449
+ f6: "f6";
1450
+ f7: "f7";
1451
+ f8: "f8";
1452
+ f9: "f9";
1453
+ f10: "f10";
1454
+ f11: "f11";
1455
+ f12: "f12";
1456
+ enter: "enter";
1457
+ tab: "tab";
1458
+ escape: "escape";
1459
+ space: "space";
1460
+ backspace: "backspace";
1461
+ delete: "delete";
1462
+ up: "up";
1463
+ down: "down";
1464
+ left: "left";
1465
+ right: "right";
1466
+ pageup: "pageup";
1467
+ pagedown: "pagedown";
1468
+ minus: "minus";
1469
+ equal: "equal";
1470
+ comma: "comma";
1471
+ period: "period";
1472
+ slash: "slash";
1473
+ semicolon: "semicolon";
1474
+ quote: "quote";
1475
+ bracketleft: "bracketleft";
1476
+ bracketright: "bracketright";
1477
+ backslash: "backslash";
1478
+ grave: "grave";
1479
+ }>>;
1480
+ }, z.core.$strict>;
1481
+ readonly result: z.ZodObject<{
1482
+ keys: z.ZodArray<z.ZodEnum<{
1483
+ a: "a";
1484
+ b: "b";
1485
+ i: "i";
1486
+ meta: "meta";
1487
+ p: "p";
1488
+ q: "q";
1489
+ s: "s";
1490
+ u: "u";
1491
+ g: "g";
1492
+ 0: "0";
1493
+ shift: "shift";
1494
+ 1: "1";
1495
+ 2: "2";
1496
+ home: "home";
1497
+ 3: "3";
1498
+ 4: "4";
1499
+ 5: "5";
1500
+ 6: "6";
1501
+ 7: "7";
1502
+ 8: "8";
1503
+ 9: "9";
1504
+ end: "end";
1505
+ x: "x";
1506
+ y: "y";
1507
+ cmd: "cmd";
1508
+ ctrl: "ctrl";
1509
+ alt: "alt";
1510
+ c: "c";
1511
+ d: "d";
1512
+ e: "e";
1513
+ f: "f";
1514
+ h: "h";
1515
+ j: "j";
1516
+ k: "k";
1517
+ l: "l";
1518
+ m: "m";
1519
+ n: "n";
1520
+ o: "o";
1521
+ r: "r";
1522
+ t: "t";
1523
+ v: "v";
1524
+ w: "w";
1525
+ z: "z";
1526
+ f1: "f1";
1527
+ f2: "f2";
1528
+ f3: "f3";
1529
+ f4: "f4";
1530
+ f5: "f5";
1531
+ f6: "f6";
1532
+ f7: "f7";
1533
+ f8: "f8";
1534
+ f9: "f9";
1535
+ f10: "f10";
1536
+ f11: "f11";
1537
+ f12: "f12";
1538
+ enter: "enter";
1539
+ tab: "tab";
1540
+ escape: "escape";
1541
+ space: "space";
1542
+ backspace: "backspace";
1543
+ delete: "delete";
1544
+ up: "up";
1545
+ down: "down";
1546
+ left: "left";
1547
+ right: "right";
1548
+ pageup: "pageup";
1549
+ pagedown: "pagedown";
1550
+ minus: "minus";
1551
+ equal: "equal";
1552
+ comma: "comma";
1553
+ period: "period";
1554
+ slash: "slash";
1555
+ semicolon: "semicolon";
1556
+ quote: "quote";
1557
+ bracketleft: "bracketleft";
1558
+ bracketright: "bracketright";
1559
+ backslash: "backslash";
1560
+ grave: "grave";
1561
+ }>>;
1562
+ }, z.core.$strict>;
1563
+ readonly kind: "unary";
1564
+ readonly since: "1.4";
1565
+ readonly errors: readonly ["INVALID_PARAMS", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
1566
+ };
1567
+ readonly "input.mouse_move": {
1568
+ readonly params: z.ZodObject<{
1569
+ x: z.ZodInt;
1570
+ y: z.ZodInt;
1571
+ }, z.core.$strict>;
1572
+ readonly result: z.ZodObject<{
1573
+ position: z.ZodObject<{
1574
+ x: z.ZodInt;
1575
+ y: z.ZodInt;
1576
+ }, z.core.$strict>;
1577
+ }, z.core.$strict>;
1578
+ readonly kind: "unary";
1579
+ readonly since: "1.4";
1580
+ readonly errors: readonly ["PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
1581
+ };
1582
+ readonly "input.mouse_click": {
1583
+ readonly params: z.ZodObject<{
1584
+ x: z.ZodOptional<z.ZodInt>;
1585
+ y: z.ZodOptional<z.ZodInt>;
1586
+ button: z.ZodDefault<z.ZodEnum<{
1587
+ left: "left";
1588
+ right: "right";
1589
+ middle: "middle";
1590
+ }>>;
1591
+ double: z.ZodDefault<z.ZodBoolean>;
1592
+ }, z.core.$strict>;
1593
+ readonly result: z.ZodObject<{
1594
+ position: z.ZodObject<{
1595
+ x: z.ZodInt;
1596
+ y: z.ZodInt;
1597
+ }, z.core.$strict>;
1598
+ button: z.ZodEnum<{
1599
+ left: "left";
1600
+ right: "right";
1601
+ middle: "middle";
1602
+ }>;
1603
+ double: z.ZodBoolean;
1604
+ }, z.core.$strict>;
1605
+ readonly kind: "unary";
1606
+ readonly since: "1.4";
1607
+ readonly errors: readonly ["INVALID_PARAMS", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
1608
+ };
1609
+ readonly "power.status": {
1610
+ readonly params: z.ZodObject<{}, z.core.$strict>;
1611
+ readonly result: z.ZodObject<{
1612
+ has_battery: z.ZodBoolean;
1613
+ percent: z.ZodNullable<z.ZodNumber>;
1614
+ charging: z.ZodNullable<z.ZodBoolean>;
1615
+ plugged_in: z.ZodNullable<z.ZodBoolean>;
1616
+ minutes_left: z.ZodNullable<z.ZodInt>;
1617
+ awake_until_ms: z.ZodNullable<z.ZodInt>;
1618
+ }, z.core.$strict>;
1619
+ readonly kind: "unary";
1620
+ readonly since: "1.4";
1621
+ readonly errors: readonly ["INTERNAL"];
1622
+ };
1623
+ readonly "power.prevent_sleep": {
1624
+ readonly params: z.ZodObject<{
1625
+ seconds: z.ZodInt;
1626
+ reason: z.ZodDefault<z.ZodString>;
1627
+ }, z.core.$strict>;
1628
+ readonly result: z.ZodObject<{
1629
+ awake_until_ms: z.ZodNullable<z.ZodInt>;
1630
+ }, z.core.$strict>;
1631
+ readonly kind: "unary";
1632
+ readonly since: "1.4";
1633
+ readonly errors: readonly ["PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
1634
+ };
1635
+ readonly "resources.snapshot": {
1636
+ readonly params: z.ZodObject<{}, z.core.$strict>;
1637
+ readonly result: z.ZodObject<{
1638
+ cpu: z.ZodObject<{
1639
+ percent: z.ZodNumber;
1640
+ cores: z.ZodInt;
1641
+ load: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
1642
+ }, z.core.$strict>;
1643
+ memory: z.ZodObject<{
1644
+ total_bytes: z.ZodInt;
1645
+ used_bytes: z.ZodInt;
1646
+ available_bytes: z.ZodInt;
1647
+ }, z.core.$strict>;
1648
+ swap: z.ZodObject<{
1649
+ total_bytes: z.ZodInt;
1650
+ used_bytes: z.ZodInt;
1651
+ }, z.core.$strict>;
1652
+ disks: z.ZodArray<z.ZodObject<{
1653
+ mount: z.ZodString;
1654
+ fs: z.ZodString;
1655
+ size_bytes: z.ZodInt;
1656
+ used_bytes: z.ZodInt;
1657
+ available_bytes: z.ZodInt;
1658
+ }, z.core.$strict>>;
1659
+ uptime_seconds: z.ZodInt;
1660
+ }, z.core.$strict>;
1661
+ readonly kind: "unary";
1662
+ readonly since: "1.4";
1663
+ readonly errors: readonly ["INTERNAL"];
1664
+ };
1665
+ readonly "coding.history.import_missing": {
1666
+ readonly params: z.ZodObject<{}, z.core.$strict>;
1667
+ readonly result: z.ZodObject<{
1668
+ state: z.ZodEnum<{
1669
+ done: "done";
1670
+ blocked: "blocked";
1671
+ cancelled: "cancelled";
1672
+ }>;
1673
+ blocked: z.ZodNullable<z.ZodEnum<{
1674
+ signed_out: "signed_out";
1675
+ offline: "offline";
1676
+ organization_required: "organization_required";
1677
+ claude_unavailable: "claude_unavailable";
1678
+ cloud_list_unavailable: "cloud_list_unavailable";
1679
+ history_too_large: "history_too_large";
1680
+ }>>;
1681
+ run: z.ZodObject<{
1682
+ local_sessions: z.ZodInt;
1683
+ in_cloud: z.ZodInt;
1684
+ missing: z.ZodInt;
1685
+ behind: z.ZodInt;
1686
+ too_large: z.ZodInt;
1687
+ imported: z.ZodInt;
1688
+ changed: z.ZodInt;
1689
+ failed: z.ZodInt;
1690
+ failures: z.ZodArray<z.ZodObject<{
1691
+ session_id: z.ZodString;
1692
+ reason: z.ZodString;
1693
+ }, z.core.$strict>>;
1694
+ remaining: z.ZodInt;
1695
+ summary: z.ZodString;
1696
+ }, z.core.$strict>;
1697
+ elapsed_ms: z.ZodInt;
1698
+ }, z.core.$strict>;
1699
+ readonly kind: "unary";
1700
+ readonly since: "1.5";
1701
+ readonly errors: readonly ["RESOURCE_BUSY", "RESOURCE_GONE", "CANCELLED", "INTERNAL"];
1702
+ };
1116
1703
  };
1117
1704
  type OpName = keyof typeof OPS;
1118
1705
  type OpParams<N extends OpName> = z.input<(typeof OPS)[N]["params"]>;
@@ -1189,6 +1776,17 @@ declare const EVENTS: {
1189
1776
  }, z.core.$strict>>;
1190
1777
  }, z.core.$strict>;
1191
1778
  }, z.core.$strict>;
1779
+ readonly "coding.history.progress": z.ZodObject<{
1780
+ request_id: z.ZodString;
1781
+ phase: z.ZodEnum<{
1782
+ checking: "checking";
1783
+ importing: "importing";
1784
+ }>;
1785
+ done: z.ZodInt;
1786
+ total: z.ZodInt;
1787
+ imported: z.ZodInt;
1788
+ failed: z.ZodInt;
1789
+ }, z.core.$strict>;
1192
1790
  readonly "relay.device_status": z.ZodObject<{
1193
1791
  online: z.ZodBoolean;
1194
1792
  since_ms: z.ZodNullable<z.ZodInt>;