mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-15 07:48:24 -04:00
c680feda35
Resolve the native-module import conditions (#pty, #fff, #photon-wasm, #shell-parser-wasm, #process-lock-ffi) to inert workerd stubs, so the module graph loads in a runtime with no subprocesses, FFI, or filesystem artifacts. Loopback OAuth servers import node:http lazily for the same reason, MCP gains an stdio flag for runtimes that cannot spawn local servers, and Global roots every path under one writable directory (tmp on workerd, OPENCODE_GLOBAL_ROOT anywhere).