Files
s41r4j-cybot/scripts/toolbox-browser-entrypoint.sh
T
s41r4j 0f03d49514
CI / contracts (push) Canceled after 0s
Website / deploy (push) Canceled after 0s
CI / test (macos-latest) (push) Canceled after 0s
CI / test (ubuntu-24.04) (push) Canceled after 0s
CI / test (ubuntu-24.04-arm) (push) Canceled after 0s
CI / test (windows-latest) (push) Canceled after 0s
CI / Compact real-tool fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Compact real-tool fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
CI / Code analysis fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Code analysis fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
CI / Web engine fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Web engine fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
CI / Chromium operation fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Chromium operation fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
CI / operation-readiness (push) Canceled after 0s
CI / Supply chain fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Supply chain fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
Initial commit
2026-11-01 09:14:18 +05:30

16 lines
651 B
Bash

#!/bin/sh
set -eu
action="${1:-help}"
shift || true
case "$action" in
cybot) exec /opt/cybot/bin/cybot "$@" ;;
exec) exec "$@" ;;
shell) exec /bin/sh "$@" ;;
health)
for tool in cybot agent-browser chromium python3; do command -v "$tool" >/dev/null || { echo "Missing browser dependency: $tool" >&2; exit 1; }; done
echo 'Browser executables are present; real operation validation is separate.' ;;
versions) cybot --version; agent-browser --version; chromium --version ;;
help) echo 'CYBOT browser toolbox: cybot | exec | health | versions | shell' ;;
*) echo "Unsupported browser entrypoint action: $action" >&2; exit 2 ;;
esac