@camstack/addon-post-analysis 1.2.364 → 1.2.365
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/{clip-model-registry-B69Mktce.mjs → clip-model-registry-BRXTB6Qa.mjs} +361 -4
- package/dist/{clip-model-registry-D8XeJhT4.js → clip-model-registry-CsJpPkau.js} +390 -3
- package/dist/embedding-encoder/index.js +1 -1
- package/dist/embedding-encoder/index.mjs +1 -1
- package/dist/pipeline-analytics/_stub.js +2 -2
- package/dist/pipeline-analytics/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-CUQTWug8.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-DUGlfHVc.mjs} +2 -2
- package/dist/pipeline-analytics/{_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-B3Ko_8Ah.mjs → _virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-Cul2786X.mjs} +1 -1
- package/dist/pipeline-analytics/{_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DOcfQnib.mjs → _virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-Duvan2CO.mjs} +1 -1
- package/dist/pipeline-analytics/{hostInit-Be7_ixng.mjs → hostInit-DH-l3-BR.mjs} +2 -2
- package/dist/pipeline-analytics/index.js +519 -41
- package/dist/pipeline-analytics/index.mjs +519 -41
- package/dist/pipeline-analytics/remoteEntry.js +1 -1
- package/package.json +1 -1
|
@@ -5459,7 +5459,7 @@ var ZodIssueCode = {
|
|
|
5459
5459
|
var ZodFirstPartyTypeKind;
|
|
5460
5460
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5461
5461
|
//#endregion
|
|
5462
|
-
//#region ../types/dist/sleep-
|
|
5462
|
+
//#region ../types/dist/sleep-BBF1iXUi.mjs
|
|
5463
5463
|
/**
|
|
5464
5464
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5465
5465
|
* window to float samples (D455).
|
|
@@ -10758,6 +10758,178 @@ discriminatedUnion("type", [
|
|
|
10758
10758
|
message: string()
|
|
10759
10759
|
})
|
|
10760
10760
|
]);
|
|
10761
|
+
/** Every status, in the order a summary lists them. */
|
|
10762
|
+
var RETRAIN_REVIEW_STATUSES = [
|
|
10763
|
+
"unchanged",
|
|
10764
|
+
"adjusted",
|
|
10765
|
+
"reclassified",
|
|
10766
|
+
"added",
|
|
10767
|
+
"removed",
|
|
10768
|
+
"model-error"
|
|
10769
|
+
];
|
|
10770
|
+
/** Two boxes this close on every edge are the same rectangle (an exact match). */
|
|
10771
|
+
var EXACT_EDGE_EPSILON = 1e-6;
|
|
10772
|
+
/** Intersection over union of two normalised rectangles. */
|
|
10773
|
+
function retrainBoxIou(a, b) {
|
|
10774
|
+
const inter = Math.max(0, Math.min(a.x + a.w, b.x + b.w) - Math.max(a.x, b.x)) * Math.max(0, Math.min(a.y + a.h, b.y + b.h) - Math.max(a.y, b.y));
|
|
10775
|
+
const union = a.w * a.h + b.w * b.h - inter;
|
|
10776
|
+
return union > 0 ? inter / union : 0;
|
|
10777
|
+
}
|
|
10778
|
+
function sameRect(a, b) {
|
|
10779
|
+
return Math.abs(a.x - b.x) <= EXACT_EDGE_EPSILON && Math.abs(a.y - b.y) <= EXACT_EDGE_EPSILON && Math.abs(a.w - b.w) <= EXACT_EDGE_EPSILON && Math.abs(a.h - b.h) <= EXACT_EDGE_EPSILON;
|
|
10780
|
+
}
|
|
10781
|
+
function labelOf(value) {
|
|
10782
|
+
return value?.trim() ?? "";
|
|
10783
|
+
}
|
|
10784
|
+
/** Kept box versus its baseline: class/label first, then geometry. */
|
|
10785
|
+
function compareKept(saved, baseline, adjustedIou) {
|
|
10786
|
+
const iou = retrainBoxIou(saved.bbox, baseline.bbox);
|
|
10787
|
+
if (saved.macroClass !== baseline.macroClass || labelOf(saved.label) !== labelOf(baseline.label)) return {
|
|
10788
|
+
status: "reclassified",
|
|
10789
|
+
iou
|
|
10790
|
+
};
|
|
10791
|
+
return {
|
|
10792
|
+
status: iou < adjustedIou ? "adjusted" : "unchanged",
|
|
10793
|
+
iou
|
|
10794
|
+
};
|
|
10795
|
+
}
|
|
10796
|
+
/**
|
|
10797
|
+
* Pair legacy rows with proposals: exact rectangles first, then by descending
|
|
10798
|
+
* overlap, one proposal per row. Greedy on a sorted list so the result does not
|
|
10799
|
+
* depend on the order the rows were listed in.
|
|
10800
|
+
*/
|
|
10801
|
+
function pairLegacy(saved, legacyIndexes, origins, matchIou) {
|
|
10802
|
+
const candidates = [];
|
|
10803
|
+
for (const savedIndex of legacyIndexes) {
|
|
10804
|
+
const box = saved[savedIndex];
|
|
10805
|
+
if (box === void 0) continue;
|
|
10806
|
+
origins.forEach((origin, originIndex) => {
|
|
10807
|
+
const exact = sameRect(box.bbox, origin.bbox);
|
|
10808
|
+
const iou = exact ? 1 : retrainBoxIou(box.bbox, origin.bbox);
|
|
10809
|
+
if (exact || iou >= matchIou) candidates.push({
|
|
10810
|
+
savedIndex,
|
|
10811
|
+
originIndex,
|
|
10812
|
+
iou,
|
|
10813
|
+
exact
|
|
10814
|
+
});
|
|
10815
|
+
});
|
|
10816
|
+
}
|
|
10817
|
+
candidates.sort((a, b) => Number(b.exact) - Number(a.exact) || b.iou - a.iou);
|
|
10818
|
+
const pairs = /* @__PURE__ */ new Map();
|
|
10819
|
+
const takenOrigins = /* @__PURE__ */ new Set();
|
|
10820
|
+
for (const c of candidates) {
|
|
10821
|
+
if (pairs.has(c.savedIndex) || takenOrigins.has(c.originIndex)) continue;
|
|
10822
|
+
pairs.set(c.savedIndex, c.originIndex);
|
|
10823
|
+
takenOrigins.add(c.originIndex);
|
|
10824
|
+
}
|
|
10825
|
+
return pairs;
|
|
10826
|
+
}
|
|
10827
|
+
/**
|
|
10828
|
+
* Classify what the operator did on ONE frame.
|
|
10829
|
+
*
|
|
10830
|
+
* @param saved the frame's saved boxes.
|
|
10831
|
+
* @param origins the proposals known now (the pipeline's boxes, re-derived) —
|
|
10832
|
+
* consulted ONLY for rows that carry no origin snapshot.
|
|
10833
|
+
* @param dismissed the proposals the operator deleted, with their snapshots.
|
|
10834
|
+
*/
|
|
10835
|
+
function classifyRetrainReview(saved, origins, dismissed, opts = {}) {
|
|
10836
|
+
const matchIou = opts.matchIou ?? .5;
|
|
10837
|
+
const adjustedIou = opts.adjustedIou ?? .95;
|
|
10838
|
+
const claimedRefs = /* @__PURE__ */ new Set();
|
|
10839
|
+
const boxes = [];
|
|
10840
|
+
const legacyIndexes = [];
|
|
10841
|
+
saved.forEach((box, index) => {
|
|
10842
|
+
if (box.origin === null) legacyIndexes.push(index);
|
|
10843
|
+
else claimedRefs.add(box.origin.ref);
|
|
10844
|
+
});
|
|
10845
|
+
for (const entry of dismissed) claimedRefs.add(entry.ref);
|
|
10846
|
+
const legacyPairs = pairLegacy(saved, legacyIndexes, origins, matchIou);
|
|
10847
|
+
for (const originIndex of legacyPairs.values()) {
|
|
10848
|
+
const origin = origins[originIndex];
|
|
10849
|
+
if (origin !== void 0) claimedRefs.add(origin.ref);
|
|
10850
|
+
}
|
|
10851
|
+
saved.forEach((box, index) => {
|
|
10852
|
+
const exactBaseline = box.origin;
|
|
10853
|
+
const pairedOrigin = exactBaseline === null ? origins[legacyPairs.get(index) ?? -1] : void 0;
|
|
10854
|
+
const baseline = exactBaseline ?? pairedOrigin ?? null;
|
|
10855
|
+
const approximate = exactBaseline === null;
|
|
10856
|
+
if (box.kind === "model_error") {
|
|
10857
|
+
boxes.push({
|
|
10858
|
+
ref: box.id,
|
|
10859
|
+
savedId: box.id,
|
|
10860
|
+
status: "model-error",
|
|
10861
|
+
approximate: false,
|
|
10862
|
+
...baseline !== null ? {
|
|
10863
|
+
origin: baseline,
|
|
10864
|
+
iou: retrainBoxIou(box.bbox, baseline.bbox)
|
|
10865
|
+
} : {}
|
|
10866
|
+
});
|
|
10867
|
+
return;
|
|
10868
|
+
}
|
|
10869
|
+
if (baseline === null || baseline.source === "operator") {
|
|
10870
|
+
boxes.push({
|
|
10871
|
+
ref: box.id,
|
|
10872
|
+
savedId: box.id,
|
|
10873
|
+
status: "added",
|
|
10874
|
+
approximate: approximate && baseline === null,
|
|
10875
|
+
...baseline !== null ? { origin: baseline } : {}
|
|
10876
|
+
});
|
|
10877
|
+
return;
|
|
10878
|
+
}
|
|
10879
|
+
const verdict = compareKept(box, baseline, adjustedIou);
|
|
10880
|
+
boxes.push({
|
|
10881
|
+
ref: box.id,
|
|
10882
|
+
savedId: box.id,
|
|
10883
|
+
status: verdict.status,
|
|
10884
|
+
approximate,
|
|
10885
|
+
origin: baseline,
|
|
10886
|
+
iou: verdict.iou
|
|
10887
|
+
});
|
|
10888
|
+
});
|
|
10889
|
+
for (const entry of dismissed) boxes.push({
|
|
10890
|
+
ref: entry.ref,
|
|
10891
|
+
status: "removed",
|
|
10892
|
+
approximate: false,
|
|
10893
|
+
origin: entry.snapshot
|
|
10894
|
+
});
|
|
10895
|
+
if (opts.inferRemoved === true) for (const origin of origins) {
|
|
10896
|
+
if (claimedRefs.has(origin.ref)) continue;
|
|
10897
|
+
boxes.push({
|
|
10898
|
+
ref: origin.ref,
|
|
10899
|
+
status: "removed",
|
|
10900
|
+
approximate: true,
|
|
10901
|
+
origin
|
|
10902
|
+
});
|
|
10903
|
+
}
|
|
10904
|
+
return {
|
|
10905
|
+
boxes,
|
|
10906
|
+
approximate: boxes.some((b) => b.approximate)
|
|
10907
|
+
};
|
|
10908
|
+
}
|
|
10909
|
+
/** Counts per status, plus the totals a list row shows. */
|
|
10910
|
+
function summarizeReview(review) {
|
|
10911
|
+
const counts = {
|
|
10912
|
+
unchanged: 0,
|
|
10913
|
+
adjusted: 0,
|
|
10914
|
+
reclassified: 0,
|
|
10915
|
+
added: 0,
|
|
10916
|
+
removed: 0,
|
|
10917
|
+
"model-error": 0
|
|
10918
|
+
};
|
|
10919
|
+
for (const box of review.boxes) counts[box.status] += 1;
|
|
10920
|
+
return {
|
|
10921
|
+
counts,
|
|
10922
|
+
total: review.boxes.length,
|
|
10923
|
+
changed: review.boxes.length - counts.unchanged,
|
|
10924
|
+
approximate: review.approximate
|
|
10925
|
+
};
|
|
10926
|
+
}
|
|
10927
|
+
/** The prefix of the error a stale `expectedRevision` save is refused with. */
|
|
10928
|
+
var RETRAIN_REVISION_CONFLICT = "retrain-revision-conflict";
|
|
10929
|
+
/** The message a refused save carries — `parseRetrainRevisionConflict` reads it back. */
|
|
10930
|
+
function retrainRevisionConflictMessage(frameId, conflict) {
|
|
10931
|
+
return `${RETRAIN_REVISION_CONFLICT}: frame ${frameId} moved on — it is at revision ${String(conflict.currentRevision)}, the save expected ${String(conflict.expectedRevision)} (current=${String(conflict.currentRevision)} expected=${String(conflict.expectedRevision)})`;
|
|
10932
|
+
}
|
|
10761
10933
|
/**
|
|
10762
10934
|
* Birth-decision ledger — one durable row per track-birth VERDICT (D409).
|
|
10763
10935
|
*
|
|
@@ -16395,6 +16567,38 @@ var BulkRecordSchema = object({
|
|
|
16395
16567
|
data: record(string(), unknown())
|
|
16396
16568
|
});
|
|
16397
16569
|
/**
|
|
16570
|
+
* One write inside a {@link settingsStoreCapability.methods.transact} call.
|
|
16571
|
+
* Only the three that a "replace this set, bump that revision" write needs.
|
|
16572
|
+
*/
|
|
16573
|
+
var TransactOpSchema = discriminatedUnion("op", [
|
|
16574
|
+
object({
|
|
16575
|
+
op: literal("deleteWhere"),
|
|
16576
|
+
collection: string(),
|
|
16577
|
+
filter: MutationFilterSchema
|
|
16578
|
+
}),
|
|
16579
|
+
object({
|
|
16580
|
+
op: literal("insertMany"),
|
|
16581
|
+
collection: string(),
|
|
16582
|
+
records: array(BulkRecordSchema).readonly()
|
|
16583
|
+
}),
|
|
16584
|
+
object({
|
|
16585
|
+
op: literal("update"),
|
|
16586
|
+
collection: string(),
|
|
16587
|
+
id: string(),
|
|
16588
|
+
data: record(string(), unknown())
|
|
16589
|
+
})
|
|
16590
|
+
]);
|
|
16591
|
+
/**
|
|
16592
|
+
* The precondition of a transaction: the row `key` of `collection` must hold
|
|
16593
|
+
* `equals` in `column`, read INSIDE the transaction.
|
|
16594
|
+
*/
|
|
16595
|
+
var TransactGuardSchema = object({
|
|
16596
|
+
collection: string(),
|
|
16597
|
+
key: string(),
|
|
16598
|
+
column: string(),
|
|
16599
|
+
equals: unknown()
|
|
16600
|
+
});
|
|
16601
|
+
/**
|
|
16398
16602
|
* Column declaration for a structured (SQL-backed) collection.
|
|
16399
16603
|
*
|
|
16400
16604
|
* Logical types — the backend translates each to the matching SQLite
|
|
@@ -16485,6 +16689,16 @@ id: union([string(), number()]) }), {
|
|
|
16485
16689
|
}), object({ inserted: number().int() }), {
|
|
16486
16690
|
kind: "mutation",
|
|
16487
16691
|
auth: "admin"
|
|
16692
|
+
}), method(object({
|
|
16693
|
+
namespace: string().optional(),
|
|
16694
|
+
guard: TransactGuardSchema.optional(),
|
|
16695
|
+
ops: array(TransactOpSchema).readonly()
|
|
16696
|
+
}), object({
|
|
16697
|
+
applied: boolean(),
|
|
16698
|
+
current: unknown().optional()
|
|
16699
|
+
}), {
|
|
16700
|
+
kind: "mutation",
|
|
16701
|
+
auth: "admin"
|
|
16488
16702
|
}), method(object({
|
|
16489
16703
|
namespace: string().optional(),
|
|
16490
16704
|
collection: string(),
|
|
@@ -16633,6 +16847,16 @@ id: union([string(), number()]) }), {
|
|
|
16633
16847
|
}), object({ inserted: number().int() }), {
|
|
16634
16848
|
kind: "mutation",
|
|
16635
16849
|
auth: "admin"
|
|
16850
|
+
}), method(object({
|
|
16851
|
+
namespace: string().optional(),
|
|
16852
|
+
guard: TransactGuardSchema.optional(),
|
|
16853
|
+
ops: array(TransactOpSchema).readonly()
|
|
16854
|
+
}), object({
|
|
16855
|
+
applied: boolean(),
|
|
16856
|
+
current: unknown().optional()
|
|
16857
|
+
}), {
|
|
16858
|
+
kind: "mutation",
|
|
16859
|
+
auth: "admin"
|
|
16636
16860
|
}), method(object({
|
|
16637
16861
|
namespace: string().optional(),
|
|
16638
16862
|
collection: string(),
|
|
@@ -26366,6 +26590,55 @@ var RetrainBboxSchema = object({
|
|
|
26366
26590
|
h: number()
|
|
26367
26591
|
});
|
|
26368
26592
|
/**
|
|
26593
|
+
* What a box LOOKED LIKE when it was offered, snapshotted at the moment the
|
|
26594
|
+
* operator accepted it. The saved row keeps only the final rectangle; this is
|
|
26595
|
+
* the other half of the pair, and the pair is what says whether the operator
|
|
26596
|
+
* accepted, nudged, relabelled or replaced a proposal (`retrain-review.ts`).
|
|
26597
|
+
*
|
|
26598
|
+
* `ref` names the proposal inside its frame: `pipeline:<trackId>` for a box the
|
|
26599
|
+
* live pipeline drew, `assist:<n>` for the n-th box of a detector or LLM run,
|
|
26600
|
+
* and anything unique for an operator-drawn box (`operator:<n>`). Re-derived
|
|
26601
|
+
* pipeline boxes carry the same ref every time, which is what lets a dismissal
|
|
26602
|
+
* stay dismissed.
|
|
26603
|
+
*/
|
|
26604
|
+
var RetrainOriginSchema = object({
|
|
26605
|
+
source: RetrainAnnotationSourceSchema,
|
|
26606
|
+
ref: string().min(1),
|
|
26607
|
+
bbox: RetrainBboxSchema,
|
|
26608
|
+
macroClass: RetrainMacroClassSchema,
|
|
26609
|
+
label: string().optional(),
|
|
26610
|
+
score: number().optional(),
|
|
26611
|
+
modelId: string().optional()
|
|
26612
|
+
});
|
|
26613
|
+
/**
|
|
26614
|
+
* A proposal the operator deleted. Durable on the frame, so a deleted pipeline
|
|
26615
|
+
* box does not come back as a draft every time the frame is reopened, and so
|
|
26616
|
+
* the deletion itself is a recorded fact rather than an absence.
|
|
26617
|
+
*/
|
|
26618
|
+
var RetrainDismissedSchema = object({
|
|
26619
|
+
ref: string().min(1),
|
|
26620
|
+
snapshot: RetrainOriginSchema
|
|
26621
|
+
});
|
|
26622
|
+
/** What the operator did with a proposal (see `retrain-review.ts`). */
|
|
26623
|
+
var RetrainReviewStatusSchema = _enum(RETRAIN_REVIEW_STATUSES);
|
|
26624
|
+
var RetrainFrameReviewSchema = object({
|
|
26625
|
+
boxes: array(object({
|
|
26626
|
+
ref: string(),
|
|
26627
|
+
savedId: string().optional(),
|
|
26628
|
+
status: RetrainReviewStatusSchema,
|
|
26629
|
+
/** The baseline was re-derived, not snapshotted (a pre-origin row). */
|
|
26630
|
+
approximate: boolean(),
|
|
26631
|
+
origin: RetrainOriginSchema.optional(),
|
|
26632
|
+
iou: number().optional()
|
|
26633
|
+
})).readonly(),
|
|
26634
|
+
summary: object({
|
|
26635
|
+
counts: record(RetrainReviewStatusSchema, number().int()),
|
|
26636
|
+
total: number().int(),
|
|
26637
|
+
changed: number().int(),
|
|
26638
|
+
approximate: boolean()
|
|
26639
|
+
})
|
|
26640
|
+
});
|
|
26641
|
+
/**
|
|
26369
26642
|
* One annotated subject.
|
|
26370
26643
|
*
|
|
26371
26644
|
* `bbox` is normalised against the full frame, ALWAYS. The per-model shapes
|
|
@@ -26389,6 +26662,9 @@ var RetrainAnnotationSchema = object({
|
|
|
26389
26662
|
/** Which model proposed this box — or, on a `model_error`, drew the phantom. */
|
|
26390
26663
|
assistModelId: string().optional(),
|
|
26391
26664
|
assistScore: number().optional(),
|
|
26665
|
+
/** The proposal this box started from, snapshotted at accept time. `null` on
|
|
26666
|
+
* a row saved before origins existed; absent on a draft nobody snapshotted. */
|
|
26667
|
+
origin: RetrainOriginSchema.nullable().optional(),
|
|
26392
26668
|
exportedInBatch: string().optional(),
|
|
26393
26669
|
createdAt: number()
|
|
26394
26670
|
});
|
|
@@ -26481,7 +26757,19 @@ var RetrainFrameSchema = object({
|
|
|
26481
26757
|
* empty when nothing the track store holds can be placed on it. */
|
|
26482
26758
|
pipelineBoxes: array(RetrainPipelineBoxSchema).readonly().optional(),
|
|
26483
26759
|
/** The named collections this frame belongs to. Present on list answers. */
|
|
26484
|
-
collectionIds: array(string()).readonly().optional()
|
|
26760
|
+
collectionIds: array(string()).readonly().optional(),
|
|
26761
|
+
/** Bumped by every annotation save. A save that names a stale
|
|
26762
|
+
* `expectedRevision` is refused, so two surfaces cannot overwrite each other. */
|
|
26763
|
+
revision: number().int().optional(),
|
|
26764
|
+
/** Proposals the operator deleted — never re-seeded as drafts. */
|
|
26765
|
+
dismissed: array(RetrainDismissedSchema).readonly().optional(),
|
|
26766
|
+
/** What the operator did with the proposals, computed by the server. */
|
|
26767
|
+
review: RetrainFrameReviewSchema.optional(),
|
|
26768
|
+
/** The frame's pixels over the admin data plane (full size). Fetch with the
|
|
26769
|
+
* admin bearer token; relative to the hub root. */
|
|
26770
|
+
imageUrl: string().optional(),
|
|
26771
|
+
/** The same, as a ~480 px thumbnail for grids. */
|
|
26772
|
+
thumbnailUrl: string().optional()
|
|
26485
26773
|
});
|
|
26486
26774
|
/** Why a copy-on-select could not be honoured — named, never a silent skip. */
|
|
26487
26775
|
var RetrainCopyRefusalSchema = _enum([
|
|
@@ -28048,6 +28336,11 @@ var pipelineAnalyticsCapability = {
|
|
|
28048
28336
|
/**
|
|
28049
28337
|
* The pixels of ONE copied frame, base64.
|
|
28050
28338
|
*
|
|
28339
|
+
* @deprecated Use `RetrainFrame.imageUrl` / `thumbnailUrl` (the admin
|
|
28340
|
+
* `retrain-frame` data plane, D613). A base64 envelope holds the frame
|
|
28341
|
+
* whole in the producer AND the caller, and a grid of tiles paid that for
|
|
28342
|
+
* every tile. Kept for one release for callers that cannot fetch a URL.
|
|
28343
|
+
*
|
|
28051
28344
|
* Through the cap rather than a data plane because it is genuinely one
|
|
28052
28345
|
* frame at a time, on demand, at human speed — the shape D9/D18 permit
|
|
28053
28346
|
* (what they forbid is frames crossing a boundary at frame RATE). The
|
|
@@ -28110,18 +28403,59 @@ var pipelineAnalyticsCapability = {
|
|
|
28110
28403
|
* Refuses a macro class typed into `label` or `subLabel` — the tiers are
|
|
28111
28404
|
* separate and the guard is at the WRITE, because a mixed taxonomy cannot
|
|
28112
28405
|
* be un-mixed by reading it.
|
|
28406
|
+
*
|
|
28407
|
+
* ATOMIC and REVISIONED: the replaced rows, the frame's `dismissed` set and
|
|
28408
|
+
* its `revision` move in one transaction, guarded by the revision the
|
|
28409
|
+
* caller saw. A stale `expectedRevision` writes nothing and throws
|
|
28410
|
+
* `retrain-revision-conflict` (parse it with `parseRetrainRevisionConflict`);
|
|
28411
|
+
* the UI and an MCP agent no longer overwrite each other silently.
|
|
28113
28412
|
*/
|
|
28114
28413
|
saveRetrainAnnotations: method(object({
|
|
28115
28414
|
deviceId: number(),
|
|
28116
28415
|
/** The frame's track, when it has one — checked against the frame. */
|
|
28117
28416
|
trackId: string().optional(),
|
|
28118
28417
|
frameId: string(),
|
|
28119
|
-
annotations: array(RetrainAnnotationDraftSchema)
|
|
28418
|
+
annotations: array(RetrainAnnotationDraftSchema),
|
|
28419
|
+
/** The frame's `revision` the caller saw. A different current revision
|
|
28420
|
+
* refuses the save with a `retrain-revision-conflict` error
|
|
28421
|
+
* (`parseRetrainRevisionConflict`). Absent ⇒ last write wins. */
|
|
28422
|
+
expectedRevision: number().int().optional(),
|
|
28423
|
+
/** The proposals the operator deleted. Absent ⇒ keep the frame's
|
|
28424
|
+
* current set; present ⇒ replace it (an empty array un-dismisses). */
|
|
28425
|
+
dismissed: array(RetrainDismissedSchema).optional()
|
|
28120
28426
|
}), array(RetrainAnnotationSchema).readonly(), {
|
|
28121
28427
|
kind: "mutation",
|
|
28122
28428
|
auth: "admin"
|
|
28123
28429
|
}),
|
|
28124
28430
|
/**
|
|
28431
|
+
* Give annotations saved BEFORE origins existed the origin a caller
|
|
28432
|
+
* reconstructed for them (the MCP `track_review_backfill_origin` tool
|
|
28433
|
+
* matches each row to the pipeline box it equals).
|
|
28434
|
+
*
|
|
28435
|
+
* Writes `origin` and nothing else: ids, creation time and the export stamp
|
|
28436
|
+
* are untouched (a re-save through `saveRetrainAnnotations` would reset all
|
|
28437
|
+
* three). A row that already has an origin is SKIPPED — a snapshot taken at
|
|
28438
|
+
* accept time is evidence, a reconstruction is a guess. Atomic and
|
|
28439
|
+
* revision-guarded like the save; bumps the frame's `revision`.
|
|
28440
|
+
*/
|
|
28441
|
+
backfillRetrainOrigins: method(object({
|
|
28442
|
+
deviceId: number(),
|
|
28443
|
+
trackId: string().optional(),
|
|
28444
|
+
frameId: string(),
|
|
28445
|
+
expectedRevision: number().int().optional(),
|
|
28446
|
+
origins: array(object({
|
|
28447
|
+
annotationId: string(),
|
|
28448
|
+
origin: RetrainOriginSchema
|
|
28449
|
+
})).min(1).max(500)
|
|
28450
|
+
}), object({
|
|
28451
|
+
updated: number().int(),
|
|
28452
|
+
skipped: number().int(),
|
|
28453
|
+
revision: number().int()
|
|
28454
|
+
}), {
|
|
28455
|
+
kind: "mutation",
|
|
28456
|
+
auth: "admin"
|
|
28457
|
+
}),
|
|
28458
|
+
/**
|
|
28125
28459
|
* Finish with a track: `staging → trained`. **The only writer of that
|
|
28126
28460
|
* state** — D81 shipped the column with it deliberately unreachable.
|
|
28127
28461
|
*
|
|
@@ -48702,6 +49036,12 @@ Object.freeze({
|
|
|
48702
49036
|
addonId: null,
|
|
48703
49037
|
access: "create"
|
|
48704
49038
|
},
|
|
49039
|
+
"dataStoreProvider.transact": {
|
|
49040
|
+
capName: "data-store-provider",
|
|
49041
|
+
capScope: "system",
|
|
49042
|
+
addonId: null,
|
|
49043
|
+
access: "create"
|
|
49044
|
+
},
|
|
48705
49045
|
"dataStoreProvider.update": {
|
|
48706
49046
|
capName: "data-store-provider",
|
|
48707
49047
|
capScope: "system",
|
|
@@ -51546,6 +51886,12 @@ Object.freeze({
|
|
|
51546
51886
|
addonId: null,
|
|
51547
51887
|
access: "create"
|
|
51548
51888
|
},
|
|
51889
|
+
"pipelineAnalytics.backfillRetrainOrigins": {
|
|
51890
|
+
capName: "pipeline-analytics",
|
|
51891
|
+
capScope: "device",
|
|
51892
|
+
addonId: null,
|
|
51893
|
+
access: "create"
|
|
51894
|
+
},
|
|
51549
51895
|
"pipelineAnalytics.cancelRelocateMedia": {
|
|
51550
51896
|
capName: "pipeline-analytics",
|
|
51551
51897
|
capScope: "device",
|
|
@@ -53538,6 +53884,12 @@ Object.freeze({
|
|
|
53538
53884
|
addonId: null,
|
|
53539
53885
|
access: "create"
|
|
53540
53886
|
},
|
|
53887
|
+
"settingsStore.transact": {
|
|
53888
|
+
capName: "settings-store",
|
|
53889
|
+
capScope: "system",
|
|
53890
|
+
addonId: null,
|
|
53891
|
+
access: "create"
|
|
53892
|
+
},
|
|
53541
53893
|
"settingsStore.update": {
|
|
53542
53894
|
capName: "settings-store",
|
|
53543
53895
|
capScope: "system",
|
|
@@ -57864,6 +58216,11 @@ Object.freeze({
|
|
|
57864
58216
|
form: "single",
|
|
57865
58217
|
optional: false
|
|
57866
58218
|
}],
|
|
58219
|
+
"pipelineAnalytics.backfillRetrainOrigins": [{
|
|
58220
|
+
name: "deviceId",
|
|
58221
|
+
form: "single",
|
|
58222
|
+
optional: false
|
|
58223
|
+
}],
|
|
57867
58224
|
"pipelineAnalytics.clearTrackRelation": [{
|
|
57868
58225
|
name: "deviceId",
|
|
57869
58226
|
form: "single",
|
|
@@ -63143,4 +63500,4 @@ function buildClipModelRegistry(entries) {
|
|
|
63143
63500
|
/** The built-in catalog's registry. */
|
|
63144
63501
|
var BUILTIN_CLIP_MODELS = buildClipModelRegistry(CLIP_IMAGE_MODELS);
|
|
63145
63502
|
//#endregion
|
|
63146
|
-
export { NC_ALARM_DEFAULT_PROFILE_ID as $,
|
|
63503
|
+
export { NC_ALARM_DEFAULT_PROFILE_ID as $, embeddingEncoderCapability as $n, sceneMonitorCapability as $r, RECORDING_EXPORT_MAX_READ_BYTES as $t, EMBEDDING_MODEL_FAILED as A, nodePin as Ai, alarmDeviceSecureOnArm as An, mayWriteToLocation as Ar, NcConditionsSchema as At, LABEL_SUPPLY_MACRO as B, number as Bi, buildViewerLink as Bn, renameAlarmProfile as Br, NcSharedSequenceSchema as Bt, DEFAULT_DETAIL_CROP_CONVENTION as C, BaseAddon as Ci, TrackPuritySchema as Cn, isRootSuppliableStepId as Cr, NC_TEMPLATE_VARS as Ct, DETECTION_PIPELINE_CAP_NAME as D, defineCustomActions as Di, TrackSourceSchema as Dn, isVectorIndexDimConflict as Dr, NcAlarmSensorsSchema as Dt, DETECTION_MACRO_CLASSES as E, customAction as Ei, TrackSideSchema as En, isSystemEventSummaryRule as Er, NcAlarmSensorsInputSchema as Et, EVENT_OWNER_TYPES as F, array as Fi, applySecureOnArmEdit as Fn, pipelineAnalyticsCapability as Fr, NcRulePatchSchema as Ft, MAX_ARCHIVED_DEBUG_NOTES as G, string as Gi, cosineSimilarity as Gn, resolvePoolMemoryPolicy as Gr, NcSystemEventKindSchema as Gt, ListTrackRelationsInputSchema as H, partialRecord as Hi, cloneAlarmSettings as Hn, resolveLocationMode as Hr, NcSnoozeSchema as Ht, EXPORT_DENSE_MAX_RANGES as I, boolean as Ii, assertTimelapseCadences as In, plateGalleryCapability as Ir, NcRuleSchema as It, MAX_TRACK_PURITIES as J, union as Ji, deriveDetailCropRect as Jn, ruleAutoTriggersAlarm as Jr, NcTemplatePreviewSchema as Jt, MAX_BIRTH_DECISION_RECORDS as K, templateLiteral as Ki, createAlarmProfile as Kn, retrainRevisionConflictMessage as Kr, NcTaxonomySchema as Kt, FIRST_LEVEL_MACRO_CLASSES as L, discriminatedUnion as Li, audioMetricsCapability as Ln, readDeviceStateFrom as Lr, NcRuleTargetSchema as Lt, EMBEDDING_REQUIREMENTS_UNAVAILABLE as M, sleep as Mi, applyBlockingEdit as Mn, notificationRulesCapability as Mr, NcRuleActionSchema as Mt, EVENT_DENSITY_BATCH_MAX as N, ZodObject as Ni, applyModeDelaysEdits as Nn, occupancyScope as Nr, NcRuleActionsSchema as Nt, DeclaredDevices as O, hydrateSchema as Oi, activateAlarmProfile as On, kebabToCamel as Or, NcAlarmSettingsPatchSchema as Ot, EVENT_KIND_BY_CAP as P, _enum as Pi, applyNonBlockingEdit as Pn, parseProcStatus as Pr, NcRuleInputSchema as Pt, MotionTriggeredBySchema as Q, describeSystemEventFamilyProblem as Qn, ruleKindOf as Qr, PoolMemoryWatchdog as Qt, FULL_IMAGE_BBOX as R, literal as Ri, audioModeOf as Rn, readMotionTriggeredBy as Rr, NcRuleUpdateInputSchema as Rt, CoverStateSchema as S, errMsg as Si, TimelapseRuleSchema as Sn, isRetiredClearKey as Sr, NC_TAXONOMY as St, DEFAULT_TIMELAPSE_PREVIEW_TEXT as T, createEvent as Ti, TrackRelationSchema as Tn, isSystemDelivery as Tr, NcAlarmPostTriggeredActionSchema as Tt, ListTrackRelationsResultSchema as U, record as Ui, consumableLowPercentOf as Un, resolveModeDelays as Ur, NcSnoozeSuppressedSchema as Ut, LabelAttributionSchema as V, object as Vi, classifyRetrainReview as Vn, resolveClipSearchMinScore as Vr, NcSnoozeInputSchema as Vt, LockStateSchema as W, strictObject as Wi, coreBlockIdFromAddonId as Wn, resolveModeNotifyPolicy as Wr, NcStateSummarySectionIdSchema as Wt, MOTION_CLOSE_AFTER_MS as X, EventCategory as Xi, deriveRecordingMode as Xn, ruleDeviceCompatCapQueries as Xr, OPS_LOG_DEFAULT_LIMIT as Xt, MAX_TRACK_RELATIONS as Y, unknown as Yi, derivePostTriggeredAction as Yn, ruleBelongsToAlarm as Yr, NcTemplateVarDescriptorSchema as Yt, MediaFileKindEnum as Z, describeSystemEventDeliveryProblem as Zn, ruleGroupingApplies as Zr, OpsLogEntrySchema as Zt, BaseDevice as _, DEFAULT_FIRST_SIGHTING_FRESHNESS_MS as _i, SetTrackRelationInputSchema as _n, isEventKindLabelKey as _r, NC_GROUPING_MIN_SEC as _t, CLIP_EMBEDDING_STEP_ID as a, summarizeReview as ai, SCENE_CONFIRM_DEFAULT_MAX_IMAGE_PX as an, ensureAlarmProfiles as ar, NC_ALARM_TRIGGERED_MAX_SEC as at, ClearTrackRelationInputSchema as b, isSourceCap as bi, TimelapseRuleInputSchema as bn, isLabelSupplyStepId as br, NC_SYSTEM_EVENT_KIND_GROUP_SPECS as bt, resolveClusterModelPin as c, systemEventFamilyProblems as ci, SCENE_DEFAULT_CHECK_INTERVAL_SEC as cn, faceGalleryCapability as cr, NC_CLIP_POST_ROLL_DEFAULT_SEC as ct, APPEARANCE_RESOLVES_AMBIGUITY_DEFAULT as d, systemEventSummarySplitOf as di, SCENE_DEFAULT_UNCOVERED_POLICY as dn, gifFromMp4Args as dr, NC_CONDITION_CATALOG as dt, secureActuationFor as ei, RECORDING_SOURCE_CAMSTACK_ADDON as en, embeddingModelFailedError as er, NC_ALARM_DEFAULT_TRIGGERED_DURATION_SEC as et, ARCHIVED_DEBUG_NOTES_DEFAULT_LIMIT as f, templateCarriesSummary as fi, SCENE_DIVERGED as fn, isAlarmControllableCap as fr, NC_CONSUMABLE_LOW_PERCENT_DEFAULT as ft, BIRTH_DECISION_DEFAULT_LIMIT as g, zoneAnalyticsCapability as gi, SetTrackPurityResultSchema as gn, isDetectionMacroClass as gr, NC_GROUPING_MAX_SEC as gt, ArchivedDebugNoteSchema as h, viewerLinkBaseOf as hi, SetTrackPurityInputSchema as hn, isDefaultAlarmProfileId as hr, NC_GROUPING_DEFAULT_SEC as ht, CLIP_TEXT_MODELS as i, subKindsOf as ii, RetrainStatusSchema as in, encodeVectorBase64 as ir, NC_ALARM_SYSTEM_EVENT_KINDS as it, EMBEDDING_REQUIREMENTS_FAILED as j, normalizeNodeId as ji, alarmPanelCapability as jn, memoizePinnedFfmpeg as jr, NcLegacyRuleActionSequenceSchema as jt, DetectionSourceSchema as k, isDeviceScopedCap as ki, addonWidgetsSourceCapability as kn, linkedStepOf as kr, NcConditionDescriptorSchema as kt, APPEARANCE_BIN_COUNT as l, systemEventFilterApplies as li, SCENE_DEFAULT_OBSERVATION_SPACING_SEC as ln, failureContributionCapability as lr, NC_CLIP_PRE_ROLL_DEFAULT_SEC as lt, AlarmArmModeSchema as m, vectorDimFromBase64 as mi, SceneMonitorSchema as mn, isAudioClassName as mr, NC_DEFAULT_SNOOZE_MINUTES as mt, DEFAULT_CLIP_MODEL as n, servedTemplateVars as ni, RetrainDismissedSchema as nn, embeddingRequirementsFailedError as nr, NC_ALARM_DELAY_MAX_SEC as nt, FACE_EMBEDDING_STEP_ID as o, syncActiveAlarmProfileSettings as oi, SCENE_CONFIRM_DEFAULT_TIMEOUT_MS as on, eventKindLabel as or, NC_AUDIO_CONFIRM_HITS_DEFAULT as ot, AUDIO_MACRO_LABELS as p, templateVarsFor as pi, SCENE_RESET_RECAPTURES as pn, isAppLinkBase as pr, NC_CONSUMABLE_SYSTEM_EVENT_KINDS as pt, MAX_BIRTH_LATENCY_PROXY_MS as q, tuple as qi, deleteAlarmProfile as qn, rootSupplyServes as qr, NcTemplatePreviewInputSchema as qt, CLIP_IMAGE_MODELS as r, storageOccupancyCapability as ri, RetrainOriginSchema as rn, embeddingRequirementsUnavailableError as rr, NC_ALARM_NOTIFY_FIELDS as rt, readClusterModelPinStrict as s, systemEventDeliveryProblems as si, SCENE_DEFAULT_ANCHOR_THRESHOLD as sn, evictionPolicyOfLocation as sr, NC_AUDIO_CONFIRM_WINDOW_SEC_DEFAULT as st, BUILTIN_CLIP_MODELS as t, sensorRaisedOf as ti, RebuildObjectEmbeddingsRefusalSchema as tn, embeddingRefusalOf as tr, NC_ALARM_DELAY_FIELDS as tt, APPEARANCE_BLOCKS as u, systemEventSummaryScheduleOf as ui, SCENE_DEFAULT_QUIET_SECONDS as un, gifDeriveSpeed as ur, NC_CLIP_RETENTION_MAX_SEC as ut, BirthDecisionRecordSchema as v, canonicalHash as vi, TIMELAPSE_DENSE_FLOOR_SEC as vn, isEventOwnerType as vr, NC_SENSOR_TRANSITION_KINDS as vt, DEFAULT_EVENT_COLOR as w, CamProfileSchema as wi, TrackRelationKindSchema as wn, isScheduleActive as wr, NcAlarmConfigSchema as wt, ClearTrackRelationResultSchema as x, DeviceType as xi, TimelapseRulePatchSchema as xn, isMediaOwnerType as xr, NC_TANK_SYSTEM_EVENT_KINDS as xt, COCO_TO_MACRO as y, evaluateSensorEdge as yi, TRACK_RELATIONS_DEFAULT_LIMIT as yn, isKnownTemplateVar as yr, NC_SNOOZE_MAX_MINUTES as yt, FailureCounters as z, looseObject as zi, buildEventKindDescriptor as zn, readTimelapseGeneratedAt as zr, NcScheduleSchema as zt };
|