weaver-work-cli 0.1.71 → 0.1.75
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-5P33NAUN.js → archive-OZJ6PYUR.js} +14 -9
- package/dist/chunks/{archive-oa-YTY5D7DG.js → archive-oa-BHL5RK2F.js} +10 -7
- package/dist/chunks/{asset-3Q5MFQBX.js → asset-HKRFRQR2.js} +10 -7
- package/dist/chunks/{asset-idle-PQPNYIS7.js → asset-idle-GGIR4KE7.js} +7 -4
- package/dist/chunks/{attachment-content-7CN7JB6B.js → attachment-content-4OV65NK5.js} +3 -3
- package/dist/chunks/{blog-MFHHK6ZR.js → blog-HYDP4DV3.js} +10 -7
- package/dist/chunks/{caizhilian-OZ435AYW.js → caizhilian-JS4RQZ6Z.js} +10 -7
- package/dist/chunks/{calendar-TNJXS5UC.js → calendar-SWRY4DIT.js} +10 -7
- package/dist/chunks/chunk-257JXJGD.js +30 -0
- package/dist/chunks/{chunk-FRMDHZSN.js → chunk-2AUFKU2D.js} +11 -11
- package/dist/chunks/chunk-2BZ7TY4M.js +49 -0
- package/dist/chunks/{chunk-WM33BSIL.js → chunk-2QCCXPNU.js} +1 -1
- package/dist/chunks/{chunk-X2C5CGGM.js → chunk-4FCBEWNB.js} +74 -68
- package/dist/chunks/{chunk-YN5SD4TX.js → chunk-5D2V7ZAN.js} +2 -2
- package/dist/chunks/{chunk-UPVAQJKS.js → chunk-5QUTQHXF.js} +282 -158
- package/dist/chunks/{chunk-SKWKCLJX.js → chunk-5ZJGPEIB.js} +2 -2
- package/dist/chunks/chunk-7DE3VMZD.js +35 -0
- package/dist/chunks/chunk-BNKUHN4N.js +1346 -0
- package/dist/chunks/{chunk-VMVMEIL3.js → chunk-BSR5TM7U.js} +4 -4
- package/dist/chunks/{chunk-EJLP63UO.js → chunk-ERZY6GYL.js} +7 -3
- package/dist/chunks/{chunk-OFCF23FY.js → chunk-FEZK536Z.js} +25 -9
- package/dist/chunks/{chunk-Q3EXRNB4.js → chunk-I6NOHKEK.js} +1 -1
- package/dist/chunks/{chunk-OZ7CJC7W.js → chunk-J7FAAHWH.js} +2 -2
- package/dist/chunks/{chunk-6MMSLE6K.js → chunk-JJONWB5N.js} +16 -2
- package/dist/chunks/chunk-JOY3HZXL.js +467 -0
- package/dist/chunks/{chunk-2DNCKZRX.js → chunk-JWF2R6EQ.js} +0 -462
- package/dist/chunks/{chunk-ICNUOWLL.js → chunk-KEA4XQPO.js} +4 -4
- package/dist/chunks/chunk-KINXYJXM.js +205 -0
- package/dist/chunks/{chunk-VJWVB55R.js → chunk-KWJEICD4.js} +2 -2
- package/dist/chunks/{chunk-P3AFNAJ6.js → chunk-LJI4N6FV.js} +1 -1
- package/dist/chunks/{chunk-DRJYPXKC.js → chunk-MXCRKXOP.js} +48 -6
- package/dist/chunks/{chunk-OPTJ6IF7.js → chunk-NWYHCZTY.js} +1 -1
- package/dist/chunks/chunk-OJ4JPD25.js +428 -0
- package/dist/chunks/{chunk-B4NINGP2.js → chunk-OQCK5SAU.js} +2 -2
- package/dist/chunks/chunk-PG5YSNYY.js +1166 -0
- package/dist/chunks/{chunk-LU2SPJYY.js → chunk-QJWVYOOV.js} +2 -2
- package/dist/chunks/{chunk-SUWR5QEG.js → chunk-QVKRNL7L.js} +287 -305
- package/dist/chunks/chunk-SU6IJD6D.js +49 -0
- package/dist/chunks/{chunk-MD5RXRI3.js → chunk-TA2RBUTH.js} +2 -2
- package/dist/chunks/{chunk-SSS75WXW.js → chunk-U6Y32KEV.js} +2 -2
- package/dist/chunks/chunk-UUJK76HV.js +209 -0
- package/dist/chunks/{chunk-GB2MCJPG.js → chunk-VOMDD2C5.js} +1 -1
- package/dist/chunks/chunk-Y3C6MDL7.js +28 -0
- package/dist/chunks/chunk-ZM7RN2IM.js +38 -0
- package/dist/chunks/{chunk-G7ZM2VOX.js → chunk-ZUB4M4N3.js} +38 -36
- package/dist/chunks/{chunk-XLSJC6JZ.js → chunk-ZWIMLT6P.js} +8 -7
- package/dist/chunks/cli-FULPXIKJ.js +226 -0
- package/dist/chunks/commands-BNWFNTD3.js +70 -0
- package/dist/chunks/{conflict-Y4PXZ2YQ.js → conflict-5BKCDV2F.js} +2 -2
- package/dist/chunks/{contract-C3BGUMBM.js → contract-WI23OXVC.js} +12446 -5964
- package/dist/chunks/{cowork-2AWG4QLA.js → cowork-DZBBVNMQ.js} +11 -8
- package/dist/chunks/{create-flow-LOUOK46Z.js → create-flow-7ZRBRKX7.js} +6 -6
- package/dist/chunks/{data-BSFYMXVO.js → data-PAZVE6QE.js} +6 -3
- package/dist/chunks/{ebuilder-form-LAAMTD2Y.js → ebuilder-form-5SQXIGXN.js} +9 -6
- package/dist/chunks/{ehr-36KEX5SH.js → ehr-CX5F4ZAU.js} +27 -19
- package/dist/chunks/{entry-mode-6N2IGCS4.js → entry-mode-I2BYNONZ.js} +3 -3
- package/dist/chunks/{env-QYLS3EB3.js → env-ZAQZ7EHN.js} +2 -2
- package/dist/chunks/{esb-PTYS3E67.js → esb-DQTXDIBF.js} +10 -7
- package/dist/chunks/{factory-LPFPKZ4T.js → factory-XRI6KZ7H.js} +1 -1
- package/dist/chunks/{fna-JNHCLRDE.js → fna-FK6HQVJL.js} +13 -8
- package/dist/chunks/{group-chat-QP2WX4QJ.js → group-chat-MLWNYM2P.js} +3 -3
- package/dist/chunks/{host-C2BLBIID.js → host-3EPREGXS.js} +6 -3
- package/dist/chunks/{host-QXFKQXNX.js → host-J74JGYAW.js} +6 -3
- package/dist/chunks/{host-57LSRSE7.js → host-KUMU3DDK.js} +6 -3
- package/dist/chunks/{host-7BVR7CQ3.js → host-MEC4VQZA.js} +6 -3
- package/dist/chunks/{host-NS36QFLR.js → host-T6NNQGVZ.js} +6 -3
- package/dist/chunks/{host-K2ZKNXME.js → host-VI7Q45PM.js} +6 -3
- package/dist/chunks/{hrm-FSGO4NSH.js → hrm-KKVAW4P5.js} +8 -5
- package/dist/chunks/{im-2BFGS2XO.js → im-47CIWQNL.js} +7 -4
- package/dist/chunks/{invoice-JKLTTHSZ.js → invoice-CDYRBNIG.js} +21 -16
- package/dist/chunks/{jiuchuanhui-PTABJE7V.js → jiuchuanhui-M7QTRHZK.js} +17 -10
- package/dist/chunks/{lazy-dispatch-YN2ZP3CS.js → lazy-dispatch-FKQJZFI5.js} +22 -8
- package/dist/chunks/{mail-YNO7ZZUK.js → mail-NRBS5N6Y.js} +11 -8
- package/dist/chunks/{meeting-NIDHDBCB.js → meeting-WC5LD3IO.js} +22 -18
- package/dist/chunks/{minute-doc-G3QAT7DE.js → minute-doc-OQUMDTKG.js} +4 -4
- package/dist/chunks/{okr-QC52G6AJ.js → okr-EHKSKMPL.js} +10 -7
- package/dist/chunks/{operations-MQV32ITT.js → operations-V5VM5MS2.js} +7 -4
- package/dist/chunks/{performance-3MQ3AHDQ.js → performance-ZJADXJPN.js} +6 -3
- package/dist/chunks/{plan-ISINIEPY.js → plan-OTDNBDJ7.js} +10 -7
- package/dist/chunks/{project-IJ6DVKT7.js → project-4XVBQ3HX.js} +10 -7
- package/dist/chunks/{reception-3H5LUG2I.js → reception-3FAHOOH7.js} +118 -45
- package/dist/chunks/{recruit-stage-MIOJXP6W.js → recruit-stage-3WTVWW2K.js} +1056 -191
- package/dist/chunks/register-SQOPIR2G.js +16 -0
- package/dist/chunks/{registry-3S7AVMXR.js → registry-F4YFZLOD.js} +7 -3
- package/dist/chunks/registry-NBTBXR4L.js +30 -0
- package/dist/chunks/{registry-NHHKOEU3.js → registry-TJGCVRCW.js} +7 -4
- package/dist/chunks/{room-recommend-IOKBJVYP.js → room-recommend-KL62XB2Y.js} +4 -4
- package/dist/chunks/root-YZG2TS5W.js +16 -0
- package/dist/chunks/{schedule-IB6EUARH.js → schedule-XOISYUPB.js} +4 -4
- package/dist/chunks/{smart-extract-N2TK3CEF.js → smart-extract-UYGNV3BM.js} +15 -7
- package/dist/chunks/update-AV5VOXGY.js +13 -0
- package/dist/chunks/{workflow-RINBAL2M.js → workflow-V54LJPXL.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 +12 -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 +11 -5
- package/dist/shortcuts/ehr/operations/recruit-short-cache.js +6 -2
- package/dist/shortcuts/ehr/operations/recruit-write.js +10 -9
- package/dist/shortcuts/ehr/operations/recruit.js +390 -196
- package/dist/shortcuts/ehr/operations/shared.js +51 -0
- 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/index.js +1 -1
- 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/constants.js +22 -0
- package/dist/shortcuts/reception/index.js +4 -0
- package/dist/shortcuts/reception/manifest.js +16 -2
- package/dist/shortcuts/reception/operations/doc.js +24 -11
- package/dist/shortcuts/reception/operations/docrender.js +18 -1
- package/dist/shortcuts/reception/operations/render-assets.js +93 -22
- package/dist/shortcuts/recruit-stage/context.js +22 -8
- package/dist/shortcuts/recruit-stage/index.js +16 -3
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +20 -11
- package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +1 -1
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +467 -26
- package/dist/shortcuts/recruit-stage/operations/list.js +73 -2
- package/dist/shortcuts/recruit-stage/operations/profile.js +13 -5
- package/dist/shortcuts/recruit-stage/operations/registry.js +18 -2
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +363 -54
- package/dist/shortcuts/recruit-stage/operations/search.js +80 -16
- package/dist/shortcuts/recruit-stage/operations/shortlist.js +124 -0
- package/dist/shortcuts/recruit-stage/shared.js +174 -56
- 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 +44 -4
- package/docs/contract.md +6 -1
- package/docs/e10-auth.md +25 -7
- package/docs/operation-manual.md +15 -0
- package/package.json +2 -2
- package/scripts/pysite/__pycache__/sitecustomize.cpython-314.pyc +0 -0
- package/skill-template/business-info.json +28 -0
- package/skill-template/domains/jinchengda.md +13 -1
- 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-jucailin/SKILL.md +7 -3
- package/skills/weaver-e10-jucailin/references/recruit-output-links.md +33 -0
- package/skills/weaver-e10-jucailin/references/recruit-write.md +2 -0
- 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-reception-flow/SKILL.md +97 -41
- package/skills/weaver-e10-reception-flow/references/guide.md +3 -1
- package/skills/weaver-e10-recruit-stage/SKILL.md +533 -137
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +103 -62
- package/skills/weaver-e10-recruit-stage/lib/interview-conflict.mjs +282 -0
- package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +331 -0
- package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +865 -0
- package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +162 -11
- 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 +6 -2
- package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +26 -21
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +33 -27
- 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 +5 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +22 -5
- package/skills/weaver-e10-recruit-stage/references/recruit-failure-fallback.md +42 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +11 -7
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +87 -50
- 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 +48 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-maint.md +45 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +17 -11
- package/skills/weaver-e10-recruit-stage/references/recruit-my-positions.md +8 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +162 -31
- package/skills/weaver-e10-recruit-stage/references/recruit-platform-compat.md +55 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +75 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-creator.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +12 -8
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +8 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +80 -46
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +11 -7
- package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +12 -8
- package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +10 -6
- package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +15 -11
- package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +7 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +7 -3
- package/skills/weaver-e10-recruit-stage/templates/candidate-evidence.html +119 -0
- package/skills/weaver-e10-recruit-stage/templates/interview-summary.html +322 -0
- package/skills/weaver-e10-recruit-stage/templates/match-report.html +166 -76
- 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/references/source-manifest.json +5 -5
- package/dist/chunks/chunk-MZVQKQP5.js +0 -2849
- package/dist/chunks/registry-3GQRYP2R.js +0 -27
- package/skills/weaver-e10-jucailin/references/source-manifest.json +0 -152
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
2
|
+
import { basename, resolve } from 'node:path';
|
|
3
|
+
import { contractValidationError } from '../errors.js';
|
|
4
|
+
import { readZip } from '../ooxml/zip.js';
|
|
5
|
+
import { mapCompany, pickOption } from './elements-build.js';
|
|
6
|
+
import { BUILTIN } from './elements-spec.js';
|
|
7
|
+
import { resolveFlow } from './flow.js';
|
|
8
|
+
import { runGeneratedSubmit, str } from './generated-submit.js';
|
|
9
|
+
import { inspectAmount } from './money.js';
|
|
10
|
+
import { defaultContractTitle, normalizeContractFileName } from './quote-recognize.js';
|
|
11
|
+
import { assertQuoteRefsResolved, resolveQuoteRefs } from './quote-ref.js';
|
|
12
|
+
/**
|
|
13
|
+
* ⑨ 智能起草收口:`contract.draft.submit`。
|
|
14
|
+
*
|
|
15
|
+
* 一键完成「上传 + 装配要素 + 存识别记录」,返回可直接 `open_web` 打开的合同智能页地址。
|
|
16
|
+
* 通用收口动作已下沉到 `generated-submit.ts`,与报价单链路 `quotescreen.submit` 共用同一份实现;
|
|
17
|
+
* 本文件只负责**起草链路特有的入参体检与要素装配**。
|
|
18
|
+
*
|
|
19
|
+
* 与报价单链路的三处差别(改代码前先读):
|
|
20
|
+
* 1. 不写「关联流程类型」——那是报价审批链路的专用字段,起草合同没有关联报价流程;
|
|
21
|
+
* 2. 要素值全部来自起草时确认的当事人 / 金额 / 标的,**不回读自己生成的正文**;
|
|
22
|
+
* 3. 购买方式 / 签约形式 / 签署日期 / 签订方式允许用户显式指定,值必须落在本流程选项表内,
|
|
23
|
+
* 否则明确报错,不静默丢弃(字段 ID 是 19 位长整数,跨流程不可复用)。
|
|
24
|
+
*/
|
|
25
|
+
const ALLOWED_TABS = ['Extract', 'Summary', 'RiskReview', 'Credit', 'termComponent'];
|
|
26
|
+
const DEFAULT_SIGN_FORM = '纸质签署';
|
|
27
|
+
const DEFAULT_SIGN_DATE = '默认合同办理当天';
|
|
28
|
+
const DEFAULT_SIGN_WAY = '我方先盖章';
|
|
29
|
+
const DEFAULT_BUY_MODE = '直签';
|
|
30
|
+
function formatMoney(value) {
|
|
31
|
+
return value.toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
32
|
+
}
|
|
33
|
+
/** 选项类字段:用户显式给值但不在选项表内时直接报错,绝不静默丢弃。 */
|
|
34
|
+
function optionOf(spec, key, value, userProvided, label) {
|
|
35
|
+
const table = spec.options?.[key] ?? {};
|
|
36
|
+
const picked = pickOption(table, value);
|
|
37
|
+
if (picked !== null)
|
|
38
|
+
return picked;
|
|
39
|
+
if (userProvided) {
|
|
40
|
+
throw contractValidationError('draft_option_invalid', `${label}「${value}」不在本流程(${spec.workflowId})的选项表内;可选值:${Object.keys(table).join(' / ') || '无'}`, { key, value, options: Object.keys(table) });
|
|
41
|
+
}
|
|
42
|
+
return spec.defaults?.[key] ?? '';
|
|
43
|
+
}
|
|
44
|
+
function defaultBackground(title, customer, totalAmount) {
|
|
45
|
+
const raw = title.replace(/\.docx$/iu, '').trim();
|
|
46
|
+
const withoutCustomer = raw.includes(customer) ? raw.split(customer).join('').trim() : raw;
|
|
47
|
+
const subject = withoutCustomer.replace(/(?:购买)?合同$/iu, '').trim() || '软件产品及实施服务';
|
|
48
|
+
return `${customer}采购${subject},合同总金额 ${formatMoney(totalAmount)} 元。`;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* 起草大纲 → 流程表单要素。
|
|
52
|
+
*
|
|
53
|
+
* 与 `buildQuoteFieldResults` 的口径一致(选项传选项 ID、origin 只给逐字可溯的值),
|
|
54
|
+
* **但不写关联流程类型**;字段是否存在于本流程由 `spec.fields` 决定,不存在就跳过。
|
|
55
|
+
*/
|
|
56
|
+
export function buildDraftFieldResults(args) {
|
|
57
|
+
const { spec, fileId, verified } = args;
|
|
58
|
+
const fieldOf = (key) => spec.fields[key] ?? spec.selects?.[key] ?? '';
|
|
59
|
+
const results = [];
|
|
60
|
+
const add = (fieldInfo, value, reason, origin) => {
|
|
61
|
+
if (!fieldInfo || !value)
|
|
62
|
+
return;
|
|
63
|
+
results.push({ fieldInfo, reason, value, origin });
|
|
64
|
+
};
|
|
65
|
+
const originOf = (text) => {
|
|
66
|
+
const value = String(text ?? '').trim();
|
|
67
|
+
if (!verified || !value || !fileId)
|
|
68
|
+
return null;
|
|
69
|
+
return [`${fileId}#${value}`];
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* 选项类字段:**字段不存在就整段跳过**(各流程字段表不同),存在时才校验取值。
|
|
73
|
+
* 例如契约锁流程没有 ourCompany / background 字段,不能因为默认值不在选项表里就报错。
|
|
74
|
+
*/
|
|
75
|
+
const addOption = (key, value, defaultValue, label, reasonUser, reasonDefault) => {
|
|
76
|
+
const field = fieldOf(key);
|
|
77
|
+
if (!field)
|
|
78
|
+
return;
|
|
79
|
+
add(field, optionOf(spec, key, value, value !== defaultValue, label), value === defaultValue ? reasonDefault : reasonUser, null);
|
|
80
|
+
};
|
|
81
|
+
// ① 流程标题:与合同文件同名(文件名 / 标题 / 上传名 / URL name 四处一致)
|
|
82
|
+
add(fieldOf('title'), args.contractTitle, '取合同名称,与合同文件同名', originOf(args.contractTitle));
|
|
83
|
+
// ② 购买方式:默认直签;用户显式指定时必须在选项表内
|
|
84
|
+
addOption('buyMode', args.buyMode, DEFAULT_BUY_MODE, '购买方式', `用户指定购买方式:${args.buyMode}`, '起草默认直签(用户未指定)');
|
|
85
|
+
// ③ 最终用户:取对方当事人全称(客户即最终用户)
|
|
86
|
+
add(fieldOf('finalUser'), args.customer, '取对方当事人全称,客户即最终用户', originOf(args.customer));
|
|
87
|
+
// ④ 合同总金额:起草时确认的金额
|
|
88
|
+
add(fieldOf('totalAmount'), String(args.totalAmount), '取起草时确认的合同总金额', originOf(formatMoney(args.totalAmount)));
|
|
89
|
+
// ⑤ 合同背景说明:标的 + 金额归纳
|
|
90
|
+
add(fieldOf('background'), args.background, '按起草标的与金额归纳', originOf(args.background));
|
|
91
|
+
// ⑥ 我方签约公司:映射成下拉选项 ID,不直接填全称(契约锁流程无此字段,整段跳过)
|
|
92
|
+
if (fieldOf('ourCompany')) {
|
|
93
|
+
const companyLabel = mapCompany(args.ourCompanyName) || args.ourCompanyName;
|
|
94
|
+
const companyOption = pickOption(spec.options?.ourCompany ?? {}, companyLabel);
|
|
95
|
+
if (companyOption === null) {
|
|
96
|
+
throw contractValidationError('draft_option_invalid', `我方签约主体「${args.ourCompanyName}」不在本流程的签约公司选项内;可选值:${Object.keys(spec.options?.ourCompany ?? {}).join(' / ') || '无'}`, { ourCompany: args.ourCompanyName });
|
|
97
|
+
}
|
|
98
|
+
add(fieldOf('ourCompany'), companyOption, `乙方签约主体:${args.ourCompanyName}`, originOf(args.ourCompanyName));
|
|
99
|
+
}
|
|
100
|
+
// ⑦ 签约形式:用户可指定,默认纸质签署(技术性默认值,不是业务判断)
|
|
101
|
+
addOption('signForm', args.signForm, DEFAULT_SIGN_FORM, '签约形式', `用户指定签约形式:${args.signForm}`, '未约定电子签,按纸质签署(技术性默认值)');
|
|
102
|
+
// ⑧ 合同签署日期:新客户流程字段键是 signDate,其余三个流程是 signDateType
|
|
103
|
+
const signDateField = fieldOf('signDate') || fieldOf('signDateType');
|
|
104
|
+
const signDateOptionsKey = spec.options?.signDate ? 'signDate' : 'signDateType';
|
|
105
|
+
if (signDateField) {
|
|
106
|
+
add(signDateField, optionOf(spec, signDateOptionsKey, args.signDateType, args.signDateType !== DEFAULT_SIGN_DATE, '合同签署日期'), args.signDateType === DEFAULT_SIGN_DATE
|
|
107
|
+
? '未约定固定签署日,按默认合同办理当天(技术性默认值)'
|
|
108
|
+
: `用户指定签署日期:${args.signDateType}`, null);
|
|
109
|
+
}
|
|
110
|
+
// ⑨ 合同签订方式:默认我方先盖章
|
|
111
|
+
addOption('signWay', args.signWay, DEFAULT_SIGN_WAY, '合同签订方式', `用户指定签订方式:${args.signWay}`, '未特别约定签署顺序,按我方先盖章(技术性默认值)');
|
|
112
|
+
// ⑩ 合同类型:仅部分流程存在该字段;用户不传就不写,传了必须在选项表内
|
|
113
|
+
if (args.contractType && fieldOf('contractType')) {
|
|
114
|
+
add(fieldOf('contractType'), optionOf(spec, 'contractType', args.contractType, true, '合同类型'), `用户指定合同类型:${args.contractType}`, null);
|
|
115
|
+
}
|
|
116
|
+
// ⛔ 不写「关联流程类型」:报价单链路专用(报价审批及伙伴授权书流程),起草链路没有关联报价流程。
|
|
117
|
+
return results;
|
|
118
|
+
}
|
|
119
|
+
export const contractDraftSubmitOperations = [
|
|
120
|
+
{
|
|
121
|
+
name: 'contract.draft.submit',
|
|
122
|
+
async execute(input, context) {
|
|
123
|
+
const refOutcome = resolveQuoteRefs(input);
|
|
124
|
+
assertQuoteRefsResolved(refOutcome, (errors) => `入参有 ${errors.length} 处 $quote 引用取不到值:`
|
|
125
|
+
+ errors.slice(0, 5).map((item) => `${item.at}(${item.ref}:${item.reason})`).join(';')
|
|
126
|
+
+ '。请核对文件路径与字段路径。');
|
|
127
|
+
input = refOutcome.value;
|
|
128
|
+
const contractPath = str(input.contractPath);
|
|
129
|
+
if (!contractPath) {
|
|
130
|
+
throw contractValidationError('contract_path_required', '缺少 contractPath(contract.draft.build 产出的合同 docx 绝对路径)');
|
|
131
|
+
}
|
|
132
|
+
const resolvedPath = resolve(contractPath);
|
|
133
|
+
if (!existsSync(resolvedPath)) {
|
|
134
|
+
throw contractValidationError('contract_path_not_found', `合同文件不存在:${resolvedPath}`);
|
|
135
|
+
}
|
|
136
|
+
try {
|
|
137
|
+
const entries = readZip(readFileSync(resolvedPath));
|
|
138
|
+
if (!entries.some((entry) => entry.name === 'word/document.xml')) {
|
|
139
|
+
throw new Error('缺少 word/document.xml');
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
catch (error) {
|
|
143
|
+
throw contractValidationError('draft_docx_invalid', `合同文件不是有效的 docx(起草链路只接受 contract.draft.build 的产物):${error instanceof Error ? error.message : String(error)}`, { contractPath: resolvedPath });
|
|
144
|
+
}
|
|
145
|
+
const flowInput = str(input.flow);
|
|
146
|
+
if (!flowInput) {
|
|
147
|
+
throw contractValidationError('flow_required', '缺少 flow(契约锁 / 新客户 / 常规二次销售 / 老客户增值);类型须由编排层在起草时确认后传入');
|
|
148
|
+
}
|
|
149
|
+
const flow = resolveFlow(flowInput).key;
|
|
150
|
+
const spec = BUILTIN[flow];
|
|
151
|
+
if (!spec) {
|
|
152
|
+
throw contractValidationError('flow_not_builtin', `流程「${flow}」无内置字段表:${Object.keys(BUILTIN).join(' / ')}`);
|
|
153
|
+
}
|
|
154
|
+
const customerName = str(input.customerName);
|
|
155
|
+
if (!customerName) {
|
|
156
|
+
throw contractValidationError('customer_required', '缺少 customerName(对方当事人全称,即最终用户)');
|
|
157
|
+
}
|
|
158
|
+
const amountCheck = inspectAmount(input.totalAmount);
|
|
159
|
+
if (amountCheck.reason === 'placeholder') {
|
|
160
|
+
throw contractValidationError('total_amount_placeholder', `totalAmount 是平台脱敏占位符「${amountCheck.placeholder}」。请改传 contract.draft.build 返回的纯数值 totalAmount 后重跑;`
|
|
161
|
+
+ '⚠️ 这不是「金额拿不到」,不要向用户索要金额。', { raw: amountCheck.raw, placeholder: amountCheck.placeholder });
|
|
162
|
+
}
|
|
163
|
+
if (amountCheck.reason !== 'ok' || amountCheck.value === null || amountCheck.value <= 0) {
|
|
164
|
+
throw contractValidationError('total_amount_required', `totalAmount 必须是大于 0 的纯数值(可直接传 contract.draft.build 返回的 totalAmount),收到「${amountCheck.raw}」`, { raw: amountCheck.raw });
|
|
165
|
+
}
|
|
166
|
+
const totalAmount = amountCheck.value;
|
|
167
|
+
const tab = str(input.tab) || 'Extract';
|
|
168
|
+
if (!ALLOWED_TABS.includes(tab)) {
|
|
169
|
+
throw contractValidationError('tab_invalid', `tab 只允许 ${ALLOWED_TABS.join(' / ')},收到:${tab}`);
|
|
170
|
+
}
|
|
171
|
+
const contractTitle = str(input.contractTitle) || defaultContractTitle(customerName);
|
|
172
|
+
// 上传名优先级:显式 fileName → contractTitle(manifest 口径:合同名称同时决定上传名)→ out 文件名。
|
|
173
|
+
// 最后一步仍走 normalizeContractFileName,把「合同.docx」这类通用名纠正成规范名。
|
|
174
|
+
const fileName = normalizeContractFileName(str(input.fileName) || str(input.contractTitle) || basename(resolvedPath), customerName);
|
|
175
|
+
const ourCompanyName = str(input.ourCompany) || '泛微网络科技股份有限公司';
|
|
176
|
+
const background = str(input.background) || defaultBackground(contractTitle, customerName, totalAmount);
|
|
177
|
+
const verified = input.verified === undefined ? true : input.verified === true;
|
|
178
|
+
return runGeneratedSubmit({
|
|
179
|
+
input,
|
|
180
|
+
context,
|
|
181
|
+
contractPath: resolvedPath,
|
|
182
|
+
flow,
|
|
183
|
+
fileName,
|
|
184
|
+
tab,
|
|
185
|
+
parallelStepLabel: 'flow.launch+assemble(parallel)',
|
|
186
|
+
assemble: async (pendingFileId) => {
|
|
187
|
+
const results = buildDraftFieldResults({
|
|
188
|
+
flow,
|
|
189
|
+
spec,
|
|
190
|
+
customer: customerName,
|
|
191
|
+
contractTitle,
|
|
192
|
+
totalAmount,
|
|
193
|
+
ourCompanyName,
|
|
194
|
+
background,
|
|
195
|
+
buyMode: str(input.buyMode) || DEFAULT_BUY_MODE,
|
|
196
|
+
signForm: str(input.signForm) || DEFAULT_SIGN_FORM,
|
|
197
|
+
signDateType: str(input.signDateType) || DEFAULT_SIGN_DATE,
|
|
198
|
+
signWay: str(input.signWay) || DEFAULT_SIGN_WAY,
|
|
199
|
+
contractType: str(input.contractType),
|
|
200
|
+
fileId: str(input.reuseFileId) || pendingFileId,
|
|
201
|
+
verified,
|
|
202
|
+
});
|
|
203
|
+
if (!results.length) {
|
|
204
|
+
throw contractValidationError('draft_elements_empty', '本流程没有任何可装配的要素(核对 flow 与 customerName 后重跑)', { flow, customerName });
|
|
205
|
+
}
|
|
206
|
+
const payload = {
|
|
207
|
+
flow,
|
|
208
|
+
workflowId: spec.workflowId,
|
|
209
|
+
attachmentIds: str(input.reuseFileId) || pendingFileId,
|
|
210
|
+
attachmentFieldId: spec.attachmentFieldId,
|
|
211
|
+
attachmentFileId: str(input.reuseFileId) || pendingFileId,
|
|
212
|
+
recognizeResult: {
|
|
213
|
+
isSuccess: true,
|
|
214
|
+
mainTable: { rows: [{ mainDataId: 1, fieldResults: results }] },
|
|
215
|
+
subTables: [],
|
|
216
|
+
},
|
|
217
|
+
};
|
|
218
|
+
return {
|
|
219
|
+
kind: 'ok',
|
|
220
|
+
payload,
|
|
221
|
+
attachmentFieldId: spec.attachmentFieldId,
|
|
222
|
+
expectedTitle: contractTitle,
|
|
223
|
+
workflowIdFallback: spec.workflowId,
|
|
224
|
+
};
|
|
225
|
+
},
|
|
226
|
+
});
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
];
|
|
@@ -114,9 +114,10 @@ const ALLOWED_TABS = ['Extract', 'Summary', 'RiskReview', 'Credit', 'termCompone
|
|
|
114
114
|
* 此前只写死 `[0]`,导致随附文件已上传却不进页面地址)。
|
|
115
115
|
*/
|
|
116
116
|
export function buildContractPageUrl(args) {
|
|
117
|
-
const { baseUrl, workflowId, files, aiExtraId, tab } = args;
|
|
117
|
+
const { baseUrl, workflowId, files, aiExtraId, tab, contractTermIds = '' } = args;
|
|
118
118
|
if (!baseUrl || !workflowId || !files.length)
|
|
119
119
|
return '';
|
|
120
|
+
const termIds = contractTermIds.trim();
|
|
120
121
|
const parts = [
|
|
121
122
|
`${baseUrl.replace(/\/+$/u, '')}/sp/contract/business/ai-contract`,
|
|
122
123
|
`?aiid=${CONTRACT_AIID}`,
|
|
@@ -125,7 +126,7 @@ export function buildContractPageUrl(args) {
|
|
|
125
126
|
`&authModule=workflow`,
|
|
126
127
|
`&mode=edit`,
|
|
127
128
|
`&module=WEA_FORM`,
|
|
128
|
-
`&contractTermIds
|
|
129
|
+
`&contractTermIds=${termIds ? encodeURIComponent(termIds) : ''}`,
|
|
129
130
|
];
|
|
130
131
|
files.forEach((file, index) => {
|
|
131
132
|
const name = encodeURIComponent(file.fileName);
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { contractValidationError } from '../errors.js';
|
|
2
|
+
import { buildContractPageUrl } from './first-screen.js';
|
|
3
|
+
import { resolveFlow } from './flow.js';
|
|
4
|
+
import { resolveOperation } from './op-resolver.js';
|
|
5
|
+
/**
|
|
6
|
+
* 「正文由本进程产出」链路的共用收口(2026-11-28)。
|
|
7
|
+
*
|
|
8
|
+
* 两条链路共用同一份实现,避免第二份「上传 + 装配 + 存记录 + 拼地址」各自漂移:
|
|
9
|
+
* - 报价单转合同:`contract.quotescreen.submit`(模板回填产物);
|
|
10
|
+
* - 智能起草:`contract.draft.submit`(无模板起草产物)。
|
|
11
|
+
*
|
|
12
|
+
* 分工(红线):
|
|
13
|
+
* 1. 本文件只做**收口编排**:上传 → 装配要素 → 回填附件 → 存识别记录 → 拼智能页地址。
|
|
14
|
+
* 各链路的入参体检与要素装配放在各自文件里(`quote-submit.ts` / `draft-submit.ts`),
|
|
15
|
+
* 不在这里做业务判断。
|
|
16
|
+
* 2. 外来合同不走这里:用户直接上传的现成合同必须先 `triage.extract` 读正文,跳读必漏抽。
|
|
17
|
+
* 3. 写失败不降级:与 `firstscreen.run` 的「降级不阻断」不同,本链路是收口写操作,
|
|
18
|
+
* `save-recognize-record` 失败直接抛错,绝不编造 `aiExtraId` 或返回「已生成」。
|
|
19
|
+
*/
|
|
20
|
+
/** 收口链路通用的文本归一:字符串 trim,有限数值转字符串,其余为空串。 */
|
|
21
|
+
export function str(value) {
|
|
22
|
+
if (typeof value === 'string')
|
|
23
|
+
return value.trim();
|
|
24
|
+
if (typeof value === 'number' && Number.isFinite(value))
|
|
25
|
+
return String(value);
|
|
26
|
+
return '';
|
|
27
|
+
}
|
|
28
|
+
/** 进程内调用其它 operation,返回其 `data`;失败直接抛错。 */
|
|
29
|
+
export async function callOperation(name, input, context) {
|
|
30
|
+
const operation = resolveOperation(name);
|
|
31
|
+
const result = await operation.execute(input, context);
|
|
32
|
+
return (result?.data ?? {});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* 合同智能页地址(`/sp/contract/business/ai-contract?...`)。
|
|
36
|
+
*
|
|
37
|
+
* 实现只有一份:`first-screen.ts` 的 `buildContractPageUrl`。此处只做转出,
|
|
38
|
+
* 供 `quote-submit` 等调用方以 `buildAiContractUrl` 的名字复用。
|
|
39
|
+
*/
|
|
40
|
+
export function buildAiContractUrl(args) {
|
|
41
|
+
return buildContractPageUrl(args);
|
|
42
|
+
}
|
|
43
|
+
const ATTACHMENT_FIELD_SUFFIX = '#合同正文及附件';
|
|
44
|
+
/**
|
|
45
|
+
* 收口识别结果:补附件 ID、剔除附件字段行。
|
|
46
|
+
*
|
|
47
|
+
* 与 `first-screen.finalizeRecognizePayload` 同口径(附件只由流程组件 customParams 透传),
|
|
48
|
+
* 这里不 import 那个文件,避免「编排层 → 收口层」的反向依赖。
|
|
49
|
+
*/
|
|
50
|
+
function finalizeRecognizePayload(payload, fileId) {
|
|
51
|
+
payload.attachmentIds = fileId;
|
|
52
|
+
payload.attachmentFileId = fileId;
|
|
53
|
+
try {
|
|
54
|
+
const rows = (payload.recognizeResult?.mainTable?.rows ?? []);
|
|
55
|
+
for (const row of rows) {
|
|
56
|
+
const list = Array.isArray(row.fieldResults) ? row.fieldResults : [];
|
|
57
|
+
row.fieldResults = list.filter((item) => !String(item?.fieldInfo ?? '').endsWith(ATTACHMENT_FIELD_SUFFIX));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
catch {
|
|
61
|
+
// 结构异常时保持原样,交由 save-recognize-record 的入参校验报错
|
|
62
|
+
}
|
|
63
|
+
return payload;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* 执行收口:上传 ∥ 装配 → 存识别记录 → 拼页面地址。
|
|
67
|
+
*
|
|
68
|
+
* 上传与装配并非严格并发:装配的 `origin` 前缀必须是本次真实 fileId,因此上传先完成;
|
|
69
|
+
* `parallelStepLabel` 只用于说明「这两步原本是同一批动作」,不用于改执行顺序。
|
|
70
|
+
*/
|
|
71
|
+
export async function runGeneratedSubmit(args) {
|
|
72
|
+
const { input, context, contractPath, flow, fileName, tab } = args;
|
|
73
|
+
const session = await context.host.getSession();
|
|
74
|
+
const baseUrl = session.baseUrl.replace(/\/+$/u, '');
|
|
75
|
+
const steps = [];
|
|
76
|
+
// ── ① 上传:复用已有 workflow fileId,或走流程通道上传(唯一合法通道)
|
|
77
|
+
const reuseFileId = str(input.reuseFileId);
|
|
78
|
+
let uploadData = {};
|
|
79
|
+
let fileId = reuseFileId;
|
|
80
|
+
if (fileId) {
|
|
81
|
+
steps.push({ step: 'flow.launch', ok: true, note: `reused workflow fileId ${fileId}` });
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
uploadData = await callOperation('contract.flow.launch', { flow, path: contractPath, fileName }, context);
|
|
85
|
+
fileId = str(uploadData.file?.fileId);
|
|
86
|
+
steps.push({
|
|
87
|
+
step: 'flow.launch',
|
|
88
|
+
ok: Boolean(fileId),
|
|
89
|
+
note: fileId || '未返回 fileId',
|
|
90
|
+
});
|
|
91
|
+
if (!fileId) {
|
|
92
|
+
throw contractValidationError('upload_failed', '流程通道上传未返回 workflow fileId,无法继续收口(不要改用其它上传通道)', { flow, fileName });
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
// 三个流程 ID 同源:flow.launch 的 workflowId 最可信;复用分支回退到内置预设。
|
|
96
|
+
const workflowId = str(uploadData.workflowId) || resolveFlow(flow).workflowId;
|
|
97
|
+
const launchFieldId = str(uploadData.fieldId);
|
|
98
|
+
// ── ② 装配要素(各链路自己的字段表;附件 ID 由收口层统一回填)
|
|
99
|
+
const assembled = await args.assemble(fileId);
|
|
100
|
+
if (assembled.kind === 'abort') {
|
|
101
|
+
steps.push({ step: 'assemble', ok: false, note: str(assembled.data?.reason) || 'needs confirm' });
|
|
102
|
+
return {
|
|
103
|
+
status: 'COMPLETE',
|
|
104
|
+
data: {
|
|
105
|
+
ok: false,
|
|
106
|
+
...assembled.data,
|
|
107
|
+
flow,
|
|
108
|
+
workflowId,
|
|
109
|
+
fileId,
|
|
110
|
+
fileName,
|
|
111
|
+
uploadedFile: uploadData.file ?? null,
|
|
112
|
+
workflowUrl: uploadData.url ?? null,
|
|
113
|
+
steps,
|
|
114
|
+
parallelStepLabel: args.parallelStepLabel ?? null,
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
steps.push({ step: 'assemble', ok: true, note: 'fieldResults built' });
|
|
119
|
+
const attachmentFieldId = str(assembled.attachmentFieldId) || launchFieldId;
|
|
120
|
+
const expectedTitle = str(assembled.expectedTitle);
|
|
121
|
+
const payload = finalizeRecognizePayload({ ...assembled.payload }, fileId);
|
|
122
|
+
payload.flow = str(payload.flow) || flow;
|
|
123
|
+
payload.workflowId = str(payload.workflowId) || workflowId;
|
|
124
|
+
if (attachmentFieldId)
|
|
125
|
+
payload.attachmentFieldId = attachmentFieldId;
|
|
126
|
+
// ── ③ 存识别记录(写操作,失败即失败,不降级、不重试)
|
|
127
|
+
const saved = await callOperation('contract.flow.save-recognize-record', payload, context);
|
|
128
|
+
const aiExtraId = str(saved.aiExtraId);
|
|
129
|
+
if (!aiExtraId) {
|
|
130
|
+
throw contractValidationError('ai_extra_id_missing', '识别记录保存成功但未返回 aiExtraId,无法打开合同智能页');
|
|
131
|
+
}
|
|
132
|
+
steps.push({ step: 'save-recognize-record', ok: true, note: aiExtraId });
|
|
133
|
+
// ── ④ 合同智能页地址(页面是最终交付物)
|
|
134
|
+
// 条款引用:逗号拼接的数字 ID;manifest 两个 submit 都声明了该入参,传了就必须进地址,不能静默丢。
|
|
135
|
+
const contractTermIds = str(input.contractTermIds);
|
|
136
|
+
if (contractTermIds && !/^\d+(?:,\d+)*$/u.test(contractTermIds)) {
|
|
137
|
+
throw contractValidationError('contract_term_ids_invalid', `contractTermIds 必须是逗号拼接的数字条款 ID(如 "123,456"),收到「${contractTermIds}」`, { contractTermIds });
|
|
138
|
+
}
|
|
139
|
+
const pageUrl = buildContractPageUrl({
|
|
140
|
+
baseUrl,
|
|
141
|
+
workflowId,
|
|
142
|
+
files: [{ fileId, fileName }],
|
|
143
|
+
aiExtraId,
|
|
144
|
+
tab,
|
|
145
|
+
contractTermIds,
|
|
146
|
+
});
|
|
147
|
+
if (!pageUrl) {
|
|
148
|
+
throw contractValidationError('page_url_failed', '缺少 workflowId / fileId,无法拼装合同智能页地址', { workflowId, fileId });
|
|
149
|
+
}
|
|
150
|
+
return {
|
|
151
|
+
status: 'COMPLETE',
|
|
152
|
+
data: {
|
|
153
|
+
ok: true,
|
|
154
|
+
flow,
|
|
155
|
+
workflowId,
|
|
156
|
+
fileId,
|
|
157
|
+
fileName,
|
|
158
|
+
expectedFileName: fileName,
|
|
159
|
+
expectedTitle: expectedTitle || null,
|
|
160
|
+
attachmentFieldId: str(saved.attachmentFieldId) || attachmentFieldId || null,
|
|
161
|
+
attachmentFileId: str(saved.attachmentFileId) || fileId,
|
|
162
|
+
aiExtraId,
|
|
163
|
+
customParams: saved.customParams ?? { aiExtraId, openSource: 'xiaoE' },
|
|
164
|
+
pageUrl,
|
|
165
|
+
url: pageUrl,
|
|
166
|
+
workflowUrl: uploadData.url ?? null,
|
|
167
|
+
uploadedFile: uploadData.file ?? null,
|
|
168
|
+
originFixups: saved.originFixups ?? [],
|
|
169
|
+
steps,
|
|
170
|
+
parallelStepLabel: args.parallelStepLabel ?? null,
|
|
171
|
+
tab,
|
|
172
|
+
note: '合同已上传到流程通道、要素已存成识别记录;用 open_web 打开 pageUrl 即合同智能页',
|
|
173
|
+
},
|
|
174
|
+
};
|
|
175
|
+
}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
2
|
+
import { dirname } from 'node:path';
|
|
3
|
+
import { contractValidationError } from '../errors.js';
|
|
4
|
+
import { ReportSpecError, defaultSpec, validateSpec, } from '../data/report-spec.js';
|
|
5
|
+
import { RENDERERS, REPORT_STYLE, esc, formatCount, formatMoney, formatPercent, formatPointDelta, formatYoy, } from '../data/report-renderers.js';
|
|
6
|
+
/**
|
|
7
|
+
* 合同经营统计报表(2026-11-28 新增;同日改为「spec + 渲染器」架构)。
|
|
8
|
+
*
|
|
9
|
+
* 分层(详见 data/report-spec.ts 顶部说明):
|
|
10
|
+
* 口径层 data/metric-catalog.ts(指标定义/单位/聚合)
|
|
11
|
+
* 视图层 data/report-spec.ts(spec 校验 + 默认决策表)
|
|
12
|
+
* 渲染层 data/report-renderers.ts(kpi / grouped-bar / line / hbar / table)
|
|
13
|
+
* 本文件(编排):stat 结果 + spec → 整页 HTML → 落盘
|
|
14
|
+
*
|
|
15
|
+
* 固定的是**积木与视觉规范**,可变的是 spec:不传 spec 时按决策表自动生成,
|
|
16
|
+
* 传了就在白名单内按调用方的编排渲染。⛔ 不认识的 kind / metric 一律报错,不猜。
|
|
17
|
+
*/
|
|
18
|
+
export { formatCount, formatMoney, formatPercent, formatPointDelta, formatYoy };
|
|
19
|
+
function isRecord(value) {
|
|
20
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
21
|
+
}
|
|
22
|
+
function str(value) {
|
|
23
|
+
return typeof value === 'string' ? value : typeof value === 'number' ? String(value) : '';
|
|
24
|
+
}
|
|
25
|
+
function stamp(date) {
|
|
26
|
+
const pad = (value) => String(value).padStart(2, '0');
|
|
27
|
+
return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())} ${pad(date.getHours())}:${pad(date.getMinutes())}`;
|
|
28
|
+
}
|
|
29
|
+
/** 从 CLI envelope / stat 结果 JSON 中取出统计载荷。 */
|
|
30
|
+
export function extractStatPayload(raw) {
|
|
31
|
+
if (!isRecord(raw))
|
|
32
|
+
throw contractValidationError('stat_payload_invalid', '统计数据必须是 JSON 对象');
|
|
33
|
+
if (isRecord(raw.data) && isRecord(raw.data.window)) {
|
|
34
|
+
return raw.data;
|
|
35
|
+
}
|
|
36
|
+
if (isRecord(raw.window))
|
|
37
|
+
return raw;
|
|
38
|
+
throw contractValidationError('stat_payload_invalid', '统计数据缺少 window 字段:请传 contract.ledger.stat 的输出(或其 data 节点)');
|
|
39
|
+
}
|
|
40
|
+
function parseSpec(input) {
|
|
41
|
+
if (input === undefined || input === null || input === '')
|
|
42
|
+
return undefined;
|
|
43
|
+
let raw = input;
|
|
44
|
+
if (typeof input === 'string') {
|
|
45
|
+
try {
|
|
46
|
+
raw = JSON.parse(input);
|
|
47
|
+
}
|
|
48
|
+
catch {
|
|
49
|
+
throw contractValidationError('report_spec_invalid', 'spec 不是合法 JSON');
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
if (!isRecord(raw))
|
|
53
|
+
throw contractValidationError('report_spec_invalid', 'spec 必须是对象');
|
|
54
|
+
if (!Array.isArray(raw.blocks))
|
|
55
|
+
throw contractValidationError('report_spec_invalid', 'spec.blocks 必须是数组');
|
|
56
|
+
return raw;
|
|
57
|
+
}
|
|
58
|
+
/** 渲染固定骨架的统计报表 HTML(纯本地、可测试)。 */
|
|
59
|
+
export function renderLedgerReport(payload, options = {}) {
|
|
60
|
+
const win = payload.window ?? {};
|
|
61
|
+
const compareMode = str(win.compare) || 'none';
|
|
62
|
+
const previousMonths = Array.isArray(win.previousMonths) ? win.previousMonths : [];
|
|
63
|
+
const months = Array.isArray(win.months) ? win.months : [];
|
|
64
|
+
const dimension = win.dimension ?? 'month';
|
|
65
|
+
const grain = win.grain ?? 'month';
|
|
66
|
+
let spec;
|
|
67
|
+
try {
|
|
68
|
+
spec = validateSpec(options.spec ?? defaultSpec(payload), payload);
|
|
69
|
+
}
|
|
70
|
+
catch (error) {
|
|
71
|
+
if (error instanceof ReportSpecError) {
|
|
72
|
+
throw contractValidationError(error.code, error.message);
|
|
73
|
+
}
|
|
74
|
+
throw error;
|
|
75
|
+
}
|
|
76
|
+
const title = spec.title?.trim() || options.title?.trim() || '合同经营统计报表';
|
|
77
|
+
const generatedAt = stamp(options.generatedAt ?? new Date());
|
|
78
|
+
const from = str(win.from);
|
|
79
|
+
const to = str(win.to);
|
|
80
|
+
const periodText = from && to ? (from === to ? from : `${from} ~ ${to}`) : months.join('、');
|
|
81
|
+
const compareText = compareMode === 'yoy' && previousMonths.length
|
|
82
|
+
? `同比 ${previousMonths[0]} ~ ${previousMonths[previousMonths.length - 1]}`
|
|
83
|
+
: '未做同比';
|
|
84
|
+
const dimensionText = dimension === 'customer'
|
|
85
|
+
? '按客户'
|
|
86
|
+
: dimension === 'salesman'
|
|
87
|
+
? '按销售经理'
|
|
88
|
+
: dimension === 'date'
|
|
89
|
+
? (grain === 'day' ? '按日(签约日)' : grain === 'year' ? '按年(签约日)' : '按月(签约日)')
|
|
90
|
+
: '按月(业绩年月)';
|
|
91
|
+
const notes = Array.isArray(payload.notes) ? payload.notes.map((item) => String(item)) : [];
|
|
92
|
+
const warnings = Array.isArray(payload.warnings) ? payload.warnings.map((item) => String(item)) : [];
|
|
93
|
+
const incomplete = Array.isArray(payload.incompleteMetrics) ? payload.incompleteMetrics.map((item) => String(item)) : [];
|
|
94
|
+
const labelOf = new Map(payload.metrics.map((metric) => [metric.key, metric.label]));
|
|
95
|
+
const ledgerNames = [
|
|
96
|
+
...new Set((Array.isArray(payload.metrics) ? payload.metrics : []).map((metric) => str(metric.ledger)).filter(Boolean)),
|
|
97
|
+
];
|
|
98
|
+
const warnHtml = warnings.length || incomplete.length
|
|
99
|
+
? `<div class="warn">
|
|
100
|
+
${incomplete.length ? `<div><b>口径不完整:</b>${esc(incomplete.map((key) => labelOf.get(key) ?? key).join('、'))}(对应窗口取数被截断或失败,已显示「—」)</div>` : ''}
|
|
101
|
+
${warnings.map((item) => `<div>${esc(item)}</div>`).join('')}
|
|
102
|
+
</div>`
|
|
103
|
+
: '';
|
|
104
|
+
let blocksHtml;
|
|
105
|
+
try {
|
|
106
|
+
blocksHtml = spec.blocks.map((block) => RENDERERS[block.kind](payload, block)).join('\n');
|
|
107
|
+
}
|
|
108
|
+
catch (error) {
|
|
109
|
+
throw contractValidationError('report_render_failed', `报表渲染失败:${error instanceof Error ? error.message : String(error)}`);
|
|
110
|
+
}
|
|
111
|
+
const notesHtml = notes.length
|
|
112
|
+
? `<section class="card">
|
|
113
|
+
<h2>口径说明</h2>
|
|
114
|
+
<ul class="notes">
|
|
115
|
+
${notes.map((note) => `<li>${esc(note)}</li>`).join('')}
|
|
116
|
+
<li>金额一律以「元」为单位、保留 2 位小数;不折算万元、不四舍五入取整。</li>
|
|
117
|
+
<li>「—」表示该值不可用(窗口被截断、分母为 0 或该月无数据),不代表 0。</li>
|
|
118
|
+
</ul>
|
|
119
|
+
</section>`
|
|
120
|
+
: '';
|
|
121
|
+
const footMeta = [
|
|
122
|
+
`数据来源:${ledgerNames.join('、') || '合同台账'}`,
|
|
123
|
+
`生成于 ${generatedAt}`,
|
|
124
|
+
'weaver-work-cli · contract.ledger.report',
|
|
125
|
+
].join(' · ');
|
|
126
|
+
return `<!DOCTYPE html>
|
|
127
|
+
<html lang="zh-CN">
|
|
128
|
+
<head>
|
|
129
|
+
<meta charset="UTF-8">
|
|
130
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
131
|
+
<title>${esc(title)}</title>
|
|
132
|
+
<style>${REPORT_STYLE}</style>
|
|
133
|
+
</head>
|
|
134
|
+
<body>
|
|
135
|
+
<div class="rp">
|
|
136
|
+
<div class="wrap">
|
|
137
|
+
<header class="hd">
|
|
138
|
+
<h1>${esc(title)}</h1>
|
|
139
|
+
<span class="pill">${esc(periodText)} · ${esc(dimensionText)}</span>
|
|
140
|
+
<span class="pill">${esc(compareText)}</span>
|
|
141
|
+
</header>
|
|
142
|
+
<div class="meta">数据来源:${esc(ledgerNames.join('、') || '合同台账')} · 金额单位:元 · 生成于 ${esc(generatedAt)}</div>
|
|
143
|
+
|
|
144
|
+
${warnHtml}
|
|
145
|
+
${blocksHtml}
|
|
146
|
+
${notesHtml}
|
|
147
|
+
|
|
148
|
+
<div class="foot">${esc(footMeta)}</div>
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
</body>
|
|
152
|
+
</html>
|
|
153
|
+
`;
|
|
154
|
+
}
|
|
155
|
+
export const contractLedgerReportOperation = {
|
|
156
|
+
name: 'contract.ledger.report',
|
|
157
|
+
risk: 'local-file-write',
|
|
158
|
+
inputSchema: {
|
|
159
|
+
type: 'object',
|
|
160
|
+
additionalProperties: false,
|
|
161
|
+
properties: {
|
|
162
|
+
file: { type: 'string', maxLength: 4096, description: 'contract.ledger.stat 的输出 JSON(含 out 写的载荷或 CLI envelope)' },
|
|
163
|
+
data: {
|
|
164
|
+
anyOf: [{ type: 'string' }, { type: 'object' }],
|
|
165
|
+
description: '直接传统计数据(对象或其 JSON 字符串);与 file 二选一',
|
|
166
|
+
},
|
|
167
|
+
out: { type: 'string', minLength: 1, maxLength: 4096, description: '必填:报表 HTML 输出绝对路径' },
|
|
168
|
+
title: { type: 'string', description: '报表标题,默认「合同经营统计报表」' },
|
|
169
|
+
spec: {
|
|
170
|
+
anyOf: [{ type: 'string' }, { type: 'object' }],
|
|
171
|
+
description: '视图 spec(对象或其 JSON 字符串):{blocks:[{kind, metric(s), compare, limit, sort}]};不传按决策表生成',
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
required: ['out'],
|
|
175
|
+
},
|
|
176
|
+
async execute(input) {
|
|
177
|
+
let raw;
|
|
178
|
+
if (typeof input.file === 'string' && input.file) {
|
|
179
|
+
let text;
|
|
180
|
+
try {
|
|
181
|
+
text = readFileSync(input.file, 'utf8').replace(/^\uFEFF/u, '');
|
|
182
|
+
}
|
|
183
|
+
catch {
|
|
184
|
+
throw contractValidationError('file_not_found', `找不到统计结果文件:${input.file}`);
|
|
185
|
+
}
|
|
186
|
+
try {
|
|
187
|
+
raw = JSON.parse(text);
|
|
188
|
+
}
|
|
189
|
+
catch {
|
|
190
|
+
throw contractValidationError('file_invalid', `统计结果不是合法 JSON:${input.file}`);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
else if (input.data !== undefined) {
|
|
194
|
+
if (typeof input.data === 'string') {
|
|
195
|
+
try {
|
|
196
|
+
raw = JSON.parse(input.data);
|
|
197
|
+
}
|
|
198
|
+
catch {
|
|
199
|
+
throw contractValidationError('data_invalid', 'data 不是合法 JSON 字符串');
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
raw = input.data;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
throw contractValidationError('source_required', '请用 file 或 data 指定统计数据来源');
|
|
208
|
+
}
|
|
209
|
+
const payload = extractStatPayload(raw);
|
|
210
|
+
const spec = parseSpec(input.spec);
|
|
211
|
+
const out = String(input.out);
|
|
212
|
+
const html = renderLedgerReport(payload, {
|
|
213
|
+
title: typeof input.title === 'string' ? input.title : undefined,
|
|
214
|
+
...(spec ? { spec } : {}),
|
|
215
|
+
});
|
|
216
|
+
mkdirSync(dirname(out), { recursive: true });
|
|
217
|
+
writeFileSync(out, html, 'utf8');
|
|
218
|
+
const resolved = validateSpec(spec ?? defaultSpec(payload), payload);
|
|
219
|
+
return {
|
|
220
|
+
status: 'COMPLETE',
|
|
221
|
+
data: {
|
|
222
|
+
out,
|
|
223
|
+
bytes: Buffer.byteLength(html, 'utf8'),
|
|
224
|
+
title: resolved.title?.trim() || (typeof input.title === 'string' && input.title.trim() ? input.title.trim() : '合同经营统计报表'),
|
|
225
|
+
blocks: resolved.blocks.map((block) => ({ kind: block.kind, metrics: block.metrics ?? (block.metric ? [block.metric] : []) })),
|
|
226
|
+
window: payload.window ?? null,
|
|
227
|
+
metrics: payload.metrics.map((metric) => metric.key),
|
|
228
|
+
warnings: payload.warnings ?? [],
|
|
229
|
+
incompleteMetrics: payload.incompleteMetrics ?? [],
|
|
230
|
+
},
|
|
231
|
+
};
|
|
232
|
+
},
|
|
233
|
+
};
|