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

Function collectWebAssets

apps/kimi-code/scripts/native/web-assets.mjs:107–118  ·  view source on GitHub ↗
({ appRoot, target })

Source from the content-addressed store, hash-verified

105}
106
107export async function collectWebAssets({ appRoot, target }) {
108 const buildCommand =
109 'pnpm --filter @moonshot-ai/kimi-web run build && pnpm --filter @moonshot-ai/kimi-code run build';
110 return collectAssetRoot({
111 appRoot,
112 target,
113 root: WEB_ASSETS_DIR,
114 requiredFile: 'index.html',
115 missingMessage: `Kimi web build output was not found at ${resolve(appRoot, WEB_ASSETS_DIR)}. Run \`${buildCommand}\` before building native SEA assets. App root: ${appRoot}`,
116 assetKey: webAssetKey,
117 });
118}

Callers 2

web-assets.test.tsFile · 0.90
writeSeaConfigFunction · 0.90

Calls 2

collectAssetRootFunction · 0.85
resolveFunction · 0.50

Tested by

no test coverage detected