Liking cljdoc? Tell your friends :D

com.blockether.vis.contract.gateway

Gateway payload schemas and their HTTP transport metadata.

Gateway payload schemas and their HTTP transport metadata.
raw docstring

agent-rolesclj

The roles of the agent of a session.

The roles of the agent of a session.
sourceraw docstring

bus-limitsclj

Bounds of the signal bus: the topic and pattern regexes and their longest texts in characters, the largest data in UTF-8 bytes of JSON and the signals that can wait for one subscriber.

Bounds of the signal bus: the topic and pattern regexes and their longest texts in
characters, the largest data in UTF-8 bytes of JSON and the signals that can wait
for one subscriber.
sourceraw docstring

bus-scopesclj

The scopes of a signal: global reaches each subscriber of the extension, and session only the subscribers in the session of the publisher.

The scopes of a signal: `global` reaches each subscriber of the extension, and
`session` only the subscribers in the session of the publisher.
sourceraw docstring

client-leaseclj

Remote lease lifetime and keepalive policy.

Remote lease lifetime and keepalive policy.
sourceraw docstring

command-request?clj

(command-request? text)

True when text can run only as its own turn: a slash command (/name …) or a bang shell line (!cmd, !&cmd). The engine dispatches both at turn start, so a delivery into a running turn cannot run them. A bare ! is prose.

True when `text` can run only as its own turn: a slash command (`/name …`) or a
bang shell line (`!cmd`, `!&cmd`). The engine dispatches both at turn start, so a
delivery into a running turn cannot run them. A bare `!` is prose.
sourceraw docstring

default-queued-turn-deliverclj

Delivery mode of a queued turn that nobody marked.

Delivery mode of a queued turn that nobody marked.
sourceraw docstring

default-session-group-colorclj

Palette token a group takes when the client names none.

Palette token a group takes when the client names none.
sourceraw docstring

elided-eventclj

(elided-event event reason)

Keep the sequence and resource identity, never the omitted body.

Keep the sequence and resource identity, never the omitted body.
sourceraw docstring

error-bodyclj

(error-body type message extra)

Build the canonical JSON error body; caller extras retain their existing override semantics.

Build the canonical JSON error body; caller extras retain their existing override semantics.
sourceraw docstring

event-typesclj

All event names on session, dedicated-job and relay-push streams.

All event names on session, dedicated-job and relay-push streams.
sourceraw docstring

handshakeclj

(handshake {:keys [version build]})

Build the engine handshake from schema protocol numbers and runtime release identity.

Build the engine handshake from schema protocol numbers and runtime release identity.
sourceraw docstring

job-event-typesclj

All dedicated job-stream event names.

All dedicated job-stream event names.
sourceraw docstring

job-eventsclj

Directional event names carried by dedicated speech job streams.

Directional event names carried by dedicated speech job streams.
sourceraw docstring

journal-pidclj

(journal-pid event)
source

journal-producerclj

(journal-producer event)
source

journal-stored?clj

(journal-stored? event)
source

match-routeclj

(match-route uri)

The built-in route that uri matches, as [route params], or nil. params maps each path parameter keyword to its segment.

The built-in route that `uri` matches, as `[route params]`, or nil.
`params` maps each path parameter keyword to its segment.
sourceraw docstring

max-decision-archive-bytesclj

Largest supported decision archive, in compressed bytes.

Largest supported decision archive, in compressed bytes.
sourceraw docstring

max-decision-expanded-bytesclj

Largest supported decision archive after extraction, in bytes.

Largest supported decision archive after extraction, in bytes.
sourceraw docstring

max-preview-image-bytesclj

Largest picture that one file preview answers, in bytes.

Largest picture that one file preview answers, in bytes.
sourceraw docstring

minimum-client-protocolclj

Oldest client protocol served by this gateway.

Oldest client protocol served by this gateway.
sourceraw docstring

minimum-gateway-protocolclj

Oldest gateway protocol accepted by this client.

Oldest gateway protocol accepted by this client.
sourceraw docstring

newer-release?clj

(newer-release? a b)

True when release a is STRICTLY newer than release b, compared segment by segment as numbers (0.1.10 > 0.1.9) with the shorter one zero-padded, so 0.2 and 0.2.0 are the same release rather than being ranked by length.

A version without order - dev, a checkout, nil, anything [[version-parts]] cannot read - is neither newer nor older. That is deliberate: it makes the comparison one-directional and total, so a source build never decides that a released daemon is stale and two builds can never bounce each other in turn.

True when release `a` is STRICTLY newer than release `b`, compared segment by
segment as numbers (`0.1.10` > `0.1.9`) with the shorter one zero-padded, so
`0.2` and `0.2.0` are the same release rather than being ranked by length.

A version without order - `dev`, a checkout, nil, anything [[version-parts]]
cannot read - is neither newer nor older. That is deliberate: it makes the
comparison one-directional and total, so a source build never decides that a
released daemon is stale and two builds can never bounce each other in turn.
sourceraw docstring

newer-session-goalclj

(newer-session-goal previous incoming)

Keep the highest valid session-wide revision across HTTP snapshots and event replay. Goal replacement increments revision too; invalid, absent and older snapshots cannot rewind it.

Keep the highest valid session-wide revision across HTTP snapshots and event replay.
Goal replacement increments revision too; invalid, absent and older snapshots cannot rewind it.
sourceraw docstring

notification-levelsclj

Levels of a notification toast, in schema order.

Levels of a `notification` toast, in schema order.
sourceraw docstring

notification-limitsclj

Bounds of the optional notification toast fields: title and id length in characters, and the [minimum maximum] duration in milliseconds.

Bounds of the optional `notification` toast fields: title and id length in
characters, and the `[minimum maximum]` duration in milliseconds.
sourceraw docstring

notification-scopesclj

Scopes of a notification toast: session shows in its session, global in every session.

Scopes of a `notification` toast: `session` shows in its session, `global` in every session.
sourceraw docstring

observation?clj

(observation? _method operation)

True when the operation records no Activity. This does not grant access.

True when the operation records no Activity. This does not grant access.
sourceraw docstring

operationclj

(operation method path)

Request/response transport declaration for built-in method and path, or nil.

Request/response transport declaration for built-in `method` and `path`, or nil.
sourceraw docstring

protocol-versionclj

Wire protocol spoken by this schema.

Wire protocol spoken by this schema.
sourceraw docstring

push-event-typesclj

Event names used by relay push payloads.

Event names used by relay push payloads.
sourceraw docstring

queue-mirror-event-typesclj

Queue lifecycle events mirrored by attached channels.

Queue lifecycle events mirrored by attached channels.
sourceraw docstring

queued-turn-deliver-next-iterationclj

Delivery mode of a queued turn marked to send at the running turn's next step.

Delivery mode of a queued turn marked to send at the running turn's next step.
sourceraw docstring

queued-turn-deliver-valuesclj

Delivery modes of a queued turn. turn_end starts it as its own turn after the running turn ends; next_iteration delivers it into the running turn at its next step.

Delivery modes of a queued turn. `turn_end` starts it as its own turn after the
running turn ends; `next_iteration` delivers it into the running turn at its next
step.
sourceraw docstring

route-methodsclj

(route-methods)

Exact built-in [method path] pairs declared by the schema's HTTP metadata.

Exact built-in `[method path]` pairs declared by the schema's HTTP metadata.
sourceraw docstring

route-operationsclj

Complete [method path] to request/response transport declaration.

Complete `[method path]` to request/response transport declaration.
sourceraw docstring

route-tableclj

Complete built-in gateway route table, one record per path.

Complete built-in gateway route table, one record per path.
sourceraw docstring

session-event-payloadsclj

The $defs name of the payload schema of each session event type: the fields that the event has after its envelope.

The `$defs` name of the payload schema of each session event type: the fields
that the event has after its envelope.
sourceraw docstring

session-event-schemaclj

Schema number stamped onto every session event.

Schema number stamped onto every session event.
sourceraw docstring

session-event-type?clj

(session-event-type? event-type)

True when event-type belongs to the closed session-stream vocabulary.

True when `event-type` belongs to the closed session-stream vocabulary.
sourceraw docstring

session-event-typesclj

Closed built-in vocabulary carried by the session journal and multiplexed SSE stream.

Closed built-in vocabulary carried by the session journal and multiplexed SSE stream.
sourceraw docstring

session-goal-labelsclj

Display titles of the canonical goal status schema alternatives.

Display titles of the canonical goal status schema alternatives.
sourceraw docstring

session-group-color?clj

(session-group-color? color)

True when color is one of the closed group palette tokens.

True when `color` is one of the closed group palette tokens.
sourceraw docstring

session-group-colorsclj

Closed palette tokens a session group may be painted with, in the order a picker offers them. A channel maps a token to its own theme, so a group reads the same in the TUI, the companion app and the web UI.

Closed palette tokens a session group may be painted with, in
the order a picker offers them. A channel maps a token to its own theme, so a
group reads the same in the TUI, the companion app and the web UI.
sourceraw docstring

session-group-swatchesclj

The hue that each session-group palette token paints, as an RGB triple. A group stores the TOKEN, so every channel fills it from this one table. A group keeps its colour when the theme changes, so these hues belong to no theme palette. clojure -X:companion-themes ships them to the companion.

The hue that each session-group palette token paints, as an RGB triple. A group
stores the TOKEN, so every channel fills it from this one table. A group keeps
its colour when the theme changes, so these hues belong to no theme palette.
`clojure -X:companion-themes` ships them to the companion.
sourceraw docstring

settled-turn-eventclj

(settled-turn-event turn turn-id)

Recover the end of a wait from its stored row when the event is not in the replay.

Recover the end of a wait from its stored row when the event is not in the replay.
sourceraw docstring

shown-session-goalclj

(shown-session-goal goal)

The goal that a person or the model may see, or nil. A cleared goal was forgotten: it stays only so that newer-session-goal keeps its revision.

The goal that a person or the model may see, or nil. A cleared goal was forgotten: it
stays only so that `newer-session-goal` keeps its revision.
sourceraw docstring

speech-job-eventclj

Speech synthesis job stream event name.

Speech synthesis job stream event name.
sourceraw docstring

stamp-journal-lineclj

(stamp-journal-line event producer pid store?)

Add private producer metadata to one already-stamped session event.

Add private producer metadata to one already-stamped session event.
sourceraw docstring

stamp-session-eventclj

(stamp-session-event payload session-id sequence timestamp type)

Apply the schema identity stamp after payload, so payload keys cannot spoof it.

Apply the schema identity stamp after `payload`, so payload keys cannot spoof it.
sourceraw docstring

strip-journal-metadataclj

(strip-journal-metadata event)

Remove private journal metadata before an event reaches a session consumer.

Remove private journal metadata before an event reaches a session consumer.
sourceraw docstring

subscription-ready-eventclj

(subscription-ready-event
  {:keys [session-id cursor current-turn-id is-live server-time-ms
          latest-iteration goal agent-name agents team-clocks tasks tasks-seq]})

Build the canonical first frame for one session subscription.

Build the canonical first frame for one session subscription.
sourceraw docstring

terminal-turn-resultclj

(terminal-turn-result event fallback-turn-id lookup-turn)

Build the blocking submit/attach result for one terminal session event.

Terminal events are lean, so lookup-turn, called with the event's session id and turn id (fallback-turn-id when the event names none), supplies the settled turn row that owns the content and meta; it may answer nil. Event-carried meta wins over the row, and the event's own content stands in when the row has none, so a failure still renders when the lookup races the terminal event. A suspended turn reports needs_input; a failed one carries error from its first error block, the event, or a generic message. A queued turn that was sent into the running turn reports sent with into_turn_id and iteration. A deleted queued turn has no row; it reports deleted instead.

