Skip to main content

Module meta

Module meta 

Source
Expand description

Diagnostic / session-introspection natives.

Distinct from the 30 server-command bindings: these expose facts about the rpc channel itself (protocol version, authenticated user) that don’t pass through server::command::*. Useful as a connection sanity check the emacs client can call on connect to verify it’s talking to the right server, and as the smallest possible end-to-end proof that the host-fn dispatch path through SessionData works before any DB-touching native lands.

Constants§

PROTOCOL_VERSION
Wire-level protocol revision the server speaks. Bumped when an incompatible change to the request/response envelope or capture protocol ships. The emacs client can refuse to talk to a mismatched server.
REGISTERED_NATIVES
Names exposed via (<name>) in nomiscript. Not counted in the plan’s 30 server-command surface — this is a separate, smaller diagnostic surface that emacs / cli / tui all share.

Functions§

register
Returns the HostFnSpec list the nomiscript compiler needs in order to recognise the meta natives during compilation. Mirrors the linker registrations in register — both must stay in sync, hence one place.