dsh-plugin-rtk
开发工具 活跃维护

dsh-plugin-rtk

SeireiA/dsh-plugin-rtk

为RTK框架提供Shell输出压缩能力的轻量化插件,可自动剥离RTK生成的Shell输出的冗余字段与重复内容,不丢失核心信息的前提下缩减输出体积,零额外依赖,接入后即可实现Shell输出的自动规整精简。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
3
Open Issues
JavaScript
主要语言
MIT
开源协议
173 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:SeireiA/dsh-plugin-rtk
git clone https://github.com/SeireiA/dsh-plugin-rtk.git
git clone git@github.com:SeireiA/dsh-plugin-rtk.git
README.md main

dsh-plugin-rtk

A DeepSeek Harness plugin that delegates shell-command rewriting and output compaction to the official RTK project.

Status: implementation is in progress. The repository is not yet installable as a DSH plugin.

Goals

  • Preserve DSH sandbox, approval, timeout, workdir, background-process, and exit-code semantics.
  • Delegate supported shell syntax to the active RTK binary through rtk rewrite.
  • Browse every public RTK GitHub Release, including stable, prerelease, and historical releases.
  • Require an official platform asset, SHA-256 verification, and compatibility tests before activation.
  • Keep RTK versions and history databases isolated so updates can roll back safely.
  • Show estimated handled and saved Tokens in a draggable DSH Web overlay.
  • Keep all data local and disable RTK telemetry.

Development

Prerequisites:

  • Node.js 20.19 or later
  • pnpm 10.34.5
  • Git
pnpm install --frozen-lockfile
pnpm run check

The quality pipeline enforces formatting, linting, a 400-line hard limit for hand-maintained files, dependency boundaries, unused-code checks, duplication limits, strict TypeScript, coverage, bundling, and package metadata.

Project status

Implementation follows the approved Chinese plans in docs/开发计划.md. Each stage is verified, committed, pushed to origin/main, and checked against the remote SHA before the next stage starts.

Privacy and safety

The plugin will not run rtk init, install global hooks, modify shell profiles, or upload command history. DSH remains the sole permission authority. See SECURITY.md for vulnerability reporting.

Documentation

License

MIT