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,205 @@
|
|
|
1
|
+
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
|
+
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
RefError,
|
|
5
|
+
pruneRefs,
|
|
6
|
+
refMaxBytes,
|
|
7
|
+
refMaxCount,
|
|
8
|
+
resolveRefInput
|
|
9
|
+
} from "./chunk-JJONWB5N.js";
|
|
10
|
+
import {
|
|
11
|
+
emitUpdateNotice,
|
|
12
|
+
withUpdateNotice
|
|
13
|
+
} from "./chunk-257JXJGD.js";
|
|
14
|
+
import {
|
|
15
|
+
shouldReportPlatformError,
|
|
16
|
+
toPlatformError
|
|
17
|
+
} from "./chunk-MD5CW4B6.js";
|
|
18
|
+
import {
|
|
19
|
+
CliError,
|
|
20
|
+
isCliError,
|
|
21
|
+
toErrorEnvelope
|
|
22
|
+
} from "./chunk-UG5G54VL.js";
|
|
23
|
+
|
|
24
|
+
// src/core/input.ts
|
|
25
|
+
var FileInputPolicyError = class extends CliError {
|
|
26
|
+
type = "policy";
|
|
27
|
+
subtype = "file_input_denied";
|
|
28
|
+
retryable = false;
|
|
29
|
+
constructor() {
|
|
30
|
+
super(
|
|
31
|
+
"\u4E0D\u5141\u8BB8\u901A\u8FC7 --input <path> \u8BFB\u53D6 JSON \u6587\u4EF6\u3002\u8BF7\u6539\u7528 --input-json\u3001--input -\uFF0C\u6216\u7528 --input-ref \u4F20\u9012\u4E0A\u4E00\u6B65\u7684\u7ED3\u679C\u3002",
|
|
32
|
+
6 /* PolicyError */
|
|
33
|
+
);
|
|
34
|
+
this.name = "FileInputPolicyError";
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
function configuredPolicy(ctx) {
|
|
38
|
+
const io = ctx.config.get("io");
|
|
39
|
+
if (io && typeof io === "object" && !Array.isArray(io) && "fileInput" in io) {
|
|
40
|
+
return io.fileInput;
|
|
41
|
+
}
|
|
42
|
+
return ctx.config.get("io.fileInput");
|
|
43
|
+
}
|
|
44
|
+
function resolveFileInputPolicy(ctx, options) {
|
|
45
|
+
const allow = options.allowFileInput === true;
|
|
46
|
+
const deny = options.fileInput === false;
|
|
47
|
+
if (allow && deny) {
|
|
48
|
+
throw new CliError("\u4E0D\u80FD\u540C\u65F6\u4F20 --allow-file-input \u548C --no-file-input", 2 /* UsageError */);
|
|
49
|
+
}
|
|
50
|
+
if (allow) return "allow";
|
|
51
|
+
if (deny) return "deny";
|
|
52
|
+
const fromEnv = (ctx.env.WEAVER_WORK_CLI_FILE_INPUT ?? "").trim().toLowerCase();
|
|
53
|
+
if (fromEnv === "allow" || fromEnv === "warn" || fromEnv === "deny") return fromEnv;
|
|
54
|
+
const fromConfig = configuredPolicy(ctx);
|
|
55
|
+
if (fromConfig === "allow" || fromConfig === "warn" || fromConfig === "deny") return fromConfig;
|
|
56
|
+
return "warn";
|
|
57
|
+
}
|
|
58
|
+
function guardFileInput(ctx, options) {
|
|
59
|
+
const input = options.input;
|
|
60
|
+
if (input === void 0 || input === null || String(input).trim() === "" || input === "-") return;
|
|
61
|
+
const policy = resolveFileInputPolicy(ctx, options);
|
|
62
|
+
if (policy === "allow") return;
|
|
63
|
+
if (policy === "deny") throw new FileInputPolicyError();
|
|
64
|
+
process.stderr.write(
|
|
65
|
+
"[weaver-work-cli] \u4F7F\u7528 --input <path> \u8BFB\u53D6 JSON \u6587\u4EF6\uFF1B\u591A\u6B65\u4F20\u9012\u8BF7\u4F18\u5148\u7528 --input-ref\uFF0C\u7B80\u5355\u6570\u636E\u8BF7\u7528 --input-json\u3002\n"
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// src/cmd/action.ts
|
|
70
|
+
function commandFromArgs(args) {
|
|
71
|
+
const last = args[args.length - 1];
|
|
72
|
+
return last && typeof last === "object" && "name" in last && "opts" in last ? last : void 0;
|
|
73
|
+
}
|
|
74
|
+
function optionsHolderFrom(args) {
|
|
75
|
+
return args.find((arg) => Boolean(
|
|
76
|
+
arg && typeof arg === "object" && !Array.isArray(arg) && !("opts" in arg) && ("inputRef" in arg || "pick" in arg || "pickAs" in arg || "allowFileInput" in arg || "fileInput" in arg)
|
|
77
|
+
));
|
|
78
|
+
}
|
|
79
|
+
function applyRefInput(ctx, args) {
|
|
80
|
+
const holder = optionsHolderFrom(args);
|
|
81
|
+
if (!holder) return;
|
|
82
|
+
const refId = String(holder.inputRef ?? "").trim();
|
|
83
|
+
if (!refId) {
|
|
84
|
+
if (holder.pick || holder.pickAs) {
|
|
85
|
+
throw new RefError("input_ref_required", "--pick \u548C --pick-as \u5FC5\u987B\u4E0E --input-ref \u4E00\u8D77\u4F7F\u7528");
|
|
86
|
+
}
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
if (holder.inputJson !== void 0 || holder.input !== void 0) {
|
|
90
|
+
throw new RefError("input_conflict", "\u4E0D\u80FD\u540C\u65F6\u4F20 --input-ref \u4E0E --input/--input-json");
|
|
91
|
+
}
|
|
92
|
+
const pick = holder.pick === void 0 || holder.pick === null || holder.pick === "" ? void 0 : String(holder.pick);
|
|
93
|
+
const pickAs = holder.pickAs === void 0 || holder.pickAs === null || holder.pickAs === "" ? void 0 : String(holder.pickAs);
|
|
94
|
+
holder.inputJson = JSON.stringify(resolveRefInput(ctx, {
|
|
95
|
+
refId,
|
|
96
|
+
...pick ? { pick } : {},
|
|
97
|
+
...pickAs ? { pickAs } : {}
|
|
98
|
+
}));
|
|
99
|
+
delete holder.inputRef;
|
|
100
|
+
delete holder.pick;
|
|
101
|
+
delete holder.pickAs;
|
|
102
|
+
}
|
|
103
|
+
function cleanupRefs(ctx) {
|
|
104
|
+
try {
|
|
105
|
+
pruneRefs(ctx, { maxCount: refMaxCount(ctx), maxBytes: refMaxBytes(ctx) });
|
|
106
|
+
} catch {
|
|
107
|
+
process.stderr.write("[weaver-work-cli] \u6682\u5B58\u7ED3\u679C\u6E05\u7406\u5931\u8D25\uFF1B\u672C\u6B21\u547D\u4EE4\u7EE7\u7EED\u6267\u884C\u3002\n");
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function isRefsShow(command) {
|
|
111
|
+
const names = [];
|
|
112
|
+
let current = command;
|
|
113
|
+
while (current) {
|
|
114
|
+
const name = current.name();
|
|
115
|
+
if (name) names.unshift(name);
|
|
116
|
+
current = current.parent;
|
|
117
|
+
}
|
|
118
|
+
return names.slice(-2).join(" ") === "refs show";
|
|
119
|
+
}
|
|
120
|
+
function createAction(ctx) {
|
|
121
|
+
return (handler) => async (...args) => {
|
|
122
|
+
const commandCtx = ctx.forCommand(commandFromArgs(args));
|
|
123
|
+
try {
|
|
124
|
+
await commandCtx.hooks.beforeCommand(commandCtx);
|
|
125
|
+
applyRefInput(commandCtx, args);
|
|
126
|
+
const options = commandCtx.activeCommand?.opts();
|
|
127
|
+
if (options) guardFileInput(commandCtx, options);
|
|
128
|
+
if (!isRefsShow(commandCtx.activeCommand)) cleanupRefs(commandCtx);
|
|
129
|
+
const result = await handler(commandCtx, ...args);
|
|
130
|
+
await commandCtx.hooks.afterCommand(commandCtx, result);
|
|
131
|
+
} catch (error) {
|
|
132
|
+
await commandCtx.hooks.onError(commandCtx, error);
|
|
133
|
+
if (commandCtx.getGlobalOptions().json) {
|
|
134
|
+
const env = { schemaVersion: 1, ok: false, error: toErrorEnvelope(error) };
|
|
135
|
+
if (shouldReportPlatformError(error)) {
|
|
136
|
+
const pe = toPlatformError(error);
|
|
137
|
+
env.code = pe.code;
|
|
138
|
+
env.message = pe.message;
|
|
139
|
+
}
|
|
140
|
+
console.error(JSON.stringify(withUpdateNotice(env), null, 2));
|
|
141
|
+
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
emitUpdateNotice();
|
|
145
|
+
if (shouldReportPlatformError(error)) {
|
|
146
|
+
process.stderr.write(JSON.stringify(toPlatformError(error)) + "\n");
|
|
147
|
+
}
|
|
148
|
+
if (isCliError(error)) {
|
|
149
|
+
commandCtx.logger.error(error.message);
|
|
150
|
+
process.exitCode = error.exitCode;
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
154
|
+
commandCtx.logger.error(message);
|
|
155
|
+
process.exitCode = 1 /* GeneralError */;
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// src/cmd/register.ts
|
|
161
|
+
var IO_CHANNEL_OPTIONS = [
|
|
162
|
+
{ flags: "--input-ref <ref>", description: "consume a persisted large result reference" },
|
|
163
|
+
{ flags: "--pick <path>", description: "pick a sub path from --input-ref, e.g. items[0].fid" },
|
|
164
|
+
{ flags: "--pick-as <field>", description: "map a scalar picked value to this input field, e.g. fid" },
|
|
165
|
+
{ flags: "--allow-file-input", description: "allow reading JSON input from --input <path>" },
|
|
166
|
+
{ flags: "--no-file-input", description: "reject JSON input from --input <path>" }
|
|
167
|
+
];
|
|
168
|
+
function ensureRefInputOptions(command) {
|
|
169
|
+
if (command.commands.length === 0) {
|
|
170
|
+
for (const option of IO_CHANNEL_OPTIONS) {
|
|
171
|
+
const long = option.flags.split(" ")[0];
|
|
172
|
+
if (!command.options.some((existing) => existing.long === long)) {
|
|
173
|
+
command.option(option.flags, option.description);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
for (const child of command.commands) {
|
|
179
|
+
ensureRefInputOptions(child);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
async function registerCommands(program, ctx, commands) {
|
|
183
|
+
ctx.commands = commands.map((command) => ({
|
|
184
|
+
name: command.name,
|
|
185
|
+
description: command.description,
|
|
186
|
+
category: command.category
|
|
187
|
+
}));
|
|
188
|
+
ctx.modules = ctx.commands;
|
|
189
|
+
for (const command of commands) {
|
|
190
|
+
if (command.hooks) {
|
|
191
|
+
ctx.hooks.register(command.hooks);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
const action = createAction(ctx);
|
|
195
|
+
for (const command of commands) {
|
|
196
|
+
await command.register({ program, ctx, action });
|
|
197
|
+
}
|
|
198
|
+
ensureRefInputOptions(program);
|
|
199
|
+
}
|
|
200
|
+
var registerModules = registerCommands;
|
|
201
|
+
|
|
202
|
+
export {
|
|
203
|
+
registerCommands,
|
|
204
|
+
registerModules
|
|
205
|
+
};
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
} from "./chunk-WMRNO6IU.js";
|
|
6
6
|
import {
|
|
7
7
|
meetingStateDir
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-I6NOHKEK.js";
|
|
9
9
|
import {
|
|
10
10
|
SCHEMA_ID,
|
|
11
11
|
meetingSuccess,
|
|
12
12
|
meetingValidationError,
|
|
13
13
|
schemaOf
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ERZY6GYL.js";
|
|
15
15
|
|
|
16
16
|
// src/shortcuts/meeting/operations/attachment-content.ts
|
|
17
17
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
@@ -15,16 +15,20 @@ import {
|
|
|
15
15
|
getE10AuthRoot,
|
|
16
16
|
hasXiaoEEnv,
|
|
17
17
|
isTlsTrustErrorCode,
|
|
18
|
-
isXiaoERuntimeAgent,
|
|
19
18
|
lastXiaoEFailure,
|
|
20
19
|
looksLikeTlsTrustMessage,
|
|
21
20
|
readErrorCauseCode,
|
|
22
21
|
readProfileConfig,
|
|
22
|
+
resolveActiveProfileForHost,
|
|
23
|
+
resolveSessionHostKey,
|
|
23
24
|
resolveXiaoEPreferredBaseUrl,
|
|
24
25
|
summarizeE10TlsPolicy,
|
|
25
26
|
summarizeXiaoEFailureKind,
|
|
26
27
|
tryXiaoEUnifiedLogin
|
|
27
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-QVKRNL7L.js";
|
|
29
|
+
import {
|
|
30
|
+
isXiaoERuntimeAgent
|
|
31
|
+
} from "./chunk-7DE3VMZD.js";
|
|
28
32
|
import {
|
|
29
33
|
CliError,
|
|
30
34
|
toErrorEnvelope
|
|
@@ -469,6 +473,7 @@ function globalOptions(ctx) {
|
|
|
469
473
|
function canAutomaticallyRecoverXiaoE(ctx, currentSession) {
|
|
470
474
|
const options = globalOptions(ctx);
|
|
471
475
|
if (options.auth) return false;
|
|
476
|
+
if (resolveSessionHostKey(ctx.env || process.env, options) === "workbuddy") return false;
|
|
472
477
|
return hasXiaoEEnv(ctx.env || process.env, options) || currentSession?.loginSource === "xiaoe-unified" || isXiaoERuntimeAgent(currentSession?.agentType);
|
|
473
478
|
}
|
|
474
479
|
function recoveryLogger(ctx) {
|
|
@@ -497,14 +502,17 @@ async function recoverXiaoEAuthSessionWithDiagnostics(ctx, currentSession) {
|
|
|
497
502
|
});
|
|
498
503
|
if (!canAutomaticallyRecoverXiaoE(ctx, currentSession)) return emptyOutcome();
|
|
499
504
|
const options = globalOptions(ctx);
|
|
500
|
-
const
|
|
505
|
+
const hostKey = resolveSessionHostKey(ctx.env || process.env, options);
|
|
506
|
+
const profile = options.profile || resolveActiveProfileForHost(ctx.env, options);
|
|
501
507
|
const config = readProfileConfig(profile);
|
|
502
508
|
const baseUrl = resolveXiaoEPreferredBaseUrl({
|
|
503
509
|
explicitBaseUrl: currentSession?.getBaseUrl() || options.baseUrl,
|
|
504
510
|
profileBaseUrl: config.baseUrl,
|
|
505
511
|
env: ctx.env
|
|
506
512
|
});
|
|
507
|
-
const key = `${
|
|
513
|
+
const key = `${getE10AuthRoot()}
|
|
514
|
+
${hostKey}
|
|
515
|
+
${profile}
|
|
508
516
|
${baseUrl}`;
|
|
509
517
|
const existing = recoveryInFlight.get(key);
|
|
510
518
|
if (existing) return existing;
|
|
@@ -518,7 +526,8 @@ ${baseUrl}`;
|
|
|
518
526
|
allowBundledEnvScript: true,
|
|
519
527
|
allowTokenScript: true,
|
|
520
528
|
tenantKeyFallback: currentSession?.tenantKey || config.tenantKey,
|
|
521
|
-
profileHint: profile,
|
|
529
|
+
profileHint: options.profile || (hostKey === "xiaoe" && !currentSession ? void 0 : profile),
|
|
530
|
+
hostKey: "xiaoe",
|
|
522
531
|
diagnostics,
|
|
523
532
|
logger: recoveryLogger(ctx)
|
|
524
533
|
});
|
|
@@ -551,6 +560,36 @@ ${baseUrl}`;
|
|
|
551
560
|
if (recoveryInFlight.get(key) === recovery) recoveryInFlight.delete(key);
|
|
552
561
|
}
|
|
553
562
|
}
|
|
563
|
+
var workBuddyLoginInFlight = /* @__PURE__ */ new Map();
|
|
564
|
+
async function recoverWorkBuddyAuthSession(ctx, login = async (context, options) => {
|
|
565
|
+
const { runBrowserLogin } = await import("./commands-BNWFNTD3.js");
|
|
566
|
+
const previousMachineMode = context.logger.machineMode;
|
|
567
|
+
context.logger.machineMode = true;
|
|
568
|
+
try {
|
|
569
|
+
return await runBrowserLogin(context, options, { machine: true });
|
|
570
|
+
} finally {
|
|
571
|
+
context.logger.machineMode = previousMachineMode;
|
|
572
|
+
}
|
|
573
|
+
}) {
|
|
574
|
+
const options = globalOptions(ctx);
|
|
575
|
+
if (options.auth || resolveSessionHostKey(ctx.env || process.env, options) !== "workbuddy") return null;
|
|
576
|
+
const profile = options.profile || resolveActiveProfileForHost(ctx.env, options);
|
|
577
|
+
const key = `${getE10AuthRoot()}
|
|
578
|
+
${profile}
|
|
579
|
+
${options.baseUrl || ""}`;
|
|
580
|
+
const existing = workBuddyLoginInFlight.get(key);
|
|
581
|
+
if (existing) return existing;
|
|
582
|
+
const recovery = (async () => {
|
|
583
|
+
await login(ctx, { agentType: "workbuddy" });
|
|
584
|
+
return E10AuthSession.fromOptions(options, ctx.cwd, { skipProfileEnrichment: true }, ctx.env);
|
|
585
|
+
})();
|
|
586
|
+
workBuddyLoginInFlight.set(key, recovery);
|
|
587
|
+
try {
|
|
588
|
+
return await recovery;
|
|
589
|
+
} finally {
|
|
590
|
+
if (workBuddyLoginInFlight.get(key) === recovery) workBuddyLoginInFlight.delete(key);
|
|
591
|
+
}
|
|
592
|
+
}
|
|
554
593
|
function sameE10SessionIdentity(current, recovered) {
|
|
555
594
|
const currentBaseUrl = current.getBaseUrl().replace(/\/+$/u, "").toLowerCase();
|
|
556
595
|
const recoveredBaseUrl = recovered.getBaseUrl().replace(/\/+$/u, "").toLowerCase();
|
|
@@ -612,7 +651,7 @@ function xiaoERecoveryFailedError(diagnostics, resultSessionExpired = false, env
|
|
|
612
651
|
}
|
|
613
652
|
async function getE10Session(ctx, load = {}) {
|
|
614
653
|
const options = ctx.getGlobalOptions();
|
|
615
|
-
return E10AuthSession.fromOptions(options, ctx.cwd, load);
|
|
654
|
+
return E10AuthSession.fromOptions(options, ctx.cwd, load, ctx.env);
|
|
616
655
|
}
|
|
617
656
|
async function requireE10Session(ctx, load = {}) {
|
|
618
657
|
const options = ctx.getGlobalOptions();
|
|
@@ -644,6 +683,9 @@ async function requireE10Session(ctx, load = {}) {
|
|
|
644
683
|
throw xiaoERecoveryFailedError(outcome?.diagnostics, false, ctx.env);
|
|
645
684
|
}
|
|
646
685
|
}
|
|
686
|
+
if (!session) {
|
|
687
|
+
session = await recoverWorkBuddyAuthSession(ctx);
|
|
688
|
+
}
|
|
647
689
|
if (!session) {
|
|
648
690
|
throw new CliError(E10_AUTH_REQUIRED_MESSAGE, 3 /* AuthError */);
|
|
649
691
|
}
|
|
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
meetingStateDir
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-I6NOHKEK.js";
|
|
6
6
|
|
|
7
7
|
// src/shortcuts/meeting/operations/eb/cache.ts
|
|
8
8
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|