@camstack/addon-agent-ui 1.2.44 → 1.2.46
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/dist/addon.js +334 -13
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -8167,13 +8167,49 @@ var StorageMigrationParticipantSchema = _enum([
|
|
|
8167
8167
|
"recorder",
|
|
8168
8168
|
"analytics"
|
|
8169
8169
|
]);
|
|
8170
|
+
/**
|
|
8171
|
+
* The mover's own numbers, folded onto the coordinator's durable move record.
|
|
8172
|
+
*
|
|
8173
|
+
* The long half of a non-blocking migration is `draining`, and it is measured
|
|
8174
|
+
* in hours: 136 885 files at ~4 MB/s is about five of them. Before this shape
|
|
8175
|
+
* existed the only place those numbers appeared was a Loki line, so an operator
|
|
8176
|
+
* watching the Admin UI saw `phase: draining` and nothing else for a whole
|
|
8177
|
+
* afternoon.
|
|
8178
|
+
*
|
|
8179
|
+
* It is POLLED, never pushed. Events are telemetry and may be dropped
|
|
8180
|
+
* (D8/D11), and a dropped progress event is indistinguishable from a stalled
|
|
8181
|
+
* mover — which is the exact failure this is meant to end. The coordinator's
|
|
8182
|
+
* `waitForMoves` already fetches the whole {@link RelocateJob} on every tick to
|
|
8183
|
+
* read `state`; folding the counters costs no extra read and makes the durable
|
|
8184
|
+
* record say afterwards how far a move actually got.
|
|
8185
|
+
*
|
|
8186
|
+
* `filesTotal` is `null` for "no honest denominator" and is never zero-filled:
|
|
8187
|
+
* a windowed footage job (`sinceMs`) and a node with no ledger both genuinely
|
|
8188
|
+
* cannot say M, and a 0 there would render as "100 % done".
|
|
8189
|
+
*/
|
|
8190
|
+
var StorageMigrationMoveProgressSchema = object({
|
|
8191
|
+
filesMoved: number().int().nonnegative(),
|
|
8192
|
+
/** The archive census — the **M** of "N of M" (D295). `null` = unknowable. */
|
|
8193
|
+
filesTotal: number().int().nonnegative().nullable(),
|
|
8194
|
+
bytesMoved: number().int().nonnegative(),
|
|
8195
|
+
/** The MOVER's start, not the migration's: a drain restarted after an addon
|
|
8196
|
+
* crash gets a new mover, and a rate computed from the migration's start
|
|
8197
|
+
* would silently average in the time nothing was running. */
|
|
8198
|
+
startedAt: number(),
|
|
8199
|
+
/** When the coordinator last read these numbers. Paired with `startedAt` it
|
|
8200
|
+
* is the only honest rate: both clocks are the hub's, so a UI never has to
|
|
8201
|
+
* subtract its own. */
|
|
8202
|
+
observedAt: number()
|
|
8203
|
+
});
|
|
8170
8204
|
var StorageMigrationMoveSchema = object({
|
|
8171
8205
|
storageClass: StorageMigrationClassSchema,
|
|
8172
8206
|
fromLocationId: string(),
|
|
8173
8207
|
toLocationId: string(),
|
|
8174
8208
|
moverJobId: string().nullable(),
|
|
8175
8209
|
state: RelocateJobStateSchema.nullable(),
|
|
8176
|
-
error: string().nullable()
|
|
8210
|
+
error: string().nullable(),
|
|
8211
|
+
/** Last observed mover counters; `null` until the mover has been polled once. */
|
|
8212
|
+
progress: StorageMigrationMoveProgressSchema.nullable()
|
|
8177
8213
|
});
|
|
8178
8214
|
var StorageMigrationJobSchema = object({
|
|
8179
8215
|
jobId: string(),
|
|
@@ -8219,6 +8255,98 @@ var StorageMigrationPlanSchema = object({
|
|
|
8219
8255
|
findings: array(StorageMigrationFindingSchema)
|
|
8220
8256
|
});
|
|
8221
8257
|
/**
|
|
8258
|
+
* A mover as it exists RIGHT NOW, whether or not a migration job owns it.
|
|
8259
|
+
*
|
|
8260
|
+
* The coordinator's job record is the state of record for a migration, and its
|
|
8261
|
+
* moves carry {@link StorageMigrationMoveProgress}. But the movers are usable
|
|
8262
|
+
* standalone — `recording.relocateFootage` and `pipelineAnalytics.relocateMedia`
|
|
8263
|
+
* are both operator-callable, and on 2026-08-29 a five-hour drain was armed that
|
|
8264
|
+
* way because no supported UI path existed. A mover armed like that has no job
|
|
8265
|
+
* to fold progress into, so it has to be readable on its own or it is invisible.
|
|
8266
|
+
*
|
|
8267
|
+
* `migrationJobId` is what tells the two apart: `null` means nothing here
|
|
8268
|
+
* orchestrated it.
|
|
8269
|
+
*/
|
|
8270
|
+
var StorageMigrationMoverSchema = object({
|
|
8271
|
+
lane: _enum(["footage", "media"]),
|
|
8272
|
+
job: RelocateJobSchema,
|
|
8273
|
+
/** The coordinator job that armed this mover, or `null` for a mover armed
|
|
8274
|
+
* directly against the owning addon. */
|
|
8275
|
+
migrationJobId: string().nullable(),
|
|
8276
|
+
/** When the hub read these counters. Stamped here so a rate is `bytesMoved`
|
|
8277
|
+
* over (`observedAt` − `job.startedAt`) with BOTH ends on the hub's clock —
|
|
8278
|
+
* a browser subtracting its own `Date.now()` from a server `startedAt` is a
|
|
8279
|
+
* rate made of two different clocks. */
|
|
8280
|
+
observedAt: number()
|
|
8281
|
+
});
|
|
8282
|
+
/**
|
|
8283
|
+
* What a SOURCE still holds for one storage class — the number that makes a
|
|
8284
|
+
* "drain remaining" action honest rather than hopeful.
|
|
8285
|
+
*
|
|
8286
|
+
* It comes from the archive (`SegmentHourLedger.census` for footage, the media
|
|
8287
|
+
* engine's own selection count for media), never from the resident index: a
|
|
8288
|
+
* drain sized off `RecordingIndex` is what reported `done` over 80.3 GB it had
|
|
8289
|
+
* never been told about (D295).
|
|
8290
|
+
*
|
|
8291
|
+
* `items`/`bytes` are `null` for "the archive could not be asked", which is
|
|
8292
|
+
* deliberately NOT zero: a drain is still offered for an unknown residue,
|
|
8293
|
+
* because refusing on an unanswerable read would hide exactly the case an
|
|
8294
|
+
* operator needs to act on.
|
|
8295
|
+
*/
|
|
8296
|
+
var StorageMigrationResidueSchema = object({
|
|
8297
|
+
storageClass: StorageMigrationClassSchema,
|
|
8298
|
+
/** The location still holding the data. `'*'` for the media lane, whose rows
|
|
8299
|
+
* move from wherever they are rather than from one named source. */
|
|
8300
|
+
fromLocationId: string(),
|
|
8301
|
+
/** Where a drain would move it — the class's CURRENT default. */
|
|
8302
|
+
toLocationId: string(),
|
|
8303
|
+
/** Segments (footage lane) or rows (media lane) still on the source. */
|
|
8304
|
+
items: number().int().nonnegative().nullable(),
|
|
8305
|
+
/** Bytes on the source; `null` when the lane counts rows rather than bytes. */
|
|
8306
|
+
bytes: number().int().nonnegative().nullable()
|
|
8307
|
+
});
|
|
8308
|
+
/**
|
|
8309
|
+
* Run the DRAIN half and nothing else.
|
|
8310
|
+
*
|
|
8311
|
+
* A migration that reached `done` has already repointed, so `start` correctly
|
|
8312
|
+
* refuses its destination ("already the default") — there is nothing left to
|
|
8313
|
+
* repoint. But the drain can fail, be cancelled, be interrupted by a restart,
|
|
8314
|
+
* or finish against a work list that was a tenth of the archive (D295), and
|
|
8315
|
+
* before this there was no supported way to run only that half: the only way
|
|
8316
|
+
* through was calling `recording.relocateFootage` by hand over admin tRPC.
|
|
8317
|
+
*
|
|
8318
|
+
* `drain` NEVER calls `setDefaultLocations`. That is what keeps `start`'s
|
|
8319
|
+
* refusal meaningful: the two verbs are disjoint, so nothing here can silently
|
|
8320
|
+
* re-repoint a class that is already migrated.
|
|
8321
|
+
*/
|
|
8322
|
+
var StorageMigrationDrainInputSchema = object({
|
|
8323
|
+
/** The classes to drain. Each must appear in `storageMigration.residue`, so
|
|
8324
|
+
* a class whose source is already empty is refused rather than started. */
|
|
8325
|
+
classes: array(StorageMigrationClassSchema).min(1),
|
|
8326
|
+
throttleMbps: number().min(1).max(1e3).optional()
|
|
8327
|
+
});
|
|
8328
|
+
/** What a footage source still holds, asked of the durable hour ledger. */
|
|
8329
|
+
var RelocateResidueInputSchema = object({
|
|
8330
|
+
fromLocationId: string().min(1),
|
|
8331
|
+
/** Narrow to one logical class; omit for every profile on the location. */
|
|
8332
|
+
footageClass: RelocateFootageClassSchema.optional()
|
|
8333
|
+
});
|
|
8334
|
+
/** `null` = the archive could not answer (no ledger on this node, or the
|
|
8335
|
+
* aggregate failed). Never conflated with an empty source. */
|
|
8336
|
+
var RelocateResidueSchema = object({
|
|
8337
|
+
segments: number().int().nonnegative(),
|
|
8338
|
+
bytes: number().int().nonnegative()
|
|
8339
|
+
}).nullable();
|
|
8340
|
+
/** How many rows a media pass would still act on against a given target — the
|
|
8341
|
+
* media lane's denominator AND its residue, from ONE derivation so the two can
|
|
8342
|
+
* never disagree. `null` = the count could not be taken. */
|
|
8343
|
+
var RelocatableMediaCountSchema = object({ rows: number().int().nonnegative() }).nullable();
|
|
8344
|
+
var RelocatableMediaCountInputSchema = object({
|
|
8345
|
+
toLocationId: string().min(1),
|
|
8346
|
+
/** Omitted = `move`. */
|
|
8347
|
+
mode: MediaRelocateModeSchema.optional()
|
|
8348
|
+
});
|
|
8349
|
+
/**
|
|
8222
8350
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
8223
8351
|
* storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
|
|
8224
8352
|
* so the persisted record schema and the consumer-facing cap can both consume it
|
|
@@ -8322,6 +8450,32 @@ var StorageLocationRefSchema = union([StorageLocationTypeSchema, string().regex(
|
|
|
8322
8450
|
* two addons declaring the same `id` must agree on `cardinality` (validated
|
|
8323
8451
|
* at kernel aggregation time, not here).
|
|
8324
8452
|
*/
|
|
8453
|
+
/**
|
|
8454
|
+
* `StorageAccess` — how the service that DECLARED a storage-location kind
|
|
8455
|
+
* actually reaches the bytes. It is the constraint that decides which
|
|
8456
|
+
* `storage-provider`s may back a location of that kind.
|
|
8457
|
+
*
|
|
8458
|
+
* - `'local-path'` — the service asks `storage.resolve` for a path string and
|
|
8459
|
+
* then does its own `node:fs` I/O on it (the recorder's segment writer, the
|
|
8460
|
+
* post-analysis media roots). Only a provider that serves a genuine local
|
|
8461
|
+
* filesystem (`getProviderInfo().nodeLocal === true`) can satisfy that: a
|
|
8462
|
+
* remote provider's `resolve` returns a path on the REMOTE host, and
|
|
8463
|
+
* `fs.readdir` of it on this node either fails or — far worse — succeeds
|
|
8464
|
+
* against a same-named local directory that is something else entirely.
|
|
8465
|
+
*
|
|
8466
|
+
* - `'cap-mediated'` — every byte travels through the `storage` cap
|
|
8467
|
+
* (`read`/`write`, or `beginUpload`/`writeChunk`/`finalizeUpload`). The
|
|
8468
|
+
* service never sees a path, so any provider can back it. `backups` is the
|
|
8469
|
+
* one kind that qualifies today.
|
|
8470
|
+
*
|
|
8471
|
+
* Before this existed, `recordings` was unreachable by SFTP/S3/WebDAV only as
|
|
8472
|
+
* an EMERGENT property of how the recorder happened to be written. Nothing
|
|
8473
|
+
* refused the configuration; the first write simply went somewhere wrong, and
|
|
8474
|
+
* a recording write that goes wrong surfaces as a silent black window rather
|
|
8475
|
+
* than an error (the read path does not `stat`). This turns that accident into
|
|
8476
|
+
* a declared, enforced, testable refusal.
|
|
8477
|
+
*/
|
|
8478
|
+
var StorageAccessSchema = _enum(["local-path", "cap-mediated"]);
|
|
8325
8479
|
var StorageLocationDeclarationSchema = object({
|
|
8326
8480
|
/**
|
|
8327
8481
|
* Global location identifier, e.g. `recordings` or `recordingsLow`.
|
|
@@ -8341,6 +8495,19 @@ var StorageLocationDeclarationSchema = object({
|
|
|
8341
8495
|
*/
|
|
8342
8496
|
cardinality: _enum(["single", "multi"]),
|
|
8343
8497
|
/**
|
|
8498
|
+
* HOW the declaring service reaches the bytes — and therefore WHICH
|
|
8499
|
+
* providers may back a location of this kind. See {@link StorageAccessSchema}
|
|
8500
|
+
* and {@link STORAGE_ACCESS_FALLBACK}.
|
|
8501
|
+
*
|
|
8502
|
+
* Absent means `'local-path'`. That default is FAIL-CLOSED on purpose: it
|
|
8503
|
+
* can only over-restrict (refuse a remote provider for a kind that might
|
|
8504
|
+
* have coped) and never under-restrict. Declaring `'cap-mediated'` is the
|
|
8505
|
+
* permissive direction and is therefore never inferred — a repo guard
|
|
8506
|
+
* (`scripts/check-storage-access-declarations.ts`) refuses to let it be
|
|
8507
|
+
* reached by omission.
|
|
8508
|
+
*/
|
|
8509
|
+
access: StorageAccessSchema.optional(),
|
|
8510
|
+
/**
|
|
8344
8511
|
* When set, the default instance for this location inherits its resolved
|
|
8345
8512
|
* root from the named location's default instance. Useful for derivative
|
|
8346
8513
|
* slots (e.g. `recordingsLow` → `recordings`) so operators only need to
|
|
@@ -17866,8 +18033,10 @@ var TrackSchema = object({
|
|
|
17866
18033
|
lastSeen: number(),
|
|
17867
18034
|
/** Frame-rate position history (subject to maxPositionHistory cap). */
|
|
17868
18035
|
positions: array(TrackPositionSchema).readonly(),
|
|
17869
|
-
/** Periodic snapshots at snapshotIntervalMs cadence
|
|
17870
|
-
*
|
|
18036
|
+
/** Periodic snapshots at snapshotIntervalMs cadence — DEBUG media, produced
|
|
18037
|
+
* only while `MediaSettings.debugMediaEnabled` is on for the camera (D299;
|
|
18038
|
+
* the retired `saveThumbnails` used to gate this and the rolling
|
|
18039
|
+
* `lastFrame` together). Empty is the healthy default, not a capture gap. */
|
|
17871
18040
|
snapshots: array(TrackSnapshotSchema).readonly(),
|
|
17872
18041
|
/** Deduplicated zones the track has entered at least once. Zone IDS. */
|
|
17873
18042
|
zonesVisited: array(string()).readonly(),
|
|
@@ -18727,7 +18896,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
18727
18896
|
}), method(RelocateMediaInputSchema, object({ jobId: string() }), {
|
|
18728
18897
|
kind: "mutation",
|
|
18729
18898
|
auth: "admin"
|
|
18730
|
-
}), method(object({}), UnstampedEventMediaCountSchema, { auth: "admin" }), method(
|
|
18899
|
+
}), method(object({}), UnstampedEventMediaCountSchema, { auth: "admin" }), method(RelocatableMediaCountInputSchema, RelocatableMediaCountSchema, {
|
|
18900
|
+
kind: "query",
|
|
18901
|
+
auth: "admin"
|
|
18902
|
+
}), method(object({}), array(RelocateJobSchema).readonly(), {
|
|
18731
18903
|
kind: "query",
|
|
18732
18904
|
auth: "admin"
|
|
18733
18905
|
}), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
@@ -20686,6 +20858,9 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
|
|
|
20686
20858
|
}), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
20687
20859
|
kind: "mutation",
|
|
20688
20860
|
auth: "admin"
|
|
20861
|
+
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
|
|
20862
|
+
kind: "mutation",
|
|
20863
|
+
auth: "admin"
|
|
20689
20864
|
});
|
|
20690
20865
|
var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
|
|
20691
20866
|
providerId: string().min(1),
|
|
@@ -21084,12 +21259,38 @@ response: record(string(), unknown()) }), object({
|
|
|
21084
21259
|
*
|
|
21085
21260
|
* ## Why this is a capability and not a helper
|
|
21086
21261
|
*
|
|
21087
|
-
*
|
|
21088
|
-
*
|
|
21089
|
-
*
|
|
21090
|
-
*
|
|
21091
|
-
*
|
|
21092
|
-
*
|
|
21262
|
+
* This capability was introduced with the claim that SIX stores in
|
|
21263
|
+
* `addon-post-analysis` held vectors in a `JSON` settings-store column — object
|
|
21264
|
+
* CLIP, face, plate, vehicle, identity, and the event store's derivatives. That
|
|
21265
|
+
* claim was never true, and leaving it here made five stores look like pending
|
|
21266
|
+
* work when three of them have no vector at all. Counted column by column on
|
|
21267
|
+
* 2026-08-30, exactly THREE ever held one:
|
|
21268
|
+
*
|
|
21269
|
+
* - `object-clip` — 512-dim CLIP image embedding, migrated 2026-08-06.
|
|
21270
|
+
* - `faces.embedding` — 512-dim ArcFace face embedding, migrated 2026-08-30.
|
|
21271
|
+
* - `identity-samples.embedding` — the same ArcFace vector for an ENROLLED
|
|
21272
|
+
* face, migrated 2026-08-30 into its OWN index (see below).
|
|
21273
|
+
*
|
|
21274
|
+
* `plates` and `vehicle-samples` store a plate STRING and a score; `vehicles`
|
|
21275
|
+
* and `identities` store a name; the event store stores no derivative vector.
|
|
21276
|
+
* They are not migration candidates and never were.
|
|
21277
|
+
*
|
|
21278
|
+
* Measured on the live hub the JSON encoding cost ~11.7 KB per row (512 floats
|
|
21279
|
+
* as TEXT, `JSON.parse`d on every search) and made semantic search load 5,000
|
|
21280
|
+
* rows before ranking anything.
|
|
21281
|
+
*
|
|
21282
|
+
* ## One index per COMPARISON, never per encoder
|
|
21283
|
+
*
|
|
21284
|
+
* `faces` and `identity-samples` hold the same 512 ArcFace dims from the same
|
|
21285
|
+
* model, and they still get two indexes. An index is a set of things that are
|
|
21286
|
+
* ranked against each other and that live and die together, and these two are
|
|
21287
|
+
* neither: a `faces` row is TRACK-OWNED and cascades away with its track under
|
|
21288
|
+
* a per-camera capacity cap, an `identity-samples` row is retention-EXEMPT
|
|
21289
|
+
* forever and is the gallery every recognition ranks against. One index would
|
|
21290
|
+
* mean every gallery load and every reconcile carried a filter whose failure
|
|
21291
|
+
* mode is either ranking a candidate against itself or reclaiming an enrolled
|
|
21292
|
+
* person's only sample. The dimension they share is not a reason to share an
|
|
21293
|
+
* index; the question they answer is, and it differs.
|
|
21093
21294
|
*
|
|
21094
21295
|
* The fix is not a faster loop, it is a different backend — and the backend
|
|
21095
21296
|
* should be replaceable without touching six callers. So: a singleton
|
|
@@ -21194,7 +21395,20 @@ var VectorQueryResultSchema = object({
|
|
|
21194
21395
|
*/
|
|
21195
21396
|
scanned: number(),
|
|
21196
21397
|
/** True when the backend could not consider every row that passed the filter. */
|
|
21197
|
-
truncated: boolean()
|
|
21398
|
+
truncated: boolean(),
|
|
21399
|
+
/**
|
|
21400
|
+
* The `topK` the backend actually ran with.
|
|
21401
|
+
*
|
|
21402
|
+
* Every backend has a ceiling — sqlite-vec's is 4,096 — and a caller asking
|
|
21403
|
+
* past it used to learn nothing but a boolean, from a WARN in the provider's
|
|
21404
|
+
* own log rather than in its answer. That is how an audit asking for 20,000
|
|
21405
|
+
* consumed 4,096 and reported `examined: 4096` as if it had walked the index,
|
|
21406
|
+
* for weeks. `truncated` says THAT the answer was short; this says BY HOW
|
|
21407
|
+
* MUCH, in the return value, where the caller cannot fail to see it.
|
|
21408
|
+
*
|
|
21409
|
+
* Equals the requested `topK` whenever nothing was lowered.
|
|
21410
|
+
*/
|
|
21411
|
+
effectiveTopK: number().int().positive()
|
|
21198
21412
|
});
|
|
21199
21413
|
var VectorDeleteInputSchema = object({
|
|
21200
21414
|
index: string(),
|
|
@@ -21223,6 +21437,68 @@ var VectorGetResultSchema = object({ items: array(object({
|
|
|
21223
21437
|
id: string(),
|
|
21224
21438
|
metadata: VectorMetadataSchema
|
|
21225
21439
|
})) });
|
|
21440
|
+
/**
|
|
21441
|
+
* Ids to read back WITH their vectors.
|
|
21442
|
+
*
|
|
21443
|
+
* The sibling of {@link VectorGetResultSchema}, and deliberately a separate
|
|
21444
|
+
* method rather than a flag on it: `getByIds` promises no vectors and its one
|
|
21445
|
+
* caller depends on that promise. This one promises the opposite.
|
|
21446
|
+
*
|
|
21447
|
+
* It exists because a store cannot put its vectors here otherwise. An ArcFace
|
|
21448
|
+
* gallery is ranked IN PROCESS, per detection, against every enrolled sample —
|
|
21449
|
+
* a per-face cross-process KNN would be a network round trip inside the
|
|
21450
|
+
* recognition loop. So the gallery is loaded once and held in RAM, and loading
|
|
21451
|
+
* it requires the index to hand the floats back. Without this method the only
|
|
21452
|
+
* way to keep a readable vector is a JSON column, which is the thing this
|
|
21453
|
+
* capability exists to delete.
|
|
21454
|
+
*
|
|
21455
|
+
* BOUNDED BY THE CALLER: ids are named, never "everything". Enumerating an
|
|
21456
|
+
* index is {@link VectorScanInputSchema}'s job, and it returns no vectors.
|
|
21457
|
+
*/
|
|
21458
|
+
var VectorFetchInputSchema = object({
|
|
21459
|
+
index: string(),
|
|
21460
|
+
ids: array(string())
|
|
21461
|
+
});
|
|
21462
|
+
var VectorFetchResultSchema = object({ items: array(object({
|
|
21463
|
+
id: string(),
|
|
21464
|
+
/** base64 Float32LE — the same wire form `upsert` accepts. */
|
|
21465
|
+
vector: string(),
|
|
21466
|
+
metadata: VectorMetadataSchema
|
|
21467
|
+
})) });
|
|
21468
|
+
/**
|
|
21469
|
+
* ENUMERATE an index: one page of rows in a stable order, no ranking.
|
|
21470
|
+
*
|
|
21471
|
+
* A reconcile does not want the nearest rows, it wants ALL of them, and asking
|
|
21472
|
+
* a KNN for "all" is the wrong question twice over. It hits the backend's `k`
|
|
21473
|
+
* ceiling — 4,096 on sqlite-vec against a 22,128-row index — and it needs a
|
|
21474
|
+
* probe vector it does not have, so the audit passed a ZERO vector whose cosine
|
|
21475
|
+
* distance to every row is degenerate. `examined: 4096` then read as "we
|
|
21476
|
+
* looked" for as long as anyone cared to read it.
|
|
21477
|
+
*
|
|
21478
|
+
* This is the primitive that question actually needs: a bounded page, ordered
|
|
21479
|
+
* by the backend's own row order, costing no distance computation at all.
|
|
21480
|
+
* Vectors are NOT returned — an enumeration that shipped 2 KB per row would be
|
|
21481
|
+
* the full-table read this capability was built to stop.
|
|
21482
|
+
*/
|
|
21483
|
+
var VectorScanInputSchema = object({
|
|
21484
|
+
index: string(),
|
|
21485
|
+
/** Opaque resume point. `0` starts at the top; pass back `nextCursor`. */
|
|
21486
|
+
cursor: number().int().nonnegative().default(0),
|
|
21487
|
+
limit: number().int().positive()
|
|
21488
|
+
});
|
|
21489
|
+
var VectorScanResultSchema = object({
|
|
21490
|
+
items: array(object({
|
|
21491
|
+
id: string(),
|
|
21492
|
+
metadata: VectorMetadataSchema
|
|
21493
|
+
})),
|
|
21494
|
+
/**
|
|
21495
|
+
* Where the next page starts, or `null` when the walk reached the end.
|
|
21496
|
+
*
|
|
21497
|
+
* `null` is the ONLY end-of-index signal. A caller must not infer the end
|
|
21498
|
+
* from a short page: a backend is free to return fewer rows than asked.
|
|
21499
|
+
*/
|
|
21500
|
+
nextCursor: number().int().nonnegative().nullable()
|
|
21501
|
+
});
|
|
21226
21502
|
var VectorStatsInputSchema = object({ index: string() });
|
|
21227
21503
|
var VectorStatsResultSchema = object({
|
|
21228
21504
|
/** Provider id, so an operator can tell brute force from an ANN index. */
|
|
@@ -21241,7 +21517,7 @@ method(VectorDeclareIndexInputSchema, _void(), {
|
|
|
21241
21517
|
}), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
|
|
21242
21518
|
kind: "mutation",
|
|
21243
21519
|
auth: "admin"
|
|
21244
|
-
}), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
|
|
21520
|
+
}), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorFetchInputSchema, VectorFetchResultSchema, { auth: "admin" }), method(VectorScanInputSchema, VectorScanResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
|
|
21245
21521
|
kind: "mutation",
|
|
21246
21522
|
auth: "admin"
|
|
21247
21523
|
}), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
|
|
@@ -26145,6 +26421,9 @@ method(object({
|
|
|
26145
26421
|
}), method(object({}), array(RelocateJobSchema).readonly(), {
|
|
26146
26422
|
kind: "query",
|
|
26147
26423
|
auth: "admin"
|
|
26424
|
+
}), method(RelocateResidueInputSchema, RelocateResidueSchema, {
|
|
26425
|
+
kind: "query",
|
|
26426
|
+
auth: "admin"
|
|
26148
26427
|
}), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
26149
26428
|
kind: "mutation",
|
|
26150
26429
|
auth: "admin"
|
|
@@ -31110,6 +31389,12 @@ Object.freeze({
|
|
|
31110
31389
|
addonId: null,
|
|
31111
31390
|
access: "create"
|
|
31112
31391
|
},
|
|
31392
|
+
"pipelineAnalytics.countRelocatableMedia": {
|
|
31393
|
+
capName: "pipeline-analytics",
|
|
31394
|
+
capScope: "device",
|
|
31395
|
+
addonId: null,
|
|
31396
|
+
access: "view"
|
|
31397
|
+
},
|
|
31113
31398
|
"pipelineAnalytics.countUnstampedEventMedia": {
|
|
31114
31399
|
capName: "pipeline-analytics",
|
|
31115
31400
|
capScope: "device",
|
|
@@ -32274,6 +32559,12 @@ Object.freeze({
|
|
|
32274
32559
|
addonId: null,
|
|
32275
32560
|
access: "view"
|
|
32276
32561
|
},
|
|
32562
|
+
"recording.getRelocateResidue": {
|
|
32563
|
+
capName: "recording",
|
|
32564
|
+
capScope: "system",
|
|
32565
|
+
addonId: null,
|
|
32566
|
+
access: "view"
|
|
32567
|
+
},
|
|
32277
32568
|
"recording.getStorageMigrationMoveStatus": {
|
|
32278
32569
|
capName: "recording",
|
|
32279
32570
|
capScope: "system",
|
|
@@ -32820,12 +33111,30 @@ Object.freeze({
|
|
|
32820
33111
|
addonId: null,
|
|
32821
33112
|
access: "create"
|
|
32822
33113
|
},
|
|
33114
|
+
"storageMigration.drain": {
|
|
33115
|
+
capName: "storage-migration",
|
|
33116
|
+
capScope: "system",
|
|
33117
|
+
addonId: null,
|
|
33118
|
+
access: "create"
|
|
33119
|
+
},
|
|
33120
|
+
"storageMigration.movers": {
|
|
33121
|
+
capName: "storage-migration",
|
|
33122
|
+
capScope: "system",
|
|
33123
|
+
addonId: null,
|
|
33124
|
+
access: "view"
|
|
33125
|
+
},
|
|
32823
33126
|
"storageMigration.plan": {
|
|
32824
33127
|
capName: "storage-migration",
|
|
32825
33128
|
capScope: "system",
|
|
32826
33129
|
addonId: null,
|
|
32827
33130
|
access: "view"
|
|
32828
33131
|
},
|
|
33132
|
+
"storageMigration.residue": {
|
|
33133
|
+
capName: "storage-migration",
|
|
33134
|
+
capScope: "system",
|
|
33135
|
+
addonId: null,
|
|
33136
|
+
access: "view"
|
|
33137
|
+
},
|
|
32829
33138
|
"storageMigration.start": {
|
|
32830
33139
|
capName: "storage-migration",
|
|
32831
33140
|
capScope: "system",
|
|
@@ -33660,6 +33969,12 @@ Object.freeze({
|
|
|
33660
33969
|
addonId: null,
|
|
33661
33970
|
access: "delete"
|
|
33662
33971
|
},
|
|
33972
|
+
"vectorStore.fetchByIds": {
|
|
33973
|
+
capName: "vector-store",
|
|
33974
|
+
capScope: "system",
|
|
33975
|
+
addonId: null,
|
|
33976
|
+
access: "view"
|
|
33977
|
+
},
|
|
33663
33978
|
"vectorStore.getByIds": {
|
|
33664
33979
|
capName: "vector-store",
|
|
33665
33980
|
capScope: "system",
|
|
@@ -33672,6 +33987,12 @@ Object.freeze({
|
|
|
33672
33987
|
addonId: null,
|
|
33673
33988
|
access: "view"
|
|
33674
33989
|
},
|
|
33990
|
+
"vectorStore.scan": {
|
|
33991
|
+
capName: "vector-store",
|
|
33992
|
+
capScope: "system",
|
|
33993
|
+
addonId: null,
|
|
33994
|
+
access: "view"
|
|
33995
|
+
},
|
|
33675
33996
|
"vectorStore.stats": {
|
|
33676
33997
|
capName: "vector-store",
|
|
33677
33998
|
capScope: "system",
|
|
@@ -36105,7 +36426,7 @@ var AgentUIAddon = class extends BaseAddon {
|
|
|
36105
36426
|
capability: adminUiCapability,
|
|
36106
36427
|
provider: {
|
|
36107
36428
|
getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
|
|
36108
|
-
getVersion: async () => ({ version: "1.2.
|
|
36429
|
+
getVersion: async () => ({ version: "1.2.46" })
|
|
36109
36430
|
}
|
|
36110
36431
|
}];
|
|
36111
36432
|
}
|