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

Function isDevMode

source code/utils/desktopDeepLink.ts:15–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13const MIN_DESKTOP_VERSION = '1.1.2396'
14
15function isDevMode(): boolean {
16 if ((process.env.NODE_ENV as string) === 'development') {
17 return true
18 }
19
20 // Local builds from build directories are dev mode even with NODE_ENV=production
21 const pathsToCheck = [process.argv[1] || '', process.execPath || '']
22 const buildDirs = [
23 '/build-ant/',
24 '/build-ant-native/',
25 '/build-external/',
26 '/build-external-native/',
27 ]
28
29 return pathsToCheck.some(p => buildDirs.some(dir => p.includes(dir)))
30}
31
32/**
33 * Builds a deep link URL for Claude Desktop to resume a CLI session.

Callers 3

buildDesktopDeepLinkFunction · 0.85
isDesktopInstalledFunction · 0.85
openDeepLinkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected