popost 0.0.0-stage → 4.6.0

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.
Files changed (772) hide show
  1. package/LICENSE +12 -0
  2. package/README.md +35 -2
  3. package/SKILL.md +147 -0
  4. package/THIRD_PARTY_NOTICES +11 -0
  5. package/agents/openai.yaml +4 -0
  6. package/assets/canvas/THIRD_PARTY_LICENSES.txt +1339 -0
  7. package/assets/canvas/assets/dist-Ag5yM9-G.js +12 -0
  8. package/assets/canvas/assets/es-C_Ha8SM2.js +2 -0
  9. package/assets/canvas/assets/es-DzkTYs_E.js +38 -0
  10. package/assets/canvas/assets/index-DS6BKqT0.css +1 -0
  11. package/assets/canvas/assets/index-DjfLTPyx.js +72 -0
  12. package/assets/canvas/assets/jszip.min-Cw2BF2G0.js +2 -0
  13. package/assets/canvas/build-info.json +14 -0
  14. package/assets/canvas/index.html +13 -0
  15. package/assets/fonts/NOTICE.txt +168 -0
  16. package/assets/fonts/cjk-brush/LICENSE +93 -0
  17. package/assets/fonts/cjk-calligraphy/LICENSE +93 -0
  18. package/assets/fonts/cjk-cursive/LICENSE +93 -0
  19. package/assets/fonts/cjk-display/LICENSE +93 -0
  20. package/assets/fonts/cjk-rounded/LICENSE +93 -0
  21. package/assets/fonts/cjk-sans/LICENSE +93 -0
  22. package/assets/fonts/cjk-sans-tc/LICENSE +93 -0
  23. package/assets/fonts/cjk-serif/LICENSE +93 -0
  24. package/assets/fonts/cjk-serif-tc/LICENSE +93 -0
  25. package/assets/fonts/cjk-title/LICENSE +93 -0
  26. package/assets/fonts/cjk-wenkai/LICENSE +94 -0
  27. package/assets/fonts/cjk-wenkai-tc/LICENSE +93 -0
  28. package/assets/fonts/clean-sans/LICENSE +93 -0
  29. package/assets/fonts/condensed-sans/LICENSE +93 -0
  30. package/assets/fonts/css/cjk-brush.css +919 -0
  31. package/assets/fonts/css/cjk-calligraphy.css +737 -0
  32. package/assets/fonts/css/cjk-cursive.css +919 -0
  33. package/assets/fonts/css/cjk-display.css +737 -0
  34. package/assets/fonts/css/cjk-rounded.css +929 -0
  35. package/assets/fonts/css/cjk-sans-tc.css +1079 -0
  36. package/assets/fonts/css/cjk-sans.css +809 -0
  37. package/assets/fonts/css/cjk-serif-tc.css +1079 -0
  38. package/assets/fonts/css/cjk-serif.css +809 -0
  39. package/assets/fonts/css/cjk-title.css +919 -0
  40. package/assets/fonts/css/cjk-wenkai-tc.css +2298 -0
  41. package/assets/fonts/css/cjk-wenkai.css +16 -0
  42. package/assets/fonts/css/clean-sans.css +8 -0
  43. package/assets/fonts/css/condensed-sans.css +8 -0
  44. package/assets/fonts/css/editorial-serif.css +8 -0
  45. package/assets/fonts/css/experimental-display.css +8 -0
  46. package/assets/fonts/css/geometric-sans.css +8 -0
  47. package/assets/fonts/css/latin-anton.css +29 -0
  48. package/assets/fonts/css/latin-be-vietnam-pro.css +116 -0
  49. package/assets/fonts/css/latin-bebas-neue.css +19 -0
  50. package/assets/fonts/css/latin-caveat.css +39 -0
  51. package/assets/fonts/css/latin-cormorant-garamond.css +98 -0
  52. package/assets/fonts/css/latin-dancing-script.css +29 -0
  53. package/assets/fonts/css/latin-dm-sans.css +38 -0
  54. package/assets/fonts/css/latin-ibm-plex-mono.css +196 -0
  55. package/assets/fonts/css/latin-inter-tight.css +138 -0
  56. package/assets/fonts/css/latin-inter.css +138 -0
  57. package/assets/fonts/css/latin-jetbrains-mono.css +118 -0
  58. package/assets/fonts/css/latin-lexend.css +29 -0
  59. package/assets/fonts/css/latin-libre-baskerville.css +38 -0
  60. package/assets/fonts/css/latin-lora.css +138 -0
  61. package/assets/fonts/css/latin-manrope.css +59 -0
  62. package/assets/fonts/css/latin-montserrat.css +98 -0
  63. package/assets/fonts/css/latin-open-sans.css +198 -0
  64. package/assets/fonts/css/latin-oswald.css +49 -0
  65. package/assets/fonts/css/latin-pacifico.css +49 -0
  66. package/assets/fonts/css/latin-playfair-display.css +78 -0
  67. package/assets/fonts/css/latin-poppins.css +116 -0
  68. package/assets/fonts/css/latin-roboto.css +178 -0
  69. package/assets/fonts/css/latin-source-serif-4.css +118 -0
  70. package/assets/fonts/css/luxury-serif.css +8 -0
  71. package/assets/fonts/editorial-serif/LICENSE +93 -0
  72. package/assets/fonts/experimental-display/LICENSE +93 -0
  73. package/assets/fonts/geometric-sans/LICENSE +93 -0
  74. package/assets/fonts/latin-anton/LICENSE +93 -0
  75. package/assets/fonts/latin-be-vietnam-pro/LICENSE +93 -0
  76. package/assets/fonts/latin-bebas-neue/LICENSE +93 -0
  77. package/assets/fonts/latin-caveat/LICENSE +93 -0
  78. package/assets/fonts/latin-cormorant-garamond/LICENSE +93 -0
  79. package/assets/fonts/latin-dancing-script/LICENSE +93 -0
  80. package/assets/fonts/latin-dm-sans/LICENSE +93 -0
  81. package/assets/fonts/latin-ibm-plex-mono/LICENSE +93 -0
  82. package/assets/fonts/latin-inter/LICENSE +93 -0
  83. package/assets/fonts/latin-inter-tight/LICENSE +93 -0
  84. package/assets/fonts/latin-jetbrains-mono/LICENSE +93 -0
  85. package/assets/fonts/latin-lexend/LICENSE +93 -0
  86. package/assets/fonts/latin-libre-baskerville/LICENSE +93 -0
  87. package/assets/fonts/latin-lora/LICENSE +93 -0
  88. package/assets/fonts/latin-manrope/LICENSE +93 -0
  89. package/assets/fonts/latin-montserrat/LICENSE +93 -0
  90. package/assets/fonts/latin-open-sans/LICENSE +93 -0
  91. package/assets/fonts/latin-oswald/LICENSE +93 -0
  92. package/assets/fonts/latin-pacifico/LICENSE +93 -0
  93. package/assets/fonts/latin-playfair-display/LICENSE +93 -0
  94. package/assets/fonts/latin-poppins/LICENSE +93 -0
  95. package/assets/fonts/latin-roboto/LICENSE +93 -0
  96. package/assets/fonts/latin-source-serif-4/LICENSE +93 -0
  97. package/assets/fonts/luxury-serif/LICENSE +93 -0
  98. package/assets/fonts/palette.json +3067 -0
  99. package/assets/mock/mock_models.json +25 -0
  100. package/assets/mock/mock_result.png +0 -0
  101. package/assets/project-starter/page.html +9 -0
  102. package/assets/provider-profiles.example.json +38 -0
  103. package/assets/series-plan.example.json +53 -0
  104. package/assets/template-profile.example.json +15 -0
  105. package/dist/cli.js +11852 -0
  106. package/dist/index.js +11633 -0
  107. package/dist/types/args.d.ts +56 -0
  108. package/dist/types/cli.d.ts +2 -0
  109. package/dist/types/cloud/auth-flow.d.ts +30 -0
  110. package/dist/types/cloud/errors.d.ts +6 -0
  111. package/dist/types/cloud/push.d.ts +36 -0
  112. package/dist/types/cloud/service.d.ts +86 -0
  113. package/dist/types/cloud/state.d.ts +32 -0
  114. package/dist/types/commands/account.d.ts +2 -0
  115. package/dist/types/commands/auth.d.ts +8 -0
  116. package/dist/types/commands/cloud.d.ts +2 -0
  117. package/dist/types/commands/core.d.ts +2 -0
  118. package/dist/types/commands/deck.d.ts +2 -0
  119. package/dist/types/commands/font.d.ts +2 -0
  120. package/dist/types/commands/image.d.ts +2 -0
  121. package/dist/types/commands/inspiration.d.ts +2 -0
  122. package/dist/types/commands/install.d.ts +2 -0
  123. package/dist/types/commands/link.d.ts +2 -0
  124. package/dist/types/commands/post-bundle.d.ts +6 -0
  125. package/dist/types/commands/pricing.d.ts +3 -0
  126. package/dist/types/commands/provider.d.ts +3 -0
  127. package/dist/types/commands/render.d.ts +2 -0
  128. package/dist/types/commands/setup.d.ts +2 -0
  129. package/dist/types/commands/sheet.d.ts +2 -0
  130. package/dist/types/commands/template.d.ts +3 -0
  131. package/dist/types/commands/workflow.d.ts +2 -0
  132. package/dist/types/core/errors.d.ts +15 -0
  133. package/dist/types/core/fingerprint.d.ts +3 -0
  134. package/dist/types/core/image-info.d.ts +23 -0
  135. package/dist/types/core/image.d.ts +22 -0
  136. package/dist/types/core/project.d.ts +105 -0
  137. package/dist/types/core/pyjson.d.ts +21 -0
  138. package/dist/types/core/util.d.ts +29 -0
  139. package/dist/types/credentials.d.ts +53 -0
  140. package/dist/types/deck/compile-bundle.d.ts +1 -0
  141. package/dist/types/deck/engine.d.ts +7 -0
  142. package/dist/types/deck/export-deck.d.ts +21 -0
  143. package/dist/types/deck/import-deck.d.ts +20 -0
  144. package/dist/types/deck/pages.d.ts +6 -0
  145. package/dist/types/deck/types.d.ts +49 -0
  146. package/dist/types/device-login.d.ts +13 -0
  147. package/dist/types/editor/canvas-state.d.ts +43 -0
  148. package/dist/types/editor/handoff.d.ts +31 -0
  149. package/dist/types/editor/http-types.d.ts +55 -0
  150. package/dist/types/editor/project-tools.d.ts +7 -0
  151. package/dist/types/editor/request-security.d.ts +3 -0
  152. package/dist/types/editor/routes-cloud.d.ts +7 -0
  153. package/dist/types/editor/routes-get.d.ts +3 -0
  154. package/dist/types/editor/routes-post.d.ts +3 -0
  155. package/dist/types/editor/sanitize.d.ts +15 -0
  156. package/dist/types/editor/save.d.ts +11 -0
  157. package/dist/types/editor/server.d.ts +15 -0
  158. package/dist/types/editor/subcommand.d.ts +11 -0
  159. package/dist/types/fonts/install.d.ts +22 -0
  160. package/dist/types/fonts/palette.d.ts +47 -0
  161. package/dist/types/fonts/project-fonts.d.ts +52 -0
  162. package/dist/types/fonts/source.d.ts +7 -0
  163. package/dist/types/images/batch-jobs.d.ts +51 -0
  164. package/dist/types/images/batch-quote.d.ts +7 -0
  165. package/dist/types/images/batch-run.d.ts +9 -0
  166. package/dist/types/images/capabilities.d.ts +12 -0
  167. package/dist/types/images/edit-plan.d.ts +60 -0
  168. package/dist/types/images/edit.d.ts +9 -0
  169. package/dist/types/images/info.d.ts +16 -0
  170. package/dist/types/images/jobs.d.ts +48 -0
  171. package/dist/types/images/prepare.d.ts +32 -0
  172. package/dist/types/images/references.d.ts +31 -0
  173. package/dist/types/images/retry.d.ts +28 -0
  174. package/dist/types/images/run.d.ts +35 -0
  175. package/dist/types/images/single-job.d.ts +19 -0
  176. package/dist/types/index.d.ts +15 -0
  177. package/dist/types/install/agents.d.ts +24 -0
  178. package/dist/types/install/payload.d.ts +12 -0
  179. package/dist/types/install/skill-install.d.ts +15 -0
  180. package/dist/types/main.d.ts +7 -0
  181. package/dist/types/node-runtime.d.ts +3 -0
  182. package/dist/types/node-secret.d.ts +3 -0
  183. package/dist/types/providers/account.d.ts +8 -0
  184. package/dist/types/providers/adapter.d.ts +58 -0
  185. package/dist/types/providers/api-errors.d.ts +7 -0
  186. package/dist/types/providers/api.d.ts +95 -0
  187. package/dist/types/providers/base.d.ts +89 -0
  188. package/dist/types/providers/canonical.d.ts +4 -0
  189. package/dist/types/providers/cli-args.d.ts +22 -0
  190. package/dist/types/providers/cli-commands.d.ts +12 -0
  191. package/dist/types/providers/cli-config.d.ts +57 -0
  192. package/dist/types/providers/cli-generate.d.ts +35 -0
  193. package/dist/types/providers/cli-quote.d.ts +35 -0
  194. package/dist/types/providers/cli.d.ts +51 -0
  195. package/dist/types/providers/custom-http-util.d.ts +19 -0
  196. package/dist/types/providers/custom-http.d.ts +36 -0
  197. package/dist/types/providers/decimal.d.ts +22 -0
  198. package/dist/types/providers/errors.d.ts +40 -0
  199. package/dist/types/providers/index.d.ts +11 -0
  200. package/dist/types/providers/inspiration-plan.d.ts +43 -0
  201. package/dist/types/providers/inspiration.d.ts +18 -0
  202. package/dist/types/providers/ledger.d.ts +33 -0
  203. package/dist/types/providers/link-bundle.d.ts +53 -0
  204. package/dist/types/providers/link-task.d.ts +54 -0
  205. package/dist/types/providers/link.d.ts +24 -0
  206. package/dist/types/providers/manual-host.d.ts +17 -0
  207. package/dist/types/providers/paths.d.ts +10 -0
  208. package/dist/types/providers/popost-tasks.d.ts +52 -0
  209. package/dist/types/providers/popost-validate.d.ts +7 -0
  210. package/dist/types/providers/popost.d.ts +73 -0
  211. package/dist/types/providers/pricing.d.ts +6 -0
  212. package/dist/types/providers/secrets.d.ts +11 -0
  213. package/dist/types/providers/time.d.ts +11 -0
  214. package/dist/types/render/audit-script.d.ts +7 -0
  215. package/dist/types/render/audit.d.ts +49 -0
  216. package/dist/types/render/browser.d.ts +7 -0
  217. package/dist/types/render/edit.d.ts +26 -0
  218. package/dist/types/render/mime.d.ts +2 -0
  219. package/dist/types/render/offline.d.ts +47 -0
  220. package/dist/types/render/page-select.d.ts +7 -0
  221. package/dist/types/render/png.d.ts +28 -0
  222. package/dist/types/render/sheet-layout.d.ts +67 -0
  223. package/dist/types/render/sheet.d.ts +12 -0
  224. package/dist/types/runtime.d.ts +99 -0
  225. package/dist/types/setup/check.d.ts +14 -0
  226. package/dist/types/setup/context.d.ts +57 -0
  227. package/dist/types/setup/quote.d.ts +3 -0
  228. package/dist/types/setup/run.d.ts +12 -0
  229. package/dist/types/setup/spec.d.ts +53 -0
  230. package/dist/types/setup/steps.d.ts +33 -0
  231. package/dist/types/version.d.ts +2 -0
  232. package/dist/types/workflow/build.d.ts +43 -0
  233. package/dist/types/workflow/community-search.d.ts +34 -0
  234. package/dist/types/workflow/composition-grid.d.ts +44 -0
  235. package/dist/types/workflow/errors.d.ts +11 -0
  236. package/dist/types/workflow/io.d.ts +8 -0
  237. package/dist/types/workflow/page-check.d.ts +13 -0
  238. package/dist/types/workflow/post-bundle.d.ts +33 -0
  239. package/dist/types/workflow/project-bundle.d.ts +10 -0
  240. package/dist/types/workflow/review.d.ts +20 -0
  241. package/dist/types/workflow/series-plan.d.ts +14 -0
  242. package/dist/types/workflow/settings.d.ts +16 -0
  243. package/dist/types/workflow/subcommands.d.ts +9 -0
  244. package/dist/types/workflow/template-plugins.d.ts +62 -0
  245. package/dist/types/workflow/zip-inspect.d.ts +11 -0
  246. package/package.json +69 -4
  247. package/references/asset-architecture.md +11 -0
  248. package/references/create.md +13 -0
  249. package/references/design-system.md +11 -0
  250. package/references/editor-contract.md +21 -0
  251. package/references/fonts.md +29 -0
  252. package/references/generic-scenes.md +139 -0
  253. package/references/host-editor.md +54 -0
  254. package/references/imagery.md +48 -0
  255. package/references/onboarding.md +58 -0
  256. package/references/platform-adaptation.md +13 -0
  257. package/references/post-bundle.md +54 -0
  258. package/references/project-manifest.md +9 -0
  259. package/references/providers.md +57 -0
  260. package/references/quality-review.md +21 -0
  261. package/references/reproduce.md +23 -0
  262. package/references/scene-templates.md +21 -0
  263. package/references/social-series.md +35 -0
  264. package/templates/community/README.md +418 -0
  265. package/templates/community/index.json +5287 -0
  266. package/templates/community/magazine-argument-explainer/README.md +5 -0
  267. package/templates/community/magazine-argument-explainer/SKILL.md +36 -0
  268. package/templates/community/magazine-argument-explainer/template.json +46 -0
  269. package/templates/community/magazine-life-profile/README.md +5 -0
  270. package/templates/community/magazine-life-profile/SKILL.md +36 -0
  271. package/templates/community/magazine-life-profile/template.json +46 -0
  272. package/templates/community/magazine-news-brief/README.md +5 -0
  273. package/templates/community/magazine-news-brief/SKILL.md +36 -0
  274. package/templates/community/magazine-news-brief/template.json +46 -0
  275. package/templates/community/magazine-outfit-breakdown/README.md +5 -0
  276. package/templates/community/magazine-outfit-breakdown/SKILL.md +36 -0
  277. package/templates/community/magazine-outfit-breakdown/template.json +46 -0
  278. package/templates/community/magazine-parallel-workflow/README.md +7 -0
  279. package/templates/community/magazine-parallel-workflow/SKILL.md +36 -0
  280. package/templates/community/magazine-parallel-workflow/template.json +47 -0
  281. package/templates/community/magazine-quote-reading/README.md +7 -0
  282. package/templates/community/magazine-quote-reading/SKILL.md +36 -0
  283. package/templates/community/magazine-quote-reading/template.json +47 -0
  284. package/templates/community/magazine-story-timeline/README.md +5 -0
  285. package/templates/community/magazine-story-timeline/SKILL.md +36 -0
  286. package/templates/community/magazine-story-timeline/template.json +46 -0
  287. package/templates/community/magazine-travel-itinerary/README.md +5 -0
  288. package/templates/community/magazine-travel-itinerary/SKILL.md +36 -0
  289. package/templates/community/magazine-travel-itinerary/template.json +46 -0
  290. package/templates/community/minimal-case-outcome/README.md +7 -0
  291. package/templates/community/minimal-case-outcome/SKILL.md +36 -0
  292. package/templates/community/minimal-case-outcome/template.json +47 -0
  293. package/templates/community/minimal-concept-starter/README.md +7 -0
  294. package/templates/community/minimal-concept-starter/SKILL.md +36 -0
  295. package/templates/community/minimal-concept-starter/template.json +50 -0
  296. package/templates/community/minimal-data-ranking/README.md +7 -0
  297. package/templates/community/minimal-data-ranking/SKILL.md +36 -0
  298. package/templates/community/minimal-data-ranking/template.json +47 -0
  299. package/templates/community/minimal-feedback-loop/README.md +7 -0
  300. package/templates/community/minimal-feedback-loop/SKILL.md +36 -0
  301. package/templates/community/minimal-feedback-loop/template.json +47 -0
  302. package/templates/community/minimal-period-recap/README.md +7 -0
  303. package/templates/community/minimal-period-recap/SKILL.md +36 -0
  304. package/templates/community/minimal-period-recap/template.json +47 -0
  305. package/templates/community/minimal-structure-breakdown/README.md +7 -0
  306. package/templates/community/minimal-structure-breakdown/SKILL.md +36 -0
  307. package/templates/community/minimal-structure-breakdown/template.json +47 -0
  308. package/templates/community/tiktok-accessory-wearing-closeups/README.md +10 -0
  309. package/templates/community/tiktok-accessory-wearing-closeups/SKILL.md +74 -0
  310. package/templates/community/tiktok-accessory-wearing-closeups/references/mother-post.md +23 -0
  311. package/templates/community/tiktok-accessory-wearing-closeups/source.json +30 -0
  312. package/templates/community/tiktok-accessory-wearing-closeups/template.json +53 -0
  313. package/templates/community/tiktok-apparel-unboxing-print/README.md +10 -0
  314. package/templates/community/tiktok-apparel-unboxing-print/SKILL.md +74 -0
  315. package/templates/community/tiktok-apparel-unboxing-print/references/mother-post.md +23 -0
  316. package/templates/community/tiktok-apparel-unboxing-print/source.json +30 -0
  317. package/templates/community/tiktok-apparel-unboxing-print/template.json +53 -0
  318. package/templates/community/tiktok-appliance-spec-use-guide/README.md +12 -0
  319. package/templates/community/tiktok-appliance-spec-use-guide/SKILL.md +76 -0
  320. package/templates/community/tiktok-appliance-spec-use-guide/references/mother-post.md +23 -0
  321. package/templates/community/tiktok-appliance-spec-use-guide/source.json +42 -0
  322. package/templates/community/tiktok-appliance-spec-use-guide/template.json +57 -0
  323. package/templates/community/tiktok-audience-gift-recommendation/README.md +8 -0
  324. package/templates/community/tiktok-audience-gift-recommendation/SKILL.md +62 -0
  325. package/templates/community/tiktok-audience-gift-recommendation/template.json +82 -0
  326. package/templates/community/tiktok-baby-appliance-side-by-side/README.md +13 -0
  327. package/templates/community/tiktok-baby-appliance-side-by-side/SKILL.md +76 -0
  328. package/templates/community/tiktok-baby-appliance-side-by-side/references/mother-post.md +23 -0
  329. package/templates/community/tiktok-baby-appliance-side-by-side/source.json +48 -0
  330. package/templates/community/tiktok-baby-appliance-side-by-side/template.json +58 -0
  331. package/templates/community/tiktok-baby-product-capacity-accessories/README.md +14 -0
  332. package/templates/community/tiktok-baby-product-capacity-accessories/SKILL.md +76 -0
  333. package/templates/community/tiktok-baby-product-capacity-accessories/references/mother-post.md +23 -0
  334. package/templates/community/tiktok-baby-product-capacity-accessories/source.json +54 -0
  335. package/templates/community/tiktok-baby-product-capacity-accessories/template.json +59 -0
  336. package/templates/community/tiktok-bag-material-studio-closeups/README.md +10 -0
  337. package/templates/community/tiktok-bag-material-studio-closeups/SKILL.md +74 -0
  338. package/templates/community/tiktok-bag-material-studio-closeups/references/mother-post.md +23 -0
  339. package/templates/community/tiktok-bag-material-studio-closeups/source.json +30 -0
  340. package/templates/community/tiktok-bag-material-studio-closeups/template.json +53 -0
  341. package/templates/community/tiktok-bag-on-body-size-guide/README.md +14 -0
  342. package/templates/community/tiktok-bag-on-body-size-guide/SKILL.md +76 -0
  343. package/templates/community/tiktok-bag-on-body-size-guide/references/mother-post.md +23 -0
  344. package/templates/community/tiktok-bag-on-body-size-guide/source.json +54 -0
  345. package/templates/community/tiktok-bag-on-body-size-guide/template.json +59 -0
  346. package/templates/community/tiktok-bag-packing-capacity/README.md +13 -0
  347. package/templates/community/tiktok-bag-packing-capacity/SKILL.md +76 -0
  348. package/templates/community/tiktok-bag-packing-capacity/references/mother-post.md +23 -0
  349. package/templates/community/tiktok-bag-packing-capacity/source.json +48 -0
  350. package/templates/community/tiktok-bag-packing-capacity/template.json +58 -0
  351. package/templates/community/tiktok-bedding-setup-fabric/README.md +12 -0
  352. package/templates/community/tiktok-bedding-setup-fabric/SKILL.md +76 -0
  353. package/templates/community/tiktok-bedding-setup-fabric/references/mother-post.md +23 -0
  354. package/templates/community/tiktok-bedding-setup-fabric/source.json +42 -0
  355. package/templates/community/tiktok-bedding-setup-fabric/template.json +57 -0
  356. package/templates/community/tiktok-bedside-storage-before-after/README.md +12 -0
  357. package/templates/community/tiktok-bedside-storage-before-after/SKILL.md +76 -0
  358. package/templates/community/tiktok-bedside-storage-before-after/references/mother-post.md +23 -0
  359. package/templates/community/tiktok-bedside-storage-before-after/source.json +42 -0
  360. package/templates/community/tiktok-bedside-storage-before-after/template.json +57 -0
  361. package/templates/community/tiktok-body-type-fit-comparison/README.md +9 -0
  362. package/templates/community/tiktok-body-type-fit-comparison/SKILL.md +73 -0
  363. package/templates/community/tiktok-body-type-fit-comparison/references/mother-post.md +23 -0
  364. package/templates/community/tiktok-body-type-fit-comparison/source.json +24 -0
  365. package/templates/community/tiktok-body-type-fit-comparison/template.json +51 -0
  366. package/templates/community/tiktok-book-excerpt-emotional-hook/README.md +11 -0
  367. package/templates/community/tiktok-book-excerpt-emotional-hook/SKILL.md +75 -0
  368. package/templates/community/tiktok-book-excerpt-emotional-hook/references/mother-post.md +23 -0
  369. package/templates/community/tiktok-book-excerpt-emotional-hook/source.json +36 -0
  370. package/templates/community/tiktok-book-excerpt-emotional-hook/template.json +55 -0
  371. package/templates/community/tiktok-budget-message-recommendation/README.md +8 -0
  372. package/templates/community/tiktok-budget-message-recommendation/SKILL.md +62 -0
  373. package/templates/community/tiktok-budget-message-recommendation/template.json +76 -0
  374. package/templates/community/tiktok-car-accessory-compatibility/README.md +14 -0
  375. package/templates/community/tiktok-car-accessory-compatibility/SKILL.md +76 -0
  376. package/templates/community/tiktok-car-accessory-compatibility/references/mother-post.md +23 -0
  377. package/templates/community/tiktok-car-accessory-compatibility/source.json +54 -0
  378. package/templates/community/tiktok-car-accessory-compatibility/template.json +59 -0
  379. package/templates/community/tiktok-car-appearance-upgrade/README.md +10 -0
  380. package/templates/community/tiktok-car-appearance-upgrade/SKILL.md +74 -0
  381. package/templates/community/tiktok-car-appearance-upgrade/references/mother-post.md +23 -0
  382. package/templates/community/tiktok-car-appearance-upgrade/source.json +30 -0
  383. package/templates/community/tiktok-car-appearance-upgrade/template.json +53 -0
  384. package/templates/community/tiktok-car-tool-use-cases/README.md +15 -0
  385. package/templates/community/tiktok-car-tool-use-cases/SKILL.md +76 -0
  386. package/templates/community/tiktok-car-tool-use-cases/references/mother-post.md +23 -0
  387. package/templates/community/tiktok-car-tool-use-cases/source.json +60 -0
  388. package/templates/community/tiktok-car-tool-use-cases/template.json +60 -0
  389. package/templates/community/tiktok-childrens-book-family-reading/README.md +11 -0
  390. package/templates/community/tiktok-childrens-book-family-reading/SKILL.md +75 -0
  391. package/templates/community/tiktok-childrens-book-family-reading/references/mother-post.md +23 -0
  392. package/templates/community/tiktok-childrens-book-family-reading/source.json +36 -0
  393. package/templates/community/tiktok-childrens-book-family-reading/template.json +55 -0
  394. package/templates/community/tiktok-cleaning-appliance-feature-demo/README.md +13 -0
  395. package/templates/community/tiktok-cleaning-appliance-feature-demo/SKILL.md +76 -0
  396. package/templates/community/tiktok-cleaning-appliance-feature-demo/references/mother-post.md +23 -0
  397. package/templates/community/tiktok-cleaning-appliance-feature-demo/source.json +48 -0
  398. package/templates/community/tiktok-cleaning-appliance-feature-demo/template.json +58 -0
  399. package/templates/community/tiktok-clothing-colorway-flat-lay/README.md +15 -0
  400. package/templates/community/tiktok-clothing-colorway-flat-lay/SKILL.md +76 -0
  401. package/templates/community/tiktok-clothing-colorway-flat-lay/references/mother-post.md +23 -0
  402. package/templates/community/tiktok-clothing-colorway-flat-lay/source.json +60 -0
  403. package/templates/community/tiktok-clothing-colorway-flat-lay/template.json +60 -0
  404. package/templates/community/tiktok-clothing-colorway-styling/README.md +9 -0
  405. package/templates/community/tiktok-clothing-colorway-styling/SKILL.md +73 -0
  406. package/templates/community/tiktok-clothing-colorway-styling/references/mother-post.md +23 -0
  407. package/templates/community/tiktok-clothing-colorway-styling/source.json +24 -0
  408. package/templates/community/tiktok-clothing-colorway-styling/template.json +51 -0
  409. package/templates/community/tiktok-clothing-front-back-fabric/README.md +13 -0
  410. package/templates/community/tiktok-clothing-front-back-fabric/SKILL.md +76 -0
  411. package/templates/community/tiktok-clothing-front-back-fabric/references/mother-post.md +23 -0
  412. package/templates/community/tiktok-clothing-front-back-fabric/source.json +48 -0
  413. package/templates/community/tiktok-clothing-front-back-fabric/template.json +58 -0
  414. package/templates/community/tiktok-collectible-toy-set-singles/README.md +11 -0
  415. package/templates/community/tiktok-collectible-toy-set-singles/SKILL.md +75 -0
  416. package/templates/community/tiktok-collectible-toy-set-singles/references/mother-post.md +23 -0
  417. package/templates/community/tiktok-collectible-toy-set-singles/source.json +36 -0
  418. package/templates/community/tiktok-collectible-toy-set-singles/template.json +55 -0
  419. package/templates/community/tiktok-comment-product-reveal/README.md +8 -0
  420. package/templates/community/tiktok-comment-product-reveal/SKILL.md +64 -0
  421. package/templates/community/tiktok-comment-product-reveal/template.json +76 -0
  422. package/templates/community/tiktok-computer-unboxing-first-use/README.md +11 -0
  423. package/templates/community/tiktok-computer-unboxing-first-use/SKILL.md +75 -0
  424. package/templates/community/tiktok-computer-unboxing-first-use/references/mother-post.md +23 -0
  425. package/templates/community/tiktok-computer-unboxing-first-use/source.json +36 -0
  426. package/templates/community/tiktok-computer-unboxing-first-use/template.json +55 -0
  427. package/templates/community/tiktok-device-setup-ports-guide/README.md +14 -0
  428. package/templates/community/tiktok-device-setup-ports-guide/SKILL.md +76 -0
  429. package/templates/community/tiktok-device-setup-ports-guide/references/mother-post.md +23 -0
  430. package/templates/community/tiktok-device-setup-ports-guide/source.json +54 -0
  431. package/templates/community/tiktok-device-setup-ports-guide/template.json +59 -0
  432. package/templates/community/tiktok-digital-product-feature-scenarios/README.md +14 -0
  433. package/templates/community/tiktok-digital-product-feature-scenarios/SKILL.md +76 -0
  434. package/templates/community/tiktok-digital-product-feature-scenarios/references/mother-post.md +23 -0
  435. package/templates/community/tiktok-digital-product-feature-scenarios/source.json +54 -0
  436. package/templates/community/tiktok-digital-product-feature-scenarios/template.json +59 -0
  437. package/templates/community/tiktok-drinkware-on-the-go/README.md +11 -0
  438. package/templates/community/tiktok-drinkware-on-the-go/SKILL.md +75 -0
  439. package/templates/community/tiktok-drinkware-on-the-go/references/mother-post.md +23 -0
  440. package/templates/community/tiktok-drinkware-on-the-go/source.json +36 -0
  441. package/templates/community/tiktok-drinkware-on-the-go/template.json +55 -0
  442. package/templates/community/tiktok-electronics-unboxing-accessories/README.md +9 -0
  443. package/templates/community/tiktok-electronics-unboxing-accessories/SKILL.md +73 -0
  444. package/templates/community/tiktok-electronics-unboxing-accessories/references/mother-post.md +23 -0
  445. package/templates/community/tiktok-electronics-unboxing-accessories/source.json +24 -0
  446. package/templates/community/tiktok-electronics-unboxing-accessories/template.json +51 -0
  447. package/templates/community/tiktok-emergency-essentials-checklist/README.md +13 -0
  448. package/templates/community/tiktok-emergency-essentials-checklist/SKILL.md +76 -0
  449. package/templates/community/tiktok-emergency-essentials-checklist/references/mother-post.md +23 -0
  450. package/templates/community/tiktok-emergency-essentials-checklist/source.json +48 -0
  451. package/templates/community/tiktok-emergency-essentials-checklist/template.json +58 -0
  452. package/templates/community/tiktok-fill-in-gift-book-preview/README.md +11 -0
  453. package/templates/community/tiktok-fill-in-gift-book-preview/SKILL.md +75 -0
  454. package/templates/community/tiktok-fill-in-gift-book-preview/references/mother-post.md +23 -0
  455. package/templates/community/tiktok-fill-in-gift-book-preview/source.json +36 -0
  456. package/templates/community/tiktok-fill-in-gift-book-preview/template.json +55 -0
  457. package/templates/community/tiktok-food-unpacking-texture/README.md +8 -0
  458. package/templates/community/tiktok-food-unpacking-texture/SKILL.md +72 -0
  459. package/templates/community/tiktok-food-unpacking-texture/references/mother-post.md +23 -0
  460. package/templates/community/tiktok-food-unpacking-texture/source.json +18 -0
  461. package/templates/community/tiktok-food-unpacking-texture/template.json +49 -0
  462. package/templates/community/tiktok-footwear-colorway-on-foot/README.md +13 -0
  463. package/templates/community/tiktok-footwear-colorway-on-foot/SKILL.md +76 -0
  464. package/templates/community/tiktok-footwear-colorway-on-foot/references/mother-post.md +23 -0
  465. package/templates/community/tiktok-footwear-colorway-on-foot/source.json +48 -0
  466. package/templates/community/tiktok-footwear-colorway-on-foot/template.json +58 -0
  467. package/templates/community/tiktok-footwear-handheld-detail/README.md +10 -0
  468. package/templates/community/tiktok-footwear-handheld-detail/SKILL.md +74 -0
  469. package/templates/community/tiktok-footwear-handheld-detail/references/mother-post.md +23 -0
  470. package/templates/community/tiktok-footwear-handheld-detail/source.json +30 -0
  471. package/templates/community/tiktok-footwear-handheld-detail/template.json +53 -0
  472. package/templates/community/tiktok-footwear-on-foot-outfits/README.md +10 -0
  473. package/templates/community/tiktok-footwear-on-foot-outfits/SKILL.md +74 -0
  474. package/templates/community/tiktok-footwear-on-foot-outfits/references/mother-post.md +23 -0
  475. package/templates/community/tiktok-footwear-on-foot-outfits/source.json +30 -0
  476. package/templates/community/tiktok-footwear-on-foot-outfits/template.json +53 -0
  477. package/templates/community/tiktok-functional-clothing-in-use/README.md +15 -0
  478. package/templates/community/tiktok-functional-clothing-in-use/SKILL.md +76 -0
  479. package/templates/community/tiktok-functional-clothing-in-use/references/mother-post.md +23 -0
  480. package/templates/community/tiktok-functional-clothing-in-use/source.json +60 -0
  481. package/templates/community/tiktok-functional-clothing-in-use/template.json +60 -0
  482. package/templates/community/tiktok-furniture-room-detail/README.md +10 -0
  483. package/templates/community/tiktok-furniture-room-detail/SKILL.md +74 -0
  484. package/templates/community/tiktok-furniture-room-detail/references/mother-post.md +23 -0
  485. package/templates/community/tiktok-furniture-room-detail/source.json +30 -0
  486. package/templates/community/tiktok-furniture-room-detail/template.json +53 -0
  487. package/templates/community/tiktok-furniture-set-dimensions/README.md +14 -0
  488. package/templates/community/tiktok-furniture-set-dimensions/SKILL.md +76 -0
  489. package/templates/community/tiktok-furniture-set-dimensions/references/mother-post.md +23 -0
  490. package/templates/community/tiktok-furniture-set-dimensions/source.json +54 -0
  491. package/templates/community/tiktok-furniture-set-dimensions/template.json +59 -0
  492. package/templates/community/tiktok-furniture-set-feature-breakdown/README.md +14 -0
  493. package/templates/community/tiktok-furniture-set-feature-breakdown/SKILL.md +76 -0
  494. package/templates/community/tiktok-furniture-set-feature-breakdown/references/mother-post.md +23 -0
  495. package/templates/community/tiktok-furniture-set-feature-breakdown/source.json +54 -0
  496. package/templates/community/tiktok-furniture-set-feature-breakdown/template.json +59 -0
  497. package/templates/community/tiktok-gardening-tool-before-after/README.md +18 -0
  498. package/templates/community/tiktok-gardening-tool-before-after/SKILL.md +76 -0
  499. package/templates/community/tiktok-gardening-tool-before-after/references/mother-post.md +23 -0
  500. package/templates/community/tiktok-gardening-tool-before-after/source.json +78 -0
  501. package/templates/community/tiktok-gardening-tool-before-after/template.json +63 -0
  502. package/templates/community/tiktok-gift-box-reveal/README.md +8 -0
  503. package/templates/community/tiktok-gift-box-reveal/SKILL.md +72 -0
  504. package/templates/community/tiktok-gift-box-reveal/references/mother-post.md +23 -0
  505. package/templates/community/tiktok-gift-box-reveal/source.json +18 -0
  506. package/templates/community/tiktok-gift-box-reveal/template.json +49 -0
  507. package/templates/community/tiktok-handheld-product-features/README.md +10 -0
  508. package/templates/community/tiktok-handheld-product-features/SKILL.md +68 -0
  509. package/templates/community/tiktok-handheld-product-features/template.json +78 -0
  510. package/templates/community/tiktok-holiday-gift-building-unboxing/README.md +11 -0
  511. package/templates/community/tiktok-holiday-gift-building-unboxing/SKILL.md +75 -0
  512. package/templates/community/tiktok-holiday-gift-building-unboxing/references/mother-post.md +23 -0
  513. package/templates/community/tiktok-holiday-gift-building-unboxing/source.json +36 -0
  514. package/templates/community/tiktok-holiday-gift-building-unboxing/template.json +55 -0
  515. package/templates/community/tiktok-home-lighting-mood/README.md +9 -0
  516. package/templates/community/tiktok-home-lighting-mood/SKILL.md +73 -0
  517. package/templates/community/tiktok-home-lighting-mood/references/mother-post.md +23 -0
  518. package/templates/community/tiktok-home-lighting-mood/source.json +24 -0
  519. package/templates/community/tiktok-home-lighting-mood/template.json +51 -0
  520. package/templates/community/tiktok-home-product-lifestyle-scenes/README.md +10 -0
  521. package/templates/community/tiktok-home-product-lifestyle-scenes/SKILL.md +74 -0
  522. package/templates/community/tiktok-home-product-lifestyle-scenes/references/mother-post.md +23 -0
  523. package/templates/community/tiktok-home-product-lifestyle-scenes/source.json +30 -0
  524. package/templates/community/tiktok-home-product-lifestyle-scenes/template.json +53 -0
  525. package/templates/community/tiktok-home-product-real-use/README.md +12 -0
  526. package/templates/community/tiktok-home-product-real-use/SKILL.md +76 -0
  527. package/templates/community/tiktok-home-product-real-use/references/mother-post.md +23 -0
  528. package/templates/community/tiktok-home-product-real-use/source.json +42 -0
  529. package/templates/community/tiktok-home-product-real-use/template.json +57 -0
  530. package/templates/community/tiktok-home-storage-before-after/README.md +12 -0
  531. package/templates/community/tiktok-home-storage-before-after/SKILL.md +76 -0
  532. package/templates/community/tiktok-home-storage-before-after/references/mother-post.md +23 -0
  533. package/templates/community/tiktok-home-storage-before-after/source.json +42 -0
  534. package/templates/community/tiktok-home-storage-before-after/template.json +57 -0
  535. package/templates/community/tiktok-home-styling-before-after/README.md +13 -0
  536. package/templates/community/tiktok-home-styling-before-after/SKILL.md +76 -0
  537. package/templates/community/tiktok-home-styling-before-after/references/mother-post.md +23 -0
  538. package/templates/community/tiktok-home-styling-before-after/source.json +48 -0
  539. package/templates/community/tiktok-home-styling-before-after/template.json +58 -0
  540. package/templates/community/tiktok-interest-mood-product-match/README.md +8 -0
  541. package/templates/community/tiktok-interest-mood-product-match/SKILL.md +64 -0
  542. package/templates/community/tiktok-interest-mood-product-match/template.json +76 -0
  543. package/templates/community/tiktok-jewelry-macro-craftsmanship/README.md +11 -0
  544. package/templates/community/tiktok-jewelry-macro-craftsmanship/SKILL.md +75 -0
  545. package/templates/community/tiktok-jewelry-macro-craftsmanship/references/mother-post.md +23 -0
  546. package/templates/community/tiktok-jewelry-macro-craftsmanship/source.json +36 -0
  547. package/templates/community/tiktok-jewelry-macro-craftsmanship/template.json +55 -0
  548. package/templates/community/tiktok-kids-clothing-flat-lay-try-on/README.md +9 -0
  549. package/templates/community/tiktok-kids-clothing-flat-lay-try-on/SKILL.md +73 -0
  550. package/templates/community/tiktok-kids-clothing-flat-lay-try-on/references/mother-post.md +23 -0
  551. package/templates/community/tiktok-kids-clothing-flat-lay-try-on/source.json +24 -0
  552. package/templates/community/tiktok-kids-clothing-flat-lay-try-on/template.json +51 -0
  553. package/templates/community/tiktok-kitchen-appliance-food-results/README.md +11 -0
  554. package/templates/community/tiktok-kitchen-appliance-food-results/SKILL.md +75 -0
  555. package/templates/community/tiktok-kitchen-appliance-food-results/references/mother-post.md +23 -0
  556. package/templates/community/tiktok-kitchen-appliance-food-results/source.json +36 -0
  557. package/templates/community/tiktok-kitchen-appliance-food-results/template.json +55 -0
  558. package/templates/community/tiktok-kitchen-tool-step-demo/README.md +15 -0
  559. package/templates/community/tiktok-kitchen-tool-step-demo/SKILL.md +76 -0
  560. package/templates/community/tiktok-kitchen-tool-step-demo/references/mother-post.md +23 -0
  561. package/templates/community/tiktok-kitchen-tool-step-demo/source.json +60 -0
  562. package/templates/community/tiktok-kitchen-tool-step-demo/template.json +60 -0
  563. package/templates/community/tiktok-lifestyle-hook-finished-results/README.md +10 -0
  564. package/templates/community/tiktok-lifestyle-hook-finished-results/SKILL.md +74 -0
  565. package/templates/community/tiktok-lifestyle-hook-finished-results/references/mother-post.md +23 -0
  566. package/templates/community/tiktok-lifestyle-hook-finished-results/source.json +30 -0
  567. package/templates/community/tiktok-lifestyle-hook-finished-results/template.json +53 -0
  568. package/templates/community/tiktok-lighting-installation-mood/README.md +13 -0
  569. package/templates/community/tiktok-lighting-installation-mood/SKILL.md +76 -0
  570. package/templates/community/tiktok-lighting-installation-mood/references/mother-post.md +23 -0
  571. package/templates/community/tiktok-lighting-installation-mood/source.json +48 -0
  572. package/templates/community/tiktok-lighting-installation-mood/template.json +58 -0
  573. package/templates/community/tiktok-lockscreen-product-reveal/README.md +8 -0
  574. package/templates/community/tiktok-lockscreen-product-reveal/SKILL.md +62 -0
  575. package/templates/community/tiktok-lockscreen-product-reveal/template.json +76 -0
  576. package/templates/community/tiktok-makeup-shade-swatches/README.md +12 -0
  577. package/templates/community/tiktok-makeup-shade-swatches/SKILL.md +76 -0
  578. package/templates/community/tiktok-makeup-shade-swatches/references/mother-post.md +23 -0
  579. package/templates/community/tiktok-makeup-shade-swatches/source.json +42 -0
  580. package/templates/community/tiktok-makeup-shade-swatches/template.json +57 -0
  581. package/templates/community/tiktok-makeup-unboxing-closeups/README.md +11 -0
  582. package/templates/community/tiktok-makeup-unboxing-closeups/SKILL.md +75 -0
  583. package/templates/community/tiktok-makeup-unboxing-closeups/references/mother-post.md +23 -0
  584. package/templates/community/tiktok-makeup-unboxing-closeups/source.json +36 -0
  585. package/templates/community/tiktok-makeup-unboxing-closeups/template.json +55 -0
  586. package/templates/community/tiktok-mirror-try-on-fit/README.md +13 -0
  587. package/templates/community/tiktok-mirror-try-on-fit/SKILL.md +76 -0
  588. package/templates/community/tiktok-mirror-try-on-fit/references/mother-post.md +23 -0
  589. package/templates/community/tiktok-mirror-try-on-fit/source.json +48 -0
  590. package/templates/community/tiktok-mirror-try-on-fit/template.json +58 -0
  591. package/templates/community/tiktok-modest-fashion-try-on-details/README.md +14 -0
  592. package/templates/community/tiktok-modest-fashion-try-on-details/SKILL.md +75 -0
  593. package/templates/community/tiktok-modest-fashion-try-on-details/references/mother-post.md +23 -0
  594. package/templates/community/tiktok-modest-fashion-try-on-details/source.json +54 -0
  595. package/templates/community/tiktok-modest-fashion-try-on-details/template.json +58 -0
  596. package/templates/community/tiktok-nutrition-drink-mixing/README.md +8 -0
  597. package/templates/community/tiktok-nutrition-drink-mixing/SKILL.md +72 -0
  598. package/templates/community/tiktok-nutrition-drink-mixing/references/mother-post.md +23 -0
  599. package/templates/community/tiktok-nutrition-drink-mixing/source.json +18 -0
  600. package/templates/community/tiktok-nutrition-drink-mixing/template.json +49 -0
  601. package/templates/community/tiktok-one-garment-outfit-ideas/README.md +12 -0
  602. package/templates/community/tiktok-one-garment-outfit-ideas/SKILL.md +76 -0
  603. package/templates/community/tiktok-one-garment-outfit-ideas/references/mother-post.md +23 -0
  604. package/templates/community/tiktok-one-garment-outfit-ideas/source.json +42 -0
  605. package/templates/community/tiktok-one-garment-outfit-ideas/template.json +57 -0
  606. package/templates/community/tiktok-outdoor-apparel-colorway-try-on/README.md +10 -0
  607. package/templates/community/tiktok-outdoor-apparel-colorway-try-on/SKILL.md +74 -0
  608. package/templates/community/tiktok-outdoor-apparel-colorway-try-on/references/mother-post.md +23 -0
  609. package/templates/community/tiktok-outdoor-apparel-colorway-try-on/source.json +30 -0
  610. package/templates/community/tiktok-outdoor-apparel-colorway-try-on/template.json +53 -0
  611. package/templates/community/tiktok-outdoor-electronics-specs/README.md +15 -0
  612. package/templates/community/tiktok-outdoor-electronics-specs/SKILL.md +76 -0
  613. package/templates/community/tiktok-outdoor-electronics-specs/references/mother-post.md +23 -0
  614. package/templates/community/tiktok-outdoor-electronics-specs/source.json +60 -0
  615. package/templates/community/tiktok-outdoor-electronics-specs/template.json +60 -0
  616. package/templates/community/tiktok-outdoor-gear-packing-capacity/README.md +11 -0
  617. package/templates/community/tiktok-outdoor-gear-packing-capacity/SKILL.md +75 -0
  618. package/templates/community/tiktok-outdoor-gear-packing-capacity/references/mother-post.md +23 -0
  619. package/templates/community/tiktok-outdoor-gear-packing-capacity/source.json +36 -0
  620. package/templates/community/tiktok-outdoor-gear-packing-capacity/template.json +55 -0
  621. package/templates/community/tiktok-outdoor-gear-spec-guide/README.md +14 -0
  622. package/templates/community/tiktok-outdoor-gear-spec-guide/SKILL.md +76 -0
  623. package/templates/community/tiktok-outdoor-gear-spec-guide/references/mother-post.md +23 -0
  624. package/templates/community/tiktok-outdoor-gear-spec-guide/source.json +54 -0
  625. package/templates/community/tiktok-outdoor-gear-spec-guide/template.json +59 -0
  626. package/templates/community/tiktok-party-game-interaction/README.md +9 -0
  627. package/templates/community/tiktok-party-game-interaction/SKILL.md +73 -0
  628. package/templates/community/tiktok-party-game-interaction/references/mother-post.md +23 -0
  629. package/templates/community/tiktok-party-game-interaction/source.json +24 -0
  630. package/templates/community/tiktok-party-game-interaction/template.json +51 -0
  631. package/templates/community/tiktok-perfume-mood-fragrance-notes/README.md +11 -0
  632. package/templates/community/tiktok-perfume-mood-fragrance-notes/SKILL.md +75 -0
  633. package/templates/community/tiktok-perfume-mood-fragrance-notes/references/mother-post.md +23 -0
  634. package/templates/community/tiktok-perfume-mood-fragrance-notes/source.json +36 -0
  635. package/templates/community/tiktok-perfume-mood-fragrance-notes/template.json +55 -0
  636. package/templates/community/tiktok-personal-care-tool-accessories/README.md +12 -0
  637. package/templates/community/tiktok-personal-care-tool-accessories/SKILL.md +76 -0
  638. package/templates/community/tiktok-personal-care-tool-accessories/references/mother-post.md +23 -0
  639. package/templates/community/tiktok-personal-care-tool-accessories/source.json +42 -0
  640. package/templates/community/tiktok-personal-care-tool-accessories/template.json +57 -0
  641. package/templates/community/tiktok-pet-product-features-reviews/README.md +9 -0
  642. package/templates/community/tiktok-pet-product-features-reviews/SKILL.md +73 -0
  643. package/templates/community/tiktok-pet-product-features-reviews/references/mother-post.md +23 -0
  644. package/templates/community/tiktok-pet-product-features-reviews/source.json +24 -0
  645. package/templates/community/tiktok-pet-product-features-reviews/template.json +51 -0
  646. package/templates/community/tiktok-pet-product-scenarios-specs/README.md +14 -0
  647. package/templates/community/tiktok-pet-product-scenarios-specs/SKILL.md +76 -0
  648. package/templates/community/tiktok-pet-product-scenarios-specs/references/mother-post.md +23 -0
  649. package/templates/community/tiktok-pet-product-scenarios-specs/source.json +54 -0
  650. package/templates/community/tiktok-pet-product-scenarios-specs/template.json +59 -0
  651. package/templates/community/tiktok-problem-action-product-guide/README.md +10 -0
  652. package/templates/community/tiktok-problem-action-product-guide/SKILL.md +70 -0
  653. package/templates/community/tiktok-problem-action-product-guide/template.json +64 -0
  654. package/templates/community/tiktok-reaction-product-twist/README.md +8 -0
  655. package/templates/community/tiktok-reaction-product-twist/SKILL.md +64 -0
  656. package/templates/community/tiktok-reaction-product-twist/template.json +75 -0
  657. package/templates/community/tiktok-relationship-gift-response/README.md +8 -0
  658. package/templates/community/tiktok-relationship-gift-response/SKILL.md +62 -0
  659. package/templates/community/tiktok-relationship-gift-response/template.json +76 -0
  660. package/templates/community/tiktok-routine-before-after-timeline/README.md +9 -0
  661. package/templates/community/tiktok-routine-before-after-timeline/SKILL.md +73 -0
  662. package/templates/community/tiktok-routine-before-after-timeline/references/mother-post.md +23 -0
  663. package/templates/community/tiktok-routine-before-after-timeline/source.json +24 -0
  664. package/templates/community/tiktok-routine-before-after-timeline/template.json +51 -0
  665. package/templates/community/tiktok-scenery-product-reveal/README.md +8 -0
  666. package/templates/community/tiktok-scenery-product-reveal/SKILL.md +62 -0
  667. package/templates/community/tiktok-scenery-product-reveal/template.json +76 -0
  668. package/templates/community/tiktok-selfie-product-discovery/README.md +8 -0
  669. package/templates/community/tiktok-selfie-product-discovery/SKILL.md +64 -0
  670. package/templates/community/tiktok-selfie-product-discovery/template.json +76 -0
  671. package/templates/community/tiktok-sensory-mood-product-reveal/README.md +8 -0
  672. package/templates/community/tiktok-sensory-mood-product-reveal/SKILL.md +62 -0
  673. package/templates/community/tiktok-sensory-mood-product-reveal/template.json +54 -0
  674. package/templates/community/tiktok-skincare-set-price-comparison/README.md +14 -0
  675. package/templates/community/tiktok-skincare-set-price-comparison/SKILL.md +76 -0
  676. package/templates/community/tiktok-skincare-set-price-comparison/references/mother-post.md +23 -0
  677. package/templates/community/tiktok-skincare-set-price-comparison/source.json +54 -0
  678. package/templates/community/tiktok-skincare-set-price-comparison/template.json +59 -0
  679. package/templates/community/tiktok-sms-product-recommendation/README.md +8 -0
  680. package/templates/community/tiktok-sms-product-recommendation/SKILL.md +62 -0
  681. package/templates/community/tiktok-sms-product-recommendation/template.json +76 -0
  682. package/templates/community/tiktok-snack-flavor-packaging/README.md +11 -0
  683. package/templates/community/tiktok-snack-flavor-packaging/SKILL.md +75 -0
  684. package/templates/community/tiktok-snack-flavor-packaging/references/mother-post.md +23 -0
  685. package/templates/community/tiktok-snack-flavor-packaging/source.json +36 -0
  686. package/templates/community/tiktok-snack-flavor-packaging/template.json +55 -0
  687. package/templates/community/tiktok-social-status-recommendation/README.md +8 -0
  688. package/templates/community/tiktok-social-status-recommendation/SKILL.md +64 -0
  689. package/templates/community/tiktok-social-status-recommendation/template.json +76 -0
  690. package/templates/community/tiktok-sportswear-flat-lay-fabric/README.md +11 -0
  691. package/templates/community/tiktok-sportswear-flat-lay-fabric/SKILL.md +75 -0
  692. package/templates/community/tiktok-sportswear-flat-lay-fabric/references/mother-post.md +23 -0
  693. package/templates/community/tiktok-sportswear-flat-lay-fabric/source.json +36 -0
  694. package/templates/community/tiktok-sportswear-flat-lay-fabric/template.json +55 -0
  695. package/templates/community/tiktok-streetwear-try-on/README.md +12 -0
  696. package/templates/community/tiktok-streetwear-try-on/SKILL.md +76 -0
  697. package/templates/community/tiktok-streetwear-try-on/references/mother-post.md +23 -0
  698. package/templates/community/tiktok-streetwear-try-on/source.json +42 -0
  699. package/templates/community/tiktok-streetwear-try-on/template.json +57 -0
  700. package/templates/community/tiktok-supplement-ingredients-serving-guide/README.md +12 -0
  701. package/templates/community/tiktok-supplement-ingredients-serving-guide/SKILL.md +76 -0
  702. package/templates/community/tiktok-supplement-ingredients-serving-guide/references/mother-post.md +23 -0
  703. package/templates/community/tiktok-supplement-ingredients-serving-guide/source.json +42 -0
  704. package/templates/community/tiktok-supplement-ingredients-serving-guide/template.json +57 -0
  705. package/templates/community/tiktok-tableware-color-set-studio/README.md +9 -0
  706. package/templates/community/tiktok-tableware-color-set-studio/SKILL.md +73 -0
  707. package/templates/community/tiktok-tableware-color-set-studio/references/mother-post.md +23 -0
  708. package/templates/community/tiktok-tableware-color-set-studio/source.json +24 -0
  709. package/templates/community/tiktok-tableware-color-set-studio/template.json +51 -0
  710. package/templates/community/tiktok-themed-book-list-flat-lay/README.md +13 -0
  711. package/templates/community/tiktok-themed-book-list-flat-lay/SKILL.md +76 -0
  712. package/templates/community/tiktok-themed-book-list-flat-lay/references/mother-post.md +23 -0
  713. package/templates/community/tiktok-themed-book-list-flat-lay/source.json +48 -0
  714. package/templates/community/tiktok-themed-book-list-flat-lay/template.json +58 -0
  715. package/templates/community/tiktok-tool-specs-use-steps/README.md +12 -0
  716. package/templates/community/tiktok-tool-specs-use-steps/SKILL.md +76 -0
  717. package/templates/community/tiktok-tool-specs-use-steps/references/mother-post.md +23 -0
  718. package/templates/community/tiktok-tool-specs-use-steps/source.json +42 -0
  719. package/templates/community/tiktok-tool-specs-use-steps/template.json +57 -0
  720. package/templates/community/tiktok-trading-card-edition-guide/README.md +11 -0
  721. package/templates/community/tiktok-trading-card-edition-guide/SKILL.md +75 -0
  722. package/templates/community/tiktok-trading-card-edition-guide/references/mother-post.md +23 -0
  723. package/templates/community/tiktok-trading-card-edition-guide/source.json +36 -0
  724. package/templates/community/tiktok-trading-card-edition-guide/template.json +55 -0
  725. package/templates/community/tiktok-travel-product-problem-solution/README.md +12 -0
  726. package/templates/community/tiktok-travel-product-problem-solution/SKILL.md +76 -0
  727. package/templates/community/tiktok-travel-product-problem-solution/references/mother-post.md +23 -0
  728. package/templates/community/tiktok-travel-product-problem-solution/source.json +42 -0
  729. package/templates/community/tiktok-travel-product-problem-solution/template.json +57 -0
  730. package/templates/community/tiktok-two-choice-gift-recommendation/README.md +8 -0
  731. package/templates/community/tiktok-two-choice-gift-recommendation/SKILL.md +62 -0
  732. package/templates/community/tiktok-two-choice-gift-recommendation/template.json +76 -0
  733. package/templates/community/tiktok-underwear-before-after-styling/README.md +12 -0
  734. package/templates/community/tiktok-underwear-before-after-styling/SKILL.md +76 -0
  735. package/templates/community/tiktok-underwear-before-after-styling/references/mother-post.md +23 -0
  736. package/templates/community/tiktok-underwear-before-after-styling/source.json +42 -0
  737. package/templates/community/tiktok-underwear-before-after-styling/template.json +57 -0
  738. package/templates/community/tiktok-vacuum-cleaning-results/README.md +11 -0
  739. package/templates/community/tiktok-vacuum-cleaning-results/SKILL.md +75 -0
  740. package/templates/community/tiktok-vacuum-cleaning-results/references/mother-post.md +23 -0
  741. package/templates/community/tiktok-vacuum-cleaning-results/source.json +36 -0
  742. package/templates/community/tiktok-vacuum-cleaning-results/template.json +55 -0
  743. package/templates/community/tiktok-warm-clothing-fabric-details/README.md +11 -0
  744. package/templates/community/tiktok-warm-clothing-fabric-details/SKILL.md +75 -0
  745. package/templates/community/tiktok-warm-clothing-fabric-details/references/mother-post.md +23 -0
  746. package/templates/community/tiktok-warm-clothing-fabric-details/source.json +36 -0
  747. package/templates/community/tiktok-warm-clothing-fabric-details/template.json +55 -0
  748. package/templates/community/tiktok-waterproof-footwear-outdoors/README.md +9 -0
  749. package/templates/community/tiktok-waterproof-footwear-outdoors/SKILL.md +73 -0
  750. package/templates/community/tiktok-waterproof-footwear-outdoors/references/mother-post.md +23 -0
  751. package/templates/community/tiktok-waterproof-footwear-outdoors/source.json +24 -0
  752. package/templates/community/tiktok-waterproof-footwear-outdoors/template.json +51 -0
  753. package/templates/generic/commerce-sell/scenario.md +48 -0
  754. package/templates/generic/commerce-sell/source.manifest.json +9 -0
  755. package/templates/generic/commerce-sell/template.html +99 -0
  756. package/templates/generic/commerce-sell/template.json +33 -0
  757. package/templates/generic/comparison/scenario.md +45 -0
  758. package/templates/generic/comparison/source.manifest.json +9 -0
  759. package/templates/generic/comparison/template.html +70 -0
  760. package/templates/generic/comparison/template.json +33 -0
  761. package/templates/generic/curated-list/scenario.md +42 -0
  762. package/templates/generic/curated-list/source.manifest.json +9 -0
  763. package/templates/generic/curated-list/template.html +86 -0
  764. package/templates/generic/curated-list/template.json +33 -0
  765. package/templates/generic/step-guide/scenario.md +45 -0
  766. package/templates/generic/step-guide/source.manifest.json +9 -0
  767. package/templates/generic/step-guide/template.html +91 -0
  768. package/templates/generic/step-guide/template.json +34 -0
  769. package/templates/generic/viewpoint/scenario.md +45 -0
  770. package/templates/generic/viewpoint/source.manifest.json +9 -0
  771. package/templates/generic/viewpoint/template.html +83 -0
  772. package/templates/generic/viewpoint/template.json +34 -0
@@ -0,0 +1,53 @@
1
+ /**
2
+ * The `popost setup` spec: a JSON document that says what the deterministic setup steps should produce. `parseSpec` checks
3
+ * its shape (unknown keys, types, enum values) and reports every problem it finds instead of stopping at the first; what
4
+ * needs the disk (files that must exist, page ids, font roles) is checked in `check.ts`.
5
+ */
6
+ import { type Mode } from '../core/project';
7
+ import { REF_ROLES } from '../images/references';
8
+ import { type SettingsChange } from '../workflow/settings';
9
+ export declare const MAX_PAGES = 50;
10
+ export declare const PURPOSES: readonly ["material", "composition"];
11
+ export type Purpose = (typeof PURPOSES)[number];
12
+ export type RefRole = (typeof REF_ROLES)[number];
13
+ /** Every entry of a list remembers where it stood in the spec, so that a problem names the right one. */
14
+ interface Positioned {
15
+ readonly index: number;
16
+ }
17
+ export interface ReferenceEntry extends Positioned {
18
+ readonly file: string;
19
+ readonly role: RefRole;
20
+ readonly page?: string;
21
+ }
22
+ export interface ImageEntry extends Positioned {
23
+ /** The job id; `composition` for the composition job. */
24
+ readonly id: string;
25
+ readonly promptFile: string;
26
+ readonly aspect?: string;
27
+ readonly purpose: Purpose;
28
+ /** Role names (`identity`, `all`, …) and picture paths, as `image prepare --ref` takes them. */
29
+ readonly ref: readonly string[];
30
+ }
31
+ export interface Spec {
32
+ readonly brief?: string;
33
+ readonly mode?: Mode;
34
+ readonly width?: number;
35
+ readonly height?: number;
36
+ /** A page count (p1…pN) or the explicit page ids. */
37
+ readonly pages?: number | readonly string[];
38
+ readonly settings?: SettingsChange;
39
+ readonly references: readonly ReferenceEntry[];
40
+ readonly fonts: readonly string[];
41
+ readonly plan?: string;
42
+ readonly images: readonly ImageEntry[];
43
+ readonly quote?: boolean;
44
+ }
45
+ export interface ParsedSpec {
46
+ readonly spec: Spec;
47
+ /** The document is not a spec at all, so there is nothing more to check. */
48
+ readonly unusable?: boolean;
49
+ /** Every shape problem, as `where: what is wrong`. */
50
+ readonly problems: readonly string[];
51
+ }
52
+ export declare const parseSpec: (raw: unknown) => ParsedSpec;
53
+ export {};
@@ -0,0 +1,33 @@
1
+ /**
2
+ * The steps of `popost setup` that prepare a project: init, settings, pages, references, fonts, plan and image jobs. Each
3
+ * one calls what the matching command calls, and each can run again: it leaves alone what is already as the spec says.
4
+ * The quote step is in `quote.ts`.
5
+ */
6
+ import { Project } from '../core/project';
7
+ import { type FontLinkReport } from '../fonts/project-fonts';
8
+ import { type SetupContext } from './context';
9
+ export interface StepResult {
10
+ readonly status: 'done' | 'skipped';
11
+ readonly detail: string;
12
+ /** What was decided for the caller on the way (picture ratios, references), one line each. */
13
+ readonly notes?: readonly string[];
14
+ /** What the caller should reconsider but was not stopped for; `popost setup` lists them together. */
15
+ readonly warnings?: readonly string[];
16
+ /** The pages whose font links this step wrote (or could not), so the caller never has to guess. */
17
+ readonly fontLinks?: FontLinkReport;
18
+ }
19
+ /** A step that stopped for a reason the caller can fix; `code` is the exit code (2 input, 1 refused). */
20
+ export declare class StepFailure extends Error {
21
+ readonly code: number;
22
+ constructor(message: string, code?: number);
23
+ }
24
+ export declare const skipped: (detail: string) => StepResult;
25
+ /** The project, which exists from the init step on. */
26
+ export declare const projectOf: (ctx: SetupContext) => Project;
27
+ export declare const initStep: (ctx: SetupContext) => Promise<StepResult>;
28
+ export declare const settingsStep: (ctx: SetupContext) => Promise<StepResult>;
29
+ export declare const pagesStep: (ctx: SetupContext) => Promise<StepResult>;
30
+ export declare const referencesStep: (ctx: SetupContext) => Promise<StepResult>;
31
+ export declare const fontsStep: (ctx: SetupContext) => Promise<StepResult>;
32
+ export declare const planStep: (ctx: SetupContext) => Promise<StepResult>;
33
+ export declare const imagesStep: (ctx: SetupContext) => Promise<StepResult>;
@@ -0,0 +1,2 @@
1
+ /** The CLI version; equals `metadata.version` in SKILL.md and is sent to popost.ai as `x-popost-client-version`. */
2
+ export declare const VERSION = "4.6.0";
@@ -0,0 +1,43 @@
1
+ import type { Project } from '../core/project';
2
+ export interface BuildReport {
3
+ structureReady: boolean;
4
+ visualQa: 'pending' | 'reviewed-by-agent';
5
+ readyToDeliver: boolean;
6
+ mode: string;
7
+ blockers: string[];
8
+ reviewGaps: string[];
9
+ warnings: string[];
10
+ concept: Record<string, unknown>;
11
+ }
12
+ interface Canvas {
13
+ found: boolean;
14
+ layers: string[];
15
+ }
16
+ /** Does the page have a `post`/`page` root class, and which `data-layer-id`s does it declare. */
17
+ export declare const scanCanvas: (html: string) => Canvas;
18
+ /** Run every structural check, write `build-report.json` next to the manifest and return the report. */
19
+ export declare const buildProject: (project: Project, conceptOff?: boolean) => Promise<BuildReport>;
20
+ /**
21
+ * Environment report. Python probed its modules (`playwright`, `PIL`); here nothing is imported dynamically, so only
22
+ * what is knowable without launching a browser is reported: the renderer ships with the package, and whether this host
23
+ * can start a local editor server or hands the project to its own editor.
24
+ */
25
+ export declare const doctor: (project: Project) => Promise<{
26
+ project: string;
27
+ mode: "original" | "strict";
28
+ pages: string[];
29
+ assets: number;
30
+ fonts: Record<string, unknown>;
31
+ concept: Record<string, unknown> & {
32
+ status: string;
33
+ prompt: string | null;
34
+ fixture: string | null;
35
+ };
36
+ deps: {
37
+ playwright: boolean;
38
+ localProcesses: boolean;
39
+ };
40
+ editorHost: string | null;
41
+ planAttached: boolean;
42
+ }>;
43
+ export {};
@@ -0,0 +1,34 @@
1
+ /** Explicit, local lookup. A result is a candidate; it never changes a creation's selected template. */
2
+ export interface SearchableTemplate {
3
+ readonly id: string;
4
+ readonly platform: string;
5
+ readonly categories: readonly string[];
6
+ readonly copy: {
7
+ readonly zh: {
8
+ readonly name: string;
9
+ readonly summary: string;
10
+ readonly useWhen: string;
11
+ };
12
+ readonly en: {
13
+ readonly name: string;
14
+ readonly summary: string;
15
+ readonly useWhen: string;
16
+ };
17
+ };
18
+ readonly match: {
19
+ readonly goals: readonly string[];
20
+ readonly imageCues: readonly string[];
21
+ readonly exclusions: readonly string[];
22
+ };
23
+ readonly revision: string;
24
+ }
25
+ export interface TemplateSearchQuery {
26
+ readonly q: string;
27
+ readonly platform?: string;
28
+ readonly category?: string;
29
+ readonly limit?: number;
30
+ }
31
+ export declare const searchTemplateIndex: <T extends SearchableTemplate>(catalog: readonly T[], query: TemplateSearchQuery) => {
32
+ template: T;
33
+ score: number;
34
+ }[];
@@ -0,0 +1,44 @@
1
+ /**
2
+ * The grid of the one composition contact sheet, and the picture ratio it is generated at.
3
+ *
4
+ * `series prompt` asks the model for "all pages as separate panels in C columns and R rows"; the job that generates it
5
+ * needs an aspect ratio that suits that grid. Both come from here, so the prompt and the job agree: a panel gets the
6
+ * pages' own proportion instead of being squeezed (three 9:16 pages in a 1:1 sheet) or letterboxed.
7
+ *
8
+ * With `columns x rows` cells on a sheet of ratio `A`, a panel has ratio `A * rows / columns`. A page scaled to fit its
9
+ * panel fills `min(q, 1/q)` of it, where `q` is panel ratio over page ratio, so the share of the sheet that shows page
10
+ * content is `pages / cells * min(q, 1/q)`. The plan with the largest share wins: the pages stay as big as the sheet allows.
11
+ */
12
+ export declare const STANDARD_ASPECTS: readonly string[];
13
+ export interface PageSize {
14
+ readonly width: number;
15
+ readonly height: number;
16
+ }
17
+ export interface Grid {
18
+ readonly columns: number;
19
+ readonly rows: number;
20
+ }
21
+ export interface SheetPlan extends Grid {
22
+ /** The sheet's picture ratio, one of the candidates (`16:9`). */
23
+ readonly aspect: string;
24
+ /** The ratio of one page, reduced (`9:16`). */
25
+ readonly pageAspect: string;
26
+ /** The share of the sheet that shows page content, 0..1. */
27
+ readonly fill: number;
28
+ }
29
+ /** `W:H` as a number, or `null` when it is not a ratio of two positive integers of up to three digits. */
30
+ export declare const parseAspect: (text: string) => number | null;
31
+ /** The ratio most pages have (ties go to the earlier page); a project always has at least one page. */
32
+ export declare const typicalPage: (pages: readonly PageSize[]) => PageSize;
33
+ export interface PlanOptions {
34
+ /** The ratios the picture model can make; defaults to the common ones. */
35
+ readonly aspects?: readonly string[];
36
+ /** Keep this grid (what the prompt already says) and only pick the ratio. */
37
+ readonly grid?: Grid;
38
+ /** How many pages the sheet holds, when that is not `pages.length` (the plan's pages). */
39
+ readonly count?: number;
40
+ }
41
+ /** The grid and the picture ratio that keep the pages largest (see the top of this file for the measure). */
42
+ export declare const planSheet: (pages: readonly PageSize[], options?: PlanOptions) => SheetPlan;
43
+ /** `3 columns and 1 row`, the way the composition prompt says it. */
44
+ export declare const describeGrid: ({ columns, rows }: Grid) => string;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Which failures the Python workflow commands caught. `ValueError`, `KeyError` and OS errors were printed as
3
+ * `{"ok": false, "error": …}` with exit code 2; anything else (a broken project, a corrupt archive) escaped as a
4
+ * traceback with exit code 1, which here is the generic handler in `main.ts`.
5
+ */
6
+ import { KeyError, OsError, ValueError } from '../core/errors';
7
+ export { KeyError, OsError, ValueError };
8
+ /** `(ValueError, OSError, KeyError)` of the Python CLI, plus what replaces JSONDecodeError and PIL's image errors. */
9
+ export declare const isExpectedFailure: (error: unknown) => boolean;
10
+ /** `str(error)` of an expected failure. */
11
+ export declare const failureText: (error: unknown) => string;
@@ -0,0 +1,8 @@
1
+ /** File reads for paths the user typed: relative to the working directory, failing the way Python's `open()` did. */
2
+ import type { Runtime } from '../runtime';
3
+ export declare const fromCwd: (rt: Runtime, path: string) => string;
4
+ export declare const readUserBytes: (rt: Runtime, userPath: string) => Promise<Uint8Array>;
5
+ export declare const readUserText: (rt: Runtime, userPath: string) => Promise<string>;
6
+ export declare const readUserJson: (rt: Runtime, userPath: string) => Promise<unknown>;
7
+ /** Python `str.splitlines()`: the same line breaks, and no empty last line. */
8
+ export declare const splitLines: (text: string) => string[];
@@ -0,0 +1,13 @@
1
+ import type { Project } from '../core/project';
2
+ export interface PageProblem {
3
+ page: string;
4
+ code: string;
5
+ message: string;
6
+ fix: string;
7
+ }
8
+ type Found = Omit<PageProblem, 'page'>;
9
+ /** The problems of one page's HTML. */
10
+ export declare const pageProblems: (project: Project, html: string) => Promise<Found[]>;
11
+ /** The problems of `pids`, in page order; an unreadable page is a problem too. */
12
+ export declare const checkPages: (project: Project, pids: readonly string[]) => Promise<PageProblem[]>;
13
+ export {};
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Unified PostBundle for the five platforms, `postbundle.v1` (port of `post_bundle.py`). Pure local, no network:
3
+ * - a pending ticket only records the source URL and platform; nothing is fetched or parsed, and a bundle stays at
4
+ * `parseStatus=pending` until a real parser fills it in. It is never faked into `ready`;
5
+ * - `validateBundle` checks the structure of a bundle the user supplies;
6
+ * - `evaluateBuildable` decides whether it can be built: missing images, no authorization or a pending parse block it.
7
+ */
8
+ import type { Runtime } from '../runtime';
9
+ export declare const SCHEMA = "postbundle.v1";
10
+ export declare const PLATFORMS: readonly ["tiktok", "xiaohongshu", "instagram", "douyin", "x"];
11
+ export declare const PARSE_STATUSES: readonly ["pending", "ready", "auth_failed", "missing_resources", "error"];
12
+ export declare const RESOURCE_KINDS: readonly ["image", "video", "music"];
13
+ export type Bundle = Record<string, unknown>;
14
+ /** Interface definition of a future parse service: a placeholder, with no client and no call. */
15
+ export declare const SERVICE_CONFIG: {
16
+ schema: string;
17
+ status: string;
18
+ endpoint: null;
19
+ authEnv: null;
20
+ note: string;
21
+ };
22
+ /** A pending ticket for a URL the user gave. Never fetches anything. */
23
+ export declare const makePendingTicket: (rt: Runtime, url: string, platform: string) => Bundle;
24
+ /** `[ok, errors]`: structure and types only; whether the bundle can be built is `evaluateBuildable`'s question. */
25
+ export declare const validateBundle: (data: unknown) => [boolean, string[]];
26
+ /**
27
+ * `{buildable, blockers}`. Anything but `parseStatus=ready` blocks, so does a required but missing authorization, and
28
+ * every resource needs a usable place: an existing local file (relative to `baseDir`) or an explicit URL with a license.
29
+ */
30
+ export declare const evaluateBuildable: (rt: Runtime, bundle: Bundle, baseDir?: string | null) => Promise<{
31
+ buildable: boolean;
32
+ blockers: string[];
33
+ }>;
@@ -0,0 +1,10 @@
1
+ import { Project } from '../core/project';
2
+ import type { Runtime } from '../runtime';
3
+ /** Writes the delivery ZIP (default `exports/project.popost.zip`) and returns its absolute path. */
4
+ export declare const exportProject: (project: Project, out?: string) => Promise<string>;
5
+ /**
6
+ * Validate the archive, unpack it into a new directory and load it as a project. Names and sizes are checked before
7
+ * anything is written; the project is then loaded and verified in place, and the directory is removed again if that
8
+ * fails (a virtual disk may not support renaming a directory, so there is no staging directory to swap in).
9
+ */
10
+ export declare const importProject: (rt: Runtime, data: Uint8Array, destination: string) => Promise<Project>;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Review evidence (port of `workflow_cli.review_page` and the `review --page series` branch). A review is bound to the
3
+ * exact render the agent looked at: the PNG's hash and the page fingerprint at that time. Editing the page or its assets
4
+ * afterwards makes the review stale.
5
+ */
6
+ import type { Project } from '../core/project';
7
+ /** Record the agent's visual findings for one page; the page has to have a current render and receipt. */
8
+ export declare const reviewPage: (project: Project, pid: string, note: string) => Promise<{
9
+ reviewer: string;
10
+ note: string;
11
+ fingerprint: unknown;
12
+ pngHash: unknown;
13
+ }>;
14
+ /** Record the findings of the whole sequence, bound to the plan and to every page's current fingerprint. */
15
+ export declare const reviewSeries: (project: Project, note: string) => Promise<{
16
+ reviewer: string;
17
+ note: string;
18
+ planHash: string;
19
+ pages: Record<string, string>;
20
+ }>;
@@ -0,0 +1,14 @@
1
+ import type { Project } from '../core/project';
2
+ import { type SheetPlan } from './composition-grid';
3
+ export declare const SCHEMA = "popost-series.v1";
4
+ export declare const PLAN_FILE = "series-plan.json";
5
+ export type Plan = Record<string, unknown>;
6
+ /** Everything wrong with a plan, in the order the agent should fix it; `pageIds` binds it to the project's pages. */
7
+ export declare const validate: (plan: unknown, pageIds?: readonly string[]) => string[];
8
+ export declare const load: (project: Project) => Promise<Plan | null>;
9
+ /** Hash of the plan's content: reviews of the sequence are bound to it. Same bytes as Python's sorted `json.dumps`. */
10
+ export declare const digest: (plan: unknown) => string;
11
+ /** Validates, writes `series-plan.json`, records it in the manifest and drops the now outdated series review. */
12
+ export declare const save: (project: Project, plan: unknown) => Promise<string>;
13
+ /** One call, one image containing ALL page panels; no hidden per-page jobs. `sheet` is the grid and proportion from `planSheet`. */
14
+ export declare const compositionPrompt: (plan: unknown, sheet: SheetPlan) => string;
@@ -0,0 +1,16 @@
1
+ /** `settings`: platform, language and the image channel of a project (shared by the `settings` command and `setup`). */
2
+ import type { Project } from '../core/project';
3
+ export declare const PLATFORMS: readonly ["tiktok", "xiaohongshu", "instagram", "douyin", "x"];
4
+ export declare const CHANNELS: readonly ["official", "host", "custom"];
5
+ export interface SettingsChange {
6
+ readonly platform?: string;
7
+ readonly language?: string;
8
+ readonly channel?: string;
9
+ readonly model?: string;
10
+ }
11
+ type Provider = Project['manifest']['provider'];
12
+ /** Whether `applySettings(project, change)` would change anything. */
13
+ export declare const settingsDiffer: (project: Project, change: SettingsChange) => boolean;
14
+ /** Applies the given settings and saves the manifest; returns the project's image provider. */
15
+ export declare const applySettings: (project: Project, change: SettingsChange) => Promise<Provider>;
16
+ export {};
@@ -0,0 +1,9 @@
1
+ /** A command group with sub-commands, parsed like argparse's `add_subparsers`: unknown or missing ones exit 2. */
2
+ import { type CommandSpec, type ParsedArgs } from '../args';
3
+ import type { Runtime } from '../runtime';
4
+ export interface Subcommand {
5
+ spec: Omit<CommandSpec, 'prog'>;
6
+ /** `argv` is what follows the sub-command name, for the few commands that care about flag order. */
7
+ run: (args: ParsedArgs, rt: Runtime, argv: readonly string[]) => Promise<number>;
8
+ }
9
+ export declare const runSubcommand: (prog: string, table: Readonly<Record<string, Subcommand>>, argv: readonly string[], rt: Runtime) => Promise<number>;
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Scene Skill (template) mounting, pure local (port of `template_plugins.py`).
3
+ * - `locateSkill` really reads the scene Skill's SKILL.md, hashes it, lists the references. A missing or unreadable
4
+ * SKILL.md is an error result: never a silent fallback, never a downgrade to free creation.
5
+ * - `recallCandidates` is lexical recall only (`verdict_authoritative` is always false). Platform words are never a
6
+ * content key. The agent reads the full text and decides.
7
+ * - `detectConflict` does not assert a conflict; it only flags `requiresReview`.
8
+ */
9
+ import type { Runtime } from '../runtime';
10
+ export interface SkillReference {
11
+ path: string;
12
+ exists: boolean;
13
+ }
14
+ export interface SkillFound {
15
+ ok: true;
16
+ route: 'found';
17
+ path: string;
18
+ skillId: string;
19
+ name: string;
20
+ version: string | null;
21
+ sha256: string;
22
+ references: SkillReference[];
23
+ resourcesPresent: boolean;
24
+ missingRefs: string[];
25
+ fullTextBytes: number;
26
+ }
27
+ export interface SkillMissing {
28
+ ok: false;
29
+ route: 'error';
30
+ path: string;
31
+ error: string;
32
+ }
33
+ export type SkillLocation = SkillFound | SkillMissing;
34
+ /** Only `name`, `description` and `version` of the front matter are read. */
35
+ export declare const parseFrontmatter: (text: string) => Record<string, string>;
36
+ export declare const locateSkill: (rt: Runtime, userPath: string) => Promise<SkillLocation>;
37
+ export interface Candidate {
38
+ path: string;
39
+ name: string;
40
+ version: string | null;
41
+ sha256: string;
42
+ score: number;
43
+ matchedTokens: string[];
44
+ verdict_authoritative: false;
45
+ note: string;
46
+ }
47
+ /** Lexical scoring over name and folder name; the platform hint is echoed back and never scored. */
48
+ export declare const recallCandidates: (rt: Runtime, brief: string, roots: readonly string[], platformHint?: string | null) => Promise<{
49
+ ok: boolean;
50
+ platform_hint: string | null;
51
+ count: number;
52
+ candidates: Candidate[];
53
+ }>;
54
+ export declare const detectConflict: (templateChosen: boolean, referenceSupplied: boolean, strict: boolean) => {
55
+ templateChosen: boolean;
56
+ referenceSupplied: boolean;
57
+ strict: boolean;
58
+ conflict: null;
59
+ requiresReview: boolean;
60
+ authorizationField: string;
61
+ note: string;
62
+ };
@@ -0,0 +1,11 @@
1
+ export declare const MAX_EXPANDED: number;
2
+ export interface ZipEntry {
3
+ name: string;
4
+ size: number;
5
+ }
6
+ /** Names and expanded sizes in archive order, without inflating anything. */
7
+ export declare const listEntries: (data: Uint8Array) => ZipEntry[];
8
+ /** Names of entries whose Unix mode says "symbolic link". An archive without a readable directory yields none. */
9
+ export declare const symlinkNames: (data: Uint8Array) => Set<string>;
10
+ /** Throws a `ValueError` when the archive must not be unpacked. `manifestName` has to be one of its entries. */
11
+ export declare const assertSafeArchive: (data: Uint8Array, manifestName: string) => ZipEntry[];
package/package.json CHANGED
@@ -1,6 +1,71 @@
1
1
  {
2
2
  "name": "popost",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "4.6.0",
4
+ "description": "popost Skill and CLI: create, reproduce and edit social media image posts as editable HTML projects, for coding agents such as Codex and Claude Code.",
5
+ "license": "SEE LICENSE IN LICENSE",
6
+ "author": "CLIPCAT AI LTD",
7
+ "homepage": "https://popost.ai",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/PopostAI/popost.git",
11
+ "directory": "skills/popost"
12
+ },
13
+ "keywords": [
14
+ "popost",
15
+ "skill",
16
+ "agent",
17
+ "codex",
18
+ "claude-code",
19
+ "social-media",
20
+ "xiaohongshu",
21
+ "carousel",
22
+ "html"
23
+ ],
24
+ "type": "module",
25
+ "bin": {
26
+ "popost": "dist/cli.js"
27
+ },
28
+ "main": "dist/index.js",
29
+ "types": "dist/types/index.d.ts",
30
+ "exports": {
31
+ ".": {
32
+ "types": "./dist/types/index.d.ts",
33
+ "default": "./dist/index.js"
34
+ },
35
+ "./package.json": "./package.json"
36
+ },
37
+ "files": [
38
+ "dist/",
39
+ "SKILL.md",
40
+ "README.md",
41
+ "LICENSE",
42
+ "THIRD_PARTY_NOTICES",
43
+ "agents/",
44
+ "references/",
45
+ "templates/",
46
+ "assets/canvas/",
47
+ "assets/project-starter/",
48
+ "assets/mock/",
49
+ "assets/fonts/palette.json",
50
+ "assets/fonts/NOTICE.txt",
51
+ "assets/fonts/css/",
52
+ "assets/fonts/*/LICENSE",
53
+ "assets/*.json",
54
+ "assets/*.txt"
55
+ ],
56
+ "engines": {
57
+ "node": ">=20.19"
58
+ },
59
+ "scripts": {
60
+ "build": "node build.mjs",
61
+ "build:deck": "node bundles/build-deck.mjs",
62
+ "check:deck": "node bundles/build-deck.mjs --check",
63
+ "typecheck": "tsc -p tsconfig.json && tsc -p bundles/tsconfig.json",
64
+ "test": "vitest run --config vitest.config.ts"
65
+ },
66
+ "dependencies": {
67
+ "fflate": "^0.8.3",
68
+ "playwright-core": "1.64.1",
69
+ "htmlparser2": "^12.0.0"
70
+ }
71
+ }
@@ -0,0 +1,11 @@
1
+ # 素材架构
2
+
3
+ 五种常见结构,没有默认项:连续场景、独立图槽、原生图形排版、透明主体叠放、分层拼贴。选择依据是视觉关系与后续编辑需要。
4
+
5
+ 共享光线、透视、反射或物理接触的元素宜放在同一连续场景中;需要独立位置、重复、替换、裁切或遮挡关系的元素独立承载。简单纸片、线条、框、可控几何用 HTML/CSS;摄影、材质与复杂插画用真实素材或模型。
6
+
7
+ 有多个正式素材时写 asset-plan.json,记录 id、适用页面、用途、来源、形态、制作意图区域、层序、提示词标识、参考角色、风格锚点和依赖。该文件是素材制作计划,不是运行时布局 DSL;页面 HTML 始终决定最终坐标。
8
+
9
+ 需要保留真实人物/商品/品牌等身份时明确 identity 约束;普通视觉原创可以没有身份参考。style、layout、action 和 identity 的含义分开,不能把风格图的商品默认迁入目标作品。材料路由的 productIdentity.required 或 slot.requiresIdentity 只在身份敏感任务启用。
10
+
11
+ 逐个检查素材(几张一起用 `sheet --files …` 拼成一张看),再看组装:接缝、尺度、光线、重复、错配、透明边缘和遮挡。图像必须说明对应页的信息;几幅不同含义不应误用同一张图。内部一张多页参考联系表只指导风格,不裁开当作正式素材。
@@ -0,0 +1,13 @@
1
+ # 原创
2
+
3
+ First establish the audience and content plan. When useful and authorized, use one optional, separately priced composition reference to explore the series. Skip generation for a local-material/no-generation route and record the reason; see [onboarding.md](onboarding.md). 创意增强锁定事实、对象和用户指定内容,强化取景、尺度对比、层级、字体张力、材质、光线与空间节奏。不要给模型凭空加新品牌、事件、商品或功效。
4
+
5
+ When an internal reference is selected, the workflow is: 建页 → 计划 → `series prompt` → `image prepare` → 所选通道生成一张 → `image complete` → 读图写 design.md → 正式素材 → 活字 HTML → 看图修正。
6
+
7
+ 多页联系表一次输出所有页面;不额外生成封面方向、内页方向或逐页概念。图片里允许展示计划文字以确定层级,但不会用于最终排字。正式素材计划在读完参考后确定;一次参考预算不意味着正式摄影/插画素材也免费。
8
+
9
+ 计划先解决内容,读参考后整合最终文案与视觉判断。参考生成的文字有错就以计划为准,事实绝不从模型补全。需要视觉创作时不默认排几个圆角卡片;纯排版也应有鲜明字阶、图形秩序和留白,不能靠泛用渐变填空。
10
+
11
+ 单图与多图使用相同设计原则。多页全组共享视觉锚点;无需每页重复一个主体或同一段标题。连续摄影与多人动作先确保物理关系,再决定拆层。
12
+
13
+ 关闭参考要记录原因:用户明确关闭、局部编辑不影响构图、或能力缺失但现有素材/原生排版可充分满足需求。关键生图能力缺失则说明缺口。
@@ -0,0 +1,11 @@
1
+ # 内容与视觉系统
2
+
3
+ 在参考确定后做一次整合判断,写入 design.md。先决定观看顺序:什么抓住眼睛、什么表达主张、什么提供细节。尺寸、字重、色彩和留白共同形成明显层级,避免所有模块同等重要。
4
+
5
+ 整组共享设计规则,各页可变化。字体按 display/body/caption 等角色选择,字形覆盖实际语言,字阶有足够差异;参考或品牌规定单一字体时沿用,不强凑字体数量。色彩按背景、正文、强调与语义分配,不按固定数量填色。网格和留白承担结构,装饰不替代有意义的照片、插画或图解。
6
+
7
+ 图片区先实际检查再落文字:提示词要求的干净区域不保证真实尺寸;测量返回图的低细节区域、裁切和主体范围。需要字图对比时先选适当区域、局部渐变/衬底或合乎设计的面板,避免每处都放黑色文字框。
8
+
9
+ 每页 HTML 是最终几何权威。固定画布用像素定义排版尺寸,palette/font roles 用 :root 变量;语义图层可独立移动,复杂场景可为一层位图。嵌套文字用 data-slot,不嵌套可拖动 layer-id。结构 wrapper 可保留;不将其误认为遗漏图层。
10
+
11
+ 使用 border-box,保持变换和层序;字体、图片加载后再测量。模板或旧文件存在流式布局时谨慎固化,避免边测量边改变布局。画布几何、编辑器几何和导出结果必须一致。
@@ -0,0 +1,21 @@
1
+ # 与 Popost 产品共用的本地画布
2
+
3
+ Skill 使用与 Popost 产品相同的自研画布编辑器(4.0.0)。源码权威位于仓库 `packages/canvas-editor/`;`npm run build` 把构建产物原子发布到 `skills/popost/assets/canvas/`(已提交);popost.ai 网页版嵌入同一份产物(约定见 `packages/canvas-editor/EMBEDDING.md`)。`<skill>/assets/canvas/build-info.json` 记录文件指纹,`THIRD_PARTY_LICENSES.txt` 列出打包的第三方 npm 依赖(含 CodeMirror 5)的许可,不按作品另写界面。
4
+
5
+ 通过 `present --dir P --host <当前宿主>` 启动或复用服务,再由宿主工具直接打开侧栏;手动前台服务仍可用 `serve --dir P`。只绑定 `127.0.0.1`,入口仍为 `/editor.html`。界面保留文本、区块、图层、代码四个面板、底部缩略图、图层移动与排序、图片替换与裁切、撤销/重做、页面复制/删除/重排、缩放和还原初始布局。它可独立运行,不要求网站登录或托管服务。宿主动作与能力检测见 [host-editor.md](host-editor.md)。
6
+
7
+ ## 页面契约
8
+
9
+ 每页独立 HTML、CSS 和本地资源。根 .post/.page 固定宽高;可移动语义单元唯一 data-layer-id,文字叶子用 data-slot;不要将可拖动图层彼此嵌套。使用 border-box。以 :root 声明颜色与字体角色。复杂位图可整层移动,图内像素不承诺逐对象编辑。
10
+
11
+ 本地适配将独立页面装入同一画布,以 scoped CSS 隔离各页样式、变量和字体;保存按当前页序拆回独立 HTML,复制页分配新 id。字体注册放在作用域外,保存时去除重复注册,不反复嵌入整份字库 CSS。打开工程不会重写页面。编辑器使用同源 HTTP 预览,支持 Codex 内嵌浏览器与现代 Chrome/Chromium;PNG 导出需要本机 Chrome 或 Chromium。多窗口保存校验磁盘版本,冲突保留修改并显示处理界面。初始布局以首次在本地新版画布打开时的快照为准,不被后续保存覆盖,恢复操作可撤销。
12
+
13
+ 优先直接写固定图层,避免编辑器接管时改变结构。确需固化时等待图片与字体,先测量全量再写;变换、上下文样式和层序不可丢失。编辑器缩放不改变画布真实尺寸,拖拽位移换算画布坐标。
14
+
15
+ ## 保存与导出
16
+
17
+ PNG 和完整工程下载先等待保存;失败时保留修改并显示错误。服务器全量校验页面再写入,异常时恢复旧文件。磁盘 manifest 不含 html,页面文件是排版权威。修改后旧看图记录失效,不把用户修改自动写成 Agent 已审核。PNG 缓存校验当前 HTML、尺寸、本地依赖、图像字节和渲染版本;未变动的已审核图片直接导出,变化页批量共用浏览器渲染。
18
+
19
+ “下载全部”下载当前 PNG 图集 ZIP。顶部右侧的“导出”菜单提供单文件 HTML 导出(编辑器 4.0.0 起不再提供 PDF 导出),不显示工程 ZIP 操作。完整工程通过 `package` 命令交付。ZIP 里是 `social-studio-project.json`(只留可移植的元数据)、`pages/*.html`、页面引用到的图片/字体/CSS 及字体旁的原始许可、说明文件 `OPEN.txt`,以及 `runtime/assets/canvas/`(共同编辑器构建产物);`runtime/assets/fonts/` 带 `palette.json`、NOTICE,以及本机已有 WOFF2 的系列的 CSS 和字体文件。ZIP 里没有可执行脚本,也没有 Python。重开:装好 popost CLI(Node 20.19 或更新),`popost unpack --file project.popost.zip --dir 新目录`,再 `popost present --dir 新目录`;PNG 导出需要本机 Chrome 或 Chromium(`popost doctor --dir 新目录` 检查)。
20
+
21
+ ZIP 不带密钥/账户配置、制作历史、原始提示和内部构图图像。测试恢复时移到新目录并让旧目录不可用,验证图片、字体和 CSS 不依赖绝对路径。导入后的当前工程成为该工程的初始布局。撤销/重做作用于共同画布的操作历史,重开依据已保存文件,未保存离开有提示。
@@ -0,0 +1,29 @@
1
+ # 公共字体库与画布字体菜单
2
+
3
+ `<skill>/assets/fonts/palette.json` 是唯一字库清单。Skill 本地画布、前端项目画布和导出的完整工程,都从这份清单生成字体菜单;禁止另维护固定菜单或请求 Google Fonts。当前 41 个系列:12 个中文、29 个英文,全部自托管。既有十个角色 ID 保持兼容。
4
+
5
+ ## 覆盖与选用
6
+
7
+ - 中文:Noto Sans/Serif SC、TC(简繁黑体与宋体)、霞鹜文楷及 TC、马善政、站酷小薇、快乐、庆科黄油、刘建毛草、志莽行书。正文优先黑体、宋体、文楷;展示和手写字体适合短标题。
8
+ - 英文:Inter、Inter Tight、Roboto、Open Sans、Montserrat、Poppins、Lexend、Manrope、DM Sans、Be Vietnam Pro、Instrument Sans、Space Grotesk;衬线含 Fraunces、Bodoni Moda、Playfair Display、Lora、Libre Baskerville、Cormorant Garamond、Source Serif 4;窄体/展示含 Roboto Condensed、Unbounded、Oswald、Anton、Bebas Neue;等宽含 JetBrains Mono、IBM Plex Mono;手写含 Caveat、Pacifico、Dancing Script。
9
+ - 这是常见排版风格覆盖,不等于收录市售全部字体。每个系列的 `coverage` 来自实际 WOFF2 cmap:全部包含 95 个基本拉丁字符;当前 Noto SC 的网页子集覆盖 GB2312 汉字 6730/6763,文楷覆盖 6763/6763。繁体字体按其真实字形使用,不把繁体库当作完整简体库。生僻字、人名、符号、拼音、其他语言需检查实际字形。
10
+ - 只安装文案实际用到的字体:纯英文文案不要装 `cjk-*` 角色,导出会把每页链接的字体 CSS 带进每一页,而中文 CSS 很大。
11
+ - 按内容、语言和参考选择字体,不每篇用满。中英混排选择英文字体时,编辑器自动安装中文 Noto 后备。修改后等待 `document.fonts.ready`,核查真实加载、换行和布局;缺字时选覆盖更广的字体并重看渲染。
12
+
13
+ ## 加载、保存与离线编辑
14
+
15
+ `font install --roles ...` 将所选 WOFF2、CSS 和完整原始许可复制到项目 `fonts/`、`css/`,合并 `fonts-manifest.json`,并在每页 `<head>` 里加上每个角色的 `<link rel="stylesheet" href="../css/<角色>.css">`(`font install` 输出的 `links` 给出原文,`fontLinks.linked` 列出改动的页;`setup` 的 fonts / pages 步骤同样带 `fontLinks`)。这些 link 由 CLI 维护,不要自己写、改或删,更不要自造 `css/fonts.css` 之类的路径,也不要用 `sed` 去补:`setup`、`font install`、`render` 都会补齐。整页重写后没有 `<head>` 或漏了 link 的页面,下一次 `render`(输出 `fontLinksRestored`)或 `font install` 会把它们加回(没有 `</head>` 的片段页,link 加在文档最前面,浏览器会放进 head);已经把同名字体 `@font-face` 内嵌进页面的,不再加 link。`--dir` 必须是 `setup` / `init` 建的工程目录,空目录会报“不是 v2 工程”。WOFF2 本体不随 npm 包分发:`<skill>/assets/fonts/` 里没有该文件时,按 `palette.json` 里的哈希从公共字库下载(默认 `https://popost.ai/fonts/popost`,可用 `POPOST_FONT_BASE_URL` 改,缓存在 `POPOST_CACHE_DIR` 或 `~/.cache/popost`),哈希不符即报错。编辑器选择新字体时自动安装,保留已有字体和未保存文字;版本冲突时保留本地编辑并提示重载。
16
+
17
+ 产品画布只从本站公共字库按需读取所选系列,保存时内嵌所选字体字节和原始许可,重开旧作品不依赖外部字体服务。本地画布使用工程内字体文件。已导入作品的库外字体会显示“文档现用,未在公共库”,不冒充可分发的公共字体。
18
+
19
+ 本机 `<skill>/assets/fonts/` 里有字库文件时,完整工程 ZIP 携带这些系列的字库和许可(41 个系列齐全时约 69.4 MiB),解压后可离线继续选择同一菜单;没有时 ZIP 只带页面用到的字体,其余系列要用时再 `font install`。WOFF2 原本已压缩,ZIP 对其直接存储以减少打包耗时。作品 HTML/PNG 只使用所选字体,不为显示菜单预载全部字库。字体从 skill 自身定位,工程字体从清单定位,不依赖旧开发目录。
20
+
21
+ ## 授权规则
22
+
23
+ 这 41 个系列随包附有原始 **SIL Open Font License 1.1**、版权信息、固定 Fontsource 包版本及字体/许可 SHA-256。保留原始字体二进制,不擅自改名或修改字体。OFL 允许商业作品、嵌入与随软件分发;分发字体文件必须保留版权和许可,字体不能单独售卖,修改字体需遵守 Reserved Font Name 等条件。图文作品本身不因此受 OFL 约束。依据:[OFL 1.1 原文](https://openfontlicense.org/open-font-license-official-text/)、[官方 FAQ](https://openfontlicense.org/ofl-faq/)。其他来源字体必须另行核查授权,不沿用公共字库结论。
24
+
25
+ ## 维护
26
+
27
+ 网页版嵌入编辑器时从此字库拷贝 `fonts/popost/`(见 `packages/canvas-editor/EMBEDDING.md`),构建不联网;修改共享编辑器后运行 `npm run build`。不要只修改生成副本。新增字体必须有明确可分发授权、原始许可及来源版本,更新清单后核对字体菜单、字形、保存重开、PNG 和 ZIP。
28
+
29
+ 仅维护者使用:仓库里的 `skills/popost/tools/update_font_library.py` 是一个独立的 Python 3 脚本(需要 `fonttools[woff]`),不属于 `popost` CLI,也不随 npm 包分发;Skill 的运行不需要 Python。它按清单中的固定包版本获取原始 WOFF2 并重算授权哈希、实际字形覆盖和 NOTICE。日常创作与构建无需此步骤。