Skip to content

Openmd v0.2.0

Choose a tag to compare

@github-actions github-actions released this 19 Nov 12:17
· 195 commits to main since this release
e5977d1

新增 / Added

  • 新增日文、韩文 README,并同步四语安装、能力和限制说明。 / Add Japanese and Korean READMEs with the same installation, capability, and limitation guidance as the existing guides.
  • 随包提供 openmd/SKILL.md,说明非交互调用、JSON 回执字段、常见错误的下一步与隐私边界。 / Ship openmd/SKILL.md with non-interactive invocation, JSON receipt fields, common error next actions, and privacy boundaries.
  • 本地文档支持 25 种格式(含 TXT);[document] 使用自有胶水层连接成熟解析库,不再依赖 MarkItDown,安装体积约减少 65%。检测到 LibreOffice 或 Calibre 时才启用第二层转换。 / Support 25 local document formats (including TXT); [document] now uses Openmd glue with mature parsers instead of MarkItDown, reducing install size by about 65%. LibreOffice or Calibre is used as a second layer only when detected.
  • 保存当前页、登录提醒以及对话、字幕和表格结构块可用;未登录时给出登录链接和下一步。 / Save the current page, show login reminders, and preserve conversation, transcript, and table blocks; unauthenticated routes provide a login link and next action.
  • AI 对话导出改为读取已加载的页面:在 ChatGPT、Grok、DeepSeek、豆包、Gemini、千问、元宝的对话页点扩展即保存当前标签,按角色和轮次输出,保留列表、标题与表格;Agent 可用 openmd go <page.html> --as-snapshot --url <链接> 交给 Openmd 转换。范围标注为当前可见分支,生成中标为 partial。 / AI chat export now reads the already-loaded page: clicking the extension on ChatGPT, Grok, DeepSeek, Doubao, Gemini, Qwen or Yuanbao saves the current tab as role-ordered turns with lists, headings and tables; agents can hand a captured page to openmd go <page.html> --as-snapshot --url <link>. Coverage is the visible branch; in-progress replies stay partial.
  • 离线导入 ChatGPT 与 Claude 官方数据导出(--chatgpt-export / --claude-export 或自动识别),每个会话一份 Markdown,可按标题或时间筛选,与网页导出共用同步身份。 / Import official ChatGPT and Claude data exports offline (--chatgpt-export / --claude-export or auto-detect), one Markdown file per conversation with title/time filters and the same sync identity as web exports.
  • Word、PowerPoint、Excel 中的嵌入图片在原位置做本地 OCR,并标注“来源:OCR”;不可用时保留缺口并标为 partial。 / Embedded images in Word, PowerPoint and Excel are OCR'd locally in place and labelled as OCR; when unavailable the gap is kept and the result is partial.
  • openmd doctor 读取本机 GPU 与内存给出 OCR/ASR 档位建议(未实测的配置标“未验证”);openmd models install <档位> 只输出模型、大小与目标路径的计划,不自动下载。 / openmd doctor recommends OCR/ASR tiers from local GPU and memory (unmeasured setups are marked unverified); openmd models install <tier> prints a plan of models, sizes and target paths without downloading.
  • 本地聊天导出插件可按游标增量续导,新消息追加到同一文档,无新消息时报告 unchanged;读取聊天记录须显式 --enable-local-export。 / Local chat-export plugins resume incrementally from a cursor, appending new messages to the same document and reporting unchanged when nothing is new; reading chat history requires an explicit --enable-local-export.
  • 可选的 MCP 服务 openmd mcp(pip install "openmd-cli[mcp]"):提供保存链接或本地文件、保存 Agent 已加载的页面、查询任务回执、诊断四个工具,复用 CLI 的权限默认值与任务队列,可在限额内直接返回正文。 / Optional MCP server openmd mcp (pip install "openmd-cli[mcp]") with four tools — save a link or local file, save a page the agent already loaded, read a job receipt, and run diagnostics — reusing CLI permission defaults and the job queue, and optionally returning bounded body text.
  • AI 对话导出默认省略模型的思考过程并在来源说明中计数,--include-thinking 或扩展设置可保留为单独小节;公式保留 TeX,过大的内嵌图片以占位符代替并计数;标题去掉站点后缀,通用站名时改用会话标题或首条提问。 / AI chat exports omit model thinking by default and count it in the source note (--include-thinking or the extension setting keeps it as a separate section); formulas keep TeX, oversized embedded images become counted placeholders, and titles drop site suffixes, falling back to the conversation title or first prompt.
  • 脱敏问题包:openmd report feedback <任务号|page.html> --url <链接> -o <目录> 生成只含页面结构的问题包(正文替换为合成文字,属性按白名单处理,不含原文、cookie 与账号信息),检查后即可附到 issue;扩展设置中开启“保存出问题时,允许生成脱敏问题包”(默认关闭)后,保存结果不完整或失败时通知里会出现“生成问题报告”。 / Sanitized feedback packages: openmd report feedback <job-id|page.html> --url <link> -o <dir> writes a structure-only package (text replaced with synthetic text, allowlisted attributes, no original text, cookies or account data) to review and attach to an issue; with the extension option enabled (off by default), partial or failed saves offer “Generate problem report”.
  • MCP 第二版:openmd_save 支持一次提交多个链接或文件,长任务推送进度(客户端提供 progressToken 时),openmd_job 可取消任务,已保存结果以 openmd://jobs 资源提供;工具仍为 4 个。 / MCP v2: openmd_save accepts several sources at once, long jobs report progress when the client sends a progressToken, openmd_job can cancel, and saved results are exposed as openmd://jobs resources; still four tools.
  • 浏览器扩展在 Openmd 升级后自动同步并在空闲时自行重新加载,无需再手动执行 browser-setup;宿主不可用时给出明确修复提示。 / The browser extension syncs and reloads itself when idle after an Openmd upgrade, without a manual browser-setup; when the host is unusable it shows a clear fix.
  • 本地 ASR 模型准备命令 openmd asr prepare-models:流式生成并逐张量校验独立小分片副本,保留原模型;Qwen3 优先加载有效副本,并记录加载来源。 / Stream and verify separate small-shard local models, preserve originals, and prefer verified prepared copies with origin receipts.
  • Qwen3 与自动语言探测在可用物理内存低于预计峰值时明确拒绝加载;可配置余量仅产生内存偏紧警告并记入回执,自动路由不在拒绝后加载另一套本地模型。 / Qwen3 and automatic language detection refuse loading only below the estimated peak; configurable headroom produces advisory receipt warnings, with no local fallback after refusal.
  • 小鹅通长课程可通过本机配置明确授权听悟云转录,默认阈值 10 分钟;公开默认仍为本地 ASR,回执记录实测时长与选择理由。 / Explicit local opt-in for Tingwu cloud ASR on long Xiaoe lessons, with a configurable ten-minute threshold and selection receipts; public defaults remain local.
  • 右键转 Markdown:openmd shell-menu install 为当前用户添加“用 Openmd 转成 Markdown”菜单,右键文档在旁边生成 .md,右键文件夹生成保留子目录的 <文件夹名>-md 镜像;重跑跳过未变化的文件、保护已编辑的 Markdown,uninstall 可还原;已有同名的非 Openmd 菜单项时不覆盖也不删除。Windows 写当前用户注册表(Windows 11 在“显示更多选项”中),需先用 uv tool install openmd-cli 或 pipx 持久安装;macOS 与 Linux 的菜单实现尚未在真机验证。 / Right-click to Markdown: openmd shell-menu install adds a per-user “Convert to Markdown” action; a document gets a neighboring .md, a folder gets a <folder>-md mirror with subfolders kept; reruns skip unchanged files and keep edited Markdown, and uninstall restores the previous state; a same-name menu item that Openmd did not create is never overwritten or removed. Windows uses the current-user registry (under Show more options on Windows 11) and needs a persistent uv tool install openmd-cli or pipx install; the macOS and Linux actions are not yet verified on real desktops.
  • 帖子里的视频/音频推广到所有网页:扩展右键“用 Openmd 保存(含视频/音频文字版)”或“(含视频/音频文件)”,CLI 为 --video text|file;直接点图标不探测视频。YouTube、B 站、小宇宙等自带逐字稿的站点选“文件”时只下载并保存媒体,不重复转写;加密或受控来源只用于转写、不保存媒体。新增 [media] 可选依赖,提供 Openmd 管理的 yt-dlp,openmd doctor 显示其来源、版本和发布天数;下载失败会说明是需要登录、格式不可用、403/版本过期还是网络问题,并给出下一步。需要登录的站点(如 Reddit 视频)不会读取浏览器 cookie。 / Post video/audio now works on any page: the extension's “Save with Openmd (video/audio text)” and “(video/audio file)” menus, or --video text|file on the CLI; a plain icon click does not probe for video. Sites with their own transcript route (YouTube, Bilibili, Xiaoyuzhou, …) only download and keep the media in file mode instead of transcribing twice; encrypted or access-controlled sources are used for transcription only and never saved. The new optional [media] extra provides an Openmd-managed yt-dlp, and openmd doctor reports its source, version and age; failed downloads say whether login, an unavailable format, a 403/outdated tool or the network was the cause, with a next step. Sites that require login (such as Reddit video) are not given browser cookies.
  • 小红书笔记页点扩展时读取已加载页面,保存标题、正文、话题、公开显示名、发布时间和图片/视频列表;接口路线被站点拦截时提示在浏览器打开笔记后点扩展。抖音页面的快照不会被当作逐字稿保存,而是提示走媒体转写路线。 / Clicking the extension on a Xiaohongshu note reads the loaded page and saves the title, body, topics, public display name, publish time and image/video list; when the site blocks the API route, the next step is to open the note and click the extension. A Douyin page snapshot is never saved as a transcript; it points to the media transcription route instead.

优化 / Improved

  • openmd doctor 显示托管 OpenCLI 补丁是否全部命中当前版本、各路线最后一次真实验证日期(超过 30 天提示),并检查浏览器扩展的本地宿主与扩展副本是否可用。 / openmd doctor reports whether all managed OpenCLI patches match the pinned version, each route's last real verification date (flagging >30 days), and whether the browser host and extension copy are usable.
  • Agent 或脚本发起的非交互调用(--json、batch)不再改写用户的默认保存目录。 / Non-interactive agent or script calls (--json, batch) no longer overwrite the user's default save directory.
  • 独立的完整度核对和同步清单保护原地更新、未变化、用户编辑冲突和缺失恢复:created / unchanged / conflict_kept_user_edit / restored_missing。 / Independent completeness checks and the sync manifest protect created, unchanged, user-edit conflicts, and missing-file recovery states.
  • 浏览器读取默认在现有窗口的不激活后台标签中进行,任务标签默认静音并在完成后关闭;只使用托管 OpenCLI,openmd opencli 默认只读透传。 / Browser reads default to inactive background tabs in an existing window, owned tabs start muted and close after completion; managed OpenCLI is used, and openmd opencli is read-only by default.
  • 回执统一暴露 status、source_level、completeness、sync、login、next_action、error_code,便于 Agent 判断是否可用。 / Receipts expose status, source_level, completeness, sync, login, next_action, and error_code so agents can judge usability.
  • 托管 OpenCLI 安装根目录可通过本机 tools.opencli.root 配置,便于将工具放到独立运行时磁盘,默认路径保持兼容;测试默认隔离本机配置、用户目录和运行时,避免改动开发者工具与模型。 / Configure the managed OpenCLI root independently of preferences and browser sessions; tests isolate machine configuration, home and runtime paths to protect developer tools and models.
  • 有界预取有限 HLS 的 MPEG-TS 分片,保留加密与顺序语义;签名地址和内容密钥不落盘,复杂播放列表继续使用原 FFmpeg 传输。 / Bounded prefetch of finite MPEG-TS HLS preserves encryption and ordering, keeps signed locators and content keys off disk, and retains FFmpeg transport for complex playlists.
  • AI 对话:豆包深度研究开始时的状态提示不再单独成为一轮回答,按思考过程规则省略并计数;回答正文里的标题整体下沉到轮次标题之下并保持相对层级;来源说明里的轮次数与输出一致。 / AI chats: Doubao's deep-research status bubble no longer becomes its own answer turn and is omitted and counted like thinking; headings inside answers are shifted below the turn heading while keeping their relative levels; the turn count in the source note matches the output.

