dshbase

Plugin directory / Developer / dsh-md-table-formatter

dsh-md-table-formatter

Unverified Hyna-hla

✓ Actively maintained Builds on 6 official DSH packages Pure TypeScript

View on GitHub ↗ ← Back to plugin directory

1Stars
0Forks
0Open issues
TypeScriptLanguage
2026-08-14Last push
Cross-platformPlatform

What it does

A plugin in the Developer category for DeepSeek Harness.

Our take
Unverified — not yet verified

A plugin in the Developer category for DeepSeek Harness. Not yet verified — install and test it yourself.

“Unverified” means our automated CI has not yet installed this plugin. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.

Plugin author? Get the “Verified” label — submit your own evidence (screenshots, logs, or a short demo) and we'll review and flip the badge.

Submit verification evidence ↗

README

dsh-md-table-formatter

DeepSeek Harness 插件:两个功能,都建立在会话 surface-replace 机制上(与内置 compaction 同一套,可安全回放): 1. **自动对齐 Markdown 表格**:每个回合结束后,把助手回复里没对齐的 GFM 表格在「模型可见表面」上替换为对齐版本。原始输出仍完整保留在仅追加的会话日志里。 - 支持 :---(左)、---:(右)、:---:(居中)对齐标记。 - 宽度按 Unicode 码点计算,CJK/全角字符按 2 列计算。 - 代码围栏(`` 内)的表格不动;连续两张表不会互相吞行。 2. **/clear-history 命令**:把模型可见的对话记录整体替换为一条占位消息(原始日志保留,可继续对话)。回合进行中会拒绝执行。 移植思路来源:https://www.npmjs.com/package/@franlol/opencode-md-table-formatter(OpenCode 的 experimental.text.complete 钩子 → DSH 的 turn/end + surface-replace)。

配置(cordis.patch.yml 可覆写)

`yaml - insert: - id: dsh-md-table-formatter name: dsh-md-table-formatter config: autoFormat: true # 是否回合后自动格式化 minColumns: 2 # 少于该列数的表格不动 clearMarker: '(对话记录已清除)' # /clear-history 的占位文本 `

构建与安装

`powershell pnpm install pnpm build pnpm test

安装到 profile(拷 node_modules + 注册 cordis.patch.yml):

.\scripts\install-to-profile.ps1 -Name dsh-md-table-formatter -SourceDir .

然后重启 DeepSeek Harness

`

实现要点

- 替换事件 =
assistant/message + { surfaceOp: { op: 'replace', start: seq, end: seq }, sourceEventSeqs: [seq] },与 dsh-compaction-tool-result-pruner 完全同款;替换副本保留原消息 id(freezeMessage),usage 只留在原始事件上避免重复计数。 - 格式化 pass 由 session/event 观察者里的 turn/end 触发,用 queueMicrotask 逃出刚提交 append 的接纳边界后再写替换。 - apply` 是箭头函数(cordis 4 会把带 prototype 的 function 当类构造器)。

Install

🧩 Let your agent install it (recommended)

Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:

dsh plugin add dshbase-catalog

Then say "install dsh-md-table-formatter for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.

This plugin is GitHub source (not published to npm) — install it straight from the repo:

Web profile:

dsh plugin --profile web add github:Hyna-hla/dsh-md-table-formatter

Headless (CLI) profile:

dsh plugin --profile headless add github:Hyna-hla/dsh-md-table-formatter

Test report

Not yet L3-verified — see failure note below if we already ran it.

Status: pending
Note: 验证: runtime-fail (0.1.0-rc.6) Browse all pending failures →

When to use it

Extend the agent's coding surface — give it a new tool, workflow, or integration so it handles a dev task it couldn't before.

Who it's for

Developers who want dsh to behave like a teammate on real codebases — editing, running, and verifying changes rather than just answering.

For developers — extending it

The tool/command surface is the seam: expose more of the SDK, add smarter context wiring, or tighten the loop between code changes and verification.

Security: not yet scanned — our daily static scan will cover it shortly.

Share this badge

More in Developer

Browse all 7795 plugins →