@camstack/addon-pipeline 1.2.149 → 1.2.151
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/audio-analyzer/index.js +2 -2
- package/dist/audio-analyzer/index.mjs +2 -2
- package/dist/detection-pipeline/index.js +5 -5
- package/dist/detection-pipeline/index.mjs +4 -4
- package/dist/{dist-DjplinYP.mjs → dist-BjzcUac4.mjs} +344 -12
- package/dist/{dist-DLy_uz82.js → dist-hmG3nfuW.js} +344 -12
- package/dist/{lazy-sharp-BI4LsfMM.js → lazy-sharp-RLE6klOt.js} +1 -1
- package/dist/{local-frame-registry-77FL9ua_.mjs → local-frame-registry-BFaxbRtK.mjs} +1 -1
- package/dist/{local-frame-registry-Dr_U_xCG.js → local-frame-registry-Ct2vQ7Dp.js} +1 -1
- package/dist/motion-wasm/index.js +2 -2
- package/dist/motion-wasm/index.mjs +1 -1
- package/dist/{node-BHFLhfkh.js → node-BwXwfrvA.js} +1 -1
- package/dist/{node-D7uxWSXD.mjs → node-U9fJ-bQN.mjs} +1 -1
- package/dist/pipeline-runner/index.js +5 -5
- package/dist/pipeline-runner/index.mjs +4 -4
- package/dist/{process-memory-B2tApNua.mjs → process-memory-4WDUPavu.mjs} +1 -1
- package/dist/{process-memory-M8WiR3qj.js → process-memory-DR9jSxpX.js} +1 -1
- package/dist/recorder/index.js +7583 -6146
- package/dist/recorder/index.mjs +7583 -6146
- package/dist/{segment-demux-js-3niBZUpJ.mjs → segment-demux-js-kUN5AQVv.mjs} +1 -1
- package/dist/{segment-demux-js-Cc_If7C_.js → segment-demux-js-zqUNh3pj.js} +1 -1
- package/dist/session-decode/decode-worker-child.js +2 -2
- package/dist/session-decode/decode-worker-child.mjs +1 -1
- package/dist/stream-broker/_stub.js +2 -2
- package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-QfvsYvjB.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-BOXQSR0X.mjs} +3 -3
- package/dist/stream-broker/{_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DXrU11Bz.mjs → _virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CyIaTPRY.mjs} +1 -1
- package/dist/stream-broker/{_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CgIcw5Wl.mjs → _virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-Cyyhy_D8.mjs} +1 -1
- package/dist/stream-broker/demux-worker-child.js +1 -1
- package/dist/stream-broker/demux-worker-child.mjs +1 -1
- package/dist/stream-broker/{hostInit-Dd2CEvDK.mjs → hostInit-CnUhcNPG.mjs} +3 -3
- package/dist/stream-broker/index.js +3 -3
- package/dist/stream-broker/index.mjs +3 -3
- package/dist/stream-broker/remoteEntry.js +1 -1
- package/dist/{worker-protocol-Cvln9GmS.mjs → worker-protocol-BzlEZ56r.mjs} +1 -1
- package/dist/{worker-protocol-basMNc_q.js → worker-protocol-DE_jjbFA.js} +1 -1
- package/package.json +1 -1
|
@@ -9499,13 +9499,49 @@ var StorageMigrationParticipantSchema = _enum([
|
|
|
9499
9499
|
"recorder",
|
|
9500
9500
|
"analytics"
|
|
9501
9501
|
]);
|
|
9502
|
+
/**
|
|
9503
|
+
* The mover's own numbers, folded onto the coordinator's durable move record.
|
|
9504
|
+
*
|
|
9505
|
+
* The long half of a non-blocking migration is `draining`, and it is measured
|
|
9506
|
+
* in hours: 136 885 files at ~4 MB/s is about five of them. Before this shape
|
|
9507
|
+
* existed the only place those numbers appeared was a Loki line, so an operator
|
|
9508
|
+
* watching the Admin UI saw `phase: draining` and nothing else for a whole
|
|
9509
|
+
* afternoon.
|
|
9510
|
+
*
|
|
9511
|
+
* It is POLLED, never pushed. Events are telemetry and may be dropped
|
|
9512
|
+
* (D8/D11), and a dropped progress event is indistinguishable from a stalled
|
|
9513
|
+
* mover — which is the exact failure this is meant to end. The coordinator's
|
|
9514
|
+
* `waitForMoves` already fetches the whole {@link RelocateJob} on every tick to
|
|
9515
|
+
* read `state`; folding the counters costs no extra read and makes the durable
|
|
9516
|
+
* record say afterwards how far a move actually got.
|
|
9517
|
+
*
|
|
9518
|
+
* `filesTotal` is `null` for "no honest denominator" and is never zero-filled:
|
|
9519
|
+
* a windowed footage job (`sinceMs`) and a node with no ledger both genuinely
|
|
9520
|
+
* cannot say M, and a 0 there would render as "100 % done".
|
|
9521
|
+
*/
|
|
9522
|
+
var StorageMigrationMoveProgressSchema = object({
|
|
9523
|
+
filesMoved: number().int().nonnegative(),
|
|
9524
|
+
/** The archive census — the **M** of "N of M" (D295). `null` = unknowable. */
|
|
9525
|
+
filesTotal: number().int().nonnegative().nullable(),
|
|
9526
|
+
bytesMoved: number().int().nonnegative(),
|
|
9527
|
+
/** The MOVER's start, not the migration's: a drain restarted after an addon
|
|
9528
|
+
* crash gets a new mover, and a rate computed from the migration's start
|
|
9529
|
+
* would silently average in the time nothing was running. */
|
|
9530
|
+
startedAt: number(),
|
|
9531
|
+
/** When the coordinator last read these numbers. Paired with `startedAt` it
|
|
9532
|
+
* is the only honest rate: both clocks are the hub's, so a UI never has to
|
|
9533
|
+
* subtract its own. */
|
|
9534
|
+
observedAt: number()
|
|
9535
|
+
});
|
|
9502
9536
|
var StorageMigrationMoveSchema = object({
|
|
9503
9537
|
storageClass: StorageMigrationClassSchema,
|
|
9504
9538
|
fromLocationId: string(),
|
|
9505
9539
|
toLocationId: string(),
|
|
9506
9540
|
moverJobId: string().nullable(),
|
|
9507
9541
|
state: RelocateJobStateSchema.nullable(),
|
|
9508
|
-
error: string().nullable()
|
|
9542
|
+
error: string().nullable(),
|
|
9543
|
+
/** Last observed mover counters; `null` until the mover has been polled once. */
|
|
9544
|
+
progress: StorageMigrationMoveProgressSchema.nullable()
|
|
9509
9545
|
});
|
|
9510
9546
|
var StorageMigrationJobSchema = object({
|
|
9511
9547
|
jobId: string(),
|
|
@@ -9551,6 +9587,98 @@ var StorageMigrationPlanSchema = object({
|
|
|
9551
9587
|
findings: array(StorageMigrationFindingSchema)
|
|
9552
9588
|
});
|
|
9553
9589
|
/**
|
|
9590
|
+
* A mover as it exists RIGHT NOW, whether or not a migration job owns it.
|
|
9591
|
+
*
|
|
9592
|
+
* The coordinator's job record is the state of record for a migration, and its
|
|
9593
|
+
* moves carry {@link StorageMigrationMoveProgress}. But the movers are usable
|
|
9594
|
+
* standalone — `recording.relocateFootage` and `pipelineAnalytics.relocateMedia`
|
|
9595
|
+
* are both operator-callable, and on 2026-08-29 a five-hour drain was armed that
|
|
9596
|
+
* way because no supported UI path existed. A mover armed like that has no job
|
|
9597
|
+
* to fold progress into, so it has to be readable on its own or it is invisible.
|
|
9598
|
+
*
|
|
9599
|
+
* `migrationJobId` is what tells the two apart: `null` means nothing here
|
|
9600
|
+
* orchestrated it.
|
|
9601
|
+
*/
|
|
9602
|
+
var StorageMigrationMoverSchema = object({
|
|
9603
|
+
lane: _enum(["footage", "media"]),
|
|
9604
|
+
job: RelocateJobSchema,
|
|
9605
|
+
/** The coordinator job that armed this mover, or `null` for a mover armed
|
|
9606
|
+
* directly against the owning addon. */
|
|
9607
|
+
migrationJobId: string().nullable(),
|
|
9608
|
+
/** When the hub read these counters. Stamped here so a rate is `bytesMoved`
|
|
9609
|
+
* over (`observedAt` − `job.startedAt`) with BOTH ends on the hub's clock —
|
|
9610
|
+
* a browser subtracting its own `Date.now()` from a server `startedAt` is a
|
|
9611
|
+
* rate made of two different clocks. */
|
|
9612
|
+
observedAt: number()
|
|
9613
|
+
});
|
|
9614
|
+
/**
|
|
9615
|
+
* What a SOURCE still holds for one storage class — the number that makes a
|
|
9616
|
+
* "drain remaining" action honest rather than hopeful.
|
|
9617
|
+
*
|
|
9618
|
+
* It comes from the archive (`SegmentHourLedger.census` for footage, the media
|
|
9619
|
+
* engine's own selection count for media), never from the resident index: a
|
|
9620
|
+
* drain sized off `RecordingIndex` is what reported `done` over 80.3 GB it had
|
|
9621
|
+
* never been told about (D295).
|
|
9622
|
+
*
|
|
9623
|
+
* `items`/`bytes` are `null` for "the archive could not be asked", which is
|
|
9624
|
+
* deliberately NOT zero: a drain is still offered for an unknown residue,
|
|
9625
|
+
* because refusing on an unanswerable read would hide exactly the case an
|
|
9626
|
+
* operator needs to act on.
|
|
9627
|
+
*/
|
|
9628
|
+
var StorageMigrationResidueSchema = object({
|
|
9629
|
+
storageClass: StorageMigrationClassSchema,
|
|
9630
|
+
/** The location still holding the data. `'*'` for the media lane, whose rows
|
|
9631
|
+
* move from wherever they are rather than from one named source. */
|
|
9632
|
+
fromLocationId: string(),
|
|
9633
|
+
/** Where a drain would move it — the class's CURRENT default. */
|
|
9634
|
+
toLocationId: string(),
|
|
9635
|
+
/** Segments (footage lane) or rows (media lane) still on the source. */
|
|
9636
|
+
items: number().int().nonnegative().nullable(),
|
|
9637
|
+
/** Bytes on the source; `null` when the lane counts rows rather than bytes. */
|
|
9638
|
+
bytes: number().int().nonnegative().nullable()
|
|
9639
|
+
});
|
|
9640
|
+
/**
|
|
9641
|
+
* Run the DRAIN half and nothing else.
|
|
9642
|
+
*
|
|
9643
|
+
* A migration that reached `done` has already repointed, so `start` correctly
|
|
9644
|
+
* refuses its destination ("already the default") — there is nothing left to
|
|
9645
|
+
* repoint. But the drain can fail, be cancelled, be interrupted by a restart,
|
|
9646
|
+
* or finish against a work list that was a tenth of the archive (D295), and
|
|
9647
|
+
* before this there was no supported way to run only that half: the only way
|
|
9648
|
+
* through was calling `recording.relocateFootage` by hand over admin tRPC.
|
|
9649
|
+
*
|
|
9650
|
+
* `drain` NEVER calls `setDefaultLocations`. That is what keeps `start`'s
|
|
9651
|
+
* refusal meaningful: the two verbs are disjoint, so nothing here can silently
|
|
9652
|
+
* re-repoint a class that is already migrated.
|
|
9653
|
+
*/
|
|
9654
|
+
var StorageMigrationDrainInputSchema = object({
|
|
9655
|
+
/** The classes to drain. Each must appear in `storageMigration.residue`, so
|
|
9656
|
+
* a class whose source is already empty is refused rather than started. */
|
|
9657
|
+
classes: array(StorageMigrationClassSchema).min(1),
|
|
9658
|
+
throttleMbps: number().min(1).max(1e3).optional()
|
|
9659
|
+
});
|
|
9660
|
+
/** What a footage source still holds, asked of the durable hour ledger. */
|
|
9661
|
+
var RelocateResidueInputSchema = object({
|
|
9662
|
+
fromLocationId: string().min(1),
|
|
9663
|
+
/** Narrow to one logical class; omit for every profile on the location. */
|
|
9664
|
+
footageClass: RelocateFootageClassSchema.optional()
|
|
9665
|
+
});
|
|
9666
|
+
/** `null` = the archive could not answer (no ledger on this node, or the
|
|
9667
|
+
* aggregate failed). Never conflated with an empty source. */
|
|
9668
|
+
var RelocateResidueSchema = object({
|
|
9669
|
+
segments: number().int().nonnegative(),
|
|
9670
|
+
bytes: number().int().nonnegative()
|
|
9671
|
+
}).nullable();
|
|
9672
|
+
/** How many rows a media pass would still act on against a given target — the
|
|
9673
|
+
* media lane's denominator AND its residue, from ONE derivation so the two can
|
|
9674
|
+
* never disagree. `null` = the count could not be taken. */
|
|
9675
|
+
var RelocatableMediaCountSchema = object({ rows: number().int().nonnegative() }).nullable();
|
|
9676
|
+
var RelocatableMediaCountInputSchema = object({
|
|
9677
|
+
toLocationId: string().min(1),
|
|
9678
|
+
/** Omitted = `move`. */
|
|
9679
|
+
mode: MediaRelocateModeSchema.optional()
|
|
9680
|
+
});
|
|
9681
|
+
/**
|
|
9554
9682
|
* `StorageLocationType` — an addon-declared id that identifies the *kind* of
|
|
9555
9683
|
* storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
|
|
9556
9684
|
* so the persisted record schema and the consumer-facing cap can both consume it
|
|
@@ -9654,6 +9782,32 @@ var StorageLocationRefSchema = union([StorageLocationTypeSchema, string().regex(
|
|
|
9654
9782
|
* two addons declaring the same `id` must agree on `cardinality` (validated
|
|
9655
9783
|
* at kernel aggregation time, not here).
|
|
9656
9784
|
*/
|
|
9785
|
+
/**
|
|
9786
|
+
* `StorageAccess` — how the service that DECLARED a storage-location kind
|
|
9787
|
+
* actually reaches the bytes. It is the constraint that decides which
|
|
9788
|
+
* `storage-provider`s may back a location of that kind.
|
|
9789
|
+
*
|
|
9790
|
+
* - `'local-path'` — the service asks `storage.resolve` for a path string and
|
|
9791
|
+
* then does its own `node:fs` I/O on it (the recorder's segment writer, the
|
|
9792
|
+
* post-analysis media roots). Only a provider that serves a genuine local
|
|
9793
|
+
* filesystem (`getProviderInfo().nodeLocal === true`) can satisfy that: a
|
|
9794
|
+
* remote provider's `resolve` returns a path on the REMOTE host, and
|
|
9795
|
+
* `fs.readdir` of it on this node either fails or — far worse — succeeds
|
|
9796
|
+
* against a same-named local directory that is something else entirely.
|
|
9797
|
+
*
|
|
9798
|
+
* - `'cap-mediated'` — every byte travels through the `storage` cap
|
|
9799
|
+
* (`read`/`write`, or `beginUpload`/`writeChunk`/`finalizeUpload`). The
|
|
9800
|
+
* service never sees a path, so any provider can back it. `backups` is the
|
|
9801
|
+
* one kind that qualifies today.
|
|
9802
|
+
*
|
|
9803
|
+
* Before this existed, `recordings` was unreachable by SFTP/S3/WebDAV only as
|
|
9804
|
+
* an EMERGENT property of how the recorder happened to be written. Nothing
|
|
9805
|
+
* refused the configuration; the first write simply went somewhere wrong, and
|
|
9806
|
+
* a recording write that goes wrong surfaces as a silent black window rather
|
|
9807
|
+
* than an error (the read path does not `stat`). This turns that accident into
|
|
9808
|
+
* a declared, enforced, testable refusal.
|
|
9809
|
+
*/
|
|
9810
|
+
var StorageAccessSchema = _enum(["local-path", "cap-mediated"]);
|
|
9657
9811
|
var StorageLocationDeclarationSchema = object({
|
|
9658
9812
|
/**
|
|
9659
9813
|
* Global location identifier, e.g. `recordings` or `recordingsLow`.
|
|
@@ -9673,6 +9827,19 @@ var StorageLocationDeclarationSchema = object({
|
|
|
9673
9827
|
*/
|
|
9674
9828
|
cardinality: _enum(["single", "multi"]),
|
|
9675
9829
|
/**
|
|
9830
|
+
* HOW the declaring service reaches the bytes — and therefore WHICH
|
|
9831
|
+
* providers may back a location of this kind. See {@link StorageAccessSchema}
|
|
9832
|
+
* and {@link STORAGE_ACCESS_FALLBACK}.
|
|
9833
|
+
*
|
|
9834
|
+
* Absent means `'local-path'`. That default is FAIL-CLOSED on purpose: it
|
|
9835
|
+
* can only over-restrict (refuse a remote provider for a kind that might
|
|
9836
|
+
* have coped) and never under-restrict. Declaring `'cap-mediated'` is the
|
|
9837
|
+
* permissive direction and is therefore never inferred — a repo guard
|
|
9838
|
+
* (`scripts/check-storage-access-declarations.ts`) refuses to let it be
|
|
9839
|
+
* reached by omission.
|
|
9840
|
+
*/
|
|
9841
|
+
access: StorageAccessSchema.optional(),
|
|
9842
|
+
/**
|
|
9676
9843
|
* When set, the default instance for this location inherits its resolved
|
|
9677
9844
|
* root from the named location's default instance. Useful for derivative
|
|
9678
9845
|
* slots (e.g. `recordingsLow` → `recordings`) so operators only need to
|
|
@@ -20360,8 +20527,10 @@ var TrackSchema = object({
|
|
|
20360
20527
|
lastSeen: number(),
|
|
20361
20528
|
/** Frame-rate position history (subject to maxPositionHistory cap). */
|
|
20362
20529
|
positions: array(TrackPositionSchema).readonly(),
|
|
20363
|
-
/** Periodic snapshots at snapshotIntervalMs cadence
|
|
20364
|
-
*
|
|
20530
|
+
/** Periodic snapshots at snapshotIntervalMs cadence — DEBUG media, produced
|
|
20531
|
+
* only while `MediaSettings.debugMediaEnabled` is on for the camera (D299;
|
|
20532
|
+
* the retired `saveThumbnails` used to gate this and the rolling
|
|
20533
|
+
* `lastFrame` together). Empty is the healthy default, not a capture gap. */
|
|
20365
20534
|
snapshots: array(TrackSnapshotSchema).readonly(),
|
|
20366
20535
|
/** Deduplicated zones the track has entered at least once. Zone IDS. */
|
|
20367
20536
|
zonesVisited: array(string()).readonly(),
|
|
@@ -21221,7 +21390,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
21221
21390
|
}), method(RelocateMediaInputSchema, object({ jobId: string() }), {
|
|
21222
21391
|
kind: "mutation",
|
|
21223
21392
|
auth: "admin"
|
|
21224
|
-
}), method(object({}), UnstampedEventMediaCountSchema, { auth: "admin" }), method(
|
|
21393
|
+
}), method(object({}), UnstampedEventMediaCountSchema, { auth: "admin" }), method(RelocatableMediaCountInputSchema, RelocatableMediaCountSchema, {
|
|
21394
|
+
kind: "query",
|
|
21395
|
+
auth: "admin"
|
|
21396
|
+
}), method(object({}), array(RelocateJobSchema).readonly(), {
|
|
21225
21397
|
kind: "query",
|
|
21226
21398
|
auth: "admin"
|
|
21227
21399
|
}), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
@@ -23344,6 +23516,9 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
|
|
|
23344
23516
|
}), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
23345
23517
|
kind: "mutation",
|
|
23346
23518
|
auth: "admin"
|
|
23519
|
+
}), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
|
|
23520
|
+
kind: "mutation",
|
|
23521
|
+
auth: "admin"
|
|
23347
23522
|
});
|
|
23348
23523
|
var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
|
|
23349
23524
|
providerId: string().min(1),
|
|
@@ -23742,12 +23917,38 @@ response: record(string(), unknown()) }), object({
|
|
|
23742
23917
|
*
|
|
23743
23918
|
* ## Why this is a capability and not a helper
|
|
23744
23919
|
*
|
|
23745
|
-
*
|
|
23746
|
-
*
|
|
23747
|
-
*
|
|
23748
|
-
*
|
|
23749
|
-
*
|
|
23750
|
-
*
|
|
23920
|
+
* This capability was introduced with the claim that SIX stores in
|
|
23921
|
+
* `addon-post-analysis` held vectors in a `JSON` settings-store column — object
|
|
23922
|
+
* CLIP, face, plate, vehicle, identity, and the event store's derivatives. That
|
|
23923
|
+
* claim was never true, and leaving it here made five stores look like pending
|
|
23924
|
+
* work when three of them have no vector at all. Counted column by column on
|
|
23925
|
+
* 2026-08-30, exactly THREE ever held one:
|
|
23926
|
+
*
|
|
23927
|
+
* - `object-clip` — 512-dim CLIP image embedding, migrated 2026-08-06.
|
|
23928
|
+
* - `faces.embedding` — 512-dim ArcFace face embedding, migrated 2026-08-30.
|
|
23929
|
+
* - `identity-samples.embedding` — the same ArcFace vector for an ENROLLED
|
|
23930
|
+
* face, migrated 2026-08-30 into its OWN index (see below).
|
|
23931
|
+
*
|
|
23932
|
+
* `plates` and `vehicle-samples` store a plate STRING and a score; `vehicles`
|
|
23933
|
+
* and `identities` store a name; the event store stores no derivative vector.
|
|
23934
|
+
* They are not migration candidates and never were.
|
|
23935
|
+
*
|
|
23936
|
+
* Measured on the live hub the JSON encoding cost ~11.7 KB per row (512 floats
|
|
23937
|
+
* as TEXT, `JSON.parse`d on every search) and made semantic search load 5,000
|
|
23938
|
+
* rows before ranking anything.
|
|
23939
|
+
*
|
|
23940
|
+
* ## One index per COMPARISON, never per encoder
|
|
23941
|
+
*
|
|
23942
|
+
* `faces` and `identity-samples` hold the same 512 ArcFace dims from the same
|
|
23943
|
+
* model, and they still get two indexes. An index is a set of things that are
|
|
23944
|
+
* ranked against each other and that live and die together, and these two are
|
|
23945
|
+
* neither: a `faces` row is TRACK-OWNED and cascades away with its track under
|
|
23946
|
+
* a per-camera capacity cap, an `identity-samples` row is retention-EXEMPT
|
|
23947
|
+
* forever and is the gallery every recognition ranks against. One index would
|
|
23948
|
+
* mean every gallery load and every reconcile carried a filter whose failure
|
|
23949
|
+
* mode is either ranking a candidate against itself or reclaiming an enrolled
|
|
23950
|
+
* person's only sample. The dimension they share is not a reason to share an
|
|
23951
|
+
* index; the question they answer is, and it differs.
|
|
23751
23952
|
*
|
|
23752
23953
|
* The fix is not a faster loop, it is a different backend — and the backend
|
|
23753
23954
|
* should be replaceable without touching six callers. So: a singleton
|
|
@@ -23852,7 +24053,20 @@ var VectorQueryResultSchema = object({
|
|
|
23852
24053
|
*/
|
|
23853
24054
|
scanned: number(),
|
|
23854
24055
|
/** True when the backend could not consider every row that passed the filter. */
|
|
23855
|
-
truncated: boolean()
|
|
24056
|
+
truncated: boolean(),
|
|
24057
|
+
/**
|
|
24058
|
+
* The `topK` the backend actually ran with.
|
|
24059
|
+
*
|
|
24060
|
+
* Every backend has a ceiling — sqlite-vec's is 4,096 — and a caller asking
|
|
24061
|
+
* past it used to learn nothing but a boolean, from a WARN in the provider's
|
|
24062
|
+
* own log rather than in its answer. That is how an audit asking for 20,000
|
|
24063
|
+
* consumed 4,096 and reported `examined: 4096` as if it had walked the index,
|
|
24064
|
+
* for weeks. `truncated` says THAT the answer was short; this says BY HOW
|
|
24065
|
+
* MUCH, in the return value, where the caller cannot fail to see it.
|
|
24066
|
+
*
|
|
24067
|
+
* Equals the requested `topK` whenever nothing was lowered.
|
|
24068
|
+
*/
|
|
24069
|
+
effectiveTopK: number().int().positive()
|
|
23856
24070
|
});
|
|
23857
24071
|
var VectorDeleteInputSchema = object({
|
|
23858
24072
|
index: string(),
|
|
@@ -23881,6 +24095,68 @@ var VectorGetResultSchema = object({ items: array(object({
|
|
|
23881
24095
|
id: string(),
|
|
23882
24096
|
metadata: VectorMetadataSchema
|
|
23883
24097
|
})) });
|
|
24098
|
+
/**
|
|
24099
|
+
* Ids to read back WITH their vectors.
|
|
24100
|
+
*
|
|
24101
|
+
* The sibling of {@link VectorGetResultSchema}, and deliberately a separate
|
|
24102
|
+
* method rather than a flag on it: `getByIds` promises no vectors and its one
|
|
24103
|
+
* caller depends on that promise. This one promises the opposite.
|
|
24104
|
+
*
|
|
24105
|
+
* It exists because a store cannot put its vectors here otherwise. An ArcFace
|
|
24106
|
+
* gallery is ranked IN PROCESS, per detection, against every enrolled sample —
|
|
24107
|
+
* a per-face cross-process KNN would be a network round trip inside the
|
|
24108
|
+
* recognition loop. So the gallery is loaded once and held in RAM, and loading
|
|
24109
|
+
* it requires the index to hand the floats back. Without this method the only
|
|
24110
|
+
* way to keep a readable vector is a JSON column, which is the thing this
|
|
24111
|
+
* capability exists to delete.
|
|
24112
|
+
*
|
|
24113
|
+
* BOUNDED BY THE CALLER: ids are named, never "everything". Enumerating an
|
|
24114
|
+
* index is {@link VectorScanInputSchema}'s job, and it returns no vectors.
|
|
24115
|
+
*/
|
|
24116
|
+
var VectorFetchInputSchema = object({
|
|
24117
|
+
index: string(),
|
|
24118
|
+
ids: array(string())
|
|
24119
|
+
});
|
|
24120
|
+
var VectorFetchResultSchema = object({ items: array(object({
|
|
24121
|
+
id: string(),
|
|
24122
|
+
/** base64 Float32LE — the same wire form `upsert` accepts. */
|
|
24123
|
+
vector: string(),
|
|
24124
|
+
metadata: VectorMetadataSchema
|
|
24125
|
+
})) });
|
|
24126
|
+
/**
|
|
24127
|
+
* ENUMERATE an index: one page of rows in a stable order, no ranking.
|
|
24128
|
+
*
|
|
24129
|
+
* A reconcile does not want the nearest rows, it wants ALL of them, and asking
|
|
24130
|
+
* a KNN for "all" is the wrong question twice over. It hits the backend's `k`
|
|
24131
|
+
* ceiling — 4,096 on sqlite-vec against a 22,128-row index — and it needs a
|
|
24132
|
+
* probe vector it does not have, so the audit passed a ZERO vector whose cosine
|
|
24133
|
+
* distance to every row is degenerate. `examined: 4096` then read as "we
|
|
24134
|
+
* looked" for as long as anyone cared to read it.
|
|
24135
|
+
*
|
|
24136
|
+
* This is the primitive that question actually needs: a bounded page, ordered
|
|
24137
|
+
* by the backend's own row order, costing no distance computation at all.
|
|
24138
|
+
* Vectors are NOT returned — an enumeration that shipped 2 KB per row would be
|
|
24139
|
+
* the full-table read this capability was built to stop.
|
|
24140
|
+
*/
|
|
24141
|
+
var VectorScanInputSchema = object({
|
|
24142
|
+
index: string(),
|
|
24143
|
+
/** Opaque resume point. `0` starts at the top; pass back `nextCursor`. */
|
|
24144
|
+
cursor: number().int().nonnegative().default(0),
|
|
24145
|
+
limit: number().int().positive()
|
|
24146
|
+
});
|
|
24147
|
+
var VectorScanResultSchema = object({
|
|
24148
|
+
items: array(object({
|
|
24149
|
+
id: string(),
|
|
24150
|
+
metadata: VectorMetadataSchema
|
|
24151
|
+
})),
|
|
24152
|
+
/**
|
|
24153
|
+
* Where the next page starts, or `null` when the walk reached the end.
|
|
24154
|
+
*
|
|
24155
|
+
* `null` is the ONLY end-of-index signal. A caller must not infer the end
|
|
24156
|
+
* from a short page: a backend is free to return fewer rows than asked.
|
|
24157
|
+
*/
|
|
24158
|
+
nextCursor: number().int().nonnegative().nullable()
|
|
24159
|
+
});
|
|
23884
24160
|
var VectorStatsInputSchema = object({ index: string() });
|
|
23885
24161
|
var VectorStatsResultSchema = object({
|
|
23886
24162
|
/** Provider id, so an operator can tell brute force from an ANN index. */
|
|
@@ -23899,7 +24175,7 @@ method(VectorDeclareIndexInputSchema, _void(), {
|
|
|
23899
24175
|
}), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
|
|
23900
24176
|
kind: "mutation",
|
|
23901
24177
|
auth: "admin"
|
|
23902
|
-
}), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
|
|
24178
|
+
}), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorFetchInputSchema, VectorFetchResultSchema, { auth: "admin" }), method(VectorScanInputSchema, VectorScanResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
|
|
23903
24179
|
kind: "mutation",
|
|
23904
24180
|
auth: "admin"
|
|
23905
24181
|
}), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
|
|
@@ -29047,6 +29323,20 @@ var recordingCapability = {
|
|
|
29047
29323
|
kind: "query",
|
|
29048
29324
|
auth: "admin"
|
|
29049
29325
|
}),
|
|
29326
|
+
/**
|
|
29327
|
+
* What a location STILL holds, asked of the durable hour ledger.
|
|
29328
|
+
*
|
|
29329
|
+
* The number behind "drain remaining": segments and bytes that would still
|
|
29330
|
+
* have to move off `fromLocationId`. It is a ledger aggregate — the archive
|
|
29331
|
+
* — because the resident index is not the archive (D295), and a drain sized
|
|
29332
|
+
* off the index is exactly what reported `done` over 80.3 GB on 2026-08-29.
|
|
29333
|
+
* `null` means the archive could not be asked (no ledger on this node, or
|
|
29334
|
+
* the aggregate failed) and is never conflated with an empty source.
|
|
29335
|
+
*/
|
|
29336
|
+
getRelocateResidue: method(RelocateResidueInputSchema, RelocateResidueSchema, {
|
|
29337
|
+
kind: "query",
|
|
29338
|
+
auth: "admin"
|
|
29339
|
+
}),
|
|
29050
29340
|
/** Cancel a running or queued relocate job. A queued job never runs. */
|
|
29051
29341
|
cancelRelocateJob: method(object({ jobId: string() }), object({ cancelled: boolean() }), {
|
|
29052
29342
|
kind: "mutation",
|
|
@@ -34233,6 +34523,12 @@ Object.freeze({
|
|
|
34233
34523
|
addonId: null,
|
|
34234
34524
|
access: "create"
|
|
34235
34525
|
},
|
|
34526
|
+
"pipelineAnalytics.countRelocatableMedia": {
|
|
34527
|
+
capName: "pipeline-analytics",
|
|
34528
|
+
capScope: "device",
|
|
34529
|
+
addonId: null,
|
|
34530
|
+
access: "view"
|
|
34531
|
+
},
|
|
34236
34532
|
"pipelineAnalytics.countUnstampedEventMedia": {
|
|
34237
34533
|
capName: "pipeline-analytics",
|
|
34238
34534
|
capScope: "device",
|
|
@@ -35397,6 +35693,12 @@ Object.freeze({
|
|
|
35397
35693
|
addonId: null,
|
|
35398
35694
|
access: "view"
|
|
35399
35695
|
},
|
|
35696
|
+
"recording.getRelocateResidue": {
|
|
35697
|
+
capName: "recording",
|
|
35698
|
+
capScope: "system",
|
|
35699
|
+
addonId: null,
|
|
35700
|
+
access: "view"
|
|
35701
|
+
},
|
|
35400
35702
|
"recording.getStorageMigrationMoveStatus": {
|
|
35401
35703
|
capName: "recording",
|
|
35402
35704
|
capScope: "system",
|
|
@@ -35943,12 +36245,30 @@ Object.freeze({
|
|
|
35943
36245
|
addonId: null,
|
|
35944
36246
|
access: "create"
|
|
35945
36247
|
},
|
|
36248
|
+
"storageMigration.drain": {
|
|
36249
|
+
capName: "storage-migration",
|
|
36250
|
+
capScope: "system",
|
|
36251
|
+
addonId: null,
|
|
36252
|
+
access: "create"
|
|
36253
|
+
},
|
|
36254
|
+
"storageMigration.movers": {
|
|
36255
|
+
capName: "storage-migration",
|
|
36256
|
+
capScope: "system",
|
|
36257
|
+
addonId: null,
|
|
36258
|
+
access: "view"
|
|
36259
|
+
},
|
|
35946
36260
|
"storageMigration.plan": {
|
|
35947
36261
|
capName: "storage-migration",
|
|
35948
36262
|
capScope: "system",
|
|
35949
36263
|
addonId: null,
|
|
35950
36264
|
access: "view"
|
|
35951
36265
|
},
|
|
36266
|
+
"storageMigration.residue": {
|
|
36267
|
+
capName: "storage-migration",
|
|
36268
|
+
capScope: "system",
|
|
36269
|
+
addonId: null,
|
|
36270
|
+
access: "view"
|
|
36271
|
+
},
|
|
35952
36272
|
"storageMigration.start": {
|
|
35953
36273
|
capName: "storage-migration",
|
|
35954
36274
|
capScope: "system",
|
|
@@ -36783,6 +37103,12 @@ Object.freeze({
|
|
|
36783
37103
|
addonId: null,
|
|
36784
37104
|
access: "delete"
|
|
36785
37105
|
},
|
|
37106
|
+
"vectorStore.fetchByIds": {
|
|
37107
|
+
capName: "vector-store",
|
|
37108
|
+
capScope: "system",
|
|
37109
|
+
addonId: null,
|
|
37110
|
+
access: "view"
|
|
37111
|
+
},
|
|
36786
37112
|
"vectorStore.getByIds": {
|
|
36787
37113
|
capName: "vector-store",
|
|
36788
37114
|
capScope: "system",
|
|
@@ -36795,6 +37121,12 @@ Object.freeze({
|
|
|
36795
37121
|
addonId: null,
|
|
36796
37122
|
access: "view"
|
|
36797
37123
|
},
|
|
37124
|
+
"vectorStore.scan": {
|
|
37125
|
+
capName: "vector-store",
|
|
37126
|
+
capScope: "system",
|
|
37127
|
+
addonId: null,
|
|
37128
|
+
access: "view"
|
|
37129
|
+
},
|
|
36798
37130
|
"vectorStore.stats": {
|
|
36799
37131
|
capName: "vector-store",
|
|
36800
37132
|
capScope: "system",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as audioKindId, Z as hfModelUrl, a as COCO_80_LABELS, o as COCO_TO_MACRO, r as AUDIO_MACRO_LABELS } from "./dist-
|
|
1
|
+
import { M as audioKindId, Z as hfModelUrl, a as COCO_80_LABELS, o as COCO_TO_MACRO, r as AUDIO_MACRO_LABELS } from "./dist-BjzcUac4.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
//#region src/detection-pipeline/registry/model-catalogs.ts
|
|
4
4
|
var HF_REPO = "camstack/camstack-models";
|
|
@@ -2,8 +2,8 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
6
|
-
const require_lazy_sharp = require("../lazy-sharp-
|
|
5
|
+
const require_dist = require("../dist-hmG3nfuW.js");
|
|
6
|
+
const require_lazy_sharp = require("../lazy-sharp-RLE6klOt.js");
|
|
7
7
|
let node_fs = require("node:fs");
|
|
8
8
|
let node_path = require("node:path");
|
|
9
9
|
//#region src/motion-wasm/wasm-motion-detector.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { It as hydrateSchema, Pt as DeviceType, Y as evaluateZoneRules, it as motionDetectionCapability, jt as BaseAddon } from "../dist-
|
|
1
|
+
import { It as hydrateSchema, Pt as DeviceType, Y as evaluateZoneRules, it as motionDetectionCapability, jt as BaseAddon } from "../dist-BjzcUac4.mjs";
|
|
2
2
|
import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import { join } from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dt as buildFfmpegArgs, Et as Fmp4BoxSplitter, kt as isSoftwareDecode, wt as errMsg } from "./dist-
|
|
1
|
+
import { Dt as buildFfmpegArgs, Et as Fmp4BoxSplitter, kt as isSoftwareDecode, wt as errMsg } from "./dist-BjzcUac4.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import "node:fs";
|
|
4
4
|
import "node:path";
|
|
@@ -2,12 +2,12 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
6
|
-
const require_node = require("../node-
|
|
7
|
-
const require_local_frame_registry = require("../local-frame-registry-
|
|
8
|
-
const require_worker_protocol = require("../worker-protocol-
|
|
5
|
+
const require_dist = require("../dist-hmG3nfuW.js");
|
|
6
|
+
const require_node = require("../node-BwXwfrvA.js");
|
|
7
|
+
const require_local_frame_registry = require("../local-frame-registry-Ct2vQ7Dp.js");
|
|
8
|
+
const require_worker_protocol = require("../worker-protocol-DE_jjbFA.js");
|
|
9
9
|
const require_hub_hostname = require("../hub-hostname-DAJXlOgV.js");
|
|
10
|
-
const require_lazy_sharp = require("../lazy-sharp-
|
|
10
|
+
const require_lazy_sharp = require("../lazy-sharp-RLE6klOt.js");
|
|
11
11
|
const require_restream_intent = require("../restream-intent-Cv9x3jmu.js");
|
|
12
12
|
const require_event_loop_stall_monitor = require("../event-loop-stall-monitor-DaUBcb13.js");
|
|
13
13
|
const require_remote_restream = require("../remote-restream-CO36Sr30.js");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as defineCustomActions, Bt as nodePin, Ft as createEvent, Gt as _enum, H as deriveDetailCropRect, Kt as array, L as customAction, Qt as object, X as failureContributionCapability, Xt as literal, Yt as lazy, Zt as number, _ as FailureCounters, en as string, et as loadContributionCapability, ft as pipelineRunnerCapability, jt as BaseAddon, lt as pickDetailCropConvention, m as DEVICE_BACKEND_TO_FORMAT, nn as EventCategory, p as DEFAULT_NATIVE_LEASE_SETTINGS, qt as boolean, u as DEFAULT_DETAIL_CROP_CONVENTION, ut as pickNativeLeaseOverride, wt as errMsg } from "../dist-
|
|
2
|
-
import { i as NO_COST_CLAIM, t as ChildCostRegistry } from "../node-
|
|
3
|
-
import { c as getStepDefinition, n as resolveFrameViewGeometry, t as localFrameRegistry } from "../local-frame-registry-
|
|
4
|
-
import { a as nativeLeaseSettingEnv, t as isWorkerReply } from "../worker-protocol-
|
|
1
|
+
import { B as defineCustomActions, Bt as nodePin, Ft as createEvent, Gt as _enum, H as deriveDetailCropRect, Kt as array, L as customAction, Qt as object, X as failureContributionCapability, Xt as literal, Yt as lazy, Zt as number, _ as FailureCounters, en as string, et as loadContributionCapability, ft as pipelineRunnerCapability, jt as BaseAddon, lt as pickDetailCropConvention, m as DEVICE_BACKEND_TO_FORMAT, nn as EventCategory, p as DEFAULT_NATIVE_LEASE_SETTINGS, qt as boolean, u as DEFAULT_DETAIL_CROP_CONVENTION, ut as pickNativeLeaseOverride, wt as errMsg } from "../dist-BjzcUac4.mjs";
|
|
2
|
+
import { i as NO_COST_CLAIM, t as ChildCostRegistry } from "../node-U9fJ-bQN.mjs";
|
|
3
|
+
import { c as getStepDefinition, n as resolveFrameViewGeometry, t as localFrameRegistry } from "../local-frame-registry-BFaxbRtK.mjs";
|
|
4
|
+
import { a as nativeLeaseSettingEnv, t as isWorkerReply } from "../worker-protocol-BzlEZ56r.mjs";
|
|
5
5
|
import { t as resolveHubHostname } from "../hub-hostname-cCknRYKj.mjs";
|
|
6
6
|
import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
|
|
7
7
|
import { n as withDetectionIntent } from "../restream-intent-B4BXZra7.mjs";
|