#!/usr/bin/env bash set -euo pipefail if [[ "${MULTICA_ENABLED:-true}" != "true" ]]; then echo "multica runtime disabled by MULTICA_ENABLED" exec sleep infinity fi config_file="${HOME}/.multica/config.json" while ! jq -e '.server_url and .workspace_id' "${config_file}" >/dev/null 2>&1; do sleep 10 done exec multica daemon start \ --foreground \ --no-auto-update \ --max-concurrent-tasks "${MULTICA_DAEMON_MAX_CONCURRENT_TASKS:-2}" \ --runtime-name "${MULTICA_AGENT_RUNTIME_NAME:-AgentDock Ubuntu Runtime}"