MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / hasEmbeddedSearchTools

Function hasEmbeddedSearchTools

source code/utils/embeddedTools.ts:17–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 * Set as a build-time define in scripts/build-with-plugins.ts for ant-native builds.
16 */
17export function hasEmbeddedSearchTools(): boolean {
18 if (!isEnvTruthy(process.env.EMBEDDED_SEARCH_TOOLS)) return false
19 const e = process.env.CLAUDE_CODE_ENTRYPOINT
20 return (
21 e !== 'sdk-ts' && e !== 'sdk-py' && e !== 'sdk-cli' && e !== 'local-agent'
22 )
23}
24
25/**
26 * Path to the bun binary that contains the embedded search tools.

Callers 12

getAllBaseToolsFunction · 0.85
getPromptFunction · 0.85
getPlanV2SystemPromptFunction · 0.85
getExploreSystemPromptFunction · 0.85
getSimplePromptFunction · 0.85
getReadOnlyToolNamesFunction · 0.85
getUsingYourToolsSectionFunction · 0.85

Calls 1

isEnvTruthyFunction · 0.85

Tested by

no test coverage detected