weaver-work-cli 0.1.62 → 0.1.64
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/dist/chunks/{archive-S2VKZWQ3.js → archive-WUZKAEZ6.js} +5 -4
- package/dist/chunks/{archive-oa-HEDSIUUY.js → archive-oa-PN46RTI2.js} +5 -4
- package/dist/chunks/{asset-HYH4W357.js → asset-ZPC5VWZM.js} +5 -4
- package/dist/chunks/{asset-idle-N7REBNGL.js → asset-idle-DHGP3NYY.js} +5 -4
- package/dist/chunks/{attachment-content-VYYA75FR.js → attachment-content-JQDW3BIB.js} +3 -3
- package/dist/chunks/{blog-SLMZZICV.js → blog-JC47AIXK.js} +5 -4
- package/dist/chunks/{caizhilian-RV43KKBT.js → caizhilian-IKIHM77A.js} +5 -5
- package/dist/chunks/{calendar-DMVZ4OLY.js → calendar-GZTSJ57Y.js} +5 -4
- package/dist/chunks/{chunk-H6YOMI3U.js → chunk-26FCCU5O.js} +5 -3
- package/dist/chunks/{chunk-E5YD5JWR.js → chunk-3PCXBG4H.js} +1 -1
- package/dist/chunks/{chunk-UBRWONP4.js → chunk-3W5NMGDS.js} +2 -2
- package/dist/chunks/{chunk-DTCQFTHW.js → chunk-4AFWOGOV.js} +3 -3
- package/dist/chunks/{chunk-VNYOUAWV.js → chunk-5QQKLR6H.js} +11 -11
- package/dist/chunks/{chunk-BQYX2UX5.js → chunk-6T5X6YWX.js} +5 -3
- package/dist/chunks/{chunk-KXJA42EA.js → chunk-AFZTMYGC.js} +1 -1
- package/dist/chunks/{chunk-YI2YMW5N.js → chunk-AGSO3PIK.js} +2 -2
- package/dist/chunks/{chunk-IW7A2IQY.js → chunk-C4YQJFZV.js} +43 -15
- package/dist/chunks/{chunk-WIWDVETN.js → chunk-FDBAFANU.js} +76 -76
- package/dist/chunks/{chunk-NRYDJN4J.js → chunk-FJUOUSV3.js} +89 -8
- package/dist/chunks/{chunk-EGANE35F.js → chunk-HLT6B26P.js} +1 -1
- package/dist/chunks/{chunk-P6TXQK75.js → chunk-HWA2A25Y.js} +5 -3
- package/dist/chunks/{chunk-T2KVJFWJ.js → chunk-I3MOFD6Q.js} +4 -7
- package/dist/chunks/chunk-IN6NXQ26.js +680 -0
- package/dist/chunks/{chunk-UBGWIXU3.js → chunk-INVYKG4I.js} +140 -45
- package/dist/chunks/{chunk-QBDXJS2W.js → chunk-K7QKQRSL.js} +168 -62
- package/dist/chunks/{chunk-BIA2NKUG.js → chunk-KDFEHDIB.js} +5 -5
- package/dist/chunks/{chunk-ILALC2N6.js → chunk-KYDXWYFB.js} +1 -1
- package/dist/chunks/{chunk-V2LASYKO.js → chunk-Q6D6PSMH.js} +30 -24
- package/dist/chunks/{chunk-UQFPF4EX.js → chunk-RMOH2GMF.js} +2 -2
- package/dist/chunks/{chunk-VBFBMM7G.js → chunk-SCMHG23G.js} +387 -70
- package/dist/chunks/chunk-TJN4PIYO.js +47 -0
- package/dist/chunks/{chunk-JFAWZX53.js → chunk-UPVAQJKS.js} +282 -131
- package/dist/chunks/{chunk-KY3R42RS.js → chunk-VLY5RTVO.js} +5 -3
- package/dist/chunks/{chunk-TEZHIB6T.js → chunk-WSHIOSGM.js} +5 -3
- package/dist/chunks/{chunk-6XSSAUNW.js → chunk-XHSEK2VM.js} +48 -12
- package/dist/chunks/{chunk-XT77MP54.js → chunk-YTFNMQO4.js} +410 -24
- package/dist/chunks/{conflict-GFJRS6I7.js → conflict-UUC7AFUI.js} +2 -2
- package/dist/chunks/{contract-U3ZGNRWB.js → contract-INMS7SYQ.js} +3051 -4497
- package/dist/chunks/{cowork-EX7PKIDK.js → cowork-34CBYVQP.js} +5 -4
- package/dist/chunks/{create-flow-EJZD434E.js → create-flow-YOR4QTAJ.js} +18 -6
- package/dist/chunks/{data-FOODGAMF.js → data-QKWI5325.js} +14 -3
- package/dist/chunks/{ebuilder-form-I2EOKODG.js → ebuilder-form-ZONRROK4.js} +4 -4
- package/dist/chunks/{ehr-TE4RFNID.js → ehr-2CONM7R6.js} +244 -151
- package/dist/chunks/{employee-DR5Y64TI.js → employee-PGMY6NI6.js} +1 -1
- package/dist/chunks/{entry-mode-ZOLSXEGX.js → entry-mode-S2ENJ6GZ.js} +3 -3
- package/dist/chunks/{env-TID5NFR6.js → env-ZSAXU5PJ.js} +2 -2
- package/dist/chunks/{esb-7L6MHYLB.js → esb-FQASCY2H.js} +8 -8
- package/dist/chunks/{factory-OG7BPMH5.js → factory-N76QQA53.js} +1 -1
- package/dist/chunks/{fna-6V2ENR3Y.js → fna-FCLVIWAS.js} +5 -4
- package/dist/chunks/{group-chat-5DKPWIHL.js → group-chat-UM665WDZ.js} +3 -3
- package/dist/chunks/{host-VTPAWDZV.js → host-2ED2KC4X.js} +4 -4
- package/dist/chunks/{host-TJ5VVHM7.js → host-2UYZEY2V.js} +4 -4
- package/dist/chunks/{host-3DLYA54R.js → host-46NYKDQP.js} +4 -4
- package/dist/chunks/{host-OGBHL75G.js → host-7IPZKIM4.js} +4 -4
- package/dist/chunks/{host-GOJHHTPY.js → host-P7G22WNM.js} +4 -4
- package/dist/chunks/{host-ONZC6AE7.js → host-XLCBLNJD.js} +4 -4
- package/dist/chunks/{hrm-2N7NFQDZ.js → hrm-XKL27NX2.js} +6 -6
- package/dist/chunks/{im-XCH47ZBN.js → im-NDYIMASG.js} +4 -4
- package/dist/chunks/{invoice-5KJ7T774.js → invoice-MOGNB6HN.js} +4 -4
- package/dist/chunks/{jiuchuanhui-PL6DRPBM.js → jiuchuanhui-3T5X7SB7.js} +5 -4
- package/dist/chunks/{lazy-dispatch-UATEN7H7.js → lazy-dispatch-4WOIL3ZQ.js} +5 -5
- package/dist/chunks/{mail-Q7Z4CQ4D.js → mail-P7VMUKQW.js} +5 -4
- package/dist/chunks/{meeting-5E3BNARL.js → meeting-MMTYDHXA.js} +16 -15
- package/dist/chunks/{minute-doc-NXRE5C77.js → minute-doc-LCSBWGJ3.js} +4 -4
- package/dist/chunks/{okr-3O3XNYOK.js → okr-VZXRQGS4.js} +5 -4
- package/dist/chunks/{operations-EZWG72FH.js → operations-MI2BSKZX.js} +5 -5
- package/dist/chunks/{performance-Y7CPNSOR.js → performance-OPEQNW7Y.js} +873 -17
- package/dist/chunks/{plan-BLGPZF5M.js → plan-TJAS4N5X.js} +5 -4
- package/dist/chunks/{project-6MZMLJMP.js → project-CYBGU6K6.js} +5 -4
- package/dist/chunks/{reception-F2VT2X52.js → reception-3FT2F66K.js} +3 -3
- package/dist/chunks/{recruit-stage-4ETIBMIW.js → recruit-stage-WPGB5BDJ.js} +654 -336
- package/dist/chunks/{registry-3FYSWV3U.js → registry-BAWCWV4D.js} +3 -3
- package/dist/chunks/{registry-I4DVPDMU.js → registry-FNI5E76J.js} +12 -12
- package/dist/chunks/{registry-3UGIWH53.js → registry-JMNOXRST.js} +2 -2
- package/dist/chunks/{registry-7RS74TCK.js → registry-QRMXRSCT.js} +5 -5
- package/dist/chunks/{room-recommend-GWCVKCXW.js → room-recommend-I7QQRHEL.js} +4 -4
- package/dist/chunks/{schedule-6AN63MJQ.js → schedule-3P7EWGNZ.js} +4 -4
- package/dist/chunks/{smart-extract-SR4SJJKN.js → smart-extract-FOBSVNYW.js} +3 -3
- package/dist/chunks/{workflow-KF7FA2UQ.js → workflow-U2KKTVQY.js} +10 -7
- package/dist/index.js +34 -34
- package/dist/internal/e10/auth/commands.js +203 -44
- package/dist/internal/e10/auth/xiaoe.js +6 -2
- package/dist/internal/e10/auth-recovery.js +28 -2
- package/dist/internal/e10/request-runtime.js +15 -3
- package/dist/internal/e10/request-trace.js +65 -0
- package/dist/shortcuts/contract/data/metric-catalog.js +149 -0
- package/dist/shortcuts/contract/error-actions.js +112 -0
- package/dist/shortcuts/contract/errors.js +9 -1
- package/dist/shortcuts/contract/index.js +14 -39
- package/dist/shortcuts/contract/manifest.js +130 -274
- package/dist/shortcuts/contract/operations/compare-report.js +437 -0
- package/dist/shortcuts/contract/operations/compare.js +2 -0
- package/dist/shortcuts/contract/operations/docx-slots.js +112 -5
- package/dist/shortcuts/contract/operations/docx-verify.js +2 -70
- package/dist/shortcuts/contract/operations/elements-build.js +82 -56
- package/dist/shortcuts/contract/operations/elements-spec.js +140 -3
- package/dist/shortcuts/contract/operations/first-screen.js +96 -207
- package/dist/shortcuts/contract/operations/flow.js +19 -1
- package/dist/shortcuts/contract/operations/{card-ebdf-list.js → ledger-card.js} +123 -27
- package/dist/shortcuts/contract/operations/ledger.js +343 -1
- package/dist/shortcuts/contract/operations/metrics.js +93 -0
- package/dist/shortcuts/contract/operations/modeltext.js +3 -3
- package/dist/shortcuts/contract/operations/money.js +90 -0
- package/dist/shortcuts/contract/operations/page.js +8 -4
- package/dist/shortcuts/contract/operations/performance.js +53 -0
- package/dist/shortcuts/contract/operations/placeholder-scan.js +104 -0
- package/dist/shortcuts/contract/operations/quote-recognize.js +326 -0
- package/dist/shortcuts/contract/operations/quote-ref.js +179 -0
- package/dist/shortcuts/contract/operations/quote-submit.js +281 -0
- package/dist/shortcuts/contract/operations/quote.js +66 -12
- package/dist/shortcuts/contract/operations/recommend.js +42 -1
- package/dist/shortcuts/contract/operations/registry.js +16 -23
- package/dist/shortcuts/contract/operations/{card-risk-report.js → review-report.js} +24 -114
- package/dist/shortcuts/contract/operations/review.js +33 -167
- package/dist/shortcuts/contract/operations/save-recognize.js +173 -43
- package/dist/shortcuts/contract/operations/solutions-spec.js +79 -0
- package/dist/shortcuts/contract/operations/triage.js +68 -15
- package/dist/shortcuts/contract/operations/{template.js → type-clause-read.js} +10 -25
- package/dist/shortcuts/contract/operations/upload.js +17 -11
- package/dist/shortcuts/contract/prewarm-cache.js +6 -2
- package/dist/shortcuts/contract/prewarm.js +33 -23
- package/dist/shortcuts/contract/recommend-cache.js +191 -0
- package/dist/shortcuts/data/operations/shared.js +14 -1
- package/dist/shortcuts/ehr/operations/recruit-interview-overview.js +85 -62
- package/dist/shortcuts/ehr/operations/recruit-position.js +21 -13
- package/dist/shortcuts/ehr/operations/recruit-short-cache.js +59 -0
- package/dist/shortcuts/ehr/operations/recruit-tag.js +17 -11
- package/dist/shortcuts/ehr/operations/recruit-write.js +118 -70
- package/dist/shortcuts/ehr/operations/recruit.js +338 -121
- package/dist/shortcuts/hrm/operations/employee.js +64 -17
- package/dist/shortcuts/hrm/operations/resolve.js +419 -369
- package/dist/shortcuts/im/host.js +38 -22
- package/dist/shortcuts/meeting/operations/eb/conflict.js +60 -2
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +138 -15
- package/dist/shortcuts/meeting/operations/eb/create-form-link.js +380 -0
- package/dist/shortcuts/meeting/operations/eb/index.js +2 -0
- package/dist/shortcuts/meeting/operations/eb/room-recommend.js +1 -3
- package/dist/shortcuts/performance/flow-utils.js +363 -0
- package/dist/shortcuts/performance/manifest.js +2 -2
- package/dist/shortcuts/performance/operations/flow-detail.js +85 -0
- package/dist/shortcuts/performance/operations/flow-list.js +213 -0
- package/dist/shortcuts/performance/operations/flow-score.js +241 -0
- package/dist/shortcuts/performance/operations/registry.js +6 -0
- package/dist/shortcuts/recruit-stage/batch-store.js +44 -0
- package/dist/shortcuts/recruit-stage/context.js +75 -9
- package/dist/shortcuts/recruit-stage/manifest.js +1 -1
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +33 -22
- package/dist/shortcuts/recruit-stage/operations/list.js +187 -37
- package/dist/shortcuts/recruit-stage/operations/registry.js +2 -0
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +231 -313
- package/dist/shortcuts/recruit-stage/operations/search.js +5 -5
- package/dist/shortcuts/recruit-stage/operations/tag.js +286 -0
- package/dist/shortcuts/workflow/endpoints.js +2 -0
- package/dist/shortcuts/workflow/operations/form.js +12 -15
- package/dist/shortcuts/workflow/operations/read.js +8 -8
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoListRows.js +3 -2
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +7 -6
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +4 -3
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.group.js +1 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +33 -6
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.prepareQuery.js +153 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/workflowClarification.js +232 -0
- package/dist/shortcuts/workflow/operations.js +5 -0
- package/docs/contract.md +2 -2
- package/docs/e10-auth.md +55 -2
- package/docs/ehr.md +1 -1
- package/package.json +1 -1
- package/skills/weaver-e10-hrm/SKILL.md +3 -3
- package/skills/weaver-e10-hrm/references/employee.md +13 -2
- package/skills/weaver-e10-jinchengda/SKILL.md +283 -345
- package/skills/weaver-e10-jinchengda/references/contract-agent-entry.md +7 -14
- package/skills/weaver-e10-jinchengda/references/contract-ai-assistant.md +21 -12
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +126 -202
- package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +13 -5
- package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +28 -20
- package/skills/weaver-e10-jinchengda/references/contract-clause-recommender.md +12 -17
- package/skills/weaver-e10-jinchengda/references/contract-clause-reference-save.md +7 -13
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +47 -16
- package/skills/weaver-e10-jinchengda/references/contract-compare-report-template.html +10 -18
- package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +19 -18
- package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +114 -61
- package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +8 -2
- package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +78 -112
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +67 -333
- package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +18 -15
- package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +80 -84
- package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +38 -34
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +132 -47
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +108 -217
- package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +14 -20
- package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +13 -7
- package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +86 -46
- package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +12 -10
- package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +22 -14
- package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +18 -18
- package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +27 -26
- package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +252 -0
- package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +15 -23
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +290 -104
- package/skills/weaver-e10-jinchengda/references/contract-request-status.md +5 -12
- package/skills/weaver-e10-jinchengda/references/contract-request-write.md +12 -18
- package/skills/weaver-e10-jinchengda/references/contract-signing-subjects.md +11 -17
- package/skills/weaver-e10-jinchengda/references/contract-subject-create.md +5 -11
- package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +56 -7
- package/skills/weaver-e10-jinchengda/references/contract-type-fingerprints.md +12 -12
- package/skills/weaver-e10-jinchengda/references/contract-workflow-discovery.md +10 -16
- package/skills/weaver-e10-jinchengda/references/orchestration.md +33 -35
- package/skills/weaver-e10-jucailin/SKILL.md +6 -7
- package/skills/weaver-e10-jucailin/agents/openai.yaml +52 -0
- package/skills/weaver-e10-jucailin/references/recruit-interview-overview.md +8 -6
- package/skills/weaver-e10-jucailin/references/recruit-read.md +4 -0
- package/skills/weaver-e10-jucailin/references/recruit-screening-to-interview-sop.md +2 -2
- package/skills/weaver-e10-jucailin/references/recruit-write.md +4 -4
- package/skills/weaver-e10-meeting/SKILL.md +87 -534
- package/skills/weaver-e10-meeting/references/commands-table.md +61 -0
- package/skills/weaver-e10-meeting/references/create-commands.md +136 -0
- package/skills/weaver-e10-meeting/references/create-flow.md +9 -7
- package/skills/weaver-e10-meeting/references/create-guardrails.md +23 -17
- package/skills/weaver-e10-meeting/references/custom-fields.md +40 -0
- package/skills/weaver-e10-meeting/references/eb-contracts.md +60 -0
- package/skills/weaver-e10-meeting/references/invitation.md +69 -0
- package/skills/weaver-e10-meeting/references/meeting-eb.md +26 -26
- package/skills/weaver-e10-meeting/references/meeting-invitation.md +2 -2
- package/skills/weaver-e10-meeting/references/meeting-minute-file.md +2 -2
- package/skills/weaver-e10-meeting/references/meeting-verification.md +1 -1
- package/skills/weaver-e10-meeting/references/minutes-pipeline.md +119 -0
- package/skills/weaver-e10-meeting/references/pitfalls.md +1 -1
- package/skills/weaver-e10-meeting/references/room-recommend.md +88 -0
- package/skills/weaver-e10-performance/SKILL.md +45 -5
- package/skills/weaver-e10-performance/agents/openai.yaml +26 -2
- package/skills/weaver-e10-performance/references/flow-api.md +128 -0
- package/skills/weaver-e10-performance/references/flow-assess.md +149 -0
- package/skills/weaver-e10-recruit-stage/SKILL.md +317 -266
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +22 -27
- package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +30 -27
- package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +2 -6
- package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +12 -10
- package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +2 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +23 -19
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-template.md +3 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +18 -16
- package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +25 -23
- package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +10 -10
- package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +2 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +11 -11
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +150 -85
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +14 -18
- package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +173 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-tag-taxonomy.json +76 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +3 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +2 -2
- package/skills/weaver-e10-workflow/SKILL.md +49 -32
- package/skills/weaver-e10-workflow/references/todo-dialogue.md +67 -34
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +65 -51
- package/skills/weaver-e10-workflow/references/workflow-agent-entry.md +18 -11
- package/skills/weaver-e10-workflow/references/workflow-create.md +2 -2
- package/skills/weaver-e10-workflow/references/workflow-memory.md +19 -37
- package/skills/weaver-e10-workflow/references/workflow-query.md +25 -22
- package/skills/weaver-e10-workflow/references/workflow-view.md +1 -1
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +318 -110
- package/skills/weaver-e10-yimiaoban/SKILL.md +17 -14
- package/skills/weaver-e10-yimiaoban/references/person.md +1 -1
- package/skills/weaver-e10-yimiaoban/references/safety-boundaries.md +1 -1
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +9 -9
- package/dist/chunks/chunk-6QYNE6HE.js +0 -658
- package/dist/chunks/chunk-SHYQUBY3.js +0 -48
- package/dist/shortcuts/contract/operations/card-action.js +0 -1266
- package/dist/shortcuts/contract/operations/card-plan.js +0 -393
- package/dist/shortcuts/contract/operations/card.js +0 -232
- package/dist/shortcuts/contract/operations/compare-screen.js +0 -378
- package/dist/shortcuts/contract/operations/quote-to-contract.js +0 -495
- package/dist/shortcuts/contract/operations/quotescreen.js +0 -529
- package/dist/shortcuts/contract/operations/summary-validate.js +0 -293
- package/dist/shortcuts/contract/operations/summary.js +0 -187
- package/dist/shortcuts/ehr/recruit-stage/batch-store.js +0 -78
- package/dist/shortcuts/ehr/recruit-stage/context.js +0 -231
- package/dist/shortcuts/ehr/recruit-stage/continuation.js +0 -74
- package/dist/shortcuts/ehr/recruit-stage/errors.js +0 -65
- package/dist/shortcuts/ehr/recruit-stage/fs-scan.js +0 -165
- package/dist/shortcuts/ehr/recruit-stage/host.js +0 -109
- package/dist/shortcuts/ehr/recruit-stage/operations/interview-arrange.js +0 -1065
- package/dist/shortcuts/ehr/recruit-stage/operations/interview-feedback.js +0 -295
- package/dist/shortcuts/ehr/recruit-stage/operations/jd-create.js +0 -961
- package/dist/shortcuts/ehr/recruit-stage/operations/list.js +0 -431
- package/dist/shortcuts/ehr/recruit-stage/operations/registry.js +0 -50
- package/dist/shortcuts/ehr/recruit-stage/operations/resume-import.js +0 -1655
- package/dist/shortcuts/ehr/recruit-stage/operations/search.js +0 -158
- package/dist/shortcuts/ehr/recruit-stage/operations/types.js +0 -34
- package/dist/shortcuts/ehr/recruit-stage/runtime.js +0 -31
- package/dist/shortcuts/ehr/recruit-stage/school-tiers.json +0 -318
- package/dist/shortcuts/ehr/recruit-stage/shared.js +0 -887
- package/skills/weaver-e10-jinchengda/references/contract-action-card-template.html +0 -22
- package/skills/weaver-e10-jinchengda/references/contract-action-card.md +0 -554
- package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +0 -279
- package/skills/weaver-e10-jinchengda/references/contract-card-render-internals.md +0 -483
- package/skills/weaver-e10-jinchengda/references/contract-template-selector.md +0 -46
- package/skills/weaver-e10-recruit-stage/lib/recruit-resume-photo.py +0 -194
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 直接发起流程(快速表单链接):不调 createForm、不做预检,只拼一条带预填参数的发起页 URL。
|
|
3
|
+
*
|
|
4
|
+
* 原理:E10 发起页支持「字段 id = 值」形式的 query 参数,浏览按钮用 `##{id}`(多个用逗号分隔)。
|
|
5
|
+
* 页面加载时自行填值,用户在内嵌表单里核对并点提交。
|
|
6
|
+
*
|
|
7
|
+
* 速度:字段 id 有缓存时零网络请求;缓存缺失才载一次表单把 id 学会。
|
|
8
|
+
* 边界:不做冲突检测、不做推荐、不产生单据(提交由用户在页面完成)。
|
|
9
|
+
*/
|
|
10
|
+
import { meetingSuccess, schemaOf } from '../types.js';
|
|
11
|
+
import { meetingValidationError } from '../../errors.js';
|
|
12
|
+
import { ensureFlowFieldIds, resolveAddressRoom, resolvePersonTokens, resolveSelfPerson, resolveWorkflowId, } from './create-flow.js';
|
|
13
|
+
import { readFlowPick } from './flow-memory.js';
|
|
14
|
+
import { inferRoomFloor, recommendRooms } from './room-recommend.js';
|
|
15
|
+
import { hasXiaoEEnv } from '../../../../internal/e10/auth/xiaoe.js';
|
|
16
|
+
const SLOT_RANGES = {
|
|
17
|
+
上午: ['09:00', '12:00'],
|
|
18
|
+
下午: ['13:00', '18:00'],
|
|
19
|
+
晚上: ['18:00', '21:00'],
|
|
20
|
+
全天: ['09:00', '18:00'],
|
|
21
|
+
整天: ['09:00', '18:00'],
|
|
22
|
+
};
|
|
23
|
+
function pad(value) {
|
|
24
|
+
return String(value).padStart(2, '0');
|
|
25
|
+
}
|
|
26
|
+
function today(offsetDays = 0) {
|
|
27
|
+
const date = new Date(Date.now() + offsetDays * 86400000);
|
|
28
|
+
return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}`;
|
|
29
|
+
}
|
|
30
|
+
/** 用 %20 代替 +(流程页按 + 解码会得到错误值)。 */
|
|
31
|
+
function encode(value) {
|
|
32
|
+
return encodeURIComponent(value).replace(/%20/g, '%20');
|
|
33
|
+
}
|
|
34
|
+
function splitTokens(raw) {
|
|
35
|
+
if (Array.isArray(raw))
|
|
36
|
+
return raw.flatMap((item) => splitTokens(item));
|
|
37
|
+
return String(raw ?? '')
|
|
38
|
+
.split(/[,;,;\s]+/)
|
|
39
|
+
.map((item) => item.trim())
|
|
40
|
+
.filter((item) => item !== '');
|
|
41
|
+
}
|
|
42
|
+
const formLink = {
|
|
43
|
+
name: 'meeting.eb.meeting.create.formLink',
|
|
44
|
+
resource: 'eb',
|
|
45
|
+
method: 'meeting.eb.meeting.create.formLink',
|
|
46
|
+
action: 'meeting.eb.meeting.create.formLink',
|
|
47
|
+
summary: '直接发起流程的快速通道:不做预检,按字段 id 拼出「会议申请」发起页 URL(浏览器打开即带值,用户自己提交)'
|
|
48
|
+
+ ';支持内嵌 <browsertool> 参数。⛔ 不产生单据,冲突/占用需页面自行提示。',
|
|
49
|
+
capability: 'eb.meeting',
|
|
50
|
+
risk: 'read',
|
|
51
|
+
requiresConfirmation: false,
|
|
52
|
+
inputSchema: schemaOf({
|
|
53
|
+
mt_name: { type: 'string', description: '会议名称' },
|
|
54
|
+
begin_datetime: { type: 'string', description: '开始时间 YYYY-MM-DD HH:mm(与 dateFrom+time_slot 二选一)' },
|
|
55
|
+
end_datetime: { type: 'string', description: '结束时间;只给 begin 时按 durationMinutes 推算' },
|
|
56
|
+
durationMinutes: { type: 'number', description: '时长(分钟),默认 60' },
|
|
57
|
+
dateFrom: { type: 'string', description: '日期 YYYY-MM-DD' },
|
|
58
|
+
time_slot: { type: 'string', description: '上午 / 下午 / 晚上(自动展开固定区间)' },
|
|
59
|
+
hrm_members: { type: 'string', description: '参会人员:姓名或员工 id,逗号分隔;不传默认当前登录人' },
|
|
60
|
+
address: { type: 'string', description: '会议室:名称或 id;不传则不预填' },
|
|
61
|
+
mt_desc: { type: 'string', description: '会议内容' },
|
|
62
|
+
total_member: { type: 'number', description: '参会人数;不传按人员数' },
|
|
63
|
+
our_member_count: { type: 'number', description: '我方声明人数(说了"我们 5 个人"但没给姓名时传 5):与 crm_member_count 相加作为参会人数,并参与会议室容量过滤' },
|
|
64
|
+
crm_members: { type: 'string', description: '参会客户名称;多命中取第一个,查不到则不带(不询问)' },
|
|
65
|
+
crm_member_count: { type: 'number', description: '客户方人数;没传 total_member 时用于推算参会人数' },
|
|
66
|
+
workflowId: { type: 'string', description: '指定流程 id;不传用流程记忆' },
|
|
67
|
+
}),
|
|
68
|
+
handler: async (args, env) => {
|
|
69
|
+
const session = await env.host.getSession();
|
|
70
|
+
const baseUrl = String(session?.baseUrl ?? '').replace(/\/+$/, '');
|
|
71
|
+
if (!baseUrl) {
|
|
72
|
+
throw meetingValidationError('missing_base_url', '缺少 E10 前端地址,无法拼发起页链接');
|
|
73
|
+
}
|
|
74
|
+
// 流程:显式 > 记忆 > 应用设置/固化
|
|
75
|
+
let workflowId = String(args.workflowId ?? '').trim();
|
|
76
|
+
if (!workflowId) {
|
|
77
|
+
const remembered = await readFlowPick(env).catch(() => null);
|
|
78
|
+
if (remembered?.workflowId)
|
|
79
|
+
workflowId = remembered.workflowId;
|
|
80
|
+
}
|
|
81
|
+
if (!workflowId) {
|
|
82
|
+
const resolved = await resolveWorkflowId(env, args);
|
|
83
|
+
workflowId = resolved.workflowId || resolved.candidates[0] || '';
|
|
84
|
+
}
|
|
85
|
+
if (!workflowId) {
|
|
86
|
+
throw meetingValidationError('workflow_required', '无法确定建会流程 id,请显式传 workflowId');
|
|
87
|
+
}
|
|
88
|
+
const ids = await ensureFlowFieldIds(env, workflowId);
|
|
89
|
+
// 时间
|
|
90
|
+
const warnings = [];
|
|
91
|
+
let timeProvided = false;
|
|
92
|
+
let begin = String(args.begin_datetime ?? '').trim().replace('T', ' ');
|
|
93
|
+
if (begin)
|
|
94
|
+
timeProvided = true;
|
|
95
|
+
let end = String(args.end_datetime ?? '').trim().replace('T', ' ');
|
|
96
|
+
if (!begin) {
|
|
97
|
+
const slot = String(args.time_slot ?? '').trim();
|
|
98
|
+
const dateArg = String(args.dateFrom ?? '').trim();
|
|
99
|
+
const day = dateArg || today(1);
|
|
100
|
+
const range = SLOT_RANGES[slot];
|
|
101
|
+
if (range && dateArg) {
|
|
102
|
+
// 明确"哪天 + 上午/下午/晚上"才算给了具体时间;只给时段不猜日期
|
|
103
|
+
begin = `${day} ${range[0]}`;
|
|
104
|
+
end = `${day} ${range[1]}`;
|
|
105
|
+
timeProvided = true;
|
|
106
|
+
}
|
|
107
|
+
else if (/^\d{4}-\d{2}-\d{2}$/.test(dateArg) && !slot) {
|
|
108
|
+
// 只给日期 → 默认全天 09:00–18:00(2026-11-19 用户口径)
|
|
109
|
+
begin = `${day} 09:00`;
|
|
110
|
+
end = `${day} 18:00`;
|
|
111
|
+
timeProvided = true;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
if (begin && !end) {
|
|
115
|
+
const duration = Number(args.durationMinutes) > 0 ? Math.round(Number(args.durationMinutes)) : 60;
|
|
116
|
+
const startMs = Date.parse(begin.slice(0, 16).replace(' ', 'T'));
|
|
117
|
+
if (Number.isFinite(startMs)) {
|
|
118
|
+
const d = new Date(startMs + duration * 60000);
|
|
119
|
+
end = `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())} ${pad(d.getHours())}:${pad(d.getMinutes())}`;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
// 参会人:默认本人 + 传入的人
|
|
123
|
+
const self = await resolveSelfPerson(env);
|
|
124
|
+
const tokens = splitTokens(args.hrm_members);
|
|
125
|
+
if (self && !tokens.some((token) => token === self.id || token === self.name))
|
|
126
|
+
tokens.unshift(self.id);
|
|
127
|
+
const peopleMap = await resolvePersonTokens(env, tokens);
|
|
128
|
+
const people = [...peopleMap.values()];
|
|
129
|
+
const unresolvedPeople = tokens.filter((token) => !people.some((p) => p.id === token || p.name === token));
|
|
130
|
+
if (unresolvedPeople.length > 0) {
|
|
131
|
+
warnings.push(`以下参会人未解析到员工:${unresolvedPeople.join('、')}(页面里需手填)`);
|
|
132
|
+
}
|
|
133
|
+
// 名称没给 → 用默认名(日期+时段),不问用户。
|
|
134
|
+
const mtName = String(args.mt_name ?? '').trim() || (() => {
|
|
135
|
+
const source = begin || String(args.dateFrom ?? '').trim();
|
|
136
|
+
const hit = source.match(/^(\d{4})-(\d{2})-(\d{2})/);
|
|
137
|
+
if (!hit)
|
|
138
|
+
return '预约会议';
|
|
139
|
+
const slot = String(args.time_slot ?? '').trim();
|
|
140
|
+
return `${Number(hit[2])}月${Number(hit[3])}日${slot && slot !== '全天' && slot !== '整天' ? slot : ''}会议`;
|
|
141
|
+
})();
|
|
142
|
+
// 人数先算出来:会议室容量必须 >= 人数(否则 10 人培训会被塞进 6 人茶室)。
|
|
143
|
+
// ⛔ 2026-11-19 真机:只说"我们 30 人"(our_member_count)时这个字段没被读 → 按 1 人算,
|
|
144
|
+
// 12 人房被推荐给 30 人会。口径与 create-flow 一致:我方 + 客户相加,再与 total_member / 已解析人员取大。
|
|
145
|
+
const ourCount = Number(args.our_member_count) > 0
|
|
146
|
+
? Math.round(Number(args.our_member_count))
|
|
147
|
+
: 0;
|
|
148
|
+
const crmCountArg = Number(args.crm_member_count) > 0
|
|
149
|
+
? Math.round(Number(args.crm_member_count))
|
|
150
|
+
: 0;
|
|
151
|
+
const declaredCount = Math.max(Number(args.total_member) > 0 ? Math.round(Number(args.total_member)) : 0, ourCount + crmCountArg, crmCountArg, people.length);
|
|
152
|
+
// 带客户(B 口径):只认接待类;接待类全被占就不填房,让用户改时间。
|
|
153
|
+
const hasCustomer = Array.isArray(args.crm_members)
|
|
154
|
+
? args.crm_members.length > 0
|
|
155
|
+
: String(args.crm_members ?? '').trim() !== '';
|
|
156
|
+
// 会议室:显式指定优先;「三楼 / 3楼」这类楼层按楼层推荐;没指定但有具体时间 → 自动推荐一间填进表单。
|
|
157
|
+
let roomId = '';
|
|
158
|
+
let roomName = '';
|
|
159
|
+
let roomRecommended = false;
|
|
160
|
+
/** 从候选里挑一间:先按容量上限过滤,带客户时只认接待类。返回 null 表示"不该填房"。 */
|
|
161
|
+
const pickBest = (recommended, onNoFit) => {
|
|
162
|
+
const fits = (recommended?.candidates ?? []).filter((c) => !c?.capacity?.max || Number(c.capacity.max) >= declaredCount);
|
|
163
|
+
let best = fits[0] ?? recommended?.best ?? null;
|
|
164
|
+
if (fits.length === 0 && best?.capacity?.max && declaredCount > 0 && onNoFit)
|
|
165
|
+
onNoFit(best);
|
|
166
|
+
if (hasCustomer) {
|
|
167
|
+
// B 口径:只要接待类;一间空闲的都没有 → 不填房,提示改时间。
|
|
168
|
+
const receptionFree = (recommended?.candidates ?? []).filter((c) => Array.isArray(c?.reasons) && c.reasons.some((r) => r.startsWith('带客户优先'))
|
|
169
|
+
&& (!c?.capacity?.max || Number(c.capacity.max) >= declaredCount));
|
|
170
|
+
if (receptionFree.length === 0) {
|
|
171
|
+
warnings.push('接待类会议室在该时段均不可用(或被占/容量不足),本次不填会议室;请在表单里改时间或指定房间。');
|
|
172
|
+
return null;
|
|
173
|
+
}
|
|
174
|
+
best = receptionFree[0];
|
|
175
|
+
}
|
|
176
|
+
return best;
|
|
177
|
+
};
|
|
178
|
+
const addressText = String(args.address ?? '').trim();
|
|
179
|
+
if (addressText !== '') {
|
|
180
|
+
const room = await resolveAddressRoom(env, addressText);
|
|
181
|
+
if (room?.id) {
|
|
182
|
+
roomId = String(room.id);
|
|
183
|
+
roomName = String(room.name ?? '');
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
// ⛔ 2026-11-19 真机:直发链路只做了"按名称/id 精确匹配",「三楼」这种楼层说法直接判未匹配,
|
|
187
|
+
// 表单里地点空着让用户手选 —— 与 prepare(三楼→317)口径不一致。这里补楼层推断。
|
|
188
|
+
const floor = inferRoomFloor(addressText);
|
|
189
|
+
if (floor !== null && timeProvided && begin && end) {
|
|
190
|
+
const recommended = await recommendRooms(env, {
|
|
191
|
+
beginDatetime: begin,
|
|
192
|
+
endDatetime: end,
|
|
193
|
+
memberCount: declaredCount > 0 ? declaredCount : 1,
|
|
194
|
+
hasCustomer,
|
|
195
|
+
floor: Number(floor),
|
|
196
|
+
includeBusy: false,
|
|
197
|
+
}).catch(() => null);
|
|
198
|
+
const best = pickBest(recommended, (candidate) => {
|
|
199
|
+
warnings.push(`「${addressText}」(推断为 ${floor} 楼)里没有能容纳 ${declaredCount} 人的会议室:`
|
|
200
|
+
+ `先填「${String(candidate?.name ?? '')}」(可容 ${Number(candidate.capacity.max)} 人),请确认是否够用。`);
|
|
201
|
+
});
|
|
202
|
+
if (best?.id) {
|
|
203
|
+
roomId = String(best.id);
|
|
204
|
+
roomName = String(best.name ?? '');
|
|
205
|
+
roomRecommended = true;
|
|
206
|
+
warnings.push(`「${addressText}」按楼层匹配(推断为 ${floor} 楼)→ 已填「${roomName}」(${(best.reasons ?? []).slice(0, 2).join(';')});`
|
|
207
|
+
+ '要换房间直接在表单里改。');
|
|
208
|
+
}
|
|
209
|
+
else if (hasCustomer) {
|
|
210
|
+
// pickBest 已给出"接待类不可用"的说明
|
|
211
|
+
}
|
|
212
|
+
else {
|
|
213
|
+
warnings.push(`${addressText}(推断为 ${floor} 楼)该时段没有空闲会议室,本次不填会议室;请在表单里改时间或指定房间。`);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
else if (floor !== null) {
|
|
217
|
+
warnings.push(`「${addressText}」是楼层(推断为 ${floor} 楼)但没有具体时间,未预填会议室;请在表单里选择。`);
|
|
218
|
+
}
|
|
219
|
+
else {
|
|
220
|
+
warnings.push(`会议室「${addressText}」未匹配到台账,页面里需手选`);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
else if (timeProvided && begin && end) {
|
|
225
|
+
const recommended = await recommendRooms(env, {
|
|
226
|
+
beginDatetime: begin,
|
|
227
|
+
endDatetime: end,
|
|
228
|
+
memberCount: declaredCount > 0 ? declaredCount : 1,
|
|
229
|
+
hasCustomer,
|
|
230
|
+
includeBusy: false,
|
|
231
|
+
}).catch(() => null);
|
|
232
|
+
// 候选里按容量过滤;全都不够大才退回原首选(并说明)。
|
|
233
|
+
const best = pickBest(recommended, (candidate) => {
|
|
234
|
+
warnings.push(`没有能容纳 ${declaredCount} 人的会议室(已按容量上限过滤):`
|
|
235
|
+
+ `先填「${String(candidate?.name ?? '')}」(可容 ${Number(candidate.capacity.max)} 人),请确认是否够用,或改时间/换房间。`);
|
|
236
|
+
});
|
|
237
|
+
if (best?.id) {
|
|
238
|
+
roomId = String(best.id);
|
|
239
|
+
roomName = String(best.name ?? '');
|
|
240
|
+
roomRecommended = true;
|
|
241
|
+
warnings.push(`未指定会议室 → 已自动推荐「${roomName}」(${(best.reasons ?? []).slice(0, 2).join(';')});`
|
|
242
|
+
+ '要换房间直接在表单里改,或告诉我房间名。');
|
|
243
|
+
}
|
|
244
|
+
else {
|
|
245
|
+
warnings.push('未指定会议室,且该时段没有可用候选,页面里需手选');
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
else {
|
|
249
|
+
warnings.push('没有具体时间,未推荐会议室(页面里自行选择)');
|
|
250
|
+
}
|
|
251
|
+
const params = [];
|
|
252
|
+
const pushValue = (key, value) => {
|
|
253
|
+
const id = ids[key];
|
|
254
|
+
if (!id || value === '')
|
|
255
|
+
return;
|
|
256
|
+
params.push([id, value]);
|
|
257
|
+
};
|
|
258
|
+
pushValue('mt_name', mtName);
|
|
259
|
+
pushValue('begin_datetime', begin);
|
|
260
|
+
pushValue('end_datetime', end);
|
|
261
|
+
pushValue('mt_desc', String(args.mt_desc ?? '').trim());
|
|
262
|
+
if (roomId)
|
|
263
|
+
pushValue('address', '##' + roomId);
|
|
264
|
+
if (people.length > 0 && people.length <= 20) {
|
|
265
|
+
pushValue('hrm_members', people.map((p) => '##' + p.id).join(','));
|
|
266
|
+
}
|
|
267
|
+
else if (people.length > 20) {
|
|
268
|
+
warnings.push(`参会人 ${people.length} 人,超过 20 人未预填(URL 过长会被浏览器截断)`);
|
|
269
|
+
}
|
|
270
|
+
// 人数:显式 total_member > 客户人数 > 已解析参会人数(取最大,避免"10 人"被写成 1)。
|
|
271
|
+
const crmCount = Number(args.crm_member_count) > 0
|
|
272
|
+
? Math.round(Number(args.crm_member_count))
|
|
273
|
+
: 0;
|
|
274
|
+
const totalCount = Math.max(declaredCount, crmCount, people.length);
|
|
275
|
+
pushValue('total_member', String(totalCount));
|
|
276
|
+
if (self)
|
|
277
|
+
pushValue('contacter', '##' + self.id);
|
|
278
|
+
// 参会客户:支持 [{id,name}] 与名称两种写法;多命中取第一个,**不询问**。
|
|
279
|
+
const crmRows = [];
|
|
280
|
+
const collectCrm = (item) => {
|
|
281
|
+
if (item && typeof item === 'object') {
|
|
282
|
+
const row = item;
|
|
283
|
+
const id = String(row.customerId ?? row.id ?? '').trim();
|
|
284
|
+
const name = String(row.name ?? '').trim();
|
|
285
|
+
if (id || name)
|
|
286
|
+
crmRows.push({ id, name });
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
for (const token of splitTokens(item))
|
|
290
|
+
crmRows.push({ id: '', name: token });
|
|
291
|
+
};
|
|
292
|
+
if (Array.isArray(args.crm_members))
|
|
293
|
+
args.crm_members.forEach(collectCrm);
|
|
294
|
+
else if (String(args.crm_members ?? '').trim() !== '')
|
|
295
|
+
collectCrm(args.crm_members);
|
|
296
|
+
if (crmRows.length > 0) {
|
|
297
|
+
const first = crmRows[0];
|
|
298
|
+
if (first.id) {
|
|
299
|
+
pushValue('crm_members', '##' + first.id);
|
|
300
|
+
}
|
|
301
|
+
else {
|
|
302
|
+
try {
|
|
303
|
+
const { getMeetingOperation } = await import('../registry.js');
|
|
304
|
+
const search = getMeetingOperation('meeting.eb.crm.search');
|
|
305
|
+
const found = await search.handler({ keyword: first.name, pageSize: 10 }, env);
|
|
306
|
+
const rows = (found?.data?.items ?? []);
|
|
307
|
+
const exact = rows.find((row) => String(row.name ?? '').trim() === first.name);
|
|
308
|
+
const hit = exact ?? rows[0];
|
|
309
|
+
if (hit?.customerId) {
|
|
310
|
+
pushValue('crm_members', '##' + String(hit.customerId));
|
|
311
|
+
if (rows.length > 1)
|
|
312
|
+
warnings.push(`客户「${first.name}」命中 ${rows.length} 家,已取第一个:${String(hit.name ?? '')}`);
|
|
313
|
+
}
|
|
314
|
+
else {
|
|
315
|
+
warnings.push(`客户「${first.name}」未建档,已跳过(不阻断建会)`);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
catch {
|
|
319
|
+
warnings.push(`客户「${first.name}」查询失败,已跳过`);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
const query = [
|
|
324
|
+
['workflowId', workflowId],
|
|
325
|
+
['isCreate', '1'],
|
|
326
|
+
['initialCovertName', '1'],
|
|
327
|
+
...params,
|
|
328
|
+
]
|
|
329
|
+
.map(([key, value]) => `${encode(key)}=${encode(value)}`)
|
|
330
|
+
.join('&');
|
|
331
|
+
const url = `${baseUrl}/sp/workflow/flowpage/create/${encodeURIComponent(workflowId)}?${query}`;
|
|
332
|
+
const options = typeof env.ctx?.getGlobalOptions === 'function'
|
|
333
|
+
? env.ctx.getGlobalOptions()
|
|
334
|
+
: undefined;
|
|
335
|
+
const xiaoe = hasXiaoEEnv(env.ctx?.env ?? process.env, options);
|
|
336
|
+
const title = mtName || '会议申请';
|
|
337
|
+
return meetingSuccess('meeting.eb.meeting.create.formLink', {
|
|
338
|
+
workflowId,
|
|
339
|
+
url,
|
|
340
|
+
// 小E 下不返回 Markdown 链接:否则模型会把 URL 先贴出来,内嵌表单起来后才被顶掉。
|
|
341
|
+
...(xiaoe ? {} : { markdown: `[${title}](${url})` }),
|
|
342
|
+
filled: params.map(([id, value]) => ({ fieldId: id, value })),
|
|
343
|
+
room: roomId ? { id: roomId, name: roomName, recommended: roomRecommended } : null,
|
|
344
|
+
hasXiaoEEnv: xiaoe,
|
|
345
|
+
requiresHostAction: true,
|
|
346
|
+
clientAction: { type: 'openUrl', url },
|
|
347
|
+
...(xiaoe
|
|
348
|
+
? {
|
|
349
|
+
browserTool: {
|
|
350
|
+
version: 1,
|
|
351
|
+
callId: 'call_001',
|
|
352
|
+
toolId: 'fill_form',
|
|
353
|
+
arguments: {
|
|
354
|
+
type: 'e10',
|
|
355
|
+
title: '会议申请流程',
|
|
356
|
+
src: url,
|
|
357
|
+
sdkOptions: {
|
|
358
|
+
compName: 'ui.CorsComponent',
|
|
359
|
+
routerType: 'MemoryRouter',
|
|
360
|
+
routerProps_pc: { initialEntries: [`/flowpage/create/${workflowId}`] },
|
|
361
|
+
routerProps_mobile: { initialEntries: [`/flowpage/create/${workflowId}`] },
|
|
362
|
+
params_pc: { app: '@weapp/workflow', compName: 'Comp.WffpRoute' },
|
|
363
|
+
params_mobile: { app: '@weapp/workflow', compName: 'Comp.MWffpRoute', noMDialog: true },
|
|
364
|
+
params: {
|
|
365
|
+
customParams: Object.fromEntries(params),
|
|
366
|
+
fieldAssignKeys: params.map(([id]) => id).join(','),
|
|
367
|
+
initialCovertName: 1,
|
|
368
|
+
},
|
|
369
|
+
},
|
|
370
|
+
},
|
|
371
|
+
},
|
|
372
|
+
}
|
|
373
|
+
: {}),
|
|
374
|
+
hint: xiaoe
|
|
375
|
+
? '只贴一行 <browsertool>{...}</browsertool>(browserTool 序列化,单行);⛔ 不要贴 Markdown 链接、URL 或其它说明文字。'
|
|
376
|
+
: '把 markdown 链接给用户;提交动作由用户在页面完成。',
|
|
377
|
+
}, { warnings });
|
|
378
|
+
},
|
|
379
|
+
};
|
|
380
|
+
export const meetingCreateFormLinkOperations = [formLink];
|
|
@@ -13,6 +13,7 @@ import { attachMeetingUrls } from './meeting-link.js';
|
|
|
13
13
|
import { meetingEbDecisionTaskBatchOperations } from './decision-task-batch.js';
|
|
14
14
|
import { meetingEbDecisionTaskReassignOperations } from './decision-task-reassign.js';
|
|
15
15
|
import { meetingEntryOperations } from './entry-mode.js';
|
|
16
|
+
import { meetingCreateFormLinkOperations } from './create-form-link.js';
|
|
16
17
|
/**
|
|
17
18
|
* 会议 EB 版(eBuilder)operations。
|
|
18
19
|
*
|
|
@@ -301,6 +302,7 @@ export const meetingEbOperations = [
|
|
|
301
302
|
...meetingEbDecisionTaskBatchOperations,
|
|
302
303
|
...meetingEbDecisionTaskReassignOperations,
|
|
303
304
|
...meetingEntryOperations,
|
|
305
|
+
...meetingCreateFormLinkOperations,
|
|
304
306
|
...meetingEbScheduleOperations,
|
|
305
307
|
...meetingEbCrmOperations,
|
|
306
308
|
...meetingEbCreateFlowOperations,
|
|
@@ -287,13 +287,11 @@ export async function recommendRooms(env, input) {
|
|
|
287
287
|
score += 40 - Math.min(30, freq.rank * 5);
|
|
288
288
|
}
|
|
289
289
|
if (memberCount !== null && room.maxNum > 0) {
|
|
290
|
-
|
|
290
|
+
// 只做硬性上限过滤(上面 maxNum < memberCount 已排除),不再按"浪费大间"扣分。
|
|
291
291
|
reasons.push(`容量 ${room.maxNum} 人,容纳 ${memberCount} 人`);
|
|
292
|
-
score += Math.max(0, 20 - Math.min(20, waste));
|
|
293
292
|
}
|
|
294
293
|
else if (room.maxNum > 0) {
|
|
295
294
|
reasons.push(`容量 ${room.maxNum} 人`);
|
|
296
|
-
score += 5;
|
|
297
295
|
}
|
|
298
296
|
if (belowMinCapacity) {
|
|
299
297
|
reasons.push(`该房间建议至少 ${room.minNum} 人使用(本次 ${memberCount} 人,未达建议下限,如可用请自行确认)`);
|