Skip to content

chore(forge): pin forge at 7a7bdee, a tool for every body - #372

Merged
mattzcarey merged 2 commits into
mainfrom
forge-repin-bodies
Nov 1, 2026
Merged

mattzcarey merged 2 commits into
mainfrom
forge-repin-bodies

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

This pins forge at 7a7bdee on cloudflare/forge#71 and regenerates the forge tools (?codemode=false&experimentalForge=true) from the same spec release. Every method now gets a tool whatever its body's media type, so 26 are added, such as kv_keys_put, r2_objects_put, workers_legacy_scripts_update and analyticsEngine_sql_query.

A body is sent as fetch would send it. headers["content-type"] picks the media type when the body has several, or else the value does: a string goes as text, an object as JSON or multipart/form-data. A file part takes { content, filename?, contentType? }. Header names are lower case, and a declared Content-Type header now wins over the default, so R2 objects keep their type.

Blind agents on a local server, calling the real API, did KV with metadata, an R2 text object, an ES module Worker upload and an Analytics Engine query with no failed calls. A new worker test covers text and multipart KV writes. npm run check ran.

Forge now gives every method a tool whatever its body's media type, and
sends the body as fetch would: a content-type header argument picks the
media type, or else the value does (a string as text, an object as JSON
or multipart), and file parts take a filename and type. 26 tools are
added, such as KV and R2 writes and Worker uploads.
@mattzcarey mattzcarey changed the title chore(forge): pin forge at 30da0b3, a tool for every body chore(forge): pin forge at 7a7bdee, a tool for every body Nov 1, 2026
@mattzcarey
mattzcarey merged commit 4938f2f into main Nov 1, 2026
5 checks passed
@mattzcarey
mattzcarey deleted the forge-repin-bodies branch November 1, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant