#!/usr/bin/env node

import {
  buildTuringGrokArgv,
  buildTuringGrokEnv,
  launchBinaryPath,
  resolvePackageBinaryPath,
} from './presetLauncher.js'

launchBinaryPath({
  binaryPath: resolvePackageBinaryPath(import.meta.url),
  argv: buildTuringGrokArgv(process.argv.slice(2)),
  env: buildTuringGrokEnv(process.env),
  missingBinaryMessage: '错误：Turing Code 二进制不存在，请重新执行 npm 安装。',
})
