@ai-matrx/desktop-protocol 0.18.0 → 0.20.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.
@@ -5954,6 +5954,15 @@
5954
5954
  "type": "null"
5955
5955
  }
5956
5956
  ]
5957
+ },
5958
+ "cpu_percent": {
5959
+ "type": "number",
5960
+ "minimum": 0
5961
+ },
5962
+ "memory_bytes": {
5963
+ "type": "integer",
5964
+ "minimum": 0,
5965
+ "maximum": 9007199254740991
5957
5966
  }
5958
5967
  },
5959
5968
  "required": [
@@ -6301,6 +6310,283 @@
6301
6310
  ],
6302
6311
  "additionalProperties": false
6303
6312
  },
6313
+ "DiagProcess": {
6314
+ "type": "string",
6315
+ "enum": [
6316
+ "main",
6317
+ "renderer",
6318
+ "hosted_page",
6319
+ "core",
6320
+ "pty_host",
6321
+ "python_ml",
6322
+ "python_coding",
6323
+ "python_tools",
6324
+ "relay",
6325
+ "coding_sessions",
6326
+ "claude_accounts"
6327
+ ]
6328
+ },
6329
+ "DiagErrorKind": {
6330
+ "type": "string",
6331
+ "enum": [
6332
+ "uncaught_exception",
6333
+ "unhandled_rejection",
6334
+ "renderer_crash",
6335
+ "native_crash",
6336
+ "console_error",
6337
+ "load_failed",
6338
+ "op_failed",
6339
+ "child_exit",
6340
+ "banner",
6341
+ "logged_error"
6342
+ ]
6343
+ },
6344
+ "DiagErrorStatus": {
6345
+ "type": "string",
6346
+ "enum": [
6347
+ "waiting",
6348
+ "sent",
6349
+ "resolved"
6350
+ ]
6351
+ },
6352
+ "DiagErrorEntry": {
6353
+ "type": "object",
6354
+ "properties": {
6355
+ "signature": {
6356
+ "type": "string",
6357
+ "pattern": "^[0-9a-f]{32}$"
6358
+ },
6359
+ "process": {
6360
+ "$ref": "#/$defs/DiagProcess"
6361
+ },
6362
+ "kind": {
6363
+ "$ref": "#/$defs/DiagErrorKind"
6364
+ },
6365
+ "source": {
6366
+ "type": "string",
6367
+ "minLength": 1,
6368
+ "maxLength": 128
6369
+ },
6370
+ "code": {
6371
+ "anyOf": [
6372
+ {
6373
+ "type": "string",
6374
+ "maxLength": 64
6375
+ },
6376
+ {
6377
+ "type": "null"
6378
+ }
6379
+ ]
6380
+ },
6381
+ "message": {
6382
+ "type": "string",
6383
+ "maxLength": 500
6384
+ },
6385
+ "count": {
6386
+ "type": "integer",
6387
+ "minimum": 0,
6388
+ "maximum": 9007199254740991
6389
+ },
6390
+ "first_seen_ms": {
6391
+ "type": "integer",
6392
+ "minimum": 0,
6393
+ "maximum": 9007199254740991
6394
+ },
6395
+ "last_seen_ms": {
6396
+ "type": "integer",
6397
+ "minimum": 0,
6398
+ "maximum": 9007199254740991
6399
+ },
6400
+ "status": {
6401
+ "$ref": "#/$defs/DiagErrorStatus"
6402
+ },
6403
+ "resolution_note": {
6404
+ "anyOf": [
6405
+ {
6406
+ "type": "string",
6407
+ "maxLength": 500
6408
+ },
6409
+ {
6410
+ "type": "null"
6411
+ }
6412
+ ]
6413
+ },
6414
+ "app_version": {
6415
+ "type": "string",
6416
+ "maxLength": 64
6417
+ }
6418
+ },
6419
+ "required": [
6420
+ "signature",
6421
+ "process",
6422
+ "kind",
6423
+ "source",
6424
+ "code",
6425
+ "message",
6426
+ "count",
6427
+ "first_seen_ms",
6428
+ "last_seen_ms",
6429
+ "status",
6430
+ "resolution_note",
6431
+ "app_version"
6432
+ ],
6433
+ "additionalProperties": false
6434
+ },
6435
+ "DiagErrorsListParams": {
6436
+ "type": "object",
6437
+ "properties": {
6438
+ "status": {
6439
+ "default": "open",
6440
+ "type": "string",
6441
+ "enum": [
6442
+ "open",
6443
+ "all"
6444
+ ]
6445
+ },
6446
+ "limit": {
6447
+ "default": 200,
6448
+ "type": "integer",
6449
+ "minimum": 1,
6450
+ "maximum": 500
6451
+ }
6452
+ },
6453
+ "additionalProperties": false
6454
+ },
6455
+ "DiagErrorsListResult": {
6456
+ "type": "object",
6457
+ "properties": {
6458
+ "entries": {
6459
+ "maxItems": 500,
6460
+ "type": "array",
6461
+ "items": {
6462
+ "$ref": "#/$defs/DiagErrorEntry"
6463
+ }
6464
+ },
6465
+ "total_signatures": {
6466
+ "type": "integer",
6467
+ "minimum": 0,
6468
+ "maximum": 9007199254740991
6469
+ },
6470
+ "total_occurrences": {
6471
+ "type": "integer",
6472
+ "minimum": 0,
6473
+ "maximum": 9007199254740991
6474
+ },
6475
+ "waiting": {
6476
+ "type": "integer",
6477
+ "minimum": 0,
6478
+ "maximum": 9007199254740991
6479
+ },
6480
+ "delivery": {
6481
+ "type": "string",
6482
+ "enum": [
6483
+ "signed_out",
6484
+ "ok",
6485
+ "failing"
6486
+ ]
6487
+ },
6488
+ "last_delivery_ms": {
6489
+ "anyOf": [
6490
+ {
6491
+ "type": "integer",
6492
+ "minimum": 0,
6493
+ "maximum": 9007199254740991
6494
+ },
6495
+ {
6496
+ "type": "null"
6497
+ }
6498
+ ]
6499
+ }
6500
+ },
6501
+ "required": [
6502
+ "entries",
6503
+ "total_signatures",
6504
+ "total_occurrences",
6505
+ "waiting",
6506
+ "delivery",
6507
+ "last_delivery_ms"
6508
+ ],
6509
+ "additionalProperties": false
6510
+ },
6511
+ "DiagErrorsReportParams": {
6512
+ "type": "object",
6513
+ "properties": {
6514
+ "process": {
6515
+ "type": "string",
6516
+ "enum": [
6517
+ "renderer",
6518
+ "hosted_page"
6519
+ ]
6520
+ },
6521
+ "kind": {
6522
+ "type": "string",
6523
+ "enum": [
6524
+ "uncaught_exception",
6525
+ "unhandled_rejection",
6526
+ "console_error",
6527
+ "banner"
6528
+ ]
6529
+ },
6530
+ "source": {
6531
+ "type": "string",
6532
+ "minLength": 1,
6533
+ "maxLength": 128
6534
+ },
6535
+ "message": {
6536
+ "type": "string",
6537
+ "minLength": 1,
6538
+ "maxLength": 2000
6539
+ },
6540
+ "code": {
6541
+ "type": "string",
6542
+ "maxLength": 64
6543
+ },
6544
+ "stack": {
6545
+ "type": "string",
6546
+ "maxLength": 8000
6547
+ }
6548
+ },
6549
+ "required": [
6550
+ "process",
6551
+ "kind",
6552
+ "source",
6553
+ "message"
6554
+ ],
6555
+ "additionalProperties": false
6556
+ },
6557
+ "DiagErrorsReportResult": {
6558
+ "type": "object",
6559
+ "properties": {
6560
+ "signature": {
6561
+ "type": "string",
6562
+ "pattern": "^[0-9a-f]{32}$"
6563
+ }
6564
+ },
6565
+ "required": [
6566
+ "signature"
6567
+ ],
6568
+ "additionalProperties": false
6569
+ },
6570
+ "DiagErrorsChangedEvent": {
6571
+ "type": "object",
6572
+ "properties": {
6573
+ "total_signatures": {
6574
+ "type": "integer",
6575
+ "minimum": 0,
6576
+ "maximum": 9007199254740991
6577
+ },
6578
+ "waiting": {
6579
+ "type": "integer",
6580
+ "minimum": 0,
6581
+ "maximum": 9007199254740991
6582
+ }
6583
+ },
6584
+ "required": [
6585
+ "total_signatures",
6586
+ "waiting"
6587
+ ],
6588
+ "additionalProperties": false
6589
+ },
6304
6590
  "FsWatchId": {
6305
6591
  "type": "string",
6306
6592
  "pattern": "^fw_[A-Za-z0-9]{12,40}$"
@@ -8606,6 +8892,219 @@
8606
8892
  ],
