Skip to content

Commit 4d0886c

Browse files
committed
docs: Remove stale useThink guidance
1 parent eced9a4 commit 4d0886c

2 files changed

Lines changed: 7 additions & 13 deletions

File tree

docs/01_vfs.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,10 @@ Workspace where `fs` works against the local SQLite store but
3434
`shell` throws.
3535

3636
`WorkspaceOptions` includes the storage handle, optional backends,
37-
clock, session id, mounts, observer, git identity, assets, artifacts,
38-
and `useThink`. There is no `root` or `sandbox` field on the host
39-
facade — sandbox wiring lives behind a `WorkspaceBackend`.
40-
41-
Set `useThink: true` when assigning the Workspace to
42-
`Think.workspace`. This adds Think's string-oriented filesystem
43-
compatibility methods (`readFile`, `readFileBytes`, `writeFile`,
44-
`readDir`, `rm`, `glob`, `mkdir`, and `stat`) to that Workspace and to
45-
clients returned by `getWorkspace()`, while leaving the primary API on
46-
`workspace.fs`.
37+
clock, session id, mounts, observer, git identity, assets, and artifacts.
38+
There is no `root` or `sandbox` field on the host facade — sandbox wiring
39+
lives behind a `WorkspaceBackend`. Think integrations use `workspace.fs`
40+
and `@cloudflare/computer/tools` directly.
4741

4842
Illustrative layout (nothing below `/` is auto-created beyond
4943
`ROOT_INODE` itself):

packages/computer/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,9 @@ await ws.ready();
465465
const stub = ws.stub(); // crosses the Workers-RPC boundary
466466
```
467467

468-
When assigning a workspace to a Think agent's `workspace`, pass
469-
`useThink: true` so Think's compatibility methods are added alongside
470-
`workspace.fs` and `workspace.runtime`.
468+
Think integrations use `workspace.fs`, `workspace.runtime`, and
469+
`@cloudflare/computer/tools` directly. The legacy root-level filesystem
470+
compatibility methods are not available.
471471

472472
### Durable pending-sync retries
473473

0 commit comments

Comments
 (0)