weaver-work-cli 0.1.73 → 0.1.76
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 +37 -1
- package/dist/chunks/{archive-THZV4ND4.js → archive-ENBSUMHV.js} +14 -9
- package/dist/chunks/{archive-oa-PQ23OLEV.js → archive-oa-7BFPQ6M5.js} +10 -7
- package/dist/chunks/{asset-RGPROZYH.js → asset-V5SUD3PW.js} +10 -7
- package/dist/chunks/{asset-idle-Z2PDX7NA.js → asset-idle-3CEL7WFX.js} +7 -4
- package/dist/chunks/{attachment-content-R3RPVOYE.js → attachment-content-24RL44SE.js} +3 -3
- package/dist/chunks/{blog-7U3QZPIF.js → blog-FLI4SS3P.js} +10 -7
- package/dist/chunks/{caizhilian-3AB42GCV.js → caizhilian-7WCTKCCP.js} +10 -7
- package/dist/chunks/{calendar-KINM64E4.js → calendar-G726HUUH.js} +10 -7
- package/dist/chunks/chunk-257JXJGD.js +30 -0
- package/dist/chunks/chunk-2BZ7TY4M.js +49 -0
- package/dist/chunks/{chunk-4BXR6CNB.js → chunk-2KW7AI6P.js} +2 -2
- package/dist/chunks/{chunk-WM33BSIL.js → chunk-2QCCXPNU.js} +1 -1
- package/dist/chunks/chunk-2UV4IZIT.js +473 -0
- package/dist/chunks/{chunk-R3MK2RBN.js → chunk-5E2FDXBU.js} +1 -1
- package/dist/chunks/{chunk-DRUND2PJ.js → chunk-5QUTQHXF.js} +225 -152
- package/dist/chunks/chunk-7DE3VMZD.js +35 -0
- package/dist/chunks/{chunk-PAFOLIYQ.js → chunk-AZC53XSQ.js} +1 -1
- package/dist/chunks/{chunk-6HT73VOI.js → chunk-BWFCTE43.js} +2 -2
- package/dist/chunks/{chunk-4YXAK6OA.js → chunk-FEZK536Z.js} +12 -7
- package/dist/chunks/{chunk-IU6UB2TD.js → chunk-FPWCCRKT.js} +48 -6
- package/dist/chunks/{chunk-LLCMOZ5L.js → chunk-H6N6U2D6.js} +11 -11
- package/dist/chunks/{chunk-54ST55IJ.js → chunk-JJONWB5N.js} +11 -1
- package/dist/chunks/{chunk-GWJLAF6B.js → chunk-JWF2R6EQ.js} +0 -462
- package/dist/chunks/chunk-KINXYJXM.js +205 -0
- package/dist/chunks/{chunk-F4HM25K4.js → chunk-KJA7CRES.js} +1 -1
- package/dist/chunks/chunk-L5SCNJKX.js +1166 -0
- package/dist/chunks/{chunk-TV46Q4NY.js → chunk-MS7MKBGJ.js} +74 -68
- package/dist/chunks/{chunk-XZBYRYWX.js → chunk-NZQRW4KL.js} +2 -2
- package/dist/chunks/chunk-OJ4JPD25.js +428 -0
- package/dist/chunks/chunk-OVTCWLNQ.js +1346 -0
- package/dist/chunks/{chunk-NUP4RYZK.js → chunk-PMRNIGKZ.js} +2 -2
- package/dist/chunks/{chunk-2CHGUYMG.js → chunk-Q7RXCK2Y.js} +4 -4
- package/dist/chunks/{chunk-AMAPQVBT.js → chunk-QVKRNL7L.js} +286 -305
- package/dist/chunks/{chunk-7QFVXP2X.js → chunk-R4PN3OFK.js} +8 -7
- package/dist/chunks/{chunk-L7TYG5SN.js → chunk-RVEKGVZU.js} +2 -2
- package/dist/chunks/{chunk-2XED2FKY.js → chunk-SQFKBWTR.js} +38 -36
- package/dist/chunks/chunk-SU6IJD6D.js +49 -0
- package/dist/chunks/{chunk-IBSJJGXL.js → chunk-T7HVQ2WP.js} +2 -2
- package/dist/chunks/{chunk-ZWLWXHJC.js → chunk-TBCKK6LH.js} +2 -2
- package/dist/chunks/{chunk-JMJBPP4B.js → chunk-UDBQJLQF.js} +2 -2
- package/dist/chunks/chunk-UUJK76HV.js +209 -0
- package/dist/chunks/{chunk-4I26YMBY.js → chunk-WHI6YAUE.js} +7 -3
- package/dist/chunks/{chunk-BWYVS62Z.js → chunk-WJQJ7YEX.js} +4 -4
- package/dist/chunks/{chunk-GAMGDNTF.js → chunk-XNN5PZTI.js} +1 -1
- package/dist/chunks/chunk-Y3C6MDL7.js +28 -0
- package/dist/chunks/chunk-ZM7RN2IM.js +38 -0
- package/dist/chunks/cli-DFLV57LO.js +226 -0
- package/dist/chunks/commands-J52MJ6NF.js +70 -0
- package/dist/chunks/{conflict-VPAR7E6F.js → conflict-72Q6DM4I.js} +2 -2
- package/dist/chunks/{contract-DDXAO2DZ.js → contract-IRNRQ5FY.js} +12446 -5964
- package/dist/chunks/{cowork-34QCHMDD.js → cowork-GZDODGKF.js} +11 -8
- package/dist/chunks/{create-flow-52PU2OBI.js → create-flow-UGTDI7SP.js} +6 -6
- package/dist/chunks/{data-CLQ62QGD.js → data-HTQZRPPI.js} +6 -3
- package/dist/chunks/{ebuilder-form-W5R7Q22S.js → ebuilder-form-GHNIZ7ET.js} +9 -6
- package/dist/chunks/{ehr-LCNAVMK5.js → ehr-PHIBBUIG.js} +23 -16
- package/dist/chunks/{entry-mode-6Z3ZV3DE.js → entry-mode-5WOXFE67.js} +3 -3
- package/dist/chunks/{env-RDKWAARB.js → env-H4ALHESA.js} +2 -2
- package/dist/chunks/{esb-ANKPUU65.js → esb-ATRKVHCD.js} +10 -7
- package/dist/chunks/{factory-434B7RAT.js → factory-COX6AVK7.js} +1 -1
- package/dist/chunks/{fna-AKBSG5HI.js → fna-IKYI3SST.js} +13 -8
- package/dist/chunks/{group-chat-PROTW22R.js → group-chat-ZIWQQO4G.js} +3 -3
- package/dist/chunks/{host-5R2SNFWD.js → host-6UOXYOOY.js} +6 -3
- package/dist/chunks/{host-7FJW4E7R.js → host-EJSJSLVK.js} +6 -3
- package/dist/chunks/{host-WO4L5G5I.js → host-EYNLB6S4.js} +6 -3
- package/dist/chunks/{host-PDJAKCT7.js → host-OT4KNR3G.js} +6 -3
- package/dist/chunks/{host-CGXUFQO4.js → host-UY4LQPN4.js} +6 -3
- package/dist/chunks/{host-XIYG4F4B.js → host-XXGDQM7D.js} +6 -3
- package/dist/chunks/{hrm-WGODDTEH.js → hrm-5JQ7QZ6A.js} +8 -5
- package/dist/chunks/{im-YKTKAJU3.js → im-2YJW3EI5.js} +7 -4
- package/dist/chunks/{invoice-PVYCCCVM.js → invoice-37HR6L3W.js} +956 -566
- package/dist/chunks/{jiuchuanhui-RKOQW7BY.js → jiuchuanhui-KBWUZ7WT.js} +17 -10
- package/dist/chunks/{lazy-dispatch-DW45AFQ5.js → lazy-dispatch-MZ3EZYDL.js} +22 -8
- package/dist/chunks/{mail-BNB5S4NW.js → mail-YBKUM6HM.js} +11 -8
- package/dist/chunks/{meeting-O2KDJH66.js → meeting-XE6CTXYA.js} +22 -18
- package/dist/chunks/{minute-doc-JUCG56GY.js → minute-doc-4BA2R5EA.js} +4 -4
- package/dist/chunks/{okr-LWFGWOE7.js → okr-HW7IULIR.js} +10 -7
- package/dist/chunks/{operations-532PN5OB.js → operations-4P2UYVLH.js} +7 -4
- package/dist/chunks/{performance-7W5COCFU.js → performance-PM2G6L3E.js} +6 -3
- package/dist/chunks/{plan-ZVY3IYTL.js → plan-3YYGZ7ZM.js} +10 -7
- package/dist/chunks/{project-SA62B7MH.js → project-XREEXFU2.js} +10 -7
- package/dist/chunks/{reception-NGIONPQ3.js → reception-7G3J2MA6.js} +8 -4
- package/dist/chunks/{recruit-stage-WOSN6MGP.js → recruit-stage-TSQWOGQD.js} +199 -74
- package/dist/chunks/register-SQOPIR2G.js +16 -0
- package/dist/chunks/{registry-N7P3W2RD.js → registry-3VTB3KLV.js} +7 -4
- package/dist/chunks/registry-7UDUWYB5.js +30 -0
- package/dist/chunks/{registry-R72GWXOG.js → registry-F4YFZLOD.js} +7 -3
- package/dist/chunks/{room-recommend-KCGIVUFR.js → room-recommend-FO3HLPNB.js} +4 -4
- package/dist/chunks/root-YZG2TS5W.js +16 -0
- package/dist/chunks/{schedule-6UP27HQ4.js → schedule-DHNNOHVS.js} +4 -4
- package/dist/chunks/{smart-extract-DDOQSPRB.js → smart-extract-T5Z4AULN.js} +15 -7
- package/dist/chunks/update-AV5VOXGY.js +13 -0
- package/dist/chunks/{workflow-V5ALD6QZ.js → workflow-MAGCHWYZ.js} +15 -10
- package/dist/cli.js +40 -0
- package/dist/cmd/action.js +3 -1
- package/dist/cmd/doctor/index.js +1 -1
- package/dist/cmd/e10/index.js +1 -1
- package/dist/cmd/identity/index.js +5 -8
- package/dist/cmd/index.js +2 -0
- package/dist/cmd/setup/index.js +1 -1
- package/dist/cmd/update/index.js +38 -0
- package/dist/core/manifest-view.js +1 -1
- package/dist/core/output.js +8 -1
- package/dist/core/runtime-agent.js +13 -0
- package/dist/core/update-notice.js +23 -0
- package/dist/index.js +105 -198
- package/dist/internal/e10/auth/agent-host-key.js +16 -0
- package/dist/internal/e10/auth/agent-hosts.js +45 -9
- package/dist/internal/e10/auth/commands.js +66 -36
- package/dist/internal/e10/auth/session.js +30 -15
- package/dist/internal/e10/auth/xiaoe.js +4 -20
- package/dist/internal/e10/auth-recovery.js +44 -4
- package/dist/internal/e10/context.js +5 -2
- package/dist/internal/update/bootstrap.js +96 -0
- package/dist/internal/update/npm.js +78 -0
- package/dist/internal/update/service.js +252 -0
- package/dist/internal/update/store.js +135 -0
- package/dist/shortcuts/archive/index.js +2 -2
- package/dist/shortcuts/archive/manifest.js +1 -0
- package/dist/shortcuts/archive/operations/search.js +3 -1
- package/dist/shortcuts/archive-oa/index.js +1 -1
- package/dist/shortcuts/asset/index.js +1 -1
- package/dist/shortcuts/asset-idle/index.js +1 -1
- package/dist/shortcuts/blog/index.js +1 -1
- package/dist/shortcuts/caizhilian/index.js +1 -1
- package/dist/shortcuts/calendar/index.js +1 -1
- package/dist/shortcuts/contract/data/bi-config.js +156 -0
- package/dist/shortcuts/contract/data/collection-ledger-html.js +189 -0
- package/dist/shortcuts/contract/data/collection-node-catalog.js +226 -0
- package/dist/shortcuts/contract/data/metric-catalog.js +154 -20
- package/dist/shortcuts/contract/data/report-renderers.js +414 -0
- package/dist/shortcuts/contract/data/report-spec.js +132 -0
- package/dist/shortcuts/contract/error-actions.js +114 -0
- package/dist/shortcuts/contract/host.js +12 -3
- package/dist/shortcuts/contract/index.js +17 -1
- package/dist/shortcuts/contract/manifest.js +398 -3
- package/dist/shortcuts/contract/ooxml/docx-table.js +48 -0
- package/dist/shortcuts/contract/operations/bi-preview.js +131 -0
- package/dist/shortcuts/contract/operations/bizreview-report.js +496 -0
- package/dist/shortcuts/contract/operations/collection-node.js +229 -0
- package/dist/shortcuts/contract/operations/docx-slots.js +735 -16
- package/dist/shortcuts/contract/operations/draft-build.js +940 -0
- package/dist/shortcuts/contract/operations/draft-submit.js +229 -0
- package/dist/shortcuts/contract/operations/first-screen.js +3 -2
- package/dist/shortcuts/contract/operations/generated-submit.js +175 -0
- package/dist/shortcuts/contract/operations/ledger-report.js +233 -0
- package/dist/shortcuts/contract/operations/ledger-stat.js +1400 -0
- package/dist/shortcuts/contract/operations/ledger.js +4 -1
- package/dist/shortcuts/contract/operations/metrics.js +9 -3
- package/dist/shortcuts/contract/operations/ops-draft.js +527 -0
- package/dist/shortcuts/contract/operations/page.js +9 -0
- package/dist/shortcuts/contract/operations/quote-submit.js +55 -229
- package/dist/shortcuts/contract/operations/registry.js +20 -0
- package/dist/shortcuts/contract/operations/sign-launch.js +256 -0
- package/dist/shortcuts/contract/operations/viewlink.js +334 -0
- package/dist/shortcuts/cowork/index.js +2 -2
- package/dist/shortcuts/ebuilder-form/index.js +1 -1
- package/dist/shortcuts/ehr/index.js +2 -2
- package/dist/shortcuts/ehr/manifest.js +1 -1
- package/dist/shortcuts/ehr/operations/recruit-position.js +7 -2
- package/dist/shortcuts/ehr/operations/recruit-write.js +7 -6
- package/dist/shortcuts/ehr/operations/recruit.js +318 -248
- package/dist/shortcuts/ehr/operations/shared.js +22 -2
- package/dist/shortcuts/esb/index.js +1 -1
- package/dist/shortcuts/fna/index.js +1 -1
- package/dist/shortcuts/fna/manifest.js +1 -0
- package/dist/shortcuts/fna/operations/expense-chart.js +3 -1
- package/dist/shortcuts/hrm/index.js +1 -1
- package/dist/shortcuts/invoice/business-response.js +13 -0
- package/dist/shortcuts/invoice/calendar.js +24 -0
- package/dist/shortcuts/invoice/host.js +26 -15
- package/dist/shortcuts/invoice/index.js +3 -3
- package/dist/shortcuts/invoice/invoice-record.js +7 -2
- package/dist/shortcuts/invoice/manifest.js +179 -155
- package/dist/shortcuts/invoice/operations/get.js +9 -3
- package/dist/shortcuts/invoice/operations/issuing-red-requests.js +138 -0
- package/dist/shortcuts/invoice/operations/registry.js +4 -5
- package/dist/shortcuts/invoice/operations/reim-auto.js +40 -2
- package/dist/shortcuts/invoice/operations/reim-customer-projects.js +79 -0
- package/dist/shortcuts/invoice/operations/reim-customer.js +79 -30
- package/dist/shortcuts/invoice/operations/reim-relation.js +0 -146
- package/dist/shortcuts/invoice/operations/reim.js +2 -126
- package/dist/shortcuts/invoice/operations/shared.js +15 -17
- package/dist/shortcuts/invoice/preapproval-enrichment.js +180 -0
- package/dist/shortcuts/invoice/projection.js +14 -0
- package/dist/shortcuts/invoice/read-enrichment.js +123 -0
- package/dist/shortcuts/jiuchuanhui/index.js +2 -2
- package/dist/shortcuts/jiuchuanhui/manifest.js +3 -0
- package/dist/shortcuts/mail/index.js +2 -2
- package/dist/shortcuts/meeting/index.js +1 -1
- package/dist/shortcuts/meeting/manifest.js +1 -0
- package/dist/shortcuts/meeting/operations/eb/catalog.js +5 -3
- package/dist/shortcuts/meeting/operations/eb/conflict.js +3 -1
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +10 -9
- package/dist/shortcuts/meeting/operations/eb/factory.js +2 -0
- package/dist/shortcuts/meeting/operations/eb/member-expand.js +3 -2
- package/dist/shortcuts/meeting/operations/invitation-publish.js +3 -3
- package/dist/shortcuts/meeting/operations/invitation.js +4 -4
- package/dist/shortcuts/meeting/operations/link.js +3 -1
- package/dist/shortcuts/okr/index.js +1 -1
- package/dist/shortcuts/performance/index.js +1 -1
- package/dist/shortcuts/plan/index.js +1 -1
- package/dist/shortcuts/project/index.js +1 -1
- package/dist/shortcuts/reception/manifest.js +2 -2
- package/dist/shortcuts/recruit-stage/context.js +10 -2
- package/dist/shortcuts/recruit-stage/index.js +16 -3
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +1 -1
- package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +1 -1
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +17 -8
- package/dist/shortcuts/recruit-stage/operations/list.js +1 -1
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +178 -35
- package/dist/shortcuts/recruit-stage/operations/search.js +2 -2
- package/dist/shortcuts/recruit-stage/operations/shortlist.js +4 -2
- package/dist/shortcuts/recruit-stage/shared.js +27 -53
- package/dist/shortcuts/smart-extract/manifest.js +1 -0
- package/dist/shortcuts/smart-extract/operations/fill.js +7 -2
- package/dist/shortcuts/smart-extract/operations/validate.js +4 -1
- package/dist/shortcuts/workflow/index.js +2 -2
- package/dist/shortcuts/workflow/manifest.js +1 -0
- package/dist/shortcuts/workflow/operations/aiDeepRead/render.js +4 -1
- package/dist/shortcuts/workflow/operations/deepRead.js +23 -2
- package/dist/shortcuts/workflow/operations/form.js +8 -2
- package/docs/agent-invoice.md +28 -2
- package/docs/contract.md +6 -1
- package/docs/e10-auth.md +25 -7
- package/docs/invoice.md +60 -9
- package/docs/operation-manual.md +15 -0
- package/package.json +2 -2
- package/skill-template/business-info.json +28 -0
- package/skill-template/domains/jinchengda.md +13 -1
- package/skill-template/domains/yepiaotong.md +36 -7
- package/skills/weaver-e10-archive-oa/references/source-manifest.json +3 -3
- package/skills/weaver-e10-caizhilian/references/auth-and-install.md +2 -1
- package/skills/weaver-e10-caizhilian/references/source-manifest.json +3 -3
- package/skills/weaver-e10-esb/references/source-manifest.json +3 -3
- package/skills/weaver-e10-jinchengda/SKILL.md +90 -32
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +45 -0
- package/skills/weaver-e10-jinchengda/references/contract-bizreview-report-template.html +68 -0
- package/skills/weaver-e10-jinchengda/references/contract-bizreview.md +216 -0
- package/skills/weaver-e10-jinchengda/references/contract-clause-negotiate.md +215 -0
- package/skills/weaver-e10-jinchengda/references/contract-collection-node.md +113 -0
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +19 -3
- package/skills/weaver-e10-jinchengda/references/contract-decisions.md +114 -0
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +53 -44
- package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-firstscreen-guide.md +200 -0
- package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +18 -1
- package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +138 -3
- package/skills/weaver-e10-jinchengda/references/contract-ledger-report.md +158 -0
- package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +3 -1
- package/skills/weaver-e10-jinchengda/references/contract-material-gap.md +139 -0
- package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +2 -2
- package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +10 -3
- package/skills/weaver-e10-jinchengda/references/contract-ops-draft.md +106 -0
- package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +176 -56
- package/skills/weaver-e10-jinchengda/references/contract-sign-launch.md +123 -0
- package/skills/weaver-e10-jinchengda/references/contract-smart-draft.md +410 -0
- package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-viewlink.md +110 -0
- package/skills/weaver-e10-jinchengda/references/orchestration.md +38 -24
- package/skills/weaver-e10-meeting/SKILL.md +13 -0
- package/skills/weaver-e10-okr/SKILL.md +11 -0
- package/skills/weaver-e10-okr/references/source-manifest.json +7 -6
- package/skills/weaver-e10-performance/SKILL.md +131 -39
- package/skills/weaver-e10-performance/agents/openai.yaml +48 -17
- package/skills/weaver-e10-performance/references/default-assembly.md +3 -0
- package/skills/weaver-e10-performance/references/extraction-guide.md +17 -3
- package/skills/weaver-e10-performance/references/flow-assess.md +38 -5
- package/skills/weaver-e10-performance/references/scheme-setting-page.md +20 -3
- package/skills/weaver-e10-performance/scripts/assemble_scheme.py +461 -0
- package/skills/weaver-e10-performance/scripts/parse_appraisal_doc.py +41 -0
- package/skills/weaver-e10-plan/SKILL.md +10 -0
- package/skills/weaver-e10-plan/references/source-manifest.json +13 -13
- package/skills/weaver-e10-qiyecheng/SKILL.md +2 -2
- package/skills/weaver-e10-qiyecheng/references/source-manifest.json +9 -9
- package/skills/weaver-e10-recruit-stage/SKILL.md +230 -202
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +74 -46
- package/skills/weaver-e10-recruit-stage/lib/interview-conflict.mjs +3 -0
- package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +201 -36
- package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +336 -27
- package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +3 -0
- package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +15 -1
- package/skills/weaver-e10-recruit-stage/lib/report-attachment.mjs +38 -0
- package/skills/weaver-e10-recruit-stage/lib/xiaoe-session.mjs +5 -1
- package/skills/weaver-e10-recruit-stage/references/env-fixed-values.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +12 -8
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +20 -18
- package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +11 -7
- package/skills/weaver-e10-recruit-stage/references/recruit-check-install.md +5 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-detail-process.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +8 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-failure-fallback.md +6 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +7 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +32 -25
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-template.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +5 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-maint.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +16 -10
- package/skills/weaver-e10-recruit-stage/references/recruit-my-positions.md +6 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +148 -40
- package/skills/weaver-e10-recruit-stage/references/recruit-platform-compat.md +5 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +32 -8
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-creator.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +8 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +6 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +41 -41
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +7 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +7 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +8 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +5 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +5 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +5 -1
- package/skills/weaver-e10-recruit-stage/templates/candidate-evidence.html +41 -28
- package/skills/weaver-e10-recruit-stage/templates/interview-summary.html +23 -26
- package/skills/weaver-e10-recruit-stage/templates/match-report.html +44 -36
- package/skills/weaver-e10-shared/SKILL.md +40 -5
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +11 -1
- package/skills/weaver-e10-shared/references/json-output-contract.md +144 -8
- package/skills/weaver-e10-shared/references/weaver-e10-installation.md +11 -0
- package/skills/weaver-e10-shijingran/references/source-manifest.json +3 -3
- package/skills/weaver-e10-wenshuding/references/source-manifest.json +3 -3
- package/skills/weaver-e10-workflow/references/source-manifest.json +3 -3
- package/skills/weaver-e10-yepiaotong/SKILL.md +133 -61
- package/skills/weaver-e10-yepiaotong/references/invoice-add.md +3 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-detail.md +18 -2
- package/skills/weaver-e10-yepiaotong/references/invoice-disabled-capabilities.md +3 -3
- package/skills/weaver-e10-yepiaotong/references/invoice-download.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +13 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-file-upload.md +3 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-import.md +6 -4
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-workflow.md +42 -45
- package/skills/weaver-e10-yepiaotong/references/invoice-ocr-preview.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-output-view.md +18 -2
- package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +14 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-red-workflow.md +96 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-reim-relation.md +56 -369
- package/skills/weaver-e10-yepiaotong/references/invoice-upload-and-validate.md +16 -6
- package/skills/weaver-e10-yepiaotong/references/name-fuzzy-search.md +38 -0
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +163 -646
- package/skills/weaver-e10-yepiaotong/references/reim-customer-search.md +90 -44
- package/skills/weaver-e10-yepiaotong/references/reim-eligibility-rules.md +85 -0
- package/skills/weaver-e10-yepiaotong/references/reim-fill-validation.md +61 -0
- package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +91 -280
- package/skills/weaver-e10-yepiaotong/references/reim-preapproval-rules.md +98 -0
- package/skills/weaver-e10-yepiaotong/references/reim-travel-invoice-matching.md +48 -0
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +234 -695
- package/skills/weaver-e10-yepiaotong/references/source-manifest.json +395 -204
- package/skills/weaver-e10-yepiaotong/references/travel-application-fill.md +84 -0
- package/skills/weaver-e10-yepiaotong/references/workflow-direct-fill.md +165 -0
- package/skills/weaver-e10-yepiaotong.zip +0 -0
- package/dist/chunks/chunk-ICP53R52.js +0 -2849
- package/dist/chunks/registry-RIQ67ZT7.js +0 -27
- package/scripts/pysite/__pycache__/sitecustomize.cpython-312.pyc +0 -0
- package/scripts/pysite/__pycache__/sitecustomize.cpython-313.pyc +0 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +0 -93
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +0 -774
- package/skills/weaver-e10-yepiaotong/references/reim-expense-subject-rules.md +0 -111
- package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +0 -360
- package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +0 -167
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
"""把「精简方案规格」组装成完整的 SchemeEditReq(绩效方案草稿请求体)。
|
|
4
|
+
|
|
5
|
+
背景:完整请求体通常 5~10 KB(指标行 + stepWeightList + 加减分项 + 审批节点 + 表头),
|
|
6
|
+
由模型逐字手写既慢又容易出错(文字目标值被丢、加减分项缺评分人、id 丢精度)。
|
|
7
|
+
本脚本只做机械组装:模型只给「业务决策」(方案名/周期/考核对象/指标/加减分项),
|
|
8
|
+
默认值、表头、stepWeightList、开关联动全部由脚本按 references/default-assembly.md 生成。
|
|
9
|
+
|
|
10
|
+
用法:
|
|
11
|
+
python3 assemble_scheme.py --spec spec.json --out request.json
|
|
12
|
+
python3 assemble_scheme.py --spec - --out request.json # spec 从 stdin 读
|
|
13
|
+
python3 assemble_scheme.py --spec spec.json --out request.json --pretty
|
|
14
|
+
|
|
15
|
+
标准输出是一个「小结果」(不打印完整请求体,避免模型再读一遍 9KB):
|
|
16
|
+
{"ok": true, "out": "<request.json>", "warnings": ["..."],
|
|
17
|
+
"summary": {"name": "...", "indicatorCount": 3, "weightSum": 100,
|
|
18
|
+
"plusCount": 0, "minusCount": 0, "scoreStepCount": 1}}
|
|
19
|
+
|
|
20
|
+
spec 结构(只写业务决策,字段缺失即用默认值):
|
|
21
|
+
{
|
|
22
|
+
"name": "2026年研发中心季度绩效考核方案", # 必填
|
|
23
|
+
"dateType": "quarter", # 必填 year|halfyear|quarter|month
|
|
24
|
+
"total": 100, # 分制,默认 100
|
|
25
|
+
"teffectTime": "2026-01-01", # 默认当天
|
|
26
|
+
"failureTime": "2026-12-31", # 可选
|
|
27
|
+
"targets": [{"id": "88001", "targetType": 3, "name": "研发一部"}], # 必填 ≥1
|
|
28
|
+
"indicators": [
|
|
29
|
+
{"name": "需求按时交付率", "mode": "quantify", "weight": "40",
|
|
30
|
+
"target": "95", "description": "…", "category": "业绩"}
|
|
31
|
+
],
|
|
32
|
+
"plus": [{"name": "突出贡献", "rule": "单次加2~5分", "limit": 10, "rater": "directSuperior"}],
|
|
33
|
+
"minus": [{"name": "严重投诉", "rule": "出现即清零", "limit": 0, "rater": "directSuperior"}],
|
|
34
|
+
"scoreSteps": [{"rater": "directSuperior", "weight": 100}], # 默认单节点直接上级
|
|
35
|
+
"interview": false, # true 时生成面谈节点
|
|
36
|
+
"extras": {} # 可选:原样合并进请求体(用于审批节点等高级字段)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
rater 写法:关系型评分人填 operateType 原值(directSuperior / indirectSuperior / otherSuperior /
|
|
40
|
+
assessmentMan / subordinates / samePositionMan / sameGradeMan / sameDepartmentMan,self 是
|
|
41
|
+
assessmentMan 的别名),具名人员直接填数字人员 id(生成 fixedMan + operater);其他写法报错。
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
import argparse
|
|
45
|
+
import datetime
|
|
46
|
+
import json
|
|
47
|
+
import os
|
|
48
|
+
import re
|
|
49
|
+
import sys
|
|
50
|
+
|
|
51
|
+
STANDARD_HEADER = [
|
|
52
|
+
{"title": "指标名称", "dataIndex": "indicatorType", "comKey": "indicatorType", "width": "150px"},
|
|
53
|
+
{"title": "指标模式", "dataIndex": "indicatorMode", "comKey": "indicatorMode", "width": "100px"},
|
|
54
|
+
{"title": "指标描述", "dataIndex": "indicatorDescription", "comKey": "indicatorDescription", "width": "200px"},
|
|
55
|
+
{"title": "目标值", "dataIndex": "defaultTarget", "comKey": "defaultTarget", "width": "140px"},
|
|
56
|
+
{"title": "权重(%)", "dataIndex": "weight", "comKey": "weight", "width": "100px"},
|
|
57
|
+
{"title": "操作", "dataIndex": "operate", "comKey": "operate", "width": "150px"},
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
FIXED_DEFAULTS = {
|
|
61
|
+
"weightMode": "simple",
|
|
62
|
+
"createMode": "default",
|
|
63
|
+
"kpsDistributeType": "flow",
|
|
64
|
+
"flowDistributeType": "flow",
|
|
65
|
+
"countType": 2,
|
|
66
|
+
"scoreLimit": True,
|
|
67
|
+
"seeSetting": "default",
|
|
68
|
+
"remindSetting": "default",
|
|
69
|
+
"dateTypeSet": "setting",
|
|
70
|
+
"showTargetColumn": True,
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
DATE_TYPES = ("year", "halfyear", "quarter", "month")
|
|
74
|
+
|
|
75
|
+
MODE_ALIASES = {
|
|
76
|
+
"quantify": "quantify", "quantitative": "quantify", "定量": "quantify", "量化": "quantify",
|
|
77
|
+
"qualitative": "qualitative", "定性": "qualitative",
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
# checkType 的 id 是自定义数字串(references/scheme-edit-req-fields.md「checkType 元素」),basicData[].checkType 引用它
|
|
81
|
+
CHECK_TYPE_ID_BASE = 9000000001
|
|
82
|
+
|
|
83
|
+
# stepOperators[].operateType 合法值(references/scheme-edit-req-fields.md「stepOperators 元素」);
|
|
84
|
+
# 具名人员不走枚举,写 fixedMan + operater
|
|
85
|
+
OPERATE_TYPES = (
|
|
86
|
+
"directSuperior", "indirectSuperior", "otherSuperior", "assessmentMan",
|
|
87
|
+
"subordinates", "samePositionMan", "sameGradeMan", "sameDepartmentMan",
|
|
88
|
+
)
|
|
89
|
+
OPERATE_ALIASES = {"self": "assessmentMan"}
|
|
90
|
+
RESOURCE_ID_RE = re.compile(r"[0-9]+")
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
class SpecError(Exception):
|
|
94
|
+
pass
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
def as_text(value):
|
|
98
|
+
if value is None:
|
|
99
|
+
return ""
|
|
100
|
+
return str(value).strip()
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def normalize_mode(value, where, warnings):
|
|
104
|
+
raw = as_text(value)
|
|
105
|
+
if not raw:
|
|
106
|
+
return "qualitative"
|
|
107
|
+
mode = MODE_ALIASES.get(raw)
|
|
108
|
+
if not mode:
|
|
109
|
+
warnings.append("%s:无法识别的指标模式「%s」,按定性处理" % (where, raw))
|
|
110
|
+
return "qualitative"
|
|
111
|
+
return mode
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
def is_number(value):
|
|
115
|
+
text = as_text(value)
|
|
116
|
+
if not text:
|
|
117
|
+
return False
|
|
118
|
+
try:
|
|
119
|
+
float(text)
|
|
120
|
+
return True
|
|
121
|
+
except ValueError:
|
|
122
|
+
return False
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
def split_target(row, where, warnings):
|
|
126
|
+
"""目标值只接受数字(服务端是 Float,文字会被静默丢弃)。
|
|
127
|
+
|
|
128
|
+
非数字目标 → 拼进指标描述(「;目标:…」)并告警,绝不写进 defaultTarget。
|
|
129
|
+
"""
|
|
130
|
+
target = as_text(row.get("target"))
|
|
131
|
+
description = as_text(row.get("description"))
|
|
132
|
+
if not target:
|
|
133
|
+
return description, None
|
|
134
|
+
if is_number(target):
|
|
135
|
+
return description, target
|
|
136
|
+
warnings.append("%s:目标值「%s」不是数字,已并入指标描述(服务端会丢弃文字目标值)" % (where, target))
|
|
137
|
+
merged = (description + ";" if description else "") + "目标:" + target
|
|
138
|
+
return merged, None
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
def build_basic_data(spec, warnings):
|
|
142
|
+
rows = spec.get("indicators") or []
|
|
143
|
+
if not isinstance(rows, list) or not rows:
|
|
144
|
+
raise SpecError("indicators 不能为空(至少一行指标)")
|
|
145
|
+
|
|
146
|
+
categories = []
|
|
147
|
+
total_weight = 0.0
|
|
148
|
+
missing_weight = []
|
|
149
|
+
data = []
|
|
150
|
+
|
|
151
|
+
for index, row in enumerate(rows, start=1):
|
|
152
|
+
if not isinstance(row, dict):
|
|
153
|
+
raise SpecError("indicators[%d] 必须是对象" % index)
|
|
154
|
+
where = "指标 %d" % index
|
|
155
|
+
name = as_text(row.get("name"))
|
|
156
|
+
if not name:
|
|
157
|
+
raise SpecError("indicators[%d].name 缺失" % index)
|
|
158
|
+
|
|
159
|
+
mode = normalize_mode(row.get("mode") or row.get("indicatorMode"), where, warnings)
|
|
160
|
+
description, target = split_target(row, where, warnings)
|
|
161
|
+
weight = as_text(row.get("weight"))
|
|
162
|
+
if weight:
|
|
163
|
+
if not is_number(weight):
|
|
164
|
+
warnings.append("%s:权重「%s」不是数字,已按原文保留" % (where, weight))
|
|
165
|
+
else:
|
|
166
|
+
total_weight += float(weight)
|
|
167
|
+
else:
|
|
168
|
+
missing_weight.append(index)
|
|
169
|
+
|
|
170
|
+
item = {
|
|
171
|
+
"dataRow": index,
|
|
172
|
+
"indicatorMode": mode,
|
|
173
|
+
"indicatorType": name,
|
|
174
|
+
}
|
|
175
|
+
if description:
|
|
176
|
+
item["indicatorDescription"] = description
|
|
177
|
+
if weight:
|
|
178
|
+
item["weight"] = weight
|
|
179
|
+
if target:
|
|
180
|
+
item["defaultTarget"] = target
|
|
181
|
+
|
|
182
|
+
category = as_text(row.get("category"))
|
|
183
|
+
if category:
|
|
184
|
+
if category not in categories:
|
|
185
|
+
categories.append(category)
|
|
186
|
+
item["checkType"] = str(CHECK_TYPE_ID_BASE + categories.index(category))
|
|
187
|
+
|
|
188
|
+
data.append(item)
|
|
189
|
+
|
|
190
|
+
if missing_weight:
|
|
191
|
+
warnings.append("以下指标缺权重,需用户补充:第 %s 行" % "、".join(str(i) for i in missing_weight))
|
|
192
|
+
if data and abs(total_weight - 100) > 0.01:
|
|
193
|
+
warnings.append("常规指标权重合计 %s ≠ 100(分制与权重相互独立,不因分制换算)" % _fmt(total_weight))
|
|
194
|
+
|
|
195
|
+
return data, categories
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
def build_check_types(categories, data, warnings):
|
|
199
|
+
if not categories:
|
|
200
|
+
return None
|
|
201
|
+
if len(categories) > 1:
|
|
202
|
+
warnings.append("指标分类权重未自动计算,请确认 checkType 的 weight(当前按 100/分类数 均分)")
|
|
203
|
+
each = round(100.0 / len(categories), 2)
|
|
204
|
+
return [
|
|
205
|
+
{"id": str(CHECK_TYPE_ID_BASE + i), "typeName": name, "weight": each, "rowLine": ""}
|
|
206
|
+
for i, name in enumerate(categories)
|
|
207
|
+
]
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
def build_items(items, kind, warnings):
|
|
211
|
+
if not items:
|
|
212
|
+
return []
|
|
213
|
+
if not isinstance(items, list):
|
|
214
|
+
raise SpecError("%s 必须是数组" % kind)
|
|
215
|
+
result = []
|
|
216
|
+
for index, item in enumerate(items, start=1):
|
|
217
|
+
if not isinstance(item, dict):
|
|
218
|
+
raise SpecError("%s[%d] 必须是对象" % (kind, index))
|
|
219
|
+
name = as_text(item.get("name"))
|
|
220
|
+
if not name:
|
|
221
|
+
raise SpecError("%s[%d].name 缺失" % (kind, index))
|
|
222
|
+
row = {
|
|
223
|
+
"name": name,
|
|
224
|
+
"description": as_text(item.get("rule") or item.get("description")),
|
|
225
|
+
"sort": index,
|
|
226
|
+
}
|
|
227
|
+
limit = item.get("limit")
|
|
228
|
+
if limit is not None and as_text(limit) != "":
|
|
229
|
+
if is_number(limit):
|
|
230
|
+
row["maxScore"] = float(limit)
|
|
231
|
+
else:
|
|
232
|
+
warnings.append("%s 第 %d 项上限「%s」不是数字,未写入 maxScore" % (kind, index, limit))
|
|
233
|
+
result.append(row)
|
|
234
|
+
return result
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
def build_step_operators(rater, where):
|
|
238
|
+
operate = as_text(rater) or "directSuperior"
|
|
239
|
+
if RESOURCE_ID_RE.fullmatch(operate):
|
|
240
|
+
# 具名评分人:operateType=fixedMan + operater=人员 id(保持字符串,18 位 Long 转数字会丢精度)
|
|
241
|
+
return [{"operateType": "fixedMan", "operater": operate}]
|
|
242
|
+
operate = OPERATE_ALIASES.get(operate, operate)
|
|
243
|
+
if operate not in OPERATE_TYPES:
|
|
244
|
+
raise SpecError(
|
|
245
|
+
"%s:评分人「%s」不是受支持的写法——关系型评分人填 %s 之一,具名人员直接填数字人员 id"
|
|
246
|
+
% (where, operate, "/".join(OPERATE_TYPES)))
|
|
247
|
+
return [{"operateType": operate}]
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
def build_steps(spec, row_modes, warnings):
|
|
251
|
+
raw_steps = spec.get("scoreSteps")
|
|
252
|
+
if raw_steps in (None, []):
|
|
253
|
+
raw_steps = [{"rater": "directSuperior", "weight": 100}]
|
|
254
|
+
if not isinstance(raw_steps, list):
|
|
255
|
+
raise SpecError("scoreSteps 必须是数组")
|
|
256
|
+
|
|
257
|
+
kps_steps = []
|
|
258
|
+
step_weights = []
|
|
259
|
+
for step_index, step in enumerate(raw_steps):
|
|
260
|
+
if not isinstance(step, dict):
|
|
261
|
+
raise SpecError("scoreSteps[%d] 必须是对象" % step_index)
|
|
262
|
+
weight = step.get("weight", 100)
|
|
263
|
+
if not is_number(weight):
|
|
264
|
+
raise SpecError("scoreSteps[%d].weight 必须是数字" % step_index)
|
|
265
|
+
weight = float(weight)
|
|
266
|
+
kps_steps.append({
|
|
267
|
+
"sort": step_index + 1,
|
|
268
|
+
"stepType": "kpikps",
|
|
269
|
+
"raterType": "all",
|
|
270
|
+
"checkKps": False,
|
|
271
|
+
"checkSignature": False,
|
|
272
|
+
"stepWeight": weight,
|
|
273
|
+
"stepOperators": build_step_operators(step.get("rater"), "评分节点 %d" % (step_index + 1)),
|
|
274
|
+
})
|
|
275
|
+
for data_row, mode in row_modes:
|
|
276
|
+
step_weights.append({
|
|
277
|
+
"indicatorMode": mode,
|
|
278
|
+
"indicatorRow": data_row,
|
|
279
|
+
"stepIndex": step_index,
|
|
280
|
+
"weight": weight,
|
|
281
|
+
})
|
|
282
|
+
return kps_steps, step_weights
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
def build_penalty_steps(items, step_type, kind, warnings):
|
|
286
|
+
"""items 是规格里的原始 plus/minus 列表(build_items 裁剪后的行不含 rater)。
|
|
287
|
+
|
|
288
|
+
plusStepList / minusStepList 是方案级节点,整组加减分项共用一个评分人:
|
|
289
|
+
取第一项填写的 rater,其余项填了不同评分人时告警,不静默丢弃。
|
|
290
|
+
"""
|
|
291
|
+
if not items:
|
|
292
|
+
return []
|
|
293
|
+
raters = [as_text(item.get("rater")) if isinstance(item, dict) else "" for item in items]
|
|
294
|
+
rater = next((value for value in raters if value), "directSuperior")
|
|
295
|
+
for index, value in enumerate(raters, start=1):
|
|
296
|
+
if value and value != rater:
|
|
297
|
+
warnings.append("%s:整组加减分项共用一个评分人,第 %d 项的评分人「%s」未采用(已按「%s」)" % (kind, index, value, rater))
|
|
298
|
+
return [{
|
|
299
|
+
"sort": 1,
|
|
300
|
+
"stepType": step_type,
|
|
301
|
+
"stepOperators": build_step_operators(rater, kind),
|
|
302
|
+
}]
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
def build_request(spec, warnings):
|
|
306
|
+
if not isinstance(spec, dict):
|
|
307
|
+
raise SpecError("spec 必须是 JSON 对象")
|
|
308
|
+
|
|
309
|
+
name = as_text(spec.get("name"))
|
|
310
|
+
if not name:
|
|
311
|
+
raise SpecError("name(方案名称)缺失")
|
|
312
|
+
|
|
313
|
+
date_type = as_text(spec.get("dateType"))
|
|
314
|
+
if date_type not in DATE_TYPES:
|
|
315
|
+
raise SpecError("dateType 必须是 %s 之一(当前「%s」)" % ("/".join(DATE_TYPES), date_type))
|
|
316
|
+
|
|
317
|
+
targets = spec.get("targets")
|
|
318
|
+
if not isinstance(targets, list) or not targets:
|
|
319
|
+
raise SpecError("targets 不能为空(至少一个考核对象)")
|
|
320
|
+
links = []
|
|
321
|
+
for index, target in enumerate(targets, start=1):
|
|
322
|
+
if not isinstance(target, dict):
|
|
323
|
+
raise SpecError("targets[%d] 必须是对象" % index)
|
|
324
|
+
target_type = target.get("targetType")
|
|
325
|
+
if target_type is None:
|
|
326
|
+
raise SpecError("targets[%d].targetType 缺失" % index)
|
|
327
|
+
ident = as_text(target.get("id"))
|
|
328
|
+
if ident == "":
|
|
329
|
+
if int(target_type) == 11:
|
|
330
|
+
ident = "0"
|
|
331
|
+
else:
|
|
332
|
+
raise SpecError("targets[%d].id 缺失(targetType=%s)" % (index, target_type))
|
|
333
|
+
links.append({
|
|
334
|
+
"id": ident,
|
|
335
|
+
"targetType": int(target_type),
|
|
336
|
+
**({"name": as_text(target["name"])} if as_text(target.get("name")) else {}),
|
|
337
|
+
})
|
|
338
|
+
|
|
339
|
+
data, categories = build_basic_data(spec, warnings)
|
|
340
|
+
check_types = build_check_types(categories, data, warnings)
|
|
341
|
+
|
|
342
|
+
plus_list = build_items(spec.get("plus"), "plus", warnings)
|
|
343
|
+
minus_list = build_items(spec.get("minus"), "minus", warnings)
|
|
344
|
+
|
|
345
|
+
row_modes = [(row["dataRow"], row["indicatorMode"]) for row in data]
|
|
346
|
+
kps_steps, step_weights = build_steps(spec, row_modes, warnings)
|
|
347
|
+
|
|
348
|
+
teffect = as_text(spec.get("teffectTime")) or datetime.date.today().isoformat()
|
|
349
|
+
if not as_text(spec.get("teffectTime")):
|
|
350
|
+
warnings.append("生效日期未提供,已默认当天 %s(可在方案设置页修改)" % teffect)
|
|
351
|
+
|
|
352
|
+
request = {
|
|
353
|
+
"name": name,
|
|
354
|
+
"dateType": date_type,
|
|
355
|
+
"total": spec.get("total", 100),
|
|
356
|
+
"teffectTime": teffect,
|
|
357
|
+
"schemeLinkList": links,
|
|
358
|
+
"basicHeader": STANDARD_HEADER,
|
|
359
|
+
"basicData": data,
|
|
360
|
+
"kpsStepList": kps_steps,
|
|
361
|
+
"stepWeightList": step_weights,
|
|
362
|
+
**FIXED_DEFAULTS,
|
|
363
|
+
}
|
|
364
|
+
if as_text(spec.get("failureTime")):
|
|
365
|
+
request["failureTime"] = as_text(spec["failureTime"])
|
|
366
|
+
if check_types:
|
|
367
|
+
request["openCheckType"] = True
|
|
368
|
+
request["checkType"] = check_types
|
|
369
|
+
if plus_list:
|
|
370
|
+
request["includePlusItem"] = True
|
|
371
|
+
request["plusList"] = plus_list
|
|
372
|
+
request["plusStepList"] = build_penalty_steps(spec.get("plus"), "kpiplus", "加分项评分人", warnings)
|
|
373
|
+
if minus_list:
|
|
374
|
+
request["includeMinusItem"] = True
|
|
375
|
+
request["minusList"] = minus_list
|
|
376
|
+
request["minusStepList"] = build_penalty_steps(spec.get("minus"), "kpiminus", "减分项评分人", warnings)
|
|
377
|
+
if spec.get("interview") is True:
|
|
378
|
+
request["includeInterviewItem"] = True
|
|
379
|
+
request["interviewStepList"] = [{
|
|
380
|
+
"sort": 1,
|
|
381
|
+
"stepType": "interview",
|
|
382
|
+
"stepOperators": [{"operateType": "directSuperior"}],
|
|
383
|
+
}]
|
|
384
|
+
if as_text(spec.get("id")):
|
|
385
|
+
request["id"] = as_text(spec["id"])
|
|
386
|
+
if as_text(spec.get("detailId")):
|
|
387
|
+
request["detailId"] = as_text(spec["detailId"])
|
|
388
|
+
|
|
389
|
+
extras = spec.get("extras")
|
|
390
|
+
if extras is not None:
|
|
391
|
+
if not isinstance(extras, dict):
|
|
392
|
+
raise SpecError("extras 必须是对象")
|
|
393
|
+
request.update(extras)
|
|
394
|
+
|
|
395
|
+
return request
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
def _fmt(value):
|
|
399
|
+
return ("%g" % value) if isinstance(value, float) else str(value)
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
def main():
|
|
403
|
+
parser = argparse.ArgumentParser(description="精简方案规格 → 完整 SchemeEditReq")
|
|
404
|
+
parser.add_argument("--spec", required=True, help="规格 JSON 路径,或 - 从 stdin 读")
|
|
405
|
+
parser.add_argument("--out", required=True, help="输出完整请求体的路径(UTF-8)")
|
|
406
|
+
parser.add_argument("--pretty", action="store_true", help="缩进输出(默认紧凑,体积更小)")
|
|
407
|
+
parser.add_argument("--with-confirm", metavar="CONTINUATION",
|
|
408
|
+
help="生成 apply 入参:追加 confirm=true 与 continuation(复用同一份规格,避免手写第二次)")
|
|
409
|
+
args = parser.parse_args()
|
|
410
|
+
|
|
411
|
+
try:
|
|
412
|
+
if args.spec == "-":
|
|
413
|
+
raw = sys.stdin.read()
|
|
414
|
+
else:
|
|
415
|
+
if not os.path.isfile(args.spec):
|
|
416
|
+
raise SpecError("规格文件不存在:%s" % args.spec)
|
|
417
|
+
with open(args.spec, "r", encoding="utf-8-sig") as handle:
|
|
418
|
+
raw = handle.read()
|
|
419
|
+
try:
|
|
420
|
+
spec = json.loads(raw)
|
|
421
|
+
except ValueError as error:
|
|
422
|
+
raise SpecError("规格 JSON 无法解析:%s" % error)
|
|
423
|
+
|
|
424
|
+
warnings = []
|
|
425
|
+
request = build_request(spec, warnings)
|
|
426
|
+
if args.with_confirm:
|
|
427
|
+
request["confirm"] = True
|
|
428
|
+
request["continuation"] = args.with_confirm
|
|
429
|
+
|
|
430
|
+
out_dir = os.path.dirname(os.path.abspath(args.out))
|
|
431
|
+
if out_dir and not os.path.isdir(out_dir):
|
|
432
|
+
os.makedirs(out_dir, exist_ok=True)
|
|
433
|
+
with open(args.out, "w", encoding="utf-8") as handle:
|
|
434
|
+
if args.pretty:
|
|
435
|
+
json.dump(request, handle, ensure_ascii=False, indent=2)
|
|
436
|
+
else:
|
|
437
|
+
json.dump(request, handle, ensure_ascii=False, separators=(",", ":"))
|
|
438
|
+
except SpecError as error:
|
|
439
|
+
print(json.dumps({"ok": False, "error": str(error)}, ensure_ascii=False))
|
|
440
|
+
sys.exit(2)
|
|
441
|
+
|
|
442
|
+
weights = [float(row["weight"]) for row in request["basicData"] if row.get("weight")]
|
|
443
|
+
summary = {
|
|
444
|
+
"name": request["name"],
|
|
445
|
+
"indicatorCount": len(request["basicData"]),
|
|
446
|
+
"weightSum": round(sum(weights), 2) if weights else None,
|
|
447
|
+
"plusCount": len(request.get("plusList", [])),
|
|
448
|
+
"minusCount": len(request.get("minusList", [])),
|
|
449
|
+
"scoreStepCount": len(request.get("kpsStepList", [])),
|
|
450
|
+
"teffectTime": request.get("teffectTime"),
|
|
451
|
+
}
|
|
452
|
+
print(json.dumps({
|
|
453
|
+
"ok": True,
|
|
454
|
+
"out": os.path.abspath(args.out),
|
|
455
|
+
"warnings": warnings,
|
|
456
|
+
"summary": summary,
|
|
457
|
+
}, ensure_ascii=False))
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
if __name__ == "__main__":
|
|
461
|
+
main()
|
|
@@ -21,6 +21,7 @@ shell 执行本脚本,不要改用宿主内置文档解析工具(无表格
|
|
|
21
21
|
- pdf 每页前输出 "--- 第N页 ---" 分隔
|
|
22
22
|
"""
|
|
23
23
|
import argparse
|
|
24
|
+
import json
|
|
24
25
|
import os
|
|
25
26
|
import re
|
|
26
27
|
import subprocess
|
|
@@ -61,6 +62,37 @@ def md_table(rows):
|
|
|
61
62
|
return "\n".join(lines)
|
|
62
63
|
|
|
63
64
|
|
|
65
|
+
def extract_tables(markdown):
|
|
66
|
+
"""从生成的 Markdown 里把管道表拆成结构化行(供 --json 直接组参,避免模型再解析一遍表格)。"""
|
|
67
|
+
tables = []
|
|
68
|
+
current = None
|
|
69
|
+
last_line = ""
|
|
70
|
+
for line in markdown.splitlines():
|
|
71
|
+
stripped = line.strip()
|
|
72
|
+
if stripped.startswith("|") and stripped.endswith("|"):
|
|
73
|
+
cells = [cell.strip().replace("\\|", "|") for cell in stripped.strip("|").split("|")]
|
|
74
|
+
if current is None:
|
|
75
|
+
title = ""
|
|
76
|
+
matched = re.match(r"^\*\*(.+?)\*\*$", last_line)
|
|
77
|
+
if matched:
|
|
78
|
+
title = matched.group(1).strip()
|
|
79
|
+
current = {"title": title, "headers": cells, "rows": []}
|
|
80
|
+
elif all(cell and set(cell) <= set("-: ") for cell in cells):
|
|
81
|
+
continue # 分隔行 |---|---|
|
|
82
|
+
else:
|
|
83
|
+
current["rows"].append(cells)
|
|
84
|
+
else:
|
|
85
|
+
if current is not None:
|
|
86
|
+
current["index"] = len(tables) + 1
|
|
87
|
+
tables.append(current)
|
|
88
|
+
current = None
|
|
89
|
+
last_line = stripped
|
|
90
|
+
if current is not None:
|
|
91
|
+
current["index"] = len(tables) + 1
|
|
92
|
+
tables.append(current)
|
|
93
|
+
return tables
|
|
94
|
+
|
|
95
|
+
|
|
64
96
|
# ---------------------------------------------------------------- docx
|
|
65
97
|
def parse_docx(path):
|
|
66
98
|
try:
|
|
@@ -445,6 +477,7 @@ def main():
|
|
|
445
477
|
ap = argparse.ArgumentParser(description="考核文档解析为 Markdown")
|
|
446
478
|
ap.add_argument("file", help="doc / docx / xls / xlsx / pdf 文件路径")
|
|
447
479
|
ap.add_argument("-o", "--output", help="输出到文件(默认打印到标准输出)")
|
|
480
|
+
ap.add_argument("--json", action="store_true", help="输出结构化 JSON(表格按行列拆开),供直接组参")
|
|
448
481
|
args = ap.parse_args()
|
|
449
482
|
|
|
450
483
|
if not os.path.isfile(args.file):
|
|
@@ -471,6 +504,14 @@ def main():
|
|
|
471
504
|
out("ERROR: 解析失败: %s: %s" % (type(e).__name__, e))
|
|
472
505
|
sys.exit(1)
|
|
473
506
|
|
|
507
|
+
if args.json:
|
|
508
|
+
markdown_chars = len(content)
|
|
509
|
+
content = json.dumps({
|
|
510
|
+
"file": os.path.abspath(args.file),
|
|
511
|
+
"charCount": markdown_chars,
|
|
512
|
+
"tables": extract_tables(content),
|
|
513
|
+
}, ensure_ascii=False)
|
|
514
|
+
|
|
474
515
|
if args.output:
|
|
475
516
|
with open(args.output, "w", encoding="utf-8") as f:
|
|
476
517
|
f.write(content)
|
|
@@ -120,6 +120,16 @@ weaver-work-cli --json plan run <operation> --input-json '{"key":"value"}'
|
|
|
120
120
|
- `partial` / `write_uncertain`:立即停止写入流程,做一次只读回查后向用户说明。
|
|
121
121
|
- 其它业务失败看 stderr JSON 的 `error.type` / `error.subtype` / `error.message`。
|
|
122
122
|
|
|
123
|
+
## 不支持的能力(`plan schema` 里查不到,别试)
|
|
124
|
+
|
|
125
|
+
下列 operation **不在本技能里**(manifest `withheldOperations`,运行时被过滤):调用只会拿回「未知操作」。带 `.eb` 后缀的条目表示「eb 链路的等价接口**从未提供**」,**不是**另一种写法。用户需求落到这些点上时按「替代做法」回答,禁止声称已完成。
|
|
126
|
+
|
|
127
|
+
| operation | 为什么没有 | 替代做法 |
|
|
128
|
+
| --- | --- | --- |
|
|
129
|
+
| `plan.report.withdraw.eb` | eb 链路撤回报告通过 ESB 动作流「eb撤回报告」实现,源资料未给动作流 `uniqueIndent`,本模块无法触发 | 用 `esb` 模块的 `esb.input-format` + `esb.trigger.prepare/apply` 触发同名动作流(需要动作流 ID 或唯一值);或引导用户到报告页撤回 |
|
|
130
|
+
| `plan.report.remind.eb` | eb 链路源资料没有报告提交提醒接口 | `plan.report.remind.*` **仅标准版链路**可用;eb 租户请说明不支持,由用户在群里或页面上人工提醒 |
|
|
131
|
+
| `plan.comment.list.eb` | eb 链路源资料没有报告评论接口 | `plan.comment.list` **仅标准版链路**可用;eb 租户引导用户点开 `detailUrl` 在页面看评论 |
|
|
132
|
+
|
|
123
133
|
## 不在范围
|
|
124
134
|
|
|
125
135
|
- 不绕过 CLI 直接 curl/fetch 访问 E10 接口,不自行拼报告侧接口路径。
|
|
@@ -682,13 +682,13 @@
|
|
|
682
682
|
}
|
|
683
683
|
},
|
|
684
684
|
"artifactBaseline": {
|
|
685
|
-
"aggregateSha256": "
|
|
685
|
+
"aggregateSha256": "c49a87df31c30b5f5193cc6d2038a582791bbefc748233834dceced045a6606e",
|
|
686
686
|
"files": [
|
|
687
687
|
{
|
|
688
688
|
"path": "src/shortcuts/plan/index.ts",
|
|
689
689
|
"role": "generated-cli",
|
|
690
|
-
"size":
|
|
691
|
-
"sha256": "
|
|
690
|
+
"size": 7284,
|
|
691
|
+
"sha256": "ab1699b5560ac00cebdcb66b7e648f8a1b3a7df7283916bfc8eb67be4361aea6"
|
|
692
692
|
},
|
|
693
693
|
{
|
|
694
694
|
"path": "src/shortcuts/plan/manifest.ts",
|
|
@@ -765,14 +765,14 @@
|
|
|
765
765
|
{
|
|
766
766
|
"path": "src/shortcuts/index.ts",
|
|
767
767
|
"role": "generated-cli",
|
|
768
|
-
"size":
|
|
769
|
-
"sha256": "
|
|
768
|
+
"size": 9118,
|
|
769
|
+
"sha256": "4642783bcc0a1d3c97c4eb8517edcc877ef72f10eb79c772aaf417c60d9c8adc"
|
|
770
770
|
},
|
|
771
771
|
{
|
|
772
772
|
"path": "skills/weaver-e10-plan/SKILL.md",
|
|
773
773
|
"role": "generated-skill-entry",
|
|
774
|
-
"size":
|
|
775
|
-
"sha256": "
|
|
774
|
+
"size": 16970,
|
|
775
|
+
"sha256": "c1dcc3ad2749e60e66551d2227a3985d27cba24031a59b6c18fdc83e54552b19"
|
|
776
776
|
},
|
|
777
777
|
{
|
|
778
778
|
"path": "skill-template/product.json",
|
|
@@ -819,14 +819,14 @@
|
|
|
819
819
|
{
|
|
820
820
|
"path": "docs/_catalog.md",
|
|
821
821
|
"role": "generated-doc",
|
|
822
|
-
"size":
|
|
823
|
-
"sha256": "
|
|
822
|
+
"size": 7031,
|
|
823
|
+
"sha256": "bed5dbdfc4a121f7b2d68f8593fbc4a72a3abdc52143b692c0186f21b00f097f"
|
|
824
824
|
},
|
|
825
825
|
{
|
|
826
826
|
"path": "docs/SKILL.md",
|
|
827
827
|
"role": "generated-doc",
|
|
828
|
-
"size":
|
|
829
|
-
"sha256": "
|
|
828
|
+
"size": 5784,
|
|
829
|
+
"sha256": "7f9eb1e2cc7bd32b335f692ead56c52d3340c662c00edda102ffe2aab6511b6d"
|
|
830
830
|
},
|
|
831
831
|
{
|
|
832
832
|
"path": "test/business/plan-operations.test.ts",
|
|
@@ -843,8 +843,8 @@
|
|
|
843
843
|
{
|
|
844
844
|
"path": "skill-template/business-info.json",
|
|
845
845
|
"role": "generated-template",
|
|
846
|
-
"size":
|
|
847
|
-
"sha256": "
|
|
846
|
+
"size": 12193,
|
|
847
|
+
"sha256": "3764edc2a7c8597fc45873cacd4f8b4c0a99a24dddc27d19be9cabe892012c18"
|
|
848
848
|
}
|
|
849
849
|
]
|
|
850
850
|
},
|
|
@@ -196,11 +196,11 @@ weaver-work-cli --json fna run fna.loan.main.list --input-json '{"current":1,"pa
|
|
|
196
196
|
|
|
197
197
|
## 不在本 Skill 范围
|
|
198
198
|
|
|
199
|
-
- 借款「确认已还 confirmRepay
|
|
199
|
+
- 借款「确认已还 confirmRepay」(`fna.loan.confirm.repay`)、核销明细等页面按钮能力(源资料未提供接口路径与确认条件)→ 见 `weaver-work-cli fna schema` 的 `withheldOperations`,不得编造 operation 或直连接口。用户说「我要还款/确认已还」时如实说明需到借款管理页面操作;催还提醒用 `fna.loan.remind.repay.prepare/apply`,**不要**用提醒冒充还款。
|
|
200
200
|
- 免菜单权限的 `getEnabledTemplateNoAuth`(跳过 e-builder 与模板执行权限过滤,会返回当前人无权执行的模板)不封装(`fna.budget.template.noauth` 已在 `withheldOperations`):要模板清单只用 `fna.budget.template.list`,不得改为直连接口换取更全的结果。
|
|
201
201
|
- AI 规则预审只按流程已配置的规则执行:不支持新增/编辑/删除规则或规则设置(`fna.audit.rule.configure` 已在 withheldOperations),也不回传 `formDataList` 明细(只给 `id/refId/title` 摘要)。
|
|
202
202
|
- 想用 `userId` 查看他人单据:该字段是**执行人**身份,不是查看权限,越权使用一律禁止。
|
|
203
203
|
- 报销报表 AI 问答只接受自然语言 `userInput`:不接受自写 SQL、不暴露 AI 生成的 SQL,也没有 `scope=self/dept/tenant` 之类的强制过滤参数(服务端未提供)。
|
|
204
204
|
- 报表返回无权限后改调其它报销/借款/预算/流程接口拼装同一份报表,或自写 SQL 绕过权限边界——属于越权尝试,一律禁止。
|
|
205
|
-
- 姓名/流程名 → ID
|
|
205
|
+
- 姓名/流程名 → ID 的解析(`fna.resolve.person.workflow`)、创建借款单/预付单/事前申请单等需联动工作流的写流程(未提供接口依据)。人员姓名可先用 `weaver-e10-hrm` 解析成 ID;流程 ID 由用户或调用方提供,禁止猜。
|
|
206
206
|
- 其它模块(发票票夹、人事、流程待办)请路由到对应 Skill,不在此重复实现。
|