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
|
@@ -4,11 +4,11 @@ description: 发送消息通知催促面试官填写面试评价(runEsb 动作
|
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# 催促面试评价
|
|
7
|
-
> 本文档中的 `${...}` 形参(表单 objId / 列表 listId / EB 页面 viewId·pageId / 应用 appId / 动作流 id)为**租户相关值**:表单 objId 经 `recruit-resolve-metadata.md` 的 tag 链运行时解析;其余由部署参数提供(**可经 `allMenus` 菜单树自动发现**,见 `recruit-resolve-metadata.md` §3.1);字段 ID(field_937
|
|
7
|
+
> 本文档中的 `${...}` 形参(表单 objId / 列表 listId / EB 页面 viewId·pageId / 应用 appId / 动作流 id)为**租户相关值**:表单 objId 经 `recruit-resolve-metadata.md` 的 tag 链运行时解析;其余由部署参数提供(**可经 `allMenus` 菜单树自动发现**,见 `recruit-resolve-metadata.md` §3.1);字段 ID(field_937…)依当前租户表单而定,经 `ds/fields` 运行时获取(本技能不内置字典快照)。
|
|
8
8
|
|
|
9
9
|
## 1. 基础信息
|
|
10
10
|
|
|
11
|
-
> 🔴 **CLI 入口(本能力在 `ehr` 资源下,不在 recruit-stage)**:`weaver-work-cli --json ehr run ehr.recruit.candidate.interview.feedback.urge.prepare --input-json '{"talentId":"<人才id>"}'` → 摘要确认 → `... urge.apply`(带 `confirm:true` + `
|
|
11
|
+
> 🔴 **CLI 入口(本能力在 `ehr` 资源下,不在 recruit-stage)**:`weaver-work-cli --json ehr run ehr.recruit.candidate.interview.feedback.urge.prepare --input-json '{"talentId":"<人才id>"}'` → 摘要确认 → `... urge.apply`(带 `confirm:true` + `continuation`,取自回包 `data.continuation`)。入参只有 `talentId`;不要传 `--notify`(已下线)。
|
|
12
12
|
- 接口名称:催促面试评价(触发动作流 runEsb)
|
|
13
13
|
- 请求方式:`POST`
|
|
14
14
|
- 去域名路径:`/api/ebuilder/form/esb/runEsb`
|
|
@@ -61,11 +61,15 @@ POST /api/ebuilder/form/esb/runEsb
|
|
|
61
61
|
- **确认摘要模板(触发前必展示,必须带出定位键)**:
|
|
62
62
|
> 即将向 **姓名(手机:XXX | `talentId=XXX`)** 的面试官发送「请填写面试评价」系统通知:
|
|
63
63
|
> - 面试主题:XXX | 面试官:XXX
|
|
64
|
-
> 这是外部通知,请确认对象无误——回复「确认催」后我才实际发送。
|
|
65
64
|
- **姓名来源(script 实测防坑)**:确认摘要中「姓名」取人才详情 BaseInfo `talent.hrm.name`(最准),不取面试主题 `subject` 前缀——新建未挂职位的候选人 subject 可能为 `undefined-…`/`null-…`,取前缀会得「undefined」。若 BaseInfo 取不到再回退 subject 前缀并清洗 `^(undefined|null)\s*-`。
|
|
65
|
+
> 这是外部通知,请确认对象无误——回复「确认催」后我才实际发送。
|
|
66
66
|
|
|
67
67
|
## 10. 注意事项
|
|
68
68
|
- **外部通知,默认不触发,且交互上明示**:用户一句话「催评」只到定位+确认摘要;除非用户明确说「确认催/现在发」,否则只说明「可催评」,不实际调用,也不谎报已发。
|
|
69
69
|
- **定位前置**:催评前必须先定位到唯一候选人(见 §3),命中多条先消歧,绝不自动取第一条。
|
|
70
70
|
- 动作流 `esbActionIds` 跨环境会变(迁入/升级后失效),正式版走 §4 按钮配置解析(getListButtons 取 esb 按钮 id),不写死、不依赖部署参数。
|
|
71
71
|
- **L3 不得因超时盲目重试**:若首次 `runEsb` 疑似超时,须先查询该面试评价的反馈状态确认未发送,再决定是否补发;严禁直接重试导致对面试官重复发送通知。
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
| 创建 / 新建 / 生成 / 生产 / 做 / 搞 / 弄 / 整 / 写 / 出 / 建 / 开 / 加 / 发 / 上线 / 拟 / 起草 / 编 / 来一份 / 要一份 / 整一份 / 补一个 / 招 | §1 职位行 | 创建一个销售经理的职位 / 生成一份销售经理的JD / 生产一个销售的岗位 / 做一个项目经理的招聘启事 / 招个销售 |
|
|
36
36
|
|
|
37
37
|
> 完整判定式、正反例与边界见 [`recruit-jd-create.md`](recruit-jd-create.md) §语义别名与边界(**任务1 局部口径**)。
|
|
38
|
-
|
|
39
38
|
#### 🔴 2.1.1 「建立 / 搭建」不单独构成路由(2026-11-10 用户拍板)
|
|
40
39
|
|
|
40
|
+
|
|
41
41
|
「建立」的**字面里含「建」**,但它后缀的是「立」,不是业务对象;单独出现时既可能指建职位,也可能指建人才建档,
|
|
42
42
|
还可能只是打字/语音把「简历」或「岗位」打错了。**猜错的代价是写错表**(职位表 vs 人才表),所以:
|
|
43
43
|
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
| 动作 | 对象 | 示例 |
|
|
85
85
|
|---|---|---|
|
|
86
86
|
| 看 / 查 / 列出 / 有哪些 / 日程 / 日历 | 面试 / 面试安排 / 面试日程 / 面试表 / 面试日历 / 待反馈 | 面试日程 / 这周谁要来面 / 我有哪些面试 / 谁还没反馈面试 |
|
|
87
|
-
|
|
88
87
|
> **HR 侧面试叫法(2026-11-10 联网核对后收)**:
|
|
88
|
+
|
|
89
89
|
> - 轮次:初面 / 一面 / 二面 / 三面 / 复面 / 复试 / 终面 / HR 面 / HRBP 面 / 业务面 / 技术面(Tech 面)/ 交叉面 / 加面
|
|
90
90
|
> - 形态:现场面(F2F)/ 视频面 / 电话面 / AI 面 / 群面(GA / AC)/ 压力面 / 1on1 / CV 面(照简历追问)/ 初筛电话(Screening call)
|
|
91
91
|
> - 🔴 这些词里 **只有形态**(现场/视频/电话/AI)能落成面试表的枚举值;**轮次词**(一面/终面/HR面/业务面)落成 `rounds`+`session`
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
| HC / 编制 / 定岗定编 / 提招聘需求 / 申请招人 / 走审批 / 审核通过再发职位 | 本技能对招聘需求**只有只读列表与计数**,不能新建需求、不能发起或推进审核 |
|
|
192
192
|
| JR / Job Requirement / 任职要求清单 | JR 是**任职要求**,不是职位本身;用户要的是「JD / 岗位」时才建职位,只说「JR」按任职要求理解、不建职位 |
|
|
193
193
|
| 捞一捞 / 进池子 / 泡池子 / 开奖 / 挂了 / 凉了 / 飞 Offer / 海投 / 海王 / 等通知 / 已读不回 / 被养鱼 | 求职者侧校招/社招黑话,不是 HR 系统操作 |
|
|
194
|
-
| 长名单 Longlist / 短名单 Shortlist / 推荐报告 Profile / 寻访 Mapping / BD / CC / 猎头推荐 / 猎头账号 | **猎头侧概念**,且自用环境**已裁掉猎头模块**(101 独有的 43
|
|
194
|
+
| 长名单 Longlist / 短名单 Shortlist / 推荐报告 Profile / 寻访 Mapping / BD / CC / 猎头推荐 / 猎头账号 | **猎头侧概念**,且自用环境**已裁掉猎头模块**(101 独有的 43 张猎头/背调/薪酬表单在自用被裁)——收了会误路由到不存在的能力 |
|
|
195
195
|
| 背调 / BGC / Reference Check / 谈薪 / Argue / A 一下 / Counter Offer / Turndown Offer / Reject Offer / 发到 BOSS / 上线到第三方网站 | 无对应 operation,不承诺 |
|
|
196
196
|
| 改期 / 改面试时间 / 取消面试 / 撤面试 / 放鸽子 / 爽约 / 候选人没来 | 无改期与取消 operation;「未参与」由动作流按到期回写,不是用户可下的命令 → 说明边界、导向页面 |
|
|
197
197
|
| 删掉 / 修改已建职位、删人才 | 技能不删不改已有数据,说明边界并停止 |
|
|
@@ -203,3 +203,7 @@
|
|
|
203
203
|
| 招聘漏斗 / 转化率 / 成单率 Fulfill rate / Hitting rate / 渠道效果 | 属招聘统计口径 → 指向聚才林「招聘统计」,本技能不做 |
|
|
204
204
|
|
|
205
205
|
> 新增同义词只改本文件与两处摘要(`SKILL.md` / `agents/openai.yaml`),不再往各 reference 散着加例句;口语变体若真机发现误命中,直接从本文件删除即可。
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>简历检索与人岗匹配证据</title>
|
|
7
|
+
<style>
|
|
8
|
+
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
9
|
+
body { background: #f5f5f5; color: #333; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.6; }
|
|
10
|
+
/* 宽度自适应右侧面板:最大 1000,面板更窄时铺满;不按视口切单列。 */
|
|
11
|
+
.page { width: 100%; max-width: 1000px; margin: 0 auto; padding: 18px 14px 28px; }
|
|
12
|
+
.head { background: #fff; border: 1px solid #e5e5e5; border-left: 3px solid #5d9cec; border-radius: 4px; padding: 14px 18px; margin-bottom: 12px; }
|
|
13
|
+
.head h1 { font-size: 18px; font-weight: 600; margin-bottom: 2px; }
|
|
14
|
+
.head .sub { font-size: 13px; color: #959595; }
|
|
15
|
+
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: #fff; border: 1px solid #e5e5e5; border-radius: 4px; padding: 0; margin-bottom: 12px; overflow: hidden; }
|
|
16
|
+
.num { min-width: 0; padding: 11px 16px; border-left: 1px solid #f0f0f0; }
|
|
17
|
+
.num:first-child { border-left: none; }
|
|
18
|
+
.num .k { font-size: 12px; color: #959595; }
|
|
19
|
+
.num .v { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
20
|
+
.card { background: #fff; border: 1px solid #e5e5e5; border-radius: 4px; padding: 14px 14px; margin-bottom: 12px; }
|
|
21
|
+
.card-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; flex-wrap: wrap; }
|
|
22
|
+
.card-hd > div:first-child { flex: 1 1 200px; min-width: 0; }
|
|
23
|
+
.nm { font-size: 16px; font-weight: 600; word-break: break-word; }
|
|
24
|
+
.nm a { color: #333; text-decoration: none; }
|
|
25
|
+
.nm a:hover { color: #5d9cec; }
|
|
26
|
+
.meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px 10px; font-size: 13px; color: #777; margin-top: 5px; }
|
|
27
|
+
.meta span { margin-right: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
28
|
+
.meta em { font-style: normal; color: #aaa; margin-right: 4px; }
|
|
29
|
+
.badge { display: inline-block; max-width: 100%; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 2px; white-space: normal; overflow-wrap: anywhere; text-align: left; line-height: 1.5; }
|
|
30
|
+
.verdict-box { flex: 0 1 auto; min-width: 0; max-width: 46%; text-align: right; }
|
|
31
|
+
.rank-no { font-size: 12px; color: #959595; margin-top: 3px; }
|
|
32
|
+
.b-high { background: #f6ffed; color: #52c41a; }
|
|
33
|
+
.b-mid { background: #fffbe6; color: #d48806; }
|
|
34
|
+
.b-low { background: #fff1f0; color: #ff4d4f; }
|
|
35
|
+
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
|
|
36
|
+
.sec { min-width: 0; }
|
|
37
|
+
.sec h3 { font-size: 13px; font-weight: 600; color: #666; margin-bottom: 6px; }
|
|
38
|
+
.it { font-size: 14px; padding: 4px 0 4px 10px; border-left: 2px solid #f0f0f0; margin-bottom: 6px; overflow-wrap: anywhere; }
|
|
39
|
+
.it.empty { color: #aaa; border-left-color: #f5f5f5; }
|
|
40
|
+
.it b { font-weight: 600; }
|
|
41
|
+
.it .rg { color: #959595; font-size: 12px; margin-left: 6px; font-variant-numeric: tabular-nums; }
|
|
42
|
+
.it p { color: #666; font-size: 13px; margin-top: 2px; }
|
|
43
|
+
.more-x { font-size: 12px; color: #959595; }
|
|
44
|
+
.ev { margin-top: 12px; background: #ecf5ff; border-radius: 4px; padding: 10px 12px; font-size: 14px; color: #1d4e8f; overflow-wrap: anywhere; white-space: pre-wrap; }
|
|
45
|
+
.rk { margin-top: 8px; background: #fffbe6; border-radius: 4px; padding: 10px 12px; font-size: 14px; color: #8a5a00; overflow-wrap: anywhere; white-space: pre-wrap; }
|
|
46
|
+
footer { margin-top: 22px; padding-top: 12px; border-top: 1px solid #e5e5e5; font-size: 12px; color: #959595; line-height: 1.8; }
|
|
47
|
+
/* 不用视口断点改版式:左右两列始终保持,窄屏靠 ellipsis/换行收口。 */
|
|
48
|
+
|
|
49
|
+
</style>
|
|
50
|
+
</head>
|
|
51
|
+
<body>
|
|
52
|
+
<div class="page">
|
|
53
|
+
<div class="head">
|
|
54
|
+
<h1 id="title">简历检索与人岗匹配证据</h1>
|
|
55
|
+
<div class="sub" id="sub">—</div>
|
|
56
|
+
</div>
|
|
57
|
+
<section class="nums" id="nums"></section>
|
|
58
|
+
<section id="cards"></section>
|
|
59
|
+
<footer>
|
|
60
|
+
匹配度为 AI 依据候选人真实档案评估,非系统存储分值;证据取自工作经历与项目经历原文,缺失字段留「—」,不补造。<br>
|
|
61
|
+
数据来源:E10 人才库 · 生成于 <span id="gen">—</span>
|
|
62
|
+
</footer>
|
|
63
|
+
</div>
|
|
64
|
+
<script>
|
|
65
|
+
// === 数据注入区(Agent 生成 HTML 时替换此段) ===
|
|
66
|
+
const EVIDENCE_DATA = __EVIDENCE_DATA_PLACEHOLDER__;
|
|
67
|
+
// 结构:{ position, baseUrl, generatedAt, keyword, total, shown,
|
|
68
|
+
// candidates: [{ talentId, name, degree, college, pos, industry, works:[{co,pos,range,desc}], projs:[{name,range,desc}], evidence, risk, verdict }] }
|
|
69
|
+
|
|
70
|
+
function esc(s) { return String(s == null ? '' : s).replace(/[&<>"]/g, c => ({ '&': '&', '<': '<', '>': '>', '"': '"' }[c])); }
|
|
71
|
+
function cut(s, n) { const t = String(s || '').replace(/\s+/g, ' ').trim(); return t.length > n ? t.slice(0, n) + '…' : t; }
|
|
72
|
+
function badgeClass(v) { return /推荐|最高|强/.test(v || '') ? 'b-high' : /不考虑|不推荐|弱/.test(v || '') ? 'b-low' : 'b-mid'; }
|
|
73
|
+
const dash = (v) => String(v == null ? '' : v).trim() || '—';
|
|
74
|
+
const worksOf = (c) => (Array.isArray(c.works) ? c.works : Array.isArray(c.workExperience) ? c.workExperience : Array.isArray(c.work) ? c.work : []);
|
|
75
|
+
const projsOf = (c) => (Array.isArray(c.projs) ? c.projs : Array.isArray(c.projectExperience) ? c.projectExperience : Array.isArray(c.project) ? c.project : []);
|
|
76
|
+
|
|
77
|
+
function render(d) {
|
|
78
|
+
const base = d.baseUrl || '';
|
|
79
|
+
document.getElementById('title').textContent = `${d.position} · 简历检索与人岗匹配证据`;
|
|
80
|
+
document.getElementById('sub').textContent = `关键词「${d.keyword}」命中 ${d.total} 条 · 展示 ${d.shown} 人 · ${d.generatedAt}`;
|
|
81
|
+
document.getElementById('gen').textContent = d.generatedAt || '';
|
|
82
|
+
document.getElementById('nums').innerHTML = [
|
|
83
|
+
{ k: '命中总数', v: d.total },
|
|
84
|
+
{ k: '本次展示', v: d.shown },
|
|
85
|
+
{ k: '评估口径', v: '证据制' },
|
|
86
|
+
].map(x => `<div class="num"><div class="k">${x.k}</div><div class="v">${x.v}</div></div>`).join('');
|
|
87
|
+
|
|
88
|
+
const rank = (l) => (l === 'high' ? 2 : l === 'mid' ? 1 : 0);
|
|
89
|
+
const list = (d.candidates || []).slice().sort((x, y) => rank(y.level) - rank(x.level));
|
|
90
|
+
document.getElementById('cards').innerHTML = list.map((c, ci) => {
|
|
91
|
+
const card = c.talentId ? `${base}/sp/ebdpage/view/1343164177628012608?talentId=${c.talentId}` : '';
|
|
92
|
+
const name = card ? `<a href="${card}" target="_blank">${esc(c.name)}</a>` : esc(c.name);
|
|
93
|
+
const worksArr = worksOf(c);
|
|
94
|
+
const projsArr = projsOf(c);
|
|
95
|
+
const works = worksArr.slice(0, 3).map(w => `<div class="it"><b>${esc(dash(w.co || w.company))}</b><span class="rg">${esc([w.pos, w.range].filter(Boolean).join(' '))}</span>${w.desc ? `<p>${esc(cut(w.desc, 160))}</p>` : ''}</div>`).join('');
|
|
96
|
+
const projs = projsArr.slice(0, 3).map(p => `<div class="it"><b>${esc(dash(p.name || p.co))}</b><span class="rg">${esc(p.range)}</span>${p.desc ? `<p>${esc(cut(p.desc, 160))}</p>` : ''}</div>`).join('');
|
|
97
|
+
const moreW = worksArr.length > 3 ? `<div class="more-x">另有 ${worksArr.length - 3} 段</div>` : '';
|
|
98
|
+
const moreP = projsArr.length > 3 ? `<div class="more-x">另有 ${projsArr.length - 3} 个</div>` : '';
|
|
99
|
+
return `<article class="card">
|
|
100
|
+
<div class="card-hd">
|
|
101
|
+
<div><div class="nm">${name}</div>
|
|
102
|
+
<div class="meta"><span><em>学历</em>${esc(dash(c.degree))}</span><span><em>院校</em>${esc(dash(c.college))}</span><span><em>当前职位</em>${esc(dash(c.pos))}</span><span><em>行业</em>${esc(dash(c.industry))}</span></div>
|
|
103
|
+
</div>
|
|
104
|
+
<div class="verdict-box"><div class="badge ${badgeClass(c.verdict)}">${esc(c.verdict)}</div><div class="rank-no">排名 #${ci + 1}</div></div>
|
|
105
|
+
</div>
|
|
106
|
+
<div class="cols">
|
|
107
|
+
<div class="sec"><h3>工作经历</h3>${works || '<div class="it empty">档案未提供工作经历</div>'}${moreW}</div>
|
|
108
|
+
<div class="sec"><h3>项目经验</h3>${projs || '<div class="it empty">档案未提供项目经验</div>'}${moreP}</div>
|
|
109
|
+
</div>
|
|
110
|
+
${c.evidence ? `<div class="ev">${esc(c.evidence)}</div>` : ''}
|
|
111
|
+
${c.risk ? `<div class="rk">${esc(c.risk)}</div>` : ''}
|
|
112
|
+
</article>`;
|
|
113
|
+
}).join('');
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
render(EVIDENCE_DATA);
|
|
117
|
+
</script>
|
|
118
|
+
</body>
|
|
119
|
+
</html>
|
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>面试安排汇总</title>
|
|
7
|
+
<style>
|
|
8
|
+
|
|
9
|
+
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
10
|
+
:root { --bg:#f5f5f5; --card:#fff; --line:#e5e5e5; --text:#333; --muted:#959595; --accent:#5d9cec; --warn:#faad14; --danger:#ff4d4f; --ok:#52c41a; }
|
|
11
|
+
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
|
|
12
|
+
/* 报告按 1000 定宽设计,但宽度 100% 自适应右侧面板:面板窄于 1000 时不居中留白、直接铺满;
|
|
13
|
+
不靠视口断点改列数,避免小E 面板差几像素就触发 3+1 / 状态掉行。 */
|
|
14
|
+
.page { width: 100%; max-width: 1000px; margin: 0 auto; padding: 18px 14px 28px; }
|
|
15
|
+
.rule-btn { border: 1px solid #d9ecff; background: #ecf5ff; color: #2b6cb0; font-size: 13px; padding: 4px 10px; border-radius: 2px; cursor: pointer; white-space: nowrap; flex: 0 0 auto; }
|
|
16
|
+
.rule-btn:hover { background: #ddedff; }
|
|
17
|
+
.hd-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
|
|
18
|
+
.hd-row > div:first-child { flex: 1; min-width: 0; }
|
|
19
|
+
.modal[hidden] { display: none; }
|
|
20
|
+
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 20; }
|
|
21
|
+
.modal-box { background: #fff; border-radius: 4px; max-width: 760px; width: 100%; max-height: 86vh; overflow: auto; }
|
|
22
|
+
.modal-hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #f0f0f0; font-size: 15px; font-weight: 600; }
|
|
23
|
+
.modal-x { border: none; background: none; font-size: 18px; line-height: 1; color: #959595; cursor: pointer; }
|
|
24
|
+
.modal-bd { padding: 14px 18px 18px; }
|
|
25
|
+
.m-sub { font-size: 13px; font-weight: 600; margin: 6px 0 6px; }
|
|
26
|
+
.m-note { font-size: 12px; color: #666; line-height: 1.8; margin: 6px 0 10px; }
|
|
27
|
+
.rule-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 12px; }
|
|
28
|
+
.rule-table th { background: #f7f7f7; text-align: left; padding: 6px 8px; color: #666; font-weight: 400; border-bottom: 1px solid var(--line); }
|
|
29
|
+
.rule-table td { padding: 6px 8px; border-bottom: 1px solid #f5f5f5; color: #333; vertical-align: top; line-height: 1.7; }
|
|
30
|
+
.rule-table td:first-child { white-space: nowrap; font-weight: 600; }
|
|
31
|
+
.header { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 4px; padding: 14px 18px; margin-bottom: 12px; }
|
|
32
|
+
.crumb { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
|
|
33
|
+
h1 { font-size: 18px; font-weight: 600; margin: 0 0 2px; }
|
|
34
|
+
.sub { font-size: 12px; color: var(--muted); }
|
|
35
|
+
.verdict { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 14px 18px; margin-bottom: 12px; }
|
|
36
|
+
.verdict .lead { font-size: 14px; font-weight: 500; }
|
|
37
|
+
.verdict .lead b { font-weight: 600; color: var(--danger); }
|
|
38
|
+
.verdict .lead b.ok { color: var(--ok); }
|
|
39
|
+
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 4px; }
|
|
40
|
+
.num { min-width: 0; padding: 11px 12px; border-left: 1px solid #f0f0f0; }
|
|
41
|
+
.num:first-child { border-left: none; }
|
|
42
|
+
.num .k { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
43
|
+
.num .v { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
44
|
+
.num .v small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 3px; }
|
|
45
|
+
.block { margin-bottom: 12px; }
|
|
46
|
+
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 8px; }
|
|
47
|
+
.block-head h2 { font-size: 15px; font-weight: 600; }
|
|
48
|
+
.block-head span { font-size: 12px; color: var(--muted); }
|
|
49
|
+
.list, .cf-list { background: var(--card); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
|
|
50
|
+
.row { display: grid; grid-template-columns: 82px minmax(0, 1fr) minmax(230px, auto); gap: 12px; padding: 9px 14px; border-top: 1px solid #f0f0f0; align-items: center; }
|
|
51
|
+
.row:first-child { border-top: none; }
|
|
52
|
+
.row:hover { background: #fafafa; }
|
|
53
|
+
.when b { display: block; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
54
|
+
.when i { display: block; font-style: normal; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
55
|
+
.who { min-width: 0; }
|
|
56
|
+
.who .nm { font-size: 15px; font-weight: 600; }
|
|
57
|
+
.who .nm a { color: var(--text); text-decoration: none; }
|
|
58
|
+
.who .nm a:hover { color: var(--accent); }
|
|
59
|
+
.who .pos { font-size: 13px; color: var(--muted); margin-left: 6px; font-weight: 400; }
|
|
60
|
+
.tags { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px; }
|
|
61
|
+
.tg { font-size: 12px; padding: 1px 6px; border-radius: 2px; background: #f2f2f2; color: #666; }
|
|
62
|
+
.tg.tp { background: #ecf5ff; color: var(--accent); }
|
|
63
|
+
.side { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; white-space: nowrap; min-width: 0; }
|
|
64
|
+
.side .iv { font-size: 13px; color: var(--muted); max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
|
|
65
|
+
.st { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 6px; border-radius: 2px; white-space: nowrap; }
|
|
66
|
+
.st-wait { background: #ecf5ff; color: var(--accent); }
|
|
67
|
+
.st-done { background: #f6ffed; color: var(--ok); }
|
|
68
|
+
.st-warn { background: #fffbe6; color: #d48806; }
|
|
69
|
+
.st-off { background: #f5f5f5; color: var(--muted); }
|
|
70
|
+
.cf-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
|
|
71
|
+
.cf-head { padding: 12px 18px 8px; border-bottom: 1px solid #f0f0f0; }
|
|
72
|
+
.cf-head h2 { font-size: 15px; font-weight: 600; color: var(--danger); }
|
|
73
|
+
.cf-head h2.g { color: #959595; }
|
|
74
|
+
.cf-wrap.g { border-color: #e5e5e5; }
|
|
75
|
+
.cf.g .arrow { color: #959595; }
|
|
76
|
+
.cf-wrap + .cf-wrap { margin-top: 10px; }
|
|
77
|
+
.cf-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
|
|
78
|
+
.cf { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 9px 14px; border-top: 1px solid #f5f5f5; font-size: 14px; }
|
|
79
|
+
.cf:first-of-type { border-top: none; }
|
|
80
|
+
.cf .p { font-weight: 600; }
|
|
81
|
+
.cf .p span { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
|
|
82
|
+
.cf .pair { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
|
|
83
|
+
.cf .one i { font-style: normal; color: var(--muted); font-size: 12px; margin-left: 4px; font-variant-numeric: tabular-nums; }
|
|
84
|
+
.cf .arrow { color: var(--danger); font-size: 12px; }
|
|
85
|
+
.none { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; font-size: 14px; color: var(--ok); }
|
|
86
|
+
.more { display: block; width: 100%; margin-top: 8px; padding: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 4px; color: var(--muted); font-size: 13px; cursor: pointer; }
|
|
87
|
+
.more:hover { color: var(--accent); border-color: #d9ecff; }
|
|
88
|
+
.day { margin-bottom: 14px; }
|
|
89
|
+
.day-h { font-size: 12px; color: var(--muted); margin: 0 2px 6px; }
|
|
90
|
+
.day .list { border-radius: 4px; }
|
|
91
|
+
footer { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.8; }
|
|
92
|
+
footer a { color: var(--accent); text-decoration: none; }
|
|
93
|
+
|
|
94
|
+
</style>
|
|
95
|
+
</head>
|
|
96
|
+
<body>
|
|
97
|
+
<div class="page">
|
|
98
|
+
<div class="header">
|
|
99
|
+
<div class="hd-row">
|
|
100
|
+
<div>
|
|
101
|
+
<h1>面试安排</h1>
|
|
102
|
+
<div class="sub" id="sub">—</div>
|
|
103
|
+
</div>
|
|
104
|
+
<button class="rule-btn" id="ruleBtn" type="button">状态与规则</button>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
<section class="verdict" id="verdict"></section>
|
|
109
|
+
<section class="nums" id="nums"></section>
|
|
110
|
+
<section id="conflicts"></section>
|
|
111
|
+
|
|
112
|
+
<section class="block" id="recentBlock">
|
|
113
|
+
<div class="block-head"><h2 id="recentTitle">最近安排</h2><span id="recentHint"></span></div>
|
|
114
|
+
<div class="list" id="recent"></div>
|
|
115
|
+
<button class="more" id="allBtn" type="button"></button>
|
|
116
|
+
</section>
|
|
117
|
+
|
|
118
|
+
<section class="block" id="allBlock" hidden>
|
|
119
|
+
<div class="block-head"><h2>全部场次</h2><span id="allHint"></span></div>
|
|
120
|
+
<div id="all"></div>
|
|
121
|
+
</section>
|
|
122
|
+
|
|
123
|
+
<div class="modal" id="ruleModal" hidden>
|
|
124
|
+
<div class="modal-box">
|
|
125
|
+
<div class="modal-hd"><span>状态类型与冲突判定规则</span><button class="modal-x" id="ruleClose" type="button">×</button></div>
|
|
126
|
+
<div class="modal-bd">
|
|
127
|
+
<div class="m-sub">一、面试状态(系统合并状态)</div>
|
|
128
|
+
<table class="rule-table">
|
|
129
|
+
<thead><tr><th>状态</th><th>含义</th></tr></thead>
|
|
130
|
+
<tbody>
|
|
131
|
+
<tr><td>未开始</td><td>还没到面试时间,日程尚未发生</td></tr>
|
|
132
|
+
<tr><td>待反馈</td><td>面试已结束,面试官尚未提交评价</td></tr>
|
|
133
|
+
<tr><td>待查看</td><td>候选人已提交面试结果(AI 面试为录像/评分),等待用人方查看</td></tr>
|
|
134
|
+
<tr><td>已反馈</td><td>面试官已提交评价,可推进下一轮或录用决策</td></tr>
|
|
135
|
+
<tr><td>未参与</td><td>候选人未到场或未进入面试</td></tr>
|
|
136
|
+
<tr><td>已失效</td><td>面试被取消或记录作废</td></tr>
|
|
137
|
+
</tbody>
|
|
138
|
+
</table>
|
|
139
|
+
<div class="m-sub">二、冲突判定规则</div>
|
|
140
|
+
<table class="rule-table">
|
|
141
|
+
<thead><tr><th>类型</th><th>判定</th><th>是否算冲突</th></tr></thead>
|
|
142
|
+
<tbody>
|
|
143
|
+
<tr><td>面试官冲突</td><td>同一面试官同一自然日时间撞车:同一分钟两场 = 同一时段;能取到结束时间时,区间重叠 = 时长重叠,首尾间隔 < 30 分钟 = 间隔过近</td><td>算(现场/视频为真冲突,电话为次级)</td></tr>
|
|
144
|
+
<tr><td>候选人撞车</td><td>同一候选人同一时段被排 ≥2 场,任何面试方式都算——人不能同时参加两场</td><td>算</td></tr>
|
|
145
|
+
<tr><td>AI 时段集中</td><td>同一小时 AI 面试 ≥ 8 场,说明可面试时段排得太窄</td><td>不算,仅提示</td></tr>
|
|
146
|
+
</tbody>
|
|
147
|
+
</table>
|
|
148
|
+
<p class="m-note">口径说明:AI 面试是系统自动录像,没有真人在场、不占面试官日程,<b>因此不进入面试官冲突,也不计入冲突数</b>,只提示时段容量。当前面试列表不返回结束时间,面试官冲突按「同一分钟」判定(同一时段两场);同一天连排多场不算冲突。判定全部本地计算,不写回系统,只报事实。</p>
|
|
149
|
+
</div>
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
<footer>
|
|
153
|
+
数据来源:E10「面试管理」台账 · 状态取系统合并状态(悬停状态标签或点「状态与规则」看定义)<br>
|
|
154
|
+
<span id="detailNote"></span> 面试管理列表:<a id="listLink" href="#" target="_blank">打开面试管理</a>
|
|
155
|
+
</footer>
|
|
156
|
+
</div>
|
|
157
|
+
<script>
|
|
158
|
+
// === 数据注入区(Agent 生成 HTML 时替换此段) ===
|
|
159
|
+
const SUMMARY_DATA = __SUMMARY_DATA_PLACEHOLDER__;
|
|
160
|
+
// 结构:{ baseUrl, generatedAt, recentDays, interviewObjId, listUrl,
|
|
161
|
+
// checked, aiExcluded, affectedInterviews,
|
|
162
|
+
// conflicts: [{ interviewer, date, kind, gapMinutes, assumedEnd, a:{candidate,position,start,type}, b:{...} }],
|
|
163
|
+
// rows: [{ formDataId, talentId, candidateName, positionName, startTime, rounds, session, type, interviewer, status }] }
|
|
164
|
+
// conflicts 可选:由 lib/interview-conflict.mjs 产出,缺省则不显示冲突区
|
|
165
|
+
|
|
166
|
+
function esc(s) { return String(s == null ? '' : s).replace(/[&<>"]/g, c => ({ '&': '&', '<': '<', '>': '>', '"': '"' }[c])); }
|
|
167
|
+
function dayOf(t) { const m = /^(\d{4}-\d{2}-\d{2})/.exec(String(t || '')); return m ? m[1] : '待定'; }
|
|
168
|
+
function timeOf(t) { const m = /\s(\d{1,2}:\d{2})/.exec(String(t || '')); return m ? m[1] : '—'; }
|
|
169
|
+
function weekday(d) { const x = new Date(String(d).replace(/-/g, '/')); return isNaN(x.getTime()) ? '' : '周' + '日一二三四五六'[x.getDay()]; }
|
|
170
|
+
const STATUS_TIP = {
|
|
171
|
+
'未开始': '还没到面试时间',
|
|
172
|
+
'待反馈': '面试已结束,面试官未提交评价',
|
|
173
|
+
'待查看': '候选人已提交结果,等待查看(AI 面试为录像/评分)',
|
|
174
|
+
'已反馈': '面试官已提交评价',
|
|
175
|
+
'未参与': '候选人未到场或未进入面试',
|
|
176
|
+
'已失效': '面试被取消或记录作废',
|
|
177
|
+
};
|
|
178
|
+
function statusTip(x) { return STATUS_TIP[x] || (x ? '系统状态:' + x : '状态未同步'); }
|
|
179
|
+
function stClass(s) {
|
|
180
|
+
if (!s) return 'st-off';
|
|
181
|
+
if (/未开始|待面试|进行中/.test(s)) return 'st-wait';
|
|
182
|
+
if (/已完成|已结束|通过/.test(s)) return 'st-done';
|
|
183
|
+
if (/待反馈|待评价|待查看|待处理/.test(s)) return 'st-warn';
|
|
184
|
+
return 'st-off';
|
|
185
|
+
}
|
|
186
|
+
function nowText() {
|
|
187
|
+
const d = new Date(); const p = n => String(n).padStart(2, '0');
|
|
188
|
+
return `${d.getFullYear()}-${p(d.getMonth() + 1)}-${p(d.getDate())} ${p(d.getHours())}:${p(d.getMinutes())}`;
|
|
189
|
+
}
|
|
190
|
+
function rowHtml(r, withDay) {
|
|
191
|
+
const d = window.data || {};
|
|
192
|
+
const base = d.baseUrl || '';
|
|
193
|
+
const card = r.talentId ? `${base}/sp/ebdpage/view/1343164177628012608?talentId=${r.talentId}` : '';
|
|
194
|
+
const name = card ? `<a href="${card}" target="_blank">${esc(r.candidateName)}</a>` : esc(r.candidateName);
|
|
195
|
+
const detail = r.formDataId && d.interviewObjId ? `${base}/sp/ebdfpage/card/0/${d.interviewObjId}/${r.formDataId}` : '';
|
|
196
|
+
const tags = [r.rounds, r.session].filter(Boolean).map(x => `<span class="tg">${esc(x)}</span>`).join('')
|
|
197
|
+
+ (r.type ? `<span class="tg tp">${esc(r.type)}</span>` : '');
|
|
198
|
+
return `<article class="row">
|
|
199
|
+
<div class="when"><b>${esc(withDay ? dayOf(r.startTime).slice(5) : timeOf(r.startTime))}</b><i>${esc(withDay ? weekday(dayOf(r.startTime)) + ' ' + timeOf(r.startTime) : dayOf(r.startTime).slice(5))}</i></div>
|
|
200
|
+
<div class="who"><div class="nm">${name}<span class="pos">${esc(r.positionName)}</span></div><div class="tags">${tags}</div></div>
|
|
201
|
+
<div class="side"><div class="iv">面试官 ${esc(r.interviewer || '—')}</div><span class="st ${stClass(r.status)}" title="${esc(statusTip(r.status))}">${esc(r.status || '—')}</span>${detail ? ` <a class="st" style="background:none;color:var(--accent);text-decoration:none" href="${detail}" target="_blank">详情 →</a>` : ''}</div>
|
|
202
|
+
</article>`;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
function render(d) {
|
|
206
|
+
window.data = d;
|
|
207
|
+
window.baseUrl = d.baseUrl || '';
|
|
208
|
+
const rows = (d.rows || []).slice();
|
|
209
|
+
const conflicts = Array.isArray(d.conflicts) ? d.conflicts : [];
|
|
210
|
+
const days = d.recentDays || 14;
|
|
211
|
+
if (d.listUrl) document.getElementById('listLink').href = d.listUrl;
|
|
212
|
+
|
|
213
|
+
document.getElementById('sub').textContent = `近 ${days} 天 · ${rows.length} 场 · 生成于 ${d.generatedAt || ''}`;
|
|
214
|
+
document.getElementById('detailNote').textContent =
|
|
215
|
+
`已排查 ${d.checked || rows.length} 场,AI 面试 ${d.aiExcluded || 0} 场不占面试官日程已排除。`;
|
|
216
|
+
|
|
217
|
+
// 1) 结论
|
|
218
|
+
const ok = conflicts.length === 0;
|
|
219
|
+
const candConf0 = Array.isArray(d.candidateConflicts) ? d.candidateConflicts : [];
|
|
220
|
+
const aiWin0 = (d.aiPressure && Array.isArray(d.aiPressure.windows)) ? d.aiPressure.windows : [];
|
|
221
|
+
const bits = [];
|
|
222
|
+
if (conflicts.length) bits.push(`<b>${conflicts.length} 处面试官时间冲突</b>`);
|
|
223
|
+
if (candConf0.length) bits.push(`<b>${candConf0.length} 处候选人撞车</b>`);
|
|
224
|
+
if (aiWin0.length) bits.push(`${aiWin0.length} 个时段 AI 面试集中`);
|
|
225
|
+
document.getElementById('verdict').innerHTML = `<div class="lead">` + (bits.length
|
|
226
|
+
? `近 ${days} 天 ${rows.length} 场面试:${bits.join('、')}。`
|
|
227
|
+
: `近 ${days} 天 ${rows.length} 场面试,<b class="ok">未发现面试官冲突或候选人撞车</b>。`) + `</div>`;
|
|
228
|
+
|
|
229
|
+
// 2) 关键数字(只留三个)
|
|
230
|
+
const now = nowText();
|
|
231
|
+
const upcoming = rows.filter(r => String(r.startTime || '') >= now).length;
|
|
232
|
+
document.getElementById('nums').innerHTML = [
|
|
233
|
+
{ k: `近 ${days} 天场次`, v: rows.length, u: '场' },
|
|
234
|
+
{ k: '待进行', v: upcoming, u: '场' },
|
|
235
|
+
{ k: '面试官冲突', v: conflicts.length, u: '处' },
|
|
236
|
+
{ k: '候选人撞车', v: (Array.isArray(d.candidateConflicts) ? d.candidateConflicts.length : 0), u: '处' },
|
|
237
|
+
].map(x => `<div class="num"><div class="k">${x.k}</div><div class="v">${x.v}<small>${x.u}</small></div></div>`).join('');
|
|
238
|
+
|
|
239
|
+
// 3) 冲突区:面试官冲突 / 候选人撞车 / AI 时段集中(各最多 8 条,其余折叠)
|
|
240
|
+
const candConf = Array.isArray(d.candidateConflicts) ? d.candidateConflicts : [];
|
|
241
|
+
const aiWin = (d.aiPressure && Array.isArray(d.aiPressure.windows)) ? d.aiPressure.windows : [];
|
|
242
|
+
const cfBox = document.getElementById('conflicts');
|
|
243
|
+
const kindText = (k) => (k === 'sameSlot' ? '同一时段两场' : k === 'overlap' ? '时长重叠' : '间隔过近');
|
|
244
|
+
const hm = (x) => String(x || '').slice(11, 16) || '—';
|
|
245
|
+
const md = (x) => String(x || '').slice(5, 10);
|
|
246
|
+
const block = (title, desc, items, grey, itemFn) => {
|
|
247
|
+
if (!items.length) return '';
|
|
248
|
+
const first = items.slice(0, 8).map(itemFn).join('');
|
|
249
|
+
const rest = items.slice(8);
|
|
250
|
+
const cls = grey ? ' g' : '';
|
|
251
|
+
const id = 'cfRest' + (grey ? 'G' : 'R') + title.length;
|
|
252
|
+
return `<div class="cf-wrap${cls}">
|
|
253
|
+
<div class="cf-head"><h2 class="${grey ? 'g' : ''}">${title}</h2><p>${desc}</p></div>${first}
|
|
254
|
+
${rest.length ? `<div id="${id}" hidden>${rest.map(itemFn).join('')}</div><button class="more" type="button" onclick="document.getElementById('${id}').hidden=false;this.remove()">还有 ${rest.length} 条,展开</button>` : ''}
|
|
255
|
+
</div>`;
|
|
256
|
+
};
|
|
257
|
+
const ivItem = (c) => `<div class="cf">
|
|
258
|
+
<div class="p">${esc(c.interviewer)}<span>${esc(md(c.date))} · ${kindText(c.kind)}${c.severity === 'high' ? ' · 真冲突' : ''}</span></div>
|
|
259
|
+
<div class="pair">
|
|
260
|
+
<span class="one">${esc(c.a.candidate)}<i>${esc(hm(c.a.start))}</i></span>
|
|
261
|
+
<span class="arrow">↔</span>
|
|
262
|
+
<span class="one">${esc(c.b.candidate)}<i>${esc(hm(c.b.start))}</i></span>
|
|
263
|
+
</div>
|
|
264
|
+
</div>`;
|
|
265
|
+
const candItem = (c) => {
|
|
266
|
+
const same = (c.a.position || '') === (c.b.position || '') && (c.a.type || '') === (c.b.type || '');
|
|
267
|
+
const tail = same
|
|
268
|
+
? `<span class="one">同职位同方式<i>${esc(hm(c.a.start))} ↔ ${esc(hm(c.b.start))},重复排了两场</i></span>`
|
|
269
|
+
: `<span class="one">${esc(c.a.position)}<i>${esc(c.a.type || '')} ${esc(hm(c.a.start))}</i></span><span class="arrow">↔</span><span class="one">${esc(c.b.position)}<i>${esc(c.b.type || '')} ${esc(hm(c.b.start))}</i></span>`;
|
|
270
|
+
return `<div class="cf">
|
|
271
|
+
<div class="p">${esc(c.candidate)}<span>${esc(md(c.date))} · ${kindText(c.kind)}</span></div>
|
|
272
|
+
<div class="pair">${tail}</div>
|
|
273
|
+
</div>`;
|
|
274
|
+
};
|
|
275
|
+
const aiItem = (w) => `<div class="cf g">
|
|
276
|
+
<div class="p">${esc(String(w.slot).slice(5))} 时<span>${w.count} 场</span></div>
|
|
277
|
+
<div class="pair"><span class="one">${esc((w.candidates || []).join('、'))}${(w.candidates || []).length < w.count ? '…' : ''}</span></div>
|
|
278
|
+
</div>`;
|
|
279
|
+
let cfHtml = '';
|
|
280
|
+
cfHtml += block(`⚠ 面试官时间冲突 ${conflicts.length} 处`, '同一面试官同一时段被排了两场;现场/视频为真冲突。列表未返回结束时间,按「同一分钟」判定。', conflicts, false, ivItem);
|
|
281
|
+
cfHtml += block(`⚠ 候选人撞车 ${candConf.length} 处`, '同一候选人在同一时段被排了两场;任何方式都算,人不能同时参加。', candConf, false, candItem);
|
|
282
|
+
cfHtml += block(`AI 面试时段集中 ${aiWin.length} 个时段`, `同一小时 AI 面试 ≥ ${(d.aiPressure && d.aiPressure.threshold) || 8} 场,只提示可面试时段偏窄,不占面试官日程。`, aiWin, true, aiItem);
|
|
283
|
+
cfBox.innerHTML = cfHtml || `<div class="none">✓ 近 ${days} 天没有面试官冲突,也没有候选人撞车。</div>`;
|
|
284
|
+
|
|
285
|
+
// 4) 最近 20 场
|
|
286
|
+
const asc = arr => arr.slice().sort((a, b) => String(a.startTime).localeCompare(String(b.startTime)));
|
|
287
|
+
const desc = arr => arr.slice().sort((a, b) => String(b.startTime).localeCompare(String(a.startTime)));
|
|
288
|
+
const up = asc(rows.filter(r => String(r.startTime || '') >= now));
|
|
289
|
+
const recent = up.length ? up.slice(0, 20) : desc(rows).slice(0, 20);
|
|
290
|
+
document.getElementById('recentTitle').textContent = up.length ? `接下来 ${recent.length} 场` : `最近 ${recent.length} 场(已结束)`;
|
|
291
|
+
document.getElementById('recentHint').textContent = up.length ? `按时间顺序,共 ${up.length} 场待进行` : '窗口内均已过期';
|
|
292
|
+
document.getElementById('recent').innerHTML = recent.length ? recent.map(r => rowHtml(r, false)).join('') : `<div class="row"><div></div><div class="who">窗口内没有面试安排</div><div></div></div>`;
|
|
293
|
+
|
|
294
|
+
// 5) 全部场次(折叠)
|
|
295
|
+
document.getElementById('allBtn').textContent = `展开全部 ${rows.length} 场(按日期)`;
|
|
296
|
+
document.getElementById('allHint').textContent = `${rows.length} 场`;
|
|
297
|
+
const groups = {};
|
|
298
|
+
rows.forEach(r => { const k = dayOf(r.startTime); (groups[k] = groups[k] || []).push(r); });
|
|
299
|
+
document.getElementById('all').innerHTML = Object.keys(groups).sort().map(k => `<div class="day">
|
|
300
|
+
<div class="day-h">${esc(k)} ${weekday(k)} · ${groups[k].length} 场</div>
|
|
301
|
+
<div class="list">${asc(groups[k]).map(r => rowHtml(r, false)).join('')}</div>
|
|
302
|
+
</div>`).join('');
|
|
303
|
+
document.getElementById('allBtn').onclick = function () {
|
|
304
|
+
document.getElementById('allBlock').hidden = false;
|
|
305
|
+
document.getElementById('recentBlock').style.display = 'none';
|
|
306
|
+
this.remove();
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
render(SUMMARY_DATA);
|
|
311
|
+
(function bindRule() {
|
|
312
|
+
const b = document.getElementById('ruleBtn');
|
|
313
|
+
const m = document.getElementById('ruleModal');
|
|
314
|
+
const c = document.getElementById('ruleClose');
|
|
315
|
+
if (!b || !m || !c) return;
|
|
316
|
+
b.onclick = () => { m.hidden = false; };
|
|
317
|
+
c.onclick = () => { m.hidden = true; };
|
|
318
|
+
m.onclick = (e) => { if (e.target === m) m.hidden = true; };
|
|
319
|
+
})();
|
|
320
|
+
</script>
|
|
321
|
+
</body>
|
|
322
|
+
</html>
|