feat: add main agent governance foundation

This commit is contained in:
kris
2026-03-29 16:13:50 +08:00
parent dff369aafd
commit cb17fb0760
7 changed files with 2574 additions and 7 deletions

View File

@@ -16,13 +16,19 @@ need_cmd node
cd "$ROOT"
echo "[1/5] compile collector-service"
echo "[1/6] compile collector-service"
python3 -m compileall collector-service/app >/dev/null
echo "[2/5] validate docker compose"
echo "[2/6] run backend contract tests"
python3 -m unittest \
tests.test_main_agent_governance \
tests.test_platform_contracts \
tests.test_production_baseline >/dev/null
echo "[3/6] validate docker compose"
docker compose config >/dev/null
echo "[3/5] validate n8n workflows"
echo "[4/6] validate n8n workflows"
python3 - <<'PY'
import json
import pathlib
@@ -33,13 +39,13 @@ for path in sorted(pathlib.Path("n8n/workflows").glob("*.json")):
print(f"workflow ok: {path.name}")
PY
echo "[4/5] validate web scripts"
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
node --check scripts/douyin-browser-capture/control_panel.mjs
echo "[5/5] validate homepage and workbench tests"
echo "[6/6] validate homepage and workbench tests"
node --test \
web/storyforge-web-v4/tests/dashboard-home.test.mjs \
web/storyforge-web-v4/tests/workbench-pages.test.mjs