x07-bundle
x07-bundle
Use x07 bundle to produce a native executable that can be run directly on the target machine without the X07 toolchain installed at runtime.
x07 bundle runs the canonical auto-repair loop by default (--repair=...), so it can format/lint/apply quickfixes before compiling. Use --repair=off when debugging.
Canonical commands
-
Bundle an OS-world CLI executable:
x07 bundle --project x07.json --profile os --out dist/app- run it:
./dist/app --help - if bundling fails with
fuel exhausted, override:x07 bundle --project x07.json --profile os --solve-fuel 500000000 --out dist/app
-
Bundle a policy-enforced OS-world executable:
x07 bundle --project x07.json --profile sandbox --out dist/app- requires a base policy (via
profiles.sandbox.policyor--policy)
Runtime ABI
The bundled executable:
- reads standard process args (
argc/argv) - encodes them into
argv_v1input bytes - calls the compiled program entrypoint (
x07_solve_v2) - writes program output bytes directly to stdout (no framing)
Emit artifacts (debug / CI)
x07 bundle ... --emit-dir dist/emit- emits
report.json,program.freestanding.c,wrapper.main.c, andbundle.combined.c - for
run-os-sandboxed, also emitspolicy.used.json
- emits
Report contract
x07 bundle prints a machine JSON report to stdout:
schema_version: "x07.bundle.report@0.2.0"reportcontains the underlying runner report used to compile the native artifact
More from x07lang/x07-website
x07-os-run
Expert backend for run-os / run-os-sandboxed execution via x07-os-runner. Prefer `x07 run --profile os` / `x07 run --profile sandbox`.
10x07-test
Run project tests using the X07 test harness (x07 test), producing a machine-readable JSON report.
9x07-package
Manage X07 project dependencies and lockfiles for reproducible builds (lock, publish). Designed for autonomous agents.
9x07-lint-repair
Lint X07 x07AST JSON and converge via quickfixes (`x07 fix`) or explicit JSON Patch (`x07 ast apply-patch`).
9x07-ffi-c
Emit C output and a C header for embedding X07 in C/C++ via `x07 build --emit-c-header`.
8x07-agent-playbook
Agent-first workflow and design rails for building X07 programs with the released toolchain (no repo-only dependencies). Canonical execution is via `x07 run`.
8