@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.
@@ -6178,6 +6178,580 @@
6178
6178
  "folder"
6179
6179
  ],
6180
6180
  "additionalProperties": false
6181
+ },
6182
+ "ChatId": {
6183
+ "type": "string",
6184
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$"
6185
+ },
6186
+ "ChatPlace": {
6187
+ "type": "string",
6188
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$"
6189
+ },
6190
+ "ChatProjectId": {
6191
+ "type": "string",
6192
+ "pattern": "^[a-z0-9][a-z0-9-]{0,63}$"
6193
+ },
6194
+ "ChatWindow": {
6195
+ "type": "object",
6196
+ "properties": {
6197
+ "key": {
6198
+ "$ref": "#/$defs/ChatPlace"
6199
+ },
6200
+ "main": {
6201
+ "type": "boolean"
6202
+ },
6203
+ "account": {
6204
+ "anyOf": [
6205
+ {
6206
+ "type": "string",
6207
+ "maxLength": 320
6208
+ },
6209
+ {
6210
+ "type": "null"
6211
+ }
6212
+ ]
6213
+ }
6214
+ },
6215
+ "required": [
6216
+ "key",
6217
+ "main",
6218
+ "account"
6219
+ ],
6220
+ "additionalProperties": false
6221
+ },
6222
+ "ChatProject": {
6223
+ "type": "object",
6224
+ "properties": {
6225
+ "id": {
6226
+ "$ref": "#/$defs/ChatProjectId"
6227
+ },
6228
+ "name": {
6229
+ "type": "string",
6230
+ "minLength": 1,
6231
+ "maxLength": 200
6232
+ },
6233
+ "archived": {
6234
+ "type": "boolean"
6235
+ },
6236
+ "count": {
6237
+ "type": "integer",
6238
+ "minimum": 0,
6239
+ "maximum": 9007199254740991
6240
+ }
6241
+ },
6242
+ "required": [
6243
+ "id",
6244
+ "name",
6245
+ "archived",
6246
+ "count"
6247
+ ],
6248
+ "additionalProperties": false
6249
+ },
6250
+ "ChatPin": {
6251
+ "type": "object",
6252
+ "properties": {
6253
+ "window": {
6254
+ "type": "string",
6255
+ "minLength": 1,
6256
+ "maxLength": 320
6257
+ },
6258
+ "observed_at_ms": {
6259
+ "anyOf": [
6260
+ {
6261
+ "type": "integer",
6262
+ "minimum": 0,
6263
+ "maximum": 9007199254740991
6264
+ },
6265
+ {
6266
+ "type": "null"
6267
+ }
6268
+ ]
6269
+ }
6270
+ },
6271
+ "required": [
6272
+ "window",
6273
+ "observed_at_ms"
6274
+ ],
6275
+ "additionalProperties": false
6276
+ },
6277
+ "ChatRunning": {
6278
+ "type": "object",
6279
+ "properties": {
6280
+ "window": {
6281
+ "$ref": "#/$defs/ChatPlace"
6282
+ },
6283
+ "how": {
6284
+ "type": "string",
6285
+ "enum": [
6286
+ "process",
6287
+ "activity"
6288
+ ]
6289
+ }
6290
+ },
6291
+ "required": [
6292
+ "window",
6293
+ "how"
6294
+ ],
6295
+ "additionalProperties": false
6296
+ },
6297
+ "ChatHidden": {
6298
+ "type": "object",
6299
+ "properties": {
6300
+ "window": {
6301
+ "$ref": "#/$defs/ChatPlace"
6302
+ },
6303
+ "reason": {
6304
+ "type": "string",
6305
+ "maxLength": 200
6306
+ }
6307
+ },
6308
+ "required": [
6309
+ "window",
6310
+ "reason"
6311
+ ],
6312
+ "additionalProperties": false
6313
+ },
6314
+ "ChatLastUse": {
6315
+ "type": "object",
6316
+ "properties": {
6317
+ "at_ms": {
6318
+ "type": "integer",
6319
+ "minimum": 0,
6320
+ "maximum": 9007199254740991
6321
+ },
6322
+ "window": {
6323
+ "anyOf": [
6324
+ {
6325
+ "$ref": "#/$defs/ChatPlace"
6326
+ },
6327
+ {
6328
+ "type": "null"
6329
+ }
6330
+ ]
6331
+ },
6332
+ "account": {
6333
+ "anyOf": [
6334
+ {
6335
+ "type": "string",
6336
+ "maxLength": 320
6337
+ },
6338
+ {
6339
+ "type": "null"
6340
+ }
6341
+ ]
6342
+ },
6343
+ "how": {
6344
+ "anyOf": [
6345
+ {
6346
+ "type": "string",
6347
+ "maxLength": 120
6348
+ },
6349
+ {
6350
+ "type": "null"
6351
+ }
6352
+ ]
6353
+ },
6354
+ "cache_warm": {
6355
+ "type": "boolean"
6356
+ },
6357
+ "cache_minutes_left": {
6358
+ "type": "integer",
6359
+ "minimum": 0,
6360
+ "maximum": 9007199254740991
6361
+ }
6362
+ },
6363
+ "required": [
6364
+ "at_ms",
6365
+ "window",
6366
+ "account",
6367
+ "how",
6368
+ "cache_warm",
6369
+ "cache_minutes_left"
6370
+ ],
6371
+ "additionalProperties": false
6372
+ },
6373
+ "ChatRow": {
6374
+ "type": "object",
6375
+ "properties": {
6376
+ "id": {
6377
+ "$ref": "#/$defs/ChatId"
6378
+ },
6379
+ "short_id": {
6380
+ "type": "string",
6381
+ "maxLength": 16
6382
+ },
6383
+ "record": {
6384
+ "anyOf": [
6385
+ {
6386
+ "type": "string",
6387
+ "maxLength": 160
6388
+ },
6389
+ {
6390
+ "type": "null"
6391
+ }
6392
+ ]
6393
+ },
6394
+ "title": {
6395
+ "type": "string",
6396
+ "maxLength": 1000
6397
+ },
6398
+ "last_active_ms": {
6399
+ "anyOf": [
6400
+ {
6401
+ "type": "integer",
6402
+ "minimum": 0,
6403
+ "maximum": 9007199254740991
6404
+ },
6405
+ {
6406
+ "type": "null"
6407
+ }
6408
+ ]
6409
+ },
6410
+ "created_ms": {
6411
+ "anyOf": [
6412
+ {
6413
+ "type": "integer",
6414
+ "minimum": 0,
6415
+ "maximum": 9007199254740991
6416
+ },
6417
+ {
6418
+ "type": "null"
6419
+ }
6420
+ ]
6421
+ },
6422
+ "projects": {
6423
+ "maxItems": 500,
6424
+ "type": "array",
6425
+ "items": {
6426
+ "$ref": "#/$defs/ChatProjectId"
6427
+ }
6428
+ },
6429
+ "starred": {
6430
+ "type": "boolean"
6431
+ },
6432
+ "pinned_in": {
6433
+ "maxItems": 200,
6434
+ "type": "array",
6435
+ "items": {
6436
+ "$ref": "#/$defs/ChatPin"
6437
+ }
6438
+ },
6439
+ "places": {
6440
+ "maxItems": 200,
6441
+ "type": "array",
6442
+ "items": {
6443
+ "$ref": "#/$defs/ChatPlace"
6444
+ }
6445
+ },
6446
+ "held": {
6447
+ "type": "boolean"
6448
+ },
6449
+ "running": {
6450
+ "maxItems": 200,
6451
+ "type": "array",
6452
+ "items": {
6453
+ "$ref": "#/$defs/ChatRunning"
6454
+ }
6455
+ },
6456
+ "hidden_in": {
6457
+ "maxItems": 200,
6458
+ "type": "array",
6459
+ "items": {
6460
+ "$ref": "#/$defs/ChatHidden"
6461
+ }
6462
+ },
6463
+ "hidden_from_main": {
6464
+ "type": "boolean"
6465
+ },
6466
+ "main_pending": {
6467
+ "type": "boolean"
6468
+ },
6469
+ "scheduled": {
6470
+ "anyOf": [
6471
+ {
6472
+ "type": "string",
6473
+ "maxLength": 200
6474
+ },
6475
+ {
6476
+ "type": "null"
6477
+ }
6478
+ ]
6479
+ },
6480
+ "new_unfiled": {
6481
+ "type": "boolean"
6482
+ },
6483
+ "warnings": {
6484
+ "maxItems": 20,
6485
+ "type": "array",
6486
+ "items": {
6487
+ "type": "string",
6488
+ "maxLength": 400
6489
+ }
6490
+ },
6491
+ "last_use": {
6492
+ "anyOf": [
6493
+ {
6494
+ "$ref": "#/$defs/ChatLastUse"
6495
+ },
6496
+ {
6497
+ "type": "null"
6498
+ }
6499
+ ]
6500
+ }
6501
+ },
6502
+ "required": [
6503
+ "id",
6504
+ "short_id",
6505
+ "record",
6506
+ "title",
6507
+ "last_active_ms",
6508
+ "created_ms",
6509
+ "projects",
6510
+ "starred",
6511
+ "pinned_in",
6512
+ "places",
6513
+ "held",
6514
+ "running",
6515
+ "hidden_in",
6516
+ "hidden_from_main",
6517
+ "main_pending",
6518
+ "scheduled",
6519
+ "new_unfiled",
6520
+ "warnings",
6521
+ "last_use"
6522
+ ],
6523
+ "additionalProperties": false
6524
+ },
6525
+ "AppsChatsListParams": {
6526
+ "type": "object",
6527
+ "properties": {
6528
+ "app_key": {
6529
+ "$ref": "#/$defs/AppKey"
6530
+ },
6531
+ "ids": {
6532
+ "maxItems": 500,
6533
+ "type": "array",
6534
+ "items": {
6535
+ "$ref": "#/$defs/ChatId"
6536
+ }
6537
+ }
6538
+ },
6539
+ "required": [
6540
+ "app_key"
6541
+ ],
6542
+ "additionalProperties": false
6543
+ },
6544
+ "AppsChatsListResult": {
6545
+ "type": "object",
6546
+ "properties": {
6547
+ "app_key": {
6548
+ "$ref": "#/$defs/AppKey"
6549
+ },
6550
+ "version": {
6551
+ "type": "integer",
6552
+ "minimum": 0,
6553
+ "maximum": 9007199254740991
6554
+ },
6555
+ "windows": {
6556
+ "maxItems": 200,
6557
+ "type": "array",
6558
+ "items": {
6559
+ "$ref": "#/$defs/ChatWindow"
6560
+ }
6561
+ },
6562
+ "projects": {
6563
+ "maxItems": 5000,
6564
+ "type": "array",
6565
+ "items": {
6566
+ "$ref": "#/$defs/ChatProject"
6567
+ }
6568
+ },
6569
+ "chats": {
6570
+ "maxItems": 20000,
6571
+ "type": "array",
6572
+ "items": {
6573
+ "$ref": "#/$defs/ChatRow"
6574
+ }
6575
+ },
6576
+ "new_window_ms": {
6577
+ "type": "integer",
6578
+ "minimum": 0,
6579
+ "maximum": 9007199254740991
6580
+ }
6581
+ },
6582
+ "required": [
6583
+ "app_key",
6584
+ "version",
6585
+ "windows",
6586
+ "projects",
6587
+ "chats",
6588
+ "new_window_ms"
6589
+ ],
6590
+ "additionalProperties": false
6591
+ },
6592
+ "AppsChatsWatchParams": {
6593
+ "type": "object",
6594
+ "properties": {
6595
+ "app_key": {
6596
+ "$ref": "#/$defs/AppKey"
6597
+ }
6598
+ },
6599
+ "required": [
6600
+ "app_key"
6601
+ ],
6602
+ "additionalProperties": false
6603
+ },
6604
+ "AppsChatsWatchResult": {
6605
+ "type": "object",
6606
+ "properties": {
6607
+ "resource_id": {
6608
+ "$ref": "#/$defs/ResourceId"
6609
+ },
6610
+ "version": {
6611
+ "type": "integer",
6612
+ "minimum": 0,
6613
+ "maximum": 9007199254740991
6614
+ }
6615
+ },
6616
+ "required": [
6617
+ "resource_id",
6618
+ "version"
6619
+ ],
6620
+ "additionalProperties": false
6621
+ },
6622
+ "AppsChatsChangedEvent": {
6623
+ "type": "object",
6624
+ "properties": {
6625
+ "app_key": {
6626
+ "$ref": "#/$defs/AppKey"
6627
+ },
6628
+ "version": {
6629
+ "type": "integer",
6630
+ "minimum": 0,
6631
+ "maximum": 9007199254740991
6632
+ },
6633
+ "ids": {
6634
+ "maxItems": 1000,
6635
+ "type": "array",
6636
+ "items": {
6637
+ "$ref": "#/$defs/ChatId"
6638
+ }
6639
+ },
6640
+ "all": {
6641
+ "type": "boolean"
6642
+ }
6643
+ },
6644
+ "required": [
6645
+ "app_key",
6646
+ "version",
6647
+ "ids",
6648
+ "all"
6649
+ ],
6650
+ "additionalProperties": false
6651
+ },
6652
+ "AppsChatsStarParams": {
6653
+ "type": "object",
6654
+ "properties": {
6655
+ "app_key": {
6656
+ "$ref": "#/$defs/AppKey"
6657
+ },
6658
+ "chat_id": {
6659
+ "$ref": "#/$defs/ChatId"
6660
+ },
6661
+ "starred": {
6662
+ "type": "boolean"
6663
+ }
6664
+ },
6665
+ "required": [
6666
+ "app_key",
6667
+ "chat_id",
6668
+ "starred"
6669
+ ],
6670
+ "additionalProperties": false
6671
+ },
6672
+ "AppsChatsStarResult": {
6673
+ "type": "object",
6674
+ "properties": {
6675
+ "chat": {
6676
+ "$ref": "#/$defs/ChatRow"
6677
+ }
6678
+ },
6679
+ "required": [
6680
+ "chat"
6681
+ ],
6682
+ "additionalProperties": false
6683
+ },
6684
+ "AppsProjectsFileParams": {
6685
+ "type": "object",
6686
+ "properties": {
6687
+ "app_key": {
6688
+ "$ref": "#/$defs/AppKey"
6689
+ },
6690
+ "chat_id": {
6691
+ "$ref": "#/$defs/ChatId"
6692
+ },
6693
+ "project_id": {
6694
+ "$ref": "#/$defs/ChatProjectId"
6695
+ },
6696
+ "new_project_name": {
6697
+ "type": "string",
6698
+ "minLength": 1,
6699
+ "maxLength": 200
6700
+ }
6701
+ },
6702
+ "required": [
6703
+ "app_key",
6704
+ "chat_id"
6705
+ ],
6706
+ "additionalProperties": false
6707
+ },
6708
+ "AppsProjectsFileResult": {
6709
+ "type": "object",
6710
+ "properties": {
6711
+ "chat": {
6712
+ "$ref": "#/$defs/ChatRow"
6713
+ },
6714
+ "project": {
6715
+ "$ref": "#/$defs/ChatProject"
6716
+ }
6717
+ },
6718
+ "required": [
6719
+ "chat",
6720
+ "project"
6721
+ ],
6722
+ "additionalProperties": false
6723
+ },
6724
+ "AppsProjectsUnfileParams": {
6725
+ "type": "object",
6726
+ "properties": {
6727
+ "app_key": {
6728
+ "$ref": "#/$defs/AppKey"
6729
+ },
6730
+ "chat_id": {
6731
+ "$ref": "#/$defs/ChatId"
6732
+ },
6733
+ "project_id": {
6734
+ "$ref": "#/$defs/ChatProjectId"
6735
+ }
6736
+ },
6737
+ "required": [
6738
+ "app_key",
6739
+ "chat_id",
6740
+ "project_id"
6741
+ ],
6742
+ "additionalProperties": false
6743
+ },
6744
+ "AppsProjectsUnfileResult": {
6745
+ "type": "object",
6746
+ "properties": {
6747
+ "chat": {
6748
+ "$ref": "#/$defs/ChatRow"
6749
+ }
6750
+ },
6751
+ "required": [
6752
+ "chat"
6753
+ ],
6754
+ "additionalProperties": false
6181
6755
  }
6182
6756
  },
6183
6757
  "x-ops": {
@@ -6572,6 +7146,65 @@
6572
7146
  "INTERNAL"
6573
7147
  ]
6574
7148
  },
7149
+ "apps.chats.list": {
7150
+ "params": "AppsChatsListParams",
7151
+ "result": "AppsChatsListResult",
7152
+ "kind": "unary",
7153
+ "since": "1.8",
7154
+ "errors": [
7155
+ "NOT_FOUND",
7156
+ "PLATFORM_UNSUPPORTED",
7157
+ "INTERNAL"
7158
+ ]
7159
+ },
7160
+ "apps.chats.watch": {
7161
+ "params": "AppsChatsWatchParams",
7162
+ "result": "AppsChatsWatchResult",
7163
+ "kind": "resource",
7164
+ "since": "1.8",
7165
+ "errors": [
7166
+ "NOT_FOUND",
7167
+ "PLATFORM_UNSUPPORTED",
7168
+ "RESOURCE_BUSY",
7169
+ "INTERNAL"
7170
+ ]
7171
+ },
7172
+ "apps.chats.star": {
7173
+ "params": "AppsChatsStarParams",
7174
+ "result": "AppsChatsStarResult",
7175
+ "kind": "unary",
7176
+ "since": "1.8",
7177
+ "errors": [
7178
+ "NOT_FOUND",
7179
+ "PLATFORM_UNSUPPORTED",
7180
+ "INTERNAL"
7181
+ ]
7182
+ },
7183
+ "apps.projects.file": {
7184
+ "params": "AppsProjectsFileParams",
7185
+ "result": "AppsProjectsFileResult",
7186
+ "kind": "unary",
7187
+ "since": "1.8",
7188
+ "errors": [
7189
+ "NOT_FOUND",
7190
+ "INVALID_PARAMS",
7191
+ "CONFLICT",
7192
+ "PLATFORM_UNSUPPORTED",
7193
+ "INTERNAL"
7194
+ ]
7195
+ },
7196
+ "apps.projects.unfile": {
7197
+ "params": "AppsProjectsUnfileParams",
7198
+ "result": "AppsProjectsUnfileResult",
7199
+ "kind": "unary",
7200
+ "since": "1.8",
7201
+ "errors": [
7202
+ "NOT_FOUND",
7203
+ "CONFLICT",
7204
+ "PLATFORM_UNSUPPORTED",
7205
+ "INTERNAL"
7206
+ ]
7207
+ },
6575
7208
  "proc.list": {
6576
7209
  "params": "ProcListParams",
6577
7210
  "result": "ProcListResult",
@@ -6936,6 +7569,7 @@
6936
7569
  },
6937
7570
  "x-events": {
6938
7571
  "fs.changed": "FsChangedEvent",
7572
+ "apps.chats.changed": "AppsChatsChangedEvent",
6939
7573
  "exec.exited": "ExecExitedEvent",
6940
7574
  "exec.title": "ExecTitleEvent",
6941
7575
  "exec.cwd": "ExecCwdEvent",
@@ -7002,5 +7636,5 @@
7002
7636
  "olderPeersGet": 0
7003
7637
  }
7004
7638
  },
7005
- "x-protocol-version": "1.7"
7639
+ "x-protocol-version": "1.8"
7006
7640
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/desktop-protocol",
3
- "version": "0.17.3",
3
+ "version": "0.17.4",
4
4
  "description": "The one wire contract between Matrx 2 (the desktop app) and every client that drives it — phone, web app, extension, server: zod schemas for the envelope and every cap.op, the 16-byte binary frame codec, a reconnecting request/stream/credit/reattach client, React hooks, and a generated JSON Schema + Pydantic twin that CI keeps byte-identical.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",