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
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
ensureMeetingGroupChat,
|
|
7
7
|
meetingEbGroupChatOperations,
|
|
8
8
|
savePendingForm
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-X7OZKI6F.js";
|
|
10
|
+
import "./chunk-W4BGNYKR.js";
|
|
11
|
+
import "./chunk-KZ3JR3GE.js";
|
|
12
12
|
import "./chunk-7BDPM5ST.js";
|
|
13
13
|
import "./chunk-UG5G54VL.js";
|
|
14
14
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
businessMessage,
|
|
5
5
|
createHrmHost,
|
|
6
6
|
isBusinessSuccess
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5NQZO3CO.js";
|
|
8
8
|
import "./chunk-56EZERK4.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-UASZW22U.js";
|
|
10
10
|
import "./chunk-IZCQU5D5.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-WQ4ZHAEZ.js";
|
|
12
12
|
import "./chunk-Y3C6MDL7.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-LYFPWZBD.js";
|
|
14
14
|
import "./chunk-2BZ7TY4M.js";
|
|
15
15
|
import "./chunk-UG5G54VL.js";
|
|
16
16
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
dirname,
|
|
8
8
|
mkdir,
|
|
9
9
|
writeFile
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YFDKTTYX.js";
|
|
11
11
|
import "./chunk-IC62NFM5.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-UASZW22U.js";
|
|
13
13
|
import "./chunk-IZCQU5D5.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-WQ4ZHAEZ.js";
|
|
15
15
|
import "./chunk-Y3C6MDL7.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-LYFPWZBD.js";
|
|
17
17
|
import "./chunk-2BZ7TY4M.js";
|
|
18
18
|
import "./chunk-UG5G54VL.js";
|
|
19
19
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
createEsbHost,
|
|
7
7
|
isEsbFlowUnavailable,
|
|
8
8
|
triggerResultCode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VMUVVTT4.js";
|
|
10
10
|
import "./chunk-TXUG266F.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";
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
pickEbuilderDataKey,
|
|
8
8
|
resolveApiPrefix,
|
|
9
9
|
routeEbuilderPath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WF5G5SV3.js";
|
|
11
11
|
import "./chunk-Z3GDFVJR.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-UASZW22U.js";
|
|
13
13
|
import "./chunk-IZCQU5D5.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-WQ4ZHAEZ.js";
|
|
15
15
|
import "./chunk-Y3C6MDL7.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-LYFPWZBD.js";
|
|
17
17
|
import "./chunk-2BZ7TY4M.js";
|
|
18
18
|
import "./chunk-UG5G54VL.js";
|
|
19
19
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
caizhilianBusinessMessage,
|
|
10
10
|
createCaizhilianHost,
|
|
11
11
|
isCaizhilianBusinessSuccess
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RVVRTW4P.js";
|
|
13
13
|
import "./chunk-P5GQRWDC.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-UASZW22U.js";
|
|
15
15
|
import "./chunk-IZCQU5D5.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-WQ4ZHAEZ.js";
|
|
17
17
|
import "./chunk-Y3C6MDL7.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-LYFPWZBD.js";
|
|
19
19
|
import "./chunk-2BZ7TY4M.js";
|
|
20
20
|
import "./chunk-UG5G54VL.js";
|
|
21
21
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
extractApiBusinessError,
|
|
6
6
|
isAtustRedirect,
|
|
7
7
|
isLoginExpired
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DWCMKEMO.js";
|
|
9
9
|
import "./chunk-WRXSAVKO.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-UASZW22U.js";
|
|
11
11
|
import "./chunk-IZCQU5D5.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-WQ4ZHAEZ.js";
|
|
13
13
|
import "./chunk-Y3C6MDL7.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-LYFPWZBD.js";
|
|
15
15
|
import "./chunk-2BZ7TY4M.js";
|
|
16
16
|
import "./chunk-UG5G54VL.js";
|
|
17
17
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -2,17 +2,17 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
createHrmHost
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5NQZO3CO.js";
|
|
6
6
|
import {
|
|
7
7
|
getHrmOperation,
|
|
8
8
|
hrmOperationDefinitions
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-AW3HQUOC.js";
|
|
10
|
+
import "./chunk-CLVEXDEJ.js";
|
|
11
|
+
import "./chunk-BD3M2YVN.js";
|
|
12
12
|
import {
|
|
13
13
|
asObject,
|
|
14
14
|
assertNoForbiddenKeys
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BFVUBCYO.js";
|
|
16
16
|
import {
|
|
17
17
|
hrmValidationError
|
|
18
18
|
} from "./chunk-56EZERK4.js";
|
|
@@ -22,11 +22,11 @@ import {
|
|
|
22
22
|
import {
|
|
23
23
|
reportPlatformError
|
|
24
24
|
} from "./chunk-MD5CW4B6.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-UASZW22U.js";
|
|
26
26
|
import "./chunk-IZCQU5D5.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-WQ4ZHAEZ.js";
|
|
28
28
|
import "./chunk-Y3C6MDL7.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-LYFPWZBD.js";
|
|
30
30
|
import "./chunk-2BZ7TY4M.js";
|
|
31
31
|
import {
|
|
32
32
|
isCliError,
|
|
@@ -46,6 +46,14 @@ var WITHHELD = [
|
|
|
46
46
|
{
|
|
47
47
|
name: "hrm.org.virtuals",
|
|
48
48
|
reason: "\u591A\u7EF4\uFF08\u7EC4\u7EC7\u7EF4\u5EA6\uFF09\u6E05\u5355\u4E0D\u5355\u72EC\u66B4\u9732\uFF1A\u7EF4\u5EA6\u83B7\u53D6\u4E0E\u540D\u79F0\u5339\u914D\u5DF2\u5E76\u5165 hrm.org.resolve \u5185\u90E8\uFF08\u5176 not_found \u4F1A\u987A\u5E26\u56DE availableVirtuals \u4F9B\u7EA0\u9519\uFF09\u3002\u300C\u5217\u51FA\u8BE5\u79DF\u6237\u6709\u54EA\u4E9B\u591A\u7EF4\u300D\u6682\u4E0D\u652F\u6301\uFF0C\u4E0D\u8981\u6784\u9020\u4E0D\u5B58\u5728\u7684\u7EF4\u5EA6\u540D\u53BB\u5957 availableVirtuals\uFF0C\u4E5F\u4E0D\u8981\u7F16\u9020\u6216\u7ED5\u8FC7\u3002"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: "hrm.org.change",
|
|
52
|
+
reason: "\u7EC4\u7EC7\u53D8\u66F4\uFF08\u65B0\u589E/\u4FEE\u6539/\u5220\u9664\u90E8\u95E8\u3001\u5206\u90E8\uFF09\u662F\u5199\u64CD\u4F5C\uFF0C\u672C\u6A21\u5757\u5168\u90E8\u4E3A\u53EA\u8BFB\u67E5\u8BE2\uFF0C\u4E0D\u63D0\u4F9B\u8BE5\u80FD\u529B\uFF1B\u66FF\u4EE3\u505A\u6CD5\uFF1A\u8BF7\u5230 E10 \u7EC4\u7EC7\u7BA1\u7406\u754C\u9762\u81EA\u52A9\u64CD\u4F5C\uFF0C\u4E0D\u8981\u7F16\u9020 hrm \u5199 operation\u3002"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: "hrm.position.adjust",
|
|
56
|
+
reason: "\u5C97\u4F4D\u8C03\u6574\uFF08\u4EBA\u5458\u8C03\u5C97\u3001\u65B0\u589E/\u5220\u9664\u5C97\u4F4D\uFF09\u662F\u5199\u64CD\u4F5C\uFF0C\u672C\u6A21\u5757\u5168\u90E8\u4E3A\u53EA\u8BFB\u67E5\u8BE2\uFF0C\u4E0D\u63D0\u4F9B\u8BE5\u80FD\u529B\uFF1B\u66FF\u4EE3\u505A\u6CD5\uFF1A\u8BF7\u5230 E10 \u7EC4\u7EC7\u7BA1\u7406\u754C\u9762\u81EA\u52A9\u64CD\u4F5C\uFF0C\u4E0D\u8981\u7F16\u9020 hrm \u5199 operation\u3002"
|
|
49
57
|
}
|
|
50
58
|
];
|
|
51
59
|
function buildOperations() {
|
|
@@ -67,14 +75,34 @@ var hrmManifest = {
|
|
|
67
75
|
sourceSkill: "weaver-e10-hrm",
|
|
68
76
|
capabilities: ["employee", "org", "position"],
|
|
69
77
|
operations: buildOperations(),
|
|
78
|
+
// 2026-11-30 飞书审计 HR-02:首屏必须先给总数,模型才知道边界之外还有多少条,
|
|
79
|
+
// 再看摘要或 --full 明细;与其他域 G-10 的口径保持一致。
|
|
80
|
+
withheldCount: WITHHELD.length,
|
|
70
81
|
withheldOperations: WITHHELD
|
|
71
82
|
};
|
|
72
83
|
|
|
73
84
|
// src/shortcuts/hrm/operations.ts
|
|
85
|
+
function isMissing(value) {
|
|
86
|
+
if (value === void 0 || value === null) return true;
|
|
87
|
+
return typeof value === "string" && value.trim() === "";
|
|
88
|
+
}
|
|
89
|
+
function assertRequiredInput(definition, input) {
|
|
90
|
+
const required = definition.inputSchema.required;
|
|
91
|
+
if (!Array.isArray(required) || required.length === 0) return;
|
|
92
|
+
const missing = required.filter((key) => typeof key === "string").filter((key) => isMissing(input[key]));
|
|
93
|
+
if (missing.length === 0) return;
|
|
94
|
+
const subtype = missing.length === 1 ? `${missing[0]}_required` : "required_missing";
|
|
95
|
+
throw hrmValidationError(
|
|
96
|
+
subtype,
|
|
97
|
+
`\u7F3A\u5C11\u5FC5\u586B\u53C2\u6570\uFF1A${missing.join("\u3001")}\uFF08\u7528 weaver-work-cli hrm schema --operation ${definition.name} \u67E5\u770B\u5B8C\u6574\u5165\u53C2\uFF09`,
|
|
98
|
+
{ operation: definition.name, missing }
|
|
99
|
+
);
|
|
100
|
+
}
|
|
74
101
|
async function executeHrmOperation(operation, rawInput, context) {
|
|
75
102
|
const definition = getHrmOperation(operation);
|
|
76
103
|
const input = asObject(rawInput);
|
|
77
104
|
assertNoForbiddenKeys(input);
|
|
105
|
+
assertRequiredInput(definition, input);
|
|
78
106
|
const host = {
|
|
79
107
|
request(request) {
|
|
80
108
|
return context.host.request({
|
|
@@ -193,6 +221,34 @@ function failureEnvelope(error) {
|
|
|
193
221
|
error: toErrorEnvelope(error)
|
|
194
222
|
};
|
|
195
223
|
}
|
|
224
|
+
var WITHHELD_BRIEF_MAX = 6;
|
|
225
|
+
var WITHHELD_REASON_MAX_CHARS = 80;
|
|
226
|
+
function hrmSchemaBrief() {
|
|
227
|
+
const withheld = hrmManifest.withheldOperations;
|
|
228
|
+
return {
|
|
229
|
+
schemaVersion: hrmManifest.schemaVersion,
|
|
230
|
+
name: hrmManifest.name,
|
|
231
|
+
version: hrmManifest.version,
|
|
232
|
+
withheldCount: withheld.length,
|
|
233
|
+
withheldOperations: withheld.slice(0, WITHHELD_BRIEF_MAX).map((item) => ({
|
|
234
|
+
name: item.name,
|
|
235
|
+
reason: item.reason.length > WITHHELD_REASON_MAX_CHARS ? `${item.reason.slice(0, WITHHELD_REASON_MAX_CHARS)}\u2026` : item.reason
|
|
236
|
+
})),
|
|
237
|
+
...withheld.length > WITHHELD_BRIEF_MAX ? { withheldTruncated: true } : {},
|
|
238
|
+
operations: hrmManifest.operations.map((o) => {
|
|
239
|
+
const anyOf = Array.isArray(o.inputSchema?.anyOf) ? o.inputSchema.anyOf : null;
|
|
240
|
+
const atLeastOne = anyOf ? [...new Set(anyOf.flatMap((branch) => branch?.required ?? []))] : [];
|
|
241
|
+
return {
|
|
242
|
+
name: o.name,
|
|
243
|
+
summary: o.summary,
|
|
244
|
+
risk: o.risk,
|
|
245
|
+
params: Object.keys(o.inputSchema?.properties ?? {}),
|
|
246
|
+
required: o.inputSchema?.required ?? [],
|
|
247
|
+
...atLeastOne.length ? { atLeastOne } : {}
|
|
248
|
+
};
|
|
249
|
+
})
|
|
250
|
+
};
|
|
251
|
+
}
|
|
196
252
|
async function executeAndPrint(ctx, operation, input) {
|
|
197
253
|
try {
|
|
198
254
|
const result = await executeHrmOperation(operation, input, {
|
|
@@ -223,24 +279,7 @@ var hrmShortcut = {
|
|
|
223
279
|
ctx.output.write(hrmManifest, { json: true });
|
|
224
280
|
return;
|
|
225
281
|
}
|
|
226
|
-
|
|
227
|
-
schemaVersion: hrmManifest.schemaVersion,
|
|
228
|
-
name: hrmManifest.name,
|
|
229
|
-
version: hrmManifest.version,
|
|
230
|
-
operations: hrmManifest.operations.map((o) => {
|
|
231
|
-
const anyOf = Array.isArray(o.inputSchema?.anyOf) ? o.inputSchema.anyOf : null;
|
|
232
|
-
const atLeastOne = anyOf ? [...new Set(anyOf.flatMap((branch) => branch?.required ?? []))] : [];
|
|
233
|
-
return {
|
|
234
|
-
name: o.name,
|
|
235
|
-
summary: o.summary,
|
|
236
|
-
risk: o.risk,
|
|
237
|
-
params: Object.keys(o.inputSchema?.properties ?? {}),
|
|
238
|
-
required: o.inputSchema?.required ?? [],
|
|
239
|
-
...atLeastOne.length ? { atLeastOne } : {}
|
|
240
|
-
};
|
|
241
|
-
})
|
|
242
|
-
};
|
|
243
|
-
ctx.output.write(brief, { json: true });
|
|
282
|
+
ctx.output.write(hrmSchemaBrief(), { json: true });
|
|
244
283
|
}));
|
|
245
284
|
hrm.command("run").description("Run an hrm operation with JSON input").argument("<operation>", "operation name, e.g. hrm.employee.query").option("--input <path>", "JSON input file, or - for stdin").option("--input-json <json>", "inline JSON input object").action(action(async (ctx, operation, options) => {
|
|
246
285
|
await executeAndPrint(ctx, String(operation), await inputFrom(options));
|
|
@@ -262,6 +301,7 @@ var hrmShortcut = {
|
|
|
262
301
|
}
|
|
263
302
|
};
|
|
264
303
|
export {
|
|
304
|
+
hrmSchemaBrief,
|
|
265
305
|
hrmShortcut,
|
|
266
306
|
inputArrayFrom,
|
|
267
307
|
inputFrom,
|
|
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
createImHost
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YFDKTTYX.js";
|
|
6
6
|
import {
|
|
7
7
|
createImContinuationSigner
|
|
8
8
|
} from "./chunk-KIHNAS25.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
assertNoForbiddenKeys,
|
|
12
12
|
getImOperation,
|
|
13
13
|
imOperationDefinitions
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5MM2IZ27.js";
|
|
15
15
|
import {
|
|
16
16
|
imValidationError
|
|
17
17
|
} from "./chunk-IC62NFM5.js";
|
|
@@ -22,11 +22,11 @@ import {
|
|
|
22
22
|
schemaOptionsOf
|
|
23
23
|
} from "./chunk-2QCCXPNU.js";
|
|
24
24
|
import "./chunk-7BDPM5ST.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-UASZW22U.js";
|
|
26
26
|
import "./chunk-IZCQU5D5.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-WQ4ZHAEZ.js";
|
|
28
28
|
import "./chunk-Y3C6MDL7.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-LYFPWZBD.js";
|
|
30
30
|
import "./chunk-2BZ7TY4M.js";
|
|
31
31
|
import {
|
|
32
32
|
isCliError,
|