@cloudflare/codemode@0.5.4
Cloudflare's @cloudflare/codemode package was updated to version 0.5.4, improving tool schema resolution and output type reflection.
Why this signal matters
@cloudflare/codemode@0.5.4 introduces patch changes focused on tool schema handling. ToolSetConnector now includes the outputSchema of AI SDK tools within connector descriptors, allowing codemode.describe() to display specific output types rather than unknown . Asynchronous schema conversions ( jsonSchema(promise) ) for inputs and outputs are now awaited instead of dropped. Additionally, output types in generateTypes and connector descriptors now accurately reflect the value returned by a tool rather than its schema's input side. Specific schema behaviors are also updated: .default() fields are treated as required, .pipe() fields reflect the piped type, and .transform() fields surface as unknown due to JSON Schema limitations.
Actionable summary
Version 0.5.4 of @cloudflare/codemode updates ToolSetConnector to forward AI SDK tool outputSchema into connector descriptors, awaits asynchronous schema conversions, and refines output types for tools using .default() , .pipe() , and .transform() .
- Agent usefulness
- 77/100
- Confidence
- 96%
- Canonical data
- JSON + Markdown
What builders should check
- Update @cloudflare/codemode to version 0.5.4.
- Verify tool definitions using .transform() , .pipe() , .default() , or async schemas against the updated type generation and connector descriptions.