@daytonaio/sdk 0.211.2 → 0.214.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/Daytona.js +7 -8
- package/cjs/Daytona.js.map +1 -1
- package/cjs/Image.d.ts +7 -0
- package/cjs/Image.js +54 -33
- package/cjs/Image.js.map +1 -1
- package/cjs/utils/Import.js +1 -1
- package/cjs/utils/Runtime.d.ts +13 -10
- package/cjs/utils/Runtime.js +97 -36
- package/cjs/utils/Runtime.js.map +1 -1
- package/esm/Daytona.js +8 -9
- package/esm/Daytona.js.map +1 -1
- package/esm/Image.d.ts +7 -0
- package/esm/Image.js +54 -33
- package/esm/Image.js.map +1 -1
- package/esm/utils/Import.js +2 -2
- package/esm/utils/Runtime.d.ts +13 -10
- package/esm/utils/Runtime.js +107 -35
- package/esm/utils/Runtime.js.map +1 -1
- package/package.json +12 -13
package/esm/utils/Runtime.js
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
const __esmRequire = (() => {
|
|
2
|
+
try { if (typeof require !== 'undefined') return require; } catch {}
|
|
3
|
+
try {
|
|
4
|
+
const builtinModule = globalThis.process?.getBuiltinModule?.('module');
|
|
5
|
+
if (builtinModule?.createRequire) return builtinModule.createRequire(import.meta.url);
|
|
6
|
+
} catch {}
|
|
7
|
+
return (id) => { throw new Error(
|
|
8
|
+
'cannot require("' + id + '"): no CommonJS require available. ' +
|
|
9
|
+
'If re-bundling @daytona/sdk to CJS, ensure createRequire or the host require is accessible.'
|
|
10
|
+
); };
|
|
11
|
+
})();
|
|
1
12
|
/*
|
|
2
13
|
* Copyright Daytona Platforms Inc.
|
|
3
14
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -31,6 +42,29 @@ export function getEnvVar(name) {
|
|
|
31
42
|
}
|
|
32
43
|
return undefined;
|
|
33
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Loads a CommonJS module, or returns undefined when one cannot be loaded.
|
|
47
|
+
*
|
|
48
|
+
* Reaching `require` through a real call is deliberate. `require` is not defined in an ES
|
|
49
|
+
* module, so post-build.js rewrites the call below onto a `createRequire` shim in the
|
|
50
|
+
* published ESM build; a `typeof require` test inlined at a call site is not a call, is
|
|
51
|
+
* not rewritten, and so reports "no require" in ESM even though one is reachable. Every
|
|
52
|
+
* caller must therefore go through a real call rather than test for the binding.
|
|
53
|
+
*
|
|
54
|
+
* A bundler can also leave `require` defined while a given specifier is unresolvable, so
|
|
55
|
+
* the failure is swallowed either way: these callers must degrade, never throw.
|
|
56
|
+
*
|
|
57
|
+
* Left untyped on purpose - a `typeof import(...)` annotation here pulls the node typings
|
|
58
|
+
* in differently and reorders unrelated unions in the generated docs.
|
|
59
|
+
*/
|
|
60
|
+
function tryRequire(id) {
|
|
61
|
+
try {
|
|
62
|
+
return __esmRequire(id);
|
|
63
|
+
}
|
|
64
|
+
catch {
|
|
65
|
+
return undefined;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
34
68
|
export class DaytonaEnvReader {
|
|
35
69
|
envLocalVars;
|
|
36
70
|
envVars;
|
|
@@ -73,13 +107,16 @@ export class DaytonaEnvReader {
|
|
|
73
107
|
}
|
|
74
108
|
static parseFileVars(path) {
|
|
75
109
|
// Bun is detected before Node above, so a Node-only gate would leave the reader unable to
|
|
76
|
-
// read files on the one runtime that pre-loads them. Bun implements
|
|
77
|
-
|
|
110
|
+
// read files on the one runtime that pre-loads them. Bun implements the CommonJS
|
|
111
|
+
// module loader, so the require below resolves there.
|
|
112
|
+
if (RUNTIME !== Runtime.NODE && RUNTIME !== Runtime.BUN)
|
|
113
|
+
return {};
|
|
114
|
+
const fs = tryRequire('fs');
|
|
115
|
+
const dotenv = tryRequire('dotenv');
|
|
116
|
+
if (!fs || !dotenv)
|
|
78
117
|
return {};
|
|
79
|
-
const fs = require('fs');
|
|
80
118
|
if (!fs.existsSync(path))
|
|
81
119
|
return {};
|
|
82
|
-
const dotenv = require('dotenv');
|
|
83
120
|
const parsed = dotenv.parse(fs.readFileSync(path));
|
|
84
121
|
return Object.fromEntries(Object.entries(parsed).filter(([k]) => k.startsWith('DAYTONA_')));
|
|
85
122
|
}
|
|
@@ -129,6 +166,32 @@ export function warnIfDotenvApiUrlIgnored(reader, apiUrl) {
|
|
|
129
166
|
}
|
|
130
167
|
/** The variables that decide which host the API key is sent to. */
|
|
131
168
|
const ENDPOINT_VARS = ['DAYTONA_API_URL', 'DAYTONA_SERVER_URL'];
|
|
169
|
+
/**
|
|
170
|
+
* One assignment as the dotenv loader accepts it: an optional `export`, a key, either `=`
|
|
171
|
+
* or `:` followed by whitespace, and a value that may be quoted — and a quoted value may
|
|
172
|
+
* span newlines.
|
|
173
|
+
*
|
|
174
|
+
* The grammar deliberately mirrors the loader's, so this check cannot disagree with the
|
|
175
|
+
* thing that populated the environment. Matching lines in isolation would both report a
|
|
176
|
+
* key sitting inside a multiline quoted value, and miss the `KEY: value` form.
|
|
177
|
+
*
|
|
178
|
+
* Returned from a function rather than held in a module constant: evaluating a regex
|
|
179
|
+
* literal yields a fresh object, so the `g` flag's `lastIndex` cannot leak between files.
|
|
180
|
+
*/
|
|
181
|
+
function dotenvAssignments() {
|
|
182
|
+
return /^[ \t]*(?:export[ \t]+)?([\w.-]+)(?:[ \t]*=[ \t]*|:[ \t]+)(?:'[^']*'|"(?:\\[\s\S]|[^"\\])*"|`(?:\\[\s\S]|[^`\\])*`|[^#\r\n]*)?[ \t]*(?:#[^\r\n]*)?\r?$/gm;
|
|
183
|
+
}
|
|
184
|
+
function definesEndpointVar(text) {
|
|
185
|
+
// Editors on Windows write a byte-order mark and the loaders tolerate it, but `^` would
|
|
186
|
+
// not match an assignment sitting on the first line behind one.
|
|
187
|
+
const source = text.replace(/^\uFEFF/, '');
|
|
188
|
+
const pattern = dotenvAssignments();
|
|
189
|
+
for (let match = pattern.exec(source); match; match = pattern.exec(source)) {
|
|
190
|
+
if (ENDPOINT_VARS.includes(match[1]))
|
|
191
|
+
return true;
|
|
192
|
+
}
|
|
193
|
+
return false;
|
|
194
|
+
}
|
|
132
195
|
/**
|
|
133
196
|
* The union of the dotenv file names that Bun and Next.js load on their own. `.env` and
|
|
134
197
|
* `.env.local` are the SDK's own precedence chain; the rest are here only so that a file
|
|
@@ -145,22 +208,16 @@ const PRELOADABLE_DOTENV_FILES = [
|
|
|
145
208
|
'.env.test.local',
|
|
146
209
|
];
|
|
147
210
|
/**
|
|
148
|
-
* Whether
|
|
149
|
-
* before any user code ran.
|
|
211
|
+
* Whether either endpoint variable is present in the process environment.
|
|
150
212
|
*
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
213
|
+
* Enumerating loaders (Bun, `--env-file`, Next.js, Deno, Nuxt/Nitro, `@next/env`, …) can
|
|
214
|
+
* never be complete. The endpoint can only come from the constructor or `process.env`, so
|
|
215
|
+
* the precise condition is: a working-directory file names the variable **and** that variable
|
|
216
|
+
* is present in the process environment. This is both broader (covers every loader) and
|
|
217
|
+
* narrower (does not fire when a file exists but nothing loaded it).
|
|
154
218
|
*/
|
|
155
|
-
export function
|
|
156
|
-
|
|
157
|
-
return false;
|
|
158
|
-
const execArgv = Array.isArray(process.execArgv) ? process.execArgv : [];
|
|
159
|
-
if (execArgv.some((arg) => arg.startsWith('--env-file')))
|
|
160
|
-
return true;
|
|
161
|
-
if (RUNTIME === Runtime.BUN)
|
|
162
|
-
return !execArgv.includes('--no-env-file');
|
|
163
|
-
return Boolean(process.env?.NEXT_RUNTIME);
|
|
219
|
+
export function endpointNamedInProcessEnv() {
|
|
220
|
+
return ENDPOINT_VARS.some((name) => getEnvVar(name) !== undefined);
|
|
164
221
|
}
|
|
165
222
|
/**
|
|
166
223
|
* The working directory as it was when this module first loaded.
|
|
@@ -189,7 +246,7 @@ function safeCwd() {
|
|
|
189
246
|
}
|
|
190
247
|
}
|
|
191
248
|
/**
|
|
192
|
-
* The paths
|
|
249
|
+
* The dotenv paths a runtime or preloader was told to read, in the order they were given.
|
|
193
250
|
*
|
|
194
251
|
* A runtime told to load a specific file does not restrict itself to the conventional names,
|
|
195
252
|
* so those paths have to be examined too. Relative paths are left as given: the runtime
|
|
@@ -214,6 +271,20 @@ function explicitDotenvPaths() {
|
|
|
214
271
|
paths.push(execArgv[++i]);
|
|
215
272
|
}
|
|
216
273
|
}
|
|
274
|
+
// The dotenv preloader takes its path from DOTENV_CONFIG_PATH or from a
|
|
275
|
+
// `dotenv_config_path=` command-line argument. Its default, `.env`, is already covered by
|
|
276
|
+
// PRELOADABLE_DOTENV_FILES; a configured path is not.
|
|
277
|
+
const configPath = process.env?.DOTENV_CONFIG_PATH;
|
|
278
|
+
if (configPath)
|
|
279
|
+
paths.push(configPath);
|
|
280
|
+
const argv = Array.isArray(process.argv) ? process.argv : [];
|
|
281
|
+
for (const arg of argv) {
|
|
282
|
+
if (!arg.startsWith('dotenv_config_path='))
|
|
283
|
+
continue;
|
|
284
|
+
const value = arg.slice('dotenv_config_path='.length);
|
|
285
|
+
if (value)
|
|
286
|
+
paths.push(value);
|
|
287
|
+
}
|
|
217
288
|
return paths;
|
|
218
289
|
}
|
|
219
290
|
/**
|
|
@@ -232,19 +303,19 @@ export function dotenvSearchDirs() {
|
|
|
232
303
|
/**
|
|
233
304
|
* The first dotenv file that defines an endpoint variable, if any.
|
|
234
305
|
*
|
|
235
|
-
*
|
|
236
|
-
*
|
|
237
|
-
*
|
|
238
|
-
*
|
|
306
|
+
* The file is scanned as raw text rather than parsed with the `dotenv` package: only the
|
|
307
|
+
* variable's *presence* matters (never its value), and reading the name directly means the
|
|
308
|
+
* check still works where the `dotenv` package is not installed — which is the case when a
|
|
309
|
+
* runtime loads the file itself. A value comparison cannot establish where an environment
|
|
310
|
+
* value came from: runtimes expand `$VAR` references while a parser returns the raw text,
|
|
311
|
+
* so equal-looking values prove nothing and unequal ones rule nothing out.
|
|
239
312
|
*/
|
|
240
313
|
export function findDotenvFileDefiningEndpoint(searchDirs = dotenvSearchDirs()) {
|
|
241
|
-
if (
|
|
314
|
+
if (RUNTIME !== Runtime.NODE && RUNTIME !== Runtime.BUN)
|
|
242
315
|
return undefined;
|
|
243
|
-
//
|
|
244
|
-
//
|
|
245
|
-
//
|
|
246
|
-
// untyped, matching parseFileVars above - a `typeof import(...)` annotation here pulls the
|
|
247
|
-
// node typings in differently and reorders unrelated unions in the generated docs.
|
|
316
|
+
// Constructing a client must not fail because the check could not run, so a scan that
|
|
317
|
+
// throws is treated as nothing found: the endpoint then resolves as it did before this
|
|
318
|
+
// check existed.
|
|
248
319
|
try {
|
|
249
320
|
return scanForDotenvEndpoint(searchDirs);
|
|
250
321
|
}
|
|
@@ -253,9 +324,10 @@ export function findDotenvFileDefiningEndpoint(searchDirs = dotenvSearchDirs())
|
|
|
253
324
|
}
|
|
254
325
|
}
|
|
255
326
|
function scanForDotenvEndpoint(searchDirs) {
|
|
256
|
-
const fs =
|
|
257
|
-
const nodePath =
|
|
258
|
-
|
|
327
|
+
const fs = tryRequire('fs');
|
|
328
|
+
const nodePath = tryRequire('path');
|
|
329
|
+
if (!fs || !nodePath)
|
|
330
|
+
return undefined;
|
|
259
331
|
const names = [...explicitDotenvPaths(), ...PRELOADABLE_DOTENV_FILES];
|
|
260
332
|
const candidates = [];
|
|
261
333
|
for (const name of names) {
|
|
@@ -265,14 +337,14 @@ function scanForDotenvEndpoint(searchDirs) {
|
|
|
265
337
|
for (const file of [...new Set(candidates)]) {
|
|
266
338
|
if (!fs.existsSync(file))
|
|
267
339
|
continue;
|
|
268
|
-
let
|
|
340
|
+
let text;
|
|
269
341
|
try {
|
|
270
|
-
|
|
342
|
+
text = fs.readFileSync(file, 'utf8');
|
|
271
343
|
}
|
|
272
344
|
catch {
|
|
273
345
|
continue;
|
|
274
346
|
}
|
|
275
|
-
if (
|
|
347
|
+
if (definesEndpointVar(text))
|
|
276
348
|
return file;
|
|
277
349
|
}
|
|
278
350
|
return undefined;
|
package/esm/utils/Runtime.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Runtime.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B,IAAI,CAAC;YACH,IAAI,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAW,CAAA;QAChD,CAAC;QAAC,MAAM,CAAC;YACP,SAAQ;QACV,CAAC;QACD,IAAI,kBAAkB,CAAC,IAAI,CAAC;YAAE,OAAO,IAAI,CAAA;IAC3C,CAAC;IACD,OAAO,SAAS,CAAA;AAClB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daytonaio/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.214.0",
|
|
4
4
|
"description": "Daytona TypeScript SDK for sandbox management and code execution",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -71,20 +71,19 @@
|
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"tslib": "2.8.1",
|
|
73
73
|
"ws": "^8.21.3",
|
|
74
|
-
"@aws-sdk/client-s3": "^3.
|
|
75
|
-
"@aws-sdk/lib-storage": "^3.
|
|
74
|
+
"@aws-sdk/client-s3": "^3.1127.0",
|
|
75
|
+
"@aws-sdk/lib-storage": "^3.1127.0",
|
|
76
76
|
"@iarna/toml": "^2.2.5",
|
|
77
77
|
"@opentelemetry/api": "^1.9.1",
|
|
78
|
-
"@opentelemetry/exporter-trace-otlp-http": "^0.
|
|
79
|
-
"@opentelemetry/instrumentation-http": "^0.
|
|
80
|
-
"@opentelemetry/otlp-exporter-base": "0.
|
|
81
|
-
"@opentelemetry/resources": "2.
|
|
82
|
-
"@opentelemetry/sdk-node": "^0.
|
|
83
|
-
"@opentelemetry/sdk-trace-base": "^2.
|
|
78
|
+
"@opentelemetry/exporter-trace-otlp-http": "^0.222.0",
|
|
79
|
+
"@opentelemetry/instrumentation-http": "^0.222.0",
|
|
80
|
+
"@opentelemetry/otlp-exporter-base": "0.222.0",
|
|
81
|
+
"@opentelemetry/resources": "2.11.0",
|
|
82
|
+
"@opentelemetry/sdk-node": "^0.222.0",
|
|
83
|
+
"@opentelemetry/sdk-trace-base": "^2.11.0",
|
|
84
84
|
"@opentelemetry/semantic-conventions": "^1.43.0",
|
|
85
85
|
"axios": "^1.20.0",
|
|
86
86
|
"busboy": "^1.0.0",
|
|
87
|
-
"dotenv": "^17.4.2",
|
|
88
87
|
"expand-tilde": "^2.0.2",
|
|
89
88
|
"fast-glob": "^3.3.0",
|
|
90
89
|
"form-data": "^4.0.4",
|
|
@@ -93,8 +92,8 @@
|
|
|
93
92
|
"shell-quote": "^1.8.2",
|
|
94
93
|
"socket.io-client": "^4.8.1",
|
|
95
94
|
"tar": "^7.5.22",
|
|
96
|
-
"@daytona/api-client": "0.
|
|
97
|
-
"@daytona/toolbox-api-client": "0.
|
|
98
|
-
"@daytona/analytics-api-client": "0.
|
|
95
|
+
"@daytona/api-client": "0.214.0",
|
|
96
|
+
"@daytona/toolbox-api-client": "0.214.0",
|
|
97
|
+
"@daytona/analytics-api-client": "0.214.0"
|
|
99
98
|
}
|
|
100
99
|
}
|