@daytonaio/sdk 0.201.0 → 0.202.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.
- package/cjs/CodeInterpreter.js +1 -1
- package/cjs/CodeInterpreter.js.map +1 -1
- package/cjs/Daytona.d.ts +17 -5
- package/cjs/Daytona.js +21 -14
- package/cjs/Daytona.js.map +1 -1
- package/cjs/Image.js +14 -14
- package/cjs/Image.js.map +1 -1
- package/cjs/LspServer.js +1 -1
- package/cjs/LspServer.js.map +1 -1
- package/cjs/Sandbox.d.ts +21 -10
- package/cjs/Sandbox.js +48 -31
- package/cjs/Sandbox.js.map +1 -1
- package/cjs/errors/DaytonaError.d.ts +50 -4
- package/cjs/errors/DaytonaError.js +70 -6
- package/cjs/errors/DaytonaError.js.map +1 -1
- package/cjs/index.d.ts +2 -2
- package/cjs/index.js +6 -2
- package/cjs/index.js.map +1 -1
- package/esm/CodeInterpreter.js +2 -2
- package/esm/CodeInterpreter.js.map +1 -1
- package/esm/Daytona.d.ts +17 -5
- package/esm/Daytona.js +22 -15
- package/esm/Daytona.js.map +1 -1
- package/esm/Image.js +15 -15
- package/esm/Image.js.map +1 -1
- package/esm/LspServer.js +2 -2
- package/esm/LspServer.js.map +1 -1
- package/esm/Sandbox.d.ts +21 -10
- package/esm/Sandbox.js +49 -32
- package/esm/Sandbox.js.map +1 -1
- package/esm/errors/DaytonaError.d.ts +50 -4
- package/esm/errors/DaytonaError.js +66 -5
- package/esm/errors/DaytonaError.js.map +1 -1
- package/esm/index.d.ts +2 -2
- package/esm/index.js +3 -1
- package/esm/index.js.map +1 -1
- package/esm/utils/Import.js +1 -1
- package/package.json +5 -5
|
@@ -43,8 +43,18 @@ export declare class DaytonaForbiddenError extends DaytonaError {
|
|
|
43
43
|
/** The requested resource does not exist (HTTP 404). */
|
|
44
44
|
export declare class DaytonaNotFoundError extends DaytonaError {
|
|
45
45
|
}
|
|
46
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
* The operation timed out (HTTP 408, or 504 when a gateway timed out).
|
|
48
|
+
*
|
|
49
|
+
* Also matches {@link DaytonaConnectionTimeoutError} via `instanceof`, even
|
|
50
|
+
* though that class sits under {@link DaytonaConnectionError} in the prototype
|
|
51
|
+
* chain. Transport timeouts were raised as `DaytonaTimeoutError` before
|
|
52
|
+
* `DaytonaConnectionTimeoutError` existed, so this keeps pre-existing
|
|
53
|
+
* `catch (err) { if (err instanceof DaytonaTimeoutError) ... }` blocks working
|
|
54
|
+
* — the same compatibility the Python SDK gets from inheriting both classes.
|
|
55
|
+
*/
|
|
47
56
|
export declare class DaytonaTimeoutError extends DaytonaError {
|
|
57
|
+
static [Symbol.hasInstance](value: unknown): boolean;
|
|
48
58
|
}
|
|
49
59
|
/** The request conflicts with the current state of the resource (HTTP 409). */
|
|
50
60
|
export declare class DaytonaConflictError extends DaytonaError {
|
|
@@ -68,9 +78,17 @@ export declare class DaytonaBadGatewayError extends DaytonaError {
|
|
|
68
78
|
export declare class DaytonaServiceUnavailableError extends DaytonaError {
|
|
69
79
|
}
|
|
70
80
|
/**
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
81
|
+
* Legacy umbrella for validation failures. Kept so existing
|
|
82
|
+
* `catch (err) { if (err instanceof DaytonaValidationError) ... }` blocks keep
|
|
83
|
+
* matching both server-returned HTTP 400s and locally rejected arguments.
|
|
84
|
+
*
|
|
85
|
+
* @deprecated Do not throw or catch this directly in new code. Branch on the
|
|
86
|
+
* precise class instead:
|
|
87
|
+
* - {@link DaytonaInvalidArgumentError} — the SDK rejected your arguments
|
|
88
|
+
* locally, before any request was sent.
|
|
89
|
+
* - {@link DaytonaBadRequestError} — a Daytona service returned HTTP 400.
|
|
90
|
+
* - {@link DaytonaUnprocessableEntityError} — a Daytona service returned
|
|
91
|
+
* HTTP 422 (well-formed but semantically invalid).
|
|
74
92
|
*/
|
|
75
93
|
export declare class DaytonaValidationError extends DaytonaBadRequestError {
|
|
76
94
|
}
|
|
@@ -79,6 +97,28 @@ export declare class DaytonaValidationError extends DaytonaBadRequestError {
|
|
|
79
97
|
*/
|
|
80
98
|
export declare class DaytonaAuthorizationError extends DaytonaForbiddenError {
|
|
81
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* The SDK rejected the caller's arguments locally, before any request was
|
|
102
|
+
* sent. `statusCode`, `code` and `source` are always `undefined` — no Daytona
|
|
103
|
+
* service was contacted, so there is no HTTP status to report.
|
|
104
|
+
*
|
|
105
|
+
* Distinct from {@link DaytonaBadRequestError} (a service returned HTTP 400)
|
|
106
|
+
* and {@link DaytonaUnprocessableEntityError} (a service returned HTTP 422).
|
|
107
|
+
* This one always means: fix the arguments at the call site.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```ts
|
|
111
|
+
* try {
|
|
112
|
+
* await sandbox.setAutoStopInterval(-1)
|
|
113
|
+
* } catch (err) {
|
|
114
|
+
* if (err instanceof DaytonaInvalidArgumentError) {
|
|
115
|
+
* // never reached the API — the value itself is invalid
|
|
116
|
+
* }
|
|
117
|
+
* }
|
|
118
|
+
* ```
|
|
119
|
+
*/
|
|
120
|
+
export declare class DaytonaInvalidArgumentError extends DaytonaValidationError {
|
|
121
|
+
}
|
|
82
122
|
/** Network connection failure (can't connect or mid-request drop). */
|
|
83
123
|
export declare class DaytonaConnectionError extends DaytonaError {
|
|
84
124
|
}
|
|
@@ -112,6 +152,12 @@ export declare class DaytonaFileNotFoundError extends DaytonaNotFoundError {
|
|
|
112
152
|
/** Access to the sandbox file was denied (code `FILE_ACCESS_DENIED`). */
|
|
113
153
|
export declare class DaytonaFileAccessDeniedError extends DaytonaForbiddenError {
|
|
114
154
|
}
|
|
155
|
+
/** The supplied file path was rejected by the daemon (code `INVALID_FILE_PATH`). */
|
|
156
|
+
export declare class DaytonaInvalidFilePathError extends DaytonaBadRequestError {
|
|
157
|
+
}
|
|
158
|
+
/** The daemon could not read the sandbox file (code `FILE_READ_FAILED`). */
|
|
159
|
+
export declare class DaytonaFileReadFailedError extends DaytonaInternalServerError {
|
|
160
|
+
}
|
|
115
161
|
/** The LSP server must be initialized first (code `LSP_SERVER_NOT_INITIALIZED`). */
|
|
116
162
|
export declare class DaytonaLspServerNotInitializedError extends DaytonaBadRequestError {
|
|
117
163
|
}
|
|
@@ -52,8 +52,25 @@ export class DaytonaForbiddenError extends DaytonaError {
|
|
|
52
52
|
/** The requested resource does not exist (HTTP 404). */
|
|
53
53
|
export class DaytonaNotFoundError extends DaytonaError {
|
|
54
54
|
}
|
|
55
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* The operation timed out (HTTP 408, or 504 when a gateway timed out).
|
|
57
|
+
*
|
|
58
|
+
* Also matches {@link DaytonaConnectionTimeoutError} via `instanceof`, even
|
|
59
|
+
* though that class sits under {@link DaytonaConnectionError} in the prototype
|
|
60
|
+
* chain. Transport timeouts were raised as `DaytonaTimeoutError` before
|
|
61
|
+
* `DaytonaConnectionTimeoutError` existed, so this keeps pre-existing
|
|
62
|
+
* `catch (err) { if (err instanceof DaytonaTimeoutError) ... }` blocks working
|
|
63
|
+
* — the same compatibility the Python SDK gets from inheriting both classes.
|
|
64
|
+
*/
|
|
56
65
|
export class DaytonaTimeoutError extends DaytonaError {
|
|
66
|
+
static [Symbol.hasInstance](value) {
|
|
67
|
+
// Only the base class widens; subclasses (e.g. ProcessExecutionTimeout)
|
|
68
|
+
// must keep exact prototype-chain semantics.
|
|
69
|
+
if (this === DaytonaTimeoutError && value instanceof DaytonaConnectionTimeoutError) {
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
return Function.prototype[Symbol.hasInstance].call(this, value);
|
|
73
|
+
}
|
|
57
74
|
}
|
|
58
75
|
/** The request conflicts with the current state of the resource (HTTP 409). */
|
|
59
76
|
export class DaytonaConflictError extends DaytonaError {
|
|
@@ -86,9 +103,17 @@ export class DaytonaServiceUnavailableError extends DaytonaError {
|
|
|
86
103
|
// the same removal set.
|
|
87
104
|
// ============================================================================
|
|
88
105
|
/**
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
106
|
+
* Legacy umbrella for validation failures. Kept so existing
|
|
107
|
+
* `catch (err) { if (err instanceof DaytonaValidationError) ... }` blocks keep
|
|
108
|
+
* matching both server-returned HTTP 400s and locally rejected arguments.
|
|
109
|
+
*
|
|
110
|
+
* @deprecated Do not throw or catch this directly in new code. Branch on the
|
|
111
|
+
* precise class instead:
|
|
112
|
+
* - {@link DaytonaInvalidArgumentError} — the SDK rejected your arguments
|
|
113
|
+
* locally, before any request was sent.
|
|
114
|
+
* - {@link DaytonaBadRequestError} — a Daytona service returned HTTP 400.
|
|
115
|
+
* - {@link DaytonaUnprocessableEntityError} — a Daytona service returned
|
|
116
|
+
* HTTP 422 (well-formed but semantically invalid).
|
|
92
117
|
*/
|
|
93
118
|
export class DaytonaValidationError extends DaytonaBadRequestError {
|
|
94
119
|
}
|
|
@@ -97,6 +122,32 @@ export class DaytonaValidationError extends DaytonaBadRequestError {
|
|
|
97
122
|
*/
|
|
98
123
|
export class DaytonaAuthorizationError extends DaytonaForbiddenError {
|
|
99
124
|
}
|
|
125
|
+
// Not part of the deprecated set above. It extends DaytonaValidationError only
|
|
126
|
+
// so pre-existing `instanceof DaytonaValidationError` / `DaytonaBadRequestError`
|
|
127
|
+
// catches keep matching local argument rejections; reparent it directly onto
|
|
128
|
+
// DaytonaError in the next major.
|
|
129
|
+
/**
|
|
130
|
+
* The SDK rejected the caller's arguments locally, before any request was
|
|
131
|
+
* sent. `statusCode`, `code` and `source` are always `undefined` — no Daytona
|
|
132
|
+
* service was contacted, so there is no HTTP status to report.
|
|
133
|
+
*
|
|
134
|
+
* Distinct from {@link DaytonaBadRequestError} (a service returned HTTP 400)
|
|
135
|
+
* and {@link DaytonaUnprocessableEntityError} (a service returned HTTP 422).
|
|
136
|
+
* This one always means: fix the arguments at the call site.
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* ```ts
|
|
140
|
+
* try {
|
|
141
|
+
* await sandbox.setAutoStopInterval(-1)
|
|
142
|
+
* } catch (err) {
|
|
143
|
+
* if (err instanceof DaytonaInvalidArgumentError) {
|
|
144
|
+
* // never reached the API — the value itself is invalid
|
|
145
|
+
* }
|
|
146
|
+
* }
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
export class DaytonaInvalidArgumentError extends DaytonaValidationError {
|
|
150
|
+
}
|
|
100
151
|
/** Network connection failure (can't connect or mid-request drop). */
|
|
101
152
|
export class DaytonaConnectionError extends DaytonaError {
|
|
102
153
|
}
|
|
@@ -134,6 +185,12 @@ export class DaytonaFileNotFoundError extends DaytonaNotFoundError {
|
|
|
134
185
|
/** Access to the sandbox file was denied (code `FILE_ACCESS_DENIED`). */
|
|
135
186
|
export class DaytonaFileAccessDeniedError extends DaytonaForbiddenError {
|
|
136
187
|
}
|
|
188
|
+
/** The supplied file path was rejected by the daemon (code `INVALID_FILE_PATH`). */
|
|
189
|
+
export class DaytonaInvalidFilePathError extends DaytonaBadRequestError {
|
|
190
|
+
}
|
|
191
|
+
/** The daemon could not read the sandbox file (code `FILE_READ_FAILED`). */
|
|
192
|
+
export class DaytonaFileReadFailedError extends DaytonaInternalServerError {
|
|
193
|
+
}
|
|
137
194
|
// --- LSP (daemon) ---
|
|
138
195
|
/** The LSP server must be initialized first (code `LSP_SERVER_NOT_INITIALIZED`). */
|
|
139
196
|
export class DaytonaLspServerNotInitializedError extends DaytonaBadRequestError {
|
|
@@ -167,7 +224,9 @@ export class DaytonaRecordingFfmpegNotFoundError extends DaytonaServiceUnavailab
|
|
|
167
224
|
*
|
|
168
225
|
* Code strings are kept inline (not imported from the generated clients) so
|
|
169
226
|
* tests that virtual-mock the API client modules don't break module init.
|
|
170
|
-
*
|
|
227
|
+
*
|
|
228
|
+
* There is currently NO automated drift check against the daemon's
|
|
229
|
+
* `DaemonErrorCode` enum — keep this map in sync by hand when codes are added.
|
|
171
230
|
*/
|
|
172
231
|
const CODE_TO_ERROR_CLASS = {
|
|
173
232
|
// Daemon
|
|
@@ -180,6 +239,8 @@ const CODE_TO_ERROR_CLASS = {
|
|
|
180
239
|
'DAYTONA_DAEMON|GIT_MERGE_CONFLICT': DaytonaGitMergeConflictError,
|
|
181
240
|
'DAYTONA_DAEMON|FILE_NOT_FOUND': DaytonaFileNotFoundError,
|
|
182
241
|
'DAYTONA_DAEMON|FILE_ACCESS_DENIED': DaytonaFileAccessDeniedError,
|
|
242
|
+
'DAYTONA_DAEMON|INVALID_FILE_PATH': DaytonaInvalidFilePathError,
|
|
243
|
+
'DAYTONA_DAEMON|FILE_READ_FAILED': DaytonaFileReadFailedError,
|
|
183
244
|
'DAYTONA_DAEMON|LSP_SERVER_NOT_INITIALIZED': DaytonaLspServerNotInitializedError,
|
|
184
245
|
'DAYTONA_DAEMON|PROCESS_EXECUTION_TIMEOUT': DaytonaProcessExecutionTimeoutError,
|
|
185
246
|
'DAYTONA_DAEMON|PROCESS_NOT_FOUND': DaytonaProcessNotFoundError,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DaytonaError.js","sourceRoot":"","sources":["../../../../../sdk-typescript/src/errors/DaytonaError.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAA;AACvC,MAAM,CAAC,MAAM,aAAa,GAAG,gBAAgB,CAAA;AAC7C,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAA;AAE3C;;;;GAIG;AACH,MAAM,OAAO,YAAa,SAAQ,KAAK;IAC9B,UAAU,CAAS;IACnB,IAAI,CAAS;IACJ,MAAM,CAAS;IACxB,OAAO,CAAkB;IAEhC,YAAY,OAAe,EAAE,UAAmB,EAAE,OAAyB,EAAE,IAAa,EAAE,MAAe;QACzG,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAA;QAC3B,IAAI,CA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|
export { CodeLanguage, Daytona } from './Daytona.js';
|
|
2
|
-
export type { CreateSandboxBaseParams, CreateSandboxFromImageParams, CreateSandboxFromSnapshotParams, DaytonaConfig, Resources, VolumeMount, } from './Daytona.js';
|
|
2
|
+
export type { CreateSandboxBaseParams, CreateSandboxFromImageParams, CreateSandboxFromSnapshotParams, DaytonaConfig, ForkSandboxParams, Resources, VolumeMount, } from './Daytona.js';
|
|
3
3
|
export { FileSystem } from './FileSystem.js';
|
|
4
4
|
export type { DownloadProgress, DownloadMetadata, DownloadStreamOptions, UploadProgress, UploadStreamOptions, UploadSource, FileDownloadErrorDetails, FileDownloadRequest, FileDownloadResponse, FilePermissionsParams, FileUpload, } from './FileSystem.js';
|
|
5
5
|
export { Git } from './Git.js';
|
|
6
6
|
export { LspLanguageId } from './LspServer.js';
|
|
7
7
|
export { Process } from './Process.js';
|
|
8
|
-
export { SOURCE_API, SOURCE_DAEMON, SOURCE_PROXY, DaytonaError, DaytonaBadRequestError, DaytonaValidationError, DaytonaAuthenticationError, DaytonaForbiddenError, DaytonaAuthorizationError, DaytonaNotFoundError, DaytonaTimeoutError, DaytonaConflictError, DaytonaGoneError, DaytonaUnprocessableEntityError, DaytonaRateLimitError, DaytonaInternalServerError, DaytonaBadGatewayError, DaytonaServiceUnavailableError, DaytonaConnectionError, DaytonaConnectionTimeoutError, DaytonaGitAuthFailedError, DaytonaGitRepoNotFoundError, DaytonaGitBranchNotFoundError, DaytonaGitBranchExistsError, DaytonaGitPushRejectedError, DaytonaGitDirtyWorktreeError, DaytonaGitMergeConflictError, DaytonaFileNotFoundError, DaytonaFileAccessDeniedError, DaytonaLspServerNotInitializedError, DaytonaProcessExecutionTimeoutError, DaytonaProcessNotFoundError, DaytonaSessionEndedError, DaytonaCommandAlreadyCompletedError, DaytonaA11yUnavailableError, DaytonaRecordingStillActiveError, DaytonaRecordingFfmpegNotFoundError, } from './errors/DaytonaError.js';
|
|
8
|
+
export { SOURCE_API, SOURCE_DAEMON, SOURCE_PROXY, DaytonaError, DaytonaBadRequestError, DaytonaInvalidArgumentError, DaytonaValidationError, DaytonaAuthenticationError, DaytonaForbiddenError, DaytonaAuthorizationError, DaytonaNotFoundError, DaytonaTimeoutError, DaytonaConflictError, DaytonaGoneError, DaytonaUnprocessableEntityError, DaytonaRateLimitError, DaytonaInternalServerError, DaytonaBadGatewayError, DaytonaServiceUnavailableError, DaytonaConnectionError, DaytonaConnectionTimeoutError, DaytonaGitAuthFailedError, DaytonaGitRepoNotFoundError, DaytonaGitBranchNotFoundError, DaytonaGitBranchExistsError, DaytonaGitPushRejectedError, DaytonaGitDirtyWorktreeError, DaytonaGitMergeConflictError, DaytonaFileNotFoundError, DaytonaFileAccessDeniedError, DaytonaInvalidFilePathError, DaytonaFileReadFailedError, DaytonaLspServerNotInitializedError, DaytonaProcessExecutionTimeoutError, DaytonaProcessNotFoundError, DaytonaSessionEndedError, DaytonaCommandAlreadyCompletedError, DaytonaA11yUnavailableError, DaytonaRecordingStillActiveError, DaytonaRecordingFfmpegNotFoundError, } from './errors/DaytonaError.js';
|
|
9
9
|
export { Image } from './Image.js';
|
|
10
10
|
export { Sandbox } from './Sandbox.js';
|
|
11
11
|
export type { ListSandboxesQuery, SandboxMetrics } from './Sandbox.js';
|
package/esm/index.js
CHANGED
|
@@ -14,12 +14,14 @@ export {
|
|
|
14
14
|
SOURCE_API, SOURCE_DAEMON, SOURCE_PROXY,
|
|
15
15
|
// Base + status-code classes
|
|
16
16
|
DaytonaError, DaytonaBadRequestError,
|
|
17
|
+
// Client-side (pre-flight) argument validation
|
|
18
|
+
DaytonaInvalidArgumentError,
|
|
17
19
|
// Deprecated aliases
|
|
18
20
|
DaytonaValidationError, DaytonaAuthenticationError, DaytonaForbiddenError,
|
|
19
21
|
// Deprecated alias
|
|
20
22
|
DaytonaAuthorizationError, DaytonaNotFoundError, DaytonaTimeoutError, DaytonaConflictError, DaytonaGoneError, DaytonaUnprocessableEntityError, DaytonaRateLimitError, DaytonaInternalServerError, DaytonaBadGatewayError, DaytonaServiceUnavailableError, DaytonaConnectionError, DaytonaConnectionTimeoutError,
|
|
21
23
|
// Domain-specific subclasses
|
|
22
|
-
DaytonaGitAuthFailedError, DaytonaGitRepoNotFoundError, DaytonaGitBranchNotFoundError, DaytonaGitBranchExistsError, DaytonaGitPushRejectedError, DaytonaGitDirtyWorktreeError, DaytonaGitMergeConflictError, DaytonaFileNotFoundError, DaytonaFileAccessDeniedError, DaytonaLspServerNotInitializedError, DaytonaProcessExecutionTimeoutError, DaytonaProcessNotFoundError, DaytonaSessionEndedError, DaytonaCommandAlreadyCompletedError, DaytonaA11yUnavailableError, DaytonaRecordingStillActiveError, DaytonaRecordingFfmpegNotFoundError, } from './errors/DaytonaError.js';
|
|
24
|
+
DaytonaGitAuthFailedError, DaytonaGitRepoNotFoundError, DaytonaGitBranchNotFoundError, DaytonaGitBranchExistsError, DaytonaGitPushRejectedError, DaytonaGitDirtyWorktreeError, DaytonaGitMergeConflictError, DaytonaFileNotFoundError, DaytonaFileAccessDeniedError, DaytonaInvalidFilePathError, DaytonaFileReadFailedError, DaytonaLspServerNotInitializedError, DaytonaProcessExecutionTimeoutError, DaytonaProcessNotFoundError, DaytonaSessionEndedError, DaytonaCommandAlreadyCompletedError, DaytonaA11yUnavailableError, DaytonaRecordingStillActiveError, DaytonaRecordingFfmpegNotFoundError, } from './errors/DaytonaError.js';
|
|
23
25
|
export { Image } from './Image.js';
|
|
24
26
|
export { Sandbox } from './Sandbox.js';
|
|
25
27
|
export { ComputerUse, Mouse, Keyboard, Screenshot, Display, Accessibility } from './ComputerUse.js';
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../sdk-typescript/src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../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,EAAE,MAAM,eAAe,CAAA;AAiBhG,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAG1C,OAAO,EACL,OAAO,EACP,YAAY,EACZ,oBAAoB,EACpB,wBAAwB,EACxB,YAAY,EACZ,4BAA4B,EAC5B,6BAA6B,GAC9B,MAAM,qBAAqB,CAAA;AAiB5B,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
|
package/esm/utils/Import.js
CHANGED
|
@@ -115,7 +115,7 @@ export function getPackageInfo() {
|
|
|
115
115
|
if (_packageInfo)
|
|
116
116
|
return _packageInfo;
|
|
117
117
|
try {
|
|
118
|
-
const pkg = {"name":"@daytona/sdk","version":"0.
|
|
118
|
+
const pkg = {"name":"@daytona/sdk","version":"0.202.0"};
|
|
119
119
|
_packageInfo = { name: pkg.name, version: pkg.version };
|
|
120
120
|
}
|
|
121
121
|
catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daytonaio/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.202.0",
|
|
4
4
|
"description": "Daytona TypeScript SDK for sandbox management and code execution",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
],
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"tslib": "2.8.1",
|
|
73
|
-
"ws": "^8.
|
|
73
|
+
"ws": "^8.21.1",
|
|
74
74
|
"@aws-sdk/client-s3": "^3.787.0",
|
|
75
75
|
"@aws-sdk/lib-storage": "^3.798.0",
|
|
76
76
|
"@iarna/toml": "^2.2.5",
|
|
@@ -93,8 +93,8 @@
|
|
|
93
93
|
"shell-quote": "^1.8.2",
|
|
94
94
|
"socket.io-client": "^4.8.1",
|
|
95
95
|
"tar": "^7.5.11",
|
|
96
|
-
"@daytona/api-client": "0.
|
|
97
|
-
"@daytona/toolbox-api-client": "0.
|
|
98
|
-
"@daytona/analytics-api-client": "0.
|
|
96
|
+
"@daytona/api-client": "0.202.0",
|
|
97
|
+
"@daytona/toolbox-api-client": "0.202.0",
|
|
98
|
+
"@daytona/analytics-api-client": "0.202.0"
|
|
99
99
|
}
|
|
100
100
|
}
|