Expand description
haz init per AUX-001..AUX-008.
Two invocation shapes are normative:
haz init(bare): the interactive scaffold flow (AUX-003..AUX-005). The pure state-machine layer of the interactive tree lives inmodel, the AUX-005 / AUX-006 commit pass incommit, and the ratatui driver intui. On confirmation,commit::apply_commitwrites the planned files; declines exit0without changes perAUX-005step 4;Ctrl+Caborts with the EXEC-021 signal-interrupt code.haz init --yes: writes a minimal<cwd>/.haz/workspace.ymlcontaining exactlyprojects: []perAUX-007. The body is constructed as an emptycommit::CommitPlanand shipped through the samecommit::apply_commitcode path the interactive arm uses, so both shapes share the rename-into-place pattern (AUX-006).
Both shapes refuse to overlay an existing .haz/ per
AUX-002.
Modules§
- commit
- Commit pass for
haz initperAUX-005..AUX-006. - model
- Interactive-tree state machine for
haz initperAUX-003..AUX-005. - tui
- Interactive scaffold TUI for
haz initperAUX-003..AUX-005.
Functions§
- execute
- Execute
haz initagainstcwd.