{"version":3,"file":"bin-bootstrap.cjs","names":[],"sources":["../src/cli/bin-bootstrap.cjs"],"sourcesContent":["/* global __dirname */\n/**\n * CLI bootstrap entry point (CommonJS).\n *\n * This file MUST be CommonJS so it executes before any ESM module loading.\n * It enables Node's compile cache for faster subsequent runs, then loads the real CLI.\n *\n * Why CJS? ESM static imports are resolved before module code runs, so calling\n * enableCompileCache() in an ESM file is \"too late\" - the heavy deps are already\n * being parsed. A CJS bootstrap lets us enable caching BEFORE the ESM import.\n */\n'use strict';\n\nconst path = require('node:path');\nconst { pathToFileURL } = require('node:url');\n\n// Enable compile cache BEFORE loading any ESM modules.\n// This caches compiled bytecode on disk for faster subsequent runs.\n// Available in Node 22.8.0+, gracefully ignored in older versions.\ntry {\n  const mod = require('node:module');\n  if (typeof mod.enableCompileCache === 'function') {\n    mod.enableCompileCache();\n  }\n} catch {\n  // Silently ignore - caching is an optimization, not required.\n}\n\n// Load the bundled CLI binary (ESM with all deps bundled for fast startup).\n// bin.mjs runs runCli() as a side effect when imported.\nconst binPath = path.join(__dirname, 'bin.mjs');\nimport(pathToFileURL(binPath).href);\n"],"mappings":";;;;;;;;;;;;;;;AAaA,MAAM,OAAO,QAAQ,YAAY;AACjC,MAAM,EAAE,kBAAkB,QAAQ,WAAW;AAK7C,IAAI;CACF,MAAM,MAAM,QAAQ,cAAc;AAClC,KAAI,OAAO,IAAI,uBAAuB,WACpC,KAAI,oBAAoB;QAEpB;AAOR,OAAO,cADS,KAAK,KAAK,WAAW,UAAU,CAClB,CAAC"}