Expand description
A dev build started by hand must not run on the real AgentMux home.
task dev gives each dev build a data home of its own (scripts/dev-home.mjs) and says so in
AGENTMUX_DEV_HOME_MODE (isolated or real) and AGENTMUX_HOME_OVERRIDE. A launcher or host
started by hand from a dev output folder (dist/cef-dev*, target/debug, target/release)
has neither, resolves ~/.agentmux, creates its dev/<branch>/<clone> folders there and
starts a srv on the person’s own home. This refuses that start with one plain line.
The way in on purpose is AGENTMUX_DEV_USE_REAL_HOME=1, the same switch task dev honours.
Structs§
- DevHome
Env - What the guard reads from the environment, as set values only (an empty value is unset).
Functions§
- refusal
- Why a dev build must not start, or
None.real_homeis the person’s own~/.agentmux. - refusal_
for_ process refusalfor this process when it runs from a dev build folder.exe_diris the binary’s folder.- refuse_
or_ continue - Exits with code 2 and one line on stderr when
refusal_for_processapplies. Call first, before anything creates a folder, opens a store or starts a child. - refuse_
or_ continue_ current_ exe refuse_or_continuefor the folder this binary runs from.