weaver-work-cli 0.1.73 → 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-THZV4ND4.js → archive-OZJ6PYUR.js} +14 -9
- package/dist/chunks/{archive-oa-PQ23OLEV.js → archive-oa-BHL5RK2F.js} +10 -7
- package/dist/chunks/{asset-RGPROZYH.js → asset-HKRFRQR2.js} +10 -7
- package/dist/chunks/{asset-idle-Z2PDX7NA.js → asset-idle-GGIR4KE7.js} +7 -4
- package/dist/chunks/{attachment-content-R3RPVOYE.js → attachment-content-4OV65NK5.js} +3 -3
- package/dist/chunks/{blog-7U3QZPIF.js → blog-HYDP4DV3.js} +10 -7
- package/dist/chunks/{caizhilian-3AB42GCV.js → caizhilian-JS4RQZ6Z.js} +10 -7
- package/dist/chunks/{calendar-KINM64E4.js → calendar-SWRY4DIT.js} +10 -7
- package/dist/chunks/chunk-257JXJGD.js +30 -0
- package/dist/chunks/{chunk-LLCMOZ5L.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-TV46Q4NY.js → chunk-4FCBEWNB.js} +74 -68
- package/dist/chunks/{chunk-NUP4RYZK.js → chunk-5D2V7ZAN.js} +2 -2
- package/dist/chunks/{chunk-DRUND2PJ.js → chunk-5QUTQHXF.js} +225 -152
- package/dist/chunks/{chunk-4BXR6CNB.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-2CHGUYMG.js → chunk-BSR5TM7U.js} +4 -4
- package/dist/chunks/{chunk-4I26YMBY.js → chunk-ERZY6GYL.js} +7 -3
- package/dist/chunks/{chunk-4YXAK6OA.js → chunk-FEZK536Z.js} +12 -7
- package/dist/chunks/{chunk-F4HM25K4.js → chunk-I6NOHKEK.js} +1 -1
- package/dist/chunks/{chunk-JMJBPP4B.js → chunk-J7FAAHWH.js} +2 -2
- package/dist/chunks/{chunk-54ST55IJ.js → chunk-JJONWB5N.js} +11 -1
- package/dist/chunks/chunk-JOY3HZXL.js +467 -0
- package/dist/chunks/{chunk-GWJLAF6B.js → chunk-JWF2R6EQ.js} +0 -462
- package/dist/chunks/{chunk-BWYVS62Z.js → chunk-KEA4XQPO.js} +4 -4
- package/dist/chunks/chunk-KINXYJXM.js +205 -0
- package/dist/chunks/{chunk-IBSJJGXL.js → chunk-KWJEICD4.js} +2 -2
- package/dist/chunks/{chunk-GAMGDNTF.js → chunk-LJI4N6FV.js} +1 -1
- package/dist/chunks/{chunk-IU6UB2TD.js → chunk-MXCRKXOP.js} +48 -6
- package/dist/chunks/{chunk-PAFOLIYQ.js → chunk-NWYHCZTY.js} +1 -1
- package/dist/chunks/chunk-OJ4JPD25.js +428 -0
- package/dist/chunks/{chunk-L7TYG5SN.js → chunk-OQCK5SAU.js} +2 -2
- package/dist/chunks/chunk-PG5YSNYY.js +1166 -0
- package/dist/chunks/{chunk-XZBYRYWX.js → chunk-QJWVYOOV.js} +2 -2
- package/dist/chunks/{chunk-AMAPQVBT.js → chunk-QVKRNL7L.js} +286 -305
- package/dist/chunks/chunk-SU6IJD6D.js +49 -0
- package/dist/chunks/{chunk-ZWLWXHJC.js → chunk-TA2RBUTH.js} +2 -2
- package/dist/chunks/{chunk-6HT73VOI.js → chunk-U6Y32KEV.js} +2 -2
- package/dist/chunks/chunk-UUJK76HV.js +209 -0
- package/dist/chunks/{chunk-R3MK2RBN.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-2XED2FKY.js → chunk-ZUB4M4N3.js} +38 -36
- package/dist/chunks/{chunk-7QFVXP2X.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-VPAR7E6F.js → conflict-5BKCDV2F.js} +2 -2
- package/dist/chunks/{contract-DDXAO2DZ.js → contract-WI23OXVC.js} +12446 -5964
- package/dist/chunks/{cowork-34QCHMDD.js → cowork-DZBBVNMQ.js} +11 -8
- package/dist/chunks/{create-flow-52PU2OBI.js → create-flow-7ZRBRKX7.js} +6 -6
- package/dist/chunks/{data-CLQ62QGD.js → data-PAZVE6QE.js} +6 -3
- package/dist/chunks/{ebuilder-form-W5R7Q22S.js → ebuilder-form-5SQXIGXN.js} +9 -6
- package/dist/chunks/{ehr-LCNAVMK5.js → ehr-CX5F4ZAU.js} +23 -16
- package/dist/chunks/{entry-mode-6Z3ZV3DE.js → entry-mode-I2BYNONZ.js} +3 -3
- package/dist/chunks/{env-RDKWAARB.js → env-ZAQZ7EHN.js} +2 -2
- package/dist/chunks/{esb-ANKPUU65.js → esb-DQTXDIBF.js} +10 -7
- package/dist/chunks/{factory-434B7RAT.js → factory-XRI6KZ7H.js} +1 -1
- package/dist/chunks/{fna-AKBSG5HI.js → fna-FK6HQVJL.js} +13 -8
- package/dist/chunks/{group-chat-PROTW22R.js → group-chat-MLWNYM2P.js} +3 -3
- package/dist/chunks/{host-WO4L5G5I.js → host-3EPREGXS.js} +6 -3
- package/dist/chunks/{host-XIYG4F4B.js → host-J74JGYAW.js} +6 -3
- package/dist/chunks/{host-7FJW4E7R.js → host-KUMU3DDK.js} +6 -3
- package/dist/chunks/{host-5R2SNFWD.js → host-MEC4VQZA.js} +6 -3
- package/dist/chunks/{host-PDJAKCT7.js → host-T6NNQGVZ.js} +6 -3
- package/dist/chunks/{host-CGXUFQO4.js → host-VI7Q45PM.js} +6 -3
- package/dist/chunks/{hrm-WGODDTEH.js → hrm-KKVAW4P5.js} +8 -5
- package/dist/chunks/{im-YKTKAJU3.js → im-47CIWQNL.js} +7 -4
- package/dist/chunks/{invoice-PVYCCCVM.js → invoice-CDYRBNIG.js} +21 -16
- package/dist/chunks/{jiuchuanhui-RKOQW7BY.js → jiuchuanhui-M7QTRHZK.js} +17 -10
- package/dist/chunks/{lazy-dispatch-DW45AFQ5.js → lazy-dispatch-FKQJZFI5.js} +22 -8
- package/dist/chunks/{mail-BNB5S4NW.js → mail-NRBS5N6Y.js} +11 -8
- package/dist/chunks/{meeting-O2KDJH66.js → meeting-WC5LD3IO.js} +22 -18
- package/dist/chunks/{minute-doc-JUCG56GY.js → minute-doc-OQUMDTKG.js} +4 -4
- package/dist/chunks/{okr-LWFGWOE7.js → okr-EHKSKMPL.js} +10 -7
- package/dist/chunks/{operations-532PN5OB.js → operations-V5VM5MS2.js} +7 -4
- package/dist/chunks/{performance-7W5COCFU.js → performance-ZJADXJPN.js} +6 -3
- package/dist/chunks/{plan-ZVY3IYTL.js → plan-OTDNBDJ7.js} +10 -7
- package/dist/chunks/{project-SA62B7MH.js → project-4XVBQ3HX.js} +10 -7
- package/dist/chunks/{reception-NGIONPQ3.js → reception-3FAHOOH7.js} +8 -4
- package/dist/chunks/{recruit-stage-WOSN6MGP.js → recruit-stage-3WTVWW2K.js} +199 -74
- package/dist/chunks/register-SQOPIR2G.js +16 -0
- package/dist/chunks/{registry-R72GWXOG.js → registry-F4YFZLOD.js} +7 -3
- package/dist/chunks/registry-NBTBXR4L.js +30 -0
- package/dist/chunks/{registry-N7P3W2RD.js → registry-TJGCVRCW.js} +7 -4
- package/dist/chunks/{room-recommend-KCGIVUFR.js → room-recommend-KL62XB2Y.js} +4 -4
- package/dist/chunks/root-YZG2TS5W.js +16 -0
- package/dist/chunks/{schedule-6UP27HQ4.js → schedule-XOISYUPB.js} +4 -4
- package/dist/chunks/{smart-extract-DDOQSPRB.js → smart-extract-UYGNV3BM.js} +15 -7
- package/dist/chunks/update-AV5VOXGY.js +13 -0
- package/dist/chunks/{workflow-V5ALD6QZ.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 +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/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/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/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-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 +188 -169
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +55 -37
- package/skills/weaver-e10-recruit-stage/lib/interview-conflict.mjs +3 -0
- package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +168 -35
- package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +175 -7
- 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 +16 -11
- package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +10 -6
- 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 +7 -3
- 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 +31 -23
- 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 +147 -34
- package/skills/weaver-e10-recruit-stage/references/recruit-platform-compat.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +16 -4
- 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 +24 -15
- 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 +32 -30
- 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-ICP53R52.js +0 -2849
- package/dist/chunks/registry-RIQ67ZT7.js +0 -27
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 单份合同的「数据卡片页」(ebdf 卡片页):`/sp/ebdfpage/card/0/{objId}/{数据ID}`。
|
|
3
|
+
*
|
|
4
|
+
* 解决的是「本合同……」这类**指代不明**的诉求:用户说「本合同」时,
|
|
5
|
+
* 会话里往往既没有文件、也没有合同号,直接回答等于凭空取数。
|
|
6
|
+
* 本 operation 把这一步变成可执行动作:
|
|
7
|
+
*
|
|
8
|
+
* ① 按**合同号**(`startWith`)或**客户名称**(`like`)在直销合同台账查;
|
|
9
|
+
* ② 命中多份**不自己挑**,把候选(含各自的数据 ID)摊给调用方,由用户选;
|
|
10
|
+
* ③ 唯一命中时取该行返回的 **`id`**,拼成数据卡片页地址,
|
|
11
|
+
* 连同可直接裸输出的 `open_web` 载荷一起返回。
|
|
12
|
+
*
|
|
13
|
+
* 为什么 `id` 就是「数据 ID」:2026-11-29 实测直销合同台账返回行里
|
|
14
|
+
* `id` / `form_data_id` / `rowKey` / `ebrecord_rowkey` / `form_table_id` 五键同值,
|
|
15
|
+
* 该值即 EB 表单数据 ID,可直接放进 `/sp/ebdfpage/card/0/{objId}/{dataId}` 的末段。
|
|
16
|
+
*
|
|
17
|
+
* 只读:不做任何写操作,也不打开页面(打开由调用方把 `browsertool` 裸输出)。
|
|
18
|
+
*/
|
|
19
|
+
import { contractValidationError } from '../errors.js';
|
|
20
|
+
import { dataCardPageUrl } from './page.js';
|
|
21
|
+
import { contractPerformanceOperations } from './performance.js';
|
|
22
|
+
/** 直销合同台账(六台账字典 §2.1;listId / objId 2026-11-29 实测复核一致)。 */
|
|
23
|
+
const MENU = '直销合同';
|
|
24
|
+
const LIST_ID = '846297265322576591';
|
|
25
|
+
const OBJECT_ID = '846297265322573825';
|
|
26
|
+
const APP_ID = '0';
|
|
27
|
+
const API_PREFIX = '/api/ebuilder';
|
|
28
|
+
const LIST_QUERY_OPERATION = 'contract.performance.list.query';
|
|
29
|
+
const LIST_INIT_PATH = '/api/ebuilder/form/list/listInit';
|
|
30
|
+
/** 查询用字段:合同号(text,前缀匹配)/ 客户名称(text,模糊匹配)。 */
|
|
31
|
+
const CONTRACT_NO_FIELD = { id: '846297265322574097', label: '合同号', operator: 'startWith' };
|
|
32
|
+
const CUSTOMER_FIELD = { id: '846297265322574105', label: '客户名称', operator: 'like' };
|
|
33
|
+
/** 承载「数据 ID」的返回键,按可信度排序;实测五键同值,前四个任一可用。 */
|
|
34
|
+
const DATA_ID_KEYS = ['id', 'dataId', 'form_data_id', 'rowKey', 'ebrecord_rowkey'];
|
|
35
|
+
/** 候选行回给用户看/选的列:返回键 → 中文名(已实测确认取值)。 */
|
|
36
|
+
const CANDIDATE_COLUMNS = [
|
|
37
|
+
['hth', '合同号'],
|
|
38
|
+
['khmc', '客户名称'],
|
|
39
|
+
['htzje', '合同总金额'],
|
|
40
|
+
['sumsk', '已收款'],
|
|
41
|
+
['wsk', '未收款'],
|
|
42
|
+
['sumkp', '已开票'],
|
|
43
|
+
['wkp', '未开票'],
|
|
44
|
+
['kpsk', '开票应收款'],
|
|
45
|
+
['kphz', '开票坏账'],
|
|
46
|
+
['htyjny', '合同业绩年月'],
|
|
47
|
+
['qdrq', '签订日期'],
|
|
48
|
+
['htzl', '合同种类'],
|
|
49
|
+
['xsjl', '销售经理'],
|
|
50
|
+
['cljd', '处理进度'],
|
|
51
|
+
];
|
|
52
|
+
const DEFAULT_MAX_CANDIDATES = 20;
|
|
53
|
+
const HARD_MAX_CANDIDATES = 50;
|
|
54
|
+
function isRecord(value) {
|
|
55
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
56
|
+
}
|
|
57
|
+
function text(value) {
|
|
58
|
+
if (value === null || value === undefined)
|
|
59
|
+
return '';
|
|
60
|
+
if (typeof value === 'string')
|
|
61
|
+
return value.trim();
|
|
62
|
+
if (typeof value === 'number' || typeof value === 'boolean')
|
|
63
|
+
return String(value);
|
|
64
|
+
return '';
|
|
65
|
+
}
|
|
66
|
+
/** 数据 ID / 表单 ID 必须是可直接放进路径片段的裸数字串。 */
|
|
67
|
+
function requirePathId(value, name) {
|
|
68
|
+
const raw = text(value);
|
|
69
|
+
if (!/^[1-9]\d*$/u.test(raw)) {
|
|
70
|
+
throw contractValidationError('id_invalid', `${name} 必须是数字 ID(环境相关 ID 只能运行时解析):${raw || '(空)'}`);
|
|
71
|
+
}
|
|
72
|
+
return raw;
|
|
73
|
+
}
|
|
74
|
+
/** 取该行的「数据 ID」;取不到时把可用的候选键报出来,不猜、不拿别的键顶替。 */
|
|
75
|
+
export function pickRowDataId(row) {
|
|
76
|
+
for (const key of DATA_ID_KEYS) {
|
|
77
|
+
const value = text(row[key]);
|
|
78
|
+
if (value)
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
function shapeRow(row, index) {
|
|
84
|
+
const out = { index: index + 1, dataId: pickRowDataId(row) };
|
|
85
|
+
for (const [key] of CANDIDATE_COLUMNS) {
|
|
86
|
+
out[key] = text(row[key]);
|
|
87
|
+
}
|
|
88
|
+
return out;
|
|
89
|
+
}
|
|
90
|
+
/** 会话 baseUrl(数据卡片页地址必须挂在当前环境域名下,不写死任何域名)。 */
|
|
91
|
+
async function resolveBaseUrl(context) {
|
|
92
|
+
const session = await context.host.getSession();
|
|
93
|
+
const baseUrl = text(session?.baseUrl);
|
|
94
|
+
if (!baseUrl) {
|
|
95
|
+
throw contractValidationError('origin_required', '当前会话没有 baseUrl,无法拼数据卡片页地址;请先完成 E10 登录(共享规则 e10-auth-and-session)。');
|
|
96
|
+
}
|
|
97
|
+
return baseUrl;
|
|
98
|
+
}
|
|
99
|
+
function findListQueryOperation() {
|
|
100
|
+
const operation = contractPerformanceOperations.find((item) => item.name === LIST_QUERY_OPERATION);
|
|
101
|
+
if (!operation) {
|
|
102
|
+
throw contractValidationError('operation_unknown', `缺少 ${LIST_QUERY_OPERATION},无法解析合同数据 ID。`);
|
|
103
|
+
}
|
|
104
|
+
return operation;
|
|
105
|
+
}
|
|
106
|
+
async function queryByField(context, args) {
|
|
107
|
+
const result = await findListQueryOperation().execute({
|
|
108
|
+
apiPrefix: API_PREFIX,
|
|
109
|
+
listId: LIST_ID,
|
|
110
|
+
appId: APP_ID,
|
|
111
|
+
objId: args.objId,
|
|
112
|
+
searchFieldId: args.field.id,
|
|
113
|
+
searchOperator: args.field.operator,
|
|
114
|
+
searchValue: args.keyword,
|
|
115
|
+
pageSize: args.pageSize,
|
|
116
|
+
maxPages: 1,
|
|
117
|
+
}, context);
|
|
118
|
+
const rows = Array.isArray(result.data?.rows) ? result.data.rows.filter(isRecord) : [];
|
|
119
|
+
const total = Number(result.data?.pagination?.total ?? rows.length);
|
|
120
|
+
return { rows, total: Number.isFinite(total) ? total : rows.length };
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* 解析运行时的直销合同 objId。
|
|
124
|
+
*
|
|
125
|
+
* 显示明确的 `objId` 时直接复用(会话内 `list.init` 只跑一次,省一个往返);
|
|
126
|
+
* 否则调 `listInit` 取权威值——地址末段必须指向**同一张表单**,不允许拿别的 objId 硬套。
|
|
127
|
+
*/
|
|
128
|
+
async function resolveObjectId(input, context) {
|
|
129
|
+
const explicit = text(input.objId);
|
|
130
|
+
if (explicit)
|
|
131
|
+
return { objId: requirePathId(explicit, 'objId'), warnings: [] };
|
|
132
|
+
const init = (await context.host.contractRequest({
|
|
133
|
+
method: 'POST',
|
|
134
|
+
path: LIST_INIT_PATH,
|
|
135
|
+
body: { listId: LIST_ID },
|
|
136
|
+
}));
|
|
137
|
+
const objId = text(init?.data?.objid ?? init?.data?.objId);
|
|
138
|
+
if (!objId) {
|
|
139
|
+
throw contractValidationError('list_init_failed', '直销合同 listInit 未返回 objId,无法确认数据卡片页的表单 ID。');
|
|
140
|
+
}
|
|
141
|
+
const checked = requirePathId(objId, 'listInit.objId');
|
|
142
|
+
const warnings = checked === OBJECT_ID
|
|
143
|
+
? []
|
|
144
|
+
: [`运行时 listInit 返回的 objId ${checked} 与台账字典记录的直销合同 objId ${OBJECT_ID} 不一致,已按运行时值拼地址,请核对环境表单结构。`];
|
|
145
|
+
return { objId: checked, warnings };
|
|
146
|
+
}
|
|
147
|
+
export const contractViewlinkOperations = [
|
|
148
|
+
{
|
|
149
|
+
name: 'contract.viewlink',
|
|
150
|
+
risk: 'read',
|
|
151
|
+
inputSchema: {
|
|
152
|
+
type: 'object',
|
|
153
|
+
additionalProperties: false,
|
|
154
|
+
properties: {
|
|
155
|
+
keyword: { type: 'string', description: '合同号或客户名称(必填,除非直接给 dataId)' },
|
|
156
|
+
matchBy: { type: 'string', enum: ['auto', 'contractNo', 'customer'] },
|
|
157
|
+
dataId: { type: 'string', description: '已知数据 ID(用户已选定候选时传它重跑)' },
|
|
158
|
+
objId: { type: 'string', description: '直销合同 objId;会话内已 init 过就传,省一次 listInit' },
|
|
159
|
+
maxCandidates: { type: 'number' },
|
|
160
|
+
title: { type: 'string', description: '打开页面的标题,默认带合同号' },
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
async execute(input, context) {
|
|
164
|
+
const keyword = text(input.keyword);
|
|
165
|
+
const dataIdInput = text(input.dataId);
|
|
166
|
+
if (!keyword && !dataIdInput) {
|
|
167
|
+
throw contractValidationError('input_invalid', '必须给 keyword(合同号或客户名称);用户已选定候选时改传 dataId。二者都没有时不要猜——先反问用户查哪份合同。');
|
|
168
|
+
}
|
|
169
|
+
const matchBy = text(input.matchBy) || 'auto';
|
|
170
|
+
if (!['auto', 'contractNo', 'customer'].includes(matchBy)) {
|
|
171
|
+
throw contractValidationError('input_invalid', 'matchBy 只能是 auto / contractNo / customer。');
|
|
172
|
+
}
|
|
173
|
+
const maxCandidates = Math.min(Math.max(Math.trunc(Number(input.maxCandidates)) || DEFAULT_MAX_CANDIDATES, 1), HARD_MAX_CANDIDATES);
|
|
174
|
+
const { objId, warnings } = await resolveObjectId(input, context);
|
|
175
|
+
const baseUrl = await resolveBaseUrl(context);
|
|
176
|
+
// ── 已知数据 ID:跳过查询,直接出卡页地址 ────────────────────────────
|
|
177
|
+
if (dataIdInput) {
|
|
178
|
+
const dataId = requirePathId(dataIdInput, 'dataId');
|
|
179
|
+
const pageUrl = dataCardPageUrl(baseUrl, objId, dataId);
|
|
180
|
+
return {
|
|
181
|
+
status: 'COMPLETE',
|
|
182
|
+
data: {
|
|
183
|
+
keyword: null,
|
|
184
|
+
matchedBy: 'dataId',
|
|
185
|
+
ledger: { menu: MENU, listId: LIST_ID, objId, apiPrefix: API_PREFIX },
|
|
186
|
+
counts: { total: 1, returned: 0, truncated: false },
|
|
187
|
+
unique: true,
|
|
188
|
+
needsUserChoice: false,
|
|
189
|
+
notFound: false,
|
|
190
|
+
dataId,
|
|
191
|
+
pageUrl,
|
|
192
|
+
browsertool: buildOpenWeb(pageUrl, text(input.title) || '合同数据卡页'),
|
|
193
|
+
candidates: [],
|
|
194
|
+
nextAction: 'open_web',
|
|
195
|
+
message: '已按给定数据 ID 生成合同数据卡页地址,裸输出 browsertool 打开即可。',
|
|
196
|
+
warnings,
|
|
197
|
+
},
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
// ── 按合同号 / 客户名称解析 ─────────────────────────────────────────
|
|
201
|
+
let outcome = null;
|
|
202
|
+
let fallbackFrom = null;
|
|
203
|
+
if (matchBy === 'auto' || matchBy === 'contractNo') {
|
|
204
|
+
const result = await queryByField(context, { objId, field: CONTRACT_NO_FIELD, keyword, pageSize: maxCandidates });
|
|
205
|
+
if (result.total > 0) {
|
|
206
|
+
outcome = { matchedBy: 'contractNo', field: CONTRACT_NO_FIELD, rows: result.rows, total: result.total };
|
|
207
|
+
}
|
|
208
|
+
else if (matchBy === 'auto') {
|
|
209
|
+
fallbackFrom = '合同号';
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
if (!outcome && (matchBy === 'auto' || matchBy === 'customer')) {
|
|
213
|
+
const result = await queryByField(context, { objId, field: CUSTOMER_FIELD, keyword, pageSize: maxCandidates });
|
|
214
|
+
if (result.total > 0) {
|
|
215
|
+
outcome = { matchedBy: 'customer', field: CUSTOMER_FIELD, rows: result.rows, total: result.total };
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
const ledger = { menu: MENU, listId: LIST_ID, objId, apiPrefix: API_PREFIX };
|
|
219
|
+
if (!outcome) {
|
|
220
|
+
return {
|
|
221
|
+
status: 'COMPLETE',
|
|
222
|
+
data: {
|
|
223
|
+
keyword,
|
|
224
|
+
matchedBy: null,
|
|
225
|
+
ledger,
|
|
226
|
+
counts: { total: 0, returned: 0, truncated: false },
|
|
227
|
+
unique: false,
|
|
228
|
+
needsUserChoice: false,
|
|
229
|
+
notFound: true,
|
|
230
|
+
dataId: null,
|
|
231
|
+
pageUrl: null,
|
|
232
|
+
browsertool: null,
|
|
233
|
+
candidates: [],
|
|
234
|
+
nextAction: 'ask_user_for_keyword',
|
|
235
|
+
message: `在直销合同台账按「合同号」和「客户名称」都没有命中「${keyword}」。请让用户确认合同号,或改用客户名称(客户名称支持模糊匹配)。`,
|
|
236
|
+
warnings,
|
|
237
|
+
},
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
const candidates = outcome.rows.slice(0, maxCandidates).map(shapeRow);
|
|
241
|
+
const truncated = outcome.total > candidates.length;
|
|
242
|
+
// 唯一性命中:合同号精确命中优先(合同号本身唯一),否则要求总数恰为 1。
|
|
243
|
+
// 客户名称**永不**自动取第一条。
|
|
244
|
+
let hit = null;
|
|
245
|
+
if (outcome.matchedBy === 'contractNo') {
|
|
246
|
+
const exact = outcome.rows.filter((row) => text(row.hth) === keyword);
|
|
247
|
+
if (outcome.total === 1)
|
|
248
|
+
hit = outcome.rows[0] ?? null;
|
|
249
|
+
else if (exact.length === 1)
|
|
250
|
+
hit = exact[0] ?? null;
|
|
251
|
+
}
|
|
252
|
+
else if (outcome.total === 1) {
|
|
253
|
+
hit = outcome.rows[0] ?? null;
|
|
254
|
+
}
|
|
255
|
+
if (!hit) {
|
|
256
|
+
const choice = outcome.matchedBy === 'contractNo'
|
|
257
|
+
? `按合同号前缀「${keyword}」命中 ${outcome.total} 份合同`
|
|
258
|
+
: `客户「${keyword}」名下命中 ${outcome.total} 份合同`;
|
|
259
|
+
return {
|
|
260
|
+
status: 'COMPLETE',
|
|
261
|
+
data: {
|
|
262
|
+
keyword,
|
|
263
|
+
matchedBy: outcome.matchedBy,
|
|
264
|
+
matchedField: outcome.field.label,
|
|
265
|
+
fallbackFrom,
|
|
266
|
+
ledger,
|
|
267
|
+
counts: { total: outcome.total, returned: candidates.length, truncated },
|
|
268
|
+
unique: false,
|
|
269
|
+
needsUserChoice: true,
|
|
270
|
+
notFound: false,
|
|
271
|
+
dataId: null,
|
|
272
|
+
pageUrl: null,
|
|
273
|
+
browsertool: null,
|
|
274
|
+
candidates,
|
|
275
|
+
nextAction: 'ask_user_to_choose',
|
|
276
|
+
nextCommand: 'contract run contract.viewlink --input \'{"dataId":"<用户选中的候选 dataId>"}\'',
|
|
277
|
+
message: `${choice},需要用户按编号选一份(不要自行取第一条)。选定后传该候选的 dataId 重跑本命令即可出页面。`,
|
|
278
|
+
warnings,
|
|
279
|
+
},
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
const dataId = pickRowDataId(hit);
|
|
283
|
+
if (!dataId) {
|
|
284
|
+
throw contractValidationError('data_id_missing', `命中的合同行没有数据 ID 字段(找过 ${DATA_ID_KEYS.join(' / ')}),无法拼数据卡片页地址;非空键:${Object.keys(hit).filter((key) => text(hit[key])).slice(0, 30).join(', ')}`);
|
|
285
|
+
}
|
|
286
|
+
requirePathId(dataId, 'dataId');
|
|
287
|
+
const contractNo = text(hit.hth);
|
|
288
|
+
const customerName = text(hit.khmc);
|
|
289
|
+
const pageUrl = dataCardPageUrl(baseUrl, objId, dataId);
|
|
290
|
+
const title = text(input.title) || (contractNo ? `${contractNo} 合同数据卡页` : '合同数据卡页');
|
|
291
|
+
const label = [contractNo, customerName].filter(Boolean).join(' · ');
|
|
292
|
+
return {
|
|
293
|
+
status: 'COMPLETE',
|
|
294
|
+
data: {
|
|
295
|
+
keyword,
|
|
296
|
+
matchedBy: outcome.matchedBy,
|
|
297
|
+
matchedField: outcome.field.label,
|
|
298
|
+
fallbackFrom,
|
|
299
|
+
ledger,
|
|
300
|
+
counts: { total: outcome.total, returned: candidates.length, truncated: false },
|
|
301
|
+
unique: true,
|
|
302
|
+
needsUserChoice: false,
|
|
303
|
+
notFound: false,
|
|
304
|
+
contract: { dataId, contractNo, customerName },
|
|
305
|
+
dataId,
|
|
306
|
+
pageUrl,
|
|
307
|
+
browsertool: buildOpenWeb(pageUrl, title),
|
|
308
|
+
candidates,
|
|
309
|
+
nextAction: 'open_web',
|
|
310
|
+
message: `已按${outcome.field.label}「${keyword}」定位到 1 份合同${label ? `(${label})` : ''},裸输出 browsertool 打开它的数据卡页。卡页里的「开票应收款 / 已收款 / 未收款 / 未开票」四列即可核对合同金额;逾期与付款节点需另走收款节点台账(contract.collection.node)。`,
|
|
311
|
+
warnings,
|
|
312
|
+
},
|
|
313
|
+
};
|
|
314
|
+
},
|
|
315
|
+
},
|
|
316
|
+
];
|
|
317
|
+
/** 可直接裸输出的 open_web 载荷(与会话内其它 open_web 载荷同构)。 */
|
|
318
|
+
export function buildOpenWeb(url, title) {
|
|
319
|
+
const now = new Date();
|
|
320
|
+
const pad = (value) => String(value).padStart(2, '0');
|
|
321
|
+
return {
|
|
322
|
+
version: '1.0',
|
|
323
|
+
callId: `contract-card-${now.getFullYear()}${pad(now.getMonth() + 1)}${pad(now.getDate())}${pad(now.getHours())}${pad(now.getMinutes())}-01`,
|
|
324
|
+
toolId: 'open_web',
|
|
325
|
+
arguments: {
|
|
326
|
+
url,
|
|
327
|
+
title,
|
|
328
|
+
width: 1300,
|
|
329
|
+
openIn: 'browser',
|
|
330
|
+
activate: true,
|
|
331
|
+
autoOpen: true,
|
|
332
|
+
},
|
|
333
|
+
};
|
|
334
|
+
}
|
|
@@ -90,10 +90,10 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
90
90
|
const env = failureEnvelope(error);
|
|
91
91
|
if (shouldReportPlatformError(error)) {
|
|
92
92
|
const pe = toPlatformError(error);
|
|
93
|
-
|
|
93
|
+
ctx.output.error({ ...env, code: pe.code, message: pe.message });
|
|
94
94
|
}
|
|
95
95
|
else {
|
|
96
|
-
|
|
96
|
+
ctx.output.error(env);
|
|
97
97
|
}
|
|
98
98
|
process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
|
|
99
99
|
}
|
|
@@ -84,7 +84,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
84
84
|
}
|
|
85
85
|
catch (error) {
|
|
86
86
|
reportPlatformError(error);
|
|
87
|
-
|
|
87
|
+
ctx.output.error(failureEnvelope(error));
|
|
88
88
|
process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
@@ -99,10 +99,10 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
99
99
|
const env = failureEnvelope(error);
|
|
100
100
|
if (shouldReportPlatformError(error)) {
|
|
101
101
|
const pe = toPlatformError(error);
|
|
102
|
-
|
|
102
|
+
ctx.output.error({ ...env, code: pe.code, message: pe.message });
|
|
103
103
|
}
|
|
104
104
|
else {
|
|
105
|
-
|
|
105
|
+
ctx.output.error(env);
|
|
106
106
|
}
|
|
107
107
|
process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
|
|
108
108
|
}
|
|
@@ -41,7 +41,7 @@ export const ehrManifest = {
|
|
|
41
41
|
withheldOperations: [
|
|
42
42
|
...RECRUIT_WITHHELD.map((name) => ({
|
|
43
43
|
name,
|
|
44
|
-
reason: '
|
|
44
|
+
reason: '招聘撤销类写操作(取消改期入职)破坏性最强且依赖入口链路,暂缓实现;其余招聘读操作与写操作(新建人才/安排面试/办理入职/面试反馈编辑/催评)均已可用;发送 Offer 已移交流程组,本技能不提供。不得编造或绕过。',
|
|
45
45
|
})),
|
|
46
46
|
...MOBILE_CARD_WITHHELD.map((name) => ({
|
|
47
47
|
name,
|
|
@@ -2,7 +2,7 @@ import { CONTINUATION_TTL_MS, CONTINUATION_TTL_SECONDS } from '../../../core/con
|
|
|
2
2
|
import { createHash } from 'node:crypto';
|
|
3
3
|
import { ehrConfirmationError, ehrValidationError } from '../errors.js';
|
|
4
4
|
import { WRITE, SCHEMA_ID, ehrSuccess, schemaOf, } from './types.js';
|
|
5
|
-
import { buildListBody, fetchListRows, } from './recruit.js';
|
|
5
|
+
import { buildListBody, fetchListRows, isSelfTenant, } from './recruit.js';
|
|
6
6
|
import { getDsOptions, getFormDataRecord, resolvePersonId, saveFormData, toSubmitDetails, } from './recruit-write.js';
|
|
7
7
|
import { toMenuList } from './shared.js';
|
|
8
8
|
/**
|
|
@@ -256,8 +256,10 @@ async function resolveWorkLocation(env, cache, value) {
|
|
|
256
256
|
const hit = matchWorkPlace(await loadWorkPlaces(env, cache), value);
|
|
257
257
|
return hit ? { id: hit.id, name: hit.detail || hit.name || String(value) } : null;
|
|
258
258
|
}
|
|
259
|
-
/**
|
|
259
|
+
/** 默认办公地点:固定地址仅适用于自用租户;非自用租户直接返回 null(不查列表、不写字段)。 */
|
|
260
260
|
async function resolveDefaultWorkLocation(env, cache) {
|
|
261
|
+
if (!isSelfTenant(cache.tenantKey))
|
|
262
|
+
return null;
|
|
261
263
|
return resolveWorkLocation(env, cache, DEFAULT_WORK_LOCATION);
|
|
262
264
|
}
|
|
263
265
|
/** 从提交 detail 取可读值(用于 summary 里点名「继承来的值」) */
|
|
@@ -450,6 +452,9 @@ async function buildPositionPlan(env, cache, args) {
|
|
|
450
452
|
put({ formField: { id: fid('work_location') }, dataOptions: [{ optionId: defaultLoc.id, content: defaultLoc.name }] });
|
|
451
453
|
workLocationDefault = defaultLoc.name;
|
|
452
454
|
}
|
|
455
|
+
else if (!isSelfTenant(cache.tenantKey)) {
|
|
456
|
+
workLocationWarning = '当前环境未配置默认办公地点,本次不写 work_location;请用 workLocation 显式指定';
|
|
457
|
+
}
|
|
453
458
|
else {
|
|
454
459
|
workLocationWarning = `未在「办公地点」列表找到启用状态的默认地点「${DEFAULT_WORK_LOCATION}」,本次不写 work_location;请用 workLocation 显式指定`;
|
|
455
460
|
}
|
|
@@ -2,6 +2,7 @@ import { CONTINUATION_TTL_SECONDS } from '../../../core/continuation-ttl.js';
|
|
|
2
2
|
import { createHash } from 'node:crypto';
|
|
3
3
|
import { ehrConfirmationError, ehrPartialError, ehrValidationError, EhrCliError } from '../errors.js';
|
|
4
4
|
import { WRITE, ehrSuccess, schemaOf, } from './types.js';
|
|
5
|
+
import { RecruitContextError } from './recruit.js';
|
|
5
6
|
import { cachedShort, readShortCache, writeShortCache } from './recruit-short-cache.js';
|
|
6
7
|
function fingerprint(value) {
|
|
7
8
|
return createHash('sha256').update(JSON.stringify(value ?? null)).digest('hex').slice(0, 32);
|
|
@@ -1173,7 +1174,7 @@ const interviewArrangeApply = {
|
|
|
1173
1174
|
async function locateOfferRow(host, cache, talentId) {
|
|
1174
1175
|
const offerList = cache.lists.offer;
|
|
1175
1176
|
if (!offerList?.listId) {
|
|
1176
|
-
throw
|
|
1177
|
+
throw new RecruitContextError('recruit_list_unavailable', '当前环境未启用「录用管理」(Offer 管理)功能菜单', 'permission');
|
|
1177
1178
|
}
|
|
1178
1179
|
const offerObjId = cacheObjId(cache, 'offer', '录用管理');
|
|
1179
1180
|
const body = writeListBody({
|
|
@@ -1459,7 +1460,7 @@ async function inheritFromOffer(host, cache, talentId) {
|
|
|
1459
1460
|
async function locateEntryRow(host, cache, talentId, entryIdArg) {
|
|
1460
1461
|
const entryList = cache.lists.entry;
|
|
1461
1462
|
if (!entryList?.listId) {
|
|
1462
|
-
throw
|
|
1463
|
+
throw new RecruitContextError('recruit_list_unavailable', '当前环境未启用「入职管理」功能菜单', 'permission');
|
|
1463
1464
|
}
|
|
1464
1465
|
const entryObjId = cacheObjId(cache, 'entry_manage', '入职管理');
|
|
1465
1466
|
const inherited = await inheritFromOffer(host, cache, talentId);
|
|
@@ -1820,7 +1821,7 @@ const feedbackEditPrepare = {
|
|
|
1820
1821
|
profile: session.profile,
|
|
1821
1822
|
userId: session.userId,
|
|
1822
1823
|
payload: {
|
|
1823
|
-
talentId: plan.talentId, batchId: plan.batchId, feedbackId: plan.feedbackId,
|
|
1824
|
+
talentId: plan.talentId, batchId: plan.batchId, feedbackId: plan.feedbackId, planName: plan.planName,
|
|
1824
1825
|
newResultOptionId: plan.newResultOptionId, newResultName: plan.newResultName, newComment: plan.newComment,
|
|
1825
1826
|
objId: plan.objId, formId: plan.formId, resultFieldId: plan.resultFieldId, judgementFieldId: plan.judgementFieldId,
|
|
1826
1827
|
},
|
|
@@ -1943,7 +1944,7 @@ async function buildFeedbackUrgePlan(env, cache, args) {
|
|
|
1943
1944
|
// 不再先花 ~2 s 把候选人卡片全部拉一遍才失败。判定顺序变了,结论与错误码完全不变。
|
|
1944
1945
|
const interviewList = cache.lists.interview;
|
|
1945
1946
|
if (!interviewList?.listId) {
|
|
1946
|
-
throw
|
|
1947
|
+
throw new RecruitContextError('recruit_list_unavailable', '当前环境未启用「面试管理」功能菜单,无法解析催评动作流按钮', 'permission');
|
|
1947
1948
|
}
|
|
1948
1949
|
const interviewDetailObjId = cacheObjId(cache, 'interview_detail', '面试反馈表单');
|
|
1949
1950
|
const actions = await getListActions(host, interviewList.listId, interviewDetailObjId);
|
|
@@ -2068,13 +2069,13 @@ const feedbackUrgeApply = {
|
|
|
2068
2069
|
});
|
|
2069
2070
|
},
|
|
2070
2071
|
};
|
|
2072
|
+
// offer.send.prepare / apply 已下线(2026-11-29 审核口径:发 Offer 已移交流程组),
|
|
2073
|
+
// 不再注册进 manifest,Agent 无法调用;函数保留,恢复时把两行加回数组即可。
|
|
2071
2074
|
export const recruitWriteOperations = [
|
|
2072
2075
|
candidateCreatePrepare,
|
|
2073
2076
|
candidateCreateApply,
|
|
2074
2077
|
interviewArrangePrepare,
|
|
2075
2078
|
interviewArrangeApply,
|
|
2076
|
-
offerSendPrepare,
|
|
2077
|
-
offerSendApply,
|
|
2078
2079
|
entryProcessPrepare,
|
|
2079
2080
|
entryProcessApply,
|
|
2080
2081
|
feedbackEditPrepare,
|