weaver-work-cli 0.1.78 → 0.1.81
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 +3 -1
- package/dist/chunks/{archive-ENBSUMHV.js → archive-KVV4SM7J.js} +3 -3
- package/dist/chunks/{archive-oa-7BFPQ6M5.js → archive-oa-VRSPNLY4.js} +3 -3
- package/dist/chunks/{asset-V5SUD3PW.js → asset-JZ5MN6OL.js} +306 -10
- package/dist/chunks/{asset-idle-3CEL7WFX.js → asset-idle-B4SAL43V.js} +3 -3
- package/dist/chunks/{attachment-content-TFOC3Y3X.js → attachment-content-7W4XQTA7.js} +3 -3
- package/dist/chunks/{blog-FLI4SS3P.js → blog-XCBM467O.js} +3 -3
- package/dist/chunks/{caizhilian-7WCTKCCP.js → caizhilian-NZVUKCZD.js} +5 -5
- package/dist/chunks/{calendar-G726HUUH.js → calendar-OVM2SGYJ.js} +3 -3
- package/dist/chunks/{chunk-XNN5PZTI.js → chunk-3WZMDOI3.js} +1 -1
- package/dist/chunks/{chunk-FAC4IFGQ.js → chunk-56F2GGE4.js} +5 -5
- package/dist/chunks/{chunk-LCM5SSGJ.js → chunk-5MM2IZ27.js} +423 -36
- package/dist/chunks/{chunk-BWFCTE43.js → chunk-5NQZO3CO.js} +48 -5
- package/dist/chunks/{chunk-ZOTXXGUM.js → chunk-5RIK6OLF.js} +7 -7
- package/dist/chunks/{chunk-5E2FDXBU.js → chunk-64RYQOXA.js} +1 -1
- package/dist/chunks/{chunk-Z44YFIN6.js → chunk-7BP3HU74.js} +2 -2
- package/dist/chunks/{chunk-3Q5F4C5B.js → chunk-AW3HQUOC.js} +5 -5
- package/dist/chunks/{chunk-7M5OYRK2.js → chunk-BD3M2YVN.js} +3 -3
- package/dist/chunks/{chunk-JEQHNNSS.js → chunk-BFVUBCYO.js} +14 -0
- package/dist/chunks/{chunk-PAWXVT6H.js → chunk-CLVEXDEJ.js} +4 -5
- package/dist/chunks/{chunk-TBCKK6LH.js → chunk-DWCMKEMO.js} +2 -2
- package/dist/chunks/{chunk-USYFVIUR.js → chunk-E3XUYWYA.js} +4 -4
- package/dist/chunks/{chunk-E2EY3DMS.js → chunk-FIPTUAOW.js} +2 -2
- package/dist/chunks/{chunk-IBTGXLOT.js → chunk-GQEIHXY5.js} +6 -6
- package/dist/chunks/{chunk-TD5IOEGN.js → chunk-JUPKXW4P.js} +1 -1
- package/dist/chunks/{chunk-UZ2E3VNI.js → chunk-KZ3JR3GE.js} +3 -3
- package/dist/chunks/{chunk-4PBN7NJY.js → chunk-L2PKMZIU.js} +1 -1
- package/dist/chunks/{chunk-DACQKJ6O.js → chunk-LXWWOHM6.js} +4 -4
- package/dist/chunks/{chunk-7DE3VMZD.js → chunk-LYFPWZBD.js} +6 -1
- package/dist/chunks/{chunk-2UV4IZIT.js → chunk-MTIV6JEN.js} +2 -2
- package/dist/chunks/{chunk-5VQ7JHV4.js → chunk-MWFKLXVU.js} +68 -46
- package/dist/chunks/{chunk-PMRNIGKZ.js → chunk-RVVRTW4P.js} +2 -2
- package/dist/chunks/{chunk-FPWCCRKT.js → chunk-UASZW22U.js} +3 -3
- package/dist/chunks/{chunk-RVEKGVZU.js → chunk-VMUVVTT4.js} +2 -2
- package/dist/chunks/{chunk-7SQN5IZR.js → chunk-W4BGNYKR.js} +12 -2
- package/dist/chunks/{chunk-OVTCWLNQ.js → chunk-W4R3SXJV.js} +15 -7
- package/dist/chunks/{chunk-UDBQJLQF.js → chunk-WF5G5SV3.js} +2 -2
- package/dist/chunks/{chunk-VNEU7OUN.js → chunk-WM5ZE67G.js} +1 -1
- package/dist/chunks/{chunk-QVKRNL7L.js → chunk-WQ4ZHAEZ.js} +10 -2
- package/dist/chunks/{chunk-SWFTWNWL.js → chunk-X7OZKI6F.js} +12 -12
- package/dist/chunks/{chunk-WNFDR5PC.js → chunk-Y6HRTEDD.js} +21 -11
- package/dist/chunks/{chunk-2KW7AI6P.js → chunk-YFDKTTYX.js} +8 -5
- package/dist/chunks/{chunk-BP7BONZO.js → chunk-YLPGCOAM.js} +76 -69
- package/dist/chunks/{chunk-LQLIXBJF.js → chunk-YXIPZFMX.js} +1 -1
- package/dist/chunks/{cli-WA7FOQKC.js → cli-VCQIDBDQ.js} +37 -37
- package/dist/chunks/{commands-J52MJ6NF.js → commands-THGXVOEL.js} +9 -5
- package/dist/chunks/{conflict-D4GVAURN.js → conflict-T7URCNS6.js} +2 -2
- package/dist/chunks/{contract-GW7US3UF.js → contract-ZLGLQ45G.js} +3 -3
- package/dist/chunks/{cowork-GZDODGKF.js → cowork-2MBNOUYS.js} +21 -8
- package/dist/chunks/{create-flow-ERDGW3FZ.js → create-flow-OFZC36MV.js} +6 -6
- package/dist/chunks/{data-HTQZRPPI.js → data-6O7ANJVT.js} +3 -3
- package/dist/chunks/{ebuilder-form-GHNIZ7ET.js → ebuilder-form-OJ3KJVQI.js} +4 -4
- package/dist/chunks/{ehr-P6T7OAAV.js → ehr-NWMI5Q7S.js} +8 -32
- package/dist/chunks/{employee-QX57HEWS.js → employee-O2EPUYIH.js} +2 -2
- package/dist/chunks/{entry-mode-SQU5WTX6.js → entry-mode-TVACGU7K.js} +3 -3
- package/dist/chunks/{env-DASBNSEM.js → env-EWG4ZAWP.js} +2 -2
- package/dist/chunks/{esb-ATRKVHCD.js → esb-56FV2PIA.js} +5 -5
- package/dist/chunks/{factory-A3NAKZAA.js → factory-GQSEJRDY.js} +1 -1
- package/dist/chunks/{fna-IKYI3SST.js → fna-YLA3RKRW.js} +3 -3
- package/dist/chunks/{group-chat-7SEAVAJR.js → group-chat-5R6L3LCG.js} +3 -3
- package/dist/chunks/{host-UY4LQPN4.js → host-42MLO4KX.js} +4 -4
- package/dist/chunks/{host-XXGDQM7D.js → host-J72VEDW5.js} +4 -4
- package/dist/chunks/{host-EJSJSLVK.js → host-QKCRQS2C.js} +4 -4
- package/dist/chunks/{host-EYNLB6S4.js → host-W3BVEATN.js} +4 -4
- package/dist/chunks/{host-OT4KNR3G.js → host-YJINI5GG.js} +4 -4
- package/dist/chunks/{host-6UOXYOOY.js → host-ZVGBZOHY.js} +4 -4
- package/dist/chunks/{hrm-5JQ7QZ6A.js → hrm-3JFZNB42.js} +66 -26
- package/dist/chunks/{im-2YJW3EI5.js → im-HKIRPCGD.js} +5 -5
- package/dist/chunks/{invoice-37HR6L3W.js → invoice-4PREIOTG.js} +185 -49
- package/dist/chunks/{jiuchuanhui-KBWUZ7WT.js → jiuchuanhui-K3PLNENZ.js} +3 -3
- package/dist/chunks/{lazy-dispatch-ZDKLS5MR.js → lazy-dispatch-MKGEWZNM.js} +8 -8
- package/dist/chunks/{mail-YBKUM6HM.js → mail-6QPVWKXM.js} +3 -3
- package/dist/chunks/{meeting-7AEQGBAT.js → meeting-QPPEPBSN.js} +20 -16
- package/dist/chunks/{minute-doc-REI6RUE4.js → minute-doc-JMIDZK5D.js} +1 -1
- package/dist/chunks/{okr-HW7IULIR.js → okr-67C5LQYD.js} +3 -3
- package/dist/chunks/{operations-4P2UYVLH.js → operations-YLKRNAPI.js} +5 -5
- package/dist/chunks/{org-MWWIFNAO.js → org-L5XDM2RQ.js} +2 -2
- package/dist/chunks/{performance-PM2G6L3E.js → performance-33QZZR4I.js} +3 -3
- package/dist/chunks/{plan-3YYGZ7ZM.js → plan-W4BPONRL.js} +3 -3
- package/dist/chunks/{project-6PRGBLO2.js → project-OKSEH6AF.js} +3 -3
- package/dist/chunks/{reception-7G3J2MA6.js → reception-H5M7SPHT.js} +3 -3
- package/dist/chunks/{recruit-stage-TLZJUFHD.js → recruit-stage-O2JGNVMO.js} +16 -86
- package/dist/chunks/{registry-4S3RXXWS.js → registry-45VEUYTC.js} +4 -4
- package/dist/chunks/{registry-3VTB3KLV.js → registry-BMTQ55G5.js} +5 -5
- package/dist/chunks/{registry-KQ4TNUWO.js → registry-PYONXFUF.js} +3 -3
- package/dist/chunks/{registry-UVTI323K.js → registry-SAMJ4VH2.js} +14 -14
- package/dist/chunks/{registry-AC33ZZVH.js → registry-YY62OFKQ.js} +1 -1
- package/dist/chunks/{room-recommend-ELEJUYBN.js → room-recommend-NRLAZJCI.js} +4 -4
- package/dist/chunks/{schedule-XBKY7VEA.js → schedule-LNBOCBP5.js} +4 -4
- package/dist/chunks/{smart-extract-T5Z4AULN.js → smart-extract-JOTX6UZC.js} +3 -3
- package/dist/chunks/{update-77ZUIYSG.js → update-BERR64TI.js} +3 -3
- package/dist/chunks/{workflow-SYCBS5XD.js → workflow-ZDQY3TI7.js} +5 -5
- package/dist/core/runtime-agent.js +19 -3
- package/dist/index.js +4 -4
- package/dist/internal/e10/auth/agent-host-key.js +10 -1
- package/dist/internal/e10/auth/commands.js +20 -4
- package/dist/internal/e10/auth/xiaoe.js +15 -3
- package/dist/shortcuts/asset/host.js +39 -1
- package/dist/shortcuts/asset/index.js +16 -2
- package/dist/shortcuts/asset/manifest.js +115 -1
- package/dist/shortcuts/asset/operations/audit-report.js +144 -0
- package/dist/shortcuts/asset/operations/registry.js +4 -0
- package/dist/shortcuts/asset/operations/write.js +7 -1
- package/dist/shortcuts/cowork/operations/read.js +13 -6
- package/dist/shortcuts/cowork/operations/shared.js +15 -0
- package/dist/shortcuts/ehr/operations/recruit-candidate-import.js +1 -14
- package/dist/shortcuts/ehr/operations/recruit-write.js +4 -24
- package/dist/shortcuts/ehr/operations/recruit.js +23 -13
- package/dist/shortcuts/hrm/host.js +51 -4
- package/dist/shortcuts/hrm/index.js +45 -26
- package/dist/shortcuts/hrm/manifest.js +17 -0
- package/dist/shortcuts/hrm/operations/employee.js +3 -7
- package/dist/shortcuts/hrm/operations/org.js +2 -4
- package/dist/shortcuts/hrm/operations/position.js +2 -4
- package/dist/shortcuts/hrm/operations/shared.js +21 -0
- package/dist/shortcuts/hrm/operations.js +34 -0
- package/dist/shortcuts/im/constants.js +163 -0
- package/dist/shortcuts/im/host.js +12 -5
- package/dist/shortcuts/im/operations/at-mention.js +4 -2
- package/dist/shortcuts/im/operations/file-user.js +3 -1
- package/dist/shortcuts/im/operations/msg-sync.js +219 -2
- package/dist/shortcuts/im/operations/msg-write.js +70 -30
- package/dist/shortcuts/invoice/invoice-record.js +20 -1
- package/dist/shortcuts/invoice/manifest.js +13 -7
- package/dist/shortcuts/invoice/operations/reim-auto.js +94 -36
- package/dist/shortcuts/invoice/projection.js +7 -3
- package/dist/shortcuts/invoice/read-enrichment.js +78 -8
- package/dist/shortcuts/meeting/host.js +4 -0
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +45 -5
- package/dist/shortcuts/meeting/operations/env.js +15 -1
- package/dist/shortcuts/meeting/operations/rooms.js +7 -0
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +3 -22
- package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +1 -5
- package/dist/shortcuts/recruit-stage/operations/list.js +3 -2
- package/dist/shortcuts/recruit-stage/operations/profile.js +3 -2
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +8 -55
- package/dist/shortcuts/recruit-stage/operations/search.js +2 -2
- package/dist/shortcuts/recruit-stage/operations/shortlist.js +3 -2
- package/dist/shortcuts/recruit-stage/operations/tag.js +5 -0
- package/dist/shortcuts/recruit-stage/shared.js +3 -11
- package/dist/shortcuts/workflow/operations/form.js +2 -1
- package/docs/agent-invoice.md +26 -8
- package/docs/e10-auth.md +14 -1
- package/docs/hrm.md +5 -1
- package/docs/invoice.md +28 -8
- package/docs/operation-manual.md +6 -4
- package/docs/ziguanjia.md +5 -1
- package/package.json +1 -1
- package/scripts/package-skill.mjs +14 -2
- package/skill-template/business-info.json +6 -1
- package/skill-template/domains/hrm.md +1 -1
- package/skill-template/domains/yepiaotong.md +29 -11
- package/skill-template/domains/ziguanjia.md +7 -2
- package/skills/weaver-e10-caizhilian/references/source-manifest.json +3 -3
- package/skills/weaver-e10-cowork/SKILL.md +13 -1
- package/skills/weaver-e10-hrm/SKILL.md +16 -2
- package/skills/weaver-e10-hrm/references/org.md +1 -1
- package/skills/weaver-e10-jucailin/SKILL.md +11 -12
- package/skills/weaver-e10-jucailin/agents/openai.yaml +4 -4
- package/skills/weaver-e10-jucailin/references/recruit-implement-consult-sop.md +1 -1
- package/skills/weaver-e10-jucailin/references/recruit-implement-kb-data-update-channels.md +1 -1
- package/skills/weaver-e10-jucailin/references/recruit-implement-kb-talent-base-form.md +1 -1
- package/skills/weaver-e10-jucailin/references/recruit-output-links.md +1 -2
- package/skills/weaver-e10-jucailin/references/recruit-read.md +5 -27
- package/skills/weaver-e10-jucailin/references/recruit-write.md +19 -21
- package/skills/weaver-e10-jucailin/references/safety-boundaries.md +2 -2
- package/skills/weaver-e10-mail/SKILL.md +11 -3
- package/skills/weaver-e10-mail/references/mail-agent-entry.md +1 -1
- package/skills/weaver-e10-meeting/SKILL.md +39 -1
- package/skills/weaver-e10-okr/references/source-manifest.json +3 -3
- package/skills/weaver-e10-plan/references/source-manifest.json +3 -3
- package/skills/weaver-e10-recruit-stage/SKILL.md +57 -42
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +27 -22
- package/skills/weaver-e10-recruit-stage/lib/interview-conflict.mjs +1 -1
- package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +20 -5
- package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +96 -22
- package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +8 -3
- package/skills/weaver-e10-recruit-stage/lib/report-attachment.mjs +7 -6
- package/skills/weaver-e10-recruit-stage/lib/resume-import-once.mjs +308 -0
- package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +2 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +6 -7
- package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +5 -5
- package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +4 -5
- package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +2 -8
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-template.md +0 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +1 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +7 -5
- package/skills/weaver-e10-recruit-stage/references/recruit-maint.md +2 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +3 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +20 -21
- package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +12 -7
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +2 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +1 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +75 -52
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +11 -17
- package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +3 -4
- package/skills/weaver-e10-recruit-stage/templates/candidate-evidence.html +456 -93
- package/skills/weaver-e10-recruit-stage/templates/interview-summary.html +2 -2
- package/skills/weaver-e10-recruit-stage/templates/match-report.html +1 -1
- package/skills/weaver-e10-shared/SKILL.md +1 -1
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +1 -1
- package/skills/weaver-e10-shared-report.html +874 -0
- package/skills/weaver-e10-shijingran/references/source-manifest.json +3 -3
- package/skills/weaver-e10-skill-maker/references/post-generation-install.md +6 -0
- package/skills/weaver-e10-workflow/SKILL.md +4 -4
- package/skills/weaver-e10-workflow/aiDeepRead/config.json +138 -142
- package/skills/weaver-e10-workflow/references/workflow-deep-read.md +7 -7
- package/skills/weaver-e10-yepiaotong/SKILL.md +33 -21
- package/skills/weaver-e10-yepiaotong/references/invoice-add.md +2 -2
- package/skills/weaver-e10-yepiaotong/references/invoice-agent-entry.md +5 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-detail.md +2 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +2 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-file-upload.md +3 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-import.md +2 -2
- package/skills/weaver-e10-yepiaotong/references/invoice-output-view.md +30 -2
- package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +8 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-upload-and-validate.md +4 -4
- package/skills/weaver-e10-yepiaotong/references/name-fuzzy-search.md +3 -3
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +19 -9
- package/skills/weaver-e10-yepiaotong/references/reim-customer-search.md +25 -32
- package/skills/weaver-e10-yepiaotong/references/reim-eligibility-rules.md +70 -21
- package/skills/weaver-e10-yepiaotong/references/reim-fill-validation.md +23 -12
- package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +52 -17
- package/skills/weaver-e10-yepiaotong/references/reim-preapproval-rules.md +23 -19
- package/skills/weaver-e10-yepiaotong/references/reim-travel-invoice-matching.md +6 -4
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +127 -63
- package/skills/weaver-e10-yepiaotong/references/source-manifest.json +89 -71
- package/skills/weaver-e10-yepiaotong/references/travel-application-fill.md +2 -2
- package/skills/weaver-e10-yepiaotong/references/workflow-direct-fill.md +28 -20
- package/skills/weaver-e10-yepiaotong.zip +0 -0
- package/skills/weaver-e10-yimiaoban/SKILL.md +12 -9
- package/skills/weaver-e10-yimiaoban/references/constants.md +291 -0
- package/skills/weaver-e10-yimiaoban/references/ding-write.md +1 -0
- package/skills/weaver-e10-yimiaoban/references/group-read.md +1 -0
- package/skills/weaver-e10-yimiaoban/references/group-write.md +1 -0
- package/skills/weaver-e10-yimiaoban/references/msg-read.md +10 -1
- package/skills/weaver-e10-yimiaoban/references/msg-write.md +3 -1
- package/skills/weaver-e10-yimiaoban/references/session-sysmsg.md +1 -0
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +175 -36
- package/skills/weaver-e10-ziguanjia/SKILL.md +26 -6
- package/skills/weaver-e10-ziguanjia/references/source-manifest.json +1373 -96
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-audit.md +63 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-disabled-capabilities.md +5 -1
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-idle.md +52 -0
- package/skills/weaver-e10-ziguanjia/references/ziguanjia-report.md +59 -0
- package/scripts/pysite/__pycache__/sitecustomize.cpython-312.pyc +0 -0
- package/scripts/pysite/__pycache__/sitecustomize.cpython-313.pyc +0 -0
- package/scripts/pysite/__pycache__/sitecustomize.cpython-314.pyc +0 -0
- package/skills/weaver-e10-jucailin/references/recruit-stage-ops.md +0 -89
|
@@ -17,15 +17,15 @@ import {
|
|
|
17
17
|
createE10RequestRuntime,
|
|
18
18
|
isE10SessionExpiredResponse,
|
|
19
19
|
requireE10Session
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-UASZW22U.js";
|
|
21
21
|
import {
|
|
22
22
|
E10_SESSION_EXPIRED_MESSAGE
|
|
23
23
|
} from "./chunk-IZCQU5D5.js";
|
|
24
24
|
import {
|
|
25
25
|
getActiveProfile
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-WQ4ZHAEZ.js";
|
|
27
27
|
import "./chunk-Y3C6MDL7.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-LYFPWZBD.js";
|
|
29
29
|
import "./chunk-2BZ7TY4M.js";
|
|
30
30
|
import {
|
|
31
31
|
CliError,
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
createE10RequestRuntime,
|
|
17
17
|
isE10SessionExpiredResponse,
|
|
18
18
|
requireE10Session
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UASZW22U.js";
|
|
20
20
|
import {
|
|
21
21
|
E10_SESSION_EXPIRED_MESSAGE
|
|
22
22
|
} from "./chunk-IZCQU5D5.js";
|
|
23
23
|
import {
|
|
24
24
|
getActiveProfile
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-WQ4ZHAEZ.js";
|
|
26
26
|
import "./chunk-Y3C6MDL7.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-LYFPWZBD.js";
|
|
28
28
|
import "./chunk-2BZ7TY4M.js";
|
|
29
29
|
import {
|
|
30
30
|
CliError,
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
createE10RequestRuntime,
|
|
14
14
|
getE10Session,
|
|
15
15
|
requireE10Session
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UASZW22U.js";
|
|
17
17
|
import {
|
|
18
18
|
E10_AUTH_REQUIRED_MESSAGE
|
|
19
19
|
} from "./chunk-IZCQU5D5.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-WQ4ZHAEZ.js";
|
|
21
21
|
import "./chunk-Y3C6MDL7.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-LYFPWZBD.js";
|
|
23
23
|
import "./chunk-2BZ7TY4M.js";
|
|
24
24
|
import {
|
|
25
25
|
CliError,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ehrValidationError,
|
|
6
6
|
isSelfTenant,
|
|
7
7
|
toMenuList
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Y6HRTEDD.js";
|
|
9
9
|
import {
|
|
10
10
|
MANIFEST_LIST_COMPACT_PATHS,
|
|
11
11
|
manifestView,
|
|
@@ -23,15 +23,15 @@ import {
|
|
|
23
23
|
createE10RequestRuntime,
|
|
24
24
|
isE10SessionExpiredResponse,
|
|
25
25
|
requireE10Session
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-UASZW22U.js";
|
|
27
27
|
import {
|
|
28
28
|
E10_SESSION_EXPIRED_MESSAGE
|
|
29
29
|
} from "./chunk-IZCQU5D5.js";
|
|
30
30
|
import {
|
|
31
31
|
getActiveProfile
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-WQ4ZHAEZ.js";
|
|
33
33
|
import "./chunk-Y3C6MDL7.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-LYFPWZBD.js";
|
|
35
35
|
import "./chunk-2BZ7TY4M.js";
|
|
36
36
|
import {
|
|
37
37
|
CliError,
|
|
@@ -542,12 +542,6 @@ async function getCandidateByPhone(host, phone) {
|
|
|
542
542
|
batchNo: d.batchNo ? String(d.batchNo) : ""
|
|
543
543
|
};
|
|
544
544
|
}
|
|
545
|
-
function buildTalentViewUrl(baseUrl, candidateId) {
|
|
546
|
-
return `${baseUrl}/sp/recruit/talentView?batchId=${candidateId}&recruitType=useSelf`;
|
|
547
|
-
}
|
|
548
|
-
function talentLinkExtra(cache) {
|
|
549
|
-
return String(cache && cache.selfUse) === "1" ? "&recruitType=useSelf" : "";
|
|
550
|
-
}
|
|
551
545
|
async function getTableMapping(host, objId) {
|
|
552
546
|
const r = await host.request({ path: "/api/ebuilder/form/dataset/v1/getTableMapping?objId=" + encodeURIComponent(objId), method: "GET" });
|
|
553
547
|
const d = r?.data;
|
|
@@ -1148,16 +1142,9 @@ function assertLinkId(label, value) {
|
|
|
1148
1142
|
}
|
|
1149
1143
|
return text;
|
|
1150
1144
|
}
|
|
1151
|
-
async function resolveTalentListUrl(_host, _cache, baseUrl, fallbackListId) {
|
|
1152
|
-
return buildListUrl(baseUrl, fallbackListId);
|
|
1153
|
-
}
|
|
1154
1145
|
async function resolveInterviewListUrlOrNative(_host, _cache, baseUrl, fallbackListId) {
|
|
1155
1146
|
return buildListUrl(baseUrl, fallbackListId);
|
|
1156
1147
|
}
|
|
1157
|
-
async function talentUiCardUrl(_host, _cache, _baseUrl, talentId) {
|
|
1158
|
-
if (!talentId) return null;
|
|
1159
|
-
return null;
|
|
1160
|
-
}
|
|
1161
1148
|
function buildListUrl(baseUrl, listId) {
|
|
1162
1149
|
if (!baseUrl || !listId) return null;
|
|
1163
1150
|
return String(baseUrl).replace(/\/+$/, "") + "/sp/ebdfpage/list/" + listId;
|
|
@@ -3197,26 +3184,6 @@ function buildSubDetails(structured, subs, cache) {
|
|
|
3197
3184
|
});
|
|
3198
3185
|
return { byTable, stats };
|
|
3199
3186
|
}
|
|
3200
|
-
async function resolveTalentCardUrl(ctx, talentId) {
|
|
3201
|
-
if (talentId) {
|
|
3202
|
-
const ui = await talentUiCardUrl(ctx.host, ctx.cache, ctx.baseUrl, String(talentId));
|
|
3203
|
-
if (ui) return ui;
|
|
3204
|
-
}
|
|
3205
|
-
const pid = ctx.cache.ebdDetailPageId;
|
|
3206
|
-
if (!pid || !talentId) {
|
|
3207
|
-
const forms = ctx.cache.forms || {};
|
|
3208
|
-
const tobj = String(forms.talent_pool?.objId || forms.talent?.objId || "");
|
|
3209
|
-
return tobj && talentId ? buildCardUrl(ctx.baseUrl, tobj, String(talentId)) : null;
|
|
3210
|
-
}
|
|
3211
|
-
return `${ctx.baseUrl}/sp/ebdpage/view/${pid}?talentId=${talentId}${talentLinkExtra(ctx.cache)}`;
|
|
3212
|
-
}
|
|
3213
|
-
async function resolveTalentListLocateUrl(ctx, _talentId) {
|
|
3214
|
-
const listId = ctx.cache.lists?.talent?.listId;
|
|
3215
|
-
const preferred = await resolveTalentListUrl(ctx.host, ctx.cache, ctx.baseUrl, listId || "");
|
|
3216
|
-
if (preferred) return preferred;
|
|
3217
|
-
if (!listId) return null;
|
|
3218
|
-
return `${ctx.baseUrl.replace(/\/+$/, "")}/sp/ebdfpage/list/${listId}`;
|
|
3219
|
-
}
|
|
3220
3187
|
async function readTalentSnapshot(ctx, opts) {
|
|
3221
3188
|
const { host, formId, objId, fields, subMeta, dataId } = opts;
|
|
3222
3189
|
const L = await getFormLayoutMeta(ctx.host, formId);
|
|
@@ -3613,10 +3580,7 @@ async function findExistingTalents(ctx, opts) {
|
|
|
3613
3580
|
if (b.candidateId || b.talentId) {
|
|
3614
3581
|
byPhone = {
|
|
3615
3582
|
talentId: b.talentId,
|
|
3616
|
-
candidateId: b.candidateId
|
|
3617
|
-
talentViewUrl: b.candidateId ? buildTalentViewUrl(ctx.baseUrl, b.candidateId) : null,
|
|
3618
|
-
talentCardUrl: b.talentId ? await resolveTalentCardUrl(ctx, b.talentId) : null,
|
|
3619
|
-
talentListLocateUrl: b.talentId ? await resolveTalentListLocateUrl(ctx, b.talentId) : null
|
|
3583
|
+
candidateId: b.candidateId
|
|
3620
3584
|
};
|
|
3621
3585
|
}
|
|
3622
3586
|
} else {
|
|
@@ -3736,12 +3700,6 @@ async function prepare2(args, env, opts = {}) {
|
|
|
3736
3700
|
});
|
|
3737
3701
|
const coveredKeys = new Set(Object.keys(built.detailNodes));
|
|
3738
3702
|
const keptTables = Object.keys(built.subMeta).filter((k) => !coveredKeys.has(k) || !(built.detailNodes[k] in built.detailsPayload));
|
|
3739
|
-
let viewUrl = null;
|
|
3740
|
-
try {
|
|
3741
|
-
const b = await getCandidateByPhone(ctx.host, built.structured.telephone || "");
|
|
3742
|
-
if (b.candidateId) viewUrl = buildTalentViewUrl(ctx.baseUrl, b.candidateId);
|
|
3743
|
-
} catch {
|
|
3744
|
-
}
|
|
3745
3703
|
const willSubmit2 = { updateTalentId, mainTable: fingerprintMainTable(upMain), details: built.detailsPayload };
|
|
3746
3704
|
const fp2 = fingerprint2(willSubmit2);
|
|
3747
3705
|
const continuation2 = await env.continuation.issue({
|
|
@@ -3777,7 +3735,6 @@ async function prepare2(args, env, opts = {}) {
|
|
|
3777
3735
|
detailPreview: Object.fromEntries(Object.entries(built.detailsPayload).map(([n, rows]) => [n, rows[0]])),
|
|
3778
3736
|
keptTables,
|
|
3779
3737
|
protectedSkipped,
|
|
3780
|
-
talentViewUrl: viewUrl,
|
|
3781
3738
|
note: "\u4EE5\u4E0A\u4E3A\u5C06\u5199\u5165\u7684\u5DEE\u5F02\u3002\u786E\u8BA4\u540E apply \u6267\u884C\uFF1B\u5168\u91CF\u8986\u76D6\u4F1A\u6539\u6389\u4EBA\u5DE5\u4FEE\u6B63\u8FC7\u7684\u503C",
|
|
3782
3739
|
// 🔴 2026-11-07:本 op 此前无 preview(与 jd.create 同类缺陷)。更新场景最关键的是「改哪些字段、跳过哪些」。
|
|
3783
3740
|
preview: {
|
|
@@ -3984,8 +3941,6 @@ async function applyCore(args, env, payload) {
|
|
|
3984
3941
|
afterSummary: { mainFieldCount: Object.keys(after.main).length, subRows: after.subRows, subCells: after.subCells },
|
|
3985
3942
|
verifyWarnings: verifyWarnings.length ? verifyWarnings : void 0,
|
|
3986
3943
|
avatar: avatarRes2.written ? { written: true, fileId: avatarRes2.fileId, name: avatarRes2.name } : { written: false, warning: avatarRes2.warning },
|
|
3987
|
-
talentCardUrl: await resolveTalentCardUrl(ctx, updateTalentId),
|
|
3988
|
-
talentListLocateUrl: await resolveTalentListLocateUrl(ctx, updateTalentId),
|
|
3989
3944
|
parsed: { name: built.structured.candidateName, mobile: built.structured.telephone, email: built.structured.email || "(\u7A7A)" }
|
|
3990
3945
|
});
|
|
3991
3946
|
}
|
|
@@ -4015,8 +3970,7 @@ async function applyCore(args, env, payload) {
|
|
|
4015
3970
|
mode: "apply",
|
|
4016
3971
|
result: "duplicate",
|
|
4017
3972
|
message: "\u5F53\u524D\u624B\u673A\u53F7\u5DF2\u7ED1\u5B9A\u4EBA\u624D\u4FE1\u606F\uFF0C\u6309\u9875\u9762\u89C4\u5219\u4E0D\u65B0\u5EFA\uFF08\u672A\u5199\u5165\u4EFB\u4F55\u6570\u636E\uFF09",
|
|
4018
|
-
existingTalent: { talentId: b.talentId, candidateId: b.candidateId
|
|
4019
|
-
talentViewUrl: b.talentViewUrl,
|
|
3973
|
+
existingTalent: { talentId: b.talentId, candidateId: b.candidateId },
|
|
4020
3974
|
otherRecords: dupInfo.formConflicts.existing.length ? dupInfo.formConflicts.existing : void 0,
|
|
4021
3975
|
parsed: { name: built.structured.candidateName, mobile: built.structured.telephone },
|
|
4022
3976
|
nextStep: "\u5982\u9700\u6309\u8FD9\u4EFD\u7B80\u5386\u66F4\u65B0\u8BE5\u4EBA\u624D\uFF0C\u91CD\u65B0 prepare \u65F6\u4F20 updateTalentId=<\u5DF2\u6709\u4EBA\u624Did>\uFF0C\u786E\u8BA4\u5DEE\u5F02\u540E apply\uFF1B\u4E0D\u8981\u7528\u539F\u65B0\u5EFA continuation \u76F4\u63A5 apply"
|
|
@@ -4170,9 +4124,6 @@ async function applyCore(args, env, payload) {
|
|
|
4170
4124
|
}
|
|
4171
4125
|
const result = batchOk && saveActionsOk && detailsState === "complete" && !verification.mismatches.length ? "success" : "partial";
|
|
4172
4126
|
mark("apply.\u56DE\u67E5\u5B8C\u6210");
|
|
4173
|
-
const talentCardUrl = await resolveTalentCardUrl(ctx, talentId);
|
|
4174
|
-
mark("apply.\u5361\u7247/\u5217\u8868\u94FE\u63A5");
|
|
4175
|
-
const talentListLocateUrl = await resolveTalentListLocateUrl(ctx, talentId);
|
|
4176
4127
|
return rsSuccess("recruit-stage.resume.import.apply", {
|
|
4177
4128
|
mode: "apply",
|
|
4178
4129
|
result,
|
|
@@ -4202,11 +4153,7 @@ async function applyCore(args, env, payload) {
|
|
|
4202
4153
|
tagsApplied: tagResult.applied,
|
|
4203
4154
|
tagsSkipped: tagResult.skipped,
|
|
4204
4155
|
tags,
|
|
4205
|
-
|
|
4206
|
-
talentListLocateUrl,
|
|
4207
|
-
// 产物链接(Agent 原样搬运:① 人才卡片单页 ② 人才库列表;缺失哪个只给另一个)
|
|
4208
|
-
viewLink: talentCardUrl ? `[\u67E5\u770B ${built.structured.candidateName || "\u65B0\u4EBA\u624D"} \u7684\u4EBA\u624D\u5361\u7247](${talentCardUrl})` : null,
|
|
4209
|
-
listLocateLink: talentListLocateUrl ? `[\u6253\u5F00\u4EBA\u624D\u5E93\u5217\u8868](${talentListLocateUrl})` : null,
|
|
4156
|
+
// 产物链接:人才卡片 / 人才库列表地址由技能侧固定路由产出,CLI 不回传任何原生页面地址。
|
|
4210
4157
|
parsed: {
|
|
4211
4158
|
name: built.structured.candidateName,
|
|
4212
4159
|
mobile: built.structured.telephone,
|
|
@@ -4399,8 +4346,6 @@ async function batchApply(args, env) {
|
|
|
4399
4346
|
name: it.label,
|
|
4400
4347
|
status: isDup ? "skipped" : d.result === "partial" ? "partial" : "success",
|
|
4401
4348
|
talentId: d.talentId,
|
|
4402
|
-
cardUrl: d.talentCardUrl,
|
|
4403
|
-
viewLink: d.viewLink,
|
|
4404
4349
|
message: isDup ? d.message || "\u624B\u673A\u53F7\u5DF2\u5B58\u5728\uFF0C\u5DF2\u8DF3\u8FC7\uFF08\u672A\u5199\u5165\uFF09" : void 0,
|
|
4405
4350
|
warnings: d.verifyWarnings && d.verifyWarnings.length ? d.verifyWarnings : void 0
|
|
4406
4351
|
};
|
|
@@ -4934,19 +4879,6 @@ async function resolveRequiredHint(plan, ctx) {
|
|
|
4934
4879
|
dataDetails: plan.dataDetails
|
|
4935
4880
|
});
|
|
4936
4881
|
}
|
|
4937
|
-
async function resolveTalentCardUrl2(ctx, talentId) {
|
|
4938
|
-
if (talentId) {
|
|
4939
|
-
const ui = await talentUiCardUrl(ctx.host, ctx.cache, ctx.baseUrl, String(talentId));
|
|
4940
|
-
if (ui) return ui;
|
|
4941
|
-
}
|
|
4942
|
-
const pid = ctx.cache.ebdDetailPageId;
|
|
4943
|
-
if (!pid || !talentId) {
|
|
4944
|
-
const forms = ctx.cache.forms || {};
|
|
4945
|
-
const tobj = String(forms.talent_pool?.objId || forms.talent?.objId || "");
|
|
4946
|
-
return tobj && talentId ? buildCardUrl(ctx.baseUrl, tobj, String(talentId)) : null;
|
|
4947
|
-
}
|
|
4948
|
-
return `${ctx.baseUrl}/sp/ebdpage/view/${pid}?talentId=${talentId}${talentLinkExtra(ctx.cache)}`;
|
|
4949
|
-
}
|
|
4950
4882
|
async function resolveInterviewListUrl(ctx) {
|
|
4951
4883
|
const { host, appId, baseUrl, cache } = ctx;
|
|
4952
4884
|
const cachedMenu = cache.lists?.interview;
|
|
@@ -5267,7 +5199,6 @@ async function prefill2(args, env) {
|
|
|
5267
5199
|
}
|
|
5268
5200
|
throw rsFail("\u9762\u8BD5\u65B9\u5F0F\u300C" + typeKey + "\u300D\u4E0D\u5728\u679A\u4E3E\u4E2D\uFF08" + Object.keys(typeFull.map).join("/") + "\uFF09");
|
|
5269
5201
|
}
|
|
5270
|
-
const cardUrl = await resolveTalentCardUrl2(ctx, talentId);
|
|
5271
5202
|
const listUrl = await resolveInterviewListUrl(ctx).catch(() => null);
|
|
5272
5203
|
const jsExpr = `(() => { const W = window.WeFormSDK; const i = W && W.getWeFormInstance('ebuilderform', '${formId}'); if (!i) return 'no-form-instance(\u8BF7\u5148\u5728\u4EBA\u624D\u5361\u7247\u70B9\u300C\u5B89\u6392\u9762\u8BD5\u300D\u6253\u5F00\u9762\u8BD5\u5B89\u6392\u8868\u5355)'; try { i.changeFieldValue('field${typeFid}', { value: '${typeId}' }); return 'ok \u9762\u8BD5\u65B9\u5F0F=${typeKey}'; } catch (e) { return 'err:' + e.message; } })()`;
|
|
5273
5204
|
return rsSuccess("recruit-stage.interview.arrange.prefill", {
|
|
@@ -5277,11 +5208,10 @@ async function prefill2(args, env) {
|
|
|
5277
5208
|
interviewFormId: formId,
|
|
5278
5209
|
interviewType: typeKey,
|
|
5279
5210
|
interviewTypeOptionId: typeId,
|
|
5280
|
-
talentCardUrl: cardUrl,
|
|
5281
5211
|
interviewListUrl: listUrl,
|
|
5282
5212
|
jsExpr,
|
|
5283
5213
|
steps: [
|
|
5284
|
-
"1) \u6D4F\u89C8\u5668\u6253\u5F00
|
|
5214
|
+
"1) \u6D4F\u89C8\u5668\u6253\u5F00\u8BE5\u5019\u9009\u4EBA\u7684\u4EBA\u624D\u5361\u7247\uFF08\u5730\u5740\u6309\u6280\u80FD\u4FA7\u56FA\u5B9A\u8DEF\u7531\u8868\u62FC ?talentId=" + talentId + "\uFF0C\u9700\u5DF2\u767B\u5F55\u8BE5\u73AF\u5883\uFF09\u2192 \u8FDB\u5165\u8BE5\u5019\u9009\u4EBA\u5361\u7247",
|
|
5285
5215
|
"2) \u70B9\u5361\u7247\u4E0A\u7684\u300C\u5B89\u6392\u9762\u8BD5\u300D\u2192 \u6253\u5F00\u9762\u8BD5\u5B89\u6392\u8868\u5355\uFF08\u4E3B\u9898/\u5019\u9009\u4EBA/\u804C\u4F4D\u7531\u8868\u5355\u9ED8\u8BA4\u503C\u81EA\u52A8\u5E26\u5165\uFF09",
|
|
5286
5216
|
"3) \u5728\u9875\u9762\u4E0A\u4E0B\u6587\u6267\u884C jsExpr \u2192 \u9009\u4E2D\u300C\u9762\u8BD5\u65B9\u5F0F=" + typeKey + "\u300D\u5E76\u89E6\u53D1\u8054\u52A8\uFF08AI\u9762\u8BD5\u65B9\u6848/\u9762\u8BD5\u5B98/\u5F00\u59CB\u7ED3\u675F\u65F6\u95F4\u81EA\u52A8\u5E26\u5165\uFF09",
|
|
5287
5217
|
"4) \u7531 HR \u6838\u5BF9\uFF08\u53EF\u6309\u9700\u8C03\u6574\uFF09\u540E\u70B9\u300C\u4FDD\u5B58\u300D\u5B8C\u6210\u9762\u8BD5\u5B89\u6392\uFF1B\u672C\u6A21\u5F0F\u4E0D\u5199\u4EFB\u4F55\u6570\u636E",
|
|
@@ -5746,9 +5676,6 @@ async function apply4(args, env) {
|
|
|
5746
5676
|
const back = await listInterviewFeedback(t.host, t.talentId, t.batchId);
|
|
5747
5677
|
const backFb = back.find((x) => String(x.feedbackId) === String(t.target.feedbackId));
|
|
5748
5678
|
const changed = backFb && String(backFb.result).includes(newResultName) && (args.comment === void 0 || String(backFb.judgement).includes(newComment));
|
|
5749
|
-
const cardPageId = String(t.cache.ebdDetailPageId || "");
|
|
5750
|
-
const talentExtra = String(t.cache.selfUse) === "1" ? "&recruitType=useSelf" : "";
|
|
5751
|
-
const talentCardUrl = cardPageId ? `${t.baseUrl}/sp/ebdpage/view/${cardPageId}?talentId=${t.talentId}${talentExtra}` : null;
|
|
5752
5679
|
const interviewListId = String(t.cache.lists?.interview?.listId || "");
|
|
5753
5680
|
const interviewListUrl = interviewListId ? `${t.baseUrl}/sp/ebdfpage/list/${interviewListId}` : null;
|
|
5754
5681
|
return rsSuccess("recruit-stage.interview.feedback.edit.apply", {
|
|
@@ -5761,7 +5688,6 @@ async function apply4(args, env) {
|
|
|
5761
5688
|
talentId: t.talentId,
|
|
5762
5689
|
batchId: t.batchId,
|
|
5763
5690
|
\u9762\u8BD5: t.target.planName,
|
|
5764
|
-
talentCardUrl,
|
|
5765
5691
|
interviewListUrl
|
|
5766
5692
|
});
|
|
5767
5693
|
}
|
|
@@ -5909,7 +5835,7 @@ async function runList(env, args, feedbackTodoMode) {
|
|
|
5909
5835
|
const appId = cache.appId;
|
|
5910
5836
|
const type = String(args.type || (feedbackTodoMode ? "interview" : ""));
|
|
5911
5837
|
if (!type || !TYPES[type]) {
|
|
5912
|
-
throw
|
|
5838
|
+
throw rsValidationError("type_invalid", "type \u5FC5\u987B\u662F demand|position|entry|offer|interview|candidate \u4E4B\u4E00");
|
|
5913
5839
|
}
|
|
5914
5840
|
const t = TYPES[type];
|
|
5915
5841
|
const pageSize = Number(args.pageSize || (feedbackTodoMode ? 200 : 10));
|
|
@@ -7045,7 +6971,7 @@ async function handlerSearchByTag(args, env) {
|
|
|
7045
6971
|
throw rsFail("\u6309\u6807\u7B7E\u641C\u7D22\u4ECD\u4F9D\u8D56\u4EBA\u624D\u5217\u8868\u89C6\u56FE listId\uFF1B\u5F53\u524D\u8D26\u53F7\u672A\u89E3\u6790\u5230\u8BE5\u5165\u53E3\u3002\u8BF7\u6539\u7528\u59D3\u540D/\u624B\u673A\u53F7/\u5173\u952E\u8BCD\u7684 candidate.search\uFF0C\u6216\u7531\u73AF\u5883\u914D\u7F6E\u4EBA\u624D\u5E93\u5217\u8868\u89C6\u56FE\u3002");
|
|
7046
6972
|
}
|
|
7047
6973
|
const wanted = (Array.isArray(args.tags) ? args.tags : [args.tags]).map((x) => String(x == null ? "" : x).trim()).filter(Boolean);
|
|
7048
|
-
if (!wanted.length) throw
|
|
6974
|
+
if (!wanted.length) throw rsValidationError("tags_required", '\u8BF7\u63D0\u4F9B\u8981\u641C\u7D22\u7684\u6807\u7B7E\u540D\uFF0C\u4F8B\u5982\uFF1A{"tags":["985"]}\u3002');
|
|
7049
6975
|
const match = args.match === "all" ? "all" : "any";
|
|
7050
6976
|
const pageSize = clampInt(args.pageSize, 1, 100, 20);
|
|
7051
6977
|
const current = clampInt(args.current, 1, 1e4, 1);
|
|
@@ -7434,6 +7360,10 @@ function prepareOperation() {
|
|
|
7434
7360
|
}, { required: ["talentId", "tags"] }),
|
|
7435
7361
|
handler: async (args, env) => {
|
|
7436
7362
|
const talentId = normName(args.talentId);
|
|
7363
|
+
const tagsGiven = Array.isArray(args.tags) && args.tags.length > 0;
|
|
7364
|
+
if (!talentId && !tagsGiven) {
|
|
7365
|
+
throw rsValidationError("params_required", '\u7F3A\u5C11\u5FC5\u586B\u53C2\u6570\uFF1AtalentId\uFF08\u4EBA\u624D id\uFF09\u3001tags\uFF08\u6807\u7B7E\u6E05\u5355\uFF0C\u5982 ["985"]\uFF09');
|
|
7366
|
+
}
|
|
7437
7367
|
if (!talentId) throw rsValidationError("talent_id_required", "\u8BF7\u63D0\u4F9B talentId");
|
|
7438
7368
|
const plan = await buildPlan2(env.host, args, talentId);
|
|
7439
7369
|
const existing = await Promise.all([0, 1].map(async (type) => {
|
|
@@ -7582,7 +7512,7 @@ async function handlerProfile(args, env) {
|
|
|
7582
7512
|
const ctx = { host, baseUrl: session.baseUrl.replace(/\/+$/, ""), appId: "", cache: await env.recruitContext() };
|
|
7583
7513
|
ctx.appId = ctx.cache.appId;
|
|
7584
7514
|
const talentId = String(args.talentId || "").trim();
|
|
7585
|
-
if (!talentId) throw
|
|
7515
|
+
if (!talentId) throw rsValidationError("talent_id_required", "talentId \u5FC5\u586B");
|
|
7586
7516
|
const objId = objIdOf(ctx.cache, "talent_pool");
|
|
7587
7517
|
const formId = formIdOf(ctx.cache, "talent_pool");
|
|
7588
7518
|
const fields = ctx.cache.fields[objId] || {};
|
|
@@ -7739,7 +7669,7 @@ function slimProfile(profile, full) {
|
|
|
7739
7669
|
async function handlerShortlist(args, env) {
|
|
7740
7670
|
const keyword = String(args.keyword || "").trim();
|
|
7741
7671
|
if (!keyword) {
|
|
7742
|
-
throw
|
|
7672
|
+
throw rsValidationError("keyword_required", 'keyword \u5FC5\u586B\uFF1A\u8BF7\u63D0\u4F9B\u8981\u68C0\u7D22\u7684\u5173\u952E\u8BCD\uFF0C\u4F8B\u5982 {"keyword":"Java\u5F00\u53D1"}');
|
|
7743
7673
|
}
|
|
7744
7674
|
const limit = clampInt2(args.limit, 1, 10, 5);
|
|
7745
7675
|
const concurrency = clampInt2(args.concurrency, 1, 10, 10);
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
getHrmOperation,
|
|
5
5
|
hasHrmOperation,
|
|
6
6
|
hrmOperationDefinitions
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-AW3HQUOC.js";
|
|
8
|
+
import "./chunk-CLVEXDEJ.js";
|
|
9
|
+
import "./chunk-BD3M2YVN.js";
|
|
10
|
+
import "./chunk-BFVUBCYO.js";
|
|
11
11
|
import "./chunk-56EZERK4.js";
|
|
12
12
|
import "./chunk-UG5G54VL.js";
|
|
13
13
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
esbOperationDefinitions,
|
|
5
5
|
getEsbOperation,
|
|
6
6
|
hasEsbOperation
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-64RYQOXA.js";
|
|
8
|
+
import "./chunk-VMUVVTT4.js";
|
|
9
9
|
import "./chunk-TXUG266F.js";
|
|
10
10
|
import "./chunk-7BDPM5ST.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-UASZW22U.js";
|
|
12
12
|
import "./chunk-IZCQU5D5.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-WQ4ZHAEZ.js";
|
|
14
14
|
import "./chunk-Y3C6MDL7.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-LYFPWZBD.js";
|
|
16
16
|
import "./chunk-2BZ7TY4M.js";
|
|
17
17
|
import "./chunk-UG5G54VL.js";
|
|
18
18
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getWorkflowOperation,
|
|
5
5
|
hasWorkflowOperation,
|
|
6
6
|
workflowOperationDefinitions
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-L2PKMZIU.js";
|
|
8
8
|
import "./chunk-HP7JIYMT.js";
|
|
9
9
|
import "./chunk-WRXSAVKO.js";
|
|
10
10
|
import "./chunk-JJONWB5N.js";
|
|
@@ -12,9 +12,9 @@ import "./chunk-257JXJGD.js";
|
|
|
12
12
|
import "./chunk-AJ62BGAW.js";
|
|
13
13
|
import "./chunk-7BDPM5ST.js";
|
|
14
14
|
import "./chunk-IZCQU5D5.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-WQ4ZHAEZ.js";
|
|
16
16
|
import "./chunk-Y3C6MDL7.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-LYFPWZBD.js";
|
|
18
18
|
import "./chunk-2BZ7TY4M.js";
|
|
19
19
|
import "./chunk-UG5G54VL.js";
|
|
20
20
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -4,23 +4,23 @@ import {
|
|
|
4
4
|
getMeetingOperation,
|
|
5
5
|
hasMeetingOperation,
|
|
6
6
|
meetingOperationDefinitions
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-YLPGCOAM.js";
|
|
8
|
+
import "./chunk-FIPTUAOW.js";
|
|
9
|
+
import "./chunk-GQEIHXY5.js";
|
|
10
10
|
import "./chunk-WMRNO6IU.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-X7OZKI6F.js";
|
|
12
|
+
import "./chunk-7BP3HU74.js";
|
|
13
|
+
import "./chunk-56F2GGE4.js";
|
|
14
|
+
import "./chunk-MWFKLXVU.js";
|
|
15
|
+
import "./chunk-5RIK6OLF.js";
|
|
16
|
+
import "./chunk-E3XUYWYA.js";
|
|
17
|
+
import "./chunk-WM5ZE67G.js";
|
|
18
|
+
import "./chunk-W4BGNYKR.js";
|
|
19
|
+
import "./chunk-KZ3JR3GE.js";
|
|
20
20
|
import "./chunk-7BDPM5ST.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-WQ4ZHAEZ.js";
|
|
22
22
|
import "./chunk-Y3C6MDL7.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-LYFPWZBD.js";
|
|
24
24
|
import "./chunk-2BZ7TY4M.js";
|
|
25
25
|
import "./chunk-UG5G54VL.js";
|
|
26
26
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -3,7 +3,7 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
getImOperation,
|
|
5
5
|
imOperationDefinitions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5MM2IZ27.js";
|
|
7
7
|
import "./chunk-IC62NFM5.js";
|
|
8
8
|
import "./chunk-KMRT7NAT.js";
|
|
9
9
|
import "./chunk-UG5G54VL.js";
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
loadRooms,
|
|
8
8
|
recommendRooms,
|
|
9
9
|
rememberFrequentRoom
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-E3XUYWYA.js";
|
|
11
|
+
import "./chunk-WM5ZE67G.js";
|
|
12
|
+
import "./chunk-W4BGNYKR.js";
|
|
13
|
+
import "./chunk-KZ3JR3GE.js";
|
|
14
14
|
import "./chunk-7BDPM5ST.js";
|
|
15
15
|
import "./chunk-UG5G54VL.js";
|
|
16
16
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
resolveMeetingScheduleTypeIds,
|
|
9
9
|
resolveMemberIdsByName,
|
|
10
10
|
runScheduleConflictFlow
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-56F2GGE4.js";
|
|
12
|
+
import "./chunk-WM5ZE67G.js";
|
|
13
|
+
import "./chunk-W4BGNYKR.js";
|
|
14
|
+
import "./chunk-KZ3JR3GE.js";
|
|
15
15
|
import "./chunk-7BDPM5ST.js";
|
|
16
16
|
import "./chunk-UG5G54VL.js";
|
|
17
17
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -21,13 +21,13 @@ import {
|
|
|
21
21
|
createE10RequestRuntime,
|
|
22
22
|
isE10SessionExpiredResponse,
|
|
23
23
|
requireE10Session
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-UASZW22U.js";
|
|
25
25
|
import "./chunk-IZCQU5D5.js";
|
|
26
26
|
import {
|
|
27
27
|
getActiveProfile
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-WQ4ZHAEZ.js";
|
|
29
29
|
import "./chunk-Y3C6MDL7.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-LYFPWZBD.js";
|
|
31
31
|
import "./chunk-2BZ7TY4M.js";
|
|
32
32
|
import {
|
|
33
33
|
CliError,
|
|
@@ -2,9 +2,9 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
updateCommand
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-JUPKXW4P.js";
|
|
6
|
+
import "./chunk-YXIPZFMX.js";
|
|
7
|
+
import "./chunk-LYFPWZBD.js";
|
|
8
8
|
import "./chunk-2BZ7TY4M.js";
|
|
9
9
|
import "./chunk-UG5G54VL.js";
|
|
10
10
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -14,13 +14,13 @@ import {
|
|
|
14
14
|
validateRuleFile,
|
|
15
15
|
workflowOperationDefinitions,
|
|
16
16
|
workflowSuccess
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-L2PKMZIU.js";
|
|
18
18
|
import {
|
|
19
19
|
createWorkflowContinuationSigner
|
|
20
20
|
} from "./chunk-HP7JIYMT.js";
|
|
21
21
|
import {
|
|
22
22
|
createWorkflowHost
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-DWCMKEMO.js";
|
|
24
24
|
import {
|
|
25
25
|
CLARIFICATION_SUBTYPE,
|
|
26
26
|
WorkflowCliError,
|
|
@@ -36,11 +36,11 @@ import "./chunk-7BDPM5ST.js";
|
|
|
36
36
|
import {
|
|
37
37
|
reportPlatformError
|
|
38
38
|
} from "./chunk-MD5CW4B6.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-UASZW22U.js";
|
|
40
40
|
import "./chunk-IZCQU5D5.js";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-WQ4ZHAEZ.js";
|
|
42
42
|
import "./chunk-Y3C6MDL7.js";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-LYFPWZBD.js";
|
|
44
44
|
import "./chunk-2BZ7TY4M.js";
|
|
45
45
|
import {
|
|
46
46
|
isCliError,
|
|
@@ -17,11 +17,27 @@ export function isXiaoERuntimeAgent(value) {
|
|
|
17
17
|
export function isXiaoERuntime(options) {
|
|
18
18
|
return isXiaoERuntimeAgent(options?.runtimeAgent);
|
|
19
19
|
}
|
|
20
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* 小e 宿主注入的环境变量前缀。只检查 key 是否存在,不读取值——
|
|
22
|
+
* `XIAOE_DOMAIN` / `XIAOE_USER_TOKEN` / `XIAOE_CLIENT_TYPE` 乃至空值占位变量都算。
|
|
23
|
+
*/
|
|
24
|
+
const XIAOE_ENV_PREFIX = 'XIAOE_';
|
|
25
|
+
/** 进程环境里是否存在任一 `XIAOE_*` 变量(宿主判定与登录分区共用的唯一环境判据)。 */
|
|
26
|
+
export function hasXiaoEEnvMarker(env = process.env) {
|
|
27
|
+
return Object.keys(env).some((key) => key.startsWith(XIAOE_ENV_PREFIX));
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Runtime identity only: installed clients and saved login sessions are not host evidence.
|
|
31
|
+
*
|
|
32
|
+
* 优先级:`XIAOE_*` 环境变量最高。宿主实际注入了什么,比任何自报身份都可靠;
|
|
33
|
+
* 因此即使 Agent 传了 `--runtime-agent workbuddy`,环境里只要有 `XIAOE_*` 就判为小e。
|
|
34
|
+
* 其余顺序保持原样:显式 `--runtime-agent` > `WORKBUDDY_AGENT_TYPE` / `CODEX_AGENT_TYPE`
|
|
35
|
+
* > 其他框架标记 > `WEAVER_AGENT_TYPE`。
|
|
36
|
+
*/
|
|
21
37
|
export function isXiaoEHostEnvironment(env, options = {}) {
|
|
22
|
-
if (
|
|
38
|
+
if (hasXiaoEEnvMarker(env))
|
|
23
39
|
return true;
|
|
24
|
-
if (
|
|
40
|
+
if (isXiaoERuntime(options))
|
|
25
41
|
return true;
|
|
26
42
|
const explicitHost = env.WORKBUDDY_AGENT_TYPE?.trim() || env.CODEX_AGENT_TYPE?.trim();
|
|
27
43
|
if (explicitHost)
|
package/dist/index.js
CHANGED
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
} from "./chunks/chunk-257JXJGD.js";
|
|
12
12
|
import {
|
|
13
13
|
UpdateService
|
|
14
|
-
} from "./chunks/chunk-
|
|
15
|
-
import "./chunks/chunk-
|
|
14
|
+
} from "./chunks/chunk-YXIPZFMX.js";
|
|
15
|
+
import "./chunks/chunk-LYFPWZBD.js";
|
|
16
16
|
import {
|
|
17
17
|
packageRootDir
|
|
18
18
|
} from "./chunks/chunk-2BZ7TY4M.js";
|
|
@@ -85,7 +85,7 @@ async function bootstrap(argv = process.argv.slice(2)) {
|
|
|
85
85
|
const [{ createProgram }, { registerCommands }, { updateCommand }] = await Promise.all([
|
|
86
86
|
import("./chunks/root-YZG2TS5W.js"),
|
|
87
87
|
import("./chunks/register-SQOPIR2G.js"),
|
|
88
|
-
import("./chunks/update-
|
|
88
|
+
import("./chunks/update-BERR64TI.js")
|
|
89
89
|
]);
|
|
90
90
|
const { program, ctx } = createProgram();
|
|
91
91
|
await registerCommands(program, ctx, [updateCommand]);
|
|
@@ -112,7 +112,7 @@ async function bootstrap(argv = process.argv.slice(2)) {
|
|
|
112
112
|
var startup = await bootstrap();
|
|
113
113
|
if (!startup.handled) {
|
|
114
114
|
try {
|
|
115
|
-
await import("./chunks/cli-
|
|
115
|
+
await import("./chunks/cli-VCQIDBDQ.js");
|
|
116
116
|
} finally {
|
|
117
117
|
startup.release?.();
|
|
118
118
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* 关键约束:**不能用 `resolveAgentType()` 的返回值当 key**。它的 fallback 是
|
|
9
9
|
* `weaver-work-cli`,会让「终端手工执行」也写出一条宿主记录,污染分区。
|
|
10
10
|
*/
|
|
11
|
-
import { isXiaoERuntimeAgent } from '../../../core/runtime-agent.js';
|
|
11
|
+
import { hasXiaoEEnvMarker, isXiaoERuntimeAgent } from '../../../core/runtime-agent.js';
|
|
12
12
|
function hasEnvPrefix(env, prefix) {
|
|
13
13
|
return Object.keys(env).some((key) => key === prefix || key.startsWith(`${prefix}_`));
|
|
14
14
|
}
|
|
@@ -30,7 +30,16 @@ const AGENT_HOST_PREFIXES = [
|
|
|
30
30
|
];
|
|
31
31
|
/** 无任何宿主标识时的分区,表示终端/未知宿主。 */
|
|
32
32
|
export const DEFAULT_AGENT_HOST_KEY = 'default';
|
|
33
|
+
/**
|
|
34
|
+
* 解析当前进程所属的宿主 key(登录分区)。
|
|
35
|
+
*
|
|
36
|
+
* 优先级与 `isXiaoEHostEnvironment` 保持一致:`XIAOE_*` 环境变量最高——
|
|
37
|
+
* 宿主真实注入的标记优先于任何自报身份,否则会出现「业务按小e 跑、登录却读写
|
|
38
|
+
* 另一个宿主的 profile」这种两层口径打架的情况。
|
|
39
|
+
*/
|
|
33
40
|
export function resolveSessionHostKey(env, options = {}) {
|
|
41
|
+
if (hasXiaoEEnvMarker(env))
|
|
42
|
+
return 'xiaoe';
|
|
34
43
|
if (isXiaoERuntimeAgent(options.runtimeAgent))
|
|
35
44
|
return 'xiaoe';
|
|
36
45
|
return resolveAgentHostKey(env, options.runtimeAgent);
|