Skip to content

Add workerd-native module execution for Agent Container#10

Merged
eersnington merged 6 commits intomainfrom
feat/workerd-module-execution
Apr 24, 2026
Merged

Add workerd-native module execution for Agent Container#10
eersnington merged 6 commits intomainfrom
feat/workerd-module-execution

Conversation

@eersnington
Copy link
Copy Markdown
Owner

Summary

Adds workerd-native module execution to Agent Container, replacing snippet-style eval with explicit module sources and an export-based run(ctx) contract.

Changes

  • Add session.run(input, options?) for inline code and workspace path entrypoints
  • Preserve the workerd module graph for static relative imports
  • Transpile TS/TSX per file with esbuild
  • Support native workerd module kinds: JS/TS/TSX, JSON, text, and Wasm
  • Move compatibility flags to session configuration
  • Add structured invocation input
  • Preserve guest error details via WorkerdRunError
  • Update README and e2e harness for the new API

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
agent-container Skipped Skipped Apr 24, 2026 11:34am

@eersnington eersnington merged commit c95a7c6 into main Apr 24, 2026
6 checks passed
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