Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/anomalyco/opencode
/ define
Function
define
packages/core/src/plugin/internal.ts:59–61 ·
view source on GitHub ↗
(plugin: Plugin<R>)
Source
from the content-addressed store, hash-verified
57
}
58
59
export
function
define<R>(plugin: Plugin<R>) {
60
return
plugin
61
}
62
63
const
layer = Layer.effectDiscard(
64
Effect.gen(
function
* () {
Callers
15
models-dev.ts
File · 0.90
command.ts
File · 0.90
skill.ts
File · 0.90
agent.ts
File · 0.90
variant.ts
File · 0.90
togetherai.ts
File · 0.90
xai.ts
File · 0.90
openai.ts
File · 0.90
groq.ts
File · 0.90
cohere.ts
File · 0.90
snowflake-cortex.ts
File · 0.90
nvidia.ts
File · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected