@langchain/modal 0.1.5 → 0.1.6

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 CHANGED
@@ -1,6 +1,5 @@
1
1
  import { ModalClient, Sandbox, SandboxCreateParams } from "modal";
2
2
  import { BackendFactory, BaseSandbox, ExecuteResponse, FileDownloadResponse, FileUploadResponse, SandboxError, SandboxErrorCode } from "deepagents";
3
-
4
3
  //#region src/types.d.ts
5
4
  /**
6
5
  * Fields from SandboxCreateParams that we wrap with a different API:
@@ -135,7 +134,17 @@ interface ModalSandboxOptions extends BaseSdkOptions {
135
134
  *
136
135
  * Used to identify specific error conditions and handle them appropriately.
137
136
  */
138
- type ModalSandboxErrorCode = SandboxErrorCode /** Authentication failed - check token configuration */ | "AUTHENTICATION_FAILED" /** Failed to create sandbox - check options and quotas */ | "SANDBOX_CREATION_FAILED" /** Sandbox not found - may have been stopped or expired */ | "SANDBOX_NOT_FOUND" /** Resource limits exceeded (CPU, memory, storage) */ | "RESOURCE_LIMIT_EXCEEDED" /** Volume operation failed */ | "VOLUME_ERROR";
137
+ type ModalSandboxErrorCode = SandboxErrorCode |
138
+ /** Authentication failed - check token configuration */
139
+ "AUTHENTICATION_FAILED" |
140
+ /** Failed to create sandbox - check options and quotas */
141
+ "SANDBOX_CREATION_FAILED" |
142
+ /** Sandbox not found - may have been stopped or expired */
143
+ "SANDBOX_NOT_FOUND" |
144
+ /** Resource limits exceeded (CPU, memory, storage) */
145
+ "RESOURCE_LIMIT_EXCEEDED" |
146
+ /** Volume operation failed */
147
+ "VOLUME_ERROR";
139
148
  declare const MODAL_SANDBOX_ERROR_SYMBOL: unique symbol;
140
149
  /**
141
150
  * Custom error class for Modal Sandbox operations.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { ModalClient, Sandbox, SandboxCreateParams } from "modal";
2
2
  import { BackendFactory, BaseSandbox, ExecuteResponse, FileDownloadResponse, FileUploadResponse, SandboxError, SandboxErrorCode } from "deepagents";
3
-
4
3
  //#region src/types.d.ts
5
4
  /**
6
5
  * Fields from SandboxCreateParams that we wrap with a different API:
@@ -135,7 +134,17 @@ interface ModalSandboxOptions extends BaseSdkOptions {
135
134
  *
136
135
  * Used to identify specific error conditions and handle them appropriately.
137
136
  */
138
- type ModalSandboxErrorCode = SandboxErrorCode /** Authentication failed - check token configuration */ | "AUTHENTICATION_FAILED" /** Failed to create sandbox - check options and quotas */ | "SANDBOX_CREATION_FAILED" /** Sandbox not found - may have been stopped or expired */ | "SANDBOX_NOT_FOUND" /** Resource limits exceeded (CPU, memory, storage) */ | "RESOURCE_LIMIT_EXCEEDED" /** Volume operation failed */ | "VOLUME_ERROR";
137
+ type ModalSandboxErrorCode = SandboxErrorCode |
138
+ /** Authentication failed - check token configuration */
139
+ "AUTHENTICATION_FAILED" |
140
+ /** Failed to create sandbox - check options and quotas */
141
+ "SANDBOX_CREATION_FAILED" |
142
+ /** Sandbox not found - may have been stopped or expired */
143
+ "SANDBOX_NOT_FOUND" |
144
+ /** Resource limits exceeded (CPU, memory, storage) */
145
+ "RESOURCE_LIMIT_EXCEEDED" |
146
+ /** Volume operation failed */
147
+ "VOLUME_ERROR";
139
148
  declare const MODAL_SANDBOX_ERROR_SYMBOL: unique symbol;
140
149
  /**
141
150
  * Custom error class for Modal Sandbox operations.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/modal",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Modal 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
- "modal": "^0.8.2"
30
+ "modal": "^0.9.0"
31
31
  },
32
32
  "peerDependencies": {
33
- "deepagents": ">=1.9.0-alpha.0"
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": "^6.0.2",
42
+ "typescript": "^7.0.2",
43
43
  "vitest": "^4.0.18",
44
- "deepagents": "1.10.6",
45
- "@langchain/sandbox-standard-tests": "1.0.0"
44
+ "deepagents": "1.12.2",
45
+ "@langchain/sandbox-standard-tests": "2.0.0"
46
46
  },
47
47
  "exports": {
48
48
  ".": {