Repository navigation
Telo v0.122.0
Packages
| Package | Version |
|---|---|
@telorun/cli |
0.122.0 |
@telorun/analyzer |
0.122.0 |
@telorun/cel |
0.122.0 |
@telorun/ide-support |
0.122.0 |
@telorun/kernel |
0.122.0 |
@telorun/language-server |
0.122.0 |
@telorun/message-format |
0.122.0 |
@telorun/sdk |
0.122.0 |
@telorun/templating |
0.122.0 |
Minor
telo module versions <ref> --digests reports each version with the change-detection digest telo module digest prints for it, read in one process with bounded concurrency; --json writes [{ version, digest }]. A version whose digest cannot be read is reported as { version, error } and named on stderr, so one unreadable tag does not hide the others. Without the flag the output is unchanged. — cli
telo check judges what an expression's value is known to be, not only its CEL type's base: a list's element type against the slot's items, a map's value type against its members, and — read off the expression itself — a list literal's elements, a map literal's keys and values, a module call's declared result, the elements both sides of a list + contribute, and either branch of ?:. A literal tool message without toolCallId concatenated onto a function's message history is now CEL_TYPE_ERROR at the argument rather than ERR_INPUT_INVALID at run, and a conflict lying wholly beneath a value type's type argument is CEL_TYPE_ARGUMENT_MISMATCH. Union slots are read with their shared keywords applied to every branch. The schema comparison now also refuses a value whose listed values (const / enum) a slot allows none of, and a member the value always carries where the slot declares it false; a required member whose own schema declares a default is read as filled where an expression fills a resource's field or a call's argument, as the runtime fills defaults there before validating — never in a comparison against an ancestor's contract, which nothing fills. — analyzer
A module variable or secret declared type: integer or type: number now holds that representation for every reader, at the root Application and in every Library import — whether the value came from a default, the environment, the command line, a literal an importer wrote or an importer's own variable (an integer, as long as int64 can hold it). !cel "variables.boost * 20" used to pass telo check and fail at run with no overload of "*" takes (double, int); it now runs. Two imports of a lifecycle: shared library supplying the same integer in different spellings (a literal and a forwarded variable) now agree. — analyzer, cel, kernel, sdk
A number written literally in a pure value: step now reads in CEL as the same number written in CEL would: an int when it is integral and within int64, a double otherwise — as the whole value and at any depth of a literal map or list. value: 3 then !cel "steps.count.result * 2" used to pass telo check and fail at run with no overload of "*" takes (double, int); it now runs. The rule reads the value, not its spelling, so 3.0 and 1e3 are ints, and an integral number outside int64 (1e30) stays a double. A number a !cel or !interpolate member computes is left as computed.
telo check types steps.<name>.result of a literal step by the same rule: a literal map is a closed record, and a list is typed by its elements when they all agree. So that such a record still meets a map across a condition, the CEL type join now reads a record as the string-keyed map it is: a record against a map, or against a record of another shape, joins to map<string, …> over their value types — cond ? steps.flags.result : {'ok': true} checks — where the branches used to be refused as not one type; a record against a scalar or a list is still refused.
Behaviour changes:
- A declared integer variable or secret is an int64 for every reader, not only for CEL, so a controller handed
!cel "variables.x"at a config slot receives an int64 (aBigInt) where it used to receive a plain number. A controller doing arithmetic on such a slot reads it withintegerInputfrom@telorun/sdk. value: 3thensteps.count.result * 2.0ran before and is now refused —CEL_TYPE_ERRORfromtelo check, andtelo runrefuses the manifest at load. Writevalue: !cel "3.0"for a double 3, or multiply by an int.- A literal step's result is typed, so an expression that only worked because it was untyped is a static error:
value: 3.5then* 2,value: 3then+ "a", a literal string passed to a function that takes a number. - A literal step's result no longer meets
nullin a condition:has(steps.x) ? steps.x.result : nullover a literal-map step isCEL_TYPE_ERROR, astrue ? 1 : nullalways was. Writehas(steps.x) ? dyn(steps.x.result) : null. - A member a literal map does not hold is
CEL_UNKNOWN_FIELD—steps.flags.result.misspelled, and also underhas(steps.flags.result.absent), which used to answerfalse. steps.<name>.resultis typed only when every step of that name produces the same type, where the last step written used to type the name alone. A pair that disagrees (then: value: 3/else: value: !cel "2.5") is untyped, and an expression step reads its own name as what the other steps of that name produce: a loop seedvalue: 0advanced with!cel "steps.i.result + 1.0"is refused by both halves — write+ 1.- A misspelled step name in a body with a
value:step is reported once, as"frist" is not declared here (declared: …), where it was reported twice in two wordings. - A literal step's integers reach a controller as an int64 when forwarded —
value: 5000thentimeoutMs: !cel "steps.t.result"hands the controller aBigIntwhere it received a plain number. A controller reads such a slot withintegerInputfrom@telorun/sdk. - A durable run resumed from a journal written before this change replays the double it recorded for a literal step, not an int.
value: !cel "self.<field>"in a step body a templated kind declares — in a body entry or in awith:member nested in one — or abase:mapping builds for its parent, is now evaluated when the step runs rather than resolved once when the instance is created, as is any expression inside a step'svalue:there. A number the instance supplies is therefore never read as one written in the step:ratio: 3declaredtype: numberstays a double.
x-telo-value-schema-from accepts a list of locations — [/toolProviders/*/provider/contextType, /resolver/contextType] — each element any form a single location takes (a field name, a JSON Pointer with *, or { from, member }). The value must satisfy every type every element reaches, on a configuration slot and inside inputType / outputType alike, at telo check and at dispatch; an element reaching nothing contributes nothing. An empty list, or an element that is no location, is VALUE_SCHEMA_FROM_INVALID at the kind and ERR_VALUE_SCHEMA_FROM_INVALID when the kernel registers it, naming the element. — analyzer, kernel
Patch
A named shape that names another shape — with !ref, telo://Self/<Type> or the canonical telo:<Module>/<Type> — is now read beneath that reference by telo check, at call sites and by every validator, as the kernel already reads it: a literal violating the nested shape (a tool call with no id inside a message) is reported where it is written. A nested !ref that names nothing is reported once, as SCHEMA_TYPE_REF_UNRESOLVED at the shape. — analyzer
A resource or referrer rule is reported as over its evaluation budget only when a subject is left unjudged: the budget is checked before the next evaluation, so one slow evaluation of the last subject (a cold first call on a loaded machine) no longer reports a rule that checked everything as stopped. — analyzer
A named shape a library exports is read by its importers exactly as when it is not exported: its own !refs resolve in its declaring module and the shapes they name are carried with it. Before, exporting such a shape left its references unresolved, so an importer's call sites against a contract naming it were silently unchecked, or telo check aborted with an uncoded "does not compile where it stands" error when a value slot typed by it held an expression beside a failing union. The stand-in judge also resolves a reference exactly as the whole-schema validation did. — analyzer
The stand-in judge's schema-node validator now requires a resolveReference hook, and the kernel supplies one answering from its primary validator — so a union decided through a schema only the primary instance holds is judged at resource creation instead of failing with "does not compile where it stands". — analyzer, kernel
Changelogs: cli · analyzer · cel · ide-support · kernel · language-server · message-format · sdk · templating