Commit Graph
4 Commits
Author SHA1 Message Date
Willie f919bfb7ae feat(runbook): bash executor with stdout/stderr capture and timeout
Execute() runs step commands via bash -e -c, captures stdout/stderr
separately, extracts exit codes via syscall.WaitStatus, and handles
context timeout/cancellation. Merged code blocks (---) are joined
before execution. Six tests cover echo, exit codes, multiline,
timeout, stderr capture, and merged blocks.
2026-03-11 04:53:08 +08:00
Willie c848309c78 feat(runbook): step classifier categorizes auto/manual execution 2026-03-11 04:53:08 +08:00
Willie 173c09d67b feat(runbook): markdown parser extracts steps, code blocks, and expected assertions
Line-by-line state machine parser (bufio.Scanner + regex) that handles all
17 real E2E runbook files. Supports multiple heading formats (## Step N,
### N., ### Nb., double-labeling), multi code blocks per step (merged with
\n---\n separator), Expected/bold-Expected variants, inline markdown
stripping, and stops at Pass/Fail Criteria sections.
2026-03-11 04:53:08 +08:00
Willie b2a9ebbaab feat(tools): scaffold runbook test runner with types 2026-03-11 04:53:08 +08:00