MCPcopy Index your code
hub / github.com/anomalyco/opencode / create

Function create

packages/opencode/test/control-plane/workspace.test.ts:192–199  ·  view source on GitHub ↗
(info, env, from)

Source from the content-addressed store, hash-verified

190 return input.configure?.(info) ?? info
191 },
192 async create(info, env, from) {
193 calls.create.push({
194 info: structuredClone(info),
195 env: { ...env },
196 from: from ? structuredClone(from) : undefined,
197 })
198 await input.create?.(info, env, from)
199 },
200 ...(input.list
201 ? {
202 async list() {

Callers

nothing calls this directly

Calls 2

pushMethod · 0.80
createMethod · 0.65

Tested by

no test coverage detected