@camstack/server 1.2.929 → 1.2.930
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 +6 -0
- package/package.json +9 -11
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.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/core-blocks/actions-service.d.ts +18 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +986 -208
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +985 -208
- package/system/dist/builtins/core-blocks/tcp-connect.d.ts +3 -0
- package/system/dist/builtins/core-notifier/core-notifier.addon.js +6 -487
- package/system/dist/builtins/core-notifier/core-notifier.addon.mjs +3 -484
- package/system/dist/builtins/device-manager/device-manager.addon.js +3 -3
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +3 -3
- package/system/dist/{composition-sources-Caqv7O7z.mjs → composition-sources-BEUWn2s_.mjs} +1 -1
- package/system/dist/{composition-sources-CgnHjm8Q.js → composition-sources-acfR4hDq.js} +1 -1
- package/system/dist/{core-blocks.cap-LEMqVwxO.js → core-blocks.cap-BMeMCBrx.js} +37 -9
- package/system/dist/{core-blocks.cap-C6iKAZ-x.mjs → core-blocks.cap-BRPsLAij.mjs} +32 -10
- package/system/dist/index.js +2 -2
- package/system/dist/index.mjs +2 -2
- package/system/dist/{notification-rules.cap-B__YBgnG.js → notification-rules.cap-BDh0LDhV.js} +6 -0
- package/system/dist/{notification-rules.cap-D9ArZlwx.mjs → notification-rules.cap-DUmiMBQB.mjs} +1 -1
- package/system/dist/notification-targets-CRH-9Dy5.js +509 -0
- package/system/dist/notification-targets-DaNE-pIt.mjs +486 -0
- package/system/dist/{prefix-walk-DC0ljmbB.js → prefix-walk-BkMxoXpL.js} +1 -1
- package/system/dist/{prefix-walk-B4b2-9aK.mjs → prefix-walk-ifwg_ukx.mjs} +1 -1
- package/system/dist/{rename-composition-block-CcWLwVhG.js → rename-composition-block-BJsL58Ih.js} +121 -15
- package/system/dist/{rename-composition-block-7WIICIDq.mjs → rename-composition-block-OAtErZgq.mjs} +121 -15
- package/system/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.930",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,11 +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-
|
|
72
|
-
"@camstack/addon-pipeline": ">=1.2.679",
|
|
73
|
-
"@camstack/addon-provider-homematic": ">=1.2.212"
|
|
69
|
+
"@camstack/addon-admin-ui": ">=1.2.728",
|
|
70
|
+
"@camstack/addon-agent-ui": ">=1.2.427",
|
|
71
|
+
"@camstack/addon-post-analysis": ">=1.2.721"
|
|
74
72
|
},
|
|
75
73
|
"wrapper": {
|
|
76
74
|
"desktop": ">=0.0.1",
|
|
@@ -79,19 +77,19 @@
|
|
|
79
77
|
}
|
|
80
78
|
},
|
|
81
79
|
"dependencies": {
|
|
82
|
-
"@camstack/addon-admin-ui": "1.2.
|
|
83
|
-
"@camstack/addon-agent-ui": "1.2.
|
|
80
|
+
"@camstack/addon-admin-ui": "1.2.728",
|
|
81
|
+
"@camstack/addon-agent-ui": "1.2.427",
|
|
84
82
|
"@camstack/addon-auth": "1.2.182",
|
|
85
83
|
"@camstack/addon-benchmark": "1.2.313",
|
|
86
84
|
"@camstack/addon-decoder-nodeav": "1.2.149",
|
|
87
85
|
"@camstack/addon-notifiers": "1.2.641",
|
|
88
86
|
"@camstack/addon-pipeline": "1.2.679",
|
|
89
87
|
"@camstack/addon-pipeline-orchestrator": "1.2.712",
|
|
90
|
-
"@camstack/addon-post-analysis": "1.2.
|
|
88
|
+
"@camstack/addon-post-analysis": "1.2.721",
|
|
91
89
|
"@camstack/develop": "0.1.56",
|
|
92
90
|
"@camstack/sdk": "1.2.159",
|
|
93
|
-
"@camstack/types": "1.2.
|
|
94
|
-
"@camstack/ui-library": "1.2.
|
|
91
|
+
"@camstack/types": "1.2.619",
|
|
92
|
+
"@camstack/ui-library": "1.2.490",
|
|
95
93
|
"@fastify/compress": "^9.0.0",
|
|
96
94
|
"@fastify/cookie": "^11.0.2",
|
|
97
95
|
"@fastify/cors": "^11.2.0",
|
|
@@ -6,7 +6,7 @@ const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
|
6
6
|
const require_base_addon = require("../../base-addon-DD5dIfcZ.js");
|
|
7
7
|
const require_scoped_settings = require("../../scoped-settings-CylSSq_8.js");
|
|
8
8
|
const require_record_kind = require("../../record-kind-DoBfYHCs.js");
|
|
9
|
-
const require_core_blocks_cap = require("../../core-blocks.cap-
|
|
9
|
+
const require_core_blocks_cap = require("../../core-blocks.cap-BMeMCBrx.js");
|
|
10
10
|
const require_error_cap = require("../../error.cap-DBhgPeWK.js");
|
|
11
11
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
12
12
|
const require_log_redactor = require("../../log-redactor-BhIEMaG9.js");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { b as EventCategory, p as createEvent, t as BaseAddon } from "../../base-addon-Md14i7pe.mjs";
|
|
2
2
|
import { Z as errMsg } from "../../scoped-settings-DVWUIP7Z.mjs";
|
|
3
3
|
import { s as defineRecordKinds } from "../../record-kind-ub6NXqfh.mjs";
|
|
4
|
-
import { $ as alertsCapability, Q as AlertSchema, n as CORE_BLOCK_ADDON_PREFIX } from "../../core-blocks.cap-
|
|
4
|
+
import { $ as alertsCapability, Q as AlertSchema, n as CORE_BLOCK_ADDON_PREFIX } from "../../core-blocks.cap-BRPsLAij.mjs";
|
|
5
5
|
import { t as DeviceFaultSchema } from "../../error.cap-CSM_SRfR.mjs";
|
|
6
6
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
7
7
|
import { a as redactLogText } from "../../log-redactor-XLDrPzOi.mjs";
|
|
@@ -6,14 +6,14 @@ require("../../chunk-Cek0wNdY.js");
|
|
|
6
6
|
const require_stream_catalog_cap = require("../../stream-catalog.cap-D3uwePiA.js");
|
|
7
7
|
const require_base_addon = require("../../base-addon-DD5dIfcZ.js");
|
|
8
8
|
const require_scoped_settings = require("../../scoped-settings-CylSSq_8.js");
|
|
9
|
-
const require_rename_composition_block = require("../../rename-composition-block-
|
|
9
|
+
const require_rename_composition_block = require("../../rename-composition-block-BJsL58Ih.js");
|
|
10
10
|
const require_quantity = require("../../quantity-lY1KiTSZ.js");
|
|
11
11
|
const require_device_type = require("../../device-type-CbQsnFdC.js");
|
|
12
|
-
const require_core_blocks_cap = require("../../core-blocks.cap-
|
|
12
|
+
const require_core_blocks_cap = require("../../core-blocks.cap-BMeMCBrx.js");
|
|
13
13
|
const require_addon_settings_cap = require("../../addon-settings.cap-DAiE0Nb0.js");
|
|
14
14
|
const require_error_cap = require("../../error.cap-DBhgPeWK.js");
|
|
15
15
|
const require_source_info = require("../../source-info-DtWf4k2j.js");
|
|
16
|
-
const require_composition_sources = require("../../composition-sources-
|
|
16
|
+
const require_composition_sources = require("../../composition-sources-acfR4hDq.js");
|
|
17
17
|
const require_declared_device = require("../../declared-device-BWphj9WE.js");
|
|
18
18
|
const require_base_device = require("../../base-device-2sL1DMm1.js");
|
|
19
19
|
const require_capture_engine = require("../../capture-engine-DZ0LIUqA.js");
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { i as motionCapability } from "../../stream-catalog.cap-Bp7SkgIf.mjs";
|
|
2
2
|
import { b as EventCategory, p as createEvent, t as BaseAddon } from "../../base-addon-Md14i7pe.mjs";
|
|
3
3
|
import { Z as errMsg } from "../../scoped-settings-DVWUIP7Z.mjs";
|
|
4
|
-
import { An as colorCapability, E as valveCapability, En as consumablesCapability, Jt as groupCommandsCapability, Kt as GroupCommandResultSchema, Ln as brightnessCapability, Nn as HvacModeSchema, On as composerCapability, Pn as climateControlCapability, U as RUNNING_CUSTOMIZE_DEVICE_TYPES, c as kebabToCamel, ct as petFountainWaterItem, gt as lockControlCapability, in as FanDirectionSchema, jn as parseColorInput, m as ALL_CAPABILITY_DEFINITIONS, n as renameCompositionBlock, ot as PetFountainStatusSchema, sn as fanControlCapability, st as petFountainCapability, wn as ConsumableItemSchema, xn as coverCapability, z as switchCapability } from "../../rename-composition-block-
|
|
4
|
+
import { An as colorCapability, E as valveCapability, En as consumablesCapability, Jt as groupCommandsCapability, Kt as GroupCommandResultSchema, Ln as brightnessCapability, Nn as HvacModeSchema, On as composerCapability, Pn as climateControlCapability, U as RUNNING_CUSTOMIZE_DEVICE_TYPES, c as kebabToCamel, ct as petFountainWaterItem, gt as lockControlCapability, in as FanDirectionSchema, jn as parseColorInput, m as ALL_CAPABILITY_DEFINITIONS, n as renameCompositionBlock, ot as PetFountainStatusSchema, sn as fanControlCapability, st as petFountainCapability, wn as ConsumableItemSchema, xn as coverCapability, z as switchCapability } from "../../rename-composition-block-OAtErZgq.mjs";
|
|
5
5
|
import { i as isReadingQuantity } from "../../quantity-D3g5SxsZ.mjs";
|
|
6
6
|
import { i as featuresOfBoundCaps, r as DeviceType, t as DeviceFeature } from "../../device-type-DgEvK3ch.mjs";
|
|
7
|
-
import { D as COMPOSED_ITEM_FIXED_FIELDS, E as featureForwards, M as mediaPlayerCapability, O as expressionContainsBuiltinCall, T as commandedMethods, Z as compositionFieldKey, g as planComposition, p as buildCapabilityLookup } from "../../core-blocks.cap-
|
|
7
|
+
import { D as COMPOSED_ITEM_FIXED_FIELDS, E as featureForwards, M as mediaPlayerCapability, O as expressionContainsBuiltinCall, T as commandedMethods, Z as compositionFieldKey, g as planComposition, p as buildCapabilityLookup } from "../../core-blocks.cap-BRPsLAij.mjs";
|
|
8
8
|
import { a as tryConvertUnit } from "../../addon-settings.cap-3-TIIMq_.mjs";
|
|
9
9
|
import { $ as planResetTier, A as compositionItemFieldPath, D as composedDeviceRef, G as HISTORY_FAST_MS, H as isHistoryHelper, J as MINUTE_MS, K as HISTORY_SLOW_MS, L as isForwardInputRef, M as compositionSliceKey, N as compositionSourceKey, O as composedDeviceStableId, Q as openStatistic, V as isEngineHostedHelper, W as DEFAULT_HISTORY_RETENTION, X as nextLocalMidnight, Y as historyRetentionFromSettings, Z as openReset, _ as groupTemplate, at as cloneStatefulExpressionMemory, ct as evaluateStatefulExpressionCall, et as planStatisticTier, g as sharedColorModes, gt as evaluateCount, h as runFanOut, ht as disarmRoseMemory, it as integrateReading, k as compositionFeatureEnabled, lt as toExpressionValue, m as fanOutTargets, nt as evaluateDerivative, ot as createStatefulExpressionMemory, p as declaredSeriesKind, q as HOUR_MS, rt as evaluateStatistic, st as evaluateExpressionSource, tt as statisticCadenceMs, x as COMPOSER_ADDON_ID } from "../../error.cap-CSM_SRfR.mjs";
|
|
10
10
|
import { a as normalizeUnit } from "../../source-info-DGB7SdB_.mjs";
|
|
11
|
-
import { n as normalizedNativeOwner, r as compileScalarOverride } from "../../composition-sources-
|
|
11
|
+
import { n as normalizedNativeOwner, r as compileScalarOverride } from "../../composition-sources-BEUWn2s_.mjs";
|
|
12
12
|
import { t as DeclaredDevices } from "../../declared-device-CKERA1Hi.mjs";
|
|
13
13
|
import { t as BaseDevice } from "../../base-device-IuM1AwXZ.mjs";
|
|
14
14
|
import { i as capSeriesKey, m as parseConfirmedStateChanged, p as isRecord$4 } from "../../capture-engine-DiwbjoWp.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ActionEntry, type ActionLinks, type ActionRunChanged, type ActionRunResult, type ActionVariableValue, type AutomationRunTrace, type BoundCapsReader, type DeviceDirectory, type CapCall, type IActionsProvider, type IScopedLogger, type UnitResolver, type UnitWarning } from "@camstack/types";
|
|
1
|
+
import { type ActionEntry, type ActionLinks, type ActionRunChanged, type ActionRunResult, type ActionVariableValue, type AutomationRunTrace, type BoundCapsReader, type HttpFetch, type NotifyBodyEnv, type TcpConnect, type DeviceDirectory, type CapCall, type IActionsProvider, type IScopedLogger, type UnitResolver, type UnitWarning } from "@camstack/types";
|
|
2
2
|
import type { ActionsStore } from "./actions-store.js";
|
|
3
3
|
import { type DeviceTemplateDoor } from "./device-template-door.js";
|
|
4
4
|
import { type StepConditionDoor } from "./step-condition-door.js";
|
|
@@ -39,6 +39,14 @@ export interface ActionsServiceDeps {
|
|
|
39
39
|
readonly templates?: DeviceTemplateDoor;
|
|
40
40
|
/** Reads a conditional step's `if` (#472). */
|
|
41
41
|
readonly conditions?: StepConditionDoor;
|
|
42
|
+
/** What the steps beyond a device command reach out with; absent where there is none, and such a step then fails when it runs. */
|
|
43
|
+
readonly effects?: ActionRunEffects;
|
|
44
|
+
}
|
|
45
|
+
/** The network and notification effects of an Action's probe, http-request and notify steps. */
|
|
46
|
+
export interface ActionRunEffects {
|
|
47
|
+
readonly fetch?: HttpFetch;
|
|
48
|
+
readonly connect?: TcpConnect;
|
|
49
|
+
readonly sendNotification?: NotifyBodyEnv["send"];
|
|
42
50
|
}
|
|
43
51
|
type RunInput = Parameters<IActionsProvider["run"]>[0];
|
|
44
52
|
type GetInput = Parameters<IActionsProvider["get"]>[0];
|
|
@@ -55,6 +63,7 @@ export declare class ActionsService implements IActionsProvider {
|
|
|
55
63
|
private readonly targets;
|
|
56
64
|
private readonly templates;
|
|
57
65
|
private readonly conditions;
|
|
66
|
+
private readonly effects;
|
|
58
67
|
private readonly running;
|
|
59
68
|
/** Last run START per action — the throttle's memory. */
|
|
60
69
|
private readonly lastStartedAt;
|
|
@@ -99,6 +108,12 @@ export declare class ActionsService implements IActionsProvider {
|
|
|
99
108
|
private checkTemplateScope;
|
|
100
109
|
run(input: RunInput): Promise<ActionRunResult>;
|
|
101
110
|
/**
|
|
111
|
+
* One run, under the chain of Actions that started it (an `action` step runs
|
|
112
|
+
* an Action from inside a run): an Action already in the chain, or a chain
|
|
113
|
+
* past the depth bound, is refused — logged with the action id, never hung.
|
|
114
|
+
*/
|
|
115
|
+
private runUnder;
|
|
116
|
+
/**
|
|
102
117
|
* The action's throttle (`minDelaySec`): null when this start is let through.
|
|
103
118
|
* The stamp is memory — the authority at fire time (D49) — and a restart
|
|
104
119
|
* forgets it, which only ever lets one extra run through.
|
|
@@ -138,6 +153,8 @@ export declare class ActionsService implements IActionsProvider {
|
|
|
138
153
|
private existingForUpdate;
|
|
139
154
|
/** A step naming a device whose own bindings lack its action's cap is refused at save (D12). */
|
|
140
155
|
private requireOffered;
|
|
156
|
+
/** An Action that would run itself, directly or through others, is refused at save and names the cycle. */
|
|
157
|
+
private requireNoCycle;
|
|
141
158
|
/** An action whose waits alone exceed the run ceiling could never finish: refuse the save. */
|
|
142
159
|
private requireWithinCeiling;
|
|
143
160
|
/**
|