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

Function code

packages/app/e2e/smoke/session-timeline.fixture.ts:177–181  ·  view source on GitHub ↗
(seed: number, lines: number)

Source from the content-addressed store, hash-verified

175}
176
177function code(seed: number, lines: number) {
178 return Array.from({ length: lines }, (_, index) => `export const value${index} = "${lorem(seed + index, 32)}"`).join(
179 "\n",
180 )
181}
182
183function turn(index: number): Message[] {
184 const diff = index % 9 === 0 ? [fileDiff(`src/generated/summary-${index}.ts`, index)] : []

Callers 8

patchFileFunction · 0.70
fileDiffFunction · 0.70
turnFunction · 0.70
OAuthAutoViewFunction · 0.50
syncFunction · 0.50
restoreFunction · 0.50
handleScrollFunction · 0.50
createScrollSyncFunction · 0.50

Calls 2

loremFunction · 0.70
fromMethod · 0.45

Tested by

no test coverage detected