
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
dsh-api-gateway
Advanced tools
DSH 业务系统 HTTP API 网关:随 DSH 启动常驻,默认关闭,可通过侧边栏图标或设置页手动启用,为业务系统提供任务提交、会话、用户、工作区、记忆等 HTTP API。
DSH 业务系统 HTTP API 网关:一个随 DSH 启动常驻的正式 Bundle 插件,为外部业务系统提供 HTTP API,让业务系统可以直接向 DSH 提交任务、查询会话、管理用户与工作区、读写记忆。业务端点默认关闭,由管理员通过控制端点手动启用,兼顾安全与可用性。
📖 完整接口文档见 docs/api.md(含请求/响应示例、curl 对接示例);npm 包内已随包附带
docs/api.md,安装后可本地查阅。
/api/dsh/_gw/* 始终在线:查询状态、启停业务端点、修改 admin token/api/dsh/* 默认关闭,启用后提供任务提交、会话查询、用户/工作区管理、记忆读写x-api-key 或 Authorization: Bearer)$DSH_HOME/.dsh-api/(users.json / workspaces.json / gateway-config.json)要求:已安装 DSH(桌面版默认 profile 为 web),DSH 桌面版或 CLI 均可。
dsh plugin --profile web add dsh-api-gateway
指定版本:
dsh plugin --profile web add dsh-api-gateway@23.0.1
dsh plugin --profile web add github:zuoxiang20/dsh-api-gateway
# 或
dsh plugin --profile web add git+https://github.com/zuoxiang20/dsh-api-gateway.git
安装成功后重启 DSH 生效(Bundle 在启动时加载),插件会自动进入 profile 的
dsh.profile.bundles。
dsh-admin-2024,建议立即在设置页修改完整接口文档(含请求/响应示例、鉴权说明、curl 对接示例):👉 docs/api.md
端点速览:
| 方法 | 路径 | 鉴权 | 说明 |
|---|---|---|---|
| GET | /api/dsh/_gw/status | 无 | 查询状态 |
| POST | /api/dsh/_gw/toggle | admin | 启用/停用业务端点 |
| POST | /api/dsh/_gw/setToken | admin | 修改 admin token |
| POST | /api/dsh/users | admin | 创建用户(返回 apiKey) |
| POST | /api/dsh/workspaces | admin | 创建工作区 |
| POST | /api/dsh/task | user | 提交任务 |
| GET | /api/dsh/task/:id | user | 查询任务结果 |
| GET/DELETE | /api/dsh/memory?workspace=<id> | user | 读写记忆 |
dsh plugin --profile web remove dsh-api-gateway
.
├── package.json # 包元数据 + dsh.bundle + dsh.client 声明
├── host.js # Host 端:控制端点 + 业务逻辑(Node ESM)
├── client.js # Client 端:图标 + 设置页(__ModuleLoader__.load)
├── cordis.patch.yml # Bundle 自插入:- insert: [{id, name}]
└── docs/api.md # 完整接口文档
# 把 <插件源码目录> 换成你本地的插件目录绝对路径
dsh plugin --profile web add "file:<插件源码目录>"
# 改完源码后,重装以同步快照
dsh plugin --profile web remove dsh-api-gateway
dsh plugin --profile web add "file:<插件源码目录>"
说明:
file:依赖是快照拷贝,改源码后必须 remove + add 重新同步,否则运行的还是旧版;每次操作后重启 DSH 生效。
# 1. 改代码
# 2. 升版本并发布 npm
npm version patch
npm publish --registry https://registry.npmjs.org
# 3. 推送 GitHub
git add .
git commit -m "describe change"
git push
MIT
FAQs
DSH 业务系统 HTTP API 网关:随 DSH 启动常驻,默认关闭,可通过侧边栏图标或设置页手动启用,为业务系统提供任务提交、会话、用户、工作区、记忆等 HTTP API。
The npm package dsh-api-gateway receives a total of 0 weekly downloads. As such, dsh-api-gateway popularity was classified as not popular.
We found that dsh-api-gateway demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.