609476965/dsh-LorebookMD
DSH 世界观设定驱动小说写作插件:导入 Tavern/SillyTavern 角色卡与世界设定集,保存本地 Markdown 配置,生成参考世界观的小说正文。
Project Overview项目介绍
dsh-LorebookMD is a native plugin built exclusively for DeepSeek Harness (DSH), designed to help users import TavernAI/SillyTavern character cards and worldbooks, convert them into local Markdown setting documents, and generate story content or roleplay responses based on user input and imported settings. The plugin does not include any jailbreak or content bypass prompts, it only manages setting text provided by users themselves, and it supports multiple common export formats for character cards and worldbooks. There are three installation methods available for users: ask DSH to install it directly, install from npm, or install it manually via a PowerShell script.
The plugin offers two working modes for different use cases: creation mode and worldbook mode. For users who want to write novels, creation mode injects the full worldbook setting into the prompt, and users just need to input requirements for scenes, plots or characters, then the model will generate coherent third-person novel content that fits the setting. For users who want immersive role-playing, worldbook mode supports automatic keyword triggering that injects matching setting entries when the keyword appears, and the model will interact as an in-world character to advance the plot. Users can switch between the two modes at any time, and disable the plugin to return to normal DSH conversation. This plugin is suitable for novel authors and tabletop role-playing enthusiasts.
All plugin dependencies are provided by the DSH runtime environment, so users do not need to install any extra dependencies after installing DSH. All user data is stored by default under the ~/.dsh/dsh-LorebookMD path in the user directory, including presets, worldbook entry data, and editable local Markdown setting documents. For development, users need to run a script to install dependencies first, build the bundle after modifying code, and require Node.js version 22.18 or higher to run tests and type checking. After upgrading to a new version of the plugin, users just need to restart DSH to apply the update. There is no explicit open source license declared for this repository.
dsh-LorebookMD是专为DeepSeek Harness(DSH)开发的原生插件,核心功能是导入SillyTavern(酒馆AI)的角色卡和世界书,将其转换为本地Markdown格式的设定文档,支持根据用户输入和世界书设定创作小说或进行角色扮演互动。插件本身不内置任何破限或越狱提示词内容,仅管理用户自行提供的设定文本,同时兼容多种常见的世界书、角色卡导出格式。
插件提供创作模式和世界书模式两种工作模式,满足不同场景需求。如果用户需要创作小说,可以进入创作模式,输入场景、情节或人物要求后,模型会基于世界书设定生成连贯的第三人称小说正文;如果需要沉浸式角色扮演,可以切换到世界书模式,通过关键词触发自动注入对应设定条目,模型会以世界内角色身份和用户互动推进剧情。两种模式可以随时切换,停用后即可回到正常会话,适合小说创作者和角色扮演爱好者使用。
安装方式非常简便,用户既可以直接让DSH帮忙安装,也可以通过npm命令安装,还可以手动运行脚本安装。插件依赖DSH自带的运行时环境,不需要额外安装其他依赖,所有数据默认存储在用户目录下的~/.dsh/dsh-LorebookMD路径下,包括预设、世界书条目数据和可编辑的本地Markdown设定文档。无额外开源许可证声明,开发需要Node 22.18以上版本,支持严格类型检查。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-LorebookMD(609476965/dsh-LorebookMD)
仓库:https://github.com/609476965/dsh-LorebookMD
本站详情页:https://www.yhbd.top/plugins/609476965-dsh-lorebookmd/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证未声明 · ⭐ 23 · 最近提交 2026-08-14 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
- 23 stars - an early-stage project星标 23,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add dsh-lorebookmd
把 609476965/dsh-LorebookMD 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-LorebookMD — DSH 世界书驱动的小说创作插件
一个面向 DeepSeek Harness(DSH)的插件:导入酒馆(SillyTavern/TavernAI)角色卡与世界书,落地为本地 Markdown 设定文档,激活创作模式后根据用户输入、参考世界书创作小说。
说明:本插件只管理你自己提供的设定文本;工程内不内置任何"破限/越狱"提示词内容。
功能
- 导入:角色卡(PNG 内嵌 / JSON)与独立世界书(
{ entries: [...] }),兼容extensions.world、SillyTaverncharacter_book(角色书)与常见导出变体 - 落地本地:每本世界书生成三件产物——
名·世界书预设:设定全文 + 关键词自动触发(对话中按触发词注入对应条目)名·创作预设:创作模式(创作指令 + 设定全文,激活后输入场景即生成小说正文)worldbooks/<名>.md:本地 Markdown 设定文档,可手工编辑
- 设置页(设置 →「世界书创作」):世界书列表 / 进入创作 / 世界书模式 / 编辑文档(系统默认程序打开本地 .md)/ 导入 / 删除
- 对话工具:
prompt_import_tavern/prompt_import_world等与设置页共享同一份数据
两种模式怎么用
| 进入创作(激活「·创作」) | 世界书模式(激活「·世界书」) | |
|---|---|---|
| 输出形态 | 小说正文:第三人称连贯叙述,细节符合设定风格,直接输出正文、不复述设定 | 对话/角色扮演回应:以世界内角色身份与你互动、推进剧情 |
| 设定使用 | 全文注入,模型自觉参考 | 全文注入 + 关键词自动触发:提到触发词时对应条目当场注入 |
| 交互方式 | 你给场景/情节/人物,模型创作;继续给 → 续写 | 你以第一人称参与,模型以角色回应 |
| 典型指令 | "写一段……"、"描写……的过程" | "我是……,然后呢?"、"把名单给我看看" |
| 适合 | 写小说、场景描写、剧情创作 | 沉浸式角色扮演、互动推演 |
想"写小说"用「进入创作」,想"扮演/对话"用「世界书模式」;两者可随时切换,停用后回到正常会话。
安装
跟 DSH 说
帮我安装这个插件https://github.com/609476965/dsh-LorebookMD
从 npm 安装(推荐)
dsh plugin --profile web add dsh-lorebookmd
发布包已内置构建产物(lib/);dsh plugin 会自动把本包加入 dsh.profile.bundles 并应用 cordis.patch.yml,之后用 start-dsh.cmd 正常启动即可,无需 --patch。
本地试装(未发布时):
npm pack生成dsh-lorebookmd-1.0.0.tgz,然后dsh plugin --profile web add ./dsh-lorebookmd-1.0.0.tgz。
手动安装
一键安装:双击
install.cmd(或powershell -ExecutionPolicy Bypass -File install.ps1)。脚本把插件复制到 DSH profile 的node_modules(发布包已内置构建产物,无需本地构建环境)。挂载(二选一):
- 自动挂载(推荐):把
dsh-lorebookmd追加到~\.dsh\profiles\web\package.json的dsh.profile.bundles数组,之后用start-dsh.cmd正常启动即可(DSH 会自动应用插件的cordis.patch.yml,无需--patch) - 临时挂载:双击
start-dsh-plugin.cmd(以--patch加载cordis.yml)
- 自动挂载(推荐):把
以上挂载方式任选其一,勿同时使用(会重复挂载)。打开
http://127.0.0.1:3080:设置 →「世界书创作」即可使用;终端应打印[prompt-manager] ready: …。
安装原理:正常安装 = 把插件包放进 DSH profile 的
node_modules。插件源码的@deepseek-ai/*依赖由 profile 运行时直接解析(DSH 自带完整运行时包),无需额外依赖链。更新插件:升级安装新版本后重启 DSH 即可。
数据位置
| 数据 | 路径 |
|---|---|
| 预设(含创作/世界书预设正文) | ~/.dsh/dsh-LorebookMD/presets.json |
| 世界书条目数据(关键词触发用) | ~/.dsh/dsh-LorebookMD/worldbooks.json |
| 本地设定文档(可编辑) | ~/.dsh/dsh-LorebookMD/worldbooks/<名>.md |
开发
node .dsh-tools/install-deps.mjs # 首次开发前:重建 node_modules 依赖链(仅开发需要)
npm run bundle # 构建 lib/client.js(改代码后需重新构建并随提交更新)
npm test # 运行测试(Node >= 22.18 内置类型剥离)
npm run typecheck # tsc --noEmit 严格检查
yogsoth-ai/de-anthropocentric-research-engine
ZSeven-W/dsh-openpencil
HanaAyane/dsh-reasoning-effort
HuanLinOTO/dsh-plugin-better-sidebar-plugin-office
joeseesun/qiaomu-rss-dsh