agent-valley 3.0.1 → 3.0.2

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,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "av",
4
- "version": "3.0.1",
4
+ "version": "3.0.2",
5
5
  "description": "Delegate repository goals to Agent Valley and inspect mission progress and verification evidence.",
6
6
  "author": {
7
7
  "name": "Agent Valley"
package/dist/index.js CHANGED
@@ -15922,8 +15922,23 @@ function signalProcessTree(proc, signal) {
15922
15922
  }
15923
15923
  if (error.code !== "ESRCH")
15924
15924
  throw error;
15925
- if (proc.exitCode === null && proc.signalCode == null)
15926
- proc.kill(signal);
15925
+ if (proc.exitCode === null && proc.signalCode == null) {
15926
+ try {
15927
+ proc.kill(signal);
15928
+ } catch (handleError) {
15929
+ if (handleError.code === "EPERM" && absent(-proc.pid) && absent(proc.pid))
15930
+ return;
15931
+ throw handleError;
15932
+ }
15933
+ }
15934
+ }
15935
+ }
15936
+ function absent(pid) {
15937
+ try {
15938
+ process.kill(pid, 0);
15939
+ return false;
15940
+ } catch (error) {
15941
+ return error.code === "ESRCH";
15927
15942
  }
15928
15943
  }
15929
15944
  var init_process_tree = () => {};
@@ -16137,6 +16152,8 @@ function buildSeatbeltProfile(req, home) {
16137
16152
  (allow process-fork)
16138
16153
  (allow process-exec)
16139
16154
  (allow signal (target self))
16155
+ ; Tool cancellation must reach grandchildren; target children covers only direct children.
16156
+ (allow signal (target same-sandbox))
16140
16157
  (allow sysctl-read)
16141
16158
  (allow mach-lookup)
16142
16159
  ${req.agentType === "codex" ? '(allow ipc-posix-shm-read* (ipc-posix-name-prefix "apple.cfprefs."))' : ""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-valley",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=26.10.0",