@ai-matrx/desktop-protocol 0.21.51 → 0.21.52

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
@@ -3992,8 +3992,50 @@ declare const OPS: {
3992
3992
  accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
3993
3993
  id: z.ZodString;
3994
3994
  label: z.ZodString;
3995
+ ready: z.ZodOptional<z.ZodBoolean>;
3996
+ lastProblem: z.ZodOptional<z.ZodObject<{
3997
+ kind: z.ZodEnum<{
3998
+ "usage-limit": "usage-limit";
3999
+ "signed-out": "signed-out";
4000
+ }>;
4001
+ message: z.ZodString;
4002
+ until: z.ZodNullable<z.ZodString>;
4003
+ at: z.ZodString;
4004
+ }, z.core.$strict>>;
4005
+ problem: z.ZodOptional<z.ZodString>;
4006
+ fix: z.ZodOptional<z.ZodString>;
4007
+ usage: z.ZodOptional<z.ZodObject<{
4008
+ windows: z.ZodArray<z.ZodObject<{
4009
+ label: z.ZodString;
4010
+ usedPercent: z.ZodNullable<z.ZodNumber>;
4011
+ resetsAt: z.ZodNullable<z.ZodString>;
4012
+ valueLabel: z.ZodNullable<z.ZodString>;
4013
+ }, z.core.$strict>>;
4014
+ status: z.ZodNullable<z.ZodString>;
4015
+ resetsAt: z.ZodNullable<z.ZodString>;
4016
+ at: z.ZodString;
4017
+ }, z.core.$strict>>;
4018
+ continueOn: z.ZodOptional<z.ZodObject<{
4019
+ accountId: z.ZodNullable<z.ZodString>;
4020
+ label: z.ZodString;
4021
+ }, z.core.$strict>>;
3995
4022
  }, z.core.$strict>>>;
3996
4023
  accountsProblem: z.ZodOptional<z.ZodString>;
4024
+ usage: z.ZodOptional<z.ZodObject<{
4025
+ windows: z.ZodArray<z.ZodObject<{
4026
+ label: z.ZodString;
4027
+ usedPercent: z.ZodNullable<z.ZodNumber>;
4028
+ resetsAt: z.ZodNullable<z.ZodString>;
4029
+ valueLabel: z.ZodNullable<z.ZodString>;
4030
+ }, z.core.$strict>>;
4031
+ status: z.ZodNullable<z.ZodString>;
4032
+ resetsAt: z.ZodNullable<z.ZodString>;
4033
+ at: z.ZodString;
4034
+ }, z.core.$strict>>;
4035
+ continueOn: z.ZodOptional<z.ZodObject<{
4036
+ accountId: z.ZodNullable<z.ZodString>;
4037
+ label: z.ZodString;
4038
+ }, z.core.$strict>>;
3997
4039
  }, z.core.$strict>>;
3998
4040
  }, z.core.$strict>;
3999
4041
  readonly kind: "unary";
@@ -4057,6 +4099,7 @@ declare const OPS: {
4057
4099
  replaces: z.ZodNullable<z.ZodString>;
4058
4100
  }, z.core.$strict>>;
4059
4101
  agentRemovedDue: z.ZodBoolean;
4102
+ accountId: z.ZodOptional<z.ZodString>;
4060
4103
  }, z.core.$strict>>;
4061
4104
  runs: z.ZodRecord<z.ZodString, z.ZodObject<{
4062
4105
  runId: z.ZodString;
@@ -4130,6 +4173,7 @@ declare const OPS: {
4130
4173
  }>;
4131
4174
  label: z.ZodString;
4132
4175
  }, z.core.$strict>>;
4176
+ accountId: z.ZodOptional<z.ZodString>;
4133
4177
  }, z.core.$strict>>;
4134
4178
  title_status: z.ZodObject<{
4135
4179
  owner: z.ZodBoolean;
@@ -4183,6 +4227,7 @@ declare const OPS: {
4183
4227
  message: z.ZodString;
4184
4228
  pid: z.ZodNullable<z.ZodInt>;
4185
4229
  }, z.core.$strict>>;
4230
+ accountId: z.ZodOptional<z.ZodString>;
4186
4231
  }, z.core.$strict>>;
