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.
Files changed (401) hide show
  1. package/README.md +21 -0
  2. package/dist/chunks/{archive-J4I6MCKF.js → archive-ZQ4A4TV6.js} +399 -47
  3. package/dist/chunks/{archive-oa-BRZKKTO4.js → archive-oa-BBDP7AKJ.js} +12 -5
  4. package/dist/chunks/{asset-L7D4FAOZ.js → asset-ZOJVBWZH.js} +11 -4
  5. package/dist/chunks/{asset-idle-DADLLV75.js → asset-idle-XGB5IPGT.js} +7 -3
  6. package/dist/chunks/{attachment-content-K4C7VLWQ.js → attachment-content-CE3GMWTS.js} +5 -4
  7. package/dist/chunks/{blog-BVGQ7NZL.js → blog-QSHLZSFW.js} +11 -4
  8. package/dist/chunks/caizhilian-KCQYFH72.js +204 -0
  9. package/dist/chunks/{calendar-Q7NQY5Z2.js → calendar-DLGMRJQA.js} +12 -5
  10. package/dist/chunks/{chunk-W7BEHOSR.js → chunk-3WBIQLMB.js} +2 -2
  11. package/dist/chunks/{chunk-4PD5NWAX.js → chunk-3YV7PKRL.js} +2 -2
  12. package/dist/chunks/{chunk-JPRO6ER2.js → chunk-3ZMAQQ3W.js} +185 -60
  13. package/dist/chunks/{chunk-R4CHUSKC.js → chunk-4EXOIQDI.js} +40 -10
  14. package/dist/chunks/{chunk-OOUTBLZ4.js → chunk-56EZERK4.js} +1 -1
  15. package/dist/chunks/chunk-6N4JPNFL.js +76 -0
  16. package/dist/chunks/{chunk-SA6VBIHY.js → chunk-6NXT4ICB.js} +342 -17
  17. package/dist/chunks/{chunk-ZUX3P6BQ.js → chunk-727FH2NI.js} +1 -1
  18. package/dist/chunks/chunk-762M5XJS.js +215 -0
  19. package/dist/chunks/{chunk-GEWYMQME.js → chunk-77YP6I52.js} +1 -1
  20. package/dist/chunks/chunk-7BDPM5ST.js +11 -0
  21. package/dist/chunks/{chunk-G4UR6NXN.js → chunk-CZNZKOHR.js} +3 -3
  22. package/dist/chunks/{chunk-GHXCDPTM.js → chunk-DGMYACGJ.js} +1 -1
  23. package/dist/chunks/{chunk-4RAE6JXP.js → chunk-DLY5GUXX.js} +6 -3
  24. package/dist/chunks/{chunk-BYBSCN4X.js → chunk-G7PQWD4L.js} +6 -3
  25. package/dist/chunks/{chunk-EKWAQSLU.js → chunk-GR76ZDDX.js} +432 -2248
  26. package/dist/chunks/{chunk-APVFJUQH.js → chunk-HFXK54M4.js} +3 -3
  27. package/dist/chunks/{chunk-EZALDOQH.js → chunk-HP7JIYMT.js} +5 -2
  28. package/dist/chunks/{chunk-ZEDWSH32.js → chunk-IC62NFM5.js} +1 -1
  29. package/dist/chunks/{chunk-3KTFS4IA.js → chunk-JB34OE7R.js} +808 -85
  30. package/dist/chunks/{chunk-72CKAUAG.js → chunk-JWWTI63L.js} +59 -7
  31. package/dist/chunks/{chunk-P26ZWSKU.js → chunk-KIHNAS25.js} +5 -2
  32. package/dist/chunks/{chunk-NKZRQXST.js → chunk-LGKWL4OH.js} +200 -47
  33. package/dist/chunks/chunk-LRCPNDZA.js +2529 -0
  34. package/dist/chunks/{chunk-QKNKR4RH.js → chunk-LXFVWZLM.js} +4 -4
  35. package/dist/chunks/{chunk-NOODWMCL.js → chunk-O6CMPO65.js} +25 -2
  36. package/dist/chunks/{chunk-BIPYLLVS.js → chunk-OAE3AZBQ.js} +15 -15
  37. package/dist/chunks/chunk-P5GQRWDC.js +60 -0
  38. package/dist/chunks/{caizhilian-SAADNFD6.js → chunk-PGO4ILMQ.js} +44 -517
  39. package/dist/chunks/{chunk-2LV74IWP.js → chunk-Q4OYAQYH.js} +1 -1
  40. package/dist/chunks/{chunk-LDZQPUIA.js → chunk-T4MWQAQB.js} +8 -6
  41. package/dist/chunks/{chunk-BBKDXQEC.js → chunk-TGAGQV4I.js} +3 -3
  42. package/dist/chunks/{chunk-GPMFD4RD.js → chunk-TXUG266F.js} +1 -1
  43. package/dist/chunks/{chunk-FOAA27U5.js → chunk-U6R6FZHD.js} +184 -18
  44. package/dist/chunks/{chunk-LUSPKZKY.js → chunk-UG5G54VL.js} +1 -0
  45. package/dist/chunks/{chunk-NIAJ5ZCG.js → chunk-UL5XUQ25.js} +5 -2
  46. package/dist/chunks/{chunk-IZ7S7QUS.js → chunk-VIMCY4DI.js} +6 -6
  47. package/dist/chunks/chunk-VRPH24IC.js +76 -0
  48. package/dist/chunks/{chunk-FMPJJYYI.js → chunk-WRXSAVKO.js} +1 -1
  49. package/dist/chunks/{chunk-YRSZQUD2.js → chunk-YIKSL36S.js} +3 -3
  50. package/dist/chunks/{chunk-3SO6QL6U.js → chunk-YWX377BY.js} +5 -2
  51. package/dist/chunks/{chunk-BYATLLEF.js → chunk-Z3GDFVJR.js} +1 -1
  52. package/dist/chunks/{chunk-LADPYOWC.js → chunk-Z6UUBY37.js} +3 -3
  53. package/dist/chunks/{conflict-F2OMZRTO.js → conflict-IYJETSGT.js} +4 -3
  54. package/dist/chunks/{continuation-2CKSBLA6.js → continuation-3S37AUSH.js} +4 -3
  55. package/dist/chunks/{continuation-RN6PZN2M.js → continuation-3XLYYTKV.js} +4 -3
  56. package/dist/chunks/continuation-GW6PRWK3.js +12 -0
  57. package/dist/chunks/{continuation-HZIZRZBX.js → continuation-HFW2YT5S.js} +4 -3
  58. package/dist/chunks/{continuation-NLECEJPX.js → continuation-KI7DRRZN.js} +4 -3
  59. package/dist/chunks/{contract-5BETHRSG.js → contract-3QLAGYQL.js} +5803 -4593
  60. package/dist/chunks/{cowork-3MN6EQQO.js → cowork-3ACICHDQ.js} +11 -4
  61. package/dist/chunks/{create-flow-5FQNNMVO.js → create-flow-7JLC7UID.js} +8 -7
  62. package/dist/chunks/{ebuilder-form-SBHOYBUD.js → ebuilder-form-GWDTKEI2.js} +14 -9
  63. package/dist/chunks/{ehr-KMOJULKG.js → ehr-MYRDCHZ4.js} +357 -43
  64. package/dist/chunks/{employee-SAK2QYXX.js → employee-NOHNXC46.js} +3 -3
  65. package/dist/chunks/{env-LB7NBL2O.js → env-3MBHAWBL.js} +4 -3
  66. package/dist/chunks/{esb-W2PJCFCX.js → esb-4BQHNP5C.js} +12 -7
  67. package/dist/chunks/{factory-6ZFQXQ46.js → factory-TZEVU4DU.js} +3 -2
  68. package/dist/chunks/{fna-ZQPCUV4R.js → fna-ZVB2IILI.js} +14 -8
  69. package/dist/chunks/{group-chat-2HHAJN46.js → group-chat-KL3HFKRM.js} +5 -4
  70. package/dist/chunks/{host-YTODKMSL.js → host-3TNBMDTR.js} +5 -5
  71. package/dist/chunks/host-7NTIBSPK.js +25 -0
  72. package/dist/chunks/{host-4CBHGOHT.js → host-7OWWPLM4.js} +5 -5
  73. package/dist/chunks/{host-ATKVNZAT.js → host-G3VU7SDW.js} +5 -5
  74. package/dist/chunks/{host-BQH22NTQ.js → host-M4XP5URR.js} +5 -5
  75. package/dist/chunks/{host-X2CSLFM6.js → host-TUOIOEMC.js} +5 -5
  76. package/dist/chunks/{hrm-FFM4UJFS.js → hrm-UNKCCCGP.js} +11 -7
  77. package/dist/chunks/{im-VEHKDQPB.js → im-NJB7ZYMH.js} +8 -7
  78. package/dist/chunks/{invoice-LVIKSIIF.js → invoice-OQP3TMKQ.js} +636 -1768
  79. package/dist/chunks/{jiuchuanhui-X6DINO5P.js → jiuchuanhui-ASFZBMPU.js} +14 -6
  80. package/dist/chunks/{lazy-dispatch-KSWTN5L6.js → lazy-dispatch-UH6HGK2I.js} +7 -6
  81. package/dist/chunks/{mail-VDKRGUD3.js → mail-M3HJF5ER.js} +16 -14
  82. package/dist/chunks/{meeting-CLC6HP3Z.js → meeting-C67EHQ4Z.js} +21 -14
  83. package/dist/chunks/{okr-CHG4OO3U.js → okr-EVX7FB5G.js} +12 -5
  84. package/dist/chunks/{operations-5QL3AECO.js → operations-62N6EP3C.js} +4 -3
  85. package/dist/chunks/operations-J7PUIVWZ.js +15 -0
  86. package/dist/chunks/{plan-XWR75667.js → plan-2QJQEPBO.js} +12 -5
  87. package/dist/chunks/{project-5BXOOKMG.js → project-XELELW2T.js} +11 -4
  88. package/dist/chunks/reception-5WITA44R.js +1899 -0
  89. package/dist/chunks/{recruit-stage-DGMFNNDE.js → recruit-stage-AHY5QAMF.js} +745 -149
  90. package/dist/chunks/{registry-RHMW6ANW.js → registry-AQVGHUM6.js} +7 -6
  91. package/dist/chunks/{registry-OZSMDVPP.js → registry-PVUZQDDQ.js} +3 -3
  92. package/dist/chunks/{registry-7FFOXIAW.js → registry-QJCZ2GVG.js} +7 -6
  93. package/dist/chunks/{registry-Z43434VG.js → registry-VWXWPVAG.js} +4 -4
  94. package/dist/chunks/registry-XPWPGHYE.js +24 -0
  95. package/dist/chunks/{room-recommend-62H7ZQQ6.js → room-recommend-CNWE5WQK.js} +8 -5
  96. package/dist/chunks/{schedule-FNXKH3DQ.js → schedule-YYNYBQIE.js} +6 -5
  97. package/dist/chunks/{workflow-ADHKCAJK.js → workflow-BSYT5TGL.js} +15 -8
  98. package/dist/cmd/action.js +6 -0
  99. package/dist/cmd/identity/index.js +45 -0
  100. package/dist/cmd/index.js +2 -0
  101. package/dist/core/continuation-ttl.js +18 -0
  102. package/dist/core/error-codes.js +85 -0
  103. package/dist/core/logger.js +11 -0
  104. package/dist/index.js +37 -31
  105. package/dist/internal/e10/auth/commands.js +195 -8
  106. package/dist/internal/e10/auth/error-log.js +312 -0
  107. package/dist/internal/e10/auth/session.js +17 -3
  108. package/dist/internal/e10/auth/xiaoe.js +176 -13
  109. package/dist/internal/e10/auth-recovery.js +39 -12
  110. package/dist/internal/e10/context.js +29 -3
  111. package/dist/internal/skills/install.js +9 -1
  112. package/dist/shortcuts/archive/continuation.js +2 -1
  113. package/dist/shortcuts/archive/index.js +3 -0
  114. package/dist/shortcuts/archive/operations/borrow-list.js +105 -14
  115. package/dist/shortcuts/archive/operations/confirm.js +2 -1
  116. package/dist/shortcuts/archive/operations/flow-url.js +182 -22
  117. package/dist/shortcuts/archive/operations/getPageUrl.js +75 -0
  118. package/dist/shortcuts/archive/operations/prelib.js +33 -4
  119. package/dist/shortcuts/archive/operations/shared.js +52 -0
  120. package/dist/shortcuts/archive-oa/continuation.js +2 -1
  121. package/dist/shortcuts/archive-oa/index.js +2 -0
  122. package/dist/shortcuts/archive-oa/operations/confirm.js +2 -1
  123. package/dist/shortcuts/asset/continuation.js +2 -1
  124. package/dist/shortcuts/asset/index.js +2 -0
  125. package/dist/shortcuts/asset-idle/index.js +2 -0
  126. package/dist/shortcuts/blog/continuation.js +2 -1
  127. package/dist/shortcuts/blog/index.js +2 -0
  128. package/dist/shortcuts/caizhilian/continuation.js +2 -1
  129. package/dist/shortcuts/caizhilian/index.js +2 -0
  130. package/dist/shortcuts/caizhilian/operations/confirm.js +3 -2
  131. package/dist/shortcuts/calendar/continuation.js +2 -1
  132. package/dist/shortcuts/calendar/index.js +2 -0
  133. package/dist/shortcuts/calendar/operations/write.js +1 -1
  134. package/dist/shortcuts/contract/continuation.js +2 -1
  135. package/dist/shortcuts/contract/host.js +111 -4
  136. package/dist/shortcuts/contract/index.js +21 -0
  137. package/dist/shortcuts/contract/manifest.js +125 -0
  138. package/dist/shortcuts/contract/ooxml/clause-insert.js +249 -0
  139. package/dist/shortcuts/contract/operations/clause-insert.js +56 -0
  140. package/dist/shortcuts/contract/operations/customer.js +192 -0
  141. package/dist/shortcuts/contract/operations/file-download.js +75 -0
  142. package/dist/shortcuts/contract/operations/flow.js +44 -2
  143. package/dist/shortcuts/contract/operations/form-info.js +162 -62
  144. package/dist/shortcuts/contract/operations/registry.js +8 -0
  145. package/dist/shortcuts/contract/operations/review.js +116 -1
  146. package/dist/shortcuts/contract/operations/summary.js +177 -0
  147. package/dist/shortcuts/contract/operations/upload.js +64 -4
  148. package/dist/shortcuts/contract/operations/write.js +2 -1
  149. package/dist/shortcuts/contract/upload-cache.js +104 -0
  150. package/dist/shortcuts/cowork/continuation.js +2 -1
  151. package/dist/shortcuts/cowork/index.js +2 -0
  152. package/dist/shortcuts/ebuilder-form/continuation.js +2 -1
  153. package/dist/shortcuts/ebuilder-form/index.js +2 -0
  154. package/dist/shortcuts/ebuilder-form/operations/write.js +3 -2
  155. package/dist/shortcuts/ehr/continuation.js +2 -1
  156. package/dist/shortcuts/ehr/index.js +2 -0
  157. package/dist/shortcuts/ehr/operations/attend-write.js +1 -1
  158. package/dist/shortcuts/ehr/operations/recruit-candidate-import.js +186 -5
  159. package/dist/shortcuts/ehr/operations/recruit-position.js +239 -6
  160. package/dist/shortcuts/ehr/operations/recruit-write.js +18 -19
  161. package/dist/shortcuts/ehr/operations/recruit.js +17 -5
  162. package/dist/shortcuts/esb/continuation.js +2 -1
  163. package/dist/shortcuts/esb/index.js +2 -0
  164. package/dist/shortcuts/esb/operations/trigger.js +2 -1
  165. package/dist/shortcuts/fna/continuation.js +2 -1
  166. package/dist/shortcuts/fna/index.js +2 -0
  167. package/dist/shortcuts/fna/operations/invoice-writeoff.js +1 -1
  168. package/dist/shortcuts/fna/operations/loan.js +1 -1
  169. package/dist/shortcuts/hrm/index.js +2 -0
  170. package/dist/shortcuts/hrm/operations/employee.js +29 -1
  171. package/dist/shortcuts/im/continuation.js +2 -1
  172. package/dist/shortcuts/index.js +5 -0
  173. package/dist/shortcuts/invoice/continuation.js +2 -1
  174. package/dist/shortcuts/invoice/index.js +14 -15
  175. package/dist/shortcuts/invoice/invoice-record.js +93 -0
  176. package/dist/shortcuts/invoice/manifest.js +190 -393
  177. package/dist/shortcuts/invoice/operations/add.js +2 -1
  178. package/dist/shortcuts/invoice/operations/delete.js +2 -1
  179. package/dist/shortcuts/invoice/operations/import.js +2 -1
  180. package/dist/shortcuts/invoice/operations/issuing-contract-detail.js +86 -0
  181. package/dist/shortcuts/invoice/operations/issuing-contracts.js +210 -0
  182. package/dist/shortcuts/invoice/operations/registry.js +17 -17
  183. package/dist/shortcuts/invoice/operations/reim-auto.js +4 -569
  184. package/dist/shortcuts/invoice/operations/reim.js +52 -341
  185. package/dist/shortcuts/invoice/operations/shared.js +21 -4
  186. package/dist/shortcuts/invoice/operations/update.js +2 -1
  187. package/dist/shortcuts/invoice/projection.js +10 -62
  188. package/dist/shortcuts/jiuchuanhui/continuation.js +2 -1
  189. package/dist/shortcuts/jiuchuanhui/index.js +2 -0
  190. package/dist/shortcuts/jiuchuanhui/operations/datajson.js +2 -1
  191. package/dist/shortcuts/jiuchuanhui/operations/esb.js +2 -1
  192. package/dist/shortcuts/mail/continuation.js +2 -1
  193. package/dist/shortcuts/mail/index.js +2 -0
  194. package/dist/shortcuts/mail/operations/mail-blacklist.js +1 -1
  195. package/dist/shortcuts/mail/operations/mail-contacts.js +1 -1
  196. package/dist/shortcuts/mail/operations/mail-send.js +1 -1
  197. package/dist/shortcuts/mail/operations/mail-sign.js +1 -1
  198. package/dist/shortcuts/mail/operations/mail-template.js +1 -1
  199. package/dist/shortcuts/meeting/continuation.js +2 -1
  200. package/dist/shortcuts/meeting/index.js +2 -0
  201. package/dist/shortcuts/meeting/operations/change.js +1 -1
  202. package/dist/shortcuts/meeting/operations/create.js +1 -1
  203. package/dist/shortcuts/meeting/operations/eb/create-flow.js +198 -65
  204. package/dist/shortcuts/meeting/operations/eb/decision.js +1 -1
  205. package/dist/shortcuts/meeting/operations/eb/draft-memory.js +56 -0
  206. package/dist/shortcuts/meeting/operations/eb/factory.js +59 -4
  207. package/dist/shortcuts/meeting/operations/eb/person-cache.js +2 -2
  208. package/dist/shortcuts/meeting/operations/eb/room-recommend.js +47 -5
  209. package/dist/shortcuts/meeting/operations/invitation-publish.js +132 -0
  210. package/dist/shortcuts/meeting/operations/lifecycle.js +1 -1
  211. package/dist/shortcuts/meeting/operations/receipts.js +1 -1
  212. package/dist/shortcuts/meeting/operations/registry.js +2 -0
  213. package/dist/shortcuts/meeting/operations/signs.js +1 -1
  214. package/dist/shortcuts/okr/continuation.js +2 -1
  215. package/dist/shortcuts/okr/index.js +2 -0
  216. package/dist/shortcuts/okr/operations/write.js +1 -1
  217. package/dist/shortcuts/plan/continuation.js +2 -1
  218. package/dist/shortcuts/plan/index.js +2 -0
  219. package/dist/shortcuts/plan/operations/write.js +1 -1
  220. package/dist/shortcuts/project/continuation.js +2 -1
  221. package/dist/shortcuts/project/index.js +2 -0
  222. package/dist/shortcuts/reception/constants.js +53 -0
  223. package/dist/shortcuts/reception/errors.js +54 -0
  224. package/dist/shortcuts/reception/host.js +125 -0
  225. package/dist/shortcuts/reception/index.js +198 -0
  226. package/dist/shortcuts/reception/manifest.js +177 -0
  227. package/dist/shortcuts/reception/operations/ask.js +71 -0
  228. package/dist/shortcuts/reception/operations/browsertool.js +58 -0
  229. package/dist/shortcuts/reception/operations/compose.js +129 -0
  230. package/dist/shortcuts/reception/operations/customparams.js +74 -0
  231. package/dist/shortcuts/reception/operations/doc.js +238 -0
  232. package/dist/shortcuts/reception/operations/docrender.js +36 -0
  233. package/dist/shortcuts/reception/operations/panels.js +179 -0
  234. package/dist/shortcuts/reception/operations/registry.js +26 -0
  235. package/dist/shortcuts/reception/operations/render-assets.js +184 -0
  236. package/dist/shortcuts/reception/operations/render.js +123 -0
  237. package/dist/shortcuts/reception/operations/runs.js +38 -0
  238. package/dist/shortcuts/reception/operations/schedule.js +127 -0
  239. package/dist/shortcuts/reception/operations/shared.js +196 -0
  240. package/dist/shortcuts/reception/operations/snapshot.js +68 -0
  241. package/dist/shortcuts/reception/operations/types.js +1 -0
  242. package/dist/shortcuts/reception/operations.js +33 -0
  243. package/dist/shortcuts/reception/upload.js +218 -0
  244. package/dist/shortcuts/recruit-stage/context.js +145 -33
  245. package/dist/shortcuts/recruit-stage/continuation.js +2 -1
  246. package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +86 -16
  247. package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +6 -4
  248. package/dist/shortcuts/recruit-stage/operations/jd-create.js +289 -48
  249. package/dist/shortcuts/recruit-stage/operations/resume-import.js +207 -25
  250. package/dist/shortcuts/recruit-stage/shared.js +161 -18
  251. package/dist/shortcuts/workflow/continuation.js +2 -1
  252. package/dist/shortcuts/workflow/index.js +4 -0
  253. package/dist/shortcuts/workflow/operations/form.js +32 -8
  254. package/dist/shortcuts/workflow/operations/read.js +8 -3
  255. package/dist/shortcuts/workflow/operations/todoSmartConvert/aigroupRules.js +92 -5
  256. package/dist/shortcuts/workflow/operations/todoSmartConvert/priorityExpr.js +509 -0
  257. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoListRows.js +22 -1
  258. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +32 -6
  259. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +57 -11
  260. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.group.js +165 -52
  261. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +57 -14
  262. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.smartGroup.js +44 -18
  263. package/dist/shortcuts/workflow/operations/write.js +1 -1
  264. package/docs/_catalog.md +3 -0
  265. package/docs/agent-invoice.md +1 -1
  266. package/docs/archive-oa.md +1 -1
  267. package/docs/caizhilian.md +1 -1
  268. package/docs/calendar.md +1 -1
  269. package/docs/contract.md +2 -1
  270. package/docs/e10-auth.md +19 -1
  271. package/docs/ehr.md +2 -2
  272. package/docs/esb.md +1 -1
  273. package/docs/im.md +1 -1
  274. package/docs/invoice.md +8 -12
  275. package/docs/okr.md +1 -1
  276. package/docs/reception.md +119 -0
  277. package/docs/todo-smart-convert/data-contract.md +7 -0
  278. package/package.json +1 -1
  279. package/scripts/clean.mjs +43 -2
  280. package/skill-template/business-info.json +18 -2
  281. package/skill-template/domains/caizhilian.md +1 -1
  282. package/skill-template/domains/jinchengda.md +2 -0
  283. package/skill-template/domains/reception-flow.md +18 -0
  284. package/skill-template/domains/yepiaotong.md +4 -7
  285. package/skills/weaver-e10-archive-oa/references/source-manifest.json +14 -14
  286. package/skills/weaver-e10-blog/references/blog-publish.md +1 -1
  287. package/skills/weaver-e10-blog/references/source-manifest.json +7 -7
  288. package/skills/weaver-e10-caizhilian/references/source-manifest.json +21 -21
  289. package/skills/weaver-e10-caizhilian/references/write-protocol.md +2 -2
  290. package/skills/weaver-e10-calendar/references/calendar-write.md +1 -1
  291. package/skills/weaver-e10-cowork/SKILL.md +1 -1
  292. package/skills/weaver-e10-ebuilder-form/SKILL.md +1 -1
  293. package/skills/weaver-e10-ebuilder-form/references/custom-api.md +1 -1
  294. package/skills/weaver-e10-ebuilder-form/references/openapi-write.md +1 -1
  295. package/skills/weaver-e10-esb/SKILL.md +2 -2
  296. package/skills/weaver-e10-esb/references/source-manifest.json +22 -22
  297. package/skills/weaver-e10-esb/references/trigger.md +2 -2
  298. package/skills/weaver-e10-jinchengda/SKILL.md +198 -205
  299. package/skills/weaver-e10-jinchengda/references/contract-action-card.md +759 -0
  300. package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +250 -0
  301. package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +146 -7
  302. package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +178 -0
  303. package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +1 -1
  304. package/skills/weaver-e10-jinchengda/references/contract-clause-reference-save.md +1 -1
  305. package/skills/weaver-e10-jinchengda/references/contract-command-index.md +75 -0
  306. package/skills/weaver-e10-jinchengda/references/contract-compare-report-template.html +137 -0
  307. package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +163 -0
  308. package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +52 -3
  309. package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +92 -5
  310. package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +602 -0
  311. package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +209 -0
  312. package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +126 -0
  313. package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +312 -0
  314. package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +555 -0
  315. package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +47 -12
  316. package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +469 -0
  317. package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +154 -1
  318. package/skills/weaver-e10-jinchengda/references/contract-request-write.md +1 -1
  319. package/skills/weaver-e10-jinchengda/references/contract-type-fingerprints.md +224 -0
  320. package/skills/weaver-e10-jinchengda/references/orchestration.md +355 -0
  321. package/skills/weaver-e10-jinchengda/references/source-manifest.json +29 -29
  322. package/skills/weaver-e10-jucailin/SKILL.md +1 -1
  323. package/skills/weaver-e10-jucailin/references/attend-write.md +2 -2
  324. package/skills/weaver-e10-jucailin/references/recruit-create.md +15 -4
  325. package/skills/weaver-e10-jucailin/references/recruit-write.md +3 -3
  326. package/skills/weaver-e10-meeting/SKILL.md +64 -14
  327. package/skills/weaver-e10-meeting/references/meeting-change.md +1 -1
  328. package/skills/weaver-e10-meeting/references/meeting-create.md +1 -1
  329. package/skills/weaver-e10-meeting/references/meeting-lifecycle.md +1 -1
  330. package/skills/weaver-e10-meeting/references/meeting-verification.md +1 -1
  331. package/skills/weaver-e10-okr/references/okr-align.md +1 -1
  332. package/skills/weaver-e10-okr/references/okr-keyresult.md +1 -1
  333. package/skills/weaver-e10-okr/references/okr-write.md +1 -1
  334. package/skills/weaver-e10-okr/references/source-manifest.json +8 -8
  335. package/skills/weaver-e10-plan/references/plan-report-write.md +1 -1
  336. package/skills/weaver-e10-plan/references/source-manifest.json +20 -20
  337. package/skills/weaver-e10-qiyecheng/references/loan-management.md +1 -1
  338. package/skills/weaver-e10-qiyecheng/references/source-manifest.json +18 -18
  339. package/skills/weaver-e10-reception-flow/SKILL.md +173 -0
  340. 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
  341. package/skills/weaver-e10-reception-flow/data/fields-snapshot.json +213 -0
  342. package/skills/weaver-e10-reception-flow/references/browsertool.md +68 -0
  343. package/skills/weaver-e10-reception-flow/references/env-pitfalls.md +51 -0
  344. package/skills/weaver-e10-reception-flow/references/fields-snapshot.md +227 -0
  345. package/skills/weaver-e10-reception-flow/references/guide.md +179 -0
  346. package/skills/weaver-e10-reception-flow/scripts/locate.sh +14 -0
  347. package/skills/weaver-e10-reception-flow/scripts/render.py +724 -0
  348. package/skills/weaver-e10-recruit-stage/SKILL.md +19 -10
  349. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +10 -2
  350. package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +1 -1
  351. package/skills/weaver-e10-recruit-stage/lib/xiaoe-session.mjs +66 -0
  352. package/skills/weaver-e10-recruit-stage/references/position-templates.md +204 -0
  353. package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +13 -1
  354. package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +29 -6
  355. package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +27 -14
  356. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +21 -2
  357. package/skills/weaver-e10-shared/references/e10-auth-and-session.md +9 -1
  358. package/skills/weaver-e10-shijingran/SKILL.md +5 -5
  359. package/skills/weaver-e10-shijingran/references/source-manifest.json +37 -36
  360. package/skills/weaver-e10-skill-maker/references/module-cli-generation.md +2 -0
  361. package/skills/weaver-e10-wenshuding/SKILL.md +17 -7
  362. package/skills/weaver-e10-wenshuding/references/archive-borrow-list.md +28 -0
  363. package/skills/weaver-e10-wenshuding/references/archive-flow.md +24 -8
  364. package/skills/weaver-e10-wenshuding/references/archive-prelib-list.md +3 -0
  365. package/skills/weaver-e10-wenshuding/references/archive-prelib-open.md +4 -0
  366. package/skills/weaver-e10-wenshuding/references/archive-search.md +3 -1
  367. package/skills/weaver-e10-wenshuding/references/source-manifest.json +3 -3
  368. package/skills/weaver-e10-workflow/SKILL.md +19 -17
  369. package/skills/weaver-e10-workflow/aigroup/default.json +10 -6
  370. package/skills/weaver-e10-workflow/references/source-manifest.json +32 -32
  371. package/skills/weaver-e10-workflow/references/todo-smart-convert.md +36 -3
  372. package/skills/weaver-e10-workflow/references/workflow-memory.md +1 -1
  373. package/skills/weaver-e10-workflow/references/workflow-query.md +9 -6
  374. package/skills/weaver-e10-workflow/tools/todo-summary.cjs +152 -1
  375. package/skills/weaver-e10-yepiaotong/SKILL.md +19 -26
  376. package/skills/weaver-e10-yepiaotong/references/invoice-detail.md +13 -10
  377. package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +2 -0
  378. package/skills/weaver-e10-yepiaotong/references/invoice-issuing-workflow.md +194 -155
  379. package/skills/weaver-e10-yepiaotong/references/invoice-output-view.md +28 -32
  380. package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +5 -1
  381. package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +8 -10
  382. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +211 -616
  383. package/skills/weaver-e10-yepiaotong/references/reim-examples.md +149 -117
  384. package/skills/weaver-e10-yepiaotong/references/reim-expense-subject-rules.md +17 -20
  385. package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +20 -39
  386. package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +55 -22
  387. package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +7 -17
  388. package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +88 -92
  389. package/skills/weaver-e10-yepiaotong/references/source-manifest.json +144 -354
  390. package/skills/weaver-e10-yimiaoban/SKILL.md +18 -6
  391. package/skills/weaver-e10-yimiaoban/references/msg-write.md +31 -1
  392. package/skills/weaver-e10-yimiaoban/references/safety-boundaries.md +1 -1
  393. package/skills/weaver-e10-yimiaoban/references/session-sysmsg.md +72 -0
  394. package/skills/weaver-e10-yimiaoban/references/source-manifest.json +11 -11
  395. package/dist/chunks/chunk-TTPJJJC4.js +0 -465
  396. package/dist/chunks/registry-BKBZPBAJ.js +0 -23
  397. package/dist/shortcuts/invoice/markdown.js +0 -172
  398. package/dist/shortcuts/invoice/operations/issuing-qys.js +0 -424
  399. package/skills/weaver-e10-meeting.zip +0 -0
  400. package/skills/weaver-e10-yepiaotong/references/invoice-issuing-examples.md +0 -131
  401. package/skills/weaver-e10-yepiaotong/references/invoice-issuing-form-fill-rules.md +0 -179
