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.
- package/CLAUDE.md +43 -21
- package/README.md +37 -50
- package/cli/wezard.sh +59 -20
- package/config.example.jsonc +5 -8
- package/dist/cli/audit.js +11 -13
- package/dist/cli/audit.js.map +1 -1
- package/dist/cli/codex-hook.js +20 -17
- package/dist/cli/codex-hook.js.map +1 -1
- package/dist/cli/ext.js +271 -0
- package/dist/cli/ext.js.map +1 -0
- package/dist/cli/init.js +44 -13
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/skills.js +113 -0
- package/dist/cli/skills.js.map +1 -0
- package/dist/cli/sync.js +3 -2
- package/dist/cli/sync.js.map +1 -1
- package/dist/cli/wx.js +7 -6
- package/dist/cli/wx.js.map +1 -1
- package/dist/daemon/aibot-media.js +28 -20
- package/dist/daemon/aibot-media.js.map +1 -1
- package/dist/daemon/apprentice.js +75 -0
- package/dist/daemon/apprentice.js.map +1 -0
- package/dist/daemon/approval.js +75 -33
- package/dist/daemon/approval.js.map +1 -1
- package/dist/daemon/channel-context.js +7 -0
- package/dist/daemon/channel-context.js.map +1 -1
- package/dist/daemon/channel-onboarding.js +61 -0
- package/dist/daemon/channel-onboarding.js.map +1 -0
- package/dist/daemon/channel-posts.js +93 -0
- package/dist/daemon/channel-posts.js.map +1 -0
- package/dist/daemon/channel-rebind.js +100 -0
- package/dist/daemon/channel-rebind.js.map +1 -0
- package/dist/daemon/channel-store.js.map +1 -1
- package/dist/daemon/channel.js +273 -409
- package/dist/daemon/channel.js.map +1 -1
- package/dist/daemon/chat-name.js +24 -161
- package/dist/daemon/chat-name.js.map +1 -1
- package/dist/daemon/claim.js +1 -45
- package/dist/daemon/claim.js.map +1 -1
- package/dist/daemon/classes.js +416 -0
- package/dist/daemon/classes.js.map +1 -0
- package/dist/daemon/config-api.js +6 -30
- package/dist/daemon/config-api.js.map +1 -1
- package/dist/daemon/control-socket.js +93 -0
- package/dist/daemon/control-socket.js.map +1 -0
- package/dist/daemon/danger-scrub.js +315 -0
- package/dist/daemon/danger-scrub.js.map +1 -0
- package/dist/daemon/danger.js +146 -16
- package/dist/daemon/danger.js.map +1 -1
- package/dist/daemon/detail.js +50 -22
- package/dist/daemon/detail.js.map +1 -1
- package/dist/daemon/exec-surface.js +108 -0
- package/dist/daemon/exec-surface.js.map +1 -0
- package/dist/daemon/external.js +595 -0
- package/dist/daemon/external.js.map +1 -0
- package/dist/daemon/handoff.js +51 -50
- package/dist/daemon/handoff.js.map +1 -1
- package/dist/daemon/http.js +119 -31
- package/dist/daemon/http.js.map +1 -1
- package/dist/daemon/idle-reap.js +30 -0
- package/dist/daemon/idle-reap.js.map +1 -0
- package/dist/daemon/inbound.js +436 -207
- package/dist/daemon/inbound.js.map +1 -1
- package/dist/daemon/index.js +3353 -2760
- package/dist/daemon/index.js.map +1 -1
- package/dist/daemon/last-response.js +51 -25
- package/dist/daemon/last-response.js.map +1 -1
- package/dist/daemon/legacy-panes.js +67 -0
- package/dist/daemon/legacy-panes.js.map +1 -0
- package/dist/daemon/mcp-http.js.map +1 -1
- package/dist/daemon/me-room.js +137 -0
- package/dist/daemon/me-room.js.map +1 -0
- package/dist/daemon/media.js +14 -0
- package/dist/daemon/media.js.map +1 -1
- package/dist/daemon/memory-steward.js +1 -1
- package/dist/daemon/memory-steward.js.map +1 -1
- package/dist/daemon/message-format.js +15 -2
- package/dist/daemon/message-format.js.map +1 -1
- package/dist/daemon/mirror-bridge.js +583 -488
- package/dist/daemon/mirror-bridge.js.map +1 -1
- package/dist/daemon/mirror-store.js +24 -0
- package/dist/daemon/mirror-store.js.map +1 -1
- package/dist/daemon/notices.js +5 -6
- package/dist/daemon/notices.js.map +1 -1
- package/dist/daemon/onboarding.js +459 -0
- package/dist/daemon/onboarding.js.map +1 -0
- package/dist/daemon/outbound.js +21 -11
- package/dist/daemon/outbound.js.map +1 -1
- package/dist/daemon/peers.js +39 -231
- package/dist/daemon/peers.js.map +1 -1
- package/dist/daemon/plan-http.js +2 -3
- package/dist/daemon/plan-http.js.map +1 -1
- package/dist/daemon/plans.js.map +1 -1
- package/dist/daemon/reach.js +1 -5
- package/dist/daemon/reach.js.map +1 -1
- package/dist/daemon/room-auto-adhoc.js +18 -0
- package/dist/daemon/room-auto-adhoc.js.map +1 -0
- package/dist/daemon/room-bind.js +297 -0
- package/dist/daemon/room-bind.js.map +1 -0
- package/dist/daemon/room-facts.js +35 -0
- package/dist/daemon/room-facts.js.map +1 -0
- package/dist/daemon/room-hub.js +569 -0
- package/dist/daemon/room-hub.js.map +1 -0
- package/dist/daemon/room-overdue.js +160 -0
- package/dist/daemon/room-overdue.js.map +1 -0
- package/dist/daemon/room-prune.js +74 -0
- package/dist/daemon/room-prune.js.map +1 -0
- package/dist/daemon/room-spawn.js +20 -0
- package/dist/daemon/room-spawn.js.map +1 -0
- package/dist/daemon/room-watchdog.js +175 -0
- package/dist/daemon/room-watchdog.js.map +1 -0
- package/dist/daemon/rooms.js +204 -0
- package/dist/daemon/rooms.js.map +1 -0
- package/dist/daemon/route.js +7 -18
- package/dist/daemon/route.js.map +1 -1
- package/dist/daemon/session-scan.js +1 -1
- package/dist/daemon/session-scan.js.map +1 -1
- package/dist/daemon/short-id-log.js +43 -0
- package/dist/daemon/short-id-log.js.map +1 -0
- package/dist/daemon/spawn-tmux.js +60 -45
- package/dist/daemon/spawn-tmux.js.map +1 -1
- package/dist/daemon/steward-guard.js +3 -3
- package/dist/daemon/steward-guard.js.map +1 -1
- package/dist/daemon/steward-model.js +17 -3
- package/dist/daemon/steward-model.js.map +1 -1
- package/dist/daemon/steward-repair.js +171 -0
- package/dist/daemon/steward-repair.js.map +1 -0
- package/dist/daemon/steward.js +171 -0
- package/dist/daemon/steward.js.map +1 -0
- package/dist/daemon/tasks.js +4 -14
- package/dist/daemon/tasks.js.map +1 -1
- package/dist/daemon/tool-face.js +31 -0
- package/dist/daemon/tool-face.js.map +1 -0
- package/dist/daemon/turn-opening.js +30 -0
- package/dist/daemon/turn-opening.js.map +1 -0
- package/dist/daemon/wake-tail.js +55 -0
- package/dist/daemon/wake-tail.js.map +1 -0
- package/dist/daemon/weixin-cmd.js +10 -14
- package/dist/daemon/weixin-cmd.js.map +1 -1
- package/dist/daemon/wezard-session.js +6 -2
- package/dist/daemon/wezard-session.js.map +1 -1
- package/dist/daemon/wizard-memory.js +4 -10
- package/dist/daemon/wizard-memory.js.map +1 -1
- package/dist/daemon/wizard-names.js +0 -22
- package/dist/daemon/wizard-names.js.map +1 -1
- package/dist/daemon/wizard.js +683 -159
- package/dist/daemon/wizard.js.map +1 -1
- package/dist/daemon/ws.js +1 -1
- package/dist/daemon/ws.js.map +1 -1
- package/dist/mcp/output.js +30 -7
- package/dist/mcp/output.js.map +1 -1
- package/dist/mcp/relay.js +152 -0
- package/dist/mcp/relay.js.map +1 -0
- package/dist/mcp/tools.js +318 -265
- package/dist/mcp/tools.js.map +1 -1
- package/dist/shared/allow-rules.js +1 -7
- package/dist/shared/allow-rules.js.map +1 -1
- package/dist/shared/charter-rearm.js +179 -0
- package/dist/shared/charter-rearm.js.map +1 -0
- package/dist/shared/chat-http.js +412 -480
- package/dist/shared/chat-http.js.map +1 -1
- package/dist/shared/chat-record.js +55 -0
- package/dist/shared/chat-record.js.map +1 -0
- package/dist/shared/chat-render.js +7 -4
- package/dist/shared/chat-render.js.map +1 -1
- package/dist/shared/chat-view.js +2 -41
- package/dist/shared/chat-view.js.map +1 -1
- package/dist/shared/cli-backends.js +13 -5
- package/dist/shared/cli-backends.js.map +1 -1
- package/dist/shared/cli-local-status.js +28 -0
- package/dist/shared/cli-local-status.js.map +1 -0
- package/dist/shared/cli-socket.js +14 -0
- package/dist/shared/cli-socket.js.map +1 -0
- package/dist/shared/codex-hooks.js +5 -2
- package/dist/shared/codex-hooks.js.map +1 -1
- package/dist/shared/config.js +90 -66
- package/dist/shared/config.js.map +1 -1
- package/dist/shared/daemon-addr.js +23 -0
- package/dist/shared/daemon-addr.js.map +1 -0
- package/dist/shared/daemon-client.js +41 -0
- package/dist/shared/daemon-client.js.map +1 -0
- package/dist/shared/daemon-token.js +2 -2
- package/dist/shared/daemon-token.js.map +1 -1
- package/dist/shared/detail-render.js +98 -21
- package/dist/shared/detail-render.js.map +1 -1
- package/dist/shared/detail-store.js.map +1 -1
- package/dist/shared/external.js +402 -0
- package/dist/shared/external.js.map +1 -0
- package/dist/shared/group-members.js +35 -0
- package/dist/shared/group-members.js.map +1 -0
- package/dist/shared/inject-view.js +143 -0
- package/dist/shared/inject-view.js.map +1 -0
- package/dist/shared/instance-id.js +21 -0
- package/dist/shared/instance-id.js.map +1 -0
- package/dist/shared/legacy-routes.js +199 -0
- package/dist/shared/legacy-routes.js.map +1 -0
- package/dist/shared/mem-guard.js +32 -0
- package/dist/shared/mem-guard.js.map +1 -0
- package/dist/shared/message-footer.js +11 -3
- package/dist/shared/message-footer.js.map +1 -1
- package/dist/shared/model-tiers.js +39 -1
- package/dist/shared/model-tiers.js.map +1 -1
- package/dist/shared/ports.js +56 -0
- package/dist/shared/ports.js.map +1 -0
- package/dist/shared/reminder.js +30 -38
- package/dist/shared/reminder.js.map +1 -1
- package/dist/shared/role-render.js +210 -210
- package/dist/shared/role-render.js.map +1 -1
- package/dist/shared/role-view.js +65 -300
- package/dist/shared/role-view.js.map +1 -1
- package/dist/shared/room-label.js +13 -0
- package/dist/shared/room-label.js.map +1 -0
- package/dist/shared/room-migrate.js +404 -0
- package/dist/shared/room-migrate.js.map +1 -0
- package/dist/shared/room-overdue.js +153 -0
- package/dist/shared/room-overdue.js.map +1 -0
- package/dist/shared/room-search.js +102 -0
- package/dist/shared/room-search.js.map +1 -0
- package/dist/shared/room-view.js +275 -0
- package/dist/shared/room-view.js.map +1 -0
- package/dist/shared/room.js +827 -0
- package/dist/shared/room.js.map +1 -0
- package/dist/shared/session-hooks.js +20 -8
- package/dist/shared/session-hooks.js.map +1 -1
- package/dist/shared/session-label.js +82 -84
- package/dist/shared/session-label.js.map +1 -1
- package/dist/shared/session-mcp.js +36 -40
- package/dist/shared/session-mcp.js.map +1 -1
- package/dist/shared/session-skills.js +8 -0
- package/dist/shared/session-skills.js.map +1 -1
- package/dist/shared/skill-sync.js +229 -0
- package/dist/shared/skill-sync.js.map +1 -0
- package/dist/shared/smarts.js +24 -0
- package/dist/shared/smarts.js.map +1 -0
- package/dist/shared/stream-page.js +22 -0
- package/dist/shared/stream-page.js.map +1 -0
- package/dist/shared/task-file.js +0 -5
- package/dist/shared/task-file.js.map +1 -1
- package/dist/shared/task-template.js +1 -1
- package/dist/shared/task-template.js.map +1 -1
- package/dist/shared/tool-hints.js +20 -11
- package/dist/shared/tool-hints.js.map +1 -1
- package/dist/shared/workspace-trust.js +8 -0
- package/dist/shared/workspace-trust.js.map +1 -1
- package/dist/shared/world.js +101 -166
- package/dist/shared/world.js.map +1 -1
- package/dist/svr/facts-store.js +26 -0
- package/dist/svr/facts-store.js.map +1 -0
- package/dist/svr/index.js +114 -16
- package/dist/svr/index.js.map +1 -1
- package/hooks/pre-tool-use.sh +14 -10
- package/hooks/stop.sh +28 -0
- package/launchd/com.wezard.svr.plist.template +2 -0
- package/package.json +9 -2
- package/scripts/install.sh +23 -0
- package/skills/LICENSE.wecom-unified.txt +21 -0
- package/skills/wecom-unified/SKILL.md +151 -0
- package/skills/wecom-unified/assets/templates/broadside/DESIGN.preset.md +172 -0
- package/skills/wecom-unified/assets/templates/broadside/shell/content.jsx +31 -0
- package/skills/wecom-unified/assets/templates/broadside/slides/01_cover.slide +48 -0
- package/skills/wecom-unified/assets/templates/broadside/slides/02_section.slide +58 -0
- package/skills/wecom-unified/assets/templates/broadside/slides/03_cards.slide +53 -0
- package/skills/wecom-unified/assets/templates/broadside/slides/04_image.slide +64 -0
- package/skills/wecom-unified/assets/templates/cartesian/DESIGN.preset.md +139 -0
- package/skills/wecom-unified/assets/templates/cartesian/shell/content.jsx +28 -0
- package/skills/wecom-unified/assets/templates/cartesian/slides/01_cover.slide +44 -0
- package/skills/wecom-unified/assets/templates/cartesian/slides/02_compare.slide +79 -0
- package/skills/wecom-unified/assets/templates/cartesian/slides/03_table.slide +79 -0
- package/skills/wecom-unified/assets/templates/cobalt-grid/DESIGN.preset.md +118 -0
- package/skills/wecom-unified/assets/templates/cobalt-grid/shell/content.jsx +24 -0
- package/skills/wecom-unified/assets/templates/cobalt-grid/slides/01_cover.slide +61 -0
- package/skills/wecom-unified/assets/templates/cobalt-grid/slides/02_structure.slide +85 -0
- package/skills/wecom-unified/assets/templates/cobalt-grid/slides/03_data.slide +60 -0
- package/skills/wecom-unified/assets/templates/editorial-forest/DESIGN.preset.md +135 -0
- package/skills/wecom-unified/assets/templates/editorial-forest/shell/content.jsx +19 -0
- package/skills/wecom-unified/assets/templates/editorial-forest/slides/01_cover.slide +29 -0
- package/skills/wecom-unified/assets/templates/editorial-forest/slides/02_cards.slide +60 -0
- package/skills/wecom-unified/assets/templates/editorial-forest/slides/03_data.slide +49 -0
- package/skills/wecom-unified/assets/templates/editorial-forest/slides/04_image.slide +46 -0
- package/skills/wecom-unified/assets/templates/emerald-editorial/DESIGN.preset.md +119 -0
- package/skills/wecom-unified/assets/templates/emerald-editorial/shell/content.jsx +18 -0
- package/skills/wecom-unified/assets/templates/emerald-editorial/slides/01_cover.slide +36 -0
- package/skills/wecom-unified/assets/templates/emerald-editorial/slides/02_section.slide +39 -0
- package/skills/wecom-unified/assets/templates/emerald-editorial/slides/03_data.slide +79 -0
- package/skills/wecom-unified/assets/templates/emerald-editorial/slides/04_steps.slide +53 -0
- package/skills/wecom-unified/assets/templates/grove/DESIGN.preset.md +159 -0
- package/skills/wecom-unified/assets/templates/grove/shell/content.jsx +18 -0
- package/skills/wecom-unified/assets/templates/grove/shell/content_light.jsx +18 -0
- package/skills/wecom-unified/assets/templates/grove/slides/01_cover.slide +26 -0
- package/skills/wecom-unified/assets/templates/grove/slides/02_compare.slide +92 -0
- package/skills/wecom-unified/assets/templates/grove/slides/03_table.slide +68 -0
- package/skills/wecom-unified/assets/templates/index.json +280 -0
- package/skills/wecom-unified/assets/templates/long-table/DESIGN.preset.md +135 -0
- package/skills/wecom-unified/assets/templates/long-table/shell/content.jsx +36 -0
- package/skills/wecom-unified/assets/templates/long-table/slides/01_cover.slide +71 -0
- package/skills/wecom-unified/assets/templates/long-table/slides/02_cards.slide +72 -0
- package/skills/wecom-unified/assets/templates/long-table/slides/03_timeline.slide +81 -0
- package/skills/wecom-unified/assets/templates/long-table/slides/04_image.slide +60 -0
- package/skills/wecom-unified/assets/templates/sakura-chroma/DESIGN.preset.md +121 -0
- package/skills/wecom-unified/assets/templates/sakura-chroma/shell/content.jsx +13 -0
- package/skills/wecom-unified/assets/templates/sakura-chroma/slides/01_cover.slide +54 -0
- package/skills/wecom-unified/assets/templates/sakura-chroma/slides/02_products.slide +134 -0
- package/skills/wecom-unified/assets/templates/sakura-chroma/slides/03_section.slide +30 -0
- package/skills/wecom-unified/assets/templates/sakura-chroma/slides/04_schedule.slide +65 -0
- package/skills/wecom-unified/assets/templates/signal/DESIGN.preset.md +121 -0
- package/skills/wecom-unified/assets/templates/signal/shell/content.jsx +18 -0
- package/skills/wecom-unified/assets/templates/signal/shell/content_dark.jsx +23 -0
- package/skills/wecom-unified/assets/templates/signal/slides/01_cover.slide +48 -0
- package/skills/wecom-unified/assets/templates/signal/slides/02_cards.slide +67 -0
- package/skills/wecom-unified/assets/templates/signal/slides/03_data.slide +68 -0
- package/skills/wecom-unified/references/wecomcli-calendar-agenda.md +227 -0
- package/skills/wecom-unified/references/wecomcli-calendar-cancel.md +108 -0
- package/skills/wecom-unified/references/wecomcli-calendar-create.md +238 -0
- package/skills/wecom-unified/references/wecomcli-calendar-freebusy.md +207 -0
- package/skills/wecom-unified/references/wecomcli-calendar-meeting-room.md +170 -0
- package/skills/wecom-unified/references/wecomcli-calendar-search.md +209 -0
- package/skills/wecom-unified/references/wecomcli-calendar-update.md +272 -0
- package/skills/wecom-unified/references/wecomcli-calendar.md +296 -0
- package/skills/wecom-unified/references/wecomcli-contact.md +48 -0
- package/skills/wecom-unified/references/wecomcli-disk.md +380 -0
- package/skills/wecom-unified/references/wecomcli-doc-contents-append.md +20 -0
- package/skills/wecom-unified/references/wecomcli-doc-contents-overwrite.md +27 -0
- package/skills/wecom-unified/references/wecomcli-doc-create.md +162 -0
- package/skills/wecom-unified/references/wecomcli-doc-manage-doc-members-update.md +24 -0
- package/skills/wecom-unified/references/wecomcli-doc-manage-doc-names-update.md +20 -0
- package/skills/wecom-unified/references/wecomcli-doc-manage-doc-rules-update.md +22 -0
- package/skills/wecom-unified/references/wecomcli-doc-manage.md +127 -0
- package/skills/wecom-unified/references/wecomcli-doc.md +135 -0
- package/skills/wecom-unified/references/wecomcli-email-forward-mail.md +131 -0
- package/skills/wecom-unified/references/wecomcli-email-get-mail.md +187 -0
- package/skills/wecom-unified/references/wecomcli-email-reply-mail.md +138 -0
- package/skills/wecom-unified/references/wecomcli-email-search-mail.md +114 -0
- package/skills/wecom-unified/references/wecomcli-email-security.md +52 -0
- package/skills/wecom-unified/references/wecomcli-email-send-mail.md +186 -0
- package/skills/wecom-unified/references/wecomcli-email-send-schedule.md +83 -0
- package/skills/wecom-unified/references/wecomcli-email.md +206 -0
- package/skills/wecom-unified/references/wecomcli-media.md +89 -0
- package/skills/wecom-unified/references/wecomcli-meeting-cancel.md +113 -0
- package/skills/wecom-unified/references/wecomcli-meeting-create.md +167 -0
- package/skills/wecom-unified/references/wecomcli-meeting-list.md +228 -0
- package/skills/wecom-unified/references/wecomcli-meeting-original-get.md +101 -0
- package/skills/wecom-unified/references/wecomcli-meeting-search.md +176 -0
- package/skills/wecom-unified/references/wecomcli-meeting-update.md +217 -0
- package/skills/wecom-unified/references/wecomcli-meeting.md +366 -0
- package/skills/wecom-unified/references/wecomcli-message.md +190 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-animation.md +62 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-box.md +102 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-chart.md +261 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-codeblock.md +70 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-diagram.md +54 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-faicon.md +71 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-hyperlink.md +55 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-image.md +107 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-math.md +65 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-qrcode.md +22 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-slide.md +74 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-svg.md +95 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-table.md +72 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-text.md +96 -0
- package/skills/wecom-unified/references/wecomcli-pptx-content-contract.md +73 -0
- package/skills/wecom-unified/references/wecomcli-pptx-create-from-material.md +67 -0
- package/skills/wecom-unified/references/wecomcli-pptx-create-from-scratch.md +178 -0
- package/skills/wecom-unified/references/wecomcli-pptx-create-from-template.md +123 -0
- package/skills/wecom-unified/references/wecomcli-pptx-design-principle.md +65 -0
- package/skills/wecom-unified/references/wecomcli-pptx-government-contract.md +40 -0
- package/skills/wecom-unified/references/wecomcli-pptx-human-alignment.md +140 -0
- package/skills/wecom-unified/references/wecomcli-pptx-pptx-api.md +161 -0
- package/skills/wecom-unified/references/wecomcli-pptx-pptx-edit.md +37 -0
- package/skills/wecom-unified/references/wecomcli-pptx-story-principle.md +184 -0
- package/skills/wecom-unified/references/wecomcli-pptx-templates-README.md +165 -0
- package/skills/wecom-unified/references/wecomcli-pptx-templates-anti-ai-slop.md +52 -0
- package/skills/wecom-unified/references/wecomcli-pptx.md +158 -0
- package/skills/wecom-unified/references/wecomcli-sheet-conditional-formatting.md +203 -0
- package/skills/wecom-unified/references/wecomcli-sheet-filter.md +179 -0
- package/skills/wecom-unified/references/wecomcli-sheet-float-image.md +235 -0
- package/skills/wecom-unified/references/wecomcli-sheet-formulas.md +71 -0
- package/skills/wecom-unified/references/wecomcli-sheet-history.md +118 -0
- package/skills/wecom-unified/references/wecomcli-sheet-protection.md +170 -0
- package/skills/wecom-unified/references/wecomcli-sheet-range-operations.md +306 -0
- package/skills/wecom-unified/references/wecomcli-sheet-read-data.md +151 -0
- package/skills/wecom-unified/references/wecomcli-sheet-search-replace.md +121 -0
- package/skills/wecom-unified/references/wecomcli-sheet-structure-operations.md +394 -0
- package/skills/wecom-unified/references/wecomcli-sheet-style.md +246 -0
- package/skills/wecom-unified/references/wecomcli-sheet-table-style.md +199 -0
- package/skills/wecom-unified/references/wecomcli-sheet-validation.md +217 -0
- package/skills/wecom-unified/references/wecomcli-sheet-visual-standards.md +166 -0
- package/skills/wecom-unified/references/wecomcli-sheet-workbook.md +264 -0
- package/skills/wecom-unified/references/wecomcli-sheet-write-cells.md +320 -0
- package/skills/wecom-unified/references/wecomcli-sheet-xlsx-process.md +324 -0
- package/skills/wecom-unified/references/wecomcli-sheet.md +96 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-data-driven-pages.md +50 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-edit.md +526 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-formula-arraylist.md +369 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-formula-datetime.md +283 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-formula-logic.md +247 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-formula-math.md +362 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-formula-operators.md +246 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-formula-pageblock.md +76 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-formula-reference.md +192 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-formula-templates.md +410 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-formula-text.md +377 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-formula-user.md +22 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-mdx-syntax.md +739 -0
- package/skills/wecom-unified/references/wecomcli-smartpage.md +179 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-chart-types.md +95 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-common.md +160 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-edit.md +609 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-field-types.md +438 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-formula.md +845 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-read.md +411 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-record-values.md +218 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-ai_efficiency.md +709 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-connect_to_app.md +380 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-financial_accounting.md +369 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-hr_and_administration.md +475 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-ledger_records.md +156 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-manufacturing.md +395 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-marketing.md +186 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-office_essentials.md +299 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-personal_efficiency.md +70 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-procurement_logistics.md +325 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-project_management.md +564 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-rd_process_customer.md +222 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-rd_process_ops.md +105 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-rd_process_project.md +109 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-rd_process_research.md +92 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-sales_and_operations.md +446 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-store_management.md +431 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-team_tasks.md +274 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-wechat_customer.md +384 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-work_report.md +100 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-templates.md +53 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-view-types.md +373 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-webhook-examples.md +176 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-webhook.md +186 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet.md +147 -0
- package/skills/wecom-unified/references/wecomcli-todo-create.md +137 -0
- package/skills/wecom-unified/references/wecomcli-todo-delete.md +63 -0
- package/skills/wecom-unified/references/wecomcli-todo-finish.md +72 -0
- package/skills/wecom-unified/references/wecomcli-todo-get.md +69 -0
- package/skills/wecom-unified/references/wecomcli-todo-list.md +136 -0
- package/skills/wecom-unified/references/wecomcli-todo-update.md +112 -0
- package/skills/wecom-unified/references/wecomcli-todo.md +68 -0
- package/skills/wecom-unified/scripts/build_docx.py +1274 -0
- package/skills/wecom-unified/scripts/build_page.py +2449 -0
- package/skills/wecom-unified/scripts/collect.py +868 -0
- package/skills/wecom-unified/scripts/doc_image_extractor.py +498 -0
- package/skills/wecom-unified/scripts/pptx2image.py +268 -0
- package/skills/wecom-unified/scripts/recalc.py +403 -0
- package/systemd/wezard-svr.service.template +2 -0
- package/systemd/wezard.service.template +6 -0
- package/web/chat.css +70 -273
- package/web/chat.js +2269 -2190
- package/dist/daemon/bot-mux.js +0 -161
- package/dist/daemon/bot-mux.js.map +0 -1
- package/dist/daemon/chat-log.js +0 -130
- package/dist/daemon/chat-log.js.map +0 -1
- package/dist/daemon/dispatch.js +0 -6
- package/dist/daemon/dispatch.js.map +0 -1
- package/dist/daemon/idle-nudge.js +0 -90
- package/dist/daemon/idle-nudge.js.map +0 -1
- package/dist/daemon/message-events.js +0 -1155
- package/dist/daemon/message-events.js.map +0 -1
- package/dist/daemon/pending-items.js +0 -160
- package/dist/daemon/pending-items.js.map +0 -1
- package/dist/daemon/router.js +0 -742
- package/dist/daemon/router.js.map +0 -1
- package/dist/daemon/tips.js +0 -25
- package/dist/daemon/tips.js.map +0 -1
- package/dist/daemon/wedoc.js +0 -210
- package/dist/daemon/wedoc.js.map +0 -1
- package/dist/shared/role-search.js +0 -100
- package/dist/shared/role-search.js.map +0 -1
- package/dist/shared/startup-notice.js +0 -21
- package/dist/shared/startup-notice.js.map +0 -1
- package/dist/shared/turn-state.js +0 -27
- package/dist/shared/turn-state.js.map +0 -1
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
# 视图类型(ViewType)完整参考
|
|
2
|
+
|
|
3
|
+
## 命令拼接安全规范
|
|
4
|
+
|
|
5
|
+
当你生成命令行时,命令名、子命令和固定 flag 名照常原样书写;但命令行中任何来自用户输入、单元格或文档内容、API 返回、上一步工具输出、文件名、URL、名称、范围、公式、JSON payload 等,都必须被当作不可信的纯数据,确保命令拼接后能让内容保持纯字面量的形式。
|
|
6
|
+
|
|
7
|
+
### 规则(机械化,无例外)
|
|
8
|
+
|
|
9
|
+
对每个命令行字段的值:
|
|
10
|
+
|
|
11
|
+
1. 若命令行字段的值仅由字母、数字及 `_@%+=:,./-` 组成,则原样使用
|
|
12
|
+
2. 否则,用单引号包裹整个值,并将内部每个 `'` 替换为**五字符序列** `'"'"'`(例如:`测试'` → `'测试'"'"''`)
|
|
13
|
+
3. 若是空字符串,则使用 `''`
|
|
14
|
+
|
|
15
|
+
### 两条禁令
|
|
16
|
+
|
|
17
|
+
1、不要假设外部值是安全的,也不要因为"看起来没有特殊字符"就跳过引号化
|
|
18
|
+
2、不要选用"在该 shell 下无法真正阻断展开/注入"的包裹方式;始终选用能让内容保持纯字面量的方式。
|
|
19
|
+
|
|
20
|
+
## View(视图结构)
|
|
21
|
+
|
|
22
|
+
| 字段 | 类型 | 说明 |
|
|
23
|
+
| --- | --- | --- |
|
|
24
|
+
| `view_id` | string | 视图 ID |
|
|
25
|
+
| `view_title` | string | 视图标题 |
|
|
26
|
+
| `view_type` | string (ViewType) | 视图类型,见下方 ViewType 枚举 |
|
|
27
|
+
| `property` | ViewProperty | 视图属性 |
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## ViewParam(视图操作参数)
|
|
32
|
+
|
|
33
|
+
统一结构,根据操作指令不同使用不同字段组合:
|
|
34
|
+
|
|
35
|
+
> - `smartsheet views add` 时:传 `view_title` + `view_type`,甘特视图传 `property_gantt`,日历视图传 `property_calendar`
|
|
36
|
+
> - `smartsheet views update` 时:传 `view_id`,可选传 `view_title` 和 `property`。**不支持修改视图类型**,只能修改同一视图下的标题和属性(如筛选、排序、分组等),不能将一种视图类型改为另一种(例如不能把表格视图改为看板视图)。如需更换视图类型,只能先删除旧视图再新增新视图
|
|
37
|
+
> - `smartsheet views delete` 时:只传 `view_id`。若该子表只剩最后一个视图,须遵循 `wecomcli-smartsheet-edit.md` 顶部**删除最后一个子表/字段/视图固定流程**处理
|
|
38
|
+
|
|
39
|
+
| 字段 | 类型 | 必须 | 说明 |
|
|
40
|
+
| --- | --- | --- | --- |
|
|
41
|
+
| `view_id` | string | 条件 | 视图 ID(update、delete 时必传) |
|
|
42
|
+
| `view_title` | string | 条件 | 视图标题(add 时必传,update 时可选) |
|
|
43
|
+
| `view_type` | string (ViewType) | 条件 | 视图类型(add 时必传),见下方 ViewType 枚举 |
|
|
44
|
+
| `property` | ViewProperty | 否 | 视图属性(update 时可选) |
|
|
45
|
+
| `property_gantt` | GanttViewProperty | 否 | 甘特视图属性(add 甘特视图时必填) |
|
|
46
|
+
| `property_calendar` | CalendarViewProperty | 否 | 日历视图属性(add 日历视图时必填) |
|
|
47
|
+
| `col_infos` | ViewColInfos[] | 否 | 列宽设置 |
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## ViewType 枚举
|
|
52
|
+
|
|
53
|
+
| 参数值 | 说明 |
|
|
54
|
+
| --- | --- |
|
|
55
|
+
| `grid` | 表格视图 |
|
|
56
|
+
| `kanban` | 看板视图 |
|
|
57
|
+
| `gallery` | 画册视图 |
|
|
58
|
+
| `gantt` | 甘特视图 |
|
|
59
|
+
| `calendar` | 日历视图 |
|
|
60
|
+
| `form` | 表单视图 |
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## 特殊视图属性
|
|
65
|
+
|
|
66
|
+
### GanttViewProperty(甘特视图属性)
|
|
67
|
+
|
|
68
|
+
| 参数 | 类型 | 必须 | 说明 |
|
|
69
|
+
| --- | --- | --- | --- |
|
|
70
|
+
| `start_date_field_title` | string | 是 | 时间条起点字段名称,只允许日期类型 |
|
|
71
|
+
| `end_date_field_title` | string | 是 | 时间条终点字段名称,只允许日期类型 |
|
|
72
|
+
|
|
73
|
+
### CalendarViewProperty(日历视图属性)
|
|
74
|
+
|
|
75
|
+
| 参数 | 类型 | 必须 | 说明 |
|
|
76
|
+
| --- | --- | --- | --- |
|
|
77
|
+
| `start_date_field_title` | string | 是 | 时间条起点字段名称,只允许日期类型 |
|
|
78
|
+
| `end_date_field_title` | string | 是 | 时间条终点字段名称,只允许日期类型 |
|
|
79
|
+
|
|
80
|
+
### ViewColInfos(列宽信息)
|
|
81
|
+
|
|
82
|
+
| 参数 | 类型 | 必须 | 说明 |
|
|
83
|
+
| --- | --- | --- | --- |
|
|
84
|
+
| `field_title` | string | 是 | 字段名称 |
|
|
85
|
+
| `width` | int32 | 是 | 列宽,范围 1~1000 |
|
|
86
|
+
|
|
87
|
+
#### 列宽调整接口调用方式
|
|
88
|
+
|
|
89
|
+
通过 `smartsheet views update` 的 `col_infos` 参数设置列宽,调用前须先获取目标视图的 `view_id`:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
# 1. 获取视图列表,取第一个视图的 view_id
|
|
93
|
+
wecom-cli smartsheet views list --json '{"docid": "<docid>", "sheet_title": "<子表名称>", "limit": 100}'
|
|
94
|
+
|
|
95
|
+
# 2. 调用 views update 设置列宽(可一次性传入所有字段)
|
|
96
|
+
wecom-cli smartsheet views update --json '{
|
|
97
|
+
"docid": "<docid>",
|
|
98
|
+
"sheet_title": "<子表名称>",
|
|
99
|
+
"type": "update",
|
|
100
|
+
"views": [{
|
|
101
|
+
"view_id": "<view_id>",
|
|
102
|
+
"col_infos": [
|
|
103
|
+
{"field_title": "任务名称", "width": 280},
|
|
104
|
+
{"field_title": "优先级", "width": 160},
|
|
105
|
+
{"field_title": "状态", "width": 120}
|
|
106
|
+
]
|
|
107
|
+
}]
|
|
108
|
+
}'
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
#### 新建字段时的列宽判断规则
|
|
112
|
+
|
|
113
|
+
新建字段(含随子表初始化的字段)后,AI 须为每个字段选择合适的列宽档位,最终写入对应的 px 值。共 4 个档位:
|
|
114
|
+
|
|
115
|
+
| 档位 | 宽度 |
|
|
116
|
+
| --- | --- |
|
|
117
|
+
| `compact` | 120px |
|
|
118
|
+
| `default` | 160px |
|
|
119
|
+
| `wide` | 280px |
|
|
120
|
+
| `extra_wide` | 400px |
|
|
121
|
+
|
|
122
|
+
**判断依据:字段类型初始档位 + 字段名语义**
|
|
123
|
+
|
|
124
|
+
**第一步:按字段类型查初始档位**
|
|
125
|
+
|
|
126
|
+
| 字段类型 | 初始档位 | 备注 |
|
|
127
|
+
| --- | --- | --- |
|
|
128
|
+
| `checkbox` | `compact` | 固定,跳过第二步 |
|
|
129
|
+
| `number` | `compact` | 固定,跳过第二步 |
|
|
130
|
+
| `autonumber` | `compact` | 固定,跳过第二步 |
|
|
131
|
+
| `currency` | `compact` | 固定,跳过第二步 |
|
|
132
|
+
| `percentage` | `compact` | 固定,跳过第二步 |
|
|
133
|
+
| `progress` | `compact` | 固定,跳过第二步 |
|
|
134
|
+
| `phone_number` | `compact` | 固定,跳过第二步 |
|
|
135
|
+
| `barcode` | `compact` | 固定,跳过第二步 |
|
|
136
|
+
| `date_time`(紧凑格式) | `compact` | 固定,跳过第二步 |
|
|
137
|
+
| `created_time`(紧凑格式) | `compact` | 固定,跳过第二步 |
|
|
138
|
+
| `modified_time`(紧凑格式) | `compact` | 固定,跳过第二步 |
|
|
139
|
+
| `date_time`(宽松格式) | `default` | 固定,跳过第二步 |
|
|
140
|
+
| `created_time`(宽松格式) | `default` | 固定,跳过第二步 |
|
|
141
|
+
| `modified_time`(宽松格式) | `default` | 固定,跳过第二步 |
|
|
142
|
+
| `created_user` | `default` | 固定,跳过第二步 |
|
|
143
|
+
| `modified_user` | `default` | 固定,跳过第二步 |
|
|
144
|
+
| `email` | `default` | 固定,跳过第二步 |
|
|
145
|
+
| `single_select` | `compact` | 可调 |
|
|
146
|
+
| `select` | `default` | 可调 |
|
|
147
|
+
| `user` | `default` | 可调 |
|
|
148
|
+
| `attachment` | `default` | 可调 |
|
|
149
|
+
| `image` | `default` | 可调 |
|
|
150
|
+
| `reference` | `default` | 可调 |
|
|
151
|
+
| `two_way_link_records` | `default` | 可调 |
|
|
152
|
+
| `wwgroup` | `default` | 可调 |
|
|
153
|
+
| `formula` | `default` | 可调 |
|
|
154
|
+
| `lookup` | `default` | 可调 |
|
|
155
|
+
| `url` | `wide` | 可调 |
|
|
156
|
+
| `location` | `wide` | 可调 |
|
|
157
|
+
| `text` | `wide` | 可调 |
|
|
158
|
+
|
|
159
|
+
**第二步:对"可调"类型,按字段名语义决定是否上调**
|
|
160
|
+
|
|
161
|
+
- 字段名含"描述/备注/说明/详情/内容/原因/摘要/简介/评论/补充" → 上调至 `extra_wide`
|
|
162
|
+
- 字段名含"标题/名称/任务/需求/项目" → 取初始档位与 `wide` 中较大的档位
|
|
163
|
+
- 字段名无明显语义指示 → 保持初始档位
|
|
164
|
+
|
|
165
|
+
**第三步:列名宽度兜底检查(所有字段,含固定档位)**
|
|
166
|
+
|
|
167
|
+
估算字段名的渲染宽度:汉字按 24px/字,非汉字按 14px/字符。若估算值超过当前档位宽度,则向上取能容纳的最小档位;最高升至 `extra_wide`(400px)。
|
|
168
|
+
|
|
169
|
+
> **示例**:字段名"创建时间"(4 汉字)→ 4×24 = 96px,`compact`(120px)够用 → 保持。
|
|
170
|
+
> 字段名"是否已完成确认"(8 汉字)→ 8×24 = 192px,`compact` 不够 → 升到 `wide`(280px)。
|
|
171
|
+
> 字段名"status"(6 非汉字)→ 6×14 = 84px,`compact`(120px)够用 → 保持。
|
|
172
|
+
|
|
173
|
+
---
|
|
174
|
+
|
|
175
|
+
## ViewProperty(视图属性)
|
|
176
|
+
|
|
177
|
+
| 参数 | 类型 | 必须 | 说明 |
|
|
178
|
+
| --- | --- | --- | --- |
|
|
179
|
+
| `auto_sort` | bool | 否 | 记录变更后自动重新排序 |
|
|
180
|
+
| `sort_spec` | SortSpec | 否 | 排序设置 |
|
|
181
|
+
| `group_spec` | GroupSpec | 否 | 分组设置 |
|
|
182
|
+
| `filter_spec` | FilterSpec | 否 | 过滤筛选设置,无筛选条件时,必须**完全省略** `filter_spec` 字段;禁止传 `"filter_spec": {}` 或空的 `conditions`。空对象会被后端当作不完整的 FilterSpec 解析,触发“无效的连接符”错误。只有确实需要筛选时,才传完整的 `filter_spec`,且必须包含合法的 `conjunction` 和非空 `conditions`。 |
|
|
183
|
+
| `is_field_stat_enabled` | bool | 否 | 是否使用数据统计 |
|
|
184
|
+
| `field_visibility` | object | 否 | key 为字段名称(`field_title`),value 为布尔值表示是否显示 |
|
|
185
|
+
| `frozen_field_count` | int32 | 否 | 冻结列数量,从首列开始 |
|
|
186
|
+
| `color_config` | ViewColorConfig | 否 | 填色设置 |
|
|
187
|
+
|
|
188
|
+
### SortSpec(排序设置)
|
|
189
|
+
|
|
190
|
+
| 参数 | 类型 | 必须 | 说明 |
|
|
191
|
+
| --- | --- | --- | --- |
|
|
192
|
+
| `sort_infos` | SortInfo[] | 否 | 参与排序的字段列表 |
|
|
193
|
+
|
|
194
|
+
### SortInfo
|
|
195
|
+
|
|
196
|
+
| 参数 | 类型 | 必须 | 说明 |
|
|
197
|
+
| --- | --- | --- | --- |
|
|
198
|
+
| `field_title` | string | 是 | 字段名称 |
|
|
199
|
+
| `desc` | bool | 否 | 是否降序 |
|
|
200
|
+
|
|
201
|
+
### GroupSpec(分组设置)
|
|
202
|
+
|
|
203
|
+
| 参数 | 类型 | 必须 | 说明 |
|
|
204
|
+
| --- | --- | --- | --- |
|
|
205
|
+
| `groups` | GroupInfo[] | 否 | 参与分组的字段列表 |
|
|
206
|
+
|
|
207
|
+
### GroupInfo
|
|
208
|
+
|
|
209
|
+
| 参数 | 类型 | 必须 | 说明 |
|
|
210
|
+
| --- | --- | --- | --- |
|
|
211
|
+
| `field_title` | string | 是 | 字段名称 |
|
|
212
|
+
| `desc` | bool | 否 | 是否降序 |
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
216
|
+
## FilterSpec(过滤设置)
|
|
217
|
+
|
|
218
|
+
| 参数 | 类型 | 必须 | 说明 |
|
|
219
|
+
| --- | --- | --- | --- |
|
|
220
|
+
| `conjunction` | string | 是 | 多个 conditions 之间的组合方式:`and` (条件与) 或 `or` (条件或) |
|
|
221
|
+
| `conditions` | Condition[] | 是 | 判断条件 |
|
|
222
|
+
|
|
223
|
+
### Condition(判断条件)
|
|
224
|
+
|
|
225
|
+
> 不同字段类型支持的筛选不同,需根据字段类型实际支持的筛选条件进行组合。
|
|
226
|
+
|
|
227
|
+
| 参数 | 类型 | 必须 | 说明 |
|
|
228
|
+
| --- | --- | --- | --- |
|
|
229
|
+
| `field_title` | string | 是 | 字段名称 |
|
|
230
|
+
| `field_type` | string | 是 | 字段类型 |
|
|
231
|
+
| `operator` | string (Operator) | 是 | 判断类型,见下方 Operator 枚举 |
|
|
232
|
+
| `string_value` | StringValue | 否 | 文本/网址/电话/邮箱/地理位置/单选/多选等列类型使用。单选/多选支持直接传选项文本,后端会自动匹配并存储对应的选项 ID,不要求一定传 `options[].id` |
|
|
233
|
+
| `number_value` | NumberValue | 否 | 数字/进度/货币/百分数等列类型使用 |
|
|
234
|
+
| `bool_value` | BoolValue | 否 | 复选框列类型使用 |
|
|
235
|
+
| `user_value` | UserValue | 否 | 成员/创建人/编辑人列类型使用 |
|
|
236
|
+
| `date_time_value` | FilterDateTimeValue | 否 | 日期/创建时间/编辑时间列类型使用 |
|
|
237
|
+
|
|
238
|
+
### StringValue
|
|
239
|
+
|
|
240
|
+
| 字段 | 类型 | 说明 |
|
|
241
|
+
| --- | --- | --- |
|
|
242
|
+
| `value` | string[] | 字符串值列表 |
|
|
243
|
+
|
|
244
|
+
### NumberValue
|
|
245
|
+
|
|
246
|
+
| 字段 | 类型 | 说明 |
|
|
247
|
+
| --- | --- | --- |
|
|
248
|
+
| `value` | double | 数字值 |
|
|
249
|
+
|
|
250
|
+
### BoolValue
|
|
251
|
+
|
|
252
|
+
| 字段 | 类型 | 说明 |
|
|
253
|
+
| --- | --- | --- |
|
|
254
|
+
| `value` | bool | 布尔值 |
|
|
255
|
+
|
|
256
|
+
### UserValue
|
|
257
|
+
|
|
258
|
+
| 字段 | 类型 | 说明 |
|
|
259
|
+
| --- | --- | --- |
|
|
260
|
+
| `value` | string[] | 成员 userid 列表 |
|
|
261
|
+
|
|
262
|
+
### FilterDateTimeValue
|
|
263
|
+
|
|
264
|
+
| 字段 | 类型 | 必须 | 说明 |
|
|
265
|
+
| --- | --- | --- | --- |
|
|
266
|
+
| `type` | string (DateTimeType) | 是 | 日期类型,见下方 DateTimeType 枚举 |
|
|
267
|
+
| `value` | string[] | 是 | 具体日期值,type 为 `detail_date` 时必填,格式为 `YYYY-MM-DD HH:mm:ss`,例如 `["2026-06-01 00:00:00"]` |
|
|
268
|
+
|
|
269
|
+
---
|
|
270
|
+
|
|
271
|
+
## 通用枚举值
|
|
272
|
+
|
|
273
|
+
### Operator(判断类型)
|
|
274
|
+
|
|
275
|
+
| 参数值 | 说明 |
|
|
276
|
+
| --- | --- |
|
|
277
|
+
| `is` | 等于 |
|
|
278
|
+
| `is_not` | 不等于 |
|
|
279
|
+
| `contains` | 包含 |
|
|
280
|
+
| `does_not_contain` | 不包含 |
|
|
281
|
+
| `is_greater` | 大于/时间晚于 |
|
|
282
|
+
| `is_greater_or_equal` | 大于或等于/时间晚于 |
|
|
283
|
+
| `is_less` | 小于/早于 |
|
|
284
|
+
| `is_less_or_equal` | 小于或等于/时间早于 |
|
|
285
|
+
| `is_empty` | 为空 |
|
|
286
|
+
| `is_not_empty` | 不为空 |
|
|
287
|
+
|
|
288
|
+
### DateTimeType(日期类型)
|
|
289
|
+
|
|
290
|
+
| 参数值 | 说明 |
|
|
291
|
+
| --- | --- |
|
|
292
|
+
| `detail_date` | 具体时间 |
|
|
293
|
+
| `today` | 今天 |
|
|
294
|
+
| `tomorrow` | 明天 |
|
|
295
|
+
| `yesterday` | 昨天 |
|
|
296
|
+
| `current_week` | 本周 |
|
|
297
|
+
| `last_week` | 上周 |
|
|
298
|
+
| `current_month` | 本月 |
|
|
299
|
+
| `the_past_7_days` | 过去 7 天内 |
|
|
300
|
+
| `the_next_7_days` | 接下来 7 天内 |
|
|
301
|
+
| `last_month` | 上月 |
|
|
302
|
+
| `the_past_30_days` | 过去 30 天内 |
|
|
303
|
+
| `the_next_30_days` | 接下来 30 天内 |
|
|
304
|
+
|
|
305
|
+
---
|
|
306
|
+
|
|
307
|
+
## 填色设置
|
|
308
|
+
|
|
309
|
+
### ViewColorConfig
|
|
310
|
+
|
|
311
|
+
| 参数 | 类型 | 必须 | 说明 |
|
|
312
|
+
| --- | --- | --- | --- |
|
|
313
|
+
| `conditions` | ViewColorCondition[] | 是 | 填色条件列表 |
|
|
314
|
+
|
|
315
|
+
### ViewColorCondition
|
|
316
|
+
|
|
317
|
+
| 参数 | 类型 | 必须 | 说明 |
|
|
318
|
+
| --- | --- | --- | --- |
|
|
319
|
+
| `id` | string | 否 | 填色 ID,新增时不需要传入,更新时传入 |
|
|
320
|
+
| `type` | string (ViewColorConditionType) | 是 | 填色类型,见下方枚举 |
|
|
321
|
+
| `color` | string (ViewColor) | 是 | 颜色,见下方 ViewColor 枚举 |
|
|
322
|
+
| `condition` | Condition | 是 | 判断条件 |
|
|
323
|
+
|
|
324
|
+
### ViewColorConditionType
|
|
325
|
+
|
|
326
|
+
| 参数值 | 说明 |
|
|
327
|
+
| --- | --- |
|
|
328
|
+
| `row` | 行 |
|
|
329
|
+
| `column` | 列 |
|
|
330
|
+
| `cell` | 单元格 |
|
|
331
|
+
|
|
332
|
+
### ViewColor(颜色值)
|
|
333
|
+
|
|
334
|
+
| 颜色值 | 描述 |
|
|
335
|
+
| --- | --- |
|
|
336
|
+
| `fillColorGray_5` | 灰色\_5 |
|
|
337
|
+
| `accentBlueLighten_5` | 蓝色\_5 |
|
|
338
|
+
| `chromeCyanLighten_5` | 青色\_5 |
|
|
339
|
+
| `chromeMintLighten_5` | 薄荷色\_5 |
|
|
340
|
+
| `chromeRedLighten_5` | 红色\_5 |
|
|
341
|
+
| `chromeOrangeLighten_5` | 橙色\_5 |
|
|
342
|
+
| `chromeAmberLighten_5` | 琥珀色\_5 |
|
|
343
|
+
| `chromeVioletLighten_5` | 紫色\_5 |
|
|
344
|
+
| `chromePinkLighten_5` | 粉色\_5 |
|
|
345
|
+
| `fillColorGray_4` | 灰色\_4 |
|
|
346
|
+
| `accentBlueLighten_4` | 蓝色\_4 |
|
|
347
|
+
| `chromeCyanLighten_4` | 青色\_4 |
|
|
348
|
+
| `chromeMintLighten_4` | 薄荷色\_4 |
|
|
349
|
+
| `chromeRedLighten_4` | 红色\_4 |
|
|
350
|
+
| `chromeOrangeLighten_4` | 橙色\_4 |
|
|
351
|
+
| `chromeAmberLighten_4` | 琥珀色\_4 |
|
|
352
|
+
| `chromeVioletLighten_4` | 紫色\_4 |
|
|
353
|
+
| `chromePinkLighten_4` | 粉色\_4 |
|
|
354
|
+
| `fillColorGray_3` | 灰色\_3 |
|
|
355
|
+
| `accentBlueLighten_3` | 蓝色\_3 |
|
|
356
|
+
| `chromeCyanLighten_3` | 青色\_3 |
|
|
357
|
+
| `chromeMintLighten_3` | 薄荷色\_3 |
|
|
358
|
+
| `chromeRedLighten_3` | 红色\_3 |
|
|
359
|
+
| `chromeOrangeLighten_3` | 橙色\_3 |
|
|
360
|
+
| `chromeAmberLighten_3` | 琥珀色\_3 |
|
|
361
|
+
| `chromeVioletLighten_3` | 紫色\_3 |
|
|
362
|
+
| `chromePinkLighten_3` | 粉色\_3 |
|
|
363
|
+
|
|
364
|
+
---
|
|
365
|
+
|
|
366
|
+
## 其他通用结构
|
|
367
|
+
|
|
368
|
+
### Sort(排序参数)
|
|
369
|
+
|
|
370
|
+
| 参数 | 类型 | 必须 | 说明 |
|
|
371
|
+
| --- | --- | --- | --- |
|
|
372
|
+
| `field_title` | string | 是 | 需要排序的字段名称 |
|
|
373
|
+
| `desc` | bool | 否 | 是否降序排序,默认 false |
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
# 智能表格 Webhook 真实场景示例
|
|
2
|
+
|
|
3
|
+
仅在需要构造 Webhook payload 时按需阅读。示例中的字段 ID 都是占位符,实际请求必须使用用户提供的 schema 中的字段 ID。
|
|
4
|
+
|
|
5
|
+
## 场景一:记录 Bug(文本、单选、成员、图片)
|
|
6
|
+
|
|
7
|
+
```json
|
|
8
|
+
{
|
|
9
|
+
"add_records": [
|
|
10
|
+
{
|
|
11
|
+
"values": {
|
|
12
|
+
"fABCD1": "登录页在 Safari 浏览器下加载后白屏,其他浏览器正常。",
|
|
13
|
+
"fABCD2": [{"text": "前端"}],
|
|
14
|
+
"fABCD3": [{"text": "严重"}],
|
|
15
|
+
"fABCD4": [{"user_id": "wangwu"}],
|
|
16
|
+
"fABCD5": [{"title": "safari-bug-screenshot.png", "image_base64": "iVBORw0KGgo..."}]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
图片只传纯 base64,不带 `data:image/...;base64,` 前缀。
|
|
24
|
+
|
|
25
|
+
## 场景二:记录任务(文本、日期、成员、单选、空图片)
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{
|
|
29
|
+
"add_records": [
|
|
30
|
+
{
|
|
31
|
+
"values": {
|
|
32
|
+
"fTITLE": "完成支付模块单元测试,覆盖率达到 80%",
|
|
33
|
+
"fDUEDATE": "1742400000000",
|
|
34
|
+
"fOWNER": [{"user_id": "lisi"}],
|
|
35
|
+
"fSTATUS": [{"text": "未开始"}],
|
|
36
|
+
"fIMAGE": []
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
成员字段:
|
|
44
|
+
|
|
45
|
+
- 有 userid 时使用 `[{"user_id":"账号名"}]`。
|
|
46
|
+
- 只有姓名时可使用 `["张三"]`,但无法匹配时不会写入;可先通过 `wecomcli-contact.md` 查询 userid。
|
|
47
|
+
- 暂不指定时使用 `[]`。
|
|
48
|
+
|
|
49
|
+
图片字段暂无图片时使用 `[]`。文件附件字段不受 Webhook 支持,应跳过而不是用空数组尝试写入。
|
|
50
|
+
|
|
51
|
+
## 场景三:批量新增多条记录
|
|
52
|
+
|
|
53
|
+
```json
|
|
54
|
+
{
|
|
55
|
+
"add_records": [
|
|
56
|
+
{
|
|
57
|
+
"values": {
|
|
58
|
+
"fCUST_NAME": "张伟",
|
|
59
|
+
"fCOMPANY": "北京某科技有限公司",
|
|
60
|
+
"fSTAGE": [{"text": "跟进中"}],
|
|
61
|
+
"fSOURCE": [{"text": "展会"}]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"values": {
|
|
66
|
+
"fCUST_NAME": "陈静",
|
|
67
|
+
"fCOMPANY": "上海某贸易有限公司",
|
|
68
|
+
"fSTAGE": [{"text": "初步接触"}],
|
|
69
|
+
"fSOURCE": [{"text": "冷呼"}]
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"values": {
|
|
74
|
+
"fCUST_NAME": "刘洋",
|
|
75
|
+
"fCOMPANY": "广州某制造有限公司",
|
|
76
|
+
"fSTAGE": [{"text": "已成交"}],
|
|
77
|
+
"fSOURCE": [{"text": "老客户转介绍"}]
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
超过 100 条时先按 `wecomcli-smartsheet.md` 取得用户确认;每批不超过 500 条,并遵守频率限制。
|
|
85
|
+
|
|
86
|
+
## 场景四:更新一条 Webhook 记录
|
|
87
|
+
|
|
88
|
+
```json
|
|
89
|
+
{
|
|
90
|
+
"update_records": [
|
|
91
|
+
{
|
|
92
|
+
"record_id": "REC_20250301",
|
|
93
|
+
"values": {
|
|
94
|
+
"fSTATUS": [{"text": "已完成"}],
|
|
95
|
+
"fPROGRESS": 100
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
只能更新此前通过 Webhook 写入的记录。人工创建或通过普通接口创建的记录无法使用此方式更新。
|
|
103
|
+
|
|
104
|
+
## 场景五:批量更新 Webhook 记录
|
|
105
|
+
|
|
106
|
+
```json
|
|
107
|
+
{
|
|
108
|
+
"update_records": [
|
|
109
|
+
{"record_id": "REC_001", "values": {"fSTATUS": [{"text": "已通过"}], "fAPPROVER": [{"user_id": "manager_a"}]}},
|
|
110
|
+
{"record_id": "REC_002", "values": {"fSTATUS": [{"text": "已通过"}], "fAPPROVER": [{"user_id": "manager_a"}]}},
|
|
111
|
+
{"record_id": "REC_003", "values": {"fSTATUS": [{"text": "已通过"}], "fAPPROVER": [{"user_id": "manager_a"}]}}
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## 场景六:销售订单(多种字段类型)
|
|
117
|
+
|
|
118
|
+
```json
|
|
119
|
+
{
|
|
120
|
+
"add_records": [
|
|
121
|
+
{
|
|
122
|
+
"values": {
|
|
123
|
+
"fCUSTOMER": "北京某科技有限公司",
|
|
124
|
+
"fPRODUCT": [{"text": "企业版"}],
|
|
125
|
+
"fAMOUNT": 58000,
|
|
126
|
+
"fSIGN_DATE": "1741622400000",
|
|
127
|
+
"fSALES": [{"user_id": "zhaoliu"}],
|
|
128
|
+
"fCONTRACT": [{"text": "合同文件", "link": "https://doc.example.com/contract/2025-001"}]
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## 场景七:会议纪要(文本、日期、链接)
|
|
136
|
+
|
|
137
|
+
```json
|
|
138
|
+
{
|
|
139
|
+
"add_records": [
|
|
140
|
+
{
|
|
141
|
+
"values": {
|
|
142
|
+
"fMEETING_TITLE": "支付模块需求评审会",
|
|
143
|
+
"fDATE": "1741622400000",
|
|
144
|
+
"fPARTICIPANTS": "产品、开发、测试",
|
|
145
|
+
"fSUMMARY": "确定优先开发支付模块,目标 3 月底完成联调,4 月初上线。",
|
|
146
|
+
"fDOC_LINK": [{"text": "评审文档", "link": "https://doc.example.com/meeting/20250310"}]
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## 场景八:同一请求新增并更新
|
|
154
|
+
|
|
155
|
+
```json
|
|
156
|
+
{
|
|
157
|
+
"add_records": [
|
|
158
|
+
{
|
|
159
|
+
"values": {
|
|
160
|
+
"fTITLE": "用户反馈收集与分析",
|
|
161
|
+
"fSTATUS": [{"text": "未开始"}],
|
|
162
|
+
"fPRIORITY": [{"text": "高"}]
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
"update_records": [
|
|
167
|
+
{
|
|
168
|
+
"record_id": "REC_OLD_001",
|
|
169
|
+
"values": {
|
|
170
|
+
"fSTATUS": [{"text": "已完成"}],
|
|
171
|
+
"fPROGRESS": 100
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
}
|
|
176
|
+
```
|