@camstack/server 1.2.858 → 1.2.860
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 +16 -0
- package/dist/api/trpc/generated-cap-routers.js +16 -0
- package/dist/core/cluster-update/cluster-update-steps.js +10 -2
- package/dist/server-root/index.js +1125 -45
- package/package.json +17 -16
- package/system/dist/addon-runner.js +76 -1
- package/system/dist/addon-runner.mjs +76 -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 +4 -4
- package/system/dist/builtins/composer/composer.addon.mjs +4 -4
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +3 -3
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +32 -23
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +32 -23
- package/system/dist/builtins/device-manager/device-search.d.ts +4 -3
- package/system/dist/builtins/device-manager/removal-fence.d.ts +2 -2
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/local-network.addon.js +3 -3
- package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +284 -284
- 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-B4_fq2JB.mjs → capture-engine-B5OYzCH1.mjs} +1 -1
- package/system/dist/{capture-engine-yhFFC7F8.js → capture-engine-BManwD48.js} +1 -1
- package/system/dist/{composition-sources-BQOEYCJG.mjs → composition-sources-B8hoUx1K.mjs} +1 -1
- package/system/dist/{composition-sources-CKSSe5ny.js → composition-sources-DWu-IL2w.js} +1 -1
- package/system/dist/{constants-dfnEfsX7.js → constants-CUAopsxj.js} +1 -1
- package/system/dist/{constants-h8wJE_8O.mjs → constants-qDKQ7NaY.mjs} +1 -1
- package/system/dist/{device-ca-h54CenJx.mjs → device-ca-BOUTrISA.mjs} +1 -1
- package/system/dist/{device-ca-_o0-3jJ6.js → device-ca-DNrM4Ao-.js} +1 -1
- package/system/dist/{dist-atHH8IeD.mjs → dist-3MQdfUTG.mjs} +254 -71
- package/system/dist/{dist-WEGVb8qV.js → dist-B9Kzw974.js} +259 -70
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-nIMYA24i.js → hub-identity-BQIE6w3g.js} +1 -1
- package/system/dist/{hub-identity-DLF698tj.mjs → hub-identity-DEbxcoVh.mjs} +1 -1
- package/system/dist/{hub-mdns-ciao-B6ZHStt1.js → hub-mdns-ciao-Bj_RdJiH.js} +2 -2
- package/system/dist/{hub-mdns-ciao-DchpUVAk.mjs → hub-mdns-ciao-BzKGywE2.mjs} +2 -2
- package/system/dist/index.js +84 -9
- package/system/dist/index.mjs +84 -9
- package/system/dist/kernel/moleculer/switch-toggle.d.ts +41 -0
- package/system/dist/{legacy-integration-rows-door-BbaIE1qF.js → legacy-integration-rows-door-CRfEC_HP.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-DBO3ZLmn.mjs → legacy-integration-rows-door-rgL9olef.mjs} +1 -1
- package/system/dist/{rename-composition-block-IIfaFnEl.js → rename-composition-block-Bbt43q6n.js} +1 -1
- package/system/dist/{rename-composition-block-6ISzMLgj.mjs → rename-composition-block-DlgSgxch.mjs} +1 -1
- package/system/dist/{restore-archive-ChRNoqGg.js → restore-archive-DJBACMC0.js} +1 -1
- package/system/dist/{restore-archive-DeDRh7Lf.mjs → restore-archive-aQzQt2Kv.mjs} +82 -82
- package/system/dist/{wal-maintenance-BXj9xnDD.mjs → wal-maintenance-Bu6vjJlR.mjs} +0 -0
- package/system/dist/{wal-maintenance-l3CsKEaJ.js → wal-maintenance-BvIEU1r1.js} +0 -0
- package/system/package.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.860",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,14 +66,15 @@
|
|
|
66
66
|
],
|
|
67
67
|
"requires": {
|
|
68
68
|
"addons": {
|
|
69
|
-
"@camstack/addon-admin-ui": ">=1.2.
|
|
70
|
-
"@camstack/addon-agent-ui": ">=1.2.
|
|
71
|
-
"@camstack/addon-google-services": ">=0.2.
|
|
72
|
-
"@camstack/addon-
|
|
73
|
-
"@camstack/addon-
|
|
74
|
-
"@camstack/addon-
|
|
75
|
-
"@camstack/addon-provider-homeassistant": ">=1.2.
|
|
76
|
-
"@camstack/addon-provider-homematic": ">=1.2.
|
|
69
|
+
"@camstack/addon-admin-ui": ">=1.2.662",
|
|
70
|
+
"@camstack/addon-agent-ui": ">=1.2.379",
|
|
71
|
+
"@camstack/addon-google-services": ">=0.2.49",
|
|
72
|
+
"@camstack/addon-import-alexa": ">=0.2.206",
|
|
73
|
+
"@camstack/addon-notifiers": ">=1.2.639",
|
|
74
|
+
"@camstack/addon-post-analysis": ">=1.2.703",
|
|
75
|
+
"@camstack/addon-provider-homeassistant": ">=1.2.685",
|
|
76
|
+
"@camstack/addon-provider-homematic": ">=1.2.196",
|
|
77
|
+
"@camstack/addon-smtp-nodemailer": ">=1.2.156"
|
|
77
78
|
},
|
|
78
79
|
"wrapper": {
|
|
79
80
|
"desktop": ">=0.0.1",
|
|
@@ -82,19 +83,19 @@
|
|
|
82
83
|
}
|
|
83
84
|
},
|
|
84
85
|
"dependencies": {
|
|
85
|
-
"@camstack/addon-admin-ui": "1.2.
|
|
86
|
-
"@camstack/addon-agent-ui": "1.2.
|
|
86
|
+
"@camstack/addon-admin-ui": "1.2.662",
|
|
87
|
+
"@camstack/addon-agent-ui": "1.2.379",
|
|
87
88
|
"@camstack/addon-auth": "1.2.182",
|
|
88
89
|
"@camstack/addon-benchmark": "1.2.313",
|
|
89
90
|
"@camstack/addon-decoder-nodeav": "1.2.149",
|
|
90
|
-
"@camstack/addon-notifiers": "1.2.
|
|
91
|
+
"@camstack/addon-notifiers": "1.2.639",
|
|
91
92
|
"@camstack/addon-pipeline": "1.2.651",
|
|
92
|
-
"@camstack/addon-pipeline-orchestrator": "1.2.
|
|
93
|
-
"@camstack/addon-post-analysis": "1.2.
|
|
93
|
+
"@camstack/addon-pipeline-orchestrator": "1.2.684",
|
|
94
|
+
"@camstack/addon-post-analysis": "1.2.703",
|
|
94
95
|
"@camstack/develop": "0.1.53",
|
|
95
96
|
"@camstack/sdk": "1.2.157",
|
|
96
|
-
"@camstack/types": "1.2.
|
|
97
|
-
"@camstack/ui-library": "1.2.
|
|
97
|
+
"@camstack/types": "1.2.563",
|
|
98
|
+
"@camstack/ui-library": "1.2.439",
|
|
98
99
|
"@fastify/compress": "^9.0.0",
|
|
99
100
|
"@fastify/cookie": "^11.0.2",
|
|
100
101
|
"@fastify/cors": "^11.2.0",
|
|
@@ -5723,6 +5723,76 @@ function recordsTransportOf(api) {
|
|
|
5723
5723
|
};
|
|
5724
5724
|
}
|
|
5725
5725
|
//#endregion
|
|
5726
|
+
//#region src/kernel/moleculer/switch-toggle.ts
|
|
5727
|
+
var REFUSAL_TEXT = {
|
|
5728
|
+
"no-slice": "switch has no state slice",
|
|
5729
|
+
stale: "switch state is unknown"
|
|
5730
|
+
};
|
|
5731
|
+
var SwitchToggleRefusedError = class extends Error {
|
|
5732
|
+
reason;
|
|
5733
|
+
deviceId;
|
|
5734
|
+
constructor(reason, deviceId) {
|
|
5735
|
+
super(`device ${deviceId}: ${REFUSAL_TEXT[reason]}; refusing to guess on or off`);
|
|
5736
|
+
this.name = "SwitchToggleRefusedError";
|
|
5737
|
+
this.reason = reason;
|
|
5738
|
+
this.deviceId = deviceId;
|
|
5739
|
+
}
|
|
5740
|
+
};
|
|
5741
|
+
/** `on` when the slice states it, otherwise the reason the toggle must refuse. */
|
|
5742
|
+
function classifySwitchOn(slice) {
|
|
5743
|
+
if (slice === void 0 || slice === null) return {
|
|
5744
|
+
known: false,
|
|
5745
|
+
reason: "no-slice"
|
|
5746
|
+
};
|
|
5747
|
+
if (typeof slice !== "object" || Array.isArray(slice)) return {
|
|
5748
|
+
known: false,
|
|
5749
|
+
reason: "stale"
|
|
5750
|
+
};
|
|
5751
|
+
const on = Reflect.get(slice, "on");
|
|
5752
|
+
if (typeof on !== "boolean") return {
|
|
5753
|
+
known: false,
|
|
5754
|
+
reason: "stale"
|
|
5755
|
+
};
|
|
5756
|
+
return {
|
|
5757
|
+
known: true,
|
|
5758
|
+
on
|
|
5759
|
+
};
|
|
5760
|
+
}
|
|
5761
|
+
function isSetState(fn) {
|
|
5762
|
+
return typeof fn === "function";
|
|
5763
|
+
}
|
|
5764
|
+
function refuse(read, deviceId, reason) {
|
|
5765
|
+
read.logger.warn(`switch.toggle refused: ${REFUSAL_TEXT[reason]}`, {
|
|
5766
|
+
tags: { deviceId },
|
|
5767
|
+
meta: { reason }
|
|
5768
|
+
});
|
|
5769
|
+
throw new SwitchToggleRefusedError(reason, deviceId);
|
|
5770
|
+
}
|
|
5771
|
+
async function runToggle(provider, setState, read, input) {
|
|
5772
|
+
const deviceId = typeof input?.deviceId === "number" ? input.deviceId : read.deviceId;
|
|
5773
|
+
const state = classifySwitchOn(deviceId === read.deviceId ? read.readSlice() : void 0);
|
|
5774
|
+
if (!state.known) refuse(read, deviceId, state.reason);
|
|
5775
|
+
await setState.call(provider, {
|
|
5776
|
+
deviceId,
|
|
5777
|
+
on: !state.on
|
|
5778
|
+
});
|
|
5779
|
+
}
|
|
5780
|
+
/**
|
|
5781
|
+
* `provider`, plus `toggle` when `capName` is `switch` and the provider did
|
|
5782
|
+
* not write one. Any other cap is returned as the same object.
|
|
5783
|
+
*/
|
|
5784
|
+
function withDefaultSwitchToggle(capName, provider, read) {
|
|
5785
|
+
if (capName !== "switch") return provider;
|
|
5786
|
+
if (typeof Reflect.get(provider, "toggle") === "function") return provider;
|
|
5787
|
+
const setState = Reflect.get(provider, "setState");
|
|
5788
|
+
if (!isSetState(setState)) return provider;
|
|
5789
|
+
const toggle = (input) => runToggle(provider, setState, read, input);
|
|
5790
|
+
return {
|
|
5791
|
+
...provider,
|
|
5792
|
+
toggle
|
|
5793
|
+
};
|
|
5794
|
+
}
|
|
5795
|
+
//#endregion
|
|
5726
5796
|
//#region src/kernel/moleculer/children-batch-loader.ts
|
|
5727
5797
|
/**
|
|
5728
5798
|
* Narrow an untyped cap answer to the fields the reconcile reads.
|
|
@@ -6286,7 +6356,7 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6286
6356
|
}
|
|
6287
6357
|
});
|
|
6288
6358
|
}
|
|
6289
|
-
const
|
|
6359
|
+
const withStatus = (() => {
|
|
6290
6360
|
if (!cap.status || !cap.runtimeState || !runtimeStateRef) return provider;
|
|
6291
6361
|
if (typeof Reflect.get(provider, "getStatus") === "function") return provider;
|
|
6292
6362
|
const rsRef = runtimeStateRef;
|
|
@@ -6299,6 +6369,11 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6299
6369
|
getStatus: defaultGetStatus
|
|
6300
6370
|
};
|
|
6301
6371
|
})();
|
|
6372
|
+
const finalProvider = withDefaultSwitchToggle(cap.name, withStatus, {
|
|
6373
|
+
deviceId: id,
|
|
6374
|
+
readSlice: () => runtimeStateRef?.getCapState("switch"),
|
|
6375
|
+
logger: opts.logger
|
|
6376
|
+
});
|
|
6302
6377
|
if (opts.capabilityRegistry) opts.capabilityRegistry.registerNativeProvider(cap.name, id, addonId, finalProvider);
|
|
6303
6378
|
else if (opts.broker || opts.udsMode) {
|
|
6304
6379
|
let perCap = workerNativeCaps.get(cap.name);
|
|
@@ -5668,6 +5668,76 @@ function recordsTransportOf(api) {
|
|
|
5668
5668
|
};
|
|
5669
5669
|
}
|
|
5670
5670
|
//#endregion
|
|
5671
|
+
//#region src/kernel/moleculer/switch-toggle.ts
|
|
5672
|
+
var REFUSAL_TEXT = {
|
|
5673
|
+
"no-slice": "switch has no state slice",
|
|
5674
|
+
stale: "switch state is unknown"
|
|
5675
|
+
};
|
|
5676
|
+
var SwitchToggleRefusedError = class extends Error {
|
|
5677
|
+
reason;
|
|
5678
|
+
deviceId;
|
|
5679
|
+
constructor(reason, deviceId) {
|
|
5680
|
+
super(`device ${deviceId}: ${REFUSAL_TEXT[reason]}; refusing to guess on or off`);
|
|
5681
|
+
this.name = "SwitchToggleRefusedError";
|
|
5682
|
+
this.reason = reason;
|
|
5683
|
+
this.deviceId = deviceId;
|
|
5684
|
+
}
|
|
5685
|
+
};
|
|
5686
|
+
/** `on` when the slice states it, otherwise the reason the toggle must refuse. */
|
|
5687
|
+
function classifySwitchOn(slice) {
|
|
5688
|
+
if (slice === void 0 || slice === null) return {
|
|
5689
|
+
known: false,
|
|
5690
|
+
reason: "no-slice"
|
|
5691
|
+
};
|
|
5692
|
+
if (typeof slice !== "object" || Array.isArray(slice)) return {
|
|
5693
|
+
known: false,
|
|
5694
|
+
reason: "stale"
|
|
5695
|
+
};
|
|
5696
|
+
const on = Reflect.get(slice, "on");
|
|
5697
|
+
if (typeof on !== "boolean") return {
|
|
5698
|
+
known: false,
|
|
5699
|
+
reason: "stale"
|
|
5700
|
+
};
|
|
5701
|
+
return {
|
|
5702
|
+
known: true,
|
|
5703
|
+
on
|
|
5704
|
+
};
|
|
5705
|
+
}
|
|
5706
|
+
function isSetState(fn) {
|
|
5707
|
+
return typeof fn === "function";
|
|
5708
|
+
}
|
|
5709
|
+
function refuse(read, deviceId, reason) {
|
|
5710
|
+
read.logger.warn(`switch.toggle refused: ${REFUSAL_TEXT[reason]}`, {
|
|
5711
|
+
tags: { deviceId },
|
|
5712
|
+
meta: { reason }
|
|
5713
|
+
});
|
|
5714
|
+
throw new SwitchToggleRefusedError(reason, deviceId);
|
|
5715
|
+
}
|
|
5716
|
+
async function runToggle(provider, setState, read, input) {
|
|
5717
|
+
const deviceId = typeof input?.deviceId === "number" ? input.deviceId : read.deviceId;
|
|
5718
|
+
const state = classifySwitchOn(deviceId === read.deviceId ? read.readSlice() : void 0);
|
|
5719
|
+
if (!state.known) refuse(read, deviceId, state.reason);
|
|
5720
|
+
await setState.call(provider, {
|
|
5721
|
+
deviceId,
|
|
5722
|
+
on: !state.on
|
|
5723
|
+
});
|
|
5724
|
+
}
|
|
5725
|
+
/**
|
|
5726
|
+
* `provider`, plus `toggle` when `capName` is `switch` and the provider did
|
|
5727
|
+
* not write one. Any other cap is returned as the same object.
|
|
5728
|
+
*/
|
|
5729
|
+
function withDefaultSwitchToggle(capName, provider, read) {
|
|
5730
|
+
if (capName !== "switch") return provider;
|
|
5731
|
+
if (typeof Reflect.get(provider, "toggle") === "function") return provider;
|
|
5732
|
+
const setState = Reflect.get(provider, "setState");
|
|
5733
|
+
if (!isSetState(setState)) return provider;
|
|
5734
|
+
const toggle = (input) => runToggle(provider, setState, read, input);
|
|
5735
|
+
return {
|
|
5736
|
+
...provider,
|
|
5737
|
+
toggle
|
|
5738
|
+
};
|
|
5739
|
+
}
|
|
5740
|
+
//#endregion
|
|
5671
5741
|
//#region src/kernel/moleculer/children-batch-loader.ts
|
|
5672
5742
|
/**
|
|
5673
5743
|
* Narrow an untyped cap answer to the fields the reconcile reads.
|
|
@@ -6231,7 +6301,7 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6231
6301
|
}
|
|
6232
6302
|
});
|
|
6233
6303
|
}
|
|
6234
|
-
const
|
|
6304
|
+
const withStatus = (() => {
|
|
6235
6305
|
if (!cap.status || !cap.runtimeState || !runtimeStateRef) return provider;
|
|
6236
6306
|
if (typeof Reflect.get(provider, "getStatus") === "function") return provider;
|
|
6237
6307
|
const rsRef = runtimeStateRef;
|
|
@@ -6244,6 +6314,11 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6244
6314
|
getStatus: defaultGetStatus
|
|
6245
6315
|
};
|
|
6246
6316
|
})();
|
|
6317
|
+
const finalProvider = withDefaultSwitchToggle(cap.name, withStatus, {
|
|
6318
|
+
deviceId: id,
|
|
6319
|
+
readSlice: () => runtimeStateRef?.getCapState("switch"),
|
|
6320
|
+
logger: opts.logger
|
|
6321
|
+
});
|
|
6247
6322
|
if (opts.capabilityRegistry) opts.capabilityRegistry.registerNativeProvider(cap.name, id, addonId, finalProvider);
|
|
6248
6323
|
else if (opts.broker || opts.udsMode) {
|
|
6249
6324
|
let perCap = workerNativeCaps.get(cap.name);
|
|
@@ -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-B9Kzw974.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Cn as addonPagesCapability,
|
|
1
|
+
import { Cn as addonPagesCapability, Fl as errMsg, Fs as BaseAddon, Ll as EventCategory } from "../../dist-3MQdfUTG.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import * as fs$1 from "node:fs";
|
|
@@ -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-B9Kzw974.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fl as errMsg, Fs as BaseAddon, Ll as EventCategory, Tn as addonWidgetsCapability } from "../../dist-3MQdfUTG.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import * as fs$1 from "node:fs";
|
|
@@ -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-B9Kzw974.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
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as CORE_BLOCK_ADDON_PREFIX, Dn as alertEpisodePayload, En as alertEpisodeId,
|
|
1
|
+
import { D as CORE_BLOCK_ADDON_PREFIX, Dn as alertEpisodePayload, En as alertEpisodeId, Fl as errMsg, Fs as BaseAddon, Lc as defineRecordKinds, Ll as EventCategory, Mc as createEvent, On as alertsCapability, gi as isAlertEpisodeSeverity, hi as isAlertEpisodeOpen, p as AlertSchema } from "../../dist-3MQdfUTG.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
3
|
import { a as redactLogText } from "../../log-redactor-XLDrPzOi.mjs";
|
|
4
4
|
import * as fs$1 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-B9Kzw974.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
//#region src/builtins/autotrack/autotrack-config.ts
|
|
9
9
|
var DEFAULT_AUTOTRACK_LOOP_CONFIG = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Da as ptzAutotrackCapability, Fl as errMsg, Fs as BaseAddon, Ll as EventCategory, Pn as bareAddonId, Xc as isEvent, pt as FIRST_LEVEL_MACRO_CLASSES } from "../../dist-3MQdfUTG.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/builtins/autotrack/autotrack-config.ts
|
|
4
4
|
var DEFAULT_AUTOTRACK_LOOP_CONFIG = {
|
|
@@ -3,9 +3,9 @@ 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-B9Kzw974.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
|
-
const require_restore_archive = require("../../restore-archive-
|
|
8
|
+
const require_restore_archive = require("../../restore-archive-DJBACMC0.js");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
10
10
|
let node_fs = require("node:fs");
|
|
11
11
|
node_fs = require_chunk.__toESM(node_fs);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fs as BaseAddon, Ll as EventCategory, Nn as backupCapability, Wi as mayWriteToLocation, cl as nodePin, wl as toNodeId, wo as storageOccupancyCapability } from "../../dist-3MQdfUTG.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
|
-
import { _ as backupRecordStoresOf, a as BackupSnapshotRefusedError, d as ENCRYPTED_BACKUP_SUFFIX, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, i as BackupCancelledError, l as BackupKeyFormatError, m as parseBackupSecretKey, n as precheckRestoreKey, o as DEFAULT_BACKUP_DATABASES, p as parseBackupPublicKey, r as prepareRestoreArchive, s as SystemBackupService } from "../../restore-archive-
|
|
3
|
+
import { _ as backupRecordStoresOf, a as BackupSnapshotRefusedError, d as ENCRYPTED_BACKUP_SUFFIX, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, i as BackupCancelledError, l as BackupKeyFormatError, m as parseBackupSecretKey, n as precheckRestoreKey, o as DEFAULT_BACKUP_DATABASES, p as parseBackupPublicKey, r as prepareRestoreArchive, s as SystemBackupService } from "../../restore-archive-aQzQt2Kv.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import * as fs$1 from "node:fs";
|
|
6
6
|
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-B9Kzw974.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
//#region src/builtins/calendars/calendar-color.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fs as BaseAddon, Lc as defineRecordKinds, Wn as calendarsCapability, k as CalendarPreferencesSchema } from "../../dist-3MQdfUTG.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/builtins/calendars/calendar-color.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-B9Kzw974.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let _camstack_types_node = require("@camstack/types/node");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $i as motionCapability, Eo as streamCatalogCapability, Fl as errMsg, Fs as BaseAddon, Gn as cameraGridLayoutCapability, Ic as defineEntryKind, Kc as hydrateSchema, Ll as EventCategory, Mc as createEvent, Ml as DeviceFeature, Pl as DeviceType, Pn as bareAddonId, Pt as MOTION_CLOSE_AFTER_MS, V as DERIVED_CAMERA_SILENCED_CAP_NAMES, Zc as isInstanceEnabled, ac as RecordIntegrationInstances, br as declarationOwnerNodeId, di as integrationInstancesCapability, os as buildFfmpegArgs, qi as memoizePinnedFfmpeg, tt as DeclaredDevices, v as BaseDevice, vo as snapshotCapability } from "../../dist-3MQdfUTG.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { FfmpegProcess } from "@camstack/types/node";
|
|
@@ -3,11 +3,11 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
7
|
-
const require_composition_sources = require("../../composition-sources-
|
|
8
|
-
const require_capture_engine = require("../../capture-engine-
|
|
6
|
+
const require_dist = require("../../dist-B9Kzw974.js");
|
|
7
|
+
const require_composition_sources = require("../../composition-sources-DWu-IL2w.js");
|
|
8
|
+
const require_capture_engine = require("../../capture-engine-BManwD48.js");
|
|
9
9
|
const require_retention = require("../../retention-BcOSL6b9.js");
|
|
10
|
-
const require_rename_composition_block = require("../../rename-composition-block-
|
|
10
|
+
const require_rename_composition_block = require("../../rename-composition-block-Bbt43q6n.js");
|
|
11
11
|
let zod = require("zod");
|
|
12
12
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
13
13
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-
|
|
3
|
-
import { i as capSeriesKey } from "../../capture-engine-
|
|
1
|
+
import { $c as isReadingQuantity, $i as motionCapability, $n as climateControlCapability, As as planResetTier, Br as evaluateCompositionField, Ds as nextLocalMidnight, Es as isHistoryHelper, Fl as errMsg, Fs as BaseAddon, Gi as mediaPlayerCapability, Gr as expressionContainsBuiltinCall, Il as featuresOfBoundCaps, In as brightnessCapability, Ji as methodRefusal, Jo as withDefaultRunning, Jr as fanControlCapability, Ki as mediaPlayerFeaturesOfRoles, Ll as EventCategory, M as ConsumableItemSchema, Mc as createEvent, Ms as statisticCadenceMs, Ns as toExpressionValue, Os as openReset, Pl as DeviceType, Ri as lockControlCapability, Rn as buildCapabilityLookup, Ss as historyRetentionFromSettings, Ts as isForwardInputRef, Uo as valveCapability, Ut as PetFountainStatusSchema, Ya as resolveMutate, Yr as fanOutTargets, Zo as COMPOSER_ADDON_ID, Zr as featureForwards, _s as createStatefulExpressionMemory, ar as composerCapability, as as MINUTE_MS, bs as evaluateStatistic, ds as composedDeviceRef, es as DEFAULT_HISTORY_RETENTION, fa as petFountainCapability, fo as sharedActuatorFeatures, fs as composedDeviceStableId, gs as compositionSourceKey, ha as planComposition, hr as coverCapability, hs as compositionSliceKey, ht as FanDirectionSchema, i as ACTUATOR_TEMPLATE_IDS, js as planStatisticTier, ki as kebabToCamel, ko as switchCapability, ks as openStatistic, lr as consumablesCapability, mo as sharedColorModes, ms as compositionItemFieldPath, nr as colorCapability, ns as HISTORY_SLOW_MS, oi as groupCommandsCapability, or as compositionFieldKey, pa as petFountainWaterItem, po as sharedActuatorMethods, ps as compositionFeatureEnabled, r as ACTUATOR_METHODS, rs as HOUR_MS, s as ALL_CAPABILITY_DEFINITIONS, si as groupTemplate, to as runFanOut, ts as HISTORY_FAST_MS, tt as DeclaredDevices, ua as parseColorInput, us as cloneStatefulExpressionMemory, v as BaseDevice, vs as disarmRoseMemory, w as COMPOSED_ITEM_FIXED_FIELDS, wa as processTimeZoneOr, ws as integrateReading, wt as HvacModeSchema, xr as declaredSeriesKind, ys as evaluateDerivative, yt as GroupCommandResultSchema } from "../../dist-3MQdfUTG.mjs";
|
|
2
|
+
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-B8hoUx1K.mjs";
|
|
3
|
+
import { i as capSeriesKey } from "../../capture-engine-B5OYzCH1.mjs";
|
|
4
4
|
import { i as DAY_MS, t as DEFAULT_RETENTION } from "../../retention-CUOVI1p7.mjs";
|
|
5
|
-
import { n as renameCompositionBlock } from "../../rename-composition-block-
|
|
5
|
+
import { n as renameCompositionBlock } from "../../rename-composition-block-DlgSgxch.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
8
8
|
/**
|
|
@@ -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-B9Kzw974.js");
|
|
7
7
|
const require_formatter = require("../../formatter-xbxeV4GD.js");
|
|
8
8
|
//#region src/builtins/console-logging/console-destination.ts
|
|
9
9
|
var LEVEL_RANK = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bi as logDestinationCapability, Fs as BaseAddon } from "../../dist-3MQdfUTG.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-DkYZ4LXp.mjs";
|
|
3
3
|
//#region src/builtins/console-logging/console-destination.ts
|
|
4
4
|
var LEVEL_RANK = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("../../dist-
|
|
3
|
+
const require_dist = require("../../dist-B9Kzw974.js");
|
|
4
4
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
5
|
-
const require_composition_sources = require("../../composition-sources-
|
|
6
|
-
const require_capture_engine = require("../../capture-engine-
|
|
5
|
+
const require_composition_sources = require("../../composition-sources-DWu-IL2w.js");
|
|
6
|
+
const require_capture_engine = require("../../capture-engine-BManwD48.js");
|
|
7
7
|
const require_prefix_range = require("../../prefix-range-D_KueXbQ.js");
|
|
8
8
|
const require_prefix_walk = require("../../prefix-walk-Dv6MLZlM.js");
|
|
9
9
|
const require_cap_call_scope = require("../../cap-call-scope-8eiugfLl.js");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $a as resolveStepArgs, $o as DAY_MS, $r as findChannelSource, $t as RemoteAssumedStateSchema, B as DEFAULT_HOLD_OVERRIDE, Ba as resolveActionVariables, Bc as entryBody, Bo as validateComposition, Ci as isInternalActionId, D as CORE_BLOCK_ADDON_PREFIX, E as CORE_BLOCKS_ADDON_ID, Ea as proposeRunningThreshold, El as transformSecretWrite, Et as INTERNAL_ACTION_PREFIX, Fa as remoteCapability, Fi as localDateOf, Fl as errMsg$1, Fo as timedRunQuickRun, Fs as BaseAddon, Ft as MediaPlayerStatusSchema, Ga as resolveHeroLayout, Ho as validateSchedulerInput, Hr as evaluateWhenTree, Ia as remoteLayoutComponentsCapability, Ic as defineEntryKind, Io as timedRunSeconds, Jn as capUnitResolver, Jt as QuantityUnitError, Kc as hydrateSchema, La as remoteSourceSteps, Lc as defineRecordKinds, Ll as EventCategory$1, Ln as buildActionSteps, Lo as toTimings, Mo as timedRunCapability, N as CoreBlockSchema, Nl as DeviceRole, No as timedRunLimitOf, Oa as readRecipeLiteral, Oc as collectSecretMarkerRefs, Ol as vocabActionIdFor, Pa as reexpandAutomationInstance, Pc as defineAddonMigrations, Pl as DeviceType$1, Po as timedRunMaxIn, Qn as checkTemplatePayload, Qo as CompositionSchema, Ra as replaceRecipeLiteral, Rn as buildCapabilityLookup, Sa as problemsBlockSave, Sn as addonIdOfActionId, Ss as historyRetentionFromSettings, T as COMPOSER_RUNNER_ID, Ta as projectDeviceRow, Tr as describeComposableCaps, Tt as IDLE_ACTION_STATUS, Ua as resolveCoreBlockEntry, Un as builtinAutomationTemplate, Vn as buildHeroModel, Vr as evaluateStepCondition, Wa as resolveCoreBlockFiles, Wt as PowerSourceInfoSchema, Xo as zoneOnlySite, Xr as fanPresetsCapability, Xt as REMOTE_MEDIA_COMMANDS, Za as resolveRemoteSource, Zo as COMPOSER_ADDON_ID, _ as BUILTIN_REMOTE_COMPONENTS, _a as powerSourceActuatorConflicts, _l as resolveSecretMarkers, _r as customKeyOfRole, ac as RecordIntegrationInstances, an as SchedulerError, ao as schedulersCapability, bn as actionWaitTotalMs, bo as stableIdMapOf, c as ActionError, ci as hasTimeLeaves, cr as compositionUnionReads, ct as EMPTY_REMOTE_CONFIG, d as ActionTargetResolver, di as integrationInstancesCapability, dr as coreBlockComposition, ds as composedDeviceRef, dt as FAN_OSCILLATION_AXES, ea as nextOccurrence, en as RemoteLayoutPayloadSchema, er as collectDeviceTemplates, f as ActionVariableSchema, fi as internalActionId, fr as coreBlockIdFromAddonId, fs as composedDeviceStableId, ft as FAN_OSCILLATION_AXIS_SETTABLE, g as BUILTIN_AUTOMATION_TEMPLATES, gc as VocabActionError, go as siteFor, gs as compositionSourceKey, gt as FanPresetSchema, h as AutomationTemplatePayloadSchema, ha as planComposition, hn as TemplateKindSchema, ii as generateAutomationBlock, il as isSecretRefOwnedBy, ir as compileScalarOverride, is as HelperMemberSchema, j as ConditionMirror, jc as commandOrigin$1, jn as assertStepsOffered, jo as templateCapability, ka as readStoredRemoteConfig, ki as kebabToCamel, kl as vocabCall, kn as appendTrace, l as ActionMinDelaySecSchema, li as heroLayoutCapability, ln as SetOscillationAxisInputSchema, lo as seedInstanceOnce, m as AutomationStateDocSchema, mr as coreBlocksCapability, mt as FanControlStatusSchema, n as ACTION_TARGET_INVALIDATION_EVENTS, na as normalizeActionUnits, nl as isSecretMarker, no as runSteps, on as SchedulerSchema, ot as EMPTY_AUTOMATION_STATE, pr as coreBlockSourceKind, ps as compositionFeatureEnabled, qn as canonicalStoredStepTargets, qo as weekdayOfLocalDate, qr as fanAxisPath, ra as normalizeCoreBlockWrite, s as ALL_CAPABILITY_DEFINITIONS, sa as occurrenceOn, sr as compositionSourceRefs, ss as canonicalStoredBlockTarget, st as EMPTY_REMOTE_ASSUMED_STATE, ta as nextTimeBoundaryInMs, tn as RunningStateStatusSchema, tr as collectWhenMirrorSources, tt as DeclaredDevices, u as ActionStepSchema, ui as instanceCodeHash, ur as coreBlockAddonId, ut as FAN_CAPTURE_FIELDS, va as powerSourceCapability, vc as actionEffect, vl as ruleFireOfClaim, xa as prepareRecipeUnits, xl as secretTreeFromSchema, xn as actionsCapability, xs as helperMembers, ya as powerSourceLinkOfComposition, yi as isBuiltinTemplateId, yn as actionSourceCapability, za as replacedFieldKeys, zi as lockDoorLinkOfComposition } from "../../dist-3MQdfUTG.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-B8hoUx1K.mjs";
|
|
4
|
+
import { i as capSeriesKey } from "../../capture-engine-B5OYzCH1.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";
|
|
@@ -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-B9Kzw974.js");
|
|
7
|
+
const require_capture_engine = require("../../capture-engine-BManwD48.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 { $c as isReadingQuantity, An as armRemovalReconcile, Fs as BaseAddon, Gc as historyUnitFor, Hs as DeviceTransitionSchema, Ir as deviceTransitionsCapability, Ks as InvalidRecordError, Lc as defineRecordKinds, Ll as EventCategory, Mr as deviceRemovalHookCapability, Nr as deviceRunsCapability, Pl as DeviceType, Ps as wattMillisecondsToKwh, U as DEVICE_HISTORY_ENERGY_KEY, bt as HISTORY_CATALOG, cc as RecordTooLargeError, kr as deviceHistoryCapability, nt as DeviceRunSchema, xt as HISTORY_ITEM_CATALOG, zc as emitReadiness } from "../../dist-3MQdfUTG.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-B5OYzCH1.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
|