@cloudflare/sandbox 0.4.15 → 0.4.17

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @cloudflare/sandbox@0.4.15 build
2
+ > @cloudflare/sandbox@0.4.17 build
3
3
  > rm -rf dist && tsdown --config tsdown.config.ts
4
4
 
5
5
  ℹ tsdown v0.15.11 powered by rolldown v1.0.0-beta.45
@@ -7,9 +7,9 @@
7
7
  ℹ entry: src/index.ts
8
8
  ℹ tsconfig: tsconfig.json
9
9
  ℹ Build start
10
- ℹ dist/index.js  95.61 kB │ gzip: 21.55 kB
11
- ℹ dist/index.js.map 202.56 kB │ gzip: 44.33 kB
12
- ℹ dist/index.d.ts.map  72.31 kB │ gzip: 19.90 kB
13
- ℹ dist/index.d.ts  53.99 kB │ gzip: 11.70 kB
14
- ℹ 4 files, total: 424.47 kB
15
- ✔ Build complete in 1968ms
10
+ ℹ dist/index.js 100.14 kB │ gzip: 22.78 kB
11
+ ℹ dist/index.js.map 211.33 kB │ gzip: 46.59 kB
12
+ ℹ dist/index.d.ts.map  73.81 kB │ gzip: 20.47 kB
13
+ ℹ dist/index.d.ts  56.43 kB │ gzip: 12.24 kB
14
+ ℹ 4 files, total: 441.72 kB
15
+ ✔ Build complete in 1927ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @cloudflare/sandbox
2
2
 
3
+ ## 0.4.17
4
+
5
+ ### Patch Changes
6
+
7
+ - [#198](https://github.com/cloudflare/sandbox-sdk/pull/198) [`93c6cc7`](https://github.com/cloudflare/sandbox-sdk/commit/93c6cc7c6b8df9e0a733fa852faf5d2f1c5758da) Thanks [@ghostwriternr](https://github.com/ghostwriternr)! - Fix container startup failures when WORKDIR is changed in derived Dockerfiles
8
+
9
+ ## 0.4.16
10
+
11
+ ### Patch Changes
12
+
13
+ - [#184](https://github.com/cloudflare/sandbox-sdk/pull/184) [`7989b61`](https://github.com/cloudflare/sandbox-sdk/commit/7989b6105cea8c381dd162be0bcb29db3e214fde) Thanks [@ghostwriternr](https://github.com/ghostwriternr)! - Redact credentials from Git URLs in logs
14
+
15
+ - [#186](https://github.com/cloudflare/sandbox-sdk/pull/186) [`c2e3384`](https://github.com/cloudflare/sandbox-sdk/commit/c2e3384b151ae3f430c2edc8c492921d0b6b8b1c) Thanks [@whoiskatrin](https://github.com/whoiskatrin)! - Expose deleteSession API with proper safeguards
16
+ - Add `deleteSession(sessionId)` method to public SDK API
17
+ - Prevent deletion of default session (throws error with guidance to use `sandbox.destroy()`)
18
+ - Session cleanup kills all running commands in parallel before destroying shell
19
+ - Return structured `SessionDeleteResult` with success status, sessionId, and timestamp
20
+
3
21
  ## 0.4.15
4
22
 
5
23
  ### Patch Changes
package/Dockerfile CHANGED
@@ -31,7 +31,7 @@ COPY --from=pruner /app/out/package-lock.json ./package-lock.json
31
31
 
32
32
  # Install ALL dependencies with cache mount for npm packages
33
33
  RUN --mount=type=cache,target=/root/.npm \
34
- npm ci
34
+ CI=true npm ci
35
35
 
36
36
  # Copy pruned source code
37
37
  COPY --from=pruner /app/out/full/ .
@@ -55,7 +55,7 @@ COPY --from=builder /app/tooling ./tooling
55
55
 
56
56
  # Install ONLY production dependencies (excludes typescript, @types/*, etc.)
57
57
  RUN --mount=type=cache,target=/root/.npm \
58
- npm ci --production
58
+ CI=true npm ci --production
59
59
 
60
60
  # ============================================================================
61
61
  # Stage 4: Download pre-built Python 3.11.14
@@ -187,4 +187,4 @@ COPY packages/sandbox/startup.sh ./
187
187
  RUN chmod +x startup.sh
188
188
 
189
189
  # Use startup script
190
- CMD ["./startup.sh"]
190
+ CMD ["/container-server/startup.sh"]