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

Function Cq5

package/cli.js:16609–16609  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16607`);else process.stderr.write(`Or consider using native installation with: claude install
16608`);await xK(1);break;case"in_progress":process.stderr.write(`Error: Another instance is currently performing an update
16609`),process.stderr.write(`Please wait and try again later
16610`),await xK(1);break}await xK(0)}var hq5=y(()=>{x3();k8();Lo();u77();V1();_8();u46();RA();E26();PQ();yS8();U1()});var bq5={};T8(bq5,{startDeferredPrefetches:()=>Xl8,main:()=>WsY});import{readFileSync as tA7}from"fs";import{resolve as vK8}from"path";function $sY(){try{let q=v1("policySettings");if(q){let K=BS7(q);d("tengu_managed_settings_loaded",{keyCount:K.length,keys:K.join(",")})}}catch{}}function AsY(){let q=eW6(),K=process.execArgv.some((z)=>{if(q)return/--inspect(-brk)?/.test(z);else return/--inspect(-brk)?|--debug(-brk)?/.test(z)}),_=process.env.NODE_OPTIONS&&/--inspect(-brk)?|--debug(-brk)?/.test(process.env.NODE_OPTIONS);try{return!!global.require("inspector").url()||K||_}catch{return K||_}}function Cq5(){let q=A5(hX6()??If());y15(Z8(),lf(q,QM())),ZJ().then(({enabled:K,errors:_})=>{let z=wR();nKK(K,z,w76()),rKK(_,z)}).catch((K)=>H6(K))}function OsY(){let q={};if(process.env.NODE_EXTRA_CA_CERTS)q.has_node_extra_ca_certs=!0;if(process.env.CLAUDE_CODE_CLIENT_CERT)q.has_client_cert=!0;if(UX6("--use-system-ca"))q.has_use_system_ca=!0;if(UX6("--use-openssl-ca"))q.has_use_openssl_ca=!0;return q}async function wsY(){if(j16())return;let[q,K,_]=await Promise.all([YJ(),oW6(),qQ8()]);d("tengu_startup_telemetry",{is_git:q,worktree_count:K,gh_auth_status:_,sandbox_enabled:M7.isSandboxingEnabled(),are_unsandboxed_commands_allowed:M7.areUnsandboxedCommandsAllowed(),is_auto_bash_allowed_if_sandbox_enabled:M7.isAutoAllowBashIfSandboxedEnabled(),auto_updater_disabled:AF(),prefers_reduced_motion:N7().prefersReducedMotion??!1,...OsY()})}function jsY(){if(j8().migrationVersion!==sA7)C15(),x15(),u15(),a15(),c15(),B15(),n15(),F15(),Q15(),r15(),b8((q)=>q.migrationVersion===sA7?q:{...q,migrationVersion:sA7});YRK().catch(()=>{})}function HsY(){if(i7()){c8("info","prefetch_system_context_non_interactive"),tw();return}if(l$())c8("info","prefetch_system_context_has_trust"),tw();else c8("info","prefetch_system_context_skipped_no_trust")}function Xl8(){if(i6(process.env.CLAUDE_CODE_EXIT_AFTER_FIRST_RENDER)||f9())return;if(eCq(),bO(),HsY(),Fc8(),i6(process.env.CLAUDE_CODE_USE_BEDROCK)&&!i6(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH))mv1();if(i6(process.env.CLAUDE_CODE_USE_VERTEX)&&!i6(process.env.CLAUDE_CODE_SKIP_VERTEX_AUTH))uv1();if(FG8(Z8(),AbortSignal.timeout(3000),[]),trq(),qrq(),nSq(),WX.initialize(),!f9())RC6.initialize()}function JsY(q){try{let K=q.trim(),_=K.startsWith("{")&&K.endsWith("}"),z;if(_){if(!m5(K))process.stderr.write($8.red(`Error: Invalid JSON provided to --settings
16611`)),process.exit(1);z=YL6("claude-settings",".json",{contentHash:K}),$j(z,K,"utf8")}else{let{resolvedPath:Y}=F$(X8(),q);try{tA7(Y,"utf8")}catch($){if(_7($))process.stderr.write($8.red(`Error: Settings file not found: ${Y}
16612`)),process.exit(1);throw $}z=Y}Gi8(z),DW()}catch(K){if(K instanceof Error)H6(K);process.stderr.write($8.red(`Error processing settings: ${d6(K)}

Callers 1

fsYFunction · 0.85

Calls 14

A5Function · 0.85
hX6Function · 0.85
IfFunction · 0.85
y15Function · 0.85
Z8Function · 0.85
lfFunction · 0.85
QMFunction · 0.85
wRFunction · 0.85
nKKFunction · 0.85
w76Function · 0.85
rKKFunction · 0.85
H6Function · 0.85

Tested by

no test coverage detected