Skip to main content

Module export

Module export 

Source
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 command fields, which are absolute by necessity).

Structs§

ExportArgs
Arguments for mars export.
ExportDependency
One declared dependency from mars.toml.
ExportDiagnostic
One diagnostic in export output.
ExportEnvelope
Top-level export envelope.
ExportItem
One item in the compile plan (agent, skill, hook, mcp, etc.).
ExportOutput
One output record — where an item lands in the target.

Enums§

ExportStatus
Overall status of the compile plan.

Functions§

run
Run mars export.