@daytonaio/sdk 0.171.0-alpha.9 → 0.171.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/package.json +8 -47
  2. package/{cjs → src}/CodeInterpreter.d.ts +0 -1
  3. package/src/CodeInterpreter.js.map +1 -0
  4. package/{cjs → src}/ComputerUse.d.ts +0 -1
  5. package/src/ComputerUse.js.map +1 -0
  6. package/{cjs → src}/Daytona.d.ts +0 -1
  7. package/{cjs → src}/Daytona.js +17 -19
  8. package/src/Daytona.js.map +1 -0
  9. package/{esm → src}/FileSystem.d.ts +0 -1
  10. package/src/FileSystem.js.map +1 -0
  11. package/{esm → src}/Git.d.ts +0 -1
  12. package/src/Git.js.map +1 -0
  13. package/{cjs → src}/Image.d.ts +0 -1
  14. package/src/Image.js.map +1 -0
  15. package/{esm → src}/LspServer.d.ts +0 -1
  16. package/src/LspServer.js.map +1 -0
  17. package/{cjs → src}/ObjectStorage.d.ts +0 -1
  18. package/src/ObjectStorage.js.map +1 -0
  19. package/{cjs → src}/Process.d.ts +0 -1
  20. package/src/Process.js.map +1 -0
  21. package/{cjs → src}/PtyHandle.d.ts +0 -1
  22. package/src/PtyHandle.js.map +1 -0
  23. package/{cjs → src}/Sandbox.d.ts +0 -1
  24. package/src/Sandbox.js.map +1 -0
  25. package/{cjs → src}/Snapshot.d.ts +0 -1
  26. package/src/Snapshot.js.map +1 -0
  27. package/{esm → src}/Volume.d.ts +0 -1
  28. package/src/Volume.js.map +1 -0
  29. package/src/__tests__/helpers.d.ts +5 -0
  30. package/src/__tests__/helpers.js +26 -0
  31. package/src/__tests__/helpers.js.map +1 -0
  32. package/{esm → src}/errors/DaytonaError.d.ts +0 -1
  33. package/src/errors/DaytonaError.js.map +1 -0
  34. package/{cjs → src}/index.d.ts +0 -1
  35. package/src/index.js.map +1 -0
  36. package/{esm → src}/types/Charts.d.ts +0 -1
  37. package/src/types/Charts.js.map +1 -0
  38. package/{esm → src}/types/CodeInterpreter.d.ts +0 -1
  39. package/src/types/CodeInterpreter.js.map +1 -0
  40. package/{cjs → src}/types/ExecuteResponse.d.ts +0 -1
  41. package/src/types/ExecuteResponse.js.map +1 -0
  42. package/{cjs → src}/types/Pty.d.ts +0 -1
  43. package/src/types/Pty.js.map +1 -0
  44. package/{esm → src}/utils/Binary.d.ts +0 -1
  45. package/src/utils/Binary.js.map +1 -0
  46. package/{cjs → src}/utils/FileTransfer.d.ts +0 -1
  47. package/src/utils/FileTransfer.js.map +1 -0
  48. package/src/utils/Import.d.ts +97 -0
  49. package/{cjs → src}/utils/Import.js +11 -41
  50. package/src/utils/Import.js.map +1 -0
  51. package/{esm → src}/utils/Multipart.d.ts +0 -1
  52. package/src/utils/Multipart.js.map +1 -0
  53. package/{esm → src}/utils/Runtime.d.ts +0 -1
  54. package/src/utils/Runtime.js.map +1 -0
  55. package/{cjs → src}/utils/Stream.d.ts +0 -1
  56. package/src/utils/Stream.js.map +1 -0
  57. package/{esm → src}/utils/WebSocket.d.ts +0 -1
  58. package/src/utils/WebSocket.js.map +1 -0
  59. package/{esm → src}/utils/otel.decorator.d.ts +0 -1
  60. package/src/utils/otel.decorator.js.map +1 -0
  61. package/LICENSE +0 -190
  62. package/cjs/CodeInterpreter.js.map +0 -1
  63. package/cjs/ComputerUse.js.map +0 -1
  64. package/cjs/Daytona.js.map +0 -1
  65. package/cjs/FileSystem.d.ts +0 -371
  66. package/cjs/FileSystem.js.map +0 -1
  67. package/cjs/Git.d.ts +0 -203
  68. package/cjs/Git.js.map +0 -1
  69. package/cjs/Image.js.map +0 -1
  70. package/cjs/LspServer.d.ts +0 -172
  71. package/cjs/LspServer.js.map +0 -1
  72. package/cjs/ObjectStorage.js.map +0 -1
  73. package/cjs/Process.js.map +0 -1
  74. package/cjs/PtyHandle.js.map +0 -1
  75. package/cjs/README.md +0 -180
  76. package/cjs/Sandbox.js.map +0 -1
  77. package/cjs/Snapshot.js.map +0 -1
  78. package/cjs/Volume.d.ts +0 -84
  79. package/cjs/Volume.js.map +0 -1
  80. package/cjs/errors/DaytonaError.d.ts +0 -171
  81. package/cjs/errors/DaytonaError.js.map +0 -1
  82. package/cjs/index.js.map +0 -1
  83. package/cjs/package.json +0 -3
  84. package/cjs/types/Charts.d.ts +0 -38
  85. package/cjs/types/Charts.js.map +0 -1
  86. package/cjs/types/CodeInterpreter.d.ts +0 -77
  87. package/cjs/types/CodeInterpreter.js.map +0 -1
  88. package/cjs/types/ExecuteResponse.js.map +0 -1
  89. package/cjs/types/Pty.js.map +0 -1
  90. package/cjs/utils/Binary.d.ts +0 -39
  91. package/cjs/utils/Binary.js.map +0 -1
  92. package/cjs/utils/FileTransfer.js.map +0 -1
  93. package/cjs/utils/Import.d.ts +0 -38
  94. package/cjs/utils/Import.js.map +0 -1
  95. package/cjs/utils/Multipart.d.ts +0 -29
  96. package/cjs/utils/Multipart.js.map +0 -1
  97. package/cjs/utils/Runtime.d.ts +0 -44
  98. package/cjs/utils/Runtime.js.map +0 -1
  99. package/cjs/utils/Stream.js.map +0 -1
  100. package/cjs/utils/WebSocket.d.ts +0 -10
  101. package/cjs/utils/WebSocket.js.map +0 -1
  102. package/cjs/utils/otel.decorator.d.ts +0 -83
  103. package/cjs/utils/otel.decorator.js.map +0 -1
  104. package/esm/CodeInterpreter.d.ts +0 -95
  105. package/esm/CodeInterpreter.js +0 -292
  106. package/esm/CodeInterpreter.js.map +0 -1
  107. package/esm/ComputerUse.d.ts +0 -539
  108. package/esm/ComputerUse.js +0 -799
  109. package/esm/ComputerUse.js.map +0 -1
  110. package/esm/Daytona.d.ts +0 -355
  111. package/esm/Daytona.js +0 -525
  112. package/esm/Daytona.js.map +0 -1
  113. package/esm/FileSystem.js +0 -485
  114. package/esm/FileSystem.js.map +0 -1
  115. package/esm/Git.js +0 -322
  116. package/esm/Git.js.map +0 -1
  117. package/esm/Image.d.ts +0 -265
  118. package/esm/Image.js +0 -581
  119. package/esm/Image.js.map +0 -1
  120. package/esm/LspServer.js +0 -255
  121. package/esm/LspServer.js.map +0 -1
  122. package/esm/ObjectStorage.d.ts +0 -79
  123. package/esm/ObjectStorage.js +0 -195
  124. package/esm/ObjectStorage.js.map +0 -1
  125. package/esm/Process.d.ts +0 -490
  126. package/esm/Process.js +0 -642
  127. package/esm/Process.js.map +0 -1
  128. package/esm/PtyHandle.d.ts +0 -155
  129. package/esm/PtyHandle.js +0 -412
  130. package/esm/PtyHandle.js.map +0 -1
  131. package/esm/README.md +0 -180
  132. package/esm/Sandbox.d.ts +0 -476
  133. package/esm/Sandbox.js +0 -901
  134. package/esm/Sandbox.js.map +0 -1
  135. package/esm/Snapshot.d.ts +0 -140
  136. package/esm/Snapshot.js +0 -244
  137. package/esm/Snapshot.js.map +0 -1
  138. package/esm/Volume.js +0 -115
  139. package/esm/Volume.js.map +0 -1
  140. package/esm/errors/DaytonaError.js +0 -243
  141. package/esm/errors/DaytonaError.js.map +0 -1
  142. package/esm/index.d.ts +0 -22
  143. package/esm/index.js +0 -21
  144. package/esm/index.js.map +0 -1
  145. package/esm/package.json +0 -3
  146. package/esm/types/Charts.js +0 -33
  147. package/esm/types/Charts.js.map +0 -1
  148. package/esm/types/CodeInterpreter.js +0 -6
  149. package/esm/types/CodeInterpreter.js.map +0 -1
  150. package/esm/types/ExecuteResponse.d.ts +0 -26
  151. package/esm/types/ExecuteResponse.js +0 -6
  152. package/esm/types/ExecuteResponse.js.map +0 -1
  153. package/esm/types/Pty.d.ts +0 -48
  154. package/esm/types/Pty.js +0 -6
  155. package/esm/types/Pty.js.map +0 -1
  156. package/esm/utils/Binary.js +0 -157
  157. package/esm/utils/Binary.js.map +0 -1
  158. package/esm/utils/FileTransfer.d.ts +0 -15
  159. package/esm/utils/FileTransfer.js +0 -254
  160. package/esm/utils/FileTransfer.js.map +0 -1
  161. package/esm/utils/Import.d.ts +0 -38
  162. package/esm/utils/Import.js +0 -106
  163. package/esm/utils/Import.js.map +0 -1
  164. package/esm/utils/Multipart.js +0 -109
  165. package/esm/utils/Multipart.js.map +0 -1
  166. package/esm/utils/Runtime.js +0 -89
  167. package/esm/utils/Runtime.js.map +0 -1
  168. package/esm/utils/Stream.d.ts +0 -20
  169. package/esm/utils/Stream.js +0 -360
  170. package/esm/utils/Stream.js.map +0 -1
  171. package/esm/utils/WebSocket.js +0 -22
  172. package/esm/utils/WebSocket.js.map +0 -1
  173. package/esm/utils/otel.decorator.js +0 -136
  174. package/esm/utils/otel.decorator.js.map +0 -1
  175. /package/{cjs → src}/CodeInterpreter.js +0 -0
  176. /package/{cjs → src}/ComputerUse.js +0 -0
  177. /package/{cjs → src}/FileSystem.js +0 -0
  178. /package/{cjs → src}/Git.js +0 -0
  179. /package/{cjs → src}/Image.js +0 -0
  180. /package/{cjs → src}/LspServer.js +0 -0
  181. /package/{cjs → src}/ObjectStorage.js +0 -0
  182. /package/{cjs → src}/Process.js +0 -0
  183. /package/{cjs → src}/PtyHandle.js +0 -0
  184. /package/{cjs → src}/Sandbox.js +0 -0
  185. /package/{cjs → src}/Snapshot.js +0 -0
  186. /package/{cjs → src}/Volume.js +0 -0
  187. /package/{cjs → src}/errors/DaytonaError.js +0 -0
  188. /package/{cjs → src}/index.js +0 -0
  189. /package/{cjs → src}/types/Charts.js +0 -0
  190. /package/{cjs → src}/types/CodeInterpreter.js +0 -0
  191. /package/{cjs → src}/types/ExecuteResponse.js +0 -0
  192. /package/{cjs → src}/types/Pty.js +0 -0
  193. /package/{cjs → src}/utils/Binary.js +0 -0
  194. /package/{cjs → src}/utils/FileTransfer.js +0 -0
  195. /package/{cjs → src}/utils/Multipart.js +0 -0
  196. /package/{cjs → src}/utils/Runtime.js +0 -0
  197. /package/{cjs → src}/utils/Stream.js +0 -0
  198. /package/{cjs → src}/utils/WebSocket.js +0 -0
  199. /package/{cjs → src}/utils/otel.decorator.js +0 -0
