dsh-plugin-verified-search
f0909172434
Verified current-source search workflow for DeepSeek Harness
wj2514939573-ui/dsh-text-master
dsh-text-master — All-in-one text processing plugin for DeepSeek Harness (Cordis): polish, summarize, translate (24 languages), correct, expand, condense, tone/style conversion, creative writing; batch processing with format preservation (Markdown/docx/PDF) and custom dictionary.
PROJECT TOPICS
PROJECT README
全能文本处理插件(DeepSeek Harness / Cordis dynamic plugin) All-in-one text processing plugin: polish · summarize · translate · correct · expand · condense · tone · style · creative
集文本润色、智能总结、多语言翻译、错别字纠错、内容扩写、缩写精简、语气转换、场景风格调整、文学创作灵感于一体的文本处理工具。支持批量处理、格式保留(Markdown / docx / PDF)与自定义词典。零第三方运行时依赖——内置纯 JS 实现的 DEFLATE 解压与 PDF 文本提取器。
| 类别 | 能力 |
|---|---|
| 🎨 风格与语气 (Style & Tone) | 商务邮件、学术论文、社交媒体等场景的专业风格调整;8 种语气(正式/轻松/友好/专业/说服/温暖/谦逊/自信) |
| 📝 内容与结构 (Content & Structure) | 精准内容扩写 / 缩写精简、智能总结核心观点、多语言翻译 |
| ✅ 质量与准确性 (Quality & Accuracy) | 错别字纠错、语法检查(自定义词典保护专业术语不被误判) |
| 💡 创意与灵感 (Creativity & Inspiration) | 情节建议、人物对话、场景描写、续写等文学创作辅助 |
| 🚀 批量处理 (Batch) | 一次处理最多 20 个文件(.md / .markdown / .txt / .docx / .pdf),3 路并发 |
| 📦 格式保留 (Format Preservation) | Markdown 语法完整保留;docx 段落结构与加粗/斜体内联格式保留;PDF 文本提取后输出可编辑 docx/md |
| 📖 自定义词典 (Custom Dictionary) | 专业术语白名单(错误=>正确 可强制替换),支持保存/加载持久化 |
| 🌍 多语言 (24 Languages) | 中/英/日/韩/法/德/西/俄/阿/葡/意/越南/泰/印尼/印地/荷兰/波兰/土耳其/乌克兰/马来/瑞典/丹麦 + 繁体中文 |
text_master — 单文本处理| 参数 | 类型 | 说明 |
|---|---|---|
mode |
enum | polish 润色 / summarize 总结 / translate 翻译 / correct 纠错 / expand 扩写 / condense 精简 / tone 语气 / style 风格 / creative 灵感 |
text |
string | 要处理的文本(≤ 12000 字符) |
target_language |
enum | 目标语言(默认 zh) |
tone |
enum | formal / casual / friendly / professional / persuasive / warm / humble / confident |
scene |
enum | business / academic / social / literary / technical / general |
length_hint |
string | 篇幅要求,如「压缩到一半」「扩写到 500 字」 |
extra |
string | 补充的个性化要求 |
use_dictionary |
boolean | 是否应用自定义词典(默认 true) |
text_master_batch — 批量文件处理| 参数 | 类型 | 说明 |
|---|---|---|
mode |
enum | 同 text_master |
files |
string[] | 文件路径(工作区相对或绝对路径),最多 20 个 |
target_language / tone / scene / length_hint / extra / use_dictionary |
同 text_master |
|
output_dir |
string | 输出目录(默认 text-master-output) |
preserve_format |
boolean | 是否保留原格式(默认 true) |
输出命名:<原名>.<mode>.<ext>;docx/pdf 在 summarize 模式下输出 .md。
text_master_dict — 自定义词典| 参数 | 类型 | 说明 |
|---|---|---|
action |
enum | list / add / remove / clear / save / load |
terms |
string[] | add/remove 的词条列表;错误=>正确 形式可强制替换 |
file |
string | save/load 路径(默认 .text-master-dictionary.json,启动后首次使用时自动加载) |
cordis_define,传入 plugin/host.js 与 plugin/client.js 中工厂函数的函数体(或直接引用 plugin/host.raw.js / plugin/client.raw.js 的原文):plugin.kind: 'new',idPrefix: 'txtms'code.host ← plugin/host.raw.js 内容code.client ← plugin/client.raw.js 内容cordis_run 激活(Client 部分首次需要授权)。text_master / text_master_batch / text_master_dict 立即可用;Run 卡片中附带词典管理控制面板。
plugin/source.json保留了该插件运行实例(txtms-1/pkg-8)的完整可复现定义载荷。
polish + scene: business)translate + target_language: ja)text_master_batch + correct)text_master_dict + add)llm 流式服务,自动使用当前会话默认模型;按模式选择温度(纠错/翻译 0.2,创作 0.9)。tar 解包 → 仅改写 word/document.xml 的段落文本 → 重新打包(条目名符合 OPC 规范);段落内加粗/斜体等 run 按原文比例分配新文本以保留内联格式。sandboxPolicy.resolve({session}) 解析真实工作区根目录,词典惰性加载(成功才缓存,失败可重试)。MIT © 2025 wangjing
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。