@qvac/core 0.6.7 → 0.7.1
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 +211 -1
- package/README.md +2 -0
- package/dist-lib/lib/api/app-config.d.ts +3 -1
- package/dist-lib/lib/api/app-config.js +15 -4
- package/dist-lib/lib/api/chat.d.ts +1 -1
- package/dist-lib/lib/api/chat.js +9 -0
- package/dist-lib/lib/api/index.d.ts +2 -1
- package/dist-lib/lib/api/index.js +2 -1
- package/dist-lib/lib/api/network.d.ts +8 -1
- package/dist-lib/lib/api/network.js +6 -0
- package/dist-lib/lib/assistant/fake-models.d.ts +22 -0
- package/dist-lib/lib/assistant/fake-models.js +112 -0
- package/dist-lib/lib/assistant/harness.d.ts +12 -0
- package/dist-lib/lib/assistant/harness.js +26 -0
- package/dist-lib/lib/assistant/history.d.ts +5 -1
- package/dist-lib/lib/assistant/history.js +14 -2
- package/dist-lib/lib/assistant-tree.d.ts +4 -0
- package/dist-lib/lib/assistant-tree.js +45 -7
- package/dist-lib/lib/assistant.d.ts +15 -2
- package/dist-lib/lib/assistant.js +181 -42
- package/dist-lib/lib/constants.d.ts +6 -0
- package/dist-lib/lib/constants.js +6 -0
- package/dist-lib/lib/core/agent.d.ts +2 -0
- package/dist-lib/lib/core/agent.js +16 -5
- package/dist-lib/lib/core/blind-peers.d.ts +4 -0
- package/dist-lib/lib/core/blind-peers.js +1 -0
- package/dist-lib/lib/core/chat-activity.d.ts +1 -1
- package/dist-lib/lib/core/chat-activity.js +3 -0
- package/dist-lib/lib/core/chat-copy.d.ts +4 -0
- package/dist-lib/lib/core/chat-copy.js +1 -1
- package/dist-lib/lib/core/chat-fork.d.ts +21 -0
- package/dist-lib/lib/core/chat-fork.js +245 -0
- package/dist-lib/lib/core/chat-move.js +1 -4
- package/dist-lib/lib/core/chat.d.ts +1 -0
- package/dist-lib/lib/core/chat.js +1 -1
- package/dist-lib/lib/core/collections.d.ts +1 -0
- package/dist-lib/lib/core/collections.js +1 -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 +6 -1
- package/dist-lib/lib/core/contract/invites.d.ts +1 -11
- package/dist-lib/lib/core/contract/invites.js +3 -3
- package/dist-lib/lib/core/contract/mesh-seeds.d.ts +2 -0
- package/dist-lib/lib/core/contract/mesh-seeds.js +26 -0
- package/dist-lib/lib/core/contract/open-join.d.ts +2 -0
- package/dist-lib/lib/core/contract/open-join.js +57 -0
- package/dist-lib/lib/core/departures.d.ts +8 -1
- package/dist-lib/lib/core/departures.js +59 -2
- package/dist-lib/lib/core/fs-drives.d.ts +8 -1
- package/dist-lib/lib/core/fs-drives.js +47 -15
- package/dist-lib/lib/core/harness-loan.d.ts +4 -20
- package/dist-lib/lib/core/harness-loan.js +7 -184
- package/dist-lib/lib/core/id.d.ts +1 -0
- package/dist-lib/lib/core/id.js +3 -0
- package/dist-lib/lib/core/identity.d.ts +1 -1
- package/dist-lib/lib/core/identity.js +6 -4
- package/dist-lib/lib/core/invite.d.ts +2 -0
- package/dist-lib/lib/core/invite.js +6 -2
- package/dist-lib/lib/core/membership.d.ts +1 -12
- package/dist-lib/lib/core/membership.js +1 -94
- package/dist-lib/lib/core/mesh.d.ts +11 -15
- package/dist-lib/lib/core/mesh.js +52 -88
- package/dist-lib/lib/core/migrations/agent-tools-scope.d.ts +2 -0
- package/dist-lib/lib/core/migrations/agent-tools-scope.js +24 -0
- package/dist-lib/lib/core/migrations/index.js +3 -1
- package/dist-lib/lib/core/peer-duplex.d.ts +32 -0
- package/dist-lib/lib/core/peer-duplex.js +207 -0
- package/dist-lib/lib/core/sync/index.js +2 -16
- package/dist-lib/lib/core.d.ts +47 -50
- package/dist-lib/lib/core.js +524 -878
- package/dist-lib/lib/diagnostics.d.ts +7 -0
- package/dist-lib/lib/diagnostics.js +22 -0
- package/dist-lib/lib/doctor/checks.d.ts +15 -0
- package/dist-lib/lib/doctor/checks.js +272 -0
- package/dist-lib/lib/doctor/redact.d.ts +4 -0
- package/dist-lib/lib/doctor/redact.js +31 -0
- package/dist-lib/lib/doctor/render.d.ts +8 -0
- package/dist-lib/lib/doctor/render.js +83 -0
- package/dist-lib/lib/doctor/tree.d.ts +5 -0
- package/dist-lib/lib/doctor/tree.js +167 -0
- package/dist-lib/lib/downloads-allowed-pusher.d.ts +10 -0
- package/dist-lib/lib/downloads-allowed-pusher.js +37 -0
- package/dist-lib/lib/guards.d.ts +1 -0
- package/dist-lib/lib/guards.js +4 -0
- package/dist-lib/lib/inference-calls.js +1 -5
- package/dist-lib/lib/kv-cache-reclaim.d.ts +2 -1
- package/dist-lib/lib/kv-cache-reclaim.js +24 -0
- package/dist-lib/lib/mesh-scoped-engine.js +4 -0
- package/dist-lib/lib/model-download-status.d.ts +1 -1
- package/dist-lib/lib/model-download.d.ts +9 -10
- package/dist-lib/lib/model-download.js +49 -16
- package/dist-lib/lib/model-memory-cap.d.ts +29 -0
- package/dist-lib/lib/model-memory-cap.js +69 -0
- package/dist-lib/lib/models-watch.d.ts +1 -1
- package/dist-lib/lib/models-watch.js +4 -4
- package/dist-lib/lib/oauth/flow.js +1 -1
- package/dist-lib/lib/oauth/loopback.js +16 -2
- package/dist-lib/lib/oauth/redirect-types.d.ts +1 -0
- package/dist-lib/lib/run-replay.d.ts +26 -0
- package/dist-lib/lib/run-replay.js +107 -0
- package/dist-lib/schema/config.d.ts +1 -1
- package/dist-lib/schema/config.js +1 -1
- package/dist-lib/schema/content.js +9 -1
- package/dist-lib/schema/engine.js +75 -6
- package/dist-lib/schema/field-order.js +1 -1
- package/dist-lib/schema/local.js +3 -2
- package/dist-lib/schema/qvac.js +28 -2
- package/dist-lib/spec/bind.js +17 -0
- package/dist-lib/spec/calls.js +4 -0
- package/dist-lib/spec/capabilities.d.ts +8 -0
- package/dist-lib/spec/config/hyperconf/index.js +1 -1
- package/dist-lib/spec/hrpc/hrpc.json +52 -0
- package/dist-lib/spec/hrpc/index.js +53 -4
- package/dist-lib/spec/hrpc/messages.js +1498 -1278
- package/dist-lib/spec/hyperschema/index.js +1498 -1278
- package/dist-lib/spec/hyperschema/schema.json +182 -0
- package/dist-lib/spec/hyperschema/types.d.ts +49 -3
- package/dist-lib/spec/local/hyperdb/messages.js +22 -10
- package/dist-lib/spec/local/hyperschema/index.js +16 -7
- package/dist-lib/spec/local/hyperschema/schema.json +10 -1
- package/dist-lib/spec/local/hyperschema/types.d.ts +3 -2
- 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 +530 -246
- 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 +223 -10
- package/dist-lib/spec/mesh/hyperschema/index.js +223 -10
- package/dist-lib/spec/mesh/hyperschema/schema.json +128 -1
- package/dist-lib/spec/mesh/hyperschema/types.d.ts +34 -2
- package/package.json +14 -19
- package/tui/README.md +7 -1
- package/tui/app.mjs +366 -78
- package/tui/boot.mjs +1 -0
- package/tui/index.mjs +1 -0
- package/tui/lib/fork-command.mjs +43 -0
- package/tui/lib/render.mjs +25 -1
- package/worker/assistant-sidecar.mjs +5 -2
- package/dist-lib/lib/core/device-invites.d.ts +0 -11
- package/dist-lib/lib/core/device-invites.js +0 -63
- package/dist-lib/lib/core/grant-expiry.d.ts +0 -11
- package/dist-lib/lib/core/grant-expiry.js +0 -66
- package/dist-lib/lib/core/mesh-seed-handoff.d.ts +0 -27
- package/dist-lib/lib/core/mesh-seed-handoff.js +0 -53
- package/dist-lib/lib/oauth/loopback.stub.d.ts +0 -3
- package/dist-lib/lib/oauth/loopback.stub.js +0 -6
|
@@ -76,7 +76,7 @@ export function senderAttribution(names) {
|
|
|
76
76
|
const distinct = [...new Set(names.values())].sort();
|
|
77
77
|
return distinct.length > 1 ? distinct.join('\u0000') : '';
|
|
78
78
|
}
|
|
79
|
-
export function historyFromChunks(chunks, stale = {}, senderNames = new Map()) {
|
|
79
|
+
export function historyFromChunks(chunks, stale = {}, { senderNames = new Map(), sentRuns = new Map() } = {}) {
|
|
80
80
|
const attemptStarts = latestAttemptStarts(chunks);
|
|
81
81
|
const shared = new Set(senderNames.values()).size > 1;
|
|
82
82
|
const staleRunIds = stale.runIds ?? new Set();
|
|
@@ -100,11 +100,20 @@ export function historyFromChunks(chunks, stale = {}, senderNames = new Map()) {
|
|
|
100
100
|
history.push({ role: 'user', content: compactionTurn(folded.summary) });
|
|
101
101
|
}
|
|
102
102
|
const byRun = new Map();
|
|
103
|
+
const kept = new Set();
|
|
103
104
|
const anchor = (runId) => {
|
|
104
105
|
let turn = byRun.get(runId);
|
|
105
106
|
if (!turn) {
|
|
106
107
|
turn = { role: 'assistant', content: '' };
|
|
107
108
|
byRun.set(runId, turn);
|
|
109
|
+
const sent = runId && !staleRunIds.has(runId) ? sentRuns.get(runId) : undefined;
|
|
110
|
+
if (sent) {
|
|
111
|
+
const replayed = sent.map((message) => ({ ...message }));
|
|
112
|
+
history.push(...replayed);
|
|
113
|
+
for (const message of [...replayed, turn]) {
|
|
114
|
+
kept.add(message);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
108
117
|
history.push(turn);
|
|
109
118
|
}
|
|
110
119
|
return turn;
|
|
@@ -148,6 +157,9 @@ export function historyFromChunks(chunks, stale = {}, senderNames = new Map()) {
|
|
|
148
157
|
anchor(chunk.runId);
|
|
149
158
|
continue;
|
|
150
159
|
}
|
|
160
|
+
if (chunk.toolResult && chunk.runId && sentRuns.has(chunk.runId)) {
|
|
161
|
+
continue;
|
|
162
|
+
}
|
|
151
163
|
if (chunk.toolResult?.name === SKILL_TOOL) {
|
|
152
164
|
if (chunk.runId && staleRunIds.has(chunk.runId)) {
|
|
153
165
|
continue;
|
|
@@ -188,7 +200,7 @@ export function historyFromChunks(chunks, stale = {}, senderNames = new Map()) {
|
|
|
188
200
|
}
|
|
189
201
|
anchor(chunk.runId).content += chunk.content.text;
|
|
190
202
|
}
|
|
191
|
-
return history.filter((turn) => turn.role === 'user' || turn.content.length > 0);
|
|
203
|
+
return history.filter((turn) => turn.role === 'user' || turn.content.length > 0 || kept.has(turn));
|
|
192
204
|
}
|
|
193
205
|
export function inputAvailableToRun(chunk, requestSeq) {
|
|
194
206
|
const userInput = Boolean(chunk.userMessage || (chunk.attachment && !chunk.runId));
|
|
@@ -22,6 +22,7 @@ export interface AssistantTreeOptions {
|
|
|
22
22
|
logger?: Logger | null;
|
|
23
23
|
imageCacheDir?: string;
|
|
24
24
|
inferenceCallsDir?: string;
|
|
25
|
+
runReplayDir?: string;
|
|
25
26
|
imageCacheMaxBytes?: number;
|
|
26
27
|
imageCacheMaxAgeMs?: number;
|
|
27
28
|
embedder?: EmbedderFactory;
|
|
@@ -29,6 +30,7 @@ export interface AssistantTreeOptions {
|
|
|
29
30
|
onHarness?: OnHarness;
|
|
30
31
|
platform?: string;
|
|
31
32
|
preloadCurrentAgentModel?: boolean;
|
|
33
|
+
fakeModels?: boolean;
|
|
32
34
|
}
|
|
33
35
|
export declare function assistantTree(opts: AssistantTreeOptions): Supervisor;
|
|
34
36
|
export interface AssistantChildOptions {
|
|
@@ -37,12 +39,14 @@ export interface AssistantChildOptions {
|
|
|
37
39
|
logger?: Logger | null;
|
|
38
40
|
imageCacheDir?: string;
|
|
39
41
|
inferenceCallsDir?: string;
|
|
42
|
+
runReplayDir?: string;
|
|
40
43
|
imageCacheMaxBytes?: number;
|
|
41
44
|
imageCacheMaxAgeMs?: number;
|
|
42
45
|
embedder?: EmbedderFactory;
|
|
43
46
|
extractors?: RagExtractors;
|
|
44
47
|
onHarness?: OnHarness;
|
|
45
48
|
preloadCurrentAgentModel?: boolean;
|
|
49
|
+
fakeModels?: boolean;
|
|
46
50
|
restart?: 'always' | 'never';
|
|
47
51
|
maxRestarts?: number;
|
|
48
52
|
window?: number;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import Supervisor, {} from 'bare-supervisor';
|
|
2
2
|
import { harnessClearKvCache, harnessListModels, harnessPreviewModelSource, harnessSkillCatalog, harnessSkillManagement, harnessDetectLanguage, harnessSpeak, harnessSpeakStream, harnessTools, harnessTranscribe, QvacAssistant } from './assistant.js';
|
|
3
3
|
import { Client } from './client.js';
|
|
4
|
+
import { readFakeModels, watchFakeModels, withFakeModels } from './assistant/fake-models.js';
|
|
4
5
|
import { startCustomModelPusher } from './custom-model-pusher.js';
|
|
5
6
|
import { startModelIdlePusher } from './model-idle-pusher.js';
|
|
7
|
+
import { startModelMemoryCap } from './model-memory-cap.js';
|
|
8
|
+
import { startDownloadsAllowedPusher } from './downloads-allowed-pusher.js';
|
|
6
9
|
import { serveHarness } from '@qvac/harness';
|
|
7
10
|
import { duplexPair } from '@qvac/harness/transport';
|
|
8
11
|
export function assistantTree(opts) {
|
|
9
|
-
const { core, harness, logger = null, imageCacheDir, inferenceCallsDir, imageCacheMaxBytes, imageCacheMaxAgeMs, embedder, extractors, onHarness, platform, preloadCurrentAgentModel } = opts;
|
|
12
|
+
const { core, harness, logger = null, imageCacheDir, inferenceCallsDir, runReplayDir, imageCacheMaxBytes, imageCacheMaxAgeMs, embedder, extractors, onHarness, platform, preloadCurrentAgentModel, fakeModels = false } = opts;
|
|
10
13
|
const sup = new Supervisor();
|
|
11
14
|
const logged = ['child-died', 'child-restarting', 'child-ready', 'gave-up', 'stall'];
|
|
12
15
|
for (const event of logged) {
|
|
@@ -37,6 +40,10 @@ export function assistantTree(opts) {
|
|
|
37
40
|
let offModelCatalogWatch = null;
|
|
38
41
|
let offCustomModels = null;
|
|
39
42
|
let offModelIdle = null;
|
|
43
|
+
let modelMemoryCap = null;
|
|
44
|
+
let offModelMemory = null;
|
|
45
|
+
let offDownloadsAllowed = null;
|
|
46
|
+
let offFakeModels = null;
|
|
40
47
|
let offLoanableHarness = null;
|
|
41
48
|
sup.add('engine', {
|
|
42
49
|
start: async () => {
|
|
@@ -60,13 +67,16 @@ export function assistantTree(opts) {
|
|
|
60
67
|
}
|
|
61
68
|
sup.add('assistant', {
|
|
62
69
|
deps: ['engine', 'harness'],
|
|
63
|
-
start: (ctx) => {
|
|
64
|
-
|
|
70
|
+
start: async (ctx) => {
|
|
71
|
+
let fakeModelsOn = fakeModels || (await readFakeModels(core.local));
|
|
72
|
+
const supervised = ctx.get('harness');
|
|
73
|
+
const harness = withFakeModels(supervised, { enabled: () => fakeModelsOn });
|
|
65
74
|
const engine = ctx.get('engine');
|
|
66
75
|
const assistant = new QvacAssistant(engine, harness, {
|
|
67
76
|
logger,
|
|
68
77
|
imageCacheDir,
|
|
69
78
|
inferenceCallsDir,
|
|
79
|
+
runReplayDir,
|
|
70
80
|
imageCacheMaxBytes,
|
|
71
81
|
imageCacheMaxAgeMs,
|
|
72
82
|
platform,
|
|
@@ -81,7 +91,7 @@ export function assistantTree(opts) {
|
|
|
81
91
|
});
|
|
82
92
|
offListModels = core.registerListModels(harnessListModels(harness));
|
|
83
93
|
offDeleteModel = core.registerDeleteModel(({ name }) => assistant.deleteModel(name));
|
|
84
|
-
offClearKvCache = core.registerClearKvCache(
|
|
94
|
+
offClearKvCache = core.registerClearKvCache(() => assistant.clearKvCache());
|
|
85
95
|
offDeleteChatKvCache = core.registerDeleteChatKvCache((chatId) => assistant.deleteChatKvCache(chatId));
|
|
86
96
|
offCompactChat = core.registerCompactChat((chatId, meshId) => assistant.compactChat(chatId, { meshId }));
|
|
87
97
|
offModelCatalogWatch = core.registerModelCatalogWatch(() => assistant.modelCatalogWatch());
|
|
@@ -90,6 +100,24 @@ export function assistantTree(opts) {
|
|
|
90
100
|
onPushed: () => assistant.notifyModelCatalog()
|
|
91
101
|
});
|
|
92
102
|
offModelIdle = startModelIdlePusher(harness, core.local, logger);
|
|
103
|
+
modelMemoryCap = assistant.mobileClass
|
|
104
|
+
? null
|
|
105
|
+
: startModelMemoryCap(harness, core.local, {
|
|
106
|
+
logger,
|
|
107
|
+
onPushed: () => assistant.notifyModelCatalog()
|
|
108
|
+
});
|
|
109
|
+
offModelMemory = core.registerModelMemory(async () => (await modelMemoryCap?.summary()) ?? null);
|
|
110
|
+
offDownloadsAllowed = startDownloadsAllowedPusher(harness, core.local, logger);
|
|
111
|
+
offFakeModels = fakeModels
|
|
112
|
+
? null
|
|
113
|
+
: watchFakeModels(core.local, {
|
|
114
|
+
initial: fakeModelsOn,
|
|
115
|
+
onChange: (enabled) => {
|
|
116
|
+
fakeModelsOn = enabled;
|
|
117
|
+
assistant.cachedModelsChanged();
|
|
118
|
+
},
|
|
119
|
+
logger
|
|
120
|
+
});
|
|
93
121
|
offLoanableHarness = core.registerLoanableHarness((stream) => serveHarness(stream, harness));
|
|
94
122
|
offRetryModelDownload = core.registerRetryModelDownload((name) => assistant.retryModelDownload(name));
|
|
95
123
|
offModelResidency = core.registerModelResidency({
|
|
@@ -132,7 +160,7 @@ export function assistantTree(opts) {
|
|
|
132
160
|
};
|
|
133
161
|
offEmbedder = core.registerEmbedder(wrapped, extractors);
|
|
134
162
|
}
|
|
135
|
-
const off = onHarness?.(
|
|
163
|
+
const off = onHarness?.(supervised, { engine });
|
|
136
164
|
if (typeof off === 'function') {
|
|
137
165
|
offHarness = off;
|
|
138
166
|
}
|
|
@@ -159,6 +187,14 @@ export function assistantTree(opts) {
|
|
|
159
187
|
offCustomModels = null;
|
|
160
188
|
await offModelIdle?.();
|
|
161
189
|
offModelIdle = null;
|
|
190
|
+
offModelMemory?.();
|
|
191
|
+
offModelMemory = null;
|
|
192
|
+
await modelMemoryCap?.stop();
|
|
193
|
+
modelMemoryCap = null;
|
|
194
|
+
await offDownloadsAllowed?.();
|
|
195
|
+
offDownloadsAllowed = null;
|
|
196
|
+
await offFakeModels?.();
|
|
197
|
+
offFakeModels = null;
|
|
162
198
|
offLoanableHarness?.();
|
|
163
199
|
offLoanableHarness = null;
|
|
164
200
|
offRetryModelDownload?.();
|
|
@@ -199,7 +235,7 @@ export function assistantTree(opts) {
|
|
|
199
235
|
return sup;
|
|
200
236
|
}
|
|
201
237
|
export function assistantChild(opts) {
|
|
202
|
-
const { harness, core = 'core', logger = null, imageCacheDir, inferenceCallsDir, imageCacheMaxBytes, imageCacheMaxAgeMs, embedder, extractors, onHarness, preloadCurrentAgentModel, ...spec } = opts;
|
|
238
|
+
const { harness, core = 'core', logger = null, imageCacheDir, inferenceCallsDir, runReplayDir, imageCacheMaxBytes, imageCacheMaxAgeMs, embedder, extractors, onHarness, preloadCurrentAgentModel, fakeModels, ...spec } = opts;
|
|
203
239
|
return {
|
|
204
240
|
...spec,
|
|
205
241
|
deps: [core],
|
|
@@ -210,12 +246,14 @@ export function assistantChild(opts) {
|
|
|
210
246
|
logger,
|
|
211
247
|
imageCacheDir,
|
|
212
248
|
inferenceCallsDir,
|
|
249
|
+
runReplayDir,
|
|
213
250
|
imageCacheMaxBytes,
|
|
214
251
|
imageCacheMaxAgeMs,
|
|
215
252
|
embedder,
|
|
216
253
|
extractors,
|
|
217
254
|
onHarness,
|
|
218
|
-
preloadCurrentAgentModel
|
|
255
|
+
preloadCurrentAgentModel,
|
|
256
|
+
fakeModels
|
|
219
257
|
});
|
|
220
258
|
tree.on('gave-up', ({ error }) => ctx.onDeath(error));
|
|
221
259
|
return tree;
|
|
@@ -22,6 +22,7 @@ export interface AssistantOptions {
|
|
|
22
22
|
logger?: Logger | null;
|
|
23
23
|
imageCacheDir?: string;
|
|
24
24
|
inferenceCallsDir?: string;
|
|
25
|
+
runReplayDir?: string;
|
|
25
26
|
imageCacheMaxBytes?: number;
|
|
26
27
|
imageCacheMaxAgeMs?: number;
|
|
27
28
|
downloadRetryMs?: number;
|
|
@@ -74,6 +75,7 @@ export declare class QvacAssistant extends ReadyResource {
|
|
|
74
75
|
private _harnessDiagnostics;
|
|
75
76
|
private _harnessDeath;
|
|
76
77
|
private _refreshingDiagnostics;
|
|
78
|
+
private readonly _backendUse;
|
|
77
79
|
private _meshList;
|
|
78
80
|
private _accountFrames;
|
|
79
81
|
private _accountMeshId;
|
|
@@ -84,6 +86,7 @@ export declare class QvacAssistant extends ReadyResource {
|
|
|
84
86
|
private readonly _runs;
|
|
85
87
|
private readonly _seen;
|
|
86
88
|
private readonly _inferenceCalls;
|
|
89
|
+
private readonly _runReplay;
|
|
87
90
|
private readonly _lifecycle;
|
|
88
91
|
private readonly _audioTranscripts;
|
|
89
92
|
private readonly _pdfPages;
|
|
@@ -94,7 +97,7 @@ export declare class QvacAssistant extends ReadyResource {
|
|
|
94
97
|
private readonly _modelCatalog;
|
|
95
98
|
private readonly _onHarnessStatus;
|
|
96
99
|
private readonly _onModelCatalogEvent;
|
|
97
|
-
constructor(engine: Capabilities, harness: Harness, { logger, imageCacheDir, inferenceCallsDir, imageCacheMaxBytes, imageCacheMaxAgeMs, downloadRetryMs, platform, preloadCurrentAgentModel, drives, borrowHarness, blobReadTimeoutMs, pdfRasterizer: pdfRasterizerOption }?: AssistantOptions);
|
|
100
|
+
constructor(engine: Capabilities, harness: Harness, { logger, imageCacheDir, inferenceCallsDir, runReplayDir, imageCacheMaxBytes, imageCacheMaxAgeMs, downloadRetryMs, platform, preloadCurrentAgentModel, drives, borrowHarness, blobReadTimeoutMs, pdfRasterizer: pdfRasterizerOption }?: AssistantOptions);
|
|
98
101
|
private _requireDeviceId;
|
|
99
102
|
_open(): Promise<void>;
|
|
100
103
|
private _triggerModelWarm;
|
|
@@ -122,6 +125,7 @@ export declare class QvacAssistant extends ReadyResource {
|
|
|
122
125
|
private _ensureCapability;
|
|
123
126
|
private _reconcileDeviceProfile;
|
|
124
127
|
_close(): Promise<void>;
|
|
128
|
+
get mobileClass(): boolean;
|
|
125
129
|
get suspended(): boolean;
|
|
126
130
|
presuspend(): Promise<void>;
|
|
127
131
|
suspend(): Promise<void>;
|
|
@@ -139,6 +143,7 @@ export declare class QvacAssistant extends ReadyResource {
|
|
|
139
143
|
private _meshModelUsers;
|
|
140
144
|
private _runnableHost;
|
|
141
145
|
notifyModelCatalog(): void;
|
|
146
|
+
cachedModelsChanged(): void;
|
|
142
147
|
retryModelDownload(name: string): Promise<void>;
|
|
143
148
|
skills(agentId?: string | null, modelName?: string | null, options?: SkillListOptions): Promise<ReadonlyArray<Skill>>;
|
|
144
149
|
private _recordSkillReadiness;
|
|
@@ -152,7 +157,13 @@ export declare class QvacAssistant extends ReadyResource {
|
|
|
152
157
|
private _reconcileCompaction;
|
|
153
158
|
private _senderNames;
|
|
154
159
|
private _reconcileAttribution;
|
|
155
|
-
deleteChatKvCache(chatId: string): Promise<AssistantKvCacheDeletionResponse>;
|
|
160
|
+
deleteChatKvCache(chatId: string, holder?: string): Promise<AssistantKvCacheDeletionResponse>;
|
|
161
|
+
clearKvCache(): Promise<AssistantKvCacheDeletionResponse>;
|
|
162
|
+
private _clearPreReplayCaches;
|
|
163
|
+
private _inspectCall;
|
|
164
|
+
private _inspectSent;
|
|
165
|
+
private _sentRuns;
|
|
166
|
+
private _recordSentRun;
|
|
156
167
|
private _deleteChatKvCache;
|
|
157
168
|
private _watchMeshList;
|
|
158
169
|
private _watchAccount;
|
|
@@ -165,6 +176,8 @@ export declare class QvacAssistant extends ReadyResource {
|
|
|
165
176
|
private _pruneSeen;
|
|
166
177
|
private _lenderFor;
|
|
167
178
|
private _harnessFor;
|
|
179
|
+
private _holderOf;
|
|
180
|
+
private _holderHarness;
|
|
168
181
|
private _dispatch;
|
|
169
182
|
private _citeWebSources;
|
|
170
183
|
private _searchKnowledge;
|