mirror of
https://github.com/langchain-ai/deepagentsjs.git
synced 2026-07-20 00:46:22 -04:00
5d266a213d
## Summary This PR removes command-execution semantics from `@langchain/node-vfs` and aligns `VfsSandbox` with `BackendProtocolV2` as a filesystem-only backend. The provider no longer uses sandbox execution abstractions and now performs core file operations directly against the in-memory VFS. ## Changes ### Protocol alignment - `VfsSandbox` now implements `BackendProtocolV2` directly instead of extending sandbox/base-execution abstractions. - Removed command execution from the provider surface (`execute` is no longer part of this backend implementation). - Removed `timeout` from `VfsSandboxOptions` and corresponding docs. ### Runtime behavior - Added native backend implementations for: - `read` - `readRaw` - `write` - `edit` - `ls` - `grep` - `glob` - Kept upload/download support and added path confinement handling for invalid traversal paths. - Continued in-memory VFS-only operation (no temp-dir shell sync path). ### Tests and docs - Updated unit and integration tests to remove execute-focused assertions and validate filesystem behavior. - Updated package docs to describe `BackendProtocolV2` usage and removed execute/timeout references. - Added changeset for `@langchain/node-vfs`.