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
@@ -1,3 +1,4 @@
1
+ import { CONTINUATION_TTL_MS, CONTINUATION_TTL_SECONDS } from '../../../core/continuation-ttl.js';
1
2
  import { createHash } from 'node:crypto';
2
3
  import { ehrConfirmationError, ehrValidationError } from '../errors.js';
3
4
  import { WRITE, SCHEMA_ID, ehrSuccess, schemaOf, } from './types.js';
@@ -18,29 +19,38 @@ import { getDsOptions, getFormDataRecord, resolvePersonId, saveFormData, toSubmi
18
19
  * - 招聘人数 recruit_count=1、薪酬月份数 number_of_pay_months=12
19
20
  * - 薪酬类型 salary_type=月薪、招聘方式 recruit_type=社会招聘(ds/options)
20
21
  * - 招聘负责人 / 用人经理 = 当前登录用户
21
- * - 职位属性/序列/学历/工作年限/工作地点/薪酬上下限/招聘流程 = **取环境内已有职位记录的值**
22
+ * - 职位属性/序列/学历/工作年限/薪酬上下限/招聘流程 = **取环境内已有职位记录的值**
22
23
  * ("默认值 = 系统现成值",保证引用有效;取不到则跳过并在摘要中标注)
24
+ * - 工作地点 work_location = 「办公地点」列表里启用状态的默认详细地址(**不参与继承**,id 运行时解析)
23
25
  */
24
26
  const TEXT_KEYS = ['position_name'];
25
27
  const MTEXT_KEYS = ['position_duty', 'work_request'];
26
28
  const ASSOC_KEYS = ['demand'];
27
29
  const PERSON_DEFAULT_KEYS = ['recr_principal', 'employ_manager'];
30
+ // 🔴 薪资(salary_min / salary_max)必须沿用现值,不能留空:
31
+ // 这两个字段是**表单必填项**,不传就会导致后端必填校验失败、整个建职位流程直接报错。
32
+ // 但历史职位薪资确实可能是脏数据(实测抓到过 300 元月薪),因此不静默使用——
33
+ // 通过 summary.inheritedFromRef 逐项暴露给用户核对,并对明显偏低的值追加 inheritedSalaryWarnings 提示。
28
34
  const REF_COPY_KEYS = [
29
35
  'position_nature',
30
36
  'job_category',
31
37
  'education',
32
38
  'work_years',
33
- 'work_location',
34
39
  'salary_min',
35
40
  'salary_max',
36
41
  'recruit_flow',
37
42
  ];
43
+ // 默认办公地点用详细地址名称声明,不写死记录 id:运行时到「办公地点」列表按「启用」状态精确解析。
44
+ // work_location 已从 REF_COPY_KEYS 移除——继承会把 detail_location 为「1」的脏地点带进新职位
45
+ // (2026-11-06 真机实测)。
46
+ const DEFAULT_WORK_LOCATION = '浦江镇三鲁公路3419号泛微软件园';
38
47
  const TEXT_DEFAULTS = { recruit_count: '1', number_of_pay_months: '12' };
39
48
  const OPTION_DEFAULTS = { salary_type: '月薪', recruit_type: '社会招聘', status: '招聘中' };
40
49
  /** 显式入参 → 职位字段 dataKey 与取值类别(逐字段声明,避免用通用 payload 包裹)。 */
41
50
  const SET_FIELDS = [
42
51
  { arg: 'education', key: 'education', kind: 'dict', label: '学历要求(按数据字典名称)' },
43
52
  { arg: 'workYears', key: 'work_years', kind: 'dict', label: '工作年限(按数据字典名称)' },
53
+ { arg: 'workLocation', key: 'work_location', kind: 'assoc', label: '工作地点(办公地点名称/详细地址,如「上海」或完整地址)' },
44
54
  { arg: 'jobCategory', key: 'job_category', kind: 'dict', label: '职位类别(按数据字典名称)' },
45
55
  { arg: 'positionNature', key: 'position_nature', kind: 'dict', label: '职位属性(按数据字典名称)' },
46
56
  { arg: 'salaryType', key: 'salary_type', kind: 'option', label: '薪酬类型(月薪/年薪等)' },
@@ -95,6 +105,176 @@ async function fetchReferenceDetails(env, cache, objId, formId) {
95
105
  return [];
96
106
  }
97
107
  }
108
+ const WORK_PLACE_NAMES = ['办公地点', '工作地点'];
109
+ /** 「办公地点」菜单定位:三级来源(lists.all_search → cache.menus(若存在)→ allMenus 接口),不依赖单一缓存键。
110
+ * 背景同 recruit-stage:原实现直接读 cache.menus,而该环境缓存没有 menus 字段 → 恒取不到 → 工作地点永远写不进去。 */
111
+ async function findWorkPlaceMenu(env, cache) {
112
+ const ok = (m) => !!(m && m.listId);
113
+ const pick = (list) => {
114
+ const hit = list.find((m) => ok(m) && WORK_PLACE_NAMES.some((n) => String(m.menuName || '').includes(n)));
115
+ return hit ? hit : null;
116
+ };
117
+ // ① 环境缓存 all_search(与面试数字人菜单同一模式)
118
+ const hit1 = pick((cache.lists?.all_search || []));
119
+ if (hit1)
120
+ return hit1;
121
+ // ② legacy menus(部分环境可能有)
122
+ const hit2 = pick((cache.menus || []));
123
+ if (hit2)
124
+ return hit2;
125
+ // ③ allMenus 接口兜底
126
+ try {
127
+ const r = (await env.host.request({
128
+ path: '/api/cusapp/app/allMenus',
129
+ query: { isFront: 1, appId: String(cache.appId || ''), terminalType: 'PC' },
130
+ }));
131
+ const flat = [];
132
+ (function walk(nodes) {
133
+ for (const n of nodes || []) {
134
+ if (n && typeof n === 'object') {
135
+ flat.push(n);
136
+ walk(n.children || n.childs);
137
+ }
138
+ }
139
+ })((r?.data?.cusAppMenus || r?.data));
140
+ return pick(flat);
141
+ }
142
+ catch {
143
+ return null;
144
+ }
145
+ }
146
+ // 仅进程内 memo(不落盘):记录 id 与「启用」状态 optionId 一律运行时从列表解析。
147
+ const workPlaceMemo = new Map();
148
+ function stripHtml(s) {
149
+ return String(s ?? '').replace(/<[^>]*>/g, '').trim();
150
+ }
151
+ function parseSpans(raw) {
152
+ try {
153
+ const v = Array.isArray(raw) ? raw : JSON.parse(String(raw || '[]'));
154
+ return Array.isArray(v) ? v : [];
155
+ }
156
+ catch {
157
+ return [];
158
+ }
159
+ }
160
+ /** 「启用」判定只看服务端翻译文本,不写死 optionId(跨环境会变)。 */
161
+ function isEnabledText(s) {
162
+ const t = stripHtml(s);
163
+ return t.includes('启用') && !t.includes('禁用');
164
+ }
165
+ /** 拉取「办公地点」列表并按 place_status=启用 过滤;状态信息缺失时不过滤并依赖精确地址匹配。 */
166
+ async function loadWorkPlaces(env, cache) {
167
+ const menu = await findWorkPlaceMenu(env, cache);
168
+ if (!menu?.listId)
169
+ return [];
170
+ const key = String(cache.appId || '') + '|' + menu.listId;
171
+ const cached = workPlaceMemo.get(key);
172
+ if (cached)
173
+ return cached;
174
+ let pObj = '';
175
+ try {
176
+ const t = (await env.host.request({
177
+ path: '/api/ebuilder/form/obj/getObjsByTag',
178
+ query: { appId: String(cache.appId || ''), tag: 'uf_rcrt_work_place' },
179
+ }));
180
+ const d = t?.data;
181
+ if (Array.isArray(d) && d[0])
182
+ pObj = String(d[0].id || '');
183
+ }
184
+ catch { /* tag 未注册:用菜单节点兜底 */ }
185
+ if (!pObj)
186
+ pObj = String(menu.objId || '');
187
+ if (!pObj)
188
+ return [];
189
+ const pageSize = 200;
190
+ const rawRows = [];
191
+ const dispRows = [];
192
+ for (let page = 1; page <= 5; page++) {
193
+ const body = buildListBody({
194
+ listId: menu.listId,
195
+ cusMenuId: menu.cusMenuId,
196
+ menuName: menu.menuName || '办公地点',
197
+ title: menu.menuName || '办公地点',
198
+ current: page,
199
+ pageSize,
200
+ });
201
+ const r = (await env.host.request({
202
+ path: `/api/ebuilder/form/list/getListDatas?passid=${pObj}&cid=${pObj}`,
203
+ body,
204
+ headers: { ebBusinessId: menu.listId },
205
+ }));
206
+ const batch = (r?.data?.data || r?.data?.displayData || []);
207
+ rawRows.push(...batch);
208
+ dispRows.push(...(r?.data?.displayData || []));
209
+ if (batch.length < pageSize)
210
+ break; // 服务端 total/hasMore 不可信,唯一可靠判据是分页本身
211
+ }
212
+ const enabledStatusIds = new Set();
213
+ const enabledRowIds = new Set();
214
+ for (const d of dispRows) {
215
+ const rid = String(d?.form_data_id || d?.id || '');
216
+ if (isEnabledText(d?.place_status) && rid)
217
+ enabledRowIds.add(rid);
218
+ for (const s of parseSpans(d?.place_statusSpan)) {
219
+ if (isEnabledText(s?.name) && s?.id)
220
+ enabledStatusIds.add(String(s.id));
221
+ }
222
+ }
223
+ const statusFiltered = enabledRowIds.size > 0 || enabledStatusIds.size > 0;
224
+ const rows = rawRows
225
+ .filter((x) => !statusFiltered
226
+ || enabledRowIds.has(String(x?.form_data_id || x?.id || ''))
227
+ || enabledStatusIds.has(String(x?.place_status || '')))
228
+ .map((x) => ({
229
+ id: String(x?.form_data_id || x?.id || ''),
230
+ name: String(x?.name || ''),
231
+ detail: String(x?.detail_location || ''),
232
+ area: String(x?.area_text || ''),
233
+ }))
234
+ .filter((x) => !!x.id);
235
+ workPlaceMemo.set(key, rows);
236
+ return rows;
237
+ }
238
+ /** 精确匹配优先;包含匹配要求地址文本足够长且非纯数字,避免把内容写成「1」的脏地点选中。 */
239
+ function matchWorkPlace(rows, value) {
240
+ const v = String(value).trim();
241
+ if (!v || !rows.length)
242
+ return null;
243
+ const exact = rows.find((r) => r.detail === v) || rows.find((r) => r.name === v);
244
+ if (exact)
245
+ return exact;
246
+ const valid = (s) => s.length >= 4 && !/^\d+$/.test(s);
247
+ return rows.find((r) => (r.detail.includes(v) && valid(r.detail))
248
+ || (r.name.includes(v) && valid(r.name))
249
+ || (r.area.includes(v) && valid(r.area))
250
+ || (v.includes(r.detail) && valid(r.detail))) || null;
251
+ }
252
+ /** 工作地点:按名称/详细地址/区域文本解析「办公地点」记录 id(只匹配启用记录);解析不到返回 null,不臆造 id。 */
253
+ async function resolveWorkLocation(env, cache, value) {
254
+ if (!String(value).trim())
255
+ return null;
256
+ const hit = matchWorkPlace(await loadWorkPlaces(env, cache), value);
257
+ return hit ? { id: hit.id, name: hit.detail || hit.name || String(value) } : null;
258
+ }
259
+ /** 默认办公地点:按详细地址在启用列表中精确解析 id,解析不到返回 null(不写、不继承)。 */
260
+ async function resolveDefaultWorkLocation(env, cache) {
261
+ return resolveWorkLocation(env, cache, DEFAULT_WORK_LOCATION);
262
+ }
263
+ /** 从提交 detail 取可读值(用于 summary 里点名「继承来的值」) */
264
+ function detailDisplayValue(detail) {
265
+ if (!detail)
266
+ return '';
267
+ const d = detail;
268
+ if (d.content !== undefined && d.content !== null)
269
+ return String(d.content);
270
+ if (Array.isArray(d.dataOptions) && d.dataOptions[0]) {
271
+ const o = d.dataOptions[0];
272
+ return String(o.content ?? o.optionId ?? '');
273
+ }
274
+ if (d.dataText?.content !== undefined)
275
+ return String(d.dataText.content).replace(/<[^>]+>/g, '').slice(0, 60);
276
+ return '';
277
+ }
98
278
  async function buildPositionPlan(env, cache, args) {
99
279
  const form = cache.forms.position_manage;
100
280
  const objId = form?.objId;
@@ -156,7 +336,16 @@ async function buildPositionPlan(env, cache, args) {
156
336
  continue;
157
337
  }
158
338
  if (field.kind === 'text' || field.kind === 'number') {
159
- put({ formField: { id: fieldId }, content: value });
339
+ // 薪资单位是千元(页面 15.00 = 15K);显式入参按「元」传,换算后再写;继承值不在此路径。
340
+ let out = String(value);
341
+ if (field.key === 'salary_min' || field.key === 'salary_max') {
342
+ const n = Number(String(value).replace(/,/g, ''));
343
+ if (Number.isFinite(n) && n > 0) {
344
+ const k = n / 1000;
345
+ out = String(Number.isInteger(k) ? k : Number(k.toFixed(3)));
346
+ }
347
+ }
348
+ put({ formField: { id: fieldId }, content: out });
160
349
  applied.push(`${field.key}=${value}`);
161
350
  }
162
351
  else if (field.kind === 'option') {
@@ -169,6 +358,15 @@ async function buildPositionPlan(env, cache, args) {
169
358
  put({ formField: { id: fieldId }, dataOptions: [{ optionId: String(optionId), content: value }] });
170
359
  applied.push(`${field.key}=${value}`);
171
360
  }
361
+ else if (field.kind === 'assoc') {
362
+ const loc = await resolveWorkLocation(env, cache, value);
363
+ if (!loc) {
364
+ skipped.push(`${field.key}=${value}(未匹配到「办公地点」记录,已跳过)`);
365
+ continue;
366
+ }
367
+ put({ formField: { id: fieldId }, dataOptions: [{ optionId: loc.id, content: loc.name }] });
368
+ applied.push(`${field.key}=${value}`);
369
+ }
172
370
  else if (field.kind === 'dict') {
173
371
  const ids = cache.dict.by_name[value] || [];
174
372
  const unique = [...new Set(ids.map(String))];
@@ -234,9 +432,35 @@ async function buildPositionPlan(env, cache, args) {
234
432
  missingRef.push(key);
235
433
  }
236
434
  }
435
+ // ⑥ 工作地点默认值:不再从在册职位继承(实测会带出 detail_location 为「1」的脏地点),
436
+ // 改为在「办公地点」列表按启用状态 + 详细地址精确解析;解析不到则不写并点名。
437
+ let workLocationDefault = null;
438
+ let workLocationWarning = null;
439
+ if (!has('work_location') && fid('work_location')) {
440
+ const loc = await resolveDefaultWorkLocation(env, cache).catch(() => null);
441
+ if (loc) {
442
+ put({ formField: { id: fid('work_location') }, dataOptions: [{ optionId: loc.id, content: loc.name }] });
443
+ workLocationDefault = loc.name;
444
+ }
445
+ else {
446
+ workLocationWarning = `未在「办公地点」列表找到启用状态的默认地点「${DEFAULT_WORK_LOCATION}」,本次不写 work_location;请用 workLocation 显式指定`;
447
+ }
448
+ }
237
449
  const inverse = {};
238
450
  for (const [dataKey, fieldId] of Object.entries(fields))
239
451
  inverse[String(fieldId)] = dataKey;
452
+ // 继承来的薪资若明显偏低(历史脏数据,实测出现过 300 元月薪),额外点名提示。
453
+ // 不阻断提交(薪资是必填项,阻断等于无法建档),但要求 Agent 在确认摘要里明确提示用户核对。
454
+ const inheritedSalaryWarnings = [];
455
+ for (const key of ['salary_min', 'salary_max']) {
456
+ if (!inherited.includes(key))
457
+ continue;
458
+ const raw = detailDisplayValue(refMap.get(String(fid(key))));
459
+ const num = Number(String(raw).replace(/[^\d.]/g, ''));
460
+ if (raw && Number.isFinite(num) && num > 0 && num < 1000) {
461
+ inheritedSalaryWarnings.push(`${key} 继承值「${raw}」明显偏低(疑历史脏数据),请人工核对后再提交`);
462
+ }
463
+ }
240
464
  return {
241
465
  objId,
242
466
  formId,
@@ -250,6 +474,14 @@ async function buildPositionPlan(env, cache, args) {
250
474
  explicitApplied: applied,
251
475
  explicitSkipped: skipped,
252
476
  inheritedFromExistingPosition: inherited,
477
+ // 带值的继承清单:Agent 必须在确认摘要里逐项点名,不得因为它是默认值就略过
478
+ // (工作地点不参与继承,已改为启用办公地点列表精确解析)。
479
+ inheritedFromRef: inherited.length
480
+ ? inherited.map((k) => ({ field: k, value: detailDisplayValue(refMap.get(String(fid(k)))) }))
481
+ : undefined,
482
+ inheritedSalaryWarnings: inheritedSalaryWarnings.length ? inheritedSalaryWarnings : undefined,
483
+ workLocationDefault: workLocationDefault || undefined,
484
+ workLocationWarning: workLocationWarning || undefined,
253
485
  noReferenceValue: missingRef,
254
486
  principalDefault: session.userId ? '当前登录用户' : '未解析到当前用户',
255
487
  },
@@ -283,13 +515,13 @@ const positionCreatePrepare = {
283
515
  userId: session.userId,
284
516
  payload: { objId: plan.objId, formId: plan.formId, positionName: String(args.positionName).trim(), dataDetails: plan.dataDetails },
285
517
  fingerprint: fingerprint({ objId: plan.objId, dataDetails: plan.dataDetails }),
286
- }, 10 * 60 * 1000);
518
+ }, CONTINUATION_TTL_MS);
287
519
  return ehrSuccess('ehr.recruit.position.create.prepare', {
288
520
  status: 'AWAITING_CONFIRMATION',
289
521
  preview: { action: '生成职位JD并建职位(saveFormData → addPosition)', ...plan.summary },
290
522
  willSubmit: { objId: plan.objId, formId: plan.formId, dataDetails: plan.dataDetails },
291
523
  continuation,
292
- expiresInSeconds: 600,
524
+ expiresInSeconds: CONTINUATION_TTL_SECONDS,
293
525
  });
294
526
  },
295
527
  };
@@ -343,8 +575,9 @@ const positionCreateApply = {
343
575
  const list = cache.lists.position;
344
576
  const baseUrl = session.baseUrl.replace(/\/+$/, '');
345
577
  const cardUrl = `${baseUrl}/sp/ebdfpage/card/0/${payload.objId}/${formDataId}`;
578
+ // 列表只打开列表(2026-11-06 用户定稿);详情单页由 cardUrl 单独给出,不再用「列表+滑出详情」组合地址。
346
579
  const listLocateUrl = list?.listId
347
- ? `${baseUrl}/sp/ebdfpage/list/${list.listId}/card/0/${payload.objId}/${formDataId}/${list.listId}?id=${formDataId}&openSource=field&openSourceId=${formDataId}`
580
+ ? `${baseUrl}/sp/ebdfpage/list/${list.listId}`
348
581
  : null;
349
582
  if (!created) {
350
583
  throw ehrValidationError('position_create_failed', `职位表单已保存(formDataId=${formDataId}),但 addPosition 未返回职位 id:${response?.msg || '未知原因'};请到职位管理核对后再决定是否重试`);
@@ -1,7 +1,7 @@
1
+ import { CONTINUATION_TTL_SECONDS } from '../../../core/continuation-ttl.js';
1
2
  import { createHash } from 'node:crypto';
2
3
  import { ehrConfirmationError, ehrPartialError, ehrValidationError, EhrCliError } from '../errors.js';
3
4
  import { WRITE, ehrSuccess, schemaOf, } from './types.js';
4
- const CONTINUATION_TTL_SECONDS = 600;
5
5
  function fingerprint(value) {
6
6
  return createHash('sha256').update(JSON.stringify(value ?? null)).digest('hex').slice(0, 32);
7
7
  }
@@ -29,29 +29,28 @@ async function requireRecruitCache(env) {
29
29
  return env.recruitContext.load(env.host);
30
30
  }
31
31
  // ── 产物链接(2026-10-29 周军锋要求:写操作完成后自动生成链接返回对话框)──
32
- // URL 模板与 recruit-stage 脚本同源:人才卡片 /sp/ebdpage/view/{ebdDetailPageId}?talentId=(实证);
33
- // 列表滑出 /sp/ebdfpage/list/{listId}/card/0/{objId}/{dataId}/{listId}?id={dataId}&openSource=field&openSourceId={dataId}&openSourceAppId={appId}(面试管理实证,offer/entry 同构未单独实测);
34
- // 列表直开 /sp/ebdfpage/list/{listId}[?talentId=](candidate.import 同构)。全部取自环境缓存,id 缺失返回 null 不编造。
32
+ // URL 模板与 recruit-stage 同源:详情单页 /sp/ebdpage/view/{ebdDetailPageId}?talentId=(实证)或 /sp/ebdfpage/card/0/{objId}/{dataId};
33
+ // 列表 /sp/ebdfpage/list/{listId} —— **只打开列表**(2026-11-06 用户定稿)。
34
+ // 停用旧「列表 + 滑出详情」形态 .../list/{listId}/card/0/{objId}/{dataId}/...:它会在打开列表时一同打开记录详情单页。
35
+ // 详情与列表由两个独立链接分别给出;listId 取环境缓存,id 缺失返回 null 不编造。
35
36
  function recruitTalentCardUrl(cache, baseUrl, talentId) {
36
- if (!cache.ebdDetailPageId || !talentId)
37
- return null;
38
- const extra = String(cache.selfUse) === "1" ? "&recruitType=useSelf" : "";
39
- return `${baseUrl.replace(/\/+$/, "")}/sp/ebdpage/view/${cache.ebdDetailPageId}?talentId=${talentId}${extra}`;
40
- }
41
- function recruitSlideLocateUrl(cache, baseUrl, listKey, formKey, dataId) {
42
- const listId = cache.lists?.[listKey]?.listId;
43
- const objId = cache.forms?.[formKey]?.objId;
44
- if (!listId || !objId || !dataId || !cache.appId)
37
+ if (!talentId)
45
38
  return null;
46
39
  const base = baseUrl.replace(/\/+$/, "");
47
- return `${base}/sp/ebdfpage/list/${listId}/card/0/${objId}/${dataId}/${listId}?id=${dataId}&openSource=field&openSourceId=${dataId}&openSourceAppId=${cache.appId}`;
40
+ if (cache.ebdDetailPageId) {
41
+ const extra = String(cache.selfUse) === "1" ? "&recruitType=useSelf" : "";
42
+ return `${base}/sp/ebdpage/view/${cache.ebdDetailPageId}?talentId=${talentId}${extra}`;
43
+ }
44
+ // 缓存缺页面 id 时退化为 EB 卡片单页,objId 运行时解析,禁止返回 null
45
+ const objId = String(cache.forms?.talent_pool?.objId || cache.forms?.talent?.objId || "");
46
+ return objId ? `${base}/sp/ebdfpage/card/0/${objId}/${talentId}` : null;
48
47
  }
49
- function recruitOpenListUrl(cache, baseUrl, listKey, talentId) {
48
+ /** 只打开列表页:不带 /card/... 段、不带记录 id query,避免一同滑出详情单页。 */
49
+ function recruitOpenListUrl(cache, baseUrl, listKey) {
50
50
  const menu = cache.lists?.[listKey];
51
51
  if (!menu?.listId)
52
52
  return null;
53
- const extra = talentId ? `?talentId=${talentId}${String(cache.selfUse) === "1" ? "&recruitType=useSelf" : ""}` : "";
54
- return `${baseUrl.replace(/\/+$/, "")}/sp/ebdfpage/list/${menu.listId}${extra}`;
53
+ return `${baseUrl.replace(/\/+$/, "")}/sp/ebdfpage/list/${menu.listId}`;
55
54
  }
56
55
  /** 建前查重:按手机号搜人才库(total 恒 0 平台缺陷,以 data.data[] 非空为准)。 */
57
56
  export async function checkDuplicateByMobile(env, cache, mobile) {
@@ -534,7 +533,7 @@ const candidateCreateApply = {
534
533
  initTalentBatch: initMsg,
535
534
  searchHint: `可用 ehr.recruit.candidate.search 按 name=${name} 或 mobile=${mobile} 回查`,
536
535
  talentCardUrl: recruitTalentCardUrl(cache, lease.baseUrl, newId),
537
- talentListLocateUrl: recruitOpenListUrl(cache, lease.baseUrl, 'talent', newId),
536
+ talentListLocateUrl: recruitOpenListUrl(cache, lease.baseUrl, 'talent'),
538
537
  });
539
538
  },
540
539
  };
@@ -986,7 +985,7 @@ const interviewArrangeApply = {
986
985
  time: plan.interviewTime,
987
986
  interviewer: plan.interviewer,
988
987
  talentCardUrl: recruitTalentCardUrl(cache, lease.baseUrl, args.talentId),
989
- interviewLocateUrl: recruitSlideLocateUrl(cache, lease.baseUrl, 'interview', 'interview_plan', planFormId),
988
+ interviewLocateUrl: recruitOpenListUrl(cache, lease.baseUrl, 'interview'),
990
989
  });
991
990
  },
992
991
  };
@@ -16,7 +16,7 @@ import { compact, normalizePaged, toNumber, toPageQuery, toPositiveInt } from '.
16
16
  const RECRUIT_APP_TAG = 'weaver-recruit-service';
17
17
  /** 逻辑名 -> objTag(权威映射,与 _init_env_cache.mjs 一致) */
18
18
  /** 环境缓存结构版本:新增/变更解析字段(如 2026-11-04 补 candidate 应聘者列表)时 +1,旧缓存自动失效重建。 */
19
- const RECRUIT_CACHE_VERSION = 1;
19
+ const RECRUIT_CACHE_VERSION = 3;
20
20
  const RECRUIT_TAGS = {
21
21
  talent_pool: 'uf_rcrt_talent_pool',
22
22
  interview_plan: 'uf_rcrt_interview_plan',
@@ -142,22 +142,34 @@ async function fetchFormFields(host, appId, objId) {
142
142
  const fieldId = String(field?.id || '');
143
143
  if (dataKey && fieldId)
144
144
  fmap[dataKey] = fieldId;
145
- if (fieldId && Array.isArray(config.options) && config.options.length) {
145
+ // 🔴 选项映射只针对「值固定」的选择类字段(单选 Select / 开关 Switch)。
146
+ // 关联浏览字段(本环境实测 type=String,如职位 education / job_category / position_nature /
147
+ // work_location、面试 digital_id)config.options 为空,值来自另一张表的记录 id,跨环境必变;
148
+ // 级联 Cascader 同理。**一律不进缓存**,走运行时 browser/字典解析,禁止写死或固化。
149
+ const selectLike = field?.type === 'Select' || field?.type === 'Switch';
150
+ if (selectLike && fieldId && Array.isArray(config.options) && config.options.length) {
146
151
  const map = {};
147
152
  for (const option of config.options) {
148
153
  if (!option || typeof option !== 'object')
149
154
  continue;
150
155
  const name = option.name;
151
- let selectionId = option.selectionId;
156
+ // 🔴 可写值(写进 saveFormData 的 optionId)= value / valueKey,**不是** selectionId。
157
+ // 实测(2026-11-06,www.e-cology.com.cn,均为 Select 字段):两者绝大多数相同,个别选项不同,例:
158
+ // 面试方式「AI面试」selectionId=1274947951008702504(写不进去,后端静默丢弃),
159
+ // valueKey=841052191228968964(正确,与 ds/options 一致);
160
+ // 人才最高学历「博士」selectionId=1073374587183710218,valueKey=0(正确,与 ds/options 一致)。
161
+ // 优先级:value → valueKey → extra.valueKey/value → selectionId/id(旧环境兜底)。
162
+ const scalar = (v) => (typeof v === 'string' || typeof v === 'number') && String(v) !== '' ? String(v) : '';
163
+ let selectionId = scalar(option.value) || scalar(option.valueKey);
152
164
  if (!selectionId && typeof option.extra === 'string') {
153
165
  try {
154
166
  const extra = JSON.parse(option.extra);
155
- selectionId = extra.selectionId || extra.id;
167
+ selectionId = scalar(extra.valueKey) || scalar(extra.value);
156
168
  }
157
169
  catch { /* 坏 extra 回退 */ }
158
170
  }
159
171
  if (!selectionId)
160
- selectionId = option.value || option.valueKey || option.id;
172
+ selectionId = scalar(option.selectionId) || scalar(option.id);
161
173
  if (selectionId && name)
162
174
  map[String(selectionId)] = name;
163
175
  }
@@ -1,3 +1,4 @@
1
+ import { CONTINUATION_TTL_MS } from '../../core/continuation-ttl.js';
1
2
  import { createHmac, randomBytes, timingSafeEqual } from 'node:crypto';
2
3
  import { existsSync } from 'node:fs';
3
4
  import { chmod, mkdir, readFile, writeFile } from 'node:fs/promises';
@@ -35,7 +36,7 @@ function signature(payload, key) {
35
36
  }
36
37
  export function createEsbContinuationSigner(ctx) {
37
38
  return {
38
- async issue(payload, ttlMs = 10 * 60_000) {
39
+ async issue(payload, ttlMs = CONTINUATION_TTL_MS) {
39
40
  const issuedAt = Date.now();
40
41
  const body = encode({ ...payload, issuedAt, expiresAt: issuedAt + ttlMs });
41
42
  const sig = signature(body, await loadKey(ctx));
@@ -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 { createEsbContinuationSigner } from './continuation.js';
4
5
  import { createEsbHost } from './host.js';
5
6
  import { esbManifest } from './manifest.js';
@@ -85,6 +86,7 @@ async function executeAndPrint(ctx, operation, input) {
85
86
  ctx.output.write(successEnvelope(operation, result), { json: true });
86
87
  }
87
88
  catch (error) {
89
+ reportPlatformError(error);
88
90
  console.error(JSON.stringify(failureEnvelope(error), null, 2));
89
91
  process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
90
92
  }
@@ -1,3 +1,4 @@
1
+ import { CONTINUATION_TTL_SECONDS } from '../../../core/continuation-ttl.js';
1
2
  import { esbSuccess } from './types.js';
2
3
  import { esbValidationError } from '../errors.js';
3
4
  import { isEsbFlowUnavailable } from '../host.js';
@@ -51,7 +52,7 @@ export const esbTriggerHandlers = {
51
52
  requestPreview: payload,
52
53
  templateFields,
53
54
  continuation: token,
54
- expiresInSeconds: 600,
55
+ expiresInSeconds: CONTINUATION_TTL_SECONDS,
55
56
  }, { status: 'PREPARED' }, warnings);
56
57
  },
57
58
  'esb.trigger.apply': async (input, { host, continuation }) => {
@@ -1,3 +1,4 @@
1
+ import { CONTINUATION_TTL_MS } from '../../core/continuation-ttl.js';
1
2
  import { createHmac, randomBytes, timingSafeEqual } from 'node:crypto';
2
3
  import { existsSync } from 'node:fs';
3
4
  import { chmod, mkdir, readFile, writeFile } from 'node:fs/promises';
@@ -35,7 +36,7 @@ function signature(payload, key) {
35
36
  }
36
37
  export function createFnaContinuationSigner(ctx) {
37
38
  return {
38
- async issue(payload, ttlMs = 10 * 60_000) {
39
+ async issue(payload, ttlMs = CONTINUATION_TTL_MS) {
39
40
  const issuedAt = Date.now();
40
41
  const body = encode({ ...payload, issuedAt, expiresAt: issuedAt + ttlMs });
41
42
  const sig = signature(body, await loadKey(ctx));
@@ -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 { createFnaContinuationSigner } from './continuation.js';
4
5
  import { createFnaHost } from './host.js';
5
6
  import { fnaManifest } from './manifest.js';
@@ -84,6 +85,7 @@ async function executeAndPrint(ctx, operation, input) {
84
85
  ctx.output.write(successEnvelope(operation, result), { json: true });
85
86
  }
86
87
  catch (error) {
88
+ reportPlatformError(error);
87
89
  console.error(JSON.stringify(failureEnvelope(error), null, 2));
88
90
  process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
89
91
  }
@@ -1,7 +1,7 @@
1
+ import { CONTINUATION_TTL_SECONDS } from '../../../core/continuation-ttl.js';
1
2
  import { fnaPartialError, fnaValidationError, isFnaNetworkError } from '../errors.js';
2
3
  import { fnaSuccess, READ, schemaOf, SCHEMA_INTEGER_POSITIVE, WRITE } from './types.js';
3
4
  import { compact, fingerprint, normalizeWeaTable, requireConfirm, requireRequestIds, toPositiveInt, unwrapData, verifyLease } from './shared.js';
4
- const CONTINUATION_TTL_SECONDS = 600;
5
5
  /** 发票核销公开字段(InvWriteOffSearchVo 非分页部分)。 */
6
6
  const WRITE_OFF_FILTER_FIELDS = {
7
7
  invoiceStatus: {
@@ -1,7 +1,7 @@
1
+ import { CONTINUATION_TTL_SECONDS } from '../../../core/continuation-ttl.js';
1
2
  import { fnaPartialError, fnaValidationError, isFnaNetworkError } from '../errors.js';
2
3
  import { fnaSuccess, READ, schemaOf, SCHEMA_INTEGER_POSITIVE, SCHEMA_STRING_NONEMPTY, WRITE } from './types.js';
3
4
  import { compact, fingerprint, normalizeWeaTable, requireConfirm, requireRemindRows, summarizeRemindRows, toPositiveInt, unwrapData, verifyLease } from './shared.js';
4
- const CONTINUATION_TTL_SECONDS = 600;
5
5
  const LOAN_MENU_FIELDS = {
6
6
  menuCode: { ...SCHEMA_STRING_NONEMPTY, description: '菜单编码,如 fesx_fna_borrowingManagement(与环境核对)' },
7
7
  permissionSetCode: { ...SCHEMA_STRING_NONEMPTY, description: '权限集编码,如 fesx_fna_borrowingManagement.default(与环境核对)' },
@@ -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 { createHrmHost } from './host.js';
4
5
  import { hrmManifest } from './manifest.js';
5
6
  import { executeHrmOperation } from './operations.js';
@@ -129,6 +130,7 @@ async function executeAndPrint(ctx, operation, input) {
129
130
  ctx.output.write(successEnvelope(operation, result), { json: true });
130
131
  }
131
132
  catch (error) {
133
+ reportPlatformError(error);
132
134
  console.error(JSON.stringify(failureEnvelope(error), null, 2));
133
135
  process.exitCode = isCliError(error) ? error.exitCode : ExitCode.GeneralError;
134
136
  }
@@ -172,6 +172,9 @@ function resolveEmployeeCondition(args) {
172
172
  return { field: explicit, value: String(args[explicit]).trim() };
173
173
  const keyword = args.keyword === undefined ? '' : String(args.keyword).trim();
174
174
  if (!keyword) {
175
+ // all:true 拉全员(分页/目录缓存用),不需要收敛条件(2026-11-06)
176
+ if (args.all === true)
177
+ return { field: '', value: '' };
175
178
  throw hrmValidationError('empty_condition', '员工查询必须携带至少一个收敛条件:keyword(自动推断)或 username/job_num/mobile/email 之一');
176
179
  }
177
180
  const inferred = inferEmployeeField(keyword);
@@ -202,6 +205,7 @@ const employeeQuery = {
202
205
  email: { type: 'string', description: '邮箱(模糊匹配)' },
203
206
  status: { type: 'array', items: { type: 'string', enum: [...EMPLOYEE_STATUS] }, description: '默认 ["normal"] 在职;["6"] 离职。不能单独作为收敛条件' },
204
207
  full: { type: 'boolean', description: '默认 false:每行只回人员信息(id/name/department/position/statusCode/link);true:回完整行(另含 userid/cid/mobile/departmentId/deptLink)' },
208
+ all: { type: 'boolean', description: 'true = 自动翻页拉全量(最多 50 页);结果多时建议直接传,避免只拿到第一页' },
205
209
  ...SCHEMA_PAGE,
206
210
  }),
207
211
  handler: async (args, { host }) => {
@@ -217,7 +221,7 @@ const employeeQuery = {
217
221
  const formDatas = {
218
222
  ...memberFormDatasBase(),
219
223
  status: [{ statusSelect: statusText }],
220
- [field]: [{ [`${field}Opt`]: 'in', [`${field}Input`]: value }],
224
+ ...(field !== '' ? { [field]: [{ [`${field}Opt`]: 'in', [`${field}Input`]: value }] } : {}),
221
225
  };
222
226
  const body = {
223
227
  ...browserBaseBody(),
@@ -236,6 +240,30 @@ const employeeQuery = {
236
240
  if (pageSize !== undefined)
237
241
  body.pageSize = pageSize;
238
242
  const session = await host.getSession();
243
+ // all:true → 自动翻页拉全量(2026-11-06 用户要求:所有分页都能翻,别只给第一页)
244
+ if (args.all === true) {
245
+ const collected = [];
246
+ let pages = 0;
247
+ const size = pageSize ?? 100;
248
+ for (let p = 1; p <= 200; p += 1) { // 上限 200 页(本租户约 5000 人,100/页 → 50 页,留足余量)
249
+ const resp = await host.request({
250
+ method: 'POST',
251
+ path: '/api/hrm/common/browser/data/resource',
252
+ body: { ...body, current: p, pageSize: size },
253
+ });
254
+ const pageRows = resp?.data?.data ?? [];
255
+ pages = p;
256
+ if (pageRows.length === 0)
257
+ break;
258
+ collected.push(...pageRows);
259
+ if (pageRows.length < size)
260
+ break;
261
+ }
262
+ const allSession = await host.getSession();
263
+ const allBaseUrl = String(allSession.baseUrl ?? '').replace(/\/+$/g, '');
264
+ const allRows = collected.map((r) => (args.full === true ? formatMember(r, allBaseUrl) : formatQueryRowBrief(r, allBaseUrl)));
265
+ return hrmSuccess('hrm.employee.query', { rows: allRows, total: allRows.length, pagesFetched: pages, all: true }, { current: 1, pageSize: allRows.length });
266
+ }
239
267
  const baseUrl = session.baseUrl.replace(/\/+$/, '');
240
268
  // 不请求 count 接口(省一次 HTTP 往返);data 接口的 count 字段不可靠(恒 0),
241
269
  // 用返回行数作为 total。收敛条件查询结果通常 < pageSize,行数即总数。
@@ -1,3 +1,4 @@
1
+ import { CONTINUATION_TTL_MS } from '../../core/continuation-ttl.js';
1
2
  import { createHmac, randomBytes, timingSafeEqual } from 'node:crypto';
2
3
  import { existsSync } from 'node:fs';
3
4
  import { chmod, mkdir, readFile, writeFile } from 'node:fs/promises';
@@ -35,7 +36,7 @@ function signature(payload, key) {
35
36
  }
36
37
  export function createImContinuationSigner(ctx) {
37
38
  return {
38
- async issue(payload, ttlMs = 10 * 60_000) {
39
+ async issue(payload, ttlMs = CONTINUATION_TTL_MS) {
39
40
  const issuedAt = Date.now();
40
41
  const body = encode({ ...payload, issuedAt, expiresAt: issuedAt + ttlMs });
41
42
  const sig = signature(body, await loadKey(ctx));