diff --git a/package-lock.json b/package-lock.json index 9910061..7f39290 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4872,7 +4872,7 @@ } }, "skills/popost": { - "version": "4.6.11", + "version": "4.6.12", "license": "SEE LICENSE IN LICENSE", "dependencies": { "fflate": "^0.8.3", diff --git a/skills/popost/SKILL.md b/skills/popost/SKILL.md index 73aace6..b5eac89 100644 --- a/skills/popost/SKILL.md +++ b/skills/popost/SKILL.md @@ -1,7 +1,7 @@ --- name: popost metadata: - version: "4.6.11" + version: "4.6.12" description: Reproduce reference videos with new content; create, reproduce and edit social image posts; save supported social links to My Inspirations. Use for video remakes, single-image posts, carousels, editable canvas/Studio projects and inspiration saving from TikTok, Instagram, X, Xiaohongshu, Douyin, YouTube, Threads, LinkedIn, Reddit, Bilibili, Lemon8, Kuaishou, WeChat or Weibo links, local media and written briefs. Retrieve only the source content supported by the selected link service. --- @@ -45,7 +45,7 @@ Prepare only what the next operation needs: an inspiration save needs no rendere Whenever you tell the user which social platforms' links work (introducing popost, a first inspiration save, a link that was refused), run `popost link platforms` and name exactly the platforms it lists, with its `coverOnly` note: popost.ai adds and removes platforms, so a list from memory, this page or a README goes out of date. It is free and needs no account. -For a production reference link, read [post-bundle.md](references/post-bundle.md), quote the selected service, and parse only under fee authorization. Reuse a successful parse: it already saves the inspiration. Retrieve only the actual available content; a YouTube or Bilibili parse currently gives cover/title/description, not video bytes. Obtain a readable video before analyzing its shots or motion. Missing source content is a concrete input/service gap; thumbnails do not stand in for an unseen video. Local videos, images, screenshots and supplied text need no link parsing. +For a production reference link, read [post-bundle.md](references/post-bundle.md), quote the selected service, and parse only under fee authorization. Reuse a successful parse: it already saves the inspiration. Retrieve only the actual available content; a parse on a `coverOnly` platform of `popost link platforms` (now YouTube) gives cover/title/description, not video bytes. Obtain a readable video before analyzing its shots or motion. Missing source content is a concrete input/service gap; thumbnails do not stand in for an unseen video. Local videos, images, screenshots and supplied text need no link parsing. ## Services and spending diff --git a/skills/popost/SOURCE-MANIFEST.sha256 b/skills/popost/SOURCE-MANIFEST.sha256 index 9adc1c9..19528f0 100644 --- a/skills/popost/SOURCE-MANIFEST.sha256 +++ b/skills/popost/SOURCE-MANIFEST.sha256 @@ -1,5 +1,5 @@ fbc16146b510a188d8591dde877e9a8892ebe67e2436ce36737b8ab40b781fff LICENSE -50fda2d895b2b053a716380e72169024b6ceb0a1a5f60ab75904962c566500ec SKILL.md +bbdee969fc467864c6668277244ee28909c1ead3b61e47ccf4a177e5f8aec1d3 SKILL.md 79b1a246fc4493c0a976e2936ae892e42bd221a73fed4a3f1c4d44276d0f1f4f THIRD_PARTY_NOTICES 82eb5512d1618d91a1bf41f13aabe5bae9738deaad0a808b5eb7d6f928f6e171 agents/openai.yaml e8ce43dcfb49481444e6bbb92c6c5cfed7bd5ee1adfcae3d7cfe6daa135d575e assets/canvas/THIRD_PARTY_LICENSES.txt @@ -576,7 +576,7 @@ bce3debe65da546823ddeea754db40e2f3d7742478d334b305c173cff3249ae4 assets/video/s 8e82ff4d770bcebb67d465668ab9317e0bd9bae5caa8997ac0ea595027bf426f bundles/build-video.mjs add100275e15938519d8b2200572e8f72fbb66df9910f0c82e930db7713dd5e5 bundles/deck-entry.ts bb05a83f6f76ce79481e0d7b3a347c5661c0b41af9ebb995c9892ad4bb99e195 bundles/tsconfig.json -f1d339d321132e601b8b16524887a01ac752700c055aa0460ec31783384d1bad package.json +39c4e9d05d742209958558a40a38f3f0f3a44f660c61d189bc06f5171851dc57 package.json c6310dd52f3fc3dc4064f5134573698ffb0d7f6c6d4bd6580c018adb40f99b87 references/asset-architecture.md 75c9ae67c4191ea153b56776aae996f22dee5da835eaac93be69149b8d593d96 references/create.md 9abcc16dc4730041c71a08007f3744fe89f0009893598d0b4fd42939b75c5483 references/design-system.md @@ -586,9 +586,9 @@ d27b4dd0b10f7b13bbbfc6224af90a644dd95f5cd095435faaf31fe44a193b6f references/fon 6f9b20c5812c31b049963ecda109f27ebc278d8942d8c537c050140b383a0e7e references/host-editor.md cf4147c9b98ed0f136ce8ee1bbbd980db77e1358aeb5b85cacf6fb2d4f097798 references/image-workflow.md e299b21c239eb401f9eff1116f909d931c8a9743b052b6b65e51afd57aff33f8 references/imagery.md -38439175e90f1e5e85ac47cbbcb72d4df3084d2524a55891a81b06c02a7a53b4 references/onboarding.md +55f4dd067c57cd3cb3b8268105e8bf4180e9ff51313aa83223a7b6982a73c67a references/onboarding.md d8aa84ab56fd0ff7085e74e05a47298f8b23c321cd752be7bdb871bd00c481f7 references/platform-adaptation.md -0ea04ec878c7929f0fe873613787ed0f7ceb71041b051ffb98086a75d0077577 references/post-bundle.md +773fb8ba3bbfcf336ec1e05fcbef358b85384bf2828010ebc78f4ead2b78a9fe references/post-bundle.md 14a91cb8341c096fdfd5edc0005cc1acdd2787badc8d6267019955a8d8970380 references/project-manifest.md 203a65b53a8391f834acd681971f763e4906e340f1d34b0a7ff9393b3f00489a references/providers.md a7b4b60f6023ef5655b940908b5b4a66142fa693e4e157d5e95f1af40be43f6d references/quality-review.md @@ -609,24 +609,24 @@ b8919045e2d5d6105a42a9e572c53acf538b2ec2fb8fec38803f6c47bfa79195 references/vid 73aaedadcdcfb393f934c0569de5f1dd48f49b82e06e0f3ea63d5c05a6025622 references/video-examples/template-demo/template.json cfe3a22c6f3fd09b25560f112513228de6ce196632c5c4139e9be259bccce50a references/video-motion.md 823de26535e88b1736d732d093036cd778e5c47b4b4a9a92d8a81a8640d3b5f0 references/video-native-observation.md -e5a6a9cf8fe602300be6db3a3aa7f9cd3ff663ac9e93588d9c61875d293706ed references/video-performers.md -b0ef03635ce3f83313d1c2347ffc099b1adf6f84d244dad73bc1937050e6cc35 references/video-product.md +46eb400a633d45e54768ca3ba61d41912f9f1f759f9695653376b8fa215a7729 references/video-performers.md +103c879a144b6c1860f9ca5fbd50d7dbc31210f305fbd7da51fa9386dcc81095 references/video-product.md 856b3f9b3872e571f7d4505f92584086d4f8d1abec4231bda3487a1a18465426 references/video-project.md d64eda959f59688eacf19915e20b60beb828cc92a74f94e14ffd0acfa5b7f832 references/video-replication.md d7220eaae4866c29c855720d42cff15d78adcae6acdb55a722a0a62ba74defb5 references/video-scenes.md 9b964b1bb3691c0a013d884fd5e3e1830ff106e5ccc0e9b9ff7ffded5f1fdcc6 references/video-sfx.md 6a82171339793a9d9da0a270de3cffe180da2dcbacd2e6b07fe6f6dd61e92329 references/video-sound.md a12a4139218b56530e73cb8c534e50d1cab8ecf41666fbb3fd83aa92ed2da5d5 references/video-step-0-machine.md -2f7d91e3375f110744cef11294c201ac1cc92d31a605b484cc5e4b97c89de11d references/video-step-1-read.md +709efdc7b1a7865108ba7b2fac8de039bc4128330c862bb888116433ad70ac63 references/video-step-1-read.md 46635b1729ea0cdd7020748ac1543e80244a314a11fc6b3271ffa4c4191f8007 references/video-step-2-structure.md -8c6254092b29c5834a0551af2ab3f040b74d26a5baee9417688249eec580a447 references/video-step-3-content.md +69a4612cd5dbffcb029e06f5b40acb91184965b023363d5ccd457a3b59b48c0c references/video-step-3-content.md 8697c23ce280c7a74c059e20cba370403c9c7424ac759e3f4b803e36300e5c14 references/video-step-4-lines.md a74f894b8f8652ed7e24bfbc1cbd9050b231c1d624e76810d3961b0c9e1ba08e references/video-step-5-scenes.md -ee63a0f5e5cc1230b3895d243897995c23fc3f711d1572e077e70cca26998749 references/video-step-6-voice.md +26cd8f5142b1958dbb02ae28766ce62e13336b1209cc0a58e674c8a0f9eb6514 references/video-step-6-voice.md 8287e464d2cb2baee59eabe14fe7617279d916f25881fc8f03957ac828933bda references/video-step-7-deliver.md aa60b78da67f9a29492aae836c2e6d336805c212301539e88e651aab5b21b061 references/video-templates.md -6ccb2fbc2298eb6e3d43b489394c0f2307238a8c94d639f605ff6bd2b1ea9904 references/video-tools.md -8b1713cb55b9c4f55e6db2b9c643273ab6a4e0737258a3a2d1707496dbda73e2 references/video.md +e4c537eac454e758a6db70cb1aba4bc885572aac74efd17cfaf91936b7facd79 references/video-tools.md +0eb8c1d8a8e569bc43baaebb34e1bad341a3bce03d8d9d7902b84894353d9268 references/video.md 9ce62b5d799a1e415a153348ae87740665998e9e97c7c34e47ae35adff2d50bc src/args.ts 6722276f8e90bbda70f169453e2671a529f7f57af17e03f9f74324a837ff2041 src/broken-pipe.ts 8c7adbc0a8e6a39aaa9eb624f9e145d98c062b95ea3022911f8f94fa94f11afe src/cli.ts @@ -648,7 +648,7 @@ e6d2ecd78fdbb49fb770fe179b872123d1f937ada79e6b09f3260d203735710a src/commands/a 255131a1f372f393f5003b069465ba94d3eaf6b864989ca80a4fd786f16070d9 src/commands/inspiration.ts 3839d349b0468dc852947846bfe803adda0e49a0983a570519405a2ba8315b8a src/commands/install.ts 1d8ffe0eb7d19c1506ccf695e2f6c8b034232914d14c2987ef5f504daa1f0f6a src/commands/link-platforms.ts -740b48fa6b6535820518d95d147c66c98c8123ba17511919a86edff3e98dc052 src/commands/link.ts +1ff27e0e9604f065bcb5dcff7c7ced20606434c1e1af35ef77623084b51a362c src/commands/link.ts 567988c02ef98d5985ed7d194d0cc401521772e0ada81b0c9a206e2405a15df8 src/commands/post-bundle.ts 7971793ca7e64178d27c84aca23c72399b0fc9b70a8e2ef5bd24c0151647e756 src/commands/pricing.ts 23937624f5a4ee474eacb2302312a8f42a4d27f00fec301b37f7aba531d99f72 src/commands/provider.ts @@ -658,7 +658,7 @@ e6d2ecd78fdbb49fb770fe179b872123d1f937ada79e6b09f3260d203735710a src/commands/a 0fdff5ff8b5b31317ab6c671210e03c06256e2c7bf85618566041c7ac6190ee4 src/commands/template.ts 513e2ec1ef5223a0650b5d821a3d5a3e1760337b80945a918a28a79731fd5128 src/commands/update.ts 58caeb8839f155f4d34de5349eafcab7a97abd5a28332d2f87c0611bd38f6a5e src/commands/usage.ts -d0d795e131cad9e0f9cdc785676b3ede4ddaa93e4d3d232c27558f7a2155b152 src/commands/video.ts +b25266aa53ff9236c41c42983e81f57762b5bf419e5e9f7e31ade21215f978ee src/commands/video.ts 1fd9320fe4a07c005153262fd6c28b7e5ffdaeb8ef609beaf3bfd3b9dbe95e25 src/commands/workflow.ts 6a34d6d7230f08cf542f5c429b647950743198f7c5b0addab8da88f075f38632 src/core/error-text.ts 3b15431209f7cc0c44f9e0d9b5a0918853153bbeca9137cd79410ee70b0fb1d9 src/core/errors.ts @@ -740,9 +740,10 @@ ed3aa393cda96bb2235ae5fd9cc3f5a4cf7e06a93bdc6b361d54d79b308ce617 src/providers/ e0acd44e5f8507e73325b409240a5b8a13108be028ec1c8dfb9c82cfc6714a95 src/providers/inspiration.ts 9696d3cffce4e1f3b22e016b52863a0cae28efffdec6900e34a87fd28d131fec src/providers/ledger.ts c32186d2eaa04d68012d42a27af39c57835667664a7995fe576fc1622fc5796c src/providers/link-bundle.ts +e4870a2c729d5c14530e6952e527382b46a1bdb74fde4ae7d62aa6c3e9ae8f27 src/providers/link-resolve.ts 2e7364ead9f9af2afaccce914084b16cf067f80622b46c2a848d947d3698ee8f src/providers/link-task.ts -6ec8ec0780c0d9fab557102522d3fa32720ee4b7a6e724204c8ed7a111ad5dbc src/providers/link-video.ts -f9dea3309e7c669ef81413a7d33811e238476ae63169eee10e8bb78413abdbe8 src/providers/link.ts +850ce37ef54920d6658e38f8a7a97e9c77ac15329a48b814a1a1d6b2b4f74c33 src/providers/link-video.ts +2adf9960419235b20a955abb873a5380214cfac83c22f4a170b261662c1484e3 src/providers/link.ts 0dbd7fad49ebdaf462b8eed9f77e73d90f0bf28fbdf42b6df6dcca582a7057a8 src/providers/manual-host.ts 4fac7cd9846ef58768c53be123e4672ca5bd437caf35195b7a37afdd132ae0e8 src/providers/paths.ts d533efd4ea0cd8e4ca9af39cab7206b7d0494932aa50379bb64a2f8a82dfc017 src/providers/popost-async.ts @@ -783,7 +784,7 @@ d96c6f4f1506976346df992f26e3ffb2ccc6de31412f7c5ec57693e8d2ad7ab9 src/update/rep dc2da337b1005fee9f8dd7869ee6caba4e891b68f282c07af64d0ad5f71fa8d9 src/update/session.ts 00ebeaf3169473927dd4b2fd6bcf0fb6a5fb3a0102f211f10c57a8a1e3bbd363 src/update/state.ts 62dbd2d9e890bcbc3336cec661c830add57fd9c8100277c0784ec28ad881fe2d src/update/verify.ts -b6275d445765e5c149329520f42f0d50d400aec740dc1114fdc683c9b135be08 src/version.ts +29ee14dfcec37e78ed3ce70d28320ab51e1dbad24a331cb2b80419babcc1be2d src/version.ts 6180d119a25333c2e32a03c1c4d5aca390b2abe13824a1c7337062e44bfe9efd src/video/align/index.ts 9810398a64a74127471c0d2eea5b1969c3e20b78f570971d6a4e7a10a630f180 src/video/cache/frames.ts 9eb21a722635102adfe3341a1df74535e21ab73a6325ea37a26b1816346d8800 src/video/cache/holds.ts @@ -792,7 +793,7 @@ f98b2d85f0f12f260053a3ada68ed38003d0e2f1c8f39357c8f240738edfd37a src/video/capt d5ce6d64cbd2b4c5833200d105a983c03b04252c0a4bba0464fd59388d7c8a5a src/video/capture/index.ts ba6bb104589a7307e0c2a6f497e471e4223bc5e218839b456b248f4c116570e8 src/video/capture/stage.ts e52a80b6fda3af3b434f5a3936445213b7dad6985725d728d7f6fd0b2e7408bd src/video/capture/steps.ts -fb25ab777966fed81bdb4146757d6653671e0a6adf34fb0b799fa8e93fc8fed2 src/video/commands/cast.ts +ba5af9667563c0733d36bf9f5f21fa0eaf1da5592253eb6ef545201c8ccc51f3 src/video/commands/cast.ts eb5f4ea2e1d13d8766675a34059436df405297e08611046c6655cea8e4084469 src/video/commands/clean.ts 888c02481257af8feae0dbb46c9ef0174646debf8a973fa4cf7bb4b7928ef8af src/video/commands/clips.ts c86b61a6f192acd0bf7c0ba2ea3d668a57e56a3fedcbadfef879450e709abc73 src/video/commands/compare-scope.ts @@ -800,28 +801,29 @@ c86b61a6f192acd0bf7c0ba2ea3d668a57e56a3fedcbadfef879450e709abc73 src/video/comm a797f7bae8cb5f2cc895bd1b8fc5078f753909fc60ddb8a44217e11e09f0a3e4 src/video/commands/elements.ts 5a1c21cf0693d00ba64608af1b4ceffa0544615ce3d486a2639689c2ae7d7f9c src/video/commands/eval.ts c979cdc2b342fe1fe8057ce26f6288f0b8d34c9792419efc171d6323ea4fdfab src/video/commands/example.ts -addae35a81d4d10f7b484be613367b72268b67191d360260feb20536f048713d src/video/commands/generate.ts +898a99f161fd6cdeccdb0b4b6a2d6b1f0e58ae82fe783d69e652a64a22b9ccb1 src/video/commands/generate.ts +7577d25bd1b7217111d8f2e267e800ed56326b3a3ba8ea5b8fe3e1d6ed46517c src/video/commands/inputs.ts 095c56a85bc5743658317fe5009193c18f551a5506d2031eb225fb4d561fb1d5 src/video/commands/loop-shared.ts -754d0442abb07f97cdb5284bd57c351abd87cd13c3d7938d6a95fb26ff709adf src/video/commands/loop.ts +f38e00096d820bb3eb60d894a2e2c92e2292fef678654cebc753adca7885feb4 src/video/commands/loop.ts e0df23efe8d9eb0caaac956bfcb3264030b5d6c698fbce90afbdde056a95f773 src/video/commands/make.ts -58d51546448d7c80873e547563aa7eb36f4778ff2d6a6e57eac04701f7017d9f src/video/commands/materials.ts +7a20f4370bc97c790d2da502436ebbab2ea26d83b94e03ec1ce0e5688ac73273 src/video/commands/materials.ts 2ceba4aec37bb222fb626b600fd74df0f502c61bdc1d02b6bde1d81a4e017735 src/video/commands/measure.ts 3206fe5ec809867d231d8265fe0cc2058ee384633141d7cd008df9d7df0f0a11 src/video/commands/media.ts ac39d164e831a1fec8bdf8fb7dbb68c90cf3a8d2ab2edead5c8948e59b0ede13 src/video/commands/music-plan.ts 2630b256dba4db4088ee2f58ea39e0c07f703500ed8f29fc40a9e7461172291f src/video/commands/music.ts -5e703ff2fec6ac50d62e3052512ca556ad95d9e880431dda6e21139ba1682750 src/video/commands/product.ts +20b710ddb5d78936d4e1f6a25003b0275dff23e2fa6f4be708507bc1457148aa src/video/commands/product.ts f1638f5a2ecfb5f59adc6213949544826df3480c856431f756f22159a705a458 src/video/commands/read.ts 6275946ff5084ecac7103ec4f9dc6821189a9f031f31fc3db61ae0a61e7428a5 src/video/commands/replication-books.ts 65648504bce5d878269974e91b89332f609f72716b7a3ba25ee6413d460be640 src/video/commands/replication.ts c734138a7ca94b0570f385f2559f092b53c7b1c9eaa50b6d4bd5dd4aab5e6f7e src/video/commands/sfx-extract.ts ab3bf6ede426b26aac2df98895fa3e1ab9088972bd532323608a9405901f28dd src/video/commands/sfx-place.ts e456e0774393a996b864436cf2c1d057b7fcad6615e532ef58b5eb6b663fc834 src/video/commands/sfx.ts -1c23b689b17f8431bd023669fcec1894abbc698d9330ef187742b64173a90193 src/video/commands/shared.ts +9bf757c86d4055e535a232acb78b85f65667ca538301157cdf0b95244d4fdeaa src/video/commands/shared.ts 81fe4413f5bb61f53f5ab1c60f04771abba856e3e39e2bc872081b786ebb3ab4 src/video/commands/source.ts 701e28be1d6920387bf7d183a5d0776d7077275d49d9e13a615c7d39926a0b18 src/video/commands/speech-check.ts 1426ec9de690ddecfc2014e0d704a10c57cdbef70d2ba71184e5c5e2844ee48f src/video/commands/speech-kind.ts -2b20c317286fefd32227d359410578814e82c2de9a3821448a4bb98de99309da src/video/commands/template.ts -34d7204632244e29876cf73b388b323ed4a7e4e506617115bcdbd2125acd16e6 src/video/commands/voice-profile.ts +2541058e3e7f952712a334a9492d38ec666a888f7dcf1e792f70f41a273d0cf8 src/video/commands/template.ts +36f37e5512ece2c5576da0848c18c8d1e2e0a972d1e60295d6c01d0398ebcc37 src/video/commands/voice-profile.ts a9313923177d77c510905b2475c09bbff8dce3598702c0d537be0729f2926db6 src/video/commands/voice-sample.ts 0910b28d466960050ad960c8b56b43fa5487953de06d341be483adffd6e20b21 src/video/compile/footage.ts a2308c56ec4325ae70809ba9e45233fe547a37938d520bbf992518b5348b162d src/video/compile/index.ts @@ -869,18 +871,22 @@ c338f9be5833666f969dfe6bcf3566b712f1abac896af5770a6d8422fb057e6c src/video/eval 84b3d30f0ae2bba07137671f850e5f703cdfbf23fd2ebed465596b2243546e35 src/video/eval/readback.ts 13d7f4a54b56b7e0f9d6cc9bcd3263f1dc64f88a8a397318d1cc613a35a08f62 src/video/eval/roundtrip.ts 725483e05c55d29b55d4710705dc5d7ba90f638a1fa18e9acd5c9653bf8d6442 src/video/generate/approved.ts -77134c464084077f17dfa8fa50c0d57995dee1700d83585ffc52cf0c78f2c177 src/video/generate/cast.ts +7caea3dd79e1eab9707f75fa1577a55098ba8a4a03e03c503585479c6127907b src/video/generate/cast.ts b0afdadb19e13034c97c41d76f4d993bf938b5d64eb50426b711804216b79dfb src/video/generate/character.ts 05b138218b2a4bfb91b9f03a9fb08c336001d30a25691779999683c8e243019a src/video/generate/clip-sound.ts -79f99cbfc98ac4df02a91760cd25d3d4f56fee490eb3ea4321358a556c83b42c src/video/generate/cloud-image.ts -3cfa38de55f666e50d88467be8e41f3327c9f1b91792cc2d307e417496489fbd src/video/generate/cloud.ts -0642ddaf2ef46459ae3d266d4646a87b04c2b11732374b140e6e48f55b8d56c0 src/video/generate/dialogue.ts -c7c447b6f11e0a057c561d7c24301572b3dcf683f27411fc0bb9928863345eae src/video/generate/index.ts +a2aaedfd6e2c45fe019e0bb6230be7e72a332bb654ae20cd6e43b31c512d9f4c src/video/generate/cloud-image.ts +9cd26f50f3222031fee40c7657be0dea0e6a76fe063274c4b18e4b59d91e69b9 src/video/generate/cloud.ts +ecc26785962bcaba92747968d2d7596c789d56b3951de08ee71613926f81478c src/video/generate/dialogue.ts +dd2434a93cfb8c7226bf907412bacf65d23f2b70e4e97559704920671f8c4ea8 src/video/generate/index.ts ea7dc15810148e1012286c24b9307ec7093624f899088a45be56cd39624a110a src/video/generate/provenance.ts 84ad146c516ccb2790649ae8e12bfa632a5b9bb240d0f2282628455050104e87 src/video/generate/speech-lock.ts -83295f3dab0bdeff5f6ce2351df27d34512092bf8a607773981fa22952d0460e src/video/generate/speech.ts +adee4e4cec198f3a9d618cc2d3950c05ec4d508566e5bdf93fc158cba42c6b30 src/video/generate/speech.ts 3f47a8154f5dbee102d2ce5384af6f041bfc14eff46555079d8757363094901f src/video/host.ts 9a7aa437579f181f46621d7731574091417e5b6cfe0c2401520a468502082e02 src/video/hosted-api.ts +a83ea4d45210b7a0f77dac38b992cd059234828d4c6c3931a36b384ed8643544 src/video/inputs/collect.ts +ddafaa0358b1755684cc15f82ef9896baa9492591f3390b4c714b71f63357444 src/video/inputs/record.ts +ff51f4f9099c3f0166bb5518dd9aabe4649971e56fd95e0d01fb28f60e73c8b1 src/video/inputs/sheet.ts +24afdfa0c89d97ec195f29ce45d7620fdefce4a320ee7436007bb5ba552b05c8 src/video/inputs/summary.ts 9e025503c204f6b5c19c29836a9c709eb1b12f5257a739baa16d23736fcb8ebe src/video/look/index.ts bccadaca409e5a4dae8d6e8e787d372788253b87389833e6f5afb7d1e411620a src/video/look/like.ts ce6f0d6e67c14ea365a239f98e4a8e6c34b5bc24c680521a8367d7b12e337874 src/video/look/sheets.ts @@ -1016,9 +1022,9 @@ f31e90f373029ec6edf1e4fedbfcf890d360db776ece2779785f7dd5d4579e67 src/video/prev 7ab919d585552f3e893695dbee54f8032619ebf0b4d9dac97d13b73866cdd820 src/video/preview/studio-data.ts d53d3396c4beae3c8c84fe2ded909a62f9a42706f84e601b9c9a5162e43547d2 src/video/preview/thumbnails.ts 99cea536c874205409a477052856725dbc1a99c19ba7ed0f9911039f8536d279 src/video/preview/watch.ts -8aeafb5d7c6fbb2e6f3e77d0dd912efe8999e1425c57bb82379e0dd7fb0bc477 src/video/product/requests.ts +46ab494461a7561d5b85559fdcf2f72c03be41ecfa957743a5b6fade96473ce8 src/video/product/requests.ts 1c6b3f3a857b943a4154939fd5ce6fdae17f4c528c7fe25903599ea40ffc6e1d src/video/product/review.ts -0e27f06470c62ffbb4931fa051165f0972d839304a58f08045499e9aff2e7f63 src/video/product/sheet.ts +0cf96d202ade9540f5734132cf86127f8c4ec251d643082527a2f269e495fda7 src/video/product/sheet.ts 611c19ad71c88124f3c38eb485d881349263eac31361f7199995f42f40602c0e src/video/progress.ts bd146cd5b38dba1c8526dda4436725af0a87d81882f20824e1a199e0c7f83f1b src/video/project/check-camera.ts 500aaf0b58ee220ce72429404afd3ed89c5073c5379da4dfab647e9ee3993651 src/video/project/check-caption.ts @@ -1035,6 +1041,7 @@ cbc6ac71c18dce70bb571b5277b6bab324f653939ef9ab8034bca738cb2ae2c1 src/video/proj a50165be45e5d475393e3611ed7d48e8886865047bf618eeeb6860dc363ad8d0 src/video/project/schema.ts 39454f2ede4665be880fcb18e192e7626c0265a3cf9051e9c788df95d9a7c726 src/video/project/suggest.ts 45c520c73cc65f350f2a4effb4fb1a917c7938b3b2e0fad8e74afe6855ebd0dd src/video/project/words.ts +0c3e98006b9481ed2d48903641d181add41d30029fc7f87a172666a23091535b src/video/prompt-lang.ts 664293faae578d415a3a32bcc56f0fe3a0c758d77662e519f352a9f2f02dcf0a src/video/render/browser-step.ts fef34b41d08b0831d5d9ea0b4425ce3bdcf5216103396642d821aaf58ddb8cb0 src/video/render/chunked.ts 18149099d755c864df9c6a7b8c30ed5a2a8ab2a996a273348af2f59df4505bdb src/video/render/chunks.ts @@ -1106,7 +1113,7 @@ df111194176f64d6bba4ed0882a7b732bab6e9b7804f69dd8038ee5ac23b8372 src/video/sfx/ f2796a3cda54fcc3ee3a264be60aff3d44f004240b7df2137b3f159e2a1aa306 src/video/sound/analysis.ts 2204a8f320a357792720e9153b0b08bbddeed31c648c49443e91baaf22637cd0 src/video/sound/breaks.ts f28fc7be1a4d2150078a9f9f85cc54bf2fbc52766e09d0bae37029081d692260 src/video/sound/measure.ts -3a08d59e059bd0cbb1d3c49c6c2e914c2ffc793c273560e0d0736e9b669cac5d src/video/sound/modes.ts +b8c75e44d96a7708852d11e021f68a6f4ff2413fb3ca3e938b6f46ee9702298b src/video/sound/modes.ts 2a4a5ba88a77c6319dfc250b8db31569f4a6e564932a15ecef635fa2e3af1f0e src/video/sound/pcm.ts 640f6eca7881024449a14b0ff26803c2a0086f1aa6cdc7e89e9b8b193173266a src/video/sound/reading.ts e6ed79a089b264b1074d714527e3fd930268dd33aaeb901c32108a84a8c39c1f src/video/sound/speech-check.ts @@ -1172,7 +1179,7 @@ c5c11de4539c365984d9dba80c6de0c1cc95d72d167191b4b2475f2a58d64ab8 src/video/voic 1d43862a3138e6d80c7c08dad2b287d860fe795fd69d67df9f9ba3a912f89d4d src/video/voice/index.ts b39eba0a6937c571d80ad52e8aec372f50fa87eb1e24ca1695ea60e06be666c4 src/video/voice/pace.ts 5a8709a86fd08ec90de7e6d407ea860b1e3a6e5b35c82c31fdbf247ee99f4a9e src/video/voice/profile.ts -1ce1af8b17fd9768ba05b62dff7da2ea6e1ef85f860a89942f76d9cd802fb203 src/video/voice/sample.ts +37c349847aaf3e379edc3d2141b20d9963016401fcc2e6458194bcab6a6b53ad src/video/voice/sample.ts 260fa3ed0e6636275c96d2c46a967aa8a8bc11dac64c114c5b63c12ccbba2e78 src/video/wallet.ts 4bafd7f9005d2db847471ccc825aa94b0ab48289c924a2d40f33078ee8fa904d src/video/work.ts 2295c00c13d1287c573c266479125d8442a480766b87aa9427c41520c6838a6b src/workflow/build.ts @@ -1181,7 +1188,7 @@ b39eba0a6937c571d80ad52e8aec372f50fa87eb1e24ca1695ea60e06be666c4 src/video/voic 04349a368cd7cbc006e7d75ef356eac8cc4273e9e003a2a8155c939c92b4d2bc src/workflow/errors.ts 0e55c0531670c725458ed3506ef96e3155dadb827eaa400cec9abcadc271c43a src/workflow/io.ts 2dad03a0107fd2f95102933ac1fa41d0f2925c2e119d96ed94079cd6ffd5dab3 src/workflow/page-check.ts -05cce4206de6c6b6537144a871e3e804c0c66c82eb3cc9c066ee182b886eb415 src/workflow/post-bundle.ts +cf7d862a908fd02e3fef2b75d1ef7f2c2fa53e8bd05eae318f21253dcc16a434 src/workflow/post-bundle.ts c353b7e124ca4e8b5630a008c367ed65789b4567e6f9a12ef9400a34e6954546 src/workflow/project-bundle.ts 8d9c5855088a8dab6c0057d8335993d6d9c143ad5a8e398f67518fe7a27b9765 src/workflow/review.ts 13cb07bfd000a8c3ad85b7582d8015277cc4a008e40274116bd5a8213610eddc src/workflow/series-plan.ts @@ -2106,12 +2113,13 @@ dfcfae410de5bae46e869a03236275f579806975bb19624cc98a06f78c907a7a tests/image-in 9298aee69a4f41406fb4a3a819d90338d78eebe6236a8da6aa41147be2c1bf9d tests/instagram-template-search.test.ts b8e4def0214b4956c2d0b1303b36ae8d7b11a5cf6abe6d3c33438f8d497b9ad1 tests/install.test.ts cf04f003f5d55c2310f90c061fb8f0d8b563217db06fba12c892dcd4b7d3684f tests/link-platforms.test.ts +70770c4e7067f2067cde0c60d5cab7dfeb194270221812365ee3e749f365077a tests/link-resolve.test.ts 3e07be12ec9492c54e04a6ba0db899c9bdb8376406da728933f4ee242ad53045 tests/link.test.ts 1572bab4e564a30537be5073ee5294538899c78935057b5eb7e4597459edc2f2 tests/node-secret.test.ts a3d39e7e688a45bc2be1d75feb1884c8fc0299309b6f9dff423fd3b0d932c3db tests/package.test.ts 483afe9810f6ab8fda50272e79a1a0795ccecad46ccf8bb6fb51d3cc1f4bc4e7 tests/page-check.test.ts eca36d02f9e97642f6b9f379b10f189b1267c28cbe7f779be75f06fbd0a30095 tests/paid-gate.test.ts -3b40603da57ce1b9d1774347ecabddcb92ae0f607252ced69ec67382167199f1 tests/post-bundle.test.ts +5013f648268c8e9f7372c1f3fe3aa61783a2e428d640adb09f0be17119d179b0 tests/post-bundle.test.ts b86da1de70dd77e5cd209fc7b1d0fbd4625196857b115007f7568d53a65da7df tests/pricing.test.ts 284ddec9021c3aad6ad724d8e4181d8d6a8c59791b0c242a1b15351f1ca5eb04 tests/provider-custom.test.ts d06256a4210d18ba1461d733105c65c6bb893d31714bf1a608bb1a3a531570f6 tests/provider-mock.test.ts @@ -2166,12 +2174,13 @@ a5d7139cb80a3c166a071bfe1167e2a7373b41e4a71f1af461f7b696cf312837 tests/video/ge 5404e10d4696de8354ecd298ae69319f45cd0e6c16c9db125a323f78c09d3c8f tests/video/hosted-transcription.test.ts 39578673199c27345ff720783fb77398a0877f9b08cdc6fa8e27680573d4ab5e tests/video/hosted-voice-words.test.ts 8fce58bd322d2797ae4c540b3a114329fea3f70e9e9b6c4aa53ecc98d9c475e2 tests/video/hosted-voice.test.ts +b29e2265f254f01dd15f8b86e42935a801ada82b8b1af024d5581091c10938d8 tests/video/inputs.test.ts d9053008e4cc2c6106d277895e1178cf15aaba8e2d14dc8dd3cbccd738d1cf90 tests/video/legibility.test.ts 8bf96469410ecc25455f49cf3ff8b8dd4d85f84a88be3174c7bcda1343f6126c tests/video/loop-align.test.ts 6c261892967e4310ec6449da7b9bdc048108f93e761b15d8f37f9dca74772927 tests/video/loop-beats-plan.test.ts 2168c0d52e442d45e6c3a9e4cb57a9d0cd3f90c1ad68744e21442f2ca02aed89 tests/video/loop-beats.test.ts 2470e9489f5a47190869bd88bc6138044069afb8e66c77ca50ffd796153de0fa tests/video/loop-caption-marks.test.ts -f9b6f1fa31e6644b4c2cef02b109a80b349ad28ffd2d2e4216b25edc5f9aea0e tests/video/loop-commands.test.ts +741acb7aa33e0b91c1378434acd66f5a21816da3f6ca8f9921da5b70dcf9e0b2 tests/video/loop-commands.test.ts c9a32f8be39a781021a2a20bd34f63267832690e0d732339b69f508922ef2ddc tests/video/loop-eval.test.ts 76ea1247a760faadc65f2af6d965bb173be181dcbd5e969f13f730dc4f1e0bd8 tests/video/loop-generate.test.ts e0e311587c004cd8fd8fd344940e8ce0a63fdc7ef61af72d74a0fef82e23c265 tests/video/loop-look.test.ts @@ -2240,10 +2249,10 @@ cdbbbc9a0ef9c112c23b34b03a84c3807de4b28cf92969edb2afb27a6c91db02 tests/video/pr 60741070dda478cfbeacbdce7bd5dd8668aee4992340cf5b288cde4a558f0825 tests/video/preview-studio-editing.test.ts befefa8d15567e7d62415abc589c64df76e495589e4ad1254793f65e9163c995 tests/video/preview-studio-linking.test.ts a5ffe9538b825c251722121ce1ce23cd5339cca0ff583e060f3e09084ea64d8d tests/video/preview-timeline-edit.test.ts -8095dc5a383f60130872ab23b8ce1a51219feb795fb9171277eff7307ece46ed tests/video/product-fixtures.ts -fcefbbbc81a6fd832ec2cbafafa3f7844c20447392373e13d90b68fbba987bb0 tests/video/product-materials.test.ts -5de04f64f06d45f6ee3b4e8797e9f8b1fd9a09aadb02c79a5e27915b168eedf9 tests/video/product-review.test.ts -ed0ee467b68f2d09fe53c66e3c69d7aa99681ac56bd699a5c798cb99a93db42a tests/video/product-sheet.test.ts +2dd873e6765856d2e4a79e88c4861d89e2fad3aabc92a83b1eb275ca94c94cf7 tests/video/product-fixtures.ts +1ff48728b111b2a8a402b50446fc67e1a65a9a168ce2b6a933f8979d27bc9c8a tests/video/product-materials.test.ts +0fa8247f7712d3c3b66a87bdb023b003fbf32b0881a8b08a1ce7544bbbcd53cc tests/video/product-review.test.ts +d3c15cc8d399718ce417ed50ae16e4db6862f42e7b812f6f7a798a69ccfbf238 tests/video/product-sheet.test.ts 60c2c23efed59387de7446383d722cca35a2ee3a9e7e6f08175feac9c3a2310c tests/video/read-aim.test.ts 2d408b85ac0e311b3f79da09630cdc27841ae4f5effd7719000b77085925f8fc tests/video/read-boundaries.test.ts 42e405fa0c71deea33c4e3e5e13f5d5f6e58e987fe7a537ff6b994671d5828a9 tests/video/read-camera.test.ts @@ -2324,7 +2333,7 @@ c5b9c97b2b662f1a9a8103ed439a5c586dcd978cc1aa7474a910412db320c5ad tests/video/sp 61e7fe7ed894b93c83dda0f00308be61d6d2faf3b870bd30638fbd3e4f231fed tests/video/speech-observed-integration.test.ts 4557f09eca386b118042dac388d29f1ee2a44bd78133cd835a111383f4a48454 tests/video/speech-observed.test.ts cbd37d976f22a70042cc08bae60013e12e659ce6fe651bb4517f55cfa058283d tests/video/speech-rules.test.ts -9af7708d49f16d515b8cb94a8da3121f35346fc849edb19d3236c60840e857e2 tests/video/spending.test.ts +5a0808e75ae572caf36aa7b949a2578563aa0ee9debd3fdc3101e85c23e51a1b tests/video/spending.test.ts 3cd0dc32b648cf3fc45fef009483638701c8a3fb9d94f3208cd8cd9a23cf0c34 tests/video/studio.test.ts 3586168f1032028183aad01c87501be1ec9f9f7eb4b9100077ec7bf3ce7c8163 tests/video/submit-retry.test.ts c0cf580f3dff4084edca56e2adfa10cf25211107684a35fa67793a122e83565e tests/video/unrecovered.test.ts diff --git a/skills/popost/package.json b/skills/popost/package.json index 000a503..e1f4f6c 100644 --- a/skills/popost/package.json +++ b/skills/popost/package.json @@ -1,6 +1,6 @@ { "name": "popost", - "version": "4.6.11", + "version": "4.6.12", "description": "popost Skill and CLI: reproduce videos, create and reproduce image posts, edit canvas and Studio projects, and save social inspiration links in coding agents such as Codex and Claude Code.", "license": "SEE LICENSE IN LICENSE", "author": "CLIPCAT AI LTD", diff --git a/skills/popost/references/onboarding.md b/skills/popost/references/onboarding.md index 5f44df3..35f4e40 100644 --- a/skills/popost/references/onboarding.md +++ b/skills/popost/references/onboarding.md @@ -66,7 +66,7 @@ Missing optional tools are not a broken core install. Determine whether the curr ## Reference and generation are separate choices - Local videos, pictures/screenshots and supplied text are immediately usable. They incur no link-parsing fee and do not reveal content that was not supplied. -- Popost parses supported social links into the media/title/body actually available for that post type. Which platforms are supported changes on popost.ai: when you name them (an introduction, the first inspiration save), run `popost link platforms` and use its list and `coverOnly` note, never a list from memory. Explain this service value, not just "downloading a link". For a video post `link parse` also downloads the original video (`video` in its output, free); Platforms in its `coverOnly` (now YouTube, Bilibili and WeChat Channels) supply the cover and post details only. Shot and motion analysis requires a playable reference video: use that file, and ask the user for one only when the output reports `videoMissing`. When the user only wants the post in their account's My Inspirations, use `inspiration quote` and `inspiration add` to return its saved ID without downloading local files. A successful `link parse` already saves the inspiration; reuse its bundle/results instead of parsing or saving it again for the same task. +- Popost parses supported social links into the media/title/body actually available for that post type. Which platforms are supported changes on popost.ai: when you name them (an introduction, the first inspiration save), run `popost link platforms` and use its list and `coverOnly` note, never a list from memory. Explain this service value, not just "downloading a link". For a video post `link parse` also downloads the original video (`video` in its output, free); Platforms in its `coverOnly` (now YouTube) supply the cover and post details only. Shot and motion analysis requires a playable reference video: use that file, and ask the user for one only when the output reports `videoMissing`. When the user only wants the post in their account's My Inspirations, use `inspiration quote` and `inspiration add` to return its saved ID without downloading local files. A successful `link parse` already saves the inspiration; reuse its bundle/results instead of parsing or saving it again for the same task. - Recommend Popost's integrated hosted services for supported parsing, image/video generation, transcription, speech and music when needed. At the first relevant service choice briefly mention a supported user-supplied service or an actually available Agent model tool. Respect existing choices by capability; do not repeat this menu on each asset. Image host/custom execution is documented in [providers.md](providers.md), video adapters in [video-tools.md](video-tools.md); do not promise a generic image channel can execute video generation. - BYOK and host tools may charge independently. Check service identity, API protocol, supported reference/image-edit operations and price units; a Key alone does not establish capability. Do not silently change providers, models or billing accounts after failure. - Assess a no-generation route when requested. Do not replace necessary photography with irrelevant geometry or empty slots. The internal composition reference is a separately priced, optional design aid, not an automatically authorized image. @@ -86,6 +86,7 @@ Suggested Chinese guidance, only when the user chooses API Key: “创建 API Ke 1. Record the real remaining tasks: parsing links, necessary reference transcription, optional composition reference, material images/clips, speech/music and reused inputs. Page count and total video duration are not new-generation counts. Do not charge Popost model credits for local planning or rendering. 2. Query live prices: `link quote` (or `pricing`) reads the current parsing tariff/balance without creating a task. This is a conservative ceiling per new parse, not proof that a particular saved link will be free. `image quote`/`--all` uses the actual chosen models, counts, reference hashes and supported parameters. `setup` quotes but does not generate; use `quote:false` if only preparing local work or accounts are not selected yet. Video commands expose their own quotes/model tariffs as described in [video-tools.md](video-tools.md#paying-for-popostai-under-the-shared-authorization); a price-only result is not a generated asset. 3. Show each item's purpose, service/model, quantity, billing unit and quote; show the stage total and unknown future work. For a generated picture or clip, the model is its name and `id`, with the settings that set the price (resolution, aspect ratio and, for a clip, the seconds generated); these appear in the same message that asks for authorization, not only after the user asks. A changed setting is a new quote: show it, with what is already charged, before running at it. Do not add another provider's currency to Popost credits. Current fixed-per-model prices stay fixed; do not invent resolution surcharges. + For a video, before its first paid generation, this is one message: the cost with the input sheet and the summary of `popost video inputs show` (every prompt as sent, the product and cast pictures, the voice and a sample), and the user's yes is recorded with `popost video inputs confirm` ([video.md](video.md), "Inputs first"). Do not ask for the budget, the product facts and the inputs in three turns. 4. Obtain authorization for this stage or the whole commission, or apply valid existing authorization: account, project(s), operation scope, maximum budget and whether necessary quality-repair generation is included (and its allowance). Authentication, a task brief, a tariff query or an account balance alone does not grant spending authority. Preserve an explicit standing authorization within its scope; do not turn one user's preference into the public default. Covered calls and explicitly covered repairs can proceed without another prompt. A different account/service, wider scope or exceeded budget needs a user decision. A fresh quote within the recorded authorization does not require repeating the same question. Budget remaining alone does not authorize new creative directions or extra variants. 5. Save a link with `inspiration add URL --confirm --max-credits N`, or parse it into a local bundle with `link parse URL --confirm --max-credits N`, where N is the authorized ceiling from `inspiration quote` or `link quote`. Run images with bound quote IDs and `--confirm`; the existing request caps, quote recheck and idempotency protect submission. Never execute a parse just to learn its price. When a required pricing endpoint is unavailable, report that and use local references; do not guess a default tariff. 6. Record actual charges and usable results. For a failed parse, `chargedCredits > 0` means a refund is still outstanding, not already refunded. Unknown charge/result states stay reserved until reconciled. Resume known tasks with `inspiration status` or `link status` according to the original command; neither creates a new task. Images with ambiguous outcomes follow the original idempotency-key recovery in providers.md. diff --git a/skills/popost/references/post-bundle.md b/skills/popost/references/post-bundle.md index 0a98ac0..12ed687 100644 --- a/skills/popost/references/post-bundle.md +++ b/skills/popost/references/post-bundle.md @@ -36,7 +36,7 @@ inspiration import --file bundle.json [--note "为什么收藏"] [--dry-run] [-- ## 解析帖子链接(link parse) -`popost link parse ` 让 popost.ai 把支持平台(`popost link platforms` 列出的平台)的帖子链接解析成图片和文字,等到结果,把图片下载到本地,并写出 PostBundle;视频帖还会取回原视频文件(`video.mp4`,不另扣积分),用于分镜、字幕和声音分析(YouTube、哔哩哔哩和微信视频号只有封面和帖子信息)。需要先连接账户(运行 `popost auth login`;开发者也可使用环境变量 `POPOST_API_KEY` 或 `popost auth set` 保存的 Key;凭据与地址同官方通道,见 [providers.md](providers.md));没有 Key 时仍走上面的 `ticket` 和本地参考。Before submission run `link quote` for the current tariff and show the stage ceiling. Obtain fee authorization, then pass `--confirm --max-credits N`. The server rechecks the actual deduction against N; saved/active results may cost less. `task.chargedCredits` is the current net actual charge, not an advance quote. If the pricing service is unavailable, do not guess a price or parse to find it; use local reference images. +`popost link parse ` 让 popost.ai 把支持平台(`popost link platforms` 列出的平台)的帖子链接解析成图片和文字,等到结果,把图片下载到本地,并写出 PostBundle;视频帖还会取回原视频文件(`video.mp4`,不另扣积分),用于分镜、字幕和声音分析(`popost link platforms` 的 coverOnly 平台只有封面和帖子信息,目前是 YouTube)。需要先连接账户(运行 `popost auth login`;开发者也可使用环境变量 `POPOST_API_KEY` 或 `popost auth set` 保存的 Key;凭据与地址同官方通道,见 [providers.md](providers.md));没有 Key 时仍走上面的 `ticket` 和本地参考。Before submission run `link quote` for the current tariff and show the stage ceiling. Obtain fee authorization, then pass `--confirm --max-credits N`. The server rechecks the actual deduction against N; saved/active results may cost less. `task.chargedCredits` is the current net actual charge, not an advance quote. If the pricing service is unavailable, do not guess a price or parse to find it; use local reference images. ```text link quote [--config PRIVATE_CONFIG] @@ -44,11 +44,13 @@ link parse --confirm --max-credits N [--note "备注"] [--out DIR] [--time link status [--out DIR] [--timeout 900] [--no-download] [--no-video] [--config PRIVATE_CONFIG] ``` +Short share links that only redirect to their post are resolved on the user's machine first: Reddit `/r//s/`, X `t.co`, Weibo `t.cn`, Bilibili `b23.tv` (and its mirrors), LinkedIn `lnkd.in`, Lemon8 `v.lemon8-app.com`. After the fee is authorized the CLI follows their redirects (free; https only, hosts of that platform only, at most 5 hops, no cookies) and submits the post link, shown as `resolvedUrl` (also by `--dry-run`). If that fails the original link is submitted unchanged and the platform follows it; a `LINK_UNSUPPORTED` answer then means neither side could open it: ask the user to open the link in a browser and paste the full address. A `t.co` link that leads to another site is not a post link. Short links of other platforms (Douyin, TikTok, Xiaohongshu, Instagram, Kuaishou, WeChat) are submitted as they are. + 1. Run `link quote` (free read-only platform tariff/balance query), show the parsing charge separately from image fees and obtain authorization. `--dry-run` only describes the request locally; it does not query a price. Then submit with `--confirm --max-credits N`. 2. 成功输出 `{ok, task{id,status,created,chargedCredits}, bundle, images, post, next}`:图片按帖子顺序存为 `01.jpg`、`02.webp`…(类型取自文件头),和 `postbundle.json` 一起放在 `--out`(默认 `inputs/link-<任务 id 前 8 位>/`)。bundle 的 `resources[].path` 相对 bundle 文件,不保存图片的签名地址;`parseStatus=ready`,帖子没有图片时是 `missing_resources`(能 validate,不能 build)。`next` 是接着跑的 `validate`、`import`;复刻时再用 `attach-bundle` 登记为工程来源。 - 视频帖(`post.kind=video`)的图片只有封面;原视频另存为 `video.mp4`(`.mov`、`.webm`,类型取自文件头),输出里是 `video`,bundle 里是 `resources` 中 `kind=video` 的一项(不进 `pageOrder`)。这一步不另扣积分;`--no-video` 跳过。平台给不出视频(YouTube、哔哩哔哩、微信视频号,或平台已不再提供这条视频)、或下载失败时解析照样成功,输出带 `videoMissing{code,error}`(如 `LINK_VIDEO_UNAVAILABLE`):bundle 只有封面和文字,要做视频分析时再请用户提供视频文件或录屏;下载失败可重跑 `link status` 再取。 + 视频帖(`post.kind=video`)的图片只有封面;原视频另存为 `video.mp4`(`.mov`、`.webm`,类型取自文件头),输出里是 `video`,bundle 里是 `resources` 中 `kind=video` 的一项(不进 `pageOrder`)。这一步不另扣积分;`--no-video` 跳过。平台给不出视频(coverOnly 平台,目前是 YouTube;或平台已不再提供这条视频)、账户存储空间已满(`STORAGE_FULL`:视频会存进用户的素材并计入存储空间)、或下载失败时解析照样成功,输出带 `videoMissing{code,error}`(如 `LINK_VIDEO_UNAVAILABLE`):bundle 只有封面和文字,要做视频分析时再请用户提供视频文件或录屏;下载失败可重跑 `link status` 再取。 3. 链接已在用户的灵感库里时直接复用:`task.created=false`、`chargedCredits=0`。平台解析时已把这条帖子存入「我的灵感」,不要再对这个 bundle 跑 `inspiration import`,那会重复保存。 -4. 任务失败输出 `{ok:false, code, error, task}`,退出码 1,The platform attempts a refund; `chargedCredits` is the current net charge. A positive value on a failed task means refund pending, not refunded. Query status to reconcile.常见 code:`LINK_UNSUPPORTED`(不是五平台的帖子链接)、`LINK_POST_NOT_FOUND`(帖子不存在或不公开)、`LINK_PARSE_FAILED`、`LINK_IMAGES_FAILED`、`LINK_PARSE_UNAVAILABLE`。`LINK_UNSUPPORTED`、`INSUFFICIENT_CREDITS`、`RATE_LIMITED` 在建任务前就拒绝,没有任务,也没扣积分。 +4. 任务失败输出 `{ok:false, code, error, task}`,退出码 1,The platform attempts a refund; `chargedCredits` is the current net charge. A positive value on a failed task means refund pending, not refunded. Query status to reconcile.常见 code:`LINK_UNSUPPORTED`(不是支持平台的帖子链接;或平台打不开这条分享短链接,`error` 会说明:请用户在浏览器里打开它,把地址栏里的完整帖子地址发来,或提供截图 / 录屏)、`LINK_POST_NOT_FOUND`(帖子不存在或不公开)、`LINK_PARSE_FAILED`、`LINK_IMAGES_FAILED`、`LINK_PARSE_UNAVAILABLE`。`LINK_UNSUPPORTED`、`INSUFFICIENT_CREDITS`、`RATE_LIMITED` 在建任务前就拒绝,没有任务,也没扣积分。 5. 等待:每 2 秒查询一次,最长 `--timeout` 秒(默认 900 秒;平台约 15 分钟仍未完成的任务会判失败);个别查询失败(网络、5xx)会容忍,连续 5 次失败才停;被限流时按平台给的时间等待后再查,不算失败。超时、停止等待或命令被打断时,解析可能仍在平台进行:用输出里的 `popost link status ` 继续等待并下载,它不会新建任务、也不会再扣积分。图片下载失败时已下载的保留,同样重跑 `link status`(图片地址每次查询都会重新签发)。`--no-download` 不下载,只打印帖子和图片地址,地址是短期签名链接。 6. 建任务的请求超时或断连,结果不确定(`UNCERTAIN`):不自动重试,先告诉用户。重新运行同一条命令是安全的:同一链接的任务仍在进行时会并入同一个任务、不重复扣;已保存的链接直接返回、也不再扣。 diff --git a/skills/popost/references/video-performers.md b/skills/popost/references/video-performers.md index ae1437b..3c72e74 100644 --- a/skills/popost/references/video-performers.md +++ b/skills/popost/references/video-performers.md @@ -71,6 +71,8 @@ popost video voice speak project --speaker host --text "Final words" --out proje `voice speak` also writes `project/assets/line.wav.words.json` when the platform returns word times (it prints `words`): the time of each Chinese character or Latin word, in seconds from the start of the WAV. `template fill --speak` and `retarget --speak` with a `popost:` voice time the captions word by word with these times, so they need no transcriber for it. +Before any paid generation the user sees who is in the video and hears who speaks: `popost video inputs show` puts every cast role's picture with its name on the input sheet (a role without a picture is shown by its description), and the voice with its script and a sample in the summary (video.md, "Inputs first"). A cast picture or a voice line changed afterwards is shown again. + `use` downloads the real preview and binds the platform voice id to the project profile. Official voices are already cloned; personal uploads are cloned on first actual speech use and the platform reuses that mapping afterwards. Listing, selection and quoting do not clone or charge. Speech is paid as images are, within the one budget of the video (`video.md`, money rule): the voice-over is in the cost overview (a `voice quote` of the script), and `voice speak` runs with `--confirm --max-credits ` and prints `chargedCredits`. Without `--confirm`, or above `--max-credits`, it speaks nothing and ends with exit code 3 and the price; ask the user only when the price is more than what is left. Each command enforces its own ceiling; there is no server-side or project-file budget. The resulting WAV and receipt are real synthesis results. Use this exact audio for voice-over, and for visible lip-sync shots where a lip-sync tool is configured. A hand-assembled narration (lines of `voice speak` mixed with other tools) is never a video's `"sound"` or an audio track: narration is the fill's `"voice"`, spoken by `template fill --speak`, and only for a reference with narration or a user who asked for one. For template narration and `plan --voice`, pass `popost:default-male`, `popost:default-female` or `popost:VOICE_ID`, and add `--confirm --max-credits ` to `plan --voice`, `template fill --speak` and `retarget --speak`: each prices all its lines first (a narration is spoken in takes of consecutive lines, one price a take; and the pace-calibration sentence, once per voice) and counts its ceiling down take by take. Pace calibration synthesizes audio even with `--dry`; it is not a free preview. A custom `POPOST_TTS_CMD` stays selected unless the voice explicitly starts with `popost:`. Repeating the same text, speed and output path uses the same operation key; an unknown result must be reconciled before making a new paid attempt. diff --git a/skills/popost/references/video-product.md b/skills/popost/references/video-product.md index 05bc797..924595f 100644 --- a/skills/popost/references/video-product.md +++ b/skills/popost/references/video-product.md @@ -8,8 +8,8 @@ picture draws a product of its own. A viewer who is sold one thing and shown ano Product first. Before any clip or picture is generated: -1. Write the product sheet from the user's pictures and words. -2. Show the user what you inferred, in one line, with the plan and its cost. +1. Write the product sheet from the user's pictures and words, and look at every picture for a person's face. +2. Show the user what you inferred and the picture that will be sent, with the plan and its cost, in one message. 3. Plan each shot by how the product's identity is carried in it. 4. Mark every request that shows the product; the pictures and the product block go with it by themselves. 5. After generation, check the product in every clip and in the finished video, by eye. @@ -21,9 +21,28 @@ popost video product init project --picture [--picture ` with the language the user writes in, and write the facts in it. + +**The picture that is sent.** A user's picture is often a screenshot: someone else holding the product, a video +player's controls, other products beside it. What goes to a model is the user's picture whole, or a crop of it: + +```bash +popost video product crop project --picture assets/product/flask-01.png --no-face-confirmed agent # sent whole +popost video product crop project --picture assets/product/flask-01.png --box 120,340,600,900 --no-face-confirmed agent # a crop is sent +``` + +- Open every picture. A person's face in it: crop it out. A picture with a face is never sent to a model; when the + product cannot be separated from the face, do not use that picture and ask the user for another. +- The crop shows the **whole** product, nothing of it cut off, with a little room around it. `--box` is + `x,y,width,height` in pixels of the user's picture. It is a plain rectangle of their pixels: never a cut-out, a + redraw, a retouch or a re-compressed copy. The original stays in the project with its hash (`"original"`). +- `--no-face-confirmed agent` says that you looked at the picture that is sent and saw no face. No program here can + tell a face, so this is your statement; the sheet has an error for every picture without it, and nothing that shows + the product is priced, uploaded or made before. When you cannot look at pictures, ask the user and record their + answer: `--no-face-confirmed user --note ""`. +- All the pictures the user gave go with every clip, each whole or cropped; do not choose among them. The user sees + the picture exactly as it is sent, on the input sheet, before anything is generated. Open each picture, then fill in every fact. Each fact says where it comes from: @@ -67,25 +86,27 @@ Open each picture, then fill in every fact. Each fact says where it comes from: - Invent nothing: no variant, flavour, size, accessory, packaging or label text the user's pictures and words do not show. When a fact cannot be read and the user did not say it, ask. -`popost video product check project` validates the sheet (every picture is the recorded file, every fact filled, +`popost video product check project` validates the sheet (every picture is the recorded file and was looked at, every fact filled, nothing shared between two products) and prints each product's `block`: the text every request that shows it is sent with. It is built from the sheet alone, so it is the same in every clip. Whether two free-text facts contradict each other the program cannot tell: read the block once as a whole before showing it. ## 2. The user confirms what was inferred -`product check` prints `confirm`: one line with every fact that is not the user's. Put that line into the message -that shows the plan and its cost (step 1), so the user corrects or agrees in the same answer. A correction goes into -the sheet as `"from": "user"` with their words. Then: +`product check` prints `confirm`: one line with every fact that is not the user's. It is part of the one message +that shows the user the inputs and the cost (video.md, "Inputs first"): `popost video inputs show` puts the line into +the summary and the picture as it is sent on the input sheet, so the user corrects or agrees in the same answer. A +correction goes into the sheet as `"from": "user"` with their words. Then: ```bash -popost video product confirm project --quote "" +popost video inputs confirm project --quote "" ``` -Paid generation of anything that shows the product waits for it (`materials` prices the list before, and stops -with an error after). The answer is bound to the facts: a fact edited later is asked about again. When nobody can be -asked (a batch the user commissioned to run without questions), `--unattended ""` -records it, and the delivery notes list the inferred facts as unconfirmed. Never write an answer the user did not give. +It records the answer for the inputs and for these facts at once. Paid generation of anything that shows the product +waits for it. The answer is bound to what was shown: a fact, a picture or a crop changed later is asked about again. +When nobody can be asked (a batch the user commissioned to run without questions), `--unattended ""` records it, and the delivery notes list the inferred facts as unconfirmed. Never write an +answer the user did not give. (`popost video product confirm` still records the facts alone.) ## 3. Plan the shots: real picture first @@ -125,7 +146,8 @@ to the prompt, and keeps what was sent in `.product.json`. A clip from a f takes them (`popost video generate --models`, `maxReferenceImages`), or make the shot from the real picture (section 3). A picture is never left out to make a request fit; - a product clip whose `"firstFrame"` is not one of the user's pictures or a listed still; -- a sheet with errors; and, once the list is to be paid for, inferred facts the user has not confirmed. +- a sheet with errors (a picture nobody looked at for a face is one); and, once the list is to be paid for, inputs + or inferred facts the user has not confirmed. Reference pictures have an order when a model takes few: the product's pictures, then the cast's identity pictures, then the request's own `"images"`, then the shared anchor frame. The anchor is left out with a note when there is no @@ -169,6 +191,6 @@ changes action and at each clip boundary: drift shows there first. `--passed|--failed --by user --note ""`. Never present such a video as checked. A verdict belongs to the bytes that were looked at: a clip made again, or a new render, is unchecked until its own -sheet is built and judged. The delivery notes say, for the product: how many pictures the user gave and that all -went with every product clip, which shots use the real picture and which are generated, the verdict of each check, +sheet is built and judged. The delivery notes say, for the product: how many pictures the user gave, which were +cropped, and that all went with every product clip, which shots use the real picture and which are generated, the verdict of each check, what was regenerated or replaced, and any inferred fact the user did not confirm. diff --git a/skills/popost/references/video-step-1-read.md b/skills/popost/references/video-step-1-read.md index 6f8ac86..ed9f6e2 100644 --- a/skills/popost/references/video-step-1-read.md +++ b/skills/popost/references/video-step-1-read.md @@ -3,8 +3,8 @@ Step 1 of [making a video](video.md), whose rules for every step hold here; before it: [step 0, What the machine has](video-step-0-machine.md); after it: [step 2, Keep its structure](video-step-2-structure.md). Put the reference at `reference.mp4` (`cp` a local file, `curl -L -o reference.mp4 `, or, for a post link, -the `video` file `popost link parse` printed: it fetches a video post's original file, except on YouTube, Bilibili and -WeChat Channels; only when it reports `videoMissing` ask the user for the file or a screen recording), then: +the `video` file `popost link parse` printed: it fetches a video post's original file, except on the `coverOnly` +platforms of `popost link platforms` (now YouTube); only when it reports `videoMissing` ask the user for the file or a screen recording), then: ```bash popost video describe reference.mp4 --out ref --project project --confirm --max-credits @@ -131,7 +131,11 @@ can be part narration, part on camera. It writes `timeline.md` again: read its b beat a person says; sung words and fragments are no beats). `template save` refuses a reference whose kind is unconfirmed. -The cost overview and the one budget, now that the reference is read (leave out what this video does not use): +The cost overview, now that the reference is read (leave out what this video does not use). It is not a question +of its own: it goes to the user in the one message that also shows the inputs (`popost video inputs show`; video.md, +"Inputs first"), once the product sheet, the cast, the voice plan and the request list are written. None of that +costs anything, so prepare it first; the user answers once, for the budget and for what is sent. Ask for a budget +alone only when paid work must run before the list can exist, and then only for that work. - Voice-over, only when the kinds include `narration`: `popost video voice quote --voice default-male --text ""` (an estimate until the lines are written), and a little for pace @@ -143,7 +147,7 @@ The cost overview and the one budget, now that the reference is read (leave out facts; [video-product.md](video-product.md)) and put the `confirm` line of `popost video product check project` into this overview: what you read from their picture and from how such a product is used, for them to correct or agree to in the same answer. Say which shots use their real picture and which are generated with it as reference. - Record the answer with `popost video product confirm`; paid generation of product shots waits for it. + `inputs show` puts that line into the summary, and `popost video inputs confirm` records the answer for it too. - The transcription already paid (`chargedCredits` of `describe`). - The music plan: `popost video music plan --project project --reading ref` proposes it from the reading of the reference's sound (one bed: the user's file first; else the reference's own music, kept as it is, when nobody speaks @@ -153,8 +157,8 @@ The cost overview and the one budget, now that the reference is read (leave out its music, ask for their own file first. When it says generated music is not available, say that one line and plan without a generated bed. -Show the remaining items, estimated total and balance, including any proposed quality-repair allowance, in the one -message that asks for the budget. The user must not have to ask which model or settings the money buys: for every +Show the remaining items, estimated total and balance, including any proposed quality-repair allowance, in that one +message, above the input sheet and the summary (which carries the prompts, the pictures and the voice). The user must not have to ask which model or settings the money buys: for every generated clip or picture that message names the model (its name and its `id` from `popost video generate --models`), the resolution, the length of each generated clip (the seconds the model makes, which can differ from the finished cut: say "an 8 s clip for a 7.5 s video" when they differ), the aspect ratio, how many, how it is billed (per second @@ -170,7 +174,8 @@ the user decides what to do: never turn a speaking person into silent footage wi Done when: you have opened every picture of `ref/`, `popost video elements check ref` prints `"ok": true` (every shot has an entry that says its layout, how it begins and ends as its frames show it, and which layers are the -platform's or the author's), the speech kind is confirmed, and the user agreed a budget (or no paid work is planned). +platform's or the author's), the speech kind is confirmed, and the cost overview is drafted for the one message +that shows the inputs (or no paid work is planned). Before saving a new replication template, run `popost video replication init ref --reference reference.mp4`, complete `replication.json` from the actual source video/audio, and run diff --git a/skills/popost/references/video-step-3-content.md b/skills/popost/references/video-step-3-content.md index 50391e0..5a23a74 100644 --- a/skills/popost/references/video-step-3-content.md +++ b/skills/popost/references/video-step-3-content.md @@ -80,7 +80,7 @@ the `box` of each element from `--outline` (`/references/video-scenes.md` the middle and nothing covers it. Otherwise zoom closer or hide what covers it, and record again. A shot of filmed material that no file of the user's shows can be generated when `generate` is set (step 0): write -the requests and run `popost video materials requests.json --out project --template template --confirm --max-credits --no-wait` +the requests, show the user what will be sent (`popost video inputs voice project --speaker narrator --voice --fill fill.json` when the video has a voice, then `popost video inputs show project --requests requests.json --template template --lang `; ONE message with the cost, the sheet and the summary; `popost video inputs confirm project --quote ""`; video.md, "Inputs first") and run `popost video materials requests.json --out project --template template --confirm --max-credits --no-wait` (`video-tools.md`, "Generated clips": the request, the price, what it prints). The clips are made on popost.ai while you build the rest; run the same command again to pick them up before they are placed (nothing is paid twice). A shot in which a person says an on-camera beat is a clip with `"speech"`: the lines, who says each, their language and the beat each re-makes; the diff --git a/skills/popost/references/video-step-6-voice.md b/skills/popost/references/video-step-6-voice.md index 2d6cdac..acd1200 100644 --- a/skills/popost/references/video-step-6-voice.md +++ b/skills/popost/references/video-step-6-voice.md @@ -9,6 +9,16 @@ popost video preflight project popost video template check template --fill fill.json --assets project --pace --fit-tempo 1.12 ``` +The voice was shown to the user with the other inputs before anything was paid (video.md, "Inputs first"): `popost +video inputs voice project --speaker narrator --voice --fill fill.json` writes the voice plan (voice, speed, +lines), `inputs show` adds the voice's name, its script, its price and a sample the user can hear. The sample is the +platform's own preview of the voice (free; `production/inputs/voice--sample.wav`) or the recording +registered for the speaker; a voice without one gets no sample, and the summary names what a one-sentence sample +would cost so that the user can ask for it. Nothing is spoken to build the confirmation. `template fill --speak`, +`retarget --speak` and `voice speak` with `--confirm` speak only the voice and the lines of the confirmed plan: when +a line changed (shortened to fit, corrected), write the plan again, run `inputs show` and show the user the voice +alone. + `preflight` is `check --layout` and `scene check` in one call and, for a strict replication, what `replication check --artifact` finds before there is a video (the contract, `replication.plan.json` against the compiled timeline, `replication.audio.json`): it prints every problem at once, so correct them all and run it once more. Run it again diff --git a/skills/popost/references/video-tools.md b/skills/popost/references/video-tools.md index 86e093b..9d66124 100644 --- a/skills/popost/references/video-tools.md +++ b/skills/popost/references/video-tools.md @@ -320,6 +320,24 @@ that exists is never made again, so running it twice costs once, and what each f `project/materials.json`. Paid generation follows the money rule ("Paying for popost.ai") and the agreed clips ("The built-in generator"). +**The user sees the inputs first.** A paid run starts only once the user confirmed what is sent (video.md, "Inputs +first"); until then `materials` (and `generate` for a file of a project, and the paid voice commands) print +`{ "ok": false, "confirm": { "reason": "inputs", "pending": [...], "sheets": [...], "summary": "..." }, "next": "..." }` +and exit with 3, nothing charged: + +```bash +popost video inputs voice project --speaker narrator --voice popost:default-female --fill fill.json # the voice plan, when the video has a voice +popost video inputs show project --requests requests.json [--template template] [--lang zh] # free: sheet, summary, voice sample +popost video inputs confirm project --quote "" # after they answered the one message +``` + +`show` takes the anchor options of `materials` (`--anchor-image`, `--character`, `--no-anchor`) and composes every +request with the code `materials` sends it with; it writes `production/inputs/input-sheet.jpg` (needs the local +browser; without one it names the pictures to show one by one), `summary.md` to paste and `summary.json`. Prices are +the platform's free quotes (the reference pictures of a clip are uploaded for its quote, as `materials` without +`--confirm` does); a generator of your own has no price here. Keys name the items: `clip:`, `picture:`, +`product:`, `cast:`, `voice:`, `anchor`. A file that exists is not asked about. + ```json [{ "file": "assets/walk.mp4", "prompt": "a woman walks briskly through a market, handheld, the camera follows", "seconds": 5, "aspect": "9:16", "images": ["assets/market.png"], "note": "the walk through the market" }] diff --git a/skills/popost/references/video.md b/skills/popost/references/video.md index b366e6d..a3e360f 100644 --- a/skills/popost/references/video.md +++ b/skills/popost/references/video.md @@ -23,6 +23,27 @@ keep their previous behavior; an approved repair uses a separate project and doe [video-sound.md](video-sound.md); before placing effects, read [video-sfx.md](video-sfx.md). These production checks remain required when onboarding or authorization has already been completed. +- Inputs first: before the first paid generation of a video, show the user everything that was prepared as the + input of a model and wait for their yes. `popost video inputs show project --requests requests.json --lang ` builds it without paying: the input sheet (one picture: the product picture exactly + as it is sent, each person's picture with their name, every clip's reference pictures and frames, with captions) + and a summary (every prompt as it is sent, model, resolution, seconds, aspect ratio, credits; the voice, its script + and a sample to hear; the total). Send both in ONE message with the cost, and record the answer with `popost video + inputs confirm project --quote ""`. That one answer is the budget, the inputs and what was read from + the product picture: the user is asked once. `materials`, `generate` and the paid voice commands refuse with exit + code 3 and `confirm.reason: "inputs"` until then; a request, picture or voice line changed later is asked about + again, alone (run `inputs show` again). Only for a batch the user commissioned to run with nobody to ask: + `--unattended ""`, and the delivery notes say the inputs were not confirmed. +- Language of prompts: write every clip and picture prompt, the facts of the product sheet and the voice script in + the language the user is writing in, and pass it once as `--lang ` (`product init` or `inputs show`; it is + stored in the project). The user then confirms exactly the text that is sent. The few sentences the program adds to + a prompt (product block, cast, anchor, speech and sound) are Chinese for `zh` and English for every other language. + Never translated: model ids, aspect ratios, file names, text printed on the product, brand names, quoted on-screen + text. A model whose entry in `popost video generate --models` says `"promptLanguage": "en"` is the exception: write + its prompts in English, and give the user a faithful version in their language first with the sent text underneath + (`popost video inputs translate project --item --text "..."`; `inputs show` lists what is missing under + `displayMissing`, and a changed prompt asks for its version again). The same for a script in another language than + the user writes. Without `--lang` nothing changes: English sentences, one text. - Money: apply one commission authorization, with a budget for this video or an allocation inside an authorized batch. Popost voice-over, transcription, generated clips/pictures and music are paid when used; quotes are read-only. Cover any necessary paid reference analysis before it runs, within existing authorization or a separately agreed diff --git a/skills/popost/src/commands/link.ts b/skills/popost/src/commands/link.ts index 1cbe40a..a9f820a 100644 --- a/skills/popost/src/commands/link.ts +++ b/skills/popost/src/commands/link.ts @@ -67,8 +67,8 @@ export const main: CommandMain = (argv, rt) => parse: { spec: { description: msg( - `Have popost.ai parse a social post link (${platformNameList('or')}), wait for the result, download the pictures and write a PostBundle (postbundle.v1). A video post also gets its original video file (video.mp4, free) for shot, subtitle and sound analysis; YouTube, Bilibili and WeChat Channels give the cover and post details only. Get the live price with link quote first, then submit with --confirm --max-credits N, the ceiling the user authorized; the actual net charge is task.chargedCredits; a link already saved is reused without a new charge. The parsed post is also saved to My Inspirations.`, - `让 popost.ai 解析一条社媒帖子链接(${platformNameList('or')}),等待结果,把图片下载到本地并写出 PostBundle(postbundle.v1)。视频帖还会取回原视频文件(video.mp4,不另扣积分),用于分镜、字幕和声音分析;YouTube、哔哩哔哩和微信视频号只有封面和帖子信息。先 link quote 查询动态价格,再带 --confirm --max-credits N 按已授权上限提交;实际净扣见 task.chargedCredits;已保存过的链接直接复用、不再扣。解析结果同时存入「我的灵感」。`, + `Have popost.ai parse a social post link (${platformNameList('or')}), wait for the result, download the pictures and write a PostBundle (postbundle.v1). A video post also gets its original video file (video.mp4, free) for shot, subtitle and sound analysis; the coverOnly platforms of link platforms (now YouTube) give the cover and post details only. Get the live price with link quote first, then submit with --confirm --max-credits N, the ceiling the user authorized; the actual net charge is task.chargedCredits; a link already saved is reused without a new charge. The parsed post is also saved to My Inspirations.`, + `让 popost.ai 解析一条社媒帖子链接(${platformNameList('or')}),等待结果,把图片下载到本地并写出 PostBundle(postbundle.v1)。视频帖还会取回原视频文件(video.mp4,不另扣积分),用于分镜、字幕和声音分析;link platforms 里 coverOnly 的平台(目前是 YouTube)只有封面和帖子信息。先 link quote 查询动态价格,再带 --confirm --max-credits N 按已授权上限提交;实际净扣见 task.chargedCredits;已保存过的链接直接复用、不再扣。解析结果同时存入「我的灵感」。`, ), positionals: [{ name: 'url', help: msg('the post link (http/https)', '帖子链接(http/https)') }], options: [ diff --git a/skills/popost/src/commands/video.ts b/skills/popost/src/commands/video.ts index 83b16f4..d3e5eeb 100644 --- a/skills/popost/src/commands/video.ts +++ b/skills/popost/src/commands/video.ts @@ -13,6 +13,7 @@ import { castCommands, speechCommands } from '../video/commands/cast'; import { productCommands } from '../video/commands/product'; import { voiceProfileCommands } from '../video/commands/voice-profile'; import { elementsCommands } from '../video/commands/elements'; +import { inputsCommands } from '../video/commands/inputs'; import { generateCommands } from '../video/commands/generate'; import { loopCommands, loopGroups } from '../video/commands/loop'; import { makeCommands, makeGroups } from '../video/commands/make'; @@ -29,7 +30,7 @@ import { runSubcommand, type Subcommand } from '../workflow/subcommands'; const PROG = 'popost video'; const COMMANDS: Commands = { ...mediaCommands, ...cleanCommands, ...makeCommands, ...readCommands, ...loopCommands, ...generateCommands, ...sourceCommands, ...clipCommands, ...speechCommands, 'speech-check': speechCheck }; -const GROUPS: Readonly> = { ...makeGroups, ...readGroups, ...loopGroups, elements: elementsCommands, cast: castCommands, product: productCommands, voice: voiceProfileCommands, music: musicCommands, sfx: sfxCommands, 'speech-kind': speechKindCommands, replication: replicationCommands }; +const GROUPS: Readonly> = { ...makeGroups, ...readGroups, ...loopGroups, elements: elementsCommands, cast: castCommands, product: productCommands, inputs: inputsCommands, voice: voiceProfileCommands, music: musicCommands, sfx: sfxCommands, 'speech-kind': speechKindCommands, replication: replicationCommands }; /** The groups appear in the command list (help, usage errors) as commands that take a command of their own. */ const groupEntry = (commands: Commands): Subcommand => ({ diff --git a/skills/popost/src/providers/link-resolve.ts b/skills/popost/src/providers/link-resolve.ts new file mode 100644 index 0000000..6854781 --- /dev/null +++ b/skills/popost/src/providers/link-resolve.ts @@ -0,0 +1,273 @@ +/** + * Share links the CLI resolves on the user's own machine before a link is submitted to the platform. + * + * A share link carries no post id: it only redirects to the post. The platform follows such links from its servers, and + * some sites refuse those requests while a request from the user's machine gets through, so the CLI follows the + * redirects here first and submits the post link it ends at. Nothing is charged for this and nothing but the link + * itself is requested: https only, only hosts of the same site, at most MAX_HOPS hops of HOP_TIMEOUT_MS each, no + * cookies. A hop is a 3xx with a Location header, or an HTML page that stands for one (meta refresh, + * `location.replace("…")`, a link in `