@kokorolx/ai-sandbox-wrapper 3.0.3 → 3.0.4
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 +11 -3
- package/lib/install-base.sh +1 -1
- package/package.json +1 -1
package/bin/ai-run
CHANGED
|
@@ -2000,7 +2000,7 @@ configure_opencode_mcp() {
|
|
|
2000
2000
|
for tool in "${all_tools[@]}"; do
|
|
2001
2001
|
case "$tool" in
|
|
2002
2002
|
chrome-devtools)
|
|
2003
|
-
if add_mcp_config "chrome-devtools"
|
|
2003
|
+
if add_mcp_config "chrome-devtools" "[\"chrome-devtools-mcp\", \"--headless\", \"--isolated\", \"--executablePath\", \"$CHROMIUM_PATH\", \"--chrome-arg=--no-sandbox\"]"; then
|
|
2004
2004
|
echo " ✓ Configured Chrome DevTools MCP"
|
|
2005
2005
|
configured_any=true
|
|
2006
2006
|
fi
|
|
@@ -2037,9 +2037,8 @@ configure_opencode_mcp() {
|
|
|
2037
2037
|
if [[ "$tool_choice" =~ ^[Yy]$ ]]; then
|
|
2038
2038
|
case "$tool" in
|
|
2039
2039
|
chrome-devtools)
|
|
2040
|
-
if add_mcp_config "chrome-devtools"
|
|
2040
|
+
if add_mcp_config "chrome-devtools" "[\"chrome-devtools-mcp\", \"--headless\", \"--isolated\", \"--executablePath\", \"$CHROMIUM_PATH\", \"--chrome-arg=--no-sandbox\"]"; then
|
|
2041
2041
|
echo " ✓ Configured"
|
|
2042
|
-
configured_any=true
|
|
2043
2042
|
fi
|
|
2044
2043
|
;;
|
|
2045
2044
|
playwright)
|
|
@@ -2472,6 +2471,15 @@ if [[ ! -f "$CACHE_DIR/playwright-browsers/.seeded" ]]; then
|
|
|
2472
2471
|
fi
|
|
2473
2472
|
fi
|
|
2474
2473
|
|
|
2474
|
+
# Resolve the latest chromium binary path from shared cache
|
|
2475
|
+
# The /opt/chromium symlink inside the image may point to a stale version
|
|
2476
|
+
CHROMIUM_PATH="/opt/chromium"
|
|
2477
|
+
LATEST_CHROMIUM=$(ls -d "$CACHE_DIR/playwright-browsers"/chromium-*/chrome-linux/chrome 2>/dev/null | sort -V | tail -1)
|
|
2478
|
+
if [[ -n "$LATEST_CHROMIUM" ]]; then
|
|
2479
|
+
# Convert host cache path to container path
|
|
2480
|
+
CHROMIUM_PATH="/opt/playwright-browsers/$(echo "$LATEST_CHROMIUM" | grep -oP 'chromium-[^/]+')/chrome-linux/chrome"
|
|
2481
|
+
fi
|
|
2482
|
+
|
|
2475
2483
|
# Detect display configuration (clipboard integration)
|
|
2476
2484
|
DISPLAY_FLAGS=$(detect_display_config)
|
|
2477
2485
|
|
package/lib/install-base.sh
CHANGED
|
@@ -175,7 +175,7 @@ RUN mkdir -p /opt/playwright-browsers && \
|
|
|
175
175
|
npx playwright-core install --no-shell chromium && \
|
|
176
176
|
npx playwright-core install-deps chromium && \
|
|
177
177
|
chmod -R 777 /opt/playwright-browsers && \
|
|
178
|
-
ln -sf $(ls -d /opt/playwright-browsers/chromium-*/chrome-linux/chrome |
|
|
178
|
+
ln -sf $(ls -d /opt/playwright-browsers/chromium-*/chrome-linux/chrome | sort -V | tail -1) /opt/chromium
|
|
179
179
|
'
|
|
180
180
|
fi
|
|
181
181
|
|
package/package.json
CHANGED