@appchy/jarvis 0.1.39 → 0.1.41

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/dist/bin.js CHANGED
@@ -2079,7 +2079,7 @@ import path11 from "path";
2079
2079
  import { promisify } from "util";
2080
2080
 
2081
2081
  // src/hooks/install.ts
2082
- import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
2082
+ import { existsSync, mkdirSync, readFileSync, realpathSync, writeFileSync } from "fs";
2083
2083
  import os6 from "os";
2084
2084
  import path10 from "path";
2085
2085
  var SETTINGS_DIR = path10.join(os6.homedir(), ".claude");
@@ -2109,7 +2109,12 @@ function getCliRoot() {
2109
2109
  if (!binPath) {
2110
2110
  return process.cwd();
2111
2111
  }
2112
- return path10.resolve(path10.dirname(binPath), "..");
2112
+ let entry = binPath;
2113
+ try {
2114
+ entry = realpathSync(binPath);
2115
+ } catch {
2116
+ }
2117
+ return path10.resolve(path10.dirname(entry), "..");
2113
2118
  }
2114
2119
  function resolveHooks() {
2115
2120
  const cliRoot = getCliRoot();
@@ -9589,7 +9594,7 @@ import WebSocket from "ws";
9589
9594
  import { createRequire as createRequire2 } from "module";
9590
9595
  var _require = createRequire2(import.meta.url);
9591
9596
  var VERSION2 = _require("../package.json").version ?? "0.0.0";
9592
- var SHA = "a402e0f";
9597
+ var SHA = "606b8d4";
9593
9598
  var BUILT = "2026-09-07";
9594
9599
  var BUILD = SHA ?? "source";
9595
9600
  var BUILD_LABEL = SHA ? `${VERSION2} (${SHA}${BUILT ? ` ${BUILT}` : ""})` : `${VERSION2} (source)`;