feat(export): JianYing/CapCut draft export - #99
Open
Alphaxiaoteng wants to merge 2 commits into
Open
Conversation
Add a 剪映草稿 (JianYing Draft) tab to the export dialog backed by capcut-cli: pick a draft name and target store (CapCut default / JianYing), with a note recommending JianYing 5.9.0 or earlier (6.0+ drafts are encrypted). Reuses the server-side export module and the export_jianying_draft agent tool for collecting timeline media, audio and caption cues.
JianYing draft tab: target store segmented control gains a custom-path mode (draftsDir input with ~ expansion), and the store choice, custom path and last draft name are persisted in localStorage so re-opening the export dialog keeps the user's setup. Verify script now asserts expandHomeDir edge cases.
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.
剪映 / CapCut 草稿导出
导出对话框新增「剪映草稿」tab:把 OpenChatCut 时间线(视频、音轨、字幕)通过开源 capcut-cli 写入本地 CapCut / 剪映草稿库,用剪映或 CapCut 打开即可继续剪辑与渲染。
功能
POST /api/external-agent/jianying-export(trusted editor 门禁):capcut-cli quickstart → add-video → add-audio → import-srt,媒体路径解析(profile mediaDir + worktree uploads)、~展开export_jianying_draft(MCP 可调):收集时间线 items + 字幕 cue → 调用服务端验证
~展开)实测成功server/external-agent/jianying-export.verify.ts:媒体路径解析校验