wezard 2.8.8 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +0 -6
- package/CLAUDE.md +36 -16
- package/README.md +41 -54
- package/cli/wezard.sh +3 -0
- package/config.example.jsonc +6 -8
- package/dist/cli/codex-hook.js +20 -4
- package/dist/cli/codex-hook.js.map +1 -1
- package/dist/cli/init.js +45 -8
- 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 +32 -112
- package/dist/cli/sync.js.map +1 -1
- package/dist/daemon/apprentice.js +75 -0
- package/dist/daemon/apprentice.js.map +1 -0
- package/dist/daemon/approval.js +78 -20
- package/dist/daemon/approval.js.map +1 -1
- package/dist/daemon/channel-context.js +69 -0
- package/dist/daemon/channel-context.js.map +1 -0
- package/dist/daemon/channel-posts.js +53 -0
- package/dist/daemon/channel-posts.js.map +1 -0
- package/dist/daemon/channel-store.js +96 -0
- package/dist/daemon/channel-store.js.map +1 -0
- package/dist/daemon/channel.js +805 -0
- package/dist/daemon/channel.js.map +1 -0
- package/dist/daemon/chat-name.js +24 -161
- package/dist/daemon/chat-name.js.map +1 -1
- package/dist/daemon/classes.js +418 -0
- package/dist/daemon/classes.js.map +1 -0
- package/dist/daemon/config-api.js +11 -3
- package/dist/daemon/config-api.js.map +1 -1
- package/dist/daemon/danger.js +24 -205
- package/dist/daemon/danger.js.map +1 -1
- package/dist/daemon/detail.js +14 -8
- package/dist/daemon/detail.js.map +1 -1
- package/dist/daemon/handoff.js +266 -50
- package/dist/daemon/handoff.js.map +1 -1
- package/dist/daemon/http.js +25 -18
- 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 +366 -143
- package/dist/daemon/inbound.js.map +1 -1
- package/dist/daemon/index.js +2232 -2616
- package/dist/daemon/index.js.map +1 -1
- package/dist/daemon/last-response.js +44 -9
- package/dist/daemon/last-response.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 +10 -2
- package/dist/daemon/message-format.js.map +1 -1
- package/dist/daemon/mirror-bridge.js +714 -485
- 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 +2 -2
- package/dist/daemon/notices.js.map +1 -1
- package/dist/daemon/onboarding.js +384 -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 +38 -230
- package/dist/daemon/peers.js.map +1 -1
- package/dist/daemon/pending.js +7 -5
- package/dist/daemon/pending.js.map +1 -1
- package/dist/daemon/picker-policy.js +27 -12
- package/dist/daemon/picker-policy.js.map +1 -1
- package/dist/daemon/plans.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-facts.js +35 -0
- package/dist/daemon/room-facts.js.map +1 -0
- package/dist/daemon/room-hub.js +430 -0
- package/dist/daemon/room-hub.js.map +1 -0
- package/dist/daemon/room-overdue.js +98 -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 +153 -0
- package/dist/daemon/room-watchdog.js.map +1 -0
- package/dist/daemon/rooms.js +107 -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/spawn-tmux.js +171 -55
- package/dist/daemon/spawn-tmux.js.map +1 -1
- package/dist/daemon/steward-guard.js +2 -2
- package/dist/daemon/steward.js +132 -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/turn-opening.js +25 -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 +7 -2
- package/dist/daemon/wezard-session.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 +589 -145
- package/dist/daemon/wizard.js.map +1 -1
- package/dist/mcp/output.js +6 -5
- package/dist/mcp/output.js.map +1 -1
- package/dist/mcp/tools.js +258 -236
- package/dist/mcp/tools.js.map +1 -1
- package/dist/shared/allow-rules.js +32 -8
- 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 +374 -459
- 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 +27 -5
- package/dist/shared/cli-backends.js.map +1 -1
- package/dist/shared/config.js +122 -38
- package/dist/shared/config.js.map +1 -1
- package/dist/shared/detail-render.js +104 -21
- package/dist/shared/detail-render.js.map +1 -1
- package/dist/shared/detail-store.js.map +1 -1
- package/dist/shared/group-members.js +35 -0
- package/dist/shared/group-members.js.map +1 -0
- package/dist/shared/inject-view.js +105 -0
- package/dist/shared/inject-view.js.map +1 -0
- package/dist/shared/json-map-store.js +23 -6
- package/dist/shared/json-map-store.js.map +1 -1
- 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 +4 -3
- package/dist/shared/message-footer.js.map +1 -1
- package/dist/shared/pricing.js +5 -0
- package/dist/shared/pricing.js.map +1 -1
- package/dist/shared/reminder.js +30 -38
- package/dist/shared/reminder.js.map +1 -1
- package/dist/shared/repl-script.js +114 -26
- package/dist/shared/repl-script.js.map +1 -1
- package/dist/shared/role-render.js +209 -210
- package/dist/shared/role-render.js.map +1 -1
- package/dist/shared/role-view.js +61 -299
- 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 +81 -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 +261 -0
- package/dist/shared/room-view.js.map +1 -0
- package/dist/shared/room.js +610 -0
- package/dist/shared/room.js.map +1 -0
- package/dist/shared/session-hooks.js +58 -0
- package/dist/shared/session-hooks.js.map +1 -0
- package/dist/shared/session-label.js +80 -60
- package/dist/shared/session-label.js.map +1 -1
- package/dist/shared/session-mcp.js +77 -0
- package/dist/shared/session-mcp.js.map +1 -0
- package/dist/shared/session-skills.js +63 -0
- package/dist/shared/session-skills.js.map +1 -0
- package/dist/shared/skill-sync.js +229 -0
- package/dist/shared/skill-sync.js.map +1 -0
- package/dist/shared/smarts.js +39 -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 +76 -17
- 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 +62 -6
- package/dist/svr/index.js.map +1 -1
- package/hooks/pre-tool-use.sh +18 -0
- package/hooks/stop.sh +26 -0
- package/package.json +7 -3
- package/scripts/install.sh +11 -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.service.template +6 -0
- package/web/chat.css +70 -273
- package/web/chat.js +2228 -2190
- 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 -69
- package/dist/daemon/idle-nudge.js.map +0 -1
- package/dist/daemon/message-events.js +0 -1083
- 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
- package/hooks/hooks.json +0 -16
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# 企业微信表格样式与配色规范
|
|
2
|
+
|
|
3
|
+
> 规定企业微信在线表格的结构层级、视觉样式、尺寸策略、执行顺序和验收标准。
|
|
4
|
+
>
|
|
5
|
+
> 本文只定义目标与执行规则。具体 CLI 参数见 `wecomcli-sheet-style.md`、`wecomcli-sheet-structure-operations.md`、`wecomcli-sheet-table-style.md`。
|
|
6
|
+
|
|
7
|
+
## 先选择处理路由
|
|
8
|
+
|
|
9
|
+
### 新建在线表格
|
|
10
|
+
|
|
11
|
+
按实际内容选择 L1、L2、L4~L6,设置样式、边框与尺寸后回读验收。
|
|
12
|
+
|
|
13
|
+
### 已有表格美化或追加
|
|
14
|
+
|
|
15
|
+
优先继承既有结构和样式,只修改任务要求的字段。除非用户明确要求结构调整,否则不新增标题行、不改变合并范围、字段名、Sheet 名、单元格值或公式。
|
|
16
|
+
|
|
17
|
+
优先级:用户明确要求 > 既有工作簿样式 > 本文默认样式。
|
|
18
|
+
|
|
19
|
+
## L1 使用规则
|
|
20
|
+
|
|
21
|
+
L1 为可选层级。只有用户明确要求工作表大标题,或内容结构确实需要独立标题行时才创建;不创建 L1 时直接从 L2 或 L4 开始。
|
|
22
|
+
|
|
23
|
+
选择创建 L1 时,按以下规则处理:
|
|
24
|
+
|
|
25
|
+
1. L1 独占第 1 行,标题写入 A1。
|
|
26
|
+
2. 先确定实际数据区最后一列,再将 A1 合并至该列,例如 `A1:K1`。
|
|
27
|
+
3. 新建表格创建 L1 合并属于初始化结构;已有表格仅在用户明确要求新增 L1 时执行该结构调整。
|
|
28
|
+
4. 合并前调用 `wecom-cli sheet merge get` 检查冲突;无冲突后调用 `merge set`;合并后再次调用 `merge get`。
|
|
29
|
+
5. 合并回读应包含预期范围。若返回 `merges: []` 或缺少预期范围,说明 L1 未完成,不得将 L1 标记为已验收。
|
|
30
|
+
6. 不使用文字自然溢出、空白单元格或视觉留白模拟跨列标题。
|
|
31
|
+
|
|
32
|
+
## 建立层级范围计划
|
|
33
|
+
|
|
34
|
+
写入任何样式前,先确定实际数据区末行、末列,并生成以下范围计划:
|
|
35
|
+
|
|
36
|
+
| 层级 | 含义 | 使用条件 | 目标范围示例 |
|
|
37
|
+
|---|---|---|---|
|
|
38
|
+
| L1 | 工作表大标题 | 需要独立标题行时使用 | `A1:K1` |
|
|
39
|
+
| L2 | 表头 | 存在字段列名、跨列分组或分区标题时使用 | `A1:K1`、`A2:K2` |
|
|
40
|
+
| L4 | 数据正文 | 存在明细数据时使用 | `A2:K20` 或 `A3:K20` |
|
|
41
|
+
| L5 | 表外备注、注释或异常提示 | 存在对应内容时使用 | `A21:K21` |
|
|
42
|
+
| L6 | 小计、合计、总计 | 存在汇总内容时使用 | `A22:K22` |
|
|
43
|
+
|
|
44
|
+
识别规则:
|
|
45
|
+
|
|
46
|
+
- 存在 L1 时,L1 固定为第 1 行,其他层级从第 2 行或更后位置开始;不存在 L1 时,L2 或 L4 可以从第 1 行开始。
|
|
47
|
+
- 字段列名、跨列分组和分区标题统一归为 L2;L2 不要求先存在 L1。
|
|
48
|
+
- 禁止把第一条正文数据误判为 L2。
|
|
49
|
+
- 不存在的可选层级记录为“无”,不得虚构内容。
|
|
50
|
+
- 空白分隔行不属于任何层级,不套用主体样式,也不单独设置边框;位于 L1~L6 之间时被整体外边框包含。
|
|
51
|
+
|
|
52
|
+
## 层级样式矩阵
|
|
53
|
+
|
|
54
|
+
| 层级 | 行高 | 字号/字重 | 背景色 | 文字色 |
|
|
55
|
+
|---|---:|---|---|---|
|
|
56
|
+
| L1 | 80px | 18pt,加粗 | 主题主色 | `#FFFFFF` |
|
|
57
|
+
| L2 | 40px | 10pt,加粗 | 原生表格样式的标题行填充色 | 主题对应的 L2 文字色 |
|
|
58
|
+
| L4 | 28px | 10pt,常规 | 原生表格样式的第一、第二条纹填充色 | `#10141A` |
|
|
59
|
+
| L5 | 28px | 10pt,常规 | `#F0F1F1` | `#6D7176` |
|
|
60
|
+
| L6 | 28px | 10pt,加粗 | `#FFF4D8` | `#10141A` |
|
|
61
|
+
|
|
62
|
+
默认数字格式规则:
|
|
63
|
+
|
|
64
|
+
| 数据类型 | Number Format |
|
|
65
|
+
|---|---|
|
|
66
|
+
| 普通文本、长备注 | 默认 |
|
|
67
|
+
| 整数/小数 | `#,##0` / `#,##0.00` |
|
|
68
|
+
| 百分比 | `0%` / `0.00%` |
|
|
69
|
+
| 人民币 | `¥#,##0.00` |
|
|
70
|
+
| 日期/时间 | `yyyy-mm-dd` / `hh:mm:ss` |
|
|
71
|
+
| 布尔值、短状态、短枚举 | 默认 |
|
|
72
|
+
| 身份证号、手机号、工号、邮编、前导零编号 | `@`,值按字符串写入 |
|
|
73
|
+
|
|
74
|
+
## 主题与原生表格样式
|
|
75
|
+
|
|
76
|
+
未指定主题且没有既有样式可继承时,使用绿色。同一工作表只使用一种主主题。
|
|
77
|
+
|
|
78
|
+
| 主题 | L1 背景 | L2 背景 / `header_fill_color` | L2 文字色 | L4 `band_fill_color` | L4 `second_band_fill_color` |
|
|
79
|
+
|---|---|---|---|---|---|
|
|
80
|
+
| 绿色 | `#1CAB3E` | `#D2EED8` | `#14672F` | `#FFFFFF` | `#F4FCF6` |
|
|
81
|
+
| 蓝色 | `#267EF0` | `#D4E5FC` | `#184785` | `#FFFFFF` | `#E4F9FE` |
|
|
82
|
+
| 紫色 | `#546DFF` | `#DDE2FF` | `#392785` | `#FFFFFF` | `#F6F8FF` |
|
|
83
|
+
|
|
84
|
+
L2/L4 原生表格样式规则:
|
|
85
|
+
|
|
86
|
+
1. L2/L4 背景和斑马纹使用 `wecom-cli sheet table style add`,禁止用静态填充逐行模拟。
|
|
87
|
+
2. 直接传定义的 `header_fill_color`、`band_fill_color` 和 `second_band_fill_color`:标题行使用 L2 背景色,第一条纹使用白色,第二条纹使用当前主题色。
|
|
88
|
+
3. 表格样式范围只覆盖连续的 L2/L4,不得包含 L1、L5、L6。
|
|
89
|
+
4. 区域首行为 L2 时设置 `header_row:true`;确实没有表头、仅有 L4 时才设为 `false`。
|
|
90
|
+
5. 创建后调用 `table style list` 获取并保存 `tab_style_id`,再按下方边框规则调用 `table style update`;最后再次 `list` 验证对象范围和标题行状态。具体参数和命令格式见 `wecomcli-sheet-table-style.md`。
|
|
91
|
+
6. `table style add` 不保证 L2 表头文字颜色。创建表格样式后,必须对完整 L2 范围调用 `sheet style set`,设置 10pt、加粗、居中及主题对应的文字色:绿色 `FF14672F`、蓝色 `FF184785`、紫色 `FF392785`。不得设置 `bg_color`,避免覆盖原生表格样式的表头背景。
|
|
92
|
+
|
|
93
|
+
## 边框
|
|
94
|
+
|
|
95
|
+
所有边框统一使用 `#85888C`,不随主题变化。只设置以下三类边框:
|
|
96
|
+
|
|
97
|
+
### L1~L6 整体外边框
|
|
98
|
+
|
|
99
|
+
对所有实际层级组成的整体范围设置**一个**外边框:
|
|
100
|
+
|
|
101
|
+
- 范围:从首个实际层级的首行到最后一个实际层级的末行,列从 A 列到实际数据区最后一列,例如 `A1:K22`。
|
|
102
|
+
- 调用 `wecom-cli sheet border set`,传 `positions: ["outer"]`、`style: "thin"`、`color: "FF85888C"`。
|
|
103
|
+
|
|
104
|
+
### L2/L4 隔行线与隔列线
|
|
105
|
+
|
|
106
|
+
通过 `wecom-cli sheet table style update` 设置:
|
|
107
|
+
|
|
108
|
+
- `row_band_border_color`:`#85888C`
|
|
109
|
+
- `column_band_border_color`:`#85888C`
|
|
110
|
+
|
|
111
|
+
### L5/L6 内部横线与内部竖线
|
|
112
|
+
|
|
113
|
+
L5 或 L6 实际存在时,分别对各自范围调用 `wecom-cli sheet border set` 设置内部边框:
|
|
114
|
+
|
|
115
|
+
- `positions: ["inner_horizontal", "inner_vertical"]`
|
|
116
|
+
- `style: "thin"`
|
|
117
|
+
- `color: "FF85888C"`
|
|
118
|
+
|
|
119
|
+
即使某个范围只有一行或一列,也仍同时传入 `inner_horizontal` 和 `inner_vertical`,由平台按实际范围应用可生效的边框方向。不得用静态填充或逐单元格样式模拟 L5/L6 内部边框。
|
|
120
|
+
|
|
121
|
+
### 执行规则
|
|
122
|
+
|
|
123
|
+
1. 先完成 `table style update`,再执行 `sheet border set`,确保整体外边框最后写入。
|
|
124
|
+
2. 整体外边框只调用一次 `border set`:不按 L1~L6 分层分别加外框,不逐个传 `top` / `bottom` / `left` / `right`。
|
|
125
|
+
3. L5/L6 内部边框属于例外:对实际存在的 L5、L6 各自范围调用 `border set`,同时传 `inner_horizontal` 和 `inner_vertical`;不得将这两个位置用于 L1、L2/L4 或空白分隔行。
|
|
126
|
+
4. 调用 update 时同时显式传入 `header_row`、`first_column`、`last_column`、`filter_button`、填充色及上述两个边框颜色的最终值,避免省略字段回落为默认值。
|
|
127
|
+
5. 除 L2/L4 的原生表格样式边框和 L5/L6 的内部边框外,L1 内部、层级之间及空白分隔行均不额外设置内部线。
|
|
128
|
+
6. 更新后调用 `table style list` 验证 `tab_style_id`、范围、标题行状态和三个边框颜色;核对整体外边框及 L5/L6 内部边框各次 `border set` 返回的 `affected_range`、`positions` 与计划一致。写入接口返回成功不等于所有方向的边框均已生效。
|
|
129
|
+
|
|
130
|
+
## 列宽、行高与换行
|
|
131
|
+
|
|
132
|
+
### 列宽
|
|
133
|
+
|
|
134
|
+
- 按标题和实际数据中最宽的内容估算。
|
|
135
|
+
- 中文和全角字符每字按 15~18px;英文、数字和半角字符每字按 7~9px。左右 padding 20px。
|
|
136
|
+
- 单元格中字符超过20个,列宽直接设置为450px。整体列宽限制为 100~500px。
|
|
137
|
+
- 使用一次 `dims resize` 的 `col_widths` 设置所有列宽。
|
|
138
|
+
- 存在合并后的 L1 时,L1 不参与单列宽度估算。
|
|
139
|
+
|
|
140
|
+
### 行高
|
|
141
|
+
|
|
142
|
+
- 所有实际存在的层级必须显式设置对应基础行高,不得只设置连续正文区域。
|
|
143
|
+
- 多个层级或不连续行使用一次 `dims resize` 的 `row_heights` 设置。
|
|
144
|
+
- 仅当内容在最终列宽内仍无法完整显示时,才开启自动换行并提高该行行高。
|
|
145
|
+
- 调整后必须调用 `sheet info get` 回读实际行高和列宽。
|
|
146
|
+
|
|
147
|
+
## 整体执行流程
|
|
148
|
+
|
|
149
|
+
1. **探查**:读取实际数据范围、末列、层级、合并、现有样式、边框、行高列宽和表格样式对象。
|
|
150
|
+
2. **计划**:按上方规则确定层级范围、主题、边框和尺寸。
|
|
151
|
+
3. **处理 L1(如有)**:按 L1 规则写入、合并并回读。
|
|
152
|
+
4. **设置表格样式**:按 L2/L4 规则创建原生表格样式并取得 `tab_style_id`。
|
|
153
|
+
5. **设置普通样式**:按样式矩阵设置字体、颜色和数字格式;L2/L4 不写入静态背景。
|
|
154
|
+
6. **设置边框**:先调用 `table style update` 将 `outer_border_color`、`row_band_border_color`、`column_band_border_color` 设为 `#85888C`;再对实际存在的 L5、L6 各自范围调用 `sheet border set`(`positions: ["inner_horizontal", "inner_vertical"]`,`color: "FF85888C"`);最后对 L1~L6 整体范围调用一次 `sheet border set`(`positions: ["outer"]`,`color: "FF85888C"`),确保整体外边框最后写入;不设置其他边框。
|
|
155
|
+
7. **设置尺寸**:按列宽、行高和换行规则统一设置。
|
|
156
|
+
8. **验收**:执行下方五项断言;失败时补写并重新回读。
|
|
157
|
+
|
|
158
|
+
## 五项验收断言
|
|
159
|
+
|
|
160
|
+
1. **L1 结构(仅在使用 L1 时适用)**:标题位于 A1,第 1 行独占,合并范围延伸到实际数据区最后一列;回读不应为 `merges: []`,并应包含完整预期范围。不使用 L1 时,本项不适用且不影响验收。
|
|
161
|
+
2. **表格样式范围**:`table style list` 返回的范围与 L2/L4 计划一致,标题行状态正确,不包含其他层级。
|
|
162
|
+
3. **尺寸**:`sheet info get` 中所有实际层级行高和列宽符合计划。`row_heights` 为稀疏结果时,缺失行按平台默认高度判断;默认高度不等于目标值即验收失败。
|
|
163
|
+
4. **样式与边框**:`cells get include:["style"]` 至少检查每个实际层级一个代表区域,分别验证字体、数字格式和换行;L2 代表单元格,`font_color`、`bold` 和 `font_size` 符合当前主题。`table style list` 返回同一 `tab_style_id`,其范围和标题行状态与计划一致,`row_band_border_color`、`column_band_border_color`、`outer_border_color` 均为 `#85888C`;整体外边框的 `sheet border set` 仅调用一次,`affected_range` 等于 L1~L6 整体范围、`positions` 为外边框四个方向、颜色为 `FF85888C`;实际存在的 L5/L6 还应分别存在内部边框调用,其 `affected_range` 等于对应层级范围、`positions` 同时包含 `inner_horizontal` 和 `inner_vertical`、颜色为 `FF85888C`;除此之外不存在其他边框设置。
|
|
164
|
+
5. **数据不变**:重新读取值和公式,确认字段名、Sheet 名、单元格值、公式及业务结构未被样式或边框操作意外改变。
|
|
165
|
+
|
|
166
|
+
写入接口返回成功只代表请求被接受,不代表验收通过。五项适用断言全部成立后,才可报告“已完成”或“验收通过”。
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
# 工作簿与子表管理
|
|
2
|
+
|
|
3
|
+
从零新建一篇企微在线表格,导入本地 CSV / Excel 文件为企微在线表格,读取整个在线表格工作簿,并管理其中子表的新增、删除、重命名、复制和顺序。
|
|
4
|
+
|
|
5
|
+
| 命令 | 风险 | 用途 |
|
|
6
|
+
|---------------------------------|---|---|
|
|
7
|
+
| `wecom-cli doc create` | 创建 | 从零新建一篇在线表格 |
|
|
8
|
+
| `wecom-cli doc import` | 文件写入 | 导入本地文件为在线表格 |
|
|
9
|
+
| `wecom-cli sheet workbook get` | 只读 | 获取工作簿中的全部子表 |
|
|
10
|
+
| `wecom-cli sheet subsheets create` | 结构写入 | 新增子表 |
|
|
11
|
+
| `wecom-cli sheet subsheets remove` | 高风险写入 | 删除子表 |
|
|
12
|
+
| `wecom-cli sheet subsheets rename` | 结构写入 | 重命名子表 |
|
|
13
|
+
| `wecom-cli sheet subsheets copy` | 结构写入 | 复制子表 |
|
|
14
|
+
| `wecom-cli sheet subsheets move` | 结构写入 | 调整子表顺序 |
|
|
15
|
+
| `wecom-cli sheet subsheets visible` | 结构写入 | 显示或隐藏子表 |
|
|
16
|
+
|
|
17
|
+
## 通用规则
|
|
18
|
+
|
|
19
|
+
- 结构性写入、高风险写入均支持 `dry_run`。需要预览时先传 `"dry_run":true`,确认后再正式执行。
|
|
20
|
+
|
|
21
|
+
## 新建在线表格
|
|
22
|
+
|
|
23
|
+
从零新建企微在线表格时,先按用户需求从零创建一个本地 `.xlsx`,完成质量校验后,再通过`doc import`导入为企微在线表格。本流程仅适用于从零生成在线表格;用户已有的 xlsx 本地文件不走本流程,直接按「导入在线表格」处理。
|
|
24
|
+
|
|
25
|
+
### 标准流程
|
|
26
|
+
- 使用 `openpyxl` 创建本地 `.xlsx`。本地文件只写入子表名称、单元格值和公式,并将工作表已用区域内的所有单元格统一设置为水平居中、垂直居中;禁止设置字体、字号、填充、边框、数字格式、自动换行、斑马纹、行高和列宽等其他样式。
|
|
27
|
+
- 导入前只校验本地 `.xlsx` 是否存在且非空、能否正常打开,以及工作表名称、数量、关键数据和公式是否正确。校验不通过时先修复本地文件,不得导入未验证产物。
|
|
28
|
+
- 调用下方「导入在线表格」的 `wecom-cli doc import`,把已校验的 `.xlsx` 导入为企微在线表格,并确认 `task_status` 为成功状态。
|
|
29
|
+
- 导入成功后,读取 `wecomcli-sheet-visual-standards.md`,严格按照其中的【整体执行流程】设置字体、数字格式、斑马纹、行高、列宽和自动换行。
|
|
30
|
+
- 完成后必须按照 `wecomcli-sheet-visual-standards.md` 的【验收标准】回读验证,特别检查在线表格的样式、行高和列宽;缺少任何适用检查时,禁止报告“已完成”。
|
|
31
|
+
- 向用户返回企微在线表格 URL。除非用户明确要求,否则禁止返回或向用户暴露本地 `.xlsx` 中间文件。
|
|
32
|
+
|
|
33
|
+
### 使用规则
|
|
34
|
+
|
|
35
|
+
- 新建流程适用于从零创建表格,以及用户对当前任务中刚创建的表格不满意并提出修改意见的情况;后者即使表述为“修改”,也应按新建流程重新生成。仅当操作对象是此前已存在的企微在线表格时,才使用读取、修改、追加、子表管理等在线接口,禁止重新生成 XLSX 后覆盖导入。
|
|
36
|
+
|
|
37
|
+
## 导入在线表格
|
|
38
|
+
|
|
39
|
+
把本地文件(`.csv` / `.xls` / `.xlsx`)导入为企微在线表格。
|
|
40
|
+
|
|
41
|
+
### 命令
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
wecom-cli doc import --json '<JSON 参数>'
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### 参数
|
|
48
|
+
|
|
49
|
+
| 字段 | 类型 | 必填 | 默认值 | 语义 |
|
|
50
|
+
|-------------|---|---|---|-------------------------|
|
|
51
|
+
| `doc_type` | string | 是 | — | 导入文档类型,固定为`sheet` |
|
|
52
|
+
| `file_name` | string | 是 | — | 二进制文件名(含后缀),用于业务判断源文件类型 |
|
|
53
|
+
| `file_path` | string | 是 | — | 源文件的本地绝对路径 |
|
|
54
|
+
| `passwd` | string | 否 | — | Office 文件加密密码(若有) |
|
|
55
|
+
|
|
56
|
+
### 返回
|
|
57
|
+
|
|
58
|
+
| 字段 | 类型 | 说明 |
|
|
59
|
+
|---|---|---|
|
|
60
|
+
| `docid` | string | 导入完成后的表格 ID |
|
|
61
|
+
| `url` | string | 导入完成后的访问链接 |
|
|
62
|
+
| `task_status` | string | 任务状态枚举,如 `succ` 成功 |
|
|
63
|
+
|
|
64
|
+
### 使用规则
|
|
65
|
+
|
|
66
|
+
- 区分导入来源:本命令同时用于两种场景——作为「新建在线表格」标准流程的导入步骤(文件由从零生成),以及直接导入用户已有文件。前者按新建流程继续美化;后者已有文件导入后保持原样:不读取 `wecomcli-sheet-visual-standards.md`,不进行任何样式修改操作。例外:只有用户明确要求美化或调整格式时,才在导入后按用户指定的范围修改样式。
|
|
67
|
+
|
|
68
|
+
## 获取工作簿信息
|
|
69
|
+
|
|
70
|
+
列出工作簿中的全部子表,返回子表 ID、名称和行列范围,是后续子表操作的探测入口。
|
|
71
|
+
|
|
72
|
+
### 命令
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
wecom-cli sheet workbook get --json '<JSON 参数>'
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### 参数
|
|
79
|
+
|
|
80
|
+
| 字段 | 类型 | 必填 | 默认值 | 语义 |
|
|
81
|
+
|---|---|---|---|---|
|
|
82
|
+
| `docid` | string | 是 | — | 在线表格 ID 或 URL |
|
|
83
|
+
|
|
84
|
+
### 返回
|
|
85
|
+
|
|
86
|
+
| 字段 | 类型 | 说明 |
|
|
87
|
+
|-------------------------|----------|----------------------------------------|
|
|
88
|
+
| `sheets` | object[] | 子表列表 |
|
|
89
|
+
| `sheets[].sheet_id` | string | 子表 ID |
|
|
90
|
+
| `sheets[].name` | string | 子表名称 |
|
|
91
|
+
| `sheets[].range` | string | 子表实际数据范围;空表返回 `A1:A1` |
|
|
92
|
+
|
|
93
|
+
### 使用规则
|
|
94
|
+
|
|
95
|
+
- 工作簿内存在同名子表、用户只描述了模糊名称,或后续操作具有破坏性时,应先通过本接口拿到 `sheet_id` 再操作。
|
|
96
|
+
- **`A1:A1` 需读取确认**:该范围既可能表示空表,也可能表示只有 A1 单元格有内容;不得仅凭 `range` 判定为空表,应使用 `cells get` 读取 `A1:A1` 后确认。
|
|
97
|
+
|
|
98
|
+
## 新增子表
|
|
99
|
+
|
|
100
|
+
### 命令
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
wecom-cli sheet subsheets create --json '<JSON 参数>'
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### 参数
|
|
107
|
+
|
|
108
|
+
| 字段 | 类型 | 必填 | 默认值 | 语义 |
|
|
109
|
+
|---|---|---|---|-------------------|
|
|
110
|
+
| `docid` | string | 是 | — | 在线表格 ID 或 URL |
|
|
111
|
+
| `name` | string | 否 | 引擎生成默认名 | 子表名称,长度不超过 31 个字符 |
|
|
112
|
+
| `position` | int | 否 | 追加到末尾 | 插入位置,1-based |
|
|
113
|
+
| `dry_run` | bool | 否 | `false` | `true` 时仅预览,不落盘 |
|
|
114
|
+
|
|
115
|
+
### 返回
|
|
116
|
+
|
|
117
|
+
| 字段 | 类型 | 说明 |
|
|
118
|
+
|---|---|---|
|
|
119
|
+
| `sheet_id` | string | 新建子表 ID |
|
|
120
|
+
| `name` | string | 实际子表名称 |
|
|
121
|
+
| `position` | int | 实际插入位置,1-based |
|
|
122
|
+
|
|
123
|
+
### 示例
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
wecom-cli sheet subsheets create --json '{"docid":"e3_ABC123","name":"2026汇总","position":2}'
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### 使用规则
|
|
130
|
+
|
|
131
|
+
- 需要空白子表时使用本接口;已有模板且需要继承结构与格式时优先使用 `sheet subsheets copy`。
|
|
132
|
+
- 从零新建子表并写入数据后,需要读取 `wecomcli-sheet-visual-standards.md`,设置字体、填充、对齐、数字格式、斑马纹、行高、列宽和自动换行。设置完后需要回读验证,特别检查在线表格的样式、行高和列宽;缺少任何适用检查时,禁止报告“已完成”。
|
|
133
|
+
- 仅新建空白子表、通过 `sheet subsheets copy` 复制已有子表,或操作此前已存在的子表时,不执行上述美化流程。
|
|
134
|
+
|
|
135
|
+
## 删除子表
|
|
136
|
+
|
|
137
|
+
### 命令
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
wecom-cli sheet subsheets remove --json '<JSON 参数>'
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### 参数
|
|
144
|
+
|
|
145
|
+
| 字段 | 类型 | 必填 | 默认值 | 语义 |
|
|
146
|
+
|------------|---|---|---|-----------------|
|
|
147
|
+
| `docid` | string | 是 | — | 在线表格 ID 或 URL |
|
|
148
|
+
| `sheet` | string | 是 | — | 待删除子表 ID |
|
|
149
|
+
| `yes` | bool | 是 | — | 确认执行(缺省拒绝) |
|
|
150
|
+
| `dry_run` | bool | 否 | `false` | `true` 时仅预览,不落盘 |
|
|
151
|
+
|
|
152
|
+
### 返回
|
|
153
|
+
|
|
154
|
+
| 字段 | 类型 | 说明 |
|
|
155
|
+
|---|---|---|
|
|
156
|
+
| `sheet_id` | string | 已删除子表 ID |
|
|
157
|
+
| `name` | string | 已删除子表名称 |
|
|
158
|
+
|
|
159
|
+
## 重命名子表
|
|
160
|
+
|
|
161
|
+
### 命令
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
wecom-cli sheet subsheets rename --json '<JSON 参数>'
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### 参数
|
|
168
|
+
|
|
169
|
+
| 字段 | 类型 | 必填 | 默认值 | 语义 |
|
|
170
|
+
|------------|---|---|---|---|
|
|
171
|
+
| `docid` | string | 是 | — | 在线表格 ID 或 URL |
|
|
172
|
+
| `sheet` | string | 是 | — | 子表 ID |
|
|
173
|
+
| `name` | string | 是 | — | 新名称,长度不超过 31 个字符 |
|
|
174
|
+
| `dry_run` | bool | 否 | `false` | `true` 时仅预览,不落盘 |
|
|
175
|
+
|
|
176
|
+
### 返回
|
|
177
|
+
|
|
178
|
+
| 字段 | 类型 | 说明 |
|
|
179
|
+
|------------|---|---|
|
|
180
|
+
| `sheet_id` | string | 子表 ID |
|
|
181
|
+
| `name` | string | 重命名后的名称 |
|
|
182
|
+
|
|
183
|
+
## 复制子表
|
|
184
|
+
|
|
185
|
+
新复制的子表,默认放在源子表的右侧
|
|
186
|
+
|
|
187
|
+
### 命令
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
wecom-cli sheet subsheets copy --json '<JSON 参数>'
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### 参数
|
|
194
|
+
|
|
195
|
+
| 字段 | 类型 | 必填 | 默认值 | 语义 |
|
|
196
|
+
|-------------------|---|---|---|---|
|
|
197
|
+
| `docid` | string | 是 | — | 在线表格 ID 或 URL |
|
|
198
|
+
| `sheet` | string | 是 | — | 源子表 ID |
|
|
199
|
+
| `name` | string | 否 | 引擎生成默认名 | 副本名称 |
|
|
200
|
+
| `dry_run` | bool | 否 | `false` | `true` 时仅预览,不落盘 |
|
|
201
|
+
|
|
202
|
+
### 返回
|
|
203
|
+
|
|
204
|
+
| 字段 | 类型 | 说明 |
|
|
205
|
+
|---|---|---|
|
|
206
|
+
| `sheet_id` | string | 新副本的子表 ID |
|
|
207
|
+
|
|
208
|
+
## 移动子表顺序
|
|
209
|
+
|
|
210
|
+
### 命令
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
wecom-cli sheet subsheets move --json '<JSON 参数>'
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### 参数
|
|
217
|
+
|
|
218
|
+
| 字段 | 类型 | 必填 | 默认值 | 语义 |
|
|
219
|
+
|------------|---|---|---|---|
|
|
220
|
+
| `docid` | string | 是 | — | 在线表格 ID 或 URL |
|
|
221
|
+
| `sheet` | string | 是 | — | 子表 ID |
|
|
222
|
+
| `position` | int | 是 | — | 目标位置,1-based |
|
|
223
|
+
| `dry_run` | bool | 否 | `false` | `true` 时仅预览,不落盘 |
|
|
224
|
+
|
|
225
|
+
## 显示或隐藏子表 — `wecom-cli sheet subsheets visible`
|
|
226
|
+
|
|
227
|
+
设置指定子表显示或隐藏。隐藏子表不会删除内容,适合收起辅助计算表、中间过程表或暂不展示的历史表。
|
|
228
|
+
|
|
229
|
+
### 命令
|
|
230
|
+
|
|
231
|
+
```bash
|
|
232
|
+
wecom-cli sheet subsheets visible --json '<JSON 参数>'
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
### 参数
|
|
236
|
+
|
|
237
|
+
| 字段 | 类型 | 必填 | 默认值 | 语义 |
|
|
238
|
+
|---|---|---|---|---|
|
|
239
|
+
| `docid` | string | 是 | — | 在线表格 ID 或 URL |
|
|
240
|
+
| `sheet` | string | 是 | — | 子表 ID 或名称 |
|
|
241
|
+
| `visible` | bool | 是 | — | `true` 表示显示,`false` 表示隐藏 |
|
|
242
|
+
| `dry_run` | bool | 否 | `false` | `true` 时仅预览,不落盘 |
|
|
243
|
+
|
|
244
|
+
### 返回
|
|
245
|
+
|
|
246
|
+
| 字段 | 类型 | 说明 |
|
|
247
|
+
|---|---|---|
|
|
248
|
+
| `sheet_id` | string | 子表 ID |
|
|
249
|
+
| `visible` | bool | 当前可见状态 |
|
|
250
|
+
|
|
251
|
+
### 示例
|
|
252
|
+
|
|
253
|
+
```bash
|
|
254
|
+
wecom-cli sheet subsheets visible --json '{"docid":"e3_ABC123","sheet":"销售","visible":false}'
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
### 使用规则
|
|
258
|
+
|
|
259
|
+
- **隐藏不是删除**:用户说“先收起来/隐藏辅助表/不要展示给使用者”时使用本命令;不要用删除子表代替隐藏。
|
|
260
|
+
- **先确认目标子表**:隐藏前调用 `workbook get` 获取稳定 `sheet_id`,避免隐藏错同名或相似名称子表。
|
|
261
|
+
- **谨慎隐藏关键表**:隐藏源数据、公式依赖表或唯一入口表前,先向用户确认影响。
|
|
262
|
+
- **不能隐藏最后一个可见子表**:实测隐藏最后一个可见子表会失败,错误信息为 `cannot hide the last visible sheet`。
|
|
263
|
+
- **dry-run 响应同形**:`dry_run:true` 的响应结构与正式执行一致,但不落盘。
|
|
264
|
+
- **无法只读回读**:实测 `workbook get` 的 `sheets[]` 不返回 `visible` 字段。写后只能以 `subsheets visible` 响应确认。
|