Skip to content

Rename groups to namespaces - #87

Draft
Swimburger wants to merge 2 commits into
mainfrom
codex/rename-groups-namespaces
Draft

Swimburger wants to merge 2 commits into
mainfrom
codex/rename-groups-namespaces

Conversation

@Swimburger

Copy link
Copy Markdown
Contributor

Summary

  • rename Forge's native model vocabulary from groups to namespaces across Rust, TypeScript, the built-in generator, conformance docs, and OpenAPI metadata
  • move the plugin WIT from forge:plugin@0.3.0 to 0.4.0 with namespace-only names; prebuilt plugins must be rebuilt
  • keep deprecated Rust and TypeScript aliases where possible, plus input aliases for x-forge-group-name and nested groups in x-forge-commands
  • continue treating x-fern-sdk-group-name as Fern vocabulary and normalize it to x-forge-namespace

Generated SDK output remains unchanged. This implements the group → namespace portion of FORGE-3; stability remains separate.

Compatibility

  • Rust: deprecated Group, Forge::groups, Method::group, Model::group, Plugin::generate_group, and ts::Module::group forward to namespace APIs
  • TypeScript: deprecated Group, Forge.groups, Method.group, Model.group, generateGroup, and module.group forward where the WIT boundary permits it
  • OpenAPI: old native keys remain accepted, with canonical namespace keys taking precedence regardless of key order
  • WIT: intentionally breaking, with no group aliases

Tests

  • rustup run 1.99.0 cargo test --all-features
  • pnpm --filter @cloudflare/forge test
  • pnpm check
  • pnpm typecheck

@pkg-pr-new

pkg-pr-new Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
npm i https://pkg.pr.new/cloudflare/forge/@cloudflare/forge@87

commit: 01a2885

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