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
|
@@ -3,7 +3,7 @@ const require = __esbuildCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
fetchEbAppSettings,
|
|
5
5
|
findCommonFreeSlots
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XHSEK2VM.js";
|
|
7
7
|
import {
|
|
8
8
|
dayOf,
|
|
9
9
|
filterUsages,
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
loadDayUsages,
|
|
13
13
|
loadRooms,
|
|
14
14
|
recommendRooms
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-I3MOFD6Q.js";
|
|
16
16
|
import {
|
|
17
17
|
cacheScopeSuffix,
|
|
18
18
|
readCache,
|
|
19
19
|
writeCache
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KYDXWYFB.js";
|
|
21
21
|
import {
|
|
22
22
|
EB_BASE,
|
|
23
23
|
SCHEMA_DATETIME_MINUTE,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
meetingValidationError,
|
|
27
27
|
schemaOf,
|
|
28
28
|
writeBody
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-4AFWOGOV.js";
|
|
30
30
|
import {
|
|
31
31
|
CONTINUATION_TTL_MS,
|
|
32
32
|
CONTINUATION_TTL_SECONDS
|
|
@@ -194,7 +194,7 @@ async function meetingUrlMap(env, ids) {
|
|
|
194
194
|
const unique = [...new Set(ids.map((id) => String(id).trim()).filter((id) => id !== ""))];
|
|
195
195
|
if (unique.length === 0) return out;
|
|
196
196
|
try {
|
|
197
|
-
const { getMeetingOperation } = await import("./registry-
|
|
197
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
198
198
|
const link = getMeetingOperation("meeting.link");
|
|
199
199
|
const result = await link.handler({ type: "meeting", dataIds: unique }, env);
|
|
200
200
|
const rows = result?.data?.items ?? result?.data?.links ?? [];
|
|
@@ -274,7 +274,7 @@ async function resolvePersonsCached(env, ids, options = {}) {
|
|
|
274
274
|
for (let index = 0; index < missing.length; index += BATCH_MAX) {
|
|
275
275
|
const chunk = missing.slice(index, index + BATCH_MAX);
|
|
276
276
|
try {
|
|
277
|
-
const { hrmEmployeeOperations } = await import("./employee-
|
|
277
|
+
const { hrmEmployeeOperations } = await import("./employee-PGMY6NI6.js");
|
|
278
278
|
const batch = hrmEmployeeOperations.find((operation) => operation.name === "hrm.employee.batch");
|
|
279
279
|
if (!batch) break;
|
|
280
280
|
const result = await batch.handler({ ids: chunk }, env);
|
|
@@ -336,9 +336,9 @@ function workflowEnv(env) {
|
|
|
336
336
|
return env;
|
|
337
337
|
}
|
|
338
338
|
async function loadCreateForm(env, workflowId) {
|
|
339
|
-
const { createWorkflowHost } = await import("./host-
|
|
339
|
+
const { createWorkflowHost } = await import("./host-2ED2KC4X.js");
|
|
340
340
|
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
341
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
341
|
+
const { getWorkflowOperation } = await import("./registry-BAWCWV4D.js");
|
|
342
342
|
const wfEnv = {
|
|
343
343
|
...workflowEnv(env),
|
|
344
344
|
host: createWorkflowHost(env.ctx),
|
|
@@ -380,7 +380,7 @@ async function resolvePersonTokens(env, tokens) {
|
|
|
380
380
|
}
|
|
381
381
|
if (nameLike.length > 0) {
|
|
382
382
|
try {
|
|
383
|
-
const { hrmEmployeeOperations } = await import("./employee-
|
|
383
|
+
const { hrmEmployeeOperations } = await import("./employee-PGMY6NI6.js");
|
|
384
384
|
const query = hrmEmployeeOperations.find((operation) => operation.name === "hrm.employee.query");
|
|
385
385
|
for (const name of nameLike) {
|
|
386
386
|
if (!query) break;
|
|
@@ -443,7 +443,7 @@ async function resolveAddressRoom(env, input) {
|
|
|
443
443
|
const text = String(input ?? "").trim();
|
|
444
444
|
if (!text) return null;
|
|
445
445
|
const ref = parseRoomRef(text);
|
|
446
|
-
const { loadRooms: loadRooms2 } = await import("./room-recommend-
|
|
446
|
+
const { loadRooms: loadRooms2 } = await import("./room-recommend-I7QQRHEL.js");
|
|
447
447
|
let rooms = [];
|
|
448
448
|
try {
|
|
449
449
|
rooms = (await loadRooms2(env, {})).rooms;
|
|
@@ -474,7 +474,7 @@ async function resolveRoomValue(env, input) {
|
|
|
474
474
|
const ref = parseRoomRef(text);
|
|
475
475
|
if (ref.id) {
|
|
476
476
|
try {
|
|
477
|
-
const { getMeetingOperation } = await import("./registry-
|
|
477
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
478
478
|
const detail = await getMeetingOperation("meeting.eb.room.detail").handler({ id: ref.id }, env);
|
|
479
479
|
const main = detail?.data?.mainTable ?? detail?.data?.data?.mainTable ?? {};
|
|
480
480
|
const name = String(main.room_name ?? "").trim() || ref.name || "";
|
|
@@ -586,7 +586,7 @@ async function shapeBrowserValues(env, values, options = {}) {
|
|
|
586
586
|
const nameOnly = rows.filter((row) => row.id === "" && row.name !== "");
|
|
587
587
|
if (nameOnly.length > 0) {
|
|
588
588
|
try {
|
|
589
|
-
const { getMeetingOperation } = await import("./registry-
|
|
589
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
590
590
|
const search = getMeetingOperation("meeting.eb.crm.search");
|
|
591
591
|
for (const row of nameOnly) {
|
|
592
592
|
const found = await search.handler({ keyword: row.name, limit: 5 }, env).catch(() => null);
|
|
@@ -787,7 +787,7 @@ async function resolveAutoCrmDetailRows(env, raw) {
|
|
|
787
787
|
const missing = [];
|
|
788
788
|
if (entries.length > 0) {
|
|
789
789
|
try {
|
|
790
|
-
const { getMeetingOperation } = await import("./registry-
|
|
790
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
791
791
|
const search = getMeetingOperation("meeting.eb.crm.search");
|
|
792
792
|
for (const entry of entries) {
|
|
793
793
|
if (entry.contacts.length > 0) continue;
|
|
@@ -1046,7 +1046,7 @@ function shouldAutoPickFlow(args) {
|
|
|
1046
1046
|
async function sendInvitationToGroup(env, groupId, filePath, warnings) {
|
|
1047
1047
|
const started = Date.now();
|
|
1048
1048
|
try {
|
|
1049
|
-
const { buildImEnv } = await import("./group-chat-
|
|
1049
|
+
const { buildImEnv } = await import("./group-chat-UM665WDZ.js");
|
|
1050
1050
|
const { getImOperation } = await import("./registry-E5RQJVWN.js");
|
|
1051
1051
|
const imEnv = await buildImEnv(env);
|
|
1052
1052
|
const prepared = await getImOperation("im.msg.send.group.prepare").handler(
|
|
@@ -1149,6 +1149,53 @@ async function probeWorkflowCandidates(env, ids) {
|
|
|
1149
1149
|
}
|
|
1150
1150
|
return { probes, loadedForms };
|
|
1151
1151
|
}
|
|
1152
|
+
function crmPendingNames(raw) {
|
|
1153
|
+
const names = [];
|
|
1154
|
+
const push = (value) => {
|
|
1155
|
+
if (value && typeof value === "object") return;
|
|
1156
|
+
const text = String(value ?? "").trim();
|
|
1157
|
+
if (text === "" || /[((]\s*\d+\s*[))]\s*$/.test(text)) return;
|
|
1158
|
+
names.push(text);
|
|
1159
|
+
};
|
|
1160
|
+
if (Array.isArray(raw)) raw.forEach(push);
|
|
1161
|
+
else if (raw !== void 0 && raw !== null && String(raw).trim() !== "") {
|
|
1162
|
+
for (const one of String(raw).split(/[,;,;]+/)) push(one.trim());
|
|
1163
|
+
}
|
|
1164
|
+
return names;
|
|
1165
|
+
}
|
|
1166
|
+
function needsCrmSelection(name, items) {
|
|
1167
|
+
if (items.length <= 1) return false;
|
|
1168
|
+
const target = name.trim();
|
|
1169
|
+
return !items.some((item) => String(item?.name ?? "").trim() === target);
|
|
1170
|
+
}
|
|
1171
|
+
async function buildCrmSelection(args, env) {
|
|
1172
|
+
const name = crmPendingNames(args.crm_members)[0];
|
|
1173
|
+
if (!name) return null;
|
|
1174
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
1175
|
+
const search = getMeetingOperation("meeting.eb.crm.search");
|
|
1176
|
+
const found = await search.handler({ keyword: name, limit: 10 }, env).catch(() => null);
|
|
1177
|
+
const items = found?.data?.items ?? [];
|
|
1178
|
+
if (!needsCrmSelection(name, items)) return null;
|
|
1179
|
+
return {
|
|
1180
|
+
status: "NEEDS_SELECTION",
|
|
1181
|
+
selectionType: "crm",
|
|
1182
|
+
ui: { component: "choice", multiple: false, recommendedKey: "A" },
|
|
1183
|
+
message: `\u5BA2\u6237\u300C${name}\u300D\u5728\u5BA2\u6237\u5E93\u547D\u4E2D ${items.length} \u5BB6\uFF0C\u8BF7\u9009\u62E9\u8981\u5173\u8054\u7684\u4E00\u5BB6\u3002`,
|
|
1184
|
+
options: items.slice(0, 6).map((item, index) => ({
|
|
1185
|
+
key: String.fromCharCode(65 + index),
|
|
1186
|
+
label: String(item?.name ?? ""),
|
|
1187
|
+
reason: index === 0 ? "\u5BA2\u6237\u5E93\u9996\u4E2A\u547D\u4E2D" : "\u540D\u79F0\u76F8\u8FD1\u7684\u5BA2\u6237",
|
|
1188
|
+
value: { crm_members: [{ id: String(item?.customerId ?? ""), name: String(item?.name ?? "") }] }
|
|
1189
|
+
})),
|
|
1190
|
+
hint: "\u7528\u6237\u70B9\u9009\u540E\u628A value \u539F\u6837\u56DE\u4F20\uFF08crm_members \u4E3A [{id,name}]\uFF09\uFF0C\u4E0D\u8981\u518D\u8FFD\u95EE\u5BA2\u6237\u3002"
|
|
1191
|
+
};
|
|
1192
|
+
}
|
|
1193
|
+
function decideEntryMode(input) {
|
|
1194
|
+
const declared = String(input.declared ?? "").trim();
|
|
1195
|
+
if (declared !== "assist" && declared !== "direct_form") return { mode: "", reason: "none" };
|
|
1196
|
+
if (input.tokenOk === true) return { mode: declared, reason: "token" };
|
|
1197
|
+
return { mode: "", reason: "unverified" };
|
|
1198
|
+
}
|
|
1152
1199
|
var ebMeetingCreateFlowPrepare = {
|
|
1153
1200
|
name: "meeting.eb.meeting.create.flow.prepare",
|
|
1154
1201
|
resource: "eb",
|
|
@@ -1248,20 +1295,17 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1248
1295
|
),
|
|
1249
1296
|
handler: async (args, env) => {
|
|
1250
1297
|
let skipPreflight = args.skipPreflight === true;
|
|
1251
|
-
if (args.entryMode === "direct_form") {
|
|
1252
|
-
args = { ...args, skipPreflight: true };
|
|
1253
|
-
skipPreflight = true;
|
|
1254
|
-
}
|
|
1255
1298
|
let entryResolved = "";
|
|
1256
1299
|
const rawEntry = String(args.entryMode ?? "").trim();
|
|
1257
1300
|
if (rawEntry === "assist" || rawEntry === "direct_form") {
|
|
1258
|
-
const { verifyEntryToken } = await import("./entry-mode-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1301
|
+
const { verifyEntryToken } = await import("./entry-mode-S2ENJ6GZ.js");
|
|
1302
|
+
const tokenOk = await verifyEntryToken(env, String(args.entryToken ?? ""), rawEntry).catch(() => false);
|
|
1303
|
+
const decision = decideEntryMode({ declared: rawEntry, tokenOk });
|
|
1304
|
+
if (decision.mode) entryResolved = decision.mode;
|
|
1305
|
+
else env.__entryTokenMissing = 1;
|
|
1306
|
+
}
|
|
1307
|
+
if (!entryResolved && rawEntry === "") {
|
|
1308
|
+
const { readEntryChoice } = await import("./entry-mode-S2ENJ6GZ.js");
|
|
1265
1309
|
const mark2 = await readEntryChoice(env).catch(() => null);
|
|
1266
1310
|
if (mark2?.choice) entryResolved = mark2.choice;
|
|
1267
1311
|
}
|
|
@@ -1271,6 +1315,11 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1271
1315
|
args = { ...args, skipPreflight: true };
|
|
1272
1316
|
skipPreflight = true;
|
|
1273
1317
|
}
|
|
1318
|
+
if (entryResolved === "direct_form") {
|
|
1319
|
+
env.__meetingTimings = { ...env.__meetingTimings, directDelegated: 1 };
|
|
1320
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
1321
|
+
return getMeetingOperation("meeting.eb.meeting.create.formLink").handler(args, env);
|
|
1322
|
+
}
|
|
1274
1323
|
const beginRaw = String(args.begin_datetime ?? "").trim();
|
|
1275
1324
|
const timeReady = /^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}/.test(beginRaw) || String(args.time_slot ?? "").trim() !== "" && (String(args.dateFrom ?? "").trim() !== "" || /^\d{4}-\d{2}-\d{2}/.test(beginRaw));
|
|
1276
1325
|
const placeReady = String(args.address ?? args.customize_address ?? "").trim() !== "";
|
|
@@ -1281,7 +1330,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1281
1330
|
skipPreflight = true;
|
|
1282
1331
|
}
|
|
1283
1332
|
if (!entryResolved && args.skipPreflight !== true) {
|
|
1284
|
-
const { createEntryToken } = await import("./entry-mode-
|
|
1333
|
+
const { createEntryToken } = await import("./entry-mode-S2ENJ6GZ.js");
|
|
1285
1334
|
const tokenDirect = await createEntryToken(env, "direct_form");
|
|
1286
1335
|
const tokenAssist = await createEntryToken(env, "assist");
|
|
1287
1336
|
return meetingSuccess("meeting.eb.meeting.create.flow.prepare", {
|
|
@@ -1296,6 +1345,14 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1296
1345
|
hint: "\u7528\u6237\u70B9\u9009\u540E\u628A value \u539F\u6837\u5E26\u56DE\uFF08\u542B entryMode\uFF09\uFF0C\u4E0D\u8981\u81EA\u5DF1\u66FF\u7528\u6237\u9009\u3002"
|
|
1297
1346
|
}, { meta: { notes: ["\u5165\u53E3\u786E\u8BA4\uFF1A\u7528\u6237\u672A\u8868\u6001\u65F6\u5FC5\u987B\u5148\u95EE\u4E00\u6B21"] } });
|
|
1298
1347
|
}
|
|
1348
|
+
if (entryResolved === "assist") {
|
|
1349
|
+
const crmSelection = await buildCrmSelection(args, env).catch(() => null);
|
|
1350
|
+
if (crmSelection) {
|
|
1351
|
+
return meetingSuccess("meeting.eb.meeting.create.flow.prepare", crmSelection, {
|
|
1352
|
+
meta: { notes: ["\u5BA2\u6237\u591A\u547D\u4E2D\uFF1A\u6309\u5165\u53E3\u89C4\u5219\uFF08assist\uFF09\u4EA4\u7ED9\u7528\u6237\u9009\uFF0C\u4E0D\u66FF\u7528\u6237\u51B3\u5B9A"] }
|
|
1353
|
+
});
|
|
1354
|
+
}
|
|
1355
|
+
}
|
|
1299
1356
|
if (args.skipPreflight === true) {
|
|
1300
1357
|
const hasAddress = String(args.address ?? args.customize_address ?? "").trim() !== "";
|
|
1301
1358
|
args = {
|
|
@@ -1321,8 +1378,13 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1321
1378
|
\u4E0A\u5348: ["09:00", "12:00"],
|
|
1322
1379
|
\u65E9\u4E0A: ["09:00", "12:00"],
|
|
1323
1380
|
\u4E0B\u5348: ["13:00", "18:00"],
|
|
1324
|
-
\u665A\u4E0A: ["18:00", "21:00"]
|
|
1381
|
+
\u665A\u4E0A: ["18:00", "21:00"],
|
|
1382
|
+
\u5168\u5929: ["09:00", "18:00"],
|
|
1383
|
+
\u6574\u5929: ["09:00", "18:00"]
|
|
1325
1384
|
};
|
|
1385
|
+
if (!beginText && String(args.time_slot ?? "").trim() === "" && String(args.dateFrom ?? "").trim() !== "") {
|
|
1386
|
+
args = { ...args, time_slot: "\u5168\u5929" };
|
|
1387
|
+
}
|
|
1326
1388
|
let slotConfirmed = false;
|
|
1327
1389
|
const slotArg = String(args.time_slot ?? "").trim();
|
|
1328
1390
|
if (slotArg !== "" && !/^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}/.test(beginText)) {
|
|
@@ -1370,7 +1432,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1370
1432
|
}
|
|
1371
1433
|
}
|
|
1372
1434
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
1373
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
1435
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-3P7EWGNZ.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
1374
1436
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
1375
1437
|
if (memberIds.length > 0) {
|
|
1376
1438
|
const callerToken2 = String(args.caller ?? "").trim();
|
|
@@ -1415,7 +1477,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1415
1477
|
if (!skipPreflight && (!beginHasTime || !timeConfirmed)) {
|
|
1416
1478
|
const day2 = /^\d{4}-\d{2}-\d{2}/.test(beginText) ? beginText.slice(0, 10) : String(args.dateFrom ?? "").trim().slice(0, 10) || tomorrowIso();
|
|
1417
1479
|
const duration = Number(args.durationMinutes) > 0 ? Math.round(Number(args.durationMinutes)) : 60;
|
|
1418
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1480
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
1419
1481
|
const suggested = await getMeetingOperation("meeting.eb.meeting.create.suggest").handler(
|
|
1420
1482
|
{
|
|
1421
1483
|
dateFrom: day2,
|
|
@@ -1585,7 +1647,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1585
1647
|
usageFromCache: usageData.fromCache
|
|
1586
1648
|
};
|
|
1587
1649
|
}
|
|
1588
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1650
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
1589
1651
|
const result = await getMeetingOperation("meeting.eb.conflict.room").handler(
|
|
1590
1652
|
{ beginDatetime: beginText, endDatetime: endText, address: room.id },
|
|
1591
1653
|
env
|
|
@@ -1593,7 +1655,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1593
1655
|
return { room, ...result?.data ?? {} };
|
|
1594
1656
|
})().catch(noteFailure("\u4F1A\u8BAE\u5BA4**\u5360\u7528**\u68C0\u6D4B")) : Promise.resolve(null);
|
|
1595
1657
|
const conflictTask = cachedChecks ? Promise.resolve({ data: { conflicts: cachedChecks.memberConflicts } }) : enrich && beginText && endText && memberIds.length > 0 ? (async () => {
|
|
1596
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1658
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
1597
1659
|
return getMeetingOperation("meeting.eb.conflict.member").handler(
|
|
1598
1660
|
{ beginDatetime: beginText, endDatetime: endText, hrmMembers: memberIds.join(",") },
|
|
1599
1661
|
env
|
|
@@ -1736,7 +1798,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1736
1798
|
candidates: roomRec.candidates,
|
|
1737
1799
|
meta: roomRec.meta
|
|
1738
1800
|
};
|
|
1739
|
-
const autoRoom = args.autoRoom === true;
|
|
1801
|
+
const autoRoom = args.autoRoom === true || args.autoRoom !== false && args.askRoom !== true && !addressInput;
|
|
1740
1802
|
const needRoomPick = !addressInput || !roomConfirmed;
|
|
1741
1803
|
let pickOptions = roomOptions;
|
|
1742
1804
|
if (addressInput && !roomConfirmed) {
|
|
@@ -2004,7 +2066,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
2004
2066
|
invitationDocInfo = { docId: cachedDoc.docId, name: cachedDoc.name };
|
|
2005
2067
|
} else {
|
|
2006
2068
|
try {
|
|
2007
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2069
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
2008
2070
|
const publish = getMeetingOperation("meeting.invitation.publish");
|
|
2009
2071
|
const renderExtra = {};
|
|
2010
2072
|
if (String(args.guest_org ?? "").trim()) renderExtra.guest_org = String(args.guest_org).trim();
|
|
@@ -2326,7 +2388,7 @@ async function patchMeetingCrmMembers(env, meetingId, ids, count, settleMsList =
|
|
|
2326
2388
|
});
|
|
2327
2389
|
};
|
|
2328
2390
|
const readBack = async () => {
|
|
2329
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2391
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
2330
2392
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
2331
2393
|
const read = await detail.handler({ id: String(meetingId).trim() }, env);
|
|
2332
2394
|
return String(read?.data?.data?.crm_members ?? "").trim();
|
|
@@ -2353,7 +2415,7 @@ async function renderPreInvitation(payload, env) {
|
|
|
2353
2415
|
const fields = payload?.invitationFields ?? {};
|
|
2354
2416
|
const started = Date.now();
|
|
2355
2417
|
try {
|
|
2356
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2418
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
2357
2419
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2358
2420
|
const rendered = await render.handler(
|
|
2359
2421
|
{
|
|
@@ -2429,9 +2491,9 @@ var ebMeetingCreateFlowApply = {
|
|
|
2429
2491
|
throw meetingValidationError("context_mismatch", "\u786E\u8BA4\u4E0A\u4E0B\u6587\u5DF2\u53D8\u5316\uFF08\u79DF\u6237\u6216\u767B\u5F55\u8D26\u53F7\u4E0D\u540C\uFF09\uFF0C\u8BF7\u91CD\u65B0\u6267\u884C prepare");
|
|
2430
2492
|
}
|
|
2431
2493
|
const payload = lease?.payload ?? {};
|
|
2432
|
-
const { createWorkflowHost } = await import("./host-
|
|
2494
|
+
const { createWorkflowHost } = await import("./host-2ED2KC4X.js");
|
|
2433
2495
|
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
2434
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
2496
|
+
const { getWorkflowOperation } = await import("./registry-BAWCWV4D.js");
|
|
2435
2497
|
const wfEnv = {
|
|
2436
2498
|
...workflowEnv(env),
|
|
2437
2499
|
host: createWorkflowHost(env.ctx),
|
|
@@ -2481,7 +2543,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2481
2543
|
const groupPayload2 = payload?.groupChat;
|
|
2482
2544
|
if (groupPayload2) {
|
|
2483
2545
|
try {
|
|
2484
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2546
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-UM665WDZ.js");
|
|
2485
2547
|
groupChat2 = {
|
|
2486
2548
|
...await ensureMeetingGroupChat(env, {
|
|
2487
2549
|
meetingName: String(payload.mtName ?? ""),
|
|
@@ -2497,7 +2559,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2497
2559
|
}
|
|
2498
2560
|
if (groupChat2 && groupChat2.ok) {
|
|
2499
2561
|
try {
|
|
2500
|
-
const { savePendingForm } = await import("./group-chat-
|
|
2562
|
+
const { savePendingForm } = await import("./group-chat-UM665WDZ.js");
|
|
2501
2563
|
await savePendingForm(env, {
|
|
2502
2564
|
workflowId: String(payload.workflowId ?? ""),
|
|
2503
2565
|
workflowName: String(payload.workflowName ?? ""),
|
|
@@ -2527,6 +2589,9 @@ var ebMeetingCreateFlowApply = {
|
|
|
2527
2589
|
contextId: submittedData.contextId ?? null,
|
|
2528
2590
|
// 宿主要靠这段 <browsertool> 才能把表单拉到浏览器里填,必须原样透出
|
|
2529
2591
|
finalMarkdown: submittedData.finalMarkdown ?? null,
|
|
2592
|
+
// finalMarkdown 会被 stdout 压缩截断(长字符串默认 200 字符);URL 字段豁免压缩,
|
|
2593
|
+
// 这里单独给出完整 formUrl,模型可用它重建 <browsertool>。
|
|
2594
|
+
formUrl: (String(submittedData.finalMarkdown ?? "").match(/https?:\/\/[^\s"'<>]+/) ?? [])[0] ?? null,
|
|
2530
2595
|
// 与 finalMarkdown 相邻的硬提示:模型「以为 CLI 已经打开了表单」是这次翻车的直接原因
|
|
2531
2596
|
finalMarkdownHint: '\u628A finalMarkdown \u539F\u6837\u8D34\u5728\u56DE\u590D\u6700\u540E\uFF08\u4ECE <browsertool> \u5230 </browsertool>\uFF0C\u4E0D\u5305\u4EE3\u7801\u5757\uFF09\uFF1B\u4E0D\u8D34\u8FD9\u6BB5\uFF1D\u7528\u6237\u770B\u4E0D\u5230\u8868\u5355\uFF0C\u4E5F\u4E0D\u80FD\u8BF4"\u8868\u5355\u5DF2\u6253\u5F00"\u3002',
|
|
2532
2597
|
message: String(submittedData.message ?? ""),
|
|
@@ -2564,7 +2629,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2564
2629
|
let meetingId = "";
|
|
2565
2630
|
const timings = { submitMs: Date.now() - submitStartedAt };
|
|
2566
2631
|
if (waitSeconds > 0) {
|
|
2567
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2632
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
2568
2633
|
const list = getMeetingOperation("meeting.eb.meeting.list");
|
|
2569
2634
|
const deadline = Date.now() + Math.min(waitSeconds, 30) * 1e3;
|
|
2570
2635
|
const pollStart = Date.now();
|
|
@@ -2614,7 +2679,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2614
2679
|
if (groupPayload) {
|
|
2615
2680
|
const groupStart = Date.now();
|
|
2616
2681
|
try {
|
|
2617
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2682
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-UM665WDZ.js");
|
|
2618
2683
|
const group = await ensureMeetingGroupChat(env, {
|
|
2619
2684
|
meetingName: String(payload.mtName ?? ""),
|
|
2620
2685
|
beginDatetime: String(groupPayload.beginDatetime ?? ""),
|
|
@@ -2646,7 +2711,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2646
2711
|
if (meetingId) {
|
|
2647
2712
|
const invitationStart = Date.now();
|
|
2648
2713
|
try {
|
|
2649
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2714
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
2650
2715
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2651
2716
|
const rendered = await render.handler(
|
|
2652
2717
|
{
|
|
@@ -2806,6 +2871,10 @@ var ebMeetingCreateFlowQuick = {
|
|
|
2806
2871
|
{ required: ["mt_name", "confirm"] }
|
|
2807
2872
|
),
|
|
2808
2873
|
handler: async (args, env) => {
|
|
2874
|
+
if (String(args.entryMode ?? "") === "direct_form" || args.skipPreflight === true && args.confirm !== true) {
|
|
2875
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-FNI5E76J.js");
|
|
2876
|
+
return getMeetingOperation2("meeting.eb.meeting.create.formLink").handler(args, env);
|
|
2877
|
+
}
|
|
2809
2878
|
if (args.confirm !== true) {
|
|
2810
2879
|
throw meetingValidationError(
|
|
2811
2880
|
"confirmation_required",
|
|
@@ -2820,7 +2889,7 @@ var ebMeetingCreateFlowQuick = {
|
|
|
2820
2889
|
`\u4F1A\u8BAE\u540D\u79F0/\u5185\u5BB9\u91CC\u63D0\u5230\u5BA2\u6237\u300C${crmMentioned}\u300D\uFF0C\u4F46\u6CA1\u4F20 crm_members \u2014\u2014 \u63D0\u4EA4\u540E\u300C\u53C2\u4F1A\u5BA2\u6237\u300D\u4F1A\u662F\u7A7A\u7684\u3002\u5148 meeting.eb.crm.search {"keyword":"${crmMentioned}"} \u62FF items[].customerId\uFF0C\u518D\u628A crm_members:[{"id":"<customerId>","name":"<\u5B8C\u6574\u5BA2\u6237\u540D>"}] \u4E00\u8D77\u4F20\uFF08\u5FC5\u987B\u5E26\u540D\u79F0\uFF0C\u53EA\u7ED9 id \u4F1A\u88AB\u9759\u9ED8\u5B58\u7A7A\uFF09\uFF1B\u786E\u5B9E\u4E0D\u9700\u8981\u586B\u53C2\u4F1A\u5BA2\u6237\u5C31\u4F20 crm_skip:true\u3002`
|
|
2821
2890
|
);
|
|
2822
2891
|
}
|
|
2823
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2892
|
+
const { getMeetingOperation } = await import("./registry-FNI5E76J.js");
|
|
2824
2893
|
const prepareStartedAt = Date.now();
|
|
2825
2894
|
const { submit_mode: _submitMode, confirm: _confirm, ...prepareArgs } = args;
|
|
2826
2895
|
const prepared = await getMeetingOperation("meeting.eb.meeting.create.flow.prepare").handler(
|
|
@@ -2919,7 +2988,7 @@ var ebMeetingCreateSuggest = {
|
|
|
2919
2988
|
const topN = Math.max(1, Math.min(5, Number(args.topN) || 3));
|
|
2920
2989
|
const rawMembers = String(args.hrm_members ?? "").split(/[,;,;\s]+/).map((item) => item.trim()).filter((item) => item !== "");
|
|
2921
2990
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
2922
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
2991
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-3P7EWGNZ.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
2923
2992
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
2924
2993
|
const unresolved = rawMembers.filter((item) => nameToId.get(item) === void 0 && !/^\d+$/.test(item));
|
|
2925
2994
|
const selfId = await env.host.getSession().then((s) => String(s?.userId ?? "")).catch(() => "");
|
|
@@ -3003,10 +3072,32 @@ var meetingEbCreateFlowOperations = [
|
|
|
3003
3072
|
ebMeetingCreateFlowApply,
|
|
3004
3073
|
ebMeetingCreateFlowQuick
|
|
3005
3074
|
];
|
|
3075
|
+
async function ensureFlowFieldIds(env, workflowId) {
|
|
3076
|
+
const cached = await readFlowFieldMap(env, workflowId);
|
|
3077
|
+
if (cached.mt_name && cached.begin_datetime && cached.end_datetime && cached.crm_members) return cached;
|
|
3078
|
+
const form = await loadCreateForm(env, workflowId);
|
|
3079
|
+
const dummy = {
|
|
3080
|
+
mt_name: "x",
|
|
3081
|
+
begin_datetime: "x",
|
|
3082
|
+
end_datetime: "x",
|
|
3083
|
+
mt_desc: "x",
|
|
3084
|
+
address: "x",
|
|
3085
|
+
hrm_members: "x",
|
|
3086
|
+
total_member: 1,
|
|
3087
|
+
contacter: "x",
|
|
3088
|
+
crm_members: "x"
|
|
3089
|
+
};
|
|
3090
|
+
const { resolved } = mapFields(form.fields, dummy, {});
|
|
3091
|
+
await writeFlowFieldMap(env, workflowId, form.workflowName, resolved);
|
|
3092
|
+
return resolved;
|
|
3093
|
+
}
|
|
3006
3094
|
|
|
3007
3095
|
export {
|
|
3096
|
+
readFlowPick,
|
|
3008
3097
|
meetingUrlMap,
|
|
3009
3098
|
attachMeetingUrls,
|
|
3099
|
+
resolveEmployeeNames,
|
|
3100
|
+
resolvePersonTokens,
|
|
3010
3101
|
resolveSelfPerson,
|
|
3011
3102
|
applySelfPersonDefaults,
|
|
3012
3103
|
parseRoomRef,
|
|
@@ -3025,7 +3116,11 @@ export {
|
|
|
3025
3116
|
fixedFlowIdsForEnv,
|
|
3026
3117
|
shouldAutoPickFlow,
|
|
3027
3118
|
resolveWorkflowId,
|
|
3119
|
+
crmPendingNames,
|
|
3120
|
+
needsCrmSelection,
|
|
3121
|
+
decideEntryMode,
|
|
3028
3122
|
patchMeetingCrmMembers,
|
|
3029
3123
|
renderPreInvitation,
|
|
3030
|
-
meetingEbCreateFlowOperations
|
|
3124
|
+
meetingEbCreateFlowOperations,
|
|
3125
|
+
ensureFlowFieldIds
|
|
3031
3126
|
};
|