weaver-work-cli 0.1.70 → 0.1.71
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/dist/chunks/{archive-VUTREF3P.js → archive-5P33NAUN.js} +22 -5
- package/dist/chunks/{archive-oa-VXXO4RTB.js → archive-oa-YTY5D7DG.js} +17 -5
- package/dist/chunks/{asset-45U6TY7I.js → asset-3Q5MFQBX.js} +22 -5
- package/dist/chunks/{asset-idle-YCRBMTIT.js → asset-idle-PQPNYIS7.js} +15 -5
- package/dist/chunks/{attachment-content-DMU7KNZ7.js → attachment-content-7CN7JB6B.js} +3 -3
- package/dist/chunks/{blog-5AML4WMG.js → blog-MFHHK6ZR.js} +25 -5
- package/dist/chunks/{caizhilian-3P7BUNHT.js → caizhilian-OZ435AYW.js} +22 -8
- package/dist/chunks/{calendar-2HUXM3CZ.js → calendar-TNJXS5UC.js} +15 -5
- package/dist/chunks/{chunk-H2NRTGZR.js → chunk-2DNCKZRX.js} +3 -3
- package/dist/chunks/{chunk-DVFA3ODS.js → chunk-35A56FJ7.js} +12 -0
- package/dist/chunks/{chunk-HG6INLH6.js → chunk-6MMSLE6K.js} +23 -6
- package/dist/chunks/{chunk-UVWW5ABZ.js → chunk-B4NINGP2.js} +3 -3
- package/dist/chunks/{chunk-LRKKKO5A.js → chunk-DRJYPXKC.js} +3 -4
- package/dist/chunks/{chunk-KDOJW5LH.js → chunk-EJLP63UO.js} +1 -1
- package/dist/chunks/{chunk-HAORST2G.js → chunk-FRMDHZSN.js} +11 -11
- package/dist/chunks/{chunk-GWM5TLIK.js → chunk-G7ZM2VOX.js} +34 -34
- package/dist/chunks/{chunk-LSVA7QA6.js → chunk-GB2MCJPG.js} +3 -1
- package/dist/chunks/{chunk-L2A3COWV.js → chunk-ICNUOWLL.js} +4 -4
- package/dist/chunks/{chunk-GTAFCAVP.js → chunk-IZCQU5D5.js} +1 -1
- package/dist/chunks/{chunk-7CINV2BU.js → chunk-LU2SPJYY.js} +2 -2
- package/dist/chunks/{chunk-E7VWE2XI.js → chunk-MD5RXRI3.js} +3 -3
- package/dist/chunks/{chunk-VZUH3LKI.js → chunk-MZVQKQP5.js} +167 -157
- package/dist/chunks/{chunk-X6PMJQGO.js → chunk-OFCF23FY.js} +6 -6
- package/dist/chunks/{chunk-IVCOZCAW.js → chunk-OPTJ6IF7.js} +1 -1
- package/dist/chunks/{chunk-727VKJQK.js → chunk-OZ7CJC7W.js} +2 -2
- package/dist/chunks/{chunk-T24EBWAZ.js → chunk-P3AFNAJ6.js} +48 -21
- package/dist/chunks/{chunk-LJE7RZNC.js → chunk-Q3EXRNB4.js} +1 -1
- package/dist/chunks/{chunk-QYDSTYGG.js → chunk-SKWKCLJX.js} +3 -3
- package/dist/chunks/{chunk-DSBV4GRK.js → chunk-SSS75WXW.js} +3 -3
- package/dist/chunks/{chunk-I5XB4MZT.js → chunk-SUWR5QEG.js} +94 -65
- package/dist/chunks/{chunk-XIBMZEDB.js → chunk-VJWVB55R.js} +2 -2
- package/dist/chunks/{chunk-EHH363SP.js → chunk-VMVMEIL3.js} +4 -4
- package/dist/chunks/chunk-WM33BSIL.js +136 -0
- package/dist/chunks/{chunk-GFOFUH6O.js → chunk-X2C5CGGM.js} +52 -51
- package/dist/chunks/{chunk-4W6BSNIL.js → chunk-XLSJC6JZ.js} +6 -6
- package/dist/chunks/{chunk-U3OO3IZF.js → chunk-YN5SD4TX.js} +20 -7
- package/dist/chunks/{conflict-YW5BULJ3.js → conflict-Y4PXZ2YQ.js} +2 -2
- package/dist/chunks/{contract-3PMHUASH.js → contract-C3BGUMBM.js} +48 -5
- package/dist/chunks/{cowork-FZBTTBYX.js → cowork-2AWG4QLA.js} +37 -8
- package/dist/chunks/{create-flow-5OBS3B3V.js → create-flow-LOUOK46Z.js} +6 -6
- package/dist/chunks/{data-2YZ6A6TL.js → data-BSFYMXVO.js} +99 -184
- package/dist/chunks/{ebuilder-form-AWPTMZBZ.js → ebuilder-form-LAAMTD2Y.js} +17 -7
- package/dist/chunks/{ehr-MNPR4TE5.js → ehr-36KEX5SH.js} +62 -13
- package/dist/chunks/{entry-mode-L65OWPFM.js → entry-mode-6N2IGCS4.js} +3 -3
- package/dist/chunks/{env-XW7LYIME.js → env-QYLS3EB3.js} +2 -2
- package/dist/chunks/{esb-GSB5QCEX.js → esb-PTYS3E67.js} +17 -7
- package/dist/chunks/{factory-MHFZZAGH.js → factory-LPFPKZ4T.js} +1 -1
- package/dist/chunks/{fna-XBSNUS2V.js → fna-JNHCLRDE.js} +15 -5
- package/dist/chunks/{group-chat-EEOLO5NM.js → group-chat-QP2WX4QJ.js} +3 -3
- package/dist/chunks/{host-2UMNXX5H.js → host-57LSRSE7.js} +4 -4
- package/dist/chunks/{host-NVDG3NC6.js → host-7BVR7CQ3.js} +4 -4
- package/dist/chunks/{host-SYPCA63D.js → host-C2BLBIID.js} +4 -4
- package/dist/chunks/{host-XVWBOSEN.js → host-K2ZKNXME.js} +4 -4
- package/dist/chunks/{host-R7BP3CTI.js → host-NS36QFLR.js} +6 -4
- package/dist/chunks/{host-BD44ASOD.js → host-QXFKQXNX.js} +4 -4
- package/dist/chunks/{hrm-FZUDJAND.js → hrm-FSGO4NSH.js} +15 -6
- package/dist/chunks/{im-F5NENPD7.js → im-2BFGS2XO.js} +16 -6
- package/dist/chunks/{invoice-DS6FLU55.js → invoice-JKLTTHSZ.js} +27 -6
- package/dist/chunks/{jiuchuanhui-JCBUR563.js → jiuchuanhui-PTABJE7V.js} +19 -6
- package/dist/chunks/{lazy-dispatch-F6O2EPGR.js → lazy-dispatch-YN2ZP3CS.js} +6 -6
- package/dist/chunks/{mail-ZEOSANEJ.js → mail-YNO7ZZUK.js} +116 -97
- package/dist/chunks/{meeting-PCD5EPBF.js → meeting-NIDHDBCB.js} +29 -16
- package/dist/chunks/{minute-doc-WTZJVCHG.js → minute-doc-G3QAT7DE.js} +4 -4
- package/dist/chunks/{okr-OZUMTMCL.js → okr-QC52G6AJ.js} +15 -5
- package/dist/chunks/{operations-LQY3FTPH.js → operations-2WHIF5WV.js} +1 -1
- package/dist/chunks/{operations-UTUWFJTX.js → operations-MQV32ITT.js} +5 -5
- package/dist/chunks/{performance-SMVTPK6T.js → performance-3MQ3AHDQ.js} +92 -7
- package/dist/chunks/{plan-C2NENH42.js → plan-ISINIEPY.js} +15 -5
- package/dist/chunks/{project-FAJ2P3UR.js → project-IJ6DVKT7.js} +18 -5
- package/dist/chunks/{reception-NH6MJFPR.js → reception-3H5LUG2I.js} +17 -7
- package/dist/chunks/{recruit-stage-DPEFHLSE.js → recruit-stage-MIOJXP6W.js} +412 -85
- package/dist/chunks/{registry-ZQ7OONCB.js → registry-3GQRYP2R.js} +12 -12
- package/dist/chunks/{registry-3B3OAJYX.js → registry-3S7AVMXR.js} +4 -4
- package/dist/chunks/{registry-FTPUUHWC.js → registry-NHHKOEU3.js} +5 -5
- package/dist/chunks/{room-recommend-73NBN3RU.js → room-recommend-IOKBJVYP.js} +4 -4
- package/dist/chunks/{schedule-SDBOBBUQ.js → schedule-IB6EUARH.js} +4 -4
- package/dist/chunks/{smart-extract-GTYKF5TJ.js → smart-extract-N2TK3CEF.js} +19 -6
- package/dist/chunks/{workflow-OWHWLAOX.js → workflow-RINBAL2M.js} +22 -8
- package/dist/cmd/auth/index.js +23 -0
- package/dist/cmd/e10/index.js +2 -1
- package/dist/cmd/index.js +2 -0
- package/dist/core/manifest-view.js +207 -0
- package/dist/core/output.js +38 -8
- package/dist/index.js +35 -35
- package/dist/internal/e10/auth/crypto.js +18 -8
- package/dist/internal/e10/auth/error-log.js +1 -2
- package/dist/internal/e10/auth/messages.js +2 -3
- package/dist/internal/e10/auth/xiaoe.js +1 -1
- package/dist/internal/e10/tls-policy.js +61 -13
- package/dist/shortcuts/archive/index.js +11 -2
- package/dist/shortcuts/archive/operations/download.js +1 -0
- package/dist/shortcuts/archive/operations/flow-url.js +3 -0
- package/dist/shortcuts/archive/operations/prelib.js +2 -0
- package/dist/shortcuts/archive/operations/upload.js +1 -0
- package/dist/shortcuts/archive-oa/index.js +11 -2
- package/dist/shortcuts/archive-oa/operations/borrow-car.js +2 -0
- package/dist/shortcuts/asset/index.js +11 -2
- package/dist/shortcuts/asset/manifest.js +7 -0
- package/dist/shortcuts/asset-idle/index.js +11 -2
- package/dist/shortcuts/blog/index.js +11 -2
- package/dist/shortcuts/blog/manifest.js +10 -0
- package/dist/shortcuts/caizhilian/host.js +20 -4
- package/dist/shortcuts/caizhilian/index.js +12 -2
- package/dist/shortcuts/caizhilian/manifest.js +4 -25
- package/dist/shortcuts/caizhilian/operations/handlers/search.js +34 -0
- package/dist/shortcuts/caizhilian/operations/registry.js +25 -1
- package/dist/shortcuts/calendar/index.js +11 -2
- package/dist/shortcuts/contract/index.js +11 -2
- package/dist/shortcuts/contract/manifest.js +32 -0
- package/dist/shortcuts/contract/operations/write.js +3 -0
- package/dist/shortcuts/cowork/index.js +21 -5
- package/dist/shortcuts/cowork/manifest.js +3 -0
- package/dist/shortcuts/cowork/operations/discuss-write.js +2 -0
- package/dist/shortcuts/cowork/operations/item-write.js +3 -0
- package/dist/shortcuts/cowork/operations/member-write.js +2 -0
- package/dist/shortcuts/cowork/operations/permission-write.js +2 -0
- package/dist/shortcuts/cowork/operations/review-write.js +1 -0
- package/dist/shortcuts/data/errors.js +16 -29
- package/dist/shortcuts/data/host.js +16 -7
- package/dist/shortcuts/data/index.js +12 -41
- package/dist/shortcuts/data/manifest.js +5 -44
- package/dist/shortcuts/data/operations/attend.js +2 -2
- package/dist/shortcuts/data/operations/conf.js +0 -88
- package/dist/shortcuts/data/operations/ds.js +4 -4
- package/dist/shortcuts/data/operations/index.js +1 -5
- package/dist/shortcuts/data/operations/module.js +40 -14
- package/dist/shortcuts/data/operations/query.js +2 -2
- package/dist/shortcuts/ebuilder-form/index.js +11 -2
- package/dist/shortcuts/ebuilder-form/manifest.js +12 -0
- package/dist/shortcuts/ehr/index.js +11 -2
- package/dist/shortcuts/ehr/operations/attend-write.js +51 -8
- package/dist/shortcuts/esb/index.js +11 -2
- package/dist/shortcuts/esb/manifest.js +2 -0
- package/dist/shortcuts/fna/index.js +11 -2
- package/dist/shortcuts/hrm/index.js +11 -1
- package/dist/shortcuts/im/index.js +11 -2
- package/dist/shortcuts/invoice/index.js +11 -2
- package/dist/shortcuts/invoice/manifest.js +8 -0
- package/dist/shortcuts/jiuchuanhui/index.js +15 -1
- package/dist/shortcuts/jiuchuanhui/manifest.js +2 -0
- package/dist/shortcuts/mail/errors.js +14 -0
- package/dist/shortcuts/mail/index.js +23 -6
- package/dist/shortcuts/mail/manifest.js +11 -4
- package/dist/shortcuts/mail/operations/mail-blacklist.js +6 -6
- package/dist/shortcuts/mail/operations/mail-contacts.js +10 -10
- package/dist/shortcuts/mail/operations/mail-manage.js +15 -14
- package/dist/shortcuts/mail/operations/mail-read.js +7 -25
- package/dist/shortcuts/mail/operations/mail-send.js +12 -12
- package/dist/shortcuts/mail/operations/mail-sign.js +10 -10
- package/dist/shortcuts/mail/operations/mail-template.js +10 -10
- package/dist/shortcuts/meeting/index.js +11 -2
- package/dist/shortcuts/meeting/operations/invitation-publish.js +1 -0
- package/dist/shortcuts/okr/index.js +11 -2
- package/dist/shortcuts/performance/index.js +62 -3
- package/dist/shortcuts/performance/scheme-validate.js +7 -0
- package/dist/shortcuts/performance/shared.js +40 -2
- package/dist/shortcuts/plan/index.js +11 -2
- package/dist/shortcuts/project/index.js +11 -2
- package/dist/shortcuts/project/operations/write.js +3 -0
- package/dist/shortcuts/reception/index.js +11 -2
- package/dist/shortcuts/reception/manifest.js +2 -2
- package/dist/shortcuts/reception/operations/ask.js +3 -0
- package/dist/shortcuts/recruit-stage/index.js +22 -3
- package/dist/shortcuts/recruit-stage/manifest.js +2 -0
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +33 -16
- package/dist/shortcuts/recruit-stage/operations/profile.js +186 -0
- package/dist/shortcuts/recruit-stage/operations/registry.js +2 -0
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +76 -47
- package/dist/shortcuts/recruit-stage/operations/search.js +151 -16
- package/dist/shortcuts/recruit-stage/operations/tag.js +17 -3
- package/dist/shortcuts/recruit-stage/shared.js +11 -1
- package/dist/shortcuts/smart-extract/index.js +11 -2
- package/dist/shortcuts/smart-extract/manifest.js +1 -0
- package/dist/shortcuts/smart-extract/operations/save.js +2 -0
- package/dist/shortcuts/workflow/index.js +21 -1
- package/dist/shortcuts/workflow/operations/read.js +2 -2
- package/dist/shortcuts/workflow/operations/write.js +1 -1
- package/docs/caizhilian.md +1 -1
- package/docs/contract.md +1 -0
- package/docs/data.md +22 -22
- package/docs/e10-auth.md +41 -33
- package/docs/ehr.md +2 -0
- package/docs/reception.md +4 -3
- package/package.json +1 -1
- package/scripts/pysite/__pycache__/sitecustomize.cpython-312.pyc +0 -0
- package/scripts/pysite/__pycache__/sitecustomize.cpython-313.pyc +0 -0
- package/scripts/pysite/sitecustomize.py +41 -0
- package/skill-template/domains/data.md +4 -4
- package/skills/weaver-e10-caizhilian/SKILL.md +1 -1
- package/skills/weaver-e10-caizhilian/references/org-browser.md +1 -0
- package/skills/weaver-e10-cowork/SKILL.md +3 -1
- package/skills/weaver-e10-data/SKILL.md +12 -16
- package/skills/weaver-e10-data/references/config-center.md +6 -7
- package/skills/weaver-e10-data/references/datasource.md +1 -1
- package/skills/weaver-e10-data/references/scene-and-misc.md +2 -2
- package/skills/weaver-e10-jiuchuanhui/SKILL.md +6 -4
- package/skills/weaver-e10-jiuchuanhui/references/clue.md +2 -2
- package/skills/weaver-e10-jiuchuanhui/references/customer.md +18 -8
- package/skills/weaver-e10-jiuchuanhui/references/sale.md +2 -2
- package/skills/weaver-e10-jucailin/references/attend-write.md +1 -1
- package/skills/weaver-e10-mail/SKILL.md +4 -1
- package/skills/weaver-e10-mail/references/mail-read.md +4 -2
- package/skills/weaver-e10-mail/references/safety-boundaries.md +1 -0
- package/skills/weaver-e10-okr/references/source-manifest.json +3 -3
- package/skills/weaver-e10-performance/SKILL.md +8 -6
- package/skills/weaver-e10-recruit-stage/SKILL.md +125 -20
- package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +359 -0
- package/skills/weaver-e10-recruit-stage/references/env-fixed-values.md +87 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +9 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +1 -0
- package/skills/weaver-e10-recruit-stage/templates/match-report.html +177 -0
- package/skills/weaver-e10-shared/SKILL.md +22 -1
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +2 -2
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +3 -3
|
@@ -0,0 +1,177 @@
|
|
|
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
|
+
<script src="https://cdn.jsdelivr.net/npm/echarts@5.4.2/dist/echarts.min.js"></script>
|
|
8
|
+
<style>
|
|
9
|
+
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
10
|
+
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f5f6fa; color: #333; line-height: 1.6; }
|
|
11
|
+
.container { max-width: 960px; margin: 0 auto; padding: 24px 16px; }
|
|
12
|
+
.header { background: linear-gradient(135deg, #1f5fe0, #4285f4); color: #fff; padding: 32px 24px; border-radius: 12px; margin-bottom: 24px; }
|
|
13
|
+
.header h1 { font-size: 24px; margin-bottom: 8px; }
|
|
14
|
+
.header .subtitle { font-size: 14px; opacity: 0.9; }
|
|
15
|
+
.summary-bar { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
|
|
16
|
+
.summary-card { background: #fff; border-radius: 8px; padding: 16px 20px; flex: 1; min-width: 140px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
|
|
17
|
+
.summary-card .label { font-size: 12px; color: #888; margin-bottom: 4px; }
|
|
18
|
+
.summary-card .value { font-size: 20px; font-weight: 600; color: #1f5fe0; }
|
|
19
|
+
.candidate-section { background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
|
|
20
|
+
.candidate-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #f0f0f0; }
|
|
21
|
+
.candidate-name { font-size: 18px; font-weight: 600; }
|
|
22
|
+
.candidate-name a { color: #1f5fe0; text-decoration: none; }
|
|
23
|
+
.candidate-name a:hover { text-decoration: underline; }
|
|
24
|
+
.score-badge { font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 20px; }
|
|
25
|
+
.score-high { background: #e6f4ea; color: #137333; }
|
|
26
|
+
.score-medium { background: #fef7e0; color: #b06000; }
|
|
27
|
+
.score-low { background: #fce8e6; color: #c5221f; }
|
|
28
|
+
.candidate-body { display: grid; grid-template-columns: 320px 1fr; gap: 24px; }
|
|
29
|
+
.radar-chart { width: 320px; height: 280px; }
|
|
30
|
+
.match-table { width: 100%; }
|
|
31
|
+
.match-table th { text-align: left; font-size: 12px; color: #888; padding: 6px 8px; border-bottom: 1px solid #eee; }
|
|
32
|
+
.match-table td { padding: 8px; border-bottom: 1px solid #f5f5f5; font-size: 13px; }
|
|
33
|
+
.match-table .dim-name { font-weight: 500; white-space: nowrap; }
|
|
34
|
+
.match-table .evidence { color: #555; }
|
|
35
|
+
.match-table .level { font-weight: 600; text-align: center; width: 60px; }
|
|
36
|
+
.level-high { color: #137333; }
|
|
37
|
+
.level-medium { color: #b06000; }
|
|
38
|
+
.level-low { color: #c5221f; }
|
|
39
|
+
.candidate-basic { font-size: 13px; color: #666; margin-bottom: 12px; }
|
|
40
|
+
.candidate-basic span { margin-right: 16px; }
|
|
41
|
+
.comparison-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
|
|
42
|
+
.comparison-table th { background: #f5f6fa; padding: 10px; font-size: 13px; text-align: left; }
|
|
43
|
+
.comparison-table td { padding: 10px; font-size: 13px; border-bottom: 1px solid #eee; }
|
|
44
|
+
.comparison-table .rank { font-weight: 600; color: #1f5fe0; }
|
|
45
|
+
.footer { text-align: center; padding: 24px; color: #999; font-size: 12px; }
|
|
46
|
+
@media (max-width: 768px) { .candidate-body { grid-template-columns: 1fr; } .radar-chart { width: 100%; } }
|
|
47
|
+
</style>
|
|
48
|
+
</head>
|
|
49
|
+
<body>
|
|
50
|
+
<div class="container">
|
|
51
|
+
<div class="header">
|
|
52
|
+
<h1>人岗匹配评估报告</h1>
|
|
53
|
+
<div class="subtitle" id="subtitle">岗位:— | 候选人:— | AI 评估(非系统评分)</div>
|
|
54
|
+
</div>
|
|
55
|
+
<div class="summary-bar" id="summaryBar"></div>
|
|
56
|
+
<div id="candidates"></div>
|
|
57
|
+
<div class="footer">
|
|
58
|
+
本报告由 AI 基于候选人档案与岗位要求生成,匹配度仅供参考,不作为录用决策的唯一依据。<br>
|
|
59
|
+
评估维度:学历匹配 / 经验年限 / 技能覆盖 / 行业相关 / 职位方向 / 稳定性
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
<script>
|
|
63
|
+
// === 数据注入区(Agent 生成 HTML 时替换此段) ===
|
|
64
|
+
const REPORT_DATA = __REPORT_DATA_PLACEHOLDER__;
|
|
65
|
+
// 结构:
|
|
66
|
+
// { position: "制造业解决方案经理", baseUrl: "https://...", candidates: [{ talentId, name, basic: {degree, college, workYears, currentPosition, currentCompany}, scores: {education:85, experience:70, skills:60, industry:90, position:75, stability:80}, evidence: {education:"硕士,符合要求", ...}, overall: 78, level: "medium" }] }
|
|
67
|
+
|
|
68
|
+
const DIMENSIONS = [
|
|
69
|
+
{ key: 'education', name: '学历匹配' },
|
|
70
|
+
{ key: 'experience', name: '经验年限' },
|
|
71
|
+
{ key: 'skills', name: '技能覆盖' },
|
|
72
|
+
{ key: 'industry', name: '行业相关' },
|
|
73
|
+
{ key: 'position', name: '职位方向' },
|
|
74
|
+
{ key: 'stability', name: '稳定性' },
|
|
75
|
+
];
|
|
76
|
+
|
|
77
|
+
function levelClass(score) { return score >= 75 ? 'level-high' : score >= 50 ? 'level-medium' : 'level-low'; }
|
|
78
|
+
function levelText(score) { return score >= 75 ? '高' : score >= 50 ? '中' : '低'; }
|
|
79
|
+
function badgeClass(overall) { return overall >= 75 ? 'score-high' : overall >= 50 ? 'score-medium' : 'score-low'; }
|
|
80
|
+
function badgeText(overall) { return overall >= 75 ? '推荐' : overall >= 50 ? '可考虑' : '不推荐'; }
|
|
81
|
+
|
|
82
|
+
function renderReport(data) {
|
|
83
|
+
document.getElementById('subtitle').textContent = `岗位:${data.position} | 候选人:${data.candidates.length} 人 | AI 评估(非系统评分)`;
|
|
84
|
+
|
|
85
|
+
// 汇总卡片
|
|
86
|
+
const avgScore = Math.round(data.candidates.reduce((s, c) => s + c.overall, 0) / data.candidates.length);
|
|
87
|
+
const recommended = data.candidates.filter(c => c.overall >= 75).length;
|
|
88
|
+
const summaryBar = document.getElementById('summaryBar');
|
|
89
|
+
summaryBar.innerHTML = [
|
|
90
|
+
{ label: '候选人数量', value: data.candidates.length },
|
|
91
|
+
{ label: '平均匹配度', value: avgScore + '分' },
|
|
92
|
+
{ label: '推荐人数', value: recommended },
|
|
93
|
+
{ label: '评估维度', value: '6 维度' },
|
|
94
|
+
].map(s => `<div class="summary-card"><div class="label">${s.label}</div><div class="value">${s.value}</div></div>`).join('');
|
|
95
|
+
|
|
96
|
+
// 排序:总分降序
|
|
97
|
+
const sorted = [...data.candidates].sort((a, b) => b.overall - a.overall);
|
|
98
|
+
|
|
99
|
+
const container = document.getElementById('candidates');
|
|
100
|
+
container.innerHTML = sorted.map((c, idx) => {
|
|
101
|
+
const cardUrl = `${data.baseUrl}/sp/custom/ecode/recruit-talent/card?talentId=${c.talentId}`;
|
|
102
|
+
return `
|
|
103
|
+
<div class="candidate-section">
|
|
104
|
+
<div class="candidate-header">
|
|
105
|
+
<div>
|
|
106
|
+
<div class="candidate-name"><a href="${cardUrl}" target="_blank">${c.name}</a></div>
|
|
107
|
+
<div class="candidate-basic">
|
|
108
|
+
<span>学历:${c.basic.degree}</span>
|
|
109
|
+
<span>院校:${c.basic.college}</span>
|
|
110
|
+
<span>工作年限:${c.basic.workYears}年</span>
|
|
111
|
+
<span>当前职位:${c.basic.currentPosition}</span>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
<div style="text-align:right">
|
|
115
|
+
<div class="score-badge ${badgeClass(c.overall)}">${badgeText(c.overall)}</div>
|
|
116
|
+
<div style="font-size:24px;font-weight:700;margin-top:4px;color:${c.overall>=75?'#137333':c.overall>=50?'#b06000':'#c5221f'}">${c.overall}<span style="font-size:14px;color:#999">/100</span></div>
|
|
117
|
+
<div style="font-size:12px;color:#999">排名 #${idx+1}</div>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="candidate-body">
|
|
121
|
+
<div class="radar-chart" id="radar-${c.talentId}"></div>
|
|
122
|
+
<div>
|
|
123
|
+
<table class="match-table">
|
|
124
|
+
<thead><tr><th>维度</th><th style="width:60px">等级</th><th>匹配证据</th></tr></thead>
|
|
125
|
+
<tbody>
|
|
126
|
+
${DIMENSIONS.map(d => {
|
|
127
|
+
const score = c.scores[d.key] || 0;
|
|
128
|
+
const ev = c.evidence[d.key] || '—';
|
|
129
|
+
return `<tr><td class="dim-name">${d.name}</td><td class="level ${levelClass(score)}">${levelText(score)}</td><td class="evidence">${ev}</td></tr>`;
|
|
130
|
+
}).join('')}
|
|
131
|
+
</tbody>
|
|
132
|
+
</table>
|
|
133
|
+
</div>
|
|
134
|
+
</div>
|
|
135
|
+
</div>`;
|
|
136
|
+
}).join('');
|
|
137
|
+
|
|
138
|
+
// 渲染雷达图
|
|
139
|
+
sorted.forEach(c => {
|
|
140
|
+
const el = document.getElementById(`radar-${c.talentId}`);
|
|
141
|
+
if (!el) return;
|
|
142
|
+
const chart = echarts.init(el);
|
|
143
|
+
chart.setOption({
|
|
144
|
+
radar: {
|
|
145
|
+
indicator: DIMENSIONS.map(d => ({ name: d.name, max: 100 })),
|
|
146
|
+
radius: '65%',
|
|
147
|
+
axisName: { color: '#666', fontSize: 11 },
|
|
148
|
+
splitArea: { areaStyle: { color: ['#fff', '#f5f6fa'] } },
|
|
149
|
+
splitLine: { lineStyle: { color: '#e0e0e0' } },
|
|
150
|
+
},
|
|
151
|
+
series: [{
|
|
152
|
+
type: 'radar',
|
|
153
|
+
data: [{ value: DIMENSIONS.map(d => c.scores[d.key] || 0), name: c.name, areaStyle: { color: 'rgba(31,95,224,0.2)' }, lineStyle: { color: '#1f5fe0', width: 2 }, itemStyle: { color: '#1f5fe0' } }],
|
|
154
|
+
}],
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
// 对比表
|
|
159
|
+
if (sorted.length > 1) {
|
|
160
|
+
const compareHtml = `
|
|
161
|
+
<div class="candidate-section">
|
|
162
|
+
<div class="candidate-header"><div class="candidate-name">综合对比</div></div>
|
|
163
|
+
<table class="comparison-table">
|
|
164
|
+
<thead><tr><th>排名</th><th>姓名</th><th>总分</th>${DIMENSIONS.map(d => `<th>${d.name}</th>`).join('')}<th>结论</th></tr></thead>
|
|
165
|
+
<tbody>
|
|
166
|
+
${sorted.map((c, i) => `<tr><td class="rank">#${i+1}</td><td><a href="${data.baseUrl}/sp/custom/ecode/recruit-talent/card?talentId=${c.talentId}" target="_blank" style="color:#1f5fe0;text-decoration:none">${c.name}</a></td><td style="font-weight:600">${c.overall}</td>${DIMENSIONS.map(d => `<td style="text-align:center" class="${levelClass(c.scores[d.key]||0)}">${c.scores[d.key]||0}</td>`).join('')}<td><span class="score-badge ${badgeClass(c.overall)}">${badgeText(c.overall)}</span></td></tr>`).join('')}
|
|
167
|
+
</tbody>
|
|
168
|
+
</table>
|
|
169
|
+
</div>`;
|
|
170
|
+
container.insertAdjacentHTML('beforeend', compareHtml);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
renderReport(REPORT_DATA);
|
|
175
|
+
</script>
|
|
176
|
+
</body>
|
|
177
|
+
</html>
|
|
@@ -105,7 +105,28 @@ CLI 和业务 Skill 在返回 `authentication` / `session_expired` 时,只能
|
|
|
105
105
|
|
|
106
106
|
## 通用准则
|
|
107
107
|
|
|
108
|
-
1. 执行业务命令前先确认用法:优先读当前业务 Skill 和被路由到的 reference,必要时跑对应命令的 `--help
|
|
108
|
+
1. 执行业务命令前先确认用法:优先读当前业务 Skill 和被路由到的 reference,必要时跑对应命令的 `--help`,不要猜参数。
|
|
109
|
+
|
|
110
|
+
需要确认「有哪些 operation、某个 operation 的入参怎么传」时,分两步问,不要一次性拉整份 schema:
|
|
111
|
+
|
|
112
|
+
```text
|
|
113
|
+
# 第一步:拿全量操作清单(只有 name / 摘要 / risk,不截断)
|
|
114
|
+
weaver-work-cli <domain> schema --list
|
|
115
|
+
# 第二步:命中目标操作后,只取它一个的完整入参契约(含 inputSchema)
|
|
116
|
+
weaver-work-cli <domain> schema --operation <name>
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
为什么必须分两步:大域的完整 `schema` 有 60K–310K 字符(meeting 149 个操作 / caizhilian 180 个 / contract 151 个 / invoice 28 个),超过 stdout 预算会被压成预览,`operations` 只剩 2–20 条,入参定义几乎全丢——照着预览调必然猜错字段。
|
|
120
|
+
|
|
121
|
+
这三个开关在**全部业务域**一致可用,可以放心按同一套用法推广:
|
|
122
|
+
|
|
123
|
+
- `schema --list`:全量操作清单(name + 摘要 + risk),不截断。判断"有没有某个能力"一律用它。
|
|
124
|
+
- `schema --operation <name>`:单个操作的完整入参契约(含 inputSchema)。填参数前先取这个,不要猜字段。操作名可省略域前缀(`--operation list`),也可用唯一后缀(`--operation enterprise.list`)。
|
|
125
|
+
- `schema --full`:完整 manifest。装不进 stdout 预算时不会把 `operations` 切短,而是返回**全量清单**并附 `fullOmitted`(说明完整契约未随本次返回、如何单取),所以它出来的条目数永远可信。
|
|
126
|
+
|
|
127
|
+
⚠️ 各域 `schema` 的**默认**输出并不一致:多数域默认就是完整 manifest(体积大、超预算会压成预览),`workflow` / `hrm` / `performance` 默认已经是精简索引。所以判断能力存在与否,一律用 `--list`,不要依赖默认输出。
|
|
128
|
+
|
|
129
|
+
若某域报 `unknown option`(旧版本 CLI),退回 `weaver-work-cli <domain> schema`,并按输出首行的 `largeOutputNotice` 用 `refs get` 取全量;不要据此判断"该域不可用"。
|
|
109
130
|
|
|
110
131
|
2. 首次使用**不查版本号**,直接确认 CLI 可用:
|
|
111
132
|
|
|
@@ -29,7 +29,7 @@ weaver-work-cli auth whoami
|
|
|
29
29
|
- 业务命令失败,stderr JSON 中 `error.type === "authentication"`(如 `E10 auth not found`)
|
|
30
30
|
- 业务命令返回 `error.subtype === "session_expired"`(E10 登录态 401/302 失效)
|
|
31
31
|
|
|
32
|
-
CLI 的认证错误只是状态信号,不是登录命令。已有 XiaoE 会话达到换票结果的 `expiryTimes` 时,CLI 会在业务请求发出前静默换票;被接口判定过期时,公共请求层会根据持久化会话的 `agentType` / `loginSource` 自动恢复,不依赖 `XIAOE_*`、`--runtime-agent xiaoe`、shared Skill 或 Agent。业务命令无可读取的本地会话时,若当前 `XIAOE_*`、`--runtime-agent xiaoe` 等标记已识别为 XiaoE,公共会话加载层也会先静默获取登录信息。失败时返回 `xiaoe_credential_unavailable`,提示已尝试自动获取,Agent 只反馈并停止;不要再次登录或重跑。该错误的 `details` 会带 `attemptedSteps`(按序评估过的凭证通道及结果,如 `platform_token:missing`、`e10_session:failed`)、`lastError`(最后一条真实原因)与 `baseUrl`,另有 `failures` 记录每一次失败的阶段(`platform_token` / `bundled_env_script` / `token_script` / `client_session` / `teams_check` / `e10_session`)、类别(`network` / `http` / `credential`)以及网络错误的 `causeCode`(如 `ECONNREFUSED`、`ETIMEDOUT`)和 HTTP 的 `httpStatus`。完整请求只保存在 `auth logs` 对应日志的 `failure.request` 中,并由 `auth logs show` 渲染为 `requestParams`;业务错误的 stderr / `error.details.failures` 不包含 `request`。鉴权头固定显示 `<redacted>`,不得要求或输出明文 Token。需要过程日志时由用户在业务命令上加 `--verbose`。失败全程都是网络错误时,子类型改为 `xiaoe_network_unavailable`、`retryable: true`,文案为「暂时无法连接 E10
|
|
32
|
+
CLI 的认证错误只是状态信号,不是登录命令。已有 XiaoE 会话达到换票结果的 `expiryTimes` 时,CLI 会在业务请求发出前静默换票;被接口判定过期时,公共请求层会根据持久化会话的 `agentType` / `loginSource` 自动恢复,不依赖 `XIAOE_*`、`--runtime-agent xiaoe`、shared Skill 或 Agent。业务命令无可读取的本地会话时,若当前 `XIAOE_*`、`--runtime-agent xiaoe` 等标记已识别为 XiaoE,公共会话加载层也会先静默获取登录信息。失败时返回 `xiaoe_credential_unavailable`,提示已尝试自动获取,Agent 只反馈并停止;不要再次登录或重跑。该错误的 `details` 会带 `attemptedSteps`(按序评估过的凭证通道及结果,如 `platform_token:missing`、`e10_session:failed`)、`lastError`(最后一条真实原因)与 `baseUrl`,另有 `failures` 记录每一次失败的阶段(`platform_token` / `bundled_env_script` / `token_script` / `client_session` / `teams_check` / `e10_session`)、类别(`network` / `http` / `credential`)以及网络错误的 `causeCode`(如 `ECONNREFUSED`、`ETIMEDOUT`)和 HTTP 的 `httpStatus`。完整请求只保存在 `auth logs` 对应日志的 `failure.request` 中,并由 `auth logs show` 渲染为 `requestParams`;业务错误的 stderr / `error.details.failures` 不包含 `request`。鉴权头固定显示 `<redacted>`,不得要求或输出明文 Token。需要过程日志时由用户在业务命令上加 `--verbose`。失败全程都是网络错误时,子类型改为 `xiaoe_network_unavailable`、`retryable: true`,文案为「暂时无法连接 E10,请稍后重试」:这不是凭据问题,只提示稍后重试,不要让用户去重新登录。CLI 相关请求**默认校验证书**(系统信任链,或 `WEAVER_E10_CA_FILE` 指定的网关 CA)。出现证书错误(`SELF_SIGNED_CERT_IN_CHAIN`、`self-signed certificate in certificate chain`、`[SSL: CERTIFICATE_VERIFY_FAILED]`)时先判断来源:`xiaoe_tls_untrusted` 表示网关证书不在信任链里,按文案引导用户配置 `WEAVER_E10_CA_FILE`(Node 低于 22.15 用 `NODE_EXTRA_CA_CERTS`)后重试;错误来自技能自己起的脚本时,那部分不在 CLI 覆盖范围。任何情况下都不要引导重新登录或反复重试,也**不得自行改写环境变量**(`WEAVER_E10_TLS_INSECURE` / `NODE_TLS_REJECT_UNAUTHORIZED`)来绕过。需要在业务命令之前主动建立会话时,可按下述流程显式登录。
|
|
33
33
|
|
|
34
34
|
显式 `auth xiaoe` 或静默重新获取登录信息失败时,CLI 会把脱敏诊断持久化到固定的
|
|
35
35
|
XiaoE 认证错误日志;日志不包含 Cookie、ETEAMSID、Token 或原始服务端详情。需要排查时
|
|
@@ -77,7 +77,7 @@ XiaoE 认证错误日志;日志不包含 Cookie、ETEAMSID、Token 或原始
|
|
|
77
77
|
|
|
78
78
|
`auth login` 会在本机 `127.0.0.1:19800` 监听浏览器回调,最长等待 5 分钟。Agent 沙箱/托管环境中的外部浏览器无法回调容器内地址。`auth xiaoe` 不会进入这条浏览器流程。执行规则:
|
|
79
79
|
|
|
80
|
-
1. 任意系统运行 `auth xiaoe` 时,收到 `xiaoe_credential_unavailable` 即反馈并停止;不要自动改跑 `auth login`。收到 `xiaoe_network_unavailable` 同样是停止,但按「暂时无法连接 E10」反馈并建议稍后重试。收到 `xiaoe_tls_untrusted`
|
|
80
|
+
1. 任意系统运行 `auth xiaoe` 时,收到 `xiaoe_credential_unavailable` 即反馈并停止;不要自动改跑 `auth login`。收到 `xiaoe_network_unavailable` 同样是停止,但按「暂时无法连接 E10」反馈并建议稍后重试。收到 `xiaoe_tls_untrusted` 也是停止:说明网关 CA 不在当前信任链里(默认就校验证书),按文案引导配置 `WEAVER_E10_CA_FILE` 后由用户重试,不引导重新登录。
|
|
81
81
|
2. 仅非 XiaoE 环境在用户确认真实 E10 域名且确认 CLI 与浏览器同机后执行 `auth login`;仍须限时等待,超时未完成即终止并反馈。
|
|
82
82
|
3. 仅非 XiaoE 环境在用户无法完成浏览器登录、且明确要求并同意人工录入时,才可使用保底方式 `weaver-work-cli auth set --eteamsid "<ETEAMSID>" --base-url "<用户确认的登录域名>"`;它不是业务认证错误的默认恢复路径。ETEAMSID 由用户从已登录浏览器主动提供,Agent 不得索取、展示或转述该值。
|
|
83
83
|
4. 严禁不加限制地前台运行 `auth xiaoe` / `auth login` 并等待 OAuth 回调。
|
|
@@ -2273,7 +2273,7 @@
|
|
|
2273
2273
|
}
|
|
2274
2274
|
},
|
|
2275
2275
|
"artifactBaseline": {
|
|
2276
|
-
"aggregateSha256": "
|
|
2276
|
+
"aggregateSha256": "e4ed68beb3a8a553e78328be3731b891764ebfe45d08776f2f64fbd3dd8320a8",
|
|
2277
2277
|
"files": [
|
|
2278
2278
|
{
|
|
2279
2279
|
"path": "docs/im.md",
|
|
@@ -2391,8 +2391,8 @@
|
|
|
2391
2391
|
{
|
|
2392
2392
|
"path": "src/shortcuts/im/index.ts",
|
|
2393
2393
|
"role": "generated-cli",
|
|
2394
|
-
"size":
|
|
2395
|
-
"sha256": "
|
|
2394
|
+
"size": 19791,
|
|
2395
|
+
"sha256": "10e62421981c830a57202d4f3a06cf97a08a30e7845354ec81fa3f29e173ec42"
|
|
2396
2396
|
},
|
|
2397
2397
|
{
|
|
2398
2398
|
"path": "src/shortcuts/im/manifest.ts",
|