MCPcopy Create free account
hub / github.com/Noumena-Network/code / getSteps

Function getSteps

src/projectOnboardingState.ts:27–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25]
26
27export function getSteps(): Step[] {
28 const hasProjectInstructions = PROJECT_INSTRUCTION_PATHS.some(path =>
29 getFsImplementation().existsSync(join(getCwd(), path)),
30 )
31 const isWorkspaceDirEmpty = isDirEmpty(getCwd())
32
33 return [
34 {
35 key: 'workspace',
36 text: 'Ask Code to create a new app or clone a repository',
37 isComplete: false,
38 isCompletable: true,
39 isEnabled: isWorkspaceDirEmpty,
40 },
41 {
42 key: 'instructions',
43 text: 'Run /init to create project instructions',
44 isComplete: hasProjectInstructions,
45 isCompletable: true,
46 isEnabled: !isWorkspaceDirEmpty,
47 },
48 ]
49}
50
51export function isProjectOnboardingComplete(): boolean {
52 return getSteps()

Callers 1

Calls 3

getFsImplementationFunction · 0.85
getCwdFunction · 0.85
isDirEmptyFunction · 0.85

Tested by

no test coverage detected