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

Function loadSeaModule

apps/kimi-code/src/cli/sub/server/daemon.ts:155–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153let cachedSea: NodeSeaModule | null | undefined;
154
155function loadSeaModule(): NodeSeaModule | null {
156 if (cachedSea !== undefined) return cachedSea;
157 try {
158 cachedSea = nodeRequire('node:sea') as NodeSeaModule;
159 } catch {
160 cachedSea = null;
161 }
162 return cachedSea;
163}
164
165/** True when running as a compiled single-executable (SEA / native) binary. */
166function detectSea(): boolean {

Callers 1

detectSeaFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected