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

Function getPromptForCommand

source code/commands/init.ts:241–255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

239 progressMessage: 'analyzing your codebase',
240 source: 'builtin',
241 async getPromptForCommand() {
242 maybeMarkProjectOnboardingComplete()
243
244 return [
245 {
246 type: 'text',
247 text:
248 feature('NEW_INIT') &&
249 (process.env.USER_TYPE === 'ant' ||
250 isEnvTruthy(process.env.CLAUDE_CODE_NEW_INIT))
251 ? NEW_INIT_PROMPT
252 : OLD_INIT_PROMPT,
253 },
254 ]
255 },
256} satisfies Command
257
258export default command

Callers

nothing calls this directly

Calls 2

isEnvTruthyFunction · 0.85

Tested by

no test coverage detected