feat: change --timeout from milliseconds to seconds

Accept seconds (including decimals like 0.5) instead of milliseconds
for the --timeout flag. Converts to ms internally. Default is now 10
(seconds) instead of 10000. Error messages display seconds.

Update AGENTS.md, tests, and skill docs to match.
This commit is contained in:
2026-05-02 20:10:20 -04:00
parent 6adb5111de
commit d02df19469
3 changed files with 13 additions and 13 deletions

View File

@@ -30,7 +30,7 @@ Do not attempt a live Kagi test unless `KAGI_TOKEN` is available.
- Browser execution should be headless by default.
- Use `--no-headless` as the opt-out.
- Keep `--url=<server>` support for connecting to an existing WebDriver server.
- `--timeout=<ms>` is a top-level option for command waits and defaults to `10000`.
- `--timeout=<seconds>` is a top-level option for command waits and defaults to `10`.
- `--wait-js=<code>` and `--wait-until=<state>` are top-level wait options available to every `glimpse` subcommand.
- `--js=<code>` and `--script=<file>` are top-level options available to every `glimpse` subcommand and run before command-specific behavior.
- Prefer structured JSON output for objects/arrays.