@capybara-hq/plugin-sandbox-docker 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-docker",
|
|
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 Docker containers (runc or gVisor runsc) behind a Docker socket proxy, with an egress allowlist proxy",
|
|
7
7
|
"displayName": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"entry": "./dist/index.mjs",
|
|
14
14
|
"manifest": {
|
|
15
15
|
"name": "sandbox-docker",
|
|
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
|
@@ -220,7 +220,7 @@ function sandboxResourceNames(name) {
|
|
|
220
220
|
};
|
|
221
221
|
}
|
|
222
222
|
var IN_SANDBOX_GRACE_SECONDS = 5;
|
|
223
|
-
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';
|
|
223
|
+
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';
|
|
224
224
|
function execArgv(ctl, command, timeoutMs) {
|
|
225
225
|
const seconds = Math.ceil(timeoutMs / 1e3) + IN_SANDBOX_GRACE_SECONDS;
|
|
226
226
|
return [
|
|
@@ -933,7 +933,7 @@ var DeploymentConfig = z.object({
|
|
|
933
933
|
}).strict();
|
|
934
934
|
var index_default = defineExtension({
|
|
935
935
|
name: "sandbox-docker",
|
|
936
|
-
version: "0.1.0-rc.
|
|
936
|
+
version: "0.1.0-rc.2",
|
|
937
937
|
sdk: "^0.1.0-rc.0",
|
|
938
938
|
provides: [SANDBOX_EXTENSION_POINT],
|
|
939
939
|
// 只用部署配置与 Docker endpoint,不用任何需要声明的平台能力
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capybara-hq/plugin-sandbox-docker",
|
|
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 Docker containers (runc or gVisor runsc) behind a Docker socket proxy, with an egress allowlist proxy",
|