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

Function gA

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

Source from the content-addressed store, hash-verified

16355${K}`);return A.join(`
16356
16357`)}function arY(){rO({name:"claude-api",description:"Build apps with the Claude API or Anthropic SDK.\nTRIGGER when: code imports `anthropic`/`@anthropic-ai/sdk`/`claude_agent_sdk`, or user asks to use Claude API, Anthropic SDKs, or Agent SDK.\nDO NOT TRIGGER when: code imports `openai`/other AI SDK, general programming, or ML/data-science tasks.",allowedTools:["Read","Grep","Glob","WebFetch"],userInvocable:!0,async getPromptForCommand(q){let K=await Promise.resolve().then(() => (X15(),M15)),_=await irY();return[{type:"text",text:orY(_,q,K)}]}})}var nrY,W15='## Reference Documentation\n\nThe relevant documentation for your detected language is included below in `<doc>` tags. Each tag has a `path` attribute showing its original file path. Use this to find the right section:\n\n### Quick Task Reference\n\n**Single text classification/summarization/extraction/Q&A:**\n→ Refer to `{lang}/claude-api/README.md`\n\n**Chat UI or real-time response display:**\n→ Refer to `{lang}/claude-api/README.md` + `{lang}/claude-api/streaming.md`\n\n**Long-running conversations (may exceed context window):**\n→ Refer to `{lang}/claude-api/README.md` — see Compaction section\n\n**Prompt caching / optimize caching / "why is my cache hit rate low":**\n→ Refer to `shared/prompt-caching.md` + `{lang}/claude-api/README.md` (Prompt Caching section)\n\n**Function calling / tool use / agents:**\n→ Refer to `{lang}/claude-api/README.md` + `shared/tool-use-concepts.md` + `{lang}/claude-api/tool-use.md`\n\n**Batch processing (non-latency-sensitive):**\n→ Refer to `{lang}/claude-api/README.md` + `{lang}/claude-api/batches.md`\n\n**File uploads across multiple requests:**\n→ Refer to `{lang}/claude-api/README.md` + `{lang}/claude-api/files-api.md`\n\n**Agent with built-in tools (file/web/terminal) (Python & TypeScript only):**\n→ Refer to `{lang}/agent-sdk/README.md` + `{lang}/agent-sdk/patterns.md`\n\n**Error handling:**\n→ Refer to `shared/error-codes.md`\n\n**Latest docs via WebFetch:**\n→ Refer to `shared/live-sources.md` for URLs';var Z15=y(()=>{I7();WT();nrY={python:[".py","requirements.txt","pyproject.toml","setup.py","Pipfile"],typescript:[".ts",".tsx","tsconfig.json","package.json"],java:[".java","pom.xml","build.gradle"],go:[".go","go.mod"],ruby:[".rb","Gemfile"],csharp:[".cs",".csproj"],php:[".php","composer.json"],curl:[]}});function G15(){r65(),b65(),A85(),R65(),m65(),Q65(),B65(),F65(),N65(),c65();{let{registerLoopSkill:q}=(j85(),Eq(w85));q()}{let{registerScheduleRemoteAgentsSkill:q}=(X85(),Eq(M85));q()}{let{registerClaudeApiSkill:q}=(Z15(),Eq(f15));q()}if(xS6())E65()}var T15=y(()=>{WJ6();y65();L65();h65();x65();p65();g65();U65();d65();l65();o65();O85()});import{stat as srY}from"fs/promises";import{homedir as trY}from"os";import{join as v15,sep as erY}from"path";function V15(q){let K=[`This session was opened by an external deep link in ${_oY(q.cwd)}`];if(q.repo){let _=q.lastFetch?Kh(q.lastFetch):"never",z=!q.lastFetch||Date.now()-q.lastFetch.getTime()>qoY;K.push(`Resolved ${q.repo} from local clones · last fetched ${_}${z?" — CLAUDE.md may be stale":""}`)}if(q.prefillLength)K.push(q.prefillLength>KoY?`The prompt below (${mK(q.prefillLength)} chars) was supplied by the link — scroll to review the entire prompt before pressing Enter.`:"The prompt below was supplied by the link — review carefully before pressing Enter.");return K.join(`
16358`)}async function N15(q){let K=await Ap6(q);if(!K)return;let _=await ex(K),[z,Y]=await Promise.all([k15(v15(K,"FETCH_HEAD")),_?k15(v15(_,"FETCH_HEAD")):Promise.resolve(void 0)]);if(z&&Y)return z>Y?z:Y;return z??Y}async function k15(q){try{let{mtime:K}=await srY(q);return K}catch{return}}function _oY(q){let K=trY();if(q===K)return"~";if(q.startsWith(K+erY))return"~"+q.slice(K.length);return q}var qoY=604800000,KoY=1000;var mA7=y(()=>{U7();Hl();E5()});async function y15(q,K){let _=await NC(q),z=Dk8(K);for(let Y of _){if(Y.type!=="prompt")continue;d("tengu_skill_loaded",{_PROTO_skill_name:Y.name,skill_source:Y.source,skill_loaded_from:Y.loadedFrom,skill_budget:z,...Y.kind&&{skill_kind:Y.kind}})}}var E15=y(()=>{yA();k8();yO6()});function o3(q){if(q)console.error(q);process.exit(1);return}function gA(q){if(q)process.stdout.write(q+`
16359`);process.exit(0);return}function L15(q){q.command("add <name> <commandOrUrl> [args...]").description(`Add an MCP server to Claude Code.
16360
16361Examples:

Callers 12

L15Function · 0.85
h15Function · 0.85
GaYFunction · 0.85
kaYFunction · 0.85
VaYFunction · 0.85
NaYFunction · 0.85
EaYFunction · 0.85
LaYFunction · 0.85
RaYFunction · 0.85
haYFunction · 0.85
SaYFunction · 0.85
CaYFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected