@ai-matrx/desktop-protocol 0.17.3 → 0.17.5

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/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { O as OpName } from './models-BiquRLLO.cjs';
3
- export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as ClientToCoreMsg, e as ClientType, k as CloseAction, l as CloseCode, m as CloseCodeValue, C as CloseOutcome, n as CloseRule, o as CoreToClientMsg, p as CreditMsg, D as DesktopProtocolError, d as EVENTS, q as EndMsg, E as EndReason, r as ErrorCode, s as ErrorCodeName, t as ErrorData, u as ErrorMsg, v as ErrorReason, w as ErrorReasonName, x as EventMsg, y as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, z as MlInstallPhase, A as MlInstallProgress, f as MlProgress, G as MlRuntimeState, I as MlServiceState, J as MlServiceStatus, K as MlStatusParams, N as MlStatusResult, P as ModelsInstallParams, Q as ModelsInstallResult, R as ModelsProgressEvent, U as ModelsStatusParams, V as ModelsStatusResult, X as ModelsTranscribeParams, M as ModelsTranscribeResult, Y as NAMED_SCHEMAS, Z as NamedSchemaId, c as OPS, _ as OpDescriptor, a as OpParams, b as OpResult, $ as OpSpec, a0 as PING_TEXT, a1 as PONG_TEXT, a2 as ProtocolErrorBody, a3 as RelayMsg, a4 as RequestMsg, a5 as ResponseMsg, a6 as SERVICES, a7 as SUBPROTOCOL, a8 as ServiceId, a9 as ServiceOpName, aa as ServiceOpSpec, ab as ServiceSpec, S as StreamMeta, ac as StreamMsg, ad as TranscriptSegment, T as TranscriptionModelId, ae as TranscriptionModelInfo, W as Welcome, af as closeRule, i as isDesktopProtocolError, ag as isTerminalClose } from './models-BiquRLLO.cjs';
2
+ import { O as OpName } from './models-Bb87iuvw.cjs';
3
+ export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as ClientToCoreMsg, e as ClientType, k as CloseAction, l as CloseCode, m as CloseCodeValue, C as CloseOutcome, n as CloseRule, o as CoreToClientMsg, p as CreditMsg, D as DesktopProtocolError, d as EVENTS, q as EndMsg, E as EndReason, r as ErrorCode, s as ErrorCodeName, t as ErrorData, u as ErrorMsg, v as ErrorReason, w as ErrorReasonName, x as EventMsg, y as EventName, F as FsPatchEditFailure, H as HelloMsg, L as Limits, z as MlInstallPhase, A as MlInstallProgress, f as MlProgress, G as MlRuntimeState, I as MlServiceState, J as MlServiceStatus, K as MlStatusParams, N as MlStatusResult, P as ModelsInstallParams, Q as ModelsInstallResult, R as ModelsProgressEvent, U as ModelsStatusParams, V as ModelsStatusResult, X as ModelsTranscribeParams, M as ModelsTranscribeResult, Y as NAMED_SCHEMAS, Z as NamedSchemaId, c as OPS, _ as OpDescriptor, a as OpParams, b as OpResult, $ as OpSpec, a0 as PING_TEXT, a1 as PONG_TEXT, a2 as ProtocolErrorBody, a3 as RelayMsg, a4 as RequestMsg, a5 as ResponseMsg, a6 as SERVICES, a7 as SUBPROTOCOL, a8 as ServiceId, a9 as ServiceOpName, aa as ServiceOpSpec, ab as ServiceSpec, S as StreamMeta, ac as StreamMsg, ad as TranscriptSegment, T as TranscriptionModelId, ae as TranscriptionModelInfo, W as Welcome, af as closeRule, i as isDesktopProtocolError, ag as isTerminalClose } from './models-Bb87iuvw.cjs';
4
4
  export { BROADCAST_CID, DecodedFrame, FRAME_HEADER_BYTES, FRAME_STRUCT_FORMAT, FRAME_VERSION, FrameChannel, FrameChannelValue, FrameFlag, assertFrameHeader, connectionEndFrame, decodeFrame, encodeFrame, hasFlag, isConnectionEnd, readCid, stampCid } from './frame.cjs';
5
5
 
6
6
  /** @ai-matrx/desktop-protocol — version and primitive schemas. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. */
@@ -20,10 +20,13 @@ declare const PROTOCOL_MAJOR: 1;
20
20
  * `coding` Python service.
21
21
  * 1.6 — the `audio` capability: devices, record a clip to a WAV file, play a file.
22
22
  * 1.7 — a window names its owning application and process (WindowInfo `app`, `pid`).
23
+ * 1.8 — `apps.chats.*` / `apps.projects.*`: a coding app's chats, windows, pins and projects, live.
24
+ * 1.9 — chats placed in windows / held, several filed at once, projects renamed / archived / copied;
25
+ * the list says when it is a saved copy being re-read (`updating`) and when it is not live.
23
26
  */
24
- declare const PROTOCOL_MINOR: 7;
27
+ declare const PROTOCOL_MINOR: 9;
25
28
  /** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
26
- declare const PROTOCOL_VERSION: "1.7";
29
+ declare const PROTOCOL_VERSION: "1.9";
27
30
  /** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
28
31
  declare const u32: z.ZodInt;
29
32
  declare const nonNegInt: z.ZodInt;
@@ -1280,6 +1283,501 @@ declare const AppsOpenResult: z.ZodObject<{
1280
1283
  }, z.core.$strict>;
1281
1284
  type AppsOpenResult = z.output<typeof AppsOpenResult>;
1282
1285
 
1286
+ /**
1287
+ * @ai-matrx/desktop-protocol — cap apps, chats and projects (SPEC §6 `apps`, §6.2): the
1288
+ * conversations a coding app (Claude first; Codex, Cursor, VS Code through the same shape) keeps
1289
+ * on this device, which of the app's windows (profiles) list each one, and the person's own
1290
+ * groupings of them. Schema source: lint-enforced rules in scripts/check-schema-source.mjs.
1291
+ *
1292
+ * A chat is one conversation, keyed by its transcript id, never by one window's listing of it. A
1293
+ * window is one profile of the app. A pin is the app's own (read only, never written); a star and
1294
+ * a project are ours. Added in protocol 1.8.
1295
+ */
1296
+
1297
+ /** A conversation id (Claude: the transcript's cliSessionId). */
1298
+ declare const ChatId: z.ZodString;
1299
+ type ChatId = z.output<typeof ChatId>;
1300
+ /** A window (profile) key, e.g. "main", "emily"; "holder" is our vault, not a window. */
1301
+ declare const ChatPlace: z.ZodString;
1302
+ type ChatPlace = z.output<typeof ChatPlace>;
1303
+ /** A project id (a slug made from its first name). */
1304
+ declare const ChatProjectId: z.ZodString;
1305
+ type ChatProjectId = z.output<typeof ChatProjectId>;
1306
+ declare const ChatWindow: z.ZodObject<{
1307
+ key: z.ZodString;
1308
+ main: z.ZodBoolean;
1309
+ account: z.ZodNullable<z.ZodString>;
1310
+ }, z.core.$strict>;
1311
+ type ChatWindow = z.output<typeof ChatWindow>;
1312
+ declare const ChatProject: z.ZodObject<{
1313
+ id: z.ZodString;
1314
+ name: z.ZodString;
1315
+ archived: z.ZodBoolean;
1316
+ count: z.ZodInt;
1317
+ }, z.core.$strict>;
1318
+ type ChatProject = z.output<typeof ChatProject>;
1319
+ /** The app's own pin, read from one window's account. */
1320
+ declare const ChatPin: z.ZodObject<{
1321
+ window: z.ZodString;
1322
+ observed_at_ms: z.ZodNullable<z.ZodInt>;
1323
+ }, z.core.$strict>;
1324
+ type ChatPin = z.output<typeof ChatPin>;
1325
+ declare const ChatRunning: z.ZodObject<{
1326
+ window: z.ZodString;
1327
+ how: z.ZodEnum<{
1328
+ process: "process";
1329
+ activity: "activity";
1330
+ }>;
1331
+ }, z.core.$strict>;
1332
+ type ChatRunning = z.output<typeof ChatRunning>;
1333
+ /** A window that holds a listing of the chat but whose sidebar does not show it, and why. */
1334
+ declare const ChatHidden: z.ZodObject<{
1335
+ window: z.ZodString;
1336
+ reason: z.ZodString;
1337
+ }, z.core.$strict>;
1338
+ type ChatHidden = z.output<typeof ChatHidden>;
1339
+ declare const ChatLastUse: z.ZodObject<{
1340
+ at_ms: z.ZodInt;
1341
+ window: z.ZodNullable<z.ZodString>;
1342
+ account: z.ZodNullable<z.ZodString>;
1343
+ how: z.ZodNullable<z.ZodString>;
1344
+ cache_warm: z.ZodBoolean;
1345
+ cache_minutes_left: z.ZodInt;
1346
+ }, z.core.$strict>;
1347
+ type ChatLastUse = z.output<typeof ChatLastUse>;
1348
+ declare const ChatRow: z.ZodObject<{
1349
+ id: z.ZodString;
1350
+ short_id: z.ZodString;
1351
+ record: z.ZodNullable<z.ZodString>;
1352
+ title: z.ZodString;
1353
+ last_active_ms: z.ZodNullable<z.ZodInt>;
1354
+ created_ms: z.ZodNullable<z.ZodInt>;
1355
+ projects: z.ZodArray<z.ZodString>;
1356
+ starred: z.ZodBoolean;
1357
+ pinned_in: z.ZodArray<z.ZodObject<{
1358
+ window: z.ZodString;
1359
+ observed_at_ms: z.ZodNullable<z.ZodInt>;
1360
+ }, z.core.$strict>>;
1361
+ places: z.ZodArray<z.ZodString>;
1362
+ held: z.ZodBoolean;
1363
+ running: z.ZodArray<z.ZodObject<{
1364
+ window: z.ZodString;
1365
+ how: z.ZodEnum<{
1366
+ process: "process";
1367
+ activity: "activity";
1368
+ }>;
1369
+ }, z.core.$strict>>;
1370
+ hidden_in: z.ZodArray<z.ZodObject<{
1371
+ window: z.ZodString;
1372
+ reason: z.ZodString;
1373
+ }, z.core.$strict>>;
1374
+ hidden_from_main: z.ZodBoolean;
1375
+ main_pending: z.ZodBoolean;
1376
+ scheduled: z.ZodNullable<z.ZodString>;
1377
+ new_unfiled: z.ZodBoolean;
1378
+ warnings: z.ZodArray<z.ZodString>;
1379
+ last_use: z.ZodNullable<z.ZodObject<{
1380
+ at_ms: z.ZodInt;
1381
+ window: z.ZodNullable<z.ZodString>;
1382
+ account: z.ZodNullable<z.ZodString>;
1383
+ how: z.ZodNullable<z.ZodString>;
1384
+ cache_warm: z.ZodBoolean;
1385
+ cache_minutes_left: z.ZodInt;
1386
+ }, z.core.$strict>>;
1387
+ }, z.core.$strict>;
1388
+ type ChatRow = z.output<typeof ChatRow>;
1389
+ declare const AppsChatsListParams: z.ZodObject<{
1390
+ app_key: z.ZodString;
1391
+ ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
1392
+ }, z.core.$strict>;
1393
+ type AppsChatsListParams = z.output<typeof AppsChatsListParams>;
1394
+ declare const AppsChatsListResult: z.ZodObject<{
1395
+ app_key: z.ZodString;
1396
+ version: z.ZodInt;
1397
+ windows: z.ZodArray<z.ZodObject<{
1398
+ key: z.ZodString;
1399
+ main: z.ZodBoolean;
1400
+ account: z.ZodNullable<z.ZodString>;
1401
+ }, z.core.$strict>>;
1402
+ projects: z.ZodArray<z.ZodObject<{
1403
+ id: z.ZodString;
1404
+ name: z.ZodString;
1405
+ archived: z.ZodBoolean;
1406
+ count: z.ZodInt;
1407
+ }, z.core.$strict>>;
1408
+ chats: z.ZodArray<z.ZodObject<{
1409
+ id: z.ZodString;
1410
+ short_id: z.ZodString;
1411
+ record: z.ZodNullable<z.ZodString>;
1412
+ title: z.ZodString;
1413
+ last_active_ms: z.ZodNullable<z.ZodInt>;
1414
+ created_ms: z.ZodNullable<z.ZodInt>;
1415
+ projects: z.ZodArray<z.ZodString>;
1416
+ starred: z.ZodBoolean;
1417
+ pinned_in: z.ZodArray<z.ZodObject<{
1418
+ window: z.ZodString;
1419
+ observed_at_ms: z.ZodNullable<z.ZodInt>;
1420
+ }, z.core.$strict>>;
1421
+ places: z.ZodArray<z.ZodString>;
1422
+ held: z.ZodBoolean;
1423
+ running: z.ZodArray<z.ZodObject<{
1424
+ window: z.ZodString;
1425
+ how: z.ZodEnum<{
1426
+ process: "process";
1427
+ activity: "activity";
1428
+ }>;
1429
+ }, z.core.$strict>>;
1430
+ hidden_in: z.ZodArray<z.ZodObject<{
1431
+ window: z.ZodString;
1432
+ reason: z.ZodString;
1433
+ }, z.core.$strict>>;
1434
+ hidden_from_main: z.ZodBoolean;
1435
+ main_pending: z.ZodBoolean;
1436
+ scheduled: z.ZodNullable<z.ZodString>;
1437
+ new_unfiled: z.ZodBoolean;
1438
+ warnings: z.ZodArray<z.ZodString>;
1439
+ last_use: z.ZodNullable<z.ZodObject<{
1440
+ at_ms: z.ZodInt;
1441
+ window: z.ZodNullable<z.ZodString>;
1442
+ account: z.ZodNullable<z.ZodString>;
1443
+ how: z.ZodNullable<z.ZodString>;
1444
+ cache_warm: z.ZodBoolean;
1445
+ cache_minutes_left: z.ZodInt;
1446
+ }, z.core.$strict>>;
1447
+ }, z.core.$strict>>;
1448
+ new_window_ms: z.ZodInt;
1449
+ updating: z.ZodOptional<z.ZodBoolean>;
1450
+ live: z.ZodOptional<z.ZodBoolean>;
1451
+ }, z.core.$strict>;
1452
+ type AppsChatsListResult = z.output<typeof AppsChatsListResult>;
1453
+ declare const AppsChatsWatchParams: z.ZodObject<{
1454
+ app_key: z.ZodString;
1455
+ }, z.core.$strict>;
1456
+ type AppsChatsWatchParams = z.output<typeof AppsChatsWatchParams>;
1457
+ declare const AppsChatsWatchResult: z.ZodObject<{
1458
+ resource_id: z.ZodString;
1459
+ version: z.ZodInt;
1460
+ }, z.core.$strict>;
1461
+ type AppsChatsWatchResult = z.output<typeof AppsChatsWatchResult>;
1462
+ /** Event to every holder of an `apps.chats.watch`: these chats changed (all: re-read the list). */
1463
+ declare const AppsChatsChangedEvent: z.ZodObject<{
1464
+ app_key: z.ZodString;
1465
+ version: z.ZodInt;
1466
+ ids: z.ZodArray<z.ZodString>;
1467
+ all: z.ZodBoolean;
1468
+ }, z.core.$strict>;
1469
+ type AppsChatsChangedEvent = z.output<typeof AppsChatsChangedEvent>;
1470
+ /** File a chat in a project: `project_id`, or `new_project_name` to make one (exactly one). */
1471
+ declare const AppsProjectsFileParams: z.ZodObject<{
1472
+ app_key: z.ZodString;
1473
+ chat_id: z.ZodString;
1474
+ project_id: z.ZodOptional<z.ZodString>;
1475
+ new_project_name: z.ZodOptional<z.ZodString>;
1476
+ }, z.core.$strict>;
1477
+ type AppsProjectsFileParams = z.output<typeof AppsProjectsFileParams>;
1478
+ declare const AppsProjectsFileResult: z.ZodObject<{
1479
+ chat: z.ZodObject<{
1480
+ id: z.ZodString;
1481
+ short_id: z.ZodString;
1482
+ record: z.ZodNullable<z.ZodString>;
1483
+ title: z.ZodString;
1484
+ last_active_ms: z.ZodNullable<z.ZodInt>;
1485
+ created_ms: z.ZodNullable<z.ZodInt>;
1486
+ projects: z.ZodArray<z.ZodString>;
1487
+ starred: z.ZodBoolean;
1488
+ pinned_in: z.ZodArray<z.ZodObject<{
1489
+ window: z.ZodString;
1490
+ observed_at_ms: z.ZodNullable<z.ZodInt>;
1491
+ }, z.core.$strict>>;
1492
+ places: z.ZodArray<z.ZodString>;
1493
+ held: z.ZodBoolean;
1494
+ running: z.ZodArray<z.ZodObject<{
1495
+ window: z.ZodString;
1496
+ how: z.ZodEnum<{
1497
+ process: "process";
1498
+ activity: "activity";
1499
+ }>;
1500
+ }, z.core.$strict>>;
1501
+ hidden_in: z.ZodArray<z.ZodObject<{
1502
+ window: z.ZodString;
1503
+ reason: z.ZodString;
1504
+ }, z.core.$strict>>;
1505
+ hidden_from_main: z.ZodBoolean;
1506
+ main_pending: z.ZodBoolean;
1507
+ scheduled: z.ZodNullable<z.ZodString>;
1508
+ new_unfiled: z.ZodBoolean;
1509
+ warnings: z.ZodArray<z.ZodString>;
1510
+ last_use: z.ZodNullable<z.ZodObject<{
1511
+ at_ms: z.ZodInt;
1512
+ window: z.ZodNullable<z.ZodString>;
1513
+ account: z.ZodNullable<z.ZodString>;
1514
+ how: z.ZodNullable<z.ZodString>;
1515
+ cache_warm: z.ZodBoolean;
1516
+ cache_minutes_left: z.ZodInt;
1517
+ }, z.core.$strict>>;
1518
+ }, z.core.$strict>;
1519
+ project: z.ZodObject<{
1520
+ id: z.ZodString;
1521
+ name: z.ZodString;
1522
+ archived: z.ZodBoolean;
1523
+ count: z.ZodInt;
1524
+ }, z.core.$strict>;
1525
+ }, z.core.$strict>;
1526
+ type AppsProjectsFileResult = z.output<typeof AppsProjectsFileResult>;
1527
+ declare const AppsProjectsUnfileParams: z.ZodObject<{
1528
+ app_key: z.ZodString;
1529
+ chat_id: z.ZodString;
1530
+ project_id: z.ZodString;
1531
+ }, z.core.$strict>;
1532
+ type AppsProjectsUnfileParams = z.output<typeof AppsProjectsUnfileParams>;
1533
+ declare const AppsProjectsUnfileResult: z.ZodObject<{
1534
+ chat: z.ZodObject<{
1535
+ id: z.ZodString;
1536
+ short_id: z.ZodString;
1537
+ record: z.ZodNullable<z.ZodString>;
1538
+ title: z.ZodString;
1539
+ last_active_ms: z.ZodNullable<z.ZodInt>;
1540
+ created_ms: z.ZodNullable<z.ZodInt>;
1541
+ projects: z.ZodArray<z.ZodString>;
1542
+ starred: z.ZodBoolean;
1543
+ pinned_in: z.ZodArray<z.ZodObject<{
1544
+ window: z.ZodString;
1545
+ observed_at_ms: z.ZodNullable<z.ZodInt>;
1546
+ }, z.core.$strict>>;
1547
+ places: z.ZodArray<z.ZodString>;
1548
+ held: z.ZodBoolean;
1549
+ running: z.ZodArray<z.ZodObject<{
1550
+ window: z.ZodString;
1551
+ how: z.ZodEnum<{
1552
+ process: "process";
1553
+ activity: "activity";
1554
+ }>;
1555
+ }, z.core.$strict>>;
1556
+ hidden_in: z.ZodArray<z.ZodObject<{
1557
+ window: z.ZodString;
1558
+ reason: z.ZodString;
1559
+ }, z.core.$strict>>;
1560
+ hidden_from_main: z.ZodBoolean;
1561
+ main_pending: z.ZodBoolean;
1562
+ scheduled: z.ZodNullable<z.ZodString>;
1563
+ new_unfiled: z.ZodBoolean;
1564
+ warnings: z.ZodArray<z.ZodString>;
1565
+ last_use: z.ZodNullable<z.ZodObject<{
1566
+ at_ms: z.ZodInt;
1567
+ window: z.ZodNullable<z.ZodString>;
1568
+ account: z.ZodNullable<z.ZodString>;
1569
+ how: z.ZodNullable<z.ZodString>;
1570
+ cache_warm: z.ZodBoolean;
1571
+ cache_minutes_left: z.ZodInt;
1572
+ }, z.core.$strict>>;
1573
+ }, z.core.$strict>;
1574
+ }, z.core.$strict>;
1575
+ type AppsProjectsUnfileResult = z.output<typeof AppsProjectsUnfileResult>;
1576
+ declare const AppsChatsStarParams: z.ZodObject<{
1577
+ app_key: z.ZodString;
1578
+ chat_id: z.ZodString;
1579
+ starred: z.ZodBoolean;
1580
+ }, z.core.$strict>;
1581
+ type AppsChatsStarParams = z.output<typeof AppsChatsStarParams>;
1582
+ declare const AppsChatsStarResult: z.ZodObject<{
1583
+ chat: z.ZodObject<{
1584
+ id: z.ZodString;
1585
+ short_id: z.ZodString;
1586
+ record: z.ZodNullable<z.ZodString>;
1587
+ title: z.ZodString;
1588
+ last_active_ms: z.ZodNullable<z.ZodInt>;
1589
+ created_ms: z.ZodNullable<z.ZodInt>;
1590
+ projects: z.ZodArray<z.ZodString>;
1591
+ starred: z.ZodBoolean;
1592
+ pinned_in: z.ZodArray<z.ZodObject<{
1593
+ window: z.ZodString;
1594
+ observed_at_ms: z.ZodNullable<z.ZodInt>;
1595
+ }, z.core.$strict>>;
1596
+ places: z.ZodArray<z.ZodString>;
1597
+ held: z.ZodBoolean;
1598
+ running: z.ZodArray<z.ZodObject<{
1599
+ window: z.ZodString;
1600
+ how: z.ZodEnum<{
1601
+ process: "process";
1602
+ activity: "activity";
1603
+ }>;
1604
+ }, z.core.$strict>>;
1605
+ hidden_in: z.ZodArray<z.ZodObject<{
1606
+ window: z.ZodString;
1607
+ reason: z.ZodString;
1608
+ }, z.core.$strict>>;
1609
+ hidden_from_main: z.ZodBoolean;
1610
+ main_pending: z.ZodBoolean;
1611
+ scheduled: z.ZodNullable<z.ZodString>;
1612
+ new_unfiled: z.ZodBoolean;
1613
+ warnings: z.ZodArray<z.ZodString>;
1614
+ last_use: z.ZodNullable<z.ZodObject<{
1615
+ at_ms: z.ZodInt;
1616
+ window: z.ZodNullable<z.ZodString>;
1617
+ account: z.ZodNullable<z.ZodString>;
1618
+ how: z.ZodNullable<z.ZodString>;
1619
+ cache_warm: z.ZodBoolean;
1620
+ cache_minutes_left: z.ZodInt;
1621
+ }, z.core.$strict>>;
1622
+ }, z.core.$strict>;
1623
+ }, z.core.$strict>;
1624
+ type AppsChatsStarResult = z.output<typeof AppsChatsStarResult>;
1625
+ /** 1.9: the index's own state, to every watcher: live (changes arrive) or not, and why. */
1626
+ declare const AppsChatsWatchStateEvent: z.ZodObject<{
1627
+ app_key: z.ZodString;
1628
+ live: z.ZodBoolean;
1629
+ updating: z.ZodBoolean;
1630
+ reason: z.ZodNullable<z.ZodString>;
1631
+ }, z.core.$strict>;
1632
+ type AppsChatsWatchStateEvent = z.output<typeof AppsChatsWatchStateEvent>;
1633
+ /** 1.9: put a chat in a window, take it off one (never its last place), or keep it in the holder. */
1634
+ declare const AppsChatsPlaceParams: z.ZodObject<{
1635
+ app_key: z.ZodString;
1636
+ chat_id: z.ZodString;
1637
+ action: z.ZodEnum<{
1638
+ place: "place";
1639
+ take_off: "take_off";
1640
+ hold: "hold";
1641
+ }>;
1642
+ window: z.ZodOptional<z.ZodString>;
1643
+ stop_if_open: z.ZodDefault<z.ZodBoolean>;
1644
+ }, z.core.$strict>;
1645
+ type AppsChatsPlaceParams = z.output<typeof AppsChatsPlaceParams>;
1646
+ declare const AppsChatsPlaceResult: z.ZodObject<{
1647
+ chat: z.ZodObject<{
1648
+ id: z.ZodString;
1649
+ short_id: z.ZodString;
1650
+ record: z.ZodNullable<z.ZodString>;
1651
+ title: z.ZodString;
1652
+ last_active_ms: z.ZodNullable<z.ZodInt>;
1653
+ created_ms: z.ZodNullable<z.ZodInt>;
1654
+ projects: z.ZodArray<z.ZodString>;
1655
+ starred: z.ZodBoolean;
1656
+ pinned_in: z.ZodArray<z.ZodObject<{
1657
+ window: z.ZodString;
1658
+ observed_at_ms: z.ZodNullable<z.ZodInt>;
1659
+ }, z.core.$strict>>;
1660
+ places: z.ZodArray<z.ZodString>;
1661
+ held: z.ZodBoolean;
1662
+ running: z.ZodArray<z.ZodObject<{
1663
+ window: z.ZodString;
1664
+ how: z.ZodEnum<{
1665
+ process: "process";
1666
+ activity: "activity";
1667
+ }>;
1668
+ }, z.core.$strict>>;
1669
+ hidden_in: z.ZodArray<z.ZodObject<{
1670
+ window: z.ZodString;
1671
+ reason: z.ZodString;
1672
+ }, z.core.$strict>>;
1673
+ hidden_from_main: z.ZodBoolean;
1674
+ main_pending: z.ZodBoolean;
1675
+ scheduled: z.ZodNullable<z.ZodString>;
1676
+ new_unfiled: z.ZodBoolean;
1677
+ warnings: z.ZodArray<z.ZodString>;
1678
+ last_use: z.ZodNullable<z.ZodObject<{
1679
+ at_ms: z.ZodInt;
1680
+ window: z.ZodNullable<z.ZodString>;
1681
+ account: z.ZodNullable<z.ZodString>;
1682
+ how: z.ZodNullable<z.ZodString>;
1683
+ cache_warm: z.ZodBoolean;
1684
+ cache_minutes_left: z.ZodInt;
1685
+ }, z.core.$strict>>;
1686
+ }, z.core.$strict>;
1687
+ message: z.ZodString;
1688
+ }, z.core.$strict>;
1689
+ type AppsChatsPlaceResult = z.output<typeof AppsChatsPlaceResult>;
1690
+ /** 1.9: several chats into one project (or a new one by name). */
1691
+ declare const AppsProjectsFileManyParams: z.ZodObject<{
1692
+ app_key: z.ZodString;
1693
+ chat_ids: z.ZodArray<z.ZodString>;
1694
+ project_id: z.ZodOptional<z.ZodString>;
1695
+ new_project_name: z.ZodOptional<z.ZodString>;
1696
+ }, z.core.$strict>;
1697
+ type AppsProjectsFileManyParams = z.output<typeof AppsProjectsFileManyParams>;
1698
+ declare const AppsProjectsFileManyResult: z.ZodObject<{
1699
+ chats: z.ZodArray<z.ZodObject<{
1700
+ id: z.ZodString;
1701
+ short_id: z.ZodString;
1702
+ record: z.ZodNullable<z.ZodString>;
1703
+ title: z.ZodString;
1704
+ last_active_ms: z.ZodNullable<z.ZodInt>;
1705
+ created_ms: z.ZodNullable<z.ZodInt>;
1706
+ projects: z.ZodArray<z.ZodString>;
1707
+ starred: z.ZodBoolean;
1708
+ pinned_in: z.ZodArray<z.ZodObject<{
1709
+ window: z.ZodString;
1710
+ observed_at_ms: z.ZodNullable<z.ZodInt>;
1711
+ }, z.core.$strict>>;
1712
+ places: z.ZodArray<z.ZodString>;
1713
+ held: z.ZodBoolean;
1714
+ running: z.ZodArray<z.ZodObject<{
1715
+ window: z.ZodString;
1716
+ how: z.ZodEnum<{
1717
+ process: "process";
1718
+ activity: "activity";
1719
+ }>;
1720
+ }, z.core.$strict>>;
1721
+ hidden_in: z.ZodArray<z.ZodObject<{
1722
+ window: z.ZodString;
1723
+ reason: z.ZodString;
1724
+ }, z.core.$strict>>;
1725
+ hidden_from_main: z.ZodBoolean;
1726
+ main_pending: z.ZodBoolean;
1727
+ scheduled: z.ZodNullable<z.ZodString>;
1728
+ new_unfiled: z.ZodBoolean;
1729
+ warnings: z.ZodArray<z.ZodString>;
1730
+ last_use: z.ZodNullable<z.ZodObject<{
1731
+ at_ms: z.ZodInt;
1732
+ window: z.ZodNullable<z.ZodString>;
1733
+ account: z.ZodNullable<z.ZodString>;
1734
+ how: z.ZodNullable<z.ZodString>;
1735
+ cache_warm: z.ZodBoolean;
1736
+ cache_minutes_left: z.ZodInt;
1737
+ }, z.core.$strict>>;
1738
+ }, z.core.$strict>>;
1739
+ project: z.ZodObject<{
1740
+ id: z.ZodString;
1741
+ name: z.ZodString;
1742
+ archived: z.ZodBoolean;
1743
+ count: z.ZodInt;
1744
+ }, z.core.$strict>;
1745
+ }, z.core.$strict>;
1746
+ type AppsProjectsFileManyResult = z.output<typeof AppsProjectsFileManyResult>;
1747
+ /** 1.9: rename, archive or restore a project. */
1748
+ declare const AppsProjectsUpdateParams: z.ZodObject<{
1749
+ app_key: z.ZodString;
1750
+ project_id: z.ZodString;
1751
+ name: z.ZodOptional<z.ZodString>;
1752
+ archived: z.ZodOptional<z.ZodBoolean>;
1753
+ }, z.core.$strict>;
1754
+ type AppsProjectsUpdateParams = z.output<typeof AppsProjectsUpdateParams>;
1755
+ declare const AppsProjectsUpdateResult: z.ZodObject<{
1756
+ project: z.ZodObject<{
1757
+ id: z.ZodString;
1758
+ name: z.ZodString;
1759
+ archived: z.ZodBoolean;
1760
+ count: z.ZodInt;
1761
+ }, z.core.$strict>;
1762
+ }, z.core.$strict>;
1763
+ type AppsProjectsUpdateResult = z.output<typeof AppsProjectsUpdateResult>;
1764
+ /** 1.9: save a copy of every chat in a project as another project (made if new). */
1765
+ declare const AppsProjectsCopyParams: z.ZodObject<{
1766
+ app_key: z.ZodString;
1767
+ project_id: z.ZodString;
1768
+ new_project_name: z.ZodString;
1769
+ }, z.core.$strict>;
1770
+ type AppsProjectsCopyParams = z.output<typeof AppsProjectsCopyParams>;
1771
+ declare const AppsProjectsCopyResult: z.ZodObject<{
1772
+ project: z.ZodObject<{
1773
+ id: z.ZodString;
1774
+ name: z.ZodString;
1775
+ archived: z.ZodBoolean;
1776
+ count: z.ZodInt;
1777
+ }, z.core.$strict>;
1778
+ }, z.core.$strict>;
1779
+ type AppsProjectsCopyResult = z.output<typeof AppsProjectsCopyResult>;
1780
+
1283
1781
  /**
1284
1782
  * @ai-matrx/desktop-protocol — the internal envelope between Matrx 2's core and its supervised
1285
1783
  * Python services (SPEC §3.10). Schema source: lint-enforced rules in scripts/check-schema-source.mjs.
@@ -1558,9 +2056,9 @@ type ServiceWelcome = z.output<typeof ServiceWelcome>;
1558
2056
  /** Tool names are the platform registry's (`tool.definition.name`): `fs_read`, `shell_execute`… */