@@ -37,21 +37,28 @@ import {
37
37
  toNumber,
38
38
  toPageQuery,
39
39
  toPositiveInt
40
- } from "./chunk-LDZQPUIA.js";
40
+ } from "./chunk-T4MWQAQB.js";
41
+ import {
42
+ reportPlatformError
43
+ } from "./chunk-6N4JPNFL.js";
44
+ import {
45
+ CONTINUATION_TTL_MS,
46
+ CONTINUATION_TTL_SECONDS
47
+ } from "./chunk-7BDPM5ST.js";
41
48
  import {
42
49
  E10ApiError,
43
50
  createE10RequestRuntime,
44
51
  isE10SessionExpiredResponse,
45
52
  requireE10Session
46
- } from "./chunk-SA6VBIHY.js";
53
+ } from "./chunk-6NXT4ICB.js";
47
54
  import {
48
55
  E10_SESSION_EXPIRED_MESSAGE,
49
56
  getActiveProfile
50
- } from "./chunk-FOAA27U5.js";
57
+ } from "./chunk-U6R6FZHD.js";
51
58
  import {
52
59
  isCliError,
53
60
  toErrorEnvelope
54
- } from "./chunk-LUSPKZKY.js";
61
+ } from "./chunk-UG5G54VL.js";
55
62
  import "./chunk-BUSC6UAE.js";
