weaver-work-cli 0.1.61 → 0.1.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. package/dist/chunks/{archive-S2VKZWQ3.js → archive-BLDYBZDX.js} +5 -4
  2. package/dist/chunks/{archive-oa-HEDSIUUY.js → archive-oa-3GJ3TWXR.js} +5 -4
  3. package/dist/chunks/{asset-HYH4W357.js → asset-AFXJN4CK.js} +5 -4
  4. package/dist/chunks/{asset-idle-N7REBNGL.js → asset-idle-VUJXWGWJ.js} +5 -4
  5. package/dist/chunks/{attachment-content-VYYA75FR.js → attachment-content-VMJA7NSQ.js} +3 -3
  6. package/dist/chunks/{blog-SLMZZICV.js → blog-EREB35VU.js} +5 -4
  7. package/dist/chunks/{caizhilian-RV43KKBT.js → caizhilian-ATM2JO5S.js} +5 -5
  8. package/dist/chunks/{calendar-DMVZ4OLY.js → calendar-E26ZIH7S.js} +5 -4
  9. package/dist/chunks/{chunk-6XSSAUNW.js → chunk-4OB22YKE.js} +48 -12
  10. package/dist/chunks/{chunk-UBGWIXU3.js → chunk-5CY37VLS.js} +131 -38
  11. package/dist/chunks/{chunk-EGANE35F.js → chunk-6G2JARDK.js} +1 -1
  12. package/dist/chunks/{chunk-WIWDVETN.js → chunk-6VCQLZXE.js} +75 -76
  13. package/dist/chunks/{chunk-E5YD5JWR.js → chunk-BY3WDJO5.js} +1 -1
  14. package/dist/chunks/{chunk-IW7A2IQY.js → chunk-C4YQJFZV.js} +43 -15
  15. package/dist/chunks/{chunk-BQYX2UX5.js → chunk-C5PIGPGX.js} +5 -3
  16. package/dist/chunks/{chunk-UBRWONP4.js → chunk-EOZHSNND.js} +2 -2
  17. package/dist/chunks/{chunk-UQFPF4EX.js → chunk-G3ZM57PD.js} +2 -2
  18. package/dist/chunks/{chunk-XT77MP54.js → chunk-GOBNIGWS.js} +410 -24
  19. package/dist/chunks/{chunk-KY3R42RS.js → chunk-GQK6WLOS.js} +5 -3
  20. package/dist/chunks/{chunk-BIA2NKUG.js → chunk-HEJPVXD3.js} +5 -5
  21. package/dist/chunks/{chunk-ILALC2N6.js → chunk-I4C2KR2G.js} +1 -1
  22. package/dist/chunks/{chunk-YI2YMW5N.js → chunk-IGICM3WJ.js} +2 -2
  23. package/dist/chunks/chunk-IN6NXQ26.js +680 -0
  24. package/dist/chunks/{chunk-VBFBMM7G.js → chunk-LOVAIGM2.js} +387 -70
  25. package/dist/chunks/{chunk-H6YOMI3U.js → chunk-OMAGCLUE.js} +5 -3
  26. package/dist/chunks/{chunk-VNYOUAWV.js → chunk-QAMIIFP6.js} +11 -11
  27. package/dist/chunks/{chunk-QBDXJS2W.js → chunk-QZYKZ7MQ.js} +16 -8
  28. package/dist/chunks/{chunk-V2LASYKO.js → chunk-RR45ELVE.js} +30 -24
  29. package/dist/chunks/{chunk-NRYDJN4J.js → chunk-RV2JAA5I.js} +89 -8
  30. package/dist/chunks/{chunk-TEZHIB6T.js → chunk-SDPC7BG2.js} +5 -3
  31. package/dist/chunks/{chunk-T2KVJFWJ.js → chunk-SHBDXEUE.js} +4 -7
  32. package/dist/chunks/{chunk-P6TXQK75.js → chunk-THMBDCRA.js} +5 -3
  33. package/dist/chunks/chunk-TJN4PIYO.js +47 -0
  34. package/dist/chunks/{chunk-DTCQFTHW.js → chunk-TNFIUZ4H.js} +3 -3
  35. package/dist/chunks/{chunk-JFAWZX53.js → chunk-UPVAQJKS.js} +282 -131
  36. package/dist/chunks/{chunk-KXJA42EA.js → chunk-WPBZQVLS.js} +1 -1
  37. package/dist/chunks/{conflict-GFJRS6I7.js → conflict-AMNTM3FV.js} +2 -2
  38. package/dist/chunks/{contract-U3ZGNRWB.js → contract-PLO2V2NO.js} +2333 -4426
  39. package/dist/chunks/{cowork-EX7PKIDK.js → cowork-FZAXE6FO.js} +5 -4
  40. package/dist/chunks/{create-flow-EJZD434E.js → create-flow-2DAUN7HU.js} +16 -6
  41. package/dist/chunks/{data-FOODGAMF.js → data-7NXMWET4.js} +3 -3
  42. package/dist/chunks/{ebuilder-form-I2EOKODG.js → ebuilder-form-DEYHX6M7.js} +4 -4
  43. package/dist/chunks/{ehr-TE4RFNID.js → ehr-QQH2DYYA.js} +244 -151
  44. package/dist/chunks/{employee-DR5Y64TI.js → employee-PGMY6NI6.js} +1 -1
  45. package/dist/chunks/{entry-mode-ZOLSXEGX.js → entry-mode-2JTVEKMP.js} +3 -3
  46. package/dist/chunks/{env-TID5NFR6.js → env-2JZMXC6I.js} +2 -2
  47. package/dist/chunks/{esb-7L6MHYLB.js → esb-I5ZFHJUK.js} +8 -8
  48. package/dist/chunks/{factory-OG7BPMH5.js → factory-XIATYHU6.js} +1 -1
  49. package/dist/chunks/{fna-6V2ENR3Y.js → fna-3V2TL6B2.js} +5 -4
  50. package/dist/chunks/{group-chat-5DKPWIHL.js → group-chat-CVYUZCOQ.js} +3 -3
  51. package/dist/chunks/{host-TJ5VVHM7.js → host-4DP7C7YQ.js} +4 -4
  52. package/dist/chunks/{host-3DLYA54R.js → host-4KQCAEWA.js} +4 -4
  53. package/dist/chunks/{host-ONZC6AE7.js → host-4X2F3JPQ.js} +4 -4
  54. package/dist/chunks/{host-OGBHL75G.js → host-BD7NAM33.js} +4 -4
  55. package/dist/chunks/{host-VTPAWDZV.js → host-CBONEAZS.js} +4 -4
  56. package/dist/chunks/{host-GOJHHTPY.js → host-L37QVNIV.js} +4 -4
  57. package/dist/chunks/{hrm-2N7NFQDZ.js → hrm-OL3IKN7C.js} +6 -6
  58. package/dist/chunks/{im-XCH47ZBN.js → im-YXQWUF3R.js} +4 -4
  59. package/dist/chunks/{invoice-XQRKMGNY.js → invoice-4WY32PR2.js} +199 -332
  60. package/dist/chunks/{jiuchuanhui-PL6DRPBM.js → jiuchuanhui-L6SHLONH.js} +5 -4
  61. package/dist/chunks/{lazy-dispatch-UATEN7H7.js → lazy-dispatch-OYE6QV24.js} +5 -5
  62. package/dist/chunks/{mail-Q7Z4CQ4D.js → mail-PZV2KNRU.js} +5 -4
  63. package/dist/chunks/{meeting-5E3BNARL.js → meeting-6SOBCC6N.js} +16 -15
  64. package/dist/chunks/{minute-doc-NXRE5C77.js → minute-doc-KSJSJNOH.js} +4 -4
  65. package/dist/chunks/{okr-3O3XNYOK.js → okr-B76FW5M2.js} +5 -4
  66. package/dist/chunks/{operations-EZWG72FH.js → operations-YOMEGFLV.js} +5 -5
  67. package/dist/chunks/{performance-Y7CPNSOR.js → performance-4VBKUPFO.js} +5 -4
  68. package/dist/chunks/{plan-BLGPZF5M.js → plan-HBNZRQTI.js} +5 -4
  69. package/dist/chunks/{project-6MZMLJMP.js → project-IV6FWK74.js} +5 -4
  70. package/dist/chunks/{reception-F2VT2X52.js → reception-BR5YURT6.js} +3 -3
  71. package/dist/chunks/{recruit-stage-4ETIBMIW.js → recruit-stage-4HQ6OGXT.js} +654 -336
  72. package/dist/chunks/{registry-I4DVPDMU.js → registry-7LICMV5J.js} +12 -12
  73. package/dist/chunks/{registry-3FYSWV3U.js → registry-JFQEFC7E.js} +3 -3
  74. package/dist/chunks/{registry-3UGIWH53.js → registry-JMNOXRST.js} +2 -2
  75. package/dist/chunks/{registry-7RS74TCK.js → registry-MZJQX65Q.js} +5 -5
  76. package/dist/chunks/{room-recommend-GWCVKCXW.js → room-recommend-43GLLE7Y.js} +4 -4
  77. package/dist/chunks/{schedule-6AN63MJQ.js → schedule-ZQ42BEW6.js} +4 -4
  78. package/dist/chunks/{smart-extract-SR4SJJKN.js → smart-extract-QKAEAZGM.js} +3 -3
  79. package/dist/chunks/{workflow-KF7FA2UQ.js → workflow-6HV7H5PC.js} +10 -7
  80. package/dist/index.js +34 -34
  81. package/dist/internal/e10/auth/commands.js +21 -1
  82. package/dist/internal/e10/auth/xiaoe.js +6 -2
  83. package/dist/internal/e10/auth-recovery.js +28 -2
  84. package/dist/internal/e10/request-runtime.js +15 -3
  85. package/dist/internal/e10/request-trace.js +65 -0
  86. package/dist/shortcuts/contract/data/metric-catalog.js +149 -0
  87. package/dist/shortcuts/contract/index.js +14 -39
  88. package/dist/shortcuts/contract/manifest.js +115 -270
  89. package/dist/shortcuts/contract/operations/compare-report.js +437 -0
  90. package/dist/shortcuts/contract/operations/compare.js +2 -0
  91. package/dist/shortcuts/contract/operations/first-screen.js +96 -207
  92. package/dist/shortcuts/contract/operations/flow.js +19 -1
  93. package/dist/shortcuts/contract/operations/{card-ebdf-list.js → ledger-card.js} +98 -25
  94. package/dist/shortcuts/contract/operations/ledger.js +315 -1
  95. package/dist/shortcuts/contract/operations/metrics.js +93 -0
  96. package/dist/shortcuts/contract/operations/modeltext.js +3 -3
  97. package/dist/shortcuts/contract/operations/page.js +8 -4
  98. package/dist/shortcuts/contract/operations/performance.js +53 -0
  99. package/dist/shortcuts/contract/operations/quote-recognize.js +289 -0
  100. package/dist/shortcuts/contract/operations/quote-submit.js +264 -0
  101. package/dist/shortcuts/contract/operations/recommend.js +42 -1
  102. package/dist/shortcuts/contract/operations/registry.js +16 -23
  103. package/dist/shortcuts/contract/operations/{card-risk-report.js → review-report.js} +24 -114
  104. package/dist/shortcuts/contract/operations/review.js +33 -167
  105. package/dist/shortcuts/contract/operations/save-recognize.js +173 -43
  106. package/dist/shortcuts/contract/operations/triage.js +13 -6
  107. package/dist/shortcuts/contract/operations/{template.js → type-clause-read.js} +10 -25
  108. package/dist/shortcuts/contract/operations/upload.js +17 -11
  109. package/dist/shortcuts/contract/prewarm-cache.js +6 -2
  110. package/dist/shortcuts/contract/prewarm.js +33 -23
  111. package/dist/shortcuts/contract/recommend-cache.js +191 -0
  112. package/dist/shortcuts/ehr/operations/recruit-interview-overview.js +85 -62
  113. package/dist/shortcuts/ehr/operations/recruit-position.js +21 -13
  114. package/dist/shortcuts/ehr/operations/recruit-short-cache.js +59 -0
  115. package/dist/shortcuts/ehr/operations/recruit-tag.js +17 -11
  116. package/dist/shortcuts/ehr/operations/recruit-write.js +118 -70
  117. package/dist/shortcuts/ehr/operations/recruit.js +338 -121
  118. package/dist/shortcuts/hrm/operations/employee.js +64 -17
  119. package/dist/shortcuts/hrm/operations/resolve.js +419 -369
  120. package/dist/shortcuts/im/host.js +38 -22
  121. package/dist/shortcuts/invoice/manifest.js +30 -62
  122. package/dist/shortcuts/invoice/operations/registry.js +2 -2
  123. package/dist/shortcuts/invoice/operations/reim-customer.js +111 -0
  124. package/dist/shortcuts/invoice/operations/shared.js +0 -204
  125. package/dist/shortcuts/meeting/operations/eb/conflict.js +60 -2
  126. package/dist/shortcuts/meeting/operations/eb/create-flow.js +116 -7
  127. package/dist/shortcuts/meeting/operations/eb/create-form-link.js +380 -0
  128. package/dist/shortcuts/meeting/operations/eb/index.js +2 -0
  129. package/dist/shortcuts/meeting/operations/eb/room-recommend.js +1 -3
  130. package/dist/shortcuts/recruit-stage/batch-store.js +44 -0
  131. package/dist/shortcuts/recruit-stage/context.js +75 -9
  132. package/dist/shortcuts/recruit-stage/manifest.js +1 -1
  133. package/dist/shortcuts/recruit-stage/operations/jd-create.js +33 -22
  134. package/dist/shortcuts/recruit-stage/operations/list.js +187 -37
  135. package/dist/shortcuts/recruit-stage/operations/registry.js +2 -0
  136. package/dist/shortcuts/recruit-stage/operations/resume-import.js +231 -313
  137. package/dist/shortcuts/recruit-stage/operations/search.js +5 -5
  138. package/dist/shortcuts/recruit-stage/operations/tag.js +286 -0
  139. package/dist/shortcuts/workflow/endpoints.js +2 -0
  140. package/dist/shortcuts/workflow/operations/form.js +12 -15
  141. package/dist/shortcuts/workflow/operations/read.js +8 -8
  142. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoListRows.js +3 -2
  143. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +7 -6
  144. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +4 -3
  145. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.group.js +1 -0
  146. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +33 -6
  147. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.prepareQuery.js +153 -0
  148. package/dist/shortcuts/workflow/operations/todoSmartConvert/workflowClarification.js +232 -0
  149. package/dist/shortcuts/workflow/operations.js +5 -0
  150. package/docs/agent-invoice.md +1 -1
  151. package/docs/contract.md +2 -2
  152. package/docs/e10-auth.md +28 -0
  153. package/docs/ehr.md +1 -1
  154. package/docs/invoice.md +0 -2
  155. package/package.json +1 -1
  156. package/skill-template/domains/yepiaotong.md +0 -1
  157. package/skills/weaver-e10-hrm/SKILL.md +3 -3
  158. package/skills/weaver-e10-hrm/references/employee.md +13 -2
  159. package/skills/weaver-e10-jinchengda/SKILL.md +237 -347
  160. package/skills/weaver-e10-jinchengda/references/contract-agent-entry.md +7 -14
  161. package/skills/weaver-e10-jinchengda/references/contract-ai-assistant.md +21 -12
  162. package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +109 -185
  163. package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +12 -4
  164. package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +28 -20
  165. package/skills/weaver-e10-jinchengda/references/contract-clause-recommender.md +12 -17
  166. package/skills/weaver-e10-jinchengda/references/contract-clause-reference-save.md +7 -13
  167. package/skills/weaver-e10-jinchengda/references/contract-command-index.md +21 -12
  168. package/skills/weaver-e10-jinchengda/references/contract-compare-report-template.html +10 -18
  169. package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +18 -17
  170. package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +114 -61
  171. package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +8 -2
  172. package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +73 -104
  173. package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +32 -37
  174. package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +12 -10
  175. package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +70 -82
  176. package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +37 -33
  177. package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +94 -27
  178. package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +5 -5
  179. package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +9 -15
  180. package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +9 -4
  181. package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +59 -32
  182. package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +7 -5
  183. package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +21 -13
  184. package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +13 -13
  185. package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +6 -5
  186. package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +250 -0
  187. package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +11 -20
  188. package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +203 -54
  189. package/skills/weaver-e10-jinchengda/references/contract-request-status.md +4 -11
  190. package/skills/weaver-e10-jinchengda/references/contract-request-write.md +11 -17
  191. package/skills/weaver-e10-jinchengda/references/contract-signing-subjects.md +11 -17
  192. package/skills/weaver-e10-jinchengda/references/contract-subject-create.md +5 -11
  193. package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +56 -7
  194. package/skills/weaver-e10-jinchengda/references/contract-workflow-discovery.md +10 -16
  195. package/skills/weaver-e10-jinchengda/references/orchestration.md +31 -33
  196. package/skills/weaver-e10-jucailin/SKILL.md +6 -7
  197. package/skills/weaver-e10-jucailin/agents/openai.yaml +52 -0
  198. package/skills/weaver-e10-jucailin/references/recruit-interview-overview.md +8 -6
  199. package/skills/weaver-e10-jucailin/references/recruit-read.md +4 -0
  200. package/skills/weaver-e10-jucailin/references/recruit-screening-to-interview-sop.md +2 -2
  201. package/skills/weaver-e10-jucailin/references/recruit-write.md +4 -4
  202. package/skills/weaver-e10-meeting/SKILL.md +83 -531
  203. package/skills/weaver-e10-meeting/references/commands-table.md +61 -0
  204. package/skills/weaver-e10-meeting/references/create-commands.md +136 -0
  205. package/skills/weaver-e10-meeting/references/create-flow.md +3 -1
  206. package/skills/weaver-e10-meeting/references/create-guardrails.md +14 -8
  207. package/skills/weaver-e10-meeting/references/custom-fields.md +40 -0
  208. package/skills/weaver-e10-meeting/references/eb-contracts.md +60 -0
  209. package/skills/weaver-e10-meeting/references/invitation.md +69 -0
  210. package/skills/weaver-e10-meeting/references/minutes-pipeline.md +119 -0
  211. package/skills/weaver-e10-meeting/references/pitfalls.md +1 -1
  212. package/skills/weaver-e10-meeting/references/room-recommend.md +88 -0
  213. package/skills/weaver-e10-recruit-stage/SKILL.md +317 -266
  214. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +22 -27
  215. package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +1 -1
  216. package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +30 -27
  217. package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +2 -6
  218. package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +12 -10
  219. package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +2 -0
  220. package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +23 -19
  221. package/skills/weaver-e10-recruit-stage/references/recruit-jd-template.md +3 -1
  222. package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +18 -16
  223. package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +25 -23
  224. package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +10 -10
  225. package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +2 -2
  226. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +11 -11
  227. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +150 -85
  228. package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +14 -18
  229. package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +1 -1
  230. package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +173 -0
  231. package/skills/weaver-e10-recruit-stage/references/recruit-tag-taxonomy.json +76 -0
  232. package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +3 -1
  233. package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +2 -2
  234. package/skills/weaver-e10-workflow/SKILL.md +49 -32
  235. package/skills/weaver-e10-workflow/references/todo-dialogue.md +67 -34
  236. package/skills/weaver-e10-workflow/references/todo-smart-convert.md +65 -51
  237. package/skills/weaver-e10-workflow/references/workflow-agent-entry.md +18 -11
  238. package/skills/weaver-e10-workflow/references/workflow-create.md +2 -2
  239. package/skills/weaver-e10-workflow/references/workflow-memory.md +19 -37
  240. package/skills/weaver-e10-workflow/references/workflow-query.md +25 -22
  241. package/skills/weaver-e10-workflow/references/workflow-view.md +1 -1
  242. package/skills/weaver-e10-workflow/tools/todo-summary.cjs +318 -110
  243. package/skills/weaver-e10-yepiaotong/SKILL.md +16 -9
  244. package/skills/weaver-e10-yepiaotong/references/invoice-reim-relation.md +9 -7
  245. package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +15 -11
  246. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +29 -25
  247. package/skills/weaver-e10-yepiaotong/references/reim-customer-search.md +89 -0
  248. package/skills/weaver-e10-yepiaotong/references/reim-examples.md +35 -37
  249. package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +66 -63
  250. package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +50 -71
  251. package/skills/weaver-e10-yepiaotong/references/source-manifest.json +34 -95
  252. package/skills/weaver-e10-yimiaoban/SKILL.md +10 -10
  253. package/skills/weaver-e10-yimiaoban/references/person.md +1 -1
  254. package/skills/weaver-e10-yimiaoban/references/safety-boundaries.md +1 -1
  255. package/skills/weaver-e10-yimiaoban/references/source-manifest.json +9 -9
  256. package/dist/chunks/chunk-6QYNE6HE.js +0 -658
  257. package/dist/chunks/chunk-SHYQUBY3.js +0 -48
  258. package/dist/shortcuts/contract/operations/card-action.js +0 -1266
  259. package/dist/shortcuts/contract/operations/card-plan.js +0 -393
  260. package/dist/shortcuts/contract/operations/card.js +0 -232
  261. package/dist/shortcuts/contract/operations/compare-screen.js +0 -378
  262. package/dist/shortcuts/contract/operations/quote-to-contract.js +0 -495
  263. package/dist/shortcuts/contract/operations/quotescreen.js +0 -529
  264. package/dist/shortcuts/contract/operations/summary-validate.js +0 -293
  265. package/dist/shortcuts/contract/operations/summary.js +0 -187
  266. package/dist/shortcuts/ehr/recruit-stage/batch-store.js +0 -78
  267. package/dist/shortcuts/ehr/recruit-stage/context.js +0 -231
  268. package/dist/shortcuts/ehr/recruit-stage/continuation.js +0 -74
  269. package/dist/shortcuts/ehr/recruit-stage/errors.js +0 -65
  270. package/dist/shortcuts/ehr/recruit-stage/fs-scan.js +0 -165
  271. package/dist/shortcuts/ehr/recruit-stage/host.js +0 -109
  272. package/dist/shortcuts/ehr/recruit-stage/operations/interview-arrange.js +0 -1065
  273. package/dist/shortcuts/ehr/recruit-stage/operations/interview-feedback.js +0 -295
  274. package/dist/shortcuts/ehr/recruit-stage/operations/jd-create.js +0 -961
  275. package/dist/shortcuts/ehr/recruit-stage/operations/list.js +0 -431
  276. package/dist/shortcuts/ehr/recruit-stage/operations/registry.js +0 -50
  277. package/dist/shortcuts/ehr/recruit-stage/operations/resume-import.js +0 -1655
  278. package/dist/shortcuts/ehr/recruit-stage/operations/search.js +0 -158
  279. package/dist/shortcuts/ehr/recruit-stage/operations/types.js +0 -34
  280. package/dist/shortcuts/ehr/recruit-stage/runtime.js +0 -31
  281. package/dist/shortcuts/ehr/recruit-stage/school-tiers.json +0 -318
  282. package/dist/shortcuts/ehr/recruit-stage/shared.js +0 -887
  283. package/dist/shortcuts/invoice/operations/browse-field.js +0 -17
  284. package/skills/weaver-e10-jinchengda/references/contract-action-card-template.html +0 -22
  285. package/skills/weaver-e10-jinchengda/references/contract-action-card.md +0 -554
  286. package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +0 -279
  287. package/skills/weaver-e10-jinchengda/references/contract-card-render-internals.md +0 -483
  288. package/skills/weaver-e10-jinchengda/references/contract-template-selector.md +0 -46
  289. package/skills/weaver-e10-recruit-stage/lib/recruit-resume-photo.py +0 -194
  290. package/skills/weaver-e10-yepiaotong/references/invoice-browse-field-data.md +0 -204
