Skip to content

Releases: nxxxsooo/wechat-mp-publisher

wechat-mp-publisher v2.0.2

Choose a tag to compare

@nxxxsooo nxxxsooo released this 04 Aug 12:57

主要变化

  • 中文 README 现在是 GitHub 与 npm 的默认入口。
  • 英文文档保留在 README.en.md,中英文可互相切换。
  • 相对 npm 2.0.1 无运行时行为变化。

安装或更新

npx wechat-mp-publisher@latest install --target agents

已有受管安装重新运行同一命令即可更新;先用 status --target all 检查本地状态。

验证

35 项测试、终态文章校验和 npm 打包审计均通过;npm 通过 GitHub Actions OIDC 发布。

wechat-mp-publisher v2.0.0

Choose a tag to compare

@nxxxsooo nxxxsooo released this 13 Jul 06:36
38582d4

Public npm release of the WeChat Official Account agent workflow.

Highlights:

  • Install the skill into Agents, OpenCode, Claude Code, or Codex with one npx command.
  • Validate conservative WeChat HTML locally with preview and final modes.
  • Preview article HTML in a localhost-only sandbox with CSP.
  • Keep credentials out of the npm CLI and require explicit approval before draft creation.
  • Preserve unmanaged files during managed updates and removals.

Install:

npx wechat-mp-publisher@latest install --target agents

v1.0.1 — 踩坑指南 + 中文 README

Choose a tag to compare

@nxxxsooo nxxxsooo released this 19 Mar 18:38

🐛 修复

  • 代码块手机大空白修复:word-wrap:break-word → word-break:break-all
    • break-word 在 git clone https://... 的空格处断行,pre-wrap 拉伸产生巨大空白
    • break-all 只在溢出点断字符,保持 git clone 在同一行
    • WeChat 强制覆盖 white-space 为 pre-wrap,无法用 overflow-x:auto 水平滚动

📝 新增踩坑记录

问题 解决方案
代码块手机大空白 word-break:break-all 替代 word-wrap:break-word
<pre> 换行消失 用 <br/> 代替 \n
搜一搜自动链接 英文术语包在 <code> 里

📖 README 中文重写

  • 中文优先,内容来自 博客文章 和项目页面
  • 新增 Mermaid 架构图(AI → Skill → 微信 API 流程)
  • 新增 7 行踩坑速查表
  • 新增 badge、功能表格、兼容性矩阵

v1.0.0 — Initial Release

Choose a tag to compare

@nxxxsooo nxxxsooo released this 19 Mar 18:07

wechat-mp-publisher v1.0.0

一个 Skill 文件,让 AI 一句话帮你发公众号。

🚀 功能

  • Markdown → 微信 HTML 转换 — 全内联样式,移动端适配
  • 图片上传 — 文章内图 + 封面图上传到微信 CDN
  • 草稿管理 — 创建、列出、删除草稿
  • 多账号切换 — 凭证统一存密码管理器,一句话切换
  • 踩坑指南内置 — 6+ 次生产迭代总结的 HTML 兼容性坑

🔧 架构

  • 零依赖:一个 SKILL.md 文件 + curl
  • 无常驻进程:Token 每次现取,不需要 MCP 服务器
  • 凭证安全:从 Bitwarden 运行时读取,不落盘

📋 兼容性

工具 适配方式
OpenCode 原生支持,clone 即用
Claude Code SKILL.md 内容放入 CLAUDE.md
其他 AI 工具 curl 命令通用,可移植

安装

git clone https://github.com/nxxxsooo/wechat-mp-publisher ~/.config/opencode/skills/wechat-mp-publisher