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

Function assertBuiltAssetRoot

apps/kimi-code/scripts/native/web-assets.mjs:45–55  ·  view source on GitHub ↗
({ assetRoot, requiredFile, message })

Source from the content-addressed store, hash-verified

43}
44
45async function assertBuiltAssetRoot({ assetRoot, requiredFile, message }) {
46 const requiredPath = join(assetRoot, requiredFile);
47 try {
48 const info = await stat(requiredPath);
49 if (!info.isFile()) {
50 throw new Error(`${requiredFile} is not a file`);
51 }
52 } catch {
53 throw new Error(message);
54 }
55}
56
57export function webAssetManifestKey(target) {
58 return buildWebManifestKey(target);

Callers 1

collectAssetRootFunction · 0.85

Calls 1

statFunction · 0.50

Tested by

no test coverage detected