@ai-matrx/desktop-protocol 0.21.50 → 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.
@@ -3,6 +3,137 @@
3
3
  "$id": "https://aimatrx.com/schemas/desktop-protocol/1.0",
4
4
  "title": "DesktopProtocol",
5
5
  "$defs": {
6
+ "AppsWindowsSetAccountParams": {
7
+ "type": "object",
8
+ "properties": {
9
+ "app_key": {
10
+ "$ref": "#/$defs/AppKey"
11
+ },
12
+ "window": {
13
+ "$ref": "#/$defs/ChatPlace"
14
+ },
15
+ "email": {
16
+ "type": "string",
17
+ "minLength": 3,
18
+ "maxLength": 320
19
+ }
20
+ },
21
+ "required": [
22
+ "app_key",
23
+ "window",
24
+ "email"
25
+ ],
26
+ "additionalProperties": false
27
+ },
28
+ "AppsWindowsForgetParams": {
29
+ "type": "object",
30
+ "properties": {
31
+ "app_key": {
32
+ "$ref": "#/$defs/AppKey"
33
+ },
34
+ "window": {
35
+ "$ref": "#/$defs/ChatPlace"
36
+ }
37
+ },
38
+ "required": [
39
+ "app_key",
40
+ "window"
41
+ ],
42
+ "additionalProperties": false
43
+ },
44
+ "ProbeFact": {
45
+ "type": "object",
46
+ "properties": {
47
+ "key": {
48
+ "type": "string",
49
+ "maxLength": 200
50
+ },
51
+ "value": {
52
+ "type": "string",
53
+ "maxLength": 2000
54
+ }
55
+ },
56
+ "required": [
57
+ "key",
58
+ "value"
59
+ ],
60
+ "additionalProperties": false
61
+ },
62
+ "ProbeSource": {
63
+ "type": "object",
64
+ "properties": {
65
+ "source": {
66
+ "type": "string",
67
+ "maxLength": 120
68
+ },
69
+ "instance": {
70
+ "anyOf": [
71
+ {
72
+ "type": "string",
73
+ "maxLength": 64
74
+ },
75
+ {
76
+ "type": "null"
77
+ }
78
+ ]
79
+ },
80
+ "facts": {
81
+ "maxItems": 500,
82
+ "type": "array",
83
+ "items": {
84
+ "$ref": "#/$defs/ProbeFact"
85
+ }
86
+ }
87
+ },
88
+ "required": [
89
+ "source",
90
+ "instance",
91
+ "facts"
92
+ ],
93
+ "additionalProperties": false
94
+ },
95
+ "AppsChatsProbeParams": {
96
+ "type": "object",
97
+ "properties": {
98
+ "app_key": {
99
+ "$ref": "#/$defs/AppKey"
100
+ },
101
+ "chat_id": {
102
+ "type": "string",
103
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$"
104
+ }
105
+ },
106
+ "required": [
107
+ "app_key",
108
+ "chat_id"
109
+ ],
110
+ "additionalProperties": false
111
+ },
112
+ "AppsChatsProbeResult": {
113
+ "type": "object",
114
+ "properties": {
115
+ "app_key": {
116
+ "$ref": "#/$defs/AppKey"
117
+ },
118
+ "chat_id": {
119
+ "type": "string",
120
+ "maxLength": 128
121
+ },
122
+ "sources": {
123
+ "maxItems": 200,
124
+ "type": "array",
125
+ "items": {
126
+ "$ref": "#/$defs/ProbeSource"
127
+ }
128
+ }
129
+ },
130
+ "required": [
131
+ "app_key",
132
+ "chat_id",
133
+ "sources"
134
+ ],
135
+ "additionalProperties": false
136
+ },
6
137
  "InstanceStatus": {
7
138
  "type": "string",
8
139
  "enum": [
@@ -5331,6 +5462,11 @@
5331
5462
  },
5332
5463
  "agentRemovedDue": {
5333
5464
  "type": "boolean"
5465
+ },
5466
+ "accountId": {
5467
+ "type": "string",
5468
+ "minLength": 1,
5469
+ "maxLength": 64
5334
5470
  }
5335
5471
  },
5336
5472
  "required": [
@@ -5476,6 +5612,11 @@
5476
5612
  "type": "null"
5477
5613
  }
5478
5614
  ]
5615
+ },
5616
+ "accountId": {
5617
+ "type": "string",
5618
+ "minLength": 1,
5619
+ "maxLength": 64
5479
5620
  }
