wsz987/dsh-channels--packages-channel-web2

@wsz987/channel-web

DeepSeek Harness Web client: Settings > Channels (渠道) dashboard

包名
@wsz987/channel-web
版本
0.1.0
许可证
MIT
最近更新
2026年8月16日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗

@wsz987/channel-web

DeepSeek Harness Web client for the Channels dashboard: Settings → 渠道.

Host-side Cordis plugin plus a Web client surface. The host registers HTTP API routes under /dsh-channels/api/v1 and /dsh-channels/api/v2; the client renders the channel setup panel (QR login, credentials form, status) inside the Harness Web UI.

Install

The Web dashboard is part of the @wsz987/dsh-channels bundle:

npx @deepseek-ai/dsh plugin --profile web add -w @wsz987/dsh-channels@beta

To install it standalone:

pnpm add @wsz987/channel-web

What it does

SurfaceResponsibility
src/host/routes.tsM1 read-only dashboard + adapter auth loop (/dsh-channels/api/v1)
src/host/routes-v2.tsControl-plane API (/dsh-channels/api/v2) delegating to ctx.channelControl
src/client/*React components for the 「设置 → 渠道」 dashboard
src/protocol.tsShared host/client protocol types

Security notes:

  • State-changing routes are loopback-only.
  • Mutation bodies must be application/json.
  • Secret values are never echoed; they are written through the credentials seam.

The plugin injects webServer, channels, and optionally channelControl. When channelControl is absent, v2 routes return 503 so a standalone web profile still boots.

Client build

The package declares a dsh.client block so the Harness Web runtime loads the client surface from @wsz987/channel-web/client.

Development

pnpm --filter @wsz987/channel-web build
pnpm --filter @wsz987/channel-web typecheck
pnpm --filter @wsz987/channel-web test

Related

License

MIT