MCPcopy Create free account
hub / github.com/anomalyco/opencode / make

Function make

packages/opencode/src/cli/cmd/run/demo.ts:440–449  ·  view source on GitHub ↗
(state: State, tool: string, input: Record<string, unknown>)

Source from the content-addressed store, hash-verified

438}
439
440function make(state: State, tool: string, input: Record<string, unknown>): Ref {
441 return {
442 msg: open(state),
443 part: take(state, "part", "part"),
444 call: take(state, "call", "call"),
445 tool,
446 input,
447 start: Date.now(),
448 }
449}
450
451function startTool(state: State, ref: Ref, metadata: Record<string, unknown> = {}): void {
452 feed(state, {

Callers 9

emitBashFunction · 0.70
emitWriteFunction · 0.70
emitEditFunction · 0.70
emitPatchFunction · 0.70
emitTaskFunction · 0.70
emitTodoFunction · 0.70
emitQuestionToolFunction · 0.70
emitPermissionFunction · 0.70
emitQuestionFunction · 0.70

Calls 2

openFunction · 0.70
takeFunction · 0.70

Tested by

no test coverage detected