@camstack/server 1.2.815 → 1.2.817
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 +13 -0
- package/dist/api/core/cap-providers.js +2 -43
- package/dist/api/trpc/generated-cap-routers.js +14 -17
- package/dist/core/addon/addon-registry.service.js +3 -3
- package/dist/core/addon/instance-lifecycle.js +79 -4
- package/package.json +18 -9
- package/system/dist/{agent-https-eMihTWJ4.mjs → agent-https-8yyIi2Mv.mjs} +1 -1
- package/system/dist/{agent-https-Dwbpz4K6.js → agent-https-CSHd24Sz.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/index.js +8 -4
- package/system/dist/builtins/camera-grid/index.mjs +8 -4
- 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.d.ts +1 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +16 -8
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +16 -8
- 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 +64 -5
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +64 -5
- package/system/dist/builtins/device-manager/last-active-mode.d.ts +1 -0
- package/system/dist/builtins/device-manager/runtime-state-persist-gate.d.ts +9 -0
- 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 +2 -2
- package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/system/dist/builtins/loki-logging/index.js +3 -3
- package/system/dist/builtins/loki-logging/index.mjs +3 -3
- 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/location-store.d.ts +5 -14
- package/system/dist/builtins/storage-orchestrator/record-kinds.d.ts +0 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +35 -75
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +35 -75
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.service.d.ts +9 -32
- 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-uxR5sOQN.js → capture-engine-Cius-WCQ.js} +1 -1
- package/system/dist/{capture-engine-CYPDOIF6.mjs → capture-engine-D2eAoc9W.mjs} +1 -1
- package/system/dist/{composition-sources-DkvntZci.js → composition-sources-AJ8V5KOI.js} +1 -1
- package/system/dist/{composition-sources-CU3p3INI.mjs → composition-sources-CdcDO-Ut.mjs} +1 -1
- package/system/dist/{constants-BP-Txn_J.js → constants-BVIwtt_O.js} +1 -1
- package/system/dist/{constants-DMFJ6Fky.mjs → constants-GPP-Z7D3.mjs} +1 -1
- package/system/dist/{device-ca-D-0zxmFi.js → device-ca-BFJn5TzU.js} +1 -1
- package/system/dist/{device-ca-tmcd_VBC.mjs → device-ca-WLUZEMzG.mjs} +1 -1
- package/system/dist/{dist-DmCVWvtK.mjs → dist-QnMV8AH-.mjs} +2455 -207
- package/system/dist/{dist-CznnwtQ8.js → dist-X-i__4Xc.js} +2454 -212
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-FTf16-JR.js → hub-mdns-ciao-DxC8z6eX.js} +2 -2
- package/system/dist/{hub-mdns-ciao-DbwyiHD5.mjs → hub-mdns-ciao-awDw9o6E.mjs} +2 -2
- package/system/dist/index.js +8 -8
- package/system/dist/index.mjs +8 -8
- package/system/dist/{legacy-integration-rows-door-CASQgifG.mjs → legacy-integration-rows-door-COW5hMUZ.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-gW0xpMJI.js → legacy-integration-rows-door-Cbb1WKDb.js} +1 -1
- package/system/dist/migrations/hub/2026-11-08-storage-locations-write-set.d.ts +3 -0
- package/system/dist/{restore-archive-DlaC_gyl.mjs → restore-archive-Dp13UUld.mjs} +1 -1
- package/system/dist/{restore-archive-B9TEFWRE.js → restore-archive-q01U_u2A.js} +1 -1
- package/system/dist/{wal-maintenance-Da2Rozz6.js → wal-maintenance-F8p6X7gc.js} +0 -0
- package/system/dist/{wal-maintenance-Cn164tp0.mjs → wal-maintenance-PzTcTuqZ.mjs} +0 -0
- package/system/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $
|
|
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 { $n as coverCapability, Ao as composedDeviceStableId, Ar as fanOutTargets, Bi as parseColorInput, Bo as historyRetentionFromSettings, Br as groupCommandsCapability, Ci as methodRefusal, Co as HISTORY_SLOW_MS, Cr as evaluateCompositionField, Dr as expressionContainsBuiltinCall, En as buildCapabilityLookup, Eo as MINUTE_MS, Fa as sharedColorModes, Fo as createStatefulExpressionMemory, Gi as planComposition, Gn as compositionFieldKey, Go as openReset, Hi as petFountainCapability, Ho as isForwardInputRef, Io as disarmRoseMemory, J as DeclaredDevices, Jc as errMsg, Jo as planStatisticTier, Js as createEvent, Ko as openStatistic, Lo as evaluateDerivative, Mo as compositionItemFieldPath, Mr as featureForwards, Na as sharedActuatorFeatures, No as compositionSliceKey, Nt as PetFountainStatusSchema, Oi as motionCapability, Oo as cloneStatefulExpressionMemory, Pa as sharedActuatorMethods, Po as compositionSourceKey, Qi as processTimeZoneOr, Qo as BaseAddon, Ro as evaluateStatistic, So as HISTORY_FAST_MS, Ui as petFountainWaterItem, Uo as isHistoryHelper, Vn as colorCapability, Vo as integrateReading, Vr as groupTemplate, Wn as composerCapability, Wo as nextLocalMidnight, Xa as switchCapability, Xc as EventCategory, Xo as toExpressionValue, Yc as featuresOfBoundCaps, Yo as statisticCadenceMs, ar as declaredSeriesKind, at as FanDirectionSchema, bi as mediaPlayerCapability, h as BaseDevice, hc as isReadingQuantity, ho as withDefaultRunning, i as ACTUATOR_TEMPLATE_IDS, ii as kebabToCamel, jo as compositionFeatureEnabled, k as ConsumableItemSchema, ko as composedDeviceRef, kr as fanControlCapability, lt as GroupCommandResultSchema, mt as HvacModeSchema, pi as lockControlCapability, qc as DeviceType, qn as consumablesCapability, qo as planResetTier, r as ACTUATOR_METHODS, s as ALL_CAPABILITY_DEFINITIONS, uo as valveCapability, vo as COMPOSER_ADDON_ID, wa as runFanOut, wn as brightnessCapability, wo as HOUR_MS, x as COMPOSED_ITEM_FIXED_FIELDS, xi as mediaPlayerFeaturesOfRoles, xo as DEFAULT_HISTORY_RETENTION, ya as resolveMutate, zn as climateControlCapability } from "../../dist-QnMV8AH-.mjs";
|
|
2
|
+
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-CdcDO-Ut.mjs";
|
|
3
|
+
import { i as capSeriesKey } from "../../capture-engine-D2eAoc9W.mjs";
|
|
4
4
|
import { i as DAY_MS, t as DEFAULT_RETENTION } from "../../retention-CUOVI1p7.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-X-i__4Xc.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 {
|
|
1
|
+
import { Qo as BaseAddon, hi as logDestinationCapability } from "../../dist-QnMV8AH-.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 = {
|
|
@@ -91,6 +91,7 @@ export declare class CoreBlocksAddon extends BaseAddon {
|
|
|
91
91
|
* process, and the write is already durable.
|
|
92
92
|
*/
|
|
93
93
|
private convergeSoon;
|
|
94
|
+
private requireBlocksInstances;
|
|
94
95
|
private requireActions;
|
|
95
96
|
/**
|
|
96
97
|
* Remove the ledger rows whose block is gone. Armed, not awaited: it is
|
|
@@ -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-X-i__4Xc.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-AJ8V5KOI.js");
|
|
6
|
+
const require_capture_engine = require("../../capture-engine-Cius-WCQ.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");
|
|
@@ -8343,10 +8343,10 @@ var CoreBlocksAddon = class extends require_dist.BaseAddon {
|
|
|
8343
8343
|
capability: require_dist.coreBlocksCapability,
|
|
8344
8344
|
provider: this.buildProvider()
|
|
8345
8345
|
},
|
|
8346
|
-
|
|
8346
|
+
{
|
|
8347
8347
|
capability: require_dist.integrationInstancesCapability,
|
|
8348
|
-
provider: this.
|
|
8349
|
-
}
|
|
8348
|
+
provider: this.requireBlocksInstances().toProvider()
|
|
8349
|
+
},
|
|
8350
8350
|
{
|
|
8351
8351
|
capability: require_dist.actionsCapability,
|
|
8352
8352
|
provider: this.requireActions().service
|
|
@@ -8678,7 +8678,11 @@ var CoreBlocksAddon = class extends require_dist.BaseAddon {
|
|
|
8678
8678
|
devices: this.ctx.kernel.devices,
|
|
8679
8679
|
localNodeId: this.ctx.kernel.localNodeId,
|
|
8680
8680
|
getIntegration: async (addonId) => api.integrations.getByAddonId.query({ addonId }),
|
|
8681
|
-
createIntegration: async (input) => api.
|
|
8681
|
+
createIntegration: async (input) => api.integrationInstances.createInstance.mutate({
|
|
8682
|
+
addonId: input.addonId,
|
|
8683
|
+
name: input.name,
|
|
8684
|
+
seed: { info: input.info }
|
|
8685
|
+
}),
|
|
8682
8686
|
updateIntegration: async ({ id, info }) => {
|
|
8683
8687
|
await api.integrations.update.mutate({
|
|
8684
8688
|
id,
|
|
@@ -8688,7 +8692,7 @@ var CoreBlocksAddon = class extends require_dist.BaseAddon {
|
|
|
8688
8692
|
},
|
|
8689
8693
|
listOwnDevices: async () => api.deviceManager.listAll.query({ addonId: require_dist.CORE_BLOCKS_ADDON_ID }),
|
|
8690
8694
|
seedInstance: async (seed) => {
|
|
8691
|
-
|
|
8695
|
+
await require_dist.seedInstanceOnce(this.requireBlocksInstances().toProvider(), seed);
|
|
8692
8696
|
}
|
|
8693
8697
|
});
|
|
8694
8698
|
}
|
|
@@ -8703,6 +8707,10 @@ var CoreBlocksAddon = class extends require_dist.BaseAddon {
|
|
|
8703
8707
|
convergeSoon() {
|
|
8704
8708
|
this.supervisor?.converge();
|
|
8705
8709
|
}
|
|
8710
|
+
requireBlocksInstances() {
|
|
8711
|
+
if (this.blocksInstances === null) throw new Error("core-blocks: not initialized");
|
|
8712
|
+
return this.blocksInstances;
|
|
8713
|
+
}
|
|
8706
8714
|
requireActions() {
|
|
8707
8715
|
if (this.actions === null) throw new Error("core-blocks: not initialized");
|
|
8708
8716
|
return this.actions;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as EMPTY_AUTOMATION_STATE, $a as
|
|
1
|
+
import { $ as EMPTY_AUTOMATION_STATE, $a as timedRunCapability, $i as projectDeviceRow, $r as isInternalActionId, $s as defineRecordKinds, A as ControlStatusSchema, Ai as normalizeActionUnits, Bn as collectWhenMirrorSources, Bo as historyRetentionFromSettings, Bt as REMOTE_MEDIA_COMMANDS, C as CORE_BLOCKS_ADDON_ID, Ca as resolveStepArgs, Da as schedulersCapability, En as buildCapabilityLookup, Gi as planComposition, Hr as heroLayoutCapability, Ic as secretTreeFromSchema, J as DeclaredDevices, Jc as errMsg$1, Ji as powerSourceLinkOfComposition, Jn as coreBlockAddonId, Jt as SchedulerError, Kn as compositionSourceRefs, La as siteFor, Li as occurrenceOn, Mi as normalizeCoreBlockWrite, Nc as resolveSecretMarkers, Ni as normalizeStepTargets, O as ConditionMirror, Pn as capUnitResolver, Po as compositionSourceKey, Pr as findChannelSource, Ps as actionEffect, Pt as PowerSourceInfoSchema, Qa as templateCapability, Qn as coreBlocksCapability, Qo as BaseAddon, Qs as defineEntryKind, R as DEFAULT_HOLD_OVERRIDE, Rn as checkTemplatePayload, Rt as QuantityUnitError, S as COMPOSER_RUNNER_ID, Ss as RecordIntegrationInstances, Ta as runSteps, Tn as buildActionSteps, To as HelperMemberSchema, Tt as MediaPlayerStatusSchema, Uc as vocabActionIdFor, Un as compileScalarOverride, Ur as integrationInstancesCapability, Ut as RemoteAssumedStateSchema, Va as stableIdMapOf, Vc as transformSecretWrite, Wr as internalActionId, Ws as collectSecretMarkerRefs, Wt as RunningStateStatusSchema, Xc as EventCategory$1, Xi as problemsBlockSave, Xn as coreBlockIdFromAddonId, Xs as defineAddonMigrations, Yn as coreBlockComposition, Yt as SchedulerSchema, Zn as coreBlockSourceKind, _o as zoneOnlySite, bc as isSecretRefOwnedBy, bo as DAY_MS, c as ActionError, ca as remoteSourceSteps, cc as hydrateSchema, cn as actionSourceCapability, d as ActionVariableSchema, dn as addonIdOfActionId, ea as proposeRunningThreshold, eo as timedRunLimitOf, et as EMPTY_REMOTE_ASSUMED_STATE, gt as INTERNAL_ACTION_PREFIX, ha as resolveHeroLayout, ht as IDLE_ACTION_STATUS, ii as kebabToCamel, in as TemplateKindSchema, io as toTimings, it as FanControlStatusSchema, j as CoreBlockSchema, ja as seedInstanceOnce, ji as normalizeCapStep, jr as fanPresetsCapability, ki as nextOccurrence, kn as buildHeroModel, ko as composedDeviceRef, l as ActionStepSchema, la as replacedFieldKeys, ln as actionWaitTotalMs, lo as validateSchedulerInput, lr as describeComposableCaps, m as BUILTIN_REMOTE_COMPONENTS, ma as resolveCoreBlockFiles, mi as lockDoorLinkOfComposition, mo as weekdayOfLocalDate, n as ACTION_TARGET_INVALIDATION_EVENTS, na as readStoredRemoteConfig, nc as entryBody, no as timedRunQuickRun, nt as FAN_CAPTURE_FIELDS, oa as remoteCapability, ot as FanPresetSchema, p as AutomationStateDocSchema, pa as resolveCoreBlockEntry, qc as DeviceType$1, qi as powerSourceCapability, qs as commandOrigin, rn as SwitchStatusSchema, ro as timedRunSeconds, s as ALL_CAPABILITY_DEFINITIONS, sa as remoteLayoutComponentsCapability, so as validateComposition, to as timedRunMaxIn, tr as customKeyOfRole, tt as EMPTY_REMOTE_CONFIG, u as ActionTargetResolver, ua as resolveActionVariables, ui as localDateOf, un as actionsCapability, vc as isSecretMarker, vn as appendTrace, w as CORE_BLOCK_ADDON_PREFIX, wr as evaluateWhenTree, xa as resolveRemoteSource, yo as CompositionSchema, zo as helperMembers } from "../../dist-QnMV8AH-.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
|
-
import { i as parseDeviceStateChanged, r as isRecord$1, t as describeCompositionSources } from "../../composition-sources-
|
|
4
|
-
import { i as capSeriesKey } from "../../capture-engine-
|
|
3
|
+
import { i as parseDeviceStateChanged, r as isRecord$1, t as describeCompositionSources } from "../../composition-sources-CdcDO-Ut.mjs";
|
|
4
|
+
import { i as capSeriesKey } from "../../capture-engine-D2eAoc9W.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";
|
|
@@ -8327,10 +8327,10 @@ var CoreBlocksAddon = class extends BaseAddon {
|
|
|
8327
8327
|
capability: coreBlocksCapability,
|
|
8328
8328
|
provider: this.buildProvider()
|
|
8329
8329
|
},
|
|
8330
|
-
|
|
8330
|
+
{
|
|
8331
8331
|
capability: integrationInstancesCapability,
|
|
8332
|
-
provider: this.
|
|
8333
|
-
}
|
|
8332
|
+
provider: this.requireBlocksInstances().toProvider()
|
|
8333
|
+
},
|
|
8334
8334
|
{
|
|
8335
8335
|
capability: actionsCapability,
|
|
8336
8336
|
provider: this.requireActions().service
|
|
@@ -8662,7 +8662,11 @@ var CoreBlocksAddon = class extends BaseAddon {
|
|
|
8662
8662
|
devices: this.ctx.kernel.devices,
|
|
8663
8663
|
localNodeId: this.ctx.kernel.localNodeId,
|
|
8664
8664
|
getIntegration: async (addonId) => api.integrations.getByAddonId.query({ addonId }),
|
|
8665
|
-
createIntegration: async (input) => api.
|
|
8665
|
+
createIntegration: async (input) => api.integrationInstances.createInstance.mutate({
|
|
8666
|
+
addonId: input.addonId,
|
|
8667
|
+
name: input.name,
|
|
8668
|
+
seed: { info: input.info }
|
|
8669
|
+
}),
|
|
8666
8670
|
updateIntegration: async ({ id, info }) => {
|
|
8667
8671
|
await api.integrations.update.mutate({
|
|
8668
8672
|
id,
|
|
@@ -8672,7 +8676,7 @@ var CoreBlocksAddon = class extends BaseAddon {
|
|
|
8672
8676
|
},
|
|
8673
8677
|
listOwnDevices: async () => api.deviceManager.listAll.query({ addonId: CORE_BLOCKS_ADDON_ID }),
|
|
8674
8678
|
seedInstance: async (seed) => {
|
|
8675
|
-
|
|
8679
|
+
await seedInstanceOnce(this.requireBlocksInstances().toProvider(), seed);
|
|
8676
8680
|
}
|
|
8677
8681
|
});
|
|
8678
8682
|
}
|
|
@@ -8687,6 +8691,10 @@ var CoreBlocksAddon = class extends BaseAddon {
|
|
|
8687
8691
|
convergeSoon() {
|
|
8688
8692
|
this.supervisor?.converge();
|
|
8689
8693
|
}
|
|
8694
|
+
requireBlocksInstances() {
|
|
8695
|
+
if (this.blocksInstances === null) throw new Error("core-blocks: not initialized");
|
|
8696
|
+
return this.blocksInstances;
|
|
8697
|
+
}
|
|
8690
8698
|
requireActions() {
|
|
8691
8699
|
if (this.actions === null) throw new Error("core-blocks: not initialized");
|
|
8692
8700
|
return this.actions;
|
|
@@ -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-X-i__4Xc.js");
|
|
7
|
+
const require_capture_engine = require("../../capture-engine-Cius-WCQ.js");
|
|
8
8
|
const require_retention = require("../../retention-BcOSL6b9.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 { $
|
|
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 { $s as defineRecordKinds, Qo as BaseAddon, Ts as RecordTooLargeError, V as DEVICE_HISTORY_ENERGY_KEY, Xc as EventCategory, Y as DeviceRunSchema, Zo as wattMillisecondsToKwh, as as DeviceTransitionSchema, dt as HISTORY_ITEM_CATALOG, gr as deviceRunsCapability, hc as isReadingQuantity, hr as deviceRemovalHookCapability, ls as InvalidRecordError, pr as deviceHistoryCapability, qc as DeviceType, sc as historyUnitFor, tc as emitReadiness, ut as HISTORY_CATALOG, yn as armRemovalReconcile, yr as deviceTransitionsCapability } from "../../dist-QnMV8AH-.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-D2eAoc9W.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-CUOVI1p7.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-X-i__4Xc.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
const require_log_redactor = require("../../log-redactor-BhIEMaG9.js");
|
|
9
9
|
const require_prefix_range = require("../../prefix-range-D_KueXbQ.js");
|
|
@@ -9611,11 +9611,43 @@ var RunningFlipDetector = class {
|
|
|
9611
9611
|
}
|
|
9612
9612
|
};
|
|
9613
9613
|
//#endregion
|
|
9614
|
+
//#region src/builtins/device-manager/last-active-mode.ts
|
|
9615
|
+
/**
|
|
9616
|
+
* The last mode a climate device actually RAN (D224): "turn on" needs a mode to
|
|
9617
|
+
* return to, and a device that reports `off` no longer says which. The mirror's
|
|
9618
|
+
* single write path calls this, so every provider's slice carries the field
|
|
9619
|
+
* without per-addon code, and a consumer never keeps a second copy.
|
|
9620
|
+
*
|
|
9621
|
+
* Pure: it only reads the slice being written and the one it replaces.
|
|
9622
|
+
*/
|
|
9623
|
+
/** The cap, and the slice field that names its mode. */
|
|
9624
|
+
var MODE_FIELD_BY_CAP = {
|
|
9625
|
+
"climate-control": "mode",
|
|
9626
|
+
"water-heater": "operationMode"
|
|
9627
|
+
};
|
|
9628
|
+
var OFF = "off";
|
|
9629
|
+
function carryLastActiveMode(capName, prior, incoming) {
|
|
9630
|
+
const modeField = MODE_FIELD_BY_CAP[capName];
|
|
9631
|
+
if (modeField === void 0) return { ...incoming };
|
|
9632
|
+
const mode = incoming[modeField];
|
|
9633
|
+
if (typeof mode === "string" && mode !== OFF) return {
|
|
9634
|
+
...incoming,
|
|
9635
|
+
lastActiveMode: mode
|
|
9636
|
+
};
|
|
9637
|
+
const remembered = incoming["lastActiveMode"] ?? prior?.["lastActiveMode"];
|
|
9638
|
+
return remembered === void 0 ? { ...incoming } : {
|
|
9639
|
+
...incoming,
|
|
9640
|
+
lastActiveMode: remembered
|
|
9641
|
+
};
|
|
9642
|
+
}
|
|
9643
|
+
//#endregion
|
|
9614
9644
|
//#region src/builtins/device-manager/runtime-state-persist-gate.ts
|
|
9615
9645
|
/**
|
|
9616
9646
|
* The subset of `blob` that is allowed on disk: slices whose capability
|
|
9617
9647
|
* declared `durability: 'restored'`.
|
|
9618
9648
|
*
|
|
9649
|
+
* A `restored` cap that names `restoredFields` contributes only those fields.
|
|
9650
|
+
*
|
|
9619
9651
|
* A cap the lookup does not know resolves to `'session'` and is dropped. That
|
|
9620
9652
|
* direction is deliberate: the cost of losing a session value is a cold window
|
|
9621
9653
|
* until the provider republishes; the cost of persisting an unasked-for one is
|
|
@@ -9628,12 +9660,31 @@ var RunningFlipDetector = class {
|
|
|
9628
9660
|
function persistableBlob(blob, policyFor) {
|
|
9629
9661
|
const out = {};
|
|
9630
9662
|
for (const [capName, slice] of Object.entries(blob)) {
|
|
9631
|
-
if (capName
|
|
9632
|
-
|
|
9663
|
+
if (capName === "$owned") {
|
|
9664
|
+
out[capName] = { ...slice };
|
|
9665
|
+
continue;
|
|
9666
|
+
}
|
|
9667
|
+
const policy = policyFor(capName);
|
|
9668
|
+
if (policy.durability !== "restored") continue;
|
|
9669
|
+
const kept = restoredPart(slice, policy);
|
|
9670
|
+
if (Object.keys(kept).length > 0) out[capName] = kept;
|
|
9633
9671
|
}
|
|
9634
9672
|
return out;
|
|
9635
9673
|
}
|
|
9636
9674
|
/**
|
|
9675
|
+
* The part of a `restored` slice that may live on disk (D1024). A cap that
|
|
9676
|
+
* names `restoredFields` keeps only those; every other restored cap keeps the
|
|
9677
|
+
* whole slice. One function for both directions — what is written and what the
|
|
9678
|
+
* boot seed reads back — so the two cannot drift.
|
|
9679
|
+
*/
|
|
9680
|
+
function restoredPart(slice, policy) {
|
|
9681
|
+
const names = policy.restoredFields;
|
|
9682
|
+
if (names === void 0) return { ...slice };
|
|
9683
|
+
const out = {};
|
|
9684
|
+
for (const name of names) if (name in slice) out[name] = slice[name];
|
|
9685
|
+
return out;
|
|
9686
|
+
}
|
|
9687
|
+
/**
|
|
9637
9688
|
* Are two slices the same, ignoring the fields the cap declared volatile?
|
|
9638
9689
|
*
|
|
9639
9690
|
* A volatile field is still WRITTEN — it simply does not, on its own, justify
|
|
@@ -10197,7 +10248,9 @@ var DeviceStateMirror = class {
|
|
|
10197
10248
|
this.stateMirror.set(deviceId, perCap);
|
|
10198
10249
|
}
|
|
10199
10250
|
const prior = perCap.get(capName);
|
|
10200
|
-
|
|
10251
|
+
const written = carryLastActiveMode(capName, prior, slice);
|
|
10252
|
+
if (prior && shallowEqual(prior, written)) return false;
|
|
10253
|
+
slice = written;
|
|
10201
10254
|
perCap.set(capName, { ...slice });
|
|
10202
10255
|
this.transitionTap?.(deviceId, capName, prior, slice);
|
|
10203
10256
|
const claim = this.claims.claim(deviceId, capName);
|
|
@@ -10560,7 +10613,13 @@ var DeviceStateMirror = class {
|
|
|
10560
10613
|
perCap = /* @__PURE__ */ new Map();
|
|
10561
10614
|
this.stateMirror.set(deviceId, perCap);
|
|
10562
10615
|
}
|
|
10563
|
-
for (const [capName, raw] of Object.entries(split.native))
|
|
10616
|
+
for (const [capName, raw] of Object.entries(split.native)) {
|
|
10617
|
+
if (perCap.has(capName)) continue;
|
|
10618
|
+
const policy = this.policyFor(capName);
|
|
10619
|
+
const seeded = policy.durability === "restored" ? restoredPart(raw, policy) : { ...raw };
|
|
10620
|
+
if (policy.restoredFields !== void 0 && Object.keys(seeded).length === 0) continue;
|
|
10621
|
+
perCap.set(capName, seeded);
|
|
10622
|
+
}
|
|
10564
10623
|
this.claims.seedClaims(deviceId, split.owned);
|
|
10565
10624
|
if (split.dropped.length > 0) this.ctx.logger.warn("malformed $owned entries on the runtime-state row dropped by name", {
|
|
10566
10625
|
tags: { deviceId },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $s as defineRecordKinds, An as buildStreamParamsConfigSchema, Bc as toSecretFieldView, Bs as auditedFields, Ct as MINUTES_PER_DAY, Ea as runtimeStatePolicyFor, Er as expandContainer, Fc as secretTreeFromPaths, Gc as DeviceFeature, Gs as collectZodSecretPaths$1, Hc as userError, In as checkDeviceAlias, Jc as errMsg$1, Kc as DeviceRole, Ks as commandEffect, L as DAY_NAMES, Lr as formatMinutes, Nc as resolveSecretMarkers, Nn as canonicalIconKey, Ns as WELL_KNOWN_TAB_MAP, Os as SECRET_CLEAR, Pi as normalizeUnit, Q as DiscoveryProposalBodySchema, Qo as BaseAddon, Ra as siteZoneKey, Rc as sleep$2, Sr as enumerateSchemaFields, Vc as transformSecretWrite, Vi as parseStreamParamsFormPatch, X as DeviceStatusSchema, Xc as EventCategory$1, Z as DeviceTombstoneSchema, _ as CAMERA_SWITCH_ORDER, _r as deviceStateCapability, ct as FieldClaimSchema, dc as isDeviceConfigCap, er as createDeviceExtensionProvider, fi as locationIconKey, fr as deviceExtensionCapability, gc as isSecretClear, lc as isCommand$1, mc as isKeychainStoredField, mr as deviceManagerCapability, qc as DeviceType$1, qt as STREAM_PROFILE_META, rc as expandCapMethods$1, s as ALL_CAPABILITY_DEFINITIONS, si as legacyAutoLinkIds, sr as defineExtensionSlotProvider, st as FieldClaimModeSchema, vc as isSecretMarker, vr as deviceStatusCapability, xr as enumerateItemArrayFields, y as CAP_NAMES_WITH_STATUS, yc as isSecretMarkerLike, zr as generateDeviceAlias } from "../../dist-QnMV8AH-.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
3
|
import { a as redactLogText, i as redactLogMeta, n as isSecretArgumentKey } from "../../log-redactor-XLDrPzOi.mjs";
|
|
4
4
|
import { t as prefixRange } from "../../prefix-range-Dl0znowN.mjs";
|
|
@@ -9605,11 +9605,43 @@ var RunningFlipDetector = class {
|
|
|
9605
9605
|
}
|
|
9606
9606
|
};
|
|
9607
9607
|
//#endregion
|
|
9608
|
+
//#region src/builtins/device-manager/last-active-mode.ts
|
|
9609
|
+
/**
|
|
9610
|
+
* The last mode a climate device actually RAN (D224): "turn on" needs a mode to
|
|
9611
|
+
* return to, and a device that reports `off` no longer says which. The mirror's
|
|
9612
|
+
* single write path calls this, so every provider's slice carries the field
|
|
9613
|
+
* without per-addon code, and a consumer never keeps a second copy.
|
|
9614
|
+
*
|
|
9615
|
+
* Pure: it only reads the slice being written and the one it replaces.
|
|
9616
|
+
*/
|
|
9617
|
+
/** The cap, and the slice field that names its mode. */
|
|
9618
|
+
var MODE_FIELD_BY_CAP = {
|
|
9619
|
+
"climate-control": "mode",
|
|
9620
|
+
"water-heater": "operationMode"
|
|
9621
|
+
};
|
|
9622
|
+
var OFF = "off";
|
|
9623
|
+
function carryLastActiveMode(capName, prior, incoming) {
|
|
9624
|
+
const modeField = MODE_FIELD_BY_CAP[capName];
|
|
9625
|
+
if (modeField === void 0) return { ...incoming };
|
|
9626
|
+
const mode = incoming[modeField];
|
|
9627
|
+
if (typeof mode === "string" && mode !== OFF) return {
|
|
9628
|
+
...incoming,
|
|
9629
|
+
lastActiveMode: mode
|
|
9630
|
+
};
|
|
9631
|
+
const remembered = incoming["lastActiveMode"] ?? prior?.["lastActiveMode"];
|
|
9632
|
+
return remembered === void 0 ? { ...incoming } : {
|
|
9633
|
+
...incoming,
|
|
9634
|
+
lastActiveMode: remembered
|
|
9635
|
+
};
|
|
9636
|
+
}
|
|
9637
|
+
//#endregion
|
|
9608
9638
|
//#region src/builtins/device-manager/runtime-state-persist-gate.ts
|
|
9609
9639
|
/**
|
|
9610
9640
|
* The subset of `blob` that is allowed on disk: slices whose capability
|
|
9611
9641
|
* declared `durability: 'restored'`.
|
|
9612
9642
|
*
|
|
9643
|
+
* A `restored` cap that names `restoredFields` contributes only those fields.
|
|
9644
|
+
*
|
|
9613
9645
|
* A cap the lookup does not know resolves to `'session'` and is dropped. That
|
|
9614
9646
|
* direction is deliberate: the cost of losing a session value is a cold window
|
|
9615
9647
|
* until the provider republishes; the cost of persisting an unasked-for one is
|
|
@@ -9622,12 +9654,31 @@ var RunningFlipDetector = class {
|
|
|
9622
9654
|
function persistableBlob(blob, policyFor) {
|
|
9623
9655
|
const out = {};
|
|
9624
9656
|
for (const [capName, slice] of Object.entries(blob)) {
|
|
9625
|
-
if (capName
|
|
9626
|
-
|
|
9657
|
+
if (capName === "$owned") {
|
|
9658
|
+
out[capName] = { ...slice };
|
|
9659
|
+
continue;
|
|
9660
|
+
}
|
|
9661
|
+
const policy = policyFor(capName);
|
|
9662
|
+
if (policy.durability !== "restored") continue;
|
|
9663
|
+
const kept = restoredPart(slice, policy);
|
|
9664
|
+
if (Object.keys(kept).length > 0) out[capName] = kept;
|
|
9627
9665
|
}
|
|
9628
9666
|
return out;
|
|
9629
9667
|
}
|
|
9630
9668
|
/**
|
|
9669
|
+
* The part of a `restored` slice that may live on disk (D1024). A cap that
|
|
9670
|
+
* names `restoredFields` keeps only those; every other restored cap keeps the
|
|
9671
|
+
* whole slice. One function for both directions — what is written and what the
|
|
9672
|
+
* boot seed reads back — so the two cannot drift.
|
|
9673
|
+
*/
|
|
9674
|
+
function restoredPart(slice, policy) {
|
|
9675
|
+
const names = policy.restoredFields;
|
|
9676
|
+
if (names === void 0) return { ...slice };
|
|
9677
|
+
const out = {};
|
|
9678
|
+
for (const name of names) if (name in slice) out[name] = slice[name];
|
|
9679
|
+
return out;
|
|
9680
|
+
}
|
|
9681
|
+
/**
|
|
9631
9682
|
* Are two slices the same, ignoring the fields the cap declared volatile?
|
|
9632
9683
|
*
|
|
9633
9684
|
* A volatile field is still WRITTEN — it simply does not, on its own, justify
|
|
@@ -10191,7 +10242,9 @@ var DeviceStateMirror = class {
|
|
|
10191
10242
|
this.stateMirror.set(deviceId, perCap);
|
|
10192
10243
|
}
|
|
10193
10244
|
const prior = perCap.get(capName);
|
|
10194
|
-
|
|
10245
|
+
const written = carryLastActiveMode(capName, prior, slice);
|
|
10246
|
+
if (prior && shallowEqual(prior, written)) return false;
|
|
10247
|
+
slice = written;
|
|
10195
10248
|
perCap.set(capName, { ...slice });
|
|
10196
10249
|
this.transitionTap?.(deviceId, capName, prior, slice);
|
|
10197
10250
|
const claim = this.claims.claim(deviceId, capName);
|
|
@@ -10554,7 +10607,13 @@ var DeviceStateMirror = class {
|
|
|
10554
10607
|
perCap = /* @__PURE__ */ new Map();
|
|
10555
10608
|
this.stateMirror.set(deviceId, perCap);
|
|
10556
10609
|
}
|
|
10557
|
-
for (const [capName, raw] of Object.entries(split.native))
|
|
10610
|
+
for (const [capName, raw] of Object.entries(split.native)) {
|
|
10611
|
+
if (perCap.has(capName)) continue;
|
|
10612
|
+
const policy = this.policyFor(capName);
|
|
10613
|
+
const seeded = policy.durability === "restored" ? restoredPart(raw, policy) : { ...raw };
|
|
10614
|
+
if (policy.restoredFields !== void 0 && Object.keys(seeded).length === 0) continue;
|
|
10615
|
+
perCap.set(capName, seeded);
|
|
10616
|
+
}
|
|
10558
10617
|
this.claims.seedClaims(deviceId, split.owned);
|
|
10559
10618
|
if (split.dropped.length > 0) this.ctx.logger.warn("malformed $owned entries on the runtime-state row dropped by name", {
|
|
10560
10619
|
tags: { deviceId },
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function carryLastActiveMode(capName: string, prior: Readonly<Record<string, unknown>> | undefined, incoming: Readonly<Record<string, unknown>>): Record<string, unknown>;
|
|
@@ -35,6 +35,8 @@ export type RuntimeStateBlob = Readonly<Record<string, Readonly<Record<string, u
|
|
|
35
35
|
* The subset of `blob` that is allowed on disk: slices whose capability
|
|
36
36
|
* declared `durability: 'restored'`.
|
|
37
37
|
*
|
|
38
|
+
* A `restored` cap that names `restoredFields` contributes only those fields.
|
|
39
|
+
*
|
|
38
40
|
* A cap the lookup does not know resolves to `'session'` and is dropped. That
|
|
39
41
|
* direction is deliberate: the cost of losing a session value is a cold window
|
|
40
42
|
* until the provider republishes; the cost of persisting an unasked-for one is
|
|
@@ -46,6 +48,13 @@ export type RuntimeStateBlob = Readonly<Record<string, Readonly<Record<string, u
|
|
|
46
48
|
*/
|
|
47
49
|
export declare function persistableBlob(blob: RuntimeStateBlob, policyFor: RuntimeStatePolicyLookup): Record<string, Record<string, unknown>>;
|
|
48
50
|
/**
|
|
51
|
+
* The part of a `restored` slice that may live on disk (D1024). A cap that
|
|
52
|
+
* names `restoredFields` keeps only those; every other restored cap keeps the
|
|
53
|
+
* whole slice. One function for both directions — what is written and what the
|
|
54
|
+
* boot seed reads back — so the two cannot drift.
|
|
55
|
+
*/
|
|
56
|
+
export declare function restoredPart(slice: Readonly<Record<string, unknown>>, policy: RuntimeStatePolicy): Record<string, unknown>;
|
|
57
|
+
/**
|
|
49
58
|
* Are two slices the same, ignoring the fields the cap declared volatile?
|
|
50
59
|
*
|
|
51
60
|
* A volatile field is still WRITTEN — it simply does not, on its own, justify
|
|
@@ -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-X-i__4Xc.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 {
|
|
1
|
+
import { Qo as BaseAddon, hi as logDestinationCapability } from "../../dist-QnMV8AH-.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-X-i__4Xc.js");
|
|
7
|
+
const require_device_ca = require("../../device-ca-BFJn5TzU.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-Cbb1WKDb.js");
|
|
10
|
+
const require_constants = require("../../constants-BVIwtt_O.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 { $
|
|
2
|
-
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-
|
|
1
|
+
import { $s as defineRecordKinds, Ec as normalizeSecretOwner, Qo as BaseAddon, Xc as EventCategory, _t as KEYCHAIN_RESET_TRIGGER_ACTOR, ai as keychainAdminCapability, ic as formatSecretScope, kc as parseSecretRef, oi as keychainCapability, vt as KeychainAuditEntrySchema, yt as KeychainResetRecordSchema } from "../../dist-QnMV8AH-.mjs";
|
|
2
|
+
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-WLUZEMzG.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-COW5hMUZ.mjs";
|
|
5
|
+
import { a as MESH_CA_KEY_REF } from "../../constants-GPP-Z7D3.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-X-i__4Xc.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 {
|
|
1
|
+
import { Ht as RecordingStatusSchema, Jc as errMsg, Js as createEvent, Qo as BaseAddon, Xc as EventCategory, yi as mayWriteToLocation, zt as RECORDING_SOURCE_CAMSTACK_ADDON } from "../../dist-QnMV8AH-.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-X-i__4Xc.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-BFJn5TzU.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 { $
|
|
2
|
+
import { $s as defineRecordKinds, At as PREFERENCES_MAX_VALUE_BYTES, B as DEVICE_ENROLLMENT_TTL_MS, Dn as buildDeviceEnrollmentLink, Ft as PreferenceDeviceIdSchema, Hc as userError, Ir as formatDeviceRevoker, It as PreferenceNamespaceSchema, Lt as PreferenceValueSchema, M as CredentialTokenClaimsSchema, On as buildDeviceSignatureMessage, Qo as BaseAddon, Qt as SsoBridgeClaimsSchema, T as CREDENTIAL_TOKEN_AUDIENCE, U as DEVICE_NONCE_TTL_MS, Xt as ScopedTokenSchema, Zr as isCredentialTokenPayload, an as TokenScopeSchema, bn as authProviderCapability, dr as deviceCredentialsCapability, oo as userManagementCapability, sn as UserRecordSchema, vc as isSecretMarker, xc as makeSecretMarker } from "../../dist-QnMV8AH-.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-WLUZEMzG.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";
|
|
@@ -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-X-i__4Xc.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-DxC8z6eX.js");
|
|
6
6
|
let zod = require("zod");
|
|
7
7
|
let node_net = require("node:net");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ia as shortHostname, Jc as errMsg, Jr as isAppLinkBase, Ln as checkRoleAddress, Ot as NetworkTunnelStartedDataSchema, Qo as BaseAddon, Qr as isDefaultAppConnectionEndpoint, Wi as pickAppLinkHub, Xc as EventCategory, Xs as defineAddonMigrations, Yi as preconditionOf, ba as resolveNotificationTapAddress, co as validateCustomAddress, da as resolveAppConnections, di as localNetworkCapability, ft as HUB_MDNS_SERVICE_TYPE, ga as resolveHubAddressRoles, pt as HUB_MDNS_TXT_KEYS, v as CAMSTACK_APP_LINK_ORIGIN } from "../../dist-QnMV8AH-.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-awDw9o6E.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { isIP } from "node:net";
|
|
6
6
|
import { readFileSync } from "node:fs";
|