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

Function ESY

package/cli.js:7779–7786  ·  view source on GitHub ↗
(q)

Source from the content-addressed store, hash-verified

7777`)}async function QP(q,K,_,z){if(i6(process.env.CLAUDE_CODE_SIMPLE))return[`You are Claude Code, Anthropic's official CLI for Claude.
7778
7779CWD: ${Z8()}
7780Date: ${Jk8()}`];let Y=Z8(),[$,A,O]=await Promise.all([NC(Y),R0K(),QgK(K,_)]),w=N7(),j=new Set(q.map((M)=>M.name)),H=[Yp("session_guidance",()=>VSY(j,$)),Yp("memory",()=>GQ8()),Yp("ant_model_override",()=>MSY()),Yp("env_info_simple",()=>QgK(K,_)),Yp("language",()=>XSY(w.language)),Yp("output_style",()=>PSY(A)),BHK("mcp_instructions",()=>_h6()?null:WSY(z),"MCP servers connect/disconnect between turns"),Yp("scratchpad",()=>RSY()),Yp("frc",()=>hSY(K)),Yp("summarize_tool_results",()=>SSY),Yp("brief",()=>CSY())],J=await gHK(H);return[DSY(A),fSY(),A===null||A.keepCodingInstructions===!0?ZSY():null,GSY(),TSY(j),ySY(),NSY(),...fG6()?[ZH6]:[],...J].filter((M)=>M!==null)}function ESY(q){let _=q.filter((Y)=>Y.type==="connected").filter((Y)=>Y.instructions);if(_.length===0)return null;return`# MCP Server Instructions
7781
7782The following MCP servers have provided instructions for how to use their tools and resources:
7783
7784${_.map((Y)=>{return`## ${Y.name}
7785${Y.instructions}`}).join(`
7786
7787`)}`}async function LSY(q,K){let[_,z]=await Promise.all([YJ(),lgK()]),Y="";{let w=Jn(q);Y=w?`You are powered by the model named ${w}. The exact model ID is ${q}.`:`You are powered by the model ${q}.`}let $=K&&K.length>0?`Additional working directories: ${K.join(", ")}
7788`:"",A=dgK(q),O=A?`
7789

Callers 1

WSYFunction · 0.85

Calls 2

filterMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected