@openagents-org/agent-connector 0.1.3 → 0.1.4

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/config.js +1 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openagents-org/agent-connector",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Agent management CLI and library for OpenAgents — install, configure, and run AI coding agents",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/config.js CHANGED
@@ -135,17 +135,7 @@ class Config {
135
135
  try {
136
136
  if (!fs.existsSync(this.pidFile)) return null;
137
137
  const pid = parseInt(fs.readFileSync(this.pidFile, 'utf-8').trim(), 10);
138
- if (isNaN(pid)) return null;
139
- try {
140
- process.kill(pid, 0);
141
- return pid;
142
- } catch (e) {
143
- // EPERM means the process exists but we lack permission (cross-session on Windows)
144
- if (e.code === 'EPERM') return pid;
145
- // ESRCH means no such process — stale PID file
146
- try { fs.unlinkSync(this.pidFile); } catch {}
147
- return null;
148
- }
138
+ return isNaN(pid) ? null : pid;
149
139
  } catch {
150
140
  return null;
151
141
  }