Patch Changes
-
#1384
a7059d4Thanks @threepointone! - IntroduceWorkspaceFsLike— the minimumWorkspacesurface required byWorkspaceFileSystemandcreateWorkspaceStateBackend.WorkspaceFileSystem's constructor andcreateWorkspaceStateBackend's parameter both now accept anyWorkspaceFsLike(aPick<Workspace, …>of the 16 filesystem methods the adapter reaches for) rather than a concreteWorkspace. Non-breaking —Workspacestill satisfiesWorkspaceFsLikeso every existing call site keeps working without changes.This unlocks wrapping a real
Workspacebehind your own layer — most commonly a cross-DO proxy that forwards each call to a parent agent's workspace over RPC — and still using it as the storage for codemode'sstate.*sandbox API viacreateWorkspaceStateBackend. Seeexamples/assistantfor the end-to-end pattern withSharedWorkspace.