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
|
@@ -301,7 +301,12 @@ export function createImHost(ctx, dependencies = {}) {
|
|
|
301
301
|
}
|
|
302
302
|
return upData.fileObj;
|
|
303
303
|
}
|
|
304
|
-
/**
|
|
304
|
+
/**
|
|
305
|
+
* hrm 人员浏览 destData:uid 列表批量解析(selectIds 逗号拼接,一次最多 100,自动分批)。
|
|
306
|
+
* 禁用旧接口 /api/hrm/common/getEmployeeByKeyWords 与 /api/hrm/common/getEmployeeByIds,
|
|
307
|
+
* 统一改走 /api/hrm/common/browser/destData/resource(入参只需 browserMultiple + selectIds,
|
|
308
|
+
* 其余 browserMultiple 之外字段如 selectedData/types/wx*ConvertCount/authWecahtBook 均不需要)。
|
|
309
|
+
*/
|
|
305
310
|
async function resolveUsersByIds(ids) {
|
|
306
311
|
const unique = [...new Set(ids.map((x) => String(x)).filter(Boolean))];
|
|
307
312
|
const miss = unique.filter((id) => !personCache.has(id));
|
|
@@ -315,30 +320,41 @@ export function createImHost(ctx, dependencies = {}) {
|
|
|
315
320
|
const batch = miss.slice(i, i + 100);
|
|
316
321
|
const res = await request({
|
|
317
322
|
method: 'POST',
|
|
318
|
-
path: '/api/hrm/common/
|
|
319
|
-
body: {
|
|
320
|
-
headers: { devtype: '5' },
|
|
323
|
+
path: '/api/hrm/common/browser/destData/resource',
|
|
324
|
+
body: { browserMultiple: true, selectIds: batch.join(',') },
|
|
321
325
|
operation: 'im.person.resolveByIds',
|
|
322
326
|
timeoutMs: 15_000,
|
|
323
327
|
});
|
|
324
|
-
const
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
328
|
+
const d = res?.data ?? {};
|
|
329
|
+
const list = Array.isArray(d)
|
|
330
|
+
? d
|
|
331
|
+
: Array.isArray(d.datas)
|
|
332
|
+
? d.datas
|
|
333
|
+
: Array.isArray(d.data)
|
|
334
|
+
? d.data
|
|
335
|
+
: Array.isArray(d.userList)
|
|
336
|
+
? d.userList
|
|
337
|
+
: Array.isArray(d.rows)
|
|
338
|
+
? d.rows
|
|
339
|
+
: null;
|
|
340
|
+
if (!list) {
|
|
341
|
+
throw imValidationError('person_resolve_unexpected_shape', `人员批量解析响应结构异常(keys=${Object.keys(d).join(',')})`);
|
|
342
|
+
}
|
|
343
|
+
for (const u of list) {
|
|
344
|
+
const brief = {
|
|
345
|
+
uid: String(u.id ?? u.mainId ?? ''),
|
|
346
|
+
name: String(u.name ?? ''),
|
|
347
|
+
cid: String(u.imCid ?? u.cid ?? ''),
|
|
348
|
+
jobNum: String(u.jobNum ?? u.number ?? u.job_num ?? ''),
|
|
349
|
+
department: String(u.department ?? ''),
|
|
350
|
+
departmentId: String(u.departmentId ?? u.department_id ?? ''),
|
|
351
|
+
subCompany: String(u.subCompany ?? u.subcompany ?? ''),
|
|
352
|
+
position: String(u.position ?? ''),
|
|
353
|
+
mobile: String(u.mobile ?? ''),
|
|
354
|
+
};
|
|
355
|
+
if (brief.uid) {
|
|
356
|
+
personCache.set(brief.uid, brief);
|
|
357
|
+
result[brief.uid] = brief;
|
|
342
358
|
}
|
|
343
359
|
}
|
|
344
360
|
}
|
|
@@ -203,14 +203,42 @@ async function collectMemberConflicts(members, begin, end, excludeMtId, env, ope
|
|
|
203
203
|
// `begindatetime` ↔ 会议「结束时间」,算子 gt → 传「我的开始时间」
|
|
204
204
|
// 两者传反会变成「整段包含」关系(会议完全包住我的时段),造成大量漏检。
|
|
205
205
|
const candidate = await listAllEbRows(env, 'query_mtDetail_list', { begindatetime: begin, enddatetime: end, mt_status: ACTIVE_MT_STATUS }, operation);
|
|
206
|
-
const
|
|
206
|
+
const allCandidates = candidate.rows
|
|
207
207
|
.map((row) => ({
|
|
208
208
|
id: String(row.id ?? ''),
|
|
209
209
|
name: String(row.mt_name ?? row.name ?? ''),
|
|
210
210
|
begin: String(row.begin_datetime ?? ''),
|
|
211
211
|
end: String(row.end_datetime ?? ''),
|
|
212
|
+
// 参会人文本:页面建的单可能是 id,流程建的单是姓名,两者都要认。
|
|
213
|
+
people: [row.hrm_members, row.attend_user, row.other_members]
|
|
214
|
+
.map((value) => (Array.isArray(value)
|
|
215
|
+
? value.map((item) => `${item?.name ?? ''} ${item?.id ?? ''}`).join(' ')
|
|
216
|
+
: String(value ?? '')))
|
|
217
|
+
.join(' '),
|
|
212
218
|
}))
|
|
213
219
|
.filter((item) => item.id && item.id !== excludeMtId);
|
|
220
|
+
// 本地预筛:只对「参会人文本命中本次成员」的会议拉回执(整天 67 场 → 个位数)。
|
|
221
|
+
// 人员字段为空的行**保留**(无法判断,宁可多查一次,也不漏冲突)。
|
|
222
|
+
let candidates = allCandidates;
|
|
223
|
+
let prefilterSkipped = 0;
|
|
224
|
+
try {
|
|
225
|
+
const { resolveEmployeeNames } = await import('./create-flow.js');
|
|
226
|
+
const names = await resolveEmployeeNames(env, members);
|
|
227
|
+
const tokens = [...members, ...names.values()]
|
|
228
|
+
.map((token) => String(token ?? '').trim())
|
|
229
|
+
.filter((token) => token !== '');
|
|
230
|
+
if (tokens.length > 0) {
|
|
231
|
+
candidates = allCandidates.filter((item) => {
|
|
232
|
+
if (!item.people.trim())
|
|
233
|
+
return true;
|
|
234
|
+
return tokens.some((token) => item.people.includes(token));
|
|
235
|
+
});
|
|
236
|
+
prefilterSkipped = allCandidates.length - candidates.length;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
catch {
|
|
240
|
+
// 姓名解析失败就退回全量,不影响正确性,只影响耗时。
|
|
241
|
+
}
|
|
214
242
|
const byId = new Map(candidates.map((item) => [item.id, item]));
|
|
215
243
|
const byMeeting = new Map();
|
|
216
244
|
let receiptCalls = 0;
|
|
@@ -252,6 +280,7 @@ async function collectMemberConflicts(members, begin, end, excludeMtId, env, ope
|
|
|
252
280
|
receiptCalls,
|
|
253
281
|
candidates: candidates.length,
|
|
254
282
|
receipts,
|
|
283
|
+
prefilterSkipped,
|
|
255
284
|
};
|
|
256
285
|
}
|
|
257
286
|
/**
|
|
@@ -339,6 +368,7 @@ export async function runEbConflictCheck(input, env, operation, options = {}) {
|
|
|
339
368
|
receiptCalls: result.receiptCalls,
|
|
340
369
|
candidates: result.candidates,
|
|
341
370
|
receipts: result.receipts,
|
|
371
|
+
prefilterSkipped: result.prefilterSkipped ?? 0,
|
|
342
372
|
};
|
|
343
373
|
if (hasConflict) {
|
|
344
374
|
const detail = result.conflicts
|
|
@@ -620,6 +650,7 @@ const ebConflictMember = {
|
|
|
620
650
|
receiptCalls: member.receiptCalls,
|
|
621
651
|
candidates: member.candidates,
|
|
622
652
|
receipts: member.receipts,
|
|
653
|
+
prefilterSkipped: member.prefilterSkipped ?? 0,
|
|
623
654
|
},
|
|
624
655
|
}, outcome.warnings.length > 0 ? { warnings: outcome.warnings } : {});
|
|
625
656
|
},
|
|
@@ -703,14 +734,41 @@ export async function findCommonFreeSlots(env, input) {
|
|
|
703
734
|
// ① 会议维度
|
|
704
735
|
const candidate = await listAllEbRows(env, 'query_mtDetail_list', { begindatetime: input.rangeStart, enddatetime: input.rangeEnd, mt_status: ACTIVE_MT_STATUS }, 'meeting.eb.conflict.availability');
|
|
705
736
|
cost.candidateCalls += candidate.requests;
|
|
706
|
-
const
|
|
737
|
+
const allMeetings = candidate.rows
|
|
707
738
|
.map((row) => ({
|
|
708
739
|
id: String(row.id ?? ''),
|
|
709
740
|
name: String(row.mt_name ?? row.name ?? row.mt_name ?? ''),
|
|
710
741
|
begin: parseMinute(String(row.begin_datetime ?? '')),
|
|
711
742
|
end: parseMinute(String(row.end_datetime ?? '')),
|
|
743
|
+
people: [row.hrm_members, row.attend_user, row.other_members]
|
|
744
|
+
.map((value) => (Array.isArray(value)
|
|
745
|
+
? value.map((item) => `${item?.name ?? ''} ${item?.id ?? ''}`).join(' ')
|
|
746
|
+
: String(value ?? '')))
|
|
747
|
+
.join(' '),
|
|
712
748
|
}))
|
|
713
749
|
.filter((item) => item.id && item.id !== (input.excludeMtId ?? '') && item.begin && item.end);
|
|
750
|
+
// 本地预筛:参会人文本没命中本次成员的会议不拉回执(67 场 → 个位数);
|
|
751
|
+
// 人员字段为空的行保留,避免漏冲突。
|
|
752
|
+
let meetings = allMeetings;
|
|
753
|
+
let prefilterSkipped = 0;
|
|
754
|
+
try {
|
|
755
|
+
const { resolveEmployeeNames } = await import('./create-flow.js');
|
|
756
|
+
const names = await resolveEmployeeNames(env, members);
|
|
757
|
+
const tokens = [...members, ...names.values()]
|
|
758
|
+
.map((token) => String(token ?? '').trim())
|
|
759
|
+
.filter((token) => token !== '');
|
|
760
|
+
if (tokens.length > 0 && process.env.WEAVER_MEETING_NO_PREFILTER !== '1') {
|
|
761
|
+
meetings = allMeetings.filter((item) => {
|
|
762
|
+
if (!item.people.trim())
|
|
763
|
+
return true;
|
|
764
|
+
return tokens.some((token) => item.people.includes(token));
|
|
765
|
+
});
|
|
766
|
+
prefilterSkipped = allMeetings.length - meetings.length;
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
catch {
|
|
770
|
+
// 解析失败退回全量(只影响耗时)。
|
|
771
|
+
}
|
|
714
772
|
cost.candidates = meetings.length;
|
|
715
773
|
const byId = new Map(meetings.map((item) => [item.id, item]));
|
|
716
774
|
for (let index = 0; index < meetings.length; index += MT_ID_BATCH) {
|
|
@@ -86,7 +86,7 @@ async function loadCreateForm(env, workflowId) {
|
|
|
86
86
|
* 2026-11-04 用户要求:一次建会会查 3~5 次同一批人,每次 ~2s,必须缓存。
|
|
87
87
|
* 缓存位置 `person-v1-<租户>.json`,TTL 24h(见 person-cache.ts)。
|
|
88
88
|
*/
|
|
89
|
-
async function resolveEmployeeNames(env, ids) {
|
|
89
|
+
export async function resolveEmployeeNames(env, ids) {
|
|
90
90
|
const unique = [...new Set(ids.map((id) => String(id).trim()).filter((id) => id !== ''))];
|
|
91
91
|
if (unique.length === 0)
|
|
92
92
|
return new Map();
|
|
@@ -100,7 +100,7 @@ async function resolveEmployeeNames(env, ids) {
|
|
|
100
100
|
* 服务端解析不出员工,表单里就渲染成空。现在纯数字当 id、其余当姓名去 `hrm.employee.query`
|
|
101
101
|
* 换真实员工 id;同名有歧义(命中多条且没有全等)时不猜,留给调用方提示。
|
|
102
102
|
*/
|
|
103
|
-
async function resolvePersonTokens(env, tokens) {
|
|
103
|
+
export async function resolvePersonTokens(env, tokens) {
|
|
104
104
|
const map = new Map();
|
|
105
105
|
const unique = [...new Set(tokens.map((token) => String(token).trim()).filter((token) => token !== ''))];
|
|
106
106
|
if (unique.length === 0)
|
|
@@ -1194,6 +1194,80 @@ async function probeWorkflowCandidates(env, ids) {
|
|
|
1194
1194
|
}
|
|
1195
1195
|
return { probes, loadedForms };
|
|
1196
1196
|
}
|
|
1197
|
+
/**
|
|
1198
|
+
* 客户多命中 → 让用户选(只管 assist 入口;direct_form 走 formLink,规则是"取第一个、不询问")。
|
|
1199
|
+
*
|
|
1200
|
+
* 2026-11-19 真机:assist 入口传「东方」(客户库命中 10 家)时直接取了第一个并走到确认页,
|
|
1201
|
+
* 与 SKILL.md「② 推荐会议室 / 冲突检测 → 做成选项让用户选」不符。这里补一道选择闸:
|
|
1202
|
+
* 只在「纯客户名、且不是 名称(id) 写法、命中 >1 且没有完全同名」时返回选项;
|
|
1203
|
+
* 用户选完把 value(crm_members: [{id,name}])回传,就不会再问第二次。
|
|
1204
|
+
*/
|
|
1205
|
+
/** 从 crm_members 入参里取出「尚未指定到具体客户」的纯名称(已带 id / 名称(id) 的都不算)。 */
|
|
1206
|
+
export function crmPendingNames(raw) {
|
|
1207
|
+
const names = [];
|
|
1208
|
+
const push = (value) => {
|
|
1209
|
+
// 已带 id 的对象 = 调用方已选定,不再问
|
|
1210
|
+
if (value && typeof value === 'object')
|
|
1211
|
+
return;
|
|
1212
|
+
const text = String(value ?? '').trim();
|
|
1213
|
+
// 「名称(客户id)」也等于已指定
|
|
1214
|
+
if (text === '' || /[((]\s*\d+\s*[))]\s*$/.test(text))
|
|
1215
|
+
return;
|
|
1216
|
+
names.push(text);
|
|
1217
|
+
};
|
|
1218
|
+
if (Array.isArray(raw))
|
|
1219
|
+
raw.forEach(push);
|
|
1220
|
+
else if (raw !== undefined && raw !== null && String(raw).trim() !== '') {
|
|
1221
|
+
for (const one of String(raw).split(/[,;,;]+/))
|
|
1222
|
+
push(one.trim());
|
|
1223
|
+
}
|
|
1224
|
+
return names;
|
|
1225
|
+
}
|
|
1226
|
+
/** 客户多命中判定:命中 >1 且没有完全同名 → 需要用户选。 */
|
|
1227
|
+
export function needsCrmSelection(name, items) {
|
|
1228
|
+
if (items.length <= 1)
|
|
1229
|
+
return false;
|
|
1230
|
+
const target = name.trim();
|
|
1231
|
+
return !items.some((item) => String(item?.name ?? '').trim() === target);
|
|
1232
|
+
}
|
|
1233
|
+
async function buildCrmSelection(args, env) {
|
|
1234
|
+
const name = crmPendingNames(args.crm_members)[0];
|
|
1235
|
+
if (!name)
|
|
1236
|
+
return null;
|
|
1237
|
+
const { getMeetingOperation } = await import('../registry.js');
|
|
1238
|
+
const search = getMeetingOperation('meeting.eb.crm.search');
|
|
1239
|
+
const found = await search.handler({ keyword: name, limit: 10 }, env).catch(() => null);
|
|
1240
|
+
const items = (found?.data?.items ?? []);
|
|
1241
|
+
if (!needsCrmSelection(name, items))
|
|
1242
|
+
return null;
|
|
1243
|
+
return {
|
|
1244
|
+
status: 'NEEDS_SELECTION',
|
|
1245
|
+
selectionType: 'crm',
|
|
1246
|
+
ui: { component: 'choice', multiple: false, recommendedKey: 'A' },
|
|
1247
|
+
message: `客户「${name}」在客户库命中 ${items.length} 家,请选择要关联的一家。`,
|
|
1248
|
+
options: items.slice(0, 6).map((item, index) => ({
|
|
1249
|
+
key: String.fromCharCode(65 + index),
|
|
1250
|
+
label: String(item?.name ?? ''),
|
|
1251
|
+
reason: index === 0 ? '客户库首个命中' : '名称相近的客户',
|
|
1252
|
+
value: { crm_members: [{ id: String(item?.customerId ?? ''), name: String(item?.name ?? '') }] },
|
|
1253
|
+
})),
|
|
1254
|
+
hint: '用户点选后把 value 原样回传(crm_members 为 [{id,name}]),不要再追问客户。',
|
|
1255
|
+
};
|
|
1256
|
+
}
|
|
1257
|
+
/**
|
|
1258
|
+
* 入口结论(纯规则):声明必须带令牌才算数。
|
|
1259
|
+
* - `entryMode` + 令牌校验通过 → 采信(用户刚在选项里点过);
|
|
1260
|
+
* - 只有声明、没有令牌 → 视为模型自填,**不采信**,交回入口选项让用户选;
|
|
1261
|
+
* - 完全没声明 → 由调用方再去看上游标记(流程工具可能已经问过)。
|
|
1262
|
+
*/
|
|
1263
|
+
export function decideEntryMode(input) {
|
|
1264
|
+
const declared = String(input.declared ?? '').trim();
|
|
1265
|
+
if (declared !== 'assist' && declared !== 'direct_form')
|
|
1266
|
+
return { mode: '', reason: 'none' };
|
|
1267
|
+
if (input.tokenOk === true)
|
|
1268
|
+
return { mode: declared, reason: 'token' };
|
|
1269
|
+
return { mode: '', reason: 'unverified' };
|
|
1270
|
+
}
|
|
1197
1271
|
const ebMeetingCreateFlowPrepare = {
|
|
1198
1272
|
name: 'meeting.eb.meeting.create.flow.prepare',
|
|
1199
1273
|
resource: 'eb',
|
|
@@ -1329,22 +1403,25 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
1329
1403
|
// 预检各阶段耗时(debugTimings:true 时随结果返回)
|
|
1330
1404
|
// 发起流程优先:明确要"发起/创建流程"时不做预检与推荐,只填单。
|
|
1331
1405
|
let skipPreflight = args.skipPreflight === true;
|
|
1332
|
-
//
|
|
1333
|
-
|
|
1334
|
-
args = { ...args, skipPreflight: true };
|
|
1335
|
-
skipPreflight = true;
|
|
1336
|
-
}
|
|
1406
|
+
// ⛔ 不要在这里凭 entryMode 直接置 skipPreflight:那会让模型自填的 direct_form 一票绕过入口询问。
|
|
1407
|
+
// 令牌校验通过后,下面 `entryResolved === 'direct_form'` 分支再置 skipPreflight。
|
|
1337
1408
|
// 会话内入口标记:流程工具已问过时,这里不再弹入口选项。
|
|
1338
|
-
//
|
|
1409
|
+
// ⛔ 2026-11-20 真机:同一句「预定个明天下午的会议」发 4 次,2 次直接出表单、2 次弹选项 ——
|
|
1410
|
+
// 原因是模型有时自己填 entryMode=direct_form,而 e812212 之后"声明即采信",自填值直接放行。
|
|
1411
|
+
// 恢复本意:**声明必须带本轮令牌才算数**;没令牌就当没声明,回到入口选项让用户选。
|
|
1339
1412
|
let entryResolved = '';
|
|
1340
1413
|
const rawEntry = String(args.entryMode ?? '').trim();
|
|
1341
1414
|
if (rawEntry === 'assist' || rawEntry === 'direct_form') {
|
|
1342
1415
|
const { verifyEntryToken } = await import('./entry-mode.js');
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1416
|
+
const tokenOk = await verifyEntryToken(env, String(args.entryToken ?? ''), rawEntry).catch(() => false);
|
|
1417
|
+
const decision = decideEntryMode({ declared: rawEntry, tokenOk });
|
|
1418
|
+
if (decision.mode)
|
|
1419
|
+
entryResolved = decision.mode;
|
|
1420
|
+
else
|
|
1421
|
+
env.__entryTokenMissing = 1;
|
|
1346
1422
|
}
|
|
1347
|
-
|
|
1423
|
+
// 旧标记只在"调用方没声明入口"时才参考;声明了但令牌不对 → 直接问用户,不拿旧标记顶替。
|
|
1424
|
+
if (!entryResolved && rawEntry === '') {
|
|
1348
1425
|
const { readEntryChoice } = await import('./entry-mode.js');
|
|
1349
1426
|
const mark = await readEntryChoice(env).catch(() => null);
|
|
1350
1427
|
if (mark?.choice)
|
|
@@ -1357,6 +1434,12 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
1357
1434
|
args = { ...args, skipPreflight: true };
|
|
1358
1435
|
skipPreflight = true;
|
|
1359
1436
|
}
|
|
1437
|
+
// 方案 1:① 直发不再跑预检(人员日程/回执/冲突都不查),直接交给 formLink 出表单。
|
|
1438
|
+
if (entryResolved === 'direct_form') {
|
|
1439
|
+
env.__meetingTimings = { ...env.__meetingTimings, directDelegated: 1 };
|
|
1440
|
+
const { getMeetingOperation } = await import('../registry.js');
|
|
1441
|
+
return getMeetingOperation('meeting.eb.meeting.create.formLink').handler(args, env);
|
|
1442
|
+
}
|
|
1360
1443
|
// 四要素已齐(人 + 时间含上午/下午/晚上 + 地点)⇒ 直接发起,不预检、不问入口。
|
|
1361
1444
|
const beginRaw = String(args.begin_datetime ?? '').trim();
|
|
1362
1445
|
const timeReady = /^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}/.test(beginRaw)
|
|
@@ -1386,6 +1469,15 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
1386
1469
|
hint: '用户点选后把 value 原样带回(含 entryMode),不要自己替用户选。',
|
|
1387
1470
|
}, { meta: { notes: ['入口确认:用户未表态时必须先问一次'] } });
|
|
1388
1471
|
}
|
|
1472
|
+
// 客户多命中:assist 入口做成选项让用户选(direct_form 已在上面转 formLink,取第一个不问)。
|
|
1473
|
+
if (entryResolved === 'assist') {
|
|
1474
|
+
const crmSelection = await buildCrmSelection(args, env).catch(() => null);
|
|
1475
|
+
if (crmSelection) {
|
|
1476
|
+
return meetingSuccess('meeting.eb.meeting.create.flow.prepare', crmSelection, {
|
|
1477
|
+
meta: { notes: ['客户多命中:按入口规则(assist)交给用户选,不替用户决定'] },
|
|
1478
|
+
});
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1389
1481
|
if (args.skipPreflight === true) {
|
|
1390
1482
|
// 直接发起流程:仍要推荐会议室(自动选最优),但不弹时段/房间候选、不等待确认。
|
|
1391
1483
|
// 四要素已齐(人+时间+地点)时地点由用户给定,跳过推荐与冲突查询,只填单。
|
|
@@ -1427,7 +1519,13 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
1427
1519
|
早上: ['09:00', '12:00'],
|
|
1428
1520
|
下午: ['13:00', '18:00'],
|
|
1429
1521
|
晚上: ['18:00', '21:00'],
|
|
1522
|
+
全天: ['09:00', '18:00'],
|
|
1523
|
+
整天: ['09:00', '18:00'],
|
|
1430
1524
|
};
|
|
1525
|
+
// 只给日期、没给时段 → 默认全天 09:00–18:00(2026-11-19 用户口径),不再弹时段候选。
|
|
1526
|
+
if (!beginText && String(args.time_slot ?? '').trim() === '' && String(args.dateFrom ?? '').trim() !== '') {
|
|
1527
|
+
args = { ...args, time_slot: '全天' };
|
|
1528
|
+
}
|
|
1431
1529
|
let slotConfirmed = false;
|
|
1432
1530
|
// ① 结构化入参 `time_slot`(推荐调用方用这个,比让模型拼中文串可靠):
|
|
1433
1531
|
// 用户说"明天上午"就传 { dateFrom: '2026-11-03', time_slot: '上午' }。
|
|
@@ -2019,9 +2117,11 @@ const ebMeetingCreateFlowPrepare = {
|
|
|
2019
2117
|
candidates: roomRec.candidates,
|
|
2020
2118
|
meta: roomRec.meta,
|
|
2021
2119
|
};
|
|
2022
|
-
//
|
|
2023
|
-
// 只有显式
|
|
2024
|
-
|
|
2120
|
+
// 没给会议室 → 默认按常用/容量推荐一间直接填(2026-11-19 用户口径):
|
|
2121
|
+
// 只有显式 askRoom:true / autoRoom:false 才弹候选;
|
|
2122
|
+
// 显式传了房间但没 roomConfirmed 仍要确认(防 agent 自己乱挑)。
|
|
2123
|
+
const autoRoom = args.autoRoom === true
|
|
2124
|
+
|| (args.autoRoom !== false && args.askRoom !== true && !addressInput);
|
|
2025
2125
|
// 传了房间但没用户确认标记 → 同样要给选项:把"你指定的那间"排到第一位,其余房间照常列在下面。
|
|
2026
2126
|
// 2026-10-30 事故:agent 自己挑了「测试会议室1」传进来,CLI 直接用,用户问"会议室没让我选"。
|
|
2027
2127
|
const needRoomPick = !addressInput || !roomConfirmed;
|
|
@@ -3012,6 +3112,9 @@ const ebMeetingCreateFlowApply = {
|
|
|
3012
3112
|
contextId: submittedData.contextId ?? null,
|
|
3013
3113
|
// 宿主要靠这段 <browsertool> 才能把表单拉到浏览器里填,必须原样透出
|
|
3014
3114
|
finalMarkdown: submittedData.finalMarkdown ?? null,
|
|
3115
|
+
// finalMarkdown 会被 stdout 压缩截断(长字符串默认 200 字符);URL 字段豁免压缩,
|
|
3116
|
+
// 这里单独给出完整 formUrl,模型可用它重建 <browsertool>。
|
|
3117
|
+
formUrl: (String(submittedData.finalMarkdown ?? '').match(/https?:\/\/[^\s"'<>]+/) ?? [])[0] ?? null,
|
|
3015
3118
|
// 与 finalMarkdown 相邻的硬提示:模型「以为 CLI 已经打开了表单」是这次翻车的直接原因
|
|
3016
3119
|
finalMarkdownHint: '把 finalMarkdown 原样贴在回复最后(从 <browsertool> 到 </browsertool>,不包代码块);'
|
|
3017
3120
|
+ '不贴这段=用户看不到表单,也不能说"表单已打开"。',
|
|
@@ -3344,6 +3447,12 @@ const ebMeetingCreateFlowQuick = {
|
|
|
3344
3447
|
},
|
|
3345
3448
|
}, { required: ['mt_name', 'confirm'] }),
|
|
3346
3449
|
handler: async (args, env) => {
|
|
3450
|
+
// 直接发起流程(入口选①):quick 自动转给 formLink,一次调用出表单,不报错、不重试。
|
|
3451
|
+
if (String(args.entryMode ?? '') === 'direct_form'
|
|
3452
|
+
|| args.skipPreflight === true && args.confirm !== true) {
|
|
3453
|
+
const { getMeetingOperation } = await import('../registry.js');
|
|
3454
|
+
return getMeetingOperation('meeting.eb.meeting.create.formLink').handler(args, env);
|
|
3455
|
+
}
|
|
3347
3456
|
if (args.confirm !== true) {
|
|
3348
3457
|
throw meetingValidationError('confirmation_required', '一步建会会直接提交流程,必须显式传 confirm=true;如只想看方案,请用 meeting.eb.meeting.create.flow.prepare');
|
|
3349
3458
|
}
|
|
@@ -3559,3 +3668,17 @@ export const meetingEbCreateFlowOperations = [
|
|
|
3559
3668
|
ebMeetingCreateFlowApply,
|
|
3560
3669
|
ebMeetingCreateFlowQuick,
|
|
3561
3670
|
];
|
|
3671
|
+
/** 取(或补齐)语义键 → fieldId 映射;供不载表单的快速链接复用。 */
|
|
3672
|
+
export async function ensureFlowFieldIds(env, workflowId) {
|
|
3673
|
+
const cached = await readFlowFieldMap(env, workflowId);
|
|
3674
|
+
if (cached.mt_name && cached.begin_datetime && cached.end_datetime && cached.crm_members)
|
|
3675
|
+
return cached;
|
|
3676
|
+
const form = await loadCreateForm(env, workflowId);
|
|
3677
|
+
const dummy = {
|
|
3678
|
+
mt_name: 'x', begin_datetime: 'x', end_datetime: 'x', mt_desc: 'x',
|
|
3679
|
+
address: 'x', hrm_members: 'x', total_member: 1, contacter: 'x', crm_members: 'x',
|
|
3680
|
+
};
|
|
3681
|
+
const { resolved } = mapFields(form.fields, dummy, {});
|
|
3682
|
+
await writeFlowFieldMap(env, workflowId, form.workflowName, resolved);
|
|
3683
|
+
return resolved;
|
|
3684
|
+
}
|