56
63
 
57
64
  // src/shortcuts/ehr/index.ts
@@ -90,7 +97,7 @@ function signature(payload, key) {
90
97
  }
91
98
  function createEhrContinuationSigner(ctx) {
92
99
  return {
93
- async issue(payload, ttlMs = 10 * 6e4) {
100
+ async issue(payload, ttlMs = CONTINUATION_TTL_MS) {
94
101
  const issuedAt = Date.now();
95
102
  const body = encode({ ...payload, issuedAt, expiresAt: issuedAt + ttlMs });
96
103
  const sig = signature(body, await loadKey(ctx));
@@ -708,7 +715,6 @@ var attendReadOperations = [
708
715
 
709
716
  // src/shortcuts/ehr/operations/attend-write.ts
710
717
  import { createHash as createHash2 } from "node:crypto";
711
- var CONTINUATION_TTL_SECONDS = 600;
712
718
  var CARD_TYPES = ["CHECKIN", "CHECKOUT", "LEAVE", "RETURN", "CHECKIN_AND_RETURN", "CHECKOUT_AND_LEAVE"];
713
719
  var APPEAL_TYPES = [
714
720
  "leave",
@@ -2263,7 +2269,6 @@ var hrReportOperations = [
2263
2269
 
2264
2270
  // src/shortcuts/ehr/operations/recruit-write.ts
2265
2271
  import { createHash as createHash3 } from "node:crypto";
2266
- var CONTINUATION_TTL_SECONDS2 = 600;
2267
2272
  function fingerprint2(value) {
2268
2273
  return createHash3("sha256").update(JSON.stringify(value ?? null)).digest("hex").slice(0, 32);
2269
2274
  }
@@ -2290,22 +2295,19 @@ async function requireRecruitCache(env) {
2290
2295
  return env.recruitContext.load(env.host);
2291
2296
  }
2292
2297
  function recruitTalentCardUrl(cache, baseUrl, talentId) {
2293
- if (!cache.ebdDetailPageId || !talentId) return null;
2294
- const extra = String(cache.selfUse) === "1" ? "&recruitType=useSelf" : "";
2295
- return `${baseUrl.replace(/\/+$/, "")}/sp/ebdpage/view/${cache.ebdDetailPageId}?talentId=${talentId}${extra}`;
2296
- }
2297
- function recruitSlideLocateUrl(cache, baseUrl, listKey, formKey, dataId) {
2298
- const listId = cache.lists?.[listKey]?.listId;
2299
- const objId = cache.forms?.[formKey]?.objId;
2300
- if (!listId || !objId || !dataId || !cache.appId) return null;
2298
+ if (!talentId) return null;
2301
2299
  const base = baseUrl.replace(/\/+$/, "");
2302
- return `${base}/sp/ebdfpage/list/${listId}/card/0/${objId}/${dataId}/${listId}?id=${dataId}&openSource=field&openSourceId=${dataId}&openSourceAppId=${cache.appId}`;
2300
+ if (cache.ebdDetailPageId) {
2301
+ const extra = String(cache.selfUse) === "1" ? "&recruitType=useSelf" : "";
2302
+ return `${base}/sp/ebdpage/view/${cache.ebdDetailPageId}?talentId=${talentId}${extra}`;
2303
+ }
2304
+ const objId = String(cache.forms?.talent_pool?.objId || cache.forms?.talent?.objId || "");
2305
+ return objId ? `${base}/sp/ebdfpage/card/0/${objId}/${talentId}` : null;
2303
2306
  }
2304
- function recruitOpenListUrl(cache, baseUrl, listKey, talentId) {
2307
+ function recruitOpenListUrl(cache, baseUrl, listKey) {
2305
2308
  const menu = cache.lists?.[listKey];
2306
2309
  if (!menu?.listId) return null;
2307
- const extra = talentId ? `?talentId=${talentId}${String(cache.selfUse) === "1" ? "&recruitType=useSelf" : ""}` : "";
2308
- return `${baseUrl.replace(/\/+$/, "")}/sp/ebdfpage/list/${menu.listId}${extra}`;
2310
+ return `${baseUrl.replace(/\/+$/, "")}/sp/ebdfpage/list/${menu.listId}`;
2309
2311
  }
2310
2312
  async function checkDuplicateByMobile(env, cache, mobile) {
2311
2313
  const talent = cache.lists.talent;
@@ -2660,14 +2662,14 @@ var candidateCreatePrepare = {
2660
2662
  payload: { name, mobile, channel: channelName, formId: talentObj?.formId || talentObj?.objId, objId: talentObj?.objId, dataDetails },
2661
2663
  fingerprint: fingerprint2({ name, mobile, channel: channelName, dataDetails })
2662
2664
  },
2663
- CONTINUATION_TTL_SECONDS2 * 1e3
2665
+ CONTINUATION_TTL_SECONDS * 1e3
2664
2666
  );
2665
2667
  return ehrSuccess("ehr.recruit.candidate.create.prepare", {
2666
2668
  status: "AWAITING_CONFIRMATION",
2667
2669
  preview,
2668
2670
  willSubmit: { formId: talentObj?.formId || talentObj?.objId, objId: talentObj?.objId, dataDetails },
2669
2671
  continuation: token,
2670
- expiresInSeconds: CONTINUATION_TTL_SECONDS2
2672
+ expiresInSeconds: CONTINUATION_TTL_SECONDS
2671
2673
  });
2672
2674
  }
2673
2675
  };
@@ -2777,7 +2779,7 @@ var candidateCreateApply = {
2777
2779
  initTalentBatch: initMsg,
2778
2780
  searchHint: `\u53EF\u7528 ehr.recruit.candidate.search \u6309 name=${name} \u6216 mobile=${mobile} \u56DE\u67E5`,
2779
2781
  talentCardUrl: recruitTalentCardUrl(cache, lease.baseUrl, newId),
2780
- talentListLocateUrl: recruitOpenListUrl(cache, lease.baseUrl, "talent", newId)
2782
+ talentListLocateUrl: recruitOpenListUrl(cache, lease.baseUrl, "talent")
2781
2783
  });
2782
2784
  }
2783
2785
  };
@@ -3114,7 +3116,7 @@ var interviewArrangePrepare = {
3114
3116
  payload,
3115
3117
  fingerprint: fingerprint2({ dataDetails: plan.dataDetails, notify })
3116
3118
  },
3117
- CONTINUATION_TTL_SECONDS2 * 1e3
3119
+ CONTINUATION_TTL_SECONDS * 1e3
3118
3120
  );
3119
3121
  return ehrSuccess("ehr.recruit.candidate.interview.arrange.prepare", {
3120
3122
  status: "AWAITING_CONFIRMATION",
@@ -3135,7 +3137,7 @@ var interviewArrangePrepare = {
3135
3137
  },
3136
3138
  willSubmit: { formId: plan.formId, objId: plan.objId, dataDetails: plan.dataDetails },
3137
3139
  continuation: token,
3138
- expiresInSeconds: CONTINUATION_TTL_SECONDS2
3140
+ expiresInSeconds: CONTINUATION_TTL_SECONDS
3139
3141
  });
3140
3142
  }
3141
3143
  };
