@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.
Files changed (36) hide show
  1. package/dist/audio-analyzer/index.js +2 -2
  2. package/dist/audio-analyzer/index.mjs +2 -2
  3. package/dist/detection-pipeline/index.js +5 -5
  4. package/dist/detection-pipeline/index.mjs +4 -4
  5. package/dist/{dist-DjplinYP.mjs → dist-BjzcUac4.mjs} +344 -12
  6. package/dist/{dist-DLy_uz82.js → dist-hmG3nfuW.js} +344 -12
  7. package/dist/{lazy-sharp-BI4LsfMM.js → lazy-sharp-RLE6klOt.js} +1 -1
  8. package/dist/{local-frame-registry-77FL9ua_.mjs → local-frame-registry-BFaxbRtK.mjs} +1 -1
  9. package/dist/{local-frame-registry-Dr_U_xCG.js → local-frame-registry-Ct2vQ7Dp.js} +1 -1
  10. package/dist/motion-wasm/index.js +2 -2
  11. package/dist/motion-wasm/index.mjs +1 -1
  12. package/dist/{node-BHFLhfkh.js → node-BwXwfrvA.js} +1 -1
  13. package/dist/{node-D7uxWSXD.mjs → node-U9fJ-bQN.mjs} +1 -1
  14. package/dist/pipeline-runner/index.js +5 -5
  15. package/dist/pipeline-runner/index.mjs +4 -4
  16. package/dist/{process-memory-B2tApNua.mjs → process-memory-4WDUPavu.mjs} +1 -1
  17. package/dist/{process-memory-M8WiR3qj.js → process-memory-DR9jSxpX.js} +1 -1
  18. package/dist/recorder/index.js +7583 -6146
  19. package/dist/recorder/index.mjs +7583 -6146
  20. package/dist/{segment-demux-js-3niBZUpJ.mjs → segment-demux-js-kUN5AQVv.mjs} +1 -1
  21. package/dist/{segment-demux-js-Cc_If7C_.js → segment-demux-js-zqUNh3pj.js} +1 -1
  22. package/dist/session-decode/decode-worker-child.js +2 -2
  23. package/dist/session-decode/decode-worker-child.mjs +1 -1
  24. package/dist/stream-broker/_stub.js +2 -2
  25. 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
  26. 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
  27. 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
  28. package/dist/stream-broker/demux-worker-child.js +1 -1
  29. package/dist/stream-broker/demux-worker-child.mjs +1 -1
  30. package/dist/stream-broker/{hostInit-Dd2CEvDK.mjs → hostInit-CnUhcNPG.mjs} +3 -3
  31. package/dist/stream-broker/index.js +3 -3
  32. package/dist/stream-broker/index.mjs +3 -3
  33. package/dist/stream-broker/remoteEntry.js +1 -1
  34. package/dist/{worker-protocol-Cvln9GmS.mjs → worker-protocol-BzlEZ56r.mjs} +1 -1
  35. package/dist/{worker-protocol-basMNc_q.js → worker-protocol-DE_jjbFA.js} +1 -1
  36. package/package.json +1 -1
@@ -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-DLy_uz82.js");
6
- const require_process_memory = require("../process-memory-M8WiR3qj.js");
5
+ const require_dist = require("../dist-hmG3nfuW.js");
6
+ const require_process_memory = require("../process-memory-DR9jSxpX.js");
7
7
  let node_fs = require("node:fs");
8
8
  node_fs = require_dist.__toESM(node_fs);
9
9
  let node_path = require("node:path");
@@ -1,6 +1,6 @@
1
1
  import { n as __require } from "../chunk-DnnnRqeS.mjs";
2
- import { A as audioAnalysisCapability, It as hydrateSchema, S as PoolMemoryWatchdog, _t as resolvePoolMemoryPolicy, j as audioAnalyzerCapability, jt as BaseAddon, n as AUDIO_BACKEND_CHOICES, nt as mapAudioLabelToMacro, s as DEFAULT_AUDIO_ANALYZER_CONFIG, v as HF_BASE_URL, wt as errMsg } from "../dist-DjplinYP.mjs";
3
- import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-B2tApNua.mjs";
2
+ import { A as audioAnalysisCapability, It as hydrateSchema, S as PoolMemoryWatchdog, _t as resolvePoolMemoryPolicy, j as audioAnalyzerCapability, jt as BaseAddon, n as AUDIO_BACKEND_CHOICES, nt as mapAudioLabelToMacro, s as DEFAULT_AUDIO_ANALYZER_CONFIG, v as HF_BASE_URL, wt as errMsg } from "../dist-BjzcUac4.mjs";
3
+ import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-4WDUPavu.mjs";
4
4
  import * as fs from "node:fs";
