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

Function ensureBundleExists

apps/kimi-code/scripts/native/02-sea-blob.mjs:21–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19import { collectWebAssets, webAssetManifestKey } from './web-assets.mjs';
20
21async function ensureBundleExists() {
22 try {
23 await stat(nativeJsBundlePath());
24 } catch {
25 fail(`Native JS bundle not found at ${nativeJsBundlePath()}. Run 01-bundle.mjs first.`);
26 }
27}
28
29async function writeSeaConfig(target) {
30 await mkdir(nativeIntermediatesDir(), { recursive: true });

Callers 1

runSeaBlobStepFunction · 0.70

Calls 3

nativeJsBundlePathFunction · 0.90
failFunction · 0.90
statFunction · 0.50

Tested by

no test coverage detected