trigger_system 1.2.1 → 1.2.5
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/dist/browser/index.browser.js +183 -40
- package/dist/browser/index.browser.js.map +116 -17
- package/dist/core/action-registry.d.ts +29 -3
- package/dist/core/action-registry.d.ts.map +1 -1
- package/dist/core/base-engine.d.ts +3 -3
- package/dist/core/constants.d.ts +95 -0
- package/dist/core/constants.d.ts.map +1 -0
- package/dist/core/dependency-graph/analyzer.d.ts +60 -0
- package/dist/core/dependency-graph/analyzer.d.ts.map +1 -0
- package/dist/core/dependency-graph/builder.d.ts +28 -0
- package/dist/core/dependency-graph/builder.d.ts.map +1 -0
- package/dist/core/dependency-graph/cycles.d.ts +28 -0
- package/dist/core/dependency-graph/cycles.d.ts.map +1 -0
- package/dist/core/dependency-graph/index.d.ts +11 -0
- package/dist/core/dependency-graph/index.d.ts.map +1 -0
- package/dist/core/dependency-graph/types.d.ts +72 -0
- package/dist/core/dependency-graph/types.d.ts.map +1 -0
- package/dist/core/dependency-graph/utils.d.ts +39 -0
- package/dist/core/dependency-graph/utils.d.ts.map +1 -0
- package/dist/core/dependency-graph/validator.d.ts +28 -0
- package/dist/core/dependency-graph/validator.d.ts.map +1 -0
- package/dist/core/dependency-graph.d.ts +64 -13
- package/dist/core/dependency-graph.d.ts.map +1 -1
- package/dist/core/engine-utils.d.ts +45 -0
- package/dist/core/engine-utils.d.ts.map +1 -0
- package/dist/core/engine.d.ts +0 -8
- package/dist/core/engine.d.ts.map +1 -1
- package/dist/core/expression-engine.d.ts +52 -10
- package/dist/core/expression-engine.d.ts.map +1 -1
- package/dist/core/index.d.ts +2 -4
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/operators.d.ts +48 -0
- package/dist/core/operators.d.ts.map +1 -0
- package/dist/core/persistence-browser.d.ts +25 -2
- package/dist/core/persistence-browser.d.ts.map +1 -1
- package/dist/core/persistence.node.d.ts +25 -2
- package/dist/core/persistence.node.d.ts.map +1 -1
- package/dist/core/rule-engine-new.d.ts +2 -1
- package/dist/core/rule-engine-new.d.ts.map +1 -1
- package/dist/core/rule-engine.d.ts +22 -35
- package/dist/core/rule-engine.d.ts.map +1 -1
- package/dist/core/trigger-engine.d.ts +18 -25
- package/dist/core/trigger-engine.d.ts.map +1 -1
- package/dist/domain/validator.d.ts +36043 -5067
- package/dist/domain/validator.d.ts.map +1 -1
- package/dist/index.browser.d.ts +1 -0
- package/dist/index.browser.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/io/index.d.ts +6 -1
- package/dist/io/index.d.ts.map +1 -1
- package/dist/io/loader/index.d.ts +48 -0
- package/dist/io/loader/index.d.ts.map +1 -0
- package/dist/io/loader/persistence.d.ts +41 -0
- package/dist/io/loader/persistence.d.ts.map +1 -0
- package/dist/io/loader/query.d.ts +49 -0
- package/dist/io/loader/query.d.ts.map +1 -0
- package/dist/io/loader/registry.d.ts +91 -0
- package/dist/io/loader/registry.d.ts.map +1 -0
- package/dist/io/loader/types.d.ts +32 -0
- package/dist/io/loader/types.d.ts.map +1 -0
- package/dist/io/loader/watch.d.ts +36 -0
- package/dist/io/loader/watch.d.ts.map +1 -0
- package/dist/io/loader.node.d.ts +1 -13
- package/dist/io/loader.node.d.ts.map +1 -1
- package/dist/lsp/hover-constants.d.ts +42 -0
- package/dist/lsp/hover-constants.d.ts.map +1 -0
- package/dist/lsp/server.bundle.d.ts +2 -0
- package/dist/lsp/server.bundle.d.ts.map +1 -0
- package/dist/node/index.js +183 -170
- package/dist/node/index.js.map +116 -91
- package/dist/node/node.js +185 -173
- package/dist/node/node.js.map +122 -93
- package/dist/node.d.ts +1 -1
- package/dist/node.d.ts.map +1 -1
- package/dist/sdk/builder.d.ts +177 -21
- package/dist/sdk/builder.d.ts.map +1 -1
- package/dist/sdk/builders/action-builder.d.ts +24 -0
- package/dist/sdk/builders/action-builder.d.ts.map +1 -0
- package/dist/sdk/builders/condition-builder.d.ts +26 -0
- package/dist/sdk/builders/condition-builder.d.ts.map +1 -0
- package/dist/sdk/builders/index.d.ts +5 -0
- package/dist/sdk/builders/index.d.ts.map +1 -0
- package/dist/sdk/builders/params-builder.d.ts +59 -0
- package/dist/sdk/builders/params-builder.d.ts.map +1 -0
- package/dist/sdk/constants.d.ts +44 -0
- package/dist/sdk/constants.d.ts.map +1 -0
- package/dist/sdk/exporter.d.ts +16 -0
- package/dist/sdk/exporter.d.ts.map +1 -1
- package/dist/sdk/graph/action-resolver.d.ts +103 -0
- package/dist/sdk/graph/action-resolver.d.ts.map +1 -0
- package/dist/sdk/graph/condition-resolver.d.ts +87 -0
- package/dist/sdk/graph/condition-resolver.d.ts.map +1 -0
- package/dist/sdk/graph/converters.d.ts +152 -0
- package/dist/sdk/graph/converters.d.ts.map +1 -0
- package/dist/sdk/graph/index.d.ts +12 -0
- package/dist/sdk/graph/index.d.ts.map +1 -0
- package/dist/sdk/graph/node-filters.d.ts +96 -0
- package/dist/sdk/graph/node-filters.d.ts.map +1 -0
- package/dist/sdk/graph/traversal.d.ts +105 -0
- package/dist/sdk/graph/traversal.d.ts.map +1 -0
- package/dist/sdk/graph/types.d.ts +28 -0
- package/dist/sdk/graph/types.d.ts.map +1 -0
- package/dist/sdk/graph-parser.d.ts +40 -0
- package/dist/sdk/graph-parser.d.ts.map +1 -0
- package/dist/sdk/index.d.ts +3 -0
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/optimize.d.ts +27 -0
- package/dist/sdk/optimize.d.ts.map +1 -0
- package/dist/sdk/yaml/converter.d.ts +81 -0
- package/dist/sdk/yaml/converter.d.ts.map +1 -0
- package/dist/sdk/yaml/index.d.ts +39 -0
- package/dist/sdk/yaml/index.d.ts.map +1 -0
- package/dist/sdk/yaml/normalizer.d.ts +44 -0
- package/dist/sdk/yaml/normalizer.d.ts.map +1 -0
- package/dist/sdk/yaml/types.d.ts +198 -0
- package/dist/sdk/yaml/types.d.ts.map +1 -0
- package/dist/sdk/yaml/utils.d.ts +131 -0
- package/dist/sdk/yaml/utils.d.ts.map +1 -0
- package/dist/sdk/yaml-parser.d.ts +18 -0
- package/dist/sdk/yaml-parser.d.ts.map +1 -0
- package/dist/types.d.ts +40 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +6 -1
|
@@ -1,30 +1,72 @@
|
|
|
1
1
|
import type { TriggerContext } from "../types";
|
|
2
|
+
/**
|
|
3
|
+
* Context root keys - used to access different parts of the trigger context
|
|
4
|
+
* Avoids magic strings throughout the codebase
|
|
5
|
+
*/
|
|
6
|
+
export declare const ContextKeys: {
|
|
7
|
+
readonly DATA: "data";
|
|
8
|
+
readonly VARS: "vars";
|
|
9
|
+
readonly REQUEST: "request";
|
|
10
|
+
readonly COMPUTED: "computed";
|
|
11
|
+
readonly ENV: "env";
|
|
12
|
+
readonly STATE: "state";
|
|
13
|
+
readonly EVENT: "event";
|
|
14
|
+
readonly TIMESTAMP: "timestamp";
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Type representing valid context root keys
|
|
18
|
+
*/
|
|
19
|
+
export type ContextKey = typeof ContextKeys[keyof typeof ContextKeys];
|
|
20
|
+
/**
|
|
21
|
+
* Built-in Math functions that can be used in expressions
|
|
22
|
+
* Avoids magic strings and provides type safety
|
|
23
|
+
*/
|
|
24
|
+
export declare const MathFunctions: {
|
|
25
|
+
readonly RANDOM: "random";
|
|
26
|
+
readonly FLOOR: "floor";
|
|
27
|
+
readonly CEIL: "ceil";
|
|
28
|
+
readonly ROUND: "round";
|
|
29
|
+
readonly SQRT: "sqrt";
|
|
30
|
+
readonly ABS: "abs";
|
|
31
|
+
readonly POW: "pow";
|
|
32
|
+
readonly MIN: "min";
|
|
33
|
+
readonly MAX: "max";
|
|
34
|
+
readonly SIN: "sin";
|
|
35
|
+
readonly COS: "cos";
|
|
36
|
+
readonly TAN: "tan";
|
|
37
|
+
};
|
|
2
38
|
export declare class ExpressionEngine {
|
|
3
39
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
40
|
+
* Evaluates a simple mathematical expression or variable interpolation
|
|
41
|
+
* Supports operators: +, -, *, /, %, **, and basic math functions
|
|
6
42
|
*/
|
|
7
|
-
static evaluate(expression: string, context: TriggerContext): unknown;
|
|
43
|
+
static evaluate(expression: string | null | undefined, context: TriggerContext): unknown;
|
|
8
44
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
45
|
+
* Performs variable interpolation in a text template
|
|
46
|
+
* Example: "Hello ${data.username}, today is ${new Date().toLocaleDateString()}"
|
|
11
47
|
*/
|
|
12
48
|
static interpolate(template: string, context: TriggerContext): string;
|
|
13
49
|
/**
|
|
14
|
-
*
|
|
50
|
+
* Evaluates a safe mathematical expression using Function constructor
|
|
15
51
|
*/
|
|
16
52
|
private static evaluateMathExpression;
|
|
17
53
|
/**
|
|
18
|
-
*
|
|
54
|
+
* Evaluates an individual expression in context
|
|
19
55
|
*/
|
|
20
56
|
private static evaluateExpression;
|
|
21
57
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
58
|
+
* Gets a nested value from an object using dot notation
|
|
59
|
+
* Example: getNestedValue("data.user.profile.name", context)
|
|
24
60
|
*/
|
|
25
61
|
static getNestedValue(path: string, context: TriggerContext): unknown;
|
|
26
62
|
/**
|
|
27
|
-
*
|
|
63
|
+
* Helper to check if a variable name exists anywhere in the context
|
|
64
|
+
* This allows evaluating "x" when context has { vars: { x: 5 } }
|
|
65
|
+
*/
|
|
66
|
+
private static findVariableInContext;
|
|
67
|
+
/**
|
|
68
|
+
* Executes a specific mathematical expression (like "1 + 2")
|
|
69
|
+
* Supports variables from context (e.g., data.x, vars.value)
|
|
28
70
|
*/
|
|
29
71
|
static evaluateMath(expression: string, context: TriggerContext): number;
|
|
30
72
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expression-engine.d.ts","sourceRoot":"","sources":["../../src/core/expression-engine.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,qBAAa,gBAAgB;IAC3B;;;OAGG;IAEH,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO;
|
|
1
|
+
{"version":3,"file":"expression-engine.d.ts","sourceRoot":"","sources":["../../src/core/expression-engine.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;CASd,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAOtE;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;CAahB,CAAC;AAuCX,qBAAa,gBAAgB;IAC3B;;;OAGG;IAEH,MAAM,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO;IA0BxF;;;OAGG;IACH,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,MAAM;IAerE;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,sBAAsB;IAUrC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;IA8BjC;;;OAGG;IACH,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO;IAcrE;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,qBAAqB;IAmBpC;;;OAGG;IACH,MAAM,CAAC,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,MAAM;CAkDzE"}
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
|
+
export * from "./constants";
|
|
1
2
|
export * from "./expression-engine";
|
|
2
3
|
export * from "./event-queue";
|
|
3
4
|
export * from "./persistence";
|
|
4
5
|
export * from "./persistence-browser";
|
|
5
6
|
export type { ITriggerEngine, EngineActionHandler } from "./base-engine";
|
|
6
7
|
export { TriggerEngine } from "./trigger-engine";
|
|
7
|
-
export { RuleEngine } from "./rule-engine
|
|
8
|
+
export { RuleEngine } from "./rule-engine";
|
|
8
9
|
export * from "./action-registry";
|
|
9
10
|
export * from "./context-adapter";
|
|
10
11
|
export * from "./state-manager";
|
|
11
12
|
export { TriggerEngine as Engine } from "./trigger-engine";
|
|
12
|
-
export { RuleEngine as AdvancedRuleEngine } from "./rule-engine-new";
|
|
13
|
-
export * from "./rule-engine";
|
|
14
|
-
export * from "./engine";
|
|
15
13
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/core/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAE9B,cAAc,uBAAuB,CAAC;AAGtC,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAE9B,cAAc,uBAAuB,CAAC;AAGtC,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAGhC,OAAO,EAAE,aAAa,IAAI,MAAM,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Operator Constants
|
|
3
|
+
* Centralized definitions of all valid operators used in conditions
|
|
4
|
+
*/
|
|
5
|
+
export declare const EQUALITY_OPERATORS: readonly ["EQ", "==", "NEQ", "!="];
|
|
6
|
+
export type EqualityOperator = typeof EQUALITY_OPERATORS[number];
|
|
7
|
+
export declare const COMPARISON_OPERATORS: readonly ["GT", ">", "GTE", ">=", "LT", "<", "LTE", "<="];
|
|
8
|
+
export type ComparisonOperator = typeof COMPARISON_OPERATORS[number];
|
|
9
|
+
export declare const LIST_OPERATORS: readonly ["IN", "NOT_IN", "RANGE"];
|
|
10
|
+
export type ListOperator = typeof LIST_OPERATORS[number];
|
|
11
|
+
export declare const STRING_OPERATORS: readonly ["CONTAINS", "NOT_CONTAINS", "STARTS_WITH", "ENDS_WITH"];
|
|
12
|
+
export type StringOperator = typeof STRING_OPERATORS[number];
|
|
13
|
+
export declare const NULL_OPERATORS: readonly ["IS_NULL", "IS_NONE"];
|
|
14
|
+
export type NullOperator = typeof NULL_OPERATORS[number];
|
|
15
|
+
export declare const SPECIAL_OPERATORS: readonly ["IS_EMPTY", "HAS_KEY", "MATCHES", "SINCE", "AFTER", "BEFORE", "UNTIL"];
|
|
16
|
+
export type SpecialOperator = typeof SPECIAL_OPERATORS[number];
|
|
17
|
+
export declare const ALL_OPERATORS: readonly ["EQ", "==", "NEQ", "!=", "GT", ">", "GTE", ">=", "LT", "<", "LTE", "<=", "IN", "NOT_IN", "RANGE", "CONTAINS", "NOT_CONTAINS", "STARTS_WITH", "ENDS_WITH", "IS_NULL", "IS_NONE", "IS_EMPTY", "HAS_KEY", "MATCHES", "SINCE", "AFTER", "BEFORE", "UNTIL"];
|
|
18
|
+
export type AnyOperator = typeof ALL_OPERATORS[number];
|
|
19
|
+
export declare const CONDITION_GROUP_OPERATORS: readonly ["AND", "OR"];
|
|
20
|
+
export type ConditionGroupOperator = typeof CONDITION_GROUP_OPERATORS[number];
|
|
21
|
+
export declare const EXECUTION_MODES: readonly ["ALL", "EITHER", "SEQUENCE"];
|
|
22
|
+
export type ExecutionMode = typeof EXECUTION_MODES[number];
|
|
23
|
+
export declare const OPERATOR_CATEGORIES: {
|
|
24
|
+
readonly equality: readonly ["EQ", "==", "NEQ", "!="];
|
|
25
|
+
readonly comparison: readonly ["GT", ">", "GTE", ">=", "LT", "<", "LTE", "<="];
|
|
26
|
+
readonly list: readonly ["IN", "NOT_IN", "RANGE"];
|
|
27
|
+
readonly string: readonly ["CONTAINS", "NOT_CONTAINS", "STARTS_WITH", "ENDS_WITH"];
|
|
28
|
+
readonly null: readonly ["IS_NULL", "IS_NONE"];
|
|
29
|
+
readonly special: readonly ["IS_EMPTY", "HAS_KEY", "MATCHES", "SINCE", "AFTER", "BEFORE", "UNTIL"];
|
|
30
|
+
readonly group: readonly ["AND", "OR"];
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if an operator is a list/collection operator
|
|
34
|
+
*/
|
|
35
|
+
export declare function isListOperator(op: string): op is ListOperator;
|
|
36
|
+
/**
|
|
37
|
+
* Check if an operator is a string operator
|
|
38
|
+
*/
|
|
39
|
+
export declare function isStringOperator(op: string): op is StringOperator;
|
|
40
|
+
/**
|
|
41
|
+
* Check if an operator is a comparison operator
|
|
42
|
+
*/
|
|
43
|
+
export declare function isComparisonOperator(op: string): op is ComparisonOperator;
|
|
44
|
+
/**
|
|
45
|
+
* Check if an operator is valid
|
|
46
|
+
*/
|
|
47
|
+
export declare function isValidOperator(op: string): op is AnyOperator;
|
|
48
|
+
//# sourceMappingURL=operators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operators.d.ts","sourceRoot":"","sources":["../../src/core/oper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,cAAc,CAEjE;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,MAAM,GAAG,EAAE,IAAI,kBAAkB,CAEzE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,EAAE,IAAI,WAAW,CAE7D"}
|
|
@@ -3,14 +3,37 @@ import { type PersistenceAdapter } from "./persistence";
|
|
|
3
3
|
* Browser LocalStorage Persistence Adapter
|
|
4
4
|
* Uses window.localStorage to save state.
|
|
5
5
|
* Fallbacks to in-memory if not available (e.g. Node env without polyfill).
|
|
6
|
+
*
|
|
7
|
+
* Optimizations:
|
|
8
|
+
* - Lazy loading: only reads from localStorage when first needed
|
|
9
|
+
* - Optional debounced writes: batches multiple rapid changes (disabled by default)
|
|
10
|
+
* - Manual flush: explicit persist() call for immediate write
|
|
6
11
|
*/
|
|
7
12
|
export declare class BrowserPersistence implements PersistenceAdapter {
|
|
8
13
|
private keyPrefix;
|
|
9
14
|
private cache;
|
|
10
15
|
private isLoaded;
|
|
11
|
-
|
|
16
|
+
private pendingWrite;
|
|
17
|
+
private writeDelay;
|
|
18
|
+
private dirty;
|
|
19
|
+
constructor(prefix?: string, options?: {
|
|
20
|
+
writeDelay?: number;
|
|
21
|
+
});
|
|
22
|
+
/**
|
|
23
|
+
* Force immediate write to localStorage
|
|
24
|
+
*/
|
|
25
|
+
flush(): void;
|
|
26
|
+
/**
|
|
27
|
+
* Get the current cache (for debugging)
|
|
28
|
+
*/
|
|
29
|
+
getCache(): Map<string, any>;
|
|
30
|
+
/**
|
|
31
|
+
* Check if there are pending writes
|
|
32
|
+
*/
|
|
33
|
+
isDirty(): boolean;
|
|
12
34
|
private isAvailable;
|
|
13
|
-
|
|
35
|
+
ensureLoaded(): void;
|
|
36
|
+
private schedulePersist;
|
|
14
37
|
private persist;
|
|
15
38
|
loadState(): Promise<Map<string, any>>;
|
|
16
39
|
saveState(key: string, value: any): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persistence-browser.d.ts","sourceRoot":"","sources":["../../src/core/persistence-browser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD
|
|
1
|
+
{"version":3,"file":"persistence-browser.d.ts","sourceRoot":"","sources":["../../src/core/persistence-browser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD;;;;;;;;;GASG;AACH,qBAAa,kBAAmB,YAAW,kBAAkB;IAC3D,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,KAAK,CAA+B;IAC5C,OAAO,CAAC,QAAQ,CAAkB;IAClC,OAAO,CAAC,YAAY,CAA8C;IAClE,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,KAAK,CAAkB;gBAEnB,MAAM,GAAE,MAA0B,EAAE,OAAO,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE;IAKjF;;OAEG;IACI,KAAK,IAAI,IAAI;IAKpB;;OAEG;IACI,QAAQ,IAAI,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC;IAKnC;;OAEG;IACI,OAAO,IAAI,OAAO;IAIzB,OAAO,CAAC,WAAW;IAIZ,YAAY;IAiBnB,OAAO,CAAC,eAAe;IAkBvB,OAAO,CAAC,OAAO;IAkBT,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAKtC,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;IAMjD,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMvC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAIlC"}
|
|
@@ -2,14 +2,37 @@ import { type PersistenceAdapter } from "./persistence";
|
|
|
2
2
|
/**
|
|
3
3
|
* FileSystem Persistence Adapter
|
|
4
4
|
* Saves state to a JSON file on disk.
|
|
5
|
+
*
|
|
6
|
+
* Optimizations:
|
|
7
|
+
* - Lazy loading: only reads file when first needed
|
|
8
|
+
* - Optional debounced writes: batches multiple rapid changes (disabled by default)
|
|
9
|
+
* - Manual flush: explicit persist() call for immediate write
|
|
5
10
|
*/
|
|
6
11
|
export declare class FilePersistence implements PersistenceAdapter {
|
|
7
12
|
private filePath;
|
|
8
13
|
private cache;
|
|
9
14
|
private isLoaded;
|
|
10
|
-
|
|
15
|
+
private pendingWrite;
|
|
16
|
+
private writeDelay;
|
|
17
|
+
private dirty;
|
|
18
|
+
constructor(filePath: string, options?: {
|
|
19
|
+
writeDelay?: number;
|
|
20
|
+
});
|
|
21
|
+
/**
|
|
22
|
+
* Force immediate write to disk
|
|
23
|
+
*/
|
|
24
|
+
flush(): void;
|
|
25
|
+
/**
|
|
26
|
+
* Get the current cache (for debugging)
|
|
27
|
+
*/
|
|
28
|
+
getCache(): Map<string, any>;
|
|
29
|
+
/**
|
|
30
|
+
* Check if there are pending writes
|
|
31
|
+
*/
|
|
32
|
+
isDirty(): boolean;
|
|
11
33
|
private ensureLoaded;
|
|
12
|
-
private
|
|
34
|
+
private schedulePersist;
|
|
35
|
+
persist(): void;
|
|
13
36
|
loadState(): Promise<Map<string, any>>;
|
|
14
37
|
saveState(key: string, value: any): Promise<void>;
|
|
15
38
|
deleteState(key: string): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persistence.node.d.ts","sourceRoot":"","sources":["../../src/core/persistence.node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAIxD
|
|
1
|
+
{"version":3,"file":"persistence.node.d.ts","sourceRoot":"","sources":["../../src/core/persistence.node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAIxD;;;;;;;;GAQG;AACH,qBAAa,eAAgB,YAAW,kBAAkB;IACxD,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,KAAK,CAA+B;IAC5C,OAAO,CAAC,QAAQ,CAAkB;IAClC,OAAO,CAAC,YAAY,CAA8C;IAClE,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,KAAK,CAAkB;gBAEnB,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE;IAK/D;;OAEG;IACI,KAAK,IAAI,IAAI;IAKpB;;OAEG;IACI,QAAQ,IAAI,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC;IAKnC;;OAEG;IACI,OAAO,IAAI,OAAO;IAIzB,OAAO,CAAC,YAAY;IAgBpB,OAAO,CAAC,eAAe;IAkBhB,OAAO;IAqBR,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAKtC,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;IAMjD,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAMvC,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;CAIlC"}
|
|
@@ -15,8 +15,9 @@ export declare class RuleEngine extends TriggerEngine {
|
|
|
15
15
|
processEvent(context: TriggerContext): Promise<TriggerResult[]>;
|
|
16
16
|
/**
|
|
17
17
|
* Método convenience para procesar eventos simples
|
|
18
|
+
* Usa el método renombrado del padre
|
|
18
19
|
*/
|
|
19
|
-
processEventSimple(eventType: string, data?: Record<string, unknown>,
|
|
20
|
+
processEventSimple(eventType: string, data?: Record<string, unknown>, globals?: Record<string, unknown>): Promise<TriggerResult[]>;
|
|
20
21
|
/**
|
|
21
22
|
* Ejecuta acciones usando el ActionRegistry
|
|
22
23
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-engine-new.d.ts","sourceRoot":"","sources":["../../src/core/rule-engine-new.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAEV,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,MAAM,EACN,WAAW,
|
|
1
|
+
{"version":3,"file":"rule-engine-new.d.ts","sourceRoot":"","sources":["../../src/core/rule-engine-new.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAEV,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,MAAM,EACN,WAAW,EAEZ,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKjD,qBAAa,UAAW,SAAQ,aAAa;IAC3C,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,YAAY,CAAe;gBAEvB,MAAM,EAAE,gBAAgB;IASpC;;;OAGG;IACY,YAAY,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAmE9E;;;OAGG;IACY,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,EAAE,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAWzJ;;OAEG;YACW,8BAA8B;IAqD5C,OAAO,CAAC,aAAa;IAIrB;;OAEG;YACW,+BAA+B;IAyE7C;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAK3B;;OAEG;cACgB,eAAe,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAIzD;;OAEG;cACgB,iBAAiB,IAAI,OAAO;IAI/C;;OAEG;cACsB,kBAAkB,CACzC,YAAY,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,WAAW,EAC7C,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAI5C;;OAEG;cACsB,mBAAmB,CAC1C,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;CAGhD;AAGD,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,CAAC"}
|
|
@@ -1,48 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
/**
|
|
2
|
+
* RuleEngine - Extension of TriggerEngine with advanced features
|
|
3
|
+
* Adds observability, persistent state, and integrated ActionRegistry
|
|
4
|
+
*/
|
|
5
|
+
import type { TriggerContext, TriggerResult, RuleEngineConfig } from "../types";
|
|
6
|
+
import { TriggerEngine } from "./trigger-engine";
|
|
7
|
+
import { ActionRegistry } from "./action-registry";
|
|
8
|
+
import { StateManager } from "./state-manager";
|
|
9
|
+
export declare class RuleEngine extends TriggerEngine {
|
|
6
10
|
private actionRegistry;
|
|
11
|
+
private stateManager;
|
|
7
12
|
constructor(config: RuleEngineConfig);
|
|
8
13
|
/**
|
|
9
|
-
*
|
|
10
|
-
|
|
11
|
-
processEvent(eventType: string, data?: Record<string, unknown>, vars?: Record<string, unknown>): Promise<TriggerResult[]>;
|
|
12
|
-
processEventSimple(eventType: string, data?: Record<string, unknown>, vars?: Record<string, unknown>): Promise<TriggerResult[]>;
|
|
13
|
-
/**
|
|
14
|
-
* Evalúa todas las reglas contra el contexto proporcionado
|
|
14
|
+
* Evaluates all rules against the provided context
|
|
15
|
+
* This is the main entry point for evaluating rules with state management
|
|
15
16
|
*/
|
|
16
17
|
evaluateContext(context: TriggerContext): Promise<TriggerResult[]>;
|
|
17
|
-
private evaluateRuleConditions;
|
|
18
|
-
private evaluateRecursiveCondition;
|
|
19
|
-
private evaluateConditionGroup;
|
|
20
|
-
/**
|
|
21
|
-
* Evalúa una condición individual
|
|
22
|
-
*/
|
|
23
|
-
private evaluateSingleCondition;
|
|
24
|
-
private executeRuleActions;
|
|
25
|
-
/**
|
|
26
|
-
* Evaluate action-level condition (for if/then/else)
|
|
27
|
-
*/
|
|
28
|
-
private evaluateActionCondition;
|
|
29
|
-
/**
|
|
30
|
-
* Execute nested actions (then/else branches)
|
|
31
|
-
*/
|
|
32
|
-
private executeNestedActions;
|
|
33
|
-
private isActionGroup;
|
|
34
|
-
private executeSingleAction;
|
|
35
18
|
/**
|
|
36
|
-
*
|
|
19
|
+
* Processes an event with full context (overrides parent method)
|
|
20
|
+
* Adds observability and state management
|
|
21
|
+
* Can accept either a full TriggerContext or a string event type with data/vars
|
|
37
22
|
*/
|
|
38
|
-
|
|
23
|
+
processEvent(contextOrType: TriggerContext | string, data?: Record<string, unknown>, vars?: Record<string, unknown>): Promise<TriggerResult[]>;
|
|
39
24
|
/**
|
|
40
|
-
*
|
|
25
|
+
* Overrides getStateContext to use StateManager
|
|
41
26
|
*/
|
|
42
|
-
|
|
27
|
+
protected getStateContext(): Record<string, any>;
|
|
28
|
+
get ActionRegistry(): ActionRegistry;
|
|
43
29
|
/**
|
|
44
|
-
*
|
|
30
|
+
* Get the state manager instance
|
|
45
31
|
*/
|
|
46
|
-
|
|
32
|
+
get StateManager(): StateManager;
|
|
47
33
|
}
|
|
34
|
+
export { RuleEngine as AdvancedEngine };
|
|
48
35
|
//# sourceMappingURL=rule-engine.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-engine.d.ts","sourceRoot":"","sources":["../../src/core/rule-engine.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rule-engine.d.ts","sourceRoot":"","sources":["../../src/core/rule-engine.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAEV,cAAc,EACd,aAAa,EACb,gBAAgB,EAKjB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C,qBAAa,UAAW,SAAQ,aAAa;IAC3C,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,YAAY,CAAe;gBAEvB,MAAM,EAAE,gBAAgB;IASpC;;;OAGG;IACG,eAAe,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IA8BxE;;;;OAIG;IACY,YAAY,CACzB,aAAa,EAAE,cAAc,GAAG,MAAM,EACtC,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,EAClC,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GACjC,OAAO,CAAC,aAAa,EAAE,CAAC;IA0C3B;;OAEG;cACgB,eAAe,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAIzD,IAAI,cAAc,IAAI,cAAc,CAEnC;IAED;;OAEG;IACH,IAAI,YAAY,IAAI,YAAY,CAE/B;CACF;AAGD,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* TriggerEngine -
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* TriggerEngine - Base platform-agnostic engine
|
|
3
|
+
* Provides basic rule processing functionality
|
|
4
|
+
* Can be extended to add additional features
|
|
5
5
|
*/
|
|
6
6
|
import type { TriggerRule, TriggerContext, TriggerResult, Action, ActionGroup, RuleCondition, RuleEngineConfig, ActionParams, EngineActionHandler, ExecutedAction } from "../types";
|
|
7
7
|
export declare class TriggerEngine {
|
|
@@ -9,28 +9,25 @@ export declare class TriggerEngine {
|
|
|
9
9
|
protected actionHandlers: Map<string, EngineActionHandler>;
|
|
10
10
|
protected lastExecution: Map<string, number>;
|
|
11
11
|
protected _config?: RuleEngineConfig;
|
|
12
|
-
/**
|
|
13
|
-
* Constructor base - puede recibir reglas directamente o config
|
|
14
|
-
*/
|
|
15
12
|
constructor(rulesOrConfig?: TriggerRule[] | RuleEngineConfig);
|
|
16
13
|
/**
|
|
17
|
-
*
|
|
14
|
+
* Sorts rules by priority (highest first)
|
|
18
15
|
*/
|
|
19
16
|
protected sortRules(): void;
|
|
20
17
|
/**
|
|
21
|
-
*
|
|
18
|
+
* Registers a handler for a specific action type
|
|
22
19
|
*/
|
|
23
20
|
registerAction(type: string, handler: EngineActionHandler): void;
|
|
24
21
|
/**
|
|
25
|
-
*
|
|
22
|
+
* Processes an event with full context
|
|
26
23
|
*/
|
|
27
24
|
processEvent(context: TriggerContext): Promise<TriggerResult[]>;
|
|
28
25
|
/**
|
|
29
|
-
*
|
|
26
|
+
* Convenience method to process simple events
|
|
30
27
|
*/
|
|
31
28
|
processEventSimple(eventType: string, data?: Record<string, unknown>, vars?: Record<string, unknown>): Promise<TriggerResult[]>;
|
|
32
29
|
/**
|
|
33
|
-
*
|
|
30
|
+
* Updates the engine's rules
|
|
34
31
|
*/
|
|
35
32
|
updateRules(newRules: TriggerRule[]): void;
|
|
36
33
|
/**
|
|
@@ -38,45 +35,41 @@ export declare class TriggerEngine {
|
|
|
38
35
|
*/
|
|
39
36
|
private emitRuleEvent;
|
|
40
37
|
/**
|
|
41
|
-
*
|
|
38
|
+
* Gets all current rules
|
|
42
39
|
*/
|
|
43
40
|
getRules(): TriggerRule[];
|
|
44
41
|
/**
|
|
45
|
-
*
|
|
42
|
+
* Checks if a rule is in cooldown
|
|
46
43
|
*/
|
|
47
44
|
protected checkCooldown(ruleId: string, cooldown: number): boolean;
|
|
48
45
|
/**
|
|
49
|
-
*
|
|
46
|
+
* Determines whether to evaluate all rules or just the first match
|
|
50
47
|
*/
|
|
51
48
|
protected shouldEvaluateAll(): boolean;
|
|
52
49
|
/**
|
|
53
|
-
*
|
|
50
|
+
* Gets the state context (can be overridden by subclasses)
|
|
54
51
|
*/
|
|
55
52
|
protected getStateContext?(): Record<string, any>;
|
|
56
53
|
/**
|
|
57
|
-
*
|
|
54
|
+
* Evaluates rule conditions (overridable)
|
|
58
55
|
*/
|
|
59
56
|
protected evaluateConditions(condition: RuleCondition | RuleCondition[] | undefined, context: TriggerContext): boolean;
|
|
60
57
|
/**
|
|
61
|
-
*
|
|
58
|
+
* Evaluates a single condition (overridable)
|
|
62
59
|
*/
|
|
63
60
|
protected evaluateSingleCondition(cond: RuleCondition, context: TriggerContext): boolean;
|
|
64
61
|
/**
|
|
65
|
-
*
|
|
62
|
+
* Executes the actions of a rule
|
|
66
63
|
*/
|
|
67
|
-
protected executeRuleActions(actionConfig: Action | Action[] | ActionGroup, context: TriggerContext): Promise<ExecutedAction[]>;
|
|
64
|
+
protected executeRuleActions(actionConfig: Action | Action[] | ActionGroup | (Action | ActionGroup)[], context: TriggerContext): Promise<ExecutedAction[]>;
|
|
68
65
|
/**
|
|
69
|
-
*
|
|
66
|
+
* Executes a single action
|
|
70
67
|
*/
|
|
71
68
|
protected executeSingleAction(action: Action, context: TriggerContext): Promise<ExecutedAction>;
|
|
72
69
|
/**
|
|
73
|
-
*
|
|
70
|
+
* Interpolates parameters
|
|
74
71
|
*/
|
|
75
72
|
protected interpolateParams(params: ActionParams, context: TriggerContext): ActionParams;
|
|
76
|
-
/**
|
|
77
|
-
* Interpolación recursiva para objetos anidados
|
|
78
|
-
*/
|
|
79
|
-
protected interpolateDeep(obj: unknown, context: TriggerContext): unknown;
|
|
80
73
|
get rules(): TriggerRule[];
|
|
81
74
|
get config(): RuleEngineConfig | undefined;
|
|
82
75
|
set rules(newRules: TriggerRule[]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-engine.d.ts","sourceRoot":"","sources":["../../src/core/trigger-engine.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,WAAW,EACX,cAAc,EACd,aAAa,EACb,MAAM,EACN,WAAW,EACX,aAAa,EAGb,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EAKnB,cAAc,EACf,MAAM,UAAU,CAAC;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