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

Function lorem

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

Source from the content-addressed store, hash-verified

33type Message = { info: MessageInfo; parts: MessagePart[] }
34
35function lorem(seed: number, length: number) {
36 let out = ""
37 let i = seed
38 while (out.length < length) {
39 const word = words[i % words.length]
40 out += (out ? " " : "") + word
41 if (i % 17 === 0) out += ".\n\n"
42 i += 7
43 }
44 return out.slice(0, length)
45}
46
47function id(prefix: string, value: number) {
48 return `${prefix}_smoke_${String(value).padStart(4, "0")}`

Callers 6

userMessageFunction · 0.70
textPartFunction · 0.70
reasoningPartFunction · 0.70
toolPartFunction · 0.70
patchFunction · 0.70
codeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected