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

Function loadSeaModule

packages/server/src/svc/program.ts:11–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9let cachedSea: NodeSeaModule | null | undefined;
10
11function loadSeaModule(): NodeSeaModule | null {
12 if (cachedSea !== undefined) return cachedSea;
13 try {
14 cachedSea = nodeRequire('node:sea') as NodeSeaModule;
15 } catch {
16 cachedSea = null;
17 }
18 return cachedSea;
19}
20
21/** True when running as a compiled single-executable (SEA / native) binary. */
22function detectSea(): boolean {

Callers 1

detectSeaFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected