Все плагины

dsh-bar

dsh-bar · Версия 0.4.1 · Обновлён 29 нояб. 2026 г.

В строке меню macOS появляется анимированный кит. Нажмите на него, чтобы увидеть текущий сеанс, шаги, модель и число токенов. Там же можно обрабатывать запросы на одобрение действий инструментов, отвечать на вопросы, останавливать задачи и переключать сеансы.

  • проверка каждой версии
  • Улучшения интерфейса
  • MIT
  • Загрузок: 0

Описание

Ниже — оригинальный текст автора.

dsh-bar (host plugin)

Host half of DSH Bar: exposes live DeepSeek Harness session state to the macOS menu bar app.

What it does

  • writes $DSH_HOME/dsh-bar/runtime.json (0700 directory, 0600 file) with the loopback origin, a 24-byte Bearer token, the Host pid and the schema version;
  • mounts /dsh-bar on the Host's existing web server (ctx.webServer.register({ kind: 'prefix' }));
  • folds session/event, agent/status and agent/error into a state document (idle / thinking / tool / approval / done / error);
  • holds approval/request and user-questions/request waterfalls so the menu bar can answer them; child sessions are skipped so background subagents never colour the icon;
  • serves a browser half that opens the exact session via ctx.uiWorkspace.openSession when the app asks to focus it;
  • never reads message bodies: only titles, tool names and usage counters.

Endpoints

Method + pathAuthPurpose
GET /dsh-bar/statusBearerfull state document
GET /dsh-bar/eventsBearerSSE stream: one status frame per fold change, 15 s ping
GET /dsh-bar/healthBearerliveness without session data
POST /dsh-bar/approveBearer`{id, outcome: "allowed-once" \
POST /dsh-bar/answerBearer{id, answers}
POST /dsh-bar/stopBearer{sessionId} — cancel the running turn
POST /dsh-bar/focusBearer{sessionId} — ask the page half to open a session
GET /dsh-bar/pending-focussame-origin / bridge trustfocus wish for the page half

The token is reused across Host restarts, so an already-running menu bar app keeps working. Native clients must re-read runtime.json before each request: Desktop starts the Host with --port 0, so the port changes on every restart. DSH_BAR_RUNTIME_FILE overrides the path (tests, multiple homes).

Security

  • loopback only (127.0.0.1/::1), Bearer token on every native route;
  • page routes use same-origin trust plus a script-only header, because the Desktop shell strips Origin/cookie/sec-fetch-site when forwarding dsh-app://app requests;
  • no message text ever crosses the bridge.

Install

cd ~/.dsh/profiles/desktop
npx pnpm add dsh-bar

Add "dsh-bar" to dsh.profile.bundles, then reload DSH. The native app downloads from the latest release.

Approvals only reach the bar when the profile uses the read-only or workspace-write preset (danger-full-access is approval: never).

Tests

npm test   # 13 node:test cases: state fold, approvals, questions, stop

MIT

История версий

  • 0.4.129 нояб. 2026 г. · 11 KB
dsh-bar · плагин SoleAPI Agent | SoleAPI