weaver-work-cli 0.1.62 → 0.1.63
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-BLDYBZDX.js} +5 -4
- package/dist/chunks/{archive-oa-HEDSIUUY.js → archive-oa-3GJ3TWXR.js} +5 -4
- package/dist/chunks/{asset-HYH4W357.js → asset-AFXJN4CK.js} +5 -4
- package/dist/chunks/{asset-idle-N7REBNGL.js → asset-idle-VUJXWGWJ.js} +5 -4
- package/dist/chunks/{attachment-content-VYYA75FR.js → attachment-content-VMJA7NSQ.js} +3 -3
- package/dist/chunks/{blog-SLMZZICV.js → blog-EREB35VU.js} +5 -4
- package/dist/chunks/{caizhilian-RV43KKBT.js → caizhilian-ATM2JO5S.js} +5 -5
- package/dist/chunks/{calendar-DMVZ4OLY.js → calendar-E26ZIH7S.js} +5 -4
- package/dist/chunks/{chunk-6XSSAUNW.js → chunk-4OB22YKE.js} +48 -12
- package/dist/chunks/{chunk-UBGWIXU3.js → chunk-5CY37VLS.js} +131 -38
- package/dist/chunks/{chunk-EGANE35F.js → chunk-6G2JARDK.js} +1 -1
- package/dist/chunks/{chunk-WIWDVETN.js → chunk-6VCQLZXE.js} +75 -76
- package/dist/chunks/{chunk-E5YD5JWR.js → chunk-BY3WDJO5.js} +1 -1
- package/dist/chunks/{chunk-IW7A2IQY.js → chunk-C4YQJFZV.js} +43 -15
- package/dist/chunks/{chunk-BQYX2UX5.js → chunk-C5PIGPGX.js} +5 -3
- package/dist/chunks/{chunk-UBRWONP4.js → chunk-EOZHSNND.js} +2 -2
- package/dist/chunks/{chunk-UQFPF4EX.js → chunk-G3ZM57PD.js} +2 -2
- package/dist/chunks/{chunk-XT77MP54.js → chunk-GOBNIGWS.js} +410 -24
- package/dist/chunks/{chunk-KY3R42RS.js → chunk-GQK6WLOS.js} +5 -3
- package/dist/chunks/{chunk-BIA2NKUG.js → chunk-HEJPVXD3.js} +5 -5
- package/dist/chunks/{chunk-ILALC2N6.js → chunk-I4C2KR2G.js} +1 -1
- package/dist/chunks/{chunk-YI2YMW5N.js → chunk-IGICM3WJ.js} +2 -2
- package/dist/chunks/chunk-IN6NXQ26.js +680 -0
- package/dist/chunks/{chunk-VBFBMM7G.js → chunk-LOVAIGM2.js} +387 -70
- package/dist/chunks/{chunk-H6YOMI3U.js → chunk-OMAGCLUE.js} +5 -3
- package/dist/chunks/{chunk-VNYOUAWV.js → chunk-QAMIIFP6.js} +11 -11
- package/dist/chunks/{chunk-QBDXJS2W.js → chunk-QZYKZ7MQ.js} +16 -8
- package/dist/chunks/{chunk-V2LASYKO.js → chunk-RR45ELVE.js} +30 -24
- package/dist/chunks/{chunk-NRYDJN4J.js → chunk-RV2JAA5I.js} +89 -8
- package/dist/chunks/{chunk-TEZHIB6T.js → chunk-SDPC7BG2.js} +5 -3
- package/dist/chunks/{chunk-T2KVJFWJ.js → chunk-SHBDXEUE.js} +4 -7
- package/dist/chunks/{chunk-P6TXQK75.js → chunk-THMBDCRA.js} +5 -3
- package/dist/chunks/chunk-TJN4PIYO.js +47 -0
- package/dist/chunks/{chunk-DTCQFTHW.js → chunk-TNFIUZ4H.js} +3 -3
- package/dist/chunks/{chunk-JFAWZX53.js → chunk-UPVAQJKS.js} +282 -131
- package/dist/chunks/{chunk-KXJA42EA.js → chunk-WPBZQVLS.js} +1 -1
- package/dist/chunks/{conflict-GFJRS6I7.js → conflict-AMNTM3FV.js} +2 -2
- package/dist/chunks/{contract-U3ZGNRWB.js → contract-PLO2V2NO.js} +2333 -4426
- package/dist/chunks/{cowork-EX7PKIDK.js → cowork-FZAXE6FO.js} +5 -4
- package/dist/chunks/{create-flow-EJZD434E.js → create-flow-2DAUN7HU.js} +16 -6
- package/dist/chunks/{data-FOODGAMF.js → data-7NXMWET4.js} +3 -3
- package/dist/chunks/{ebuilder-form-I2EOKODG.js → ebuilder-form-DEYHX6M7.js} +4 -4
- package/dist/chunks/{ehr-TE4RFNID.js → ehr-QQH2DYYA.js} +244 -151
- package/dist/chunks/{employee-DR5Y64TI.js → employee-PGMY6NI6.js} +1 -1
- package/dist/chunks/{entry-mode-ZOLSXEGX.js → entry-mode-2JTVEKMP.js} +3 -3
- package/dist/chunks/{env-TID5NFR6.js → env-2JZMXC6I.js} +2 -2
- package/dist/chunks/{esb-7L6MHYLB.js → esb-I5ZFHJUK.js} +8 -8
- package/dist/chunks/{factory-OG7BPMH5.js → factory-XIATYHU6.js} +1 -1
- package/dist/chunks/{fna-6V2ENR3Y.js → fna-3V2TL6B2.js} +5 -4
- package/dist/chunks/{group-chat-5DKPWIHL.js → group-chat-CVYUZCOQ.js} +3 -3
- package/dist/chunks/{host-TJ5VVHM7.js → host-4DP7C7YQ.js} +4 -4
- package/dist/chunks/{host-3DLYA54R.js → host-4KQCAEWA.js} +4 -4
- package/dist/chunks/{host-ONZC6AE7.js → host-4X2F3JPQ.js} +4 -4
- package/dist/chunks/{host-OGBHL75G.js → host-BD7NAM33.js} +4 -4
- package/dist/chunks/{host-VTPAWDZV.js → host-CBONEAZS.js} +4 -4
- package/dist/chunks/{host-GOJHHTPY.js → host-L37QVNIV.js} +4 -4
- package/dist/chunks/{hrm-2N7NFQDZ.js → hrm-OL3IKN7C.js} +6 -6
- package/dist/chunks/{im-XCH47ZBN.js → im-YXQWUF3R.js} +4 -4
- package/dist/chunks/{invoice-5KJ7T774.js → invoice-4WY32PR2.js} +4 -4
- package/dist/chunks/{jiuchuanhui-PL6DRPBM.js → jiuchuanhui-L6SHLONH.js} +5 -4
- package/dist/chunks/{lazy-dispatch-UATEN7H7.js → lazy-dispatch-OYE6QV24.js} +5 -5
- package/dist/chunks/{mail-Q7Z4CQ4D.js → mail-PZV2KNRU.js} +5 -4
- package/dist/chunks/{meeting-5E3BNARL.js → meeting-6SOBCC6N.js} +16 -15
- package/dist/chunks/{minute-doc-NXRE5C77.js → minute-doc-KSJSJNOH.js} +4 -4
- package/dist/chunks/{okr-3O3XNYOK.js → okr-B76FW5M2.js} +5 -4
- package/dist/chunks/{operations-EZWG72FH.js → operations-YOMEGFLV.js} +5 -5
- package/dist/chunks/{performance-Y7CPNSOR.js → performance-4VBKUPFO.js} +5 -4
- package/dist/chunks/{plan-BLGPZF5M.js → plan-HBNZRQTI.js} +5 -4
- package/dist/chunks/{project-6MZMLJMP.js → project-IV6FWK74.js} +5 -4
- package/dist/chunks/{reception-F2VT2X52.js → reception-BR5YURT6.js} +3 -3
- package/dist/chunks/{recruit-stage-4ETIBMIW.js → recruit-stage-4HQ6OGXT.js} +654 -336
- package/dist/chunks/{registry-I4DVPDMU.js → registry-7LICMV5J.js} +12 -12
- package/dist/chunks/{registry-3FYSWV3U.js → registry-JFQEFC7E.js} +3 -3
- package/dist/chunks/{registry-3UGIWH53.js → registry-JMNOXRST.js} +2 -2
- package/dist/chunks/{registry-7RS74TCK.js → registry-MZJQX65Q.js} +5 -5
- package/dist/chunks/{room-recommend-GWCVKCXW.js → room-recommend-43GLLE7Y.js} +4 -4
- package/dist/chunks/{schedule-6AN63MJQ.js → schedule-ZQ42BEW6.js} +4 -4
- package/dist/chunks/{smart-extract-SR4SJJKN.js → smart-extract-QKAEAZGM.js} +3 -3
- package/dist/chunks/{workflow-KF7FA2UQ.js → workflow-6HV7H5PC.js} +10 -7
- package/dist/index.js +34 -34
- package/dist/internal/e10/auth/commands.js +21 -1
- 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/index.js +14 -39
- package/dist/shortcuts/contract/manifest.js +115 -270
- package/dist/shortcuts/contract/operations/compare-report.js +437 -0
- package/dist/shortcuts/contract/operations/compare.js +2 -0
- 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} +98 -25
- package/dist/shortcuts/contract/operations/ledger.js +315 -1
- package/dist/shortcuts/contract/operations/metrics.js +93 -0
- package/dist/shortcuts/contract/operations/modeltext.js +3 -3
- package/dist/shortcuts/contract/operations/page.js +8 -4
- package/dist/shortcuts/contract/operations/performance.js +53 -0
- package/dist/shortcuts/contract/operations/quote-recognize.js +289 -0
- package/dist/shortcuts/contract/operations/quote-submit.js +264 -0
- 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/triage.js +13 -6
- 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/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 +116 -7
- 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/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 +28 -0
- 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 +237 -347
- 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 +109 -185
- package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +12 -4
- 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 +21 -12
- package/skills/weaver-e10-jinchengda/references/contract-compare-report-template.html +10 -18
- package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +18 -17
- 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 +73 -104
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +32 -37
- package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +12 -10
- package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +70 -82
- package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +37 -33
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +94 -27
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +5 -5
- package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +9 -15
- package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +9 -4
- package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +59 -32
- package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +7 -5
- package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +21 -13
- package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +13 -13
- package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +6 -5
- package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +250 -0
- package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +11 -20
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +203 -54
- package/skills/weaver-e10-jinchengda/references/contract-request-status.md +4 -11
- package/skills/weaver-e10-jinchengda/references/contract-request-write.md +11 -17
- 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-workflow-discovery.md +10 -16
- package/skills/weaver-e10-jinchengda/references/orchestration.md +31 -33
- 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 +83 -531
- 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 +3 -1
- package/skills/weaver-e10-meeting/references/create-guardrails.md +14 -8
- 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/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-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 +10 -10
- 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-4OB22YKE.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-SHBDXEUE.js";
|
|
16
16
|
import {
|
|
17
17
|
cacheScopeSuffix,
|
|
18
18
|
readCache,
|
|
19
19
|
writeCache
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-I4C2KR2G.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-TNFIUZ4H.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-7LICMV5J.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-CBONEAZS.js");
|
|
340
340
|
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
341
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
341
|
+
const { getWorkflowOperation } = await import("./registry-JFQEFC7E.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-43GLLE7Y.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-7LICMV5J.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-7LICMV5J.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-7LICMV5J.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-CVYUZCOQ.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,47 @@ 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-7LICMV5J.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
|
+
}
|
|
1152
1193
|
var ebMeetingCreateFlowPrepare = {
|
|
1153
1194
|
name: "meeting.eb.meeting.create.flow.prepare",
|
|
1154
1195
|
resource: "eb",
|
|
@@ -1255,13 +1296,15 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1255
1296
|
let entryResolved = "";
|
|
1256
1297
|
const rawEntry = String(args.entryMode ?? "").trim();
|
|
1257
1298
|
if (rawEntry === "assist" || rawEntry === "direct_form") {
|
|
1258
|
-
const { verifyEntryToken } = await import("./entry-mode-
|
|
1259
|
-
|
|
1260
|
-
|
|
1299
|
+
const { verifyEntryToken } = await import("./entry-mode-2JTVEKMP.js");
|
|
1300
|
+
const tokenOk = await verifyEntryToken(env, String(args.entryToken ?? ""), rawEntry).catch(() => false);
|
|
1301
|
+
entryResolved = rawEntry;
|
|
1302
|
+
if (!tokenOk) {
|
|
1303
|
+
env.__entryTokenMissing = 1;
|
|
1261
1304
|
}
|
|
1262
1305
|
}
|
|
1263
1306
|
if (!entryResolved) {
|
|
1264
|
-
const { readEntryChoice } = await import("./entry-mode-
|
|
1307
|
+
const { readEntryChoice } = await import("./entry-mode-2JTVEKMP.js");
|
|
1265
1308
|
const mark2 = await readEntryChoice(env).catch(() => null);
|
|
1266
1309
|
if (mark2?.choice) entryResolved = mark2.choice;
|
|
1267
1310
|
}
|
|
@@ -1271,6 +1314,11 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1271
1314
|
args = { ...args, skipPreflight: true };
|
|
1272
1315
|
skipPreflight = true;
|
|
1273
1316
|
}
|
|
1317
|
+
if (entryResolved === "direct_form") {
|
|
1318
|
+
env.__meetingTimings = { ...env.__meetingTimings, directDelegated: 1 };
|
|
1319
|
+
const { getMeetingOperation } = await import("./registry-7LICMV5J.js");
|
|
1320
|
+
return getMeetingOperation("meeting.eb.meeting.create.formLink").handler(args, env);
|
|
1321
|
+
}
|
|
1274
1322
|
const beginRaw = String(args.begin_datetime ?? "").trim();
|
|
1275
1323
|
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
1324
|
const placeReady = String(args.address ?? args.customize_address ?? "").trim() !== "";
|
|
@@ -1281,7 +1329,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1281
1329
|
skipPreflight = true;
|
|
1282
1330
|
}
|
|
1283
1331
|
if (!entryResolved && args.skipPreflight !== true) {
|
|
1284
|
-
const { createEntryToken } = await import("./entry-mode-
|
|
1332
|
+
const { createEntryToken } = await import("./entry-mode-2JTVEKMP.js");
|
|
1285
1333
|
const tokenDirect = await createEntryToken(env, "direct_form");
|
|
1286
1334
|
const tokenAssist = await createEntryToken(env, "assist");
|
|
1287
1335
|
return meetingSuccess("meeting.eb.meeting.create.flow.prepare", {
|
|
@@ -1296,6 +1344,14 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1296
1344
|
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
1345
|
}, { meta: { notes: ["\u5165\u53E3\u786E\u8BA4\uFF1A\u7528\u6237\u672A\u8868\u6001\u65F6\u5FC5\u987B\u5148\u95EE\u4E00\u6B21"] } });
|
|
1298
1346
|
}
|
|
1347
|
+
if (entryResolved === "assist") {
|
|
1348
|
+
const crmSelection = await buildCrmSelection(args, env).catch(() => null);
|
|
1349
|
+
if (crmSelection) {
|
|
1350
|
+
return meetingSuccess("meeting.eb.meeting.create.flow.prepare", crmSelection, {
|
|
1351
|
+
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"] }
|
|
1352
|
+
});
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1299
1355
|
if (args.skipPreflight === true) {
|
|
1300
1356
|
const hasAddress = String(args.address ?? args.customize_address ?? "").trim() !== "";
|
|
1301
1357
|
args = {
|
|
@@ -1321,8 +1377,13 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1321
1377
|
\u4E0A\u5348: ["09:00", "12:00"],
|
|
1322
1378
|
\u65E9\u4E0A: ["09:00", "12:00"],
|
|
1323
1379
|
\u4E0B\u5348: ["13:00", "18:00"],
|
|
1324
|
-
\u665A\u4E0A: ["18:00", "21:00"]
|
|
1380
|
+
\u665A\u4E0A: ["18:00", "21:00"],
|
|
1381
|
+
\u5168\u5929: ["09:00", "18:00"],
|
|
1382
|
+
\u6574\u5929: ["09:00", "18:00"]
|
|
1325
1383
|
};
|
|
1384
|
+
if (!beginText && String(args.time_slot ?? "").trim() === "" && String(args.dateFrom ?? "").trim() !== "") {
|
|
1385
|
+
args = { ...args, time_slot: "\u5168\u5929" };
|
|
1386
|
+
}
|
|
1326
1387
|
let slotConfirmed = false;
|
|
1327
1388
|
const slotArg = String(args.time_slot ?? "").trim();
|
|
1328
1389
|
if (slotArg !== "" && !/^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}/.test(beginText)) {
|
|
@@ -1370,7 +1431,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1370
1431
|
}
|
|
1371
1432
|
}
|
|
1372
1433
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
1373
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
1434
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-ZQ42BEW6.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
1374
1435
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
1375
1436
|
if (memberIds.length > 0) {
|
|
1376
1437
|
const callerToken2 = String(args.caller ?? "").trim();
|
|
@@ -1415,7 +1476,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1415
1476
|
if (!skipPreflight && (!beginHasTime || !timeConfirmed)) {
|
|
1416
1477
|
const day2 = /^\d{4}-\d{2}-\d{2}/.test(beginText) ? beginText.slice(0, 10) : String(args.dateFrom ?? "").trim().slice(0, 10) || tomorrowIso();
|
|
1417
1478
|
const duration = Number(args.durationMinutes) > 0 ? Math.round(Number(args.durationMinutes)) : 60;
|
|
1418
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1479
|
+
const { getMeetingOperation } = await import("./registry-7LICMV5J.js");
|
|
1419
1480
|
const suggested = await getMeetingOperation("meeting.eb.meeting.create.suggest").handler(
|
|
1420
1481
|
{
|
|
1421
1482
|
dateFrom: day2,
|
|
@@ -1585,7 +1646,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1585
1646
|
usageFromCache: usageData.fromCache
|
|
1586
1647
|
};
|
|
1587
1648
|
}
|
|
1588
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1649
|
+
const { getMeetingOperation } = await import("./registry-7LICMV5J.js");
|
|
1589
1650
|
const result = await getMeetingOperation("meeting.eb.conflict.room").handler(
|
|
1590
1651
|
{ beginDatetime: beginText, endDatetime: endText, address: room.id },
|
|
1591
1652
|
env
|
|
@@ -1593,7 +1654,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1593
1654
|
return { room, ...result?.data ?? {} };
|
|
1594
1655
|
})().catch(noteFailure("\u4F1A\u8BAE\u5BA4**\u5360\u7528**\u68C0\u6D4B")) : Promise.resolve(null);
|
|
1595
1656
|
const conflictTask = cachedChecks ? Promise.resolve({ data: { conflicts: cachedChecks.memberConflicts } }) : enrich && beginText && endText && memberIds.length > 0 ? (async () => {
|
|
1596
|
-
const { getMeetingOperation } = await import("./registry-
|
|
1657
|
+
const { getMeetingOperation } = await import("./registry-7LICMV5J.js");
|
|
1597
1658
|
return getMeetingOperation("meeting.eb.conflict.member").handler(
|
|
1598
1659
|
{ beginDatetime: beginText, endDatetime: endText, hrmMembers: memberIds.join(",") },
|
|
1599
1660
|
env
|
|
@@ -1736,7 +1797,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
1736
1797
|
candidates: roomRec.candidates,
|
|
1737
1798
|
meta: roomRec.meta
|
|
1738
1799
|
};
|
|
1739
|
-
const autoRoom = args.autoRoom === true;
|
|
1800
|
+
const autoRoom = args.autoRoom === true || args.autoRoom !== false && args.askRoom !== true && !addressInput;
|
|
1740
1801
|
const needRoomPick = !addressInput || !roomConfirmed;
|
|
1741
1802
|
let pickOptions = roomOptions;
|
|
1742
1803
|
if (addressInput && !roomConfirmed) {
|
|
@@ -2004,7 +2065,7 @@ var ebMeetingCreateFlowPrepare = {
|
|
|
2004
2065
|
invitationDocInfo = { docId: cachedDoc.docId, name: cachedDoc.name };
|
|
2005
2066
|
} else {
|
|
2006
2067
|
try {
|
|
2007
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2068
|
+
const { getMeetingOperation } = await import("./registry-7LICMV5J.js");
|
|
2008
2069
|
const publish = getMeetingOperation("meeting.invitation.publish");
|
|
2009
2070
|
const renderExtra = {};
|
|
2010
2071
|
if (String(args.guest_org ?? "").trim()) renderExtra.guest_org = String(args.guest_org).trim();
|
|
@@ -2326,7 +2387,7 @@ async function patchMeetingCrmMembers(env, meetingId, ids, count, settleMsList =
|
|
|
2326
2387
|
});
|
|
2327
2388
|
};
|
|
2328
2389
|
const readBack = async () => {
|
|
2329
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2390
|
+
const { getMeetingOperation } = await import("./registry-7LICMV5J.js");
|
|
2330
2391
|
const detail = getMeetingOperation("meeting.eb.meeting.detail");
|
|
2331
2392
|
const read = await detail.handler({ id: String(meetingId).trim() }, env);
|
|
2332
2393
|
return String(read?.data?.data?.crm_members ?? "").trim();
|
|
@@ -2353,7 +2414,7 @@ async function renderPreInvitation(payload, env) {
|
|
|
2353
2414
|
const fields = payload?.invitationFields ?? {};
|
|
2354
2415
|
const started = Date.now();
|
|
2355
2416
|
try {
|
|
2356
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2417
|
+
const { getMeetingOperation } = await import("./registry-7LICMV5J.js");
|
|
2357
2418
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2358
2419
|
const rendered = await render.handler(
|
|
2359
2420
|
{
|
|
@@ -2429,9 +2490,9 @@ var ebMeetingCreateFlowApply = {
|
|
|
2429
2490
|
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
2491
|
}
|
|
2431
2492
|
const payload = lease?.payload ?? {};
|
|
2432
|
-
const { createWorkflowHost } = await import("./host-
|
|
2493
|
+
const { createWorkflowHost } = await import("./host-CBONEAZS.js");
|
|
2433
2494
|
const { createWorkflowContinuationSigner } = await import("./continuation-HFW2YT5S.js");
|
|
2434
|
-
const { getWorkflowOperation } = await import("./registry-
|
|
2495
|
+
const { getWorkflowOperation } = await import("./registry-JFQEFC7E.js");
|
|
2435
2496
|
const wfEnv = {
|
|
2436
2497
|
...workflowEnv(env),
|
|
2437
2498
|
host: createWorkflowHost(env.ctx),
|
|
@@ -2481,7 +2542,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2481
2542
|
const groupPayload2 = payload?.groupChat;
|
|
2482
2543
|
if (groupPayload2) {
|
|
2483
2544
|
try {
|
|
2484
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2545
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-CVYUZCOQ.js");
|
|
2485
2546
|
groupChat2 = {
|
|
2486
2547
|
...await ensureMeetingGroupChat(env, {
|
|
2487
2548
|
meetingName: String(payload.mtName ?? ""),
|
|
@@ -2497,7 +2558,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2497
2558
|
}
|
|
2498
2559
|
if (groupChat2 && groupChat2.ok) {
|
|
2499
2560
|
try {
|
|
2500
|
-
const { savePendingForm } = await import("./group-chat-
|
|
2561
|
+
const { savePendingForm } = await import("./group-chat-CVYUZCOQ.js");
|
|
2501
2562
|
await savePendingForm(env, {
|
|
2502
2563
|
workflowId: String(payload.workflowId ?? ""),
|
|
2503
2564
|
workflowName: String(payload.workflowName ?? ""),
|
|
@@ -2527,6 +2588,9 @@ var ebMeetingCreateFlowApply = {
|
|
|
2527
2588
|
contextId: submittedData.contextId ?? null,
|
|
2528
2589
|
// 宿主要靠这段 <browsertool> 才能把表单拉到浏览器里填,必须原样透出
|
|
2529
2590
|
finalMarkdown: submittedData.finalMarkdown ?? null,
|
|
2591
|
+
// finalMarkdown 会被 stdout 压缩截断(长字符串默认 200 字符);URL 字段豁免压缩,
|
|
2592
|
+
// 这里单独给出完整 formUrl,模型可用它重建 <browsertool>。
|
|
2593
|
+
formUrl: (String(submittedData.finalMarkdown ?? "").match(/https?:\/\/[^\s"'<>]+/) ?? [])[0] ?? null,
|
|
2530
2594
|
// 与 finalMarkdown 相邻的硬提示:模型「以为 CLI 已经打开了表单」是这次翻车的直接原因
|
|
2531
2595
|
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
2596
|
message: String(submittedData.message ?? ""),
|
|
@@ -2564,7 +2628,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2564
2628
|
let meetingId = "";
|
|
2565
2629
|
const timings = { submitMs: Date.now() - submitStartedAt };
|
|
2566
2630
|
if (waitSeconds > 0) {
|
|
2567
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2631
|
+
const { getMeetingOperation } = await import("./registry-7LICMV5J.js");
|
|
2568
2632
|
const list = getMeetingOperation("meeting.eb.meeting.list");
|
|
2569
2633
|
const deadline = Date.now() + Math.min(waitSeconds, 30) * 1e3;
|
|
2570
2634
|
const pollStart = Date.now();
|
|
@@ -2614,7 +2678,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2614
2678
|
if (groupPayload) {
|
|
2615
2679
|
const groupStart = Date.now();
|
|
2616
2680
|
try {
|
|
2617
|
-
const { ensureMeetingGroupChat } = await import("./group-chat-
|
|
2681
|
+
const { ensureMeetingGroupChat } = await import("./group-chat-CVYUZCOQ.js");
|
|
2618
2682
|
const group = await ensureMeetingGroupChat(env, {
|
|
2619
2683
|
meetingName: String(payload.mtName ?? ""),
|
|
2620
2684
|
beginDatetime: String(groupPayload.beginDatetime ?? ""),
|
|
@@ -2646,7 +2710,7 @@ var ebMeetingCreateFlowApply = {
|
|
|
2646
2710
|
if (meetingId) {
|
|
2647
2711
|
const invitationStart = Date.now();
|
|
2648
2712
|
try {
|
|
2649
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2713
|
+
const { getMeetingOperation } = await import("./registry-7LICMV5J.js");
|
|
2650
2714
|
const render = getMeetingOperation("meeting.invitation.render");
|
|
2651
2715
|
const rendered = await render.handler(
|
|
2652
2716
|
{
|
|
@@ -2806,6 +2870,10 @@ var ebMeetingCreateFlowQuick = {
|
|
|
2806
2870
|
{ required: ["mt_name", "confirm"] }
|
|
2807
2871
|
),
|
|
2808
2872
|
handler: async (args, env) => {
|
|
2873
|
+
if (String(args.entryMode ?? "") === "direct_form" || args.skipPreflight === true && args.confirm !== true) {
|
|
2874
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-7LICMV5J.js");
|
|
2875
|
+
return getMeetingOperation2("meeting.eb.meeting.create.formLink").handler(args, env);
|
|
2876
|
+
}
|
|
2809
2877
|
if (args.confirm !== true) {
|
|
2810
2878
|
throw meetingValidationError(
|
|
2811
2879
|
"confirmation_required",
|
|
@@ -2820,7 +2888,7 @@ var ebMeetingCreateFlowQuick = {
|
|
|
2820
2888
|
`\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
2889
|
);
|
|
2822
2890
|
}
|
|
2823
|
-
const { getMeetingOperation } = await import("./registry-
|
|
2891
|
+
const { getMeetingOperation } = await import("./registry-7LICMV5J.js");
|
|
2824
2892
|
const prepareStartedAt = Date.now();
|
|
2825
2893
|
const { submit_mode: _submitMode, confirm: _confirm, ...prepareArgs } = args;
|
|
2826
2894
|
const prepared = await getMeetingOperation("meeting.eb.meeting.create.flow.prepare").handler(
|
|
@@ -2919,7 +2987,7 @@ var ebMeetingCreateSuggest = {
|
|
|
2919
2987
|
const topN = Math.max(1, Math.min(5, Number(args.topN) || 3));
|
|
2920
2988
|
const rawMembers = String(args.hrm_members ?? "").split(/[,;,;\s]+/).map((item) => item.trim()).filter((item) => item !== "");
|
|
2921
2989
|
const nameLike = rawMembers.filter((item) => !/^\d+$/.test(item));
|
|
2922
|
-
const nameToId = nameLike.length > 0 ? await import("./schedule-
|
|
2990
|
+
const nameToId = nameLike.length > 0 ? await import("./schedule-ZQ42BEW6.js").then((m) => m.resolveMemberIdsByName(env, nameLike)).catch(() => /* @__PURE__ */ new Map()) : /* @__PURE__ */ new Map();
|
|
2923
2991
|
const memberIds = rawMembers.map((item) => nameToId.get(item) ?? item);
|
|
2924
2992
|
const unresolved = rawMembers.filter((item) => nameToId.get(item) === void 0 && !/^\d+$/.test(item));
|
|
2925
2993
|
const selfId = await env.host.getSession().then((s) => String(s?.userId ?? "")).catch(() => "");
|
|
@@ -3003,10 +3071,32 @@ var meetingEbCreateFlowOperations = [
|
|
|
3003
3071
|
ebMeetingCreateFlowApply,
|
|
3004
3072
|
ebMeetingCreateFlowQuick
|
|
3005
3073
|
];
|
|
3074
|
+
async function ensureFlowFieldIds(env, workflowId) {
|
|
3075
|
+
const cached = await readFlowFieldMap(env, workflowId);
|
|
3076
|
+
if (cached.mt_name && cached.begin_datetime && cached.end_datetime && cached.crm_members) return cached;
|
|
3077
|
+
const form = await loadCreateForm(env, workflowId);
|
|
3078
|
+
const dummy = {
|
|
3079
|
+
mt_name: "x",
|
|
3080
|
+
begin_datetime: "x",
|
|
3081
|
+
end_datetime: "x",
|
|
3082
|
+
mt_desc: "x",
|
|
3083
|
+
address: "x",
|
|
3084
|
+
hrm_members: "x",
|
|
3085
|
+
total_member: 1,
|
|
3086
|
+
contacter: "x",
|
|
3087
|
+
crm_members: "x"
|
|
3088
|
+
};
|
|
3089
|
+
const { resolved } = mapFields(form.fields, dummy, {});
|
|
3090
|
+
await writeFlowFieldMap(env, workflowId, form.workflowName, resolved);
|
|
3091
|
+
return resolved;
|
|
3092
|
+
}
|
|
3006
3093
|
|
|
3007
3094
|
export {
|
|
3095
|
+
readFlowPick,
|
|
3008
3096
|
meetingUrlMap,
|
|
3009
3097
|
attachMeetingUrls,
|
|
3098
|
+
resolveEmployeeNames,
|
|
3099
|
+
resolvePersonTokens,
|
|
3010
3100
|
resolveSelfPerson,
|
|
3011
3101
|
applySelfPersonDefaults,
|
|
3012
3102
|
parseRoomRef,
|
|
@@ -3025,7 +3115,10 @@ export {
|
|
|
3025
3115
|
fixedFlowIdsForEnv,
|
|
3026
3116
|
shouldAutoPickFlow,
|
|
3027
3117
|
resolveWorkflowId,
|
|
3118
|
+
crmPendingNames,
|
|
3119
|
+
needsCrmSelection,
|
|
3028
3120
|
patchMeetingCrmMembers,
|
|
3029
3121
|
renderPreInvitation,
|
|
3030
|
-
meetingEbCreateFlowOperations
|
|
3122
|
+
meetingEbCreateFlowOperations,
|
|
3123
|
+
ensureFlowFieldIds
|
|
3031
3124
|
};
|
|
@@ -2,7 +2,7 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isEsbFlowUnavailable
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GQK6WLOS.js";
|
|
6
6
|
import {
|
|
7
7
|
esbValidationError
|
|
8
8
|
} from "./chunk-TXUG266F.js";
|