MCPcopy Index your code
hub / github.com/Opencode-DCP/opencode-dynamic-context-pruning / repeatedWord

Function repeatedWord

tests/token-usage.test.ts:71–73  ·  view source on GitHub ↗
(word: string, count: number)

Source from the content-addressed store, hash-verified

69}
70
71function repeatedWord(word: string, count: number): string {
72 return Array.from({ length: count }, () => word).join(" ")
73}
74
75function buildCompactedMessages(): WithParts[] {
76 const sessionID = "ses_compaction_token_usage"

Callers 3

buildCompactedMessagesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected