feat: add web capabilities dashboard

Merged
MD
6mo ago
+1564-1

Summary

A comprehensive web-based ECC Capabilities Dashboard that displays all agents, skills, commands, rules, MCP configs, and hooks in a modern, searchable UI.

Features

  • 63 Agent Cards — with model badges, tools, descriptions, category filters
  • 249 Skills — searchable grid with category filters
  • 79 Commands — searchable list with one-click copy to clipboard
  • 115 Rule Files — organized by language
  • MCP Configs — server details with commands and env vars
  • 25+ Hooks — full table with event, matcher, description
  • Search — real-time filtering with auto-suggestions
  • Drill-down pages — click any card for full details
  • 10 Languages — EN, PT, ZH, JA, KO, TR, RU, VI, TH, DE
  • Recently viewed — tracked via localStorage
  • Dark/light theme — persisted preference

Usage

npm run dashboard:web
# or
node scripts/dashboard-web.js

Then open http://localhost:3456

Files Changed

  • scripts/dashboard-web.js — new dashboard server (single file, zero deps)
  • package.json — added dashboard:web npm script

Summary by cubic

Adds a web-based ECC Capabilities Dashboard to browse agents, skills, commands, rules, MCP configs, and hooks with fast search and drill-down. Runs as a zero-dependency Node server via dashboard:web at http://localhost:3456, with a test suite covering loaders, API, and HTML rendering.

  • New Features

    • Single-file server: scripts/dashboard-web.js (no external deps). Reads repo data and serves JSON at /api/data; auto-opens browser.
    • Search with suggestions, filters, detail pages; one-click command copy; 10 locales; dark/light; recently viewed.
  • Bug Fixes

    • Escaped user-facing content to prevent XSS; masked MCP env vars in UI.
    • Port parsing with range validation and default fallback (3456); safer JSON/file parsing with graceful error handling.
    • Packaging: included scripts/dashboard-web.js in published files; package.json adds dashboard:web script.
    • Tests: added tests/scripts/dashboard-web.test.js and updated surface test to cover parsing, loaders, server routes, and HTML escaping.

Summary by CodeRabbit

  • New Features
    • Web-based dashboard to view agents, skills, commands, rules, configurations, and hooks.
    • Search with suggestions, filtering, keyboard navigation, theme switching, language selection, and copy-to-clipboard.
    • Detail pages, per-tab filtering, and “recently viewed” persistence.
    • Auto-opens in default browser and serves a JSON API for data access.
    • New CLI command to launch the dashboard.