@@ -1,243 +0,0 @@
1
- /*
2
- * Copyright 2025 Daytona Platforms Inc.
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- /**
6
- * Base error for Daytona SDK.
7
- *
8
- * @example
9
- * ```ts
10
- * try {
11
- * await daytona.get('missing-sandbox')
12
- * } catch (error) {
13
- * if (error instanceof DaytonaError) {
14
- * console.log(error.statusCode)
15
- * console.log(error.errorCode)
16
- * console.log(error.message)
17
- * }
18
- * }
19
- * ```
20
- */
21
- export class DaytonaError extends Error {
22
- /** HTTP status code if available */
23
- statusCode;
24
- /** Machine-readable error code if available */
25
- errorCode;
26
- /** Response headers if available */
27
- headers;
28
- constructor(message, statusCode, headers, errorCode) {
29
- super(message);
30
- this.name = new.target.name;
31
- this.statusCode = statusCode;
32
- this.headers = headers;
33
- this.errorCode = errorCode;
34
- }
35
- }
36
- /**
37
- * Error thrown when a resource is not found (HTTP 404).
38
- *
39
- * @example
40
- * ```ts
41
- * try {
42
- * await sandbox.fs.downloadFile('/workspace/missing.txt')
43
- * } catch (error) {
44
- * if (error instanceof DaytonaNotFoundError) {
45
- * console.log(error.statusCode)
46
- * }
47
- * }
48
- * ```
49
- */
50
- export class DaytonaNotFoundError extends DaytonaError {
51
- }
52
- /**
53
- * Error thrown when rate limit is exceeded.
54
- *
55
- * @example
56
- * ```ts
57
- * try {
58
- * await daytona.list()
59
- * } catch (error) {
60
- * if (error instanceof DaytonaRateLimitError) {
61
- * console.log(error.errorCode)
62
- * }
63
- * }
64
- * ```
65
- */
66
- export class DaytonaRateLimitError extends DaytonaError {
67
- }
68
- /**
69
- * Error thrown when authentication fails (HTTP 401).
70
- *
71
- * @example
72
- * ```ts
73
- * try {
74
- * await daytona.list()
75
- * } catch (error) {
76
- * if (error instanceof DaytonaAuthenticationError) {
77
- * console.log(error.statusCode)
78
- * }
79
- * }
80
- * ```
81
- */
82
- export class DaytonaAuthenticationError extends DaytonaError {
83
- }
84
- /**
85
- * Error thrown when the request is forbidden (HTTP 403).
86
- *
87
- * @example
88
- * ```ts
89
- * try {
90
- * await daytona.get('sandbox-without-access')
91
- * } catch (error) {
92
- * if (error instanceof DaytonaAuthorizationError) {
93
- * console.log(error.message)
94
- * }
95
- * }
96
- * ```
97
- */
98
- export class DaytonaAuthorizationError extends DaytonaError {
99
- }
100
- /**
101
- * Error thrown when a resource conflict occurs (HTTP 409).
102
- *
103
- * @example
104
- * ```ts
105
- * try {
106
- * await daytona.create({ name: 'existing-sandbox' })
107
- * } catch (error) {
108
- * if (error instanceof DaytonaConflictError) {
109
- * console.log(error.errorCode)
110
- * }
111
- * }
112
- * ```
113
- */
114
- export class DaytonaConflictError extends DaytonaError {
115
- }
116
- /**
117
- * Error thrown when input validation fails (HTTP 400 or client-side validation).
118
- *
119
- * @example
120
- * ```ts
121
- * try {
122
- * Image.debianSlim('3.8' as never)
123
- * } catch (error) {
124
- * if (error instanceof DaytonaValidationError) {
125
- * console.log(error.message)
126
- * }
127
- * }
128
- * ```
129
- */
130
- export class DaytonaValidationError extends DaytonaError {
131
- }
132
- /**
133
- * Error thrown when a timeout occurs.
134
- *
135
- * @example
136
- * ```ts
137
- * try {
138
- * await sandbox.waitUntilStarted(1)
139
- * } catch (error) {
140
- * if (error instanceof DaytonaTimeoutError) {
141
- * console.log(error.message)
142
- * }
143
- * }
144
- * ```
145
- */
146
- export class DaytonaTimeoutError extends DaytonaError {
147
- }
148
- /**
149
- * Error thrown when a network connection fails.
150
- *
151
- * @example
152
- * ```ts
153
- * try {
154
- * await ptyHandle.waitForConnection()
155
- * } catch (error) {
156
- * if (error instanceof DaytonaConnectionError) {
157
- * console.log(error.message)
158
- * }
159
- * }
160
- * ```
161
- */
162
- export class DaytonaConnectionError extends DaytonaError {
163
- }
164
- const STATUS_CODE_TO_ERROR = {
165
- 400: DaytonaValidationError,
166
- 401: DaytonaAuthenticationError,
167
- 403: DaytonaAuthorizationError,
168
- 404: DaytonaNotFoundError,
169
- 409: DaytonaConflictError,
170
- 429: DaytonaRateLimitError,
171
- };
172
- /**
173
- * Maps an HTTP status code to the corresponding Daytona error class.
174
- */
175
- export function errorClassFromStatusCode(statusCode) {
176
- if (statusCode === undefined) {
177
- return DaytonaError;
178
- }
179
- return STATUS_CODE_TO_ERROR[statusCode] || DaytonaError;
180
- }
181
- /**
182
- * Creates the appropriate Daytona error subclass from structured error metadata.
183
- */
184
- export function createDaytonaError(message, statusCode, headers, errorCode) {
185
- const ErrorClass = errorClassFromStatusCode(statusCode);
186
- return new ErrorClass(message, statusCode, headers, errorCode);
187
- }
188
- function isAxiosTimeoutError(error) {
189
- return error.code === 'ECONNABORTED' || error.code === 'ETIMEDOUT' || error.message.includes('timeout of');
190
- }
191
- function getAxiosResponseDataObject(error) {
192
- if (!error.response?.data || typeof error.response.data !== 'object') {
193
- return undefined;
194
- }
195
- return error.response.data;
196
- }
197
- function extractAxiosErrorCode(responseData) {
198
- if (typeof responseData?.code === 'string') {
199
- return responseData.code;
200
- }
201
- if (typeof responseData?.error_code === 'string') {
202
- return responseData.error_code;
203
- }
204
- if (typeof responseData?.error === 'string') {
205
- return responseData.error;
206
- }
207
- return undefined;
208
- }
209
- function extractAxiosErrorMessage(error) {
210
- if (isAxiosTimeoutError(error)) {
211
- return 'Operation timed out';
212
- }
213
- const responseData = getAxiosResponseDataObject(error);
214
- const responseMessage = responseData?.message || error.response?.data;
215
- const message = responseMessage || error.message || String(error);
216
- if (typeof message === 'object') {
217
- try {
218
- return JSON.stringify(message);
219
- }
220
- catch {
221
- return String(message);
222
- }
223
- }
224
- return String(message);
225
- }
226
- /**
227
- * Creates the appropriate Daytona error subclass from an Axios error.
228
- */
229
- export function createAxiosDaytonaError(error) {
230
- const message = extractAxiosErrorMessage(error);
231
- const statusCode = error.response?.status;
232
- const headers = error.response?.headers;
233
- const responseData = getAxiosResponseDataObject(error);
234
- const errorCode = extractAxiosErrorCode(responseData);
235
- if (isAxiosTimeoutError(error)) {
236
- return new DaytonaTimeoutError(message, statusCode, headers, errorCode);
237
- }
238
- if (!error.response && (error.request || error.code)) {
239
- return new DaytonaConnectionError(message, statusCode, headers, errorCode);
240
- }
241
- return createDaytonaError(message, statusCode, headers, errorCode);
242
- }
243
- //# sourceMappingURL=DaytonaError.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DaytonaError.js","sourceRoot":"","sources":["../../../../../../libs/sdk-typescript/src/errors/DaytonaError.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH;;;;;;;;;;;;;;;GAeG;AACH,MAAM,OAAO,YAAa,SAAQ,KAAK;IACrC,oCAAoC;IAC7B,UAAU,CAAS;IAC1B,+CAA+C;IACxC,SAAS,CAAS;IACzB,oCAAoC;IAC7B,OAAO,CAAkB;IAEhC,YAAY,OAAe,EAAE,UAAmB,EAAE,OAAyB,EAAE,SAAkB;QAC7F,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAA;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC5B,CAAC;CACF;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,oBAAqB,SAAQ,YAAY;CACrD;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,qBAAsB,SAAQ,YAAY;CACtD;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,0BAA2B,SAAQ,YAAY;CAC3D;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,yBAA0B,SAAQ,YAAY;CAC1D;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,oBAAqB,SAAQ,YAAY;CACrD;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,sBAAuB,SAAQ,YAAY;CACvD;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,mBAAoB,SAAQ,YAAY;CACpD;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,sBAAuB,SAAQ,YAAY;CACvD;AAED,MAAM,oBAAoB,GAAwC;IAChE,GAAG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OAAO,IAAI,mBAAmB,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,CAAC,CAAA;IACzE,CAAC;IAED,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;QACrD,OAAO,IAAI,sBAAsB,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,CAAC,CAAA;IAC5E,CAAC;IAED,OAAO,kBAAkB,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,CAAC,CAAA;AACpE,CAAC"}
package/esm/index.d.ts DELETED
@@ -1,22 +0,0 @@
1
- export { CodeLanguage, Daytona } from './Daytona.js';
2
- export type { CreateSandboxBaseParams, CreateSandboxFromImageParams, CreateSandboxFromSnapshotParams, DaytonaConfig, Resources, VolumeMount, } from './Daytona.js';
3
- export { FileSystem } from './FileSystem.js';
4
- export type { DownloadMetadata, FileDownloadErrorDetails, FileDownloadRequest, FileDownloadResponse, FilePermissionsParams, FileUpload, } from './FileSystem.js';
5
- export { Git } from './Git.js';
6
- export { LspLanguageId } from './LspServer.js';
7
- export { Process } from './Process.js';
8
- export { DaytonaAuthenticationError, DaytonaAuthorizationError, DaytonaConflictError, DaytonaConnectionError, DaytonaError, DaytonaNotFoundError, DaytonaRateLimitError, DaytonaTimeoutError, DaytonaValidationError, } from './errors/DaytonaError.js';
9
- export { Image } from './Image.js';
10
- export { Sandbox } from './Sandbox.js';
11
- export type { CreateSnapshotParams } from './Snapshot.js';
12
- export { ComputerUse, Mouse, Keyboard, Screenshot, Display } from './ComputerUse.js';
13
- export type { BarChart, BarData, BoxAndWhiskerChart, BoxAndWhiskerData, Chart, Chart2D, ChartElement, CompositeChart, LineChart, PieChart, PieData, PointChart, PointData, ScatterChart, } from './types/Charts.js';
14
- export { ChartType } from './types/Charts.js';
15
- export type { ExecutionError, ExecutionResult, OutputMessage, RunCodeOptions } from './types/CodeInterpreter.js';
16
- export { SandboxState } from '@daytona/api-client';
17
- export type { FileInfo, GitStatus, ListBranchResponse, Match, ReplaceResult, SearchFilesResponse, } from '@daytona/toolbox-api-client';
18
- export type { ScreenshotRegion, ScreenshotOptions } from './ComputerUse.js';
19
- export * from './Process.js';
20
- export * from './PtyHandle.js';
21
- export * from './types/Pty.js';
22
- //# sourceMappingURL=index.d.ts.map
package/esm/index.js DELETED
@@ -1,21 +0,0 @@
1
- /*
2
- * Copyright 2025 Daytona Platforms Inc.
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- export { CodeLanguage, Daytona } from './Daytona.js';
6
- export { FileSystem } from './FileSystem.js';
7
- export { Git } from './Git.js';
8
- export { LspLanguageId } from './LspServer.js';
9
- export { Process } from './Process.js';
10
- // export { LspServer } from './LspServer'
11
- // export type { LspLanguageId, Position } from './LspServer'
12
- export { DaytonaAuthenticationError, DaytonaAuthorizationError, DaytonaConflictError, DaytonaConnectionError, DaytonaError, DaytonaNotFoundError, DaytonaRateLimitError, DaytonaTimeoutError, DaytonaValidationError, } from './errors/DaytonaError.js';
13
- export { Image } from './Image.js';
14
- export { Sandbox } from './Sandbox.js';
15
- export { ComputerUse, Mouse, Keyboard, Screenshot, Display } from './ComputerUse.js';
16
- export { ChartType } from './types/Charts.js';
17
- export { SandboxState } from '@daytona/api-client';
18
- export * from './Process.js';
19
- export * from './PtyHandle.js';
20
- export * from './types/Pty.js';
21
- //# sourceMappingURL=index.js.map
package/esm/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/sdk-typescript/src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AASjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AASzC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,0CAA0C;AAC1C,6DAA6D;AAC7D,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EACzB,oBAAoB,EACpB,sBAAsB,EACtB,YAAY,EACZ,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAiBjF,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAG1C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAYlD,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
package/esm/package.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "type": "module"
3
- }
@@ -1,33 +0,0 @@
1
- /*
2
- * Copyright 2025 Daytona Platforms Inc.
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- export var ChartType;
6
- (function (ChartType) {
7
- ChartType["LINE"] = "line";
8
- ChartType["SCATTER"] = "scatter";
9
- ChartType["BAR"] = "bar";
10
- ChartType["PIE"] = "pie";
11
- ChartType["BOX_AND_WHISKER"] = "box_and_whisker";
12
- ChartType["COMPOSITE_CHART"] = "composite_chart";
13
- ChartType["UNKNOWN"] = "unknown";
14
- })(ChartType || (ChartType = {}));
15
- export function parseChart(chart) {
16
- switch (chart.type) {
17
- case ChartType.LINE:
18
- return chart;
19
- case ChartType.SCATTER:
20
- return chart;
21
- case ChartType.BAR:
22
- return chart;
23
- case ChartType.PIE:
24
- return chart;
25
- case ChartType.BOX_AND_WHISKER:
26
- return chart;
27
- case ChartType.COMPOSITE_CHART:
28
- return chart;
29
- default:
30
- return chart;
31
- }
32
- }
33
- //# sourceMappingURL=Charts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Charts.js","sourceRoot":"","sources":["../../../../../../libs/sdk-typescript/src/types/Charts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,MAAM,CAAN,IAAY,SAQX;AARD,WAAY,SAAS;IACnB,0BAAa,CAAA;IACb,gCAAmB,CAAA;IACnB,wBAAW,CAAA;IACX,wBAAW,CAAA;IACX,gDAAmC,CAAA;IACnC,gDAAmC,CAAA;IACnC,gCAAmB,CAAA;AACrB,CAAC,EARW,SAAS,KAAT,SAAS,QAQpB;AAoCD,MAAM,UAAU,UAAU,CAAC,KAAqB;IAC9C,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,KAAK,SAAS,CAAC,IAAI;YACjB,OAAO,KAAkB,CAAA;QAC3B,KAAK,SAAS,CAAC,OAAO;YACpB,OAAO,KAAqB,CAAA;QAC9B,KAAK,SAAS,CAAC,GAAG;YAChB,OAAO,KAAiB,CAAA;QAC1B,KAAK,SAAS,CAAC,GAAG;YAChB,OAAO,KAAiB,CAAA;QAC1B,KAAK,SAAS,CAAC,eAAe;YAC5B,OAAO,KAA2B,CAAA;QACpC,KAAK,SAAS,CAAC,eAAe;YAC5B,OAAO,KAAuB,CAAA;QAChC;YACE,OAAO,KAAK,CAAA;IAChB,CAAC;AACH,CAAC"}
@@ -1,6 +0,0 @@
1
- /*
2
- * Copyright 2025 Daytona Platforms Inc.
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- export {};
6
- //# sourceMappingURL=CodeInterpreter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CodeInterpreter.js","sourceRoot":"","sources":["../../../../../../libs/sdk-typescript/src/types/CodeInterpreter.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -1,26 +0,0 @@
1
- import type { Chart } from './Charts.js';
2
- /**
3
- * Artifacts from the command execution.
4
- *
5
- * @interface
6
- * @property stdout - Standard output from the command, same as `result` in `ExecuteResponse`
7
- * @property charts - List of chart metadata from matplotlib
8
- */
9
- export interface ExecutionArtifacts {
10
- stdout: string;
11
- charts?: Chart[];
12
- }
13
- /**
14
- * Response from the command execution.
15
- *
16
- * @interface
17
- * @property exitCode - The exit code from the command execution
18
- * @property result - The output from the command execution
19
- * @property artifacts - Artifacts from the command execution
20
- */
21
- export interface ExecuteResponse {
22
- exitCode: number;
23
- result: string;
24
- artifacts?: ExecutionArtifacts;
25
- }
26
- //# sourceMappingURL=ExecuteResponse.d.ts.map
@@ -1,6 +0,0 @@
1
- /*
2
- * Copyright 2025 Daytona Platforms Inc.
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- export {};
6
- //# sourceMappingURL=ExecuteResponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExecuteResponse.js","sourceRoot":"","sources":["../../../../../../libs/sdk-typescript/src/types/ExecuteResponse.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -1,48 +0,0 @@
1
- /**
2
- * Options for creating a PTY session
3
- */
4
- export interface PtyCreateOptions {
5
- /**
6
- * The unique identifier for the PTY session
7
- */
8
- id: string;
9
- /**
10
- * Starting directory for the PTY session, defaults to the sandbox's working directory
11
- */
12
- cwd?: string;
13
- /**
14
- * Environment variables for the PTY session
15
- */
16
- envs?: Record<string, string>;
17
- /**
18
- * Number of terminal columns
19
- */
20
- cols?: number;
21
- /**
22
- * Number of terminal rows
23
- */
24
- rows?: number;
25
- }
26
- /**
27
- * Options for connecting to a PTY session
28
- */
29
- export interface PtyConnectOptions {
30
- /**
31
- * Callback to handle PTY output data
32
- */
33
- onData: (data: Uint8Array) => void | Promise<void>;
34
- }
35
- /**
36
- * PTY session result on exit
37
- */
38
- export interface PtyResult {
39
- /**
40
- * Exit code when the PTY process ends
41
- */
42
- exitCode?: number;
43
- /**
44
- * Error message if the PTY failed
45
- */
46
- error?: string;
47
- }
48
- //# sourceMappingURL=Pty.d.ts.map
package/esm/types/Pty.js DELETED
@@ -1,6 +0,0 @@
1
- /*
2
- * Copyright 2025 Daytona Platforms Inc.
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- export {};
6
- //# sourceMappingURL=Pty.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Pty.js","sourceRoot":"","sources":["../../../../../../libs/sdk-typescript/src/types/Pty.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -1,157 +0,0 @@
1
- /*
2
- * Copyright 2025 Daytona Platforms Inc.
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import { Buffer } from 'buffer';
6
- import { DaytonaError } from '../errors/DaytonaError.js';
7
- /**
8
- * Converts various data types to Uint8Array
9
- */
10
- export function toUint8Array(data) {
11
- if (typeof data === 'string') {
12
- return new TextEncoder().encode(data);
13
- }
14
- if (data instanceof ArrayBuffer) {
15
- return new Uint8Array(data);
16
- }
17
- if (ArrayBuffer.isView(data)) {
18
- return new Uint8Array(data.buffer, data.byteOffset, data.byteLength);
19
- }
20
- throw new DaytonaError('Unsupported data type for byte conversion.');
21
- }
22
- /**
23
- * Concatenates multiple Uint8Array chunks into a single Uint8Array
24
- */
25
- export function concatUint8Arrays(parts) {
26
- const size = parts.reduce((sum, part) => sum + part.byteLength, 0);
27
- const result = new Uint8Array(size);
28
- let offset = 0;
29
- for (const part of parts) {
30
- result.set(part, offset);
31
- offset += part.byteLength;
32
- }
33
- return result;
34
- }
35
- /**
36
- * Converts Uint8Array to Buffer (uses polyfill in non-Node environments)
37
- */
38
- export function toBuffer(data) {
39
- return Buffer.from(data);
40
- }
41
- /**
42
- * Decodes Uint8Array to UTF-8 string
43
- */
44
- export function utf8Decode(data) {
45
- return new TextDecoder('utf-8').decode(data);
46
- }
47
- /**
48
- * Finds all occurrences of a pattern in a byte buffer
49
- */
50
- export function findAllBytes(buffer, pattern) {
51
- const results = [];
52
- let i = 0;
53
- while (i <= buffer.length - pattern.length) {
54
- let match = true;
55
- for (let j = 0; j < pattern.length; j++) {
56
- if (buffer[i + j] !== pattern[j]) {
57
- match = false;
58
- break;
59
- }
60
- }
61
- if (match) {
62
- results.push(i);
63
- i += pattern.length;
64
- }
65
- else {
66
- i++;
67
- }
68
- }
69
- return results;
70
- }
71
- /**
72
- * Finds the first occurrence of a pattern in a byte buffer within a range
73
- */
74
- export function findBytesInRange(buffer, start, end, pattern) {
75
- let i = start;
76
- while (i <= end - pattern.length) {
77
- let match = true;
78
- for (let j = 0; j < pattern.length; j++) {
79
- if (buffer[i + j] !== pattern[j]) {
80
- match = false;
81
- break;
82
- }
83
- }
84
- if (match)
85
- return i;
86
- i++;
87
- }
88
- return -1;
89
- }
90
- /**
91
- * Checks if a sequence starts at a given position in a byte buffer
92
- * Returns the position after the sequence if found, -1 otherwise
93
- */
94
- export function indexAfterSequence(buffer, start, sequence) {
95
- for (let j = 0; j < sequence.length; j++) {
96
- if (buffer[start + j] !== sequence[j])
97
- return -1;
98
- }
99
- return start + sequence.length;
100
- }
101
- /**
102
- * Collects all bytes from various stream types into a single Uint8Array
103
- */
104
- export async function collectStreamBytes(stream) {
105
- if (!stream)
106
- return new Uint8Array(0);
107
- // ReadableStream (WHATWG)
108
- if (typeof stream.getReader === 'function') {
109
- const reader = stream.getReader();
110
- const chunks = [];
111
- try {
112
- while (true) {
113
- const { done, value } = await reader.read();
114
- if (done)
115
- break;
116
- if (value?.byteLength) {
117
- chunks.push(value);
118
- }
119
- }
120
- }
121
- finally {
122
- await reader.cancel();
123
- }
124
- return concatUint8Arrays(chunks);
125
- }
126
- // AsyncIterable
127
- if (stream?.[Symbol.asyncIterator]) {
128
- const chunks = [];
129
- for await (const chunk of stream) {
130
- chunks.push(toUint8Array(chunk));
131
- }
132
- return concatUint8Arrays(chunks);
133
- }
134
- // Direct data types
135
- if (typeof stream === 'string' || stream instanceof ArrayBuffer || ArrayBuffer.isView(stream)) {
136
- return toUint8Array(stream);
137
- }
138
- // Blob
139
- if (typeof Blob !== 'undefined' && stream instanceof Blob) {
140
- const arrayBuffer = await stream.arrayBuffer();
141
- return new Uint8Array(arrayBuffer);
142
- }
143
- // Response
144
- if (typeof Response !== 'undefined' && stream instanceof Response) {
145
- const arrayBuffer = await stream.arrayBuffer();
146
- return new Uint8Array(arrayBuffer);
147
- }
148
- throw new DaytonaError('Unsupported stream type for byte collection.');
149
- }
150
- /**
151
- * Checks if value is a File object (browser environment)
152
- */
153
- export function isFile(value) {
154
- const FileConstructor = globalThis.File;
155
- return typeof FileConstructor !== 'undefined' && value instanceof FileConstructor;
156
- }
157
- //# sourceMappingURL=Binary.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Binary.js","sourceRoot":"","sources":["../../../../../../libs/sdk-typescript/src/utils/Binary.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAErD;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,IAA4C;IACvE,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IACvC,CAAC;IACD,IAAI,IAAI,YAAY,WAAW,EAAE,CAAC;QAChC,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,CAAA;IAC7B,CAAC;IACD,IAAI,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7B,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,CAAA;IACtE,CAAC;IACD,MAAM,IAAI,YAAY,CAAC,4CAA4C,CAAC,CAAA;AACtE,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAmB;IACnD,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,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CAAC,WAAW,CAAC,CAAA;IACpC,CAAC;IAED,WAAW;IACX,IAAI,OAAO,QAAQ,KAAK,WAAW,IAAI,MAAM,YAAY,QAAQ,EAAE,CAAC;QAClE,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC,WAAW,EAAE,CAAA;QAC9C,OAAO,IAAI,UAAU,CAAC,WAAW,CAAC,CAAA;IACpC,CAAC;IAED,MAAM,IAAI,YAAY,CAAC,8CAA8C,CAAC,CAAA;AACxE,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,MAAM,CAAC,KAAU;IAC/B,MAAM,eAAe,GAAI,UAAkB,CAAC,IAAI,CAAA;IAChD,OAAO,OAAO,eAAe,KAAK,WAAW,IAAI,KAAK,YAAY,eAAe,CAAA;AACnF,CAAC"}
@@ -1,15 +0,0 @@
1
- import type { DownloadMetadata } from '../FileSystem.js';
2
- /**
3
- * Safely aborts a stream
4
- */
5
- export declare function abortStream(stream: any): void;
6
- /**
7
- * Normalizes response data to extract the actual stream
8
- */
9
- export declare function normalizeResponseStream(responseData: any): any;
10
- /**
11
- * Processes multipart response using busboy (Node.js path)
12
- */
13
- export declare function processDownloadFilesResponseWithBusboy(stream: any, headers: Record<string, string>, metadataMap: Map<string, DownloadMetadata>, onFileStream?: (source: string, fileStream: any) => void): Promise<void>;
14
- export declare function processDownloadFilesResponseWithBuffered(stream: any, headers: Record<string, string>, metadataMap: Map<string, DownloadMetadata>): Promise<void>;
15
- //# sourceMappingURL=FileTransfer.d.ts.map