@qvac/core 0.1.4 → 0.2.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/.claude/skills/asana/SKILL.md +86 -0
- package/.claude/skills/compaction/SKILL.md +127 -0
- package/.claude/skills/device-mesh-debug/SKILL.md +328 -0
- package/.claude/skills/gh-stack/SKILL.md +181 -0
- package/.claude/skills/gh-stack/references/commands.md +177 -0
- package/.claude/skills/gh-stack/references/stack-design.md +97 -0
- package/.claude/skills/gh-stack/references/troubleshooting.md +159 -0
- package/.claude/skills/js-house-style/SKILL.md +670 -0
- package/.claude/skills/pr-create/SKILL.md +180 -0
- package/.claude/skills/pr-review/SKILL.md +216 -0
- package/CLAUDE.md +45 -0
- package/README.md +10 -5
- package/dist-lib/lib/api/agents.js +3 -3
- package/dist-lib/lib/api/chat-groups.d.ts +1 -1
- package/dist-lib/lib/api/chat-groups.js +5 -3
- package/dist-lib/lib/api/chat.js +2 -2
- package/dist-lib/lib/api/current-mesh.d.ts +3 -2
- package/dist-lib/lib/api/current-mesh.js +4 -3
- package/dist-lib/lib/api/devices.js +1 -0
- package/dist-lib/lib/api/index.js +2 -0
- package/dist-lib/lib/api/members.d.ts +3 -0
- package/dist-lib/lib/api/members.js +23 -0
- package/dist-lib/lib/api/mesh.d.ts +14 -3
- package/dist-lib/lib/api/mesh.js +20 -3
- package/dist-lib/lib/api/watchable.d.ts +1 -1
- package/dist-lib/lib/api/watchable.js +1 -1
- package/dist-lib/lib/assistant.js +2 -1
- package/dist-lib/lib/core/agent.d.ts +1 -0
- package/dist-lib/lib/core/agent.js +29 -1
- package/dist-lib/lib/core/chat-group.d.ts +4 -0
- package/dist-lib/lib/core/chat-group.js +43 -1
- package/dist-lib/lib/core/chat.d.ts +10 -0
- package/dist-lib/lib/core/chat.js +75 -9
- package/dist-lib/lib/core/contract/index.js +2 -0
- package/dist-lib/lib/core/contract/joined-meshes.d.ts +2 -0
- package/dist-lib/lib/core/contract/joined-meshes.js +41 -0
- package/dist-lib/lib/core/contract/members.js +68 -2
- package/dist-lib/lib/core/contract/writers.js +19 -3
- package/dist-lib/lib/core/departures.d.ts +3 -1
- package/dist-lib/lib/core/departures.js +6 -4
- package/dist-lib/lib/core/device-attestation.d.ts +8 -0
- package/dist-lib/lib/core/device-attestation.js +25 -0
- package/dist-lib/lib/core/device-invites.d.ts +9 -0
- package/dist-lib/lib/core/device-invites.js +40 -0
- package/dist-lib/lib/core/files/index.d.ts +2 -1
- package/dist-lib/lib/core/files/index.js +1 -1
- package/dist-lib/lib/core/files/store/index.d.ts +1 -0
- package/dist-lib/lib/core/files/store/server.d.ts +5 -4
- package/dist-lib/lib/core/files/store/server.js +10 -6
- package/dist-lib/lib/core/helpers/index.d.ts +1 -1
- package/dist-lib/lib/core/hosted-agents.d.ts +3 -1
- package/dist-lib/lib/core/hosted-agents.js +9 -3
- package/dist-lib/lib/core/identity.d.ts +10 -0
- package/dist-lib/lib/core/identity.js +45 -0
- package/dist-lib/lib/core/invite.d.ts +3 -0
- package/dist-lib/lib/core/invite.js +8 -2
- package/dist-lib/lib/core/local/index.d.ts +22 -7
- package/dist-lib/lib/core/local/index.js +202 -66
- package/dist-lib/lib/core/membership.d.ts +8 -2
- package/dist-lib/lib/core/membership.js +33 -9
- package/dist-lib/lib/core/mesh-seed-handoff.d.ts +17 -0
- package/dist-lib/lib/core/mesh-seed-handoff.js +34 -0
- package/dist-lib/lib/core/mesh.d.ts +13 -1
- package/dist-lib/lib/core/mesh.js +61 -8
- package/dist-lib/lib/core/migrations/index.d.ts +3 -1
- package/dist-lib/lib/core/migrations/index.js +2 -2
- package/dist-lib/lib/core/migrations/membership.js +27 -15
- package/dist-lib/lib/core/rank.d.ts +14 -0
- package/dist-lib/lib/core/rank.js +23 -0
- package/dist-lib/lib/core/sync/index.js +6 -0
- package/dist-lib/lib/core.d.ts +91 -13
- package/dist-lib/lib/core.js +1051 -207
- package/dist-lib/schema/build.js +3 -2
- package/dist-lib/schema/engine.js +153 -9
- package/dist-lib/schema/field-order.js +4 -1
- package/dist-lib/schema/local.js +32 -0
- package/dist-lib/schema/qvac.js +45 -6
- package/dist-lib/spec/bind.js +35 -0
- package/dist-lib/spec/calls.js +37 -27
- package/dist-lib/spec/capabilities.d.ts +30 -10
- package/dist-lib/spec/hrpc/hrpc.json +135 -5
- package/dist-lib/spec/hrpc/index.js +130 -9
- package/dist-lib/spec/hrpc/messages.js +408 -14
- package/dist-lib/spec/hyperschema/index.js +408 -14
- package/dist-lib/spec/hyperschema/schema.json +309 -1
- package/dist-lib/spec/hyperschema/types.d.ts +90 -1
- package/dist-lib/spec/local/hyperdb/db.json +46 -1
- package/dist-lib/spec/local/hyperdb/index.js +209 -2
- package/dist-lib/spec/local/hyperdb/messages.js +557 -90
- package/dist-lib/spec/local/hyperschema/index.js +240 -2
- package/dist-lib/spec/local/hyperschema/schema.json +120 -1
- package/dist-lib/spec/local/hyperschema/types.d.ts +33 -1
- package/dist-lib/spec/mesh/hyperdb/db.json +16 -1
- package/dist-lib/spec/mesh/hyperdb/index.js +71 -2
- package/dist-lib/spec/mesh/hyperdb/messages.js +571 -192
- package/dist-lib/spec/mesh/hyperdispatch/dispatch.json +13 -1
- package/dist-lib/spec/mesh/hyperdispatch/index.js +35 -1
- package/dist-lib/spec/mesh/hyperdispatch/messages.js +283 -20
- package/dist-lib/spec/mesh/hyperschema/index.js +283 -20
- package/dist-lib/spec/mesh/hyperschema/schema.json +179 -1
- package/dist-lib/spec/mesh/hyperschema/types.d.ts +45 -1
- package/package.json +6 -6
- package/tui/app.mjs +416 -50
- package/tui/boot.mjs +1 -1
- package/tui/lib/sidebar.mjs +3 -2
|
@@ -32,19 +32,19 @@ export interface Capabilities {
|
|
|
32
32
|
configSet(input: T.AssistantConfigSetRequest): Promise<T.AssistantConfigSetResponse>
|
|
33
33
|
configWatch(input: T.AssistantConfigKey): WatchStream<T.AssistantConfigValue>
|
|
34
34
|
createAgent(input: T.AssistantCreateAgentRequest): Promise<T.AssistantAgent>
|
|
35
|
-
listAgents(input?: T.
|
|
35
|
+
listAgents(input?: T.AssistantMeshScope): Promise<T.AssistantAgentList>
|
|
36
36
|
getAgent(input: T.AssistantAgentId): Promise<T.AssistantAgent>
|
|
37
37
|
updateAgent(input: T.AssistantUpdateAgentRequest): Promise<T.AssistantAgent>
|
|
38
38
|
deleteAgent(input: T.AssistantAgentId): Promise<T.AssistantAgent>
|
|
39
|
-
agentsWatch(input?: T.
|
|
39
|
+
agentsWatch(input?: T.AssistantMeshScope): WatchStream<T.AssistantAgentList>
|
|
40
40
|
createChat(input: T.AssistantCreateChatRequest): Promise<T.AssistantChat>
|
|
41
|
-
listChats(input?: T.
|
|
41
|
+
listChats(input?: T.AssistantMeshScope): Promise<T.AssistantChatList>
|
|
42
42
|
getChat(input: T.AssistantChatId): Promise<T.AssistantChat>
|
|
43
43
|
renameChat(input: T.AssistantRenameChatRequest): Promise<T.AssistantChat>
|
|
44
44
|
setChatRagEnabled(input: T.AssistantSetChatFlagRequest): Promise<T.AssistantChat>
|
|
45
45
|
setChatWebSearchEnabled(input: T.AssistantSetChatFlagRequest): Promise<T.AssistantChat>
|
|
46
46
|
deleteChat(input: T.AssistantChatId): Promise<T.AssistantChat>
|
|
47
|
-
chatsWatch(input?: T.
|
|
47
|
+
chatsWatch(input?: T.AssistantMeshScope): WatchStream<T.AssistantChatList>
|
|
48
48
|
createChatGroup(input: T.AssistantCreateChatGroupRequest): Promise<T.AssistantChatGroup>
|
|
49
49
|
listChatGroups(input?: T.AssistantEmpty): Promise<T.AssistantChatGroupList>
|
|
50
50
|
renameChatGroup(input: T.AssistantRenameChatGroupRequest): Promise<T.AssistantChatGroup>
|
|
@@ -90,7 +90,7 @@ export interface Capabilities {
|
|
|
90
90
|
cancelMeshJoin(input?: T.AssistantEmpty): Promise<T.AssistantOkResponse>
|
|
91
91
|
suspend(input?: T.AssistantEmpty): Promise<T.AssistantOkResponse>
|
|
92
92
|
resume(input?: T.AssistantEmpty): Promise<T.AssistantOkResponse>
|
|
93
|
-
meshInvite(input
|
|
93
|
+
meshInvite(input: T.AssistantMeshInviteRequest): Promise<T.AssistantMeshInviteResponse>
|
|
94
94
|
listApprovalRules(input?: T.AssistantEmpty): Promise<T.AssistantApprovalRuleList>
|
|
95
95
|
diagnostics(input?: T.AssistantEmpty): Promise<T.AssistantDiagnostics>
|
|
96
96
|
diagnosticsWatch(input?: T.AssistantEmpty): WatchStream<T.AssistantDiagnostics>
|
|
@@ -143,6 +143,16 @@ export interface Capabilities {
|
|
|
143
143
|
fileRead(input: T.AssistantFileReadRequest): WatchStream<T.AssistantFileReadFrame>
|
|
144
144
|
filePreview(input: T.AssistantFileRequest): Promise<T.AssistantFilePreviewResponse>
|
|
145
145
|
fileRetry(input: T.AssistantFileRetryRequest): Promise<T.AssistantOkResponse>
|
|
146
|
+
moveChat(input: T.AssistantMoveChatRequest): Promise<T.AssistantChat>
|
|
147
|
+
moveChatGroup(input: T.AssistantMoveChatGroupRequest): Promise<T.AssistantChatGroup>
|
|
148
|
+
listMembers(input?: T.AssistantEmpty): Promise<T.AssistantMemberList>
|
|
149
|
+
listMeshes(input?: T.AssistantEmpty): Promise<T.AssistantMeshList>
|
|
150
|
+
meshesWatch(input?: T.AssistantEmpty): WatchStream<T.AssistantMeshList>
|
|
151
|
+
openMesh(input: T.AssistantMeshTarget): Promise<T.AssistantOkResponse>
|
|
152
|
+
selectMesh(input: T.AssistantMeshTarget): Promise<T.AssistantOkResponse>
|
|
153
|
+
closeMesh(input: T.AssistantMeshTarget): Promise<T.AssistantOkResponse>
|
|
154
|
+
setMeshLabel(input: T.AssistantMeshLabelRequest): Promise<T.AssistantOkResponse>
|
|
155
|
+
createRoom(input?: T.AssistantEmpty): Promise<T.AssistantMeshTarget>
|
|
146
156
|
}
|
|
147
157
|
|
|
148
158
|
export interface CapabilityHandlers {
|
|
@@ -150,19 +160,19 @@ export interface CapabilityHandlers {
|
|
|
150
160
|
configSet(input: T.AssistantConfigSetRequest): T.AssistantConfigSetResponse | Promise<T.AssistantConfigSetResponse>
|
|
151
161
|
configWatch(input: T.AssistantConfigKey): AsyncIterable<T.AssistantConfigValue>
|
|
152
162
|
createAgent(input: T.AssistantCreateAgentRequest): T.AssistantAgent | Promise<T.AssistantAgent>
|
|
153
|
-
listAgents(input?: T.
|
|
163
|
+
listAgents(input?: T.AssistantMeshScope): T.AssistantAgentList | Promise<T.AssistantAgentList>
|
|
154
164
|
getAgent(input: T.AssistantAgentId): T.AssistantAgent | Promise<T.AssistantAgent>
|
|
155
165
|
updateAgent(input: T.AssistantUpdateAgentRequest): T.AssistantAgent | Promise<T.AssistantAgent>
|
|
156
166
|
deleteAgent(input: T.AssistantAgentId): T.AssistantAgent | Promise<T.AssistantAgent>
|
|
157
|
-
agentsWatch(input?: T.
|
|
167
|
+
agentsWatch(input?: T.AssistantMeshScope): AsyncIterable<T.AssistantAgentList>
|
|
158
168
|
createChat(input: T.AssistantCreateChatRequest): T.AssistantChat | Promise<T.AssistantChat>
|
|
159
|
-
listChats(input?: T.
|
|
169
|
+
listChats(input?: T.AssistantMeshScope): T.AssistantChatList | Promise<T.AssistantChatList>
|
|
160
170
|
getChat(input: T.AssistantChatId): T.AssistantChat | Promise<T.AssistantChat>
|
|
161
171
|
renameChat(input: T.AssistantRenameChatRequest): T.AssistantChat | Promise<T.AssistantChat>
|
|
162
172
|
setChatRagEnabled(input: T.AssistantSetChatFlagRequest): T.AssistantChat | Promise<T.AssistantChat>
|
|
163
173
|
setChatWebSearchEnabled(input: T.AssistantSetChatFlagRequest): T.AssistantChat | Promise<T.AssistantChat>
|
|
164
174
|
deleteChat(input: T.AssistantChatId): T.AssistantChat | Promise<T.AssistantChat>
|
|
165
|
-
chatsWatch(input?: T.
|
|
175
|
+
chatsWatch(input?: T.AssistantMeshScope): AsyncIterable<T.AssistantChatList>
|
|
166
176
|
createChatGroup(input: T.AssistantCreateChatGroupRequest): T.AssistantChatGroup | Promise<T.AssistantChatGroup>
|
|
167
177
|
listChatGroups(input?: T.AssistantEmpty): T.AssistantChatGroupList | Promise<T.AssistantChatGroupList>
|
|
168
178
|
renameChatGroup(input: T.AssistantRenameChatGroupRequest): T.AssistantChatGroup | Promise<T.AssistantChatGroup>
|
|
@@ -208,7 +218,7 @@ export interface CapabilityHandlers {
|
|
|
208
218
|
cancelMeshJoin(input?: T.AssistantEmpty): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
209
219
|
suspend(input?: T.AssistantEmpty): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
210
220
|
resume(input?: T.AssistantEmpty): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
211
|
-
meshInvite(input
|
|
221
|
+
meshInvite(input: T.AssistantMeshInviteRequest): T.AssistantMeshInviteResponse | Promise<T.AssistantMeshInviteResponse>
|
|
212
222
|
listApprovalRules(input?: T.AssistantEmpty): T.AssistantApprovalRuleList | Promise<T.AssistantApprovalRuleList>
|
|
213
223
|
diagnostics(input?: T.AssistantEmpty): T.AssistantDiagnostics | Promise<T.AssistantDiagnostics>
|
|
214
224
|
diagnosticsWatch(input?: T.AssistantEmpty): AsyncIterable<T.AssistantDiagnostics>
|
|
@@ -261,4 +271,14 @@ export interface CapabilityHandlers {
|
|
|
261
271
|
fileRead(input: T.AssistantFileReadRequest): AsyncIterable<T.AssistantFileReadFrame>
|
|
262
272
|
filePreview(input: T.AssistantFileRequest): T.AssistantFilePreviewResponse | Promise<T.AssistantFilePreviewResponse>
|
|
263
273
|
fileRetry(input: T.AssistantFileRetryRequest): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
274
|
+
moveChat(input: T.AssistantMoveChatRequest): T.AssistantChat | Promise<T.AssistantChat>
|
|
275
|
+
moveChatGroup(input: T.AssistantMoveChatGroupRequest): T.AssistantChatGroup | Promise<T.AssistantChatGroup>
|
|
276
|
+
listMembers(input?: T.AssistantEmpty): T.AssistantMemberList | Promise<T.AssistantMemberList>
|
|
277
|
+
listMeshes(input?: T.AssistantEmpty): T.AssistantMeshList | Promise<T.AssistantMeshList>
|
|
278
|
+
meshesWatch(input?: T.AssistantEmpty): AsyncIterable<T.AssistantMeshList>
|
|
279
|
+
openMesh(input: T.AssistantMeshTarget): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
280
|
+
selectMesh(input: T.AssistantMeshTarget): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
281
|
+
closeMesh(input: T.AssistantMeshTarget): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
282
|
+
setMeshLabel(input: T.AssistantMeshLabelRequest): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
283
|
+
createRoom(input?: T.AssistantEmpty): T.AssistantMeshTarget | Promise<T.AssistantMeshTarget>
|
|
264
284
|
}
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"id": 4,
|
|
58
58
|
"name": "@assistant/list-agents",
|
|
59
59
|
"request": {
|
|
60
|
-
"name": "@assistant/
|
|
60
|
+
"name": "@assistant/mesh-scope",
|
|
61
61
|
"stream": false
|
|
62
62
|
},
|
|
63
63
|
"response": {
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"id": 8,
|
|
110
110
|
"name": "@assistant/agents-watch",
|
|
111
111
|
"request": {
|
|
112
|
-
"name": "@assistant/
|
|
112
|
+
"name": "@assistant/mesh-scope",
|
|
113
113
|
"stream": false
|
|
114
114
|
},
|
|
115
115
|
"response": {
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"id": 10,
|
|
136
136
|
"name": "@assistant/list-chats",
|
|
137
137
|
"request": {
|
|
138
|
-
"name": "@assistant/
|
|
138
|
+
"name": "@assistant/mesh-scope",
|
|
139
139
|
"stream": false
|
|
140
140
|
},
|
|
141
141
|
"response": {
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
"id": 16,
|
|
214
214
|
"name": "@assistant/chats-watch",
|
|
215
215
|
"request": {
|
|
216
|
-
"name": "@assistant/
|
|
216
|
+
"name": "@assistant/mesh-scope",
|
|
217
217
|
"stream": false
|
|
218
218
|
},
|
|
219
219
|
"response": {
|
|
@@ -811,7 +811,7 @@
|
|
|
811
811
|
"id": 62,
|
|
812
812
|
"name": "@assistant/mesh-invite",
|
|
813
813
|
"request": {
|
|
814
|
-
"name": "@assistant/
|
|
814
|
+
"name": "@assistant/mesh-invite-request",
|
|
815
815
|
"stream": false
|
|
816
816
|
},
|
|
817
817
|
"response": {
|
|
@@ -1495,6 +1495,136 @@
|
|
|
1495
1495
|
"stream": false
|
|
1496
1496
|
},
|
|
1497
1497
|
"version": 1
|
|
1498
|
+
},
|
|
1499
|
+
{
|
|
1500
|
+
"id": 115,
|
|
1501
|
+
"name": "@assistant/move-chat",
|
|
1502
|
+
"request": {
|
|
1503
|
+
"name": "@assistant/move-chat-request",
|
|
1504
|
+
"stream": false
|
|
1505
|
+
},
|
|
1506
|
+
"response": {
|
|
1507
|
+
"name": "@assistant/chat",
|
|
1508
|
+
"stream": false
|
|
1509
|
+
},
|
|
1510
|
+
"version": 1
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
"id": 116,
|
|
1514
|
+
"name": "@assistant/move-chat-group",
|
|
1515
|
+
"request": {
|
|
1516
|
+
"name": "@assistant/move-chat-group-request",
|
|
1517
|
+
"stream": false
|
|
1518
|
+
},
|
|
1519
|
+
"response": {
|
|
1520
|
+
"name": "@assistant/chat-group",
|
|
1521
|
+
"stream": false
|
|
1522
|
+
},
|
|
1523
|
+
"version": 1
|
|
1524
|
+
},
|
|
1525
|
+
{
|
|
1526
|
+
"id": 117,
|
|
1527
|
+
"name": "@assistant/list-members",
|
|
1528
|
+
"request": {
|
|
1529
|
+
"name": "@assistant/empty",
|
|
1530
|
+
"stream": false
|
|
1531
|
+
},
|
|
1532
|
+
"response": {
|
|
1533
|
+
"name": "@assistant/member-list",
|
|
1534
|
+
"stream": false
|
|
1535
|
+
},
|
|
1536
|
+
"version": 1
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
"id": 118,
|
|
1540
|
+
"name": "@assistant/list-meshes",
|
|
1541
|
+
"request": {
|
|
1542
|
+
"name": "@assistant/empty",
|
|
1543
|
+
"stream": false
|
|
1544
|
+
},
|
|
1545
|
+
"response": {
|
|
1546
|
+
"name": "@assistant/mesh-list",
|
|
1547
|
+
"stream": false
|
|
1548
|
+
},
|
|
1549
|
+
"version": 1
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
"id": 119,
|
|
1553
|
+
"name": "@assistant/meshes-watch",
|
|
1554
|
+
"request": {
|
|
1555
|
+
"name": "@assistant/empty",
|
|
1556
|
+
"stream": false
|
|
1557
|
+
},
|
|
1558
|
+
"response": {
|
|
1559
|
+
"name": "@assistant/mesh-list",
|
|
1560
|
+
"stream": true
|
|
1561
|
+
},
|
|
1562
|
+
"version": 1
|
|
1563
|
+
},
|
|
1564
|
+
{
|
|
1565
|
+
"id": 120,
|
|
1566
|
+
"name": "@assistant/open-mesh",
|
|
1567
|
+
"request": {
|
|
1568
|
+
"name": "@assistant/mesh-target",
|
|
1569
|
+
"stream": false
|
|
1570
|
+
},
|
|
1571
|
+
"response": {
|
|
1572
|
+
"name": "@assistant/ok-response",
|
|
1573
|
+
"stream": false
|
|
1574
|
+
},
|
|
1575
|
+
"version": 1
|
|
1576
|
+
},
|
|
1577
|
+
{
|
|
1578
|
+
"id": 121,
|
|
1579
|
+
"name": "@assistant/select-mesh",
|
|
1580
|
+
"request": {
|
|
1581
|
+
"name": "@assistant/mesh-target",
|
|
1582
|
+
"stream": false
|
|
1583
|
+
},
|
|
1584
|
+
"response": {
|
|
1585
|
+
"name": "@assistant/ok-response",
|
|
1586
|
+
"stream": false
|
|
1587
|
+
},
|
|
1588
|
+
"version": 1
|
|
1589
|
+
},
|
|
1590
|
+
{
|
|
1591
|
+
"id": 122,
|
|
1592
|
+
"name": "@assistant/close-mesh",
|
|
1593
|
+
"request": {
|
|
1594
|
+
"name": "@assistant/mesh-target",
|
|
1595
|
+
"stream": false
|
|
1596
|
+
},
|
|
1597
|
+
"response": {
|
|
1598
|
+
"name": "@assistant/ok-response",
|
|
1599
|
+
"stream": false
|
|
1600
|
+
},
|
|
1601
|
+
"version": 1
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
"id": 123,
|
|
1605
|
+
"name": "@assistant/set-mesh-label",
|
|
1606
|
+
"request": {
|
|
1607
|
+
"name": "@assistant/mesh-label-request",
|
|
1608
|
+
"stream": false
|
|
1609
|
+
},
|
|
1610
|
+
"response": {
|
|
1611
|
+
"name": "@assistant/ok-response",
|
|
1612
|
+
"stream": false
|
|
1613
|
+
},
|
|
1614
|
+
"version": 1
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
"id": 124,
|
|
1618
|
+
"name": "@assistant/create-room",
|
|
1619
|
+
"request": {
|
|
1620
|
+
"name": "@assistant/empty",
|
|
1621
|
+
"stream": false
|
|
1622
|
+
},
|
|
1623
|
+
"response": {
|
|
1624
|
+
"name": "@assistant/mesh-target",
|
|
1625
|
+
"stream": false
|
|
1626
|
+
},
|
|
1627
|
+
"version": 1
|
|
1498
1628
|
}
|
|
1499
1629
|
]
|
|
1500
1630
|
}
|
|
@@ -235,7 +235,27 @@ const methods = new Map([
|
|
|
235
235
|
['@assistant/file-preview', 113],
|
|
236
236
|
[113, '@assistant/file-preview'],
|
|
237
237
|
['@assistant/file-retry', 114],
|
|
238
|
-
[114, '@assistant/file-retry']
|
|
238
|
+
[114, '@assistant/file-retry'],
|
|
239
|
+
['@assistant/move-chat', 115],
|
|
240
|
+
[115, '@assistant/move-chat'],
|
|
241
|
+
['@assistant/move-chat-group', 116],
|
|
242
|
+
[116, '@assistant/move-chat-group'],
|
|
243
|
+
['@assistant/list-members', 117],
|
|
244
|
+
[117, '@assistant/list-members'],
|
|
245
|
+
['@assistant/list-meshes', 118],
|
|
246
|
+
[118, '@assistant/list-meshes'],
|
|
247
|
+
['@assistant/meshes-watch', 119],
|
|
248
|
+
[119, '@assistant/meshes-watch'],
|
|
249
|
+
['@assistant/open-mesh', 120],
|
|
250
|
+
[120, '@assistant/open-mesh'],
|
|
251
|
+
['@assistant/select-mesh', 121],
|
|
252
|
+
[121, '@assistant/select-mesh'],
|
|
253
|
+
['@assistant/close-mesh', 122],
|
|
254
|
+
[122, '@assistant/close-mesh'],
|
|
255
|
+
['@assistant/set-mesh-label', 123],
|
|
256
|
+
[123, '@assistant/set-mesh-label'],
|
|
257
|
+
['@assistant/create-room', 124],
|
|
258
|
+
[124, '@assistant/create-room']
|
|
239
259
|
])
|
|
240
260
|
|
|
241
261
|
class HRPC {
|
|
@@ -247,19 +267,19 @@ class HRPC {
|
|
|
247
267
|
['@assistant/config-set', getEncoding('@assistant/config-set-request')],
|
|
248
268
|
['@assistant/config-watch', getEncoding('@assistant/config-key')],
|
|
249
269
|
['@assistant/create-agent', getEncoding('@assistant/create-agent-request')],
|
|
250
|
-
['@assistant/list-agents', getEncoding('@assistant/
|
|
270
|
+
['@assistant/list-agents', getEncoding('@assistant/mesh-scope')],
|
|
251
271
|
['@assistant/get-agent', getEncoding('@assistant/agent-id')],
|
|
252
272
|
['@assistant/update-agent', getEncoding('@assistant/update-agent-request')],
|
|
253
273
|
['@assistant/delete-agent', getEncoding('@assistant/agent-id')],
|
|
254
|
-
['@assistant/agents-watch', getEncoding('@assistant/
|
|
274
|
+
['@assistant/agents-watch', getEncoding('@assistant/mesh-scope')],
|
|
255
275
|
['@assistant/create-chat', getEncoding('@assistant/create-chat-request')],
|
|
256
|
-
['@assistant/list-chats', getEncoding('@assistant/
|
|
276
|
+
['@assistant/list-chats', getEncoding('@assistant/mesh-scope')],
|
|
257
277
|
['@assistant/get-chat', getEncoding('@assistant/chat-id')],
|
|
258
278
|
['@assistant/rename-chat', getEncoding('@assistant/rename-chat-request')],
|
|
259
279
|
['@assistant/set-chat-rag-enabled', getEncoding('@assistant/set-chat-flag-request')],
|
|
260
280
|
['@assistant/set-chat-web-search-enabled', getEncoding('@assistant/set-chat-flag-request')],
|
|
261
281
|
['@assistant/delete-chat', getEncoding('@assistant/chat-id')],
|
|
262
|
-
['@assistant/chats-watch', getEncoding('@assistant/
|
|
282
|
+
['@assistant/chats-watch', getEncoding('@assistant/mesh-scope')],
|
|
263
283
|
['@assistant/create-chat-group', getEncoding('@assistant/create-chat-group-request')],
|
|
264
284
|
['@assistant/list-chat-groups', getEncoding('@assistant/empty')],
|
|
265
285
|
['@assistant/rename-chat-group', getEncoding('@assistant/rename-chat-group-request')],
|
|
@@ -305,7 +325,7 @@ class HRPC {
|
|
|
305
325
|
['@assistant/cancel-mesh-join', getEncoding('@assistant/empty')],
|
|
306
326
|
['@assistant/suspend', getEncoding('@assistant/empty')],
|
|
307
327
|
['@assistant/resume', getEncoding('@assistant/empty')],
|
|
308
|
-
['@assistant/mesh-invite', getEncoding('@assistant/
|
|
328
|
+
['@assistant/mesh-invite', getEncoding('@assistant/mesh-invite-request')],
|
|
309
329
|
['@assistant/list-approval-rules', getEncoding('@assistant/empty')],
|
|
310
330
|
['@assistant/diagnostics', getEncoding('@assistant/empty')],
|
|
311
331
|
['@assistant/diagnostics-watch', getEncoding('@assistant/empty')],
|
|
@@ -357,7 +377,17 @@ class HRPC {
|
|
|
357
377
|
['@assistant/delete-chat-kv-cache', getEncoding('@assistant/chat-id')],
|
|
358
378
|
['@assistant/file-read', getEncoding('@assistant/file-read-request')],
|
|
359
379
|
['@assistant/file-preview', getEncoding('@assistant/file-request')],
|
|
360
|
-
['@assistant/file-retry', getEncoding('@assistant/file-retry-request')]
|
|
380
|
+
['@assistant/file-retry', getEncoding('@assistant/file-retry-request')],
|
|
381
|
+
['@assistant/move-chat', getEncoding('@assistant/move-chat-request')],
|
|
382
|
+
['@assistant/move-chat-group', getEncoding('@assistant/move-chat-group-request')],
|
|
383
|
+
['@assistant/list-members', getEncoding('@assistant/empty')],
|
|
384
|
+
['@assistant/list-meshes', getEncoding('@assistant/empty')],
|
|
385
|
+
['@assistant/meshes-watch', getEncoding('@assistant/empty')],
|
|
386
|
+
['@assistant/open-mesh', getEncoding('@assistant/mesh-target')],
|
|
387
|
+
['@assistant/select-mesh', getEncoding('@assistant/mesh-target')],
|
|
388
|
+
['@assistant/close-mesh', getEncoding('@assistant/mesh-target')],
|
|
389
|
+
['@assistant/set-mesh-label', getEncoding('@assistant/mesh-label-request')],
|
|
390
|
+
['@assistant/create-room', getEncoding('@assistant/empty')]
|
|
361
391
|
])
|
|
362
392
|
this._responseEncodings = new Map([
|
|
363
393
|
['@assistant/config-get', getEncoding('@assistant/config-value')],
|
|
@@ -474,7 +504,17 @@ class HRPC {
|
|
|
474
504
|
['@assistant/delete-chat-kv-cache', getEncoding('@assistant/kv-cache-deletion-response')],
|
|
475
505
|
['@assistant/file-read', getEncoding('@assistant/file-read-frame')],
|
|
476
506
|
['@assistant/file-preview', getEncoding('@assistant/file-preview-response')],
|
|
477
|
-
['@assistant/file-retry', getEncoding('@assistant/ok-response')]
|
|
507
|
+
['@assistant/file-retry', getEncoding('@assistant/ok-response')],
|
|
508
|
+
['@assistant/move-chat', getEncoding('@assistant/chat')],
|
|
509
|
+
['@assistant/move-chat-group', getEncoding('@assistant/chat-group')],
|
|
510
|
+
['@assistant/list-members', getEncoding('@assistant/member-list')],
|
|
511
|
+
['@assistant/list-meshes', getEncoding('@assistant/mesh-list')],
|
|
512
|
+
['@assistant/meshes-watch', getEncoding('@assistant/mesh-list')],
|
|
513
|
+
['@assistant/open-mesh', getEncoding('@assistant/ok-response')],
|
|
514
|
+
['@assistant/select-mesh', getEncoding('@assistant/ok-response')],
|
|
515
|
+
['@assistant/close-mesh', getEncoding('@assistant/ok-response')],
|
|
516
|
+
['@assistant/set-mesh-label', getEncoding('@assistant/ok-response')],
|
|
517
|
+
['@assistant/create-room', getEncoding('@assistant/mesh-target')]
|
|
478
518
|
])
|
|
479
519
|
this._rpc = new RPC(stream, async (req) => {
|
|
480
520
|
const command = methods.get(req.command)
|
|
@@ -1032,6 +1072,46 @@ class HRPC {
|
|
|
1032
1072
|
return this._call('@assistant/file-retry', args)
|
|
1033
1073
|
}
|
|
1034
1074
|
|
|
1075
|
+
async moveChat(args) {
|
|
1076
|
+
return this._call('@assistant/move-chat', args)
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
async moveChatGroup(args) {
|
|
1080
|
+
return this._call('@assistant/move-chat-group', args)
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
async listMembers(args) {
|
|
1084
|
+
return this._call('@assistant/list-members', args)
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
async listMeshes(args) {
|
|
1088
|
+
return this._call('@assistant/list-meshes', args)
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
meshesWatch(args) {
|
|
1092
|
+
return this._callSync('@assistant/meshes-watch', args)
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
async openMesh(args) {
|
|
1096
|
+
return this._call('@assistant/open-mesh', args)
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
async selectMesh(args) {
|
|
1100
|
+
return this._call('@assistant/select-mesh', args)
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
async closeMesh(args) {
|
|
1104
|
+
return this._call('@assistant/close-mesh', args)
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
async setMeshLabel(args) {
|
|
1108
|
+
return this._call('@assistant/set-mesh-label', args)
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
async createRoom(args) {
|
|
1112
|
+
return this._call('@assistant/create-room', args)
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1035
1115
|
onConfigGet(responseFn) {
|
|
1036
1116
|
this._handlers['@assistant/config-get'] = responseFn
|
|
1037
1117
|
}
|
|
@@ -1492,6 +1572,46 @@ class HRPC {
|
|
|
1492
1572
|
this._handlers['@assistant/file-retry'] = responseFn
|
|
1493
1573
|
}
|
|
1494
1574
|
|
|
1575
|
+
onMoveChat(responseFn) {
|
|
1576
|
+
this._handlers['@assistant/move-chat'] = responseFn
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
onMoveChatGroup(responseFn) {
|
|
1580
|
+
this._handlers['@assistant/move-chat-group'] = responseFn
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
onListMembers(responseFn) {
|
|
1584
|
+
this._handlers['@assistant/list-members'] = responseFn
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
onListMeshes(responseFn) {
|
|
1588
|
+
this._handlers['@assistant/list-meshes'] = responseFn
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
onMeshesWatch(responseFn) {
|
|
1592
|
+
this._handlers['@assistant/meshes-watch'] = responseFn
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
onOpenMesh(responseFn) {
|
|
1596
|
+
this._handlers['@assistant/open-mesh'] = responseFn
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
onSelectMesh(responseFn) {
|
|
1600
|
+
this._handlers['@assistant/select-mesh'] = responseFn
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
onCloseMesh(responseFn) {
|
|
1604
|
+
this._handlers['@assistant/close-mesh'] = responseFn
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
onSetMeshLabel(responseFn) {
|
|
1608
|
+
this._handlers['@assistant/set-mesh-label'] = responseFn
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
onCreateRoom(responseFn) {
|
|
1612
|
+
this._handlers['@assistant/create-room'] = responseFn
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1495
1615
|
_requestIsStream(command) {
|
|
1496
1616
|
return [
|
|
1497
1617
|
'@assistant/upload-attachment',
|
|
@@ -1530,7 +1650,8 @@ class HRPC {
|
|
|
1530
1650
|
'@assistant/tool-activity-watch',
|
|
1531
1651
|
'@assistant/file-status-watch',
|
|
1532
1652
|
'@assistant/notifications-watch',
|
|
1533
|
-
'@assistant/file-read'
|
|
1653
|
+
'@assistant/file-read',
|
|
1654
|
+
'@assistant/meshes-watch'
|
|
1534
1655
|
].includes(command)
|
|
1535
1656
|
}
|
|
1536
1657
|
|