mission-control/src/app/api
nyk d826435401
feat: add local mode auto-detection for no-gateway users (#83)
When no OpenClaw gateway is detected, Mission Control now automatically
switches to Local Mode — showing a clear info banner, greying out
gateway-dependent panels, and surfacing Claude Code session stats,
GitHub profile data, and subscription-aware cost display.

Changes:
- Add capabilities endpoint to detect gateway, Claude home, subscription
- Add dashboardMode/gatewayAvailable/subscription state to Zustand store
- Add dismissible LocalModeBanner component
- Grey out Agents/Spawn/Config nav items when no gateway
- Show blue "Local Mode" indicator instead of red "Disconnected"
- Dashboard shows local metric cards (sessions, projects, tokens, cost)
- Claude Code Stats panel with session/token/cost breakdown
- GitHub panel with repo stats, languages, star/fork counts
- Subscription detection from ~/.claude/.credentials.json
- Show "Included (Max plan)" instead of dollar cost for subscribers
- Fix token cost estimation (cache reads at 10%, not 100%)
- Sessions API falls back to local Claude session scanner
- Live feed injects session items in local mode
- Memory browser auto-creates data dir with fallback path
2026-03-03 13:41:55 +07:00
..
activities feat: audit hardening, webhook retry, and local Claude session tracking (#68) 2026-03-02 22:17:35 +07:00
agents feat: audit hardening, webhook retry, and local Claude session tracking (#68) 2026-03-02 22:17:35 +07:00
alerts feat: v1.2.0 — validation hardening, unit tests, quality improvements 2026-03-02 00:22:59 +07:00
audit feat: error boundaries, pino logger, a11y, HSTS, zod validation, export limits 2026-02-27 21:37:06 +07:00
auth feat: audit hardening, webhook retry, and local Claude session tracking (#68) 2026-03-02 22:17:35 +07:00
backup feat: audit hardening, webhook retry, and local Claude session tracking (#68) 2026-03-02 22:17:35 +07:00
chat feat: audit hardening, webhook retry, and local Claude session tracking (#68) 2026-03-02 22:17:35 +07:00
claude/sessions feat: audit hardening, webhook retry, and local Claude session tracking (#68) 2026-03-02 22:17:35 +07:00
cleanup feat: v1.2.0 — validation hardening, unit tests, quality improvements 2026-03-02 00:22:59 +07:00
connect feat: add direct CLI integration for gateway-free tool connections 2026-03-02 11:45:12 +07:00
cron fix: cherry-pick improvements from PR #57 (#71) 2026-03-02 23:54:20 +07:00
docs feat: add OpenAPI 3.1 documentation with Scalar UI 2026-03-02 11:03:16 +07:00
events fix: add auth checks on all GET endpoints, timing-safe comparisons, and XSS sanitization 2026-02-27 13:04:24 +07:00
export feat: error boundaries, pino logger, a11y, HSTS, zod validation, export limits 2026-02-27 21:37:06 +07:00
gateway-config feat: v1.2.0 — validation hardening, unit tests, quality improvements 2026-03-02 00:22:59 +07:00
gateways fix: strict mode, test stubs, pagination counts, N+1 queries, CSP hardening 2026-02-27 14:02:52 +07:00
github feat: add local mode auto-detection for no-gateway users (#83) 2026-03-03 13:41:55 +07:00
integrations feat: v1.2.0 — validation hardening, unit tests, quality improvements 2026-03-02 00:22:59 +07:00
logs feat: audit hardening, webhook retry, and local Claude session tracking (#68) 2026-03-02 22:17:35 +07:00
memory feat: add local mode auto-detection for no-gateway users (#83) 2026-03-03 13:41:55 +07:00
notifications feat: audit hardening, webhook retry, and local Claude session tracking (#68) 2026-03-02 22:17:35 +07:00
pipelines feat: audit hardening, webhook retry, and local Claude session tracking (#68) 2026-03-02 22:17:35 +07:00
quality-review feat: audit hardening, webhook retry, and local Claude session tracking (#68) 2026-03-02 22:17:35 +07:00
scheduler feat: initial open-source release 2026-02-23 02:00:44 +07:00
search feat: v1.2.0 — validation hardening, unit tests, quality improvements 2026-03-02 00:22:59 +07:00
sessions feat: add local mode auto-detection for no-gateway users (#83) 2026-03-03 13:41:55 +07:00
settings feat: v1.2.0 — validation hardening, unit tests, quality improvements 2026-03-02 00:22:59 +07:00
spawn feat: v1.2.0 — validation hardening, unit tests, quality improvements 2026-03-02 00:22:59 +07:00
standup feat: audit hardening, webhook retry, and local Claude session tracking (#68) 2026-03-02 22:17:35 +07:00
status feat: add local mode auto-detection for no-gateway users (#83) 2026-03-03 13:41:55 +07:00
super chore: CODE_OF_CONDUCT, issue templates, DELETE patterns, limit caps, CSRF origin check 2026-02-27 14:04:09 +07:00
tasks feat: audit hardening, webhook retry, and local Claude session tracking (#68) 2026-03-02 22:17:35 +07:00
tokens feat: audit hardening, webhook retry, and local Claude session tracking (#68) 2026-03-02 22:17:35 +07:00
webhooks feat: audit hardening, webhook retry, and local Claude session tracking (#68) 2026-03-02 22:17:35 +07:00
workflows feat: audit hardening, webhook retry, and local Claude session tracking (#68) 2026-03-02 22:17:35 +07:00