Repository navigation
wirefox 0.3.2
Patch release focused on hardening.
Fixed
openai()now defaults tohttps://api.openai.com/v1instead ofhttps://openai.com, so the adapter works without an explicit base URL.- Malformed JSON in tool call arguments no longer rejects the whole run. The adapter records the parse failure and the agent returns it to the model as a structured tool error, so the loop can recover.
- Hardened the OpenAI adapter response handling: non-2xx responses include status and body, empty or missing
choicesthrow a clear error, malformed JSON bodies are reported as such,finish_reasonoflengthandcontent_filterthrow descriptive errors, multiple choices use the choice with index 0, and tool calls with a missing function name are rejected with a clear message. createAgent()now validates the tools it receives. Duplicate names, missing names, missingparameters, and raw tool objects without anexecutefunction are rejected with a clearTypeErrorinstead of failing later in the loop.
Packaging and metadata
- Version aligned to 0.3.2 across
package.json,jsr.json, and the previously stalepackage-lock.json. repository.urlnow points tohttps://github.com/ARO-FIA/wirefox, matching the README.- Added
engines.nodeset to>=20. - Publish workflow now installs, builds, publishes to npm with provenance through OIDC, then publishes to JSR.
Upgrade
npm install wirefox@0.3.2