1559
2057
  declare const ToolName: z.ZodString;
1560
2058
  declare const ToolLevel: z.ZodEnum<{
2059
+ chat: "chat";
1561
2060
  programmatic: "programmatic";
1562
2061
  protocol: "protocol";
1563
- chat: "chat";
1564
2062
  }>;
1565
2063
  type ToolLevel = z.output<typeof ToolLevel>;
1566
2064
  declare const ToolOutcome: z.ZodEnum<{
@@ -1590,9 +2088,9 @@ type ToolTransport = z.output<typeof ToolTransport>;
1590
2088
  declare const ToolLevelResult: z.ZodObject<{
1591
2089
  tool: z.ZodString;
1592
2090
  level: z.ZodEnum<{
2091
+ chat: "chat";
1593
2092
  programmatic: "programmatic";
1594
2093
  protocol: "protocol";
1595
- chat: "chat";
1596
2094
  }>;
1597
2095
  platform: z.ZodEnum<{
1598
2096
  darwin: "darwin";
@@ -1623,9 +2121,9 @@ declare const ToolResultsFile: z.ZodObject<{
1623
2121
  results: z.ZodArray<z.ZodObject<{
1624
2122
  tool: z.ZodString;
1625
2123
  level: z.ZodEnum<{
2124
+ chat: "chat";
1626
2125
  programmatic: "programmatic";
1627
2126
  protocol: "protocol";
1628
- chat: "chat";
1629
2127
  }>;
1630
2128
  platform: z.ZodEnum<{
1631
2129
  darwin: "darwin";
@@ -2685,6 +3183,10 @@ declare const FIELDS_SINCE: {
2685
3183
  readonly app: "1.7";
2686
3184
  readonly pid: "1.7";
2687
3185
  };
3186
+ readonly AppsChatsListResult: {
3187
+ readonly updating: "1.9";
3188
+ readonly live: "1.9";
3189
+ };
2688
3190
  };
2689
3191
  type FieldsSincePath = keyof typeof FIELDS_SINCE;
2690
3192
  /**
@@ -2739,7 +3241,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
2739
3241
  declare const VERSIONED_RESULT_OPS: readonly OpName[];
2740
3242
 
2741
3243
  /** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
2742
- declare const CONTRACT_SHA256: "5525674072a767340a8bd75a4e4b98c588577a866b4d381edeb377401729e14d";
3244
+ declare const CONTRACT_SHA256: "8a36e6b958c871853f0a9520e49c92dd30aa05442765c5a1f04c4caa71a35229";
2743
3245
 
2744
3246
  /**
2745
3247
  * The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
@@ -2866,4 +3368,4 @@ declare function buildToolStatus(files: readonly unknown[], opts: {
2866
3368
  /** The committed text form. Columns: per platform, the three levels (P = programmatic, R = protocol, C = chat). */
2867
3369
  declare function renderToolStatusMarkdown(status: ToolStatus): string;
2868
3370
 
2869
- export { AbsPath, AppFeatureStatus, AppInfo, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppsListParams, AppsListResult, AppsOpenParams, AppsOpenResult, AppsProfilesListParams, AppsProfilesListResult, AppsProfilesRemoveParams, AppsProfilesRemoveResult, AppsProfilesSaveParams, AppsProfilesSaveResult, AudioDevice, AudioDevicesParams, AudioDevicesResult, AudioPlayParams, AudioPlayResult, AudioRecordParams, AudioRecordResult, CONTRACT_SHA256, type CatalogTool, type CellState, ClipboardReadParams, ClipboardReadResult, ClipboardWriteParams, ClipboardWriteResult, CodingHistoryBlocked, CodingHistoryFailure, CodingHistoryImportMissingParams, CodingHistoryImportMissingResult, CodingHistoryProgressEvent, CodingHistoryRun, CodingHistoryStep, CodingImportNextParams, CodingPlanMissingParams, CodingServiceCredentials, CodingServiceProgress, ContractHash, CoreToServiceMsg, DEFAULT_MAX_FRAME_PAYLOAD_BYTES, DEFAULT_MAX_MESSAGE_BYTES, DEFAULT_WINDOW_BYTES, DeviceId, EXCLUDED_TOOLS, ExecCwdEvent, ExecExitedEvent, ExecJobId, ExecJobInfo, ExecJobListParams, ExecJobListResult, ExecJobOutputParams, ExecJobOutputResult, ExecJobStartParams, ExecJobStartResult, ExecJobStopParams, ExecJobStopResult, ExecListParams, ExecListResult, ExecPtyKillParams, ExecPtyKillResult, ExecPtyResizeParams, ExecPtyResizeResult, ExecPtySignalParams, ExecPtySignalResult, ExecPtyStartParams, ExecPtyStartResult, ExecPtyWriteParams, ExecPtyWriteResult, ExecRunParams, ExecRunResult, ExecTitleEvent, FIELDS_SINCE, type FieldsSincePath, FrameHeader, FsChange, FsChangedEvent, FsDeleteParams, FsDeleteResult, FsEncoding, FsEntry, FsKind, FsListParams, FsListResult, FsMkdirParams, FsMkdirResult, FsMoveParams, FsMoveResult, FsPatchEditApplied, FsPatchParams, FsPatchResult, FsReadParams, FsReadResult, FsReadStreamParams, FsReadStreamResult, FsSearchContentParams, FsSearchContentResult, FsSearchPathsParams, FsSearchPathsResult, FsStatParams, FsStatResult, FsWatchEventsParams, FsWatchEventsResult, FsWatchId, FsWatchParams, FsWatchResult, FsWatchStartParams, FsWatchStartResult, FsWatchStopParams, FsWatchStopResult, FsWriteParams, FsWriteResult, InputHotkeyParams, InputHotkeyResult, InputKey, InputMouseClickParams, InputMouseClickResult, InputMouseMoveParams, InputMouseMoveResult, InputPoint, InputTypeTextParams, InputTypeTextResult, LEGACY_ACTIONS, LEGACY_DISPATCHERS, type LegacyDisposition, NULL_SINCE, OpName, OsPermissionName, PROTOCOL_MAJOR, PROTOCOL_MINOR, PROTOCOL_VERSION, PowerPreventSleepParams, PowerPreventSleepResult, PowerStatusParams, PowerStatusResult, ProcInfo, ProcKillParams, ProcKillResult, ProcListParams, ProcListResult, ProcPort, ProcPortsParams, ProcPortsResult, ProcSort, ProtocolVersion, PtyInfo, REASONS_SINCE, RELAY_CALL_HELLO_ID, RELAY_CALL_REQUEST_ID, RELAY_CALL_VERSION_HEADER, RelayAuthExpiringEvent, RelayCallEnvelope, RelayCallHello, RelayCallRequest, RelayCallResponse, RelayDeviceStatusEvent, RelayHopConnectionEnd, RelayHopEnvelopeHeader, RelayStatusResponse, RequestId, ResourceId, ResourceInfo, ResourcesDisk, ResourcesSnapshotParams, ResourcesSnapshotResult, SERVICE_MAX_FRAME_BYTES, ScreenCaptureParams, ScreenCaptureResult, ScreenDisplay, ScreenListParams, ScreenListResult, ServiceCancel, ServiceErrorMsg, ServiceHello, ServiceName, ServicePing, ServicePong, ServiceProgressMsg, ServiceRequest, ServiceResponse, ServiceShutdown, ServiceToCoreMsg, ServiceToken, ServiceWelcome, SessionAttachParams, SessionAttachResult, SessionControlChangedEvent, SessionDetachParams, SessionDetachResult, SessionListParams, SessionListResult, SessionReleaseParams, SessionReleaseResult, Signal, type StatusCell, type StatusEvidence, type StatusRow, SysinfoGetParams, SysinfoGetResult, SystemNotifyParams, SystemNotifyResult, SystemOpenPathParams, SystemOpenPathResult, SystemOpenUrlParams, SystemOpenUrlResult, TOOL_CATALOG, TOOL_GROUPS, TOOL_LEVELS, TOOL_PLATFORMS, type ToolGroup, type ToolGroupId, ToolLevel, ToolLevelResult, ToolName, ToolOutcome, type ToolPath, ToolPlatform, ToolResultsFile, type ToolState, type ToolStatus, ToolTransport, VERSIONED_RESULT_OPS, WindowFocusParams, WindowFocusResult, WindowInfo, WindowListParams, WindowListResult, WindowMinimizeParams, WindowMinimizeResult, WindowMoveParams, WindowMoveResult, announcedVersion, buildToolStatus, builtOps, compareVersions, epochMs, forPeer, knows, negotiate, nonNegInt, renderToolStatusMarkdown, statusForPeer, u32, versionSubprotocol };
3371
+ export { AbsPath, AppFeatureStatus, AppInfo, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppsChatsChangedEvent, AppsChatsListParams, AppsChatsListResult, AppsChatsPlaceParams, AppsChatsPlaceResult, AppsChatsStarParams, AppsChatsStarResult, AppsChatsWatchParams, AppsChatsWatchResult, AppsChatsWatchStateEvent, AppsListParams, AppsListResult, AppsOpenParams, AppsOpenResult, AppsProfilesListParams, AppsProfilesListResult, AppsProfilesRemoveParams, AppsProfilesRemoveResult, AppsProfilesSaveParams, AppsProfilesSaveResult, AppsProjectsCopyParams, AppsProjectsCopyResult, AppsProjectsFileManyParams, AppsProjectsFileManyResult, AppsProjectsFileParams, AppsProjectsFileResult, AppsProjectsUnfileParams, AppsProjectsUnfileResult, AppsProjectsUpdateParams, AppsProjectsUpdateResult, AudioDevice, AudioDevicesParams, AudioDevicesResult, AudioPlayParams, AudioPlayResult, AudioRecordParams, AudioRecordResult, CONTRACT_SHA256, type CatalogTool, type CellState, ChatHidden, ChatId, ChatLastUse, ChatPin, ChatPlace, ChatProject, ChatProjectId, ChatRow, ChatRunning, ChatWindow, ClipboardReadParams, ClipboardReadResult, ClipboardWriteParams, ClipboardWriteResult, CodingHistoryBlocked, CodingHistoryFailure, CodingHistoryImportMissingParams, CodingHistoryImportMissingResult, CodingHistoryProgressEvent, CodingHistoryRun, CodingHistoryStep, CodingImportNextParams, CodingPlanMissingParams, CodingServiceCredentials, CodingServiceProgress, ContractHash, CoreToServiceMsg, DEFAULT_MAX_FRAME_PAYLOAD_BYTES, DEFAULT_MAX_MESSAGE_BYTES, DEFAULT_WINDOW_BYTES, DeviceId, EXCLUDED_TOOLS, ExecCwdEvent, ExecExitedEvent, ExecJobId, ExecJobInfo, ExecJobListParams, ExecJobListResult, ExecJobOutputParams, ExecJobOutputResult, ExecJobStartParams, ExecJobStartResult, ExecJobStopParams, ExecJobStopResult, ExecListParams, ExecListResult, ExecPtyKillParams, ExecPtyKillResult, ExecPtyResizeParams, ExecPtyResizeResult, ExecPtySignalParams, ExecPtySignalResult, ExecPtyStartParams, ExecPtyStartResult, ExecPtyWriteParams, ExecPtyWriteResult, ExecRunParams, ExecRunResult, ExecTitleEvent, FIELDS_SINCE, type FieldsSincePath, FrameHeader, FsChange, FsChangedEvent, FsDeleteParams, FsDeleteResult, FsEncoding, FsEntry, FsKind, FsListParams, FsListResult, FsMkdirParams, FsMkdirResult, FsMoveParams, FsMoveResult, FsPatchEditApplied, FsPatchParams, FsPatchResult, FsReadParams, FsReadResult, FsReadStreamParams, FsReadStreamResult, FsSearchContentParams, FsSearchContentResult, FsSearchPathsParams, FsSearchPathsResult, FsStatParams, FsStatResult, FsWatchEventsParams, FsWatchEventsResult, FsWatchId, FsWatchParams, FsWatchResult, FsWatchStartParams, FsWatchStartResult, FsWatchStopParams, FsWatchStopResult, FsWriteParams, FsWriteResult, InputHotkeyParams, InputHotkeyResult, InputKey, InputMouseClickParams, InputMouseClickResult, InputMouseMoveParams, InputMouseMoveResult, InputPoint, InputTypeTextParams, InputTypeTextResult, LEGACY_ACTIONS, LEGACY_DISPATCHERS, type LegacyDisposition, NULL_SINCE, OpName, OsPermissionName, PROTOCOL_MAJOR, PROTOCOL_MINOR, PROTOCOL_VERSION, PowerPreventSleepParams, PowerPreventSleepResult, PowerStatusParams, PowerStatusResult, ProcInfo, ProcKillParams, ProcKillResult, ProcListParams, ProcListResult, ProcPort, ProcPortsParams, ProcPortsResult, ProcSort, ProtocolVersion, PtyInfo, REASONS_SINCE, RELAY_CALL_HELLO_ID, RELAY_CALL_REQUEST_ID, RELAY_CALL_VERSION_HEADER, RelayAuthExpiringEvent, RelayCallEnvelope, RelayCallHello, RelayCallRequest, RelayCallResponse, RelayDeviceStatusEvent, RelayHopConnectionEnd, RelayHopEnvelopeHeader, RelayStatusResponse, RequestId, ResourceId, ResourceInfo, ResourcesDisk, ResourcesSnapshotParams, ResourcesSnapshotResult, SERVICE_MAX_FRAME_BYTES, ScreenCaptureParams, ScreenCaptureResult, ScreenDisplay, ScreenListParams, ScreenListResult, ServiceCancel, ServiceErrorMsg, ServiceHello, ServiceName, ServicePing, ServicePong, ServiceProgressMsg, ServiceRequest, ServiceResponse, ServiceShutdown, ServiceToCoreMsg, ServiceToken, ServiceWelcome, SessionAttachParams, SessionAttachResult, SessionControlChangedEvent, SessionDetachParams, SessionDetachResult, SessionListParams, SessionListResult, SessionReleaseParams, SessionReleaseResult, Signal, type StatusCell, type StatusEvidence, type StatusRow, SysinfoGetParams, SysinfoGetResult, SystemNotifyParams, SystemNotifyResult, SystemOpenPathParams, SystemOpenPathResult, SystemOpenUrlParams, SystemOpenUrlResult, TOOL_CATALOG, TOOL_GROUPS, TOOL_LEVELS, TOOL_PLATFORMS, type ToolGroup, type ToolGroupId, ToolLevel, ToolLevelResult, ToolName, ToolOutcome, type ToolPath, ToolPlatform, ToolResultsFile, type ToolState, type ToolStatus, ToolTransport, VERSIONED_RESULT_OPS, WindowFocusParams, WindowFocusResult, WindowInfo, WindowListParams, WindowListResult, WindowMinimizeParams, WindowMinimizeResult, WindowMoveParams, WindowMoveResult, announcedVersion, buildToolStatus, builtOps, compareVersions, epochMs, forPeer, knows, negotiate, nonNegInt, renderToolStatusMarkdown, statusForPeer, u32, versionSubprotocol };