@@ -3214,7 +3216,7 @@ var interviewArrangeApply = {
3214
3216
  time: plan.interviewTime,
3215
3217
  interviewer: plan.interviewer,
3216
3218
  talentCardUrl: recruitTalentCardUrl(cache, lease.baseUrl, args.talentId),
3217
- interviewLocateUrl: recruitSlideLocateUrl(cache, lease.baseUrl, "interview", "interview_plan", planFormId)
3219
+ interviewLocateUrl: recruitOpenListUrl(cache, lease.baseUrl, "interview")
3218
3220
  });
3219
3221
  }
3220
3222
  };
@@ -3366,7 +3368,7 @@ var offerSendPrepare = {
3366
3368
  payload: { ...args, fbObjId: plan.fbObjId, fbFormId: plan.fbFormId, dataDetails: plan.dataDetails, offerId: plan.offerId },
3367
3369
  fingerprint: fingerprint2({ dataDetails: plan.dataDetails, offerId: plan.offerId })
3368
3370
  },
3369
- CONTINUATION_TTL_SECONDS2 * 1e3
3371
+ CONTINUATION_TTL_SECONDS * 1e3
3370
3372
  );
3371
3373
  return ehrSuccess("ehr.recruit.offer.send.prepare", {
3372
3374
  status: "AWAITING_CONFIRMATION",
@@ -3382,7 +3384,7 @@ var offerSendPrepare = {
3382
3384
  },
3383
3385
  willSubmit: { formId: plan.fbFormId, objId: plan.fbObjId, dataDetails: plan.dataDetails },
3384
3386
  continuation: token,
3385
- expiresInSeconds: CONTINUATION_TTL_SECONDS2
3387
+ expiresInSeconds: CONTINUATION_TTL_SECONDS
3386
3388
  });
