Skip to content

@sebasoft/neuron-js


Defined in: interfaces/HookEvents.ts:5

Enumeration of all lifecycle events emitted during script execution. These can be used with a HookEmitter to monitor performance, log data, or handle side effects.

Enumeration Members

ON_ACTION_END

ON_ACTION_END: "pre_action_end"

Defined in: interfaces/HookEvents.ts:21

Emitted after an action execution completes.


ON_ACTION_ERROR

ON_ACTION_ERROR: "on_action_error"

Defined in: interfaces/HookEvents.ts:29

Emitted if an error occurs during action execution.


ON_ACTION_START

ON_ACTION_START: "pre_action_start"

Defined in: interfaces/HookEvents.ts:13

Emitted before an action starts execution.


ON_CONDITION_END

ON_CONDITION_END: "pre_condition_end"

Defined in: interfaces/HookEvents.ts:19

Emitted after a condition evaluation completes.


ON_CONDITION_ERROR

ON_CONDITION_ERROR: "on_condition_error"

Defined in: interfaces/HookEvents.ts:27

Emitted if an error occurs during condition evaluation.


ON_CONDITION_START

ON_CONDITION_START: "pre_condition_start"

Defined in: interfaces/HookEvents.ts:11

Emitted before a condition starts evaluation.


ON_RULE_END

ON_RULE_END: "on_rule_end"

Defined in: interfaces/HookEvents.ts:17

Emitted when a rule finishes evaluation (regardless of outcome).


ON_RULE_ERROR

ON_RULE_ERROR: "on_rule_error"

Defined in: interfaces/HookEvents.ts:25

Emitted if an error occurs while evaluating a specific rule.


ON_RULE_START

ON_RULE_START: "on_rule_start"

Defined in: interfaces/HookEvents.ts:9

Emitted when a specific rule begins evaluation.


ON_SCRIPT_END

ON_SCRIPT_END: "pre_script_end"

Defined in: interfaces/HookEvents.ts:15

Emitted when a script successfully completes all rules.


ON_SCRIPT_ERROR

ON_SCRIPT_ERROR: "on_script_error"

Defined in: interfaces/HookEvents.ts:23

Emitted if an unhandled error occurs during script execution.


ON_SCRIPT_START

ON_SCRIPT_START: "on_script_start"

Defined in: interfaces/HookEvents.ts:7

Emitted when the execution of a script starts.