Expand description
mars export — produce a JSON representation of the compile plan.
Runs the same dry-run pipeline as mars validate but outputs structured
JSON describing the full compile plan: dependencies, items, outputs,
and diagnostics. Designed for tooling that needs to inspect what mars
would do without executing it.
Constraints:
- Read-only: no write-path side effects.
- No rendered file bodies in output — only metadata.
- No host-absolute paths in output except documented opaque command strings
(hook
commandfields, which are absolute by necessity).
Structs§
- Export
Args - Arguments for
mars export. - Export
Dependency - One declared dependency from mars.toml.
- Export
Diagnostic - One diagnostic in export output.
- Export
Envelope - Top-level export envelope.
- Export
Item - One item in the compile plan (agent, skill, hook, mcp, etc.).
- Export
Output - One output record — where an item lands in the target.
Enums§
- Export
Status - Overall status of the compile plan.
Functions§
- run
- Run
mars export.