(cacheRoot: string)
| 206 | } |
| 207 | |
| 208 | function ensureEntryFile(cacheRoot: string): void { |
| 209 | const entryPath = join(cacheRoot, 'node_modules', '.kimi-native-entry.cjs'); |
| 210 | ensureFile( |
| 211 | entryPath, |
| 212 | Buffer.from('module.exports = require;\n'), |
| 213 | sha256('module.exports = require;\n'), |
| 214 | 0o644, |
| 215 | ); |
| 216 | } |
| 217 | |
| 218 | export function ensureNativeAssetTree(options: NativeAssetOptions = {}): string | null { |
| 219 | const source = options.source ?? getSeaAssetSource(); |
no test coverage detected