Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/anomalyco/opencode
/ usePluginRuntime
Function
usePluginRuntime
packages/tui/src/plugin/runtime.tsx:77–81 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
75
}
76
77
export function usePluginRuntime() {
78
const runtime = useContext(Context)
79
if (!runtime) throw new Error(
"usePluginRuntime must be used within PluginRuntimeProvider"
)
80
return runtime
81
}
Callers
4
App
Function · 0.90
Home
Function · 0.90
Sidebar
Function · 0.90
Session
Function · 0.90
Calls
1
useContext
Function · 0.85
Tested by
no test coverage detected