- 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
20 lines
605 B
Bash
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
|