MCPcopy
hub / github.com/codeaashu/claude-code / getSteps

Function getSteps

src/projectOnboardingState.ts:19–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19export function getSteps(): Step[] {
20 const hasClaudeMd = getFsImplementation().existsSync(
21 join(getCwd(), 'CLAUDE.md'),
22 )
23 const isWorkspaceDirEmpty = isDirEmpty(getCwd())
24
25 return [
26 {
27 key: 'workspace',
28 text: 'Ask Claude to create a new app or clone a repository',
29 isComplete: false,
30 isCompletable: true,
31 isEnabled: isWorkspaceDirEmpty,
32 },
33 {
34 key: 'claudemd',
35 text: 'Run /init to create a CLAUDE.md file with instructions for Claude',
36 isComplete: hasClaudeMd,
37 isCompletable: true,
38 isEnabled: !isWorkspaceDirEmpty,
39 },
40 ]
41}
42
43export function isProjectOnboardingComplete(): boolean {
44 return getSteps()

Callers 2

LogoV2Function · 0.85

Calls 3

getFsImplementationFunction · 0.85
getCwdFunction · 0.85
isDirEmptyFunction · 0.85

Tested by

no test coverage detected