This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 9/16/2026.
Bridge.affordances
~import std/bridge.affordancesKoru Standard Library: the possession-shaped callable surface on the
bridge.affordances.kz · 1 tors
Koru Standard Library: the possession-shaped callable surface on the · 18 more lines
Koru Standard Library: the possession-shaped callable surface on the
bridge. Joined via `~part affordances` in bridge.kz; merged into the
bridge module at load.
AFFORDANCES - the callable surface, possession-shaped (the HATEOAS rooms)
`vocabulary` is the static surface: everything the scope declares. This is
the live half: what you may call GIVEN the handles you currently hold —
the answer to "given note_0, what can I do next?" Each live handle knows
the event that created it (`created_by_event`); the scope's events declare
which resources they consume (`!open`); a call is legal now iff every
resource it requires is held. The render leads with the held state, then
the callable subset of the vocabulary, then the session's inventions
(always callable — their bodies enforce possession at dispatch).
Same arena discipline as vocabulary: the returned string is page-backed
and intentionally never freed — it outlives this call and lands in the
caller's prompt buffer.
affordances
koru_std/bridge.affordances.kz:22// Koru Standard Library: the possession-shaped callable surface on the
// bridge. Joined via `~part affordances` in bridge.kz; merged into the
// bridge module at load.
//
// AFFORDANCES - the callable surface, possession-shaped (the HATEOAS rooms)
//
// `vocabulary` is the static surface: everything the scope declares. This is
// the live half: what you may call GIVEN the handles you currently hold —
// the answer to "given note_0, what can I do next?" Each live handle knows
// the event that created it (`created_by_event`); the scope's events declare
// which resources they consume (`!open`); a call is legal now iff every
// resource it requires is held. The render leads with the held state, then
// the callable subset of the vocabulary, then the session's inventions
// (always callable — their bodies enforce possession at dispatch).
//
// Same arena discipline as vocabulary: the returned string is page-backed
// and intentionally never freed — it outlives this call and lands in the
// caller's prompt buffer.
~pub tor affordances { br: *Bridge }
| ok string
| not-found string