Skip to content

feat: 支持小绿书 server 模式客户端发布#15

Closed
jrtxio wants to merge 1 commit intocaol64:mainfrom
jrtxio:feat/server-image-publish
Closed

feat: 支持小绿书 server 模式客户端发布#15
jrtxio wants to merge 1 commit intocaol64:mainfrom
jrtxio:feat/server-image-publish

Conversation

@jrtxio
Copy link
Copy Markdown

@jrtxio jrtxio commented Apr 20, 2026

Summary

  • 新增 uploadImageFile() / requestServerPublishImage() 客户端函数,用于将本地图片上传到服务器并请求发布小绿书
  • 新增 publishImageTextToServer() 编排函数,完成 health check → 上传图片 → 请求发布的完整 server 模式流程
  • 配合 wenyan-cli PR #27 实现小绿书的 server 模式支持

Test plan

  • pnpm typecheck 通过
  • 配合 wenyan-cli 的 wenyan publish -f post.md --type newspic --server <url> 命令进行端到端测试

- 新增 uploadImageFile() 将本地图片上传到服务器
- 新增 requestServerPublishImage() 调用服务器 /publish-image 端点
- 新增 publishImageTextToServer() 编排完整的小绿书 server 模式发布流程

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jrtxio jrtxio force-pushed the feat/server-image-publish branch from 3c5efd5 to c8e3cfe Compare April 21, 2026 04:30
@jrtxio
Copy link
Copy Markdown
Author

jrtxio commented Apr 21, 2026

上游已在 c74cd86 中用不同方式实现了小绿书 server 模式(通过 image_list frontmatter + 复用现有 renderAndPublishToServer 流程),本 PR 不再需要。

@jrtxio jrtxio closed this Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant