InfinitePersistence/dsh-serial-console

插件Plugin ⭐ 6 MIT securitysocial

Unofficial DeepSeek Harness plugin for board serial console, logging, and model-visible interaction.

编辑导读Editor's Brief

## 核心特性
- 该插件将用户终端输入、模型工具调用、开发板输出和会话记录整合到 DeepSeek Harness 的同一个串口控制台中。
- 支持在浏览器中查看启动日志和实时串口输出,并提供键盘输入、Tab 补全、方向键、退格、粘贴、输入法以及常用终端控制键。
- 允许选择串口、波特率,以及 CR、LF 或 CRLF 换行模式,并提供 Text 和 HEX 视图。
- 它为 DeepSeek 模型提供工具,可列出端口、连接、发送文本或原始字节、读取有限事件窗口、等待预期内容、添加审计标记并断开连接。
- 它会记录 RX 和 TX 原始字节及事件元数据,包括会话、序列、时间和来源;清除浏览器视图不会删除主机端记录。

## 使用场景
- README 列出了 Linux 开发板启动与登录控制台、U-Boot 环境变量、启动流程和镜像调试等场景。
- 它也覆盖 MCU 命令行、固件诊断接口、调制解调器、GNSS 以及其他 AT 命令设备。
- 它可用于烧录后的自动启动检查、长时间串口日志采集、故障复盘,以及 AI 辅助硬件调试或远程协作。

## 技术细节
- 该包发布为 @infinitepersistence/dsh-serial-console,可通过 dsh plugin add 安装到 DSH web profile 中。
- 它暴露了多个库入口,包括共享协议类型与编解码器、Node.js 主机串口管理与审计、DSH 主机串口服务、模型工具插件、预构建 Web 客户端,以及 React xterm.js 控制台。
- 切换页面时,终端会从内存中的 xterm 检查点恢复显示、光标和来源标记;当检查点不连续或事件窗口被截断时,则回退为完整重建。
- 界面将来源标记为 U 表示用户输入、M 表示模型输入、B 表示开发板输出、S 表示连接状态、错误或审计标记;这些标记不会写入串口数据。

## 注意事项
- 该项目要求 Node.js ^22.19.0 或 >=24.0.0、DeepSeek Harness 0.1.0-rc.7、pnpm 11.22.0,以及 Windows 或 Linux 串口环境。
- 当前限制包括同一时间只能启用一个物理串口、不支持自动重连或命令重放,以及 Text 模式依赖开发板回显。
- 该项目由社区维护,并非 DeepSeek 官方产品;终端检查点保存在当前浏览器内存中,因此刷新页面或事件缺失时会重建视图。

## Core Features
- The plugin places user terminal input, model tool calls, board output, and session records in one serial console for DeepSeek Harness.
- It supports browser-based viewing of boot logs and live serial output, with keyboard input, tab completion, arrow keys, backspace, paste, input methods, and common terminal control keys.
- It allows selection of serial port, baud rate, and CR, LF, or CRLF line-ending modes, and provides Text and HEX views.
- It gives DeepSeek models tools to list ports, connect, send text or raw bytes, read bounded event windows, wait for expected content, add audit markers, and disconnect.
- It records RX and TX original bytes and event metadata including session, sequence, time, and source, while browser view clearing does not delete host-side records.

## Use Cases
- The README lists Linux development board boot and login consoles, U-Boot environment variables, boot flows, and image debugging.
- It also covers MCU command lines, firmware diagnostic interfaces, modems, GNSS, and other AT command devices.
- It can be used for automated post-flash boot checks, long-running serial log collection, fault review, and AI-assisted hardware debugging or remote collaboration.

## Technical Details
- The package is published as @infinitepersistence/dsh-serial-console and can be installed into a DSH web profile with dsh plugin add.
- It exposes library entries for shared protocol types and codecs, Node.js host serial management and audit, DSH host serial service, model tool plugin, prebuilt web client, and React xterm.js console.
- The terminal restores display, cursor, and source markers from an in-memory xterm checkpoint when switching pages and falls back to full rebuild when checkpoints are discontinuous or event windows are truncated.
- The interface marks sources as U for user input, M for model input, B for board output, and S for connection status, errors, or audit markers without writing those markers into serial data.

## Notes
- The project requires Node.js ^22.19.0 or >=24.0.0, DeepSeek Harness 0.1.0-rc.7, pnpm 11.22.0, and a Windows or Linux serial environment.
- Current limitations include one active physical serial port at a time, no automatic reconnection or command replay, and Text mode dependence on board echo.
- The project is community-maintained, not an official DeepSeek product, and terminal checkpoints remain in current browser memory, so page refreshes or event gaps rebuild the view.

安装Install

dsh.cmd plugin --profile web add '@infinitepersistence/dsh-serial-console@0.1.0-rc.2' --save-exact

InfinitePersistence/dsh-serial-console 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

上一个 Prev dsh-obsidian-assistant 下一个 Next dsh-agent-team-room