@camstack/addon-model-studio 1.1.60 → 1.1.63

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 (17) hide show
  1. package/dist/{MotionZonesSettings-Bd4XXu93.mjs → MotionZonesSettings-B_OmCAXn.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-u5iEsuzJ.mjs → PrivacyMaskSettings-rewJAGm0.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-HzwpY3Jf.mjs → SceneMonitorEditor-BY4tJte_.mjs} +3 -3
  4. package/dist/_stub.js +10 -10
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-CegGwSfe.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-BUHSjtFq.mjs} +4 -4
  6. package/dist/{_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DLxM_aHR.mjs → _virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-D0yi4BW4.mjs} +1 -1
  7. package/dist/{hostInit-DyZ75O1o.mjs → hostInit-BqDhrCXu.mjs} +3 -3
  8. package/dist/model-studio.addon.js +387 -19
  9. package/dist/model-studio.addon.mjs +387 -19
  10. package/dist/{player-overlays-DBw7cP5Q.mjs → player-overlays-DN9nqGXk.mjs} +1 -1
  11. package/dist/remoteEntry.js +1 -1
  12. package/dist/{responsive-BYjuH3Vm.mjs → responsive-DdrSu5QF.mjs} +1 -1
  13. package/dist/{square-DdqOJGrs.mjs → square-BVmTlLTE.mjs} +1 -1
  14. package/dist/{trash-2-4d9LA9Gd.mjs → trash-2-BxEQ66D3.mjs} +1 -1
  15. package/dist/{use-device-snapshot-CmiKvu6l.mjs → use-device-snapshot-CbpsFwcI.mjs} +1 -1
  16. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CI68GRdZ.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CQ_gHSHU.mjs} +1 -1
  17. package/package.json +1 -1
@@ -8549,6 +8549,21 @@ var RelocateJobSchema = object({
8549
8549
  bytesMoved: number().int(),
8550
8550
  /** Total files discovered up front; null while (or when) unknown. */
8551
8551
  filesTotal: number().int().nullable(),
8552
+ /**
8553
+ * Rows this run CORRECTED while moving them — a durable mutation the move
8554
+ * made that nobody asked for, so it is reported where the operator reads the
8555
+ * job rather than only in a log line.
8556
+ *
8557
+ * A footage segment records its byte count in its own NAME, and the durable
8558
+ * hour row derives its aggregates from those names. A file that does not
8559
+ * match its name therefore makes the ledger's sums — and with them quota and
8560
+ * pressure eviction — wrong by the difference, and only a rename can fix it.
8561
+ * On 2026-08-30 one such row also stalled a 110 749-file drain permanently.
8562
+ *
8563
+ * Absent on lanes where the question has no meaning: a media blob's size is
8564
+ * in its row, not in its name, so `MediaRelocateEngine` never reconciles one.
8565
+ */
8566
+ rowsReconciled: number().int().nonnegative().optional(),
8552
8567
  startedAt: number(),
8553
8568
  finishedAt: number().nullable(),
8554
8569
  error: string().nullable()
@@ -8617,14 +8632,42 @@ var RelocateMediaInputSchema = object({
8617
8632
  /** Omitted = `move`, the pre-existing behaviour. */
8618
8633
  mode: MediaRelocateModeSchema.optional()
8619
8634
  });
8620
- /** How many rows still carry NO `locationId` — the population a repoint would
8621
- * silently re-aim at a disk that does not hold their bytes. Zero is the only
8622
- * value that permits a non-blocking `eventMedia` cutover. */
8623
- var UnstampedEventMediaCountSchema = object({
8624
- media: number().int().nonnegative(),
8625
- retrainFrames: number().int().nonnegative(),
8626
- total: number().int().nonnegative()
8635
+ /**
8636
+ * The unstamped population of ONE collection split, because the gate and the
8637
+ * operator ask two different questions and only one of them has to be cheap.
8638
+ *
8639
+ * `present` is the GATE: "is there at least one row that would be orphaned by a
8640
+ * repoint". It is a single indexed seek to the first matching row, so it stays
8641
+ * answerable on a saturated disk and answers in O(log n) precisely in the state
8642
+ * that matters — after a seal, when the population is empty.
8643
+ *
8644
+ * `rows` is the NUMBER, for the refusal message and the operator's sense of
8645
+ * scale. It is a second, indexed `COUNT(*)`, and `null` means **not
8646
+ * measurable** — never zero. `{ present: true, rows: null }` is a legitimate
8647
+ * and useful answer: "there are some, and this read could not say how many"
8648
+ * still refuses the cutover, which is the whole job.
8649
+ */
8650
+ var UnstampedRowsSchema = object({
8651
+ present: boolean(),
8652
+ rows: number().int().nonnegative().nullable()
8627
8653
  });
8654
+ /**
8655
+ * How many rows still carry NO `locationId` — the population a repoint would
8656
+ * silently re-aim at a disk that does not hold their bytes.
8657
+ *
8658
+ * **`null` = the count could not be taken**, and it is NOT permission to cut
8659
+ * over. The gate opens on a measured absence and on nothing else; an unread
8660
+ * collection and an empty one are different facts, and this repo has already
8661
+ * paid for conflating them (`RelocateResidueSchema`, D295).
8662
+ */
8663
+ var UnstampedEventMediaCountSchema = object({
8664
+ media: UnstampedRowsSchema,
8665
+ retrainFrames: UnstampedRowsSchema,
8666
+ /** True when EITHER collection holds one. The refusal reads this. */
8667
+ anyPresent: boolean(),
8668
+ /** Sum across both, or `null` when either lane could not be counted. */
8669
+ total: number().int().nonnegative().nullable()
8670
+ }).nullable();
8628
8671
  var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: string().min(1) });
8629
8672
  /** The independently selectable logical storage classes — every class
8630
8673
  * `storage.listLocationDeclarations` reports, so an operator never meets a
@@ -8710,13 +8753,53 @@ var StorageMigrationParticipantSchema = _enum([
8710
8753
  "recorder",
8711
8754
  "analytics"
8712
8755
  ]);
8756
+ /**
8757
+ * The mover's own numbers, folded onto the coordinator's durable move record.
8758
+ *
8759
+ * The long half of a non-blocking migration is `draining`, and it is measured
8760
+ * in hours: 136 885 files at ~4 MB/s is about five of them. Before this shape
8761
+ * existed the only place those numbers appeared was a Loki line, so an operator
8762
+ * watching the Admin UI saw `phase: draining` and nothing else for a whole
8763
+ * afternoon.
8764
+ *
8765
+ * It is POLLED, never pushed. Events are telemetry and may be dropped
8766
+ * (D8/D11), and a dropped progress event is indistinguishable from a stalled
8767
+ * mover — which is the exact failure this is meant to end. The coordinator's
8768
+ * `waitForMoves` already fetches the whole {@link RelocateJob} on every tick to
8769
+ * read `state`; folding the counters costs no extra read and makes the durable
8770
+ * record say afterwards how far a move actually got.
8771
+ *
8772
+ * `filesTotal` is `null` for "no honest denominator" and is never zero-filled:
8773
+ * a windowed footage job (`sinceMs`) and a node with no ledger both genuinely
8774
+ * cannot say M, and a 0 there would render as "100 % done".
8775
+ */
8776
+ var StorageMigrationMoveProgressSchema = object({
8777
+ filesMoved: number().int().nonnegative(),
8778
+ /** The archive census — the **M** of "N of M" (D295). `null` = unknowable. */
8779
+ filesTotal: number().int().nonnegative().nullable(),
8780
+ bytesMoved: number().int().nonnegative(),
8781
+ /** Rows the mover corrected while moving them — see `RelocateJob`. Absent on
8782
+ * a lane that cannot reconcile. A migration that silently rewrote durable
8783
+ * rows would be the same failure as one that silently skipped them. */
8784
+ rowsReconciled: number().int().nonnegative().optional(),
8785
+ /** The MOVER's start, not the migration's: a drain restarted after an addon
8786
+ * crash gets a new mover, and a rate computed from the migration's start
8787
+ * would silently average in the time nothing was running. */
8788
+ startedAt: number(),
8789
+ /** When the coordinator last read these numbers. Paired with `startedAt` it
8790
+ * is the only honest rate: both clocks are the hub's, so a UI never has to
8791
+ * subtract its own. */
8792
+ observedAt: number()
8793
+ });
8713
8794
  var StorageMigrationMoveSchema = object({
8714
8795
  storageClass: StorageMigrationClassSchema,
8715
8796
  fromLocationId: string(),
8716
8797
  toLocationId: string(),
8717
8798
  moverJobId: string().nullable(),
8718
8799
  state: RelocateJobStateSchema.nullable(),
8719
- error: string().nullable()
8800
+ error: string().nullable(),
8801
+ /** Last observed mover counters; `null` until the mover has been polled once. */
8802
+ progress: StorageMigrationMoveProgressSchema.nullable()
8720
8803
  });
8721
8804
  var StorageMigrationJobSchema = object({
8722
8805
  jobId: string(),
@@ -8762,6 +8845,98 @@ var StorageMigrationPlanSchema = object({
8762
8845
  findings: array(StorageMigrationFindingSchema)
8763
8846
  });
8764
8847
  /**
8848
+ * A mover as it exists RIGHT NOW, whether or not a migration job owns it.
8849
+ *
8850
+ * The coordinator's job record is the state of record for a migration, and its
8851
+ * moves carry {@link StorageMigrationMoveProgress}. But the movers are usable
8852
+ * standalone — `recording.relocateFootage` and `pipelineAnalytics.relocateMedia`
8853
+ * are both operator-callable, and on 2026-08-29 a five-hour drain was armed that
8854
+ * way because no supported UI path existed. A mover armed like that has no job
8855
+ * to fold progress into, so it has to be readable on its own or it is invisible.
8856
+ *
8857
+ * `migrationJobId` is what tells the two apart: `null` means nothing here
8858
+ * orchestrated it.
8859
+ */
8860
+ var StorageMigrationMoverSchema = object({
8861
+ lane: _enum(["footage", "media"]),
8862
+ job: RelocateJobSchema,
8863
+ /** The coordinator job that armed this mover, or `null` for a mover armed
8864
+ * directly against the owning addon. */
8865
+ migrationJobId: string().nullable(),
8866
+ /** When the hub read these counters. Stamped here so a rate is `bytesMoved`
8867
+ * over (`observedAt` − `job.startedAt`) with BOTH ends on the hub's clock —
8868
+ * a browser subtracting its own `Date.now()` from a server `startedAt` is a
8869
+ * rate made of two different clocks. */
8870
+ observedAt: number()
8871
+ });
8872
+ /**
8873
+ * What a SOURCE still holds for one storage class — the number that makes a
8874
+ * "drain remaining" action honest rather than hopeful.
8875
+ *
8876
+ * It comes from the archive (`SegmentHourLedger.census` for footage, the media
8877
+ * engine's own selection count for media), never from the resident index: a
8878
+ * drain sized off `RecordingIndex` is what reported `done` over 80.3 GB it had
8879
+ * never been told about (D295).
8880
+ *
8881
+ * `items`/`bytes` are `null` for "the archive could not be asked", which is
8882
+ * deliberately NOT zero: a drain is still offered for an unknown residue,
8883
+ * because refusing on an unanswerable read would hide exactly the case an
8884
+ * operator needs to act on.
8885
+ */
8886
+ var StorageMigrationResidueSchema = object({
8887
+ storageClass: StorageMigrationClassSchema,
8888
+ /** The location still holding the data. `'*'` for the media lane, whose rows
8889
+ * move from wherever they are rather than from one named source. */
8890
+ fromLocationId: string(),
8891
+ /** Where a drain would move it — the class's CURRENT default. */
8892
+ toLocationId: string(),
8893
+ /** Segments (footage lane) or rows (media lane) still on the source. */
8894
+ items: number().int().nonnegative().nullable(),
8895
+ /** Bytes on the source; `null` when the lane counts rows rather than bytes. */
8896
+ bytes: number().int().nonnegative().nullable()
8897
+ });
8898
+ /**
8899
+ * Run the DRAIN half and nothing else.
8900
+ *
8901
+ * A migration that reached `done` has already repointed, so `start` correctly
8902
+ * refuses its destination ("already the default") — there is nothing left to
8903
+ * repoint. But the drain can fail, be cancelled, be interrupted by a restart,
8904
+ * or finish against a work list that was a tenth of the archive (D295), and
8905
+ * before this there was no supported way to run only that half: the only way
8906
+ * through was calling `recording.relocateFootage` by hand over admin tRPC.
8907
+ *
8908
+ * `drain` NEVER calls `setDefaultLocations`. That is what keeps `start`'s
8909
+ * refusal meaningful: the two verbs are disjoint, so nothing here can silently
8910
+ * re-repoint a class that is already migrated.
8911
+ */
8912
+ var StorageMigrationDrainInputSchema = object({
8913
+ /** The classes to drain. Each must appear in `storageMigration.residue`, so
8914
+ * a class whose source is already empty is refused rather than started. */
8915
+ classes: array(StorageMigrationClassSchema).min(1),
8916
+ throttleMbps: number().min(1).max(1e3).optional()
8917
+ });
8918
+ /** What a footage source still holds, asked of the durable hour ledger. */
8919
+ var RelocateResidueInputSchema = object({
8920
+ fromLocationId: string().min(1),
8921
+ /** Narrow to one logical class; omit for every profile on the location. */
8922
+ footageClass: RelocateFootageClassSchema.optional()
8923
+ });
8924
+ /** `null` = the archive could not answer (no ledger on this node, or the
8925
+ * aggregate failed). Never conflated with an empty source. */
8926
+ var RelocateResidueSchema = object({
8927
+ segments: number().int().nonnegative(),
8928
+ bytes: number().int().nonnegative()
8929
+ }).nullable();
8930
+ /** How many rows a media pass would still act on against a given target — the
8931
+ * media lane's denominator AND its residue, from ONE derivation so the two can
8932
+ * never disagree. `null` = the count could not be taken. */
8933
+ var RelocatableMediaCountSchema = object({ rows: number().int().nonnegative() }).nullable();
8934
+ var RelocatableMediaCountInputSchema = object({
8935
+ toLocationId: string().min(1),
8936
+ /** Omitted = `move`. */
8937
+ mode: MediaRelocateModeSchema.optional()
8938
+ });
8939
+ /**
8765
8940
  * `StorageLocationType` — an addon-declared id that identifies the *kind* of
8766
8941
  * storage a location serves. Defined here (not in `capabilities/storage.cap.ts`)
8767
8942
  * so the persisted record schema and the consumer-facing cap can both consume it
@@ -8865,6 +9040,32 @@ var StorageLocationRefSchema = union([StorageLocationTypeSchema, string().regex(
8865
9040
  * two addons declaring the same `id` must agree on `cardinality` (validated
8866
9041
  * at kernel aggregation time, not here).
8867
9042
  */
9043
+ /**
9044
+ * `StorageAccess` — how the service that DECLARED a storage-location kind
9045
+ * actually reaches the bytes. It is the constraint that decides which
9046
+ * `storage-provider`s may back a location of that kind.
9047
+ *
9048
+ * - `'local-path'` — the service asks `storage.resolve` for a path string and
9049
+ * then does its own `node:fs` I/O on it (the recorder's segment writer, the
9050
+ * post-analysis media roots). Only a provider that serves a genuine local
9051
+ * filesystem (`getProviderInfo().nodeLocal === true`) can satisfy that: a
9052
+ * remote provider's `resolve` returns a path on the REMOTE host, and
9053
+ * `fs.readdir` of it on this node either fails or — far worse — succeeds
9054
+ * against a same-named local directory that is something else entirely.
9055
+ *
9056
+ * - `'cap-mediated'` — every byte travels through the `storage` cap
9057
+ * (`read`/`write`, or `beginUpload`/`writeChunk`/`finalizeUpload`). The
9058
+ * service never sees a path, so any provider can back it. `backups` is the
9059
+ * one kind that qualifies today.
9060
+ *
9061
+ * Before this existed, `recordings` was unreachable by SFTP/S3/WebDAV only as
9062
+ * an EMERGENT property of how the recorder happened to be written. Nothing
9063
+ * refused the configuration; the first write simply went somewhere wrong, and
9064
+ * a recording write that goes wrong surfaces as a silent black window rather
9065
+ * than an error (the read path does not `stat`). This turns that accident into
9066
+ * a declared, enforced, testable refusal.
9067
+ */
9068
+ var StorageAccessSchema = _enum(["local-path", "cap-mediated"]);
8868
9069
  var StorageLocationDeclarationSchema = object({
8869
9070
  /**
8870
9071
  * Global location identifier, e.g. `recordings` or `recordingsLow`.
@@ -8884,6 +9085,19 @@ var StorageLocationDeclarationSchema = object({
8884
9085
  */
8885
9086
  cardinality: _enum(["single", "multi"]),
8886
9087
  /**
9088
+ * HOW the declaring service reaches the bytes — and therefore WHICH
9089
+ * providers may back a location of this kind. See {@link StorageAccessSchema}
9090
+ * and {@link STORAGE_ACCESS_FALLBACK}.
9091
+ *
9092
+ * Absent means `'local-path'`. That default is FAIL-CLOSED on purpose: it
9093
+ * can only over-restrict (refuse a remote provider for a kind that might
9094
+ * have coped) and never under-restrict. Declaring `'cap-mediated'` is the
9095
+ * permissive direction and is therefore never inferred — a repo guard
9096
+ * (`scripts/check-storage-access-declarations.ts`) refuses to let it be
9097
+ * reached by omission.
9098
+ */
9099
+ access: StorageAccessSchema.optional(),
9100
+ /**
8887
9101
  * When set, the default instance for this location inherits its resolved
8888
9102
  * root from the named location's default instance. Useful for derivative
8889
9103
  * slots (e.g. `recordingsLow` → `recordings`) so operators only need to
@@ -18471,8 +18685,10 @@ var TrackSchema = object({
18471
18685
  lastSeen: number(),
18472
18686
  /** Frame-rate position history (subject to maxPositionHistory cap). */
18473
18687
  positions: array(TrackPositionSchema).readonly(),
18474
- /** Periodic snapshots at snapshotIntervalMs cadence (subject to
18475
- * saveThumbnails policy). */
18688
+ /** Periodic snapshots at snapshotIntervalMs cadence DEBUG media, produced
18689
+ * only while `MediaSettings.debugMediaEnabled` is on for the camera (D299;
18690
+ * the retired `saveThumbnails` used to gate this and the rolling
18691
+ * `lastFrame` together). Empty is the healthy default, not a capture gap. */
18476
18692
  snapshots: array(TrackSnapshotSchema).readonly(),
18477
18693
  /** Deduplicated zones the track has entered at least once. Zone IDS. */
18478
18694
  zonesVisited: array(string()).readonly(),
@@ -19332,7 +19548,10 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
19332
19548
  }), method(RelocateMediaInputSchema, object({ jobId: string() }), {
19333
19549
  kind: "mutation",
19334
19550
  auth: "admin"
19335
- }), method(object({}), UnstampedEventMediaCountSchema, { auth: "admin" }), method(object({}), array(RelocateJobSchema).readonly(), {
19551
+ }), method(object({}), UnstampedEventMediaCountSchema, { auth: "admin" }), method(RelocatableMediaCountInputSchema, RelocatableMediaCountSchema, {
19552
+ kind: "query",
19553
+ auth: "admin"
19554
+ }), method(object({}), array(RelocateJobSchema).readonly(), {
19336
19555
  kind: "query",
19337
19556
  auth: "admin"
19338
19557
  }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
@@ -21291,6 +21510,9 @@ method(StorageMigrationInputSchema, StorageMigrationPlanSchema, { auth: "admin"
21291
21510
  }), method(object({ jobId: string().optional() }), StorageMigrationJobSchema.nullable(), { auth: "admin" }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
21292
21511
  kind: "mutation",
21293
21512
  auth: "admin"
21513
+ }), method(object({}), array(StorageMigrationMoverSchema).readonly(), { auth: "admin" }), method(object({}), array(StorageMigrationResidueSchema).readonly(), { auth: "admin" }), method(StorageMigrationDrainInputSchema, object({ jobId: string() }), {
21514
+ kind: "mutation",
21515
+ auth: "admin"
21294
21516
  });
21295
21517
  var ProviderInfoSchema = discriminatedUnion("shouldSaveDiskSpace", [object({
21296
21518
  providerId: string().min(1),
@@ -21689,12 +21911,38 @@ response: record(string(), unknown()) }), object({
21689
21911
  *
21690
21912
  * ## Why this is a capability and not a helper
21691
21913
  *
21692
- * Six stores in `addon-post-analysis` already hold vectors object CLIP, face,
21693
- * plate, vehicle, identity, and the event store's derivativesand every one of
21694
- * them keeps its vectors in a `JSON` settings-store column and ranks them by
21695
- * brute-force cosine in JS. Measured on the live hub that costs ~11.7 KB per row
21696
- * (512 floats as TEXT, `JSON.parse`d on every search) and made semantic search
21697
- * load 5,000 rows before ranking anything.
21914
+ * This capability was introduced with the claim that SIX stores in
21915
+ * `addon-post-analysis` held vectors in a `JSON` settings-store columnobject
21916
+ * CLIP, face, plate, vehicle, identity, and the event store's derivatives. That
21917
+ * claim was never true, and leaving it here made five stores look like pending
21918
+ * work when three of them have no vector at all. Counted column by column on
21919
+ * 2026-08-30, exactly THREE ever held one:
21920
+ *
21921
+ * - `object-clip` — 512-dim CLIP image embedding, migrated 2026-08-06.
21922
+ * - `faces.embedding` — 512-dim ArcFace face embedding, migrated 2026-08-30.
21923
+ * - `identity-samples.embedding` — the same ArcFace vector for an ENROLLED
21924
+ * face, migrated 2026-08-30 into its OWN index (see below).
21925
+ *
21926
+ * `plates` and `vehicle-samples` store a plate STRING and a score; `vehicles`
21927
+ * and `identities` store a name; the event store stores no derivative vector.
21928
+ * They are not migration candidates and never were.
21929
+ *
21930
+ * Measured on the live hub the JSON encoding cost ~11.7 KB per row (512 floats
21931
+ * as TEXT, `JSON.parse`d on every search) and made semantic search load 5,000
21932
+ * rows before ranking anything.
21933
+ *
21934
+ * ## One index per COMPARISON, never per encoder
21935
+ *
21936
+ * `faces` and `identity-samples` hold the same 512 ArcFace dims from the same
21937
+ * model, and they still get two indexes. An index is a set of things that are
21938
+ * ranked against each other and that live and die together, and these two are
21939
+ * neither: a `faces` row is TRACK-OWNED and cascades away with its track under
21940
+ * a per-camera capacity cap, an `identity-samples` row is retention-EXEMPT
21941
+ * forever and is the gallery every recognition ranks against. One index would
21942
+ * mean every gallery load and every reconcile carried a filter whose failure
21943
+ * mode is either ranking a candidate against itself or reclaiming an enrolled
21944
+ * person's only sample. The dimension they share is not a reason to share an
21945
+ * index; the question they answer is, and it differs.
21698
21946
  *
21699
21947
  * The fix is not a faster loop, it is a different backend — and the backend
21700
21948
  * should be replaceable without touching six callers. So: a singleton
@@ -21799,7 +22047,20 @@ var VectorQueryResultSchema = object({
21799
22047
  */
21800
22048
  scanned: number(),
21801
22049
  /** True when the backend could not consider every row that passed the filter. */
21802
- truncated: boolean()
22050
+ truncated: boolean(),
22051
+ /**
22052
+ * The `topK` the backend actually ran with.
22053
+ *
22054
+ * Every backend has a ceiling — sqlite-vec's is 4,096 — and a caller asking
22055
+ * past it used to learn nothing but a boolean, from a WARN in the provider's
22056
+ * own log rather than in its answer. That is how an audit asking for 20,000
22057
+ * consumed 4,096 and reported `examined: 4096` as if it had walked the index,
22058
+ * for weeks. `truncated` says THAT the answer was short; this says BY HOW
22059
+ * MUCH, in the return value, where the caller cannot fail to see it.
22060
+ *
22061
+ * Equals the requested `topK` whenever nothing was lowered.
22062
+ */
22063
+ effectiveTopK: number().int().positive()
21803
22064
  });
21804
22065
  var VectorDeleteInputSchema = object({
21805
22066
  index: string(),
@@ -21828,6 +22089,68 @@ var VectorGetResultSchema = object({ items: array(object({
21828
22089
  id: string(),
21829
22090
  metadata: VectorMetadataSchema
21830
22091
  })) });
22092
+ /**
22093
+ * Ids to read back WITH their vectors.
22094
+ *
22095
+ * The sibling of {@link VectorGetResultSchema}, and deliberately a separate
22096
+ * method rather than a flag on it: `getByIds` promises no vectors and its one
22097
+ * caller depends on that promise. This one promises the opposite.
22098
+ *
22099
+ * It exists because a store cannot put its vectors here otherwise. An ArcFace
22100
+ * gallery is ranked IN PROCESS, per detection, against every enrolled sample —
22101
+ * a per-face cross-process KNN would be a network round trip inside the
22102
+ * recognition loop. So the gallery is loaded once and held in RAM, and loading
22103
+ * it requires the index to hand the floats back. Without this method the only
22104
+ * way to keep a readable vector is a JSON column, which is the thing this
22105
+ * capability exists to delete.
22106
+ *
22107
+ * BOUNDED BY THE CALLER: ids are named, never "everything". Enumerating an
22108
+ * index is {@link VectorScanInputSchema}'s job, and it returns no vectors.
22109
+ */
22110
+ var VectorFetchInputSchema = object({
22111
+ index: string(),
22112
+ ids: array(string())
22113
+ });
22114
+ var VectorFetchResultSchema = object({ items: array(object({
22115
+ id: string(),
22116
+ /** base64 Float32LE — the same wire form `upsert` accepts. */
22117
+ vector: string(),
22118
+ metadata: VectorMetadataSchema
22119
+ })) });
22120
+ /**
22121
+ * ENUMERATE an index: one page of rows in a stable order, no ranking.
22122
+ *
22123
+ * A reconcile does not want the nearest rows, it wants ALL of them, and asking
22124
+ * a KNN for "all" is the wrong question twice over. It hits the backend's `k`
22125
+ * ceiling — 4,096 on sqlite-vec against a 22,128-row index — and it needs a
22126
+ * probe vector it does not have, so the audit passed a ZERO vector whose cosine
22127
+ * distance to every row is degenerate. `examined: 4096` then read as "we
22128
+ * looked" for as long as anyone cared to read it.
22129
+ *
22130
+ * This is the primitive that question actually needs: a bounded page, ordered
22131
+ * by the backend's own row order, costing no distance computation at all.
22132
+ * Vectors are NOT returned — an enumeration that shipped 2 KB per row would be
22133
+ * the full-table read this capability was built to stop.
22134
+ */
22135
+ var VectorScanInputSchema = object({
22136
+ index: string(),
22137
+ /** Opaque resume point. `0` starts at the top; pass back `nextCursor`. */
22138
+ cursor: number().int().nonnegative().default(0),
22139
+ limit: number().int().positive()
22140
+ });
22141
+ var VectorScanResultSchema = object({
22142
+ items: array(object({
22143
+ id: string(),
22144
+ metadata: VectorMetadataSchema
22145
+ })),
22146
+ /**
22147
+ * Where the next page starts, or `null` when the walk reached the end.
22148
+ *
22149
+ * `null` is the ONLY end-of-index signal. A caller must not infer the end
22150
+ * from a short page: a backend is free to return fewer rows than asked.
22151
+ */
22152
+ nextCursor: number().int().nonnegative().nullable()
22153
+ });
21831
22154
  var VectorStatsInputSchema = object({ index: string() });
21832
22155
  var VectorStatsResultSchema = object({
21833
22156
  /** Provider id, so an operator can tell brute force from an ANN index. */
@@ -21846,7 +22169,7 @@ method(VectorDeclareIndexInputSchema, _void(), {
21846
22169
  }), method(VectorUpsertInputSchema, VectorUpsertResultSchema, {
21847
22170
  kind: "mutation",
21848
22171
  auth: "admin"
21849
- }), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
22172
+ }), method(VectorQueryInputSchema, VectorQueryResultSchema, { auth: "admin" }), method(VectorGetInputSchema, VectorGetResultSchema, { auth: "admin" }), method(VectorFetchInputSchema, VectorFetchResultSchema, { auth: "admin" }), method(VectorScanInputSchema, VectorScanResultSchema, { auth: "admin" }), method(VectorDeleteInputSchema, VectorDeleteResultSchema, {
21850
22173
  kind: "mutation",
21851
22174
  auth: "admin"
21852
22175
  }), method(VectorDeleteByFilterInputSchema, VectorDeleteResultSchema, {
@@ -26750,6 +27073,9 @@ method(object({
26750
27073
  }), method(object({}), array(RelocateJobSchema).readonly(), {
26751
27074
  kind: "query",
26752
27075
  auth: "admin"
27076
+ }), method(RelocateResidueInputSchema, RelocateResidueSchema, {
27077
+ kind: "query",
27078
+ auth: "admin"
26753
27079
  }), method(object({ jobId: string() }), object({ cancelled: boolean() }), {
26754
27080
  kind: "mutation",
26755
27081
  auth: "admin"
@@ -31715,6 +32041,12 @@ Object.freeze({
31715
32041
  addonId: null,
31716
32042
  access: "create"
31717
32043
  },
32044
+ "pipelineAnalytics.countRelocatableMedia": {
32045
+ capName: "pipeline-analytics",
32046
+ capScope: "device",
32047
+ addonId: null,
32048
+ access: "view"
32049
+ },
31718
32050
  "pipelineAnalytics.countUnstampedEventMedia": {
31719
32051
  capName: "pipeline-analytics",
31720
32052
  capScope: "device",
@@ -32879,6 +33211,12 @@ Object.freeze({
32879
33211
  addonId: null,
32880
33212
  access: "view"
32881
33213
  },
33214
+ "recording.getRelocateResidue": {
33215
+ capName: "recording",
33216
+ capScope: "system",
33217
+ addonId: null,
33218
+ access: "view"
33219
+ },
32882
33220
  "recording.getStorageMigrationMoveStatus": {
32883
33221
  capName: "recording",
32884
33222
  capScope: "system",
@@ -33425,12 +33763,30 @@ Object.freeze({
33425
33763
  addonId: null,
33426
33764
  access: "create"
33427
33765
  },
33766
+ "storageMigration.drain": {
33767
+ capName: "storage-migration",
33768
+ capScope: "system",
33769
+ addonId: null,
33770
+ access: "create"
33771
+ },
33772
+ "storageMigration.movers": {
33773
+ capName: "storage-migration",
33774
+ capScope: "system",
33775
+ addonId: null,
33776
+ access: "view"
33777
+ },
33428
33778
  "storageMigration.plan": {
33429
33779
  capName: "storage-migration",
33430
33780
  capScope: "system",
33431
33781
  addonId: null,
33432
33782
  access: "view"
33433
33783
  },
33784
+ "storageMigration.residue": {
33785
+ capName: "storage-migration",
33786
+ capScope: "system",
33787
+ addonId: null,
33788
+ access: "view"
33789
+ },
33434
33790
  "storageMigration.start": {
33435
33791
  capName: "storage-migration",
33436
33792
  capScope: "system",
@@ -34265,6 +34621,12 @@ Object.freeze({
34265
34621
  addonId: null,
34266
34622
  access: "delete"
34267
34623
  },
34624
+ "vectorStore.fetchByIds": {
34625
+ capName: "vector-store",
34626
+ capScope: "system",
34627
+ addonId: null,
34628
+ access: "view"
34629
+ },
34268
34630
  "vectorStore.getByIds": {
34269
34631
  capName: "vector-store",
34270
34632
  capScope: "system",
@@ -34277,6 +34639,12 @@ Object.freeze({
34277
34639
  addonId: null,
34278
34640
  access: "view"
34279
34641
  },
34642
+ "vectorStore.scan": {
34643
+ capName: "vector-store",
34644
+ capScope: "system",
34645
+ addonId: null,
34646
+ access: "view"
34647
+ },
34280
34648
  "vectorStore.stats": {
34281
34649
  capName: "vector-store",
34282
34650
  capScope: "system",
@@ -1,5 +1,5 @@
1
1
  import { h as e, l as t, u as n, y as r } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DJDHChgO.mjs";
2
- import { o as i, s as a } from "./responsive-BYjuH3Vm.mjs";
2
+ import { o as i, s as a } from "./responsive-DdrSu5QF.mjs";
3
3
  import { n as o, r as s, t as c } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-ds_Ehzaa.mjs";
4
4
  var l = a("chevron-down", [["path", {
5
5
  d: "m6 9 6 6 6-6",
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CI68GRdZ.mjs";
1
+ import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-CQ_gHSHU.mjs";
2
2
  export { t as get, e as init };
@@ -1,6 +1,6 @@
1
1
  import { c as e, g as t, h as n, l as r, n as i, p as a, r as o, t as s, u as c, y as l } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DJDHChgO.mjs";
2
2
  import "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-ds_Ehzaa.mjs";
3
- import { n as u } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DLxM_aHR.mjs";
3
+ import { n as u } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-D0yi4BW4.mjs";
4
4
  //#region ../ui-library/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
5
5
  l();
6
6
  var d = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), f = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), p = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), m = (e) => {
@@ -1,4 +1,4 @@
1
- import { s as e } from "./responsive-BYjuH3Vm.mjs";
1
+ import { s as e } from "./responsive-DdrSu5QF.mjs";
2
2
  var t = e("eye-off", [
3
3
  ["path", {
4
4
  d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",
@@ -1,4 +1,4 @@
1
- import { s as e } from "./responsive-BYjuH3Vm.mjs";
1
+ import { s as e } from "./responsive-DdrSu5QF.mjs";
2
2
  var t = e("trash-2", [
3
3
  ["path", {
4
4
  d: "M10 11v6",
@@ -1,5 +1,5 @@
1
1
  import { c as e, h as t, p as n, y as r } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DJDHChgO.mjs";
2
- import { s as i } from "./responsive-BYjuH3Vm.mjs";
2
+ import { s as i } from "./responsive-DdrSu5QF.mjs";
3
3
  var a = i("camera", [["path", {
4
4
  d: "M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",
5
5
  key: "18u6gg"
@@ -2753,7 +2753,7 @@ async function rr(e) {
2753
2753
  }
2754
2754
  }
2755
2755
  async function ir() {
2756
- return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-CegGwSfe.mjs")).catch((e) => {
2756
+ return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-BUHSjtFq.mjs")).catch((e) => {
2757
2757
  throw tr = void 0, e;
2758
2758
  }), tr;
2759
2759
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-model-studio",
3
- "version": "1.1.60",
3
+ "version": "1.1.63",
4
4
  "description": "Custom detection model registry, conversion & distribution for CamStack",
5
5
  "keywords": [
6
6
  "camstack",