@darkhunt-security/endpoint-codex 0.9.15 → 0.9.16

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "darkhunt-guard",
3
- "version": "0.9.15",
3
+ "version": "0.9.16",
4
4
  "hooks": "./hooks/hooks.json",
5
5
  "description": "Darkhunt endpoint plugin for Codex CLI \u2014 full session trace capture and PreToolUse guardrails.",
6
6
  "author": {
@@ -18872,12 +18872,14 @@ function acquireLock(scope) {
18872
18872
  }
18873
18873
  return () => rmSync(path, { force: true });
18874
18874
  }
18875
- function isAlive(pid) {
18875
+ function isAlive(pid, kill = (p, s) => {
18876
+ process.kill(p, s);
18877
+ }) {
18876
18878
  try {
18877
- process.kill(pid, 0);
18879
+ kill(pid, 0);
18878
18880
  return true;
18879
- } catch {
18880
- return false;
18881
+ } catch (err) {
18882
+ return err.code !== "ESRCH";
18881
18883
  }
18882
18884
  }
18883
18885
  var DEFAULT_LOCK_WAIT_MS = 60 * 1e3;
@@ -18872,12 +18872,14 @@ function acquireLock(scope) {
18872
18872
  }
18873
18873
  return () => rmSync(path, { force: true });
18874
18874
  }
18875
- function isAlive(pid) {
18875
+ function isAlive(pid, kill = (p, s) => {
18876
+ process.kill(p, s);
18877
+ }) {
18876
18878
  try {
18877
- process.kill(pid, 0);
18879
+ kill(pid, 0);
18878
18880
  return true;
18879
- } catch {
18880
- return false;
18881
+ } catch (err) {
18882
+ return err.code !== "ESRCH";
18881
18883
  }
18882
18884
  }
18883
18885
  var DEFAULT_LOCK_WAIT_MS = 60 * 1e3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@darkhunt-security/endpoint-codex",
3
- "version": "0.9.15",
3
+ "version": "0.9.16",
4
4
  "type": "module",
5
5
  "description": "Darkhunt endpoint adapter for Codex CLI: hook codec, rollout transcript mapper, plugin manifest.",
6
6
  "bin": {