weaver-work-cli 0.1.42 → 0.1.45
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 +21 -0
- package/dist/chunks/{archive-J4I6MCKF.js → archive-ZQ4A4TV6.js} +399 -47
- package/dist/chunks/{archive-oa-BRZKKTO4.js → archive-oa-BBDP7AKJ.js} +12 -5
- package/dist/chunks/{asset-L7D4FAOZ.js → asset-ZOJVBWZH.js} +11 -4
- package/dist/chunks/{asset-idle-DADLLV75.js → asset-idle-XGB5IPGT.js} +7 -3
- package/dist/chunks/{attachment-content-K4C7VLWQ.js → attachment-content-CE3GMWTS.js} +5 -4
- package/dist/chunks/{blog-BVGQ7NZL.js → blog-QSHLZSFW.js} +11 -4
- package/dist/chunks/caizhilian-KCQYFH72.js +204 -0
- package/dist/chunks/{calendar-Q7NQY5Z2.js → calendar-DLGMRJQA.js} +12 -5
- package/dist/chunks/{chunk-W7BEHOSR.js → chunk-3WBIQLMB.js} +2 -2
- package/dist/chunks/{chunk-4PD5NWAX.js → chunk-3YV7PKRL.js} +2 -2
- package/dist/chunks/{chunk-JPRO6ER2.js → chunk-3ZMAQQ3W.js} +185 -60
- package/dist/chunks/{chunk-R4CHUSKC.js → chunk-4EXOIQDI.js} +40 -10
- package/dist/chunks/{chunk-OOUTBLZ4.js → chunk-56EZERK4.js} +1 -1
- package/dist/chunks/chunk-6N4JPNFL.js +76 -0
- package/dist/chunks/{chunk-SA6VBIHY.js → chunk-6NXT4ICB.js} +342 -17
- package/dist/chunks/{chunk-ZUX3P6BQ.js → chunk-727FH2NI.js} +1 -1
- package/dist/chunks/chunk-762M5XJS.js +215 -0
- package/dist/chunks/{chunk-GEWYMQME.js → chunk-77YP6I52.js} +1 -1
- package/dist/chunks/chunk-7BDPM5ST.js +11 -0
- package/dist/chunks/{chunk-G4UR6NXN.js → chunk-CZNZKOHR.js} +3 -3
- package/dist/chunks/{chunk-GHXCDPTM.js → chunk-DGMYACGJ.js} +1 -1
- package/dist/chunks/{chunk-4RAE6JXP.js → chunk-DLY5GUXX.js} +6 -3
- package/dist/chunks/{chunk-BYBSCN4X.js → chunk-G7PQWD4L.js} +6 -3
- package/dist/chunks/{chunk-EKWAQSLU.js → chunk-GR76ZDDX.js} +432 -2248
- package/dist/chunks/{chunk-APVFJUQH.js → chunk-HFXK54M4.js} +3 -3
- package/dist/chunks/{chunk-EZALDOQH.js → chunk-HP7JIYMT.js} +5 -2
- package/dist/chunks/{chunk-ZEDWSH32.js → chunk-IC62NFM5.js} +1 -1
- package/dist/chunks/{chunk-3KTFS4IA.js → chunk-JB34OE7R.js} +808 -85
- package/dist/chunks/{chunk-72CKAUAG.js → chunk-JWWTI63L.js} +59 -7
- package/dist/chunks/{chunk-P26ZWSKU.js → chunk-KIHNAS25.js} +5 -2
- package/dist/chunks/{chunk-NKZRQXST.js → chunk-LGKWL4OH.js} +200 -47
- package/dist/chunks/chunk-LRCPNDZA.js +2529 -0
- package/dist/chunks/{chunk-QKNKR4RH.js → chunk-LXFVWZLM.js} +4 -4
- package/dist/chunks/{chunk-NOODWMCL.js → chunk-O6CMPO65.js} +25 -2
- package/dist/chunks/{chunk-BIPYLLVS.js → chunk-OAE3AZBQ.js} +15 -15
- package/dist/chunks/chunk-P5GQRWDC.js +60 -0
- package/dist/chunks/{caizhilian-SAADNFD6.js → chunk-PGO4ILMQ.js} +44 -517
- package/dist/chunks/{chunk-2LV74IWP.js → chunk-Q4OYAQYH.js} +1 -1
- package/dist/chunks/{chunk-LDZQPUIA.js → chunk-T4MWQAQB.js} +8 -6
- package/dist/chunks/{chunk-BBKDXQEC.js → chunk-TGAGQV4I.js} +3 -3
- package/dist/chunks/{chunk-GPMFD4RD.js → chunk-TXUG266F.js} +1 -1
- package/dist/chunks/{chunk-FOAA27U5.js → chunk-U6R6FZHD.js} +184 -18
- package/dist/chunks/{chunk-LUSPKZKY.js → chunk-UG5G54VL.js} +1 -0
- package/dist/chunks/{chunk-NIAJ5ZCG.js → chunk-UL5XUQ25.js} +5 -2
- package/dist/chunks/{chunk-IZ7S7QUS.js → chunk-VIMCY4DI.js} +6 -6
- package/dist/chunks/chunk-VRPH24IC.js +76 -0
- package/dist/chunks/{chunk-FMPJJYYI.js → chunk-WRXSAVKO.js} +1 -1
- package/dist/chunks/{chunk-YRSZQUD2.js → chunk-YIKSL36S.js} +3 -3
- package/dist/chunks/{chunk-3SO6QL6U.js → chunk-YWX377BY.js} +5 -2
- package/dist/chunks/{chunk-BYATLLEF.js → chunk-Z3GDFVJR.js} +1 -1
- package/dist/chunks/{chunk-LADPYOWC.js → chunk-Z6UUBY37.js} +3 -3
- package/dist/chunks/{conflict-F2OMZRTO.js → conflict-IYJETSGT.js} +4 -3
- package/dist/chunks/{continuation-2CKSBLA6.js → continuation-3S37AUSH.js} +4 -3
- package/dist/chunks/{continuation-RN6PZN2M.js → continuation-3XLYYTKV.js} +4 -3
- package/dist/chunks/continuation-GW6PRWK3.js +12 -0
- package/dist/chunks/{continuation-HZIZRZBX.js → continuation-HFW2YT5S.js} +4 -3
- package/dist/chunks/{continuation-NLECEJPX.js → continuation-KI7DRRZN.js} +4 -3
- package/dist/chunks/{contract-5BETHRSG.js → contract-3QLAGYQL.js} +5803 -4593
- package/dist/chunks/{cowork-3MN6EQQO.js → cowork-3ACICHDQ.js} +11 -4
- package/dist/chunks/{create-flow-5FQNNMVO.js → create-flow-7JLC7UID.js} +8 -7
- package/dist/chunks/{ebuilder-form-SBHOYBUD.js → ebuilder-form-GWDTKEI2.js} +14 -9
- package/dist/chunks/{ehr-KMOJULKG.js → ehr-MYRDCHZ4.js} +357 -43
- package/dist/chunks/{employee-SAK2QYXX.js → employee-NOHNXC46.js} +3 -3
- package/dist/chunks/{env-LB7NBL2O.js → env-3MBHAWBL.js} +4 -3
- package/dist/chunks/{esb-W2PJCFCX.js → esb-4BQHNP5C.js} +12 -7
- package/dist/chunks/{factory-6ZFQXQ46.js → factory-TZEVU4DU.js} +3 -2
- package/dist/chunks/{fna-ZQPCUV4R.js → fna-ZVB2IILI.js} +14 -8
- package/dist/chunks/{group-chat-2HHAJN46.js → group-chat-KL3HFKRM.js} +5 -4
- package/dist/chunks/{host-YTODKMSL.js → host-3TNBMDTR.js} +5 -5
- package/dist/chunks/host-7NTIBSPK.js +25 -0
- package/dist/chunks/{host-4CBHGOHT.js → host-7OWWPLM4.js} +5 -5
- package/dist/chunks/{host-ATKVNZAT.js → host-G3VU7SDW.js} +5 -5
- package/dist/chunks/{host-BQH22NTQ.js → host-M4XP5URR.js} +5 -5
- package/dist/chunks/{host-X2CSLFM6.js → host-TUOIOEMC.js} +5 -5
- package/dist/chunks/{hrm-FFM4UJFS.js → hrm-UNKCCCGP.js} +11 -7
- package/dist/chunks/{im-VEHKDQPB.js → im-NJB7ZYMH.js} +8 -7
- package/dist/chunks/{invoice-LVIKSIIF.js → invoice-OQP3TMKQ.js} +636 -1768
- package/dist/chunks/{jiuchuanhui-X6DINO5P.js → jiuchuanhui-ASFZBMPU.js} +14 -6
- package/dist/chunks/{lazy-dispatch-KSWTN5L6.js → lazy-dispatch-UH6HGK2I.js} +7 -6
- package/dist/chunks/{mail-VDKRGUD3.js → mail-M3HJF5ER.js} +16 -14
- package/dist/chunks/{meeting-CLC6HP3Z.js → meeting-C67EHQ4Z.js} +21 -14
- package/dist/chunks/{okr-CHG4OO3U.js → okr-EVX7FB5G.js} +12 -5
- package/dist/chunks/{operations-5QL3AECO.js → operations-62N6EP3C.js} +4 -3
- package/dist/chunks/operations-J7PUIVWZ.js +15 -0
- package/dist/chunks/{plan-XWR75667.js → plan-2QJQEPBO.js} +12 -5
- package/dist/chunks/{project-5BXOOKMG.js → project-XELELW2T.js} +11 -4
- package/dist/chunks/reception-5WITA44R.js +1899 -0
- package/dist/chunks/{recruit-stage-DGMFNNDE.js → recruit-stage-AHY5QAMF.js} +745 -149
- package/dist/chunks/{registry-RHMW6ANW.js → registry-AQVGHUM6.js} +7 -6
- package/dist/chunks/{registry-OZSMDVPP.js → registry-PVUZQDDQ.js} +3 -3
- package/dist/chunks/{registry-7FFOXIAW.js → registry-QJCZ2GVG.js} +7 -6
- package/dist/chunks/{registry-Z43434VG.js → registry-VWXWPVAG.js} +4 -4
- package/dist/chunks/registry-XPWPGHYE.js +24 -0
- package/dist/chunks/{room-recommend-62H7ZQQ6.js → room-recommend-CNWE5WQK.js} +8 -5
- package/dist/chunks/{schedule-FNXKH3DQ.js → schedule-YYNYBQIE.js} +6 -5
- package/dist/chunks/{workflow-ADHKCAJK.js → workflow-BSYT5TGL.js} +15 -8
- package/dist/cmd/action.js +6 -0
- package/dist/cmd/identity/index.js +45 -0
- package/dist/cmd/index.js +2 -0
- package/dist/core/continuation-ttl.js +18 -0
- package/dist/core/error-codes.js +85 -0
- package/dist/core/logger.js +11 -0
- package/dist/index.js +37 -31
- package/dist/internal/e10/auth/commands.js +195 -8
- package/dist/internal/e10/auth/error-log.js +312 -0
- package/dist/internal/e10/auth/session.js +17 -3
- package/dist/internal/e10/auth/xiaoe.js +176 -13
- package/dist/internal/e10/auth-recovery.js +39 -12
- package/dist/internal/e10/context.js +29 -3
- package/dist/internal/skills/install.js +9 -1
- package/dist/shortcuts/archive/continuation.js +2 -1
- package/dist/shortcuts/archive/index.js +3 -0
- package/dist/shortcuts/archive/operations/borrow-list.js +105 -14
- package/dist/shortcuts/archive/operations/confirm.js +2 -1
- 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/archive-oa/continuation.js +2 -1
- package/dist/shortcuts/archive-oa/index.js +2 -0
- package/dist/shortcuts/archive-oa/operations/confirm.js +2 -1
- package/dist/shortcuts/asset/continuation.js +2 -1
- package/dist/shortcuts/asset/index.js +2 -0
- package/dist/shortcuts/asset-idle/index.js +2 -0
- package/dist/shortcuts/blog/continuation.js +2 -1
- package/dist/shortcuts/blog/index.js +2 -0
- package/dist/shortcuts/caizhilian/continuation.js +2 -1
- package/dist/shortcuts/caizhilian/index.js +2 -0
- package/dist/shortcuts/caizhilian/operations/confirm.js +3 -2
- package/dist/shortcuts/calendar/continuation.js +2 -1
- package/dist/shortcuts/calendar/index.js +2 -0
- package/dist/shortcuts/calendar/operations/write.js +1 -1
- package/dist/shortcuts/contract/continuation.js +2 -1
- package/dist/shortcuts/contract/host.js +111 -4
- package/dist/shortcuts/contract/index.js +21 -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/operations/write.js +2 -1
- package/dist/shortcuts/contract/upload-cache.js +104 -0
- package/dist/shortcuts/cowork/continuation.js +2 -1
- package/dist/shortcuts/cowork/index.js +2 -0
- package/dist/shortcuts/ebuilder-form/continuation.js +2 -1
- package/dist/shortcuts/ebuilder-form/index.js +2 -0
- package/dist/shortcuts/ebuilder-form/operations/write.js +3 -2
- package/dist/shortcuts/ehr/continuation.js +2 -1
- package/dist/shortcuts/ehr/index.js +2 -0
- package/dist/shortcuts/ehr/operations/attend-write.js +1 -1
- package/dist/shortcuts/ehr/operations/recruit-candidate-import.js +186 -5
- package/dist/shortcuts/ehr/operations/recruit-position.js +239 -6
- package/dist/shortcuts/ehr/operations/recruit-write.js +18 -19
- package/dist/shortcuts/ehr/operations/recruit.js +17 -5
- package/dist/shortcuts/esb/continuation.js +2 -1
- package/dist/shortcuts/esb/index.js +2 -0
- package/dist/shortcuts/esb/operations/trigger.js +2 -1
- package/dist/shortcuts/fna/continuation.js +2 -1
- package/dist/shortcuts/fna/index.js +2 -0
- package/dist/shortcuts/fna/operations/invoice-writeoff.js +1 -1
- package/dist/shortcuts/fna/operations/loan.js +1 -1
- package/dist/shortcuts/hrm/index.js +2 -0
- package/dist/shortcuts/hrm/operations/employee.js +29 -1
- package/dist/shortcuts/im/continuation.js +2 -1
- package/dist/shortcuts/index.js +5 -0
- package/dist/shortcuts/invoice/continuation.js +2 -1
- package/dist/shortcuts/invoice/index.js +14 -15
- package/dist/shortcuts/invoice/invoice-record.js +93 -0
- package/dist/shortcuts/invoice/manifest.js +190 -393
- package/dist/shortcuts/invoice/operations/add.js +2 -1
- package/dist/shortcuts/invoice/operations/delete.js +2 -1
- package/dist/shortcuts/invoice/operations/import.js +2 -1
- package/dist/shortcuts/invoice/operations/issuing-contract-detail.js +86 -0
- package/dist/shortcuts/invoice/operations/issuing-contracts.js +210 -0
- package/dist/shortcuts/invoice/operations/registry.js +17 -17
- package/dist/shortcuts/invoice/operations/reim-auto.js +4 -569
- package/dist/shortcuts/invoice/operations/reim.js +52 -341
- package/dist/shortcuts/invoice/operations/shared.js +21 -4
- package/dist/shortcuts/invoice/operations/update.js +2 -1
- package/dist/shortcuts/invoice/projection.js +10 -62
- package/dist/shortcuts/jiuchuanhui/continuation.js +2 -1
- package/dist/shortcuts/jiuchuanhui/index.js +2 -0
- package/dist/shortcuts/jiuchuanhui/operations/datajson.js +2 -1
- package/dist/shortcuts/jiuchuanhui/operations/esb.js +2 -1
- package/dist/shortcuts/mail/continuation.js +2 -1
- package/dist/shortcuts/mail/index.js +2 -0
- package/dist/shortcuts/mail/operations/mail-blacklist.js +1 -1
- package/dist/shortcuts/mail/operations/mail-contacts.js +1 -1
- package/dist/shortcuts/mail/operations/mail-send.js +1 -1
- package/dist/shortcuts/mail/operations/mail-sign.js +1 -1
- package/dist/shortcuts/mail/operations/mail-template.js +1 -1
- package/dist/shortcuts/meeting/continuation.js +2 -1
- package/dist/shortcuts/meeting/index.js +2 -0
- package/dist/shortcuts/meeting/operations/change.js +1 -1
- package/dist/shortcuts/meeting/operations/create.js +1 -1
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +198 -65
- package/dist/shortcuts/meeting/operations/eb/decision.js +1 -1
- package/dist/shortcuts/meeting/operations/eb/draft-memory.js +56 -0
- package/dist/shortcuts/meeting/operations/eb/factory.js +59 -4
- package/dist/shortcuts/meeting/operations/eb/person-cache.js +2 -2
- package/dist/shortcuts/meeting/operations/eb/room-recommend.js +47 -5
- package/dist/shortcuts/meeting/operations/invitation-publish.js +132 -0
- package/dist/shortcuts/meeting/operations/lifecycle.js +1 -1
- package/dist/shortcuts/meeting/operations/receipts.js +1 -1
- package/dist/shortcuts/meeting/operations/registry.js +2 -0
- package/dist/shortcuts/meeting/operations/signs.js +1 -1
- package/dist/shortcuts/okr/continuation.js +2 -1
- package/dist/shortcuts/okr/index.js +2 -0
- package/dist/shortcuts/okr/operations/write.js +1 -1
- package/dist/shortcuts/plan/continuation.js +2 -1
- package/dist/shortcuts/plan/index.js +2 -0
- package/dist/shortcuts/plan/operations/write.js +1 -1
- package/dist/shortcuts/project/continuation.js +2 -1
- package/dist/shortcuts/project/index.js +2 -0
- package/dist/shortcuts/reception/constants.js +53 -0
- package/dist/shortcuts/reception/errors.js +54 -0
- package/dist/shortcuts/reception/host.js +125 -0
- package/dist/shortcuts/reception/index.js +198 -0
- package/dist/shortcuts/reception/manifest.js +177 -0
- package/dist/shortcuts/reception/operations/ask.js +71 -0
- package/dist/shortcuts/reception/operations/browsertool.js +58 -0
- package/dist/shortcuts/reception/operations/compose.js +129 -0
- package/dist/shortcuts/reception/operations/customparams.js +74 -0
- package/dist/shortcuts/reception/operations/doc.js +238 -0
- package/dist/shortcuts/reception/operations/docrender.js +36 -0
- package/dist/shortcuts/reception/operations/panels.js +179 -0
- package/dist/shortcuts/reception/operations/registry.js +26 -0
- package/dist/shortcuts/reception/operations/render-assets.js +184 -0
- package/dist/shortcuts/reception/operations/render.js +123 -0
- package/dist/shortcuts/reception/operations/runs.js +38 -0
- package/dist/shortcuts/reception/operations/schedule.js +127 -0
- package/dist/shortcuts/reception/operations/shared.js +196 -0
- package/dist/shortcuts/reception/operations/snapshot.js +68 -0
- package/dist/shortcuts/reception/operations/types.js +1 -0
- package/dist/shortcuts/reception/operations.js +33 -0
- package/dist/shortcuts/reception/upload.js +218 -0
- package/dist/shortcuts/recruit-stage/context.js +145 -33
- package/dist/shortcuts/recruit-stage/continuation.js +2 -1
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +86 -16
- package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +6 -4
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +289 -48
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +207 -25
- package/dist/shortcuts/recruit-stage/shared.js +161 -18
- package/dist/shortcuts/workflow/continuation.js +2 -1
- package/dist/shortcuts/workflow/index.js +4 -0
- package/dist/shortcuts/workflow/operations/form.js +32 -8
- 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/dist/shortcuts/workflow/operations/write.js +1 -1
- package/docs/_catalog.md +3 -0
- package/docs/agent-invoice.md +1 -1
- package/docs/archive-oa.md +1 -1
- package/docs/caizhilian.md +1 -1
- package/docs/calendar.md +1 -1
- package/docs/contract.md +2 -1
- package/docs/e10-auth.md +19 -1
- package/docs/ehr.md +2 -2
- package/docs/esb.md +1 -1
- package/docs/im.md +1 -1
- package/docs/invoice.md +8 -12
- package/docs/okr.md +1 -1
- package/docs/reception.md +119 -0
- package/docs/todo-smart-convert/data-contract.md +7 -0
- package/package.json +1 -1
- package/scripts/clean.mjs +43 -2
- package/skill-template/business-info.json +18 -2
- package/skill-template/domains/caizhilian.md +1 -1
- package/skill-template/domains/jinchengda.md +2 -0
- package/skill-template/domains/reception-flow.md +18 -0
- package/skill-template/domains/yepiaotong.md +4 -7
- package/skills/weaver-e10-archive-oa/references/source-manifest.json +14 -14
- package/skills/weaver-e10-blog/references/blog-publish.md +1 -1
- package/skills/weaver-e10-blog/references/source-manifest.json +7 -7
- package/skills/weaver-e10-caizhilian/references/source-manifest.json +21 -21
- package/skills/weaver-e10-caizhilian/references/write-protocol.md +2 -2
- package/skills/weaver-e10-calendar/references/calendar-write.md +1 -1
- package/skills/weaver-e10-cowork/SKILL.md +1 -1
- package/skills/weaver-e10-ebuilder-form/SKILL.md +1 -1
- package/skills/weaver-e10-ebuilder-form/references/custom-api.md +1 -1
- package/skills/weaver-e10-ebuilder-form/references/openapi-write.md +1 -1
- package/skills/weaver-e10-esb/SKILL.md +2 -2
- package/skills/weaver-e10-esb/references/source-manifest.json +22 -22
- package/skills/weaver-e10-esb/references/trigger.md +2 -2
- 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-clause-library-crud.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-clause-reference-save.md +1 -1
- 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-request-write.md +1 -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-jinchengda/references/source-manifest.json +29 -29
- package/skills/weaver-e10-jucailin/SKILL.md +1 -1
- package/skills/weaver-e10-jucailin/references/attend-write.md +2 -2
- package/skills/weaver-e10-jucailin/references/recruit-create.md +15 -4
- package/skills/weaver-e10-jucailin/references/recruit-write.md +3 -3
- package/skills/weaver-e10-meeting/SKILL.md +64 -14
- package/skills/weaver-e10-meeting/references/meeting-change.md +1 -1
- package/skills/weaver-e10-meeting/references/meeting-create.md +1 -1
- package/skills/weaver-e10-meeting/references/meeting-lifecycle.md +1 -1
- package/skills/weaver-e10-meeting/references/meeting-verification.md +1 -1
- package/skills/weaver-e10-okr/references/okr-align.md +1 -1
- package/skills/weaver-e10-okr/references/okr-keyresult.md +1 -1
- package/skills/weaver-e10-okr/references/okr-write.md +1 -1
- package/skills/weaver-e10-okr/references/source-manifest.json +8 -8
- package/skills/weaver-e10-plan/references/plan-report-write.md +1 -1
- package/skills/weaver-e10-plan/references/source-manifest.json +20 -20
- package/skills/weaver-e10-qiyecheng/references/loan-management.md +1 -1
- package/skills/weaver-e10-qiyecheng/references/source-manifest.json +18 -18
- package/skills/weaver-e10-reception-flow/SKILL.md +173 -0
- package/skills/weaver-e10-reception-flow/assets//350/241/214/347/250/213/345/215/225/346/250/241/346/235/277-/346/263/233/345/276/256.docx +0 -0
- package/skills/weaver-e10-reception-flow/data/fields-snapshot.json +213 -0
- package/skills/weaver-e10-reception-flow/references/browsertool.md +68 -0
- package/skills/weaver-e10-reception-flow/references/env-pitfalls.md +51 -0
- package/skills/weaver-e10-reception-flow/references/fields-snapshot.md +227 -0
- package/skills/weaver-e10-reception-flow/references/guide.md +179 -0
- package/skills/weaver-e10-reception-flow/scripts/locate.sh +14 -0
- package/skills/weaver-e10-reception-flow/scripts/render.py +724 -0
- package/skills/weaver-e10-recruit-stage/SKILL.md +19 -10
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +10 -2
- package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +1 -1
- package/skills/weaver-e10-recruit-stage/lib/xiaoe-session.mjs +66 -0
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +204 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +13 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +29 -6
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +27 -14
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +21 -2
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +9 -1
- package/skills/weaver-e10-shijingran/SKILL.md +5 -5
- package/skills/weaver-e10-shijingran/references/source-manifest.json +37 -36
- package/skills/weaver-e10-skill-maker/references/module-cli-generation.md +2 -0
- 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-wenshuding/references/source-manifest.json +3 -3
- 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/source-manifest.json +32 -32
- 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-yepiaotong/SKILL.md +19 -26
- package/skills/weaver-e10-yepiaotong/references/invoice-detail.md +13 -10
- package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +2 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-workflow.md +194 -155
- package/skills/weaver-e10-yepiaotong/references/invoice-output-view.md +28 -32
- package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +5 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +8 -10
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +211 -616
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +149 -117
- package/skills/weaver-e10-yepiaotong/references/reim-expense-subject-rules.md +17 -20
- package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +20 -39
- package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +55 -22
- package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +7 -17
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +88 -92
- package/skills/weaver-e10-yepiaotong/references/source-manifest.json +144 -354
- package/skills/weaver-e10-yimiaoban/SKILL.md +18 -6
- package/skills/weaver-e10-yimiaoban/references/msg-write.md +31 -1
- package/skills/weaver-e10-yimiaoban/references/safety-boundaries.md +1 -1
- package/skills/weaver-e10-yimiaoban/references/session-sysmsg.md +72 -0
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +11 -11
- package/dist/chunks/chunk-TTPJJJC4.js +0 -465
- package/dist/chunks/registry-BKBZPBAJ.js +0 -23
- package/dist/shortcuts/invoice/markdown.js +0 -172
- package/dist/shortcuts/invoice/operations/issuing-qys.js +0 -424
- package/skills/weaver-e10-meeting.zip +0 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-examples.md +0 -131
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-form-fill-rules.md +0 -179
|
@@ -22,7 +22,7 @@ import path from 'node:path';
|
|
|
22
22
|
import schoolTiers from '../school-tiers.json';
|
|
23
23
|
import { rsSuccess, schemaOf } from './types.js';
|
|
24
24
|
import { rsFail, rsValidationError, rsConfirmationError } from '../errors.js';
|
|
25
|
-
import { objIdOf, formIdOf, saveFormData, getFormLayoutMeta, runSaveButtonEsbActions, getTableMapping, invertTableMapping, datasetSaveFormData, datasetUpdateFormData, checkUnique, getCandidateByPhone, buildCardUrl, buildTalentViewUrl, talentLinkExtra, findMenuNode, randHex32, } from '../shared.js';
|
|
25
|
+
import { objIdOf, formIdOf, saveFormData, getFormLayoutMeta, runSaveButtonEsbActions, getTableMapping, invertTableMapping, datasetSaveFormData, datasetUpdateFormData, checkUnique, getCandidateByPhone, buildCardUrl, buildTalentViewUrl, talentLinkExtra, findMenuNode, randHex32, getDsOptions, dsOptionsSnapshot, restoreDsOptions, invalidateEnvCache, verifySubmitted, expectedFields, probeCreatePermission, } from '../shared.js';
|
|
26
26
|
// 更新时不允许简历覆盖的字段(人工判定/流程状态,简历无权改写)
|
|
27
27
|
const PROTECTED_UPDATE_KEYS = ['is_blacklist', 'recruit_status', 'candidate_status', 'data_status'];
|
|
28
28
|
// ── 上传简历文件(两步:preUploadCheck 取 preUploadId → module/upload 带 file)→ fileid ──
|
|
@@ -223,10 +223,14 @@ function buildSubDetails(structured, subs, cache) {
|
|
|
223
223
|
const parts = Array.isArray(v) ? v : String(v).split(/[,~]/);
|
|
224
224
|
const s = String(parts[0] || '').trim();
|
|
225
225
|
const e = String(parts[1] || '').trim();
|
|
226
|
-
|
|
226
|
+
// 「至今」的岗位/项目只有开始日期(实测 2026-11-05:原逻辑一旦缺 end 就整行跳过,
|
|
227
|
+
// 导致在职经历的起始日期丢失)。有哪个写哪个,两者都空才跳过。
|
|
228
|
+
if (s)
|
|
229
|
+
row[col.startKey] = s;
|
|
230
|
+
if (e)
|
|
231
|
+
row[col.endKey] = e;
|
|
232
|
+
if (!s && !e)
|
|
227
233
|
continue;
|
|
228
|
-
row[col.startKey] = s;
|
|
229
|
-
row[col.endKey] = e;
|
|
230
234
|
continue;
|
|
231
235
|
}
|
|
232
236
|
const scalar = typeof v === 'object' ? String(v.optionId ?? v.content ?? '') : String(v);
|
|
@@ -335,16 +339,24 @@ function makeBriefReader(ctx, formId, objId, fields) {
|
|
|
335
339
|
// 人才卡片 URL(环境缓存 ebdDetailPageId;自用系统追加 recruitType=useSelf)
|
|
336
340
|
function resolveTalentCardUrl(ctx, talentId) {
|
|
337
341
|
const pid = ctx.cache.ebdDetailPageId;
|
|
338
|
-
if (!pid)
|
|
339
|
-
|
|
342
|
+
if (!pid || !talentId) {
|
|
343
|
+
// 缓存缺 ebdDetailPageId(首次运行/换环境)时禁止返回 null:退化为 EB 卡片单页,
|
|
344
|
+
// objId 从环境缓存 talent_pool 取,跨环境动态解析,绝不写死。
|
|
345
|
+
const forms = ctx.cache.forms || {};
|
|
346
|
+
const tobj = String(forms.talent_pool?.objId || forms.talent?.objId || '');
|
|
347
|
+
return tobj && talentId ? buildCardUrl(ctx.baseUrl, tobj, String(talentId)) : null;
|
|
348
|
+
}
|
|
340
349
|
return `${ctx.baseUrl}/sp/ebdpage/view/${pid}?talentId=${talentId}${talentLinkExtra(ctx.cache)}`;
|
|
341
350
|
}
|
|
342
|
-
//
|
|
343
|
-
|
|
351
|
+
// 人才库列表(只打开列表):{baseUrl}/sp/ebdfpage/list/{listId}
|
|
352
|
+
// 2026-11-06 用户定稿:列表链接不携带 /card/... 段,也不拼 talentId 等 query,
|
|
353
|
+
// 避免打开列表时一同滑出人才详情单页;人才卡片由 talentCardUrl 单独给出。
|
|
354
|
+
// listId 取环境缓存 lists.talent.listId(运行时解析,跨环境不写死)。
|
|
355
|
+
function resolveTalentListLocateUrl(ctx, _talentId) {
|
|
344
356
|
const listId = ctx.cache.lists?.talent?.listId;
|
|
345
|
-
if (!listId
|
|
357
|
+
if (!listId)
|
|
346
358
|
return null;
|
|
347
|
-
return `${ctx.baseUrl}/sp/ebdfpage/list/${listId}
|
|
359
|
+
return `${ctx.baseUrl.replace(/\/+$/, '')}/sp/ebdfpage/list/${listId}`;
|
|
348
360
|
}
|
|
349
361
|
// 读记录快照(更新前算 diff):主表 {dataKey: 展示值} + 各子表行数/格数
|
|
350
362
|
async function readTalentSnapshot(ctx, opts) {
|
|
@@ -632,6 +644,140 @@ function normalizeTextStructured(cache, s, warnings) {
|
|
|
632
644
|
fixRows(s.languageAbilities, ['mastery', 'ls_ability', 'literacy']);
|
|
633
645
|
return s;
|
|
634
646
|
}
|
|
647
|
+
// ── 日期格式预检与归一(prepare 阶段前置,避免格式引发连锁失败)──
|
|
648
|
+
// 实测(2026-11-05):人才表单接口只接受 yyyy-MM-dd。模型常给「2020.11」「2008-08」「2004.09-2008.07」,
|
|
649
|
+
// 会让 dataset 新增整批校验失败 → 回退 form/core 建主表 → 回退补明细又被同一格式拦下 → 明细全丢却报 success,
|
|
650
|
+
// 且实测多花 3.4s(5523ms vs 2105ms)。此处统一归一:
|
|
651
|
+
// · 只有年月 → 开始补 -01、结束补当月最后一天(语义约定,写入 warnings 明示)
|
|
652
|
+
// · 「至今/现在」→ 空(表示至今,不伪造结束日)
|
|
653
|
+
// · 区间统一成 "start,end"(comma 分隔,供 DateRange 拆两键)
|
|
654
|
+
// · 无法识别 → 跳过该字段并告警(宁缺勿整批失败),绝不静默改写
|
|
655
|
+
const DATE_ONLY_RE = /^\d{4}-\d{2}-\d{2}$/;
|
|
656
|
+
const ONGOING_RE = /至今|现在|今|now|present/i;
|
|
657
|
+
const RE_RANGE_FULL = /^\s*(\d{4}[.\-/年]\d{1,2}[.\-/月]\d{1,2}\s*日?)\s*[-–—~至,,]\s*(\d{4}[.\-/年]\d{1,2}[.\-/月]\d{1,2}\s*日?|至今|现在|今)\s*$/;
|
|
658
|
+
const RE_RANGE_YM = /^\s*(\d{4}[.\-/年]\d{1,2})\s*[-–—~至,,]\s*(\d{4}[.\-/年]\d{1,2}|至今|现在|今)\s*$/;
|
|
659
|
+
/** 单日期片段 → yyyy-MM-dd;isEnd=true 且缺日时补该月最后一天。无法解析返回 ''。 */
|
|
660
|
+
function normDatePart(raw, isEnd) {
|
|
661
|
+
const s = String(raw ?? '').trim();
|
|
662
|
+
if (!s)
|
|
663
|
+
return '';
|
|
664
|
+
if (ONGOING_RE.test(s))
|
|
665
|
+
return '';
|
|
666
|
+
if (DATE_ONLY_RE.test(s))
|
|
667
|
+
return s;
|
|
668
|
+
const m = s.match(/^(\d{4})\s*[.\-/年]?\s*(\d{1,2})?\s*[.\-/月]?\s*(\d{1,2})?\s*日?$/);
|
|
669
|
+
if (!m)
|
|
670
|
+
return '';
|
|
671
|
+
const y = Number(m[1]);
|
|
672
|
+
const mo = m[2] ? Number(m[2]) : 1;
|
|
673
|
+
if (!y || mo < 1 || mo > 12)
|
|
674
|
+
return '';
|
|
675
|
+
const lastDay = new Date(y, mo, 0).getDate();
|
|
676
|
+
let d;
|
|
677
|
+
if (m[3]) {
|
|
678
|
+
d = Number(m[3]);
|
|
679
|
+
if (d < 1 || d > lastDay)
|
|
680
|
+
return '';
|
|
681
|
+
}
|
|
682
|
+
else {
|
|
683
|
+
d = isEnd ? lastDay : 1;
|
|
684
|
+
}
|
|
685
|
+
return y + '-' + String(mo).padStart(2, '0') + '-' + String(d).padStart(2, '0');
|
|
686
|
+
}
|
|
687
|
+
/** 日期区间 → "start,end";只有单值时返回单值。 */
|
|
688
|
+
function normDateRange(raw) {
|
|
689
|
+
const s = Array.isArray(raw)
|
|
690
|
+
? raw.map((x) => String(x ?? '').trim()).filter(Boolean).join(',')
|
|
691
|
+
: String(raw ?? '').trim();
|
|
692
|
+
if (!s)
|
|
693
|
+
return '';
|
|
694
|
+
const m = s.match(RE_RANGE_FULL) || s.match(RE_RANGE_YM);
|
|
695
|
+
if (m) {
|
|
696
|
+
const a = normDatePart(m[1], false);
|
|
697
|
+
if (!a)
|
|
698
|
+
return '';
|
|
699
|
+
const b = normDatePart(m[2], true);
|
|
700
|
+
return b ? a + ',' + b : a;
|
|
701
|
+
}
|
|
702
|
+
return normDatePart(s, false);
|
|
703
|
+
}
|
|
704
|
+
/** 就地归一结构化简历里的全部日期字段,把每处改动写进 warnings(不静默改写)。 */
|
|
705
|
+
function normalizeDates(s, warnings) {
|
|
706
|
+
if (!s || typeof s !== 'object')
|
|
707
|
+
return;
|
|
708
|
+
const one = (label, val, isEnd = false) => {
|
|
709
|
+
const before = String(val ?? '').trim();
|
|
710
|
+
if (!before)
|
|
711
|
+
return '';
|
|
712
|
+
if (ONGOING_RE.test(before))
|
|
713
|
+
return '';
|
|
714
|
+
const after = normDatePart(before, isEnd);
|
|
715
|
+
if (!after) {
|
|
716
|
+
warnings.push('日期无法识别,已跳过该字段(避免接口整批校验失败):' + label + ' = 「' + before + '」');
|
|
717
|
+
return '';
|
|
718
|
+
}
|
|
719
|
+
if (after !== before)
|
|
720
|
+
warnings.push('日期已规范化:' + label + ' 「' + before + '」→「' + after + '」');
|
|
721
|
+
return after;
|
|
722
|
+
};
|
|
723
|
+
// 主表单值日期
|
|
724
|
+
for (const k of ['joinworkdate', 'graduate_date', 'birthday']) {
|
|
725
|
+
if (s[k] === undefined || s[k] === null)
|
|
726
|
+
continue;
|
|
727
|
+
s[k] = one(k, s[k], false);
|
|
728
|
+
}
|
|
729
|
+
// 教育经历:区间(一个组件 = 起止两个物理字段,必须 comma 分隔)
|
|
730
|
+
if (Array.isArray(s.academicInformations)) {
|
|
731
|
+
for (let i = 0; i < s.academicInformations.length; i++) {
|
|
732
|
+
const r = s.academicInformations[i];
|
|
733
|
+
if (!r || typeof r !== 'object' || r.study_date === undefined)
|
|
734
|
+
continue;
|
|
735
|
+
const before = String(r.study_date ?? '').trim();
|
|
736
|
+
if (!before)
|
|
737
|
+
continue;
|
|
738
|
+
const after = normDateRange(before);
|
|
739
|
+
if (!after) {
|
|
740
|
+
warnings.push('日期区间无法识别,已跳过(避免接口整批校验失败):academicInformations[' + i + '].study_date = 「' + before + '」');
|
|
741
|
+
r.study_date = '';
|
|
742
|
+
}
|
|
743
|
+
else {
|
|
744
|
+
if (after !== before)
|
|
745
|
+
warnings.push('日期已规范化:academicInformations[' + i + '].study_date 「' + before + '」→「' + after + '」');
|
|
746
|
+
r.study_date = after;
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
// 工作/项目经历:起止为两个独立字段,需分别归一后由 buildSubDetails 拼成区间
|
|
751
|
+
for (const key of ['jobInformations', 'workExperiences', 'projectExperiences']) {
|
|
752
|
+
const arr = s[key];
|
|
753
|
+
if (!Array.isArray(arr))
|
|
754
|
+
continue;
|
|
755
|
+
for (let i = 0; i < arr.length; i++) {
|
|
756
|
+
const r = arr[i];
|
|
757
|
+
if (!r || typeof r !== 'object')
|
|
758
|
+
continue;
|
|
759
|
+
if (r.start_date !== undefined && r.start_date !== null) {
|
|
760
|
+
r.start_date = one(key + '[' + i + '].start_date', r.start_date, false);
|
|
761
|
+
}
|
|
762
|
+
if (r.end_date !== undefined && r.end_date !== null) {
|
|
763
|
+
r.end_date = one(key + '[' + i + '].end_date', r.end_date, true);
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
// 实习入职时间 / 获奖日期:单值日期
|
|
768
|
+
for (const [key, field] of [['internshipExperiences', 'entry_time'], ['awardExperiences', 'award_date']]) {
|
|
769
|
+
const arr = s[key];
|
|
770
|
+
if (!Array.isArray(arr))
|
|
771
|
+
continue;
|
|
772
|
+
for (let i = 0; i < arr.length; i++) {
|
|
773
|
+
const r = arr[i];
|
|
774
|
+
if (!r || typeof r !== 'object')
|
|
775
|
+
continue;
|
|
776
|
+
if (r[field] !== undefined && r[field] !== null)
|
|
777
|
+
r[field] = one(key + '[' + i + '].' + field, r[field], false);
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
}
|
|
635
781
|
// 读回校验:统计各子表实际落库行数(不能只看写入接口返回,必须回读)
|
|
636
782
|
async function verifySubRows(ctx, formId, objId, dataId) {
|
|
637
783
|
const L = await getFormLayoutMeta(ctx.host, formId);
|
|
@@ -670,7 +816,9 @@ async function loadStructured(ctx, args) {
|
|
|
670
816
|
if (!String(s.telephone || '').trim() && !String(s.candidateName || '').trim()) {
|
|
671
817
|
throw rsValidationError('structured_invalid', '结构化简历缺少 telephone 与 candidateName(至少要有手机号或姓名,否则无法查重建档)');
|
|
672
818
|
}
|
|
673
|
-
|
|
819
|
+
const normalizedInline = normalizeTextStructured(ctx.cache, s, warnings);
|
|
820
|
+
normalizeDates(normalizedInline, warnings);
|
|
821
|
+
return { structured: normalizedInline, textMode: true, warnings };
|
|
674
822
|
}
|
|
675
823
|
if (args.structuredFile) {
|
|
676
824
|
const p = path.resolve(String(args.structuredFile));
|
|
@@ -680,7 +828,9 @@ async function loadStructured(ctx, args) {
|
|
|
680
828
|
if (!String(s.telephone || '').trim() && !String(s.candidateName || '').trim()) {
|
|
681
829
|
throw rsValidationError('structured_invalid', '结构化简历缺少 telephone 与 candidateName');
|
|
682
830
|
}
|
|
683
|
-
|
|
831
|
+
const normalizedFile = normalizeTextStructured(ctx.cache, s, warnings);
|
|
832
|
+
normalizeDates(normalizedFile, warnings);
|
|
833
|
+
return { structured: normalizedFile, textMode: true, warnings };
|
|
684
834
|
}
|
|
685
835
|
return { structured: null, textMode: false, warnings };
|
|
686
836
|
}
|
|
@@ -741,10 +891,10 @@ async function buildImport(ctx, args) {
|
|
|
741
891
|
dataDetails.push({ formField: { id: fields.channel }, dataOptions: [{ optionId: String(manualId), content: '手动录入' }] });
|
|
742
892
|
channelLabel = '手动录入(固定)';
|
|
743
893
|
}
|
|
744
|
-
//
|
|
894
|
+
// 是否黑名单:固定「否」——写路径按缓存方案 A 走权威 ds/options(不读盘 field_options)
|
|
745
895
|
if (fields.is_blacklist) {
|
|
746
|
-
const opt = (
|
|
747
|
-
const noId =
|
|
896
|
+
const opt = await getDsOptions(host, objId, fields.is_blacklist).catch(() => ({}));
|
|
897
|
+
const noId = opt['否'];
|
|
748
898
|
if (noId)
|
|
749
899
|
dataDetails.push({ formField: { id: fields.is_blacklist }, dataOptions: [{ optionId: String(noId), content: '否' }] });
|
|
750
900
|
}
|
|
@@ -866,6 +1016,9 @@ async function prepare(args, env) {
|
|
|
866
1016
|
const session = await host.getSession();
|
|
867
1017
|
const ctx = { host, baseUrl: session.baseUrl.replace(/\/+$/, ''), appId: '', cache: await env.recruitContext() };
|
|
868
1018
|
ctx.appId = ctx.cache.appId;
|
|
1019
|
+
const perm = await probeCreatePermission(ctx.host, objIdOf(ctx.cache, 'talent_pool'));
|
|
1020
|
+
if (perm === 'denied')
|
|
1021
|
+
throw rsFail('当前账号没有「人才库」表单的创建权限,已阻断(未写入任何数据)');
|
|
869
1022
|
const argsT = args;
|
|
870
1023
|
if (!argsT.structured && !argsT.structuredFile && !argsT.fileId && !argsT.resumeFile) {
|
|
871
1024
|
throw rsValidationError('input_required', '需要 structured/structuredFile/fileId/resumeFile 之一');
|
|
@@ -925,7 +1078,8 @@ async function prepare(args, env) {
|
|
|
925
1078
|
catch { /* 查不到批次不影响更新 */ }
|
|
926
1079
|
const willSubmit = { updateTalentId, mainTable: fingerprintMainTable(upMain), details: built.detailsPayload };
|
|
927
1080
|
const fp = fingerprint(willSubmit);
|
|
928
|
-
const continuation = await env.continuation.issue({ operation: 'recruit-stage.resume.import.apply', fingerprint: fp
|
|
1081
|
+
const continuation = await env.continuation.issue({ operation: 'recruit-stage.resume.import.apply', fingerprint: fp,
|
|
1082
|
+
enumMaps: await dsOptionsSnapshot() });
|
|
929
1083
|
return rsSuccess('recruit-stage.resume.import.prepare', {
|
|
930
1084
|
mode: 'prepare-update',
|
|
931
1085
|
action: '按简历更新已有人才',
|
|
@@ -996,7 +1150,8 @@ async function prepare(args, env) {
|
|
|
996
1150
|
};
|
|
997
1151
|
const willSubmit = { formId: built.formId, objId: built.objId, mainTable: fingerprintMainTable(toDatasetMainTable(built.dataDetails, built.fields)), details: built.detailsPayload };
|
|
998
1152
|
const fp = fingerprint(willSubmit);
|
|
999
|
-
const continuation = await env.continuation.issue({ operation: 'recruit-stage.resume.import.apply', fingerprint: fp
|
|
1153
|
+
const continuation = await env.continuation.issue({ operation: 'recruit-stage.resume.import.apply', fingerprint: fp,
|
|
1154
|
+
enumMaps: await dsOptionsSnapshot() });
|
|
1000
1155
|
return rsSuccess('recruit-stage.resume.import.prepare', {
|
|
1001
1156
|
mode: 'prepare', ...summary,
|
|
1002
1157
|
willSubmit,
|
|
@@ -1011,6 +1166,7 @@ async function apply(args, env) {
|
|
|
1011
1166
|
if (!args.continuation)
|
|
1012
1167
|
throw rsValidationError('continuation_required', '缺少 continuation(来自 prepare 的 meta)');
|
|
1013
1168
|
const payload = await env.continuation.verify(String(args.continuation), 'recruit-stage.resume.import.apply');
|
|
1169
|
+
restoreDsOptions(payload.enumMaps);
|
|
1014
1170
|
const host = env.host;
|
|
1015
1171
|
const session = await host.getSession();
|
|
1016
1172
|
const ctx = { host, baseUrl: session.baseUrl.replace(/\/+$/, ''), appId: '', cache: await env.recruitContext() };
|
|
@@ -1053,9 +1209,10 @@ async function apply(args, env) {
|
|
|
1053
1209
|
verifyWarnings = checkAfter(after);
|
|
1054
1210
|
}
|
|
1055
1211
|
return rsSuccess('recruit-stage.resume.import.apply', {
|
|
1056
|
-
|
|
1212
|
+
// 更新模式同理:明细行/格数对不上时只能报 partial,不能因主表写入成功就报 success
|
|
1213
|
+
mode: 'update', result: verifyWarnings.length ? 'partial' : 'success',
|
|
1214
|
+
detailsState: verifyWarnings.length ? 'missing' : 'complete',
|
|
1057
1215
|
talentId: updateTalentId,
|
|
1058
|
-
applied: verifyWarnings, // placeholder replaced below
|
|
1059
1216
|
afterSummary: { mainFieldCount: Object.keys(after.main).length, subRows: after.subRows, subCells: after.subCells },
|
|
1060
1217
|
verifyWarnings: verifyWarnings.length ? verifyWarnings : undefined,
|
|
1061
1218
|
talentCardUrl: resolveTalentCardUrl(ctx, updateTalentId),
|
|
@@ -1129,8 +1286,20 @@ async function apply(args, env) {
|
|
|
1129
1286
|
addEntityTags(host, talentId, built.tagNames).then((v) => ({ ok: true, v }), (e) => ({ ok: false, e })),
|
|
1130
1287
|
]);
|
|
1131
1288
|
const subTableVerify = verifyRes.ok ? verifyRes.v : { error: verifyRes.e?.message };
|
|
1132
|
-
|
|
1133
|
-
|
|
1289
|
+
// 明细完整性判定:主表建成 ≠ 建档成功。实测(2026-11-05)出现过主表 19 字段写入成功、
|
|
1290
|
+
// 18 行明细 0 行落库,而返回仍是 result=success —— 只看 writeWarnings 才会发现问题。
|
|
1291
|
+
// 规则:期望行数 > 0 时读回行数必须 >= 期望,否则 result 只能报 partial;回读失败则标 unverified。
|
|
1292
|
+
let detailsState = 'complete';
|
|
1293
|
+
if (!verifyRes.ok) {
|
|
1294
|
+
detailsState = 'unverified';
|
|
1295
|
+
writeWarnings.push('明细读回校验失败(无法确认明细是否落库):' + (verifyRes.e?.message || ''));
|
|
1296
|
+
}
|
|
1297
|
+
else if (built.subRowTotal > 0) {
|
|
1298
|
+
const gotRows = Number(subTableVerify?.rowTotal || 0);
|
|
1299
|
+
if (gotRows < built.subRowTotal) {
|
|
1300
|
+
detailsState = 'missing';
|
|
1301
|
+
writeWarnings.push('明细行未完整落库(期望 ' + built.subRowTotal + ' 行,读回 ' + gotRows + ' 行):主表已写入,请按 writeWarnings 修正后走 updateTalentId 补明细');
|
|
1302
|
+
}
|
|
1134
1303
|
}
|
|
1135
1304
|
const saveEsbActions = esbRes.ok ? esbRes.v : { error: esbRes.e?.message };
|
|
1136
1305
|
const labelMatch = labelRes.ok ? labelRes.v : 'ERR:' + (labelRes.e?.message || '');
|
|
@@ -1139,13 +1308,26 @@ async function apply(args, env) {
|
|
|
1139
1308
|
: { applied: [], skipped: built.tagNames, error: tagRes.e?.message };
|
|
1140
1309
|
// 标签回读依赖写入结果,放在并行组之后(写操作可验证优先)
|
|
1141
1310
|
const tags = await queryEntityTags(host, talentId).catch(() => []);
|
|
1311
|
+
// 第三层门禁:主表关键字段落库回查(明细行由 verifySubRows 单独校验)
|
|
1312
|
+
const verification = await verifySubmitted({
|
|
1313
|
+
host, formId: built.formId, objId: built.objId, dataId: newId,
|
|
1314
|
+
expected: expectedFields(built.dataDetails, built.fields, ['candidate_name', 'telephone', 'email'], [], ['email']),
|
|
1315
|
+
});
|
|
1316
|
+
if (verification.mismatches.length) {
|
|
1317
|
+
invalidateEnvCache(ctx.baseUrl, ctx.appId);
|
|
1318
|
+
for (const m of verification.mismatches)
|
|
1319
|
+
writeWarnings.push('落库回查不一致:' + m.label + ' 期望 ' + m.expected + ',实际 ' + m.actual);
|
|
1320
|
+
}
|
|
1321
|
+
const result = detailsState === 'complete' && !verification.mismatches.length ? 'success' : 'partial';
|
|
1142
1322
|
const talentCardUrl = resolveTalentCardUrl(ctx, talentId);
|
|
1143
1323
|
const talentListLocateUrl = resolveTalentListLocateUrl(ctx, talentId);
|
|
1144
1324
|
return rsSuccess('recruit-stage.resume.import.apply', {
|
|
1145
|
-
mode: 'apply', result
|
|
1325
|
+
mode: 'apply', result,
|
|
1326
|
+
detailsState,
|
|
1146
1327
|
newCandidateFormDataId: newId,
|
|
1147
1328
|
talentId,
|
|
1148
1329
|
writeChannel,
|
|
1330
|
+
verification: { checked: verification.checked, mismatches: verification.mismatches, unavailable: verification.unavailable || null },
|
|
1149
1331
|
writeWarnings: writeWarnings.length ? writeWarnings : undefined,
|
|
1150
1332
|
subTablesExpected: built.subBuild.stats,
|
|
1151
1333
|
subTableVerify,
|
|
@@ -1158,10 +1340,10 @@ async function apply(args, env) {
|
|
|
1158
1340
|
tags,
|
|
1159
1341
|
talentCardUrl,
|
|
1160
1342
|
talentListLocateUrl,
|
|
1161
|
-
// 产物链接(Agent 原样搬运:①
|
|
1343
|
+
// 产物链接(Agent 原样搬运:① 人才卡片单页 ② 人才库列表;缺失哪个只给另一个)
|
|
1162
1344
|
viewLink: talentCardUrl ? `[查看 ${built.structured.candidateName || '新人才'} 的人才卡片](${talentCardUrl})` : null,
|
|
1163
|
-
listLocateLink: talentListLocateUrl ? `[
|
|
1164
|
-
agentNote: '正文给两个 Markdown 链接——① [查看 <姓名> 的人才卡片](talentCardUrl) ② [
|
|
1345
|
+
listLocateLink: talentListLocateUrl ? `[打开人才库列表](${talentListLocateUrl})` : null,
|
|
1346
|
+
agentNote: '正文给两个 Markdown 链接——① [查看 <姓名> 的人才卡片](talentCardUrl) 详情单页 ② [打开人才库列表](talentListLocateUrl) 只打开列表、不打开详情;缺失哪个就只给另一个,不输出半截。不要用 artifact / browsertool。',
|
|
1165
1347
|
parsed: {
|
|
1166
1348
|
name: built.structured.candidateName, mobile: built.structured.telephone, email: built.structured.email || '(空)',
|
|
1167
1349
|
gender: built.structured.genderName, degree: built.structured.highest_degree_name, college: built.structured.college,
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
* (同构五层解析,磁盘缓存目录一致,可直接命中脚本版播种的缓存)。
|
|
14
14
|
*/
|
|
15
15
|
import { randomUUID } from 'node:crypto';
|
|
16
|
+
import { unlinkSync } from 'node:fs';
|
|
17
|
+
import { homedir } from 'node:os';
|
|
18
|
+
import { join, resolve as resolvePath } from 'node:path';
|
|
16
19
|
import { rsFail } from './errors.js';
|
|
17
20
|
export function randHex32() {
|
|
18
21
|
return randomUUID().replace(/-/g, '');
|
|
@@ -87,6 +90,26 @@ export async function getFormButtons(host, objId, layoutId) {
|
|
|
87
90
|
}
|
|
88
91
|
return actions;
|
|
89
92
|
}
|
|
93
|
+
export async function probeCreatePermission(host, objId) {
|
|
94
|
+
try {
|
|
95
|
+
const r = await host.request({
|
|
96
|
+
path: '/api/ebuilder/form/data/getFormButtons',
|
|
97
|
+
body: { layoutType: 'formLayout', objId, dataId: '', formDataId: '', type: '1',
|
|
98
|
+
fromRecycle: false, otherOperator: '', objectAppId: '', browser: 'Chrome', isTamper: '0' },
|
|
99
|
+
});
|
|
100
|
+
const d = r?.data;
|
|
101
|
+
const btns = Array.isArray(d) ? d : (d?.buttons || []);
|
|
102
|
+
// 接口没返回按钮:无法判定(可能是配置差异/权限接口不可用),保守放行不阻断
|
|
103
|
+
if (!Array.isArray(btns) || !btns.length)
|
|
104
|
+
return 'unknown';
|
|
105
|
+
const hasSave = btns.some((b) => String(b?.buttonKey || '').toLowerCase().includes('save')
|
|
106
|
+
|| String(b?.name || '').includes('保存'));
|
|
107
|
+
return hasSave ? 'ok' : 'denied';
|
|
108
|
+
}
|
|
109
|
+
catch {
|
|
110
|
+
return 'unknown';
|
|
111
|
+
}
|
|
112
|
+
}
|
|
90
113
|
// 取「保存」按钮下的**已启用**动作链(按 showOrder 升序)——页面点「保存」时依次执行的就是这一串。
|
|
91
114
|
// 跨环境自适应:按钮 id / 动作 id / 动作数量 / 名称均运行时解析,不写死。
|
|
92
115
|
// enable=0 的动作页面不会执行(实测:人才表单 7 条动作里 3 条为禁用态),一律排除。
|
|
@@ -336,17 +359,135 @@ export async function resolvePersonId(host, fieldId, keyword) {
|
|
|
336
359
|
const list = r?.data?.data || r?.data || [];
|
|
337
360
|
return list[0]?.id || list[0]?.value || null;
|
|
338
361
|
}
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
362
|
+
/**
|
|
363
|
+
* ds/options 是单选枚举的**权威真源**(后端 ebselect 枚举常量)。
|
|
364
|
+
* 🔴 缓存方案 A(2026-11-06 用户定稿):写路径一律回源,不读磁盘 field_options 缓存——
|
|
365
|
+
* 今天的事故就是缓存里的 optionId 写错后长期固化、后端静默丢弃仍返回 success。
|
|
366
|
+
* 只在**进程内** memo:一条命令里同一字段多次解析只发一次请求;跨进程不落盘,错误无法固化。
|
|
367
|
+
* prepare 可通过 dsOptionsSnapshot() 把结果放进 continuation,apply 用 restoreDsOptions() 复用,避免重复请求。
|
|
368
|
+
*/
|
|
369
|
+
const dsOptionsMemo = new Map();
|
|
370
|
+
export function restoreDsOptions(snapshot) {
|
|
371
|
+
for (const [key, value] of Object.entries(snapshot || {})) {
|
|
372
|
+
if (value && typeof value === 'object' && Object.keys(value).length) {
|
|
373
|
+
dsOptionsMemo.set(key, Promise.resolve(value));
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
export async function dsOptionsSnapshot() {
|
|
378
|
+
const out = {};
|
|
379
|
+
await Promise.all([...dsOptionsMemo.entries()].map(async ([key, task]) => {
|
|
380
|
+
try {
|
|
381
|
+
const value = await task;
|
|
382
|
+
if (value && Object.keys(value).length)
|
|
383
|
+
out[key] = value;
|
|
384
|
+
}
|
|
385
|
+
catch { /* 失败项不进快照,apply 时重新回源 */ }
|
|
386
|
+
}));
|
|
387
|
+
return out;
|
|
388
|
+
}
|
|
389
|
+
/** 从待提交 dataDetails 提取关键字段期望值(供落库回查比对)。expected='*' 表示只要求非空。 */
|
|
390
|
+
export function expectedFields(details, fields, keys, nonEmptyOnly = [], optionalKeys = []) {
|
|
391
|
+
const out = [];
|
|
392
|
+
for (const k of keys) {
|
|
393
|
+
const fid = fields[k];
|
|
394
|
+
if (!fid)
|
|
395
|
+
continue;
|
|
396
|
+
const d = (details || []).find((x) => String(x?.formField?.id) === String(fid));
|
|
397
|
+
if (!d)
|
|
398
|
+
continue;
|
|
399
|
+
const value = String((d.dataOptions || [])[0]?.optionId ?? d.content ?? d.dataText?.content ?? d.value ?? '');
|
|
400
|
+
const optional = optionalKeys.includes(k);
|
|
401
|
+
if (nonEmptyOnly.includes(k))
|
|
402
|
+
out.push({ fieldId: String(fid), label: k, expected: '*', optional });
|
|
403
|
+
else if (value)
|
|
404
|
+
out.push({ fieldId: String(fid), label: k, expected: value, optional });
|
|
405
|
+
}
|
|
406
|
+
return out;
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* 落库回查(缓存方案 A 第三层门禁):saveFormData 返回 success 不代表字段真的写进去——
|
|
410
|
+
* 后端对不认识的 optionId 会**静默丢弃仍返回成功**(2026-11-06 面试方式为空事故的根因)。
|
|
411
|
+
* 写完立即用 getFormDataAndLayout 读回真实值,逐字段比对;不一致交调用方报 partial + 点名。
|
|
412
|
+
*/
|
|
413
|
+
export async function verifySubmitted(opts) {
|
|
414
|
+
const { host, formId, objId, dataId, expected } = opts;
|
|
415
|
+
if (!expected.length)
|
|
416
|
+
return { checked: 0, mismatches: [] };
|
|
417
|
+
let details = [];
|
|
418
|
+
try {
|
|
419
|
+
const r = await host.request({
|
|
420
|
+
path: '/api/ebuilder/form/form/core/getFormDataAndLayout?formId=' + encodeURIComponent(formId) + '&dataId=' + encodeURIComponent(dataId),
|
|
421
|
+
method: 'POST',
|
|
422
|
+
body: {
|
|
423
|
+
terminalType: 'PC', dataId, formId, module: 'ebuilderform', newLayout: true,
|
|
424
|
+
cacheUid: '', layoutMultiId: '', dataCrossLayout: false, permissionId: '',
|
|
425
|
+
allReadOnly: false, initialDatas: [], dynamicData: false, cost: false,
|
|
426
|
+
customParam: { objId },
|
|
427
|
+
},
|
|
428
|
+
});
|
|
429
|
+
details = r?.data?.formData?.dataDetails || [];
|
|
430
|
+
}
|
|
431
|
+
catch (e) {
|
|
432
|
+
return { checked: 0, mismatches: [], unavailable: e?.message || '回查接口不可用' };
|
|
433
|
+
}
|
|
434
|
+
const byId = new Map();
|
|
435
|
+
for (const d of details) {
|
|
436
|
+
const fid = String(d?.fieldId || d?.formField?.id || '');
|
|
437
|
+
if (fid)
|
|
438
|
+
byId.set(fid, d);
|
|
439
|
+
}
|
|
440
|
+
const mismatches = [];
|
|
441
|
+
for (const e of expected) {
|
|
442
|
+
const d = byId.get(e.fieldId);
|
|
443
|
+
if (!d && e.optional)
|
|
444
|
+
continue;
|
|
445
|
+
const actual = d
|
|
446
|
+
? String((d.dataOptions || [])[0]?.optionId ?? d.content ?? d.dataText?.content ?? d.value ?? '')
|
|
447
|
+
: '';
|
|
448
|
+
const bad = e.expected === '*' ? !actual : actual !== e.expected;
|
|
449
|
+
if (bad)
|
|
450
|
+
mismatches.push({ label: e.label, expected: e.expected === '*' ? '(非空)' : e.expected, actual: actual || '(空)' });
|
|
451
|
+
}
|
|
452
|
+
return { checked: expected.length, mismatches };
|
|
453
|
+
}
|
|
454
|
+
/** 回查/校验失败时清空进程内枚举 memo,并标记磁盘环境缓存失效(下次自动重建)。 */
|
|
455
|
+
export function invalidateEnvCache(baseUrl, appId) {
|
|
456
|
+
dsOptionsMemo.clear();
|
|
457
|
+
if (!baseUrl || !appId)
|
|
458
|
+
return;
|
|
459
|
+
try {
|
|
460
|
+
const host = baseUrl.replace(/^https?:\/\//, '').replace(/\/+$/, '').replace(/:/g, '_');
|
|
461
|
+
const home = process.env.WEAVER_WORK_CLI_HOME || process.env.WORK_CLI_HOME || resolvePath(homedir(), '.weaver-work-cli');
|
|
462
|
+
const root = process.env.E10_SKILL_CACHE_DIR || join(home, 'env-cache', 'recruit-ops');
|
|
463
|
+
unlinkSync(join(root, host, appId + '.json'));
|
|
464
|
+
}
|
|
465
|
+
catch { /* 缓存文件不存在/只读盘:不影响主流程 */ }
|
|
466
|
+
}
|
|
467
|
+
export async function getDsOptions(host, objId, fieldId, groupId = '') {
|
|
468
|
+
const key = objId + ':' + fieldId;
|
|
469
|
+
const hit = dsOptionsMemo.get(key);
|
|
470
|
+
if (hit)
|
|
471
|
+
return hit;
|
|
472
|
+
const task = (async () => {
|
|
473
|
+
const r = await host.request({
|
|
474
|
+
path: '/api/ebuilder/common/ds/options?fieldName=' + fieldId + '&objId=' + objId + '&sourceType=FORM'
|
|
475
|
+
+ (groupId ? '&groupId=' + groupId : ''),
|
|
476
|
+
method: 'GET',
|
|
477
|
+
});
|
|
478
|
+
const list = r?.data || [];
|
|
479
|
+
const map = {};
|
|
480
|
+
for (const x of list)
|
|
481
|
+
if (x?.name && x?.id)
|
|
482
|
+
map[String(x.name)] = String(x.id);
|
|
483
|
+
// 空结果不缓存:字典引用类字段可能临时返回空,下次应能重新回源
|
|
484
|
+
if (!Object.keys(map).length)
|
|
485
|
+
dsOptionsMemo.delete(key);
|
|
486
|
+
return map;
|
|
487
|
+
})();
|
|
488
|
+
dsOptionsMemo.set(key, task);
|
|
489
|
+
task.catch(() => { dsOptionsMemo.delete(key); });
|
|
490
|
+
return task;
|
|
350
491
|
}
|
|
351
492
|
// 环境缓存 field_options({optionId: 名称})反转成 getDsOptions 同款 {名称: optionId};未覆盖返回 null 由调用方回源
|
|
352
493
|
export function cachedDsMap(cache, objId, fieldKey) {
|
|
@@ -596,13 +737,15 @@ export function buildCardUrl(baseUrl, objId, dataId) {
|
|
|
596
737
|
return String(baseUrl).replace(/\/+$/, '') + '/sp/ebdfpage/card/0/' + objId + '/' + dataId;
|
|
597
738
|
}
|
|
598
739
|
/**
|
|
599
|
-
*
|
|
600
|
-
*
|
|
601
|
-
*
|
|
740
|
+
* 「只打开列表」URL:{base}/sp/ebdfpage/list/{listId}(2026-11-06 用户定稿)。
|
|
741
|
+
*
|
|
742
|
+
* 旧形态 .../list/{listId}/card/0/{objId}/{dataId}/... 会在打开列表的**同时滑出记录详情单页**,
|
|
743
|
+
* 与「详情单页单独给、列表只打开列表」的产物约定冲突,已停用。
|
|
744
|
+
* 记录详情由 buildCardUrl 单独产出,两个链接相互独立。
|
|
745
|
+
* listId 取自环境缓存 lists.<type>.listId(allMenus 自动发现,SEARCH 型 pageId=listId),跨环境不写死。
|
|
602
746
|
*/
|
|
603
|
-
export function
|
|
604
|
-
if (!baseUrl || !listId
|
|
747
|
+
export function buildListUrl(baseUrl, listId) {
|
|
748
|
+
if (!baseUrl || !listId)
|
|
605
749
|
return null;
|
|
606
|
-
|
|
607
|
-
return `${base}/sp/ebdfpage/list/${listId}/card/0/${objId}/${dataId}/${listId}?id=${dataId}&openSource=field&openSourceId=${dataId}&openSourceAppId=${appId}`;
|
|
750
|
+
return String(baseUrl).replace(/\/+$/, '') + '/sp/ebdfpage/list/' + listId;
|
|
608
751
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { CONTINUATION_TTL_MS } from '../../core/continuation-ttl.js';
|
|
1
2
|
import { createHash, createHmac, randomBytes, randomUUID, timingSafeEqual } from 'node:crypto';
|
|
2
3
|
import { existsSync } from 'node:fs';
|
|
3
4
|
import { chmod, mkdir, readFile, readdir, unlink, writeFile } from 'node:fs/promises';
|
|
4
5
|
import { homedir, hostname } from 'node:os';
|
|
5
6
|
import { resolve } from 'node:path';
|
|
6
7
|
import { workflowAlreadyAppliedError, workflowPartialError, workflowValidationError, } from './errors.js';
|
|
7
|
-
const DEFAULT_TTL_MS =
|
|
8
|
+
const DEFAULT_TTL_MS = CONTINUATION_TTL_MS;
|
|
8
9
|
/**
|
|
9
10
|
* 「上一次只抢到句柄、还没发出写入」的**安全重占宽限期**。
|
|
10
11
|
*
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { readFile } from 'node:fs/promises';
|
|
2
2
|
import { ExitCode, isCliError, toErrorEnvelope } from '../../core/errors.js';
|
|
3
|
+
import { reportPlatformError } from '../../core/error-codes.js';
|
|
3
4
|
import { createWorkflowContinuationSigner } from './continuation.js';
|
|
4
5
|
import { createWorkflowHost } from './host.js';
|
|
5
6
|
import { workflowManifest } from './manifest.js';
|
|
@@ -113,6 +114,7 @@ async function executeAndPrint(ctx, operation, input) {
|
|
|
113
114
|
printWorkflowResult(ctx, operation, result);
|
|
114
115
|
}
|
|
115
116
|
catch (error) {
|
|
117
|
+
reportPlatformError(error);
|
|
116
118
|
console.error(JSON.stringify(failureEnvelope(error), null, 2));
|
|
117
119
|
process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
|
|
118
120
|
}
|
|
@@ -220,6 +222,8 @@ export const workflowShortcut = {
|
|
|
220
222
|
userIntentExists: user.exists,
|
|
221
223
|
userIntentError: user.error,
|
|
222
224
|
defaults: loaded.file.defaults,
|
|
225
|
+
// 通用规则区(2026-11-05):只改 default.json 就能调的配置都在这里,输出出来才自检得到
|
|
226
|
+
generalRules: loaded.file.generalRules ?? null,
|
|
223
227
|
rules: loaded.file.rules,
|
|
224
228
|
userRules: user.rules,
|
|
225
229
|
warnings: loaded.warnings,
|