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,377 @@
|
|
|
1
|
+
# 文本处理公式函数 - CHAR, CONCAT, CONCATENATE, CONTAINTEXT, FIND, LEFT, LEN, LOWER, MID, REPLACE, RIGHT, SEARCH, SPLIT, SUBSTITUTE, TEXT, TEXTJOIN, TODATE, TRIM, UPPER
|
|
2
|
+
|
|
3
|
+
> 用于文本拼接、截取、替换、格式化、大小写转换等文本处理,适用于姓名格式规范化、文本拼接、日期格式化等场景。
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## CHAR - 字符转换
|
|
8
|
+
|
|
9
|
+
**表达式**: `CHAR(数字)`
|
|
10
|
+
|
|
11
|
+
**函数说明**: 返回数字代码所对应的 Unicode 字符
|
|
12
|
+
|
|
13
|
+
**参数说明**: 数字:需要转换为 Unicode 的数字
|
|
14
|
+
- 10-换行符
|
|
15
|
+
- 32-空白键
|
|
16
|
+
- 48到57-数字0到9
|
|
17
|
+
- 65到90-大写字母A到Z
|
|
18
|
+
- 97到122-小写字母a到z
|
|
19
|
+
|
|
20
|
+
**示例**:
|
|
21
|
+
```
|
|
22
|
+
CHAR(10) => \n // 换行符号
|
|
23
|
+
CHAR([数据表.数字字段]) => 各行的unicode
|
|
24
|
+
CHAR([页面.控件名称]) => unicode
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## CONCAT - 文本拼接
|
|
30
|
+
|
|
31
|
+
**表达式**: `CONCAT(文本1,[文本2,...])`
|
|
32
|
+
|
|
33
|
+
**函数说明**: 将多个文本拼接成单个文本。要拼接双引号,需要连续输入两个双引号。
|
|
34
|
+
|
|
35
|
+
**参数说明**: 文本1:要联接的文本项。 字符串或字符串数组,后续数值是可选的
|
|
36
|
+
|
|
37
|
+
**示例**:
|
|
38
|
+
```
|
|
39
|
+
CONCAT([姓名], "-", [年龄])=> 小明 - 28
|
|
40
|
+
CONCAT("""", [产品名称], """") => "智能表格"
|
|
41
|
+
注:[列名]表示引用了同一条记录中此列的单元格参与公式计算
|
|
42
|
+
[姓] & [名]
|
|
43
|
+
CONCAT([城市], "-", [区域])
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## CONCATENATE - 文本拼接
|
|
49
|
+
|
|
50
|
+
**表达式**: `CONCATENATE(字符串1, [字符串2, ...])`
|
|
51
|
+
|
|
52
|
+
**函数说明**: 可将两个或多个文本项连接成一个文本项。
|
|
53
|
+
|
|
54
|
+
**参数说明**:
|
|
55
|
+
- 文本1:必需,加入的第一个文本项
|
|
56
|
+
- 文本2:可选,要加入的其他文本项
|
|
57
|
+
|
|
58
|
+
**示例**:
|
|
59
|
+
```
|
|
60
|
+
CONCATENATE("Hello"," ","World") => "Hello World"
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## CONTAINTEXT - 文本包含判断
|
|
66
|
+
|
|
67
|
+
**表达式**: `CONTAINTEXT(文本 ,查找文本)`
|
|
68
|
+
|
|
69
|
+
**函数说明**: 判断文本中是否包含要查找的文本
|
|
70
|
+
|
|
71
|
+
**参数说明**:
|
|
72
|
+
- 文本:查找范围,可以是一个文本或一个字段
|
|
73
|
+
- 查找文本:需要查找的文本
|
|
74
|
+
|
|
75
|
+
**示例**:
|
|
76
|
+
```
|
|
77
|
+
CONTAINTEXT("智能表格","表格") => true
|
|
78
|
+
CONTAINTEXT([描述], "重要")
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## FIND - 查找位置
|
|
84
|
+
|
|
85
|
+
**表达式**: `FIND(查找的值, 查找范围, [起始位置])`
|
|
86
|
+
|
|
87
|
+
**函数说明**: 从指定位置开始查找值,找到值在查找范围中第一次出现的位置
|
|
88
|
+
|
|
89
|
+
**参数说明**:
|
|
90
|
+
- 查找的值:必需,要查找的值
|
|
91
|
+
- 查找范围:可以是多个值也可以是一个值
|
|
92
|
+
- 开始位置:可选,默认从1开始
|
|
93
|
+
|
|
94
|
+
**示例**:
|
|
95
|
+
```
|
|
96
|
+
FIND("花", "人面桃花相映红") => 4
|
|
97
|
+
FIND("红", LIST("人","面","桃","花","相","映","红")) => 7
|
|
98
|
+
FIND(1, LIST(1,2,3)) => 1
|
|
99
|
+
FIND("@", [邮箱])
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## LEFT - 左侧截取
|
|
105
|
+
|
|
106
|
+
**表达式**: `LEFT(字符串, [字符数])`
|
|
107
|
+
|
|
108
|
+
**函数说明**: 从左提取字符串指定长度的子串
|
|
109
|
+
|
|
110
|
+
**参数说明**:
|
|
111
|
+
- 字符串:必需,包含要提取的字符的文本字符串
|
|
112
|
+
- 字符数:可选,指定要由LEFT提取的字符的数量
|
|
113
|
+
|
|
114
|
+
**示例**:
|
|
115
|
+
```
|
|
116
|
+
LEFT("人面桃花相映红", 2) =>"人面"
|
|
117
|
+
LEFT([手机号], 3) // 前3位
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## LEN - 长度
|
|
123
|
+
|
|
124
|
+
**表达式**: `LEN(文本)`
|
|
125
|
+
|
|
126
|
+
**函数说明**: 返回文本字符串中的字符个数。
|
|
127
|
+
|
|
128
|
+
**参数说明**: 文本:必需,要查找其长度的文本。 空格将作为字符进行计数
|
|
129
|
+
|
|
130
|
+
**示例**:
|
|
131
|
+
```
|
|
132
|
+
LEN("abcd") => 4
|
|
133
|
+
LEN([描述]) // 获取描述文字的长度
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## LOWER - 小写转换
|
|
139
|
+
|
|
140
|
+
**表达式**: `LOWER(文本)`
|
|
141
|
+
|
|
142
|
+
**函数说明**: 将文本中的全部大写字母替换为小写字母
|
|
143
|
+
|
|
144
|
+
**参数说明**: 文本:必需,要转换为小写的字符串
|
|
145
|
+
|
|
146
|
+
**示例**:
|
|
147
|
+
```
|
|
148
|
+
LOWER("SmartSheet") => "smartsheet"
|
|
149
|
+
LOWER([城市])
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## MID - 中间截取
|
|
155
|
+
|
|
156
|
+
**表达式**: `MID(文本, 开始位置, 提取长度)`
|
|
157
|
+
|
|
158
|
+
**函数说明**: 提取字符串中从指定开始位置开始的指定提取长度的字符串
|
|
159
|
+
|
|
160
|
+
**参数说明**:
|
|
161
|
+
- 文本:必需,包含要提取字符的文本字符串
|
|
162
|
+
- 开始位置:必需,文本中要提取的第一个字符的位置。 文本中第一个字符的开始位置为 1,以此类推
|
|
163
|
+
- 提取长度:必需,指定希望 MID 从文本中返回字符的个数
|
|
164
|
+
|
|
165
|
+
**示例**:
|
|
166
|
+
```
|
|
167
|
+
MID("腾讯文档智能表格",5,4) => "智能表格"
|
|
168
|
+
MID([身份证号], 7, 8) // 提取出生日期
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## REPLACE - 替换
|
|
174
|
+
|
|
175
|
+
**表达式**: `REPLACE(文本, 位置, 长度, 新文本)`
|
|
176
|
+
|
|
177
|
+
**函数说明**: 将文本中指定位置和长度的部分文本替换为新文本
|
|
178
|
+
|
|
179
|
+
**参数说明**:
|
|
180
|
+
- 文本:必需。要对其局部进行替换操作的文本
|
|
181
|
+
- 替代位置:必需。开始进行替换操作的位置(文本开头位置为1)
|
|
182
|
+
- 字符数:必需。要在文本中替换的字符个数
|
|
183
|
+
- 新文本:可选。未必需。要插入到原有文本中的文本
|
|
184
|
+
|
|
185
|
+
**示例**:
|
|
186
|
+
```
|
|
187
|
+
REPLACE("人面桃花相映红", -5, -1, "梨") =>"人面梨花相映红"
|
|
188
|
+
REPLACE([手机号], 4, 4, "****")
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
## RIGHT - 右侧截取
|
|
194
|
+
|
|
195
|
+
**表达式**: `RIGHT(字符串, [字符数])`
|
|
196
|
+
|
|
197
|
+
**函数说明**: 从右提取字符串指定长度的子串
|
|
198
|
+
|
|
199
|
+
**参数说明**:
|
|
200
|
+
- 字符串:必需,包含要提取字符的文本字符串
|
|
201
|
+
- 字符数:可选,指定希望RIGHT提取的字符数
|
|
202
|
+
|
|
203
|
+
**示例**:
|
|
204
|
+
```
|
|
205
|
+
RIGHT("人面桃花相映红", 2) =>"映红"
|
|
206
|
+
RIGHT([手机号], 4) // 后4位
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
## SEARCH - 查找位置
|
|
212
|
+
|
|
213
|
+
**表达式**: `SEARCH(查询文本,被查询文本,[编号])`
|
|
214
|
+
|
|
215
|
+
**函数说明**: 可在第二个文本字符串中查找第一个文本字符串,并返回第一个文本字符串的起始位置的编号,该编号从第二个文本字符串的第一个字符算起。
|
|
216
|
+
|
|
217
|
+
**参数说明**:
|
|
218
|
+
- 查询文本:必需,要查找的文本
|
|
219
|
+
- 被查询文本:必需,要在其中搜索查询文本参数的值的文本
|
|
220
|
+
- 编号:可选,被查询文本参数中从之开始搜索的字符编号
|
|
221
|
+
|
|
222
|
+
**示例**:
|
|
223
|
+
```
|
|
224
|
+
SEARCH("e","Hello",1) => 2
|
|
225
|
+
SEARCH("公司", [公司名称])
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
## SPLIT - 分割
|
|
231
|
+
|
|
232
|
+
**表达式**: `SPLIT(文本, 分隔符)`
|
|
233
|
+
|
|
234
|
+
**函数说明**: 使用分隔符对文本进行分割
|
|
235
|
+
|
|
236
|
+
**参数说明**:
|
|
237
|
+
- 文本:要拆分的文本
|
|
238
|
+
- 分隔符:用于拆分文本的一个或多个字符
|
|
239
|
+
|
|
240
|
+
**示例**:
|
|
241
|
+
```
|
|
242
|
+
SPLIT("智-能-表-格","-")=> "智","能","表","格"
|
|
243
|
+
SPLIT([标签], ",")
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
---
|
|
247
|
+
|
|
248
|
+
## SUBSTITUTE - 文本替换
|
|
249
|
+
|
|
250
|
+
**表达式**: `SUBSTITUTE(要替换部分字符的文本, 被替换文本, 替换文本, [被替换文本序号])`
|
|
251
|
+
|
|
252
|
+
**函数说明**: 可在某一文本字符串中用新文本替代指定的旧文本。
|
|
253
|
+
|
|
254
|
+
**参数说明**:
|
|
255
|
+
- 文本:必需,包含要替换字符的旧文本单元格的文本或引用
|
|
256
|
+
- 被替换文本:必需,要被替换的文本
|
|
257
|
+
- 新文本:必需,用于替换旧文本的文本
|
|
258
|
+
- 替换位置:可选,指定要用新文本替换的旧文本的出现位置。默认情况下,所有出现的旧文本都被替换; 但是如果指定替换位置,则仅替换指示的实例
|
|
259
|
+
|
|
260
|
+
**示例**:
|
|
261
|
+
```
|
|
262
|
+
SUBSTITUTE("hello world","hello","Hello") => "Hello world"
|
|
263
|
+
SUBSTITUTE([手机号], " ", "") // 去除空格
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
---
|
|
267
|
+
|
|
268
|
+
## TEXT - 格式化为文本
|
|
269
|
+
|
|
270
|
+
**表达式**: `TEXT(数值,格式)`
|
|
271
|
+
|
|
272
|
+
**函数说明**: 按指定格式将数字转为文本
|
|
273
|
+
|
|
274
|
+
**参数说明**:
|
|
275
|
+
- 数值:必需,要转换为文本的数值
|
|
276
|
+
- 格式:必需,一个文本字符串,定义要应用于所提供值的格式
|
|
277
|
+
- "YYYY/MM/DD"(年月日)
|
|
278
|
+
- "YYYY" (年份全称)
|
|
279
|
+
- "YY" (年份简称)
|
|
280
|
+
- "MMM" (月份全称)
|
|
281
|
+
- "MM" (月份数字全写)
|
|
282
|
+
- "M" (月份数字)
|
|
283
|
+
- "DD"(日数字全写)
|
|
284
|
+
- "D"(日数字)
|
|
285
|
+
- "DDDD"(星期全称)
|
|
286
|
+
- "DDD"(星期简称)
|
|
287
|
+
- "hh" (小时)
|
|
288
|
+
- "mm" (分钟)
|
|
289
|
+
- "ss" (秒钟)
|
|
290
|
+
- "0.0%"(百分比)
|
|
291
|
+
- "0,0" (千位分隔符)
|
|
292
|
+
- "0" (数字补位符)
|
|
293
|
+
- "#" (数字占位符)
|
|
294
|
+
|
|
295
|
+
**示例**:
|
|
296
|
+
```
|
|
297
|
+
TEXT("2026-05-14", "ddd")=> 周四
|
|
298
|
+
TEXT("2026-05-14", "YYYY")=> 2026
|
|
299
|
+
TEXT("2026-05-14", "MM")=> 05
|
|
300
|
+
TEXT("2026-05-14", "M")=> 5
|
|
301
|
+
TEXT("19:30", "HH")=> 19
|
|
302
|
+
TEXT("19:30", "HH:MM")=> 19:30
|
|
303
|
+
TEXT("19:30:34", "HH:MM")=> 19:30
|
|
304
|
+
TEXT(0.3,"0.00%")=> 30.00%
|
|
305
|
+
TEXT(1.23,"##.#")=> 1.2
|
|
306
|
+
TEXT(1.23,"00.0")=> 01.2
|
|
307
|
+
TEXT(TODAY(), "YYYY-MM-DD")
|
|
308
|
+
TEXT([金额], "#,##0.00")
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
## TEXTJOIN - 文本连接
|
|
314
|
+
|
|
315
|
+
**表达式**: `TEXTJOIN(分隔符,空白值,文本1,[文本2,...])`
|
|
316
|
+
|
|
317
|
+
**函数说明**: TEXTJOIN函数将多个区域和/字符串的文本组合起来,并可以在要组合的各文本值之间插入指定的分隔符。如果分隔符是空的文本字符串,则此函数将有效连接这些区域。
|
|
318
|
+
|
|
319
|
+
**参数说明**:
|
|
320
|
+
- 分隔符:必需。文本字符串(空)或一个或多个用双引号括起来的字符,或对有效文本字符串的引用。如果提供了一个数字,它将被视为文本
|
|
321
|
+
- 空白值:必需。如果为TRUE,则忽略空白单元格
|
|
322
|
+
- 文本1:必需。要加入的文本项。文本字符串或字符串数组
|
|
323
|
+
- 文本2:可选。要加入的其他文本项
|
|
324
|
+
|
|
325
|
+
**示例**:
|
|
326
|
+
```
|
|
327
|
+
TEXTJOIN(" ",TRUE,"hello","world") => "hello world"
|
|
328
|
+
TEXTJOIN(", ", TRUE, [姓名1], [姓名2], [姓名3])
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
---
|
|
332
|
+
|
|
333
|
+
## TODATE - 文本转日期
|
|
334
|
+
|
|
335
|
+
**表达式**: `TODATE(文本)`
|
|
336
|
+
|
|
337
|
+
**函数说明**: 将文本转成日期格式
|
|
338
|
+
|
|
339
|
+
**参数说明**: 文本:要转的文本值
|
|
340
|
+
|
|
341
|
+
**示例**:
|
|
342
|
+
```
|
|
343
|
+
TODATE("2026-5-9")=> 2026/05/09
|
|
344
|
+
TODATE("2026-01-01")
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
---
|
|
348
|
+
|
|
349
|
+
## TRIM - 去除空格
|
|
350
|
+
|
|
351
|
+
**表达式**: `TRIM(文本)`
|
|
352
|
+
|
|
353
|
+
**函数说明**: 移除文本中最前和最后的空格
|
|
354
|
+
|
|
355
|
+
**参数说明**: 文本:要移除空格的文本
|
|
356
|
+
|
|
357
|
+
**示例**:
|
|
358
|
+
```
|
|
359
|
+
TRIM(" 智能 表格 ")=>智能 表格
|
|
360
|
+
TRIM([姓名])
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
---
|
|
364
|
+
|
|
365
|
+
## UPPER - 大写转换
|
|
366
|
+
|
|
367
|
+
**表达式**: `UPPER(文本)`
|
|
368
|
+
|
|
369
|
+
**函数说明**: 将文本中的全部小写字母替换为大写字母
|
|
370
|
+
|
|
371
|
+
**参数说明**: 文本:必需,要转换为大写的字符串
|
|
372
|
+
|
|
373
|
+
**示例**:
|
|
374
|
+
```
|
|
375
|
+
UPPER("SmartSheet")=> "SMARTSHEET"
|
|
376
|
+
UPPER([邮箱])
|
|
377
|
+
```
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# 用户信息公式函数 - USER
|
|
2
|
+
|
|
3
|
+
> 用于获取当前登录用户信息(头像、姓名、企业名称),适用于个人任务筛选、数据权限控制、我的待办等场景。
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## USER - 当前用户
|
|
8
|
+
|
|
9
|
+
USER()
|
|
10
|
+
|
|
11
|
+
返回当前查看页面的用户对象。
|
|
12
|
+
|
|
13
|
+
**示例**:
|
|
14
|
+
|
|
15
|
+
// 筛选当前用户负责的任务
|
|
16
|
+
[任务表].FILTER([Each].[负责人] = USER())
|
|
17
|
+
|
|
18
|
+
// 判断是否为当前用户创建的记录
|
|
19
|
+
IF([创建人] = USER(), "我创建的", "他人创建")
|
|
20
|
+
|
|
21
|
+
// 获取当前用户名称(需要根据实际字段结构调整)
|
|
22
|
+
[用户表].FILTER([Each].[用户] = USER()).[姓名].FIRST()
|