mission-control/scripts
nyk 78b472a63a
feat: direct Claude API task dispatch (gateway-free) (#473)
* feat: direct Claude API task dispatch (gateway-free)

Add a built-in task executor that calls the Anthropic Messages API
directly when no OpenClaw gateway is available. This makes the full
task lifecycle work out of the box — tasks are actually executed by
Claude, not just tracked as metadata.

How it works:
- Scheduler checks: is a gateway registered? If yes, use gateway
  dispatch (existing path). If no, check for ANTHROPIC_API_KEY.
- When dispatching via direct API: builds prompt from task + agent
  SOUL, selects model by complexity (Opus/Sonnet/Haiku), calls
  Claude Messages API, stores response as resolution.
- Aegis reviews also work via direct API — same fallback logic.
- Token usage is recorded in the token_usage table.
- After dispatch, task moves to 'review' for Aegis quality check.

Setup: add ANTHROPIC_API_KEY=sk-ant-... to .env.local
No gateway, no OpenClaw, no extra dependencies needed.

* fix(tui): add missing ansi.blue color function
2026-03-22 17:50:16 +07:00
..
e2e-openclaw feat(refactor): ready for manual QA after main sync (#274) 2026-03-11 19:09:24 +07:00
agent-heartbeat.sh fix: scrub deployment-specific data from public repo 2026-03-01 15:37:55 +07:00
api-contract-parity.ignore fix(openapi): complete parity burn-down — 0 ignored entries remaining 2026-03-21 21:58:29 +07:00
check-api-contract-parity.mjs chore(api): tranche C parity burn-down and CLI integration scaffolding 2026-03-20 23:53:02 +07:00
check-node-version.mjs fix(runtime): allow all Node versions >= 22 2026-03-13 12:50:15 +07:00
deploy-standalone.sh feat(refactor): ready for manual QA after main sync (#274) 2026-03-11 19:09:24 +07:00
generate-env.sh feat(refactor): ready for manual QA after main sync (#274) 2026-03-11 19:09:24 +07:00
mc-cli.cjs chore: chmod +x CLI and MCP server scripts 2026-03-21 20:10:18 +07:00
mc-mcp-server.cjs feat(mcp): add Mission Control MCP server for agent-native tool access 2026-03-21 19:42:58 +07:00
mc-tui.cjs feat: direct Claude API task dispatch (gateway-free) (#473) 2026-03-22 17:50:16 +07:00
notification-daemon.sh fix: scrub deployment-specific data from public repo 2026-03-01 15:37:55 +07:00
security-audit.sh feat(refactor): ready for manual QA after main sync (#274) 2026-03-11 19:09:24 +07:00
smoke-staging.mjs feat(refactor): ready for manual QA after main sync (#274) 2026-03-11 19:09:24 +07:00
start-standalone.sh fix: CI typecheck error + standalone bind address 2026-03-21 22:29:44 +07:00
station-doctor.sh feat(refactor): ready for manual QA after main sync (#274) 2026-03-11 19:09:24 +07:00