@ai-matrx/desktop-protocol 0.21.49 → 0.21.51

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": [
@@ -7092,6 +7223,59 @@
7092
7223
  ],
7093
7224
  "additionalProperties": false
7094
7225
  },
7226
+ "CodingAccountContinueParams": {
7227
+ "type": "object",
7228
+ "properties": {
7229
+ "session_id": {
7230
+ "type": "string",
7231
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"
7232
+ },
7233
+ "account_profile_id": {
7234
+ "type": "string",
7235
+ "minLength": 1,
7236
+ "maxLength": 64
7237
+ },
7238
+ "client_request_id": {
7239
+ "$ref": "#/$defs/CodingClientRequestId"
7240
+ }
7241
+ },
7242
+ "required": [
7243
+ "session_id",
7244
+ "client_request_id"
7245
+ ],
7246
+ "additionalProperties": false
7247
+ },
7248
+ "CodingAccountContinueResult": {
7249
+ "type": "object",
7250
+ "properties": {
7251
+ "session": {
7252
+ "$ref": "#/$defs/CodingSessionRecord"
7253
+ },
7254
+ "run": {
7255
+ "anyOf": [
7256
+ {
7257
+ "$ref": "#/$defs/CodingRunRecord"
7258
+ },
7259
+ {
7260
+ "type": "null"
7261
+ }
7262
+ ]
7263
+ },
7264
+ "how": {
7265
+ "type": "string",
7266
+ "enum": [
7267
+ "moved",
7268
+ "fresh"
7269
+ ]
7270
+ }
7271
+ },
7272
+ "required": [
7273
+ "session",
7274
+ "run",
7275
+ "how"
7276
+ ],
7277
+ "additionalProperties": false
7278
+ },
7095
7279
  "CodingAgentSetParams": {
7096
7280
  "type": "object",
7097
7281
  "properties": {
@@ -13379,6 +13563,385 @@
13379
13563
  ],
13380
13564
  "additionalProperties": false
13381
13565
  },
