MCPcopy Index your code
hub / github.com/anomalyco/opencode / scrub

Function scrub

packages/opencode/src/provider/transform.ts:190–190  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

188
189 if (model.api.id.includes("claude")) {
190 const scrub = (id: string) => id.replace(/[^a-zA-Z0-9_-]/g, "_")
191 msgs = msgs.map((msg) => {
192 if (msg.role === "assistant" && Array.isArray(msg.content)) {
193 return {

Callers 2

integration.tsFile · 0.85
normalizeMessagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected