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,24 @@
|
|
|
1
|
+
# 禁用能力边界(disabled-capabilities)
|
|
2
|
+
|
|
3
|
+
## 何时使用
|
|
4
|
+
|
|
5
|
+
用户表达九氚汇相关意图,但目标能力不在 `weaver-work-cli jiuchuanhui schema` 中,或源资料给出了接口但尚未安全封装为 CLI operation 时。
|
|
6
|
+
|
|
7
|
+
## 未暴露为 CLI operation 的能力
|
|
8
|
+
|
|
9
|
+
| 能力 | 原因 | 处理方式 |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| `jiuchuanhui.sale.stage-advance`(商机阶段推进) | 依赖缓存 `sale_stage` 配置做阶段 ID 映射与前置校验,属于 Skill 编排层职责 | 用 `sale.update` + `sale.stage.search` 组合实现;先查阶段选项,再按目标阶段映射 ID 走 `sale.update.prepare/apply` |
|
|
12
|
+
| `jiuchuanhui.ds.fields`(表单字段发现) | 接口 `/api/ebuilder/common/ds/fields` 在当前 E10 版本返回 HTTP 400,无法使用 | 字段信息通过缓存初始化(`cache.init`)获取,不依赖此接口 |
|
|
13
|
+
|
|
14
|
+
## 处理规则
|
|
15
|
+
|
|
16
|
+
- 禁止绕过 CLI 直接 curl、fetch、浏览器自动化或拼 E10 原始接口。
|
|
17
|
+
- 禁止加载原始 `weaver-e10-jiuchuanhui` 源 Skill 代替 CLI;禁止直接运行源目录 `scripts/*.mjs`。
|
|
18
|
+
- 禁止读取或复制 CLI runtime 内部 Token、Cookie、ETEAMSID。
|
|
19
|
+
- 源资料中有、但 CLI 未暴露的接口,先按 `weaver-e10-skill-maker` 流程评估是否补 operation;在补齐之前明确告知用户该能力暂不可用。
|
|
20
|
+
|
|
21
|
+
## 注意
|
|
22
|
+
|
|
23
|
+
- 缓存文件 `~/.weaver-e10-jiuchuanhui/{tenantKey}/{userId}/` 是 Agent 本地状态,不随 Skill 打包、不入库。
|
|
24
|
+
- 不要编造不存在的 operation 或字段。
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# 发现与配置(discovery-config)
|
|
2
|
+
|
|
3
|
+
## 何时使用
|
|
4
|
+
|
|
5
|
+
用户表达缓存/配置相关意图:初始化或刷新九氚汇配置缓存、应用发现、表单发现、字段发现、字段选项、接口配置详情、接口标识转配置 ID、文件预览。
|
|
6
|
+
|
|
7
|
+
## 可用 operation
|
|
8
|
+
|
|
9
|
+
| Operation | 风险 | 输入要点 |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| `jiuchuanhui.app.discovery` | 只读 | `tag`(默认 `jch-crm-project`) |
|
|
12
|
+
| `jiuchuanhui.form.discovery` | 只读 | `tag`、`appId` |
|
|
13
|
+
| `jiuchuanhui.field.options` | 只读 | `fieldName`、`sourceType`(必填,值为 `FORM`);可选 `objId`、`groupId`(可省略自动发现,`groupId` 来自 `app.discovery` tag=`jch-crm-project`) |
|
|
14
|
+
| `jiuchuanhui.rest.cfg.detail` | 只读 | `apid`、`id`(cfgId) |
|
|
15
|
+
| `jiuchuanhui.config.id.by.pk` | 只读 | `mainTable.interface_pk` |
|
|
16
|
+
| `jiuchuanhui.file.preview` | 只读(文件预览) | `fileId` 必填,可选 `fieldId`/`appId`/`customParam` |
|
|
17
|
+
| `jiuchuanhui.get-rest-cfg-detail` | 只读 | `apid`、`id`(cfgId) |
|
|
18
|
+
|
|
19
|
+
## 输入要点
|
|
20
|
+
|
|
21
|
+
- 九氚汇配置缓存放 `~/.weaver-e10-jiuchuanhui/{tenantKey}/{userId}/`:主缓存 `weaver-e10-jiuchuanhui.json`(`discovery`/`ebuilder`/`options`/`region`),接口配置 `config/{pk}.json`。
|
|
22
|
+
- 创建/更新类接口读 `config/{pk}.json.detail` 的 `mainFields`/`detailFields`;搜索类读 `searchParams`;选项字段优先读字段 `optionList`。
|
|
23
|
+
- 缓存缺失或用户要求刷新时,调用 CLI operation `jiuchuanhui.cache.init`(应用发现 -> objId -> 版本校验 >= 1.5.11 -> cfgId -> 接口配置 -> 关联数据 -> 字段选项 -> 搜索参数 -> 行政区划),再继续业务调用。缓存初始化和刷新**已暴露为 CLI operation `jiuchuanhui.cache.init`**(risk: local-file-write,无需 prepare/apply 确认链);也可在仓库根运行 `node src/shortcuts/jiuchuanhui/scripts/cache-init.mjs`(薄包装)。
|
|
24
|
+
- 文件预览:`fileId` 为必填;涉及本地文件/远程 URL 解析时先提醒用户文件内容可能进入大模型上下文或发送到文件服务。
|
|
25
|
+
- `file.preview` 返回的 `loadUrl`/`previewLink` 带临时签名(约 7 天),过期需重新调用获取,不要硬编码或长期缓存下载地址;附件 ID 从表单数据字段获取,字段无附件时返回空数组,无需调用本接口。
|
|
26
|
+
|
|
27
|
+
## 命令
|
|
28
|
+
|
|
29
|
+
Windows PowerShell:
|
|
30
|
+
|
|
31
|
+
```powershell
|
|
32
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.app.discovery --input-json '{"tag":"jch-crm-project"}'
|
|
33
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.form.discovery --input-json '{"tag":"uf_jch_customer","appId":"APP_ID"}'
|
|
34
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.field.options --input-json '{"fieldName":"FIELD_ID","sourceType":"FORM","objId":"OBJ_ID","groupId":"APP_ID"}'
|
|
35
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.file.preview --input-json '{"fileId":"FILE_ID"}'
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
macOS/Linux(bash/zsh):
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.app.discovery --input-json '{"tag":"jch-crm-project"}'
|
|
42
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.form.discovery --input-json '{"tag":"uf_jch_customer","appId":"APP_ID"}'
|
|
43
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.field.options --input-json '{"fieldName":"FIELD_ID","sourceType":"FORM","objId":"OBJ_ID","groupId":"APP_ID"}'
|
|
44
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.file.preview --input-json '{"fileId":"FILE_ID"}'
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## 输出处理
|
|
48
|
+
|
|
49
|
+
- `app.discovery` 返回 `data[0].appId`;`form.discovery` 优先取 `formId` 非空且非 `"0"` 的记录 `id` 为 `objId`;`field.options` 返回选项数组 `{lable, lableTitle, value}`。
|
|
50
|
+
|
|
51
|
+
## 注意
|
|
52
|
+
|
|
53
|
+
- 选项字段必须先取选项 ID 再传值(Select/RadioBox/CheckBox 传 `value`,不传 `lable` 中文名)。
|
|
54
|
+
- `field.options` 的 `fieldName` 参数实际传字段元数据 ID(fieldid,纯数字),**不是** `data_key` 名称。传错会返回空数组。
|
|
55
|
+
- `rest.cfg.detail` 与 `get-rest-cfg-detail` 都用于读取接口配置详情,Agent 按上下文选一个即可,不需要两个都调。
|
|
56
|
+
|
|
57
|
+
## 失败处理
|
|
58
|
+
|
|
59
|
+
- 版本校验 < `1.5.11`:停止业务调用并告知用户。
|
|
60
|
+
- 缓存缺失:先执行初始化/单项刷新,再重试业务调用。
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# 通用辅助(general-helpers)
|
|
2
|
+
|
|
3
|
+
## 何时使用
|
|
4
|
+
|
|
5
|
+
用户表达辅助解析意图:按名称查事项 ID、按姓名查人员 ID、查询当前人员信息、校验事项权限、查询企业工商照面、按字段 ID 获取字段信息、自定义浏览字段选项查询。
|
|
6
|
+
|
|
7
|
+
## 可用 operation
|
|
8
|
+
|
|
9
|
+
| Operation | 风险 | 输入要点 |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| `jiuchuanhui.entity.id.by-name` | 只读 | `mainTable`: `{moduleType, name}` |
|
|
12
|
+
| `jiuchuanhui.user.id.by-name` | 只读 | `mainTable.employeeName` |
|
|
13
|
+
| `jiuchuanhui.user.current-profile` | 只读 | 无入参;每轮会话优先取一次并复用 |
|
|
14
|
+
| `jiuchuanhui.entity.permission.judge` | 只读 | `mainTable`: `{moduleType, entityId, opType}` |
|
|
15
|
+
| `jiuchuanhui.company.business-profile.query` | 只读 | `mainTable.companyName` |
|
|
16
|
+
| `jiuchuanhui.field.info.by-ids` | 只读 | `mainTable.fieldids` |
|
|
17
|
+
| `jiuchuanhui.browser-option.search` | 只读 | `pathParams.customBrowserType` 必填,`params.searchValue` 可选 |
|
|
18
|
+
|
|
19
|
+
## 输入要点
|
|
20
|
+
|
|
21
|
+
- `moduleType`:模块类型(如 `customer`/`sale`/`clue`/`contact` 等),`name` 为事项名称。
|
|
22
|
+
- 行政区划也走按名称查事项 ID:`moduleType: "administrativeDivision"`、`name` 传城市名;返回全路径 ID,可写缓存。
|
|
23
|
+
- `browser-option.search` 是 RelateBrowser 字段的选项查询入口:用 `customBrowserType` 指定浏览类型,返回自定义浏览选项供选择。需已知 `customBrowserType`(自定义浏览类型标识),通过「通过字段id获取字段信息」接口(`jiuchuanhui.field.info.by-ids`)获取 RelateBrowser 字段定义中的 `browser_type` 作为 `customBrowserType`。 常见类型:`customBrowser_industrybrowser`(行业)。
|
|
24
|
+
- 选项字段(Select/RadioBox/CheckBox)传 ID;`RelateBrowser` 字段通过 `browser-option.search` 查询对应类型选项。
|
|
25
|
+
|
|
26
|
+
## 命令
|
|
27
|
+
|
|
28
|
+
Windows PowerShell:
|
|
29
|
+
|
|
30
|
+
```powershell
|
|
31
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.user.id.by-name --input-json '{"mainTable":{"employeeName":"魏思雨"}}'
|
|
32
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.entity.id.by-name --input-json '{"mainTable":{"moduleType":"customer","name":"示例科技有限公司"}}'
|
|
33
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.user.current-profile --input-json '{}'
|
|
34
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.browser-option.search --input-json '{"pathParams":{"customBrowserType":"customer_type"},"params":{"searchValue":"科技"}}'
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
macOS/Linux(bash/zsh):
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.user.id.by-name --input-json '{"mainTable":{"employeeName":"魏思雨"}}'
|
|
41
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.entity.id.by-name --input-json '{"mainTable":{"moduleType":"customer","name":"示例科技有限公司"}}'
|
|
42
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.user.current-profile --input-json '{}'
|
|
43
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.browser-option.search --input-json '{"pathParams":{"customBrowserType":"customer_type"},"params":{"searchValue":"科技"}}'
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## 输出处理
|
|
47
|
+
|
|
48
|
+
- `user.id.by-name` / `entity.id.by-name` 返回业务 ID,供后续写操作或关联使用。
|
|
49
|
+
- `user.current-profile` 返回当前人员 ID,可作为默认 `manager`/负责人/操作人。
|
|
50
|
+
|
|
51
|
+
## 注意
|
|
52
|
+
|
|
53
|
+
- 查询无结果时说明实际条件并停止,不得放宽条件猜测重试。
|
|
54
|
+
- `entity.permission.judge` 的 `moduleType` 仅确认支持 `customer`(转移)与 `contactPlan`(联系记录);是否支持 `saleChance`/`clue` 等其它类型须以动作流实际返回为准,返回不支持/校验失败时应如实反馈用户,不得臆造支持范围。
|
|
55
|
+
- `field.info.by-ids` 的 `fieldids` 传字段 ID(逗号分隔多个)。
|
|
56
|
+
|
|
57
|
+
## 失败处理
|
|
58
|
+
|
|
59
|
+
- 参数缺失/不支持:说明具体问题并停止。
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# 入口:schema 与统一调用方式
|
|
2
|
+
|
|
3
|
+
## 何时使用
|
|
4
|
+
|
|
5
|
+
首次接触九氚汇模块、不确定某个 operation 是否存在、需要核对字段与风险等级,或想确认写操作是否走 prepare/apply 时。
|
|
6
|
+
|
|
7
|
+
## 命令
|
|
8
|
+
|
|
9
|
+
Windows PowerShell:
|
|
10
|
+
|
|
11
|
+
```powershell
|
|
12
|
+
weaver-work-cli jiuchuanhui schema
|
|
13
|
+
weaver-work-cli --json jiuchuanhui schema
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
macOS/Linux(bash/zsh):
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
weaver-work-cli jiuchuanhui schema
|
|
20
|
+
weaver-work-cli --json jiuchuanhui schema
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## 输出处理
|
|
24
|
+
|
|
25
|
+
`schema` 输出全部 operation 的 name、risk 和 inputSchema。`weaver-work-cli jiuchuanhui schema` 是 operation、字段和风险等级的合约来源,任何调用都以它为最终依据;references 是第一信息源,`schema` 是契约校验。
|
|
26
|
+
|
|
27
|
+
## 调用方式
|
|
28
|
+
|
|
29
|
+
统一入口 `weaver-work-cli --json jiuchuanhui run <operation>`。输入支持两种方式:`--input-json '<json>'` 内联 JSON、`--input <path>` 从文件读取:
|
|
30
|
+
|
|
31
|
+
Windows PowerShell:
|
|
32
|
+
|
|
33
|
+
```powershell
|
|
34
|
+
# 内联 JSON(复杂/嵌套结构)
|
|
35
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.get --input-json '{"id":"100001"}'
|
|
36
|
+
# 从文件读取 JSON
|
|
37
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.create.prepare --input .\customer-create.json
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
macOS/Linux(bash/zsh):
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
# 内联 JSON(复杂/嵌套结构)
|
|
44
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.get --input-json '{"id":"100001"}'
|
|
45
|
+
# 从文件读取 JSON
|
|
46
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.customer.create.prepare --input ./customer-create.json
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
简单 JSON 传 `--input-json '<json>'`;复杂或多行 JSON 先写入 UTF-8 文件再传 `--input <path>`。
|
|
50
|
+
|
|
51
|
+
## 注意
|
|
52
|
+
|
|
53
|
+
- 业务输入不得包含 Cookie、ETEAMSID、Token 或内部控制字段;CLI 会拒绝这些 key。
|
|
54
|
+
- 写 operation 都带 `.prepare` / `.apply` 后缀;`.apply` 只接受 prepare 返回的 continuation 且 `confirm:true`。
|
|
55
|
+
- 不要在对话中手写 E10 原始接口路径或拼 HTTP 鉴权细节。
|
|
56
|
+
|
|
57
|
+
## 失败处理
|
|
58
|
+
|
|
59
|
+
- operation 不存在或字段不符:检查 `jiuchuanhui schema`,按合约修正,不猜字段。
|
|
60
|
+
- `authentication`/`session_expired`:按共享规则完成登录后再继续。
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# 商机管理(sale)
|
|
2
|
+
|
|
3
|
+
## 何时使用
|
|
4
|
+
|
|
5
|
+
用户表达商机相关意图:新建商机、商机详情、搜索商机、修改商机、销售阶段/销售过程查询、商机转移/负责人变更、暂停、重启、赢单、输单、无效、关联联系人、商机联系记录、对手/友商查询、输单原因查询。
|
|
6
|
+
|
|
7
|
+
## 可用 operation
|
|
8
|
+
|
|
9
|
+
| Operation | 风险 | 输入要点 |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| `jiuchuanhui.sale.create.prepare/apply` | 高风险写 | `form`: `{mainTable, detail1?, ...}` |
|
|
12
|
+
| `jiuchuanhui.sale.get` | 只读 | `id` |
|
|
13
|
+
| `jiuchuanhui.sale.search` | 只读 | 搜索条件走 query,`count:true` 并行取总数 |
|
|
14
|
+
| `jiuchuanhui.sale.update.prepare/apply` | 高风险写 | `form`:主表修改 |
|
|
15
|
+
| `jiuchuanhui.sale.stage.search` / `sale.process.search` / `sale.lose-reason.search` | 只读 | 阶段/销售过程/输单原因选项,分页字段 |
|
|
16
|
+
| `jiuchuanhui.rival.search` | 只读 | 对手/友商列表 |
|
|
17
|
+
| `jiuchuanhui.sale.win.prepare/apply` | 高风险写 | `saleId`;赢单不可逆 |
|
|
18
|
+
| `jiuchuanhui.sale.lose.prepare/apply` | 高风险写 | `saleid`、`reasonids`(输单原因,**单选**,传一个原因 ID);可选 `money`(单位为**元**)、`rivals`(对手 ID,**多选**逗号分隔)、`desc`;输单必须先确定原因 |
|
|
19
|
+
| `jiuchuanhui.sale.invalid.prepare/apply` | 高风险写 | `saleid`;无效不可逆 |
|
|
20
|
+
| `jiuchuanhui.sale.pause.prepare/apply` | 高风险写 | `saleid`、`pauseReason`(必填,暂停原因描述);可选 `restartDate`(**预计重启日期**,格式 `yyyy-MM-dd`) |
|
|
21
|
+
| `jiuchuanhui.sale.restart.prepare/apply` | 高风险写 | `saleChanceId`(**仅可重启已暂停的商机**);确认商机已暂停再操作 |
|
|
22
|
+
| `jiuchuanhui.sale.manager-change.prepare/apply` | 高风险写 | `saleChanceId`、`managerId`(目标负责人);转移/负责人变更共用;**仅本人或本人下级商机可操作**,权限不足返回 HTTP 204 |
|
|
23
|
+
| `jiuchuanhui.sale.link-contacts.prepare/apply` | 高风险写 | `salechanceId`(注意小写 c)、`contactIds`;确认联系人与商机关联关系 |
|
|
24
|
+
| `jiuchuanhui.sale.contact-record.create.prepare/apply` | 高风险写 | `saleid`、`comment_content`(必填);可选 `type`/`rating`/`contact_information`/`contacts`/`next_time`/`next_content`/`next_contact_information`/`next_contacts`/`rel_remind`。`type` 为**联系类型**(例行联系等),与客户联系记录的 `type`(评论类型)**取值体系不同,勿混用** |
|
|
25
|
+
|
|
26
|
+
## 输入要点
|
|
27
|
+
|
|
28
|
+
- 创建/修改前读缓存 `config/sale_create_api.json`(或 `sale_update_api.json`)的 `detail`,按 `data_key` 组装,`isRequired:"1"` 缺失时追问。
|
|
29
|
+
- Select/RadioBox/CheckBox 传选项 ID;关联客户传 `customerId`;负责人传人员 ID。
|
|
30
|
+
- 搜索商机:默认小页;需要总数时 `count:true` 与列表**并行**发起。
|
|
31
|
+
|
|
32
|
+
## 命令
|
|
33
|
+
|
|
34
|
+
Windows PowerShell:
|
|
35
|
+
|
|
36
|
+
```powershell
|
|
37
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.search --input-json '{"sale_name":"示例","pageNo":1,"pageSize":10,"count":true}'
|
|
38
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.get --input-json '{"id":"200001"}'
|
|
39
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.win.prepare --input-json '{"mainTable":{"saleId":"200001"}}'
|
|
40
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.win.apply --input-json '{"continuation":"PREPARE_CONTINUATION","confirm":true}'
|
|
41
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.lose.prepare --input-json '{"mainTable":{"saleId":"200001","reasonids":"400001"}}'
|
|
42
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.link-contacts.prepare --input-json '{"mainTable":{"salechanceId":"200001","contactIds":"300001,300002"}}'
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
macOS/Linux(bash/zsh):
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.search --input-json '{"sale_name":"示例","pageNo":1,"pageSize":10,"count":true}'
|
|
49
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.get --input-json '{"id":"200001"}'
|
|
50
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.win.prepare --input-json '{"mainTable":{"saleId":"200001"}}'
|
|
51
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.win.apply --input-json '{"continuation":"PREPARE_CONTINUATION","confirm":true}'
|
|
52
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.lose.prepare --input-json '{"mainTable":{"saleId":"200001","reasonids":"400001"}}'
|
|
53
|
+
weaver-work-cli --json jiuchuanhui run jiuchuanhui.sale.link-contacts.prepare --input-json '{"mainTable":{"salechanceId":"200001","contactIds":"300001,300002"}}'
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## 输出处理
|
|
57
|
+
|
|
58
|
+
- 赢单/输单/无效等 ESB 操作以 `resultCode===200` 为成功标志,不额外发起查询验证。
|
|
59
|
+
- 商机名称渲染为可点击链接,`objId` 取缓存 `discovery["objId:uf_jch_sale"]`。
|
|
60
|
+
|
|
61
|
+
## 注意
|
|
62
|
+
|
|
63
|
+
- 赢单、输单、无效是高影响状态变更,执行前必须提示不可逆或关键影响。
|
|
64
|
+
- 输单要先确定输单原因(`sale.lose-reason.search` 取 ID);暂停必须有暂停原因;重启需确认目标商机处于可重启状态。
|
|
65
|
+
- 商机转移和负责人变更共用 `sale.manager-change`。
|
|
66
|
+
- 关联联系人前要确认商机和联系人均唯一,且联系人属于该客户/商机关系链。
|
|
67
|
+
- 商机阶段推进(stage-advance)属于 Skill 编排层组合逻辑,不暴露为 CLI operation;可用 `sale.update` + `sale.stage.search` 组合实现。
|
|
68
|
+
|
|
69
|
+
## 失败处理
|
|
70
|
+
|
|
71
|
+
- 参数缺失/不支持:说明具体问题并停止。
|
|
72
|
+
- `partial/write_uncertain`:停止重试,补一次 `sale.get` 回查。
|