Expand description
Transport-agnostic RPC layer for nomisync.
Carries S-expression frames between any client (emacs over SSH, in-process CLI/TUI,
future single-binary embedded-postgres) and the canonical native function registry.
See doc/emacs-rpc.org for the protocol spec and the plan file for design rationale.
Re-exports§
pub use ctx::EpochBumper;pub use ctx::InterruptHandle;pub use ctx::ScriptCtx;pub use ctx::ScriptLimits;pub use draft::DraftSplit;pub use draft::DraftTag;pub use draft::TransactionDraft;pub use envelope::EnvelopeError;pub use envelope::ErrorCode;pub use envelope::Frame;pub use envelope::Request;pub use envelope::RequestId;pub use envelope::Response;pub use envelope::ResponsePayload;pub use envelope::format_response;pub use envelope::read_frame;pub use envelope::with_notices;pub use framing::FrameDecoder;pub use framing::FrameError;pub use framing::MAX_FRAME_BYTES;pub use response::expr_to_value;pub use response::parse_notices;pub use response::parse_response;pub use response::try_expr_to_value;pub use script::ScriptError;pub use script::compile_script;pub use script::create_script;pub use script::update_script_source;pub use session::EvalOutcome;pub use session::Session;pub use template::TemplateError;pub use template::compile_template;pub use template::render_template;pub use template::validate_source;
Modules§
- account_
order - The account path and the picker order every client shows.
- chart
- The one chart of a report: the adapter of the outcome’s report, with the options the web draws its charts with.
- ctx
- draft
- Transaction-draft accumulator for render-only template execution.
- envelope
- forms
- Typed client-form operations. The natives and the web decode their input, call these and encode the result; they own the behaviour.
- framing
- host_
failure - Typed marker for native failures that originate in host infrastructure.
- host_
prelude - Host-dependent nomiscript prelude (ADR-0029).
- lookup_
log - Record of the entity lookups a script performs, for the reference preflight.
- mux
- One connection, several nomiscript streams (ADR-0036).
- natives
- Canonical host-fn registry for the 32 server commands.
- option_
labels - The one rule turning entity names into picker labels.
- plist
- Readers for keyword plists decoded from script payloads.
- preflight
- Form preflight: opens every stored transaction and template in the form the way the clients do, and saves each transaction unchanged. The saves commit: run it on a disposable restored copy only.
- references
- Reference preflight: lists every stored template and declared source that names an account or commodity other than by id, path or symbol that resolves uniquely, and shows the trigger host resolves no names. It only reads, so it may run on a live tenant as well as on a restored copy.
- response
- Response parsing: the inverse of
super::envelope::format_response. - script
- Script compile entry: automation source to the stored bytecode.
- session
- status
- The one table from a failure to the HTTP status every web path answers with.
- template
- Template render entry point.
- wasm
- Re-export shim for the wasmtime primitives. Every consumer (Session, natives, future sshd integration) imports through this module so swapping the underlying implementation never touches more than one path.