@enclave-run/sdk 0.0.0-dev.4 → 0.0.0
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/README.md +51 -18
- package/dist/index.d.mts +372 -17
- package/dist/index.d.ts +372 -17
- package/dist/index.js +592 -114
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +590 -114
- package/dist/index.mjs.map +1 -1
- package/package.json +25 -24
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enclave-run/sdk",
|
|
3
|
-
"version": "0.0.0
|
|
3
|
+
"version": "0.0.0",
|
|
4
4
|
"description": "Enclave SDK — cloud sandboxes for AI agents",
|
|
5
5
|
"homepage": "https://enclave.run",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,32 +22,12 @@
|
|
|
22
22
|
"main": "dist/index.js",
|
|
23
23
|
"module": "dist/index.mjs",
|
|
24
24
|
"types": "dist/index.d.ts",
|
|
25
|
-
"scripts": {
|
|
26
|
-
"prepublishOnly": "pnpm build",
|
|
27
|
-
"build": "tsc --noEmit && tsup",
|
|
28
|
-
"dev": "tsup --watch",
|
|
29
|
-
"example": "tsx example.mts",
|
|
30
|
-
"test": "vitest run",
|
|
31
|
-
"test:package": "node tests/package-smoke.mjs && node tests/package-smoke.cjs",
|
|
32
|
-
"generate": "npm-run-all generate:* && pnpm run format",
|
|
33
|
-
"generate:api": "uv run --with pyyaml python ./../../spec/remove_extra_tags.py sandboxes templates tags auth secrets && openapi-typescript ../../spec/openapi_generated.yml -x api_key --array-length --alphabetize --default-non-nullable false --output src/api/schema.gen.ts",
|
|
34
|
-
"generate:envd": "cd ../../spec/envd && buf generate --template buf-js.gen.yaml\n",
|
|
35
|
-
"generate:envd-api": "openapi-typescript ../../spec/envd/envd.yaml -x api_key --array-length --alphabetize --output src/envd/schema.gen.ts",
|
|
36
|
-
"generate:mcp": "json2ts -i ./../../spec/mcp-server.json -o src/sandbox/mcp.d.ts --unreachableDefinitions --style.singleQuote --no-style.semi",
|
|
37
|
-
"check-deps": "knip",
|
|
38
|
-
"pretest": "npx playwright install --with-deps chromium",
|
|
39
|
-
"test:bun": "bun test tests/runtimes/bun --env-file=.env",
|
|
40
|
-
"test:deno": "deno test tests/runtimes/deno/ --allow-net --allow-read --allow-env --unstable-sloppy-imports --trace-leaks",
|
|
41
|
-
"test:integration": "ENCLAVE_INTEGRATION_TEST=1 vitest run tests/integration/**",
|
|
42
|
-
"typecheck": "tsc --noEmit",
|
|
43
|
-
"lint": "eslint src/ tests/",
|
|
44
|
-
"format": "prettier --write src/ tests/ example.mts"
|
|
45
|
-
},
|
|
46
25
|
"devDependencies": {
|
|
47
26
|
"@testing-library/react": "^16.2.0",
|
|
48
27
|
"@types/node": "^20.19.19",
|
|
49
28
|
"@types/platform": "^1.3.6",
|
|
50
29
|
"@types/react": "^18.3.11",
|
|
30
|
+
"@types/react-dom": "^18.3.0",
|
|
51
31
|
"@typescript-eslint/eslint-plugin": "^7.11.0",
|
|
52
32
|
"@typescript-eslint/parser": "^7.11.0",
|
|
53
33
|
"@vitejs/plugin-react": "^4.3.4",
|
|
@@ -61,6 +41,7 @@
|
|
|
61
41
|
"openapi-typescript": "^7.9.1",
|
|
62
42
|
"playwright": "^1.55.1",
|
|
63
43
|
"react": "^18.3.1",
|
|
44
|
+
"react-dom": "^18.3.1",
|
|
64
45
|
"tsup": "^8.4.0",
|
|
65
46
|
"typescript": "^5.4.5",
|
|
66
47
|
"vitest": "^3.2.4",
|
|
@@ -103,5 +84,25 @@
|
|
|
103
84
|
},
|
|
104
85
|
"browserslist": [
|
|
105
86
|
"defaults"
|
|
106
|
-
]
|
|
107
|
-
|
|
87
|
+
],
|
|
88
|
+
"scripts": {
|
|
89
|
+
"build": "tsc --noEmit && tsup",
|
|
90
|
+
"dev": "tsup --watch",
|
|
91
|
+
"example": "tsx example.mts",
|
|
92
|
+
"test": "vitest run",
|
|
93
|
+
"test:package": "node tests/package-smoke.mjs && node tests/package-smoke.cjs",
|
|
94
|
+
"generate": "npm-run-all generate:* && pnpm run format",
|
|
95
|
+
"generate:api": "uv run --with pyyaml python ./../../spec/remove_extra_tags.py sandboxes templates tags auth secrets && openapi-typescript ../../spec/openapi_generated.yml -x api_key --array-length --alphabetize --default-non-nullable false --output src/api/schema.gen.ts",
|
|
96
|
+
"generate:envd": "cd ../../spec/envd && buf generate --template buf-js.gen.yaml\n",
|
|
97
|
+
"generate:envd-api": "openapi-typescript ../../spec/envd/envd.yaml -x api_key --array-length --alphabetize --output src/envd/schema.gen.ts",
|
|
98
|
+
"generate:mcp": "json2ts -i ./../../spec/mcp-server.json -o src/sandbox/mcp.d.ts --unreachableDefinitions --style.singleQuote --no-style.semi",
|
|
99
|
+
"check-deps": "knip",
|
|
100
|
+
"pretest": "npx playwright install --with-deps chromium",
|
|
101
|
+
"test:bun": "bun test tests/runtimes/bun --env-file=.env",
|
|
102
|
+
"test:deno": "deno test tests/runtimes/deno/ --allow-net --allow-read --allow-env --unstable-sloppy-imports --trace-leaks",
|
|
103
|
+
"test:integration": "ENCLAVE_INTEGRATION_TEST=1 vitest run tests/integration/**",
|
|
104
|
+
"typecheck": "tsc --noEmit",
|
|
105
|
+
"lint": "eslint src/ tests/",
|
|
106
|
+
"format": "prettier --write src/ tests/ example.mts"
|
|
107
|
+
}
|
|
108
|
+
}
|