@qvac/core 0.6.3 → 0.6.5
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/CHANGELOG.md +78 -1
- package/README.md +24 -16
- package/dist-lib/lib/api/chat-move.d.ts +3 -0
- package/dist-lib/lib/api/chat-move.js +7 -0
- package/dist-lib/lib/api/chat.d.ts +1 -1
- package/dist-lib/lib/api/chat.js +2 -1
- package/dist-lib/lib/api/chunk-delta.d.ts +7 -0
- package/dist-lib/lib/api/chunk-delta.js +33 -0
- package/dist-lib/lib/api/chunks.d.ts +1 -1
- package/dist-lib/lib/api/chunks.js +6 -3
- package/dist-lib/lib/api/index.d.ts +2 -0
- package/dist-lib/lib/api/index.js +2 -0
- package/dist-lib/lib/api/mesh.d.ts +2 -1
- package/dist-lib/lib/api/mesh.js +4 -0
- package/dist-lib/lib/assistant/harness.d.ts +8 -10
- package/dist-lib/lib/assistant.js +1 -1
- package/dist-lib/lib/constants.d.ts +1 -0
- package/dist-lib/lib/constants.js +1 -0
- package/dist-lib/lib/core/archived-mesh.js +3 -42
- package/dist-lib/lib/core/chat-activity.js +23 -10
- package/dist-lib/lib/core/chat-copy.d.ts +24 -0
- package/dist-lib/lib/core/chat-copy.js +115 -0
- package/dist-lib/lib/core/chat-move.d.ts +65 -0
- package/dist-lib/lib/core/chat-move.js +525 -0
- package/dist-lib/lib/core/chat.d.ts +6 -0
- package/dist-lib/lib/core/chat.js +11 -3
- package/dist-lib/lib/core/collections.d.ts +2 -0
- package/dist-lib/lib/core/collections.js +2 -0
- package/dist-lib/lib/core/contract/compute.d.ts +1 -1
- package/dist-lib/lib/core/contract/compute.js +2 -1
- package/dist-lib/lib/core/contract/index.js +2 -0
- package/dist-lib/lib/core/contract/invites.d.ts +1 -0
- package/dist-lib/lib/core/contract/invites.js +1 -1
- package/dist-lib/lib/core/contract/mesh-name.d.ts +3 -0
- package/dist-lib/lib/core/contract/mesh-name.js +26 -0
- package/dist-lib/lib/core/contract/writers.js +10 -3
- package/dist-lib/lib/core/files/index.d.ts +1 -1
- package/dist-lib/lib/core/files/index.js +1 -1
- package/dist-lib/lib/core/files/preview/index.js +4 -1
- package/dist-lib/lib/core/files/processing/source.js +4 -1
- package/dist-lib/lib/core/files/rag/limits.d.ts +0 -1
- package/dist-lib/lib/core/files/rag/limits.js +0 -1
- package/dist-lib/lib/core/files/store/index.d.ts +2 -1
- package/dist-lib/lib/core/files/store/index.js +2 -1
- package/dist-lib/lib/core/files/store/reference.d.ts +3 -0
- package/dist-lib/lib/core/files/store/reference.js +8 -0
- package/dist-lib/lib/core/files/store/sweep.js +3 -1
- package/dist-lib/lib/core/local/index.d.ts +4 -1
- package/dist-lib/lib/core/local/index.js +14 -1
- package/dist-lib/lib/core/mesh-seed-handoff.d.ts +3 -1
- package/dist-lib/lib/core/mesh-seed-handoff.js +1 -0
- package/dist-lib/lib/core/mesh.d.ts +5 -1
- package/dist-lib/lib/core/mesh.js +16 -1
- package/dist-lib/lib/core/sync/index.js +9 -1
- package/dist-lib/lib/core.d.ts +9 -0
- package/dist-lib/lib/core.js +156 -32
- package/dist-lib/lib/custom-model-pusher.js +9 -5
- package/dist-lib/lib/mesh-scoped-engine.js +5 -0
- package/dist-lib/schema/config.d.ts +1 -1
- package/dist-lib/schema/config.js +1 -1
- package/dist-lib/schema/engine.js +80 -1
- package/dist-lib/schema/local.js +17 -0
- package/dist-lib/schema/qvac.d.ts +2 -0
- package/dist-lib/schema/qvac.js +16 -0
- package/dist-lib/spec/bind.js +25 -0
- package/dist-lib/spec/calls.js +5 -0
- package/dist-lib/spec/capabilities.d.ts +10 -0
- package/dist-lib/spec/config/hyperconf/index.js +1 -1
- package/dist-lib/spec/hrpc/hrpc.json +65 -0
- package/dist-lib/spec/hrpc/index.js +66 -4
- package/dist-lib/spec/hrpc/messages.js +1398 -1154
- package/dist-lib/spec/hyperschema/index.js +1398 -1154
- package/dist-lib/spec/hyperschema/schema.json +204 -0
- package/dist-lib/spec/hyperschema/types.d.ts +47 -0
- package/dist-lib/spec/local/hyperdb/db.json +17 -1
- package/dist-lib/spec/local/hyperdb/index.js +83 -2
- package/dist-lib/spec/local/hyperdb/messages.js +340 -136
- package/dist-lib/spec/local/hyperschema/index.js +107 -2
- package/dist-lib/spec/local/hyperschema/schema.json +78 -1
- package/dist-lib/spec/local/hyperschema/types.d.ts +18 -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 +454 -228
- package/dist-lib/spec/mesh/hyperdispatch/dispatch.json +7 -1
- package/dist-lib/spec/mesh/hyperdispatch/index.js +18 -1
- package/dist-lib/spec/mesh/hyperdispatch/messages.js +150 -2
- package/dist-lib/spec/mesh/hyperschema/index.js +150 -2
- package/dist-lib/spec/mesh/hyperschema/schema.json +76 -1
- package/dist-lib/spec/mesh/hyperschema/types.d.ts +21 -1
- package/package.json +5 -8
- package/tui/app.mjs +89 -3
- package/tui/lib/move-command.mjs +17 -0
- package/dist-lib/lib/collabora/convert.d.ts +0 -9
- package/dist-lib/lib/collabora/convert.js +0 -65
- package/dist-lib/lib/collabora/entry.d.ts +0 -1
- package/dist-lib/lib/collabora/entry.js +0 -42
- package/dist-lib/lib/collabora/protocol.d.ts +0 -15
- package/dist-lib/lib/collabora/protocol.js +0 -31
- package/dist-lib/lib/collabora/worker.d.ts +0 -5
- package/dist-lib/lib/collabora/worker.js +0 -177
- package/dist-lib/lib/core/files/rag/extract/office-collabora.d.ts +0 -2
- package/dist-lib/lib/core/files/rag/extract/office-collabora.js +0 -8
package/dist-lib/schema/qvac.js
CHANGED
|
@@ -47,6 +47,10 @@ export function deviceNameWithinBounds(name) {
|
|
|
47
47
|
export function capDeviceName(name) {
|
|
48
48
|
return name.length <= MAX_DEVICE_NAME_CHARS ? name : name.slice(0, MAX_DEVICE_NAME_CHARS);
|
|
49
49
|
}
|
|
50
|
+
export const MAX_MESH_NAME_CHARS = 100;
|
|
51
|
+
export function meshNameWithinBounds(name) {
|
|
52
|
+
return name.length <= MAX_MESH_NAME_CHARS;
|
|
53
|
+
}
|
|
50
54
|
export function registerQvacTypes(ns) {
|
|
51
55
|
const versioned = versionedRegistrar(ns, 'qvac');
|
|
52
56
|
registerContentTypes(ns, 'qvac');
|
|
@@ -548,6 +552,16 @@ export function registerQvacTypes(ns) {
|
|
|
548
552
|
{ name: 'chatId', type: 'string', required: true },
|
|
549
553
|
{ name: 'at', type: 'uint', required: true }
|
|
550
554
|
]);
|
|
555
|
+
versioned('mesh-name', [
|
|
556
|
+
{ name: 'id', type: 'string', required: true },
|
|
557
|
+
{ name: 'name', type: 'string', required: true },
|
|
558
|
+
{ name: 'namedAt', type: 'uint', required: true },
|
|
559
|
+
{ name: 'namedBy', type: 'fixed32' }
|
|
560
|
+
]);
|
|
561
|
+
versioned('name-mesh-operation', [
|
|
562
|
+
{ name: 'name', type: 'string', required: true },
|
|
563
|
+
{ name: 'namedAt', type: 'uint', required: true }
|
|
564
|
+
]);
|
|
551
565
|
}
|
|
552
566
|
export function registerQvacCollections(dbns, helpersPath) {
|
|
553
567
|
dbns.require(helpersPath);
|
|
@@ -877,6 +891,7 @@ export function registerQvacCollections(dbns, helpersPath) {
|
|
|
877
891
|
});
|
|
878
892
|
dbns.collections.register({ name: 'mesh-founders', schema: '@qvac/mesh-founder', key: ['id'] });
|
|
879
893
|
dbns.collections.register({ name: 'purged-chats', schema: '@qvac/purged-chat', key: ['chatId'] });
|
|
894
|
+
dbns.collections.register({ name: 'mesh-names', schema: '@qvac/mesh-name', key: ['id'] });
|
|
880
895
|
}
|
|
881
896
|
export function registerQvacDispatch(ds) {
|
|
882
897
|
ds.register({ name: 'append-chunk', requestType: '@qvac/append-chunk-operation' });
|
|
@@ -942,4 +957,5 @@ export function registerQvacDispatch(ds) {
|
|
|
942
957
|
ds.register({ name: 'reindex-devices', requestType: '@qvac/reindex-devices-operation' });
|
|
943
958
|
ds.register({ name: 'recover-device', requestType: '@qvac/recovery-claim' });
|
|
944
959
|
ds.register({ name: 'purge-chat', requestType: '@qvac/purge-chat-operation' });
|
|
960
|
+
ds.register({ name: 'name-mesh', requestType: '@qvac/name-mesh-operation' });
|
|
945
961
|
}
|
package/dist-lib/spec/bind.js
CHANGED
|
@@ -648,4 +648,29 @@ export function bindApi(rpc, api) {
|
|
|
648
648
|
out.writeStream?.on("close", () => src.destroy());
|
|
649
649
|
});
|
|
650
650
|
}
|
|
651
|
+
if (api.setMeshName) {
|
|
652
|
+
rpc.onSetMeshName((req) => api.setMeshName(req));
|
|
653
|
+
}
|
|
654
|
+
if (api.setChatAgent) {
|
|
655
|
+
rpc.onSetChatAgent((req) => api.setChatAgent(req));
|
|
656
|
+
}
|
|
657
|
+
if (api.moveChatToMesh) {
|
|
658
|
+
rpc.onMoveChatToMesh((req) => api.moveChatToMesh(req));
|
|
659
|
+
}
|
|
660
|
+
if (api.chatMoveWatch) {
|
|
661
|
+
rpc.onChatMoveWatch((out) => {
|
|
662
|
+
const src = Readable.from(api.chatMoveWatch(out.data));
|
|
663
|
+
src.on("error", (err) => out.writeStream?.destroy(err));
|
|
664
|
+
pipeline(src, out, noop);
|
|
665
|
+
out.writeStream?.on("close", () => src.destroy());
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
if (api.chunksDeltaWatch) {
|
|
669
|
+
rpc.onChunksDeltaWatch((out) => {
|
|
670
|
+
const src = Readable.from(api.chunksDeltaWatch(out.data));
|
|
671
|
+
src.on("error", (err) => out.writeStream?.destroy(err));
|
|
672
|
+
pipeline(src, out, noop);
|
|
673
|
+
out.writeStream?.on("close", () => src.destroy());
|
|
674
|
+
});
|
|
675
|
+
}
|
|
651
676
|
}
|
package/dist-lib/spec/calls.js
CHANGED
|
@@ -162,5 +162,10 @@ export function engineClient(rpc) {
|
|
|
162
162
|
modelUsers: (input) => rpc.modelUsers(input),
|
|
163
163
|
markChatRead: (input) => rpc.markChatRead(input),
|
|
164
164
|
modelsWatch: (input) => armed(rpc.modelsWatch(input)),
|
|
165
|
+
setMeshName: (input) => rpc.setMeshName(input),
|
|
166
|
+
setChatAgent: (input) => rpc.setChatAgent(input),
|
|
167
|
+
moveChatToMesh: (input) => rpc.moveChatToMesh(input),
|
|
168
|
+
chatMoveWatch: (input) => armed(rpc.chatMoveWatch(input)),
|
|
169
|
+
chunksDeltaWatch: (input) => armed(rpc.chunksDeltaWatch(input)),
|
|
165
170
|
};
|
|
166
171
|
}
|
|
@@ -180,6 +180,11 @@ export interface Capabilities {
|
|
|
180
180
|
modelUsers(input: T.AssistantModelUsersRequest): Promise<T.AssistantModelUsers>
|
|
181
181
|
markChatRead(input: T.AssistantChatId): Promise<T.AssistantChat>
|
|
182
182
|
modelsWatch(input: T.AssistantListModelsRequest): WatchStream<T.AssistantModelInfoList>
|
|
183
|
+
setMeshName(input: T.AssistantMeshNameRequest): Promise<T.AssistantOkResponse>
|
|
184
|
+
setChatAgent(input: T.AssistantSetChatAgentRequest): Promise<T.AssistantChat>
|
|
185
|
+
moveChatToMesh(input: T.AssistantMoveChatToMeshRequest): Promise<T.AssistantChatMove>
|
|
186
|
+
chatMoveWatch(input: T.AssistantChatId): WatchStream<T.AssistantChatMove>
|
|
187
|
+
chunksDeltaWatch(input: T.AssistantChunksByChatRequest): WatchStream<T.AssistantChunkDelta>
|
|
183
188
|
}
|
|
184
189
|
|
|
185
190
|
export interface CapabilityHandlers {
|
|
@@ -335,4 +340,9 @@ export interface CapabilityHandlers {
|
|
|
335
340
|
modelUsers(input: T.AssistantModelUsersRequest): T.AssistantModelUsers | Promise<T.AssistantModelUsers>
|
|
336
341
|
markChatRead(input: T.AssistantChatId): T.AssistantChat | Promise<T.AssistantChat>
|
|
337
342
|
modelsWatch(input: T.AssistantListModelsRequest): AsyncIterable<T.AssistantModelInfoList>
|
|
343
|
+
setMeshName(input: T.AssistantMeshNameRequest): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
344
|
+
setChatAgent(input: T.AssistantSetChatAgentRequest): T.AssistantChat | Promise<T.AssistantChat>
|
|
345
|
+
moveChatToMesh(input: T.AssistantMoveChatToMeshRequest): T.AssistantChatMove | Promise<T.AssistantChatMove>
|
|
346
|
+
chatMoveWatch(input: T.AssistantChatId): AsyncIterable<T.AssistantChatMove>
|
|
347
|
+
chunksDeltaWatch(input: T.AssistantChunksByChatRequest): AsyncIterable<T.AssistantChunkDelta>
|
|
338
348
|
}
|
|
@@ -6,7 +6,7 @@ const runtime = require('hyperconf/runtime')
|
|
|
6
6
|
const productionEncoding = schema.getEncoding('@conf/config')
|
|
7
7
|
const production = decode(
|
|
8
8
|
productionEncoding,
|
|
9
|
-
runtime.b4a.from('
|
|
9
|
+
runtime.b4a.from('CD49MC4yMC4w', 'base64')
|
|
10
10
|
)
|
|
11
11
|
|
|
12
12
|
const developmentEncoding = null
|
|
@@ -1976,6 +1976,71 @@
|
|
|
1976
1976
|
"stream": true
|
|
1977
1977
|
},
|
|
1978
1978
|
"version": 1
|
|
1979
|
+
},
|
|
1980
|
+
{
|
|
1981
|
+
"id": 152,
|
|
1982
|
+
"name": "@assistant/set-mesh-name",
|
|
1983
|
+
"request": {
|
|
1984
|
+
"name": "@assistant/mesh-name-request",
|
|
1985
|
+
"stream": false
|
|
1986
|
+
},
|
|
1987
|
+
"response": {
|
|
1988
|
+
"name": "@assistant/ok-response",
|
|
1989
|
+
"stream": false
|
|
1990
|
+
},
|
|
1991
|
+
"version": 1
|
|
1992
|
+
},
|
|
1993
|
+
{
|
|
1994
|
+
"id": 153,
|
|
1995
|
+
"name": "@assistant/set-chat-agent",
|
|
1996
|
+
"request": {
|
|
1997
|
+
"name": "@assistant/set-chat-agent-request",
|
|
1998
|
+
"stream": false
|
|
1999
|
+
},
|
|
2000
|
+
"response": {
|
|
2001
|
+
"name": "@assistant/chat",
|
|
2002
|
+
"stream": false
|
|
2003
|
+
},
|
|
2004
|
+
"version": 1
|
|
2005
|
+
},
|
|
2006
|
+
{
|
|
2007
|
+
"id": 154,
|
|
2008
|
+
"name": "@assistant/move-chat-to-mesh",
|
|
2009
|
+
"request": {
|
|
2010
|
+
"name": "@assistant/move-chat-to-mesh-request",
|
|
2011
|
+
"stream": false
|
|
2012
|
+
},
|
|
2013
|
+
"response": {
|
|
2014
|
+
"name": "@assistant/chat-move",
|
|
2015
|
+
"stream": false
|
|
2016
|
+
},
|
|
2017
|
+
"version": 1
|
|
2018
|
+
},
|
|
2019
|
+
{
|
|
2020
|
+
"id": 155,
|
|
2021
|
+
"name": "@assistant/chat-move-watch",
|
|
2022
|
+
"request": {
|
|
2023
|
+
"name": "@assistant/chat-id",
|
|
2024
|
+
"stream": false
|
|
2025
|
+
},
|
|
2026
|
+
"response": {
|
|
2027
|
+
"name": "@assistant/chat-move",
|
|
2028
|
+
"stream": true
|
|
2029
|
+
},
|
|
2030
|
+
"version": 1
|
|
2031
|
+
},
|
|
2032
|
+
{
|
|
2033
|
+
"id": 156,
|
|
2034
|
+
"name": "@assistant/chunks-delta-watch",
|
|
2035
|
+
"request": {
|
|
2036
|
+
"name": "@assistant/chunks-by-chat-request",
|
|
2037
|
+
"stream": false
|
|
2038
|
+
},
|
|
2039
|
+
"response": {
|
|
2040
|
+
"name": "@assistant/chunk-delta",
|
|
2041
|
+
"stream": true
|
|
2042
|
+
},
|
|
2043
|
+
"version": 1
|
|
1979
2044
|
}
|
|
1980
2045
|
]
|
|
1981
2046
|
}
|
|
@@ -309,7 +309,17 @@ const methods = new Map([
|
|
|
309
309
|
['@assistant/mark-chat-read', 150],
|
|
310
310
|
[150, '@assistant/mark-chat-read'],
|
|
311
311
|
['@assistant/models-watch', 151],
|
|
312
|
-
[151, '@assistant/models-watch']
|
|
312
|
+
[151, '@assistant/models-watch'],
|
|
313
|
+
['@assistant/set-mesh-name', 152],
|
|
314
|
+
[152, '@assistant/set-mesh-name'],
|
|
315
|
+
['@assistant/set-chat-agent', 153],
|
|
316
|
+
[153, '@assistant/set-chat-agent'],
|
|
317
|
+
['@assistant/move-chat-to-mesh', 154],
|
|
318
|
+
[154, '@assistant/move-chat-to-mesh'],
|
|
319
|
+
['@assistant/chat-move-watch', 155],
|
|
320
|
+
[155, '@assistant/chat-move-watch'],
|
|
321
|
+
['@assistant/chunks-delta-watch', 156],
|
|
322
|
+
[156, '@assistant/chunks-delta-watch']
|
|
313
323
|
])
|
|
314
324
|
|
|
315
325
|
class HRPC {
|
|
@@ -468,7 +478,12 @@ class HRPC {
|
|
|
468
478
|
['@assistant/preview-custom-model', getEncoding('@assistant/preview-custom-model-request')],
|
|
469
479
|
['@assistant/model-users', getEncoding('@assistant/model-users-request')],
|
|
470
480
|
['@assistant/mark-chat-read', getEncoding('@assistant/chat-id')],
|
|
471
|
-
['@assistant/models-watch', getEncoding('@assistant/list-models-request')]
|
|
481
|
+
['@assistant/models-watch', getEncoding('@assistant/list-models-request')],
|
|
482
|
+
['@assistant/set-mesh-name', getEncoding('@assistant/mesh-name-request')],
|
|
483
|
+
['@assistant/set-chat-agent', getEncoding('@assistant/set-chat-agent-request')],
|
|
484
|
+
['@assistant/move-chat-to-mesh', getEncoding('@assistant/move-chat-to-mesh-request')],
|
|
485
|
+
['@assistant/chat-move-watch', getEncoding('@assistant/chat-id')],
|
|
486
|
+
['@assistant/chunks-delta-watch', getEncoding('@assistant/chunks-by-chat-request')]
|
|
472
487
|
])
|
|
473
488
|
this._responseEncodings = new Map([
|
|
474
489
|
['@assistant/config-get', getEncoding('@assistant/config-value')],
|
|
@@ -622,7 +637,12 @@ class HRPC {
|
|
|
622
637
|
['@assistant/preview-custom-model', getEncoding('@assistant/custom-model-preview')],
|
|
623
638
|
['@assistant/model-users', getEncoding('@assistant/model-users')],
|
|
624
639
|
['@assistant/mark-chat-read', getEncoding('@assistant/chat')],
|
|
625
|
-
['@assistant/models-watch', getEncoding('@assistant/model-info-list')]
|
|
640
|
+
['@assistant/models-watch', getEncoding('@assistant/model-info-list')],
|
|
641
|
+
['@assistant/set-mesh-name', getEncoding('@assistant/ok-response')],
|
|
642
|
+
['@assistant/set-chat-agent', getEncoding('@assistant/chat')],
|
|
643
|
+
['@assistant/move-chat-to-mesh', getEncoding('@assistant/chat-move')],
|
|
644
|
+
['@assistant/chat-move-watch', getEncoding('@assistant/chat-move')],
|
|
645
|
+
['@assistant/chunks-delta-watch', getEncoding('@assistant/chunk-delta')]
|
|
626
646
|
])
|
|
627
647
|
this._rpc = new RPC(stream, async (req) => {
|
|
628
648
|
const command = methods.get(req.command)
|
|
@@ -1328,6 +1348,26 @@ class HRPC {
|
|
|
1328
1348
|
return this._callSync('@assistant/models-watch', args)
|
|
1329
1349
|
}
|
|
1330
1350
|
|
|
1351
|
+
async setMeshName(args) {
|
|
1352
|
+
return this._call('@assistant/set-mesh-name', args)
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
async setChatAgent(args) {
|
|
1356
|
+
return this._call('@assistant/set-chat-agent', args)
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
async moveChatToMesh(args) {
|
|
1360
|
+
return this._call('@assistant/move-chat-to-mesh', args)
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
chatMoveWatch(args) {
|
|
1364
|
+
return this._callSync('@assistant/chat-move-watch', args)
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
chunksDeltaWatch(args) {
|
|
1368
|
+
return this._callSync('@assistant/chunks-delta-watch', args)
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1331
1371
|
onConfigGet(responseFn) {
|
|
1332
1372
|
this._handlers['@assistant/config-get'] = responseFn
|
|
1333
1373
|
}
|
|
@@ -1936,6 +1976,26 @@ class HRPC {
|
|
|
1936
1976
|
this._handlers['@assistant/models-watch'] = responseFn
|
|
1937
1977
|
}
|
|
1938
1978
|
|
|
1979
|
+
onSetMeshName(responseFn) {
|
|
1980
|
+
this._handlers['@assistant/set-mesh-name'] = responseFn
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1983
|
+
onSetChatAgent(responseFn) {
|
|
1984
|
+
this._handlers['@assistant/set-chat-agent'] = responseFn
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1987
|
+
onMoveChatToMesh(responseFn) {
|
|
1988
|
+
this._handlers['@assistant/move-chat-to-mesh'] = responseFn
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
onChatMoveWatch(responseFn) {
|
|
1992
|
+
this._handlers['@assistant/chat-move-watch'] = responseFn
|
|
1993
|
+
}
|
|
1994
|
+
|
|
1995
|
+
onChunksDeltaWatch(responseFn) {
|
|
1996
|
+
this._handlers['@assistant/chunks-delta-watch'] = responseFn
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1939
1999
|
_requestIsStream(command) {
|
|
1940
2000
|
return [
|
|
1941
2001
|
'@assistant/upload-attachment',
|
|
@@ -1978,7 +2038,9 @@ class HRPC {
|
|
|
1978
2038
|
'@assistant/meshes-watch',
|
|
1979
2039
|
'@assistant/account-watch',
|
|
1980
2040
|
'@assistant/members-watch',
|
|
1981
|
-
'@assistant/models-watch'
|
|
2041
|
+
'@assistant/models-watch',
|
|
2042
|
+
'@assistant/chat-move-watch',
|
|
2043
|
+
'@assistant/chunks-delta-watch'
|
|
1982
2044
|
].includes(command)
|
|
1983
2045
|
}
|
|
1984
2046
|
|