ridgeline 0.2.10 → 0.2.11

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.
@@ -9,6 +9,7 @@ rsync (with remote paths), python -m http.server, node -e with http/https
9
9
  modules, telnet, ftp.
10
10
 
11
11
  Allow these exceptions:
12
+
12
13
  - npm install, npm ci, npm update
13
14
  - npx (any arguments)
14
15
  - pip install, pip3 install
@@ -1,19 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.greywallProvider = void 0;
4
+ const node_fs_1 = require("node:fs");
5
+ const node_path_1 = require("node:path");
6
+ const node_os_1 = require("node:os");
4
7
  exports.greywallProvider = {
5
8
  name: "greywall",
6
9
  command: "greywall",
7
- buildArgs(repoRoot, networkAllowlist) {
8
- const args = [
9
- "--allow-dir", repoRoot,
10
- "--allow-dir", "/tmp",
11
- ];
12
- for (const domain of networkAllowlist) {
13
- args.push("--allow-network", domain);
14
- }
15
- args.push("--");
16
- return args;
10
+ buildArgs(repoRoot, _networkAllowlist) {
11
+ const settings = {
12
+ filesystem: {
13
+ allowWrite: [repoRoot, "/tmp"],
14
+ },
15
+ };
16
+ const settingsPath = (0, node_path_1.join)((0, node_os_1.tmpdir)(), `ridgeline-greywall-${process.pid}.json`);
17
+ (0, node_fs_1.writeFileSync)(settingsPath, JSON.stringify(settings));
18
+ return ["--settings", settingsPath, "--"];
17
19
  },
18
20
  };
19
21
  //# sourceMappingURL=sandbox.greywall.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sandbox.greywall.js","sourceRoot":"","sources":["../../../src/engine/claude/sandbox.greywall.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAoB;IAC/C,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,UAAU;IACnB,SAAS,CAAC,QAAgB,EAAE,gBAA0B;QACpD,MAAM,IAAI,GAAa;YACrB,aAAa,EAAE,QAAQ;YACvB,aAAa,EAAE,MAAM;SACtB,CAAA;QACD,KAAK,MAAM,MAAM,IAAI,gBAAgB,EAAE,CAAC;YACtC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAA;QACtC,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QACf,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA"}
1
+ {"version":3,"file":"sandbox.greywall.js","sourceRoot":"","sources":["../../../src/engine/claude/sandbox.greywall.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AACvC,yCAAgC;AAChC,qCAAgC;AAGnB,QAAA,gBAAgB,GAAoB;IAC/C,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,UAAU;IACnB,SAAS,CAAC,QAAgB,EAAE,iBAA2B;QACrD,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE;gBACV,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC;aAC/B;SACF,CAAA;QAED,MAAM,YAAY,GAAG,IAAA,gBAAI,EAAC,IAAA,gBAAM,GAAE,EAAE,sBAAsB,OAAO,CAAC,GAAG,OAAO,CAAC,CAAA;QAC7E,IAAA,uBAAa,EAAC,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAA;QAErD,OAAO,CAAC,YAAY,EAAE,YAAY,EAAE,IAAI,CAAC,CAAA;IAC3C,CAAC;CACF,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ridgeline",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "Build harness for long-horizon software execution",
5
5
  "license": "MIT",
6
6
  "bin": {