Skip to main content

Module devbox

Module devbox 

Source
Expand description

Devbox activation projection: a SEA model becomes a devbox.json that pre-loads the domain manifest (namespace, entities, resources, flows) as environment variables and prints a banner on shell entry, so a developer running devbox shell lands in a reproducible environment that already knows what architecture it is hosting.

packages is intentionally empty: the SEA model declares what exists in a domain, not the language/tooling needed to build it (that is stack-specific and inventing nix package names from Buyer/Supplier would make the file fail to install). Developers add the packages their stack needs on top of this manifest.

Output is a single devbox.json (JSONC; Devbox parses the leading // comment). Serialization goes through serde_json’s sorted Map, so the output is byte-identical run-to-run for a fixed model.

Constants§

OUTPUT_FILE
The single emitted artifact’s relative path.

Functions§

emit
Emit the Devbox config into sink; returns the emitted relative paths.
project_devbox_in_memory
Binding surface: string in, path→content map out, no filesystem.