Open
Conversation
Add `publish-image` CLI command that supports uploading multiple images with text content to WeChat MP draft box as newspic article type. Usage: wenyan publish-image "描述文字" -i img1.jpg img2.jpg img3.jpg Requires @wenyan-md/core ^3.0.5 for publishImageTextToWechatDraft. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
11a39d0 to
0cbb059
Compare
- serve.ts 新增 POST /publish-image 端点处理小绿书发布 - cli.ts publish-image 命令新增 --server/--api-key 选项 - 设置 --server 时走服务器模式,否则走本地模式 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2 tasks
- 新增 parseImageTextMarkdown 解析 frontmatter(author/cover)和图片引用 - -f 指定 markdown 文件为主流程,从中提取图片路径和文字内容 - 保留 -i 纯 CLI 参数模式作为向后兼容 - CLI 的 --author/--cover 可覆盖文件中的 frontmatter 值 - 传 relativePath 给 core 以正确解析相对路径图片 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
publish-imageCLI 命令,支持发布图片消息(小绿书)-i img1.jpg img2.jpg ...,最多 20 张)--cover),默认使用第一张图片@wenyan-md/core ^3.0.5(对应 PR: feat: 支持发布图片消息(小绿书) wenyan-core#13)Usage
Dependencies
需要先合并 core 仓库的 PR: caol64/wenyan-core#13
🤖 Generated with Claude Code