@agentchatme/claude-code 0.0.139411411111111 → 0.0.1394114111111112

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/index.js CHANGED
@@ -537,7 +537,7 @@ var require_cross_spawn = __commonJS({
537
537
  // src/index.ts
538
538
  import { parseArgs } from "util";
539
539
 
540
- // node_modules/.pnpm/@agentchatme+agent-core@0.0.1313111111/node_modules/@agentchatme/agent-core/dist/chunk-7T7SRWWC.js
540
+ // node_modules/.pnpm/@agentchatme+agent-core@0.0.131311111111/node_modules/@agentchatme/agent-core/dist/chunk-CRHJICEC.js
541
541
  import * as fs2 from "fs";
542
542
  import * as path2 from "path";
543
543
  import * as fs3 from "fs";
@@ -567,7 +567,7 @@ var log = {
567
567
  info: (msg) => emit("info", msg),
568
568
  debug: (msg) => emit("debug", msg)
569
569
  };
570
- var VERSION = "0.0.1313111111";
570
+ var VERSION = "0.0.131311111111";
571
571
  var CODING_AGENTS_CLIENT_IDENTITY = {
572
572
  name: "coding_agents",
573
573
  version: VERSION
@@ -4975,7 +4975,7 @@ function alwaysOnHealth(home) {
4975
4975
  return { wanted: state !== "off", healthy: state !== "down" };
4976
4976
  }
4977
4977
 
4978
- // node_modules/.pnpm/@agentchatme+agent-core@0.0.1313111111/node_modules/@agentchatme/agent-core/dist/index.js
4978
+ // node_modules/.pnpm/@agentchatme+agent-core@0.0.131311111111/node_modules/@agentchatme/agent-core/dist/index.js
4979
4979
  import * as fs from "fs";
4980
4980
  import * as path from "path";
4981
4981
  import * as readline from "readline";
@@ -6316,7 +6316,7 @@ var HOUR2 = 60 * MIN2;
6316
6316
  var DAY2 = 24 * HOUR2;
6317
6317
  var MAX_ATTACHMENT_SIZE = 25 * 1024 * 1024;
6318
6318
 
6319
- // node_modules/.pnpm/@agentchatme+agent-core@0.0.1313111111/node_modules/@agentchatme/agent-core/dist/index.js
6319
+ // node_modules/.pnpm/@agentchatme+agent-core@0.0.131311111111/node_modules/@agentchatme/agent-core/dist/index.js
6320
6320
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
6321
6321
  import * as fs22 from "fs";
6322
6322
  import * as os from "os";
@@ -7675,12 +7675,45 @@ function serviceLabel(value) {
7675
7675
  }
7676
7676
  return value;
7677
7677
  }
7678
+ function transientPathEntry(value) {
7679
+ const normalized2 = value.replace(/\\/g, "/");
7680
+ return /\/node_modules\/\.bin\/?$/i.test(normalized2) || /\/node_modules\/npm\/node_modules\/@npmcli\/run-script\/lib\/node-gyp-bin\/?$/i.test(normalized2) || /\/\.[^/]+\/tmp\//i.test(normalized2);
7681
+ }
7682
+ function stableServicePath(value, nodePath = process.execPath) {
7683
+ const entries = [path22.dirname(nodePath), ...value.split(path22.delimiter)];
7684
+ const seen = /* @__PURE__ */ new Set();
7685
+ const stable = [];
7686
+ for (const raw of entries) {
7687
+ const trimmed = raw.trim();
7688
+ if (!trimmed || transientPathEntry(trimmed)) continue;
7689
+ let resolved = trimmed;
7690
+ try {
7691
+ resolved = fs22.realpathSync(trimmed);
7692
+ } catch {
7693
+ }
7694
+ const key = process.platform === "win32" ? resolved.toLowerCase() : resolved;
7695
+ if (seen.has(key)) continue;
7696
+ seen.add(key);
7697
+ stable.push(resolved);
7698
+ }
7699
+ return stable.join(path22.delimiter);
7700
+ }
7678
7701
  function plan(opts) {
7679
7702
  const env = {};
7680
- if (process.env["PATH"]) env["PATH"] = serviceValue("environment value", process.env["PATH"]);
7703
+ if (process.env["PATH"]) {
7704
+ env["PATH"] = serviceValue(
7705
+ "environment value",
7706
+ stableServicePath(process.env["PATH"])
7707
+ );
7708
+ }
7681
7709
  for (const [k, v] of Object.entries(opts.env ?? {})) {
7682
7710
  if (!/^[A-Za-z_][A-Za-z0-9_]*$/.test(k)) throw new Error(`invalid service environment key: ${k}`);
7683
- if (typeof v === "string" && v.length > 0) env[k] = serviceValue("environment value", v);
7711
+ if (typeof v === "string" && v.length > 0) {
7712
+ env[k] = serviceValue(
7713
+ "environment value",
7714
+ k === "PATH" ? stableServicePath(v) : v
7715
+ );
7716
+ }
7684
7717
  }
7685
7718
  return {
7686
7719
  label: serviceLabel(opts.label),
@@ -7835,8 +7868,11 @@ function uninstallLaunchd(label) {
7835
7868
  log.info(`service ${launchdLabel(label)} removed`);
7836
7869
  }
7837
7870
  function statusLaunchd(label) {
7838
- const r = run("launchctl", ["list", launchdLabel(label)]);
7839
- return `launchd ${launchdLabel(label)}: ${r.ok ? "loaded" : "not loaded"}`;
7871
+ const fullLabel = launchdLabel(label);
7872
+ const uid = typeof process.getuid === "function" ? process.getuid() : os.userInfo().uid;
7873
+ const modern = run("launchctl", ["print", `gui/${uid}/${fullLabel}`]);
7874
+ const loaded = modern.ok || run("launchctl", ["list", fullLabel]).ok;
7875
+ return `launchd ${fullLabel}: ${loaded ? "loaded" : "not loaded"}`;
7840
7876
  }
7841
7877
  function isWslFromVersion(version) {
7842
7878
  return /microsoft|wsl/i.test(version);
@@ -8074,7 +8110,7 @@ import * as path6 from "path";
8074
8110
  import * as crypto from "crypto";
8075
8111
 
8076
8112
  // src/version.ts
8077
- var VERSION3 = "0.0.139411411111111";
8113
+ var VERSION3 = "0.0.1394114111111112";
8078
8114
 
8079
8115
  // src/runtime-version.ts
8080
8116
  var MIN_CLAUDE_CODE_VERSION = "2.1.219";