222105dc8f
## Summary - Enable glob patterns to match files starting with dot (e.g., `.env`, `.gitignore`) - JS SDK: Add `dot: true` to glob calls in `getAllFilesInPath` - Python SDK: Add `glob.DOTMATCH` flag to glob calls in `get_all_files_in_path` - Add comprehensive tests for dotfile handling in both SDKs Previously, the glob library defaults prevented dotfiles from being matched, preventing upload of configuration files like `.env`. This fix enables proper handling of dotfiles in template file uploads. ## Test plan - ✅ All 16 JS SDK tests pass (4 new dotfile tests) - ✅ All 17 Python SDK tests pass (4 new dotfile tests) - ✅ `pnpm run format` passes - ✅ `pnpm run lint` passes - ✅ `pnpm run typecheck` passes 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Small, well-scoped change to glob options that only broadens matched file sets; main risk is unintentionally including hidden files unless excluded via ignore patterns. > > **Overview** > Template file collection now includes dot-prefixed files and directories (e.g., `.env`, `.gitignore`, `.hidden/**`) when building/uploading templates. > > This updates globbing in the JS SDK’s `getAllFilesInPath` to set `dot: true` (including recursive directory expansion) and the Python SDK’s `get_all_files_in_path` to add `glob.DOTMATCH`, and adds targeted tests in both SDKs to verify dotfile inclusion and that ignore patterns still exclude specified dotfiles. A changeset bumps both `e2b` and `@e2b/python-sdk` as patch releases. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit fc3cbcc232bc28559d38bb267162d3f55138b558. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>