Skip to main content

Module repl

Module repl 

Source
Expand description

REPL surface facade.

Structs§

ReplFrame
Repl output frame.
ReplSession
REPL session model.
ReplShutdownContract
Stable REPL shutdown contract.
ReplStartupContract
Stable REPL startup contract.

Enums§

ReplError
REPL runtime errors.
ReplEvent
Result of processing a REPL input event.
ReplInput
Input event for interactive session loop.
ReplStream
REPL emission stream.

Constants§

REPL_MEMORY_BUDGET_BYTES
REPL memory budget in bytes.
REPL_STARTUP_LATENCY_BUDGET_MS
REPL startup latency budget in milliseconds.

Functions§

benchmark_startup_latency
Benchmark average startup latency over N iterations.
check_repl_budgets
Check REPL runtime budgets.
completion_candidates
Provide command completion candidates for built-ins and plugin hooks.
configure_history
Configure history persistence behavior.
estimated_session_memory_bytes
Approximate REPL session memory use in bytes.
execute_repl_input
Execute one REPL input event with interrupt/EOF-safe behavior.
execute_repl_line
Backward-compatible one-line execution adapter.
flush_history
Flush history to persistent storage if enabled.
inspect_last_error
Return last error message captured by REPL session.
load_history
Load history into the current session if enabled.
register_completion_registry
Register extension completion registry entries under an owner key.
register_plugin_completion_hook
Register plugin completion hook for a namespace.
render_repl_command_reference
Render stable REPL command reference text.
repl_argv_from_line
Build argv using the same tokenization path REPL execution uses.
replay_history_command
Replay a command from history by index.
session_diagnostics_dump
Dump structured REPL diagnostics.
shutdown_repl
Shutdown REPL session and emit stable contract.
startup_repl
Startup REPL session using the same policy precedence and routing registry as CLI.
startup_repl_with_diagnostics
Startup REPL with startup diagnostics for preflight issues.