ework-daemon 0.4.32 → 0.4.33

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/package.json +1 -1
  2. package/src/opencode.ts +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ework-daemon",
3
- "version": "0.4.32",
3
+ "version": "0.4.33",
4
4
  "description": "Issue-driven AI development daemon. Spawns opencode subprocesses to resolve Gitea issues.",
5
5
  "module": "src/index.ts",
6
6
  "type": "module",
package/src/opencode.ts CHANGED
@@ -1727,7 +1727,9 @@ export class Engine {
1727
1727
 
1728
1728
  try {
1729
1729
  const cmdline = readFileSync(`/proc/${s.opencodePid}/cmdline`, "utf8");
1730
- if (!cmdline.includes(binaryName) && !cmdline.includes("opencode") && !cmdline.includes("pi")) continue;
1730
+ const exe = cmdline.split("\0")[0] ?? "";
1731
+ const base = exe.split("/").pop() ?? "";
1732
+ if (base !== binaryName && base !== "opencode" && base !== "pi") continue;
1731
1733
  } catch { continue; }
1732
1734
 
1733
1735
  let ppid = -1;