返回 CodeWhale
compiled.mjs
根目录 / crates / tui / extension-host / src / compiled.mjs
1 // A compiled launch uses the same canonical host entry as Node/system Bun.
2 // These values come from compile-host.mjs, never from the environment.
3 const args = process.argv.slice(2)
4 if (args.length === 1 && args[0] === '--codewhale-host-info') {
5 console.log(JSON.stringify({
6 kind: 'codewhale-extension-host',
7 runtime: 'bun',
8 platform: process.platform,
9 arch: process.arch,
10 version: process.versions.bun,
11 bundle_sha256: CODEWHALE_COMPILED_BUNDLE_SHA256,
12 }))
13 } else if (args.length === 1 && args[0] === '--version') {
14 console.log(process.versions.bun)
15 } else {
16 await import('../dist/codewhale-extension-host.mjs')
17 }
18
18 lines Plain Text