MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getPromptForCommand

Function getPromptForCommand

src/commands/init.ts:239–253  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

featureFunction · 0.85
isEnvTruthyFunction · 0.85

Tested by

no test coverage detected