@langchain/daytona 0.2.1 → 0.2.2
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/dist/index.d.cts +16 -4
- package/dist/index.d.ts +16 -4
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Daytona, Sandbox } from "@daytona/sdk";
|
|
2
2
|
import { BackendFactory, BaseSandbox, ExecuteResponse, FileDownloadResponse, FileUploadResponse, SandboxError, SandboxErrorCode } from "deepagents";
|
|
3
|
-
|
|
4
3
|
//#region src/types.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Supported target regions for Daytona sandboxes.
|
|
@@ -57,8 +56,11 @@ interface DaytonaSandboxOptions {
|
|
|
57
56
|
* ```
|
|
58
57
|
*/
|
|
59
58
|
resources?: {
|
|
60
|
-
/** Number of CPUs to allocate */
|
|
61
|
-
|
|
59
|
+
/** Number of CPUs to allocate */
|
|
60
|
+
cpu?: number;
|
|
61
|
+
/** Amount of memory in GiB */
|
|
62
|
+
memory?: number;
|
|
63
|
+
/** Amount of disk space in GiB */
|
|
62
64
|
disk?: number;
|
|
63
65
|
};
|
|
64
66
|
/**
|
|
@@ -168,7 +170,17 @@ interface DaytonaSandboxOptions {
|
|
|
168
170
|
*
|
|
169
171
|
* Used to identify specific error conditions and handle them appropriately.
|
|
170
172
|
*/
|
|
171
|
-
type DaytonaSandboxErrorCode = SandboxErrorCode
|
|
173
|
+
type DaytonaSandboxErrorCode = SandboxErrorCode |
|
|
174
|
+
/** Authentication failed - check API key configuration */
|
|
175
|
+
"AUTHENTICATION_FAILED" |
|
|
176
|
+
/** Failed to create sandbox - check options and quotas */
|
|
177
|
+
"SANDBOX_CREATION_FAILED" |
|
|
178
|
+
/** Sandbox not found - may have been deleted or expired */
|
|
179
|
+
"SANDBOX_NOT_FOUND" |
|
|
180
|
+
/** Sandbox is not in started state */
|
|
181
|
+
"SANDBOX_NOT_STARTED" |
|
|
182
|
+
/** Resource limits exceeded (CPU, memory, storage) */
|
|
183
|
+
"RESOURCE_LIMIT_EXCEEDED";
|
|
172
184
|
declare const DAYTONA_SANDBOX_ERROR_SYMBOL: unique symbol;
|
|
173
185
|
/**
|
|
174
186
|
* Custom error class for Daytona Sandbox operations.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Daytona, Sandbox } from "@daytona/sdk";
|
|
2
2
|
import { BackendFactory, BaseSandbox, ExecuteResponse, FileDownloadResponse, FileUploadResponse, SandboxError, SandboxErrorCode } from "deepagents";
|
|
3
|
-
|
|
4
3
|
//#region src/types.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Supported target regions for Daytona sandboxes.
|
|
@@ -57,8 +56,11 @@ interface DaytonaSandboxOptions {
|
|
|
57
56
|
* ```
|
|
58
57
|
*/
|
|
59
58
|
resources?: {
|
|
60
|
-
/** Number of CPUs to allocate */
|
|
61
|
-
|
|
59
|
+
/** Number of CPUs to allocate */
|
|
60
|
+
cpu?: number;
|
|
61
|
+
/** Amount of memory in GiB */
|
|
62
|
+
memory?: number;
|
|
63
|
+
/** Amount of disk space in GiB */
|
|
62
64
|
disk?: number;
|
|
63
65
|
};
|
|
64
66
|
/**
|
|
@@ -168,7 +170,17 @@ interface DaytonaSandboxOptions {
|
|
|
168
170
|
*
|
|
169
171
|
* Used to identify specific error conditions and handle them appropriately.
|
|
170
172
|
*/
|
|
171
|
-
type DaytonaSandboxErrorCode = SandboxErrorCode
|
|
173
|
+
type DaytonaSandboxErrorCode = SandboxErrorCode |
|
|
174
|
+
/** Authentication failed - check API key configuration */
|
|
175
|
+
"AUTHENTICATION_FAILED" |
|
|
176
|
+
/** Failed to create sandbox - check options and quotas */
|
|
177
|
+
"SANDBOX_CREATION_FAILED" |
|
|
178
|
+
/** Sandbox not found - may have been deleted or expired */
|
|
179
|
+
"SANDBOX_NOT_FOUND" |
|
|
180
|
+
/** Sandbox is not in started state */
|
|
181
|
+
"SANDBOX_NOT_STARTED" |
|
|
182
|
+
/** Resource limits exceeded (CPU, memory, storage) */
|
|
183
|
+
"RESOURCE_LIMIT_EXCEEDED";
|
|
172
184
|
declare const DAYTONA_SANDBOX_ERROR_SYMBOL: unique symbol;
|
|
173
185
|
/**
|
|
174
186
|
* Custom error class for Daytona Sandbox operations.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@langchain/daytona",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Daytona Sandbox backend for deepagents",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/langchain-ai/deepagentsjs#readme",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@daytona/sdk": "^0.
|
|
30
|
+
"@daytona/sdk": "^0.200.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"deepagents": ">=1.
|
|
33
|
+
"deepagents": ">=1.12.0-rc.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@tsconfig/recommended": "^1.0.13",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"dotenv": "^17.2.3",
|
|
40
40
|
"tsdown": "^0.22.1",
|
|
41
41
|
"tsx": "^4.21.0",
|
|
42
|
-
"typescript": "^
|
|
42
|
+
"typescript": "^7.0.2",
|
|
43
43
|
"vitest": "^4.0.18",
|
|
44
|
-
"deepagents": "1.
|
|
45
|
-
"@langchain/sandbox-standard-tests": "
|
|
44
|
+
"deepagents": "1.12.2",
|
|
45
|
+
"@langchain/sandbox-standard-tests": "2.0.0"
|
|
46
46
|
},
|
|
47
47
|
"exports": {
|
|
48
48
|
".": {
|