Files
life-echo/api/internal-eval.sh
Kevin 99543d04c6 feat(eval): internal-eval stack, judge fixes, and eval web overhaul
- Merge internal-eval into development.sh (single Celery/infra); internal-eval.sh
  wraps with LIFE_ECHO_WITH_INTERNAL_EVAL; EVAL_ATTACH_ONLY for attaching 8001
  when :8000 is already up; document in api/docs/internal-eval.md.
- Evaluation: transcript_for_judge, judge error surfacing, rubric/schema tweaks,
  execution_service and router updates; tests for judge and composite eval.
- Memory: ingest nested transaction for embedding/enrichment rollback safety.
- Conversation WS: logger.exception for pipeline errors (avoid loguru KeyError).
- app-eval-web: Playground saved replays, dialogue turns helper, hash user_id
  for Memoir; Memoir chapter baseline↔DB row compare with title heuristics;
  Stories page (#memoir-stories); Markdown + copy buttons; toolbar/panel UI;
  react-markdown; development proxy and fixture updates.
2026-04-07 17:18:47 +08:00

28 lines
1.1 KiB
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
# 在 development.sh 全栈之上附加 internal_main默认 :8001与 app-eval-web。
# 只需一条命令,无需再并行跑两份脚本;共用同一份 Postgres/Redis/Celery本脚本只起一个 Worker
#
# 用法cd api && ./internal-eval.sh
#
# 若主站已在其他终端由 ./development.sh 占用 :8000仅多开评测 HTTP + 前端(不再起第二份 Celery
# SKIP_INFRA=1 SKIP_INSTALL=1 EVAL_ATTACH_ONLY=1 ./internal-eval.sh
#
# 兼容旧环境变量SKIP_CELERY=1 等价于 EVAL_ATTACH_ONLY=1仍要求 :8000 已有监听)。
#
# 其他可选变量与 development.sh 一致,例如:
# SKIP_INFRA=1 SKIP_INSTALL=1 START_EVAL_WEB=0 OPEN_EVAL_WEB=0
# INTERNAL_EVAL_PORT EVAL_WEB_PORT INTERNAL_EVAL_API_KEY
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
export LIFE_ECHO_WITH_INTERNAL_EVAL=1
if [[ "${SKIP_CELERY:-}" == "1" ]]; then
export EVAL_ATTACH_ONLY=1
echo -e "\033[1;33m⚠ SKIP_CELERY=1 已映射为 EVAL_ATTACH_ONLY=1请确保 :8000 主站与 Celery 已由其他进程提供\033[0m" >&2
fi
exec "${ROOT_DIR}/development.sh" "$@"