feat(sdk): add includeEntry option to filesystem watch#1385
feat(sdk): add includeEntry option to filesystem watch#1385mishushakov wants to merge 2 commits into
Conversation
Mirror infra PR e2b-dev/infra#2930 on the client: add an includeEntry/include_entry option to directory watching across the JS and Python (sync + async) SDKs. When enabled, each FilesystemEvent carries the affected entry's EntryInfo (best-effort; unset for remove/rename-away events). Regenerated the filesystem proto code and added tests plus a changeset. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: 551fc36 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 |
PR SummaryLow Risk Overview The filesystem proto and generated bindings gain Documented behavior: full entry metadata needs envd 0.6.2+; older sandboxes ignore the flag and leave Reviewed by Cursor Bugbot for commit 551fc36. Bugbot is set up for automated code reviews on this repo. Configure here. |
Package ArtifactsBuilt from abfdc28. Download artifacts from this workflow run. JS SDK ( npm install ./e2b-2.27.2-mishushakov-client-side-infra-pr-2930.0.tgzCLI ( npm install ./e2b-cli-2.10.4-mishushakov-client-side-infra-pr-2930.0.tgzPython SDK ( pip install ./e2b-2.25.1+mishushakov.client.side.infra.pr.2930-py3-none-any.whl |
The lone remaining inline EntryInfo construction; brings the async get_info call site in line with the other list/get_info/rename sites across the JS and Python SDKs. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Client-side counterpart to e2b-dev/infra#2930: adds an
includeEntry/include_entryoption to filesystem directory watching across the JS and Python (sync + async) SDKs, so eachFilesystemEventcan carry the affected entry'sEntryInfo(best-effort — unset for remove/rename-away events where the path no longer exists). This regenerates the filesystem proto code from the updated spec, threads the flag throughwatchDir/watch_dir(streamingWatchDirand pollingCreateWatcher), maps the newentryfield onto the event, and extracts a shared entry-mapping helper reused bylist/getInfo/rename. The option degrades gracefully: older sandboxes (< envd 0.6.2) ignore it and leaveentryunset, so there's no hard version gate. Includes new watch tests for all three SDKs and a minor-bump changeset fore2band@e2b/python-sdk.Usage
JavaScript
Python (async)
Python (sync)
🤖 Generated with Claude Code