trigger_system 1.2.6 → 1.3.0

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.
Files changed (38) hide show
  1. package/README.md +2 -12
  2. package/dist/browser/index.browser.js +116 -116
  3. package/dist/browser/index.browser.js.map +19 -20
  4. package/dist/core/action-registry.d.ts +1 -8
  5. package/dist/core/action-registry.d.ts.map +1 -1
  6. package/dist/core/constants.d.ts +2 -18
  7. package/dist/core/constants.d.ts.map +1 -1
  8. package/dist/core/engine-utils.d.ts.map +1 -1
  9. package/dist/core/event-queue.d.ts.map +1 -1
  10. package/dist/core/expression-engine.d.ts +0 -1
  11. package/dist/core/expression-engine.d.ts.map +1 -1
  12. package/dist/core/index.d.ts +2 -2
  13. package/dist/core/index.d.ts.map +1 -1
  14. package/dist/core/persistence.d.ts +0 -1
  15. package/dist/core/persistence.d.ts.map +1 -1
  16. package/dist/core/rule-engine.d.ts +0 -12
  17. package/dist/core/rule-engine.d.ts.map +1 -1
  18. package/dist/core/trigger-engine.d.ts +56 -6
  19. package/dist/core/trigger-engine.d.ts.map +1 -1
  20. package/dist/core/vars-context.d.ts +138 -0
  21. package/dist/core/vars-context.d.ts.map +1 -0
  22. package/dist/lsp/hover-constants.d.ts.map +1 -1
  23. package/dist/node/index.js +135 -135
  24. package/dist/node/index.js.map +20 -21
  25. package/dist/node/node.js +140 -140
  26. package/dist/node/node.js.map +20 -21
  27. package/dist/sdk/builder.d.ts +2 -2
  28. package/dist/sdk/builder.d.ts.map +1 -1
  29. package/dist/sdk/graph/action-resolver.d.ts.map +1 -1
  30. package/dist/sdk/graph/condition-resolver.d.ts.map +1 -1
  31. package/dist/sdk/graph-parser.d.ts +15 -1
  32. package/dist/sdk/graph-parser.d.ts.map +1 -1
  33. package/dist/sdk/yaml/converter.d.ts.map +1 -1
  34. package/dist/sdk/yaml/types.d.ts +0 -1
  35. package/dist/sdk/yaml/types.d.ts.map +1 -1
  36. package/dist/types.d.ts +1 -3
  37. package/dist/types.d.ts.map +1 -1
  38. package/package.json +3 -2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Agnostic Trigger System
2
2
 
3
- An advanced, event-driven rule engine for creating dynamic, stateful logic in any TypeScript/Bun application.
3
+ An advanced, event-driven rule engine for creating dynamic, conditional logic in any TypeScript/Bun application.
4
4
 
5
5
  ## 📚 Documentation Directory
6
6
 
@@ -36,17 +36,9 @@ _Technical details on classes, interfaces, and types._
36
36
  _How the system works under the hood._
37
37
 
38
38
  - System Diagram
39
- - Core Components (Loader, Engine, Expression, State)
39
+ - Core Components (Loader, Engine, Expression)
40
40
  - Data Flow
41
41
 
42
- ### [⚡ Stateful Triggers](./docs/STATEFUL_TRIGGERS.md)
43
-
44
- _Guide to advanced logic like counters, sequences, and combos._
45
-
46
- - Accessing `state` in rules
47
- - Modifying state (`STATE_SET`, `STATE_INCREMENT`)
48
- - Examples (Repetition Goals, Combo Sequences)
49
-
50
42
  ### [🛠️ Developer Tools](./docs/developer_tools.md)
51
43
 
52
44
  _Tools to help you build and debug rules._
@@ -70,7 +62,6 @@ _Learn by doing with progressive tutorials._
70
62
  - 1.0 Basic Rule
71
63
  - 1.1 Multiple Conditions
72
64
  - 1.2 Advanced Operators
73
- - 1.3 Stateful Counters
74
65
  - 1.4 Action Groups
75
66
  - 2.0 SDK Usage
76
67
  - 2.1 Dynamic Rule Updates
@@ -161,5 +152,4 @@ do:
161
152
  - **Protocol Agnostic**: Works with HTTP, WebSockets, Game Events, CLI, etc.
162
153
  - **Hot Reloading**: Edit rules in YAML and see changes instantly.
163
154
  - **Type-Safe**: Built with TypeScript and ArkType for robust validation.
164
- - **Stateful**: Memories and counters allow for complex behaviors.
165
155
  - **Smart Validation**: LSP disabled by default to avoid false positives; activates via directives or rule heuristics.