@qvac/core 0.3.4 → 0.4.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/README.md +19 -17
- package/dist-lib/lib/api/agents.d.ts +3 -3
- package/dist-lib/lib/api/agents.js +31 -20
- package/dist-lib/lib/api/approval-rules.d.ts +2 -2
- package/dist-lib/lib/api/approval-rules.js +2 -2
- package/dist-lib/lib/api/attachments.d.ts +2 -2
- package/dist-lib/lib/api/attachments.js +14 -25
- package/dist-lib/lib/api/chat-groups.d.ts +2 -2
- package/dist-lib/lib/api/chat-groups.js +9 -9
- package/dist-lib/lib/api/chat.d.ts +4 -2
- package/dist-lib/lib/api/chat.js +18 -18
- package/dist-lib/lib/api/chunks.d.ts +2 -2
- package/dist-lib/lib/api/chunks.js +27 -36
- package/dist-lib/lib/api/current-mesh.d.ts +7 -15
- package/dist-lib/lib/api/current-mesh.js +7 -22
- package/dist-lib/lib/api/devices.d.ts +4 -3
- package/dist-lib/lib/api/devices.js +18 -18
- package/dist-lib/lib/api/execution.d.ts +2 -2
- package/dist-lib/lib/api/execution.js +6 -6
- package/dist-lib/lib/api/files.d.ts +2 -2
- package/dist-lib/lib/api/files.js +4 -4
- package/dist-lib/lib/api/index.d.ts +12 -11
- package/dist-lib/lib/api/index.js +15 -13
- package/dist-lib/lib/api/inference-calls.d.ts +1 -1
- package/dist-lib/lib/api/inference-calls.js +2 -2
- package/dist-lib/lib/api/knowledge.d.ts +2 -2
- package/dist-lib/lib/api/knowledge.js +22 -11
- package/dist-lib/lib/api/local-files.d.ts +3 -0
- package/dist-lib/lib/api/local-files.js +23 -0
- package/dist-lib/lib/api/members.d.ts +6 -2
- package/dist-lib/lib/api/members.js +24 -17
- package/dist-lib/lib/api/mesh.d.ts +4 -5
- package/dist-lib/lib/api/mesh.js +7 -9
- package/dist-lib/lib/api/notifications.d.ts +2 -13
- package/dist-lib/lib/api/notifications.js +20 -52
- package/dist-lib/lib/api/rag.d.ts +2 -2
- package/dist-lib/lib/api/rag.js +4 -4
- package/dist-lib/lib/api/range.d.ts +11 -0
- package/dist-lib/lib/api/range.js +10 -0
- package/dist-lib/lib/api/sync.d.ts +2 -2
- package/dist-lib/lib/api/sync.js +3 -3
- package/dist-lib/lib/api/tool-activity.d.ts +2 -2
- package/dist-lib/lib/api/tool-activity.js +11 -10
- package/dist-lib/lib/api/tool-configs.d.ts +2 -2
- package/dist-lib/lib/api/tool-configs.js +6 -7
- package/dist-lib/lib/api/upload-frames.d.ts +9 -0
- package/dist-lib/lib/api/upload-frames.js +17 -0
- package/dist-lib/lib/api/watchable.d.ts +1 -6
- package/dist-lib/lib/api/watchable.js +4 -13
- package/dist-lib/lib/assistant/history.d.ts +3 -3
- package/dist-lib/lib/assistant-client.js +3 -2
- package/dist-lib/lib/assistant-tree.js +1 -1
- package/dist-lib/lib/assistant.d.ts +16 -14
- package/dist-lib/lib/assistant.js +166 -137
- package/dist-lib/lib/collabora/convert.js +1 -1
- package/dist-lib/lib/core/agent.d.ts +5 -7
- package/dist-lib/lib/core/agent.js +26 -6
- package/dist-lib/lib/core/archived-mesh.js +1 -0
- package/dist-lib/lib/core/chat-order.d.ts +20 -0
- package/dist-lib/lib/core/chat-order.js +96 -0
- package/dist-lib/lib/core/chat.d.ts +0 -5
- package/dist-lib/lib/core/chat.js +1 -3
- package/dist-lib/lib/core/chunk.d.ts +7 -14
- package/dist-lib/lib/core/chunk.js +17 -35
- package/dist-lib/lib/core/contract/agents.js +8 -0
- package/dist-lib/lib/core/contract/compute.d.ts +1 -1
- package/dist-lib/lib/core/contract/compute.js +1 -0
- package/dist-lib/lib/core/contract/joined-meshes.js +4 -3
- package/dist-lib/lib/core/contract/members.js +4 -3
- package/dist-lib/lib/core/contract/writers.js +5 -4
- package/dist-lib/lib/core/departures.js +5 -4
- package/dist-lib/lib/core/device-invites.js +2 -1
- package/dist-lib/lib/core/files/attachments.d.ts +8 -1
- package/dist-lib/lib/core/files/index.d.ts +4 -4
- package/dist-lib/lib/core/files/index.js +18 -8
- package/dist-lib/lib/core/files/local-index.d.ts +16 -0
- package/dist-lib/lib/core/files/local-index.js +38 -0
- package/dist-lib/lib/core/files/processing/document.js +2 -1
- package/dist-lib/lib/core/files/processing/ownership.js +6 -3
- package/dist-lib/lib/core/files/records/chunks.js +1 -0
- package/dist-lib/lib/core/files/records/reclaim.js +1 -0
- package/dist-lib/lib/core/files/records/routing.js +2 -1
- package/dist-lib/lib/core/files/store/blob.d.ts +1 -1
- package/dist-lib/lib/core/files/store/blob.js +6 -3
- package/dist-lib/lib/core/files/store/index.d.ts +1 -1
- package/dist-lib/lib/core/files/store/reference.js +4 -3
- package/dist-lib/lib/core/files/store/server.d.ts +8 -4
- package/dist-lib/lib/core/files/store/server.js +16 -12
- package/dist-lib/lib/core/files/store/sweep.js +2 -1
- package/dist-lib/lib/core/files/upload.d.ts +1 -1
- package/dist-lib/lib/core/hosted-agents.js +1 -1
- package/dist-lib/lib/core/image/cache-sweep.d.ts +1 -0
- package/dist-lib/lib/core/image/cache-sweep.js +7 -3
- package/dist-lib/lib/core/local/files.d.ts +24 -0
- package/dist-lib/lib/core/local/files.js +154 -0
- package/dist-lib/lib/core/local/index.d.ts +21 -5
- package/dist-lib/lib/core/local/index.js +75 -45
- package/dist-lib/lib/core/membership.d.ts +4 -1
- package/dist-lib/lib/core/membership.js +17 -2
- package/dist-lib/lib/core/mesh.d.ts +5 -0
- package/dist-lib/lib/core/mesh.js +11 -5
- package/dist-lib/lib/core/migrations/agent-indexes.d.ts +2 -0
- package/dist-lib/lib/core/migrations/agent-indexes.js +30 -0
- package/dist-lib/lib/core/migrations/file-index.d.ts +2 -0
- package/dist-lib/lib/core/migrations/file-index.js +27 -0
- package/dist-lib/lib/core/migrations/index.js +3 -1
- package/dist-lib/lib/core/notification.js +5 -5
- package/dist-lib/lib/core/range.d.ts +18 -0
- package/dist-lib/lib/core/range.js +17 -0
- package/dist-lib/lib/core/sync/index.js +39 -32
- package/dist-lib/lib/core/sync-status.js +3 -2
- package/dist-lib/lib/core/tool-activity.d.ts +2 -5
- package/dist-lib/lib/core/tool-activity.js +4 -7
- package/dist-lib/lib/core.d.ts +48 -29
- package/dist-lib/lib/core.js +465 -359
- package/dist-lib/lib/knowledge-search.d.ts +2 -2
- package/dist-lib/lib/kv-cache.js +1 -1
- package/dist-lib/lib/log.js +2 -3
- package/dist-lib/lib/mesh-scoped-engine.d.ts +8 -1
- package/dist-lib/lib/mesh-scoped-engine.js +62 -15
- package/dist-lib/lib/model-download.d.ts +14 -5
- package/dist-lib/lib/model-download.js +25 -17
- package/dist-lib/lib/run-transcript.d.ts +2 -2
- package/dist-lib/lib/run-transcript.js +3 -2
- package/dist-lib/lib/task.d.ts +1 -0
- package/dist-lib/lib/task.js +3 -2
- package/dist-lib/schema/build.js +4 -10
- package/dist-lib/schema/engine.js +261 -91
- package/dist-lib/schema/helpers.d.ts +4 -0
- package/dist-lib/schema/helpers.js +20 -0
- package/dist-lib/schema/local.d.ts +1 -1
- package/dist-lib/schema/local.js +70 -2
- package/dist-lib/schema/qvac.js +30 -0
- package/dist-lib/spec/bind.js +20 -3
- package/dist-lib/spec/calls.js +19 -15
- package/dist-lib/spec/capabilities.d.ts +42 -34
- package/dist-lib/spec/hrpc/hrpc.json +82 -30
- package/dist-lib/spec/hrpc/index.js +106 -57
- package/dist-lib/spec/hrpc/messages.js +5420 -5019
- package/dist-lib/spec/hyperschema/index.js +5424 -5023
- package/dist-lib/spec/hyperschema/schema.json +3202 -2666
- package/dist-lib/spec/hyperschema/types.d.ts +455 -319
- package/dist-lib/spec/local/hyperdb/db.json +119 -1
- package/dist-lib/spec/local/hyperdb/index.js +414 -2
- package/dist-lib/spec/local/hyperdb/messages.js +505 -124
- package/dist-lib/spec/local/hyperschema/index.js +203 -5
- package/dist-lib/spec/local/hyperschema/schema.json +136 -1
- package/dist-lib/spec/local/hyperschema/types.d.ts +32 -1
- package/dist-lib/spec/mesh/hyperdb/db.json +55 -3
- package/dist-lib/spec/mesh/hyperdb/index.js +119 -3
- package/dist-lib/spec/mesh/hyperdb/messages.js +244 -172
- 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 +74 -2
- package/dist-lib/spec/mesh/hyperschema/index.js +74 -2
- package/dist-lib/spec/mesh/hyperschema/schema.json +27 -1
- package/dist-lib/spec/mesh/hyperschema/types.d.ts +9 -1
- package/package.json +6 -6
- package/tui/app.mjs +376 -151
- package/tui/boot.mjs +2 -1
- package/tui/lib/busy-words.mjs +2 -1
- package/tui/lib/knowledge-command.mjs +11 -10
- package/tui/lib/knowledge-import.mjs +7 -5
- package/tui/lib/render.mjs +4 -3
- package/tui/lib/usage.mjs +2 -1
- package/tui/main.mjs +2 -1
|
@@ -9,12 +9,16 @@ export function chunkTypeOrdinal(type: string): number
|
|
|
9
9
|
export function chunksByTypeMap(record: any): ReadonlyArray<Record<string, any>>
|
|
10
10
|
export function activeAgentsMap(record: any): ReadonlyArray<Record<string, any>>
|
|
11
11
|
export function activeChatsMap(record: any): ReadonlyArray<Record<string, any>>
|
|
12
|
+
export function agentsByProviderMap(record: any): ReadonlyArray<Record<string, any>>
|
|
13
|
+
export function defaultAgentsMap(record: any): ReadonlyArray<Record<string, any>>
|
|
12
14
|
export function activeChatsByAgentMap(record: any): ReadonlyArray<Record<string, any>>
|
|
13
15
|
export function activeChatGroupsMap(record: any): ReadonlyArray<Record<string, any>>
|
|
14
16
|
export function activeKnowledgeByChatMap(record: any): ReadonlyArray<Record<string, any>>
|
|
15
17
|
export function activeToolConfigsByAgentMap(record: any): ReadonlyArray<Record<string, any>>
|
|
16
18
|
export function toolActivityByAgentMap(record: any): ReadonlyArray<Record<string, any>>
|
|
17
19
|
export function runRequestsMap(record: any): ReadonlyArray<Record<string, any>>
|
|
20
|
+
export function liveFilesMap(record: any): ReadonlyArray<Record<string, any>>
|
|
21
|
+
export function reclaimableFilesMap(record: any): ReadonlyArray<Record<string, any>>
|
|
18
22
|
export const MEDIA_KINDS: readonly ['audio', 'image', 'video', 'other']
|
|
19
23
|
export const AUDIO_EXTENSIONS: readonly string[]
|
|
20
24
|
export function mediaKindOf(
|
|
@@ -41,6 +41,16 @@ export function activeAgentsMap(record) {
|
|
|
41
41
|
return [{ createdAt: record.createdAt }]
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
export function agentsByProviderMap(record) {
|
|
45
|
+
if (record.deletedAt) return []
|
|
46
|
+
return [{ providerDeviceId: record.providerDeviceId, createdAt: record.createdAt }]
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function defaultAgentsMap(record) {
|
|
50
|
+
if (record.deletedAt || !record.isDefault) return []
|
|
51
|
+
return [{ providerDeviceId: record.providerDeviceId, createdAt: record.createdAt }]
|
|
52
|
+
}
|
|
53
|
+
|
|
44
54
|
export function activeChatsMap(record) {
|
|
45
55
|
if (record.deletedAt) return []
|
|
46
56
|
return [{ createdAt: record.createdAt }]
|
|
@@ -174,3 +184,13 @@ export function liveWritersByMostRecentMap(record) {
|
|
|
174
184
|
if (record.revoked) return []
|
|
175
185
|
return [{ clock: record.clock }]
|
|
176
186
|
}
|
|
187
|
+
|
|
188
|
+
export function liveFilesMap(record) {
|
|
189
|
+
if (record.deletedAt) return []
|
|
190
|
+
return [{ meshKey: record.meshKey, coreKey: record.coreKey, blockOffset: record.blockOffset }]
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export function reclaimableFilesMap(record) {
|
|
194
|
+
if (record.cleared || record.deletedAt) return []
|
|
195
|
+
return [{ lastAccessed: record.lastAccessed }]
|
|
196
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare function registerLocalTypes(ns: any): void;
|
|
2
|
-
export declare function registerLocalCollections(dbns: any): void;
|
|
2
|
+
export declare function registerLocalCollections(dbns: any, helpersPath: string): void;
|
package/dist-lib/schema/local.js
CHANGED
|
@@ -70,7 +70,8 @@ export function registerLocalTypes(ns) {
|
|
|
70
70
|
{ name: 'publicKey', type: 'buffer', required: true },
|
|
71
71
|
{ name: 'proof', type: 'buffer', required: true },
|
|
72
72
|
{ name: 'createdAt', type: 'uint', required: true },
|
|
73
|
-
{ name: 'displayName', type: 'string' }
|
|
73
|
+
{ name: 'displayName', type: 'string' },
|
|
74
|
+
{ name: 'displayNameAt', type: 'uint' }
|
|
74
75
|
]);
|
|
75
76
|
versioned('membership', [
|
|
76
77
|
{ name: 'id', type: 'string', required: true },
|
|
@@ -121,9 +122,30 @@ export function registerLocalTypes(ns) {
|
|
|
121
122
|
{ name: 'coreKey', type: 'fixed32', required: true },
|
|
122
123
|
{ name: 'publishedAt', type: 'uint', required: true }
|
|
123
124
|
]);
|
|
125
|
+
versioned('chat-order', [
|
|
126
|
+
{ name: 'meshKey', type: 'fixed32', required: true },
|
|
127
|
+
{ name: 'chatId', type: 'string', required: true },
|
|
128
|
+
{ name: 'sortKey', type: 'buffer', required: true }
|
|
129
|
+
]);
|
|
130
|
+
versioned('file', [
|
|
131
|
+
{ name: 'meshKey', type: 'fixed32', required: true },
|
|
132
|
+
{ name: 'coreKey', type: 'fixed32', required: true },
|
|
133
|
+
{ name: 'blockOffset', type: 'uint', required: true },
|
|
134
|
+
{ name: 'blobId', type: 'string', required: true },
|
|
135
|
+
{ name: 'chatId', type: 'string' },
|
|
136
|
+
{ name: 'attachmentId', type: 'string' },
|
|
137
|
+
{ name: 'fileName', type: 'string' },
|
|
138
|
+
{ name: 'mimeType', type: 'string' },
|
|
139
|
+
{ name: 'byteLength', type: 'uint' },
|
|
140
|
+
{ name: 'own', type: 'bool', required: true },
|
|
141
|
+
{ name: 'lastAccessed', type: 'uint', required: true },
|
|
142
|
+
{ name: 'cleared', type: 'bool', required: true },
|
|
143
|
+
{ name: 'deletedAt', type: 'uint' }
|
|
144
|
+
]);
|
|
124
145
|
ns.register({ name: 'capability-profile', enum: CAPABILITY_PROFILES, strings: true });
|
|
125
146
|
}
|
|
126
|
-
export function registerLocalCollections(dbns) {
|
|
147
|
+
export function registerLocalCollections(dbns, helpersPath) {
|
|
148
|
+
dbns.require(helpersPath);
|
|
127
149
|
dbns.collections.register({ name: 'config', schema: '@local/config', key: ['key'] });
|
|
128
150
|
dbns.collections.register({
|
|
129
151
|
name: 'mesh-session',
|
|
@@ -176,4 +198,50 @@ export function registerLocalCollections(dbns) {
|
|
|
176
198
|
schema: '@local/account-recovery',
|
|
177
199
|
key: ['meshKey']
|
|
178
200
|
});
|
|
201
|
+
dbns.collections.register({
|
|
202
|
+
name: 'chat-order',
|
|
203
|
+
schema: '@local/chat-order',
|
|
204
|
+
key: ['meshKey', 'chatId']
|
|
205
|
+
});
|
|
206
|
+
dbns.indexes.register({
|
|
207
|
+
name: 'chat-order-by-key',
|
|
208
|
+
collection: '@local/chat-order',
|
|
209
|
+
unique: false,
|
|
210
|
+
key: ['meshKey', 'sortKey', 'chatId']
|
|
211
|
+
});
|
|
212
|
+
dbns.collections.register({
|
|
213
|
+
name: 'files',
|
|
214
|
+
schema: '@local/file',
|
|
215
|
+
key: ['meshKey', 'coreKey', 'blockOffset']
|
|
216
|
+
});
|
|
217
|
+
dbns.indexes.register({
|
|
218
|
+
name: 'files-by-blob',
|
|
219
|
+
collection: '@local/files',
|
|
220
|
+
unique: false,
|
|
221
|
+
key: ['coreKey', 'blockOffset']
|
|
222
|
+
});
|
|
223
|
+
dbns.indexes.register({
|
|
224
|
+
name: 'reclaimable-files-by-last-accessed',
|
|
225
|
+
collection: '@local/files',
|
|
226
|
+
unique: false,
|
|
227
|
+
key: {
|
|
228
|
+
type: { fields: [{ name: 'lastAccessed', type: 'uint' }] },
|
|
229
|
+
map: 'reclaimableFilesMap'
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
dbns.indexes.register({
|
|
233
|
+
name: 'live-files',
|
|
234
|
+
collection: '@local/files',
|
|
235
|
+
unique: false,
|
|
236
|
+
key: {
|
|
237
|
+
type: {
|
|
238
|
+
fields: [
|
|
239
|
+
{ name: 'meshKey', type: 'fixed32' },
|
|
240
|
+
{ name: 'coreKey', type: 'fixed32' },
|
|
241
|
+
{ name: 'blockOffset', type: 'uint' }
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
map: 'liveFilesMap'
|
|
245
|
+
}
|
|
246
|
+
});
|
|
179
247
|
}
|
package/dist-lib/schema/qvac.js
CHANGED
|
@@ -458,6 +458,7 @@ export function registerQvacTypes(ns) {
|
|
|
458
458
|
versioned('put-joined-mesh-operation', [
|
|
459
459
|
{ name: 'room', type: '@qvac/joined-mesh', required: true }
|
|
460
460
|
]);
|
|
461
|
+
versioned('reindex-agents-operation', [{ name: 'agentIds', type: 'string', array: true }]);
|
|
461
462
|
}
|
|
462
463
|
export function registerQvacCollections(dbns, helpersPath) {
|
|
463
464
|
dbns.require(helpersPath);
|
|
@@ -722,6 +723,34 @@ export function registerQvacCollections(dbns, helpersPath) {
|
|
|
722
723
|
schema: '@qvac/joined-mesh',
|
|
723
724
|
key: ['meshKey']
|
|
724
725
|
});
|
|
726
|
+
dbns.indexes.register({
|
|
727
|
+
name: 'agents-by-provider',
|
|
728
|
+
collection: '@qvac/agents',
|
|
729
|
+
unique: false,
|
|
730
|
+
key: {
|
|
731
|
+
type: {
|
|
732
|
+
fields: [
|
|
733
|
+
{ name: 'providerDeviceId', type: 'fixed32' },
|
|
734
|
+
{ name: 'createdAt', type: 'uint' }
|
|
735
|
+
]
|
|
736
|
+
},
|
|
737
|
+
map: 'agentsByProviderMap'
|
|
738
|
+
}
|
|
739
|
+
});
|
|
740
|
+
dbns.indexes.register({
|
|
741
|
+
name: 'default-agents',
|
|
742
|
+
collection: '@qvac/agents',
|
|
743
|
+
unique: false,
|
|
744
|
+
key: {
|
|
745
|
+
type: {
|
|
746
|
+
fields: [
|
|
747
|
+
{ name: 'providerDeviceId', type: 'fixed32' },
|
|
748
|
+
{ name: 'createdAt', type: 'uint' }
|
|
749
|
+
]
|
|
750
|
+
},
|
|
751
|
+
map: 'defaultAgentsMap'
|
|
752
|
+
}
|
|
753
|
+
});
|
|
725
754
|
}
|
|
726
755
|
export function registerQvacDispatch(ds) {
|
|
727
756
|
ds.register({ name: 'append-chunk', requestType: '@qvac/append-chunk-operation' });
|
|
@@ -776,4 +805,5 @@ export function registerQvacDispatch(ds) {
|
|
|
776
805
|
requestType: '@qvac/put-joined-mesh-operation'
|
|
777
806
|
});
|
|
778
807
|
ds.register({ name: 'remove-member', requestType: '@qvac/remove-member-operation' });
|
|
808
|
+
ds.register({ name: 'reindex-agents', requestType: '@qvac/reindex-agents-operation' });
|
|
779
809
|
}
|
package/dist-lib/spec/bind.js
CHANGED
|
@@ -537,12 +537,20 @@ export function bindApi(rpc, api) {
|
|
|
537
537
|
out.writeStream?.on("close", () => src.destroy());
|
|
538
538
|
});
|
|
539
539
|
}
|
|
540
|
+
if (api.account) {
|
|
541
|
+
rpc.onAccount((req) => api.account(req));
|
|
542
|
+
}
|
|
543
|
+
if (api.accountWatch) {
|
|
544
|
+
rpc.onAccountWatch((out) => {
|
|
545
|
+
const src = Readable.from(api.accountWatch(out.data));
|
|
546
|
+
src.on("error", (err) => out.writeStream?.destroy(err));
|
|
547
|
+
pipeline(src, out, noop);
|
|
548
|
+
out.writeStream?.on("close", () => src.destroy());
|
|
549
|
+
});
|
|
550
|
+
}
|
|
540
551
|
if (api.openMesh) {
|
|
541
552
|
rpc.onOpenMesh((req) => api.openMesh(req));
|
|
542
553
|
}
|
|
543
|
-
if (api.selectMesh) {
|
|
544
|
-
rpc.onSelectMesh((req) => api.selectMesh(req));
|
|
545
|
-
}
|
|
546
554
|
if (api.closeMesh) {
|
|
547
555
|
rpc.onCloseMesh((req) => api.closeMesh(req));
|
|
548
556
|
}
|
|
@@ -596,4 +604,13 @@ export function bindApi(rpc, api) {
|
|
|
596
604
|
if (api.inferenceCalls) {
|
|
597
605
|
rpc.onInferenceCalls((req) => api.inferenceCalls(req));
|
|
598
606
|
}
|
|
607
|
+
if (api.listLocalFiles) {
|
|
608
|
+
rpc.onListLocalFiles((req) => api.listLocalFiles(req));
|
|
609
|
+
}
|
|
610
|
+
if (api.getDefaultAgent) {
|
|
611
|
+
rpc.onGetDefaultAgent((req) => api.getDefaultAgent(req));
|
|
612
|
+
}
|
|
613
|
+
if (api.getDevice) {
|
|
614
|
+
rpc.onGetDevice((req) => api.getDevice(req));
|
|
615
|
+
}
|
|
599
616
|
}
|
package/dist-lib/spec/calls.js
CHANGED
|
@@ -14,28 +14,28 @@ export function engineClient(rpc) {
|
|
|
14
14
|
configSet: (input) => rpc.configSet(input),
|
|
15
15
|
configWatch: (input) => armed(rpc.configWatch(input)),
|
|
16
16
|
createAgent: (input) => rpc.createAgent(input),
|
|
17
|
-
listAgents: (input) => rpc.listAgents(input
|
|
17
|
+
listAgents: (input) => rpc.listAgents(input),
|
|
18
18
|
getAgent: (input) => rpc.getAgent(input),
|
|
19
19
|
updateAgent: (input) => rpc.updateAgent(input),
|
|
20
20
|
deleteAgent: (input) => rpc.deleteAgent(input),
|
|
21
|
-
agentsWatch: (input) => armed(rpc.agentsWatch(input
|
|
21
|
+
agentsWatch: (input) => armed(rpc.agentsWatch(input)),
|
|
22
22
|
createChat: (input) => rpc.createChat(input),
|
|
23
|
-
listChats: (input) => rpc.listChats(input
|
|
23
|
+
listChats: (input) => rpc.listChats(input),
|
|
24
24
|
getChat: (input) => rpc.getChat(input),
|
|
25
25
|
renameChat: (input) => rpc.renameChat(input),
|
|
26
26
|
setChatRagEnabled: (input) => rpc.setChatRagEnabled(input),
|
|
27
27
|
setChatWebSearchEnabled: (input) => rpc.setChatWebSearchEnabled(input),
|
|
28
28
|
deleteChat: (input) => rpc.deleteChat(input),
|
|
29
|
-
chatsWatch: (input) => armed(rpc.chatsWatch(input
|
|
29
|
+
chatsWatch: (input) => armed(rpc.chatsWatch(input)),
|
|
30
30
|
createChatGroup: (input) => rpc.createChatGroup(input),
|
|
31
|
-
listChatGroups: (input) => rpc.listChatGroups(input
|
|
31
|
+
listChatGroups: (input) => rpc.listChatGroups(input),
|
|
32
32
|
renameChatGroup: (input) => rpc.renameChatGroup(input),
|
|
33
33
|
deleteChatGroup: (input) => rpc.deleteChatGroup(input),
|
|
34
34
|
setChatGroup: (input) => rpc.setChatGroup(input),
|
|
35
35
|
listChatActivity: (input) => rpc.listChatActivity(input),
|
|
36
36
|
chatActivityWatch: (input) => armed(rpc.chatActivityWatch(input)),
|
|
37
|
-
listDevices: (input) => rpc.listDevices(input
|
|
38
|
-
devicesWatch: (input) => armed(rpc.devicesWatch(input
|
|
37
|
+
listDevices: (input) => rpc.listDevices(input),
|
|
38
|
+
devicesWatch: (input) => armed(rpc.devicesWatch(input)),
|
|
39
39
|
saveDeviceCapabilities: (input) => rpc.saveDeviceCapabilities(input),
|
|
40
40
|
modelDownloadsWatch: (input) => armed(rpc.modelDownloadsWatch(input ?? {})),
|
|
41
41
|
setModelDownloadStatus: (input) => rpc.setModelDownloadStatus(input),
|
|
@@ -66,17 +66,17 @@ export function engineClient(rpc) {
|
|
|
66
66
|
networkWatch: (input) => armed(rpc.networkWatch(input ?? {})),
|
|
67
67
|
deviceInfo: (input) => rpc.deviceInfo(input ?? {}),
|
|
68
68
|
storeIdentityPhrase: (input) => rpc.storeIdentityPhrase(input),
|
|
69
|
-
leaveMesh: (input) => rpc.leaveMesh(input
|
|
69
|
+
leaveMesh: (input) => rpc.leaveMesh(input),
|
|
70
70
|
acknowledgeKicked: (input) => rpc.acknowledgeKicked(input ?? {}),
|
|
71
71
|
joinMesh: (input) => rpc.joinMesh(input),
|
|
72
72
|
cancelMeshJoin: (input) => rpc.cancelMeshJoin(input ?? {}),
|
|
73
73
|
suspend: (input) => rpc.suspend(input ?? {}),
|
|
74
74
|
resume: (input) => rpc.resume(input ?? {}),
|
|
75
75
|
meshInvite: (input) => rpc.meshInvite(input),
|
|
76
|
-
listApprovalRules: (input) => rpc.listApprovalRules(input
|
|
76
|
+
listApprovalRules: (input) => rpc.listApprovalRules(input),
|
|
77
77
|
diagnostics: (input) => rpc.diagnostics(input ?? {}),
|
|
78
78
|
diagnosticsWatch: (input) => armed(rpc.diagnosticsWatch(input ?? {})),
|
|
79
|
-
runRequestsWatch: (input) => armed(rpc.runRequestsWatch(input
|
|
79
|
+
runRequestsWatch: (input) => armed(rpc.runRequestsWatch(input)),
|
|
80
80
|
listModels: (input) => rpc.listModels(input),
|
|
81
81
|
deleteModel: (input) => rpc.deleteModel(input),
|
|
82
82
|
modelCatalogWatch: (input) => armed(rpc.modelCatalogWatch(input ?? {})),
|
|
@@ -98,7 +98,7 @@ export function engineClient(rpc) {
|
|
|
98
98
|
indexingProgressWatch: (input) => armed(rpc.indexingProgressWatch(input)),
|
|
99
99
|
indexingWatch: (input) => armed(rpc.indexingWatch(input)),
|
|
100
100
|
transcodeImage: (input) => rpc.transcodeImage(input),
|
|
101
|
-
syncStatusWatch: (input) => armed(rpc.syncStatusWatch(input
|
|
101
|
+
syncStatusWatch: (input) => armed(rpc.syncStatusWatch(input)),
|
|
102
102
|
setToolConfigs: (input) => rpc.setToolConfigs(input),
|
|
103
103
|
deleteToolConfigs: (input) => rpc.deleteToolConfigs(input),
|
|
104
104
|
listToolConfigs: (input) => rpc.listToolConfigs(input),
|
|
@@ -127,16 +127,17 @@ export function engineClient(rpc) {
|
|
|
127
127
|
fileRetry: (input) => rpc.fileRetry(input),
|
|
128
128
|
moveChat: (input) => rpc.moveChat(input),
|
|
129
129
|
moveChatGroup: (input) => rpc.moveChatGroup(input),
|
|
130
|
-
listMembers: (input) => rpc.listMembers(input
|
|
130
|
+
listMembers: (input) => rpc.listMembers(input),
|
|
131
131
|
listMeshes: (input) => rpc.listMeshes(input ?? {}),
|
|
132
132
|
meshesWatch: (input) => armed(rpc.meshesWatch(input ?? {})),
|
|
133
|
+
account: (input) => rpc.account(input ?? {}),
|
|
134
|
+
accountWatch: (input) => armed(rpc.accountWatch(input ?? {})),
|
|
133
135
|
openMesh: (input) => rpc.openMesh(input),
|
|
134
|
-
selectMesh: (input) => rpc.selectMesh(input),
|
|
135
136
|
closeMesh: (input) => rpc.closeMesh(input),
|
|
136
137
|
setMeshLabel: (input) => rpc.setMeshLabel(input),
|
|
137
138
|
createRoom: (input) => rpc.createRoom(input ?? {}),
|
|
138
|
-
sortChatGroupsByName: (input) => rpc.sortChatGroupsByName(input
|
|
139
|
-
membersWatch: (input) => armed(rpc.membersWatch(input
|
|
139
|
+
sortChatGroupsByName: (input) => rpc.sortChatGroupsByName(input),
|
|
140
|
+
membersWatch: (input) => armed(rpc.membersWatch(input)),
|
|
140
141
|
updateMember: (input) => rpc.updateMember(input),
|
|
141
142
|
removeMember: (input) => rpc.removeMember(input),
|
|
142
143
|
archivedMeshContents: (input) => rpc.archivedMeshContents(input),
|
|
@@ -148,5 +149,8 @@ export function engineClient(rpc) {
|
|
|
148
149
|
displayName: (input) => rpc.displayName(input ?? {}),
|
|
149
150
|
setDisplayName: (input) => rpc.setDisplayName(input),
|
|
150
151
|
inferenceCalls: (input) => rpc.inferenceCalls(input),
|
|
152
|
+
listLocalFiles: (input) => rpc.listLocalFiles(input ?? {}),
|
|
153
|
+
getDefaultAgent: (input) => rpc.getDefaultAgent(input),
|
|
154
|
+
getDevice: (input) => rpc.getDevice(input),
|
|
151
155
|
};
|
|
152
156
|
}
|
|
@@ -32,28 +32,28 @@ 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
|
|
35
|
+
listAgents(input: T.AssistantListAgentsRequest): 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
|
|
39
|
+
agentsWatch(input: T.AssistantListAgentsRequest): WatchStream<T.AssistantAgentList>
|
|
40
40
|
createChat(input: T.AssistantCreateChatRequest): Promise<T.AssistantChat>
|
|
41
|
-
listChats(input
|
|
41
|
+
listChats(input: T.AssistantListChatsRequest): 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
|
|
47
|
+
chatsWatch(input: T.AssistantListChatsRequest): WatchStream<T.AssistantChatList>
|
|
48
48
|
createChatGroup(input: T.AssistantCreateChatGroupRequest): Promise<T.AssistantChatGroup>
|
|
49
|
-
listChatGroups(input
|
|
49
|
+
listChatGroups(input: T.AssistantMeshScope): Promise<T.AssistantChatGroupList>
|
|
50
50
|
renameChatGroup(input: T.AssistantRenameChatGroupRequest): Promise<T.AssistantChatGroup>
|
|
51
51
|
deleteChatGroup(input: T.AssistantChatGroupId): Promise<T.AssistantChatGroup>
|
|
52
52
|
setChatGroup(input: T.AssistantSetChatGroupRequest): Promise<T.AssistantChat>
|
|
53
53
|
listChatActivity(input: T.AssistantChatActivityRequest): Promise<T.AssistantChatActivityList>
|
|
54
54
|
chatActivityWatch(input: T.AssistantChatActivityRequest): WatchStream<T.AssistantChatActivityList>
|
|
55
|
-
listDevices(input
|
|
56
|
-
devicesWatch(input
|
|
55
|
+
listDevices(input: T.AssistantMeshScope): Promise<T.AssistantDeviceList>
|
|
56
|
+
devicesWatch(input: T.AssistantMeshScope): WatchStream<T.AssistantDeviceList>
|
|
57
57
|
saveDeviceCapabilities(input: T.AssistantSaveDeviceCapabilitiesRequest): Promise<T.AssistantOkResponse>
|
|
58
58
|
modelDownloadsWatch(input?: T.AssistantEmpty): WatchStream<T.AssistantModelDownloadList>
|
|
59
59
|
setModelDownloadStatus(input: T.AssistantSetModelDownloadStatusRequest): Promise<T.AssistantOkResponse>
|
|
@@ -84,17 +84,17 @@ export interface Capabilities {
|
|
|
84
84
|
networkWatch(input?: T.AssistantEmpty): WatchStream<T.AssistantNetworkStatus>
|
|
85
85
|
deviceInfo(input?: T.AssistantEmpty): Promise<T.AssistantDeviceInfo>
|
|
86
86
|
storeIdentityPhrase(input: T.AssistantIdentityPhrase): Promise<T.AssistantOkResponse>
|
|
87
|
-
leaveMesh(input
|
|
87
|
+
leaveMesh(input: T.AssistantMeshTarget): Promise<T.AssistantOkResponse>
|
|
88
88
|
acknowledgeKicked(input?: T.AssistantEmpty): Promise<T.AssistantOkResponse>
|
|
89
89
|
joinMesh(input: T.AssistantJoinMeshRequest): Promise<T.AssistantOkResponse>
|
|
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
93
|
meshInvite(input: T.AssistantMeshInviteRequest): Promise<T.AssistantMeshInviteResponse>
|
|
94
|
-
listApprovalRules(input
|
|
94
|
+
listApprovalRules(input: T.AssistantMeshScope): Promise<T.AssistantApprovalRuleList>
|
|
95
95
|
diagnostics(input?: T.AssistantEmpty): Promise<T.AssistantDiagnostics>
|
|
96
96
|
diagnosticsWatch(input?: T.AssistantEmpty): WatchStream<T.AssistantDiagnostics>
|
|
97
|
-
runRequestsWatch(input
|
|
97
|
+
runRequestsWatch(input: T.AssistantMeshScope): WatchStream<T.AssistantChunkList>
|
|
98
98
|
listModels(input: T.AssistantListModelsRequest): Promise<T.AssistantModelInfoList>
|
|
99
99
|
deleteModel(input: T.AssistantDeleteModelRequest): Promise<T.AssistantDeleteModelResponse>
|
|
100
100
|
modelCatalogWatch(input?: T.AssistantEmpty): WatchStream<T.AssistantModelCatalogRevision>
|
|
@@ -116,7 +116,7 @@ export interface Capabilities {
|
|
|
116
116
|
indexingProgressWatch(input: T.AssistantKnowledgeByChatRequest): WatchStream<T.AssistantIndexingProgressList>
|
|
117
117
|
indexingWatch(input: T.AssistantKnowledgeByChatRequest): WatchStream<T.AssistantIndexingStatusList>
|
|
118
118
|
transcodeImage(input: T.AssistantTranscodeImageRequest): Promise<T.AssistantTranscodeImageResponse>
|
|
119
|
-
syncStatusWatch(input
|
|
119
|
+
syncStatusWatch(input: T.AssistantMeshScope): WatchStream<T.AssistantSyncStatus>
|
|
120
120
|
setToolConfigs(input: T.AssistantSetToolConfigsRequest): Promise<T.AssistantToolConfigs>
|
|
121
121
|
deleteToolConfigs(input: T.AssistantDeleteToolConfigsRequest): Promise<T.AssistantToolConfigs>
|
|
122
122
|
listToolConfigs(input: T.AssistantListToolConfigsRequest): Promise<T.AssistantToolConfigsList>
|
|
@@ -139,22 +139,23 @@ export interface Capabilities {
|
|
|
139
139
|
ackNotification(input: T.AssistantNotificationAck): Promise<T.AssistantOkResponse>
|
|
140
140
|
beginModelTransfer(input: T.AssistantModelTransferStart): Promise<T.AssistantModelTransfer>
|
|
141
141
|
completeModelTransfer(input: T.AssistantModelTransfer): Promise<T.AssistantOkResponse>
|
|
142
|
-
deleteChatKvCache(input: T.
|
|
142
|
+
deleteChatKvCache(input: T.AssistantKvCacheChatId): Promise<T.AssistantKvCacheDeletionResponse>
|
|
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
146
|
moveChat(input: T.AssistantMoveChatRequest): Promise<T.AssistantChat>
|
|
147
147
|
moveChatGroup(input: T.AssistantMoveChatGroupRequest): Promise<T.AssistantChatGroup>
|
|
148
|
-
listMembers(input
|
|
148
|
+
listMembers(input: T.AssistantMeshScope): Promise<T.AssistantMemberList>
|
|
149
149
|
listMeshes(input?: T.AssistantEmpty): Promise<T.AssistantMeshList>
|
|
150
150
|
meshesWatch(input?: T.AssistantEmpty): WatchStream<T.AssistantMeshList>
|
|
151
|
+
account(input?: T.AssistantEmpty): Promise<T.AssistantAccount>
|
|
152
|
+
accountWatch(input?: T.AssistantEmpty): WatchStream<T.AssistantAccount>
|
|
151
153
|
openMesh(input: T.AssistantMeshTarget): Promise<T.AssistantOkResponse>
|
|
152
|
-
selectMesh(input: T.AssistantMeshTarget): Promise<T.AssistantOkResponse>
|
|
153
154
|
closeMesh(input: T.AssistantMeshTarget): Promise<T.AssistantOkResponse>
|
|
154
155
|
setMeshLabel(input: T.AssistantMeshLabelRequest): Promise<T.AssistantOkResponse>
|
|
155
156
|
createRoom(input?: T.AssistantCreateRoomRequest): Promise<T.AssistantMeshTarget>
|
|
156
|
-
sortChatGroupsByName(input
|
|
157
|
-
membersWatch(input
|
|
157
|
+
sortChatGroupsByName(input: T.AssistantMeshScope): Promise<T.AssistantChatGroupList>
|
|
158
|
+
membersWatch(input: T.AssistantMeshScope): WatchStream<T.AssistantMemberList>
|
|
158
159
|
updateMember(input: T.AssistantUpdateMemberRequest): Promise<T.AssistantMember>
|
|
159
160
|
removeMember(input: T.AssistantRemoveMemberRequest): Promise<T.AssistantOkResponse>
|
|
160
161
|
archivedMeshContents(input: T.AssistantMeshTarget): Promise<T.AssistantArchivedMeshContents>
|
|
@@ -165,7 +166,10 @@ export interface Capabilities {
|
|
|
165
166
|
recoverAccount(input: T.AssistantIdentityPhrase): Promise<T.AssistantOkResponse>
|
|
166
167
|
displayName(input?: T.AssistantEmpty): Promise<T.AssistantDisplayName>
|
|
167
168
|
setDisplayName(input: T.AssistantDisplayName): Promise<T.AssistantOkResponse>
|
|
168
|
-
inferenceCalls(input: T.
|
|
169
|
+
inferenceCalls(input: T.AssistantInferenceCallsQuery): Promise<T.AssistantInferenceCallList>
|
|
170
|
+
listLocalFiles(input?: T.AssistantLocalFilesRequest): Promise<T.AssistantLocalFileList>
|
|
171
|
+
getDefaultAgent(input: T.AssistantDefaultAgentRequest): Promise<T.AssistantDefaultAgent>
|
|
172
|
+
getDevice(input: T.AssistantDeviceId): Promise<T.AssistantDevice>
|
|
169
173
|
}
|
|
170
174
|
|
|
171
175
|
export interface CapabilityHandlers {
|
|
@@ -173,28 +177,28 @@ export interface CapabilityHandlers {
|
|
|
173
177
|
configSet(input: T.AssistantConfigSetRequest): T.AssistantConfigSetResponse | Promise<T.AssistantConfigSetResponse>
|
|
174
178
|
configWatch(input: T.AssistantConfigKey): AsyncIterable<T.AssistantConfigValue>
|
|
175
179
|
createAgent(input: T.AssistantCreateAgentRequest): T.AssistantAgent | Promise<T.AssistantAgent>
|
|
176
|
-
listAgents(input
|
|
180
|
+
listAgents(input: T.AssistantListAgentsRequest): T.AssistantAgentList | Promise<T.AssistantAgentList>
|
|
177
181
|
getAgent(input: T.AssistantAgentId): T.AssistantAgent | Promise<T.AssistantAgent>
|
|
178
182
|
updateAgent(input: T.AssistantUpdateAgentRequest): T.AssistantAgent | Promise<T.AssistantAgent>
|
|
179
183
|
deleteAgent(input: T.AssistantAgentId): T.AssistantAgent | Promise<T.AssistantAgent>
|
|
180
|
-
agentsWatch(input
|
|
184
|
+
agentsWatch(input: T.AssistantListAgentsRequest): AsyncIterable<T.AssistantAgentList>
|
|
181
185
|
createChat(input: T.AssistantCreateChatRequest): T.AssistantChat | Promise<T.AssistantChat>
|
|
182
|
-
listChats(input
|
|
186
|
+
listChats(input: T.AssistantListChatsRequest): T.AssistantChatList | Promise<T.AssistantChatList>
|
|
183
187
|
getChat(input: T.AssistantChatId): T.AssistantChat | Promise<T.AssistantChat>
|
|
184
188
|
renameChat(input: T.AssistantRenameChatRequest): T.AssistantChat | Promise<T.AssistantChat>
|
|
185
189
|
setChatRagEnabled(input: T.AssistantSetChatFlagRequest): T.AssistantChat | Promise<T.AssistantChat>
|
|
186
190
|
setChatWebSearchEnabled(input: T.AssistantSetChatFlagRequest): T.AssistantChat | Promise<T.AssistantChat>
|
|
187
191
|
deleteChat(input: T.AssistantChatId): T.AssistantChat | Promise<T.AssistantChat>
|
|
188
|
-
chatsWatch(input
|
|
192
|
+
chatsWatch(input: T.AssistantListChatsRequest): AsyncIterable<T.AssistantChatList>
|
|
189
193
|
createChatGroup(input: T.AssistantCreateChatGroupRequest): T.AssistantChatGroup | Promise<T.AssistantChatGroup>
|
|
190
|
-
listChatGroups(input
|
|
194
|
+
listChatGroups(input: T.AssistantMeshScope): T.AssistantChatGroupList | Promise<T.AssistantChatGroupList>
|
|
191
195
|
renameChatGroup(input: T.AssistantRenameChatGroupRequest): T.AssistantChatGroup | Promise<T.AssistantChatGroup>
|
|
192
196
|
deleteChatGroup(input: T.AssistantChatGroupId): T.AssistantChatGroup | Promise<T.AssistantChatGroup>
|
|
193
197
|
setChatGroup(input: T.AssistantSetChatGroupRequest): T.AssistantChat | Promise<T.AssistantChat>
|
|
194
198
|
listChatActivity(input: T.AssistantChatActivityRequest): T.AssistantChatActivityList | Promise<T.AssistantChatActivityList>
|
|
195
199
|
chatActivityWatch(input: T.AssistantChatActivityRequest): AsyncIterable<T.AssistantChatActivityList>
|
|
196
|
-
listDevices(input
|
|
197
|
-
devicesWatch(input
|
|
200
|
+
listDevices(input: T.AssistantMeshScope): T.AssistantDeviceList | Promise<T.AssistantDeviceList>
|
|
201
|
+
devicesWatch(input: T.AssistantMeshScope): AsyncIterable<T.AssistantDeviceList>
|
|
198
202
|
saveDeviceCapabilities(input: T.AssistantSaveDeviceCapabilitiesRequest): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
199
203
|
modelDownloadsWatch(input?: T.AssistantEmpty): AsyncIterable<T.AssistantModelDownloadList>
|
|
200
204
|
setModelDownloadStatus(input: T.AssistantSetModelDownloadStatusRequest): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
@@ -225,17 +229,17 @@ export interface CapabilityHandlers {
|
|
|
225
229
|
networkWatch(input?: T.AssistantEmpty): AsyncIterable<T.AssistantNetworkStatus>
|
|
226
230
|
deviceInfo(input?: T.AssistantEmpty): T.AssistantDeviceInfo | Promise<T.AssistantDeviceInfo>
|
|
227
231
|
storeIdentityPhrase(input: T.AssistantIdentityPhrase): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
228
|
-
leaveMesh(input
|
|
232
|
+
leaveMesh(input: T.AssistantMeshTarget): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
229
233
|
acknowledgeKicked(input?: T.AssistantEmpty): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
230
234
|
joinMesh(input: T.AssistantJoinMeshRequest): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
231
235
|
cancelMeshJoin(input?: T.AssistantEmpty): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
232
236
|
suspend(input?: T.AssistantEmpty): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
233
237
|
resume(input?: T.AssistantEmpty): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
234
238
|
meshInvite(input: T.AssistantMeshInviteRequest): T.AssistantMeshInviteResponse | Promise<T.AssistantMeshInviteResponse>
|
|
235
|
-
listApprovalRules(input
|
|
239
|
+
listApprovalRules(input: T.AssistantMeshScope): T.AssistantApprovalRuleList | Promise<T.AssistantApprovalRuleList>
|
|
236
240
|
diagnostics(input?: T.AssistantEmpty): T.AssistantDiagnostics | Promise<T.AssistantDiagnostics>
|
|
237
241
|
diagnosticsWatch(input?: T.AssistantEmpty): AsyncIterable<T.AssistantDiagnostics>
|
|
238
|
-
runRequestsWatch(input
|
|
242
|
+
runRequestsWatch(input: T.AssistantMeshScope): AsyncIterable<T.AssistantChunkList>
|
|
239
243
|
listModels(input: T.AssistantListModelsRequest): T.AssistantModelInfoList | Promise<T.AssistantModelInfoList>
|
|
240
244
|
deleteModel(input: T.AssistantDeleteModelRequest): T.AssistantDeleteModelResponse | Promise<T.AssistantDeleteModelResponse>
|
|
241
245
|
modelCatalogWatch(input?: T.AssistantEmpty): AsyncIterable<T.AssistantModelCatalogRevision>
|
|
@@ -257,7 +261,7 @@ export interface CapabilityHandlers {
|
|
|
257
261
|
indexingProgressWatch(input: T.AssistantKnowledgeByChatRequest): AsyncIterable<T.AssistantIndexingProgressList>
|
|
258
262
|
indexingWatch(input: T.AssistantKnowledgeByChatRequest): AsyncIterable<T.AssistantIndexingStatusList>
|
|
259
263
|
transcodeImage(input: T.AssistantTranscodeImageRequest): T.AssistantTranscodeImageResponse | Promise<T.AssistantTranscodeImageResponse>
|
|
260
|
-
syncStatusWatch(input
|
|
264
|
+
syncStatusWatch(input: T.AssistantMeshScope): AsyncIterable<T.AssistantSyncStatus>
|
|
261
265
|
setToolConfigs(input: T.AssistantSetToolConfigsRequest): T.AssistantToolConfigs | Promise<T.AssistantToolConfigs>
|
|
262
266
|
deleteToolConfigs(input: T.AssistantDeleteToolConfigsRequest): T.AssistantToolConfigs | Promise<T.AssistantToolConfigs>
|
|
263
267
|
listToolConfigs(input: T.AssistantListToolConfigsRequest): T.AssistantToolConfigsList | Promise<T.AssistantToolConfigsList>
|
|
@@ -280,22 +284,23 @@ export interface CapabilityHandlers {
|
|
|
280
284
|
ackNotification(input: T.AssistantNotificationAck): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
281
285
|
beginModelTransfer(input: T.AssistantModelTransferStart): T.AssistantModelTransfer | Promise<T.AssistantModelTransfer>
|
|
282
286
|
completeModelTransfer(input: T.AssistantModelTransfer): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
283
|
-
deleteChatKvCache(input: T.
|
|
287
|
+
deleteChatKvCache(input: T.AssistantKvCacheChatId): T.AssistantKvCacheDeletionResponse | Promise<T.AssistantKvCacheDeletionResponse>
|
|
284
288
|
fileRead(input: T.AssistantFileReadRequest): AsyncIterable<T.AssistantFileReadFrame>
|
|
285
289
|
filePreview(input: T.AssistantFileRequest): T.AssistantFilePreviewResponse | Promise<T.AssistantFilePreviewResponse>
|
|
286
290
|
fileRetry(input: T.AssistantFileRetryRequest): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
287
291
|
moveChat(input: T.AssistantMoveChatRequest): T.AssistantChat | Promise<T.AssistantChat>
|
|
288
292
|
moveChatGroup(input: T.AssistantMoveChatGroupRequest): T.AssistantChatGroup | Promise<T.AssistantChatGroup>
|
|
289
|
-
listMembers(input
|
|
293
|
+
listMembers(input: T.AssistantMeshScope): T.AssistantMemberList | Promise<T.AssistantMemberList>
|
|
290
294
|
listMeshes(input?: T.AssistantEmpty): T.AssistantMeshList | Promise<T.AssistantMeshList>
|
|
291
295
|
meshesWatch(input?: T.AssistantEmpty): AsyncIterable<T.AssistantMeshList>
|
|
296
|
+
account(input?: T.AssistantEmpty): T.AssistantAccount | Promise<T.AssistantAccount>
|
|
297
|
+
accountWatch(input?: T.AssistantEmpty): AsyncIterable<T.AssistantAccount>
|
|
292
298
|
openMesh(input: T.AssistantMeshTarget): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
293
|
-
selectMesh(input: T.AssistantMeshTarget): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
294
299
|
closeMesh(input: T.AssistantMeshTarget): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
295
300
|
setMeshLabel(input: T.AssistantMeshLabelRequest): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
296
301
|
createRoom(input?: T.AssistantCreateRoomRequest): T.AssistantMeshTarget | Promise<T.AssistantMeshTarget>
|
|
297
|
-
sortChatGroupsByName(input
|
|
298
|
-
membersWatch(input
|
|
302
|
+
sortChatGroupsByName(input: T.AssistantMeshScope): T.AssistantChatGroupList | Promise<T.AssistantChatGroupList>
|
|
303
|
+
membersWatch(input: T.AssistantMeshScope): AsyncIterable<T.AssistantMemberList>
|
|
299
304
|
updateMember(input: T.AssistantUpdateMemberRequest): T.AssistantMember | Promise<T.AssistantMember>
|
|
300
305
|
removeMember(input: T.AssistantRemoveMemberRequest): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
301
306
|
archivedMeshContents(input: T.AssistantMeshTarget): T.AssistantArchivedMeshContents | Promise<T.AssistantArchivedMeshContents>
|
|
@@ -306,5 +311,8 @@ export interface CapabilityHandlers {
|
|
|
306
311
|
recoverAccount(input: T.AssistantIdentityPhrase): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
307
312
|
displayName(input?: T.AssistantEmpty): T.AssistantDisplayName | Promise<T.AssistantDisplayName>
|
|
308
313
|
setDisplayName(input: T.AssistantDisplayName): T.AssistantOkResponse | Promise<T.AssistantOkResponse>
|
|
309
|
-
inferenceCalls(input: T.
|
|
314
|
+
inferenceCalls(input: T.AssistantInferenceCallsQuery): T.AssistantInferenceCallList | Promise<T.AssistantInferenceCallList>
|
|
315
|
+
listLocalFiles(input?: T.AssistantLocalFilesRequest): T.AssistantLocalFileList | Promise<T.AssistantLocalFileList>
|
|
316
|
+
getDefaultAgent(input: T.AssistantDefaultAgentRequest): T.AssistantDefaultAgent | Promise<T.AssistantDefaultAgent>
|
|
317
|
+
getDevice(input: T.AssistantDeviceId): T.AssistantDevice | Promise<T.AssistantDevice>
|
|
310
318
|
}
|