13566
+ "AppsChatsCopyToAccountParams": {
13567
+ "type": "object",
13568
+ "properties": {
13569
+ "app_key": {
13570
+ "$ref": "#/$defs/AppKey"
13571
+ },
13572
+ "origin": {
13573
+ "$ref": "#/$defs/ChatPlace"
13574
+ },
13575
+ "target": {
13576
+ "$ref": "#/$defs/ChatPlace"
13577
+ },
13578
+ "chat_ids": {
13579
+ "minItems": 1,
13580
+ "maxItems": 500,
13581
+ "type": "array",
13582
+ "items": {
13583
+ "$ref": "#/$defs/ChatId"
13584
+ }
13585
+ },
13586
+ "mode": {
13587
+ "default": "copy",
13588
+ "type": "string",
13589
+ "enum": [
13590
+ "copy",
13591
+ "move"
13592
+ ]
13593
+ },
13594
+ "restart": {
13595
+ "default": "queued",
13596
+ "type": "string",
13597
+ "enum": [
13598
+ "queued",
13599
+ "restart_verify"
13600
+ ]
13601
+ },
13602
+ "mirror_groups": {
13603
+ "default": true,
13604
+ "type": "boolean"
13605
+ },
13606
+ "pins_follow": {
13607
+ "default": true,
13608
+ "type": "boolean"
13609
+ },
13610
+ "source_group": {
13611
+ "type": "string",
13612
+ "minLength": 1,
13613
+ "maxLength": 200
13614
+ }
13615
+ },
13616
+ "required": [
13617
+ "app_key",
13618
+ "origin",
13619
+ "target",
13620
+ "chat_ids"
13621
+ ],
13622
+ "additionalProperties": false
13623
+ },
13624
+ "CopiedChat": {
13625
+ "type": "object",
13626
+ "properties": {
13627
+ "chat_id": {
13628
+ "$ref": "#/$defs/ChatId"
13629
+ },
13630
+ "title": {
13631
+ "type": "string",
13632
+ "maxLength": 500
13633
+ },
13634
+ "outcome": {
13635
+ "type": "string",
13636
+ "enum": [
13637
+ "copied",
13638
+ "moved",
13639
+ "already",
13640
+ "skipped"
13641
+ ]
13642
+ },
13643
+ "group": {
13644
+ "anyOf": [
13645
+ {
13646
+ "type": "string",
13647
+ "maxLength": 200
13648
+ },
13649
+ {
13650
+ "type": "null"
13651
+ }
13652
+ ]
13653
+ },
13654
+ "group_state": {
13655
+ "anyOf": [
13656
+ {
13657
+ "type": "string",
13658
+ "enum": [
13659
+ "now",
13660
+ "next_close",
13661
+ "failed"
13662
+ ]
13663
+ },
13664
+ {
13665
+ "type": "null"
13666
+ }
13667
+ ]
13668
+ },
13669
+ "pinned": {
13670
+ "type": "boolean"
13671
+ },
13672
+ "pin_state": {
13673
+ "anyOf": [
13674
+ {
13675
+ "type": "string",
13676
+ "enum": [
13677
+ "now",
13678
+ "next_close",
13679
+ "failed"
13680
+ ]
13681
+ },
13682
+ {
13683
+ "type": "null"
13684
+ }
13685
+ ]
13686
+ },
13687
+ "state": {
13688
+ "type": "string",
13689
+ "enum": [
13690
+ "verified",
13691
+ "queued",
13692
+ "failed"
13693
+ ]
13694
+ },
13695
+ "reason": {
13696
+ "anyOf": [
13697
+ {
13698
+ "type": "string",
13699
+ "maxLength": 400
13700
+ },
13701
+ {
13702
+ "type": "null"
13703
+ }
13704
+ ]
13705
+ }
13706
+ },
13707
+ "required": [
13708
+ "chat_id",
13709
+ "title",
13710
+ "outcome",
13711
+ "group",
13712
+ "group_state",
13713
+ "pinned",
13714
+ "pin_state",
13715
+ "state",
13716
+ "reason"
13717
+ ],
13718
+ "additionalProperties": false
13719
+ },
13720
+ "AppsChatsCopyToAccountResult": {
13721
+ "type": "object",
13722
+ "properties": {
13723
+ "message": {
13724
+ "type": "string",
13725
+ "maxLength": 400
13726
+ },
13727
+ "origin": {
13728
+ "$ref": "#/$defs/ChatPlace"
13729
+ },
13730
+ "target": {
13731
+ "$ref": "#/$defs/ChatPlace"
13732
+ },
13733
+ "mode": {
13734
+ "type": "string",
13735
+ "enum": [
13736
+ "copy",
13737
+ "move"
13738
+ ]
13739
+ },
13740
+ "project": {
13741
+ "type": "object",
13742
+ "properties": {
13743
+ "id": {
13744
+ "$ref": "#/$defs/ChatProjectId"
13745
+ },
13746
+ "name": {
13747
+ "type": "string",
13748
+ "maxLength": 200
13749
+ }
13750
+ },
13751
+ "required": [
13752
+ "id",
13753
+ "name"
13754
+ ],
13755
+ "additionalProperties": false
13756
+ },
13757
+ "groups": {
13758
+ "maxItems": 500,
13759
+ "type": "array",
13760
+ "items": {
13761
+ "type": "object",
13762
+ "properties": {
13763
+ "name": {
13764
+ "type": "string",
13765
+ "maxLength": 200
13766
+ },
13767
+ "chats": {
13768
+ "type": "integer",
13769
+ "minimum": 0,
13770
+ "maximum": 9007199254740991
13771
+ },
13772
+ "ok": {
13773
+ "type": "boolean"
13774
+ },
13775
+ "when": {
13776
+ "anyOf": [
13777
+ {
13778
+ "type": "string",
13779
+ "enum": [
13780
+ "now",
13781
+ "next_close"
13782
+ ]
13783
+ },
13784
+ {
13785
+ "type": "null"
13786
+ }
13787
+ ]
13788
+ },
13789
+ "reason": {
13790
+ "anyOf": [
13791
+ {
13792
+ "type": "string",
13793
+ "maxLength": 400
13794
+ },
13795
+ {
13796
+ "type": "null"
13797
+ }
13798
+ ]
13799
+ }
13800
+ },
13801
+ "required": [
13802
+ "name",
13803
+ "chats",
13804
+ "ok",
13805
+ "when",
13806
+ "reason"
13807
+ ],
13808
+ "additionalProperties": false
13809
+ }
13810
+ },
13811
+ "source_group": {
13812
+ "anyOf": [
13813
+ {
13814
+ "type": "object",
13815
+ "properties": {
13816
+ "name": {
13817
+ "type": "string",
13818
+ "maxLength": 200
13819
+ },
13820
+ "ok": {
13821
+ "type": "boolean"
13822
+ },
13823
+ "when": {
13824
+ "anyOf": [
13825
+ {
13826
+ "type": "string",
13827
+ "enum": [
13828
+ "now",
13829
+ "next_close"
13830
+ ]
13831
+ },
13832
+ {
13833
+ "type": "null"
13834
+ }
13835
+ ]
13836
+ },
13837
+ "reason": {
13838
+ "anyOf": [
13839
+ {
13840
+ "type": "string",
13841
+ "maxLength": 400
13842
+ },
13843
+ {
13844
+ "type": "null"
13845
+ }
13846
+ ]
13847
+ }
13848
+ },
13849
+ "required": [
13850
+ "name",
13851
+ "ok",
13852
+ "when",
13853
+ "reason"
13854
+ ],
13855
+ "additionalProperties": false
13856
+ },
13857
+ {
13858
+ "type": "null"
13859
+ }
13860
+ ]
13861
+ },
13862
+ "chats": {
13863
+ "maxItems": 500,
13864
+ "type": "array",
13865
+ "items": {
13866
+ "$ref": "#/$defs/CopiedChat"
13867
+ }
13868
+ },
13869
+ "verified": {
13870
+ "type": "integer",
13871
+ "minimum": 0,
13872
+ "maximum": 9007199254740991
13873
+ },
13874
+ "queued": {
13875
+ "type": "integer",
13876
+ "minimum": 0,
13877
+ "maximum": 9007199254740991
13878
+ },
13879
+ "failed": {
13880
+ "type": "integer",
13881
+ "minimum": 0,
13882
+ "maximum": 9007199254740991
13883
+ },
13884
+ "restart": {
13885
+ "type": "object",
13886
+ "properties": {
13887
+ "asked": {
13888
+ "type": "string",
13889
+ "enum": [
13890
+ "queued",
13891
+ "restart_verify"
13892
+ ]
13893
+ },
13894
+ "done": {
13895
+ "type": "string",
13896
+ "enum": [
13897
+ "queued",
13898
+ "restart_verify"
13899
+ ]
13900
+ },
13901
+ "windows": {
13902
+ "maxItems": 2,
13903
+ "type": "array",
13904
+ "items": {
13905
+ "$ref": "#/$defs/ChatPlace"
13906
+ }
13907
+ },
13908
+ "reason": {
13909
+ "anyOf": [
13910
+ {
13911
+ "type": "string",
13912
+ "maxLength": 400
13913
+ },
13914
+ {
13915
+ "type": "null"
13916
+ }
13917
+ ]
13918
+ }
13919
+ },
13920
+ "required": [
13921
+ "asked",
13922
+ "done",
13923
+ "windows",
13924
+ "reason"
13925
+ ],
13926
+ "additionalProperties": false
13927
+ }
13928
+ },
13929
+ "required": [
13930
+ "message",
13931
+ "origin",
13932
+ "target",
13933
+ "mode",
13934
+ "project",
13935
+ "groups",
13936
+ "source_group",
13937
+ "chats",
13938
+ "verified",
13939
+ "queued",
13940
+ "failed",
13941
+ "restart"
13942
+ ],
13943
+ "additionalProperties": false
13944
+ },
13382
13945
  "AccountUsage": {
13383
13946
  "type": "object",
13384
13947
  "properties": {
@@ -23265,6 +23828,41 @@
23265
23828
  "INTERNAL"
23266
23829
  ]
23267
23830
  },
