diff --git a/specs/04_tasks.md b/specs/04_tasks.md index afd3331..6d4eb29 100644 --- a/specs/04_tasks.md +++ b/specs/04_tasks.md @@ -117,6 +117,34 @@ Format: - Evidence: message `[budget] message length ... exceeds ...`. - Status: `2026-02-21` done (`ZEROCLAW_WEBHOOK_MAX_CHARS=5`, exit 11). +## Integrations Open WebUI + n8n + +- [x] T-401 - Ajouter API alerts + autotriage backend + - AC: endpoints `/api/alerts`, `/api/alerts/ack`, `/api/pr/autotriage` disponibles. + - Evidence: `tools/ai/zeroclaw_orchestrator_server.py`. + +- [x] T-402 - Etendre WebUI orchestrateur + - AC: panneau Alerts + Integrations status + action `PR autotriage now`. + - Evidence: `tools/ai/zeroclaw_stack_up.sh`. + +- [x] T-403 - Refactor Pipe Open WebUI en mapping mixte + - AC: pipe expose `zc.router` + modeles dedies et parsing `/run`/`/pr`. + - Evidence: `tools/ai/integrations/openwebui/zeroclaw_orchestrator_pipe.py`. + +- [x] T-404 - Ajouter workflow n8n PR autotriage + - AC: workflow avec Webhook + Cron fallback + alert/question outputs. + - Evidence: `tools/ai/integrations/n8n/zeroclaw_pr_autotriage_workflow.json`. + +- [x] T-405 - Ajouter provisioning local Docker integrations + - AC: compose + scripts `up/down/status` + import n8n + assist Open WebUI. + - Evidence: + - `tools/ai/integrations/docker/docker-compose.openwebui-n8n.yml` + - `tools/ai/zeroclaw_integrations_up.sh` + - `tools/ai/zeroclaw_integrations_down.sh` + - `tools/ai/zeroclaw_integrations_status.sh` + - `tools/ai/zeroclaw_integrations_import_n8n.sh` + - `tools/ai/zeroclaw_integrations_openwebui_assist.sh` + ## Definition of done - [x] Au moins une boucle complete RTC + Zacus executee en local. diff --git a/specs/zeroclaw_dual_hw_todo.md b/specs/zeroclaw_dual_hw_todo.md index 750f684..d65e220 100644 --- a/specs/zeroclaw_dual_hw_todo.md +++ b/specs/zeroclaw_dual_hw_todo.md @@ -57,3 +57,14 @@ Last updated: 2026-02-21 - [x] E-002 - One successful complete loop Zacus in local hardware. - [x] E-003 - Dashboard live usable for continuous supervision. - [x] E-004 - Prometheus target scrape confirmed on gateway metrics. + +## Integrations (Open WebUI + n8n) + +- [x] I-201 - Add mixed Open WebUI Pipe mapping (`zc.router` + dedicated models). +- [x] I-202 - Add n8n PR autotriage workflow (webhook + cron fallback). +- [x] I-203 - Add local docker compose stack for Open WebUI (`3001`) and n8n (`5678`). +- [x] I-204 - Add runtime scripts (`integrations_up/down/status`, `import_n8n`, `openwebui_assist`). +- [ ] I-205 - Validate end-to-end import + activation on local Docker runtime. + - command: `tools/ai/zeroclaw_integrations_up.sh` + - command: `tools/ai/zeroclaw_integrations_status.sh` + - command: `tools/ai/zeroclaw_integrations_import_n8n.sh` diff --git a/tools/ai/zeroclaw_stack_up.sh b/tools/ai/zeroclaw_stack_up.sh index abbd11b..e6b75a2 100755 --- a/tools/ai/zeroclaw_stack_up.sh +++ b/tools/ai/zeroclaw_stack_up.sh @@ -57,12 +57,22 @@ PROM_MANAGED_FILE="$ART_DIR/prometheus.managed" WATCHER_SCRIPT="$ROOT_DIR/tools/ai/zeroclaw_watch_1min.sh" ORCHESTRATOR_SERVER="$ROOT_DIR/tools/ai/zeroclaw_orchestrator_server.py" RT_LOG="$ART_DIR/realtime_1min.log" +INTEGRATIONS_DIR="$ROOT_DIR/tools/ai/integrations" mkdir -p "$ART_DIR" touch "$CONVO_FILE" touch "$GW_LOG" touch "$RT_LOG" +sync_integrations() { + if [[ ! -d "$INTEGRATIONS_DIR" ]]; then + return 0 + fi + rm -rf "$ART_DIR/integrations" + mkdir -p "$ART_DIR/integrations" + cp -R "$INTEGRATIONS_DIR"/. "$ART_DIR/integrations/" +} + if [[ -f "$HOME/.zeroclaw/config.toml" ]]; then chmod 600 "$HOME/.zeroclaw/config.toml" >/dev/null 2>&1 || true fi @@ -713,6 +723,8 @@ case "$PROM_MODE" in ;; esac +sync_integrations + cat >"$INDEX_FILE" < @@ -878,6 +890,56 @@ cat >"$INDEX_FILE" <"$INDEX_FILE" <"$INDEX_FILE" <1s | Display cap: 500 lines/panel | Prometheus: $PROM_STATUS | - API: /api/status /api/run + API: /api/status /api/run /api/pr/scan /api/pr/autotriage /api/alerts
+
+
+

Agent Workbench

+
+

Agents specializes: orchestrator, WebUI/UX, firmware RTC, firmware Zacus, QA/PR.

+ + +
+ + + + +
+
(agent status)
+
+
+
+

PR Cockpit (gh)

+
+
+ + +
+
+ + +
+ +
+ + + + + + + + + +
+
(PR summary)
+
(PR action result)
+
+
+
+
+
+

Alerts

+
+
+ + +
+
(alerts summary)
+
(no active alerts)
+
+
+
+

Integrations Status

+
+
(integrations status)
+
+ + +
+
+
+
+
+
+

Workflow & Agents

+
+
+ + + + +
+
+
(loading agents)
+
+
+
(loading workflows)
+
+
+
(loading recap)
+
+
+
+
+

Quick Start

+
+

Point d'entrée recommandé.

+
1) tools/ai/zeroclaw_stack_up.sh
+2) tools/ai/zeroclaw_integrations_up.sh
+3) Ouvrir http://127.0.0.1:8788/ (monitoring)
+4) Ouvrir http://127.0.0.1:3001/ (Open WebUI)
+5) Ouvrir http://127.0.0.1:5678/ (n8n)
+
+
+

Questions / Decisions

@@ -1069,6 +1247,17 @@ cat >"$INDEX_FILE" <
+