Runtime and process-management helpers for Codex artifact generation.
This crate has two main responsibilities:
- locating, validating, and optionally downloading the pinned artifact runtime
- spawning the artifact build or render command against that runtime
src/client.rsRuns build and render commands once a runtime has been resolved.src/runtime/manager.rsDefines the release locator and the package-manager-backed runtime installer.src/runtime/installed.rsLoads an extracted runtime from disk and validates its manifest and entrypoints.src/runtime/js_runtime.rsChooses the JavaScript executable to use for artifact execution.src/runtime/manifest.rsManifest types for release metadata and extracted runtimes.src/runtime/error.rsPublic runtime-loading and installation errors.src/tests.rsCrate-level tests that exercise the public API and integration seams.
ArtifactRuntimeManagerResolves or installs a runtime package into~/.codex/packages/artifacts/....load_cached_runtimeReads a previously installed runtime from a caller-provided cache root without attempting a download.is_js_runtime_availableChecks whether artifact execution is possible with either a cached runtime or a host JS runtime.ArtifactsClientExecutes artifact build or render requests using either a managed or preinstalled runtime.