5
5
  import * as path$1 from "node:path";
6
6
  import { downloadFile } from "@camstack/system/addon-utils";
@@ -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-DLy_uz82.js");
6
- const require_node = require("../node-BHFLhfkh.js");
7
- const require_local_frame_registry = require("../local-frame-registry-Dr_U_xCG.js");
8
- const require_lazy_sharp = require("../lazy-sharp-BI4LsfMM.js");
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_lazy_sharp = require("../lazy-sharp-RLE6klOt.js");
9
9
  const require_event_loop_stall_monitor = require("../event-loop-stall-monitor-DaUBcb13.js");
10
- const require_process_memory = require("../process-memory-M8WiR3qj.js");
10
+ const require_process_memory = require("../process-memory-DR9jSxpX.js");
11
11
  let node_fs = require("node:fs");
12
12
  node_fs = require_dist.__toESM(node_fs);
13
13
  let node_path = require("node:path");
@@ -1,10 +1,10 @@
1
1
  import { n as __require } from "../chunk-DnnnRqeS.mjs";
2
- import { Bt as nodePin, Ft as createEvent, It as hydrateSchema, Kt as array, O as YAMNET_TO_MACRO, Q as inferModelProvider, Qt as object, S as PoolMemoryWatchdog, St as supportedRuntimes$1, Vt as parseJsonUnknown, W as detectionPipelineCapability, Wt as sleep, Y as evaluateZoneRules, _t as resolvePoolMemoryPolicy, at as overlayClusterStepSettings, c as DEFAULT_CLUSTER_STEP_MODELS, ct as pickClusterStepSettings, dt as pipelineExecutorCapability, en as string, et as loadContributionCapability, ht as resolveClusterStepModelId, jt as BaseAddon, l as DEFAULT_CLUSTER_STEP_SETTINGS, m as DEVICE_BACKEND_TO_FORMAT, nn as EventCategory, q as enumerateInferenceDevices, st as pickClusterStepModels, t as APPLE_SA_TO_MACRO, tn as union, wt as errMsg, yt as runtimeDevices$1, z as defaultDeviceFor$1 } from "../dist-DjplinYP.mjs";
3
- import { a as readProcessCost } from "../node-D7uxWSXD.mjs";
4
- import { a as getDefaultModelForFormat, c as getStepDefinition, i as ALL_STEPS, l as resolveModelForFormat, o as getDefaultModelForFormatFromDef, r as ALL_PIPELINE_STEPS, s as getStep, t as localFrameRegistry, u as landmarkPrecisionVerdict } from "../local-frame-registry-77FL9ua_.mjs";
2
+ import { Bt as nodePin, Ft as createEvent, It as hydrateSchema, Kt as array, O as YAMNET_TO_MACRO, Q as inferModelProvider, Qt as object, S as PoolMemoryWatchdog, St as supportedRuntimes$1, Vt as parseJsonUnknown, W as detectionPipelineCapability, Wt as sleep, Y as evaluateZoneRules, _t as resolvePoolMemoryPolicy, at as overlayClusterStepSettings, c as DEFAULT_CLUSTER_STEP_MODELS, ct as pickClusterStepSettings, dt as pipelineExecutorCapability, en as string, et as loadContributionCapability, ht as resolveClusterStepModelId, jt as BaseAddon, l as DEFAULT_CLUSTER_STEP_SETTINGS, m as DEVICE_BACKEND_TO_FORMAT, nn as EventCategory, q as enumerateInferenceDevices, st as pickClusterStepModels, t as APPLE_SA_TO_MACRO, tn as union, wt as errMsg, yt as runtimeDevices$1, z as defaultDeviceFor$1 } from "../dist-BjzcUac4.mjs";
3
+ import { a as readProcessCost } from "../node-U9fJ-bQN.mjs";
4
+ import { a as getDefaultModelForFormat, c as getStepDefinition, i as ALL_STEPS, l as resolveModelForFormat, o as getDefaultModelForFormatFromDef, r as ALL_PIPELINE_STEPS, s as getStep, t as localFrameRegistry, u as landmarkPrecisionVerdict } from "../local-frame-registry-BFaxbRtK.mjs";
5
5
  import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
6
6
  import { n as startEventLoopStallMonitor } from "../event-loop-stall-monitor-DXLNBMkY.mjs";
7
- import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-B2tApNua.mjs";
7
+ import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-4WDUPavu.mjs";
8
8
  import * as fs from "node:fs";
9
9
  import * as path$1 from "node:path";
10
10
  import { spawn } from "node:child_process";
@@ -9476,13 +9476,49 @@ var StorageMigrationParticipantSchema = _enum([
9476
9476
  "recorder",
9477
9477
  "analytics"
9478
9478
  ]);
9479
+ /**
9480
+ * The mover's own numbers, folded onto the coordinator's durable move record.
9481
+ *
9482
+ * The long half of a non-blocking migration is `draining`, and it is measured
9483
+ * in hours: 136 885 files at ~4 MB/s is about five of them. Before this shape
9484
+ * existed the only place those numbers appeared was a Loki line, so an operator
9485
+ * watching the Admin UI saw `phase: draining` and nothing else for a whole
9486
+ * afternoon.
9487
+ *
9488
+ * It is POLLED, never pushed. Events are telemetry and may be dropped
9489
+ * (D8/D11), and a dropped progress event is indistinguishable from a stalled
9490
+ * mover — which is the exact failure this is meant to end. The coordinator's
9491
+ * `waitForMoves` already fetches the whole {@link RelocateJob} on every tick to
9492
+ * read `state`; folding the counters costs no extra read and makes the durable
9493
+ * record say afterwards how far a move actually got.
9494
+ *
9495
+ * `filesTotal` is `null` for "no honest denominator" and is never zero-filled:
9496
+ * a windowed footage job (`sinceMs`) and a node with no ledger both genuinely
9497
+ * cannot say M, and a 0 there would render as "100 % done".
9498
+ */
9499
+ var StorageMigrationMoveProgressSchema = object({
9500
+ filesMoved: number().int().nonnegative(),
9501
+ /** The archive census — the **M** of "N of M" (D295). `null` = unknowable. */
9502
+ filesTotal: number().int().nonnegative().nullable(),
9503
+ bytesMoved: number().int().nonnegative(),
9504
+ /** The MOVER's start, not the migration's: a drain restarted after an addon
9505
+ * crash gets a new mover, and a rate computed from the migration's start
9506
+ * would silently average in the time nothing was running. */
9507
+ startedAt: number(),
9508
+ /** When the coordinator last read these numbers. Paired with `startedAt` it
9509
+ * is the only honest rate: both clocks are the hub's, so a UI never has to
9510
+ * subtract its own. */
9511
+ observedAt: number()
9512
+ });
9479
9513
  var StorageMigrationMoveSchema = object({
9480
9514
  storageClass: StorageMigrationClassSchema,
9481
9515
  fromLocationId: string(),
9482
9516
  toLocationId: string(),
9483
9517
  moverJobId: string().nullable(),
9484
9518
  state: RelocateJobStateSchema.nullable(),
9485
- error: string().nullable()
9519
+ error: string().nullable(),
9520
+ /** Last observed mover counters; `null` until the mover has been polled once. */
9521
+ progress: StorageMigrationMoveProgressSchema.nullable()
9486
9522
  });
9487
9523
  var StorageMigrationJobSchema = object({
9488
9524
  jobId: string(),
@@ -9528,6 +9564,98 @@ var StorageMigrationPlanSchema = object({
9528
9564
  findings: array(StorageMigrationFindingSchema)
9529
9565
  });
9530
9566
  /**
9567
+ * A mover as it exists RIGHT NOW, whether or not a migration job owns it.
9568
+ *
9569
+ * The coordinator's job record is the state of record for a migration, and its
9570
+ * moves carry {@link StorageMigrationMoveProgress}. But the movers are usable
9571
+ * standalone — `recording.relocateFootage` and `pipelineAnalytics.relocateMedia`
9572
+ * are both operator-callable, and on 2026-08-29 a five-hour drain was armed that
9573
+ * way because no supported UI path existed. A mover armed like that has no job
9574
+ * to fold progress into, so it has to be readable on its own or it is invisible.
9575
+ *
9576
+ * `migrationJobId` is what tells the two apart: `null` means nothing here
9577
+ * orchestrated it.
9578
+ */
9579
+ var StorageMigrationMoverSchema = object({
9580
+ lane: _enum(["footage", "media"]),
9581
+ job: RelocateJobSchema,
9582
+ /** The coordinator job that armed this mover, or `null` for a mover armed
9583
+ * directly against the owning addon. */
9584
+ migrationJobId: string().nullable(),
9585
+ /** When the hub read these counters. Stamped here so a rate is `bytesMoved`
9586
+ * over (`observedAt` − `job.startedAt`) with BOTH ends on the hub's clock —
9587
+ * a browser subtracting its own `Date.now()` from a server `startedAt` is a
9588
+ * rate made of two different clocks. */
9589
+ observedAt: number()
9590
+ });
9591
+ /**
9592
+ * What a SOURCE still holds for one storage class — the number that makes a
9593
+ * "drain remaining" action honest rather than hopeful.
9594
+ *
9595
+ * It comes from the archive (`SegmentHourLedger.census` for footage, the media
9596
+ * engine's own selection count for media), never from the resident index: a
9597
+ * drain sized off `RecordingIndex` is what reported `done` over 80.3 GB it had
9598
+ * never been told about (D295).
9599
+ *
9600
+ * `items`/`bytes` are `null` for "the archive could not be asked", which is
9601
+ * deliberately NOT zero: a drain is still offered for an unknown residue,
9602
+ * because refusing on an unanswerable read would hide exactly the case an
9603
+ * operator needs to act on.
9604
+ */
9605
+ var StorageMigrationResidueSchema = object({
9606
+ storageClass: StorageMigrationClassSchema,
9607
+ /** The location still holding the data. `'*'` for the media lane, whose rows
9608
+ * move from wherever they are rather than from one named source. */
9609
+ fromLocationId: string(),
9610
+ /** Where a drain would move it — the class's CURRENT default. */
9611
+ toLocationId: string(),
9612
+ /** Segments (footage lane) or rows (media lane) still on the source. */
9613
+ items: number().int().nonnegative().nullable(),
9614
+ /** Bytes on the source; `null` when the lane counts rows rather than bytes. */
9615
+ bytes: number().int().nonnegative().nullable()
9616
+ });
9617
+ /**
9618
+ * Run the DRAIN half and nothing else.
9619
+ *
9620
+ * A migration that reached `done` has already repointed, so `start` correctly
9621
+ * refuses its destination ("already the default") — there is nothing left to
9622
+ * repoint. But the drain can fail, be cancelled, be interrupted by a restart,
9623
+ * or finish against a work list that was a tenth of the archive (D295), and
9624
+ * before this there was no supported way to run only that half: the only way
9625
+ * through was calling `recording.relocateFootage` by hand over admin tRPC.
9626
+ *
9627
+ * `drain` NEVER calls `setDefaultLocations`. That is what keeps `start`'s
9628
+ * refusal meaningful: the two verbs are disjoint, so nothing here can silently
9629
+ * re-repoint a class that is already migrated.
9630
+ */
9631
+ var StorageMigrationDrainInputSchema = object({
9632
+ /** The classes to drain. Each must appear in `storageMigration.residue`, so
9633
+ * a class whose source is already empty is refused rather than started. */
9634
+ classes: array(StorageMigrationClassSchema).min(1),
9635
+ throttleMbps: number().min(1).max(1e3).optional()
9636
+ });
9637
+ /** What a footage source still holds, asked of the durable hour ledger. */
9638
+ var RelocateResidueInputSchema = object({
9639
+ fromLocationId: string().min(1),
9640
+ /** Narrow to one logical class; omit for every profile on the location. */
9641
+ footageClass: RelocateFootageClassSchema.optional()
9642
+ });
9643
+ /** `null` = the archive could not answer (no ledger on this node, or the
9644
+ * aggregate failed). Never conflated with an empty source. */
9645
+ var RelocateResidueSchema = object({
9646
+ segments: number().int().nonnegative(),
9647
+ bytes: number().int().nonnegative()
9648
+ }).nullable();
9649
+ /** How many rows a media pass would still act on against a given target — the
9650
+ * media lane's denominator AND its residue, from ONE derivation so the two can
9651
+ * never disagree. `null` = the count could not be taken. */
9652
+ var RelocatableMediaCountSchema = object({ rows: number().int().nonnegative() }).nullable();
9653
+ var RelocatableMediaCountInputSchema = object({
9654
+ toLocationId: string().min(1),
9655
+ /** Omitted = `move`. */
9656
+ mode: MediaRelocateModeSchema.optional()
9657
+ });
9658
+ /**
9531
9659
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
9532
9660
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
9533
9661
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -9631,6 +9759,32 @@ var StorageLocationRefSchema = union([StorageLocationTypeSchema, string().regex(
9631
9759
  * two addons declaring the same `id` must agree on `cardinality` (validated
9632
9760
  * at kernel aggregation time, not here).
9633
9761
  */
9762
+ /**
9763
+ * `StorageAccess` — how the service that DECLARED a storage-location kind
9764
+ * actually reaches the bytes. It is the constraint that decides which
9765
+ * `storage-provider`s may back a location of that kind.
9766
+ *
9767
+ * - `'local-path'` — the service asks `storage.resolve` for a path string and
9768
+ * then does its own `node:fs` I/O on it (the recorder's segment writer, the
9769
+ * post-analysis media roots). Only a provider that serves a genuine local
9770
+ * filesystem (`getProviderInfo().nodeLocal === true`) can satisfy that: a
9771
+ * remote provider's `resolve` returns a path on the REMOTE host, and
9772
+ * `fs.readdir` of it on this node either fails or — far worse — succeeds
9773
+ * against a same-named local directory that is something else entirely.
9774
+ *
9775
+ * - `'cap-mediated'` — every byte travels through the `storage` cap
9776
+ * (`read`/`write`, or `beginUpload`/`writeChunk`/`finalizeUpload`). The
9777
+ * service never sees a path, so any provider can back it. `backups` is the
9778
+ * one kind that qualifies today.
9779
+ *
9780
+ * Before this existed, `recordings` was unreachable by SFTP/S3/WebDAV only as
9781
+ * an EMERGENT property of how the recorder happened to be written. Nothing
9782
+ * refused the configuration; the first write simply went somewhere wrong, and
9783
+ * a recording write that goes wrong surfaces as a silent black window rather
9784
+ * than an error (the read path does not `stat`). This turns that accident into
9785
+ * a declared, enforced, testable refusal.
9786
+ */
9787
+ var StorageAccessSchema = _enum(["local-path", "cap-mediated"]);
9634
9788
  var StorageLocationDeclarationSchema = object({
9635
9789
  /**
9636
9790
  * Global location identifier, e.g. `recordings` or `recordingsLow`.
@@ -9650,6 +9804,19 @@ var StorageLocationDeclarationSchema = object({
9650
9804
  */
9651
9805
  cardinality: _enum(["single", "multi"]),
9652
9806
  /**
9807
+ * HOW the declaring service reaches the bytes — and therefore WHICH
9808
+ * providers may back a location of this kind. See {@link StorageAccessSchema}
9809
+ * and {@link STORAGE_ACCESS_FALLBACK}.
9810
+ *
9811
+ * Absent means `'local-path'`. That default is FAIL-CLOSED on purpose: it
9812
+ * can only over-restrict (refuse a remote provider for a kind that might
9813
+ * have coped) and never under-restrict. Declaring `'cap-mediated'` is the
9814
+ * permissive direction and is therefore never inferred — a repo guard
9815
+ * (`scripts/check-storage-access-declarations.ts`) refuses to let it be
9816
+ * reached by omission.
9817
+ */
9818
+ access: StorageAccessSchema.optional(),
9819
+ /**
9653
9820
  * When set, the default instance for this location inherits its resolved
9654
9821
  * root from the named location's default instance. Useful for derivative
9655
9822
  * slots (e.g. `recordingsLow` → `recordings`) so operators only need to
@@ -20337,8 +20504,10 @@ var TrackSchema = object({
20337
20504
  lastSeen: number(),
20338
20505
  /** Frame-rate position history (subject to maxPositionHistory cap). */
20339
20506
  positions: array(TrackPositionSchema).readonly(),
20340
- /** Periodic snapshots at snapshotIntervalMs cadence (subject to
20341
- * saveThumbnails policy). */
20507
+ /** Periodic snapshots at snapshotIntervalMs cadence DEBUG media, produced
20508
+ * only while `MediaSettings.debugMediaEnabled` is on for the camera (D299;
20509
+ * the retired `saveThumbnails` used to gate this and the rolling
20510
+ * `lastFrame` together). Empty is the healthy default, not a capture gap. */
20342
20511
  snapshots: array(TrackSnapshotSchema).readonly(),
20343
20512
  /** Deduplicated zones the track has entered at least once. Zone IDS. */
20344
20513
  zonesVisited: array(string()).readonly(),
@@ -21198,7 +21367,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
21198
21367
  }), method(RelocateMediaInputSchema, object({ jobId: string() }), {
21199
21368
  kind: "mutation",
21200
21369
  auth: "admin"
21201
- }), method(object({}), UnstampedEventMediaCountSchema, { auth: "admin" }), method(object({}), array(RelocateJobSchema).readonly(), {
21370
+ }), method(object({}), UnstampedEventMediaCountSchema, { auth: "admin" }), method(RelocatableMediaCountInputSchema, RelocatableMediaCountSchema, {
21371
+ kind: "query",
21372
+ auth: "admin"
21373
+ }), method(object({}), array(RelocateJobSchema).readonly(), {
21202
21374
  kind: "query",
21203
21375
  auth: "admin"
21204
21376
  }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
@@ -23321,6 +23493,9 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
23321
23493
  }), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
23322
23494
  kind: "mutation",
23323
23495
  auth: "admin"
23496
+ }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
23497
+ kind: "mutation",
23498
+ auth: "admin"
23324
23499
  });
