@camstack/server 1.2.813 → 1.2.814
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/package.json +8 -9
- package/system/dist/{agent-https-D9QbrCJe.js → agent-https-Dwbpz4K6.js} +1 -1
- package/system/dist/{agent-https-D9rppK7L.mjs → agent-https-eMihTWJ4.mjs} +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 +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +3 -3
- package/system/dist/builtins/composer/composer.addon.mjs +3 -3
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +126 -9
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +126 -9
- package/system/dist/builtins/core-blocks/remote-service.d.ts +3 -0
- package/system/dist/builtins/core-blocks/timed-run/timed-run-service.d.ts +7 -0
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +1 -1
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/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 +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-BI6Z09IS.mjs → capture-engine-CYPDOIF6.mjs} +1 -1
- package/system/dist/{capture-engine-Ba49uIhh.js → capture-engine-uxR5sOQN.js} +1 -1
- package/system/dist/{composition-sources-BYhi_QpF.mjs → composition-sources-CU3p3INI.mjs} +1 -1
- package/system/dist/{composition-sources-zbe-WMDR.js → composition-sources-DkvntZci.js} +1 -1
- package/system/dist/{constants-Cz0UABmc.js → constants-BP-Txn_J.js} +1 -1
- package/system/dist/{constants-ZS2PeV26.mjs → constants-DMFJ6Fky.mjs} +1 -1
- package/system/dist/{device-ca-BR52z--E.js → device-ca-D-0zxmFi.js} +1 -1
- package/system/dist/{device-ca-B0vxd075.mjs → device-ca-tmcd_VBC.mjs} +1 -1
- package/system/dist/{dist-Cjomt5bM.js → dist-CznnwtQ8.js} +230 -48
- package/system/dist/{dist-fY4FYIt2.mjs → dist-DmCVWvtK.mjs} +219 -43
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-CYUWFhn7.mjs → hub-mdns-ciao-DbwyiHD5.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-BIyx3H2u.js → hub-mdns-ciao-FTf16-JR.js} +2 -2
- package/system/dist/index.js +8 -8
- package/system/dist/index.mjs +8 -8
- package/system/dist/{legacy-integration-rows-door-is18rCsc.mjs → legacy-integration-rows-door-CASQgifG.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-CoUG5oxu.js → legacy-integration-rows-door-gW0xpMJI.js} +1 -1
- package/system/dist/{restore-archive-ScKSg4cI.js → restore-archive-B9TEFWRE.js} +1 -1
- package/system/dist/{restore-archive-Ce8tTRv4.mjs → restore-archive-DlaC_gyl.mjs} +1 -1
- package/system/dist/{wal-maintenance-gY_QtcBe.mjs → wal-maintenance-Cn164tp0.mjs} +0 -0
- package/system/dist/{wal-maintenance-oyAWwOGI.js → wal-maintenance-Da2Rozz6.js} +0 -0
- package/system/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as EMPTY_AUTOMATION_STATE, $a as templateCapability, $n as
|
|
1
|
+
import { $ as EMPTY_AUTOMATION_STATE, $a as templateCapability, $n as coreBlocksCapability, $o as BaseAddon, $s as defineEntryKind, A as ControlStatusSchema, Ai as nextOccurrence, An as buildHeroModel, Ao as composedDeviceRef, Bo as helperMembers, C as CORE_BLOCKS_ADDON_ID, Cs as RecordIntegrationInstances, Dn as buildCapabilityLookup, Ea as runSteps, En as buildActionSteps, Eo as HelperMemberSchema, Et as MediaPlayerStatusSchema, Fn as capUnitResolver, Fo as compositionSourceKey, Fr as findChannelSource, Fs as actionEffect, Ft as PowerSourceInfoSchema, Gr as internalActionId, Gs as collectSecretMarkerRefs, Gt as RunningStateStatusSchema, Ha as stableIdMapOf, Hc as transformSecretWrite, J as DeclaredDevices, Jc as DeviceType$1, Ji as powerSourceCapability, Js as commandOrigin, Ki as planComposition, Lc as secretTreeFromSchema, Ma as seedInstanceOnce, Mi as normalizeCapStep, Mr as fanPresetsCapability, Ni as normalizeCoreBlockWrite, O as ConditionMirror, Oa as schedulersCapability, Pc as resolveSecretMarkers, Pi as normalizeStepTargets, Qn as coreBlockSourceKind, R as DEFAULT_HOLD_OVERRIDE, Ra as siteFor, Ri as occurrenceOn, S as COMPOSER_RUNNER_ID, Sa as resolveRemoteSource, Tr as evaluateWhenTree, Ur as heroLayoutCapability, Vn as collectWhenMirrorSources, Vo as historyRetentionFromSettings, Vt as REMOTE_MEDIA_COMMANDS, Wc as vocabActionIdFor, Wn as compileScalarOverride, Wr as integrationInstancesCapability, Wt as RemoteAssumedStateSchema, Xn as coreBlockComposition, Xt as SchedulerSchema, Yc as errMsg$1, Yi as powerSourceLinkOfComposition, Yn as coreBlockAddonId, Yt as SchedulerError, Zc as EventCategory$1, Zi as problemsBlockSave, Zn as coreBlockIdFromAddonId, Zs as defineAddonMigrations, ai as kebabToCamel, an as TemplateKindSchema, ao as toTimings, bo as CompositionSchema, c as ActionError, ca as remoteLayoutComponentsCapability, co as validateComposition, d as ActionVariableSchema, da as resolveActionVariables, di as localDateOf, dn as actionsCapability, ea as projectDeviceRow, ec as defineRecordKinds, ei as isInternalActionId, eo as timedRunCapability, et as EMPTY_REMOTE_ASSUMED_STATE, fn as addonIdOfActionId, ga as resolveHeroLayout, gt as INTERNAL_ACTION_PREFIX, ha as resolveCoreBlockFiles, hi as lockDoorLinkOfComposition, ho as weekdayOfLocalDate, ht as IDLE_ACTION_STATUS, in as SwitchStatusSchema, io as timedRunSeconds, it as FanControlStatusSchema, j as CoreBlockSchema, ji as normalizeActionUnits, l as ActionStepSchema, la as remoteSourceSteps, lc as hydrateSchema, ln as actionSourceCapability, m as BUILTIN_REMOTE_COMPONENTS, ma as resolveCoreBlockEntry, n as ACTION_TARGET_INVALIDATION_EVENTS, no as timedRunMaxIn, nr as customKeyOfRole, nt as FAN_CAPTURE_FIELDS, ot as FanPresetSchema, p as AutomationStateDocSchema, qn as compositionSourceRefs, ra as readStoredRemoteConfig, rc as entryBody, ro as timedRunQuickRun, s as ALL_CAPABILITY_DEFINITIONS, sa as remoteCapability, ta as proposeRunningThreshold, to as timedRunLimitOf, tt as EMPTY_REMOTE_CONFIG, u as ActionTargetResolver, ua as replacedFieldKeys, un as actionWaitTotalMs, uo as validateSchedulerInput, ur as describeComposableCaps, vo as zoneOnlySite, w as CORE_BLOCK_ADDON_PREFIX, wa as resolveStepArgs, xc as isSecretRefOwnedBy, xo as DAY_MS, yc as isSecretMarker, yn as appendTrace, zn as checkTemplatePayload, zt as QuantityUnitError } from "../../dist-DmCVWvtK.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-CU3p3INI.mjs";
|
|
4
|
+
import { i as capSeriesKey } from "../../capture-engine-CYPDOIF6.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";
|
|
@@ -3772,7 +3772,27 @@ var TimedRunService = class {
|
|
|
3772
3772
|
activeUntil: body.activeUntil
|
|
3773
3773
|
};
|
|
3774
3774
|
};
|
|
3775
|
+
/**
|
|
3776
|
+
* Stop a run: the device this run switched on is switched OFF, once, and the
|
|
3777
|
+
* deadline is forgotten. Nothing armed means nothing to stop - no command is sent.
|
|
3778
|
+
* D49: the off is a one-shot; a failure is logged with the device tag, not retried,
|
|
3779
|
+
* and the row is dropped either way.
|
|
3780
|
+
*/
|
|
3775
3781
|
cancel = async ({ deviceId }) => {
|
|
3782
|
+
const armed = this.pending.get(deviceId);
|
|
3783
|
+
if (armed === void 0) {
|
|
3784
|
+
await this.forget(deviceId);
|
|
3785
|
+
return;
|
|
3786
|
+
}
|
|
3787
|
+
this.deps.logger.info("timed-run: stopped by request, switching the device off", { tags: { deviceId } });
|
|
3788
|
+
try {
|
|
3789
|
+
await this.deps.actuation.set(deviceId, armed.actuator, false);
|
|
3790
|
+
} catch (error) {
|
|
3791
|
+
this.deps.logger.warn("timed-run: the stop did not reach the device; not retrying", {
|
|
3792
|
+
tags: { deviceId },
|
|
3793
|
+
meta: { error: String(error) }
|
|
3794
|
+
});
|
|
3795
|
+
}
|
|
3776
3796
|
await this.forget(deviceId);
|
|
3777
3797
|
};
|
|
3778
3798
|
/** Feed one `DeviceStateChanged`: a manual off cancels the pending deadline. */
|
|
@@ -5741,6 +5761,46 @@ function remoteCallRedirect(deps) {
|
|
|
5741
5761
|
}
|
|
5742
5762
|
};
|
|
5743
5763
|
}
|
|
5764
|
+
//#endregion
|
|
5765
|
+
//#region src/builtins/core-blocks/remote-service.ts
|
|
5766
|
+
/**
|
|
5767
|
+
* The `remote` cap (D963, D964): a button panel over a media-player device. It
|
|
5768
|
+
* keeps the per-device configuration (layout template, role bindings, custom
|
|
5769
|
+
* buttons, power mode) in the device's settings store and runs a bound ROLE by
|
|
5770
|
+
* calling the action it is bound to — the shape an Action step has, so an
|
|
5771
|
+
* infrared code and a smart-TV call are the same thing here.
|
|
5772
|
+
*
|
|
5773
|
+
* Decisions that shape this file:
|
|
5774
|
+
* - **What a button does is the action's business.** This service never
|
|
5775
|
+
* knows what an infrared code is; it invokes a cap method on a device.
|
|
5776
|
+
* - **`repeat` is the caller's** (volume ×5), never stored. It is N FULL
|
|
5777
|
+
* sends, `REMOTE_REPEAT_GAP_MS` apart (the SmartIR / Home Assistant model: no
|
|
5778
|
+
* protocol repeat frame, the caller re-sends). A failing send stops the row
|
|
5779
|
+
* and reports the cause; it is never swallowed.
|
|
5780
|
+
* - **Power truth** (`assumedStatus`): a `running-state` reading wins; else the
|
|
5781
|
+
* linked plug — off is `off` (a reading), on is `standby` (assumed) until a
|
|
5782
|
+
* power command is sent, then what the remote sent.
|
|
5783
|
+
* - **State is read from the running-state cap if the device has one, else
|
|
5784
|
+
* from a native media-player reading, else assumed.** An assumption moves
|
|
5785
|
+
* only AFTER a send succeeded, is persisted per device and never recorded
|
|
5786
|
+
* in history. A toggle power code is sent only when the current state
|
|
5787
|
+
* differs from the requested one; a discrete pair is always sent. A mute on
|
|
5788
|
+
* a device that does not report it is sent and marked assumed.
|
|
5789
|
+
* - **Sources are declared** (planning#460). `availableSources` is the
|
|
5790
|
+
* operator's declared sources, never the custom buttons. A source runs its
|
|
5791
|
+
* steps in order under the device's lock (no other press interleaves),
|
|
5792
|
+
* `stepDelayMs` apart; a refusal is typed (`unknown-source`,
|
|
5793
|
+
* `unbound-step`, `undeclared-channel`) and a failed step stops the
|
|
5794
|
+
* sequence and names itself. The source last sent is ASSUMED, and forgotten
|
|
5795
|
+
* when the device is switched off, when the plug reads off and when a
|
|
5796
|
+
* channel step moves the channel.
|
|
5797
|
+
* - **Precedence** (`sendMediaCommand`): a media-player command takes the
|
|
5798
|
+
* remote when its role is bound, else answers `not-routed` so the native
|
|
5799
|
+
* cap runs. The dispatch redirect asks this for every caller.
|
|
5800
|
+
*/
|
|
5801
|
+
/** The cap and method an infrared source's code goes out through. */
|
|
5802
|
+
var IR_TRANSMITTER_CAP = "ir-transmitter";
|
|
5803
|
+
var IR_SEND_METHOD = "send";
|
|
5744
5804
|
var realSleep = (ms) => new Promise((resolve) => {
|
|
5745
5805
|
setTimeout(resolve, ms);
|
|
5746
5806
|
});
|
|
@@ -6148,8 +6208,10 @@ var RemoteService = class {
|
|
|
6148
6208
|
* Presses a source's steps in order, one lock for the whole sequence,
|
|
6149
6209
|
* `stepDelayMs` apart. Every step is checked bound BEFORE the first press, so
|
|
6150
6210
|
* a half-bound source sends nothing. A step that fails stops the sequence.
|
|
6211
|
+
* An `ir` source presses nothing: its own code goes out once (planning#464).
|
|
6151
6212
|
*/
|
|
6152
6213
|
async runSource(deviceId, config, source) {
|
|
6214
|
+
if (source.kind === "ir") return this.runIrSource(deviceId, source);
|
|
6153
6215
|
const steps = remoteSourceSteps(source);
|
|
6154
6216
|
const missing = steps.findIndex((role) => !this.isBound(config, role));
|
|
6155
6217
|
if (missing >= 0) {
|
|
@@ -6232,6 +6294,50 @@ var RemoteService = class {
|
|
|
6232
6294
|
};
|
|
6233
6295
|
});
|
|
6234
6296
|
}
|
|
6297
|
+
/** One train through the source's own transmitter; the source is remembered only after it landed. */
|
|
6298
|
+
async runIrSource(deviceId, source) {
|
|
6299
|
+
return this.withLock(deviceId, async () => {
|
|
6300
|
+
const { timings, settings } = toTimings(source.payload);
|
|
6301
|
+
try {
|
|
6302
|
+
await this.deps.invoke({
|
|
6303
|
+
deviceId: source.transmitterId,
|
|
6304
|
+
cap: IR_TRANSMITTER_CAP,
|
|
6305
|
+
method: IR_SEND_METHOD,
|
|
6306
|
+
args: {
|
|
6307
|
+
timings,
|
|
6308
|
+
settings
|
|
6309
|
+
}
|
|
6310
|
+
});
|
|
6311
|
+
} catch (err) {
|
|
6312
|
+
this.deps.logger.warn("remote: the infrared source failed to send, nothing was assumed", {
|
|
6313
|
+
tags: { deviceId },
|
|
6314
|
+
meta: {
|
|
6315
|
+
source: source.name,
|
|
6316
|
+
transmitterId: source.transmitterId,
|
|
6317
|
+
error: errorText(err)
|
|
6318
|
+
}
|
|
6319
|
+
});
|
|
6320
|
+
return {
|
|
6321
|
+
status: "refused",
|
|
6322
|
+
reason: "action-failed",
|
|
6323
|
+
detail: errorText(err)
|
|
6324
|
+
};
|
|
6325
|
+
}
|
|
6326
|
+
const kept = await this.readAssumed(deviceId);
|
|
6327
|
+
await this.deps.assumptions.write(deviceId, {
|
|
6328
|
+
...kept,
|
|
6329
|
+
source: {
|
|
6330
|
+
name: source.name,
|
|
6331
|
+
at: this.now()
|
|
6332
|
+
}
|
|
6333
|
+
});
|
|
6334
|
+
await this.refreshSlice(deviceId);
|
|
6335
|
+
return {
|
|
6336
|
+
status: "sent",
|
|
6337
|
+
sends: 1
|
|
6338
|
+
};
|
|
6339
|
+
});
|
|
6340
|
+
}
|
|
6235
6341
|
async forgetSource(deviceId) {
|
|
6236
6342
|
const kept = await this.readAssumed(deviceId);
|
|
6237
6343
|
if (kept.source !== null) await this.deps.assumptions.write(deviceId, {
|
|
@@ -6505,16 +6611,27 @@ function remoteConfigStoreOver(settings, logger) {
|
|
|
6505
6611
|
read: async (deviceId) => {
|
|
6506
6612
|
const raw = (await settings.readDeviceStore(deviceId))[REMOTE_STORE_KEY];
|
|
6507
6613
|
if (raw === void 0) return EMPTY_REMOTE_CONFIG;
|
|
6508
|
-
const parsed =
|
|
6509
|
-
if (parsed.success)
|
|
6614
|
+
const parsed = readStoredRemoteConfig(raw);
|
|
6615
|
+
if (parsed.success) {
|
|
6616
|
+
for (const refused of parsed.data.refusedSources ?? []) logger.warn("remote: a stored source no longer parses, it is left out of the remote", {
|
|
6617
|
+
tags: { deviceId },
|
|
6618
|
+
meta: {
|
|
6619
|
+
index: refused.index,
|
|
6620
|
+
sourceId: refused.id,
|
|
6621
|
+
reason: refused.reason
|
|
6622
|
+
}
|
|
6623
|
+
});
|
|
6624
|
+
return parsed.data;
|
|
6625
|
+
}
|
|
6510
6626
|
logger.warn("remote: a stored configuration no longer parses, the device reads as having none", {
|
|
6511
6627
|
tags: { deviceId },
|
|
6512
|
-
meta: { issues: parsed.
|
|
6628
|
+
meta: { issues: parsed.issues }
|
|
6513
6629
|
});
|
|
6514
6630
|
return EMPTY_REMOTE_CONFIG;
|
|
6515
6631
|
},
|
|
6516
6632
|
write: async (deviceId, config) => {
|
|
6517
|
-
|
|
6633
|
+
const { refusedSources: _report, ...stored } = config;
|
|
6634
|
+
await settings.writeDeviceStore(deviceId, { [REMOTE_STORE_KEY]: stored });
|
|
6518
6635
|
}
|
|
6519
6636
|
};
|
|
6520
6637
|
}
|
|
@@ -6583,7 +6700,7 @@ function templateUsageOver(settings, api) {
|
|
|
6583
6700
|
const rows = await settings.readDeviceStoreBatch(ids);
|
|
6584
6701
|
const users = [];
|
|
6585
6702
|
for (const [deviceId, row] of rows) {
|
|
6586
|
-
const parsed =
|
|
6703
|
+
const parsed = readStoredRemoteConfig(row[REMOTE_STORE_KEY]);
|
|
6587
6704
|
if (!parsed.success || parsed.data.layoutTemplateId !== templateId) continue;
|
|
6588
6705
|
const found = await api()?.deviceManager.getDevice.query({ deviceId });
|
|
6589
6706
|
users.push({
|
|
@@ -6639,7 +6756,7 @@ function remoteSliceWriterOver(settings, api) {
|
|
|
6639
6756
|
if (ids.length === 0) return [];
|
|
6640
6757
|
const rows = await settings.readDeviceStoreBatch(ids);
|
|
6641
6758
|
const carrying = [];
|
|
6642
|
-
for (const [deviceId, row] of rows) if (
|
|
6759
|
+
for (const [deviceId, row] of rows) if (readStoredRemoteConfig(row["remote"]).success) carrying.push(deviceId);
|
|
6643
6760
|
return carrying;
|
|
6644
6761
|
},
|
|
6645
6762
|
publish: async (deviceId, status) => {
|
|
@@ -179,8 +179,11 @@ export declare class RemoteService implements IRemoteProvider {
|
|
|
179
179
|
* Presses a source's steps in order, one lock for the whole sequence,
|
|
180
180
|
* `stepDelayMs` apart. Every step is checked bound BEFORE the first press, so
|
|
181
181
|
* a half-bound source sends nothing. A step that fails stops the sequence.
|
|
182
|
+
* An `ir` source presses nothing: its own code goes out once (planning#464).
|
|
182
183
|
*/
|
|
183
184
|
private runSource;
|
|
185
|
+
/** One train through the source's own transmitter; the source is remembered only after it landed. */
|
|
186
|
+
private runIrSource;
|
|
184
187
|
private forgetSource;
|
|
185
188
|
private runRole;
|
|
186
189
|
/**
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
*
|
|
16
16
|
* A manual off (the switch observed off, the pump observed stopped) cancels the
|
|
17
17
|
* pending deadline silently: the operator already did what the timer would do.
|
|
18
|
+
* An explicit `cancel` (Stop) is the opposite: it switches the device off too.
|
|
18
19
|
*/
|
|
19
20
|
import { DeviceType, type IScopedLogger, type ITimedRunProvider, type TimedRunActuator, type TimedRunStatus } from "@camstack/types";
|
|
20
21
|
import type { PowerSourceScheduler } from "../power-source-service.js";
|
|
@@ -81,6 +82,12 @@ export declare class TimedRunService implements ITimedRunProvider {
|
|
|
81
82
|
setSettings: ITimedRunProvider["setSettings"];
|
|
82
83
|
private limitOf;
|
|
83
84
|
runFor: ITimedRunProvider["runFor"];
|
|
85
|
+
/**
|
|
86
|
+
* Stop a run: the device this run switched on is switched OFF, once, and the
|
|
87
|
+
* deadline is forgotten. Nothing armed means nothing to stop - no command is sent.
|
|
88
|
+
* D49: the off is a one-shot; a failure is logged with the device tag, not retried,
|
|
89
|
+
* and the row is dropped either way.
|
|
90
|
+
*/
|
|
84
91
|
cancel: ITimedRunProvider["cancel"];
|
|
85
92
|
/** Feed one `DeviceStateChanged`: a manual off cancels the pending deadline. */
|
|
86
93
|
onDeviceState(state: ObservedDeviceState): Promise<void>;
|
|
@@ -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-CznnwtQ8.js");
|
|
7
|
+
const require_capture_engine = require("../../capture-engine-uxR5sOQN.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 { $o as BaseAddon, Es as RecordTooLargeError, Jc as DeviceType, Qo as wattMillisecondsToKwh, V as DEVICE_HISTORY_ENERGY_KEY, Y as DeviceRunSchema, Zc as EventCategory, _r as deviceRunsCapability, bn as armRemovalReconcile, br as deviceTransitionsCapability, cc as historyUnitFor, dt as HISTORY_ITEM_CATALOG, ec as defineRecordKinds, gc as isReadingQuantity, gr as deviceRemovalHookCapability, mr as deviceHistoryCapability, nc as emitReadiness, os as DeviceTransitionSchema, us as InvalidRecordError, ut as HISTORY_CATALOG } from "../../dist-DmCVWvtK.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-CYPDOIF6.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-CznnwtQ8.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");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $o as BaseAddon, Br as generateDeviceAlias, Cr as enumerateSchemaFields, Da as runtimeStatePolicyFor, Dr as expandContainer, Fi as normalizeUnit, Hc as transformSecretWrite, Hi as parseStreamParamsFormPatch, Ic as secretTreeFromPaths, Jc as DeviceType$1, Jt as STREAM_PROFILE_META, Kc as DeviceFeature, Ks as collectZodSecretPaths$1, L as DAY_NAMES, Ln as checkDeviceAlias, Pc as resolveSecretMarkers, Pn as canonicalIconKey, Ps as WELL_KNOWN_TAB_MAP, Q as DiscoveryProposalBodySchema, Rr as formatMinutes, Sr as enumerateItemArrayFields, Uc as userError, Vc as toSecretFieldView, Vs as auditedFields, X as DeviceStatusSchema, Yc as errMsg$1, Z as DeviceTombstoneSchema, Zc as EventCategory$1, _ as CAMERA_SWITCH_ORDER, _c as isSecretClear, bc as isSecretMarkerLike, ci as legacyAutoLinkIds, cr as defineExtensionSlotProvider, ct as FieldClaimSchema, ec as defineRecordKinds, fc as isDeviceConfigCap, hc as isKeychainStoredField, hr as deviceManagerCapability, ic as expandCapMethods$1, jn as buildStreamParamsConfigSchema, ks as SECRET_CLEAR, pi as locationIconKey, pr as deviceExtensionCapability, qc as DeviceRole, qs as commandEffect, s as ALL_CAPABILITY_DEFINITIONS, st as FieldClaimModeSchema, tr as createDeviceExtensionProvider, uc as isCommand$1, vr as deviceStateCapability, wt as MINUTES_PER_DAY, y as CAP_NAMES_WITH_STATUS, yc as isSecretMarker, yr as deviceStatusCapability, za as siteZoneKey, zc as sleep$2 } from "../../dist-DmCVWvtK.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";
|
|
@@ -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-CznnwtQ8.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 { $o as BaseAddon, gi as logDestinationCapability } from "../../dist-DmCVWvtK.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-CznnwtQ8.js");
|
|
7
|
+
const require_device_ca = require("../../device-ca-D-0zxmFi.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-gW0xpMJI.js");
|
|
10
|
+
const require_constants = require("../../constants-BP-Txn_J.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 { $o as BaseAddon, Ac as parseSecretRef, Dc as normalizeSecretOwner, Zc as EventCategory, _t as KEYCHAIN_RESET_TRIGGER_ACTOR, ac as formatSecretScope, ec as defineRecordKinds, oi as keychainAdminCapability, si as keychainCapability, vt as KeychainAuditEntrySchema, yt as KeychainResetRecordSchema } from "../../dist-DmCVWvtK.mjs";
|
|
2
|
+
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-tmcd_VBC.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-CASQgifG.mjs";
|
|
5
|
+
import { a as MESH_CA_KEY_REF } from "../../constants-DMFJ6Fky.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-CznnwtQ8.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 { $o as BaseAddon, Bt as RECORDING_SOURCE_CAMSTACK_ADDON, Ut as RecordingStatusSchema, Yc as errMsg, Ys as createEvent, Zc as EventCategory, bi as mayWriteToLocation } from "../../dist-DmCVWvtK.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-CznnwtQ8.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-D-0zxmFi.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 { $o as BaseAddon, $t as SsoBridgeClaimsSchema, B as DEVICE_ENROLLMENT_TTL_MS, It as PreferenceDeviceIdSchema, Lr as formatDeviceRevoker, Lt as PreferenceNamespaceSchema, M as CredentialTokenClaimsSchema, On as buildDeviceEnrollmentLink, Qr as isCredentialTokenPayload, Rt as PreferenceValueSchema, Sc as makeSecretMarker, T as CREDENTIAL_TOKEN_AUDIENCE, U as DEVICE_NONCE_TTL_MS, Uc as userError, Zt as ScopedTokenSchema, cn as UserRecordSchema, ec as defineRecordKinds, fr as deviceCredentialsCapability, jt as PREFERENCES_MAX_VALUE_BYTES, kn as buildDeviceSignatureMessage, on as TokenScopeSchema, so as userManagementCapability, xn as authProviderCapability, yc as isSecretMarker } from "../../dist-DmCVWvtK.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-tmcd_VBC.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-CznnwtQ8.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-FTf16-JR.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 { $o as BaseAddon, $r as isDefaultAppConnectionEndpoint, Gi as pickAppLinkHub, La as shortHostname, Rn as checkRoleAddress, Xi as preconditionOf, Yc as errMsg, Yr as isAppLinkBase, Zc as EventCategory, Zs as defineAddonMigrations, _a as resolveHubAddressRoles, fa as resolveAppConnections, fi as localNetworkCapability, ft as HUB_MDNS_SERVICE_TYPE, kt as NetworkTunnelStartedDataSchema, lo as validateCustomAddress, pt as HUB_MDNS_TXT_KEYS, v as CAMSTACK_APP_LINK_ORIGIN, xa as resolveNotificationTapAddress } from "../../dist-DmCVWvtK.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-DbwyiHD5.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { isIP } from "node:net";
|
|
6
6
|
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-CznnwtQ8.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 { $o as BaseAddon, $s as defineEntryKind, Cn as bareAddonId, Cs as RecordIntegrationInstances, Os as RevConflictError, Wr as integrationInstancesCapability, Xi as preconditionOf, Zs as defineAddonMigrations, gi as logDestinationCapability, mc as isInstanceEnabled, ri as isSameAddonId, vc as isSecretFieldView, yc as isSecretMarker } from "../../dist-DmCVWvtK.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
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-CznnwtQ8.js");
|
|
7
7
|
let node_fs = require("node:fs");
|
|
8
8
|
node_fs = require_chunk.__toESM(node_fs);
|
|
9
9
|
let node_fs_promises = require("node:fs/promises");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $o as BaseAddon, Ht as ROOT_BUCKET_KEY, Ir as foldSnapshotByFunction, Ti as metricsProviderCapability, Yc as errMsg, Ys as createEvent, Zc as EventCategory, oa as reducePoints, pa as resolveBucketMs, sn as UNATTRIBUTED_BUCKET_KEY } from "../../dist-DmCVWvtK.mjs";
|
|
2
2
|
import * as fs$1 from "node:fs";
|
|
3
3
|
import { constants, readFileSync } from "node:fs";
|
|
4
4
|
import { access, readFile, readdir } from "node:fs/promises";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-CznnwtQ8.js");
|
|
7
7
|
const require_coral_accelerators = require("../../coral-accelerators-BSVsBVzt.js");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
node_fs = require_chunk.__toESM(node_fs);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as __toESM, r as __exportAll } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { $o as BaseAddon, Bi as parseAcceleratorFactsJson, Yc as errMsg, Zc as EventCategory, ja as scoreRuntimes, nc as emitReadiness, qi as platformProbeCapability, xr as enumerateInferenceDevices } from "../../dist-DmCVWvtK.mjs";
|
|
3
3
|
import { n as detectCoralAccelerator, r as nodeCoralFs } from "../../coral-accelerators-DBlgWB8k.mjs";
|
|
4
4
|
import * as fs$1 from "node:fs";
|
|
5
5
|
import * as path$1 from "node:path";
|
|
@@ -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-CznnwtQ8.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
//#region src/builtins/record-entries/entries-service.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $o as BaseAddon, Ns as UnknownRecordKindError, Rc as secretViewsOf, ia as recordEntriesCapability, us as InvalidRecordError } from "../../dist-DmCVWvtK.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
//#region src/builtins/record-entries/entries-service.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-CznnwtQ8.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
9
9
|
/**
|
package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $o as BaseAddon, Zc as EventCategory } from "../../dist-DmCVWvtK.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
4
4
|
/**
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-CznnwtQ8.js");
|
|
7
7
|
const require_snapshot_courtesy = require("../../snapshot-courtesy-D_C5-nC0.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $o as BaseAddon, Ba as snapshotCapability, Ci as memoizePinnedFfmpeg, Cn as bareAddonId, Jc as DeviceType, Kc as DeviceFeature, Tc as nodePin, Ya as streamQualityLabel, Yc as errMsg, Zc as EventCategory, g as BatteryStatusSchema, lr as deriveBatteryPresence, wn as batteryCapability } from "../../dist-DmCVWvtK.mjs";
|
|
2
2
|
import { i as renderCourtesyOverlayJpeg, n as courtesyCacheKey, r as renderCourtesyJpeg } from "../../snapshot-courtesy-CyFs1M3I.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-CznnwtQ8.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
node_fs = require_chunk.__toESM(node_fs);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $o as BaseAddon, Pr as filesystemBrowseCapability, qa as storageProviderCapability } from "../../dist-DmCVWvtK.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import * as fs$1 from "node:fs";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
@@ -4,7 +4,7 @@ Object.defineProperties(exports, {
|
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
6
|
const require_builtins_sqlite_storage_filesystem_storage_addon = require("./filesystem-storage.addon.js");
|
|
7
|
-
const require_wal_maintenance = require("../../wal-maintenance-
|
|
7
|
+
const require_wal_maintenance = require("../../wal-maintenance-Da2Rozz6.js");
|
|
8
8
|
const require_builtins_sqlite_storage_sqlite_settings_addon = require("./sqlite-settings.addon.js");
|
|
9
9
|
//#region src/builtins/sqlite-storage/config-store.ts
|
|
10
10
|
var ConfigStore = class {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./filesystem-storage.addon.mjs";
|
|
2
|
-
import { B as SQLITE_ENGINE_STORM_WALL_SHARE, F as SQLITE_MMAP_FLOOR_BYTES, G as SqliteOpProfiler, H as SQLITE_PROFILE_REPORT_INTERVAL_MS, I as SQLITE_PAGE_CACHE_CEILING_KIB, K as sqliteEngineStorm, L as SQLITE_PAGE_CACHE_FLOOR_KIB, N as SQLITE_JOURNAL_SIZE_LIMIT_BYTES, P as SQLITE_MMAP_CEILING_BYTES, R as sqliteMmapSizeFor, U as SQLITE_PROFILE_TOP_N, V as SQLITE_PROFILE_REPORT_FLOOR_MS, W as SQLITE_SLOW_CALL_MS, a as WalMaintenance, i as WAL_MAINTENANCE_INTERVAL_MS, l as SqliteSettingsBackend, n as WAL_HIGH_WATER_BYTES, r as WAL_IDLE_QUIET_MS, t as WAL_CHECKPOINT_BUSY_TIMEOUT_MS, z as sqlitePageCacheKibFor } from "../../wal-maintenance-
|
|
2
|
+
import { B as SQLITE_ENGINE_STORM_WALL_SHARE, F as SQLITE_MMAP_FLOOR_BYTES, G as SqliteOpProfiler, H as SQLITE_PROFILE_REPORT_INTERVAL_MS, I as SQLITE_PAGE_CACHE_CEILING_KIB, K as sqliteEngineStorm, L as SQLITE_PAGE_CACHE_FLOOR_KIB, N as SQLITE_JOURNAL_SIZE_LIMIT_BYTES, P as SQLITE_MMAP_CEILING_BYTES, R as sqliteMmapSizeFor, U as SQLITE_PROFILE_TOP_N, V as SQLITE_PROFILE_REPORT_FLOOR_MS, W as SQLITE_SLOW_CALL_MS, a as WalMaintenance, i as WAL_MAINTENANCE_INTERVAL_MS, l as SqliteSettingsBackend, n as WAL_HIGH_WATER_BYTES, r as WAL_IDLE_QUIET_MS, t as WAL_CHECKPOINT_BUSY_TIMEOUT_MS, z as sqlitePageCacheKibFor } from "../../wal-maintenance-Cn164tp0.mjs";
|
|
3
3
|
import { SqliteSettingsAddon } from "./sqlite-settings.addon.mjs";
|
|
4
4
|
//#region src/builtins/sqlite-storage/config-store.ts
|
|
5
5
|
var ConfigStore = class {
|
|
@@ -3,12 +3,12 @@ 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-CznnwtQ8.js");
|
|
7
7
|
const require_retired_settings_keys = require("../../retired-settings-keys-C8nOOr5H.js");
|
|
8
|
-
const require_wal_maintenance = require("../../wal-maintenance-
|
|
8
|
+
const require_wal_maintenance = require("../../wal-maintenance-Da2Rozz6.js");
|
|
9
9
|
const require_sqlite_snapshot_protocol = require("../../sqlite-snapshot-protocol-B9OndqZv.js");
|
|
10
10
|
const require_wal_checkpoint_policy = require("../../wal-checkpoint-policy-d2z2qPqx.js");
|
|
11
|
-
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-
|
|
11
|
+
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-gW0xpMJI.js");
|
|
12
12
|
let zod = require("zod");
|
|
13
13
|
let node_crypto = require("node:crypto");
|
|
14
14
|
let node_fs = require("node:fs");
|