Skip to content

2.2.0

Latest

Choose a tag to compare

@gabriellanata gabriellanata released this 26 Oct 20:33
· 3 commits to main since this release
93e602c

Agent errors are JSON with a code, so scripts and agents can handle them without reading the message.

Changes

  • The hammer tool prints failures as one JSON object on standard error, {"code", "error", "hint"}, like successful output. MCP tool errors carry the same object.
  • Errors have codes such as not_found, not_hittable, ambiguous_target, timed_out, unreachable and invalid_arguments, in the new AgentErrorBody.code.
  • Commands can report their own codes, like throw AgentError.failed("No test user", code: "unknown_user"). Code that pattern matches AgentError.invalidArguments or .failed needs a third value.
  • When the app drops the connection or times out, the hint says the command may have run, so check the app's state before running it again.

What's Changed

Full Changelog: 2.1.1...2.2.0