@fastgpt-sdk/sandbox-adapter 0.0.21 → 0.0.22
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ImageSpec, NetworkPolicy, ResourceLimits } from '@/types';
|
|
2
|
+
import type { Volume } from '@alibaba-group/opensandbox';
|
|
2
3
|
/**
|
|
3
4
|
* Configuration for creating a sandbox.
|
|
4
5
|
*/
|
|
@@ -17,6 +18,8 @@ export interface OpenSandboxConfigType {
|
|
|
17
18
|
metadata?: Record<string, any>;
|
|
18
19
|
/** Network access policy */
|
|
19
20
|
networkPolicy?: NetworkPolicy;
|
|
21
|
+
/** Optional volume mounts for persistent storage */
|
|
22
|
+
volumes?: Volume[];
|
|
20
23
|
/** Provider-specific extensions */
|
|
21
24
|
extensions?: Record<string, unknown>;
|
|
22
25
|
/** Skip readiness checks after create/connect */
|
package/dist/index.js
CHANGED
|
@@ -1056,6 +1056,7 @@ class OpenSandboxAdapter extends BaseSandboxAdapter {
|
|
|
1056
1056
|
resource,
|
|
1057
1057
|
env: cfg.env,
|
|
1058
1058
|
metadata: cfg.metadata,
|
|
1059
|
+
volumes: cfg.volumes,
|
|
1059
1060
|
skipHealthCheck: cfg.skipHealthCheck,
|
|
1060
1061
|
readyTimeoutSeconds: cfg.readyTimeoutSeconds,
|
|
1061
1062
|
healthCheckPollingInterval: cfg.healthCheckPollingInterval
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fastgpt-sdk/sandbox-adapter",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"description": "Unified abstraction layer for cloud sandbox providers with adapter pattern and feature polyfilling",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"vitest": "^3.0.9"
|
|
68
68
|
},
|
|
69
69
|
"lint-staged": {
|
|
70
|
-
"
|
|
70
|
+
"!(.claude)/**/*.{js,cjs,mjs,ts,tsx,json,md,mdx,yaml,yml}": [
|
|
71
71
|
"prettier --check"
|
|
72
72
|
],
|
|
73
|
-
"
|
|
73
|
+
"!(.claude)/**/*.{js,cjs,mjs,ts,tsx}": [
|
|
74
74
|
"eslint --max-warnings=0"
|
|
75
75
|
]
|
|
76
76
|
}
|