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

Function LSY

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

Source from the content-addressed store, hash-verified

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
7790Assistant knowledge cutoff is ${A}.`:"";return`Here is useful information about the environment you are running in:
7791<env>
7792Working directory: ${Z8()}
7793Is directory a git repo: ${_?"Yes":"No"}
7794${$}Platform: ${a1.platform}
7795${cgK()}
7796OS Version: ${z}
7797</env>
7798${Y}${O}`}async function QgK(q,K){let[_,z]=await Promise.all([YJ(),lgK()]),Y=null;{let H=Jn(q);Y=H?`You are powered by the model named ${H}. The exact model ID is ${q}.`:`You are powered by the model ${q}.`}let $=dgK(q),A=$?`Assistant knowledge cutoff is ${$}.`:null,O=Z8(),w=n2()!==null,j=[`Primary working directory: ${O}`,w?"This is a git worktree — an isolated copy of the repository. Run all commands from this directory. Do NOT `cd` to the original repository root.":null,[`Is a git repository: ${_}`],K&&K.length>0?"Additional working directories:":null,K&&K.length>0?K:null,`Platform: ${a1.platform}`,cgK(),`OS Version: ${z}`,Y,A,`The most recent Claude model family is Claude 4.5/4.6. Model IDs — Opus 4.6: '${T_7.opus}', Sonnet 4.6: '${T_7.sonnet}', Haiku 4.5: '${T_7.haiku}'. When building AI applications, default to the latest and most capable Claude models.`,"Claude Code is available as a CLI in the terminal, desktop app (Mac/Windows), web app (claude.ai/code), and IDE extensions (VS Code, JetBrains).",`Fast mode for Claude Code uses the same ${HSY} model with faster output. It does NOT switch to a different model. It can be toggled with /fast.`].filter((H)=>H!==null);return["# Environment","You have been invoked in the following environment: ",...wp(j)].join(`
7799`)}function dgK(q){let K=bY(q);if(K.includes("claude-sonnet-4-6"))return"August 2025";else if(K.includes("claude-opus-4-6"))return"May 2025";else if(K.includes("claude-opus-4-5"))return"May 2025";else if(K.includes("claude-haiku-4"))return"February 2025";else if(K.includes("claude-opus-4")||K.includes("claude-sonnet-4"))return"January 2025";return null}function cgK(){let q=process.env.SHELL||"unknown",K=q.includes("zsh")?"zsh":q.includes("bash")?"bash":q;if(a1.platform==="win32")return`Shell: ${K} (use Unix shell syntax, not Windows — e.g., /dev/null not NUL, forward slashes in paths)`;return`Shell: ${K}`}function lgK(){if(a1.platform==="win32")return`${OSY()} ${ggK()}`;return`${ASY()} ${ggK()}`}async function se6(q,K,_,z){let A=await LSY(K,_);return[...q,`Notes:
7800- Agent threads always have their cwd reset between bash calls, as a result please only use absolute file paths.

Callers 1

se6Function · 0.85

Calls 6

lgKFunction · 0.85
JnFunction · 0.85
dgKFunction · 0.85
Z8Function · 0.85
cgKFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected