MCPcopy 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
77export 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

AppFunction · 0.90
HomeFunction · 0.90
SidebarFunction · 0.90
SessionFunction · 0.90

Calls 1

useContextFunction · 0.85

Tested by

no test coverage detected