zeroclaw/scripts
Samy dde8b82ea0 feat(gateway): add OpenClaw migration compat layer with /api/chat and tools-enabled /v1/chat/completions
Add a complete OpenClaw → ZeroClaw migration toolkit:

- POST /api/chat: ZeroClaw-native endpoint with full agent loop (tools, memory,
  context enrichment). Supports session_id scoping and context[] injection for
  conversation history. Same code path as Linq/WhatsApp/Nextcloud handlers.

- POST /v1/chat/completions: OpenAI-compatible shim that routes through
  run_gateway_chat_with_tools instead of the simple provider.chat_with_history
  path. Extracts last user message + up to 10 messages of conversation context
  from the messages[] array. Supports streaming (simulated SSE). Drop-in
  replacement for OpenClaw callers with zero code changes.

Both endpoints include full observability instrumentation (AgentStart, LlmRequest,
LlmResponse, RequestLatency, AgentEnd), auth (pairing + webhook secret), rate
limiting, auto-save to memory, and response sanitization.

Also adds:
- scripts/convert-openclaw-config.py: Converts openclaw.json → config.toml with
  provider mapping, channel detection, and migration notes
- docs/migration/openclaw-migration-guide.md: Full migration walkthrough with
  endpoint reference, config mapping, callsite examples, and deployment checklist

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 04:43:16 +00:00
..
ci chore: promote dev snapshot to main (resolve #1978/#1970) 2026-02-26 21:09:33 -05:00
release fix(ci): sync release publishing with GHCR and add runbook (#1087) 2026-02-20 07:10:09 -05:00
bootstrap.sh chore: promote dev snapshot to main (resolve #1978/#1970) 2026-02-26 21:09:33 -05:00
convert-openclaw-config.py feat(gateway): add OpenClaw migration compat layer with /api/chat and tools-enabled /v1/chat/completions 2026-02-27 04:43:16 +00:00
install-release.sh supersede: replay changes from #1413 2026-02-25 10:22:35 +08:00
install.sh feat(installer): add guided zeroclaw installer and distro hardening (#887) 2026-02-20 04:34:14 -05:00
qwen_context_test.sh [supersede #1545] feat(providers): implement Qwen OAuth quota tracking (#1746) 2026-02-25 03:09:38 -05:00
qwen_latency_benchmark.sh [supersede #1545] feat(providers): implement Qwen OAuth quota tracking (#1746) 2026-02-25 03:09:38 -05:00
qwen_model_probe.sh [supersede #1545] feat(providers): implement Qwen OAuth quota tracking (#1746) 2026-02-25 03:09:38 -05:00
README_QWEN.md [supersede #1545] feat(providers): implement Qwen OAuth quota tracking (#1746) 2026-02-25 03:09:38 -05:00
recompute_contributor_tiers.sh chore(labeler): normalize module labels and backfill contributor tiers (#462) 2026-02-17 08:25:50 -05:00
test_dockerignore.sh feat: add AIEOS identity support and harden cron scheduler security 2026-02-14 13:26:08 -05:00