4187
4232
  }, z.core.$strict>;
4188
4233
  readonly kind: "unary";
@@ -4524,6 +4569,7 @@ declare const OPS: {
4524
4569
  replaces: z.ZodNullable<z.ZodString>;
4525
4570
  }, z.core.$strict>>;
4526
4571
  agentRemovedDue: z.ZodBoolean;
4572
+ accountId: z.ZodOptional<z.ZodString>;
4527
4573
  }, z.core.$strict>;
4528
4574
  run: z.ZodNullable<z.ZodObject<{
4529
4575
  runId: z.ZodString;
@@ -4644,6 +4690,7 @@ declare const OPS: {
4644
4690
  replaces: z.ZodNullable<z.ZodString>;
4645
4691
  }, z.core.$strict>>;
4646
4692
  agentRemovedDue: z.ZodBoolean;
4693
+ accountId: z.ZodOptional<z.ZodString>;
4647
4694
  }, z.core.$strict>;
4648
4695
  }, z.core.$strict>;
4649
4696
  readonly kind: "unary";
@@ -4711,6 +4758,7 @@ declare const OPS: {
4711
4758
  replaces: z.ZodNullable<z.ZodString>;
4712
4759
  }, z.core.$strict>>;
4713
4760
  agentRemovedDue: z.ZodBoolean;
4761
+ accountId: z.ZodOptional<z.ZodString>;
4714
4762
  }, z.core.$strict>;
4715
4763
  run: z.ZodNullable<z.ZodObject<{
4716
4764
  runId: z.ZodString;
@@ -4890,6 +4938,7 @@ declare const OPS: {
4890
4938
  replaces: z.ZodNullable<z.ZodString>;
4891
4939
  }, z.core.$strict>>;
4892
4940
  agentRemovedDue: z.ZodBoolean;
4941
+ accountId: z.ZodOptional<z.ZodString>;
4893
4942
  }, z.core.$strict>;
4894
4943
  }, z.core.$strict>;
4895
4944
  readonly kind: "unary";
@@ -4957,6 +5006,7 @@ declare const OPS: {
4957
5006
  replaces: z.ZodNullable<z.ZodString>;
4958
5007
  }, z.core.$strict>>;
4959
5008
  agentRemovedDue: z.ZodBoolean;
5009
+ accountId: z.ZodOptional<z.ZodString>;
4960
5010
  }, z.core.$strict>;
4961
5011
  run: z.ZodNullable<z.ZodObject<{
4962
5012
  runId: z.ZodString;
@@ -5073,6 +5123,7 @@ declare const OPS: {
5073
5123
  replaces: z.ZodNullable<z.ZodString>;
5074
5124
  }, z.core.$strict>>;
5075
5125
  agentRemovedDue: z.ZodBoolean;
5126
+ accountId: z.ZodOptional<z.ZodString>;
5076
5127
  }, z.core.$strict>;
5077
5128
  }, z.core.$strict>;
5078
5129
  readonly kind: "unary";
@@ -5174,6 +5225,7 @@ declare const OPS: {
5174
5225
  }>;
5175
5226
  label: z.ZodString;
5176
5227
  }, z.core.$strict>>;
5228
+ accountId: z.ZodOptional<z.ZodString>;
5177
5229
  }, z.core.$strict>>;
5178
5230
  }, z.core.$strict>;
5179
5231
  readonly kind: "unary";
@@ -5202,6 +5254,7 @@ declare const OPS: {
5202
5254
  content: "content";
5203
5255
  }>;
5204
5256
  snippet: z.ZodNullable<z.ZodString>;
5257
+ accountId: z.ZodOptional<z.ZodString>;
5205
5258
  }, z.core.$strict>>;
5206
5259
  scanned: z.ZodInt;
5207
5260
  total: z.ZodInt;
