Commit Graph

171 Commits

Author SHA1 Message Date
Mish Ushakov c38a1819b6 Fix Python SDK type issues with ty type checker (#1122)
## Summary
- Resolved 43 type diagnostics reported by ty (Astral's Python type
checker)
- Fixed Self type issues on class singletons
- Added explicit type annotations for shadowed attributes
- Replaced None with UNSET for auto-generated API parameters
- Fixed method signature alignment for protocol matching
- Added targeted type: ignore suppressions for pattern-based limitations

All checks pass: ty check, ruff format, ruff check.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Medium Risk**
> Mostly typing/CI changes, but some adjustments affect sandbox
connect/pause overload dispatch and API response/parameter handling
(`UNSET` vs `None`), which could alter edge-case runtime behavior.
> 
> **Overview**
> Fixes Python SDK static typing issues for Astral’s `ty` checker and
wires typechecking into CI.
> 
> Adds a new `Typecheck` GitHub Action plus workspace `typecheck`
scripts (TS packages via `tsc`, Python SDK via `make typecheck` running
`ty`), and publishes a patch changeset for `@e2b/python-sdk`.
> 
> Across the Python SDK, adjusts type annotations and overloads (e.g.,
`Self`/singleton typing, `connect` overloads, optional
`user`/token/domain handling), tightens API model parsing with
`cast`/`Optional` checks and `UNSET` usage, and adds a few targeted `ty`
ignore comments in tests/protocols to silence checker limitations.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
f66402847c40cee7e44e1aaa7caa97e271ba9978. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-02-12 16:23:39 +00:00
Jakub Novák 118890a9b2 Update e2b (#1051)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Upgrade `e2b` to 2.8.4 in CLI, update `eslint-config-next` to 14.2.35
in web app, add pnpm override for `@next/eslint-plugin-next>glob`, and
refresh lockfile.
> 
> - **Dependencies**:
> - **CLI**: Bump `e2b` from `^2.7.0` to `^2.8.4` in
`packages/cli/package.json`.
> - **Web**: Update `eslint-config-next` from `14.2.21` to `14.2.35` in
`apps/web/package.json`.
> - **Tooling/Config**:
> - Add pnpm override to force `@next/eslint-plugin-next>glob@*` to
`10.5.0` in root `package.json`.
> - **Lockfile**:
> - Regenerate `pnpm-lock.yaml` reflecting the above upgrades and
transitive dependency adjustments (e.g.,
`@next/eslint-plugin-next@14.2.35`, `glob@10.5.0`).
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
b143ae8745bb90ff83a0332364ee5052f76db3fb. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
2025-12-16 16:53:48 +00:00
Jakub Novák 8162a34cb7 Update inquirer and use npx for changeset (#1008)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Upgrades CLI prompting deps (inquirer v12, @inquirer/prompts v7.9) and
switches release scripts to use pnpm/pnpx changeset; lockfile updated
accordingly.
> 
> - **CLI**:
> - Upgrade `inquirer` to `^12.10.0` and `@inquirer/prompts` to `^7.9.0`
in `packages/cli/package.json`.
> - **Tooling/Release Scripts**:
> - Change root `package.json` scripts to use `pnpm changeset ...` and
add `changeset` script via `pnpx @changesets/cli`.
>   - Remove direct root dependency on `@changesets/cli`.
> - **Lockfile**:
> - Refresh `pnpm-lock.yaml` to reflect dependency upgrades and
removals.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
0596c189ae264d795de4168a2d2497121ae0d72d. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
2025-11-04 12:23:24 -08:00
Jakub Novák b42ab2a86b Add pipeline for linting and formatting (#883)
Setup linting and formatting in all packages
2025-08-31 12:06:00 -07:00
Mish Ushakov b21f86c543 Added lint workflow for JS, Python SDKs (#759)
- Linted all existing files
- Added GitHub workflow to check everything is linted correctly
2025-06-05 14:52:48 +02:00
Ben Fornefeld 842f46cb8d improve: sitemap creation & category rewrite modifications 2025-02-19 15:53:01 +01:00
Jakub Dobry c108afb674 Update package manager to the latest 9.x version (9.15.5) 2025-02-10 14:01:41 -08:00
Jakub Novak 3bbc0b9547 Update packages 2025-02-05 10:22:20 -08:00
Jakub Novak 66141ef03e Update changeset to update cross-spawn 2025-02-04 22:36:40 -08:00
Ben Fornefeld e644a98a14 add billing api logic + improve billing alerts components 2025-01-24 11:37:50 -08:00
0div d599ddac32 rebrand to SDK reference 2024-11-26 10:34:04 -08:00
Jakub Novak 1ee0f01b09 [skip CI] Release new versions 2024-10-16 03:25:08 -07:00
Jakub Novak 707b518872 Setup release pipeline to generate api ref 2024-10-15 10:17:45 -07:00
Jakub Novak 1e36dd02dd Enforce pnpm version 2024-10-15 08:29:46 -07:00
Vasek Mlejnsky 024d30ed45 Fix docs build 2024-10-14 11:35:58 -07:00
Jakub Novak 260ab1dbed Fix wrong file reference to old docs folder 2024-07-18 10:30:07 +02:00
Jakub Novák 388309830b New infra (#212)
Co-authored-by: Tomas Valenta <valenta.and.thomas@gmail.com>
Co-authored-by: Vasek Mlejnsky <vasek.mlejnsky@gmail.com>
2023-11-06 15:07:09 +01:00
Vasek Mlejnsky 104bbf3960 New version of docs (#206) 2023-10-25 22:58:05 -07:00
Jakub Novak d1c6854e9b Split Release action into multiple jobs 2023-10-02 15:51:00 +02:00
Pavel 'Strajk' Dolecek b314054aaf bump 2023-09-27 11:04:11 +02:00
Jakub Novak 426ded3a7c Fix release pipeline
Test CLI / Build CLI (push) Has been cancelled
2023-09-25 13:46:05 +02:00
Pavel 'Strajk' Dolecek 631ee32166 chore: pnpm fixes 2023-09-21 18:05:39 +02:00
Pavel 'Strajk' Dolecek f55da2d86c chore: npm → pnpm (#154) 2023-09-21 17:45:35 +02:00
Vasek Mlejnsky 2345e4933a (docs) Add docs for reading and writing bytes 2023-09-21 15:45:29 +02:00
Vasek Mlejnsky bd7312fdbc Fix eslint errors 2023-09-21 13:57:45 +02:00
Pavel 'Strajk' Dolecek 91c5d6cf21 chore: Linting cleanup (#152) 2023-09-20 11:21:23 +02:00
Pavel 'Strajk' Dolecek 01e9507418 chore(js-sdk): rollup replace problematic json plugin (#129) 2023-09-14 12:51:07 +02:00
Jakub Novák e894b4958f [E2B-286] - Run release GHA only when really releasing (#114)
Co-authored-by: Tomas Valenta <valenta.and.thomas@gmail.com>
2023-09-06 11:41:48 +02:00
Tomas Valenta f104747510 Switch back to unconditional releasing 2023-08-30 20:23:09 +02:00
Tomas Valenta ae066344b5 Switch to new GHA syntax 2023-08-30 18:50:16 +02:00
Tomas Valenta 00b98442b4 Add gh version script 2023-08-30 18:33:38 +02:00
Jakub Novák 250ffc69c9 Periodic E2E tests of our infra via calling sdks (#92) 2023-08-28 18:29:48 +02:00
Jakub Novák d84073042f Monorepo releasing (#79) 2023-08-23 11:50:04 +02:00
Tomas Valenta 55560bd096 Reorganize repo 2023-08-14 14:32:42 +02:00
Tomas Valenta 2a5bc7de71 Cleanup 2023-07-01 17:08:01 -07:00
Tomas Valenta 511f0b0ded Cleanup 2023-06-30 17:38:27 -07:00
Vasek Mlejnsky 3802bbb9f5 Add badge endpoint 2023-06-27 21:38:59 -07:00
Tomas Valenta da1b1cd454 Fix vercel build error 2023-06-27 01:33:28 -07:00
Tomas Valenta 0682ce82b4 Add client side upload logs fetching 2023-06-27 01:26:43 -07:00
Tomas Valenta 7d58316995 Merge branch 'templates' into production 2023-06-20 17:59:40 -07:00
Tomas Valenta ce7272f0ad Add Python API to npm scripts again 2023-06-19 14:03:20 -07:00
Tomas Valenta 83861f2b30 Fix npm script call 2023-06-19 13:38:44 -07:00
Tomas Valenta 1c943d182d Add FS explorer for uploaded logs [WIP] 2023-06-18 16:44:13 -07:00
Tomas Valenta 11611cfb88 Finish user feedback 2023-06-16 13:55:44 -07:00
Vasek Mlejnsky 16f25f23a4 render function params 2023-06-16 03:19:45 -07:00
Tomas Valenta 4875b195fc Remove API start from dev command; Remove API deps install from install all command 2023-06-16 01:19:41 -07:00
Tomas Valenta 88ba918244 Remove unfinished nextjs otel 2023-06-15 15:23:45 -07:00
Tomas Valenta f7f851dcb1 Fix metrics check interval; Disable otel debug logs 2023-06-14 22:45:29 -07:00
Tomas Valenta 792b56ff68 Fix dev commands 2023-06-14 18:31:27 -07:00
Tomas Valenta 6039b3b679 Add sentry 2023-06-14 18:31:27 -07:00