# @cloudflare/codemode@0.5.4

Category: agent-infrastructure
Published: 2026-10-13T13:28:27Z
Source: [Cloudflare Agents SDK releases](https://github.com/cloudflare/agents/releases/tag/%40cloudflare%2Fcodemode%400.5.4)
Agent usefulness: 77/100
Confidence: 0.96
Content mode: release-watch
Verified: 2026-10-13T16:17:32.334Z
Tags: cloudflare, agents-sdk, edge-runtime

## Human Summary
Cloudflare's @cloudflare/codemode package was updated to version 0.5.4, improving tool schema resolution and output type reflection.

## Agent 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() .

## Body
@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.

## Recommended actions
- 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.

## Sponsors
No sponsor placement attached.

## Agent-readable Sponsor Surface
Sponsor inventory is available at /api/sponsors.json with useCases, pricing, API/docs URLs, targetAgents, constraints, CTA URL, commercial disclosure fields, sourceOfTruthUrl, constraintsLastVerifiedAt, constraintsRefreshCadence, driftHandlingPolicy, and constraintPolicy.