@cloudflare/sandbox 0.4.15 → 0.4.16
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/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +12 -0
- package/Dockerfile +2 -2
- package/dist/index.d.ts +386 -322
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +136 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/clients/git-client.ts +7 -0
- package/src/clients/index.ts +4 -0
- package/src/clients/utility-client.ts +33 -0
- package/src/index.ts +6 -2
- package/src/sandbox.ts +37 -4
- package/src/version.ts +1 -1
- package/tests/git-client.test.ts +72 -0
- package/tests/sandbox.test.ts +33 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @cloudflare/sandbox@0.4.
|
|
2
|
+
> @cloudflare/sandbox@0.4.16 build
|
|
3
3
|
> rm -rf dist && tsdown --config tsdown.config.ts
|
|
4
4
|
|
|
5
5
|
[34mℹ[39m tsdown [2mv0.15.11[22m powered by rolldown [2mv1.0.0-beta.45[22m
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
[34mℹ[39m entry: [34msrc/index.ts[39m
|
|
8
8
|
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
9
9
|
[34mℹ[39m Build start
|
|
10
|
-
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [
|
|
11
|
-
[34mℹ[39m [2mdist/[22mindex.js.map [
|
|
12
|
-
[34mℹ[39m [2mdist/[22mindex.d.ts.map [2m
|
|
13
|
-
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m
|
|
14
|
-
[34mℹ[39m 4 files, total:
|
|
15
|
-
[32m✔[39m Build complete in [
|
|
10
|
+
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m100.14 kB[22m [2m│ gzip: 22.78 kB[22m
|
|
11
|
+
[34mℹ[39m [2mdist/[22mindex.js.map [2m211.33 kB[22m [2m│ gzip: 46.59 kB[22m
|
|
12
|
+
[34mℹ[39m [2mdist/[22mindex.d.ts.map [2m 73.81 kB[22m [2m│ gzip: 20.47 kB[22m
|
|
13
|
+
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.ts[22m[39m [2m 56.43 kB[22m [2m│ gzip: 12.24 kB[22m
|
|
14
|
+
[34mℹ[39m 4 files, total: 441.72 kB
|
|
15
|
+
[32m✔[39m Build complete in [32m2083ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @cloudflare/sandbox
|
|
2
2
|
|
|
3
|
+
## 0.4.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#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
|
|
8
|
+
|
|
9
|
+
- [#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
|
|
10
|
+
- Add `deleteSession(sessionId)` method to public SDK API
|
|
11
|
+
- Prevent deletion of default session (throws error with guidance to use `sandbox.destroy()`)
|
|
12
|
+
- Session cleanup kills all running commands in parallel before destroying shell
|
|
13
|
+
- Return structured `SessionDeleteResult` with success status, sessionId, and timestamp
|
|
14
|
+
|
|
3
15
|
## 0.4.15
|
|
4
16
|
|
|
5
17
|
### 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
|