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

Function resolveServerWebAssetsDir

apps/kimi-code/src/cli/sub/server/run.ts:413–417  ·  view source on GitHub ↗
(
  nativeWebAssetsDir: string | null = getNativeWebAssetsDir(),
)

Source from the content-addressed store, hash-verified

411}
412
413export function resolveServerWebAssetsDir(
414 nativeWebAssetsDir: string | null = getNativeWebAssetsDir(),
415): string {
416 return nativeWebAssetsDir ?? join(getHostPackageRoot(), WEB_ASSETS_DIR);
417}
418
419interface FormatReadyBannerOptions {
420 /** Persistent bearer token to print; omitted when unresolvable. */

Callers 2

server.test.tsFile · 0.85
serverWebAssetsDirFunction · 0.85

Calls 2

getNativeWebAssetsDirFunction · 0.90
getHostPackageRootFunction · 0.90

Tested by

no test coverage detected