@camstack/server 1.2.760 → 1.2.762
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 +17 -2
- package/dist/agent/main.js +1 -0
- package/dist/api/core/cap-providers.js +39 -8
- package/dist/api/core/integration-role.js +6 -3
- package/dist/api/trpc/generated-cap-mounts.js +1 -0
- package/dist/api/trpc/generated-cap-routers.js +27 -12
- package/dist/core/addon/addon-registry.service.js +1 -0
- package/package.json +19 -8
- package/system/dist/addon-runner.js +1 -0
- package/system/dist/addon-runner.mjs +1 -0
- package/system/dist/{agent-https-DXDFMq90.js → agent-https-BHpDnJr0.js} +1 -1
- package/system/dist/{agent-https-Bafgj4ni.mjs → agent-https-UksJdbes.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 +7 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +7 -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 +3 -3
- package/system/dist/builtins/keychain/index.mjs +3 -3
- 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 +2 -1
- package/system/dist/builtins/loki-logging/index.mjs +2 -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/integration-registry.d.ts +6 -0
- package/system/dist/builtins/sqlite-storage/integration-rows-ports.d.ts +16 -0
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +2 -2
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +2 -2
- package/system/dist/builtins/storage-orchestrator/location-store.d.ts +8 -0
- package/system/dist/builtins/storage-orchestrator/migrations/index.d.ts +10 -0
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +22 -0
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +260 -19
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +260 -19
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.service.d.ts +54 -21
- package/system/dist/builtins/storage-orchestrator/storage-writability-monitor.d.ts +36 -0
- 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-WttiBMdu.mjs → capture-engine-Btq9LseJ.mjs} +1 -1
- package/system/dist/{capture-engine-CInzGJAh.js → capture-engine-DgcmHuIi.js} +1 -1
- package/system/dist/{composition-sources-DQHH_g-A.js → composition-sources-DrGLoV8D.js} +1 -1
- package/system/dist/{composition-sources-A4LM38lT.mjs → composition-sources-xyPI-9ja.mjs} +1 -1
- package/system/dist/{constants-BAG_5cF6.mjs → constants-B8q9KsGq.mjs} +1 -1
- package/system/dist/{constants-hAbcGGDs.js → constants-BiE3GU1C.js} +1 -1
- package/system/dist/{device-ca-lLGjDsFP.js → device-ca-Bel2vDyJ.js} +1 -1
- package/system/dist/{device-ca-CCIaKs70.mjs → device-ca-D5U9i2AO.mjs} +1 -1
- package/system/dist/{dist-CiwLP3-C.js → dist-B6-AUY2T.js} +166 -24
- package/system/dist/{dist-BIJD_nvZ.mjs → dist-Dd_vXorK.mjs} +166 -24
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-CLlDILdC.js → hub-mdns-ciao-DV7bwoub.js} +2 -2
- package/system/dist/{hub-mdns-ciao-CXsUIWw_.mjs → hub-mdns-ciao-Dz9w_pd0.mjs} +2 -2
- package/system/dist/index.js +54 -7
- package/system/dist/index.mjs +54 -7
- package/system/dist/kernel/addon-loader.d.ts +13 -1
- package/system/dist/kernel/moleculer/addon-context-factory.d.ts +3 -1
- package/system/dist/{restore-archive-Dx9r-ndj.mjs → restore-archive-BcdcInFR.mjs} +1 -1
- package/system/dist/{restore-archive-CN1BA_o6.js → restore-archive-BcstsRhG.js} +1 -1
- package/system/dist/{wal-maintenance-B7wMSexc.mjs → wal-maintenance-Ctp8Q-y7.mjs} +0 -0
- package/system/dist/{wal-maintenance-CecPWej8.js → wal-maintenance-CzjpuF7n.js} +0 -0
- package/system/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,11 +7,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
## [1.2.
|
|
10
|
+
## [1.2.762] - 2026-11-04
|
|
11
11
|
|
|
12
12
|
### Changed
|
|
13
13
|
|
|
14
|
-
-
|
|
14
|
+
- Integrations page, wizard discovery word and test button follow what an addon's integration-instances provider describes (role, discovery)
|
|
15
|
+
|
|
16
|
+
## [1.2.761] - 2026-11-04
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- The Alerts panel now warns, with a link to the Storage page, when a storage type an addon needs has no writable location (for example event media: no thumbnails or track photos are saved), and clears itself once one exists
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- device-export calls name their instance (listInstances; writes require instanceId) and broker connections are integration instances
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- A boot where some addons fail to load no longer deletes the default storage locations of the types those addons declare (event media, recordings, artifacts); the failure is logged and the default is kept
|
|
29
|
+
- A hub whose storage defaults were removed by a failed addon load gets them back on the next boot, once every addon declaring a storage type is readable
|
|
15
30
|
|
|
16
31
|
## [1.2.759] - 2026-11-04
|
|
17
32
|
|
package/dist/agent/main.js
CHANGED
|
@@ -1257,6 +1257,7 @@ async function bootCoreAddons(broker, config, registry, loadedAddons, loggerFact
|
|
|
1257
1257
|
// sqlite-settings aborts boot: "No default storage location
|
|
1258
1258
|
// configured for type addons-data" → fatal crash-loop.
|
|
1259
1259
|
listStorageLocationDeclarations: () => loader.listStorageLocationDeclarations(),
|
|
1260
|
+
listStorageLocationDeclarers: () => loader.listStorageLocationDeclarers(),
|
|
1260
1261
|
});
|
|
1261
1262
|
const initResult = (0, types_2.normalizeAddonInitResult)(await instance.initialize(context));
|
|
1262
1263
|
for (const reg of initResult?.providers ?? []) {
|
|
@@ -971,15 +971,36 @@ exports.INTEGRATION_CAP_MARKERS = new Set(['device-provider', 'device-adoption']
|
|
|
971
971
|
* is listed for its devices. Decided from the manifest, so a not-yet-registered provider does
|
|
972
972
|
* not flash a row in. A row it already has stays in the registry and reachable by id.
|
|
973
973
|
*/
|
|
974
|
-
function hidesFromIntegrations(ar, addonId) {
|
|
974
|
+
async function hidesFromIntegrations(ar, addonId) {
|
|
975
975
|
const addon = ar.listAddons().find((a) => a.manifest.id === addonId);
|
|
976
976
|
if (addon === undefined)
|
|
977
977
|
return false;
|
|
978
|
+
const declared = addon.declaration?.integrationRole ?? addon.manifest.integrationRole;
|
|
979
|
+
const described = declared === undefined ? await describedInstancesOf(getInstancesProvider(ar, addonId)) : null;
|
|
978
980
|
return !(0, integration_role_js_1.bringsDevices)((0, integration_role_js_1.resolveIntegrationRole)({
|
|
979
|
-
integrationRole:
|
|
981
|
+
integrationRole: declared,
|
|
982
|
+
describedRole: described?.role,
|
|
980
983
|
capabilities: addon.manifest.capabilities,
|
|
981
984
|
}));
|
|
982
985
|
}
|
|
986
|
+
/**
|
|
987
|
+
* The provider's own description, or null when it has none or cannot answer: an addon that
|
|
988
|
+
* is mid-restart must not make the Integrations page throw, it falls back to the manifest.
|
|
989
|
+
*/
|
|
990
|
+
async function describedInstancesOf(provider) {
|
|
991
|
+
if (provider === null)
|
|
992
|
+
return null;
|
|
993
|
+
try {
|
|
994
|
+
return await provider.describe();
|
|
995
|
+
}
|
|
996
|
+
catch {
|
|
997
|
+
return null;
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
/** The wizard's discovery word for what a provider describes (`none` and `account` find nothing before an instance exists). */
|
|
1001
|
+
function wizardDiscoveryMode(described) {
|
|
1002
|
+
return described.discovery?.mode === 'lan' ? 'auto' : 'manual';
|
|
1003
|
+
}
|
|
983
1004
|
function getInstancesProvider(ar, addonId) {
|
|
984
1005
|
return (0, integration_instances_provider_js_1.findInstancesProvider)(ar.getCapabilityRegistry(), addonId);
|
|
985
1006
|
}
|
|
@@ -992,7 +1013,11 @@ function buildIntegrationsProvider(ar, eb, loggingService, capabilityRegistry) {
|
|
|
992
1013
|
return {
|
|
993
1014
|
list: async () => {
|
|
994
1015
|
const integrations = await requireIntegrationRegistry(ar).listIntegrations();
|
|
995
|
-
|
|
1016
|
+
const hidden = new Map();
|
|
1017
|
+
for (const addonId of new Set(integrations.map((i) => i.addonId))) {
|
|
1018
|
+
hidden.set(addonId, await hidesFromIntegrations(ar, addonId));
|
|
1019
|
+
}
|
|
1020
|
+
return integrations.filter((i) => hidden.get(i.addonId) !== true).map(withProcessState);
|
|
996
1021
|
},
|
|
997
1022
|
get: async (input) => {
|
|
998
1023
|
const integration = await requireIntegrationRegistry(ar).getIntegration(input.id);
|
|
@@ -1456,12 +1481,16 @@ function buildIntegrationsProvider(ar, eb, loggingService, capabilityRegistry) {
|
|
|
1456
1481
|
// Markers that flag an addon as a creatable integration type live
|
|
1457
1482
|
// in the module-level `INTEGRATION_CAP_MARKERS` set (exported so the
|
|
1458
1483
|
// integration-markers spec can assert the recognised caps).
|
|
1459
|
-
const
|
|
1460
|
-
!hidesFromIntegrations(ar, a.manifest.id) &&
|
|
1484
|
+
const markerAddons = addons.filter((a) => a.process?.state !== 'failed' &&
|
|
1461
1485
|
a.manifest.capabilities?.some((c) => {
|
|
1462
1486
|
const name = typeof c === 'string' ? c : c.name;
|
|
1463
1487
|
return typeof name === 'string' && exports.INTEGRATION_CAP_MARKERS.has(name);
|
|
1464
1488
|
}));
|
|
1489
|
+
const providerAddons = [];
|
|
1490
|
+
for (const addon of markerAddons) {
|
|
1491
|
+
if (!(await hidesFromIntegrations(ar, addon.manifest.id)))
|
|
1492
|
+
providerAddons.push(addon);
|
|
1493
|
+
}
|
|
1465
1494
|
const integrations = await reg.listIntegrations();
|
|
1466
1495
|
return Promise.all(providerAddons.map(async (addon) => {
|
|
1467
1496
|
const m = addon.manifest;
|
|
@@ -1469,7 +1498,7 @@ function buildIntegrationsProvider(ar, eb, loggingService, capabilityRegistry) {
|
|
|
1469
1498
|
const icon = d?.icon ?? m.icon;
|
|
1470
1499
|
const color = d?.color ?? m.color ?? '#78716c';
|
|
1471
1500
|
const instances = getInstancesProvider(ar, m.id);
|
|
1472
|
-
const described =
|
|
1501
|
+
const described = await describedInstancesOf(instances);
|
|
1473
1502
|
const instanceMode = described !== null
|
|
1474
1503
|
? described.instanceMode === 'single'
|
|
1475
1504
|
? 'unique'
|
|
@@ -1477,7 +1506,9 @@ function buildIntegrationsProvider(ar, eb, loggingService, capabilityRegistry) {
|
|
|
1477
1506
|
: (d?.instanceMode ?? m.instanceMode ?? 'multiple');
|
|
1478
1507
|
const existing = integrations.filter((i) => i.addonId === m.id);
|
|
1479
1508
|
const provider = getDeviceProvider(ar, m.id);
|
|
1480
|
-
const discoveryMode =
|
|
1509
|
+
const discoveryMode = described !== null
|
|
1510
|
+
? wizardDiscoveryMode(described)
|
|
1511
|
+
: (provider?.discoveryMode ?? 'manual');
|
|
1481
1512
|
// Branch by CAP, not by addon name. Surface which integration-marker
|
|
1482
1513
|
// cap the addon declared so the wizard routes `device-adoption`
|
|
1483
1514
|
// (Approach A: pick/create a broker, store `{ brokerId }`) vs the
|
|
@@ -1506,7 +1537,7 @@ function buildIntegrationsProvider(ar, eb, loggingService, capabilityRegistry) {
|
|
|
1506
1537
|
const mode = explicitMode ??
|
|
1507
1538
|
(declaresBroker && brokerKind
|
|
1508
1539
|
? 'broker'
|
|
1509
|
-
: kind === 'device-adoption'
|
|
1540
|
+
: kind === 'device-adoption' || described?.discovery?.mode === 'account'
|
|
1510
1541
|
? 'account'
|
|
1511
1542
|
: 'standalone');
|
|
1512
1543
|
return {
|
|
@@ -4,13 +4,16 @@ exports.resolveIntegrationRole = resolveIntegrationRole;
|
|
|
4
4
|
exports.bringsDevices = bringsDevices;
|
|
5
5
|
const INSTANCES_CAP = 'integration-instances';
|
|
6
6
|
/**
|
|
7
|
-
* What an addon entry brings
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* What an addon entry brings, in this order: the manifest's explicit `integrationRole` (an
|
|
8
|
+
* override), the `role` its `integration-instances` provider describes, and only for an addon
|
|
9
|
+
* still on the legacy rows, the capabilities the entry declares (`integration-instances` means
|
|
10
|
+
* service connections, anything else devices). A dual entry is never derived — it says `both`.
|
|
10
11
|
*/
|
|
11
12
|
function resolveIntegrationRole(source) {
|
|
12
13
|
if (source.integrationRole !== undefined)
|
|
13
14
|
return source.integrationRole;
|
|
15
|
+
if (source.describedRole !== undefined)
|
|
16
|
+
return source.describedRole;
|
|
14
17
|
const keepsInstances = (source.capabilities ?? []).some((c) => (typeof c === 'string' ? c : c.name) === INSTANCES_CAP);
|
|
15
18
|
return keepsInstances ? 'services' : 'devices';
|
|
16
19
|
}
|
|
@@ -245,6 +245,7 @@ function mountAllCaps(services) {
|
|
|
245
245
|
const first = providers[0];
|
|
246
246
|
return {
|
|
247
247
|
...first,
|
|
248
|
+
listInstances: (0, cap_mount_helpers_js_1.concatCollection)(providers, 'listInstances'),
|
|
248
249
|
listSupportedDeviceKinds: (0, cap_mount_helpers_js_1.concatCollection)(providers, 'listSupportedDeviceKinds'),
|
|
249
250
|
listExposedDevices: (0, cap_mount_helpers_js_1.concatCollection)(providers, 'listExposedDevices'),
|
|
250
251
|
listSupportedEntityKinds: (0, cap_mount_helpers_js_1.concatCollection)(providers, 'listSupportedEntityKinds'),
|
|
@@ -3083,11 +3083,13 @@ function createCapRouter_deviceDiscovery(getProvider, createRemoteProxy) {
|
|
|
3083
3083
|
function createCapRouter_deviceExport(getProvider, createRemoteProxy) {
|
|
3084
3084
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
3085
3085
|
getStatus: trpc_middleware_js_1.protectedProcedure
|
|
3086
|
-
.input(
|
|
3086
|
+
.input(types_2.DEVICE_STATUS_METHOD.getStatus.input.loose())
|
|
3087
3087
|
.output(types_2.DEVICE_STATUS_METHOD.getStatus.output)
|
|
3088
3088
|
.query(async ({ input, ctx }) => {
|
|
3089
|
-
const
|
|
3090
|
-
|
|
3089
|
+
const { nodeId, addonId, ...methodInput } = input;
|
|
3090
|
+
const p = resolveProvider('device-export', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
3091
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
3092
|
+
return p.getStatus(methodInput);
|
|
3091
3093
|
}),
|
|
3092
3094
|
getDeviceSettingsContribution: trpc_middleware_js_1.protectedProcedure
|
|
3093
3095
|
.input(types_1.DEVICE_SETTINGS_CONTRIBUTION_METHODS.getDeviceSettingsContribution.input.loose())
|
|
@@ -3116,19 +3118,30 @@ function createCapRouter_deviceExport(getProvider, createRemoteProxy) {
|
|
|
3116
3118
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
3117
3119
|
return p.applyDeviceSettingsPatch(methodInput);
|
|
3118
3120
|
}),
|
|
3119
|
-
|
|
3121
|
+
listInstances: trpc_middleware_js_1.protectedProcedure
|
|
3120
3122
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional(), addonId: zod_1.z.string().optional() }).optional())
|
|
3121
|
-
.output(types_51.deviceExportCapability.methods.
|
|
3123
|
+
.output(types_51.deviceExportCapability.methods.listInstances.output)
|
|
3122
3124
|
.query(async ({ input, ctx }) => {
|
|
3123
3125
|
const p = resolveProvider('device-export', input?.nodeId, () => getProvider(ctx, input?.addonId), createRemoteProxy);
|
|
3124
|
-
return p.
|
|
3126
|
+
return p.listInstances();
|
|
3127
|
+
}),
|
|
3128
|
+
listSupportedDeviceKinds: trpc_middleware_js_1.protectedProcedure
|
|
3129
|
+
.input(types_51.deviceExportCapability.methods.listSupportedDeviceKinds.input.loose())
|
|
3130
|
+
.output(types_51.deviceExportCapability.methods.listSupportedDeviceKinds.output)
|
|
3131
|
+
.query(async ({ input, ctx }) => {
|
|
3132
|
+
const { nodeId, addonId, ...methodInput } = input;
|
|
3133
|
+
const p = resolveProvider('device-export', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
3134
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
3135
|
+
return p.listSupportedDeviceKinds(methodInput);
|
|
3125
3136
|
}),
|
|
3126
3137
|
listExposedDevices: trpc_middleware_js_1.protectedProcedure
|
|
3127
|
-
.input(
|
|
3138
|
+
.input(types_51.deviceExportCapability.methods.listExposedDevices.input.loose())
|
|
3128
3139
|
.output(types_51.deviceExportCapability.methods.listExposedDevices.output)
|
|
3129
3140
|
.query(async ({ input, ctx }) => {
|
|
3130
|
-
const
|
|
3131
|
-
|
|
3141
|
+
const { nodeId, addonId, ...methodInput } = input;
|
|
3142
|
+
const p = resolveProvider('device-export', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
3143
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
3144
|
+
return p.listExposedDevices(methodInput);
|
|
3132
3145
|
}),
|
|
3133
3146
|
exposeDevice: trpc_middleware_js_1.adminProcedure
|
|
3134
3147
|
.input(types_51.deviceExportCapability.methods.exposeDevice.input.loose())
|
|
@@ -3163,10 +3176,11 @@ function createCapRouter_deviceExport(getProvider, createRemoteProxy) {
|
|
|
3163
3176
|
return fn.call(p);
|
|
3164
3177
|
}),
|
|
3165
3178
|
listExposedEntities: trpc_middleware_js_1.protectedProcedure
|
|
3166
|
-
.input(
|
|
3179
|
+
.input(types_51.deviceExportCapability.methods.listExposedEntities.input.loose())
|
|
3167
3180
|
.output(types_51.deviceExportCapability.methods.listExposedEntities.output)
|
|
3168
3181
|
.query(async ({ input, ctx }) => {
|
|
3169
|
-
const
|
|
3182
|
+
const { nodeId, addonId, ...methodInput } = input;
|
|
3183
|
+
const p = resolveProvider('device-export', nodeId, () => getProvider(ctx, addonId), createRemoteProxy);
|
|
3170
3184
|
const fn = p.listExposedEntities;
|
|
3171
3185
|
if (typeof fn !== 'function') {
|
|
3172
3186
|
throw new server_1.TRPCError({
|
|
@@ -3174,7 +3188,8 @@ function createCapRouter_deviceExport(getProvider, createRemoteProxy) {
|
|
|
3174
3188
|
message: 'Capability "device-export" provider does not implement "listExposedEntities"',
|
|
3175
3189
|
});
|
|
3176
3190
|
}
|
|
3177
|
-
|
|
3191
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
3192
|
+
return fn.call(p, methodInput);
|
|
3178
3193
|
}),
|
|
3179
3194
|
exposeEntity: trpc_middleware_js_1.adminProcedure
|
|
3180
3195
|
.input(types_51.deviceExportCapability.methods.exposeEntity.input.loose())
|
|
@@ -3165,6 +3165,7 @@ class AddonRegistryService {
|
|
|
3165
3165
|
// addon — surfaced from the kernel's AddonLoader so the
|
|
3166
3166
|
// storage-orchestrator builtin can aggregate them and seed defaults.
|
|
3167
3167
|
listStorageLocationDeclarations: () => this.addonLoader.listStorageLocationDeclarations(),
|
|
3168
|
+
listStorageLocationDeclarers: () => this.addonLoader.listStorageLocationDeclarers(),
|
|
3168
3169
|
readinessRegistry: this.moleculer.readinessRegistry,
|
|
3169
3170
|
// D3: handshake-fed native-cap view of the whole cluster. Backed by
|
|
3170
3171
|
// `HubNodeRegistry.listNativeCapEntries()` populated by every
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.762",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,9 +66,20 @@
|
|
|
66
66
|
],
|
|
67
67
|
"requires": {
|
|
68
68
|
"addons": {
|
|
69
|
-
"@camstack/addon-admin-ui": ">=1.2.
|
|
70
|
-
"@camstack/addon-
|
|
71
|
-
"@camstack/addon-
|
|
69
|
+
"@camstack/addon-admin-ui": ">=1.2.579",
|
|
70
|
+
"@camstack/addon-agent-ui": ">=1.2.323",
|
|
71
|
+
"@camstack/addon-cloudflare": ">=1.2.156",
|
|
72
|
+
"@camstack/addon-export-alexa": ">=1.2.183",
|
|
73
|
+
"@camstack/addon-export-google": ">=0.1.125",
|
|
74
|
+
"@camstack/addon-export-hap": ">=1.2.192",
|
|
75
|
+
"@camstack/addon-google-services": ">=0.2.38",
|
|
76
|
+
"@camstack/addon-import-alexa": ">=0.2.184",
|
|
77
|
+
"@camstack/addon-matter-broker": ">=0.2.156",
|
|
78
|
+
"@camstack/addon-mqtt-broker": ">=1.2.150",
|
|
79
|
+
"@camstack/addon-provider-homeassistant": ">=1.2.656",
|
|
80
|
+
"@camstack/addon-smtp-nodemailer": ">=1.2.147",
|
|
81
|
+
"@camstack/addon-static-turn": ">=1.2.144",
|
|
82
|
+
"@camstack/addon-training": ">=0.1.130"
|
|
72
83
|
},
|
|
73
84
|
"wrapper": {
|
|
74
85
|
"desktop": ">=0.0.1",
|
|
@@ -77,8 +88,8 @@
|
|
|
77
88
|
}
|
|
78
89
|
},
|
|
79
90
|
"dependencies": {
|
|
80
|
-
"@camstack/addon-admin-ui": "1.2.
|
|
81
|
-
"@camstack/addon-agent-ui": "1.2.
|
|
91
|
+
"@camstack/addon-admin-ui": "1.2.579",
|
|
92
|
+
"@camstack/addon-agent-ui": "1.2.323",
|
|
82
93
|
"@camstack/addon-auth": "1.2.175",
|
|
83
94
|
"@camstack/addon-benchmark": "1.2.311",
|
|
84
95
|
"@camstack/addon-decoder-nodeav": "1.2.145",
|
|
@@ -88,8 +99,8 @@
|
|
|
88
99
|
"@camstack/addon-post-analysis": "1.2.667",
|
|
89
100
|
"@camstack/develop": "0.1.44",
|
|
90
101
|
"@camstack/sdk": "1.2.155",
|
|
91
|
-
"@camstack/types": "1.2.
|
|
92
|
-
"@camstack/ui-library": "1.2.
|
|
102
|
+
"@camstack/types": "1.2.495",
|
|
103
|
+
"@camstack/ui-library": "1.2.381",
|
|
93
104
|
"@fastify/compress": "^9.0.0",
|
|
94
105
|
"@fastify/cookie": "^11.0.2",
|
|
95
106
|
"@fastify/cors": "^11.2.0",
|
|
@@ -11068,6 +11068,7 @@ async function buildAddonContext(runtime, declaration, dataDir, options) {
|
|
|
11068
11068
|
storage: options?.storageProvider ?? void 0,
|
|
11069
11069
|
capabilityRegistry: options?.capabilityRegistry,
|
|
11070
11070
|
...options?.listStorageLocationDeclarations ? { listStorageLocationDeclarations: options.listStorageLocationDeclarations } : {},
|
|
11071
|
+
...options?.listStorageLocationDeclarers ? { listStorageLocationDeclarers: options.listStorageLocationDeclarers } : {},
|
|
11071
11072
|
readinessRegistry: readinessRegistry(),
|
|
11072
11073
|
deviceRegistry: workerDeviceRegistry,
|
|
11073
11074
|
devices: createBrokerDeviceManagerApi({
|
|
@@ -11013,6 +11013,7 @@ async function buildAddonContext(runtime, declaration, dataDir, options) {
|
|
|
11013
11013
|
storage: options?.storageProvider ?? void 0,
|
|
11014
11014
|
capabilityRegistry: options?.capabilityRegistry,
|
|
11015
11015
|
...options?.listStorageLocationDeclarations ? { listStorageLocationDeclarations: options.listStorageLocationDeclarations } : {},
|
|
11016
|
+
...options?.listStorageLocationDeclarers ? { listStorageLocationDeclarers: options.listStorageLocationDeclarers } : {},
|
|
11016
11017
|
readinessRegistry: readinessRegistry(),
|
|
11017
11018
|
deviceRegistry: workerDeviceRegistry,
|
|
11018
11019
|
devices: createBrokerDeviceManagerApi({
|
|
@@ -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-B6-AUY2T.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 { ys as defineRecordKinds } from "./dist-
|
|
1
|
+
import { ys as defineRecordKinds } from "./dist-Dd_vXorK.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-B6-AUY2T.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 { cn as addonPagesCapability, dc as EventCategory, uc as errMsg, wo as BaseAddon } from "../../dist-
|
|
1
|
+
import { cn as addonPagesCapability, dc as EventCategory, uc as errMsg, wo as BaseAddon } from "../../dist-Dd_vXorK.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-B6-AUY2T.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 { dc as EventCategory, uc as errMsg, un as addonWidgetsCapability, wo as BaseAddon } from "../../dist-
|
|
1
|
+
import { dc as EventCategory, uc as errMsg, un as addonWidgetsCapability, wo as BaseAddon } from "../../dist-Dd_vXorK.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-B6-AUY2T.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
|
/**
|
|
@@ -1211,12 +1211,18 @@ var AlertCenterAddon = class extends require_dist.BaseAddon {
|
|
|
1211
1211
|
if (!findingId) return;
|
|
1212
1212
|
const deviceId = typeof data["deviceId"] === "number" ? data["deviceId"] : void 0;
|
|
1213
1213
|
const severity = data["severity"] === "warning" ? "warning" : "error";
|
|
1214
|
+
const href = typeof data["href"] === "string" && data["href"].startsWith("/") ? data["href"] : void 0;
|
|
1215
|
+
const actionLabel = typeof data["actionLabel"] === "string" ? data["actionLabel"] : "Open";
|
|
1214
1216
|
const alert = {
|
|
1215
1217
|
id: findingId,
|
|
1216
1218
|
category: require_dist.EventCategory.SystemLivenessFailed,
|
|
1217
1219
|
severity,
|
|
1218
1220
|
title: String(data["title"] ?? "Node liveness"),
|
|
1219
1221
|
message: String(data["message"] ?? ""),
|
|
1222
|
+
...href !== void 0 ? { action: {
|
|
1223
|
+
label: actionLabel,
|
|
1224
|
+
href
|
|
1225
|
+
} } : {},
|
|
1220
1226
|
status: "active",
|
|
1221
1227
|
read: false,
|
|
1222
1228
|
createdAt: Date.now(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fr as isAlertEpisodeSeverity, Pr as isAlertEpisodeOpen, d as AlertSchema, dc as EventCategory, dn as alertEpisodeId, fn as alertEpisodePayload, ms as createEvent, pn as alertsCapability, uc as errMsg, wo as BaseAddon, ys as defineRecordKinds } from "../../dist-
|
|
1
|
+
import { Fr as isAlertEpisodeSeverity, Pr as isAlertEpisodeOpen, d as AlertSchema, dc as EventCategory, dn as alertEpisodeId, fn as alertEpisodePayload, ms as createEvent, pn as alertsCapability, uc as errMsg, wo as BaseAddon, ys as defineRecordKinds } from "../../dist-Dd_vXorK.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
|
/**
|
|
@@ -1205,12 +1205,18 @@ var AlertCenterAddon = class extends BaseAddon {
|
|
|
1205
1205
|
if (!findingId) return;
|
|
1206
1206
|
const deviceId = typeof data["deviceId"] === "number" ? data["deviceId"] : void 0;
|
|
1207
1207
|
const severity = data["severity"] === "warning" ? "warning" : "error";
|
|
1208
|
+
const href = typeof data["href"] === "string" && data["href"].startsWith("/") ? data["href"] : void 0;
|
|
1209
|
+
const actionLabel = typeof data["actionLabel"] === "string" ? data["actionLabel"] : "Open";
|
|
1208
1210
|
const alert = {
|
|
1209
1211
|
id: findingId,
|
|
1210
1212
|
category: EventCategory.SystemLivenessFailed,
|
|
1211
1213
|
severity,
|
|
1212
1214
|
title: String(data["title"] ?? "Node liveness"),
|
|
1213
1215
|
message: String(data["message"] ?? ""),
|
|
1216
|
+
...href !== void 0 ? { action: {
|
|
1217
|
+
label: actionLabel,
|
|
1218
|
+
href
|
|
1219
|
+
} } : {},
|
|
1214
1220
|
status: "active",
|
|
1215
1221
|
read: false,
|
|
1216
1222
|
createdAt: Date.now(),
|
|
@@ -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-B6-AUY2T.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 { As as isEvent, Ri as ptzAutotrackCapability, dc as EventCategory, tt as FIRST_LEVEL_MACRO_CLASSES, uc as errMsg, vn as bareAddonId, wo as BaseAddon } from "../../dist-
|
|
1
|
+
import { As as isEvent, Ri as ptzAutotrackCapability, dc as EventCategory, tt as FIRST_LEVEL_MACRO_CLASSES, uc as errMsg, vn as bareAddonId, wo as BaseAddon } from "../../dist-Dd_vXorK.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-B6-AUY2T.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-BcstsRhG.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 { Sa as storageOccupancyCapability, Vs as nodePin, _n as backupCapability, dc as EventCategory, nc as toNodeId, si as mayWriteToLocation, wo as BaseAddon } from "../../dist-
|
|
1
|
+
import { Sa as storageOccupancyCapability, Vs as nodePin, _n as backupCapability, dc as EventCategory, nc as toNodeId, si as mayWriteToLocation, wo as BaseAddon } from "../../dist-Dd_vXorK.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-BcdcInFR.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-B6-AUY2T.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 { En as calendarsCapability, T as CalendarPreferencesSchema, wo as BaseAddon, ys as defineRecordKinds } from "../../dist-
|
|
1
|
+
import { En as calendarsCapability, T as CalendarPreferencesSchema, wo as BaseAddon, ys as defineRecordKinds } from "../../dist-Dd_vXorK.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-B6-AUY2T.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 { $a as buildFfmpegArgs, Dn as cameraGridLayoutCapability, Ds as hydrateSchema, K as DeclaredDevices, L as DERIVED_CAMERA_SILENCED_CAP_NAMES, St as MOTION_CLOSE_AFTER_MS, Zn as declarationOwnerNodeId, _a as snapshotCapability, dc as EventCategory, hi as motionCapability, lc as DeviceType, m as BaseDevice, ms as createEvent, sc as DeviceFeature, uc as errMsg, ui as memoizePinnedFfmpeg, vn as bareAddonId, wa as streamCatalogCapability, wo as BaseAddon } from "../../dist-
|
|
1
|
+
import { $a as buildFfmpegArgs, Dn as cameraGridLayoutCapability, Ds as hydrateSchema, K as DeclaredDevices, L as DERIVED_CAMERA_SILENCED_CAP_NAMES, St as MOTION_CLOSE_AFTER_MS, Zn as declarationOwnerNodeId, _a as snapshotCapability, dc as EventCategory, hi as motionCapability, lc as DeviceType, m as BaseDevice, ms as createEvent, sc as DeviceFeature, uc as errMsg, ui as memoizePinnedFfmpeg, vn as bareAddonId, wa as streamCatalogCapability, wo as BaseAddon } from "../../dist-Dd_vXorK.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-B6-AUY2T.js");
|
|
7
|
+
const require_composition_sources = require("../../composition-sources-DrGLoV8D.js");
|
|
8
|
+
const require_capture_engine = require("../../capture-engine-DgcmHuIi.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 { $i as resolveMutate, Ai as planComposition, Ar as groupTemplate, Cr as featureForwards, Da as switchCapability, Di as parseColorInput, Fn as colorCapability, Gn as coverCapability, Ia as valveCapability, Ja as HISTORY_FAST_MS, K as DeclaredDevices, Kr as kebabToCamel, Ln as composerCapability, Ms as isReadingQuantity, Nn as climateControlCapability, Qa as MINUTE_MS, Qn as declaredSeriesKind, Rn as compositionFieldKey, Sn as buildCapabilityLookup, So as toExpressionValue, Wa as COMPOSER_ADDON_ID, Xa as HOUR_MS, Ya as HISTORY_SLOW_MS, _o as openReset, ao as compositionSliceKey, b as COMPOSED_ITEM_FIXED_FIELDS, bn as brightnessCapability, bo as planStatisticTier, br as fanControlCapability, ci as mediaPlayerCapability, co as disarmRoseMemory, da as sharedActuatorFeatures, dc as EventCategory, di as methodRefusal, eo as cloneStatefulExpressionMemory, fa as sharedActuatorMethods, fo as historyRetentionFromSettings, ft as HvacModeSchema, go as nextLocalMidnight, hi as motionCapability, ho as isHistoryHelper, io as compositionItemFieldPath, kr as groupCommandsCapability, lc as DeviceType, li as mediaPlayerFeaturesOfRoles, lo as evaluateDerivative, m as BaseDevice, mo as isForwardInputRef, mr as evaluateCompositionField, ms as createEvent, n as ACTUATOR_METHODS, no as composedDeviceStableId, o as ALL_CAPABILITY_DEFINITIONS, oo as compositionSourceKey, pa as sharedColorModes, po as integrateReading, qa as DEFAULT_HISTORY_RETENTION, r as ACTUATOR_TEMPLATE_IDS, ra as runFanOut, ro as compositionFeatureEnabled, rt as FanDirectionSchema, so as createStatefulExpressionMemory, st as GroupCommandResultSchema, ti as lockControlCapability, to as composedDeviceRef, uc as errMsg, uo as evaluateStatistic, vo as openStatistic, vr as expressionContainsBuiltinCall, wo as BaseAddon, xo as statisticCadenceMs, xr as fanOutTargets, yo as planResetTier } 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 { $i as resolveMutate, Ai as planComposition, Ar as groupTemplate, Cr as featureForwards, Da as switchCapability, Di as parseColorInput, Fn as colorCapability, Gn as coverCapability, Ia as valveCapability, Ja as HISTORY_FAST_MS, K as DeclaredDevices, Kr as kebabToCamel, Ln as composerCapability, Ms as isReadingQuantity, Nn as climateControlCapability, Qa as MINUTE_MS, Qn as declaredSeriesKind, Rn as compositionFieldKey, Sn as buildCapabilityLookup, So as toExpressionValue, Wa as COMPOSER_ADDON_ID, Xa as HOUR_MS, Ya as HISTORY_SLOW_MS, _o as openReset, ao as compositionSliceKey, b as COMPOSED_ITEM_FIXED_FIELDS, bn as brightnessCapability, bo as planStatisticTier, br as fanControlCapability, ci as mediaPlayerCapability, co as disarmRoseMemory, da as sharedActuatorFeatures, dc as EventCategory, di as methodRefusal, eo as cloneStatefulExpressionMemory, fa as sharedActuatorMethods, fo as historyRetentionFromSettings, ft as HvacModeSchema, go as nextLocalMidnight, hi as motionCapability, ho as isHistoryHelper, io as compositionItemFieldPath, kr as groupCommandsCapability, lc as DeviceType, li as mediaPlayerFeaturesOfRoles, lo as evaluateDerivative, m as BaseDevice, mo as isForwardInputRef, mr as evaluateCompositionField, ms as createEvent, n as ACTUATOR_METHODS, no as composedDeviceStableId, o as ALL_CAPABILITY_DEFINITIONS, oo as compositionSourceKey, pa as sharedColorModes, po as integrateReading, qa as DEFAULT_HISTORY_RETENTION, r as ACTUATOR_TEMPLATE_IDS, ra as runFanOut, ro as compositionFeatureEnabled, rt as FanDirectionSchema, so as createStatefulExpressionMemory, st as GroupCommandResultSchema, ti as lockControlCapability, to as composedDeviceRef, uc as errMsg, uo as evaluateStatistic, vo as openStatistic, vr as expressionContainsBuiltinCall, wo as BaseAddon, xo as statisticCadenceMs, xr as fanOutTargets, yo as planResetTier } from "../../dist-Dd_vXorK.mjs";
|
|
2
|
+
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-xyPI-9ja.mjs";
|
|
3
|
+
import { i as capSeriesKey } from "../../capture-engine-Btq9LseJ.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-B6-AUY2T.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 { ri as logDestinationCapability, wo as BaseAddon } from "../../dist-
|
|
1
|
+
import { ri as logDestinationCapability, wo as BaseAddon } from "../../dist-Dd_vXorK.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-B6-AUY2T.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-DrGLoV8D.js");
|
|
6
|
+
const require_capture_engine = require("../../capture-engine-DgcmHuIi.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, $s as secretTreeFromSchema, $t as SwitchStatusSchema, Aa as timedRunLimitOf, Ai as planComposition, Ba as vocabActionIdFor, Bn as coreBlockAddonId, Bt as RemoteConfigSchema, C as CORE_BLOCK_ADDON_PREFIX, Ct as MediaPlayerStatusSchema, D as ConditionMirror, Ds as hydrateSchema, Fa as validateSchedulerInput, Fi as problemsBlockSave, Fs as isSecretMarker, Ft as REMOTE_MEDIA_COMMANDS, Ga as CompositionSchema, Gi as resolveActionVariables, Gt as SchedulerSchema, Hi as remoteCapability, Hn as coreBlockIdFromAddonId, I as DEFAULT_HOLD_OVERRIDE, In as compileScalarOverride, Ji as resolveCoreBlockEntry, Jn as customRole, K as DeclaredDevices, Ka as DAY_MS, Kr as kebabToCamel, Li as proposeRunningThreshold, Ls as isSecretRefOwnedBy, Mi as powerSourceCapability, Mn as checkTemplatePayload, Mr as internalActionId, Na as validateComposition, Ni as powerSourceLinkOfComposition, Nt as QuantityUnitError, O as ControlStatusSchema, Oa as templateCapability, Pn as collectWhenMirrorSources, Q as EMPTY_REMOTE_ASSUMED_STATE, Qr as localDateOf, S as CORE_BLOCKS_ADDON_ID, Sn as buildCapabilityLookup, Sr as fanPresetsCapability, Ua as zoneOnlySite, Ui as remoteLayoutComponentsCapability, Un as coreBlockSourceKind, Va as weekdayOfLocalDate, Vn as coreBlockComposition, Vr as isInternalActionId, Vt as RunningStateStatusSchema, Wi as replacedFieldKeys, Wn as coreBlocksCapability, Wt as SchedulerError, Xs as resolveSecretMarkers, Yi as resolveCoreBlockFiles, Z as EMPTY_AUTOMATION_STATE, Za as HelperMemberSchema, _i as normalizeActionUnits, an as actionSourceCapability, bi as normalizeStepTargets, c as ActionStepSchema, dc as EventCategory$1, do as helperMembers, en as TemplateKindSchema, et as FAN_CAPTURE_FIELDS, f as AutomationStateDocSchema, fo as historyRetentionFromSettings, fs as collectSecretMarkerRefs, gi as nextOccurrence, gs as defineAddonMigrations, ha as siteFor, hr as evaluateWhenTree, ia as runSteps, ic as transformSecretWrite, in as actionEffect, it as FanPresetSchema, ja as timedRunSeconds, k as CoreBlockSchema, ka as timedRunCapability, kn as capUnitResolver, kt as PowerSourceInfoSchema, l as ActionTargetResolver, lc as DeviceType$1, mn as appendTrace, mt as INTERNAL_ACTION_PREFIX, na as resolveStepArgs, ni as lockDoorLinkOfComposition, nr as describeComposableCaps, nt as FanControlStatusSchema, o as ALL_CAPABILITY_DEFINITIONS, oa as schedulersCapability, on as actionsCapability, oo as compositionSourceKey, p as BUILTIN_REMOTE_COMPONENTS, pt as IDLE_ACTION_STATUS, qn as customKeyOfRole, s as ActionError, sn as addonIdOfActionId, t as ACTION_TARGET_INVALIDATION_EVENTS, to as composedDeviceRef, u as ActionVariableSchema, uc as errMsg$1, vi as normalizeCapStep, wi as occurrenceOn, wo as BaseAddon, x as COMPOSER_RUNNER_ID, xn as buildActionSteps, yi as normalizeCoreBlockWrite, ys as defineRecordKinds, zn as compositionSourceRefs, zt as RemoteAssumedStateSchema } from "../../dist-
|
|
1
|
+
import { $ as EMPTY_REMOTE_CONFIG, $s as secretTreeFromSchema, $t as SwitchStatusSchema, Aa as timedRunLimitOf, Ai as planComposition, Ba as vocabActionIdFor, Bn as coreBlockAddonId, Bt as RemoteConfigSchema, C as CORE_BLOCK_ADDON_PREFIX, Ct as MediaPlayerStatusSchema, D as ConditionMirror, Ds as hydrateSchema, Fa as validateSchedulerInput, Fi as problemsBlockSave, Fs as isSecretMarker, Ft as REMOTE_MEDIA_COMMANDS, Ga as CompositionSchema, Gi as resolveActionVariables, Gt as SchedulerSchema, Hi as remoteCapability, Hn as coreBlockIdFromAddonId, I as DEFAULT_HOLD_OVERRIDE, In as compileScalarOverride, Ji as resolveCoreBlockEntry, Jn as customRole, K as DeclaredDevices, Ka as DAY_MS, Kr as kebabToCamel, Li as proposeRunningThreshold, Ls as isSecretRefOwnedBy, Mi as powerSourceCapability, Mn as checkTemplatePayload, Mr as internalActionId, Na as validateComposition, Ni as powerSourceLinkOfComposition, Nt as QuantityUnitError, O as ControlStatusSchema, Oa as templateCapability, Pn as collectWhenMirrorSources, Q as EMPTY_REMOTE_ASSUMED_STATE, Qr as localDateOf, S as CORE_BLOCKS_ADDON_ID, Sn as buildCapabilityLookup, Sr as fanPresetsCapability, Ua as zoneOnlySite, Ui as remoteLayoutComponentsCapability, Un as coreBlockSourceKind, Va as weekdayOfLocalDate, Vn as coreBlockComposition, Vr as isInternalActionId, Vt as RunningStateStatusSchema, Wi as replacedFieldKeys, Wn as coreBlocksCapability, Wt as SchedulerError, Xs as resolveSecretMarkers, Yi as resolveCoreBlockFiles, Z as EMPTY_AUTOMATION_STATE, Za as HelperMemberSchema, _i as normalizeActionUnits, an as actionSourceCapability, bi as normalizeStepTargets, c as ActionStepSchema, dc as EventCategory$1, do as helperMembers, en as TemplateKindSchema, et as FAN_CAPTURE_FIELDS, f as AutomationStateDocSchema, fo as historyRetentionFromSettings, fs as collectSecretMarkerRefs, gi as nextOccurrence, gs as defineAddonMigrations, ha as siteFor, hr as evaluateWhenTree, ia as runSteps, ic as transformSecretWrite, in as actionEffect, it as FanPresetSchema, ja as timedRunSeconds, k as CoreBlockSchema, ka as timedRunCapability, kn as capUnitResolver, kt as PowerSourceInfoSchema, l as ActionTargetResolver, lc as DeviceType$1, mn as appendTrace, mt as INTERNAL_ACTION_PREFIX, na as resolveStepArgs, ni as lockDoorLinkOfComposition, nr as describeComposableCaps, nt as FanControlStatusSchema, o as ALL_CAPABILITY_DEFINITIONS, oa as schedulersCapability, on as actionsCapability, oo as compositionSourceKey, p as BUILTIN_REMOTE_COMPONENTS, pt as IDLE_ACTION_STATUS, qn as customKeyOfRole, s as ActionError, sn as addonIdOfActionId, t as ACTION_TARGET_INVALIDATION_EVENTS, to as composedDeviceRef, u as ActionVariableSchema, uc as errMsg$1, vi as normalizeCapStep, wi as occurrenceOn, wo as BaseAddon, x as COMPOSER_RUNNER_ID, xn as buildActionSteps, yi as normalizeCoreBlockWrite, ys as defineRecordKinds, zn as compositionSourceRefs, zt as RemoteAssumedStateSchema } from "../../dist-Dd_vXorK.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-xyPI-9ja.mjs";
|
|
4
|
+
import { i as capSeriesKey } from "../../capture-engine-Btq9LseJ.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";
|