Skip to main content

Module wrangler

Module wrangler 

Expand description

wrangler.toml generation per Worker (v0.8 §4.4 / §4.5).

Each context becomes a Cloudflare Worker with its own wrangler config. Service Bindings are declared for every consumed context. Durable Object bindings + migrations are declared for every agent.

Functions§

agent_binding_name
Durable Object binding identifier for an agent class. We use the class name in screaming snake case so handlers can grab it by a predictable name (OrderEntityORDER_ENTITY).
consumed_binding_name
Service Binding identifier for a consumed context: uppercase with underscores. commerce.paymentCOMMERCE_PAYMENT.
emit_wrangler_toml