@camstack/server 1.2.786 → 1.2.788
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/api/core/cap-providers.js +62 -96
- package/dist/api/trpc/generated-cap-mounts.js +1 -10
- package/dist/api/trpc/generated-cap-routers.js +2289 -2366
- package/dist/core/addon/addon-registry.service.js +29 -28
- package/dist/core/addon/boot-health-snapshot.js +42 -0
- package/dist/core/addon/hub-spawn-gate.js +1 -0
- package/dist/core/addon/instances-of-cap.js +35 -0
- package/package.json +64 -46
- package/system/dist/addon-utils.mjs +1 -1
- package/system/dist/{agent-https-snFEmSqQ.js → agent-https-jJDe-XNl.js} +1 -1
- package/system/dist/{agent-https-D779EYj3.mjs → agent-https-szf2FU49.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 +4 -4
- 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 +5 -5
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +3 -3
- 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 +5 -5
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +3 -3
- package/system/dist/builtins/composer/composer.addon.mjs +3 -3
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +3 -3
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +1 -1
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +5 -5
- 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 +10 -10
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +10 -10
- 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 +20 -20
- 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-record-kinds.d.ts +0 -1
- package/system/dist/builtins/sqlite-storage/integration-registry.d.ts +2 -4
- package/system/dist/builtins/sqlite-storage/migrations/migration-types.d.ts +6 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +7 -4
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +7 -4
- package/system/dist/builtins/storage-orchestrator/drain-state-store.d.ts +4 -8
- package/system/dist/builtins/storage-orchestrator/location-store.d.ts +9 -26
- package/system/dist/builtins/storage-orchestrator/record-kinds.d.ts +0 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +35 -407
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +36 -407
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +115 -115
- 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-DkTEWrRe.mjs → capture-engine-BsKY_3xa.mjs} +1 -1
- package/system/dist/{capture-engine-NZ11ORZS.js → capture-engine-DNHgjQot.js} +1 -1
- package/system/dist/{composition-sources-B9-lkIvO.mjs → composition-sources-BRdGsbVT.mjs} +1 -1
- package/system/dist/{composition-sources-B6GYTy_7.js → composition-sources-BgO0GQYW.js} +1 -1
- package/system/dist/{constants-DR8hdi45.js → constants-C3jGKQSQ.js} +1 -1
- package/system/dist/{constants--9ui1LK0.mjs → constants-CQeMrR4f.mjs} +1 -1
- package/system/dist/{coral-accelerators-DBlgWB8k.mjs → coral-accelerators-BW3OcrLD.mjs} +6 -6
- package/system/dist/{custom-action-registry-B9zFBNVa.mjs → custom-action-registry-N7flBDwT.mjs} +37 -37
- package/system/dist/{device-ca-D-7tAHJ_.mjs → device-ca-ByVi5eUC.mjs} +1 -1
- package/system/dist/{device-ca-sIFmKkGM.js → device-ca-D3y6wGmn.js} +1 -1
- package/system/dist/{dist-h3Yla8gE.js → dist-BRI-Mwx0.js} +824 -957
- package/system/dist/{dist-D-iGSnX_.mjs → dist-BsQA6-0i.mjs} +824 -957
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-DuEfM0fI.mjs → hub-mdns-ciao-8dJTW2LI.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-C5DkUEZF.js → hub-mdns-ciao-Ry_Jpljx.js} +2 -2
- package/system/dist/index.d.ts +2 -2
- package/system/dist/index.js +85 -223
- package/system/dist/index.mjs +298 -434
- package/system/dist/kernel/addon-health-monitor.d.ts +21 -0
- package/system/dist/{legacy-integration-rows-door-BTdhD-Yp.mjs → legacy-integration-rows-door-CjXTbmvH.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-DTDD5wwC.js → legacy-integration-rows-door-D5BdSNla.js} +1 -1
- package/system/dist/migrations/hub/2026-11-06-drop-legacy-integrations-and-storage-locations.d.ts +12 -0
- package/system/dist/{restore-archive-DQWz5Wp-.mjs → restore-archive-Co2lk3OU.mjs} +94 -94
- package/system/dist/{restore-archive-CkAD_-E9.js → restore-archive-GoWJMdHy.js} +1 -1
- package/system/dist/{wal-maintenance-CB-O-GPP.js → wal-maintenance-C1Haue74.js} +0 -0
- package/system/dist/{wal-maintenance-DouX1XsY.mjs → wal-maintenance-DRnV6QYu.mjs} +0 -0
- package/system/package.json +1 -1
|
@@ -44,6 +44,7 @@ const node_crypto_1 = require("node:crypto");
|
|
|
44
44
|
const fs = __importStar(require("node:fs"));
|
|
45
45
|
const os = __importStar(require("node:os"));
|
|
46
46
|
const path = __importStar(require("node:path"));
|
|
47
|
+
const boot_health_snapshot_js_1 = require("./boot-health-snapshot.js");
|
|
47
48
|
const hub_spawn_gate_js_1 = require("./hub-spawn-gate.js");
|
|
48
49
|
const system_1 = require("@camstack/server/system");
|
|
49
50
|
const types_1 = require("@camstack/types");
|
|
@@ -291,6 +292,8 @@ class AddonRegistryService {
|
|
|
291
292
|
moleculer;
|
|
292
293
|
streamProbe;
|
|
293
294
|
addonEntries = new Map();
|
|
295
|
+
/** Addons the hub spawn gate holds back (id -> reason): neither started nor failed. */
|
|
296
|
+
heldBackAddons = new boot_health_snapshot_js_1.HeldBackAddons();
|
|
294
297
|
capabilityRegistry;
|
|
295
298
|
/** Single router for addon-level calls (routes / custom / settings). */
|
|
296
299
|
addonCallGateway;
|
|
@@ -394,6 +397,8 @@ class AddonRegistryService {
|
|
|
394
397
|
activeStorageProvider = null;
|
|
395
398
|
activeSettingsBackend = null;
|
|
396
399
|
integrationRegistry = null;
|
|
400
|
+
/** Why the integration registry is unset (records wiring failed or the records cap is absent). */
|
|
401
|
+
integrationRegistryUnavailable = null;
|
|
397
402
|
clusterNodeHistoryStore = null;
|
|
398
403
|
nodeTombstoneStore = null;
|
|
399
404
|
clusterAgentRecords = null;
|
|
@@ -444,6 +449,7 @@ class AddonRegistryService {
|
|
|
444
449
|
eventBus: this.eventBusService,
|
|
445
450
|
logger: this.loggingService.createLogger('AddonHealthMonitor'),
|
|
446
451
|
retryFn: (packageName) => this.tryReloadPackage(packageName),
|
|
452
|
+
isHeldBack: (addonId) => this.heldBackAddons.has(addonId),
|
|
447
453
|
});
|
|
448
454
|
// Create capability registry with config reader for singleton preferences
|
|
449
455
|
this.capabilityRegistry = new system_1.CapabilityRegistry(this.loggingService.createLogger('CapabilityRegistry'), this.eventBusService);
|
|
@@ -1019,19 +1025,11 @@ class AddonRegistryService {
|
|
|
1019
1025
|
// either initialized (record success) or failed init (record
|
|
1020
1026
|
// failure with the captured error). Pre-load failures were already
|
|
1021
1027
|
// recorded above from `addonLoader.listLoadFailures()`.
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
// Init failed (caught by either Phase 1 or Phase 2 catch
|
|
1028
|
-
// blocks above). The catch handlers don't carry the error
|
|
1029
|
-
// forward to here, so we synthesize a generic one — the real
|
|
1030
|
-
// error is in the addon log. Operators see the alert + can
|
|
1031
|
-
// open the per-addon logs to investigate.
|
|
1032
|
-
this.healthMonitor.recordFailure(entry.packageName, new Error(`Addon "${id}" failed to initialize — see addon logs for details`), id);
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1028
|
+
(0, boot_health_snapshot_js_1.recordBootHealth)({
|
|
1029
|
+
entries: this.addonEntries.entries(),
|
|
1030
|
+
heldBack: this.heldBackAddons.asMap(),
|
|
1031
|
+
monitor: this.healthMonitor,
|
|
1032
|
+
});
|
|
1035
1033
|
// Start the kernel-level retry tick (30s). Fires immediately
|
|
1036
1034
|
// on the first interval boundary; the 5-min boot grace window
|
|
1037
1035
|
// suppresses alerts until the system has had time to stabilize.
|
|
@@ -1407,13 +1405,18 @@ class AddonRegistryService {
|
|
|
1407
1405
|
setCredentialTokenService(service) {
|
|
1408
1406
|
this.credentialTokenService = service;
|
|
1409
1407
|
}
|
|
1410
|
-
async wireHubMainOrphanRecords(
|
|
1408
|
+
async wireHubMainOrphanRecords() {
|
|
1411
1409
|
const recordsCap = this.capabilityRegistry.getSingleton('records');
|
|
1412
|
-
if (recordsCap === null || recordsCap === undefined)
|
|
1410
|
+
if (recordsCap === null || recordsCap === undefined) {
|
|
1411
|
+
this.integrationRegistryUnavailable = 'the records capability has no provider';
|
|
1412
|
+
this.logger.error('IntegrationRegistry not wired: the records capability has no provider', {
|
|
1413
|
+
meta: { reason: this.integrationRegistryUnavailable },
|
|
1414
|
+
});
|
|
1413
1415
|
return;
|
|
1416
|
+
}
|
|
1414
1417
|
const integrationRecords = this.recordsForOwner('integration-registry', this.secretsForOwner('integration-registry'));
|
|
1415
1418
|
await integrationRecords.declare(system_1.integrationRegistryRecordKinds);
|
|
1416
|
-
this.integrationRegistry = new system_1.IntegrationRegistry(
|
|
1419
|
+
this.integrationRegistry = new system_1.IntegrationRegistry(system_1.IntegrationRegistry.recordStoresOf(integrationRecords));
|
|
1417
1420
|
await this.integrationRegistry.initialize();
|
|
1418
1421
|
this.logger.info('IntegrationRegistry initialized (records)', { meta: { phase: 'v2' } });
|
|
1419
1422
|
const clusterRecords = this.recordsForOwner('cluster-agent', this.secretsForOwner('cluster-agent'));
|
|
@@ -1444,6 +1447,10 @@ class AddonRegistryService {
|
|
|
1444
1447
|
* (where the addon is not currently installed). Orphaned data stays in DB
|
|
1445
1448
|
* and reconnects automatically when the addon is reinstalled.
|
|
1446
1449
|
*/
|
|
1450
|
+
/** Why {@link getIntegrationRegistry} answers null, or null when it has not failed. */
|
|
1451
|
+
getIntegrationRegistryUnavailableReason() {
|
|
1452
|
+
return this.integrationRegistryUnavailable;
|
|
1453
|
+
}
|
|
1447
1454
|
getIntegrationRegistry() {
|
|
1448
1455
|
if (!this.integrationRegistry)
|
|
1449
1456
|
return null;
|
|
@@ -2720,16 +2727,9 @@ class AddonRegistryService {
|
|
|
2720
2727
|
registry: this.capabilityRegistry,
|
|
2721
2728
|
logger: this.logger,
|
|
2722
2729
|
}, store);
|
|
2723
|
-
void this.wireHubMainOrphanRecords(
|
|
2724
|
-
this.
|
|
2725
|
-
|
|
2726
|
-
});
|
|
2727
|
-
this.integrationRegistry = new system_1.IntegrationRegistry(store);
|
|
2728
|
-
void this.integrationRegistry.initialize().then(() => {
|
|
2729
|
-
this.logger.info('IntegrationRegistry initialized (legacy)', {
|
|
2730
|
-
meta: { phase: 'v2' },
|
|
2731
|
-
});
|
|
2732
|
-
});
|
|
2730
|
+
void this.wireHubMainOrphanRecords().catch((err) => {
|
|
2731
|
+
this.integrationRegistryUnavailable = `records wiring failed: ${(0, types_2.errMsg)(err)}`;
|
|
2732
|
+
this.logger.error('hub-main records wiring failed — the integration registry stays unset', { meta: { error: (0, types_2.errMsg)(err) } });
|
|
2733
2733
|
});
|
|
2734
2734
|
this.loadCollectionPreferences();
|
|
2735
2735
|
// DeviceStore/ConfigStore are owned by the `device-persistence`
|
|
@@ -3355,13 +3355,14 @@ class AddonRegistryService {
|
|
|
3355
3355
|
return this.buildAddonGroupPlan(this.spawnableIds(addonIds, log));
|
|
3356
3356
|
}
|
|
3357
3357
|
spawnableIds(addonIds, log) {
|
|
3358
|
-
return (0, hub_spawn_gate_js_1.spawnableAddonIds)({
|
|
3358
|
+
return this.heldBackAddons.track(addonIds, (onDeferred) => (0, hub_spawn_gate_js_1.spawnableAddonIds)({
|
|
3359
3359
|
addonIds,
|
|
3360
3360
|
candidateOf: (id) => this.staleCandidateOf(id),
|
|
3361
3361
|
context: (0, hub_spawn_gate_js_1.readHubStaleGateContext)(),
|
|
3362
3362
|
infraCapabilities: new Set(system_1.INFRA_CAPABILITIES.map((c) => c.name)),
|
|
3363
3363
|
log,
|
|
3364
|
-
|
|
3364
|
+
onDeferred,
|
|
3365
|
+
}));
|
|
3365
3366
|
}
|
|
3366
3367
|
staleCandidateOf(addonId) {
|
|
3367
3368
|
const entry = this.addonEntries.get(addonId);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HeldBackAddons = void 0;
|
|
4
|
+
exports.recordBootHealth = recordBootHealth;
|
|
5
|
+
function recordBootHealth(input) {
|
|
6
|
+
for (const [id, entry] of input.entries) {
|
|
7
|
+
if (entry.initialized) {
|
|
8
|
+
input.monitor.recordSuccess(entry.packageName, id);
|
|
9
|
+
continue;
|
|
10
|
+
}
|
|
11
|
+
const reason = input.heldBack.get(id);
|
|
12
|
+
if (reason !== undefined) {
|
|
13
|
+
input.monitor.recordHeldBack(entry.packageName, reason, id);
|
|
14
|
+
continue;
|
|
15
|
+
}
|
|
16
|
+
// The catch handlers of Phase 1/2 do not carry the error forward, so a generic one is
|
|
17
|
+
// synthesized; the real error is in the addon log.
|
|
18
|
+
input.monitor.recordFailure(entry.packageName, new Error(`Addon "${id}" failed to initialize — see addon logs for details`), id);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The ids the spawn gate currently holds back, with the gate's reason. Each gate
|
|
23
|
+
* run over a set of ids replaces what was held for THOSE ids (an addon the gate
|
|
24
|
+
* now lets through is released) and leaves every other id alone.
|
|
25
|
+
*/
|
|
26
|
+
class HeldBackAddons {
|
|
27
|
+
reasons = new Map();
|
|
28
|
+
track(addonIds, run) {
|
|
29
|
+
for (const id of addonIds)
|
|
30
|
+
this.reasons.delete(id);
|
|
31
|
+
return run((id, reason) => {
|
|
32
|
+
this.reasons.set(id, reason);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
has(addonId) {
|
|
36
|
+
return this.reasons.has(addonId);
|
|
37
|
+
}
|
|
38
|
+
asMap() {
|
|
39
|
+
return this.reasons;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.HeldBackAddons = HeldBackAddons;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.instanceSourceOver = instanceSourceOver;
|
|
4
|
+
exports.resolveInstancesOfCap = resolveInstancesOfCap;
|
|
5
|
+
/**
|
|
6
|
+
* The hub's resolver of the instances of a function cap (D1013 rule 5). It binds the registry to the
|
|
7
|
+
* one rule in `@camstack/types` (`instancesOfCap`): every holder of `integration-instances` that also
|
|
8
|
+
* provides the cap describes its kinds, and the instances of a kind of that cap are the answer. A
|
|
9
|
+
* holder that cannot answer is reported, never skipped (D315, D49).
|
|
10
|
+
*/
|
|
11
|
+
const types_1 = require("@camstack/types");
|
|
12
|
+
const instance_links_service_js_1 = require("./instance-links.service.js");
|
|
13
|
+
function holderNamed(registry, addonId) {
|
|
14
|
+
const holder = (0, instance_links_service_js_1.holdersOf)(registry).find((candidate) => candidate.addonId === addonId);
|
|
15
|
+
if (holder === undefined)
|
|
16
|
+
throw new Error(`${addonId} no longer holds integration-instances`);
|
|
17
|
+
return holder;
|
|
18
|
+
}
|
|
19
|
+
/** The source over the hub registry. */
|
|
20
|
+
function instanceSourceOver(registry) {
|
|
21
|
+
return {
|
|
22
|
+
holders: async (cap) => {
|
|
23
|
+
const providers = new Set(registry.getCollectionEntries(cap).map(([addonId]) => addonId));
|
|
24
|
+
return (0, instance_links_service_js_1.holdersOf)(registry)
|
|
25
|
+
.map((holder) => holder.addonId)
|
|
26
|
+
.filter((addonId) => providers.has(addonId));
|
|
27
|
+
},
|
|
28
|
+
describe: (addonId) => holderNamed(registry, addonId).provider.describe(),
|
|
29
|
+
listInstances: (addonId) => holderNamed(registry, addonId).provider.listInstances(),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/** The instances of `cap` across every provider, optionally of one kind. */
|
|
33
|
+
function resolveInstancesOfCap(registry, cap, filter = {}) {
|
|
34
|
+
return (0, types_1.instancesOfCap)(instanceSourceOver(registry), cap, filter);
|
|
35
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.788",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,38 +66,56 @@
|
|
|
66
66
|
],
|
|
67
67
|
"requires": {
|
|
68
68
|
"addons": {
|
|
69
|
-
"@camstack/addon-admin-ui": ">=1.2.
|
|
70
|
-
"@camstack/addon-agent-ui": ">=1.2.
|
|
71
|
-
"@camstack/addon-
|
|
72
|
-
"@camstack/addon-
|
|
73
|
-
"@camstack/addon-
|
|
74
|
-
"@camstack/addon-
|
|
75
|
-
"@camstack/addon-
|
|
76
|
-
"@camstack/addon-
|
|
77
|
-
"@camstack/addon-
|
|
78
|
-
"@camstack/addon-
|
|
79
|
-
"@camstack/addon-
|
|
80
|
-
"@camstack/addon-
|
|
81
|
-
"@camstack/addon-
|
|
82
|
-
"@camstack/addon-
|
|
83
|
-
"@camstack/addon-
|
|
84
|
-
"@camstack/addon-
|
|
85
|
-
"@camstack/addon-
|
|
86
|
-
"@camstack/addon-
|
|
87
|
-
"@camstack/addon-
|
|
88
|
-
"@camstack/addon-
|
|
89
|
-
"@camstack/addon-provider-
|
|
90
|
-
"@camstack/addon-provider-
|
|
91
|
-
"@camstack/addon-provider-
|
|
92
|
-
"@camstack/addon-provider-
|
|
93
|
-
"@camstack/addon-provider-
|
|
94
|
-
"@camstack/addon-provider-
|
|
95
|
-
"@camstack/addon-provider-
|
|
96
|
-
"@camstack/addon-provider-
|
|
97
|
-
"@camstack/addon-provider-
|
|
98
|
-
"@camstack/addon-provider-
|
|
99
|
-
"@camstack/addon-provider-
|
|
100
|
-
"@camstack/addon-
|
|
69
|
+
"@camstack/addon-admin-ui": ">=1.2.601",
|
|
70
|
+
"@camstack/addon-agent-ui": ">=1.2.336",
|
|
71
|
+
"@camstack/addon-ai": ">=0.4.179",
|
|
72
|
+
"@camstack/addon-auth": ">=1.2.177",
|
|
73
|
+
"@camstack/addon-benchmark": ">=1.2.312",
|
|
74
|
+
"@camstack/addon-cloudflare": ">=1.2.158",
|
|
75
|
+
"@camstack/addon-decoder-nodeav": ">=1.2.147",
|
|
76
|
+
"@camstack/addon-export-alexa": ">=1.2.186",
|
|
77
|
+
"@camstack/addon-export-google": ">=0.1.129",
|
|
78
|
+
"@camstack/addon-export-hap": ">=1.2.195",
|
|
79
|
+
"@camstack/addon-google-services": ">=0.2.42",
|
|
80
|
+
"@camstack/addon-import-alexa": ">=0.2.194",
|
|
81
|
+
"@camstack/addon-matter-broker": ">=0.2.162",
|
|
82
|
+
"@camstack/addon-model-studio": ">=1.1.343",
|
|
83
|
+
"@camstack/addon-mqtt-broker": ">=1.2.155",
|
|
84
|
+
"@camstack/addon-notifiers": ">=1.2.632",
|
|
85
|
+
"@camstack/addon-osd-manager": ">=0.1.316",
|
|
86
|
+
"@camstack/addon-pipeline": ">=1.2.644",
|
|
87
|
+
"@camstack/addon-pipeline-orchestrator": ">=1.2.664",
|
|
88
|
+
"@camstack/addon-post-analysis": ">=1.2.676",
|
|
89
|
+
"@camstack/addon-provider-amcrest": ">=0.2.169",
|
|
90
|
+
"@camstack/addon-provider-bosch": ">=0.1.42",
|
|
91
|
+
"@camstack/addon-provider-dreame": ">=0.2.169",
|
|
92
|
+
"@camstack/addon-provider-dreo": ">=0.2.161",
|
|
93
|
+
"@camstack/addon-provider-ecowitt": ">=0.2.159",
|
|
94
|
+
"@camstack/addon-provider-enpal": ">=0.1.13",
|
|
95
|
+
"@camstack/addon-provider-esphome": ">=0.1.16",
|
|
96
|
+
"@camstack/addon-provider-gree": ">=0.2.155",
|
|
97
|
+
"@camstack/addon-provider-hikvision": ">=1.2.185",
|
|
98
|
+
"@camstack/addon-provider-homeassistant": ">=1.2.669",
|
|
99
|
+
"@camstack/addon-provider-homematic": ">=1.2.186",
|
|
100
|
+
"@camstack/addon-provider-mqtt-ha": ">=0.1.42",
|
|
101
|
+
"@camstack/addon-provider-onvif": ">=1.2.157",
|
|
102
|
+
"@camstack/addon-provider-petkit": ">=0.2.164",
|
|
103
|
+
"@camstack/addon-provider-rademacher": ">=0.2.163",
|
|
104
|
+
"@camstack/addon-provider-reolink": ">=1.2.232",
|
|
105
|
+
"@camstack/addon-provider-rtsp": ">=1.2.155",
|
|
106
|
+
"@camstack/addon-provider-tuya": ">=0.2.155",
|
|
107
|
+
"@camstack/addon-provider-unifi": ">=0.2.160",
|
|
108
|
+
"@camstack/addon-provider-unraid": ">=0.2.161",
|
|
109
|
+
"@camstack/addon-provider-velux": ">=0.2.163",
|
|
110
|
+
"@camstack/addon-provider-vesync": ">=0.2.153",
|
|
111
|
+
"@camstack/addon-provider-wyze": ">=0.2.168",
|
|
112
|
+
"@camstack/addon-remote-storage": ">=1.2.145",
|
|
113
|
+
"@camstack/addon-smtp-nodemailer": ">=1.2.151",
|
|
114
|
+
"@camstack/addon-static-turn": ">=1.2.145",
|
|
115
|
+
"@camstack/addon-tailscale": ">=1.2.152",
|
|
116
|
+
"@camstack/addon-terminal": ">=0.1.160",
|
|
117
|
+
"@camstack/addon-training": ">=0.1.133",
|
|
118
|
+
"@camstack/addon-waste-collections": ">=0.1.36"
|
|
101
119
|
},
|
|
102
120
|
"wrapper": {
|
|
103
121
|
"desktop": ">=0.0.1",
|
|
@@ -106,19 +124,19 @@
|
|
|
106
124
|
}
|
|
107
125
|
},
|
|
108
126
|
"dependencies": {
|
|
109
|
-
"@camstack/addon-admin-ui": "1.2.
|
|
110
|
-
"@camstack/addon-agent-ui": "1.2.
|
|
111
|
-
"@camstack/addon-auth": "1.2.
|
|
112
|
-
"@camstack/addon-benchmark": "1.2.
|
|
113
|
-
"@camstack/addon-decoder-nodeav": "1.2.
|
|
114
|
-
"@camstack/addon-notifiers": "1.2.
|
|
115
|
-
"@camstack/addon-pipeline": "1.2.
|
|
116
|
-
"@camstack/addon-pipeline-orchestrator": "1.2.
|
|
117
|
-
"@camstack/addon-post-analysis": "1.2.
|
|
118
|
-
"@camstack/develop": "0.1.
|
|
119
|
-
"@camstack/sdk": "1.2.
|
|
120
|
-
"@camstack/types": "1.2.
|
|
121
|
-
"@camstack/ui-library": "1.2.
|
|
127
|
+
"@camstack/addon-admin-ui": "1.2.601",
|
|
128
|
+
"@camstack/addon-agent-ui": "1.2.336",
|
|
129
|
+
"@camstack/addon-auth": "1.2.177",
|
|
130
|
+
"@camstack/addon-benchmark": "1.2.312",
|
|
131
|
+
"@camstack/addon-decoder-nodeav": "1.2.147",
|
|
132
|
+
"@camstack/addon-notifiers": "1.2.632",
|
|
133
|
+
"@camstack/addon-pipeline": "1.2.644",
|
|
134
|
+
"@camstack/addon-pipeline-orchestrator": "1.2.664",
|
|
135
|
+
"@camstack/addon-post-analysis": "1.2.676",
|
|
136
|
+
"@camstack/develop": "0.1.48",
|
|
137
|
+
"@camstack/sdk": "1.2.156",
|
|
138
|
+
"@camstack/types": "1.2.514",
|
|
139
|
+
"@camstack/ui-library": "1.2.394",
|
|
122
140
|
"@fastify/compress": "^9.0.0",
|
|
123
141
|
"@fastify/cookie": "^11.0.2",
|
|
124
142
|
"@fastify/cors": "^11.2.0",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as isModelDownloaded, S as isModelDownloadHttpError, _ as downloadFile, a as startEventLoopStallMonitor, f as ModelDownloadService, g as deleteModelFromDisk, h as collectModelFiles, i as attributeStall, l as parseRangeHeader, m as adoptModelRevisions, n as STALL_REPORT_MS, o as createFileDataPlaneHandler, p as ModelDownloadHttpError, r as STALL_TICK_MS, s as contentTypeFor, t as CustomActionRegistry, w as resolveFormatRevision, x as getModelFilePath, y as ensureModel } from "./custom-action-registry-
|
|
1
|
+
import { C as isModelDownloaded, S as isModelDownloadHttpError, _ as downloadFile, a as startEventLoopStallMonitor, f as ModelDownloadService, g as deleteModelFromDisk, h as collectModelFiles, i as attributeStall, l as parseRangeHeader, m as adoptModelRevisions, n as STALL_REPORT_MS, o as createFileDataPlaneHandler, p as ModelDownloadHttpError, r as STALL_TICK_MS, s as contentTypeFor, t as CustomActionRegistry, w as resolveFormatRevision, x as getModelFilePath, y as ensureModel } from "./custom-action-registry-N7flBDwT.mjs";
|
|
2
2
|
import { i as renderCourtesyOverlayJpeg, n as courtesyCacheKey, r as renderCourtesyJpeg, t as COURTESY_DEFAULT_WIDTH } from "./snapshot-courtesy-CyFs1M3I.mjs";
|
|
3
3
|
export { COURTESY_DEFAULT_WIDTH, CustomActionRegistry, ModelDownloadHttpError, ModelDownloadService, STALL_REPORT_MS, STALL_TICK_MS, adoptModelRevisions, attributeStall, collectModelFiles, contentTypeFor, courtesyCacheKey, createFileDataPlaneHandler, deleteModelFromDisk, downloadFile, ensureModel, getModelFilePath, isModelDownloadHttpError, isModelDownloaded, parseRangeHeader, renderCourtesyJpeg, renderCourtesyOverlayJpeg, resolveFormatRevision, startEventLoopStallMonitor };
|
|
@@ -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-BRI-Mwx0.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 { Ns as defineRecordKinds } from "./dist-
|
|
1
|
+
import { Ns as defineRecordKinds } from "./dist-BsQA6-0i.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-BRI-Mwx0.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,7 +1,7 @@
|
|
|
1
|
-
import { Ec as EventCategory, Lo as BaseAddon, Tc as errMsg, mn as addonPagesCapability } from "../../dist-
|
|
1
|
+
import { Ec as EventCategory, Lo as BaseAddon, Tc as errMsg, mn as addonPagesCapability } from "../../dist-BsQA6-0i.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
|
-
import * as fs
|
|
4
|
+
import * as fs from "node:fs";
|
|
5
5
|
import * as path$1 from "node:path";
|
|
6
6
|
//#region src/builtins/addon-pages-aggregator/dedupe-pages.ts
|
|
7
7
|
/** Stable identity for an addon page, independent of which node reported it. */
|
|
@@ -211,11 +211,11 @@ var AddonPagesAggregatorAddon = class extends BaseAddon {
|
|
|
211
211
|
const bundlePath = this.resolveBundlePath(addonId, bundle);
|
|
212
212
|
if (bundlePath === null) return `/api/addon-pages/${addonId}/${bundle}?v=${Math.floor(Date.now())}`;
|
|
213
213
|
try {
|
|
214
|
-
const stat = fs
|
|
214
|
+
const stat = fs.statSync(bundlePath);
|
|
215
215
|
const cacheKey = `${bundlePath}:${stat.size}:${stat.mtimeMs}`;
|
|
216
216
|
let v = this.bundleHashCache.get(cacheKey);
|
|
217
217
|
if (v === void 0) {
|
|
218
|
-
v = createHash("sha1").update(fs
|
|
218
|
+
v = createHash("sha1").update(fs.readFileSync(bundlePath)).digest("hex").slice(0, 12);
|
|
219
219
|
this.bundleHashCache.set(cacheKey, v);
|
|
220
220
|
}
|
|
221
221
|
return `/api/addon-pages/${addonId}/${bundle}?v=${v}`;
|
|
@@ -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-BRI-Mwx0.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,7 +1,7 @@
|
|
|
1
|
-
import { Ec as EventCategory, Lo as BaseAddon, Tc as errMsg, gn as addonWidgetsCapability } from "../../dist-
|
|
1
|
+
import { Ec as EventCategory, Lo as BaseAddon, Tc as errMsg, gn as addonWidgetsCapability } from "../../dist-BsQA6-0i.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
|
-
import * as fs
|
|
4
|
+
import * as fs from "node:fs";
|
|
5
5
|
import * as path$1 from "node:path";
|
|
6
6
|
//#region src/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.ts
|
|
7
7
|
/**
|
|
@@ -204,9 +204,9 @@ var AddonWidgetsAggregatorAddon = class extends BaseAddon {
|
|
|
204
204
|
if (entryPath === null) return String(Math.floor(Date.now()));
|
|
205
205
|
try {
|
|
206
206
|
const dir = path$1.dirname(entryPath);
|
|
207
|
-
const files = fs
|
|
207
|
+
const files = fs.readdirSync(dir).filter((f) => fs.statSync(path$1.join(dir, f)).isFile()).sort();
|
|
208
208
|
const cacheKey = `${dir}#${files.map((f) => {
|
|
209
|
-
const s = fs
|
|
209
|
+
const s = fs.statSync(path$1.join(dir, f));
|
|
210
210
|
return `${f}:${s.size}:${s.mtimeMs}`;
|
|
211
211
|
}).join("|")}`;
|
|
212
212
|
const cached = this.bundleHashCache.get(cacheKey);
|
|
@@ -214,7 +214,7 @@ var AddonWidgetsAggregatorAddon = class extends BaseAddon {
|
|
|
214
214
|
const hash = createHash("sha1");
|
|
215
215
|
for (const f of files) {
|
|
216
216
|
hash.update(f);
|
|
217
|
-
hash.update(fs
|
|
217
|
+
hash.update(fs.readFileSync(path$1.join(dir, f)));
|
|
218
218
|
}
|
|
219
219
|
const digest = hash.digest("hex").slice(0, 12);
|
|
220
220
|
this.bundleHashCache.set(cacheKey, digest);
|
|
@@ -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-BRI-Mwx0.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,6 +1,6 @@
|
|
|
1
|
-
import { Ec as EventCategory$1, Lo as BaseAddon, Ns as defineRecordKinds, Os as createEvent$1, Tc as errMsg$1, Ur as isAlertEpisodeOpen, Wr as isAlertEpisodeSeverity, _n as alertEpisodeId, f as AlertSchema, vn as alertEpisodePayload, w as CORE_BLOCK_ADDON_PREFIX, yn as alertsCapability } from "../../dist-
|
|
1
|
+
import { Ec as EventCategory$1, Lo as BaseAddon, Ns as defineRecordKinds, Os as createEvent$1, Tc as errMsg$1, Ur as isAlertEpisodeOpen, Wr as isAlertEpisodeSeverity, _n as alertEpisodeId, f as AlertSchema, vn as alertEpisodePayload, w as CORE_BLOCK_ADDON_PREFIX, yn as alertsCapability } from "../../dist-BsQA6-0i.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
|
-
import * as fs
|
|
3
|
+
import * as fs from "node:fs";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
5
5
|
import { maskUrlCredentials, scrubKnownSecrets } from "@camstack/types/addon";
|
|
6
6
|
//#region src/builtins/alerts/alert-episode-policy.ts
|
|
@@ -242,7 +242,7 @@ function lastCauseAfterChunk(previous, chunk) {
|
|
|
242
242
|
function readRunnerDisplayName(addonDirs, runnerId) {
|
|
243
243
|
const names = [];
|
|
244
244
|
for (const dir of addonDirs) try {
|
|
245
|
-
const raw = JSON.parse(fs
|
|
245
|
+
const raw = JSON.parse(fs.readFileSync(path$1.join(dir, "package.json"), "utf-8"));
|
|
246
246
|
const camstack = typeof raw === "object" && raw !== null ? Reflect.get(raw, "camstack") : null;
|
|
247
247
|
const addons = typeof camstack === "object" && camstack !== null ? Reflect.get(camstack, "addons") : null;
|
|
248
248
|
if (!Array.isArray(addons)) continue;
|
|
@@ -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-BRI-Mwx0.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 { Ec as EventCategory, Lo as BaseAddon, Tc as errMsg, Ws as isEvent, Xi as ptzAutotrackCapability, rt as FIRST_LEVEL_MACRO_CLASSES, wn as bareAddonId } from "../../dist-
|
|
1
|
+
import { Ec as EventCategory, Lo as BaseAddon, Tc as errMsg, Ws as isEvent, Xi as ptzAutotrackCapability, rt as FIRST_LEVEL_MACRO_CLASSES, wn as bareAddonId } from "../../dist-BsQA6-0i.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-BRI-Mwx0.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-GoWJMdHy.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,8 +1,8 @@
|
|
|
1
|
-
import { Cn as backupCapability, Ec as EventCategory, Lo as BaseAddon, Pa as storageOccupancyCapability, _c as toNodeId, gi as mayWriteToLocation, nc as nodePin } from "../../dist-
|
|
1
|
+
import { Cn as backupCapability, Ec as EventCategory, Lo as BaseAddon, Pa as storageOccupancyCapability, _c as toNodeId, gi as mayWriteToLocation, nc as nodePin } from "../../dist-BsQA6-0i.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-Co2lk3OU.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
|
-
import * as fs
|
|
5
|
+
import * as fs from "node:fs";
|
|
6
6
|
import * as path$1 from "node:path";
|
|
7
7
|
import * as fsp from "node:fs/promises";
|
|
8
8
|
//#region src/builtins/backup-orchestrator/backup-databases.ts
|
|
@@ -1018,7 +1018,7 @@ async function downloadArchiveToCache(input) {
|
|
|
1018
1018
|
location: input.locationId,
|
|
1019
1019
|
relativePath: input.filename
|
|
1020
1020
|
});
|
|
1021
|
-
const writeStream = fs
|
|
1021
|
+
const writeStream = fs.createWriteStream(input.cachePath);
|
|
1022
1022
|
let offset = 0;
|
|
1023
1023
|
try {
|
|
1024
1024
|
while (offset < sizeBytes) {
|
|
@@ -2502,7 +2502,7 @@ var BackupOrchestratorAddon = class extends BaseAddon {
|
|
|
2502
2502
|
});
|
|
2503
2503
|
try {
|
|
2504
2504
|
let offset = 0;
|
|
2505
|
-
const stream = fs
|
|
2505
|
+
const stream = fs.createReadStream(input.cachePath, { highWaterMark: UPLOAD_CHUNK_BYTES });
|
|
2506
2506
|
for await (const rawChunk of stream) {
|
|
2507
2507
|
if (input.signal?.aborted) {
|
|
2508
2508
|
stream.destroy();
|
|
@@ -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-BRI-Mwx0.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, Lo as BaseAddon, Mn as calendarsCapability, Ns as defineRecordKinds } from "../../dist-
|
|
1
|
+
import { E as CalendarPreferencesSchema, Lo as BaseAddon, Mn as calendarsCapability, Ns as defineRecordKinds } from "../../dist-BsQA6-0i.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-BRI-Mwx0.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let _camstack_types_node = require("@camstack/types/node");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ec as EventCategory, Ia as streamCatalogCapability, J as DeclaredDevices, Lo as BaseAddon, Nn as cameraGridLayoutCapability, Os as createEvent, Sc as DeviceFeature, Tc as errMsg, Tt as MOTION_CLOSE_AFTER_MS, Vs as hydrateSchema, ar as declarationOwnerNodeId, fo as buildFfmpegArgs, h as BaseDevice, ka as snapshotCapability, wc as DeviceType, wi as motionCapability, wn as bareAddonId, yi as memoizePinnedFfmpeg, z as DERIVED_CAMERA_SILENCED_CAP_NAMES } from "../../dist-
|
|
1
|
+
import { Ec as EventCategory, Ia as streamCatalogCapability, J as DeclaredDevices, Lo as BaseAddon, Nn as cameraGridLayoutCapability, Os as createEvent, Sc as DeviceFeature, Tc as errMsg, Tt as MOTION_CLOSE_AFTER_MS, Vs as hydrateSchema, ar as declarationOwnerNodeId, fo as buildFfmpegArgs, h as BaseDevice, ka as snapshotCapability, wc as DeviceType, wi as motionCapability, wn as bareAddonId, yi as memoizePinnedFfmpeg, z as DERIVED_CAMERA_SILENCED_CAP_NAMES } from "../../dist-BsQA6-0i.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { FfmpegProcess } from "@camstack/types/node";
|
|
4
4
|
import { promises } from "node:fs";
|
|
@@ -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-BRI-Mwx0.js");
|
|
7
|
+
const require_composition_sources = require("../../composition-sources-BgO0GQYW.js");
|
|
8
|
+
const require_capture_engine = require("../../capture-engine-DNHgjQot.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 { $n as coverCapability, Ao as openReset, Ar as fanOutTargets, Ca as sharedActuatorFeatures, Co as evaluateStatistic, Cr as evaluateCompositionField, Do as isForwardInputRef, Dr as expressionContainsBuiltinCall, Ec as EventCategory, En as brightnessCapability, Eo as integrateReading, Fo as toExpressionValue, Gn as compositionFieldKey, Ii as parseColorInput, J as DeclaredDevices, Ji as processTimeZoneOr, Lo as BaseAddon, Mo as planResetTier, Mr as featureForwards, No as planStatisticTier, On as buildCapabilityLookup, Oo as isHistoryHelper, Os as createEvent, Po as statisticCadenceMs, Pt as PetFountainStatusSchema, Ri as petFountainCapability, Rr as groupCommandsCapability, So as evaluateDerivative, Ta as sharedColorModes, Tc as errMsg, To as historyRetentionFromSettings, Vi as planComposition, Vn as colorCapability, Wn as composerCapability, Ya as valveCapability, _i as mediaPlayerCapability, _o as compositionItemFieldPath, at as FanDirectionSchema, bi as methodRefusal, bo as createStatefulExpressionMemory, co as HISTORY_SLOW_MS, da as resolveMutate, do as MINUTE_MS, go as compositionFeatureEnabled, h as BaseDevice, ha as runFanOut, ho as composedDeviceStableId, i as ACTUATOR_TEMPLATE_IDS, jo as openStatistic, k as ConsumableItemSchema, ko as nextLocalMidnight, kr as fanControlCapability, lo as HOUR_MS, lt as GroupCommandResultSchema, mo as composedDeviceRef, mt as HvacModeSchema, oo as DEFAULT_HISTORY_RETENTION, or as declaredSeriesKind, po as cloneStatefulExpressionMemory, qn as consumablesCapability, qs as isReadingQuantity, r as ACTUATOR_METHODS, ro as COMPOSER_ADDON_ID, s as ALL_CAPABILITY_DEFINITIONS, so as HISTORY_FAST_MS, ti as kebabToCamel, ui as lockControlCapability, vi as mediaPlayerFeaturesOfRoles, vo as compositionSliceKey, wa as sharedActuatorMethods, wc as DeviceType, wi as motionCapability, x as COMPOSED_ITEM_FIXED_FIELDS, xo as disarmRoseMemory, yo as compositionSourceKey, za as switchCapability, zi as petFountainWaterItem, zn as climateControlCapability, zr as groupTemplate } 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 { $n as coverCapability, Ao as openReset, Ar as fanOutTargets, Ca as sharedActuatorFeatures, Co as evaluateStatistic, Cr as evaluateCompositionField, Do as isForwardInputRef, Dr as expressionContainsBuiltinCall, Ec as EventCategory, En as brightnessCapability, Eo as integrateReading, Fo as toExpressionValue, Gn as compositionFieldKey, Ii as parseColorInput, J as DeclaredDevices, Ji as processTimeZoneOr, Lo as BaseAddon, Mo as planResetTier, Mr as featureForwards, No as planStatisticTier, On as buildCapabilityLookup, Oo as isHistoryHelper, Os as createEvent, Po as statisticCadenceMs, Pt as PetFountainStatusSchema, Ri as petFountainCapability, Rr as groupCommandsCapability, So as evaluateDerivative, Ta as sharedColorModes, Tc as errMsg, To as historyRetentionFromSettings, Vi as planComposition, Vn as colorCapability, Wn as composerCapability, Ya as valveCapability, _i as mediaPlayerCapability, _o as compositionItemFieldPath, at as FanDirectionSchema, bi as methodRefusal, bo as createStatefulExpressionMemory, co as HISTORY_SLOW_MS, da as resolveMutate, do as MINUTE_MS, go as compositionFeatureEnabled, h as BaseDevice, ha as runFanOut, ho as composedDeviceStableId, i as ACTUATOR_TEMPLATE_IDS, jo as openStatistic, k as ConsumableItemSchema, ko as nextLocalMidnight, kr as fanControlCapability, lo as HOUR_MS, lt as GroupCommandResultSchema, mo as composedDeviceRef, mt as HvacModeSchema, oo as DEFAULT_HISTORY_RETENTION, or as declaredSeriesKind, po as cloneStatefulExpressionMemory, qn as consumablesCapability, qs as isReadingQuantity, r as ACTUATOR_METHODS, ro as COMPOSER_ADDON_ID, s as ALL_CAPABILITY_DEFINITIONS, so as HISTORY_FAST_MS, ti as kebabToCamel, ui as lockControlCapability, vi as mediaPlayerFeaturesOfRoles, vo as compositionSliceKey, wa as sharedActuatorMethods, wc as DeviceType, wi as motionCapability, x as COMPOSED_ITEM_FIXED_FIELDS, xo as disarmRoseMemory, yo as compositionSourceKey, za as switchCapability, zi as petFountainWaterItem, zn as climateControlCapability, zr as groupTemplate } from "../../dist-BsQA6-0i.mjs";
|
|
2
|
+
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-BRdGsbVT.mjs";
|
|
3
|
+
import { i as capSeriesKey } from "../../capture-engine-BsKY_3xa.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
|