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
package/docs/fna.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# 齐业成费控中心(FNA)CLI
|
|
2
|
+
|
|
3
|
+
对应 `src/shortcuts/fna`,把泛微齐业成 FNA 费控中心 11 个源接口固化为 13 个 operation(预算 2 / 费用中心 3 / 借款管理 4 / 发票核销 4,其中提醒还款与催票为 prepare/apply 写链)。源资料:`/Users/zhufangyuan/Desktop/weaver-e10-qiyecheng`(指纹见 `skills/weaver-e10-qiyecheng/references/source-manifest.json`)。
|
|
4
|
+
|
|
5
|
+
## 公共前置
|
|
6
|
+
|
|
7
|
+
- 认证、profile、HTTP client 由 `src/internal/e10` 托管;业务 host 只适配 `/api/fna/` 与 `/api/app/fna/` 路径(`src/shortcuts/fna/host.ts` 的 `assertPath` 白名单)。
|
|
8
|
+
- 成功判定统一走 WeaResult(`success` 或 `status` 布尔 / `code==200`);费用中心 AI 查询用 `success`,预算/借款/核销用 `status`。
|
|
9
|
+
- JSON 输出与错误 envelope、退出码遵循共享规则;写操作不满足确认条件返回 `confirmation.required`(exit 10),请求发出后结果不确定返回 `partial/write_uncertain`(exit 11)。
|
|
10
|
+
|
|
11
|
+
## Agent 入口
|
|
12
|
+
|
|
13
|
+
面向 Agent 时先读 `skills/weaver-e10-qiyecheng/SKILL.md`,再按入口路由读取 `references/`(catalog/budget/expense-center/loan-management/invoice-writeoff)。
|
|
14
|
+
|
|
15
|
+
## Operation 目录
|
|
16
|
+
|
|
17
|
+
| Operation | 风险 | 固定规则与要点 |
|
|
18
|
+
|---|---|---|
|
|
19
|
+
| `fna.budget.application.detail` | read | GET `preApplication/getApplicationDetail`;`requestId` 必填 |
|
|
20
|
+
| `fna.budget.execute.list` | read | POST `execute/getExecuteListByAi`;`current`/`pageSize` 必填;`templateId` 空仅返回表头 |
|
|
21
|
+
| `fna.expense.reimbursed.sum` | read | POST `expense/center/getSumReimbursedAmountByAi`;body 可空 |
|
|
22
|
+
| `fna.expense.loan.sum` | read | POST `expense/center/getSumLoanAmountByAi`;只认数字 ID;空 data 自动重试 2 次;已知仅统计首条记录缺陷 |
|
|
23
|
+
| `fna.expense.prepay.writeoff.sum` | read | POST `expense/center/selectPrepayWriteOffAmountBySkill`;body 可空 |
|
|
24
|
+
| `fna.loan.main.page` | read | POST `loanManagementMenu/mainPage` |
|
|
25
|
+
| `fna.loan.main.list` | read | POST `loanManagementMenu/mainPageList`;`current`/`pageSize`/`menuCode`/`permissionSetCode` 必填 |
|
|
26
|
+
| `fna.loan.remind.repay.prepare` | write | 校验 displayData 行并预览,不发送 |
|
|
27
|
+
| `fna.loan.remind.repay.apply` | write | 需 `confirm:true` + continuation;行指纹与 prepare 一致 |
|
|
28
|
+
| `fna.invoice.writeoff.summary` | read | POST `inv/financial/writeOffPageTab` |
|
|
29
|
+
| `fna.invoice.writeoff.list` | read | POST `inv/financial/writeOffList`;`current`/`pageSize` 必填 |
|
|
30
|
+
| `fna.invoice.writeoff.callticket.prepare` | write | 校验 requestids 并预览,不发送 |
|
|
31
|
+
| `fna.invoice.writeoff.callticket.apply` | write | 需 `confirm:true` + continuation;指纹与 prepare 一致 |
|
|
32
|
+
|
|
33
|
+
完整 schema(inputSchema/required/enum)以 `weaver-work-cli fna schema` 为准。`withheldOperations` 记录了未实现的按钮能力(确认已还、核销明细)与 ID 解析边界。
|
|
34
|
+
|
|
35
|
+
## 常用命令
|
|
36
|
+
|
|
37
|
+
Windows PowerShell:
|
|
38
|
+
|
|
39
|
+
```powershell
|
|
40
|
+
weaver-work-cli --json fna run fna.budget.application.detail --input-json '{"requestId":"1001"}'
|
|
41
|
+
weaver-work-cli --json fna run fna.expense.reimbursed.sum --input-json '{"startDate":"2026-01-01","endDate":"2026-08-31"}'
|
|
42
|
+
weaver-work-cli --json fna run fna.loan.main.list --input-json '{"current":1,"pageSize":20,"menuCode":"fesx_fna_borrowingManagement","permissionSetCode":"fesx_fna_borrowingManagement.default"}'
|
|
43
|
+
weaver-work-cli --json fna run fna.invoice.writeoff.list --input-json '{"current":1,"pageSize":20,"invoiceStatus":"unarrivedTicket"}'
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
macOS/Linux(bash/zsh):
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
weaver-work-cli --json fna run fna.budget.application.detail --input-json '{"requestId":"1001"}'
|
|
50
|
+
weaver-work-cli --json fna run fna.expense.reimbursed.sum --input-json '{"startDate":"2026-01-01","endDate":"2026-08-31"}'
|
|
51
|
+
weaver-work-cli --json fna run fna.loan.main.list --input-json '{"current":1,"pageSize":20,"menuCode":"fesx_fna_borrowingManagement","permissionSetCode":"fesx_fna_borrowingManagement.default"}'
|
|
52
|
+
weaver-work-cli --json fna run fna.invoice.writeoff.list --input-json '{"current":1,"pageSize":20,"invoiceStatus":"unarrivedTicket"}'
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
写操作(提醒还款示例):先用 `fna.loan.main.list` 取行 → 存 UTF-8 JSON 文件 → prepare → 向用户展示预览并取得明确确认 → apply(`--input` 传同一文件,apply 文件加 `confirm:true` 与 continuation)。Windows 用 `C:\path\to\loan-rows.json`、macOS/Linux 用 `/tmp/loan-rows.json`。
|
|
56
|
+
|
|
57
|
+
## 口径与已知缺陷
|
|
58
|
+
|
|
59
|
+
- 金额单位元:`data` 原始精度字符串、`displayData` 格式化;费用中心借款/预付核销接口金额实测可能返回字符串或数字。
|
|
60
|
+
- 借款 `getSumLoanAmountByAi` 仅统计首条借款记录(for 循环内 return),汇报需注明口径。
|
|
61
|
+
- 日期口径:报销按明细费用日期、借款按流程创建时间、预付核销按核销记录创建时间。
|
|
62
|
+
- `menuCode`/`permissionSetCode` 环境相关,示例值需与环境核对。
|
|
63
|
+
- 超 2^53 的 requestId 无法用 JS 数字精确表达,保留字符串并提示人工核验(真实环境 ID 一般在安全整数内,已按数字发送)。
|
|
64
|
+
|
|
65
|
+
## 验证
|
|
66
|
+
|
|
67
|
+
```text
|
|
68
|
+
weaver-work-cli fna schema
|
|
69
|
+
weaver-work-cli --json fna run fna.budget.application.detail --input-json '{"requestId":"<占位>"}'
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
对应测试:`test/business/fna-operations.test.ts`、`test/business/fna-host.test.ts`;layout 约束见 `test/skills/layout.test.ts`。
|
package/docs/hrm.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# 组织管理(hrm)
|
|
2
|
+
|
|
3
|
+
`hrm` 是 E10 组织管理的聚合命令,覆盖**员工(employee)**、**组织(org)**、**岗位(position)** 三个业务域,全部为只读查询。
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
weaver-work-cli hrm --help
|
|
7
|
+
weaver-work-cli hrm schema
|
|
8
|
+
weaver-work-cli --json hrm run <operation> --input -
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
`schema` 是能力清单的唯一事实来源,包含每个 operation 的 `inputSchema`、`risk`,以及禁用清单 `withheldOperations`(代理商查询 `hrm.employee.dls`)。
|
|
12
|
+
|
|
13
|
+
## 实现位置
|
|
14
|
+
|
|
15
|
+
| 路径 | 职责 |
|
|
16
|
+
| --- | --- |
|
|
17
|
+
| `src/shortcuts/hrm/index.ts` | 命令注册与 JSON envelope |
|
|
18
|
+
| `src/shortcuts/hrm/manifest.ts` | `schema` 契约与禁用边界声明 |
|
|
19
|
+
| `src/shortcuts/hrm/host.ts` | E10 会话桥接、HRM 页面上下文 Referer、JSON 请求、响应归一化 |
|
|
20
|
+
| `src/shortcuts/hrm/operations/` | 按业务域拆分的 operation 实现(employee / org / position) |
|
|
21
|
+
| `src/shortcuts/hrm/operations/registry.ts` | operation 注册表与去重校验 |
|
|
22
|
+
|
|
23
|
+
## 认证
|
|
24
|
+
|
|
25
|
+
复用 `src/internal/e10` 的 E10 会话(`requireE10Session`),请求自动携带 `Cookie`、`eteamsid` 与 `X-Requested-With: XMLHttpRequest`。业务代码不接触认证目录。
|
|
26
|
+
|
|
27
|
+
请求路径强制以 `/api/` 开头,并拒绝绝对路径、跨域 URL 与路径逃逸。
|
|
28
|
+
|
|
29
|
+
HRM 接口必须携带页面上下文 `Referer`(默认 `<baseUrl>/hrm/main`),否则网关长时间无响应;组织卡片与岗位卡片详情由 operation 覆盖为 `/sp/hrm/orgCard/{id}`、`/sp/hrm/positionCard/{id}`。
|
|
30
|
+
|
|
31
|
+
## 跨模块约定
|
|
32
|
+
|
|
33
|
+
三个业务域统一走 E10 HRM 内部浏览/详情接口,响应统一 `WeaResult` 契约,由 `host.ts` 与 `operations/shared.ts` 归一化:
|
|
34
|
+
|
|
35
|
+
**响应成功判定**:统一 `code=200`。`403`(接口开关未开启)抛 `api/permission_denied`,其余业务失败抛 `api/business_error`。
|
|
36
|
+
|
|
37
|
+
**数据行位置**:
|
|
38
|
+
|
|
39
|
+
| 接口类型 | 行字段 | 总数 |
|
|
40
|
+
| --- | --- | --- |
|
|
41
|
+
| 员工浏览 `employee.query` | `data.data` | `count/resource` 的 `data.total`(`data/resource` 的 `data.count` 恒为 0) |
|
|
42
|
+
| 下属查询 `subordinate.mine` | `data.data` | `count/resource` 的 `data.total` |
|
|
43
|
+
| 组织浏览 `org.query` | `data.data` | `data.total` |
|
|
44
|
+
| 岗位浏览 `position.query` | `data.data` | `data.total` |
|
|
45
|
+
| 岗位批量 `position.list` | `data.data` | `data.total` |
|
|
46
|
+
| 批量人员 `employee.batch` | `data.userList` | 行数 |
|
|
47
|
+
| 下属按 id `subordinate.by-id` | `data.page.result` | `data.page.totalCount` |
|
|
48
|
+
|
|
49
|
+
**详情接口**(`employee.detail`/`org.detail`/`position.detail`)返回单对象,CLI 附 `link`。
|
|
50
|
+
|
|
51
|
+
**长整型 id 一律按字符串传递**;**手机号已脱敏**(3 位前缀 + `****` + 末 4 位)。
|
|
52
|
+
|
|
53
|
+
## 详情页卡片链接
|
|
54
|
+
|
|
55
|
+
查询命中后,回答中一律用 `[名称](link)` 形式输出每个命中实体(`link` 由 CLI 在每行提供):
|
|
56
|
+
|
|
57
|
+
| 卡片 | link 路径 | 来源 operation |
|
|
58
|
+
| --- | --- | --- |
|
|
59
|
+
| 人员卡片 | `/sp/hrm/profileInfo/{id}` | `employee.query`/`employee.batch`/`subordinate.*`/`employee.detail` |
|
|
60
|
+
| 组织卡片 | `/sp/hrm/orgCard/{id}` | `org.query`/`org.detail` |
|
|
61
|
+
| 岗位卡片 | `/sp/hrm/positionCard/{id}` | `position.query`/`position.detail`/`position.list` |
|
|
62
|
+
|
|
63
|
+
## 调用示例
|
|
64
|
+
|
|
65
|
+
Windows PowerShell:
|
|
66
|
+
|
|
67
|
+
```powershell
|
|
68
|
+
weaver-work-cli --json hrm run hrm.employee.query --input-json '{"keyword":"张三"}'
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
macOS/Linux(bash/zsh):
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
printf '%s\n' '{"keyword":"张三"}' | weaver-work-cli --json hrm run hrm.employee.query --input -
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## 禁用边界
|
|
78
|
+
|
|
79
|
+
`withheldOperations` 中声明的能力不实现,也不要绕过:
|
|
80
|
+
|
|
81
|
+
- **代理商查询**(`hrm.employee.dls`):`containsDls=true` 仅泛微自用系统域名支持(自用域名白名单),客户/其他环境禁止触发。
|
|
82
|
+
|
|
83
|
+
## 测试
|
|
84
|
+
|
|
85
|
+
```text
|
|
86
|
+
node --test --import tsx "test/business/hrm-operations.test.ts" "test/business/hrm-host.test.ts" "test/business/hrm-command.test.ts"
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
覆盖 manifest/registry 一致性、请求形状断言、收敛条件与全量拉取拦截、响应归一化、Referer 注入与路径白名单、错误形状。
|
package/docs/invoice.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
# 业票通发票管理 CLI
|
|
2
2
|
|
|
3
|
-
来源目录:`weaver-e10-yepiaotong`,内容版本 `
|
|
3
|
+
来源目录:`weaver-e10-yepiaotong`,内容版本 `3.0.0`。本模块把接口文档中可安全自动化的能力封装为 `weaver-work-cli invoice` 命令,供 AI Agent 通过结构化 JSON 调用。
|
|
4
4
|
|
|
5
5
|
源码位于 `src/shortcuts/invoice`。命令注册、operation manifest 和业务执行逻辑分离;具体执行逻辑在 `src/shortcuts/invoice/operations` 中按 operation class 维护。
|
|
6
6
|
|
|
7
|
-
面向 Agent 的说明位于 `skills/weaver-
|
|
7
|
+
面向 Agent 的说明位于 `skills/weaver-e10-yepiaotong`。入口 `SKILL.md` 只负责共享规则和 reference 路由;具体细节拆在 `skills/weaver-e10-yepiaotong/references/`,与飞书 CLI 的业务 Skill 组织方式保持一致。
|
|
8
8
|
|
|
9
9
|
## 公共前置
|
|
10
10
|
|
|
11
11
|
先通过 E10 鉴权模块登录:
|
|
12
12
|
|
|
13
|
-
```
|
|
14
|
-
weaver-work-cli auth login --base-url "https://weapp.xxx.cn"
|
|
13
|
+
```text
|
|
14
|
+
weaver-work-cli auth login --base-url "https://weapp.xxx.cn" --agent_type "<当前智能体名称>"
|
|
15
15
|
weaver-work-cli auth status --no-check
|
|
16
16
|
```
|
|
17
17
|
|
|
@@ -27,9 +27,18 @@ Agent 不得在业务 JSON 中传 `access_token`、`app_key`、`app_secret`、Co
|
|
|
27
27
|
|
|
28
28
|
优先使用 `invoice run <operation>`:
|
|
29
29
|
|
|
30
|
+
Windows PowerShell:
|
|
31
|
+
|
|
32
|
+
```powershell
|
|
33
|
+
weaver-work-cli invoice schema
|
|
34
|
+
weaver-work-cli --json invoice run invoice.list --input-json '{"page_size":10,"start_pos":0}'
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
macOS/Linux(bash/zsh):
|
|
38
|
+
|
|
30
39
|
```bash
|
|
31
40
|
weaver-work-cli invoice schema
|
|
32
|
-
|
|
41
|
+
weaver-work-cli --json invoice run invoice.list --input-json '{"page_size":10,"start_pos":0}'
|
|
33
42
|
```
|
|
34
43
|
|
|
35
44
|
成功和失败都使用 JSON envelope。成功写 stdout;失败写 stderr,并设置非 0 退出码。
|
|
@@ -51,35 +60,67 @@ echo '{"page_size":10,"start_pos":0}' | weaver-work-cli --json invoice run invoi
|
|
|
51
60
|
| `invoice.update.prepare/apply` | 高风险写 | 基于完整详情修改白名单字段,保留附件并回查 |
|
|
52
61
|
| `invoice.download` | 本地文件写 | 先校验 `fileId` 属于目标 `fid`,拒绝覆盖 |
|
|
53
62
|
| `invoice.delete.prepare/apply` | 高风险写 | 固定软删除 `flag=0`,确认后执行并回查 |
|
|
54
|
-
|
|
55
|
-
|
|
63
|
+
| `invoice.browse-field.data` | 只读 | 基于详情接口生成流程表单发票浏览按钮 JSON |
|
|
64
|
+
| `invoice.reim.file-ocr.preview` | 文件识别预览 | 对 E10 fileId 调用报销场景的发票识别接口,只保留成功项 |
|
|
65
|
+
| `invoice.reim.requests.list` | 只读 | 查询事前申请流程列表,默认 `pageNo=1`、`pageSize=20` |
|
|
66
|
+
| `invoice.reim.workflow.resolve` | 只读 | 根据事前申请 ID 获取报销工作流;无事前申请时传空数组 |
|
|
67
|
+
| `invoice.reim.form.structure` | 只读 | 获取报销流程表单字段结构 |
|
|
68
|
+
| `invoice.reim.row-info` | 只读 | 使用 urlencoded 请求获取单张发票明细行预填信息 |
|
|
69
|
+
| `invoice.reim.employee-superiors` | 只读 | 获取当前人员和上级信息 |
|
|
70
|
+
| `invoice.reim.field.search` | 只读 | 搜索表单关联字段值,用于用户修正或出差客户确认 |
|
|
71
|
+
| `invoice.reim.flow.create.prepare/apply` | 高风险写 | continuation 绑定已组装报销单 payload;确认后调用 `createFlowNew` |
|
|
72
|
+
| `invoice.reim.flow.update.prepare/apply` | 高风险写 | continuation 绑定更新 payload;确认后调用 `updateFlow` |
|
|
73
|
+
| `invoice.issuing.make.prepare/apply` | 高风险写 | 固定销方信息,确认后调用 `makeInvoice` 开票或存台账 |
|
|
74
|
+
|
|
75
|
+
共享、转让和标签仍暂不暴露给 Agent:新版源资料给出了提交接口,但还缺少稳定的接收人 `appid/cid/uid` 解析来源、标签关系查询和写后回查契约。
|
|
56
76
|
|
|
57
77
|
## 常用命令
|
|
58
78
|
|
|
59
|
-
```
|
|
60
|
-
weaver-work-cli --json invoice list --input
|
|
61
|
-
weaver-work-cli --json invoice enterprise list --input
|
|
62
|
-
weaver-work-cli --json invoice get --fid
|
|
79
|
+
```text
|
|
80
|
+
weaver-work-cli --json invoice list --input-json '{"page_size":10,"start_pos":0}'
|
|
81
|
+
weaver-work-cli --json invoice enterprise list --input-json '{"page_size":10,"start_pos":0}'
|
|
82
|
+
weaver-work-cli --json invoice get --fid INVOICE_FID
|
|
63
83
|
weaver-work-cli --json invoice upload --file ./invoice.pdf
|
|
64
84
|
weaver-work-cli --json invoice ocr preview --file ./invoice.pdf
|
|
65
|
-
weaver-work-cli --json invoice validate preview --fid
|
|
66
|
-
weaver-work-cli --json invoice download --fid
|
|
85
|
+
weaver-work-cli --json invoice validate preview --fid INVOICE_FID --scope personal
|
|
86
|
+
weaver-work-cli --json invoice download --fid INVOICE_FID --file-id FILE_ID --output ./invoice.pdf
|
|
87
|
+
weaver-work-cli --json invoice run invoice.browse-field.data --input-json '{"fid":"INVOICE_FID"}'
|
|
88
|
+
weaver-work-cli --json invoice run invoice.reim.requests.list --input-json '{"pageNo":1,"pageSize":20}'
|
|
67
89
|
```
|
|
68
90
|
|
|
69
91
|
写操作必须先 prepare,再 apply:
|
|
70
92
|
|
|
93
|
+
Windows PowerShell:
|
|
94
|
+
|
|
95
|
+
```powershell
|
|
96
|
+
weaver-work-cli --json invoice run invoice.ocr.preview --input-json '{"file":"./invoice.pdf"}'
|
|
97
|
+
|
|
98
|
+
weaver-work-cli --json invoice import prepare --input-json '{"file":"./invoice.pdf","validate":true,"syncToOa":true}'
|
|
99
|
+
|
|
100
|
+
weaver-work-cli --json invoice import apply --input-json '{"file":"./invoice.pdf","continuation":"PREPARE_CONTINUATION","confirm":true}'
|
|
101
|
+
|
|
102
|
+
weaver-work-cli --json invoice run invoice.reim.flow.create.prepare --input .\reim-create.json
|
|
103
|
+
|
|
104
|
+
weaver-work-cli --json invoice run invoice.issuing.make.prepare --input .\issuing.json
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
macOS/Linux(bash/zsh):
|
|
108
|
+
|
|
71
109
|
```bash
|
|
72
|
-
|
|
73
|
-
|
|
110
|
+
weaver-work-cli --json invoice run invoice.ocr.preview --input-json '{"file":"./invoice.pdf"}'
|
|
111
|
+
|
|
112
|
+
weaver-work-cli --json invoice import prepare --input-json '{"file":"./invoice.pdf","validate":true,"syncToOa":true}'
|
|
74
113
|
|
|
75
|
-
|
|
76
|
-
| weaver-work-cli --json invoice import prepare --input -
|
|
114
|
+
weaver-work-cli --json invoice import apply --input-json '{"file":"./invoice.pdf","continuation":"PREPARE_CONTINUATION","confirm":true}'
|
|
77
115
|
|
|
78
|
-
|
|
79
|
-
|
|
116
|
+
weaver-work-cli --json invoice run invoice.reim.flow.create.prepare --input ./reim-create.json
|
|
117
|
+
|
|
118
|
+
weaver-work-cli --json invoice run invoice.issuing.make.prepare --input ./issuing.json
|
|
80
119
|
```
|
|
81
120
|
|
|
82
|
-
导入本地发票文件时,面向 Agent 的正常链路是先 `invoice.ocr.preview`,再 `invoice.import.prepare` 使用 `validate=true`、`syncToOa=true`。只有用户明确要求跳过查验或离线导入时才传 `validate=false`;`validate=false`
|
|
121
|
+
导入本地发票文件时,面向 Agent 的正常链路是先 `invoice.ocr.preview`,再 `invoice.import.prepare` 使用 `validate=true`、`syncToOa=true`。只有用户明确要求跳过查验或离线导入时才传 `validate=false`;`validate=false` 表示跳过查验,不能描述为“查验通过”。
|
|
122
|
+
|
|
123
|
+
报销单创建和开票/存台账只接受 Agent 已组装好的 payload。CLI 不负责猜测事前申请匹配、出差客户或税率;这些规则在 Skill reference 中指导 Agent 组装和展示预览。写操作出现网络中断、部分成功、缺少回执 ID 或回查失败时,CLI 返回 `partial/write_uncertain`,Agent 禁止自动重复提交。
|
|
83
124
|
|
|
84
125
|
## 编辑白名单
|
|
85
126
|
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# 九氚汇营销管理 CLI
|
|
2
|
+
|
|
3
|
+
来源目录:`weaver-e10-jiuchuanhui`,内容版本 `1.1.1`。本模块把接口文档中可安全自动化的能力封装为 `weaver-work-cli jiuchuanhui` 命令,供 AI Agent 通过结构化 JSON 调用。
|
|
4
|
+
|
|
5
|
+
源码位于 `src/shortcuts/jiuchuanhui`。命令注册、operation manifest 和业务执行逻辑分离;具体执行逻辑在 `src/shortcuts/jiuchuanhui/operations` 中按 operation class 维护。
|
|
6
|
+
|
|
7
|
+
面向 Agent 的说明位于 `skills/weaver-e10-jiuchuanhui`。入口 `SKILL.md` 只负责共享规则和 reference 路由;具体细节拆在 `skills/weaver-e10-jiuchuanhui/references/`,与飞书 CLI 的业务 Skill 组织方式保持一致。
|
|
8
|
+
|
|
9
|
+
## 公共前置
|
|
10
|
+
|
|
11
|
+
先通过 E10 鉴权模块登录:
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
weaver-work-cli auth login --base-url "https://jchdemo.e-cology.cn" --agent_type "<当前智能体名称>"
|
|
15
|
+
weaver-work-cli auth status --no-check
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
每个九氚汇业务请求由 CLI 托管:
|
|
19
|
+
|
|
20
|
+
1. 读取当前 `weaver-work-cli auth` Profile 的 E10 会话。
|
|
21
|
+
2. 根据 operation 的 body mode 组装请求体(ESB 动作流 / eBuilder datajson)。
|
|
22
|
+
3. 自动携带 Cookie、ETEAMSID、User-Agent,业务输入中禁止再传这些 key。
|
|
23
|
+
|
|
24
|
+
Agent 不得在业务 JSON 中传 Cookie、ETEAMSID、Token 或内部控制字段;CLI 会拒绝这些 key。
|
|
25
|
+
|
|
26
|
+
## Agent 入口
|
|
27
|
+
|
|
28
|
+
优先使用 `jiuchuanhui run <operation>`:
|
|
29
|
+
|
|
30
|
+
Windows PowerShell:
|
|
31
|
+
|
|
32
|
+
```powershell
|
|
33
|
+
weaver-work-cli jiuchuanhui schema
|
|
34
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.search --input-json '{"customer_name":"小康","mine":"","all":"-1","customerSea":"-1","pageNo":1,"pageSize":10}'
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
macOS/Linux(bash/zsh):
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
weaver-work-cli jiuchuanhui schema
|
|
41
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.search --input-json '{"customer_name":"小康","mine":"","all":"-1","customerSea":"-1","pageNo":1,"pageSize":10}'
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
成功和失败都使用 JSON envelope。成功写 stdout;失败写 stderr,并设置非 0 退出码。
|
|
45
|
+
|
|
46
|
+
当前输出层是完整 JSON 直接写 stdout,不提供飞书 CLI 的 `--jq`、`--format table/ndjson` 或通用 `--page-all`。Agent 使用时应默认小页读取和摘要渲染:列表先 `pageNo=1`、`pageSize=10`,按 `pageNo` 继续;回复只展示关键字段和数量,超长详情 JSON 落本地文件后给路径。
|
|
47
|
+
|
|
48
|
+
## Operation 目录
|
|
49
|
+
|
|
50
|
+
| Operation 组 | 风险 | 固定规则 |
|
|
51
|
+
| --- | --- | --- |
|
|
52
|
+
| `jiuchuanhui.app.discovery` / `form.discovery` / `ds.fields` / `field.options` / `rest.cfg.detail` / `config.id.by.pk` / `file.preview` / `get-rest-cfg-detail` | 只读 | 发现与配置;`file.preview` 需先确认文件内容 |
|
|
53
|
+
| `jiuchuanhui.customer.create.prepare/apply` | 高风险写 | 创建前必须查重;`detail2` 同步创建联系人 |
|
|
54
|
+
| `jiuchuanhui.customer.get` / `search` / `type/status/industry.search` / `open-sea.search` / `duplicate.check` | 只读 | 搜索必须显式传 `mine`/`all`/`customerSea`;`count:true` 并行取总数 |
|
|
55
|
+
| `jiuchuanhui.customer.update/transfer/open-sea.release/open-sea.claim/contact-record.create/contact-record.batch` 的 prepare/apply | 高风险写 | 转移/释放/领取需确认唯一性与影响 |
|
|
56
|
+
| `jiuchuanhui.contact.create/update` prepare/apply | 高风险写 | 联系人随客户创建时勿重复调用 |
|
|
57
|
+
| `jiuchuanhui.contact.get` / `by-entity.search` | 只读 | 只给姓名先查候选再让用户选择 |
|
|
58
|
+
| `jiuchuanhui.sale.create/update` prepare/apply | 高风险写 | 按配置 `data_key` 组装 |
|
|
59
|
+
| `jiuchuanhui.sale.get` / `search` / `stage.search` / `process.search` / `lose-reason.search` / `rival.search` | 只读 | 阶段/原因选项供写操作取 ID |
|
|
60
|
+
| `jiuchuanhui.sale.win/lose/invalid/pause/restart/manager-change/link-contacts/contact-record.create` 的 prepare/apply | 高风险写 | 赢单/输单/无效不可逆;输单先取原因;转移与负责人变更共用 |
|
|
61
|
+
| `jiuchuanhui.clue.create/update/status-change/to-customer/contact-record.create` 的 prepare/apply | 高风险写 | 状态变更是覆盖型;转新客户走 `customer.create` 传 `source_module_id` |
|
|
62
|
+
| `jiuchuanhui.clue.get` / `search` / `pool.search` | 只读 | 线索池列表 |
|
|
63
|
+
| `jiuchuanhui.contact-plan.create/complete` prepare/apply | 高风险写 | `type` 与关联字段联动 |
|
|
64
|
+
| `jiuchuanhui.entity.contact-records.list` / `contact-records.by-person-time.list` | 只读 | 联系记录查询 |
|
|
65
|
+
| `jiuchuanhui.entity.id.by-name` / `user.id.by-name` / `user.current-profile` / `entity.permission.judge` / `company.business-profile.query` / `field.info.by-ids` / `browser-option.search` | 只读 | 通用辅助;行政区划也走 `entity.id.by-name` |
|
|
66
|
+
|
|
67
|
+
缓存初始化(`cache.init`)与商机阶段推进(`stage-advance`)不暴露为 CLI operation:前者是 Agent 侧本地状态维护,后者依赖缓存阶段配置做映射,属于 Skill 编排层职责。
|
|
68
|
+
|
|
69
|
+
## 常用命令
|
|
70
|
+
|
|
71
|
+
Windows PowerShell:
|
|
72
|
+
|
|
73
|
+
```powershell
|
|
74
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.get --input-json '{"id":"100001"}'
|
|
75
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.search --input-json '{"pageNo":1,"pageSize":10,"count":true}'
|
|
76
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.user.id.by-name --input-json '{"mainTable":{"userName":"魏思雨"}}'
|
|
77
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.duplicate.check --input-json '{"mainTable":{"customerName":"示例科技有限公司"}}'
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
macOS/Linux(bash/zsh):
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.get --input-json '{"id":"100001"}'
|
|
84
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.search --input-json '{"pageNo":1,"pageSize":10,"count":true}'
|
|
85
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.user.id.by-name --input-json '{"mainTable":{"userName":"魏思雨"}}'
|
|
86
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.duplicate.check --input-json '{"mainTable":{"customerName":"示例科技有限公司"}}'
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
写操作必须先 prepare,再 apply:
|
|
90
|
+
|
|
91
|
+
Windows PowerShell:
|
|
92
|
+
|
|
93
|
+
```powershell
|
|
94
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.create.prepare --input .\customer-create.json
|
|
95
|
+
|
|
96
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.create.apply --input-json '{"continuation":"PREPARE_CONTINUATION","confirm":true}'
|
|
97
|
+
|
|
98
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.win.prepare --input-json '{"saleId":"200001"}'
|
|
99
|
+
|
|
100
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.win.apply --input-json '{"continuation":"PREPARE_CONTINUATION","confirm":true}'
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
macOS/Linux(bash/zsh):
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.create.prepare --input ./customer-create.json
|
|
107
|
+
|
|
108
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.create.apply --input-json '{"continuation":"PREPARE_CONTINUATION","confirm":true}'
|
|
109
|
+
|
|
110
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.win.prepare --input-json '{"saleId":"200001"}'
|
|
111
|
+
|
|
112
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.win.apply --input-json '{"continuation":"PREPARE_CONTINUATION","confirm":true}'
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## 写操作确认链
|
|
116
|
+
|
|
117
|
+
- `prepare` 只预览和生成 continuation(HMAC 签名,绑定当前登录上下文与参数)。
|
|
118
|
+
- 向用户摘要目标、差异、风险和 continuation 绑定含义。
|
|
119
|
+
- 用户明确确认后才调用 `apply`(`confirm:true` + 有效 continuation)。
|
|
120
|
+
- `apply` 不可盲目重试;遇到 `partial/write_uncertain` 先停止,再做一次只读回查(如 `customer.get`/`sale.get`/`clue.get`)。
|
|
121
|
+
|
|
122
|
+
写操作出现网络中断、部分成功、缺少回执 ID 或回查失败时,CLI 返回 `partial/write_uncertain`,Agent 禁止自动重复提交。
|
|
123
|
+
|
|
124
|
+
## 业务规则摘要
|
|
125
|
+
|
|
126
|
+
- 选项字段(Select/RadioBox/CheckBox)必须先取选项 ID 再传值;`RelateBrowser` 字段通过 `browser-option.search` 查对应类型选项。
|
|
127
|
+
- 行政区划传逗号分隔全路径 ID(`country,province,city,district`),传细粒度自动填充粗粒度。
|
|
128
|
+
- 客户搜索必须显式传 `mine`/`all`/`customerSea` 三个 key(一个 `""` 其余 `-1`),没有 `scope` 快捷参数。
|
|
129
|
+
- 列表、卡片及详情中的关联事项名称渲染为可点击链接 `https://{baseUrl}/sp/ebdfpage/card/0/{objId}/{dataId}`。
|
|
130
|
+
- 新建客户前先查重;客户在公海时提醒可领取。
|
|
131
|
+
- 线索转新客户走客户创建且传 `source_module_id=<clueId>`,成功后不再额外修改线索。
|
package/docs/meeting.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# meeting:E10 会议管理(标准版)
|
|
2
|
+
|
|
3
|
+
## 模块来源
|
|
4
|
+
|
|
5
|
+
由 `weaver-e10-skill-maker` 按 standalone 会议 Skill(weaver-e10-meeting v2.4.2)的接口契约生成,v1 覆盖**标准版(Java REST)**能力;EB 版(eBuilder formdata)链路列入禁用边界,待后续版本。
|
|
6
|
+
|
|
7
|
+
## 命令结构
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
weaver-work-cli meeting schema # 输出 operation manifest
|
|
11
|
+
weaver-work-cli meeting run <operation> --input-json '<json>'
|
|
12
|
+
weaver-work-cli meeting today # 今天会议(meeting.list 薄包装)
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## operation 表
|
|
16
|
+
|
|
17
|
+
| operation | 风险 | 说明 |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| `meeting.env.detect` | read | EB/标准模式探测(EB 冒烟优先,失败回退标准) |
|
|
20
|
+
| `meeting.calendar.base` | read | 建会前置判断(onlyFlowCreate/工作流配置) |
|
|
21
|
+
| `meeting.list` | read | 会议列表(空 body 拉全量 + `filterDate` 客户端过滤) |
|
|
22
|
+
| `meeting.detail.field` | read | 会议详情表单结构与 options |
|
|
23
|
+
| `meeting.room.list` | read | 会议室列表(带时间范围返回 `disabled` 占用判断) |
|
|
24
|
+
| `meeting.room.usage` | read | 会议室占用视图(bywhat 2=月 3=周 4=日) |
|
|
25
|
+
| `meeting.type.list` | read | 会议类型列表(可选 count) |
|
|
26
|
+
| `meeting.conflict.room` | read | 会议室冲突(cansub 语义) |
|
|
27
|
+
| `meeting.conflict.member` | read | 参会人员冲突 |
|
|
28
|
+
| `meeting.conflict.roomAttribute` | read | 会议室属性冲突 |
|
|
29
|
+
| `meeting.create.prepare` | read-before-write | 归一化 + 建会路径检查 + 强制冲突检测 + continuation |
|
|
30
|
+
| `meeting.create.apply` | high-risk-write | `operateMeetingByType SUBMIT`(需 confirm + continuation) |
|
|
31
|
+
| `meeting.receipt.list` | read | 回执列表(isMobile 托管默认 false) |
|
|
32
|
+
| `meeting.receipt.update.prepare` | read-before-write | 回查回执记录 id + 预览 |
|
|
33
|
+
| `meeting.receipt.update.apply` | high-risk-write | 回执更新(需 confirm + continuation) |
|
|
34
|
+
| `meeting.sign.list` | read | 签到记录 + 已签/未签统计 |
|
|
35
|
+
|
|
36
|
+
## 关键契约(源资料实测坑位)
|
|
37
|
+
|
|
38
|
+
- 新建会议 `operateType=SUBMIT` + `id:""` → 正常状态;`ADD` 只生成草稿,勿用。
|
|
39
|
+
- 冲突处理看接口返回 `cansub`:false=禁止提交(直接拒绝);true=仅提醒(建议换时间/地点);检测失败视为冲突。**绝不提供"强制新建"选项**。
|
|
40
|
+
- 周期会议 `finishAt` 必填(仅 1=次数 / 2=日期,禁止 0);`repeatDesc` 由 CLI 自动拼接。
|
|
41
|
+
- 回执更新必须传回执记录 `id`(prepare 自动按 `memberId` 回查);`attendStatus` 0/1/2。
|
|
42
|
+
- 超 2^53 的 id 一律字符串传递。
|
|
43
|
+
|
|
44
|
+
## 已知限制(withheld)
|
|
45
|
+
|
|
46
|
+
- EB 版业务链路(create_meeting/三件套/议题/纪要/报表)未实现。
|
|
47
|
+
- `onlyFlowCreate=1`、周期会议工作流需要 workflow 集成,`create.prepare` 会主动拒绝。
|
|
48
|
+
- 签到二维码(getQrCode 入参未确认)、签到写、会议室/类型管理、会议变更/取消/结束未实现。
|