@@ -1,295 +0,0 @@
1
- import { rsSuccess, schemaOf } from './types.js';
2
- import { rsFail, rsValidationError, rsConfirmationError } from '../errors.js';
3
- import { objIdOf, formIdOf, saveFormData, runEsb, getDsOptions, getFormButtonsForData, findSubmitButton, analyzeButtonActions, getFormDataRecord, toSubmitDetails, randHex32, dsOptionsSnapshot, restoreDsOptions, } from '../shared.js';
4
- // InterviewStatusEnum.INVALID(已失效):系统反馈按钮(填写/编辑/代评价)均要求非此状态
5
- const INVALID_STATUS_ID = '841052191228968977';
6
- const R = (v) => String(v ?? '').replace(/^<p>|<\/p>$/g, '').trim();
7
- async function locateTalentId(host, cache, args) {
8
- if (args.talentId)
9
- return String(args.talentId);
10
- if (!args.mobile)
11
- throw rsValidationError('locate_required', '请提供 talentId 或 mobile');
12
- const listId = cache.forms?.talent_pool?.listId;
13
- if (!listId)
14
- throw rsFail('环境缓存缺少人才列表 listId');
15
- const poolObjId = cache.forms.talent_pool.objId;
16
- const r = await host.request({
17
- path: '/api/ebuilder/form/list/getListDatas?passid=' + poolObjId + '&cid=' + poolObjId,
18
- body: {
19
- listId, cid: poolObjId, passid: poolObjId,
20
- searchParamData: JSON.stringify({ searchParamList: [{ key: 'field_mobile', value: args.mobile, operator: '=' }] }),
21
- current: 1, pageSize: 10, tableuid: randHex32(),
22
- },
23
- });
24
- const rows = r?.data?.rows || r?.data || [];
25
- if (!rows.length)
26
- throw rsFail('未找到手机号为 ' + args.mobile + ' 的候选人');
27
- if (rows.length > 1)
28
- throw rsFail('该手机号命中多条候选人,请提供 talentId 精确定位');
29
- return String(rows[0].talentId || rows[0].form_data_id);
30
- }
31
- async function getBatchId(host, talentId) {
32
- const rk = 'randomkey_' + randHex32().slice(0, 6);
33
- const r = await host.request({ path: '/api/recruit/candidate/getCandidateCardPrepareQuery?talentId=' + talentId + '&' + rk + '=' + rk.split('_')[1], method: 'GET' });
34
- return r?.data?.batchId;
35
- }
36
- async function listInterviewFeedback(host, talentId, batchId) {
37
- const r = await host.request({
38
- path: '/api/recruit/candidate/getCandidateCardInterviewInfo', method: 'POST',
39
- body: { talentId, batchId, current: 1, pageSize: 20 },
40
- });
41
- const list = r?.data?.list || [];
42
- const out = [];
43
- for (let i = 0; i < list.length; i++) {
44
- const it = list[i];
45
- const fbs = it?.interviewFeedBack || [];
46
- if (fbs.length) {
47
- const fb = fbs[0];
48
- out.push({
49
- index: i,
50
- planId: (fb.interviewPlanId || [])[0]?.id,
51
- planName: (fb.interviewPlanId || [])[0]?.name || (it.subject || ''),
52
- interviewer: (fb.interviewer || []).map((x) => x.name).join('、') || (it.interviewer || ''),
53
- feedbackId: fb.id || fb.formDataId,
54
- result: (fb.result || []).map((x) => x.name).join('、') || '',
55
- judgement: R(fb.judgement),
56
- unionStatusId: (it.unionStatus || [])[0]?.id || '',
57
- unionStatusName: (it.unionStatus || [])[0]?.name || '',
58
- });
59
- }
60
- }
61
- return out;
62
- }
63
- async function buildTarget(env, args) {
64
- const host = env.host;
65
- const session = await host.getSession();
66
- const cache = await env.recruitContext();
67
- const baseUrl = session.baseUrl.replace(/\/+$/, '');
68
- const talentId = await locateTalentId(host, cache, args);
69
- const batchId = await getBatchId(host, talentId);
70
- const list = await listInterviewFeedback(host, talentId, batchId);
71
- if (!list.length)
72
- throw rsFail('该候选人没有可编辑的面试反馈记录');
73
- let target;
74
- if (args.feedbackId) {
75
- target = list.find((x) => String(x.feedbackId) === String(args.feedbackId));
76
- if (!target)
77
- throw rsFail('未找到反馈记录 id=' + args.feedbackId + ',可选:' + list.map((x) => x.feedbackId).join(','));
78
- }
79
- else {
80
- const idx = args.planIndex !== undefined ? Number(args.planIndex) : 0;
81
- if (args.planIndex !== undefined && !list[idx])
82
- throw rsFail('planIndex 超出范围,共 ' + list.length + ' 场含反馈');
83
- target = list[idx];
84
- }
85
- if (target.unionStatusId === INVALID_STATUS_ID) {
86
- throw rsFail('该面试状态为「已失效」,不允许填写/编辑面试反馈(与系统按钮条件一致:已失效不显示反馈按钮)。面试=' + target.planName + ',反馈记录Id=' + target.feedbackId);
87
- }
88
- const objId = objIdOf(cache, 'interview_detail');
89
- const formId = formIdOf(cache, 'interview_detail');
90
- const fields = cache.fields?.[objId] || {};
91
- const resultFid = fields.result;
92
- const judgementFid = fields.judgement;
93
- if (!resultFid || !judgementFid)
94
- throw rsFail('环境缓存缺少面试反馈的 result/judgement 字段映射');
95
- return { host, baseUrl, appId: cache.appId, cache, talentId, batchId, list, target, objId, formId, fields, resultFid, judgementFid };
96
- }
97
- async function prepare(args, env) {
98
- if (!args.result && args.comment === undefined) {
99
- throw rsValidationError('result_or_comment_required', '请提供 result(通过/不通过/待定)和/或 comment(评价)');
100
- }
101
- const t = await buildTarget(env, args);
102
- // 反馈记录当前数据(updateTimeStamp + 全字段集)
103
- const rec = await getFormDataRecord(t.host, t.formId, String(t.target.feedbackId), t.objId);
104
- if (!rec.id)
105
- throw rsFail('无法获取反馈记录数据(formData 为空),可能无权限或记录不存在');
106
- // 粗定位提交按钮 + 精核验
107
- const btns = await getFormButtonsForData(t.host, t.objId, t.formId, String(t.target.feedbackId));
108
- const submitBtn = findSubmitButton(btns);
109
- const analysis = submitBtn ? analyzeButtonActions(submitBtn) : null;
110
- // result optionId
111
- let newOptionId = null;
112
- if (args.result) {
113
- const opts = await getDsOptions(t.host, t.objId, t.resultFid);
114
- newOptionId = opts[String(args.result)];
115
- if (!newOptionId)
116
- throw rsFail('未识别的面试结果「' + args.result + '」,可选:' + Object.keys(opts).join('/'));
117
- }
118
- const newComment = args.comment !== undefined ? String(args.comment) : t.target.judgement;
119
- const newResultName = args.result ? String(args.result) : t.target.result;
120
- const willSubmit = { feedbackId: String(t.target.feedbackId), result: newResultName, comment: newComment };
121
- const { createHash } = await import('node:crypto');
122
- const fp = createHash('sha256').update(JSON.stringify(willSubmit)).digest('hex');
123
- const continuation = await env.continuation.issue({ operation: 'ehr.recruit.stage.interview.feedback.edit.apply', fingerprint: fp,
124
- enumMaps: await dsOptionsSnapshot(),
125
- // 🔴 2026-11-07 修复(同 arrange/jd.create 的同类缺陷):apply 原来只从 args 取 talentId/result/comment,
126
- // 导致「只带 confirm + continuation」时定位不到目标或指纹不符。现将这些参数签进 continuation。
127
- argsSnapshot: {
128
- talentId: t.talentId,
129
- feedbackId: args.feedbackId ? String(args.feedbackId) : String(t.target.feedbackId),
130
- result: args.result ? String(args.result) : undefined,
131
- comment: args.comment !== undefined ? String(args.comment) : undefined,
132
- } });
133
- return rsSuccess('ehr.recruit.stage.interview.feedback.edit.prepare', {
134
- mode: 'prepare',
135
- talentId: t.talentId,
136
- batchId: t.batchId,
137
- 面试: t.target.planName,
138
- 面试官: t.target.interviewer,
139
- 反馈记录Id: t.target.feedbackId,
140
- 当前反馈: (t.target.result ? '结果 ' + t.target.result : '') + (t.target.judgement ? ';评价 ' + t.target.judgement : ''),
141
- 新反馈: (args.result ? '结果 ' + newResultName : '') + (args.comment !== undefined ? ';评价 ' + newComment : ''),
142
- 将执行动作: analysis
143
- ? {
144
- 保存反馈表单: 'saveFormData(全字段集 + updateTimeStamp 乐观锁)',
145
- 动作流: analysis.esbIds.length ? analysis.esbIds : '(该按钮无 esb 动作流)',
146
- 招聘API: analysis.jsCalls.map((c) => c.url + (Object.keys(c.data).length ? ' data=' + Object.keys(c.data).join(',') : '')),
147
- }
148
- : '⚠️ 未定位到「提交评价」按钮(getFormButtons 未取到保存按钮),仅能执行保存+写过程日志',
149
- willSubmit,
150
- // 🔴 2026-11-07:本 op 此前无 preview(与 jd.create 同类缺陷)。把上方的中文字段收进 preview,
151
- // 让「确认」这一步有统一的机器可读摘要,而不是只能靠人读散装字段。
152
- preview: {
153
- action: '提交/修改面试反馈',
154
- 候选人: t.talentId,
155
- 面试: t.target.planName,
156
- 面试官: t.target.interviewer,
157
- 反馈记录Id: t.target.feedbackId,
158
- 当前反馈: (t.target.result ? '结果 ' + t.target.result : '') + (t.target.judgement ? ';评价 ' + t.target.judgement : ''),
159
- 新反馈: (args.result ? '结果 ' + newResultName : '') + (args.comment !== undefined ? ';评价 ' + newComment : ''),
160
- 将执行动作: analysis
161
- ? { 保存反馈表单: 'saveFormData(全字段集 + updateTimeStamp 乐观锁)', 动作流: analysis.esbIds.length ? analysis.esbIds : '(该按钮无 esb 动作流)', 招聘API: analysis.jsCalls.map((c) => c.url) }
162
- : '⚠️ 未定位到「提交评价」按钮,仅能执行保存+写过程日志',
163
- },
164
- }, { continuation, fingerprint: fp, confirmHint: '用户明确确认后,携带 confirm:true 与 continuation 调用 apply' });
165
- }
166
- async function apply(args, env) {
167
- if (args.confirm !== true)
168
- throw rsConfirmationError('ehr.recruit.stage.interview.feedback.edit.apply', { hint: '写操作必须显式 confirm:true' });
169
- if (!args.continuation)
170
- throw rsValidationError('continuation_required', '缺少 continuation(来自 prepare 的 meta)');
171
- const payload = await env.continuation.verify(String(args.continuation), 'ehr.recruit.stage.interview.feedback.edit.apply');
172
- restoreDsOptions(payload.enumMaps);
173
- // 合并 prepare 快照(显式传的优先),使 apply 只带 confirm + continuation 也能执行
174
- const merged = { ...(payload.argsSnapshot || {}), ...args };
175
- const t = await buildTarget(env, merged);
176
- // 重新取最新 updateTimeStamp(乐观锁)
177
- const rec2 = await getFormDataRecord(t.host, t.formId, String(t.target.feedbackId), t.objId);
178
- const details2 = toSubmitDetails(rec2.dataDetails);
179
- let newOptionId = null;
180
- if (merged.result) {
181
- const opts = await getDsOptions(t.host, t.objId, t.resultFid);
182
- newOptionId = opts[String(merged.result)];
183
- if (!newOptionId)
184
- throw rsFail('未识别的面试结果「' + merged.result + '」,可选:' + Object.keys(opts).join('/'));
185
- }
186
- const newComment = merged.comment !== undefined ? String(merged.comment) : t.target.judgement;
187
- const newResultName = merged.result ? String(merged.result) : t.target.result;
188
- const willSubmit = { feedbackId: String(t.target.feedbackId), result: newResultName, comment: newComment };
189
- const { createHash } = await import('node:crypto');
190
- if (payload.fingerprint !== createHash('sha256').update(JSON.stringify(willSubmit)).digest('hex')) {
191
- throw rsValidationError('fingerprint_mismatch', '待提交内容与 prepare 确认摘要不一致,请重新 prepare 确认后再 apply');
192
- }
193
- // 覆盖 result/judgement 字段(原详情缺失则追加,避免整条提交时字段不写入)
194
- const newDetails = details2.map((x) => {
195
- const fid = x.formField.id;
196
- if (fid === t.resultFid && newOptionId)
197
- return { formField: { id: fid }, dataOptions: [{ optionId: newOptionId, content: newResultName }] };
198
- if (fid === t.judgementFid)
199
- return { formField: { id: fid }, dataText: { content: '<p>' + (newComment || '') + '</p>' } };
200
- return x;
201
- });
202
- if (newOptionId && !newDetails.some((x) => x.formField.id === t.resultFid)) {
203
- newDetails.push({ formField: { id: t.resultFid }, dataOptions: [{ optionId: newOptionId, content: newResultName }] });
204
- }
205
- if (args.comment !== undefined && !newDetails.some((x) => x.formField.id === t.judgementFid)) {
206
- newDetails.push({ formField: { id: t.judgementFid }, dataText: { content: '<p>' + (newComment || '') + '</p>' } });
207
- }
208
- // saveFormData(layoutId 用 getFormDataAndLayout 的 formLayout.id,getFormLayout 405 不可靠)
209
- const savedId = await saveFormData(t.host, {
210
- appId: t.appId, formId: t.formId, objId: t.objId,
211
- name: '面试反馈-' + t.target.planName, formDataId: String(t.target.feedbackId),
212
- updateTimeStamp: rec2.updateTimeStamp, dataDetails: newDetails, rightType: '2',
213
- layoutId: rec2.formLayoutId,
214
- extraCustomParam: { secretLevel: '', secretLevelValidity: '' },
215
- });
216
- // runEsb 动作流(按钮配置解析)
217
- const btns = await getFormButtonsForData(t.host, t.objId, t.formId, String(t.target.feedbackId));
218
- const submitBtn = findSubmitButton(btns);
219
- const analysis = submitBtn ? analyzeButtonActions(submitBtn) : null;
220
- let esbRes = null;
221
- if (analysis?.esbIds?.length) {
222
- esbRes = await runEsb(t.host, { objId: t.objId, dataIds: String(t.target.feedbackId), esbActionIds: analysis.esbIds.join(',') });
223
- }
224
- // addProcessLog 写招聘过程日志(jsCode 里的招聘 API,按标准契约直接调)
225
- let processRes = null;
226
- if (analysis?.jsCalls?.length) {
227
- const call = analysis.jsCalls.find((c) => c.url.includes('/api/recruit/')) || analysis.jsCalls[0];
228
- processRes = await t.host.request({
229
- path: call.url, method: (call.method || 'post').toUpperCase(),
230
- body: {
231
- talentId: String(t.talentId), batchId: String(t.batchId),
232
- result: newOptionId || t.target.result, judgement: '<p>' + (newComment || '') + '</p>',
233
- businessId: String(t.target.feedbackId), processEnum: '20',
234
- },
235
- });
236
- }
237
- // 回查校验
238
- const back = await listInterviewFeedback(t.host, t.talentId, t.batchId);
239
- const backFb = back.find((x) => String(x.feedbackId) === String(t.target.feedbackId));
240
- const changed = backFb && String(backFb.result).includes(newResultName) && (args.comment === undefined || String(backFb.judgement).includes(newComment));
241
- // 产物链接:人才卡片(点进去可看该候选人的面试与反馈)+ 面试管理列表
242
- const cardPageId = String(t.cache.ebdDetailPageId || '');
243
- const talentExtra = String(t.cache.selfUse) === '1' ? '&recruitType=useSelf' : '';
244
- const talentCardUrl = cardPageId ? `${t.baseUrl}/sp/ebdpage/view/${cardPageId}?talentId=${t.talentId}${talentExtra}` : null;
245
- const interviewListId = String((t.cache.lists?.interview?.listId) || '');
246
- const interviewListUrl = interviewListId ? `${t.baseUrl}/sp/ebdfpage/list/${interviewListId}` : null;
247
- return rsSuccess('ehr.recruit.stage.interview.feedback.edit.apply', {
248
- mode: 'apply', result: 'success',
249
- saveFormData: { 成功: !!savedId, 记录Id: savedId },
250
- runEsb: esbRes ? { 动作流数: analysis?.esbIds.length ?? 0, 返回: esbRes?.successNum ?? esbRes?.status ?? 'ok' } : '无 esb 动作流',
251
- addProcessLog: processRes ? { 返回: processRes?.data ?? processRes?.status ?? 'ok' } : '无 jsCode 招聘 API',
252
- 回查: backFb ? { 结果: backFb.result, 评价: backFb.judgement, 已生效: changed } : '回查未取到该反馈',
253
- talentId: t.talentId, batchId: t.batchId, 面试: t.target.planName,
254
- talentCardUrl,
255
- interviewListUrl,
256
- });
257
- }
258
- export const interviewFeedbackOperations = [
259
- {
260
- name: 'ehr.recruit.stage.interview.feedback.edit.prepare',
261
- resource: 'recruit.interview',
262
- method: 'prepare',
263
- action: 'interview.feedback.edit.prepare',
264
- summary: '面试反馈确认摘要:定位反馈记录(feedbackId 或 planIndex)、按钮动作智能解析(保存+esb+招聘API)、当前/新反馈对照,不写入',
265
- capability: 'recruit.interview.feedback',
266
- risk: 'write',
267
- requiresConfirmation: true,
268
- inputSchema: schemaOf({
269
- talentId: { type: 'string', description: '人才 id(与 mobile 二选一)' },
270
- mobile: { type: 'string', pattern: '^\\d{6,20}$', description: '手机号定位(唯一命中)' },
271
- feedbackId: { type: 'string', description: '反馈记录 id(最稳;缺省用 planIndex 选第几场)' },
272
- planIndex: { type: 'integer', minimum: 0, description: '第几场含反馈的面试(默认 0)' },
273
- result: { type: 'string', description: '面试结果(如 通过/不通过/待定,按环境枚举)' },
274
- comment: { type: 'string', description: '评价正文' },
275
- }, {}),
276
- handler: prepare,
277
- },
278
- {
279
- name: 'ehr.recruit.stage.interview.feedback.edit.apply',
280
- resource: 'recruit.interview',
281
- method: 'apply',
282
- action: 'interview.feedback.edit.apply',
283
- summary: '用户确认后提交反馈:saveFormData(乐观锁全字段集)→ runEsb 动作流 → addProcessLog 过程日志 → 回查校验',
284
- capability: 'recruit.interview.feedback',
285
- risk: 'write',
286
- requiresConfirmation: true,
287
- inputSchema: schemaOf({
288
- talentId: { type: 'string' }, mobile: { type: 'string', pattern: '^\\d{6,20}$' },
289
- feedbackId: { type: 'string' }, planIndex: { type: 'integer', minimum: 0 },
290
- result: { type: 'string' }, comment: { type: 'string' },
291
- confirm: { type: 'boolean' }, continuation: { type: 'string' },
292
- }, {}),
293
- handler: apply,
294
- },
295
- ];