the-binding-of-dsh

by CH4ACKO3

开发与运行时github收录于 08-23

通过原生 Connection 与 Typert Gateway 在 DSH Host 和 Client 之间提供双向 RPC,支持目标 Peer 调用、取消与连接生命周期处理。

Bidirectional RPC between DSH Host and Client through the native Connection and Typert Gateway, with targeted peer calls, cancellation, and connection lifecycle handling.

安装

dsh plugin --profile web add github:CH4ACKO3/the-binding-of-dsh

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

目录

Powered by Harmony

English | 简体中文

一个通过 DSH 原生 Connection 和 Typert Gateway,在 Host 与 Client 之间提供双向 RPC 的 DSH 插件。

功能

  • 向已连接的浏览器或 Node peer 发起定向 Host-to-Client 调用。
  • 支持双向 Typert Gateway 调用。
  • 处理请求关联、取消和连接生命周期。
  • 通过 Harmony patch 复用 DSH 现有的 HTTP 和 WebSocket 传输。

插件不会引入并行的 RPC 协议。Connection 仍负责传输和 peer 寻址,Typert Gateway 仍负责服务描述、编解码、调用和错误处理。

安装

npm install the-binding-of-dsh

包已在 package.json 中声明 DSH 客户端入口和 Harmony patch,因此可以作为常规 DSH 插件启用。

开发

需要 Node.js 22.22.3 或更高版本。

npm install
npm run check

许可证

MIT

原始 README: https://github.com/CH4ACKO3/the-binding-of-dsh/blob/main/README.zh-CN.md ↗