@slopus/happy-agent-supervisor 0.0.2-linux-x64 → 0.0.3-darwin-arm64

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.
package/README.md CHANGED
@@ -7,7 +7,7 @@ an argument vector; it applies the operating system's own isolation and then
7
7
 
8
8
  ```text
9
9
  caller
10
- │ policy JSON on fd or file
10
+ │ policy JSON argument or trusted file
11
11
  │ argv after --
12
12
 
13
13
  supervisor
@@ -68,7 +68,7 @@ package explicitly and read its path from your build script:
68
68
 
69
69
  ```sh
70
70
  # The binary you want to copy into a linux/amd64 image.
71
- npm install --no-save @slopus/happy-agent-supervisor@0.0.2-linux-x64
71
+ npm install --no-save @slopus/happy-agent-supervisor@0.0.3-linux-x64
72
72
  ```
73
73
 
74
74
  Or ask your package manager for every variant at once, which is what a release
@@ -76,8 +76,8 @@ pipeline usually wants:
76
76
 
77
77
  ```sh
78
78
  npm install --force \
79
- @slopus/happy-agent-supervisor@0.0.2-linux-x64 \
80
- @slopus/happy-agent-supervisor@0.0.2-linux-arm64
79
+ @slopus/happy-agent-supervisor@0.0.3-linux-x64 \
80
+ @slopus/happy-agent-supervisor@0.0.3-linux-arm64
81
81
  ```
82
82
 
83
83
  Then point the container at it:
@@ -104,13 +104,9 @@ const policy = parseSupervisorPolicy({
104
104
 
105
105
  const child = spawn(
106
106
  resolveSupervisorBinary(),
107
- ["--policy-fd", "3", "--", "/usr/bin/env", "node", "build.mjs"],
108
- {
109
- cwd: "/work/project",
110
- stdio: ["inherit", "inherit", "inherit", "pipe"],
111
- },
107
+ ["--policy", JSON.stringify(policy), "--", "/usr/bin/env", "node", "build.mjs"],
108
+ { cwd: "/work/project", stdio: "inherit" },
112
109
  );
113
- child.stdio[3].end(JSON.stringify(policy));
114
110
  ```
115
111
 
116
112
  `parseSupervisorPolicy(value)` validates against the TypeBox schema and throws a
@@ -126,17 +122,17 @@ not installed. If neither is present they throw, naming the package to reinstall
126
122
 
127
123
  ## Command line
128
124
 
129
- Policy stays out of argv, and the command is always an argument vector:
125
+ Policy and command are ordinary arguments, matching Codex's direct `sandbox-exec -p` invocation:
130
126
 
131
127
  ```sh
132
- happy-agent-supervisor --policy-fd 3 -- /bin/sh -c 'printf "%s\n" "$VALUE"'
128
+ happy-agent-supervisor --policy '{"mode":"workspace_write","network":{"egress":false,"localBinding":false}}' -- /bin/sh -c 'printf "%s\n" "$VALUE"'
133
129
  happy-agent-supervisor --policy-file /trusted/policy.json -- /usr/bin/env
134
130
  ```
135
131
 
136
- Exactly one of `--policy-fd` and `--policy-file` is required, and everything
137
- after `--` is the target command. The supervisor consumes the policy descriptor;
138
- descriptors `0`, `1`, and `2` are rejected. Policy files are read and closed
139
- before sandbox setup. Policy JSON is limited to 1 MiB and rejects unknown fields.
132
+ Exactly one of `--policy` and `--policy-file` is required, and everything after `--` is the target
133
+ command. Policy files are read and closed before sandbox setup. Policy JSON is limited to 1 MiB and
134
+ rejects unknown fields. The direct form creates no inherited descriptor beyond ordinary stdin,
135
+ stdout, and stderr.
140
136
  A supervisor-level failure — a bad argument, an invalid policy, an enforcement
141
137
  step that would not apply — exits `125` with a message on stderr, which keeps it
142
138
  distinguishable from the workload's own status. Otherwise the workload's exit
package/SHA256SUMS CHANGED
@@ -1 +1 @@
1
- 6a2f0eca576f4e79512e3e60fac5afaeb0af640da96d7826331ea17e6af71796 vendor/x86_64-unknown-linux-musl/bin/happy-agent-supervisor
1
+ 7632a60e11718a54b1aaef404f994a6e97603ca766d0170d698b14b045c3d129 vendor/aarch64-apple-darwin/bin/happy-agent-supervisor
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@slopus/happy-agent-supervisor",
3
- "version": "0.0.2-linux-x64",
4
- "description": "Trusted native sandbox boundary for Happy agent workloads. Native binary for linux-x64.",
3
+ "version": "0.0.3-darwin-arm64",
4
+ "description": "Trusted native sandbox boundary for Happy agent workloads. Native binary for darwin-arm64.",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -12,13 +12,13 @@
12
12
  "node": ">=22.19.0"
13
13
  },
14
14
  "os": [
15
- "linux"
15
+ "darwin"
16
16
  ],
17
17
  "cpu": [
18
- "x64"
18
+ "arm64"
19
19
  ],
20
20
  "bin": {
21
- "happy-agent-supervisor": "vendor/x86_64-unknown-linux-musl/bin/happy-agent-supervisor"
21
+ "happy-agent-supervisor": "vendor/aarch64-apple-darwin/bin/happy-agent-supervisor"
22
22
  },
23
23
  "files": [
24
24
  "vendor",