MCPcopy
hub / github.com/anomalyco/opencode / stream.transport.test.ts

File stream.transport.test.ts

packages/opencode/test/cli/run/stream.transport.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { afterEach, describe, expect, mock, spyOn, test } from "bun:test"
2import { OpencodeClient, type GlobalEvent } from "@opencode-ai/sdk/v2"
3import { createSessionTransport } from "@/cli/cmd/run/stream.transport"
4import type { FooterApi, FooterEvent, LocalReplayRow, RunFilePart, StreamCommit } from "@/cli/cmd/run/types"

Callers

nothing calls this directly

Calls 15

createSessionTransportFunction · 0.90
testFunction · 0.85
eventFeedFunction · 0.85
sdkFunction · 0.85
textUpdatedFunction · 0.85
statusMapFunction · 0.85
reasoningUpdatedFunction · 0.85
globalFeedFunction · 0.85
globalEventFunction · 0.85
globalSseFunction · 0.85
pushMethod · 0.80
addEventListenerMethod · 0.80

Tested by

no test coverage detected