feat(cli): implement CLI entry point with auto-daemon launcher (Task 18)

- Add auto-daemon.ts: ensureDaemonRunning() checks health, reads pidfile,
  spawns daemon if needed, polls health up to 3s
- Rewrite index.ts: commander-based CLI with all subcommands (health,
  open, list, get, kill, navigate, click, type, scroll, eval, wait,
  screenshot, text, html, profiles)
- Add daemon project reference to cli tsconfig
This commit is contained in:
2026-08-12 21:24:07 +08:00
parent 4f387b5ae7
commit b843eea9ae
3 changed files with 206 additions and 3 deletions
+1 -1
View File
@@ -5,5 +5,5 @@
"rootDir": "./src"
},
"include": ["src"],
"references": [{ "path": "../core" }]
"references": [{ "path": "../core" }, { "path": "../daemon" }]
}