Build the blocking submit/attach result for one terminal session event.

Terminal events are lean, so `lookup-turn`, called with the event's session id
and turn id (`fallback-turn-id` when the event names none), supplies the settled
turn row that owns the content and meta; it may answer nil. Event-carried meta
wins over the row, and the event's own content stands in when the row has none,
so a failure still renders when the lookup races the terminal event. A suspended
turn reports `needs_input`; a failed one carries `error` from its first error
block, the event, or a generic message. A queued turn that was sent into the
running turn reports `sent` with `into_turn_id` and `iteration`. A deleted
queued turn has no row; it reports `deleted` instead.
sourceraw docstring

turn-execution-terminal-statusesclj

Turn record statuses that end model execution.

Turn record statuses that end model execution.
sourceraw docstring

turn-meta-keysclj

Wire fields copied from a settled turn into blocking submit/attach results.

Wire fields copied from a settled turn into blocking submit/attach results.
sourceraw docstring

turn-settled-statusesclj

Turn record statuses that end a wait, including delivery into another turn.

Turn record statuses that end a wait, including delivery into another turn.
sourceraw docstring

turn-stream-event-typesclj

Built-in event types that stream a running turn's body. The turn's transcript supersedes them once it settles.

Built-in event types that stream a running turn's body. The turn's transcript
supersedes them once it settles.
sourceraw docstring

turn-terminal-event-typesclj

Every built-in event type that ends a turn.

Every built-in event type that ends a turn.
sourceraw docstring

turn-wait-event-reasonsclj

Wait end reasons for events that do not end model execution.

Wait end reasons for events that do not end model execution.
sourceraw docstring

valid-session-goal?clj

(valid-session-goal? goal)

True for a canonical wire goal. A session without a goal carries nil instead.

True for a canonical wire goal. A session without a goal carries nil instead.
sourceraw docstring

verdictclj

(verdict {:keys [gateway-protocol gateway-min-client gateway-version
                 client-protocol client-min-gateway client-version
                 client-name]})

Pure compatibility verdict between a gateway and a client.

Reasons are ok, client-too-old, gateway-too-old, or unknown when a peer did not advertise a protocol. :upgrade names the half that must be updated.

:behind names the half running the OLDER release when both halves advertise an ordered version (newer-release?): a compatible pair where one side simply has not been updated yet, which is the only way either half learns that a newer Vis exists at all.

Pure compatibility verdict between a gateway and a client.

Reasons are `ok`, `client-too-old`, `gateway-too-old`, or `unknown` when a peer
did not advertise a protocol. `:upgrade` names the half that must be updated.

`:behind` names the half running the OLDER release when both halves advertise an
ordered version ([[newer-release?]]): a compatible pair where one side simply has
not been updated yet, which is the only way either half learns that a newer Vis
exists at all.
sourceraw docstring

view-close-eventclj

Session event that ends either View kind.

Session event that ends either View kind.
sourceraw docstring

view-eventsclj

Open, patch and close event names for both View kinds.

Open, patch and close event names for both View kinds.
sourceraw docstring

view-open-eventclj

Session event that mounts either View kind.

Session event that mounts either View kind.
sourceraw docstring

view-patch-eventclj

Session event carrying accepted View operations.

Session event carrying accepted View operations.
sourceraw docstring

voice-job-eventclj

Transcription job stream event name.

Transcription job stream event name.
sourceraw docstring

wire->handshakeclj

(wire->handshake m)

Read a peer's advertised handshake from its canonical string-keyed wire map. Missing fields remain nil so verdict rejects an unversioned peer explicitly.

Read a peer's advertised handshake from its canonical string-keyed wire map.
Missing fields remain nil so [[verdict]] rejects an unversioned peer explicitly.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close