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

Function loadSeaModule

apps/kimi-code/src/cli/update/source.ts:18–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16let cachedSea: NodeSeaModule | null | undefined;
17
18function loadSeaModule(): NodeSeaModule | null {
19 if (cachedSea !== undefined) return cachedSea;
20 try {
21 cachedSea = nodeRequire('node:sea') as NodeSeaModule;
22 } catch {
23 cachedSea = null;
24 }
25 return cachedSea;
26}
27
28/** Runtime SEA detection — true when running as a packaged native binary. */
29export function detectNativeInstall(): boolean {

Callers 1

detectNativeInstallFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected