@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
package/dist-lib/lib/core.d.ts
CHANGED
|
@@ -6,9 +6,10 @@ import Wakeup from 'protomux-wakeup';
|
|
|
6
6
|
import ReadyGuard from 'ready-guard';
|
|
7
7
|
import ReadyResource from 'ready-resource';
|
|
8
8
|
import type { Logger } from '../index.ts';
|
|
9
|
-
import type { AssistantArchivedMeshList, AssistantCompactChatResponse, AssistantCopySkillResponse, AssistantDeleteModelRequest, AssistantDeleteModelResponse, AssistantDeleteSkillResponse, AssistantKvCacheDeletionResponse, AssistantListModelsRequest, AssistantLoadModelResponse, AssistantManagedSkillsResponse, AssistantMeshList, AssistantAccount, AssistantModelCatalogRevision, AssistantModelInfoList, AssistantOkResponse, AssistantSkillCatalogResponse, AssistantSkillFileResponse, AssistantSpeakRequest, AssistantSpeakResponse, AssistantToolCatalogResponse, AssistantDetectLanguageRequest, AssistantDetectLanguageResponse, AssistantTranscribeRequest, AssistantTranscribeResponse, AssistantUnloadModelResponse, AssistantModelUsers, AssistantCustomModelPreview, AssistantPreviewCustomModelRequest } from '../spec/index.d.ts';
|
|
9
|
+
import type { AssistantArchivedMeshList, AssistantCompactChatResponse, AssistantCopySkillResponse, AssistantDeleteModelRequest, AssistantDeleteModelResponse, AssistantDeleteSkillResponse, AssistantKvCacheDeletionResponse, AssistantListModelsRequest, AssistantLoadModelResponse, AssistantManagedSkillsResponse, AssistantMeshList, AssistantAccount, AssistantModelCatalogRevision, AssistantModelInfoList, AssistantBlindPeering, AssistantOkResponse, AssistantSkillCatalogResponse, AssistantSkillFileResponse, AssistantSpeakRequest, AssistantSpeakResponse, AssistantToolCatalogResponse, AssistantDetectLanguageRequest, AssistantDetectLanguageResponse, AssistantTranscribeRequest, AssistantTranscribeResponse, AssistantUnloadModelResponse, AssistantModelUsers, AssistantCustomModelPreview, AssistantPreviewCustomModelRequest } from '../spec/index.d.ts';
|
|
10
10
|
import type { InferenceCallSource } from './api/inference-calls.ts';
|
|
11
11
|
import { type SkillOptions } from './api/index.ts';
|
|
12
|
+
import type { ModelMemoryUse } from './model-memory-cap.ts';
|
|
12
13
|
import { type BlindPeeringOpts } from './core/blind-peers.ts';
|
|
13
14
|
import { type IndexingEmbedder, type RagExtractors, type VectorIndex } from './core/files/index.ts';
|
|
14
15
|
import { type DriveHost } from './core/fs-drives.ts';
|
|
@@ -47,6 +48,7 @@ export interface CoreOptions {
|
|
|
47
48
|
blindPeerKeys?: ReadonlyArray<Buffer>;
|
|
48
49
|
blindPeeringOpts?: BlindPeeringOpts;
|
|
49
50
|
fileGc?: FileGcOptions | null;
|
|
51
|
+
autoDownloadModels?: boolean;
|
|
50
52
|
meshSeed?: Buffer;
|
|
51
53
|
meshKey?: Buffer;
|
|
52
54
|
additionalNodes?: ReadonlyArray<{
|
|
@@ -78,27 +80,15 @@ export interface CoreOptions {
|
|
|
78
80
|
readonly suspend: () => Promise<void>;
|
|
79
81
|
readonly resume: () => Promise<void>;
|
|
80
82
|
};
|
|
81
|
-
grantWritableMs?: number;
|
|
82
|
-
accountWritableMs?: number;
|
|
83
|
-
grantVisibleMs?: number;
|
|
84
83
|
}
|
|
85
84
|
export declare const ACCOUNT_MEMBER_UNKNOWN = "This device is not part of its account yet";
|
|
86
|
-
export declare const
|
|
85
|
+
export declare const DEVICE_UNKNOWN = "This device has no device details: pass `device` when creating Core";
|
|
87
86
|
export declare const MEMBER_INVITE_HOME_REFUSED = "An account mesh cannot be invited into";
|
|
88
87
|
export declare const DEVICE_INVITE_MESH_REFUSED = "Only an account mesh can take a device invite";
|
|
89
88
|
export declare const MESH_NAME_ACCOUNT_REFUSED = "An account mesh has no shared name";
|
|
90
89
|
export declare const INVITE_ACCOUNT_UNREADABLE = "This device cannot reach its account to check";
|
|
90
|
+
export declare const DEVICE_INVITE_CHAIN_TOO_LONG = "This device cannot invite another one: invite from another of your devices, or recover from your phrase";
|
|
91
91
|
export declare const MESH_HELD_BY_SIBLING = "Another of your devices holds this mesh: bring that device online, or invite from it instead";
|
|
92
|
-
export declare const INVITE_GRANT_REVOKED = "This invite was revoked";
|
|
93
|
-
export declare const MESH_ALREADY_JOINED = "This device is already in this mesh";
|
|
94
|
-
export declare const MESH_ADMISSION_PENDING = "This mesh has not admitted this device yet: try again in a moment";
|
|
95
|
-
export declare const MEMBER_ALREADY_IN_MESH = "Another of your devices is already in this mesh: join through it once it is online";
|
|
96
|
-
export declare const DEVICE_OF_ANOTHER_MEMBER = "This device belongs to another member in this mesh";
|
|
97
|
-
export declare const MEMBER_REMOVED_SINCE_INVITE = "You were removed from this mesh after this invite was made: ask for a new one";
|
|
98
|
-
export declare const INVITE_GRANT_EXPIRED = "This invite has expired";
|
|
99
|
-
export declare const INVITE_GRANT_EXHAUSTED = "This invite has already been used";
|
|
100
|
-
export declare const SEALED_ACCOUNT_READER = "This account admits no device by its seed alone: pair this device with a device invite";
|
|
101
|
-
export declare const INVITER_OFFLINE = "The device that made this invite is not online: bring it online and try again";
|
|
102
92
|
export interface SharedMesh {
|
|
103
93
|
readonly meshId: string;
|
|
104
94
|
readonly notice?: string;
|
|
@@ -142,7 +132,6 @@ export declare class Core extends ReadyResource {
|
|
|
142
132
|
private readonly _ownsSwarm;
|
|
143
133
|
private readonly _ownsWakeup;
|
|
144
134
|
local: ReturnType<typeof openLocalStore>;
|
|
145
|
-
private readonly _deviceInvites;
|
|
146
135
|
state: LocalQvacState;
|
|
147
136
|
private readonly _transport;
|
|
148
137
|
private readonly _apiLifecycle;
|
|
@@ -155,6 +144,8 @@ export declare class Core extends ReadyResource {
|
|
|
155
144
|
private readonly _otaConfigCore;
|
|
156
145
|
private _otaConfig;
|
|
157
146
|
private _configPeering;
|
|
147
|
+
private _blindPeeringOn;
|
|
148
|
+
private readonly _blindPeeringListeners;
|
|
158
149
|
private _recoveryCore;
|
|
159
150
|
private _recoverySigner;
|
|
160
151
|
private _recoveryPeering;
|
|
@@ -162,15 +153,14 @@ export declare class Core extends ReadyResource {
|
|
|
162
153
|
private readonly _blindPeerKeys;
|
|
163
154
|
private readonly _blindPeeringOpts;
|
|
164
155
|
private readonly _fileGc;
|
|
156
|
+
private readonly _autoDownloadModels;
|
|
165
157
|
private _fileGcTimer;
|
|
166
158
|
private _fileGcRun;
|
|
167
159
|
private readonly _meshSeed;
|
|
168
160
|
private readonly _meshKey;
|
|
169
161
|
private readonly _additionalNodes;
|
|
170
|
-
private readonly _grantWritableMs;
|
|
171
|
-
private readonly _accountWritableMs;
|
|
172
|
-
private readonly _grantVisibleMs;
|
|
173
162
|
private _listModels;
|
|
163
|
+
private _modelMemory;
|
|
174
164
|
private _deleteModel;
|
|
175
165
|
private _clearKvCache;
|
|
176
166
|
private _deleteChatKvCache;
|
|
@@ -219,17 +209,17 @@ export declare class Core extends ReadyResource {
|
|
|
219
209
|
private _identityPhrase;
|
|
220
210
|
private _identityPublicKey;
|
|
221
211
|
private _swarm;
|
|
212
|
+
private _siblings;
|
|
213
|
+
private readonly _seenPeers;
|
|
214
|
+
private readonly _siblingLock;
|
|
222
215
|
private readonly _onSwarmConnection;
|
|
223
216
|
private _departures;
|
|
224
217
|
private _fsDrives;
|
|
225
218
|
private _blobServer;
|
|
226
219
|
private readonly _wakeup;
|
|
227
|
-
private readonly _meshSeedHandoff;
|
|
228
220
|
private readonly _harnessLoan;
|
|
229
221
|
private _serveLoanedHarness;
|
|
230
222
|
private readonly _following;
|
|
231
|
-
private readonly _admissionRetries;
|
|
232
|
-
private readonly _admissionRetryPending;
|
|
233
223
|
private _revokingInMeshes;
|
|
234
224
|
private _revokeInMeshesAgain;
|
|
235
225
|
private _sweepUnknownEverywhere;
|
|
@@ -238,6 +228,7 @@ export declare class Core extends ReadyResource {
|
|
|
238
228
|
private readonly _skillOverlayHandoff;
|
|
239
229
|
private readonly _inferenceCallsHandoff;
|
|
240
230
|
private _minting;
|
|
231
|
+
private _backfill;
|
|
241
232
|
private _leaving;
|
|
242
233
|
private _kicked;
|
|
243
234
|
private _kickedPending;
|
|
@@ -252,7 +243,7 @@ export declare class Core extends ReadyResource {
|
|
|
252
243
|
private _systemInfo;
|
|
253
244
|
private _statusError;
|
|
254
245
|
private _upgradeRequired;
|
|
255
|
-
constructor(transport: Transport, { storagePath, store, swarm, wakeup, logger, spec, bootstrapNodes, device, app, minSupportedVersion, otaConfigCore, blindPeerKeys, blindPeeringOpts, fileGc, meshSeed, meshKey, additionalNodes, listModels, deleteModel, clearKvCache, deleteChatKvCache, compactChat, modelCatalogWatch, retryModelDownload, transcribe, detectLanguage, previewModelSource, speak, speakStream, embedder, extractors, skills, skillCatalog, tools, hostsModelSource, vectorIndex, apiLifecycle
|
|
246
|
+
constructor(transport: Transport, { storagePath, store, swarm, wakeup, logger, spec, bootstrapNodes, device, app, minSupportedVersion, otaConfigCore, blindPeerKeys, blindPeeringOpts, fileGc, autoDownloadModels, meshSeed, meshKey, additionalNodes, listModels, deleteModel, clearKvCache, deleteChatKvCache, compactChat, modelCatalogWatch, retryModelDownload, transcribe, detectLanguage, previewModelSource, speak, speakStream, embedder, extractors, skills, skillCatalog, tools, hostsModelSource, vectorIndex, apiLifecycle }: CoreOptions);
|
|
256
247
|
get devicePublicKey(): Buffer | null;
|
|
257
248
|
private _requireDeviceKeyPair;
|
|
258
249
|
get fsDrives(): DriveHost | null;
|
|
@@ -290,6 +281,9 @@ export declare class Core extends ReadyResource {
|
|
|
290
281
|
private _switchToMesh;
|
|
291
282
|
private _openMesh;
|
|
292
283
|
private _openMeshSession;
|
|
284
|
+
private _appendOwnBirth;
|
|
285
|
+
private _requireLocalDevice;
|
|
286
|
+
private _appendJoinLater;
|
|
293
287
|
private _accountBirthMember;
|
|
294
288
|
private _mintBirthMember;
|
|
295
289
|
publishAccountRecovery(mnemonic: string): Promise<boolean>;
|
|
@@ -299,25 +293,36 @@ export declare class Core extends ReadyResource {
|
|
|
299
293
|
private _openOwnRecoveryCore;
|
|
300
294
|
private _adoptRecoveryCore;
|
|
301
295
|
recoverAccount(mnemonic: string, { timeout }?: RecoverAccountOptions): Promise<void>;
|
|
302
|
-
private
|
|
296
|
+
private _joinRecoveredAccount;
|
|
297
|
+
private _rerootRecovered;
|
|
303
298
|
private _readRecovery;
|
|
304
299
|
private _peerRecoveryCore;
|
|
305
300
|
private _closeRecovery;
|
|
306
301
|
private _joinBirthMember;
|
|
302
|
+
private _knownBirthMember;
|
|
303
|
+
private _recoveryBirthMember;
|
|
307
304
|
private _holdIdentityPhrase;
|
|
308
305
|
private _pushIdentityPhrase;
|
|
309
306
|
private _offerIdentityPhrase;
|
|
307
|
+
private _startBlindPeering;
|
|
308
|
+
setBlindPeering(enabled: boolean): Promise<AssistantBlindPeering>;
|
|
309
|
+
private _peeredMeshes;
|
|
310
|
+
private _stopBlindPeering;
|
|
311
|
+
private _resumeBlindPeering;
|
|
310
312
|
private _bringMeshOnline;
|
|
313
|
+
private _dialSiblings;
|
|
314
|
+
private _redialSiblings;
|
|
315
|
+
private _siblingsToDial;
|
|
311
316
|
private _advertiseDeviceProfile;
|
|
312
317
|
private _advertiseAppVersion;
|
|
313
318
|
private _retractInventory;
|
|
314
319
|
private _settleMembership;
|
|
315
|
-
private _sealAccount;
|
|
316
320
|
private _renameFoundedMember;
|
|
317
321
|
private _adoptName;
|
|
318
322
|
private _followAccountName;
|
|
319
323
|
private _claimOwnMembership;
|
|
320
324
|
private _knownMember;
|
|
325
|
+
private _recordedMember;
|
|
321
326
|
private _migrationContext;
|
|
322
327
|
private _recordMemberProof;
|
|
323
328
|
private _ensureNotRevoked;
|
|
@@ -342,6 +347,8 @@ export declare class Core extends ReadyResource {
|
|
|
342
347
|
private _reopenOwnAccount;
|
|
343
348
|
private _claimJoin;
|
|
344
349
|
private _joinMeshInvite;
|
|
350
|
+
private _reopenRecordedMesh;
|
|
351
|
+
private _keepsWriter;
|
|
345
352
|
private _runJoinMesh;
|
|
346
353
|
private _joinParkedMesh;
|
|
347
354
|
private _joinCandidate;
|
|
@@ -350,23 +357,21 @@ export declare class Core extends ReadyResource {
|
|
|
350
357
|
private _departIfPooled;
|
|
351
358
|
private _recordJoinedMesh;
|
|
352
359
|
private _registerMesh;
|
|
360
|
+
private _backfillMeshSeeds;
|
|
361
|
+
private _writeMeshSeeds;
|
|
362
|
+
private _registerRecordedMeshes;
|
|
363
|
+
private _seedRowDue;
|
|
353
364
|
private _releaseJoinedMesh;
|
|
354
365
|
private _writableAccount;
|
|
355
|
-
private _awaitGrantRow;
|
|
356
|
-
private _untilDeadline;
|
|
357
|
-
private _refuseIfGrantUnusable;
|
|
358
|
-
private _refuseUnredeemable;
|
|
359
|
-
private _refuseFromOwnCopy;
|
|
360
366
|
private _openCandidateMesh;
|
|
361
|
-
private
|
|
362
|
-
private
|
|
363
|
-
private
|
|
367
|
+
private _candidateBirthMember;
|
|
368
|
+
private _delegatedBirthMember;
|
|
369
|
+
private _onMeshSeedDue;
|
|
364
370
|
private _onMeshWritable;
|
|
365
371
|
private _onMeshDead;
|
|
366
372
|
private _onMeshStalled;
|
|
367
373
|
private _wireMesh;
|
|
368
374
|
private _adoptAccount;
|
|
369
|
-
private _refuseSealedReader;
|
|
370
375
|
private _pooled;
|
|
371
376
|
private _accountMesh;
|
|
372
377
|
private _meshIdOf;
|
|
@@ -387,6 +392,7 @@ export declare class Core extends ReadyResource {
|
|
|
387
392
|
private _startMeshServices;
|
|
388
393
|
private _stopHostedAgents;
|
|
389
394
|
private _discardCandidateMesh;
|
|
395
|
+
private _recordDeparture;
|
|
390
396
|
private _departureHasAudience;
|
|
391
397
|
private _announceDeparture;
|
|
392
398
|
leaveMesh(meshId: string): Promise<void>;
|
|
@@ -416,13 +422,13 @@ export declare class Core extends ReadyResource {
|
|
|
416
422
|
private _openPooledMesh;
|
|
417
423
|
private _openRecordedMesh;
|
|
418
424
|
private _meshEntry;
|
|
419
|
-
private _admission;
|
|
420
425
|
private _meshEntryState;
|
|
421
426
|
private _meshKeyOf;
|
|
422
427
|
removeDeviceWriter(writerKey: Buffer, deviceId: Buffer, mesh?: Mesh): Promise<void>;
|
|
423
428
|
private _revokeInMeshes;
|
|
424
429
|
private _sweepEveryOwnMesh;
|
|
425
430
|
private _revokeStaleRows;
|
|
431
|
+
private _rehomeRemoved;
|
|
426
432
|
private _revokeInMeshesOnce;
|
|
427
433
|
renameLocalDevice(name: string): Promise<void>;
|
|
428
434
|
account(): Promise<AssistantAccount>;
|
|
@@ -432,7 +438,9 @@ export declare class Core extends ReadyResource {
|
|
|
432
438
|
waitForWritable(): Promise<void>;
|
|
433
439
|
private _assertMeshIsHere;
|
|
434
440
|
getMeshInvite(opts?: MeshInviteOptions): Promise<MeshInvite | null>;
|
|
441
|
+
private _delegatePairing;
|
|
435
442
|
previewMeshInvite(invite: string): MeshInvitePreview;
|
|
443
|
+
private _leaveSiblings;
|
|
436
444
|
private _closeSwarm;
|
|
437
445
|
pushSkillSecret(request: SecretRequest): Promise<void>;
|
|
438
446
|
private _storeHandedOffSecret;
|
|
@@ -441,28 +449,14 @@ export declare class Core extends ReadyResource {
|
|
|
441
449
|
private _trackFollow;
|
|
442
450
|
private _retireLeftMesh;
|
|
443
451
|
private _archiveLeftMeshRow;
|
|
444
|
-
private _openOwnMesh;
|
|
445
|
-
private _adoptOwnMesh;
|
|
446
|
-
private _refusedInMesh;
|
|
447
452
|
private _openFollowedMesh;
|
|
448
|
-
private
|
|
449
|
-
private _requestMeshAdmission;
|
|
450
|
-
private _askSiblingsToAdmit;
|
|
451
|
-
private _retryAdmission;
|
|
452
|
-
private _liveSiblings;
|
|
453
|
+
private _mayFollow;
|
|
453
454
|
registerLoanableHarness(serve: (stream: LoanStreamDuplex) => void): () => void;
|
|
454
455
|
borrowHarness(deviceId: string): LoanStreamDuplex;
|
|
455
456
|
private _lendHarness;
|
|
456
457
|
private _revalidateLoans;
|
|
457
458
|
private _computeLender;
|
|
458
459
|
private _sharesComputeMesh;
|
|
459
|
-
private _serveMeshSeed;
|
|
460
|
-
private _admitInvitedDevice;
|
|
461
|
-
private _admitIntoMesh;
|
|
462
|
-
private _admitIntoMeshLocked;
|
|
463
|
-
private _isJoinedMeshKey;
|
|
464
|
-
private _removedFor;
|
|
465
|
-
private _askerStanding;
|
|
466
460
|
private _skillOverlayOp;
|
|
467
461
|
private _resolveAgentHost;
|
|
468
462
|
private _listInferenceCalls;
|
|
@@ -479,6 +473,7 @@ export declare class Core extends ReadyResource {
|
|
|
479
473
|
private _onPeerChange;
|
|
480
474
|
private _meshPool;
|
|
481
475
|
private _meshStatusSource;
|
|
476
|
+
private _blindPeeringSource;
|
|
482
477
|
private _networkStatusSource;
|
|
483
478
|
private _networkSnapshot;
|
|
484
479
|
private _networkState;
|
|
@@ -489,6 +484,7 @@ export declare class Core extends ReadyResource {
|
|
|
489
484
|
registerModelUsers(users: (name: string) => Promise<AssistantModelUsers>): () => void;
|
|
490
485
|
registerInferenceCalls(source: InferenceCallSource): () => void;
|
|
491
486
|
registerListModels(hook: (options: AssistantListModelsRequest) => Promise<AssistantModelInfoList>): () => void;
|
|
487
|
+
registerModelMemory(hook: () => Promise<ModelMemoryUse | null>): () => void;
|
|
492
488
|
registerDeleteModel(hook: (options: AssistantDeleteModelRequest) => Promise<AssistantDeleteModelResponse>): () => void;
|
|
493
489
|
registerClearKvCache(hook: () => Promise<AssistantKvCacheDeletionResponse>): () => void;
|
|
494
490
|
registerDeleteChatKvCache(hook: (chatId: string) => Promise<AssistantKvCacheDeletionResponse>): () => void;
|
|
@@ -496,6 +492,7 @@ export declare class Core extends ReadyResource {
|
|
|
496
492
|
registerModelCatalogWatch(hook: () => AsyncIterable<AssistantModelCatalogRevision>): () => void;
|
|
497
493
|
private _watchModelCatalog;
|
|
498
494
|
private _modelCatalogRevisions;
|
|
495
|
+
private _readModelList;
|
|
499
496
|
private _readModels;
|
|
500
497
|
private _openModelCatalogWatchSource;
|
|
501
498
|
private _resetModelCatalogWatchSource;
|