weaver-work-cli 0.1.2 → 0.1.5
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/README.md +176 -78
- package/dist/cmd/setup/index.js +5 -5
- package/dist/cmd/skills/index.js +1 -1
- package/dist/core/hooks.js +7 -0
- package/dist/index.js +0 -0
- package/dist/internal/e10/auth/commands.js +159 -54
- package/dist/internal/e10/auth/xiaoe.js +268 -0
- package/dist/internal/e10/context.js +16 -2
- package/dist/internal/e10/index.js +1 -0
- package/dist/internal/e10/request-runtime.js +345 -0
- package/dist/internal/skills/install.js +48 -6
- package/dist/internal/skills/reader.js +27 -0
- package/dist/shortcuts/archive/continuation.js +70 -0
- package/dist/shortcuts/archive/errors.js +53 -0
- package/dist/shortcuts/archive/host.js +197 -0
- package/dist/shortcuts/archive/index.js +363 -0
- package/dist/shortcuts/archive/manifest.js +45 -0
- package/dist/shortcuts/archive/operations/archive-info.js +55 -0
- package/dist/shortcuts/archive/operations/borrow-car.js +146 -0
- package/dist/shortcuts/archive/operations/borrow-list.js +200 -0
- package/dist/shortcuts/archive/operations/confirm.js +46 -0
- package/dist/shortcuts/archive/operations/download.js +238 -0
- package/dist/shortcuts/archive/operations/flow-url.js +240 -0
- package/dist/shortcuts/archive/operations/fonds.js +95 -0
- package/dist/shortcuts/archive/operations/getPageUrl.js +137 -0
- package/dist/shortcuts/archive/operations/registry.js +43 -0
- package/dist/shortcuts/archive/operations/search.js +88 -0
- package/dist/shortcuts/archive/operations/shared.js +120 -0
- package/dist/shortcuts/archive/operations/types.js +23 -0
- package/dist/shortcuts/archive/operations/upload.js +182 -0
- package/dist/shortcuts/archive/operations.js +13 -0
- package/dist/shortcuts/archive/render/search-format.js +276 -0
- package/dist/shortcuts/archive/render/search-view.js +125 -0
- package/dist/shortcuts/asset/continuation.js +70 -0
- package/dist/shortcuts/asset/errors.js +67 -0
- package/dist/shortcuts/asset/host.js +438 -0
- package/dist/shortcuts/asset/index.js +255 -0
- package/dist/shortcuts/asset/manifest.js +471 -0
- package/dist/shortcuts/asset/operations/query.js +249 -0
- package/dist/shortcuts/asset/operations/registry.js +85 -0
- package/dist/shortcuts/asset/operations/shared.js +100 -0
- package/dist/shortcuts/asset/operations/type-cache.js +49 -0
- package/dist/shortcuts/asset/operations/types.js +1 -0
- package/dist/shortcuts/asset/operations/viewlink.js +117 -0
- package/dist/shortcuts/asset/operations/write.js +435 -0
- package/dist/shortcuts/asset/operations.js +9 -0
- package/dist/shortcuts/calendar/continuation.js +70 -0
- package/dist/shortcuts/calendar/errors.js +53 -0
- package/dist/shortcuts/calendar/host.js +148 -0
- package/dist/shortcuts/calendar/index.js +125 -0
- package/dist/shortcuts/calendar/manifest.js +26 -0
- package/dist/shortcuts/calendar/operations/read.js +259 -0
- package/dist/shortcuts/calendar/operations/registry.js +31 -0
- package/dist/shortcuts/calendar/operations/shared.js +132 -0
- package/dist/shortcuts/calendar/operations/types.js +25 -0
- package/dist/shortcuts/calendar/operations/write.js +439 -0
- package/dist/shortcuts/calendar/operations.js +8 -0
- package/dist/shortcuts/ehr/continuation.js +70 -0
- package/dist/shortcuts/ehr/errors.js +53 -0
- package/dist/shortcuts/ehr/host.js +213 -0
- package/dist/shortcuts/ehr/index.js +205 -0
- package/dist/shortcuts/ehr/manifest.js +47 -0
- package/dist/shortcuts/ehr/operations/attend-read.js +373 -0
- package/dist/shortcuts/ehr/operations/attend-write.js +514 -0
- package/dist/shortcuts/ehr/operations/hr-contact.js +363 -0
- package/dist/shortcuts/ehr/operations/hr-ds.js +298 -0
- package/dist/shortcuts/ehr/operations/hr-report.js +386 -0
- package/dist/shortcuts/ehr/operations/recruit-write.js +1629 -0
- package/dist/shortcuts/ehr/operations/recruit.js +803 -0
- package/dist/shortcuts/ehr/operations/registry.js +43 -0
- package/dist/shortcuts/ehr/operations/salary.js +319 -0
- package/dist/shortcuts/ehr/operations/shared.js +246 -0
- package/dist/shortcuts/ehr/operations/types.js +25 -0
- package/dist/shortcuts/ehr/operations.js +25 -0
- package/dist/shortcuts/esb/continuation.js +70 -0
- package/dist/shortcuts/esb/errors.js +65 -0
- package/dist/shortcuts/esb/host.js +187 -0
- package/dist/shortcuts/esb/index.js +112 -0
- package/dist/shortcuts/esb/manifest.js +91 -0
- package/dist/shortcuts/esb/operations/input-format.js +31 -0
- package/dist/shortcuts/esb/operations/registry.js +48 -0
- package/dist/shortcuts/esb/operations/shared.js +152 -0
- package/dist/shortcuts/esb/operations/trigger.js +76 -0
- package/dist/shortcuts/esb/operations/types.js +21 -0
- package/dist/shortcuts/esb/operations.js +15 -0
- package/dist/shortcuts/fna/continuation.js +70 -0
- package/dist/shortcuts/fna/errors.js +59 -0
- package/dist/shortcuts/fna/host.js +146 -0
- package/dist/shortcuts/fna/index.js +111 -0
- package/dist/shortcuts/fna/manifest.js +41 -0
- package/dist/shortcuts/fna/operations/budget.js +124 -0
- package/dist/shortcuts/fna/operations/expense-center.js +148 -0
- package/dist/shortcuts/fna/operations/invoice-writeoff.js +212 -0
- package/dist/shortcuts/fna/operations/loan.js +195 -0
- package/dist/shortcuts/fna/operations/registry.js +35 -0
- package/dist/shortcuts/fna/operations/shared.js +210 -0
- package/dist/shortcuts/fna/operations/types.js +25 -0
- package/dist/shortcuts/fna/operations.js +19 -0
- package/dist/shortcuts/hrm/errors.js +38 -0
- package/dist/shortcuts/hrm/host.js +156 -0
- package/dist/shortcuts/hrm/index.js +111 -0
- package/dist/shortcuts/hrm/manifest.js +32 -0
- package/dist/shortcuts/hrm/operations/employee.js +338 -0
- package/dist/shortcuts/hrm/operations/org.js +110 -0
- package/dist/shortcuts/hrm/operations/position.js +176 -0
- package/dist/shortcuts/hrm/operations/registry.js +33 -0
- package/dist/shortcuts/hrm/operations/shared.js +143 -0
- package/dist/shortcuts/hrm/operations/types.js +23 -0
- package/dist/shortcuts/hrm/operations.js +19 -0
- package/dist/shortcuts/index.js +24 -0
- package/dist/shortcuts/invoice/host.js +99 -94
- package/dist/shortcuts/invoice/index.js +58 -59
- package/dist/shortcuts/invoice/manifest.js +200 -3
- package/dist/shortcuts/invoice/operations/browse-field.js +17 -0
- package/dist/shortcuts/invoice/operations/issuing.js +198 -0
- package/dist/shortcuts/invoice/operations/registry.js +17 -0
- package/dist/shortcuts/invoice/operations/reim.js +401 -0
- package/dist/shortcuts/invoice/operations/shared.js +247 -0
- package/dist/shortcuts/jiuchuanhui/cache.js +441 -0
- package/dist/shortcuts/jiuchuanhui/continuation.js +70 -0
- package/dist/shortcuts/jiuchuanhui/errors.js +59 -0
- package/dist/shortcuts/jiuchuanhui/host.js +159 -0
- package/dist/shortcuts/jiuchuanhui/index.js +109 -0
- package/dist/shortcuts/jiuchuanhui/manifest.js +469 -0
- package/dist/shortcuts/jiuchuanhui/operations/datajson.js +214 -0
- package/dist/shortcuts/jiuchuanhui/operations/esb.js +157 -0
- package/dist/shortcuts/jiuchuanhui/operations/generic.js +146 -0
- package/dist/shortcuts/jiuchuanhui/operations/registry.js +133 -0
- package/dist/shortcuts/jiuchuanhui/operations/shared.js +158 -0
- package/dist/shortcuts/jiuchuanhui/operations/types.js +1 -0
- package/dist/shortcuts/jiuchuanhui/operations.js +8 -0
- package/dist/shortcuts/mail/continuation.js +70 -0
- package/dist/shortcuts/mail/errors.js +53 -0
- package/dist/shortcuts/mail/host.js +182 -0
- package/dist/shortcuts/mail/index.js +519 -0
- package/dist/shortcuts/mail/manifest.js +38 -0
- package/dist/shortcuts/mail/operations/mail-blacklist.js +79 -0
- package/dist/shortcuts/mail/operations/mail-contacts.js +195 -0
- package/dist/shortcuts/mail/operations/mail-manage.js +335 -0
- package/dist/shortcuts/mail/operations/mail-read.js +508 -0
- package/dist/shortcuts/mail/operations/mail-send.js +474 -0
- package/dist/shortcuts/mail/operations/mail-sign.js +203 -0
- package/dist/shortcuts/mail/operations/mail-template.js +170 -0
- package/dist/shortcuts/mail/operations/registry.js +41 -0
- package/dist/shortcuts/mail/operations/shared.js +64 -0
- package/dist/shortcuts/mail/operations/types.js +27 -0
- package/dist/shortcuts/mail/operations.js +19 -0
- package/dist/shortcuts/meeting/continuation.js +70 -0
- package/dist/shortcuts/meeting/errors.js +63 -0
- package/dist/shortcuts/meeting/host.js +167 -0
- package/dist/shortcuts/meeting/index.js +123 -0
- package/dist/shortcuts/meeting/manifest.js +64 -0
- package/dist/shortcuts/meeting/operations/catalogs.js +58 -0
- package/dist/shortcuts/meeting/operations/change.js +242 -0
- package/dist/shortcuts/meeting/operations/conflicts.js +142 -0
- package/dist/shortcuts/meeting/operations/create.js +349 -0
- package/dist/shortcuts/meeting/operations/env.js +191 -0
- package/dist/shortcuts/meeting/operations/lifecycle.js +139 -0
- package/dist/shortcuts/meeting/operations/meetings.js +73 -0
- package/dist/shortcuts/meeting/operations/receipts.js +195 -0
- package/dist/shortcuts/meeting/operations/registry.js +47 -0
- package/dist/shortcuts/meeting/operations/rooms.js +132 -0
- package/dist/shortcuts/meeting/operations/shared.js +112 -0
- package/dist/shortcuts/meeting/operations/signs.js +41 -0
- package/dist/shortcuts/meeting/operations/types.js +25 -0
- package/dist/shortcuts/meeting/operations.js +19 -0
- package/dist/shortcuts/plan/continuation.js +70 -0
- package/dist/shortcuts/plan/errors.js +70 -0
- package/dist/shortcuts/plan/host.js +180 -0
- package/dist/shortcuts/plan/index.js +150 -0
- package/dist/shortcuts/plan/manifest.js +53 -0
- package/dist/shortcuts/plan/operations/link.js +256 -0
- package/dist/shortcuts/plan/operations/read.js +259 -0
- package/dist/shortcuts/plan/operations/registry.js +33 -0
- package/dist/shortcuts/plan/operations/shared.js +246 -0
- package/dist/shortcuts/plan/operations/types.js +49 -0
- package/dist/shortcuts/plan/operations/version.js +49 -0
- package/dist/shortcuts/plan/operations/write.js +710 -0
- package/dist/shortcuts/plan/operations.js +8 -0
- package/dist/shortcuts/yimiaoban/continuation.js +70 -0
- package/dist/shortcuts/yimiaoban/errors.js +61 -0
- package/dist/shortcuts/yimiaoban/host.js +469 -0
- package/dist/shortcuts/yimiaoban/index.js +271 -0
- package/dist/shortcuts/yimiaoban/manifest.js +28 -0
- package/dist/shortcuts/yimiaoban/operations/file-user.js +288 -0
- package/dist/shortcuts/yimiaoban/operations/group-read.js +477 -0
- package/dist/shortcuts/yimiaoban/operations/group-write.js +591 -0
- package/dist/shortcuts/yimiaoban/operations/msg-parse.js +429 -0
- package/dist/shortcuts/yimiaoban/operations/msg-sync.js +519 -0
- package/dist/shortcuts/yimiaoban/operations/msg-write.js +593 -0
- package/dist/shortcuts/yimiaoban/operations/person.js +102 -0
- package/dist/shortcuts/yimiaoban/operations/registry.js +38 -0
- package/dist/shortcuts/yimiaoban/operations/session.js +437 -0
- package/dist/shortcuts/yimiaoban/operations/shared.js +236 -0
- package/dist/shortcuts/yimiaoban/operations/types.js +27 -0
- package/dist/shortcuts/yimiaoban/operations/write-util.js +78 -0
- package/dist/shortcuts/yimiaoban/operations.js +8 -0
- package/docs/SKILL.md +11 -7
- package/docs/_catalog.md +28 -5
- package/docs/agent-invoice.md +19 -9
- package/docs/agent-skill-install.md +141 -22
- package/docs/calendar.md +87 -0
- package/docs/e10-auth.md +28 -9
- package/docs/ehr.md +186 -0
- package/docs/esb.md +64 -0
- package/docs/fna.md +72 -0
- package/docs/hrm.md +89 -0
- package/docs/invoice.md +61 -20
- package/docs/jiuchuanhui.md +131 -0
- package/docs/meeting.md +48 -0
- package/docs/operation-manual.md +443 -0
- package/docs/plan.md +82 -0
- package/docs/wenshuding.md +129 -0
- package/docs/yimiaoban.md +86 -0
- package/docs/ziguanjia.md +89 -0
- package/package.json +4 -4
- package/scripts/package-skill.mjs +127 -34
- package/scripts/postbuild.mjs +13 -0
- package/skill-template/business-info.json +16 -2
- package/skill-template/domains/calendar.md +15 -0
- package/skill-template/domains/esb.md +13 -0
- package/skill-template/domains/hrm.md +16 -0
- package/skill-template/domains/jiuchuanhui.md +23 -0
- package/skill-template/domains/jucailin.md +22 -0
- package/skill-template/domains/mail.md +21 -0
- package/skill-template/domains/meeting.md +3 -0
- package/skill-template/domains/plan.md +17 -0
- package/skill-template/domains/qiyecheng.md +17 -0
- package/skill-template/domains/shared.md +5 -3
- package/skill-template/domains/skill-maker.md +10 -0
- package/skill-template/domains/wenshuding.md +22 -0
- package/skill-template/domains/{invoice.md → yepiaotong.md} +4 -0
- package/skill-template/domains/yimiaoban.md +21 -0
- package/skill-template/domains/ziguanjia.md +21 -0
- package/skill-template/master-skill-template.md +12 -6
- package/skill-template/skill-template.md +26 -10
- package/skills/weaver-e10-calendar/SKILL.md +102 -0
- package/skills/weaver-e10-calendar/product.json +8 -0
- package/skills/weaver-e10-calendar/references/calendar-app-check.md +65 -0
- package/skills/weaver-e10-calendar/references/calendar-dict.md +55 -0
- package/skills/weaver-e10-calendar/references/calendar-query.md +70 -0
- package/skills/weaver-e10-calendar/references/calendar-write.md +97 -0
- package/skills/weaver-e10-calendar/references/source-manifest.json +54 -0
- package/skills/weaver-e10-esb/SKILL.md +103 -0
- package/skills/weaver-e10-esb/product.json +8 -0
- package/skills/weaver-e10-esb/references/input-format.md +52 -0
- package/skills/weaver-e10-esb/references/source-manifest.json +242 -0
- package/skills/weaver-e10-esb/references/trigger.md +99 -0
- package/skills/weaver-e10-hrm/SKILL.md +88 -0
- package/skills/weaver-e10-hrm/product.json +8 -0
- package/skills/weaver-e10-hrm/references/employee.md +109 -0
- package/skills/weaver-e10-hrm/references/org.md +95 -0
- package/skills/weaver-e10-hrm/references/position.md +95 -0
- package/skills/weaver-e10-hrm/references/source-manifest.json +121 -0
- package/skills/weaver-e10-jiuchuanhui/SKILL.md +175 -0
- package/skills/weaver-e10-jiuchuanhui/product.json +8 -0
- package/skills/weaver-e10-jiuchuanhui/references/cache.md +110 -0
- package/skills/weaver-e10-jiuchuanhui/references/clue.md +61 -0
- package/skills/weaver-e10-jiuchuanhui/references/contact-plan.md +56 -0
- package/skills/weaver-e10-jiuchuanhui/references/contact-records.md +48 -0
- package/skills/weaver-e10-jiuchuanhui/references/contact.md +56 -0
- package/skills/weaver-e10-jiuchuanhui/references/customer.md +69 -0
- package/skills/weaver-e10-jiuchuanhui/references/disabled-capabilities.md +24 -0
- package/skills/weaver-e10-jiuchuanhui/references/discovery-config.md +60 -0
- package/skills/weaver-e10-jiuchuanhui/references/general-helpers.md +59 -0
- package/skills/weaver-e10-jiuchuanhui/references/jiuchuanhui-entry.md +60 -0
- package/skills/weaver-e10-jiuchuanhui/references/sale.md +72 -0
- package/skills/weaver-e10-jiuchuanhui/references/source-manifest.json +2632 -0
- package/skills/weaver-e10-jucailin/SKILL.md +102 -0
- package/skills/weaver-e10-jucailin/product.json +8 -0
- package/skills/weaver-e10-jucailin/references/attend-read.md +73 -0
- package/skills/weaver-e10-jucailin/references/attend-write.md +82 -0
- package/skills/weaver-e10-jucailin/references/hr-contact.md +92 -0
- package/skills/weaver-e10-jucailin/references/hr-datasource.md +104 -0
- package/skills/weaver-e10-jucailin/references/hr-report.md +76 -0
- package/skills/weaver-e10-jucailin/references/recruit-read.md +76 -0
- package/skills/weaver-e10-jucailin/references/recruit-write.md +70 -0
- package/skills/weaver-e10-jucailin/references/safety-boundaries.md +35 -0
- package/skills/weaver-e10-jucailin/references/salary.md +110 -0
- package/skills/weaver-e10-jucailin/references/source-manifest.json +152 -0
- package/skills/weaver-e10-mail/SKILL.md +152 -0
- package/skills/weaver-e10-mail/product.json +8 -0
- package/skills/weaver-e10-mail/references/mail-agent-entry.md +47 -0
- package/skills/weaver-e10-mail/references/mail-attachment.md +30 -0
- package/skills/weaver-e10-mail/references/mail-blacklist.md +27 -0
- package/skills/weaver-e10-mail/references/mail-contacts.md +33 -0
- package/skills/weaver-e10-mail/references/mail-manage.md +44 -0
- package/skills/weaver-e10-mail/references/mail-read.md +76 -0
- package/skills/weaver-e10-mail/references/mail-send.md +43 -0
- package/skills/weaver-e10-mail/references/mail-sign.md +33 -0
- package/skills/weaver-e10-mail/references/mail-template.md +31 -0
- package/skills/weaver-e10-mail/references/safety-boundaries.md +32 -0
- package/skills/weaver-e10-meeting/SKILL.md +106 -0
- package/skills/weaver-e10-meeting/product.json +8 -0
- package/skills/weaver-e10-meeting/references/meeting-change.md +67 -0
- package/skills/weaver-e10-meeting/references/meeting-create.md +52 -0
- package/skills/weaver-e10-meeting/references/meeting-lifecycle.md +57 -0
- package/skills/weaver-e10-meeting/references/meeting-queries.md +61 -0
- package/skills/weaver-e10-meeting/references/meeting-receipts-signs.md +48 -0
- package/skills/weaver-e10-meeting/references/meeting-update.md +7 -0
- package/skills/weaver-e10-meeting/references/source-manifest.json +50 -0
- package/skills/weaver-e10-plan/SKILL.md +140 -0
- package/skills/weaver-e10-plan/product.json +8 -0
- package/skills/weaver-e10-plan/references/plan-collect-and-compose.md +123 -0
- package/skills/weaver-e10-plan/references/plan-overview-and-routing.md +138 -0
- package/skills/weaver-e10-plan/references/plan-report-query.md +154 -0
- package/skills/weaver-e10-plan/references/plan-report-remind.md +104 -0
- package/skills/weaver-e10-plan/references/plan-report-write.md +162 -0
- package/skills/weaver-e10-plan/references/source-manifest.json +858 -0
- package/skills/weaver-e10-qiyecheng/SKILL.md +119 -0
- package/skills/weaver-e10-qiyecheng/product.json +8 -0
- package/skills/weaver-e10-qiyecheng/references/budget.md +65 -0
- package/skills/weaver-e10-qiyecheng/references/catalog.md +56 -0
- package/skills/weaver-e10-qiyecheng/references/expense-center.md +51 -0
- package/skills/weaver-e10-qiyecheng/references/invoice-writeoff.md +57 -0
- package/skills/weaver-e10-qiyecheng/references/loan-management.md +59 -0
- package/skills/weaver-e10-qiyecheng/references/source-manifest.json +698 -0
- package/skills/weaver-e10-shared/SKILL.md +90 -0
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +127 -0
- package/skills/{weaver-work-cli-shared → weaver-e10-shared}/references/json-output-contract.md +34 -0
- package/skills/weaver-e10-shared/references/weaver-e10-installation.md +110 -0
- package/skills/weaver-e10-skill-maker/SKILL.md +78 -0
- package/skills/weaver-e10-skill-maker/product.json +8 -0
- package/skills/weaver-e10-skill-maker/references/business-skill-generation.md +124 -0
- package/skills/weaver-e10-skill-maker/references/detector-validation.md +101 -0
- package/skills/weaver-e10-skill-maker/references/module-cli-generation.md +230 -0
- package/skills/weaver-e10-skill-maker/references/post-generation-install.md +105 -0
- package/skills/weaver-e10-skill-maker/references/source-update-detection.md +261 -0
- package/skills/weaver-e10-skill-maker/references/weaver-skill-style.md +141 -0
- package/skills/weaver-e10-wenshuding/SKILL.md +158 -0
- package/skills/weaver-e10-wenshuding/product.json +8 -0
- package/skills/weaver-e10-wenshuding/references/archive-agent-entry.md +63 -0
- package/skills/weaver-e10-wenshuding/references/archive-borrow-car.md +52 -0
- package/skills/weaver-e10-wenshuding/references/archive-borrow-list.md +52 -0
- package/skills/weaver-e10-wenshuding/references/archive-disabled-capabilities.md +22 -0
- package/skills/weaver-e10-wenshuding/references/archive-download.md +48 -0
- package/skills/weaver-e10-wenshuding/references/archive-flow.md +46 -0
- package/skills/weaver-e10-wenshuding/references/archive-fonds.md +34 -0
- package/skills/weaver-e10-wenshuding/references/archive-info.md +33 -0
- package/skills/weaver-e10-wenshuding/references/archive-search.md +52 -0
- package/skills/weaver-e10-wenshuding/references/archive-upload.md +41 -0
- package/skills/weaver-e10-wenshuding/references/source-manifest.json +517 -0
- package/skills/weaver-e10-yepiaotong/SKILL.md +184 -0
- package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-add.md +1 -1
- package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-agent-entry.md +16 -9
- package/skills/weaver-e10-yepiaotong/references/invoice-browse-field-data.md +204 -0
- package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-delete.md +1 -1
- package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-detail.md +13 -5
- package/skills/weaver-e10-yepiaotong/references/invoice-disabled-capabilities.md +28 -0
- package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-download.md +9 -2
- package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-enterprise-list.md +12 -4
- package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-file-upload.md +9 -2
- package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-import.md +16 -7
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-examples.md +120 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-field-rules.md +161 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing.md +99 -0
- package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-ocr-preview.md +12 -4
- package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-personal-list.md +12 -4
- package/skills/weaver-e10-yepiaotong/references/invoice-red.md +261 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +97 -0
- package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-update.md +1 -1
- package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-validation-preview.md +9 -2
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +1340 -0
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +845 -0
- package/skills/weaver-e10-yepiaotong/references/reim-expense-subject-rules.md +94 -0
- package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +449 -0
- package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +266 -0
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +494 -0
- package/skills/weaver-e10-yepiaotong/references/source-manifest.json +1103 -0
- package/skills/weaver-e10-yimiaoban/SKILL.md +104 -0
- package/skills/weaver-e10-yimiaoban/product.json +8 -0
- package/skills/weaver-e10-yimiaoban/references/ding-write.md +68 -0
- package/skills/weaver-e10-yimiaoban/references/error-codes.md +85 -0
- package/skills/weaver-e10-yimiaoban/references/field-resolution.md +46 -0
- package/skills/weaver-e10-yimiaoban/references/file-user-i18n.md +54 -0
- package/skills/weaver-e10-yimiaoban/references/group-read.md +55 -0
- package/skills/weaver-e10-yimiaoban/references/group-write.md +72 -0
- package/skills/weaver-e10-yimiaoban/references/msg-read.md +59 -0
- package/skills/weaver-e10-yimiaoban/references/msg-write.md +64 -0
- package/skills/weaver-e10-yimiaoban/references/person.md +44 -0
- package/skills/weaver-e10-yimiaoban/references/safety-boundaries.md +61 -0
- package/skills/weaver-e10-yimiaoban/references/session-sysmsg.md +47 -0
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +485 -0
- package/skills/weaver-e10-ziguanjia/SKILL.md +163 -0
- package/skills/weaver-e10-ziguanjia/product.json +8 -0
- package/skills/weaver-e10-ziguanjia/references/source-manifest.json +147 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-agent-entry.md +65 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-create.md +45 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-depre.md +48 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-disabled-capabilities.md +22 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-purch.md +57 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-query.md +62 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-repair.md +83 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-resolve.md +49 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-return.md +70 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-update.md +45 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-use.md +60 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-viewlink.md +81 -0
- package/skills/weaver-work-cli-invoice/SKILL.md +0 -122
- package/skills/weaver-work-cli-invoice/references/invoice-disabled-capabilities.md +0 -26
- package/skills/weaver-work-cli-shared/SKILL.md +0 -63
- package/skills/weaver-work-cli-shared/references/e10-auth-and-session.md +0 -90
- package/skills/weaver-work-cli-shared/references/weaver-work-cli-installation.md +0 -73
- /package/skills/{weaver-work-cli-shared → weaver-e10-shared}/references/high-risk-write.md +0 -0
- /package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/product.json +0 -0
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
# 查询报告详情、报告列表与评论
|
|
2
|
+
|
|
3
|
+
## 何时使用
|
|
4
|
+
|
|
5
|
+
- 用户要看某份报告的内容(「看看小A 2026年第33周的报告」「本周我交报告了吗」);
|
|
6
|
+
- 用户要看共享给自己的报告、下属的报告、团队成员的报告(「共享给我的报告」「下属这周交了吗」);
|
|
7
|
+
- 用户在查看报告详情后要求查看评论内容。
|
|
8
|
+
|
|
9
|
+
对应 operation:`plan.report.get`、`plan.report.page`、`plan.comment.list`。
|
|
10
|
+
|
|
11
|
+
## 输入要点
|
|
12
|
+
|
|
13
|
+
### plan.report.get
|
|
14
|
+
|
|
15
|
+
| 字段 | 说明 |
|
|
16
|
+
| --- | --- |
|
|
17
|
+
| `id` | 报告 id;与周期参数二选一,给了 `id` 就忽略周期参数 |
|
|
18
|
+
| `year` | 报告年份;缺省取本年 |
|
|
19
|
+
| `type` | `week` / `month` / `season` / `halfYear` / `year` |
|
|
20
|
+
| `serialNumber` | 报告周期(正整数) |
|
|
21
|
+
| `creatorUserId` | 报告创建人 id;缺省为当前登录人。**禁止传 userId 之外的 ID 形态,需由 weaver-e10-hrm 解析姓名** |
|
|
22
|
+
| `withComments` | 标准版链路下是否同时查询评论总条数,默认 `true` |
|
|
23
|
+
|
|
24
|
+
按周期查询时 `type` + `serialNumber` 必填,`year` 缺省取本年;`creatorUserId` 缺省为当前登录人。CLI 内部按周期查询为标准版链路要求,缺省值会自动补齐。
|
|
25
|
+
|
|
26
|
+
### plan.report.page
|
|
27
|
+
|
|
28
|
+
| 字段 | 说明 |
|
|
29
|
+
| --- | --- |
|
|
30
|
+
| `scope` | `share`(共享给我的,默认)/ `mine`(我自己及他人共享给我的,eb 链路按创建人筛选) |
|
|
31
|
+
| `unreadOnly` | 仅看未读(标准版专属,eb 链路不支持) |
|
|
32
|
+
| `year` / `type` / `serialNumber` | 报告筛选条件 |
|
|
33
|
+
| `creatorUserId` | 报告创建人 id(eb 链路支持;标准版分页接口不支持按创建人筛选,会返回警告) |
|
|
34
|
+
| `onlyIncludeSubs` | 是否只包含下属(标准版专属) |
|
|
35
|
+
| `pageNo` / `pageSize` | 默认 1 / 10,`pageSize` 最大 100;不自动翻页 |
|
|
36
|
+
|
|
37
|
+
### plan.comment.list
|
|
38
|
+
|
|
39
|
+
| 字段 | 说明 |
|
|
40
|
+
| --- | --- |
|
|
41
|
+
| `reportId` | 报告 id(必填) |
|
|
42
|
+
| `pageNo` / `pageSize` | 默认 1 / 10 |
|
|
43
|
+
|
|
44
|
+
## 命令
|
|
45
|
+
|
|
46
|
+
查询某份报告(按周期,本周周报):
|
|
47
|
+
|
|
48
|
+
Windows PowerShell:
|
|
49
|
+
|
|
50
|
+
```powershell
|
|
51
|
+
weaver-work-cli --json plan run plan.report.get --input-json '{"year":2026,"type":"week","serialNumber":36}'
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
macOS/Linux(bash/zsh):
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
weaver-work-cli --json plan run plan.report.get --input-json '{"year":2026,"type":"week","serialNumber":36}'
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
按报告 id 查询:
|
|
61
|
+
|
|
62
|
+
Windows PowerShell:
|
|
63
|
+
|
|
64
|
+
```powershell
|
|
65
|
+
weaver-work-cli --json plan run plan.report.get --input-json '{"id":"PLACEHOLDER_REPORT_ID"}'
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
macOS/Linux(bash/zsh):
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
weaver-work-cli --json plan run plan.report.get --input-json '{"id":"PLACEHOLDER_REPORT_ID"}'
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
分页查询共享给我的报告:
|
|
75
|
+
|
|
76
|
+
Windows PowerShell:
|
|
77
|
+
|
|
78
|
+
```powershell
|
|
79
|
+
weaver-work-cli --json plan run plan.report.page --input-json '{"pageNo":1,"pageSize":10}'
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
macOS/Linux(bash/zsh):
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
weaver-work-cli --json plan run plan.report.page --input-json '{"pageNo":1,"pageSize":10}'
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
只查下属、只看未读(标准版链路):
|
|
89
|
+
|
|
90
|
+
Windows PowerShell:
|
|
91
|
+
|
|
92
|
+
```powershell
|
|
93
|
+
weaver-work-cli --json plan run plan.report.page --input-json '{"unreadOnly":true,"onlyIncludeSubs":true,"pageNo":1,"pageSize":20}'
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
macOS/Linux(bash/zsh):
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
weaver-work-cli --json plan run plan.report.page --input-json '{"unreadOnly":true,"onlyIncludeSubs":true,"pageNo":1,"pageSize":20}'
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
查看评论内容(仅标准版链路):
|
|
103
|
+
|
|
104
|
+
Windows PowerShell:
|
|
105
|
+
|
|
106
|
+
```powershell
|
|
107
|
+
weaver-work-cli --json plan run plan.comment.list --input-json '{"reportId":"PLACEHOLDER_REPORT_ID","pageNo":1,"pageSize":10}'
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
macOS/Linux(bash/zsh):
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
weaver-work-cli --json plan run plan.comment.list --input-json '{"reportId":"PLACEHOLDER_REPORT_ID","pageNo":1,"pageSize":10}'
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## 输出处理
|
|
117
|
+
|
|
118
|
+
### plan.report.get
|
|
119
|
+
|
|
120
|
+
- `exists`:报告是否存在。`false` 表示该人员该周期没有报告(用于判断是否提交)。
|
|
121
|
+
- `report`:统一的业务报告结构(`reportId` / `title` / `content` / `summary` / `plans` / `year` / `type` / `typeLabel` / `serialNumber` / `postStatus` / `postStatusLabel` / `postTime` / `postTimeStatus` / `creator`)。
|
|
122
|
+
- `detailUrl`:可直接跳转的报告详情页链接,必须呈现给用户。
|
|
123
|
+
- `commentCount` / `commentHint`:仅在**标准版链路且评论总条数大于 0** 时出现。
|
|
124
|
+
|
|
125
|
+
### 评论处理规则(查询单份报告详情时生效)
|
|
126
|
+
|
|
127
|
+
1. 评论总条数 = 0:只返回报告详情,**完全忽略评论模块**,不输出任何评论相关文字。
|
|
128
|
+
2. 评论总条数 > 0:返回报告详情,并附加提示「该报告下共有 {N} 条评论,是否需要查看评论内容?」,**禁止直接输出评论内容**。
|
|
129
|
+
3. 只有收到用户明确的查看评论类指令后,才调用 `plan.comment.list` 展示全部评论详情。
|
|
130
|
+
|
|
131
|
+
### plan.report.page
|
|
132
|
+
|
|
133
|
+
`rows` 中每行都是统一业务报告结构,并带 `detailUrl`。必须用表格呈现,固定列:
|
|
134
|
+
|
|
135
|
+
| 报告名称 | 报告创建人名称 | 发布时间 |
|
|
136
|
+
| --- | --- | --- |
|
|
137
|
+
|
|
138
|
+
- 报告名称渲染为指向 `detailUrl` 的可点击链接。
|
|
139
|
+
- `count` 为本页返回行数;`pageSize` 最大 100,不做自动翻页。
|
|
140
|
+
- `warnings` 非空时要向用户简要说明(例如标准版链路忽略 `creatorUserId`)。
|
|
141
|
+
|
|
142
|
+
## 注意
|
|
143
|
+
|
|
144
|
+
- 「某某某的报告」需要先由 weaver-e10-hrm skill 把姓名解析为人员 ID,再作为 `creatorUserId` 传入;禁止把姓名直接当 ID 传。
|
|
145
|
+
- 标准版链路的报告列表接口语义是「共享给我的报告」,它不能按创建人过滤;需要按人筛选时改用 eb 链路或按 `plan.report.get` 精确查询。
|
|
146
|
+
- eb 链路未提供报告评论接口,`plan.comment.list` 会返回 `policy/link_unsupported`;此时如实告知用户该链路无法查询评论。
|
|
147
|
+
- 不要在只读查询场景调用业务模块采集数据。
|
|
148
|
+
|
|
149
|
+
## 失败处理
|
|
150
|
+
|
|
151
|
+
- `not_found`:目标报告不存在。按周期查询时 `exists:false` 是正常结果,不是错误。
|
|
152
|
+
- `validation/type_invalid` / `validation/serial_number_invalid` / `validation/year_invalid`:入参不合法,按提示修正后重试一次。
|
|
153
|
+
- `policy/link_unsupported`:该能力在当前链路不可用,按 `message` 说明告知用户。
|
|
154
|
+
- `authentication` / `session_expired`:先确认 E10 登录域名再执行 `weaver-work-cli auth login`。
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# 发送报告提交提醒
|
|
2
|
+
|
|
3
|
+
## 何时使用
|
|
4
|
+
|
|
5
|
+
- 查询发现部分人员在指定周期没有报告,用户确认需要提醒时;
|
|
6
|
+
- 用户直接要求「提醒某某交报告」「催一下团队交周报」。
|
|
7
|
+
|
|
8
|
+
对应 operation:`plan.report.remind.prepare` → `plan.report.remind.apply`(**仅标准版链路**)。
|
|
9
|
+
|
|
10
|
+
## 触发前提
|
|
11
|
+
|
|
12
|
+
1. 先用 `plan.report.get` 按周期确认目标人员在该周期确实没有报告(逐人确认,缺省创建人参数需替换为目标人员 ID)。
|
|
13
|
+
2. 把「哪些人缺少该周期报告」摘要给用户,并询问 **是否需要向提交人发送提交提醒**。
|
|
14
|
+
3. 用户明确确认后,才进入 `prepare → apply`。
|
|
15
|
+
|
|
16
|
+
不要未经确认就批量发送提醒。
|
|
17
|
+
|
|
18
|
+
## 输入要点
|
|
19
|
+
|
|
20
|
+
| 字段 | 说明 |
|
|
21
|
+
| --- | --- |
|
|
22
|
+
| `personIds` | 需要提醒的人员 ID(`["1001","1002"]` 数组或 `"1001,1002"` 英文逗号拼接字符串)。**必须由 weaver-e10-hrm 解析姓名得到真实人员 ID,禁止传姓名** |
|
|
23
|
+
| `year` | 报告年份;缺省取本年 |
|
|
24
|
+
| `type` | `week` / `month` / `season` / `halfYear` / `year`(必填) |
|
|
25
|
+
| `serialNumber` | 报告周期(必填) |
|
|
26
|
+
| `content` | 提醒文案;缺省按周期生成默认文案 |
|
|
27
|
+
|
|
28
|
+
## 默认提醒文案
|
|
29
|
+
|
|
30
|
+
用户未指定文案时使用动态默认文案,年份与周期随实际条件替换:
|
|
31
|
+
|
|
32
|
+
| 报告类型 | 默认文案 |
|
|
33
|
+
| --- | --- |
|
|
34
|
+
| 周报 | 请提交{年份}年第{N}周的报告 |
|
|
35
|
+
| 月报 | 请提交{年份}年{N}月的报告 |
|
|
36
|
+
| 季报 | 请提交{年份}年第{N}季度的报告 |
|
|
37
|
+
| 年中报告 | 请提交{年份}年年中报告 |
|
|
38
|
+
| 年报 | 请提交{年份}年年度报告 |
|
|
39
|
+
|
|
40
|
+
## 命令
|
|
41
|
+
|
|
42
|
+
准备发送(含默认文案):
|
|
43
|
+
|
|
44
|
+
Windows PowerShell:
|
|
45
|
+
|
|
46
|
+
```powershell
|
|
47
|
+
weaver-work-cli --json plan run plan.report.remind.prepare --input-json '{"personIds":["PLACEHOLDER_PERSON_ID"],"year":2026,"type":"week","serialNumber":36}'
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
macOS/Linux(bash/zsh):
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
weaver-work-cli --json plan run plan.report.remind.prepare --input-json '{"personIds":["PLACEHOLDER_PERSON_ID"],"year":2026,"type":"week","serialNumber":36}'
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
指定文案:
|
|
57
|
+
|
|
58
|
+
Windows PowerShell:
|
|
59
|
+
|
|
60
|
+
```powershell
|
|
61
|
+
weaver-work-cli --json plan run plan.report.remind.prepare --input-json '{"personIds":"PLACEHOLDER_PERSON_ID,PLACEHOLDER_PERSON_ID_2","type":"month","serialNumber":9,"content":"请在今天 18:00 前提交9月月报"}'
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
macOS/Linux(bash/zsh):
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
weaver-work-cli --json plan run plan.report.remind.prepare --input-json '{"personIds":"PLACEHOLDER_PERSON_ID,PLACEHOLDER_PERSON_ID_2","type":"month","serialNumber":9,"content":"请在今天 18:00 前提交9月月报"}'
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
用户确认后发送:
|
|
71
|
+
|
|
72
|
+
Windows PowerShell:
|
|
73
|
+
|
|
74
|
+
```powershell
|
|
75
|
+
weaver-work-cli --json plan run plan.report.remind.apply --input-json '{"confirm":true,"continuation":"PLACEHOLDER_CONTINUATION"}'
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
macOS/Linux(bash/zsh):
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
weaver-work-cli --json plan run plan.report.remind.apply --input-json '{"confirm":true,"continuation":"PLACEHOLDER_CONTINUATION"}'
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## 输出处理
|
|
85
|
+
|
|
86
|
+
`prepare` 返回 `preview`:`personIds`(人员 ID 列表)、`targets`(年份/类型/周期)、`content`(实际文案)、`messageEventCode`(固定 14)以及 `continuation`。
|
|
87
|
+
|
|
88
|
+
必须把「提醒对象 + 周期 + 实际文案」摘要给用户后再执行 `apply`。
|
|
89
|
+
|
|
90
|
+
`apply` 返回 `status: COMPLETE` 与 `personIds`、`content`。
|
|
91
|
+
|
|
92
|
+
## 注意
|
|
93
|
+
|
|
94
|
+
- 人员 ID 必须来自 weaver-e10-hrm 的 `id` / `employeeId`,**禁止使用 `userId`,禁止直接传姓名**。
|
|
95
|
+
- 提醒接口为标准版链路专属;eb 链路返回 `policy/link_unsupported`,如实告知用户当前链路无法发送提交提醒。
|
|
96
|
+
- 提醒属于对外发送动作,必须在用户明确确认后才 `apply`。
|
|
97
|
+
|
|
98
|
+
## 失败处理
|
|
99
|
+
|
|
100
|
+
- `policy/link_unsupported`:当前租户走 eb 链路,无提交提醒接口。
|
|
101
|
+
- `validation/ids_invalid` / `ids_required`:人员 ID 不合法或为空。
|
|
102
|
+
- `confirmation/required`:未取得用户确认。
|
|
103
|
+
- `partial` / `write_uncertain`:提醒是否已发送不确定,**禁止自动重试**,先向用户说明并询问是否重发。
|
|
104
|
+
- `api/business_error`:接口返回业务失败,按 `error.message` 说明。
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# 新建 / 修改 / 发布 / 撤回报告
|
|
2
|
+
|
|
3
|
+
## 何时使用
|
|
4
|
+
|
|
5
|
+
- 用户明确要求新建、修改、发布、撤回某个周期的报告;
|
|
6
|
+
- A 链路汇总完成、用户确认「生成对应周期的报告」后,创建报告;
|
|
7
|
+
- 用户已确认要报告但还没创建草稿,又要直接发布(先创建,再发布)。
|
|
8
|
+
|
|
9
|
+
这些 operation 全部是 `prepare → apply` 写入链,必须先取得用户明确确认。
|
|
10
|
+
|
|
11
|
+
## 输入要点
|
|
12
|
+
|
|
13
|
+
### 新建 `plan.report.create.prepare` / `.apply`
|
|
14
|
+
|
|
15
|
+
| 字段 | 说明 |
|
|
16
|
+
| --- | --- |
|
|
17
|
+
| `content` | 工作成效(支持 HTML 片段) |
|
|
18
|
+
| `summary` | 总结心得 |
|
|
19
|
+
| `plans` | 计划内容 |
|
|
20
|
+
| `year` | 报告年份;缺省取本年 |
|
|
21
|
+
| `type` | `week` / `month` / `season` / `halfYear` / `year`(必填) |
|
|
22
|
+
| `serialNumber` | 报告周期(必填,正整数) |
|
|
23
|
+
| `userName` | 当前登录人姓名,eb 链路自动生成报告名称时必填(由 weaver-e10-hrm 解析) |
|
|
24
|
+
| `title` | 报告名称,直接指定时优先于自动生成 |
|
|
25
|
+
|
|
26
|
+
- `content` / `summary` / `plans` 至少提供一个。
|
|
27
|
+
- eb 链路创建时发布状态固定为草稿(`0`),不允许为空或其它状态;报告名称按「{姓名}{年份}年第{N}周的报告」(周报)等规则动态生成。
|
|
28
|
+
- 标准版链路的报告名称由服务端生成并返回,无需传 `title` / `userName`。
|
|
29
|
+
|
|
30
|
+
### 修改 `plan.report.update.prepare` / `.apply`
|
|
31
|
+
|
|
32
|
+
用 `id` 或 `year` + `type` + `serialNumber`(+ `creatorUserId`)定位报告,再传要更新的 `content` / `summary` / `plans`(至少一个)。`prepare` 会先查当前内容并给出 before/after 差异;未传的字段保持原值。
|
|
33
|
+
|
|
34
|
+
### 发布 `plan.report.publish.prepare` / `.apply`
|
|
35
|
+
|
|
36
|
+
用 `id` 或周期参数定位报告。`prepare` 会校验报告存在且当前不是「已发布」;若还没创建草稿,先走新建流程。
|
|
37
|
+
|
|
38
|
+
### 撤回 `plan.report.withdraw.prepare` / `.apply`
|
|
39
|
+
|
|
40
|
+
用 `id` 或周期参数定位报告,`prepare` 会校验当前状态为「已发布(1)」。**仅标准版链路支持**:eb 链路的撤回是 ESB 动作流「eb撤回报告」,源资料未提供动作流唯一标识,CLI 返回 `policy/link_unsupported`,需要改用 weaver-e10-customesb-execute skill 执行同名动作流。
|
|
41
|
+
|
|
42
|
+
## 命令
|
|
43
|
+
|
|
44
|
+
### 新建(先 prepare)
|
|
45
|
+
|
|
46
|
+
Windows PowerShell:
|
|
47
|
+
|
|
48
|
+
```powershell
|
|
49
|
+
weaver-work-cli --json plan run plan.report.create.prepare --input-json '{"type":"week","serialNumber":36,"content":"<p>完成A模块联调</p>","summary":"<p>节奏可控</p>","plans":"<p>推进B模块</p>"}'
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
macOS/Linux(bash/zsh):
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
weaver-work-cli --json plan run plan.report.create.prepare --input-json '{"type":"week","serialNumber":36,"content":"<p>完成A模块联调</p>","summary":"<p>节奏可控</p>","plans":"<p>推进B模块</p>"}'
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
用户确认后 apply(`continuation` 用原样回传):
|
|
59
|
+
|
|
60
|
+
Windows PowerShell:
|
|
61
|
+
|
|
62
|
+
```powershell
|
|
63
|
+
weaver-work-cli --json plan run plan.report.create.apply --input-json '{"confirm":true,"continuation":"PLACEHOLDER_CONTINUATION"}'
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
macOS/Linux(bash/zsh):
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
weaver-work-cli --json plan run plan.report.create.apply --input-json '{"confirm":true,"continuation":"PLACEHOLDER_CONTINUATION"}'
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### 修改
|
|
73
|
+
|
|
74
|
+
Windows PowerShell:
|
|
75
|
+
|
|
76
|
+
```powershell
|
|
77
|
+
weaver-work-cli --json plan run plan.report.update.prepare --input-json '{"type":"week","serialNumber":36,"plans":"<p>下周三完成B模块验收</p>"}'
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
macOS/Linux(bash/zsh):
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
weaver-work-cli --json plan run plan.report.update.prepare --input-json '{"type":"week","serialNumber":36,"plans":"<p>下周三完成B模块验收</p>"}'
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### 发布
|
|
87
|
+
|
|
88
|
+
Windows PowerShell:
|
|
89
|
+
|
|
90
|
+
```powershell
|
|
91
|
+
weaver-work-cli --json plan run plan.report.publish.prepare --input-json '{"year":2026,"type":"week","serialNumber":36}'
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
macOS/Linux(bash/zsh):
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
weaver-work-cli --json plan run plan.report.publish.prepare --input-json '{"year":2026,"type":"week","serialNumber":36}'
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### 撤回
|
|
101
|
+
|
|
102
|
+
Windows PowerShell:
|
|
103
|
+
|
|
104
|
+
```powershell
|
|
105
|
+
weaver-work-cli --json plan run plan.report.withdraw.prepare --input-json '{"year":2026,"type":"week","serialNumber":36}'
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
macOS/Linux(bash/zsh):
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
weaver-work-cli --json plan run plan.report.withdraw.prepare --input-json '{"year":2026,"type":"week","serialNumber":36}'
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
复杂或多行内容(例如大段 HTML 报告正文)建议写入 UTF-8 JSON 文件后用 `--input <path>`:
|
|
115
|
+
|
|
116
|
+
Windows PowerShell:
|
|
117
|
+
|
|
118
|
+
```powershell
|
|
119
|
+
weaver-work-cli --json plan run plan.report.create.prepare --input "C:\path\to\plan-create.json"
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
macOS/Linux(bash/zsh):
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
weaver-work-cli --json plan run plan.report.create.prepare --input "/path/to/plan-create.json"
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## 输出处理
|
|
129
|
+
|
|
130
|
+
`*.prepare` 返回:
|
|
131
|
+
|
|
132
|
+
- `status`:`AWAITING_CONFIRMATION`(可继续确认执行)或 `ALREADY_EXISTS`(该周期报告已存在,不签发 continuation)。
|
|
133
|
+
- `preview`:将要写入的业务内容(新建为完整内容,修改为 `before` / `after` / `changedFields`)。
|
|
134
|
+
- `continuation` + `expiresInSeconds`:确认凭据,默认 10 分钟有效。
|
|
135
|
+
- `link`:本次生效的链路(`standard` / `eb`)。
|
|
136
|
+
|
|
137
|
+
`*.apply` 返回:
|
|
138
|
+
|
|
139
|
+
- `status: COMPLETE`;
|
|
140
|
+
- `reportId`(新建时返回新建报告 id)、`detailUrl`(必须呈现为可点击链接)。
|
|
141
|
+
|
|
142
|
+
## 注意
|
|
143
|
+
|
|
144
|
+
- **重复创建防护**:`plan.report.create.prepare` 会按周期(年份 + 类型 + 周期 + 当前登录人)先查重。返回 `status: ALREADY_EXISTS` 时**禁止**直接创建,必须先询问用户是否改为编辑已有报告。
|
|
145
|
+
- **先草稿后发布**:用户要求直接发布但还没有草稿时,先走新建(prepare→apply),再走发布(prepare→apply)。
|
|
146
|
+
- **判断是否已提交**只能通过 `plan.report.get` 按周期查询,不要用列表接口猜。
|
|
147
|
+
- **禁止出现数据库英文字段名**:创建出的报告内容与给用户的回复中,不要出现 `content` / `f_content` / `summary` / `f_summary` / `plans` / `f_plans` / `year` / `f_year` / `type` / `f_type` / `serial_number` / `f_serial_number` 等字段名。CLI 输入输出均为业务字段,直接使用即可。
|
|
148
|
+
- 涉及「让谁看/共享范围」「按上级或部门层级」等报告名称前缀信息,标准版由服务端处理;不要手工拼报告名称。
|
|
149
|
+
- 报告正文可能包含大段 HTML,属于业务数据处理,写入前必须在 `prepare` 预览里让用户确认内容。
|
|
150
|
+
|
|
151
|
+
## 失败处理
|
|
152
|
+
|
|
153
|
+
- `confirmation/required`:没有传 `confirm=true`。必须取得用户明确确认后再调用。
|
|
154
|
+
- `validation/continuation_invalid` / `continuation_mismatch` / `continuation_expired`:continuation 不合法、串用或过期,重新执行 `prepare`。
|
|
155
|
+
- `validation/context_mismatch` / `link_changed`:租户或登录账号变化、链路变化,重新执行 `prepare`。
|
|
156
|
+
- `validation/report_exists`:并发或状态变化导致重复。停止创建,改为询问用户是否编辑。
|
|
157
|
+
- `validation/not_found`:目标报告不存在;发布/撤回/修改前先创建。
|
|
158
|
+
- `validation/already_published`:已发布,无需重复发布。
|
|
159
|
+
- `validation/not_published`:不是已发布状态,无法撤回。
|
|
160
|
+
- `validation/userName_required`:eb 链路上未提供报告名称与姓名,先由 weaver-e10-hrm 解析当前登录人姓名后重试。
|
|
161
|
+
- `policy/link_unsupported`:该能力在当前链路不可用(eb 撤回),按 `message` 给出的替代路径处理。
|
|
162
|
+
- `partial` / `write_uncertain`:写请求已发出但结果不确定。**立即停止,禁止自动重试**;先用 `plan.report.get` 做一次只读回查,再向用户说明并让用户决定。
|