ReplServer
Typed REPL-server vocabulary built on the locked runtime.* algebra.
Smart constructor
replServer.define { protocol; mode; registration?; port?; portEnvVar?; interface?; lifecycle?; enable?; shortLivedFlags?; extra?; }proxies tomb.operations.replServer. Port andportEnvVardefault from the protocol'sdefaultPort/portEnvVar. Registration defaults frommodevia the inference ruleForeground → ServiceSpec,Background → XDG. Lifecycle defaults toLongRunning.Closed-sum re-exports for consumer ergonomics:
Mode = Foreground | Background,Registration = XDG | Global | ServiceSpec | None,Lifecycle = LongRunning | OneShot.Built-in protocols as typed
ProtocolSpecvalues:protocols.{swank,nrepl,dap}. Each carries a baselineCapabilitySetoflifecycleonly; consumers extend viacapabilitySet { categories = [...] }. The legacy string-keyed taxonomy (universal/common/discovery/...) is intentionally absent.
Registration backend names map to runtime conventions:
XDG → $XDG_RUNTIME_DIR/repl/<protocol>/<name>.json,
Global → $XDG_RUNTIME_DIR/repl/<protocol>/shared/<name>.json,
ServiceSpec → discovery via NixOS configuration,
None → no automatic registration.