@ai-matrx/desktop-protocol 0.17.3 → 0.17.4
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/CHANGELOG.md +12 -0
- package/dist/client.cjs +115 -1
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +115 -1
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +418 -262
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +348 -9
- package/dist/index.d.ts +348 -9
- package/dist/index.js +418 -262
- package/dist/index.js.map +1 -1
- package/dist/{models-BiquRLLO.d.cts → models-9j0ncAJj.d.cts} +548 -4
- package/dist/{models-BiquRLLO.d.ts → models-9j0ncAJj.d.ts} +548 -4
- package/dist/react.d.cts +246 -0
- package/dist/react.d.ts +246 -0
- package/generated/desktop-protocol.schema.json +635 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { O as OpName } from './models-
|
|
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-
|
|
2
|
+
import { O as OpName } from './models-9j0ncAJj.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-9j0ncAJj.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,11 @@ 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.
|
|
23
24
|
*/
|
|
24
|
-
declare const PROTOCOL_MINOR:
|
|
25
|
+
declare const PROTOCOL_MINOR: 8;
|
|
25
26
|
/** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
|
|
26
|
-
declare const PROTOCOL_VERSION: "1.
|
|
27
|
+
declare const PROTOCOL_VERSION: "1.8";
|
|
27
28
|
/** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
|
|
28
29
|
declare const u32: z.ZodInt;
|
|
29
30
|
declare const nonNegInt: z.ZodInt;
|
|
@@ -1280,6 +1281,344 @@ declare const AppsOpenResult: z.ZodObject<{
|
|
|
1280
1281
|
}, z.core.$strict>;
|
|
1281
1282
|
type AppsOpenResult = z.output<typeof AppsOpenResult>;
|
|
1282
1283
|
|
|
1284
|
+
/**
|
|
1285
|
+
* @ai-matrx/desktop-protocol — cap apps, chats and projects (SPEC §6 `apps`, §6.2): the
|
|
1286
|
+
* conversations a coding app (Claude first; Codex, Cursor, VS Code through the same shape) keeps
|
|
1287
|
+
* on this device, which of the app's windows (profiles) list each one, and the person's own
|
|
1288
|
+
* groupings of them. Schema source: lint-enforced rules in scripts/check-schema-source.mjs.
|
|
1289
|
+
*
|
|
1290
|
+
* A chat is one conversation, keyed by its transcript id, never by one window's listing of it. A
|
|
1291
|
+
* window is one profile of the app. A pin is the app's own (read only, never written); a star and
|
|
1292
|
+
* a project are ours. Added in protocol 1.8.
|
|
1293
|
+
*/
|
|
1294
|
+
|
|
1295
|
+
/** A conversation id (Claude: the transcript's cliSessionId). */
|
|
1296
|
+
declare const ChatId: z.ZodString;
|
|
1297
|
+
type ChatId = z.output<typeof ChatId>;
|
|
1298
|
+
/** A window (profile) key, e.g. "main", "emily"; "holder" is our vault, not a window. */
|
|
1299
|
+
declare const ChatPlace: z.ZodString;
|
|
1300
|
+
type ChatPlace = z.output<typeof ChatPlace>;
|
|
1301
|
+
/** A project id (a slug made from its first name). */
|
|
1302
|
+
declare const ChatProjectId: z.ZodString;
|
|
1303
|
+
type ChatProjectId = z.output<typeof ChatProjectId>;
|
|
1304
|
+
declare const ChatWindow: z.ZodObject<{
|
|
1305
|
+
key: z.ZodString;
|
|
1306
|
+
main: z.ZodBoolean;
|
|
1307
|
+
account: z.ZodNullable<z.ZodString>;
|
|
1308
|
+
}, z.core.$strict>;
|
|
1309
|
+
type ChatWindow = z.output<typeof ChatWindow>;
|
|
1310
|
+
declare const ChatProject: z.ZodObject<{
|
|
1311
|
+
id: z.ZodString;
|
|
1312
|
+
name: z.ZodString;
|
|
1313
|
+
archived: z.ZodBoolean;
|
|
1314
|
+
count: z.ZodInt;
|
|
1315
|
+
}, z.core.$strict>;
|
|
1316
|
+
type ChatProject = z.output<typeof ChatProject>;
|
|
1317
|
+
/** The app's own pin, read from one window's account. */
|
|
1318
|
+
declare const ChatPin: z.ZodObject<{
|
|
1319
|
+
window: z.ZodString;
|
|
1320
|
+
observed_at_ms: z.ZodNullable<z.ZodInt>;
|
|
1321
|
+
}, z.core.$strict>;
|
|
1322
|
+
type ChatPin = z.output<typeof ChatPin>;
|
|
1323
|
+
declare const ChatRunning: z.ZodObject<{
|
|
1324
|
+
window: z.ZodString;
|
|
1325
|
+
how: z.ZodEnum<{
|
|
1326
|
+
process: "process";
|
|
1327
|
+
activity: "activity";
|
|
1328
|
+
}>;
|
|
1329
|
+
}, z.core.$strict>;
|
|
1330
|
+
type ChatRunning = z.output<typeof ChatRunning>;
|
|
1331
|
+
/** A window that holds a listing of the chat but whose sidebar does not show it, and why. */
|
|
1332
|
+
declare const ChatHidden: z.ZodObject<{
|
|
1333
|
+
window: z.ZodString;
|
|
1334
|
+
reason: z.ZodString;
|
|
1335
|
+
}, z.core.$strict>;
|
|
1336
|
+
type ChatHidden = z.output<typeof ChatHidden>;
|
|
1337
|
+
declare const ChatLastUse: z.ZodObject<{
|
|
1338
|
+
at_ms: z.ZodInt;
|
|
1339
|
+
window: z.ZodNullable<z.ZodString>;
|
|
1340
|
+
account: z.ZodNullable<z.ZodString>;
|
|
1341
|
+
how: z.ZodNullable<z.ZodString>;
|
|
1342
|
+
cache_warm: z.ZodBoolean;
|
|
1343
|
+
cache_minutes_left: z.ZodInt;
|
|
1344
|
+
}, z.core.$strict>;
|
|
1345
|
+
type ChatLastUse = z.output<typeof ChatLastUse>;
|
|
1346
|
+
declare const ChatRow: z.ZodObject<{
|
|
1347
|
+
id: z.ZodString;
|
|
1348
|
+
short_id: z.ZodString;
|
|
1349
|
+
record: z.ZodNullable<z.ZodString>;
|
|
1350
|
+
title: z.ZodString;
|
|
1351
|
+
last_active_ms: z.ZodNullable<z.ZodInt>;
|
|
1352
|
+
created_ms: z.ZodNullable<z.ZodInt>;
|
|
1353
|
+
projects: z.ZodArray<z.ZodString>;
|
|
1354
|
+
starred: z.ZodBoolean;
|
|
1355
|
+
pinned_in: z.ZodArray<z.ZodObject<{
|
|
1356
|
+
window: z.ZodString;
|
|
1357
|
+
observed_at_ms: z.ZodNullable<z.ZodInt>;
|
|
1358
|
+
}, z.core.$strict>>;
|
|
1359
|
+
places: z.ZodArray<z.ZodString>;
|
|
1360
|
+
held: z.ZodBoolean;
|
|
1361
|
+
running: z.ZodArray<z.ZodObject<{
|
|
1362
|
+
window: z.ZodString;
|
|
1363
|
+
how: z.ZodEnum<{
|
|
1364
|
+
process: "process";
|
|
1365
|
+
activity: "activity";
|
|
1366
|
+
}>;
|
|
1367
|
+
}, z.core.$strict>>;
|
|
1368
|
+
hidden_in: z.ZodArray<z.ZodObject<{
|
|
1369
|
+
window: z.ZodString;
|
|
1370
|
+
reason: z.ZodString;
|
|
1371
|
+
}, z.core.$strict>>;
|
|
1372
|
+
hidden_from_main: z.ZodBoolean;
|
|
1373
|
+
main_pending: z.ZodBoolean;
|
|
1374
|
+
scheduled: z.ZodNullable<z.ZodString>;
|
|
1375
|
+
new_unfiled: z.ZodBoolean;
|
|
1376
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
1377
|
+
last_use: z.ZodNullable<z.ZodObject<{
|
|
1378
|
+
at_ms: z.ZodInt;
|
|
1379
|
+
window: z.ZodNullable<z.ZodString>;
|
|
1380
|
+
account: z.ZodNullable<z.ZodString>;
|
|
1381
|
+
how: z.ZodNullable<z.ZodString>;
|
|
1382
|
+
cache_warm: z.ZodBoolean;
|
|
1383
|
+
cache_minutes_left: z.ZodInt;
|
|
1384
|
+
}, z.core.$strict>>;
|
|
1385
|
+
}, z.core.$strict>;
|
|
1386
|
+
type ChatRow = z.output<typeof ChatRow>;
|
|
1387
|
+
declare const AppsChatsListParams: z.ZodObject<{
|
|
1388
|
+
app_key: z.ZodString;
|
|
1389
|
+
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1390
|
+
}, z.core.$strict>;
|
|
1391
|
+
type AppsChatsListParams = z.output<typeof AppsChatsListParams>;
|
|
1392
|
+
declare const AppsChatsListResult: z.ZodObject<{
|
|
1393
|
+
app_key: z.ZodString;
|
|
1394
|
+
version: z.ZodInt;
|
|
1395
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
1396
|
+
key: z.ZodString;
|
|
1397
|
+
main: z.ZodBoolean;
|
|
1398
|
+
account: z.ZodNullable<z.ZodString>;
|
|
1399
|
+
}, z.core.$strict>>;
|
|
1400
|
+
projects: z.ZodArray<z.ZodObject<{
|
|
1401
|
+
id: z.ZodString;
|
|
1402
|
+
name: z.ZodString;
|
|
1403
|
+
archived: z.ZodBoolean;
|
|
1404
|
+
count: z.ZodInt;
|
|
1405
|
+
}, z.core.$strict>>;
|
|
1406
|
+
chats: z.ZodArray<z.ZodObject<{
|
|
1407
|
+
id: z.ZodString;
|
|
1408
|
+
short_id: z.ZodString;
|
|
1409
|
+
record: z.ZodNullable<z.ZodString>;
|
|
1410
|
+
title: z.ZodString;
|
|
1411
|
+
last_active_ms: z.ZodNullable<z.ZodInt>;
|
|
1412
|
+
created_ms: z.ZodNullable<z.ZodInt>;
|
|
1413
|
+
projects: z.ZodArray<z.ZodString>;
|
|
1414
|
+
starred: z.ZodBoolean;
|
|
1415
|
+
pinned_in: z.ZodArray<z.ZodObject<{
|
|
1416
|
+
window: z.ZodString;
|
|
1417
|
+
observed_at_ms: z.ZodNullable<z.ZodInt>;
|
|
1418
|
+
}, z.core.$strict>>;
|
|
1419
|
+
places: z.ZodArray<z.ZodString>;
|
|
1420
|
+
held: z.ZodBoolean;
|
|
1421
|
+
running: z.ZodArray<z.ZodObject<{
|
|
1422
|
+
window: z.ZodString;
|
|
1423
|
+
how: z.ZodEnum<{
|
|
1424
|
+
process: "process";
|
|
1425
|
+
activity: "activity";
|
|
1426
|
+
}>;
|
|
1427
|
+
}, z.core.$strict>>;
|
|
1428
|
+
hidden_in: z.ZodArray<z.ZodObject<{
|
|
1429
|
+
window: z.ZodString;
|
|
1430
|
+
reason: z.ZodString;
|
|
1431
|
+
}, z.core.$strict>>;
|
|
1432
|
+
hidden_from_main: z.ZodBoolean;
|
|
1433
|
+
main_pending: z.ZodBoolean;
|
|
1434
|
+
scheduled: z.ZodNullable<z.ZodString>;
|
|
1435
|
+
new_unfiled: z.ZodBoolean;
|
|
1436
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
1437
|
+
last_use: z.ZodNullable<z.ZodObject<{
|
|
1438
|
+
at_ms: z.ZodInt;
|
|
1439
|
+
window: z.ZodNullable<z.ZodString>;
|
|
1440
|
+
account: z.ZodNullable<z.ZodString>;
|
|
1441
|
+
how: z.ZodNullable<z.ZodString>;
|
|
1442
|
+
cache_warm: z.ZodBoolean;
|
|
1443
|
+
cache_minutes_left: z.ZodInt;
|
|
1444
|
+
}, z.core.$strict>>;
|
|
1445
|
+
}, z.core.$strict>>;
|
|
1446
|
+
new_window_ms: z.ZodInt;
|
|
1447
|
+
}, z.core.$strict>;
|
|
1448
|
+
type AppsChatsListResult = z.output<typeof AppsChatsListResult>;
|
|
1449
|
+
declare const AppsChatsWatchParams: z.ZodObject<{
|
|
1450
|
+
app_key: z.ZodString;
|
|
1451
|
+
}, z.core.$strict>;
|
|
1452
|
+
type AppsChatsWatchParams = z.output<typeof AppsChatsWatchParams>;
|
|
1453
|
+
declare const AppsChatsWatchResult: z.ZodObject<{
|
|
1454
|
+
resource_id: z.ZodString;
|
|
1455
|
+
version: z.ZodInt;
|
|
1456
|
+
}, z.core.$strict>;
|
|
1457
|
+
type AppsChatsWatchResult = z.output<typeof AppsChatsWatchResult>;
|
|
1458
|
+
/** Event to every holder of an `apps.chats.watch`: these chats changed (all: re-read the list). */
|
|
1459
|
+
declare const AppsChatsChangedEvent: z.ZodObject<{
|
|
1460
|
+
app_key: z.ZodString;
|
|
1461
|
+
version: z.ZodInt;
|
|
1462
|
+
ids: z.ZodArray<z.ZodString>;
|
|
1463
|
+
all: z.ZodBoolean;
|
|
1464
|
+
}, z.core.$strict>;
|
|
1465
|
+
type AppsChatsChangedEvent = z.output<typeof AppsChatsChangedEvent>;
|
|
1466
|
+
/** File a chat in a project: `project_id`, or `new_project_name` to make one (exactly one). */
|
|
1467
|
+
declare const AppsProjectsFileParams: z.ZodObject<{
|
|
1468
|
+
app_key: z.ZodString;
|
|
1469
|
+
chat_id: z.ZodString;
|
|
1470
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
1471
|
+
new_project_name: z.ZodOptional<z.ZodString>;
|
|
1472
|
+
}, z.core.$strict>;
|
|
1473
|
+
type AppsProjectsFileParams = z.output<typeof AppsProjectsFileParams>;
|
|
1474
|
+
declare const AppsProjectsFileResult: z.ZodObject<{
|
|
1475
|
+
chat: z.ZodObject<{
|
|
1476
|
+
id: z.ZodString;
|
|
1477
|
+
short_id: z.ZodString;
|
|
1478
|
+
record: z.ZodNullable<z.ZodString>;
|
|
1479
|
+
title: z.ZodString;
|
|
1480
|
+
last_active_ms: z.ZodNullable<z.ZodInt>;
|
|
1481
|
+
created_ms: z.ZodNullable<z.ZodInt>;
|
|
1482
|
+
projects: z.ZodArray<z.ZodString>;
|
|
1483
|
+
starred: z.ZodBoolean;
|
|
1484
|
+
pinned_in: z.ZodArray<z.ZodObject<{
|
|
1485
|
+
window: z.ZodString;
|
|
1486
|
+
observed_at_ms: z.ZodNullable<z.ZodInt>;
|
|
1487
|
+
}, z.core.$strict>>;
|
|
1488
|
+
places: z.ZodArray<z.ZodString>;
|
|
1489
|
+
held: z.ZodBoolean;
|
|
1490
|
+
running: z.ZodArray<z.ZodObject<{
|
|
1491
|
+
window: z.ZodString;
|
|
1492
|
+
how: z.ZodEnum<{
|
|
1493
|
+
process: "process";
|
|
1494
|
+
activity: "activity";
|
|
1495
|
+
}>;
|
|
1496
|
+
}, z.core.$strict>>;
|
|
1497
|
+
hidden_in: z.ZodArray<z.ZodObject<{
|
|
1498
|
+
window: z.ZodString;
|
|
1499
|
+
reason: z.ZodString;
|
|
1500
|
+
}, z.core.$strict>>;
|
|
1501
|
+
hidden_from_main: z.ZodBoolean;
|
|
1502
|
+
main_pending: z.ZodBoolean;
|
|
1503
|
+
scheduled: z.ZodNullable<z.ZodString>;
|
|
1504
|
+
new_unfiled: z.ZodBoolean;
|
|
1505
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
1506
|
+
last_use: z.ZodNullable<z.ZodObject<{
|
|
1507
|
+
at_ms: z.ZodInt;
|
|
1508
|
+
window: z.ZodNullable<z.ZodString>;
|
|
1509
|
+
account: z.ZodNullable<z.ZodString>;
|
|
1510
|
+
how: z.ZodNullable<z.ZodString>;
|
|
1511
|
+
cache_warm: z.ZodBoolean;
|
|
1512
|
+
cache_minutes_left: z.ZodInt;
|
|
1513
|
+
}, z.core.$strict>>;
|
|
1514
|
+
}, z.core.$strict>;
|
|
1515
|
+
project: z.ZodObject<{
|
|
1516
|
+
id: z.ZodString;
|
|
1517
|
+
name: z.ZodString;
|
|
1518
|
+
archived: z.ZodBoolean;
|
|
1519
|
+
count: z.ZodInt;
|
|
1520
|
+
}, z.core.$strict>;
|
|
1521
|
+
}, z.core.$strict>;
|
|
1522
|
+
type AppsProjectsFileResult = z.output<typeof AppsProjectsFileResult>;
|
|
1523
|
+
declare const AppsProjectsUnfileParams: z.ZodObject<{
|
|
1524
|
+
app_key: z.ZodString;
|
|
1525
|
+
chat_id: z.ZodString;
|
|
1526
|
+
project_id: z.ZodString;
|
|
1527
|
+
}, z.core.$strict>;
|
|
1528
|
+
type AppsProjectsUnfileParams = z.output<typeof AppsProjectsUnfileParams>;
|
|
1529
|
+
declare const AppsProjectsUnfileResult: z.ZodObject<{
|
|
1530
|
+
chat: z.ZodObject<{
|
|
1531
|
+
id: z.ZodString;
|
|
1532
|
+
short_id: z.ZodString;
|
|
1533
|
+
record: z.ZodNullable<z.ZodString>;
|
|
1534
|
+
title: z.ZodString;
|
|
1535
|
+
last_active_ms: z.ZodNullable<z.ZodInt>;
|
|
1536
|
+
created_ms: z.ZodNullable<z.ZodInt>;
|
|
1537
|
+
projects: z.ZodArray<z.ZodString>;
|
|
1538
|
+
starred: z.ZodBoolean;
|
|
1539
|
+
pinned_in: z.ZodArray<z.ZodObject<{
|
|
1540
|
+
window: z.ZodString;
|
|
1541
|
+
observed_at_ms: z.ZodNullable<z.ZodInt>;
|
|
1542
|
+
}, z.core.$strict>>;
|
|
1543
|
+
places: z.ZodArray<z.ZodString>;
|
|
1544
|
+
held: z.ZodBoolean;
|
|
1545
|
+
running: z.ZodArray<z.ZodObject<{
|
|
1546
|
+
window: z.ZodString;
|
|
1547
|
+
how: z.ZodEnum<{
|
|
1548
|
+
process: "process";
|
|
1549
|
+
activity: "activity";
|
|
1550
|
+
}>;
|
|
1551
|
+
}, z.core.$strict>>;
|
|
1552
|
+
hidden_in: z.ZodArray<z.ZodObject<{
|
|
1553
|
+
window: z.ZodString;
|
|
1554
|
+
reason: z.ZodString;
|
|
1555
|
+
}, z.core.$strict>>;
|
|
1556
|
+
hidden_from_main: z.ZodBoolean;
|
|
1557
|
+
main_pending: z.ZodBoolean;
|
|
1558
|
+
scheduled: z.ZodNullable<z.ZodString>;
|
|
1559
|
+
new_unfiled: z.ZodBoolean;
|
|
1560
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
1561
|
+
last_use: z.ZodNullable<z.ZodObject<{
|
|
1562
|
+
at_ms: z.ZodInt;
|
|
1563
|
+
window: z.ZodNullable<z.ZodString>;
|
|
1564
|
+
account: z.ZodNullable<z.ZodString>;
|
|
1565
|
+
how: z.ZodNullable<z.ZodString>;
|
|
1566
|
+
cache_warm: z.ZodBoolean;
|
|
1567
|
+
cache_minutes_left: z.ZodInt;
|
|
1568
|
+
}, z.core.$strict>>;
|
|
1569
|
+
}, z.core.$strict>;
|
|
1570
|
+
}, z.core.$strict>;
|
|
1571
|
+
type AppsProjectsUnfileResult = z.output<typeof AppsProjectsUnfileResult>;
|
|
1572
|
+
declare const AppsChatsStarParams: z.ZodObject<{
|
|
1573
|
+
app_key: z.ZodString;
|
|
1574
|
+
chat_id: z.ZodString;
|
|
1575
|
+
starred: z.ZodBoolean;
|
|
1576
|
+
}, z.core.$strict>;
|
|
1577
|
+
type AppsChatsStarParams = z.output<typeof AppsChatsStarParams>;
|
|
1578
|
+
declare const AppsChatsStarResult: z.ZodObject<{
|
|
1579
|
+
chat: z.ZodObject<{
|
|
1580
|
+
id: z.ZodString;
|
|
1581
|
+
short_id: z.ZodString;
|
|
1582
|
+
record: z.ZodNullable<z.ZodString>;
|
|
1583
|
+
title: z.ZodString;
|
|
1584
|
+
last_active_ms: z.ZodNullable<z.ZodInt>;
|
|
1585
|
+
created_ms: z.ZodNullable<z.ZodInt>;
|
|
1586
|
+
projects: z.ZodArray<z.ZodString>;
|
|
1587
|
+
starred: z.ZodBoolean;
|
|
1588
|
+
pinned_in: z.ZodArray<z.ZodObject<{
|
|
1589
|
+
window: z.ZodString;
|
|
1590
|
+
observed_at_ms: z.ZodNullable<z.ZodInt>;
|
|
1591
|
+
}, z.core.$strict>>;
|
|
1592
|
+
places: z.ZodArray<z.ZodString>;
|
|
1593
|
+
held: z.ZodBoolean;
|
|
1594
|
+
running: z.ZodArray<z.ZodObject<{
|
|
1595
|
+
window: z.ZodString;
|
|
1596
|
+
how: z.ZodEnum<{
|
|
1597
|
+
process: "process";
|
|
1598
|
+
activity: "activity";
|
|
1599
|
+
}>;
|
|
1600
|
+
}, z.core.$strict>>;
|
|
1601
|
+
hidden_in: z.ZodArray<z.ZodObject<{
|
|
1602
|
+
window: z.ZodString;
|
|
1603
|
+
reason: z.ZodString;
|
|
1604
|
+
}, z.core.$strict>>;
|
|
1605
|
+
hidden_from_main: z.ZodBoolean;
|
|
1606
|
+
main_pending: z.ZodBoolean;
|
|
1607
|
+
scheduled: z.ZodNullable<z.ZodString>;
|
|
1608
|
+
new_unfiled: z.ZodBoolean;
|
|
1609
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
1610
|
+
last_use: z.ZodNullable<z.ZodObject<{
|
|
1611
|
+
at_ms: z.ZodInt;
|
|
1612
|
+
window: z.ZodNullable<z.ZodString>;
|
|
1613
|
+
account: z.ZodNullable<z.ZodString>;
|
|
1614
|
+
how: z.ZodNullable<z.ZodString>;
|
|
1615
|
+
cache_warm: z.ZodBoolean;
|
|
1616
|
+
cache_minutes_left: z.ZodInt;
|
|
1617
|
+
}, z.core.$strict>>;
|
|
1618
|
+
}, z.core.$strict>;
|
|
1619
|
+
}, z.core.$strict>;
|
|
1620
|
+
type AppsChatsStarResult = z.output<typeof AppsChatsStarResult>;
|
|
1621
|
+
|
|
1283
1622
|
/**
|
|
1284
1623
|
* @ai-matrx/desktop-protocol — the internal envelope between Matrx 2's core and its supervised
|
|
1285
1624
|
* Python services (SPEC §3.10). Schema source: lint-enforced rules in scripts/check-schema-source.mjs.
|
|
@@ -1558,9 +1897,9 @@ type ServiceWelcome = z.output<typeof ServiceWelcome>;
|
|
|
1558
1897
|
/** Tool names are the platform registry's (`tool.definition.name`): `fs_read`, `shell_execute`… */
|
|
1559
1898
|
declare const ToolName: z.ZodString;
|
|
1560
1899
|
declare const ToolLevel: z.ZodEnum<{
|
|
1900
|
+
chat: "chat";
|
|
1561
1901
|
programmatic: "programmatic";
|
|
1562
1902
|
protocol: "protocol";
|
|
1563
|
-
chat: "chat";
|
|
1564
1903
|
}>;
|
|
1565
1904
|
type ToolLevel = z.output<typeof ToolLevel>;
|
|
1566
1905
|
declare const ToolOutcome: z.ZodEnum<{
|
|
@@ -1590,9 +1929,9 @@ type ToolTransport = z.output<typeof ToolTransport>;
|
|
|
1590
1929
|
declare const ToolLevelResult: z.ZodObject<{
|
|
1591
1930
|
tool: z.ZodString;
|
|
1592
1931
|
level: z.ZodEnum<{
|
|
1932
|
+
chat: "chat";
|
|
1593
1933
|
programmatic: "programmatic";
|
|
1594
1934
|
protocol: "protocol";
|
|
1595
|
-
chat: "chat";
|
|
1596
1935
|
}>;
|
|
1597
1936
|
platform: z.ZodEnum<{
|
|
1598
1937
|
darwin: "darwin";
|
|
@@ -1623,9 +1962,9 @@ declare const ToolResultsFile: z.ZodObject<{
|
|
|
1623
1962
|
results: z.ZodArray<z.ZodObject<{
|
|
1624
1963
|
tool: z.ZodString;
|
|
1625
1964
|
level: z.ZodEnum<{
|
|
1965
|
+
chat: "chat";
|
|
1626
1966
|
programmatic: "programmatic";
|
|
1627
1967
|
protocol: "protocol";
|
|
1628
|
-
chat: "chat";
|
|
1629
1968
|
}>;
|
|
1630
1969
|
platform: z.ZodEnum<{
|
|
1631
1970
|
darwin: "darwin";
|
|
@@ -2739,7 +3078,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
|
|
|
2739
3078
|
declare const VERSIONED_RESULT_OPS: readonly OpName[];
|
|
2740
3079
|
|
|
2741
3080
|
/** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
|
|
2742
|
-
declare const CONTRACT_SHA256: "
|
|
3081
|
+
declare const CONTRACT_SHA256: "7a5b3712fe3200b8f1051edb1cc9702e696a8d24b2033f9ea73e1a422f52dd33";
|
|
2743
3082
|
|
|
2744
3083
|
/**
|
|
2745
3084
|
* The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
|
|
@@ -2866,4 +3205,4 @@ declare function buildToolStatus(files: readonly unknown[], opts: {
|
|
|
2866
3205
|
/** The committed text form. Columns: per platform, the three levels (P = programmatic, R = protocol, C = chat). */
|
|
2867
3206
|
declare function renderToolStatusMarkdown(status: ToolStatus): string;
|
|
2868
3207
|
|
|
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 };
|
|
3208
|
+
export { AbsPath, AppFeatureStatus, AppInfo, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppsChatsChangedEvent, AppsChatsListParams, AppsChatsListResult, AppsChatsStarParams, AppsChatsStarResult, AppsChatsWatchParams, AppsChatsWatchResult, AppsListParams, AppsListResult, AppsOpenParams, AppsOpenResult, AppsProfilesListParams, AppsProfilesListResult, AppsProfilesRemoveParams, AppsProfilesRemoveResult, AppsProfilesSaveParams, AppsProfilesSaveResult, AppsProjectsFileParams, AppsProjectsFileResult, AppsProjectsUnfileParams, AppsProjectsUnfileResult, 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 };
|