continue
Resume from saved state. Reads anvil/state.json and picks up at the next incomplete task.
Resume an in-progress Anvil run from saved state.
- Read
anvil/state.jsonviacli/lib/io.jsreadFileUtf8. If the file does not exist, exit with{error: "no state to continue from", code: "E_STATE", details: {}}on stderr. - Load
anvil/contract.ymlviacli/lib/contract.jsloadAndValidate. - Load
anvil/plan.ymlviacli/lib/plan.jsloadAndValidate(path, contract). - Iterate the plan's waves in topological order. For the first task whose
state.tasks[task.id].statusis not'passed', invokenode "$CLAUDE_PLUGIN_ROOT/cli/anvil.js" run --task <id>. The dispatcher identifier defaults toanvil_subagent;state.run_idis preserved. - If every task is already
'passed', exit 0 with{ok: true, all_passed: true}on stdout. - If the resumed task fails, exit non-zero with the structured
E_VERIFYerror from the verifier propagated by theanvil runinvocation.