@ai-matrx/desktop-protocol 0.19.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.
package/dist/react.d.ts CHANGED
@@ -2988,6 +2988,94 @@ declare const OPS: {
2988
2988
  readonly since: "1.16";
2989
2989
  readonly errors: readonly ["INTERNAL"];
2990
2990
  };
2991
+ readonly "diag.errors.list": {
2992
+ readonly params: z.ZodObject<{
2993
+ status: z.ZodDefault<z.ZodEnum<{
2994
+ open: "open";
2995
+ all: "all";
2996
+ }>>;
2997
+ limit: z.ZodDefault<z.ZodInt>;
2998
+ }, z.core.$strict>;
2999
+ readonly result: z.ZodObject<{
3000
+ entries: z.ZodArray<z.ZodObject<{
3001
+ signature: z.ZodString;
3002
+ process: z.ZodEnum<{
3003
+ main: "main";
3004
+ renderer: "renderer";
3005
+ hosted_page: "hosted_page";
3006
+ core: "core";
3007
+ pty_host: "pty_host";
3008
+ python_ml: "python_ml";
3009
+ python_coding: "python_coding";
3010
+ python_tools: "python_tools";
3011
+ relay: "relay";
3012
+ coding_sessions: "coding_sessions";
3013
+ claude_accounts: "claude_accounts";
3014
+ }>;
3015
+ kind: z.ZodEnum<{
3016
+ uncaught_exception: "uncaught_exception";
3017
+ unhandled_rejection: "unhandled_rejection";
3018
+ renderer_crash: "renderer_crash";
3019
+ native_crash: "native_crash";
3020
+ console_error: "console_error";
3021
+ load_failed: "load_failed";
3022
+ op_failed: "op_failed";
3023
+ child_exit: "child_exit";
3024
+ banner: "banner";
3025
+ logged_error: "logged_error";
3026
+ }>;
3027
+ source: z.ZodString;
3028
+ code: z.ZodNullable<z.ZodString>;
3029
+ message: z.ZodString;
3030
+ count: z.ZodInt;
3031
+ first_seen_ms: z.ZodInt;
3032
+ last_seen_ms: z.ZodInt;
3033
+ status: z.ZodEnum<{
3034
+ waiting: "waiting";
3035
+ sent: "sent";
3036
+ resolved: "resolved";
3037
+ }>;
3038
+ resolution_note: z.ZodNullable<z.ZodString>;
3039
+ app_version: z.ZodString;
3040
+ }, z.core.$strict>>;
3041
+ total_signatures: z.ZodInt;
3042
+ total_occurrences: z.ZodInt;
3043
+ waiting: z.ZodInt;
3044
+ delivery: z.ZodEnum<{
3045
+ ok: "ok";
3046
+ signed_out: "signed_out";
3047
+ failing: "failing";
3048
+ }>;
3049
+ last_delivery_ms: z.ZodNullable<z.ZodInt>;
3050
+ }, z.core.$strict>;
3051
+ readonly kind: "unary";
3052
+ readonly since: "1.20";
3053
+ readonly errors: readonly ["INTERNAL"];
3054
+ };
3055
+ readonly "diag.errors.report": {
3056
+ readonly params: z.ZodObject<{
3057
+ process: z.ZodEnum<{
3058
+ renderer: "renderer";
3059
+ hosted_page: "hosted_page";
3060
+ }>;
3061
+ kind: z.ZodEnum<{
3062
+ uncaught_exception: "uncaught_exception";
3063
+ unhandled_rejection: "unhandled_rejection";
3064
+ console_error: "console_error";
3065
+ banner: "banner";
3066
+ }>;
3067
+ source: z.ZodString;
3068
+ message: z.ZodString;
3069
+ code: z.ZodOptional<z.ZodString>;
3070
+ stack: z.ZodOptional<z.ZodString>;
3071
+ }, z.core.$strict>;
3072
+ readonly result: z.ZodObject<{
3073
+ signature: z.ZodString;
3074
+ }, z.core.$strict>;
3075
+ readonly kind: "unary";
3076
+ readonly since: "1.20";
3077
+ readonly errors: readonly ["INTERNAL"];
3078
+ };
2991
3079
  readonly "coding.history.import_missing": {
2992
3080
  readonly params: z.ZodObject<{}, z.core.$strict>;
2993
3081
  readonly result: z.ZodObject<{
@@ -3134,6 +3222,10 @@ declare const EVENTS: {
3134
3222
  readonly "relay.auth_expiring": z.ZodObject<{
3135
3223
  expires_at_ms: z.ZodInt;
3136
3224
  }, z.core.$strict>;
3225
+ readonly "diag.errors.changed": z.ZodObject<{
3226
+ total_signatures: z.ZodInt;
3227
+ waiting: z.ZodInt;
3228
+ }, z.core.$strict>;
3137
3229
  };
3138
3230
 
3139
3231
  type DesktopClientStatus =
@@ -6310,6 +6310,283 @@
6310
6310
  ],
6311
6311
  "additionalProperties": false
6312
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
+ },
6313
6590
  "FsWatchId": {
6314
6591
  "type": "string",
6315
6592
  "pattern": "^fw_[A-Za-z0-9]{12,40}$"
@@ -10805,6 +11082,24 @@
10805
11082
  "INTERNAL"
10806
11083
  ]
10807
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
+ },
10808
11103
  "coding.history.import_missing": {
10809
11104
  "params": "CodingHistoryImportMissingParams",
10810
11105
  "result": "CodingHistoryImportMissingResult",
@@ -10829,7 +11124,8 @@
10829
11124
  "models.progress": "ModelsProgressEvent",
10830
11125
  "coding.history.progress": "CodingHistoryProgressEvent",
10831
11126
  "relay.device_status": "RelayDeviceStatusEvent",
10832
- "relay.auth_expiring": "RelayAuthExpiringEvent"
11127
+ "relay.auth_expiring": "RelayAuthExpiringEvent",
11128
+ "diag.errors.changed": "DiagErrorsChangedEvent"
10833
11129
  },
10834
11130
  "x-services": {
10835
11131
  "ml": {
@@ -10918,5 +11214,5 @@
10918
11214
  "olderPeersGet": 0
10919
11215
  }
10920
11216
  },
10921
- "x-protocol-version": "1.19"
11217
+ "x-protocol-version": "1.20"
10922
11218
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/desktop-protocol",
3
- "version": "0.19.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",