Repository navigation
Releases: Player-MINEPIG/dsh-tavern
Release list
Tavern 3.1.5 — greeting and desktop bug fixes
Tavern 3.1.5 修复 Windows 桌面面板关闭按钮与原生窗口控制区重叠的问题,并改为使用独立共享的 Assembler 1.1.3。Assembler 同时修复 #24 的标准装配首轮开场白引用;Tavern 的桌面修复对应 #25。
从 3.x 升级:先备份并停止正在执行的任务。在同一 profile 安装并启用独立 Assembler 1.1.3,保留数据并卸载旧 Tavern 软件包,再重新安装 3.1.5。不要仅覆盖安装:pnpm 可能保留旧内嵌副本。不要删除任何插件或 DSH 数据目录。 默认策略目录保持不变;旧 assemblerStorageDir 和转发的安全设置按升级步骤迁到独立 Assembler 配置。
在 GUI「插件 → 添加插件」中分别粘贴附件直链,按顺序安装、启用:
两个包独立更新,多个消费者可复用同一个 Assembler。Tavern 不再内嵌、下载或启动另一份 Assembler。必需共享版本为 ~1.1.3;缺少、未启用或不兼容时会等待或报告诊断。仓库地址安装对应源码提交,不会自动选择 Release 附件;Release 网页本身不是安装地址。本次不发布到 npm。
验证覆盖官方 DSH 0.2.1-rc.2 / rc.3 的最终安装模块、首轮问候与冷历史、独立服务生命周期、3.0.5 数据保留升级及实际浏览器界面。Windows 桌面关闭按钮已通过实机缩放、最大化、实际全屏、退出与还原验收。进阶扩展仍冻结在原兼容版本。完整变化见变更记录。
Tavern 3.1.5 fixes Windows desktop panel close-button overlap and requires independently installed shared Assembler 1.1.3, which restores first-turn greeting references for Standard assembly (#24, #25).
When upgrading from a bundled version, back up data, install and enable independent Assembler, remove the old Tavern package while retaining data, then reinstall 3.1.5. An overwrite can retain the old bundled SDK. Existing default strategy storage and DSH history remain. Follow the English upgrade steps for custom storage/security settings. Install the two prebuilt attachment URLs separately; no npm publication is required.
dsh-tavern v3.0.5
Tavern 3.0.5 and bundled Standard Assembler 1.1.2 support DSH >=0.2.1-rc.2 <0.2.2-0. rc.2 and rc.3 were verified. Later 0.2.1 RCs and the final release are admitted by policy; 0.2.2 and its prereleases require reassessment.
dsh plugin --profile web add pmp-dsh-tavern@3.0.5Stop the target Host before updating and restart afterward. Use Node ^22.19.0 || >=24.0.0. Install Tavern alone; its prebuilt package carries Standard Assembler. Existing V4 history and references need no further migration.
- Broaden Host and DSH peer declarations and add verified rc.3 codecs to the offline migration allowlist.
- Archive diagnosed unopenable playthroughs from the diagnostics panel, preserving healthy playthroughs and opening drafts.
- Optional agent maintenance previews cleanup, keeps recoverable backups of Tavern playthrough files and supports restoration. DSH history remains intact.
- Update DOMPurify to 3.4.17.
- Advanced stays frozen at Assembler 1.1.0 / DSH 0.2.0-rc.2. No new core addon is included.
Validation: full suite 1473 passed, 48 optional tests skipped; real official-module compatibility suites 22/22 on each of rc.2 and rc.3; release/package verification and browser fixtures passed. A real rc.3 Web Host verified installation, RP opening and conversation, actual assembly, Trace after restart, and continued native conversation after Tavern removal. No real provider call was used. Official desktop, external Memory Manager and frozen advanced-core integrations were not validated in this run.
Tavern 3.0.5 与内置标准 Assembler 1.1.2 支持 >=0.2.1-rc.2 <0.2.2-0。已验证 rc.2、rc.3;后续 0.2.1 RC 和正式版按策略准入,0.2.2 及其预发布需重新评估。
更新前停止目标 Host,安装后重启。Node 要求为 ^22.19.0 || >=24.0.0。只需安装 Tavern,预构建包已携带标准 Assembler。已有 V4 历史与引用无需再次迁移。
- 扩展 Host 与 DSH peer 声明,并把经验证的 rc.3 codec 加入离线迁移白名单。
- 诊断面板可一键归档无法打开的周目,保留健康周目与正常开场草稿。
- 可选 agent 维护工具先预览清理,再保存 Tavern 周目文件的可恢复备份,支持恢复;DSH 历史保留。
- DOMPurify 更新至 3.4.17。
- 进阶扩展仍冻结在 Assembler 1.1.0 / DSH 0.2.0-rc.2,本次不包含新版核心扩展。
全量测试通过 1473 项,48 项可选测试跳过;rc.2、rc.3 的真实官方模块兼容测试各 22 项通过。发布打包检查与浏览器夹具通过。真实 rc.3 Web Host 验证安装、RP 开场与对话、实际装配、重启后 Trace,以及移除 Tavern 后继续原生对话;使用离线模型,不调用真实提供方。官方桌面端、外部 Memory Manager 与冻结进阶扩展未纳入本次验收。
Tavern v3.0.4 — DSH 0.2.1-rc.2 compatibility
Tavern 3.0.4 supports DSH 0.2.1-rc.2, Cordis 4.0.5 and standard Assembler 1.1.1. Install Tavern alone; the prebuilt package carries the standard Assembler and loads it automatically.
dsh plugin --profile web add pmp-dsh-tavern@3.0.4Stop the target Host before updating, then restart it. Use Node ^22.19.0 || >=24.0.0. Existing V4 session references need no further conversion. Resources, selections and DSH durable history remain in their existing storage. See installation for source installation and older data layouts.
- Adapt native session/UI lifecycle, required runtime facts, Trace verification and migration tooling to DSH 0.2.1-rc.2.
- Resolve built-in MVU capabilities locally, independently of upstream script downloads. Original-code execution remains isolated and requires its own downloaded source. Improve download-cache clearing and feedback.
- Configure user and assistant bubble widths separately, defaulting to content width for user messages and full width for assistant messages. Center opening arrows and keep interactive cards responsive.
- Reopen an unstarted opening draft on repeated creation, preserving edits and unsent input. Creating from Plugins returns to the opening through public navigation. Existing duplicate drafts are retained.
- Use the published standard Assembler 1.1.1. Its standalone entry is Plugins → Installed plugins → dsh-prompt-assembler → Configure current session; Tavern-only loading owns the same entry on Tavern’s package page.
- Advanced core support stays frozen at Assembler 1.1.0 / DSH 0.2.0-rc.2, with no commitment to later DSH versions. This release includes no core patch or new advanced addon. Optional Memory Manager 1.0.0 was validated only on the older Host and is not included in current compatibility claims.
Validation covers build, package/install checks, automated tests on stock DSH 0.2.1-rc.2 modules and the accepted Web browser workflows. Historical advanced and unavailable optional integrations are excluded from current Host acceptance. No real model call is required for the browser regressions.
Tavern 3.0.4 现支持 DSH 0.2.1-rc.2,使用 Cordis 4.0.5 和已发布的标准 Assembler 1.1.1。只需安装 Tavern,预构建包已携带标准 Assembler 并自动加载。
更新前停止目标 Host,安装后重启;Node 要求为 ^22.19.0 || >=24.0.0。已有 V4 会话引用无需再次转换,资源、选择与 DSH 持久历史保留。旧数据目录及源码安装见安装文档。
- 适配新版原生会话与 UI 生命周期、必需运行上下文、Trace 核验和迁移工具。
- 内置 MVU 能力本地解析,与原版脚本下载解耦;原版代码仍使用下载来源并隔离执行。完善下载缓存清理和结果反馈。
- 气泡宽度按用户、助手分别设置,默认用户随内容、助手占满;开场箭头居中,交互卡适应窄屏。
- 重复创建会复用未开始的开场草稿,保留编辑与待发输入;从插件页面创建后正常返回开场。已有重复草稿不自动删除。
- 独立装配入口迁至“插件 → 已安装插件 → dsh-prompt-assembler → 配置当前会话”;仅安装 Tavern 时位于 Tavern 的包详情页。
- 进阶核心扩展冻结在 Assembler 1.1.0 / DSH 0.2.0-rc.2,不承诺后续适配。本次不携带新版核心改动,也不发布新进阶 addon。可选 Memory Manager 1.0.0 仅在旧宿主验证,不纳入本次兼容承诺。
本次验收包含构建、打包安装检查、stock 目标运行时测试和已验收的 Web 浏览器流程;历史进阶夹具与不可用的可选集成不作为新版宿主兼容证据。
Tavern 3.0.3:多标签页与样式重载修复
Tavern 3.0.3
面向 DSH 0.2.0-rc.2 的客户端稳定性补丁,内含标准 Assembler 1.1.0。
- 修复多标签页下额外常驻 SSE 占用 HTTP/1 连接池,导致原生会话和插件列表请求等待的问题。模式同步默认使用初始回读、focus 回读和一秒轮询,并合并未完成的回读;显式 SSE 消费方仍可使用原接口。见 PR #19。
- 修复其他插件热重载或停用时,Tavern 样式被错误认领和一起删除的问题。覆盖全部 13 个宿主页面样式入口,修正旧标签所有权,正确清理并在重新启用时恢复样式。见 issue #20、PR #21。
API、资源和会话格式不变,无需数据迁移。更新前停止目标 Host,更新插件后重启并刷新浏览器页面。
直接从本次 GitHub Release 安装已验证的预构建包,不依赖 Tavern 3.0.3 在 npm 上的可用状态:
dsh plugin --profile web add https://github.com/Player-MINEPIG/dsh-tavern/releases/download/v3.0.3/pmp-dsh-tavern-3.0.3.tgznpm 3.0.3 已公开发布,也可使用:
dsh plugin --profile web add pmp-dsh-tavern@3.0.3English
Client stability patch for DSH 0.2.0-rc.2, including standard Assembler 1.1.0.
- Prevent extra persistent chrome-mode SSE connections from blocking native session and plugin-list requests with multiple HTTP/1 tabs. Default synchronization uses initial/focus reads and one-second polling, sharing unfinished reads. Explicit SSE consumers remain supported. PR #19.
- Prevent another plugin's HMR or disable from claiming and removing Tavern styles. Cover all 13 Host-document style installers, correct legacy ownership, and restore styles without duplicates after Tavern is re-enabled. Issue #20, PR #21.
APIs and stored data formats are unchanged; no migration is required. Stop the target Host before updating, restart it afterward, and refresh existing browser pages.
Install the validated prebuilt package directly from this GitHub Release without waiting for Tavern 3.0.3 to become available on npm:
dsh plugin --profile web add https://github.com/Player-MINEPIG/dsh-tavern/releases/download/v3.0.3/pmp-dsh-tavern-3.0.3.tgzThe npm version is now publicly available; dsh plugin --profile web add pmp-dsh-tavern@3.0.3 is also supported.
Tavern 3.0.2:修复市场安装后导入失败
Tavern 3.0.2:修复市场安装后导入失败
修复从 DSH Plugin Market/GitHub 安装 Tavern 3.0.1 后,重启仍出现 pmp-dsh-tavern: failed to import 的问题。源码包错误地声明 Assembler 已打包,而 GitHub archive 不包含该依赖。现在源码安装使用固定的 npm Assembler 1.1.0;仅预构建 Tavern 包声明并携带已打包的依赖,也避免当前 pnpm 拒绝 Git 子依赖。
仍只需安装 Tavern,Assembler 自动加载,与独立启用的实例共存。现有资源、策略和会话无需迁移或删除。
停止目标 Host,在同一 profile 更新后重启:
dsh plugin --profile web add pmp-dsh-tavern@3.0.2也可在市场更新,或使用固定 GitHub tag:
dsh plugin --profile web add github:Player-MINEPIG/dsh-tavern#v3.0.2Market 的“已安装,重启后生效”说明 bundle 需要重启加载,本身不表示插件导入失败。完整说明见安装文档。
验证:完整本地测试 1406 通过、46 个外部环境测试跳过、0 失败;协议/安装包验证和生产依赖审计通过。GitHub Actions 的 Node 20、Node 22 与发布包检查全部通过。macOS 的官方 DSH 0.2.0-rc.2/pnpm 11.24.0 全新 GitHub 安装、重启、两个 API、唯一装配入口和浏览器编辑器通过。未实际运行 Windows/原生桌面壳验收。
English
Fix pmp-dsh-tavern: failed to import after restarting GitHub/Market installations of 3.0.1. GitHub archives do not carry node_modules, so the source manifest must not declare Assembler bundled. Source installation now downloads exact npm Assembler 1.1.0, avoiding Git subdependencies rejected by current pnpm defaults. Only prebuilt packages declare and carry bundled Assembler.
Install only Tavern; automatic loading and standalone coexistence are preserved. Stop the Host, update in the same profile using either command above, then restart. Existing resources, strategies and sessions require no migration or deletion. The Market restart notice describes bundle loading requirements; it does not establish import failure.
Local tests: 1406 passed, 46 external-environment skips, zero failures. Installation/protocol checks, production audit, and all Node 20/22 and release-package CI jobs passed. Fresh GitHub installation and startup, both APIs, a single assembly entry and the browser editor were verified on macOS with stock DSH 0.2.0-rc.2 and pnpm 11.24.0. Native Windows and the desktop shell were not exercised.
Tavern 3.0.1:单包安装与 Assembler 共存
Tavern 3.0.1:单包安装与 Assembler 共存
只安装 Tavern 即可使用标准 Assembler v1.1.0:发布包携带 Assembler,并自动加载 Host 与浏览器入口。Market 从 GitHub 安装同一版本时也由 Tavern 完成加载。
- 独立启用的 Assembler 优先接管,先装或后装都只保留一组 hooks、路由与界面入口;移除独立实例后 Tavern 自动恢复随包实例。
- 默认共用现有 Assembler 数据目录,策略与会话选择保留。移除 Tavern 不影响独立启用的 Assembler;自定义目录需按接入说明对齐配置。
- Memory Manager v1.0.0 和进阶核心扩展仍为可选项。标准版使用 DSH 公开接口。
目标:DSH 0.2.0-rc.2;运行 DSH 需要 Node.js ^22.19.0 || >=24.0.0。停止目标 Host 后安装,随后重启:
dsh plugin --profile web add pmp-dsh-tavern@3.0.1本 Release 的 pmp-dsh-tavern-3.0.1.tgz 可作为同一命令的本地路径或下载 URL 参数。已独立安装 Assembler 的用户可保留现有安装。
验证包括全量测试、发布打包与零漏洞生产依赖审计;四种启用顺序、持久选择和卸载恢复回归;官方 stock DSH 的实际请求与 Trace;临时真实 Web profile 中的单包安装、独立安装共存和移除 Tavern 后继续使用。未新增原生 Windows、官方桌面壳或在线模型提供方验收。
English
Tavern 3.0.1: single-package installation and Assembler coexistence
Installing Tavern alone now supplies standard Assembler v1.1.0 and automatically loads its Host and browser entries. GitHub-based Market installation uses the same composition entry.
An independently enabled Assembler takes ownership in either installation order, leaving one set of hooks, routes and UI entries. Tavern restores its bundled instance after independent removal. Default storage, saved strategies and session selections are retained; removing Tavern preserves independently enabled Assembler. Custom storage directories must be aligned as documented. Memory Manager v1.0.0 and the advanced core extension remain optional.
Target: DSH 0.2.0-rc.2, requiring Node.js ^22.19.0 || >=24.0.0 to run DSH. Stop the target Host, run dsh plugin --profile web add pmp-dsh-tavern@3.0.1, then restart. The attached tarball is also installable by local path or download URL. Existing independent Assembler installations may remain enabled.
Validation covers full tests, release packaging, zero-vulnerability production audit, all four enablement orders, persistence and removal, real stock DSH requests/Trace, and a disposable Web profile with single-package installation, coexistence, and independent operation after Tavern removal. Native Windows, the official desktop shell, and online providers were not newly exercised.
Tavern 3.0.0:独立装配、MVU 与完整请求 Trace
Tavern 3.0.0 将提示词装配接入独立的 Assembler v1.1.0,加入受限 MVU、只读提示词模板与完整的历史请求 Trace,并让下载缓存随环境备份和拷贝保留。DSH 继续拥有原生会话、工具、权限、执行与持久历史;卸载 Tavern 后仍可使用原生 DSH 并阅读原会话。
主要变化
- 独立提示词装配:Tavern 内嵌面板与 Assembler 的设置入口共享策略库和会话绑定。支持资源位置、深度、角色、来源解析与预设拥有的历史过滤;标准策略通过 DSH 公开接口运行。进阶排列另需可选核心扩展与 request-assembly 协议 1,安装标准插件不会修改核心。
- MVU 与提示词模板:提供变量初始化、受限 schema、回复更新、分支独立状态和受限卡片读写。只读模板可组合内容引用与 ST 宏;状态、解析与权限保留在各自来源。支持范围见 MVU 与提示词模板。
- 完整的历史请求 Trace:按原始顺序展示已核验的 system/user/assistant/tool 消息,system 贡献可分模块查看。历史详情来自 DSH 持久记录,不用当前预览替代旧请求;MVU 面板默认折叠,展开后才读取。
- 环境内下载缓存:外部 JS/HTML 和固定开场数据存入 Tavern 数据目录,跨客户端共享相同来源字节,环境拷贝后可恢复。旧 IndexedDB 缓存在原浏览器首次访问时迁入,保留原副本且不覆盖 Host 记录。缓存不自动授予脚本执行权限;图片仍使用浏览器临时缓存。
- RP 使用与恢复:改善开场草稿、开场白切换、长回复 swipe 和卡片生命周期;无关旧会话日志缺失或损坏时,健康 RP 分支仍可使用,同时保留直接错误和诊断。
- 可选 Memory Manager:Memory Manager v1.0.0 可统一查看资源、编辑存取规则和观察应用记录。Tavern 不依赖它,卸载后来源恢复默认行为,原会话与资源保留;通用资源装配路径另需协议 1。
安装与升级
目标为 DSH 0.2.0-rc.2,运行 DSH 要求 Node.js ^22.19.0 || >=24.0.0。先备份数据、停止目标 Host,并确认已初始化 web profile;随后显式启用两个 bundle:
dsh plugin --profile web add github:Player-MINEPIG/dsh-prompt-assembler#v1.1.0
dsh plugin --profile web add github:Player-MINEPIG/dsh-tavern#v3.0.0可选的资源管理扩展在同一 profile 安装:
dsh plugin --profile web add github:Player-MINEPIG/dsh-memory-manager#v1.0.0安装完成后重启 DSH。其他 profile、源码安装、备份和卸载方法见安装说明。
从 Tavern 2.5.x 升级需额外启用 Assembler。启动时只合并旧策略中缺少的条目并保留旧文件;已有资源、设置、会话与历史保留。旧策略没有 backend 字段时仍按进阶策略处理,需要对应核心能力,详见接入说明。已经迁移到 V4 的历史引用无需再次转换;更早格式按迁移指南处理。
验证与支持范围
Node.js 20/22 的独立测试、发行包检查、生成 bundle 一致性检查及生产依赖审计均通过;另有目标 DSH 官方模块、隔离 Host 和浏览器验证覆盖装配、Trace、MVU 与缓存迁移/环境拷贝。本次没有新增原生 Windows、完整官方桌面壳、真实在线 Provider 或第三方 memory-archive 联测。
支持嵌入 DSH 的 Web/桌面前端与已有 v1/v2/v3 API。卡片脚本默认关闭,MVU、模板与 Helper 兼容均有明确边界,不提供完整酒馆助手或任意脚本兼容。完整说明见变更记录和安全策略。
English release notes
Tavern 3.0.0: independent assembly, MVU and complete request Trace
Tavern 3.0.0 integrates independent Assembler v1.1.0, adds scoped MVU, read-only prompt templates and complete historical request Trace, and carries downloaded caches with environment backups and copies. DSH retains ownership of native sessions, tools, permissions, execution and durable history. Native DSH and original sessions remain usable after removing Tavern.
▶ Promo video · English README · 中文
Highlights
- Independent prompt assembly: Tavern’s embedded panel and Assembler’s Settings entry share strategies and session bindings. Resource position, depth, role, source parsers and preset-owned history filtering are supported. Standard strategies use public DSH interfaces. Advanced placement requires the optional core addon and request-assembly protocol 1; installing standard plugins does not modify core.
- MVU and prompt templates: variable initialization, restricted schemas, reply updates, branch-specific state and scoped card reads/writes. Read-only templates combine content references and ST macros; each source retains state, parsing and permissions. See MVU and prompt templates.
- Complete historical request Trace: verified system/user/assistant/tool messages appear in their original order, with system contributions shown as separate modules. Historical details come from DSH durable records rather than current previews. The MVU section reads only after expansion.
- Environment-backed downloads: external JS/HTML and fixed opening data persist in Tavern’s data directory, share identical source bytes across clients and recover after environment copies. Legacy IndexedDB caches import on first access in the original browser, preserving originals and existing Host records. Caching does not grant script execution permission; images still use temporary browser caching.
- RP usability and recovery: improved opening drafts, greeting navigation, long-reply swipe and card lifecycles. Healthy RP branches remain usable when unrelated older session logs are missing or corrupt, while direct errors and diagnostics remain visible.
- Optional Memory Manager: Memory Manager v1.0.0 provides resource inspection, retrieval rules and observed application facts. Tavern does not require it. Removing it restores source defaults and preserves sessions and resources; generic resource assembly additionally requires protocol 1.
Installation and upgrade
The target is DSH 0.2.0-rc.2, requiring Node.js ^22.19.0 || >=24.0.0 when running DSH. Back up data, stop the target Host and ensure the web profile is initialized, then explicitly enable both bundles:
dsh plugin --profile web add github:Player-MINEPIG/dsh-prompt-assembler#v1.1.0
dsh plugin --profile web add github:Player-MINEPIG/dsh-tavern#v3.0.0Optional resource management can be installed in the same profile:
dsh plugin --profile web add github:Player-MINEPIG/dsh-memory-manager#v1.0.0Restart DSH after installation. See installation for other profiles, source installation, backups and removal.
Upgrading from Tavern 2.5.x additionally requires enabling Assembler. Startup merges only missing legacy strategy entries and retains the old file; resources, settings, sessions and history remain. Legacy strategies without a backend field remain advanced and need the corresponding core capability; see integration. Existing V4 history references need no conversion; earlier formats follow the migration guide.
Verification and scope
Standalone Node.js 20/22 tests, release-package verification, tracked bundle consistency and production dependency audit passed. Target official DSH modules, isolated Host and browser checks additionally cover assembly, Trace, MVU and cache migration/environment copying. Native Windows, the complete official desktop shell, real online providers and third-party memory-archive integration were not newly tested.
The embedded DSH Web/Desktop frontend and existing v1/v2/v3 APIs remain supported. Card scripts default off. MVU, templates and Helper compatibility have explicit limits; full Tavern Helper and arbitrary script compatibility are not provided. See the changelog and security policy.
v2.5.1:LaTeX 数学公式渲染 / LaTeX math rendering
v2.5.1 — LaTeX 数学公式渲染 / LaTeX math rendering
中文
RP 正文、开场白和静态 HTML 导出现在支持 LaTeX 数学公式:行内 $…$、\(…\),独立公式 $$…$$、\[…\]。支持分数、根号、积分、矩阵与多行对齐,默认启用,无需额外控制按钮、远程脚本或字体。
- 与 Markdown 强调、列表、链接、表格、折叠块和行内 HTML 文字组合;常见金额、代码和 HTML 属性保持原样。完整 HTML 模板与交互卡片内部不自动解析公式。
- 处理公式符号与 Markdown 强调的冲突,避免公式改变周围内容的样式;长公式可横向滚动,流式闭合后排版,历史消息保持稳定。
- 公式使用本地 KaTeX → MathML → DOMPurify 路径;禁用公式中需要显式授权的外部资源和 HTML 扩展命令,限制宏展开与尺寸,错误公式回退源码。
继续支持 DSH 0.2.0-rc.2。从 Tavern 2.5.0 升级无需迁移会话、Trace、timeline 或设置,HTTP API、原始消息、提示词和 JSONL 保持原合同。停止目标 Host 后更新插件,再重启:
dsh plugin --profile web add github:Player-MINEPIG/dsh-tavern#v2.5.1需要支持原生 MathML 的现代浏览器。这不是完整 LaTeX 文档编译器;字面 $x$ 请写成 \$x\$ 或放入代码。详见使用说明、显示合同和架构图。
English
RP messages, greetings and static HTML exports now support LaTeX math: inline $…$ / \(…\) and display $$…$$ / \[…\]. Fractions, roots, integrals, matrices and aligned equations are enabled by default without another toggle, remote script or font.
- Compose math with Markdown emphasis, lists, links, tables, details and inline HTML text. Common prices, code and HTML attributes stay literal. Complete HTML templates and interactive-card interiors do not auto-parse formulas.
- Keep TeX operators out of Markdown emphasis, preserve surrounding styles, scroll wide display equations, render closed streaming expressions and retain unchanged historical DOM.
- Use local KaTeX → MathML → DOMPurify with external-resource and HTML extension commands requiring explicit authorization disabled within formulas, bounded macro expansion and sizes, and source fallback for invalid formulas.
The target remains DSH 0.2.0-rc.2. Upgrading from Tavern 2.5.0 needs no session, Trace, timeline or settings migration. HTTP APIs, original messages, prompts and JSONL retain their contracts. Stop the target Host, install the pinned tag with the command above, then restart.
A modern browser with native MathML is required. This is not a full LaTeX document compiler; escape literal $x$ as \$x\$ or use code. See usage, presentation boundaries and architecture.
v2.5.0:DSH 0.2.0-rc.2 适配、前端更新与持久操作日志
中文
本版本适配 DSH 0.2.0-rc.2,整合更新后的嵌入式前端与持久操作日志。前后端仍作为同一个插件运行在 DSH Web 和桌面端中,DSH 继续拥有会话历史与执行权威。
本次更新
- RP 显示与交互:用户头像、消息及周目头像覆盖;可预览、导入导出的气泡样式;开场白与正文共用布局。可选交互卡在受限解释器中运行,脚本默认关闭,发送消息仍需卡片外确认。
- 错误与隔离:RP 页面直接显示具体 DSH 错误;补充桌面请求令牌机制,隔离消息样式并阻止静态富文本自动加载外部资源。
- 持久操作日志:新增有界日志存储、操作关联、查询筛选与分页导出。日志可跨 Host 重启保留;创建或分支部分失败时,保留已确认的会话创建身份。操作日志不替代 DSH 历史或 Prompt Trace。
- 依赖维护:升级 DOMPurify 至 3.4.16,纳入上游安全修复。
- 文档与产品范围:同步双语文档及整体架构图、DSH 依赖交互图。项目继续维护嵌入 DSH 的第一方前端,不额外开发独立 Web UI;第三方仍可使用可组合 API。
升级
仅支持 DSH 0.2.0-rc.2;运行时要求 Node ^22.19.0 || >=24.0.0。请备份数据并停止目标 Host,再更新对应 profile 中的插件。桌面 profile 由桌面应用管理,请在插件管理页按官方流程卸载旧包、安装新包,并完整重启桌面应用。
Web profile 的固定版本安装命令:
dsh plugin --profile web add github:Player-MINEPIG/dsh-tavern#v2.5.0已经迁移到 V4 的会话与 Tavern 引用无需再次转换。更早格式请按迁移指南处理。
后续方向
后处理提示词、MVU 适配、酒馆 preset 脚本适配,以及不同提示词注入方式(包括 PR #14 的运行时世界书尾部注入提案)属于未来工作,不包含在 2.5.0 中。受限交互卡不代表完整 Tavern Helper、MVU 或 preset 脚本兼容。
English
Version 2.5.0 targets DSH 0.2.0-rc.2 and integrates the updated embedded frontend with persistent operation logs. Frontend and backend ship as one plugin inside DSH Web/Desktop; DSH remains authoritative over session history and execution.
Changes
- User avatars and message/playthrough overrides, previewable and portable bubble styles, shared greeting/message layout, and opt-in restricted interactive cards. Scripts default off; sending a message requires confirmation outside the card.
- Concrete DSH errors in RP, desktop request tokens, message-style isolation and blocking of automatic external resources in static rich text.
- Bounded persistent operation logs with correlation, filtering and paginated export. Records survive Host restarts, and partial create/fork failures retain confirmed creation identities. Logs do not replace durable history or Prompt Trace.
- DOMPurify updated to 3.4.16 with upstream security fixes.
- Updated bilingual documentation, the architecture overview and interactive DSH dependency diagrams. The project maintains one embedded first-party frontend and will not build an additional standalone Web UI. Third-party clients can still compose the public APIs.
Upgrade
Only DSH 0.2.0-rc.2 is supported; the runtime requires Node ^22.19.0 || >=24.0.0. Back up data and stop the target Host before updating its plugin. The desktop profile is managed by the desktop application: use its plugin manager to replace the old package and fully restart the app afterward.
For a Web profile:
dsh plugin --profile web add github:Player-MINEPIG/dsh-tavern#v2.5.0Already migrated V4 sessions and Tavern references require no further conversion. For earlier formats, follow the migration guide.
Prompt post-processing, MVU, Tavern preset scripts and alternative injection strategies, including PR #14, remain future work. Restricted cards do not imply full Tavern Helper, MVU or preset-script compatibility.
v2.4.3:DSH 0.1.7-rc.1 兼容更新与文档修正
本次为兼容性更新,适配 DSH 0.1.7-rc.1,并修复工具调用后 RP 对话显示失败的问题。
Tavern 2.4.3 仅支持 DSH 0.1.7-rc.1。 请同步升级 Host 和插件。
2.4.2 发布后发现部分文档未同步,现已撤回。2.4.3 补齐文档说明,运行代码与已验收的 2.4.2 一致;已安装 2.4.2 的用户无需额外数据迁移。
兼容与迁移
- 更新对应 rc.1 的 crypto 依赖声明,保持 Cordis 4.0.4,通过新版 Host 的安装与启动兼容性检查,无需授予版本例外。
- 离线历史引用迁移工具增加对已验证 rc.1 官方格式库的支持,保留 alpha.1/alpha.2 支持;未验证版本仍会明确拒绝。
- 从 Tavern 2.4.1 + DSH alpha.2 升级时,已有 V4 会话历史及 Tavern 引用无需再次转换。已验证原角色、周目和历史保留,升级后可继续对话。
- 同步双语安装、迁移、兼容性文档与架构图。
RP 对话修复
修复 RP 对官方 tool/developer 消息的校验遗漏,避免工具调用后出现「role is invalid」而无法显示或同步对话。这些上下文消息不会被当作用户输入或额外问答轮次,最终回复仍正常呈现。
本次未调整 Tavern 的 HTTP API 路由、字段或成功响应结构,第三方调用方无需因 2.4.1 → 2.4.3 修改现有调用。
文档修正
同步中英文 README、本版更新说明和安装标签,修正安全维护线、迁移工具支持列表、安装与启动校验说明、API 影响标题、示例注释和架构图源码引用,并补充发布前的文档核对流程。
安装与更新
目标环境:DSH 0.1.7-rc.1,Node.js ^22.19.0 || >=24.0.0。
dsh plugin --profile web add github:Player-MINEPIG/dsh-tavern#v2.4.3升级前停止 Host,并备份 DSH 数据、RP 工作区和会话日志。尚未完成 V4 迁移的旧环境,请保留旧日志,按升级指南操作。安装指南
验证
完整自动回归 704 项通过、0 失败、2 项跳过;另完成真实 Host 16 项检查、五类资源操作 37 项检查,以及 alpha.1/alpha.2 离线迁移回归、构建与打包预检。
隔离的 macOS DSH Host/浏览器已验证旧环境升级续聊、swipe 流式与中断、工具调用、重连、Trace 历史读取及长历史分页;生产依赖审计未报告已知漏洞。
模型交互使用官方 AgentLoop 与合成模型验证;真实外部提供商 HTTP 联调、Windows/Linux 桌面和未提供的外部预设夹具尚未验收。
完整变更: v2.4.1...v2.4.3