5480
5621
  },
5481
5622
  "required": [
@@ -5920,6 +6061,117 @@
5920
6061
  ],
5921
6062
  "additionalProperties": false
5922
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
+ },
5923
6175
  "CodingProviderStatus": {
5924
6176
  "type": "object",
5925
6177
  "properties": {
@@ -6103,28 +6355,18 @@
6103
6355
  "maxItems": 100,
6104
6356
  "type": "array",
6105
6357
  "items": {
6106
- "type": "object",
6107
- "properties": {
6108
- "id": {
6109
- "type": "string",
6110
- "minLength": 1,
6111
- "maxLength": 64
6112
- },
6113
- "label": {
6114
- "type": "string",
6115
- "maxLength": 200
6116
- }
6117
- },
6118
- "required": [
6119
- "id",
6120
- "label"
6121
- ],
6122
- "additionalProperties": false
6358
+ "$ref": "#/$defs/CodingProviderAccount"
6123
6359
  }
6124
6360
  },
6125
6361
  "accountsProblem": {
6126
6362
  "type": "string",
6127
6363
  "maxLength": 500
6364
+ },
6365
+ "usage": {
6366
+ "$ref": "#/$defs/CodingAccountUsage"
6367
+ },
6368
+ "continueOn": {
6369
+ "$ref": "#/$defs/CodingContinueTarget"
6128
6370
  }
6129
6371
  },
6130
6372
  "required": [
@@ -6330,6 +6572,11 @@
6330
6572
  "type": "null"
6331
6573
  }
6332
6574
  ]
6575
+ },
6576
+ "accountId": {
6577
+ "type": "string",
6578
+ "minLength": 1,
6579
+ "maxLength": 64
6333
6580
  }
6334
6581
  },
6335
6582
  "required": [
@@ -7092,6 +7339,59 @@
7092
7339
  ],
7093
7340
  "additionalProperties": false
7094
7341
  },
7342
+ "CodingAccountContinueParams": {
7343
+ "type": "object",
7344
+ "properties": {
7345
+ "session_id": {
7346
+ "type": "string",
7347
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
7348
+ },
7349
+ "account_profile_id": {
7350
+ "type": "string",
7351
+ "minLength": 1,
7352
+ "maxLength": 64
7353
+ },
7354
+ "client_request_id": {
7355
+ "$ref": "#/$defs/CodingClientRequestId"
7356
+ }
7357
+ },
7358
+ "required": [
7359
+ "session_id",
7360
+ "client_request_id"
7361
+ ],
7362
+ "additionalProperties": false
7363
+ },
7364
+ "CodingAccountContinueResult": {
7365
+ "type": "object",
7366
+ "properties": {
7367
+ "session": {
7368
+ "$ref": "#/$defs/CodingSessionRecord"
7369
+ },
7370
+ "run": {
7371
+ "anyOf": [
7372
+ {
7373
+ "$ref": "#/$defs/CodingRunRecord"
7374
+ },
7375
+ {
7376
+ "type": "null"
7377
+ }
7378
+ ]
7379
+ },
7380
+ "how": {
7381
+ "type": "string",
7382
+ "enum": [
7383
+ "moved",
7384
+ "fresh"
7385
+ ]
7386
+ }
7387
+ },
7388
+ "required": [
7389
+ "session",
7390
+ "run",
7391
+ "how"
7392
+ ],
7393
+ "additionalProperties": false
7394
+ },
7095
7395
  "CodingAgentSetParams": {
7096
7396
  "type": "object",
7097
7397
  "properties": {
@@ -7334,6 +7634,72 @@
7334
7634
  ],
7335
7635
  "additionalProperties": false
7336
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
+ },
7337
7703
  "CodingSearchResult": {
7338
7704
  "type": "object",
7339
7705
  "properties": {
@@ -7344,65 +7710,7 @@
7344
7710
  "hits": {
7345
7711
  "type": "array",
7346
7712
  "items": {
7347
- "type": "object",
7348
- "properties": {
7349
- "provider": {
7350
- "$ref": "#/$defs/CodingProviderName"
7351
- },
7352
- "providerSessionId": {
7353
- "type": "string",
7354
- "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
7355
- },
7356
- "title": {
7357
- "type": "string",
7358
- "maxLength": 500
7359
- },
7360
- "cwd": {
7361
- "anyOf": [
7362
- {
7363
- "type": "string",
7364
- "minLength": 1,
7365
- "maxLength": 4096
7366
- },
7367
- {
7368
- "type": "null"
7369
- }
7370
- ]
7371
- },
7372
- "updatedAt": {
7373
- "type": "string",
7374
- "minLength": 10,
7375
- "maxLength": 40
7376
- },
7377
- "where": {
7378
- "type": "string",
7379
- "enum": [
7380
- "title",
7381
- "content"
7382
- ]
7383
- },
7384
- "snippet": {
7385
- "anyOf": [
7386
- {
7387
- "type": "string",
7388
- "maxLength": 2000
7389
- },
7390
- {
7391
- "type": "null"
7392
- }
7393
- ]
7394
- }
7395
- },
7396
- "required": [
7397
- "provider",
7398
- "providerSessionId",
7399
- "title",
7400
- "cwd",
7401
- "updatedAt",
7402
- "where",
7403
- "snippet"
7404
- ],
7405
- "additionalProperties": false
7713
+ "$ref": "#/$defs/CodingSearchHit"
7406
7714
  }
7407
7715
  },
7408
7716
  "scanned": {
@@ -23644,6 +23952,41 @@
23644
23952
  "INTERNAL"
23645
23953
  ]
23646
23954
  },
23955
+ "apps.windows.set_account": {
23956
+ "params": "AppsWindowsSetAccountParams",
23957
+ "result": "AppsWindowActionResult",
23958
+ "kind": "unary",
23959
+ "since": "1.56",
23960
+ "errors": [
23961
+ "NOT_FOUND",
23962
+ "INVALID_PARAMS",
23963
+ "PLATFORM_UNSUPPORTED",
23964
+ "INTERNAL"
23965
+ ]
23966
+ },
23967
+ "apps.windows.forget": {
23968
+ "params": "AppsWindowsForgetParams",
23969
+ "result": "AppsWindowActionResult",
23970
+ "kind": "unary",
23971
+ "since": "1.56",
23972
+ "errors": [
23973
+ "NOT_FOUND",
23974
+ "CONFLICT",
23975
+ "PLATFORM_UNSUPPORTED",
23976
+ "INTERNAL"
23977
+ ]
23978
+ },
23979
+ "apps.chats.probe": {
23980
+ "params": "AppsChatsProbeParams",
23981
+ "result": "AppsChatsProbeResult",
23982
+ "kind": "unary",
23983
+ "since": "1.56",
23984
+ "errors": [
23985
+ "NOT_FOUND",
23986
+ "PLATFORM_UNSUPPORTED",
23987
+ "INTERNAL"
23988
+ ]
23989
+ },
23647
23990
  "apps.projects.move": {
23648
23991
  "params": "AppsProjectsMoveParams",
23649
23992
  "result": "AppsProjectsMoveResult",
@@ -24565,6 +24908,19 @@
24565
24908
  "INTERNAL"
24566
24909
  ]
24567
24910
  },
24911
+ "coding.account.continue": {
24912
+ "params": "CodingAccountContinueParams",
24913
+ "result": "CodingAccountContinueResult",
24914
+ "kind": "unary",
24915
+ "since": "1.56",
24916
+ "errors": [
24917
+ "INVALID_PARAMS",
24918
+ "NOT_FOUND",
24919
+ "RESOURCE_BUSY",
24920
+ "AUTH_FORBIDDEN",
24921
+ "INTERNAL"
24922
+ ]
24923
+ },
24568
24924
  "coding.agent.set": {
24569
24925
  "params": "CodingAgentSetParams",
24570
24926
  "result": "CodingAgentSetResult",
@@ -25963,7 +26319,29 @@
25963
26319
  },
25964
26320
  "CodingProviderStatus": {
25965
26321
  "accounts": "1.53",
25966
- "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"
25967
26345
  },
25968
26346
  "AppsInstancesListParams": {
25969
26347
  "fresh": "1.51"
@@ -26089,5 +26467,5 @@
26089
26467
  "olderPeersGet": 0
26090
26468
  }
26091
26469
  },
26092
- "x-protocol-version": "1.55"
26470
+ "x-protocol-version": "1.57"
26093
26471
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/desktop-protocol",
3
- "version": "0.21.50",
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": "9cc0176a71c2b5f511e1efe7dab2993958cb688a"
140
+ "gitHead": "cbd00cd23dc8d768dc7a833c003364b281fcdc08"
141
141
  }