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

Function structured

packages/opencode/test/cli/run/entry.body.test.ts:42–50  ·  view source on GitHub ↗
(next: StreamCommit)

Source from the content-addressed store, hash-verified

40}
41
42function structured(next: StreamCommit) {
43 const body = entryBody(next)
44 expect(body.type).toBe("structured")
45 if (body.type !== "structured") {
46 throw new Error("expected structured body")
47 }
48
49 return body.snapshot
50}
51
52describe("run entry body", () => {
53 test("renders assistant, reasoning, and user entries in their display formats", () => {

Callers 2

entry.body.test.tsFile · 0.85
RunEntryContentFunction · 0.85

Calls 1

entryBodyFunction · 0.90

Tested by

no test coverage detected