()
| 17 | } |
| 18 | |
| 19 | export 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 | |
| 43 | export function isProjectOnboardingComplete(): boolean { |
| 44 | return getSteps() |
no test coverage detected