@camstack/server 1.2.823 → 1.2.825
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/generated-cap-routers.js +0 -45
- package/package.json +10 -10
- package/system/dist/addon-runner.js +24 -2
- package/system/dist/addon-runner.mjs +25 -3
- package/system/dist/addon-utils.d.ts +1 -0
- package/system/dist/addon-utils.js +2 -0
- package/system/dist/addon-utils.mjs +3 -2
- package/system/dist/{agent-https-Df53Fvk1.js → agent-https-B2nqARmj.js} +1 -1
- package/system/dist/{agent-https-CDl7mB_F.mjs → agent-https-BBO2OtNH.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 +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/actions-service.d.ts +8 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +78 -22
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +79 -23
- package/system/dist/builtins/core-blocks/record-kinds.d.ts +1 -0
- 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 +8 -3
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +8 -3
- 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/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 +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/cap-call-scope-8eiugfLl.js +46 -0
- package/system/dist/cap-call-scope-Bic6Ekfw.mjs +30 -0
- package/system/dist/{capture-engine-D_GQBgrZ.mjs → capture-engine-C-rHYVFq.mjs} +1 -1
- package/system/dist/{capture-engine-C0Z5rwCO.js → capture-engine-DP4HbT3W.js} +1 -1
- package/system/dist/{composition-sources-mx-2yCDv.mjs → composition-sources-CL9JFN4y.mjs} +1 -1
- package/system/dist/{composition-sources-DIZx3mW3.js → composition-sources-CM9c_jAj.js} +1 -1
- package/system/dist/{constants-BQlx9HDp.mjs → constants-DzGFnCKZ.mjs} +1 -1
- package/system/dist/{constants-CAOcKiWT.js → constants-jk7JccZ0.js} +1 -1
- package/system/dist/{coral-accelerators-BW3OcrLD.mjs → coral-accelerators-DBlgWB8k.mjs} +6 -6
- package/system/dist/{custom-action-registry-N7flBDwT.mjs → custom-action-registry-B9zFBNVa.mjs} +37 -37
- package/system/dist/{device-ca-93LsCF_Q.js → device-ca-B7_R5WJh.js} +1 -1
- package/system/dist/{device-ca-CK6GTnNh.mjs → device-ca-DZ_OQiCc.mjs} +1 -1
- package/system/dist/{dist-BQiyo22b.mjs → dist-BgRMQHuL.mjs} +97 -160
- package/system/dist/{dist-izXDzt4g.js → dist-BpTL3uNe.js} +108 -159
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-srpOrqIP.mjs → hub-mdns-ciao-DIcBingB.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-Dt_tgvol.js → hub-mdns-ciao-DPUaYAD3.js} +2 -2
- package/system/dist/index.d.ts +1 -0
- package/system/dist/index.js +47 -29
- package/system/dist/index.mjs +257 -242
- package/system/dist/kernel/cap-call-scope.d.ts +10 -0
- package/system/dist/kernel/transport/cap-route-resolver.d.ts +27 -1
- package/system/dist/kernel/transport/child-cap-protocol.d.ts +1 -1
- package/system/dist/kernel/transport/parent-unowned-call.d.ts +0 -11
- package/system/dist/{legacy-integration-rows-door-wu2GWY6U.mjs → legacy-integration-rows-door-1GnkpMgH.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-BH43eDu6.js → legacy-integration-rows-door-DYNePgj4.js} +1 -1
- package/system/dist/{rename-composition-block-CH6ZoSJA.mjs → rename-composition-block-Cp0_nwAI.mjs} +1 -1
- package/system/dist/{rename-composition-block-6oLQVzft.js → rename-composition-block-Dn2z4fnA.js} +1 -1
- package/system/dist/{restore-archive-C4rR2SYV.mjs → restore-archive-B3FEpUfz.mjs} +94 -94
- package/system/dist/{restore-archive-DpZ2PbLN.js → restore-archive-BGa5pdp9.js} +1 -1
- package/system/dist/{wal-maintenance-CNfp0HHX.mjs → wal-maintenance-BLWLlVfF.mjs} +0 -0
- package/system/dist/{wal-maintenance-DAA2qJja.js → wal-maintenance-GWFxnSnE.js} +0 -0
- package/system/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.825] - 2026-11-10
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Rebuilt against updated dependencies.
|
|
15
|
+
|
|
16
|
+
## [1.2.824] - 2026-11-10
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- Notification rules and buttons run existing Actions; the notification-centre sequence methods are gone
|
|
21
|
+
|
|
10
22
|
## [1.2.823] - 2026-11-09
|
|
11
23
|
|
|
12
24
|
### Changed
|
|
@@ -7849,51 +7849,6 @@ function createCapRouter_notificationRules(getProvider, createRemoteProxy) {
|
|
|
7849
7849
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7850
7850
|
return p.setRuleEnabled(methodInput);
|
|
7851
7851
|
}),
|
|
7852
|
-
listSequences: trpc_middleware_js_1.adminProcedure
|
|
7853
|
-
.input(types_107.notificationRulesCapability.methods.listSequences.input.loose())
|
|
7854
|
-
.output(types_107.notificationRulesCapability.methods.listSequences.output)
|
|
7855
|
-
.query(async ({ input, ctx }) => {
|
|
7856
|
-
const { nodeId, ...methodInput } = input;
|
|
7857
|
-
const p = resolveProvider('notification-rules', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7858
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7859
|
-
return p.listSequences(methodInput);
|
|
7860
|
-
}),
|
|
7861
|
-
getSequence: trpc_middleware_js_1.adminProcedure
|
|
7862
|
-
.input(types_107.notificationRulesCapability.methods.getSequence.input.loose())
|
|
7863
|
-
.output(types_107.notificationRulesCapability.methods.getSequence.output)
|
|
7864
|
-
.query(async ({ input, ctx }) => {
|
|
7865
|
-
const { nodeId, ...methodInput } = input;
|
|
7866
|
-
const p = resolveProvider('notification-rules', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7867
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7868
|
-
return p.getSequence(methodInput);
|
|
7869
|
-
}),
|
|
7870
|
-
createSequence: trpc_middleware_js_1.adminProcedure
|
|
7871
|
-
.input(types_107.notificationRulesCapability.methods.createSequence.input.loose())
|
|
7872
|
-
.output(types_107.notificationRulesCapability.methods.createSequence.output)
|
|
7873
|
-
.mutation(async ({ input, ctx }) => {
|
|
7874
|
-
const { nodeId, ...methodInput } = input;
|
|
7875
|
-
const p = resolveProvider('notification-rules', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7876
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7877
|
-
return p.createSequence(methodInput);
|
|
7878
|
-
}),
|
|
7879
|
-
updateSequence: trpc_middleware_js_1.adminProcedure
|
|
7880
|
-
.input(types_107.notificationRulesCapability.methods.updateSequence.input.loose())
|
|
7881
|
-
.output(types_107.notificationRulesCapability.methods.updateSequence.output)
|
|
7882
|
-
.mutation(async ({ input, ctx }) => {
|
|
7883
|
-
const { nodeId, ...methodInput } = input;
|
|
7884
|
-
const p = resolveProvider('notification-rules', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7885
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7886
|
-
return p.updateSequence(methodInput);
|
|
7887
|
-
}),
|
|
7888
|
-
deleteSequence: trpc_middleware_js_1.adminProcedure
|
|
7889
|
-
.input(types_107.notificationRulesCapability.methods.deleteSequence.input.loose())
|
|
7890
|
-
.output(types_107.notificationRulesCapability.methods.deleteSequence.output)
|
|
7891
|
-
.mutation(async ({ input, ctx }) => {
|
|
7892
|
-
const { nodeId, ...methodInput } = input;
|
|
7893
|
-
const p = resolveProvider('notification-rules', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
7894
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
7895
|
-
return p.deleteSequence(methodInput);
|
|
7896
|
-
}),
|
|
7897
7852
|
getClipRetentionAsks: trpc_middleware_js_1.adminProcedure
|
|
7898
7853
|
.input(types_107.notificationRulesCapability.methods.getClipRetentionAsks.input.loose())
|
|
7899
7854
|
.output(types_107.notificationRulesCapability.methods.getClipRetentionAsks.output)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.825",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,9 +66,9 @@
|
|
|
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-
|
|
69
|
+
"@camstack/addon-admin-ui": ">=1.2.632",
|
|
70
|
+
"@camstack/addon-agent-ui": ">=1.2.357",
|
|
71
|
+
"@camstack/addon-pipeline-orchestrator": ">=1.2.677"
|
|
72
72
|
},
|
|
73
73
|
"wrapper": {
|
|
74
74
|
"desktop": ">=0.0.1",
|
|
@@ -77,19 +77,19 @@
|
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@camstack/addon-admin-ui": "1.2.
|
|
81
|
-
"@camstack/addon-agent-ui": "1.2.
|
|
80
|
+
"@camstack/addon-admin-ui": "1.2.632",
|
|
81
|
+
"@camstack/addon-agent-ui": "1.2.356",
|
|
82
82
|
"@camstack/addon-auth": "1.2.180",
|
|
83
83
|
"@camstack/addon-benchmark": "1.2.312",
|
|
84
84
|
"@camstack/addon-decoder-nodeav": "1.2.149",
|
|
85
85
|
"@camstack/addon-notifiers": "1.2.635",
|
|
86
86
|
"@camstack/addon-pipeline": "1.2.648",
|
|
87
|
-
"@camstack/addon-pipeline-orchestrator": "1.2.
|
|
88
|
-
"@camstack/addon-post-analysis": "1.2.
|
|
87
|
+
"@camstack/addon-pipeline-orchestrator": "1.2.677",
|
|
88
|
+
"@camstack/addon-post-analysis": "1.2.690",
|
|
89
89
|
"@camstack/develop": "0.1.51",
|
|
90
90
|
"@camstack/sdk": "1.2.157",
|
|
91
|
-
"@camstack/types": "1.2.
|
|
92
|
-
"@camstack/ui-library": "1.2.
|
|
91
|
+
"@camstack/types": "1.2.538",
|
|
92
|
+
"@camstack/ui-library": "1.2.416",
|
|
93
93
|
"@fastify/compress": "^9.0.0",
|
|
94
94
|
"@fastify/cookie": "^11.0.2",
|
|
95
95
|
"@fastify/cors": "^11.2.0",
|
|
@@ -38,6 +38,7 @@ let node_perf_hooks = require("node:perf_hooks");
|
|
|
38
38
|
let node_vm = require("node:vm");
|
|
39
39
|
node_vm = __toESM(node_vm);
|
|
40
40
|
let node_fs_promises = require("node:fs/promises");
|
|
41
|
+
let node_async_hooks = require("node:async_hooks");
|
|
41
42
|
let _trpc_client = require("@trpc/client");
|
|
42
43
|
let _camstack_types_node = require("@camstack/types/node");
|
|
43
44
|
let node_http = require("node:http");
|
|
@@ -2922,6 +2923,25 @@ function startRunnerHeapWatch(options) {
|
|
|
2922
2923
|
return startHeapWatch(options.label, options.sink, intervalMs, reclaimOptions, void 0, void 0, true, rssBudget);
|
|
2923
2924
|
}
|
|
2924
2925
|
//#endregion
|
|
2926
|
+
//#region src/kernel/cap-call-scope.ts
|
|
2927
|
+
/**
|
|
2928
|
+
* The command-origin claim of the cap call currently running (D1022).
|
|
2929
|
+
*
|
|
2930
|
+
* A provider method is invoked with its args only — the claim rides out of band,
|
|
2931
|
+
* the same way `commandOrigin` puts it on a tRPC call. The dispatch that is about
|
|
2932
|
+
* to call the provider enters this scope, and the provider reads it back with
|
|
2933
|
+
* {@link readCommandOrigin}. The store does not cross a process: the parent copies
|
|
2934
|
+
* the claim onto the child `cap-call`, and the child enters the scope again.
|
|
2935
|
+
*/
|
|
2936
|
+
var scope = new node_async_hooks.AsyncLocalStorage();
|
|
2937
|
+
/**
|
|
2938
|
+
* Run `fn` as a cap call whose context is `context` (`commandOrigin(claim).context`,
|
|
2939
|
+
* or the raw `op.context`). `undefined` is a call that carried no claim.
|
|
2940
|
+
*/
|
|
2941
|
+
function runWithCapCallContext(context, fn) {
|
|
2942
|
+
return scope.run(context, fn);
|
|
2943
|
+
}
|
|
2944
|
+
//#endregion
|
|
2925
2945
|
//#region src/kernel/transport/cap-action-name.ts
|
|
2926
2946
|
/**
|
|
2927
2947
|
* cap-action-name.ts — single source of truth for Moleculer cap
|
|
@@ -5096,7 +5116,8 @@ var LocalChildClient = class {
|
|
|
5096
5116
|
args,
|
|
5097
5117
|
...msg.deviceId !== void 0 ? { deviceId: msg.deviceId } : {},
|
|
5098
5118
|
...msg.addonId !== void 0 ? { addonId: msg.addonId } : {},
|
|
5099
|
-
...msg.callerAddonId !== void 0 ? { callerAddonId: msg.callerAddonId } : {}
|
|
5119
|
+
...msg.callerAddonId !== void 0 ? { callerAddonId: msg.callerAddonId } : {},
|
|
5120
|
+
...msg.origin !== void 0 ? { origin: msg.origin } : {}
|
|
5100
5121
|
});
|
|
5101
5122
|
if (payload !== void 0 && result !== void 0) return new PayloadReply(void 0, packPayload(result));
|
|
5102
5123
|
return result;
|
|
@@ -11638,7 +11659,8 @@ function createChildCapDispatch(deps) {
|
|
|
11638
11659
|
if (deps.isProviderOptionalMethod(capName, method)) throw new Error(`${CAP_METHOD_NOT_IMPLEMENTED}: '${capName}.${method}' is declared optional and this provider does not serve it`);
|
|
11639
11660
|
throw new Error(`child-cap-dispatch: method '${method}' not found on provider '${capName}'`);
|
|
11640
11661
|
}
|
|
11641
|
-
|
|
11662
|
+
const run = () => fn.call(provider, args);
|
|
11663
|
+
return await (call.origin === void 0 ? run() : runWithCapCallContext((0, _camstack_types_addon.commandOrigin)(call.origin).context, run));
|
|
11642
11664
|
};
|
|
11643
11665
|
}
|
|
11644
11666
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { register } from "node:module";
|
|
2
|
-
import { BOOT_RECOVERY_BACKOFF_MS, CALLER_STAMPED_CAPABILITIES, CAP_METHOD_TIMEOUTS_MS, COLLECTION_ARRAY_METHODS, COMPOSED_DEVICE_STABLE_ID_PREFIX, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DeviceType, DisposerChain, ErrorI18nPayloadSchema, EventCategory, MIGRATION_API_VERSION, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, ReadinessRegistry, ReadinessTimeoutError, addonSliceHandleApi, asJsonObject, asString, collectZodSecretPaths, createDebugEmitter, createDeviceProxy, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, describeCustomActions, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods, findMigrationsBlocked, isCollectionArrayMethodName, isProviderOptionalMethodName, maskUrlCredentials, nodeIdOfScopedKey, normalizeAddonInitResult, readCommandOrigin, readErrorI18n, readNodePin, resolveDeviceSettings, resolveSecretViewsIn, scopeKey, scrubKnownSecrets, withCapInputDefaults } from "@camstack/types/addon";
|
|
2
|
+
import { BOOT_RECOVERY_BACKOFF_MS, CALLER_STAMPED_CAPABILITIES, CAP_METHOD_TIMEOUTS_MS, COLLECTION_ARRAY_METHODS, COMPOSED_DEVICE_STABLE_ID_PREFIX, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DeviceType, DisposerChain, ErrorI18nPayloadSchema, EventCategory, MIGRATION_API_VERSION, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, ReadinessRegistry, ReadinessTimeoutError, addonSliceHandleApi, asJsonObject, asString, collectZodSecretPaths, commandOrigin, createDebugEmitter, createDeviceProxy, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, describeCustomActions, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods, findMigrationsBlocked, isCollectionArrayMethodName, isProviderOptionalMethodName, maskUrlCredentials, nodeIdOfScopedKey, normalizeAddonInitResult, readCommandOrigin, readErrorI18n, readNodePin, resolveDeviceSettings, resolveSecretViewsIn, scopeKey, scrubKnownSecrets, withCapInputDefaults } from "@camstack/types/addon";
|
|
3
3
|
import * as fs$1 from "node:fs";
|
|
4
4
|
import fs, { createReadStream, createWriteStream, existsSync, readFileSync, readdirSync } from "node:fs";
|
|
5
5
|
import * as path from "node:path";
|
|
@@ -15,6 +15,7 @@ import * as v8 from "node:v8";
|
|
|
15
15
|
import { monitorEventLoopDelay } from "node:perf_hooks";
|
|
16
16
|
import * as vm from "node:vm";
|
|
17
17
|
import { mkdir, rm, stat, unlink } from "node:fs/promises";
|
|
18
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
18
19
|
import { TRPCClientError, createTRPCClient } from "@trpc/client";
|
|
19
20
|
import { EDGETPU_LIB_ENV, chooseEdgetpuDelegate, declaresEdgetpuDelegate, ensureBinary, ensureEdgetpuDelegate, ensureFfmpeg, ensurePython, installPythonPackages, installPythonRequirements, nodeDataRootFromEnv } from "@camstack/types/node";
|
|
20
21
|
import { createServer as createServer$1, request } from "node:http";
|
|
@@ -2867,6 +2868,25 @@ function startRunnerHeapWatch(options) {
|
|
|
2867
2868
|
return startHeapWatch(options.label, options.sink, intervalMs, reclaimOptions, void 0, void 0, true, rssBudget);
|
|
2868
2869
|
}
|
|
2869
2870
|
//#endregion
|
|
2871
|
+
//#region src/kernel/cap-call-scope.ts
|
|
2872
|
+
/**
|
|
2873
|
+
* The command-origin claim of the cap call currently running (D1022).
|
|
2874
|
+
*
|
|
2875
|
+
* A provider method is invoked with its args only — the claim rides out of band,
|
|
2876
|
+
* the same way `commandOrigin` puts it on a tRPC call. The dispatch that is about
|
|
2877
|
+
* to call the provider enters this scope, and the provider reads it back with
|
|
2878
|
+
* {@link readCommandOrigin}. The store does not cross a process: the parent copies
|
|
2879
|
+
* the claim onto the child `cap-call`, and the child enters the scope again.
|
|
2880
|
+
*/
|
|
2881
|
+
var scope = new AsyncLocalStorage();
|
|
2882
|
+
/**
|
|
2883
|
+
* Run `fn` as a cap call whose context is `context` (`commandOrigin(claim).context`,
|
|
2884
|
+
* or the raw `op.context`). `undefined` is a call that carried no claim.
|
|
2885
|
+
*/
|
|
2886
|
+
function runWithCapCallContext(context, fn) {
|
|
2887
|
+
return scope.run(context, fn);
|
|
2888
|
+
}
|
|
2889
|
+
//#endregion
|
|
2870
2890
|
//#region src/kernel/transport/cap-action-name.ts
|
|
2871
2891
|
/**
|
|
2872
2892
|
* cap-action-name.ts — single source of truth for Moleculer cap
|
|
@@ -5041,7 +5061,8 @@ var LocalChildClient = class {
|
|
|
5041
5061
|
args,
|
|
5042
5062
|
...msg.deviceId !== void 0 ? { deviceId: msg.deviceId } : {},
|
|
5043
5063
|
...msg.addonId !== void 0 ? { addonId: msg.addonId } : {},
|
|
5044
|
-
...msg.callerAddonId !== void 0 ? { callerAddonId: msg.callerAddonId } : {}
|
|
5064
|
+
...msg.callerAddonId !== void 0 ? { callerAddonId: msg.callerAddonId } : {},
|
|
5065
|
+
...msg.origin !== void 0 ? { origin: msg.origin } : {}
|
|
5045
5066
|
});
|
|
5046
5067
|
if (payload !== void 0 && result !== void 0) return new PayloadReply(void 0, packPayload(result));
|
|
5047
5068
|
return result;
|
|
@@ -11583,7 +11604,8 @@ function createChildCapDispatch(deps) {
|
|
|
11583
11604
|
if (deps.isProviderOptionalMethod(capName, method)) throw new Error(`${CAP_METHOD_NOT_IMPLEMENTED}: '${capName}.${method}' is declared optional and this provider does not serve it`);
|
|
11584
11605
|
throw new Error(`child-cap-dispatch: method '${method}' not found on provider '${capName}'`);
|
|
11585
11606
|
}
|
|
11586
|
-
|
|
11607
|
+
const run = () => fn.call(provider, args);
|
|
11608
|
+
return await (call.origin === void 0 ? run() : runWithCapCallContext(commandOrigin(call.origin).context, run));
|
|
11587
11609
|
};
|
|
11588
11610
|
}
|
|
11589
11611
|
/**
|
|
@@ -21,3 +21,4 @@ export { parseRangeHeader, contentTypeFor, type ByteRange } from "./http/authent
|
|
|
21
21
|
export { CustomActionRegistry } from "./kernel/custom-action-registry.js";
|
|
22
22
|
export { attributeStall, STALL_REPORT_MS, STALL_TICK_MS, startEventLoopStallMonitor, type StallVerdict } from "./kernel/event-loop-stall-monitor.js";
|
|
23
23
|
export { renderCourtesyJpeg, renderCourtesyOverlayJpeg, courtesyCacheKey, COURTESY_DEFAULT_WIDTH, type CourtesyReason, type CourtesyFrameSpec } from "./builtins/snapshot/snapshot-courtesy.js";
|
|
24
|
+
export { readCurrentCommandOrigin } from "./kernel/cap-call-scope.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("./chunk-Cek0wNdY.js");
|
|
3
|
+
const require_cap_call_scope = require("./cap-call-scope-8eiugfLl.js");
|
|
3
4
|
const require_custom_action_registry = require("./custom-action-registry-CmWpSeMS.js");
|
|
4
5
|
const require_snapshot_courtesy = require("./snapshot-courtesy-D_C5-nC0.js");
|
|
5
6
|
exports.COURTESY_DEFAULT_WIDTH = require_snapshot_courtesy.COURTESY_DEFAULT_WIDTH;
|
|
@@ -21,6 +22,7 @@ exports.getModelFilePath = require_custom_action_registry.getModelFilePath;
|
|
|
21
22
|
exports.isModelDownloadHttpError = require_custom_action_registry.isModelDownloadHttpError;
|
|
22
23
|
exports.isModelDownloaded = require_custom_action_registry.isModelDownloaded;
|
|
23
24
|
exports.parseRangeHeader = require_custom_action_registry.parseRangeHeader;
|
|
25
|
+
exports.readCurrentCommandOrigin = require_cap_call_scope.readCurrentCommandOrigin;
|
|
24
26
|
exports.renderCourtesyJpeg = require_snapshot_courtesy.renderCourtesyJpeg;
|
|
25
27
|
exports.renderCourtesyOverlayJpeg = require_snapshot_courtesy.renderCourtesyOverlayJpeg;
|
|
26
28
|
exports.resolveFormatRevision = require_custom_action_registry.resolveFormatRevision;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as readCurrentCommandOrigin } from "./cap-call-scope-Bic6Ekfw.mjs";
|
|
2
|
+
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-B9zFBNVa.mjs";
|
|
2
3
|
import { i as renderCourtesyOverlayJpeg, n as courtesyCacheKey, r as renderCourtesyJpeg, t as COURTESY_DEFAULT_WIDTH } from "./snapshot-courtesy-CyFs1M3I.mjs";
|
|
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 };
|
|
4
|
+
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, readCurrentCommandOrigin, 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-BpTL3uNe.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
4
|
let zod = require("zod");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cc as defineRecordKinds } from "./dist-BgRMQHuL.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-BpTL3uNe.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 {
|
|
1
|
+
import { _n as addonPagesCapability, al as errMsg, sl as EventCategory, ss as BaseAddon } from "../../dist-BgRMQHuL.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
|
-
import * as fs from "node:fs";
|
|
4
|
+
import * as fs$1 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.statSync(bundlePath);
|
|
214
|
+
const stat = fs$1.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.readFileSync(bundlePath)).digest("hex").slice(0, 12);
|
|
218
|
+
v = createHash("sha1").update(fs$1.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-BpTL3uNe.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 { al as
|
|
1
|
+
import { al as errMsg, sl as EventCategory, ss as BaseAddon, yn as addonWidgetsCapability } from "../../dist-BgRMQHuL.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
|
-
import * as fs from "node:fs";
|
|
4
|
+
import * as fs$1 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.readdirSync(dir).filter((f) => fs.statSync(path$1.join(dir, f)).isFile()).sort();
|
|
207
|
+
const files = fs$1.readdirSync(dir).filter((f) => fs$1.statSync(path$1.join(dir, f)).isFile()).sort();
|
|
208
208
|
const cacheKey = `${dir}#${files.map((f) => {
|
|
209
|
-
const s = fs.statSync(path$1.join(dir, f));
|
|
209
|
+
const s = fs$1.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.readFileSync(path$1.join(dir, f)));
|
|
217
|
+
hash.update(fs$1.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-BpTL3uNe.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,7 +1,7 @@
|
|
|
1
|
-
import { $r as
|
|
1
|
+
import { $r as isAlertEpisodeOpen, Sn as alertsCapability, T as CORE_BLOCK_ADDON_PREFIX, al as errMsg, bn as alertEpisodeId, cc as defineRecordKinds, ei as isAlertEpisodeSeverity, p as AlertSchema, rc as createEvent, sl as EventCategory, ss as BaseAddon, xn as alertEpisodePayload } from "../../dist-BgRMQHuL.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
|
-
import * as fs from "node:fs";
|
|
4
|
+
import * as fs$1 from "node:fs";
|
|
5
5
|
import * as path$1 from "node:path";
|
|
6
6
|
//#region src/builtins/alerts/alert-episode-policy.ts
|
|
7
7
|
/**
|
|
@@ -148,7 +148,7 @@ function lastCauseAfterChunk(previous, chunk) {
|
|
|
148
148
|
function readRunnerDisplayName(addonDirs, runnerId) {
|
|
149
149
|
const names = [];
|
|
150
150
|
for (const dir of addonDirs) try {
|
|
151
|
-
const raw = JSON.parse(fs.readFileSync(path$1.join(dir, "package.json"), "utf-8"));
|
|
151
|
+
const raw = JSON.parse(fs$1.readFileSync(path$1.join(dir, "package.json"), "utf-8"));
|
|
152
152
|
const camstack = typeof raw === "object" && raw !== null ? Reflect.get(raw, "camstack") : null;
|
|
153
153
|
const addons = typeof camstack === "object" && camstack !== null ? Reflect.get(camstack, "addons") : null;
|
|
154
154
|
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-BpTL3uNe.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 { Dn as bareAddonId, al as errMsg, ca as ptzAutotrackCapability, sl as EventCategory, ss as BaseAddon, st as FIRST_LEVEL_MACRO_CLASSES, xc as isEvent } from "../../dist-BgRMQHuL.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-BpTL3uNe.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-BGa5pdp9.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 {
|
|
1
|
+
import { Ei as mayWriteToLocation, En as backupCapability, Nc as nodePin, Yc as toNodeId, eo as storageOccupancyCapability, sl as EventCategory, ss as BaseAddon } from "../../dist-BgRMQHuL.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-B3FEpUfz.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
|
-
import * as fs from "node:fs";
|
|
5
|
+
import * as fs$1 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.createWriteStream(input.cachePath);
|
|
1021
|
+
const writeStream = fs$1.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.createReadStream(input.cachePath, { highWaterMark: UPLOAD_CHUNK_BYTES });
|
|
2505
|
+
const stream = fs$1.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-BpTL3uNe.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 { D as CalendarPreferencesSchema, In as calendarsCapability, cc as defineRecordKinds, ss as BaseAddon } from "../../dist-BgRMQHuL.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-BpTL3uNe.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let _camstack_types_node = require("@camstack/types/node");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as DERIVED_CAMERA_SILENCED_CAP_NAMES, Dn as bareAddonId, Fi as motionCapability, Io as buildFfmpegArgs, Ja as snapshotCapability, Ln as cameraGridLayoutCapability, Ot as MOTION_CLOSE_AFTER_MS, Q as DeclaredDevices, Sc as isInstanceEnabled, Xr as integrationInstancesCapability, _c as hydrateSchema, al as errMsg, g as BaseDevice, il as DeviceType, js as RecordIntegrationInstances, ki as memoizePinnedFfmpeg, nl as DeviceFeature, no as streamCatalogCapability, rc as createEvent, sc as defineEntryKind, sl as EventCategory, ss as BaseAddon, ur as declarationOwnerNodeId } from "../../dist-BgRMQHuL.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { FfmpegProcess } from "@camstack/types/node";
|
|
@@ -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_composition_sources = require("../../composition-sources-
|
|
8
|
-
const require_capture_engine = require("../../capture-engine-
|
|
6
|
+
const require_dist = require("../../dist-BpTL3uNe.js");
|
|
7
|
+
const require_composition_sources = require("../../composition-sources-CM9c_jAj.js");
|
|
8
|
+
const require_capture_engine = require("../../capture-engine-DP4HbT3W.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-Dn2z4fnA.js");
|
|
11
11
|
let zod = require("zod");
|
|
12
12
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
13
13
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-
|
|
3
|
-
import { i as capSeriesKey } from "../../capture-engine-
|
|
1
|
+
import { $n as consumablesCapability, $o as nextLocalMidnight, A as ConsumableItemSchema, Ai as methodRefusal, Ao as DEFAULT_HISTORY_RETENTION, Bo as compositionFeatureEnabled, Di as mediaPlayerCapability, Do as COMPOSER_ADDON_ID, Ea as resolveMutate, Fi as motionCapability, Fo as MINUTE_MS, Go as disarmRoseMemory, Ha as sharedActuatorFeatures, Ho as compositionSliceKey, Ir as fanControlCapability, Jr as groupTemplate, Ko as evaluateDerivative, Lo as cloneStatefulExpressionMemory, Lr as fanOutTargets, Lt as PetFountainStatusSchema, Ma as runFanOut, Mo as HISTORY_SLOW_MS, No as HOUR_MS, Oi as mediaPlayerFeaturesOfRoles, Pr as expressionContainsBuiltinCall, Q as DeclaredDevices, Qi as planComposition, Qo as isHistoryHelper, Ro as composedDeviceRef, S as COMPOSED_ITEM_FIXED_FIELDS, Ua as sharedActuatorMethods, Uo as compositionSourceKey, Vo as compositionItemFieldPath, Wa as sharedColorModes, Wn as climateControlCapability, Wo as createStatefulExpressionMemory, Xi as petFountainWaterItem, Xn as composerCapability, Xo as integrateReading, Yi as petFountainCapability, Yo as historyRetentionFromSettings, Zn as compositionFieldKey, Zo as isForwardInputRef, aa as processTimeZoneOr, al as errMsg, ao as switchCapability, ar as coverCapability, as as toExpressionValue, bi as lockControlCapability, di as kebabToCamel, dr as declaredSeriesKind, es as openReset, g as BaseDevice, i as ACTUATOR_TEMPLATE_IDS, il as DeviceType, is as statisticCadenceMs, jn as buildCapabilityLookup, jo as HISTORY_FAST_MS, kn as brightnessCapability, kr as evaluateCompositionField, lt as FanDirectionSchema, ns as planResetTier, ol as featuresOfBoundCaps, pt as GroupCommandResultSchema, qi as parseColorInput, qn as colorCapability, qo as evaluateStatistic, qr as groupCommandsCapability, r as ACTUATOR_METHODS, rc as createEvent, rs as planStatisticTier, s as ALL_CAPABILITY_DEFINITIONS, sl as EventCategory, ss as BaseAddon, ts as openStatistic, vt as HvacModeSchema, wc as isReadingQuantity, wo as withDefaultRunning, yo as valveCapability, zo as composedDeviceStableId, zr as featureForwards } from "../../dist-BgRMQHuL.mjs";
|
|
2
|
+
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-CL9JFN4y.mjs";
|
|
3
|
+
import { i as capSeriesKey } from "../../capture-engine-C-rHYVFq.mjs";
|
|
4
4
|
import { i as DAY_MS, t as DEFAULT_RETENTION } from "../../retention-CUOVI1p7.mjs";
|
|
5
|
-
import { n as renameCompositionBlock } from "../../rename-composition-block-
|
|
5
|
+
import { n as renameCompositionBlock } from "../../rename-composition-block-Cp0_nwAI.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
8
8
|
/**
|
|
@@ -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-BpTL3uNe.js");
|
|
7
7
|
const require_formatter = require("../../formatter-xbxeV4GD.js");
|
|
8
8
|
//#region src/builtins/console-logging/console-destination.ts
|
|
9
9
|
var LEVEL_RANK = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Si as logDestinationCapability, ss as BaseAddon } from "../../dist-BgRMQHuL.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 = {
|
|
@@ -54,6 +54,8 @@ export declare class ActionsService implements IActionsProvider {
|
|
|
54
54
|
private readonly templates;
|
|
55
55
|
private readonly conditions;
|
|
56
56
|
private readonly running;
|
|
57
|
+
/** Last run START per action — the throttle's memory. */
|
|
58
|
+
private readonly lastStartedAt;
|
|
57
59
|
private readonly maxRunMs;
|
|
58
60
|
private readonly stopGraceMs;
|
|
59
61
|
constructor(deps: ActionsServiceDeps);
|
|
@@ -95,6 +97,12 @@ export declare class ActionsService implements IActionsProvider {
|
|
|
95
97
|
/** A non-admin run is refused up front when a template names a device outside `readable`. */
|
|
96
98
|
private checkTemplateScope;
|
|
97
99
|
run(input: RunInput): Promise<ActionRunResult>;
|
|
100
|
+
/**
|
|
101
|
+
* The action's throttle (`minDelaySec`): null when this start is let through.
|
|
102
|
+
* The stamp is memory — the authority at fire time (D49) — and a restart
|
|
103
|
+
* forgets it, which only ever lets one extra run through.
|
|
104
|
+
*/
|
|
105
|
+
private throttleOf;
|
|
98
106
|
private triggerOf;
|
|
99
107
|
/** Never rejects: a run's failure is its outcome. */
|
|
100
108
|
private execute;
|