3387
3389
  }
3388
3390
  };
@@ -3636,7 +3638,7 @@ var entryProcessPrepare = {
3636
3638
  },
3637
3639
  fingerprint: fingerprint2({ entryId: plan.entryId, dataDetails: plan.dataDetails })
3638
3640
  },
3639
- CONTINUATION_TTL_SECONDS2 * 1e3
3641
+ CONTINUATION_TTL_SECONDS * 1e3
3640
3642
  );
3641
3643
  return ehrSuccess("ehr.recruit.entry.process.prepare", {
3642
3644
  status: "AWAITING_CONFIRMATION",
@@ -3654,7 +3656,7 @@ var entryProcessPrepare = {
3654
3656
  },
3655
3657
  willSubmit: { formId: plan.emFormId, objId: plan.emObjId, updateTimeStamp: plan.updateTimeStamp, dataDetails: plan.dataDetails },
3656
3658
  continuation: token,
3657
- expiresInSeconds: CONTINUATION_TTL_SECONDS2
3659
+ expiresInSeconds: CONTINUATION_TTL_SECONDS
3658
3660
  });
3659
3661
  }
3660
3662
  };
@@ -3886,7 +3888,7 @@ var feedbackEditPrepare = {
3886
3888
  comment: plan.newComment
3887
3889
  })
3888
3890
  },
3889
- CONTINUATION_TTL_SECONDS2 * 1e3
3891
+ CONTINUATION_TTL_SECONDS * 1e3
3890
3892
  );
3891
3893
  return ehrSuccess("ehr.recruit.candidate.interview.feedback.edit.prepare", {
3892
3894
  status: "AWAITING_CONFIRMATION",
@@ -3902,7 +3904,7 @@ var feedbackEditPrepare = {
3902
3904
  note: "apply \u5C06\u4FDD\u5B58\u53CD\u9988\u8868\u5355\uFF08\u5168\u5B57\u6BB5\u96C6 + \u4E50\u89C2\u9501\uFF09\u5E76\u56DE\u67E5\u6821\u9A8C"
3903
3905
  },
3904
3906
  continuation: token,
3905
- expiresInSeconds: CONTINUATION_TTL_SECONDS2
3907
+ expiresInSeconds: CONTINUATION_TTL_SECONDS
3906
3908
  });
3907
3909
  }
3908
3910
  };
@@ -4062,7 +4064,7 @@ var feedbackUrgePrepare = {
4062
4064
  },
4063
4065
  fingerprint: fingerprint2({ talentId: plan.talentId, feedbackRecordId: plan.feedbackRecordId })
4064
4066
  },
4065
- CONTINUATION_TTL_SECONDS2 * 1e3
4067
+ CONTINUATION_TTL_SECONDS * 1e3
4066
4068
  );
4067
4069
  return ehrSuccess("ehr.recruit.candidate.interview.feedback.urge.prepare", {
4068
4070
  status: "AWAITING_CONFIRMATION",
@@ -4075,7 +4077,7 @@ var feedbackUrgePrepare = {
4075
4077
  note: "\u786E\u8BA4\u540E\u5C06\u5411\u9762\u8BD5\u5B98\u53D1\u9001\u300C\u8BF7\u586B\u5199\u8BC4\u4EF7\u300D\u7CFB\u7EDF\u901A\u77E5\uFF08\u4F1A\u6253\u6270\u771F\u4EBA\uFF0C\u8BF7\u786E\u4FDD\u5DF2\u7ECF\u7528\u6237\u540C\u610F\uFF09"
4076
4078
  },
4077
4079
  continuation: token,
4078
- expiresInSeconds: CONTINUATION_TTL_SECONDS2
4080
+ expiresInSeconds: CONTINUATION_TTL_SECONDS
4079
4081
  });
4080
4082
  }
4081
4083
  };
@@ -4260,16 +4262,17 @@ var REF_COPY_KEYS = [
4260
4262
  "job_category",
4261
4263
  "education",
4262
4264
  "work_years",
4263
- "work_location",
4264
4265
  "salary_min",
4265
4266
  "salary_max",
4266
4267
  "recruit_flow"
4267
4268
  ];
4269
+ var DEFAULT_WORK_LOCATION = "\u6D66\u6C5F\u9547\u4E09\u9C81\u516C\u8DEF3419\u53F7\u6CDB\u5FAE\u8F6F\u4EF6\u56ED";
4268
4270
  var TEXT_DEFAULTS = { recruit_count: "1", number_of_pay_months: "12" };
4269
4271
  var OPTION_DEFAULTS = { salary_type: "\u6708\u85AA", recruit_type: "\u793E\u4F1A\u62DB\u8058", status: "\u62DB\u8058\u4E2D" };
4270
4272
  var SET_FIELDS = [
4271
4273
  { arg: "education", key: "education", kind: "dict", label: "\u5B66\u5386\u8981\u6C42\uFF08\u6309\u6570\u636E\u5B57\u5178\u540D\u79F0\uFF09" },
4272
4274
  { arg: "workYears", key: "work_years", kind: "dict", label: "\u5DE5\u4F5C\u5E74\u9650\uFF08\u6309\u6570\u636E\u5B57\u5178\u540D\u79F0\uFF09" },
4275
+ { arg: "workLocation", key: "work_location", kind: "assoc", label: "\u5DE5\u4F5C\u5730\u70B9\uFF08\u529E\u516C\u5730\u70B9\u540D\u79F0/\u8BE6\u7EC6\u5730\u5740\uFF0C\u5982\u300C\u4E0A\u6D77\u300D\u6216\u5B8C\u6574\u5730\u5740\uFF09" },
4273
4276
  { arg: "jobCategory", key: "job_category", kind: "dict", label: "\u804C\u4F4D\u7C7B\u522B\uFF08\u6309\u6570\u636E\u5B57\u5178\u540D\u79F0\uFF09" },
4274
4277
  { arg: "positionNature", key: "position_nature", kind: "dict", label: "\u804C\u4F4D\u5C5E\u6027\uFF08\u6309\u6570\u636E\u5B57\u5178\u540D\u79F0\uFF09" },
4275
4278
  { arg: "salaryType", key: "salary_type", kind: "option", label: "\u85AA\u916C\u7C7B\u578B\uFF08\u6708\u85AA/\u5E74\u85AA\u7B49\uFF09" },
@@ -4319,6 +4322,138 @@ async function fetchReferenceDetails(env, cache, objId, formId) {
4319
4322
  return [];
4320
4323
  }
4321
4324
  }
4325
+ var WORK_PLACE_NAMES = ["\u529E\u516C\u5730\u70B9", "\u5DE5\u4F5C\u5730\u70B9"];
4326
+ async function findWorkPlaceMenu(env, cache) {
4327
+ const ok = (m) => !!(m && m.listId);
4328
+ const pick = (list) => {
4329
+ const hit = list.find((m) => ok(m) && WORK_PLACE_NAMES.some((n) => String(m.menuName || "").includes(n)));
4330
+ return hit ? hit : null;
4331
+ };
4332
+ const hit1 = pick(cache.lists?.all_search || []);
4333
+ if (hit1) return hit1;
4334
+ const hit2 = pick(cache.menus || []);
4335
+ if (hit2) return hit2;
4336
+ try {
4337
+ const r = await env.host.request({
4338
+ path: "/api/cusapp/app/allMenus",
4339
+ query: { isFront: 1, appId: String(cache.appId || ""), terminalType: "PC" }
4340
+ });
4341
+ const flat = [];
4342
+ (function walk(nodes) {
4343
+ for (const n of nodes || []) {
4344
+ if (n && typeof n === "object") {
4345
+ flat.push(n);
4346
+ walk(n.children || n.childs);
4347
+ }
4348
+ }
4349
+ })(r?.data?.cusAppMenus || r?.data);
4350
+ return pick(flat);
4351
+ } catch {
4352
+ return null;
4353
+ }
4354
+ }
4355
+ var workPlaceMemo = /* @__PURE__ */ new Map();
4356
+ function stripHtml(s) {
4357
+ return String(s ?? "").replace(/<[^>]*>/g, "").trim();
4358
+ }
4359
+ function parseSpans(raw) {
4360
+ try {
4361
+ const v = Array.isArray(raw) ? raw : JSON.parse(String(raw || "[]"));
4362
+ return Array.isArray(v) ? v : [];
4363
+ } catch {
4364
+ return [];
4365
+ }
4366
+ }
4367
+ function isEnabledText(s) {
4368
+ const t = stripHtml(s);
4369
+ return t.includes("\u542F\u7528") && !t.includes("\u7981\u7528");
4370
+ }
4371
+ async function loadWorkPlaces(env, cache) {
4372
+ const menu = await findWorkPlaceMenu(env, cache);
4373
+ if (!menu?.listId) return [];
4374
+ const key = String(cache.appId || "") + "|" + menu.listId;
4375
+ const cached = workPlaceMemo.get(key);
4376
+ if (cached) return cached;
4377
+ let pObj = "";
4378
+ try {
4379
+ const t = await env.host.request({
4380
+ path: "/api/ebuilder/form/obj/getObjsByTag",
4381
+ query: { appId: String(cache.appId || ""), tag: "uf_rcrt_work_place" }
4382
+ });
4383
+ const d = t?.data;
4384
+ if (Array.isArray(d) && d[0]) pObj = String(d[0].id || "");
4385
+ } catch {
4386
+ }
4387
+ if (!pObj) pObj = String(menu.objId || "");
4388
+ if (!pObj) return [];
4389
+ const pageSize = 200;
4390
+ const rawRows = [];
4391
+ const dispRows = [];
4392
+ for (let page = 1; page <= 5; page++) {
4393
+ const body = buildListBody({
4394
+ listId: menu.listId,
4395
+ cusMenuId: menu.cusMenuId,
4396
+ menuName: menu.menuName || "\u529E\u516C\u5730\u70B9",
4397
+ title: menu.menuName || "\u529E\u516C\u5730\u70B9",
4398
+ current: page,
4399
+ pageSize
4400
+ });
4401
+ const r = await env.host.request({
4402
+ path: `/api/ebuilder/form/list/getListDatas?passid=${pObj}&cid=${pObj}`,
4403
+ body,
4404
+ headers: { ebBusinessId: menu.listId }
4405
+ });
4406
+ const batch = r?.data?.data || r?.data?.displayData || [];
4407
+ rawRows.push(...batch);
4408
+ dispRows.push(...r?.data?.displayData || []);
4409
+ if (batch.length < pageSize) break;
4410
+ }
4411
+ const enabledStatusIds = /* @__PURE__ */ new Set();
4412
+ const enabledRowIds = /* @__PURE__ */ new Set();
4413
+ for (const d of dispRows) {
4414
+ const rid = String(d?.form_data_id || d?.id || "");
4415
+ if (isEnabledText(d?.place_status) && rid) enabledRowIds.add(rid);
4416
+ for (const s of parseSpans(d?.place_statusSpan)) {
4417
+ if (isEnabledText(s?.name) && s?.id) enabledStatusIds.add(String(s.id));
4418
+ }
4419
+ }
4420
+ const statusFiltered = enabledRowIds.size > 0 || enabledStatusIds.size > 0;
4421
+ const rows = rawRows.filter((x) => !statusFiltered || enabledRowIds.has(String(x?.form_data_id || x?.id || "")) || enabledStatusIds.has(String(x?.place_status || ""))).map((x) => ({
4422
+ id: String(x?.form_data_id || x?.id || ""),
4423
+ name: String(x?.name || ""),
4424
+ detail: String(x?.detail_location || ""),
4425
+ area: String(x?.area_text || "")
4426
+ })).filter((x) => !!x.id);
4427
+ workPlaceMemo.set(key, rows);
4428
+ return rows;
4429
+ }
4430
+ function matchWorkPlace(rows, value) {
4431
+ const v = String(value).trim();
4432
+ if (!v || !rows.length) return null;
4433
+ const exact = rows.find((r) => r.detail === v) || rows.find((r) => r.name === v);
4434
+ if (exact) return exact;
4435
+ const valid = (s) => s.length >= 4 && !/^\d+$/.test(s);
4436
+ return rows.find((r) => r.detail.includes(v) && valid(r.detail) || r.name.includes(v) && valid(r.name) || r.area.includes(v) && valid(r.area) || v.includes(r.detail) && valid(r.detail)) || null;
4437
+ }
4438
+ async function resolveWorkLocation(env, cache, value) {
4439
+ if (!String(value).trim()) return null;
4440
+ const hit = matchWorkPlace(await loadWorkPlaces(env, cache), value);
4441
+ return hit ? { id: hit.id, name: hit.detail || hit.name || String(value) } : null;
4442
+ }
4443
+ async function resolveDefaultWorkLocation(env, cache) {
4444
+ return resolveWorkLocation(env, cache, DEFAULT_WORK_LOCATION);
4445
+ }
4446
+ function detailDisplayValue(detail) {
4447
+ if (!detail) return "";
4448
+ const d = detail;
4449
+ if (d.content !== void 0 && d.content !== null) return String(d.content);
4450
+ if (Array.isArray(d.dataOptions) && d.dataOptions[0]) {
4451
+ const o = d.dataOptions[0];
4452
+ return String(o.content ?? o.optionId ?? "");
4453
+ }
4454
+ if (d.dataText?.content !== void 0) return String(d.dataText.content).replace(/<[^>]+>/g, "").slice(0, 60);
4455
+ return "";
4456
+ }
4322
4457
  async function buildPositionPlan(env, cache, args) {
4323
4458
  const form = cache.forms.position_manage;
4324
4459
  const objId = form?.objId;
@@ -4373,7 +4508,15 @@ async function buildPositionPlan(env, cache, args) {
4373
4508
  continue;
4374
4509
  }
4375
4510
  if (field.kind === "text" || field.kind === "number") {
4376
- put({ formField: { id: fieldId }, content: value });
4511
+ let out = String(value);
4512
+ if (field.key === "salary_min" || field.key === "salary_max") {
4513
+ const n = Number(String(value).replace(/,/g, ""));
4514
+ if (Number.isFinite(n) && n > 0) {
4515
+ const k = n / 1e3;
4516
+ out = String(Number.isInteger(k) ? k : Number(k.toFixed(3)));
4517
+ }
4518
+ }
4519
+ put({ formField: { id: fieldId }, content: out });
4377
4520
  applied.push(`${field.key}=${value}`);
4378
4521
  } else if (field.kind === "option") {
4379
4522
  const options = await getDsOptions(env.host, objId, fieldId, cache.appId);
@@ -4384,6 +4527,14 @@ async function buildPositionPlan(env, cache, args) {
4384
4527
  }
4385
4528
  put({ formField: { id: fieldId }, dataOptions: [{ optionId: String(optionId), content: value }] });
4386
4529
  applied.push(`${field.key}=${value}`);
4530
+ } else if (field.kind === "assoc") {
4531
+ const loc = await resolveWorkLocation(env, cache, value);
4532
+ if (!loc) {
4533
+ skipped.push(`${field.key}=${value}\uFF08\u672A\u5339\u914D\u5230\u300C\u529E\u516C\u5730\u70B9\u300D\u8BB0\u5F55\uFF0C\u5DF2\u8DF3\u8FC7\uFF09`);
4534
+ continue;
4535
+ }
4536
+ put({ formField: { id: fieldId }, dataOptions: [{ optionId: loc.id, content: loc.name }] });
4537
+ applied.push(`${field.key}=${value}`);
4387
4538
  } else if (field.kind === "dict") {
4388
4539
  const ids = cache.dict.by_name[value] || [];
4389
4540
  const unique = [...new Set(ids.map(String))];
@@ -4440,8 +4591,28 @@ async function buildPositionPlan(env, cache, args) {
4440
4591
  missingRef.push(key);
4441
4592
  }
4442
4593
  }
4594
+ let workLocationDefault = null;
4595
+ let workLocationWarning = null;
4596
+ if (!has("work_location") && fid("work_location")) {
4597
+ const loc = await resolveDefaultWorkLocation(env, cache).catch(() => null);
4598
+ if (loc) {
4599
+ put({ formField: { id: fid("work_location") }, dataOptions: [{ optionId: loc.id, content: loc.name }] });
4600
+ workLocationDefault = loc.name;
4601
+ } else {
4602
+ workLocationWarning = `\u672A\u5728\u300C\u529E\u516C\u5730\u70B9\u300D\u5217\u8868\u627E\u5230\u542F\u7528\u72B6\u6001\u7684\u9ED8\u8BA4\u5730\u70B9\u300C${DEFAULT_WORK_LOCATION}\u300D\uFF0C\u672C\u6B21\u4E0D\u5199 work_location\uFF1B\u8BF7\u7528 workLocation \u663E\u5F0F\u6307\u5B9A`;
4603
+ }
4604
+ }
4443
4605
  const inverse = {};
4444
4606
  for (const [dataKey, fieldId] of Object.entries(fields)) inverse[String(fieldId)] = dataKey;
4607
+ const inheritedSalaryWarnings = [];
4608
+ for (const key of ["salary_min", "salary_max"]) {
4609
+ if (!inherited.includes(key)) continue;
4610
+ const raw = detailDisplayValue(refMap.get(String(fid(key))));
4611
+ const num = Number(String(raw).replace(/[^\d.]/g, ""));
4612
+ if (raw && Number.isFinite(num) && num > 0 && num < 1e3) {
4613
+ inheritedSalaryWarnings.push(`${key} \u7EE7\u627F\u503C\u300C${raw}\u300D\u660E\u663E\u504F\u4F4E\uFF08\u7591\u5386\u53F2\u810F\u6570\u636E\uFF09\uFF0C\u8BF7\u4EBA\u5DE5\u6838\u5BF9\u540E\u518D\u63D0\u4EA4`);
4614
+ }
4615
+ }
4445
4616
  return {
4446
4617
  objId,
4447
4618
  formId,
@@ -4455,6 +4626,12 @@ async function buildPositionPlan(env, cache, args) {
4455
4626
  explicitApplied: applied,
4456
4627
  explicitSkipped: skipped,
4457
4628
  inheritedFromExistingPosition: inherited,
4629
+ // 带值的继承清单:Agent 必须在确认摘要里逐项点名,不得因为它是默认值就略过
4630
+ // (工作地点不参与继承,已改为启用办公地点列表精确解析)。
4631
+ inheritedFromRef: inherited.length ? inherited.map((k) => ({ field: k, value: detailDisplayValue(refMap.get(String(fid(k)))) })) : void 0,
4632
+ inheritedSalaryWarnings: inheritedSalaryWarnings.length ? inheritedSalaryWarnings : void 0,
4633
+ workLocationDefault: workLocationDefault || void 0,
4634
+ workLocationWarning: workLocationWarning || void 0,
4458
4635
  noReferenceValue: missingRef,
4459
4636
  principalDefault: session.userId ? "\u5F53\u524D\u767B\u5F55\u7528\u6237" : "\u672A\u89E3\u6790\u5230\u5F53\u524D\u7528\u6237"
4460
4637
  }
@@ -4493,14 +4670,14 @@ var positionCreatePrepare = {
4493
4670
  payload: { objId: plan.objId, formId: plan.formId, positionName: String(args.positionName).trim(), dataDetails: plan.dataDetails },
4494
4671
  fingerprint: fingerprint3({ objId: plan.objId, dataDetails: plan.dataDetails })
4495
4672
  },
4496
- 10 * 60 * 1e3
4673
+ CONTINUATION_TTL_MS
4497
4674
  );
4498
4675
  return ehrSuccess("ehr.recruit.position.create.prepare", {
4499
4676
  status: "AWAITING_CONFIRMATION",
4500
4677
  preview: { action: "\u751F\u6210\u804C\u4F4DJD\u5E76\u5EFA\u804C\u4F4D\uFF08saveFormData \u2192 addPosition\uFF09", ...plan.summary },
4501
4678
  willSubmit: { objId: plan.objId, formId: plan.formId, dataDetails: plan.dataDetails },
4502
4679
  continuation,
4503
- expiresInSeconds: 600
4680
+ expiresInSeconds: CONTINUATION_TTL_SECONDS
4504
4681
  });
4505
4682
  }
4506
4683
  };
@@ -4555,7 +4732,7 @@ var positionCreateApply = {
4555
4732
  const list = cache.lists.position;
4556
4733
  const baseUrl = session.baseUrl.replace(/\/+$/, "");
4557
4734
  const cardUrl = `${baseUrl}/sp/ebdfpage/card/0/${payload.objId}/${formDataId}`;
4558
- const listLocateUrl = list?.listId ? `${baseUrl}/sp/ebdfpage/list/${list.listId}/card/0/${payload.objId}/${formDataId}/${list.listId}?id=${formDataId}&openSource=field&openSourceId=${formDataId}` : null;
4735
+ const listLocateUrl = list?.listId ? `${baseUrl}/sp/ebdfpage/list/${list.listId}` : null;
4559
4736
  if (!created) {
4560
4737
  throw ehrValidationError(
4561
4738
  "position_create_failed",
@@ -4669,6 +4846,93 @@ function joinRange(start, end) {
4669
4846
  if (!s && !e) return void 0;
4670
4847
  return `${s},${e}`;
4671
4848
  }
4849
+ var DATE_ONLY_RE = /^\d{4}-\d{2}-\d{2}$/;
4850
+ var ONGOING_RE = /至今|现在|今|now|present/i;
4851
+ var 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*$/;
4852
+ var RE_RANGE_YM = /^\s*(\d{4}[.\-/年]\d{1,2})\s*[-–—~至,,]\s*(\d{4}[.\-/年]\d{1,2}|至今|现在|今)\s*$/;
4853
+ function normDatePart(raw, isEnd) {
4854
+ const s = String(raw ?? "").trim();
4855
+ if (!s) return "";
4856
+ if (ONGOING_RE.test(s)) return "";
4857
+ if (DATE_ONLY_RE.test(s)) return s;
4858
+ const m = s.match(/^(\d{4})\s*[.\-/年]?\s*(\d{1,2})?\s*[.\-/月]?\s*(\d{1,2})?\s*日?$/);
4859
+ if (!m) return "";
4860
+ const y = Number(m[1]);
4861
+ const mo = m[2] ? Number(m[2]) : 1;
4862
+ if (!y || mo < 1 || mo > 12) return "";
4863
+ const lastDay = new Date(y, mo, 0).getDate();
4864
+ let d;
4865
+ if (m[3]) {
4866
+ d = Number(m[3]);
4867
+ if (d < 1 || d > lastDay) return "";
4868
+ } else {
4869
+ d = isEnd ? lastDay : 1;
4870
+ }
4871
+ return `${y}-${String(mo).padStart(2, "0")}-${String(d).padStart(2, "0")}`;
4872
+ }
4873
+ function normDateRange(raw) {
4874
+ const s = Array.isArray(raw) ? raw.map((x) => String(x ?? "").trim()).filter(Boolean).join(",") : String(raw ?? "").trim();
4875
+ if (!s) return "";
4876
+ const m = s.match(RE_RANGE_FULL) || s.match(RE_RANGE_YM);
4877
+ if (m) {
4878
+ const a = normDatePart(m[1], false);
4879
+ if (!a) return "";
4880
+ const b = normDatePart(m[2], true);
4881
+ return b ? `${a},${b}` : a;
4882
+ }
4883
+ return normDatePart(s, false);
4884
+ }
4885
+ function normalizeImportDates(input, warnings) {
4886
+ if (!input || typeof input !== "object") return;
4887
+ const one = (label, val, isEnd = false) => {
4888
+ const before = String(val ?? "").trim();
4889
+ if (!before) return "";
4890
+ if (ONGOING_RE.test(before)) return "";
4891
+ const after = normDatePart(before, isEnd);
4892
+ if (!after) {
4893
+ warnings.push(`\u65E5\u671F\u65E0\u6CD5\u8BC6\u522B\uFF0C\u5DF2\u8DF3\u8FC7\u8BE5\u5B57\u6BB5\uFF08\u907F\u514D\u63A5\u53E3\u6574\u6279\u6821\u9A8C\u5931\u8D25\uFF09\uFF1A${label} = \u300C${before}\u300D`);
4894
+ return "";
4895
+ }
4896
+ if (after !== before) warnings.push(`\u65E5\u671F\u5DF2\u89C4\u8303\u5316\uFF1A${label} \u300C${before}\u300D\u2192\u300C${after}\u300D`);
4897
+ return after;
4898
+ };
4899
+ for (const k of ["joinworkdate", "graduate_date", "birthday"]) {
4900
+ if (input[k] === void 0 || input[k] === null) continue;
4901
+ input[k] = one(k, input[k], false);
4902
+ }
4903
+ if (Array.isArray(input.academicInformations)) {
4904
+ input.academicInformations.forEach((r, i) => {
4905
+ if (!r || typeof r !== "object" || r.study_date === void 0) return;
4906
+ const before = String(r.study_date ?? "").trim();
4907
+ if (!before) return;
4908
+ const after = normDateRange(before);
4909
+ if (!after) {
4910
+ warnings.push(`\u65E5\u671F\u533A\u95F4\u65E0\u6CD5\u8BC6\u522B\uFF0C\u5DF2\u8DF3\u8FC7\uFF1AacademicInformations[${i}].study_date = \u300C${before}\u300D`);
4911
+ r.study_date = "";
4912
+ } else {
4913
+ if (after !== before) warnings.push(`\u65E5\u671F\u5DF2\u89C4\u8303\u5316\uFF1AacademicInformations[${i}].study_date \u300C${before}\u300D\u2192\u300C${after}\u300D`);
4914
+ r.study_date = after;
4915
+ }
4916
+ });
4917
+ }
4918
+ for (const key of ["jobInformations", "workExperiences", "projectExperiences"]) {
4919
+ const arr = input[key];
4920
+ if (!Array.isArray(arr)) continue;
4921
+ arr.forEach((r, i) => {
4922
+ if (!r || typeof r !== "object") return;
4923
+ if (r.start_date !== void 0 && r.start_date !== null) r.start_date = one(`${key}[${i}].start_date`, r.start_date, false);
4924
+ if (r.end_date !== void 0 && r.end_date !== null) r.end_date = one(`${key}[${i}].end_date`, r.end_date, true);
4925
+ });
4926
+ }
4927
+ for (const [key, field] of [["internshipExperiences", "entry_time"], ["awardExperiences", "award_date"]]) {
4928
+ const arr = input[key];
4929
+ if (!Array.isArray(arr)) continue;
4930
+ arr.forEach((r, i) => {
4931
+ if (!r || typeof r !== "object") return;
4932
+ if (r[field] !== void 0 && r[field] !== null) r[field] = one(`${key}[${i}].${field}`, r[field], false);
4933
+ });
4934
+ }
4935
+ }
4672
4936
  async function resolveSubTableMeta(env, formId) {
4673
4937
  let data = null;
4674
4938
  try {
@@ -4996,6 +5260,7 @@ function str(value) {
4996
5260
  }
4997
5261
  async function buildImportPlan(env, cache, args) {
4998
5262
  const warnings = [];
5263
+ normalizeImportDates(args, warnings);
4999
5264
  const talent = cache.forms.talent_pool;
5000
5265
  const objId = talent?.objId;
5001
5266
  const formId = talent?.formId || objId;
@@ -5203,7 +5468,7 @@ var candidateImportPrepare = {
5203
5468
  telephone: plan.mobile
5204
5469
  }
5205
5470
  },
5206
- 10 * 60 * 1e3
5471
+ CONTINUATION_TTL_MS
5207
5472
  );
5208
5473
  return ehrSuccess("ehr.recruit.candidate.import.prepare", {
5209
5474
  status: "AWAITING_CONFIRMATION",
@@ -5220,7 +5485,7 @@ var candidateImportPrepare = {
5220
5485
  },
5221
5486
  ...tagCheck ? { tagCheck } : {},
5222
5487
  continuation,
5223
- expiresInSeconds: 600
5488
+ expiresInSeconds: CONTINUATION_TTL_SECONDS
5224
5489
  });
5225
5490
  }
5226
5491
  };
@@ -5308,18 +5573,66 @@ var candidateImportApply = {
5308
5573
  const batchNote = batchOutcome.note;
5309
5574
  const baseUrl = session.baseUrl.replace(/\/+$/, "");
5310
5575
  const extra = String(cache.selfUse) === "1" ? "&recruitType=useSelf" : "";
5311
- const talentCardUrl = cache.ebdDetailPageId ? `${baseUrl}/sp/ebdpage/view/${cache.ebdDetailPageId}?talentId=${talentId}${extra}` : null;
5576
+ const talentObjId = String(cache.forms?.talent_pool?.objId || cache.forms?.talent?.objId || "");
5577
+ const talentCardUrl = cache.ebdDetailPageId ? `${baseUrl}/sp/ebdpage/view/${cache.ebdDetailPageId}?talentId=${talentId}${extra}` : talentObjId ? `${baseUrl}/sp/ebdfpage/card/0/${talentObjId}/${talentId}` : null;
5312
5578
  const talentListId = cache.lists.talent?.listId;
5313
- const talentListLocateUrl = talentListId ? `${baseUrl}/sp/ebdfpage/list/${talentListId}?talentId=${talentId}${extra}` : null;
5579
+ const talentListLocateUrl = talentListId ? `${baseUrl}/sp/ebdfpage/list/${talentListId}` : null;
5314
5580
  const warnings = [...payload.warnings || []];
5315
5581
  if (batchNote) warnings.push(batchNote);
5582
+ let detailsState = "complete";
5583
+ const expectedDetailRows = Object.values(payload.subStats || {}).reduce(
5584
+ (sum, n) => sum + Number(n || 0),
5585
+ 0
5586
+ );
5587
+ if (expectedDetailRows > 0) {
5588
+ try {
5589
+ const snapshot = await env.host.request({
5590
+ path: "/api/ebuilder/form/form/core/getFormDataAndLayout",
5591
+ method: "POST",
5592
+ body: {
5593
+ terminalType: "PC",
5594
+ dataId: talentId,
5595
+ formId,
5596
+ module: "ebuilderform",
5597
+ newLayout: true,
5598
+ dataCrossLayout: false,
5599
+ permissionId: "",
5600
+ allReadOnly: true,
5601
+ initialDatas: [],
5602
+ dynamicData: false,
5603
+ cost: false,
5604
+ customParam: { objId, dataId: talentId }
5605
+ },
5606
+ operation: "ehr.recruit.candidate.import.apply"
5607
+ });
5608
+ const detailData = snapshot?.data?.formData?.dataDetails || [];
5609
+ const seenRows = {};
5610
+ for (const d of detailData) {
5611
+ if (!d?.subFormId) continue;
5612
+ const key = String(d.subFormId);
5613
+ (seenRows[key] = seenRows[key] || /* @__PURE__ */ new Set()).add(String(d.dataIndex));
5614
+ }
5615
+ const gotRows = Object.values(seenRows).reduce((sum, set) => sum + set.size, 0);
5616
+ if (gotRows < expectedDetailRows) {
5617
+ detailsState = "missing";
5618
+ warnings.push(
5619
+ `\u660E\u7EC6\u884C\u672A\u5B8C\u6574\u843D\u5E93\uFF08\u671F\u671B ${expectedDetailRows} \u884C\uFF0C\u8BFB\u56DE ${gotRows} \u884C\uFF09\uFF1A\u4E3B\u8868\u5DF2\u5199\u5165\uFF0C\u8BF7\u6838\u5BF9\u540E\u8865\u9F50\u660E\u7EC6`
5620
+ );
5621
+ }
5622
+ } catch (error) {
5623
+ detailsState = "unverified";
5624
+ warnings.push(`\u660E\u7EC6\u8BFB\u56DE\u6821\u9A8C\u5931\u8D25\uFF08\u65E0\u6CD5\u786E\u8BA4\u660E\u7EC6\u662F\u5426\u843D\u5E93\uFF09\uFF1A${error?.message || "\u672A\u77E5\u9519\u8BEF"}`);
5625
+ }
5626
+ }
5316
5627
  return ehrSuccess("ehr.recruit.candidate.import.apply", {
5317
- result: "success",
5628
+ result: detailsState === "complete" ? "success" : "partial",
5629
+ detailsState,
5318
5630
  talentId,
5319
5631
  candidateName: payload.candidateName,
5320
5632
  telephone: payload.telephone,
5321
5633
  mainTableFields: Object.keys(mainTable).length,
5322
5634
  detailRows: payload.subStats || void 0,
5635
+ detailRowsExpected: expectedDetailRows || void 0,
5323
5636
  attachment: uploaded ? { name: uploaded.name, size: uploaded.size } : null,
5324
5637
  batch: { ok: batchOk, note: batchNote },
5325
5638
  labelMatch,
@@ -5682,6 +5995,7 @@ async function executeAndPrint(ctx, operation, input) {
5682
5995
  });
5683
5996
  ctx.output.write(successEnvelope(operation, result), { json: true });
5684
5997
  } catch (error) {
5998
+ reportPlatformError(error);
5685
5999
  console.error(JSON.stringify(failureEnvelope(error), null, 2));
5686
6000
  process.exitCode = isCliError(error) ? error.exitCode : 1 /* GeneralError */;
5687
6001
  }
@@ -2,9 +2,9 @@ import { createRequire as __esbuildCreateRequire } from 'node:module';
2
2
  const require = __esbuildCreateRequire(import.meta.url);
3
3
  import {
4
4
  hrmEmployeeOperations
5
- } from "./chunk-NOODWMCL.js";
6
- import "./chunk-OOUTBLZ4.js";
7
- import "./chunk-LUSPKZKY.js";
5
+ } from "./chunk-O6CMPO65.js";
6
+ import "./chunk-56EZERK4.js";
7
+ import "./chunk-UG5G54VL.js";
8
8
  import "./chunk-BUSC6UAE.js";
9
9
  export {
10
10
  hrmEmployeeOperations