@camstack/server 1.2.830 → 1.2.831
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/CHANGELOG.md +6 -0
- package/package.json +16 -9
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +4 -4
- package/system/dist/builtins/composer/composer.addon.mjs +4 -4
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +3 -3
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/local-network.addon.js +3 -3
- package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +3 -3
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{capture-engine-6_V-PR8O.js → capture-engine-CAXBK7ww.js} +1 -1
- package/system/dist/{capture-engine-cp3my4VK.mjs → capture-engine-D8AiIjQC.mjs} +1 -1
- package/system/dist/{composition-sources-JwBPIhdO.js → composition-sources-BunkRPGS.js} +1 -1
- package/system/dist/{composition-sources-C-iX_Uuu.mjs → composition-sources-UhXWDHi8.mjs} +1 -1
- package/system/dist/{constants-C4V2z-GT.js → constants-B5QCyskv.js} +1 -1
- package/system/dist/{constants-D5oNuYLD.mjs → constants-C0KB1WOf.mjs} +1 -1
- package/system/dist/{device-ca-DAuMNieL.js → device-ca-DJNiUFgb.js} +1 -1
- package/system/dist/{device-ca-CXPTrORC.mjs → device-ca-I_cMOy9W.mjs} +1 -1
- package/system/dist/{dist-DVrLQr6W.js → dist-BObCeiJC.js} +226 -50
- package/system/dist/{dist-B8dBvJJK.mjs → dist-BkjJt6LD.mjs} +226 -50
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-D2sSTELW.mjs → hub-identity-DOgoRPxv.mjs} +1 -1
- package/system/dist/{hub-identity-Cg1_bzoY.js → hub-identity-QhEXr2sn.js} +1 -1
- package/system/dist/{hub-mdns-ciao-Twxwj9Vh.mjs → hub-mdns-ciao-CHGaz6Vj.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-DCHShuFh.js → hub-mdns-ciao-L9Qt3eVs.js} +2 -2
- package/system/dist/index.js +8 -8
- package/system/dist/index.mjs +8 -8
- package/system/dist/{legacy-integration-rows-door-i0gANn4l.js → legacy-integration-rows-door-4SwHHOO6.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-lRhfbNBc.mjs → legacy-integration-rows-door-tl15MjSN.mjs} +1 -1
- package/system/dist/{rename-composition-block-BRy-9srI.js → rename-composition-block-BRlgC6CC.js} +1 -1
- package/system/dist/{rename-composition-block-C2IbabFp.mjs → rename-composition-block-DunKva8Y.mjs} +1 -1
- package/system/dist/{restore-archive-_y4JaVgy.js → restore-archive-DDeWKKhR.js} +1 -1
- package/system/dist/{restore-archive-CkyWtDIi.mjs → restore-archive-ZLiUoIzW.mjs} +1 -1
- package/system/dist/{wal-maintenance-Dn2cx4Km.mjs → wal-maintenance-7Zug5GTs.mjs} +0 -0
- package/system/dist/{wal-maintenance-BfkwceLa.js → wal-maintenance-CXx0PMNE.js} +0 -0
- package/system/package.json +1 -1
|
@@ -43385,6 +43385,92 @@ function zoneOnlySite(timeZone) {
|
|
|
43385
43385
|
timeZone
|
|
43386
43386
|
};
|
|
43387
43387
|
}
|
|
43388
|
+
/**
|
|
43389
|
+
* Hold semantics — "for N seconds" on a leaf of the `when` tree (#498).
|
|
43390
|
+
*
|
|
43391
|
+
* ONE primitive, `for: { ms, mode, tolerance? }`, shared by `device-becomes`,
|
|
43392
|
+
* `device-is` and `expression`:
|
|
43393
|
+
*
|
|
43394
|
+
* - `held`: the condition stays true for `ms`;
|
|
43395
|
+
* - `stable`: the value does not move by more than `tolerance` (absolute, in
|
|
43396
|
+
* the field's base unit) for `ms` while the condition holds.
|
|
43397
|
+
*
|
|
43398
|
+
* {@link HoldCore} is the pure state machine (an input observation → a reading).
|
|
43399
|
+
* {@link HoldTracker} keys cores by a leaf path for the STATE leaves the tree
|
|
43400
|
+
* evaluator judges. {@link BecomesWatch} wraps a core with a timer for the
|
|
43401
|
+
* `device-becomes` EVENT leaf: the deadline is armed when the hold starts and
|
|
43402
|
+
* cancelled when it breaks, and the leaf fires ONCE per episode.
|
|
43403
|
+
*
|
|
43404
|
+
* Hold state is memory only. A hold that is already running when the watcher
|
|
43405
|
+
* first looks (a restart) is INHERITED: nobody knows when it began, so it never
|
|
43406
|
+
* fires for that episode and a state leaf reads it as unknown until the window
|
|
43407
|
+
* has elapsed from the moment the watcher started (D49: not-known is not false).
|
|
43408
|
+
*/
|
|
43409
|
+
var HOLD_MAX_MS = 864e5;
|
|
43410
|
+
var HoldModeSchema = z.enum(["held", "stable"]);
|
|
43411
|
+
var HoldSpecSchema = z.object({
|
|
43412
|
+
/** How long the condition (or the value) must hold. */
|
|
43413
|
+
ms: z.number().int().min(1).max(HOLD_MAX_MS),
|
|
43414
|
+
mode: HoldModeSchema,
|
|
43415
|
+
/** `stable` only: the largest move of the value that still counts as unchanged (absolute, base unit). */
|
|
43416
|
+
tolerance: z.number().min(0).optional()
|
|
43417
|
+
});
|
|
43418
|
+
/** What a trace says about a hold. */
|
|
43419
|
+
var HoldTraceSchema = z.object({
|
|
43420
|
+
phase: z.enum([
|
|
43421
|
+
"pending",
|
|
43422
|
+
"cancelled",
|
|
43423
|
+
"fired",
|
|
43424
|
+
"reseeded"
|
|
43425
|
+
]),
|
|
43426
|
+
ms: z.number().int(),
|
|
43427
|
+
mode: HoldModeSchema,
|
|
43428
|
+
/** When the hold started (ms epoch). */
|
|
43429
|
+
since: z.number().optional(),
|
|
43430
|
+
/** When it completes (ms epoch), for a pending hold. */
|
|
43431
|
+
deadline: z.number().optional()
|
|
43432
|
+
});
|
|
43433
|
+
/** `30 s`, `5 min`, `1 h 5 min` — a hold window for a human. */
|
|
43434
|
+
function describeHoldMs(ms) {
|
|
43435
|
+
const s = Math.round(ms / 1e3);
|
|
43436
|
+
if (s < 60) return `${s} s`;
|
|
43437
|
+
const m = Math.floor(s / 60);
|
|
43438
|
+
const rest = s % 60;
|
|
43439
|
+
if (m < 60) return rest === 0 ? `${m} min` : `${m} min ${rest} s`;
|
|
43440
|
+
const h = Math.floor(m / 60);
|
|
43441
|
+
return m % 60 === 0 ? `${h} h` : `${h} h ${m % 60} min`;
|
|
43442
|
+
}
|
|
43443
|
+
/** The operators a `device-becomes` leaf may carry: a threshold or a range. */
|
|
43444
|
+
var BecomesOperatorSchema = z.enum([
|
|
43445
|
+
"eq",
|
|
43446
|
+
"ne",
|
|
43447
|
+
"gt",
|
|
43448
|
+
"gte",
|
|
43449
|
+
"lt",
|
|
43450
|
+
"lte",
|
|
43451
|
+
"between",
|
|
43452
|
+
"outside"
|
|
43453
|
+
]);
|
|
43454
|
+
function compareValues(actual, operator, expected) {
|
|
43455
|
+
switch (operator) {
|
|
43456
|
+
case "eq": return actual === expected;
|
|
43457
|
+
case "ne": return actual !== expected;
|
|
43458
|
+
case "gt": return typeof actual === "number" && typeof expected === "number" && actual > expected;
|
|
43459
|
+
case "gte": return typeof actual === "number" && typeof expected === "number" && actual >= expected;
|
|
43460
|
+
case "lt": return typeof actual === "number" && typeof expected === "number" && actual < expected;
|
|
43461
|
+
case "lte": return typeof actual === "number" && typeof expected === "number" && actual <= expected;
|
|
43462
|
+
case "contains": return typeof actual === "string" && typeof expected === "string" && actual.includes(expected);
|
|
43463
|
+
case "in": return Array.isArray(expected) && expected.some((v) => v === actual);
|
|
43464
|
+
case "between":
|
|
43465
|
+
case "outside": {
|
|
43466
|
+
if (typeof actual !== "number" || !Array.isArray(expected)) return false;
|
|
43467
|
+
const [low, high] = expected;
|
|
43468
|
+
if (typeof low !== "number" || typeof high !== "number") return false;
|
|
43469
|
+
const inside = actual >= low && actual <= high;
|
|
43470
|
+
return operator === "between" ? inside : !inside;
|
|
43471
|
+
}
|
|
43472
|
+
}
|
|
43473
|
+
}
|
|
43388
43474
|
/** How a state leaf compares a device field to a value. Derived from the
|
|
43389
43475
|
* field's `kind` in `deviceManager.getWireableFields`, never hand-maintained. */
|
|
43390
43476
|
var AutomationConditionOperatorSchema = z.enum([
|
|
@@ -43408,18 +43494,52 @@ var DeviceBecomesLeafSchema = z.object({
|
|
|
43408
43494
|
deviceId: z.number().int().nonnegative(),
|
|
43409
43495
|
cap: z.string().min(1),
|
|
43410
43496
|
fieldPath: z.string().min(1),
|
|
43411
|
-
/** Fire when the field takes this value. Omit to fire on any change. */
|
|
43497
|
+
/** Fire when the field takes this value. Omit (with no `operator`) to fire on any change. */
|
|
43412
43498
|
becomes: z.union([
|
|
43413
43499
|
z.string(),
|
|
43414
43500
|
z.number(),
|
|
43415
43501
|
z.boolean()
|
|
43416
43502
|
]).optional(),
|
|
43417
|
-
/**
|
|
43503
|
+
/**
|
|
43504
|
+
* A threshold or a range instead of an equality: "crosses above 3000", "enters
|
|
43505
|
+
* 18..24". The leaf fires on the TRANSITION into the predicate, never on a re-report.
|
|
43506
|
+
* `value` is in the field's base unit; `between` / `outside` take `[low, high]`.
|
|
43507
|
+
*/
|
|
43508
|
+
operator: BecomesOperatorSchema.optional(),
|
|
43509
|
+
value: z.union([
|
|
43510
|
+
z.number(),
|
|
43511
|
+
z.string(),
|
|
43512
|
+
z.boolean(),
|
|
43513
|
+
z.array(z.number()).length(2)
|
|
43514
|
+
]).optional(),
|
|
43515
|
+
/**
|
|
43516
|
+
* Hold: the transition (or, with no predicate, the new value) must stay for
|
|
43517
|
+
* `for.ms` before the leaf fires, ONCE per episode. See `hold.ts`.
|
|
43518
|
+
*/
|
|
43519
|
+
for: HoldSpecSchema.optional(),
|
|
43520
|
+
/** @deprecated every leaf fires on a transition now; read as always on. */
|
|
43418
43521
|
edge: z.boolean().optional(),
|
|
43419
|
-
/**
|
|
43420
|
-
forMs: z.number().int().min(0).max(
|
|
43522
|
+
/** @deprecated legacy `held` window — read through `holdOf` as `for: { ms, mode: 'held' }`. */
|
|
43523
|
+
forMs: z.number().int().min(0).max(HOLD_MAX_MS).optional(),
|
|
43421
43524
|
/** Collapse a burst into one occurrence. */
|
|
43422
43525
|
debounceMs: z.number().int().min(0).max(6e5).optional()
|
|
43526
|
+
}).superRefine((leaf, ctx) => {
|
|
43527
|
+
if (leaf.becomes !== void 0 && leaf.operator !== void 0) ctx.addIssue({
|
|
43528
|
+
code: "custom",
|
|
43529
|
+
message: "a leaf names `becomes` or `operator`, not both",
|
|
43530
|
+
path: ["operator"]
|
|
43531
|
+
});
|
|
43532
|
+
if (leaf.operator !== void 0 && leaf.value === void 0) ctx.addIssue({
|
|
43533
|
+
code: "custom",
|
|
43534
|
+
message: "an operator needs the value to compare to",
|
|
43535
|
+
path: ["value"]
|
|
43536
|
+
});
|
|
43537
|
+
const range = leaf.operator === "between" || leaf.operator === "outside";
|
|
43538
|
+
if (leaf.operator !== void 0 && range !== Array.isArray(leaf.value)) ctx.addIssue({
|
|
43539
|
+
code: "custom",
|
|
43540
|
+
message: range ? "a range takes [low, high]" : "only a range takes [low, high]",
|
|
43541
|
+
path: ["value"]
|
|
43542
|
+
});
|
|
43423
43543
|
});
|
|
43424
43544
|
var DeviceEventLeafSchema = z.object({
|
|
43425
43545
|
kind: z.literal("device-event"),
|
|
@@ -43484,7 +43604,9 @@ var DeviceIsLeafSchema = z.object({
|
|
|
43484
43604
|
QuantityValueSchema
|
|
43485
43605
|
]),
|
|
43486
43606
|
/** The unit the person picked for `value` (display only; `value` is in the base unit). */
|
|
43487
|
-
unit: z.string().min(1).optional()
|
|
43607
|
+
unit: z.string().min(1).optional(),
|
|
43608
|
+
/** The comparison must hold (`held`) or the value stay put (`stable`) this long. */
|
|
43609
|
+
for: HoldSpecSchema.optional()
|
|
43488
43610
|
});
|
|
43489
43611
|
/**
|
|
43490
43612
|
* True when the camera currently has a PARKED object matching `subjects` in at
|
|
@@ -43507,7 +43629,9 @@ var StationaryPresentLeafSchema = z.object({
|
|
|
43507
43629
|
var ExpressionLeafSchema = z.object({
|
|
43508
43630
|
kind: z.literal("expression"),
|
|
43509
43631
|
expr: z.string().min(1).max(MAX_EXPRESSION_SOURCE_LENGTH),
|
|
43510
|
-
bindings: z.record(z.string().regex(EXPRESSION_IDENTIFIER_RE), ExpressionBindingSourceSchema)
|
|
43632
|
+
bindings: z.record(z.string().regex(EXPRESSION_IDENTIFIER_RE), ExpressionBindingSourceSchema),
|
|
43633
|
+
/** The expression must stay true this long. An expression has no single value, so only `held`. */
|
|
43634
|
+
for: HoldSpecSchema.optional()
|
|
43511
43635
|
}).superRefine((src, ctx) => {
|
|
43512
43636
|
const err = validateExpressionSource(src);
|
|
43513
43637
|
if (err !== null) ctx.addIssue({
|
|
@@ -43515,6 +43639,11 @@ var ExpressionLeafSchema = z.object({
|
|
|
43515
43639
|
message: err,
|
|
43516
43640
|
path: ["expr"]
|
|
43517
43641
|
});
|
|
43642
|
+
if (src.for?.mode === "stable") ctx.addIssue({
|
|
43643
|
+
code: "custom",
|
|
43644
|
+
message: "an expression is held, not stable: it has no single value to keep still",
|
|
43645
|
+
path: ["for", "mode"]
|
|
43646
|
+
});
|
|
43518
43647
|
});
|
|
43519
43648
|
var AutomationWhenSchema = z.lazy(() => z.discriminatedUnion("kind", [
|
|
43520
43649
|
z.object({
|
|
@@ -44064,28 +44193,6 @@ function convertLegacyRecipe(legacy) {
|
|
|
44064
44193
|
* it. The output type is always the new one.
|
|
44065
44194
|
*/
|
|
44066
44195
|
var AutomationRecipeSchema = z.union([CurrentAutomationRecipeSchema, LegacyAutomationRecipeSchema.transform(convertLegacyRecipe)]);
|
|
44067
|
-
var DETECTION_DESCRIPTIONS = {
|
|
44068
|
-
deviceId: "the camera that saw it",
|
|
44069
|
-
className: "what it saw",
|
|
44070
|
-
trackId: "the track",
|
|
44071
|
-
score: "how sure the detector was",
|
|
44072
|
-
label: "the label it matched (a name, a plate), empty when none"
|
|
44073
|
-
};
|
|
44074
|
-
var STATIONARY_DESCRIPTIONS = {
|
|
44075
|
-
deviceId: "the camera that saw it",
|
|
44076
|
-
className: "what it saw",
|
|
44077
|
-
zones: "the zones it is in",
|
|
44078
|
-
phase: "appeared or departed",
|
|
44079
|
-
entryId: "the stopped object"
|
|
44080
|
-
};
|
|
44081
|
-
function describe$1(descriptions) {
|
|
44082
|
-
return Object.entries(descriptions).map(([name, description]) => ({
|
|
44083
|
-
name,
|
|
44084
|
-
description
|
|
44085
|
-
}));
|
|
44086
|
-
}
|
|
44087
|
-
describe$1(DETECTION_DESCRIPTIONS);
|
|
44088
|
-
describe$1(STATIONARY_DESCRIPTIONS);
|
|
44089
44196
|
/**
|
|
44090
44197
|
* Evaluating an automation's condition tree against the ConditionMirror.
|
|
44091
44198
|
*
|
|
@@ -44264,18 +44371,7 @@ var OPERATOR_SYMBOL = {
|
|
|
44264
44371
|
contains: "contains",
|
|
44265
44372
|
in: "in"
|
|
44266
44373
|
};
|
|
44267
|
-
|
|
44268
|
-
switch (operator) {
|
|
44269
|
-
case "eq": return actual === expected;
|
|
44270
|
-
case "ne": return actual !== expected;
|
|
44271
|
-
case "gt": return typeof actual === "number" && typeof expected === "number" && actual > expected;
|
|
44272
|
-
case "gte": return typeof actual === "number" && typeof expected === "number" && actual >= expected;
|
|
44273
|
-
case "lt": return typeof actual === "number" && typeof expected === "number" && actual < expected;
|
|
44274
|
-
case "lte": return typeof actual === "number" && typeof expected === "number" && actual <= expected;
|
|
44275
|
-
case "contains": return typeof actual === "string" && typeof expected === "string" && actual.includes(expected);
|
|
44276
|
-
case "in": return Array.isArray(expected) && expected.some((v) => v === actual);
|
|
44277
|
-
}
|
|
44278
|
-
}
|
|
44374
|
+
var compare = compareValues;
|
|
44279
44375
|
function toTraceValue(value) {
|
|
44280
44376
|
if (value === void 0 || value === null) return null;
|
|
44281
44377
|
if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") return value;
|
|
@@ -44364,6 +44460,42 @@ function judgeStationaryPresent(cond, reader) {
|
|
|
44364
44460
|
why: `${parked.length} parked on device ${cond.deviceId}, none matching the class/zone filter`
|
|
44365
44461
|
};
|
|
44366
44462
|
}
|
|
44463
|
+
function noteDue(state, hold) {
|
|
44464
|
+
if (hold?.due === void 0) return;
|
|
44465
|
+
state.holdDueInMs = state.holdDueInMs === void 0 ? hold.due : Math.min(state.holdDueInMs, hold.due);
|
|
44466
|
+
}
|
|
44467
|
+
/** What a state leaf's hold says, given whether the leaf's own condition is true NOW. */
|
|
44468
|
+
function judgeHold(hold, reading, conditionTrue) {
|
|
44469
|
+
const window = `${hold.mode === "stable" ? "stable" : "held"} for ${describeHoldMs(hold.ms)}`;
|
|
44470
|
+
if (reading === void 0) return {
|
|
44471
|
+
pass: false,
|
|
44472
|
+
unknown: true,
|
|
44473
|
+
why: `${window}: nothing keeps this leaf's history here`
|
|
44474
|
+
};
|
|
44475
|
+
switch (reading.phase) {
|
|
44476
|
+
case "met": return {
|
|
44477
|
+
pass: true,
|
|
44478
|
+
unknown: false,
|
|
44479
|
+
why: `${window}: met`
|
|
44480
|
+
};
|
|
44481
|
+
case "pending": return {
|
|
44482
|
+
due: reading.remainingMs,
|
|
44483
|
+
pass: false,
|
|
44484
|
+
unknown: false,
|
|
44485
|
+
why: `${window}: ${describeHoldMs(hold.ms - reading.remainingMs)} so far`
|
|
44486
|
+
};
|
|
44487
|
+
case "inherited": return {
|
|
44488
|
+
pass: false,
|
|
44489
|
+
unknown: true,
|
|
44490
|
+
why: `${window}: it was already true when watching began, so how long it has held is not known`
|
|
44491
|
+
};
|
|
44492
|
+
case "idle": return {
|
|
44493
|
+
pass: false,
|
|
44494
|
+
unknown: false,
|
|
44495
|
+
why: conditionTrue ? `${window}: just changed` : `${window}: the condition is not true`
|
|
44496
|
+
};
|
|
44497
|
+
}
|
|
44498
|
+
}
|
|
44367
44499
|
function evalEventLeaf(cond, path, state, out) {
|
|
44368
44500
|
const occurred = state.firedPath === path;
|
|
44369
44501
|
out.push({
|
|
@@ -44406,11 +44538,18 @@ function evalNode(cond, path, reader, now, out, state) {
|
|
|
44406
44538
|
});
|
|
44407
44539
|
return false;
|
|
44408
44540
|
}
|
|
44409
|
-
const
|
|
44541
|
+
const compared = compare(observed, cond.operator, cond.value);
|
|
44542
|
+
const hold = cond.for === void 0 ? void 0 : judgeHold(cond.for, state.holds?.observe(path, cond.for, {
|
|
44543
|
+
holds: compared,
|
|
44544
|
+
value: observed
|
|
44545
|
+
}, now), compared);
|
|
44546
|
+
if (hold?.unknown === true) state.unknown = true;
|
|
44547
|
+
noteDue(state, hold);
|
|
44548
|
+
const ok = compared && (hold === void 0 || hold.pass);
|
|
44410
44549
|
out.push({
|
|
44411
44550
|
...base,
|
|
44412
44551
|
outcome: ok ? "pass" : "fail",
|
|
44413
|
-
reason: `${cond.fieldPath} ${show(observed)}, expected ${OPERATOR_SYMBOL[cond.operator]} ${show(cond.value)} → ${ok ? "pass" : "fail"}`
|
|
44552
|
+
reason: `${cond.fieldPath} ${show(observed)}, expected ${OPERATOR_SYMBOL[cond.operator]} ${show(cond.value)}${hold === void 0 ? "" : ` (${hold.why})`} → ${ok ? "pass" : "fail"}`
|
|
44414
44553
|
});
|
|
44415
44554
|
return ok;
|
|
44416
44555
|
}
|
|
@@ -44457,12 +44596,19 @@ function evalNode(cond, path, reader, now, out, state) {
|
|
|
44457
44596
|
});
|
|
44458
44597
|
return false;
|
|
44459
44598
|
}
|
|
44460
|
-
const
|
|
44599
|
+
const truth = result.value === true;
|
|
44600
|
+
const hold = cond.for === void 0 ? void 0 : judgeHold(cond.for, state.holds?.observe(path, cond.for, {
|
|
44601
|
+
holds: truth,
|
|
44602
|
+
value: truth
|
|
44603
|
+
}, now), truth);
|
|
44604
|
+
if (hold?.unknown === true) state.unknown = true;
|
|
44605
|
+
noteDue(state, hold);
|
|
44606
|
+
const ok = truth && (hold === void 0 || hold.pass);
|
|
44461
44607
|
out.push({
|
|
44462
44608
|
path,
|
|
44463
44609
|
kind: cond.kind,
|
|
44464
44610
|
outcome: ok ? "pass" : "fail",
|
|
44465
|
-
reason: `${cond.expr} with ${JSON.stringify(values)} → ${ok ? "pass" : "fail"}`
|
|
44611
|
+
reason: `${cond.expr} with ${JSON.stringify(values)}${hold === void 0 ? "" : ` (${hold.why})`} → ${ok ? "pass" : "fail"}`
|
|
44466
44612
|
});
|
|
44467
44613
|
return ok;
|
|
44468
44614
|
}
|
|
@@ -44522,14 +44668,39 @@ function evaluateWhenTree(when, reader, now, options = {}) {
|
|
|
44522
44668
|
const nodes = [];
|
|
44523
44669
|
const state = {
|
|
44524
44670
|
firedPath: options.firedPath,
|
|
44525
|
-
|
|
44671
|
+
holds: options.holds,
|
|
44672
|
+
unknown: false,
|
|
44673
|
+
holdDueInMs: void 0
|
|
44526
44674
|
};
|
|
44527
44675
|
return {
|
|
44528
44676
|
pass: evalNode(when, options.rootPath ?? "when", reader, now, nodes, state),
|
|
44529
44677
|
unknown: state.unknown,
|
|
44530
|
-
nodes
|
|
44678
|
+
nodes,
|
|
44679
|
+
...state.holdDueInMs === void 0 ? {} : { holdDueInMs: state.holdDueInMs }
|
|
44531
44680
|
};
|
|
44532
44681
|
}
|
|
44682
|
+
var DETECTION_DESCRIPTIONS = {
|
|
44683
|
+
deviceId: "the camera that saw it",
|
|
44684
|
+
className: "what it saw",
|
|
44685
|
+
trackId: "the track",
|
|
44686
|
+
score: "how sure the detector was",
|
|
44687
|
+
label: "the label it matched (a name, a plate), empty when none"
|
|
44688
|
+
};
|
|
44689
|
+
var STATIONARY_DESCRIPTIONS = {
|
|
44690
|
+
deviceId: "the camera that saw it",
|
|
44691
|
+
className: "what it saw",
|
|
44692
|
+
zones: "the zones it is in",
|
|
44693
|
+
phase: "appeared or departed",
|
|
44694
|
+
entryId: "the stopped object"
|
|
44695
|
+
};
|
|
44696
|
+
function describe$1(descriptions) {
|
|
44697
|
+
return Object.entries(descriptions).map(([name, description]) => ({
|
|
44698
|
+
name,
|
|
44699
|
+
description
|
|
44700
|
+
}));
|
|
44701
|
+
}
|
|
44702
|
+
describe$1(DETECTION_DESCRIPTIONS);
|
|
44703
|
+
describe$1(STATIONARY_DESCRIPTIONS);
|
|
44533
44704
|
new Set(Object.values(COCO_TO_MACRO.mapping));
|
|
44534
44705
|
/**
|
|
44535
44706
|
* Schedulers (D983) — an entity that performs actions over the day.
|
|
@@ -44854,7 +45025,9 @@ var AutomationTriggerTraceSchema = z.object({
|
|
|
44854
45025
|
/** Why an event was rejected ("class person not in [dog]") or what fired. */
|
|
44855
45026
|
reason: z.string(),
|
|
44856
45027
|
/** deviceId, className, trackId, score … — only what the trigger exposes. */
|
|
44857
|
-
vars: z.record(z.string(), TraceValueSchema)
|
|
45028
|
+
vars: z.record(z.string(), TraceValueSchema),
|
|
45029
|
+
/** A hold (`for`) this occurrence went through: pending, cancelled, fired or re-seeded. */
|
|
45030
|
+
hold: HoldTraceSchema.optional()
|
|
44858
45031
|
});
|
|
44859
45032
|
var AutomationConditionTraceNodeSchema = z.object({
|
|
44860
45033
|
/** `when` for the root, `when.<i>` for its i-th child, … (`conditions…` on an old trace). */
|
|
@@ -45302,10 +45475,13 @@ var ActionRunChangedSchema = z.object({
|
|
|
45302
45475
|
* nothing, and never decides a branch).
|
|
45303
45476
|
*/
|
|
45304
45477
|
/** Fill a mirror for the tree's leaves from `fetchers` and judge it NOW. */
|
|
45305
|
-
async function evaluateStepCondition(when, fetchers, now = Date.now) {
|
|
45306
|
-
const mirror = new ConditionMirror(collectWhenMirrorSources(when));
|
|
45478
|
+
async function evaluateStepCondition(when, fetchers, now = Date.now, history) {
|
|
45479
|
+
const mirror = history?.mirror ?? new ConditionMirror(collectWhenMirrorSources(when));
|
|
45307
45480
|
await mirror.refresh(fetchers);
|
|
45308
|
-
const evaluation = evaluateWhenTree(when, mirror, now()
|
|
45481
|
+
const evaluation = evaluateWhenTree(when, mirror, now(), { ...history === void 0 ? {} : {
|
|
45482
|
+
holds: history.holds,
|
|
45483
|
+
rootPath: history.rootPath
|
|
45484
|
+
} });
|
|
45309
45485
|
const first = evaluation.nodes.filter((n) => n.outcome !== "pass").map((n) => n.reason)[0];
|
|
45310
45486
|
if (evaluation.unknown) return {
|
|
45311
45487
|
result: "unknown",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
2
|
+
const require_wal_maintenance = require("./wal-maintenance-CXx0PMNE.js");
|
|
3
3
|
let node_worker_threads = require("node:worker_threads");
|
|
4
4
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-
|
|
1
|
+
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-7Zug5GTs.mjs";
|
|
2
2
|
import { parentPort, threadId, workerData } from "node:worker_threads";
|
|
3
3
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { mc as defineRecordKinds } from "./dist-
|
|
1
|
+
import { mc as defineRecordKinds } from "./dist-BkjJt6LD.mjs";
|
|
2
2
|
import { C as backdatedNotBefore, S as withUtcTimeEncoding, _ as NameConstraints, a as KeyUsageFlags, c as Pkcs10CertificateRequest, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, g as GeneralSubtrees, h as GeneralSubtree, i as Extension, l as Pkcs10CertificateRequestGenerator, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension, u as SubjectAlternativeNameExtension, v as GeneralName, x as AsnConvert } from "./x509.es-BRiJgOvu.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { X509Certificate, createHash, createPrivateKey, randomBytes, webcrypto } from "node:crypto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-BObCeiJC.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
4
|
let zod = require("zod");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as __toESM } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { il as userError } from "./dist-
|
|
2
|
+
import { il as userError } from "./dist-BkjJt6LD.mjs";
|
|
3
3
|
import { f as X509Certificate$1 } from "./x509.es-BRiJgOvu.mjs";
|
|
4
|
-
import { A as evaluateExistingCert, C as localCaCommonName, F as isConstrainedCa, L as permitsIdentity, S as loadCa, b as generateCa, j as reasonRequiresNewCa, w as collectCertIdentity, x as issueLeaf, z as readNameConstraints } from "./hub-identity-
|
|
4
|
+
import { A as evaluateExistingCert, C as localCaCommonName, F as isConstrainedCa, L as permitsIdentity, S as loadCa, b as generateCa, j as reasonRequiresNewCa, w as collectCertIdentity, x as issueLeaf, z as readNameConstraints } from "./hub-identity-DOgoRPxv.mjs";
|
|
5
5
|
import { X509Certificate, createPrivateKey } from "node:crypto";
|
|
6
6
|
import { writeOwnerOnlyFileSync } from "@camstack/types/node";
|
|
7
7
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-BObCeiJC.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
|
-
const require_hub_identity = require("./hub-identity-
|
|
4
|
+
const require_hub_identity = require("./hub-identity-QhEXr2sn.js");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
6
6
|
let _camstack_types_node = require("@camstack/types/node");
|
|
7
7
|
let node_fs = require("node:fs");
|
package/system/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("./dist-
|
|
4
|
-
const require_device_ca = require("./device-ca-
|
|
3
|
+
const require_dist = require("./dist-BObCeiJC.js");
|
|
4
|
+
const require_device_ca = require("./device-ca-DJNiUFgb.js");
|
|
5
5
|
const require_read_all_rows$1 = require("./read-all-rows-CVoO1ONM.js");
|
|
6
6
|
const require_log_redactor = require("./log-redactor-BhIEMaG9.js");
|
|
7
7
|
const require_builtins_alerts_alerts_addon = require("./builtins/alerts/alerts.addon.js");
|
|
@@ -28,22 +28,22 @@ const require_builtins_loki_logging_index = require("./builtins/loki-logging/ind
|
|
|
28
28
|
const require_builtins_native_metrics_native_metrics_addon = require("./builtins/native-metrics/native-metrics.addon.js");
|
|
29
29
|
const require_builtins_device_history_device_history_addon = require("./builtins/device-history/device-history.addon.js");
|
|
30
30
|
const require_builtins_sqlite_storage_filesystem_storage_addon = require("./builtins/sqlite-storage/filesystem-storage.addon.js");
|
|
31
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
32
|
-
const require_legacy_integration_rows_door = require("./legacy-integration-rows-door-
|
|
31
|
+
const require_wal_maintenance = require("./wal-maintenance-CXx0PMNE.js");
|
|
32
|
+
const require_legacy_integration_rows_door = require("./legacy-integration-rows-door-4SwHHOO6.js");
|
|
33
33
|
const require_builtins_sqlite_storage_sqlite_settings_addon = require("./builtins/sqlite-storage/sqlite-settings.addon.js");
|
|
34
34
|
const require_builtins_sqlite_storage_index = require("./builtins/sqlite-storage/index.js");
|
|
35
35
|
const require_builtins_storage_orchestrator_storage_orchestrator_addon = require("./builtins/storage-orchestrator/storage-orchestrator.addon.js");
|
|
36
36
|
require("./builtins/storage-orchestrator/index.js");
|
|
37
|
-
const require_hub_identity = require("./hub-identity-
|
|
38
|
-
const require_constants = require("./constants-
|
|
37
|
+
const require_hub_identity = require("./hub-identity-QhEXr2sn.js");
|
|
38
|
+
const require_constants = require("./constants-B5QCyskv.js");
|
|
39
39
|
const require_builtins_system_config_system_config_addon = require("./builtins/system-config/system-config.addon.js");
|
|
40
40
|
require("./builtins/system-config/index.js");
|
|
41
41
|
const require_builtins_winston_logging_index = require("./builtins/winston-logging/index.js");
|
|
42
42
|
const require_custom_action_registry = require("./custom-action-registry-CmWpSeMS.js");
|
|
43
|
-
const require_hub_mdns_ciao = require("./hub-mdns-ciao-
|
|
43
|
+
const require_hub_mdns_ciao = require("./hub-mdns-ciao-L9Qt3eVs.js");
|
|
44
44
|
const require_platform_key_source = require("./platform-key-source-Di7HrlGR.js");
|
|
45
45
|
const require_resource_monitor = require("./resource-monitor-mio9dSCT.js");
|
|
46
|
-
const require_restore_archive = require("./restore-archive-
|
|
46
|
+
const require_restore_archive = require("./restore-archive-DDeWKKhR.js");
|
|
47
47
|
const require_coral_accelerators = require("./coral-accelerators-BSVsBVzt.js");
|
|
48
48
|
let zod = require("zod");
|
|
49
49
|
let node_crypto = require("node:crypto");
|
package/system/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __require } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { Di as looseSchema, Dt as METHOD_ACCESS_MAP, Ei as logLevelAtMost, Et as LOG_LEVEL_RANK, Fs as ReadinessRegistry, Gc as readinessKey, Gi as objectInputDeclaresAddonId, Ha as scopesAllowDeviceCap, Hc as parseJsonObject, Is as ReadinessTimeoutError, Ki as objectInputDeclaresRequiredDeviceId, Lr as extractNestedAddonId, O as CatalogFileSchema, Ps as RUNTIME_DEFAULTS, Qs as asString$1, Rt as PackageRequiresSchema, Tc as isDebugChannelName, Uc as parseJsonUnknown, Va as scopesAllowAddon, Xc as scopeKey, Xn as compareVersions, Xs as asJsonObject$1, Zs as asNumber, _s as DEVICE_SETTINGS_CONTRIBUTION_METHODS, a as AGENT_MDNS_SERVICE_TYPE, ac as collectSecretMarkerRefs, ai as isCollectionArrayMethod, bc as getDebugInterest, bn as addonSettingsCapability, di as isObjectInput, dl as errMsg$1, ei as interpolate, eo as splitTranslationRef, gs as DATAPLANE_SECRET_HEADER$1, hc as emitDownForOwnedCaps, hs as CALLER_STAMPED_CAPABILITIES$1, ii as isArrayOutputSchema, il as userError, ka as resolveMethodAuth, kn as bareAddonId, lc as createEvent$1, lo as supportedRuntimes, mc as defineRecordKinds, mi as kebabToCamel$1, o as AGENT_MDNS_TXT_KEYS, ol as withoutCallerStamp, pi as isVoidInput, pl as EventCategory$1, qc as resolveCapMount, s as ALL_CAPABILITY_DEFINITIONS, sa as procedureAuthKey, vc as expandCapMethods, vr as describeUnmet, vs as DEVICE_STATUS_METHOD, x as CATALOG_LANGS, yi as lifecycleJobSchema, yo as unmetRequirements } from "./dist-
|
|
3
|
-
import { d as JWT_SIGNING_KEY_REF, f as JwtSigningKeyUnavailableError, g as processJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, p as SYSTEM_SECRET_OWNER, s as loadDeviceCa, u as verifyDeviceSignature, v as staticJwtSigningKey } from "./device-ca-
|
|
2
|
+
import { Di as looseSchema, Dt as METHOD_ACCESS_MAP, Ei as logLevelAtMost, Et as LOG_LEVEL_RANK, Fs as ReadinessRegistry, Gc as readinessKey, Gi as objectInputDeclaresAddonId, Ha as scopesAllowDeviceCap, Hc as parseJsonObject, Is as ReadinessTimeoutError, Ki as objectInputDeclaresRequiredDeviceId, Lr as extractNestedAddonId, O as CatalogFileSchema, Ps as RUNTIME_DEFAULTS, Qs as asString$1, Rt as PackageRequiresSchema, Tc as isDebugChannelName, Uc as parseJsonUnknown, Va as scopesAllowAddon, Xc as scopeKey, Xn as compareVersions, Xs as asJsonObject$1, Zs as asNumber, _s as DEVICE_SETTINGS_CONTRIBUTION_METHODS, a as AGENT_MDNS_SERVICE_TYPE, ac as collectSecretMarkerRefs, ai as isCollectionArrayMethod, bc as getDebugInterest, bn as addonSettingsCapability, di as isObjectInput, dl as errMsg$1, ei as interpolate, eo as splitTranslationRef, gs as DATAPLANE_SECRET_HEADER$1, hc as emitDownForOwnedCaps, hs as CALLER_STAMPED_CAPABILITIES$1, ii as isArrayOutputSchema, il as userError, ka as resolveMethodAuth, kn as bareAddonId, lc as createEvent$1, lo as supportedRuntimes, mc as defineRecordKinds, mi as kebabToCamel$1, o as AGENT_MDNS_TXT_KEYS, ol as withoutCallerStamp, pi as isVoidInput, pl as EventCategory$1, qc as resolveCapMount, s as ALL_CAPABILITY_DEFINITIONS, sa as procedureAuthKey, vc as expandCapMethods, vr as describeUnmet, vs as DEVICE_STATUS_METHOD, x as CATALOG_LANGS, yi as lifecycleJobSchema, yo as unmetRequirements } from "./dist-BkjJt6LD.mjs";
|
|
3
|
+
import { d as JWT_SIGNING_KEY_REF, f as JwtSigningKeyUnavailableError, g as processJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, p as SYSTEM_SECRET_OWNER, s as loadDeviceCa, u as verifyDeviceSignature, v as staticJwtSigningKey } from "./device-ca-I_cMOy9W.mjs";
|
|
4
4
|
import { t as require_read_all_rows } from "./read-all-rows-TaPqdWNF.mjs";
|
|
5
5
|
import { a as redactLogText, i as redactLogMeta, r as redactLogEntry, t as isCredentialKeyName } from "./log-redactor-XLDrPzOi.mjs";
|
|
6
6
|
import { AlertCenterAddon, n as lastCauseAfterChunk, r as readRunnerDisplayName, t as CRASH_BREAKER_ERROR_PREFIX } from "./builtins/alerts/alerts.addon.mjs";
|
|
@@ -27,22 +27,22 @@ import { LokiDestination, LokiLoggingAddon } from "./builtins/loki-logging/index
|
|
|
27
27
|
import NativeMetricsAddon, { a as NativeMetricsProvider, i as parseProcStatusRss, n as nodeProcReader, r as parseProcStat } from "./builtins/native-metrics/native-metrics.addon.mjs";
|
|
28
28
|
import { DeviceHistoryAddon } from "./builtins/device-history/device-history.addon.mjs";
|
|
29
29
|
import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./builtins/sqlite-storage/filesystem-storage.addon.mjs";
|
|
30
|
-
import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-
|
|
31
|
-
import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door-
|
|
30
|
+
import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-7Zug5GTs.mjs";
|
|
31
|
+
import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door-tl15MjSN.mjs";
|
|
32
32
|
import { SqliteSettingsAddon } from "./builtins/sqlite-storage/sqlite-settings.addon.mjs";
|
|
33
33
|
import { ConfigStore, DeviceStore } from "./builtins/sqlite-storage/index.mjs";
|
|
34
34
|
import { StorageOrchestratorAddon, a as createHubCapForwardService, i as HUB_CAP_FWD_SERVICE, o as stripForwardedCaller, r as HUB_CAP_FWD_ACTION, s as buildStorageLocationRegistry, t as StorageOrchestratorService, u as storageOrchestratorRecordKinds } from "./builtins/storage-orchestrator/storage-orchestrator.addon.mjs";
|
|
35
35
|
import "./builtins/storage-orchestrator/index.mjs";
|
|
36
|
-
import { A as evaluateExistingCert, B as AGENT_HTTPS_NAMES_COLLECTION, C as localCaCommonName, D as LEAF_RENEWAL_WINDOW_DAYS, E as CA_VALIDITY_DAYS, F as isConstrainedCa, H as AgentHttpsNames, I as isLocalOnlyHostname, L as permitsIdentity, M as PERMITTED_DNS_SUFFIXES, N as PERMITTED_IP_RANGES, O as MAX_LEAF_VALIDITY_DAYS, P as buildNameConstraintSet, R as permitsName, T as systemHostFacts, U as getProcessAgentHttpsNames, V as AGENT_HTTPS_NAMES_COLUMNS, W as setProcessAgentHttpsNames, _ as pemDigest, a as AgentHttpsInstallError, c as certificateNames, d as describeHttpsLeaf, f as installAgentHttps, g as loadAgentHttps, h as issueAgentHttpsLeaf, i as loadOrCreateHubId, k as SERVER_AUTH_OID, l as collectAgentNames, m as isPrivateAddress, n as HUB_IDENTITY_RELATIVE, o as acceptAgentSans, p as isContainerBridgeAddress, r as isAnnouncedHubId, s as agentHttpsPaths, t as HUB_IDENTITY_FILE, u as createAgentHttpsRequest, v as pinnedHttpsCaFingerprint, w as collectCertIdentity, y as CA_COMMON_NAME, z as readNameConstraints } from "./hub-identity-
|
|
37
|
-
import { a as MESH_CA_KEY_REF, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY } from "./constants-
|
|
36
|
+
import { A as evaluateExistingCert, B as AGENT_HTTPS_NAMES_COLLECTION, C as localCaCommonName, D as LEAF_RENEWAL_WINDOW_DAYS, E as CA_VALIDITY_DAYS, F as isConstrainedCa, H as AgentHttpsNames, I as isLocalOnlyHostname, L as permitsIdentity, M as PERMITTED_DNS_SUFFIXES, N as PERMITTED_IP_RANGES, O as MAX_LEAF_VALIDITY_DAYS, P as buildNameConstraintSet, R as permitsName, T as systemHostFacts, U as getProcessAgentHttpsNames, V as AGENT_HTTPS_NAMES_COLUMNS, W as setProcessAgentHttpsNames, _ as pemDigest, a as AgentHttpsInstallError, c as certificateNames, d as describeHttpsLeaf, f as installAgentHttps, g as loadAgentHttps, h as issueAgentHttpsLeaf, i as loadOrCreateHubId, k as SERVER_AUTH_OID, l as collectAgentNames, m as isPrivateAddress, n as HUB_IDENTITY_RELATIVE, o as acceptAgentSans, p as isContainerBridgeAddress, r as isAnnouncedHubId, s as agentHttpsPaths, t as HUB_IDENTITY_FILE, u as createAgentHttpsRequest, v as pinnedHttpsCaFingerprint, w as collectCertIdentity, y as CA_COMMON_NAME, z as readNameConstraints } from "./hub-identity-DOgoRPxv.mjs";
|
|
37
|
+
import { a as MESH_CA_KEY_REF, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY } from "./constants-C0KB1WOf.mjs";
|
|
38
38
|
import { $ as caFingerprint, A as emitProcessNodeRegistered, B as setProcessMeshTlsListenerState, C as verifyMembershipAnswer, Ct as parseOriginList, D as ServiceBroker, Dt as parseCidrList, E as Errors, Et as normalizeIp, F as setProcessMeshPeerTransportLookup, G as describeMeshLeaf, H as MESH_NODE_CERTIFICATES_COLUMNS, I as renewMeshCertificate, J as MeshCrl, K as getProcessMeshCertificateRegistry, L as revokeMeshCertificate, M as getProcessPeerLeaf, N as isProcessVerifiedMeshPeer, O as setProcessMeshTlsEnabler, Ot as readCidrSetting, P as onProcessNodeRegistered, Q as requireProcessMeshCa, R as getProcessMeshTlsListenerState, S as signMembershipProof, St as normalizeOrigin, SystemConfigAddon, T as TlsTcpTransporter, Tt as createCidrMatcher, U as MeshCertificateRegistry, V as MESH_NODE_CERTIFICATES_COLLECTION, W as RENEWAL_ABANDONED, X as MeshCaKeeper, Y as processMeshCrl, Z as getProcessMeshCaState, _ as keyFingerprintShort, _t as parseAgentDashboardOrigins, a as dialableHubHost, at as isValidAgentNodeId, b as MEMBERSHIP_PATHS, bt as OPAQUE_ORIGIN, c as PAIRING_MAX_CODE_ATTEMPTS, ct as loadMeshCa, d as PAIRING_PIN_DIGITS, dt as AGENT_UI_UNLOCK_TYP, et as caFingerprintCompact, f as PAIRING_PROTOCOL, ft as AGENT_UI_UNLOCK_USE, g as describeCsr, gt as mintAgentUiUnlockTicket, h as computePairingSas, ht as isAllowedAgentDashboardReturnTo, i as AgentPairing, it as generateMeshKeyPair, j as getProcessNodeMeshTransport, k as dropProcessPeer, l as PAIRING_MAX_SESSIONS, lt as AGENT_DASHBOARD_ORIGINS_FIELD, m as computePairingCommitment, mt as UnlockTicketJtiStore, n as HubPairing, nt as exportMeshPrivateKeyPem, o as hubHostFromMeshAddress, ot as issueMeshLeafForNode, p as PAIRING_TTL_MS, pt as AGENT_UI_UNLOCK_VERSION, q as setProcessMeshCertificateRegistry, r as PairingHttpError, rt as generateMeshCa, s as PAIRING_CODE_DIGITS, st as issueMeshLeafFromCsr, tt as createMeshCsrPem, u as PAIRING_PATHS, ut as AGENT_UI_UNLOCK_TTL_MS, v as signPairingProof, vt as verifyAgentUiUnlockTicket, w as MESH_TLS_PORT_HELLO_FIELD, wt as readOriginSetting, x as MembershipResponder, xt as isInsecureOrigin, y as verifyPairingProof, yt as InvalidCorsOriginError, z as openMeshTlsWhenRevocationsLoaded } from "./builtins/system-config/system-config.addon.mjs";
|
|
39
39
|
import "./builtins/system-config/index.mjs";
|
|
40
40
|
import { WinstonDestination, WinstonLoggingAddon } from "./builtins/winston-logging/index.mjs";
|
|
41
41
|
import { C as isModelDownloaded, E as setHuggingFaceReachabilityObserver, T as revisionWeightUrl, _ as downloadFile, a as startEventLoopStallMonitor, b as fetchJson, c as createAuthenticatedFileServer, d as resolveFilePath, f as ModelDownloadService, g as deleteModelFromDisk, h as collectModelFiles, i as attributeStall, l as parseRangeHeader, m as adoptModelRevisions, n as STALL_REPORT_MS, o as createFileDataPlaneHandler, r as STALL_TICK_MS, s as contentTypeFor, t as CustomActionRegistry, u as parseTokenizedUrl, v as downloadModel, w as resolveFormatRevision, x as getModelFilePath, y as ensureModel } from "./custom-action-registry-B9zFBNVa.mjs";
|
|
42
|
-
import { A as retirePreviousLocalCa, C as checkUploadedCa, D as loadTlsCert, E as ensureTlsCert, F as closeLanHttp, I as readLanHttpState, L as registerLanHttpHandler, M as allFamiliesListenHost, N as applyLanHttp, O as reissueTlsLeaf, P as bindPendingLanHttp, S as chainsToPublicRoot, T as caReplacementMarkerFile, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, c as leafFingerprintOf, d as servedHttpsLeafFingerprint, f as prepareBootTls, g as readTlsEnabled, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, k as replaceUnconstrainedLocalCa, l as registerHttpsListener, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, p as UPLOADED_CA_FILE, r as regenerateCertificate, s as clearHttpsListener, t as createCiaoPublisher, u as reloadHttpsListener, v as splitPemCertificates, w as validateUploadedTls, x as writeTlsMode, y as writeExtraSans } from "./hub-mdns-ciao-
|
|
42
|
+
import { A as retirePreviousLocalCa, C as checkUploadedCa, D as loadTlsCert, E as ensureTlsCert, F as closeLanHttp, I as readLanHttpState, L as registerLanHttpHandler, M as allFamiliesListenHost, N as applyLanHttp, O as reissueTlsLeaf, P as bindPendingLanHttp, S as chainsToPublicRoot, T as caReplacementMarkerFile, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, c as leafFingerprintOf, d as servedHttpsLeafFingerprint, f as prepareBootTls, g as readTlsEnabled, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, k as replaceUnconstrainedLocalCa, l as registerHttpsListener, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, p as UPLOADED_CA_FILE, r as regenerateCertificate, s as clearHttpsListener, t as createCiaoPublisher, u as reloadHttpsListener, v as splitPemCertificates, w as validateUploadedTls, x as writeTlsMode, y as writeExtraSans } from "./hub-mdns-ciao-CHGaz6Vj.mjs";
|
|
43
43
|
import { n as getPlatformKeychainKey, r as setPlatformKeychainKey, t as clearPlatformKeychainKey } from "./platform-key-source-BWlq0jjn.mjs";
|
|
44
44
|
import { n as getSinglePidStats, t as getPidStats } from "./resource-monitor-Di9daRwI.mjs";
|
|
45
|
-
import { _ as backupRecordStoresOf, c as BackupDecryptError, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive-
|
|
45
|
+
import { _ as backupRecordStoresOf, c as BackupDecryptError, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive-ZLiUoIzW.mjs";
|
|
46
46
|
import { r as nodeCoralFs, t as classifyCoralAccelerator } from "./coral-accelerators-DBlgWB8k.mjs";
|
|
47
47
|
import { z } from "zod";
|
|
48
48
|
import * as crypto$1 from "node:crypto";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ac as collectSecretMarkerRefs } from "./dist-
|
|
1
|
+
import { ac as collectSecretMarkerRefs } from "./dist-BkjJt6LD.mjs";
|
|
2
2
|
//#region src/builtins/sqlite-storage/migrations/legacy-integration-rows-door.ts
|
|
3
3
|
/**
|
|
4
4
|
* Migration-only door for the leftover integration rows (planning#416).
|
package/system/dist/{rename-composition-block-C2IbabFp.mjs → rename-composition-block-DunKva8Y.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dl as errMsg, sl as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./dist-
|
|
1
|
+
import { dl as errMsg, sl as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./dist-BkjJt6LD.mjs";
|
|
2
2
|
//#region src/builtins/core-blocks/rename-composition-block.ts
|
|
3
3
|
/**
|
|
4
4
|
* An operator rename of a composed device writes the composition block's
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as DataStoreDatabaseSchema, F as DATABASE_SNAPSHOT_SUFFIX, mc as defineRecordKinds } from "./dist-
|
|
1
|
+
import { $ as DataStoreDatabaseSchema, F as DATABASE_SNAPSHOT_SUFFIX, mc as defineRecordKinds } from "./dist-BkjJt6LD.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { createCipheriv, createDecipheriv, createHash, createPrivateKey, createPublicKey, diffieHellman, generateKeyPairSync, hkdfSync, randomBytes } from "node:crypto";
|
|
4
4
|
import { Buffer as Buffer$1 } from "buffer";
|
|
Binary file
|
|
Binary file
|