@camstack/server 1.2.804 → 1.2.806
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/agent/main.js +1 -1
- package/dist/api/core/addon-settings.router.js +2 -2
- package/dist/api/trpc/device-config-secret-redaction.js +3 -5
- package/dist/api/trpc/generated-cap-routers.js +10 -24
- package/dist/api/trpc/localized-schema-paths.js +0 -2
- package/dist/core/addon/addon-registry.service.js +4 -4
- package/dist/core/addon/addon-settings-provider.js +2 -49
- package/package.json +13 -15
- package/system/dist/addon-runner.js +2 -9
- package/system/dist/addon-runner.mjs +2 -9
- package/system/dist/{agent-https-BFvIRgIa.js → agent-https-CuChFRA2.js} +1 -1
- package/system/dist/{agent-https-Bp70et-W.mjs → agent-https-DS4b0ucn.mjs} +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +3 -3
- package/system/dist/builtins/composer/composer.addon.mjs +3 -3
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +4 -5
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +4 -5
- 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-alias-actions.d.ts +45 -0
- package/system/dist/builtins/device-manager/device-manager.addon.js +961 -768
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +961 -768
- package/system/dist/builtins/device-manager/device-meta-types.d.ts +3 -0
- package/system/dist/builtins/device-manager/device-row-store.d.ts +8 -0
- package/system/dist/builtins/device-manager/device-template/mirror-resolver.d.ts +19 -0
- package/system/dist/builtins/device-manager/device-template/nunjucks-internals.d.ts +53 -0
- package/system/dist/builtins/device-manager/device-template/template-filters.d.ts +28 -0
- package/system/dist/builtins/device-manager/device-template/template-grammar.d.ts +43 -0
- package/system/dist/builtins/device-manager/device-template/template-protocol.d.ts +33 -0
- package/system/dist/builtins/device-manager/device-template/template-renderer.d.ts +54 -0
- package/system/dist/builtins/device-manager/device-template/template-worker.d.ts +1 -0
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/local-network.addon.js +2 -2
- package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/system/dist/builtins/loki-logging/index.js +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 +2 -2
- package/system/dist/builtins/snapshot/index.mjs +2 -2
- package/system/dist/builtins/snapshot/snapshot.addon.d.ts +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/bootstrap-form-actions.d.ts +4 -4
- package/system/dist/builtins/system-config/system-config.addon.js +7 -7
- 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-Sh4zAKR0.js → capture-engine-Byc5Fkp0.js} +1 -1
- package/system/dist/{capture-engine-CQBSd3V1.mjs → capture-engine-CnVIcnyN.mjs} +1 -1
- package/system/dist/{composition-sources-BxSmsp0_.mjs → composition-sources-BhM6G9QT.mjs} +1 -1
- package/system/dist/{composition-sources-rAsv2tZD.js → composition-sources-BxK6ttP9.js} +1 -1
- package/system/dist/{constants-BCQCUHl9.js → constants--xo6Q-KA.js} +1 -1
- package/system/dist/{constants-BfgfqUFH.mjs → constants-Bf1PEHRU.mjs} +1 -1
- package/system/dist/{device-ca-D7JZLEAn.mjs → device-ca-Do0-HV_h.mjs} +1 -1
- package/system/dist/{device-ca-BgCwLzMX.js → device-ca-Uq5KGFSq.js} +1 -1
- package/system/dist/device-template-worker.js +7289 -0
- package/system/dist/device-template-worker.mjs +7287 -0
- package/system/dist/{dist-BpIvMLVc.js → dist-2SHQaxaS.js} +607 -616
- package/system/dist/{dist-Bvw9utDk.mjs → dist-CogtCQxu.mjs} +590 -617
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-DZwGhLx-.js → hub-mdns-ciao-DqPrLiYH.js} +2 -2
- package/system/dist/{hub-mdns-ciao-qefBaLZn.mjs → hub-mdns-ciao-aFHCKrif.mjs} +2 -2
- package/system/dist/index.js +28 -48
- package/system/dist/index.mjs +28 -48
- package/system/dist/kernel/moleculer/addon-service-factory.d.ts +2 -3
- package/system/dist/kernel/transport/child-cap-protocol.d.ts +2 -2
- package/system/dist/kernel/transport/parent-unowned-call.d.ts +1 -1
- package/system/dist/{legacy-integration-rows-door-gqcsQX0L.js → legacy-integration-rows-door-Bz8rivxI.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-DCfOpaG3.mjs → legacy-integration-rows-door-CiuxDLoc.mjs} +1 -1
- package/system/dist/{restore-archive-BS6gi0i-.mjs → restore-archive-BcsSlHR8.mjs} +78 -78
- package/system/dist/{restore-archive-BtgtMV29.js → restore-archive-D-3wmHDq.js} +1 -1
- package/system/dist/{wal-maintenance-CyyJs8fh.js → wal-maintenance-BTR55y--.js} +0 -0
- package/system/dist/{wal-maintenance-DBCFpkyy.mjs → wal-maintenance-jrhYTCn2.mjs} +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.806] - 2026-11-08
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Rebuilt against updated dependencies.
|
|
15
|
+
|
|
16
|
+
## [1.2.805] - 2026-11-08
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- The addon-settings routes for the global and integration settings reads and the global write are removed; a forked call naming them is refused.
|
|
21
|
+
- The device-manager router exposes setAlias for device aliases
|
|
22
|
+
|
|
10
23
|
## [1.2.804] - 2026-11-08
|
|
11
24
|
|
|
12
25
|
### Changed
|
package/dist/agent/main.js
CHANGED
|
@@ -98,7 +98,7 @@ const agentRunnerOfAddon = new system_1.RunnerOfAddon();
|
|
|
98
98
|
* caps, so derive the set from the static cap definitions shipped in
|
|
99
99
|
* `@camstack/types`. Fed to `createParentUnownedCallHandler` so a forked
|
|
100
100
|
* addon on this agent calling e.g.
|
|
101
|
-
* `addon-settings.
|
|
101
|
+
* `addon-settings.getScopedSettings({addonId, cap, scope, nodeId})` forwards UNPINNED to
|
|
102
102
|
* the hub singleton (which reads `nodeId` as data) instead of being pinned to
|
|
103
103
|
* a node with no provider (dead broker fallback → ServiceNotFoundError).
|
|
104
104
|
*/
|
|
@@ -30,13 +30,13 @@ exports.createAddonSettingsRouter = createAddonSettingsRouter;
|
|
|
30
30
|
*
|
|
31
31
|
* A forked addon's settings live in its own namespaced blob (`namespace
|
|
32
32
|
* <addonId>`, collection `addon-settings`, key `root`), which this router does
|
|
33
|
-
* not read — use the `addonSettings` cap (`
|
|
33
|
+
* not read — use the `addonSettings` cap (`getScopedSettings`) for an addon's
|
|
34
34
|
* hydrated settings, whichever process it runs in.
|
|
35
35
|
*
|
|
36
36
|
* The write methods (`updateGlobal` / `updateDevice` / `replaceGlobal`) are
|
|
37
37
|
* GONE (D675): they had no callers, threw `SettingsStore not initialized` on
|
|
38
38
|
* every isolated-engine hub, and bypassed the schema gate. Write an addon's
|
|
39
|
-
* settings through the `addonSettings` cap (`
|
|
39
|
+
* settings through the `addonSettings` cap (`updateScopedSettings`, which also
|
|
40
40
|
* applies per-node scoping).
|
|
41
41
|
*
|
|
42
42
|
* ## ⚠️ ADMIN-ONLY — every method here is `adminProcedure`
|
|
@@ -322,8 +322,8 @@ function redactFormField(field) {
|
|
|
322
322
|
: redacted;
|
|
323
323
|
}
|
|
324
324
|
/**
|
|
325
|
-
* Project an ADDON settings form (`addonSettings.
|
|
326
|
-
* `
|
|
325
|
+
* Project an ADDON settings form (`addonSettings.getScopedSettings` /
|
|
326
|
+
* `getIntegrationFormSchema` / `getDeviceSettings`, a `SettingsSchemaWithValues`).
|
|
327
327
|
*
|
|
328
328
|
* Unlike {@link redactSettingsSections} (device forms, whose secrets are named
|
|
329
329
|
* by key convention) this decides by the FIELD: an addon's credential is often
|
|
@@ -332,7 +332,7 @@ function redactFormField(field) {
|
|
|
332
332
|
* `hydrateSchema` fills a password field with its stored value on purpose (a
|
|
333
333
|
* masked value clobbered secrets on save), so this boundary is the only place
|
|
334
334
|
* the value is withheld from a non-admin; an admin still gets the real form,
|
|
335
|
-
* and `
|
|
335
|
+
* and `updateScopedSettings` / `updateDeviceSettings` are admin-only, so a
|
|
336
336
|
* redacted value can never be written back (D634).
|
|
337
337
|
*/
|
|
338
338
|
function redactSettingsForm(data) {
|
|
@@ -494,9 +494,7 @@ exports.NON_ADMIN_SECRET_FREE_BY_CONTRACT = new Set([
|
|
|
494
494
|
*/
|
|
495
495
|
exports.NON_ADMIN_CONFIG_REDACTED_METHODS = new Map([
|
|
496
496
|
// ── Addon settings forms (D634) — hydrated with the STORED secret ──
|
|
497
|
-
['addonSettings.getGlobalSettings', redactSettingsForm],
|
|
498
497
|
['addonSettings.getScopedSettings', redactSettingsForm],
|
|
499
|
-
['addonSettings.getIntegrationSettings', redactSettingsForm],
|
|
500
498
|
['addonSettings.getIntegrationFormSchema', redactSettingsForm],
|
|
501
499
|
['addonSettings.getDeviceSettings', redactSettingsForm],
|
|
502
500
|
['deviceExport.getStatus', redactExportSetup],
|
|
@@ -640,22 +640,6 @@ function createCapRouter_addonRoutes(getProvider, createRemoteProxy) {
|
|
|
640
640
|
}
|
|
641
641
|
function createCapRouter_addonSettings(getProvider, _createRemoteProxy) {
|
|
642
642
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
643
|
-
getGlobalSettings: trpc_middleware_js_1.protectedProcedure
|
|
644
|
-
.input(types_10.addonSettingsCapability.methods.getGlobalSettings.input.loose())
|
|
645
|
-
.output(types_10.addonSettingsCapability.methods.getGlobalSettings.output)
|
|
646
|
-
.query(async ({ input, ctx }) => {
|
|
647
|
-
const p = requireCapProvider('addon-settings', () => getProvider(ctx));
|
|
648
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
649
|
-
return p.getGlobalSettings(input);
|
|
650
|
-
}),
|
|
651
|
-
updateGlobalSettings: trpc_middleware_js_1.adminProcedure
|
|
652
|
-
.input(types_10.addonSettingsCapability.methods.updateGlobalSettings.input.loose())
|
|
653
|
-
.output(types_10.addonSettingsCapability.methods.updateGlobalSettings.output)
|
|
654
|
-
.mutation(async ({ input, ctx }) => {
|
|
655
|
-
const p = requireCapProvider('addon-settings', () => getProvider(ctx));
|
|
656
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
657
|
-
return p.updateGlobalSettings(input);
|
|
658
|
-
}),
|
|
659
643
|
getScopedSettings: trpc_middleware_js_1.protectedProcedure
|
|
660
644
|
.input(types_10.addonSettingsCapability.methods.getScopedSettings.input.loose())
|
|
661
645
|
.output(types_10.addonSettingsCapability.methods.getScopedSettings.output)
|
|
@@ -688,14 +672,6 @@ function createCapRouter_addonSettings(getProvider, _createRemoteProxy) {
|
|
|
688
672
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
689
673
|
return p.readScopedValues(input);
|
|
690
674
|
}),
|
|
691
|
-
getIntegrationSettings: trpc_middleware_js_1.protectedProcedure
|
|
692
|
-
.input(types_10.addonSettingsCapability.methods.getIntegrationSettings.input.loose())
|
|
693
|
-
.output(types_10.addonSettingsCapability.methods.getIntegrationSettings.output)
|
|
694
|
-
.query(async ({ input, ctx }) => {
|
|
695
|
-
const p = requireCapProvider('addon-settings', () => getProvider(ctx));
|
|
696
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
697
|
-
return p.getIntegrationSettings(input);
|
|
698
|
-
}),
|
|
699
675
|
getIntegrationFormSchema: trpc_middleware_js_1.protectedProcedure
|
|
700
676
|
.input(types_10.addonSettingsCapability.methods.getIntegrationFormSchema.input.loose())
|
|
701
677
|
.output(types_10.addonSettingsCapability.methods.getIntegrationFormSchema.output)
|
|
@@ -3411,6 +3387,16 @@ function createCapRouter_deviceManager(getProvider, createRemoteProxy) {
|
|
|
3411
3387
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
3412
3388
|
return p.setName(methodInput);
|
|
3413
3389
|
}),
|
|
3390
|
+
setAlias: trpc_middleware_js_1.adminProcedure
|
|
3391
|
+
.input(types_53.deviceManagerCapability.methods.setAlias.input.loose())
|
|
3392
|
+
.output(types_53.deviceManagerCapability.methods.setAlias.output)
|
|
3393
|
+
.mutation(async ({ input, ctx }) => {
|
|
3394
|
+
const parsedInput = ctx.req !== undefined ? (0, types_3.withoutCallerStamp)(input) : input;
|
|
3395
|
+
const { nodeId, ...methodInput } = parsedInput;
|
|
3396
|
+
const p = resolveProvider('device-manager', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
3397
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
3398
|
+
return p.setAlias(methodInput);
|
|
3399
|
+
}),
|
|
3414
3400
|
setLocation: trpc_middleware_js_1.adminProcedure
|
|
3415
3401
|
.input(types_53.deviceManagerCapability.methods.setLocation.input.loose())
|
|
3416
3402
|
.output(types_53.deviceManagerCapability.methods.setLocation.output)
|
|
@@ -12,9 +12,7 @@ exports.LOCALIZED_SCHEMA_PATHS = void 0;
|
|
|
12
12
|
* schema served from a path not listed simply stays English.
|
|
13
13
|
*/
|
|
14
14
|
exports.LOCALIZED_SCHEMA_PATHS = new Set([
|
|
15
|
-
'addonSettings.getGlobalSettings',
|
|
16
15
|
'addonSettings.getScopedSettings',
|
|
17
|
-
'addonSettings.getIntegrationSettings',
|
|
18
16
|
'addonSettings.getIntegrationFormSchema',
|
|
19
17
|
'addonSettings.getDeviceSettings',
|
|
20
18
|
'deviceManager.getDeviceSettingsAggregate',
|
|
@@ -243,7 +243,7 @@ function isShareViewKind(value) {
|
|
|
243
243
|
// Phase 11 (settings redesign): `stripValue` helper and the legacy
|
|
244
244
|
// `getAddonConfigSchema / getAddonConfig / updateAddonConfig` adapter
|
|
245
245
|
// shim that consumed it were deleted. All settings flow through the
|
|
246
|
-
// new `getAddonSettings /
|
|
246
|
+
// new `getAddonSettings / getScopedSettings / getDeviceSettings`
|
|
247
247
|
// endpoints on the `addon-settings` singleton capability.
|
|
248
248
|
/**
|
|
249
249
|
* Capabilities whose provider OWNS its readiness protocol
|
|
@@ -2448,7 +2448,7 @@ class AddonRegistryService {
|
|
|
2448
2448
|
* shim that synthesised a plain `ConfigUISchema` view from the new
|
|
2449
2449
|
* three-level methods — are gone. All settings traffic goes through
|
|
2450
2450
|
* the six Phase 5 tRPC endpoints (`addons.getAddonSettings`,
|
|
2451
|
-
* `updateAddonSettings`, `
|
|
2451
|
+
* `updateAddonSettings`, `getScopedSettings`, `updateScopedSettings`,
|
|
2452
2452
|
* `getDeviceSettings`, `updateDeviceSettings`) which call the
|
|
2453
2453
|
* addon's methods directly via the `addon-settings` singleton capability.
|
|
2454
2454
|
*/
|
|
@@ -2929,7 +2929,7 @@ class AddonRegistryService {
|
|
|
2929
2929
|
// the legacy `ICamstackAddon.getConfigSchema()` method, exposed via
|
|
2930
2930
|
// `listAddons().hasConfigSchema` for the old AddonCard settings gate.
|
|
2931
2931
|
// `NodeAddonsSettingsPanel` now gracefully shows an empty state when
|
|
2932
|
-
// an addon
|
|
2932
|
+
// an addon serves no scoped settings, so the backend no
|
|
2933
2933
|
// longer needs to pre-compute this flag.
|
|
2934
2934
|
emitAddonLifecycleEvent(eventType, addonId, data) {
|
|
2935
2935
|
const entry = this.addonEntries.get(addonId);
|
|
@@ -3047,7 +3047,7 @@ class AddonRegistryService {
|
|
|
3047
3047
|
// for the addon store, the per-device store, and the cluster-wide
|
|
3048
3048
|
// yml-backed sections. No schema merging happens here — the addon
|
|
3049
3049
|
// combines these raw reads with its own schema via
|
|
3050
|
-
// `hydrateSchema()` inside `getAddonSettings /
|
|
3050
|
+
// `hydrateSchema()` inside `getAddonSettings / getScopedSettings
|
|
3051
3051
|
// / getDeviceSettings`.
|
|
3052
3052
|
const settingsView = this.configService.createSettingsView(addonId);
|
|
3053
3053
|
// Device management — unified path for hub and worker addons.
|
|
@@ -77,40 +77,6 @@ function createAddonSettingsProvider(deps) {
|
|
|
77
77
|
}
|
|
78
78
|
// ── Provider implementation ──────────────────────────────────────
|
|
79
79
|
return {
|
|
80
|
-
async getGlobalSettings(input) {
|
|
81
|
-
if (gateway.isInProcess(input.addonId, input.nodeId)) {
|
|
82
|
-
const addon = getAddon(input.addonId);
|
|
83
|
-
if (!addon || typeof addon.getGlobalSettings !== 'function')
|
|
84
|
-
return null;
|
|
85
|
-
// Pass the REQUESTED nodeId so an addon serving a cluster-central,
|
|
86
|
-
// per-node config (the store is hub-resident) can scope to that node —
|
|
87
|
-
// the hub addon answers for every node, so it must not assume "self".
|
|
88
|
-
const result = await addon.getGlobalSettings(input.overlay, input.cap, input.nodeId);
|
|
89
|
-
return result ? reshapeForOutput(result) : null;
|
|
90
|
-
}
|
|
91
|
-
return forkedGet(input.addonId, 'getGlobalSettings', {
|
|
92
|
-
...(input.overlay ? { overlay: input.overlay } : {}),
|
|
93
|
-
...(input.cap ? { cap: input.cap } : {}),
|
|
94
|
-
...(input.nodeId ? { nodeId: input.nodeId } : {}),
|
|
95
|
-
}, input.nodeId);
|
|
96
|
-
},
|
|
97
|
-
async updateGlobalSettings(input) {
|
|
98
|
-
if (gateway.isInProcess(input.addonId, input.nodeId)) {
|
|
99
|
-
const addon = getAddon(input.addonId);
|
|
100
|
-
if (!addon || typeof addon.updateGlobalSettings !== 'function') {
|
|
101
|
-
throw new Error(`Addon "${input.addonId}" does not implement updateGlobalSettings`);
|
|
102
|
-
}
|
|
103
|
-
// The admin API's write is the OPERATOR's (D787).
|
|
104
|
-
if (typeof addon.updateGlobalSettingsAsOperator === 'function') {
|
|
105
|
-
await addon.updateGlobalSettingsAsOperator(input.patch, input.nodeId);
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
await addon.updateGlobalSettings(input.patch, input.nodeId);
|
|
109
|
-
}
|
|
110
|
-
return { success: true };
|
|
111
|
-
}
|
|
112
|
-
return forkedUpdate(input.addonId, 'updateGlobalSettings', { patch: input.patch, ...(input.nodeId ? { nodeId: input.nodeId } : {}) }, input.nodeId);
|
|
113
|
-
},
|
|
114
80
|
async getScopedSettings(input) {
|
|
115
81
|
if (gateway.isInProcess(input.addonId, input.nodeId)) {
|
|
116
82
|
const addon = getAddon(input.addonId);
|
|
@@ -186,16 +152,6 @@ function createAddonSettingsProvider(deps) {
|
|
|
186
152
|
throw err;
|
|
187
153
|
}
|
|
188
154
|
},
|
|
189
|
-
async getIntegrationSettings(input) {
|
|
190
|
-
if (gateway.isInProcess(input.addonId, input.nodeId)) {
|
|
191
|
-
const addon = getAddon(input.addonId);
|
|
192
|
-
if (!addon || typeof addon.getIntegrationSettings !== 'function')
|
|
193
|
-
return null;
|
|
194
|
-
const result = await addon.getIntegrationSettings(input.nodeId);
|
|
195
|
-
return result ? reshapeForOutput(result) : null;
|
|
196
|
-
}
|
|
197
|
-
return forkedGet(input.addonId, 'getIntegrationSettings', { ...(input.nodeId ? { nodeId: input.nodeId } : {}) }, input.nodeId);
|
|
198
|
-
},
|
|
199
155
|
async getIntegrationFormSchema(input) {
|
|
200
156
|
const instances = deps.instancesFor?.(input.addonId) ?? null;
|
|
201
157
|
if (instances !== null) {
|
|
@@ -205,13 +161,10 @@ function createAddonSettingsProvider(deps) {
|
|
|
205
161
|
const addon = getAddon(input.addonId);
|
|
206
162
|
if (!addon)
|
|
207
163
|
return null;
|
|
208
|
-
// The per-instance hook when the addon has one; its
|
|
209
|
-
// wizard and the edit page always showed).
|
|
164
|
+
// The per-instance hook when the addon has one; its scoped form otherwise.
|
|
210
165
|
const result = typeof addon.getIntegrationFormSchema === 'function'
|
|
211
166
|
? await addon.getIntegrationFormSchema(input.instance, input.nodeId)
|
|
212
|
-
:
|
|
213
|
-
? await addon.getGlobalSettings(undefined, undefined, input.nodeId)
|
|
214
|
-
: null;
|
|
167
|
+
: null;
|
|
215
168
|
return result ? reshapeForOutput(result) : null;
|
|
216
169
|
}
|
|
217
170
|
return forkedGet(input.addonId, 'getIntegrationFormSchema', { instance: input.instance, ...(input.nodeId ? { nodeId: input.nodeId } : {}) }, input.nodeId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.806",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -65,9 +65,7 @@
|
|
|
65
65
|
"@camstack/addon-agent-ui"
|
|
66
66
|
],
|
|
67
67
|
"requires": {
|
|
68
|
-
"addons": {
|
|
69
|
-
"@camstack/addon-admin-ui": ">=1.2.613"
|
|
70
|
-
},
|
|
68
|
+
"addons": {},
|
|
71
69
|
"wrapper": {
|
|
72
70
|
"desktop": ">=0.0.1",
|
|
73
71
|
"image": ">=0.0.1"
|
|
@@ -75,19 +73,19 @@
|
|
|
75
73
|
}
|
|
76
74
|
},
|
|
77
75
|
"dependencies": {
|
|
78
|
-
"@camstack/addon-admin-ui": "1.2.
|
|
79
|
-
"@camstack/addon-agent-ui": "1.2.
|
|
80
|
-
"@camstack/addon-auth": "1.2.
|
|
76
|
+
"@camstack/addon-admin-ui": "1.2.614",
|
|
77
|
+
"@camstack/addon-agent-ui": "1.2.342",
|
|
78
|
+
"@camstack/addon-auth": "1.2.179",
|
|
81
79
|
"@camstack/addon-benchmark": "1.2.312",
|
|
82
|
-
"@camstack/addon-decoder-nodeav": "1.2.
|
|
80
|
+
"@camstack/addon-decoder-nodeav": "1.2.149",
|
|
83
81
|
"@camstack/addon-notifiers": "1.2.633",
|
|
84
|
-
"@camstack/addon-pipeline": "1.2.
|
|
85
|
-
"@camstack/addon-pipeline-orchestrator": "1.2.
|
|
86
|
-
"@camstack/addon-post-analysis": "1.2.
|
|
87
|
-
"@camstack/develop": "0.1.
|
|
88
|
-
"@camstack/sdk": "1.2.
|
|
89
|
-
"@camstack/types": "1.2.
|
|
90
|
-
"@camstack/ui-library": "1.2.
|
|
82
|
+
"@camstack/addon-pipeline": "1.2.648",
|
|
83
|
+
"@camstack/addon-pipeline-orchestrator": "1.2.669",
|
|
84
|
+
"@camstack/addon-post-analysis": "1.2.685",
|
|
85
|
+
"@camstack/develop": "0.1.50",
|
|
86
|
+
"@camstack/sdk": "1.2.157",
|
|
87
|
+
"@camstack/types": "1.2.524",
|
|
88
|
+
"@camstack/ui-library": "1.2.401",
|
|
91
89
|
"@fastify/compress": "^9.0.0",
|
|
92
90
|
"@fastify/cookie": "^11.0.2",
|
|
93
91
|
"@fastify/cors": "^11.2.0",
|
|
@@ -11132,7 +11132,7 @@ async function buildAddonContext(runtime, declaration, dataDir, options) {
|
|
|
11132
11132
|
* to claim, and it was a leftover that read as verification.
|
|
11133
11133
|
* `BaseAddon.resolveConfig` reads THIS function through
|
|
11134
11134
|
* `ctx.settings.readAddonStore()`; the defaults it falls back to then become
|
|
11135
|
-
* the values the addon's next `
|
|
11135
|
+
* the values the addon's next `updateScopedSettings` patch carries into the
|
|
11136
11136
|
* store. That is how the Home Assistant export lost its membership on
|
|
11137
11137
|
* 2026-08-24 — see `brokerRefreshPatch` in the ha-export addon for the other
|
|
11138
11138
|
* half of that story. The line below is the only warning that this window is
|
|
@@ -11459,12 +11459,6 @@ function requireScopedTarget(addonId, method, args) {
|
|
|
11459
11459
|
*/
|
|
11460
11460
|
async function dispatchSettings(addon, addonId, method, args) {
|
|
11461
11461
|
switch (method) {
|
|
11462
|
-
case "getGlobalSettings": return typeof addon.getGlobalSettings === "function" ? await addon.getGlobalSettings(args.overlay, args.cap, args.nodeId) ?? null : null;
|
|
11463
|
-
case "updateGlobalSettings":
|
|
11464
|
-
if (typeof addon.updateGlobalSettings !== "function") throw new Error(`child-addon-call: addon "${addonId}" does not implement updateGlobalSettings`);
|
|
11465
|
-
if (typeof addon.updateGlobalSettingsAsOperator === "function") await addon.updateGlobalSettingsAsOperator(args.patch ?? {}, args.nodeId);
|
|
11466
|
-
else await addon.updateGlobalSettings(args.patch ?? {}, args.nodeId);
|
|
11467
|
-
return { success: true };
|
|
11468
11462
|
case "getScopedSettings": {
|
|
11469
11463
|
const { scope, cap } = requireScopedTarget(addonId, method, args);
|
|
11470
11464
|
return typeof addon.getScopedSettings === "function" ? await addon.getScopedSettings(scope, cap, args.nodeId) ?? null : null;
|
|
@@ -11480,8 +11474,7 @@ async function dispatchSettings(addon, addonId, method, args) {
|
|
|
11480
11474
|
const { scope, cap } = requireScopedTarget(addonId, method, args);
|
|
11481
11475
|
return typeof addon.readScopedValues === "function" ? await addon.readScopedValues(scope, cap, args.nodeId) ?? null : null;
|
|
11482
11476
|
}
|
|
11483
|
-
case "
|
|
11484
|
-
case "getIntegrationFormSchema": return typeof addon.getIntegrationFormSchema === "function" && args.instance !== void 0 ? await addon.getIntegrationFormSchema(args.instance, args.nodeId) ?? null : typeof addon.getGlobalSettings === "function" ? await addon.getGlobalSettings(void 0, void 0, args.nodeId) ?? null : null;
|
|
11477
|
+
case "getIntegrationFormSchema": return typeof addon.getIntegrationFormSchema === "function" && args.instance !== void 0 ? await addon.getIntegrationFormSchema(args.instance, args.nodeId) ?? null : null;
|
|
11485
11478
|
case "getDeviceSettings": return typeof addon.getDeviceSettings === "function" && typeof args.deviceId === "number" ? await addon.getDeviceSettings(args.deviceId) ?? null : null;
|
|
11486
11479
|
case "updateDeviceSettings":
|
|
11487
11480
|
if (typeof addon.updateDeviceSettings !== "function") throw new Error(`child-addon-call: addon "${addonId}" does not implement updateDeviceSettings`);
|
|
@@ -11077,7 +11077,7 @@ async function buildAddonContext(runtime, declaration, dataDir, options) {
|
|
|
11077
11077
|
* to claim, and it was a leftover that read as verification.
|
|
11078
11078
|
* `BaseAddon.resolveConfig` reads THIS function through
|
|
11079
11079
|
* `ctx.settings.readAddonStore()`; the defaults it falls back to then become
|
|
11080
|
-
* the values the addon's next `
|
|
11080
|
+
* the values the addon's next `updateScopedSettings` patch carries into the
|
|
11081
11081
|
* store. That is how the Home Assistant export lost its membership on
|
|
11082
11082
|
* 2026-08-24 — see `brokerRefreshPatch` in the ha-export addon for the other
|
|
11083
11083
|
* half of that story. The line below is the only warning that this window is
|
|
@@ -11404,12 +11404,6 @@ function requireScopedTarget(addonId, method, args) {
|
|
|
11404
11404
|
*/
|
|
11405
11405
|
async function dispatchSettings(addon, addonId, method, args) {
|
|
11406
11406
|
switch (method) {
|
|
11407
|
-
case "getGlobalSettings": return typeof addon.getGlobalSettings === "function" ? await addon.getGlobalSettings(args.overlay, args.cap, args.nodeId) ?? null : null;
|
|
11408
|
-
case "updateGlobalSettings":
|
|
11409
|
-
if (typeof addon.updateGlobalSettings !== "function") throw new Error(`child-addon-call: addon "${addonId}" does not implement updateGlobalSettings`);
|
|
11410
|
-
if (typeof addon.updateGlobalSettingsAsOperator === "function") await addon.updateGlobalSettingsAsOperator(args.patch ?? {}, args.nodeId);
|
|
11411
|
-
else await addon.updateGlobalSettings(args.patch ?? {}, args.nodeId);
|
|
11412
|
-
return { success: true };
|
|
11413
11407
|
case "getScopedSettings": {
|
|
11414
11408
|
const { scope, cap } = requireScopedTarget(addonId, method, args);
|
|
11415
11409
|
return typeof addon.getScopedSettings === "function" ? await addon.getScopedSettings(scope, cap, args.nodeId) ?? null : null;
|
|
@@ -11425,8 +11419,7 @@ async function dispatchSettings(addon, addonId, method, args) {
|
|
|
11425
11419
|
const { scope, cap } = requireScopedTarget(addonId, method, args);
|
|
11426
11420
|
return typeof addon.readScopedValues === "function" ? await addon.readScopedValues(scope, cap, args.nodeId) ?? null : null;
|
|
11427
11421
|
}
|
|
11428
|
-
case "
|
|
11429
|
-
case "getIntegrationFormSchema": return typeof addon.getIntegrationFormSchema === "function" && args.instance !== void 0 ? await addon.getIntegrationFormSchema(args.instance, args.nodeId) ?? null : typeof addon.getGlobalSettings === "function" ? await addon.getGlobalSettings(void 0, void 0, args.nodeId) ?? null : null;
|
|
11422
|
+
case "getIntegrationFormSchema": return typeof addon.getIntegrationFormSchema === "function" && args.instance !== void 0 ? await addon.getIntegrationFormSchema(args.instance, args.nodeId) ?? null : null;
|
|
11430
11423
|
case "getDeviceSettings": return typeof addon.getDeviceSettings === "function" && typeof args.deviceId === "number" ? await addon.getDeviceSettings(args.deviceId) ?? null : null;
|
|
11431
11424
|
case "updateDeviceSettings":
|
|
11432
11425
|
if (typeof addon.updateDeviceSettings !== "function") throw new Error(`child-addon-call: addon "${addonId}" does not implement updateDeviceSettings`);
|
|
@@ -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-2SHQaxaS.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");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Hs as defineRecordKinds } from "./dist-CogtCQxu.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";
|
|
@@ -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-2SHQaxaS.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 { Ic as EventCategory, Ko as BaseAddon, Pc as errMsg, hn as addonPagesCapability } from "../../dist-CogtCQxu.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-2SHQaxaS.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 { Ic as EventCategory, Ko as BaseAddon, Pc as errMsg, _n as addonWidgetsCapability } from "../../dist-CogtCQxu.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-2SHQaxaS.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
let node_fs = require("node:fs");
|
|
9
9
|
node_fs = require_chunk.__toESM(node_fs);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Hs as defineRecordKinds, Ic as EventCategory$1, Ko as BaseAddon, Kr as isAlertEpisodeOpen, Ls as createEvent$1, Pc as errMsg$1, bn as alertsCapability, f as AlertSchema, qr as isAlertEpisodeSeverity, vn as alertEpisodeId, w as CORE_BLOCK_ADDON_PREFIX, yn as alertEpisodePayload } from "../../dist-CogtCQxu.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
3
|
import * as fs$1 from "node:fs";
|
|
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-2SHQaxaS.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 { $s as isEvent, Ic as EventCategory, Ko as BaseAddon, Pc as errMsg, Tn as bareAddonId, ea as ptzAutotrackCapability, rt as FIRST_LEVEL_MACRO_CLASSES } from "../../dist-CogtCQxu.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-2SHQaxaS.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-D-3wmHDq.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 { Ec as toNodeId, Ic as EventCategory, Ko as BaseAddon, dc as nodePin, wn as backupCapability, yi as mayWriteToLocation, za as storageOccupancyCapability } from "../../dist-CogtCQxu.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-BcsSlHR8.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-2SHQaxaS.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 { E as CalendarPreferencesSchema,
|
|
1
|
+
import { E as CalendarPreferencesSchema, Hs as defineRecordKinds, Ko as BaseAddon, Nn as calendarsCapability } from "../../dist-CogtCQxu.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-2SHQaxaS.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 { Ic as EventCategory, J as DeclaredDevices, Ko as BaseAddon, Ls as createEvent, Na as snapshotCapability, Nc as DeviceType, Oi as motionCapability, Pc as errMsg, Pn as cameraGridLayoutCapability, Si as memoizePinnedFfmpeg, Tn as bareAddonId, Tt as MOTION_CLOSE_AFTER_MS, Ur as integrationInstancesCapability, Va as streamCatalogCapability, Vs as defineEntryKind, Xs as hydrateSchema, ec as isInstanceEnabled, h as BaseDevice, hs as RecordIntegrationInstances, jc as DeviceFeature, sr as declarationOwnerNodeId, xo as buildFfmpegArgs, z as DERIVED_CAMERA_SILENCED_CAP_NAMES } from "../../dist-CogtCQxu.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { FfmpegProcess } from "@camstack/types/node";
|
|
@@ -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-2SHQaxaS.js");
|
|
7
|
+
const require_composition_sources = require("../../composition-sources-BxK6ttP9.js");
|
|
8
|
+
const require_capture_engine = require("../../capture-engine-Byc5Fkp0.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 {
|
|
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 { Ao as disarmRoseMemory, Bi as parseColorInput, Bo as openStatistic, Ci as methodRefusal, Co as composedDeviceRef, Da as sharedActuatorFeatures, Dn as brightnessCapability, Do as compositionSliceKey, Eo as compositionItemFieldPath, Fc as featuresOfBoundCaps, Fo as integrateReading, Gi as planComposition, Hi as petFountainCapability, Ho as planStatisticTier, Hr as groupTemplate, Ic as EventCategory, Io as isForwardInputRef, J as DeclaredDevices, Kn as composerCapability, Ko as BaseAddon, Lo as isHistoryHelper, Ls as createEvent, Mo as evaluateStatistic, Mr as fanOutTargets, Nc as DeviceType, Oa as sharedActuatorMethods, Oi as motionCapability, Oo as compositionSourceKey, Pc as errMsg, Po as historyRetentionFromSettings, Pr as featureForwards, Pt as PetFountainStatusSchema, Qi as processTimeZoneOr, Ro as nextLocalMidnight, So as cloneStatefulExpressionMemory, To as compositionFeatureEnabled, Tr as evaluateCompositionField, Ui as petFountainWaterItem, Un as colorCapability, Uo as statisticCadenceMs, Vn as climateControlCapability, Vo as planResetTier, Vr as groupCommandsCapability, Wa as switchCapability, Wo as toExpressionValue, Yn as consumablesCapability, _o as HISTORY_SLOW_MS, at as FanDirectionSchema, bi as mediaPlayerCapability, bo as MINUTE_MS, cr as declaredSeriesKind, fo as COMPOSER_ADDON_ID, go as HISTORY_FAST_MS, h as BaseDevice, ha as resolveMutate, ho as DEFAULT_HISTORY_RETENTION, i as ACTUATOR_TEMPLATE_IDS, ii as kebabToCamel, jo as evaluateDerivative, jr as fanControlCapability, k as ConsumableItemSchema, ka as sharedColorModes, kn as buildCapabilityLookup, ko as createStatefulExpressionMemory, kr as expressionContainsBuiltinCall, lo as withDefaultRunning, lt as GroupCommandResultSchema, mt as HvacModeSchema, nc as isReadingQuantity, pi as lockControlCapability, qn as compositionFieldKey, r as ACTUATOR_METHODS, ro as valveCapability, s as ALL_CAPABILITY_DEFINITIONS, tr as coverCapability, vo as HOUR_MS, wo as composedDeviceStableId, x as COMPOSED_ITEM_FIXED_FIELDS, xi as mediaPlayerFeaturesOfRoles, ya as runFanOut, zo as openReset } from "../../dist-CogtCQxu.mjs";
|
|
2
|
+
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-BhM6G9QT.mjs";
|
|
3
|
+
import { i as capSeriesKey } from "../../capture-engine-CnVIcnyN.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-2SHQaxaS.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 { Ko as BaseAddon, hi as logDestinationCapability } from "../../dist-CogtCQxu.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-2SHQaxaS.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-BxK6ttP9.js");
|
|
6
|
+
const require_capture_engine = require("../../capture-engine-Byc5Fkp0.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");
|
|
@@ -5354,8 +5354,7 @@ function hostOver(api) {
|
|
|
5354
5354
|
capName: cap
|
|
5355
5355
|
}),
|
|
5356
5356
|
fetchStableIds: async () => {
|
|
5357
|
-
|
|
5358
|
-
return new Map(all.flatMap((d) => d.stableId === void 0 ? [] : [[d.stableId, d.id]]));
|
|
5357
|
+
return require_dist.stableIdMapOf(await need().deviceManager.listAll.query({ projection: "slim" }));
|
|
5359
5358
|
},
|
|
5360
5359
|
invokeCap: invokeCapOver(api)
|
|
5361
5360
|
};
|