Expand description
Condition evaluation — simple template-style equality / contains
/ truthy checks (evaluate_condition) and full Rhai expression
evaluation (evaluate_rhai_condition).
Extracted from repos/cli/src/playbook_runner.rs lines 771-911
in R-1.1 PR-2b per § H.10.3 of Appendix H of the global hybrid
cloud blueprint. Both the CLI’s tree walker and the worker’s
NATS-mode runner evaluate when / case conditions the same
way; this module is the shared implementation.
Structs§
- Condition
- Structured condition the worker carries on its NATS command
envelopes. Lifted from the worker’s pre-PR-2b
executor::case_evaluator::Condition.
Enums§
- Operator
- Operator for
evaluate_structured_condition.
Functions§
- evaluate_
condition - Evaluate a simple template-style condition. Supports:
- evaluate_
rhai_ condition - Evaluate a Rhai expression that returns a boolean condition.
- evaluate_
structured_ condition - Evaluate a structured condition against
ctx+ optional toolresult.