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

Function getSteps

source code/projectOnboardingState.ts:21–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 2

LogoV2Function · 0.85

Calls 3

getFsImplementationFunction · 0.85
getCwdFunction · 0.85
isDirEmptyFunction · 0.85

Tested by

no test coverage detected