opencode-landstrip 0.19.20 → 0.20.1

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 (3) hide show
  1. package/index.ts +4 -1
  2. package/package.json +2 -2
  3. package/shared.ts +3 -0
package/index.ts CHANGED
@@ -214,6 +214,8 @@ function writePolicyFile(
214
214
  buildLandstripPolicy({
215
215
  network: config.network,
216
216
  filesystem: config.filesystem,
217
+ macos: config.macos,
218
+ windows: config.windows,
217
219
  baseDirectory,
218
220
  httpProxyPort: proxyPort,
219
221
  }),
@@ -335,7 +337,7 @@ function buildWrappedCommand(
335
337
  trapPort: number | null,
336
338
  sessionID?: string,
337
339
  ): string {
338
- const baseArgs = ['-p', policyPath, '--', ...shellArgs(shell, command)];
340
+ const baseArgs = ['run', '-p', policyPath, '--', ...shellArgs(shell, command)];
339
341
  const plain = [landstripBinaryPath(), ...baseArgs].map(shellQuote).join(' ');
340
342
  if (trapPort === null) return plain;
341
343
 
@@ -345,6 +347,7 @@ function buildWrappedCommand(
345
347
  // without invoking landstrip, while every started command runs exactly once.
346
348
  const trapped = [
347
349
  landstripBinaryPath(),
350
+ 'run',
348
351
  '--trap',
349
352
  '3',
350
353
  '-p',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-landstrip",
3
- "version": "0.19.20",
3
+ "version": "0.20.1",
4
4
  "description": "OS-level AI command sandboxing for OpenCode with Landstrip",
5
5
  "keywords": [
6
6
  "landlock",
@@ -48,7 +48,7 @@
48
48
  "ci:test": "npm test"
49
49
  },
50
50
  "dependencies": {
51
- "@landstrip/landstrip-api": "^0.19.20",
51
+ "@landstrip/landstrip-api": "^0.20.1",
52
52
  "@opentui/core": ">=0.5.12",
53
53
  "@opentui/solid": ">=0.5.12",
54
54
  "solid-js": "1.9.12"
package/shared.ts CHANGED
@@ -13,8 +13,10 @@ import type { SandboxConfig, SandboxConfigOverrides } from '@landstrip/landstrip
13
13
 
14
14
  export type {
15
15
  LandstripControlResponse,
16
+ LandstripDarwinPolicy,
16
17
  LandstripFilesystemPolicy,
17
18
  LandstripNetworkPolicy,
19
+ LandstripPathSelector,
18
20
  LandstripPolicy,
19
21
  LandstripTrap,
20
22
  } from '@landstrip/landstrip-api';
@@ -68,6 +70,7 @@ export {
68
70
  type SandboxConfig,
69
71
  type SandboxConfigFile,
70
72
  type SandboxConfigOverrides,
73
+ type SandboxDarwinConfig,
71
74
  type SandboxFilesystemConfig,
72
75
  type SandboxNetworkConfig,
73
76
  type SandboxShellConfig,