@camstack/system 1.2.332 → 1.2.334
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 +1 -1
- package/dist/addon-runner.mjs +1 -1
- package/dist/addon-utils.js +1 -1
- package/dist/addon-utils.mjs +1 -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/autotrack/autotrack-cameras.d.ts +1 -1
- package/dist/builtins/autotrack/index.js +1 -1
- package/dist/builtins/autotrack/index.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/camera-grid/grid-sentry-sources.d.ts +1 -1
- package/dist/builtins/camera-grid/index.js +2 -2
- package/dist/builtins/camera-grid/index.mjs +2 -2
- package/dist/builtins/composer/composer.addon.js +2 -2
- package/dist/builtins/composer/composer.addon.mjs +2 -2
- 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 +2 -2
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
- package/dist/builtins/device-manager/device-manager.addon.js +17 -2
- package/dist/builtins/device-manager/device-manager.addon.mjs +17 -2
- package/dist/builtins/device-manager/device-meta-types.d.ts +1 -1
- package/dist/builtins/device-manager/stale-wrapper-activations.d.ts +6 -0
- 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 +3 -3
- package/dist/builtins/snapshot/index.mjs +3 -3
- package/dist/builtins/snapshot/snapshot-courtesy.d.ts +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/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/{child-cap-dispatch-93MfsaZL.js → child-cap-dispatch-Cy56Y66E.js} +39 -0
- package/dist/{child-cap-dispatch-kLIiU1CG.mjs → child-cap-dispatch-Dmo2YJFe.mjs} +39 -0
- package/dist/{composition-sources-BpyaHvoR.mjs → composition-sources-BWautla8.mjs} +1 -1
- package/dist/{composition-sources-DK--XR5V.js → composition-sources-BuIRUkTE.js} +1 -1
- package/dist/{dist-BEPK2RUO.mjs → dist-COj36Fwm.mjs} +77 -67
- package/dist/{dist-CH3jfPMi.js → dist-Ex-rbzic.js} +77 -67
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/dist/kernel/capability-registry.d.ts +1 -1
- package/dist/kernel/transport/local-child-registry.d.ts +30 -0
- package/dist/{retired-settings-keys-C5mSevGV.js → retired-settings-keys-Bmyl7KuD.js} +1 -1
- package/dist/{retired-settings-keys-tDI1g7ab.mjs → retired-settings-keys-DzbmRUhF.mjs} +1 -1
- package/dist/{snapshot-courtesy-CZPvteq2.mjs → snapshot-courtesy-CyFs1M3I.mjs} +1 -1
- package/dist/{snapshot-courtesy-Cqs7GkOV.js → snapshot-courtesy-D_C5-nC0.js} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Hn as errMsg, Un as BaseAddon, rr as hydrateSchema } from "../../dist-
|
|
1
|
+
import { Hn as errMsg, Un as BaseAddon, rr as hydrateSchema } from "../../dist-COj36Fwm.mjs";
|
|
2
2
|
//#region src/builtins/system-config/system-config.addon.ts
|
|
3
3
|
/**
|
|
4
4
|
* Built-in `system-config` addon — Phase 4 of the settings redesign.
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-Ex-rbzic.js");
|
|
7
7
|
const require_formatter = require("../../formatter-DqAKDlvN.js");
|
|
8
8
|
let node_path = require("node:path");
|
|
9
9
|
node_path = require_chunk.__toESM(node_path);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Un as BaseAddon, Vt as logDestinationCapability } from "../../dist-
|
|
1
|
+
import { Un as BaseAddon, Vt as logDestinationCapability } from "../../dist-COj36Fwm.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-B7qW8bPJ.mjs";
|
|
3
3
|
import * as path$1 from "node:path";
|
|
4
4
|
import path from "node:path";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
+
const require_dist = require("./dist-Ex-rbzic.js");
|
|
2
3
|
const require_proc_stat = require("./proc-stat-DL-WUOhl.js");
|
|
3
4
|
require("./hub-cap-forward-DmHNjbB0.js");
|
|
4
5
|
let node_crypto = require("node:crypto");
|
|
@@ -8527,6 +8528,11 @@ async function answerClaimedGetStatus(resolve, call) {
|
|
|
8527
8528
|
if (answer.kind === "unclaimed") return null;
|
|
8528
8529
|
return { slice: answer.kind === "claimed" ? answer.slice : null };
|
|
8529
8530
|
}
|
|
8531
|
+
/** The source every runner lifecycle event this registry emits carries. */
|
|
8532
|
+
var LIFECYCLE_SOURCE = {
|
|
8533
|
+
type: "core",
|
|
8534
|
+
id: "local-child-registry"
|
|
8535
|
+
};
|
|
8530
8536
|
function readFanoutMode() {
|
|
8531
8537
|
const raw = process.env.CAMSTACK_UDS_EVENT_FANOUT;
|
|
8532
8538
|
if (raw === "shadow" || raw === "broadcast") return raw;
|
|
@@ -8557,6 +8563,9 @@ var LocalChildRegistry = class {
|
|
|
8557
8563
|
server;
|
|
8558
8564
|
onUnownedCall;
|
|
8559
8565
|
logger;
|
|
8566
|
+
lifecycleEvents;
|
|
8567
|
+
/** Per childId: the incarnation `WorkerOnline` was last said for. */
|
|
8568
|
+
announcedIncarnation = /* @__PURE__ */ new Map();
|
|
8560
8569
|
getActiveSingletonAddonId;
|
|
8561
8570
|
resolveChildIdForAddon;
|
|
8562
8571
|
/** This node's own Moleculer nodeId (see {@link LocalChildRegistryOptions.ownNodeId}). */
|
|
@@ -8618,6 +8627,7 @@ var LocalChildRegistry = class {
|
|
|
8618
8627
|
this.server = opts.server;
|
|
8619
8628
|
this.onUnownedCall = opts.onUnownedCall;
|
|
8620
8629
|
this.logger = opts.logger;
|
|
8630
|
+
this.lifecycleEvents = opts.lifecycleEvents;
|
|
8621
8631
|
this.getActiveSingletonAddonId = opts.getActiveSingletonAddonId;
|
|
8622
8632
|
this.resolveChildIdForAddon = opts.resolveChildIdForAddon;
|
|
8623
8633
|
this.ownNodeId = opts.ownNodeId;
|
|
@@ -9132,6 +9142,33 @@ var LocalChildRegistry = class {
|
|
|
9132
9142
|
async close() {
|
|
9133
9143
|
await this.server.close();
|
|
9134
9144
|
}
|
|
9145
|
+
/** `WorkerOnline`, once per incarnation: a re-register of the same connection says nothing. */
|
|
9146
|
+
announceOnline(childId, incarnation) {
|
|
9147
|
+
const events = this.lifecycleEvents;
|
|
9148
|
+
if (events === void 0 || this.announcedIncarnation.get(childId) === incarnation) return;
|
|
9149
|
+
this.announcedIncarnation.set(childId, incarnation);
|
|
9150
|
+
const workerId = `${events.parentNodeId()}/${childId}`;
|
|
9151
|
+
this.emitLifecycle(events, require_dist.createEvent(require_dist.EventCategory.WorkerOnline, LIFECYCLE_SOURCE, { workerId }), incarnation);
|
|
9152
|
+
}
|
|
9153
|
+
/** `WorkerOffline` for the LIVE connection's close (a superseded close never reaches here). */
|
|
9154
|
+
announceOffline(childId, incarnation) {
|
|
9155
|
+
const events = this.lifecycleEvents;
|
|
9156
|
+
if (events === void 0) return;
|
|
9157
|
+
this.announcedIncarnation.delete(childId);
|
|
9158
|
+
const workerId = `${events.parentNodeId()}/${childId}`;
|
|
9159
|
+
this.emitLifecycle(events, require_dist.createEvent(require_dist.EventCategory.WorkerOffline, LIFECYCLE_SOURCE, { workerId }), incarnation);
|
|
9160
|
+
}
|
|
9161
|
+
emitLifecycle(events, event, incarnation) {
|
|
9162
|
+
try {
|
|
9163
|
+
events.emit(event);
|
|
9164
|
+
} catch (err) {
|
|
9165
|
+
this.logger?.info("runner lifecycle event could not be emitted", {
|
|
9166
|
+
category: event.category,
|
|
9167
|
+
incarnation,
|
|
9168
|
+
error: err instanceof Error ? err.message : String(err)
|
|
9169
|
+
});
|
|
9170
|
+
}
|
|
9171
|
+
}
|
|
9135
9172
|
onConnection(channel) {
|
|
9136
9173
|
let childId = null;
|
|
9137
9174
|
const incarnation = this.nextIncarnation++;
|
|
@@ -9187,6 +9224,7 @@ var LocalChildRegistry = class {
|
|
|
9187
9224
|
});
|
|
9188
9225
|
this.invalidateCapIndex();
|
|
9189
9226
|
this.logPatternSet(msg.childId, eventPatterns);
|
|
9227
|
+
this.announceOnline(msg.childId, incarnation);
|
|
9190
9228
|
this.registeredHandler({
|
|
9191
9229
|
childId: msg.childId,
|
|
9192
9230
|
caps: msg.caps,
|
|
@@ -9286,6 +9324,7 @@ var LocalChildRegistry = class {
|
|
|
9286
9324
|
this.actionCensus.forget(childId);
|
|
9287
9325
|
this.loggedPatternSet.delete(childId);
|
|
9288
9326
|
this.goneHandler(childId, incarnation);
|
|
9327
|
+
this.announceOffline(childId, incarnation);
|
|
9289
9328
|
});
|
|
9290
9329
|
}
|
|
9291
9330
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { $n as createEvent, mr as EventCategory$1 } from "./dist-COj36Fwm.mjs";
|
|
1
2
|
import { a as parseProcStat, i as nodeProcReader } from "./proc-stat-CbC55Kqi.mjs";
|
|
2
3
|
import "./hub-cap-forward-BdT320dq.mjs";
|
|
3
4
|
import * as crypto$1 from "node:crypto";
|
|
@@ -8524,6 +8525,11 @@ async function answerClaimedGetStatus(resolve, call) {
|
|
|
8524
8525
|
if (answer.kind === "unclaimed") return null;
|
|
8525
8526
|
return { slice: answer.kind === "claimed" ? answer.slice : null };
|
|
8526
8527
|
}
|
|
8528
|
+
/** The source every runner lifecycle event this registry emits carries. */
|
|
8529
|
+
var LIFECYCLE_SOURCE = {
|
|
8530
|
+
type: "core",
|
|
8531
|
+
id: "local-child-registry"
|
|
8532
|
+
};
|
|
8527
8533
|
function readFanoutMode() {
|
|
8528
8534
|
const raw = process.env.CAMSTACK_UDS_EVENT_FANOUT;
|
|
8529
8535
|
if (raw === "shadow" || raw === "broadcast") return raw;
|
|
@@ -8554,6 +8560,9 @@ var LocalChildRegistry = class {
|
|
|
8554
8560
|
server;
|
|
8555
8561
|
onUnownedCall;
|
|
8556
8562
|
logger;
|
|
8563
|
+
lifecycleEvents;
|
|
8564
|
+
/** Per childId: the incarnation `WorkerOnline` was last said for. */
|
|
8565
|
+
announcedIncarnation = /* @__PURE__ */ new Map();
|
|
8557
8566
|
getActiveSingletonAddonId;
|
|
8558
8567
|
resolveChildIdForAddon;
|
|
8559
8568
|
/** This node's own Moleculer nodeId (see {@link LocalChildRegistryOptions.ownNodeId}). */
|
|
@@ -8615,6 +8624,7 @@ var LocalChildRegistry = class {
|
|
|
8615
8624
|
this.server = opts.server;
|
|
8616
8625
|
this.onUnownedCall = opts.onUnownedCall;
|
|
8617
8626
|
this.logger = opts.logger;
|
|
8627
|
+
this.lifecycleEvents = opts.lifecycleEvents;
|
|
8618
8628
|
this.getActiveSingletonAddonId = opts.getActiveSingletonAddonId;
|
|
8619
8629
|
this.resolveChildIdForAddon = opts.resolveChildIdForAddon;
|
|
8620
8630
|
this.ownNodeId = opts.ownNodeId;
|
|
@@ -9129,6 +9139,33 @@ var LocalChildRegistry = class {
|
|
|
9129
9139
|
async close() {
|
|
9130
9140
|
await this.server.close();
|
|
9131
9141
|
}
|
|
9142
|
+
/** `WorkerOnline`, once per incarnation: a re-register of the same connection says nothing. */
|
|
9143
|
+
announceOnline(childId, incarnation) {
|
|
9144
|
+
const events = this.lifecycleEvents;
|
|
9145
|
+
if (events === void 0 || this.announcedIncarnation.get(childId) === incarnation) return;
|
|
9146
|
+
this.announcedIncarnation.set(childId, incarnation);
|
|
9147
|
+
const workerId = `${events.parentNodeId()}/${childId}`;
|
|
9148
|
+
this.emitLifecycle(events, createEvent(EventCategory$1.WorkerOnline, LIFECYCLE_SOURCE, { workerId }), incarnation);
|
|
9149
|
+
}
|
|
9150
|
+
/** `WorkerOffline` for the LIVE connection's close (a superseded close never reaches here). */
|
|
9151
|
+
announceOffline(childId, incarnation) {
|
|
9152
|
+
const events = this.lifecycleEvents;
|
|
9153
|
+
if (events === void 0) return;
|
|
9154
|
+
this.announcedIncarnation.delete(childId);
|
|
9155
|
+
const workerId = `${events.parentNodeId()}/${childId}`;
|
|
9156
|
+
this.emitLifecycle(events, createEvent(EventCategory$1.WorkerOffline, LIFECYCLE_SOURCE, { workerId }), incarnation);
|
|
9157
|
+
}
|
|
9158
|
+
emitLifecycle(events, event, incarnation) {
|
|
9159
|
+
try {
|
|
9160
|
+
events.emit(event);
|
|
9161
|
+
} catch (err) {
|
|
9162
|
+
this.logger?.info("runner lifecycle event could not be emitted", {
|
|
9163
|
+
category: event.category,
|
|
9164
|
+
incarnation,
|
|
9165
|
+
error: err instanceof Error ? err.message : String(err)
|
|
9166
|
+
});
|
|
9167
|
+
}
|
|
9168
|
+
}
|
|
9132
9169
|
onConnection(channel) {
|
|
9133
9170
|
let childId = null;
|
|
9134
9171
|
const incarnation = this.nextIncarnation++;
|
|
@@ -9184,6 +9221,7 @@ var LocalChildRegistry = class {
|
|
|
9184
9221
|
});
|
|
9185
9222
|
this.invalidateCapIndex();
|
|
9186
9223
|
this.logPatternSet(msg.childId, eventPatterns);
|
|
9224
|
+
this.announceOnline(msg.childId, incarnation);
|
|
9187
9225
|
this.registeredHandler({
|
|
9188
9226
|
childId: msg.childId,
|
|
9189
9227
|
caps: msg.caps,
|
|
@@ -9283,6 +9321,7 @@ var LocalChildRegistry = class {
|
|
|
9283
9321
|
this.actionCensus.forget(childId);
|
|
9284
9322
|
this.loggedPatternSet.delete(childId);
|
|
9285
9323
|
this.goneHandler(childId, incarnation);
|
|
9324
|
+
this.announceOffline(childId, incarnation);
|
|
9286
9325
|
});
|
|
9287
9326
|
}
|
|
9288
9327
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Hn as errMsg, In as compositionSourceKey } from "./dist-
|
|
1
|
+
import { Hn as errMsg, In as compositionSourceKey } from "./dist-COj36Fwm.mjs";
|
|
2
2
|
//#region src/builtins/core-blocks/composition-sources.ts
|
|
3
3
|
/**
|
|
4
4
|
* Describe what a composition reads and writes for SAVE-time validation
|
|
@@ -3521,7 +3521,7 @@ function errMsg(err) {
|
|
|
3521
3521
|
return String(err);
|
|
3522
3522
|
}
|
|
3523
3523
|
//#endregion
|
|
3524
|
-
//#region ../types/dist/composition-
|
|
3524
|
+
//#region ../types/dist/composition-D7ULvLdD.mjs
|
|
3525
3525
|
var AUDIO_ENCODER_BY_CODEC = {
|
|
3526
3526
|
opus: "libopus",
|
|
3527
3527
|
aac: "aac",
|
|
@@ -3967,20 +3967,20 @@ function portable(target) {
|
|
|
3967
3967
|
}
|
|
3968
3968
|
portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac64");
|
|
3969
3969
|
/**
|
|
3970
|
-
*
|
|
3971
|
-
*
|
|
3970
|
+
* THE table "which boolean of this device type counts as HIGH", and the
|
|
3971
|
+
* pure evaluator of its EDGE.
|
|
3972
3972
|
*
|
|
3973
|
-
*
|
|
3974
|
-
*
|
|
3975
|
-
*
|
|
3976
|
-
*
|
|
3977
|
-
*
|
|
3978
|
-
*
|
|
3973
|
+
* ONE table for everyone who asks "is this device HIGH?": the
|
|
3974
|
+
* recorder's `RecordingTriggers.sensorDeviceIds` trigger, the post-analysis
|
|
3975
|
+
* sensor markers, the orchestrator's camera-sensors bridge and
|
|
3976
|
+
* the sources of a composite doorbell (`doorbellFeatureSources`, D671).
|
|
3977
|
+
* A second copy would diverge at the first cap added, and the symptom — "the
|
|
3978
|
+
* sensor rings the doorbell but does not record" — is exactly D62.
|
|
3979
3979
|
*
|
|
3980
|
-
* ⚠
|
|
3981
|
-
*
|
|
3982
|
-
*
|
|
3983
|
-
*
|
|
3980
|
+
* ⚠ NOT `DEVICE_STATE_READERS` (`catalogs/device-state-vocabulary.ts`), and the
|
|
3981
|
+
* two must not be unified: that one answers "what is the state WORD for a
|
|
3982
|
+
* rule" (and includes `presence`, `cover`, `alarm-panel`), this one "which
|
|
3983
|
+
* boolean's EDGE counts". Deliberately different vocabularies.
|
|
3984
3984
|
*/
|
|
3985
3985
|
/**
|
|
3986
3986
|
* Known binary / switch source caps → the boolean slice field whose
|
|
@@ -6149,22 +6149,22 @@ var CLASS_MAP_MACRO_TARGETS = [
|
|
|
6149
6149
|
"package"
|
|
6150
6150
|
];
|
|
6151
6151
|
/**
|
|
6152
|
-
*
|
|
6153
|
-
*
|
|
6152
|
+
* The FIRST-LEVEL macro classes: those an object detector emits and that
|
|
6153
|
+
* an operator can select.
|
|
6154
6154
|
*
|
|
6155
|
-
*
|
|
6155
|
+
* They are the three offered by the `object-detection` step
|
|
6156
6156
|
* (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
|
|
6157
|
-
* `enabledMacroClasses`). `package`
|
|
6158
|
-
* `MACRO_LABELS` —
|
|
6159
|
-
* `package-detection`,
|
|
6160
|
-
*
|
|
6157
|
+
* `enabledMacroClasses`). `package` is in {@link CLASS_MAP_MACRO_TARGETS} and in
|
|
6158
|
+
* `MACRO_LABELS` — it is a true macro — but NOT here: it belongs to the step
|
|
6159
|
+
* `package-detection`, whose enablement is driven by zones, and offering the
|
|
6160
|
+
* same word twice has already made an operator turn on the COCO proxy
|
|
6161
6161
|
* (suitcase/backpack/handbag) lasciando spento il detector dedicato.
|
|
6162
6162
|
*
|
|
6163
|
-
*
|
|
6164
|
-
*
|
|
6165
|
-
* (`types/detection.ts`);
|
|
6166
|
-
* (`RecordingTriggers.objectClasses`)
|
|
6167
|
-
*
|
|
6163
|
+
* ONE list. Before today the same three were hand-written in the step's offer
|
|
6164
|
+
* and a second time as the union `FirstLevelMacro`
|
|
6165
|
+
* (`types/detection.ts`); a third copy for the recording trigger
|
|
6166
|
+
* (`RecordingTriggers.objectClasses`) would have made the later divergence
|
|
6167
|
+
* invisible.
|
|
6168
6168
|
*/
|
|
6169
6169
|
var FIRST_LEVEL_MACRO_CLASSES = [
|
|
6170
6170
|
"person",
|
|
@@ -6229,17 +6229,17 @@ var RecordingStorageModeSchema = z.enum([
|
|
|
6229
6229
|
"on-device-decision"
|
|
6230
6230
|
]);
|
|
6231
6231
|
/**
|
|
6232
|
-
*
|
|
6233
|
-
*
|
|
6232
|
+
* The macro classes that can open a recording window — the same
|
|
6233
|
+
* three offered by the `object-detection` step, from ONE list
|
|
6234
6234
|
* ({@link FIRST_LEVEL_MACRO_CLASSES}).
|
|
6235
6235
|
*/
|
|
6236
6236
|
var RecordingObjectTriggerClassSchema = z.enum(FIRST_LEVEL_MACRO_CLASSES);
|
|
6237
6237
|
/**
|
|
6238
|
-
* True
|
|
6238
|
+
* True when `values` does not repeat an element.
|
|
6239
6239
|
*
|
|
6240
|
-
*
|
|
6241
|
-
*
|
|
6242
|
-
*
|
|
6240
|
+
* A duplicate is not harmless: every entry of `objectClasses` / `sensorDeviceIds`
|
|
6241
|
+
* becomes a SOURCE in `bandTriggerSources`, and the same source twice
|
|
6242
|
+
* would count its windows twice in `segmentMissedByMs`.
|
|
6243
6243
|
*/
|
|
6244
6244
|
var noDuplicates = (values) => new Set(values).size === values.length;
|
|
6245
6245
|
/** Which detectors trigger an `events`-mode band. */
|
|
@@ -6247,34 +6247,34 @@ var RecordingTriggersSchema = z.object({
|
|
|
6247
6247
|
motion: z.boolean().optional(),
|
|
6248
6248
|
audioThresholdDbfs: z.number().optional(),
|
|
6249
6249
|
/**
|
|
6250
|
-
*
|
|
6251
|
-
*
|
|
6252
|
-
*
|
|
6253
|
-
*
|
|
6250
|
+
* The macro classes whose detection opens a window. ABSENT = the source
|
|
6251
|
+
* is not listened to; an EMPTY array is rejected, because "events band, object
|
|
6252
|
+
* trigger on, no class" is the same shape "enabled and records
|
|
6253
|
+
* nothing, forever" that `eventsBandCanEverDemand` is written against.
|
|
6254
6254
|
*
|
|
6255
|
-
*
|
|
6256
|
-
*
|
|
6257
|
-
* `minConfidence<Macro>`
|
|
6258
|
-
* (`source: 'onboard'`)
|
|
6259
|
-
*
|
|
6255
|
+
* The signal read is ALREADY FILTERED: only `source: 'pipeline'` detections, i.e.
|
|
6256
|
+
* those that went through `enabledMacroClasses`, the
|
|
6257
|
+
* `minConfidence<Macro>` and the full-frame guard. The camera's onboard AI
|
|
6258
|
+
* (`source: 'onboard'`) goes through none of those gates and does NOT open
|
|
6259
|
+
* windows — see `recorder/object-trigger.ts`.
|
|
6260
6260
|
*/
|
|
6261
6261
|
objectClasses: z.array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
|
|
6262
6262
|
/**
|
|
6263
|
-
*
|
|
6264
|
-
*
|
|
6263
|
+
* The LINKED devices whose RISING EDGE opens a window. Absent = the source
|
|
6264
|
+
* is not listened to; an empty array is rejected for the same reason as
|
|
6265
6265
|
* `objectClasses`.
|
|
6266
6266
|
*
|
|
6267
|
-
*
|
|
6268
|
-
*
|
|
6269
|
-
*
|
|
6270
|
-
*
|
|
6271
|
-
* device (D12) —
|
|
6267
|
+
* These are SOURCE device ids, not cameras: the band names them, so the
|
|
6268
|
+
* hot path (`DeviceStateChanged`, at bus rate across the whole fleet)
|
|
6269
|
+
* does no RPC. The OFFER from which the operator picks them is another question, and
|
|
6270
|
+
* is resolved with `deviceManager.getLinkedDevices` + `getBindingsBatch` per
|
|
6271
|
+
* device (D12) — never a global list of caps.
|
|
6272
6272
|
*
|
|
6273
|
-
*
|
|
6274
|
-
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`)
|
|
6275
|
-
*
|
|
6276
|
-
*
|
|
6277
|
-
*
|
|
6273
|
+
* What "high" means depends on the device TYPE and is not decided here:
|
|
6274
|
+
* `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) is THE table,
|
|
6275
|
+
* the same one as the composite doorbell (D671). And it is the EDGE, not
|
|
6276
|
+
* the level: a contact found already open at runner restart does not
|
|
6277
|
+
* record.
|
|
6278
6278
|
*/
|
|
6279
6279
|
sensorDeviceIds: z.array(z.number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
6280
6280
|
});
|
|
@@ -7545,7 +7545,7 @@ var DecoderSessionConfigSchema = z.object({
|
|
|
7545
7545
|
* - **VALUE** — at which level, for which scope, until when. That stays ONE
|
|
7546
7546
|
* thing: the logging settings document on the `system` cap. Two authorities
|
|
7547
7547
|
* over the values is the exact defect
|
|
7548
|
-
* `docs/design/plans/2026-08-26-
|
|
7548
|
+
* `docs/design/plans/2026-08-26-per-component-logging.md` was written to
|
|
7549
7549
|
* remove; re-introducing it from the cure side would be grotesque.
|
|
7550
7550
|
*
|
|
7551
7551
|
* Nothing in this file reads a clock, an env var or a store. The registry is
|
|
@@ -13660,7 +13660,7 @@ var dataStoreProviderCapability = {
|
|
|
13660
13660
|
*
|
|
13661
13661
|
* ⚠ An earlier version of this comment blamed Zod stripping, and that
|
|
13662
13662
|
* was wrong — corrected 2026-08-26 after the hop map
|
|
13663
|
-
* (`docs/design/2026-08-26-
|
|
13663
|
+
* (`docs/design/2026-08-26-topic-hop-map.md`) traced the path.
|
|
13664
13664
|
* There is **no Zod parse at all** between the door and the engine: the
|
|
13665
13665
|
* dispatcher forwards the payload verbatim and UDS carries it whole. A
|
|
13666
13666
|
* field declared here reaches `SqliteSettingsBackend` either way.
|
|
@@ -14746,7 +14746,17 @@ function siteZoneKey(label) {
|
|
|
14746
14746
|
var ProviderStatusSchema = z.object({
|
|
14747
14747
|
connected: z.boolean(),
|
|
14748
14748
|
deviceCount: z.number(),
|
|
14749
|
-
error: z.string().optional()
|
|
14749
|
+
error: z.string().optional(),
|
|
14750
|
+
/**
|
|
14751
|
+
* `'orchestrator'`: this provider writes NO camera's `motion` runtime slice
|
|
14752
|
+
* — the orchestrator is its only writer (D696). Set by `BaseDeviceProvider`,
|
|
14753
|
+
* which every provider bundles, so only a provider BUILT from D696-amended
|
|
14754
|
+
* code says it. ABSENT means an older provider that may still write it (raw
|
|
14755
|
+
* VMD writes, a boot seed), and the orchestrator's provider gate keeps that
|
|
14756
|
+
* provider's cameras unwritten (`camera-sensors/motion-slice-provider-gate.ts`)
|
|
14757
|
+
* — the provider twin of the runner's `getLocalLoad().motionSliceWriter`.
|
|
14758
|
+
*/
|
|
14759
|
+
motionSliceWriter: z.literal("orchestrator").optional()
|
|
14750
14760
|
});
|
|
14751
14761
|
z.object({
|
|
14752
14762
|
externalId: z.string(),
|
|
@@ -15937,7 +15947,7 @@ var deviceManagerCapability = {
|
|
|
15937
15947
|
* sources could be switched off without switching off the rest (D556, then
|
|
15938
15948
|
* D555's re-key by source). The operator removed the whole idea the same
|
|
15939
15949
|
* day: *"tutti i providers funzionano sempre, non serve
|
|
15940
|
-
* disattivarli/attivarli … loro vivono lì"* (D557 amended, third). A
|
|
15950
|
+
* disattivarli/attivarli … loro vivono lì"* [all the providers always work, there is no need to deactivate/activate them … they live there] (D557 amended, third). A
|
|
15941
15951
|
* collection cap's providers are a DERIVED set — every addon that provides
|
|
15942
15952
|
* the cap for this device type, computed on every read and persisted
|
|
15943
15953
|
* nowhere — so there is nothing here to activate, and a verb that accepted
|
|
@@ -16789,7 +16799,7 @@ var embeddingEncoderCapability = {
|
|
|
16789
16799
|
* per-device window, `KeyFrameCaptureLog`, `bumpCropMetric`. Every one of them
|
|
16790
16800
|
* ends in a log line, and a log line is the thing the operator asked to stop
|
|
16791
16801
|
* needing: *"possiamo armare questi errori intanto? Così al prossimo giro
|
|
16792
|
-
* ricontrolliamo tutti questi punti"
|
|
16802
|
+
* ricontrolliamo tutti questi punti"* [can we instrument these errors in the meantime? That way next round we recheck all these points]. Reading them meant grepping Loki and
|
|
16793
16803
|
* hand-correlating timestamps, which is how a 22% thumbnail gap and a 3-hour
|
|
16794
16804
|
* media blackout were both diagnosed. The counters stay; this is where they can
|
|
16795
16805
|
* be READ.
|
|
@@ -23060,14 +23070,14 @@ var TrackSchema = z.object({
|
|
|
23060
23070
|
* `derive-returned-null tile=standin`,
|
|
23061
23071
|
* `native-tile tile=native no-key-frame-at-close`, …) written at close and
|
|
23062
23072
|
* CLEARED by the late-keyFrame upgrade when a native tile lands after all.
|
|
23063
|
-
* The operator-facing answer to "perché manca l'immagine?" on a track whose
|
|
23073
|
+
* The operator-facing answer to "perché manca l'immagine?" [why is the image missing?] on a track whose
|
|
23064
23074
|
* tile is a face/plate stand-in, a raster crop, or an icon.
|
|
23065
23075
|
*
|
|
23066
23076
|
* **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
|
|
23067
23077
|
* the TILE ranked below native, so a track whose thumbnail landed natively
|
|
23068
23078
|
* while its key frame missed carried no reason at all — three of the four
|
|
23069
23079
|
* `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
|
|
23070
|
-
* that shape, and their "niente ultimo" had no cause anywhere on the row.
|
|
23080
|
+
* that shape, and their "niente ultimo" [no last frame] had no cause anywhere on the row.
|
|
23071
23081
|
* The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
|
|
23072
23082
|
* lastFrame copy source`), so its absence is now on this line whatever the
|
|
23073
23083
|
* tile ended up being.
|
|
@@ -23154,7 +23164,7 @@ var MotionEventSchema = z.object({
|
|
|
23154
23164
|
/**
|
|
23155
23165
|
* Ms offsets from `timestamp` (the episode's own first rising edge, so the
|
|
23156
23166
|
* first entry is always `0`) of every genuine off→on transition the
|
|
23157
|
-
* episode saw — "ogni evento on si deve salvare" (D475). NOT one entry per
|
|
23167
|
+
* episode saw — "ogni evento on si deve salvare" [every ON event must be saved] (D475). NOT one entry per
|
|
23158
23168
|
* push: a firmware source that keepalives at ~1 Hz for the whole burst
|
|
23159
23169
|
* (Reolink, Hikvision) produces exactly one edge; a source that reports an
|
|
23160
23170
|
* explicit `false` mid-episode and then resumes before the quiet window
|
|
@@ -30483,7 +30493,7 @@ var ClipPlaybackSchema = z.object({
|
|
|
30483
30493
|
* **One authorised yes is one wake.** `next-natural` — take the clip the next
|
|
30484
30494
|
* time the camera is awake for its own reasons — is deliberately not a member:
|
|
30485
30495
|
* it was proposed, it is free on the battery, and the operator declined it on
|
|
30486
|
-
* 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."
|
|
30496
|
+
* 2026-09-20 (*"Quando un export viene richiesto si sveglia la camera."* [When an export is requested the camera wakes up],
|
|
30487
30497
|
* D558 "Considered and not taken").
|
|
30488
30498
|
*/
|
|
30489
30499
|
var ClipWakeSchema = z.enum(["authorised"]);
|
|
@@ -30728,7 +30738,7 @@ var videoclipsCapability = {
|
|
|
30728
30738
|
* **It is a SECTION of the Recording tab, at the end of it — not a tab of
|
|
30729
30739
|
* its own.** It shipped as a `clips` top-tab and the operator rejected the
|
|
30730
30740
|
* placement: *"utilizzerei la stessa tab recordings, lì abbiamo già tutto il
|
|
30731
|
-
* necessario, una nuova sezione alla fine per le clips"
|
|
30741
|
+
* necessario, una nuova sezione alla fine per le clips"* [I would use the same recordings tab, there we already have everything necessary, a new section at the end for the clips]. The Recording tab
|
|
30732
30742
|
* already holds the recorder's panel, the schedule bands and the unified
|
|
30733
30743
|
* retention policy; footage the camera itself holds is the same question,
|
|
30734
30744
|
* asked of a different store. `order: 100` puts it after all of them with
|
|
@@ -30789,7 +30799,7 @@ var videoclipsCapability = {
|
|
|
30789
30799
|
* It replaced `sources?: string[]`, a VIEW filter over source ids that
|
|
30790
30800
|
* assumed the answer was a fan-out over everything a camera has. The
|
|
30791
30801
|
* operator settled otherwise on 2026-09-20 — *"l'utilizzatore è uno
|
|
30792
|
-
* solo"* — so the list is asked of one provider at a time and there is
|
|
30802
|
+
* solo"* [there is only one user] — so the list is asked of one provider at a time and there is
|
|
30793
30803
|
* nothing to filter out of it.
|
|
30794
30804
|
*/
|
|
30795
30805
|
provider: z.string().min(1)
|
|
@@ -36456,7 +36466,7 @@ authKey: z.string().optional() }), z.object({
|
|
|
36456
36466
|
*/
|
|
36457
36467
|
/**
|
|
36458
36468
|
* How long after a camera's last rising edge `pipeline-analytics` closes the
|
|
36459
|
-
* motion EPISODE row it kept open for it (D475) — "il delay della cap", in
|
|
36469
|
+
* motion EPISODE row it kept open for it (D475) — "il delay della cap" [the cap's delay], in
|
|
36460
36470
|
* the operator's words. One authority for the whole system: the writer of a
|
|
36461
36471
|
* `Camera` device's slice (the orchestrator, D696) writes this SAME constant
|
|
36462
36472
|
* in `autoClearAfterMs` while `detected: true` (never a camera's own clock —
|
|
@@ -40079,7 +40089,7 @@ var ReadGopBytesResultSchema = z.object({
|
|
|
40079
40089
|
/**
|
|
40080
40090
|
* A time WINDOW of one finalized segment, cut by byte range — the multi-GOP
|
|
40081
40091
|
* twin of {@link ReadGopBytesResultSchema}'s single instant. Built for the
|
|
40082
|
-
* replay clip's `recording` source (`docs/design/plans/2026-08-26-replay-
|
|
40092
|
+
* replay clip's `recording` source (`docs/design/plans/2026-08-26-clip-replay-on-pipeline.md`):
|
|
40083
40093
|
* a replay needs several seconds of native pixels, not one frame.
|
|
40084
40094
|
*
|
|
40085
40095
|
* `ok.data` is standalone-demuxable, same as a GOP read. `ok.reachesRequestedEnd`
|
|
@@ -43031,7 +43041,7 @@ var systemCapability = {
|
|
|
43031
43041
|
*
|
|
43032
43042
|
* This is the surface the operator asked for on 2026-08-28 (*"possiamo
|
|
43033
43043
|
* armare questi errori intanto? Così al prossimo giro ricontrolliamo tutti
|
|
43034
|
-
* questi punti"*). Before it, four live failure modes could only be counted
|
|
43044
|
+
* questi punti"* [can we instrument these errors in the meantime? That way next round we recheck all these points]). Before it, four live failure modes could only be counted
|
|
43035
43045
|
* by grepping Loki and hand-correlating timestamps, which is exactly how a
|
|
43036
43046
|
* 22% thumbnail gap and a 3-hour media blackout were diagnosed — twice.
|
|
43037
43047
|
*
|
|
@@ -57853,7 +57863,7 @@ var PreviewTextField = z.string().max(200);
|
|
|
57853
57863
|
* Whether the notification's preview is a STILL or a short animation.
|
|
57854
57864
|
*
|
|
57855
57865
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
57856
|
-
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
57866
|
+
* rule)"* [sent as a gif or video (as for the other rules)] — the other rules already offer an animated preview, and a ten-hour
|
|
57857
57867
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
57858
57868
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
57859
57869
|
* simply applies it to a dozen frames sampled across the render and assembles
|