wezard 2.8.8 → 3.0.1

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 (414) hide show
  1. package/.claude-plugin/plugin.json +0 -6
  2. package/CLAUDE.md +36 -16
  3. package/README.md +41 -54
  4. package/cli/wezard.sh +3 -0
  5. package/config.example.jsonc +6 -8
  6. package/dist/cli/codex-hook.js +20 -4
  7. package/dist/cli/codex-hook.js.map +1 -1
  8. package/dist/cli/init.js +45 -8
  9. package/dist/cli/init.js.map +1 -1
  10. package/dist/cli/skills.js +113 -0
  11. package/dist/cli/skills.js.map +1 -0
  12. package/dist/cli/sync.js +32 -112
  13. package/dist/cli/sync.js.map +1 -1
  14. package/dist/daemon/apprentice.js +75 -0
  15. package/dist/daemon/apprentice.js.map +1 -0
  16. package/dist/daemon/approval.js +78 -20
  17. package/dist/daemon/approval.js.map +1 -1
  18. package/dist/daemon/channel-context.js +69 -0
  19. package/dist/daemon/channel-context.js.map +1 -0
  20. package/dist/daemon/channel-posts.js +53 -0
  21. package/dist/daemon/channel-posts.js.map +1 -0
  22. package/dist/daemon/channel-store.js +96 -0
  23. package/dist/daemon/channel-store.js.map +1 -0
  24. package/dist/daemon/channel.js +805 -0
  25. package/dist/daemon/channel.js.map +1 -0
  26. package/dist/daemon/chat-name.js +24 -161
  27. package/dist/daemon/chat-name.js.map +1 -1
  28. package/dist/daemon/classes.js +418 -0
  29. package/dist/daemon/classes.js.map +1 -0
  30. package/dist/daemon/config-api.js +11 -3
  31. package/dist/daemon/config-api.js.map +1 -1
  32. package/dist/daemon/danger.js +24 -205
  33. package/dist/daemon/danger.js.map +1 -1
  34. package/dist/daemon/detail.js +14 -8
  35. package/dist/daemon/detail.js.map +1 -1
  36. package/dist/daemon/handoff.js +266 -50
  37. package/dist/daemon/handoff.js.map +1 -1
  38. package/dist/daemon/http.js +25 -18
  39. package/dist/daemon/http.js.map +1 -1
  40. package/dist/daemon/idle-reap.js +30 -0
  41. package/dist/daemon/idle-reap.js.map +1 -0
  42. package/dist/daemon/inbound.js +366 -143
  43. package/dist/daemon/inbound.js.map +1 -1
  44. package/dist/daemon/index.js +2232 -2616
  45. package/dist/daemon/index.js.map +1 -1
  46. package/dist/daemon/last-response.js +44 -9
  47. package/dist/daemon/last-response.js.map +1 -1
  48. package/dist/daemon/memory-steward.js +1 -1
  49. package/dist/daemon/memory-steward.js.map +1 -1
  50. package/dist/daemon/message-format.js +10 -2
  51. package/dist/daemon/message-format.js.map +1 -1
  52. package/dist/daemon/mirror-bridge.js +714 -485
  53. package/dist/daemon/mirror-bridge.js.map +1 -1
  54. package/dist/daemon/mirror-store.js +24 -0
  55. package/dist/daemon/mirror-store.js.map +1 -1
  56. package/dist/daemon/notices.js +2 -2
  57. package/dist/daemon/notices.js.map +1 -1
  58. package/dist/daemon/onboarding.js +384 -0
  59. package/dist/daemon/onboarding.js.map +1 -0
  60. package/dist/daemon/outbound.js +21 -11
  61. package/dist/daemon/outbound.js.map +1 -1
  62. package/dist/daemon/peers.js +38 -230
  63. package/dist/daemon/peers.js.map +1 -1
  64. package/dist/daemon/pending.js +7 -5
  65. package/dist/daemon/pending.js.map +1 -1
  66. package/dist/daemon/picker-policy.js +27 -12
  67. package/dist/daemon/picker-policy.js.map +1 -1
  68. package/dist/daemon/plans.js.map +1 -1
  69. package/dist/daemon/room-auto-adhoc.js +18 -0
  70. package/dist/daemon/room-auto-adhoc.js.map +1 -0
  71. package/dist/daemon/room-facts.js +35 -0
  72. package/dist/daemon/room-facts.js.map +1 -0
  73. package/dist/daemon/room-hub.js +430 -0
  74. package/dist/daemon/room-hub.js.map +1 -0
  75. package/dist/daemon/room-overdue.js +98 -0
  76. package/dist/daemon/room-overdue.js.map +1 -0
  77. package/dist/daemon/room-prune.js +74 -0
  78. package/dist/daemon/room-prune.js.map +1 -0
  79. package/dist/daemon/room-spawn.js +20 -0
  80. package/dist/daemon/room-spawn.js.map +1 -0
  81. package/dist/daemon/room-watchdog.js +153 -0
  82. package/dist/daemon/room-watchdog.js.map +1 -0
  83. package/dist/daemon/rooms.js +107 -0
  84. package/dist/daemon/rooms.js.map +1 -0
  85. package/dist/daemon/route.js +7 -18
  86. package/dist/daemon/route.js.map +1 -1
  87. package/dist/daemon/spawn-tmux.js +171 -55
  88. package/dist/daemon/spawn-tmux.js.map +1 -1
  89. package/dist/daemon/steward-guard.js +2 -2
  90. package/dist/daemon/steward.js +132 -0
  91. package/dist/daemon/steward.js.map +1 -0
  92. package/dist/daemon/tasks.js +4 -14
  93. package/dist/daemon/tasks.js.map +1 -1
  94. package/dist/daemon/turn-opening.js +25 -0
  95. package/dist/daemon/turn-opening.js.map +1 -0
  96. package/dist/daemon/wake-tail.js +55 -0
  97. package/dist/daemon/wake-tail.js.map +1 -0
  98. package/dist/daemon/weixin-cmd.js +10 -14
  99. package/dist/daemon/weixin-cmd.js.map +1 -1
  100. package/dist/daemon/wezard-session.js +7 -2
  101. package/dist/daemon/wezard-session.js.map +1 -1
  102. package/dist/daemon/wizard-names.js +0 -22
  103. package/dist/daemon/wizard-names.js.map +1 -1
  104. package/dist/daemon/wizard.js +589 -145
  105. package/dist/daemon/wizard.js.map +1 -1
  106. package/dist/mcp/output.js +6 -5
  107. package/dist/mcp/output.js.map +1 -1
  108. package/dist/mcp/tools.js +258 -236
  109. package/dist/mcp/tools.js.map +1 -1
  110. package/dist/shared/allow-rules.js +32 -8
  111. package/dist/shared/allow-rules.js.map +1 -1
  112. package/dist/shared/charter-rearm.js +179 -0
  113. package/dist/shared/charter-rearm.js.map +1 -0
  114. package/dist/shared/chat-http.js +374 -459
  115. package/dist/shared/chat-http.js.map +1 -1
  116. package/dist/shared/chat-record.js +55 -0
  117. package/dist/shared/chat-record.js.map +1 -0
  118. package/dist/shared/chat-render.js +7 -4
  119. package/dist/shared/chat-render.js.map +1 -1
  120. package/dist/shared/chat-view.js +2 -41
  121. package/dist/shared/chat-view.js.map +1 -1
  122. package/dist/shared/cli-backends.js +27 -5
  123. package/dist/shared/cli-backends.js.map +1 -1
  124. package/dist/shared/config.js +122 -38
  125. package/dist/shared/config.js.map +1 -1
  126. package/dist/shared/detail-render.js +104 -21
  127. package/dist/shared/detail-render.js.map +1 -1
  128. package/dist/shared/detail-store.js.map +1 -1
  129. package/dist/shared/group-members.js +35 -0
  130. package/dist/shared/group-members.js.map +1 -0
  131. package/dist/shared/inject-view.js +105 -0
  132. package/dist/shared/inject-view.js.map +1 -0
  133. package/dist/shared/json-map-store.js +23 -6
  134. package/dist/shared/json-map-store.js.map +1 -1
  135. package/dist/shared/legacy-routes.js +199 -0
  136. package/dist/shared/legacy-routes.js.map +1 -0
  137. package/dist/shared/mem-guard.js +32 -0
  138. package/dist/shared/mem-guard.js.map +1 -0
  139. package/dist/shared/message-footer.js +4 -3
  140. package/dist/shared/message-footer.js.map +1 -1
  141. package/dist/shared/pricing.js +5 -0
  142. package/dist/shared/pricing.js.map +1 -1
  143. package/dist/shared/reminder.js +30 -38
  144. package/dist/shared/reminder.js.map +1 -1
  145. package/dist/shared/repl-script.js +114 -26
  146. package/dist/shared/repl-script.js.map +1 -1
  147. package/dist/shared/role-render.js +209 -210
  148. package/dist/shared/role-render.js.map +1 -1
  149. package/dist/shared/role-view.js +61 -299
  150. package/dist/shared/role-view.js.map +1 -1
  151. package/dist/shared/room-label.js +13 -0
  152. package/dist/shared/room-label.js.map +1 -0
  153. package/dist/shared/room-migrate.js +404 -0
  154. package/dist/shared/room-migrate.js.map +1 -0
  155. package/dist/shared/room-overdue.js +81 -0
  156. package/dist/shared/room-overdue.js.map +1 -0
  157. package/dist/shared/room-search.js +102 -0
  158. package/dist/shared/room-search.js.map +1 -0
  159. package/dist/shared/room-view.js +261 -0
  160. package/dist/shared/room-view.js.map +1 -0
  161. package/dist/shared/room.js +610 -0
  162. package/dist/shared/room.js.map +1 -0
  163. package/dist/shared/session-hooks.js +58 -0
  164. package/dist/shared/session-hooks.js.map +1 -0
  165. package/dist/shared/session-label.js +80 -60
  166. package/dist/shared/session-label.js.map +1 -1
  167. package/dist/shared/session-mcp.js +77 -0
  168. package/dist/shared/session-mcp.js.map +1 -0
  169. package/dist/shared/session-skills.js +63 -0
  170. package/dist/shared/session-skills.js.map +1 -0
  171. package/dist/shared/skill-sync.js +229 -0
  172. package/dist/shared/skill-sync.js.map +1 -0
  173. package/dist/shared/smarts.js +39 -0
  174. package/dist/shared/smarts.js.map +1 -0
  175. package/dist/shared/stream-page.js +22 -0
  176. package/dist/shared/stream-page.js.map +1 -0
  177. package/dist/shared/task-file.js +0 -5
  178. package/dist/shared/task-file.js.map +1 -1
  179. package/dist/shared/task-template.js +1 -1
  180. package/dist/shared/task-template.js.map +1 -1
  181. package/dist/shared/tool-hints.js +76 -17
  182. package/dist/shared/tool-hints.js.map +1 -1
  183. package/dist/shared/workspace-trust.js +8 -0
  184. package/dist/shared/workspace-trust.js.map +1 -1
  185. package/dist/shared/world.js +101 -166
  186. package/dist/shared/world.js.map +1 -1
  187. package/dist/svr/facts-store.js +26 -0
  188. package/dist/svr/facts-store.js.map +1 -0
  189. package/dist/svr/index.js +62 -6
  190. package/dist/svr/index.js.map +1 -1
  191. package/hooks/pre-tool-use.sh +18 -0
  192. package/hooks/stop.sh +26 -0
  193. package/package.json +7 -3
  194. package/scripts/install.sh +11 -0
  195. package/skills/LICENSE.wecom-unified.txt +21 -0
  196. package/skills/wecom-unified/SKILL.md +151 -0
  197. package/skills/wecom-unified/assets/templates/broadside/DESIGN.preset.md +172 -0
  198. package/skills/wecom-unified/assets/templates/broadside/shell/content.jsx +31 -0
  199. package/skills/wecom-unified/assets/templates/broadside/slides/01_cover.slide +48 -0
  200. package/skills/wecom-unified/assets/templates/broadside/slides/02_section.slide +58 -0
  201. package/skills/wecom-unified/assets/templates/broadside/slides/03_cards.slide +53 -0
  202. package/skills/wecom-unified/assets/templates/broadside/slides/04_image.slide +64 -0
  203. package/skills/wecom-unified/assets/templates/cartesian/DESIGN.preset.md +139 -0
  204. package/skills/wecom-unified/assets/templates/cartesian/shell/content.jsx +28 -0
  205. package/skills/wecom-unified/assets/templates/cartesian/slides/01_cover.slide +44 -0
  206. package/skills/wecom-unified/assets/templates/cartesian/slides/02_compare.slide +79 -0
  207. package/skills/wecom-unified/assets/templates/cartesian/slides/03_table.slide +79 -0
  208. package/skills/wecom-unified/assets/templates/cobalt-grid/DESIGN.preset.md +118 -0
  209. package/skills/wecom-unified/assets/templates/cobalt-grid/shell/content.jsx +24 -0
  210. package/skills/wecom-unified/assets/templates/cobalt-grid/slides/01_cover.slide +61 -0
  211. package/skills/wecom-unified/assets/templates/cobalt-grid/slides/02_structure.slide +85 -0
  212. package/skills/wecom-unified/assets/templates/cobalt-grid/slides/03_data.slide +60 -0
  213. package/skills/wecom-unified/assets/templates/editorial-forest/DESIGN.preset.md +135 -0
  214. package/skills/wecom-unified/assets/templates/editorial-forest/shell/content.jsx +19 -0
  215. package/skills/wecom-unified/assets/templates/editorial-forest/slides/01_cover.slide +29 -0
  216. package/skills/wecom-unified/assets/templates/editorial-forest/slides/02_cards.slide +60 -0
  217. package/skills/wecom-unified/assets/templates/editorial-forest/slides/03_data.slide +49 -0
  218. package/skills/wecom-unified/assets/templates/editorial-forest/slides/04_image.slide +46 -0
  219. package/skills/wecom-unified/assets/templates/emerald-editorial/DESIGN.preset.md +119 -0
  220. package/skills/wecom-unified/assets/templates/emerald-editorial/shell/content.jsx +18 -0
  221. package/skills/wecom-unified/assets/templates/emerald-editorial/slides/01_cover.slide +36 -0
  222. package/skills/wecom-unified/assets/templates/emerald-editorial/slides/02_section.slide +39 -0
  223. package/skills/wecom-unified/assets/templates/emerald-editorial/slides/03_data.slide +79 -0
  224. package/skills/wecom-unified/assets/templates/emerald-editorial/slides/04_steps.slide +53 -0
  225. package/skills/wecom-unified/assets/templates/grove/DESIGN.preset.md +159 -0
  226. package/skills/wecom-unified/assets/templates/grove/shell/content.jsx +18 -0
  227. package/skills/wecom-unified/assets/templates/grove/shell/content_light.jsx +18 -0
  228. package/skills/wecom-unified/assets/templates/grove/slides/01_cover.slide +26 -0
  229. package/skills/wecom-unified/assets/templates/grove/slides/02_compare.slide +92 -0
  230. package/skills/wecom-unified/assets/templates/grove/slides/03_table.slide +68 -0
  231. package/skills/wecom-unified/assets/templates/index.json +280 -0
  232. package/skills/wecom-unified/assets/templates/long-table/DESIGN.preset.md +135 -0
  233. package/skills/wecom-unified/assets/templates/long-table/shell/content.jsx +36 -0
  234. package/skills/wecom-unified/assets/templates/long-table/slides/01_cover.slide +71 -0
  235. package/skills/wecom-unified/assets/templates/long-table/slides/02_cards.slide +72 -0
  236. package/skills/wecom-unified/assets/templates/long-table/slides/03_timeline.slide +81 -0
  237. package/skills/wecom-unified/assets/templates/long-table/slides/04_image.slide +60 -0
  238. package/skills/wecom-unified/assets/templates/sakura-chroma/DESIGN.preset.md +121 -0
  239. package/skills/wecom-unified/assets/templates/sakura-chroma/shell/content.jsx +13 -0
  240. package/skills/wecom-unified/assets/templates/sakura-chroma/slides/01_cover.slide +54 -0
  241. package/skills/wecom-unified/assets/templates/sakura-chroma/slides/02_products.slide +134 -0
  242. package/skills/wecom-unified/assets/templates/sakura-chroma/slides/03_section.slide +30 -0
  243. package/skills/wecom-unified/assets/templates/sakura-chroma/slides/04_schedule.slide +65 -0
  244. package/skills/wecom-unified/assets/templates/signal/DESIGN.preset.md +121 -0
  245. package/skills/wecom-unified/assets/templates/signal/shell/content.jsx +18 -0
  246. package/skills/wecom-unified/assets/templates/signal/shell/content_dark.jsx +23 -0
  247. package/skills/wecom-unified/assets/templates/signal/slides/01_cover.slide +48 -0
  248. package/skills/wecom-unified/assets/templates/signal/slides/02_cards.slide +67 -0
  249. package/skills/wecom-unified/assets/templates/signal/slides/03_data.slide +68 -0
  250. package/skills/wecom-unified/references/wecomcli-calendar-agenda.md +227 -0
  251. package/skills/wecom-unified/references/wecomcli-calendar-cancel.md +108 -0
  252. package/skills/wecom-unified/references/wecomcli-calendar-create.md +238 -0
  253. package/skills/wecom-unified/references/wecomcli-calendar-freebusy.md +207 -0
  254. package/skills/wecom-unified/references/wecomcli-calendar-meeting-room.md +170 -0
  255. package/skills/wecom-unified/references/wecomcli-calendar-search.md +209 -0
  256. package/skills/wecom-unified/references/wecomcli-calendar-update.md +272 -0
  257. package/skills/wecom-unified/references/wecomcli-calendar.md +296 -0
  258. package/skills/wecom-unified/references/wecomcli-contact.md +48 -0
  259. package/skills/wecom-unified/references/wecomcli-disk.md +380 -0
  260. package/skills/wecom-unified/references/wecomcli-doc-contents-append.md +20 -0
  261. package/skills/wecom-unified/references/wecomcli-doc-contents-overwrite.md +27 -0
  262. package/skills/wecom-unified/references/wecomcli-doc-create.md +162 -0
  263. package/skills/wecom-unified/references/wecomcli-doc-manage-doc-members-update.md +24 -0
  264. package/skills/wecom-unified/references/wecomcli-doc-manage-doc-names-update.md +20 -0
  265. package/skills/wecom-unified/references/wecomcli-doc-manage-doc-rules-update.md +22 -0
  266. package/skills/wecom-unified/references/wecomcli-doc-manage.md +127 -0
  267. package/skills/wecom-unified/references/wecomcli-doc.md +135 -0
  268. package/skills/wecom-unified/references/wecomcli-email-forward-mail.md +131 -0
  269. package/skills/wecom-unified/references/wecomcli-email-get-mail.md +187 -0
  270. package/skills/wecom-unified/references/wecomcli-email-reply-mail.md +138 -0
  271. package/skills/wecom-unified/references/wecomcli-email-search-mail.md +114 -0
  272. package/skills/wecom-unified/references/wecomcli-email-security.md +52 -0
  273. package/skills/wecom-unified/references/wecomcli-email-send-mail.md +186 -0
  274. package/skills/wecom-unified/references/wecomcli-email-send-schedule.md +83 -0
  275. package/skills/wecom-unified/references/wecomcli-email.md +206 -0
  276. package/skills/wecom-unified/references/wecomcli-media.md +89 -0
  277. package/skills/wecom-unified/references/wecomcli-meeting-cancel.md +113 -0
  278. package/skills/wecom-unified/references/wecomcli-meeting-create.md +167 -0
  279. package/skills/wecom-unified/references/wecomcli-meeting-list.md +228 -0
  280. package/skills/wecom-unified/references/wecomcli-meeting-original-get.md +101 -0
  281. package/skills/wecom-unified/references/wecomcli-meeting-search.md +176 -0
  282. package/skills/wecom-unified/references/wecomcli-meeting-update.md +217 -0
  283. package/skills/wecom-unified/references/wecomcli-meeting.md +366 -0
  284. package/skills/wecom-unified/references/wecomcli-message.md +190 -0
  285. package/skills/wecom-unified/references/wecomcli-pptx-component-animation.md +62 -0
  286. package/skills/wecom-unified/references/wecomcli-pptx-component-box.md +102 -0
  287. package/skills/wecom-unified/references/wecomcli-pptx-component-chart.md +261 -0
  288. package/skills/wecom-unified/references/wecomcli-pptx-component-codeblock.md +70 -0
  289. package/skills/wecom-unified/references/wecomcli-pptx-component-diagram.md +54 -0
  290. package/skills/wecom-unified/references/wecomcli-pptx-component-faicon.md +71 -0
  291. package/skills/wecom-unified/references/wecomcli-pptx-component-hyperlink.md +55 -0
  292. package/skills/wecom-unified/references/wecomcli-pptx-component-image.md +107 -0
  293. package/skills/wecom-unified/references/wecomcli-pptx-component-math.md +65 -0
  294. package/skills/wecom-unified/references/wecomcli-pptx-component-qrcode.md +22 -0
  295. package/skills/wecom-unified/references/wecomcli-pptx-component-slide.md +74 -0
  296. package/skills/wecom-unified/references/wecomcli-pptx-component-svg.md +95 -0
  297. package/skills/wecom-unified/references/wecomcli-pptx-component-table.md +72 -0
  298. package/skills/wecom-unified/references/wecomcli-pptx-component-text.md +96 -0
  299. package/skills/wecom-unified/references/wecomcli-pptx-content-contract.md +73 -0
  300. package/skills/wecom-unified/references/wecomcli-pptx-create-from-material.md +67 -0
  301. package/skills/wecom-unified/references/wecomcli-pptx-create-from-scratch.md +178 -0
  302. package/skills/wecom-unified/references/wecomcli-pptx-create-from-template.md +123 -0
  303. package/skills/wecom-unified/references/wecomcli-pptx-design-principle.md +65 -0
  304. package/skills/wecom-unified/references/wecomcli-pptx-government-contract.md +40 -0
  305. package/skills/wecom-unified/references/wecomcli-pptx-human-alignment.md +140 -0
  306. package/skills/wecom-unified/references/wecomcli-pptx-pptx-api.md +161 -0
  307. package/skills/wecom-unified/references/wecomcli-pptx-pptx-edit.md +37 -0
  308. package/skills/wecom-unified/references/wecomcli-pptx-story-principle.md +184 -0
  309. package/skills/wecom-unified/references/wecomcli-pptx-templates-README.md +165 -0
  310. package/skills/wecom-unified/references/wecomcli-pptx-templates-anti-ai-slop.md +52 -0
  311. package/skills/wecom-unified/references/wecomcli-pptx.md +158 -0
  312. package/skills/wecom-unified/references/wecomcli-sheet-conditional-formatting.md +203 -0
  313. package/skills/wecom-unified/references/wecomcli-sheet-filter.md +179 -0
  314. package/skills/wecom-unified/references/wecomcli-sheet-float-image.md +235 -0
  315. package/skills/wecom-unified/references/wecomcli-sheet-formulas.md +71 -0
  316. package/skills/wecom-unified/references/wecomcli-sheet-history.md +118 -0
  317. package/skills/wecom-unified/references/wecomcli-sheet-protection.md +170 -0
  318. package/skills/wecom-unified/references/wecomcli-sheet-range-operations.md +306 -0
  319. package/skills/wecom-unified/references/wecomcli-sheet-read-data.md +151 -0
  320. package/skills/wecom-unified/references/wecomcli-sheet-search-replace.md +121 -0
  321. package/skills/wecom-unified/references/wecomcli-sheet-structure-operations.md +394 -0
  322. package/skills/wecom-unified/references/wecomcli-sheet-style.md +246 -0
  323. package/skills/wecom-unified/references/wecomcli-sheet-table-style.md +199 -0
  324. package/skills/wecom-unified/references/wecomcli-sheet-validation.md +217 -0
  325. package/skills/wecom-unified/references/wecomcli-sheet-visual-standards.md +166 -0
  326. package/skills/wecom-unified/references/wecomcli-sheet-workbook.md +264 -0
  327. package/skills/wecom-unified/references/wecomcli-sheet-write-cells.md +320 -0
  328. package/skills/wecom-unified/references/wecomcli-sheet-xlsx-process.md +324 -0
  329. package/skills/wecom-unified/references/wecomcli-sheet.md +96 -0
  330. package/skills/wecom-unified/references/wecomcli-smartpage-data-driven-pages.md +50 -0
  331. package/skills/wecom-unified/references/wecomcli-smartpage-edit.md +526 -0
  332. package/skills/wecom-unified/references/wecomcli-smartpage-formula-arraylist.md +369 -0
  333. package/skills/wecom-unified/references/wecomcli-smartpage-formula-datetime.md +283 -0
  334. package/skills/wecom-unified/references/wecomcli-smartpage-formula-logic.md +247 -0
  335. package/skills/wecom-unified/references/wecomcli-smartpage-formula-math.md +362 -0
  336. package/skills/wecom-unified/references/wecomcli-smartpage-formula-operators.md +246 -0
  337. package/skills/wecom-unified/references/wecomcli-smartpage-formula-pageblock.md +76 -0
  338. package/skills/wecom-unified/references/wecomcli-smartpage-formula-reference.md +192 -0
  339. package/skills/wecom-unified/references/wecomcli-smartpage-formula-templates.md +410 -0
  340. package/skills/wecom-unified/references/wecomcli-smartpage-formula-text.md +377 -0
  341. package/skills/wecom-unified/references/wecomcli-smartpage-formula-user.md +22 -0
  342. package/skills/wecom-unified/references/wecomcli-smartpage-mdx-syntax.md +739 -0
  343. package/skills/wecom-unified/references/wecomcli-smartpage.md +179 -0
  344. package/skills/wecom-unified/references/wecomcli-smartsheet-chart-types.md +95 -0
  345. package/skills/wecom-unified/references/wecomcli-smartsheet-common.md +160 -0
  346. package/skills/wecom-unified/references/wecomcli-smartsheet-edit.md +609 -0
  347. package/skills/wecom-unified/references/wecomcli-smartsheet-field-types.md +438 -0
  348. package/skills/wecom-unified/references/wecomcli-smartsheet-formula.md +845 -0
  349. package/skills/wecom-unified/references/wecomcli-smartsheet-read.md +411 -0
  350. package/skills/wecom-unified/references/wecomcli-smartsheet-record-values.md +218 -0
  351. package/skills/wecom-unified/references/wecomcli-smartsheet-template-ai_efficiency.md +709 -0
  352. package/skills/wecom-unified/references/wecomcli-smartsheet-template-connect_to_app.md +380 -0
  353. package/skills/wecom-unified/references/wecomcli-smartsheet-template-financial_accounting.md +369 -0
  354. package/skills/wecom-unified/references/wecomcli-smartsheet-template-hr_and_administration.md +475 -0
  355. package/skills/wecom-unified/references/wecomcli-smartsheet-template-ledger_records.md +156 -0
  356. package/skills/wecom-unified/references/wecomcli-smartsheet-template-manufacturing.md +395 -0
  357. package/skills/wecom-unified/references/wecomcli-smartsheet-template-marketing.md +186 -0
  358. package/skills/wecom-unified/references/wecomcli-smartsheet-template-office_essentials.md +299 -0
  359. package/skills/wecom-unified/references/wecomcli-smartsheet-template-personal_efficiency.md +70 -0
  360. package/skills/wecom-unified/references/wecomcli-smartsheet-template-procurement_logistics.md +325 -0
  361. package/skills/wecom-unified/references/wecomcli-smartsheet-template-project_management.md +564 -0
  362. package/skills/wecom-unified/references/wecomcli-smartsheet-template-rd_process_customer.md +222 -0
  363. package/skills/wecom-unified/references/wecomcli-smartsheet-template-rd_process_ops.md +105 -0
  364. package/skills/wecom-unified/references/wecomcli-smartsheet-template-rd_process_project.md +109 -0
  365. package/skills/wecom-unified/references/wecomcli-smartsheet-template-rd_process_research.md +92 -0
  366. package/skills/wecom-unified/references/wecomcli-smartsheet-template-sales_and_operations.md +446 -0
  367. package/skills/wecom-unified/references/wecomcli-smartsheet-template-store_management.md +431 -0
  368. package/skills/wecom-unified/references/wecomcli-smartsheet-template-team_tasks.md +274 -0
  369. package/skills/wecom-unified/references/wecomcli-smartsheet-template-wechat_customer.md +384 -0
  370. package/skills/wecom-unified/references/wecomcli-smartsheet-template-work_report.md +100 -0
  371. package/skills/wecom-unified/references/wecomcli-smartsheet-templates.md +53 -0
  372. package/skills/wecom-unified/references/wecomcli-smartsheet-view-types.md +373 -0
  373. package/skills/wecom-unified/references/wecomcli-smartsheet-webhook-examples.md +176 -0
  374. package/skills/wecom-unified/references/wecomcli-smartsheet-webhook.md +186 -0
  375. package/skills/wecom-unified/references/wecomcli-smartsheet.md +147 -0
  376. package/skills/wecom-unified/references/wecomcli-todo-create.md +137 -0
  377. package/skills/wecom-unified/references/wecomcli-todo-delete.md +63 -0
  378. package/skills/wecom-unified/references/wecomcli-todo-finish.md +72 -0
  379. package/skills/wecom-unified/references/wecomcli-todo-get.md +69 -0
  380. package/skills/wecom-unified/references/wecomcli-todo-list.md +136 -0
  381. package/skills/wecom-unified/references/wecomcli-todo-update.md +112 -0
  382. package/skills/wecom-unified/references/wecomcli-todo.md +68 -0
  383. package/skills/wecom-unified/scripts/build_docx.py +1274 -0
  384. package/skills/wecom-unified/scripts/build_page.py +2449 -0
  385. package/skills/wecom-unified/scripts/collect.py +868 -0
  386. package/skills/wecom-unified/scripts/doc_image_extractor.py +498 -0
  387. package/skills/wecom-unified/scripts/pptx2image.py +268 -0
  388. package/skills/wecom-unified/scripts/recalc.py +403 -0
  389. package/systemd/wezard.service.template +6 -0
  390. package/web/chat.css +70 -273
  391. package/web/chat.js +2228 -2190
  392. package/dist/daemon/chat-log.js +0 -130
  393. package/dist/daemon/chat-log.js.map +0 -1
  394. package/dist/daemon/dispatch.js +0 -6
  395. package/dist/daemon/dispatch.js.map +0 -1
  396. package/dist/daemon/idle-nudge.js +0 -69
  397. package/dist/daemon/idle-nudge.js.map +0 -1
  398. package/dist/daemon/message-events.js +0 -1083
  399. package/dist/daemon/message-events.js.map +0 -1
  400. package/dist/daemon/pending-items.js +0 -160
  401. package/dist/daemon/pending-items.js.map +0 -1
  402. package/dist/daemon/router.js +0 -742
  403. package/dist/daemon/router.js.map +0 -1
  404. package/dist/daemon/tips.js +0 -25
  405. package/dist/daemon/tips.js.map +0 -1
  406. package/dist/daemon/wedoc.js +0 -210
  407. package/dist/daemon/wedoc.js.map +0 -1
  408. package/dist/shared/role-search.js +0 -100
  409. package/dist/shared/role-search.js.map +0 -1
  410. package/dist/shared/startup-notice.js +0 -21
  411. package/dist/shared/startup-notice.js.map +0 -1
  412. package/dist/shared/turn-state.js +0 -27
  413. package/dist/shared/turn-state.js.map +0 -1
  414. package/hooks/hooks.json +0 -16
@@ -0,0 +1,172 @@
1
+ ---
2
+ name: 政务工作
3
+ ---
4
+
5
+ ## 1. 气质一句话
6
+ 海报式的巨型陈述标题撑满版面:封面朱红满版上两行金渐变大字,内页白底黑色粗体结论句,红只做卡头、胶囊和标记,金只做点睛。
7
+
8
+ ## 2. 色彩池
9
+
10
+ > **本节是默认配色,不是限制。** 模板只定版式:外壳、分区、字号层级、图位、标志性处理。颜色可以整体替换——按下表的「角色」一一对应给出新色值,用 `build_page.py init --map` 换色,再过 `contrast`。换色时保持角色数量不变(不多加一种彩色),本预设 §6 / §7 里关于「只用某种颜色」「禁止某色相」的话只约束默认配色。
11
+ | 角色 | hex | 面积上限 |
12
+ |---|---|---|
13
+ | 朱红(封面满版底) | `#E63F26` | 封面 ≥50%,内页不用作底 |
14
+ | 深朱红(红卡头、PART 胶囊、标题短竖条、目录顶线、封面底带与胶囊底) | `#C42819` | 内页 8–20% |
15
+ | 高光红 / 粉红橙(仅底部三段装饰条后两段) | `#EE5530` / `#F26B40` | 仅装饰条 |
16
+ | 金(飘带、短条、方点、胶囊、粒子、细线) | `#E19825` / `#FFC000` | 内页 ≤5%,封面 15–30% |
17
+ | 浅金(封面小字、红卡头上的编号) | `#FFE79B` | 文字 |
18
+ | 深金(飘带尾翼) / 飘带字 | `#B8791A` / `#A81810` | 仅飘带 |
19
+ | 金胶囊上的字(章节页) | `#7A1710` | 文字 |
20
+ | 白(内页底、卡片底、红底上的字) | `#FFFFFF` | 内页 ≥60% |
21
+ | 正文黑 / 次级灰 / 弱灰 / 线灰 | `#1A1616` / `#4B5563` / `#6B7280` / `#E5E7EB` | 文字与 1px 线 |
22
+
23
+ ## 3. 字体系统(1280×720)
24
+ | 角色 | fontFamily | 字号 | 字重 | 行高 / 字距 |
25
+ |---|---|---|---|---|
26
+ | 封面巨型陈述标题(金渐变) | Microsoft YaHei | 132 | 900 | 1 / 0,单行 Box 高 160 |
27
+ | 内页主标(结论句) | Microsoft YaHei | 内容页 42 / 目录页 48 | 900 | 1.2,单行不换行 |
28
+ | 目录章节名 | Microsoft YaHei | 40 | 900 | 1.2 |
29
+ | 红卡头名称 / 卡内小标 | Microsoft YaHei | 26 / 22 | 900 / bold | 1 / 1.3 |
30
+ | 正文 / 目录说明 | Microsoft YaHei | 18–19 | normal | 1.75 / 1.5 |
31
+ | 飘带副标 / 胶囊字 | Microsoft YaHei | 22 / 18 | bold / normal | 1 / 字距 3 |
32
+ | 中文页眉页脚 | Microsoft YaHei | 14 | normal | 字距 2 |
33
+ | PART 胶囊字 | Arial | 12–16 | bold | 字距 1 |
34
+ | CONTENTS、`/ 0N`、页码、目录页号 | Courier New | 14–22 | 700 | 字距 2–3 |
35
+
36
+ ## 4. 母版三区(页面 padding 40 / 70,封面、目录、内容页相同)
37
+ - A 页眉区:y 40–152,高 112。上半是 30 高的页眉细线条(y 40–70,左 PART 胶囊 + 章节名,右页名,底部 1px `#E5E7EB`),下半是 60 高的标题行(y 92–152,红短竖条 12×44 + 42px 结论句)。标题只用 42px / 900 一种字号,单行不换行,最多 24 个汉字(含标点)。
38
+ - B 内容区:x 70 / y 176 / 1140×452;页面内容只放在这个 Box 里。三栏红头白卡 364×452,gap 24。图文页为左图 704×396 + 右红头白卡 412×452,gap 24(见「图位」)。
39
+ - C 页脚:绝对定位。y 660–669 红橙三段装饰条 678 / 333 / 269(x 0,通栏 1280);y 678 左「年度党课宣讲」(left 70)、右 Courier New 页码(right 70),字号 14。
40
+ - 目录页:页眉细线条与页脚同上;标题块 y 94–210(CONTENTS + 金短条 + 48px 主标,单行,最多 16 个汉字),目录区 y 230–640(1140×410,4 行,每行 100)。
41
+ - 封面:顶行 y 40–70(左上编号 + 右上栏目名,无底线)+ 两条金细线;底部 y 658 金线 + y 660–720 深朱红底带(与内页装饰条同起于 y 660),页码同在 right 70 / top 678,改浅金 `#FFE79B`;栏目名已在右上,页脚左侧不再重复。
42
+
43
+ ### 固定骨架
44
+
45
+ 内容页外壳:
46
+ 内容页外壳以本套 `shell/content.jsx` 为准(占位 `〔…〕`,B 区标记 `〔B区内容〕`),用 `scripts/build_page.py build` 拼装,不照抄手打。
47
+
48
+ 目录页外壳(页眉细线条与页脚同内容页,标题块与目录区用自己的固定值):
49
+
50
+ ```jsx
51
+ <Slide style={{ width: 1280, height: 720, background: '#FFFFFF', position: 'relative', padding: '40px 70px 0 70px', fontFamily: 'Microsoft YaHei' }}>
52
+ <Box style={{ flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', height: 30, borderBottom: '1px solid #E5E7EB' }}>
53
+ <Text style={{ fontSize: 14, letterSpacing: 2, color: '#6B7280' }}>〔整份标题〕</Text>
54
+ <Text style={{ fontSize: 14, letterSpacing: 2, color: '#6B7280' }}>目录</Text>
55
+ </Box>
56
+
57
+ <Box style={{ marginTop: 24, flexDirection: 'row', justifyContent: 'space-between', alignItems: 'flex-end', height: 116 }}>
58
+ <Box style={{ gap: 10 }}>
59
+ <Text style={{ fontFamily: 'Courier New', fontSize: 15, fontWeight: 700, letterSpacing: 3, color: '#C42819', lineHeight: 1.2 }}>CONTENTS</Text>
60
+ <Box style={{ width: 36, height: 3, background: '#E19825' }} />
61
+ <Box style={{ flexDirection: 'row', alignItems: 'center', gap: 16, height: 72 }}>
62
+ <Box style={{ width: 12, height: 46, background: '#C42819' }} />
63
+ <Text style={{ fontSize: 48, fontWeight: 900, lineHeight: 1.2, color: '#1A1616', whiteSpace: 'nowrap' }}>〔目录标题〕</Text>
64
+ </Box>
65
+ </Box>
66
+ <Box style={{ flexDirection: 'row', alignItems: 'center', gap: 16, marginBottom: 12 }}>
67
+ <Box style={{ flexDirection: 'row', gap: 8 }}>
68
+ <Box style={{ width: 10, height: 10, background: '#E19825' }} /><Box style={{ width: 10, height: 10, background: '#E19825', opacity: 0.6 }} /><Box style={{ width: 10, height: 10, background: '#E19825', opacity: 0.3 }} />
69
+ </Box>
70
+ <Box style={{ height: 34, padding: '0 20px', borderRadius: 17, background: '#E19825', alignItems: 'center', justifyContent: 'center' }}>
71
+ <Text style={{ fontSize: 16, fontWeight: 'bold', color: '#7A1710', lineHeight: 1 }}>〔栏目名 · 共几讲〕</Text>
72
+ </Box>
73
+ </Box>
74
+ </Box>
75
+
76
+ <Box style={{ marginTop: 20, width: 1140, height: 410 }}>
77
+ </Box>
78
+
79
+ <Box style={{ position: 'absolute', left: 0, top: 660, width: 1280, height: 9, flexDirection: 'row' }}>
80
+ <Box style={{ width: 678, height: 9, background: '#C42819' }} />
81
+ <Box style={{ width: 333, height: 9, background: '#EE5530' }} />
82
+ <Box style={{ width: 269, height: 9, background: '#F26B40' }} />
83
+ </Box>
84
+ <Text style={{ position: 'absolute', left: 70, top: 678, fontSize: 14, letterSpacing: 2, color: '#6B7280', lineHeight: 1 }}>〔单位或栏目名〕</Text>
85
+ <Text style={{ position: 'absolute', right: 70, top: 678, fontFamily: 'Courier New', fontSize: 14, color: '#6B7280', lineHeight: 1 }}>〔NN / 总页〕</Text>
86
+ </Slide>
87
+ ```
88
+
89
+ 封面外壳(光晕、粒子等装饰照 `slides/01_cover.slide` 写在顶行之前;这里只列与内页对齐的固定件):
90
+
91
+ ```jsx
92
+ <Slide style={{ width: 1280, height: 720, background: '#E63F26', position: 'relative', padding: '40px 70px 0 70px', fontFamily: 'Microsoft YaHei' }}>
93
+ <Box style={{ position: 'absolute', right: 70, top: 78, width: 220, height: 2, background: '#E19825' }} />
94
+ <Box style={{ position: 'absolute', right: 70, top: 90, width: 120, height: 2, background: '#FFE79B', opacity: 0.8 }} />
95
+ <Box style={{ position: 'absolute', left: 0, top: 660, width: 1280, height: 60, background: '#C42819' }} />
96
+ <Box style={{ position: 'absolute', left: 0, top: 658, width: 1280, height: 2, background: '#E19825' }} />
97
+ <Text style={{ position: 'absolute', right: 70, top: 678, fontFamily: 'Courier New', fontSize: 14, color: '#FFE79B', lineHeight: 1 }}>〔01 / 总页〕</Text>
98
+
99
+ <Box style={{ position: 'relative', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', height: 30 }}>
100
+ <Text style={{ fontFamily: 'Courier New', fontSize: 16, fontWeight: 700, letterSpacing: 2, color: '#FFE79B' }}>01</Text>
101
+ <Text style={{ fontSize: 14, letterSpacing: 2, color: '#FFE79B' }}>〔单位或栏目名〕</Text>
102
+ </Box>
103
+
104
+ <Box style={{ position: 'relative', marginTop: 74, width: 1140, height: 320 }}>
105
+ </Box>
106
+ </Slide>
107
+ ```
108
+
109
+ | 区 | 页型 | x | y | w | h |
110
+ |---|---|---|---|---|---|
111
+ | 页面 padding | 全部 | 左右 70 | 上 40 / 下 0 | — | — |
112
+ | A 页眉区 | 内容页 | 70 | 40 | 1140 | 112 |
113
+ | A 内 · 页眉细线条 | 内容页 / 目录页 | 70 | 40 | 1140 | 30 |
114
+ | A 内 · 标题行 | 内容页 | 70 | 92 | 1140 | 60 |
115
+ | B 内容区 | 内容页 | 70 | 176 | 1140 | 452 |
116
+ | 标题块 | 目录页 | 70 | 94 | 1140 | 116 |
117
+ | 目录区 | 目录页 | 70 | 230 | 1140 | 410 |
118
+ | C 三段装饰条 | 内容页 / 目录页 | 0 | 660 | 1280 | 9 |
119
+ | C 单位名 / 页码 | 内容页 / 目录页 | left 70 / right 70 | 678 | — | 14 |
120
+ | 顶行 | 封面 | 70 | 40 | 1140 | 30 |
121
+ | 标题区(两行各 160) | 封面 | 70 | 144 | 1140 | 320 |
122
+ | 飘带 / 胶囊 | 封面 | 70 / 92 | 494 / 570 | — | 56 / 40 |
123
+ | 金线 + 深朱红底带 | 封面 | 0 | 658 / 660 | 1280 | 2 / 60 |
124
+ | 页码 | 封面 | right 70 | 678 | — | 14 |
125
+
126
+ 纵向算账:
127
+ - 内容页:40(padding-top)+ 112(A)+ 24(gap)+ 452(B)+ 32(gap)+ 32(C:装饰条 9 + 间隔 9 + 文字 14)+ 28(底部留白)= 720。
128
+ - 目录页:40 + 30(页眉细线条)+ 24 + 116(标题块)+ 20 + 410(目录区)+ 20 + 32(C)+ 28 = 720。
129
+ - 封面:40 + 30(顶行)+ 74 + 320(标题区)+ 30 + 56(飘带)+ 20 + 40(胶囊)+ 48 + 62(金线 2 + 底带 60)= 720。
130
+
131
+ 所有内容页必须从此外壳复制,只替换占位文字和 B 区内部;不得改动外壳里的任何数值。B 区放不下就删内容或拆页,不得压缩页眉页脚或改 padding。目录页、封面同理:只替换占位文字和空壳 Box 的内部。
132
+
133
+ **封面标题容量(硬上限)**:132px 金渐变标题,标题区 1140×320:最多 2 行(短标题只写一行,不得为凑两行硬拆;空出的那一行保留原有占位高度,其余元素位置不变),每行一个 Text,每行最多 8 个汉字;放不下就改写标题,不得加第三行或缩小字号到 100px 以下。标题与页脚、底带之间必须留出空隙,任何情况下标题不得压到页脚上。
134
+
135
+ **装饰与文字不重叠(硬约束)**:封面金飘带、胶囊、金粒子与标题的相对位置照 `slides/01_cover.slide`,标题区 1140×320 之外不放文字;底部三段装饰条 y 660~669 之上 20px 内不放文字。装饰性 SVG / Box 的矩形与任何文字容器的矩形不得相交;页型没有范例时,装饰只照本套封面或内容页范例的位置放,不另加。
136
+
137
+ ### 图位(配图规则)
138
+ - 图位(唯一,正方形):x 70 / y 178 / 396×396,左,上方 2px 红线、下方一行图注;右侧 720 宽红头白卡。范例见 `slides/04_image.slide`;封面、章节页及其他内容页不放图。
139
+ - 没有生图工具,不放 AI 配图;图位只放合格的用户材料图(门槛见 README §5)。`<Image>` 只写相等的 width / height,不写 objectFit;图不加描边、相框、包边线、圆角、阴影;图注一行放图下方。原因与材料图写法见 README §5。
140
+ - 有合格材料图时图文页最多 2~4 张、不连续;没有就不用图文页,改用本套其他版式,不留空图位。
141
+
142
+ ## 5. 版式清单
143
+ | 文件 | 类型 | 骨架 |
144
+ |---|---|---|
145
+ | `slides/01_cover.slide` | cover | 朱红满版 + 左侧正方形径向光晕;132px 两行金渐变巨型标题撑满 1140 宽;金色水平飘带副标(主带 + 深金尾翼);两枚金边红胶囊(宣讲单位 / 时间);右下空白区金色粒子,右上两条金细线;底部 y 658 金线 + y 660–720 深朱红带,带内右侧浅金页码 |
146
+ | `slides/02_section.slide` | section(目录) | 白底;页眉线;CONTENTS 红 kicker + 36×3 金短条 + 红竖条 + 48px 主标,右侧金方点 + 金胶囊;2px 深朱红顶线下 4 行「PART 0N 红胶囊 | 40px 章节名 | 金短条 + 一句说明 | 红色页号」,行间 1px 灰线;三段装饰条 + 页码 |
147
+ | `slides/03_cards.slide` | cards(三栏要点) | 白底;固定骨架 A(页眉线 PART 胶囊 + 红竖条 + 42px 结论句);B 区内3 张红头白卡:56px 红卡头「/ 0N + 名称」→ 22px 红色小标 → 18px 正文 ≥100 字 → 1px 线 + 金短竖条要点钉底;三段装饰条 + 页码 |
148
+ | `slides/04_image.slide` | image(图文内容页) | 白底;固定骨架 A;B 区左图右文:左栏 2px 深朱红顶线 + 704×396 的 16:9 纪实照片 + 金短条引出的 14px 图注;右栏 412×452 红头白卡:56px 红卡头「/ 0N + 名称」→ 22px 红色小标 → 18px 正文 → 1px 线 + 3 条金短竖条要点;三段装饰条 + 页码 |
149
+
150
+ ## 6. 标志性处理
151
+ 1. 巨型陈述标题:封面 132px 两行撑满版面,内页主标一律写成结论句、900 字重、左带红短竖条。
152
+ 2. 封面四件:金渐变大字(`backgroundClip: 'text'` + `textShadow`)、径向光晕 Box、金色水平飘带、金边红胶囊;另加金色粒子与两条金细线。
153
+ 3. PART 编号只用深朱红胶囊一种载体(Arial bold 反白);卡片编号沿用模板的「/ 0N」斜杠标记,放在红卡头内用浅金。
154
+ 4. 内页底部固定红橙三段装饰条(约 53 / 26 / 21,不等宽)加右下页码。
155
+ 5. 红头白卡:56px 深朱红卡头 + 白底正文 + 卡尾金色短竖条要点;目录行内用 28×4 金短条引出说明。
156
+ 6. 层级仍靠 1px 细线与字重字号,一页只有一个 display 时刻。
157
+
158
+ ## 7. Do / Don't
159
+ Do
160
+ - 封面标题每行 ≤8 字,每行单独一个 Text,外包 Box 高度取字号 ×1.2。
161
+ - 径向光晕 Box 用正方形,保证渐变在盒内衰减到透明,不露方形边。
162
+ - 装饰 SVG(粒子)只放在无文字无卡片的空白区,绝对定位元素写在内容之前。
163
+ - 目录用 CONTENTS + PART 0N,章节名中文;页眉页脚位置页间不漂移。
164
+ - 正文用 `#1A1616`,次级说明 `#4B5563`,小字 ≥14px。
165
+ - 配图只用 `<Image>` 放进 §4「图位」表里的固定图位,上压 2px 深朱红顶线,图注放在图下方。
166
+ Don't
167
+ - 不在内页铺红底或通栏红块,红只进卡头、胶囊、竖条、顶线和装饰条。
168
+ - 不把金用于正文文字或大面积色块;金渐变大字只在封面与章节页出现。
169
+ - 不旋转任何元素,不放印章、红绸、整屏暗蒙版。
170
+ - 不在封面、目录、章节页放图;不在图上叠文字、色块或渐变;不给图加圆角、阴影;不用卡通、插画、3D 配图。
171
+ - 除 PART / CONTENTS / KPI 与数字单位外页面不出现英文;不写口号、人名、机构名。
172
+ - 不用清单外字体,含中文的 Text 必须写 Microsoft YaHei。
@@ -0,0 +1,31 @@
1
+ <Slide style={{ width: 1280, height: 720, background: '#FFFFFF', position: 'relative', padding: '40px 70px 0 70px', fontFamily: 'Microsoft YaHei' }}>
2
+ <Box style={{ width: 1140, height: 112 }}>
3
+ <Box style={{ flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', height: 30, borderBottom: '1px solid #E5E7EB' }}>
4
+ <Box style={{ flexDirection: 'row', alignItems: 'center', gap: 12 }}>
5
+ <Box style={{ height: 22, padding: '0 12px', borderRadius: 11, background: '#C42819', alignItems: 'center', justifyContent: 'center' }}>
6
+ <Text style={{ fontFamily: 'Arial', fontSize: 12, fontWeight: 'bold', color: '#FFFFFF', letterSpacing: 1, lineHeight: 1 }}>PART 〔0N〕</Text>
7
+ </Box>
8
+ <Text style={{ fontSize: 14, letterSpacing: 2, color: '#6B7280' }}>〔章节标签〕</Text>
9
+ </Box>
10
+ <Text style={{ fontSize: 14, letterSpacing: 2, color: '#6B7280' }}>〔页名〕</Text>
11
+ </Box>
12
+
13
+ <Box style={{ marginTop: 22, flexDirection: 'row', alignItems: 'center', gap: 16, height: 60 }}>
14
+ <Box style={{ width: 12, height: 44, background: '#C42819' }} />
15
+ <Text style={{ fontSize: 42, fontWeight: 900, lineHeight: 1.2, color: '#1A1616', whiteSpace: 'nowrap' }}>〔标题〕</Text>
16
+ </Box>
17
+ </Box>
18
+
19
+ <Box style={{ marginTop: 24, width: 1140, height: 452 }}>
20
+
21
+ 〔B区内容〕
22
+ </Box>
23
+
24
+ <Box style={{ position: 'absolute', left: 0, top: 660, width: 1280, height: 9, flexDirection: 'row' }}>
25
+ <Box style={{ width: 678, height: 9, background: '#C42819' }} />
26
+ <Box style={{ width: 333, height: 9, background: '#EE5530' }} />
27
+ <Box style={{ width: 269, height: 9, background: '#F26B40' }} />
28
+ </Box>
29
+ <Text style={{ position: 'absolute', left: 70, top: 678, fontSize: 14, letterSpacing: 2, color: '#6B7280', lineHeight: 1 }}>〔单位或栏目名〕</Text>
30
+ <Text style={{ position: 'absolute', right: 70, top: 678, fontFamily: 'Courier New', fontSize: 14, color: '#6B7280', lineHeight: 1 }}>〔NN / 总页〕</Text>
31
+ </Slide>
@@ -0,0 +1,48 @@
1
+ <Slide style={{ width: 1280, height: 720, background: '#E63F26', position: 'relative', padding: '40px 70px 0 70px', fontFamily: 'Microsoft YaHei' }}>
2
+ <Box style={{ position: 'absolute', left: -20, top: -60, width: 840, height: 840, background: 'radial-gradient(circle, rgba(255,231,155,0.5) 0%, rgba(255,192,0,0.2) 38%, rgba(230,63,38,0) 70%)' }} />
3
+ <svg width={360} height={330} viewBox='0 0 360 330' style={{ position: 'absolute', left: 870, top: 310 }}>
4
+ <rect x='0' y='0' width='360' height='330' fill='#E63F26' />
5
+ <g fill='#FFC000'>
6
+ <circle cx='40' cy='60' r='4' opacity='0.9' /><circle cx='96' cy='24' r='2.5' opacity='0.7' /><circle cx='150' cy='110' r='3' opacity='0.6' />
7
+ <circle cx='230' cy='48' r='5' opacity='0.85' /><circle cx='310' cy='120' r='2.5' opacity='0.6' /><circle cx='280' cy='230' r='4' opacity='0.8' />
8
+ <circle cx='120' cy='250' r='3' opacity='0.7' /><circle cx='200' cy='180' r='2' opacity='0.5' /><circle cx='330' cy='300' r='2.5' opacity='0.55' />
9
+ <circle cx='60' cy='170' r='2' opacity='0.5' /><circle cx='250' cy='290' r='3' opacity='0.65' />
10
+ </g>
11
+ </svg>
12
+ <Box style={{ position: 'absolute', right: 70, top: 78, width: 220, height: 2, background: '#E19825' }} />
13
+ <Box style={{ position: 'absolute', right: 70, top: 90, width: 120, height: 2, background: '#FFE79B', opacity: 0.8 }} />
14
+ <Box style={{ position: 'absolute', left: 0, top: 660, width: 1280, height: 60, background: '#C42819' }} />
15
+ <Box style={{ position: 'absolute', left: 0, top: 658, width: 1280, height: 2, background: '#E19825' }} />
16
+ <Text style={{ position: 'absolute', right: 70, top: 678, fontFamily: 'Courier New', fontSize: 14, color: '#FFE79B', lineHeight: 1 }}>01 / 12</Text>
17
+
18
+ <Box style={{ position: 'relative', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', height: 30 }}>
19
+ <Text style={{ fontFamily: 'Courier New', fontSize: 16, fontWeight: 700, letterSpacing: 2, color: '#FFE79B' }}>01</Text>
20
+ <Text style={{ fontSize: 14, letterSpacing: 2, color: '#FFE79B' }}>年度党课宣讲</Text>
21
+ </Box>
22
+
23
+ <Box style={{ position: 'relative', marginTop: 74, width: 1140, height: 320 }}>
24
+ <Box style={{ height: 160, justifyContent: 'flex-end' }}>
25
+ <Text style={{ fontSize: 132, fontWeight: 900, lineHeight: 1, whiteSpace: 'nowrap', backgroundImage: 'linear-gradient(180deg, #FFE79B 0%, #FFC000 46%, #E19825 100%)', backgroundClip: 'text', color: 'transparent', textShadow: '0 8px 20px rgba(120,16,8,0.6)' }}>街道二〇二六年度</Text>
26
+ </Box>
27
+ <Box style={{ height: 160, justifyContent: 'flex-end' }}>
28
+ <Text style={{ fontSize: 132, fontWeight: 900, lineHeight: 1, whiteSpace: 'nowrap', backgroundImage: 'linear-gradient(180deg, #FFE79B 0%, #FFC000 46%, #E19825 100%)', backgroundClip: 'text', color: 'transparent', textShadow: '0 8px 20px rgba(120,16,8,0.6)' }}>基层工作汇报</Text>
29
+ </Box>
30
+ </Box>
31
+
32
+ <Box style={{ position: 'relative', flexDirection: 'row', alignItems: 'flex-start', marginTop: 30, height: 56 }}>
33
+ <Box style={{ width: 22, height: 40, background: '#B8791A', marginTop: 10 }} />
34
+ <Box style={{ width: 700, height: 50, background: 'linear-gradient(90deg, #E19825 0%, #FFC000 50%, #E19825 100%)', alignItems: 'center', justifyContent: 'center' }}>
35
+ <Text style={{ fontSize: 22, fontWeight: 'bold', color: '#A81810', letterSpacing: 3, lineHeight: 1 }}>讲清今年做了什么、效果怎样、明年往哪里走</Text>
36
+ </Box>
37
+ <Box style={{ width: 22, height: 40, background: '#B8791A', marginTop: 10 }} />
38
+ </Box>
39
+
40
+ <Box style={{ position: 'relative', flexDirection: 'row', gap: 20, marginTop: 20, marginLeft: 22 }}>
41
+ <Box style={{ height: 40, padding: '0 26px', borderRadius: 20, background: '#C42819', border: '1px solid #E19825', alignItems: 'center', justifyContent: 'center' }}>
42
+ <Text style={{ fontSize: 18, color: '#FFFFFF', lineHeight: 1 }}>宣讲单位 · 街道年度工作专班</Text>
43
+ </Box>
44
+ <Box style={{ height: 40, padding: '0 26px', borderRadius: 20, background: '#C42819', border: '1px solid #E19825', alignItems: 'center', justifyContent: 'center' }}>
45
+ <Text style={{ fontSize: 18, color: '#FFFFFF', lineHeight: 1 }}>时间 · 2026 年 12 月</Text>
46
+ </Box>
47
+ </Box>
48
+ </Slide>
@@ -0,0 +1,58 @@
1
+ <Slide style={{ width: 1280, height: 720, background: '#FFFFFF', position: 'relative', padding: '40px 70px 0 70px', fontFamily: 'Microsoft YaHei' }}>
2
+ <Box style={{ flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', height: 30, borderBottom: '1px solid #E5E7EB' }}>
3
+ <Text style={{ fontSize: 14, letterSpacing: 2, color: '#6B7280' }}>街道二〇二六年度基层工作汇报</Text>
4
+ <Text style={{ fontSize: 14, letterSpacing: 2, color: '#6B7280' }}>目录</Text>
5
+ </Box>
6
+
7
+ <Box style={{ marginTop: 24, flexDirection: 'row', justifyContent: 'space-between', alignItems: 'flex-end', height: 116 }}>
8
+ <Box style={{ gap: 10 }}>
9
+ <Text style={{ fontFamily: 'Courier New', fontSize: 15, fontWeight: 700, letterSpacing: 3, color: '#C42819', lineHeight: 1.2 }}>CONTENTS</Text>
10
+ <Box style={{ width: 36, height: 3, background: '#E19825' }} />
11
+ <Box style={{ flexDirection: 'row', alignItems: 'center', gap: 16, height: 72 }}>
12
+ <Box style={{ width: 12, height: 46, background: '#C42819' }} />
13
+ <Text style={{ fontSize: 48, fontWeight: 900, lineHeight: 1.2, color: '#1A1616', whiteSpace: 'nowrap' }}>今年的工作分四个部分讲</Text>
14
+ </Box>
15
+ </Box>
16
+ <Box style={{ flexDirection: 'row', alignItems: 'center', gap: 16, marginBottom: 12 }}>
17
+ <Box style={{ flexDirection: 'row', gap: 8 }}>
18
+ <Box style={{ width: 10, height: 10, background: '#E19825' }} /><Box style={{ width: 10, height: 10, background: '#E19825', opacity: 0.6 }} /><Box style={{ width: 10, height: 10, background: '#E19825', opacity: 0.3 }} />
19
+ </Box>
20
+ <Box style={{ height: 34, padding: '0 20px', borderRadius: 17, background: '#E19825', alignItems: 'center', justifyContent: 'center' }}>
21
+ <Text style={{ fontSize: 16, fontWeight: 'bold', color: '#7A1710', lineHeight: 1 }}>年度党课宣讲 · 共四讲</Text>
22
+ </Box>
23
+ </Box>
24
+ </Box>
25
+
26
+ <Box style={{ marginTop: 20, width: 1140, height: 410 }}>
27
+ <Box style={{ borderTop: '2px solid #C42819' }}>
28
+ {[
29
+ ['PART 01', '基础工作', '网格走访常态化,民情台账逐月更新', '03'],
30
+ ['PART 02', '民生服务', '老旧小区改造、养老助餐点和便民设施补齐', '06'],
31
+ ['PART 03', '平安建设', '矛盾纠纷源头调处,安全隐患分级排查', '09'],
32
+ ['PART 04', '队伍建设', '社区工作者轮训、考核与后备人员储备', '11'],
33
+ ].map((r, i) => (
34
+ <Box key={i} style={{ flexDirection: 'row', alignItems: 'center', height: 100, borderBottom: '1px solid #E5E7EB' }}>
35
+ <Box style={{ width: 170, flexDirection: 'row' }}>
36
+ <Box style={{ height: 36, padding: '0 18px', borderRadius: 18, background: '#C42819', alignItems: 'center', justifyContent: 'center' }}>
37
+ <Text style={{ fontFamily: 'Arial', fontSize: 16, fontWeight: 'bold', color: '#FFFFFF', letterSpacing: 1, lineHeight: 1 }}>{r[0]}</Text>
38
+ </Box>
39
+ </Box>
40
+ <Text style={{ fontSize: 40, fontWeight: 900, lineHeight: 1.2, color: '#1A1616', width: 300 }}>{r[1]}</Text>
41
+ <Box style={{ width: 590, flexDirection: 'row', alignItems: 'center', gap: 14 }}>
42
+ <Box style={{ width: 28, height: 4, background: '#E19825' }} />
43
+ <Text style={{ fontSize: 19, lineHeight: 1.5, color: '#4B5563' }}>{r[2]}</Text>
44
+ </Box>
45
+ <Text style={{ fontFamily: 'Courier New', fontSize: 22, fontWeight: 700, color: '#C42819', width: 80, textAlign: 'right' }}>{r[3]}</Text>
46
+ </Box>
47
+ ))}
48
+ </Box>
49
+ </Box>
50
+
51
+ <Box style={{ position: 'absolute', left: 0, top: 660, width: 1280, height: 9, flexDirection: 'row' }}>
52
+ <Box style={{ width: 678, height: 9, background: '#C42819' }} />
53
+ <Box style={{ width: 333, height: 9, background: '#EE5530' }} />
54
+ <Box style={{ width: 269, height: 9, background: '#F26B40' }} />
55
+ </Box>
56
+ <Text style={{ position: 'absolute', left: 70, top: 678, fontSize: 14, letterSpacing: 2, color: '#6B7280', lineHeight: 1 }}>年度党课宣讲</Text>
57
+ <Text style={{ position: 'absolute', right: 70, top: 678, fontFamily: 'Courier New', fontSize: 14, color: '#6B7280', lineHeight: 1 }}>02 / 12</Text>
58
+ </Slide>
@@ -0,0 +1,53 @@
1
+ <Slide style={{ width: 1280, height: 720, background: '#FFFFFF', position: 'relative', padding: '40px 70px 0 70px', fontFamily: 'Microsoft YaHei' }}>
2
+ <Box style={{ width: 1140, height: 112 }}>
3
+ <Box style={{ flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', height: 30, borderBottom: '1px solid #E5E7EB' }}>
4
+ <Box style={{ flexDirection: 'row', alignItems: 'center', gap: 12 }}>
5
+ <Box style={{ height: 22, padding: '0 12px', borderRadius: 11, background: '#C42819', alignItems: 'center', justifyContent: 'center' }}>
6
+ <Text style={{ fontFamily: 'Arial', fontSize: 12, fontWeight: 'bold', color: '#FFFFFF', letterSpacing: 1, lineHeight: 1 }}>PART 01</Text>
7
+ </Box>
8
+ <Text style={{ fontSize: 14, letterSpacing: 2, color: '#6B7280' }}>基础工作</Text>
9
+ </Box>
10
+ <Text style={{ fontSize: 14, letterSpacing: 2, color: '#6B7280' }}>三项要点</Text>
11
+ </Box>
12
+
13
+ <Box style={{ marginTop: 22, flexDirection: 'row', alignItems: 'center', gap: 16, height: 60 }}>
14
+ <Box style={{ width: 12, height: 44, background: '#C42819' }} />
15
+ <Text style={{ fontSize: 42, fontWeight: 900, lineHeight: 1.2, color: '#1A1616', whiteSpace: 'nowrap' }}>基础工作靠三件事撑起来:走访、台账、回访</Text>
16
+ </Box>
17
+ </Box>
18
+
19
+ <Box style={{ marginTop: 24, width: 1140, height: 452 }}>
20
+ <Box style={{ flexDirection: 'row', gap: 24 }}>
21
+ {[
22
+ ['01', '走访', '按网格入户,全年不断线', '全年按网格开展入户走访,重点关注独居老人、困难家庭和新迁入居民三类群体。走访不设固定话术,先听居民说什么,再登记诉求类别;能当场答复的当场答复,需要协调的明确反馈时限,避免走访变成打卡,也避免居民反复说同一件事。', '全年入户走访覆盖全部网格'],
23
+ ['02', '台账', '一户一页,逐月更新', '民情台账按户建档,记录家庭结构、特殊需求和历次诉求办理情况,每月由网格员集中更新一次。台账数据同时用于安排走访频次:情况稳定的季度走访,有特殊需求的每月走访,紧急情况随时跟进,不搞一刀切,也不让台账停在纸面。', '台账每月更新,季度核对'],
24
+ ['03', '回访', '事项办结后再问一次', '每一件登记诉求在办结后一周内回访,确认居民是否认可处理结果。回访中发现处理不到位或居民有新情况的,重新派单跟进;年底对全部办结事项集中回头看,未办结和居民不满意的事项转入下一年度清单,逐项说明原因和下一步安排。', '办结事项一周内回访'],
25
+ ].map((c, i) => (
26
+ <Box key={i} style={{ width: 364, height: 452, borderRadius: 14, border: '1px solid #E5E7EB', background: '#FFFFFF', overflow: 'hidden' }}>
27
+ <Box style={{ height: 56, background: '#C42819', flexDirection: 'row', alignItems: 'center', gap: 14, padding: '0 24px' }}>
28
+ <Text style={{ fontFamily: 'Courier New', fontSize: 18, fontWeight: 700, letterSpacing: 2, color: '#FFE79B', lineHeight: 1 }}>{`/ ${c[0]}`}</Text>
29
+ <Text style={{ fontSize: 26, fontWeight: 900, color: '#FFFFFF', lineHeight: 1, letterSpacing: 4 }}>{c[1]}</Text>
30
+ </Box>
31
+ <Box style={{ height: 396, padding: '20px 24px 20px 24px', justifyContent: 'space-between' }}>
32
+ <Box style={{ gap: 12 }}>
33
+ <Text style={{ fontSize: 22, fontWeight: 'bold', color: '#C42819', lineHeight: 1.3 }}>{c[2]}</Text>
34
+ <Text style={{ fontSize: 18, color: '#1A1616', lineHeight: 1.75 }}>{c[3]}</Text>
35
+ </Box>
36
+ <Box style={{ flexDirection: 'row', alignItems: 'center', gap: 12, paddingTop: 14, borderTop: '1px solid #E5E7EB' }}>
37
+ <Box style={{ width: 6, height: 24, background: '#E19825' }} />
38
+ <Text style={{ fontSize: 16, fontWeight: 'bold', color: '#1A1616', lineHeight: 1.2 }}>{c[4]}</Text>
39
+ </Box>
40
+ </Box>
41
+ </Box>
42
+ ))}
43
+ </Box>
44
+ </Box>
45
+
46
+ <Box style={{ position: 'absolute', left: 0, top: 660, width: 1280, height: 9, flexDirection: 'row' }}>
47
+ <Box style={{ width: 678, height: 9, background: '#C42819' }} />
48
+ <Box style={{ width: 333, height: 9, background: '#EE5530' }} />
49
+ <Box style={{ width: 269, height: 9, background: '#F26B40' }} />
50
+ </Box>
51
+ <Text style={{ position: 'absolute', left: 70, top: 678, fontSize: 14, letterSpacing: 2, color: '#6B7280', lineHeight: 1 }}>年度党课宣讲</Text>
52
+ <Text style={{ position: 'absolute', right: 70, top: 678, fontFamily: 'Courier New', fontSize: 14, color: '#6B7280', lineHeight: 1 }}>05 / 12</Text>
53
+ </Slide>
@@ -0,0 +1,64 @@
1
+ <Slide style={{ width: 1280, height: 720, background: '#FFFFFF', position: 'relative', padding: '40px 70px 0 70px', fontFamily: 'Microsoft YaHei' }}>
2
+ <Box style={{ width: 1140, height: 112 }}>
3
+ <Box style={{ flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', height: 30, borderBottom: '1px solid #E5E7EB' }}>
4
+ <Box style={{ flexDirection: 'row', alignItems: 'center', gap: 12 }}>
5
+ <Box style={{ height: 22, padding: '0 12px', borderRadius: 11, background: '#C42819', alignItems: 'center', justifyContent: 'center' }}>
6
+ <Text style={{ fontFamily: 'Arial', fontSize: 12, fontWeight: 'bold', color: '#FFFFFF', letterSpacing: 1, lineHeight: 1 }}>PART 01</Text>
7
+ </Box>
8
+ <Text style={{ fontSize: 14, letterSpacing: 2, color: '#6B7280' }}>基础工作</Text>
9
+ </Box>
10
+ <Text style={{ fontSize: 14, letterSpacing: 2, color: '#6B7280' }}>现场纪实</Text>
11
+ </Box>
12
+
13
+ <Box style={{ marginTop: 22, flexDirection: 'row', alignItems: 'center', gap: 16, height: 60 }}>
14
+ <Box style={{ width: 12, height: 44, background: '#C42819' }} />
15
+ <Text style={{ fontSize: 42, fontWeight: 900, lineHeight: 1.2, color: '#1A1616', whiteSpace: 'nowrap' }}>走访不是打卡:先坐下来听,再把诉求记清楚</Text>
16
+ </Box>
17
+ </Box>
18
+
19
+ <Box style={{ marginTop: 24, width: 1140, height: 452 }}>
20
+ <Box style={{ flexDirection: 'row', gap: 24 }}>
21
+ <Box style={{ width: 396, height: 452 }}>
22
+ <Box style={{ width: 396, height: 2, background: '#C42819' }} />
23
+ <Image src="https://placeholder.invalid/image.jpg" style={{ width: 396, height: 396 }} />
24
+ <Box style={{ marginTop: 14, flexDirection: 'row', alignItems: 'center', gap: 12 }}>
25
+ <Box style={{ width: 28, height: 4, background: '#E19825' }} />
26
+ <Text style={{ fontSize: 14, color: '#4B5563', lineHeight: 1.5, whiteSpace: 'nowrap' }}>网格员在居民家中登记诉求并当面确认</Text>
27
+ </Box>
28
+ </Box>
29
+
30
+ <Box style={{ width: 720, height: 452, borderRadius: 14, border: '1px solid #E5E7EB', background: '#FFFFFF', overflow: 'hidden' }}>
31
+ <Box style={{ height: 56, background: '#C42819', flexDirection: 'row', alignItems: 'center', gap: 14, padding: '0 24px' }}>
32
+ <Text style={{ fontFamily: 'Courier New', fontSize: 18, fontWeight: 700, letterSpacing: 2, color: '#FFE79B', lineHeight: 1 }}>/ 01</Text>
33
+ <Text style={{ fontSize: 26, fontWeight: 900, color: '#FFFFFF', lineHeight: 1, letterSpacing: 4 }}>走访现场</Text>
34
+ </Box>
35
+ <Box style={{ height: 396, padding: '20px 24px 20px 24px', justifyContent: 'space-between' }}>
36
+ <Box style={{ gap: 12 }}>
37
+ <Text style={{ fontSize: 22, fontWeight: 'bold', color: '#C42819', lineHeight: 1.3 }}>先听,再记,能答的当场答</Text>
38
+ <Text style={{ fontSize: 18, color: '#1A1616', lineHeight: 1.75 }}>网格员两人一组入户,不带固定话术,先请居民把事情讲完,再按类别登记到民情台账。能当场答复的当场答复,需要协调的写明反馈时限,并留下联系方式。</Text>
39
+ </Box>
40
+ <Box style={{ gap: 10, paddingTop: 14, borderTop: '1px solid #E5E7EB' }}>
41
+ {[
42
+ '两人一组,按网格逐户上门',
43
+ '诉求分类登记,一户一页',
44
+ '协调事项写明反馈时限',
45
+ ].map((t, i) => (
46
+ <Box key={i} style={{ flexDirection: 'row', alignItems: 'center', gap: 12 }}>
47
+ <Box style={{ width: 6, height: 24, background: '#E19825' }} />
48
+ <Text style={{ fontSize: 16, fontWeight: 'bold', color: '#1A1616', lineHeight: 1.2 }}>{t}</Text>
49
+ </Box>
50
+ ))}
51
+ </Box>
52
+ </Box>
53
+ </Box>
54
+ </Box>
55
+ </Box>
56
+
57
+ <Box style={{ position: 'absolute', left: 0, top: 660, width: 1280, height: 9, flexDirection: 'row' }}>
58
+ <Box style={{ width: 678, height: 9, background: '#C42819' }} />
59
+ <Box style={{ width: 333, height: 9, background: '#EE5530' }} />
60
+ <Box style={{ width: 269, height: 9, background: '#F26B40' }} />
61
+ </Box>
62
+ <Text style={{ position: 'absolute', left: 70, top: 678, fontSize: 14, letterSpacing: 2, color: '#6B7280', lineHeight: 1 }}>年度党课宣讲</Text>
63
+ <Text style={{ position: 'absolute', right: 70, top: 678, fontFamily: 'Courier New', fontSize: 14, color: '#6B7280', lineHeight: 1 }}>06 / 12</Text>
64
+ </Slide>
@@ -0,0 +1,139 @@
1
+ ---
2
+ name: 专题汇报
3
+ ---
4
+
5
+ ## 1. 气质一句话
6
+ 纯白纸面上只有墨黑衬线标题、灰正文和 1px 浅灰细线,圆规环在角落漂着,像博物馆图录里夹着一张读书笔记。
7
+
8
+ ## 2. 色彩池
9
+
10
+ > **本节是默认配色,不是限制。** 模板只定版式:外壳、分区、字号层级、图位、标志性处理。颜色可以整体替换——按下表的「角色」一一对应给出新色值,用 `build_page.py init --map` 换色,再过 `contrast`。换色时保持角色数量不变(不多加一种彩色),本预设 §6 / §7 里关于「只用某种颜色」「禁止某色相」的话只约束默认配色。
11
+ | 角色 | hex | 面积占比上限 |
12
+ |---|---|---|
13
+ | 画布 bg-primary | `#FFFFFF` | 全页底色;不用暖色纸底;中性色全部取企微 base_gray 色阶 |
14
+ | 次级面 bg-secondary | `#E7E7E8` | ≤15%:表头底、圆形头像框 |
15
+ | 斑马行 / 卡面 | `#F7F7F8`、`#FFFFFF` | 表格交替行用 `#F7F7F8`;描图纸卡为白底 + 1px 浅灰描边 |
16
+ | 墨黑 text-primary | `#10141A` | 标题、表体、结论、唯一一条 horizontal-accent |
17
+ | 浅灰线 line | `#B5B8BB` | 全部 1px 结构线、圆规环、卡片描边 |
18
+ | 中性 | 正文 `#565A5F`(5.6:1);小标签 / 页码 `#6D7176`(4.9:1,用于 ≥12px 的 chrome 与 eyebrow) | 文字专用 |
19
+ | 强调色 | 无;不引入深蓝表头与红黄高亮,强调靠字号与衬线切换 | 0% |
20
+
21
+ 中性色与企微 base_gray 的对应:墨 `#10141A` = base_gray_100,正文 `#565A5F` = base_gray_070,标签 `#6D7176` = base_gray_060(白底对比 4.9:1,12px 小字的下限,不得再浅),线 `#B5B8BB` = base_gray_030,表头 `#E7E7E8` = base_gray_010,斑马 `#F7F7F8` = base_gray_003。不使用专项语义色标码。
22
+
23
+ ## 3. 字体系统(1280×720 换算)
24
+ | 角色 | fontFamily | 字号 | 字重 | 行高 | 字距 |
25
+ |---|---|---|---|---|---|
26
+ | 封面中文题 | STSong | 44 | 700 | 1.3 | 0 |
27
+ | 封面英文题 | Times New Roman | 18 | 400 italic | 1.55 | 0 |
28
+ | 页标题 h2(结论句) | STSong | 32 | 700 | 1.3 | 0 |
29
+ | 卡片标题 | STSong | 22 | 700 | 1.3 | 0 |
30
+ | 结论条 | STSong | 19 | 700 | 1.6 | 0 |
31
+ | 圆环内字母 / vs | Times New Roman | 15–17 | 400 | 1 | 0,颜色 #6D7176 |
32
+ | 正文 | Microsoft YaHei | 17 | 400 | 1.75 | 0 |
33
+ | 表格 | Microsoft YaHei | 17 | 400 | — | 0,表头 #565A5F、表体 #10141A |
34
+ | label / eyebrow / 卡内规格键 | Microsoft YaHei | 13–14 | 500 | 1 | 1.5–2.5px,颜色 #6D7176 |
35
+ | 规格值 / 元信息 | Microsoft YaHei | 16 | 400 | 1.4 | 0,墨黑 |
36
+ | 页码 counter | Courier New | 12 | 400 | 1 | 2px |
37
+
38
+ ## 4. 母版三区
39
+ - 页面 padding:所有页(含封面)一律 `48px 52px 68px 52px`,Slide 为纵向 flex、`gap: 24`,内容宽 1176;不做垂直居中,页眉与内容区的 y 由固定数值决定;无顶栏。
40
+ - A 标题块 y 48–128(高 80):label(13px,y 48–63)+ marginTop 12 的 h2(32px 衬线结论句,y 75–124);h2 只允许一行,最多 32 个汉字(右上角固定有 140px 圆规环,x ≥ 1086)。
41
+ - B 内容区 y 152–652(宽 1176、高 500):主体 388 高(双栏卡 / 表格)+ 间隔 22 + 结论条 90 高(1px 顶线 + paddingTop 16 + 两行 19px 衬线,最多约 100 个汉字);单页只放一个主体。
42
+ - C 页脚条:左下 12px 灰色单位名(left 52, bottom 28,高 14,y 678–692),右下 `NN / 总页` 页码(right 52, bottom 28,高 14)。页码只有右下这一处,底部 68 留给它们。
43
+ - 封面沿用同一 Slide style 与同一 C 区;标题块固定在 x 52 / y 165–525(宽 720、高 360),圆规环固定在 left 824 / top 236,墨黑终止线固定在 left 52 / bottom 96。
44
+
45
+ ### 固定骨架
46
+
47
+ 内容页外壳:
48
+ 内容页外壳以本套 `shell/content.jsx` 为准(占位 `〔…〕`,B 区标记 `〔B区内容〕`),用 `scripts/build_page.py build` 拼装,不照抄手打。
49
+
50
+ B 区内部的固定分配(主体 + 结论条,放进上面的空壳):
51
+
52
+ ```jsx
53
+ <Box style={{ width: 1176, height: 500 }}>
54
+ <Box style={{ height: 388 }}>
55
+ </Box>
56
+ <Box style={{ flexDirection: 'row', alignItems: 'flex-start', gap: 28, borderTop: '1px solid #B5B8BB', paddingTop: 16, marginTop: 22, height: 90 }}>
57
+ <Text style={{ fontSize: 13, fontWeight: 500, letterSpacing: 2.5, color: '#6D7176', lineHeight: 2.2, whiteSpace: 'nowrap' }}>结论</Text>
58
+ <Text style={{ fontFamily: 'STSong', fontSize: 19, fontWeight: 700, color: '#10141A', lineHeight: 1.6 }}>
59
+ 〔结论,最多两行〕
60
+ </Text>
61
+ </Box>
62
+ </Box>
63
+ ```
64
+
65
+ 封面外壳(Slide 开标签、单位名、页码与内容页逐字相同):
66
+
67
+ ```jsx
68
+ <Slide style={{ width: 1280, height: 720, background: '#FFFFFF', position: 'relative', padding: '48px 52px 68px 52px', flexDirection: 'column', gap: 24, fontFamily: 'Microsoft YaHei' }}>
69
+ <svg width={400} height={400} viewBox='0 0 400 400' style={{ position: 'absolute', left: 824, top: 236 }}>
70
+ <rect x='0' y='0' width='400' height='400' fill='#FFFFFF' />
71
+ <circle cx='200' cy='200' r='193' fill='none' stroke='#B5B8BB' strokeWidth='1' opacity='0.7' />
72
+ <circle cx='200' cy='200' r='154' fill='none' stroke='#B5B8BB' strokeWidth='1' strokeDasharray='3 4' opacity='0.5' />
73
+ </svg>
74
+
75
+ <Box style={{ width: 720, height: 360, marginTop: 117 }}>
76
+ </Box>
77
+
78
+ <Box style={{ position: 'absolute', left: 52, bottom: 96, width: 256, height: 1, background: '#10141A' }} />
79
+
80
+ <Box style={{ position: 'absolute', left: 52, bottom: 28, height: 14 }}>
81
+ <Text style={{ fontSize: 12, fontWeight: 500, letterSpacing: 2, lineHeight: 1, color: '#6D7176', whiteSpace: 'nowrap' }}>〔单位名〕</Text>
82
+ </Box>
83
+ <Box style={{ position: 'absolute', right: 52, bottom: 28, height: 14 }}>
84
+ <Text style={{ fontFamily: 'Courier New', fontSize: 12, fontWeight: 400, letterSpacing: 2, lineHeight: 1, color: '#6D7176' }}>〔NN / 总页〕</Text>
85
+ </Box>
86
+ </Slide>
87
+ ```
88
+
89
+ | 区 | x | y | w | h | 说明 |
90
+ |---|---|---|---|---|---|
91
+ | A 页眉 | 52 | 48 | 1176 | 80 | label y 48–63;h2 y 75–124,32px 一行,最多 32 个汉字 |
92
+ | B 内容区 | 52 | 152 | 1176 | 500 | 主体 y 152–540(高 388)+ 间隔 22 + 结论条 y 562–652(高 90) |
93
+ | C 单位名 | 52 | 678 | 随文字 | 14 | absolute,left 52 / bottom 28,YaHei 12 |
94
+ | C 页码 | 右缘 1228 | 678 | 随文字 | 14 | absolute,right 52 / bottom 28,Courier New 12 |
95
+ | 封面标题块 | 52 | 165 | 720 | 360 | 封面专用;圆规环 x 824–1224 / y 236–636;终止线 x 52–308 / y 623 |
96
+ | 角落圆规环(每张内容页都有,随外壳) | 1086 | 16 | 140 | 140 | 内容页装饰只许放这一处,absolute,不占流式高度 |
97
+
98
+ 纵向算式:padding-top 48 + A 80 + gap 24 + B 500 + padding-bottom 68 = 720;C 区不占流式高度,绝对定位在底部 68 之内(y 678–692)。封面:48 + marginTop 117 + 标题块 360 + 余白 127 + padding-bottom 68 = 720。
99
+
100
+ 硬规则:所有内容页必须从此外壳复制,只替换占位文字和 B 区内部;不得改动外壳里的任何数值。B 区放不下就删内容或拆页,不得压缩页眉页脚或改 padding。
101
+
102
+ **封面标题容量(硬上限)**:44px 衬线标题,标题块 720 宽、360 高:中文题最多 2 行,每行最多 16 个汉字;英文题最多 2 行。标题与页脚、底带之间必须留出空隙,任何情况下标题不得压到页脚上。
103
+
104
+ **装饰与文字不重叠(硬约束)**:内容页右上圆规环占 x 1086~1226、y 16~156,标题 32px 一行最多 32 个汉字即不会碰到;封面圆规环占 x 824~1224、y 236~636,封面文字全部在 x 52~800 之内。装饰性 SVG / Box 的矩形与任何文字容器的矩形不得相交;页型没有范例时,装饰只照本套封面或内容页范例的位置放,不另加。
105
+
106
+ ### 图位(配图规则)
107
+ - 本套不放 AI 生成的配图(当前环境没有生图工具):封面、章节页、内容页都以 §6 的标志性处理作主视觉。
108
+ - 只有用户提供的材料图可以上页,作为证据图,每页最多一张,图位 x 52 或 668 / y 152 / 388×388 正方形(下方结论条照常);按真实比例居中放置(`<Image>` 宽高 = 图位边长按真实宽高比缩放),不写 objectFit,不加描边、相框、圆角、阴影,图注一行放图下方。
109
+ - 材料图上页的门槛:只有照片、真实图表、界面截图这类重画不出来的内容才放,且原图短边 ≥ 图位边长(放大会糊)。材料里的表格、流程图、对比图、文字截图一律不贴图,改用原生 `<Table>`、Box 排版或 SVG 重画;重画不了又不清晰的,宁可不放。
110
+ - 图位宽高不得改;没有材料图就不留图位,不得用色块或生成图冒充。
111
+
112
+ ## 5. 版式清单
113
+ | 文件 | 类型 | 骨架 |
114
+ |---|---|---|
115
+ | `slides/01_cover.slide` | cover | 题名式:label → 两行 44px 衬线中文题 → 两行 Times New Roman italic 英文题 → 640 宽浅灰线 → 汇报人 / 单位 / 汇报时间;右侧 400px 圆规环;左下 256×1 墨黑终止线 |
116
+ | `slides/02_compare.slide` | compare | label + h2 → 两张描图纸卡(40px 圆环 A / B + 灰色类别标签 / 衬线标题 / 正文 / 发丝线上三行规格键值)+ 中央 1px 竖线与 44px「vs」圆环 → 1px 线 + 结论条 |
117
+ | `slides/03_table.slide` | data | label + h2 → 6 列 6 行 Table(灰表头 #E7E7E8、#F7F7F8 斑马、仅 1px 浅灰底线)高 388,占内容区约 78% → 1px 线 + 结论条;右上 140px 小圆规环 |
118
+
119
+ ## 6. 标志性处理
120
+ 1. 所有结构线都是 1px `#B5B8BB`:卡片描边、表格行线、结论条顶线、中央竖线;没有 2px 以上边框,也没有深色表头。
121
+ 2. 圆规几何:实线外环 + 虚线内环(strokeDasharray '3 4')成对出现,透明度 0.4–0.7,每页最多两处且不压文字。
122
+ 3. 圆环字母是模板 card-icon:40–44px 1px 灰环里放 Times New Roman 400 的 A / B / vs,颜色 #6D7176。
123
+ 4. 标题一律 STSong 墨黑,小标签一律 YaHei 13px 灰色加 2.5px 字距,两者对比构成层级;正文与表体不加粗。
124
+ 5. 唯一墨黑线 horizontal-accent(256×1)只在封面出现一次。
125
+ 6. 右下等宽页码 + 左下灰色单位名,无顶栏、无页脚横线。
126
+
127
+ ## 7. Do / Don't
128
+ Do
129
+ - Slide background 一律 `#FFFFFF`,页眉与内容区按 §4 固定坐标摆放(不做垂直居中),留白 ≥40%。
130
+ - 每个内容页末尾必有结论条:`borderTop: '1px solid #B5B8BB'` + 灰色「结论」标签 + 19px 衬线结论,固定高 90、最多两行。
131
+ - 卡片用 `border: '1px solid #B5B8BB'` + `background: '#FFFFFF'`,卡尾规格键值先 `flex: 1` 占位再锚底。
132
+ - Table 只配 `border.bottom`,表头 `#E7E7E8`、斑马 `#F7F7F8`,首列左对齐其余居中。
133
+ Don't
134
+ - 不画右缘圆点页码指示器或任何随总页数变化的翻页控件;页码只用右下 `NN / 总页`。
135
+ - 不引入红、橙、蓝、绿等饱和色,不用深蓝表头,不用灰色渲染标题。
136
+ - 不给卡片或表格加圆角、阴影、渐变;圆角只允许真正的圆(50%)。
137
+ - 不把正文、表体或标签加粗;层级靠字号与衬线 / 无衬线切换。
138
+ - 不一页放超过两处几何装饰,不让圆环压到标题或表格。
139
+ - 不在中文标签上照搬 uppercase,只保留字距;`#6D7176` 不用于 ≥ 一句话的正文。
@@ -0,0 +1,28 @@
1
+ <Slide style={{ width: 1280, height: 720, background: '#FFFFFF', position: 'relative', padding: '48px 52px 68px 52px', flexDirection: 'column', gap: 24, fontFamily: 'Microsoft YaHei' }}>
2
+ <svg width={140} height={140} viewBox='0 0 140 140' style={{ position: 'absolute', left: 1086, top: 16 }}>
3
+ <rect x='0' y='0' width='140' height='140' fill='#FFFFFF' />
4
+ <circle cx='70' cy='70' r='67' fill='none' stroke='#B5B8BB' strokeWidth='1' opacity='0.6' />
5
+ <circle cx='70' cy='70' r='52' fill='none' stroke='#B5B8BB' strokeWidth='1' strokeDasharray='3 4' opacity='0.4' />
6
+ </svg>
7
+
8
+ <Box style={{ width: 1176, height: 80 }}>
9
+ <Text style={{ fontSize: 13, fontWeight: 500, letterSpacing: 2.5, color: '#6D7176', lineHeight: 1, whiteSpace: 'nowrap' }}>
10
+ 〔章节标签〕
11
+ </Text>
12
+ <Text style={{ fontFamily: 'STSong', fontSize: 32, fontWeight: 700, lineHeight: 1.3, color: '#10141A', marginTop: 12, whiteSpace: 'nowrap' }}>
13
+ 〔标题〕
14
+ </Text>
15
+ </Box>
16
+
17
+ <Box style={{ width: 1176, height: 500 }}>
18
+
19
+ 〔B区内容〕
20
+ </Box>
21
+
22
+ <Box style={{ position: 'absolute', left: 52, bottom: 28, height: 14 }}>
23
+ <Text style={{ fontSize: 12, fontWeight: 500, letterSpacing: 2, lineHeight: 1, color: '#6D7176', whiteSpace: 'nowrap' }}>〔单位名〕</Text>
24
+ </Box>
25
+ <Box style={{ position: 'absolute', right: 52, bottom: 28, height: 14 }}>
26
+ <Text style={{ fontFamily: 'Courier New', fontSize: 12, fontWeight: 400, letterSpacing: 2, lineHeight: 1, color: '#6D7176' }}>〔NN / 总页〕</Text>
27
+ </Box>
28
+ </Slide>