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

Function nativeAssetCacheExists

apps/kimi-code/src/native/native-assets.ts:265–271  ·  view source on GitHub ↗
(
  packageName: string,
  options: NativeAssetOptions = {},
)

Source from the content-addressed store, hash-verified

263}
264
265export function nativeAssetCacheExists(
266 packageName: string,
267 options: NativeAssetOptions = {},
268): boolean {
269 const root = getNativePackageRoot(packageName, options);
270 return root !== null && existsSync(root);
271}
272
273export interface CleanupOptions {
274 readonly cacheBase: string;

Callers

nothing calls this directly

Calls 1

getNativePackageRootFunction · 0.85

Tested by

no test coverage detected