Files
ss-tools/docker/agent.entrypoint.sh
busya b95df37cd5 refactor(agent): extract agent+shared into standalone packages with full GRACE semantic markup
- Move agent code from backend/src/agent/ to agent/src/ss_tools/agent/
- Extract shared stdlib-only utilities to shared/src/ss_tools/shared/
- Add #region/#endregion contracts to all ~140 functions (INV_1 compliance)
- Update docker files, entrypoint, build scripts for new package layout
- Backend now imports ss_tools.shared._llm_health (no gradio/langchain deps)
- Add specs for 036-039 feature plans
2026-07-07 15:18:24 +03:00

20 lines
605 B
Bash

#!/usr/bin/env bash
# #region docker.agent.entrypoint [C:3] [TYPE Module] [SEMANTICS docker,agent,entrypoint,certs]
# @BRIEF Agent container entrypoint — install corporate CA certs, then start agent.
# @LAYER Infrastructure
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
CERTS_PATH="${CERTS_PATH:-/opt/certs}"
if [ -f "$SCRIPT_DIR/certs.sh" ]; then
source "$SCRIPT_DIR/certs.sh"
download_llm_ca_certs
install_all_certs
else
echo "[agent-entry] certs.sh not found — skipping corporate CA installation"
fi
exec python -m ss_tools.agent.run
# #endregion docker.agent.entrypoint