weaver-work-cli 0.1.73 → 0.1.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -1
- package/dist/chunks/{archive-THZV4ND4.js → archive-OZJ6PYUR.js} +14 -9
- package/dist/chunks/{archive-oa-PQ23OLEV.js → archive-oa-BHL5RK2F.js} +10 -7
- package/dist/chunks/{asset-RGPROZYH.js → asset-HKRFRQR2.js} +10 -7
- package/dist/chunks/{asset-idle-Z2PDX7NA.js → asset-idle-GGIR4KE7.js} +7 -4
- package/dist/chunks/{attachment-content-R3RPVOYE.js → attachment-content-4OV65NK5.js} +3 -3
- package/dist/chunks/{blog-7U3QZPIF.js → blog-HYDP4DV3.js} +10 -7
- package/dist/chunks/{caizhilian-3AB42GCV.js → caizhilian-JS4RQZ6Z.js} +10 -7
- package/dist/chunks/{calendar-KINM64E4.js → calendar-SWRY4DIT.js} +10 -7
- package/dist/chunks/chunk-257JXJGD.js +30 -0
- package/dist/chunks/{chunk-LLCMOZ5L.js → chunk-2AUFKU2D.js} +11 -11
- package/dist/chunks/chunk-2BZ7TY4M.js +49 -0
- package/dist/chunks/{chunk-WM33BSIL.js → chunk-2QCCXPNU.js} +1 -1
- package/dist/chunks/{chunk-TV46Q4NY.js → chunk-4FCBEWNB.js} +74 -68
- package/dist/chunks/{chunk-NUP4RYZK.js → chunk-5D2V7ZAN.js} +2 -2
- package/dist/chunks/{chunk-DRUND2PJ.js → chunk-5QUTQHXF.js} +225 -152
- package/dist/chunks/{chunk-4BXR6CNB.js → chunk-5ZJGPEIB.js} +2 -2
- package/dist/chunks/chunk-7DE3VMZD.js +35 -0
- package/dist/chunks/chunk-BNKUHN4N.js +1346 -0
- package/dist/chunks/{chunk-2CHGUYMG.js → chunk-BSR5TM7U.js} +4 -4
- package/dist/chunks/{chunk-4I26YMBY.js → chunk-ERZY6GYL.js} +7 -3
- package/dist/chunks/{chunk-4YXAK6OA.js → chunk-FEZK536Z.js} +12 -7
- package/dist/chunks/{chunk-F4HM25K4.js → chunk-I6NOHKEK.js} +1 -1
- package/dist/chunks/{chunk-JMJBPP4B.js → chunk-J7FAAHWH.js} +2 -2
- package/dist/chunks/{chunk-54ST55IJ.js → chunk-JJONWB5N.js} +11 -1
- package/dist/chunks/chunk-JOY3HZXL.js +467 -0
- package/dist/chunks/{chunk-GWJLAF6B.js → chunk-JWF2R6EQ.js} +0 -462
- package/dist/chunks/{chunk-BWYVS62Z.js → chunk-KEA4XQPO.js} +4 -4
- package/dist/chunks/chunk-KINXYJXM.js +205 -0
- package/dist/chunks/{chunk-IBSJJGXL.js → chunk-KWJEICD4.js} +2 -2
- package/dist/chunks/{chunk-GAMGDNTF.js → chunk-LJI4N6FV.js} +1 -1
- package/dist/chunks/{chunk-IU6UB2TD.js → chunk-MXCRKXOP.js} +48 -6
- package/dist/chunks/{chunk-PAFOLIYQ.js → chunk-NWYHCZTY.js} +1 -1
- package/dist/chunks/chunk-OJ4JPD25.js +428 -0
- package/dist/chunks/{chunk-L7TYG5SN.js → chunk-OQCK5SAU.js} +2 -2
- package/dist/chunks/chunk-PG5YSNYY.js +1166 -0
- package/dist/chunks/{chunk-XZBYRYWX.js → chunk-QJWVYOOV.js} +2 -2
- package/dist/chunks/{chunk-AMAPQVBT.js → chunk-QVKRNL7L.js} +286 -305
- package/dist/chunks/chunk-SU6IJD6D.js +49 -0
- package/dist/chunks/{chunk-ZWLWXHJC.js → chunk-TA2RBUTH.js} +2 -2
- package/dist/chunks/{chunk-6HT73VOI.js → chunk-U6Y32KEV.js} +2 -2
- package/dist/chunks/chunk-UUJK76HV.js +209 -0
- package/dist/chunks/{chunk-R3MK2RBN.js → chunk-VOMDD2C5.js} +1 -1
- package/dist/chunks/chunk-Y3C6MDL7.js +28 -0
- package/dist/chunks/chunk-ZM7RN2IM.js +38 -0
- package/dist/chunks/{chunk-2XED2FKY.js → chunk-ZUB4M4N3.js} +38 -36
- package/dist/chunks/{chunk-7QFVXP2X.js → chunk-ZWIMLT6P.js} +8 -7
- package/dist/chunks/cli-FULPXIKJ.js +226 -0
- package/dist/chunks/commands-BNWFNTD3.js +70 -0
- package/dist/chunks/{conflict-VPAR7E6F.js → conflict-5BKCDV2F.js} +2 -2
- package/dist/chunks/{contract-DDXAO2DZ.js → contract-WI23OXVC.js} +12446 -5964
- package/dist/chunks/{cowork-34QCHMDD.js → cowork-DZBBVNMQ.js} +11 -8
- package/dist/chunks/{create-flow-52PU2OBI.js → create-flow-7ZRBRKX7.js} +6 -6
- package/dist/chunks/{data-CLQ62QGD.js → data-PAZVE6QE.js} +6 -3
- package/dist/chunks/{ebuilder-form-W5R7Q22S.js → ebuilder-form-5SQXIGXN.js} +9 -6
- package/dist/chunks/{ehr-LCNAVMK5.js → ehr-CX5F4ZAU.js} +23 -16
- package/dist/chunks/{entry-mode-6Z3ZV3DE.js → entry-mode-I2BYNONZ.js} +3 -3
- package/dist/chunks/{env-RDKWAARB.js → env-ZAQZ7EHN.js} +2 -2
- package/dist/chunks/{esb-ANKPUU65.js → esb-DQTXDIBF.js} +10 -7
- package/dist/chunks/{factory-434B7RAT.js → factory-XRI6KZ7H.js} +1 -1
- package/dist/chunks/{fna-AKBSG5HI.js → fna-FK6HQVJL.js} +13 -8
- package/dist/chunks/{group-chat-PROTW22R.js → group-chat-MLWNYM2P.js} +3 -3
- package/dist/chunks/{host-WO4L5G5I.js → host-3EPREGXS.js} +6 -3
- package/dist/chunks/{host-XIYG4F4B.js → host-J74JGYAW.js} +6 -3
- package/dist/chunks/{host-7FJW4E7R.js → host-KUMU3DDK.js} +6 -3
- package/dist/chunks/{host-5R2SNFWD.js → host-MEC4VQZA.js} +6 -3
- package/dist/chunks/{host-PDJAKCT7.js → host-T6NNQGVZ.js} +6 -3
- package/dist/chunks/{host-CGXUFQO4.js → host-VI7Q45PM.js} +6 -3
- package/dist/chunks/{hrm-WGODDTEH.js → hrm-KKVAW4P5.js} +8 -5
- package/dist/chunks/{im-YKTKAJU3.js → im-47CIWQNL.js} +7 -4
- package/dist/chunks/{invoice-PVYCCCVM.js → invoice-CDYRBNIG.js} +21 -16
- package/dist/chunks/{jiuchuanhui-RKOQW7BY.js → jiuchuanhui-M7QTRHZK.js} +17 -10
- package/dist/chunks/{lazy-dispatch-DW45AFQ5.js → lazy-dispatch-FKQJZFI5.js} +22 -8
- package/dist/chunks/{mail-BNB5S4NW.js → mail-NRBS5N6Y.js} +11 -8
- package/dist/chunks/{meeting-O2KDJH66.js → meeting-WC5LD3IO.js} +22 -18
- package/dist/chunks/{minute-doc-JUCG56GY.js → minute-doc-OQUMDTKG.js} +4 -4
- package/dist/chunks/{okr-LWFGWOE7.js → okr-EHKSKMPL.js} +10 -7
- package/dist/chunks/{operations-532PN5OB.js → operations-V5VM5MS2.js} +7 -4
- package/dist/chunks/{performance-7W5COCFU.js → performance-ZJADXJPN.js} +6 -3
- package/dist/chunks/{plan-ZVY3IYTL.js → plan-OTDNBDJ7.js} +10 -7
- package/dist/chunks/{project-SA62B7MH.js → project-4XVBQ3HX.js} +10 -7
- package/dist/chunks/{reception-NGIONPQ3.js → reception-3FAHOOH7.js} +8 -4
- package/dist/chunks/{recruit-stage-WOSN6MGP.js → recruit-stage-3WTVWW2K.js} +199 -74
- package/dist/chunks/register-SQOPIR2G.js +16 -0
- package/dist/chunks/{registry-R72GWXOG.js → registry-F4YFZLOD.js} +7 -3
- package/dist/chunks/registry-NBTBXR4L.js +30 -0
- package/dist/chunks/{registry-N7P3W2RD.js → registry-TJGCVRCW.js} +7 -4
- package/dist/chunks/{room-recommend-KCGIVUFR.js → room-recommend-KL62XB2Y.js} +4 -4
- package/dist/chunks/root-YZG2TS5W.js +16 -0
- package/dist/chunks/{schedule-6UP27HQ4.js → schedule-XOISYUPB.js} +4 -4
- package/dist/chunks/{smart-extract-DDOQSPRB.js → smart-extract-UYGNV3BM.js} +15 -7
- package/dist/chunks/update-AV5VOXGY.js +13 -0
- package/dist/chunks/{workflow-V5ALD6QZ.js → workflow-V54LJPXL.js} +15 -10
- package/dist/cli.js +40 -0
- package/dist/cmd/action.js +3 -1
- package/dist/cmd/doctor/index.js +1 -1
- package/dist/cmd/e10/index.js +1 -1
- package/dist/cmd/identity/index.js +5 -8
- package/dist/cmd/index.js +2 -0
- package/dist/cmd/setup/index.js +1 -1
- package/dist/cmd/update/index.js +38 -0
- package/dist/core/manifest-view.js +1 -1
- package/dist/core/output.js +8 -1
- package/dist/core/runtime-agent.js +13 -0
- package/dist/core/update-notice.js +23 -0
- package/dist/index.js +105 -198
- package/dist/internal/e10/auth/agent-host-key.js +16 -0
- package/dist/internal/e10/auth/agent-hosts.js +45 -9
- package/dist/internal/e10/auth/commands.js +66 -36
- package/dist/internal/e10/auth/session.js +30 -15
- package/dist/internal/e10/auth/xiaoe.js +4 -20
- package/dist/internal/e10/auth-recovery.js +44 -4
- package/dist/internal/e10/context.js +5 -2
- package/dist/internal/update/bootstrap.js +96 -0
- package/dist/internal/update/npm.js +78 -0
- package/dist/internal/update/service.js +252 -0
- package/dist/internal/update/store.js +135 -0
- package/dist/shortcuts/archive/index.js +2 -2
- package/dist/shortcuts/archive/manifest.js +1 -0
- package/dist/shortcuts/archive/operations/search.js +3 -1
- package/dist/shortcuts/archive-oa/index.js +1 -1
- package/dist/shortcuts/asset/index.js +1 -1
- package/dist/shortcuts/asset-idle/index.js +1 -1
- package/dist/shortcuts/blog/index.js +1 -1
- package/dist/shortcuts/caizhilian/index.js +1 -1
- package/dist/shortcuts/calendar/index.js +1 -1
- package/dist/shortcuts/contract/data/bi-config.js +156 -0
- package/dist/shortcuts/contract/data/collection-ledger-html.js +189 -0
- package/dist/shortcuts/contract/data/collection-node-catalog.js +226 -0
- package/dist/shortcuts/contract/data/metric-catalog.js +154 -20
- package/dist/shortcuts/contract/data/report-renderers.js +414 -0
- package/dist/shortcuts/contract/data/report-spec.js +132 -0
- package/dist/shortcuts/contract/error-actions.js +114 -0
- package/dist/shortcuts/contract/host.js +12 -3
- package/dist/shortcuts/contract/index.js +17 -1
- package/dist/shortcuts/contract/manifest.js +398 -3
- package/dist/shortcuts/contract/ooxml/docx-table.js +48 -0
- package/dist/shortcuts/contract/operations/bi-preview.js +131 -0
- package/dist/shortcuts/contract/operations/bizreview-report.js +496 -0
- package/dist/shortcuts/contract/operations/collection-node.js +229 -0
- package/dist/shortcuts/contract/operations/docx-slots.js +735 -16
- package/dist/shortcuts/contract/operations/draft-build.js +940 -0
- package/dist/shortcuts/contract/operations/draft-submit.js +229 -0
- package/dist/shortcuts/contract/operations/first-screen.js +3 -2
- package/dist/shortcuts/contract/operations/generated-submit.js +175 -0
- package/dist/shortcuts/contract/operations/ledger-report.js +233 -0
- package/dist/shortcuts/contract/operations/ledger-stat.js +1400 -0
- package/dist/shortcuts/contract/operations/ledger.js +4 -1
- package/dist/shortcuts/contract/operations/metrics.js +9 -3
- package/dist/shortcuts/contract/operations/ops-draft.js +527 -0
- package/dist/shortcuts/contract/operations/page.js +9 -0
- package/dist/shortcuts/contract/operations/quote-submit.js +55 -229
- package/dist/shortcuts/contract/operations/registry.js +20 -0
- package/dist/shortcuts/contract/operations/sign-launch.js +256 -0
- package/dist/shortcuts/contract/operations/viewlink.js +334 -0
- package/dist/shortcuts/cowork/index.js +2 -2
- package/dist/shortcuts/ebuilder-form/index.js +1 -1
- package/dist/shortcuts/ehr/index.js +2 -2
- package/dist/shortcuts/ehr/manifest.js +1 -1
- package/dist/shortcuts/ehr/operations/recruit-position.js +7 -2
- package/dist/shortcuts/ehr/operations/recruit-write.js +7 -6
- package/dist/shortcuts/ehr/operations/recruit.js +318 -248
- package/dist/shortcuts/ehr/operations/shared.js +22 -2
- package/dist/shortcuts/esb/index.js +1 -1
- package/dist/shortcuts/fna/index.js +1 -1
- package/dist/shortcuts/fna/manifest.js +1 -0
- package/dist/shortcuts/fna/operations/expense-chart.js +3 -1
- package/dist/shortcuts/hrm/index.js +1 -1
- package/dist/shortcuts/invoice/index.js +1 -1
- package/dist/shortcuts/jiuchuanhui/index.js +2 -2
- package/dist/shortcuts/jiuchuanhui/manifest.js +3 -0
- package/dist/shortcuts/mail/index.js +2 -2
- package/dist/shortcuts/meeting/index.js +1 -1
- package/dist/shortcuts/meeting/manifest.js +1 -0
- package/dist/shortcuts/meeting/operations/eb/catalog.js +5 -3
- package/dist/shortcuts/meeting/operations/eb/conflict.js +3 -1
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +10 -9
- package/dist/shortcuts/meeting/operations/eb/factory.js +2 -0
- package/dist/shortcuts/meeting/operations/eb/member-expand.js +3 -2
- package/dist/shortcuts/meeting/operations/invitation-publish.js +3 -3
- package/dist/shortcuts/meeting/operations/invitation.js +4 -4
- package/dist/shortcuts/meeting/operations/link.js +3 -1
- package/dist/shortcuts/okr/index.js +1 -1
- package/dist/shortcuts/performance/index.js +1 -1
- package/dist/shortcuts/plan/index.js +1 -1
- package/dist/shortcuts/project/index.js +1 -1
- package/dist/shortcuts/reception/manifest.js +2 -2
- package/dist/shortcuts/recruit-stage/context.js +10 -2
- package/dist/shortcuts/recruit-stage/index.js +16 -3
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +1 -1
- package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +1 -1
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +17 -8
- package/dist/shortcuts/recruit-stage/operations/list.js +1 -1
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +178 -35
- package/dist/shortcuts/recruit-stage/operations/search.js +2 -2
- package/dist/shortcuts/recruit-stage/operations/shortlist.js +4 -2
- package/dist/shortcuts/recruit-stage/shared.js +27 -53
- package/dist/shortcuts/smart-extract/manifest.js +1 -0
- package/dist/shortcuts/smart-extract/operations/fill.js +7 -2
- package/dist/shortcuts/smart-extract/operations/validate.js +4 -1
- package/dist/shortcuts/workflow/index.js +2 -2
- package/dist/shortcuts/workflow/manifest.js +1 -0
- package/dist/shortcuts/workflow/operations/aiDeepRead/render.js +4 -1
- package/dist/shortcuts/workflow/operations/deepRead.js +23 -2
- package/dist/shortcuts/workflow/operations/form.js +8 -2
- package/docs/contract.md +6 -1
- package/docs/e10-auth.md +25 -7
- package/docs/operation-manual.md +15 -0
- package/package.json +2 -2
- package/scripts/pysite/__pycache__/sitecustomize.cpython-314.pyc +0 -0
- package/skill-template/business-info.json +28 -0
- package/skill-template/domains/jinchengda.md +13 -1
- package/skills/weaver-e10-archive-oa/references/source-manifest.json +3 -3
- package/skills/weaver-e10-caizhilian/references/auth-and-install.md +2 -1
- package/skills/weaver-e10-caizhilian/references/source-manifest.json +3 -3
- package/skills/weaver-e10-esb/references/source-manifest.json +3 -3
- package/skills/weaver-e10-jinchengda/SKILL.md +90 -32
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +45 -0
- package/skills/weaver-e10-jinchengda/references/contract-bizreview-report-template.html +68 -0
- package/skills/weaver-e10-jinchengda/references/contract-bizreview.md +216 -0
- package/skills/weaver-e10-jinchengda/references/contract-clause-negotiate.md +215 -0
- package/skills/weaver-e10-jinchengda/references/contract-collection-node.md +113 -0
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +19 -3
- package/skills/weaver-e10-jinchengda/references/contract-decisions.md +114 -0
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +53 -44
- package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-firstscreen-guide.md +200 -0
- package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +18 -1
- package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +138 -3
- package/skills/weaver-e10-jinchengda/references/contract-ledger-report.md +158 -0
- package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +3 -1
- package/skills/weaver-e10-jinchengda/references/contract-material-gap.md +139 -0
- package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +2 -2
- package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +10 -3
- package/skills/weaver-e10-jinchengda/references/contract-ops-draft.md +106 -0
- package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +176 -56
- package/skills/weaver-e10-jinchengda/references/contract-sign-launch.md +123 -0
- package/skills/weaver-e10-jinchengda/references/contract-smart-draft.md +410 -0
- package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-viewlink.md +110 -0
- package/skills/weaver-e10-jinchengda/references/orchestration.md +38 -24
- package/skills/weaver-e10-meeting/SKILL.md +13 -0
- package/skills/weaver-e10-okr/SKILL.md +11 -0
- package/skills/weaver-e10-okr/references/source-manifest.json +7 -6
- package/skills/weaver-e10-performance/SKILL.md +131 -39
- package/skills/weaver-e10-performance/agents/openai.yaml +48 -17
- package/skills/weaver-e10-performance/references/default-assembly.md +3 -0
- package/skills/weaver-e10-performance/references/extraction-guide.md +17 -3
- package/skills/weaver-e10-performance/references/flow-assess.md +38 -5
- package/skills/weaver-e10-performance/references/scheme-setting-page.md +20 -3
- package/skills/weaver-e10-performance/scripts/assemble_scheme.py +461 -0
- package/skills/weaver-e10-performance/scripts/parse_appraisal_doc.py +41 -0
- package/skills/weaver-e10-plan/SKILL.md +10 -0
- package/skills/weaver-e10-plan/references/source-manifest.json +13 -13
- package/skills/weaver-e10-qiyecheng/SKILL.md +2 -2
- package/skills/weaver-e10-qiyecheng/references/source-manifest.json +9 -9
- package/skills/weaver-e10-recruit-stage/SKILL.md +188 -169
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +55 -37
- package/skills/weaver-e10-recruit-stage/lib/interview-conflict.mjs +3 -0
- package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +168 -35
- package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +175 -7
- package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +3 -0
- package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +15 -1
- package/skills/weaver-e10-recruit-stage/lib/report-attachment.mjs +38 -0
- package/skills/weaver-e10-recruit-stage/lib/xiaoe-session.mjs +5 -1
- package/skills/weaver-e10-recruit-stage/references/env-fixed-values.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +12 -8
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +16 -11
- package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +10 -6
- package/skills/weaver-e10-recruit-stage/references/recruit-check-install.md +5 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-detail-process.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +7 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-failure-fallback.md +6 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +7 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +31 -23
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-template.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +5 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-maint.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +16 -10
- package/skills/weaver-e10-recruit-stage/references/recruit-my-positions.md +6 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +147 -34
- package/skills/weaver-e10-recruit-stage/references/recruit-platform-compat.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +16 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-creator.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +8 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +6 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +24 -15
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +7 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +7 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +8 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +5 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +5 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +5 -1
- package/skills/weaver-e10-recruit-stage/templates/candidate-evidence.html +41 -28
- package/skills/weaver-e10-recruit-stage/templates/interview-summary.html +23 -26
- package/skills/weaver-e10-recruit-stage/templates/match-report.html +32 -30
- package/skills/weaver-e10-shared/SKILL.md +40 -5
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +11 -1
- package/skills/weaver-e10-shared/references/json-output-contract.md +144 -8
- package/skills/weaver-e10-shared/references/weaver-e10-installation.md +11 -0
- package/skills/weaver-e10-shijingran/references/source-manifest.json +3 -3
- package/skills/weaver-e10-wenshuding/references/source-manifest.json +3 -3
- package/skills/weaver-e10-workflow/references/source-manifest.json +3 -3
- package/skills/weaver-e10-yepiaotong/references/source-manifest.json +5 -5
- package/dist/chunks/chunk-ICP53R52.js +0 -2849
- package/dist/chunks/registry-RIQ67ZT7.js +0 -27
|
@@ -21,7 +21,7 @@ description: 按手机号/姓名/邮箱/创建人/创建时间等条件搜索人
|
|
|
21
21
|
## 3. 前置条件
|
|
22
22
|
- 需要 EB 列表的 `listId`(视图 id),部署参数(可经 `allMenus` 自动发现,见 resolve-metadata §3.1);无 tag 反查接口,按租户写死(已知缺口)。
|
|
23
23
|
- 创建人条件需先经"创建人名称→ID"解析为用户 ID(见 recruit-resolve-creator.md)。
|
|
24
|
-
- 渠道值返回裸 ID
|
|
24
|
+
- 渠道值返回裸 ID,经静态字典映射为中文(`ds/options` 反查)。
|
|
25
25
|
|
|
26
26
|
## 4. 请求参数
|
|
27
27
|
|
|
@@ -79,10 +79,10 @@ description: 按手机号/姓名/邮箱/创建人/创建时间等条件搜索人
|
|
|
79
79
|
除 `commonSearchFields` 外,EB 列表还接受 `searchParamData.groupFields` 做字段级过滤,形态更简单,实测(需求/职位列表的筛选项即用此机制):
|
|
80
80
|
|
|
81
81
|
`"groupFields": { "field_<fieldId>": [<value>] }`
|
|
82
|
-
- `<value>` 形态:下拉/选项类字段传**选项 ID**(如 `840774534427852804`,从 `
|
|
82
|
+
- `<value>` 形态:下拉/选项类字段传**选项 ID**(如 `840774534427852804`,从 `ds/fields` 的选项反查);文本类传文本值;日期类传 `[from, to]`。
|
|
83
83
|
- 可过滤字段不限于上面 7 个:人才表单任何字段(含 招聘状态 `recruit_status`、简历来源 `channel`、姓名 `name`、手机号 `telephone`、邮箱 `email`、创建人 `creator`、创建时间 `create_time`)都能作为 `groupFields` 键;字段 id 同样经 `ds/fields` 解析,不写死。
|
|
84
84
|
- 组合:`commonSearchFields` 与 `groupFields` 可并存,最终按 `searchParamData.type`(and/or)合并。
|
|
85
|
-
- 用法示例:"渠道=内推的候选人" → `groupFields: { "field_<简历来源字段id>": ["<内推选项id>"] }`;"招聘状态=候选中的" → `groupFields: { "field_<招聘状态字段id>": ["<候选中选项id>"] }`。选项 ID 不确定时先查 `
|
|
85
|
+
- 用法示例:"渠道=内推的候选人" → `groupFields: { "field_<简历来源字段id>": ["<内推选项id>"] }`;"招聘状态=候选中的" → `groupFields: { "field_<招聘状态字段id>": ["<候选中选项id>"] }`。选项 ID 不确定时先查 `ds/fields` 的选项,或向用户澄清。
|
|
86
86
|
|
|
87
87
|
## 5. 响应数据结构
|
|
88
88
|
| 字段 | 类型 | 说明 |
|
|
@@ -135,7 +135,7 @@ description: 按手机号/姓名/邮箱/创建人/创建时间等条件搜索人
|
|
|
135
135
|
## 9. 调用参考
|
|
136
136
|
- 用户场景:直接表达"搜/找/查 某条件候选人"。
|
|
137
137
|
- 创建人名称需先经 recruit-resolve-creator.md 解析为 ID,再作为 `field_{<创建人字段id>}` 条件(创建人字段 id 经 `ds/fields` 解析,见 `recruit-resolve-metadata.md` §5)。
|
|
138
|
-
-
|
|
138
|
+
- 命中多条时展示列表,姓名可带 EB 详情行内链接(拼装规则见 SKILL.md 链接拼装,依赖登录态);**表格之后另给一条「人才库」Markdown 链接(不出卡)**,行内姓名链接只作快捷方式。
|
|
139
139
|
|
|
140
140
|
## 10. 注意事项
|
|
141
141
|
- `tableuid` **必须每请求随机生成**(32 位 hex),不可写死,否则后端返回旧缓存/忽略条件。
|
|
@@ -144,3 +144,7 @@ description: 按手机号/姓名/邮箱/创建人/创建时间等条件搜索人
|
|
|
144
144
|
- 列表 `listId`(视图 id)无 tag 反查接口,按租户写死于配置(已知缺口)。
|
|
145
145
|
- 列表查询必带上下文参数(`searchType`/`requiredMatch`/`mapResult`/`recheckQuery`/`isFollow`/`isShareToMe`/`filterCondition`/`selectedId`/`cusMenuId`/`urlPageTitle`/`menuName`)见 `recruit-resolve-metadata.md` §7;缺任一项会返回 `total=0` 假空,**勿据此判「人才库为空」**。
|
|
146
146
|
- 渠道/创建人返回裸 ID,需映射/反查后才可读(见 SKILL.md)。
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
@@ -93,7 +93,7 @@ node lib/recruit-write-helper.mjs apply recruit-stage.tag.attach
|
|
|
93
93
|
|
|
94
94
|
- 只给中文标签名,不输出 tagId / color / creator。
|
|
95
95
|
- 勾选结果与最终结果分开说:先「将挂 3 个、新建 2 个」,再「已挂 5 个,回查全部命中」。
|
|
96
|
-
- 卡片入口固定:`{origin}/sp/
|
|
96
|
+
- 卡片入口固定:`{origin}/sp/ebdpage/view/1343164177628012608?talentId={talentId}`(见 `recruit-output-links.md` §2)。
|
|
97
97
|
|
|
98
98
|
## 7. 词表维护(唯一入口)
|
|
99
99
|
|
|
@@ -172,3 +172,7 @@ tag.attach.prepare {talentId, tags:[{name, prefer:"public"}]}
|
|
|
172
172
|
|
|
173
173
|
- `weapp-recruit` 人才卡片只给公共标签组件传 `tagModules={['recruit']}`;不写推荐/创建/缓存 JS,不加自研选择器。所有交互代码进 ecode 版;ecode 做不了就先不做,只保留技能侧 CLI 加标签能力。
|
|
174
174
|
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
@@ -4,7 +4,7 @@ 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
|
|
|
@@ -69,3 +69,7 @@ POST /api/ebuilder/form/esb/runEsb
|
|
|
69
69
|
- **定位前置**:催评前必须先定位到唯一候选人(见 §3),命中多条先消歧,绝不自动取第一条。
|
|
70
70
|
- 动作流 `esbActionIds` 跨环境会变(迁入/升级后失效),正式版走 §4 按钮配置解析(getListButtons 取 esb 按钮 id),不写死、不依赖部署参数。
|
|
71
71
|
- **L3 不得因超时盲目重试**:若首次 `runEsb` 疑似超时,须先查询该面试评价的反馈状态确认未发送,再决定是否补发;严禁直接重试导致对面试官重复发送通知。
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
@@ -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
|
+
|
|
@@ -6,38 +6,46 @@
|
|
|
6
6
|
<title>简历检索与人岗匹配证据</title>
|
|
7
7
|
<style>
|
|
8
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:
|
|
10
|
-
|
|
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; }
|
|
11
12
|
.head { background: #fff; border: 1px solid #e5e5e5; border-left: 3px solid #5d9cec; border-radius: 4px; padding: 14px 18px; margin-bottom: 12px; }
|
|
12
13
|
.head h1 { font-size: 18px; font-weight: 600; margin-bottom: 2px; }
|
|
13
|
-
.head .sub { font-size:
|
|
14
|
-
.nums { display:
|
|
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; }
|
|
15
18
|
.num .k { font-size: 12px; color: #959595; }
|
|
16
|
-
.num .v { font-size:
|
|
17
|
-
.card { background: #fff; border: 1px solid #e5e5e5; border-radius: 4px; padding:
|
|
18
|
-
.card-hd { display: flex; align-items: flex-start; justify-content: space-between; gap:
|
|
19
|
-
.
|
|
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; }
|
|
20
24
|
.nm a { color: #333; text-decoration: none; }
|
|
21
25
|
.nm a:hover { color: #5d9cec; }
|
|
22
|
-
.meta { font-size:
|
|
23
|
-
.meta span { margin-right:
|
|
24
|
-
.
|
|
25
|
-
.
|
|
26
|
-
.
|
|
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; }
|
|
27
32
|
.b-high { background: #f6ffed; color: #52c41a; }
|
|
28
33
|
.b-mid { background: #fffbe6; color: #d48806; }
|
|
29
34
|
.b-low { background: #fff1f0; color: #ff4d4f; }
|
|
30
|
-
.cols { display: grid; grid-template-columns:
|
|
31
|
-
.sec
|
|
32
|
-
.
|
|
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; }
|
|
33
40
|
.it b { font-weight: 600; }
|
|
34
41
|
.it .rg { color: #959595; font-size: 12px; margin-left: 6px; font-variant-numeric: tabular-nums; }
|
|
35
|
-
.it p { color: #666; font-size:
|
|
42
|
+
.it p { color: #666; font-size: 13px; margin-top: 2px; }
|
|
36
43
|
.more-x { font-size: 12px; color: #959595; }
|
|
37
|
-
.ev { margin-top: 12px; background: #ecf5ff; border-radius: 4px; padding:
|
|
38
|
-
.rk { margin-top: 8px; background: #fffbe6; border-radius: 4px; padding:
|
|
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; }
|
|
39
46
|
footer { margin-top: 22px; padding-top: 12px; border-top: 1px solid #e5e5e5; font-size: 12px; color: #959595; line-height: 1.8; }
|
|
40
|
-
|
|
47
|
+
/* 不用视口断点改版式:左右两列始终保持,窄屏靠 ellipsis/换行收口。 */
|
|
48
|
+
|
|
41
49
|
</style>
|
|
42
50
|
</head>
|
|
43
51
|
<body>
|
|
@@ -62,6 +70,9 @@ const EVIDENCE_DATA = __EVIDENCE_DATA_PLACEHOLDER__;
|
|
|
62
70
|
function esc(s) { return String(s == null ? '' : s).replace(/[&<>"]/g, c => ({ '&': '&', '<': '<', '>': '>', '"': '"' }[c])); }
|
|
63
71
|
function cut(s, n) { const t = String(s || '').replace(/\s+/g, ' ').trim(); return t.length > n ? t.slice(0, n) + '…' : t; }
|
|
64
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 : []);
|
|
65
76
|
|
|
66
77
|
function render(d) {
|
|
67
78
|
const base = d.baseUrl || '';
|
|
@@ -77,22 +88,24 @@ function render(d) {
|
|
|
77
88
|
const rank = (l) => (l === 'high' ? 2 : l === 'mid' ? 1 : 0);
|
|
78
89
|
const list = (d.candidates || []).slice().sort((x, y) => rank(y.level) - rank(x.level));
|
|
79
90
|
document.getElementById('cards').innerHTML = list.map((c, ci) => {
|
|
80
|
-
const card = c.talentId ? `${base}/sp/
|
|
91
|
+
const card = c.talentId ? `${base}/sp/ebdpage/view/1343164177628012608?talentId=${c.talentId}` : '';
|
|
81
92
|
const name = card ? `<a href="${card}" target="_blank">${esc(c.name)}</a>` : esc(c.name);
|
|
82
|
-
const
|
|
83
|
-
const
|
|
84
|
-
const
|
|
85
|
-
const
|
|
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>` : '';
|
|
86
99
|
return `<article class="card">
|
|
87
100
|
<div class="card-hd">
|
|
88
101
|
<div><div class="nm">${name}</div>
|
|
89
|
-
<div class="meta"><span>${esc(c.degree)}</span><span>${esc(c.college)}</span><span>${esc(c.pos)}</span><span>${esc(c.industry)}</span></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>
|
|
90
103
|
</div>
|
|
91
104
|
<div class="verdict-box"><div class="badge ${badgeClass(c.verdict)}">${esc(c.verdict)}</div><div class="rank-no">排名 #${ci + 1}</div></div>
|
|
92
105
|
</div>
|
|
93
106
|
<div class="cols">
|
|
94
|
-
<div class="sec"><h3>工作经历</h3>${works || '<div class="it"
|
|
95
|
-
<div class="sec"><h3>项目经验</h3>${projs || '<div class="it"
|
|
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>
|
|
96
109
|
</div>
|
|
97
110
|
${c.evidence ? `<div class="ev">${esc(c.evidence)}</div>` : ''}
|
|
98
111
|
${c.risk ? `<div class="rk">${esc(c.risk)}</div>` : ''}
|
|
@@ -8,11 +8,14 @@
|
|
|
8
8
|
|
|
9
9
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
10
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:
|
|
12
|
-
|
|
13
|
-
|
|
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; }
|
|
14
16
|
.rule-btn:hover { background: #ddedff; }
|
|
15
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; }
|
|
16
19
|
.modal[hidden] { display: none; }
|
|
17
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; }
|
|
18
21
|
.modal-box { background: #fff; border-radius: 4px; max-width: 760px; width: 100%; max-height: 86vh; overflow: auto; }
|
|
@@ -33,32 +36,33 @@ h1 { font-size: 18px; font-weight: 600; margin: 0 0 2px; }
|
|
|
33
36
|
.verdict .lead { font-size: 14px; font-weight: 500; }
|
|
34
37
|
.verdict .lead b { font-weight: 600; color: var(--danger); }
|
|
35
38
|
.verdict .lead b.ok { color: var(--ok); }
|
|
36
|
-
.nums { display:
|
|
37
|
-
.num {
|
|
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; }
|
|
38
41
|
.num:first-child { border-left: none; }
|
|
39
|
-
.num .k { font-size:
|
|
40
|
-
.num .v { font-size:
|
|
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; }
|
|
41
44
|
.num .v small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 3px; }
|
|
42
45
|
.block { margin-bottom: 12px; }
|
|
43
46
|
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 8px; }
|
|
44
47
|
.block-head h2 { font-size: 15px; font-weight: 600; }
|
|
45
48
|
.block-head span { font-size: 12px; color: var(--muted); }
|
|
46
49
|
.list, .cf-list { background: var(--card); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
|
|
47
|
-
.row { display: grid; grid-template-columns:
|
|
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; }
|
|
48
51
|
.row:first-child { border-top: none; }
|
|
49
52
|
.row:hover { background: #fafafa; }
|
|
50
|
-
.when b { display: block; font-size:
|
|
51
|
-
.when i { display: block; font-style: normal; font-size:
|
|
52
|
-
.who
|
|
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; }
|
|
53
57
|
.who .nm a { color: var(--text); text-decoration: none; }
|
|
54
58
|
.who .nm a:hover { color: var(--accent); }
|
|
55
|
-
.who .pos { font-size:
|
|
59
|
+
.who .pos { font-size: 13px; color: var(--muted); margin-left: 6px; font-weight: 400; }
|
|
56
60
|
.tags { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px; }
|
|
57
|
-
.tg { font-size:
|
|
61
|
+
.tg { font-size: 12px; padding: 1px 6px; border-radius: 2px; background: #f2f2f2; color: #666; }
|
|
58
62
|
.tg.tp { background: #ecf5ff; color: var(--accent); }
|
|
59
|
-
.side {
|
|
60
|
-
.side .iv { font-size:
|
|
61
|
-
.st { display: inline-block; font-size:
|
|
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; }
|
|
62
66
|
.st-wait { background: #ecf5ff; color: var(--accent); }
|
|
63
67
|
.st-done { background: #f6ffed; color: var(--ok); }
|
|
64
68
|
.st-warn { background: #fffbe6; color: #d48806; }
|
|
@@ -71,7 +75,7 @@ h1 { font-size: 18px; font-weight: 600; margin: 0 0 2px; }
|
|
|
71
75
|
.cf.g .arrow { color: #959595; }
|
|
72
76
|
.cf-wrap + .cf-wrap { margin-top: 10px; }
|
|
73
77
|
.cf-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
|
|
74
|
-
.cf { display: grid; grid-template-columns:
|
|
78
|
+
.cf { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 9px 14px; border-top: 1px solid #f5f5f5; font-size: 14px; }
|
|
75
79
|
.cf:first-of-type { border-top: none; }
|
|
76
80
|
.cf .p { font-weight: 600; }
|
|
77
81
|
.cf .p span { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
|
|
@@ -86,13 +90,6 @@ h1 { font-size: 18px; font-weight: 600; margin: 0 0 2px; }
|
|
|
86
90
|
.day .list { border-radius: 4px; }
|
|
87
91
|
footer { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.8; }
|
|
88
92
|
footer a { color: var(--accent); text-decoration: none; }
|
|
89
|
-
@media (max-width: 720px) {
|
|
90
|
-
.page { padding: 14px 12px 24px; }
|
|
91
|
-
.nums { gap: 18px; }
|
|
92
|
-
.row { grid-template-columns: 72px 1fr; }
|
|
93
|
-
.side { grid-column: 1 / -1; text-align: left; display: flex; gap: 10px; align-items: center; }
|
|
94
|
-
.cf { grid-template-columns: 1fr; gap: 4px; }
|
|
95
|
-
}
|
|
96
93
|
|
|
97
94
|
</style>
|
|
98
95
|
</head>
|
|
@@ -104,7 +101,7 @@ footer a { color: var(--accent); text-decoration: none; }
|
|
|
104
101
|
<h1>面试安排</h1>
|
|
105
102
|
<div class="sub" id="sub">—</div>
|
|
106
103
|
</div>
|
|
107
|
-
<button class="rule-btn" id="ruleBtn" type="button"
|
|
104
|
+
<button class="rule-btn" id="ruleBtn" type="button">状态与规则</button>
|
|
108
105
|
</div>
|
|
109
106
|
</div>
|
|
110
107
|
|
|
@@ -193,7 +190,7 @@ function nowText() {
|
|
|
193
190
|
function rowHtml(r, withDay) {
|
|
194
191
|
const d = window.data || {};
|
|
195
192
|
const base = d.baseUrl || '';
|
|
196
|
-
const card = r.talentId ? `${base}/sp/
|
|
193
|
+
const card = r.talentId ? `${base}/sp/ebdpage/view/1343164177628012608?talentId=${r.talentId}` : '';
|
|
197
194
|
const name = card ? `<a href="${card}" target="_blank">${esc(r.candidateName)}</a>` : esc(r.candidateName);
|
|
198
195
|
const detail = r.formDataId && d.interviewObjId ? `${base}/sp/ebdfpage/card/0/${d.interviewObjId}/${r.formDataId}` : '';
|
|
199
196
|
const tags = [r.rounds, r.session].filter(Boolean).map(x => `<span class="tg">${esc(x)}</span>`).join('')
|
|
@@ -7,51 +7,60 @@
|
|
|
7
7
|
<style>
|
|
8
8
|
|
|
9
9
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
10
|
-
body { background: #f5f5f5; color: #333; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; font-size:
|
|
11
|
-
|
|
10
|
+
body { background: #f5f5f5; color: #333; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.6; }
|
|
11
|
+
/* 宽度自适应右侧面板:最大 1000,面板更窄时铺满;不按视口切列数。 */
|
|
12
|
+
.container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 18px 14px 28px; }
|
|
12
13
|
.header { background: #fff; border: 1px solid #e5e5e5; border-left: 3px solid #5d9cec; border-radius: 4px; padding: 14px 18px; margin-bottom: 12px; }
|
|
13
14
|
.header h1 { font-size: 18px; font-weight: 600; color: #333; margin-bottom: 2px; }
|
|
14
|
-
.header .subtitle { font-size:
|
|
15
|
-
.summary-bar { display:
|
|
16
|
-
.summary-card {
|
|
15
|
+
.header .subtitle { font-size: 13px; color: #959595; }
|
|
16
|
+
.summary-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; background: #fff; border: 1px solid #e5e5e5; border-radius: 4px; overflow: hidden; }
|
|
17
|
+
.summary-card { min-width: 0; padding: 11px 12px; background: linear-gradient(180deg, #eaf4ff 0%, #f7fbff 100%); border-left: 1px solid #d7e8fb; }
|
|
17
18
|
.summary-card:first-child { border-left: none; }
|
|
18
|
-
.summary-card .label { font-size:
|
|
19
|
-
.summary-card .value { font-size:
|
|
20
|
-
.candidate-section { background: #fff; border: 1px solid #e5e5e5; border-radius: 4px; padding:
|
|
21
|
-
.candidate-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
|
|
22
|
-
.candidate-
|
|
19
|
+
.summary-card .label { font-size: 13px; color: #7a8797; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
20
|
+
.summary-card .value { font-size: 20px; font-weight: 600; color: #1f4e79; }
|
|
21
|
+
.candidate-section { background: #fff; border: 1px solid #e5e5e5; border-radius: 4px; padding: 14px 14px; margin-bottom: 12px; }
|
|
22
|
+
.candidate-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; flex-wrap: wrap; }
|
|
23
|
+
.candidate-header > div:first-child { flex: 1 1 200px; min-width: 0; }
|
|
24
|
+
.candidate-header > div:nth-child(2) { flex: 0 1 auto; min-width: 0; max-width: 46%; text-align: right; }
|
|
25
|
+
.candidate-name { font-size: 16px; font-weight: 600; }
|
|
23
26
|
.candidate-name a { color: #333; text-decoration: none; }
|
|
24
27
|
.candidate-name a:hover { color: #5d9cec; }
|
|
25
28
|
.score-badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 2px; }
|
|
26
29
|
.score-high { background: #f6ffed; color: #52c41a; }
|
|
27
30
|
.score-medium { background: #fffbe6; color: #d48806; }
|
|
28
31
|
.score-low { background: #fff1f0; color: #ff4d4f; }
|
|
29
|
-
.candidate-body { display: grid; grid-template-columns:
|
|
32
|
+
.candidate-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
|
|
30
33
|
.radar-chart { width: 100%; padding: 2px 0; }
|
|
31
34
|
.bar { display: grid; grid-template-columns: 62px 1fr 30px; gap: 8px; align-items: center; margin: 9px 0; font-size: 12px; }
|
|
32
35
|
.bar .bn { color: #666; }
|
|
33
36
|
.bar .bt { height: 6px; background: #f0f0f0; border-radius: 2px; overflow: hidden; }
|
|
34
37
|
.bar .bt i { display: block; height: 6px; border-radius: 2px; }
|
|
35
38
|
.bar .bv { text-align: right; color: #333; font-variant-numeric: tabular-nums; }
|
|
36
|
-
.match-table { width: 100%; border-collapse: collapse; }
|
|
39
|
+
.match-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
|
|
37
40
|
.match-table th { text-align: left; font-size: 12px; color: #959595; padding: 6px 8px; background: #f7f7f7; border-bottom: 1px solid #e5e5e5; font-weight: 400; }
|
|
41
|
+
.match-table th:first-child { width: 78px; }
|
|
42
|
+
.match-table th:nth-child(2) { width: 56px; }
|
|
38
43
|
.match-table td { padding: 7px 8px; border-bottom: 1px solid #f5f5f5; font-size: 13px; }
|
|
39
44
|
.match-table .dim-name { font-weight: 600; white-space: nowrap; }
|
|
40
|
-
.match-table .evidence { color: #666; }
|
|
45
|
+
.match-table .evidence { color: #666; overflow-wrap: anywhere; word-break: break-word; }
|
|
41
46
|
.match-table .level { font-weight: 600; text-align: center; width: 52px; }
|
|
42
47
|
.level-high { color: #52c41a; }
|
|
43
48
|
.level-medium { color: #d48806; }
|
|
44
49
|
.level-low { color: #ff4d4f; }
|
|
45
|
-
.candidate-basic { font-size:
|
|
46
|
-
.candidate-basic span { margin-right:
|
|
47
|
-
.
|
|
50
|
+
.candidate-basic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px 10px; font-size: 13px; color: #777; margin-top: 5px; }
|
|
51
|
+
.candidate-basic span { margin-right: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
52
|
+
.req-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
|
|
53
|
+
.req-chip { display: inline-flex; align-items: center; max-width: 100%; padding: 5px 10px; border-radius: 3px; background: #ecf5ff; color: #2b5c8a; font-size: 13px; line-height: 1.5; }
|
|
54
|
+
.table-scroll { width: 100%; overflow-x: auto; }
|
|
55
|
+
.comparison-table { width: 100%; min-width: 760px; border-collapse: collapse; margin-top: 4px; }
|
|
48
56
|
.comparison-table th { background: #f7f7f7; padding: 8px; font-size: 12px; text-align: left; color: #666; font-weight: 400; border-bottom: 1px solid #e5e5e5; }
|
|
49
57
|
.comparison-table td { padding: 8px; font-size: 13px; border-bottom: 1px solid #f5f5f5; }
|
|
50
58
|
.comparison-table .rank { font-weight: 600; color: #5d9cec; }
|
|
51
59
|
|
|
52
|
-
.rule-btn { border: 1px solid #d9ecff; background: #ecf5ff; color: #2b6cb0; font-size:
|
|
60
|
+
.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; }
|
|
53
61
|
.rule-btn:hover { background: #ddedff; }
|
|
54
62
|
.hd-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
|
|
63
|
+
.hd-row > div:first-child { flex: 1; min-width: 0; }
|
|
55
64
|
.score-big { font-size: 34px; font-weight: 700; line-height: 1.15; margin-top: 2px; font-variant-numeric: tabular-nums; }
|
|
56
65
|
.score-big small { font-size: 13px; color: #959595; font-weight: 400; margin-left: 2px; }
|
|
57
66
|
.rank-no { font-size: 11px; color: #959595; margin-top: 2px; }
|
|
@@ -68,11 +77,6 @@ body { background: #f5f5f5; color: #333; font-family: -apple-system, BlinkMacSys
|
|
|
68
77
|
.rule-table td:first-child { white-space: nowrap; font-weight: 600; }
|
|
69
78
|
|
|
70
79
|
.footer { text-align: center; padding: 18px; color: #959595; font-size: 12px; line-height: 1.8; }
|
|
71
|
-
@media (max-width: 768px) {
|
|
72
|
-
.candidate-body { grid-template-columns: 1fr; }
|
|
73
|
-
.radar-chart { width: 100%; }
|
|
74
|
-
.summary-card { min-width: 45%; }
|
|
75
|
-
}
|
|
76
80
|
|
|
77
81
|
</style>
|
|
78
82
|
</head>
|
|
@@ -84,7 +88,7 @@ body { background: #f5f5f5; color: #333; font-family: -apple-system, BlinkMacSys
|
|
|
84
88
|
<h1>人岗匹配评估报告</h1>
|
|
85
89
|
<div class="subtitle" id="subtitle">岗位:— | 候选人:— | AI 评估(非系统评分)</div>
|
|
86
90
|
</div>
|
|
87
|
-
<button class="rule-btn" id="ruleBtn" type="button"
|
|
91
|
+
<button class="rule-btn" id="ruleBtn" type="button">评分规则</button>
|
|
88
92
|
</div>
|
|
89
93
|
</div>
|
|
90
94
|
<div class="summary-bar" id="summaryBar"></div>
|
|
@@ -170,9 +174,7 @@ function renderReport(data) {
|
|
|
170
174
|
if (reqBox && data.requirements && data.requirements.length) {
|
|
171
175
|
reqBox.innerHTML = `<div class="candidate-section">
|
|
172
176
|
<div class="candidate-header"><div class="candidate-name">岗位要求基准<span style="font-size:12px;color:#999;font-weight:400;margin-left:8px">(AI 按岗位名推导,非系统内 JD)</span></div></div>
|
|
173
|
-
<
|
|
174
|
-
${data.requirements.map(r => `<li>${r}</li>`).join('')}
|
|
175
|
-
</ul></div>`;
|
|
177
|
+
<div class="req-list">${data.requirements.map(r => `<span class="req-chip">${r}</span>`).join('')}</div></div>`;
|
|
176
178
|
}
|
|
177
179
|
|
|
178
180
|
// 排序:总分降序
|
|
@@ -180,7 +182,7 @@ function renderReport(data) {
|
|
|
180
182
|
|
|
181
183
|
const container = document.getElementById('candidates');
|
|
182
184
|
container.innerHTML = sorted.map((c, idx) => {
|
|
183
|
-
const cardUrl = `${data.baseUrl}/sp/
|
|
185
|
+
const cardUrl = `${data.baseUrl}/sp/ebdpage/view/1343164177628012608?talentId=${c.talentId}`;
|
|
184
186
|
const basic = c.basic || {};
|
|
185
187
|
const lw = c.latestWork || {};
|
|
186
188
|
const workYears = yearsOfService(basic.joinworkdate || c.earliestJoin || '');
|
|
@@ -237,12 +239,12 @@ function renderReport(data) {
|
|
|
237
239
|
const compareHtml = `
|
|
238
240
|
<div class="candidate-section">
|
|
239
241
|
<div class="candidate-header"><div class="candidate-name">综合对比</div></div>
|
|
240
|
-
<table class="comparison-table">
|
|
242
|
+
<div class="table-scroll"><table class="comparison-table">
|
|
241
243
|
<thead><tr><th>排名</th><th>姓名</th><th>总分</th>${DIMENSIONS.map(d => `<th>${d.name}</th>`).join('')}<th>结论</th></tr></thead>
|
|
242
244
|
<tbody>
|
|
243
|
-
${sorted.map((c, i) => `<tr><td class="rank">#${i+1}</td><td><a href="${data.baseUrl}/sp/
|
|
245
|
+
${sorted.map((c, i) => `<tr><td class="rank">#${i+1}</td><td><a href="${data.baseUrl}/sp/ebdpage/view/1343164177628012608?talentId=${c.talentId}" target="_blank" style="color:#5d9cec;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(scoreOf(c, d.key))}">${scoreOf(c, d.key)}</td>`).join('')}<td><span class="score-badge ${badgeClass(c.overall)}">${badgeText(c.overall)}</span></td></tr>`).join('')}
|
|
244
246
|
</tbody>
|
|
245
|
-
</table>
|
|
247
|
+
</table></div>
|
|
246
248
|
</div>`;
|
|
247
249
|
container.insertAdjacentHTML('beforeend', compareHtml);
|
|
248
250
|
}
|
|
@@ -5,7 +5,7 @@ display_name_en: Weaver CLI Shared Rules
|
|
|
5
5
|
description: weaver-work-cli 共享规则:安装检查、E10 认证、JSON 输出、高风险写入、安全边界和引用路由。
|
|
6
6
|
description_zh: weaver-work-cli 共享规则:安装检查、E10 认证、JSON 输出、高风险写入、安全边界和引用路由。
|
|
7
7
|
description_en: Shared rules for weaver-work-cli, including installation checks, E10 authentication, JSON output, high-risk writes, safety boundaries, and reference routing.
|
|
8
|
-
version: 1.2.
|
|
8
|
+
version: 1.2.7
|
|
9
9
|
author: 泛微网络科技股份有限公司
|
|
10
10
|
agent_created: true
|
|
11
11
|
requires:
|
|
@@ -37,11 +37,15 @@ requires:
|
|
|
37
37
|
|
|
38
38
|
本任务开始时一旦按下文规则判定当前智能体为 XiaoE,**不得执行 `weaver-work-cli --version` 或 `npm view weaver-work-cli version` 做可用性、版本或更新检查**。XiaoE 客户端已经负责检查并更新配套的 `weaver-work-cli`;Agent 直接进入登录态诊断或业务命令。本规则覆盖本 Skill、业务 Skill 及其 references 中所有通用的 `--version` 检查示例。
|
|
39
39
|
|
|
40
|
-
XiaoE 中如果后续命令直接返回 `command not found`、退出码 127 或明确的版本不兼容错误,停止并反馈 XiaoE 客户端运行时异常,不自行执行 npm
|
|
40
|
+
XiaoE 中如果后续命令直接返回 `command not found`、退出码 127 或明确的版本不兼容错误,停止并反馈 XiaoE 客户端运行时异常,不自行执行 npm 查询、安装或升级。CLI 自身也会跳过 XiaoE 环境的版本检查与更新。
|
|
41
41
|
|
|
42
|
-
##
|
|
42
|
+
## CLI 版本检查与确认更新(CLI 底层负责)
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
非 XiaoE 的 npm 全局安装由 CLI 统一入口负责版本检查:同一安装实例在 24 小时内最多自动检查一次,失败也进入冷却;普通调用复用本地缓存,`--help` / `--version` 不触发检查。**不要在业务调用或 Skill 安装前额外执行 `npm view`,也不要用 `--version` 做首次自检。** 源码和 `npm link` 开发环境跳过自更新。
|
|
45
|
+
|
|
46
|
+
业务结果中的 `cliUpdate`(文本命令可能通过 stderr 返回 `[weaver-work-cli:update]` 提示)包含版本、`confirmationToken` 和 `commands`。收到提示时,必须调用宿主提供的提问/确认工具,让用户选择「更新」或「稍后」;只有用户明确确认后,才执行该提示的 `commands.update`,选择稍后则执行 `commands.later`。CLI 不会自己调用宿主 ask,不得把返回提示当成用户已经确认。更新为原地安装,不保留旧版本;本次业务已经继续执行,**不要因更新提示重跑业务命令**。
|
|
47
|
+
|
|
48
|
+
需要主动排查时可运行 `weaver-work-cli update status`(仅本地缓存)或用户要求的 `weaver-work-cli update check`(立即联网检查并返回确认提示)。不要把主动检查放入每次业务前置步骤。CLI 尚未安装时,仍按安装说明取得用户确认后首次安装;已安装的 Agent Skill 副本不会随 CLI 更新自动刷新。
|
|
45
49
|
|
|
46
50
|
## 最高优先级:XiaoE 统一登录
|
|
47
51
|
|
|
@@ -126,6 +130,8 @@ CLI 和业务 Skill 在返回 `authentication` / `session_expired` 时,只能
|
|
|
126
130
|
|
|
127
131
|
⚠️ 各域 `schema` 的**默认**输出并不一致:多数域默认就是完整 manifest(体积大、超预算会压成预览),`workflow` / `hrm` / `performance` 默认已经是精简索引。所以判断能力存在与否,一律用 `--list`,不要依赖默认输出。
|
|
128
132
|
|
|
133
|
+
⚠️ `--full` **只属于 `<domain> schema`**,是 `schema` 的开关;业务 operation(`run` / `apply` / `get` 等)上没有这个选项,加在业务命令上会报 `unknown option '--full'`。它也不等于「取全量数据」——取全量数据用 `refs get`。
|
|
134
|
+
|
|
129
135
|
若某域报 `unknown option`(旧版本 CLI),退回 `weaver-work-cli <domain> schema`,并按输出首行的 `largeOutputNotice` 用 `refs get` 取全量;不要据此判断"该域不可用"。
|
|
130
136
|
|
|
131
137
|
2. 首次使用**不查版本号**,直接确认 CLI 可用:
|
|
@@ -172,6 +178,35 @@ XiaoE 环境可跳过 `doctor --e10`,直接执行业务命令(会话缺失
|
|
|
172
178
|
|
|
173
179
|
Agent 调用业务能力时优先加 `--json`。成功看进程退出码 0 和 JSON envelope 的 `ok=true`;失败看非 0 退出码和 stderr JSON 的 `error.type/subtype/message`。不要用老式 `code == 0` 判断成功。
|
|
174
180
|
|
|
181
|
+
### 退出码速查
|
|
182
|
+
|
|
183
|
+
| 退出码 | 含义 | 先做什么 |
|
|
184
|
+
| --- | --- | --- |
|
|
185
|
+
| `0` | 成功 | 再确认 `ok === true`,然后继续 |
|
|
186
|
+
| `1` | 未分类错误 | 不重试,反馈 `error.type/subtype/stage` |
|
|
187
|
+
| `2` | 参数或输入错误 | 不改参数不要重跑;先 `--help` 或 `schema --operation` 核对 |
|
|
188
|
+
| `3` | 认证错误 | 按认证规则处理,写入不得复用旧 continuation |
|
|
189
|
+
| `4` | 网络错误 | 只读最多重试 1 次;写入先只读回查 |
|
|
190
|
+
| `5` | 内部错误 | 不重试,带 operation 名反馈 |
|
|
191
|
+
| `6` | 策略或数据状态拒绝 | 不重试,按 subtype 处理(如 ref 过期就重查接口) |
|
|
192
|
+
| `10` | 需要明确确认 | 说清影响面,拿到用户明确同意后再 apply |
|
|
193
|
+
| `11` | 部分完成或不确定 | 立即停写,只做一次只读回查 |
|
|
194
|
+
| `124` / `127` | 系统层:超时被杀 / 命令不存在 | 超时不静默重跑;127 先分清「不在 PATH」与「未安装」 |
|
|
195
|
+
|
|
196
|
+
完整对照(含每种码的推荐动作)见 [`json-output-contract.md`](references/json-output-contract.md) 的「退出码」一节。
|
|
197
|
+
|
|
198
|
+
### ref 的结构与取值
|
|
199
|
+
|
|
200
|
+
结果超预算时 CLI 把完整 envelope 落盘并回 `refId`。**文件顶层是元信息 + `envelope` 包装,业务数据在 `envelope.data`**;而 `refs get <refId> <path>` 的路径**从 `envelope` 起算**,写 `data.items`,不要写 `envelope.data.items`:
|
|
201
|
+
|
|
202
|
+
```text
|
|
203
|
+
weaver-work-cli --json refs get <refId> data.items --offset 0 --limit 20
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
PowerShell 下 `<refId>` 会被当成重定向符号,先把值放进变量再传(`$refId = "..."`)。
|
|
207
|
+
|
|
208
|
+
返回 `{ total, offset, returned, hasMore, nextOffset, data }`,用 `total` 当总数、按 `nextOffset` 续读。长文本改用 `--char-offset` / `--char-limit`。结构与报错对照见 [`json-output-contract.md`](references/json-output-contract.md) 的「ref 文件结构与读取」一节。
|
|
209
|
+
|
|
175
210
|
### 请求头契约(E10 接口调用强制)
|
|
176
211
|
|
|
177
212
|
**本段是请求头三件套的唯一权威声明**:业务 Skill 与 reference 一律引用本段,不再各自复制完整代码块;引用处只需一行紧凑指针指向本节(发布门禁 B10c 已停用,不再按技能目录逐个校验这三项参数名)。
|
|
@@ -199,7 +234,7 @@ User-Agent: AgentType=<agentType>,IsAgent=true
|
|
|
199
234
|
| 命令不可用、Agent 自动安装 CLI、安装、构建、全局 link、检查可用 skill | [`weaver-e10-installation.md`](references/weaver-e10-installation.md) |
|
|
200
235
|
| 登录、profile、E10 会话、baseUrl、auth 文件、`WEAVER_*` / `XIAOE_*` 环境变量;**首次未登录需选择认证方式,XiaoE 会话过期由 CLI 底层恢复** | [`e10-auth-and-session.md`](references/e10-auth-and-session.md) |
|
|
201
236
|
| 容器/沙箱/CI/无 GUI 环境、无人值守、登录类命令超过 180 秒未结束、出现 `Open browser login` / `Waiting for E10 authorization callback` / `Could not open browser automatically`、`auth xiaoe` 返回凭据不可用、认证目录 `EACCES` | [`non-interactive-environment.md`](references/non-interactive-environment.md) |
|
|
202
|
-
| 判断 stdout/stderr、JSON envelope
|
|
237
|
+
| 判断 stdout/stderr、JSON envelope、退出码、ref 结构与分页取值、脚本封装/跨平台调用(Windows `execFile`、PowerShell 拼参)、大结果渲染/分页控量 | [`json-output-contract.md`](references/json-output-contract.md) |
|
|
203
238
|
| 准备执行写入/删除/导入/更新、遇到 `confirmation.required`、`partial.write_uncertain`、网络中断或回查失败 | [`high-risk-write.md`](references/high-risk-write.md) |
|
|
204
239
|
|
|
205
240
|
## 安全规则
|
|
@@ -16,6 +16,14 @@ weaver-work-cli auth whoami
|
|
|
16
16
|
|
|
17
17
|
## 认证隔离与禁止探查旧目录
|
|
18
18
|
|
|
19
|
+
WorkBuddy 与 XiaoE 的会话严格按宿主归属隔离:分别只接受 `workbuddy` 和 `XiaoE` 的
|
|
20
|
+
`agentType`(兼容大小写和历史别名),同域名也不共用凭据。宿主记录缺失、损坏或归属不符时,
|
|
21
|
+
不借用全局 profile;显式 profile / auth 路径也不能绕过归属检查。业务命令及
|
|
22
|
+
`identity whoami` 读不到匹配会话时,XiaoE 自动统一登录,WorkBuddy 自动发起自己的浏览器
|
|
23
|
+
OAuth,成功后继续原操作;失败时反馈错误并停止。`auth status --no-check` 等诊断保持被动。
|
|
24
|
+
宿主环境没有可识别标记时,Agent 根据当前宿主明确上下文传 `--runtime-agent workbuddy`
|
|
25
|
+
或 `--runtime-agent xiaoe`,不要根据历史会话的 `agentType` 推断当前宿主。
|
|
26
|
+
|
|
19
27
|
`weaver-work-cli auth root` 是唯一用于确认本 CLI 认证根目录的命令;默认根目录位于用户主目录下的 `.weaver-work-cli/e10`(Windows PowerShell:`$env:USERPROFILE\.weaver-work-cli\e10`;macOS/Linux:`$HOME/.weaver-work-cli/e10`)。Agent 不得因为历史兼容信息去读取、列出、打印或解析用户主目录下的旧 `.e10-cli`,也不得探查 `e10-login` / `e10-cli` 的 auth、config 或 Keychain 数据。
|
|
20
28
|
|
|
21
29
|
登录态判断只允许通过 `weaver-work-cli auth status --no-check`、`weaver-work-cli auth profile list/current`、`weaver-work-cli doctor --e10` 和业务命令返回的 JSON 错误完成。只有用户明确提供外部 auth 文件路径时,才可按用户要求使用 `--auth <path>` 或 `E10_AUTH_PATH`;不能主动搜索旧认证目录。
|
|
@@ -24,7 +32,9 @@ weaver-work-cli auth whoami
|
|
|
24
32
|
|
|
25
33
|
业务命令依赖 E10 登录态。出现以下任一情况即判定为未登录或登录失效:
|
|
26
34
|
|
|
27
|
-
- `weaver-work-cli auth status`
|
|
35
|
+
- `weaver-work-cli auth status` 的 `loggedIn` 为 `false`(或 `status` 为 `unauthorized`):`loggedIn` 表示
|
|
36
|
+
**登录有效**,会话文件存在但已过期/被接口判定失效时同样是 `false`;判断"本地有没有会话文件"看
|
|
37
|
+
`hasSessionFile`,不要反过来用 `loggedIn`。`auth show --status` 给出同一结论
|
|
28
38
|
- `weaver-work-cli doctor --e10` 的 `e10AuthFile` 检查为 `ok: false`
|
|
29
39
|
- 业务命令失败,stderr JSON 中 `error.type === "authentication"`(如 `E10 auth not found`)
|
|
30
40
|
- 业务命令返回 `error.subtype === "session_expired"`(E10 登录态 401/302 失效)
|