weaver-work-cli 0.1.71 → 0.1.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -1
- package/dist/chunks/{archive-5P33NAUN.js → archive-OZJ6PYUR.js} +14 -9
- package/dist/chunks/{archive-oa-YTY5D7DG.js → archive-oa-BHL5RK2F.js} +10 -7
- package/dist/chunks/{asset-3Q5MFQBX.js → asset-HKRFRQR2.js} +10 -7
- package/dist/chunks/{asset-idle-PQPNYIS7.js → asset-idle-GGIR4KE7.js} +7 -4
- package/dist/chunks/{attachment-content-7CN7JB6B.js → attachment-content-4OV65NK5.js} +3 -3
- package/dist/chunks/{blog-MFHHK6ZR.js → blog-HYDP4DV3.js} +10 -7
- package/dist/chunks/{caizhilian-OZ435AYW.js → caizhilian-JS4RQZ6Z.js} +10 -7
- package/dist/chunks/{calendar-TNJXS5UC.js → calendar-SWRY4DIT.js} +10 -7
- package/dist/chunks/chunk-257JXJGD.js +30 -0
- package/dist/chunks/{chunk-FRMDHZSN.js → chunk-2AUFKU2D.js} +11 -11
- package/dist/chunks/chunk-2BZ7TY4M.js +49 -0
- package/dist/chunks/{chunk-WM33BSIL.js → chunk-2QCCXPNU.js} +1 -1
- package/dist/chunks/{chunk-X2C5CGGM.js → chunk-4FCBEWNB.js} +74 -68
- package/dist/chunks/{chunk-YN5SD4TX.js → chunk-5D2V7ZAN.js} +2 -2
- package/dist/chunks/{chunk-UPVAQJKS.js → chunk-5QUTQHXF.js} +282 -158
- package/dist/chunks/{chunk-SKWKCLJX.js → chunk-5ZJGPEIB.js} +2 -2
- package/dist/chunks/chunk-7DE3VMZD.js +35 -0
- package/dist/chunks/chunk-BNKUHN4N.js +1346 -0
- package/dist/chunks/{chunk-VMVMEIL3.js → chunk-BSR5TM7U.js} +4 -4
- package/dist/chunks/{chunk-EJLP63UO.js → chunk-ERZY6GYL.js} +7 -3
- package/dist/chunks/{chunk-OFCF23FY.js → chunk-FEZK536Z.js} +25 -9
- package/dist/chunks/{chunk-Q3EXRNB4.js → chunk-I6NOHKEK.js} +1 -1
- package/dist/chunks/{chunk-OZ7CJC7W.js → chunk-J7FAAHWH.js} +2 -2
- package/dist/chunks/{chunk-6MMSLE6K.js → chunk-JJONWB5N.js} +16 -2
- package/dist/chunks/chunk-JOY3HZXL.js +467 -0
- package/dist/chunks/{chunk-2DNCKZRX.js → chunk-JWF2R6EQ.js} +0 -462
- package/dist/chunks/{chunk-ICNUOWLL.js → chunk-KEA4XQPO.js} +4 -4
- package/dist/chunks/chunk-KINXYJXM.js +205 -0
- package/dist/chunks/{chunk-VJWVB55R.js → chunk-KWJEICD4.js} +2 -2
- package/dist/chunks/{chunk-P3AFNAJ6.js → chunk-LJI4N6FV.js} +1 -1
- package/dist/chunks/{chunk-DRJYPXKC.js → chunk-MXCRKXOP.js} +48 -6
- package/dist/chunks/{chunk-OPTJ6IF7.js → chunk-NWYHCZTY.js} +1 -1
- package/dist/chunks/chunk-OJ4JPD25.js +428 -0
- package/dist/chunks/{chunk-B4NINGP2.js → chunk-OQCK5SAU.js} +2 -2
- package/dist/chunks/chunk-PG5YSNYY.js +1166 -0
- package/dist/chunks/{chunk-LU2SPJYY.js → chunk-QJWVYOOV.js} +2 -2
- package/dist/chunks/{chunk-SUWR5QEG.js → chunk-QVKRNL7L.js} +287 -305
- package/dist/chunks/chunk-SU6IJD6D.js +49 -0
- package/dist/chunks/{chunk-MD5RXRI3.js → chunk-TA2RBUTH.js} +2 -2
- package/dist/chunks/{chunk-SSS75WXW.js → chunk-U6Y32KEV.js} +2 -2
- package/dist/chunks/chunk-UUJK76HV.js +209 -0
- package/dist/chunks/{chunk-GB2MCJPG.js → chunk-VOMDD2C5.js} +1 -1
- package/dist/chunks/chunk-Y3C6MDL7.js +28 -0
- package/dist/chunks/chunk-ZM7RN2IM.js +38 -0
- package/dist/chunks/{chunk-G7ZM2VOX.js → chunk-ZUB4M4N3.js} +38 -36
- package/dist/chunks/{chunk-XLSJC6JZ.js → chunk-ZWIMLT6P.js} +8 -7
- package/dist/chunks/cli-FULPXIKJ.js +226 -0
- package/dist/chunks/commands-BNWFNTD3.js +70 -0
- package/dist/chunks/{conflict-Y4PXZ2YQ.js → conflict-5BKCDV2F.js} +2 -2
- package/dist/chunks/{contract-C3BGUMBM.js → contract-WI23OXVC.js} +12446 -5964
- package/dist/chunks/{cowork-2AWG4QLA.js → cowork-DZBBVNMQ.js} +11 -8
- package/dist/chunks/{create-flow-LOUOK46Z.js → create-flow-7ZRBRKX7.js} +6 -6
- package/dist/chunks/{data-BSFYMXVO.js → data-PAZVE6QE.js} +6 -3
- package/dist/chunks/{ebuilder-form-LAAMTD2Y.js → ebuilder-form-5SQXIGXN.js} +9 -6
- package/dist/chunks/{ehr-36KEX5SH.js → ehr-CX5F4ZAU.js} +27 -19
- package/dist/chunks/{entry-mode-6N2IGCS4.js → entry-mode-I2BYNONZ.js} +3 -3
- package/dist/chunks/{env-QYLS3EB3.js → env-ZAQZ7EHN.js} +2 -2
- package/dist/chunks/{esb-PTYS3E67.js → esb-DQTXDIBF.js} +10 -7
- package/dist/chunks/{factory-LPFPKZ4T.js → factory-XRI6KZ7H.js} +1 -1
- package/dist/chunks/{fna-JNHCLRDE.js → fna-FK6HQVJL.js} +13 -8
- package/dist/chunks/{group-chat-QP2WX4QJ.js → group-chat-MLWNYM2P.js} +3 -3
- package/dist/chunks/{host-C2BLBIID.js → host-3EPREGXS.js} +6 -3
- package/dist/chunks/{host-QXFKQXNX.js → host-J74JGYAW.js} +6 -3
- package/dist/chunks/{host-57LSRSE7.js → host-KUMU3DDK.js} +6 -3
- package/dist/chunks/{host-7BVR7CQ3.js → host-MEC4VQZA.js} +6 -3
- package/dist/chunks/{host-NS36QFLR.js → host-T6NNQGVZ.js} +6 -3
- package/dist/chunks/{host-K2ZKNXME.js → host-VI7Q45PM.js} +6 -3
- package/dist/chunks/{hrm-FSGO4NSH.js → hrm-KKVAW4P5.js} +8 -5
- package/dist/chunks/{im-2BFGS2XO.js → im-47CIWQNL.js} +7 -4
- package/dist/chunks/{invoice-JKLTTHSZ.js → invoice-CDYRBNIG.js} +21 -16
- package/dist/chunks/{jiuchuanhui-PTABJE7V.js → jiuchuanhui-M7QTRHZK.js} +17 -10
- package/dist/chunks/{lazy-dispatch-YN2ZP3CS.js → lazy-dispatch-FKQJZFI5.js} +22 -8
- package/dist/chunks/{mail-YNO7ZZUK.js → mail-NRBS5N6Y.js} +11 -8
- package/dist/chunks/{meeting-NIDHDBCB.js → meeting-WC5LD3IO.js} +22 -18
- package/dist/chunks/{minute-doc-G3QAT7DE.js → minute-doc-OQUMDTKG.js} +4 -4
- package/dist/chunks/{okr-QC52G6AJ.js → okr-EHKSKMPL.js} +10 -7
- package/dist/chunks/{operations-MQV32ITT.js → operations-V5VM5MS2.js} +7 -4
- package/dist/chunks/{performance-3MQ3AHDQ.js → performance-ZJADXJPN.js} +6 -3
- package/dist/chunks/{plan-ISINIEPY.js → plan-OTDNBDJ7.js} +10 -7
- package/dist/chunks/{project-IJ6DVKT7.js → project-4XVBQ3HX.js} +10 -7
- package/dist/chunks/{reception-3H5LUG2I.js → reception-3FAHOOH7.js} +118 -45
- package/dist/chunks/{recruit-stage-MIOJXP6W.js → recruit-stage-3WTVWW2K.js} +1056 -191
- package/dist/chunks/register-SQOPIR2G.js +16 -0
- package/dist/chunks/{registry-3S7AVMXR.js → registry-F4YFZLOD.js} +7 -3
- package/dist/chunks/registry-NBTBXR4L.js +30 -0
- package/dist/chunks/{registry-NHHKOEU3.js → registry-TJGCVRCW.js} +7 -4
- package/dist/chunks/{room-recommend-IOKBJVYP.js → room-recommend-KL62XB2Y.js} +4 -4
- package/dist/chunks/root-YZG2TS5W.js +16 -0
- package/dist/chunks/{schedule-IB6EUARH.js → schedule-XOISYUPB.js} +4 -4
- package/dist/chunks/{smart-extract-N2TK3CEF.js → smart-extract-UYGNV3BM.js} +15 -7
- package/dist/chunks/update-AV5VOXGY.js +13 -0
- package/dist/chunks/{workflow-RINBAL2M.js → workflow-V54LJPXL.js} +15 -10
- package/dist/cli.js +40 -0
- package/dist/cmd/action.js +3 -1
- package/dist/cmd/doctor/index.js +1 -1
- package/dist/cmd/e10/index.js +1 -1
- package/dist/cmd/identity/index.js +5 -8
- package/dist/cmd/index.js +2 -0
- package/dist/cmd/setup/index.js +1 -1
- package/dist/cmd/update/index.js +38 -0
- package/dist/core/manifest-view.js +1 -1
- package/dist/core/output.js +12 -1
- package/dist/core/runtime-agent.js +13 -0
- package/dist/core/update-notice.js +23 -0
- package/dist/index.js +105 -198
- package/dist/internal/e10/auth/agent-host-key.js +16 -0
- package/dist/internal/e10/auth/agent-hosts.js +45 -9
- package/dist/internal/e10/auth/commands.js +66 -36
- package/dist/internal/e10/auth/session.js +30 -15
- package/dist/internal/e10/auth/xiaoe.js +4 -20
- package/dist/internal/e10/auth-recovery.js +44 -4
- package/dist/internal/e10/context.js +5 -2
- package/dist/internal/update/bootstrap.js +96 -0
- package/dist/internal/update/npm.js +78 -0
- package/dist/internal/update/service.js +252 -0
- package/dist/internal/update/store.js +135 -0
- package/dist/shortcuts/archive/index.js +2 -2
- package/dist/shortcuts/archive/manifest.js +1 -0
- package/dist/shortcuts/archive/operations/search.js +3 -1
- package/dist/shortcuts/archive-oa/index.js +1 -1
- package/dist/shortcuts/asset/index.js +1 -1
- package/dist/shortcuts/asset-idle/index.js +1 -1
- package/dist/shortcuts/blog/index.js +1 -1
- package/dist/shortcuts/caizhilian/index.js +1 -1
- package/dist/shortcuts/calendar/index.js +1 -1
- package/dist/shortcuts/contract/data/bi-config.js +156 -0
- package/dist/shortcuts/contract/data/collection-ledger-html.js +189 -0
- package/dist/shortcuts/contract/data/collection-node-catalog.js +226 -0
- package/dist/shortcuts/contract/data/metric-catalog.js +154 -20
- package/dist/shortcuts/contract/data/report-renderers.js +414 -0
- package/dist/shortcuts/contract/data/report-spec.js +132 -0
- package/dist/shortcuts/contract/error-actions.js +114 -0
- package/dist/shortcuts/contract/host.js +12 -3
- package/dist/shortcuts/contract/index.js +17 -1
- package/dist/shortcuts/contract/manifest.js +398 -3
- package/dist/shortcuts/contract/ooxml/docx-table.js +48 -0
- package/dist/shortcuts/contract/operations/bi-preview.js +131 -0
- package/dist/shortcuts/contract/operations/bizreview-report.js +496 -0
- package/dist/shortcuts/contract/operations/collection-node.js +229 -0
- package/dist/shortcuts/contract/operations/docx-slots.js +735 -16
- package/dist/shortcuts/contract/operations/draft-build.js +940 -0
- package/dist/shortcuts/contract/operations/draft-submit.js +229 -0
- package/dist/shortcuts/contract/operations/first-screen.js +3 -2
- package/dist/shortcuts/contract/operations/generated-submit.js +175 -0
- package/dist/shortcuts/contract/operations/ledger-report.js +233 -0
- package/dist/shortcuts/contract/operations/ledger-stat.js +1400 -0
- package/dist/shortcuts/contract/operations/ledger.js +4 -1
- package/dist/shortcuts/contract/operations/metrics.js +9 -3
- package/dist/shortcuts/contract/operations/ops-draft.js +527 -0
- package/dist/shortcuts/contract/operations/page.js +9 -0
- package/dist/shortcuts/contract/operations/quote-submit.js +55 -229
- package/dist/shortcuts/contract/operations/registry.js +20 -0
- package/dist/shortcuts/contract/operations/sign-launch.js +256 -0
- package/dist/shortcuts/contract/operations/viewlink.js +334 -0
- package/dist/shortcuts/cowork/index.js +2 -2
- package/dist/shortcuts/ebuilder-form/index.js +1 -1
- package/dist/shortcuts/ehr/index.js +2 -2
- package/dist/shortcuts/ehr/manifest.js +1 -1
- package/dist/shortcuts/ehr/operations/recruit-position.js +11 -5
- package/dist/shortcuts/ehr/operations/recruit-short-cache.js +6 -2
- package/dist/shortcuts/ehr/operations/recruit-write.js +10 -9
- package/dist/shortcuts/ehr/operations/recruit.js +390 -196
- package/dist/shortcuts/ehr/operations/shared.js +51 -0
- package/dist/shortcuts/esb/index.js +1 -1
- package/dist/shortcuts/fna/index.js +1 -1
- package/dist/shortcuts/fna/manifest.js +1 -0
- package/dist/shortcuts/fna/operations/expense-chart.js +3 -1
- package/dist/shortcuts/hrm/index.js +1 -1
- package/dist/shortcuts/invoice/index.js +1 -1
- package/dist/shortcuts/jiuchuanhui/index.js +2 -2
- package/dist/shortcuts/jiuchuanhui/manifest.js +3 -0
- package/dist/shortcuts/mail/index.js +2 -2
- package/dist/shortcuts/meeting/index.js +1 -1
- package/dist/shortcuts/meeting/manifest.js +1 -0
- package/dist/shortcuts/meeting/operations/eb/catalog.js +5 -3
- package/dist/shortcuts/meeting/operations/eb/conflict.js +3 -1
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +10 -9
- package/dist/shortcuts/meeting/operations/eb/factory.js +2 -0
- package/dist/shortcuts/meeting/operations/eb/member-expand.js +3 -2
- package/dist/shortcuts/meeting/operations/invitation-publish.js +3 -3
- package/dist/shortcuts/meeting/operations/invitation.js +4 -4
- package/dist/shortcuts/meeting/operations/link.js +3 -1
- package/dist/shortcuts/okr/index.js +1 -1
- package/dist/shortcuts/performance/index.js +1 -1
- package/dist/shortcuts/plan/index.js +1 -1
- package/dist/shortcuts/project/index.js +1 -1
- package/dist/shortcuts/reception/constants.js +22 -0
- package/dist/shortcuts/reception/index.js +4 -0
- package/dist/shortcuts/reception/manifest.js +16 -2
- package/dist/shortcuts/reception/operations/doc.js +24 -11
- package/dist/shortcuts/reception/operations/docrender.js +18 -1
- package/dist/shortcuts/reception/operations/render-assets.js +93 -22
- package/dist/shortcuts/recruit-stage/context.js +22 -8
- package/dist/shortcuts/recruit-stage/index.js +16 -3
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +20 -11
- package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +1 -1
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +467 -26
- package/dist/shortcuts/recruit-stage/operations/list.js +73 -2
- package/dist/shortcuts/recruit-stage/operations/profile.js +13 -5
- package/dist/shortcuts/recruit-stage/operations/registry.js +18 -2
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +363 -54
- package/dist/shortcuts/recruit-stage/operations/search.js +80 -16
- package/dist/shortcuts/recruit-stage/operations/shortlist.js +124 -0
- package/dist/shortcuts/recruit-stage/shared.js +174 -56
- package/dist/shortcuts/smart-extract/manifest.js +1 -0
- package/dist/shortcuts/smart-extract/operations/fill.js +7 -2
- package/dist/shortcuts/smart-extract/operations/validate.js +4 -1
- package/dist/shortcuts/workflow/index.js +2 -2
- package/dist/shortcuts/workflow/manifest.js +1 -0
- package/dist/shortcuts/workflow/operations/aiDeepRead/render.js +4 -1
- package/dist/shortcuts/workflow/operations/deepRead.js +23 -2
- package/dist/shortcuts/workflow/operations/form.js +44 -4
- package/docs/contract.md +6 -1
- package/docs/e10-auth.md +25 -7
- package/docs/operation-manual.md +15 -0
- package/package.json +2 -2
- package/scripts/pysite/__pycache__/sitecustomize.cpython-314.pyc +0 -0
- package/skill-template/business-info.json +28 -0
- package/skill-template/domains/jinchengda.md +13 -1
- package/skills/weaver-e10-archive-oa/references/source-manifest.json +3 -3
- package/skills/weaver-e10-caizhilian/references/auth-and-install.md +2 -1
- package/skills/weaver-e10-caizhilian/references/source-manifest.json +3 -3
- package/skills/weaver-e10-esb/references/source-manifest.json +3 -3
- package/skills/weaver-e10-jinchengda/SKILL.md +90 -32
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +45 -0
- package/skills/weaver-e10-jinchengda/references/contract-bizreview-report-template.html +68 -0
- package/skills/weaver-e10-jinchengda/references/contract-bizreview.md +216 -0
- package/skills/weaver-e10-jinchengda/references/contract-clause-negotiate.md +215 -0
- package/skills/weaver-e10-jinchengda/references/contract-collection-node.md +113 -0
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +19 -3
- package/skills/weaver-e10-jinchengda/references/contract-decisions.md +114 -0
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +53 -44
- package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-firstscreen-guide.md +200 -0
- package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +18 -1
- package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +138 -3
- package/skills/weaver-e10-jinchengda/references/contract-ledger-report.md +158 -0
- package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +3 -1
- package/skills/weaver-e10-jinchengda/references/contract-material-gap.md +139 -0
- package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +2 -2
- package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +10 -3
- package/skills/weaver-e10-jinchengda/references/contract-ops-draft.md +106 -0
- package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +176 -56
- package/skills/weaver-e10-jinchengda/references/contract-sign-launch.md +123 -0
- package/skills/weaver-e10-jinchengda/references/contract-smart-draft.md +410 -0
- package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-viewlink.md +110 -0
- package/skills/weaver-e10-jinchengda/references/orchestration.md +38 -24
- package/skills/weaver-e10-jucailin/SKILL.md +7 -3
- package/skills/weaver-e10-jucailin/references/recruit-output-links.md +33 -0
- package/skills/weaver-e10-jucailin/references/recruit-write.md +2 -0
- package/skills/weaver-e10-meeting/SKILL.md +13 -0
- package/skills/weaver-e10-okr/SKILL.md +11 -0
- package/skills/weaver-e10-okr/references/source-manifest.json +7 -6
- package/skills/weaver-e10-performance/SKILL.md +131 -39
- package/skills/weaver-e10-performance/agents/openai.yaml +48 -17
- package/skills/weaver-e10-performance/references/default-assembly.md +3 -0
- package/skills/weaver-e10-performance/references/extraction-guide.md +17 -3
- package/skills/weaver-e10-performance/references/flow-assess.md +38 -5
- package/skills/weaver-e10-performance/references/scheme-setting-page.md +20 -3
- package/skills/weaver-e10-performance/scripts/assemble_scheme.py +461 -0
- package/skills/weaver-e10-performance/scripts/parse_appraisal_doc.py +41 -0
- package/skills/weaver-e10-plan/SKILL.md +10 -0
- package/skills/weaver-e10-plan/references/source-manifest.json +13 -13
- package/skills/weaver-e10-qiyecheng/SKILL.md +2 -2
- package/skills/weaver-e10-qiyecheng/references/source-manifest.json +9 -9
- package/skills/weaver-e10-reception-flow/SKILL.md +97 -41
- package/skills/weaver-e10-reception-flow/references/guide.md +3 -1
- package/skills/weaver-e10-recruit-stage/SKILL.md +533 -137
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +103 -62
- package/skills/weaver-e10-recruit-stage/lib/interview-conflict.mjs +282 -0
- package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +331 -0
- package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +865 -0
- package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +162 -11
- package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +15 -1
- package/skills/weaver-e10-recruit-stage/lib/report-attachment.mjs +38 -0
- package/skills/weaver-e10-recruit-stage/lib/xiaoe-session.mjs +5 -1
- package/skills/weaver-e10-recruit-stage/references/env-fixed-values.md +6 -2
- package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +26 -21
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +33 -27
- package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +11 -7
- package/skills/weaver-e10-recruit-stage/references/recruit-check-install.md +5 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-detail-process.md +5 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +22 -5
- package/skills/weaver-e10-recruit-stage/references/recruit-failure-fallback.md +42 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +11 -7
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +87 -50
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-template.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +48 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-maint.md +45 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +17 -11
- package/skills/weaver-e10-recruit-stage/references/recruit-my-positions.md +8 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +162 -31
- package/skills/weaver-e10-recruit-stage/references/recruit-platform-compat.md +55 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +75 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-creator.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +12 -8
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +8 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +80 -46
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +11 -7
- package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +12 -8
- package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +10 -6
- package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +15 -11
- package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +7 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +7 -3
- package/skills/weaver-e10-recruit-stage/templates/candidate-evidence.html +119 -0
- package/skills/weaver-e10-recruit-stage/templates/interview-summary.html +322 -0
- package/skills/weaver-e10-recruit-stage/templates/match-report.html +166 -76
- package/skills/weaver-e10-shared/SKILL.md +40 -5
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +11 -1
- package/skills/weaver-e10-shared/references/json-output-contract.md +144 -8
- package/skills/weaver-e10-shared/references/weaver-e10-installation.md +11 -0
- package/skills/weaver-e10-shijingran/references/source-manifest.json +3 -3
- package/skills/weaver-e10-wenshuding/references/source-manifest.json +3 -3
- package/skills/weaver-e10-workflow/references/source-manifest.json +3 -3
- package/skills/weaver-e10-yepiaotong/references/source-manifest.json +5 -5
- package/dist/chunks/chunk-MZVQKQP5.js +0 -2849
- package/dist/chunks/registry-3GQRYP2R.js +0 -27
- package/skills/weaver-e10-jucailin/references/source-manifest.json +0 -152
|
@@ -14,6 +14,8 @@ import { skillRootFromSnapshot } from './snapshot.js';
|
|
|
14
14
|
*/
|
|
15
15
|
const PYTHON_CACHE_FILE = 'python.json';
|
|
16
16
|
let pythonCache;
|
|
17
|
+
/** 只出 md 时的探测结果(不要求 python-docx),与 docx 的缓存分开存。 */
|
|
18
|
+
let pythonCacheAny;
|
|
17
19
|
function runSync(file, args, options = {}) {
|
|
18
20
|
const result = spawnSync(file, args, { encoding: 'utf8', maxBuffer: 16 * 1024 * 1024, ...options });
|
|
19
21
|
return {
|
|
@@ -47,43 +49,83 @@ function lastJsonLine(text) {
|
|
|
47
49
|
return null;
|
|
48
50
|
}
|
|
49
51
|
/**
|
|
50
|
-
*
|
|
52
|
+
* 探测一次解释器,成功返回它的**绝对路径**(`sys.executable`),失败返回 null。
|
|
53
|
+
*
|
|
54
|
+
* 为什么不直接返回命令名:Windows 的 `py` launcher 会读脚本 shebang。`render.py` 第一行是
|
|
55
|
+
* `#!/usr/bin/env python3`,`py render.py` 会被导向 PATH 里的 `python3`(WorkBuddy 自带、
|
|
56
|
+
* 没有 python-docx),而 `py -3 -c "import docx"` 用的是默认版本——**探测通过、执行却失败**,
|
|
57
|
+
* 表现为「明明装了 python-docx 却报缺少 python-docx」。
|
|
58
|
+
* 返回 `sys.executable` 让探测与执行落在同一个解释器上,同时绕开 launcher 的二次选择。
|
|
59
|
+
*/
|
|
60
|
+
function probePython(file, args) {
|
|
61
|
+
const result = spawnSync(file, args, { encoding: 'utf8', maxBuffer: 1024 * 1024 });
|
|
62
|
+
if (result.status !== 0)
|
|
63
|
+
return null;
|
|
64
|
+
const lines = String(result.stdout || '').trim().split(/\r?\n/).filter(Boolean);
|
|
65
|
+
const exe = lines.length ? lines[lines.length - 1].trim() : '';
|
|
66
|
+
return exe || null;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* 依次探测 RECEPTION_PY / python3 / python / py,要求能 `import docx`。
|
|
51
70
|
* 探测结果落盘 7 天省掉每次 0.3~1s;磁盘缓存也要能真跑起来才认(避免升级后命中死路径)。
|
|
71
|
+
*
|
|
72
|
+
* `requireDocx=false` 用于只出内部参考文档(`--mode plan`):md 分支不碰 python-docx,
|
|
73
|
+
* 探测条件也得跟着放宽,否则缺 docx 库的机器连 md 都出不来。
|
|
52
74
|
*/
|
|
53
|
-
export function pickPython(stateDir) {
|
|
54
|
-
if (pythonCache !== undefined)
|
|
75
|
+
export function pickPython(stateDir, requireDocx = true) {
|
|
76
|
+
if (requireDocx && pythonCache !== undefined)
|
|
55
77
|
return pythonCache;
|
|
78
|
+
if (!requireDocx && pythonCacheAny !== undefined)
|
|
79
|
+
return pythonCacheAny;
|
|
80
|
+
// 显式指定优先,原样使用(调用方自己负责指对)
|
|
56
81
|
if (process.env.RECEPTION_PY) {
|
|
57
|
-
|
|
58
|
-
|
|
82
|
+
const envPy = process.env.RECEPTION_PY;
|
|
83
|
+
if (requireDocx)
|
|
84
|
+
pythonCache = envPy;
|
|
85
|
+
else
|
|
86
|
+
pythonCacheAny = envPy;
|
|
87
|
+
return envPy;
|
|
59
88
|
}
|
|
89
|
+
const probe = ['-c', requireDocx ? 'import docx, sys; print(sys.executable)' : 'import sys; print(sys.executable)'];
|
|
60
90
|
const cachePath = join(stateDir, PYTHON_CACHE_FILE);
|
|
61
91
|
const disk = readJson(cachePath);
|
|
62
92
|
if (disk?.py && Date.now() - Number(disk.at || 0) < PYTHON_CACHE_TTL_MS) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
93
|
+
const hit = probePython(disk.py, probe);
|
|
94
|
+
if (hit) {
|
|
95
|
+
if (requireDocx)
|
|
96
|
+
pythonCache = hit;
|
|
97
|
+
else
|
|
98
|
+
pythonCacheAny = hit;
|
|
99
|
+
return hit;
|
|
66
100
|
}
|
|
67
101
|
}
|
|
68
102
|
for (const candidate of ['python3', 'python', 'py']) {
|
|
69
|
-
const
|
|
70
|
-
if (
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
103
|
+
const exe = probePython(candidate, candidate === 'py' ? ['-3', ...probe] : probe);
|
|
104
|
+
if (!exe)
|
|
105
|
+
continue;
|
|
106
|
+
if (requireDocx)
|
|
107
|
+
pythonCache = exe;
|
|
108
|
+
else
|
|
109
|
+
pythonCacheAny = exe;
|
|
110
|
+
try {
|
|
111
|
+
// 缓存绝对路径:下次直接用它,不再经 PATH 解析
|
|
112
|
+
writeJson(cachePath, { py: exe, at: Date.now() });
|
|
79
113
|
}
|
|
114
|
+
catch {
|
|
115
|
+
// 缓存写不进不阻断
|
|
116
|
+
}
|
|
117
|
+
return exe;
|
|
80
118
|
}
|
|
81
|
-
|
|
119
|
+
if (requireDocx)
|
|
120
|
+
pythonCache = null;
|
|
121
|
+
else
|
|
122
|
+
pythonCacheAny = null;
|
|
82
123
|
return null;
|
|
83
124
|
}
|
|
84
125
|
/** 测试用:清掉进程内缓存。 */
|
|
85
126
|
export function resetPythonCache() {
|
|
86
127
|
pythonCache = undefined;
|
|
128
|
+
pythonCacheAny = undefined;
|
|
87
129
|
}
|
|
88
130
|
/**
|
|
89
131
|
* 定位 render.py。优先级:显式参数 → 环境变量 → 技能包内固定相对位置。
|
|
@@ -173,11 +215,40 @@ export async function renderBoth(options) {
|
|
|
173
215
|
parallelMs: Date.now() - startedAt,
|
|
174
216
|
};
|
|
175
217
|
}
|
|
218
|
+
/**
|
|
219
|
+
* 只渲染内部参考文档 md(`--mode plan`)。
|
|
220
|
+
*
|
|
221
|
+
* 返回结构与 renderBoth 对齐,调用方不必为两种模式写两套取值逻辑;
|
|
222
|
+
* docx 侧的耗时与产物一律为空,避免上层误把「没渲染」当成「渲染失败」。
|
|
223
|
+
*/
|
|
224
|
+
export async function renderMdOnly(options) {
|
|
225
|
+
ensureDir(options.outDir);
|
|
226
|
+
const startedAt = Date.now();
|
|
227
|
+
const mdResult = await renderOnly({ ...options, only: 'md' });
|
|
228
|
+
const elapsed = Date.now() - startedAt;
|
|
229
|
+
const files = mdResult.files || [];
|
|
230
|
+
return {
|
|
231
|
+
result: {
|
|
232
|
+
...mdResult,
|
|
233
|
+
files,
|
|
234
|
+
verify: { ...(mdResult.verify || {}), fileCount: files.length },
|
|
235
|
+
},
|
|
236
|
+
docxResult: { ok: true, files: [] },
|
|
237
|
+
mdResult,
|
|
238
|
+
docxMs: 0,
|
|
239
|
+
mdMs: elapsed,
|
|
240
|
+
parallelMs: elapsed,
|
|
241
|
+
};
|
|
242
|
+
}
|
|
176
243
|
/** 供 doc 用:缺 python 时给出可执行的提示而不是堆栈。 */
|
|
177
|
-
export function requirePython(stateDir) {
|
|
178
|
-
const python = pickPython(stateDir);
|
|
244
|
+
export function requirePython(stateDir, requireDocx = true) {
|
|
245
|
+
const python = pickPython(stateDir, requireDocx);
|
|
179
246
|
if (!python) {
|
|
180
|
-
throw receptionEnvironmentError('NO_PYTHON_DOCX', '缺 python3 + python-docx,无法渲染 docx'
|
|
247
|
+
throw receptionEnvironmentError(requireDocx ? 'NO_PYTHON_DOCX' : 'NO_PYTHON', requireDocx ? '缺 python3 + python-docx,无法渲染 docx' : '缺 python3,无法渲染接待参考文档', {
|
|
248
|
+
hint: requireDocx
|
|
249
|
+
? 'pip install python-docx;离线环境只能交付 md'
|
|
250
|
+
: '安装 python3 后重试;只出接待方案(--mode plan)同样需要 python3 跑 render.py',
|
|
251
|
+
});
|
|
181
252
|
}
|
|
182
253
|
return python;
|
|
183
254
|
}
|
|
@@ -2,7 +2,7 @@ import { join, resolve, dirname } from 'node:path';
|
|
|
2
2
|
import { existsSync } from 'node:fs';
|
|
3
3
|
import { readFile, writeFile, mkdir } from 'node:fs/promises';
|
|
4
4
|
import { homedir } from 'node:os';
|
|
5
|
-
import { createRecruitContextLoader, } from '../ehr/operations/recruit.js';
|
|
5
|
+
import { createRecruitContextLoader, isSelfTenant, } from '../ehr/operations/recruit.js';
|
|
6
6
|
import { rsFail } from './errors.js';
|
|
7
7
|
const flowMemo = new Map();
|
|
8
8
|
/**
|
|
@@ -86,9 +86,10 @@ async function readLegacyCacheExtra(baseUrl) {
|
|
|
86
86
|
*/
|
|
87
87
|
const FLOW_MISS_TTL_MS = 6 * 60 * 60 * 1000;
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
89
|
+
* 失败标记放在环境缓存目录之外、且以 `_` 开头命名(`_recruit-stage/flow-miss-<host>.json`):
|
|
90
|
+
* `createRecruitContextLoader` 的磁盘缓存按 `<appId>.json` 精确读取且排除 `_` 开头文件,
|
|
91
|
+
* 辅助标记放同目录也不会干扰命中(2026-11-28 缓存治理后双保险;旧实现「目录内恰好
|
|
92
|
+
* 1 个 json 才命中」时放同目录会把上下文缓存打冷,故历史上必须放目录外)。
|
|
92
93
|
*/
|
|
93
94
|
function flowMissPath(baseUrl) {
|
|
94
95
|
const hostDir = cacheDirFor(baseUrl); // .../env-cache/recruit-ops/<host>
|
|
@@ -228,7 +229,11 @@ async function resolveDefaultRecruitFlow(host, baseUrl, appId, cache) {
|
|
|
228
229
|
}
|
|
229
230
|
catch { /* 接口形态不符/未开放 */ }
|
|
230
231
|
}
|
|
231
|
-
// ③
|
|
232
|
+
// ③ 自用系统兜底(用户指定写死),不影响其他环境。
|
|
233
|
+
// 🔴 2026-11-28 判据升级:自用租户 key 唯一命中即生效,不再强制要求域名匹配。
|
|
234
|
+
// 同一套自用环境有多个入口(www.e-cology.com.cn / 内网 IP / 带端口),
|
|
235
|
+
// 按域名判会漏掉内网入口;tenantKey 与入口地址、菜单权限、业务配置表都无关,最稳定。
|
|
236
|
+
// 旧缓存没有 tenantKey 时退回原来的 selfUse + 域名双守卫,行为不变。
|
|
232
237
|
if (!result) {
|
|
233
238
|
const isSelfUse = String(cache?.selfUse || '') === '1';
|
|
234
239
|
let host = '';
|
|
@@ -238,7 +243,8 @@ async function resolveDefaultRecruitFlow(host, baseUrl, appId, cache) {
|
|
|
238
243
|
catch {
|
|
239
244
|
host = '';
|
|
240
245
|
}
|
|
241
|
-
|
|
246
|
+
const bySelfTenant = isSelfTenant(cache?.tenantKey);
|
|
247
|
+
if (bySelfTenant || (isSelfUse && host === SELFUSE_DEFAULT_FLOW.selfUseHost)) {
|
|
242
248
|
result = { id: SELFUSE_DEFAULT_FLOW.id, name: SELFUSE_DEFAULT_FLOW.name };
|
|
243
249
|
}
|
|
244
250
|
}
|
|
@@ -273,18 +279,26 @@ async function resolveDigitalHumanMenu(host, baseUrl, cache) {
|
|
|
273
279
|
}
|
|
274
280
|
const loaders = new Map();
|
|
275
281
|
export function createRecruitStageContext() {
|
|
276
|
-
|
|
282
|
+
// 每个工厂独立记录「本次调用链」的缓存元信息:
|
|
283
|
+
// loaders 是进程级共享的(同进程多操作复用一次解析),但 lastCacheMeta 若直接读共享 loader,
|
|
284
|
+
// 会把「别的工厂/上一次调用」的元信息误报给当前回执。这里按工厂隔离,未调用过即 null。
|
|
285
|
+
let own = null;
|
|
286
|
+
const fn = (async (host) => {
|
|
277
287
|
const loaderKey = 'shared';
|
|
278
288
|
if (!loaders.has(loaderKey))
|
|
279
289
|
loaders.set(loaderKey, createRecruitContextLoader());
|
|
290
|
+
own = null;
|
|
280
291
|
const cache = await loaders.get(loaderKey).load(host);
|
|
292
|
+
own = loaders.get(loaderKey).lastMeta();
|
|
281
293
|
const baseUrl = (await host.getSession()).baseUrl.replace(/\/+$/, '');
|
|
282
294
|
const [defaultRecruitFlow, digitalHumanMenu] = await Promise.all([
|
|
283
295
|
resolveDefaultRecruitFlow(host, baseUrl, cache.appId, cache),
|
|
284
296
|
resolveDigitalHumanMenu(host, baseUrl, cache),
|
|
285
297
|
]);
|
|
286
298
|
return { ...cache, defaultRecruitFlow, digitalHumanMenu };
|
|
287
|
-
};
|
|
299
|
+
});
|
|
300
|
+
fn.lastCacheMeta = () => own;
|
|
301
|
+
return fn;
|
|
288
302
|
}
|
|
289
303
|
/** 供 operation 内直接取上下文的辅助(失败统一转 rs 错误)。 */
|
|
290
304
|
export async function loadContext(host) {
|
|
@@ -77,6 +77,16 @@ function failureEnvelope(error) {
|
|
|
77
77
|
error: toErrorEnvelope(error),
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* 把上下文缓存元信息挂进回执的 meta.cache(v6)。
|
|
82
|
+
* 抽取成独立函数是为了可单测:注入逻辑本身不该只能靠「跑真环境」验证。
|
|
83
|
+
* meta 为 null(本次未加载上下文,如 schema 类操作)时不产生任何字段。
|
|
84
|
+
*/
|
|
85
|
+
export function attachCacheMeta(result, meta) {
|
|
86
|
+
if (!meta)
|
|
87
|
+
return result;
|
|
88
|
+
return { ...result, meta: { ...(result.meta || {}), cache: meta } };
|
|
89
|
+
}
|
|
80
90
|
async function executeAndPrint(ctx, operation, input) {
|
|
81
91
|
try {
|
|
82
92
|
const host = createRecruitStageHost(ctx);
|
|
@@ -87,7 +97,10 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
87
97
|
continuation: createRecruitStageContinuationSigner(ctx),
|
|
88
98
|
recruitContext: () => contextLoader(host),
|
|
89
99
|
});
|
|
90
|
-
|
|
100
|
+
// 🔴 v6:把上下文缓存的真实状态随回执暴露(meta.cache)。此前技能层完全看不见
|
|
101
|
+
// 「命中/重建、warn、菜单形状、哪些列表没定位到」,只能等业务报错倒推。
|
|
102
|
+
const cacheMeta = contextLoader.lastCacheMeta();
|
|
103
|
+
ctx.output.write(successEnvelope(operation, attachCacheMeta(result, cacheMeta)), { json: true });
|
|
91
104
|
}
|
|
92
105
|
catch (error) {
|
|
93
106
|
// stderr 只写一个 JSON 对象:顶层带平台码(E-XXXX),整段 stderr 可被一次 JSON.parse。
|
|
@@ -95,10 +108,10 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
95
108
|
const env = failureEnvelope(error);
|
|
96
109
|
if (shouldReportPlatformError(error)) {
|
|
97
110
|
const pe = toPlatformError(error);
|
|
98
|
-
|
|
111
|
+
ctx.output.error({ ...env, code: pe.code, message: pe.message });
|
|
99
112
|
}
|
|
100
113
|
else {
|
|
101
|
-
|
|
114
|
+
ctx.output.error(env);
|
|
102
115
|
}
|
|
103
116
|
process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
|
|
104
117
|
}
|
|
@@ -23,6 +23,7 @@ import { randomUUID } from 'node:crypto';
|
|
|
23
23
|
import { rsSuccess, schemaOf } from './types.js';
|
|
24
24
|
import { rsFail, rsValidationError, rsConfirmationError } from '../errors.js';
|
|
25
25
|
import { objIdOf, formIdOf, getFormLayout, getFormLayoutMeta, saveFormData, runEsb, getFormButtons, resolvePersonId, getDsOptions, getDsOptionsFull, findMenuNode, resolveCurrentUser, buildCardUrl, talentLinkExtra, pickSaveButtonActions, computeRequiredHint, randHex32, talentUiCardUrl, resolveInterviewListUrlOrNative, dsOptionsSnapshot, restoreDsOptions, invalidateEnvCache, verifySubmitted, expectedFields, probeCreatePermission, } from '../shared.js';
|
|
26
|
+
import { toMenuList } from '../../ehr/operations/shared.js';
|
|
26
27
|
// 面试计划表单字段 dataKey(缓存 fields 里取)。
|
|
27
28
|
// 注意:digital_id 不放入此列表——它只在「面试方式含 AI」时才是必填,
|
|
28
29
|
// 放进来会让未部署数字人的环境连非 AI 面试都建不了(单独按需校验)。
|
|
@@ -450,7 +451,11 @@ async function callAssignedInterview(host, formDataId) {
|
|
|
450
451
|
// 页面判断用松散比较 res.code == '200',保持一致(code 可能是数字或字符串)
|
|
451
452
|
const ok = String(r?.code) === '200' || r?.status === true || r?.success === true;
|
|
452
453
|
if (!ok)
|
|
453
|
-
throw rsFail('分配面试(assignedInterview)失败:' + (r?.msg || JSON.stringify(r).slice(0, 200))
|
|
454
|
+
throw rsFail('分配面试(assignedInterview)失败:' + (r?.msg || JSON.stringify(r).slice(0, 200))
|
|
455
|
+
// 🔴 2026-11-28 真机复现(188,未配流程的职位):① 保存已成功、记录已落库,只有 ② 分配失败。
|
|
456
|
+
// 不写清楚时用户只看到列表里一条「未开始」的面试,以为是技能把状态写错了。
|
|
457
|
+
+ '。⚠️ 面试记录已保存(formDataId=' + formDataId + ',状态停留在表单默认值,通常为「未开始」);'
|
|
458
|
+
+ '不要重新 apply(会重复创建面试记录)。请到面试管理列表查看该记录,修正职位流程配置后用 updateTalentId 走更新通道。常见原因:职位未配置招聘流程(流程 ID 为空)。');
|
|
454
459
|
return r?.data || {};
|
|
455
460
|
}
|
|
456
461
|
async function execSaveActions(plan, formDataId) {
|
|
@@ -475,7 +480,8 @@ async function execSaveActions(plan, formDataId) {
|
|
|
475
480
|
const ok = r?.status !== false;
|
|
476
481
|
executed.push({ ...base, ok, msg: r?.successMsg || r?.failMsg || '' });
|
|
477
482
|
if (!ok)
|
|
478
|
-
throw rsFail('「保存」后续动作「' + (a.name || a.id) + '」执行失败:' + (r?.failMsg || '未知原因')
|
|
483
|
+
throw rsFail('「保存」后续动作「' + (a.name || a.id) + '」执行失败:' + (r?.failMsg || '未知原因')
|
|
484
|
+
+ '。⚠️ 面试记录已保存并分配成功(formDataId=' + formDataId + '),该后续动作不影响面试记录本身;不要重新 apply(会重复创建)。');
|
|
479
485
|
}
|
|
480
486
|
else if (a.actionType === 'jsCode') {
|
|
481
487
|
if (ASSIGNED_API_RE.test(a.ecode || '')) {
|
|
@@ -537,13 +543,18 @@ async function resolveInterviewListUrl(ctx) {
|
|
|
537
543
|
if (cachedMenu?.listId && cachedMenu.combinationId) {
|
|
538
544
|
return `${baseUrl}/ebdapp/view/${appId}/combination/${cachedMenu.combinationId}-${cachedMenu.listId || cachedMenu.cusMenuId}/search/${cachedMenu.pageId || cachedMenu.cusMenuId}?terminal=PC&cusMenuId=${cachedMenu.cusMenuId}`;
|
|
539
545
|
}
|
|
540
|
-
const r = await host.request({ path: `/api/cusapp/app/allMenus?isFront=1&appId=${appId}&terminalType=PC`, method: 'GET' });
|
|
541
546
|
const flat = [];
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
+
try {
|
|
548
|
+
const r = await host.request({ path: `/api/cusapp/app/allMenus?isFront=1&appId=${appId}&terminalType=PC`, method: 'GET' });
|
|
549
|
+
(function walk(ns) { for (const n of toMenuList(ns))
|
|
550
|
+
if (n && typeof n === 'object') {
|
|
551
|
+
flat.push(n);
|
|
552
|
+
walk(n.children ?? n.childs);
|
|
553
|
+
} })(r?.data);
|
|
554
|
+
}
|
|
555
|
+
catch {
|
|
556
|
+
return null; // 菜单不可用:调用方按「没找到」处理
|
|
557
|
+
}
|
|
547
558
|
const node = findMenuNode(flat, ['面试管理', '面试安排列表', '面试安排'], (n) => n.combinationId && n.id && n.pageId);
|
|
548
559
|
if (!node)
|
|
549
560
|
return null;
|
|
@@ -782,7 +793,6 @@ async function applyCore(args, env, payload) {
|
|
|
782
793
|
interviewer: plan.summary.interviewer,
|
|
783
794
|
viewLink: detailUrl ? `[查看 ${plan.cand.name || ''} 的面试安排详情](${detailUrl})` : null,
|
|
784
795
|
listLocateLink: listLocateUrl ? `[打开面试管理列表](${listLocateUrl})` : null,
|
|
785
|
-
agentNote: '产物 = 两个 Markdown 链接(平台实证可点击):① viewLink 面试安排详情单页(原样搬运,不改)② listLocateLink 面试列表——若技能「固定参数表」配置了本租户的固定页面路由,按 recruit-output-links.md 覆盖规则用固定路由替换 path 段(origin 取自 viewLink),否则原样搬运。按顺序放回答正文,缺哪个只给另一个、不输出半截。不要包 browsertool / <artifact> 标签。',
|
|
786
796
|
aiPlan: plan.isAI && plan.aiPlanPicked ? { id: plan.aiPlanPicked.id, name: plan.aiPlanPicked.name } : undefined,
|
|
787
797
|
saveActions: actionsRun.executed,
|
|
788
798
|
verification: { checked: verification.checked, mismatches: verification.mismatches, unavailable: verification.unavailable || null },
|
|
@@ -997,7 +1007,6 @@ async function batchApply(args, env) {
|
|
|
997
1007
|
failed,
|
|
998
1008
|
items: results,
|
|
999
1009
|
resultTable: lines.join('\n'),
|
|
1000
|
-
agentNote: '把 resultTable 原样放回答正文(这是本次批量约面的结果清单);失败/部分成功的条目要连同 message 一起说清楚,不要只报总数。',
|
|
1001
1010
|
});
|
|
1002
1011
|
}
|
|
1003
1012
|
export const interviewArrangeOperations = [
|
|
@@ -1022,7 +1031,7 @@ export const interviewArrangeOperations = [
|
|
|
1022
1031
|
capability: 'recruit.interview.arrange',
|
|
1023
1032
|
risk: 'write',
|
|
1024
1033
|
requiresConfirmation: true,
|
|
1025
|
-
inputSchema: schemaOf({ ...baseInput, confirm: { type: 'boolean' }, continuation: { type: 'string' } }, {}),
|
|
1034
|
+
inputSchema: schemaOf({ ...baseInput, confirm: { type: 'boolean' }, continuation: { type: 'string' } }, { required: ['confirm', 'continuation'] }),
|
|
1026
1035
|
handler: apply,
|
|
1027
1036
|
},
|
|
1028
1037
|
{
|
|
@@ -289,7 +289,7 @@ export const interviewFeedbackOperations = [
|
|
|
289
289
|
feedbackId: { type: 'string' }, planIndex: { type: 'integer', minimum: 0 },
|
|
290
290
|
result: { type: 'string' }, comment: { type: 'string' },
|
|
291
291
|
confirm: { type: 'boolean' }, continuation: { type: 'string' },
|
|
292
|
-
}, {}),
|
|
292
|
+
}, { required: ['confirm', 'continuation'] }),
|
|
293
293
|
handler: apply,
|
|
294
294
|
},
|
|
295
295
|
];
|