mirror of
https://github.com/labring/FastGPT.git
synced 2026-02-27 01:02:22 +08:00
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.
43 lines
973 B
JSON
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"
|
|
}
|
|
}
|