@@ -7543,6 +7596,7 @@ declare const EVENTS: {
7543
7596
  replaces: z.ZodNullable<z.ZodString>;
7544
7597
  }, z.core.$strict>>;
7545
7598
  agentRemovedDue: z.ZodBoolean;
7599
+ accountId: z.ZodOptional<z.ZodString>;
7546
7600
  }, z.core.$strict>;
7547
7601
  }, z.core.$strict>, z.ZodObject<{
7548
7602
  kind: z.ZodLiteral<"run">;
@@ -7631,6 +7685,7 @@ declare const EVENTS: {
7631
7685
  }>;
7632
7686
  label: z.ZodString;
7633
7687
  }, z.core.$strict>>;
7688
+ accountId: z.ZodOptional<z.ZodString>;
7634
7689
  }, z.core.$strict>>;
7635
7690
  }, z.core.$strict>], "kind">;
7636
7691
  readonly "coding.watch_state": z.ZodObject<{
@@ -5462,6 +5462,11 @@
5462
5462
  },
5463
5463
  "agentRemovedDue": {
5464
5464
  "type": "boolean"
5465
+ },
5466
+ "accountId": {
5467
+ "type": "string",
5468
+ "minLength": 1,
5469
+ "maxLength": 64
5465
5470
  }
5466
5471
  },
5467
5472
  "required": [
@@ -5607,6 +5612,11 @@
5607
5612
  "type": "null"
5608
5613
  }
5609
5614
  ]
5615
+ },
5616
+ "accountId": {
5617
+ "type": "string",
5618
+ "minLength": 1,
5619
+ "maxLength": 64
5610
5620
  }
5611
5621
  },
5612
5622
  "required": [
@@ -6051,6 +6061,117 @@
6051
6061
  ],
6052
6062
  "additionalProperties": false
6053
6063
  },
6064
+ "CodingAccountUsage": {
6065
+ "type": "object",
6066
+ "properties": {
6067
+ "windows": {
6068
+ "maxItems": 20,
6069
+ "type": "array",
6070
+ "items": {
6071
+ "$ref": "#/$defs/CodingQuotaWindow"
6072
+ }
6073
+ },
6074
+ "status": {
6075
+ "anyOf": [
6076
+ {
6077
+ "type": "string",
6078
+ "maxLength": 60
6079
+ },
6080
+ {
6081
+ "type": "null"
6082
+ }
6083
+ ]
6084
+ },
6085
+ "resetsAt": {
6086
+ "anyOf": [
6087
+ {
6088
+ "type": "string",
6089
+ "maxLength": 80
6090
+ },
6091
+ {
6092
+ "type": "null"
6093
+ }
6094
+ ]
6095
+ },
6096
+ "at": {
6097
+ "type": "string",
6098
+ "minLength": 10,
6099
+ "maxLength": 40
6100
+ }
6101
+ },
6102
+ "required": [
6103
+ "windows",
6104
+ "status",
6105
+ "resetsAt",
6106
+ "at"
6107
+ ],
6108
+ "additionalProperties": false
6109
+ },
6110
+ "CodingContinueTarget": {
6111
+ "type": "object",
6112
+ "properties": {
6113
+ "accountId": {
6114
+ "anyOf": [
6115
+ {
6116
+ "type": "string",
6117
+ "minLength": 1,
6118
+ "maxLength": 64
6119
+ },
6120
+ {
6121
+ "type": "null"
6122
+ }
6123
+ ]
6124
+ },
6125
+ "label": {
6126
+ "type": "string",
6127
+ "maxLength": 200
6128
+ }
6129
+ },
6130
+ "required": [
6131
+ "accountId",
6132
+ "label"
6133
+ ],
6134
+ "additionalProperties": false
6135
+ },
6136
+ "CodingProviderAccount": {
6137
+ "type": "object",
6138
+ "properties": {
6139
+ "id": {
6140
+ "type": "string",
6141
+ "minLength": 1,
6142
+ "maxLength": 64
6143
+ },
6144
+ "label": {
6145
+ "type": "string",
6146
+ "maxLength": 200
6147
+ },
6148
+ "ready": {
6149
+ "type": "boolean"
6150
+ },
6151
+ "lastProblem": {
6152
+ "$ref": "#/$defs/CodingProviderProblem"
6153
+ },
6154
+ "problem": {
6155
+ "type": "string",
6156
+ "maxLength": 500
6157
+ },
6158
+ "fix": {
6159
+ "type": "string",
6160
+ "maxLength": 500
6161
+ },
6162
+ "usage": {
6163
+ "$ref": "#/$defs/CodingAccountUsage"
6164
+ },
6165
+ "continueOn": {
6166
+ "$ref": "#/$defs/CodingContinueTarget"
6167
+ }
6168
+ },
6169
+ "required": [
6170
+ "id",
6171
+ "label"
6172
+ ],
6173
+ "additionalProperties": false
6174
+ },
6054
6175
  "CodingProviderStatus": {
6055
6176
  "type": "object",
6056
6177
  "properties": {
@@ -6234,28 +6355,18 @@
6234
6355
  "maxItems": 100,
6235
6356
  "type": "array",
6236
6357
  "items": {
6237
- "type": "object",
6238
- "properties": {
6239
- "id": {
6240
- "type": "string",
6241
- "minLength": 1,
6242
- "maxLength": 64
6243
- },
6244
- "label": {
6245
- "type": "string",
6246
- "maxLength": 200
6247
- }
6248
- },
6249
- "required": [
6250
- "id",
6251
- "label"
6252
- ],
6253
- "additionalProperties": false
6358
+ "$ref": "#/$defs/CodingProviderAccount"
6254
6359
  }
6255
6360
  },
6256
6361
  "accountsProblem": {
6257
6362
  "type": "string",
6258
6363
  "maxLength": 500
6364
+ },
6365
+ "usage": {
6366
+ "$ref": "#/$defs/CodingAccountUsage"
6367
+ },
6368
+ "continueOn": {
6369
+ "$ref": "#/$defs/CodingContinueTarget"
6259
6370
  }
6260
6371
  },
