Autonoma.Handler (Autonoma v0.2.8)

Copy Markdown View Source

Request routing for discover/up/down protocol actions.

Factory-driven design: every model in body.create must have a registered factory. The SDK uses the factory's input_fields both to validate inputs and to build the discover schema. Ordering for up and down comes from the create payload's _alias / _ref graph; there is no SQL introspection.

Summary

Functions

Substitute built-in tokens in field values: {{testRunId}}, {{index}}, {{cycle(a,b,c)}}. Raises Autonoma.Error with code UNRESOLVED_TOKEN for any other {{token}} that reaches the SDK.

Functions

handle(config, req)

resolve_tokens(value, test_run_id, index)

Substitute built-in tokens in field values: {{testRunId}}, {{index}}, {{cycle(a,b,c)}}. Raises Autonoma.Error with code UNRESOLVED_TOKEN for any other {{token}} that reaches the SDK.