Skip to main content

Module transform

Module transform 

Source
Expand description

Transform block: shapes a list or an object with a chain of operations in a restricted expression language, and runs no code (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md §3.9; the evaluator is drone/transform.rs).

data.input is a template for what to shape: one {{...}} token gives the value itself (a list, an object), anything else gives text. data.ops is the chain, such as [{"op": "filter", "expr": "item.state == 'open'"}, {"op": "count"}]. The output is { "value": <result> }, and its taint bits follow the chain: tainted in, tainted out, except a count, sum, min, max or exists, which cannot carry text and come out derived.

Functions§

run