@oracle-agent/oracle 0.22.1 → 0.22.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.
@@ -0,0 +1,13 @@
1
+ #!/bin/sh
2
+ set -eu
3
+
4
+ mkdir -p "$BH_RUNTIME_DIR" "$BH_TMP_DIR" "$BH_AGENT_WORKSPACE"
5
+ rm -f "$BH_RUNTIME_DIR/bu.sock" "$BH_RUNTIME_DIR/bu.pid" "$BH_RUNTIME_DIR/bu.port"
6
+ socat TCP-LISTEN:9222,bind=127.0.0.1,reuseaddr,fork UNIX-CONNECT:/workspace/runtime/cdp.sock >/dev/null 2>&1 &
7
+ BRIDGE_PID=$!
8
+ cleanup() {
9
+ kill "$BRIDGE_PID" 2>/dev/null || true
10
+ rm -f "$BH_RUNTIME_DIR/bu.sock" "$BH_RUNTIME_DIR/bu.pid" "$BH_RUNTIME_DIR/bu.port"
11
+ }
12
+ trap cleanup EXIT INT TERM
13
+ "$ORACLE_BROWSER_USE_PYTHON" /opt/browser-use/bin/browser-use "$@"