@usine/cloudflare 0.1.1-next.289.g7247fc9 → 0.1.1-next.291.g2bf4be2
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 +2 -0
- package/image/Dockerfile +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -54,6 +54,8 @@ A keepalive alarm keeps the container running for two hours after the last creat
|
|
|
54
54
|
|
|
55
55
|
When Cloudflare restarts a host or replaces an instance, it sends the container SIGTERM and stops it up to 15 minutes later. The image's init (`image/init.sh`) writes the time to `/home/usine/.usine/draining` and keeps the container running, and each sandbox summary reports `draining` while the file exists. The executor then drains the Attempt: it salvages the checkout and destroys the sandbox before the container stops.
|
|
56
56
|
|
|
57
|
+
The sandbox image installs Codex 0.164.0 and Claude Code 2.1.308. Redeploy the Worker to rebuild its image when upgrading these pins.
|
|
58
|
+
|
|
57
59
|
## Deploy
|
|
58
60
|
|
|
59
61
|
You need a Cloudflare account with Workers Paid, which Containers require, and [Wrangler](https://developers.cloudflare.com/workers/wrangler/) logged in to it. The image is linux/amd64; Wrangler builds it with your local Docker.
|
package/image/Dockerfile
CHANGED
|
@@ -18,7 +18,7 @@ RUN apt-get update \
|
|
|
18
18
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends gh \
|
|
19
19
|
&& rm -rf /var/lib/apt/lists/*
|
|
20
20
|
|
|
21
|
-
RUN npm install -g pnpm@11.20.0 @anthropic-ai/claude-code@2.1.308 @openai/codex@0.
|
|
21
|
+
RUN npm install -g pnpm@11.20.0 @anthropic-ai/claude-code@2.1.308 @openai/codex@0.164.0 \
|
|
22
22
|
&& npm cache clean --force
|
|
23
23
|
|
|
24
24
|
# Files in @cloudflare/sandbox runs this helper to read the process files.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usine/cloudflare",
|
|
3
|
-
"version": "0.1.1-next.
|
|
3
|
+
"version": "0.1.1-next.291.g2bf4be2",
|
|
4
4
|
"description": "The Cloudflare Worker that runs each usine Attempt in its own sandbox, and the sandbox API the executor calls.",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"repository": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@cloudflare/sandbox": "1.0.3",
|
|
38
|
-
"@usine/core": "0.5.1-next.
|
|
38
|
+
"@usine/core": "0.5.1-next.291.g2bf4be2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@cloudflare/workers-types": "5.20261019.1",
|