dsh-node-repl
DSH Web 界面中的单会话 Node REPL 终端插件,通过 WebSocket 连接并桥接 Agent 的 Cordis 上下文。
AI 分析
核心用途是在 Web 界面中提供一个悬浮的 Node.js 交互式终端,允许直接编写 JS 代码并访问当前 Agent 运行上下文。适合需要实时调试、检查服务或会话状态的开发者。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:idkidknow/dsh-node-repl說明文件
閱讀完整 README ↗Usage
Open a session, click REPL, and type JavaScript. Top-level await works:
> 1 + 1
2
> await Promise.resolve(42)
42
> ctx.get("webServer") // any service the agent can reach
> agent.id // the session id
Window controls
| Control | Effect |
|---|---|
Header REPL button | open / restore / collapse |
Title bar – | collapse (keep the REPL alive) |
Title bar ✕ | close (kill the REPL) |
| Drag the title bar | move the window |
| Drag the bottom-right corner | resize |
The REPL belongs to its session: refreshing the page, dropping the WebSocket, or disposing the agent kills it (reopen to start fresh).