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,378 +0,0 @@
1
- import { contractValidationError } from '../errors.js';
2
- import { CARD_TEMPLATE, renderActionCard, selfCheckActionCard, verifyBrowsertoolText } from './card-action.js';
3
- import { resolveOperation } from './op-resolver.js';
4
- /**
5
- * 合同比对一条链路(2026-11-16 用户指定)。
6
- *
7
- * 背景:此前一次比对要模型自己串 `compare.upload` → `compare.diff` → 手写报告 HTML →
8
- * `card.action` 四步,每步一次工具往返;且报告 HTML 必须先落盘再出卡,否则卡片自检报
9
- * `内容常量 var C 为空`。实测因此多耗 3 轮、其中一次还把 10KB HTML 内联进 JSON 参数,
10
- * 触发 180 秒超时、整轮无产物。
11
- *
12
- * 本 operation 把四步收进一个进程内调用链,一次命令返回可裸输出的 `<browsertool>`:
13
- * upload(docCompared) → diff → 报告 HTML(本地渲染,不落盘)→ 行为卡片 + 自检
14
- *
15
- * 与既有约定的关系:
16
- * - 报告**不落本地文件**:卡片「生成比对报告」走 artifact,面板右上角自带下载,
17
- * 再次 present_files 属重复交付(2026-11-16 用户明确取消)。
18
- * - 报告 HTML 由本命令按 `contract-compare-report.md` 的口径生成,禁止模型手写,
19
- * 避免双引号 / 转义 / 章节误挂一类问题。
20
- * - 卡片仍走 `renderActionCard` + `selfCheckActionCard`,交付判据不变:
21
- * `selfCheckPassed === true` 且 `selfCheck` 为空。
22
- *
23
- * 章节归属按契约文档 §2.2:正文章标题不带「第X章」,带编号的只出现在目录,
24
- * 因此这里不做「第X章」正则匹配,而是按缔约信息 / 封面关键词与页码定位,
25
- * 落到「封面(正文前)」「缔约信息区(正文前)」「正文条款」三类。
26
- */
27
- const DEFAULT_BASE = 'https://www.e-cology.com.cn';
28
- const DEFAULT_AIID = '1326842382967570463';
29
- function isRecord(value) {
30
- return typeof value === 'object' && value !== null && !Array.isArray(value);
31
- }
32
- function str(value) {
33
- return typeof value === 'string' ? value : typeof value === 'number' ? String(value) : '';
34
- }
35
- function num(value) {
36
- const parsed = Number(value);
37
- return Number.isFinite(parsed) ? parsed : 0;
38
- }
39
- function stampNow() {
40
- const now = new Date();
41
- const pad = (value) => String(value).padStart(2, '0');
42
- return `${now.getFullYear()}${pad(now.getMonth() + 1)}${pad(now.getDate())}${pad(now.getHours())}${pad(now.getMinutes())}${pad(now.getSeconds())}`;
43
- }
44
- function humanTime() {
45
- const now = new Date();
46
- const pad = (value) => String(value).padStart(2, '0');
47
- return `${now.getFullYear()}-${pad(now.getMonth() + 1)}-${pad(now.getDate())} ${pad(now.getHours())}:${pad(now.getMinutes())}`;
48
- }
49
- /** 只用于文件名、条款名等纯文本位置;接口给的 base/compare 已带高亮,不能二次转义。 */
50
- function esc(value) {
51
- return str(value)
52
- .replace(/&/gu, '&amp;')
53
- .replace(/</gu, '&lt;')
54
- .replace(/>/gu, '&gt;');
55
- }
56
- async function callOperation(name, input, context) {
57
- const operation = resolveOperation(name);
58
- const result = await operation.execute(input, context);
59
- return isRecord(result?.data) ? result.data : {};
60
- }
61
- /** 按接口 type 逐条计数,合计恒等于 changes.length;同一处被拆成多条时照实各计一条。 */
62
- function statOf(changes, percentage, serviceTime) {
63
- let insert = 0;
64
- let deleted = 0;
65
- let changed = 0;
66
- for (const item of changes) {
67
- const type = str(item.type).toLowerCase();
68
- if (type === 'insert')
69
- insert += 1;
70
- else if (type === 'delete')
71
- deleted += 1;
72
- else if (type === 'change' || type === 'replace')
73
- changed += 1;
74
- }
75
- return { total: changes.length, insert, delete: deleted, change: changed, percentage, serviceTime };
76
- }
77
- function typeLabel(type) {
78
- const value = type.toLowerCase();
79
- if (value === 'insert')
80
- return { label: '新增', cls: 'ins' };
81
- if (value === 'delete')
82
- return { label: '删除', cls: 'del' };
83
- if (value === 'change' || value === 'replace')
84
- return { label: '修改', cls: 'chg' };
85
- return { label: type || '差异', cls: 'oth' };
86
- }
87
- function zoneOf(item) {
88
- const content = [str(item.baseOriginal), str(item.compareOriginal), str(item.countText)].join(' ');
89
- if (/(联系人|联系电话|电话|传真|邮箱|开户行|账号|税号|地址)/u.test(content))
90
- return 'party';
91
- if (/(签订时间|签订日期|签订地点|合同编号|合同名称)/u.test(content))
92
- return 'cover';
93
- return 'body';
94
- }
95
- function clauseOf(item) {
96
- const content = [str(item.baseOriginal), str(item.compareOriginal), str(item.countText)].join(' ');
97
- if (/(签订时间|签订日期)/u.test(content))
98
- return '签订时间';
99
- if (/签订地点/u.test(content))
100
- return '签订地点';
101
- if (/联系人/u.test(content))
102
- return '联系人';
103
- if (/电话/u.test(content))
104
- return '联系电话';
105
- if (/传真/u.test(content))
106
- return '传真';
107
- if (/邮箱/u.test(content))
108
- return '电子邮箱';
109
- if (/地址/u.test(content))
110
- return '地址';
111
- if (/合同编号/u.test(content))
112
- return '合同编号';
113
- if (/合同名称/u.test(content))
114
- return '合同名称';
115
- return '其他条款';
116
- }
117
- function pageOf(item) {
118
- const side = isRecord(item.right) ? item.right : isRecord(item.left) ? item.left : {};
119
- const positions = Array.isArray(side.positions) ? side.positions : [];
120
- const first = positions.length > 0 && isRecord(positions[0]) ? positions[0] : {};
121
- const page = num(first.page);
122
- return page >= 0 ? page + 1 : 0;
123
- }
124
- // ---------------------------------------------------------------- 报告渲染
125
- const REPORT_CSS = [
126
- ".rp{background:#f5f6f8;padding:20px 16px 32px;font-size:13.5px;line-height:1.7;color:#1f2329;font-family:Microsoft YaHei,PingFang SC,sans-serif}",
127
- '.rp h1{font-size:20px;margin:0 0 6px;color:#1a56b8}',
128
- '.rp .sub{color:#8a939e;font-size:12px;margin-bottom:16px}',
129
- '.rp .card{background:#fff;border:1px solid #e3e6eb;border-radius:10px;padding:20px 22px;margin-bottom:14px}',
130
- '.rp h2{font-size:15px;margin:0 0 14px;padding-left:9px;border-left:3px solid #1a56b8;color:#1f2329}',
131
- '.rp .pair{display:flex;flex-direction:column;gap:6px}',
132
- '.rp .file{background:#fcfcfd;border:1px solid #e3e6eb;border-radius:8px;padding:10px 14px}',
133
- '.rp .file .tag{display:inline-block;font-size:11px;padding:1px 8px;border-radius:10px;margin-right:8px}',
134
- '.rp .tag.base{background:#eaf0fe;color:#1a56b8}',
135
- '.rp .tag.target{background:#f6ffed;color:#237804}',
136
- '.rp .arrow{text-align:center;color:#a0a8b3;font-size:12px}',
137
- '.rp .stats{display:flex;gap:12px;margin:16px 0 10px}',
138
- '.rp .stat{flex:1;text-align:center;border:1px solid #e3e6eb;border-radius:8px;padding:12px 6px}',
139
- '.rp .stat .n{display:block;font-size:22px;font-weight:700}',
140
- '.rp .stat .l{display:block;font-size:12px;color:#5c6570;margin-top:2px}',
141
- '.rp .stat.total .n{color:#1a56b8}',
142
- '.rp .stat.add .n{color:#237804}',
143
- '.rp .stat.del .n{color:#a8071a}',
144
- '.rp .stat.chg .n{color:#b26a00}',
145
- '.rp .note{color:#5c6570;font-size:12px;margin:0 0 14px}',
146
- '.rp table{width:100%;border-collapse:collapse;font-size:13px}',
147
- '.rp th{background:#fafbfc;text-align:left;font-weight:600;color:#5c6570;padding:9px 10px;border-bottom:1px solid #e3e6eb}',
148
- '.rp td{padding:9px 10px;border-bottom:1px solid #f0f2f5;vertical-align:top}',
149
- '.rp td.l{background:#fcfcfd;width:38%}',
150
- '.rp td.r{background:#fbfdff;width:38%}',
151
- '.rp .pill{display:inline-block;font-size:11px;padding:1px 8px;border-radius:10px;border:1px solid #e3e6eb;color:#5c6570;background:#fafbfc}',
152
- '.rp .pill.ins{color:#237804;background:#f6ffed;border-color:#b7eb8f}',
153
- '.rp .pill.del{color:#a8071a;background:#fff1f0;border-color:#ffa39e}',
154
- '.rp .pill.chg{color:#b26a00;background:#fff7e6;border-color:#ffd591}',
155
- '.rp .hint{color:#8a939e;font-size:12px;margin-top:10px}',
156
- '.rp summary{cursor:pointer;font-size:15px;font-weight:600;color:#1a56b8;padding:4px 0;list-style:none;outline:none}',
157
- '.rp summary::-webkit-details-marker{display:none}',
158
- '.rp summary .arw{display:inline-block;margin-right:6px}',
159
- '.rp summary .tip{float:right;font-size:12px;font-weight:400;color:#a0a8b3}',
160
- '.rp .sec{margin-top:14px}',
161
- '.rp .sec h3{font-size:13.5px;margin:0 0 8px;color:#1f2329}',
162
- '.rp .none{color:#237804}',
163
- ].join(' ');
164
- function detailRows(changes) {
165
- return changes
166
- .map((item, index) => {
167
- const meta = typeLabel(str(item.type));
168
- return `<tr><td>${index + 1}</td><td><span class='pill ${meta.cls}'>${esc(meta.label)}</span></td><td class='l'>${str(item.base)}</td><td class='r'>${str(item.compare)}</td></tr>`;
169
- })
170
- .join('');
171
- }
172
- function zoneBlocks(changes) {
173
- const groups = [
174
- ['cover', '封面(正文前)'],
175
- ['party', '缔约信息区(正文前)'],
176
- ['body', '正文条款'],
177
- ];
178
- const blocks = [];
179
- for (const [key, label] of groups) {
180
- const group = changes.filter((item) => zoneOf(item) === key);
181
- if (group.length === 0) {
182
- blocks.push(`<div class='sec'><h3>${label} —— <span class='none'>0 处差异</span></h3><p class='hint'>该区块未检出差异。</p></div>`);
183
- continue;
184
- }
185
- const rows = group
186
- .map((item) => {
187
- const meta = typeLabel(str(item.type));
188
- const page = pageOf(item);
189
- const clause = clauseOf(item);
190
- const position = `${label} · ${clause}${page > 0 ? `(第 ${page} 页)` : ''}`;
191
- return `<tr><td>${esc(clause)}</td><td><span class='pill ${meta.cls}'>${esc(meta.label)}</span></td><td>${esc(position)}</td><td class='l'>${str(item.base)}</td><td class='r'>${str(item.compare)}</td></tr>`;
192
- })
193
- .join('');
194
- blocks.push(`<div class='sec'><h3>${label} —— ${group.length} 处差异</h3><table><thead><tr><th style='width:22%'>差异条款</th><th style='width:62px'>类型</th><th style='width:24%'>位置</th><th>改动前</th><th>改动后</th></tr></thead><tbody>${rows}</tbody></table></div>`);
195
- }
196
- return blocks.join('');
197
- }
198
- function renderReportHtml(args) {
199
- const { stat } = args;
200
- const similarity = stat.percentage > 0 ? `文本相似度 ${(stat.percentage * 100).toFixed(2)}%` : '文本相似度未返回';
201
- const cost = stat.serviceTime > 0 ? `比对耗时约 ${Math.round(stat.serviceTime / 1000)} 秒` : '';
202
- const summaryLine = `两版合同共检出 ${stat.total} 处差异,${similarity}${cost ? `,${cost}` : ''}。`;
203
- const detail = stat.total > 0 ? detailRows(args.changes) : `<tr><td colspan='4' class='hint'>两版未检出差异。</td></tr>`;
204
- return [
205
- '<!DOCTYPE html>',
206
- "<html lang='zh-CN'>",
207
- '<head>',
208
- "<meta charset='UTF-8'>",
209
- '<title>合同比对报告</title>',
210
- `<style>${REPORT_CSS}</style>`,
211
- '</head>',
212
- '<body>',
213
- "<div class='rp'>",
214
- '<h1>合同比对报告</h1>',
215
- `<div class='sub'>生成时间:${esc(args.generatedAt)} | 数据来源:今承达文本比对服务</div>`,
216
- "<div class='card'>",
217
- '<h2>一、比对信息</h2>',
218
- "<div class='pair'>",
219
- `<div class='file'><span class='tag base'>基准合同</span>${esc(args.baseFileName)}</div>`,
220
- "<div class='arrow'>↓ 与 ↓</div>",
221
- `<div class='file'><span class='tag target'>比对合同</span>${esc(args.compareFileName)}</div>`,
222
- '</div>',
223
- "<div class='stats'>",
224
- `<div class='stat total'><span class='n'>${stat.total}</span><span class='l'>变化合计</span></div>`,
225
- `<div class='stat add'><span class='n'>${stat.insert}</span><span class='l'>新增</span></div>`,
226
- `<div class='stat del'><span class='n'>${stat.delete}</span><span class='l'>删除</span></div>`,
227
- `<div class='stat chg'><span class='n'>${stat.change}</span><span class='l'>修改</span></div>`,
228
- '</div>',
229
- `<p class='note'>${esc(summaryLine)}</p>`,
230
- '<h2>差异详情</h2>',
231
- "<table><thead><tr><th style='width:44px'>#</th><th style='width:66px'>类型</th><th>基准合同内容</th><th>比对合同内容</th></tr></thead>",
232
- `<tbody>${detail}</tbody></table>`,
233
- "<p class='hint'>上表为接口返回的原文片段,彩色文字即接口标注的改动位置(橙=修改、绿=新增、红=删除)。</p>",
234
- '</div>',
235
- "<div class='card'>",
236
- "<details open><summary><span class='arw'>▶</span>二、按合同章节 / 条款展示差异点<span class='tip'>点击展开</span></summary>",
237
- zoneBlocks(args.changes),
238
- '</details>',
239
- '</div>',
240
- '</div>',
241
- '</body>',
242
- '</html>',
243
- ].join('\n');
244
- }
245
- // ---------------------------------------------------------------- operation
246
- export const contractCompareScreenOperation = {
247
- name: 'contract.comparescreen.run',
248
- async execute(input, context) {
249
- const paths = Array.isArray(input.files) ? input.files : [];
250
- let baseFileId = str(input.baseFileId).trim();
251
- let compareFileId = str(input.compareFileId).trim();
252
- let baseFileName = str(input.baseFileName).trim();
253
- let compareFileName = str(input.compareFileName).trim();
254
- if (paths.length > 0) {
255
- if (paths.length !== 2) {
256
- throw contractValidationError('files_count_invalid', '文档比对需要恰好 2 个文件:基准文件在前,比对文件在后');
257
- }
258
- const uploaded = await callOperation('contract.compare.upload', { paths }, context);
259
- const files = Array.isArray(uploaded.files) ? uploaded.files : [];
260
- if (files.length !== 2 || !str(files[0]?.fileId) || !str(files[1]?.fileId)) {
261
- throw contractValidationError('upload_no_fileid', '比对文件上传未拿到 fileId,已停止,不打开比对页');
262
- }
263
- baseFileId = str(files[0].fileId);
264
- compareFileId = str(files[1].fileId);
265
- baseFileName = baseFileName || str(files[0].name);
266
- compareFileName = compareFileName || str(files[1].name);
267
- }
268
- if (!baseFileId || !compareFileId) {
269
- throw contractValidationError('file_ids_required', '请提供 files(2 个本地路径)或 baseFileId + compareFileId');
270
- }
271
- const diffData = await callOperation('contract.compare.diff', { baseFileId, compareFileId }, context);
272
- const envelope = isRecord(diffData.result) ? diffData.result : {};
273
- const body = isRecord(envelope.data) ? envelope.data : {};
274
- if (String(body.compareStatus ?? '') !== 'true') {
275
- throw contractValidationError('compare_failed', `比对未成功:${str(envelope.msg) || '接口未返回 compareStatus=true'}`);
276
- }
277
- const compare = isRecord(body.contractCompare) ? body.contractCompare : {};
278
- const changes = Array.isArray(compare.changes) ? compare.changes : [];
279
- baseFileName = str(compare.basicFileName) || baseFileName;
280
- compareFileName = str(compare.targetFileName) || compareFileName;
281
- const stat = statOf(changes, num(compare.percentage), num(compare.serviceTime));
282
- // 报告只进卡片:artifact 面板右上角自带下载,不再落本地 .html 文件。
283
- const reportHtml = renderReportHtml({
284
- baseFileName,
285
- compareFileName,
286
- changes,
287
- stat,
288
- generatedAt: humanTime(),
289
- });
290
- const baseUrl = (str(input.baseUrl) || DEFAULT_BASE).replace(/\/+$/u, '');
291
- const aiid = str(input.aiid) || DEFAULT_AIID;
292
- const stamp = stampNow();
293
- const cardCtx = {
294
- compared: true,
295
- scene: 'doc',
296
- docType: 'contract',
297
- comparePair: { baseFileId, baseFileName, compareFileId, compareFileName },
298
- };
299
- const cfg = {
300
- base: baseUrl,
301
- aiid,
302
- card_id: `card-${stamp}`,
303
- call_id: `contract-compare-${stamp}-01`,
304
- compare_html: reportHtml,
305
- base_file: { fileId: baseFileId, fileName: baseFileName },
306
- compare_file: { fileId: compareFileId, fileName: compareFileName },
307
- only: [],
308
- title: str(input.title) || undefined,
309
- };
310
- const rendered = renderActionCard(cardCtx, cfg, CARD_TEMPLATE);
311
- const slimChanges = changes.map((item) => ({
312
- type: str(item.type),
313
- zone: zoneOf(item),
314
- clause: clauseOf(item),
315
- page: pageOf(item),
316
- base: str(item.baseOriginal),
317
- compare: str(item.compareOriginal),
318
- }));
319
- if (!rendered.payload) {
320
- return {
321
- status: 'COMPLETE',
322
- data: {
323
- noCard: true,
324
- planned: rendered.planned,
325
- cardCount: 0,
326
- baseFileId,
327
- compareFileId,
328
- baseFileName,
329
- compareFileName,
330
- stats: stat,
331
- changes: slimChanges,
332
- hint: rendered.hint || '过滤后无可用动作(按 contract-action-engine.md §7 处理)',
333
- },
334
- };
335
- }
336
- const check = selfCheckActionCard(rendered.payload, {
337
- fileId: '',
338
- fileName: baseFileName,
339
- aiid,
340
- summaryHtml: '',
341
- reportHtml: '',
342
- compareHtml: reportHtml,
343
- baseFileId,
344
- compareFileId,
345
- });
346
- const text = `<browsertool>\n${JSON.stringify(rendered.payload, null, 1)}\n</browsertool>`;
347
- for (const problem of verifyBrowsertoolText(text).problems) {
348
- const message = `browsertool 文本校验:${problem}`;
349
- if (!check.problems.includes(message))
350
- check.problems.push(message);
351
- }
352
- return {
353
- status: 'COMPLETE',
354
- data: {
355
- noCard: false,
356
- baseFileId,
357
- compareFileId,
358
- baseFileName,
359
- compareFileName,
360
- stats: stat,
361
- changes: slimChanges,
362
- planned: rendered.planned,
363
- cardCount: rendered.cardCount,
364
- title: str(rendered.payload.arguments?.title),
365
- reportHtmlLength: reportHtml.length,
366
- selfCheck: check.problems,
367
- selfCheckWarnings: check.warnings,
368
- selfCheckChecks: check.checks,
369
- selfCheckPassed: check.problems.length === 0,
370
- browsertool: text,
371
- note: check.problems.length
372
- ? '自检未通过,禁止交付;请按 selfCheck 修正后重跑'
373
- : '一条命令完成上传、比对、报告与出卡;报告不落本地文件,卡片 artifact 面板自带下载',
374
- },
375
- };
376
- },
377
- };
378
- export const contractCompareScreenOperations = [contractCompareScreenOperation];