dsh-webapi

让任何会说 HTTP 的东西驱动 DSH:47 条路由(REST + SSE),覆盖工作区、会话(创建/提示、SSE 实时生成、历史、统计、任务清单、中止、问答)、模型与全局默认模型、提供方、Agent Preset、设置命名空间、技能与工作区文件(含分片续传上传),另有 OpenAI 兼容的 /chat/completions、内置 OpenAPI 3.0 规范与在线调试页。它只 inject 宿主的 webServer 与 tools,挂在宿主 webserver(默认前缀 /api/v1)或独立端口,可选 API Key 鉴权,并自带一份教会 DSH 里 Agent 调用本 API 的 SKILL。

远程与消息BSD-3-Clause☆ 3

插件介绍

让任何会说 HTTP 的东西驱动 DSH:47 条路由(REST + SSE),覆盖工作区、会话(创建/提示、SSE 实时生成、历史、统计、任务清单、中止、问答)、模型与全局默认模型、提供方、Agent Preset、设置命名空间、技能与工作区文件(含分片续传上传),另有 OpenAI 兼容的 /chat/completions、内置 OpenAPI 3.0 规范与在线调试页。它只 inject 宿主的 webServer 与 tools,挂在宿主 webserver(默认前缀 /api/v1)或独立端口,可选 API Key 鉴权,并自带一份教会 DSH 里 Agent 调用本 API 的 SKILL。

安装方式

通过 npm 安装

dsh plugin --profile web add dsh-web-service

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:toddpan/dsh-webapi

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。

安装提示

  • 可能调用终端命令