Jim Liu 宝玉
876c6332f6
feat(baoyu-markdown-to-html): add HTML meta tags and quote stripping for frontmatter
...
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-02-03 11:49:07 -06:00
Jim Liu 宝玉
b9e48d9483
fix(baoyu-post-to-wechat): fix placeholder matching to avoid WECHATIMGPH_1 matching WECHATIMGPH_10
2026-02-03 11:06:41 -06:00
Jim Liu 宝玉
12f3d95639
fix(baoyu-post-to-x): improve Chrome reuse and placeholder matching in x-article
2026-02-03 11:01:09 -06:00
Jim Liu 宝玉
be20bdf0be
refactor(baoyu-article-illustrator): simplify SKILL.md and add Core Styles tier
...
- Extract detailed workflow to references/workflow.md
- Add Core Styles for quick selection (vector, minimal-flat, sci-fi, hand-drawn, editorial, scene)
- Add vector-illustration as recommended default style
- Add Illustration Purpose (information/visualization/imagination)
- Add default composition, character rendering, text styling to prompts
2026-02-02 09:11:43 -06:00
Jim Liu 宝玉
e563bbae7b
feat(baoyu-post-to-wechat): add newspic article type support
...
- Add ArticleOptions interface with news/newspic types
- Track all image media IDs for newspic format
- Restructure publishToDraft for dual article type handling
2026-02-01 19:49:14 -06:00
Jim Liu 宝玉
c63d1eec69
refactor(baoyu-xhs-images): enforce blocking first-time setup
...
- Mark preferences loading as BLOCKING operation
- Update workflow flow diagram and checklist
2026-02-01 19:49:05 -06:00
Jim Liu 宝玉
78d6d23359
refactor(baoyu-comic): enforce blocking first-time setup
...
- Mark preferences loading as BLOCKING operation
- Update workflow flow diagram
2026-02-01 19:48:56 -06:00
Jim Liu 宝玉
ec6781a231
feat(baoyu-article-illustrator): add reference image support
...
- Add reference image handling with direct/style/palette usage types
- Enhance first-time setup as blocking operation
- Update prompt construction with reference frontmatter format
2026-02-01 19:48:46 -06:00
Jim Liu 宝玉
edf9030675
feat(baoyu-cover-image): add reference image support and visual elements library
...
- Add --ref parameter for reference images (style/palette/direct usage)
- Add visual-elements.md with icon vocabulary by topic
- Enhance first-time setup as blocking operation
- Remove character limits from titles, use original source titles
- Update prompt template with reference handling
2026-02-01 19:48:37 -06:00
Jim Liu 宝玉
dbab83ff82
feat(baoyu-markdown-to-html): add remark-cjk-friendly for CJK emphasis
...
Preprocess markdown with remark-cjk-friendly to properly handle
CJK emphasis markers before HTML conversion.
2026-02-01 02:14:12 -06:00
Jim Liu 宝玉
478e66a93a
docs(baoyu-infographic): clarify AskUserQuestion usage
...
Emphasize combining multiple questions into single call.
2026-02-01 02:14:06 -06:00
Jim Liu 宝玉
3a5866eb4b
refactor(baoyu-format-markdown): use remark-cjk-friendly for CJK emphasis
...
Replace custom CJK emphasis handling with remark-cjk-friendly library,
significantly simplifying the codebase.
2026-02-01 02:13:58 -06:00
Jim Liu 宝玉
e9342a16f8
fix(baoyu-xhs-images): remove notebook style, add backup rules for prompts and images
2026-01-29 22:01:47 -06:00
Jim Liu 宝玉
5cb86d8e51
feat(baoyu-slide-deck): add backup rules for source, prompt, and slide image files
2026-01-29 22:01:42 -06:00
Jim Liu 宝玉
66ed08f010
feat(baoyu-infographic): add backup rules for source, analysis, prompt, and image files
2026-01-29 22:01:22 -06:00
Jim Liu 宝玉
b179166d28
feat(baoyu-cover-image): add backup rules for source and prompt files
2026-01-29 22:01:17 -06:00
Jim Liu 宝玉
4805526649
feat(baoyu-comic): add backup rules for source, character sheet, prompts, and page images
2026-01-29 22:00:59 -06:00
Jim Liu 宝玉
89159bf86e
feat(baoyu-article-illustrator): add backup rules for source, prompt, and image files
2026-01-29 22:00:37 -06:00
Jim Liu 宝玉
62866426c5
feat(baoyu-xhs-images): add notebook and study-notes styles with mindmap and quadrant layouts
...
- notebook: hand-drawn infographic style with watercolor rendering and Morandi palette
- study-notes: realistic handwritten photo style with blue pen, red annotations, yellow highlighter
- mindmap: center radial layout (4-8 branches)
- quadrant: four-quadrant / circular section layout
2026-01-29 20:59:24 -06:00
Jim Liu 宝玉
28a7db6129
chore: release v1.25.4
2026-01-29 17:17:58 -06:00
Jim Liu 宝玉
058d25d02c
feat(baoyu-format-markdown): add content type detection and CJK punctuation handling
2026-01-28 22:31:25 -06:00
Jim Liu 宝玉
18b71157db
feat(baoyu-markdown-to-html): add CJK content pre-check step
...
Suggest formatting with baoyu-format-markdown before conversion
to fix bold markers with punctuation issues.
2026-01-28 21:49:47 -06:00
Jim Liu 宝玉
81e96ee43c
feat(baoyu-post-to-wechat): add API publishing and external theme support
...
- Add wechat-api.ts for direct API-based article publishing
- Support plain text, HTML, and markdown inputs with auto-conversion
- Add external theme discovery from MD_THEME_DIR environment variable
- Improve CSS inlining with juice library integration
- Support WeChat API credentials via .baoyu-skills/.env
2026-01-28 21:37:40 -06:00
Jim Liu 宝玉
5f994589b3
feat(baoyu-markdown-to-html): add markdown to HTML converter skill
...
Converts markdown to styled HTML with inline CSS, code highlighting,
math, PlantUML, footnotes, alerts, and WeChat-compatible themes.
2026-01-28 21:37:30 -06:00
Jim Liu 宝玉
40363194be
feat(baoyu-format-markdown): add markdown formatter skill
...
Formats plain text or markdown with frontmatter, titles, summaries,
headings, bold, lists, code blocks, and CJK typography fixes.
2026-01-28 21:37:23 -06:00
Jim Liu 宝玉
4d3957ca06
fix(baoyu-post-to-x): ensure Apply button click closes modal before continuing
2026-01-28 14:54:39 -06:00
Jim Liu 宝玉
40fadcb1f6
docs: emphasize updating prompt files before regenerating
2026-01-28 13:56:35 -06:00
Jim Liu 宝玉
fa89eaf2f7
refactor(baoyu-image-gen): default to sequential generation
2026-01-28 13:14:39 -06:00
jianzhang50
907c8ab852
Adapting baoyu-image-gen to the Tongyi Text-to-Image Model
2026-01-28 09:04:57 +08:00
Jim Liu 宝玉
b1af3a3e45
fix(baoyu-post-to-wechat): improve title extraction, summary auto-fill, and content verification
2026-01-27 10:06:11 -06:00
Jim Liu 宝玉
0727296592
Merge pull request #23 from AliceLJY/feat/reuse-existing-chrome
...
feat(baoyu-post-to-wechat): reuse existing Chrome instead of requiring all windows closed
2026-01-27 08:03:46 -06:00
Jim Liu 宝玉
366630f8c3
fix(baoyu-compress-image): rename original as backup instead of deleting
2026-01-27 00:59:30 -06:00
安闲静雅
6bfafe0ec5
feat(baoyu-post-to-wechat): reuse existing Chrome instead of requiring all windows closed
...
Previously, the script always launched a new Chrome instance, which failed
when Chrome was already running due to profile lock conflicts on macOS.
Users had to close all Chrome windows before publishing.
This change adds auto-detection of existing Chrome debug ports and reuses
an already-logged-in WeChat tab when available, falling back to launching
a new instance only when no existing Chrome is found.
Changes:
- cdp.ts: add tryConnectExisting() and findExistingChromeDebugPort()
- wechat-article.ts: try existing Chrome before launching new one,
reuse logged-in WeChat tab (identified by token= in URL),
add waitForElement() for reliable menu detection,
add --cdp-port option for manual override,
fix process not exiting after completion
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-27 13:16:33 +08:00
Jim Liu 宝玉
40f4d2f730
refactor(baoyu-cover-image): replace 20 styles with 5D palette×rendering system
...
Migrate from 4-dimension (Type×Style×Text×Mood) to 5-dimension
(Type×Palette×Rendering×Text×Mood) system. 9 palettes × 6 renderings
= 54 combinations replacing 20 fixed styles. Add style presets for
backward compatibility, v2→v3 schema migration, and new reference
structure (palettes/, renderings/, workflow/).
2026-01-26 11:32:30 -06:00
Jim Liu 宝玉
1afa6f5a58
refactor(baoyu-post-to-x): simplify image placeholders from bracket format to XIMGPH
2026-01-25 21:05:08 -06:00
Jim Liu 宝玉
977598d5ae
feat(baoyu-post-to-wechat): add theme selection, HTML preview, and simplify image placeholders
2026-01-25 21:05:04 -06:00
Jim Liu 宝玉
eb738aa61a
feat(baoyu-cover-image): add default_output_dir preference with output directory selection
2026-01-25 21:04:59 -06:00
Jim Liu 宝玉
e9a030f917
feat(baoyu-article-illustrator): add imgs-subdir output option and improve style selection
2026-01-25 21:04:56 -06:00
Jim Liu 宝玉
ec1743592c
fix(baoyu-post-to-wechat): fix regressions from Windows compatibility PR
...
- Fix broken md-to-wechat-fixed.ts/wechat-article-fixed.ts filename
references that cause runtime crash (files were never renamed)
- Restore frontmatter quote stripping for title/summary values
- Restore --title CLI parameter functionality (was silently ignored)
- Fix summary extraction to properly skip headings, quotes, lists
- Fix argument parsing to reject single-dash args as file paths
- Remove debug console.error logs left from development
2026-01-25 16:09:24 -06:00
Jim Liu 宝玉
fe647a11bb
Merge pull request #20 from JadeLiang003/fix/windows-copy-paste-support
...
Fix: Windows compatibility for baoyu-post-to-wechat
2026-01-25 16:04:01 -06:00
JadeLiang
5a11b49b00
Fix: Windows compatibility for baoyu-post-to-wechat
...
## Problem
The baoyu-post-to-wechat skill failed on Windows due to:
1. `new URL(import.meta.url).pathname` returns incorrect path format on Windows
2. Copy/paste operations used `xdotool` (Linux tool) which doesn't exist on Windows
## Solution
1. **md-to-wechat.ts**: Use `fileURLToPath()` to correctly resolve file paths on Windows
2. **wechat-article.ts**: Use CDP `Input.dispatchKeyEvent` for copy/paste operations
- Replaces system-dependent tools (xdotool/osascript)
- Works consistently across Windows/macOS/Linux
- More reliable as it operates within Chrome session
## Changes
- Import `fileURLToPath` from 'node:url'
- Replace `new URL(import.meta.url).pathname` with `fileURLToPath(import.meta.url)`
- Replace system tool calls with CDP keyboard events for Ctrl+C and Ctrl+V
- Add platform-specific modifier handling (Cmd for macOS, Ctrl for Windows/Linux)
## Testing
- Tested successfully on Windows 11
- Markdown conversion works correctly
- HTML copy/paste to WeChat editor works correctly
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com >
2026-01-25 15:24:04 +08:00
Jim Liu 宝玉
04692515bb
fix: remove opacity of watermark
2026-01-24 17:23:04 -06:00
Jim Liu 宝玉
a39c8eb0bd
refactor(baoyu-article-illustrator): extract content to reference files
...
- Simplify SKILL.md by extracting usage and prompt templates
- Add references/usage.md for command syntax
- Add references/prompt-construction.md for prompt templates
- Add default_output_dir preference option
- Reorganize workflow from 5 to 6 steps with Pre-check phase
2026-01-24 17:19:42 -06:00
Jim Liu 宝玉
02b039f2ff
feat(baoyu-image-gen): add parallel generation documentation
2026-01-24 13:37:42 -06:00
Jim Liu 宝玉
db1179e057
chore: release v1.21.1
2026-01-24 13:25:15 -06:00
Jim Liu 宝玉
7b0c9ca372
chore: release v1.21.0
2026-01-24 03:33:10 -06:00
Jim Liu 宝玉
e7255efdd6
chore: release v1.20.0
2026-01-24 02:30:28 -06:00
Jim Liu 宝玉
b15a95e73d
chore: release v1.19.0
2026-01-24 01:24:41 -06:00
Jim Liu 宝玉
07af3c4c21
chore: release v1.18.3
2026-01-23 21:08:11 -06:00
Jim Liu 宝玉
7842e4d188
chore: release v1.18.2
2026-01-23 16:10:04 -06:00