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

Function req

packages/opencode/test/cli/run/question.shared.test.ts:15–29  ·  view source on GitHub ↗
(input: Partial<QuestionRequest> = {})

Source from the content-addressed store, hash-verified

13} from "@/cli/cmd/run/question.shared"
14
15function req(input: Partial<QuestionRequest> = {}): QuestionRequest {
16 return {
17 id: "question-1",
18 sessionID: "session-1",
19 questions: [
20 {
21 question: "Mode?",
22 header: "Mode",
23 options: [{ label: "chunked", description: "Incremental output" }],
24 multiple: false,
25 },
26 ],
27 ...input,
28 }
29}
30
31describe("run question shared", () => {
32 test("replies immediately for a single-select question", () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected