MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / detectSea

Function detectSea

apps/kimi-code/src/cli/sub/server/daemon.ts:166–174  ·  view source on GitHub ↗

True when running as a compiled single-executable (SEA / native) binary.

()

Source from the content-addressed store, hash-verified

164
165/** True when running as a compiled single-executable (SEA / native) binary. */
166function detectSea(): boolean {
167 const sea = loadSeaModule();
168 if (sea === null) return false;
169 try {
170 return sea.isSea();
171 } catch {
172 return false;
173 }
174}
175
176/**
177 * Absolute path to the CLI entry that should be re-execed to run the daemon.

Callers 1

resolveDaemonProgramFunction · 0.70

Calls 2

loadSeaModuleFunction · 0.70
isSeaMethod · 0.65

Tested by

no test coverage detected