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

Function maybeMarkProjectOnboardingComplete

src/projectOnboardingState.ts:57–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57export function maybeMarkProjectOnboardingComplete(): void {
58 // Short-circuit on cached config — isProjectOnboardingComplete() hits
59 // the filesystem, and REPL.tsx calls this on every prompt submit.
60 if (getCurrentProjectConfig().hasCompletedProjectOnboarding) {
61 return
62 }
63 if (isProjectOnboardingComplete()) {
64 saveCurrentProjectConfig(current => ({
65 ...current,
66 hasCompletedProjectOnboarding: true,
67 }))
68 }
69}
70
71export const shouldShowProjectOnboarding = memoize((): boolean => {
72 const projectConfig = getCurrentProjectConfig()

Callers 3

getPromptForCommandFunction · 0.85
setupTerminalFunction · 0.85
REPLFunction · 0.85

Calls 3

getCurrentProjectConfigFunction · 0.85
saveCurrentProjectConfigFunction · 0.85

Tested by

no test coverage detected