Commit 4e580db
feat: add support for VNC using x11vnc and novnc (e2b-dev#15)
* feat: add ubuntu-desktop template with custom wallpaper and vnc support
* Cleanup dockerfile; create dev template
* feat: restore original template directory
* feat: update env vars in desktop-dev template
* feat: add wait_for_port function to verify vnc and novnc status
* feat: full control over startup and vnc server
* feat: refresh desktop and unique password generation
* fix: remove vnc and novnc handles on stop
* feat: add js sdk
* feat: add auto-connect parameter in novnc URL
* fix: resolve extended sandboxOpts issue
* fix: resolve e2b wallpaper not applied issue
* fix: catch command exit error in wait and verify method
* Update README
* feat: update the original template
* Revert changes made to template to add VNC support
* Restore necessary changes to template for VNC support
* Use E2B fork of noVNC without control bar and branding
* Upgrade typedoc package to 0.27.9
* Add type definitions for NodeJS
* Remove autoconnect parameter from examples
* Add the password to the stream URL when auth is enabled
* Don't print the password in the Python example
* Enable stream auth in the TypeScript example
* Rename methods and documentation to use "stream" instead of "VNC"
* Throw an error instead of returning null for getCursorPosition() and getScreenSize()
* Remove README for Python SDK
* Remove desktop.hotkey()
* Rename takeScreenshot() to screenshot()
* Make password member private in the TypeScript SDK
* Throw an error on stream.start() if the stream is already running
* Always use Sandbox class name instead of Desktop
* Move stream parameters to stream.start()
* Remove desktop.refresh()
* added changeset
* changed default sandbox template
* Add apt-update
* Remove old streaming web page
* Make sure to always pull the latest git repo in the sandbox template by invalidating Docker cache
* Add readmes to each package
* Explain better how stream auth works
* Remove example of customizing streaming port from readmes
* Change positional params to an options object for the `write()` method in JS SDK
---------
Co-authored-by: Vasek Mlejnsky <vasek.mlejnsky@gmail.com>
Co-authored-by: James Murdza <james@jamesmurdza.com>
Co-authored-by: Mish Ushakov <mishushakov@users.noreply.github.com>1 parent 650efcd commit 4e580db
22 files changed
Lines changed: 5550 additions & 651 deletions
File tree
- .changeset
- packages
- js-sdk
- src
- tests
- python-sdk
- e2b_desktop
- tests
- readme-assets
- template
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| 23 | + | |
21 | 24 | | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| 31 | + | |
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
| 37 | + | |
32 | 38 | | |
| 39 | + | |
33 | 40 | | |
34 | 41 | | |
35 | 42 | | |
| 43 | + | |
36 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
37 | 52 | | |
38 | 53 | | |
39 | 54 | | |
| 55 | + | |
40 | 56 | | |
41 | 57 | | |
42 | 58 | | |
| 59 | + | |
43 | 60 | | |
44 | | - | |
45 | 61 | | |
46 | | - | |
47 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
48 | 69 | | |
49 | | - | |
| 70 | + | |
50 | 71 | | |
51 | | - | |
| 72 | + | |
52 | 73 | | |
53 | 74 | | |
| 75 | + | |
54 | 76 | | |
55 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
56 | 82 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
62 | 89 | | |
63 | 90 | | |
64 | 91 | | |
| 92 | + | |
65 | 93 | | |
66 | 94 | | |
67 | 95 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
73 | 107 | | |
74 | 108 | | |
75 | | - | |
| 109 | + | |
76 | 110 | | |
77 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
78 | 149 | | |
79 | 150 | | |
80 | 151 | | |
81 | 152 | | |
| 153 | + | |
82 | 154 | | |
83 | 155 | | |
84 | 156 | | |
| |||
92 | 164 | | |
93 | 165 | | |
94 | 166 | | |
| 167 | + | |
95 | 168 | | |
96 | 169 | | |
97 | 170 | | |
| |||
108 | 181 | | |
109 | 182 | | |
110 | 183 | | |
| 184 | + | |
111 | 185 | | |
112 | 186 | | |
113 | 187 | | |
114 | 188 | | |
115 | | - | |
116 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
117 | 216 | | |
118 | 217 | | |
119 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
120 | 222 | | |
121 | 223 | | |
122 | 224 | | |
123 | 225 | | |
124 | 226 | | |
125 | | - | |
| 227 | + | |
126 | 228 | | |
127 | 229 | | |
128 | 230 | | |
129 | 231 | | |
130 | 232 | | |
131 | 233 | | |
| 234 | + | |
132 | 235 | | |
133 | 236 | | |
134 | 237 | | |
135 | 238 | | |
136 | | - | |
| 239 | + | |
137 | 240 | | |
138 | | - | |
| 241 | + | |
139 | 242 | | |
140 | 243 | | |
141 | 244 | | |
142 | 245 | | |
143 | 246 | | |
| 247 | + | |
144 | 248 | | |
145 | 249 | | |
146 | 250 | | |
| |||
151 | 255 | | |
152 | 256 | | |
153 | 257 | | |
| 258 | + | |
154 | 259 | | |
155 | 260 | | |
156 | 261 | | |
157 | 262 | | |
158 | 263 | | |
159 | 264 | | |
160 | | - | |
161 | | - | |
| 265 | + | |
| 266 | + | |
162 | 267 | | |
163 | 268 | | |
164 | 269 | | |
| 270 | + | |
165 | 271 | | |
| 272 | + | |
166 | 273 | | |
167 | 274 | | |
168 | 275 | | |
| |||
173 | 280 | | |
174 | 281 | | |
175 | 282 | | |
| 283 | + | |
176 | 284 | | |
177 | 285 | | |
178 | 286 | | |
179 | 287 | | |
180 | 288 | | |
181 | 289 | | |
182 | | - | |
| 290 | + | |
183 | 291 | | |
184 | 292 | | |
185 | 293 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | 294 | | |
213 | | - | |
214 | 295 | | |
215 | 296 | | |
216 | 297 | | |
217 | | - | |
| |||
0 commit comments