dsh-ptc-plus

muyuanjin

把 DSH PTC 模式的顶层 run_code 变成会话绑定的持久 TypeScript REPL:变量与导入在多次 run_code 调用间保持可用,edit_run_code 只替换一行而无需重发整段,import/export 模块语法经 AST 改写适配,持久绑定在冷重启后由会话日志恢复。

Session-bound persistent TypeScript REPL for DSH PTC mode: bindings and imports stay live across run_code calls, edit_run_code replaces one line without resending the block, module import/export syntax is adapted via AST rewriting, and durable bindings are restored from the session journal after a cold restart.

安装命令

dsh plugin --profile web add github:muyuanjin/dsh-ptc-plus

该命令来自上游目录,本站的自动审核尚未覆盖它——执行前请自行核对仓库。

安装后运行 dsh --profile web --dump-config 并重启对应 profile。插件会以你的本机权限运行第三方代码,安装前请检查源码。

信号

GitHub Stars0
30 天下载
分发方式Git
收录时间2026-08-25

相关链接

同类插件