tools: unify eval and extract tool dispatching

- Add `callEvalLike` to consolidate tools returning `EvalResult`.
- Update `Agent` and `MCP` to use the new helper.
- Route failed data commands to stderr in `CommandExecutor`.
- Update CSS selector guidance in `script.zig`.
This commit is contained in:
Adrià Arrufat
2026-05-14 11:14:11 +02:00
parent faba86cf82
commit 9ac2c03a7e
5 changed files with 59 additions and 51 deletions

View File

@@ -76,6 +76,10 @@ pub const mcp_driver_guidance =
\\ distinguishing attributes like value, name, or position to avoid
\\ ambiguity. Example: input[type="submit"][value="login"], NOT just
\\ input[type="submit"].
\\- Use standard CSS selectors only. jQuery's `:contains()` and
\\ Playwright's `:has-text()` are not supported and raise a SyntaxError.
\\ To target by visible text, inspect with `tree` or `markdown` first to
\\ find the id/class/structure, then write a plain selector against that.
\\
\\Credentials:
\\- When filling credentials, pass environment variable references like