Repository navigation
Releases
v0.1.74 — 修复 DSH 工具参数 JSON 兼容问题
修复
修复部分 DSH 环境在准备模型请求时出现以下错误,导致资料库工具无法使用的问题:
tool "moki_library_context" parameters must be lossless JSON before schema projection
原因是 Zod 生成的 JSON Schema 对象还附带不可枚举的 ~standard 元数据,其中包含可调用的验证器。DSH 的严格无损 JSON 检查会拒绝该对象。现在全部 11 个资料库工具在注册前均转换为纯 JSON 参数描述,保留原有字段、默认值、约束和运行时参数校验。
验证:使用 DSH 实际的普通工具与 Code Mode 参数投影路径,在修复前复现同一错误、修复后全部通过;另通过工具注册、权限、实时选区、文件版本保护及精确选区编辑回归检查。已安装包也通过相同的 11 工具校验。
报错设备请更新插件到 0.1.74 或更新版本,再完全退出并重新打开 DSH,以重新注册工具。
Fix
Fix a model-request preparation failure in DSH environments that require lossless JSON tool schemas:
tool "moki_library_context" parameters must be lossless JSON before schema projection
Zod-generated JSON Schema objects also contain non-enumerable ~standard metadata with callable validators. DSH's strict lossless JSON check rejects that metadata. All 11 library tools now register the plain JSON representation of their parameter schemas, retaining their fields, defaults, constraints and runtime validation.
Validation reproduces the exact error before the fix and passes the actual DSH native / Code Mode projection paths afterward. Related registration, permission, live-selection, versioned-write and precise-selection editing checks also pass. The installed package passes the same 11-tool schema check.
Update affected devices to 0.1.74 or later, then fully quit and reopen DSH so the tools are registered again.
v0.1.73 — 修复采纳兼容问题,新增取消全部
修复与改进
- 修复更新插件后,旧版保存服务导致 HTML / 文本采纳提示“文本保存参数无效”的兼容问题。
- DSH 已保存同一份内容时,核对后直接完成采纳,不重复写入,也不刷新预览。真正的内容冲突仍保留草稿与待确认修改。
- 多次 AI 修改新增“取消全部”,同时保留“取消最新一次”和“采纳全部”。支持文本 / HTML、Word、Excel 和 PPT,恢复本轮 AI 编辑前的草稿,保留此前的手动编辑,不改写原文件。
- 取消操作检查最新待确认版本,避免覆盖后来开始的新任务或其他窗口的修改;支持仍在运行的旧版服务。
验证:16 项相关回归检查通过,涵盖新旧接口兼容、HTML 实际页面采纳、取消全部、窄侧栏、Office 三种格式、保存冲突保护和预览刷新。另用故障文件及其 3 次待确认记录的隔离副本,在 0.1.71 与 0.1.73 服务中验证采纳、重新打开、滚动位置和文件字节。
Fixes and improvements
- Fix HTML / text acceptance when updated previews connect to an older running host that rejects the new save parameter.
- Verify and acknowledge drafts already saved by DSH without rewriting the file or reloading the preview. Different source contents retain the draft and conflict protection.
- Add Discard all alongside Undo latest edit and Accept all for pending text / HTML, Word, Excel and PowerPoint edits. Restore the draft before the first pending AI edit, preserve earlier manual changes and leave the source file untouched.
- Guard cancellation against newer pending edits and independent changes, including compatibility with older running hosts.
Validation: 16 related regression checks passed. Isolated copies of the reported HTML document and its three pending edits were also verified against the 0.1.71 and 0.1.73 hosts, including acceptance, reopen, scroll position and unchanged source bytes.
安装后请完全退出并重新打开 DSH,以加载新版界面和服务。当前待确认草稿会继续保留。
Fully quit and reopen DSH after installation to load the updated interface and host. Pending drafts are preserved.
v0.1.72 · 预览刷新与保存同步
中文
- 文件顶部新增「刷新预览」,重新读取原文件;有未保存草稿时,可继续编辑、保存并刷新,或放弃草稿并刷新。
- 区分 DSH 更新编辑草稿与直接保存原文件,避免将外部保存误标为待保存修改。关闭自动映射任务文件时,已有文件映射仍会接收 DSH 更新通知。
- 相同内容已被保存时,确认保存会同步状态,不再误报冲突或重复覆盖。文本/HTML 可在核对基线后合并严格分离的改动;同一位置的不同改动仍保留草稿与冲突保护。
- Word、Excel、PPT 保存按内容核对版本,修复仅文件修改时间变化时的误报;导出结束后再次检查原文件,保护导出期间由其他操作保存的新内容。
- 采纳 AI 编辑仍保持当前页面、选区及缩放,不刷新编辑器。深浅色与中英文提示均已适配。
验证:12 项针对性回归检查通过,覆盖 HTML 选区、Office 重复保存、真正的并发冲突、草稿保护与保存后继续编辑。已在本机隔离 DSH 实例中通过实际点击复测刷新和「保存并刷新」,核对原文件内容;未调用 AI 模型。源码与发布包净化检查无发现。
升级后请先保存草稿,再完全退出并重开 DSH,以加载新版界面和保存逻辑。
English
- Adds Refresh preview to the file toolbar. Unsaved drafts prompt you to keep editing, save and refresh, or discard and refresh.
- Distinguishes draft updates from DSH writes to the original file. Existing mappings receive DSH file-update notifications even when automatic task-file mapping is disabled.
- Saving content that is already on disk acknowledges success without rewriting it. Text/HTML saves can reconcile strictly separated changes against a verified baseline; overlapping changes preserve the draft and conflict protection.
- Word, Excel and PowerPoint saves compare content versions instead of modification time alone. The source is checked again after export to protect changes made during export.
- Accepting AI edits still preserves the editor, selection, zoom and current view. Includes Chinese/English copy and light/dark theme support.
Validation: 12 focused regression checks passed, covering HTML selection editing, duplicate Office saves, concurrent writes, draft protection and continued editing after save. Actual pointer interactions in an isolated local DSH instance verified preview refresh and save-and-refresh, with source-file readback. No AI model was invoked. Source and package sanitization checks found no sensitive content.
Save your drafts, fully quit DSH, and reopen it after upgrading to load the new interface and save handling.
v0.1.71 · 更清晰的文件夹选择弹窗
中文
优化「添加到 MOKI资料库」弹窗,让目标位置和操作更清楚。
- 文件信息改为独立卡片,明确原文件保留在当前位置。
- 路径栏与搜索栏分开,支持返回上级、点击路径跳转和一键清除搜索。
- 文件夹列表使用带颜色的线条图标,改善悬停、键盘焦点和空状态。
- 底部固定显示目标文件夹与确认按钮,长文件名、窄窗口及低高度窗口下保持可用。
- 新建文件夹使用独立表单,支持六种颜色;「创建并进入」后可直接添加文件。
- 适配深浅色主题和中英文界面。
验证:构建完成;5 项文件添加/UI 回归检查与英文文案检查通过;在隔离的本机 DSH 环境复测搜索清除、新建彩色文件夹、添加和窄窗口布局。已核对安装包与本机安装文件一致,源码及发布包敏感信息扫描无发现。未调用 AI 模型。
升级后请先保存草稿,完全退出并重新打开 DSH,以加载新版界面。
English
Refines the “Add to MOKI Library” dialog with clearer destination navigation and actions.
- A separate file summary makes it clear that the original file remains in place.
- Separate path and search bars support parent navigation, breadcrumb links, and one-click search clearing.
- Colored folder icons, hover and keyboard focus states, and clearer empty states improve browsing.
- A fixed footer keeps the destination and confirmation visible in narrow or short windows.
- Folder creation has its own form with six colors; “Create and open” takes you directly into the new destination.
- Supports light/dark themes and Chinese/English interfaces.
Validation: production build, five filing/UI regression checks, and the English catalog check passed. The native DSH dialog was exercised in an isolated local profile for search clearing, colored folder creation, adding files, and narrow layouts. Installed files match the release archive. The source/package sanitization scan found no sensitive content. No AI model was invoked.
Save your drafts, fully quit DSH, and reopen it after upgrading to load the new interface.
v0.1.70 · HTML 模块选区与文件夹归档
HTML 页面新增模块选区;DSH 输出文件可右键归档到指定资料库文件夹。
- HTML 预览开启「选区模式」后,悬停识别模块、点击保持高亮,小鲸鱼快捷输入携带选中内容、元素位置与限长源码片段。支持图片、链接和容器;Alt+↑ 选择上级,Esc 清除。滚动时边框跟随,标签避开正文,选区模式内链接不会跳转。关闭后保留普通文字选区。
- 文件右键新增「添加到 MOKI资料库」:浏览或搜索文件夹、现场新建带颜色的文件夹、添加到当前位置。支持根目录、虚拟文件夹与本地映射目录;保留原路径,不复制或搬移文件。同一目录重复添加复用映射,其他位置的引用不受影响。
- 保留「在 MOKI资料库中打开」入口。手动添加无需开启自动映射或对话附件组件。中英文界面及文档已同步。
HTML previews now support pointer-based module selection with persistent highlights and precise DSH quick-chat references. Right-click DSH output files and choose Add to MOKI Library to browse/search destinations or create a colored folder. Original files stay in place; repeated additions to the same destination are deduplicated.
Validation covers HTML node editing, review/save without reload, module selection and scrolling, folder creation, cancellation, duplicates, mapped-folder refresh, persistence, language and existing chat routing. An isolated local DSH instance verified the native context menu, destination picker, new colored folder, file opening and module quick input. These native UI checks did not invoke a model. Source/package privacy checks passed and all 77 installed files match the release archive.
请保存当前工作后,完全退出并重新打开 DSH 加载新版。Save your work and fully restart DSH to load the update.
v0.1.69 · HTML 选区协作、生成文件打开与文件夹颜色
新建文件夹时可选择六种颜色,支持深浅色显示并持久保存。
- HTML 渲染预览支持选中文字后点击小鲸鱼,输入指令并附带附件。按准确文本节点修改,保留标签和其他同名文字;改动高亮供用户采纳或取消。连续修改可逐次撤回,采纳保存不重载预览。
- DSH 生成文件卡片、改动查看页和文件右键菜单可在资料库中打开文件,复用已有映射;无需开启自动映射。
- 更新中英文操作说明。HTML 脚本继续禁用,文本替换会转义 HTML 字符。
Select a color when creating folders, edit rendered HTML selections with DSH, and open DSH output files in MOKI Library. AI edits remain drafts until the user accepts them; accepting saves without reloading the preview.
Validation: 16 focused checks passed, plus Word/PPT/Excel selection-edit and save/reopen regression. An isolated local DSH instance verified the native file context-menu opening and HTML selection quick input. Source/package sanitization found no sensitive content; all 77 installed package files matched the release archive.
保存当前工作后完全退出并重开 DSH,以加载新版。Save your work and fully restart DSH to load the update.
v0.1.68 · Accept and save in place
Accept AI edits and save without reloading the editor.
- Accept / Accept all now saves the reviewed result directly to the original file, keeping the live text or Office editor open.
- Retains the current slide, sheet, text selection, scroll and zoom. Word selection survives the review bar closing.
- Keeps the live Office worktree available for subsequent manual and AI edits. A later cancellation restores only that pending edit, leaving accepted content intact.
- Preserves pending review on source-file conflicts and prevents queued autosaves from restoring an already-saved draft.
- Allows browsing slides while review is pending, without treating navigation as a document edit.
- Updates English and Chinese usage guides and assistant guidance to match the new save behavior.
Validation: native embedded Word/Excel/PowerPoint review and save/reopen checks, text and selection collaboration, repeated-edit and conflict checks, native Univer workspace saving, and Office formula/selection regressions. Only synthetic test files were used. The package and tracked source were checked for personal paths, credentials and runtime data.
Save active drafts and fully restart DSH after updating to load the new editor code.
点击「采纳 / 采纳全部」会直接保存到原文件,保持当前编辑器,不刷新或退出页面。保留当前幻灯片、工作表、文字选区、滚动和缩放;可继续手动编辑或发起新的 AI 修改。后续取消仅撤回待确认的修改,已采纳内容保留;保存冲突时保留待确认结果。中英文使用说明已同步更新。
升级后请保存当前草稿,完全退出并重新打开 DSH。
v0.1.67 · Selection quick input
Click the whale beside a selection to open a compact DSH-style input. Write an instruction, add attachments, and send the captured content and position together. Sending from the side workspace returns focus to the main chat; main-window and standalone previews use their floating conversation.
- Uses DSH's native attachment upload and message submission. Existing chat drafts remain intact.
- Supports file picking, file drops and pasted images; Enter sends and Shift+Enter adds a line.
- Failed sends preserve the quick input for retry. Duplicate admission is prevented; switching file or session cancels pending uploads before sending.
- Matches DSH's rounded input surface, quote styling, attachment chips and circular add/send buttons in light and dark themes.
Validation: the 51-test library suite completed with 50 passes and one Office gateway startup timeout; that Office case passed separately. After the final UI change, all 11 focused collaboration and quick-composer tests passed. Isolated local DSH UI and real attachment-upload checks passed; model admission was intercepted because the QA profile had no account/model.
Save active drafts and fully restart DSH after updating. No personal library data, chats or credentials are included.
点击选区旁的小鲸鱼,就地输入指令、添加附件,发送时一起附带选中内容和位置。侧边工作区发送后进入主对话;主窗口和独立预览使用浮窗。界面同步采用 DSH 原生输入框的圆角、底色、引用和圆形按钮样式。原有草稿保持不变,发送失败可保留内容重试。升级后请保存草稿并完全重启 DSH。
0.1.66 · 修复 AI 编辑期间反复刷新
修复 Office 编辑时显示「AI 修改中」导致页面反复刷新的问题。进度状态和只读工具调用不再切换编辑器地址,当前页面及选区保持稳定;AI 写入的内容仍实时同步到画面。
AI 执行期间继续保护手动输入,实际修改完成后仍提供高亮、采纳和取消操作。原文件只在用户保存后更新。
Fixes repeated Office editor reloads while AI edits are in progress. Progress updates and read-only tool calls no longer change the editor URL, preserving the loaded view and selection. Incoming document changes still appear in the live viewer.
Manual input remains protected during AI work. Actual pending changes still use the existing highlight, accept and discard workflow; saving remains an explicit user action.
Validation: 47 automated checks passed, including a browser regression that covers repeated no-op operations and a real edit held in progress, plus native Office review controls for Word, Excel and PowerPoint and edit/save/reopen checks. The installed desktop package was verified against all 77 packaged files; other plugin dependencies were preserved.
Save open drafts and restart DSH after installing to load the updated editor.
0.1.65 — Side workspace conversations
侧边工作区点击小鲸鱼会将选区引用加入当前主对话框,并聚焦输入框。主窗口和独立预览窗口继续使用 DSH 对话浮窗。Alt+D 和「DSH 对话」按钮采用同样的打开规则。
从主窗口切回侧边工作区时,会恢复当前主会话,避免引用进入之前在浮窗中选择的历史会话。已有草稿保持不变;等待输入框就绪期间切换会话或关闭预览,会取消过期引用。
The whale now quotes the selection into the current main composer when the library is in the side workspace. Main-window and standalone previews keep their floating DSH conversations. Alt+D and the DSH conversation button follow the same routing.
Returning a document to the side workspace restores the current main session instead of a previously selected floating history session. Existing draft text is preserved; stale pending quotes are cancelled when switching sessions or closing the preview.
Validation: 46 automated checks passed, including main/side transitions, delayed input readiness, quote deduplication, session isolation and standalone-preview regressions. The installed package was also exercised in an isolated local DSH Web instance using its native composer: text selections and an empty Excel cell focused the main input in the side workspace, while the main-window selection opened a floating conversation. No messages were sent.
Save open drafts and restart DSH after installing to load the updated client.