voxflow 1.15.0 → 1.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -0
- package/bin/voxflow.js +27 -0
- package/dist/index.js +1 -1
- package/dist/remotion-bundle/02a2fb2eb80bc7bf.woff2 +0 -0
- package/dist/remotion-bundle/052ca5351e5e06ba.woff2 +0 -0
- package/dist/remotion-bundle/05853dd28f4019cb.woff2 +0 -0
- package/dist/remotion-bundle/072ead3737f7c0d0.woff2 +0 -0
- package/dist/remotion-bundle/07d4248613c86a2e.woff2 +0 -0
- package/dist/remotion-bundle/0884a5c2d1d2d99b.woff2 +0 -0
- package/dist/remotion-bundle/0b0e185b2752095e.woff2 +0 -0
- package/dist/remotion-bundle/0e66c11bde067d91.woff2 +0 -0
- package/dist/remotion-bundle/0f7794cfba2c5d21.woff2 +0 -0
- package/dist/remotion-bundle/0fdbae5a4365783a.woff2 +0 -0
- package/dist/remotion-bundle/112.bundle.js +11 -0
- package/dist/remotion-bundle/112.bundle.js.map +1 -0
- package/dist/remotion-bundle/113.bundle.js +11 -0
- package/dist/remotion-bundle/113.bundle.js.map +1 -0
- package/dist/remotion-bundle/119cae0c4c16f7ed.woff2 +0 -0
- package/dist/remotion-bundle/14725f649fd1e78c.woff2 +0 -0
- package/dist/remotion-bundle/14abe9e3f95f7888.woff2 +0 -0
- package/dist/remotion-bundle/163.bundle.js +14678 -0
- package/dist/remotion-bundle/163.bundle.js.map +1 -0
- package/dist/remotion-bundle/1808c54072bf6d14.woff2 +0 -0
- package/dist/remotion-bundle/18948bec3e3012fe.woff2 +0 -0
- package/dist/remotion-bundle/1a661c60d0fc84fc.woff2 +0 -0
- package/dist/remotion-bundle/1af94941e1bc7e1e.woff2 +0 -0
- package/dist/remotion-bundle/1bee0219595f606c.woff2 +0 -0
- package/dist/remotion-bundle/1bfd5da7ce9d4ec4.woff2 +0 -0
- package/dist/remotion-bundle/1c158d56f1884f3f.woff2 +0 -0
- package/dist/remotion-bundle/1cf5e88e667610eb.woff2 +0 -0
- package/dist/remotion-bundle/1d431bd10f53c481.woff2 +0 -0
- package/dist/remotion-bundle/1d701a81a7670db2.woff2 +0 -0
- package/dist/remotion-bundle/1da0fecad4240f16.woff2 +0 -0
- package/dist/remotion-bundle/1ed14d3d0c5c63fe.woff2 +0 -0
- package/dist/remotion-bundle/1edfecf40e586f53.woff2 +0 -0
- package/dist/remotion-bundle/1f479711bc34b054.woff +0 -0
- package/dist/remotion-bundle/1f86e54a0ff5fcd1.woff2 +0 -0
- package/dist/remotion-bundle/2043ea87d9aabd11.woff2 +0 -0
- package/dist/remotion-bundle/20563c39ee8a0e40.woff2 +0 -0
- package/dist/remotion-bundle/20c231590fd12c44.woff2 +0 -0
- package/dist/remotion-bundle/20ce61713f754c07.woff2 +0 -0
- package/dist/remotion-bundle/21eb9306fce24bb1.woff2 +0 -0
- package/dist/remotion-bundle/244bf71c0cc851af.woff2 +0 -0
- package/dist/remotion-bundle/274d4cfc02bffbcb.woff2 +0 -0
- package/dist/remotion-bundle/275.bundle.js +21 -0
- package/dist/remotion-bundle/275.bundle.js.map +1 -0
- package/dist/remotion-bundle/2958f540b39513dc.woff2 +0 -0
- package/dist/remotion-bundle/2a168b98fd97722e.woff2 +0 -0
- package/dist/remotion-bundle/2d1f6373937ab55f.woff2 +0 -0
- package/dist/remotion-bundle/2d213ae47ff6daa9.woff2 +0 -0
- package/dist/remotion-bundle/2e4b1f04fcd05047.woff2 +0 -0
- package/dist/remotion-bundle/304170d98f4c4563.woff2 +0 -0
- package/dist/remotion-bundle/30d02e136e7a5642.woff2 +0 -0
- package/dist/remotion-bundle/3135562b52a714cd.woff2 +0 -0
- package/dist/remotion-bundle/313713af2c8144e9.woff2 +0 -0
- package/dist/remotion-bundle/325fa4108d2285b9.woff2 +0 -0
- package/dist/remotion-bundle/338e927ed3345e0c.woff2 +0 -0
- package/dist/remotion-bundle/35fc6b190365bc17.woff2 +0 -0
- package/dist/remotion-bundle/37a51f1122d4efc5.woff2 +0 -0
- package/dist/remotion-bundle/39a4d63e02736f5e.woff2 +0 -0
- package/dist/remotion-bundle/3a00e0d62dfc4171.woff2 +0 -0
- package/dist/remotion-bundle/3a6955e6561affe1.woff2 +0 -0
- package/dist/remotion-bundle/3c573945aef49b89.woff2 +0 -0
- package/dist/remotion-bundle/3cdbfbfa23b516a5.woff2 +0 -0
- package/dist/remotion-bundle/3e42f85a9e64ca8a.woff2 +0 -0
- package/dist/remotion-bundle/3e83eaf1ec859415.woff2 +0 -0
- package/dist/remotion-bundle/3f3c8c90de1250ee.woff2 +0 -0
- package/dist/remotion-bundle/434.bundle.js +205 -0
- package/dist/remotion-bundle/434.bundle.js.map +1 -0
- package/dist/remotion-bundle/44ffc6ca4d781692.woff2 +0 -0
- package/dist/remotion-bundle/4670d9c4580b09eb.woff2 +0 -0
- package/dist/remotion-bundle/479756881b302824.woff2 +0 -0
- package/dist/remotion-bundle/481b82134bfa9c82.woff2 +0 -0
- package/dist/remotion-bundle/48d27029626f4328.woff2 +0 -0
- package/dist/remotion-bundle/49b7b2a30329c511.woff2 +0 -0
- package/dist/remotion-bundle/4c8b25a1a9337045.woff2 +0 -0
- package/dist/remotion-bundle/4cba14788ca9259b.woff2 +0 -0
- package/dist/remotion-bundle/4cd6c589c004a6a7.woff2 +0 -0
- package/dist/remotion-bundle/4cd8d79c1021608d.woff2 +0 -0
- package/dist/remotion-bundle/4d8fa99b3f00f9f0.woff2 +0 -0
- package/dist/remotion-bundle/4e7805a643f86d53.woff2 +0 -0
- package/dist/remotion-bundle/4ff91be454542e3f.woff2 +0 -0
- package/dist/remotion-bundle/504cbcba1f63591b.woff2 +0 -0
- package/dist/remotion-bundle/5202d792e5791d6c.woff2 +0 -0
- package/dist/remotion-bundle/534db5ad4770cc1d.woff2 +0 -0
- package/dist/remotion-bundle/53b9568eb85f866b.woff2 +0 -0
- package/dist/remotion-bundle/543ad386ca171de9.woff2 +0 -0
- package/dist/remotion-bundle/54798e55bbf7976e.woff2 +0 -0
- package/dist/remotion-bundle/580.bundle.js +11 -0
- package/dist/remotion-bundle/580.bundle.js.map +1 -0
- package/dist/remotion-bundle/58d174d1193af6d1.woff2 +0 -0
- package/dist/remotion-bundle/591d29ff3ff53c80.woff2 +0 -0
- package/dist/remotion-bundle/5c28c4f4824383c6.woff2 +0 -0
- package/dist/remotion-bundle/5da9740d2ce894c8.woff2 +0 -0
- package/dist/remotion-bundle/6197735364642360.woff2 +0 -0
- package/dist/remotion-bundle/6265a4335724080f.woff2 +0 -0
- package/dist/remotion-bundle/633f5e4f6394daa7.woff2 +0 -0
- package/dist/remotion-bundle/637d95ace6a69c49.woff2 +0 -0
- package/dist/remotion-bundle/648e04a04dacff8f.woff2 +0 -0
- package/dist/remotion-bundle/64a6e83045a008b2.woff2 +0 -0
- package/dist/remotion-bundle/651.bundle.js +11 -0
- package/dist/remotion-bundle/651.bundle.js.map +1 -0
- package/dist/remotion-bundle/65e2a988c070facc.woff2 +0 -0
- package/dist/remotion-bundle/66a2f6ce5cc69105.woff2 +0 -0
- package/dist/remotion-bundle/690.bundle.js +3479 -0
- package/dist/remotion-bundle/690.bundle.js.map +1 -0
- package/dist/remotion-bundle/690ff55252ca715d.woff2 +0 -0
- package/dist/remotion-bundle/6a01a1cff49314fc.woff2 +0 -0
- package/dist/remotion-bundle/6cbc32670982986c.woff2 +0 -0
- package/dist/remotion-bundle/6d3cc42ae547f454.woff2 +0 -0
- package/dist/remotion-bundle/6d8f4cfa1ddc0830.woff2 +0 -0
- package/dist/remotion-bundle/6e4d7c6ae65e2dc3.woff2 +0 -0
- package/dist/remotion-bundle/6e86418bbcefb2e8.woff2 +0 -0
- package/dist/remotion-bundle/6ee02884b29cf7fb.woff2 +0 -0
- package/dist/remotion-bundle/6f436a74c9e3252c.woff2 +0 -0
- package/dist/remotion-bundle/78c8022f1657618b.woff2 +0 -0
- package/dist/remotion-bundle/7c5444169792bca4.woff2 +0 -0
- package/dist/remotion-bundle/7c86bddd9d997212.woff2 +0 -0
- package/dist/remotion-bundle/7e1284684767f584.woff2 +0 -0
- package/dist/remotion-bundle/7e81c17522d182b2.woff2 +0 -0
- package/dist/remotion-bundle/7eb87be198f7858c.woff2 +0 -0
- package/dist/remotion-bundle/8060c928f948aab5.woff2 +0 -0
- package/dist/remotion-bundle/80bc9dfbea2b35ae.woff2 +0 -0
- package/dist/remotion-bundle/811b83f69963bb48.woff2 +0 -0
- package/dist/remotion-bundle/813.bundle.js +117511 -0
- package/dist/remotion-bundle/813.bundle.js.map +1 -0
- package/dist/remotion-bundle/84df492e349f82e9.woff2 +0 -0
- package/dist/remotion-bundle/8501bfd73eb36f2b.woff2 +0 -0
- package/dist/remotion-bundle/854236a8376093fe.woff2 +0 -0
- package/dist/remotion-bundle/8571d74529082753.woff2 +0 -0
- package/dist/remotion-bundle/860bf44f8e6f4b5d.woff2 +0 -0
- package/dist/remotion-bundle/879.bundle.js +64 -0
- package/dist/remotion-bundle/879.bundle.js.map +1 -0
- package/dist/remotion-bundle/887dd482f848d56f.woff2 +0 -0
- package/dist/remotion-bundle/89b2132e85fbbb5a.woff2 +0 -0
- package/dist/remotion-bundle/8ba60d6c306010c2.woff2 +0 -0
- package/dist/remotion-bundle/8c7c4dadea897806.woff2 +0 -0
- package/dist/remotion-bundle/8c943f9999706f61.woff2 +0 -0
- package/dist/remotion-bundle/8f2a718c90575cc9.woff2 +0 -0
- package/dist/remotion-bundle/906b6edb3e1772c9.woff2 +0 -0
- package/dist/remotion-bundle/930ff9daccdf14eb.woff2 +0 -0
- package/dist/remotion-bundle/934db2f1c403c4d0.woff2 +0 -0
- package/dist/remotion-bundle/938.bundle.js +451 -0
- package/dist/remotion-bundle/938.bundle.js.map +1 -0
- package/dist/remotion-bundle/967.bundle.js +4462 -0
- package/dist/remotion-bundle/967.bundle.js.map +1 -0
- package/dist/remotion-bundle/9684a1093d3c02ce.woff2 +0 -0
- package/dist/remotion-bundle/973dcd0faa6116cc.woff2 +0 -0
- package/dist/remotion-bundle/9745400694e76cd8.woff2 +0 -0
- package/dist/remotion-bundle/999ef957bed3bdca.woff2 +0 -0
- package/dist/remotion-bundle/99a3d67c8b0f43e3.woff2 +0 -0
- package/dist/remotion-bundle/a0586c3e03127283.woff2 +0 -0
- package/dist/remotion-bundle/a0eb654fdae46269.woff2 +0 -0
- package/dist/remotion-bundle/a20e35d3b08f7994.woff2 +0 -0
- package/dist/remotion-bundle/a2dcaced7c8c25ab.woff2 +0 -0
- package/dist/remotion-bundle/a79255a972a2681a.woff2 +0 -0
- package/dist/remotion-bundle/a804b352cb9fec1a.woff2 +0 -0
- package/dist/remotion-bundle/aae7117164e1eabc.woff2 +0 -0
- package/dist/remotion-bundle/affd121385d0442d.woff2 +0 -0
- package/dist/remotion-bundle/b19a6083987ee0d7.woff2 +0 -0
- package/dist/remotion-bundle/b1b2bd04d8637981.woff2 +0 -0
- package/dist/remotion-bundle/b2c07f341486be87.woff2 +0 -0
- package/dist/remotion-bundle/b33d8f82e575c4ce.woff2 +0 -0
- package/dist/remotion-bundle/b366c0bed35ef491.woff2 +0 -0
- package/dist/remotion-bundle/b41e857ec1b85642.woff2 +0 -0
- package/dist/remotion-bundle/b420bb34ccf23e7f.woff2 +0 -0
- package/dist/remotion-bundle/b4f7bf4efb0c0ccf.woff2 +0 -0
- package/dist/remotion-bundle/b60fe5eca03cff93.woff2 +0 -0
- package/dist/remotion-bundle/b6bd31a336e64bce.woff2 +0 -0
- package/dist/remotion-bundle/b6d2befba3dfefeb.woff2 +0 -0
- package/dist/remotion-bundle/b75f39ab06c43bf4.woff2 +0 -0
- package/dist/remotion-bundle/b77880e8c413d4fd.woff2 +0 -0
- package/dist/remotion-bundle/b7e38ec441e4a77a.woff2 +0 -0
- package/dist/remotion-bundle/b83baa383ff0bf2b.woff2 +0 -0
- package/dist/remotion-bundle/b9ad7b6c0a11450a.woff2 +0 -0
- package/dist/remotion-bundle/baf84486e8ae3aaf.woff2 +0 -0
- package/dist/remotion-bundle/bc047b1f6869cffa.woff2 +0 -0
- package/dist/remotion-bundle/bf4f3ac6e93f33aa.woff2 +0 -0
- package/dist/remotion-bundle/bf6835ffec5897a2.woff2 +0 -0
- package/dist/remotion-bundle/bf8885f581eb1724.woff2 +0 -0
- package/dist/remotion-bundle/bundle.js +83376 -0
- package/dist/remotion-bundle/bundle.js.map +1 -0
- package/dist/remotion-bundle/c03f046bccd789d0.woff2 +0 -0
- package/dist/remotion-bundle/c0bb1f8962b73bc3.woff2 +0 -0
- package/dist/remotion-bundle/c1003f9a7db6e1cf.woff2 +0 -0
- package/dist/remotion-bundle/c15d83fb1e199515.woff2 +0 -0
- package/dist/remotion-bundle/c28e7e5d310f73ef.woff2 +0 -0
- package/dist/remotion-bundle/c2b840274db78aea.woff2 +0 -0
- package/dist/remotion-bundle/c3000e3299d4e45f.woff2 +0 -0
- package/dist/remotion-bundle/c83ce886e5288510.woff2 +0 -0
- package/dist/remotion-bundle/c87a5a64d4ac0918.woff2 +0 -0
- package/dist/remotion-bundle/c8a7e0d049e965fa.woff2 +0 -0
- package/dist/remotion-bundle/c949a35d3a3b1faf.woff2 +0 -0
- package/dist/remotion-bundle/c9618c9b9ac2bc78.woff2 +0 -0
- package/dist/remotion-bundle/ca3add3b84152d5b.woff2 +0 -0
- package/dist/remotion-bundle/cad9dd036408d707.woff2 +0 -0
- package/dist/remotion-bundle/cbb24916619df439.woff2 +0 -0
- package/dist/remotion-bundle/cc054f0b5514e177.woff2 +0 -0
- package/dist/remotion-bundle/ccc248ed9312bc71.woff2 +0 -0
- package/dist/remotion-bundle/cd9d623aa07af925.woff2 +0 -0
- package/dist/remotion-bundle/ce2ba7a321bd1247.woff2 +0 -0
- package/dist/remotion-bundle/cf72455f79a29b14.woff2 +0 -0
- package/dist/remotion-bundle/d267cbfefab452ac.woff2 +0 -0
- package/dist/remotion-bundle/d435cff46a64955f.woff +0 -0
- package/dist/remotion-bundle/d494d07f67e363f6.woff2 +0 -0
- package/dist/remotion-bundle/d7aa0cc1fa47bf38.woff2 +0 -0
- package/dist/remotion-bundle/d7c5ca93d885160a.woff2 +0 -0
- package/dist/remotion-bundle/d855d3e252db74e2.woff2 +0 -0
- package/dist/remotion-bundle/d8f13d47f02f82c2.woff2 +0 -0
- package/dist/remotion-bundle/d9567cce2ee11019.woff2 +0 -0
- package/dist/remotion-bundle/db8d4456fc75dd86.woff +0 -0
- package/dist/remotion-bundle/dc274628378c47ee.woff2 +0 -0
- package/dist/remotion-bundle/dc3e06947bb69903.woff2 +0 -0
- package/dist/remotion-bundle/dd67040ac3b6d523.woff2 +0 -0
- package/dist/remotion-bundle/e0b04bd488f953f4.woff2 +0 -0
- package/dist/remotion-bundle/e2a572ff95089370.woff2 +0 -0
- package/dist/remotion-bundle/e2e18a86b1c2b0cc.woff2 +0 -0
- package/dist/remotion-bundle/e3a78ee2fc9c6931.woff2 +0 -0
- package/dist/remotion-bundle/e654c9d547605a9f.woff2 +0 -0
- package/dist/remotion-bundle/e67a3a64c129927c.woff2 +0 -0
- package/dist/remotion-bundle/e6be28b4203cd6ce.woff2 +0 -0
- package/dist/remotion-bundle/e841907ad9b0a191.woff +0 -0
- package/dist/remotion-bundle/e889d1541c69fffa.woff2 +0 -0
- package/dist/remotion-bundle/e88ef8c76373a9e2.woff2 +0 -0
- package/dist/remotion-bundle/e9c72f4bc37defef.woff2 +0 -0
- package/dist/remotion-bundle/e9e35f863403a255.woff2 +0 -0
- package/dist/remotion-bundle/eb23b37b009375da.woff2 +0 -0
- package/dist/remotion-bundle/ee1342b741625721.woff2 +0 -0
- package/dist/remotion-bundle/f07da88543a57ec9.woff2 +0 -0
- package/dist/remotion-bundle/f522982115306f8a.woff2 +0 -0
- package/dist/remotion-bundle/f8449bd864e6d8bc.woff2 +0 -0
- package/dist/remotion-bundle/f906dd5bd95ff9ab.woff2 +0 -0
- package/dist/remotion-bundle/f9e9e9413e3c38bb.woff2 +0 -0
- package/dist/remotion-bundle/fa5a5b16280994a8.woff2 +0 -0
- package/dist/remotion-bundle/favicon.ico +0 -0
- package/dist/remotion-bundle/fb19c0517725599b.woff2 +0 -0
- package/dist/remotion-bundle/fcaf24232f684b9b.woff2 +0 -0
- package/dist/remotion-bundle/fe09e084a3eea8cf.woff2 +0 -0
- package/dist/remotion-bundle/ff38d5317df7345a.woff2 +0 -0
- package/dist/remotion-bundle/ffe7ea1ea08f455a.woff2 +0 -0
- package/dist/remotion-bundle/index.html +49 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaomei/communication/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaomei/communication/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaomei/communication/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaomei/communication/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaoxin/career/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaoxin/career/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaoxin/career/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaoxin/career/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaoyue/parenting/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaoyue/parenting/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaoyue/parenting/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaoyue/parenting/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/male-kefu-xiaoxu/time-trap/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/male-kefu-xiaoxu/time-trap/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/male-kefu-xiaoxu/time-trap/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/male-kefu-xiaoxu/time-trap/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/cognition/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/cognition/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/cognition/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/cognition/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/growth/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/growth/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/growth/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/growth/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/parenting/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/parenting/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/parenting/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/parenting/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/soothing/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/soothing/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/soothing/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/soothing/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-R2s4N9qJ/cognition/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-R2s4N9qJ/cognition/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-R2s4N9qJ/cognition/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-R2s4N9qJ/cognition/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-Bk7vD3xP/decision/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-Bk7vD3xP/decision/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-Bk7vD3xP/decision/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-Bk7vD3xP/decision/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-W1tH9jVc/manager/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-W1tH9jVc/manager/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-W1tH9jVc/manager/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-W1tH9jVc/manager/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-W1tH9jVc/manager/4.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-s5NqE0rZ/founder/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-s5NqE0rZ/founder/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-s5NqE0rZ/founder/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-s5NqE0rZ/founder/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/career-advice/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/career-advice/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/career-advice/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/career-advice/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/career-advice/4.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/founder-lesson/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/founder-lesson/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/founder-lesson/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/founder-lesson/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/founder-lesson/4.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/incident-review/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/incident-review/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/incident-review/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/incident-review/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/incident-review/4.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/learning-loop/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/learning-loop/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/learning-loop/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/learning-loop/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/learning-loop/4.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/meeting-closure/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/meeting-closure/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/meeting-closure/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/meeting-closure/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/product-update/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/product-update/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/product-update/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/product-update/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/research-reading/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/research-reading/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/research-reading/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/research-reading/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/sales-enablement/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/sales-enablement/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/sales-enablement/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/sales-enablement/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/sales-enablement/4.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/ai-life/card-0.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/ai-life/card-1.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/ai-life/card-2.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/ai-life/card-3.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/ai-life/card-4.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/ai-life/card-5.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/coffee-science/card-0.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/coffee-science/card-1.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/coffee-science/card-2.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/coffee-science/card-3.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/coffee-science/card-4.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/coffee-science/card-5.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/coffee-science/card-6.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/reading-secrets/card-0.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/reading-secrets/card-1.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/reading-secrets/card-2.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/reading-secrets/card-3.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/reading-secrets/card-4.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/reading-secrets/card-5.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/reading-secrets/card-6.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/remote-work/card-0.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/remote-work/card-1.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/remote-work/card-2.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/remote-work/card-3.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/remote-work/card-4.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/remote-work/card-5.mp3 +0 -0
- package/dist/remotion-bundle/source-map-helper.wasm +0 -0
- package/lib/cli.js +270 -0
- package/lib/commands/_registry.js +48 -0
- package/lib/commands/add.js +242 -0
- package/lib/commands/asr/azure-transcribe.js +336 -0
- package/lib/commands/asr/cloud-transcribe.js +384 -0
- package/lib/commands/asr/helpers.js +76 -0
- package/lib/commands/asr/index.js +236 -0
- package/lib/commands/asr/local-transcribe.js +125 -0
- package/lib/commands/asr-jobs.js +257 -0
- package/lib/commands/asr.js +11 -0
- package/lib/commands/auth-cmds.js +358 -0
- package/lib/commands/dub.js +542 -0
- package/lib/commands/explain.js +512 -0
- package/lib/commands/feedback.js +152 -0
- package/lib/commands/image.js +207 -0
- package/lib/commands/mcp-key.js +166 -0
- package/lib/commands/narrate.js +639 -0
- package/lib/commands/picstory-templates.js +276 -0
- package/lib/commands/picstory.js +547 -0
- package/lib/commands/podcast/dialogue.js +109 -0
- package/lib/commands/podcast/generate.js +127 -0
- package/lib/commands/podcast/index.js +561 -0
- package/lib/commands/podcast/synthesize.js +188 -0
- package/lib/commands/podcast.js +11 -0
- package/lib/commands/present.js +519 -0
- package/lib/commands/publish.js +415 -0
- package/lib/commands/skills.js +473 -0
- package/lib/commands/slice-render.js +282 -0
- package/lib/commands/slice-stage.js +264 -0
- package/lib/commands/slice.js +346 -0
- package/lib/commands/slides/constants.js +108 -0
- package/lib/commands/slides/html-renderer.js +338 -0
- package/lib/commands/slides/index.js +345 -0
- package/lib/commands/slides.js +11 -0
- package/lib/commands/story.js +302 -0
- package/lib/commands/summarize.js +532 -0
- package/lib/commands/synthesize.js +261 -0
- package/lib/commands/translate.js +593 -0
- package/lib/commands/upgrade.js +249 -0
- package/lib/commands/video-translate.js +577 -0
- package/lib/commands/voices.js +292 -0
- package/lib/core/agent-env.js +104 -0
- package/lib/core/args.js +107 -0
- package/lib/core/asr-client.js +448 -0
- package/lib/core/asr-jobs-client.js +126 -0
- package/lib/core/asr-jobs-store.js +105 -0
- package/lib/core/asr-r2-upload.js +181 -0
- package/lib/core/asr-upload.js +132 -0
- package/lib/core/audio-extract.js +150 -0
- package/lib/core/audio.js +219 -0
- package/lib/core/auth.js +880 -0
- package/lib/core/config.js +197 -0
- package/lib/core/feedback.js +64 -0
- package/lib/core/ffmpeg.js +476 -0
- package/lib/core/http.js +188 -0
- package/lib/core/image-client.js +55 -0
- package/lib/core/intent-params.js +11 -0
- package/lib/core/llm-client.js +76 -0
- package/lib/core/logger.js +208 -0
- package/lib/core/mic-recorder.js +182 -0
- package/lib/core/pause-markers.js +94 -0
- package/lib/core/podcast-pacing.js +118 -0
- package/lib/core/spinner.js +33 -0
- package/lib/core/srt.js +394 -0
- package/lib/core/telemetry.js +100 -0
- package/lib/core/timeline.js +92 -0
- package/lib/core/tts-synthesizer.js +70 -0
- package/lib/core/update-check.js +185 -0
- package/lib/core/url-download.js +148 -0
- package/lib/core/whisper-local.js +279 -0
- package/lib/internal/deck-validator.js +488 -0
- package/lib/internal/slice-themes.json +370 -0
- package/lib/stage-core/cloud-render.js +170 -0
- package/lib/stage-core/deck-format.js +133 -0
- package/lib/stage-core/edit-prompt.js +104 -0
- package/lib/stage-core/event-bus.js +31 -0
- package/lib/stage-core/port.js +46 -0
- package/lib/stage-core/server.js +352 -0
- package/lib/stage-core/snapshot-store.js +198 -0
- package/lib/stage-core/watcher.js +106 -0
- package/lib/stage-ui/slice/template.js +1672 -0
- package/package.json +9 -4
- package/skills/.claude-plugin/marketplace.json +22 -0
- package/skills/.claude-plugin/plugin.json +25 -0
- package/skills/LICENSE +21 -0
- package/skills/README.md +120 -0
- package/skills/hub/SKILL.md +317 -0
- package/skills/podcast/SKILL.md +146 -0
- package/skills/slice/SKILL.md +205 -0
- package/skills/slice/agents/openai.yaml +4 -0
- package/skills/slice/references/deck-schema.md +183 -0
- package/skills/slice/references/example-decks.md +108 -0
- package/skills/slice/references/themes.md +172 -0
- package/skills/transcribe/SKILL.md +473 -0
- package/skills/video/SKILL.md +261 -0
- package/skills/voxflow-slice/SKILL.md +271 -0
- package/skills/voxflow-slice/examples/article.md +13 -0
- package/skills/voxflow-slice/examples/expected-deck.json +39 -0
- package/skills/voxflow-slice/examples/validate.mjs +46 -0
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VoxFlow CLI — Publish command
|
|
3
|
+
*
|
|
4
|
+
* Single-command delivery entrypoint for Skill/Web orchestration:
|
|
5
|
+
* - mode A: video-translate -> final MP4 -> publish
|
|
6
|
+
* - mode B: SRT + video dub -> final MP4 -> publish
|
|
7
|
+
* - mode C: merge existing video + audio -> final MP4 -> publish
|
|
8
|
+
*
|
|
9
|
+
* Publish targets:
|
|
10
|
+
* - local (default): copy artifact to publish directory
|
|
11
|
+
* - webhook: call external publisher service and return URL
|
|
12
|
+
* - none: no publish step, return final MP4 only
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
const fs = require('fs');
|
|
16
|
+
const path = require('path');
|
|
17
|
+
const crypto = require('crypto');
|
|
18
|
+
const { API_BASE } = require('../core/config');
|
|
19
|
+
const { request } = require('../core/http');
|
|
20
|
+
const { videoTranslate } = require('./video-translate');
|
|
21
|
+
const { dub } = require('./dub');
|
|
22
|
+
const { mergeAudioVideo, getAudioDuration } = require('../core/ffmpeg');
|
|
23
|
+
|
|
24
|
+
function ensureDir(dir) {
|
|
25
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function defaultOutputPath(videoPath) {
|
|
29
|
+
const base = path.basename(videoPath, path.extname(videoPath));
|
|
30
|
+
const fname = base + '-published.mp4';
|
|
31
|
+
return path.resolve(path.dirname(videoPath), fname);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function defaultPublishDir() {
|
|
35
|
+
return path.resolve(process.cwd(), 'published');
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** 将绝对路径转为 file:// URL(兼容 Windows 三斜杠格式) */
|
|
39
|
+
function toFileUrl(absPath) {
|
|
40
|
+
const normalized = absPath.split(path.sep).join('/');
|
|
41
|
+
// Unix: /tmp/a.mp4 → file:///tmp/a.mp4 ; Windows: C:/a.mp4 → file:///C:/a.mp4
|
|
42
|
+
return normalized.startsWith('/') ? `file://${normalized}` : `file:///${normalized}`;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function copyToPublishDir(srcPath, publishDir, platform) {
|
|
46
|
+
ensureDir(publishDir);
|
|
47
|
+
const ts = new Date().toISOString().replace(/[:.]/g, '-');
|
|
48
|
+
const base = path.basename(srcPath, path.extname(srcPath));
|
|
49
|
+
const targetName = `${base}-${platform}-${ts}.mp4`;
|
|
50
|
+
const targetPath = path.join(publishDir, targetName);
|
|
51
|
+
fs.copyFileSync(srcPath, targetPath);
|
|
52
|
+
|
|
53
|
+
return {
|
|
54
|
+
target: 'local',
|
|
55
|
+
platform,
|
|
56
|
+
status: 'ready',
|
|
57
|
+
publishedPath: targetPath,
|
|
58
|
+
publishUrl: toFileUrl(targetPath),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
async function publishToWebhook(webhook, payload) {
|
|
63
|
+
// Validate webhook URL
|
|
64
|
+
const parsedUrl = new URL(webhook); // will throw if invalid
|
|
65
|
+
if (parsedUrl.protocol !== 'https:' && parsedUrl.protocol !== 'http:') {
|
|
66
|
+
throw new Error('Webhook URL must use HTTP or HTTPS');
|
|
67
|
+
}
|
|
68
|
+
// Block private/internal IPs
|
|
69
|
+
const hostname = parsedUrl.hostname;
|
|
70
|
+
if (hostname === 'localhost' || hostname === '127.0.0.1' || hostname === '0.0.0.0' || hostname === '::1' ||
|
|
71
|
+
hostname.startsWith('10.') || hostname.startsWith('192.168.') ||
|
|
72
|
+
hostname.match(/^172\.(1[6-9]|2\d|3[01])\./) ||
|
|
73
|
+
hostname === '169.254.169.254' || hostname.startsWith('169.254.') ||
|
|
74
|
+
hostname.startsWith('fd') || hostname.startsWith('fc') || hostname.startsWith('fe80') ||
|
|
75
|
+
hostname.endsWith('.internal') || hostname.endsWith('.local')) {
|
|
76
|
+
throw new Error('Webhook URL must not target private networks');
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
const { status, data } = await request(webhook, {
|
|
80
|
+
method: 'POST',
|
|
81
|
+
headers: { 'Content-Type': 'application/json' },
|
|
82
|
+
}, payload);
|
|
83
|
+
|
|
84
|
+
if (status >= 400) {
|
|
85
|
+
throw new Error(`Webhook publish failed (${status}): ${data?.message || JSON.stringify(data)}`);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
target: 'webhook',
|
|
90
|
+
status: data.status || 'submitted',
|
|
91
|
+
platform: data.platform || payload.platform,
|
|
92
|
+
publishUrl: data.publishUrl || data.url || null,
|
|
93
|
+
platformJobId: data.jobId || null,
|
|
94
|
+
raw: data,
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
async function publish(opts) {
|
|
99
|
+
const sigintHandler = () => {
|
|
100
|
+
console.log('\n\nPublish cancelled.');
|
|
101
|
+
process.exit(130);
|
|
102
|
+
};
|
|
103
|
+
process.on('SIGINT', sigintHandler);
|
|
104
|
+
|
|
105
|
+
try {
|
|
106
|
+
return await _publish(opts);
|
|
107
|
+
} finally {
|
|
108
|
+
process.removeListener('SIGINT', sigintHandler);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
async function _publish(opts) {
|
|
113
|
+
const {
|
|
114
|
+
token,
|
|
115
|
+
api = API_BASE,
|
|
116
|
+
// Mode A
|
|
117
|
+
input,
|
|
118
|
+
from,
|
|
119
|
+
to,
|
|
120
|
+
// Mode B
|
|
121
|
+
srt,
|
|
122
|
+
// Mode B/C
|
|
123
|
+
video,
|
|
124
|
+
// Mode C
|
|
125
|
+
audio,
|
|
126
|
+
// Shared media options
|
|
127
|
+
voice,
|
|
128
|
+
voicesMap,
|
|
129
|
+
speed,
|
|
130
|
+
realign = false,
|
|
131
|
+
batchSize,
|
|
132
|
+
keepIntermediates = false,
|
|
133
|
+
output,
|
|
134
|
+
// Publish options
|
|
135
|
+
publishTarget = 'local',
|
|
136
|
+
publishDir = defaultPublishDir(),
|
|
137
|
+
publishWebhook,
|
|
138
|
+
platform = 'generic',
|
|
139
|
+
title,
|
|
140
|
+
} = opts;
|
|
141
|
+
|
|
142
|
+
const modeVideoTranslate = !!(input && to);
|
|
143
|
+
const modeDub = !!(srt && video);
|
|
144
|
+
const modeMerge = !!(video && audio);
|
|
145
|
+
|
|
146
|
+
const selectedModes = [modeVideoTranslate, modeDub, modeMerge].filter(Boolean).length;
|
|
147
|
+
if (selectedModes !== 1) {
|
|
148
|
+
throw new Error(
|
|
149
|
+
'Invalid publish input. Use exactly one mode:\n' +
|
|
150
|
+
' 1) --input <video> --to <lang> (video-translate + publish)\n' +
|
|
151
|
+
' 2) --srt <file> --video <video> (dub + publish)\n' +
|
|
152
|
+
' 3) --video <video> --audio <audio> (merge existing + publish)'
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
if (!['local', 'webhook', 'none'].includes(publishTarget)) {
|
|
157
|
+
throw new Error(`--publish must be one of: local, webhook, none (got: ${publishTarget})`);
|
|
158
|
+
}
|
|
159
|
+
if (publishTarget === 'webhook' && !publishWebhook) {
|
|
160
|
+
throw new Error('--publish webhook requires --publish-webhook <url>');
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
console.log('\n=== VoxFlow Publish ===');
|
|
164
|
+
console.log(`Publish target: ${publishTarget}`);
|
|
165
|
+
console.log(`Platform: ${platform}`);
|
|
166
|
+
|
|
167
|
+
let finalVideoPath;
|
|
168
|
+
let buildMode;
|
|
169
|
+
let buildResult = {};
|
|
170
|
+
|
|
171
|
+
if (modeVideoTranslate) {
|
|
172
|
+
if (!token) {
|
|
173
|
+
throw new Error('Publish mode "video-translate" requires authentication token');
|
|
174
|
+
}
|
|
175
|
+
console.log('Build mode: video-translate');
|
|
176
|
+
const result = await videoTranslate({
|
|
177
|
+
token,
|
|
178
|
+
api,
|
|
179
|
+
input,
|
|
180
|
+
from,
|
|
181
|
+
to,
|
|
182
|
+
voice,
|
|
183
|
+
voicesMap,
|
|
184
|
+
output: output ? path.resolve(output) : undefined,
|
|
185
|
+
realign,
|
|
186
|
+
batchSize,
|
|
187
|
+
keepIntermediates,
|
|
188
|
+
speed,
|
|
189
|
+
});
|
|
190
|
+
finalVideoPath = result.outputPath;
|
|
191
|
+
buildMode = 'video-translate';
|
|
192
|
+
buildResult = result;
|
|
193
|
+
} else if (modeDub) {
|
|
194
|
+
if (!token) {
|
|
195
|
+
throw new Error('Publish mode "srt-dub" requires authentication token');
|
|
196
|
+
}
|
|
197
|
+
console.log('Build mode: srt-dub');
|
|
198
|
+
const result = await dub({
|
|
199
|
+
token,
|
|
200
|
+
api,
|
|
201
|
+
srt,
|
|
202
|
+
video,
|
|
203
|
+
voice,
|
|
204
|
+
voicesMap,
|
|
205
|
+
speed,
|
|
206
|
+
output: output ? path.resolve(output) : undefined,
|
|
207
|
+
});
|
|
208
|
+
finalVideoPath = result.outputPath;
|
|
209
|
+
buildMode = 'srt-dub';
|
|
210
|
+
buildResult = result;
|
|
211
|
+
} else {
|
|
212
|
+
console.log('Build mode: merge-existing');
|
|
213
|
+
finalVideoPath = output ? path.resolve(output) : defaultOutputPath(path.resolve(video));
|
|
214
|
+
await mergeAudioVideo(video, audio, finalVideoPath);
|
|
215
|
+
buildMode = 'merge-existing';
|
|
216
|
+
buildResult = { outputPath: finalVideoPath, quotaUsed: 0 };
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
const resolvedFinal = path.resolve(finalVideoPath);
|
|
220
|
+
const fileStat = fs.statSync(resolvedFinal);
|
|
221
|
+
const durationMs = await getAudioDuration(resolvedFinal);
|
|
222
|
+
const jobId = `pub_${crypto.randomUUID()}`;
|
|
223
|
+
|
|
224
|
+
const meta = {
|
|
225
|
+
jobId,
|
|
226
|
+
title: title || path.basename(resolvedFinal, path.extname(resolvedFinal)),
|
|
227
|
+
buildMode,
|
|
228
|
+
platform,
|
|
229
|
+
createdAt: new Date().toISOString(),
|
|
230
|
+
artifact: {
|
|
231
|
+
localPath: resolvedFinal,
|
|
232
|
+
sizeBytes: fileStat.size,
|
|
233
|
+
durationSec: Number((durationMs / 1000).toFixed(2)),
|
|
234
|
+
},
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
let publishResult = {
|
|
238
|
+
target: 'none',
|
|
239
|
+
status: 'skipped',
|
|
240
|
+
platform,
|
|
241
|
+
publishUrl: null,
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
if (publishTarget === 'local') {
|
|
245
|
+
publishResult = copyToPublishDir(resolvedFinal, path.resolve(publishDir), platform);
|
|
246
|
+
} else if (publishTarget === 'webhook') {
|
|
247
|
+
const { localPath: _localPath, ...artifactSafe } = meta.artifact;
|
|
248
|
+
publishResult = await publishToWebhook(publishWebhook, {
|
|
249
|
+
...meta,
|
|
250
|
+
artifact: {
|
|
251
|
+
...artifactSafe,
|
|
252
|
+
filePath: path.basename(meta.artifact.localPath),
|
|
253
|
+
},
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
const result = {
|
|
258
|
+
...meta,
|
|
259
|
+
publish: publishResult,
|
|
260
|
+
quotaUsed: buildResult.quotaUsed || 0,
|
|
261
|
+
buildResult,
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
console.log('\n=== Publish Done ===');
|
|
265
|
+
console.log(`Final video: ${resolvedFinal}`);
|
|
266
|
+
console.log(`Duration: ${result.artifact.durationSec}s`);
|
|
267
|
+
console.log(`Size: ${(result.artifact.sizeBytes / 1024 / 1024).toFixed(2)} MB`);
|
|
268
|
+
console.log(`Publish status: ${publishResult.status}`);
|
|
269
|
+
if (publishResult.publishUrl) {
|
|
270
|
+
console.log(`Publish URL: ${publishResult.publishUrl}`);
|
|
271
|
+
} else if (publishResult.publishedPath) {
|
|
272
|
+
console.log(`Published file: ${publishResult.publishedPath}`);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
return result;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
// ─── CLI Handler ────────────────────────────────────────────────────────────
|
|
279
|
+
|
|
280
|
+
async function handle(args) {
|
|
281
|
+
const { parseFlag, parseIntFlag, parseFloatFlag, parseBoolFlag, validateSpeed, assertFileExists, runWithRetry } = require('../core/args');
|
|
282
|
+
const { getToken, getTokenInfo } = require('../core/auth');
|
|
283
|
+
const { API_BASE, getConfigDir } = require('../core/config');
|
|
284
|
+
const { warnIfMissingFfmpeg } = require('../core/ffmpeg');
|
|
285
|
+
|
|
286
|
+
// Check FFmpeg availability (one-time hint)
|
|
287
|
+
await warnIfMissingFfmpeg(getConfigDir(), 'dub');
|
|
288
|
+
|
|
289
|
+
const api = parseFlag(args, '--api') || API_BASE;
|
|
290
|
+
const explicitToken = parseFlag(args, '--token');
|
|
291
|
+
|
|
292
|
+
const input = parseFlag(args, '--input');
|
|
293
|
+
const to = parseFlag(args, '--to');
|
|
294
|
+
const video = parseFlag(args, '--video');
|
|
295
|
+
const srt = parseFlag(args, '--srt');
|
|
296
|
+
const audio = parseFlag(args, '--audio');
|
|
297
|
+
const output = parseFlag(args, '--output', '-o');
|
|
298
|
+
const publishTarget = parseFlag(args, '--publish') || 'local';
|
|
299
|
+
const publishWebhook = parseFlag(args, '--publish-webhook');
|
|
300
|
+
|
|
301
|
+
// 文件存在性在 CLI 层检查(友好 exit),业务校验由 publish() 统一处理
|
|
302
|
+
if (input) assertFileExists(input, 'Input video');
|
|
303
|
+
if (video) assertFileExists(video, 'Video');
|
|
304
|
+
if (srt) assertFileExists(srt, 'SRT');
|
|
305
|
+
if (audio) assertFileExists(audio, 'Audio');
|
|
306
|
+
|
|
307
|
+
// publish target 校验(快速 fail,避免进入 publish 后才报错)
|
|
308
|
+
if (publishTarget && !['local', 'webhook', 'none'].includes(publishTarget)) {
|
|
309
|
+
console.error(`Error: --publish must be one of: local, webhook, none (got: "${publishTarget}")`);
|
|
310
|
+
process.exit(1);
|
|
311
|
+
}
|
|
312
|
+
if (publishTarget === 'webhook' && !publishWebhook) {
|
|
313
|
+
console.error('Error: --publish webhook requires --publish-webhook <url>');
|
|
314
|
+
process.exit(1);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
if (output && !output.toLowerCase().endsWith('.mp4')) {
|
|
318
|
+
console.error('Error: --output path must end with .mp4');
|
|
319
|
+
process.exit(1);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
// Validate speed and batch-size
|
|
323
|
+
const speed = parseFloatFlag(args, '--speed');
|
|
324
|
+
validateSpeed(args, speed);
|
|
325
|
+
|
|
326
|
+
const batchSize = parseIntFlag(args, '--batch-size');
|
|
327
|
+
if (batchSize !== undefined && (isNaN(batchSize) || batchSize < 1 || batchSize > 20)) {
|
|
328
|
+
console.error(`Error: --batch-size must be between 1 and 20 (got: "${parseFlag(args, '--batch-size')}")`);
|
|
329
|
+
process.exit(1);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
// merge-existing 模式不需要 API 调用,其他模式需要认证
|
|
333
|
+
const isMergeOnly = !!(video && audio && !srt && !input);
|
|
334
|
+
let token = null;
|
|
335
|
+
if (!isMergeOnly) {
|
|
336
|
+
if (explicitToken) {
|
|
337
|
+
token = explicitToken;
|
|
338
|
+
} else {
|
|
339
|
+
token = await getToken({ api });
|
|
340
|
+
const info = getTokenInfo();
|
|
341
|
+
if (info) {
|
|
342
|
+
console.log(`\x1b[32mLogged in as ${info.email}\x1b[0m`);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
const opts = {
|
|
348
|
+
token,
|
|
349
|
+
api,
|
|
350
|
+
input,
|
|
351
|
+
from: parseFlag(args, '--from'),
|
|
352
|
+
to,
|
|
353
|
+
srt,
|
|
354
|
+
video,
|
|
355
|
+
audio,
|
|
356
|
+
voice: parseFlag(args, '--voice'),
|
|
357
|
+
voicesMap: parseFlag(args, '--voices'),
|
|
358
|
+
output,
|
|
359
|
+
speed,
|
|
360
|
+
realign: parseBoolFlag(args, '--realign'),
|
|
361
|
+
keepIntermediates: parseBoolFlag(args, '--keep-intermediates'),
|
|
362
|
+
batchSize,
|
|
363
|
+
publishTarget,
|
|
364
|
+
publishDir: parseFlag(args, '--publish-dir'),
|
|
365
|
+
publishWebhook,
|
|
366
|
+
platform: parseFlag(args, '--platform') || undefined,
|
|
367
|
+
title: parseFlag(args, '--title') || undefined,
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
try {
|
|
371
|
+
const result = isMergeOnly
|
|
372
|
+
? await publish(opts)
|
|
373
|
+
: await runWithRetry(publish, opts, api, explicitToken);
|
|
374
|
+
|
|
375
|
+
if (parseBoolFlag(args, '--json')) {
|
|
376
|
+
console.log(JSON.stringify(result, null, 2));
|
|
377
|
+
}
|
|
378
|
+
} catch (err) {
|
|
379
|
+
const msg = err.message || err.code || String(err);
|
|
380
|
+
console.error(`\nFatal error: ${msg}`);
|
|
381
|
+
process.exit(1);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
const meta = {
|
|
386
|
+
publish: {
|
|
387
|
+
usage: '[opts]',
|
|
388
|
+
description: 'One-command build+merge+publish for Skill/Web orchestration',
|
|
389
|
+
options: [
|
|
390
|
+
'--input <video> Mode A: video-translate then publish (requires --to)',
|
|
391
|
+
'--to <lang> Target language for Mode A',
|
|
392
|
+
'--from <lang> Source language for Mode A (default: auto)',
|
|
393
|
+
'--srt <file> Mode B: dub existing subtitles into video (requires --video)',
|
|
394
|
+
'--video <file> Video file for Mode B/Mode C',
|
|
395
|
+
'--audio <file> Mode C: merge existing audio into video',
|
|
396
|
+
'--voice <id> TTS voice for Mode A/B',
|
|
397
|
+
'--voices <file> Multi-speaker voice map for Mode A/B',
|
|
398
|
+
'--output <path> Final MP4 output path',
|
|
399
|
+
'--publish <target> local (default) | webhook | none',
|
|
400
|
+
'--publish-dir <dir> Local publish directory (for --publish local)',
|
|
401
|
+
'--publish-webhook <url> Webhook URL (for --publish webhook)',
|
|
402
|
+
'--platform <name> Platform metadata tag (default: generic)',
|
|
403
|
+
'--title <text> Title metadata',
|
|
404
|
+
'--json Print structured JSON result (recommended for skills)',
|
|
405
|
+
],
|
|
406
|
+
examples: [
|
|
407
|
+
'voxflow publish --input video.mp4 --to en --publish local',
|
|
408
|
+
'voxflow publish --srt captions.srt --video input.mp4 --publish local',
|
|
409
|
+
'voxflow publish --video input.mp4 --audio narration.mp3 --publish local',
|
|
410
|
+
'voxflow publish --input video.mp4 --to ja --publish webhook --publish-webhook https://publisher.example.com/hook --json',
|
|
411
|
+
],
|
|
412
|
+
},
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
module.exports = { publish, handle, meta };
|