Skip to content

Telo v0.114.0

Choose a tag to compare

@github-actions github-actions released this 10 Oct 08:04
4761218

Packages

Package Version
@telorun/cli 0.114.0
@telorun/analyzer 0.114.0
@telorun/cel 0.114.0
@telorun/ide-support 0.114.0
@telorun/kernel 0.114.0
@telorun/language-server 0.114.0
@telorun/sdk 0.114.0
@telorun/templating 0.114.0

Minor

A context binding can be typed from a list the resource's own accessor names. x-telo-context-element-from-item: "<field>" on an x-telo-context property types that binding as the element of the collection the enclosing array item's <field> points at, where the field holds a plain chain rooted at another binding of the same context (or at inputs). A kind whose entries each name their rows (rows: !cel "result.files") gets row typed per entry, so a member the element does not declare is CEL_UNKNOWN_FIELD in the columns beneath it. A chain that cannot be followed to a collection leaves the binding untyped and reports nothing. x-telo-context-element-from is unchanged. — analyzer

A rule reads an accessor field as its binding. In x-telo-resource-rules and x-telo-referrer-rules alike, every declaration a rule binds — self, this, a declaration reached through resolve:, referrer, peers, entry, and an inline declaration beneath any of them — is read with each x-telo-eval: accessor field as what its controller receives: { root, path } for a !cel chain, { value } for a literal. Before, such a field read as an expression not known until creation, so every rule reading one, and every resolve: or peers: over a collection whose entries hold one, reported RESOURCE_RULE_SKIPPED / REFERRER_RULE_SKIPPED and never ran. A skip remains for a value that really is computed: an expression in a compile- or runtime-evaluated field the rule reads, one in an entry's own data beside a reference, and an accessor field holding anything but a plain chain or a literal. BREAKING for a rule that read a LITERAL at an accessor field: it now reads { value: <literal> } rather than the literal itself. The binding is written by one function, exported from the analyzer as withAccessorBindings, which the kernel now delivers a controller's accessor fields with (what a controller receives is unchanged). In a template body's entry, an accessor field holding an expression that reads only self is read by a rule as a literal of unknown value — { value }, never { root: "self", … } — so a rule reading that inner value is skipped. — analyzer, kernel

Patch

A !cel argument is typed where the target's input is derived from a type it names. An input contract node carrying x-telo-value-schema-from resolves to an allOf of the types reached, and the walk pairing each expression with its slot read a node's own properties only — so every expression beneath such a node met an empty slot and a mistyped one reported nothing, an accessor chain included. A member or an item is now read from every allOf conjunct that declares it: an expression whose type a reached type refuses is CEL_TYPE_ERROR at the argument, naming the target's declared inputType, and a leaf several conjuncts declare is reported once. A manifest passing an expression of the wrong type to such a target, which failed at dispatch with ERR_INPUT_INVALID, is now refused by telo check. — analyzer

  • @telorun/cel@0.114.0
  • @telorun/templating@0.114.0

Changelogs: cli · analyzer · cel · ide-support · kernel · language-server · sdk · templating