Skip to content

feat(wasm): include Anthropic in the small browser profile - #5027

Merged
dgageot merged 1 commit into
mainfrom
feat/wasm-small-anthropic
Nov 24, 2026
Merged

dgageot merged 1 commit into
mainfrom
feat/wasm-small-anthropic

Conversation

@dgageot

@dgageot dgageot commented Nov 24, 2026

Copy link
Copy Markdown
Member

Summary

Include native Anthropic alongside OpenAI and OpenAI-compatible providers in the small browser build, so Claude sessions can be created without the full profile. Gemini and cloud providers remain excluded. Update the documentation, size budget, and offline session and dependency tests.

The optimized build is 34.37 MiB raw, 8.01 MiB gzip, and 5.46 MiB Brotli with Go 1.27.4 and Binaryen 132.

Validation

  • task build
  • task test
  • task lint
  • task test-wasm-js
  • task test-wasm-bridge

Signed-off-by: David Gageot <david.gageot@docker.com>
@dgageot
dgageot requested a review from a team as a code owner November 24, 2026 09:08
Copilot AI balanced review requested due to automatic review settings November 24, 2026 09:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the addition of Anthropic support to the small browser WebAssembly profile.

No open issues 🎉

What changed in this PR

Adds native Anthropic support to docker-agent’s small browser WebAssembly profile alongside OpenAI and OpenAI-compatible providers. Gemini and cloud providers remain excluded.

Changes:

  • Moves Anthropic registration into the shared browser provider registry.
  • Updates provider, offline session, and dependency checks for the expanded small profile.
  • Documents the roughly 34 MiB optimized build and raises its size budget to 37 MiB.
File Description
Taskfile.yml Includes shared provider tests in the small-profile test command.
e2e/​dependencies_test.go Allows Anthropic dependencies while enforcing excluded provider boundaries.
cmd/​wasm/​small.go Updates the profile comment to reflect Anthropic support.
cmd/​wasm/​small_test.go Updates rejected providers and checks provider-specific errors.
cmd/​wasm/​small_off.go Leaves Google and optional cloud registration profile-specific.
cmd/​wasm/​README.md Updates supported providers, build size, and registry documentation.
cmd/​wasm/​providers.go Registers Anthropic in every browser profile.
cmd/​wasm/​providers_test.go Makes shared provider tests selectable for the small profile.
cmd/​wasm/​node/​small_test.js Adds offline Anthropic session coverage and updates the size budget.

Review effort: Balanced

@aheritier aheritier added area/providers/anthropic For features/issues/fixes related to the usage of Anthropic models kind/feat PR adds a new feature (maps to feat:). Use on PRs only. labels Nov 24, 2026
@dgageot
dgageot added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit d1c1ea3 Nov 24, 2026
18 checks passed
@dgageot
dgageot deleted the feat/wasm-small-anthropic branch November 24, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/providers/anthropic For features/issues/fixes related to the usage of Anthropic models kind/feat PR adds a new feature (maps to feat:). Use on PRs only.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants