@camstack/addon-pipeline 1.2.138 → 1.2.140
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/audio-analyzer/index.js +35 -83
- package/dist/audio-analyzer/index.mjs +35 -83
- package/dist/detection-pipeline/index.js +5 -5
- package/dist/detection-pipeline/index.mjs +4 -4
- package/dist/{dist-BuIP0499.js → dist-3bEUjzHN.js} +407 -3
- package/dist/{dist-CmEYRK7G.mjs → dist-B25xMJDp.mjs} +396 -4
- package/dist/{event-loop-stall-monitor-Bef2jXMX.js → event-loop-stall-monitor-BQeD-JuB.js} +1 -1
- package/dist/{event-loop-stall-monitor-JGTFb0Uv.mjs → event-loop-stall-monitor-CrWg3jrh.mjs} +1 -1
- package/dist/{lazy-sharp-DH2eVehm.js → lazy-sharp-buaVXzJ6.js} +1 -1
- package/dist/motion-wasm/index.js +2 -2
- package/dist/motion-wasm/index.mjs +1 -1
- package/dist/{node-J07GBWT3.mjs → node-CFEV-qgx.mjs} +1 -1
- package/dist/{node-ChdX9lv7.js → node-Cn9gEOs4.js} +1 -1
- package/dist/pipeline-runner/index.js +98 -14
- package/dist/pipeline-runner/index.mjs +97 -13
- package/dist/{process-memory-DAKxUb9d.mjs → process-memory-B4SGuNSB.mjs} +1 -1
- package/dist/{process-memory-CJoZemF4.js → process-memory-D7R-j96w.js} +1 -1
- package/dist/recorder/index.js +3 -2
- package/dist/recorder/index.mjs +3 -2
- package/dist/{segment-demux-js-Ck9ly4bX.mjs → segment-demux-js-CwNYlHRC.mjs} +1 -1
- package/dist/{segment-demux-js-BgXbXZnp.js → segment-demux-js-J1AdcHSK.js} +1 -1
- package/dist/session-decode/decode-worker-child.js +2 -2
- package/dist/session-decode/decode-worker-child.mjs +1 -1
- package/dist/stream-broker/_stub.js +2 -2
- package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-Cad8960O.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-O4QuB94V.mjs} +3 -3
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-D4-thZGg.mjs +26 -0
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-bjYJYwAq.mjs +26 -0
- package/dist/stream-broker/demux-worker-child.js +1 -1
- package/dist/stream-broker/demux-worker-child.mjs +1 -1
- package/dist/stream-broker/{hostInit-Gd3OcDIa.mjs → hostInit-DXcoBCs4.mjs} +3 -3
- package/dist/stream-broker/index.js +13 -42
- package/dist/stream-broker/index.mjs +13 -42
- package/dist/stream-broker/remoteEntry.js +1 -1
- package/dist/{worker-protocol-Bpz62eyB.js → worker-protocol-CxvZ6FP4.js} +1 -1
- package/dist/{worker-protocol-wMS29PG9.mjs → worker-protocol-DYOG2ris.mjs} +1 -1
- package/package.json +4 -1
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-xdmO8wYp.mjs +0 -26
- package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BrTM_tsb.mjs +0 -26
|
@@ -5955,6 +5955,40 @@ var BaseAddon = class {
|
|
|
5955
5955
|
deviceSettingsSchema() {
|
|
5956
5956
|
return null;
|
|
5957
5957
|
}
|
|
5958
|
+
/**
|
|
5959
|
+
* INTEGRATION-LEVEL SETTINGS — declare which of this addon's global sections
|
|
5960
|
+
* ARE the configuration of its integration.
|
|
5961
|
+
*
|
|
5962
|
+
* Return the `ConfigSection.id`s, from {@link globalSettingsSchema}, that an
|
|
5963
|
+
* operator should find on the addon's integration page (System →
|
|
5964
|
+
* Integrations → <name>) rather than only in the cluster-wide list of every
|
|
5965
|
+
* addon. Empty (the default) means the addon has no integration-level
|
|
5966
|
+
* settings and no such surface is offered — this is opt-in, because whether
|
|
5967
|
+
* an addon's configuration IS its integration's configuration depends on the
|
|
5968
|
+
* nature of the integration.
|
|
5969
|
+
*
|
|
5970
|
+
* WHAT THIS IS NOT. It is not a scope. The selected sections keep living in
|
|
5971
|
+
* the ONE global schema, in the ONE addon store, written by the ONE
|
|
5972
|
+
* `updateGlobalSettings` path. There is deliberately no
|
|
5973
|
+
* `updateIntegrationSettings`: a second write path is how a surface acquires
|
|
5974
|
+
* a second store key, and this repo has shipped that twice (`btmPath@hub`,
|
|
5975
|
+
* D266). Selecting sections cannot introduce a key that selecting cannot.
|
|
5976
|
+
*
|
|
5977
|
+
* WHY IT IS A LIST OF SECTION IDS AND NOT A MARKER ON THE SECTION.
|
|
5978
|
+
* `ConfigFieldBase` used to carry `scope?: 'device' | 'global'` and it was
|
|
5979
|
+
* removed with the reason recorded at
|
|
5980
|
+
* `packages/types/src/interfaces/config-ui.ts:249` — *"a field's scope is
|
|
5981
|
+
* determined by WHICH schema it lives in, not by a field-level marker."* A
|
|
5982
|
+
* marker sprinkled across sections also has to borrow a field that already
|
|
5983
|
+
* means something else; borrowing `section.tab` put the literal word
|
|
5984
|
+
* "integration" into an operator-facing tab bar, because `tab` means "how to
|
|
5985
|
+
* GROUP this visually" and cannot also mean "where this lives" (D269
|
|
5986
|
+
* supersedes D268). One declaration, in one place, next to the schema whose
|
|
5987
|
+
* ids it names.
|
|
5988
|
+
*/
|
|
5989
|
+
integrationSettingSections() {
|
|
5990
|
+
return [];
|
|
5991
|
+
}
|
|
5958
5992
|
async getGlobalSettings(overlay, cap, nodeId) {
|
|
5959
5993
|
const schema = this.globalSettingsSchema(cap);
|
|
5960
5994
|
if (!schema) return { sections: [] };
|
|
@@ -5965,6 +5999,55 @@ var BaseAddon = class {
|
|
|
5965
5999
|
} : projected);
|
|
5966
6000
|
}
|
|
5967
6001
|
/**
|
|
6002
|
+
* The integration-level view of this addon's settings: exactly the sections
|
|
6003
|
+
* named by {@link integrationSettingSections}, hydrated from the SAME store
|
|
6004
|
+
* `getGlobalSettings` reads, and narrowed to cluster-scoped fields.
|
|
6005
|
+
*
|
|
6006
|
+
* Returns `null` when the addon declared nothing — an addon that opts out has
|
|
6007
|
+
* no integration settings surface at all, rather than an empty one that reads
|
|
6008
|
+
* as a failed load.
|
|
6009
|
+
*
|
|
6010
|
+
* Three properties hold BY CONSTRUCTION, which is why they are here in core
|
|
6011
|
+
* and not in whichever UI happens to render this:
|
|
6012
|
+
*
|
|
6013
|
+
* 1. **One key.** The payload is a SUBSET of the global schema, so a field
|
|
6014
|
+
* shown here is the same field, with the same bare key, that the addon's
|
|
6015
|
+
* own page shows. There is no integration-specific writer — callers save
|
|
6016
|
+
* through `updateGlobalSettings` — so a second store key is unreachable,
|
|
6017
|
+
* not merely discouraged.
|
|
6018
|
+
* 2. **No node scope.** `perNode: true` fields are DROPPED. Their store key
|
|
6019
|
+
* is `<key>@<nodeId>` and an integration is not a node; whichever node
|
|
6020
|
+
* such a field silently picked would be a wrong answer for the operator
|
|
6021
|
+
* who opened the page (D266).
|
|
6022
|
+
* 3. **No silent typo.** A declared id that names no section throws. The
|
|
6023
|
+
* alternative — skip it — turns a rename into a surface that quietly
|
|
6024
|
+
* empties, which looks exactly like an addon with nothing to configure.
|
|
6025
|
+
*/
|
|
6026
|
+
async getIntegrationSettings(nodeId) {
|
|
6027
|
+
const declared = this.integrationSettingSections();
|
|
6028
|
+
if (declared.length === 0) return null;
|
|
6029
|
+
const schema = this.globalSettingsSchema();
|
|
6030
|
+
if (!schema) throw new Error(`${this.constructor.name}: integrationSettingSections() names [${declared.join(", ")}] but globalSettingsSchema() returns null.`);
|
|
6031
|
+
const byId = new Map(schema.sections.map((section) => [section.id, section]));
|
|
6032
|
+
const sections = [];
|
|
6033
|
+
for (const id of declared) {
|
|
6034
|
+
const section = byId.get(id);
|
|
6035
|
+
if (!section) throw new Error(`${this.constructor.name}: integrationSettingSections() names unknown section "${id}". Known sections: [${[...byId.keys()].join(", ")}].`);
|
|
6036
|
+
const fields = dropPerNodeFields(section.fields);
|
|
6037
|
+
if (fields.length === 0) continue;
|
|
6038
|
+
sections.push({
|
|
6039
|
+
...section,
|
|
6040
|
+
fields
|
|
6041
|
+
});
|
|
6042
|
+
}
|
|
6043
|
+
if (sections.length === 0) return null;
|
|
6044
|
+
const projected = await this.resolveGlobalStore(nodeId);
|
|
6045
|
+
return hydrateSchema({
|
|
6046
|
+
...schema,
|
|
6047
|
+
sections
|
|
6048
|
+
}, projected);
|
|
6049
|
+
}
|
|
6050
|
+
/**
|
|
5968
6051
|
* The raw addon store PROJECTED onto the target node's bare per-node keys:
|
|
5969
6052
|
* every `perNode: true` field carries THAT node's scoped value on its bare
|
|
5970
6053
|
* key (absent scoped key ⇒ key absent, so the schema `default` wins — no
|
|
@@ -6268,6 +6351,41 @@ var BaseAddon = class {
|
|
|
6268
6351
|
* `hydrateSchema` does. Valueless structural fields (separator/info/…)
|
|
6269
6352
|
* don't declare `perNode` and are excluded by the `in` narrowing.
|
|
6270
6353
|
*/
|
|
6354
|
+
/**
|
|
6355
|
+
* The same fields with every `perNode: true` one removed, recursing into layout
|
|
6356
|
+
* containers exactly as {@link collectPerNodeFieldKeys} does. A container left
|
|
6357
|
+
* with no child is dropped rather than rendered empty.
|
|
6358
|
+
*
|
|
6359
|
+
* Used by `getIntegrationSettings`: an integration is not a node, so a field
|
|
6360
|
+
* whose store key is `<key>@<nodeId>` has no node to belong to there.
|
|
6361
|
+
*/
|
|
6362
|
+
function dropPerNodeFields(fields) {
|
|
6363
|
+
const kept = [];
|
|
6364
|
+
for (const field of fields) {
|
|
6365
|
+
if (field.type === "group") {
|
|
6366
|
+
const inner = dropPerNodeFields(field.fields);
|
|
6367
|
+
if (inner.length > 0) kept.push({
|
|
6368
|
+
...field,
|
|
6369
|
+
fields: inner
|
|
6370
|
+
});
|
|
6371
|
+
continue;
|
|
6372
|
+
}
|
|
6373
|
+
if (field.type === "sub-tabs") {
|
|
6374
|
+
const tabs = field.tabs.map((tab) => ({
|
|
6375
|
+
...tab,
|
|
6376
|
+
fields: dropPerNodeFields(tab.fields)
|
|
6377
|
+
})).filter((tab) => tab.fields.length > 0);
|
|
6378
|
+
if (tabs.length > 0) kept.push({
|
|
6379
|
+
...field,
|
|
6380
|
+
tabs
|
|
6381
|
+
});
|
|
6382
|
+
continue;
|
|
6383
|
+
}
|
|
6384
|
+
if ("perNode" in field && field.perNode === true) continue;
|
|
6385
|
+
kept.push(field);
|
|
6386
|
+
}
|
|
6387
|
+
return kept;
|
|
6388
|
+
}
|
|
6271
6389
|
function collectPerNodeFieldKeys(fields) {
|
|
6272
6390
|
const collected = [];
|
|
6273
6391
|
for (const field of fields) {
|
|
@@ -9567,6 +9685,112 @@ var DecoderSessionConfigSchema = object({
|
|
|
9567
9685
|
*/
|
|
9568
9686
|
debug: boolean().optional()
|
|
9569
9687
|
});
|
|
9688
|
+
/**
|
|
9689
|
+
* Distinct (device, family, variant) counters one instance will hold.
|
|
9690
|
+
*
|
|
9691
|
+
* A large fleet x the handful of families any single addon reports, with
|
|
9692
|
+
* slack. At ~200 B per counter this is a ~100 KB ceiling on a process that
|
|
9693
|
+
* already declares an RSS budget in the gigabytes.
|
|
9694
|
+
*/
|
|
9695
|
+
var MAX_KEYS = 1024;
|
|
9696
|
+
/**
|
|
9697
|
+
* Where reasons past {@link MAX_REASONS_PER_KEY} go.
|
|
9698
|
+
*
|
|
9699
|
+
* They are FOLDED, never dropped: `attempts - succeeded` must always equal the
|
|
9700
|
+
* sum of the reason counts, or the ratio stops adding up.
|
|
9701
|
+
*/
|
|
9702
|
+
var OVERFLOW_REASON = "other";
|
|
9703
|
+
/** `deviceId` + `family` + optional `variant`, flattened into the map key. */
|
|
9704
|
+
function counterKey(deviceId, family, variant) {
|
|
9705
|
+
return variant === void 0 ? `${deviceId}${family}` : `${deviceId}${family}${variant}`;
|
|
9706
|
+
}
|
|
9707
|
+
/**
|
|
9708
|
+
* A bounded set of per-camera, cumulative failure counters.
|
|
9709
|
+
*
|
|
9710
|
+
* One instance per contributing subsystem. `note` is O(1) and allocation-free
|
|
9711
|
+
* on the steady path; `snapshot` reads without mutating anything.
|
|
9712
|
+
*/
|
|
9713
|
+
var FailureCounters = class {
|
|
9714
|
+
maxKeys;
|
|
9715
|
+
maxReasons;
|
|
9716
|
+
counters = /* @__PURE__ */ new Map();
|
|
9717
|
+
refused = 0;
|
|
9718
|
+
constructor(maxKeys = MAX_KEYS, maxReasons = 16) {
|
|
9719
|
+
this.maxKeys = maxKeys;
|
|
9720
|
+
this.maxReasons = maxReasons;
|
|
9721
|
+
}
|
|
9722
|
+
/**
|
|
9723
|
+
* Counters refused because {@link MAX_KEYS} was already held.
|
|
9724
|
+
*
|
|
9725
|
+
* Cumulative for the life of the instance: a bound that bit is a fact about
|
|
9726
|
+
* the deployment, and a surface that hid it would under-report a fleet
|
|
9727
|
+
* precisely when the fleet got large enough to matter.
|
|
9728
|
+
*/
|
|
9729
|
+
get keysRefused() {
|
|
9730
|
+
return this.refused;
|
|
9731
|
+
}
|
|
9732
|
+
/** Counters currently held. */
|
|
9733
|
+
get size() {
|
|
9734
|
+
return this.counters.size;
|
|
9735
|
+
}
|
|
9736
|
+
/**
|
|
9737
|
+
* Fold one observation in.
|
|
9738
|
+
*
|
|
9739
|
+
* A non-positive or non-integer `deviceId` is REFUSED rather than bucketed:
|
|
9740
|
+
* see the module docblock — an entry that cannot name its camera is worse
|
|
9741
|
+
* than no entry.
|
|
9742
|
+
*/
|
|
9743
|
+
note(observation, nowMs) {
|
|
9744
|
+
if (!Number.isInteger(observation.deviceId) || observation.deviceId <= 0) return;
|
|
9745
|
+
const key = counterKey(observation.deviceId, observation.family, observation.variant);
|
|
9746
|
+
let counter = this.counters.get(key);
|
|
9747
|
+
if (counter === void 0) {
|
|
9748
|
+
if (this.counters.size >= this.maxKeys) {
|
|
9749
|
+
this.refused += 1;
|
|
9750
|
+
return;
|
|
9751
|
+
}
|
|
9752
|
+
counter = {
|
|
9753
|
+
deviceId: observation.deviceId,
|
|
9754
|
+
family: observation.family,
|
|
9755
|
+
variant: observation.variant,
|
|
9756
|
+
sinceMs: nowMs,
|
|
9757
|
+
attempts: 0,
|
|
9758
|
+
succeeded: 0,
|
|
9759
|
+
reasons: /* @__PURE__ */ new Map()
|
|
9760
|
+
};
|
|
9761
|
+
this.counters.set(key, counter);
|
|
9762
|
+
}
|
|
9763
|
+
counter.attempts += 1;
|
|
9764
|
+
if (observation.reason === void 0) {
|
|
9765
|
+
counter.succeeded += 1;
|
|
9766
|
+
return;
|
|
9767
|
+
}
|
|
9768
|
+
const reason = counter.reasons.has(observation.reason) || counter.reasons.size < this.maxReasons ? observation.reason : OVERFLOW_REASON;
|
|
9769
|
+
counter.reasons.set(reason, (counter.reasons.get(reason) ?? 0) + 1);
|
|
9770
|
+
}
|
|
9771
|
+
/** Read every counter. Never mutates — see the module docblock. */
|
|
9772
|
+
snapshot(nowMs) {
|
|
9773
|
+
const out = [];
|
|
9774
|
+
for (const counter of this.counters.values()) out.push({
|
|
9775
|
+
deviceId: counter.deviceId,
|
|
9776
|
+
family: counter.family,
|
|
9777
|
+
...counter.variant !== void 0 ? { variant: counter.variant } : {},
|
|
9778
|
+
sinceMs: counter.sinceMs,
|
|
9779
|
+
atMs: nowMs,
|
|
9780
|
+
attempts: counter.attempts,
|
|
9781
|
+
succeeded: counter.succeeded,
|
|
9782
|
+
reasons: [...counter.reasons.entries()].map(([reason, count]) => ({
|
|
9783
|
+
reason,
|
|
9784
|
+
count
|
|
9785
|
+
})).toSorted((a, b) => b.count - a.count)
|
|
9786
|
+
});
|
|
9787
|
+
return out;
|
|
9788
|
+
}
|
|
9789
|
+
/** Drop everything (host disposal). */
|
|
9790
|
+
clear() {
|
|
9791
|
+
this.counters.clear();
|
|
9792
|
+
}
|
|
9793
|
+
};
|
|
9570
9794
|
var MODEL_FORMATS = [
|
|
9571
9795
|
"onnx",
|
|
9572
9796
|
"coreml",
|
|
@@ -10765,6 +10989,9 @@ method(object({
|
|
|
10765
10989
|
kind: "mutation",
|
|
10766
10990
|
auth: "admin"
|
|
10767
10991
|
}), method(object({
|
|
10992
|
+
addonId: string(),
|
|
10993
|
+
nodeId: string().optional()
|
|
10994
|
+
}), SettingsSchemaWithValuesSchema.nullable()), method(object({
|
|
10768
10995
|
addonId: string(),
|
|
10769
10996
|
deviceId: number(),
|
|
10770
10997
|
nodeId: string().optional()
|
|
@@ -11152,8 +11379,7 @@ var AUDIO_BACKEND_CHOICES = [
|
|
|
11152
11379
|
];
|
|
11153
11380
|
var DEFAULT_AUDIO_ANALYZER_CONFIG = {
|
|
11154
11381
|
audioBackend: "auto",
|
|
11155
|
-
probedBestAudioBackend: ""
|
|
11156
|
-
selectedAudioModel: ""
|
|
11382
|
+
probedBestAudioBackend: ""
|
|
11157
11383
|
};
|
|
11158
11384
|
var audioAnalyzerCapability = {
|
|
11159
11385
|
name: "audio-analyzer",
|
|
@@ -14933,6 +15159,133 @@ method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
|
|
|
14933
15159
|
limit: number().optional(),
|
|
14934
15160
|
tags: record(string(), string()).optional()
|
|
14935
15161
|
}), array(LogEntrySchema).readonly());
|
|
15162
|
+
/**
|
|
15163
|
+
* `failure-contribution` — the capability an addon reports its OWN losses
|
|
15164
|
+
* through, per camera, with the denominator attached. It stores nothing.
|
|
15165
|
+
*
|
|
15166
|
+
* ## The twin of `load-contribution`, and why it is a twin and not a field
|
|
15167
|
+
*
|
|
15168
|
+
* `load-contribution` answers *what did this camera COST*. This answers *what
|
|
15169
|
+
* did this camera LOSE*. The reporting discipline is identical and deliberately
|
|
15170
|
+
* copied: the contributor reports what it already knows, hub-main adds only
|
|
15171
|
+
* `addonId`, nothing needs global knowledge, and there is no central list for
|
|
15172
|
+
* somebody to forget to edit.
|
|
15173
|
+
*
|
|
15174
|
+
* They are not merged, because their invariants are opposites:
|
|
15175
|
+
*
|
|
15176
|
+
* - a `load-contribution` measurement is **absent, never zero** — a zero would
|
|
15177
|
+
* claim a camera cost nothing, which is a measurement nobody made;
|
|
15178
|
+
* - a `failure-contribution` zero is the **most valuable value on the
|
|
15179
|
+
* surface** — `attempts: 400, succeeded: 400` is the proof a fix landed,
|
|
15180
|
+
* and it is exactly what an absent entry cannot say.
|
|
15181
|
+
*
|
|
15182
|
+
* Putting a loss counter on a cost entry would also break the reconciliation
|
|
15183
|
+
* that gives `load-contribution` its point: contributions are subtracted from
|
|
15184
|
+
* `metrics.node-processes-snapshot` to find processes nobody claims. A failure
|
|
15185
|
+
* has no process.
|
|
15186
|
+
*
|
|
15187
|
+
* ## Why not a log line, since the counters already exist
|
|
15188
|
+
*
|
|
15189
|
+
* Several of these paths already counted themselves — `CaptureScheduler`'s
|
|
15190
|
+
* per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
|
|
15191
|
+
* ends in a log line, and a log line is the thing the operator asked to stop
|
|
15192
|
+
* needing: *"possiamo armare questi errori intanto? Così al prossimo giro
|
|
15193
|
+
* ricontrolliamo tutti questi punti"*. Reading them meant grepping Loki and
|
|
15194
|
+
* hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
|
|
15195
|
+
* media blackout were both diagnosed. The counters stay; this is where they can
|
|
15196
|
+
* be READ.
|
|
15197
|
+
*
|
|
15198
|
+
* ## The rate is served with its denominator or not at all
|
|
15199
|
+
*
|
|
15200
|
+
* Every entry carries `attempts` and `succeeded`. A miss count alone is
|
|
15201
|
+
* unreadable: on 2026-08-28 the enrichment-crop miss count read as "35x worse
|
|
15202
|
+
* than yesterday" and was **flat across twelve hours** once divided by the
|
|
15203
|
+
* successes on the same path. A surface that publishes only the numerator
|
|
15204
|
+
* reproduces that mistake on every read.
|
|
15205
|
+
*
|
|
15206
|
+
* ## Shape
|
|
15207
|
+
*
|
|
15208
|
+
* Copied from `load-contribution.cap.ts` (`mode: 'collection'`,
|
|
15209
|
+
* `internal: true`, `mount: { kind: 'skip' }`): no tRPC route of its own and no
|
|
15210
|
+
* generated hooks, while `addons.listCapabilityProviders` still enumerates it
|
|
15211
|
+
* and the hub's `CapabilityRegistry` still holds an RPC proxy per provider — so
|
|
15212
|
+
* a forked runner's entries reach hub-main over transport that already exists.
|
|
15213
|
+
* No new UDS message, no second registry (D3). The operator reads the assembled
|
|
15214
|
+
* result through `system.getFailureContributions`.
|
|
15215
|
+
*/
|
|
15216
|
+
var FailureReasonCountSchema = object({
|
|
15217
|
+
/**
|
|
15218
|
+
* Why the attempt did not land, in the contributor's own vocabulary —
|
|
15219
|
+
* `worker-lease-gone`, `queue-overflow`, `timeout`, `empty-read`. The same
|
|
15220
|
+
* strings that already appear in this repo's logs and, where one exists, the
|
|
15221
|
+
* same string the per-track `previewMissReason` records (D276): a second
|
|
15222
|
+
* vocabulary for the same loss would make the row and the counter
|
|
15223
|
+
* un-joinable.
|
|
15224
|
+
*/
|
|
15225
|
+
reason: string(),
|
|
15226
|
+
count: number().int().nonnegative()
|
|
15227
|
+
});
|
|
15228
|
+
var FailureContributionSchema = object({
|
|
15229
|
+
/**
|
|
15230
|
+
* The failing path — `enrichment-crop`, `inference`, `plate-ocr`,
|
|
15231
|
+
* `person-over-vehicle`. Free text, for the reason `load-contribution` keeps
|
|
15232
|
+
* `unit` free: the families are owned by different addons and a shared enum
|
|
15233
|
+
* is a central list that rots invisibly.
|
|
15234
|
+
*/
|
|
15235
|
+
family: string(),
|
|
15236
|
+
/**
|
|
15237
|
+
* The NUMERIC device id — the same value every log line carries as
|
|
15238
|
+
* `tags.deviceId`. Never nullable and never absent: a contributor that
|
|
15239
|
+
* cannot name the camera must not emit the entry, because a fleet total
|
|
15240
|
+
* cannot answer the only question anybody asks of this surface.
|
|
15241
|
+
*/
|
|
15242
|
+
deviceId: number().int().positive(),
|
|
15243
|
+
/**
|
|
15244
|
+
* A second dimension inside the family: the model / step id for an inference
|
|
15245
|
+
* timeout, so "which camera AND which model" is one read. Absent when the
|
|
15246
|
+
* family has a single variant.
|
|
15247
|
+
*/
|
|
15248
|
+
variant: string().optional(),
|
|
15249
|
+
/**
|
|
15250
|
+
* Epoch ms this counter started — the INCARNATION MARKER. A consumer
|
|
15251
|
+
* differencing two reads must drop the interval when it changes, because the
|
|
15252
|
+
* counter restarted from zero in a respawned runner. Same discipline as
|
|
15253
|
+
* `LoadContribution.startedAtMs`.
|
|
15254
|
+
*/
|
|
15255
|
+
sinceMs: number(),
|
|
15256
|
+
/** Epoch ms it was read. `atMs - sinceMs` is the interval this covers. */
|
|
15257
|
+
atMs: number(),
|
|
15258
|
+
/**
|
|
15259
|
+
* THE DENOMINATOR — every attempt on this path for this camera in the
|
|
15260
|
+
* window. A failure count published without it is the mistake this schema
|
|
15261
|
+
* exists to make impossible.
|
|
15262
|
+
*/
|
|
15263
|
+
attempts: number().int().nonnegative(),
|
|
15264
|
+
/** Attempts that landed. `attempts - succeeded` is the loss. */
|
|
15265
|
+
succeeded: number().int().nonnegative(),
|
|
15266
|
+
/** The loss, partitioned. Sums to `attempts - succeeded`. */
|
|
15267
|
+
reasons: array(FailureReasonCountSchema).readonly()
|
|
15268
|
+
});
|
|
15269
|
+
var failureContributionCapability = {
|
|
15270
|
+
name: "failure-contribution",
|
|
15271
|
+
scope: "system",
|
|
15272
|
+
mode: "collection",
|
|
15273
|
+
internal: true,
|
|
15274
|
+
methods: {
|
|
15275
|
+
/**
|
|
15276
|
+
* This addon's per-camera failure counters, read live from bounded in-RAM
|
|
15277
|
+
* state it already keeps. Inert: no persistence, no sampling, no timer.
|
|
15278
|
+
*
|
|
15279
|
+
* READING NEVER RESETS. The counters are CUMULATIVE since `sinceMs`, and a
|
|
15280
|
+
* consumer that wants a rate differences two reads. A draining read would
|
|
15281
|
+
* make two operators with the page open each destroy half of the other's
|
|
15282
|
+
* numbers, and `load-contribution` already settled the same question the
|
|
15283
|
+
* same way for `cpuSeconds`.
|
|
15284
|
+
*/
|
|
15285
|
+
list: method(_void(), array(FailureContributionSchema).readonly()) },
|
|
15286
|
+
/** In-process only — enumerated through `addons.listCapabilityProviders`. */
|
|
15287
|
+
mount: { kind: "skip" }
|
|
15288
|
+
};
|
|
14936
15289
|
var LoadContributionSchema = object({
|
|
14937
15290
|
role: _enum([
|
|
14938
15291
|
"decode",
|
|
@@ -19986,6 +20339,20 @@ var TrackSchema = object({
|
|
|
19986
20339
|
* `=== true` and render nothing otherwise — never infer "no rider".
|
|
19987
20340
|
*/
|
|
19988
20341
|
hasRider: boolean().optional(),
|
|
20342
|
+
/**
|
|
20343
|
+
* WHY this track ended without a NATIVE best-shot tile
|
|
20344
|
+
* ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
|
|
20345
|
+
* a composed token line (`no-key-frame capture=keyframe:native-missx4`,
|
|
20346
|
+
* `derive-returned-null tile=standin`, …) written at close and CLEARED by
|
|
20347
|
+
* the late-keyFrame upgrade when a native tile lands after all. The
|
|
20348
|
+
* operator-facing answer to "perché manca l'immagine?" on a track whose
|
|
20349
|
+
* tile is a face/plate stand-in, a raster crop, or an icon.
|
|
20350
|
+
*
|
|
20351
|
+
* **Absent ≠ "missed silently"**: a row written before the column, a hub
|
|
20352
|
+
* that predates the field, and every track whose tile landed native all
|
|
20353
|
+
* omit it. Render nothing when absent.
|
|
20354
|
+
*/
|
|
20355
|
+
previewMissReason: string().optional(),
|
|
19989
20356
|
...TrackFlagFields,
|
|
19990
20357
|
...TrackRetrainFields
|
|
19991
20358
|
});
|
|
@@ -29682,6 +30049,13 @@ var LoggingSettingsPatchSchema = object({
|
|
|
29682
30049
|
* anyone but its owner.
|
|
29683
30050
|
*/
|
|
29684
30051
|
var ReportedLoadContributionSchema = LoadContributionSchema.extend({ addonId: string() });
|
|
30052
|
+
/**
|
|
30053
|
+
* One per-camera failure counter, plus WHO reported it.
|
|
30054
|
+
*
|
|
30055
|
+
* Same rule as {@link ReportedLoadContributionSchema}: `addonId` is stamped by
|
|
30056
|
+
* the hub as it enumerates providers, never by the contributor.
|
|
30057
|
+
*/
|
|
30058
|
+
var ReportedFailureContributionSchema = FailureContributionSchema.extend({ addonId: string() });
|
|
29685
30059
|
var GetLoggingSettingsInputSchema = object({
|
|
29686
30060
|
scopeNodeId: string().optional(),
|
|
29687
30061
|
/**
|
|
@@ -29740,7 +30114,7 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
|
|
|
29740
30114
|
}), method(_void(), SiteLocationStatusSchema, {
|
|
29741
30115
|
kind: "mutation",
|
|
29742
30116
|
auth: "admin"
|
|
29743
|
-
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(_void(), array(ReportedLoadContributionSchema).readonly(), { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
30117
|
+
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(_void(), array(ReportedLoadContributionSchema).readonly(), { auth: "admin" }), method(_void(), array(ReportedFailureContributionSchema).readonly(), { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
29744
30118
|
kind: "mutation",
|
|
29745
30119
|
auth: "admin"
|
|
29746
30120
|
});
|
|
@@ -30813,6 +31187,12 @@ Object.freeze({
|
|
|
30813
31187
|
addonId: null,
|
|
30814
31188
|
access: "view"
|
|
30815
31189
|
},
|
|
31190
|
+
"addonSettings.getIntegrationSettings": {
|
|
31191
|
+
capName: "addon-settings",
|
|
31192
|
+
capScope: "system",
|
|
31193
|
+
addonId: null,
|
|
31194
|
+
access: "view"
|
|
31195
|
+
},
|
|
30816
31196
|
"addonSettings.updateDeviceSettings": {
|
|
30817
31197
|
capName: "addon-settings",
|
|
30818
31198
|
capScope: "system",
|
|
@@ -32475,6 +32855,12 @@ Object.freeze({
|
|
|
32475
32855
|
addonId: null,
|
|
32476
32856
|
access: "create"
|
|
32477
32857
|
},
|
|
32858
|
+
"failureContribution.list": {
|
|
32859
|
+
capName: "failure-contribution",
|
|
32860
|
+
capScope: "system",
|
|
32861
|
+
addonId: null,
|
|
32862
|
+
access: "view"
|
|
32863
|
+
},
|
|
32478
32864
|
"fanControl.setDirection": {
|
|
32479
32865
|
capName: "fan-control",
|
|
32480
32866
|
capScope: "device",
|
|
@@ -35781,6 +36167,12 @@ Object.freeze({
|
|
|
35781
36167
|
addonId: null,
|
|
35782
36168
|
access: "create"
|
|
35783
36169
|
},
|
|
36170
|
+
"system.getFailureContributions": {
|
|
36171
|
+
capName: "system",
|
|
36172
|
+
capScope: "system",
|
|
36173
|
+
addonId: null,
|
|
36174
|
+
access: "view"
|
|
36175
|
+
},
|
|
35784
36176
|
"system.getLoadContributions": {
|
|
35785
36177
|
capName: "system",
|
|
35786
36178
|
capScope: "system",
|
|
@@ -39912,6 +40304,12 @@ Object.defineProperty(exports, "ExportRecordSchema", {
|
|
|
39912
40304
|
return ExportRecordSchema;
|
|
39913
40305
|
}
|
|
39914
40306
|
});
|
|
40307
|
+
Object.defineProperty(exports, "FailureCounters", {
|
|
40308
|
+
enumerable: true,
|
|
40309
|
+
get: function() {
|
|
40310
|
+
return FailureCounters;
|
|
40311
|
+
}
|
|
40312
|
+
});
|
|
39915
40313
|
Object.defineProperty(exports, "Fmp4BoxSplitter", {
|
|
39916
40314
|
enumerable: true,
|
|
39917
40315
|
get: function() {
|
|
@@ -40164,6 +40562,12 @@ Object.defineProperty(exports, "evaluateZoneRules", {
|
|
|
40164
40562
|
return evaluateZoneRules;
|
|
40165
40563
|
}
|
|
40166
40564
|
});
|
|
40565
|
+
Object.defineProperty(exports, "failureContributionCapability", {
|
|
40566
|
+
enumerable: true,
|
|
40567
|
+
get: function() {
|
|
40568
|
+
return failureContributionCapability;
|
|
40569
|
+
}
|
|
40570
|
+
});
|
|
40167
40571
|
Object.defineProperty(exports, "hfModelUrl", {
|
|
40168
40572
|
enumerable: true,
|
|
40169
40573
|
get: function() {
|