@qvac/core 0.6.1 → 0.6.3
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 +102 -1
- package/dist-lib/lib/api/chat.d.ts +1 -1
- package/dist-lib/lib/api/chat.js +2 -1
- package/dist-lib/lib/api/index.d.ts +3 -1
- package/dist-lib/lib/api/index.js +2 -0
- package/dist-lib/lib/api/watchable.d.ts +1 -0
- package/dist-lib/lib/api/watchable.js +1 -1
- package/dist-lib/lib/assistant/harness.d.ts +2 -0
- package/dist-lib/lib/assistant/harness.js +13 -9
- package/dist-lib/lib/assistant-tree.js +4 -0
- package/dist-lib/lib/assistant.d.ts +4 -1
- package/dist-lib/lib/assistant.js +44 -8
- package/dist-lib/lib/client.js +2 -1
- package/dist-lib/lib/collabora/entry.js +13 -19
- package/dist-lib/lib/collabora/worker.js +77 -18
- package/dist-lib/lib/core/chat.d.ts +1 -0
- package/dist-lib/lib/core/chat.js +17 -0
- package/dist-lib/lib/core/contract/chat.js +10 -3
- package/dist-lib/lib/core.d.ts +12 -2
- package/dist-lib/lib/core.js +57 -14
- package/dist-lib/lib/mesh-scoped-engine.js +3 -0
- package/dist-lib/lib/model-download.d.ts +11 -7
- package/dist-lib/lib/model-download.js +22 -21
- package/dist-lib/lib/models-watch.d.ts +6 -0
- package/dist-lib/lib/models-watch.js +45 -0
- package/dist-lib/schema/engine.d.ts +1 -0
- package/dist-lib/schema/engine.js +57 -3
- package/dist-lib/schema/field-order.js +3 -1
- package/dist-lib/schema/qvac.js +2 -1
- package/dist-lib/spec/bind.js +14 -0
- package/dist-lib/spec/calls.js +3 -0
- package/dist-lib/spec/capabilities.d.ts +6 -0
- package/dist-lib/spec/hrpc/hrpc.json +39 -0
- package/dist-lib/spec/hrpc/index.js +41 -4
- package/dist-lib/spec/hrpc/messages.js +788 -583
- package/dist-lib/spec/hyperschema/index.js +788 -583
- package/dist-lib/spec/hyperschema/schema.json +149 -0
- package/dist-lib/spec/hyperschema/types.d.ts +29 -0
- package/dist-lib/spec/mesh/hyperdb/messages.js +36 -8
- package/dist-lib/spec/mesh/hyperdispatch/messages.js +19 -5
- package/dist-lib/spec/mesh/hyperschema/index.js +19 -5
- package/dist-lib/spec/mesh/hyperschema/schema.json +6 -1
- package/dist-lib/spec/mesh/hyperschema/types.d.ts +2 -1
- package/package.json +22 -9
- package/tui/app.mjs +3 -2
- package/dist-lib/lib/model-clamp.d.ts +0 -6
- package/dist-lib/lib/model-clamp.js +0 -23
|
@@ -1937,6 +1937,45 @@
|
|
|
1937
1937
|
"stream": false
|
|
1938
1938
|
},
|
|
1939
1939
|
"version": 1
|
|
1940
|
+
},
|
|
1941
|
+
{
|
|
1942
|
+
"id": 149,
|
|
1943
|
+
"name": "@assistant/model-users",
|
|
1944
|
+
"request": {
|
|
1945
|
+
"name": "@assistant/model-users-request",
|
|
1946
|
+
"stream": false
|
|
1947
|
+
},
|
|
1948
|
+
"response": {
|
|
1949
|
+
"name": "@assistant/model-users",
|
|
1950
|
+
"stream": false
|
|
1951
|
+
},
|
|
1952
|
+
"version": 1
|
|
1953
|
+
},
|
|
1954
|
+
{
|
|
1955
|
+
"id": 150,
|
|
1956
|
+
"name": "@assistant/mark-chat-read",
|
|
1957
|
+
"request": {
|
|
1958
|
+
"name": "@assistant/chat-id",
|
|
1959
|
+
"stream": false
|
|
1960
|
+
},
|
|
1961
|
+
"response": {
|
|
1962
|
+
"name": "@assistant/chat",
|
|
1963
|
+
"stream": false
|
|
1964
|
+
},
|
|
1965
|
+
"version": 1
|
|
1966
|
+
},
|
|
1967
|
+
{
|
|
1968
|
+
"id": 151,
|
|
1969
|
+
"name": "@assistant/models-watch",
|
|
1970
|
+
"request": {
|
|
1971
|
+
"name": "@assistant/list-models-request",
|
|
1972
|
+
"stream": false
|
|
1973
|
+
},
|
|
1974
|
+
"response": {
|
|
1975
|
+
"name": "@assistant/model-info-list",
|
|
1976
|
+
"stream": true
|
|
1977
|
+
},
|
|
1978
|
+
"version": 1
|
|
1940
1979
|
}
|
|
1941
1980
|
]
|
|
1942
1981
|
}
|
|
@@ -303,7 +303,13 @@ const methods = new Map([
|
|
|
303
303
|
['@assistant/set-model-released', 147],
|
|
304
304
|
[147, '@assistant/set-model-released'],
|
|
305
305
|
['@assistant/preview-custom-model', 148],
|
|
306
|
-
[148, '@assistant/preview-custom-model']
|
|
306
|
+
[148, '@assistant/preview-custom-model'],
|
|
307
|
+
['@assistant/model-users', 149],
|
|
308
|
+
[149, '@assistant/model-users'],
|
|
309
|
+
['@assistant/mark-chat-read', 150],
|
|
310
|
+
[150, '@assistant/mark-chat-read'],
|
|
311
|
+
['@assistant/models-watch', 151],
|
|
312
|
+
[151, '@assistant/models-watch']
|
|
307
313
|
])
|
|
308
314
|
|
|
309
315
|
class HRPC {
|
|
@@ -459,7 +465,10 @@ class HRPC {
|
|
|
459
465
|
['@assistant/load-model', getEncoding('@assistant/load-model-request')],
|
|
460
466
|
['@assistant/unload-model', getEncoding('@assistant/unload-model-request')],
|
|
461
467
|
['@assistant/set-model-released', getEncoding('@assistant/set-model-released-request')],
|
|
462
|
-
['@assistant/preview-custom-model', getEncoding('@assistant/preview-custom-model-request')]
|
|
468
|
+
['@assistant/preview-custom-model', getEncoding('@assistant/preview-custom-model-request')],
|
|
469
|
+
['@assistant/model-users', getEncoding('@assistant/model-users-request')],
|
|
470
|
+
['@assistant/mark-chat-read', getEncoding('@assistant/chat-id')],
|
|
471
|
+
['@assistant/models-watch', getEncoding('@assistant/list-models-request')]
|
|
463
472
|
])
|
|
464
473
|
this._responseEncodings = new Map([
|
|
465
474
|
['@assistant/config-get', getEncoding('@assistant/config-value')],
|
|
@@ -610,7 +619,10 @@ class HRPC {
|
|
|
610
619
|
['@assistant/load-model', getEncoding('@assistant/load-model-response')],
|
|
611
620
|
['@assistant/unload-model', getEncoding('@assistant/unload-model-response')],
|
|
612
621
|
['@assistant/set-model-released', getEncoding('@assistant/app-config')],
|
|
613
|
-
['@assistant/preview-custom-model', getEncoding('@assistant/custom-model-preview')]
|
|
622
|
+
['@assistant/preview-custom-model', getEncoding('@assistant/custom-model-preview')],
|
|
623
|
+
['@assistant/model-users', getEncoding('@assistant/model-users')],
|
|
624
|
+
['@assistant/mark-chat-read', getEncoding('@assistant/chat')],
|
|
625
|
+
['@assistant/models-watch', getEncoding('@assistant/model-info-list')]
|
|
614
626
|
])
|
|
615
627
|
this._rpc = new RPC(stream, async (req) => {
|
|
616
628
|
const command = methods.get(req.command)
|
|
@@ -1304,6 +1316,18 @@ class HRPC {
|
|
|
1304
1316
|
return this._call('@assistant/preview-custom-model', args)
|
|
1305
1317
|
}
|
|
1306
1318
|
|
|
1319
|
+
async modelUsers(args) {
|
|
1320
|
+
return this._call('@assistant/model-users', args)
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
async markChatRead(args) {
|
|
1324
|
+
return this._call('@assistant/mark-chat-read', args)
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
modelsWatch(args) {
|
|
1328
|
+
return this._callSync('@assistant/models-watch', args)
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1307
1331
|
onConfigGet(responseFn) {
|
|
1308
1332
|
this._handlers['@assistant/config-get'] = responseFn
|
|
1309
1333
|
}
|
|
@@ -1900,6 +1924,18 @@ class HRPC {
|
|
|
1900
1924
|
this._handlers['@assistant/preview-custom-model'] = responseFn
|
|
1901
1925
|
}
|
|
1902
1926
|
|
|
1927
|
+
onModelUsers(responseFn) {
|
|
1928
|
+
this._handlers['@assistant/model-users'] = responseFn
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
onMarkChatRead(responseFn) {
|
|
1932
|
+
this._handlers['@assistant/mark-chat-read'] = responseFn
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1935
|
+
onModelsWatch(responseFn) {
|
|
1936
|
+
this._handlers['@assistant/models-watch'] = responseFn
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1903
1939
|
_requestIsStream(command) {
|
|
1904
1940
|
return [
|
|
1905
1941
|
'@assistant/upload-attachment',
|
|
@@ -1941,7 +1977,8 @@ class HRPC {
|
|
|
1941
1977
|
'@assistant/file-read',
|
|
1942
1978
|
'@assistant/meshes-watch',
|
|
1943
1979
|
'@assistant/account-watch',
|
|
1944
|
-
'@assistant/members-watch'
|
|
1980
|
+
'@assistant/members-watch',
|
|
1981
|
+
'@assistant/models-watch'
|
|
1945
1982
|
].includes(command)
|
|
1946
1983
|
}
|
|
1947
1984
|
|