6261
6372
  "required": [
@@ -6461,6 +6572,11 @@
6461
6572
  "type": "null"
6462
6573
  }
6463
6574
  ]
6575
+ },
6576
+ "accountId": {
6577
+ "type": "string",
6578
+ "minLength": 1,
6579
+ "maxLength": 64
6464
6580
  }
6465
6581
  },
6466
6582
  "required": [
@@ -7518,6 +7634,72 @@
7518
7634
  ],
7519
7635
  "additionalProperties": false
7520
7636
  },
7637
+ "CodingSearchHit": {
7638
+ "type": "object",
7639
+ "properties": {
7640
+ "provider": {
7641
+ "$ref": "#/$defs/CodingProviderName"
7642
+ },
7643
+ "providerSessionId": {
7644
+ "type": "string",
7645
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
7646
+ },
7647
+ "title": {
7648
+ "type": "string",
7649
+ "maxLength": 500
7650
+ },
7651
+ "cwd": {
7652
+ "anyOf": [
7653
+ {
7654
+ "type": "string",
7655
+ "minLength": 1,
7656
+ "maxLength": 4096
7657
+ },
7658
+ {
7659
+ "type": "null"
7660
+ }
7661
+ ]
7662
+ },
7663
+ "updatedAt": {
7664
+ "type": "string",
7665
+ "minLength": 10,
7666
+ "maxLength": 40
7667
+ },
7668
+ "where": {
7669
+ "type": "string",
7670
+ "enum": [
7671
+ "title",
7672
+ "content"
7673
+ ]
7674
+ },
7675
+ "snippet": {
7676
+ "anyOf": [
7677
+ {
7678
+ "type": "string",
7679
+ "maxLength": 2000
7680
+ },
7681
+ {
7682
+ "type": "null"
7683
+ }
7684
+ ]
7685
+ },
7686
+ "accountId": {
7687
+ "type": "string",
7688
+ "minLength": 1,
7689
+ "maxLength": 64
7690
+ }
7691
+ },
7692
+ "required": [
7693
+ "provider",
7694
+ "providerSessionId",
7695
+ "title",
7696
+ "cwd",
7697
+ "updatedAt",
7698
+ "where",
7699
+ "snippet"
7700
+ ],
7701
+ "additionalProperties": false
7702
+ },
7521
7703
  "CodingSearchResult": {
7522
7704
  "type": "object",
7523
7705
  "properties": {
@@ -7528,65 +7710,7 @@
7528
7710
  "hits": {
7529
7711
  "type": "array",
7530
7712
  "items": {
7531
- "type": "object",
7532
- "properties": {
7533
- "provider": {
7534
- "$ref": "#/$defs/CodingProviderName"
7535
- },
7536
- "providerSessionId": {
7537
- "type": "string",
7538
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
7539
- },
7540
- "title": {
7541
- "type": "string",
7542
- "maxLength": 500
7543
- },
7544
- "cwd": {
7545
- "anyOf": [
7546
- {
7547
- "type": "string",
7548
- "minLength": 1,
7549
- "maxLength": 4096
7550
- },
7551
- {
7552
- "type": "null"
7553
- }
7554
- ]
7555
- },
7556
- "updatedAt": {
7557
- "type": "string",
7558
- "minLength": 10,
7559
- "maxLength": 40
7560
- },
7561
- "where": {
7562
- "type": "string",
7563
- "enum": [
7564
- "title",
7565
- "content"
7566
- ]
7567
- },
7568
- "snippet": {
7569
- "anyOf": [
7570
- {
7571
- "type": "string",
7572
- "maxLength": 2000
7573
- },
7574
- {
7575
- "type": "null"
7576
- }
7577
- ]
7578
- }
7579
- },
7580
- "required": [
7581
- "provider",
7582
- "providerSessionId",
7583
- "title",
7584
- "cwd",
7585
- "updatedAt",
7586
- "where",
7587
- "snippet"
7588
- ],
7589
- "additionalProperties": false
7713
+ "$ref": "#/$defs/CodingSearchHit"
7590
7714
  }
7591
7715
  },
7592
7716
  "scanned": {
@@ -26195,7 +26319,29 @@
26195
26319
  },
26196
26320
  "CodingProviderStatus": {
26197
26321
  "accounts": "1.53",
26198
- "accountsProblem": "1.53"
26322
+ "accountsProblem": "1.53",
26323
+ "usage": "1.57",
26324
+ "continueOn": "1.57"
26325
+ },
26326
+ "CodingProviderAccount": {
26327
+ "ready": "1.57",
26328
+ "lastProblem": "1.57",
26329
+ "problem": "1.57",
26330
+ "fix": "1.57",
26331
+ "usage": "1.57",
26332
+ "continueOn": "1.57"
26333
+ },
26334
+ "CodingSessionRecord": {
26335
+ "accountId": "1.57"
26336
+ },
26337
+ "CodingDiscoveredChat": {
26338
+ "accountId": "1.57"
26339
+ },
26340
+ "CodingRecentRow": {
26341
+ "accountId": "1.57"
26342
+ },
26343
+ "CodingSearchHit": {
26344
+ "accountId": "1.57"
26199
26345
  },
26200
26346
  "AppsInstancesListParams": {
26201
26347
  "fresh": "1.51"
@@ -26321,5 +26467,5 @@
26321
26467
  "olderPeersGet": 0
26322
26468
  }
26323
26469
  },
26324
- "x-protocol-version": "1.56"
26470
+ "x-protocol-version": "1.57"
26325
26471
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/desktop-protocol",
3
- "version": "0.21.51",
3
+ "version": "0.21.52",
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",
@@ -137,5 +137,5 @@
137
137
  "test:watch": "vitest",
138
138
  "verify:tarball": "node ./scripts/verify-tarball.mjs"
139
139
  },
140
- "gitHead": "5c76d6faf1e2a124bdaf230d12c8a1f16d55c8dc"
140
+ "gitHead": "cbd00cd23dc8d768dc7a833c003364b281fcdc08"
141
141
  }