@alfe.ai/gateway 0.0.7 → 0.0.8

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.
Files changed (2) hide show
  1. package/dist/health.js +4 -6
  2. package/package.json +1 -1
package/dist/health.js CHANGED
@@ -4541,12 +4541,10 @@ function getSystemdServicePath() {
4541
4541
  function getGatewayBinPath() {
4542
4542
  const globalBin = process.env.ALFE_GATEWAY_BIN;
4543
4543
  if (globalBin) return globalBin;
4544
- const builtBin = join(import.meta.dirname, "..", "bin", "gateway.js");
4545
- if (existsSync(builtBin)) return builtBin;
4546
- try {
4547
- const resolved = execSync("node -e \"console.log(require.resolve('@alfe.ai/gateway/bin/gateway.js'))\"", { encoding: "utf-8" }).trim();
4548
- if (existsSync(resolved)) return resolved;
4549
- } catch {}
4544
+ for (const rel of ["../bin/gateway.js", "bin/gateway.js"]) {
4545
+ const candidate = join(import.meta.dirname, rel);
4546
+ if (existsSync(candidate)) return candidate;
4547
+ }
4550
4548
  return "alfe-gateway";
4551
4549
  }
4552
4550
  function getNodePath() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfe.ai/gateway",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Alfe local gateway daemon — persistent control plane for agent integrations",
5
5
  "type": "module",
6
6
  "bin": {