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

Function fragmentID

packages/core/test/session-runner.test.ts:408–408  ·  view source on GitHub ↗
(kind: FragmentKind, suffix: string)

Source from the content-addressed store, hash-verified

406const fragmentKinds: readonly FragmentKind[] = ["text", "reasoning", "tool input"]
407
408const fragmentID = (kind: FragmentKind, suffix: string) => `${kind === "tool input" ? "call" : kind}-${suffix}`
409
410const fragmentFixture = (kind: FragmentKind, id: string, chunks: readonly string[]): FragmentFixture => {
411 const text = chunks.join("")

Callers 3

verifyEphemeralDeltasFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected