MCPcopy
hub / github.com/anomalyco/opencode / register

Function register

packages/opencode/src/plugin/index.ts:155–157  ·  view source on GitHub ↗
(type: string, adapter: PluginWorkspaceAdapter)

Source from the content-addressed store, hash-verified

153 directory: ctx.directory,
154 experimental_workspace: {
155 register(type: string, adapter: PluginWorkspaceAdapter) {
156 registerAdapter(ctx.project.id, type, adapter as WorkspaceAdapter)
157 },
158 },
159 get serverUrl(): URL {
160 return Server.url ?? new URL("http://localhost:4096")

Callers

nothing calls this directly

Calls 1

registerAdapterFunction · 0.90

Tested by

no test coverage detected