You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move the git client behind an explicit Workspace option so the default package graph no longer pulls in isomorphic-git. The git subpath now exposes createGitClient() as a factory provider and keeps the pako replacement local to the bundled git entrypoint.
Add a node:zlib-backed pako shim for the isomorphic-git paths used by the workspace git client. This preserves automatic git support for callers that opt in while avoiding pako for Worker builds that only use the core workspace.
`workspace.git` is a major typed surface on `Workspace`, alongside `fs`, `runtime`, Assets, and Artifacts. It runs every operation against the
10
-
local SQLite-backed VFS through `isomorphic-git`, so a
9
+
`workspace.git` is a major typed surface on `Workspace`, alongside `fs`, `runtime`, Assets, and Artifacts. It is opt-in: pass `createGitClient()` from `@cloudflare/computer/git` as `WorkspaceOptions.git` to enable it. Git runs every operation against the local SQLite-backed VFS through `isomorphic-git`, so a
11
10
filesystem-only workspace (no backend) can drive a full
12
-
clone/commit/diff cycle.
11
+
clone/commit/diff cycle. The git subpath bundles `isomorphic-git`
12
+
lazily and replaces its `pako` dependency with a small
13
+
`node:zlib` shim for Workers running with `nodejs_compat`; the
14
+
default `@cloudflare/computer` graph stays free of git.
13
15
14
16
Two doors into the same implementation:
15
17
@@ -111,8 +113,9 @@ diff against HEAD — through each entry point.
Copy file name to clipboardExpand all lines: docs/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ The package ships several entrypoints:
46
46
|`@cloudflare/computer/backends/container`|`CloudflareContainerBackend` and `withWorkspaceContainer`. Pulls in the computerd / capnweb sync plumbing. |
47
47
|`@cloudflare/computer/backends/worker`|`WorkerBackend` and the bundled just-bash command runtime. |
|`@cloudflare/computer/git`|Isomorphic-git glue for working with checkouts inside the workspace. |
49
+
|`@cloudflare/computer/git`|Opt-in isomorphic-git glue for working with checkouts inside the workspace. Bundled lazily, with `pako` replaced by Workers `node:zlib`, and kept out of the default `@cloudflare/computer` graph. |
50
50
|`@cloudflare/computer/artifacts`|`createArtifact`, a session-scoped facade over the Cloudflare Artifacts Workers binding, plus its argv CLI. |
51
51
|`@cloudflare/computer/tools`| AI SDK tools for agents: read, write, edit, ls, optional exec, and optional publish. |
0 commit comments