wezard 2.9.0 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (477) hide show
  1. package/CLAUDE.md +43 -21
  2. package/README.md +37 -50
  3. package/cli/wezard.sh +59 -20
  4. package/config.example.jsonc +5 -8
  5. package/dist/cli/audit.js +11 -13
  6. package/dist/cli/audit.js.map +1 -1
  7. package/dist/cli/codex-hook.js +20 -17
  8. package/dist/cli/codex-hook.js.map +1 -1
  9. package/dist/cli/ext.js +271 -0
  10. package/dist/cli/ext.js.map +1 -0
  11. package/dist/cli/init.js +44 -13
  12. package/dist/cli/init.js.map +1 -1
  13. package/dist/cli/skills.js +113 -0
  14. package/dist/cli/skills.js.map +1 -0
  15. package/dist/cli/sync.js +3 -2
  16. package/dist/cli/sync.js.map +1 -1
  17. package/dist/cli/wx.js +7 -6
  18. package/dist/cli/wx.js.map +1 -1
  19. package/dist/daemon/aibot-media.js +28 -20
  20. package/dist/daemon/aibot-media.js.map +1 -1
  21. package/dist/daemon/apprentice.js +75 -0
  22. package/dist/daemon/apprentice.js.map +1 -0
  23. package/dist/daemon/approval.js +75 -33
  24. package/dist/daemon/approval.js.map +1 -1
  25. package/dist/daemon/channel-context.js +7 -0
  26. package/dist/daemon/channel-context.js.map +1 -1
  27. package/dist/daemon/channel-onboarding.js +61 -0
  28. package/dist/daemon/channel-onboarding.js.map +1 -0
  29. package/dist/daemon/channel-posts.js +93 -0
  30. package/dist/daemon/channel-posts.js.map +1 -0
  31. package/dist/daemon/channel-rebind.js +100 -0
  32. package/dist/daemon/channel-rebind.js.map +1 -0
  33. package/dist/daemon/channel-store.js.map +1 -1
  34. package/dist/daemon/channel.js +273 -409
  35. package/dist/daemon/channel.js.map +1 -1
  36. package/dist/daemon/chat-name.js +24 -161
  37. package/dist/daemon/chat-name.js.map +1 -1
  38. package/dist/daemon/claim.js +1 -45
  39. package/dist/daemon/claim.js.map +1 -1
  40. package/dist/daemon/classes.js +416 -0
  41. package/dist/daemon/classes.js.map +1 -0
  42. package/dist/daemon/config-api.js +6 -30
  43. package/dist/daemon/config-api.js.map +1 -1
  44. package/dist/daemon/control-socket.js +93 -0
  45. package/dist/daemon/control-socket.js.map +1 -0
  46. package/dist/daemon/danger-scrub.js +315 -0
  47. package/dist/daemon/danger-scrub.js.map +1 -0
  48. package/dist/daemon/danger.js +146 -16
  49. package/dist/daemon/danger.js.map +1 -1
  50. package/dist/daemon/detail.js +50 -22
  51. package/dist/daemon/detail.js.map +1 -1
  52. package/dist/daemon/exec-surface.js +108 -0
  53. package/dist/daemon/exec-surface.js.map +1 -0
  54. package/dist/daemon/external.js +595 -0
  55. package/dist/daemon/external.js.map +1 -0
  56. package/dist/daemon/handoff.js +51 -50
  57. package/dist/daemon/handoff.js.map +1 -1
  58. package/dist/daemon/http.js +119 -31
  59. package/dist/daemon/http.js.map +1 -1
  60. package/dist/daemon/idle-reap.js +30 -0
  61. package/dist/daemon/idle-reap.js.map +1 -0
  62. package/dist/daemon/inbound.js +436 -207
  63. package/dist/daemon/inbound.js.map +1 -1
  64. package/dist/daemon/index.js +3353 -2760
  65. package/dist/daemon/index.js.map +1 -1
  66. package/dist/daemon/last-response.js +51 -25
  67. package/dist/daemon/last-response.js.map +1 -1
  68. package/dist/daemon/legacy-panes.js +67 -0
  69. package/dist/daemon/legacy-panes.js.map +1 -0
  70. package/dist/daemon/mcp-http.js.map +1 -1
  71. package/dist/daemon/me-room.js +137 -0
  72. package/dist/daemon/me-room.js.map +1 -0
  73. package/dist/daemon/media.js +14 -0
  74. package/dist/daemon/media.js.map +1 -1
  75. package/dist/daemon/memory-steward.js +1 -1
  76. package/dist/daemon/memory-steward.js.map +1 -1
  77. package/dist/daemon/message-format.js +15 -2
  78. package/dist/daemon/message-format.js.map +1 -1
  79. package/dist/daemon/mirror-bridge.js +583 -488
  80. package/dist/daemon/mirror-bridge.js.map +1 -1
  81. package/dist/daemon/mirror-store.js +24 -0
  82. package/dist/daemon/mirror-store.js.map +1 -1
  83. package/dist/daemon/notices.js +5 -6
  84. package/dist/daemon/notices.js.map +1 -1
  85. package/dist/daemon/onboarding.js +459 -0
  86. package/dist/daemon/onboarding.js.map +1 -0
  87. package/dist/daemon/outbound.js +21 -11
  88. package/dist/daemon/outbound.js.map +1 -1
  89. package/dist/daemon/peers.js +39 -231
  90. package/dist/daemon/peers.js.map +1 -1
  91. package/dist/daemon/plan-http.js +2 -3
  92. package/dist/daemon/plan-http.js.map +1 -1
  93. package/dist/daemon/plans.js.map +1 -1
  94. package/dist/daemon/reach.js +1 -5
  95. package/dist/daemon/reach.js.map +1 -1
  96. package/dist/daemon/room-auto-adhoc.js +18 -0
  97. package/dist/daemon/room-auto-adhoc.js.map +1 -0
  98. package/dist/daemon/room-bind.js +297 -0
  99. package/dist/daemon/room-bind.js.map +1 -0
  100. package/dist/daemon/room-facts.js +35 -0
  101. package/dist/daemon/room-facts.js.map +1 -0
  102. package/dist/daemon/room-hub.js +569 -0
  103. package/dist/daemon/room-hub.js.map +1 -0
  104. package/dist/daemon/room-overdue.js +160 -0
  105. package/dist/daemon/room-overdue.js.map +1 -0
  106. package/dist/daemon/room-prune.js +74 -0
  107. package/dist/daemon/room-prune.js.map +1 -0
  108. package/dist/daemon/room-spawn.js +20 -0
  109. package/dist/daemon/room-spawn.js.map +1 -0
  110. package/dist/daemon/room-watchdog.js +175 -0
  111. package/dist/daemon/room-watchdog.js.map +1 -0
  112. package/dist/daemon/rooms.js +204 -0
  113. package/dist/daemon/rooms.js.map +1 -0
  114. package/dist/daemon/route.js +7 -18
  115. package/dist/daemon/route.js.map +1 -1
  116. package/dist/daemon/session-scan.js +1 -1
  117. package/dist/daemon/session-scan.js.map +1 -1
  118. package/dist/daemon/short-id-log.js +43 -0
  119. package/dist/daemon/short-id-log.js.map +1 -0
  120. package/dist/daemon/spawn-tmux.js +60 -45
  121. package/dist/daemon/spawn-tmux.js.map +1 -1
  122. package/dist/daemon/steward-guard.js +3 -3
  123. package/dist/daemon/steward-guard.js.map +1 -1
  124. package/dist/daemon/steward-model.js +17 -3
  125. package/dist/daemon/steward-model.js.map +1 -1
  126. package/dist/daemon/steward-repair.js +171 -0
  127. package/dist/daemon/steward-repair.js.map +1 -0
  128. package/dist/daemon/steward.js +171 -0
  129. package/dist/daemon/steward.js.map +1 -0
  130. package/dist/daemon/tasks.js +4 -14
  131. package/dist/daemon/tasks.js.map +1 -1
  132. package/dist/daemon/tool-face.js +31 -0
  133. package/dist/daemon/tool-face.js.map +1 -0
  134. package/dist/daemon/turn-opening.js +30 -0
  135. package/dist/daemon/turn-opening.js.map +1 -0
  136. package/dist/daemon/wake-tail.js +55 -0
  137. package/dist/daemon/wake-tail.js.map +1 -0
  138. package/dist/daemon/weixin-cmd.js +10 -14
  139. package/dist/daemon/weixin-cmd.js.map +1 -1
  140. package/dist/daemon/wezard-session.js +6 -2
  141. package/dist/daemon/wezard-session.js.map +1 -1
  142. package/dist/daemon/wizard-memory.js +4 -10
  143. package/dist/daemon/wizard-memory.js.map +1 -1
  144. package/dist/daemon/wizard-names.js +0 -22
  145. package/dist/daemon/wizard-names.js.map +1 -1
  146. package/dist/daemon/wizard.js +683 -159
  147. package/dist/daemon/wizard.js.map +1 -1
  148. package/dist/daemon/ws.js +1 -1
  149. package/dist/daemon/ws.js.map +1 -1
  150. package/dist/mcp/output.js +30 -7
  151. package/dist/mcp/output.js.map +1 -1
  152. package/dist/mcp/relay.js +152 -0
  153. package/dist/mcp/relay.js.map +1 -0
  154. package/dist/mcp/tools.js +318 -265
  155. package/dist/mcp/tools.js.map +1 -1
  156. package/dist/shared/allow-rules.js +1 -7
  157. package/dist/shared/allow-rules.js.map +1 -1
  158. package/dist/shared/charter-rearm.js +179 -0
  159. package/dist/shared/charter-rearm.js.map +1 -0
  160. package/dist/shared/chat-http.js +412 -480
  161. package/dist/shared/chat-http.js.map +1 -1
  162. package/dist/shared/chat-record.js +55 -0
  163. package/dist/shared/chat-record.js.map +1 -0
  164. package/dist/shared/chat-render.js +7 -4
  165. package/dist/shared/chat-render.js.map +1 -1
  166. package/dist/shared/chat-view.js +2 -41
  167. package/dist/shared/chat-view.js.map +1 -1
  168. package/dist/shared/cli-backends.js +13 -5
  169. package/dist/shared/cli-backends.js.map +1 -1
  170. package/dist/shared/cli-local-status.js +28 -0
  171. package/dist/shared/cli-local-status.js.map +1 -0
  172. package/dist/shared/cli-socket.js +14 -0
  173. package/dist/shared/cli-socket.js.map +1 -0
  174. package/dist/shared/codex-hooks.js +5 -2
  175. package/dist/shared/codex-hooks.js.map +1 -1
  176. package/dist/shared/config.js +90 -66
  177. package/dist/shared/config.js.map +1 -1
  178. package/dist/shared/daemon-addr.js +23 -0
  179. package/dist/shared/daemon-addr.js.map +1 -0
  180. package/dist/shared/daemon-client.js +41 -0
  181. package/dist/shared/daemon-client.js.map +1 -0
  182. package/dist/shared/daemon-token.js +2 -2
  183. package/dist/shared/daemon-token.js.map +1 -1
  184. package/dist/shared/detail-render.js +98 -21
  185. package/dist/shared/detail-render.js.map +1 -1
  186. package/dist/shared/detail-store.js.map +1 -1
  187. package/dist/shared/external.js +402 -0
  188. package/dist/shared/external.js.map +1 -0
  189. package/dist/shared/group-members.js +35 -0
  190. package/dist/shared/group-members.js.map +1 -0
  191. package/dist/shared/inject-view.js +143 -0
  192. package/dist/shared/inject-view.js.map +1 -0
  193. package/dist/shared/instance-id.js +21 -0
  194. package/dist/shared/instance-id.js.map +1 -0
  195. package/dist/shared/legacy-routes.js +199 -0
  196. package/dist/shared/legacy-routes.js.map +1 -0
  197. package/dist/shared/mem-guard.js +32 -0
  198. package/dist/shared/mem-guard.js.map +1 -0
  199. package/dist/shared/message-footer.js +11 -3
  200. package/dist/shared/message-footer.js.map +1 -1
  201. package/dist/shared/model-tiers.js +39 -1
  202. package/dist/shared/model-tiers.js.map +1 -1
  203. package/dist/shared/ports.js +56 -0
  204. package/dist/shared/ports.js.map +1 -0
  205. package/dist/shared/reminder.js +30 -38
  206. package/dist/shared/reminder.js.map +1 -1
  207. package/dist/shared/role-render.js +210 -210
  208. package/dist/shared/role-render.js.map +1 -1
  209. package/dist/shared/role-view.js +65 -300
  210. package/dist/shared/role-view.js.map +1 -1
  211. package/dist/shared/room-label.js +13 -0
  212. package/dist/shared/room-label.js.map +1 -0
  213. package/dist/shared/room-migrate.js +404 -0
  214. package/dist/shared/room-migrate.js.map +1 -0
  215. package/dist/shared/room-overdue.js +153 -0
  216. package/dist/shared/room-overdue.js.map +1 -0
  217. package/dist/shared/room-search.js +102 -0
  218. package/dist/shared/room-search.js.map +1 -0
  219. package/dist/shared/room-view.js +275 -0
  220. package/dist/shared/room-view.js.map +1 -0
  221. package/dist/shared/room.js +827 -0
  222. package/dist/shared/room.js.map +1 -0
  223. package/dist/shared/session-hooks.js +20 -8
  224. package/dist/shared/session-hooks.js.map +1 -1
  225. package/dist/shared/session-label.js +82 -84
  226. package/dist/shared/session-label.js.map +1 -1
  227. package/dist/shared/session-mcp.js +36 -40
  228. package/dist/shared/session-mcp.js.map +1 -1
  229. package/dist/shared/session-skills.js +8 -0
  230. package/dist/shared/session-skills.js.map +1 -1
  231. package/dist/shared/skill-sync.js +229 -0
  232. package/dist/shared/skill-sync.js.map +1 -0
  233. package/dist/shared/smarts.js +24 -0
  234. package/dist/shared/smarts.js.map +1 -0
  235. package/dist/shared/stream-page.js +22 -0
  236. package/dist/shared/stream-page.js.map +1 -0
  237. package/dist/shared/task-file.js +0 -5
  238. package/dist/shared/task-file.js.map +1 -1
  239. package/dist/shared/task-template.js +1 -1
  240. package/dist/shared/task-template.js.map +1 -1
  241. package/dist/shared/tool-hints.js +20 -11
  242. package/dist/shared/tool-hints.js.map +1 -1
  243. package/dist/shared/workspace-trust.js +8 -0
  244. package/dist/shared/workspace-trust.js.map +1 -1
  245. package/dist/shared/world.js +101 -166
  246. package/dist/shared/world.js.map +1 -1
  247. package/dist/svr/facts-store.js +26 -0
  248. package/dist/svr/facts-store.js.map +1 -0
  249. package/dist/svr/index.js +114 -16
  250. package/dist/svr/index.js.map +1 -1
  251. package/hooks/pre-tool-use.sh +14 -10
  252. package/hooks/stop.sh +28 -0
  253. package/launchd/com.wezard.svr.plist.template +2 -0
  254. package/package.json +9 -2
  255. package/scripts/install.sh +23 -0
  256. package/skills/LICENSE.wecom-unified.txt +21 -0
  257. package/skills/wecom-unified/SKILL.md +151 -0
  258. package/skills/wecom-unified/assets/templates/broadside/DESIGN.preset.md +172 -0
  259. package/skills/wecom-unified/assets/templates/broadside/shell/content.jsx +31 -0
  260. package/skills/wecom-unified/assets/templates/broadside/slides/01_cover.slide +48 -0
  261. package/skills/wecom-unified/assets/templates/broadside/slides/02_section.slide +58 -0
  262. package/skills/wecom-unified/assets/templates/broadside/slides/03_cards.slide +53 -0
  263. package/skills/wecom-unified/assets/templates/broadside/slides/04_image.slide +64 -0
  264. package/skills/wecom-unified/assets/templates/cartesian/DESIGN.preset.md +139 -0
  265. package/skills/wecom-unified/assets/templates/cartesian/shell/content.jsx +28 -0
  266. package/skills/wecom-unified/assets/templates/cartesian/slides/01_cover.slide +44 -0
  267. package/skills/wecom-unified/assets/templates/cartesian/slides/02_compare.slide +79 -0
  268. package/skills/wecom-unified/assets/templates/cartesian/slides/03_table.slide +79 -0
  269. package/skills/wecom-unified/assets/templates/cobalt-grid/DESIGN.preset.md +118 -0
  270. package/skills/wecom-unified/assets/templates/cobalt-grid/shell/content.jsx +24 -0
  271. package/skills/wecom-unified/assets/templates/cobalt-grid/slides/01_cover.slide +61 -0
  272. package/skills/wecom-unified/assets/templates/cobalt-grid/slides/02_structure.slide +85 -0
  273. package/skills/wecom-unified/assets/templates/cobalt-grid/slides/03_data.slide +60 -0
  274. package/skills/wecom-unified/assets/templates/editorial-forest/DESIGN.preset.md +135 -0
  275. package/skills/wecom-unified/assets/templates/editorial-forest/shell/content.jsx +19 -0
  276. package/skills/wecom-unified/assets/templates/editorial-forest/slides/01_cover.slide +29 -0
  277. package/skills/wecom-unified/assets/templates/editorial-forest/slides/02_cards.slide +60 -0
  278. package/skills/wecom-unified/assets/templates/editorial-forest/slides/03_data.slide +49 -0
  279. package/skills/wecom-unified/assets/templates/editorial-forest/slides/04_image.slide +46 -0
  280. package/skills/wecom-unified/assets/templates/emerald-editorial/DESIGN.preset.md +119 -0
  281. package/skills/wecom-unified/assets/templates/emerald-editorial/shell/content.jsx +18 -0
  282. package/skills/wecom-unified/assets/templates/emerald-editorial/slides/01_cover.slide +36 -0
  283. package/skills/wecom-unified/assets/templates/emerald-editorial/slides/02_section.slide +39 -0
  284. package/skills/wecom-unified/assets/templates/emerald-editorial/slides/03_data.slide +79 -0
  285. package/skills/wecom-unified/assets/templates/emerald-editorial/slides/04_steps.slide +53 -0
  286. package/skills/wecom-unified/assets/templates/grove/DESIGN.preset.md +159 -0
  287. package/skills/wecom-unified/assets/templates/grove/shell/content.jsx +18 -0
  288. package/skills/wecom-unified/assets/templates/grove/shell/content_light.jsx +18 -0
  289. package/skills/wecom-unified/assets/templates/grove/slides/01_cover.slide +26 -0
  290. package/skills/wecom-unified/assets/templates/grove/slides/02_compare.slide +92 -0
  291. package/skills/wecom-unified/assets/templates/grove/slides/03_table.slide +68 -0
  292. package/skills/wecom-unified/assets/templates/index.json +280 -0
  293. package/skills/wecom-unified/assets/templates/long-table/DESIGN.preset.md +135 -0
  294. package/skills/wecom-unified/assets/templates/long-table/shell/content.jsx +36 -0
  295. package/skills/wecom-unified/assets/templates/long-table/slides/01_cover.slide +71 -0
  296. package/skills/wecom-unified/assets/templates/long-table/slides/02_cards.slide +72 -0
  297. package/skills/wecom-unified/assets/templates/long-table/slides/03_timeline.slide +81 -0
  298. package/skills/wecom-unified/assets/templates/long-table/slides/04_image.slide +60 -0
  299. package/skills/wecom-unified/assets/templates/sakura-chroma/DESIGN.preset.md +121 -0
  300. package/skills/wecom-unified/assets/templates/sakura-chroma/shell/content.jsx +13 -0
  301. package/skills/wecom-unified/assets/templates/sakura-chroma/slides/01_cover.slide +54 -0
  302. package/skills/wecom-unified/assets/templates/sakura-chroma/slides/02_products.slide +134 -0
  303. package/skills/wecom-unified/assets/templates/sakura-chroma/slides/03_section.slide +30 -0
  304. package/skills/wecom-unified/assets/templates/sakura-chroma/slides/04_schedule.slide +65 -0
  305. package/skills/wecom-unified/assets/templates/signal/DESIGN.preset.md +121 -0
  306. package/skills/wecom-unified/assets/templates/signal/shell/content.jsx +18 -0
  307. package/skills/wecom-unified/assets/templates/signal/shell/content_dark.jsx +23 -0
  308. package/skills/wecom-unified/assets/templates/signal/slides/01_cover.slide +48 -0
  309. package/skills/wecom-unified/assets/templates/signal/slides/02_cards.slide +67 -0
  310. package/skills/wecom-unified/assets/templates/signal/slides/03_data.slide +68 -0
  311. package/skills/wecom-unified/references/wecomcli-calendar-agenda.md +227 -0
  312. package/skills/wecom-unified/references/wecomcli-calendar-cancel.md +108 -0
  313. package/skills/wecom-unified/references/wecomcli-calendar-create.md +238 -0
  314. package/skills/wecom-unified/references/wecomcli-calendar-freebusy.md +207 -0
  315. package/skills/wecom-unified/references/wecomcli-calendar-meeting-room.md +170 -0
  316. package/skills/wecom-unified/references/wecomcli-calendar-search.md +209 -0
  317. package/skills/wecom-unified/references/wecomcli-calendar-update.md +272 -0
  318. package/skills/wecom-unified/references/wecomcli-calendar.md +296 -0
  319. package/skills/wecom-unified/references/wecomcli-contact.md +48 -0
  320. package/skills/wecom-unified/references/wecomcli-disk.md +380 -0
  321. package/skills/wecom-unified/references/wecomcli-doc-contents-append.md +20 -0
  322. package/skills/wecom-unified/references/wecomcli-doc-contents-overwrite.md +27 -0
  323. package/skills/wecom-unified/references/wecomcli-doc-create.md +162 -0
  324. package/skills/wecom-unified/references/wecomcli-doc-manage-doc-members-update.md +24 -0
  325. package/skills/wecom-unified/references/wecomcli-doc-manage-doc-names-update.md +20 -0
  326. package/skills/wecom-unified/references/wecomcli-doc-manage-doc-rules-update.md +22 -0
  327. package/skills/wecom-unified/references/wecomcli-doc-manage.md +127 -0
  328. package/skills/wecom-unified/references/wecomcli-doc.md +135 -0
  329. package/skills/wecom-unified/references/wecomcli-email-forward-mail.md +131 -0
  330. package/skills/wecom-unified/references/wecomcli-email-get-mail.md +187 -0
  331. package/skills/wecom-unified/references/wecomcli-email-reply-mail.md +138 -0
  332. package/skills/wecom-unified/references/wecomcli-email-search-mail.md +114 -0
  333. package/skills/wecom-unified/references/wecomcli-email-security.md +52 -0
  334. package/skills/wecom-unified/references/wecomcli-email-send-mail.md +186 -0
  335. package/skills/wecom-unified/references/wecomcli-email-send-schedule.md +83 -0
  336. package/skills/wecom-unified/references/wecomcli-email.md +206 -0
  337. package/skills/wecom-unified/references/wecomcli-media.md +89 -0
  338. package/skills/wecom-unified/references/wecomcli-meeting-cancel.md +113 -0
  339. package/skills/wecom-unified/references/wecomcli-meeting-create.md +167 -0
  340. package/skills/wecom-unified/references/wecomcli-meeting-list.md +228 -0
  341. package/skills/wecom-unified/references/wecomcli-meeting-original-get.md +101 -0
  342. package/skills/wecom-unified/references/wecomcli-meeting-search.md +176 -0
  343. package/skills/wecom-unified/references/wecomcli-meeting-update.md +217 -0
  344. package/skills/wecom-unified/references/wecomcli-meeting.md +366 -0
  345. package/skills/wecom-unified/references/wecomcli-message.md +190 -0
  346. package/skills/wecom-unified/references/wecomcli-pptx-component-animation.md +62 -0
  347. package/skills/wecom-unified/references/wecomcli-pptx-component-box.md +102 -0
  348. package/skills/wecom-unified/references/wecomcli-pptx-component-chart.md +261 -0
  349. package/skills/wecom-unified/references/wecomcli-pptx-component-codeblock.md +70 -0
  350. package/skills/wecom-unified/references/wecomcli-pptx-component-diagram.md +54 -0
  351. package/skills/wecom-unified/references/wecomcli-pptx-component-faicon.md +71 -0
  352. package/skills/wecom-unified/references/wecomcli-pptx-component-hyperlink.md +55 -0
  353. package/skills/wecom-unified/references/wecomcli-pptx-component-image.md +107 -0
  354. package/skills/wecom-unified/references/wecomcli-pptx-component-math.md +65 -0
  355. package/skills/wecom-unified/references/wecomcli-pptx-component-qrcode.md +22 -0
  356. package/skills/wecom-unified/references/wecomcli-pptx-component-slide.md +74 -0
  357. package/skills/wecom-unified/references/wecomcli-pptx-component-svg.md +95 -0
  358. package/skills/wecom-unified/references/wecomcli-pptx-component-table.md +72 -0
  359. package/skills/wecom-unified/references/wecomcli-pptx-component-text.md +96 -0
  360. package/skills/wecom-unified/references/wecomcli-pptx-content-contract.md +73 -0
  361. package/skills/wecom-unified/references/wecomcli-pptx-create-from-material.md +67 -0
  362. package/skills/wecom-unified/references/wecomcli-pptx-create-from-scratch.md +178 -0
  363. package/skills/wecom-unified/references/wecomcli-pptx-create-from-template.md +123 -0
  364. package/skills/wecom-unified/references/wecomcli-pptx-design-principle.md +65 -0
  365. package/skills/wecom-unified/references/wecomcli-pptx-government-contract.md +40 -0
  366. package/skills/wecom-unified/references/wecomcli-pptx-human-alignment.md +140 -0
  367. package/skills/wecom-unified/references/wecomcli-pptx-pptx-api.md +161 -0
  368. package/skills/wecom-unified/references/wecomcli-pptx-pptx-edit.md +37 -0
  369. package/skills/wecom-unified/references/wecomcli-pptx-story-principle.md +184 -0
  370. package/skills/wecom-unified/references/wecomcli-pptx-templates-README.md +165 -0
  371. package/skills/wecom-unified/references/wecomcli-pptx-templates-anti-ai-slop.md +52 -0
  372. package/skills/wecom-unified/references/wecomcli-pptx.md +158 -0
  373. package/skills/wecom-unified/references/wecomcli-sheet-conditional-formatting.md +203 -0
  374. package/skills/wecom-unified/references/wecomcli-sheet-filter.md +179 -0
  375. package/skills/wecom-unified/references/wecomcli-sheet-float-image.md +235 -0
  376. package/skills/wecom-unified/references/wecomcli-sheet-formulas.md +71 -0
  377. package/skills/wecom-unified/references/wecomcli-sheet-history.md +118 -0
  378. package/skills/wecom-unified/references/wecomcli-sheet-protection.md +170 -0
  379. package/skills/wecom-unified/references/wecomcli-sheet-range-operations.md +306 -0
  380. package/skills/wecom-unified/references/wecomcli-sheet-read-data.md +151 -0
  381. package/skills/wecom-unified/references/wecomcli-sheet-search-replace.md +121 -0
  382. package/skills/wecom-unified/references/wecomcli-sheet-structure-operations.md +394 -0
  383. package/skills/wecom-unified/references/wecomcli-sheet-style.md +246 -0
  384. package/skills/wecom-unified/references/wecomcli-sheet-table-style.md +199 -0
  385. package/skills/wecom-unified/references/wecomcli-sheet-validation.md +217 -0
  386. package/skills/wecom-unified/references/wecomcli-sheet-visual-standards.md +166 -0
  387. package/skills/wecom-unified/references/wecomcli-sheet-workbook.md +264 -0
  388. package/skills/wecom-unified/references/wecomcli-sheet-write-cells.md +320 -0
  389. package/skills/wecom-unified/references/wecomcli-sheet-xlsx-process.md +324 -0
  390. package/skills/wecom-unified/references/wecomcli-sheet.md +96 -0
  391. package/skills/wecom-unified/references/wecomcli-smartpage-data-driven-pages.md +50 -0
  392. package/skills/wecom-unified/references/wecomcli-smartpage-edit.md +526 -0
  393. package/skills/wecom-unified/references/wecomcli-smartpage-formula-arraylist.md +369 -0
  394. package/skills/wecom-unified/references/wecomcli-smartpage-formula-datetime.md +283 -0
  395. package/skills/wecom-unified/references/wecomcli-smartpage-formula-logic.md +247 -0
  396. package/skills/wecom-unified/references/wecomcli-smartpage-formula-math.md +362 -0
  397. package/skills/wecom-unified/references/wecomcli-smartpage-formula-operators.md +246 -0
  398. package/skills/wecom-unified/references/wecomcli-smartpage-formula-pageblock.md +76 -0
  399. package/skills/wecom-unified/references/wecomcli-smartpage-formula-reference.md +192 -0
  400. package/skills/wecom-unified/references/wecomcli-smartpage-formula-templates.md +410 -0
  401. package/skills/wecom-unified/references/wecomcli-smartpage-formula-text.md +377 -0
  402. package/skills/wecom-unified/references/wecomcli-smartpage-formula-user.md +22 -0
  403. package/skills/wecom-unified/references/wecomcli-smartpage-mdx-syntax.md +739 -0
  404. package/skills/wecom-unified/references/wecomcli-smartpage.md +179 -0
  405. package/skills/wecom-unified/references/wecomcli-smartsheet-chart-types.md +95 -0
  406. package/skills/wecom-unified/references/wecomcli-smartsheet-common.md +160 -0
  407. package/skills/wecom-unified/references/wecomcli-smartsheet-edit.md +609 -0
  408. package/skills/wecom-unified/references/wecomcli-smartsheet-field-types.md +438 -0
  409. package/skills/wecom-unified/references/wecomcli-smartsheet-formula.md +845 -0
  410. package/skills/wecom-unified/references/wecomcli-smartsheet-read.md +411 -0
  411. package/skills/wecom-unified/references/wecomcli-smartsheet-record-values.md +218 -0
  412. package/skills/wecom-unified/references/wecomcli-smartsheet-template-ai_efficiency.md +709 -0
  413. package/skills/wecom-unified/references/wecomcli-smartsheet-template-connect_to_app.md +380 -0
  414. package/skills/wecom-unified/references/wecomcli-smartsheet-template-financial_accounting.md +369 -0
  415. package/skills/wecom-unified/references/wecomcli-smartsheet-template-hr_and_administration.md +475 -0
  416. package/skills/wecom-unified/references/wecomcli-smartsheet-template-ledger_records.md +156 -0
  417. package/skills/wecom-unified/references/wecomcli-smartsheet-template-manufacturing.md +395 -0
  418. package/skills/wecom-unified/references/wecomcli-smartsheet-template-marketing.md +186 -0
  419. package/skills/wecom-unified/references/wecomcli-smartsheet-template-office_essentials.md +299 -0
  420. package/skills/wecom-unified/references/wecomcli-smartsheet-template-personal_efficiency.md +70 -0
  421. package/skills/wecom-unified/references/wecomcli-smartsheet-template-procurement_logistics.md +325 -0
  422. package/skills/wecom-unified/references/wecomcli-smartsheet-template-project_management.md +564 -0
  423. package/skills/wecom-unified/references/wecomcli-smartsheet-template-rd_process_customer.md +222 -0
  424. package/skills/wecom-unified/references/wecomcli-smartsheet-template-rd_process_ops.md +105 -0
  425. package/skills/wecom-unified/references/wecomcli-smartsheet-template-rd_process_project.md +109 -0
  426. package/skills/wecom-unified/references/wecomcli-smartsheet-template-rd_process_research.md +92 -0
  427. package/skills/wecom-unified/references/wecomcli-smartsheet-template-sales_and_operations.md +446 -0
  428. package/skills/wecom-unified/references/wecomcli-smartsheet-template-store_management.md +431 -0
  429. package/skills/wecom-unified/references/wecomcli-smartsheet-template-team_tasks.md +274 -0
  430. package/skills/wecom-unified/references/wecomcli-smartsheet-template-wechat_customer.md +384 -0
  431. package/skills/wecom-unified/references/wecomcli-smartsheet-template-work_report.md +100 -0
  432. package/skills/wecom-unified/references/wecomcli-smartsheet-templates.md +53 -0
  433. package/skills/wecom-unified/references/wecomcli-smartsheet-view-types.md +373 -0
  434. package/skills/wecom-unified/references/wecomcli-smartsheet-webhook-examples.md +176 -0
  435. package/skills/wecom-unified/references/wecomcli-smartsheet-webhook.md +186 -0
  436. package/skills/wecom-unified/references/wecomcli-smartsheet.md +147 -0
  437. package/skills/wecom-unified/references/wecomcli-todo-create.md +137 -0
  438. package/skills/wecom-unified/references/wecomcli-todo-delete.md +63 -0
  439. package/skills/wecom-unified/references/wecomcli-todo-finish.md +72 -0
  440. package/skills/wecom-unified/references/wecomcli-todo-get.md +69 -0
  441. package/skills/wecom-unified/references/wecomcli-todo-list.md +136 -0
  442. package/skills/wecom-unified/references/wecomcli-todo-update.md +112 -0
  443. package/skills/wecom-unified/references/wecomcli-todo.md +68 -0
  444. package/skills/wecom-unified/scripts/build_docx.py +1274 -0
  445. package/skills/wecom-unified/scripts/build_page.py +2449 -0
  446. package/skills/wecom-unified/scripts/collect.py +868 -0
  447. package/skills/wecom-unified/scripts/doc_image_extractor.py +498 -0
  448. package/skills/wecom-unified/scripts/pptx2image.py +268 -0
  449. package/skills/wecom-unified/scripts/recalc.py +403 -0
  450. package/systemd/wezard-svr.service.template +2 -0
  451. package/systemd/wezard.service.template +6 -0
  452. package/web/chat.css +70 -273
  453. package/web/chat.js +2269 -2190
  454. package/dist/daemon/bot-mux.js +0 -161
  455. package/dist/daemon/bot-mux.js.map +0 -1
  456. package/dist/daemon/chat-log.js +0 -130
  457. package/dist/daemon/chat-log.js.map +0 -1
  458. package/dist/daemon/dispatch.js +0 -6
  459. package/dist/daemon/dispatch.js.map +0 -1
  460. package/dist/daemon/idle-nudge.js +0 -90
  461. package/dist/daemon/idle-nudge.js.map +0 -1
  462. package/dist/daemon/message-events.js +0 -1155
  463. package/dist/daemon/message-events.js.map +0 -1
  464. package/dist/daemon/pending-items.js +0 -160
  465. package/dist/daemon/pending-items.js.map +0 -1
  466. package/dist/daemon/router.js +0 -742
  467. package/dist/daemon/router.js.map +0 -1
  468. package/dist/daemon/tips.js +0 -25
  469. package/dist/daemon/tips.js.map +0 -1
  470. package/dist/daemon/wedoc.js +0 -210
  471. package/dist/daemon/wedoc.js.map +0 -1
  472. package/dist/shared/role-search.js +0 -100
  473. package/dist/shared/role-search.js.map +0 -1
  474. package/dist/shared/startup-notice.js +0 -21
  475. package/dist/shared/startup-notice.js.map +0 -1
  476. package/dist/shared/turn-state.js +0 -27
  477. package/dist/shared/turn-state.js.map +0 -1
@@ -0,0 +1,438 @@
1
+ # 字段类型(FieldType)完整参考
2
+
3
+ ## 字段类型枚举
4
+
5
+ | 参数值 | 说明 | 对应属性(property) |
6
+ | --- | --- | --- |
7
+ | `text` | 文本 | 无额外属性 |
8
+ | `number` | 数字 | `property_number` |
9
+ | `checkbox` | 复选框 | `property_checkbox` |
10
+ | `date_time` | 日期 | `property_date_time` |
11
+ | `image` | 图片 | 无额外属性 |
12
+ | `attachment` | 文件 | `property_attachment` |
13
+ | `user` | 成员 | `property_user` |
14
+ | `url` | 超链接 | `property_url` |
15
+ | `select` | 多选 | `property_select` |
16
+ | `created_user` | 创建人 | 系统字段,无额外属性 |
17
+ | `modified_user` | 最后编辑人 | 系统字段,无额外属性 |
18
+ | `created_time` | 创建时间 | `property_created_time` |
19
+ | `modified_time` | 最后编辑时间 | `property_modified_time` |
20
+ | `progress` | 进度 | `property_progress` |
21
+ | `phone_number` | 电话 | 无额外属性 |
22
+ | `email` | 邮箱 | 无额外属性 |
23
+ | `single_select` | 单选 | `property_single_select` |
24
+ | `reference` | 关联 | `property_reference` |
25
+ | `location` | 地理位置 | `property_location` |
26
+ | `formula` | 公式 | `property_formula` |
27
+ | `lookup` | 查找引用 | `property_lookup` |
28
+ | `two_way_link_records` | 双向关联 | `property_two_way_link_records` |
29
+ | `currency` | 货币 | `property_currency` |
30
+ | `wwgroup` | 群 | `property_ww_group` |
31
+ | `autonumber` | 自动编号 | `property_auto_number` |
32
+ | `percentage` | 百分数 | `property_percentage` |
33
+ | `barcode` | 条码 | `property_barcode` |
34
+
35
+ ### 模板中的字段类型
36
+
37
+ `assets/templates/` 使用 `FIELD_TYPE_*` 常量描述字段类型。调用 `wecom-cli smartsheet sheets add`、`fields add` 或 `fields update` 时,以本节上方“字段类型枚举”表为唯一依据,将模板常量转换为表中的 `参数值`,不能把 `FIELD_TYPE_*` 原样传给接口。
38
+
39
+ 转换规则:去掉 `FIELD_TYPE_` 前缀,将剩余部分转为小写并保留下划线。例如,`FIELD_TYPE_TEXT` 转为 `text`,`FIELD_TYPE_DATE_TIME` 转为 `date_time`,`FIELD_TYPE_TWOWAYLINKRECORDS` 转为 `two_way_link_records`。转换后仍需按枚举表的“对应属性(property)”列补齐相应的 `property_xxx`。
40
+
41
+ > **暂不支持插入 AI 字段**:相关接口暂不支持创建,若命中此类需求时,告知用户手动创建。
42
+
43
+ ---
44
+
45
+ ## 各字段属性(property)详细参数
46
+
47
+ ### property_number(数字)
48
+
49
+ | 参数 | 类型 | 说明 |
50
+ | --- | --- | --- |
51
+ | `decimal_places` | int (DecimalPlaces) | 小数位数,参考 DecimalPlaces 定义 |
52
+ | `use_separate` | bool | 是否千分位分隔(如 1,000) |
53
+
54
+ ### property_checkbox(复选框)
55
+
56
+ | 参数 | 类型 | 说明 |
57
+ | --- | --- | --- |
58
+ | `checked` | bool | 新增时是否默认勾选 |
59
+
60
+ ### property_date_time(日期)
61
+
62
+ | 参数 | 类型 | 说明 |
63
+ | --- | --- | --- |
64
+ | `format` | string (Format) | 日期格式,取值参考 Format 定义 |
65
+ | `auto_fill` | bool | 新建记录时是否自动填充时间 |
66
+
67
+ ### property_attachment(文件)
68
+
69
+ | 参数 | 类型 | 说明 |
70
+ | --- | --- | --- |
71
+ | `display_mode` | string (DisplayMode) | 展示样式,参考 DisplayMode 定义 |
72
+
73
+ ### property_user(成员)
74
+
75
+ | 参数 | 类型 | 说明 |
76
+ | --- | --- | --- |
77
+ | `is_multiple` | bool | 允许添加多个人员 |
78
+ | `is_notified` | bool | 添加人员时通知用户 |
79
+
80
+ ### property_url(超链接)
81
+
82
+ | 参数 | 类型 | 说明 |
83
+ | --- | --- | --- |
84
+ | `type` | string (LinkType) | 超链接展示样式,参考 LinkType 定义 |
85
+
86
+ ### property_select(多选)
87
+
88
+ | 参数 | 类型 | 说明 |
89
+ | --- | --- | --- |
90
+ | `is_quick_add` | bool | 是否允许填写时新增选项 |
91
+ | `options` | Option[] | 选项列表(见下方 Option 结构) |
92
+
93
+ ### property_single_select(单选)
94
+
95
+ | 参数 | 类型 | 说明 |
96
+ | --- | --- | --- |
97
+ | `is_quick_add` | bool | 是否允许填写时新增选项 |
98
+ | `options` | Option[] | 选项列表(见下方 Option 结构) |
99
+
100
+ ### property_created_time(创建时间)
101
+
102
+ | 参数 | 类型 | 说明 |
103
+ | --- | --- | --- |
104
+ | `format` | string (Format) | 日期格式,取值参考 Format 定义 |
105
+
106
+ ### property_modified_time(最后编辑时间)
107
+
108
+ | 参数 | 类型 | 说明 |
109
+ | --- | --- | --- |
110
+ | `format` | string (Format) | 日期格式,取值参考 Format 定义 |
111
+
112
+ ### property_progress(进度)
113
+
114
+ | 参数 | 类型 | 说明 |
115
+ | --- | --- | --- |
116
+ | `decimal_places` | int (DecimalPlaces) | 小数位数,参考 DecimalPlaces 定义 |
117
+
118
+ ### property_reference(关联)
119
+
120
+ | 参数 | 类型 | 说明 |
121
+ | --- | --- | --- |
122
+ | `sub_title` | string | 关联的子表名称,不传=关联本子表 |
123
+ | `field_title` | string | 关联的字段名称 |
124
+ | `is_multiple` | bool | 是否允许多选 |
125
+ | `view_id` | string | 视图 id |
126
+
127
+ ### property_location(地理位置)
128
+
129
+ | 参数 | 类型 | 说明 |
130
+ | --- | --- | --- |
131
+ | `input_type` | string (LOCATION_INPUT_TYPE) | 位置输入类型,参考 LOCATION_INPUT_TYPE 定义 |
132
+
133
+ ### property_auto_number(自动编号)
134
+
135
+ | 参数 | 类型 | 说明 |
136
+ | --- | --- | --- |
137
+ | `type` | string (NUMBER_TYPE) | 自动编号类型,参考 NUMBER_TYPE 枚举定义 |
138
+ | `rules` | NumberRule[] | 自定义规则,参考 NumberRule 定义 |
139
+ | `reformat_existing_record` | bool | 是否应用于已有编号 |
140
+
141
+ ### property_currency(货币)
142
+
143
+ | 参数 | 类型 | 说明 |
144
+ | --- | --- | --- |
145
+ | `currency_type` | string | 货币类型,取值参考 CURRENCY_TYPE 枚举定义 |
146
+ | `decimal_places` | int (DecimalPlaces) | 小数位数,参考 DecimalPlaces 定义 |
147
+ | `use_separate` | bool | 是否千分位分隔 |
148
+
149
+ ### property_ww_group(群)
150
+
151
+ | 参数 | 类型 | 说明 |
152
+ | --- | --- | --- |
153
+ | `allow_multiple` | bool | 是否允许多个群聊 |
154
+
155
+ ### property_percentage(百分比)
156
+
157
+ | 参数 | 类型 | 说明 |
158
+ | --- | --- | --- |
159
+ | `decimal_places` | int (DecimalPlaces) | 小数位数,参考 DecimalPlaces 定义 |
160
+ | `use_separate` | bool | 是否千分位分隔 |
161
+
162
+ ### property_barcode(条码)
163
+
164
+ | 参数 | 类型 | 说明 |
165
+ | --- | --- | --- |
166
+ | `mobile_scan_only` | bool | 仅限手机扫描录入 |
167
+
168
+ ### property_lookup(查找引用)
169
+
170
+ > 说明:当前仅支持按条件查找模式,`lookup_field_title`、`lookup_sub_title`、`filter`(至少一条 condition)均为必填。
171
+
172
+ | 参数 | 类型 | 说明 |
173
+ | --- | --- | --- |
174
+ | `lookup_field_title` | string | 引用列查找的字段名称(必填) |
175
+ | `rollup_type` | string (RollupType) | 统计类型,参考 RollupType 定义 |
176
+ | `lookup_sub_title` | string | 引用的子表名称(必填) |
177
+ | `filter` | LookupFilter | 筛选条件(必填,`conditions` 至少一条) |
178
+
179
+ ### LookupFilter(查找筛选)
180
+
181
+ | 参数 | 类型 | 说明 |
182
+ | --- | --- | --- |
183
+ | `conjunction` | string (Conjunction) | 组合方式,参考 Conjunction 定义 |
184
+ | `conditions` | LookupCondition[] | 查找条件列表 |
185
+
186
+ ### LookupCondition(查找条件)
187
+
188
+ | 参数 | 类型 | 说明 |
189
+ | --- | --- | --- |
190
+ | `conditionId` | string | 条件 ID(可选) |
191
+ | `field_title` | string | 列名称(必填) |
192
+ | `fieldType` | string (FieldType) | 列类型(字段类型枚举值) |
193
+ | `operator` | string (Operator) | 操作符,见下方 Operator 枚举 |
194
+ | `matchValue` | LookupConditionMatchValue | 匹配值(`operator` 非空判断时必填) |
195
+
196
+ ### LookupConditionMatchValue(条件匹配值)
197
+
198
+ | 参数 | 类型 | 说明 |
199
+ | --- | --- | --- |
200
+ | `valueType` | string (LookupConditionValueType) | 匹配方式:`"0"`(和具体值比较) / `"1"`(和列比较) |
201
+ | `field_title` | string | 当 `valueType`=`"1"` 时,引用的列名称 |
202
+ | `value` | ConditionValue | 当 `valueType`=`"0"` 时,具体匹配值 |
203
+ | `computedKeyType` | string (FieldType) | 计算类型(公式等场景) |
204
+
205
+ ### ConditionValue(条件值)
206
+
207
+ > 此处传值的格式请参考 `wecomcli-smartsheet-record-values.md`。
208
+
209
+ | 参数 | 类型 | 说明 |
210
+ | --- | --- | --- |
211
+ | `valueText` | StringValue | 文本值 |
212
+ | `valueNumber` | NumberValue | 数字值 |
213
+ | `valueCheckbox` | BoolValue | 布尔值 |
214
+ | `valueDateTime` | FilterDateTimeValue | 日期时间值 |
215
+ | `valueUsers` | ListValue | 成员值 |
216
+ | `valueSelects` | ListValue | 多选值 |
217
+ | `valueSingleSelect` | ListValue | 单选值 |
218
+ | `valuePhoneNumber` | StringValue | 电话号码 |
219
+ | `valueEmail` | StringValue | 邮箱 |
220
+ | `valueReference` | StringValue | 关联引用值 |
221
+ | `valueTwoWayLinkRecords` | StringValue | 双向关联值 |
222
+ | `valueBarcode` | StringValue | 条形码值 |
223
+ | `valuePercentage` | NumberValue | 百分比值 |
224
+
225
+ ### property_lookup 校验规则
226
+
227
+ | 校验项 | 规则 |
228
+ | --- | --- |
229
+ | `property_lookup` | 不能为空 |
230
+ | `lookup_field_title` | 必填,不能为空字符串 |
231
+ | `lookup_sub_title` | 必填,不能为空字符串 |
232
+ | `filter.conditions` | 必填,至少包含一条有效条件 |
233
+
234
+ 每条 `LookupCondition` 的校验规则:
235
+
236
+ | 校验项 | 规则 |
237
+ | --- | --- |
238
+ | `field_title` | 必填,不能为空 |
239
+ | `operator` 是 `is_empty` / `is_not_empty` | 直接通过,不要求 `matchValue` |
240
+ | 其他 `operator` | `matchValue` 必须非空:若 `valueType="1"`,则 `field_title` 不能为空;若 `valueType="0"`,则 `value` 至少一个字段非空 |
241
+
242
+ ### property_two_way_link_records(双向关联)
243
+
244
+ | 参数 | 类型 | 说明 |
245
+ | --- | --- | --- |
246
+ | `pad_id` | string | 关联的文档 ID,为空表示当前文档 |
247
+ | `sub_title` | string | 关联的子表名称,不传表示本子表 |
248
+ | `field_title` | string | 关联的字段名称 |
249
+ | `is_multiple` | bool | 是否允许多选 |
250
+ | `view_id` | string | 视图 ID |
251
+ | `back_field_title` | string | 双向关联的对应列名称 |
252
+
253
+ ### property_formula(公式)
254
+
255
+ | 参数 | 类型 | 说明 |
256
+ | --- | --- | --- |
257
+ | `formulaModel` | FormulaItem[] | 公式表达式模型 |
258
+ | `formatter` | Formatter | 展示格式配置 |
259
+
260
+ `FormulaItem` 和 `Formatter` 的定义和用法请参考 `wecomcli-smartsheet-formula.md`
261
+
262
+ ---
263
+
264
+ ## 通用枚举值
265
+
266
+ ### DecimalPlaces(小数位数)
267
+
268
+ | 值 | 说明 |
269
+ | --- | --- |
270
+ | -1 | 显示原值 |
271
+ | 0 | 整数 |
272
+ | 1~4 | 精确到小数点后 1~4 位 |
273
+
274
+ ### Format(日期格式)
275
+
276
+ > **重要**:格式中的汉字必须用英文双引号 `"` 包裹,如 `yyyy"年"m"月"d"日"`,**不能**写成 `yyyy年m月d日`
277
+
278
+ | 格式字符串 | 显示效果 | 说明 |
279
+ | --- | --- | --- |
280
+ | `yyyy"年"m"月"d"日"` | 2018年4月20日 | 汉字必须用 `"` 包裹 |
281
+ | `yyyy"年"m"月"d"日" dddd` | 2018年4月20日 星期五 | 汉字必须用 `"` 包裹 |
282
+ | `yyyy"年"m"月"d"日" hh:mm` | 2018年4月20日 14:30 | 汉字必须用 `"` 包裹 |
283
+ | `yyyy-mm-dd` | 2018-04-20 | 纯符号无需引号 |
284
+ | `yyyy-mm-dd hh:mm` | 2018-04-20 14:30 | 纯符号无需引号 |
285
+ | `yyyy/m/d` | 2018/4/20 | 纯符号无需引号 |
286
+ | `m/d/yyyy` | 4/20/2018 | 纯符号无需引号 |
287
+ | `d/m/yyyy` | 20/4/2018 | 纯符号无需引号 |
288
+ | `m"月"d"日"` | 4月20日 | 汉字必须用 `"` 包裹 |
289
+
290
+ > 日期格式只是日期字段值在智能表格中的显示格式,日期值读写的统一格式为 `"YYYY-MM-DD HH:mm:ss"` 标准时间格式。尽管所有显示格式都不显示秒,但是写入日期字段值时,严禁忽略秒。
291
+
292
+ **正确示例**:
293
+
294
+ ```json
295
+ { "format": "yyyy\"年\"m\"月\"d\"日\"", "auto_fill": false }
296
+ ```
297
+
298
+ **错误示例**(汉字没用引号包裹,会导致格式无效):
299
+
300
+ ```json
301
+ { "format": "yyyy年m月d日", "auto_fill": false }
302
+ ```
303
+
304
+ ### DisplayMode(展示样式)
305
+
306
+ | 参数值 | 说明 |
307
+ | --- | --- |
308
+ | `list` | 列表模式 |
309
+ | `grid` | 网格模式 |
310
+
311
+ ### LinkType(超链接展示样式)
312
+
313
+ | 参数值 | 说明 |
314
+ | --- | --- |
315
+ | `pure_text` | 文字 |
316
+ | `icon_text` | 图标文字 |
317
+
318
+ ### Option(选项结构)
319
+
320
+ ```json
321
+ { "id": "选项ID", "text": "选项文本", "style": 样式编号 }
322
+ ```
323
+
324
+ | 参数 | 类型 | 说明 |
325
+ | --- | --- | --- |
326
+ | `id` | string | 选项 ID(由服务端返回,选已有选项时使用) |
327
+ | `text` | string | 选项文本(新增选项时必填) |
328
+ | `style` | int (Style) | 颜色 ID 1-27(可选,默认 1) |
329
+
330
+ style 颜色对照:1=浅红1, 2=浅橙1, 3=浅天蓝1, 4=浅绿1, 5=浅紫1, 6=浅粉1, 7=浅灰1, 8=白, 9=灰, 10=浅蓝1, 11=浅蓝2, 12=蓝, 13=浅天蓝2, 14=天蓝, 15=浅绿2, 16=绿, 17=浅红2, 18=红, 19=浅橙2, 20=橙, 21=浅黄1, 22=浅黄2, 23=黄, 24=浅紫2, 25=紫, 26=浅粉2, 27=粉
331
+
332
+ ### CURRENCY_TYPE(货币类型)
333
+
334
+ | 参数值 | 说明 |
335
+ | --- | --- |
336
+ | `cny` | 人民币 |
337
+ | `usd` | 美元 |
338
+ | `eur` | 欧元 |
339
+ | `gbp` | 英镑 |
340
+ | `jpy` | 日元 |
341
+ | `krw` | 韩元 |
342
+ | `hkd` | 港元 |
343
+ | `mop` | 澳门元 |
344
+ | `twd` | 新台币 |
345
+ | `aed` | 阿联酋迪拉姆 |
346
+ | `aud` | 澳大利亚元 |
347
+ | `brl` | 巴西雷亚尔 |
348
+ | `cad` | 加拿大元 |
349
+ | `chf` | 瑞士法郎 |
350
+ | `idr` | 印尼卢比 |
351
+ | `inr` | 印度卢比 |
352
+ | `mxn` | 墨西哥比索 |
353
+ | `myr` | 马来西亚林吉特 |
354
+ | `php` | 菲律宾比索 |
355
+ | `pln` | 波兰兹罗提 |
356
+ | `rub` | 俄罗斯卢布 |
357
+ | `sgd` | 新加坡元 |
358
+ | `thb` | 泰国铢 |
359
+ | `try` | 土耳其里拉 |
360
+ | `vnd` | 越南盾 |
361
+
362
+ ### LOCATION_INPUT_TYPE(位置输入类型)
363
+
364
+ | 参数值 | 说明 |
365
+ | --- | --- |
366
+ | `manual` | 手动输入 |
367
+ | `auto` | 自动定位,不可手动更新 |
368
+
369
+ ### NUMBER_TYPE(自动编号类型)
370
+
371
+ | 参数值 | 说明 |
372
+ | --- | --- |
373
+ | `incr` | 自增 |
374
+ | `custom` | 自定义 |
375
+
376
+ ### NumberRule(自动编号规则)
377
+
378
+ | 参数 | 类型 | 说明 |
379
+ | --- | --- | --- |
380
+ | `type` | string | `incr`(自增) / `fixed_char`(固定字符) / `time`(创建时间) |
381
+ | `value` | string | 自增=位数,固定字符=字符串,时间=CreateTimeFormat(见下表) |
382
+
383
+ ### CreateTimeFormat(创建时间格式,用于自动编号)
384
+
385
+ | 参数值 | 输出示例 |
386
+ | --- | --- |
387
+ | `YYYYMMDD` | 20260301 |
388
+ | `YYYYMM` | 202603 |
389
+ | `MMDD` | 0301 |
390
+ | `YYYY` | 2026 |
391
+ | `MM` | 03 |
392
+ | `DD` | 01 |
393
+
394
+ ### RollupType(统计类型)
395
+
396
+ | 参数值 | 说明 |
397
+ | --- | --- |
398
+ | `original` | 原样引用,默认值 |
399
+ | `unique` | 去重引用 |
400
+ | `sum` | 求和 |
401
+ | `count` | 计数 |
402
+ | `count_unique` | 去重计数 |
403
+ | `average` | 平均值 |
404
+ | `max` | 最大值 |
405
+ | `min` | 最小值 |
406
+
407
+ ### Conjunction(条件组合)
408
+
409
+ | 参数值 | 说明 |
410
+ | --- | --- |
411
+ | `and` | 条件与 |
412
+ | `or` | 条件或 |
413
+
414
+ ### Operator(查找条件操作符)
415
+
416
+ | 参数值 | 说明 |
417
+ | --- | --- |
418
+ | `is` | 等于 |
419
+ | `is_not` | 不等于 |
420
+ | `contains` | 包含 |
421
+ | `does_not_contain` | 不包含 |
422
+ | `is_greater` | 大于 |
423
+ | `is_greater_or_equal` | 大于或等于 |
424
+ | `is_less` | 小于 |
425
+ | `is_less_or_equal` | 小于或等于 |
426
+ | `is_empty` | 为空 |
427
+ | `is_not_empty` | 不为空 |
428
+
429
+ ### LookupConditionValueType(查找条件匹配方式)
430
+
431
+ | 参数值 | 说明 |
432
+ | --- | --- |
433
+ | `"0"` | 与具体值比较 |
434
+ | `"1"` | 与列比较 |
435
+
436
+ ---
437
+
438
+ > **添加/更新字段时必须带属性**:日期、超链接、人员、单选、多选、数字等字段类型,**必须带上对应的 `property_xxx` 属性**,否则会报 `调用失败, ret=-1`。只有纯文本(`text`)等简单类型不需要额外属性。