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

Function detectSea

packages/server/src/svc/program.ts:22–30  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

20
21/** True when running as a compiled single-executable (SEA / native) binary. */
22function detectSea(): boolean {
23 const sea = loadSeaModule();
24 if (sea === null) return false;
25 try {
26 return sea.isSea();
27 } catch {
28 return false;
29 }
30}
31
32export function resolveSupervisorProgram(
33 argv: readonly string[] = process.argv,

Callers 1

resolveSupervisorProgramFunction · 0.70

Calls 2

loadSeaModuleFunction · 0.70
isSeaMethod · 0.65

Tested by

no test coverage detected