weaver-work-cli 0.1.71 → 0.1.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -1
- package/dist/chunks/{archive-5P33NAUN.js → archive-OZJ6PYUR.js} +14 -9
- package/dist/chunks/{archive-oa-YTY5D7DG.js → archive-oa-BHL5RK2F.js} +10 -7
- package/dist/chunks/{asset-3Q5MFQBX.js → asset-HKRFRQR2.js} +10 -7
- package/dist/chunks/{asset-idle-PQPNYIS7.js → asset-idle-GGIR4KE7.js} +7 -4
- package/dist/chunks/{attachment-content-7CN7JB6B.js → attachment-content-4OV65NK5.js} +3 -3
- package/dist/chunks/{blog-MFHHK6ZR.js → blog-HYDP4DV3.js} +10 -7
- package/dist/chunks/{caizhilian-OZ435AYW.js → caizhilian-JS4RQZ6Z.js} +10 -7
- package/dist/chunks/{calendar-TNJXS5UC.js → calendar-SWRY4DIT.js} +10 -7
- package/dist/chunks/chunk-257JXJGD.js +30 -0
- package/dist/chunks/{chunk-FRMDHZSN.js → chunk-2AUFKU2D.js} +11 -11
- package/dist/chunks/chunk-2BZ7TY4M.js +49 -0
- package/dist/chunks/{chunk-WM33BSIL.js → chunk-2QCCXPNU.js} +1 -1
- package/dist/chunks/{chunk-X2C5CGGM.js → chunk-4FCBEWNB.js} +74 -68
- package/dist/chunks/{chunk-YN5SD4TX.js → chunk-5D2V7ZAN.js} +2 -2
- package/dist/chunks/{chunk-UPVAQJKS.js → chunk-5QUTQHXF.js} +282 -158
- package/dist/chunks/{chunk-SKWKCLJX.js → chunk-5ZJGPEIB.js} +2 -2
- package/dist/chunks/chunk-7DE3VMZD.js +35 -0
- package/dist/chunks/chunk-BNKUHN4N.js +1346 -0
- package/dist/chunks/{chunk-VMVMEIL3.js → chunk-BSR5TM7U.js} +4 -4
- package/dist/chunks/{chunk-EJLP63UO.js → chunk-ERZY6GYL.js} +7 -3
- package/dist/chunks/{chunk-OFCF23FY.js → chunk-FEZK536Z.js} +25 -9
- package/dist/chunks/{chunk-Q3EXRNB4.js → chunk-I6NOHKEK.js} +1 -1
- package/dist/chunks/{chunk-OZ7CJC7W.js → chunk-J7FAAHWH.js} +2 -2
- package/dist/chunks/{chunk-6MMSLE6K.js → chunk-JJONWB5N.js} +16 -2
- package/dist/chunks/chunk-JOY3HZXL.js +467 -0
- package/dist/chunks/{chunk-2DNCKZRX.js → chunk-JWF2R6EQ.js} +0 -462
- package/dist/chunks/{chunk-ICNUOWLL.js → chunk-KEA4XQPO.js} +4 -4
- package/dist/chunks/chunk-KINXYJXM.js +205 -0
- package/dist/chunks/{chunk-VJWVB55R.js → chunk-KWJEICD4.js} +2 -2
- package/dist/chunks/{chunk-P3AFNAJ6.js → chunk-LJI4N6FV.js} +1 -1
- package/dist/chunks/{chunk-DRJYPXKC.js → chunk-MXCRKXOP.js} +48 -6
- package/dist/chunks/{chunk-OPTJ6IF7.js → chunk-NWYHCZTY.js} +1 -1
- package/dist/chunks/chunk-OJ4JPD25.js +428 -0
- package/dist/chunks/{chunk-B4NINGP2.js → chunk-OQCK5SAU.js} +2 -2
- package/dist/chunks/chunk-PG5YSNYY.js +1166 -0
- package/dist/chunks/{chunk-LU2SPJYY.js → chunk-QJWVYOOV.js} +2 -2
- package/dist/chunks/{chunk-SUWR5QEG.js → chunk-QVKRNL7L.js} +287 -305
- package/dist/chunks/chunk-SU6IJD6D.js +49 -0
- package/dist/chunks/{chunk-MD5RXRI3.js → chunk-TA2RBUTH.js} +2 -2
- package/dist/chunks/{chunk-SSS75WXW.js → chunk-U6Y32KEV.js} +2 -2
- package/dist/chunks/chunk-UUJK76HV.js +209 -0
- package/dist/chunks/{chunk-GB2MCJPG.js → chunk-VOMDD2C5.js} +1 -1
- package/dist/chunks/chunk-Y3C6MDL7.js +28 -0
- package/dist/chunks/chunk-ZM7RN2IM.js +38 -0
- package/dist/chunks/{chunk-G7ZM2VOX.js → chunk-ZUB4M4N3.js} +38 -36
- package/dist/chunks/{chunk-XLSJC6JZ.js → chunk-ZWIMLT6P.js} +8 -7
- package/dist/chunks/cli-FULPXIKJ.js +226 -0
- package/dist/chunks/commands-BNWFNTD3.js +70 -0
- package/dist/chunks/{conflict-Y4PXZ2YQ.js → conflict-5BKCDV2F.js} +2 -2
- package/dist/chunks/{contract-C3BGUMBM.js → contract-WI23OXVC.js} +12446 -5964
- package/dist/chunks/{cowork-2AWG4QLA.js → cowork-DZBBVNMQ.js} +11 -8
- package/dist/chunks/{create-flow-LOUOK46Z.js → create-flow-7ZRBRKX7.js} +6 -6
- package/dist/chunks/{data-BSFYMXVO.js → data-PAZVE6QE.js} +6 -3
- package/dist/chunks/{ebuilder-form-LAAMTD2Y.js → ebuilder-form-5SQXIGXN.js} +9 -6
- package/dist/chunks/{ehr-36KEX5SH.js → ehr-CX5F4ZAU.js} +27 -19
- package/dist/chunks/{entry-mode-6N2IGCS4.js → entry-mode-I2BYNONZ.js} +3 -3
- package/dist/chunks/{env-QYLS3EB3.js → env-ZAQZ7EHN.js} +2 -2
- package/dist/chunks/{esb-PTYS3E67.js → esb-DQTXDIBF.js} +10 -7
- package/dist/chunks/{factory-LPFPKZ4T.js → factory-XRI6KZ7H.js} +1 -1
- package/dist/chunks/{fna-JNHCLRDE.js → fna-FK6HQVJL.js} +13 -8
- package/dist/chunks/{group-chat-QP2WX4QJ.js → group-chat-MLWNYM2P.js} +3 -3
- package/dist/chunks/{host-C2BLBIID.js → host-3EPREGXS.js} +6 -3
- package/dist/chunks/{host-QXFKQXNX.js → host-J74JGYAW.js} +6 -3
- package/dist/chunks/{host-57LSRSE7.js → host-KUMU3DDK.js} +6 -3
- package/dist/chunks/{host-7BVR7CQ3.js → host-MEC4VQZA.js} +6 -3
- package/dist/chunks/{host-NS36QFLR.js → host-T6NNQGVZ.js} +6 -3
- package/dist/chunks/{host-K2ZKNXME.js → host-VI7Q45PM.js} +6 -3
- package/dist/chunks/{hrm-FSGO4NSH.js → hrm-KKVAW4P5.js} +8 -5
- package/dist/chunks/{im-2BFGS2XO.js → im-47CIWQNL.js} +7 -4
- package/dist/chunks/{invoice-JKLTTHSZ.js → invoice-CDYRBNIG.js} +21 -16
- package/dist/chunks/{jiuchuanhui-PTABJE7V.js → jiuchuanhui-M7QTRHZK.js} +17 -10
- package/dist/chunks/{lazy-dispatch-YN2ZP3CS.js → lazy-dispatch-FKQJZFI5.js} +22 -8
- package/dist/chunks/{mail-YNO7ZZUK.js → mail-NRBS5N6Y.js} +11 -8
- package/dist/chunks/{meeting-NIDHDBCB.js → meeting-WC5LD3IO.js} +22 -18
- package/dist/chunks/{minute-doc-G3QAT7DE.js → minute-doc-OQUMDTKG.js} +4 -4
- package/dist/chunks/{okr-QC52G6AJ.js → okr-EHKSKMPL.js} +10 -7
- package/dist/chunks/{operations-MQV32ITT.js → operations-V5VM5MS2.js} +7 -4
- package/dist/chunks/{performance-3MQ3AHDQ.js → performance-ZJADXJPN.js} +6 -3
- package/dist/chunks/{plan-ISINIEPY.js → plan-OTDNBDJ7.js} +10 -7
- package/dist/chunks/{project-IJ6DVKT7.js → project-4XVBQ3HX.js} +10 -7
- package/dist/chunks/{reception-3H5LUG2I.js → reception-3FAHOOH7.js} +118 -45
- package/dist/chunks/{recruit-stage-MIOJXP6W.js → recruit-stage-3WTVWW2K.js} +1056 -191
- package/dist/chunks/register-SQOPIR2G.js +16 -0
- package/dist/chunks/{registry-3S7AVMXR.js → registry-F4YFZLOD.js} +7 -3
- package/dist/chunks/registry-NBTBXR4L.js +30 -0
- package/dist/chunks/{registry-NHHKOEU3.js → registry-TJGCVRCW.js} +7 -4
- package/dist/chunks/{room-recommend-IOKBJVYP.js → room-recommend-KL62XB2Y.js} +4 -4
- package/dist/chunks/root-YZG2TS5W.js +16 -0
- package/dist/chunks/{schedule-IB6EUARH.js → schedule-XOISYUPB.js} +4 -4
- package/dist/chunks/{smart-extract-N2TK3CEF.js → smart-extract-UYGNV3BM.js} +15 -7
- package/dist/chunks/update-AV5VOXGY.js +13 -0
- package/dist/chunks/{workflow-RINBAL2M.js → workflow-V54LJPXL.js} +15 -10
- package/dist/cli.js +40 -0
- package/dist/cmd/action.js +3 -1
- package/dist/cmd/doctor/index.js +1 -1
- package/dist/cmd/e10/index.js +1 -1
- package/dist/cmd/identity/index.js +5 -8
- package/dist/cmd/index.js +2 -0
- package/dist/cmd/setup/index.js +1 -1
- package/dist/cmd/update/index.js +38 -0
- package/dist/core/manifest-view.js +1 -1
- package/dist/core/output.js +12 -1
- package/dist/core/runtime-agent.js +13 -0
- package/dist/core/update-notice.js +23 -0
- package/dist/index.js +105 -198
- package/dist/internal/e10/auth/agent-host-key.js +16 -0
- package/dist/internal/e10/auth/agent-hosts.js +45 -9
- package/dist/internal/e10/auth/commands.js +66 -36
- package/dist/internal/e10/auth/session.js +30 -15
- package/dist/internal/e10/auth/xiaoe.js +4 -20
- package/dist/internal/e10/auth-recovery.js +44 -4
- package/dist/internal/e10/context.js +5 -2
- package/dist/internal/update/bootstrap.js +96 -0
- package/dist/internal/update/npm.js +78 -0
- package/dist/internal/update/service.js +252 -0
- package/dist/internal/update/store.js +135 -0
- package/dist/shortcuts/archive/index.js +2 -2
- package/dist/shortcuts/archive/manifest.js +1 -0
- package/dist/shortcuts/archive/operations/search.js +3 -1
- package/dist/shortcuts/archive-oa/index.js +1 -1
- package/dist/shortcuts/asset/index.js +1 -1
- package/dist/shortcuts/asset-idle/index.js +1 -1
- package/dist/shortcuts/blog/index.js +1 -1
- package/dist/shortcuts/caizhilian/index.js +1 -1
- package/dist/shortcuts/calendar/index.js +1 -1
- package/dist/shortcuts/contract/data/bi-config.js +156 -0
- package/dist/shortcuts/contract/data/collection-ledger-html.js +189 -0
- package/dist/shortcuts/contract/data/collection-node-catalog.js +226 -0
- package/dist/shortcuts/contract/data/metric-catalog.js +154 -20
- package/dist/shortcuts/contract/data/report-renderers.js +414 -0
- package/dist/shortcuts/contract/data/report-spec.js +132 -0
- package/dist/shortcuts/contract/error-actions.js +114 -0
- package/dist/shortcuts/contract/host.js +12 -3
- package/dist/shortcuts/contract/index.js +17 -1
- package/dist/shortcuts/contract/manifest.js +398 -3
- package/dist/shortcuts/contract/ooxml/docx-table.js +48 -0
- package/dist/shortcuts/contract/operations/bi-preview.js +131 -0
- package/dist/shortcuts/contract/operations/bizreview-report.js +496 -0
- package/dist/shortcuts/contract/operations/collection-node.js +229 -0
- package/dist/shortcuts/contract/operations/docx-slots.js +735 -16
- package/dist/shortcuts/contract/operations/draft-build.js +940 -0
- package/dist/shortcuts/contract/operations/draft-submit.js +229 -0
- package/dist/shortcuts/contract/operations/first-screen.js +3 -2
- package/dist/shortcuts/contract/operations/generated-submit.js +175 -0
- package/dist/shortcuts/contract/operations/ledger-report.js +233 -0
- package/dist/shortcuts/contract/operations/ledger-stat.js +1400 -0
- package/dist/shortcuts/contract/operations/ledger.js +4 -1
- package/dist/shortcuts/contract/operations/metrics.js +9 -3
- package/dist/shortcuts/contract/operations/ops-draft.js +527 -0
- package/dist/shortcuts/contract/operations/page.js +9 -0
- package/dist/shortcuts/contract/operations/quote-submit.js +55 -229
- package/dist/shortcuts/contract/operations/registry.js +20 -0
- package/dist/shortcuts/contract/operations/sign-launch.js +256 -0
- package/dist/shortcuts/contract/operations/viewlink.js +334 -0
- package/dist/shortcuts/cowork/index.js +2 -2
- package/dist/shortcuts/ebuilder-form/index.js +1 -1
- package/dist/shortcuts/ehr/index.js +2 -2
- package/dist/shortcuts/ehr/manifest.js +1 -1
- package/dist/shortcuts/ehr/operations/recruit-position.js +11 -5
- package/dist/shortcuts/ehr/operations/recruit-short-cache.js +6 -2
- package/dist/shortcuts/ehr/operations/recruit-write.js +10 -9
- package/dist/shortcuts/ehr/operations/recruit.js +390 -196
- package/dist/shortcuts/ehr/operations/shared.js +51 -0
- package/dist/shortcuts/esb/index.js +1 -1
- package/dist/shortcuts/fna/index.js +1 -1
- package/dist/shortcuts/fna/manifest.js +1 -0
- package/dist/shortcuts/fna/operations/expense-chart.js +3 -1
- package/dist/shortcuts/hrm/index.js +1 -1
- package/dist/shortcuts/invoice/index.js +1 -1
- package/dist/shortcuts/jiuchuanhui/index.js +2 -2
- package/dist/shortcuts/jiuchuanhui/manifest.js +3 -0
- package/dist/shortcuts/mail/index.js +2 -2
- package/dist/shortcuts/meeting/index.js +1 -1
- package/dist/shortcuts/meeting/manifest.js +1 -0
- package/dist/shortcuts/meeting/operations/eb/catalog.js +5 -3
- package/dist/shortcuts/meeting/operations/eb/conflict.js +3 -1
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +10 -9
- package/dist/shortcuts/meeting/operations/eb/factory.js +2 -0
- package/dist/shortcuts/meeting/operations/eb/member-expand.js +3 -2
- package/dist/shortcuts/meeting/operations/invitation-publish.js +3 -3
- package/dist/shortcuts/meeting/operations/invitation.js +4 -4
- package/dist/shortcuts/meeting/operations/link.js +3 -1
- package/dist/shortcuts/okr/index.js +1 -1
- package/dist/shortcuts/performance/index.js +1 -1
- package/dist/shortcuts/plan/index.js +1 -1
- package/dist/shortcuts/project/index.js +1 -1
- package/dist/shortcuts/reception/constants.js +22 -0
- package/dist/shortcuts/reception/index.js +4 -0
- package/dist/shortcuts/reception/manifest.js +16 -2
- package/dist/shortcuts/reception/operations/doc.js +24 -11
- package/dist/shortcuts/reception/operations/docrender.js +18 -1
- package/dist/shortcuts/reception/operations/render-assets.js +93 -22
- package/dist/shortcuts/recruit-stage/context.js +22 -8
- package/dist/shortcuts/recruit-stage/index.js +16 -3
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +20 -11
- package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +1 -1
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +467 -26
- package/dist/shortcuts/recruit-stage/operations/list.js +73 -2
- package/dist/shortcuts/recruit-stage/operations/profile.js +13 -5
- package/dist/shortcuts/recruit-stage/operations/registry.js +18 -2
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +363 -54
- package/dist/shortcuts/recruit-stage/operations/search.js +80 -16
- package/dist/shortcuts/recruit-stage/operations/shortlist.js +124 -0
- package/dist/shortcuts/recruit-stage/shared.js +174 -56
- package/dist/shortcuts/smart-extract/manifest.js +1 -0
- package/dist/shortcuts/smart-extract/operations/fill.js +7 -2
- package/dist/shortcuts/smart-extract/operations/validate.js +4 -1
- package/dist/shortcuts/workflow/index.js +2 -2
- package/dist/shortcuts/workflow/manifest.js +1 -0
- package/dist/shortcuts/workflow/operations/aiDeepRead/render.js +4 -1
- package/dist/shortcuts/workflow/operations/deepRead.js +23 -2
- package/dist/shortcuts/workflow/operations/form.js +44 -4
- package/docs/contract.md +6 -1
- package/docs/e10-auth.md +25 -7
- package/docs/operation-manual.md +15 -0
- package/package.json +2 -2
- package/scripts/pysite/__pycache__/sitecustomize.cpython-314.pyc +0 -0
- package/skill-template/business-info.json +28 -0
- package/skill-template/domains/jinchengda.md +13 -1
- package/skills/weaver-e10-archive-oa/references/source-manifest.json +3 -3
- package/skills/weaver-e10-caizhilian/references/auth-and-install.md +2 -1
- package/skills/weaver-e10-caizhilian/references/source-manifest.json +3 -3
- package/skills/weaver-e10-esb/references/source-manifest.json +3 -3
- package/skills/weaver-e10-jinchengda/SKILL.md +90 -32
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +45 -0
- package/skills/weaver-e10-jinchengda/references/contract-bizreview-report-template.html +68 -0
- package/skills/weaver-e10-jinchengda/references/contract-bizreview.md +216 -0
- package/skills/weaver-e10-jinchengda/references/contract-clause-negotiate.md +215 -0
- package/skills/weaver-e10-jinchengda/references/contract-collection-node.md +113 -0
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +19 -3
- package/skills/weaver-e10-jinchengda/references/contract-decisions.md +114 -0
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +53 -44
- package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-firstscreen-guide.md +200 -0
- package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +18 -1
- package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +138 -3
- package/skills/weaver-e10-jinchengda/references/contract-ledger-report.md +158 -0
- package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +3 -1
- package/skills/weaver-e10-jinchengda/references/contract-material-gap.md +139 -0
- package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +2 -2
- package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +10 -3
- package/skills/weaver-e10-jinchengda/references/contract-ops-draft.md +106 -0
- package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +176 -56
- package/skills/weaver-e10-jinchengda/references/contract-sign-launch.md +123 -0
- package/skills/weaver-e10-jinchengda/references/contract-smart-draft.md +410 -0
- package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-viewlink.md +110 -0
- package/skills/weaver-e10-jinchengda/references/orchestration.md +38 -24
- package/skills/weaver-e10-jucailin/SKILL.md +7 -3
- package/skills/weaver-e10-jucailin/references/recruit-output-links.md +33 -0
- package/skills/weaver-e10-jucailin/references/recruit-write.md +2 -0
- package/skills/weaver-e10-meeting/SKILL.md +13 -0
- package/skills/weaver-e10-okr/SKILL.md +11 -0
- package/skills/weaver-e10-okr/references/source-manifest.json +7 -6
- package/skills/weaver-e10-performance/SKILL.md +131 -39
- package/skills/weaver-e10-performance/agents/openai.yaml +48 -17
- package/skills/weaver-e10-performance/references/default-assembly.md +3 -0
- package/skills/weaver-e10-performance/references/extraction-guide.md +17 -3
- package/skills/weaver-e10-performance/references/flow-assess.md +38 -5
- package/skills/weaver-e10-performance/references/scheme-setting-page.md +20 -3
- package/skills/weaver-e10-performance/scripts/assemble_scheme.py +461 -0
- package/skills/weaver-e10-performance/scripts/parse_appraisal_doc.py +41 -0
- package/skills/weaver-e10-plan/SKILL.md +10 -0
- package/skills/weaver-e10-plan/references/source-manifest.json +13 -13
- package/skills/weaver-e10-qiyecheng/SKILL.md +2 -2
- package/skills/weaver-e10-qiyecheng/references/source-manifest.json +9 -9
- package/skills/weaver-e10-reception-flow/SKILL.md +97 -41
- package/skills/weaver-e10-reception-flow/references/guide.md +3 -1
- package/skills/weaver-e10-recruit-stage/SKILL.md +533 -137
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +103 -62
- package/skills/weaver-e10-recruit-stage/lib/interview-conflict.mjs +282 -0
- package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +331 -0
- package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +865 -0
- package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +162 -11
- package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +15 -1
- package/skills/weaver-e10-recruit-stage/lib/report-attachment.mjs +38 -0
- package/skills/weaver-e10-recruit-stage/lib/xiaoe-session.mjs +5 -1
- package/skills/weaver-e10-recruit-stage/references/env-fixed-values.md +6 -2
- package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +26 -21
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +33 -27
- package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +11 -7
- package/skills/weaver-e10-recruit-stage/references/recruit-check-install.md +5 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-detail-process.md +5 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +22 -5
- package/skills/weaver-e10-recruit-stage/references/recruit-failure-fallback.md +42 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +11 -7
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +87 -50
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-template.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +48 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-maint.md +45 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +17 -11
- package/skills/weaver-e10-recruit-stage/references/recruit-my-positions.md +8 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +162 -31
- package/skills/weaver-e10-recruit-stage/references/recruit-platform-compat.md +55 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +75 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-creator.md +4 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +12 -8
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +8 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +80 -46
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +11 -7
- package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +12 -8
- package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +10 -6
- package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +15 -11
- package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +7 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +7 -3
- package/skills/weaver-e10-recruit-stage/templates/candidate-evidence.html +119 -0
- package/skills/weaver-e10-recruit-stage/templates/interview-summary.html +322 -0
- package/skills/weaver-e10-recruit-stage/templates/match-report.html +166 -76
- package/skills/weaver-e10-shared/SKILL.md +40 -5
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +11 -1
- package/skills/weaver-e10-shared/references/json-output-contract.md +144 -8
- package/skills/weaver-e10-shared/references/weaver-e10-installation.md +11 -0
- package/skills/weaver-e10-shijingran/references/source-manifest.json +3 -3
- package/skills/weaver-e10-wenshuding/references/source-manifest.json +3 -3
- package/skills/weaver-e10-workflow/references/source-manifest.json +3 -3
- package/skills/weaver-e10-yepiaotong/references/source-manifest.json +5 -5
- package/dist/chunks/chunk-MZVQKQP5.js +0 -2849
- package/dist/chunks/registry-3GQRYP2R.js +0 -27
- package/skills/weaver-e10-jucailin/references/source-manifest.json +0 -152
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { mkdirSync, writeFileSync } from 'node:fs';
|
|
2
|
+
import { dirname } from 'node:path';
|
|
3
|
+
import { contractValidationError } from '../errors.js';
|
|
4
|
+
import { PAYMENT_STAGE_LEDGER, PROJECT_BOARD, buildPaymentStageFilter, buildProjectBoardFilter, normalizePaymentStageRow, normalizeProjectRow, summarize, } from '../data/collection-node-catalog.js';
|
|
5
|
+
import { renderCollectionLedger } from '../data/collection-ledger-html.js';
|
|
6
|
+
const EBLIST_PATH = '/api/ebuilder/form/eblist/getData';
|
|
7
|
+
const DEFAULT_CHUNK = 40;
|
|
8
|
+
const MAX_ROWS_RETURNED = 500;
|
|
9
|
+
function isRecord(value) {
|
|
10
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
11
|
+
}
|
|
12
|
+
/** 调 eblist/getData:multipart(form 传对象即自动走 FormData),带 ebbusinessid = pageId。 */
|
|
13
|
+
async function queryEblist(context, pageId, fields, timeoutMs = 60_000) {
|
|
14
|
+
const raw = await context.host.contractRequest({
|
|
15
|
+
method: 'POST',
|
|
16
|
+
path: EBLIST_PATH,
|
|
17
|
+
form: fields,
|
|
18
|
+
headers: { ebbusinessid: pageId, accept: 'application/json, text/plain, */*' },
|
|
19
|
+
timeoutMs,
|
|
20
|
+
});
|
|
21
|
+
const root = isRecord(raw) ? raw : {};
|
|
22
|
+
const data = isRecord(root.data) ? root.data : {};
|
|
23
|
+
return Array.isArray(data.list) ? data.list : [];
|
|
24
|
+
}
|
|
25
|
+
function positiveInt(value, fallback, max) {
|
|
26
|
+
const parsed = typeof value === 'number' ? value : Number(String(value ?? ''));
|
|
27
|
+
if (!Number.isFinite(parsed) || parsed <= 0)
|
|
28
|
+
return fallback;
|
|
29
|
+
return Math.min(Math.floor(parsed), max);
|
|
30
|
+
}
|
|
31
|
+
/** ① 项目看板过滤器字段(除 filter 外的固定表单字段)。 */
|
|
32
|
+
function projectBoardFields(filter, pageNo, pageSize) {
|
|
33
|
+
return {
|
|
34
|
+
cusMenuId: PROJECT_BOARD.cusMenuId,
|
|
35
|
+
urlPageTitle: PROJECT_BOARD.urlPageTitle,
|
|
36
|
+
[PROJECT_BOARD.appIdKey]: PROJECT_BOARD.pageAppId,
|
|
37
|
+
filter: JSON.stringify(filter),
|
|
38
|
+
fieldFilter: JSON.stringify({
|
|
39
|
+
cusMenuId: PROJECT_BOARD.cusMenuId,
|
|
40
|
+
urlPageTitle: PROJECT_BOARD.urlPageTitle,
|
|
41
|
+
[PROJECT_BOARD.appIdKey]: PROJECT_BOARD.pageAppId,
|
|
42
|
+
}),
|
|
43
|
+
pageFilter: JSON.stringify({ filter: {}, filterIsNull: true, esbFilter: [] }),
|
|
44
|
+
pageAppId: PROJECT_BOARD.pageAppId,
|
|
45
|
+
compId: PROJECT_BOARD.compId,
|
|
46
|
+
pageId: PROJECT_BOARD.pageId,
|
|
47
|
+
pageNo: String(pageNo),
|
|
48
|
+
pageSize: String(pageSize),
|
|
49
|
+
tableuid: PROJECT_BOARD.tableuid,
|
|
50
|
+
refPluginPackageId: PROJECT_BOARD.refPluginPackageId,
|
|
51
|
+
returnQueryDto: 'true',
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
/** ② 付款阶段台账字段。 */
|
|
55
|
+
function paymentStageFields(filter, pageNo, pageSize) {
|
|
56
|
+
return {
|
|
57
|
+
filter: JSON.stringify(filter),
|
|
58
|
+
fieldFilter: JSON.stringify({}),
|
|
59
|
+
pageFilter: JSON.stringify({ filter: {}, filterIsNull: true, esbFilter: [] }),
|
|
60
|
+
pageAppId: PAYMENT_STAGE_LEDGER.pageAppId,
|
|
61
|
+
compId: PAYMENT_STAGE_LEDGER.compId,
|
|
62
|
+
pageId: PAYMENT_STAGE_LEDGER.pageId,
|
|
63
|
+
pageNo: String(pageNo),
|
|
64
|
+
pageSize: String(pageSize),
|
|
65
|
+
tableuid: PAYMENT_STAGE_LEDGER.tableuid,
|
|
66
|
+
refPluginPackageId: PAYMENT_STAGE_LEDGER.refPluginPackageId,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* 按客户经理取项目(未结束状态),翻页到空页为止。
|
|
71
|
+
* `count` 字段实测不可信(恒为 0),因此**不能**用它算页数。
|
|
72
|
+
*/
|
|
73
|
+
export async function fetchProjects(context, options) {
|
|
74
|
+
const filter = buildProjectBoardFilter({
|
|
75
|
+
managerId: options.managerId,
|
|
76
|
+
...(options.projectName ? { projectName: options.projectName } : {}),
|
|
77
|
+
});
|
|
78
|
+
const projects = [];
|
|
79
|
+
const warnings = [];
|
|
80
|
+
let pages = 0;
|
|
81
|
+
for (let pageNo = 1; pageNo <= options.maxPages; pageNo += 1) {
|
|
82
|
+
const list = await queryEblist(context, PROJECT_BOARD.pageId, projectBoardFields(filter, pageNo, options.pageSize));
|
|
83
|
+
pages += 1;
|
|
84
|
+
if (list.length === 0)
|
|
85
|
+
break;
|
|
86
|
+
for (const row of list)
|
|
87
|
+
projects.push(normalizeProjectRow(row));
|
|
88
|
+
if (pageNo === options.maxPages) {
|
|
89
|
+
warnings.push(`项目列表已达 maxPages=${options.maxPages} 上限,可能仍有未取回的项目;请调大 maxPages。`);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
const deduped = [...new Map(projects.map((project) => [project.projectId, project])).values()];
|
|
93
|
+
return {
|
|
94
|
+
projects: deduped,
|
|
95
|
+
projectIds: deduped.map((project) => project.projectId).filter(Boolean),
|
|
96
|
+
pages,
|
|
97
|
+
warnings,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
/** 按项目 ID 批量取「到收款节点」的付款阶段;超出分块大小自动切片后合并去重。 */
|
|
101
|
+
export async function fetchPaymentStages(context, projectIds, options) {
|
|
102
|
+
const warnings = [];
|
|
103
|
+
const merged = new Map();
|
|
104
|
+
let queries = 0;
|
|
105
|
+
for (let index = 0; index < projectIds.length; index += options.chunkSize) {
|
|
106
|
+
const chunk = projectIds.slice(index, index + options.chunkSize);
|
|
107
|
+
const filter = buildPaymentStageFilter(chunk);
|
|
108
|
+
for (let pageNo = 1; pageNo <= options.maxPages; pageNo += 1) {
|
|
109
|
+
const list = await queryEblist(context, PAYMENT_STAGE_LEDGER.pageId, paymentStageFields(filter, pageNo, options.pageSize));
|
|
110
|
+
queries += 1;
|
|
111
|
+
if (list.length === 0)
|
|
112
|
+
break;
|
|
113
|
+
for (const row of list) {
|
|
114
|
+
const normalized = normalizePaymentStageRow(row, options.today);
|
|
115
|
+
const key = normalized.rowId || `${normalized.contractNo}|${normalized.planReceiveDate}|${normalized.term}`;
|
|
116
|
+
if (!merged.has(key))
|
|
117
|
+
merged.set(key, normalized);
|
|
118
|
+
}
|
|
119
|
+
if (pageNo === options.maxPages) {
|
|
120
|
+
warnings.push(`付款阶段台账(项目分块 ${index + 1}~${index + chunk.length})已达 maxPages=${options.maxPages} 上限,可能仍有未取回的条款。`);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return { rows: [...merged.values()], warnings, queries };
|
|
125
|
+
}
|
|
126
|
+
export const contractCollectionNodeOperations = [
|
|
127
|
+
{
|
|
128
|
+
name: 'contract.project.list',
|
|
129
|
+
async execute(input, context) {
|
|
130
|
+
const managerId = String(input.managerId ?? '').trim();
|
|
131
|
+
if (!/^\d{6,32}$/u.test(managerId)) {
|
|
132
|
+
throw contractValidationError('manager_id_invalid', 'managerId 必须是人员 ID(im.person.resolve 的 uid):项目侧没有销售经理字段,只有客户经理,且人员字段传姓名会被忽略');
|
|
133
|
+
}
|
|
134
|
+
const result = await fetchProjects(context, {
|
|
135
|
+
managerId,
|
|
136
|
+
managerName: typeof input.managerName === 'string' ? input.managerName : undefined,
|
|
137
|
+
projectName: typeof input.projectName === 'string' ? input.projectName : undefined,
|
|
138
|
+
pageSize: positiveInt(input.pageSize, 20, 20),
|
|
139
|
+
maxPages: positiveInt(input.maxPages, 20, 100),
|
|
140
|
+
});
|
|
141
|
+
return {
|
|
142
|
+
status: 'COMPLETE',
|
|
143
|
+
data: {
|
|
144
|
+
manager: { id: managerId, name: typeof input.managerName === 'string' ? input.managerName : null },
|
|
145
|
+
projectCount: result.projects.length,
|
|
146
|
+
projectIds: result.projectIds,
|
|
147
|
+
projects: result.projects,
|
|
148
|
+
pages: result.pages,
|
|
149
|
+
warnings: result.warnings,
|
|
150
|
+
note: '项目看板页面 `count` 字段不可信(实测恒为 0),页数按翻到空页判断;项目侧无销售经理字段,按客户经理查。',
|
|
151
|
+
},
|
|
152
|
+
};
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: 'contract.collection.node',
|
|
157
|
+
async execute(input, context) {
|
|
158
|
+
const chunkSize = positiveInt(input.chunkSize, DEFAULT_CHUNK, 200);
|
|
159
|
+
const pageSize = positiveInt(input.pageSize, 50, 200);
|
|
160
|
+
const maxPages = positiveInt(input.maxPages, 20, 100);
|
|
161
|
+
const generatedAt = input.now ? new Date(String(input.now)) : new Date();
|
|
162
|
+
const today = new Date(generatedAt.getFullYear(), generatedAt.getMonth(), generatedAt.getDate());
|
|
163
|
+
const warnings = [];
|
|
164
|
+
let projectIds = Array.isArray(input.projectIds)
|
|
165
|
+
? input.projectIds.map((item) => String(item).trim()).filter(Boolean)
|
|
166
|
+
: [];
|
|
167
|
+
let projectCount = projectIds.length;
|
|
168
|
+
let managerName = typeof input.managerName === 'string' ? input.managerName : '';
|
|
169
|
+
const managerId = typeof input.managerId === 'string' ? input.managerId.trim() : '';
|
|
170
|
+
if (projectIds.length === 0) {
|
|
171
|
+
if (!/^\d{6,32}$/u.test(managerId)) {
|
|
172
|
+
throw contractValidationError('manager_or_projects_required', '必须给 managerId(人员 uid)自动取项目,或直接给 projectIds;项目侧没有销售经理字段,只有客户经理');
|
|
173
|
+
}
|
|
174
|
+
const projects = await fetchProjects(context, {
|
|
175
|
+
managerId,
|
|
176
|
+
projectName: typeof input.projectName === 'string' ? input.projectName : undefined,
|
|
177
|
+
pageSize: 20,
|
|
178
|
+
maxPages: positiveInt(input.projectMaxPages, 20, 100),
|
|
179
|
+
});
|
|
180
|
+
projectIds = projects.projectIds;
|
|
181
|
+
projectCount = projects.projects.length;
|
|
182
|
+
warnings.push(...projects.warnings);
|
|
183
|
+
}
|
|
184
|
+
if (projectIds.length === 0) {
|
|
185
|
+
warnings.push('未取到任何项目,收款节点台账为空(请确认客户经理姓名/人员 ID 是否正确)。');
|
|
186
|
+
}
|
|
187
|
+
const stages = projectIds.length
|
|
188
|
+
? await fetchPaymentStages(context, projectIds, { chunkSize, pageSize, maxPages, today })
|
|
189
|
+
: { rows: [], warnings: [], queries: 0 };
|
|
190
|
+
warnings.push(...stages.warnings);
|
|
191
|
+
const rows = stages.rows;
|
|
192
|
+
const totals = summarize(rows);
|
|
193
|
+
const returned = rows.length > MAX_ROWS_RETURNED
|
|
194
|
+
? rows.slice(0, MAX_ROWS_RETURNED)
|
|
195
|
+
: rows;
|
|
196
|
+
if (rows.length > MAX_ROWS_RETURNED) {
|
|
197
|
+
warnings.push(`命中 ${rows.length} 条,响应只回传前 ${MAX_ROWS_RETURNED} 条;完整清单见 out 落盘的台账 HTML。`);
|
|
198
|
+
}
|
|
199
|
+
let out = null;
|
|
200
|
+
if (typeof input.out === 'string' && input.out) {
|
|
201
|
+
out = input.out;
|
|
202
|
+
const html = renderCollectionLedger(rows, totals, {
|
|
203
|
+
title: typeof input.title === 'string' ? input.title : undefined,
|
|
204
|
+
managerName: managerName || undefined,
|
|
205
|
+
projectCount,
|
|
206
|
+
generatedAt,
|
|
207
|
+
warnings,
|
|
208
|
+
});
|
|
209
|
+
mkdirSync(dirname(out), { recursive: true });
|
|
210
|
+
writeFileSync(out, html, 'utf8');
|
|
211
|
+
}
|
|
212
|
+
return {
|
|
213
|
+
status: 'COMPLETE',
|
|
214
|
+
data: {
|
|
215
|
+
manager: { id: managerId || null, name: managerName || null },
|
|
216
|
+
projectCount,
|
|
217
|
+
projectIds,
|
|
218
|
+
totals,
|
|
219
|
+
rows: returned,
|
|
220
|
+
queries: stages.queries,
|
|
221
|
+
chunks: Math.ceil(projectIds.length / chunkSize),
|
|
222
|
+
...(out ? { out } : {}),
|
|
223
|
+
warnings,
|
|
224
|
+
note: '台账只返回「条件已达成且未收清」的付款阶段(已收清的付款阶段不会出现);金额单位:元;逾期天数 = 今天 − 计划收款日(本地计算)。',
|
|
225
|
+
},
|
|
226
|
+
};
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
];
|