feat: add main agent governance foundation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user