Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/anomalyco/opencode
/ preload.ts
File
preload.ts
packages/opencode/test/preload.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
// IMPORTANT: Set env vars BEFORE any imports from src/ directory
2
// xdg-basedir reads env vars at import time, so we must set these first
3
import
os from
"os"
4
import
path from
"path"
Callers
nothing calls this directly
Calls
3
initProjectors
Function · 0.85
rm
Function · 0.70
dispose
Method · 0.45
Tested by
no test coverage detected