MCPcopy Index your code
hub / github.com/ChinaSiro/claude-code-sourcemap / DE8

Function DE8

package/cli.js:1810–1810  ·  view source on GitHub ↗
(q,K,_,z)

Source from the content-addressed store, hash-verified

1808`:`- If you receive truncation warnings when reading the file, reduce the chunk size until you have read 100% of the content without truncation.
1809`,A=`- Before producing ANY summary or analysis, you MUST explicitly describe what portion of the content you have read. ***If you did not read the entire content, you MUST explicitly state this.***
1810`;return Y+$+`- Before producing ANY summary or analysis, you MUST explicitly describe what portion of the content you have read. ***If you did not read the entire content, you MUST explicitly state this.***
1811`}function cwz(q){if(!q)return"bin";switch((q.split(";")[0]??"").trim().toLowerCase()){case"application/pdf":return"pdf";case"application/json":return"json";case"text/csv":return"csv";case"text/plain":return"txt";case"text/html":return"html";case"text/markdown":return"md";case"application/zip":return"zip";case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":return"docx";case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":return"xlsx";case"application/vnd.openxmlformats-officedocument.presentationml.presentation":return"pptx";case"application/msword":return"doc";case"application/vnd.ms-excel":return"xls";case"audio/mpeg":return"mp3";case"audio/wav":return"wav";case"audio/ogg":return"ogg";case"video/mp4":return"mp4";case"video/webm":return"webm";case"image/png":return"png";case"image/jpeg":return"jpg";case"image/gif":return"gif";case"image/webp":return"webp";case"image/svg+xml":return"svg";default:return"bin"}}function _h4(q){if(!q)return!1;let K=(q.split(";")[0]??"").trim().toLowerCase();if(K.startsWith("text/"))return!1;if(K.endsWith("+json")||K==="application/json")return!1;if(K.endsWith("+xml")||K==="application/xml")return!1;if(K.startsWith("application/javascript"))return!1;if(K==="application/x-www-form-urlencoded")return!1;return!0}async function ZN6(q,K,_){await Cw6();let z=cwz(K),Y=dwz(Bq6(),`${_}.${z}`);try{await Qwz(Y,q)}catch($){let A=x1($);return H6(A),{error:A.message}}return d("tengu_binary_content_persisted",{mimeType:K??"unknown",sizeBytes:q.length,ext:z}),{filepath:Y,size:q.length,ext:z}}function DE8(q,K,_,z){return`${z}Binary content (${K||"unknown type"}, ${m4(_)}) saved to ${q}`}var fE8=y(()=>{k8();y8();U7();E8();IG()});var zh4=`
1812Reads a specific resource from an MCP server.
1813- server: The name of the MCP server to read from

Callers 2

callFunction · 0.85
_b4Function · 0.85

Calls 1

m4Function · 0.85

Tested by

no test coverage detected