@camstack/system 1.2.148 → 1.2.150
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/addon-runner.js +2 -1
- package/dist/addon-runner.mjs +2 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +1 -1
- package/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.js +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +1 -1
- package/dist/builtins/device-manager/device-manager.addon.js +2 -2
- package/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- package/dist/builtins/doorbell/virtual-doorbell.addon.js +1 -1
- package/dist/builtins/doorbell/virtual-doorbell.addon.mjs +1 -1
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/dist/builtins/local-auth/local-auth.addon.js +1 -1
- package/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
- package/dist/builtins/local-network/local-network.addon.js +1 -1
- package/dist/builtins/local-network/local-network.addon.mjs +1 -1
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +1 -1
- package/dist/builtins/snapshot/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/retired-settings-keys.d.ts +16 -0
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +0 -0
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +0 -0
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/dist/builtins/system-config/system-config.addon.js +1 -1
- package/dist/builtins/system-config/system-config.addon.mjs +1 -1
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{dist-B-mBrEz9.js → dist-CImxMt5h.js} +311 -0
- package/dist/{dist-BwD83D2f.mjs → dist-CbRciAbu.mjs} +311 -0
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/kernel/transport/child-cap-protocol.d.ts +2 -2
- package/dist/{manifest-python-deps-DpRX9LtD.mjs → manifest-python-deps-B5rrxUQv.mjs} +1 -1
- package/dist/{manifest-python-deps-BV_Cy99l.js → manifest-python-deps-BaVekjRY.js} +1 -1
- package/dist/{retired-settings-keys-Davtjo5p.js → retired-settings-keys-C7gLUS3x.js} +90 -14
- package/dist/{retired-settings-keys-CRKpAmSn.mjs → retired-settings-keys-DhFPXIRD.mjs} +90 -14
- package/package.json +1 -1
|
@@ -1247,6 +1247,40 @@ var BaseAddon = class {
|
|
|
1247
1247
|
deviceSettingsSchema() {
|
|
1248
1248
|
return null;
|
|
1249
1249
|
}
|
|
1250
|
+
/**
|
|
1251
|
+
* INTEGRATION-LEVEL SETTINGS — declare which of this addon's global sections
|
|
1252
|
+
* ARE the configuration of its integration.
|
|
1253
|
+
*
|
|
1254
|
+
* Return the `ConfigSection.id`s, from {@link globalSettingsSchema}, that an
|
|
1255
|
+
* operator should find on the addon's integration page (System →
|
|
1256
|
+
* Integrations → <name>) rather than only in the cluster-wide list of every
|
|
1257
|
+
* addon. Empty (the default) means the addon has no integration-level
|
|
1258
|
+
* settings and no such surface is offered — this is opt-in, because whether
|
|
1259
|
+
* an addon's configuration IS its integration's configuration depends on the
|
|
1260
|
+
* nature of the integration.
|
|
1261
|
+
*
|
|
1262
|
+
* WHAT THIS IS NOT. It is not a scope. The selected sections keep living in
|
|
1263
|
+
* the ONE global schema, in the ONE addon store, written by the ONE
|
|
1264
|
+
* `updateGlobalSettings` path. There is deliberately no
|
|
1265
|
+
* `updateIntegrationSettings`: a second write path is how a surface acquires
|
|
1266
|
+
* a second store key, and this repo has shipped that twice (`btmPath@hub`,
|
|
1267
|
+
* D266). Selecting sections cannot introduce a key that selecting cannot.
|
|
1268
|
+
*
|
|
1269
|
+
* WHY IT IS A LIST OF SECTION IDS AND NOT A MARKER ON THE SECTION.
|
|
1270
|
+
* `ConfigFieldBase` used to carry `scope?: 'device' | 'global'` and it was
|
|
1271
|
+
* removed with the reason recorded at
|
|
1272
|
+
* `packages/types/src/interfaces/config-ui.ts:249` — *"a field's scope is
|
|
1273
|
+
* determined by WHICH schema it lives in, not by a field-level marker."* A
|
|
1274
|
+
* marker sprinkled across sections also has to borrow a field that already
|
|
1275
|
+
* means something else; borrowing `section.tab` put the literal word
|
|
1276
|
+
* "integration" into an operator-facing tab bar, because `tab` means "how to
|
|
1277
|
+
* GROUP this visually" and cannot also mean "where this lives" (D269
|
|
1278
|
+
* supersedes D268). One declaration, in one place, next to the schema whose
|
|
1279
|
+
* ids it names.
|
|
1280
|
+
*/
|
|
1281
|
+
integrationSettingSections() {
|
|
1282
|
+
return [];
|
|
1283
|
+
}
|
|
1250
1284
|
async getGlobalSettings(overlay, cap, nodeId) {
|
|
1251
1285
|
const schema = this.globalSettingsSchema(cap);
|
|
1252
1286
|
if (!schema) return { sections: [] };
|
|
@@ -1257,6 +1291,55 @@ var BaseAddon = class {
|
|
|
1257
1291
|
} : projected);
|
|
1258
1292
|
}
|
|
1259
1293
|
/**
|
|
1294
|
+
* The integration-level view of this addon's settings: exactly the sections
|
|
1295
|
+
* named by {@link integrationSettingSections}, hydrated from the SAME store
|
|
1296
|
+
* `getGlobalSettings` reads, and narrowed to cluster-scoped fields.
|
|
1297
|
+
*
|
|
1298
|
+
* Returns `null` when the addon declared nothing — an addon that opts out has
|
|
1299
|
+
* no integration settings surface at all, rather than an empty one that reads
|
|
1300
|
+
* as a failed load.
|
|
1301
|
+
*
|
|
1302
|
+
* Three properties hold BY CONSTRUCTION, which is why they are here in core
|
|
1303
|
+
* and not in whichever UI happens to render this:
|
|
1304
|
+
*
|
|
1305
|
+
* 1. **One key.** The payload is a SUBSET of the global schema, so a field
|
|
1306
|
+
* shown here is the same field, with the same bare key, that the addon's
|
|
1307
|
+
* own page shows. There is no integration-specific writer — callers save
|
|
1308
|
+
* through `updateGlobalSettings` — so a second store key is unreachable,
|
|
1309
|
+
* not merely discouraged.
|
|
1310
|
+
* 2. **No node scope.** `perNode: true` fields are DROPPED. Their store key
|
|
1311
|
+
* is `<key>@<nodeId>` and an integration is not a node; whichever node
|
|
1312
|
+
* such a field silently picked would be a wrong answer for the operator
|
|
1313
|
+
* who opened the page (D266).
|
|
1314
|
+
* 3. **No silent typo.** A declared id that names no section throws. The
|
|
1315
|
+
* alternative — skip it — turns a rename into a surface that quietly
|
|
1316
|
+
* empties, which looks exactly like an addon with nothing to configure.
|
|
1317
|
+
*/
|
|
1318
|
+
async getIntegrationSettings(nodeId) {
|
|
1319
|
+
const declared = this.integrationSettingSections();
|
|
1320
|
+
if (declared.length === 0) return null;
|
|
1321
|
+
const schema = this.globalSettingsSchema();
|
|
1322
|
+
if (!schema) throw new Error(`${this.constructor.name}: integrationSettingSections() names [${declared.join(", ")}] but globalSettingsSchema() returns null.`);
|
|
1323
|
+
const byId = new Map(schema.sections.map((section) => [section.id, section]));
|
|
1324
|
+
const sections = [];
|
|
1325
|
+
for (const id of declared) {
|
|
1326
|
+
const section = byId.get(id);
|
|
1327
|
+
if (!section) throw new Error(`${this.constructor.name}: integrationSettingSections() names unknown section "${id}". Known sections: [${[...byId.keys()].join(", ")}].`);
|
|
1328
|
+
const fields = dropPerNodeFields(section.fields);
|
|
1329
|
+
if (fields.length === 0) continue;
|
|
1330
|
+
sections.push({
|
|
1331
|
+
...section,
|
|
1332
|
+
fields
|
|
1333
|
+
});
|
|
1334
|
+
}
|
|
1335
|
+
if (sections.length === 0) return null;
|
|
1336
|
+
const projected = await this.resolveGlobalStore(nodeId);
|
|
1337
|
+
return hydrateSchema({
|
|
1338
|
+
...schema,
|
|
1339
|
+
sections
|
|
1340
|
+
}, projected);
|
|
1341
|
+
}
|
|
1342
|
+
/**
|
|
1260
1343
|
* The raw addon store PROJECTED onto the target node's bare per-node keys:
|
|
1261
1344
|
* every `perNode: true` field carries THAT node's scoped value on its bare
|
|
1262
1345
|
* key (absent scoped key ⇒ key absent, so the schema `default` wins — no
|
|
@@ -1560,6 +1643,41 @@ var BaseAddon = class {
|
|
|
1560
1643
|
* `hydrateSchema` does. Valueless structural fields (separator/info/…)
|
|
1561
1644
|
* don't declare `perNode` and are excluded by the `in` narrowing.
|
|
1562
1645
|
*/
|
|
1646
|
+
/**
|
|
1647
|
+
* The same fields with every `perNode: true` one removed, recursing into layout
|
|
1648
|
+
* containers exactly as {@link collectPerNodeFieldKeys} does. A container left
|
|
1649
|
+
* with no child is dropped rather than rendered empty.
|
|
1650
|
+
*
|
|
1651
|
+
* Used by `getIntegrationSettings`: an integration is not a node, so a field
|
|
1652
|
+
* whose store key is `<key>@<nodeId>` has no node to belong to there.
|
|
1653
|
+
*/
|
|
1654
|
+
function dropPerNodeFields(fields) {
|
|
1655
|
+
const kept = [];
|
|
1656
|
+
for (const field of fields) {
|
|
1657
|
+
if (field.type === "group") {
|
|
1658
|
+
const inner = dropPerNodeFields(field.fields);
|
|
1659
|
+
if (inner.length > 0) kept.push({
|
|
1660
|
+
...field,
|
|
1661
|
+
fields: inner
|
|
1662
|
+
});
|
|
1663
|
+
continue;
|
|
1664
|
+
}
|
|
1665
|
+
if (field.type === "sub-tabs") {
|
|
1666
|
+
const tabs = field.tabs.map((tab) => ({
|
|
1667
|
+
...tab,
|
|
1668
|
+
fields: dropPerNodeFields(tab.fields)
|
|
1669
|
+
})).filter((tab) => tab.fields.length > 0);
|
|
1670
|
+
if (tabs.length > 0) kept.push({
|
|
1671
|
+
...field,
|
|
1672
|
+
tabs
|
|
1673
|
+
});
|
|
1674
|
+
continue;
|
|
1675
|
+
}
|
|
1676
|
+
if ("perNode" in field && field.perNode === true) continue;
|
|
1677
|
+
kept.push(field);
|
|
1678
|
+
}
|
|
1679
|
+
return kept;
|
|
1680
|
+
}
|
|
1563
1681
|
function collectPerNodeFieldKeys(fields) {
|
|
1564
1682
|
const collected = [];
|
|
1565
1683
|
for (const field of fields) {
|
|
@@ -5781,6 +5899,10 @@ var addonSettingsCapability = {
|
|
|
5781
5899
|
kind: "mutation",
|
|
5782
5900
|
auth: "admin"
|
|
5783
5901
|
}),
|
|
5902
|
+
getIntegrationSettings: method(zod.z.object({
|
|
5903
|
+
addonId: zod.z.string(),
|
|
5904
|
+
nodeId: zod.z.string().optional()
|
|
5905
|
+
}), SettingsSchemaWithValuesSchema.nullable()),
|
|
5784
5906
|
getDeviceSettings: method(zod.z.object({
|
|
5785
5907
|
addonId: zod.z.string(),
|
|
5786
5908
|
deviceId: zod.z.number(),
|
|
@@ -11485,6 +11607,133 @@ var logDestinationCapability = {
|
|
|
11485
11607
|
/** BIG PLAN 2: declarative mount hint — read by `@camstack/system` `buildCapRouters`. */
|
|
11486
11608
|
mount: { kind: "skip" }
|
|
11487
11609
|
};
|
|
11610
|
+
/**
|
|
11611
|
+
* `failure-contribution` — the capability an addon reports its OWN losses
|
|
11612
|
+
* through, per camera, with the denominator attached. It stores nothing.
|
|
11613
|
+
*
|
|
11614
|
+
* ## The twin of `load-contribution`, and why it is a twin and not a field
|
|
11615
|
+
*
|
|
11616
|
+
* `load-contribution` answers *what did this camera COST*. This answers *what
|
|
11617
|
+
* did this camera LOSE*. The reporting discipline is identical and deliberately
|
|
11618
|
+
* copied: the contributor reports what it already knows, hub-main adds only
|
|
11619
|
+
* `addonId`, nothing needs global knowledge, and there is no central list for
|
|
11620
|
+
* somebody to forget to edit.
|
|
11621
|
+
*
|
|
11622
|
+
* They are not merged, because their invariants are opposites:
|
|
11623
|
+
*
|
|
11624
|
+
* - a `load-contribution` measurement is **absent, never zero** — a zero would
|
|
11625
|
+
* claim a camera cost nothing, which is a measurement nobody made;
|
|
11626
|
+
* - a `failure-contribution` zero is the **most valuable value on the
|
|
11627
|
+
* surface** — `attempts: 400, succeeded: 400` is the proof a fix landed,
|
|
11628
|
+
* and it is exactly what an absent entry cannot say.
|
|
11629
|
+
*
|
|
11630
|
+
* Putting a loss counter on a cost entry would also break the reconciliation
|
|
11631
|
+
* that gives `load-contribution` its point: contributions are subtracted from
|
|
11632
|
+
* `metrics.node-processes-snapshot` to find processes nobody claims. A failure
|
|
11633
|
+
* has no process.
|
|
11634
|
+
*
|
|
11635
|
+
* ## Why not a log line, since the counters already exist
|
|
11636
|
+
*
|
|
11637
|
+
* Several of these paths already counted themselves — `CaptureScheduler`'s
|
|
11638
|
+
* per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
|
|
11639
|
+
* ends in a log line, and a log line is the thing the operator asked to stop
|
|
11640
|
+
* needing: *"possiamo armare questi errori intanto? Così al prossimo giro
|
|
11641
|
+
* ricontrolliamo tutti questi punti"*. Reading them meant grepping Loki and
|
|
11642
|
+
* hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
|
|
11643
|
+
* media blackout were both diagnosed. The counters stay; this is where they can
|
|
11644
|
+
* be READ.
|
|
11645
|
+
*
|
|
11646
|
+
* ## The rate is served with its denominator or not at all
|
|
11647
|
+
*
|
|
11648
|
+
* Every entry carries `attempts` and `succeeded`. A miss count alone is
|
|
11649
|
+
* unreadable: on 2026-08-28 the enrichment-crop miss count read as "35x worse
|
|
11650
|
+
* than yesterday" and was **flat across twelve hours** once divided by the
|
|
11651
|
+
* successes on the same path. A surface that publishes only the numerator
|
|
11652
|
+
* reproduces that mistake on every read.
|
|
11653
|
+
*
|
|
11654
|
+
* ## Shape
|
|
11655
|
+
*
|
|
11656
|
+
* Copied from `load-contribution.cap.ts` (`mode: 'collection'`,
|
|
11657
|
+
* `internal: true`, `mount: { kind: 'skip' }`): no tRPC route of its own and no
|
|
11658
|
+
* generated hooks, while `addons.listCapabilityProviders` still enumerates it
|
|
11659
|
+
* and the hub's `CapabilityRegistry` still holds an RPC proxy per provider — so
|
|
11660
|
+
* a forked runner's entries reach hub-main over transport that already exists.
|
|
11661
|
+
* No new UDS message, no second registry (D3). The operator reads the assembled
|
|
11662
|
+
* result through `system.getFailureContributions`.
|
|
11663
|
+
*/
|
|
11664
|
+
var FailureReasonCountSchema = zod.z.object({
|
|
11665
|
+
/**
|
|
11666
|
+
* Why the attempt did not land, in the contributor's own vocabulary —
|
|
11667
|
+
* `worker-lease-gone`, `queue-overflow`, `timeout`, `empty-read`. The same
|
|
11668
|
+
* strings that already appear in this repo's logs and, where one exists, the
|
|
11669
|
+
* same string the per-track `previewMissReason` records (D276): a second
|
|
11670
|
+
* vocabulary for the same loss would make the row and the counter
|
|
11671
|
+
* un-joinable.
|
|
11672
|
+
*/
|
|
11673
|
+
reason: zod.z.string(),
|
|
11674
|
+
count: zod.z.number().int().nonnegative()
|
|
11675
|
+
});
|
|
11676
|
+
var FailureContributionSchema = zod.z.object({
|
|
11677
|
+
/**
|
|
11678
|
+
* The failing path — `enrichment-crop`, `inference`, `plate-ocr`,
|
|
11679
|
+
* `person-over-vehicle`. Free text, for the reason `load-contribution` keeps
|
|
11680
|
+
* `unit` free: the families are owned by different addons and a shared enum
|
|
11681
|
+
* is a central list that rots invisibly.
|
|
11682
|
+
*/
|
|
11683
|
+
family: zod.z.string(),
|
|
11684
|
+
/**
|
|
11685
|
+
* The NUMERIC device id — the same value every log line carries as
|
|
11686
|
+
* `tags.deviceId`. Never nullable and never absent: a contributor that
|
|
11687
|
+
* cannot name the camera must not emit the entry, because a fleet total
|
|
11688
|
+
* cannot answer the only question anybody asks of this surface.
|
|
11689
|
+
*/
|
|
11690
|
+
deviceId: zod.z.number().int().positive(),
|
|
11691
|
+
/**
|
|
11692
|
+
* A second dimension inside the family: the model / step id for an inference
|
|
11693
|
+
* timeout, so "which camera AND which model" is one read. Absent when the
|
|
11694
|
+
* family has a single variant.
|
|
11695
|
+
*/
|
|
11696
|
+
variant: zod.z.string().optional(),
|
|
11697
|
+
/**
|
|
11698
|
+
* Epoch ms this counter started — the INCARNATION MARKER. A consumer
|
|
11699
|
+
* differencing two reads must drop the interval when it changes, because the
|
|
11700
|
+
* counter restarted from zero in a respawned runner. Same discipline as
|
|
11701
|
+
* `LoadContribution.startedAtMs`.
|
|
11702
|
+
*/
|
|
11703
|
+
sinceMs: zod.z.number(),
|
|
11704
|
+
/** Epoch ms it was read. `atMs - sinceMs` is the interval this covers. */
|
|
11705
|
+
atMs: zod.z.number(),
|
|
11706
|
+
/**
|
|
11707
|
+
* THE DENOMINATOR — every attempt on this path for this camera in the
|
|
11708
|
+
* window. A failure count published without it is the mistake this schema
|
|
11709
|
+
* exists to make impossible.
|
|
11710
|
+
*/
|
|
11711
|
+
attempts: zod.z.number().int().nonnegative(),
|
|
11712
|
+
/** Attempts that landed. `attempts - succeeded` is the loss. */
|
|
11713
|
+
succeeded: zod.z.number().int().nonnegative(),
|
|
11714
|
+
/** The loss, partitioned. Sums to `attempts - succeeded`. */
|
|
11715
|
+
reasons: zod.z.array(FailureReasonCountSchema).readonly()
|
|
11716
|
+
});
|
|
11717
|
+
var failureContributionCapability = {
|
|
11718
|
+
name: "failure-contribution",
|
|
11719
|
+
scope: "system",
|
|
11720
|
+
mode: "collection",
|
|
11721
|
+
internal: true,
|
|
11722
|
+
methods: {
|
|
11723
|
+
/**
|
|
11724
|
+
* This addon's per-camera failure counters, read live from bounded in-RAM
|
|
11725
|
+
* state it already keeps. Inert: no persistence, no sampling, no timer.
|
|
11726
|
+
*
|
|
11727
|
+
* READING NEVER RESETS. The counters are CUMULATIVE since `sinceMs`, and a
|
|
11728
|
+
* consumer that wants a rate differences two reads. A draining read would
|
|
11729
|
+
* make two operators with the page open each destroy half of the other's
|
|
11730
|
+
* numbers, and `load-contribution` already settled the same question the
|
|
11731
|
+
* same way for `cpuSeconds`.
|
|
11732
|
+
*/
|
|
11733
|
+
list: method(zod.z.void(), zod.z.array(FailureContributionSchema).readonly()) },
|
|
11734
|
+
/** In-process only — enumerated through `addons.listCapabilityProviders`. */
|
|
11735
|
+
mount: { kind: "skip" }
|
|
11736
|
+
};
|
|
11488
11737
|
var LoadContributionSchema = zod.z.object({
|
|
11489
11738
|
role: zod.z.enum([
|
|
11490
11739
|
"decode",
|
|
@@ -16595,6 +16844,20 @@ var TrackSchema = zod.z.object({
|
|
|
16595
16844
|
* `=== true` and render nothing otherwise — never infer "no rider".
|
|
16596
16845
|
*/
|
|
16597
16846
|
hasRider: zod.z.boolean().optional(),
|
|
16847
|
+
/**
|
|
16848
|
+
* WHY this track ended without a NATIVE best-shot tile
|
|
16849
|
+
* ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
|
|
16850
|
+
* a composed token line (`no-key-frame capture=keyframe:native-missx4`,
|
|
16851
|
+
* `derive-returned-null tile=standin`, …) written at close and CLEARED by
|
|
16852
|
+
* the late-keyFrame upgrade when a native tile lands after all. The
|
|
16853
|
+
* operator-facing answer to "perché manca l'immagine?" on a track whose
|
|
16854
|
+
* tile is a face/plate stand-in, a raster crop, or an icon.
|
|
16855
|
+
*
|
|
16856
|
+
* **Absent ≠ "missed silently"**: a row written before the column, a hub
|
|
16857
|
+
* that predates the field, and every track whose tile landed native all
|
|
16858
|
+
* omit it. Render nothing when absent.
|
|
16859
|
+
*/
|
|
16860
|
+
previewMissReason: zod.z.string().optional(),
|
|
16598
16861
|
...TrackFlagFields,
|
|
16599
16862
|
...TrackRetrainFields
|
|
16600
16863
|
});
|
|
@@ -30550,6 +30813,13 @@ var LoggingSettingsPatchSchema = zod.z.object({
|
|
|
30550
30813
|
* anyone but its owner.
|
|
30551
30814
|
*/
|
|
30552
30815
|
var ReportedLoadContributionSchema = LoadContributionSchema.extend({ addonId: zod.z.string() });
|
|
30816
|
+
/**
|
|
30817
|
+
* One per-camera failure counter, plus WHO reported it.
|
|
30818
|
+
*
|
|
30819
|
+
* Same rule as {@link ReportedLoadContributionSchema}: `addonId` is stamped by
|
|
30820
|
+
* the hub as it enumerates providers, never by the contributor.
|
|
30821
|
+
*/
|
|
30822
|
+
var ReportedFailureContributionSchema = FailureContributionSchema.extend({ addonId: zod.z.string() });
|
|
30553
30823
|
var GetLoggingSettingsInputSchema = zod.z.object({
|
|
30554
30824
|
scopeNodeId: zod.z.string().optional(),
|
|
30555
30825
|
/**
|
|
@@ -30668,6 +30938,28 @@ var systemCapability = {
|
|
|
30668
30938
|
*/
|
|
30669
30939
|
getLoadContributions: method(zod.z.void(), zod.z.array(ReportedLoadContributionSchema).readonly(), { auth: "admin" }),
|
|
30670
30940
|
/**
|
|
30941
|
+
* Every `failure-contribution` an addon on this cluster reports — per
|
|
30942
|
+
* camera, per reason, **with the denominator attached**.
|
|
30943
|
+
*
|
|
30944
|
+
* This is the surface the operator asked for on 2026-08-28 (*"possiamo
|
|
30945
|
+
* armare questi errori intanto? Così al prossimo giro ricontrolliamo tutti
|
|
30946
|
+
* questi punti"*). Before it, four live failure modes could only be counted
|
|
30947
|
+
* by grepping Loki and hand-correlating timestamps, which is exactly how a
|
|
30948
|
+
* 22% thumbnail gap and a 3-hour media blackout were diagnosed — twice.
|
|
30949
|
+
*
|
|
30950
|
+
* Read it as a RATIO, never as a count. `attempts` is on every entry
|
|
30951
|
+
* because the count on its own lies: `enrichment crop native miss` read as
|
|
30952
|
+
* "35x worse than yesterday" and was flat across twelve hours once divided
|
|
30953
|
+
* by the successes on the same path.
|
|
30954
|
+
*
|
|
30955
|
+
* The counters are CUMULATIVE since each entry's `sinceMs`. Reading does
|
|
30956
|
+
* not reset them, and `sinceMs` changing means the reporting runner
|
|
30957
|
+
* respawned — a consumer differencing two reads drops that interval.
|
|
30958
|
+
*
|
|
30959
|
+
* Admin-only: the rows name cameras and the paths that fail on them.
|
|
30960
|
+
*/
|
|
30961
|
+
getFailureContributions: method(zod.z.void(), zod.z.array(ReportedFailureContributionSchema).readonly(), { auth: "admin" }),
|
|
30962
|
+
/**
|
|
30671
30963
|
* The logging settings document — levels and armed diagnostics — resolved
|
|
30672
30964
|
* for `nodeId`, or for the cluster when `nodeId` is absent.
|
|
30673
30965
|
*
|
|
@@ -32452,6 +32744,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
|
|
|
32452
32744
|
eventEmitterCapability,
|
|
32453
32745
|
eventsCapability,
|
|
32454
32746
|
faceGalleryCapability,
|
|
32747
|
+
failureContributionCapability,
|
|
32455
32748
|
fanControlCapability,
|
|
32456
32749
|
featureProbeCapability,
|
|
32457
32750
|
filesystemBrowseCapability,
|
|
@@ -32788,6 +33081,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
32788
33081
|
addonId: null,
|
|
32789
33082
|
access: "view"
|
|
32790
33083
|
},
|
|
33084
|
+
"addonSettings.getIntegrationSettings": {
|
|
33085
|
+
capName: "addon-settings",
|
|
33086
|
+
capScope: "system",
|
|
33087
|
+
addonId: null,
|
|
33088
|
+
access: "view"
|
|
33089
|
+
},
|
|
32791
33090
|
"addonSettings.updateDeviceSettings": {
|
|
32792
33091
|
capName: "addon-settings",
|
|
32793
33092
|
capScope: "system",
|
|
@@ -34450,6 +34749,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
34450
34749
|
addonId: null,
|
|
34451
34750
|
access: "create"
|
|
34452
34751
|
},
|
|
34752
|
+
"failureContribution.list": {
|
|
34753
|
+
capName: "failure-contribution",
|
|
34754
|
+
capScope: "system",
|
|
34755
|
+
addonId: null,
|
|
34756
|
+
access: "view"
|
|
34757
|
+
},
|
|
34453
34758
|
"fanControl.setDirection": {
|
|
34454
34759
|
capName: "fan-control",
|
|
34455
34760
|
capScope: "device",
|
|
@@ -37756,6 +38061,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
37756
38061
|
addonId: null,
|
|
37757
38062
|
access: "create"
|
|
37758
38063
|
},
|
|
38064
|
+
"system.getFailureContributions": {
|
|
38065
|
+
capName: "system",
|
|
38066
|
+
capScope: "system",
|
|
38067
|
+
addonId: null,
|
|
38068
|
+
access: "view"
|
|
38069
|
+
},
|
|
37759
38070
|
"system.getLoadContributions": {
|
|
37760
38071
|
capName: "system",
|
|
37761
38072
|
capScope: "system",
|