Expand description
Runtime cookbook: operations for SIM.
This lib exposes the sim_cookbook engine as registered runtime
operations over a shared recipe store: cookbook:books|chapters|list|show| setup|search|next|reload (ungated) and cookbook:run (read-eval gated,
decodes a recipe’s setup through its codec, evaluates it, and checks
declared expectations).
The engine stays in sim-cookbook (kernel-free); this crate holds the
kernel integration so the boundary stays clean. CLI, WebUI, browse/help,
and agent cookbook surfaces should call these operations or the same seeded
store helpers instead of creating a second projection path.
Structs§
- Cookbook
Lib - The cookbook lib, holding the shared recipe store the ops read.
- Cookbook
Op - A registered cookbook operation over a shared recipe store.
- Cookbook
Store Handle - A runtime value that exposes the shared recipe store to projection layers.
Enums§
- OpKind
- Which cookbook operation a
CookbookOpperforms.
Constants§
- SEEDED_
RECIPE_ BOOKS - Seed books embedded by crates that currently ship first-pass recipes.
Functions§
- decode_
setup - Decode a recipe’s setup to an
Exprwithout evaluating it (cookbook:setup). - install_
cookbook_ lib - Install the cookbook lib over
store(idempotent). - install_
seeded_ cookbook_ lib - Install the cookbook runtime over the embedded seed recipe store.
- manifest_
name - The lib id:
sim:cookbook. - missing_
requires - Lib ids in
card.requiresthat are not currently loaded. - op_
exports - The
cookbook:*function exports. - require_
eval_ capability - Error unless the runtime holds the read-eval capability.
- run_
recipe - Run a recipe end to end. Hard errors (missing requires, unknown codec,
undecodable setup) return
Err; an evaluation error is captured asok == falsewith empty results so the caller still sees aRecipeRun. - seeded_
recipe_ store - Build a store populated from the embedded seed recipe books.
- store_
symbol - The registered value holding the shared cookbook store handle.