@triflux/core 10.77.0 → 10.78.0

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": "@triflux/core",
3
- "version": "10.77.0",
3
+ "version": "10.78.0",
4
4
  "description": "triflux core — CLI routing, adapters. Zero native dependencies.",
5
5
  "type": "module",
6
6
  "main": "hub/index.mjs",
@@ -112,12 +112,12 @@ function trustedPackageTree(packageRoot, nodePath, tmuxPath) {
112
112
  !existing(resolvedNode)?.isFile()
113
113
  )
114
114
  return false;
115
+ // Homebrew prefix는 git 저장소일 수 있으므로 node_modules까지만 검사한다.
115
116
  let ancestor = packageRoot;
116
117
  while (true) {
117
118
  if (existing(path.join(ancestor, ".git"))) return false;
118
- const parent = path.dirname(ancestor);
119
- if (parent === ancestor) break;
120
- ancestor = parent;
119
+ if (ancestor === path.dirname(packageRoot)) break;
120
+ ancestor = path.dirname(ancestor);
121
121
  }
122
122
  const stack = [packageRoot];
123
123
  while (stack.length) {