@ai-matrx/desktop-protocol 0.19.0 → 0.21.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.cts CHANGED
@@ -2988,6 +2988,113 @@ 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
+ };
3079
+ readonly "apps.windows.shown": {
3080
+ readonly params: z.ZodObject<{
3081
+ app_key: z.ZodString;
3082
+ window: z.ZodString;
3083
+ }, z.core.$strict>;
3084
+ readonly result: z.ZodObject<{
3085
+ window: z.ZodString;
3086
+ open: z.ZodBoolean;
3087
+ sections: z.ZodArray<z.ZodObject<{
3088
+ title: z.ZodString;
3089
+ rows: z.ZodNumber;
3090
+ expanded: z.ZodBoolean;
3091
+ }, z.core.$strict>>;
3092
+ problem: z.ZodNullable<z.ZodString>;
3093
+ }, z.core.$strict>;
3094
+ readonly kind: "unary";
3095
+ readonly since: "1.21";
3096
+ readonly errors: readonly ["NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
3097
+ };
2991
3098
  readonly "coding.history.import_missing": {
2992
3099
  readonly params: z.ZodObject<{}, z.core.$strict>;
2993
3100
  readonly result: z.ZodObject<{
@@ -3134,6 +3241,10 @@ declare const EVENTS: {
3134
3241
  readonly "relay.auth_expiring": z.ZodObject<{
3135
3242
  expires_at_ms: z.ZodInt;
3136
3243
  }, z.core.$strict>;
3244
+ readonly "diag.errors.changed": z.ZodObject<{
3245
+ total_signatures: z.ZodInt;
3246
+ waiting: z.ZodInt;
3247
+ }, z.core.$strict>;
3137
3248
  };
3138
3249
 
3139
3250
  type DesktopClientStatus =
package/dist/react.d.ts CHANGED
@@ -2988,6 +2988,113 @@ 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
+ };
3079
+ readonly "apps.windows.shown": {
3080
+ readonly params: z.ZodObject<{
3081
+ app_key: z.ZodString;
3082
+ window: z.ZodString;
3083
+ }, z.core.$strict>;
3084
+ readonly result: z.ZodObject<{
3085
+ window: z.ZodString;
3086
+ open: z.ZodBoolean;
3087
+ sections: z.ZodArray<z.ZodObject<{
3088
+ title: z.ZodString;
3089
+ rows: z.ZodNumber;
3090
+ expanded: z.ZodBoolean;
3091
+ }, z.core.$strict>>;
3092
+ problem: z.ZodNullable<z.ZodString>;
3093
+ }, z.core.$strict>;
3094
+ readonly kind: "unary";
3095
+ readonly since: "1.21";
3096
+ readonly errors: readonly ["NOT_FOUND", "PERMISSION_DENIED_OS", "PLATFORM_UNSUPPORTED", "INTERNAL"];
3097
+ };
2991
3098
  readonly "coding.history.import_missing": {
2992
3099
  readonly params: z.ZodObject<{}, z.core.$strict>;
2993
3100
  readonly result: z.ZodObject<{
@@ -3134,6 +3241,10 @@ declare const EVENTS: {
3134
3241
  readonly "relay.auth_expiring": z.ZodObject<{
3135
3242
  expires_at_ms: z.ZodInt;
3136
3243
  }, z.core.$strict>;
3244
+ readonly "diag.errors.changed": z.ZodObject<{
3245
+ total_signatures: z.ZodInt;
3246
+ waiting: z.ZodInt;
3247
+ }, z.core.$strict>;
3137
3248
  };
3138
3249
 
3139
3250
  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}$"
@@ -8828,6 +9105,81 @@
8828
9105
  ],
8829
9106
  "additionalProperties": false
8830
9107
  },
9108
+ "ShownSection": {
9109
+ "type": "object",
9110
+ "properties": {
9111
+ "title": {
9112
+ "type": "string",
9113
+ "maxLength": 300
9114
+ },
9115
+ "rows": {
9116
+ "type": "integer",
9117
+ "minimum": 0,
9118
+ "maximum": 9007199254740991
9119
+ },
9120
+ "expanded": {
9121
+ "type": "boolean"
9122
+ }
9123
+ },
9124
+ "required": [
9125
+ "title",
9126
+ "rows",
9127
+ "expanded"
9128
+ ],
9129
+ "additionalProperties": false
9130
+ },
9131
+ "AppsWindowsShownParams": {
9132
+ "type": "object",
9133
+ "properties": {
9134
+ "app_key": {
9135
+ "$ref": "#/$defs/AppKey"
9136
+ },
9137
+ "window": {
9138
+ "$ref": "#/$defs/ChatPlace"
9139
+ }
9140
+ },
9141
+ "required": [
9142
+ "app_key",
9143
+ "window"
9144
+ ],
9145
+ "additionalProperties": false
9146
+ },
9147
+ "AppsWindowsShownResult": {
9148
+ "type": "object",
9149
+ "properties": {
9150
+ "window": {
9151
+ "$ref": "#/$defs/ChatPlace"
9152
+ },
9153
+ "open": {
9154
+ "type": "boolean"
9155
+ },
9156
+ "sections": {
9157
+ "maxItems": 200,
9158
+ "type": "array",
9159
+ "items": {
9160
+ "$ref": "#/$defs/ShownSection"
9161
+ }
9162
+ },
9163
+ "problem": {
9164
+ "anyOf": [
9165
+ {
9166
+ "type": "string",
9167
+ "maxLength": 400
9168
+ },
9169
+ {
9170
+ "type": "null"
9171
+ }
9172
+ ]
9173
+ }
9174
+ },
9175
+ "required": [
9176
+ "window",
9177
+ "open",
9178
+ "sections",
9179
+ "problem"
9180
+ ],
9181
+ "additionalProperties": false
9182
+ },
8831
9183
  "ColdChat": {
8832
9184
  "type": "object",
8833
9185
  "properties": {
@@ -10805,6 +11157,36 @@
10805
11157
  "INTERNAL"
10806
11158
  ]
10807
11159
  },
11160
+ "diag.errors.list": {
11161
+ "params": "DiagErrorsListParams",
11162
+ "result": "DiagErrorsListResult",
11163
+ "kind": "unary",
11164
+ "since": "1.20",
11165
+ "errors": [
11166
+ "INTERNAL"
11167
+ ]
11168
+ },
11169
+ "diag.errors.report": {
11170
+ "params": "DiagErrorsReportParams",
11171
+ "result": "DiagErrorsReportResult",
11172
+ "kind": "unary",
11173
+ "since": "1.20",
11174
+ "errors": [
11175
+ "INTERNAL"
11176
+ ]
11177
+ },
11178
+ "apps.windows.shown": {
11179
+ "params": "AppsWindowsShownParams",
11180
+ "result": "AppsWindowsShownResult",
11181
+ "kind": "unary",
11182
+ "since": "1.21",
11183
+ "errors": [
11184
+ "NOT_FOUND",
11185
+ "PERMISSION_DENIED_OS",
11186
+ "PLATFORM_UNSUPPORTED",
11187
+ "INTERNAL"
11188
+ ]
11189
+ },
10808
11190
  "coding.history.import_missing": {
10809
11191
  "params": "CodingHistoryImportMissingParams",
10810
11192
  "result": "CodingHistoryImportMissingResult",
@@ -10829,7 +11211,8 @@
10829
11211
  "models.progress": "ModelsProgressEvent",
10830
11212
  "coding.history.progress": "CodingHistoryProgressEvent",
10831
11213
  "relay.device_status": "RelayDeviceStatusEvent",
10832
- "relay.auth_expiring": "RelayAuthExpiringEvent"
11214
+ "relay.auth_expiring": "RelayAuthExpiringEvent",
11215
+ "diag.errors.changed": "DiagErrorsChangedEvent"
10833
11216
  },
10834
11217
  "x-services": {
10835
11218
  "ml": {
@@ -10918,5 +11301,5 @@
10918
11301
  "olderPeersGet": 0
10919
11302
  }
10920
11303
  },
10921
- "x-protocol-version": "1.19"
11304
+ "x-protocol-version": "1.21"
10922
11305
  }
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.21.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",