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
|
@@ -22,7 +22,7 @@ import path from 'node:path';
|
|
|
22
22
|
import schoolTiers from '../school-tiers.json';
|
|
23
23
|
import { rsSuccess, schemaOf } from './types.js';
|
|
24
24
|
import { rsFail, rsValidationError, rsConfirmationError } from '../errors.js';
|
|
25
|
-
import { objIdOf, formIdOf, saveFormData, getFormLayoutMeta, runSaveButtonEsbActions, getTableMapping, invertTableMapping, datasetSaveFormData, datasetUpdateFormData, checkUnique, getCandidateByPhone, buildCardUrl, buildTalentViewUrl, talentLinkExtra, talentUiCardUrl, resolveTalentListUrl, findMenuNode, randHex32, getDsOptions, dsOptionsSnapshot, restoreDsOptions, invalidateEnvCache, verifySubmitted, expectedFields, probeCreatePermission, } from '../shared.js';
|
|
25
|
+
import { objIdOf, formIdOf, saveFormData, getFormLayoutMeta, runSaveButtonEsbActions, getTableMapping, invertTableMapping, datasetSaveFormData, datasetUpdateFormData, checkUnique, getCandidateByPhone, buildCardUrl, buildTalentViewUrl, talentLinkExtra, talentUiCardUrl, resolveTalentListUrl, findMenuNode, randHex32, getDsOptions, cachedDsMap, dsOptionsSnapshot, restoreDsOptions, invalidateEnvCache, verifySubmitted, expectedFields, probeCreatePermission, } from '../shared.js';
|
|
26
26
|
import { addEntityTags, queryEntityTags } from '../tag-lookup.js';
|
|
27
27
|
import { scanResumeSource } from '../fs-scan.js';
|
|
28
28
|
import { saveBatchItems, loadBatchItems, saveOcrResult, loadOcrResult } from '../batch-store.js';
|
|
@@ -770,8 +770,9 @@ async function buildImport(ctx, args) {
|
|
|
770
770
|
if (fileid) {
|
|
771
771
|
dataDetails.push({ formField: { id: resumeFieldId }, dataOptions: [{ optionId: String(fileid), content: fileName || '简历附件', type: 'file' }] });
|
|
772
772
|
}
|
|
773
|
-
// 渠道:显式 channel
|
|
773
|
+
// 渠道:显式 channel 优先;未指定时按「简历附件导入 → 手动录入」顺序取当前环境真实选项
|
|
774
774
|
let channelLabel = null;
|
|
775
|
+
let channelWarning = null;
|
|
775
776
|
if (args.channel) {
|
|
776
777
|
let channelOption;
|
|
777
778
|
for (const x of cache.dict?.raw || [])
|
|
@@ -784,11 +785,50 @@ async function buildImport(ctx, args) {
|
|
|
784
785
|
}
|
|
785
786
|
else if (fields.channel) {
|
|
786
787
|
const byName = cache.dict?.by_name || {};
|
|
787
|
-
const
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
788
|
+
const aliases = ['简历附件导入', '手动录入', '手工录入', '简历导入', '导入简历', '手动添加', '手工添加', '手动', '手工', '录入'];
|
|
789
|
+
const findName = (map) => {
|
|
790
|
+
for (const name of aliases)
|
|
791
|
+
if (map?.[name])
|
|
792
|
+
return name;
|
|
793
|
+
return '';
|
|
794
|
+
};
|
|
795
|
+
let manualName = findName(byName);
|
|
796
|
+
let manualId = manualName ? String(byName[manualName]) : '';
|
|
797
|
+
let channelSource = manualId ? 'dict' : '';
|
|
798
|
+
// 🔴 v8:字典已与菜单解耦(B 通道按 objId 直读),菜单不可用时 dict 照常有值;
|
|
799
|
+
// 但字典表本身可能读失败(degraded=dict,不落盘)。此处不得直接判死——
|
|
800
|
+
// 简历来源是字典引用字段,其可选值另有两条**与菜单无关**的通道:
|
|
801
|
+
// ② 环境缓存 field_options(ds/fields 随表单带回,离线、不额外花请求);
|
|
802
|
+
// ③ ds/options 实时反查(只需 objId + fieldId,两者都来自 tag 通道,不依赖菜单树)。
|
|
803
|
+
if (!manualId) {
|
|
804
|
+
const offline = cachedDsMap(cache, objId, 'channel');
|
|
805
|
+
manualName = findName(offline);
|
|
806
|
+
manualId = manualName ? String(offline?.[manualName]) : '';
|
|
807
|
+
if (manualId)
|
|
808
|
+
channelSource = 'field_options';
|
|
809
|
+
}
|
|
810
|
+
if (!manualId) {
|
|
811
|
+
try {
|
|
812
|
+
const live = await getDsOptions(host, objId, fields.channel);
|
|
813
|
+
manualName = findName(live);
|
|
814
|
+
manualId = manualName ? String(live?.[manualName]) : '';
|
|
815
|
+
if (manualId)
|
|
816
|
+
channelSource = 'ds/options';
|
|
817
|
+
}
|
|
818
|
+
catch { /* 反查失败按未找到处理,仍继续录入 */ }
|
|
819
|
+
}
|
|
820
|
+
if (!manualId) {
|
|
821
|
+
// 来源字段不是必填:宁可不写、不阻塞整条简历录入;把原因带回,便于上层提示。
|
|
822
|
+
channelWarning = '数据字典中未找到「简历附件导入/手动录入」,本次简历来源留空(不阻塞录入)';
|
|
823
|
+
channelLabel = '未设置(字典无来源选项)';
|
|
824
|
+
}
|
|
825
|
+
else {
|
|
826
|
+
if (channelSource && channelSource !== 'dict' && process.env.WEAVER_CLI_DEBUG_CACHE) {
|
|
827
|
+
console.error('[resume-import] 简历来源由', channelSource, '反查得到(字典为空,菜单通道不可用)');
|
|
828
|
+
}
|
|
829
|
+
dataDetails.push({ formField: { id: fields.channel }, dataOptions: [{ optionId: manualId, content: manualName }] });
|
|
830
|
+
channelLabel = manualName;
|
|
831
|
+
}
|
|
792
832
|
}
|
|
793
833
|
mark('build.渠道映射完成');
|
|
794
834
|
// 下面三段都是只读、彼此无依赖:并发发起,避免 3 次 RTT 串行叠加(2026-11-18 提速,结果不变)
|
|
@@ -840,22 +880,29 @@ async function buildImport(ctx, args) {
|
|
|
840
880
|
return {
|
|
841
881
|
objId, formId, fields, fileid, fileName, structured,
|
|
842
882
|
dataDetails, detailsPayload, detailNodes, unmappedTables, subError, subBuild, subRowTotal,
|
|
843
|
-
subMeta, tagNames, schoolTagInfo, channelLabel, resumeFieldId,
|
|
883
|
+
subMeta, tagNames, schoolTagInfo, channelLabel, channelWarning, resumeFieldId,
|
|
844
884
|
};
|
|
845
885
|
}
|
|
846
886
|
// 两级查重:① getCandidateByPhone(页面同款,命中即「已绑定人才」)② checkUnique(表单唯一性,捕捉无批次记录与软删除占用)
|
|
847
887
|
async function findExistingTalents(ctx, opts) {
|
|
848
888
|
const { objId, formId, fields, mobile } = opts;
|
|
849
|
-
|
|
889
|
+
// 没有手机号时不存在「手机号唯一性」问题:标记为不适用且放行,不能误判成查重失败。
|
|
890
|
+
const blank = {
|
|
891
|
+
checked: true, unique: true, applicable: false,
|
|
892
|
+
phoneChecked: true, uniqueChecked: true, checkErrors: [],
|
|
893
|
+
byPhone: null, byPhoneError: undefined,
|
|
894
|
+
formConflicts: { existing: [], unreadable: [] }, ids: [],
|
|
895
|
+
};
|
|
850
896
|
if (!mobile)
|
|
851
897
|
return blank;
|
|
852
898
|
// 两级查重并行:getCandidateByPhone(页面同款)与 checkUnique(表单唯一性)互不依赖 → 并行省 1 RTT。
|
|
853
|
-
//
|
|
854
|
-
//
|
|
899
|
+
// 🔴 2026-11-29 查重失败必须 fail-closed:任一探针没拿到有效回包,都不能当成「唯一」继续建档。
|
|
900
|
+
// 事故链:旧写法把 checkUnique 异常吞成 unique=true,dataset 保存又被判定为「可降级」,
|
|
901
|
+
// 回退 form/core/saveFormData 绕过了平台唯一性校验,最终同一手机号被智能体建出多条人才。
|
|
855
902
|
const phoneTask = getCandidateByPhone(ctx.host, mobile).then((b) => ({ ok: true, b }), (e) => ({ ok: false, e }));
|
|
856
903
|
const uniqueTask = fields.telephone
|
|
857
|
-
? checkUnique(ctx.host, { objId, fieldId: fields.telephone, value: mobile }).then((r) => ({ ok: true, r }), () => ({ ok: false,
|
|
858
|
-
: Promise.resolve({ ok: false,
|
|
904
|
+
? checkUnique(ctx.host, { objId, fieldId: fields.telephone, value: mobile }).then((r) => ({ ok: true, r }), (e) => ({ ok: false, e }))
|
|
905
|
+
: Promise.resolve({ ok: false, e: new Error('人才表单缺少 telephone 字段映射') });
|
|
859
906
|
const [phoneRes, uniqueRes] = await Promise.all([phoneTask, uniqueTask]);
|
|
860
907
|
let byPhone = null;
|
|
861
908
|
if (phoneRes.ok) {
|
|
@@ -875,9 +922,11 @@ async function findExistingTalents(ctx, opts) {
|
|
|
875
922
|
}
|
|
876
923
|
const formConflicts = { existing: [], unreadable: [] };
|
|
877
924
|
let ids = [];
|
|
925
|
+
let uniqueFlag = true;
|
|
878
926
|
if (uniqueRes.ok && uniqueRes.r) {
|
|
879
927
|
const r = uniqueRes.r;
|
|
880
928
|
ids = r.formDataIds;
|
|
929
|
+
uniqueFlag = r.unique !== false;
|
|
881
930
|
const readBrief = makeBriefReader(ctx, formId, objId, fields);
|
|
882
931
|
for (const id of ids) {
|
|
883
932
|
if (byPhone?.talentId === id)
|
|
@@ -895,12 +944,45 @@ async function findExistingTalents(ctx, opts) {
|
|
|
895
944
|
formConflicts.unreadable.push(id);
|
|
896
945
|
}
|
|
897
946
|
}
|
|
898
|
-
const
|
|
899
|
-
|
|
947
|
+
const phoneChecked = phoneRes.ok;
|
|
948
|
+
const uniqueChecked = uniqueRes.ok && !!uniqueRes.r;
|
|
949
|
+
const checkErrors = [];
|
|
950
|
+
if (!phoneChecked)
|
|
951
|
+
checkErrors.push('getCandidateByPhone 查询失败:' + (phoneRes.e?.message || '未知错误'));
|
|
952
|
+
if (!fields.telephone)
|
|
953
|
+
checkErrors.push('人才表单缺少 telephone 字段映射,checkUnique 无法执行');
|
|
954
|
+
else if (!uniqueChecked)
|
|
955
|
+
checkErrors.push('checkUnique 查询失败:' + (uniqueRes.e?.message || '未知错误'));
|
|
956
|
+
const checked = phoneChecked && uniqueChecked;
|
|
957
|
+
const hit = Boolean(byPhone?.candidateId || byPhone?.talentId)
|
|
958
|
+
|| formConflicts.existing.length > 0
|
|
959
|
+
|| !uniqueFlag;
|
|
960
|
+
return {
|
|
961
|
+
checked,
|
|
962
|
+
// 只有两级都成功且无命中才是 unique;查重失败一律返回 false,下游必须阻断。
|
|
963
|
+
unique: checked ? !hit : false,
|
|
964
|
+
applicable: true,
|
|
965
|
+
phoneChecked, uniqueChecked, checkErrors,
|
|
966
|
+
byPhone: byPhone && !byPhone.error ? byPhone : null,
|
|
967
|
+
byPhoneError: byPhone?.error,
|
|
968
|
+
formConflicts, ids,
|
|
969
|
+
};
|
|
900
970
|
}
|
|
901
971
|
function fingerprint(value) {
|
|
902
972
|
return createHash('sha256').update(JSON.stringify(value)).digest('hex');
|
|
903
973
|
}
|
|
974
|
+
/**
|
|
975
|
+
* 平台「手机号唯一性」拦截的识别器。
|
|
976
|
+
*
|
|
977
|
+
* 🔴 2026-11-29 事故修复:dataset/v2/saveFormData 因查重失败时,旧代码把它当成
|
|
978
|
+
* 「数据集通道不可用」并回退 form/core/saveFormData;后者不保证执行表单唯一性校验,
|
|
979
|
+
* 于是同一手机号被智能体重复建档。凡是查重/重复/唯一类错误,一律不得降级,必须原样阻断。
|
|
980
|
+
*/
|
|
981
|
+
export function isDuplicateSaveError(message) {
|
|
982
|
+
const text = String(message?.message || message || '');
|
|
983
|
+
// 只认唯一冲突语义;裸「手机号」会把格式错误/必填缺失误判为重复,导致漏写入或误引导更新他人档案。
|
|
984
|
+
return /(查重|重复|已存在|唯一性|违反唯一|unique constraint|duplicate key|duplicate entry)/i.test(text);
|
|
985
|
+
}
|
|
904
986
|
/**
|
|
905
987
|
* 指纹用主表:剔除附件字段(original_resume)。
|
|
906
988
|
* 附件每次上传都会生成新的 fileid,属 volatile 字段;若参与指纹,prepare 与 apply 必然不一致
|
|
@@ -1070,6 +1152,7 @@ async function prepare(args, env, opts = {}) {
|
|
|
1070
1152
|
},
|
|
1071
1153
|
mappedFieldCount: built.dataDetails.length,
|
|
1072
1154
|
channel: built.channelLabel || '(未指定)',
|
|
1155
|
+
channelWarning: built.channelWarning || undefined,
|
|
1073
1156
|
subTables: built.subBuild.stats,
|
|
1074
1157
|
subTableRows: built.subRowTotal,
|
|
1075
1158
|
subTableNodes: built.detailNodes,
|
|
@@ -1078,6 +1161,11 @@ async function prepare(args, env, opts = {}) {
|
|
|
1078
1161
|
duplicate: {
|
|
1079
1162
|
checked: dupInfo.checked,
|
|
1080
1163
|
unique: dupInfo.unique,
|
|
1164
|
+
applicable: dupInfo.applicable,
|
|
1165
|
+
phoneChecked: dupInfo.phoneChecked,
|
|
1166
|
+
uniqueChecked: dupInfo.uniqueChecked,
|
|
1167
|
+
checkErrors: dupInfo.checkErrors.length ? dupInfo.checkErrors : undefined,
|
|
1168
|
+
blocked: !dupInfo.checked,
|
|
1081
1169
|
bound: dupInfo.byPhone,
|
|
1082
1170
|
formConflicts: dupInfo.formConflicts.existing,
|
|
1083
1171
|
unreadableIds: dupInfo.formConflicts.unreadable,
|
|
@@ -1086,15 +1174,19 @@ async function prepare(args, env, opts = {}) {
|
|
|
1086
1174
|
// 实测:apply 成功后再跑一次 prepare(不带 updateTalentId)会 unique:false 命中刚建的自己,
|
|
1087
1175
|
// 而文档口径是「已存在同手机号人才 → 提示并停住,不重复建档」→ 重试路径被自己的查重挡死。
|
|
1088
1176
|
// 这里不改判定逻辑(查重该拦就拦),只补一个明确出口,避免 Agent 笼统报「已存在」后卡住。
|
|
1089
|
-
retryHint: dupInfo.
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1177
|
+
retryHint: !dupInfo.checked
|
|
1178
|
+
? '查重未完成,禁止 apply 新建;请重试 prepare,或先到人才库页面人工确认该手机号'
|
|
1179
|
+
: (dupInfo.unique ? undefined
|
|
1180
|
+
: '若本次是重试/复跑(上次 apply 可能已成功),请改用 updateTalentId=<命中的人才id> 走更新通道,不要重复建档'),
|
|
1181
|
+
note: !dupInfo.checked
|
|
1182
|
+
? '查重未完成(getCandidateByPhone/checkUnique 至少一个失败)→ 已阻断新建,必须先解决查重再提交'
|
|
1183
|
+
: (dupInfo.byPhone
|
|
1184
|
+
? '手机号已绑定人才(页面同款 getCandidateByPhone 命中)→ 不新建,给出人才查看页地址'
|
|
1185
|
+
: (dupInfo.formConflicts.existing.length
|
|
1186
|
+
? '手机号在人才库已存在(表单唯一性命中,但无应聘批次)→ 不新建'
|
|
1187
|
+
: (dupInfo.formConflicts.unreadable.length
|
|
1188
|
+
? '手机号被已删除记录占用(平台仍会拦新建):需先在回收站清理,或改为更新已有人才'
|
|
1189
|
+
: '无重复'))),
|
|
1098
1190
|
},
|
|
1099
1191
|
};
|
|
1100
1192
|
const willSubmit = { formId: built.formId, objId: built.objId, mainTable: fingerprintMainTable(toDatasetMainTable(built.dataDetails, built.fields)), details: built.detailsPayload };
|
|
@@ -1260,23 +1352,29 @@ async function applyCore(args, env, payload) {
|
|
|
1260
1352
|
// findExistingTalents 的兜底结构是 { checked:false, unique:true }(没查过 = 当唯一),
|
|
1261
1353
|
// 若网络/权限异常导致查重没执行,旧写法会把「没查过」当成「唯一」→ 跳过查重 → 重复建档。
|
|
1262
1354
|
const signedDup = (payload.built && payload.dupCheck && payload.dupCheck.checked === true) ? payload.dupCheck : null;
|
|
1263
|
-
if (signedDup && signedDup.unique
|
|
1355
|
+
if (signedDup && signedDup.unique !== true) {
|
|
1264
1356
|
const hasBatch = !!(signedDup.byPhoneCandidateId || signedDup.byPhoneTalentId);
|
|
1265
1357
|
return rsSuccess('recruit-stage.resume.import.apply', {
|
|
1266
1358
|
mode: 'apply', result: 'duplicate',
|
|
1267
|
-
message:
|
|
1268
|
-
?
|
|
1269
|
-
|
|
1359
|
+
message: signedDup.unique === false
|
|
1360
|
+
? (hasBatch
|
|
1361
|
+
? '当前手机号已绑定人才信息,按页面规则不新建(未写入任何数据)'
|
|
1362
|
+
: '手机号在人才库已存在(表单唯一性命中,但无应聘批次),不新建(未写入任何数据)')
|
|
1363
|
+
: '查重结论不完整(prepare 未返回明确 unique 结论),为防止重复建档已阻断;请重新 prepare',
|
|
1270
1364
|
existingTalent: hasBatch ? {
|
|
1271
1365
|
talentId: signedDup.byPhoneTalentId || '',
|
|
1272
1366
|
candidateId: signedDup.byPhoneCandidateId || '',
|
|
1273
1367
|
} : undefined,
|
|
1274
1368
|
parsed: { name: built.structured.candidateName, mobile: built.structured.telephone },
|
|
1275
|
-
nextStep: '
|
|
1369
|
+
nextStep: '如需按这份简历更新该人才,重新 prepare 时传 updateTalentId=<已有人才id>,确认差异后 apply;不要用原新建 continuation 直接 apply',
|
|
1276
1370
|
});
|
|
1277
1371
|
}
|
|
1278
1372
|
if (!signedDup) {
|
|
1279
1373
|
const dupInfo = await findExistingTalents(ctx, { objId: built.objId, formId: built.formId, fields: built.fields, mobile: built.structured.telephone });
|
|
1374
|
+
// 🔴 2026-11-29 查重失败必须阻断:不允许把「没查过」当成「唯一」继续写。
|
|
1375
|
+
if (!dupInfo.checked) {
|
|
1376
|
+
throw rsFail('手机号查重未完成,为防止重复建档已阻断:' + (dupInfo.checkErrors.join(';') || '未知原因') + '。请重试,或先到人才库页面确认该手机号是否已存在');
|
|
1377
|
+
}
|
|
1280
1378
|
if (dupInfo.byPhone?.candidateId || dupInfo.byPhone?.talentId) {
|
|
1281
1379
|
const b = dupInfo.byPhone;
|
|
1282
1380
|
return rsSuccess('recruit-stage.resume.import.apply', {
|
|
@@ -1286,7 +1384,7 @@ async function applyCore(args, env, payload) {
|
|
|
1286
1384
|
talentViewUrl: b.talentViewUrl,
|
|
1287
1385
|
otherRecords: dupInfo.formConflicts.existing.length ? dupInfo.formConflicts.existing : undefined,
|
|
1288
1386
|
parsed: { name: built.structured.candidateName, mobile: built.structured.telephone },
|
|
1289
|
-
nextStep: '
|
|
1387
|
+
nextStep: '如需按这份简历更新该人才,重新 prepare 时传 updateTalentId=<已有人才id>,确认差异后 apply;不要用原新建 continuation 直接 apply',
|
|
1290
1388
|
});
|
|
1291
1389
|
}
|
|
1292
1390
|
if (dupInfo.formConflicts.existing.length) {
|
|
@@ -1295,12 +1393,21 @@ async function applyCore(args, env, payload) {
|
|
|
1295
1393
|
message: '手机号在人才库已存在(表单唯一性命中,但无应聘批次),不新建(未写入任何数据)',
|
|
1296
1394
|
formConflicts: dupInfo.formConflicts.existing,
|
|
1297
1395
|
parsed: { name: built.structured.candidateName, mobile: built.structured.telephone },
|
|
1298
|
-
nextStep: '
|
|
1396
|
+
nextStep: '如需按这份简历更新该人才,重新 prepare 时传 updateTalentId=<已有人才id>,确认差异后 apply;不要用原新建 continuation 直接 apply',
|
|
1299
1397
|
});
|
|
1300
1398
|
}
|
|
1301
1399
|
if (!dupInfo.unique && dupInfo.formConflicts.unreadable.length) {
|
|
1302
1400
|
throw rsFail('手机号被 ' + dupInfo.formConflicts.unreadable.length + ' 条已删除记录占用(平台唯一性校验仍拦新建,id=' + dupInfo.formConflicts.unreadable.join(',') + '):请先在回收站清理,或改为更新已有人才');
|
|
1303
1401
|
}
|
|
1402
|
+
if (!dupInfo.unique) {
|
|
1403
|
+
return rsSuccess('recruit-stage.resume.import.apply', {
|
|
1404
|
+
mode: 'apply', result: 'duplicate',
|
|
1405
|
+
message: '手机号在人才库已存在(平台唯一性校验未通过),不新建(未写入任何数据)',
|
|
1406
|
+
formConflicts: dupInfo.formConflicts.existing.length ? dupInfo.formConflicts.existing : undefined,
|
|
1407
|
+
parsed: { name: built.structured.candidateName, mobile: built.structured.telephone },
|
|
1408
|
+
nextStep: '如需按这份简历更新该人才,重新 prepare 时传 updateTalentId=<已有人才id>,确认差异后 apply;不要用原新建 continuation 直接 apply',
|
|
1409
|
+
});
|
|
1410
|
+
}
|
|
1304
1411
|
} // end if (!signedDup) — 无签入结果时才走完整查重(兜底)
|
|
1305
1412
|
// 建人才:① 首选数据集通道(主表+明细一次写入);② 被拦时回退页面级通道——
|
|
1306
1413
|
// 主表+明细 subForm 格子并入同一次 form/core saveFormData(新建记录明细为空 → rowId 留空=追加)。
|
|
@@ -1316,7 +1423,23 @@ async function applyCore(args, env, payload) {
|
|
|
1316
1423
|
writeChannel = 'dataset/v2/saveFormData(主表 + 明细一次写入)';
|
|
1317
1424
|
}
|
|
1318
1425
|
catch (e) {
|
|
1319
|
-
|
|
1426
|
+
const msg = String(e?.message || e || '');
|
|
1427
|
+
// 🔴 2026-11-29 重复建档事故根因:查重拦截绝不能降级到 form/core/saveFormData。
|
|
1428
|
+
// 该通道不保证执行表单唯一性校验;旧代码把它当「数据集不可用」兜底,实际把重复数据写了进去。
|
|
1429
|
+
if (isDuplicateSaveError(msg)) {
|
|
1430
|
+
return rsSuccess('recruit-stage.resume.import.apply', {
|
|
1431
|
+
mode: 'apply', result: 'duplicate',
|
|
1432
|
+
message: '平台手机号唯一性校验拦截,未新建(未写入任何数据)',
|
|
1433
|
+
duplicateGuard: 'dataset-save-duplicate-blocked',
|
|
1434
|
+
existingTalent: signedDup && (signedDup.byPhoneTalentId || signedDup.byPhoneCandidateId) ? {
|
|
1435
|
+
talentId: signedDup.byPhoneTalentId || '', candidateId: signedDup.byPhoneCandidateId || '',
|
|
1436
|
+
} : undefined,
|
|
1437
|
+
parsed: { name: built.structured.candidateName, mobile: built.structured.telephone },
|
|
1438
|
+
nextStep: '如需按这份简历更新已有人才,重新 prepare 时传 updateTalentId=<已有人才id>,确认差异后 apply;不要换通道重试新建',
|
|
1439
|
+
writeWarnings: ['dataset/v2/saveFormData 返回查重失败:' + msg + '(已停止,未降级写入)'],
|
|
1440
|
+
});
|
|
1441
|
+
}
|
|
1442
|
+
writeWarnings.push('数据集新增未通过(' + msg + '),回退页面级通道:主表+明细一次写入');
|
|
1320
1443
|
const subCells = buildSubFormCells(built, {}, makeDictLookup(ctx.cache));
|
|
1321
1444
|
newId = await saveFormData(host, { appId: ctx.appId, formId: built.formId, objId: built.objId, name: built.structured.candidateName || '简历导入', dataDetails: [...built.dataDetails, ...subCells.cells] });
|
|
1322
1445
|
writeChannel = 'form/core/saveFormData(主表 + 明细 subForm 一次写入)';
|
|
@@ -1325,6 +1448,19 @@ async function applyCore(args, env, payload) {
|
|
|
1325
1448
|
mark('apply.saveFormData');
|
|
1326
1449
|
const r2 = await host.request({ path: '/api/recruit/candidate/initTalentBatch?formDataId=' + newId, method: 'POST' });
|
|
1327
1450
|
mark('apply.initTalentBatch');
|
|
1451
|
+
// 批次初始化必须校验业务回包:host.request 只在 HTTP/网络层抛错,
|
|
1452
|
+
// 业务失败可能仍是 status:true/code:200 之外的形态,或返回 data.success=false。
|
|
1453
|
+
// 只取 data.msg 会把失败吞成成功,前端表现就是「人才建了、批次没建」。
|
|
1454
|
+
const batchRaw = r2;
|
|
1455
|
+
const batchOk = !(batchRaw?.status === false
|
|
1456
|
+
|| (typeof batchRaw?.code === 'number' && batchRaw.code !== 200)
|
|
1457
|
+
|| batchRaw?.data?.success === false
|
|
1458
|
+
|| batchRaw?.data?.status === false);
|
|
1459
|
+
const batchMsg = String(batchRaw?.data?.msg || batchRaw?.msg || '');
|
|
1460
|
+
if (!batchOk) {
|
|
1461
|
+
writeWarnings.push('人才已创建(talentId=' + newId + '),但 initTalentBatch 初始化批次失败:'
|
|
1462
|
+
+ (batchMsg || '服务端未返回成功状态') + '。请在 E10 中确认批次状态,禁止自动重试创建。');
|
|
1463
|
+
}
|
|
1328
1464
|
const talentId = String(newId);
|
|
1329
1465
|
// 可选头像:只在用户主动给图时写;失败不阻断,也不改变 result 判定
|
|
1330
1466
|
const avatarRes = await writeAvatarIfProvided(ctx, {
|
|
@@ -1362,6 +1498,10 @@ async function applyCore(args, env, payload) {
|
|
|
1362
1498
|
}
|
|
1363
1499
|
}
|
|
1364
1500
|
const saveEsbActions = esbRes.ok ? esbRes.v : { error: esbRes.e?.message };
|
|
1501
|
+
const saveActionsOk = esbRes.ok && !saveEsbActions?.error;
|
|
1502
|
+
if (!saveActionsOk) {
|
|
1503
|
+
writeWarnings.push('保存按钮后续动作执行失败:' + (saveEsbActions?.error || '未知原因') + '。人才档案已写入,请人工在 E10 中确认相关动作。');
|
|
1504
|
+
}
|
|
1365
1505
|
const labelMatch = labelRes.ok ? labelRes.v : 'ERR:' + (labelRes.e?.message || '');
|
|
1366
1506
|
const tagResult = tagRes.ok
|
|
1367
1507
|
? tagRes.v
|
|
@@ -1412,7 +1552,7 @@ async function applyCore(args, env, payload) {
|
|
|
1412
1552
|
if (attachMismatch) {
|
|
1413
1553
|
writeWarnings.push('简历附件未绑定到人才记录(original_resume 回查为空):原件已上传但未写入附件字段,请在人才卡片页手工补挂,或走 updateTalentId 重传');
|
|
1414
1554
|
}
|
|
1415
|
-
const result = detailsState === 'complete' && !verification.mismatches.length ? 'success' : 'partial';
|
|
1555
|
+
const result = batchOk && saveActionsOk && detailsState === 'complete' && !verification.mismatches.length ? 'success' : 'partial';
|
|
1416
1556
|
mark('apply.回查完成');
|
|
1417
1557
|
const talentCardUrl = await resolveTalentCardUrl(ctx, talentId);
|
|
1418
1558
|
mark('apply.卡片/列表链接');
|
|
@@ -1437,8 +1577,11 @@ async function applyCore(args, env, payload) {
|
|
|
1437
1577
|
: { written: false, warning: avatarRes.warning },
|
|
1438
1578
|
subTablesExpected: built.subBuild.stats,
|
|
1439
1579
|
subTableVerify,
|
|
1440
|
-
initTalentBatch:
|
|
1580
|
+
initTalentBatch: batchMsg,
|
|
1581
|
+
initTalentBatchOk: batchOk,
|
|
1582
|
+
initTalentBatchError: batchOk ? undefined : (batchMsg || '服务端未返回成功状态'),
|
|
1441
1583
|
saveEsbActions,
|
|
1584
|
+
saveActionsOk,
|
|
1442
1585
|
schoolTags: built.schoolTagInfo,
|
|
1443
1586
|
labelMatch,
|
|
1444
1587
|
tagsApplied: tagResult.applied,
|
|
@@ -1716,7 +1859,7 @@ export const resumeImportOperations = [
|
|
|
1716
1859
|
capability: 'recruit.resume.import',
|
|
1717
1860
|
risk: 'write',
|
|
1718
1861
|
requiresConfirmation: true,
|
|
1719
|
-
inputSchema: schemaOf({ ...baseInput, confirm: { type: 'boolean' }, continuation: { type: 'string' } }, {}),
|
|
1862
|
+
inputSchema: schemaOf({ ...baseInput, confirm: { type: 'boolean' }, continuation: { type: 'string' } }, { required: ['confirm', 'continuation'] }),
|
|
1720
1863
|
handler: apply,
|
|
1721
1864
|
},
|
|
1722
1865
|
{
|
|
@@ -216,7 +216,7 @@ export async function candidateSearchHandler(args, env) {
|
|
|
216
216
|
dictNameMap[item.option_id] = item.selection_name;
|
|
217
217
|
}
|
|
218
218
|
const out = {
|
|
219
|
-
env: new URL(baseUrl).hostname, total,
|
|
219
|
+
env: new URL(baseUrl).hostname, baseUrl, total,
|
|
220
220
|
// 🔴 显式回执「本次关键词实际搜了哪些字段、各用什么操作符」:
|
|
221
221
|
// 条件被服务端静默忽略时(total 与全库相同)调用方无从判断,有了这个清单才能自查。
|
|
222
222
|
...(searchFields ? { keyword, searchFields } : {}),
|
|
@@ -481,7 +481,7 @@ async function handlerSearchByTag(args, env) {
|
|
|
481
481
|
// 环境里一个标签都没解析到:直接如实返回 0,不发负样本、不扫描、不假装「没有这样的人」
|
|
482
482
|
if (!resolved.length) {
|
|
483
483
|
return rsSuccess('recruit-stage.candidate.searchByTag', {
|
|
484
|
-
env: new URL(baseUrl).hostname, wanted, match, resolved: [], missing,
|
|
484
|
+
env: new URL(baseUrl).hostname, baseUrl, wanted, match, resolved: [], missing,
|
|
485
485
|
via: 'none', total: 0, countFrom: 'local', current, pageSize, rows: [],
|
|
486
486
|
});
|
|
487
487
|
}
|
|
@@ -45,7 +45,7 @@ async function handlerShortlist(args, env) {
|
|
|
45
45
|
throw rsFail('keyword 必填:请提供要检索的关键词,例如 {"keyword":"Java开发"}');
|
|
46
46
|
}
|
|
47
47
|
const limit = clampInt(args.limit, 1, 10, 5);
|
|
48
|
-
const concurrency = clampInt(args.concurrency, 1, 10,
|
|
48
|
+
const concurrency = clampInt(args.concurrency, 1, 10, 10);
|
|
49
49
|
const full = args.full === true;
|
|
50
50
|
const startedAt = Date.now();
|
|
51
51
|
// ① 搜索:只取 limit 行。不传 createdAfter——该条件由客户端筛选并会放大取量,批量场景不需要。
|
|
@@ -87,6 +87,8 @@ async function handlerShortlist(args, env) {
|
|
|
87
87
|
const profilesMs = Date.now() - tProfiles;
|
|
88
88
|
return rsSuccess('recruit-stage.candidate.shortlist', {
|
|
89
89
|
keyword,
|
|
90
|
+
...(sdata.env ? { env: sdata.env } : {}),
|
|
91
|
+
...(sdata.baseUrl ? { baseUrl: sdata.baseUrl } : {}),
|
|
90
92
|
// total 是服务端关键词命中总数(不是本次取回数),returned/shown 才是本次实际处理量
|
|
91
93
|
total: Number(sdata.total) || 0,
|
|
92
94
|
returned: rows.length,
|
|
@@ -114,7 +116,7 @@ export const shortlistOperations = [
|
|
|
114
116
|
keyword: { type: 'string', description: '跨字段关键词(匹配姓名/期望职位/当前职位/最近职位/公司/院校/自我评价)' },
|
|
115
117
|
limit: { type: 'integer', minimum: 1, maximum: 10, description: '取前 N 人,默认 5,上限 10' },
|
|
116
118
|
current: { type: 'integer', minimum: 1, description: '搜索结果起始页,默认 1' },
|
|
117
|
-
concurrency: { type: 'integer', minimum: 1, maximum: 10, description: '档案并发数,默认
|
|
119
|
+
concurrency: { type: 'integer', minimum: 1, maximum: 10, description: '档案并发数,默认 10' },
|
|
118
120
|
full: { type: 'boolean', description: 'true=返回完整档案(含 rawMain 全字段);默认 false 返回精简档案' },
|
|
119
121
|
}, { required: ['keyword'] }),
|
|
120
122
|
handler: handlerShortlist,
|
|
@@ -201,7 +201,12 @@ export async function saveFormData(host, opts) {
|
|
|
201
201
|
// 注意 candidateId 是**应聘批次 id**(= batchNo),不是 talentId;两者都返回。未命中时 data = {}。
|
|
202
202
|
export async function getCandidateByPhone(host, phone) {
|
|
203
203
|
const r = await host.request({ path: '/api/recruit/candidate/getCandidateByPhone', method: 'POST', body: { phone: String(phone) } });
|
|
204
|
-
|
|
204
|
+
// 🔴 2026-11-29 查重防漏:回包没有 data 对象时,绝不能当成「未命中」继续建档。
|
|
205
|
+
// 旧写法 `r?.data || {}` 会把权限/网络/接口异常吞成空对象,导致查重静默失效。
|
|
206
|
+
const d = r?.data;
|
|
207
|
+
if (!d || typeof d !== 'object') {
|
|
208
|
+
throw rsFail('getCandidateByPhone 无有效回包(无法确认手机号是否已存在):' + JSON.stringify(r || {}).slice(0, 200));
|
|
209
|
+
}
|
|
205
210
|
return {
|
|
206
211
|
talentId: d.talentId ? String(d.talentId) : '',
|
|
207
212
|
candidateId: d.candidateId ? String(d.candidateId) : '',
|
|
@@ -232,7 +237,12 @@ export async function checkUnique(host, opts) {
|
|
|
232
237
|
path: '/api/ebuilder/form/form/core/checkUnique', method: 'POST',
|
|
233
238
|
body: { dataDetail, module: 'ebuilderform', customParam },
|
|
234
239
|
});
|
|
235
|
-
const d = r?.data
|
|
240
|
+
const d = r?.data;
|
|
241
|
+
// 🔴 2026-11-29 查重防漏:只有拿到明确的 unique 布尔值或 formDataIds 数组才算查过。
|
|
242
|
+
// 旧写法 `d.unique !== false` 会把「接口异常/无 data」当成唯一,直接放行重复建档。
|
|
243
|
+
if (!d || typeof d !== 'object' || (typeof d.unique !== 'boolean' && !Array.isArray(d.formDataIds))) {
|
|
244
|
+
throw rsFail('checkUnique 无有效回包(无法确认手机号唯一性):' + JSON.stringify(r || {}).slice(0, 200));
|
|
245
|
+
}
|
|
236
246
|
let ids = [];
|
|
237
247
|
const rawList = d.formDataIds;
|
|
238
248
|
if (Array.isArray(rawList))
|
|
@@ -244,7 +254,8 @@ export async function checkUnique(host, opts) {
|
|
|
244
254
|
if (m)
|
|
245
255
|
ids = m[1].match(/\d{10,}/g) || [];
|
|
246
256
|
}
|
|
247
|
-
|
|
257
|
+
const unique = typeof d.unique === 'boolean' ? d.unique : ids.length === 0;
|
|
258
|
+
return { unique, formDataIds: [...new Set(ids)] };
|
|
248
259
|
}
|
|
249
260
|
// ── OpenAPI 数据集接口(唯一支持明细表的写入通道)────────────────────────────
|
|
250
261
|
// `form/core/saveFormData` 的 dataDetails 不接收 DetailTable(实测 9 种结构全被忽略),
|
|
@@ -972,62 +983,25 @@ export function buildCardUrl(baseUrl, objId, dataId) {
|
|
|
972
983
|
return null;
|
|
973
984
|
return String(baseUrl).replace(/\/+$/, '') + '/sp/ebdfpage/card/0/' + objId + '/' + dataId;
|
|
974
985
|
}
|
|
975
|
-
// ── 人才库
|
|
976
|
-
// 2026-11-
|
|
977
|
-
//
|
|
978
|
-
//
|
|
979
|
-
//
|
|
980
|
-
//
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
export const TALENT_UI_ROUTE = '/sp/custom/ecode/recruit-talent';
|
|
984
|
-
/** 探测当前环境是否装了人才库 ecode 页面;结果缓存进 cache.talentUi('1'/'0'),一次运行只探一次。 */
|
|
985
|
-
export async function detectTalentUi(host, cache) {
|
|
986
|
-
const flag = String(cache.talentUi || '');
|
|
987
|
-
if (flag === '1')
|
|
988
|
-
return true;
|
|
989
|
-
if (flag === '0')
|
|
990
|
-
return false;
|
|
991
|
-
let installed = false;
|
|
992
|
-
try {
|
|
993
|
-
const r = await host.request({
|
|
994
|
-
path: '/api/ecode/project/searchAll',
|
|
995
|
-
method: 'GET',
|
|
996
|
-
query: { page: 1, size: 100 },
|
|
997
|
-
operation: 'detect-talent-ui',
|
|
998
|
-
});
|
|
999
|
-
const list = ((r && r.data && r.data.list) || (r && r.list) || []);
|
|
1000
|
-
installed = Array.isArray(list)
|
|
1001
|
-
&& list.some((x) => String((x && x.projectName) || '').startsWith('recruit-talent-ui'));
|
|
1002
|
-
}
|
|
1003
|
-
catch {
|
|
1004
|
-
// 探测失败按「没装」处理:宁可回退到原生页,也不要给出打不开的链接。
|
|
1005
|
-
installed = false;
|
|
1006
|
-
}
|
|
1007
|
-
cache.talentUi = installed ? '1' : '0';
|
|
1008
|
-
return installed;
|
|
1009
|
-
}
|
|
1010
|
-
/** 人才库列表:装了 ecode 页面 → 新页面;否则原生台账列表。 */
|
|
1011
|
-
export async function resolveTalentListUrl(host, cache, baseUrl, fallbackListId) {
|
|
1012
|
-
if (await detectTalentUi(host, cache)) {
|
|
1013
|
-
return String(baseUrl).replace(/\/+$/, '') + TALENT_UI_ROUTE;
|
|
1014
|
-
}
|
|
986
|
+
// ── 人才库 / 面试列表 / 人才卡片:CLI 只回原生页,EB 壳页由技能侧固定路由覆盖 ─────────────
|
|
987
|
+
// 🔴 2026-11-29 收口:CLI 不再产出任何 `/sp/custom/ecode/recruit-talent*` 旧地址。
|
|
988
|
+
// 旧 ecode 页在自用环境已由 EB 壳页替代,且 101/188/自用的页面 ID 不同;CLI 是跨租户共享包,
|
|
989
|
+
// 不能把某个租户的 EB 页面 ID 写死。CLI 只回**原生列表/记录页**(运行时 listId),
|
|
990
|
+
// 自用环境的 EB 壳页固定路由由技能侧 SKILL.md 的「固定路由表」覆盖。
|
|
991
|
+
// 这样即使 Agent 误用了 CLI 的 `talentCardUrl`/`talentListLocateUrl`,也不会把用户带回旧 ecode 页。
|
|
992
|
+
/** 人才库列表:一律原生台账列表;EB 壳页由技能侧固定路由覆盖。 */
|
|
993
|
+
export async function resolveTalentListUrl(_host, _cache, baseUrl, fallbackListId) {
|
|
1015
994
|
return buildListUrl(baseUrl, fallbackListId);
|
|
1016
995
|
}
|
|
1017
|
-
/**
|
|
1018
|
-
export async function resolveInterviewListUrlOrNative(
|
|
1019
|
-
if (await detectTalentUi(host, cache)) {
|
|
1020
|
-
return String(baseUrl).replace(/\/+$/, '') + TALENT_UI_ROUTE + '/interview';
|
|
1021
|
-
}
|
|
996
|
+
/** 面试进展:一律原生面试台账列表;EB 壳页由技能侧固定路由覆盖。 */
|
|
997
|
+
export async function resolveInterviewListUrlOrNative(_host, _cache, baseUrl, fallbackListId) {
|
|
1022
998
|
return buildListUrl(baseUrl, fallbackListId);
|
|
1023
999
|
}
|
|
1024
|
-
/**
|
|
1025
|
-
export async function talentUiCardUrl(
|
|
1000
|
+
/** 人才卡片:一律返回 null,调用方回退原生记录页;EB 人才卡片壳页由技能侧固定路由覆盖。 */
|
|
1001
|
+
export async function talentUiCardUrl(_host, _cache, _baseUrl, talentId) {
|
|
1026
1002
|
if (!talentId)
|
|
1027
1003
|
return null;
|
|
1028
|
-
|
|
1029
|
-
return null;
|
|
1030
|
-
return String(baseUrl).replace(/\/+$/, '') + TALENT_UI_ROUTE + '/card?talentId=' + encodeURIComponent(String(talentId));
|
|
1004
|
+
return null;
|
|
1031
1005
|
}
|
|
1032
1006
|
/**
|
|
1033
1007
|
* 「只打开列表」URL:{base}/sp/ebdfpage/list/{listId}(2026-11-06 用户定稿)。
|
|
@@ -3,6 +3,7 @@ export const smartExtractOperations = smartExtractOperationDefinitions.map((defi
|
|
|
3
3
|
name: definition.name,
|
|
4
4
|
risk: definition.risk,
|
|
5
5
|
summary: definition.summary,
|
|
6
|
+
...(definition.notes ? { notes: definition.notes } : {}),
|
|
6
7
|
...(definition.requiresConfirmation ? { requiresConfirmation: true } : {}),
|
|
7
8
|
inputSchema: definition.inputSchema,
|
|
8
9
|
}));
|
|
@@ -197,7 +197,9 @@ function ruleToPlainText(rule) {
|
|
|
197
197
|
const fill = {
|
|
198
198
|
name: 'smart-extract.fill',
|
|
199
199
|
risk: 'read',
|
|
200
|
-
summary: '
|
|
200
|
+
summary: '一次取齐抽取所需入参:表单结构、识别规则、附件正文;返回精简内容 + sessionFile,供模型抽取后交给 fill.save。',
|
|
201
|
+
notes: '流程节点表单结构(压缩串)、识别规则、附件正文(docx 本地抽文本)一次取回;'
|
|
202
|
+
+ '返回精简后只含模型需要的内容 + sessionFile;模型据此直接抽取,再调 smart-extract.fill.save 一步落库。',
|
|
201
203
|
inputSchema: schemaOf({
|
|
202
204
|
workflowId: { ...SCHEMA_ID, description: '流程模板 ID(必填)' },
|
|
203
205
|
nodeId: { ...SCHEMA_ID, description: '流程节点 ID;不传自动取发起节点' },
|
|
@@ -345,7 +347,10 @@ const fill = {
|
|
|
345
347
|
const fillSave = {
|
|
346
348
|
name: 'smart-extract.fill.save',
|
|
347
349
|
risk: 'high-risk-write',
|
|
348
|
-
summary: '一步收尾:按 sessionFile
|
|
350
|
+
summary: '一步收尾:按 sessionFile 自动整理并确定性校验抽取结果,通过后写批次记录、回查验证并返回 aiExtraId。',
|
|
351
|
+
notes: '按 sessionFile 取回结构与规则 → 自动整理结果(主表剔除空值并按 fields.main 排序、明细删全空行)→ '
|
|
352
|
+
+ '确定性校验(不通过直接拒写并回错误清单)→ 写批次记录 → 回查验证,返回 aiExtraId。'
|
|
353
|
+
+ '每次都新建一条记录,不判断是否已存在;不需要预览与人工确认。',
|
|
349
354
|
inputSchema: schemaOf({
|
|
350
355
|
sessionFile: { type: 'string', description: 'smart-extract.fill 返回的 sessionFile 路径' },
|
|
351
356
|
result: { type: 'object', description: '抽取结果(内联)' },
|
|
@@ -404,7 +404,10 @@ export function validateExtraction(result, structureRaw, options = {}) {
|
|
|
404
404
|
const resultValidate = {
|
|
405
405
|
name: 'smart-extract.result.validate',
|
|
406
406
|
risk: 'read',
|
|
407
|
-
summary: '按表单结构校验抽取结果:字段 ID
|
|
407
|
+
summary: '按表单结构校验抽取结果:字段 ID、选项值、单值/多值、日期数字格式、明细对齐、origin;ok=true 才能保存。',
|
|
408
|
+
notes: '校验项:字段 ID 是否存在、选项值是否合法、单值字段是否多值、日期/数字格式、'
|
|
409
|
+
+ '明细三数组长度是否对齐、origin 格式。返回 errors/warnings,ok=true 才允许保存。'
|
|
410
|
+
+ 'fill.save 已内置同一套校验,单独调试时用本命令。',
|
|
408
411
|
inputSchema: schemaOf({
|
|
409
412
|
result: { type: 'object', description: '抽取结果(内联)' },
|
|
410
413
|
resultPath: { type: 'string', description: '抽取结果 JSON 文件路径(与 result 二选一)' },
|
|
@@ -117,7 +117,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
117
117
|
}
|
|
118
118
|
catch (error) {
|
|
119
119
|
reportPlatformError(error);
|
|
120
|
-
|
|
120
|
+
ctx.output.error(failureEnvelope(error));
|
|
121
121
|
process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
@@ -194,7 +194,7 @@ function manifestIndex() {
|
|
|
194
194
|
...requiredHints(definition.inputSchema),
|
|
195
195
|
})),
|
|
196
196
|
withheldOperations: [...workflowManifest.withheldOperations, ...hostWithheldOperations()],
|
|
197
|
-
operationsHint: '默认只列 operation
|
|
197
|
+
operationsHint: '默认只列 operation 与字段名;字段类型、枚举、填写口径与完整说明(notes)用 `workflow schema --operation <name>` 单取,整份完整 manifest 用 `workflow schema --full`。',
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
200
|
/** `--full` 也要走同一份过滤:整份 manifest 不能把被扣留的 operation 带出来。 */
|
|
@@ -10,6 +10,7 @@ function buildOperations() {
|
|
|
10
10
|
name: definition.name,
|
|
11
11
|
resource: definition.resource,
|
|
12
12
|
summary: definition.summary,
|
|
13
|
+
...(definition.notes ? { notes: definition.notes } : {}),
|
|
13
14
|
...(definition.capability ? { capability: definition.capability } : {}),
|
|
14
15
|
risk: definition.risk,
|
|
15
16
|
...(definition.requiresConfirmation ? { requiresConfirmation: true } : {}),
|
|
@@ -329,7 +329,10 @@ export function workflowDeepReadRenderOperations() {
|
|
|
329
329
|
resource: 'workflow',
|
|
330
330
|
method: 'aiDeepReadRender',
|
|
331
331
|
action: 'workflow.aiDeepReadRender',
|
|
332
|
-
summary: 'AI
|
|
332
|
+
summary: 'AI 详读第三阶段渲染:用 collect 缓存 + 两段结论 + ai 分组,按 skill 模板生成自包含 HTML。',
|
|
333
|
+
notes: '输入 collect 主缓存路径 + agent 两段结论(每条 详情结论/意见结论,2026-11-18 二次定稿)+ '
|
|
334
|
+
+ 'ai 分组归类 + 阶段耗时行,按 skill 模板生成自包含 HTML。'
|
|
335
|
+
+ '筛选条计数与卡片分桶同源于缓存中的 grouping,0 计数桶不渲染。',
|
|
333
336
|
capability: 'view',
|
|
334
337
|
risk: 'read',
|
|
335
338
|
inputSchema: schemaOf({
|