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
package/README.md
CHANGED
|
@@ -172,6 +172,39 @@ npm unlink -g weaver-work-cli
|
|
|
172
172
|
npm uninstall -g weaver-work-cli
|
|
173
173
|
```
|
|
174
174
|
|
|
175
|
+
## CLI 版本检查与更新
|
|
176
|
+
|
|
177
|
+
非 XiaoE 的 npm 全局安装在使用时触发版本检查:同一安装路径在 24 小时内最多自动检查一次。
|
|
178
|
+
其余调用只读本地缓存,不启动 npm、不联网;检查总超时最多约 3 秒,失败也冷却 24 小时且不阻断业务。
|
|
179
|
+
`--help`、`--version` 不触发检查。没有定时任务或常驻后台进程,CLI 不运行就不检查。
|
|
180
|
+
源码和 `npm link` 开发环境跳过自动检查;项目内安装不做全局覆盖升级,应由项目的包管理器维护。
|
|
181
|
+
XiaoE 使用宿主管理的版本,跳过 CLI 自行检查和更新;宿主需保留 `XIAOE_*` 标记或传入
|
|
182
|
+
`--runtime-agent xiaoe`。不要让宿主更新器与 CLI 自更新器同时管理同一安装路径。
|
|
183
|
+
|
|
184
|
+
发现新版时,业务仍然正常执行。对象形式的 JSON 结果会附加 `cliUpdate`;文本、原始输出或数组
|
|
185
|
+
通过 stderr 的 `[weaver-work-cli:update]` 返回提示,不改变原有 stdout 形态和业务退出码。
|
|
186
|
+
提示包含当前/最新版本、`hostAction: "ask_user"`、`confirmationToken` 和命令参数数组 `commands`。
|
|
187
|
+
Agent 应调用宿主自己的提问/确认工具:用户确认后执行 `commands.update`,选择稍后则执行
|
|
188
|
+
`commands.later`。纯 shell 的 CLI 无法直接调用宿主 ask,也不在 stdin 上等待交互。
|
|
189
|
+
同一版本的自动提醒最多每天一次,「稍后」延后 24 小时;发现另一新版可重新提示。
|
|
190
|
+
|
|
191
|
+
```text
|
|
192
|
+
weaver-work-cli update status
|
|
193
|
+
weaver-work-cli update check
|
|
194
|
+
weaver-work-cli update apply --confirm "<提示中的 confirmationToken>"
|
|
195
|
+
weaver-work-cli update defer --confirm "<提示中的 confirmationToken>"
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
`status` 只读取缓存;`check` 是显式的立即检查,会绕过自动检查与提醒的冷却。
|
|
199
|
+
`apply` 必须携带用户已确认提示中的 token,只安装确认的具体版本;npm 源或安装位置变化后需重新检查确认。
|
|
200
|
+
更新会等待其他业务进程退出(最长 30 秒),期间新进程需稍后重试;npm 安装超时为 120 秒。
|
|
201
|
+
更新原地覆盖,不保存历史运行时、不自动重跑业务、不使用 sudo;失败可能需要用原安装方式重新安装修复,
|
|
202
|
+
不提供自动回滚。CLI 更新不会自动刷新已经拷贝到各宿主目录的 Skill。
|
|
203
|
+
|
|
204
|
+
缓存和进程互斥文件按安装路径隔离,默认位于 `~/.weaver-work-cli/state/updates/<安装路径摘要>/`,
|
|
205
|
+
沿用 `WEAVER_WORK_CLI_HOME` / `WORK_CLI_HOME`。需要关闭检查(例如 CI 或固定版本环境)时设置
|
|
206
|
+
`WEAVER_WORK_CLI_UPDATE=off`;该设置也禁用 `update apply`。旧版用户需要先升级到包含本机制的版本。
|
|
207
|
+
|
|
175
208
|
## 常用命令
|
|
176
209
|
|
|
177
210
|
```text
|
|
@@ -233,7 +266,10 @@ E10 配置/映射 → 当前 profile → `https://www.e-cology.com.cn`”解析
|
|
|
233
266
|
|
|
234
267
|
业务命令缺少可读取的本地会话时,若当前环境已通过 `XIAOE_*`、`--runtime-agent xiaoe`
|
|
235
268
|
等运行时标记识别为 XiaoE,CLI 会先静默尝试统一登录,再继续原业务操作;失败时返回
|
|
236
|
-
`authentication/xiaoe_credential_unavailable
|
|
269
|
+
`authentication/xiaoe_credential_unavailable`,提示已尝试自动获取。WorkBuddy 缺少匹配会话时
|
|
270
|
+
自动发起渠道为 `workbuddy` 的浏览器 OAuth,授权完成后继续原操作;其他宿主首次认证仍需显式选择登录方式。
|
|
271
|
+
WorkBuddy 与 XiaoE 分别保存登录态,只接受归属当前宿主的 `agentType`,即使域名相同也不共用凭据;
|
|
272
|
+
宿主记录缺失或损坏时不借用全局 profile。`identity whoami` 也支持缺少会话时自动获取。
|
|
237
273
|
`auth status --no-check` 等本地状态查询不会触发登录。已有 XiaoE 会话达到 `expiryTimes` 时,CLI 会在业务请求发出前静默换取新会话;接口层明确判定失效(HTTP 401/302、业务码 `-2` 或登录页)时,
|
|
238
274
|
公共 E10 请求运行时会根据持久化会话的 `agentType` / `loginSource` 静默换取一次新会话并把被拒绝的请求重放一次;该恢复不依赖 shared Skill、Agent、`XIAOE_*` 或 `--runtime-agent xiaoe`。这个过程不向
|
|
239
275
|
stdout/stderr 输出中间“登录”步骤,并会合并同一 profile 的并发换票。流式请求、网络错误、
|
|
@@ -7,19 +7,19 @@ import {
|
|
|
7
7
|
MANIFEST_LIST_COMPACT_PATHS,
|
|
8
8
|
manifestView,
|
|
9
9
|
schemaOptionsOf
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import {
|
|
12
|
-
reportPlatformError
|
|
13
|
-
} from "./chunk-MD5CW4B6.js";
|
|
10
|
+
} from "./chunk-2QCCXPNU.js";
|
|
14
11
|
import {
|
|
15
12
|
CONTINUATION_TTL_MS
|
|
16
13
|
} from "./chunk-7BDPM5ST.js";
|
|
14
|
+
import {
|
|
15
|
+
reportPlatformError
|
|
16
|
+
} from "./chunk-MD5CW4B6.js";
|
|
17
17
|
import {
|
|
18
18
|
E10ApiError,
|
|
19
19
|
createE10RequestRuntime,
|
|
20
20
|
isE10SessionExpiredResponse,
|
|
21
21
|
requireE10Session
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MXCRKXOP.js";
|
|
23
23
|
import {
|
|
24
24
|
E10_SESSION_EXPIRED_MESSAGE
|
|
25
25
|
} from "./chunk-IZCQU5D5.js";
|
|
@@ -27,7 +27,10 @@ import {
|
|
|
27
27
|
getActiveProfile,
|
|
28
28
|
hasXiaoEEnv,
|
|
29
29
|
writeWithRetry
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-QVKRNL7L.js";
|
|
31
|
+
import "./chunk-Y3C6MDL7.js";
|
|
32
|
+
import "./chunk-7DE3VMZD.js";
|
|
33
|
+
import "./chunk-2BZ7TY4M.js";
|
|
31
34
|
import {
|
|
32
35
|
CliError,
|
|
33
36
|
isCliError,
|
|
@@ -1487,7 +1490,8 @@ var searchRun = {
|
|
|
1487
1490
|
resource: "search",
|
|
1488
1491
|
method: "run",
|
|
1489
1492
|
action: "archive.search.run",
|
|
1490
|
-
summary: "\u6309\u5173\u952E\u8BCD\u5168\u6587\u68C0\u7D22\u6863\u6848\uFF08\u53EF\u501F\u6863\u6848\u5217\u8868\uFF09\uFF0C\u652F\u6301\u5206\u9875\uFF1B\
|
|
1493
|
+
summary: "\u6309\u5173\u952E\u8BCD\u5168\u6587\u68C0\u7D22\u6863\u6848\uFF08\u53EF\u501F\u6863\u6848\u5217\u8868\uFF09\uFF0C\u652F\u6301\u5206\u9875\uFF1B\u7ED3\u679C\u884C\u5E26\u5C55\u793A\u5B57\u6BB5\u4E0E id/formId\uFF0C\u53EF\u76F4\u63A5\u52A0\u5165\u501F\u9605\u8F66\u6216\u53D1\u8D77\u501F\u9605\u3002",
|
|
1494
|
+
notes: "\u6BCF\u884C\u9664\u539F\u59CB\u5B57\u6BB5\u5916\u4F1A\u9644\u5E26 level/fonds/category/dateLabel/dateValue/viewPath \u5C55\u793A\u5B57\u6BB5\uFF1B\u7ED3\u679C\u884C\u7684 id \u4E0E formId \u7528\u4E8E\u52A0\u5165\u501F\u9605\u8F66\u3001\u53D1\u8D77\u501F\u9605\u6216\u62FC\u63A5 archiveView \u94FE\u63A5\u3002",
|
|
1491
1495
|
capability: "search",
|
|
1492
1496
|
risk: READ,
|
|
1493
1497
|
inputSchema: schemaOf(
|
|
@@ -3076,6 +3080,7 @@ var archiveOperations = archiveOperationDefinitions().map((definition) => ({
|
|
|
3076
3080
|
name: definition.name,
|
|
3077
3081
|
resource: definition.resource,
|
|
3078
3082
|
summary: definition.summary,
|
|
3083
|
+
...definition.notes ? { notes: definition.notes } : {},
|
|
3079
3084
|
...definition.capability ? { capability: definition.capability } : {},
|
|
3080
3085
|
risk: definition.risk,
|
|
3081
3086
|
...definition.requiresConfirmation ? { requiresConfirmation: true } : {},
|
|
@@ -3208,7 +3213,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
3208
3213
|
ctx.output.write(successEnvelope(result), { json: true });
|
|
3209
3214
|
} catch (error) {
|
|
3210
3215
|
reportPlatformError(error);
|
|
3211
|
-
|
|
3216
|
+
ctx.output.error(failureEnvelope(error));
|
|
3212
3217
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
3213
3218
|
}
|
|
3214
3219
|
}
|
|
@@ -3248,7 +3253,7 @@ async function executeSearchPrint(ctx, input, format, outputPath) {
|
|
|
3248
3253
|
ctx.output.raw(formatSearchText(rows, meta));
|
|
3249
3254
|
} catch (error) {
|
|
3250
3255
|
reportPlatformError(error);
|
|
3251
|
-
|
|
3256
|
+
ctx.output.error(failureEnvelope(error));
|
|
3252
3257
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
3253
3258
|
}
|
|
3254
3259
|
}
|
|
@@ -4,25 +4,28 @@ import {
|
|
|
4
4
|
MANIFEST_LIST_COMPACT_PATHS,
|
|
5
5
|
manifestView,
|
|
6
6
|
schemaOptionsOf
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
reportPlatformError
|
|
10
|
-
} from "./chunk-MD5CW4B6.js";
|
|
7
|
+
} from "./chunk-2QCCXPNU.js";
|
|
11
8
|
import {
|
|
12
9
|
CONTINUATION_TTL_MS
|
|
13
10
|
} from "./chunk-7BDPM5ST.js";
|
|
11
|
+
import {
|
|
12
|
+
reportPlatformError
|
|
13
|
+
} from "./chunk-MD5CW4B6.js";
|
|
14
14
|
import {
|
|
15
15
|
E10ApiError,
|
|
16
16
|
createE10RequestRuntime,
|
|
17
17
|
isE10SessionExpiredResponse,
|
|
18
18
|
requireE10Session
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-MXCRKXOP.js";
|
|
20
20
|
import {
|
|
21
21
|
E10_SESSION_EXPIRED_MESSAGE
|
|
22
22
|
} from "./chunk-IZCQU5D5.js";
|
|
23
23
|
import {
|
|
24
24
|
getActiveProfile
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-QVKRNL7L.js";
|
|
26
|
+
import "./chunk-Y3C6MDL7.js";
|
|
27
|
+
import "./chunk-7DE3VMZD.js";
|
|
28
|
+
import "./chunk-2BZ7TY4M.js";
|
|
26
29
|
import {
|
|
27
30
|
CliError,
|
|
28
31
|
isCliError,
|
|
@@ -1903,7 +1906,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
1903
1906
|
ctx.output.write(successEnvelope(result), { json: true });
|
|
1904
1907
|
} catch (error) {
|
|
1905
1908
|
reportPlatformError(error);
|
|
1906
|
-
|
|
1909
|
+
ctx.output.error(failureEnvelope(error));
|
|
1907
1910
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
1908
1911
|
}
|
|
1909
1912
|
}
|
|
@@ -4,24 +4,27 @@ import {
|
|
|
4
4
|
MANIFEST_LIST_COMPACT_PATHS,
|
|
5
5
|
manifestView,
|
|
6
6
|
schemaOptionsOf
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
reportPlatformError
|
|
10
|
-
} from "./chunk-MD5CW4B6.js";
|
|
7
|
+
} from "./chunk-2QCCXPNU.js";
|
|
11
8
|
import {
|
|
12
9
|
CONTINUATION_TTL_MS
|
|
13
10
|
} from "./chunk-7BDPM5ST.js";
|
|
11
|
+
import {
|
|
12
|
+
reportPlatformError
|
|
13
|
+
} from "./chunk-MD5CW4B6.js";
|
|
14
14
|
import {
|
|
15
15
|
createE10RequestRuntime,
|
|
16
16
|
isE10SessionExpiredResponse,
|
|
17
17
|
requireE10Session
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MXCRKXOP.js";
|
|
19
19
|
import {
|
|
20
20
|
E10_SESSION_EXPIRED_MESSAGE
|
|
21
21
|
} from "./chunk-IZCQU5D5.js";
|
|
22
22
|
import {
|
|
23
23
|
getActiveProfile
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QVKRNL7L.js";
|
|
25
|
+
import "./chunk-Y3C6MDL7.js";
|
|
26
|
+
import "./chunk-7DE3VMZD.js";
|
|
27
|
+
import "./chunk-2BZ7TY4M.js";
|
|
25
28
|
import {
|
|
26
29
|
CliError,
|
|
27
30
|
isCliError,
|
|
@@ -2048,7 +2051,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
2048
2051
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
2049
2052
|
} catch (error) {
|
|
2050
2053
|
reportPlatformError(error);
|
|
2051
|
-
|
|
2054
|
+
ctx.output.error(failureEnvelope(error));
|
|
2052
2055
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
2053
2056
|
}
|
|
2054
2057
|
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
MANIFEST_LIST_COMPACT_PATHS,
|
|
5
5
|
manifestView,
|
|
6
6
|
schemaOptionsOf
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2QCCXPNU.js";
|
|
8
8
|
import {
|
|
9
9
|
reportPlatformError
|
|
10
10
|
} from "./chunk-MD5CW4B6.js";
|
|
@@ -13,13 +13,16 @@ import {
|
|
|
13
13
|
createE10RequestRuntime,
|
|
14
14
|
isE10SessionExpiredResponse,
|
|
15
15
|
requireE10Session
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MXCRKXOP.js";
|
|
17
17
|
import {
|
|
18
18
|
E10_SESSION_EXPIRED_MESSAGE
|
|
19
19
|
} from "./chunk-IZCQU5D5.js";
|
|
20
20
|
import {
|
|
21
21
|
getActiveProfile
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QVKRNL7L.js";
|
|
23
|
+
import "./chunk-Y3C6MDL7.js";
|
|
24
|
+
import "./chunk-7DE3VMZD.js";
|
|
25
|
+
import "./chunk-2BZ7TY4M.js";
|
|
23
26
|
import {
|
|
24
27
|
CliError,
|
|
25
28
|
isCliError,
|
|
@@ -656,7 +659,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
656
659
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
657
660
|
} catch (error) {
|
|
658
661
|
reportPlatformError(error);
|
|
659
|
-
|
|
662
|
+
ctx.output.error(failureEnvelope(error));
|
|
660
663
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
661
664
|
}
|
|
662
665
|
}
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
looksLikeFileId,
|
|
9
9
|
meetingAttachmentContentOperations,
|
|
10
10
|
parseFileIdList
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KWJEICD4.js";
|
|
12
12
|
import "./chunk-WMRNO6IU.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-I6NOHKEK.js";
|
|
14
|
+
import "./chunk-ERZY6GYL.js";
|
|
15
15
|
import "./chunk-7BDPM5ST.js";
|
|
16
16
|
import "./chunk-UG5G54VL.js";
|
|
17
17
|
import "./chunk-BUSC6UAE.js";
|
|
@@ -4,24 +4,27 @@ import {
|
|
|
4
4
|
MANIFEST_LIST_COMPACT_PATHS,
|
|
5
5
|
manifestView,
|
|
6
6
|
schemaOptionsOf
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
reportPlatformError
|
|
10
|
-
} from "./chunk-MD5CW4B6.js";
|
|
7
|
+
} from "./chunk-2QCCXPNU.js";
|
|
11
8
|
import {
|
|
12
9
|
CONTINUATION_TTL_MS
|
|
13
10
|
} from "./chunk-7BDPM5ST.js";
|
|
11
|
+
import {
|
|
12
|
+
reportPlatformError
|
|
13
|
+
} from "./chunk-MD5CW4B6.js";
|
|
14
14
|
import {
|
|
15
15
|
createE10RequestRuntime,
|
|
16
16
|
isE10SessionExpiredResponse,
|
|
17
17
|
requireE10Session
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MXCRKXOP.js";
|
|
19
19
|
import {
|
|
20
20
|
E10_SESSION_EXPIRED_MESSAGE
|
|
21
21
|
} from "./chunk-IZCQU5D5.js";
|
|
22
22
|
import {
|
|
23
23
|
getActiveProfile
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QVKRNL7L.js";
|
|
25
|
+
import "./chunk-Y3C6MDL7.js";
|
|
26
|
+
import "./chunk-7DE3VMZD.js";
|
|
27
|
+
import "./chunk-2BZ7TY4M.js";
|
|
25
28
|
import {
|
|
26
29
|
CliError,
|
|
27
30
|
isCliError,
|
|
@@ -1992,7 +1995,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
1992
1995
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
1993
1996
|
} catch (error) {
|
|
1994
1997
|
reportPlatformError(error);
|
|
1995
|
-
|
|
1998
|
+
ctx.output.error(failureEnvelope(error));
|
|
1996
1999
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
1997
2000
|
}
|
|
1998
2001
|
}
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
caizhilianManifest,
|
|
5
5
|
caizhilianOperationDefinitions,
|
|
6
6
|
executeCaizhilianOperation
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LJI4N6FV.js";
|
|
8
8
|
import {
|
|
9
9
|
createCaizhilianHost
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5D2V7ZAN.js";
|
|
11
11
|
import {
|
|
12
12
|
createCaizhilianContinuationSigner
|
|
13
13
|
} from "./chunk-VRPH24IC.js";
|
|
@@ -18,14 +18,17 @@ import {
|
|
|
18
18
|
MANIFEST_LIST_COMPACT_PATHS,
|
|
19
19
|
manifestView,
|
|
20
20
|
schemaOptionsOf
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-2QCCXPNU.js";
|
|
22
|
+
import "./chunk-7BDPM5ST.js";
|
|
22
23
|
import {
|
|
23
24
|
reportPlatformError
|
|
24
25
|
} from "./chunk-MD5CW4B6.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-DRJYPXKC.js";
|
|
26
|
+
import "./chunk-MXCRKXOP.js";
|
|
27
27
|
import "./chunk-IZCQU5D5.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-QVKRNL7L.js";
|
|
29
|
+
import "./chunk-Y3C6MDL7.js";
|
|
30
|
+
import "./chunk-7DE3VMZD.js";
|
|
31
|
+
import "./chunk-2BZ7TY4M.js";
|
|
29
32
|
import {
|
|
30
33
|
isCliError,
|
|
31
34
|
toErrorEnvelope
|
|
@@ -110,7 +113,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
110
113
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
111
114
|
} catch (error) {
|
|
112
115
|
reportPlatformError(error);
|
|
113
|
-
|
|
116
|
+
ctx.output.error(failureEnvelope(error));
|
|
114
117
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
115
118
|
}
|
|
116
119
|
}
|
|
@@ -4,26 +4,29 @@ import {
|
|
|
4
4
|
MANIFEST_LIST_COMPACT_PATHS,
|
|
5
5
|
manifestView,
|
|
6
6
|
schemaOptionsOf
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
reportPlatformError
|
|
10
|
-
} from "./chunk-MD5CW4B6.js";
|
|
7
|
+
} from "./chunk-2QCCXPNU.js";
|
|
11
8
|
import {
|
|
12
9
|
CONTINUATION_TTL_MS,
|
|
13
10
|
CONTINUATION_TTL_SECONDS
|
|
14
11
|
} from "./chunk-7BDPM5ST.js";
|
|
12
|
+
import {
|
|
13
|
+
reportPlatformError
|
|
14
|
+
} from "./chunk-MD5CW4B6.js";
|
|
15
15
|
import {
|
|
16
16
|
E10ApiError,
|
|
17
17
|
createE10RequestRuntime,
|
|
18
18
|
isE10SessionExpiredResponse,
|
|
19
19
|
requireE10Session
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MXCRKXOP.js";
|
|
21
21
|
import {
|
|
22
22
|
E10_SESSION_EXPIRED_MESSAGE
|
|
23
23
|
} from "./chunk-IZCQU5D5.js";
|
|
24
24
|
import {
|
|
25
25
|
getActiveProfile
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-QVKRNL7L.js";
|
|
27
|
+
import "./chunk-Y3C6MDL7.js";
|
|
28
|
+
import "./chunk-7DE3VMZD.js";
|
|
29
|
+
import "./chunk-2BZ7TY4M.js";
|
|
27
30
|
import {
|
|
28
31
|
CliError,
|
|
29
32
|
isCliError,
|
|
@@ -1216,7 +1219,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
1216
1219
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
1217
1220
|
} catch (error) {
|
|
1218
1221
|
reportPlatformError(error);
|
|
1219
|
-
|
|
1222
|
+
ctx.output.error(failureEnvelope(error));
|
|
1220
1223
|
process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
|
|
1221
1224
|
}
|
|
1222
1225
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
|
+
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
|
|
4
|
+
// src/core/update-notice.ts
|
|
5
|
+
var notice;
|
|
6
|
+
var delivered = false;
|
|
7
|
+
function setUpdateNotice(value) {
|
|
8
|
+
notice = value;
|
|
9
|
+
delivered = false;
|
|
10
|
+
}
|
|
11
|
+
function withUpdateNotice(value) {
|
|
12
|
+
if (!notice) return value;
|
|
13
|
+
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
14
|
+
delivered = true;
|
|
15
|
+
return { ...value, cliUpdate: notice };
|
|
16
|
+
}
|
|
17
|
+
emitUpdateNotice();
|
|
18
|
+
return value;
|
|
19
|
+
}
|
|
20
|
+
function emitUpdateNotice() {
|
|
21
|
+
if (!notice || delivered) return;
|
|
22
|
+
delivered = true;
|
|
23
|
+
process.stderr.write("[weaver-work-cli:update] " + JSON.stringify(notice) + "\n");
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
setUpdateNotice,
|
|
28
|
+
withUpdateNotice,
|
|
29
|
+
emitUpdateNotice
|
|
30
|
+
};
|
|
@@ -2,12 +2,12 @@ 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
|
import {
|
|
7
7
|
meetingSuccess,
|
|
8
8
|
meetingValidationError,
|
|
9
9
|
schemaOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ERZY6GYL.js";
|
|
11
11
|
|
|
12
12
|
// src/shortcuts/meeting/operations/eb/group-chat.ts
|
|
13
13
|
import { mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises";
|
|
@@ -16,17 +16,17 @@ var DEFAULT_MEETING_GROUP_FLOW_ID = "1333212605456498718";
|
|
|
16
16
|
var GROUP_FIELD = "imchat_groupid";
|
|
17
17
|
var PENDING_DIR = "pending-forms";
|
|
18
18
|
async function buildEsbEnv(env) {
|
|
19
|
-
const { createEsbHost } = await import("./host-
|
|
19
|
+
const { createEsbHost } = await import("./host-KUMU3DDK.js");
|
|
20
20
|
const { createEsbContinuationSigner } = await import("./continuation-KI7DRRZN.js");
|
|
21
21
|
return { ctx: env.ctx, host: createEsbHost(env.ctx), continuation: createEsbContinuationSigner(env.ctx) };
|
|
22
22
|
}
|
|
23
23
|
async function buildImEnv(env) {
|
|
24
|
-
const { createImHost } = await import("./host-
|
|
24
|
+
const { createImHost } = await import("./host-J74JGYAW.js");
|
|
25
25
|
const { createImContinuationSigner } = await import("./continuation-3S37AUSH.js");
|
|
26
26
|
return { ctx: env.ctx, host: createImHost(env.ctx), continuation: createImContinuationSigner(env.ctx) };
|
|
27
27
|
}
|
|
28
28
|
async function buildWorkflowEnv(env) {
|
|
29
|
-
const { createWorkflowHost } = await import("./host-
|
|
29
|
+
const { createWorkflowHost } = await import("./host-MEC4VQZA.js");
|
|
30
30
|
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
31
31
|
return { ctx: env.ctx, host: createWorkflowHost(env.ctx), continuation: createWorkflowContinuationSigner(env.ctx) };
|
|
32
32
|
}
|
|
@@ -159,7 +159,7 @@ async function triggerGroupFlow(env, input, meetingName, memberIds) {
|
|
|
159
159
|
if (addressText === "[object Object]") addressText = "";
|
|
160
160
|
if (addressText) {
|
|
161
161
|
try {
|
|
162
|
-
const { resolveAddressRoom } = await import("./create-flow-
|
|
162
|
+
const { resolveAddressRoom } = await import("./create-flow-7ZRBRKX7.js");
|
|
163
163
|
const room = await resolveAddressRoom(env, addressText);
|
|
164
164
|
if (room?.name) addressText = room.name;
|
|
165
165
|
} catch {
|
|
@@ -168,7 +168,7 @@ async function triggerGroupFlow(env, input, meetingName, memberIds) {
|
|
|
168
168
|
if (addressText) mainTable.address = addressText;
|
|
169
169
|
}
|
|
170
170
|
try {
|
|
171
|
-
const { getEsbOperation } = await import("./registry-
|
|
171
|
+
const { getEsbOperation } = await import("./registry-TJGCVRCW.js");
|
|
172
172
|
const esbEnv = await buildEsbEnv(env);
|
|
173
173
|
const prepare = getEsbOperation("esb.trigger.prepare");
|
|
174
174
|
const apply = getEsbOperation("esb.trigger.apply");
|
|
@@ -201,7 +201,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
|
|
|
201
201
|
const group = String(groupId).trim();
|
|
202
202
|
if (id === "" || group === "") return { ok: false, error: "\u6CA1\u6709\u4F1A\u8BAE id \u6216\u7FA4 id" };
|
|
203
203
|
try {
|
|
204
|
-
const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-
|
|
204
|
+
const { EB_BASE, ebBusinessSuccess, writeBody } = await import("./factory-XRI6KZ7H.js");
|
|
205
205
|
const session = await env.host.getSession();
|
|
206
206
|
await env.host.request({
|
|
207
207
|
method: "POST",
|
|
@@ -219,7 +219,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
|
|
|
219
219
|
return { ok: false, error: String(error?.message ?? error).slice(0, 300) };
|
|
220
220
|
}
|
|
221
221
|
try {
|
|
222
|
-
const { getMeetingOperation } = await import("./registry-
|
|
222
|
+
const { getMeetingOperation } = await import("./registry-NBTBXR4L.js");
|
|
223
223
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
224
224
|
const read = await detail.handler({ id }, env);
|
|
225
225
|
const main = read?.data?.data ?? read?.data?.main ?? {};
|
|
@@ -235,7 +235,7 @@ async function bindGroupToMeeting(env, meetingId, groupId) {
|
|
|
235
235
|
}
|
|
236
236
|
async function searchMyRequests(env, options = {}) {
|
|
237
237
|
try {
|
|
238
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
238
|
+
const { getWorkflowOperation } = await import("./registry-F4YFZLOD.js");
|
|
239
239
|
const op = getWorkflowOperation("workflow.search");
|
|
240
240
|
const wfEnv = await buildWorkflowEnv(env);
|
|
241
241
|
const args = { category: "mine", pageSize: 20, sort: "createTime:desc" };
|
|
@@ -267,7 +267,7 @@ async function resolveMeetingByRequestId(env, requestId, sinceMs) {
|
|
|
267
267
|
const target = String(requestId).trim();
|
|
268
268
|
if (target === "") return null;
|
|
269
269
|
try {
|
|
270
|
-
const { getMeetingOperation } = await import("./registry-
|
|
270
|
+
const { getMeetingOperation } = await import("./registry-NBTBXR4L.js");
|
|
271
271
|
const list = getMeetingOperation("meeting.eb.meeting.list");
|
|
272
272
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
273
273
|
const page = await list.handler({ pageSize: 30 }, env);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
2
|
+
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
|
+
|
|
4
|
+
// src/core/package-paths.ts
|
|
5
|
+
import { existsSync, realpathSync } from "node:fs";
|
|
6
|
+
import { dirname, join, resolve } from "node:path";
|
|
7
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
8
|
+
var cachedRoot;
|
|
9
|
+
function entryDirectory(entry) {
|
|
10
|
+
const absoluteEntry = resolve(entry);
|
|
11
|
+
try {
|
|
12
|
+
return dirname(realpathSync(absoluteEntry));
|
|
13
|
+
} catch {
|
|
14
|
+
return dirname(absoluteEntry);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function packageRootDir() {
|
|
18
|
+
if (cachedRoot) return cachedRoot;
|
|
19
|
+
const seeds = [];
|
|
20
|
+
const entry = process.argv[1];
|
|
21
|
+
if (entry) seeds.push(entryDirectory(entry));
|
|
22
|
+
seeds.push(dirname(fileURLToPath(import.meta.url)));
|
|
23
|
+
for (const seed of seeds) {
|
|
24
|
+
let dir = seed;
|
|
25
|
+
for (let depth = 0; depth < 10; depth += 1) {
|
|
26
|
+
if (existsSync(join(dir, "package.json"))) {
|
|
27
|
+
cachedRoot = dir;
|
|
28
|
+
return dir;
|
|
29
|
+
}
|
|
30
|
+
const parent = dirname(dir);
|
|
31
|
+
if (parent === dir) break;
|
|
32
|
+
dir = parent;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
cachedRoot = process.cwd();
|
|
36
|
+
return cachedRoot;
|
|
37
|
+
}
|
|
38
|
+
function packagePath(...segments) {
|
|
39
|
+
return join(packageRootDir(), ...segments);
|
|
40
|
+
}
|
|
41
|
+
function packageFileUrl(...segments) {
|
|
42
|
+
return pathToFileURL(packagePath(...segments));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export {
|
|
46
|
+
packageRootDir,
|
|
47
|
+
packagePath,
|
|
48
|
+
packageFileUrl
|
|
49
|
+
};
|
|
@@ -57,7 +57,7 @@ function suggestionsOf(manifest, wanted) {
|
|
|
57
57
|
}
|
|
58
58
|
function schemaHintOf(manifest) {
|
|
59
59
|
const domain = domainOf(manifest) || "<domain>";
|
|
60
|
-
return `\u672C\u6E05\u5355\u53EA\u542B name/summary/risk\u3002\u53D6\u5355\u4E2A\u64CD\u4F5C\u7684\u5B8C\u6574\u5165\u53C2\u5951\u7EA6\uFF08\u542B inputSchema\uFF09\uFF1Aweaver-work-cli ${domain} schema --operation <name>`;
|
|
60
|
+
return `\u672C\u6E05\u5355\u53EA\u542B name/summary/risk\uFF08summary \u9650 120 \u5B57\uFF0C\u5B8C\u6574\u8BF4\u660E\u5728 notes\uFF09\u3002\u53D6\u5355\u4E2A\u64CD\u4F5C\u7684\u5B8C\u6574\u5165\u53C2\u5951\u7EA6\uFF08\u542B inputSchema \u4E0E notes\uFF09\uFF1Aweaver-work-cli ${domain} schema --operation <name>`;
|
|
61
61
|
}
|
|
62
62
|
function operationHintOf(manifest) {
|
|
63
63
|
const domain = domainOf(manifest) || "<domain>";
|