Files
FastGPT/sdk/sandbox/package.json
Jon cfded3af41 feat(sandbox): introduce unified sandbox adapter architecture (#6362)
Introduces a new, extensible sandbox adapter architecture to abstract
various sandbox providers behind a unified ISandbox interface. This
design utilizes an adapter pattern with a BaseSandboxAdapter, enabling
easy integration of providers like OpenSandboxAdapter and
MinimalProviderAdapter. It ensures consistent functionality across
environments through capability-driven polyfills for missing
features. This provides a scalable and maintainable foundation for
different execution environments.
2026-02-02 21:41:05 +08:00

43 lines
973 B
JSON

{
"name": "@fastgpt/sandbox",
"version": "0.1.0",
"description": "Unified abstraction layer for cloud sandbox providers with adapter pattern and feature polyfilling",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"scripts": {
"build": "tsc",
"dev": "tsc --watch",
"test": "vitest run --config ./vitest.config.mts",
"test:watch": "vitest watch",
"test:coverage": "vitest run --coverage"
},
"keywords": [
"sandbox",
"cloud",
"adapter",
"abstraction"
],
"author": "",
"license": "MIT",
"dependencies": {
"@alibaba-group/opensandbox": "^0.1.3"
},
"devDependencies": {
"vitest": "^3.0.9",
"@vitest/coverage-v8": "^3.0.9",
"typescript": "^5.1.3",
"husky": "^9.1.7",
"lint-staged": "^16.2.7"
},
"peerDependencies": {
"typescript": "^5.0.0"
}
}