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"