weaver-work-cli 0.1.44 → 0.1.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -5
- package/dist/chunks/{archive-P6TBQGKL.js → archive-ZQ4A4TV6.js} +388 -44
- package/dist/chunks/{archive-oa-7TQ2NXOH.js → archive-oa-BBDP7AKJ.js} +2 -2
- package/dist/chunks/{asset-3ELRG37G.js → asset-ZOJVBWZH.js} +2 -2
- package/dist/chunks/{asset-idle-WIGMUFMD.js → asset-idle-XGB5IPGT.js} +2 -2
- package/dist/chunks/{attachment-content-E3276UOV.js → attachment-content-MCXQBD6N.js} +3 -3
- package/dist/chunks/{blog-C5NMZAAC.js → blog-QSHLZSFW.js} +2 -2
- package/dist/chunks/caizhilian-KCQYFH72.js +204 -0
- package/dist/chunks/{calendar-FI2WNSBO.js → calendar-DLGMRJQA.js} +2 -2
- package/dist/chunks/{chunk-PUQS5MWL.js → chunk-3YV7PKRL.js} +1 -1
- package/dist/chunks/{chunk-FAZTGX7S.js → chunk-4RWS2YYL.js} +5 -5
- package/dist/chunks/{chunk-GM6J7Q4B.js → chunk-6AXKWFKG.js} +32 -12
- package/dist/chunks/{chunk-ETNJSKMM.js → chunk-6NXT4ICB.js} +148 -21
- package/dist/chunks/{chunk-QVSWRLLU.js → chunk-6V5ZPKHV.js} +56 -12
- package/dist/chunks/chunk-762M5XJS.js +215 -0
- package/dist/chunks/{chunk-PC7VKEB5.js → chunk-76H3IKH6.js} +178 -37
- package/dist/chunks/{chunk-FRZKBMSW.js → chunk-AD46OMQK.js} +239 -41
- package/dist/chunks/{chunk-WSF4NNMR.js → chunk-CZNZKOHR.js} +2 -2
- package/dist/chunks/{chunk-TA7FXXJD.js → chunk-DLY5GUXX.js} +1 -1
- package/dist/chunks/{chunk-BCVYBYYT.js → chunk-GR76ZDDX.js} +2 -2
- package/dist/chunks/{chunk-CWYGFU5B.js → chunk-GSZTA43P.js} +2 -2
- package/dist/chunks/{chunk-GRDRG6HP.js → chunk-HFXK54M4.js} +2 -2
- package/dist/chunks/{chunk-N4M2DDFE.js → chunk-IP4CWQCF.js} +11 -11
- package/dist/chunks/{chunk-GAMZLAG2.js → chunk-IRMIEDXN.js} +1 -1
- package/dist/chunks/{chunk-XNIK66I4.js → chunk-JB34OE7R.js} +790 -77
- package/dist/chunks/{chunk-HIT4Y6OI.js → chunk-JFAWZX53.js} +134 -13
- package/dist/chunks/{chunk-D4ADSZ7H.js → chunk-O6CMPO65.js} +24 -1
- package/dist/chunks/{chunk-Z7VYWPZV.js → chunk-OXHHJWNC.js} +1 -1
- package/dist/chunks/chunk-P5GQRWDC.js +60 -0
- package/dist/chunks/{caizhilian-5XSM2DFP.js → chunk-PGO4ILMQ.js} +41 -521
- package/dist/chunks/{chunk-OF4S23UB.js → chunk-PSOMGA3U.js} +4 -4
- package/dist/chunks/{chunk-F4E4EM35.js → chunk-TGAGQV4I.js} +2 -2
- package/dist/chunks/{chunk-UFIT2UU3.js → chunk-U6R6FZHD.js} +168 -14
- package/dist/chunks/{chunk-XHK4MDR5.js → chunk-UFIFZ4YC.js} +48 -14
- package/dist/chunks/chunk-VRPH24IC.js +76 -0
- package/dist/chunks/{chunk-3YBDYOC4.js → chunk-YIKSL36S.js} +2 -2
- package/dist/chunks/{chunk-IAZ3UPY6.js → chunk-Z6UUBY37.js} +2 -2
- package/dist/chunks/{conflict-ARLSZJ6V.js → conflict-H7EHQXYY.js} +2 -2
- package/dist/chunks/continuation-GW6PRWK3.js +12 -0
- package/dist/chunks/{contract-DNIIW5VJ.js → contract-3QLAGYQL.js} +5793 -4591
- package/dist/chunks/{cowork-GMLRGVIW.js → cowork-3ACICHDQ.js} +2 -2
- package/dist/chunks/{create-flow-J22BO65E.js → create-flow-VRVJEOBX.js} +6 -6
- package/dist/chunks/{ebuilder-form-ANV2FHYV.js → ebuilder-form-GWDTKEI2.js} +5 -5
- package/dist/chunks/{ehr-GSTGAIY3.js → ehr-SH2LM3NK.js} +648 -88
- package/dist/chunks/{employee-22BGJ3QS.js → employee-NOHNXC46.js} +1 -1
- package/dist/chunks/{env-BX3VRFS7.js → env-66FPSJDV.js} +2 -2
- package/dist/chunks/{esb-ATAIASX2.js → esb-4BQHNP5C.js} +4 -4
- package/dist/chunks/{factory-PETTFME6.js → factory-UH2TZBVA.js} +1 -1
- package/dist/chunks/{fna-YEKBSFSX.js → fna-ZVB2IILI.js} +2 -2
- package/dist/chunks/{group-chat-BFVXAYFX.js → group-chat-CAKMMV7K.js} +3 -3
- package/dist/chunks/{host-WIKN2EJ5.js → host-3TNBMDTR.js} +3 -3
- package/dist/chunks/host-7NTIBSPK.js +25 -0
- package/dist/chunks/{host-SZGV4UNT.js → host-7OWWPLM4.js} +3 -3
- package/dist/chunks/{host-HRBXEPDQ.js → host-G3VU7SDW.js} +3 -3
- package/dist/chunks/{host-LR55CTHP.js → host-M4XP5URR.js} +3 -3
- package/dist/chunks/{host-SUOY6VYQ.js → host-TUOIOEMC.js} +3 -3
- package/dist/chunks/{hrm-NRDO4W5G.js → hrm-UNKCCCGP.js} +5 -5
- package/dist/chunks/{im-IQ2HN23S.js → im-NJB7ZYMH.js} +3 -3
- package/dist/chunks/{invoice-MNRW76PP.js → invoice-OQP3TMKQ.js} +3 -3
- package/dist/chunks/{jiuchuanhui-DTRBAX4N.js → jiuchuanhui-ASFZBMPU.js} +2 -2
- package/dist/chunks/{lazy-dispatch-ZVWAI25B.js → lazy-dispatch-DD6ULZ3I.js} +4 -4
- package/dist/chunks/{mail-ZVAUXOJA.js → mail-M3HJF5ER.js} +2 -2
- package/dist/chunks/{meeting-FEVPZ67S.js → meeting-VTBFW4HI.js} +12 -12
- package/dist/chunks/{okr-SDH3E5RA.js → okr-EVX7FB5G.js} +2 -2
- package/dist/chunks/operations-J7PUIVWZ.js +15 -0
- package/dist/chunks/{plan-E35JFDI7.js → plan-2QJQEPBO.js} +2 -2
- package/dist/chunks/{project-73QXBAB2.js → project-XELELW2T.js} +2 -2
- package/dist/chunks/{reception-UWZVACBN.js → reception-5WITA44R.js} +2 -2
- package/dist/chunks/{recruit-stage-4MAOCKFY.js → recruit-stage-CAKZTUA7.js} +1343 -178
- package/dist/chunks/{registry-JDUS4E7D.js → registry-AQVGHUM6.js} +2 -2
- package/dist/chunks/{registry-IM5G23LS.js → registry-JVQBLFQ5.js} +10 -10
- package/dist/chunks/{registry-KNKSCJNT.js → registry-QJCZ2GVG.js} +4 -4
- package/dist/chunks/{registry-PO7SI256.js → registry-VWXWPVAG.js} +2 -2
- package/dist/chunks/{room-recommend-H7KLXA5R.js → room-recommend-5U55FMXZ.js} +6 -4
- package/dist/chunks/{schedule-ESZIBAUO.js → schedule-IDETODCA.js} +4 -4
- package/dist/chunks/{workflow-CWJFJLQU.js → workflow-BSYT5TGL.js} +6 -4
- package/dist/cmd/action.js +14 -10
- package/dist/index.js +30 -30
- package/dist/internal/e10/auth/commands.js +32 -0
- package/dist/internal/e10/auth/error-log.js +156 -26
- package/dist/internal/e10/auth/xiaoe.js +176 -13
- package/dist/internal/e10/context.js +12 -1
- package/dist/shortcuts/archive/operations/borrow-list.js +105 -14
- package/dist/shortcuts/archive/operations/flow-url.js +182 -22
- package/dist/shortcuts/archive/operations/getPageUrl.js +75 -0
- package/dist/shortcuts/archive/operations/prelib.js +33 -4
- package/dist/shortcuts/archive/operations/shared.js +52 -0
- package/dist/shortcuts/contract/host.js +111 -4
- package/dist/shortcuts/contract/index.js +19 -0
- package/dist/shortcuts/contract/manifest.js +125 -0
- package/dist/shortcuts/contract/ooxml/clause-insert.js +249 -0
- package/dist/shortcuts/contract/operations/clause-insert.js +56 -0
- package/dist/shortcuts/contract/operations/customer.js +192 -0
- package/dist/shortcuts/contract/operations/file-download.js +75 -0
- package/dist/shortcuts/contract/operations/flow.js +44 -2
- package/dist/shortcuts/contract/operations/form-info.js +162 -62
- package/dist/shortcuts/contract/operations/registry.js +8 -0
- package/dist/shortcuts/contract/operations/review.js +116 -1
- package/dist/shortcuts/contract/operations/summary.js +177 -0
- package/dist/shortcuts/contract/operations/upload.js +64 -4
- package/dist/shortcuts/contract/upload-cache.js +104 -0
- package/dist/shortcuts/ehr/host.js +2 -2
- package/dist/shortcuts/ehr/index.js +14 -3
- package/dist/shortcuts/ehr/manifest.js +5 -1
- package/dist/shortcuts/ehr/operations/recruit-candidate-import.js +44 -12
- package/dist/shortcuts/ehr/operations/recruit-interview-overview.js +258 -0
- package/dist/shortcuts/ehr/operations/recruit-position.js +146 -43
- package/dist/shortcuts/ehr/operations/recruit-stats.js +14 -1
- package/dist/shortcuts/ehr/operations/recruit-tag.js +173 -0
- package/dist/shortcuts/ehr/operations/recruit-write.js +154 -36
- package/dist/shortcuts/ehr/operations/recruit.js +196 -12
- package/dist/shortcuts/ehr/operations/registry.js +4 -0
- package/dist/shortcuts/ehr/operations.js +24 -0
- package/dist/shortcuts/ehr/recruit-stage/batch-store.js +78 -0
- package/dist/shortcuts/ehr/recruit-stage/context.js +231 -0
- package/dist/shortcuts/ehr/recruit-stage/continuation.js +74 -0
- package/dist/shortcuts/ehr/recruit-stage/errors.js +65 -0
- package/dist/shortcuts/ehr/recruit-stage/fs-scan.js +165 -0
- package/dist/shortcuts/ehr/recruit-stage/host.js +109 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/interview-arrange.js +1049 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/interview-feedback.js +295 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/jd-create.js +961 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/list.js +431 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/registry.js +50 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/resume-import.js +1647 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/search.js +158 -0
- package/dist/shortcuts/ehr/recruit-stage/operations/types.js +34 -0
- package/dist/shortcuts/ehr/recruit-stage/runtime.js +31 -0
- package/dist/shortcuts/ehr/recruit-stage/school-tiers.json +318 -0
- package/dist/shortcuts/ehr/recruit-stage/shared.js +805 -0
- package/dist/shortcuts/hrm/operations/employee.js +29 -1
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +274 -75
- package/dist/shortcuts/meeting/operations/eb/draft-memory.js +56 -0
- package/dist/shortcuts/meeting/operations/eb/factory.js +63 -11
- package/dist/shortcuts/meeting/operations/eb/person-cache.js +2 -2
- package/dist/shortcuts/meeting/operations/eb/room-recommend.js +38 -7
- package/dist/shortcuts/meeting/operations/invitation-publish.js +132 -0
- package/dist/shortcuts/meeting/operations/invitation.js +27 -4
- package/dist/shortcuts/meeting/operations/registry.js +2 -0
- package/dist/shortcuts/recruit-stage/batch-store.js +78 -0
- package/dist/shortcuts/recruit-stage/fs-scan.js +165 -0
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +356 -29
- package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +36 -10
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +309 -67
- package/dist/shortcuts/recruit-stage/operations/registry.js +12 -0
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +310 -17
- package/dist/shortcuts/recruit-stage/operations/types.js +9 -0
- package/dist/shortcuts/recruit-stage/shared.js +221 -24
- package/dist/shortcuts/workflow/index.js +2 -0
- package/dist/shortcuts/workflow/operations/read.js +8 -3
- package/dist/shortcuts/workflow/operations/todoSmartConvert/aigroupRules.js +92 -5
- package/dist/shortcuts/workflow/operations/todoSmartConvert/priorityExpr.js +509 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoListRows.js +22 -1
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +32 -6
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +57 -11
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.group.js +165 -52
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +57 -14
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.smartGroup.js +44 -18
- package/docs/contract.md +1 -0
- package/docs/e10-auth.md +4 -2
- package/docs/todo-smart-convert/data-contract.md +7 -0
- package/package.json +1 -1
- package/skill-template/domains/jinchengda.md +2 -0
- package/skills/weaver-e10-jinchengda/SKILL.md +198 -205
- package/skills/weaver-e10-jinchengda/references/contract-action-card.md +759 -0
- package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +250 -0
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +146 -7
- package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +178 -0
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +75 -0
- package/skills/weaver-e10-jinchengda/references/contract-compare-report-template.html +137 -0
- package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +163 -0
- package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +52 -3
- package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +92 -5
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +602 -0
- package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +209 -0
- package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +126 -0
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +312 -0
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +555 -0
- package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +47 -12
- package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +469 -0
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +154 -1
- package/skills/weaver-e10-jinchengda/references/contract-type-fingerprints.md +224 -0
- package/skills/weaver-e10-jinchengda/references/orchestration.md +355 -0
- package/skills/weaver-e10-jucailin/SKILL.md +12 -3
- package/skills/weaver-e10-jucailin/archive/LEGACY-README.md +18 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-SKILL.md +239 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-openai.yaml +131 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-position-templates.md +221 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-arrange-interview.md +334 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-capability-check.md +127 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-check-install.md +65 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-detail-process.md +63 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-edit-interview-feedback.md +142 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-jd-create.md +114 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-jd-template.md +56 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-list-candidate.md +101 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-list-interview.md +148 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-match-candidates.md +77 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-output-links.md +72 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resolve-creator.md +69 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resolve-metadata.md +241 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resume-import.md +457 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-resume-parse.md +128 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-search-candidate.md +146 -0
- package/skills/weaver-e10-jucailin/archive/LEGACY-recruit-urge-feedback.md +69 -0
- package/skills/weaver-e10-jucailin/lib/recruit-xiaoe-file.mjs +192 -0
- package/skills/weaver-e10-jucailin/lib/xiaoe-session.mjs +66 -0
- package/skills/weaver-e10-jucailin/references/recruit-create.md +19 -91
- package/skills/weaver-e10-jucailin/references/recruit-interview-overview.md +64 -0
- package/skills/weaver-e10-jucailin/references/recruit-read.md +63 -1
- package/skills/weaver-e10-jucailin/references/recruit-screening-to-interview-sop.md +95 -0
- package/skills/weaver-e10-jucailin/references/recruit-stage-ops.md +89 -0
- package/skills/weaver-e10-jucailin/references/recruit-tag.md +81 -0
- package/skills/weaver-e10-jucailin/references/recruit-write.md +55 -11
- package/skills/weaver-e10-meeting/SKILL.md +103 -11
- package/skills/weaver-e10-meeting/references/meeting-eb.md +1 -1
- package/skills/weaver-e10-recruit-stage/SKILL.md +19 -11
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +26 -8
- package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +5 -1
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +23 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +13 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +40 -18
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +27 -14
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +11 -1
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +4 -2
- package/skills/weaver-e10-wenshuding/SKILL.md +17 -7
- package/skills/weaver-e10-wenshuding/references/archive-borrow-list.md +28 -0
- package/skills/weaver-e10-wenshuding/references/archive-flow.md +24 -8
- package/skills/weaver-e10-wenshuding/references/archive-prelib-list.md +3 -0
- package/skills/weaver-e10-wenshuding/references/archive-prelib-open.md +4 -0
- package/skills/weaver-e10-wenshuding/references/archive-search.md +3 -1
- package/skills/weaver-e10-workflow/SKILL.md +19 -17
- package/skills/weaver-e10-workflow/aigroup/default.json +10 -6
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +36 -3
- package/skills/weaver-e10-workflow/references/workflow-memory.md +1 -1
- package/skills/weaver-e10-workflow/references/workflow-query.md +9 -6
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +152 -1
- package/skills/weaver-e10-yimiaoban/SKILL.md +17 -5
- package/skills/weaver-e10-yimiaoban/references/msg-write.md +30 -0
- package/skills/weaver-e10-yimiaoban/references/session-sysmsg.md +72 -0
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +7 -7
|
@@ -2,33 +2,33 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
|
|
|
2
2
|
const require = __esbuildCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
meetingEbGroupChatOperations
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IP4CWQCF.js";
|
|
6
6
|
import {
|
|
7
7
|
meetingEbCreateFlowOperations
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AD46OMQK.js";
|
|
9
9
|
import {
|
|
10
10
|
ebRoomRecommendOperation,
|
|
11
11
|
recommendRooms,
|
|
12
12
|
rememberFrequentRoom
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6AXKWFKG.js";
|
|
14
14
|
import {
|
|
15
15
|
meetingEbScheduleOperations
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4RWS2YYL.js";
|
|
17
17
|
import {
|
|
18
18
|
ebMeetingWritePreflight,
|
|
19
19
|
meetingEbConflictOperations
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-PSOMGA3U.js";
|
|
21
21
|
import {
|
|
22
22
|
PENDING_MARK,
|
|
23
23
|
listMeetingAttachments,
|
|
24
24
|
meetingAttachmentContentOperations,
|
|
25
25
|
renderDocx
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-GSZTA43P.js";
|
|
27
27
|
import {
|
|
28
28
|
meetingEnvOperations,
|
|
29
29
|
meetingStateDir,
|
|
30
30
|
resolveMeetingEnvMode
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-IRMIEDXN.js";
|
|
32
32
|
import {
|
|
33
33
|
EB_BASE,
|
|
34
34
|
EB_ENDPOINTS,
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
toIdString,
|
|
61
61
|
verifyLease,
|
|
62
62
|
writeBody
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-6V5ZPKHV.js";
|
|
64
64
|
import {
|
|
65
65
|
CONTINUATION_TTL_SECONDS
|
|
66
66
|
} from "./chunk-7BDPM5ST.js";
|
|
@@ -2224,7 +2224,7 @@ var meetingAttachmentAttach = {
|
|
|
2224
2224
|
if (mode === "append" && existingIds.length === 0) {
|
|
2225
2225
|
existingIds.push(...beforeIds);
|
|
2226
2226
|
}
|
|
2227
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2227
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
2228
2228
|
const list = getMeetingOperation2("meeting.eb.meeting.list");
|
|
2229
2229
|
let fileId = incomingFileId;
|
|
2230
2230
|
let name = String(args.name ?? "").trim();
|
|
@@ -2312,7 +2312,7 @@ function textOf(value) {
|
|
|
2312
2312
|
return value === void 0 || value === null ? "" : String(value);
|
|
2313
2313
|
}
|
|
2314
2314
|
async function readMinute(env, id) {
|
|
2315
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2315
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
2316
2316
|
const detail = getMeetingOperation2("meeting.eb.minute.detail");
|
|
2317
2317
|
const result = await detail.handler({ id }, env);
|
|
2318
2318
|
const row = result?.data?.data;
|
|
@@ -2391,7 +2391,7 @@ var meetingMinuteWriteContent = {
|
|
|
2391
2391
|
} else {
|
|
2392
2392
|
statusReason = "\u4EC5\u6E05\u7A7A\u5185\u5BB9\uFF0C\u672A\u6539\u72B6\u6001";
|
|
2393
2393
|
}
|
|
2394
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2394
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
2395
2395
|
const prepare = getMeetingOperation2("meeting.eb.minute.update.prepare");
|
|
2396
2396
|
const apply = getMeetingOperation2("meeting.eb.minute.update.apply");
|
|
2397
2397
|
const prepared = await prepare.handler({ id, mt_id: mtId, ...patch }, env);
|
|
@@ -2750,7 +2750,7 @@ var meetingMinuteFromGroupChat = {
|
|
|
2750
2750
|
const mtId = textOf2(args.mt_id).trim();
|
|
2751
2751
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
2752
2752
|
const pipeline = ["text", "minutes", "document"].includes(args.pipeline) ? args.pipeline : "text";
|
|
2753
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
2753
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
2754
2754
|
const ctx = env.ctx;
|
|
2755
2755
|
let stepStart = Date.now();
|
|
2756
2756
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
@@ -2774,7 +2774,7 @@ var meetingMinuteFromGroupChat = {
|
|
|
2774
2774
|
}
|
|
2775
2775
|
mark("readMeeting", stepStart);
|
|
2776
2776
|
const pullStart = Date.now();
|
|
2777
|
-
const { createImHost } = await import("./host-
|
|
2777
|
+
const { createImHost } = await import("./host-M4XP5URR.js");
|
|
2778
2778
|
const { createImContinuationSigner } = await import("./continuation-3S37AUSH.js");
|
|
2779
2779
|
const { getImOperation } = await import("./registry-PVUZQDDQ.js");
|
|
2780
2780
|
const imEnv = { ctx, host: createImHost(ctx), continuation: createImContinuationSigner(ctx) };
|
|
@@ -2844,7 +2844,7 @@ var meetingMinuteFromGroupChat = {
|
|
|
2844
2844
|
try {
|
|
2845
2845
|
const { readFile: readFile4 } = await import("node:fs/promises");
|
|
2846
2846
|
const buffer = await readFile4(file);
|
|
2847
|
-
const { extractText } = await import("./attachment-content-
|
|
2847
|
+
const { extractText } = await import("./attachment-content-MCXQBD6N.js");
|
|
2848
2848
|
const extracted = extractText(buffer, file, "");
|
|
2849
2849
|
if (extracted.text.trim()) {
|
|
2850
2850
|
extraSections.push(`\u3010\u6750\u6599\uFF1A${file.split(/[\\/]/).pop() ?? file}\u3011
|
|
@@ -2973,9 +2973,9 @@ ${groupTranscript}` : ""
|
|
|
2973
2973
|
if (!employeeId) {
|
|
2974
2974
|
warnings.push("\u672A\u53D6\u5230 ESB \u89E6\u53D1\u4EBA id\uFF08employeeId\uFF09\uFF0C\u5DF2\u8DF3\u8FC7\u540E\u7EED ESB \u8C03\u7528");
|
|
2975
2975
|
} else {
|
|
2976
|
-
const { createEsbHost } = await import("./host-
|
|
2976
|
+
const { createEsbHost } = await import("./host-3TNBMDTR.js");
|
|
2977
2977
|
const { createEsbContinuationSigner } = await import("./continuation-KI7DRRZN.js");
|
|
2978
|
-
const { getEsbOperation } = await import("./registry-
|
|
2978
|
+
const { getEsbOperation } = await import("./registry-QJCZ2GVG.js");
|
|
2979
2979
|
const esbEnv = { ctx, host: createEsbHost(ctx), continuation: createEsbContinuationSigner(ctx) };
|
|
2980
2980
|
const prepareOp = getEsbOperation("esb.trigger.prepare");
|
|
2981
2981
|
const applyOp = getEsbOperation("esb.trigger.apply");
|
|
@@ -3163,7 +3163,7 @@ var meetingDecisionNotifyGroup = {
|
|
|
3163
3163
|
const warnings = [];
|
|
3164
3164
|
const mtId = textOf3(args.mt_id).trim();
|
|
3165
3165
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
3166
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3166
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
3167
3167
|
const ctx = env.ctx;
|
|
3168
3168
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
3169
3169
|
{ mt_id: mtId, pageNo: 1, pageSize: 1 },
|
|
@@ -3227,7 +3227,7 @@ var meetingDecisionNotifyGroup = {
|
|
|
3227
3227
|
charCount: formatted.text.length,
|
|
3228
3228
|
text: formatted.text
|
|
3229
3229
|
};
|
|
3230
|
-
const { createImHost } = await import("./host-
|
|
3230
|
+
const { createImHost } = await import("./host-M4XP5URR.js");
|
|
3231
3231
|
const imHost = createImHost(ctx);
|
|
3232
3232
|
let displayText = formatted.text;
|
|
3233
3233
|
let wireText = formatted.text;
|
|
@@ -3465,7 +3465,7 @@ var meetingPipelineRun = {
|
|
|
3465
3465
|
const needsConfirm = level === "tasks" || level === "notify";
|
|
3466
3466
|
const confirmed = args.confirm === true;
|
|
3467
3467
|
const executedLevel = needsConfirm && !confirmed ? "document" : level;
|
|
3468
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3468
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
3469
3469
|
const ctx = env.ctx;
|
|
3470
3470
|
let stepStart = Date.now();
|
|
3471
3471
|
const reuseMinuteId = textOf4(args.minuteId).trim();
|
|
@@ -3534,8 +3534,8 @@ var meetingPipelineRun = {
|
|
|
3534
3534
|
]);
|
|
3535
3535
|
}
|
|
3536
3536
|
stepStart = Date.now();
|
|
3537
|
-
const { createHrmHost } = await import("./host-
|
|
3538
|
-
const { getHrmOperation } = await import("./registry-
|
|
3537
|
+
const { createHrmHost } = await import("./host-G3VU7SDW.js");
|
|
3538
|
+
const { getHrmOperation } = await import("./registry-VWXWPVAG.js");
|
|
3539
3539
|
const hrmEnv = { ctx, host: createHrmHost(ctx) };
|
|
3540
3540
|
const queryOp = getHrmOperation("hrm.employee.query");
|
|
3541
3541
|
const resolved = [];
|
|
@@ -3837,7 +3837,7 @@ function formatTimeRange(start, end) {
|
|
|
3837
3837
|
}
|
|
3838
3838
|
async function loadAgendaFromTopics(env, mtId) {
|
|
3839
3839
|
try {
|
|
3840
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3840
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
3841
3841
|
const operation = getMeetingOperation2("meeting.eb.topic.list");
|
|
3842
3842
|
const result = await operation.handler({ mt_id: mtId, pageNo: 1, pageSize: 200 }, env);
|
|
3843
3843
|
const rows = result.data?.rows ?? [];
|
|
@@ -3892,11 +3892,24 @@ async function loadAgendaFromTopics(env, mtId) {
|
|
|
3892
3892
|
function parseAgendaFromExtra(raw) {
|
|
3893
3893
|
const text = String(raw ?? "").trim();
|
|
3894
3894
|
if (!text) return [];
|
|
3895
|
+
const isTimeLike = (part) => /^\d{1,2}:\d{2}(\s*[-~至]\s*\d{1,2}:\d{2})?$/u.test(part) || /^\d+(\.\d+)?\s*(分钟|分|min|minutes?|小时|h|hours?)$/iu.test(part);
|
|
3895
3896
|
return text.split(/[\r\n;;]+/u).map((line) => line.trim()).filter(Boolean).map((line) => {
|
|
3896
|
-
const parts = line.split("|").map((part) => part.trim());
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3897
|
+
const parts = line.split("|").map((part) => part.trim()).filter((part) => part !== "");
|
|
3898
|
+
if (parts.length >= 3) {
|
|
3899
|
+
const [name, content, timeRange] = parts;
|
|
3900
|
+
if (!isTimeLike(timeRange) && isTimeLike(name)) return ["", content, name];
|
|
3901
|
+
return [name, content, timeRange];
|
|
3902
|
+
}
|
|
3903
|
+
if (parts.length === 2) {
|
|
3904
|
+
const [a, b] = parts;
|
|
3905
|
+
if (isTimeLike(a) && !isTimeLike(b)) return [b, "", a];
|
|
3906
|
+
if (isTimeLike(b) && !isTimeLike(a)) return [a, "", b];
|
|
3907
|
+
return [a, b, ""];
|
|
3908
|
+
}
|
|
3909
|
+
const inline = line.match(/^(\d{1,2}:\d{2}\s*[-~至]\s*\d{1,2}:\d{2})\s*(.+)$/u);
|
|
3910
|
+
if (inline) return [inline[2].trim(), "", inline[1].trim()];
|
|
3911
|
+
return [parts[0] ?? "", "", ""];
|
|
3912
|
+
}).filter((row) => row[0] !== "" || row[2] !== "");
|
|
3900
3913
|
}
|
|
3901
3914
|
function flattenFieldValue(raw) {
|
|
3902
3915
|
if (raw === void 0 || raw === null) return void 0;
|
|
@@ -3917,7 +3930,7 @@ function flattenFieldValue(raw) {
|
|
|
3917
3930
|
}
|
|
3918
3931
|
async function resolveIssuerOrganization(env, creatorId) {
|
|
3919
3932
|
try {
|
|
3920
|
-
const { hrmEmployeeOperations } = await import("./employee-
|
|
3933
|
+
const { hrmEmployeeOperations } = await import("./employee-NOHNXC46.js");
|
|
3921
3934
|
const batch = hrmEmployeeOperations.find((operation) => operation.name === "hrm.employee.batch");
|
|
3922
3935
|
if (!batch) return null;
|
|
3923
3936
|
const result = await batch.handler({ ids: [creatorId] }, env);
|
|
@@ -3939,7 +3952,7 @@ async function resolveSessionUserName(env) {
|
|
|
3939
3952
|
const session = await env.host.getSession();
|
|
3940
3953
|
const userId = String(session?.userId ?? "").trim();
|
|
3941
3954
|
if (!userId) return "";
|
|
3942
|
-
const { hrmEmployeeOperations } = await import("./employee-
|
|
3955
|
+
const { hrmEmployeeOperations } = await import("./employee-NOHNXC46.js");
|
|
3943
3956
|
const batch = hrmEmployeeOperations.find((operation) => operation.name === "hrm.employee.batch");
|
|
3944
3957
|
if (!batch) return "";
|
|
3945
3958
|
const result = await batch.handler({ ids: [userId] }, env);
|
|
@@ -3975,7 +3988,7 @@ async function supplementRowFromDetail(row, mtId, env) {
|
|
|
3975
3988
|
const missing = DETAIL_FALLBACK_KEYS.filter((key) => isBlank(row[key]));
|
|
3976
3989
|
if (missing.length === 0) return { row, filled: [] };
|
|
3977
3990
|
try {
|
|
3978
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
3991
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
3979
3992
|
const detailOperation = getMeetingOperation2("meeting.eb.meeting.detail");
|
|
3980
3993
|
const result = await detailOperation.handler({ id: mtId }, env);
|
|
3981
3994
|
const flat = result?.data?.data ?? result?.data ?? {};
|
|
@@ -4149,7 +4162,7 @@ var meetingInvitationRender = {
|
|
|
4149
4162
|
};
|
|
4150
4163
|
dataSource = "payload";
|
|
4151
4164
|
} else {
|
|
4152
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
4165
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
4153
4166
|
const listOperation = getMeetingOperation2("meeting.eb.meeting.list");
|
|
4154
4167
|
try {
|
|
4155
4168
|
const listed = await listOperation.handler({ mt_id: mtId, pageNo: 1, pageSize: 1 }, env);
|
|
@@ -4266,6 +4279,133 @@ var meetingInvitationRender = {
|
|
|
4266
4279
|
};
|
|
4267
4280
|
var meetingInvitationOperations = [meetingInvitationRender];
|
|
4268
4281
|
|
|
4282
|
+
// src/shortcuts/meeting/operations/invitation-publish.ts
|
|
4283
|
+
import { win32 } from "node:path";
|
|
4284
|
+
var DEFAULT_FOLDER_ID = "300";
|
|
4285
|
+
var DEFAULT_FOLDER_TYPE = "company";
|
|
4286
|
+
function normalizeWinPath(path) {
|
|
4287
|
+
return win32.normalize(path);
|
|
4288
|
+
}
|
|
4289
|
+
var meetingInvitationPublish = {
|
|
4290
|
+
name: "meeting.invitation.publish",
|
|
4291
|
+
resource: "invitation",
|
|
4292
|
+
method: "publish",
|
|
4293
|
+
action: "meeting.invitation.publish",
|
|
4294
|
+
summary: '\u751F\u6210\u9080\u8BF7\u51FD\u5E76**\u53D1\u5E03\u6210 E10 \u6587\u6863**\uFF1A\u6A21\u677F\u586B\u5145 \u2192 \u4E0A\u4F20\u5230\u6587\u6863\u4E2D\u5FC3\uFF08\u9ED8\u8BA4\u76EE\u5F55 300\uFF09\u2192 \u8FD4\u56DE docId\u3002\u62FF\u5230\u540E\u628A `extraFields: {"\u9080\u8BF7\u51FD":[{"id":docId,"name":\u6587\u6863\u540D}]}` \u4F20\u7ED9\u5EFA\u4F1A\u63A5\u53E3\u5373\u53EF\u5199\u8FDB\u8868\u5355\u3002\u4F1A\u771F\u5B9E\u521B\u5EFA\u6587\u6863\uFF08\u9700 confirm: true\uFF09\u3002',
|
|
4295
|
+
capability: "invitation",
|
|
4296
|
+
risk: "high-risk-write",
|
|
4297
|
+
inputSchema: {
|
|
4298
|
+
type: "object",
|
|
4299
|
+
additionalProperties: false,
|
|
4300
|
+
properties: {
|
|
4301
|
+
mtId: { ...SCHEMA_ID, description: "\u4F1A\u8BAE id\uFF08\u4E0E\u4E0B\u9762\u5B57\u6BB5\u4E8C\u9009\u4E00\uFF09\uFF1A\u6709\u5219\u6309\u771F\u5B9E\u4F1A\u8BAE\u6570\u636E\u751F\u6210" },
|
|
4302
|
+
mt_name: { type: "string", description: "\u4F1A\u8BAE\u540D\u79F0\uFF08\u65E0 mtId \u65F6\u5FC5\u586B\uFF09" },
|
|
4303
|
+
begin_datetime: { type: "string", description: "\u5F00\u59CB\u65F6\u95F4 yyyy-MM-dd HH:mm" },
|
|
4304
|
+
end_datetime: { type: "string", description: "\u7ED3\u675F\u65F6\u95F4 yyyy-MM-dd HH:mm" },
|
|
4305
|
+
address: { type: "string", description: "\u4F1A\u8BAE\u5730\u70B9\uFF08\u540D\u79F0\uFF09" },
|
|
4306
|
+
hrm_members: { type: "string", description: "\u53C2\u4F1A\u4EBA\u59D3\u540D\uFF08\u9017\u53F7/\u987F\u53F7\u5206\u9694\uFF09" },
|
|
4307
|
+
mt_desc: { type: "string", description: "\u4F1A\u8BAE\u5185\u5BB9" },
|
|
4308
|
+
org_members: { type: "string", description: "\u843D\u6B3E\u5355\u4F4D" },
|
|
4309
|
+
caller: { type: "string", description: "\u53EC\u96C6\u4EBA" },
|
|
4310
|
+
contacter: { type: "string", description: "\u8054\u7CFB\u4EBA" },
|
|
4311
|
+
total_member: { type: "string", description: "\u53C2\u4F1A\u4EBA\u6570" },
|
|
4312
|
+
extra: {
|
|
4313
|
+
type: "object",
|
|
4314
|
+
additionalProperties: { type: "string" },
|
|
4315
|
+
description: "\u81EA\u5B9A\u4E49\u5B57\u6BB5\uFF08\u5982 guest_org=\u5BA2\u6237\u5355\u4F4D\uFF1Bagenda=\u8BAE\u7A0B\uFF09"
|
|
4316
|
+
},
|
|
4317
|
+
doc_name: { type: "string", description: "\u6587\u6863\u540D\uFF0C\u9ED8\u8BA4\u300C\u9080\u8BF7\u51FD-<\u4F1A\u8BAE\u540D>-<\u65E5\u671F>\u300D" },
|
|
4318
|
+
folder_id: { type: "string", description: `\u6587\u6863\u4E2D\u5FC3\u76EE\u5F55 id\uFF0C\u9ED8\u8BA4 ${DEFAULT_FOLDER_ID}` },
|
|
4319
|
+
folder_type: { type: "string", enum: ["company", "privy", "sys"], description: `\u76EE\u5F55\u7C7B\u578B\uFF0C\u9ED8\u8BA4 ${DEFAULT_FOLDER_TYPE}` },
|
|
4320
|
+
confirm: { type: "boolean", description: "\u5FC5\u987B\u663E\u5F0F\u4F20 true \u2014\u2014 \u4F1A\u771F\u5B9E\u521B\u5EFA\u4E00\u7BC7\u6587\u6863" }
|
|
4321
|
+
},
|
|
4322
|
+
required: ["confirm"]
|
|
4323
|
+
},
|
|
4324
|
+
handler: async (args, env) => {
|
|
4325
|
+
if (args.confirm !== true) {
|
|
4326
|
+
throw meetingValidationError(
|
|
4327
|
+
"confirm_required",
|
|
4328
|
+
"\u4F1A\u771F\u5B9E\u521B\u5EFA\u6587\u6863\uFF0C\u5FC5\u987B\u663E\u5F0F\u4F20 confirm: true\uFF08\u53EF\u5148\u4E0D\u5E26 confirm \u8C03 meeting.invitation.render \u9884\u89C8\u6B63\u6587\uFF09"
|
|
4329
|
+
);
|
|
4330
|
+
}
|
|
4331
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
4332
|
+
const render = getMeetingOperation2("meeting.invitation.render");
|
|
4333
|
+
const rendered = await render.handler(
|
|
4334
|
+
{
|
|
4335
|
+
...args.mtId !== void 0 ? { mtId: args.mtId } : {},
|
|
4336
|
+
...args.mt_name !== void 0 ? { mt_name: args.mt_name } : {},
|
|
4337
|
+
...args.begin_datetime !== void 0 ? { begin_datetime: args.begin_datetime } : {},
|
|
4338
|
+
...args.end_datetime !== void 0 ? { end_datetime: args.end_datetime } : {},
|
|
4339
|
+
...args.address !== void 0 ? { address: args.address } : {},
|
|
4340
|
+
...args.hrm_members !== void 0 ? { hrm_members: args.hrm_members } : {},
|
|
4341
|
+
...args.mt_desc !== void 0 ? { mt_desc: args.mt_desc } : {},
|
|
4342
|
+
...args.org_members !== void 0 ? { org_members: args.org_members } : {},
|
|
4343
|
+
...args.caller !== void 0 ? { caller: args.caller } : {},
|
|
4344
|
+
...args.contacter !== void 0 ? { contacter: args.contacter } : {},
|
|
4345
|
+
...args.total_member !== void 0 ? { total_member: args.total_member } : {},
|
|
4346
|
+
...args.extra !== void 0 ? { extra: args.extra } : {}
|
|
4347
|
+
},
|
|
4348
|
+
env
|
|
4349
|
+
);
|
|
4350
|
+
const filePath = String(rendered?.data?.filePath ?? "").trim();
|
|
4351
|
+
if (!filePath) throw meetingValidationError("render_failed", "\u9080\u8BF7\u51FD docx \u672A\u751F\u6210\uFF08render \u672A\u8FD4\u56DE filePath\uFF09");
|
|
4352
|
+
const session = await env.host.getSession();
|
|
4353
|
+
const authorId = String(session?.userId ?? "").trim();
|
|
4354
|
+
if (!authorId) throw meetingValidationError("session_missing", "\u62FF\u4E0D\u5230\u5F53\u524D\u767B\u5F55\u4EBA\uFF0C\u65E0\u6CD5\u521B\u5EFA\u6587\u6863");
|
|
4355
|
+
const docName = String(args.doc_name ?? "").trim() || String(rendered?.data?.fileName ?? "").replace(/\.docx$/i, "") || "\u9080\u8BF7\u51FD";
|
|
4356
|
+
const caizhilianArgs = {
|
|
4357
|
+
file_path: normalizeWinPath(filePath),
|
|
4358
|
+
name: docName,
|
|
4359
|
+
folder_id: String(args.folder_id ?? DEFAULT_FOLDER_ID),
|
|
4360
|
+
folder_type: String(args.folder_type ?? DEFAULT_FOLDER_TYPE),
|
|
4361
|
+
author_id: authorId
|
|
4362
|
+
};
|
|
4363
|
+
const { executeCaizhilianOperation } = await import("./operations-J7PUIVWZ.js");
|
|
4364
|
+
const { createCaizhilianHost } = await import("./host-7NTIBSPK.js");
|
|
4365
|
+
const { createCaizhilianContinuationSigner } = await import("./continuation-GW6PRWK3.js");
|
|
4366
|
+
const caizhilianEnv = {
|
|
4367
|
+
ctx: env.ctx,
|
|
4368
|
+
host: createCaizhilianHost(env.ctx),
|
|
4369
|
+
continuation: createCaizhilianContinuationSigner(env.ctx)
|
|
4370
|
+
};
|
|
4371
|
+
const prepared = await executeCaizhilianOperation(
|
|
4372
|
+
"caizhilian.document.create-office.prepare",
|
|
4373
|
+
caizhilianArgs,
|
|
4374
|
+
caizhilianEnv
|
|
4375
|
+
);
|
|
4376
|
+
const continuation = String(prepared?.data?.continuation ?? "");
|
|
4377
|
+
if (!continuation) {
|
|
4378
|
+
throw meetingValidationError("publish_prepare_failed", "create-office.prepare \u672A\u8FD4\u56DE continuation");
|
|
4379
|
+
}
|
|
4380
|
+
const applied = await executeCaizhilianOperation(
|
|
4381
|
+
"caizhilian.document.create-office.apply",
|
|
4382
|
+
{ ...caizhilianArgs, continuation, confirm: true },
|
|
4383
|
+
caizhilianEnv
|
|
4384
|
+
);
|
|
4385
|
+
const docId = String(applied?.data?.doc_id ?? "").trim();
|
|
4386
|
+
if (!docId) throw meetingValidationError("publish_failed", "create-office.apply \u672A\u8FD4\u56DE doc_id");
|
|
4387
|
+
return meetingSuccess(
|
|
4388
|
+
"meeting.invitation.publish",
|
|
4389
|
+
{
|
|
4390
|
+
docId,
|
|
4391
|
+
docName,
|
|
4392
|
+
filePath,
|
|
4393
|
+
folderId: caizhilianArgs.folder_id,
|
|
4394
|
+
folderType: caizhilianArgs.folder_type,
|
|
4395
|
+
// 直接可用的表单字段值(建会时放进 extraFields.邀请函)
|
|
4396
|
+
formFieldValue: [{ id: docId, name: docName }],
|
|
4397
|
+
// 对话里要贴正文,别只给 id
|
|
4398
|
+
text: rendered?.data?.text ?? "",
|
|
4399
|
+
pendingFields: rendered?.data?.pendingFields ?? []
|
|
4400
|
+
},
|
|
4401
|
+
{
|
|
4402
|
+
...Array.isArray(applied?.warnings) && applied.warnings.length > 0 ? { warnings: applied.warnings } : {}
|
|
4403
|
+
}
|
|
4404
|
+
);
|
|
4405
|
+
}
|
|
4406
|
+
};
|
|
4407
|
+
var meetingInvitationPublishOperations = [meetingInvitationPublish];
|
|
4408
|
+
|
|
4269
4409
|
// src/shortcuts/meeting/operations/qrcode.ts
|
|
4270
4410
|
import { mkdir as mkdir3, writeFile as writeFile3 } from "node:fs/promises";
|
|
4271
4411
|
import { dirname as dirname2, isAbsolute, join as join2, resolve as resolve4 } from "node:path";
|
|
@@ -4903,7 +5043,7 @@ var meetingSummaryGet = {
|
|
|
4903
5043
|
const mtId = textOf5(args.mt_id).trim();
|
|
4904
5044
|
if (!mtId) throw meetingValidationError("mt_id_required", "\u5FC5\u987B\u63D0\u4F9B\u4F1A\u8BAE id\uFF08mt_id\uFF09");
|
|
4905
5045
|
const ctx = env.ctx;
|
|
4906
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
5046
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
4907
5047
|
const warnings = [];
|
|
4908
5048
|
const timings = {};
|
|
4909
5049
|
const include = Array.isArray(args.include) && args.include.length > 0 ? args.include.filter((item) => ALL_SECTIONS.includes(item)) : ALL_SECTIONS;
|
|
@@ -5039,7 +5179,7 @@ var meetingSummaryGet = {
|
|
|
5039
5179
|
warnings.push("\u8BE5\u4F1A\u8BAE\u6CA1\u6709\u5173\u8054\u7FA4\u804A\uFF08imchat_groupid \u4E3A\u7A7A\uFF09\uFF0Cchat \u6BB5\u4E3A null");
|
|
5040
5180
|
} else {
|
|
5041
5181
|
try {
|
|
5042
|
-
const { createImHost } = await import("./host-
|
|
5182
|
+
const { createImHost } = await import("./host-M4XP5URR.js");
|
|
5043
5183
|
const { createImContinuationSigner } = await import("./continuation-3S37AUSH.js");
|
|
5044
5184
|
const { getImOperation } = await import("./registry-PVUZQDDQ.js");
|
|
5045
5185
|
const imEnv = {
|
|
@@ -5165,7 +5305,7 @@ var meetingFormFields = {
|
|
|
5165
5305
|
hint: "\u6CA1\u89E3\u6790\u5230\u8BE5\u8868\u7684 objId\uFF08\u53EF\u80FD\u5F53\u524D\u73AF\u5883\u6CA1\u6709\u8FD9\u5F20\u8868\uFF0C\u6216\u8D26\u53F7\u65E0\u6743\u9650\uFF09"
|
|
5166
5306
|
}, { warnings: resolved.warnings });
|
|
5167
5307
|
}
|
|
5168
|
-
const { createEbuilderFormHost } = await import("./host-
|
|
5308
|
+
const { createEbuilderFormHost } = await import("./host-7OWWPLM4.js");
|
|
5169
5309
|
const { createEbuilderFormContinuationSigner } = await import("./continuation-3XLYYTKV.js");
|
|
5170
5310
|
const { executeEbuilderFormOperation } = await import("./operations-62N6EP3C.js");
|
|
5171
5311
|
const formEnv = {
|
|
@@ -5224,7 +5364,7 @@ var MT_STATUS_OVER = "8";
|
|
|
5224
5364
|
var CANCELLED_MARK_DELAY_MS = 800;
|
|
5225
5365
|
async function isCancelledMeeting(env, mtId) {
|
|
5226
5366
|
try {
|
|
5227
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
5367
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
5228
5368
|
const listed = await getMeetingOperation2("meeting.eb.meeting.list").handler(
|
|
5229
5369
|
// withCount:false —— 这里只要一行状态,不必额外请求 count(少一次往返,也便于测试替身)
|
|
5230
5370
|
{ mt_id: mtId, pageNo: 1, pageSize: 1, withCount: false },
|
|
@@ -6037,9 +6177,9 @@ async function runCrmSearchFlow(env, input) {
|
|
|
6037
6177
|
if (!employeeId) {
|
|
6038
6178
|
throw meetingValidationError("crm_employee_required", "\u53D6\u4E0D\u5230\u5F53\u524D\u767B\u5F55\u7528\u6237 id\uFF0C\u65E0\u6CD5\u89E6\u53D1 ESB \u5BA2\u6237\u67E5\u8BE2");
|
|
6039
6179
|
}
|
|
6040
|
-
const { createEsbHost } = await import("./host-
|
|
6180
|
+
const { createEsbHost } = await import("./host-3TNBMDTR.js");
|
|
6041
6181
|
const { createEsbContinuationSigner } = await import("./continuation-KI7DRRZN.js");
|
|
6042
|
-
const { getEsbOperation } = await import("./registry-
|
|
6182
|
+
const { getEsbOperation } = await import("./registry-QJCZ2GVG.js");
|
|
6043
6183
|
const esbEnv = {
|
|
6044
6184
|
ctx: env.ctx,
|
|
6045
6185
|
host: createEsbHost(env.ctx),
|
|
@@ -6249,7 +6389,7 @@ var ebAutoInvitationAfterWrite = async (context) => {
|
|
|
6249
6389
|
const mtId = String(context.dataIds?.[0] ?? "").trim();
|
|
6250
6390
|
if (!isCreate || !enabled || !mtId) return association;
|
|
6251
6391
|
try {
|
|
6252
|
-
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-
|
|
6392
|
+
const { getMeetingOperation: getMeetingOperation2 } = await import("./registry-JVQBLFQ5.js");
|
|
6253
6393
|
const render = getMeetingOperation2("meeting.invitation.render");
|
|
6254
6394
|
const result = await render.handler({ mtId }, context.env);
|
|
6255
6395
|
return { ...association ?? {}, invitation: result?.data ?? null };
|
|
@@ -6300,6 +6440,7 @@ function buildRegistry() {
|
|
|
6300
6440
|
...meetingDecisionNotifyOperations,
|
|
6301
6441
|
...meetingPipelineOperations,
|
|
6302
6442
|
...meetingInvitationOperations,
|
|
6443
|
+
...meetingInvitationPublishOperations,
|
|
6303
6444
|
...meetingQrOperations,
|
|
6304
6445
|
...meetingSummaryOperations,
|
|
6305
6446
|
...meetingFormFieldOperations,
|