@landstrip/landstrip 0.18.34 → 0.18.35
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 +19 -53
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
<!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
|
|
2
|
-
<!-- Copyright (C) Jarkko Sakkinen 2026 -->
|
|
3
|
-
|
|
4
1
|
# landstrip
|
|
5
2
|
|
|
6
3
|
`landstrip` runs commands in an OS-level sandbox using Landlock on Linux,
|
|
7
|
-
Seatbelt on macOS, and AppContainer or restricted users on Windows.
|
|
8
|
-
the supported subset of the Anthropic Sandbox Runtime format.
|
|
4
|
+
Seatbelt on macOS, and AppContainer or restricted users on Windows.
|
|
9
5
|
|
|
10
|
-
##
|
|
6
|
+
## Install
|
|
11
7
|
|
|
12
8
|
```sh
|
|
13
9
|
npm install --save-dev @landstrip/landstrip
|
|
@@ -17,7 +13,7 @@ npx landstrip run -p policy.json -- cargo test
|
|
|
17
13
|
The npm package installs a Node.js wrapper and a native binary for the current
|
|
18
14
|
platform.
|
|
19
15
|
|
|
20
|
-
##
|
|
16
|
+
## Usage
|
|
21
17
|
|
|
22
18
|
```sh
|
|
23
19
|
landstrip run -p policy.json -- cargo test
|
|
@@ -26,21 +22,17 @@ landstrip policy resolve -p policy.json
|
|
|
26
22
|
landstrip doctor
|
|
27
23
|
```
|
|
28
24
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
[manual page](man/man1/landstrip.1).
|
|
32
|
-
|
|
33
|
-
### Agent extensions
|
|
25
|
+
Run `landstrip --help` or see [landstrip(1)](man/man1/landstrip.1) for the full
|
|
26
|
+
command reference.
|
|
34
27
|
|
|
35
|
-
|
|
36
|
-
pi install npm:pi-landstrip
|
|
37
|
-
opencode plugin install opencode-landstrip
|
|
38
|
-
```
|
|
28
|
+
## Agent extensions
|
|
39
29
|
|
|
40
|
-
|
|
41
|
-
|
|
30
|
+
| Integration | Package | Documentation |
|
|
31
|
+
| ----------- | ---------------------- | -------------------------------------------------------------------- |
|
|
32
|
+
| OpenCode | `opencode-landstrip` | [OpenCode](packages/opencode-landstrip/README.md) |
|
|
33
|
+
| Pi | `pi-landstrip` | [Pi](packages/pi-landstrip/README.md) |
|
|
42
34
|
|
|
43
|
-
## Policy
|
|
35
|
+
## Policy
|
|
44
36
|
|
|
45
37
|
```json
|
|
46
38
|
{
|
|
@@ -52,49 +44,23 @@ See [pi-landstrip](packages/pi-landstrip/README.md) and
|
|
|
52
44
|
},
|
|
53
45
|
"network": {
|
|
54
46
|
"allowNetwork": false,
|
|
55
|
-
"
|
|
56
|
-
"allowLocalBinding": false,
|
|
57
|
-
"allowUnixSockets": []
|
|
47
|
+
"allowLocalBinding": false
|
|
58
48
|
}
|
|
59
49
|
}
|
|
60
50
|
```
|
|
61
51
|
|
|
62
|
-
Pass policies with `-p, --policy <FILE
|
|
63
|
-
|
|
52
|
+
Pass policies with `-p, --policy <FILE>`. Later policies merge over earlier
|
|
53
|
+
ones. Platform behavior and limits are documented in the manual.
|
|
64
54
|
|
|
65
55
|
## Development
|
|
66
56
|
|
|
67
|
-
### Package
|
|
68
|
-
|
|
69
|
-
Artifacts land in `npm/*/bin` and `artifacts/`. Staging writes platform tarballs
|
|
70
|
-
and matching `<file>.sha256` sidecars under `artifacts/`.
|
|
71
|
-
|
|
72
|
-
Non-host targets use [`cargo-zigbuild`](https://github.com/rust-cross/cargo-zigbuild)
|
|
73
|
-
(Zig as linker). Requires `cargo-zigbuild`, `zig`, and the matching `rustup`
|
|
74
|
-
targets (`x86_64-unknown-linux-musl`, `aarch64-unknown-linux-musl`,
|
|
75
|
-
`x86_64-pc-windows-gnu`, `aarch64-pc-windows-gnullvm`, `aarch64-apple-darwin`,
|
|
76
|
-
`x86_64-apple-darwin`). Host-native triples use plain `cargo`. Darwin links
|
|
77
|
-
`libsandbox`; from Linux set `SDKROOT` to a macOS SDK (Apple SDK; not
|
|
78
|
-
redistributed).
|
|
79
|
-
|
|
80
|
-
```sh
|
|
81
|
-
make package
|
|
82
|
-
make package PLATFORMS='linux-x64 win32-x64'
|
|
83
|
-
PACKAGE_STRICT=1 make package
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
`make publish` uploads each GitHub release tarball with its `<file>.sha256`
|
|
87
|
-
sidecar. Verify a download with:
|
|
88
|
-
|
|
89
57
|
```sh
|
|
90
|
-
|
|
58
|
+
make ci
|
|
91
59
|
```
|
|
92
60
|
|
|
93
|
-
##
|
|
61
|
+
## Licensing
|
|
94
62
|
|
|
95
|
-
`landstrip`
|
|
96
|
-
version 2.1 or later (LGPL-2.1+). See [LICENSE-LGPL-2.1](LICENSE-LGPL-2.1).
|
|
63
|
+
`landstrip` uses [LGPL-2.1+](LICENSE-LGPL-2.1).
|
|
97
64
|
|
|
98
|
-
The JavaScript
|
|
99
|
-
[
|
|
100
|
-
package is available from the matching repository tag.
|
|
65
|
+
The JavaScript wrapper and agent extensions use
|
|
66
|
+
[Apache 2.0](LICENSE-APACHE-2.0).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@landstrip/landstrip",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.35",
|
|
4
4
|
"description": "Sandbox runner using Landlock, Seatbelt, and AppContainer",
|
|
5
5
|
"license": "Apache-2.0 AND LGPL-2.1-or-later",
|
|
6
6
|
"homepage": "https://github.com/landstrip/landstrip#readme",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"LICENSE-LGPL-2.1"
|
|
35
35
|
],
|
|
36
36
|
"optionalDependencies": {
|
|
37
|
-
"@landstrip/landstrip-darwin-arm64": "0.18.
|
|
38
|
-
"@landstrip/landstrip-darwin-x64": "0.18.
|
|
39
|
-
"@landstrip/landstrip-linux-x64": "0.18.
|
|
40
|
-
"@landstrip/landstrip-linux-arm64": "0.18.
|
|
41
|
-
"@landstrip/landstrip-win32-x64": "0.18.
|
|
42
|
-
"@landstrip/landstrip-win32-arm64": "0.18.
|
|
37
|
+
"@landstrip/landstrip-darwin-arm64": "0.18.35",
|
|
38
|
+
"@landstrip/landstrip-darwin-x64": "0.18.35",
|
|
39
|
+
"@landstrip/landstrip-linux-x64": "0.18.35",
|
|
40
|
+
"@landstrip/landstrip-linux-arm64": "0.18.35",
|
|
41
|
+
"@landstrip/landstrip-win32-x64": "0.18.35",
|
|
42
|
+
"@landstrip/landstrip-win32-arm64": "0.18.35"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|