편집자 노트

漂浮水球宠物

DeepSeek Harness Web UI

이것은 DeepSeek Harness(DSH) 플러그인입니다. 이 사이트는 GitHub README, 설치 정보, 유지보수 상태, 공개 보안 시그널을 모아 보여줍니다.

dsh-waterball-pet

一个适用于 DeepSeek Harness Web UI 的漂浮水球宠物插件。水球使用纯 SVG 绘制, 会根据 Agent 的会话状态切换动画和氛围呼吸灯,并支持在 Web UI 中开关、调整大小 和拖动位置。

This is a floating water-ball pet plugin for the DeepSeek Harness Web UI. It is drawn with SVG and reacts to Agent session events with state animations and colored ambient halos. The Web UI settings card controls visibility, size, and position.

状态、呼吸灯与操作

水球主体始终保持天蓝色;变化的是水球周围的氛围呼吸灯。

状态mood呼吸灯颜色触发事件 / 操作动画与持续时间
空闲idle蓝色 #60a5fa没有活动;activity/statusidle上下浮动
思考 / 工作waiting绿色 #34d399turn/startstep/startassistant/chunk;或 activity/statuswaiting / thinking左右张望,持续到下一状态
工具调用jumping紫色 #a855f7tool/call;或 activity/statustool跳跃,持续到工具结果
授权等待authorizing黄色 #facc15approval/asked柔和呼吸,直到 approval/decided(批准→继续,拒绝/取消→出错)
工具结果后继续思考waiting绿色 #34d399tool/result回到思考动画
完成done青色 #22d3eeactivity/statusdone;或 turn/endreason=completed欢快跳动约 2.5 秒
出错failed红色 #f87171turn/endreason=error低头沮丧约 3 秒
中断 / 停止stopped黑色 #000000turn/endreason=abortedblockedmax-tokens 或其他停止原因静止下沉约 3 秒
点击挥手waving橙色 #fb923c单击水球左右摇摆约 1.6 秒

标准 DSH 会话事件始终作为状态来源;如果额外安装了活动状态插件,也兼容 activity/status 事件。

安装

从 GitHub 安装(推荐)

需要已安装 Node.js、pnpm 和 DeepSeek Harness:

dsh plugin --profile web add github:sundusk/dsh-waterball-pet

仓库已包含构建后的 host/browser 两个插件部分,安装时不需要执行第三方构建脚本, 可以直接使用。安装完成后重启 dsh web,然后打开 Web UI,在「设置 → 插件 → Web UI 插件」中启用「水球宠物」。

兼容性注意:白名单问题

插件能够从 GitHub 安装成功,不代表当前 DeepSeek Harness 宿主版本已经允许 waterball 设置命名空间。Harness 的 @deepseek-ai/dsh-host-apiproxy 会维护一份 Web UI 设置白名单;如果你的版本还没有包含 waterball,可能出现以下情况:

  • 插件已经安装,但设置卡片显示不可用或只读;
  • 启用、大小、位置等设置无法保存;
  • 某些宿主版本中水球覆盖层也可能不会显示。

遇到这些情况,请先升级 DeepSeek Harness 到包含 waterball 白名单的版本,重启 dsh web 后再检查。修改本机 npx 缓存中的宿主文件只能作为临时开发排查手段, 不会替其他用户解决这个问题,也可能在重新安装后被覆盖。这个兼容性问题属于 Harness 宿主,不是 npm/GitHub 分发方式本身造成的。

本地开发安装

dsh plugin --profile web add link:<本仓库绝对路径>

重启 dsh web 后生效。插件代码修改后运行 pnpm build,并将更新后的 lib/ 一并提交。

结构

  • src/index.ts — host 半区:监听标准 session 事件与可选的 activity/status 相位, 提供 GET /api/waterball/status,注册 waterball 设置命名空间。
  • src/client/index.ts — browser 半区:渲染水球、轮询状态、注册插件配置卡片。
  • cordis.patch.yml — bundle patch 插件行,插件 ID 为 ui-waterball
  • shared/ — 独立仓库使用的客户端构建预设。
  • lib/ — 已提交的 host/browser 构建产物,保证 GitHub 安装无需执行构建脚本。

English

State, halo colors, and interactions

The water-ball body stays sky blue. The surrounding ambient halo changes with the current state.

StatemoodHalo colorTrigger / operationAnimation and duration
IdleidleBlue #60a5faNo active work; activity/status phase idleGentle bobbing
Thinking / workingwaitingGreen #34d399turn/start, step/start, assistant/chunk; or activity/status phase waiting / thinkingSide-to-side tilt until the next state
Tool calljumpingPurple #a855f7tool/call; or activity/status phase toolHopping until the tool result
Awaiting approvalauthorizingYellow #facc15approval/askedSoft breathing until approval/decided (allowed → continue; rejected/cancelled → error)
Thinking after a tool resultwaitingGreen #34d399tool/resultReturns to the thinking animation
CompleteddoneCyan #22d3eeactivity/status phase done; or turn/end with reason=completedCheerful jump for about 2.5 seconds
ErrorfailedRed #f87171turn/end with reason=errorDrooping animation for about 3 seconds
Stopped / interruptedstoppedBlack #000000turn/end with reason=aborted, blocked, max-tokens, or another stop reasonSinking animation for about 3 seconds
Click reactionwavingOrange #fb923cClick the water ballSide-to-side wave for about 1.6 seconds

The plugin always supports standard DSH session events. It also accepts the optional activity/status events when an activity-tracking plugin is installed.

Install from GitHub

Requirements: Node.js, pnpm, and DeepSeek Harness.

dsh plugin --profile web add github:sundusk/dsh-waterball-pet

The repository includes the prebuilt host and browser artifacts, so installation does not need to run a third-party build script. Restart dsh web, then enable Water Ball Pet under Settings → Plugins → Web UI Plugins.

Compatibility note: host allowlist

A successful GitHub installation does not guarantee that the installed DeepSeek Harness host supports the waterball settings namespace. The Harness @deepseek-ai/dsh-host-apiproxy package maintains an allowlist for Web UI settings. If your Harness version does not include waterball, the plugin may install but its settings card can be unavailable or read-only, settings such as enabled/size/position may not persist, and some host versions may not render the water-ball overlay.

If this happens, upgrade DeepSeek Harness to a release that includes waterball in the host allowlist, restart dsh web, and check again. Editing the local npx cache is only a temporary development workaround; it does not fix other users' installations and may be overwritten during reinstall. This is a Harness host compatibility issue, not a GitHub or npm distribution issue.

Local development

dsh plugin --profile web add link:<absolute-path-to-this-repository>

Run pnpm build after changing the source and commit the updated lib/ artifacts.

桌面悬浮球(推荐)

水球不只可以活在网页里。如果你希望它出现在整个电脑桌面上——即使不看 DeepSeek Harness 的 Web UI,也能随时知道任务进度——可以试试 dsh-macDesktop-pet:一款 macOS 原生 悬浮球应用,在桌面上显示一颗置顶的发光小球,颜色随 Agent 状态呼吸变化(思考=绿、 调工具=紫、完成=青、出错=红),瞄一眼桌面即可掌握运行状态。

Desktop companion: a native macOS app that shows an always-on-top glowing ball breathing with the Agent's state, so you can track progress at a glance without opening the Web UI.

REPOSITORY SIGNALS

보안 및 설치 증거

이 점수는 공개 저장소 메타데이터와 이 사이트에 등록된 설치 증거에만 기반하며, 코드 보안 감사와 다릅니다.

출처 추적 가능

공개 플러그인 카탈로그에서 왔으며, 공개 GitHub 저장소로 연결됩니다.

라이선스

GitHub 메타데이터에서 라이선스가 감지되지 않았습니다.

유지보수 활동

최근 180일 내 코드 업데이트가 있습니다.

설치 증거

재현 가능한 정확한 설치 메타데이터가 아직 등록되지 않았습니다. 저장소 설명에 따라 직접 확인하세요.

설치 라이프사이클 스크립트

검사한 패키지 메타데이터에 설치 라이프사이클 스크립트가 선언되지 않았습니다.

주의 사항missing-license