23325
23500
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
23326
23501
  providerId: string().min(1),
@@ -23719,12 +23894,38 @@ response: record(string(), unknown()) }), object({
23719
23894
  *
23720
23895
  * ## Why this is a capability and not a helper
23721
23896
  *
23722
- * Six stores in `addon-post-analysis` already hold vectors object CLIP, face,
23723
- * plate, vehicle, identity, and the event store's derivativesand every one of
23724
- * them keeps its vectors in a `JSON` settings-store column and ranks them by
23725
- * brute-force cosine in JS. Measured on the live hub that costs ~11.7 KB per row
23726
- * (512 floats as TEXT, `JSON.parse`d on every search) and made semantic search
23727
- * load 5,000 rows before ranking anything.
23897
+ * This capability was introduced with the claim that SIX stores in
23898
+ * `addon-post-analysis` held vectors in a `JSON` settings-store columnobject
23899
+ * CLIP, face, plate, vehicle, identity, and the event store's derivatives. That
23900
+ * claim was never true, and leaving it here made five stores look like pending
23901
+ * work when three of them have no vector at all. Counted column by column on
23902
+ * 2026-08-30, exactly THREE ever held one:
23903
+ *
23904
+ * - `object-clip` — 512-dim CLIP image embedding, migrated 2026-08-06.
23905
+ * - `faces.embedding` — 512-dim ArcFace face embedding, migrated 2026-08-30.
23906
+ * - `identity-samples.embedding` — the same ArcFace vector for an ENROLLED
23907
+ * face, migrated 2026-08-30 into its OWN index (see below).
23908
+ *
23909
+ * `plates` and `vehicle-samples` store a plate STRING and a score; `vehicles`
23910
+ * and `identities` store a name; the event store stores no derivative vector.
23911
+ * They are not migration candidates and never were.
23912
+ *
23913
+ * Measured on the live hub the JSON encoding cost ~11.7 KB per row (512 floats
23914
+ * as TEXT, `JSON.parse`d on every search) and made semantic search load 5,000
23915
+ * rows before ranking anything.
23916
+ *
23917
+ * ## One index per COMPARISON, never per encoder
23918
+ *
23919
+ * `faces` and `identity-samples` hold the same 512 ArcFace dims from the same
23920
+ * model, and they still get two indexes. An index is a set of things that are
23921
+ * ranked against each other and that live and die together, and these two are
23922
+ * neither: a `faces` row is TRACK-OWNED and cascades away with its track under
23923
+ * a per-camera capacity cap, an `identity-samples` row is retention-EXEMPT
23924
+ * forever and is the gallery every recognition ranks against. One index would
23925
+ * mean every gallery load and every reconcile carried a filter whose failure
23926
+ * mode is either ranking a candidate against itself or reclaiming an enrolled
23927
+ * person's only sample. The dimension they share is not a reason to share an
23928
+ * index; the question they answer is, and it differs.
23728
23929
  *
23729
23930
  * The fix is not a faster loop, it is a different backend — and the backend
23730
23931
  * should be replaceable without touching six callers. So: a singleton
@@ -23829,7 +24030,20 @@ var VectorQueryResultSchema = object({
23829
24030
  */
23830
24031
  scanned: number(),
23831
24032
  /** True when the backend could not consider every row that passed the filter. */
23832
- truncated: boolean()
24033
+ truncated: boolean(),
24034
+ /**
24035
+ * The `topK` the backend actually ran with.
24036
+ *
24037
+ * Every backend has a ceiling — sqlite-vec's is 4,096 — and a caller asking
24038
+ * past it used to learn nothing but a boolean, from a WARN in the provider's
24039
+ * own log rather than in its answer. That is how an audit asking for 20,000
24040
+ * consumed 4,096 and reported `examined: 4096` as if it had walked the index,
24041
+ * for weeks. `truncated` says THAT the answer was short; this says BY HOW
24042
+ * MUCH, in the return value, where the caller cannot fail to see it.
24043
+ *
24044
+ * Equals the requested `topK` whenever nothing was lowered.
24045
+ */
24046
+ effectiveTopK: number().int().positive()
23833
24047
  });
23834
24048
  var VectorDeleteInputSchema = object({
23835
24049
  index: string(),
@@ -23858,6 +24072,68 @@ var VectorGetResultSchema = object({ items: array(object({
23858
24072
  id: string(),
23859
24073
  metadata: VectorMetadataSchema
23860
24074
  })) });
24075
+ /**
24076
+ * Ids to read back WITH their vectors.
24077
+ *
24078
+ * The sibling of {@link VectorGetResultSchema}, and deliberately a separate
24079
+ * method rather than a flag on it: `getByIds` promises no vectors and its one
24080
+ * caller depends on that promise. This one promises the opposite.
24081
+ *
24082
+ * It exists because a store cannot put its vectors here otherwise. An ArcFace
24083
+ * gallery is ranked IN PROCESS, per detection, against every enrolled sample —
24084
+ * a per-face cross-process KNN would be a network round trip inside the
24085
+ * recognition loop. So the gallery is loaded once and held in RAM, and loading
24086
+ * it requires the index to hand the floats back. Without this method the only
24087
+ * way to keep a readable vector is a JSON column, which is the thing this
24088
+ * capability exists to delete.
24089
+ *
24090
+ * BOUNDED BY THE CALLER: ids are named, never "everything". Enumerating an
24091
+ * index is {@link VectorScanInputSchema}'s job, and it returns no vectors.
24092
+ */
24093
+ var VectorFetchInputSchema = object({
24094
+ index: string(),
24095
+ ids: array(string())
24096
+ });
24097
+ var VectorFetchResultSchema = object({ items: array(object({
24098
+ id: string(),
24099
+ /** base64 Float32LE — the same wire form `upsert` accepts. */
24100
+ vector: string(),
24101
+ metadata: VectorMetadataSchema
24102
+ })) });
24103
+ /**
24104
+ * ENUMERATE an index: one page of rows in a stable order, no ranking.
24105
+ *
24106
+ * A reconcile does not want the nearest rows, it wants ALL of them, and asking
24107
+ * a KNN for "all" is the wrong question twice over. It hits the backend's `k`
24108
+ * ceiling — 4,096 on sqlite-vec against a 22,128-row index — and it needs a
24109
+ * probe vector it does not have, so the audit passed a ZERO vector whose cosine
24110
+ * distance to every row is degenerate. `examined: 4096` then read as "we
24111
+ * looked" for as long as anyone cared to read it.
24112
+ *
24113
+ * This is the primitive that question actually needs: a bounded page, ordered
24114
+ * by the backend's own row order, costing no distance computation at all.
24115
+ * Vectors are NOT returned — an enumeration that shipped 2 KB per row would be
24116
+ * the full-table read this capability was built to stop.
24117
+ */
24118
+ var VectorScanInputSchema = object({
24119
+ index: string(),
24120
+ /** Opaque resume point. `0` starts at the top; pass back `nextCursor`. */
24121
+ cursor: number().int().nonnegative().default(0),
24122
+ limit: number().int().positive()
24123
+ });
24124
+ var VectorScanResultSchema = object({
24125
+ items: array(object({
24126
+ id: string(),
24127
+ metadata: VectorMetadataSchema
24128
+ })),
24129
+ /**
24130
+ * Where the next page starts, or `null` when the walk reached the end.
24131
+ *
24132
+ * `null` is the ONLY end-of-index signal. A caller must not infer the end
24133
+ * from a short page: a backend is free to return fewer rows than asked.
24134
+ */
24135
+ nextCursor: number().int().nonnegative().nullable()
24136
+ });
23861
24137
  var VectorStatsInputSchema = object({ index: string() });
23862
24138
  var VectorStatsResultSchema = object({
23863
24139
  /** Provider id, so an operator can tell brute force from an ANN index. */
@@ -23876,7 +24152,7 @@ method(VectorDeclareIndexInputSchema, _void(), {
23876
24152
  }), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
23877
24153
  kind: "mutation",
23878
24154
  auth: "admin"
23879
- }), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
24155
+ }), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorFetchInputSchema, VectorFetchResultSchema, { auth: "admin" }), method(VectorScanInputSchema, VectorScanResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
23880
24156
  kind: "mutation",
23881
24157
  auth: "admin"
23882
24158
  }), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
