Expand description
vanta-shim — the per-tool dispatcher (see docs/10-environments.md).
Installed under each tool’s name in ~/.vanta/bin. When invoked it finds the
tool that its argv[0] names in the active generation, locates the real
binary in the store, and execs it. (Per-directory switching via a
resolution cache is a later refinement; this cut dispatches from the active
generation.)
Functions§
- dispatch
- Resolve
namein the active generation, locate its real binary in the store, andexecit withargs. Returns the child exit code (non-unix) or only returns on failure (unixexecreplaces the process). - run
- Entry point: derive the tool name from
argv[0], dispatch, and map failures to an error exit code. The binary’smainis a thin wrapper over this.