修复 / Fixed

  • ChatGPT 已加载页面中同一条提问带多个用户标记时不再被误判为“缺失用户轮”。 / A ChatGPT prompt carrying several user markers on a loaded page is no longer misreported as a missing user turn.
  • 任务状态与问题包只保存有界的脱敏回执,不再保存原始结果中的自由文本。 / Job status and feedback packages keep only the bounded receipt shape, never free text from the raw result.
  • ChatGPT 已加载页面的用户提问不再漏抓;页面存在提问而导出缺失时降级为 partial。各导出路线的角色名统一为小写标准值。 / User prompts on loaded ChatGPT pages are no longer dropped, and a missing prompt downgrades the export to partial; conversation roles are normalized across all export routes.
  • 未登录页面和登录墙会被拒收,并返回 login_required、登录链接和下一步,不再把登录页保存成正文。 / Reject unauthenticated pages and login walls with login_required, a login link, and a next action instead of saving the login page as content.
  • 修复托管 OpenCLI 路径隔离、浏览器标签生命周期及部分平台错误映射,使失败原因更明确。 / Fix managed OpenCLI path isolation, browser-tab lifecycle, and selected platform error mappings so failures are clearer.

更新 / Update

pip install -U openmd-cli
openmd browser-setup  # 仅 Windows:更新后重跑,同步扩展 / Windows only: rerun to sync extension

下载 / Download

系统 / OS CLI(Python 3.10+) 浏览器扩展 / Browser extension
Windows openmd_cli-0.2.0-py3-none-any.whl 支持 / Supported:openmd-extension-0.2.0.zip,解压后在 chrome://extensions 开发者模式加载 / unzip and Load unpacked
macOS openmd_cli-0.2.0-py3-none-any.whl 暂不支持浏览器扩展,CLI 可用 / Extension unavailable; CLI supported
Linux openmd_cli-0.2.0-py3-none-any.whl 暂不支持浏览器扩展,CLI 可用 / Extension unavailable; CLI supported