feat: REPL and CLI wiring; end-to-end capture-to-spec smoke test

This commit is contained in:
2026-06-01 01:18:14 +08:00
parent 7d5870bbb4
commit 591e646a6c
6 changed files with 274 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
from auto_reverse.cli import _parse_args
def test_parse_minimal():
cfg = _parse_args(["https://app.example.com"])
assert cfg.target_url == "https://app.example.com"
assert cfg.model == "claude-opus-4-8"
assert cfg.headless is False
def test_parse_scope_and_flags():
cfg = _parse_args(["https://x.com", "--scope", "a.com,b.com", "--headless", "--gen-client"])
assert cfg.scope_hosts == {"a.com", "b.com"}
assert cfg.headless is True
assert cfg.gen_client is True