Files
cline/apps/examples/menubar
0905884ab5 Refresh Cline logo assets (shared, desktop, menubar) (#13965)
* feat(branding): add canonical Cline logo assets

* feat(vscode): refresh extension logo surfaces

* feat(web): update Hub and example branding

* docs: update Mintlify branding assets

* build(brand): lock asset generator tooling

* chore(branding): limit logo refresh to assets and required wiring

* fix(vscode): restore accessible logo names

* fix(branding): retain favicon contrast in dark browser tabs

* [2/3] Refresh desktop logo assets (#13966)

* chore(desktop): refresh native logo assets

* chore(menubar): refresh native logo assets (#13967)

part of logo migration

* docs: use latest adjusted navigation logo

* fix(hub): keep favicon visible in dark browser tabs

Point the Hub favicon at the dedicated favicon.svg and give it the same
prefers-color-scheme fallback as the example app. cline-logo-filled.svg
stays untouched since the sidebar renders it with dark:invert.

Co-authored-by: Saoud Rizwan <saoudrizwan@users.noreply.github.com>

---------

Co-authored-by: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com>
Co-authored-by: Saoud Rizwan <saoudrizwan@users.noreply.github.com>
2026-09-16 18:39:55 -07:00
..
2026-06-03 01:49:57 +02:00
2026-06-03 01:49:57 +02:00
2026-06-03 01:49:57 +02:00
2026-06-03 01:49:57 +02:00

Preview

Cline Hub Monitor preview

Architecture Overview

Any Client (CLI, VS Code, agents)
    │
    │  ws://  ui.notify / ui.show_window commands
    ▼
Hub WebSocket Server (@cline/core/hub/server.ts)
    │
    │  broadcasts ui.notify / ui.show_window events to ALL subscribers
    ▼
Menu Bar Sidecar (apps/examples/menubar/sidecar/index.ts)  ← TypeScript/Bun process
    │
    │  JSON lines on stdout: hub_state / notification / ready
    ▼
Rust Tauri App (apps/examples/menubar/src-tauri/src/main.rs)
    │
    ├── Hub Monitor Window (ui/index.html)
    │     ● Live hub status, uptime, clients, sessions
    │     ● Running session tracker and inspector
    │     ● Recent events and background-session launcher
    │
    │
    ├── System Tray Icon with dynamic menu
    │     ● Hub Connected — 3 clients, 2 sessions
    │     ─────────────────
    │     5 notifications
    │     ─────────────────
    │     Quit Cline Hub
    │
    └── Logs notifications to stderr (with severity)

Dev Commands

From apps/examples/menubar/:

  • bun run dev:ui - run only the Hub Monitor UI at http://127.0.0.1:3466/ with preview data
  • bun run dev - run the full Tauri app with the real hub sidecar
  • bun run typecheck - TypeScript check

When the menubar starts the shared hub, it also supplies the CLI command used to restore persisted connectors. Development builds use apps/cli/src/index.ts when it is present; packaged builds use cline from PATH, or the executable specified by CLINE_CLI_PATH.