8607
8893
  "additionalProperties": false
8608
8894
  },
8895
+ "ProjectMoveChat": {
8896
+ "type": "object",
8897
+ "properties": {
8898
+ "chat_id": {
8899
+ "$ref": "#/$defs/ChatId"
8900
+ },
8901
+ "title": {
8902
+ "type": "string",
8903
+ "maxLength": 300
8904
+ }
8905
+ },
8906
+ "required": [
8907
+ "chat_id",
8908
+ "title"
8909
+ ],
8910
+ "additionalProperties": false
8911
+ },
8912
+ "ProjectMoveSkip": {
8913
+ "type": "object",
8914
+ "properties": {
8915
+ "chat_id": {
8916
+ "$ref": "#/$defs/ChatId"
8917
+ },
8918
+ "title": {
8919
+ "type": "string",
8920
+ "maxLength": 300
8921
+ },
8922
+ "window": {
8923
+ "anyOf": [
8924
+ {
8925
+ "$ref": "#/$defs/ChatPlace"
8926
+ },
8927
+ {
8928
+ "type": "null"
8929
+ }
8930
+ ]
8931
+ },
8932
+ "reason": {
8933
+ "type": "string",
8934
+ "maxLength": 400
8935
+ }
8936
+ },
8937
+ "required": [
8938
+ "chat_id",
8939
+ "title",
8940
+ "window",
8941
+ "reason"
8942
+ ],
8943
+ "additionalProperties": false
8944
+ },
8945
+ "ProjectMoveGroup": {
8946
+ "type": "object",
8947
+ "properties": {
8948
+ "ok": {
8949
+ "type": "boolean"
8950
+ },
8951
+ "name": {
8952
+ "type": "string",
8953
+ "maxLength": 200
8954
+ },
8955
+ "reason": {
8956
+ "type": "string",
8957
+ "maxLength": 400
8958
+ },
8959
+ "assign": {
8960
+ "type": "integer",
8961
+ "minimum": 0,
8962
+ "maximum": 9007199254740991
8963
+ },
8964
+ "already": {
8965
+ "type": "integer",
8966
+ "minimum": 0,
8967
+ "maximum": 9007199254740991
8968
+ },
8969
+ "from_other_groups": {
8970
+ "type": "integer",
8971
+ "minimum": 0,
8972
+ "maximum": 9007199254740991
8973
+ },
8974
+ "group_exists": {
8975
+ "type": "boolean"
8976
+ }
8977
+ },
8978
+ "required": [
8979
+ "ok",
8980
+ "name"
8981
+ ],
8982
+ "additionalProperties": false
8983
+ },
8984
+ "AppsProjectsToWindowParams": {
8985
+ "type": "object",
8986
+ "properties": {
8987
+ "app_key": {
8988
+ "$ref": "#/$defs/AppKey"
8989
+ },
8990
+ "project_id": {
8991
+ "$ref": "#/$defs/ChatProjectId"
8992
+ },
8993
+ "window": {
8994
+ "$ref": "#/$defs/ChatPlace"
8995
+ },
8996
+ "take_off": {
8997
+ "default": false,
8998
+ "type": "boolean"
8999
+ },
9000
+ "group": {
9001
+ "default": false,
9002
+ "type": "boolean"
9003
+ },
9004
+ "dry_run": {
9005
+ "default": false,
9006
+ "type": "boolean"
9007
+ }
9008
+ },
9009
+ "required": [
9010
+ "app_key",
9011
+ "project_id",
9012
+ "window"
9013
+ ],
9014
+ "additionalProperties": false
9015
+ },
9016
+ "AppsProjectsToWindowResult": {
9017
+ "type": "object",
9018
+ "properties": {
9019
+ "project_id": {
9020
+ "$ref": "#/$defs/ChatProjectId"
9021
+ },
9022
+ "window": {
9023
+ "$ref": "#/$defs/ChatPlace"
9024
+ },
9025
+ "dry_run": {
9026
+ "type": "boolean"
9027
+ },
9028
+ "place": {
9029
+ "maxItems": 5000,
9030
+ "type": "array",
9031
+ "items": {
9032
+ "$ref": "#/$defs/ProjectMoveChat"
9033
+ }
9034
+ },
9035
+ "already": {
9036
+ "maxItems": 5000,
9037
+ "type": "array",
9038
+ "items": {
9039
+ "$ref": "#/$defs/ProjectMoveChat"
9040
+ }
9041
+ },
9042
+ "take_off": {
9043
+ "maxItems": 20000,
9044
+ "type": "array",
9045
+ "items": {
9046
+ "type": "object",
9047
+ "properties": {
9048
+ "chat_id": {
9049
+ "$ref": "#/$defs/ChatId"
9050
+ },
9051
+ "title": {
9052
+ "type": "string",
9053
+ "maxLength": 300
9054
+ },
9055
+ "window": {
9056
+ "$ref": "#/$defs/ChatPlace"
9057
+ }
9058
+ },
9059
+ "required": [
9060
+ "chat_id",
9061
+ "title",
9062
+ "window"
9063
+ ],
9064
+ "additionalProperties": false
9065
+ }
9066
+ },
9067
+ "skipped": {
9068
+ "maxItems": 20000,
9069
+ "type": "array",
9070
+ "items": {
9071
+ "$ref": "#/$defs/ProjectMoveSkip"
9072
+ }
9073
+ },
9074
+ "other_apps": {
9075
+ "type": "integer",
9076
+ "minimum": 0,
9077
+ "maximum": 9007199254740991
9078
+ },
9079
+ "group": {
9080
+ "anyOf": [
9081
+ {
9082
+ "$ref": "#/$defs/ProjectMoveGroup"
9083
+ },
9084
+ {
9085
+ "type": "null"
9086
+ }
9087
+ ]
9088
+ },
9089
+ "message": {
9090
+ "type": "string",
9091
+ "maxLength": 400
9092
+ }
9093
+ },
9094
+ "required": [
9095
+ "project_id",
9096
+ "window",
9097
+ "dry_run",
9098
+ "place",
9099
+ "already",
9100
+ "take_off",
9101
+ "skipped",
9102
+ "other_apps",
9103
+ "group",
9104
+ "message"
9105
+ ],
9106
+ "additionalProperties": false
9107
+ },
8609
9108
  "ColdChat": {
8610
9109
  "type": "object",
8611
9110
  "properties": {
@@ -10036,6 +10535,19 @@
10036
10535
  "INTERNAL"
10037
10536
  ]
10038
10537
  },
