pi-landstrip 0.19.8 → 0.19.9

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/dist/index.ts +2 -5
  2. package/package.json +2 -2
package/dist/index.ts CHANGED
@@ -50,7 +50,7 @@ import {
50
50
  parseTrapLine,
51
51
  pathUnderDirectory,
52
52
  sessionScopeFor,
53
- serializeLandstripPolicy,
53
+ writeLandstripPolicyFile,
54
54
  shouldPromptForWrite as sharedShouldPromptForWrite,
55
55
  normalizeBlockedPath,
56
56
  extractNativeDeniedPath,
@@ -6240,10 +6240,7 @@ ${paths}${note}`, PERMISSION_OPTIONS, promptSignal);
6240
6240
  });
6241
6241
  }
6242
6242
  function writePolicyFile(cwd, proxyPort, audience, allowances) {
6243
- const dir = mkdtempSync2(join8(tmpdir2(), "pi-landstrip-"));
6244
- const path = join8(dir, "policy.json");
6245
- writeFileSync4(path, serializeLandstripPolicy(buildLandstripPolicy(cwd, proxyPort, audience, allowances)), "utf-8");
6246
- return { dir, path };
6243
+ return writeLandstripPolicyFile(buildLandstripPolicy(cwd, proxyPort, audience, allowances), "pi-landstrip-");
6247
6244
  }
6248
6245
  function startProxy(ctx, cwd, allowances, signal, authorization, portRange) {
6249
6246
  return startFilterProxy({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-landstrip",
3
- "version": "0.19.8",
3
+ "version": "0.19.9",
4
4
  "description": "Sandboxed Bash and process-backed agents for Pi",
5
5
  "keywords": [
6
6
  "landstrip",
@@ -39,7 +39,7 @@
39
39
  "ci:test": "npm run test"
40
40
  },
41
41
  "dependencies": {
42
- "@landstrip/landstrip-api": "^0.19.8",
42
+ "@landstrip/landstrip-api": "^0.19.9",
43
43
  "jsonc-parser": "^3.3.1",
44
44
  "minimatch": "^10.2.5",
45
45
  "undici": "^8.9.0",