@camstack/server 1.2.898 → 1.2.900
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 +12 -0
- package/dist/api/trpc/cap-router-runtime.js +1 -0
- package/dist/api/trpc/generated-cap-mounts.js +2 -1
- package/dist/api/trpc/generated-cap-routers.js +1944 -1870
- package/dist/core/addon/hub-addon-api.js +1 -0
- package/dist/core/moleculer/moleculer.service.js +1 -0
- package/package.json +10 -15
- package/system/dist/addon-runner.js +111 -8
- package/system/dist/addon-runner.mjs +111 -8
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +4 -4
- package/system/dist/builtins/composer/composer.addon.mjs +4 -4
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/composition-api.d.ts +37 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.d.ts +14 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +516 -7
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +516 -7
- package/system/dist/builtins/core-blocks/link-contributions.d.ts +85 -0
- package/system/dist/builtins/core-blocks/power-source-service.d.ts +25 -1
- 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/command-holds.d.ts +2 -0
- package/system/dist/builtins/device-manager/device-identifiers-action.d.ts +8 -0
- package/system/dist/builtins/device-manager/device-identity-index.d.ts +56 -2
- package/system/dist/builtins/device-manager/device-manager.addon.d.ts +1 -0
- package/system/dist/builtins/device-manager/device-manager.addon.js +1329 -84
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +1316 -84
- package/system/dist/builtins/device-manager/device-meta-types.d.ts +9 -1
- package/system/dist/builtins/device-manager/device-provider-context.d.ts +3 -0
- package/system/dist/builtins/device-manager/device-row-store.d.ts +4 -2
- package/system/dist/builtins/device-manager/device-state-mirror.d.ts +7 -0
- package/system/dist/builtins/device-manager/identity-link-reconciler.d.ts +66 -0
- package/system/dist/builtins/device-manager/identity-links-store.d.ts +22 -0
- package/system/dist/builtins/device-manager/record-kinds.d.ts +2 -1
- package/system/dist/builtins/device-manager/state-refresh-scheduler.d.ts +92 -0
- package/system/dist/builtins/device-manager/state-refresh-wiring.d.ts +23 -0
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/local-network.addon.js +3 -3
- package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +284 -284
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{capture-engine-BWS0KTbm.js → capture-engine-B3csK2sW.js} +1 -1
- package/system/dist/{capture-engine-DBQDaDxJ.mjs → capture-engine-CCAzcezv.mjs} +1 -1
- package/system/dist/{composition-sources-CGUWmf-T.mjs → composition-sources-BX7u-Hdf.mjs} +1 -1
- package/system/dist/{composition-sources-CDOW1dnY.js → composition-sources-Bkbk5Oh5.js} +1 -1
- package/system/dist/{constants-BwrRoq-j.js → constants-BqxCksdV.js} +1 -1
- package/system/dist/{constants-BmrLkwZs.mjs → constants-_bOm_ae5.mjs} +1 -1
- package/system/dist/{device-ca-BGgZXEto.mjs → device-ca-DRqN1P5Y.mjs} +1 -1
- package/system/dist/{device-ca-DiuwWyZY.js → device-ca-KNx_DazP.js} +1 -1
- package/system/dist/{dist-CCd8IeIU.js → dist-BNrIzdrJ.js} +514 -7
- package/system/dist/{dist-D7t8wLTF.mjs → dist-S-zGcCEr.mjs} +455 -8
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-BohJeqdO.mjs → hub-identity-DSdbZxeR.mjs} +1 -1
- package/system/dist/{hub-identity-G_ZdyPpc.js → hub-identity-pN0LtUhx.js} +1 -1
- package/system/dist/{hub-mdns-ciao-CKD4EgkG.js → hub-mdns-ciao-GafEbDm8.js} +2 -2
- package/system/dist/{hub-mdns-ciao-D5RxSMrH.mjs → hub-mdns-ciao-wAcv5VBY.mjs} +2 -2
- package/system/dist/index.js +59 -12
- package/system/dist/index.mjs +55 -14
- package/system/dist/kernel/cap-router-builder.d.ts +7 -0
- package/system/dist/kernel/command-follow-up.d.ts +33 -0
- package/system/dist/kernel/command-observation.d.ts +3 -0
- package/system/dist/kernel/index.d.ts +3 -0
- package/system/dist/kernel/moleculer/child-cap-descriptors.d.ts +3 -1
- package/system/dist/kernel/moleculer/device-cap-proxy.d.ts +2 -1
- package/system/dist/kernel/state-refresh-policies.d.ts +53 -0
- package/system/dist/kernel/transport/child-cap-protocol.d.ts +6 -1
- package/system/dist/kernel/transport/local-child-registry.d.ts +14 -0
- package/system/dist/{legacy-integration-rows-door-Rm9JmIsl.mjs → legacy-integration-rows-door--186Wij_.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-BgCl68ek.js → legacy-integration-rows-door-B1swGb0r.js} +1 -1
- package/system/dist/{rename-composition-block-DNO3mNEO.mjs → rename-composition-block-Cf5syiM4.mjs} +1 -1
- package/system/dist/{rename-composition-block-2Z2ED7Og.js → rename-composition-block-gJ_4GdHr.js} +1 -1
- package/system/dist/{restore-archive-2L5TymvF.mjs → restore-archive-D7UwwT1L.mjs} +82 -82
- package/system/dist/{restore-archive-CZkQO8t3.js → restore-archive-DXi9iBay.js} +1 -1
- package/system/dist/{wal-maintenance-YjDJ73Qd.js → wal-maintenance-BA9XNPvt.js} +0 -0
- package/system/dist/{wal-maintenance-BMYe_n18.mjs → wal-maintenance-s3KdED98.mjs} +0 -0
- package/system/package.json +1 -1
|
@@ -25,6 +25,7 @@ function createHubAddonApi(options) {
|
|
|
25
25
|
(0, system_1.commandObserverLink)({
|
|
26
26
|
callerAddonId: options.callerAddonId,
|
|
27
27
|
sink: options.commandSink ?? ((obs) => (0, system_1.getCommandObserverRegistry)().observe(obs)),
|
|
28
|
+
followUp: (target, outcome) => (0, system_1.getCommandFollowUpRegistry)().run(target, outcome),
|
|
28
29
|
}),
|
|
29
30
|
(0, system_1.localProviderLink)(options.resolver, observerOpts),
|
|
30
31
|
...options.links,
|
|
@@ -500,6 +500,7 @@ class MoleculerService {
|
|
|
500
500
|
// A forked addon's device commands (D1022): the actor is the addon on the
|
|
501
501
|
// socket. The hub mirror's correlator listens on this registry.
|
|
502
502
|
commandObserver: (obs) => (0, system_1.getCommandObserverRegistry)().observe(obs),
|
|
503
|
+
commandFollowUp: (target, outcome) => (0, system_1.getCommandFollowUpRegistry)().run(target, outcome),
|
|
503
504
|
logger: {
|
|
504
505
|
info: (msg, meta) => logger.info(msg, meta !== null && meta !== undefined
|
|
505
506
|
? { meta: meta }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.900",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,15 +66,10 @@
|
|
|
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-pipeline": ">=1.2.661",
|
|
74
|
-
"@camstack/addon-pipeline-orchestrator": ">=1.2.701",
|
|
75
|
-
"@camstack/addon-post-analysis": ">=1.2.715",
|
|
76
|
-
"@camstack/addon-provider-homeassistant": ">=1.2.694",
|
|
77
|
-
"@camstack/addon-provider-vesync": ">=0.2.166"
|
|
69
|
+
"@camstack/addon-admin-ui": ">=1.2.699",
|
|
70
|
+
"@camstack/addon-agent-ui": ">=1.2.409",
|
|
71
|
+
"@camstack/addon-post-analysis": ">=1.2.716",
|
|
72
|
+
"@camstack/addon-provider-unifi": ">=0.2.169"
|
|
78
73
|
},
|
|
79
74
|
"wrapper": {
|
|
80
75
|
"desktop": ">=0.0.1",
|
|
@@ -83,19 +78,19 @@
|
|
|
83
78
|
}
|
|
84
79
|
},
|
|
85
80
|
"dependencies": {
|
|
86
|
-
"@camstack/addon-admin-ui": "1.2.
|
|
87
|
-
"@camstack/addon-agent-ui": "1.2.
|
|
81
|
+
"@camstack/addon-admin-ui": "1.2.699",
|
|
82
|
+
"@camstack/addon-agent-ui": "1.2.409",
|
|
88
83
|
"@camstack/addon-auth": "1.2.182",
|
|
89
84
|
"@camstack/addon-benchmark": "1.2.313",
|
|
90
85
|
"@camstack/addon-decoder-nodeav": "1.2.149",
|
|
91
86
|
"@camstack/addon-notifiers": "1.2.639",
|
|
92
87
|
"@camstack/addon-pipeline": "1.2.661",
|
|
93
88
|
"@camstack/addon-pipeline-orchestrator": "1.2.701",
|
|
94
|
-
"@camstack/addon-post-analysis": "1.2.
|
|
89
|
+
"@camstack/addon-post-analysis": "1.2.716",
|
|
95
90
|
"@camstack/develop": "0.1.54",
|
|
96
91
|
"@camstack/sdk": "1.2.159",
|
|
97
|
-
"@camstack/types": "1.2.
|
|
98
|
-
"@camstack/ui-library": "1.2.
|
|
92
|
+
"@camstack/types": "1.2.594",
|
|
93
|
+
"@camstack/ui-library": "1.2.470",
|
|
99
94
|
"@fastify/compress": "^9.0.0",
|
|
100
95
|
"@fastify/cookie": "^11.0.2",
|
|
101
96
|
"@fastify/cors": "^11.2.0",
|
|
@@ -5977,10 +5977,74 @@ var CommandHoldOverrideRegistry = class {
|
|
|
5977
5977
|
}
|
|
5978
5978
|
}
|
|
5979
5979
|
};
|
|
5980
|
-
var registry;
|
|
5980
|
+
var registry$1;
|
|
5981
5981
|
/** The process-wide registry. */
|
|
5982
5982
|
function getCommandHoldOverrideRegistry() {
|
|
5983
|
-
registry ??= new CommandHoldOverrideRegistry();
|
|
5983
|
+
registry$1 ??= new CommandHoldOverrideRegistry();
|
|
5984
|
+
return registry$1;
|
|
5985
|
+
}
|
|
5986
|
+
/** The source key of an in-process registration. */
|
|
5987
|
+
var IN_PROCESS_REFRESH_SOURCE = "in-process";
|
|
5988
|
+
var StateRefreshPolicyRegistry = class {
|
|
5989
|
+
bySource = /* @__PURE__ */ new Map();
|
|
5990
|
+
listeners = /* @__PURE__ */ new Set();
|
|
5991
|
+
/** Record (or replace) one device's policy from `source`. */
|
|
5992
|
+
set(source, entry) {
|
|
5993
|
+
const perSource = new Map(this.bySource.get(source) ?? []);
|
|
5994
|
+
perSource.set(entry.deviceId, entry);
|
|
5995
|
+
this.bySource.set(source, perSource);
|
|
5996
|
+
this.changed();
|
|
5997
|
+
}
|
|
5998
|
+
/** Forget one device's policy from `source`. */
|
|
5999
|
+
delete(source, deviceId) {
|
|
6000
|
+
const perSource = this.bySource.get(source);
|
|
6001
|
+
if (perSource === void 0 || !perSource.has(deviceId)) return;
|
|
6002
|
+
const next = new Map(perSource);
|
|
6003
|
+
next.delete(deviceId);
|
|
6004
|
+
if (next.size === 0) this.bySource.delete(source);
|
|
6005
|
+
else this.bySource.set(source, next);
|
|
6006
|
+
this.changed();
|
|
6007
|
+
}
|
|
6008
|
+
/** Replace everything `source` reported with `entries` (an empty list forgets the source). */
|
|
6009
|
+
replaceSource(source, entries) {
|
|
6010
|
+
const had = this.bySource.has(source);
|
|
6011
|
+
if (entries.length === 0) {
|
|
6012
|
+
this.bySource.delete(source);
|
|
6013
|
+
if (had) this.changed();
|
|
6014
|
+
return;
|
|
6015
|
+
}
|
|
6016
|
+
this.bySource.set(source, new Map(entries.map((e) => [e.deviceId, e])));
|
|
6017
|
+
this.changed();
|
|
6018
|
+
}
|
|
6019
|
+
/** Every device's policy (a device registered by two sources keeps the first). */
|
|
6020
|
+
entries() {
|
|
6021
|
+
const seen = /* @__PURE__ */ new Map();
|
|
6022
|
+
for (const perSource of this.bySource.values()) for (const entry of perSource.values()) if (!seen.has(entry.deviceId)) seen.set(entry.deviceId, entry);
|
|
6023
|
+
return [...seen.values()];
|
|
6024
|
+
}
|
|
6025
|
+
/** One device's policy, or `undefined` when its provider did not migrate. */
|
|
6026
|
+
get(deviceId) {
|
|
6027
|
+
for (const perSource of this.bySource.values()) {
|
|
6028
|
+
const found = perSource.get(deviceId);
|
|
6029
|
+
if (found !== void 0) return found;
|
|
6030
|
+
}
|
|
6031
|
+
}
|
|
6032
|
+
subscribe(listener) {
|
|
6033
|
+
this.listeners.add(listener);
|
|
6034
|
+
return () => {
|
|
6035
|
+
this.listeners.delete(listener);
|
|
6036
|
+
};
|
|
6037
|
+
}
|
|
6038
|
+
changed() {
|
|
6039
|
+
for (const listener of this.listeners) try {
|
|
6040
|
+
listener();
|
|
6041
|
+
} catch {}
|
|
6042
|
+
}
|
|
6043
|
+
};
|
|
6044
|
+
var registry;
|
|
6045
|
+
/** The process-wide registry. */
|
|
6046
|
+
function getStateRefreshPolicyRegistry() {
|
|
6047
|
+
registry ??= new StateRefreshPolicyRegistry();
|
|
5984
6048
|
return registry;
|
|
5985
6049
|
}
|
|
5986
6050
|
//#endregion
|
|
@@ -6147,6 +6211,16 @@ var workerNativeCapAddonIds = /* @__PURE__ */ new Map();
|
|
|
6147
6211
|
* hub's hold reads them; absent = the core default.
|
|
6148
6212
|
*/
|
|
6149
6213
|
var workerNativeCapHolds = /* @__PURE__ */ new Map();
|
|
6214
|
+
/**
|
|
6215
|
+
* The state-refresh policy a provider stated on a device's
|
|
6216
|
+
* `device-state-refresh` registration (D1062). deviceId → policy. Carried on
|
|
6217
|
+
* the child's cap descriptors so the hub's scheduler reads it.
|
|
6218
|
+
*/
|
|
6219
|
+
var workerNativeCapRefresh = /* @__PURE__ */ new Map();
|
|
6220
|
+
/** The policy a registration states, read only on the refresh cap. */
|
|
6221
|
+
function stateRefreshOf(capName, options) {
|
|
6222
|
+
return capName === "device-state-refresh" ? options?.stateRefresh : void 0;
|
|
6223
|
+
}
|
|
6150
6224
|
var mountedNativeCapServices = /* @__PURE__ */ new Set();
|
|
6151
6225
|
/** A provider's hold options as plain data, or `undefined` when it stated none. */
|
|
6152
6226
|
function commandHoldsOf(options) {
|
|
@@ -6235,6 +6309,7 @@ function mountNativeCapService(broker, addonId, cap) {
|
|
|
6235
6309
|
function clearWorkerNativeCapsForDevice(deviceId) {
|
|
6236
6310
|
for (const perCap of workerNativeCaps.values()) perCap.delete(deviceId);
|
|
6237
6311
|
for (const perCap of workerNativeCapAddonIds.values()) perCap.delete(deviceId);
|
|
6312
|
+
workerNativeCapRefresh.delete(deviceId);
|
|
6238
6313
|
onWorkerNativeCapsChanged?.();
|
|
6239
6314
|
}
|
|
6240
6315
|
/**
|
|
@@ -6265,19 +6340,33 @@ function getWorkerNativeCapSnapshot() {
|
|
|
6265
6340
|
}
|
|
6266
6341
|
}
|
|
6267
6342
|
return [...grouped.values()].map((entry) => {
|
|
6343
|
+
const withRefresh = withStateRefresh(entry);
|
|
6268
6344
|
const holds = workerNativeCapHolds.get(entry.capName);
|
|
6269
|
-
if (holds === void 0) return
|
|
6345
|
+
if (holds === void 0) return withRefresh;
|
|
6270
6346
|
const forEntry = /* @__PURE__ */ new Map();
|
|
6271
6347
|
for (const deviceId of entry.deviceIds) {
|
|
6272
6348
|
const options = holds.get(deviceId);
|
|
6273
6349
|
if (options !== void 0) forEntry.set(deviceId, options);
|
|
6274
6350
|
}
|
|
6275
|
-
return forEntry.size === 0 ?
|
|
6276
|
-
...
|
|
6351
|
+
return forEntry.size === 0 ? withRefresh : {
|
|
6352
|
+
...withRefresh,
|
|
6277
6353
|
commandHolds: forEntry
|
|
6278
6354
|
};
|
|
6279
6355
|
});
|
|
6280
6356
|
}
|
|
6357
|
+
/** A refresh-cap snapshot row with the policies its devices stated (D1062). */
|
|
6358
|
+
function withStateRefresh(entry) {
|
|
6359
|
+
if (entry.capName !== "device-state-refresh") return entry;
|
|
6360
|
+
const forEntry = /* @__PURE__ */ new Map();
|
|
6361
|
+
for (const deviceId of entry.deviceIds) {
|
|
6362
|
+
const policy = workerNativeCapRefresh.get(deviceId);
|
|
6363
|
+
if (policy !== void 0) forEntry.set(deviceId, policy);
|
|
6364
|
+
}
|
|
6365
|
+
return forEntry.size === 0 ? entry : {
|
|
6366
|
+
...entry,
|
|
6367
|
+
stateRefresh: forEntry
|
|
6368
|
+
};
|
|
6369
|
+
}
|
|
6281
6370
|
function getWorkerNativeCapsForDevice(deviceId) {
|
|
6282
6371
|
const caps = [];
|
|
6283
6372
|
for (const [capName, perCap] of workerNativeCaps) if (perCap.has(deviceId)) caps.push(capName);
|
|
@@ -6436,6 +6525,7 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6436
6525
|
},
|
|
6437
6526
|
registerNativeCap(cap, provider, options) {
|
|
6438
6527
|
const commandHolds = commandHoldsOf(options);
|
|
6528
|
+
const stateRefresh = stateRefreshOf(cap.name, options);
|
|
6439
6529
|
if (cap.runtimeState && runtimeStateRef) try {
|
|
6440
6530
|
runtimeStateRef.installCapSchema(cap.name, cap.runtimeState);
|
|
6441
6531
|
} catch (err) {
|
|
@@ -6476,6 +6566,12 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6476
6566
|
commands: commandHolds
|
|
6477
6567
|
});
|
|
6478
6568
|
else getCommandHoldOverrideRegistry().delete(IN_PROCESS_HOLD_SOURCE, id, cap.name);
|
|
6569
|
+
if (stateRefresh !== void 0) getStateRefreshPolicyRegistry().set(IN_PROCESS_REFRESH_SOURCE, {
|
|
6570
|
+
deviceId: id,
|
|
6571
|
+
addonId,
|
|
6572
|
+
policy: stateRefresh
|
|
6573
|
+
});
|
|
6574
|
+
else if (cap.name === "device-state-refresh") getStateRefreshPolicyRegistry().delete(IN_PROCESS_REFRESH_SOURCE, id);
|
|
6479
6575
|
} else if (opts.broker || opts.udsMode) {
|
|
6480
6576
|
let perCap = workerNativeCaps.get(cap.name);
|
|
6481
6577
|
if (!perCap) {
|
|
@@ -6494,6 +6590,8 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6494
6590
|
perHolds.set(id, commandHolds);
|
|
6495
6591
|
workerNativeCapHolds.set(cap.name, perHolds);
|
|
6496
6592
|
} else workerNativeCapHolds.get(cap.name)?.delete(id);
|
|
6593
|
+
if (stateRefresh !== void 0) workerNativeCapRefresh.set(id, stateRefresh);
|
|
6594
|
+
else if (cap.name === "device-state-refresh") workerNativeCapRefresh.delete(id);
|
|
6497
6595
|
if (opts.broker) mountNativeCapService(opts.broker, addonId, cap);
|
|
6498
6596
|
onWorkerNativeCapsChanged?.();
|
|
6499
6597
|
} else throw new Error(`DeviceContext.registerNativeCap('${cap.name}') called on '${stableId}' but none of capabilityRegistry / broker / udsMode was provided.`);
|
|
@@ -6550,10 +6648,12 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6550
6648
|
else if (opts.capabilityRegistry) {
|
|
6551
6649
|
opts.capabilityRegistry.unregisterNativeProvider(capName, id);
|
|
6552
6650
|
getCommandHoldOverrideRegistry().delete(IN_PROCESS_HOLD_SOURCE, id, capName);
|
|
6651
|
+
if (capName === "device-state-refresh") getStateRefreshPolicyRegistry().delete(IN_PROCESS_REFRESH_SOURCE, id);
|
|
6553
6652
|
} else {
|
|
6554
6653
|
workerNativeCaps.get(capName)?.delete(id);
|
|
6555
6654
|
workerNativeCapAddonIds.get(capName)?.delete(id);
|
|
6556
6655
|
workerNativeCapHolds.get(capName)?.delete(id);
|
|
6656
|
+
if (capName === "device-state-refresh") workerNativeCapRefresh.delete(id);
|
|
6557
6657
|
onWorkerNativeCapsChanged?.();
|
|
6558
6658
|
}
|
|
6559
6659
|
eventBus.emit({
|
|
@@ -6675,7 +6775,8 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6675
6775
|
for (const child of children) await teardownLocal(child.id, runLifecycle);
|
|
6676
6776
|
const capsToUnregister = opts.capabilityRegistry ? [...opts.capabilityRegistry.getNativeCapsForDevice(deviceId)] : [...getWorkerNativeCapsForDevice(deviceId)];
|
|
6677
6777
|
opts.capabilityRegistry?.unregisterAllNativeForDevice(deviceId);
|
|
6678
|
-
if (
|
|
6778
|
+
if (opts.capabilityRegistry) getStateRefreshPolicyRegistry().delete(IN_PROCESS_REFRESH_SOURCE, deviceId);
|
|
6779
|
+
else clearWorkerNativeCapsForDevice(deviceId);
|
|
6679
6780
|
for (const capName of capsToUnregister) {
|
|
6680
6781
|
eventBus.emit({
|
|
6681
6782
|
id: (0, node_crypto.randomUUID)(),
|
|
@@ -11821,14 +11922,16 @@ function buildChildCapDescriptors(manifest, nativeCapSnapshot) {
|
|
|
11821
11922
|
});
|
|
11822
11923
|
}
|
|
11823
11924
|
}
|
|
11824
|
-
for (const { capName, addonId, deviceIds, commandHolds } of nativeCapSnapshot) for (const deviceId of deviceIds) {
|
|
11925
|
+
for (const { capName, addonId, deviceIds, commandHolds, stateRefresh } of nativeCapSnapshot) for (const deviceId of deviceIds) {
|
|
11825
11926
|
const holds = commandHolds?.get(deviceId);
|
|
11927
|
+
const refresh = stateRefresh?.get(deviceId);
|
|
11826
11928
|
descriptors.push({
|
|
11827
11929
|
capName,
|
|
11828
11930
|
mode: "collection",
|
|
11829
11931
|
deviceId,
|
|
11830
11932
|
addonId,
|
|
11831
|
-
...holds !== void 0 ? { commandHolds: holds } : {}
|
|
11933
|
+
...holds !== void 0 ? { commandHolds: holds } : {},
|
|
11934
|
+
...refresh !== void 0 ? { stateRefresh: refresh } : {}
|
|
11832
11935
|
});
|
|
11833
11936
|
}
|
|
11834
11937
|
return descriptors;
|
|
@@ -5922,10 +5922,74 @@ var CommandHoldOverrideRegistry = class {
|
|
|
5922
5922
|
}
|
|
5923
5923
|
}
|
|
5924
5924
|
};
|
|
5925
|
-
var registry;
|
|
5925
|
+
var registry$1;
|
|
5926
5926
|
/** The process-wide registry. */
|
|
5927
5927
|
function getCommandHoldOverrideRegistry() {
|
|
5928
|
-
registry ??= new CommandHoldOverrideRegistry();
|
|
5928
|
+
registry$1 ??= new CommandHoldOverrideRegistry();
|
|
5929
|
+
return registry$1;
|
|
5930
|
+
}
|
|
5931
|
+
/** The source key of an in-process registration. */
|
|
5932
|
+
var IN_PROCESS_REFRESH_SOURCE = "in-process";
|
|
5933
|
+
var StateRefreshPolicyRegistry = class {
|
|
5934
|
+
bySource = /* @__PURE__ */ new Map();
|
|
5935
|
+
listeners = /* @__PURE__ */ new Set();
|
|
5936
|
+
/** Record (or replace) one device's policy from `source`. */
|
|
5937
|
+
set(source, entry) {
|
|
5938
|
+
const perSource = new Map(this.bySource.get(source) ?? []);
|
|
5939
|
+
perSource.set(entry.deviceId, entry);
|
|
5940
|
+
this.bySource.set(source, perSource);
|
|
5941
|
+
this.changed();
|
|
5942
|
+
}
|
|
5943
|
+
/** Forget one device's policy from `source`. */
|
|
5944
|
+
delete(source, deviceId) {
|
|
5945
|
+
const perSource = this.bySource.get(source);
|
|
5946
|
+
if (perSource === void 0 || !perSource.has(deviceId)) return;
|
|
5947
|
+
const next = new Map(perSource);
|
|
5948
|
+
next.delete(deviceId);
|
|
5949
|
+
if (next.size === 0) this.bySource.delete(source);
|
|
5950
|
+
else this.bySource.set(source, next);
|
|
5951
|
+
this.changed();
|
|
5952
|
+
}
|
|
5953
|
+
/** Replace everything `source` reported with `entries` (an empty list forgets the source). */
|
|
5954
|
+
replaceSource(source, entries) {
|
|
5955
|
+
const had = this.bySource.has(source);
|
|
5956
|
+
if (entries.length === 0) {
|
|
5957
|
+
this.bySource.delete(source);
|
|
5958
|
+
if (had) this.changed();
|
|
5959
|
+
return;
|
|
5960
|
+
}
|
|
5961
|
+
this.bySource.set(source, new Map(entries.map((e) => [e.deviceId, e])));
|
|
5962
|
+
this.changed();
|
|
5963
|
+
}
|
|
5964
|
+
/** Every device's policy (a device registered by two sources keeps the first). */
|
|
5965
|
+
entries() {
|
|
5966
|
+
const seen = /* @__PURE__ */ new Map();
|
|
5967
|
+
for (const perSource of this.bySource.values()) for (const entry of perSource.values()) if (!seen.has(entry.deviceId)) seen.set(entry.deviceId, entry);
|
|
5968
|
+
return [...seen.values()];
|
|
5969
|
+
}
|
|
5970
|
+
/** One device's policy, or `undefined` when its provider did not migrate. */
|
|
5971
|
+
get(deviceId) {
|
|
5972
|
+
for (const perSource of this.bySource.values()) {
|
|
5973
|
+
const found = perSource.get(deviceId);
|
|
5974
|
+
if (found !== void 0) return found;
|
|
5975
|
+
}
|
|
5976
|
+
}
|
|
5977
|
+
subscribe(listener) {
|
|
5978
|
+
this.listeners.add(listener);
|
|
5979
|
+
return () => {
|
|
5980
|
+
this.listeners.delete(listener);
|
|
5981
|
+
};
|
|
5982
|
+
}
|
|
5983
|
+
changed() {
|
|
5984
|
+
for (const listener of this.listeners) try {
|
|
5985
|
+
listener();
|
|
5986
|
+
} catch {}
|
|
5987
|
+
}
|
|
5988
|
+
};
|
|
5989
|
+
var registry;
|
|
5990
|
+
/** The process-wide registry. */
|
|
5991
|
+
function getStateRefreshPolicyRegistry() {
|
|
5992
|
+
registry ??= new StateRefreshPolicyRegistry();
|
|
5929
5993
|
return registry;
|
|
5930
5994
|
}
|
|
5931
5995
|
//#endregion
|
|
@@ -6092,6 +6156,16 @@ var workerNativeCapAddonIds = /* @__PURE__ */ new Map();
|
|
|
6092
6156
|
* hub's hold reads them; absent = the core default.
|
|
6093
6157
|
*/
|
|
6094
6158
|
var workerNativeCapHolds = /* @__PURE__ */ new Map();
|
|
6159
|
+
/**
|
|
6160
|
+
* The state-refresh policy a provider stated on a device's
|
|
6161
|
+
* `device-state-refresh` registration (D1062). deviceId → policy. Carried on
|
|
6162
|
+
* the child's cap descriptors so the hub's scheduler reads it.
|
|
6163
|
+
*/
|
|
6164
|
+
var workerNativeCapRefresh = /* @__PURE__ */ new Map();
|
|
6165
|
+
/** The policy a registration states, read only on the refresh cap. */
|
|
6166
|
+
function stateRefreshOf(capName, options) {
|
|
6167
|
+
return capName === "device-state-refresh" ? options?.stateRefresh : void 0;
|
|
6168
|
+
}
|
|
6095
6169
|
var mountedNativeCapServices = /* @__PURE__ */ new Set();
|
|
6096
6170
|
/** A provider's hold options as plain data, or `undefined` when it stated none. */
|
|
6097
6171
|
function commandHoldsOf(options) {
|
|
@@ -6180,6 +6254,7 @@ function mountNativeCapService(broker, addonId, cap) {
|
|
|
6180
6254
|
function clearWorkerNativeCapsForDevice(deviceId) {
|
|
6181
6255
|
for (const perCap of workerNativeCaps.values()) perCap.delete(deviceId);
|
|
6182
6256
|
for (const perCap of workerNativeCapAddonIds.values()) perCap.delete(deviceId);
|
|
6257
|
+
workerNativeCapRefresh.delete(deviceId);
|
|
6183
6258
|
onWorkerNativeCapsChanged?.();
|
|
6184
6259
|
}
|
|
6185
6260
|
/**
|
|
@@ -6210,19 +6285,33 @@ function getWorkerNativeCapSnapshot() {
|
|
|
6210
6285
|
}
|
|
6211
6286
|
}
|
|
6212
6287
|
return [...grouped.values()].map((entry) => {
|
|
6288
|
+
const withRefresh = withStateRefresh(entry);
|
|
6213
6289
|
const holds = workerNativeCapHolds.get(entry.capName);
|
|
6214
|
-
if (holds === void 0) return
|
|
6290
|
+
if (holds === void 0) return withRefresh;
|
|
6215
6291
|
const forEntry = /* @__PURE__ */ new Map();
|
|
6216
6292
|
for (const deviceId of entry.deviceIds) {
|
|
6217
6293
|
const options = holds.get(deviceId);
|
|
6218
6294
|
if (options !== void 0) forEntry.set(deviceId, options);
|
|
6219
6295
|
}
|
|
6220
|
-
return forEntry.size === 0 ?
|
|
6221
|
-
...
|
|
6296
|
+
return forEntry.size === 0 ? withRefresh : {
|
|
6297
|
+
...withRefresh,
|
|
6222
6298
|
commandHolds: forEntry
|
|
6223
6299
|
};
|
|
6224
6300
|
});
|
|
6225
6301
|
}
|
|
6302
|
+
/** A refresh-cap snapshot row with the policies its devices stated (D1062). */
|
|
6303
|
+
function withStateRefresh(entry) {
|
|
6304
|
+
if (entry.capName !== "device-state-refresh") return entry;
|
|
6305
|
+
const forEntry = /* @__PURE__ */ new Map();
|
|
6306
|
+
for (const deviceId of entry.deviceIds) {
|
|
6307
|
+
const policy = workerNativeCapRefresh.get(deviceId);
|
|
6308
|
+
if (policy !== void 0) forEntry.set(deviceId, policy);
|
|
6309
|
+
}
|
|
6310
|
+
return forEntry.size === 0 ? entry : {
|
|
6311
|
+
...entry,
|
|
6312
|
+
stateRefresh: forEntry
|
|
6313
|
+
};
|
|
6314
|
+
}
|
|
6226
6315
|
function getWorkerNativeCapsForDevice(deviceId) {
|
|
6227
6316
|
const caps = [];
|
|
6228
6317
|
for (const [capName, perCap] of workerNativeCaps) if (perCap.has(deviceId)) caps.push(capName);
|
|
@@ -6381,6 +6470,7 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6381
6470
|
},
|
|
6382
6471
|
registerNativeCap(cap, provider, options) {
|
|
6383
6472
|
const commandHolds = commandHoldsOf(options);
|
|
6473
|
+
const stateRefresh = stateRefreshOf(cap.name, options);
|
|
6384
6474
|
if (cap.runtimeState && runtimeStateRef) try {
|
|
6385
6475
|
runtimeStateRef.installCapSchema(cap.name, cap.runtimeState);
|
|
6386
6476
|
} catch (err) {
|
|
@@ -6421,6 +6511,12 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6421
6511
|
commands: commandHolds
|
|
6422
6512
|
});
|
|
6423
6513
|
else getCommandHoldOverrideRegistry().delete(IN_PROCESS_HOLD_SOURCE, id, cap.name);
|
|
6514
|
+
if (stateRefresh !== void 0) getStateRefreshPolicyRegistry().set(IN_PROCESS_REFRESH_SOURCE, {
|
|
6515
|
+
deviceId: id,
|
|
6516
|
+
addonId,
|
|
6517
|
+
policy: stateRefresh
|
|
6518
|
+
});
|
|
6519
|
+
else if (cap.name === "device-state-refresh") getStateRefreshPolicyRegistry().delete(IN_PROCESS_REFRESH_SOURCE, id);
|
|
6424
6520
|
} else if (opts.broker || opts.udsMode) {
|
|
6425
6521
|
let perCap = workerNativeCaps.get(cap.name);
|
|
6426
6522
|
if (!perCap) {
|
|
@@ -6439,6 +6535,8 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6439
6535
|
perHolds.set(id, commandHolds);
|
|
6440
6536
|
workerNativeCapHolds.set(cap.name, perHolds);
|
|
6441
6537
|
} else workerNativeCapHolds.get(cap.name)?.delete(id);
|
|
6538
|
+
if (stateRefresh !== void 0) workerNativeCapRefresh.set(id, stateRefresh);
|
|
6539
|
+
else if (cap.name === "device-state-refresh") workerNativeCapRefresh.delete(id);
|
|
6442
6540
|
if (opts.broker) mountNativeCapService(opts.broker, addonId, cap);
|
|
6443
6541
|
onWorkerNativeCapsChanged?.();
|
|
6444
6542
|
} else throw new Error(`DeviceContext.registerNativeCap('${cap.name}') called on '${stableId}' but none of capabilityRegistry / broker / udsMode was provided.`);
|
|
@@ -6495,10 +6593,12 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6495
6593
|
else if (opts.capabilityRegistry) {
|
|
6496
6594
|
opts.capabilityRegistry.unregisterNativeProvider(capName, id);
|
|
6497
6595
|
getCommandHoldOverrideRegistry().delete(IN_PROCESS_HOLD_SOURCE, id, capName);
|
|
6596
|
+
if (capName === "device-state-refresh") getStateRefreshPolicyRegistry().delete(IN_PROCESS_REFRESH_SOURCE, id);
|
|
6498
6597
|
} else {
|
|
6499
6598
|
workerNativeCaps.get(capName)?.delete(id);
|
|
6500
6599
|
workerNativeCapAddonIds.get(capName)?.delete(id);
|
|
6501
6600
|
workerNativeCapHolds.get(capName)?.delete(id);
|
|
6601
|
+
if (capName === "device-state-refresh") workerNativeCapRefresh.delete(id);
|
|
6502
6602
|
onWorkerNativeCapsChanged?.();
|
|
6503
6603
|
}
|
|
6504
6604
|
eventBus.emit({
|
|
@@ -6620,7 +6720,8 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6620
6720
|
for (const child of children) await teardownLocal(child.id, runLifecycle);
|
|
6621
6721
|
const capsToUnregister = opts.capabilityRegistry ? [...opts.capabilityRegistry.getNativeCapsForDevice(deviceId)] : [...getWorkerNativeCapsForDevice(deviceId)];
|
|
6622
6722
|
opts.capabilityRegistry?.unregisterAllNativeForDevice(deviceId);
|
|
6623
|
-
if (
|
|
6723
|
+
if (opts.capabilityRegistry) getStateRefreshPolicyRegistry().delete(IN_PROCESS_REFRESH_SOURCE, deviceId);
|
|
6724
|
+
else clearWorkerNativeCapsForDevice(deviceId);
|
|
6624
6725
|
for (const capName of capsToUnregister) {
|
|
6625
6726
|
eventBus.emit({
|
|
6626
6727
|
id: randomUUID(),
|
|
@@ -11766,14 +11867,16 @@ function buildChildCapDescriptors(manifest, nativeCapSnapshot) {
|
|
|
11766
11867
|
});
|
|
11767
11868
|
}
|
|
11768
11869
|
}
|
|
11769
|
-
for (const { capName, addonId, deviceIds, commandHolds } of nativeCapSnapshot) for (const deviceId of deviceIds) {
|
|
11870
|
+
for (const { capName, addonId, deviceIds, commandHolds, stateRefresh } of nativeCapSnapshot) for (const deviceId of deviceIds) {
|
|
11770
11871
|
const holds = commandHolds?.get(deviceId);
|
|
11872
|
+
const refresh = stateRefresh?.get(deviceId);
|
|
11771
11873
|
descriptors.push({
|
|
11772
11874
|
capName,
|
|
11773
11875
|
mode: "collection",
|
|
11774
11876
|
deviceId,
|
|
11775
11877
|
addonId,
|
|
11776
|
-
...holds !== void 0 ? { commandHolds: holds } : {}
|
|
11878
|
+
...holds !== void 0 ? { commandHolds: holds } : {},
|
|
11879
|
+
...refresh !== void 0 ? { stateRefresh: refresh } : {}
|
|
11777
11880
|
});
|
|
11778
11881
|
}
|
|
11779
11882
|
return descriptors;
|
|
@@ -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-BNrIzdrJ.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Du as EventCategory, Tc as BaseAddon, Tu as errMsg, zn as addonPagesCapability } from "../../dist-S-zGcCEr.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import * as fs$1 from "node:fs";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-BNrIzdrJ.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Du as EventCategory, Tc as BaseAddon, Tu as errMsg, Vn as addonWidgetsCapability } from "../../dist-S-zGcCEr.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import * as fs$1 from "node:fs";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-BNrIzdrJ.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
const require_log_redactor = require("../../log-redactor-BhIEMaG9.js");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bi as isAlertEpisodeSeverity, D as CORE_BLOCK_ADDON_PREFIX, Dl as defineRecordKinds, Du as EventCategory, Hn as alertEpisodeId, Sl as createEvent, Tc as BaseAddon, Tu as errMsg, Un as alertEpisodePayload, Wn as alertsCapability, p as AlertSchema, zi as isAlertEpisodeOpen } from "../../dist-S-zGcCEr.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
3
|
import { a as redactLogText } from "../../log-redactor-XLDrPzOi.mjs";
|
|
4
4
|
import * as fs$1 from "node:fs";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-BNrIzdrJ.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
//#region src/builtins/autotrack/autotrack-config.ts
|
|
9
9
|
var DEFAULT_AUTOTRACK_LOOP_CONFIG = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bl as isEvent, Du as EventCategory, Tc as BaseAddon, Tu as errMsg, Xn as bareAddonId, gt as FIRST_LEVEL_MACRO_CLASSES, io as ptzAutotrackCapability } from "../../dist-S-zGcCEr.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/builtins/autotrack/autotrack-config.ts
|
|
4
4
|
var DEFAULT_AUTOTRACK_LOOP_CONFIG = {
|
|
@@ -3,9 +3,9 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-BNrIzdrJ.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-DXi9iBay.js");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
10
10
|
let node_fs = require("node:fs");
|
|
11
11
|
node_fs = require_chunk.__toESM(node_fs);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Du as EventCategory, Ql as nodePin, Tc as BaseAddon, Yn as backupCapability, cs as storageOccupancyCapability, mu as toNodeId, va as mayWriteToLocation } from "../../dist-S-zGcCEr.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-D7UwwT1L.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import * as fs$1 from "node:fs";
|
|
6
6
|
import * as path$1 from "node:path";
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-BNrIzdrJ.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
//#region src/builtins/calendars/calendar-color.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dl as defineRecordKinds, Tc as BaseAddon, ar as calendarsCapability, k as CalendarPreferencesSchema } from "../../dist-S-zGcCEr.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-BNrIzdrJ.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 {
|
|
1
|
+
import { Ai as hostEngineDevice, Bs as COMPOSER_ADDON_ID, Dt as HostedWithdrawalGate, Du as EventCategory, Il as hydrateSchema, Ir as declarationOwnerNodeId, Sl as createEvent, Su as DeviceFeature, Tc as BaseAddon, Tu as errMsg, V as DERIVED_CAMERA_SILENCED_CAP_NAMES, Vt as MOTION_CLOSE_AFTER_MS, Xn as bareAddonId, Ys as buildFfmpegArgs, ka as motionCapability, ns as snapshotCapability, oa as legacySweepDone, or as cameraGridLayoutCapability, ps as sweepLegacyEngineRows, qo as selectEngineHostedBlocks, us as streamCatalogCapability, v as BaseDevice, xa as memoizePinnedFfmpeg, yr as compileHelper } from "../../dist-S-zGcCEr.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { FfmpegProcess } from "@camstack/types/node";
|
|
4
4
|
import { promises } from "node:fs";
|
|
@@ -3,11 +3,11 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
7
|
-
const require_capture_engine = require("../../capture-engine-
|
|
8
|
-
const require_composition_sources = require("../../composition-sources-
|
|
6
|
+
const require_dist = require("../../dist-BNrIzdrJ.js");
|
|
7
|
+
const require_capture_engine = require("../../capture-engine-B3csK2sW.js");
|
|
8
|
+
const require_composition_sources = require("../../composition-sources-Bkbk5Oh5.js");
|
|
9
9
|
const require_retention = require("../../retention-BcOSL6b9.js");
|
|
10
|
-
const require_rename_composition_block = require("../../rename-composition-block-
|
|
10
|
+
const require_rename_composition_block = require("../../rename-composition-block-gJ_4GdHr.js");
|
|
11
11
|
let zod = require("zod");
|
|
12
12
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
13
13
|
/**
|