@feigi/fleet-ctl 3.158.17 → 3.158.19

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feigi/fleet-ctl",
3
- "version": "3.158.17",
3
+ "version": "3.158.19",
4
4
  "description": "Agent fleet: run-team controller, merge bot, PR reviewer, and the ticket pipeline they share",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -600,13 +600,17 @@ function shortlist({ cwd }) {
600
600
  }
601
601
 
602
602
  // The same `.fleet/` by the directory it names: the checkout holding it is
603
- // resolved through symlinks and the `.fleet` name kept, so it works before
604
- // `.fleet/` exists. A path that is not absolute, or whose checkout does not
605
- // resolve, stays as given.
603
+ // stat'd, then resolved through symlinks by the OS, so a `..` after a
604
+ // directory that does not exist, or after a file, is not folded away (darwin's
605
+ // realpath folds `file/..`; the stat refuses it). The `.fleet` name is kept as
606
+ // given, so it works before `.fleet/` exists. A path that is not absolute, or
607
+ // whose checkout does not resolve, stays as given.
606
608
  function fleetIdentity(path) {
607
609
  if (typeof path !== "string" || !isAbsolute(path)) return path;
608
610
  try {
609
- return join(realpathSync(dirname(path)), basename(path));
611
+ const checkout = dirname(path);
612
+ statSync(checkout);
613
+ return join(realpathSync.native(checkout), basename(path));
610
614
  } catch {
611
615
  return path;
612
616
  }