@capybara-hq/plugin-sandbox-e2b 0.1.0-rc.1 → 0.1.0-rc.2
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/.capybara-plugin/plugin.json +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "sandbox-e2b",
|
|
4
|
-
"version": "0.1.0-rc.
|
|
4
|
+
"version": "0.1.0-rc.2",
|
|
5
5
|
"publisher": "Capybara",
|
|
6
6
|
"description": "Conversation sandboxes (sandbox@1) as E2B sandboxes (E2B cloud or self-hosted), with pause / resume and E2B egress controls",
|
|
7
7
|
"displayName": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"entry": "./dist/index.mjs",
|
|
14
14
|
"manifest": {
|
|
15
15
|
"name": "sandbox-e2b",
|
|
16
|
-
"version": "0.1.0-rc.
|
|
16
|
+
"version": "0.1.0-rc.2",
|
|
17
17
|
"sdk": "^0.1.0-rc.0",
|
|
18
18
|
"provides": [
|
|
19
19
|
"sandbox@1"
|
package/dist/index.mjs
CHANGED
|
@@ -228,7 +228,7 @@ var ENV_KEY_RE = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
|
228
228
|
var HOSTNAME_RE = /^[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$/;
|
|
229
229
|
var SANDBOX_ID_RE = /^[a-zA-Z0-9-]{1,128}$/;
|
|
230
230
|
var IN_SANDBOX_GRACE_SECONDS = 5;
|
|
231
|
-
var EXEC_WRAPPER = 'c=$1; echo $$ > "$c.pid" 2>/dev/null; if [ -e "$c.kill" ]; then exit 137; fi; timeout -s KILL "$3" /bin/bash -c "$2"; s=$?; rm -f "$c.pid"; exit $s';
|
|
231
|
+
var EXEC_WRAPPER = 'c=$1; echo $$ > "$c.pid" 2>/dev/null; if [ -e "$c.kill" ]; then exit 137; fi; timeout -s KILL "$3" /bin/bash -c "$2"; s=$?; if [ $s -eq 124 ] || [ $s -eq 137 ]; then for p in $(pgrep -s $$); do [ "$p" = $$ ] || kill -9 "$p" 2>/dev/null; done; fi; rm -f "$c.pid"; exit $s';
|
|
232
232
|
function execArgs(ctl, command, timeoutMs) {
|
|
233
233
|
const seconds = Math.ceil(timeoutMs / 1e3) + IN_SANDBOX_GRACE_SECONDS;
|
|
234
234
|
return ["-w", "/bin/sh", "-c", EXEC_WRAPPER, "capybara-exec", ctl, command, String(seconds)];
|
|
@@ -781,7 +781,7 @@ var DeploymentConfig = z.object({
|
|
|
781
781
|
}).strict();
|
|
782
782
|
var index_default = defineExtension({
|
|
783
783
|
name: "sandbox-e2b",
|
|
784
|
-
version: "0.1.0-rc.
|
|
784
|
+
version: "0.1.0-rc.2",
|
|
785
785
|
sdk: "^0.1.0-rc.0",
|
|
786
786
|
provides: [SANDBOX_EXTENSION_POINT],
|
|
787
787
|
// 只用部署配置与 E2B 的 API,不用任何需要声明的平台能力
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capybara-hq/plugin-sandbox-e2b",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "Conversation sandboxes (sandbox@1) as E2B sandboxes (E2B cloud or self-hosted), with pause / resume and E2B egress controls",
|