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
|
@@ -7,6 +7,57 @@ export function asObject(value) {
|
|
|
7
7
|
}
|
|
8
8
|
return value;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* 菜单接口返回结构归一化。
|
|
12
|
+
*
|
|
13
|
+
* /api/cusapp/app/allMenus 的 data 形态在不同环境/版本间不一致:可能是数组,
|
|
14
|
+
* 也可能是 { cusAppMenus: [...] } 的包装对象,甚至是空对象或缺字段。
|
|
15
|
+
* 这里把「结构不可控」统一收敛为「拿到数组」,实在取不到就返回空数组。
|
|
16
|
+
*
|
|
17
|
+
* 🔴 原则:结构异常等价于「没拿到菜单」,绝不能抛出异常。
|
|
18
|
+
* 菜单只用于定位列表/页面入口,属于可选依赖(页面地址有固定路由兜底),
|
|
19
|
+
* 取不到应由调用方降级继续,而不是阻断整条上下文解析。
|
|
20
|
+
*
|
|
21
|
+
* 🔴 顶层只识别「容器语义」的键(cusAppMenus/menus/allMenus/data/list)。
|
|
22
|
+
* children/childs 是「节点 → 子节点」的递归键,由调用方 walk 时显式传入;
|
|
23
|
+
* 若也列入顶层键,单个菜单节点对象会被误当容器、返回其子集并漏掉节点自身。
|
|
24
|
+
*
|
|
25
|
+
* 🔴 `allMenus` 这一支与 ecode 页面层(`app/resolve.js` 的 listMenus)对齐:
|
|
26
|
+
* 页面侧认 cusAppMenus / menus / allMenus 三种容器,CLI 少认一个就会出现
|
|
27
|
+
* 「页面能定位台账、CLI 判菜单为空(warn=menus、lists 全空)」的环境差异。
|
|
28
|
+
*/
|
|
29
|
+
export const MENU_CONTAINER_KEYS = ['cusAppMenus', 'menus', 'allMenus', 'data', 'list'];
|
|
30
|
+
export function toMenuList(value) {
|
|
31
|
+
if (Array.isArray(value))
|
|
32
|
+
return value;
|
|
33
|
+
if (value && typeof value === 'object') {
|
|
34
|
+
const obj = value;
|
|
35
|
+
for (const key of MENU_CONTAINER_KEYS) {
|
|
36
|
+
if (Array.isArray(obj[key]))
|
|
37
|
+
return obj[key];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return [];
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* 判定 allMenus 回包的容器形状(诊断用,v6)。**与 toMenuList 共用同一份键表**:
|
|
44
|
+
* 形状识别是适配层事务,容器键只允许有一个权威定义,避免「识别处认 A、收敛处认 B」。
|
|
45
|
+
*
|
|
46
|
+
* 返回值直接进 meta.cache.menuShape / 缓存 menuShape 字段:
|
|
47
|
+
* array | cusAppMenus | menus | allMenus | data | list | unknown(有对象但无已知容器键)| unavailable(空值)
|
|
48
|
+
*/
|
|
49
|
+
export function menuShapeOf(value) {
|
|
50
|
+
if (Array.isArray(value))
|
|
51
|
+
return 'array';
|
|
52
|
+
if (!value || typeof value !== 'object')
|
|
53
|
+
return 'unavailable';
|
|
54
|
+
const obj = value;
|
|
55
|
+
for (const key of MENU_CONTAINER_KEYS) {
|
|
56
|
+
if (Array.isArray(obj[key]))
|
|
57
|
+
return key;
|
|
58
|
+
}
|
|
59
|
+
return 'unknown';
|
|
60
|
+
}
|
|
10
61
|
export function assertNoForbiddenKeys(input) {
|
|
11
62
|
for (const key of Object.keys(input)) {
|
|
12
63
|
if (FORBIDDEN_KEYS.has(key)) {
|
|
@@ -88,7 +88,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
88
88
|
}
|
|
89
89
|
catch (error) {
|
|
90
90
|
reportPlatformError(error);
|
|
91
|
-
|
|
91
|
+
ctx.output.error(failureEnvelope(error));
|
|
92
92
|
process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -87,7 +87,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
87
87
|
}
|
|
88
88
|
catch (error) {
|
|
89
89
|
reportPlatformError(error);
|
|
90
|
-
|
|
90
|
+
ctx.output.error(failureEnvelope(error));
|
|
91
91
|
process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -40,6 +40,7 @@ function buildOperations() {
|
|
|
40
40
|
name: definition.name,
|
|
41
41
|
resource: definition.resource,
|
|
42
42
|
summary: definition.summary,
|
|
43
|
+
...(definition.notes ? { notes: definition.notes } : {}),
|
|
43
44
|
...(definition.capability ? { capability: definition.capability } : {}),
|
|
44
45
|
risk: definition.risk,
|
|
45
46
|
...(definition.requiresConfirmation ? { requiresConfirmation: true } : {}),
|
|
@@ -136,7 +136,9 @@ const fnaExpenseChart = {
|
|
|
136
136
|
resource: 'expense',
|
|
137
137
|
method: 'expense.chart',
|
|
138
138
|
action: 'fna.expense.chart',
|
|
139
|
-
summary: '报销报表 AI
|
|
139
|
+
summary: '报销报表 AI 问答:自然语言查询分组/排名/趋势,返回 kind=rows/empty/clarify/blocked/unexpected;无权限时必须停住。',
|
|
140
|
+
notes: '无权限文案额外返回 meta.permissionDenied=true,此时必须停住、不得改调其它接口拼数据;'
|
|
141
|
+
+ 'maxRows 只截断本地展示,不改变服务端查询。',
|
|
140
142
|
capability: 'expense-chart',
|
|
141
143
|
risk: READ,
|
|
142
144
|
inputSchema: schemaOf({
|
|
@@ -132,7 +132,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
132
132
|
}
|
|
133
133
|
catch (error) {
|
|
134
134
|
reportPlatformError(error);
|
|
135
|
-
|
|
135
|
+
ctx.output.error(failureEnvelope(error));
|
|
136
136
|
process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
|
|
137
137
|
}
|
|
138
138
|
}
|
|
@@ -134,7 +134,7 @@ async function executeAndPrint(ctx, operation, input, projection = {}) {
|
|
|
134
134
|
}
|
|
135
135
|
catch (error) {
|
|
136
136
|
reportPlatformError(error);
|
|
137
|
-
|
|
137
|
+
ctx.output.error(failureEnvelope(error));
|
|
138
138
|
process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
|
|
139
139
|
}
|
|
140
140
|
}
|
|
@@ -107,11 +107,11 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
107
107
|
const envelope = failureEnvelope(error);
|
|
108
108
|
if (ctx.getGlobalOptions().json) {
|
|
109
109
|
const platformError = shouldReportPlatformError(error) ? toPlatformError(error) : {};
|
|
110
|
-
|
|
110
|
+
ctx.output.error({ ...envelope, ...platformError }, 0);
|
|
111
111
|
}
|
|
112
112
|
else {
|
|
113
113
|
reportPlatformError(error);
|
|
114
|
-
|
|
114
|
+
ctx.output.error(envelope);
|
|
115
115
|
}
|
|
116
116
|
process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
|
|
117
117
|
}
|
|
@@ -84,6 +84,9 @@ const OPERATION_SUMMARIES = {
|
|
|
84
84
|
'jiuchuanhui.customer.create.apply': '提交新建客户(落库前需确认);需 continuation + confirm',
|
|
85
85
|
'jiuchuanhui.customer.get': '按 id 取客户详情',
|
|
86
86
|
'jiuchuanhui.customer.search': '分页查询客户列表(支持条件过滤)',
|
|
87
|
+
'jiuchuanhui.customer.mine.search': '查询我的客户(第一页 10 条;走客户快捷搜索接口)',
|
|
88
|
+
'jiuchuanhui.customer.success.search': '查状态为「成功/成功客户」的客户(默认我的客户,可切全部或公海)',
|
|
89
|
+
'jiuchuanhui.customer.open-sea.customers.search': '查询公海范围中的客户记录(第一页 10 条;走客户快捷搜索接口)',
|
|
87
90
|
'jiuchuanhui.customer.type.search': '分页查询客户类型字典',
|
|
88
91
|
'jiuchuanhui.customer.status.search': '分页查询客户状态字典',
|
|
89
92
|
'jiuchuanhui.customer.industry.search': '分页查询客户行业字典',
|
|
@@ -90,10 +90,10 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
90
90
|
const env = failureEnvelope(error);
|
|
91
91
|
if (shouldReportPlatformError(error)) {
|
|
92
92
|
const pe = toPlatformError(error);
|
|
93
|
-
|
|
93
|
+
ctx.output.error({ ...env, code: pe.code, message: pe.message });
|
|
94
94
|
}
|
|
95
95
|
else {
|
|
96
|
-
|
|
96
|
+
ctx.output.error(env);
|
|
97
97
|
}
|
|
98
98
|
process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
|
|
99
99
|
}
|
|
@@ -90,7 +90,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
90
90
|
}
|
|
91
91
|
catch (error) {
|
|
92
92
|
reportPlatformError(error);
|
|
93
|
-
|
|
93
|
+
ctx.output.error(failureEnvelope(error));
|
|
94
94
|
process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
@@ -56,6 +56,7 @@ function buildOperations() {
|
|
|
56
56
|
name: definition.name,
|
|
57
57
|
resource: definition.resource,
|
|
58
58
|
summary: definition.summary,
|
|
59
|
+
...(definition.notes ? { notes: definition.notes } : {}),
|
|
59
60
|
capability: definition.capability,
|
|
60
61
|
risk: definition.risk,
|
|
61
62
|
...(definition.requiresConfirmation ? { requiresConfirmation: true } : {}),
|
|
@@ -278,8 +278,8 @@ export const EB_ENDPOINTS = [
|
|
|
278
278
|
queryParams: ['mt_id', 'address', 'enddatetime', 'begindatetime'],
|
|
279
279
|
dateFilter: true,
|
|
280
280
|
paramAliases: { roomId: 'address', room_id: 'address', day: 'date' },
|
|
281
|
-
summary: 'EB 版会议室占用列表(query_roomusage_list + count
|
|
282
|
-
|
|
281
|
+
summary: 'EB 版会议室占用列表(query_roomusage_list + count);按日期过滤传 date 或 begindatetime/enddatetime',
|
|
282
|
+
contractNotes: '日期格式 date=yyyy-MM-dd;**不传任何时间条件 = 返回全量历史**,不是接口不支持过滤。',
|
|
283
283
|
},
|
|
284
284
|
{
|
|
285
285
|
domain: 'roomUsage',
|
|
@@ -738,7 +738,9 @@ export const EB_ENDPOINTS = [
|
|
|
738
738
|
pkQueryParam: 'id',
|
|
739
739
|
// 文档示例里 operateType.detail1 支持 cover(整组覆盖),默认是更新追加
|
|
740
740
|
detailCover: true,
|
|
741
|
-
summary: 'EB 版更新会议决议(update_mt_decision):改概述文本 +
|
|
741
|
+
summary: 'EB 版更新会议决议(update_mt_decision):改概述文本 + 决议明细',
|
|
742
|
+
contractNotes: 'update_mt_decision 为 2026-10-27 新增接口(源资料口径);'
|
|
743
|
+
+ '改概述文本传 id + mt_content 即可,明细默认「更新追加」,要整组替换需 detail1Mode=cover。',
|
|
742
744
|
notes: [
|
|
743
745
|
'`id` = **决议概述 id**(`decision.list` 的 rows[].mainTable.id),不是会议 id。',
|
|
744
746
|
'只改概述文本:传 `id` + `mt_content` 即可,不必带 detail1(真机:明细原样保留)。',
|
|
@@ -607,7 +607,9 @@ const ebConflictMember = {
|
|
|
607
607
|
resource: 'eb',
|
|
608
608
|
method: 'meeting.eb.conflict.member',
|
|
609
609
|
action: 'meeting.eb.conflict.member',
|
|
610
|
-
summary: 'EB
|
|
610
|
+
summary: 'EB 版参会人员冲突检测:候选取回执后本地比对(2 次请求,无 N+1),按应用设置给出 verdict。',
|
|
611
|
+
notes: '链路:query_mtDetail_list 取候选 → query_meeting_receipt_list?mt_id=多值批量 → 本地比对;'
|
|
612
|
+
+ '判定依据取应用设置的 member_conflict_chk / member_conflict(禁止提交 / 仅提醒)。',
|
|
611
613
|
capability: 'eb.conflict',
|
|
612
614
|
risk: 'read',
|
|
613
615
|
inputSchema: {
|
|
@@ -1273,10 +1273,11 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
1273
1273
|
resource: 'eb',
|
|
1274
1274
|
method: 'meeting.eb.meeting.create.flow.prepare',
|
|
1275
1275
|
action: 'meeting.eb.meeting.create.flow.prepare',
|
|
1276
|
-
summary: '
|
|
1276
|
+
summary: '流程建会(准备):探测候选流程的发起权限并自动选定;不传开始时间时推荐人+会议室都空闲的时段,只出预览。',
|
|
1277
|
+
notes: '用固化流程候选逐个探测发起权限 —— 仅 1 个可发起就自动用它、多个都可发起则返回选项让用户选、'
|
|
1277
1278
|
+ '都不可发起报「没有发起权限」;不传 begin_datetime 时自动推荐「人+会议室都空闲」的时段。只出预览与确认票据,不提交。'
|
|
1278
1279
|
+ '⚠️ 用户提到客户名(「客户是 X」)时**必须先** meeting.eb.crm.search {"keyword":"X"} 拿 customerId,'
|
|
1279
|
-
+ '再传 crm_members:[{id,name}]
|
|
1280
|
+
+ '再传 crm_members:[{id,name}];只把客户名写进会议名称/内容,表单「参会客户」就是空的。',
|
|
1280
1281
|
capability: 'eb.meeting',
|
|
1281
1282
|
risk: 'read-before-write',
|
|
1282
1283
|
requiresConfirmation: true,
|
|
@@ -3343,13 +3344,13 @@ const ebMeetingCreateFlowQuick = {
|
|
|
3343
3344
|
resource: 'eb',
|
|
3344
3345
|
method: 'meeting.eb.meeting.create.flow.quick',
|
|
3345
3346
|
action: 'meeting.eb.meeting.create.flow.quick',
|
|
3346
|
-
summary: '一步流程建会(prepare+apply
|
|
3347
|
-
|
|
3348
|
-
+ '
|
|
3349
|
-
+ '
|
|
3350
|
-
+ '⚠️ 用户提到客户名时**必须先** meeting.eb.crm.search {"keyword":"X"} 拿 customerId 再传
|
|
3351
|
-
+ '
|
|
3352
|
-
+ '⛔
|
|
3347
|
+
summary: '一步流程建会(prepare+apply 合并):自动推荐会议室/检测冲突并提交;默认浏览器填单核对,submit_mode=direct 直提。',
|
|
3348
|
+
notes: '内部并行做会议室推荐/冲突检测/空闲时段。默认**弹浏览器表单**给用户核对提交(submit_mode=browser,'
|
|
3349
|
+
+ '非小e 环境会自动写服务端);传 submit_mode=direct 才是服务端直提(拿 requestId + meetingId,'
|
|
3350
|
+
+ '会议当场生成、邀请函用真实数据)。多流程或需选择时不提交,返回选项。'
|
|
3351
|
+
+ '⚠️ 用户提到客户名时**必须先** meeting.eb.crm.search {"keyword":"X"} 拿 customerId 再传 '
|
|
3352
|
+
+ 'crm_members:[{id,name}];只把客户名写进会议名称/内容而不传 crm_members 会被直接拒绝(crm_member_required)。'
|
|
3353
|
+
+ '⛔ 小e 环境下不要用 submit_mode=browser:填单页不给浏览按钮赋值,参会人员/参会客户会整段丢失。',
|
|
3353
3354
|
capability: 'eb.meeting',
|
|
3354
3355
|
risk: 'high-risk-write',
|
|
3355
3356
|
requiresConfirmation: true,
|
|
@@ -864,6 +864,7 @@ function buildWriteOperations(endpoint, preflight, afterWrite) {
|
|
|
864
864
|
method: prepareName,
|
|
865
865
|
action: prepareName,
|
|
866
866
|
summary: `准备${endpoint.summary}(生成确认预览,不写入)`,
|
|
867
|
+
...(endpoint.contractNotes ? { notes: endpoint.contractNotes } : {}),
|
|
867
868
|
capability,
|
|
868
869
|
risk: 'read-before-write',
|
|
869
870
|
requiresConfirmation: true,
|
|
@@ -932,6 +933,7 @@ function buildWriteOperations(endpoint, preflight, afterWrite) {
|
|
|
932
933
|
method: applyName,
|
|
933
934
|
action: applyName,
|
|
934
935
|
summary: `提交${endpoint.summary}(${writeOp},body 用 datas 数组);必须在用户明确确认后调用`,
|
|
936
|
+
...(endpoint.contractNotes ? { notes: endpoint.contractNotes } : {}),
|
|
935
937
|
capability,
|
|
936
938
|
risk: 'high-risk-write',
|
|
937
939
|
requiresConfirmation: true,
|
|
@@ -82,8 +82,9 @@ const meetingMemberExpand = {
|
|
|
82
82
|
resource: 'member',
|
|
83
83
|
method: 'expand',
|
|
84
84
|
action: 'meeting.member.expand',
|
|
85
|
-
summary: '把「我们部门所有人 / 某分部 /
|
|
86
|
-
|
|
85
|
+
summary: '把「我们部门所有人 / 某分部 / 模糊部门名」展开成员工 id 列表;模糊命中多个时返回候选让用户选,不猜。',
|
|
86
|
+
notes: '查组织 + 取成员,带 30 天缓存,refresh 可强制刷新。支持 keywords 多个部门并集;'
|
|
87
|
+
+ '模糊命中多个时返回 candidates(ambiguous=true)让用户点选。'
|
|
87
88
|
+ '⛔ 不要用 hrm.employee.query 不带条件查全公司(实测 51 秒)。',
|
|
88
89
|
capability: 'eb.meeting',
|
|
89
90
|
risk: 'read',
|
|
@@ -26,9 +26,9 @@ const meetingInvitationPublish = {
|
|
|
26
26
|
resource: 'invitation',
|
|
27
27
|
method: 'publish',
|
|
28
28
|
action: 'meeting.invitation.publish',
|
|
29
|
-
summary: '
|
|
30
|
-
|
|
31
|
-
+ '
|
|
29
|
+
summary: '生成邀请函并发布成 E10 文档:模板填充 → 上传文档中心(默认目录 300)→ 返回 docId(真实创建,需确认)。',
|
|
30
|
+
notes: '拿到 docId 后把 `extraFields: {"邀请函":[{"id":docId,"name":文档名}]}` 传给建会接口即可写进表单。'
|
|
31
|
+
+ '会真实创建文档,必须带 confirm: true。',
|
|
32
32
|
capability: 'invitation',
|
|
33
33
|
risk: 'high-risk-write',
|
|
34
34
|
requiresConfirmation: true,
|
|
@@ -458,10 +458,10 @@ const meetingInvitationRender = {
|
|
|
458
458
|
resource: 'invitation',
|
|
459
459
|
method: 'render',
|
|
460
460
|
action: 'meeting.invitation.render',
|
|
461
|
-
summary: '
|
|
462
|
-
|
|
463
|
-
+ '
|
|
464
|
-
+ '
|
|
461
|
+
summary: '按会议真实数据生成邀请函(只读,不发送):同时返回 docx 与可展示的 Markdown 全文(text 字段)。',
|
|
462
|
+
notes: '会话里应直接把 `text` 贴出来,不要只给文件名让人自己下载;数据取 meeting.eb.meeting.list 单查;'
|
|
463
|
+
+ '议程有议题就按议题自动填、没有则保留模板示例行;取不到的字段渲染成【待补充】(docx 里是黄色高亮);'
|
|
464
|
+
+ '租户自定义字段用 extra 传入。',
|
|
465
465
|
capability: 'invitation',
|
|
466
466
|
risk: 'read',
|
|
467
467
|
inputSchema: {
|
|
@@ -15,7 +15,9 @@ const meetingLink = {
|
|
|
15
15
|
resource: 'link',
|
|
16
16
|
method: 'resolve',
|
|
17
17
|
action: 'meeting.link',
|
|
18
|
-
summary: '生成对象详情页链接:EB
|
|
18
|
+
summary: '生成对象详情页链接:EB 版按 tag 解析 objid 生成 card 链接;标准版会议用 meetingId(会议室/类型无单页)。',
|
|
19
|
+
notes: 'EB 版:/sp/ebdfpage/card/0/{objid}/{dataid}(objid 按 tag 解析并缓存);'
|
|
20
|
+
+ '标准版会议:/sp/meeting/meetingSingle?meetingId=;会议室/会议类型没有单页,不附链接。',
|
|
19
21
|
capability: 'link',
|
|
20
22
|
risk: 'read',
|
|
21
23
|
inputSchema: {
|
|
@@ -86,7 +86,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
86
86
|
}
|
|
87
87
|
catch (error) {
|
|
88
88
|
reportPlatformError(error);
|
|
89
|
-
|
|
89
|
+
ctx.output.error(failureEnvelope(error));
|
|
90
90
|
process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -82,7 +82,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
82
82
|
ctx.output.write(successEnvelope(operation, result), { json: true });
|
|
83
83
|
}
|
|
84
84
|
catch (error) {
|
|
85
|
-
|
|
85
|
+
ctx.output.error(failureEnvelope(error));
|
|
86
86
|
process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -86,7 +86,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
86
86
|
}
|
|
87
87
|
catch (error) {
|
|
88
88
|
reportPlatformError(error);
|
|
89
|
-
|
|
89
|
+
ctx.output.error(failureEnvelope(error));
|
|
90
90
|
process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -82,7 +82,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
82
82
|
}
|
|
83
83
|
catch (error) {
|
|
84
84
|
reportPlatformError(error);
|
|
85
|
-
|
|
85
|
+
ctx.output.error(failureEnvelope(error));
|
|
86
86
|
process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -54,6 +54,28 @@ export const MEETING_OPTIONS = [
|
|
|
54
54
|
{ label: '是,安排会议室', value: '是' },
|
|
55
55
|
{ label: '否,不需要', value: '否' },
|
|
56
56
|
];
|
|
57
|
+
/**
|
|
58
|
+
* 出件范围。
|
|
59
|
+
*
|
|
60
|
+
* - `flow`:完整链路——内部参考文档 md + 对外行程单 docx + 上传附件 + 填单页 browsertool。
|
|
61
|
+
* - `plan`:只出内部参考文档 md——不渲染 docx、不上传附件、不跑 render(因此也不出 browsertool,
|
|
62
|
+
* 不做会议未表态与小餐厅缺包厢的硬校验,那两条只对填单页有意义)。
|
|
63
|
+
*
|
|
64
|
+
* 为什么要有它:用户只说「出个接待方案」时,行程单与填单页都不该出现;
|
|
65
|
+
* 而 docx 渲染要 5~7s 且强依赖 python-docx,白跑一份再丢掉纯属浪费。
|
|
66
|
+
*/
|
|
67
|
+
export const RECEPTION_MODES = ['plan', 'flow'];
|
|
68
|
+
/** 默认按完整链路走,保持老调用方(不传 --mode)行为不变。 */
|
|
69
|
+
export const DEFAULT_RECEPTION_MODE = 'flow';
|
|
70
|
+
/** 把入参归一到 'plan' | 'flow';认不出的写法按默认处理,不报错打断链路。 */
|
|
71
|
+
export function normalizeReceptionMode(value) {
|
|
72
|
+
const text = String(value ?? '').trim().toLowerCase();
|
|
73
|
+
if (text === 'plan' || text === '方案' || text === 'document' || text === 'doc')
|
|
74
|
+
return 'plan';
|
|
75
|
+
if (text === 'flow' || text === '流程' || text === 'handbook' || text === 'manual')
|
|
76
|
+
return 'flow';
|
|
77
|
+
return DEFAULT_RECEPTION_MODE;
|
|
78
|
+
}
|
|
57
79
|
/** 快照文件的 kind 标识,用于拒收无关 JSON。 */
|
|
58
80
|
export const SNAPSHOT_KIND = 'reception-fields-snapshot';
|
|
59
81
|
/** python 探测结果的缓存时长(7 天)。 */
|
|
@@ -143,6 +143,7 @@ export const receptionShortcut = {
|
|
|
143
143
|
.option('--snapshot <path>', '字段快照路径(同时用于推导 render.py)')
|
|
144
144
|
.option('--render-py <path>', '显式指定 render.py')
|
|
145
145
|
.option('--no-upload', '跳过附件上传,只出本地文件')
|
|
146
|
+
.option('--mode <mode>', '出件范围:plan=只出内部参考文档 md(不渲染 docx、不上传);flow=完整链路(默认)')
|
|
146
147
|
.action(action(async (ctx, options) => {
|
|
147
148
|
const opts = asOptions(options);
|
|
148
149
|
await runOperation(ctx, 'reception.doc', {
|
|
@@ -156,6 +157,7 @@ export const receptionShortcut = {
|
|
|
156
157
|
snapshot: textOf(opts, 'snapshot') || undefined,
|
|
157
158
|
renderPy: textOf(opts, 'renderPy') || undefined,
|
|
158
159
|
noUpload: opts.upload === false,
|
|
160
|
+
mode: textOf(opts, 'mode') || undefined,
|
|
159
161
|
}, opts);
|
|
160
162
|
}));
|
|
161
163
|
reception.command('render')
|
|
@@ -207,6 +209,7 @@ export const receptionShortcut = {
|
|
|
207
209
|
.option('--no-upload', '跳过附件上传,只出本地文件')
|
|
208
210
|
.option('--allow-missing-restaurant', '提了小餐厅但没包厢号时仍放行(明细留空进待办)')
|
|
209
211
|
.option('--sdk-render <type>', '打开形态:inline / popup / drawer(默认 drawer)')
|
|
212
|
+
.option('--mode <mode>', '出件范围:plan=只出内部参考文档 md(不打开填单页);flow=完整链路(默认)')
|
|
210
213
|
.action(action(async (ctx, options) => {
|
|
211
214
|
const opts = asOptions(options);
|
|
212
215
|
await runOperation(ctx, 'reception.docRender', {
|
|
@@ -222,6 +225,7 @@ export const receptionShortcut = {
|
|
|
222
225
|
noUpload: opts.upload === false,
|
|
223
226
|
allowMissingRestaurant: opts.allowMissingRestaurant === true,
|
|
224
227
|
sdkRender: textOf(opts, 'sdkRender') || undefined,
|
|
228
|
+
mode: textOf(opts, 'mode') || undefined,
|
|
225
229
|
}, opts);
|
|
226
230
|
}));
|
|
227
231
|
},
|
|
@@ -65,6 +65,11 @@ export const receptionOperations = [
|
|
|
65
65
|
workflow: { type: 'string', description: '目标流程名' },
|
|
66
66
|
outDir: { type: 'string', description: '产物输出目录' },
|
|
67
67
|
noUpload: { type: 'boolean', description: '跳过附件上传,只出本地文件' },
|
|
68
|
+
mode: {
|
|
69
|
+
type: 'string',
|
|
70
|
+
enum: ['plan', 'flow'],
|
|
71
|
+
description: '出件范围:plan=只出内部参考文档 md(不渲染 docx、不上传附件);flow=完整链路。默认 flow',
|
|
72
|
+
},
|
|
68
73
|
snapshot: { type: 'string', description: '字段快照路径;同时用于推导技能包内 render.py 位置' },
|
|
69
74
|
renderPy: { type: 'string', description: '显式指定 render.py 路径' },
|
|
70
75
|
},
|
|
@@ -74,6 +79,7 @@ export const receptionOperations = [
|
|
|
74
79
|
type: 'object',
|
|
75
80
|
properties: {
|
|
76
81
|
runId: { type: 'string' },
|
|
82
|
+
mode: { type: 'string', description: '本次实际生效的出件范围:plan / flow' },
|
|
77
83
|
rebuilt: { type: 'boolean' },
|
|
78
84
|
files: { type: 'array', items: { type: 'object' } },
|
|
79
85
|
internalDoc: {
|
|
@@ -131,8 +137,9 @@ export const receptionOperations = [
|
|
|
131
137
|
{
|
|
132
138
|
name: 'reception.docRender',
|
|
133
139
|
risk: 'read',
|
|
134
|
-
summary: '一次完成 doc + render:出 docx/md、上传附件、拼 customParams、落 browsertool
|
|
135
|
-
|
|
140
|
+
summary: '一次完成 doc + render:出 docx/md、上传附件、拼 customParams、落 browsertool,省一次工具往返。',
|
|
141
|
+
notes: '两者之间没有人工确认点,合并只为省一次工具往返;失败语义与分开调用一致。'
|
|
142
|
+
+ '--mode plan 只出内部参考文档 md,跳过 render(不出 browsertool、不做填单硬校验)。',
|
|
136
143
|
inputSchema: {
|
|
137
144
|
type: 'object',
|
|
138
145
|
additionalProperties: false,
|
|
@@ -145,6 +152,11 @@ export const receptionOperations = [
|
|
|
145
152
|
workflow: { type: 'string', description: '目标流程名' },
|
|
146
153
|
outDir: { type: 'string', description: '产物输出目录' },
|
|
147
154
|
noUpload: { type: 'boolean', description: '跳过附件上传,只出本地文件' },
|
|
155
|
+
mode: {
|
|
156
|
+
type: 'string',
|
|
157
|
+
enum: ['plan', 'flow'],
|
|
158
|
+
description: '出件范围:plan=只出内部参考文档 md(不渲染 docx、不上传附件、不打开填单页);flow=完整链路。默认 flow',
|
|
159
|
+
},
|
|
148
160
|
snapshot: { type: 'string', description: '字段快照路径;同时用于推导技能包内 render.py 位置' },
|
|
149
161
|
allowMissingRestaurant: { type: 'boolean', description: '提了小餐厅但确实拿不到包厢号时放行(明细留空进待办),默认 false 直接报 RESTAURANT_DETAIL_MISSING' },
|
|
150
162
|
renderPy: { type: 'string', description: '显式指定 render.py 路径' },
|
|
@@ -160,6 +172,8 @@ export const receptionOperations = [
|
|
|
160
172
|
type: 'object',
|
|
161
173
|
properties: {
|
|
162
174
|
runId: { type: 'string' },
|
|
175
|
+
mode: { type: 'string', description: '本次实际生效的出件范围:plan / flow' },
|
|
176
|
+
renderSkipped: { type: 'boolean', description: 'plan 模式恒为 true:没有调 render,回包里不会有 browsertool' },
|
|
163
177
|
rebuilt: { type: 'boolean' },
|
|
164
178
|
files: { type: 'array', items: { type: 'object' } },
|
|
165
179
|
internalDoc: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { readFileSync } from 'node:fs';
|
|
2
2
|
import { basename, join } from 'node:path';
|
|
3
|
-
import { DEFAULT_WORKFLOW } from '../constants.js';
|
|
3
|
+
import { DEFAULT_WORKFLOW, normalizeReceptionMode } from '../constants.js';
|
|
4
4
|
import { receptionValidationError } from '../errors.js';
|
|
5
5
|
import { applyMeetingPolicy, normalizeMeeting } from './leads.js';
|
|
6
6
|
import { mergeAnswers } from './panels.js';
|
|
7
7
|
import { normalizeRestaurant } from './restaurant.js';
|
|
8
|
-
import {
|
|
8
|
+
import { renderBoth, renderMdOnly, requirePython, resolveRenderPy } from './render-assets.js';
|
|
9
9
|
import { newRunId, saveRun, tryLoadRun } from './runs.js';
|
|
10
10
|
import { canonical, ensureDir, parseJsonText, sha256, writeJson } from './shared.js';
|
|
11
11
|
/** 案例 + 专家检索结果注入。软依赖:文件没给 / 给空就整段不出,不阻断出单。 */
|
|
@@ -85,6 +85,9 @@ export async function doc(input, ctx) {
|
|
|
85
85
|
const startedAt = Date.now();
|
|
86
86
|
const runIdArg = String(input.runId || '').trim();
|
|
87
87
|
const knownArg = input.known || null;
|
|
88
|
+
const mode = normalizeReceptionMode(input.mode);
|
|
89
|
+
/** plan:只出内部参考文档 md。docx 与附件都服务填单页,这里一律不产出。 */
|
|
90
|
+
const planOnly = mode === 'plan';
|
|
88
91
|
let run = runIdArg ? tryLoadRun(ctx.stateDir, runIdArg) : null;
|
|
89
92
|
let rebuilt = false;
|
|
90
93
|
if (!run) {
|
|
@@ -107,7 +110,7 @@ export async function doc(input, ctx) {
|
|
|
107
110
|
data: { ...knownArg },
|
|
108
111
|
customer: null,
|
|
109
112
|
user: null,
|
|
110
|
-
mode
|
|
113
|
+
mode,
|
|
111
114
|
};
|
|
112
115
|
}
|
|
113
116
|
const answers = input.answers ?? run.answers ?? {};
|
|
@@ -148,14 +151,17 @@ export async function doc(input, ctx) {
|
|
|
148
151
|
const dataHash = sha256(canonical(data)).slice(0, 32);
|
|
149
152
|
const dataPath = join(ctx.stateDir, `doc-data-${dataHash.slice(0, 12)}.json`);
|
|
150
153
|
writeJson(dataPath, data);
|
|
151
|
-
const python = requirePython(ctx.stateDir);
|
|
154
|
+
const python = requirePython(ctx.stateDir, !planOnly);
|
|
152
155
|
const renderPy = resolveRenderPy(input.renderPy || '', input.snapshot || '');
|
|
153
|
-
|
|
156
|
+
// plan 模式强制跳过上传:附件字段只服务填单页,而 plan 根本不出填单页
|
|
157
|
+
const noUpload = planOnly || input.noUpload === true;
|
|
154
158
|
// 会话与渲染并行:渲染约 7s,会话读取基本瞬时,没必要串行等
|
|
155
159
|
const sessionPromise = noUpload
|
|
156
160
|
? Promise.resolve(null)
|
|
157
161
|
: ctx.host.getSession();
|
|
158
|
-
const renderPromise =
|
|
162
|
+
const renderPromise = planOnly
|
|
163
|
+
? renderMdOnly({ python, renderPy, dataPath, outDir })
|
|
164
|
+
: renderBoth({ python, renderPy, dataPath, outDir });
|
|
159
165
|
const uploadPromise = renderPromise.then(async (rendered) => {
|
|
160
166
|
if (noUpload)
|
|
161
167
|
return null;
|
|
@@ -230,11 +236,12 @@ export async function doc(input, ctx) {
|
|
|
230
236
|
warnings.push('未取得 E10 会话:附件未上传,产物按本地文件交付');
|
|
231
237
|
}
|
|
232
238
|
}
|
|
233
|
-
else if (noUpload) {
|
|
239
|
+
else if (noUpload && !planOnly) {
|
|
234
240
|
warnings.push('已按 --no-upload 跳过上传:页面上需要手动添加附件');
|
|
235
241
|
}
|
|
236
242
|
run.answers = answers;
|
|
237
243
|
run.data = data;
|
|
244
|
+
run.mode = mode;
|
|
238
245
|
run.files = rendered.result.files || [];
|
|
239
246
|
// 记住快照路径,render 就不必再传一次
|
|
240
247
|
if (input.snapshot)
|
|
@@ -268,6 +275,7 @@ export async function doc(input, ctx) {
|
|
|
268
275
|
ok: true,
|
|
269
276
|
data: {
|
|
270
277
|
runId: run.runId,
|
|
278
|
+
mode,
|
|
271
279
|
rebuilt,
|
|
272
280
|
files: (rendered.result.files || []).map((file) => ({ kind: file.kind, path: file.path, size: file.size })),
|
|
273
281
|
internalDoc,
|
|
@@ -286,10 +294,15 @@ export async function doc(input, ctx) {
|
|
|
286
294
|
},
|
|
287
295
|
},
|
|
288
296
|
warnings,
|
|
289
|
-
next:
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
297
|
+
next: planOnly
|
|
298
|
+
? {
|
|
299
|
+
command: '把 data.internalDoc.content 全文作为回复正文',
|
|
300
|
+
reason: '场景一只交付《接待交流参考文档》,不生成行程单、不上传附件、不打开填单页',
|
|
301
|
+
}
|
|
302
|
+
: {
|
|
303
|
+
command: `weaver-work-cli reception render --run-id ${run.runId}`,
|
|
304
|
+
reason: '附件 fileid 已写入 run,render 会自动带上',
|
|
305
|
+
},
|
|
293
306
|
};
|
|
294
307
|
}
|
|
295
308
|
export const docOperation = {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { normalizeReceptionMode } from '../constants.js';
|
|
1
2
|
import { doc } from './doc.js';
|
|
2
3
|
import { render } from './render.js';
|
|
3
4
|
/**
|
|
@@ -6,16 +7,31 @@ import { render } from './render.js';
|
|
|
6
7
|
* 为什么合并:`doc` 与 `render` 之间没有人工确认点,拆两次只会多付一次工具往返
|
|
7
8
|
* (宿主侧单次 3~5 秒),而 CLI 内部这两步加起来只有几百毫秒。
|
|
8
9
|
*
|
|
10
|
+
* `--mode plan` 时只跑 doc(且只出 md),**不进 render**:plan 不产出填单页,
|
|
11
|
+
* 会议未表态 / 小餐厅缺包厢这两条硬校验也就没有意义——它们拦的是填单页,
|
|
12
|
+
* 不是参考文档。plan 的交付物是 `internalDoc.content`,回包里 `renderSkipped: true`。
|
|
13
|
+
*
|
|
9
14
|
* 失败语义与分开调用**完全一致**,不因为合并而改变:
|
|
10
15
|
* - `doc` 失败(快照缺失 / render.py 缺失 / python-docx 缺失)→ 直接返回 doc 的错误,不继续 render;
|
|
11
16
|
* - 附件上传失败**不算** doc 失败(只进 `warnings` + `uploadDiagnostics`),`customParams` 照常产出;
|
|
12
17
|
* - `render` 失败 → 返回 render 的错误,此时文件已生成,回包里仍带 `files`。
|
|
13
18
|
*/
|
|
14
19
|
export async function docRender(input, ctx) {
|
|
20
|
+
const mode = normalizeReceptionMode(input.mode);
|
|
15
21
|
const docResult = await doc(input, ctx);
|
|
16
22
|
if (!docResult.ok)
|
|
17
23
|
return docResult;
|
|
18
|
-
const
|
|
24
|
+
const docData = docResult.data || {};
|
|
25
|
+
if (mode === 'plan') {
|
|
26
|
+
return {
|
|
27
|
+
state: docResult.state,
|
|
28
|
+
ok: true,
|
|
29
|
+
data: { ...docData, mode, renderSkipped: true },
|
|
30
|
+
warnings: docResult.warnings || [],
|
|
31
|
+
next: docResult.next,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
const runId = String(docData.runId || input.runId || '');
|
|
19
35
|
// answers / snapshotPath 已经由 doc 写进 run,这里只传 runId;
|
|
20
36
|
// sdkRender 属于 render 自己的入参,透传即可。
|
|
21
37
|
let renderResult;
|
|
@@ -50,6 +66,7 @@ export async function docRender(input, ctx) {
|
|
|
50
66
|
...docResult.data,
|
|
51
67
|
...renderResult.data,
|
|
52
68
|
runId,
|
|
69
|
+
mode,
|
|
53
70
|
},
|
|
54
71
|
warnings: [...(docResult.warnings || []), ...(renderResult.warnings || [])],
|
|
55
72
|
next: renderResult.next,
|