@eve-horizon/cli 0.2.33 → 0.2.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +289 -267
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -8768,19 +8768,19 @@ var require_module_details_from_path = __commonJS({
8768
8768
  basedir += segments[i] + sep;
8769
8769
  }
8770
8770
  }
8771
- var path6 = "";
8771
+ var path7 = "";
8772
8772
  var lastSegmentIndex = segments.length - 1;
8773
8773
  for (var i2 = index + offset; i2 <= lastSegmentIndex; i2++) {
8774
8774
  if (i2 === lastSegmentIndex) {
8775
- path6 += segments[i2];
8775
+ path7 += segments[i2];
8776
8776
  } else {
8777
- path6 += segments[i2] + sep;
8777
+ path7 += segments[i2] + sep;
8778
8778
  }
8779
8779
  }
8780
8780
  return {
8781
8781
  name,
8782
8782
  basedir,
8783
- path: path6
8783
+ path: path7
8784
8784
  };
8785
8785
  };
8786
8786
  }
@@ -8886,8 +8886,8 @@ var require_path_parse = __commonJS({
8886
8886
  // ../../node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/node-modules-paths.js
8887
8887
  var require_node_modules_paths = __commonJS({
8888
8888
  "../../node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/node-modules-paths.js"(exports2, module2) {
8889
- var path6 = require("path");
8890
- var parse3 = path6.parse || require_path_parse();
8889
+ var path7 = require("path");
8890
+ var parse3 = path7.parse || require_path_parse();
8891
8891
  var driveLetterRegex = /^([A-Za-z]:)/;
8892
8892
  var uncPathRegex = /^\\\\/;
8893
8893
  var getNodeModulesDirs = function getNodeModulesDirs2(absoluteStart, modules) {
@@ -8905,7 +8905,7 @@ var require_node_modules_paths = __commonJS({
8905
8905
  }
8906
8906
  return paths.reduce(function(dirs, aPath) {
8907
8907
  return dirs.concat(modules.map(function(moduleDir) {
8908
- return path6.resolve(prefix, aPath, moduleDir);
8908
+ return path7.resolve(prefix, aPath, moduleDir);
8909
8909
  }));
8910
8910
  }, []);
8911
8911
  };
@@ -9268,7 +9268,7 @@ var require_async = __commonJS({
9268
9268
  "../../node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/async.js"(exports2, module2) {
9269
9269
  var fs5 = require("fs");
9270
9270
  var getHomedir = require_homedir();
9271
- var path6 = require("path");
9271
+ var path7 = require("path");
9272
9272
  var caller = require_caller();
9273
9273
  var nodeModulesPaths = require_node_modules_paths();
9274
9274
  var normalizeOptions = require_normalize_options();
@@ -9280,8 +9280,8 @@ var require_async = __commonJS({
9280
9280
  var homedir6 = getHomedir();
9281
9281
  var defaultPaths = function() {
9282
9282
  return [
9283
- path6.join(homedir6, ".node_modules"),
9284
- path6.join(homedir6, ".node_libraries")
9283
+ path7.join(homedir6, ".node_modules"),
9284
+ path7.join(homedir6, ".node_libraries")
9285
9285
  ];
9286
9286
  };
9287
9287
  var defaultIsFile = function isFile(file, cb) {
@@ -9331,7 +9331,7 @@ var require_async = __commonJS({
9331
9331
  var getPackageCandidates = function getPackageCandidates2(x, start, opts) {
9332
9332
  var dirs = nodeModulesPaths(start, opts, x);
9333
9333
  for (var i = 0; i < dirs.length; i++) {
9334
- dirs[i] = path6.join(dirs[i], x);
9334
+ dirs[i] = path7.join(dirs[i], x);
9335
9335
  }
9336
9336
  return dirs;
9337
9337
  };
@@ -9363,10 +9363,10 @@ var require_async = __commonJS({
9363
9363
  var packageIterator = opts.packageIterator;
9364
9364
  var extensions = opts.extensions || [".js"];
9365
9365
  var includeCoreModules = opts.includeCoreModules !== false;
9366
- var basedir = opts.basedir || path6.dirname(caller());
9366
+ var basedir = opts.basedir || path7.dirname(caller());
9367
9367
  var parent = opts.filename || basedir;
9368
9368
  opts.paths = opts.paths || defaultPaths();
9369
- var absoluteStart = path6.resolve(basedir);
9369
+ var absoluteStart = path7.resolve(basedir);
9370
9370
  maybeRealpath(
9371
9371
  realpath,
9372
9372
  absoluteStart,
@@ -9379,7 +9379,7 @@ var require_async = __commonJS({
9379
9379
  var res;
9380
9380
  function init(basedir2) {
9381
9381
  if (relativePathRegex.test(x)) {
9382
- res = path6.resolve(basedir2, x);
9382
+ res = path7.resolve(basedir2, x);
9383
9383
  if (x === "." || x === ".." || x.slice(-1) === "/") res += "/";
9384
9384
  if (x.slice(-1) === "/" && res === basedir2) {
9385
9385
  loadAsDirectory(res, opts.package, onfile);
@@ -9437,17 +9437,17 @@ var require_async = __commonJS({
9437
9437
  var file = x3 + exts2[0];
9438
9438
  var pkg = loadPackage;
9439
9439
  if (pkg) onpkg(null, pkg);
9440
- else loadpkg(path6.dirname(file), onpkg);
9440
+ else loadpkg(path7.dirname(file), onpkg);
9441
9441
  function onpkg(err2, pkg_, dir) {
9442
9442
  pkg = pkg_;
9443
9443
  if (err2) return cb2(err2);
9444
9444
  if (dir && pkg && opts.pathFilter) {
9445
- var rfile = path6.relative(dir, file);
9445
+ var rfile = path7.relative(dir, file);
9446
9446
  var rel = rfile.slice(0, rfile.length - exts2[0].length);
9447
9447
  var r = opts.pathFilter(pkg, x3, rel);
9448
9448
  if (r) return load(
9449
9449
  [""].concat(extensions.slice()),
9450
- path6.resolve(dir, r),
9450
+ path7.resolve(dir, r),
9451
9451
  pkg
9452
9452
  );
9453
9453
  }
@@ -9467,10 +9467,10 @@ var require_async = __commonJS({
9467
9467
  }
9468
9468
  if (nodeModulesRegex.test(dir)) return cb2(null);
9469
9469
  maybeRealpath(realpath, dir, opts, function(unwrapErr, pkgdir) {
9470
- if (unwrapErr) return loadpkg(path6.dirname(dir), cb2);
9471
- var pkgfile = path6.join(pkgdir, "package.json");
9470
+ if (unwrapErr) return loadpkg(path7.dirname(dir), cb2);
9471
+ var pkgfile = path7.join(pkgdir, "package.json");
9472
9472
  isFile(pkgfile, function(err2, ex) {
9473
- if (!ex) return loadpkg(path6.dirname(dir), cb2);
9473
+ if (!ex) return loadpkg(path7.dirname(dir), cb2);
9474
9474
  readPackage(readFile, pkgfile, function(err3, pkgParam) {
9475
9475
  if (err3) cb2(err3);
9476
9476
  var pkg = pkgParam;
@@ -9491,10 +9491,10 @@ var require_async = __commonJS({
9491
9491
  }
9492
9492
  maybeRealpath(realpath, x2, opts, function(unwrapErr, pkgdir) {
9493
9493
  if (unwrapErr) return cb2(unwrapErr);
9494
- var pkgfile = path6.join(pkgdir, "package.json");
9494
+ var pkgfile = path7.join(pkgdir, "package.json");
9495
9495
  isFile(pkgfile, function(err2, ex) {
9496
9496
  if (err2) return cb2(err2);
9497
- if (!ex) return loadAsFile(path6.join(x2, "index"), fpkg, cb2);
9497
+ if (!ex) return loadAsFile(path7.join(x2, "index"), fpkg, cb2);
9498
9498
  readPackage(readFile, pkgfile, function(err3, pkgParam) {
9499
9499
  if (err3) return cb2(err3);
9500
9500
  var pkg = pkgParam;
@@ -9510,20 +9510,20 @@ var require_async = __commonJS({
9510
9510
  if (pkg.main === "." || pkg.main === "./") {
9511
9511
  pkg.main = "index";
9512
9512
  }
9513
- loadAsFile(path6.resolve(x2, pkg.main), pkg, function(err4, m, pkg2) {
9513
+ loadAsFile(path7.resolve(x2, pkg.main), pkg, function(err4, m, pkg2) {
9514
9514
  if (err4) return cb2(err4);
9515
9515
  if (m) return cb2(null, m, pkg2);
9516
- if (!pkg2) return loadAsFile(path6.join(x2, "index"), pkg2, cb2);
9517
- var dir = path6.resolve(x2, pkg2.main);
9516
+ if (!pkg2) return loadAsFile(path7.join(x2, "index"), pkg2, cb2);
9517
+ var dir = path7.resolve(x2, pkg2.main);
9518
9518
  loadAsDirectory(dir, pkg2, function(err5, n, pkg3) {
9519
9519
  if (err5) return cb2(err5);
9520
9520
  if (n) return cb2(null, n, pkg3);
9521
- loadAsFile(path6.join(x2, "index"), pkg3, cb2);
9521
+ loadAsFile(path7.join(x2, "index"), pkg3, cb2);
9522
9522
  });
9523
9523
  });
9524
9524
  return;
9525
9525
  }
9526
- loadAsFile(path6.join(x2, "/index"), pkg, cb2);
9526
+ loadAsFile(path7.join(x2, "/index"), pkg, cb2);
9527
9527
  });
9528
9528
  });
9529
9529
  });
@@ -9531,7 +9531,7 @@ var require_async = __commonJS({
9531
9531
  function processDirs(cb2, dirs) {
9532
9532
  if (dirs.length === 0) return cb2(null, void 0);
9533
9533
  var dir = dirs[0];
9534
- isDirectory(path6.dirname(dir), isdir);
9534
+ isDirectory(path7.dirname(dir), isdir);
9535
9535
  function isdir(err2, isdir2) {
9536
9536
  if (err2) return cb2(err2);
9537
9537
  if (!isdir2) return processDirs(cb2, dirs.slice(1));
@@ -9761,7 +9761,7 @@ var require_sync = __commonJS({
9761
9761
  "../../node_modules/.pnpm/resolve@1.22.11/node_modules/resolve/lib/sync.js"(exports2, module2) {
9762
9762
  var isCore = require_is_core_module();
9763
9763
  var fs5 = require("fs");
9764
- var path6 = require("path");
9764
+ var path7 = require("path");
9765
9765
  var getHomedir = require_homedir();
9766
9766
  var caller = require_caller();
9767
9767
  var nodeModulesPaths = require_node_modules_paths();
@@ -9773,8 +9773,8 @@ var require_sync = __commonJS({
9773
9773
  var homedir6 = getHomedir();
9774
9774
  var defaultPaths = function() {
9775
9775
  return [
9776
- path6.join(homedir6, ".node_modules"),
9777
- path6.join(homedir6, ".node_libraries")
9776
+ path7.join(homedir6, ".node_modules"),
9777
+ path7.join(homedir6, ".node_libraries")
9778
9778
  ];
9779
9779
  };
9780
9780
  var defaultIsFile = function isFile(file) {
@@ -9822,7 +9822,7 @@ var require_sync = __commonJS({
9822
9822
  var getPackageCandidates = function getPackageCandidates2(x, start, opts) {
9823
9823
  var dirs = nodeModulesPaths(start, opts, x);
9824
9824
  for (var i = 0; i < dirs.length; i++) {
9825
- dirs[i] = path6.join(dirs[i], x);
9825
+ dirs[i] = path7.join(dirs[i], x);
9826
9826
  }
9827
9827
  return dirs;
9828
9828
  };
@@ -9842,12 +9842,12 @@ var require_sync = __commonJS({
9842
9842
  var packageIterator = opts.packageIterator;
9843
9843
  var extensions = opts.extensions || [".js"];
9844
9844
  var includeCoreModules = opts.includeCoreModules !== false;
9845
- var basedir = opts.basedir || path6.dirname(caller());
9845
+ var basedir = opts.basedir || path7.dirname(caller());
9846
9846
  var parent = opts.filename || basedir;
9847
9847
  opts.paths = opts.paths || defaultPaths();
9848
- var absoluteStart = maybeRealpathSync(realpathSync, path6.resolve(basedir), opts);
9848
+ var absoluteStart = maybeRealpathSync(realpathSync, path7.resolve(basedir), opts);
9849
9849
  if (relativePathRegex.test(x)) {
9850
- var res = path6.resolve(absoluteStart, x);
9850
+ var res = path7.resolve(absoluteStart, x);
9851
9851
  if (x === "." || x === ".." || x.slice(-1) === "/") res += "/";
9852
9852
  var m = loadAsFileSync(res) || loadAsDirectorySync(res);
9853
9853
  if (m) return maybeRealpathSync(realpathSync, m, opts);
@@ -9861,12 +9861,12 @@ var require_sync = __commonJS({
9861
9861
  err.code = "MODULE_NOT_FOUND";
9862
9862
  throw err;
9863
9863
  function loadAsFileSync(x2) {
9864
- var pkg = loadpkg(path6.dirname(x2));
9864
+ var pkg = loadpkg(path7.dirname(x2));
9865
9865
  if (pkg && pkg.dir && pkg.pkg && opts.pathFilter) {
9866
- var rfile = path6.relative(pkg.dir, x2);
9866
+ var rfile = path7.relative(pkg.dir, x2);
9867
9867
  var r = opts.pathFilter(pkg.pkg, x2, rfile);
9868
9868
  if (r) {
9869
- x2 = path6.resolve(pkg.dir, r);
9869
+ x2 = path7.resolve(pkg.dir, r);
9870
9870
  }
9871
9871
  }
9872
9872
  if (isFile(x2)) {
@@ -9885,9 +9885,9 @@ var require_sync = __commonJS({
9885
9885
  return;
9886
9886
  }
9887
9887
  if (nodeModulesRegex.test(dir)) return;
9888
- var pkgfile = path6.join(maybeRealpathSync(realpathSync, dir, opts), "package.json");
9888
+ var pkgfile = path7.join(maybeRealpathSync(realpathSync, dir, opts), "package.json");
9889
9889
  if (!isFile(pkgfile)) {
9890
- return loadpkg(path6.dirname(dir));
9890
+ return loadpkg(path7.dirname(dir));
9891
9891
  }
9892
9892
  var pkg = readPackageSync(readFileSync23, pkgfile);
9893
9893
  if (pkg && opts.packageFilter) {
@@ -9900,7 +9900,7 @@ var require_sync = __commonJS({
9900
9900
  return { pkg, dir };
9901
9901
  }
9902
9902
  function loadAsDirectorySync(x2) {
9903
- var pkgfile = path6.join(maybeRealpathSync(realpathSync, x2, opts), "/package.json");
9903
+ var pkgfile = path7.join(maybeRealpathSync(realpathSync, x2, opts), "/package.json");
9904
9904
  if (isFile(pkgfile)) {
9905
9905
  try {
9906
9906
  var pkg = readPackageSync(readFileSync23, pkgfile);
@@ -9923,15 +9923,15 @@ var require_sync = __commonJS({
9923
9923
  pkg.main = "index";
9924
9924
  }
9925
9925
  try {
9926
- var m2 = loadAsFileSync(path6.resolve(x2, pkg.main));
9926
+ var m2 = loadAsFileSync(path7.resolve(x2, pkg.main));
9927
9927
  if (m2) return m2;
9928
- var n2 = loadAsDirectorySync(path6.resolve(x2, pkg.main));
9928
+ var n2 = loadAsDirectorySync(path7.resolve(x2, pkg.main));
9929
9929
  if (n2) return n2;
9930
9930
  } catch (e) {
9931
9931
  }
9932
9932
  }
9933
9933
  }
9934
- return loadAsFileSync(path6.join(x2, "/index"));
9934
+ return loadAsFileSync(path7.join(x2, "/index"));
9935
9935
  }
9936
9936
  function loadNodeModulesSync(x2, start) {
9937
9937
  var thunk = function() {
@@ -9940,7 +9940,7 @@ var require_sync = __commonJS({
9940
9940
  var dirs = packageIterator ? packageIterator(x2, start, thunk, opts) : thunk();
9941
9941
  for (var i = 0; i < dirs.length; i++) {
9942
9942
  var dir = dirs[i];
9943
- if (isDirectory(path6.dirname(dir))) {
9943
+ if (isDirectory(path7.dirname(dir))) {
9944
9944
  var m2 = loadAsFileSync(dir);
9945
9945
  if (m2) return m2;
9946
9946
  var n2 = loadAsDirectorySync(dir);
@@ -10031,7 +10031,7 @@ var require_package = __commonJS({
10031
10031
  var require_require_in_the_middle = __commonJS({
10032
10032
  "../../node_modules/.pnpm/require-in-the-middle@7.5.2/node_modules/require-in-the-middle/index.js"(exports2, module2) {
10033
10033
  "use strict";
10034
- var path6 = require("path");
10034
+ var path7 = require("path");
10035
10035
  var Module = require("module");
10036
10036
  var debug = require_src3()("require-in-the-middle");
10037
10037
  var moduleDetailsFromPath = require_module_details_from_path();
@@ -10083,7 +10083,7 @@ var require_require_in_the_middle = __commonJS({
10083
10083
  }
10084
10084
  return _resolve(moduleName, basedir);
10085
10085
  }
10086
- var normalize = /([/\\]index)?(\.js)?$/;
10086
+ var normalize2 = /([/\\]index)?(\.js)?$/;
10087
10087
  var ExportsCache = class {
10088
10088
  constructor() {
10089
10089
  this._localCache = /* @__PURE__ */ new Map();
@@ -10205,7 +10205,7 @@ var require_require_in_the_middle = __commonJS({
10205
10205
  }
10206
10206
  moduleName = filename;
10207
10207
  } else if (hasWhitelist === true && modules.includes(filename)) {
10208
- const parsedPath = path6.parse(filename);
10208
+ const parsedPath = path7.parse(filename);
10209
10209
  moduleName = parsedPath.name;
10210
10210
  basedir = parsedPath.dir;
10211
10211
  } else {
@@ -10243,7 +10243,7 @@ var require_require_in_the_middle = __commonJS({
10243
10243
  }
10244
10244
  if (res !== filename) {
10245
10245
  if (internals === true) {
10246
- moduleName = moduleName + path6.sep + path6.relative(basedir, filename);
10246
+ moduleName = moduleName + path7.sep + path7.relative(basedir, filename);
10247
10247
  debug("preparing to process require of internal file: %s", moduleName);
10248
10248
  } else {
10249
10249
  debug("ignoring require of non-main module file: %s", res);
@@ -10279,8 +10279,8 @@ var require_require_in_the_middle = __commonJS({
10279
10279
  }
10280
10280
  };
10281
10281
  function resolveModuleName(stat) {
10282
- const normalizedPath = path6.sep !== "/" ? stat.path.split(path6.sep).join("/") : stat.path;
10283
- return path6.posix.join(stat.name, normalizedPath).replace(normalize, "");
10282
+ const normalizedPath = path7.sep !== "/" ? stat.path.split(path7.sep).join("/") : stat.path;
10283
+ return path7.posix.join(stat.name, normalizedPath).replace(normalize2, "");
10284
10284
  }
10285
10285
  }
10286
10286
  });
@@ -10369,7 +10369,7 @@ var require_RequireInTheMiddleSingleton = __commonJS({
10369
10369
  Object.defineProperty(exports2, "__esModule", { value: true });
10370
10370
  exports2.RequireInTheMiddleSingleton = void 0;
10371
10371
  var require_in_the_middle_1 = require_require_in_the_middle();
10372
- var path6 = require("path");
10372
+ var path7 = require("path");
10373
10373
  var ModuleNameTrie_1 = require_ModuleNameTrie();
10374
10374
  var isMocha = [
10375
10375
  "afterEach",
@@ -10433,7 +10433,7 @@ var require_RequireInTheMiddleSingleton = __commonJS({
10433
10433
  };
10434
10434
  exports2.RequireInTheMiddleSingleton = RequireInTheMiddleSingleton;
10435
10435
  function normalizePathSeparators(moduleNameOrPath) {
10436
- return path6.sep !== ModuleNameTrie_1.ModuleNameSeparator ? moduleNameOrPath.split(path6.sep).join(ModuleNameTrie_1.ModuleNameSeparator) : moduleNameOrPath;
10436
+ return path7.sep !== ModuleNameTrie_1.ModuleNameSeparator ? moduleNameOrPath.split(path7.sep).join(ModuleNameTrie_1.ModuleNameSeparator) : moduleNameOrPath;
10437
10437
  }
10438
10438
  }
10439
10439
  });
@@ -10493,7 +10493,7 @@ var require_register = __commonJS({
10493
10493
  // ../../node_modules/.pnpm/import-in-the-middle@1.15.0/node_modules/import-in-the-middle/index.js
10494
10494
  var require_import_in_the_middle = __commonJS({
10495
10495
  "../../node_modules/.pnpm/import-in-the-middle@1.15.0/node_modules/import-in-the-middle/index.js"(exports2, module2) {
10496
- var path6 = require("path");
10496
+ var path7 = require("path");
10497
10497
  var parse3 = require_module_details_from_path();
10498
10498
  var { fileURLToPath } = require("url");
10499
10499
  var { MessageChannel } = require("worker_threads");
@@ -10589,7 +10589,7 @@ var require_import_in_the_middle = __commonJS({
10589
10589
  if (moduleName === name) {
10590
10590
  if (baseDir) {
10591
10591
  if (internals) {
10592
- name = name + path6.sep + path6.relative(baseDir, fileURLToPath(filename));
10592
+ name = name + path7.sep + path7.relative(baseDir, fileURLToPath(filename));
10593
10593
  } else {
10594
10594
  if (!getExperimentalPatchInternals() && !baseDir.endsWith(specifiers.get(filename))) continue;
10595
10595
  }
@@ -10665,7 +10665,7 @@ var require_instrumentation2 = __commonJS({
10665
10665
  "use strict";
10666
10666
  Object.defineProperty(exports2, "__esModule", { value: true });
10667
10667
  exports2.InstrumentationBase = void 0;
10668
- var path6 = require("path");
10668
+ var path7 = require("path");
10669
10669
  var util_1 = require("util");
10670
10670
  var semver_1 = require_semver2();
10671
10671
  var shimmer_1 = require_shimmer();
@@ -10762,7 +10762,7 @@ var require_instrumentation2 = __commonJS({
10762
10762
  }
10763
10763
  _extractPackageVersion(baseDir) {
10764
10764
  try {
10765
- const json = (0, fs_1.readFileSync)(path6.join(baseDir, "package.json"), {
10765
+ const json = (0, fs_1.readFileSync)(path7.join(baseDir, "package.json"), {
10766
10766
  encoding: "utf8"
10767
10767
  });
10768
10768
  const version2 = JSON.parse(json).version;
@@ -10805,7 +10805,7 @@ var require_instrumentation2 = __commonJS({
10805
10805
  return exports3;
10806
10806
  }
10807
10807
  const files = (_a = module3.files) !== null && _a !== void 0 ? _a : [];
10808
- const normalizedName = path6.normalize(name);
10808
+ const normalizedName = path7.normalize(name);
10809
10809
  const supportedFileInstrumentations = files.filter((f) => f.name === normalizedName).filter((f) => isSupported(f.supportedVersions, version2, module3.includePrerelease));
10810
10810
  return supportedFileInstrumentations.reduce((patchedExports, file) => {
10811
10811
  file.moduleExports = patchedExports;
@@ -10851,8 +10851,8 @@ var require_instrumentation2 = __commonJS({
10851
10851
  this._warnOnPreloadedModules();
10852
10852
  for (const module3 of this._modules) {
10853
10853
  const hookFn = (exports3, name, baseDir) => {
10854
- if (!baseDir && path6.isAbsolute(name)) {
10855
- const parsedPath = path6.parse(name);
10854
+ if (!baseDir && path7.isAbsolute(name)) {
10855
+ const parsedPath = path7.parse(name);
10856
10856
  name = parsedPath.name;
10857
10857
  baseDir = parsedPath.dir;
10858
10858
  }
@@ -10861,7 +10861,7 @@ var require_instrumentation2 = __commonJS({
10861
10861
  const onRequire = (exports3, name, baseDir) => {
10862
10862
  return this._onRequire(module3, exports3, name, baseDir);
10863
10863
  };
10864
- const hook = path6.isAbsolute(module3.name) ? new require_in_the_middle_1.Hook([module3.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module3.name, onRequire);
10864
+ const hook = path7.isAbsolute(module3.name) ? new require_in_the_middle_1.Hook([module3.name], { internals: true }, onRequire) : this._requireInTheMiddleSingleton.register(module3.name, onRequire);
10865
10865
  this._hooks.push(hook);
10866
10866
  const esmHook = new import_in_the_middle_1.Hook([module3.name], { internals: false }, hookFn);
10867
10867
  this._hooks.push(esmHook);
@@ -18108,7 +18108,7 @@ var require_instrumentation3 = __commonJS({
18108
18108
  "use strict";
18109
18109
  Object.defineProperty(exports2, "__esModule", { value: true });
18110
18110
  exports2.AwsLambdaInstrumentation = exports2.lambdaMaxInitInMilliseconds = void 0;
18111
- var path6 = require("path");
18111
+ var path7 = require("path");
18112
18112
  var fs5 = require("fs");
18113
18113
  var instrumentation_1 = require_src4();
18114
18114
  var api_1 = (init_esm(), __toCommonJS(esm_exports));
@@ -18136,10 +18136,10 @@ var require_instrumentation3 = __commonJS({
18136
18136
  this._diag.debug("Skipping lambda instrumentation: no _HANDLER/lambdaHandler or LAMBDA_TASK_ROOT.", { taskRoot, handlerDef });
18137
18137
  return [];
18138
18138
  }
18139
- const handler = path6.basename(handlerDef);
18139
+ const handler = path7.basename(handlerDef);
18140
18140
  const moduleRoot = handlerDef.substr(0, handlerDef.length - handler.length);
18141
18141
  const [module3, functionName] = handler.split(".", 2);
18142
- let filename = path6.resolve(taskRoot, moduleRoot, module3);
18142
+ let filename = path7.resolve(taskRoot, moduleRoot, module3);
18143
18143
  if (!filename.endsWith(".js")) {
18144
18144
  try {
18145
18145
  fs5.statSync(`${filename}.js`);
@@ -21306,16 +21306,16 @@ var require_utils7 = __commonJS({
21306
21306
  request[internal_types_1._LAYERS_STORE_PROPERTY].push(value);
21307
21307
  };
21308
21308
  exports2.storeLayerPath = storeLayerPath;
21309
- var getRouterPath = (path6, layer) => {
21309
+ var getRouterPath = (path7, layer) => {
21310
21310
  var _a, _b, _c, _d;
21311
21311
  const stackLayer = (_b = (_a = layer.handle) === null || _a === void 0 ? void 0 : _a.stack) === null || _b === void 0 ? void 0 : _b[0];
21312
21312
  if ((_c = stackLayer === null || stackLayer === void 0 ? void 0 : stackLayer.route) === null || _c === void 0 ? void 0 : _c.path) {
21313
- return `${path6}${stackLayer.route.path}`;
21313
+ return `${path7}${stackLayer.route.path}`;
21314
21314
  }
21315
21315
  if ((_d = stackLayer === null || stackLayer === void 0 ? void 0 : stackLayer.handle) === null || _d === void 0 ? void 0 : _d.stack) {
21316
- return (0, exports2.getRouterPath)(path6, stackLayer);
21316
+ return (0, exports2.getRouterPath)(path7, stackLayer);
21317
21317
  }
21318
- return path6;
21318
+ return path7;
21319
21319
  };
21320
21320
  exports2.getRouterPath = getRouterPath;
21321
21321
  var getLayerMetadata = (route, layer, layerPath) => {
@@ -21515,7 +21515,7 @@ var require_instrumentation10 = __commonJS({
21515
21515
  return original;
21516
21516
  const patched = function(req, res) {
21517
21517
  (0, utils_1.storeLayerPath)(req, layerPath);
21518
- const route = req[internal_types_1._LAYERS_STORE_PROPERTY].filter((path6) => path6 !== "/" && path6 !== "/*").join("").replace(/\/{2,}/g, "/");
21518
+ const route = req[internal_types_1._LAYERS_STORE_PROPERTY].filter((path7) => path7 !== "/" && path7 !== "/*").join("").replace(/\/{2,}/g, "/");
21519
21519
  const attributes = {
21520
21520
  [semantic_conventions_1.SEMATTRS_HTTP_ROUTE]: route.length > 0 ? route : "/"
21521
21521
  };
@@ -22393,8 +22393,8 @@ var require_instrumentation12 = __commonJS({
22393
22393
  }
22394
22394
  };
22395
22395
  const functionWithOriginalProperties = patchedFunctionWithOriginalProperties(patchedFunction, original);
22396
- const promisified = function(path6) {
22397
- return new Promise((resolve8) => functionWithOriginalProperties(path6, resolve8));
22396
+ const promisified = function(path7) {
22397
+ return new Promise((resolve8) => functionWithOriginalProperties(path7, resolve8));
22398
22398
  };
22399
22399
  Object.defineProperty(promisified, "name", { value: functionName });
22400
22400
  Object.defineProperty(functionWithOriginalProperties, util_1.promisify.custom, {
@@ -22769,26 +22769,26 @@ var require_utils10 = __commonJS({
22769
22769
  span.setAttribute(AttributeNames_1.AttributeNames.SOURCE, source);
22770
22770
  }
22771
22771
  exports2.addSpanSource = addSpanSource;
22772
- function createFieldIfNotExists(tracer, getConfig, contextValue, info, path6) {
22773
- let field = getField(contextValue, path6);
22772
+ function createFieldIfNotExists(tracer, getConfig, contextValue, info, path7) {
22773
+ let field = getField(contextValue, path7);
22774
22774
  let spanAdded = false;
22775
22775
  if (!field) {
22776
22776
  spanAdded = true;
22777
- const parent = getParentField(contextValue, path6);
22777
+ const parent = getParentField(contextValue, path7);
22778
22778
  field = {
22779
22779
  parent,
22780
- span: createResolverSpan(tracer, getConfig, contextValue, info, path6, parent.span),
22780
+ span: createResolverSpan(tracer, getConfig, contextValue, info, path7, parent.span),
22781
22781
  error: null
22782
22782
  };
22783
- addField(contextValue, path6, field);
22783
+ addField(contextValue, path7, field);
22784
22784
  }
22785
22785
  return { spanAdded, field };
22786
22786
  }
22787
- function createResolverSpan(tracer, getConfig, contextValue, info, path6, parentSpan) {
22787
+ function createResolverSpan(tracer, getConfig, contextValue, info, path7, parentSpan) {
22788
22788
  var _a, _b;
22789
22789
  const attributes = {
22790
22790
  [AttributeNames_1.AttributeNames.FIELD_NAME]: info.fieldName,
22791
- [AttributeNames_1.AttributeNames.FIELD_PATH]: path6.join("."),
22791
+ [AttributeNames_1.AttributeNames.FIELD_PATH]: path7.join("."),
22792
22792
  [AttributeNames_1.AttributeNames.FIELD_TYPE]: info.returnType.toString()
22793
22793
  };
22794
22794
  const span = tracer.startSpan(`${enum_1.SpanNames.RESOLVE} ${attributes[AttributeNames_1.AttributeNames.FIELD_PATH]}`, {
@@ -22828,15 +22828,15 @@ var require_utils10 = __commonJS({
22828
22828
  }
22829
22829
  }
22830
22830
  exports2.getOperation = getOperation;
22831
- function addField(contextValue, path6, field) {
22832
- return contextValue[symbols_1.OTEL_GRAPHQL_DATA_SYMBOL].fields[path6.join(".")] = field;
22831
+ function addField(contextValue, path7, field) {
22832
+ return contextValue[symbols_1.OTEL_GRAPHQL_DATA_SYMBOL].fields[path7.join(".")] = field;
22833
22833
  }
22834
- function getField(contextValue, path6) {
22835
- return contextValue[symbols_1.OTEL_GRAPHQL_DATA_SYMBOL].fields[path6.join(".")];
22834
+ function getField(contextValue, path7) {
22835
+ return contextValue[symbols_1.OTEL_GRAPHQL_DATA_SYMBOL].fields[path7.join(".")];
22836
22836
  }
22837
- function getParentField(contextValue, path6) {
22838
- for (let i = path6.length - 1; i > 0; i--) {
22839
- const field = getField(contextValue, path6.slice(0, i));
22837
+ function getParentField(contextValue, path7) {
22838
+ for (let i = path7.length - 1; i > 0; i--) {
22839
+ const field = getField(contextValue, path7.slice(0, i));
22840
22840
  if (field) {
22841
22841
  return field;
22842
22842
  }
@@ -22845,9 +22845,9 @@ var require_utils10 = __commonJS({
22845
22845
  span: contextValue[symbols_1.OTEL_GRAPHQL_DATA_SYMBOL].span
22846
22846
  };
22847
22847
  }
22848
- function pathToArray(mergeItems, path6) {
22848
+ function pathToArray(mergeItems, path7) {
22849
22849
  const flattened = [];
22850
- let curr = path6;
22850
+ let curr = path7;
22851
22851
  while (curr) {
22852
22852
  let key = curr.key;
22853
22853
  if (mergeItems && typeof key === "number") {
@@ -22984,14 +22984,14 @@ var require_utils10 = __commonJS({
22984
22984
  if (!contextValue[symbols_1.OTEL_GRAPHQL_DATA_SYMBOL]) {
22985
22985
  return fieldResolver.call(this, source, args, contextValue, info);
22986
22986
  }
22987
- const path6 = pathToArray(config.mergeItems, info && info.path);
22988
- const depth = path6.filter((item) => typeof item === "string").length;
22987
+ const path7 = pathToArray(config.mergeItems, info && info.path);
22988
+ const depth = path7.filter((item) => typeof item === "string").length;
22989
22989
  let field;
22990
22990
  let shouldEndSpan = false;
22991
22991
  if (config.depth >= 0 && config.depth < depth) {
22992
- field = getParentField(contextValue, path6);
22992
+ field = getParentField(contextValue, path7);
22993
22993
  } else {
22994
- const newField = createFieldIfNotExists(tracer, getConfig, contextValue, info, path6);
22994
+ const newField = createFieldIfNotExists(tracer, getConfig, contextValue, info, path7);
22995
22995
  field = newField.field;
22996
22996
  shouldEndSpan = newField.spanAdded;
22997
22997
  }
@@ -28447,12 +28447,12 @@ var require_utils14 = __commonJS({
28447
28447
  const reqUrlObject = requestUrl || {};
28448
28448
  const protocol = reqUrlObject.protocol || fallbackProtocol;
28449
28449
  const port = (reqUrlObject.port || "").toString();
28450
- const path6 = reqUrlObject.path || "/";
28450
+ const path7 = reqUrlObject.path || "/";
28451
28451
  let host = reqUrlObject.host || reqUrlObject.hostname || headers.host || "localhost";
28452
28452
  if (host.indexOf(":") === -1 && port && port !== "80" && port !== "443") {
28453
28453
  host += `:${port}`;
28454
28454
  }
28455
- return `${protocol}//${host}${path6}`;
28455
+ return `${protocol}//${host}${path7}`;
28456
28456
  };
28457
28457
  exports2.getAbsoluteUrl = getAbsoluteUrl;
28458
28458
  var parseResponseStatus = (kind, statusCode) => {
@@ -30520,11 +30520,11 @@ var require_instrumentation20 = __commonJS({
30520
30520
  const router = dispatchLayer.router;
30521
30521
  const routesStack = (_a = router === null || router === void 0 ? void 0 : router.stack) !== null && _a !== void 0 ? _a : [];
30522
30522
  for (const pathLayer of routesStack) {
30523
- const path6 = pathLayer.path;
30523
+ const path7 = pathLayer.path;
30524
30524
  const pathStack = pathLayer.stack;
30525
30525
  for (let j = 0; j < pathStack.length; j++) {
30526
30526
  const routedMiddleware = pathStack[j];
30527
- pathStack[j] = this._patchLayer(routedMiddleware, true, path6);
30527
+ pathStack[j] = this._patchLayer(routedMiddleware, true, path7);
30528
30528
  }
30529
30529
  }
30530
30530
  return dispatchLayer;
@@ -36914,8 +36914,8 @@ var require_instrumentation32 = __commonJS({
36914
36914
  }
36915
36915
  _methodPatcher(original, methodName) {
36916
36916
  const instrumentation = this;
36917
- return function(path6, ...handler) {
36918
- return original.call(this, path6, ...instrumentation._handlerPatcher({ type: types_1.LayerType.REQUEST_HANDLER, path: path6, methodName }, handler));
36917
+ return function(path7, ...handler) {
36918
+ return original.call(this, path7, ...instrumentation._handlerPatcher({ type: types_1.LayerType.REQUEST_HANDLER, path: path7, methodName }, handler));
36919
36919
  };
36920
36920
  }
36921
36921
  // will return the same type as `handler`, but all functions recursively patched
@@ -38863,9 +38863,9 @@ var require_getMachineId_linux = __commonJS({
38863
38863
  var api_1 = (init_esm(), __toCommonJS(esm_exports));
38864
38864
  async function getMachineId() {
38865
38865
  const paths = ["/etc/machine-id", "/var/lib/dbus/machine-id"];
38866
- for (const path6 of paths) {
38866
+ for (const path7 of paths) {
38867
38867
  try {
38868
- const result = await fs_1.promises.readFile(path6, { encoding: "utf8" });
38868
+ const result = await fs_1.promises.readFile(path7, { encoding: "utf8" });
38869
38869
  return result.trim();
38870
38870
  } catch (e) {
38871
38871
  api_1.diag.debug(`error reading machine id: ${e}`);
@@ -41012,7 +41012,7 @@ var require_tr46 = __commonJS({
41012
41012
  TRANSITIONAL: 0,
41013
41013
  NONTRANSITIONAL: 1
41014
41014
  };
41015
- function normalize(str) {
41015
+ function normalize2(str) {
41016
41016
  return str.split("\0").map(function(s) {
41017
41017
  return s.normalize("NFC");
41018
41018
  }).join("\0");
@@ -41092,7 +41092,7 @@ var require_tr46 = __commonJS({
41092
41092
  processing_option = PROCESSING_OPTIONS.NONTRANSITIONAL;
41093
41093
  }
41094
41094
  var error = false;
41095
- if (normalize(label) !== label || label[3] === "-" && label[4] === "-" || label[0] === "-" || label[label.length - 1] === "-" || label.indexOf(".") !== -1 || label.search(combiningMarksRegex) === 0) {
41095
+ if (normalize2(label) !== label || label[3] === "-" && label[4] === "-" || label[0] === "-" || label[label.length - 1] === "-" || label.indexOf(".") !== -1 || label.search(combiningMarksRegex) === 0) {
41096
41096
  error = true;
41097
41097
  }
41098
41098
  var len = countSymbols(label);
@@ -41110,7 +41110,7 @@ var require_tr46 = __commonJS({
41110
41110
  }
41111
41111
  function processing(domain_name, useSTD3, processing_option) {
41112
41112
  var result = mapChars(domain_name, useSTD3, processing_option);
41113
- result.string = normalize(result.string);
41113
+ result.string = normalize2(result.string);
41114
41114
  var labels = result.string.split(".");
41115
41115
  for (var i = 0; i < labels.length; ++i) {
41116
41116
  try {
@@ -41553,14 +41553,14 @@ var require_url_state_machine = __commonJS({
41553
41553
  return url.replace(/\u0009|\u000A|\u000D/g, "");
41554
41554
  }
41555
41555
  function shortenPath(url) {
41556
- const path6 = url.path;
41557
- if (path6.length === 0) {
41556
+ const path7 = url.path;
41557
+ if (path7.length === 0) {
41558
41558
  return;
41559
41559
  }
41560
- if (url.scheme === "file" && path6.length === 1 && isNormalizedWindowsDriveLetter(path6[0])) {
41560
+ if (url.scheme === "file" && path7.length === 1 && isNormalizedWindowsDriveLetter(path7[0])) {
41561
41561
  return;
41562
41562
  }
41563
- path6.pop();
41563
+ path7.pop();
41564
41564
  }
41565
41565
  function includesCredentials(url) {
41566
41566
  return url.username !== "" || url.password !== "";
@@ -48612,21 +48612,21 @@ function ensureConfigDir() {
48612
48612
  (0, import_node_fs.mkdirSync)(CONFIG_DIR, { recursive: true });
48613
48613
  }
48614
48614
  }
48615
- function readJsonFile(path6, fallback) {
48616
- if (!(0, import_node_fs.existsSync)(path6)) return fallback;
48617
- const raw = (0, import_node_fs.readFileSync)(path6, "utf8");
48615
+ function readJsonFile(path7, fallback) {
48616
+ if (!(0, import_node_fs.existsSync)(path7)) return fallback;
48617
+ const raw = (0, import_node_fs.readFileSync)(path7, "utf8");
48618
48618
  if (!raw.trim()) return fallback;
48619
48619
  try {
48620
48620
  return JSON.parse(raw);
48621
48621
  } catch (error) {
48622
- throw new Error(`Failed to parse ${path6}: ${error.message}`);
48622
+ throw new Error(`Failed to parse ${path7}: ${error.message}`);
48623
48623
  }
48624
48624
  }
48625
- function writeJsonFile(path6, value) {
48625
+ function writeJsonFile(path7, value) {
48626
48626
  ensureConfigDir();
48627
- (0, import_node_fs.writeFileSync)(path6, JSON.stringify(value, null, 2));
48627
+ (0, import_node_fs.writeFileSync)(path7, JSON.stringify(value, null, 2));
48628
48628
  try {
48629
- (0, import_node_fs.chmodSync)(path6, 384);
48629
+ (0, import_node_fs.chmodSync)(path7, 384);
48630
48630
  } catch {
48631
48631
  }
48632
48632
  }
@@ -51425,8 +51425,8 @@ function showSubcommandHelp(command, subcommand) {
51425
51425
  }
51426
51426
 
51427
51427
  // src/lib/client.ts
51428
- async function requestJson(context2, path6, options = {}) {
51429
- const response = await requestRaw(context2, path6, options);
51428
+ async function requestJson(context2, path7, options = {}) {
51429
+ const response = await requestRaw(context2, path7, options);
51430
51430
  const method = options.method ?? "GET";
51431
51431
  if (response.status === 401 && options.tokenOverride === void 0) {
51432
51432
  const refreshed = await attemptRefresh(context2);
@@ -51434,20 +51434,20 @@ async function requestJson(context2, path6, options = {}) {
51434
51434
  context2.token = refreshed.access_token;
51435
51435
  context2.refreshToken = refreshed.refresh_token;
51436
51436
  context2.expiresAt = refreshed.expires_at;
51437
- const retry = await requestRaw(context2, path6, {
51437
+ const retry = await requestRaw(context2, path7, {
51438
51438
  ...options,
51439
51439
  tokenOverride: refreshed.access_token
51440
51440
  });
51441
51441
  if (!retry.ok && !options.allowError) {
51442
51442
  const message = formatErrorMessage(retry);
51443
- throw new Error(`HTTP ${retry.status}: ${method} ${path6}: ${message}`);
51443
+ throw new Error(`HTTP ${retry.status}: ${method} ${path7}: ${message}`);
51444
51444
  }
51445
51445
  return retry.data;
51446
51446
  }
51447
51447
  }
51448
51448
  if (!response.ok && !options.allowError) {
51449
51449
  const message = formatErrorMessage(response);
51450
- const requestTarget = `${method} ${path6}`;
51450
+ const requestTarget = `${method} ${path7}`;
51451
51451
  const requestFailedContext = `while calling ${requestTarget}: ${message}`;
51452
51452
  if ((response.status === 404 || response.status === 500) && message.includes("Project not found")) {
51453
51453
  const projectIdMatch = message.match(/Project not found: (proj_[a-z0-9]+)/);
@@ -51479,7 +51479,7 @@ function unwrapListResponse(value) {
51479
51479
  }
51480
51480
  throw new Error("Expected list response envelope with data[]");
51481
51481
  }
51482
- async function requestRaw(context2, path6, options = {}) {
51482
+ async function requestRaw(context2, path7, options = {}) {
51483
51483
  const headers = {
51484
51484
  ...options.headers
51485
51485
  };
@@ -51490,7 +51490,7 @@ async function requestRaw(context2, path6, options = {}) {
51490
51490
  if (token) {
51491
51491
  headers.Authorization = `Bearer ${token}`;
51492
51492
  }
51493
- const url = `${context2.apiUrl}${path6}`;
51493
+ const url = `${context2.apiUrl}${path7}`;
51494
51494
  const method = options.method ?? "GET";
51495
51495
  let response;
51496
51496
  try {
@@ -52828,8 +52828,8 @@ function getErrorMap() {
52828
52828
 
52829
52829
  // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.js
52830
52830
  var makeIssue = (params) => {
52831
- const { data, path: path6, errorMaps, issueData } = params;
52832
- const fullPath = [...path6, ...issueData.path || []];
52831
+ const { data, path: path7, errorMaps, issueData } = params;
52832
+ const fullPath = [...path7, ...issueData.path || []];
52833
52833
  const fullIssue = {
52834
52834
  ...issueData,
52835
52835
  path: fullPath
@@ -52945,11 +52945,11 @@ var errorUtil;
52945
52945
 
52946
52946
  // ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js
52947
52947
  var ParseInputLazyPath = class {
52948
- constructor(parent, value, path6, key) {
52948
+ constructor(parent, value, path7, key) {
52949
52949
  this._cachedPath = [];
52950
52950
  this.parent = parent;
52951
52951
  this.data = value;
52952
- this._path = path6;
52952
+ this._path = path7;
52953
52953
  this._key = key;
52954
52954
  }
52955
52955
  get path() {
@@ -60038,10 +60038,10 @@ function mergeXEve(packFragments, projectXEve) {
60038
60038
  // ../shared/dist/lib/resource-uris.js
60039
60039
  var ORG_DOCS_PREFIX = "org_docs:/";
60040
60040
  var JOB_ATTACHMENTS_PREFIX = "job_attachments:/";
60041
- function normalizeOrgDocPath(path6) {
60042
- if (!path6)
60041
+ function normalizeOrgDocPath(path7) {
60042
+ if (!path7)
60043
60043
  return "/";
60044
- return path6.startsWith("/") ? path6 : `/${path6}`;
60044
+ return path7.startsWith("/") ? path7 : `/${path7}`;
60045
60045
  }
60046
60046
  function parseResourceUri(uri) {
60047
60047
  if (!uri || typeof uri !== "string")
@@ -60052,11 +60052,11 @@ function parseResourceUri(uri) {
60052
60052
  return null;
60053
60053
  const match = raw.match(/^(.*)@v(\d+)$/);
60054
60054
  if (match) {
60055
- const path6 = normalizeOrgDocPath(match[1]);
60055
+ const path7 = normalizeOrgDocPath(match[1]);
60056
60056
  const version2 = Number(match[2]);
60057
60057
  if (!Number.isFinite(version2) || version2 <= 0)
60058
60058
  return null;
60059
- return { scheme: "org_docs", path: path6, version: version2 };
60059
+ return { scheme: "org_docs", path: path7, version: version2 };
60060
60060
  }
60061
60061
  return { scheme: "org_docs", path: normalizeOrgDocPath(raw) };
60062
60062
  }
@@ -66758,9 +66758,9 @@ function getOrchestratorUrl(context2) {
66758
66758
  apiUrl.port = orchPort;
66759
66759
  return apiUrl.toString().replace(/\/$/, "");
66760
66760
  }
66761
- async function requestOrchestratorJson(context2, path6, options) {
66761
+ async function requestOrchestratorJson(context2, path7, options) {
66762
66762
  const orchUrl = getOrchestratorUrl(context2);
66763
- const url = `${orchUrl}${path6}`;
66763
+ const url = `${orchUrl}${path7}`;
66764
66764
  const headers = {};
66765
66765
  if (options?.body) {
66766
66766
  headers["Content-Type"] = "application/json";
@@ -68966,13 +68966,13 @@ async function handleCall(positionals, flags, context2) {
68966
68966
  const body = graphqlBody ?? jsonBody;
68967
68967
  const method = methodInput.toUpperCase();
68968
68968
  const resolvedBaseUrl = resolveApiBaseUrlForRuntime(api.base_url, context2.apiUrl);
68969
- const path6 = resolveApiPath(resolvedBaseUrl, pathInput);
68969
+ const path7 = resolveApiPath(resolvedBaseUrl, pathInput);
68970
68970
  const tokenOverride = getStringFlag(flags, ["token"]);
68971
68971
  const authToken = tokenOverride ?? process.env.EVE_JOB_TOKEN ?? context2.token;
68972
68972
  if (printCurl) {
68973
68973
  const curl = buildCurlCommand({
68974
68974
  method,
68975
- url: path6,
68975
+ url: path7,
68976
68976
  authToken,
68977
68977
  jsonBody: body,
68978
68978
  authHint: tokenOverride ? "override" : process.env.EVE_JOB_TOKEN ? "job" : "user"
@@ -68980,7 +68980,7 @@ async function handleCall(positionals, flags, context2) {
68980
68980
  console.log(curl);
68981
68981
  return;
68982
68982
  }
68983
- const response = await fetch(path6, {
68983
+ const response = await fetch(path7, {
68984
68984
  method,
68985
68985
  headers: buildApiHeaders(authToken, body),
68986
68986
  body: body ? JSON.stringify(body) : void 0
@@ -69076,7 +69076,7 @@ async function fetchApiSpec(context2, projectId, name, env) {
69076
69076
  function buildCurlExamples(api, spec) {
69077
69077
  const paths = spec.paths ?? {};
69078
69078
  const examples = [];
69079
- Object.entries(paths).forEach(([path6, methods]) => {
69079
+ Object.entries(paths).forEach(([path7, methods]) => {
69080
69080
  Object.entries(methods).forEach(([method, operation]) => {
69081
69081
  const lower = method.toLowerCase();
69082
69082
  if (!["get", "post", "put", "patch", "delete"].includes(lower)) {
@@ -69087,7 +69087,7 @@ function buildCurlExamples(api, spec) {
69087
69087
  const needsBody = ["post", "put", "patch"].includes(lower);
69088
69088
  const curl = buildCurlCommand({
69089
69089
  method: lower.toUpperCase(),
69090
- url: resolveApiPath(api.base_url, path6),
69090
+ url: resolveApiPath(api.base_url, path7),
69091
69091
  authToken: api.auth_mode === "eve" ? "$EVE_JOB_TOKEN" : void 0,
69092
69092
  jsonBody: needsBody ? examplePayload ?? {} : void 0,
69093
69093
  authHint: "job"
@@ -69109,15 +69109,15 @@ function extractExamplePayload(requestBody) {
69109
69109
  if (examples.length === 0) return void 0;
69110
69110
  return examples[0]?.value;
69111
69111
  }
69112
- function resolveApiPath(baseUrl, path6) {
69113
- if (path6.startsWith("http://") || path6.startsWith("https://")) {
69114
- return path6;
69112
+ function resolveApiPath(baseUrl, path7) {
69113
+ if (path7.startsWith("http://") || path7.startsWith("https://")) {
69114
+ return path7;
69115
69115
  }
69116
69116
  if (!baseUrl) {
69117
- return path6;
69117
+ return path7;
69118
69118
  }
69119
69119
  const trimmedBase = baseUrl.endsWith("/") ? baseUrl.slice(0, -1) : baseUrl;
69120
- const trimmedPath = path6.startsWith("/") ? path6 : `/${path6}`;
69120
+ const trimmedPath = path7.startsWith("/") ? path7 : `/${path7}`;
69121
69121
  return `${trimmedBase}${trimmedPath}`;
69122
69122
  }
69123
69123
  function resolveApiBaseUrlForRuntime(baseUrl, eveApiUrl) {
@@ -69314,7 +69314,7 @@ function buildCurlCommand(options) {
69314
69314
 
69315
69315
  // src/commands/db.ts
69316
69316
  var import_node_fs9 = require("node:fs");
69317
- var import_node_path9 = require("node:path");
69317
+ var import_node_path10 = require("node:path");
69318
69318
 
69319
69319
  // ../../node_modules/.pnpm/postgres@3.4.8/node_modules/postgres/src/index.js
69320
69320
  var import_os = __toESM(require("os"), 1);
@@ -70846,13 +70846,13 @@ function Subscribe(postgres2, options) {
70846
70846
  }
70847
70847
  }
70848
70848
  function handle(a, b2) {
70849
- const path6 = b2.relation.schema + "." + b2.relation.table;
70849
+ const path7 = b2.relation.schema + "." + b2.relation.table;
70850
70850
  call("*", a, b2);
70851
- call("*:" + path6, a, b2);
70852
- b2.relation.keys.length && call("*:" + path6 + "=" + b2.relation.keys.map((x2) => a[x2.name]), a, b2);
70851
+ call("*:" + path7, a, b2);
70852
+ b2.relation.keys.length && call("*:" + path7 + "=" + b2.relation.keys.map((x2) => a[x2.name]), a, b2);
70853
70853
  call(b2.command, a, b2);
70854
- call(b2.command + ":" + path6, a, b2);
70855
- b2.relation.keys.length && call(b2.command + ":" + path6 + "=" + b2.relation.keys.map((x2) => a[x2.name]), a, b2);
70854
+ call(b2.command + ":" + path7, a, b2);
70855
+ b2.relation.keys.length && call(b2.command + ":" + path7 + "=" + b2.relation.keys.map((x2) => a[x2.name]), a, b2);
70856
70856
  }
70857
70857
  function pong() {
70858
70858
  const x2 = Buffer.alloc(34);
@@ -70965,8 +70965,8 @@ function parseEvent(x) {
70965
70965
  const xs = x.match(/^(\*|insert|update|delete)?:?([^.]+?\.?[^=]+)?=?(.+)?/i) || [];
70966
70966
  if (!xs)
70967
70967
  throw new Error("Malformed subscribe pattern: " + x);
70968
- const [, command, path6, key] = xs;
70969
- return (command || "*") + (path6 ? ":" + (path6.indexOf(".") === -1 ? "public." + path6 : path6) : "") + (key ? "=" + key : "");
70968
+ const [, command, path7, key] = xs;
70969
+ return (command || "*") + (path7 ? ":" + (path7.indexOf(".") === -1 ? "public." + path7 : path7) : "") + (key ? "=" + key : "");
70970
70970
  }
70971
70971
 
70972
70972
  // ../../node_modules/.pnpm/postgres@3.4.8/node_modules/postgres/src/large.js
@@ -71111,10 +71111,10 @@ function Postgres(a, b2) {
71111
71111
  });
71112
71112
  return query;
71113
71113
  }
71114
- function file(path6, args = [], options2 = {}) {
71114
+ function file(path7, args = [], options2 = {}) {
71115
71115
  arguments.length === 2 && !Array.isArray(args) && (options2 = args, args = []);
71116
71116
  const query = new Query([], args, (query2) => {
71117
- import_fs2.default.readFile(path6, "utf8", (err, string) => {
71117
+ import_fs2.default.readFile(path7, "utf8", (err, string) => {
71118
71118
  if (err)
71119
71119
  return query2.reject(err);
71120
71120
  query2.strings = [string];
@@ -71490,6 +71490,11 @@ async function ensureMigrationsTable(db) {
71490
71490
  )
71491
71491
  `;
71492
71492
  }
71493
+ async function ensureExtensions(db) {
71494
+ console.log("Ensuring optional migration prerequisites...");
71495
+ await db`CREATE EXTENSION IF NOT EXISTS pgcrypto`;
71496
+ await db`CREATE EXTENSION IF NOT EXISTS "uuid-ossp"`;
71497
+ }
71493
71498
  async function listMigrations(options) {
71494
71499
  const db = src_default(options.connectionUrl, {
71495
71500
  max: 1,
@@ -71526,6 +71531,7 @@ async function applyMigrations(options) {
71526
71531
  });
71527
71532
  try {
71528
71533
  await ensureMigrationsTable(db);
71534
+ await ensureExtensions(db);
71529
71535
  const appliedRows = await db`
71530
71536
  SELECT name, checksum
71531
71537
  FROM schema_migrations
@@ -71534,6 +71540,7 @@ async function applyMigrations(options) {
71534
71540
  const appliedMap = new Map(appliedRows.map((row) => [row.name, row.checksum]));
71535
71541
  const results = [];
71536
71542
  const isBaseline = appliedMap.size === 0;
71543
+ console.log(`Running ${migrations.length} migration file(s) from directory: ${options.migrationsDir ?? "(inline)"}`);
71537
71544
  for (const migration of migrations) {
71538
71545
  const checksum = (0, import_crypto6.createHash)("sha256").update(migration.sql).digest("hex");
71539
71546
  const existingChecksum = appliedMap.get(migration.name);
@@ -71594,6 +71601,9 @@ async function resetSchema(connectionUrl) {
71594
71601
  }
71595
71602
 
71596
71603
  // ../migrate/dist/index.js
71604
+ var import_node_path9 = __toESM(require("node:path"), 1);
71605
+ var import_node_url = require("node:url");
71606
+ var import_meta = {};
71597
71607
  async function main() {
71598
71608
  const databaseUrl = process.env.DATABASE_URL;
71599
71609
  const migrationsDir = process.env.MIGRATIONS_DIR || "/migrations";
@@ -71625,7 +71635,8 @@ Migration failed: ${message}`);
71625
71635
  }
71626
71636
  }
71627
71637
  var scriptPath = (process.argv[1] ?? "").replace(/\\/g, "/");
71628
- var invokedAsCli = scriptPath.endsWith("/eve-migrate") || scriptPath.endsWith("/migrate/dist/index.js") || scriptPath.endsWith("/@eve/migrate/dist/index.js");
71638
+ var scriptUrl = process.argv[1] ? (0, import_node_url.pathToFileURL)(import_node_path9.default.resolve(scriptPath)).href : "";
71639
+ var invokedAsCli = import_meta.url === scriptUrl;
71629
71640
  if (invokedAsCli) {
71630
71641
  void main();
71631
71642
  }
@@ -71697,12 +71708,12 @@ function handleRlsInit(flags, jsonOutput) {
71697
71708
  throw new Error("Usage: eve db rls init --with-groups [--out <path>] [--force]");
71698
71709
  }
71699
71710
  const outPath = getStringFlag(flags, ["out"]) ?? "db/rls/helpers.sql";
71700
- const fullPath = (0, import_node_path9.resolve)(outPath);
71711
+ const fullPath = (0, import_node_path10.resolve)(outPath);
71701
71712
  if ((0, import_node_fs9.existsSync)(fullPath) && !force) {
71702
71713
  throw new Error(`RLS helper file already exists: ${fullPath}
71703
71714
  Use --force to overwrite.`);
71704
71715
  }
71705
- (0, import_node_fs9.mkdirSync)((0, import_node_path9.dirname)(fullPath), { recursive: true });
71716
+ (0, import_node_fs9.mkdirSync)((0, import_node_path10.dirname)(fullPath), { recursive: true });
71706
71717
  (0, import_node_fs9.writeFileSync)(fullPath, renderRlsHelperTemplate());
71707
71718
  const payload = {
71708
71719
  path: fullPath,
@@ -71791,7 +71802,7 @@ async function handleSql(positionals, flags, context2, jsonOutput) {
71791
71802
  const sqlPositionals = target.mode === "env" ? target.remainingPositionals : positionals;
71792
71803
  const sqlInput = getStringFlag(flags, ["sql"]) ?? sqlPositionals.join(" ");
71793
71804
  const fileInput = getStringFlag(flags, ["file"]);
71794
- const sqlText = fileInput ? (0, import_node_fs9.readFileSync)((0, import_node_path9.resolve)(fileInput), "utf-8") : sqlInput;
71805
+ const sqlText = fileInput ? (0, import_node_fs9.readFileSync)((0, import_node_path10.resolve)(fileInput), "utf-8") : sqlInput;
71795
71806
  if (!sqlText) {
71796
71807
  throw new Error("Usage: eve db sql --env <name>|--url <postgres-url> --sql <statement> [--params <json>] [--write]");
71797
71808
  }
@@ -71879,7 +71890,7 @@ function resolveDbUrlFromEnv() {
71879
71890
  return readEnvFileValue("EVE_DB_URL");
71880
71891
  }
71881
71892
  function readEnvFileValue(key) {
71882
- const envPath = (0, import_node_path9.resolve)(".env");
71893
+ const envPath = (0, import_node_path10.resolve)(".env");
71883
71894
  if (!(0, import_node_fs9.existsSync)(envPath)) return void 0;
71884
71895
  const content = (0, import_node_fs9.readFileSync)(envPath, "utf-8");
71885
71896
  for (const rawLine of content.split(/\r?\n/)) {
@@ -71898,7 +71909,7 @@ function readEnvFileValue(key) {
71898
71909
  return void 0;
71899
71910
  }
71900
71911
  function loadMigrationsFromPath(migrationsPath) {
71901
- const fullPath = (0, import_node_path9.resolve)(migrationsPath);
71912
+ const fullPath = (0, import_node_path10.resolve)(migrationsPath);
71902
71913
  if (!(0, import_node_fs9.existsSync)(fullPath)) {
71903
71914
  throw new Error(`Migrations directory not found: ${fullPath}`);
71904
71915
  }
@@ -71914,7 +71925,7 @@ Example: 20260128100000_create_users.sql`
71914
71925
  }
71915
71926
  return files.map((file) => ({
71916
71927
  name: file,
71917
- sql: (0, import_node_fs9.readFileSync)((0, import_node_path9.join)(fullPath, file), "utf-8")
71928
+ sql: (0, import_node_fs9.readFileSync)((0, import_node_path10.join)(fullPath, file), "utf-8")
71918
71929
  }));
71919
71930
  }
71920
71931
  async function executeSqlDirect(connectionUrl, sql, params, allowWrite) {
@@ -72164,11 +72175,11 @@ function handleNew(positionals, flags) {
72164
72175
  ].join("");
72165
72176
  const filename = `${timestamp}_${normalizedDescription}.sql`;
72166
72177
  const migrationsPath = getStringFlag(flags, ["path"]) ?? "db/migrations";
72167
- const fullPath = (0, import_node_path9.resolve)(migrationsPath);
72178
+ const fullPath = (0, import_node_path10.resolve)(migrationsPath);
72168
72179
  if (!(0, import_node_fs9.existsSync)(fullPath)) {
72169
72180
  (0, import_node_fs9.mkdirSync)(fullPath, { recursive: true });
72170
72181
  }
72171
- const filePath = (0, import_node_path9.join)(fullPath, filename);
72182
+ const filePath = (0, import_node_path10.join)(fullPath, filename);
72172
72183
  if ((0, import_node_fs9.existsSync)(filePath)) {
72173
72184
  throw new Error(`Migration file already exists: ${filePath}`);
72174
72185
  }
@@ -72492,9 +72503,9 @@ function padRight6(str, width) {
72492
72503
 
72493
72504
  // src/commands/skills.ts
72494
72505
  var fs3 = __toESM(require("node:fs"));
72495
- var path4 = __toESM(require("node:path"));
72506
+ var path5 = __toESM(require("node:path"));
72496
72507
  var import_node_child_process7 = require("node:child_process");
72497
- var UNIVERSAL_SKILLS_DIR = path4.join(".agents", "skills");
72508
+ var UNIVERSAL_SKILLS_DIR = path5.join(".agents", "skills");
72498
72509
  var PRIVATE_SKILLS_DIRNAME = "private-skills";
72499
72510
  async function handleSkills(subcommand, positionals, flags) {
72500
72511
  switch (subcommand) {
@@ -72510,8 +72521,8 @@ async function handleInstall(positionals, flags) {
72510
72521
  const skipInstalled = Boolean(flags["skip-installed"]);
72511
72522
  const projectRoot = process.cwd();
72512
72523
  const skillsBin = resolveSkillsBinary();
72513
- const manifestPath = path4.join(projectRoot, "skills.txt");
72514
- const skillsDir = path4.join(projectRoot, UNIVERSAL_SKILLS_DIR);
72524
+ const manifestPath = path5.join(projectRoot, "skills.txt");
72525
+ const skillsDir = path5.join(projectRoot, UNIVERSAL_SKILLS_DIR);
72515
72526
  const source = positionals[0];
72516
72527
  if (source) {
72517
72528
  const parsed = parseSkillSource(source);
@@ -72544,7 +72555,7 @@ async function handleInstall(positionals, flags) {
72544
72555
  function installSkill(skillsBin, skill, projectRoot) {
72545
72556
  console.log(` Installing: ${skill.source} (${skill.type})`);
72546
72557
  const localDir = resolveLocalDirIfExists(skill, projectRoot);
72547
- const wantsExcludePrivate = localDir !== null && fs3.existsSync(path4.join(localDir, PRIVATE_SKILLS_DIRNAME)) && !sourcePathExplicitlyTargetsPrivate(skill.source);
72558
+ const wantsExcludePrivate = localDir !== null && fs3.existsSync(path5.join(localDir, PRIVATE_SKILLS_DIRNAME)) && !sourcePathExplicitlyTargetsPrivate(skill.source);
72548
72559
  try {
72549
72560
  const agents = ["claude-code", "codex", "gemini-cli"];
72550
72561
  if (wantsExcludePrivate && localDir) {
@@ -72555,7 +72566,7 @@ function installSkill(skillsBin, skill, projectRoot) {
72555
72566
  }
72556
72567
  console.log(` Installing ${skillDirs.length} public skill(s) (excluding ${PRIVATE_SKILLS_DIRNAME}/)...`);
72557
72568
  for (const dir of skillDirs) {
72558
- const rel = path4.relative(projectRoot, dir);
72569
+ const rel = path5.relative(projectRoot, dir);
72559
72570
  const installSource = rel.startsWith(".") ? rel : `./${rel}`;
72560
72571
  for (const agent of agents) {
72561
72572
  (0, import_node_child_process7.execSync)(`${skillsBin} add ${JSON.stringify(installSource)} -a ${agent} -s '*' -y --full-depth`, {
@@ -72596,8 +72607,8 @@ ${source}
72596
72607
  }
72597
72608
  function resolveSkillsBinary() {
72598
72609
  const candidates = [
72599
- path4.resolve(__dirname, "..", "node_modules", ".bin", "skills"),
72600
- path4.resolve(__dirname, "..", "..", ".bin", "skills")
72610
+ path5.resolve(__dirname, "..", "node_modules", ".bin", "skills"),
72611
+ path5.resolve(__dirname, "..", "..", ".bin", "skills")
72601
72612
  ];
72602
72613
  for (const candidate of candidates) {
72603
72614
  if (fs3.existsSync(candidate)) return candidate;
@@ -72618,19 +72629,19 @@ function commandExists(cmd) {
72618
72629
  function isGlobPattern(line) {
72619
72630
  return line.includes("*");
72620
72631
  }
72621
- function expandGlobPattern(pattern, basePath) {
72632
+ function expandGlobPattern(pattern, basePath, explicitPrivateTarget) {
72622
72633
  const sources = [];
72623
72634
  const isRecursive = pattern.endsWith("/**");
72624
72635
  const basePattern = pattern.replace(/\/\*+$/, "");
72625
72636
  let searchRoot;
72626
72637
  if (basePattern.startsWith("./") || basePattern.startsWith("../")) {
72627
- searchRoot = path4.resolve(path4.dirname(basePath), basePattern);
72638
+ searchRoot = path5.resolve(path5.dirname(basePath), basePattern);
72628
72639
  } else if (basePattern.startsWith("/")) {
72629
72640
  searchRoot = basePattern;
72630
72641
  } else if (basePattern.startsWith("~")) {
72631
72642
  searchRoot = basePattern.replace(/^~/, process.env.HOME || "~");
72632
72643
  } else {
72633
- searchRoot = path4.resolve(path4.dirname(basePath), basePattern);
72644
+ searchRoot = path5.resolve(path5.dirname(basePath), basePattern);
72634
72645
  }
72635
72646
  if (!fs3.existsSync(searchRoot)) {
72636
72647
  console.warn(`Warning: Glob pattern base directory not found: ${searchRoot}`);
@@ -72643,12 +72654,18 @@ function expandGlobPattern(pattern, basePath) {
72643
72654
  if (!entry.isDirectory() || entry.name.startsWith(".")) {
72644
72655
  continue;
72645
72656
  }
72646
- const fullPath = path4.join(dir, entry.name);
72647
- const skillMdPath = path4.join(fullPath, "SKILL.md");
72657
+ if (!explicitPrivateTarget && entry.name === PRIVATE_SKILLS_DIRNAME) {
72658
+ continue;
72659
+ }
72660
+ const fullPath = path5.join(dir, entry.name);
72661
+ const skillMdPath = path5.join(fullPath, "SKILL.md");
72648
72662
  if (fs3.existsSync(skillMdPath)) {
72649
72663
  const name = entry.name;
72650
- const relativePath = path4.relative(path4.dirname(basePath), fullPath);
72664
+ const relativePath = path5.relative(path5.dirname(basePath), fullPath);
72651
72665
  const source = relativePath.startsWith(".") ? relativePath : `./${relativePath}`;
72666
+ if (!explicitPrivateTarget && pathContainsPrivateSkills(source)) {
72667
+ continue;
72668
+ }
72652
72669
  sources.push({
72653
72670
  raw: pattern,
72654
72671
  source,
@@ -72677,7 +72694,8 @@ function parseSkillsManifest(manifestPath) {
72677
72694
  const line = rawLine.split("#")[0].trim();
72678
72695
  if (!line) continue;
72679
72696
  if (isGlobPattern(line)) {
72680
- const expanded = expandGlobPattern(line, manifestPath);
72697
+ const explicitPrivateTarget = sourcePathExplicitlyTargetsPrivate(line);
72698
+ const expanded = expandGlobPattern(line, manifestPath, explicitPrivateTarget);
72681
72699
  sources.push(...expanded);
72682
72700
  } else {
72683
72701
  sources.push(parseSkillSource(line));
@@ -72696,22 +72714,22 @@ function parseSkillSource(line) {
72696
72714
  return { raw: line, source: line, type: "github", name: name2 };
72697
72715
  }
72698
72716
  if (line.startsWith("/") || line.startsWith("~")) {
72699
- const name2 = path4.basename(line);
72717
+ const name2 = path5.basename(line);
72700
72718
  return { raw: line, source: line, type: "local", name: name2 };
72701
72719
  }
72702
72720
  if (line.startsWith("./") || line.startsWith("../")) {
72703
- const name2 = path4.basename(line);
72721
+ const name2 = path5.basename(line);
72704
72722
  return { raw: line, source: line, type: "local", name: name2 };
72705
72723
  }
72706
72724
  if (fs3.existsSync(line)) {
72707
- const name2 = path4.basename(line);
72725
+ const name2 = path5.basename(line);
72708
72726
  return { raw: line, source: `./${line}`, type: "local", name: name2 };
72709
72727
  }
72710
72728
  if (line.includes("/") && !line.includes(" ")) {
72711
72729
  const name2 = extractNameFromRepo(line);
72712
72730
  return { raw: line, source: line, type: "github", name: name2 };
72713
72731
  }
72714
- const name = path4.basename(line);
72732
+ const name = path5.basename(line);
72715
72733
  return { raw: line, source: `./${line}`, type: "local", name };
72716
72734
  }
72717
72735
  function extractNameFromUrl(url) {
@@ -72719,7 +72737,7 @@ function extractNameFromUrl(url) {
72719
72737
  if (match) {
72720
72738
  return match[1].replace(/\.git$/, "");
72721
72739
  }
72722
- return path4.basename(new URL(url).pathname).replace(/\.git$/, "");
72740
+ return path5.basename(new URL(url).pathname).replace(/\.git$/, "");
72723
72741
  }
72724
72742
  function extractNameFromRepo(repo) {
72725
72743
  const parts = repo.split("/");
@@ -72739,9 +72757,9 @@ function getInstalledSkills(skillsDir) {
72739
72757
  return installed;
72740
72758
  }
72741
72759
  function ensureSkillsSymlink(projectRoot) {
72742
- const agentSkills = path4.join(projectRoot, UNIVERSAL_SKILLS_DIR);
72743
- const claudeDir = path4.join(projectRoot, ".claude");
72744
- const claudeSkills = path4.join(claudeDir, "skills");
72760
+ const agentSkills = path5.join(projectRoot, UNIVERSAL_SKILLS_DIR);
72761
+ const claudeDir = path5.join(projectRoot, ".claude");
72762
+ const claudeSkills = path5.join(claudeDir, "skills");
72745
72763
  if (!fs3.existsSync(agentSkills)) {
72746
72764
  fs3.mkdirSync(agentSkills, { recursive: true });
72747
72765
  }
@@ -72755,9 +72773,9 @@ function ensureSkillsSymlink(projectRoot) {
72755
72773
  const entries = fs3.readdirSync(agentSkills, { withFileTypes: true });
72756
72774
  for (const entry of entries) {
72757
72775
  if (!entry.isDirectory() || entry.name.startsWith(".")) continue;
72758
- const dst = path4.join(claudeSkills, entry.name);
72776
+ const dst = path5.join(claudeSkills, entry.name);
72759
72777
  if (fs3.existsSync(dst)) continue;
72760
- fs3.symlinkSync(path4.join("..", "..", UNIVERSAL_SKILLS_DIR, entry.name), dst);
72778
+ fs3.symlinkSync(path5.join("..", "..", UNIVERSAL_SKILLS_DIR, entry.name), dst);
72761
72779
  }
72762
72780
  }
72763
72781
  } catch {
@@ -72790,7 +72808,7 @@ function resolveLocalDirIfExists(skill, projectRoot) {
72790
72808
  if (source.startsWith("~")) {
72791
72809
  source = source.replace(/^~/, process.env.HOME || "~");
72792
72810
  }
72793
- const abs = path4.isAbsolute(source) ? source : path4.resolve(projectRoot, source);
72811
+ const abs = path5.isAbsolute(source) ? source : path5.resolve(projectRoot, source);
72794
72812
  try {
72795
72813
  if (!fs3.existsSync(abs)) return null;
72796
72814
  if (!fs3.statSync(abs).isDirectory()) return null;
@@ -72800,8 +72818,12 @@ function resolveLocalDirIfExists(skill, projectRoot) {
72800
72818
  }
72801
72819
  }
72802
72820
  function sourcePathExplicitlyTargetsPrivate(source) {
72803
- const normalized = source.replace(/\\/g, "/");
72804
- return normalized === PRIVATE_SKILLS_DIRNAME || normalized.includes(`/${PRIVATE_SKILLS_DIRNAME}/`);
72821
+ return pathContainsPrivateSkills(source);
72822
+ }
72823
+ function pathContainsPrivateSkills(source) {
72824
+ const normalized = path5.normalize(source).replace(/\\/g, "/");
72825
+ const segments = normalized.split("/").filter(Boolean);
72826
+ return segments.includes(PRIVATE_SKILLS_DIRNAME);
72805
72827
  }
72806
72828
  function findSkillDirs(rootDir, opts) {
72807
72829
  const out = [];
@@ -72827,7 +72849,7 @@ function findSkillDirs(rootDir, opts) {
72827
72849
  for (const entry of entries) {
72828
72850
  if (!entry.isDirectory()) continue;
72829
72851
  if (shouldSkipDir(dir, entry.name)) continue;
72830
- walk(path4.join(dir, entry.name));
72852
+ walk(path5.join(dir, entry.name));
72831
72853
  }
72832
72854
  };
72833
72855
  walk(rootDir);
@@ -73095,8 +73117,8 @@ async function handleAdmin(subcommand, positionals, flags, context2) {
73095
73117
  if (untilRaw) params.set("until", untilRaw);
73096
73118
  if (limit) params.set("limit", limit);
73097
73119
  const qs = params.toString();
73098
- const path6 = `/admin/orgs/${orgId}/balance/transactions${qs ? `?${qs}` : ""}`;
73099
- const response = await requestJson(context2, path6);
73120
+ const path7 = `/admin/orgs/${orgId}/balance/transactions${qs ? `?${qs}` : ""}`;
73121
+ const response = await requestJson(context2, path7);
73100
73122
  if (json) {
73101
73123
  outputJson(response, true);
73102
73124
  } else {
@@ -73134,8 +73156,8 @@ ${response.length} transaction(s)`);
73134
73156
  if (untilRaw) params.set("until", untilRaw);
73135
73157
  if (limit) params.set("limit", limit);
73136
73158
  const qs = params.toString();
73137
- const path6 = `/admin/orgs/${orgId}/usage${qs ? `?${qs}` : ""}`;
73138
- const response = await requestJson(context2, path6);
73159
+ const path7 = `/admin/orgs/${orgId}/usage${qs ? `?${qs}` : ""}`;
73160
+ const response = await requestJson(context2, path7);
73139
73161
  if (json) {
73140
73162
  outputJson(response, true);
73141
73163
  } else {
@@ -73159,8 +73181,8 @@ ${response.length} record(s)`);
73159
73181
  if (sinceRaw) params.set("since", parseSinceValue4(sinceRaw));
73160
73182
  if (untilRaw) params.set("until", untilRaw);
73161
73183
  const qs = params.toString();
73162
- const path6 = `/admin/orgs/${orgId}/usage/summary${qs ? `?${qs}` : ""}`;
73163
- const response = await requestJson(context2, path6);
73184
+ const path7 = `/admin/orgs/${orgId}/usage/summary${qs ? `?${qs}` : ""}`;
73185
+ const response = await requestJson(context2, path7);
73164
73186
  if (json) {
73165
73187
  outputJson(response, true);
73166
73188
  } else {
@@ -73196,8 +73218,8 @@ ${response.length} record(s)`);
73196
73218
  if (limit) params.set("limit", limit);
73197
73219
  if (offset) params.set("offset", offset);
73198
73220
  const query = params.toString();
73199
- const path6 = `/admin/ingress-aliases${query ? `?${query}` : ""}`;
73200
- const response = await requestJson(context2, path6);
73221
+ const path7 = `/admin/ingress-aliases${query ? `?${query}` : ""}`;
73222
+ const response = await requestJson(context2, path7);
73201
73223
  if (json) {
73202
73224
  outputJson(response, true);
73203
73225
  return;
@@ -73353,7 +73375,7 @@ async function fetchGitHubKeys2(username) {
73353
73375
  // src/commands/agents.ts
73354
73376
  var import_node_child_process8 = require("node:child_process");
73355
73377
  var import_node_fs10 = require("node:fs");
73356
- var import_node_path10 = require("node:path");
73378
+ var import_node_path11 = require("node:path");
73357
73379
  var import_yaml3 = require("yaml");
73358
73380
  function readYamlFile(filePath) {
73359
73381
  const raw = (0, import_node_fs10.readFileSync)(filePath, "utf-8");
@@ -73368,9 +73390,9 @@ function resolveAgentsConfigPaths(repoRoot, manifest) {
73368
73390
  const agentsBlock = xEve["agents"] || {};
73369
73391
  const chatBlock = xEve["chat"] || {};
73370
73392
  const manifestChat = manifest["chat"] || {};
73371
- const agentsPath = (0, import_node_path10.resolve)(repoRoot, pickString(agentsBlock.config_path) ?? "agents/agents.yaml");
73372
- const teamsPath = (0, import_node_path10.resolve)(repoRoot, pickString(agentsBlock.teams_path) ?? "agents/teams.yaml");
73373
- const chatPath = (0, import_node_path10.resolve)(
73393
+ const agentsPath = (0, import_node_path11.resolve)(repoRoot, pickString(agentsBlock.config_path) ?? "agents/agents.yaml");
73394
+ const teamsPath = (0, import_node_path11.resolve)(repoRoot, pickString(agentsBlock.teams_path) ?? "agents/teams.yaml");
73395
+ const chatPath = (0, import_node_path11.resolve)(
73374
73396
  repoRoot,
73375
73397
  pickString(chatBlock.config_path) ?? pickString(manifestChat.config_path) ?? "agents/chat.yaml"
73376
73398
  );
@@ -73379,11 +73401,11 @@ function resolveAgentsConfigPaths(repoRoot, manifest) {
73379
73401
  function pickString(value) {
73380
73402
  return typeof value === "string" && value.trim().length > 0 ? value : void 0;
73381
73403
  }
73382
- function ensureFileExists(path6, label) {
73383
- if (!(0, import_node_fs10.existsSync)(path6)) {
73384
- throw new Error(`Missing ${label} at ${path6}. Update manifest config_path or add the file.`);
73404
+ function ensureFileExists(path7, label) {
73405
+ if (!(0, import_node_fs10.existsSync)(path7)) {
73406
+ throw new Error(`Missing ${label} at ${path7}. Update manifest config_path or add the file.`);
73385
73407
  }
73386
- return path6;
73408
+ return path7;
73387
73409
  }
73388
73410
  function isLocalApiUrl(apiUrl) {
73389
73411
  try {
@@ -73395,8 +73417,8 @@ function isLocalApiUrl(apiUrl) {
73395
73417
  }
73396
73418
  }
73397
73419
  function loadAgentsConfig(repoRoot) {
73398
- const eveDir = (0, import_node_path10.join)(repoRoot, ".eve");
73399
- const manifestPath = (0, import_node_path10.join)(eveDir, "manifest.yaml");
73420
+ const eveDir = (0, import_node_path11.join)(repoRoot, ".eve");
73421
+ const manifestPath = (0, import_node_path11.join)(eveDir, "manifest.yaml");
73400
73422
  if ((0, import_node_fs10.existsSync)(manifestPath)) {
73401
73423
  const manifest = readYamlFile(manifestPath);
73402
73424
  const xEve = manifest["x-eve"] || manifest["x_eve"] || {};
@@ -73485,9 +73507,9 @@ async function resolvePacksAndMerge(repoRoot, manifest, projectSlug) {
73485
73507
  chat_hash: simpleHash(JSON.stringify(mergedChat))
73486
73508
  }
73487
73509
  };
73488
- const eveDir = (0, import_node_path10.join)(repoRoot, ".eve");
73510
+ const eveDir = (0, import_node_path11.join)(repoRoot, ".eve");
73489
73511
  (0, import_node_fs10.mkdirSync)(eveDir, { recursive: true });
73490
- const lockfilePath = (0, import_node_path10.join)(eveDir, "packs.lock.yaml");
73512
+ const lockfilePath = (0, import_node_path11.join)(eveDir, "packs.lock.yaml");
73491
73513
  (0, import_node_fs10.writeFileSync)(lockfilePath, (0, import_yaml3.stringify)(lockfile), "utf-8");
73492
73514
  console.log(` \u2713 Lockfile written: .eve/packs.lock.yaml`);
73493
73515
  const packRefs = resolvedPacks.map((p) => ({ id: p.id, source: p.source, ref: p.ref }));
@@ -73561,7 +73583,7 @@ async function handleAgents(subcommand, positionals, flags, context2) {
73561
73583
  const command = subcommand ?? "config";
73562
73584
  const json = Boolean(flags.json);
73563
73585
  const includeHarnesses = !(getBooleanFlag(flags, ["no-harnesses"]) ?? false);
73564
- const repoRoot = (0, import_node_path10.resolve)(getStringFlag(flags, ["repo-dir", "repo_dir", "dir", "path"]) ?? process.cwd());
73586
+ const repoRoot = (0, import_node_path11.resolve)(getStringFlag(flags, ["repo-dir", "repo_dir", "dir", "path"]) ?? process.cwd());
73565
73587
  switch (command) {
73566
73588
  case "config": {
73567
73589
  const result = loadAgentsConfig(repoRoot);
@@ -73630,7 +73652,7 @@ async function handleAgents(subcommand, positionals, flags, context2) {
73630
73652
  if (dirty && !allowDirty) {
73631
73653
  throw new Error("Working tree is dirty. Commit changes or pass --allow-dirty to sync anyway.");
73632
73654
  }
73633
- const manifestPath = (0, import_node_path10.join)(repoRoot, ".eve", "manifest.yaml");
73655
+ const manifestPath = (0, import_node_path11.join)(repoRoot, ".eve", "manifest.yaml");
73634
73656
  if (!(0, import_node_fs10.existsSync)(manifestPath)) {
73635
73657
  throw new Error(`Missing manifest at ${manifestPath}. Expected .eve/manifest.yaml.`);
73636
73658
  }
@@ -73786,7 +73808,7 @@ function formatAgeSeconds(isoDate) {
73786
73808
 
73787
73809
  // src/commands/init.ts
73788
73810
  var fs4 = __toESM(require("node:fs"));
73789
- var path5 = __toESM(require("node:path"));
73811
+ var path6 = __toESM(require("node:path"));
73790
73812
  var os3 = __toESM(require("node:os"));
73791
73813
  var import_node_child_process9 = require("node:child_process");
73792
73814
  var DEFAULT_TEMPLATE = "https://github.com/incept5/eve-horizon-starter";
@@ -73796,8 +73818,8 @@ async function handleInit(positionals, flags) {
73796
73818
  const template = getStringFlag(flags, ["template", "t"]) || DEFAULT_TEMPLATE;
73797
73819
  const branch = getStringFlag(flags, ["branch", "b"]) || DEFAULT_BRANCH;
73798
73820
  const skipSkills = Boolean(flags["skip-skills"]);
73799
- const resolvedTarget = path5.resolve(targetDir);
73800
- const targetName = path5.basename(resolvedTarget);
73821
+ const resolvedTarget = path6.resolve(targetDir);
73822
+ const targetName = path6.basename(resolvedTarget);
73801
73823
  const isCurrentDir = targetDir === ".";
73802
73824
  if (isCurrentDir) {
73803
73825
  if (fs4.existsSync(resolvedTarget)) {
@@ -73824,7 +73846,7 @@ async function handleInit(positionals, flags) {
73824
73846
  console.log(`Template: ${template}`);
73825
73847
  console.log(`Branch: ${branch}`);
73826
73848
  console.log("");
73827
- const tempDir = fs4.mkdtempSync(path5.join(os3.tmpdir(), "eve-init-"));
73849
+ const tempDir = fs4.mkdtempSync(path6.join(os3.tmpdir(), "eve-init-"));
73828
73850
  try {
73829
73851
  console.log("Downloading template...");
73830
73852
  const cloneResult = (0, import_node_child_process9.spawnSync)("git", ["clone", "--depth=1", `--branch=${branch}`, template, tempDir], {
@@ -73837,7 +73859,7 @@ async function handleInit(positionals, flags) {
73837
73859
  ${cloneResult.stderr || cloneResult.stdout}`
73838
73860
  );
73839
73861
  }
73840
- const gitDir = path5.join(tempDir, ".git");
73862
+ const gitDir = path6.join(tempDir, ".git");
73841
73863
  if (fs4.existsSync(gitDir)) {
73842
73864
  fs4.rmSync(gitDir, { recursive: true, force: true });
73843
73865
  }
@@ -73885,8 +73907,8 @@ ${cloneResult.stderr || cloneResult.stdout}`
73885
73907
  function copyDirRecursive(src, dest) {
73886
73908
  const entries = fs4.readdirSync(src, { withFileTypes: true });
73887
73909
  for (const entry of entries) {
73888
- const srcPath = path5.join(src, entry.name);
73889
- const destPath = path5.join(dest, entry.name);
73910
+ const srcPath = path6.join(src, entry.name);
73911
+ const destPath = path6.join(dest, entry.name);
73890
73912
  if (entry.isDirectory()) {
73891
73913
  if (!fs4.existsSync(destPath)) {
73892
73914
  fs4.mkdirSync(destPath, { recursive: true });
@@ -73904,8 +73926,8 @@ function copyDirRecursive(src, dest) {
73904
73926
  }
73905
73927
  function resolveSkillsBinary2() {
73906
73928
  const candidates = [
73907
- path5.resolve(__dirname, "..", "node_modules", ".bin", "skills"),
73908
- path5.resolve(__dirname, "..", "..", ".bin", "skills")
73929
+ path6.resolve(__dirname, "..", "node_modules", ".bin", "skills"),
73930
+ path6.resolve(__dirname, "..", "..", ".bin", "skills")
73909
73931
  ];
73910
73932
  for (const candidate of candidates) {
73911
73933
  if (fs4.existsSync(candidate)) return candidate;
@@ -73917,7 +73939,7 @@ function resolveSkillsBinary2() {
73917
73939
  );
73918
73940
  }
73919
73941
  async function installSkills(projectRoot) {
73920
- const skillsTxt = path5.join(projectRoot, "skills.txt");
73942
+ const skillsTxt = path6.join(projectRoot, "skills.txt");
73921
73943
  if (!fs4.existsSync(skillsTxt)) {
73922
73944
  console.log("No skills.txt found, skipping skill installation");
73923
73945
  return;
@@ -73961,9 +73983,9 @@ async function installSkills(projectRoot) {
73961
73983
  }
73962
73984
  }
73963
73985
  function ensureSkillsSymlink2(projectRoot) {
73964
- const agentSkills = path5.join(projectRoot, ".agents", "skills");
73965
- const claudeDir = path5.join(projectRoot, ".claude");
73966
- const claudeSkills = path5.join(claudeDir, "skills");
73986
+ const agentSkills = path6.join(projectRoot, ".agents", "skills");
73987
+ const claudeDir = path6.join(projectRoot, ".claude");
73988
+ const claudeSkills = path6.join(claudeDir, "skills");
73967
73989
  if (!fs4.existsSync(agentSkills)) {
73968
73990
  fs4.mkdirSync(agentSkills, { recursive: true });
73969
73991
  }
@@ -73977,9 +73999,9 @@ function ensureSkillsSymlink2(projectRoot) {
73977
73999
  const entries = fs4.readdirSync(agentSkills, { withFileTypes: true });
73978
74000
  for (const entry of entries) {
73979
74001
  if (!entry.isDirectory() || entry.name.startsWith(".")) continue;
73980
- const dst = path5.join(claudeSkills, entry.name);
74002
+ const dst = path6.join(claudeSkills, entry.name);
73981
74003
  if (fs4.existsSync(dst)) continue;
73982
- fs4.symlinkSync(path5.join("..", "..", ".agents", "skills", entry.name), dst);
74004
+ fs4.symlinkSync(path6.join("..", "..", ".agents", "skills", entry.name), dst);
73983
74005
  }
73984
74006
  }
73985
74007
  } catch {
@@ -74006,7 +74028,7 @@ function ensureSkillsSymlink2(projectRoot) {
74006
74028
 
74007
74029
  // src/commands/release.ts
74008
74030
  var import_node_fs11 = require("node:fs");
74009
- var import_node_path11 = require("node:path");
74031
+ var import_node_path12 = require("node:path");
74010
74032
  async function handleRelease2(subcommand, positionals, flags, context2) {
74011
74033
  const json = Boolean(flags.json);
74012
74034
  switch (subcommand) {
@@ -74018,7 +74040,7 @@ async function handleRelease2(subcommand, positionals, flags, context2) {
74018
74040
  let projectId = typeof flags.project === "string" ? flags.project : context2.projectId;
74019
74041
  if (!projectId) {
74020
74042
  const dir = typeof flags.dir === "string" ? flags.dir : process.cwd();
74021
- const manifestPath = (0, import_node_path11.join)(dir, ".eve", "manifest.yaml");
74043
+ const manifestPath = (0, import_node_path12.join)(dir, ".eve", "manifest.yaml");
74022
74044
  try {
74023
74045
  const yaml = (0, import_node_fs11.readFileSync)(manifestPath, "utf-8");
74024
74046
  const projectMatch = yaml.match(/^project:\s*(\S+)/m);
@@ -74070,7 +74092,7 @@ Make sure the release exists and the tag is correct.`
74070
74092
 
74071
74093
  // src/commands/manifest.ts
74072
74094
  var import_node_fs12 = require("node:fs");
74073
- var import_node_path12 = require("node:path");
74095
+ var import_node_path13 = require("node:path");
74074
74096
  async function handleManifest(subcommand, positionals, flags, context2) {
74075
74097
  const json = Boolean(flags.json);
74076
74098
  switch (subcommand) {
@@ -74080,7 +74102,7 @@ async function handleManifest(subcommand, positionals, flags, context2) {
74080
74102
  const validateSecretsFlag = flags["validate-secrets"] ?? flags.validate_secrets;
74081
74103
  const validateSecrets = toBoolean(validateSecretsFlag) ?? false;
74082
74104
  const dir = typeof flags.dir === "string" ? flags.dir : process.cwd();
74083
- const manifestPath = getStringFlag(flags, ["path"]) ?? (0, import_node_path12.join)(dir, ".eve", "manifest.yaml");
74105
+ const manifestPath = getStringFlag(flags, ["path"]) ?? (0, import_node_path13.join)(dir, ".eve", "manifest.yaml");
74084
74106
  let manifestYaml;
74085
74107
  if (!useLatest) {
74086
74108
  try {
@@ -74153,10 +74175,10 @@ async function handleManifest(subcommand, positionals, flags, context2) {
74153
74175
 
74154
74176
  // src/commands/packs.ts
74155
74177
  var import_node_fs13 = require("node:fs");
74156
- var import_node_path13 = require("node:path");
74178
+ var import_node_path14 = require("node:path");
74157
74179
  var import_yaml4 = require("yaml");
74158
74180
  async function handlePacks(subcommand, _rest, flags, _context) {
74159
- const repoRoot = (0, import_node_path13.resolve)(getStringFlag(flags, ["repo-dir", "repo_dir", "dir", "path"]) ?? process.cwd());
74181
+ const repoRoot = (0, import_node_path14.resolve)(getStringFlag(flags, ["repo-dir", "repo_dir", "dir", "path"]) ?? process.cwd());
74160
74182
  switch (subcommand) {
74161
74183
  case "status": {
74162
74184
  printPacksStatus(repoRoot);
@@ -74172,8 +74194,8 @@ async function handlePacks(subcommand, _rest, flags, _context) {
74172
74194
  }
74173
74195
  }
74174
74196
  function printPacksStatus(repoRoot) {
74175
- const lockfilePath = (0, import_node_path13.join)(repoRoot, ".eve", "packs.lock.yaml");
74176
- const manifestPath = (0, import_node_path13.join)(repoRoot, ".eve", "manifest.yaml");
74197
+ const lockfilePath = (0, import_node_path14.join)(repoRoot, ".eve", "packs.lock.yaml");
74198
+ const manifestPath = (0, import_node_path14.join)(repoRoot, ".eve", "manifest.yaml");
74177
74199
  if (!(0, import_node_fs13.existsSync)(lockfilePath)) {
74178
74200
  console.log("No lockfile found at .eve/packs.lock.yaml");
74179
74201
  console.log('Run "eve agents sync" to resolve packs and generate the lockfile.');
@@ -74260,8 +74282,8 @@ function detectDrift(lock, manifestPacks) {
74260
74282
  }
74261
74283
  function printPacksResolve(repoRoot, dryRun) {
74262
74284
  if (dryRun) {
74263
- const lockfilePath = (0, import_node_path13.join)(repoRoot, ".eve", "packs.lock.yaml");
74264
- const manifestPath = (0, import_node_path13.join)(repoRoot, ".eve", "manifest.yaml");
74285
+ const lockfilePath = (0, import_node_path14.join)(repoRoot, ".eve", "packs.lock.yaml");
74286
+ const manifestPath = (0, import_node_path14.join)(repoRoot, ".eve", "manifest.yaml");
74265
74287
  if (!(0, import_node_fs13.existsSync)(manifestPath)) {
74266
74288
  throw new Error("No manifest found at .eve/manifest.yaml");
74267
74289
  }
@@ -75175,7 +75197,7 @@ Cursor: ${result.cursor}`);
75175
75197
 
75176
75198
  // src/commands/migrate.ts
75177
75199
  var import_node_fs14 = require("node:fs");
75178
- var import_node_path14 = require("node:path");
75200
+ var import_node_path15 = require("node:path");
75179
75201
  var import_yaml5 = require("yaml");
75180
75202
  async function handleMigrate2(subcommand, _rest, _flags) {
75181
75203
  switch (subcommand) {
@@ -75195,7 +75217,7 @@ async function migrateSkillsToPacks() {
75195
75217
  if (!repoRoot) {
75196
75218
  throw new Error("Not in a git repository. Run this from your project root.");
75197
75219
  }
75198
- const skillsTxtPath = (0, import_node_path14.join)(repoRoot, "skills.txt");
75220
+ const skillsTxtPath = (0, import_node_path15.join)(repoRoot, "skills.txt");
75199
75221
  if (!(0, import_node_fs14.existsSync)(skillsTxtPath)) {
75200
75222
  console.log("No skills.txt found at repository root. Nothing to migrate.");
75201
75223
  return;
@@ -75339,7 +75361,7 @@ function padRight9(str, width) {
75339
75361
 
75340
75362
  // src/commands/access.ts
75341
75363
  var import_node_fs15 = require("node:fs");
75342
- var import_node_path15 = require("node:path");
75364
+ var import_node_path16 = require("node:path");
75343
75365
  var readline3 = __toESM(require("node:readline/promises"));
75344
75366
  var import_yaml6 = require("yaml");
75345
75367
  function resolvePrincipalSelection(flags, options) {
@@ -75834,8 +75856,8 @@ async function handleBindings(action, flags, context2, json) {
75834
75856
  params.set("project_id", projectId);
75835
75857
  }
75836
75858
  const queryString = params.toString();
75837
- const path6 = queryString ? `/orgs/${orgId}/access/bindings?${queryString}` : `/orgs/${orgId}/access/bindings`;
75838
- const bindingsResponse = await requestJson(context2, path6);
75859
+ const path7 = queryString ? `/orgs/${orgId}/access/bindings?${queryString}` : `/orgs/${orgId}/access/bindings`;
75860
+ const bindingsResponse = await requestJson(context2, path7);
75839
75861
  const bindings = unwrapListResponse(bindingsResponse);
75840
75862
  if (json) {
75841
75863
  outputJson({ data: bindings }, json);
@@ -76099,7 +76121,7 @@ async function handleMemberships(flags, context2, json) {
76099
76121
  var DEFAULT_ACCESS_YAML = ".eve/access.yaml";
76100
76122
  function resolveFilePath(flags) {
76101
76123
  const filePath = getStringFlag(flags, ["file", "f"]) ?? DEFAULT_ACCESS_YAML;
76102
- return (0, import_node_path15.resolve)(process.cwd(), filePath);
76124
+ return (0, import_node_path16.resolve)(process.cwd(), filePath);
76103
76125
  }
76104
76126
  function loadAccessYaml(filePath) {
76105
76127
  if (!(0, import_node_fs15.existsSync)(filePath)) {
@@ -77074,9 +77096,9 @@ Sync complete: ${parts.join(", ")}`);
77074
77096
 
77075
77097
  // src/commands/docs.ts
77076
77098
  var import_node_fs16 = require("node:fs");
77077
- var import_node_path16 = require("node:path");
77078
- function encodeDocPathParam(path6) {
77079
- const trimmed = path6.startsWith("/") ? path6.slice(1) : path6;
77099
+ var import_node_path17 = require("node:path");
77100
+ function encodeDocPathParam(path7) {
77101
+ const trimmed = path7.startsWith("/") ? path7.slice(1) : path7;
77080
77102
  return encodeURIComponent(trimmed);
77081
77103
  }
77082
77104
  function parseWhereClause(raw) {
@@ -77149,7 +77171,7 @@ async function handleDocs(subcommand, positionals, flags, context2) {
77149
77171
  const filePath = getStringFlag(flags, ["file"]);
77150
77172
  const useStdin = flags.stdin === true || flags.stdin === "true";
77151
77173
  if (filePath) {
77152
- content = (0, import_node_fs16.readFileSync)((0, import_node_path16.resolve)(filePath), "utf-8");
77174
+ content = (0, import_node_fs16.readFileSync)((0, import_node_path17.resolve)(filePath), "utf-8");
77153
77175
  } else if (useStdin) {
77154
77176
  content = (0, import_node_fs16.readFileSync)(0, "utf-8");
77155
77177
  } else {
@@ -77390,7 +77412,7 @@ async function handleDocs(subcommand, positionals, flags, context2) {
77390
77412
 
77391
77413
  // src/commands/memory.ts
77392
77414
  var import_node_fs17 = require("node:fs");
77393
- var import_node_path17 = require("node:path");
77415
+ var import_node_path18 = require("node:path");
77394
77416
  function parseCsv(raw) {
77395
77417
  if (!raw) return [];
77396
77418
  return raw.split(",").map((item) => item.trim()).filter(Boolean);
@@ -77449,7 +77471,7 @@ async function handleMemory(subcommand, positionals, flags, context2) {
77449
77471
  if (contentInline !== void 0) {
77450
77472
  content = contentInline;
77451
77473
  } else if (filePath) {
77452
- content = (0, import_node_fs17.readFileSync)((0, import_node_path17.resolve)(filePath), "utf-8");
77474
+ content = (0, import_node_fs17.readFileSync)((0, import_node_path18.resolve)(filePath), "utf-8");
77453
77475
  } else if (useStdin) {
77454
77476
  content = (0, import_node_fs17.readFileSync)(0, "utf-8");
77455
77477
  } else {
@@ -78108,8 +78130,8 @@ function normalizeManagedModelRows(payload) {
78108
78130
  function looksLikeGatewayPath(baseUrl) {
78109
78131
  try {
78110
78132
  const parsed = new URL(baseUrl);
78111
- const path6 = parsed.pathname.toLowerCase();
78112
- return path6.includes("/inference/v1") || path6.endsWith("/v1");
78133
+ const path7 = parsed.pathname.toLowerCase();
78134
+ return path7.includes("/inference/v1") || path7.endsWith("/v1");
78113
78135
  } catch {
78114
78136
  return false;
78115
78137
  }
@@ -78853,18 +78875,18 @@ var import_node_fs19 = require("node:fs");
78853
78875
  var import_node_crypto = require("node:crypto");
78854
78876
  var import_node_child_process10 = require("node:child_process");
78855
78877
  var import_node_os6 = require("node:os");
78856
- var import_node_path18 = require("node:path");
78878
+ var import_node_path19 = require("node:path");
78857
78879
  var import_promises2 = require("node:readline/promises");
78858
78880
  var DEFAULT_CLUSTER_NAME = "eve-local";
78859
78881
  var DEFAULT_KUBE_CONTEXT = "k3d-eve-local";
78860
- var MANAGED_BIN_DIR = (0, import_node_path18.join)((0, import_node_os6.homedir)(), ".eve", "bin");
78882
+ var MANAGED_BIN_DIR = (0, import_node_path19.join)((0, import_node_os6.homedir)(), ".eve", "bin");
78861
78883
  var LOCAL_API_URL = "http://api.eve.lvh.me";
78862
78884
  var WATCH_INTERVAL_MS = 5e3;
78863
78885
  var K3D_VERSION = "v5.7.5";
78864
78886
  var KUBECTL_STABLE_URL = "https://dl.k8s.io/release/stable.txt";
78865
- var LOCAL_STACK_ROOT = (0, import_node_path18.resolve)(__dirname, "..", "assets", "local-k8s");
78866
- var LOCAL_STACK_OVERLAY = (0, import_node_path18.join)(LOCAL_STACK_ROOT, "overlays", "local");
78867
- var LOCAL_STACK_BASE = (0, import_node_path18.join)(LOCAL_STACK_ROOT, "base");
78887
+ var LOCAL_STACK_ROOT = (0, import_node_path19.resolve)(__dirname, "..", "assets", "local-k8s");
78888
+ var LOCAL_STACK_OVERLAY = (0, import_node_path19.join)(LOCAL_STACK_ROOT, "overlays", "local");
78889
+ var LOCAL_STACK_BASE = (0, import_node_path19.join)(LOCAL_STACK_ROOT, "base");
78868
78890
  var DEFAULT_PLATFORM_NAMESPACE = "eve-horizon";
78869
78891
  var CONFIGURED_REGISTRY = process.env.ECR_REGISTRY?.trim();
78870
78892
  var CONFIGURED_NAMESPACE = process.env.ECR_NAMESPACE?.trim() || DEFAULT_PLATFORM_NAMESPACE;
@@ -79283,7 +79305,7 @@ async function installK3dBinary() {
79283
79305
  const platform2 = normalizePlatform(process.platform);
79284
79306
  const arch = normalizeArch(process.arch);
79285
79307
  const url = `https://github.com/k3d-io/k3d/releases/download/${K3D_VERSION}/k3d-${platform2}-${arch}`;
79286
- await downloadBinary(url, (0, import_node_path18.join)(MANAGED_BIN_DIR, "k3d"));
79308
+ await downloadBinary(url, (0, import_node_path19.join)(MANAGED_BIN_DIR, "k3d"));
79287
79309
  }
79288
79310
  async function installKubectlBinary() {
79289
79311
  const platform2 = normalizePlatform(process.platform);
@@ -79303,7 +79325,7 @@ async function installKubectlBinary() {
79303
79325
  if (expectedChecksum !== actualChecksum) {
79304
79326
  throw new Error(`kubectl checksum verification failed (expected ${expectedChecksum}, got ${actualChecksum}).`);
79305
79327
  }
79306
- writeExecutable((0, import_node_path18.join)(MANAGED_BIN_DIR, "kubectl"), binary);
79328
+ writeExecutable((0, import_node_path19.join)(MANAGED_BIN_DIR, "kubectl"), binary);
79307
79329
  }
79308
79330
  function normalizePlatform(platform2) {
79309
79331
  if (platform2 === "darwin" || platform2 === "linux") {
@@ -79495,7 +79517,7 @@ async function importPlatformImages(version2, runtimeOptions) {
79495
79517
  }
79496
79518
  }
79497
79519
  function importImageViaTar(docker, k3d, imageTag, component, stdio) {
79498
- const tarPath = (0, import_node_path18.join)((0, import_node_os6.tmpdir)(), `eve-local-${component}-${Date.now()}-${process.pid}.tar`);
79520
+ const tarPath = (0, import_node_path19.join)((0, import_node_os6.tmpdir)(), `eve-local-${component}-${Date.now()}-${process.pid}.tar`);
79499
79521
  try {
79500
79522
  run(docker, ["image", "save", "--platform", "linux/amd64", imageTag, "-o", tarPath], { stdio });
79501
79523
  run(k3d, ["image", "import", "--mode", "direct", tarPath, "-c", DEFAULT_CLUSTER_NAME], { stdio });
@@ -79568,7 +79590,7 @@ function writeManagerMarker(kubectl, runtimeOptions) {
79568
79590
  }
79569
79591
  function runDbMigration(timeoutSeconds, runtimeOptions) {
79570
79592
  const kubectl = requireToolPath("kubectl", "Run 'eve local up' again to auto-install managed tools.");
79571
- const migrateJobPath = (0, import_node_path18.join)(LOCAL_STACK_BASE, "db-migrate-job.yaml");
79593
+ const migrateJobPath = (0, import_node_path19.join)(LOCAL_STACK_BASE, "db-migrate-job.yaml");
79572
79594
  printProgress(runtimeOptions, "Running database migrations...");
79573
79595
  run(kubectl, ["--context", DEFAULT_KUBE_CONTEXT, "-n", "eve", "delete", "job/eve-db-migrate", "--ignore-not-found"], {
79574
79596
  stdio: "pipe",
@@ -79669,7 +79691,7 @@ function readSecretValue(kubectl, key) {
79669
79691
  }
79670
79692
  function runAuthBootstrap(timeoutSeconds, runtimeOptions) {
79671
79693
  const kubectl = requireToolPath("kubectl", "Run 'eve local up' again to auto-install managed tools.");
79672
- const bootstrapJobPath = (0, import_node_path18.join)(LOCAL_STACK_BASE, "auth-bootstrap-job.yaml");
79694
+ const bootstrapJobPath = (0, import_node_path19.join)(LOCAL_STACK_BASE, "auth-bootstrap-job.yaml");
79673
79695
  printProgress(runtimeOptions, "Bootstrapping auth database role...");
79674
79696
  run(kubectl, ["--context", DEFAULT_KUBE_CONTEXT, "-n", "eve", "delete", "job/auth-db-bootstrap", "--ignore-not-found"], {
79675
79697
  stdio: "pipe",
@@ -79769,9 +79791,9 @@ function assertLocalAssetsPresent() {
79769
79791
  const files = [
79770
79792
  LOCAL_STACK_OVERLAY,
79771
79793
  LOCAL_STACK_BASE,
79772
- (0, import_node_path18.join)(LOCAL_STACK_OVERLAY, "kustomization.yaml"),
79773
- (0, import_node_path18.join)(LOCAL_STACK_BASE, "db-migrate-job.yaml"),
79774
- (0, import_node_path18.join)(LOCAL_STACK_BASE, "auth-bootstrap-job.yaml")
79794
+ (0, import_node_path19.join)(LOCAL_STACK_OVERLAY, "kustomization.yaml"),
79795
+ (0, import_node_path19.join)(LOCAL_STACK_BASE, "db-migrate-job.yaml"),
79796
+ (0, import_node_path19.join)(LOCAL_STACK_BASE, "auth-bootstrap-job.yaml")
79775
79797
  ];
79776
79798
  for (const file of files) {
79777
79799
  if (!(0, import_node_fs19.existsSync)(file)) {
@@ -79882,7 +79904,7 @@ function run(command, args, options = {}) {
79882
79904
  return { status, stdout, stderr };
79883
79905
  }
79884
79906
  function findExecutable(name) {
79885
- const managed = (0, import_node_path18.join)(MANAGED_BIN_DIR, name);
79907
+ const managed = (0, import_node_path19.join)(MANAGED_BIN_DIR, name);
79886
79908
  if ((0, import_node_fs19.existsSync)(managed)) {
79887
79909
  return managed;
79888
79910
  }
@@ -79901,11 +79923,11 @@ function ensureTool(name, installHint) {
79901
79923
  }
79902
79924
  }
79903
79925
  function requireToolPath(name, hint) {
79904
- const path6 = findExecutable(name);
79905
- if (!path6) {
79926
+ const path7 = findExecutable(name);
79927
+ if (!path7) {
79906
79928
  throw new Error(`Missing required tool '${name}'. ${hint}`);
79907
79929
  }
79908
- return path6;
79930
+ return path7;
79909
79931
  }
79910
79932
  function assertDockerRunning() {
79911
79933
  const docker = findExecutable("docker");