feat(sdk): add allowNetworkMounts option to filesystem watch#1420
Conversation
Client-side counterpart to e2b-dev/infra#2982: adds an allowNetworkMounts/allow_network_mounts option to filesystem directory watching across the JS and Python (sync + async) SDKs, allowing watching paths on network filesystem mounts (NFS, CIFS, SMB, FUSE), which are rejected by default. Requires envd 0.6.4 or later; watching with the option against an older sandbox raises a template error. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
PR SummaryLow Risk Overview New watch tests only cover the flag on a normal directory, not a real network mount (expected for SDK tests). They also depend on envd 0.6.4; against older sandboxes the new tests fail until the matching infra change is deployed. There is no test that the client rejects Reviewed by Cursor Bugbot for commit a715c56. Bugbot is set up for automated code reviews on this repo. Configure here. |
Package ArtifactsBuilt from 58bddf1. Download artifacts from this workflow run. JS SDK ( npm install ./e2b-2.29.2-mishushakov-sdk-support-infra-2982.0.tgzCLI ( npm install ./e2b-cli-2.11.2-mishushakov-sdk-support-infra-2982.0.tgzPython SDK ( pip install ./e2b-2.28.2+mishushakov.sdk.support.infra.2982-py3-none-any.whl |
🦋 Changeset detectedLatest commit: a715c56 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Client-side counterpart to e2b-dev/infra#2982: adds an
allowNetworkMounts/allow_network_mountsoption to filesystem directory watching across the JS and Python (sync + async) SDKs, so clients can explicitly opt into watching paths on network filesystem mounts (NFS, CIFS, SMB, FUSE), which envd rejects by default. Events on network mounts may be unreliable or not delivered at all, hence the explicit opt-in.This regenerates the filesystem proto code from the updated spec and threads the flag through
watchDir/watch_dir(streamingWatchDirand pollingCreateWatcher). The option requires envd 0.6.4 (shipped by the infra PR); using it against an older sandbox throws aTemplateError/TemplateException. Default behavior is unchanged.Includes new watch tests for all three SDKs and a minor-bump changeset for
e2band@e2b/python-sdk.Usage
JavaScript
Python (async)
Python (sync)
🤖 Generated with Claude Code