MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / uWK

Function uWK

package/cli.js:7824–7825  ·  view source on GitHub ↗
(q,K)

Source from the content-addressed store, hash-verified

7822
7823`);if(W)X.push({text:W,cacheScope:null});return d("tengu_sysprompt_boundary_found",{blockCount:X.length,staticBlockLength:P.length,dynamicBlockLength:W.length}),X}else d("tengu_sysprompt_missing_boundary_marker",{promptBlockCount:q.length})}let z,Y,$=[];for(let w of q){if(!w)continue;if(w.startsWith("x-anthropic-billing-header"))z=w;else if(If8.has(w))Y=w;else $.push(w)}let A=[];if(z)A.push({text:z,cacheScope:null});if(Y)A.push({text:Y,cacheScope:"org"});let O=$.join(`
7824
7825`);if(O)A.push({text:O,cacheScope:"org"});return A}function uWK(q,K){return[...q,Object.entries(K).map(([_,z])=>`${_}: ${z}`).join(`
7826`)].filter(Boolean)}function Vp8(q,K){if(Object.entries(K).length===0)return q;return[U8({content:`<system-reminder>
7827As you answer the user's questions, you can use the following context:
7828${Object.entries(K).map(([_,z])=>`# ${_}

Callers 1

M3YFunction · 0.85

Calls 3

filterMethod · 0.80
joinMethod · 0.45
entriesMethod · 0.45

Tested by

no test coverage detected