23831
+ "apps.windows.set_account": {
23832
+ "params": "AppsWindowsSetAccountParams",
23833
+ "result": "AppsWindowActionResult",
23834
+ "kind": "unary",
23835
+ "since": "1.56",
23836
+ "errors": [
23837
+ "NOT_FOUND",
23838
+ "INVALID_PARAMS",
23839
+ "PLATFORM_UNSUPPORTED",
23840
+ "INTERNAL"
23841
+ ]
23842
+ },
23843
+ "apps.windows.forget": {
23844
+ "params": "AppsWindowsForgetParams",
23845
+ "result": "AppsWindowActionResult",
23846
+ "kind": "unary",
23847
+ "since": "1.56",
23848
+ "errors": [
23849
+ "NOT_FOUND",
23850
+ "CONFLICT",
23851
+ "PLATFORM_UNSUPPORTED",
23852
+ "INTERNAL"
23853
+ ]
23854
+ },
23855
+ "apps.chats.probe": {
23856
+ "params": "AppsChatsProbeParams",
23857
+ "result": "AppsChatsProbeResult",
23858
+ "kind": "unary",
23859
+ "since": "1.56",
23860
+ "errors": [
23861
+ "NOT_FOUND",
23862
+ "PLATFORM_UNSUPPORTED",
23863
+ "INTERNAL"
23864
+ ]
23865
+ },
23268
23866
  "apps.projects.move": {
23269
23867
  "params": "AppsProjectsMoveParams",
23270
23868
  "result": "AppsProjectsMoveResult",
@@ -23301,6 +23899,19 @@
23301
23899
  "INTERNAL"
23302
23900
  ]
23303
23901
  },
23902
+ "apps.chats.copy_to_account": {
23903
+ "params": "AppsChatsCopyToAccountParams",
23904
+ "result": "AppsChatsCopyToAccountResult",
23905
+ "kind": "unary",
23906
+ "since": "1.55",
23907
+ "errors": [
23908
+ "NOT_FOUND",
23909
+ "INVALID_PARAMS",
23910
+ "CONFLICT",
23911
+ "PLATFORM_UNSUPPORTED",
23912
+ "INTERNAL"
23913
+ ]
23914
+ },
23304
23915
  "apps.projects.to_window": {
23305
23916
  "params": "AppsProjectsToWindowParams",
23306
23917
  "result": "AppsProjectsToWindowResult",
@@ -24173,6 +24784,19 @@
24173
24784
  "INTERNAL"
24174
24785
  ]
24175
24786
  },
24787
+ "coding.account.continue": {
24788
+ "params": "CodingAccountContinueParams",
24789
+ "result": "CodingAccountContinueResult",
24790
+ "kind": "unary",
24791
+ "since": "1.56",
24792
+ "errors": [
24793
+ "INVALID_PARAMS",
24794
+ "NOT_FOUND",
24795
+ "RESOURCE_BUSY",
24796
+ "AUTH_FORBIDDEN",
24797
+ "INTERNAL"
24798
+ ]
24799
+ },
24176
24800
  "coding.agent.set": {
24177
24801
  "params": "CodingAgentSetParams",
24178
24802
  "result": "CodingAgentSetResult",
@@ -25697,5 +26321,5 @@
25697
26321
  "olderPeersGet": 0
25698
26322
  }
25699
26323
  },
25700
- "x-protocol-version": "1.54"
26324
+ "x-protocol-version": "1.56"
25701
26325
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/desktop-protocol",
3
- "version": "0.21.49",
3
+ "version": "0.21.51",
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",
@@ -79,8 +79,8 @@
79
79
  },
80
80
  "dependencies": {
81
81
  "zod": "^4.6.5",
82
- "@ai-matrx/kit": "latest",
83
- "@ai-matrx/data": "latest"
82
+ "@ai-matrx/data": "latest",
83
+ "@ai-matrx/kit": "latest"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@arethetypeswrong/cli": "^0.18.5",
@@ -137,5 +137,5 @@
137
137
  "test:watch": "vitest",
138
138
  "verify:tarball": "node ./scripts/verify-tarball.mjs"
139
139
  },
140
- "gitHead": "e0743beb66411db02fa083005251a4054b61aaf8"
140
+ "gitHead": "5c76d6faf1e2a124bdaf230d12c8a1f16d55c8dc"
141
141
  }