@adhdev/daemon-core 0.5.29 → 0.5.31

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
@@ -6729,8 +6729,8 @@ try {
6729
6729
  try {
6730
6730
  const fs10 = require("fs");
6731
6731
  const ptyDir = path9.resolve(path9.dirname(require.resolve("node-pty")), "..");
6732
- const arch3 = os11.arch() === "arm64" ? "darwin-arm64" : "darwin-x64";
6733
- const helper = path9.join(ptyDir, "prebuilds", arch3, "spawn-helper");
6732
+ const platformArch = `${os11.platform()}-${os11.arch()}`;
6733
+ const helper = path9.join(ptyDir, "prebuilds", platformArch, "spawn-helper");
6734
6734
  if (fs10.existsSync(helper)) {
6735
6735
  const stat = fs10.statSync(helper);
6736
6736
  if (!(stat.mode & 73)) {
@@ -6742,7 +6742,7 @@ try {
6742
6742
  }
6743
6743
  }
6744
6744
  } catch {
6745
- LOG.error("CLI", "[ProviderCliAdapter] node-pty not found. Install: npm install node-pty@1.0.0");
6745
+ LOG.error("CLI", "[ProviderCliAdapter] node-pty not found. Terminal features disabled.");
6746
6746
  }
6747
6747
  function stripAnsi(str) {
6748
6748
  return str.replace(/\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])/g, "").replace(/\x1B\][^\x07]*\x07/g, "").replace(/\x1B\][^\x1B]*\x1B\\/g, "");