Skip to main content

Module target_sync

Module target_sync 

Source
Expand description

Target sync — copy content from .mars/ canonical store to managed targets.

After apply_plan() writes resolved content to .mars/agents/ and .mars/skills/, this module copies that content to all configured target directories (.agents/, .claude/, etc.).

All targets are managed outputs — they get copies (not symlinks) of .mars/ content.

Structs§

ManagedTarget
A directory that mars manages — materialized from .mars/.
TargetSyncOutcome
Result of syncing content to a single target directory.

Functions§

sync_managed_targets
Sync all managed targets from .mars/ canonical store.