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

Function prompt

packages/opencode/test/cli/run/prompt.shared.test.ts:11–13  ·  view source on GitHub ↗
(text: string, parts: RunPrompt["parts"] = [])

Source from the content-addressed store, hash-verified

9import type { RunPrompt } from "@/cli/cmd/run/types"
10
11function prompt(text: string, parts: RunPrompt["parts"] = []): RunPrompt {
12 return { text, parts }
13}
14
15describe("run prompt shared", () => {
16 test("filters blank prompts and dedupes consecutive history", () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected