@camstack/server 1.2.780 → 1.2.782
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/api/trpc/cap-router-runtime.js +18 -9
- package/dist/core/addon/addon-registry.service.js +3 -1
- package/dist/core/addon/instance-links.service.js +101 -0
- package/dist/core/moleculer/moleculer.service.js +3 -1
- package/package.json +7 -32
- package/system/dist/addon-runner.js +9 -1
- package/system/dist/addon-runner.mjs +10 -2
- package/system/dist/{agent-https-DuxDC67S.mjs → agent-https-CEBLv9BA.mjs} +1 -1
- package/system/dist/{agent-https-A9wsxVGn.js → agent-https-kG6BvwKf.js} +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +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 +3 -3
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +1 -1
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/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-CEChNpAD.mjs → capture-engine-7_Barr9F.mjs} +1 -1
- package/system/dist/{capture-engine-D6mXfLFQ.js → capture-engine-cNrHuwWH.js} +1 -1
- package/system/dist/{composition-sources-cVWKVph4.js → composition-sources-7wEQtB6b.js} +1 -1
- package/system/dist/{composition-sources-6XYW86Kw.mjs → composition-sources-QUbTSbQL.mjs} +1 -1
- package/system/dist/{constants-DqwDEYfb.mjs → constants-BmX7aeHq.mjs} +1 -1
- package/system/dist/{constants-B5Yg02ii.js → constants-_Zq5aGIs.js} +1 -1
- package/system/dist/{device-ca-BVz14dRd.js → device-ca-D9nNDHW_.js} +1 -1
- package/system/dist/{device-ca-oY4Xqd7s.mjs → device-ca-DqNfUZx4.mjs} +1 -1
- package/system/dist/{dist-B4wrqheM.js → dist-CA672buZ.js} +52 -4
- package/system/dist/{dist-BX8nZeXV.mjs → dist-W0Eyg7Fm.mjs} +52 -4
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-CiMMA0rT.js → hub-mdns-ciao-DHlokCDH.js} +2 -2
- package/system/dist/{hub-mdns-ciao-BDPMfOgq.mjs → hub-mdns-ciao-DWzAoaKF.mjs} +2 -2
- package/system/dist/index.js +33 -25
- package/system/dist/index.mjs +34 -26
- package/system/dist/kernel/moleculer/trpc-links.d.ts +8 -0
- package/system/dist/{legacy-integration-rows-door-YuWqHZW4.js → legacy-integration-rows-door-BzVepX_e.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-DDA3YOxL.mjs → legacy-integration-rows-door-CF_0_-U9.mjs} +1 -1
- package/system/dist/{restore-archive-BrtpgNCt.mjs → restore-archive-CfET1ups.mjs} +1 -1
- package/system/dist/{restore-archive-Cn9OShm4.js → restore-archive-ChBlqNSj.js} +1 -1
- package/system/dist/{wal-maintenance-jgyV9NbL.mjs → wal-maintenance-Bg3rwpny.mjs} +0 -0
- package/system/dist/{wal-maintenance-BTzu3s-6.js → wal-maintenance-CNSrfmr8.js} +0 -0
- package/system/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.782] - 2026-11-06
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- The hub refuses to delete an instance that another instance still links to, and lists what uses it
|
|
15
|
+
|
|
16
|
+
## [1.2.781] - 2026-11-06
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- A runner that hosts its own provider of a collection capability no longer answers a call pinned to another addon, which left the Home Assistant export target Unconfigured
|
|
21
|
+
- A forked addon asking a collection capability's list method with an explicit addonId now gets only that addon's rows, not every provider's, so the Home Assistant export no longer mistakes another integration's account for its broker
|
|
22
|
+
|
|
10
23
|
## [1.2.780] - 2026-11-06
|
|
11
24
|
|
|
12
25
|
### Changed
|
|
@@ -135,6 +135,9 @@ async function aggregateCollectionCall(reg, capName, method, args) {
|
|
|
135
135
|
return null;
|
|
136
136
|
if (!exports.COLLECTION_ARRAY_METHODS.get(capName)?.includes(method))
|
|
137
137
|
return null;
|
|
138
|
+
// A pinned call is `pinnedCollectionCall`'s, never the union's.
|
|
139
|
+
if (addonPinOf(reg, capName, method, args) !== null)
|
|
140
|
+
return null;
|
|
138
141
|
if (reg.getCollectionEntries(capName).length === 0)
|
|
139
142
|
return null;
|
|
140
143
|
const aggregate = resolveCollectionProvider(reg, capName, undefined);
|
|
@@ -235,17 +238,22 @@ async function pinnedDeviceCollectionCall(reg, capName, method, args) {
|
|
|
235
238
|
* DELIBERATELY BOGUS addonId — refused if the selector routes, answered `null`
|
|
236
239
|
* if it is discarded. It came back `null`.
|
|
237
240
|
*
|
|
238
|
-
*
|
|
239
|
-
* (
|
|
241
|
+
* An ARRAY method pins too, exactly as the tRPC mount does
|
|
242
|
+
* ({@link resolveCollectionProvider}: "addonId set → that addon's provider
|
|
243
|
+
* directly"): without a selector its contract is the fan-out union, WITH one it
|
|
244
|
+
* is that provider's own rows. The child→parent path used to answer the union
|
|
245
|
+
* for a pinned array call, so a forked export asking
|
|
246
|
+
* `integrationInstances.listInstances({ addonId })` got every integration's
|
|
247
|
+
* instances back and took another integration's `account` row for its broker.
|
|
248
|
+
*
|
|
249
|
+
* Never a non-collection cap (there `addonId` is provider DATA: `addons.getLogs({addonId})` names the addon
|
|
240
250
|
* whose logs you want, it does not name a provider).
|
|
241
251
|
*/
|
|
242
|
-
function addonPinOf(reg, capName,
|
|
252
|
+
function addonPinOf(reg, capName, _method, args) {
|
|
243
253
|
if (!reg)
|
|
244
254
|
return null;
|
|
245
255
|
if (!isGlobalCollection(reg, capName))
|
|
246
256
|
return null;
|
|
247
|
-
if (exports.COLLECTION_ARRAY_METHODS.get(capName)?.includes(method) === true)
|
|
248
|
-
return null;
|
|
249
257
|
if (args === null || typeof args !== 'object' || Array.isArray(args))
|
|
250
258
|
return null;
|
|
251
259
|
const addonId = args['addonId'];
|
|
@@ -277,10 +285,11 @@ function addonPinOf(reg, capName, method, args) {
|
|
|
277
285
|
* rows.
|
|
278
286
|
*
|
|
279
287
|
* Mirrors the tRPC branch exactly, including what it does NOT do:
|
|
280
|
-
* - ARRAY
|
|
281
|
-
* ({@link aggregateCollectionCall})
|
|
282
|
-
*
|
|
283
|
-
*
|
|
288
|
+
* - An ARRAY method with no selector is the fan-out union
|
|
289
|
+
* ({@link aggregateCollectionCall}); WITH a selector it is that provider's
|
|
290
|
+
* own rows, and a selector naming no registered provider is refused, as on
|
|
291
|
+
* the tRPC mount. A caller that may ask before the provider registers treats
|
|
292
|
+
* the refusal as "not known yet" (D49), never as "no instance".
|
|
284
293
|
* - Only the EXPLICIT top-level selector routes. No nested recovery here:
|
|
285
294
|
* that heuristic reads a domain payload, and this path has no schema.
|
|
286
295
|
*
|
|
@@ -66,6 +66,7 @@ const runner_convergence_1 = require("./runner-convergence");
|
|
|
66
66
|
const runner_serialization_1 = require("./runner-serialization");
|
|
67
67
|
const runner_spawn_fanout_js_1 = require("./runner-spawn-fanout.js");
|
|
68
68
|
const integration_instances_provider_js_1 = require("./integration-instances-provider.js");
|
|
69
|
+
const instance_links_service_js_1 = require("./instance-links.service.js");
|
|
69
70
|
const settings_door_wiring_js_1 = require("./settings-door-wiring.js");
|
|
70
71
|
/**
|
|
71
72
|
* Decide whether an in-memory addon entry should be evicted because it is no
|
|
@@ -3031,7 +3032,8 @@ class AddonRegistryService {
|
|
|
3031
3032
|
// kernel addon-context-factory; never the hub-singleton `storage` cap.
|
|
3032
3033
|
const nodeDataDir = path.resolve(process.env.CAMSTACK_DATA ?? 'camstack-data');
|
|
3033
3034
|
const registerProvider = (capabilityName, provider) => {
|
|
3034
|
-
|
|
3035
|
+
// An `integration-instances` holder is registered with its delete guarded by the link index (D1013).
|
|
3036
|
+
this.capabilityRegistry.registerProvider(capabilityName, addonId, (0, instance_links_service_js_1.registeredProviderFor)(capabilityName, provider, this.capabilityRegistry));
|
|
3035
3037
|
logger.info('Registered provider via context.registerProvider()', {
|
|
3036
3038
|
meta: { capabilityName },
|
|
3037
3039
|
});
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InstanceLinksIndex = exports.INTEGRATION_INSTANCES_CAP = void 0;
|
|
4
|
+
exports.holdersOf = holdersOf;
|
|
5
|
+
exports.guardInstanceDeletes = guardInstanceDeletes;
|
|
6
|
+
exports.registeredProviderFor = registeredProviderFor;
|
|
7
|
+
/**
|
|
8
|
+
* The hub's index of instance links (D1013 rule 5). Every `integration-instances` holder's
|
|
9
|
+
* `describe().links` says which body field of which kind holds the id of an instance of another
|
|
10
|
+
* function cap; the OWNER of the target refuses `deleteInstance` while a link still names it,
|
|
11
|
+
* with an `InstanceInUseError` naming the users. The link lives on the consumer: nothing here
|
|
12
|
+
* stores a second copy of it.
|
|
13
|
+
*/
|
|
14
|
+
const types_1 = require("@camstack/types");
|
|
15
|
+
const integration_instances_provider_js_1 = require("./integration-instances-provider.js");
|
|
16
|
+
exports.INTEGRATION_INSTANCES_CAP = 'integration-instances';
|
|
17
|
+
/** The holders of `integration-instances` the registry knows right now. */
|
|
18
|
+
function holdersOf(registry) {
|
|
19
|
+
const holders = [];
|
|
20
|
+
for (const [addonId, provider] of registry.getCollectionEntries(exports.INTEGRATION_INSTANCES_CAP)) {
|
|
21
|
+
if ((0, integration_instances_provider_js_1.isIntegrationInstancesProvider)(provider))
|
|
22
|
+
holders.push({ addonId, provider });
|
|
23
|
+
}
|
|
24
|
+
return holders;
|
|
25
|
+
}
|
|
26
|
+
class InstanceLinksIndex {
|
|
27
|
+
holders;
|
|
28
|
+
constructor(holders) {
|
|
29
|
+
this.holders = holders;
|
|
30
|
+
}
|
|
31
|
+
/** Every link every holder declares, read when asked (a holder can appear at any time). */
|
|
32
|
+
async edges() {
|
|
33
|
+
const out = [];
|
|
34
|
+
for (const holder of this.holders()) {
|
|
35
|
+
const description = await holder.provider.describe();
|
|
36
|
+
for (const link of description.links ?? [])
|
|
37
|
+
out.push({ ...link, holderId: holder.addonId });
|
|
38
|
+
}
|
|
39
|
+
return out;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* One finder per link that points at an instance of function cap `cap` whose kind is one of
|
|
43
|
+
* `kinds` (a link naming no kind points at any). Each reads the consumer's own listed rows.
|
|
44
|
+
*/
|
|
45
|
+
async findersFor(cap, kinds) {
|
|
46
|
+
const finders = [];
|
|
47
|
+
for (const edge of await this.edges()) {
|
|
48
|
+
if (edge.to.cap !== cap)
|
|
49
|
+
continue;
|
|
50
|
+
if (edge.to.kind !== undefined && !kinds.includes(edge.to.kind))
|
|
51
|
+
continue;
|
|
52
|
+
const holder = this.holders().find((h) => h.addonId === edge.holderId);
|
|
53
|
+
if (holder === undefined)
|
|
54
|
+
continue;
|
|
55
|
+
finders.push((0, types_1.fieldUserFinder)({
|
|
56
|
+
kind: edge.kind,
|
|
57
|
+
field: edge.field,
|
|
58
|
+
list: async () => (await holder.provider.listInstances()).filter((row) => row.kind === undefined || row.kind === edge.kind),
|
|
59
|
+
}));
|
|
60
|
+
}
|
|
61
|
+
return finders;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.InstanceLinksIndex = InstanceLinksIndex;
|
|
65
|
+
/**
|
|
66
|
+
* `provider` with a `deleteInstance` that refuses while a declared link names the instance.
|
|
67
|
+
* The target's function cap and kind come from its own `describe().kinds`; a provider with no
|
|
68
|
+
* kinds is no link target and is passed through. A consumer that cannot be read REFUSES the
|
|
69
|
+
* delete: a destructive step never goes ahead on a failed read (D49).
|
|
70
|
+
*/
|
|
71
|
+
function guardInstanceDeletes(provider, index) {
|
|
72
|
+
const guarded = async (input) => {
|
|
73
|
+
const instance = await provider.getInstance({ id: input.id });
|
|
74
|
+
const description = await provider.describe();
|
|
75
|
+
const kind = (description.kinds ?? []).find((k) => k.id === instance?.kind);
|
|
76
|
+
if (kind !== undefined) {
|
|
77
|
+
const names = kind.brokerKind === undefined ? [kind.id] : [kind.id, kind.brokerKind];
|
|
78
|
+
await (0, types_1.assertInstanceUnused)(input.id, await index.findersFor(kind.functionCap, names));
|
|
79
|
+
}
|
|
80
|
+
return provider.deleteInstance(input);
|
|
81
|
+
};
|
|
82
|
+
return new Proxy(provider, {
|
|
83
|
+
get(target, prop) {
|
|
84
|
+
if (prop === 'deleteInstance')
|
|
85
|
+
return guarded;
|
|
86
|
+
const value = Reflect.get(target, prop);
|
|
87
|
+
return typeof value === 'function' ? value.bind(target) : value;
|
|
88
|
+
},
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* What the registry should hold for `provider` registered under `capName`: a holder of
|
|
93
|
+
* `integration-instances` comes back guarded, anything else unchanged. One call site per way a
|
|
94
|
+
* provider reaches the registry (in-process context, forked-runner proxy).
|
|
95
|
+
*/
|
|
96
|
+
function registeredProviderFor(capName, provider, registry) {
|
|
97
|
+
if (capName !== exports.INTEGRATION_INSTANCES_CAP || !(0, integration_instances_provider_js_1.isIntegrationInstancesProvider)(provider)) {
|
|
98
|
+
return provider;
|
|
99
|
+
}
|
|
100
|
+
return guardInstanceDeletes(provider, new InstanceLinksIndex(() => holdersOf(registry)));
|
|
101
|
+
}
|
|
@@ -10,6 +10,7 @@ const cap_router_runtime_js_1 = require("../../api/trpc/cap-router-runtime.js");
|
|
|
10
10
|
const core_cap_bridge_js_1 = require("../../api/trpc/core-cap-bridge.js");
|
|
11
11
|
const agent_readiness_pull_js_1 = require("./agent-readiness-pull.js");
|
|
12
12
|
const agent_registration_request_js_1 = require("./agent-registration-request.js");
|
|
13
|
+
const instance_links_service_js_1 = require("../addon/instance-links.service.js");
|
|
13
14
|
const hub_mesh_guard_js_1 = require("./hub-mesh-guard.js");
|
|
14
15
|
const hub_server_version_js_1 = require("./hub-server-version.js");
|
|
15
16
|
const cap_call_fn_js_1 = require("./cap-call-fn.js");
|
|
@@ -1108,7 +1109,8 @@ class MoleculerService {
|
|
|
1108
1109
|
for (const methodName of Object.keys((0, system_1.expandCapMethods)(capDef))) {
|
|
1109
1110
|
proxy[methodName] = (methodParams) => callFn(methodName, methodParams);
|
|
1110
1111
|
}
|
|
1111
|
-
|
|
1112
|
+
// A forked holder of `integration-instances` is guarded like an in-process one (D1013).
|
|
1113
|
+
registry.registerProvider(capName, registryKey, (0, instance_links_service_js_1.registeredProviderFor)(capName, proxy, registry), owner);
|
|
1112
1114
|
// Local-first singleton preference (UDS regression fix). A
|
|
1113
1115
|
// `placement: 'any-node'` singleton (e.g. `pipeline-executor`) can
|
|
1114
1116
|
// register on BOTH the hub-local forked child and a remote agent.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.782",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,33 +66,8 @@
|
|
|
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.39",
|
|
72
|
-
"@camstack/addon-import-alexa": ">=0.2.190",
|
|
73
|
-
"@camstack/addon-matter-broker": ">=0.2.160",
|
|
74
|
-
"@camstack/addon-mqtt-broker": ">=1.2.152",
|
|
75
|
-
"@camstack/addon-post-analysis": ">=1.2.671",
|
|
76
|
-
"@camstack/addon-provider-amcrest": ">=0.2.167",
|
|
77
|
-
"@camstack/addon-provider-bosch": ">=0.1.39",
|
|
78
|
-
"@camstack/addon-provider-dreame": ">=0.2.166",
|
|
79
|
-
"@camstack/addon-provider-dreo": ">=0.2.158",
|
|
80
|
-
"@camstack/addon-provider-enpal": ">=0.1.11",
|
|
81
|
-
"@camstack/addon-provider-esphome": ">=0.1.14",
|
|
82
|
-
"@camstack/addon-provider-gree": ">=0.2.153",
|
|
83
|
-
"@camstack/addon-provider-hikvision": ">=1.2.183",
|
|
84
|
-
"@camstack/addon-provider-homeassistant": ">=1.2.664",
|
|
85
|
-
"@camstack/addon-provider-mqtt-ha": ">=0.1.39",
|
|
86
|
-
"@camstack/addon-provider-petkit": ">=0.2.161",
|
|
87
|
-
"@camstack/addon-provider-rademacher": ">=0.2.160",
|
|
88
|
-
"@camstack/addon-provider-reolink": ">=1.2.230",
|
|
89
|
-
"@camstack/addon-provider-rtsp": ">=1.2.152",
|
|
90
|
-
"@camstack/addon-provider-tuya": ">=0.2.152",
|
|
91
|
-
"@camstack/addon-provider-unifi": ">=0.2.158",
|
|
92
|
-
"@camstack/addon-provider-unraid": ">=0.2.159",
|
|
93
|
-
"@camstack/addon-provider-velux": ">=0.2.160",
|
|
94
|
-
"@camstack/addon-provider-wyze": ">=0.2.165",
|
|
95
|
-
"@camstack/addon-smtp-nodemailer": ">=1.2.149"
|
|
69
|
+
"@camstack/addon-admin-ui": ">=1.2.596",
|
|
70
|
+
"@camstack/addon-agent-ui": ">=1.2.331"
|
|
96
71
|
},
|
|
97
72
|
"wrapper": {
|
|
98
73
|
"desktop": ">=0.0.1",
|
|
@@ -101,8 +76,8 @@
|
|
|
101
76
|
}
|
|
102
77
|
},
|
|
103
78
|
"dependencies": {
|
|
104
|
-
"@camstack/addon-admin-ui": "1.2.
|
|
105
|
-
"@camstack/addon-agent-ui": "1.2.
|
|
79
|
+
"@camstack/addon-admin-ui": "1.2.596",
|
|
80
|
+
"@camstack/addon-agent-ui": "1.2.331",
|
|
106
81
|
"@camstack/addon-auth": "1.2.176",
|
|
107
82
|
"@camstack/addon-benchmark": "1.2.311",
|
|
108
83
|
"@camstack/addon-decoder-nodeav": "1.2.146",
|
|
@@ -112,8 +87,8 @@
|
|
|
112
87
|
"@camstack/addon-post-analysis": "1.2.671",
|
|
113
88
|
"@camstack/develop": "0.1.46",
|
|
114
89
|
"@camstack/sdk": "1.2.155",
|
|
115
|
-
"@camstack/types": "1.2.
|
|
116
|
-
"@camstack/ui-library": "1.2.
|
|
90
|
+
"@camstack/types": "1.2.509",
|
|
91
|
+
"@camstack/ui-library": "1.2.389",
|
|
117
92
|
"@fastify/compress": "^9.0.0",
|
|
118
93
|
"@fastify/cookie": "^11.0.2",
|
|
119
94
|
"@fastify/cors": "^11.2.0",
|
|
@@ -7879,7 +7879,12 @@ function localProviderLink(resolver, observerOpts) {
|
|
|
7879
7879
|
const pinnedNodeId = (0, _camstack_types_addon.readNodePin)(op.context);
|
|
7880
7880
|
if (pinnedNodeId !== void 0 && pinnedNodeId !== localBase) return next(opWithDefaults);
|
|
7881
7881
|
}
|
|
7882
|
-
|
|
7882
|
+
let provider;
|
|
7883
|
+
const pinnedAddonId = liftRoutingHints(op.input).addonId;
|
|
7884
|
+
if (pinnedAddonId !== void 0 && resolver.getByAddonId !== void 0 && Object.hasOwn(_camstack_types_addon.COLLECTION_ARRAY_METHODS, parsed.capName)) {
|
|
7885
|
+
provider = resolver.getByAddonId(parsed.capName, pinnedAddonId);
|
|
7886
|
+
if (!provider) return next(opWithDefaults);
|
|
7887
|
+
} else provider = resolver.getByName(parsed.capName);
|
|
7883
7888
|
if (!provider || typeof provider !== "object") return next(opWithDefaults);
|
|
7884
7889
|
const fn = Reflect.get(provider, parsed.method);
|
|
7885
7890
|
if (typeof fn !== "function") return next(opWithDefaults);
|
|
@@ -11008,6 +11013,9 @@ async function buildAddonContext(runtime, declaration, dataDir, options) {
|
|
|
11008
11013
|
const regs = getRegistries(nodeId);
|
|
11009
11014
|
const workerResolver = {
|
|
11010
11015
|
localNodeId: nodeId,
|
|
11016
|
+
getByAddonId(capabilityName, pinnedAddonId) {
|
|
11017
|
+
return regs.byAddonId.get(capabilityName)?.get(pinnedAddonId) ?? null;
|
|
11018
|
+
},
|
|
11011
11019
|
getByName(capabilityName) {
|
|
11012
11020
|
const preferred = regs.preferred.get(capabilityName);
|
|
11013
11021
|
if (preferred) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { register } from "node:module";
|
|
2
|
-
import { BOOT_RECOVERY_BACKOFF_MS, CALLER_STAMPED_CAPABILITIES, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DeviceType, DisposerChain, ErrorI18nPayloadSchema, EventCategory, MIGRATION_API_VERSION, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, ReadinessRegistry, ReadinessTimeoutError, addonSliceHandleApi, asJsonObject, asString, collectZodSecretPaths, createDebugEmitter, createDeviceProxy, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, describeCustomActions, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods, findMigrationsBlocked, isCollectionArrayMethodName, isProviderOptionalMethodName, maskUrlCredentials, nodeIdOfScopedKey, normalizeAddonInitResult, readErrorI18n, readNodePin, resolveDeviceSettings, resolveSecretViewsIn, scopeKey, scrubKnownSecrets, withCapInputDefaults } from "@camstack/types/addon";
|
|
2
|
+
import { BOOT_RECOVERY_BACKOFF_MS, CALLER_STAMPED_CAPABILITIES, COLLECTION_ARRAY_METHODS, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DeviceType, DisposerChain, ErrorI18nPayloadSchema, EventCategory, MIGRATION_API_VERSION, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, ReadinessRegistry, ReadinessTimeoutError, addonSliceHandleApi, asJsonObject, asString, collectZodSecretPaths, createDebugEmitter, createDeviceProxy, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, describeCustomActions, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods, findMigrationsBlocked, isCollectionArrayMethodName, isProviderOptionalMethodName, maskUrlCredentials, nodeIdOfScopedKey, normalizeAddonInitResult, readErrorI18n, readNodePin, resolveDeviceSettings, resolveSecretViewsIn, scopeKey, scrubKnownSecrets, withCapInputDefaults } from "@camstack/types/addon";
|
|
3
3
|
import * as fs$1 from "node:fs";
|
|
4
4
|
import fs, { createReadStream, createWriteStream, existsSync, readFileSync, readdirSync } from "node:fs";
|
|
5
5
|
import * as path from "node:path";
|
|
@@ -7824,7 +7824,12 @@ function localProviderLink(resolver, observerOpts) {
|
|
|
7824
7824
|
const pinnedNodeId = readNodePin(op.context);
|
|
7825
7825
|
if (pinnedNodeId !== void 0 && pinnedNodeId !== localBase) return next(opWithDefaults);
|
|
7826
7826
|
}
|
|
7827
|
-
|
|
7827
|
+
let provider;
|
|
7828
|
+
const pinnedAddonId = liftRoutingHints(op.input).addonId;
|
|
7829
|
+
if (pinnedAddonId !== void 0 && resolver.getByAddonId !== void 0 && Object.hasOwn(COLLECTION_ARRAY_METHODS, parsed.capName)) {
|
|
7830
|
+
provider = resolver.getByAddonId(parsed.capName, pinnedAddonId);
|
|
7831
|
+
if (!provider) return next(opWithDefaults);
|
|
7832
|
+
} else provider = resolver.getByName(parsed.capName);
|
|
7828
7833
|
if (!provider || typeof provider !== "object") return next(opWithDefaults);
|
|
7829
7834
|
const fn = Reflect.get(provider, parsed.method);
|
|
7830
7835
|
if (typeof fn !== "function") return next(opWithDefaults);
|
|
@@ -10953,6 +10958,9 @@ async function buildAddonContext(runtime, declaration, dataDir, options) {
|
|
|
10953
10958
|
const regs = getRegistries(nodeId);
|
|
10954
10959
|
const workerResolver = {
|
|
10955
10960
|
localNodeId: nodeId,
|
|
10961
|
+
getByAddonId(capabilityName, pinnedAddonId) {
|
|
10962
|
+
return regs.byAddonId.get(capabilityName)?.get(pinnedAddonId) ?? null;
|
|
10963
|
+
},
|
|
10956
10964
|
getByName(capabilityName) {
|
|
10957
10965
|
const preferred = regs.preferred.get(capabilityName);
|
|
10958
10966
|
if (preferred) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ts as defineRecordKinds } from "./dist-
|
|
1
|
+
import { Ts as defineRecordKinds } from "./dist-W0Eyg7Fm.mjs";
|
|
2
2
|
import { C as backdatedNotBefore, S as withUtcTimeEncoding, _ as NameConstraints, a as KeyUsageFlags, c as Pkcs10CertificateRequest, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, g as GeneralSubtrees, h as GeneralSubtree, i as Extension, l as Pkcs10CertificateRequestGenerator, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension, u as SubjectAlternativeNameExtension, v as GeneralName, x as AsnConvert } from "./x509.es-BRiJgOvu.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { X509Certificate, createHash, createPrivateKey, randomBytes, webcrypto } from "node:crypto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-CA672buZ.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
4
|
let zod = require("zod");
|
|
5
5
|
let node_crypto = require("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-CA672buZ.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ao as BaseAddon, _c as EventCategory, gc as errMsg, un as addonPagesCapability } from "../../dist-
|
|
1
|
+
import { Ao as BaseAddon, _c as EventCategory, gc as errMsg, un as addonPagesCapability } from "../../dist-W0Eyg7Fm.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
@@ -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-CA672buZ.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ao as BaseAddon, _c as EventCategory, fn as addonWidgetsCapability, gc as errMsg } from "../../dist-
|
|
1
|
+
import { Ao as BaseAddon, _c as EventCategory, fn as addonWidgetsCapability, gc as errMsg } from "../../dist-W0Eyg7Fm.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
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-CA672buZ.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
//#region src/builtins/alerts/alert-episode-policy.ts
|
|
9
9
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ao as BaseAddon, Rr as isAlertEpisodeOpen, Ts as defineRecordKinds, _c as EventCategory, bs as createEvent, d as AlertSchema, gc as errMsg, hn as alertsCapability, mn as alertEpisodePayload, pn as alertEpisodeId, zr as isAlertEpisodeSeverity } from "../../dist-
|
|
1
|
+
import { Ao as BaseAddon, Rr as isAlertEpisodeOpen, Ts as defineRecordKinds, _c as EventCategory, bs as createEvent, d as AlertSchema, gc as errMsg, hn as alertsCapability, mn as alertEpisodePayload, pn as alertEpisodeId, zr as isAlertEpisodeSeverity } from "../../dist-W0Eyg7Fm.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
3
|
//#region src/builtins/alerts/alert-episode-policy.ts
|
|
4
4
|
/**
|
|
@@ -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-CA672buZ.js");
|
|
7
7
|
//#region src/builtins/autotrack/autotrack-config.ts
|
|
8
8
|
var DEFAULT_AUTOTRACK_LOOP_CONFIG = {
|
|
9
9
|
deadZoneFraction: .5,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ao as BaseAddon, Is as isEvent, Ui as ptzAutotrackCapability, _c as EventCategory, bn as bareAddonId, gc as errMsg, tt as FIRST_LEVEL_MACRO_CLASSES } from "../../dist-
|
|
1
|
+
import { Ao as BaseAddon, Is as isEvent, Ui as ptzAutotrackCapability, _c as EventCategory, bn as bareAddonId, gc as errMsg, tt as FIRST_LEVEL_MACRO_CLASSES } from "../../dist-W0Eyg7Fm.mjs";
|
|
2
2
|
//#region src/builtins/autotrack/autotrack-config.ts
|
|
3
3
|
var DEFAULT_AUTOTRACK_LOOP_CONFIG = {
|
|
4
4
|
deadZoneFraction: .5,
|
|
@@ -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-CA672buZ.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-ChBlqNSj.js");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
10
10
|
let node_fs_promises = require("node:fs/promises");
|
|
11
11
|
node_fs_promises = require_chunk.__toESM(node_fs_promises);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Ao as BaseAddon, Da as storageOccupancyCapability, _c as EventCategory, cc as toNodeId, di as mayWriteToLocation, qs as nodePin, yn as backupCapability } from "../../dist-
|
|
1
|
+
import { Ao as BaseAddon, Da as storageOccupancyCapability, _c as EventCategory, cc as toNodeId, di as mayWriteToLocation, qs as nodePin, yn as backupCapability } from "../../dist-W0Eyg7Fm.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-CfET1ups.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import * as fsp from "node:fs/promises";
|
|
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-CA672buZ.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 { Ao as BaseAddon, On as calendarsCapability, T as CalendarPreferencesSchema, Ts as defineRecordKinds } from "../../dist-
|
|
1
|
+
import { Ao as BaseAddon, On as calendarsCapability, T as CalendarPreferencesSchema, Ts as defineRecordKinds } from "../../dist-W0Eyg7Fm.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-CA672buZ.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let _camstack_types_node = require("@camstack/types/node");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ao as BaseAddon, Ct as MOTION_CLOSE_AFTER_MS, K as DeclaredDevices, L as DERIVED_CAMERA_SILENCED_CAP_NAMES, Ns as hydrateSchema, Sa as snapshotCapability, _c as EventCategory, ao as buildFfmpegArgs, bn as bareAddonId, bs as createEvent, er as declarationOwnerNodeId, gc as errMsg, hc as DeviceType, ka as streamCatalogCapability, kn as cameraGridLayoutCapability, m as BaseDevice, mi as memoizePinnedFfmpeg, pc as DeviceFeature, yi as motionCapability } from "../../dist-
|
|
1
|
+
import { Ao as BaseAddon, Ct as MOTION_CLOSE_AFTER_MS, K as DeclaredDevices, L as DERIVED_CAMERA_SILENCED_CAP_NAMES, Ns as hydrateSchema, Sa as snapshotCapability, _c as EventCategory, ao as buildFfmpegArgs, bn as bareAddonId, bs as createEvent, er as declarationOwnerNodeId, gc as errMsg, hc as DeviceType, ka as streamCatalogCapability, kn as cameraGridLayoutCapability, m as BaseDevice, mi as memoizePinnedFfmpeg, pc as DeviceFeature, yi as motionCapability } from "../../dist-W0Eyg7Fm.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { FfmpegProcess } from "@camstack/types/node";
|
|
4
4
|
import { join } from "node:path";
|
|
@@ -3,9 +3,9 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
7
|
-
const require_composition_sources = require("../../composition-sources-
|
|
8
|
-
const require_capture_engine = require("../../capture-engine-
|
|
6
|
+
const require_dist = require("../../dist-CA672buZ.js");
|
|
7
|
+
const require_composition_sources = require("../../composition-sources-7wEQtB6b.js");
|
|
8
|
+
const require_capture_engine = require("../../capture-engine-cNrHuwWH.js");
|
|
9
9
|
const require_retention = require("../../retention-BNONb5X_.js");
|
|
10
10
|
let zod = require("zod");
|
|
11
11
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $a as DEFAULT_HISTORY_RETENTION, Ao as BaseAddon, Bn as composerCapability, Co as openReset, Do as statisticCadenceMs, Dr as featureForwards, Eo as planStatisticTier, Fn as climateControlCapability, Ha as valveCapability, Jn as coverCapability, K as DeclaredDevices, Ln as colorCapability, Ma as switchCapability, Nr as groupCommandsCapability, Oo as toExpressionValue, Pi as planComposition, Pr as groupTemplate, Rs as isReadingQuantity, Sn as brightnessCapability, So as nextLocalMidnight, Sr as expressionContainsBuiltinCall, To as planResetTier, Tr as fanOutTargets, Vi as processTimeZoneOr, Vn as compositionFieldKey, Xa as COMPOSER_ADDON_ID, Xr as kebabToCamel, _a as sharedActuatorMethods, _c as EventCategory, ai as lockControlCapability, b as COMPOSED_ITEM_FIXED_FIELDS, bo as isForwardInputRef, bs as createEvent, ca as runFanOut, co as composedDeviceStableId, do as compositionSliceKey, eo as HISTORY_FAST_MS, fi as mediaPlayerCapability, fo as compositionSourceKey, ft as HvacModeSchema, ga as sharedActuatorFeatures, gc as errMsg, go as evaluateStatistic, hc as DeviceType, hi as methodRefusal, ho as evaluateDerivative, ia as resolveMutate, io as MINUTE_MS, ji as parseColorInput, lo as compositionFeatureEnabled, m as BaseDevice, mo as disarmRoseMemory, n as ACTUATOR_METHODS, no as HOUR_MS, o as ALL_CAPABILITY_DEFINITIONS, oo as cloneStatefulExpressionMemory, pi as mediaPlayerFeaturesOfRoles, po as createStatefulExpressionMemory, r as ACTUATOR_TEMPLATE_IDS, rt as FanDirectionSchema, so as composedDeviceRef, st as GroupCommandResultSchema, to as HISTORY_SLOW_MS, tr as declaredSeriesKind, uo as compositionItemFieldPath, va as sharedColorModes, vo as historyRetentionFromSettings, vr as evaluateCompositionField, wn as buildCapabilityLookup, wo as openStatistic, wr as fanControlCapability, xo as isHistoryHelper, yi as motionCapability, yo as integrateReading } from "../../dist-
|
|
2
|
-
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-
|
|
3
|
-
import { i as capSeriesKey } from "../../capture-engine-
|
|
1
|
+
import { $a as DEFAULT_HISTORY_RETENTION, Ao as BaseAddon, Bn as composerCapability, Co as openReset, Do as statisticCadenceMs, Dr as featureForwards, Eo as planStatisticTier, Fn as climateControlCapability, Ha as valveCapability, Jn as coverCapability, K as DeclaredDevices, Ln as colorCapability, Ma as switchCapability, Nr as groupCommandsCapability, Oo as toExpressionValue, Pi as planComposition, Pr as groupTemplate, Rs as isReadingQuantity, Sn as brightnessCapability, So as nextLocalMidnight, Sr as expressionContainsBuiltinCall, To as planResetTier, Tr as fanOutTargets, Vi as processTimeZoneOr, Vn as compositionFieldKey, Xa as COMPOSER_ADDON_ID, Xr as kebabToCamel, _a as sharedActuatorMethods, _c as EventCategory, ai as lockControlCapability, b as COMPOSED_ITEM_FIXED_FIELDS, bo as isForwardInputRef, bs as createEvent, ca as runFanOut, co as composedDeviceStableId, do as compositionSliceKey, eo as HISTORY_FAST_MS, fi as mediaPlayerCapability, fo as compositionSourceKey, ft as HvacModeSchema, ga as sharedActuatorFeatures, gc as errMsg, go as evaluateStatistic, hc as DeviceType, hi as methodRefusal, ho as evaluateDerivative, ia as resolveMutate, io as MINUTE_MS, ji as parseColorInput, lo as compositionFeatureEnabled, m as BaseDevice, mo as disarmRoseMemory, n as ACTUATOR_METHODS, no as HOUR_MS, o as ALL_CAPABILITY_DEFINITIONS, oo as cloneStatefulExpressionMemory, pi as mediaPlayerFeaturesOfRoles, po as createStatefulExpressionMemory, r as ACTUATOR_TEMPLATE_IDS, rt as FanDirectionSchema, so as composedDeviceRef, st as GroupCommandResultSchema, to as HISTORY_SLOW_MS, tr as declaredSeriesKind, uo as compositionItemFieldPath, va as sharedColorModes, vo as historyRetentionFromSettings, vr as evaluateCompositionField, wn as buildCapabilityLookup, wo as openStatistic, wr as fanControlCapability, xo as isHistoryHelper, yi as motionCapability, yo as integrateReading } from "../../dist-W0Eyg7Fm.mjs";
|
|
2
|
+
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-QUbTSbQL.mjs";
|
|
3
|
+
import { i as capSeriesKey } from "../../capture-engine-7_Barr9F.mjs";
|
|
4
4
|
import { i as DAY_MS, t as DEFAULT_RETENTION } from "../../retention-B9l9TnGE.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-CA672buZ.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 { Ao as BaseAddon, si as logDestinationCapability } from "../../dist-
|
|
1
|
+
import { Ao as BaseAddon, si as logDestinationCapability } from "../../dist-W0Eyg7Fm.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-CA672buZ.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-7wEQtB6b.js");
|
|
6
|
+
const require_capture_engine = require("../../capture-engine-cNrHuwWH.js");
|
|
7
7
|
const require_prefix_range = require("../../prefix-range-D_KueXbQ.js");
|
|
8
8
|
const require_prefix_walk = require("../../prefix-walk-Dv6MLZlM.js");
|
|
9
9
|
let zod = require("zod");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as EMPTY_REMOTE_CONFIG, $i as resolveCoreBlockEntry, Ao as BaseAddon, C as CORE_BLOCK_ADDON_PREFIX, Ci as normalizeCoreBlockWrite, Cn as buildActionSteps, D as ConditionMirror, Er as fanPresetsCapability, Fa as timedRunLimitOf, Ft as QuantityUnitError, Gn as coreBlockIdFromAddonId, Gr as isInternalActionId, Hi as proposeRunningThreshold, Hn as compositionSourceRefs, Ht as RemoteConfigSchema, I as DEFAULT_HOLD_OVERRIDE, Ia as timedRunSeconds, Ii as powerSourceCapability, In as collectWhenMirrorSources, Ir as internalActionId, Ji as remoteLayoutComponentsCapability, K as DeclaredDevices, Ka as vocabActionIdFor, Kn as coreBlockSourceKind, Kt as SchedulerError, Li as powerSourceLinkOfComposition, Lt as REMOTE_MEDIA_COMMANDS, Na as templateCapability, Ns as hydrateSchema, O as ControlStatusSchema, Oi as occurrenceOn, Pa as timedRunCapability, Pi as planComposition, Pn as checkTemplatePayload, Q as EMPTY_REMOTE_ASSUMED_STATE, Qa as DAY_MS, S as CORE_BLOCKS_ADDON_ID, Si as normalizeCapStep, Ss as defineAddonMigrations, Ts as defineRecordKinds, Un as coreBlockAddonId, Us as isSecretRefOwnedBy, Ut as RunningStateStatusSchema, Va as validateSchedulerInput, Vs as isSecretMarker, Vt as RemoteAssumedStateSchema, Wn as coreBlockComposition, Xi as resolveActionVariables, Xn as customKeyOfRole, Xr as kebabToCamel, Ya as zoneOnlySite, Yi as replacedFieldKeys, Z as EMPTY_AUTOMATION_STATE, Za as CompositionSchema, Zn as customRole, _c as EventCategory$1, _o as helperMembers, ac as secretTreeFromSchema, ar as describeComposableCaps, ba as siteFor, bi as nextOccurrence, c as ActionStepSchema, cn as actionsCapability, da as schedulersCapability, ea as resolveCoreBlockFiles, et as FAN_CAPTURE_FIELDS, f as AutomationStateDocSchema, fo as compositionSourceKey, gc as errMsg$1, gn as appendTrace, hc as DeviceType$1, it as FanPresetSchema, jn as capUnitResolver, jt as PowerSourceInfoSchema, k as CoreBlockSchema, l as ActionTargetResolver, la as runSteps, ln as addonIdOfActionId, mt as INTERNAL_ACTION_PREFIX, nc as resolveSecretMarkers, ni as localDateOf, nn as TemplateKindSchema, nt as FanControlStatusSchema, o as ALL_CAPABILITY_DEFINITIONS, oi as lockDoorLinkOfComposition, on as actionEffect, p as BUILTIN_REMOTE_COMPONENTS, pt as IDLE_ACTION_STATUS, qa as weekdayOfLocalDate, qi as remoteCapability, qn as coreBlocksCapability, qt as SchedulerSchema, ro as HelperMemberSchema, s as ActionError, sa as resolveStepArgs, sn as actionSourceCapability, so as composedDeviceRef, t as ACTION_TARGET_INVALIDATION_EVENTS, tn as SwitchStatusSchema, u as ActionVariableSchema, uc as transformSecretWrite, vo as historyRetentionFromSettings, vs as collectSecretMarkerRefs, wi as normalizeStepTargets, wn as buildCapabilityLookup, wt as MediaPlayerStatusSchema, x as COMPOSER_RUNNER_ID, xi as normalizeActionUnits, yr as evaluateWhenTree, za as validateComposition, zi as problemsBlockSave, zn as compileScalarOverride } from "../../dist-
|
|
1
|
+
import { $ as EMPTY_REMOTE_CONFIG, $i as resolveCoreBlockEntry, Ao as BaseAddon, C as CORE_BLOCK_ADDON_PREFIX, Ci as normalizeCoreBlockWrite, Cn as buildActionSteps, D as ConditionMirror, Er as fanPresetsCapability, Fa as timedRunLimitOf, Ft as QuantityUnitError, Gn as coreBlockIdFromAddonId, Gr as isInternalActionId, Hi as proposeRunningThreshold, Hn as compositionSourceRefs, Ht as RemoteConfigSchema, I as DEFAULT_HOLD_OVERRIDE, Ia as timedRunSeconds, Ii as powerSourceCapability, In as collectWhenMirrorSources, Ir as internalActionId, Ji as remoteLayoutComponentsCapability, K as DeclaredDevices, Ka as vocabActionIdFor, Kn as coreBlockSourceKind, Kt as SchedulerError, Li as powerSourceLinkOfComposition, Lt as REMOTE_MEDIA_COMMANDS, Na as templateCapability, Ns as hydrateSchema, O as ControlStatusSchema, Oi as occurrenceOn, Pa as timedRunCapability, Pi as planComposition, Pn as checkTemplatePayload, Q as EMPTY_REMOTE_ASSUMED_STATE, Qa as DAY_MS, S as CORE_BLOCKS_ADDON_ID, Si as normalizeCapStep, Ss as defineAddonMigrations, Ts as defineRecordKinds, Un as coreBlockAddonId, Us as isSecretRefOwnedBy, Ut as RunningStateStatusSchema, Va as validateSchedulerInput, Vs as isSecretMarker, Vt as RemoteAssumedStateSchema, Wn as coreBlockComposition, Xi as resolveActionVariables, Xn as customKeyOfRole, Xr as kebabToCamel, Ya as zoneOnlySite, Yi as replacedFieldKeys, Z as EMPTY_AUTOMATION_STATE, Za as CompositionSchema, Zn as customRole, _c as EventCategory$1, _o as helperMembers, ac as secretTreeFromSchema, ar as describeComposableCaps, ba as siteFor, bi as nextOccurrence, c as ActionStepSchema, cn as actionsCapability, da as schedulersCapability, ea as resolveCoreBlockFiles, et as FAN_CAPTURE_FIELDS, f as AutomationStateDocSchema, fo as compositionSourceKey, gc as errMsg$1, gn as appendTrace, hc as DeviceType$1, it as FanPresetSchema, jn as capUnitResolver, jt as PowerSourceInfoSchema, k as CoreBlockSchema, l as ActionTargetResolver, la as runSteps, ln as addonIdOfActionId, mt as INTERNAL_ACTION_PREFIX, nc as resolveSecretMarkers, ni as localDateOf, nn as TemplateKindSchema, nt as FanControlStatusSchema, o as ALL_CAPABILITY_DEFINITIONS, oi as lockDoorLinkOfComposition, on as actionEffect, p as BUILTIN_REMOTE_COMPONENTS, pt as IDLE_ACTION_STATUS, qa as weekdayOfLocalDate, qi as remoteCapability, qn as coreBlocksCapability, qt as SchedulerSchema, ro as HelperMemberSchema, s as ActionError, sa as resolveStepArgs, sn as actionSourceCapability, so as composedDeviceRef, t as ACTION_TARGET_INVALIDATION_EVENTS, tn as SwitchStatusSchema, u as ActionVariableSchema, uc as transformSecretWrite, vo as historyRetentionFromSettings, vs as collectSecretMarkerRefs, wi as normalizeStepTargets, wn as buildCapabilityLookup, wt as MediaPlayerStatusSchema, x as COMPOSER_RUNNER_ID, xi as normalizeActionUnits, yr as evaluateWhenTree, za as validateComposition, zi as problemsBlockSave, zn as compileScalarOverride } from "../../dist-W0Eyg7Fm.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
|
-
import { i as parseDeviceStateChanged, t as describeCompositionSources } from "../../composition-sources-
|
|
4
|
-
import { i as capSeriesKey } from "../../capture-engine-
|
|
3
|
+
import { i as parseDeviceStateChanged, t as describeCompositionSources } from "../../composition-sources-QUbTSbQL.mjs";
|
|
4
|
+
import { i as capSeriesKey } from "../../capture-engine-7_Barr9F.mjs";
|
|
5
5
|
import { t as prefixRange } from "../../prefix-range-Dl0znowN.mjs";
|
|
6
6
|
import { n as unwrapStoredValue, t as loadPrefixed } from "../../prefix-walk-DAOBSyH1.mjs";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
@@ -3,8 +3,8 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
7
|
-
const require_capture_engine = require("../../capture-engine-
|
|
6
|
+
const require_dist = require("../../dist-CA672buZ.js");
|
|
7
|
+
const require_capture_engine = require("../../capture-engine-cNrHuwWH.js");
|
|
8
8
|
const require_retention = require("../../retention-BNONb5X_.js");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
10
10
|
//#region src/builtins/device-history/capture/point-writer.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Ao as BaseAddon, Ds as emitReadiness, Ms as historyUnitFor, Rs as isReadingQuantity, Ts as defineRecordKinds, _c as EventCategory, _n as armRemovalReconcile, ct as HISTORY_CATALOG, dr as deviceRemovalHookCapability, fr as deviceRunsCapability, hc as DeviceType, ko as wattMillisecondsToKwh, lr as deviceHistoryCapability, lt as HISTORY_ITEM_CATALOG, q as DeviceRunSchema, z as DEVICE_HISTORY_ENERGY_KEY } from "../../dist-
|
|
2
|
-
import { a as catalogMetrics, c as DeviceDirectory, d as identityOf, f as subjectIdOf, i as capSeriesKey, l as isRealDeviceType, n as CaptureEngine, o as readPath, r as capItemSeriesKey, s as readUnit, t as CAP_KEY_PREFIX, u as SeriesRegistry } from "../../capture-engine-
|
|
1
|
+
import { Ao as BaseAddon, Ds as emitReadiness, Ms as historyUnitFor, Rs as isReadingQuantity, Ts as defineRecordKinds, _c as EventCategory, _n as armRemovalReconcile, ct as HISTORY_CATALOG, dr as deviceRemovalHookCapability, fr as deviceRunsCapability, hc as DeviceType, ko as wattMillisecondsToKwh, lr as deviceHistoryCapability, lt as HISTORY_ITEM_CATALOG, q as DeviceRunSchema, z as DEVICE_HISTORY_ENERGY_KEY } from "../../dist-W0Eyg7Fm.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-7_Barr9F.mjs";
|
|
3
3
|
import { a as FIVE_MINUTES_MS, c as bucketEndOf, i as DAY_MS, l as bucketStartOf, n as RetentionJob, o as HOUR_MS, r as DepartureTracker, s as ROLLUP_GRACE_MS, t as DEFAULT_RETENTION, u as floorTo } from "../../retention-B9l9TnGE.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
//#region src/builtins/device-history/capture/point-writer.ts
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-CA672buZ.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
const require_prefix_range = require("../../prefix-range-D_KueXbQ.js");
|
|
9
9
|
const require_prefix_walk = require("../../prefix-walk-Dv6MLZlM.js");
|