deltabox-lite 0.1.1 → 0.1.4

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
@@ -1,7 +1,8 @@
1
1
  # deltabox-lite
2
2
 
3
- This package installs the native `deltabox` runtime for supported Linux and
4
- macOS systems. The matching optional platform package carries the binary and
3
+ This package installs the native `deltabox` runtime for supported Linux, macOS,
4
+ and Windows systems. Windows requires WinFsp. The matching optional platform
5
+ package carries the binary and
5
6
  the Node-API addon; `bin/deltabox.js` is a thin launcher that executes that
6
7
  binary in place, so `npm install --global deltabox-lite` puts a `deltabox`
7
8
  command on the PATH. No prestarted service is installed.
@@ -23,8 +24,8 @@ and deny set, which is why `isolation: 'none'` has to be asked for by name:
23
24
  those commands share the Node process ambient environment instead. File reads
24
25
  and writes use `Buffer`, while session, checkpoint, diff, commit, abort, and
25
26
  review calls return protocol-shaped typed objects. Every session record names
26
- its `isolation` profile and the resolved `isolation_provider` (`sandlock` or
27
- `seatbelt`).
27
+ its `isolation` profile and the resolved `isolation_provider` (`sandlock`,
28
+ `seatbelt`, or Windows MXC).
28
29
 
29
30
  Linux CB-CoW modes require `/dev/fuse` and `fusermount3` or `fusermount` on the
30
31
  host. Deltabox otherwise reports the reason and falls back to `copy-private`
package/index.cjs CHANGED
@@ -5,6 +5,7 @@ const packages = {
5
5
  "darwin-x64": "deltabox-lite-darwin-x64",
6
6
  "linux-arm64": "deltabox-lite-linux-arm64",
7
7
  "linux-x64": "deltabox-lite-linux-x64",
8
+ "win32-x64": "deltabox-lite-windows-x64",
8
9
  };
9
10
 
10
11
  function platformPackageRoot() {
@@ -14,7 +15,7 @@ function platformPackageRoot() {
14
15
  }
15
16
 
16
17
  function binaryPath() {
17
- return join(platformPackageRoot(), "bin", "deltabox");
18
+ return join(platformPackageRoot(), "bin", process.platform === "win32" ? "deltabox.exe" : "deltabox");
18
19
  }
19
20
 
20
21
  function nativePath() {
package/index.d.ts CHANGED
@@ -51,6 +51,7 @@ export interface NativeExecResult {
51
51
  stderr: string
52
52
  duration_ms: number
53
53
  truncated: boolean
54
+ network_denials: Array<{ target: string; reason: string }>
54
55
  }
55
56
 
56
57
  /**
@@ -112,6 +113,7 @@ export interface NativeAbortResult {
112
113
  }
113
114
 
114
115
  export interface NativeDeltaboxInstance {
116
+ networkApprovalsVersion(): number
115
117
  startSession(
116
118
  policy?: string,
117
119
  durability?: 'fast' | 'strict',
@@ -128,6 +130,7 @@ export interface NativeDeltaboxInstance {
128
130
  environment?: NativeEnvironmentEntry[],
129
131
  label?: string,
130
132
  executionProfile?: NativeExecutionProfile,
133
+ networkAllow?: string[],
131
134
  ): Promise<NativeExecResult>
132
135
  readFile(sessionId: string, path: string): Promise<Buffer>
133
136
  writeFile(sessionId: string, path: string, content: Buffer): Promise<void>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deltabox-lite",
3
- "version": "0.1.1",
3
+ "version": "0.1.4",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Native sandbox runtime with diff, commit, and abort for AI coding agents",
6
6
  "repository": "https://github.com/delta-box/deltabox-lite",
@@ -11,7 +11,8 @@
11
11
  },
12
12
  "os": [
13
13
  "darwin",
14
- "linux"
14
+ "linux",
15
+ "win32"
15
16
  ],
16
17
  "engines": {
17
18
  "node": ">=18"
@@ -23,9 +24,10 @@
23
24
  "README.md"
24
25
  ],
25
26
  "optionalDependencies": {
26
- "deltabox-lite-darwin-arm64": "0.1.1",
27
- "deltabox-lite-darwin-x64": "0.1.1",
28
- "deltabox-lite-linux-arm64": "0.1.1",
29
- "deltabox-lite-linux-x64": "0.1.1"
27
+ "deltabox-lite-darwin-arm64": "0.1.4",
28
+ "deltabox-lite-darwin-x64": "0.1.4",
29
+ "deltabox-lite-linux-arm64": "0.1.4",
30
+ "deltabox-lite-linux-x64": "0.1.4",
31
+ "deltabox-lite-windows-x64": "0.1.4"
30
32
  }
31
33
  }