Skip to content

Add explorbot navigate CLI command#38

Merged
DavertMik merged 1 commit into
mainfrom
feat/navigate-cli-command
May 23, 2026
Merged

Add explorbot navigate CLI command#38
DavertMik merged 1 commit into
mainfrom
feat/navigate-cli-command

Conversation

@DavertMik
Copy link
Copy Markdown
Contributor

Summary

  • Adds explorbot navigate <url> as a CLI command. Exits 0 when the AI Navigator reaches the URL and 1 otherwise, so it can be used as a reachability probe in CI or as the canonical "capture an authenticated session" step (explorbot navigate /login --session) feeding downstream agents.
  • Reuses the existing NavigateCommand (already wired as /navigate in the TUI) — no behavior change to the TUI surface.
  • Restructures docs/commands.md to treat CLI as a first-class surface alongside TUI: comprehensive reference table at the top, every command section now shows both CLI and TUI invocations, and previously-undocumented CLI-only commands (shell, test, learn, init, clean, extract-rules) are now covered.

Test plan

  • bun install
  • bun run bin/explorbot-cli.ts navigate --help shows the new subcommand with all common options including --session
  • bun run bin/explorbot-cli.ts navigate /<reachable-path> --session exits 0 and writes output/session.json
  • bun run bin/explorbot-cli.ts navigate /<reachable-path> --session ./auth.json writes to the custom session path
  • Re-running with the captured session reuses cookies (skips login)
  • bun run bin/explorbot-cli.ts navigate /this-page-does-not-exist-xyzzy exits 1
  • TUI /navigate still works inside explorbot start
  • bun run format && bun run lint:fix clean

🤖 Generated with Claude Code

Exposes the AI Navigator as a one-shot CLI command. Exits 0 when the
target URL is reached and 1 otherwise, so it can be used as a
reachability probe in CI. Inherits --session and all common options,
making it the canonical way to capture an authenticated session for
downstream agents in a single command.

Also restructures docs/commands.md to treat CLI as a first-class
surface alongside TUI: a comprehensive reference table, per-command
sections showing both invocations side by side, and coverage of the
previously-undocumented CLI-only commands.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@DavertMik DavertMik merged commit e019dae into main May 23, 2026
2 checks passed
@DavertMik DavertMik deleted the feat/navigate-cli-command branch May 23, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant