MCPcopy Index your code
hub / github.com/codeaashu/claude-code / hasExistingEnvironment

Function hasExistingEnvironment

src/commands/remote-setup/api.ts:102–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100}
101
102async function hasExistingEnvironment(): Promise<boolean> {
103 try {
104 const envs = await fetchEnvironments()
105 return envs.length > 0
106 } catch {
107 return false
108 }
109}
110
111/**
112 * Best-effort default environment creation. Mirrors the web onboarding's

Callers 1

createDefaultEnvironmentFunction · 0.85

Calls 1

fetchEnvironmentsFunction · 0.85

Tested by

no test coverage detected