Skip to main content

Crate algocline_engine

Crate algocline_engine 

Source
Expand description

Lua strategy execution engine.

Owns the Session lifecycle (running / needs_response / completed), the Executor loop that drives Lua coroutines and mediates alc.llm() pauses, the FileCardStore for structured session artifacts, bridge modules that expose Rust-backed globals (alc.*) to Lua, and the resolver factory that wires strategies to LLM providers.

Re-exports§

pub use card::FileCardStore;
pub use session::ExecutionResult;
pub use session::FeedResult;
pub use session::PendingFilter;
pub use session::PromptProjection;
pub use session::Session;
pub use session::SessionRegistry;
pub use session::DEFAULT_PROMPT_PREVIEW_CHARS;
pub use state::JsonFileStore;

Modules§

bridge
Layer 0: Runtime Primitives
card
Card storage — immutable run-result snapshots.
card_context
Card context injection — resolves Card summaries for prompt injection.
execution
algocline-engine::execution — v2 execution module.
session
Session-based Lua execution with pause/resume on alc.llm() calls.
state
Persistent key-value state backed by JSON files.

Structs§

Executor
Lua execution engine.
LlmRequest
A batch of LLM queries from a single Lua call.
QueryRequest
A single query within an LlmRequest batch.
SessionDirs
Per-session storage roots resolved by the service layer.
VariantPkg
A variant-scoped package pinned to an explicit (name, pkg_dir) mapping.