Commit Graph

4678 Commits

Author SHA1 Message Date
github-actions[bot] 8efd4d2795 [skip ci] Release new versions 2024-09-26 06:48:22 +00:00
Jakub Novak 8d626186de Fix types 2024-09-26 08:44:45 +02:00
Jakub Novak 1d5ae30312 Merge 'main' 2024-09-26 08:39:05 +02:00
Tomas Valenta ff368d1ba7 Explicitly configure keepalive pinging in Python SDK 2024-09-25 18:08:22 -07:00
Tomas Valenta 24e06c5e1a Fix entry info return type 2024-09-25 17:46:28 -07:00
Tomas Valenta e5b81e274c Cleanup python pty types 2024-09-25 17:42:40 -07:00
Tomas Valenta 41853ccf98 Add keepalive ping and error handlers to pty 2024-09-25 17:32:04 -07:00
Tomas Valenta 81d349cb0b Create constant for keepalive header 2024-09-25 17:31:43 -07:00
Tomas Valenta 3bd7426780 Fix possible type inconsistency 2024-09-25 17:17:27 -07:00
Tomas Valenta 10fac56058 Remove unused imports 2024-09-25 17:17:08 -07:00
Tomas Valenta 1c6c44c782 Fix possible type inconsistency 2024-09-25 17:16:04 -07:00
Tomas Valenta 71406236c0 Explicitly configure keepalive pinging 2024-09-25 17:06:59 -07:00
Tomas Valenta daa0efb8e4 Increase python connections limit 2024-09-25 17:04:12 -07:00
Tomas Valenta 48d01df794 Use json transport for rpc in SDKs 2024-09-25 17:03:58 -07:00
Tomas Valenta 4047d71393 Fix watchdir start bug 2024-09-25 16:05:55 -07:00
0div 8172404876 allow commit failure in workflow 2024-09-24 18:18:32 +02:00
0div fa90994e49 [squashed many commits] GH actions workflow for API ref autogen 2024-09-24 18:15:31 +02:00
0div c15309c948 Auto-generate API reference markdown files for the CLI (#448) 2024-09-20 16:16:09 +02:00
0div b70975fee1 address PR comments 2024-09-20 16:14:53 +02:00
0div 8812b42d46 address PR comments 2024-09-20 16:03:50 +02:00
0div 4059a95e92 Auto-generate API reference markdown files for the js-sdk (#447)
# Description 
- Installed and configured
[typedoc](https://github.com/TypeStrong/typedoc) and its plugin
[typedoc-plugin-markdown](https://github.com/typedoc2md/typedoc-plugin-markdown)
- Created a script that generates and cleans markdown files

# Test
```bash
cd packages/js-sdk
./scripts/generate_api_ref.sh 
ls ./api_ref
```

# Considerations
This could eventually be used directly as .mdx in the docs nextjs app,
it would look like this with current styling and TOC:

<img width="340" alt="Screenshot 2024-09-18 at 17 29 22"
src="https://github.com/user-attachments/assets/69e1f01d-cab9-4d8c-8eac-23bc367ae03c">

<img width="685" alt="Screenshot 2024-09-18 at 17 29 32"
src="https://github.com/user-attachments/assets/a585a363-ceb2-48bf-a24d-a7c440607f61">

<img width="659" alt="Screenshot 2024-09-18 at 17 29 45"
src="https://github.com/user-attachments/assets/5591b353-70dc-440a-be2f-890dee057593">


per my previous slack messages:
> typedoc and its typedoc-plugin-markdown are more opinionated than i
assumed.
The extent of how detailed it documents things about classes and
interfaces is less configurable than i thought, for example it forces
you to display all inheritance info (there's a plugin to remove that but
it's clunky) . Also, linking is not configurable when you are converting
to markdown, it seems to keep routing as if it were a static website
directory with relative links so i removed all links.
Had to create a hacky post-processor to handle these obstacles.

i wish i could figure out a way to use anchor links, i looked into
[typedoc-plugin-pages](https://github.com/KnodesCommunity/typedoc-plugins/tree/develop/packages/plugin-pages)
but couldn't get it to behave the way I want.
2024-09-20 15:05:17 +02:00
0div e701f40882 Auto-generate API reference markdown files for the python-sdk (#441)
# Description

- Installed and configured
[pydoc-markdown](https://niklasrosenstein.github.io/pydoc-markdown/).
- Created a script that generates and cleans markdown files with a
configurable package list.
- Added docstrings to relevant public methods of the various sdk classes
in order for pydoc to detect them.

# Test

```bash
cd packages/python-sdk
./scripts/generate_api_ref.sh 
ls ./api_ref
```

# Considerations

This could eventually be used directly as `.mdx` in the docs nextjs app,
it would look like this with current styling:
<img width="836" alt="Screenshot 2024-09-17 at 17 22 43"
src="https://github.com/user-attachments/assets/a23e954f-2834-4fb6-88a6-d87747a0cf49">
2024-09-20 15:04:57 +02:00
0div f54657726c improve clearning of the md content output 2024-09-20 12:35:31 +02:00
0div 6e7b32c3c0 add root .prettierc 2024-09-20 12:20:31 +02:00
0div f44d1f830d created api ref generator script from parsing commands into md with the new -cmd2md option 2024-09-20 12:11:01 +02:00
Jakub Novák caf650b9bc Added google auth provider (#443) 2024-09-20 10:07:44 +02:00
Mish Ushakov 1f1a0e6cd5 Added google auth provider 2024-09-18 11:48:33 +02:00
Jakub Novak 9a8d504c72 Export types 2024-09-13 16:37:37 +02:00
Jakub Novak 53ee6bbbeb Add pty to Python 2024-09-13 15:45:26 +02:00
Jakub Novak ca4dc8e24e Decrease default test concurrency to 4 2024-09-13 15:37:19 +02:00
Jakub Novak 48985bdc89 Add envs and cwd for pty 2024-09-13 15:36:53 +02:00
Jakub Novak 791ca585a8 Fix imports 2024-09-13 10:11:43 +02:00
Jakub Novak 16f0512b7e Apply prettier 2024-09-13 10:04:26 +02:00
Jakub Novak 731a109fc6 Add Ctrl+C handling in terminal 2024-09-13 10:00:20 +02:00
Jakub Novak 80ae7f452a Rewrite terminal in CLI 2024-09-13 10:00:20 +02:00
Jakub Novak 0c0c04116f Handle starting event 2024-09-13 10:00:20 +02:00
Jakub Novak 1dd46c3dad Skip set timeout in debug mode 2024-09-13 10:00:18 +02:00
Jakub Novak 12c0c8b89c Add type 2024-09-13 09:59:45 +02:00
Jakub Novak 1dff963dbe Skip kill for debug mode 2024-09-13 09:59:45 +02:00
Jakub Novak 4800e760e2 Make terminal work 2024-09-13 09:59:45 +02:00
Jakub Novak 11ab055d39 Migrate CLI to Beta SDK 2024-09-13 09:59:45 +02:00
Vasek Mlejnsky 99129a51f8 Update doc to explain the exception name based on the language used (#440)
Docs don't explain what language the exception names are for. Update the
docs to reflect that.
2024-09-12 20:39:42 -07:00
Alessio Fanelli 9fc9d26752 Update doc to explain the exception name based on the language used 2024-09-12 17:37:24 -07:00
github-actions[bot] aec738b120 [skip ci] Release new versions 2024-09-12 00:25:25 +00:00
Tomas Valenta 63f83e684f Merge branch 'beta' of https://github.com/e2b-dev/E2B into beta 2024-09-11 17:24:17 -07:00
Tomas Valenta 5678997c52 Lower the keepalive; Explicitly try handling RemoteProtocolError retry 2024-09-11 17:24:14 -07:00
github-actions[bot] d76f694ec6 [skip ci] Release new versions 2024-09-11 23:07:37 +00:00
Tomas Valenta a4991a25a8 Align keepalive on client with proxies and envd 2024-09-11 15:48:49 -07:00
Tomas Valenta 0e0d985e03 Update migration guide for listing sandboxes 2024-09-11 13:01:10 -07:00
Tomas Valenta 3a0a4b1c58 Update migration guide with hostname method info 2024-09-11 12:51:54 -07:00