@@ -29024,6 +29300,20 @@ var recordingCapability = {
29024
29300
  kind: "query",
29025
29301
  auth: "admin"
29026
29302
  }),
29303
+ /**
29304
+ * What a location STILL holds, asked of the durable hour ledger.
29305
+ *
29306
+ * The number behind "drain remaining": segments and bytes that would still
29307
+ * have to move off `fromLocationId`. It is a ledger aggregate — the archive
29308
+ * — because the resident index is not the archive (D295), and a drain sized
29309
+ * off the index is exactly what reported `done` over 80.3 GB on 2026-08-29.
29310
+ * `null` means the archive could not be asked (no ledger on this node, or
29311
+ * the aggregate failed) and is never conflated with an empty source.
29312
+ */
29313
+ getRelocateResidue: method(RelocateResidueInputSchema, RelocateResidueSchema, {
29314
+ kind: "query",
29315
+ auth: "admin"
29316
+ }),
29027
29317
  /** Cancel a running or queued relocate job. A queued job never runs. */
29028
29318
  cancelRelocateJob: method(object({ jobId: string() }), object({ cancelled: boolean() }), {
29029
29319
  kind: "mutation",
@@ -34210,6 +34500,12 @@ Object.freeze({
34210
34500
  addonId: null,
34211
34501
  access: "create"
34212
34502
  },
34503
+ "pipelineAnalytics.countRelocatableMedia": {
34504
+ capName: "pipeline-analytics",
34505
+ capScope: "device",
34506
+ addonId: null,
34507
+ access: "view"
34508
+ },
34213
34509
  "pipelineAnalytics.countUnstampedEventMedia": {
34214
34510
  capName: "pipeline-analytics",
34215
34511
  capScope: "device",
@@ -35374,6 +35670,12 @@ Object.freeze({
35374
35670
  addonId: null,
35375
35671
  access: "view"
35376
35672
  },
35673
+ "recording.getRelocateResidue": {
35674
+ capName: "recording",
35675
+ capScope: "system",
35676
+ addonId: null,
35677
+ access: "view"
35678
+ },
35377
35679
  "recording.getStorageMigrationMoveStatus": {
35378
35680
  capName: "recording",
35379
35681
  capScope: "system",
@@ -35920,12 +36222,30 @@ Object.freeze({
35920
36222
  addonId: null,
35921
36223
  access: "create"
35922
36224
  },
36225
+ "storageMigration.drain": {
36226
+ capName: "storage-migration",
36227
+ capScope: "system",
36228
+ addonId: null,
36229
+ access: "create"
36230
+ },
36231
+ "storageMigration.movers": {
36232
+ capName: "storage-migration",
36233
+ capScope: "system",
36234
+ addonId: null,
36235
+ access: "view"
36236
+ },
35923
36237
  "storageMigration.plan": {
35924
36238
  capName: "storage-migration",
35925
36239
  capScope: "system",
35926
36240
  addonId: null,
35927
36241
  access: "view"
35928
36242
  },
36243
+ "storageMigration.residue": {
36244
+ capName: "storage-migration",
36245
+ capScope: "system",
36246
+ addonId: null,
36247
+ access: "view"
36248
+ },
35929
36249
  "storageMigration.start": {
35930
36250
  capName: "storage-migration",
35931
36251
  capScope: "system",
@@ -36760,6 +37080,12 @@ Object.freeze({
36760
37080
  addonId: null,
36761
37081
  access: "delete"
36762
37082
  },
37083
+ "vectorStore.fetchByIds": {
37084
+ capName: "vector-store",
37085
+ capScope: "system",
37086
+ addonId: null,
37087
+ access: "view"
37088
+ },
36763
37089
  "vectorStore.getByIds": {
36764
37090
  capName: "vector-store",
36765
37091
  capScope: "system",
@@ -36772,6 +37098,12 @@ Object.freeze({
36772
37098
  addonId: null,
36773
37099
  access: "view"
36774
37100
  },
37101
+ "vectorStore.scan": {
37102
+ capName: "vector-store",
37103
+ capScope: "system",
37104
+ addonId: null,
37105
+ access: "view"
37106
+ },
36775
37107
  "vectorStore.stats": {
36776
37108
  capName: "vector-store",
36777
37109
  capScope: "system",