10538
+ "apps.projects.to_window": {
10539
+ "params": "AppsProjectsToWindowParams",
10540
+ "result": "AppsProjectsToWindowResult",
10541
+ "kind": "unary",
10542
+ "since": "1.19",
10543
+ "errors": [
10544
+ "NOT_FOUND",
10545
+ "INVALID_PARAMS",
10546
+ "CONFLICT",
10547
+ "PLATFORM_UNSUPPORTED",
10548
+ "INTERNAL"
10549
+ ]
10550
+ },
10039
10551
  "apps.chats.cold": {
10040
10552
  "params": "AppsChatsColdParams",
10041
10553
  "result": "AppsChatsColdResult",
@@ -10570,6 +11082,24 @@
10570
11082
  "INTERNAL"
10571
11083
  ]
10572
11084
  },
11085
+ "diag.errors.list": {
11086
+ "params": "DiagErrorsListParams",
11087
+ "result": "DiagErrorsListResult",
11088
+ "kind": "unary",
11089
+ "since": "1.20",
11090
+ "errors": [
11091
+ "INTERNAL"
11092
+ ]
11093
+ },
11094
+ "diag.errors.report": {
11095
+ "params": "DiagErrorsReportParams",
11096
+ "result": "DiagErrorsReportResult",
11097
+ "kind": "unary",
11098
+ "since": "1.20",
11099
+ "errors": [
11100
+ "INTERNAL"
11101
+ ]
11102
+ },
10573
11103
  "coding.history.import_missing": {
10574
11104
  "params": "CodingHistoryImportMissingParams",
10575
11105
  "result": "CodingHistoryImportMissingResult",
@@ -10594,7 +11124,8 @@
10594
11124
  "models.progress": "ModelsProgressEvent",
10595
11125
  "coding.history.progress": "CodingHistoryProgressEvent",
10596
11126
  "relay.device_status": "RelayDeviceStatusEvent",
10597
- "relay.auth_expiring": "RelayAuthExpiringEvent"
11127
+ "relay.auth_expiring": "RelayAuthExpiringEvent",
11128
+ "diag.errors.changed": "DiagErrorsChangedEvent"
10598
11129
  },
10599
11130
  "x-services": {
10600
11131
  "ml": {
@@ -10671,6 +11202,10 @@
10671
11202
  },
10672
11203
  "ResourcesDisk": {
10673
11204
  "name": "1.17"
11205
+ },
11206
+ "StackServer": {
11207
+ "cpu_percent": "1.18",
11208
+ "memory_bytes": "1.18"
10674
11209
  }
10675
11210
  },
10676
11211
  "x-null-since": {
@@ -10679,5 +11214,5 @@
10679
11214
  "olderPeersGet": 0
10680
11215
  }
10681
11216
  },
10682
- "x-protocol-version": "1.17"
11217
+ "x-protocol-version": "1.20"
10683
11218
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/desktop-protocol",
3
- "version": "0.18.0",
3
+ "version": "0.20.0",
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",