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

Function submit

packages/opencode/test/cli/run/runtime.queue.test.ts:70–75  ·  view source on GitHub ↗
(text: string, mode?: RunPrompt["mode"])

Source from the content-addressed store, hash-verified

68 events,
69 commits,
70 submit(text: string, mode?: RunPrompt["mode"]) {
71 const next = mode ? { text, parts: [] as RunPrompt["parts"], mode } : { text, parts: [] as RunPrompt["parts"] }
72 for (const fn of [...prompts]) {
73 fn(next)
74 }
75 },
76 removeQueued(messageID: string) {
77 for (const fn of [...queuedRemoves]) fn(messageID)
78 },

Callers

nothing calls this directly

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected