@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
|
@@ -5932,6 +5932,40 @@ var BaseAddon = class {
|
|
|
5932
5932
|
deviceSettingsSchema() {
|
|
5933
5933
|
return null;
|
|
5934
5934
|
}
|
|
5935
|
+
/**
|
|
5936
|
+
* INTEGRATION-LEVEL SETTINGS — declare which of this addon's global sections
|
|
5937
|
+
* ARE the configuration of its integration.
|
|
5938
|
+
*
|
|
5939
|
+
* Return the `ConfigSection.id`s, from {@link globalSettingsSchema}, that an
|
|
5940
|
+
* operator should find on the addon's integration page (System →
|
|
5941
|
+
* Integrations → <name>) rather than only in the cluster-wide list of every
|
|
5942
|
+
* addon. Empty (the default) means the addon has no integration-level
|
|
5943
|
+
* settings and no such surface is offered — this is opt-in, because whether
|
|
5944
|
+
* an addon's configuration IS its integration's configuration depends on the
|
|
5945
|
+
* nature of the integration.
|
|
5946
|
+
*
|
|
5947
|
+
* WHAT THIS IS NOT. It is not a scope. The selected sections keep living in
|
|
5948
|
+
* the ONE global schema, in the ONE addon store, written by the ONE
|
|
5949
|
+
* `updateGlobalSettings` path. There is deliberately no
|
|
5950
|
+
* `updateIntegrationSettings`: a second write path is how a surface acquires
|
|
5951
|
+
* a second store key, and this repo has shipped that twice (`btmPath@hub`,
|
|
5952
|
+
* D266). Selecting sections cannot introduce a key that selecting cannot.
|
|
5953
|
+
*
|
|
5954
|
+
* WHY IT IS A LIST OF SECTION IDS AND NOT A MARKER ON THE SECTION.
|
|
5955
|
+
* `ConfigFieldBase` used to carry `scope?: 'device' | 'global'` and it was
|
|
5956
|
+
* removed with the reason recorded at
|
|
5957
|
+
* `packages/types/src/interfaces/config-ui.ts:249` — *"a field's scope is
|
|
5958
|
+
* determined by WHICH schema it lives in, not by a field-level marker."* A
|
|
5959
|
+
* marker sprinkled across sections also has to borrow a field that already
|
|
5960
|
+
* means something else; borrowing `section.tab` put the literal word
|
|
5961
|
+
* "integration" into an operator-facing tab bar, because `tab` means "how to
|
|
5962
|
+
* GROUP this visually" and cannot also mean "where this lives" (D269
|
|
5963
|
+
* supersedes D268). One declaration, in one place, next to the schema whose
|
|
5964
|
+
* ids it names.
|
|
5965
|
+
*/
|
|
5966
|
+
integrationSettingSections() {
|
|
5967
|
+
return [];
|
|
5968
|
+
}
|
|
5935
5969
|
async getGlobalSettings(overlay, cap, nodeId) {
|
|
5936
5970
|
const schema = this.globalSettingsSchema(cap);
|
|
5937
5971
|
if (!schema) return { sections: [] };
|
|
@@ -5942,6 +5976,55 @@ var BaseAddon = class {
|
|
|
5942
5976
|
} : projected);
|
|
5943
5977
|
}
|
|
5944
5978
|
/**
|
|
5979
|
+
* The integration-level view of this addon's settings: exactly the sections
|
|
5980
|
+
* named by {@link integrationSettingSections}, hydrated from the SAME store
|
|
5981
|
+
* `getGlobalSettings` reads, and narrowed to cluster-scoped fields.
|
|
5982
|
+
*
|
|
5983
|
+
* Returns `null` when the addon declared nothing — an addon that opts out has
|
|
5984
|
+
* no integration settings surface at all, rather than an empty one that reads
|
|
5985
|
+
* as a failed load.
|
|
5986
|
+
*
|
|
5987
|
+
* Three properties hold BY CONSTRUCTION, which is why they are here in core
|
|
5988
|
+
* and not in whichever UI happens to render this:
|
|
5989
|
+
*
|
|
5990
|
+
* 1. **One key.** The payload is a SUBSET of the global schema, so a field
|
|
5991
|
+
* shown here is the same field, with the same bare key, that the addon's
|
|
5992
|
+
* own page shows. There is no integration-specific writer — callers save
|
|
5993
|
+
* through `updateGlobalSettings` — so a second store key is unreachable,
|
|
5994
|
+
* not merely discouraged.
|
|
5995
|
+
* 2. **No node scope.** `perNode: true` fields are DROPPED. Their store key
|
|
5996
|
+
* is `<key>@<nodeId>` and an integration is not a node; whichever node
|
|
5997
|
+
* such a field silently picked would be a wrong answer for the operator
|
|
5998
|
+
* who opened the page (D266).
|
|
5999
|
+
* 3. **No silent typo.** A declared id that names no section throws. The
|
|
6000
|
+
* alternative — skip it — turns a rename into a surface that quietly
|
|
6001
|
+
* empties, which looks exactly like an addon with nothing to configure.
|
|
6002
|
+
*/
|
|
6003
|
+
async getIntegrationSettings(nodeId) {
|
|
6004
|
+
const declared = this.integrationSettingSections();
|
|
6005
|
+
if (declared.length === 0) return null;
|
|
6006
|
+
const schema = this.globalSettingsSchema();
|
|
6007
|
+
if (!schema) throw new Error(`${this.constructor.name}: integrationSettingSections() names [${declared.join(", ")}] but globalSettingsSchema() returns null.`);
|
|
6008
|
+
const byId = new Map(schema.sections.map((section) => [section.id, section]));
|
|
6009
|
+
const sections = [];
|
|
6010
|
+
for (const id of declared) {
|
|
6011
|
+
const section = byId.get(id);
|
|
6012
|
+
if (!section) throw new Error(`${this.constructor.name}: integrationSettingSections() names unknown section "${id}". Known sections: [${[...byId.keys()].join(", ")}].`);
|
|
6013
|
+
const fields = dropPerNodeFields(section.fields);
|
|
6014
|
+
if (fields.length === 0) continue;
|
|
6015
|
+
sections.push({
|
|
6016
|
+
...section,
|
|
6017
|
+
fields
|
|
6018
|
+
});
|
|
6019
|
+
}
|
|
6020
|
+
if (sections.length === 0) return null;
|
|
6021
|
+
const projected = await this.resolveGlobalStore(nodeId);
|
|
6022
|
+
return hydrateSchema({
|
|
6023
|
+
...schema,
|
|
6024
|
+
sections
|
|
6025
|
+
}, projected);
|
|
6026
|
+
}
|
|
6027
|
+
/**
|
|
5945
6028
|
* The raw addon store PROJECTED onto the target node's bare per-node keys:
|
|
5946
6029
|
* every `perNode: true` field carries THAT node's scoped value on its bare
|
|
5947
6030
|
* key (absent scoped key ⇒ key absent, so the schema `default` wins — no
|
|
@@ -6245,6 +6328,41 @@ var BaseAddon = class {
|
|
|
6245
6328
|
* `hydrateSchema` does. Valueless structural fields (separator/info/…)
|
|
6246
6329
|
* don't declare `perNode` and are excluded by the `in` narrowing.
|
|
6247
6330
|
*/
|
|
6331
|
+
/**
|
|
6332
|
+
* The same fields with every `perNode: true` one removed, recursing into layout
|
|
6333
|
+
* containers exactly as {@link collectPerNodeFieldKeys} does. A container left
|
|
6334
|
+
* with no child is dropped rather than rendered empty.
|
|
6335
|
+
*
|
|
6336
|
+
* Used by `getIntegrationSettings`: an integration is not a node, so a field
|
|
6337
|
+
* whose store key is `<key>@<nodeId>` has no node to belong to there.
|
|
6338
|
+
*/
|
|
6339
|
+
function dropPerNodeFields(fields) {
|
|
6340
|
+
const kept = [];
|
|
6341
|
+
for (const field of fields) {
|
|
6342
|
+
if (field.type === "group") {
|
|
6343
|
+
const inner = dropPerNodeFields(field.fields);
|
|
6344
|
+
if (inner.length > 0) kept.push({
|
|
6345
|
+
...field,
|
|
6346
|
+
fields: inner
|
|
6347
|
+
});
|
|
6348
|
+
continue;
|
|
6349
|
+
}
|
|
6350
|
+
if (field.type === "sub-tabs") {
|
|
6351
|
+
const tabs = field.tabs.map((tab) => ({
|
|
6352
|
+
...tab,
|
|
6353
|
+
fields: dropPerNodeFields(tab.fields)
|
|
6354
|
+
})).filter((tab) => tab.fields.length > 0);
|
|
6355
|
+
if (tabs.length > 0) kept.push({
|
|
6356
|
+
...field,
|
|
6357
|
+
tabs
|
|
6358
|
+
});
|
|
6359
|
+
continue;
|
|
6360
|
+
}
|
|
6361
|
+
if ("perNode" in field && field.perNode === true) continue;
|
|
6362
|
+
kept.push(field);
|
|
6363
|
+
}
|
|
6364
|
+
return kept;
|
|
6365
|
+
}
|
|
6248
6366
|
function collectPerNodeFieldKeys(fields) {
|
|
6249
6367
|
const collected = [];
|
|
6250
6368
|
for (const field of fields) {
|
|
@@ -9544,6 +9662,112 @@ var DecoderSessionConfigSchema = object({
|
|
|
9544
9662
|
*/
|
|
9545
9663
|
debug: boolean().optional()
|
|
9546
9664
|
});
|
|
9665
|
+
/**
|
|
9666
|
+
* Distinct (device, family, variant) counters one instance will hold.
|
|
9667
|
+
*
|
|
9668
|
+
* A large fleet x the handful of families any single addon reports, with
|
|
9669
|
+
* slack. At ~200 B per counter this is a ~100 KB ceiling on a process that
|
|
9670
|
+
* already declares an RSS budget in the gigabytes.
|
|
9671
|
+
*/
|
|
9672
|
+
var MAX_KEYS = 1024;
|
|
9673
|
+
/**
|
|
9674
|
+
* Where reasons past {@link MAX_REASONS_PER_KEY} go.
|
|
9675
|
+
*
|
|
9676
|
+
* They are FOLDED, never dropped: `attempts - succeeded` must always equal the
|
|
9677
|
+
* sum of the reason counts, or the ratio stops adding up.
|
|
9678
|
+
*/
|
|
9679
|
+
var OVERFLOW_REASON = "other";
|
|
9680
|
+
/** `deviceId` + `family` + optional `variant`, flattened into the map key. */
|
|
9681
|
+
function counterKey(deviceId, family, variant) {
|
|
9682
|
+
return variant === void 0 ? `${deviceId}${family}` : `${deviceId}${family}${variant}`;
|
|
9683
|
+
}
|
|
9684
|
+
/**
|
|
9685
|
+
* A bounded set of per-camera, cumulative failure counters.
|
|
9686
|
+
*
|
|
9687
|
+
* One instance per contributing subsystem. `note` is O(1) and allocation-free
|
|
9688
|
+
* on the steady path; `snapshot` reads without mutating anything.
|
|
9689
|
+
*/
|
|
9690
|
+
var FailureCounters = class {
|
|
9691
|
+
maxKeys;
|
|
9692
|
+
maxReasons;
|
|
9693
|
+
counters = /* @__PURE__ */ new Map();
|
|
9694
|
+
refused = 0;
|
|
9695
|
+
constructor(maxKeys = MAX_KEYS, maxReasons = 16) {
|
|
9696
|
+
this.maxKeys = maxKeys;
|
|
9697
|
+
this.maxReasons = maxReasons;
|
|
9698
|
+
}
|
|
9699
|
+
/**
|
|
9700
|
+
* Counters refused because {@link MAX_KEYS} was already held.
|
|
9701
|
+
*
|
|
9702
|
+
* Cumulative for the life of the instance: a bound that bit is a fact about
|
|
9703
|
+
* the deployment, and a surface that hid it would under-report a fleet
|
|
9704
|
+
* precisely when the fleet got large enough to matter.
|
|
9705
|
+
*/
|
|
9706
|
+
get keysRefused() {
|
|
9707
|
+
return this.refused;
|
|
9708
|
+
}
|
|
9709
|
+
/** Counters currently held. */
|
|
9710
|
+
get size() {
|
|
9711
|
+
return this.counters.size;
|
|
9712
|
+
}
|
|
9713
|
+
/**
|
|
9714
|
+
* Fold one observation in.
|
|
9715
|
+
*
|
|
9716
|
+
* A non-positive or non-integer `deviceId` is REFUSED rather than bucketed:
|
|
9717
|
+
* see the module docblock — an entry that cannot name its camera is worse
|
|
9718
|
+
* than no entry.
|
|
9719
|
+
*/
|
|
9720
|
+
note(observation, nowMs) {
|
|
9721
|
+
if (!Number.isInteger(observation.deviceId) || observation.deviceId <= 0) return;
|
|
9722
|
+
const key = counterKey(observation.deviceId, observation.family, observation.variant);
|
|
9723
|
+
let counter = this.counters.get(key);
|
|
9724
|
+
if (counter === void 0) {
|
|
9725
|
+
if (this.counters.size >= this.maxKeys) {
|
|
9726
|
+
this.refused += 1;
|
|
9727
|
+
return;
|
|
9728
|
+
}
|
|
9729
|
+
counter = {
|
|
9730
|
+
deviceId: observation.deviceId,
|
|
9731
|
+
family: observation.family,
|
|
9732
|
+
variant: observation.variant,
|
|
9733
|
+
sinceMs: nowMs,
|
|
9734
|
+
attempts: 0,
|
|
9735
|
+
succeeded: 0,
|
|
9736
|
+
reasons: /* @__PURE__ */ new Map()
|
|
9737
|
+
};
|
|
9738
|
+
this.counters.set(key, counter);
|
|
9739
|
+
}
|
|
9740
|
+
counter.attempts += 1;
|
|
9741
|
+
if (observation.reason === void 0) {
|
|
9742
|
+
counter.succeeded += 1;
|
|
9743
|
+
return;
|
|
9744
|
+
}
|
|
9745
|
+
const reason = counter.reasons.has(observation.reason) || counter.reasons.size < this.maxReasons ? observation.reason : OVERFLOW_REASON;
|
|
9746
|
+
counter.reasons.set(reason, (counter.reasons.get(reason) ?? 0) + 1);
|
|
9747
|
+
}
|
|
9748
|
+
/** Read every counter. Never mutates — see the module docblock. */
|
|
9749
|
+
snapshot(nowMs) {
|
|
9750
|
+
const out = [];
|
|
9751
|
+
for (const counter of this.counters.values()) out.push({
|
|
9752
|
+
deviceId: counter.deviceId,
|
|
9753
|
+
family: counter.family,
|
|
9754
|
+
...counter.variant !== void 0 ? { variant: counter.variant } : {},
|
|
9755
|
+
sinceMs: counter.sinceMs,
|
|
9756
|
+
atMs: nowMs,
|
|
9757
|
+
attempts: counter.attempts,
|
|
9758
|
+
succeeded: counter.succeeded,
|
|
9759
|
+
reasons: [...counter.reasons.entries()].map(([reason, count]) => ({
|
|
9760
|
+
reason,
|
|
9761
|
+
count
|
|
9762
|
+
})).toSorted((a, b) => b.count - a.count)
|
|
9763
|
+
});
|
|
9764
|
+
return out;
|
|
9765
|
+
}
|
|
9766
|
+
/** Drop everything (host disposal). */
|
|
9767
|
+
clear() {
|
|
9768
|
+
this.counters.clear();
|
|
9769
|
+
}
|
|
9770
|
+
};
|
|
9547
9771
|
var MODEL_FORMATS = [
|
|
9548
9772
|
"onnx",
|
|
9549
9773
|
"coreml",
|
|
@@ -10742,6 +10966,9 @@ method(object({
|
|
|
10742
10966
|
kind: "mutation",
|
|
10743
10967
|
auth: "admin"
|
|
10744
10968
|
}), method(object({
|
|
10969
|
+
addonId: string(),
|
|
10970
|
+
nodeId: string().optional()
|
|
10971
|
+
}), SettingsSchemaWithValuesSchema.nullable()), method(object({
|
|
10745
10972
|
addonId: string(),
|
|
10746
10973
|
deviceId: number(),
|
|
10747
10974
|
nodeId: string().optional()
|
|
@@ -11129,8 +11356,7 @@ var AUDIO_BACKEND_CHOICES = [
|
|
|
11129
11356
|
];
|
|
11130
11357
|
var DEFAULT_AUDIO_ANALYZER_CONFIG = {
|
|
11131
11358
|
audioBackend: "auto",
|
|
11132
|
-
probedBestAudioBackend: ""
|
|
11133
|
-
selectedAudioModel: ""
|
|
11359
|
+
probedBestAudioBackend: ""
|
|
11134
11360
|
};
|
|
11135
11361
|
var audioAnalyzerCapability = {
|
|
11136
11362
|
name: "audio-analyzer",
|
|
@@ -14910,6 +15136,133 @@ method(LogEntrySchema, _void(), { kind: "mutation" }), method(object({
|
|
|
14910
15136
|
limit: number().optional(),
|
|
14911
15137
|
tags: record(string(), string()).optional()
|
|
14912
15138
|
}), array(LogEntrySchema).readonly());
|
|
15139
|
+
/**
|
|
15140
|
+
* `failure-contribution` — the capability an addon reports its OWN losses
|
|
15141
|
+
* through, per camera, with the denominator attached. It stores nothing.
|
|
15142
|
+
*
|
|
15143
|
+
* ## The twin of `load-contribution`, and why it is a twin and not a field
|
|
15144
|
+
*
|
|
15145
|
+
* `load-contribution` answers *what did this camera COST*. This answers *what
|
|
15146
|
+
* did this camera LOSE*. The reporting discipline is identical and deliberately
|
|
15147
|
+
* copied: the contributor reports what it already knows, hub-main adds only
|
|
15148
|
+
* `addonId`, nothing needs global knowledge, and there is no central list for
|
|
15149
|
+
* somebody to forget to edit.
|
|
15150
|
+
*
|
|
15151
|
+
* They are not merged, because their invariants are opposites:
|
|
15152
|
+
*
|
|
15153
|
+
* - a `load-contribution` measurement is **absent, never zero** — a zero would
|
|
15154
|
+
* claim a camera cost nothing, which is a measurement nobody made;
|
|
15155
|
+
* - a `failure-contribution` zero is the **most valuable value on the
|
|
15156
|
+
* surface** — `attempts: 400, succeeded: 400` is the proof a fix landed,
|
|
15157
|
+
* and it is exactly what an absent entry cannot say.
|
|
15158
|
+
*
|
|
15159
|
+
* Putting a loss counter on a cost entry would also break the reconciliation
|
|
15160
|
+
* that gives `load-contribution` its point: contributions are subtracted from
|
|
15161
|
+
* `metrics.node-processes-snapshot` to find processes nobody claims. A failure
|
|
15162
|
+
* has no process.
|
|
15163
|
+
*
|
|
15164
|
+
* ## Why not a log line, since the counters already exist
|
|
15165
|
+
*
|
|
15166
|
+
* Several of these paths already counted themselves — `CaptureScheduler`'s
|
|
15167
|
+
* per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
|
|
15168
|
+
* ends in a log line, and a log line is the thing the operator asked to stop
|
|
15169
|
+
* needing: *"possiamo armare questi errori intanto? Così al prossimo giro
|
|
15170
|
+
* ricontrolliamo tutti questi punti"*. Reading them meant grepping Loki and
|
|
15171
|
+
* hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
|
|
15172
|
+
* media blackout were both diagnosed. The counters stay; this is where they can
|
|
15173
|
+
* be READ.
|
|
15174
|
+
*
|
|
15175
|
+
* ## The rate is served with its denominator or not at all
|
|
15176
|
+
*
|
|
15177
|
+
* Every entry carries `attempts` and `succeeded`. A miss count alone is
|
|
15178
|
+
* unreadable: on 2026-08-28 the enrichment-crop miss count read as "35x worse
|
|
15179
|
+
* than yesterday" and was **flat across twelve hours** once divided by the
|
|
15180
|
+
* successes on the same path. A surface that publishes only the numerator
|
|
15181
|
+
* reproduces that mistake on every read.
|
|
15182
|
+
*
|
|
15183
|
+
* ## Shape
|
|
15184
|
+
*
|
|
15185
|
+
* Copied from `load-contribution.cap.ts` (`mode: 'collection'`,
|
|
15186
|
+
* `internal: true`, `mount: { kind: 'skip' }`): no tRPC route of its own and no
|
|
15187
|
+
* generated hooks, while `addons.listCapabilityProviders` still enumerates it
|
|
15188
|
+
* and the hub's `CapabilityRegistry` still holds an RPC proxy per provider — so
|
|
15189
|
+
* a forked runner's entries reach hub-main over transport that already exists.
|
|
15190
|
+
* No new UDS message, no second registry (D3). The operator reads the assembled
|
|
15191
|
+
* result through `system.getFailureContributions`.
|
|
15192
|
+
*/
|
|
15193
|
+
var FailureReasonCountSchema = object({
|
|
15194
|
+
/**
|
|
15195
|
+
* Why the attempt did not land, in the contributor's own vocabulary —
|
|
15196
|
+
* `worker-lease-gone`, `queue-overflow`, `timeout`, `empty-read`. The same
|
|
15197
|
+
* strings that already appear in this repo's logs and, where one exists, the
|
|
15198
|
+
* same string the per-track `previewMissReason` records (D276): a second
|
|
15199
|
+
* vocabulary for the same loss would make the row and the counter
|
|
15200
|
+
* un-joinable.
|
|
15201
|
+
*/
|
|
15202
|
+
reason: string(),
|
|
15203
|
+
count: number().int().nonnegative()
|
|
15204
|
+
});
|
|
15205
|
+
var FailureContributionSchema = object({
|
|
15206
|
+
/**
|
|
15207
|
+
* The failing path — `enrichment-crop`, `inference`, `plate-ocr`,
|
|
15208
|
+
* `person-over-vehicle`. Free text, for the reason `load-contribution` keeps
|
|
15209
|
+
* `unit` free: the families are owned by different addons and a shared enum
|
|
15210
|
+
* is a central list that rots invisibly.
|
|
15211
|
+
*/
|
|
15212
|
+
family: string(),
|
|
15213
|
+
/**
|
|
15214
|
+
* The NUMERIC device id — the same value every log line carries as
|
|
15215
|
+
* `tags.deviceId`. Never nullable and never absent: a contributor that
|
|
15216
|
+
* cannot name the camera must not emit the entry, because a fleet total
|
|
15217
|
+
* cannot answer the only question anybody asks of this surface.
|
|
15218
|
+
*/
|
|
15219
|
+
deviceId: number().int().positive(),
|
|
15220
|
+
/**
|
|
15221
|
+
* A second dimension inside the family: the model / step id for an inference
|
|
15222
|
+
* timeout, so "which camera AND which model" is one read. Absent when the
|
|
15223
|
+
* family has a single variant.
|
|
15224
|
+
*/
|
|
15225
|
+
variant: string().optional(),
|
|
15226
|
+
/**
|
|
15227
|
+
* Epoch ms this counter started — the INCARNATION MARKER. A consumer
|
|
15228
|
+
* differencing two reads must drop the interval when it changes, because the
|
|
15229
|
+
* counter restarted from zero in a respawned runner. Same discipline as
|
|
15230
|
+
* `LoadContribution.startedAtMs`.
|
|
15231
|
+
*/
|
|
15232
|
+
sinceMs: number(),
|
|
15233
|
+
/** Epoch ms it was read. `atMs - sinceMs` is the interval this covers. */
|
|
15234
|
+
atMs: number(),
|
|
15235
|
+
/**
|
|
15236
|
+
* THE DENOMINATOR — every attempt on this path for this camera in the
|
|
15237
|
+
* window. A failure count published without it is the mistake this schema
|
|
15238
|
+
* exists to make impossible.
|
|
15239
|
+
*/
|
|
15240
|
+
attempts: number().int().nonnegative(),
|
|
15241
|
+
/** Attempts that landed. `attempts - succeeded` is the loss. */
|
|
15242
|
+
succeeded: number().int().nonnegative(),
|
|
15243
|
+
/** The loss, partitioned. Sums to `attempts - succeeded`. */
|
|
15244
|
+
reasons: array(FailureReasonCountSchema).readonly()
|
|
15245
|
+
});
|
|
15246
|
+
var failureContributionCapability = {
|
|
15247
|
+
name: "failure-contribution",
|
|
15248
|
+
scope: "system",
|
|
15249
|
+
mode: "collection",
|
|
15250
|
+
internal: true,
|
|
15251
|
+
methods: {
|
|
15252
|
+
/**
|
|
15253
|
+
* This addon's per-camera failure counters, read live from bounded in-RAM
|
|
15254
|
+
* state it already keeps. Inert: no persistence, no sampling, no timer.
|
|
15255
|
+
*
|
|
15256
|
+
* READING NEVER RESETS. The counters are CUMULATIVE since `sinceMs`, and a
|
|
15257
|
+
* consumer that wants a rate differences two reads. A draining read would
|
|
15258
|
+
* make two operators with the page open each destroy half of the other's
|
|
15259
|
+
* numbers, and `load-contribution` already settled the same question the
|
|
15260
|
+
* same way for `cpuSeconds`.
|
|
15261
|
+
*/
|
|
15262
|
+
list: method(_void(), array(FailureContributionSchema).readonly()) },
|
|
15263
|
+
/** In-process only — enumerated through `addons.listCapabilityProviders`. */
|
|
15264
|
+
mount: { kind: "skip" }
|
|
15265
|
+
};
|
|
14913
15266
|
var LoadContributionSchema = object({
|
|
14914
15267
|
role: _enum([
|
|
14915
15268
|
"decode",
|
|
@@ -19963,6 +20316,20 @@ var TrackSchema = object({
|
|
|
19963
20316
|
* `=== true` and render nothing otherwise — never infer "no rider".
|
|
19964
20317
|
*/
|
|
19965
20318
|
hasRider: boolean().optional(),
|
|
20319
|
+
/**
|
|
20320
|
+
* WHY this track ended without a NATIVE best-shot tile
|
|
20321
|
+
* ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
|
|
20322
|
+
* a composed token line (`no-key-frame capture=keyframe:native-missx4`,
|
|
20323
|
+
* `derive-returned-null tile=standin`, …) written at close and CLEARED by
|
|
20324
|
+
* the late-keyFrame upgrade when a native tile lands after all. The
|
|
20325
|
+
* operator-facing answer to "perché manca l'immagine?" on a track whose
|
|
20326
|
+
* tile is a face/plate stand-in, a raster crop, or an icon.
|
|
20327
|
+
*
|
|
20328
|
+
* **Absent ≠ "missed silently"**: a row written before the column, a hub
|
|
20329
|
+
* that predates the field, and every track whose tile landed native all
|
|
20330
|
+
* omit it. Render nothing when absent.
|
|
20331
|
+
*/
|
|
20332
|
+
previewMissReason: string().optional(),
|
|
19966
20333
|
...TrackFlagFields,
|
|
19967
20334
|
...TrackRetrainFields
|
|
19968
20335
|
});
|
|
@@ -29659,6 +30026,13 @@ var LoggingSettingsPatchSchema = object({
|
|
|
29659
30026
|
* anyone but its owner.
|
|
29660
30027
|
*/
|
|
29661
30028
|
var ReportedLoadContributionSchema = LoadContributionSchema.extend({ addonId: string() });
|
|
30029
|
+
/**
|
|
30030
|
+
* One per-camera failure counter, plus WHO reported it.
|
|
30031
|
+
*
|
|
30032
|
+
* Same rule as {@link ReportedLoadContributionSchema}: `addonId` is stamped by
|
|
30033
|
+
* the hub as it enumerates providers, never by the contributor.
|
|
30034
|
+
*/
|
|
30035
|
+
var ReportedFailureContributionSchema = FailureContributionSchema.extend({ addonId: string() });
|
|
29662
30036
|
var GetLoggingSettingsInputSchema = object({
|
|
29663
30037
|
scopeNodeId: string().optional(),
|
|
29664
30038
|
/**
|
|
@@ -29717,7 +30091,7 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
|
|
|
29717
30091
|
}), method(_void(), SiteLocationStatusSchema, {
|
|
29718
30092
|
kind: "mutation",
|
|
29719
30093
|
auth: "admin"
|
|
29720
|
-
}), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(_void(), array(ReportedLoadContributionSchema).readonly(), { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
|
|
30094
|
+
}), 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, {
|
|
29721
30095
|
kind: "mutation",
|
|
29722
30096
|
auth: "admin"
|
|
29723
30097
|
});
|
|
@@ -30790,6 +31164,12 @@ Object.freeze({
|
|
|
30790
31164
|
addonId: null,
|
|
30791
31165
|
access: "view"
|
|
30792
31166
|
},
|
|
31167
|
+
"addonSettings.getIntegrationSettings": {
|
|
31168
|
+
capName: "addon-settings",
|
|
31169
|
+
capScope: "system",
|
|
31170
|
+
addonId: null,
|
|
31171
|
+
access: "view"
|
|
31172
|
+
},
|
|
30793
31173
|
"addonSettings.updateDeviceSettings": {
|
|
30794
31174
|
capName: "addon-settings",
|
|
30795
31175
|
capScope: "system",
|
|
@@ -32452,6 +32832,12 @@ Object.freeze({
|
|
|
32452
32832
|
addonId: null,
|
|
32453
32833
|
access: "create"
|
|
32454
32834
|
},
|
|
32835
|
+
"failureContribution.list": {
|
|
32836
|
+
capName: "failure-contribution",
|
|
32837
|
+
capScope: "system",
|
|
32838
|
+
addonId: null,
|
|
32839
|
+
access: "view"
|
|
32840
|
+
},
|
|
32455
32841
|
"fanControl.setDirection": {
|
|
32456
32842
|
capName: "fan-control",
|
|
32457
32843
|
capScope: "device",
|
|
@@ -35758,6 +36144,12 @@ Object.freeze({
|
|
|
35758
36144
|
addonId: null,
|
|
35759
36145
|
access: "create"
|
|
35760
36146
|
},
|
|
36147
|
+
"system.getFailureContributions": {
|
|
36148
|
+
capName: "system",
|
|
36149
|
+
capScope: "system",
|
|
36150
|
+
addonId: null,
|
|
36151
|
+
access: "view"
|
|
36152
|
+
},
|
|
35761
36153
|
"system.getLoadContributions": {
|
|
35762
36154
|
capName: "system",
|
|
35763
36155
|
capScope: "system",
|
|
@@ -39745,4 +40137,4 @@ function enumerateInferenceDevices(hw) {
|
|
|
39745
40137
|
return out;
|
|
39746
40138
|
}
|
|
39747
40139
|
//#endregion
|
|
39748
|
-
export {
|
|
40140
|
+
export { inferModelProvider as $, object as $t, addonWidgetsSourceCapability as A, isSoftwareDecode as At, defaultDeviceFor as B, makeSourceBrokerId as Bt, PoolMemoryWatchdog as C, supportedRuntimes as Ct, RecordingConfigSchema as D, Fmp4BoxSplitter as Dt, RECORDING_EXPORT_MAX_READ_BYTES as E, AUDIO_PRESETS as Et, cameraStreamsCapability as F, DeviceType as Ft, detectionPipelineCapability as G, sleep as Gt, deriveBatteryPresence as H, parseJsonUnknown as Ht, createHwAccelCache as I, createEvent as It, enumerateInferenceDevices as J, boolean as Jt, egressTranscodeSharingKey as K, _enum as Kt, createLogChannelsProvider as L, hydrateSchema as Lt, audioAnalyzerCapability as M, BaseAddon as Mt, audioKindId as N, CAM_PROFILE_ORDER as Nt, RingBuffer as O, buildFfmpegArgs as Ot, batteryCapability as P, DeviceFeature as Pt, hfModelUrl as Q, number as Qt, customAction as R, isEvent as Rt, OpsLogEntrySchema as S, streamBrokerCapability as St, RATE_CONTROL_TIGHT as T, errMsg as Tt, deriveDetailCropRect as U, parseProfileBrokerId as Ut, defineCustomActions as V, nodePin as Vt, deriveRecordingMode as W, selectAssignedProfileSlots as Wt, evaluateZoneRules as X, lazy as Xt, evaluateSensorEdge as Y, discriminatedUnion as Yt, failureContributionCapability as Z, literal as Zt, ExportRecordSchema as _, resolveEgressDecodeHwAccel as _t, COCO_80_LABELS as a, motionDetectionCapability as at, NativeLeaseAdmissionSchema as b, runtimeDevices as bt, DEFAULT_CLUSTER_STEP_MODELS as c, pickClusterStepModels as ct, DEFAULT_EVENTS_BAND_BUFFER_SEC as d, pickNativeLeaseOverride as dt, record as en, isFirstLevelMacroClass as et, DEFAULT_FIRST_SIGHTING_FRESHNESS_MS as f, pipelineExecutorCapability as ft, EncodeProfileSchema as g, resolveClusterStepModelId as gt, EVENT_PAD_MS as h, recordingExportCapability as ht, BatteryStatusSchema as i, maskUrlCredentials as it, audioAnalysisCapability as j, BOOT_RECOVERY_BACKOFF_MS as jt, YAMNET_TO_MACRO as k, invocationFromEncodeProfile as kt, DEFAULT_CLUSTER_STEP_SETTINGS as l, pickClusterStepSettings as lt, DEVICE_BACKEND_TO_FORMAT as m, recordingCapability as mt, AUDIO_BACKEND_CHOICES as n, union as nn, logChannelsCapability as nt, COCO_TO_MACRO as o, overlayClusterStepSettings as ot, DEFAULT_NATIVE_LEASE_SETTINGS as p, pipelineRunnerCapability as pt, egressTransportFromRequest as q, array as qt, AUDIO_MACRO_LABELS as r, EventCategory as rn, mapAudioLabelToMacro as rt, DEFAULT_AUDIO_ANALYZER_CONFIG as s, parseProcStatus as st, APPLE_SA_TO_MACRO as t, string as tn, loadContributionCapability as tt, DEFAULT_DETAIL_CROP_CONVENTION as u, pickDetailCropConvention as ut, FailureCounters as v, resolvePoolMemoryPolicy as vt, RATE_CONTROL_RELAXED as w, webrtcSessionCapability as wt, NativeLeaseSettingsSchema as x, storageEvictableCapability as xt, HF_BASE_URL as y, resolveRecordingProfiles as yt, declareLogChannel as z, makeProfileBrokerId as zt };
|
package/dist/{event-loop-stall-monitor-JGTFb0Uv.mjs → event-loop-stall-monitor-CrWg3jrh.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { N as audioKindId, Q as hfModelUrl, a as COCO_80_LABELS, o as COCO_TO_MACRO, r as AUDIO_MACRO_LABELS } from "./dist-B25xMJDp.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { PerformanceObserver } from "node:perf_hooks";
|
|
4
4
|
//#region src/detection-pipeline/registry/model-catalogs.ts
|
|
@@ -2,8 +2,8 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
6
|
-
const require_lazy_sharp = require("../lazy-sharp-
|
|
5
|
+
const require_dist = require("../dist-3bEUjzHN.js");
|
|
6
|
+
const require_lazy_sharp = require("../lazy-sharp-buaVXzJ6.js");
|
|
7
7
|
let node_fs = require("node:fs");
|
|
8
8
|
let node_path = require("node:path");
|
|
9
9
|
//#region src/motion-wasm/wasm-motion-detector.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ft as DeviceType, Lt as hydrateSchema, Mt as BaseAddon, X as evaluateZoneRules, at as motionDetectionCapability } from "../dist-B25xMJDp.mjs";
|
|
2
2
|
import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
|
|
3
3
|
import { readFileSync } from "node:fs";
|
|
4
4
|
import { join } from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { At as isSoftwareDecode, Dt as Fmp4BoxSplitter, Ot as buildFfmpegArgs, Tt as errMsg } from "./dist-B25xMJDp.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import "node:fs";
|
|
4
4
|
import "node:path";
|