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,184 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: weaver-e10-yepiaotong
|
|
3
|
+
display_name: 泛微业票通发票
|
|
4
|
+
display_name_en: Weaver Invoice
|
|
5
|
+
description: "泛微 E10 业票通发票管理:查询票夹、OCR/查验、附件、流程发票字段、报销填单、智能开票确认链、红字发票(红冲申请/查询/确认)。"
|
|
6
|
+
description_zh: "泛微 E10 业票通发票管理。支持查询个人/企业票夹、查看详情、上传、OCR/查验预览、下载附件、流程表单发票字段数据,通过 prepare/apply 确认链处理导入、新增、编辑、删除、报销单创建/更新、智能开票/存台账;红字发票红冲申请/查询/确认。"
|
|
7
|
+
description_en: "Weaver E10 Yepiaotong invoice skill for folder queries, detail lookup, OCR and validation previews, attachment downloads, workflow invoice field data, reimbursement form submission, confirmed invoice issuing, and red invoice management."
|
|
8
|
+
version: 1.0.0
|
|
9
|
+
author: 泛微网络科技股份有限公司
|
|
10
|
+
agent_created: true
|
|
11
|
+
requires:
|
|
12
|
+
bins: ["weaver-work-cli"]
|
|
13
|
+
cliHelp: "weaver-work-cli invoice --help"
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
**CRITICAL — 开始前 MUST 先用 Read 工具读取 [`../weaver-e10-shared/SKILL.md`](../weaver-e10-shared/SKILL.md),其中包含安装、E10 认证、JSON 输出和高风险写入规则。若不存在则必须先执行 `weaver-work-cli skills install shared --skills-dir <当前Agent的Skills目录>`,若 CLI 未安装则先执行 `npm install -g weaver-work-cli`,安装或读取失败时必须停止执行。**
|
|
17
|
+
认证和登录态只能按共享规则通过 `weaver-work-cli auth ...` 命令判断;禁止直接读取、列出、打印或解析用户主目录下的旧 `.e10-cli`、auth、config 或 Keychain 数据。
|
|
18
|
+
所有命令通过 `weaver-work-cli --json invoice run <operation>` 执行:简单 JSON 优先传 `--input-json '<json>'`,复杂或多行 JSON 先写入 UTF-8 文件再传 `--input <path>`,只有确认当前 shell 能稳定传管道时才使用 `--input -`。调用前先按需读取 references 下对应的文件,查参数结构,不要猜字段;**references 是第一信息源**,`weaver-work-cli invoice schema` 是 operation、字段和风险等级的合约来源。
|
|
19
|
+
命令示例、提示词和临时说明必须同时兼容 Windows 和 macOS/Linux;涉及 JSON 输入、用户目录、路径分隔符、Python 启动器、文件删除、目录查看或文件比对时,同时给 Windows PowerShell 与 macOS/Linux(bash/zsh)两套示例。Agent 先根据当前系统和 shell 选择对应示例,不确定时用 `node -p "process.platform"` 判断。Windows/PowerShell 下不要使用 `printf`、`$HOME/...`、`~/...`、bash 反斜杠续行、`rm/ls/diff/python3` 等 Unix-only 写法。
|
|
20
|
+
涉及发票附件、图片、本地文件、远程 URL 文件或 OCR/文件解析的操作,执行前必须提醒用户:文件内容可能被上传到 E10 业票通、OCR/查验服务,并可能进入当前大模型上下文用于理解和处理;必须等待用户明确确认后才继续。
|
|
21
|
+
|
|
22
|
+
## 路由优先级(先判断是不是业票通发票,再选 operation)
|
|
23
|
+
|
|
24
|
+
业票通发票不是通用 E10 对象。**只要用户的核心对象是业票通发票、个人/企业票夹、发票 OCR、发票查验或发票附件,就优先使用 `weaver-e10-yepiaotong`。**
|
|
25
|
+
|
|
26
|
+
### 明确归 `weaver-e10-yepiaotong` 的高优先级语义
|
|
27
|
+
|
|
28
|
+
出现以下任一语义时,优先走本 Skill:
|
|
29
|
+
|
|
30
|
+
- 业票通 / 发票 / 票夹 / 个人票夹 / 企业票夹 / 发票详情 / 发票浏览按钮
|
|
31
|
+
- 发票上传 / OCR 识别 / 查验预览 / 附件下载
|
|
32
|
+
- 导入发票 / 新增发票 / 编辑发票 / 删除发票
|
|
33
|
+
- 发票报销 / 自动填单 / 事前申请报销 / 报销单创建或更新
|
|
34
|
+
- 开票 / 开专票 / 开普票 / 存台账 / 智能开票
|
|
35
|
+
- 红冲 / 冲红 / 开红票 / 红字发票 / 红字确认单 / 红冲确认
|
|
36
|
+
- `fid` / `fileId` / 发票号码 / 发票代码 / 查验状态 / 报销状态
|
|
37
|
+
|
|
38
|
+
**判定规则:** 只要最终动作是对业票通发票做查询、查看、上传、OCR、查验预览、下载、导入、新增、编辑、删除、流程表单发票字段、发票报销填单、开票/存台账或红冲,就归 `weaver-e10-yepiaotong`。只有当用户处理的是非发票类 E10 业务、通用工作流或尚未封装的业票通能力时,才不使用本 Skill。
|
|
39
|
+
|
|
40
|
+
## 选哪个命令
|
|
41
|
+
|
|
42
|
+
### 票夹管理(CLI 命令)
|
|
43
|
+
|
|
44
|
+
| 想做什么 | 命令 | 按需读取 reference |
|
|
45
|
+
|---|---|---|
|
|
46
|
+
| 查看可用 operation、字段和风险等级 | `invoice schema` | [`invoice-agent-entry.md`](references/invoice-agent-entry.md) |
|
|
47
|
+
| 查询个人票夹 | `invoice run invoice.list` | [`invoice-personal-list.md`](references/invoice-personal-list.md) |
|
|
48
|
+
| 查询企业票夹 | `invoice run invoice.enterprise.list` | [`invoice-enterprise-list.md`](references/invoice-enterprise-list.md) |
|
|
49
|
+
| 按 `fid` 或 `number` 查看详情 | `invoice run invoice.get` | [`invoice-detail.md`](references/invoice-detail.md) |
|
|
50
|
+
| 上传发票文件 | `invoice run invoice.upload` | [`invoice-file-upload.md`](references/invoice-file-upload.md) |
|
|
51
|
+
| OCR 预览,不保存到票夹 | `invoice run invoice.ocr.preview` | [`invoice-ocr-preview.md`](references/invoice-ocr-preview.md) |
|
|
52
|
+
| 查验预览,不回写查验结果 | `invoice run invoice.validate.preview` | [`invoice-validation-preview.md`](references/invoice-validation-preview.md) |
|
|
53
|
+
| 下载发票附件 | `invoice run invoice.download` | [`invoice-download.md`](references/invoice-download.md) |
|
|
54
|
+
| 准备/确认导入发票文件 | `invoice run invoice.import.prepare/apply` | [`invoice-import.md`](references/invoice-import.md) |
|
|
55
|
+
| 准备/确认手工新增发票 | `invoice run invoice.add.prepare/apply` | [`invoice-add.md`](references/invoice-add.md) |
|
|
56
|
+
| 准备/确认编辑发票 | `invoice run invoice.update.prepare/apply` | [`invoice-update.md`](references/invoice-update.md) |
|
|
57
|
+
| 准备/确认删除发票 | `invoice run invoice.delete.prepare/apply` | [`invoice-delete.md`](references/invoice-delete.md) |
|
|
58
|
+
| 生成流程表单发票浏览按钮 JSON | `invoice run invoice.browse-field.data` | [`invoice-browse-field-data.md`](references/invoice-browse-field-data.md) |
|
|
59
|
+
| 报销自动填单、报销单创建/更新 | `invoice run invoice.reim.*` | [`invoice-reim.md`](references/invoice-reim.md) |
|
|
60
|
+
| 报销完整工作流编排、行为准则 | AI 内部 | [`reim-workflow.md`](references/reim-workflow.md) |
|
|
61
|
+
| 报销 CLI operation 入参与返回值 | AI 内部 | [`reim-api-reference.md`](references/reim-api-reference.md) |
|
|
62
|
+
| 发票与事前申请匹配规则 | AI 内部 | [`reim-matching-rules.md`](references/reim-matching-rules.md) |
|
|
63
|
+
| 费用科目自动匹配规则 | AI 内部 | [`reim-expense-subject-rules.md`](references/reim-expense-subject-rules.md) |
|
|
64
|
+
| 报销表单字段填充与 JSON 组装规则 | AI 内部 | [`reim-form-fill-rules.md`](references/reim-form-fill-rules.md) |
|
|
65
|
+
| 报销端到端示例 | 参考 | [`reim-examples.md`](references/reim-examples.md) |
|
|
66
|
+
| 智能开票或存入待开台账 | `invoice run invoice.issuing.make.prepare/apply` | [`invoice-issuing.md`](references/invoice-issuing.md) |
|
|
67
|
+
| 共享、转让、标签或 schema 未列出的能力 | 无可用命令 | [`invoice-disabled-capabilities.md`](references/invoice-disabled-capabilities.md) |
|
|
68
|
+
|
|
69
|
+
### 红字发票 / 红冲(直接 API 调用)
|
|
70
|
+
|
|
71
|
+
> 红冲能力通过发票 Token + E10 API 直接调用,CLI 尚未封装。
|
|
72
|
+
> 需要 E10 上下文的 `BASE_URL` 和 `eteamsId`;发票 Token 由 `getToken` 接口获取。
|
|
73
|
+
|
|
74
|
+
| 想做什么 | 调用方式 | 按需读取 reference |
|
|
75
|
+
|---|---|---|
|
|
76
|
+
| **红冲申请(全额/部分)** | `POST redConfirmationApply` | [`invoice-red.md`](references/invoice-red.md) |
|
|
77
|
+
| **查询可红冲蓝票** | `POST queryAvailableBlueInfo` | [`invoice-red.md`](references/invoice-red.md) |
|
|
78
|
+
| **查询红字确认单列表** | `POST queryRedConfirmationList` | [`invoice-red.md`](references/invoice-red.md) |
|
|
79
|
+
| **查询红字确认单明细** | `POST queryRedConfirmationDetail` | [`invoice-red.md`](references/invoice-red.md) |
|
|
80
|
+
| **红冲确认/拒绝/撤销** | `POST redConfirmationConfirm` | [`invoice-red.md`](references/invoice-red.md) |
|
|
81
|
+
| 开票字段提取规则、税率推断、金额计算 | AI 内部 | [`invoice-issuing-field-rules.md`](references/invoice-issuing-field-rules.md) |
|
|
82
|
+
| 开票/红冲端到端示例 | 参考 | [`invoice-issuing-examples.md`](references/invoice-issuing-examples.md) |
|
|
83
|
+
|
|
84
|
+
处理链:
|
|
85
|
+
|
|
86
|
+
- 查票夹/详情:`invoice.list` 或 `invoice.enterprise.list` -> 必要时 `invoice.get`
|
|
87
|
+
- OCR 识别预览:`invoice.ocr.preview`;如果先上传,可复用 `invoice.upload` 返回的 `upload`
|
|
88
|
+
- 导入文件:先 `invoice.ocr.preview` 预览票面识别结果;用户确认导入后,默认用 `invoice.import.prepare` 且传 `validate=true`、`syncToOa=true` -> 用户确认 -> `invoice.import.apply` -> 按返回 `fid` 回查/报告。只有用户明确要求“跳过查验/不同步 OA”时,才使用 `validate=false` 或 `syncToOa=false`。
|
|
89
|
+
- 手工新增:`invoice.add.prepare` -> 用户确认 -> `invoice.add.apply`
|
|
90
|
+
- 编辑发票:`invoice.update.prepare` -> 用户确认 -> `invoice.update.apply`
|
|
91
|
+
- 删除发票:`invoice.delete.prepare` -> 用户确认 -> `invoice.delete.apply`
|
|
92
|
+
- 流程发票字段:已有 `fid` 或详情时,用 `invoice.browse-field.data` 生成浏览按钮对象;不要运行旧源码脚本或直接调接口。
|
|
93
|
+
- 报销填单(完整工作流见 [`reim-workflow.md`](references/reim-workflow.md)):先用 `invoice.list`/`invoice.get`/`invoice.reim.file-ocr.preview` 获取发票 -> 展示汇总并确认 -> 用 `invoice.reim.requests.list`、`invoice.reim.workflow.resolve`、`invoice.reim.form.structure`、`invoice.reim.row-info`、`invoice.reim.employee-superiors` 组装 payload(匹配规则见 [`reim-matching-rules.md`](references/reim-matching-rules.md),填单规则见 [`reim-form-fill-rules.md`](references/reim-form-fill-rules.md),科目匹配见 [`reim-expense-subject-rules.md`](references/reim-expense-subject-rules.md))-> `invoice.reim.flow.create.prepare` -> 用户确认 -> `invoice.reim.flow.create.apply`。创建成功后修改只能用 `invoice.reim.flow.update.prepare/apply`。
|
|
94
|
+
- 智能开票:Agent 先提取并校验开票字段、税率和金额 -> `invoice.issuing.make.prepare` -> 用户确认开票或存台账 -> `invoice.issuing.make.apply`。
|
|
95
|
+
- **红冲申请**:获取蓝字发票号 -> `queryAvailableBlueInfo` -> 展示蓝票 -> 确认方式+原因 -> 预览 -> `redConfirmationApply`
|
|
96
|
+
- **红冲确认**:`queryRedConfirmationList` -> 选择 -> `queryRedConfirmationDetail` -> 确认 -> `redConfirmationConfirm`
|
|
97
|
+
|
|
98
|
+
## 执行原则(减少误路由、误重试和无效消耗)
|
|
99
|
+
|
|
100
|
+
### 1) 先拿最小必要信息,再执行
|
|
101
|
+
|
|
102
|
+
- 只是查票夹时,优先直接用 `invoice.list` 或 `invoice.enterprise.list`
|
|
103
|
+
- 列表默认先取小页,优先 `page_size=10`;用户没有要求全量时不要自动翻完整票夹
|
|
104
|
+
- 查询个人/企业票夹时,用户没有明确要求“全部发票/已报销/报销中/不可报销”就不要传 `sreim`;CLI 默认 `sreim="3"`,只查未报销发票
|
|
105
|
+
- 查询个人/企业票夹时,用户没有明确要求“凭证”就不要传 `bill_type`;CLI 默认 `bill_type=0`,只查发票
|
|
106
|
+
- 用户已经给出 `fid` 时,不要先查列表再过滤,直接用 `invoice.get` 或对应 prepare
|
|
107
|
+
- 只有需要附件归属、可编辑/可删除状态或完整票面时,才补 `invoice.get`
|
|
108
|
+
|
|
109
|
+
### 1.5) 大结果只摘要给用户
|
|
110
|
+
|
|
111
|
+
- 当前 CLI 会把完整 JSON envelope 写 stdout;Agent 回复时不要原样贴完整 JSON
|
|
112
|
+
- 列表最多先展示最相关的前 10 条,包含 `fid`、代码/号码、购销方、金额、日期、查验/报销状态和附件摘要
|
|
113
|
+
- 需要全量统计时,按 `start_pos` 分页读取并累计必要字段;说明已读取页数、命中数和是否还有更多
|
|
114
|
+
- OCR、详情或调试用完整响应过长时,优先落本地文件并向用户提供摘要和文件路径
|
|
115
|
+
|
|
116
|
+
### 2) 已知对象时直达动作
|
|
117
|
+
|
|
118
|
+
- 已拿到 `fid`、`fileId`、本地文件路径或完整 `info` 时,优先调用对应 operation
|
|
119
|
+
- 同一轮里如果已有足够的新鲜查询结果,不要重复查询同一票夹或同一详情
|
|
120
|
+
- 不要默认走 `list -> filter -> get -> prepare -> apply` 全链路;对象已明确时应压缩步骤
|
|
121
|
+
|
|
122
|
+
### 3) 错误语义驱动,而不是盲目重试
|
|
123
|
+
|
|
124
|
+
- 失败后先看进程退出码、`error.type`、`error.subtype` 和 `error.message`
|
|
125
|
+
- **除非错误明确提示可恢复或需要补充参数,否则不要重复刷同一个 operation**
|
|
126
|
+
- 写请求已经发出后,遇到结果不确定必须停止;不要把 `.apply` 当成可重试读操作
|
|
127
|
+
- **错误为 `authentication`(未登录,如 `E10 auth not found`)或 `session_expired`(登录态失效)时:立即停止当前操作,不要用示例占位域名或自行猜域名登录,也不要盲目重试**。先读取共享规则 `../weaver-e10-shared/references/e10-auth-and-session.md`,按其中流程用宿主提问/弹框让用户输入 E10 登录域名或选择已有 profile,完成登录后再继续原操作。
|
|
128
|
+
|
|
129
|
+
### 4) 附件、图片和文件解析确认
|
|
130
|
+
|
|
131
|
+
- 执行 `invoice.upload`、`invoice.ocr.preview`、`invoice.import.prepare/apply`、`invoice.reim.file-ocr.preview`,或任何会读取本地发票文件、上传远程 URL 文件、解析图片/PDF/OFD/XML、复用已上传 `upload` 对象、从附件提取开票字段的步骤前,必须先提醒用户文件内容可能进入大模型上下文,也可能发送到 E10 业票通或 OCR/查验服务。
|
|
132
|
+
- 用户未明确确认前,不要运行上传、OCR、解析、导入或复用已上传文件对象的命令。
|
|
133
|
+
|
|
134
|
+
## 写操作失败处理:`partial/write_uncertain` 决策树
|
|
135
|
+
|
|
136
|
+
当导入 / 新增 / 编辑 / 删除等写操作返回 `partial/write_uncertain`,或提示网络中断、部分成功、回查失败、回查字段不一致时,按下面规则处理:
|
|
137
|
+
|
|
138
|
+
1. **先停止盲目重试**,不要连续重复提交相同 `.apply`
|
|
139
|
+
2. 优先从以下角度解释:
|
|
140
|
+
- 写请求可能已经到达服务端,但连接在结果确认前中断
|
|
141
|
+
- 服务端可能只处理了部分发票
|
|
142
|
+
- 写接口已返回成功,但详情回查失败或与预期不一致
|
|
143
|
+
- continuation、目标文件、目标发票或登录上下文可能已经变化
|
|
144
|
+
3. 如需确认,只补 **一次** 只读查询(例如 `invoice.get` 或列表查询),不要陷入 query/write 循环
|
|
145
|
+
4. 最终给用户明确结论、已知 `workflow.state`、成功/失败项和下一步人工确认建议,而不是继续无意义重试
|
|
146
|
+
|
|
147
|
+
**特别注意:** 对导入、删除和编辑场景更要严格执行上述规则;这些场景最容易因重复提交造成重复入账、误删或覆盖用户刚修改的数据。
|
|
148
|
+
|
|
149
|
+
Windows PowerShell:
|
|
150
|
+
|
|
151
|
+
```powershell
|
|
152
|
+
weaver-work-cli invoice schema
|
|
153
|
+
weaver-work-cli --json invoice run invoice.list --input-json '{"page_size":10,"start_pos":0}'
|
|
154
|
+
weaver-work-cli --json invoice run invoice.get --input-json '{"fid":"12345"}'
|
|
155
|
+
weaver-work-cli --json invoice run invoice.ocr.preview --input-json '{"file":"./invoice.pdf"}'
|
|
156
|
+
weaver-work-cli --json invoice run invoice.import.prepare --input-json '{"file":"./invoice.pdf","validate":true,"syncToOa":true}'
|
|
157
|
+
weaver-work-cli --json invoice run invoice.import.apply --input-json '{"file":"./invoice.pdf","continuation":"PREPARE_CONTINUATION","confirm":true}'
|
|
158
|
+
weaver-work-cli --json invoice run invoice.browse-field.data --input-json '{"fid":"12345"}'
|
|
159
|
+
weaver-work-cli --json invoice run invoice.reim.requests.list --input-json '{"pageNo":1,"pageSize":20}'
|
|
160
|
+
weaver-work-cli --json invoice run invoice.issuing.make.prepare --input-json '{"mode":"ledger","payload":{"invoiceType":"7","externalDocumentNo":"AI-EXAMPLE-001","purchaserName":"示例个人","totalAmount":100,"taxAmount":6,"totalAmountWithTax":106,"details":[{"goodsName":"信息技术咨询服务","taxRate":0.06,"amount":100,"amountWithTax":106,"taxAmount":6}]}}'
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
macOS/Linux(bash/zsh):
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
weaver-work-cli invoice schema
|
|
167
|
+
weaver-work-cli --json invoice run invoice.list --input-json '{"page_size":10,"start_pos":0}'
|
|
168
|
+
weaver-work-cli --json invoice run invoice.get --input-json '{"fid":"12345"}'
|
|
169
|
+
weaver-work-cli --json invoice run invoice.ocr.preview --input-json '{"file":"./invoice.pdf"}'
|
|
170
|
+
weaver-work-cli --json invoice run invoice.import.prepare --input-json '{"file":"./invoice.pdf","validate":true,"syncToOa":true}'
|
|
171
|
+
weaver-work-cli --json invoice run invoice.import.apply --input-json '{"file":"./invoice.pdf","continuation":"PREPARE_CONTINUATION","confirm":true}'
|
|
172
|
+
weaver-work-cli --json invoice run invoice.browse-field.data --input-json '{"fid":"12345"}'
|
|
173
|
+
weaver-work-cli --json invoice run invoice.reim.requests.list --input-json '{"pageNo":1,"pageSize":20}'
|
|
174
|
+
weaver-work-cli --json invoice run invoice.issuing.make.prepare --input-json '{"mode":"ledger","payload":{"invoiceType":"7","externalDocumentNo":"AI-EXAMPLE-001","purchaserName":"示例个人","totalAmount":100,"taxAmount":6,"totalAmountWithTax":106,"details":[{"goodsName":"信息技术咨询服务","taxRate":0.06,"amount":100,"amountWithTax":106,"taxAmount":6}]}}'
|
|
175
|
+
```
|
|
176
|
+
## 不在本 skill 范围
|
|
177
|
+
|
|
178
|
+
- 禁止加载原始 `weaver-e10-yepiaotong` Skill 代替 CLI。
|
|
179
|
+
- 已有 CLI 封装的能力(list/get/upload/OCR/import/add/update/delete/issuing/reim)禁止 curl、fetch、浏览器自动化或直接访问 E10 `/api/inc/*`,必须通过 CLI。
|
|
180
|
+
- **红冲能力**可以直接调用 E10 API(`getToken`、`queryAvailableBlueInfo`、`redConfirmationApply`、`redConfirmationConfirm`、`queryRedConfirmationList`、`queryRedConfirmationDetail`),因为 CLI 尚未封装红冲 operation。调用时使用发票 Token(非 CLI 内部 Token)。
|
|
181
|
+
- 禁止读取或复制 CLI runtime 内部 Token、Cookie、ETEAMSID。
|
|
182
|
+
- 禁止读取、列出、打印或解析用户主目录下的旧 `.e10-cli`、auth、config 或 Keychain 数据。
|
|
183
|
+
- 共享、转让和标签当前未纳入 CLI manifest;新版源资料已给出提交接口,但仍需要补稳定接收人/标签 ID 来源、写后回查和测试后再开放。
|
|
184
|
+
- 非发票类 E10 能力、通用流程编排、非业票通表单/审批/组织等业务不由本 Skill 承载。
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## 什么时候读取
|
|
4
4
|
|
|
5
|
-
用户要手工录入一张发票,且已经提供或可以整理出完整 `info` 对象时读取本文件。开始前也读取共享高风险协议:`../../weaver-
|
|
5
|
+
用户要手工录入一张发票,且已经提供或可以整理出完整 `info` 对象时读取本文件。开始前也读取共享高风险协议:`../../weaver-e10-shared/references/high-risk-write.md`。
|
|
6
6
|
|
|
7
7
|
## Operation
|
|
8
8
|
|
package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-agent-entry.md
RENAMED
|
@@ -6,35 +6,42 @@
|
|
|
6
6
|
|
|
7
7
|
## 准备命令
|
|
8
8
|
|
|
9
|
-
```
|
|
9
|
+
```text
|
|
10
10
|
weaver-work-cli --version
|
|
11
11
|
weaver-work-cli doctor --e10
|
|
12
12
|
weaver-work-cli invoice schema
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
如未登录,按共享规则读取 `../../weaver-
|
|
15
|
+
如未登录,按共享规则读取 `../../weaver-e10-shared/references/e10-auth-and-session.md` 后处理。
|
|
16
16
|
|
|
17
17
|
## 固定入口
|
|
18
18
|
|
|
19
19
|
Agent 优先调用统一 operation 入口:
|
|
20
20
|
|
|
21
|
-
```
|
|
22
|
-
weaver-work-cli --json invoice run
|
|
21
|
+
```text
|
|
22
|
+
weaver-work-cli --json invoice run invoice.list --input-json '{"page_size":10,"start_pos":0}'
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
简单 JSON 通过 `--input-json` 传入,复杂或多行 JSON 使用 UTF-8 文件和 `--input <path>`;只有确认当前 shell 能稳定传管道时才使用 `--input -`。按环境选择示例:
|
|
26
|
+
|
|
27
|
+
Windows PowerShell:
|
|
28
|
+
|
|
29
|
+
```powershell
|
|
30
|
+
weaver-work-cli --json invoice run invoice.list --input-json '{"page_size":10,"start_pos":0}'
|
|
23
31
|
```
|
|
24
32
|
|
|
25
|
-
|
|
33
|
+
macOS/Linux(bash/zsh):
|
|
26
34
|
|
|
27
35
|
```bash
|
|
28
|
-
|
|
29
|
-
| weaver-work-cli --json invoice run invoice.list --input -
|
|
36
|
+
weaver-work-cli --json invoice run invoice.list --input-json '{"page_size":10,"start_pos":0}'
|
|
30
37
|
```
|
|
31
38
|
|
|
32
39
|
`weaver-work-cli invoice schema` 是可用 operation、输入字段、固定参数和风险等级的第一信息源。不要用未出现在 schema 中的 operation,也不要把原始 `weaver-e10-yepiaotong` reference 当作可直接调用的 CLI 合约。
|
|
33
40
|
|
|
34
41
|
## 输出处理
|
|
35
42
|
|
|
36
|
-
成功结果在 stdout,失败结果在 stderr。判断规则读取共享 reference:`../../weaver-
|
|
43
|
+
成功结果在 stdout,失败结果在 stderr。判断规则读取共享 reference:`../../weaver-e10-shared/references/json-output-contract.md`。
|
|
37
44
|
|
|
38
45
|
列表、详情、OCR 或回查结果可能很长时,不要把 stdout 的完整 envelope 直接展示给用户。默认 `page_size=10` 小页读取;只渲染发票识别和决策所需字段,例如 `fid`、代码/号码、购销方、金额、日期、查验/报销状态、附件数量/文件名。需要更多结果时按 `start_pos` 分页继续;需要保留完整原始 JSON 时落本地文件并返回路径。
|
|
39
46
|
|
|
40
|
-
高风险写入读取共享 reference:`../../weaver-
|
|
47
|
+
高风险写入读取共享 reference:`../../weaver-e10-shared/references/high-risk-write.md`。
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
# 发票浏览按钮字段数据
|
|
2
|
+
|
|
3
|
+
## 什么时候读取
|
|
4
|
+
|
|
5
|
+
用户要把业票通发票填入 E10 流程表单的发票浏览按钮控件,或要求"生成发票字段结构化数据""流程填单发票对象数据"时读取本文件。
|
|
6
|
+
|
|
7
|
+
## Operation
|
|
8
|
+
|
|
9
|
+
| Operation | 风险 | 输入 |
|
|
10
|
+
| --- | --- | --- |
|
|
11
|
+
| `invoice.browse-field.data` | read | `fid`、`fids` 或已取得的 `detail` 响应三选一 |
|
|
12
|
+
|
|
13
|
+
## 业务用途
|
|
14
|
+
|
|
15
|
+
E10 流程填单时,发票字段使用浏览按钮控件,填值必须传入包含完整票面信息的 JSON 对象,不能传简单文本。CLI 根据 `fid` 自动完成详情查询和 JSON 转换。
|
|
16
|
+
|
|
17
|
+
## 命令
|
|
18
|
+
|
|
19
|
+
Windows PowerShell:
|
|
20
|
+
|
|
21
|
+
```powershell
|
|
22
|
+
weaver-work-cli --json invoice run invoice.browse-field.data --input-json '{"fid":"12345"}'
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
macOS/Linux(bash/zsh):
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
weaver-work-cli --json invoice run invoice.browse-field.data --input-json '{"fid":"12345"}'
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
多张发票:
|
|
32
|
+
|
|
33
|
+
Windows PowerShell:
|
|
34
|
+
|
|
35
|
+
```powershell
|
|
36
|
+
weaver-work-cli --json invoice run invoice.browse-field.data --input-json '{"fids":["12345","67890"]}'
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
macOS/Linux(bash/zsh):
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
weaver-work-cli --json invoice run invoice.browse-field.data --input-json '{"fids":["12345","67890"]}'
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## 目标 JSON 结构
|
|
46
|
+
|
|
47
|
+
下表定义每个发票对象的字段。`D` 代指发票详情响应中的 `infos[].info`。
|
|
48
|
+
|
|
49
|
+
| 键 | 类型 | 来源 | 说明 |
|
|
50
|
+
|---|---|---|---|
|
|
51
|
+
| `optionId` / `id` / `fid` | string | `D.fid` | 三者取相同值,发票唯一标识。 |
|
|
52
|
+
| `type` | integer | `D.comm_info.pro.type` | 票种编码。 |
|
|
53
|
+
| `typeName` | string | `D.comm_info.pro.cname`;缺失时按 `type` 查[票种名称表](#票种编码与名称) | 票种中文名称。 |
|
|
54
|
+
| `number` | string | `D.number` | 发票号码。 |
|
|
55
|
+
| `code` | string | `D.code` | 发票代码;无代码票种取空串。 |
|
|
56
|
+
| `content` / `name` | string | `"{typeName}-{number}"` 拼接 | 显示用摘要,两者取相同值。 |
|
|
57
|
+
| `total` | string | `D.comm_info.price.total` | 价税合计,单位元。 |
|
|
58
|
+
| `ttax` | string | `D.ext` → `ttax` | 票面税额。 |
|
|
59
|
+
| `seller` | string | `D.comm_info.payer.company` | 销售方名称。 |
|
|
60
|
+
| `sellerId` | string | `D.comm_info.payer.tcode` | 销售方税号。 |
|
|
61
|
+
| `buyer` | string | `D.comm_info.buyer.company` | 购买方名称。 |
|
|
62
|
+
| `buyerId` | string | `D.comm_info.buyer.tcode` | 购买方税号。 |
|
|
63
|
+
| `incDate` | string | `D.comm_info.pro.date` | 开票日期 `yyyy-MM-dd`。 |
|
|
64
|
+
| `incDateTimestamp` | integer | `incDate` 转 UTC+8 零时毫秒时间戳 | 空时取 `0`。 |
|
|
65
|
+
| `validStatus` | string | `D.comm_info.pro.valid` 查[查验状态表](#查验状态) | 查验状态文本。 |
|
|
66
|
+
| `source` | string | `D.modify_info.source` 查[录入来源表](#录入来源) | 录入来源文本。 |
|
|
67
|
+
| `invoiceStatus` | integer | `D.comm_info.pro.status` | 发票状态;`0` 正常。 |
|
|
68
|
+
| `del` | integer | `D.modify_info.del` | 删除状态;`0` 正常。 |
|
|
69
|
+
| `currency` / `currencyName` | string | `D.currency` / `D.currencyName` | 默认 `"CNY"` / `"人民币"`。 |
|
|
70
|
+
| `taxRate` | string | `D.ext` → `taxRate` 或 `products[0].taxRate` | 税率,如 `"13.000"`。 |
|
|
71
|
+
| `consumeContent` | string | `D.ext` → `products` 各项 `productName` 拼接 | 消费内容。 |
|
|
72
|
+
| `fylx` | string | `D.fylx` | 费用类型 ID;缺失取 `"0"`。 |
|
|
73
|
+
| `inputDate` | string | `D.modify_info.createDate` | 录入日期 `yyyy-MM-dd HH:mm:ss`。 |
|
|
74
|
+
| `incTotal` | integer | 固定 `0` | 预留字段。 |
|
|
75
|
+
| `reimingMoney` | string | `D.comm_info.price.reimingMoney` | 报销中金额;缺失取空串。 |
|
|
76
|
+
| `reimedMoney` | string | `D.comm_info.price.reimedMoney` | 已报销金额;缺失取空串。 |
|
|
77
|
+
| `notReimMoney` | string | `total - reimedMoney - reimingMoney` | 无报销数据时等于 `total`。 |
|
|
78
|
+
| `reimDate` | string | 报销日期 | 缺失取空串。 |
|
|
79
|
+
| `reimProcess` | string | 报销流程 ID | 缺失取空串。 |
|
|
80
|
+
|
|
81
|
+
缺失字段统一按类型填充:字符串用空串 `""`,数值用 `0`。
|
|
82
|
+
|
|
83
|
+
## 枚举映射表
|
|
84
|
+
|
|
85
|
+
### 票种编码与名称
|
|
86
|
+
|
|
87
|
+
优先使用详情响应中的 `cname`。仅当 `cname` 缺失时按以下表查找。
|
|
88
|
+
|
|
89
|
+
| `type` | `typeName` |
|
|
90
|
+
|---:|---|
|
|
91
|
+
| 1 | 增值税专用发票 |
|
|
92
|
+
| 2 | 增值税普通发票 |
|
|
93
|
+
| 3 | 增值税电子普通发票 |
|
|
94
|
+
| 4 | 卷式发票 |
|
|
95
|
+
| 5 | 通行费增值税电子普通发票 |
|
|
96
|
+
| 6 | 机动车销售统一发票 |
|
|
97
|
+
| 7 | 定额发票 |
|
|
98
|
+
| 8 | 客运汽车票 |
|
|
99
|
+
| 9 | 航空运输电子客票行程单 |
|
|
100
|
+
| 10 | 火车票 |
|
|
101
|
+
| 11 | 出租车票 |
|
|
102
|
+
| 12 | 其他 |
|
|
103
|
+
| 13 | 汽车通行费发票 |
|
|
104
|
+
| 14 | 船票 |
|
|
105
|
+
| 22 | 二手车销售统一发票 |
|
|
106
|
+
| 28 | 增值税电子专用发票 |
|
|
107
|
+
| 32 | 电子发票(增值税专用发票) |
|
|
108
|
+
| 33 | 电子发票(普通发票) |
|
|
109
|
+
| 47 | 医疗收费票据 |
|
|
110
|
+
| 48 | 财政非税收入统一票据 |
|
|
111
|
+
| 49 | 海关进口增值税专用缴款书 |
|
|
112
|
+
| 50 | 电子发票服务平台纸质普票 |
|
|
113
|
+
| 52 | 完税凭证 |
|
|
114
|
+
| 53 | 国际小票 |
|
|
115
|
+
| 54 | 银行回单 |
|
|
116
|
+
| 56 | 代扣代缴税收缴款凭证 |
|
|
117
|
+
|
|
118
|
+
未匹配的 `type` 使用 `"未知票种"`。
|
|
119
|
+
|
|
120
|
+
### 查验状态
|
|
121
|
+
|
|
122
|
+
| `valid` | `validStatus` |
|
|
123
|
+
|---:|---|
|
|
124
|
+
| 0 | 未查验 |
|
|
125
|
+
| 1 | 有效已查验 |
|
|
126
|
+
| 2 | 有效未查验 |
|
|
127
|
+
| 3 | 查验失败 |
|
|
128
|
+
| 4 | 发票无效 |
|
|
129
|
+
| 5 | 票面校验不一致 |
|
|
130
|
+
|
|
131
|
+
### 录入来源
|
|
132
|
+
|
|
133
|
+
| `source` | 文本 |
|
|
134
|
+
|---:|---|
|
|
135
|
+
| 1 | 微信 |
|
|
136
|
+
| 2 | 支付宝 |
|
|
137
|
+
| 4 | 邮箱 |
|
|
138
|
+
| 5 | 拍照 |
|
|
139
|
+
| 6 | 扫码 |
|
|
140
|
+
| 7 | 手动 |
|
|
141
|
+
| 9 | 查验录入 |
|
|
142
|
+
| 10 | 企业微信 |
|
|
143
|
+
| 11 | 公众号 |
|
|
144
|
+
| 12 | 企业台账 |
|
|
145
|
+
| 13 | 文件 |
|
|
146
|
+
| 14 | Excel |
|
|
147
|
+
| 15 | 短信 |
|
|
148
|
+
| 16 | 链接录入 |
|
|
149
|
+
|
|
150
|
+
未匹配的 `source` 使用空串。
|
|
151
|
+
|
|
152
|
+
## 输出示例
|
|
153
|
+
|
|
154
|
+
```json
|
|
155
|
+
{
|
|
156
|
+
"optionId": "1307869223054704650",
|
|
157
|
+
"id": "1307869223054704650",
|
|
158
|
+
"fid": "1307869223054704650",
|
|
159
|
+
"type": 32,
|
|
160
|
+
"typeName": "电子发票(增值税专用发票)",
|
|
161
|
+
"number": "26932000001429154341",
|
|
162
|
+
"code": "",
|
|
163
|
+
"content": "电子发票(增值税专用发票)-26932000001429154341",
|
|
164
|
+
"name": "电子发票(增值税专用发票)-26932000001429154341",
|
|
165
|
+
"total": "368269.14",
|
|
166
|
+
"ttax": "42367.25",
|
|
167
|
+
"seller": "宁波市北仑亮峰精密机械制造有限公司",
|
|
168
|
+
"sellerId": "91330206744967935K",
|
|
169
|
+
"buyer": "宁波海伯集团有限公司",
|
|
170
|
+
"buyerId": "913302041443146316",
|
|
171
|
+
"incDate": "2026-08-25",
|
|
172
|
+
"incDateTimestamp": 1787587200000,
|
|
173
|
+
"validStatus": "有效已查验",
|
|
174
|
+
"source": "邮箱",
|
|
175
|
+
"invoiceStatus": 0,
|
|
176
|
+
"del": 0,
|
|
177
|
+
"currency": "CNY",
|
|
178
|
+
"currencyName": "人民币",
|
|
179
|
+
"taxRate": "13.000",
|
|
180
|
+
"consumeContent": "*金属制品*主齿轮",
|
|
181
|
+
"fylx": "0",
|
|
182
|
+
"inputDate": "2026-08-26 10:40:33",
|
|
183
|
+
"incTotal": 0,
|
|
184
|
+
"reimingMoney": "",
|
|
185
|
+
"reimedMoney": "",
|
|
186
|
+
"notReimMoney": "368269.14",
|
|
187
|
+
"reimDate": "",
|
|
188
|
+
"reimProcess": ""
|
|
189
|
+
}
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
## 输出处理
|
|
193
|
+
|
|
194
|
+
成功时 `data.items` 是浏览按钮可用对象数组。如果批量详情中有部分发票失败,operation 返回 `meta.status="PARTIAL"`,成功项仍在 `data.items`,失败项在 `data.errors`。Agent 回复用户时只展示成功数量、失败数量和关键发票字段;不要粘贴完整大 JSON。
|
|
195
|
+
|
|
196
|
+
## 边界与错误处理
|
|
197
|
+
|
|
198
|
+
- 详情查询固定 `mask=0`、`userFlag=1`、`isDelFlag=1`。
|
|
199
|
+
- `ext` 为 JSON 字符串,解析失败时 `ttax`、`taxRate`、`consumeContent` 取空串,不中断记录生成。
|
|
200
|
+
- 批量 fid 中部分查询失败时,成功项正常输出,失败项出现在 `errors` 数组中。
|
|
201
|
+
|
|
202
|
+
## 注意
|
|
203
|
+
|
|
204
|
+
该 operation 由 CLI 封装,Agent 只需调用 `invoice.browse-field.data` 或 `invoice.get`,不能直接 `curl` E10 接口,也不需要运行旧源码里的 Python 脚本。
|
package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-detail.md
RENAMED
|
@@ -12,17 +12,25 @@
|
|
|
12
12
|
|
|
13
13
|
## 示例
|
|
14
14
|
|
|
15
|
+
Windows PowerShell:
|
|
16
|
+
|
|
17
|
+
```powershell
|
|
18
|
+
weaver-work-cli --json invoice run invoice.get --input-json '{"fid":"12345"}'
|
|
19
|
+
|
|
20
|
+
weaver-work-cli --json invoice run invoice.get --input-json '{"number":"00188205"}'
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
macOS/Linux(bash/zsh):
|
|
24
|
+
|
|
15
25
|
```bash
|
|
16
|
-
|
|
17
|
-
| weaver-work-cli --json invoice run invoice.get --input -
|
|
26
|
+
weaver-work-cli --json invoice run invoice.get --input-json '{"fid":"12345"}'
|
|
18
27
|
|
|
19
|
-
|
|
20
|
-
| weaver-work-cli --json invoice run invoice.get --input -
|
|
28
|
+
weaver-work-cli --json invoice run invoice.get --input-json '{"number":"00188205"}'
|
|
21
29
|
```
|
|
22
30
|
|
|
23
31
|
## 返回
|
|
24
32
|
|
|
25
|
-
`invoice.get` 返回服务端详情响应本身。常见字段包括 `infos[].info.fid`、`code`、`number`、`comm_info.pro`、`comm_info.price`、`comm_info.buyer`、`comm_info.payer`、`flist` 和 `modify_info
|
|
33
|
+
`invoice.get` 返回服务端详情响应本身。常见字段包括 `infos[].info.fid`、`code`、`number`、`comm_info.pro`、`comm_info.price`、`comm_info.buyer`、`comm_info.payer`、`flist` 和 `modify_info`。交通类发票还可从 `infos[].info.from` / `infos[].info.to`(或 `ext.passengersService`)取出发地和目的地。
|
|
26
34
|
|
|
27
35
|
## 注意
|
|
28
36
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# 暂不暴露的能力
|
|
2
|
+
|
|
3
|
+
## 什么时候读取
|
|
4
|
+
|
|
5
|
+
用户要求共享发票、转让发票、打标签、移除标签,或要求调用 `weaver-work-cli invoice schema` 中不存在的业票通接口时读取本文件。
|
|
6
|
+
|
|
7
|
+
## 当前不暴露
|
|
8
|
+
|
|
9
|
+
以下新版源资料中已有接口路径和请求体,但当前没有纳入 `weaver-work-cli invoice` manifest,Agent 不能绕过 CLI 直接调用:
|
|
10
|
+
|
|
11
|
+
- 共享发票:`POST /api/inc/shareUsers`
|
|
12
|
+
- 转让发票:`POST /api/inc/transferFpyUser`
|
|
13
|
+
- 标记发票:`POST /api/my/tag/common/batchAddEntityTag`
|
|
14
|
+
- 移除、替换或覆盖标签
|
|
15
|
+
|
|
16
|
+
## 原因
|
|
17
|
+
|
|
18
|
+
这些能力缺少稳定的 Agent 合约:
|
|
19
|
+
|
|
20
|
+
- 共享和转让需要接收人的稳定 `appid/cid/uid` 解析来源,当前 invoice CLI 还没有组织/人员查询 operation
|
|
21
|
+
- 共享需要共享关系或接收人可见性回查契约,不能只凭 HTTP 200 宣称成功
|
|
22
|
+
- 转让会改变发票持有人,缺少接收人侧归属回查契约;当前登录人可能在成功后失去可见性,不能据此单独证明新归属
|
|
23
|
+
- 标签缺少标签定义查询、当前标签关系查询和移除/替换语义
|
|
24
|
+
- 写操作后的读回验证边界不完整
|
|
25
|
+
|
|
26
|
+
## Agent 行为
|
|
27
|
+
|
|
28
|
+
遇到这类请求时,明确说明当前 CLI 未暴露该 operation,不能通过 `curl`、`fetch`、浏览器自动化或原始 E10 `/api/inc/*` 绕过。可以建议先补对应的人员/标签查询能力、`prepare -> apply`、写后回查和测试,再开放给 Agent。
|
package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-download.md
RENAMED
|
@@ -12,9 +12,16 @@
|
|
|
12
12
|
|
|
13
13
|
## 示例
|
|
14
14
|
|
|
15
|
+
Windows PowerShell:
|
|
16
|
+
|
|
17
|
+
```powershell
|
|
18
|
+
weaver-work-cli --json invoice run invoice.download --input-json '{"fid":"12345","fileId":"67890","output":"./invoice-12345.pdf"}'
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
macOS/Linux(bash/zsh):
|
|
22
|
+
|
|
15
23
|
```bash
|
|
16
|
-
|
|
17
|
-
| weaver-work-cli --json invoice run invoice.download --input -
|
|
24
|
+
weaver-work-cli --json invoice run invoice.download --input-json '{"fid":"12345","fileId":"67890","output":"./invoice-12345.pdf"}'
|
|
18
25
|
```
|
|
19
26
|
|
|
20
27
|
## 注意
|
|
@@ -20,12 +20,20 @@
|
|
|
20
20
|
|
|
21
21
|
## 示例
|
|
22
22
|
|
|
23
|
+
Windows PowerShell:
|
|
24
|
+
|
|
25
|
+
```powershell
|
|
26
|
+
weaver-work-cli --json invoice run invoice.enterprise.list --input-json '{"page_size":10,"start_pos":0,"buyer_company":"泛微"}'
|
|
27
|
+
|
|
28
|
+
weaver-work-cli --json invoice run invoice.enterprise.list --input-json '{"page_size":10,"start_pos":0,"sreim":"2"}'
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
macOS/Linux(bash/zsh):
|
|
32
|
+
|
|
23
33
|
```bash
|
|
24
|
-
|
|
25
|
-
| weaver-work-cli --json invoice run invoice.enterprise.list --input -
|
|
34
|
+
weaver-work-cli --json invoice run invoice.enterprise.list --input-json '{"page_size":10,"start_pos":0,"buyer_company":"泛微"}'
|
|
26
35
|
|
|
27
|
-
|
|
28
|
-
| weaver-work-cli --json invoice run invoice.enterprise.list --input -
|
|
36
|
+
weaver-work-cli --json invoice run invoice.enterprise.list --input-json '{"page_size":10,"start_pos":0,"sreim":"2"}'
|
|
29
37
|
```
|
|
30
38
|
|
|
31
39
|
## 返回
|
package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-file-upload.md
RENAMED
|
@@ -18,9 +18,16 @@
|
|
|
18
18
|
|
|
19
19
|
## 示例
|
|
20
20
|
|
|
21
|
+
Windows PowerShell:
|
|
22
|
+
|
|
23
|
+
```powershell
|
|
24
|
+
weaver-work-cli --json invoice run invoice.upload --input-json '{"file":"./invoice.pdf"}'
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
macOS/Linux(bash/zsh):
|
|
28
|
+
|
|
21
29
|
```bash
|
|
22
|
-
|
|
23
|
-
| weaver-work-cli --json invoice run invoice.upload --input -
|
|
30
|
+
weaver-work-cli --json invoice run invoice.upload --input-json '{"file":"./invoice.pdf"}'
|
|
24
31
|
```
|
|
25
32
|
|
|
26
33
|
## 返回
|
package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-import.md
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## 什么时候读取
|
|
4
4
|
|
|
5
|
-
用户要把本地发票文件导入票夹时读取本文件。开始前也读取共享高风险协议:`../../weaver-
|
|
5
|
+
用户要把本地发票文件导入票夹时读取本文件。开始前也读取共享高风险协议:`../../weaver-e10-shared/references/high-risk-write.md`。
|
|
6
6
|
|
|
7
7
|
## Operation
|
|
8
8
|
|
|
@@ -14,15 +14,24 @@
|
|
|
14
14
|
|
|
15
15
|
## 示例
|
|
16
16
|
|
|
17
|
+
Windows PowerShell:
|
|
18
|
+
|
|
19
|
+
```powershell
|
|
20
|
+
weaver-work-cli --json invoice run invoice.ocr.preview --input-json '{"file":"./invoice.pdf"}'
|
|
21
|
+
|
|
22
|
+
weaver-work-cli --json invoice run invoice.import.prepare --input-json '{"file":"./invoice.pdf","validate":true,"syncToOa":true}'
|
|
23
|
+
|
|
24
|
+
weaver-work-cli --json invoice run invoice.import.apply --input-json '{"file":"./invoice.pdf","continuation":"PREPARE_CONTINUATION","confirm":true}'
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
macOS/Linux(bash/zsh):
|
|
28
|
+
|
|
17
29
|
```bash
|
|
18
|
-
|
|
19
|
-
| weaver-work-cli --json invoice run invoice.ocr.preview --input -
|
|
30
|
+
weaver-work-cli --json invoice run invoice.ocr.preview --input-json '{"file":"./invoice.pdf"}'
|
|
20
31
|
|
|
21
|
-
|
|
22
|
-
| weaver-work-cli --json invoice run invoice.import.prepare --input -
|
|
32
|
+
weaver-work-cli --json invoice run invoice.import.prepare --input-json '{"file":"./invoice.pdf","validate":true,"syncToOa":true}'
|
|
23
33
|
|
|
24
|
-
|
|
25
|
-
| weaver-work-cli --json invoice run invoice.import.apply --input -
|
|
34
|
+
weaver-work-cli --json invoice run invoice.import.apply --input-json '{"file":"./invoice.pdf","continuation":"PREPARE_CONTINUATION","confirm":true}'
|
|
26
35
|
```
|
|
27
36
|
|
|
28
37
|
## 注意
|