@kokorolx/ai-sandbox-wrapper 3.3.0-beta.1 → 3.3.0-beta.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/bin/ai-run +13 -1
- package/package.json +1 -1
package/bin/ai-run
CHANGED
|
@@ -791,7 +791,19 @@ fi
|
|
|
791
791
|
HOST_CHROME_CDP=false
|
|
792
792
|
HOST_CHROME_CDP_PORT=19222
|
|
793
793
|
PLAYWRIGHT_MCP_NAME=""
|
|
794
|
-
SCRIPT_DIR
|
|
794
|
+
# Portable symlink-resolving SCRIPT_DIR (macOS readlink has no -f).
|
|
795
|
+
# Needed because ai-run is typically invoked via the ~/bin/ai-run symlink.
|
|
796
|
+
_pmcp_resolve_script_dir() {
|
|
797
|
+
local src="${BASH_SOURCE[0]}" dir
|
|
798
|
+
while [[ -L "$src" ]]; do
|
|
799
|
+
dir="$(cd -P "$(dirname "$src")" && pwd)"
|
|
800
|
+
src="$(readlink "$src")"
|
|
801
|
+
[[ "$src" != /* ]] && src="$dir/$src"
|
|
802
|
+
done
|
|
803
|
+
cd -P "$(dirname "$src")/.." && pwd
|
|
804
|
+
}
|
|
805
|
+
SCRIPT_DIR="$(_pmcp_resolve_script_dir)"
|
|
806
|
+
unset -f _pmcp_resolve_script_dir
|
|
795
807
|
# shellcheck source=lib/playwright-mcp-config.sh
|
|
796
808
|
[[ -f "$SCRIPT_DIR/lib/playwright-mcp-config.sh" ]] && source "$SCRIPT_DIR/lib/playwright-mcp-config.sh"
|
|
797
809
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kokorolx/ai-sandbox-wrapper",
|
|
3
|
-
"version": "3.3.0-beta.
|
|
3
|
+
"version": "3.3.0-beta.2",
|
|
4
4
|
"description": "Docker-based security sandbox for AI coding agents. Isolate Claude, Gemini, Aider, and other AI tools from your host system.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|