@camstack/server 1.2.791 → 1.2.793
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 +12 -0
- package/dist/api/trpc/generated-cap-routers.js +0 -43
- package/package.json +12 -16
- package/system/dist/{agent-https-BmVaVskH.mjs → agent-https-LDtzwOC3.mjs} +1 -1
- package/system/dist/{agent-https-DOs15BCJ.js → agent-https-dPSUE1iZ.js} +1 -1
- 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/addon.d.ts +27 -31
- package/system/dist/builtins/camera-grid/grid-instances.d.ts +18 -0
- package/system/dist/builtins/camera-grid/grid-record-kinds.d.ts +31 -0
- package/system/dist/builtins/camera-grid/index.d.ts +2 -2
- package/system/dist/builtins/camera-grid/index.js +386 -146
- package/system/dist/builtins/camera-grid/index.mjs +382 -146
- package/system/dist/builtins/camera-grid/migrations/__fixtures__/seed.d.ts +13 -0
- package/system/dist/builtins/camera-grid/migrations/camera-grids-to-records.d.ts +26 -0
- package/system/dist/builtins/camera-grid/migrations/index.d.ts +6 -0
- package/system/dist/builtins/composer/composer.addon.js +3 -3
- package/system/dist/builtins/composer/composer.addon.mjs +3 -3
- 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 +1 -1
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- 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/address-book.d.ts +2 -0
- package/system/dist/builtins/local-network/local-network.addon.d.ts +7 -0
- package/system/dist/builtins/local-network/local-network.addon.js +27 -9
- package/system/dist/builtins/local-network/local-network.addon.mjs +27 -9
- package/system/dist/builtins/loki-logging/index.js +53 -83
- package/system/dist/builtins/loki-logging/index.mjs +53 -83
- package/system/dist/builtins/loki-logging/loki-logging.addon.d.ts +1 -4
- package/system/dist/builtins/loki-logging/migrations/index.d.ts +4 -1
- package/system/dist/builtins/loki-logging/migrations/retired-enabled-flag.d.ts +22 -0
- 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-BVpkq9Mv.js → capture-engine-B-X0ZNPG.js} +1 -1
- package/system/dist/{capture-engine-D-oUDtX5.mjs → capture-engine-ek8d0K7v.mjs} +1 -1
- package/system/dist/{composition-sources-DKCbVA67.js → composition-sources-DGKK9sGT.js} +1 -1
- package/system/dist/{composition-sources-Br7JhpbD.mjs → composition-sources-Dr69aWyC.mjs} +1 -1
- package/system/dist/{constants-Bl0Qxbek.mjs → constants-CAlOFVXO.mjs} +1 -1
- package/system/dist/{constants-CJVY-mUq.js → constants-DuVFATnX.js} +1 -1
- package/system/dist/{device-ca-i8EbKp3q.js → device-ca-CJyaKA2l.js} +1 -1
- package/system/dist/{device-ca-BeDGy8NK.mjs → device-ca-FfLv_YPi.mjs} +1 -1
- package/system/dist/{dist-Ddkk4Dqq.js → dist-CJoLQeEj.js} +1 -76
- package/system/dist/{dist-CPUbgRkb.mjs → dist-Dgkqkron.mjs} +1 -76
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-DgF4SifE.mjs → hub-mdns-ciao-Bczd9NSt.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-lHRHbXqV.js → hub-mdns-ciao-q3IAAxK6.js} +2 -2
- package/system/dist/index.js +8 -20
- package/system/dist/index.mjs +8 -20
- package/system/dist/{legacy-integration-rows-door-9JSt493H.mjs → legacy-integration-rows-door-CTCq-5la.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-n9GIUxgq.js → legacy-integration-rows-door-CfpoIqz-.js} +1 -1
- package/system/dist/{restore-archive-Dh3XnCR1.mjs → restore-archive-DR05cy7P.mjs} +1 -1
- package/system/dist/{restore-archive-BDvLSZtj.js → restore-archive-HS5O901O.js} +1 -1
- package/system/dist/{wal-maintenance-BQJAmAwS.mjs → wal-maintenance-D5xF2jrM.mjs} +0 -0
- package/system/dist/{wal-maintenance-CWlz_qRq.js → wal-maintenance-DHtTtKh4.js} +0 -0
- package/system/package.json +4 -1
- package/system/dist/builtins/camera-grid/grid-row-normalization.d.ts +0 -10
- package/system/dist/builtins/loki-logging/retire-enabled-flag.d.ts +0 -33
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AddonMigration } from "@camstack/types";
|
|
2
|
+
import { type GridMigrationPorts } from "./camera-grids-to-records.js";
|
|
3
|
+
export { gridPortsOver, LEGACY_GRIDS_KEY, type GridMigrationPorts } from "./camera-grids-to-records.js";
|
|
4
|
+
export declare const GRIDS_TO_RECORDS_ID = "camera-grid/2026-11-07-grids-to-records";
|
|
5
|
+
/** The `camera-grid` catalogue (D987): offered to the engine when the addon initialises. */
|
|
6
|
+
export declare const ADDON_MIGRATIONS: readonly AddonMigration<GridMigrationPorts>[];
|
|
@@ -3,9 +3,9 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
7
|
-
const require_composition_sources = require("../../composition-sources-
|
|
8
|
-
const require_capture_engine = require("../../capture-engine-
|
|
6
|
+
const require_dist = require("../../dist-CJoLQeEj.js");
|
|
7
|
+
const require_composition_sources = require("../../composition-sources-DGKK9sGT.js");
|
|
8
|
+
const require_capture_engine = require("../../capture-engine-B-X0ZNPG.js");
|
|
9
9
|
const require_retention = require("../../retention-BNONb5X_.js");
|
|
10
10
|
let zod = require("zod");
|
|
11
11
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Ao as isForwardInputRef, Ar as fanControlCapability, Bi as petFountainCapability, Bn as climateControlCapability, Bo as BaseAddon, Br as groupTemplate, Co as createStatefulExpressionMemory, Da as sharedColorModes, Dc as DeviceType, Dn as brightnessCapability, Ea as sharedActuatorMethods, Ei as motionCapability, Eo as evaluateStatistic, Fo as planResetTier, Gn as composerCapability, Hn as colorCapability, Io as planStatisticTier, J as DeclaredDevices, Jn as consumablesCapability, Kn as compositionFieldKey, Lo as statisticCadenceMs, Mo as nextLocalMidnight, No as openReset, Nr as featureForwards, Oc as errMsg, Oo as historyRetentionFromSettings, Or as expressionContainsBuiltinCall, Po as openStatistic, Pt as PetFountainStatusSchema, Qa as valveCapability, Ri as parseColorInput, Ro as toExpressionValue, So as compositionSourceKey, Ta as sharedActuatorFeatures, To as evaluateDerivative, Ui as planComposition, Va as switchCapability, Vi as petFountainWaterItem, Xi as processTimeZoneOr, Xs as isReadingQuantity, _a as runFanOut, _o as composedDeviceRef, at as FanDirectionSchema, bo as compositionItemFieldPath, di as lockControlCapability, do as HISTORY_SLOW_MS, er as coverCapability, fo as HOUR_MS, go as cloneStatefulExpressionMemory, h as BaseDevice, i as ACTUATOR_TEMPLATE_IDS, jo as isHistoryHelper, jr as fanOutTargets, js as createEvent, k as ConsumableItemSchema, kc as EventCategory, kn as buildCapabilityLookup, ko as integrateReading, lo as DEFAULT_HISTORY_RETENTION, lt as GroupCommandResultSchema, mo as MINUTE_MS, mt as HvacModeSchema, ni as kebabToCamel, oo as COMPOSER_ADDON_ID, pa as resolveMutate, r as ACTUATOR_METHODS, s as ALL_CAPABILITY_DEFINITIONS, sr as declaredSeriesKind, uo as HISTORY_FAST_MS, vi as mediaPlayerCapability, vo as composedDeviceStableId, wo as disarmRoseMemory, wr as evaluateCompositionField, x as COMPOSED_ITEM_FIXED_FIELDS, xi as methodRefusal, xo as compositionSliceKey, yi as mediaPlayerFeaturesOfRoles, yo as compositionFeatureEnabled, zr as groupCommandsCapability } from "../../dist-
|
|
2
|
-
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-
|
|
3
|
-
import { i as capSeriesKey } from "../../capture-engine-
|
|
1
|
+
import { Ao as isForwardInputRef, Ar as fanControlCapability, Bi as petFountainCapability, Bn as climateControlCapability, Bo as BaseAddon, Br as groupTemplate, Co as createStatefulExpressionMemory, Da as sharedColorModes, Dc as DeviceType, Dn as brightnessCapability, Ea as sharedActuatorMethods, Ei as motionCapability, Eo as evaluateStatistic, Fo as planResetTier, Gn as composerCapability, Hn as colorCapability, Io as planStatisticTier, J as DeclaredDevices, Jn as consumablesCapability, Kn as compositionFieldKey, Lo as statisticCadenceMs, Mo as nextLocalMidnight, No as openReset, Nr as featureForwards, Oc as errMsg, Oo as historyRetentionFromSettings, Or as expressionContainsBuiltinCall, Po as openStatistic, Pt as PetFountainStatusSchema, Qa as valveCapability, Ri as parseColorInput, Ro as toExpressionValue, So as compositionSourceKey, Ta as sharedActuatorFeatures, To as evaluateDerivative, Ui as planComposition, Va as switchCapability, Vi as petFountainWaterItem, Xi as processTimeZoneOr, Xs as isReadingQuantity, _a as runFanOut, _o as composedDeviceRef, at as FanDirectionSchema, bo as compositionItemFieldPath, di as lockControlCapability, do as HISTORY_SLOW_MS, er as coverCapability, fo as HOUR_MS, go as cloneStatefulExpressionMemory, h as BaseDevice, i as ACTUATOR_TEMPLATE_IDS, jo as isHistoryHelper, jr as fanOutTargets, js as createEvent, k as ConsumableItemSchema, kc as EventCategory, kn as buildCapabilityLookup, ko as integrateReading, lo as DEFAULT_HISTORY_RETENTION, lt as GroupCommandResultSchema, mo as MINUTE_MS, mt as HvacModeSchema, ni as kebabToCamel, oo as COMPOSER_ADDON_ID, pa as resolveMutate, r as ACTUATOR_METHODS, s as ALL_CAPABILITY_DEFINITIONS, sr as declaredSeriesKind, uo as HISTORY_FAST_MS, vi as mediaPlayerCapability, vo as composedDeviceStableId, wo as disarmRoseMemory, wr as evaluateCompositionField, x as COMPOSED_ITEM_FIXED_FIELDS, xi as methodRefusal, xo as compositionSliceKey, yi as mediaPlayerFeaturesOfRoles, yo as compositionFeatureEnabled, zr as groupCommandsCapability } from "../../dist-Dgkqkron.mjs";
|
|
2
|
+
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-Dr69aWyC.mjs";
|
|
3
|
+
import { i as capSeriesKey } from "../../capture-engine-ek8d0K7v.mjs";
|
|
4
4
|
import { i as DAY_MS, t as DEFAULT_RETENTION } from "../../retention-B9l9TnGE.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-CJoLQeEj.js");
|
|
7
7
|
const require_formatter = require("../../formatter-xbxeV4GD.js");
|
|
8
8
|
//#region src/builtins/console-logging/console-destination.ts
|
|
9
9
|
var LEVEL_RANK = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bo as BaseAddon, pi as logDestinationCapability } from "../../dist-
|
|
1
|
+
import { Bo as BaseAddon, pi as logDestinationCapability } from "../../dist-Dgkqkron.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-DkYZ4LXp.mjs";
|
|
3
3
|
//#region src/builtins/console-logging/console-destination.ts
|
|
4
4
|
var LEVEL_RANK = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("../../dist-
|
|
3
|
+
const require_dist = require("../../dist-CJoLQeEj.js");
|
|
4
4
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
5
|
-
const require_composition_sources = require("../../composition-sources-
|
|
6
|
-
const require_capture_engine = require("../../capture-engine-
|
|
5
|
+
const require_composition_sources = require("../../composition-sources-DGKK9sGT.js");
|
|
6
|
+
const require_capture_engine = require("../../capture-engine-B-X0ZNPG.js");
|
|
7
7
|
const require_prefix_range = require("../../prefix-range-D_KueXbQ.js");
|
|
8
8
|
const require_prefix_walk = require("../../prefix-walk-Dv6MLZlM.js");
|
|
9
9
|
let zod = require("zod");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as EMPTY_AUTOMATION_STATE, $n as coreBlocksCapability, $s as isSecretMarker, A as ControlStatusSchema, Ai as normalizeCoreBlockWrite, Bo as BaseAddon, C as CORE_BLOCKS_ADDON_ID, Dc as DeviceType$1, Di as nextOccurrence, Do as helperMembers, Et as MediaPlayerStatusSchema, Fi as occurrenceOn, Ft as PowerSourceInfoSchema, Ga as timedRunLimitOf, Gi as powerSourceCapability, Gt as RemoteConfigSchema, Hr as internalActionId, In as capUnitResolver, Is as defineRecordKinds, J as DeclaredDevices, Ji as problemsBlockSave, Ka as timedRunSeconds, Ki as powerSourceLinkOfComposition, Kt as RunningStateStatusSchema, Mr as fanPresetsCapability, Ns as defineAddonMigrations, O as ConditionMirror, Oc as errMsg$1, Oi as normalizeActionUnits, On as buildActionSteps, Oo as historyRetentionFromSettings, Qn as coreBlockSourceKind, R as DEFAULT_HOLD_OVERRIDE, S as COMPOSER_RUNNER_ID, Sc as transformSecretWrite, So as compositionSourceKey, Tr as evaluateWhenTree, Ua as templateCapability, Ui as planComposition, Vn as collectWhenMirrorSources, Vt as REMOTE_MEDIA_COMMANDS, Wa as timedRunCapability, Wn as compileScalarOverride, Ws as hydrateSchema, Wt as RemoteAssumedStateSchema, Xn as coreBlockComposition, Xt as SchedulerError, Ya as validateComposition, Yn as coreBlockAddonId, Za as validateSchedulerInput, Zi as proposeRunningThreshold, Zn as coreBlockIdFromAddonId, Zr as isInternalActionId, Zt as SchedulerSchema, _c as secretTreeFromSchema, _o as composedDeviceRef, aa as resolveActionVariables, an as SwitchStatusSchema, ao as zoneOnlySite, ba as schedulersCapability, c as ActionError, ca as resolveCoreBlockEntry, ci as localDateOf, co as DAY_MS, d as ActionVariableSchema, dn as actionSourceCapability, dr as describeComposableCaps, et as EMPTY_REMOTE_ASSUMED_STATE, fi as lockDoorLinkOfComposition, fn as actionWaitTotalMs, ga as resolveStepArgs, gt as INTERNAL_ACTION_PREFIX, ht as IDLE_ACTION_STATUS, ia as replacedFieldKeys, it as FanControlStatusSchema, j as CoreBlockSchema, ji as normalizeStepTargets, ka as siteFor, kc as EventCategory$1, ki as normalizeCapStep, kn as buildCapabilityLookup, ks as collectSecretMarkerRefs, l as ActionStepSchema, la as resolveCoreBlockFiles, m as BUILTIN_REMOTE_COMPONENTS, mc as resolveSecretMarkers, mn as addonIdOfActionId, n as ACTION_TARGET_INVALIDATION_EVENTS, na as remoteCapability, ni as kebabToCamel, no as vocabActionIdFor, nr as customKeyOfRole, nt as FAN_CAPTURE_FIELDS, on as TemplateKindSchema, ot as FanPresetSchema, p as AutomationStateDocSchema, pn as actionsCapability, po as HelperMemberSchema, qn as compositionSourceRefs, ra as remoteLayoutComponentsCapability, ro as weekdayOfLocalDate, rr as customRole, s as ALL_CAPABILITY_DEFINITIONS, so as CompositionSchema, tc as isSecretRefOwnedBy, tt as EMPTY_REMOTE_CONFIG, u as ActionTargetResolver, un as actionEffect, va as runSteps, w as CORE_BLOCK_ADDON_PREFIX, xn as appendTrace, zn as checkTemplatePayload, zt as QuantityUnitError } from "../../dist-
|
|
1
|
+
import { $ as EMPTY_AUTOMATION_STATE, $n as coreBlocksCapability, $s as isSecretMarker, A as ControlStatusSchema, Ai as normalizeCoreBlockWrite, Bo as BaseAddon, C as CORE_BLOCKS_ADDON_ID, Dc as DeviceType$1, Di as nextOccurrence, Do as helperMembers, Et as MediaPlayerStatusSchema, Fi as occurrenceOn, Ft as PowerSourceInfoSchema, Ga as timedRunLimitOf, Gi as powerSourceCapability, Gt as RemoteConfigSchema, Hr as internalActionId, In as capUnitResolver, Is as defineRecordKinds, J as DeclaredDevices, Ji as problemsBlockSave, Ka as timedRunSeconds, Ki as powerSourceLinkOfComposition, Kt as RunningStateStatusSchema, Mr as fanPresetsCapability, Ns as defineAddonMigrations, O as ConditionMirror, Oc as errMsg$1, Oi as normalizeActionUnits, On as buildActionSteps, Oo as historyRetentionFromSettings, Qn as coreBlockSourceKind, R as DEFAULT_HOLD_OVERRIDE, S as COMPOSER_RUNNER_ID, Sc as transformSecretWrite, So as compositionSourceKey, Tr as evaluateWhenTree, Ua as templateCapability, Ui as planComposition, Vn as collectWhenMirrorSources, Vt as REMOTE_MEDIA_COMMANDS, Wa as timedRunCapability, Wn as compileScalarOverride, Ws as hydrateSchema, Wt as RemoteAssumedStateSchema, Xn as coreBlockComposition, Xt as SchedulerError, Ya as validateComposition, Yn as coreBlockAddonId, Za as validateSchedulerInput, Zi as proposeRunningThreshold, Zn as coreBlockIdFromAddonId, Zr as isInternalActionId, Zt as SchedulerSchema, _c as secretTreeFromSchema, _o as composedDeviceRef, aa as resolveActionVariables, an as SwitchStatusSchema, ao as zoneOnlySite, ba as schedulersCapability, c as ActionError, ca as resolveCoreBlockEntry, ci as localDateOf, co as DAY_MS, d as ActionVariableSchema, dn as actionSourceCapability, dr as describeComposableCaps, et as EMPTY_REMOTE_ASSUMED_STATE, fi as lockDoorLinkOfComposition, fn as actionWaitTotalMs, ga as resolveStepArgs, gt as INTERNAL_ACTION_PREFIX, ht as IDLE_ACTION_STATUS, ia as replacedFieldKeys, it as FanControlStatusSchema, j as CoreBlockSchema, ji as normalizeStepTargets, ka as siteFor, kc as EventCategory$1, ki as normalizeCapStep, kn as buildCapabilityLookup, ks as collectSecretMarkerRefs, l as ActionStepSchema, la as resolveCoreBlockFiles, m as BUILTIN_REMOTE_COMPONENTS, mc as resolveSecretMarkers, mn as addonIdOfActionId, n as ACTION_TARGET_INVALIDATION_EVENTS, na as remoteCapability, ni as kebabToCamel, no as vocabActionIdFor, nr as customKeyOfRole, nt as FAN_CAPTURE_FIELDS, on as TemplateKindSchema, ot as FanPresetSchema, p as AutomationStateDocSchema, pn as actionsCapability, po as HelperMemberSchema, qn as compositionSourceRefs, ra as remoteLayoutComponentsCapability, ro as weekdayOfLocalDate, rr as customRole, s as ALL_CAPABILITY_DEFINITIONS, so as CompositionSchema, tc as isSecretRefOwnedBy, tt as EMPTY_REMOTE_CONFIG, u as ActionTargetResolver, un as actionEffect, va as runSteps, w as CORE_BLOCK_ADDON_PREFIX, xn as appendTrace, zn as checkTemplatePayload, zt as QuantityUnitError } from "../../dist-Dgkqkron.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
|
-
import { i as parseDeviceStateChanged, t as describeCompositionSources } from "../../composition-sources-
|
|
4
|
-
import { i as capSeriesKey } from "../../capture-engine-
|
|
3
|
+
import { i as parseDeviceStateChanged, t as describeCompositionSources } from "../../composition-sources-Dr69aWyC.mjs";
|
|
4
|
+
import { i as capSeriesKey } from "../../capture-engine-ek8d0K7v.mjs";
|
|
5
5
|
import { t as prefixRange } from "../../prefix-range-Dl0znowN.mjs";
|
|
6
6
|
import { n as unwrapStoredValue, t as loadPrefixed } from "../../prefix-walk-DAOBSyH1.mjs";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
@@ -3,8 +3,8 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
7
|
-
const require_capture_engine = require("../../capture-engine-
|
|
6
|
+
const require_dist = require("../../dist-CJoLQeEj.js");
|
|
7
|
+
const require_capture_engine = require("../../capture-engine-B-X0ZNPG.js");
|
|
8
8
|
const require_retention = require("../../retention-BNONb5X_.js");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
10
10
|
//#region src/builtins/device-history/capture/point-writer.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bo as BaseAddon, Dc as DeviceType, Is as defineRecordKinds, Rs as emitReadiness, Sn as armRemovalReconcile, Us as historyUnitFor, V as DEVICE_HISTORY_ENERGY_KEY, Xs as isReadingQuantity, Y as DeviceRunSchema, _r as deviceRemovalHookCapability, dt as HISTORY_ITEM_CATALOG, hr as deviceHistoryCapability, kc as EventCategory, ut as HISTORY_CATALOG, vr as deviceRunsCapability, zo as wattMillisecondsToKwh } from "../../dist-
|
|
2
|
-
import { a as catalogMetrics, c as DeviceDirectory, d as identityOf, f as subjectIdOf, i as capSeriesKey, l as isRealDeviceType, n as CaptureEngine, o as readPath, r as capItemSeriesKey, s as readUnit, t as CAP_KEY_PREFIX, u as SeriesRegistry } from "../../capture-engine-
|
|
1
|
+
import { Bo as BaseAddon, Dc as DeviceType, Is as defineRecordKinds, Rs as emitReadiness, Sn as armRemovalReconcile, Us as historyUnitFor, V as DEVICE_HISTORY_ENERGY_KEY, Xs as isReadingQuantity, Y as DeviceRunSchema, _r as deviceRemovalHookCapability, dt as HISTORY_ITEM_CATALOG, hr as deviceHistoryCapability, kc as EventCategory, ut as HISTORY_CATALOG, vr as deviceRunsCapability, zo as wattMillisecondsToKwh } from "../../dist-Dgkqkron.mjs";
|
|
2
|
+
import { a as catalogMetrics, c as DeviceDirectory, d as identityOf, f as subjectIdOf, i as capSeriesKey, l as isRealDeviceType, n as CaptureEngine, o as readPath, r as capItemSeriesKey, s as readUnit, t as CAP_KEY_PREFIX, u as SeriesRegistry } from "../../capture-engine-ek8d0K7v.mjs";
|
|
3
3
|
import { a as FIVE_MINUTES_MS, c as bucketEndOf, i as DAY_MS, l as bucketStartOf, n as RetentionJob, o as HOUR_MS, r as DepartureTracker, s as ROLLUP_GRACE_MS, t as DEFAULT_RETENTION, u as floorTo } from "../../retention-B9l9TnGE.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
//#region src/builtins/device-history/capture/point-writer.ts
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-CJoLQeEj.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
const require_prefix_range = require("../../prefix-range-D_KueXbQ.js");
|
|
9
9
|
const require_prefix_walk = require("../../prefix-walk-Dv6MLZlM.js");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $s as isSecretMarker, Aa as siteZoneKey, As as collectZodSecretPaths, Bo as BaseAddon, Cc as userError, Cr as enumerateSchemaFields, Dc as DeviceType, Dr as expandContainer, Ec as DeviceRole, Fn as canonicalIconKey, Is as defineRecordKinds, Ks as isDeviceConfigCap, L as DAY_NAMES, Lr as formatMinutes, Mi as normalizeUnit, Mn as buildStreamParamsConfigSchema, Oc as errMsg, Q as DiscoveryProposalBodySchema, Sc as transformSecretWrite, Sr as enumerateItemArrayFields, Tc as DeviceFeature, X as DeviceStatusSchema, Ys as isKeychainStoredField, Yt as STREAM_PROFILE_META, Z as DeviceTombstoneSchema, Zs as isSecretClear, _ as CAMERA_SWITCH_ORDER, ai as legacyAutoLinkIds, br as deviceStatusCapability, bs as WELL_KNOWN_TAB_MAP, ct as FieldClaimSchema, ec as isSecretMarkerLike, gc as secretTreeFromPaths, gr as deviceManagerCapability, hs as SECRET_CLEAR, kc as EventCategory, lr as defineExtensionSlotProvider, mc as resolveSecretMarkers, mr as deviceExtensionCapability, s as ALL_CAPABILITY_DEFINITIONS, st as FieldClaimModeSchema, tr as createDeviceExtensionProvider, ui as locationIconKey, wt as MINUTES_PER_DAY, xc as toSecretFieldView, y as CAP_NAMES_WITH_STATUS, ya as runtimeStatePolicyFor, yc as sleep$1, yr as deviceStateCapability, zi as parseStreamParamsFormPatch } from "../../dist-
|
|
1
|
+
import { $s as isSecretMarker, Aa as siteZoneKey, As as collectZodSecretPaths, Bo as BaseAddon, Cc as userError, Cr as enumerateSchemaFields, Dc as DeviceType, Dr as expandContainer, Ec as DeviceRole, Fn as canonicalIconKey, Is as defineRecordKinds, Ks as isDeviceConfigCap, L as DAY_NAMES, Lr as formatMinutes, Mi as normalizeUnit, Mn as buildStreamParamsConfigSchema, Oc as errMsg, Q as DiscoveryProposalBodySchema, Sc as transformSecretWrite, Sr as enumerateItemArrayFields, Tc as DeviceFeature, X as DeviceStatusSchema, Ys as isKeychainStoredField, Yt as STREAM_PROFILE_META, Z as DeviceTombstoneSchema, Zs as isSecretClear, _ as CAMERA_SWITCH_ORDER, ai as legacyAutoLinkIds, br as deviceStatusCapability, bs as WELL_KNOWN_TAB_MAP, ct as FieldClaimSchema, ec as isSecretMarkerLike, gc as secretTreeFromPaths, gr as deviceManagerCapability, hs as SECRET_CLEAR, kc as EventCategory, lr as defineExtensionSlotProvider, mc as resolveSecretMarkers, mr as deviceExtensionCapability, s as ALL_CAPABILITY_DEFINITIONS, st as FieldClaimModeSchema, tr as createDeviceExtensionProvider, ui as locationIconKey, wt as MINUTES_PER_DAY, xc as toSecretFieldView, y as CAP_NAMES_WITH_STATUS, ya as runtimeStatePolicyFor, yc as sleep$1, yr as deviceStateCapability, zi as parseStreamParamsFormPatch } from "../../dist-Dgkqkron.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
3
|
import { t as prefixRange } from "../../prefix-range-Dl0znowN.mjs";
|
|
4
4
|
import { t as loadPrefixed } from "../../prefix-walk-DAOBSyH1.mjs";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-CJoLQeEj.js");
|
|
7
7
|
const require_formatter = require("../../formatter-xbxeV4GD.js");
|
|
8
8
|
//#region src/builtins/hub-forwarder/hub-forwarder-destination.ts
|
|
9
9
|
var DEFAULT_OUTBOUND_BUFFER_SIZE = 500;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bo as BaseAddon, pi as logDestinationCapability } from "../../dist-
|
|
1
|
+
import { Bo as BaseAddon, pi as logDestinationCapability } from "../../dist-Dgkqkron.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-DkYZ4LXp.mjs";
|
|
3
3
|
//#region src/builtins/hub-forwarder/hub-forwarder-destination.ts
|
|
4
4
|
var DEFAULT_OUTBOUND_BUFFER_SIZE = 500;
|
|
@@ -3,11 +3,11 @@ 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-
|
|
7
|
-
const require_device_ca = require("../../device-ca-
|
|
6
|
+
const require_dist = require("../../dist-CJoLQeEj.js");
|
|
7
|
+
const require_device_ca = require("../../device-ca-CJyaKA2l.js");
|
|
8
8
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
9
|
-
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-
|
|
10
|
-
const require_constants = require("../../constants-
|
|
9
|
+
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-CfpoIqz-.js");
|
|
10
|
+
const require_constants = require("../../constants-DuVFATnX.js");
|
|
11
11
|
const require_platform_key_source = require("../../platform-key-source-Di7HrlGR.js");
|
|
12
12
|
let node_crypto = require("node:crypto");
|
|
13
13
|
let _camstack_types_node = require("@camstack/types/node");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Bo as BaseAddon, Bs as formatSecretScope, Is as defineRecordKinds, _t as KEYCHAIN_RESET_TRIGGER_ACTOR, ii as keychainCapability, kc as EventCategory, ri as keychainAdminCapability, sc as normalizeSecretOwner, uc as parseSecretRef, vt as KeychainAuditEntrySchema, yt as KeychainResetRecordSchema } from "../../dist-
|
|
2
|
-
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-
|
|
1
|
+
import { Bo as BaseAddon, Bs as formatSecretScope, Is as defineRecordKinds, _t as KEYCHAIN_RESET_TRIGGER_ACTOR, ii as keychainCapability, kc as EventCategory, ri as keychainAdminCapability, sc as normalizeSecretOwner, uc as parseSecretRef, vt as KeychainAuditEntrySchema, yt as KeychainResetRecordSchema } from "../../dist-Dgkqkron.mjs";
|
|
2
|
+
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-FfLv_YPi.mjs";
|
|
3
3
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
4
|
-
import { t as LEGACY_INTEGRATION_ROWS_TABLE } from "../../legacy-integration-rows-door-
|
|
5
|
-
import { a as MESH_CA_KEY_REF } from "../../constants-
|
|
4
|
+
import { t as LEGACY_INTEGRATION_ROWS_TABLE } from "../../legacy-integration-rows-door-CTCq-5la.mjs";
|
|
5
|
+
import { a as MESH_CA_KEY_REF } from "../../constants-CAlOFVXO.mjs";
|
|
6
6
|
import { n as getPlatformKeychainKey } from "../../platform-key-source-BWlq0jjn.mjs";
|
|
7
7
|
import { createCipheriv, createDecipheriv, createHmac, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
|
8
8
|
import { restrictDirToOwnerSync, restrictFileToOwnerSync, writeOwnerOnlyFileSync } from "@camstack/types/node";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("../../dist-
|
|
3
|
+
const require_dist = require("../../dist-CJoLQeEj.js");
|
|
4
4
|
let node_fs = require("node:fs");
|
|
5
5
|
let node_path = require("node:path");
|
|
6
6
|
node_path = require_chunk.__toESM(node_path);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bo as BaseAddon, Bt as RECORDING_SOURCE_CAMSTACK_ADDON, Oc as errMsg, Ut as RecordingStatusSchema, _i as mayWriteToLocation, js as createEvent, kc as EventCategory } from "../../dist-
|
|
1
|
+
import { Bo as BaseAddon, Bt as RECORDING_SOURCE_CAMSTACK_ADDON, Oc as errMsg, Ut as RecordingStatusSchema, _i as mayWriteToLocation, js as createEvent, kc as EventCategory } from "../../dist-Dgkqkron.mjs";
|
|
2
2
|
import { constants } from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import * as fsp from "node:fs/promises";
|
|
@@ -3,10 +3,10 @@ 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-CJoLQeEj.js");
|
|
7
7
|
const require_safe_buffer$1 = require("../../safe-buffer-D3aoa-7X.js");
|
|
8
8
|
const require_ms$1 = require("../../ms-LB3giGoU.js");
|
|
9
|
-
const require_device_ca = require("../../device-ca-
|
|
9
|
+
const require_device_ca = require("../../device-ca-CJyaKA2l.js");
|
|
10
10
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
11
11
|
let zod = require("zod");
|
|
12
12
|
let node_crypto = require("node:crypto");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as __require, o as __toESM, t as __commonJSMin } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { $s as isSecretMarker, An as buildDeviceEnrollmentLink, B as DEVICE_ENROLLMENT_TTL_MS, Bo as BaseAddon, Cc as userError, Cn as authProviderCapability, Ir as formatDeviceRevoker, Is as defineRecordKinds, It as PreferenceDeviceIdSchema, Ja as userManagementCapability, Lt as PreferenceNamespaceSchema, M as CredentialTokenClaimsSchema, Qt as ScopedTokenSchema, Rt as PreferenceValueSchema, T as CREDENTIAL_TOKEN_AUDIENCE, U as DEVICE_NONCE_TTL_MS, Yr as isCredentialTokenPayload, en as SsoBridgeClaimsSchema, jn as buildDeviceSignatureMessage, jt as PREFERENCES_MAX_VALUE_BYTES, ln as UserRecordSchema, nc as makeSecretMarker, pr as deviceCredentialsCapability, sn as TokenScopeSchema } from "../../dist-
|
|
2
|
+
import { $s as isSecretMarker, An as buildDeviceEnrollmentLink, B as DEVICE_ENROLLMENT_TTL_MS, Bo as BaseAddon, Cc as userError, Cn as authProviderCapability, Ir as formatDeviceRevoker, Is as defineRecordKinds, It as PreferenceDeviceIdSchema, Ja as userManagementCapability, Lt as PreferenceNamespaceSchema, M as CredentialTokenClaimsSchema, Qt as ScopedTokenSchema, Rt as PreferenceValueSchema, T as CREDENTIAL_TOKEN_AUDIENCE, U as DEVICE_NONCE_TTL_MS, Yr as isCredentialTokenPayload, en as SsoBridgeClaimsSchema, jn as buildDeviceSignatureMessage, jt as PREFERENCES_MAX_VALUE_BYTES, ln as UserRecordSchema, nc as makeSecretMarker, pr as deviceCredentialsCapability, sn as TokenScopeSchema } from "../../dist-Dgkqkron.mjs";
|
|
3
3
|
import { t as require_safe_buffer } from "../../safe-buffer-B1OjL1I9.mjs";
|
|
4
4
|
import { t as require_ms } from "../../ms-CgH2OFlD.mjs";
|
|
5
|
-
import { _ as setProcessJwtSigningKey, a as importDevicePublicKey, c as rebuildDeviceCaCertificate, d as JWT_SIGNING_KEY_REF, g as processJwtSigningKey, h as loadJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, r as DEVICE_CA_SETTINGS_SECTION, s as loadDeviceCa, t as DEVICE_CA_FIELD, u as verifyDeviceSignature } from "../../device-ca-
|
|
5
|
+
import { _ as setProcessJwtSigningKey, a as importDevicePublicKey, c as rebuildDeviceCaCertificate, d as JWT_SIGNING_KEY_REF, g as processJwtSigningKey, h as loadJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, r as DEVICE_CA_SETTINGS_SECTION, s as loadDeviceCa, t as DEVICE_CA_FIELD, u as verifyDeviceSignature } from "../../device-ca-FfLv_YPi.mjs";
|
|
6
6
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import * as crypto$1 from "node:crypto";
|
|
@@ -24,10 +24,12 @@
|
|
|
24
24
|
* the result — so the address shows as a custom row instead of vanishing.
|
|
25
25
|
*/
|
|
26
26
|
import { type ConnectionEndpoint, type HubAddressBook, type HubAddressFlags, type HubAddressRole } from "@camstack/types";
|
|
27
|
+
import { z } from "zod";
|
|
27
28
|
export interface CustomAddress {
|
|
28
29
|
readonly baseUrl: string;
|
|
29
30
|
readonly label: string;
|
|
30
31
|
}
|
|
32
|
+
export declare const CustomAddressListSchema: z.ZodType<readonly CustomAddress[]>;
|
|
31
33
|
/** The address-book keys of the addon's stored settings. */
|
|
32
34
|
export interface StoredAddressSettings {
|
|
33
35
|
readonly customAddresses: unknown;
|
|
@@ -114,6 +114,13 @@ export declare class LocalNetworkAddon extends BaseAddon<LocalNetworkConfig> {
|
|
|
114
114
|
/** `getAddresses`: the Addresses table and every role's answer. */
|
|
115
115
|
private addressBook;
|
|
116
116
|
/**
|
|
117
|
+
* Persist the keys this addon keeps for itself (the allowlist, the first-boot flag, the saved
|
|
118
|
+
* subnets, the address book): bare keys of the addon store, none of them a declared setting, so
|
|
119
|
+
* each goes through its own durable handle. The config is read again so the next read sees it,
|
|
120
|
+
* and the mDNS advert is re-synced.
|
|
121
|
+
*/
|
|
122
|
+
private saveStored;
|
|
123
|
+
/**
|
|
117
124
|
* Apply one change to the address book and persist it, normalised (a flag
|
|
118
125
|
* naming an address in no row becomes a custom address in the same write).
|
|
119
126
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("../../dist-
|
|
3
|
+
const require_dist = require("../../dist-CJoLQeEj.js");
|
|
4
4
|
const require_dns_wire = require("../../dns-wire-B1BvF9Ao.js");
|
|
5
|
-
const require_hub_mdns_ciao = require("../../hub-mdns-ciao-
|
|
5
|
+
const require_hub_mdns_ciao = require("../../hub-mdns-ciao-q3IAAxK6.js");
|
|
6
6
|
let zod = require("zod");
|
|
7
7
|
let node_net = require("node:net");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
@@ -1619,6 +1619,7 @@ var nodeScanIo = {
|
|
|
1619
1619
|
* via `NetworkTunnelStarted/Stopped` events on the bus, so the cap
|
|
1620
1620
|
* stays free of cross-addon dependencies.
|
|
1621
1621
|
*/
|
|
1622
|
+
var StringListSchema = zod.z.array(zod.z.string());
|
|
1622
1623
|
/**
|
|
1623
1624
|
* Forked `mesh-network` provider addon ids `local-network` pull-reconciles
|
|
1624
1625
|
* against. `mesh-network` is a COLLECTION cap, so a hub builtin's local
|
|
@@ -1713,6 +1714,24 @@ var LocalNetworkAddon = class extends require_dist.BaseAddon {
|
|
|
1713
1714
|
});
|
|
1714
1715
|
}
|
|
1715
1716
|
/**
|
|
1717
|
+
* Persist the keys this addon keeps for itself (the allowlist, the first-boot flag, the saved
|
|
1718
|
+
* subnets, the address book): bare keys of the addon store, none of them a declared setting, so
|
|
1719
|
+
* each goes through its own durable handle. The config is read again so the next read sees it,
|
|
1720
|
+
* and the mDNS advert is re-synced.
|
|
1721
|
+
*/
|
|
1722
|
+
async saveStored(patch) {
|
|
1723
|
+
if (patch.allowedAddresses !== void 0) await this.state("allowedAddresses", StringListSchema, []).set([...patch.allowedAddresses]);
|
|
1724
|
+
if (patch.bootSeeded !== void 0) await this.state("bootSeeded", zod.z.boolean(), false).set(patch.bootSeeded);
|
|
1725
|
+
if (patch.scanSubnets !== void 0) await this.state("scanSubnets", StringListSchema, []).set([...patch.scanSubnets]);
|
|
1726
|
+
if (patch.customAddresses !== void 0) await this.state("customAddresses", CustomAddressListSchema, []).set([...patch.customAddresses]);
|
|
1727
|
+
if (patch.appConnectionUrls !== void 0) await this.state("appConnectionUrls", StringListSchema, []).set([...patch.appConnectionUrls]);
|
|
1728
|
+
if (patch.notificationTapUrl !== void 0) await this.state("notificationTapUrl", zod.z.string(), "").set(patch.notificationTapUrl);
|
|
1729
|
+
if (patch.publicEndpointUrl !== void 0) await this.state("publicEndpointUrl", zod.z.string(), "").set(patch.publicEndpointUrl);
|
|
1730
|
+
if (patch.internalUrl !== void 0) await this.state("internalUrl", zod.z.string(), "").set(patch.internalUrl);
|
|
1731
|
+
await this.resolveConfig();
|
|
1732
|
+
await this.mdns?.sync();
|
|
1733
|
+
}
|
|
1734
|
+
/**
|
|
1716
1735
|
* Apply one change to the address book and persist it, normalised (a flag
|
|
1717
1736
|
* naming an address in no row becomes a custom address in the same write).
|
|
1718
1737
|
*/
|
|
@@ -1728,8 +1747,7 @@ var LocalNetworkAddon = class extends require_dist.BaseAddon {
|
|
|
1728
1747
|
...addressBookPatch(changed),
|
|
1729
1748
|
customAddresses: changed.custom
|
|
1730
1749
|
}, detectedUrls);
|
|
1731
|
-
await this.
|
|
1732
|
-
await this.mdns?.sync();
|
|
1750
|
+
await this.saveStored(addressBookPatch(after));
|
|
1733
1751
|
}
|
|
1734
1752
|
/** The deprecated `getHubAddresses` shape, from the role resolvers. */
|
|
1735
1753
|
async snapshotHubAddresses() {
|
|
@@ -1839,7 +1857,7 @@ var LocalNetworkAddon = class extends require_dist.BaseAddon {
|
|
|
1839
1857
|
await this.migrateNodeFields();
|
|
1840
1858
|
if (!this.config.bootSeeded) {
|
|
1841
1859
|
const seed = autoSeedAllowlist(this.enumerate());
|
|
1842
|
-
await this.
|
|
1860
|
+
await this.saveStored({
|
|
1843
1861
|
allowedAddresses: seed,
|
|
1844
1862
|
bootSeeded: true
|
|
1845
1863
|
});
|
|
@@ -1916,7 +1934,7 @@ var LocalNetworkAddon = class extends require_dist.BaseAddon {
|
|
|
1916
1934
|
getAllowedAddresses: async () => ({ addresses: this.config.allowedAddresses }),
|
|
1917
1935
|
resetAllowlistToBestMatch: async () => {
|
|
1918
1936
|
const seed = autoSeedAllowlist(this.enumerate());
|
|
1919
|
-
await this.
|
|
1937
|
+
await this.saveStored({
|
|
1920
1938
|
allowedAddresses: seed,
|
|
1921
1939
|
bootSeeded: true
|
|
1922
1940
|
});
|
|
@@ -1926,7 +1944,7 @@ var LocalNetworkAddon = class extends require_dist.BaseAddon {
|
|
|
1926
1944
|
setAllowedAddresses: async ({ addresses }) => {
|
|
1927
1945
|
const known = new Set(this.enumerate().map((i) => i.address));
|
|
1928
1946
|
const cleaned = [...new Set(addresses)].filter((a) => known.has(a));
|
|
1929
|
-
await this.
|
|
1947
|
+
await this.saveStored({ allowedAddresses: cleaned });
|
|
1930
1948
|
this.ctx.logger.info("local-network: allowlist updated", { meta: {
|
|
1931
1949
|
count: cleaned.length,
|
|
1932
1950
|
dropped: addresses.length - cleaned.length
|
|
@@ -1942,7 +1960,7 @@ var LocalNetworkAddon = class extends require_dist.BaseAddon {
|
|
|
1942
1960
|
getScanSubnets: async () => ({ subnets: [...this.config.scanSubnets] }),
|
|
1943
1961
|
setScanSubnets: async ({ subnets }) => {
|
|
1944
1962
|
const cleaned = [...validateSavedSubnets(subnets)];
|
|
1945
|
-
await this.
|
|
1963
|
+
await this.saveStored({ scanSubnets: cleaned });
|
|
1946
1964
|
this.ctx.logger.info("local-network: scan subnets updated", { meta: {
|
|
1947
1965
|
count: cleaned.length,
|
|
1948
1966
|
subnets: cleaned
|
|
@@ -2371,7 +2389,7 @@ var LocalNetworkAddon = class extends require_dist.BaseAddon {
|
|
|
2371
2389
|
try {
|
|
2372
2390
|
const next = reconcileAllowlist(this.config.allowedAddresses, interfaces);
|
|
2373
2391
|
if (sameAddressSet(this.config.allowedAddresses, next)) return;
|
|
2374
|
-
await this.
|
|
2392
|
+
await this.saveStored({
|
|
2375
2393
|
allowedAddresses: next,
|
|
2376
2394
|
bootSeeded: true
|
|
2377
2395
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Bo as BaseAddon, Hi as pickAppLinkHub, Kr as isAppLinkBase, Ns as defineAddonMigrations, Oa as shortHostname, Oc as errMsg, Rn as checkRoleAddress, Xa as validateCustomAddress, Xr as isDefaultAppConnectionEndpoint, ft as HUB_MDNS_SERVICE_TYPE, kc as EventCategory, kt as NetworkTunnelStartedDataSchema, li as localNetworkCapability, ma as resolveNotificationTapAddress, oa as resolveAppConnections, pt as HUB_MDNS_TXT_KEYS, qi as preconditionOf, ua as resolveHubAddressRoles, v as CAMSTACK_APP_LINK_ORIGIN } from "../../dist-
|
|
1
|
+
import { Bo as BaseAddon, Hi as pickAppLinkHub, Kr as isAppLinkBase, Ns as defineAddonMigrations, Oa as shortHostname, Oc as errMsg, Rn as checkRoleAddress, Xa as validateCustomAddress, Xr as isDefaultAppConnectionEndpoint, ft as HUB_MDNS_SERVICE_TYPE, kc as EventCategory, kt as NetworkTunnelStartedDataSchema, li as localNetworkCapability, ma as resolveNotificationTapAddress, oa as resolveAppConnections, pt as HUB_MDNS_TXT_KEYS, qi as preconditionOf, ua as resolveHubAddressRoles, v as CAMSTACK_APP_LINK_ORIGIN } from "../../dist-Dgkqkron.mjs";
|
|
2
2
|
import { a as emptyMdnsRecords, c as parseMdnsMessage, i as buildRecordQuery, l as parseMdnsRecords, n as MDNS_PORT, o as mergeMdnsRecords, r as buildPtrQuery, s as normalizeServiceType, t as MDNS_GROUP } from "../../dns-wire-Dm3H_7ST.mjs";
|
|
3
|
-
import { E as ensureTlsCert, I as readLanHttpState, N as applyLanHttp, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, d as servedHttpsLeafFingerprint, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, r as regenerateCertificate, t as createCiaoPublisher, y as writeExtraSans } from "../../hub-mdns-ciao-
|
|
3
|
+
import { E as ensureTlsCert, I as readLanHttpState, N as applyLanHttp, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, d as servedHttpsLeafFingerprint, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, r as regenerateCertificate, t as createCiaoPublisher, y as writeExtraSans } from "../../hub-mdns-ciao-Bczd9NSt.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { isIP } from "node:net";
|
|
6
6
|
import { readFileSync } from "node:fs";
|
|
@@ -1614,6 +1614,7 @@ var nodeScanIo = {
|
|
|
1614
1614
|
* via `NetworkTunnelStarted/Stopped` events on the bus, so the cap
|
|
1615
1615
|
* stays free of cross-addon dependencies.
|
|
1616
1616
|
*/
|
|
1617
|
+
var StringListSchema = z.array(z.string());
|
|
1617
1618
|
/**
|
|
1618
1619
|
* Forked `mesh-network` provider addon ids `local-network` pull-reconciles
|
|
1619
1620
|
* against. `mesh-network` is a COLLECTION cap, so a hub builtin's local
|
|
@@ -1708,6 +1709,24 @@ var LocalNetworkAddon = class extends BaseAddon {
|
|
|
1708
1709
|
});
|
|
1709
1710
|
}
|
|
1710
1711
|
/**
|
|
1712
|
+
* Persist the keys this addon keeps for itself (the allowlist, the first-boot flag, the saved
|
|
1713
|
+
* subnets, the address book): bare keys of the addon store, none of them a declared setting, so
|
|
1714
|
+
* each goes through its own durable handle. The config is read again so the next read sees it,
|
|
1715
|
+
* and the mDNS advert is re-synced.
|
|
1716
|
+
*/
|
|
1717
|
+
async saveStored(patch) {
|
|
1718
|
+
if (patch.allowedAddresses !== void 0) await this.state("allowedAddresses", StringListSchema, []).set([...patch.allowedAddresses]);
|
|
1719
|
+
if (patch.bootSeeded !== void 0) await this.state("bootSeeded", z.boolean(), false).set(patch.bootSeeded);
|
|
1720
|
+
if (patch.scanSubnets !== void 0) await this.state("scanSubnets", StringListSchema, []).set([...patch.scanSubnets]);
|
|
1721
|
+
if (patch.customAddresses !== void 0) await this.state("customAddresses", CustomAddressListSchema, []).set([...patch.customAddresses]);
|
|
1722
|
+
if (patch.appConnectionUrls !== void 0) await this.state("appConnectionUrls", StringListSchema, []).set([...patch.appConnectionUrls]);
|
|
1723
|
+
if (patch.notificationTapUrl !== void 0) await this.state("notificationTapUrl", z.string(), "").set(patch.notificationTapUrl);
|
|
1724
|
+
if (patch.publicEndpointUrl !== void 0) await this.state("publicEndpointUrl", z.string(), "").set(patch.publicEndpointUrl);
|
|
1725
|
+
if (patch.internalUrl !== void 0) await this.state("internalUrl", z.string(), "").set(patch.internalUrl);
|
|
1726
|
+
await this.resolveConfig();
|
|
1727
|
+
await this.mdns?.sync();
|
|
1728
|
+
}
|
|
1729
|
+
/**
|
|
1711
1730
|
* Apply one change to the address book and persist it, normalised (a flag
|
|
1712
1731
|
* naming an address in no row becomes a custom address in the same write).
|
|
1713
1732
|
*/
|
|
@@ -1723,8 +1742,7 @@ var LocalNetworkAddon = class extends BaseAddon {
|
|
|
1723
1742
|
...addressBookPatch(changed),
|
|
1724
1743
|
customAddresses: changed.custom
|
|
1725
1744
|
}, detectedUrls);
|
|
1726
|
-
await this.
|
|
1727
|
-
await this.mdns?.sync();
|
|
1745
|
+
await this.saveStored(addressBookPatch(after));
|
|
1728
1746
|
}
|
|
1729
1747
|
/** The deprecated `getHubAddresses` shape, from the role resolvers. */
|
|
1730
1748
|
async snapshotHubAddresses() {
|
|
@@ -1834,7 +1852,7 @@ var LocalNetworkAddon = class extends BaseAddon {
|
|
|
1834
1852
|
await this.migrateNodeFields();
|
|
1835
1853
|
if (!this.config.bootSeeded) {
|
|
1836
1854
|
const seed = autoSeedAllowlist(this.enumerate());
|
|
1837
|
-
await this.
|
|
1855
|
+
await this.saveStored({
|
|
1838
1856
|
allowedAddresses: seed,
|
|
1839
1857
|
bootSeeded: true
|
|
1840
1858
|
});
|
|
@@ -1911,7 +1929,7 @@ var LocalNetworkAddon = class extends BaseAddon {
|
|
|
1911
1929
|
getAllowedAddresses: async () => ({ addresses: this.config.allowedAddresses }),
|
|
1912
1930
|
resetAllowlistToBestMatch: async () => {
|
|
1913
1931
|
const seed = autoSeedAllowlist(this.enumerate());
|
|
1914
|
-
await this.
|
|
1932
|
+
await this.saveStored({
|
|
1915
1933
|
allowedAddresses: seed,
|
|
1916
1934
|
bootSeeded: true
|
|
1917
1935
|
});
|
|
@@ -1921,7 +1939,7 @@ var LocalNetworkAddon = class extends BaseAddon {
|
|
|
1921
1939
|
setAllowedAddresses: async ({ addresses }) => {
|
|
1922
1940
|
const known = new Set(this.enumerate().map((i) => i.address));
|
|
1923
1941
|
const cleaned = [...new Set(addresses)].filter((a) => known.has(a));
|
|
1924
|
-
await this.
|
|
1942
|
+
await this.saveStored({ allowedAddresses: cleaned });
|
|
1925
1943
|
this.ctx.logger.info("local-network: allowlist updated", { meta: {
|
|
1926
1944
|
count: cleaned.length,
|
|
1927
1945
|
dropped: addresses.length - cleaned.length
|
|
@@ -1937,7 +1955,7 @@ var LocalNetworkAddon = class extends BaseAddon {
|
|
|
1937
1955
|
getScanSubnets: async () => ({ subnets: [...this.config.scanSubnets] }),
|
|
1938
1956
|
setScanSubnets: async ({ subnets }) => {
|
|
1939
1957
|
const cleaned = [...validateSavedSubnets(subnets)];
|
|
1940
|
-
await this.
|
|
1958
|
+
await this.saveStored({ scanSubnets: cleaned });
|
|
1941
1959
|
this.ctx.logger.info("local-network: scan subnets updated", { meta: {
|
|
1942
1960
|
count: cleaned.length,
|
|
1943
1961
|
subnets: cleaned
|
|
@@ -2366,7 +2384,7 @@ var LocalNetworkAddon = class extends BaseAddon {
|
|
|
2366
2384
|
try {
|
|
2367
2385
|
const next = reconcileAllowlist(this.config.allowedAddresses, interfaces);
|
|
2368
2386
|
if (sameAddressSet(this.config.allowedAddresses, next)) return;
|
|
2369
|
-
await this.
|
|
2387
|
+
await this.saveStored({
|
|
2370
2388
|
allowedAddresses: next,
|
|
2371
2389
|
bootSeeded: true
|
|
2372
2390
|
});
|