feat: tighten main agent execution traceability
Some checks failed
StoryForge CI / Baseline checks (push) Has been cancelled
StoryForge CI / Backend tests (push) Has been cancelled
StoryForge CI / Web tests (push) Has been cancelled

This commit is contained in:
kris
2026-04-04 06:23:17 +08:00
parent 895e3f3b13
commit 53b1854c21
7 changed files with 72 additions and 7 deletions

View File

@@ -40,9 +40,24 @@ for path in sorted(pathlib.Path("n8n/workflows").glob("*.json")):
PY
echo "[5/6] validate web scripts"
for file in web/storyforge-web-v4/assets/app.js web/storyforge-web-v4/assets/storyforge-*.js; do
node --check "$file"
done
validate_node_script() {
for file in "$@"; do
if [ ! -f "$file" ]; then
echo "missing required script file: $file" >&2
exit 1
fi
node --check "$file"
done
}
validate_node_script web/storyforge-web-v4/assets/app.js
set -- web/storyforge-web-v4/assets/storyforge-*.js
if [ "$1" = 'web/storyforge-web-v4/assets/storyforge-*.js' ]; then
echo "missing required script bundle: web/storyforge-web-v4/assets/storyforge-*.js" >&2
exit 1
fi
validate_node_script "$@"
node --check scripts/douyin-browser-capture/control_panel.mjs
echo "[6/6] validate homepage and workbench tests"

View File

@@ -41,12 +41,12 @@ token_file="$tmp_dir/token.txt"
echo "[1/6] check fnOS web"
curl_fetch "$WEB_URL/" >"$index_file"
rg -q "StoryForge" "$index_file"
rg -Fq "StoryForge" "$index_file"
echo "web ok"
echo "[2/6] check runtime config"
curl_fetch "$WEB_URL/assets/storyforge-runtime-config.js" >"$runtime_file"
rg -q "$BACKEND_URL" "$runtime_file"
rg -Fq "$BACKEND_URL" "$runtime_file"
echo "runtime config ok"
echo "[3/6] check collector healthz"
@@ -115,6 +115,10 @@ if not payload:
raise SystemExit("empty cutvideo bootstrap payload")
print("cutvideo bootstrap ok")
' "$bootstrap_file"
if ! rg -Fq "数字人网页业务台" "$compat_file" && ! rg -Fq "BUSINESS CONSOLE" "$compat_file"; then
echo "compat page does not look like the expected business console" >&2
exit 1
fi
echo "compat ok"
echo "fnOS lan smoke passed:"