@camstack/server 1.2.862 → 1.2.864
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 +14 -0
- package/package.json +7 -8
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +4 -4
- package/system/dist/builtins/composer/composer.addon.mjs +4 -4
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +25 -49
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +25 -49
- package/system/dist/builtins/core-blocks/hero-layout-service.d.ts +3 -1
- package/system/dist/builtins/core-blocks/remote-service.d.ts +10 -10
- 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 +29 -5
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +29 -5
- package/system/dist/builtins/device-manager/device-projection.d.ts +8 -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 +3 -3
- package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +3 -3
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{capture-engine-B5OYzCH1.mjs → capture-engine-CK9f9H7b.mjs} +1 -1
- package/system/dist/{capture-engine-BManwD48.js → capture-engine-Cofev-f3.js} +1 -1
- package/system/dist/{composition-sources-B8hoUx1K.mjs → composition-sources-Cah5d873.mjs} +1 -1
- package/system/dist/{composition-sources-DWu-IL2w.js → composition-sources-Pqrpujem.js} +1 -1
- package/system/dist/{constants-qDKQ7NaY.mjs → constants-BKiAEgH1.mjs} +1 -1
- package/system/dist/{constants-CUAopsxj.js → constants-DzdeUhhD.js} +1 -1
- package/system/dist/{device-ca-DNrM4Ao-.js → device-ca-DfFm8dSR.js} +1 -1
- package/system/dist/{device-ca-BOUTrISA.mjs → device-ca-MvTMcE3C.mjs} +1 -1
- package/system/dist/{dist-3MQdfUTG.mjs → dist-BDIq20ng.mjs} +76 -16
- package/system/dist/{dist-B9Kzw974.js → dist-BJBp-Cna.js} +81 -15
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-DEbxcoVh.mjs → hub-identity-DErvD_Y9.mjs} +1 -1
- package/system/dist/{hub-identity-BQIE6w3g.js → hub-identity-DZw5bjVe.js} +1 -1
- package/system/dist/{hub-mdns-ciao-Bj_RdJiH.js → hub-mdns-ciao-Cn4CZvKD.js} +2 -2
- package/system/dist/{hub-mdns-ciao-BzKGywE2.mjs → hub-mdns-ciao-DBtitWew.mjs} +2 -2
- package/system/dist/index.js +8 -8
- package/system/dist/index.mjs +8 -8
- package/system/dist/{legacy-integration-rows-door-rgL9olef.mjs → legacy-integration-rows-door-CT9d6do5.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-CRfEC_HP.js → legacy-integration-rows-door-Dm8DXrzQ.js} +1 -1
- package/system/dist/{rename-composition-block-DlgSgxch.mjs → rename-composition-block-BgjpGf0d.mjs} +1 -1
- package/system/dist/{rename-composition-block-Bbt43q6n.js → rename-composition-block-CMrV8Rou.js} +1 -1
- package/system/dist/{restore-archive-DJBACMC0.js → restore-archive-BRIGjOQv.js} +1 -1
- package/system/dist/{restore-archive-Ct-H3qLw.mjs → restore-archive-BTpU7KMz.mjs} +1 -1
- package/system/dist/{wal-maintenance-Bu6vjJlR.mjs → wal-maintenance-BsgOZJxC.mjs} +0 -0
- package/system/dist/{wal-maintenance-BvIEU1r1.js → wal-maintenance-DAzeawfH.js} +0 -0
- package/system/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $o as CompositionSchema, $t as RemoteAssumedStateSchema, Aa as readStoredRemoteConfig, Ai as kebabToCamel, Al as vocabCall, B as DEFAULT_HOLD_OVERRIDE, Ba as replacedFieldKeys, Bi as lockDoorLinkOfComposition, Ca as problemsBlockSave, Cs as historyRetentionFromSettings, D as CORE_BLOCK_ADDON_PREFIX, Da as proposeRunningThreshold, Dl as transformSecretWrite, E as CORE_BLOCKS_ADDON_ID, Ea as projectDeviceRow, Et as INTERNAL_ACTION_PREFIX, Fa as reexpandAutomationInstance, Fc as defineAddonMigrations, Fl as DeviceType$1, Fo as timedRunMaxIn, Ft as MediaPlayerStatusSchema, Ga as resolveCoreBlockFiles, Hr as evaluateWhenTree, Ia as remoteCapability, Ii as localDateOf, Il as errMsg$1, Io as timedRunQuickRun, Is as BaseAddon, Jn as capUnitResolver, Jo as weekdayOfLocalDate, Jr as fanAxisPath, Jt as QuantityUnitError, Ka as resolveHeroLayout, La as remoteLayoutComponentsCapability, Lc as defineEntryKind, Ln as buildActionSteps, Lo as timedRunSeconds, Mc as commandOrigin$1, Mo as templateCapability, N as CoreBlockSchema, No as timedRunCapability, Pl as DeviceRole, Po as timedRunLimitOf, Qa as resolveRemoteSource, Qn as checkTemplatePayload, Qo as COMPOSER_ADDON_ID, Ra as remoteSourceSteps, Rc as defineRecordKinds, Rl as EventCategory$1, Rn as buildCapabilityLookup, Ro as toTimings, Sa as prepareRecipeUnits, Sl as secretTreeFromSchema, Sn as addonIdOfActionId, Ss as helperMembers, T as COMPOSER_RUNNER_ID, Tr as describeComposableCaps, Tt as IDLE_ACTION_STATUS, Un as builtinAutomationTemplate, Uo as validateSchedulerInput, Va as resolveActionVariables, Vc as entryBody, Vn as buildHeroModel, Vo as validateComposition, Vr as evaluateStepCondition, Wa as resolveCoreBlockEntry, Wt as PowerSourceInfoSchema, Xt as REMOTE_MEDIA_COMMANDS, Zo as zoneOnlySite, Zr as fanPresetsCapability, _ as BUILTIN_REMOTE_COMPONENTS, _c as VocabActionError, _o as siteFor, _r as customKeyOfRole, _s as compositionSourceKey, ai as generateAutomationBlock, al as isSecretRefOwnedBy, an as SchedulerError, as as HelperMemberSchema, ba as powerSourceLinkOfComposition, bi as isBuiltinTemplateId, bn as actionWaitTotalMs, c as ActionError, ca as occurrenceOn, cr as compositionUnionReads, cs as canonicalStoredBlockTarget, ct as EMPTY_REMOTE_CONFIG, d as ActionTargetResolver, di as instanceCodeHash, dr as coreBlockComposition, dt as FAN_OSCILLATION_AXES, ei as findChannelSource, en as RemoteLayoutPayloadSchema, eo as resolveStepArgs, er as collectDeviceTemplates, es as DAY_MS, f as ActionVariableSchema, fi as integrationInstancesCapability, fr as coreBlockIdFromAddonId, fs as composedDeviceRef, ft as FAN_OSCILLATION_AXIS_SETTABLE, g as BUILTIN_AUTOMATION_TEMPLATES, ga as planComposition, gt as FanPresetSchema, h as AutomationTemplatePayloadSchema, hn as TemplateKindSchema, ia as normalizeCoreBlockWrite, ir as compileScalarOverride, j as ConditionMirror, jn as assertStepsOffered, ka as readRecipeLiteral, kc as collectSecretMarkerRefs, kl as vocabActionIdFor, kn as appendTrace, l as ActionMinDelaySecSchema, li as hasTimeLeaves, ln as SetOscillationAxisInputSchema, m as AutomationStateDocSchema, mr as coreBlocksCapability, ms as compositionFeatureEnabled, mt as FanControlStatusSchema, n as ACTION_TARGET_INVALIDATION_EVENTS, na as nextTimeBoundaryInMs, oc as RecordIntegrationInstances, on as SchedulerSchema, oo as schedulersCapability, ot as EMPTY_AUTOMATION_STATE, pi as internalActionId, pr as coreBlockSourceKind, ps as composedDeviceStableId, qc as hydrateSchema, qn as canonicalStoredStepTargets, ra as normalizeActionUnits, rl as isSecretMarker, ro as runSteps, s as ALL_CAPABILITY_DEFINITIONS, sr as compositionSourceRefs, st as EMPTY_REMOTE_ASSUMED_STATE, ta as nextOccurrence, tn as RunningStateStatusSchema, tr as collectWhenMirrorSources, tt as DeclaredDevices, u as ActionStepSchema, ui as heroLayoutCapability, uo as seedInstanceOnce, ur as coreBlockAddonId, ut as FAN_CAPTURE_FIELDS, va as powerSourceActuatorConflicts, vl as resolveSecretMarkers, wi as isInternalActionId, xn as actionsCapability, xo as stableIdMapOf, ya as powerSourceCapability, yc as actionEffect, yl as ruleFireOfClaim, yn as actionSourceCapability, za as replaceRecipeLiteral } from "../../dist-BDIq20ng.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-Cah5d873.mjs";
|
|
4
|
+
import { i as capSeriesKey } from "../../capture-engine-CK9f9H7b.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 { n as readCurrentCommandOrigin } from "../../cap-call-scope-Bic6Ekfw.mjs";
|
|
@@ -6157,7 +6157,8 @@ var HeroLayoutService = class {
|
|
|
6157
6157
|
role: device.role,
|
|
6158
6158
|
name: device.name,
|
|
6159
6159
|
online: device.online,
|
|
6160
|
-
integration: device.integration ?? null
|
|
6160
|
+
integration: device.integration ?? null,
|
|
6161
|
+
quantity: device.quantity ?? null
|
|
6161
6162
|
},
|
|
6162
6163
|
caps: [...bound.filter((cap) => cap !== REMOTE_CAP), REMOTE_CAP],
|
|
6163
6164
|
features: device.features,
|
|
@@ -6655,7 +6656,8 @@ function remoteCallRedirect(deps) {
|
|
|
6655
6656
|
* only AFTER a send succeeded, is persisted per device and never recorded
|
|
6656
6657
|
* in history. A toggle power code is sent only when the current state
|
|
6657
6658
|
* differs from the requested one; a discrete pair is always sent. A mute on
|
|
6658
|
-
* a device that does not report it is sent
|
|
6659
|
+
* a device that does not report it is a momentary key: sent every time, and
|
|
6660
|
+
* no mute state is kept or shown (only a native READING of it is a state).
|
|
6659
6661
|
* - **Sources are declared** (planning#460). `availableSources` is the
|
|
6660
6662
|
* operator's declared sources, never the custom buttons. A source runs its
|
|
6661
6663
|
* steps in order under the device's lock (no other press interleaves),
|
|
@@ -6816,23 +6818,22 @@ var RemoteService = class {
|
|
|
6816
6818
|
await Promise.all(affected.map((tv) => this.refreshSlice(tv)));
|
|
6817
6819
|
}
|
|
6818
6820
|
/**
|
|
6819
|
-
* What the remote ASSUMES (the last power and
|
|
6820
|
-
* knows neither. No plug, no running-state: that is `assumedStatus`.
|
|
6821
|
+
* What the remote ASSUMES (the last power and source it sent), or null when it
|
|
6822
|
+
* knows neither. A mute is never assumed: without a reading it has no state. No plug, no running-state: that is `assumedStatus`.
|
|
6821
6823
|
*/
|
|
6822
6824
|
getAssumedStatus = async ({ deviceId }) => {
|
|
6823
6825
|
const kept = await this.readAssumed(deviceId);
|
|
6824
|
-
if (kept.power === null && kept.
|
|
6826
|
+
if (kept.power === null && kept.source === null) return null;
|
|
6825
6827
|
const config = await this.deps.store.read(deviceId);
|
|
6826
6828
|
const assumedFields = [];
|
|
6827
6829
|
if (kept.power !== null) assumedFields.push("state");
|
|
6828
|
-
if (kept.muted !== null) assumedFields.push("isMuted");
|
|
6829
6830
|
if (kept.source !== null) assumedFields.push("source");
|
|
6830
6831
|
return this.buildStatus({
|
|
6831
6832
|
state: kept.power?.state ?? "standby",
|
|
6832
6833
|
assumedFields,
|
|
6833
|
-
muted:
|
|
6834
|
+
muted: null,
|
|
6834
6835
|
source: kept.source?.name ?? "",
|
|
6835
|
-
changedAt: Math.max(kept.power?.at ?? 0, kept.
|
|
6836
|
+
changedAt: Math.max(kept.power?.at ?? 0, kept.source?.at ?? 0),
|
|
6836
6837
|
sources: config.sources
|
|
6837
6838
|
});
|
|
6838
6839
|
};
|
|
@@ -6841,7 +6842,7 @@ var RemoteService = class {
|
|
|
6841
6842
|
* state. Power truth, in order: a `running-state` reading; the linked plug
|
|
6842
6843
|
* (off is `off`, a reading; on is `standby` until a power command was sent,
|
|
6843
6844
|
* then what the remote sent); the remote's own assumption. Mute comes from
|
|
6844
|
-
* the
|
|
6845
|
+
* the native reading only; the remote never assumes it.
|
|
6845
6846
|
*/
|
|
6846
6847
|
async assumedStatus(deviceId) {
|
|
6847
6848
|
return this.statusOf(deviceId, true);
|
|
@@ -6854,17 +6855,15 @@ var RemoteService = class {
|
|
|
6854
6855
|
const assumedFields = truth.assumed ? ["state"] : [];
|
|
6855
6856
|
const state = truth.state;
|
|
6856
6857
|
const changedAt = truth.at;
|
|
6857
|
-
const mute = state === "off" ? null : kept.muted ?? null;
|
|
6858
|
-
if (mute !== null) assumedFields.push("isMuted");
|
|
6859
6858
|
const source = state === "off" ? null : kept.source ?? null;
|
|
6860
6859
|
if (source !== null) assumedFields.push("source");
|
|
6861
6860
|
const config = await this.deps.store.read(deviceId);
|
|
6862
6861
|
return this.buildStatus({
|
|
6863
6862
|
state,
|
|
6864
6863
|
assumedFields,
|
|
6865
|
-
muted:
|
|
6864
|
+
muted: null,
|
|
6866
6865
|
source: source?.name ?? "",
|
|
6867
|
-
changedAt: Math.max(changedAt,
|
|
6866
|
+
changedAt: Math.max(changedAt, source?.at ?? 0),
|
|
6868
6867
|
sources: config.sources
|
|
6869
6868
|
});
|
|
6870
6869
|
}
|
|
@@ -6875,6 +6874,7 @@ var RemoteService = class {
|
|
|
6875
6874
|
assumedFields: [...input.assumedFields],
|
|
6876
6875
|
volumeLevel: null,
|
|
6877
6876
|
isMuted: input.muted,
|
|
6877
|
+
muteReadback: false,
|
|
6878
6878
|
source: input.source,
|
|
6879
6879
|
availableSources: input.sources.map((source) => source.name),
|
|
6880
6880
|
declaredSources: input.sources.map((source) => source.kind === "digits" ? {
|
|
@@ -6953,19 +6953,18 @@ var RemoteService = class {
|
|
|
6953
6953
|
};
|
|
6954
6954
|
return null;
|
|
6955
6955
|
}
|
|
6956
|
-
/** The mute as a native source
|
|
6956
|
+
/** The mute as a native source READS it, else unknown: a send is never a reading. */
|
|
6957
6957
|
async currentMute(deviceId) {
|
|
6958
6958
|
const reported = await this.deps.reportedStatus(deviceId);
|
|
6959
|
-
|
|
6960
|
-
return (await this.readAssumed(deviceId)).muted?.value ?? null;
|
|
6959
|
+
return reported !== null ? reported.isMuted : null;
|
|
6961
6960
|
}
|
|
6962
6961
|
async readAssumed(deviceId) {
|
|
6963
6962
|
return await this.deps.assumptions.read(deviceId) ?? EMPTY_REMOTE_ASSUMED_STATE;
|
|
6964
6963
|
}
|
|
6965
6964
|
/**
|
|
6966
|
-
* `setMute(muted)`: skipped when the mute is already
|
|
6967
|
-
* otherwise the mute code is sent ONCE
|
|
6968
|
-
*
|
|
6965
|
+
* `setMute(muted)`: skipped when a native reading says the mute is already
|
|
6966
|
+
* that value; otherwise the mute code is sent ONCE. Nothing is assumed from
|
|
6967
|
+
* the send: without a reading the key is momentary and has no state.
|
|
6969
6968
|
*/
|
|
6970
6969
|
async setMute(deviceId, config, role, muted) {
|
|
6971
6970
|
if (await this.currentMute(deviceId) === muted) {
|
|
@@ -6978,19 +6977,7 @@ var RemoteService = class {
|
|
|
6978
6977
|
reason: "already-in-state"
|
|
6979
6978
|
};
|
|
6980
6979
|
}
|
|
6981
|
-
|
|
6982
|
-
if (result.status === "sent") {
|
|
6983
|
-
const kept = await this.readAssumed(deviceId);
|
|
6984
|
-
await this.deps.assumptions.write(deviceId, {
|
|
6985
|
-
...kept,
|
|
6986
|
-
muted: {
|
|
6987
|
-
value: muted,
|
|
6988
|
-
at: this.now()
|
|
6989
|
-
}
|
|
6990
|
-
});
|
|
6991
|
-
await this.refreshSlice(deviceId);
|
|
6992
|
-
}
|
|
6993
|
-
return result;
|
|
6980
|
+
return this.run(deviceId, config, role, 1);
|
|
6994
6981
|
}
|
|
6995
6982
|
/**
|
|
6996
6983
|
* Runs `fn` after every earlier press of the device has finished. A press that
|
|
@@ -7299,8 +7286,7 @@ var RemoteService = class {
|
|
|
7299
7286
|
}
|
|
7300
7287
|
/**
|
|
7301
7288
|
* The assumption moves only after a send landed. A bare `power` flips a KNOWN
|
|
7302
|
-
* state
|
|
7303
|
-
* unknown (the press alone does not say which way it went).
|
|
7289
|
+
* state. A `mute` press moves nothing: the mute is never assumed.
|
|
7304
7290
|
*/
|
|
7305
7291
|
async moveAssumption(deviceId, role, wantsState) {
|
|
7306
7292
|
const kept = await this.readAssumed(deviceId);
|
|
@@ -7336,17 +7322,6 @@ var RemoteService = class {
|
|
|
7336
7322
|
});
|
|
7337
7323
|
return;
|
|
7338
7324
|
}
|
|
7339
|
-
if (role === "mute") {
|
|
7340
|
-
const before = await this.currentMute(deviceId);
|
|
7341
|
-
if (before === null) return;
|
|
7342
|
-
await this.deps.assumptions.write(deviceId, {
|
|
7343
|
-
...kept,
|
|
7344
|
-
muted: {
|
|
7345
|
-
value: !before,
|
|
7346
|
-
at: this.now()
|
|
7347
|
-
}
|
|
7348
|
-
});
|
|
7349
|
-
}
|
|
7350
7325
|
}
|
|
7351
7326
|
};
|
|
7352
7327
|
//#endregion
|
|
@@ -9437,7 +9412,8 @@ var CoreBlocksAddon = class extends BaseAddon {
|
|
|
9437
9412
|
name: found.name,
|
|
9438
9413
|
online: found.online,
|
|
9439
9414
|
features: found.features,
|
|
9440
|
-
integration: manufacturerOf(found.metadata)
|
|
9415
|
+
integration: manufacturerOf(found.metadata),
|
|
9416
|
+
quantity: found.sourceInfo?.quantity ?? null
|
|
9441
9417
|
};
|
|
9442
9418
|
},
|
|
9443
9419
|
caps: async (deviceId) => (await requireApi().deviceManager.getBindings.query({ deviceId })).entries.map((e) => e.capName),
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* says "not answered", never "off" (D315/D393). The remote's saved command
|
|
9
9
|
* count comes from the remote cap and is `null` when it cannot be asked.
|
|
10
10
|
*/
|
|
11
|
-
import { type IHeroLayoutProvider, type IScopedLogger } from "@camstack/types";
|
|
11
|
+
import { type IHeroLayoutProvider, type IScopedLogger, type ReadingQuantity } from "@camstack/types";
|
|
12
12
|
/** What the registry says about the device. */
|
|
13
13
|
export interface HeroDeviceFacts {
|
|
14
14
|
readonly type: string;
|
|
@@ -18,6 +18,8 @@ export interface HeroDeviceFacts {
|
|
|
18
18
|
readonly features: readonly string[];
|
|
19
19
|
/** The brand or integration name the device comes from, when it is known. */
|
|
20
20
|
readonly integration?: string | null;
|
|
21
|
+
/** What a numeric-sensor measures, as stored at adopt. */
|
|
22
|
+
readonly quantity?: ReadingQuantity | null;
|
|
21
23
|
}
|
|
22
24
|
/** The reads the service needs; the addon wires them to `ctx.api`. */
|
|
23
25
|
export interface HeroLayoutReader {
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
* only AFTER a send succeeded, is persisted per device and never recorded
|
|
21
21
|
* in history. A toggle power code is sent only when the current state
|
|
22
22
|
* differs from the requested one; a discrete pair is always sent. A mute on
|
|
23
|
-
* a device that does not report it is sent
|
|
23
|
+
* a device that does not report it is a momentary key: sent every time, and
|
|
24
|
+
* no mute state is kept or shown (only a native READING of it is a state).
|
|
24
25
|
* - **Sources are declared** (planning#460). `availableSources` is the
|
|
25
26
|
* operator's declared sources, never the custom buttons. A source runs its
|
|
26
27
|
* steps in order under the device's lock (no other press interleaves),
|
|
@@ -125,8 +126,8 @@ export declare class RemoteService implements IRemoteProvider {
|
|
|
125
126
|
*/
|
|
126
127
|
onInputChanged(deviceId: number): Promise<void>;
|
|
127
128
|
/**
|
|
128
|
-
* What the remote ASSUMES (the last power and
|
|
129
|
-
* knows neither. No plug, no running-state: that is `assumedStatus`.
|
|
129
|
+
* What the remote ASSUMES (the last power and source it sent), or null when it
|
|
130
|
+
* knows neither. A mute is never assumed: without a reading it has no state. No plug, no running-state: that is `assumedStatus`.
|
|
130
131
|
*/
|
|
131
132
|
readonly getAssumedStatus: IRemoteProvider["getAssumedStatus"];
|
|
132
133
|
/**
|
|
@@ -134,7 +135,7 @@ export declare class RemoteService implements IRemoteProvider {
|
|
|
134
135
|
* state. Power truth, in order: a `running-state` reading; the linked plug
|
|
135
136
|
* (off is `off`, a reading; on is `standby` until a power command was sent,
|
|
136
137
|
* then what the remote sent); the remote's own assumption. Mute comes from
|
|
137
|
-
* the
|
|
138
|
+
* the native reading only; the remote never assumes it.
|
|
138
139
|
*/
|
|
139
140
|
assumedStatus(deviceId: number): Promise<MediaPlayerStatus | null>;
|
|
140
141
|
/** `forget`: whether a plug that is off drops the kept power guess (a read's side effect). */
|
|
@@ -152,13 +153,13 @@ export declare class RemoteService implements IRemoteProvider {
|
|
|
152
153
|
* remote's own assumption; a plug on with nothing sent is `standby`.
|
|
153
154
|
*/
|
|
154
155
|
private powerTruth;
|
|
155
|
-
/** The mute as a native source
|
|
156
|
+
/** The mute as a native source READS it, else unknown: a send is never a reading. */
|
|
156
157
|
private currentMute;
|
|
157
158
|
private readAssumed;
|
|
158
159
|
/**
|
|
159
|
-
* `setMute(muted)`: skipped when the mute is already
|
|
160
|
-
* otherwise the mute code is sent ONCE
|
|
161
|
-
*
|
|
160
|
+
* `setMute(muted)`: skipped when a native reading says the mute is already
|
|
161
|
+
* that value; otherwise the mute code is sent ONCE. Nothing is assumed from
|
|
162
|
+
* the send: without a reading the key is momentary and has no state.
|
|
162
163
|
*/
|
|
163
164
|
private setMute;
|
|
164
165
|
/**
|
|
@@ -192,8 +193,7 @@ export declare class RemoteService implements IRemoteProvider {
|
|
|
192
193
|
private runRole;
|
|
193
194
|
/**
|
|
194
195
|
* The assumption moves only after a send landed. A bare `power` flips a KNOWN
|
|
195
|
-
* state
|
|
196
|
-
* unknown (the press alone does not say which way it went).
|
|
196
|
+
* state. A `mute` press moves nothing: the mute is never assumed.
|
|
197
197
|
*/
|
|
198
198
|
private moveAssumption;
|
|
199
199
|
}
|
|
@@ -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-BJBp-Cna.js");
|
|
7
|
+
const require_capture_engine = require("../../capture-engine-Cofev-f3.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 { An as armRemovalReconcile, Bc as emitReadiness, Fl as DeviceType, Fs as wattMillisecondsToKwh, Ir as deviceTransitionsCapability, Is as BaseAddon, Kc as historyUnitFor, Mr as deviceRemovalHookCapability, Nr as deviceRunsCapability, Rc as defineRecordKinds, Rl as EventCategory, U as DEVICE_HISTORY_ENERGY_KEY, Us as DeviceTransitionSchema, bt as HISTORY_CATALOG, el as isReadingQuantity, kr as deviceHistoryCapability, lc as RecordTooLargeError, nt as DeviceRunSchema, qs as InvalidRecordError, xt as HISTORY_ITEM_CATALOG } from "../../dist-BDIq20ng.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-CK9f9H7b.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,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-BJBp-Cna.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
|
-
const require_rename_composition_block = require("../../rename-composition-block-
|
|
9
|
+
const require_rename_composition_block = require("../../rename-composition-block-CMrV8Rou.js");
|
|
10
10
|
const require_prefix_range = require("../../prefix-range-D_KueXbQ.js");
|
|
11
11
|
const require_prefix_walk = require("../../prefix-walk-Dv6MLZlM.js");
|
|
12
12
|
const require_retired_settings_keys = require("../../retired-settings-keys-C8nOOr5H.js");
|
|
@@ -409,6 +409,30 @@ function buildSourceInfoFromConfig(persistedConfig, stableId, addonId) {
|
|
|
409
409
|
...uniqueId !== void 0 ? { uniqueId } : {}
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
|
+
/**
|
|
413
|
+
* The `SourceInfo` of a device the hub holds no live instance for: the identity
|
|
414
|
+
* {@link buildSourceInfoFromConfig} reads from the config, plus the display hints the
|
|
415
|
+
* provider stored once at adopt under `metadata.sourceInfo` (`quantity`, `dateTimeShape`).
|
|
416
|
+
* Without them a reading of quantity `device` (CPU load, a frequency) has no unit on the wire.
|
|
417
|
+
* Identity never comes from the stored blob: the config is the dispatch key.
|
|
418
|
+
*/
|
|
419
|
+
function projectSourceInfo(persistedConfig, stableId, addonId, metadata) {
|
|
420
|
+
const identity = buildSourceInfoFromConfig(persistedConfig, stableId, addonId);
|
|
421
|
+
const stored = require_dist.extractSourceInfoFromMetadata(metadata);
|
|
422
|
+
const hints = {
|
|
423
|
+
...stored?.quantity !== void 0 ? { quantity: stored.quantity } : {},
|
|
424
|
+
...stored?.dateTimeShape !== void 0 ? { dateTimeShape: stored.dateTimeShape } : {}
|
|
425
|
+
};
|
|
426
|
+
if (Object.keys(hints).length === 0) return identity;
|
|
427
|
+
return identity === void 0 ? {
|
|
428
|
+
id: stableId,
|
|
429
|
+
system: addonId,
|
|
430
|
+
...hints
|
|
431
|
+
} : {
|
|
432
|
+
...identity,
|
|
433
|
+
...hints
|
|
434
|
+
};
|
|
435
|
+
}
|
|
412
436
|
var DEVICE_ROLE_VALUES = new Set(Object.values(require_dist.DeviceRole));
|
|
413
437
|
/** Type guard: a string is a known `DeviceRole` enum member. */
|
|
414
438
|
function isDeviceRole(value) {
|
|
@@ -3043,7 +3067,7 @@ async function listAll(pctx, input) {
|
|
|
3043
3067
|
...m.display !== void 0 ? { display: m.display } : {},
|
|
3044
3068
|
...(() => {
|
|
3045
3069
|
if (slim) return {};
|
|
3046
|
-
const si =
|
|
3070
|
+
const si = projectSourceInfo(persistedConfig ?? {}, stableId, aid, metadata);
|
|
3047
3071
|
return si !== void 0 ? { sourceInfo: si } : {};
|
|
3048
3072
|
})()
|
|
3049
3073
|
});
|
|
@@ -3064,7 +3088,7 @@ async function getDevice(pctx, input) {
|
|
|
3064
3088
|
const { meta: m, metadata } = row;
|
|
3065
3089
|
const { addonId: aid, stableId } = m;
|
|
3066
3090
|
const persistedConfig = await pctx.settings.readDeviceStore(m.id);
|
|
3067
|
-
const sourceInfoGetDevice =
|
|
3091
|
+
const sourceInfoGetDevice = projectSourceInfo(persistedConfig ?? {}, stableId, aid, metadata);
|
|
3068
3092
|
return {
|
|
3069
3093
|
id: deviceId,
|
|
3070
3094
|
stableId,
|
|
@@ -3147,7 +3171,7 @@ function projectChildren(pctx, parentDeviceId, ownerAddonId, childRows, liveChil
|
|
|
3147
3171
|
if (seen.has(key)) continue;
|
|
3148
3172
|
const persistedConfig = configs.get(m.id) ?? {};
|
|
3149
3173
|
const metadata = row.metadata;
|
|
3150
|
-
const sourceInfoChild =
|
|
3174
|
+
const sourceInfoChild = projectSourceInfo(persistedConfig, childStableId, ownerAddonId, metadata);
|
|
3151
3175
|
results.push({
|
|
3152
3176
|
id: m.id,
|
|
3153
3177
|
stableId: childStableId,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $c as isKeychainStoredField, Ac as collectZodSecretPaths$1, Ar as deviceManagerCapability, Cr as defineExtensionSlotProvider, Dl as transformSecretWrite, El as toSecretFieldView, Fl as DeviceType$1, Fr as deviceStatusCapability, Hc as expandCapMethods$1, Hn as buildStreamParamsConfigSchema, Il as errMsg$1, Is as BaseAddon, J as DEVICE_TEMPLATE_FILTERS, Jc as isCommand$1, Kn as canonicalIconKey, Ni as legacyAutoLinkIds, Nl as DeviceFeature, Nt as MINUTES_PER_DAY, Ol as userError, Or as deviceExtensionCapability, Pl as DeviceRole, Pr as deviceStateCapability, Q as DEVICE_TEMPLATE_VALUES_CAP, Rc as defineRecordKinds, Ri as locationIconKey, Rl as EventCategory$1, Rr as enumerateItemArrayFields, S as CAP_NAMES_WITH_STATUS, Tc as auditedFields, Ti as isKernelDerivedFeature, Wr as expandContainer, X as DEVICE_TEMPLATE_MAX_OUTPUT, Xc as isDeviceConfigCap, Xn as checkDeviceAlias, Y as DEVICE_TEMPLATE_MAX_LENGTH, _t as FieldClaimModeSchema, aa as normalizeUnit, ao as runtimeStatePolicyFor, at as DiscoveryProposalBodySchema, b as CAMERA_SWITCH_ORDER, fa as parseStreamParamsFormPatch, fc as SECRET_CLEAR, fo as settleDeviceFeatures, gr as createDeviceExtensionProvider, il as isSecretMarkerLike, in as STREAM_PROFILE_META, io as runtimeFieldUnit, it as DeviceTombstoneSchema, j as ConditionMirror, ja as reconcileReportedFeatures, jc as commandEffect, jr as deviceOffersActions, kl as vocabActionIdFor, ls as canonicalStoredDeviceType, lt as ExportNameRefusedError, oi as generateDeviceAlias, qr as extractSourceInfoFromMetadata, ri as formatMinutes, rl as isSecretMarker, rt as DeviceStatusSchema, s as ALL_CAPABILITY_DEFINITIONS, tl as isSecretClear, to as resolveTemplateRef, us as capAppliesToDeviceKind, vc as WELL_KNOWN_TAB_MAP, vl as resolveSecretMarkers, vo as siteZoneKey, vt as FieldClaimSchema, wl as sleep$2, ws as implementedMethodsOf$1, xl as secretTreeFromPaths, z as DAY_NAMES, zr as enumerateSchemaFields } from "../../dist-BDIq20ng.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
|
-
import { n as renameCompositionBlock, t as composedBlockIdOf } from "../../rename-composition-block-
|
|
4
|
+
import { n as renameCompositionBlock, t as composedBlockIdOf } from "../../rename-composition-block-BgjpGf0d.mjs";
|
|
5
5
|
import { t as prefixRange } from "../../prefix-range-Dl0znowN.mjs";
|
|
6
6
|
import { t as loadPrefixed } from "../../prefix-walk-DAOBSyH1.mjs";
|
|
7
7
|
import { n as purgeRetiredSettingsRows } from "../../retired-settings-keys-u6xQA6r7.mjs";
|
|
@@ -403,6 +403,30 @@ function buildSourceInfoFromConfig(persistedConfig, stableId, addonId) {
|
|
|
403
403
|
...uniqueId !== void 0 ? { uniqueId } : {}
|
|
404
404
|
};
|
|
405
405
|
}
|
|
406
|
+
/**
|
|
407
|
+
* The `SourceInfo` of a device the hub holds no live instance for: the identity
|
|
408
|
+
* {@link buildSourceInfoFromConfig} reads from the config, plus the display hints the
|
|
409
|
+
* provider stored once at adopt under `metadata.sourceInfo` (`quantity`, `dateTimeShape`).
|
|
410
|
+
* Without them a reading of quantity `device` (CPU load, a frequency) has no unit on the wire.
|
|
411
|
+
* Identity never comes from the stored blob: the config is the dispatch key.
|
|
412
|
+
*/
|
|
413
|
+
function projectSourceInfo(persistedConfig, stableId, addonId, metadata) {
|
|
414
|
+
const identity = buildSourceInfoFromConfig(persistedConfig, stableId, addonId);
|
|
415
|
+
const stored = extractSourceInfoFromMetadata(metadata);
|
|
416
|
+
const hints = {
|
|
417
|
+
...stored?.quantity !== void 0 ? { quantity: stored.quantity } : {},
|
|
418
|
+
...stored?.dateTimeShape !== void 0 ? { dateTimeShape: stored.dateTimeShape } : {}
|
|
419
|
+
};
|
|
420
|
+
if (Object.keys(hints).length === 0) return identity;
|
|
421
|
+
return identity === void 0 ? {
|
|
422
|
+
id: stableId,
|
|
423
|
+
system: addonId,
|
|
424
|
+
...hints
|
|
425
|
+
} : {
|
|
426
|
+
...identity,
|
|
427
|
+
...hints
|
|
428
|
+
};
|
|
429
|
+
}
|
|
406
430
|
var DEVICE_ROLE_VALUES = new Set(Object.values(DeviceRole));
|
|
407
431
|
/** Type guard: a string is a known `DeviceRole` enum member. */
|
|
408
432
|
function isDeviceRole(value) {
|
|
@@ -3037,7 +3061,7 @@ async function listAll(pctx, input) {
|
|
|
3037
3061
|
...m.display !== void 0 ? { display: m.display } : {},
|
|
3038
3062
|
...(() => {
|
|
3039
3063
|
if (slim) return {};
|
|
3040
|
-
const si =
|
|
3064
|
+
const si = projectSourceInfo(persistedConfig ?? {}, stableId, aid, metadata);
|
|
3041
3065
|
return si !== void 0 ? { sourceInfo: si } : {};
|
|
3042
3066
|
})()
|
|
3043
3067
|
});
|
|
@@ -3058,7 +3082,7 @@ async function getDevice(pctx, input) {
|
|
|
3058
3082
|
const { meta: m, metadata } = row;
|
|
3059
3083
|
const { addonId: aid, stableId } = m;
|
|
3060
3084
|
const persistedConfig = await pctx.settings.readDeviceStore(m.id);
|
|
3061
|
-
const sourceInfoGetDevice =
|
|
3085
|
+
const sourceInfoGetDevice = projectSourceInfo(persistedConfig ?? {}, stableId, aid, metadata);
|
|
3062
3086
|
return {
|
|
3063
3087
|
id: deviceId,
|
|
3064
3088
|
stableId,
|
|
@@ -3141,7 +3165,7 @@ function projectChildren(pctx, parentDeviceId, ownerAddonId, childRows, liveChil
|
|
|
3141
3165
|
if (seen.has(key)) continue;
|
|
3142
3166
|
const persistedConfig = configs.get(m.id) ?? {};
|
|
3143
3167
|
const metadata = row.metadata;
|
|
3144
|
-
const sourceInfoChild =
|
|
3168
|
+
const sourceInfoChild = projectSourceInfo(persistedConfig, childStableId, ownerAddonId, metadata);
|
|
3145
3169
|
results.push({
|
|
3146
3170
|
id: m.id,
|
|
3147
3171
|
stableId: childStableId,
|
|
@@ -65,6 +65,14 @@ export declare function persistedIsCamera(type: string | undefined): boolean;
|
|
|
65
65
|
* config blob) — the hub synthetic fallback applies in that case.
|
|
66
66
|
*/
|
|
67
67
|
export declare function buildSourceInfoFromConfig(persistedConfig: Record<string, unknown>, stableId: string, addonId: string): SourceInfo | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* The `SourceInfo` of a device the hub holds no live instance for: the identity
|
|
70
|
+
* {@link buildSourceInfoFromConfig} reads from the config, plus the display hints the
|
|
71
|
+
* provider stored once at adopt under `metadata.sourceInfo` (`quantity`, `dateTimeShape`).
|
|
72
|
+
* Without them a reading of quantity `device` (CPU load, a frequency) has no unit on the wire.
|
|
73
|
+
* Identity never comes from the stored blob: the config is the dispatch key.
|
|
74
|
+
*/
|
|
75
|
+
export declare function projectSourceInfo(persistedConfig: Record<string, unknown>, stableId: string, addonId: string, metadata: Record<string, unknown> | null | undefined): SourceInfo | undefined;
|
|
68
76
|
/** Type guard: a string is a known `DeviceRole` enum member. */
|
|
69
77
|
export declare function isDeviceRole(value: string): value is DeviceRole;
|
|
70
78
|
/** Narrow a persisted role string (sqlite TEXT column) to a `DeviceRole`.
|
|
@@ -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-BJBp-Cna.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 { Is as BaseAddon, Vi as logDestinationCapability } from "../../dist-BDIq20ng.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-BJBp-Cna.js");
|
|
7
|
+
const require_device_ca = require("../../device-ca-DfFm8dSR.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-Dm8DXrzQ.js");
|
|
10
|
+
const require_constants = require("../../constants-DzdeUhhD.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 { Dt as KEYCHAIN_RESET_TRIGGER_ACTOR, Is as BaseAddon, Mi as keychainCapability, Ot as KeychainAuditEntrySchema, Rc as defineRecordKinds, Rl as EventCategory, Uc as formatSecretScope, dl as normalizeSecretOwner, ji as keychainAdminCapability, kt as KeychainResetRecordSchema, ml as parseSecretRef } from "../../dist-BDIq20ng.mjs";
|
|
2
|
+
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-MvTMcE3C.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-CT9d6do5.mjs";
|
|
5
|
+
import { a as MESH_CA_KEY_REF } from "../../constants-BKiAEgH1.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-BJBp-Cna.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 { Gi as mayWriteToLocation, Il as errMsg, Is as BaseAddon, Nc as createEvent, Qt as RecordingStatusSchema, Rl as EventCategory, Yt as RECORDING_SOURCE_CAMSTACK_ADDON } from "../../dist-BDIq20ng.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-BJBp-Cna.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-DfFm8dSR.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 { Bn as buildDeviceSignatureMessage,
|
|
2
|
+
import { Bn as buildDeviceSignatureMessage, Bo as userManagementCapability, Bt as PREFERENCES_MAX_VALUE_BYTES, Dr as deviceCredentialsCapability, G as DEVICE_NONCE_TTL_MS, Gt as PreferenceDeviceIdSchema, H as DEVICE_ENROLLMENT_TTL_MS, Is as BaseAddon, Kt as PreferenceNamespaceSchema, Mn as authProviderCapability, O as CREDENTIAL_TOKEN_AUDIENCE, Ol as userError, P as CredentialTokenClaimsSchema, Rc as defineRecordKinds, Si as isCredentialTokenPayload, gn as TokenScopeSchema, ni as formatDeviceRevoker, ol as makeSecretMarker, qt as PreferenceValueSchema, rl as isSecretMarker, sn as ScopedTokenSchema, un as SsoBridgeClaimsSchema, vn as UserRecordSchema, zn as buildDeviceEnrollmentLink } from "../../dist-BDIq20ng.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-MvTMcE3C.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,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-BJBp-Cna.js");
|
|
4
4
|
const require_dns_wire = require("../../dns-wire-B1BvF9Ao.js");
|
|
5
|
-
const require_hub_identity = require("../../hub-identity-
|
|
6
|
-
const require_hub_mdns_ciao = require("../../hub-mdns-ciao-
|
|
5
|
+
const require_hub_identity = require("../../hub-identity-DZw5bjVe.js");
|
|
6
|
+
const require_hub_mdns_ciao = require("../../hub-mdns-ciao-Cn4CZvKD.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let node_net = require("node:net");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ci as isDefaultAppConnectionEndpoint, Ct as HUB_MDNS_TXT_KEYS, Fc as defineAddonMigrations, Ha as resolveAppConnections, Ho as validateCustomAddress, Il as errMsg, Is as BaseAddon, Li as localNetworkCapability, Rl as EventCategory, Rt as NetworkTunnelStartedDataSchema, St as HUB_MDNS_SERVICE_TYPE, Za as resolveNotificationTapAddress, Zn as checkRoleAddress, go as shortHostname, ha as pickAppLinkHub, qa as resolveHubAddressRoles, vi as isAppLinkBase, x as CAMSTACK_APP_LINK_ORIGIN, xa as preconditionOf } from "../../dist-BDIq20ng.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 { i as loadOrCreateHubId, r as isAnnouncedHubId } from "../../hub-identity-
|
|
4
|
-
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 { i as loadOrCreateHubId, r as isAnnouncedHubId } from "../../hub-identity-DErvD_Y9.mjs";
|
|
4
|
+
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-DBtitWew.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { isIP } from "node:net";
|
|
7
7
|
import { readFileSync } from "node:fs";
|
|
@@ -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-BJBp-Cna.js");
|
|
7
7
|
const require_log_read_filter = require("../../log-read-filter-Bi066jwU.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
//#region src/builtins/loki-logging/loki-payload.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fc as defineAddonMigrations, Is as BaseAddon, Lc as defineEntryKind, Oi as isSameAddonId, Pn as bareAddonId, Qc as isInstanceEnabled, Vi as logDestinationCapability, dc as RevConflictError, fi as integrationInstancesCapability, nl as isSecretFieldView, oc as RecordIntegrationInstances, rl as isSecretMarker, xa as preconditionOf } from "../../dist-BDIq20ng.mjs";
|
|
2
2
|
import { n as compileLogFilter, o as lineMatches } from "../../log-read-filter-D7Ev3zm-.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/builtins/loki-logging/loki-payload.ts
|