weaver-work-cli 0.1.62 → 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 (272) 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-5KJ7T774.js → invoice-4WY32PR2.js} +4 -4
  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/meeting/operations/eb/conflict.js +60 -2
  122. package/dist/shortcuts/meeting/operations/eb/create-flow.js +116 -7
  123. package/dist/shortcuts/meeting/operations/eb/create-form-link.js +380 -0
  124. package/dist/shortcuts/meeting/operations/eb/index.js +2 -0
  125. package/dist/shortcuts/meeting/operations/eb/room-recommend.js +1 -3
  126. package/dist/shortcuts/recruit-stage/batch-store.js +44 -0
  127. package/dist/shortcuts/recruit-stage/context.js +75 -9
  128. package/dist/shortcuts/recruit-stage/manifest.js +1 -1
  129. package/dist/shortcuts/recruit-stage/operations/jd-create.js +33 -22
  130. package/dist/shortcuts/recruit-stage/operations/list.js +187 -37
  131. package/dist/shortcuts/recruit-stage/operations/registry.js +2 -0
  132. package/dist/shortcuts/recruit-stage/operations/resume-import.js +231 -313
  133. package/dist/shortcuts/recruit-stage/operations/search.js +5 -5
  134. package/dist/shortcuts/recruit-stage/operations/tag.js +286 -0
  135. package/dist/shortcuts/workflow/endpoints.js +2 -0
  136. package/dist/shortcuts/workflow/operations/form.js +12 -15
  137. package/dist/shortcuts/workflow/operations/read.js +8 -8
  138. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoListRows.js +3 -2
  139. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +7 -6
  140. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +4 -3
  141. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.group.js +1 -0
  142. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +33 -6
  143. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.prepareQuery.js +153 -0
  144. package/dist/shortcuts/workflow/operations/todoSmartConvert/workflowClarification.js +232 -0
  145. package/dist/shortcuts/workflow/operations.js +5 -0
  146. package/docs/contract.md +2 -2
  147. package/docs/e10-auth.md +28 -0
  148. package/docs/ehr.md +1 -1
  149. package/package.json +1 -1
  150. package/skills/weaver-e10-hrm/SKILL.md +3 -3
  151. package/skills/weaver-e10-hrm/references/employee.md +13 -2
  152. package/skills/weaver-e10-jinchengda/SKILL.md +237 -347
  153. package/skills/weaver-e10-jinchengda/references/contract-agent-entry.md +7 -14
  154. package/skills/weaver-e10-jinchengda/references/contract-ai-assistant.md +21 -12
  155. package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +109 -185
  156. package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +12 -4
  157. package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +28 -20
  158. package/skills/weaver-e10-jinchengda/references/contract-clause-recommender.md +12 -17
  159. package/skills/weaver-e10-jinchengda/references/contract-clause-reference-save.md +7 -13
  160. package/skills/weaver-e10-jinchengda/references/contract-command-index.md +21 -12
  161. package/skills/weaver-e10-jinchengda/references/contract-compare-report-template.html +10 -18
  162. package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +18 -17
  163. package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +114 -61
  164. package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +8 -2
  165. package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +73 -104
  166. package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +32 -37
  167. package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +12 -10
  168. package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +70 -82
  169. package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +37 -33
  170. package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +94 -27
  171. package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +5 -5
  172. package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +9 -15
  173. package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +9 -4
  174. package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +59 -32
  175. package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +7 -5
  176. package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +21 -13
  177. package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +13 -13
  178. package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +6 -5
  179. package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +250 -0
  180. package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +11 -20
  181. package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +203 -54
  182. package/skills/weaver-e10-jinchengda/references/contract-request-status.md +4 -11
  183. package/skills/weaver-e10-jinchengda/references/contract-request-write.md +11 -17
  184. package/skills/weaver-e10-jinchengda/references/contract-signing-subjects.md +11 -17
  185. package/skills/weaver-e10-jinchengda/references/contract-subject-create.md +5 -11
  186. package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +56 -7
  187. package/skills/weaver-e10-jinchengda/references/contract-workflow-discovery.md +10 -16
  188. package/skills/weaver-e10-jinchengda/references/orchestration.md +31 -33
  189. package/skills/weaver-e10-jucailin/SKILL.md +6 -7
  190. package/skills/weaver-e10-jucailin/agents/openai.yaml +52 -0
  191. package/skills/weaver-e10-jucailin/references/recruit-interview-overview.md +8 -6
  192. package/skills/weaver-e10-jucailin/references/recruit-read.md +4 -0
  193. package/skills/weaver-e10-jucailin/references/recruit-screening-to-interview-sop.md +2 -2
  194. package/skills/weaver-e10-jucailin/references/recruit-write.md +4 -4
  195. package/skills/weaver-e10-meeting/SKILL.md +83 -531
  196. package/skills/weaver-e10-meeting/references/commands-table.md +61 -0
  197. package/skills/weaver-e10-meeting/references/create-commands.md +136 -0
  198. package/skills/weaver-e10-meeting/references/create-flow.md +3 -1
  199. package/skills/weaver-e10-meeting/references/create-guardrails.md +14 -8
  200. package/skills/weaver-e10-meeting/references/custom-fields.md +40 -0
  201. package/skills/weaver-e10-meeting/references/eb-contracts.md +60 -0
  202. package/skills/weaver-e10-meeting/references/invitation.md +69 -0
  203. package/skills/weaver-e10-meeting/references/minutes-pipeline.md +119 -0
  204. package/skills/weaver-e10-meeting/references/pitfalls.md +1 -1
  205. package/skills/weaver-e10-meeting/references/room-recommend.md +88 -0
  206. package/skills/weaver-e10-recruit-stage/SKILL.md +317 -266
  207. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +22 -27
  208. package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +1 -1
  209. package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +30 -27
  210. package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +2 -6
  211. package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +12 -10
  212. package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +2 -0
  213. package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +23 -19
  214. package/skills/weaver-e10-recruit-stage/references/recruit-jd-template.md +3 -1
  215. package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +18 -16
  216. package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +25 -23
  217. package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +10 -10
  218. package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +2 -2
  219. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +11 -11
  220. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +150 -85
  221. package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +14 -18
  222. package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +1 -1
  223. package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +173 -0
  224. package/skills/weaver-e10-recruit-stage/references/recruit-tag-taxonomy.json +76 -0
  225. package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +3 -1
  226. package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +2 -2
  227. package/skills/weaver-e10-workflow/SKILL.md +49 -32
  228. package/skills/weaver-e10-workflow/references/todo-dialogue.md +67 -34
  229. package/skills/weaver-e10-workflow/references/todo-smart-convert.md +65 -51
  230. package/skills/weaver-e10-workflow/references/workflow-agent-entry.md +18 -11
  231. package/skills/weaver-e10-workflow/references/workflow-create.md +2 -2
  232. package/skills/weaver-e10-workflow/references/workflow-memory.md +19 -37
  233. package/skills/weaver-e10-workflow/references/workflow-query.md +25 -22
  234. package/skills/weaver-e10-workflow/references/workflow-view.md +1 -1
  235. package/skills/weaver-e10-workflow/tools/todo-summary.cjs +318 -110
  236. package/skills/weaver-e10-yimiaoban/SKILL.md +10 -10
  237. package/skills/weaver-e10-yimiaoban/references/person.md +1 -1
  238. package/skills/weaver-e10-yimiaoban/references/safety-boundaries.md +1 -1
  239. package/skills/weaver-e10-yimiaoban/references/source-manifest.json +9 -9
  240. package/dist/chunks/chunk-6QYNE6HE.js +0 -658
  241. package/dist/chunks/chunk-SHYQUBY3.js +0 -48
  242. package/dist/shortcuts/contract/operations/card-action.js +0 -1266
  243. package/dist/shortcuts/contract/operations/card-plan.js +0 -393
  244. package/dist/shortcuts/contract/operations/card.js +0 -232
  245. package/dist/shortcuts/contract/operations/compare-screen.js +0 -378
  246. package/dist/shortcuts/contract/operations/quote-to-contract.js +0 -495
  247. package/dist/shortcuts/contract/operations/quotescreen.js +0 -529
  248. package/dist/shortcuts/contract/operations/summary-validate.js +0 -293
  249. package/dist/shortcuts/contract/operations/summary.js +0 -187
  250. package/dist/shortcuts/ehr/recruit-stage/batch-store.js +0 -78
  251. package/dist/shortcuts/ehr/recruit-stage/context.js +0 -231
  252. package/dist/shortcuts/ehr/recruit-stage/continuation.js +0 -74
  253. package/dist/shortcuts/ehr/recruit-stage/errors.js +0 -65
  254. package/dist/shortcuts/ehr/recruit-stage/fs-scan.js +0 -165
  255. package/dist/shortcuts/ehr/recruit-stage/host.js +0 -109
  256. package/dist/shortcuts/ehr/recruit-stage/operations/interview-arrange.js +0 -1065
  257. package/dist/shortcuts/ehr/recruit-stage/operations/interview-feedback.js +0 -295
  258. package/dist/shortcuts/ehr/recruit-stage/operations/jd-create.js +0 -961
  259. package/dist/shortcuts/ehr/recruit-stage/operations/list.js +0 -431
  260. package/dist/shortcuts/ehr/recruit-stage/operations/registry.js +0 -50
  261. package/dist/shortcuts/ehr/recruit-stage/operations/resume-import.js +0 -1655
  262. package/dist/shortcuts/ehr/recruit-stage/operations/search.js +0 -158
  263. package/dist/shortcuts/ehr/recruit-stage/operations/types.js +0 -34
  264. package/dist/shortcuts/ehr/recruit-stage/runtime.js +0 -31
  265. package/dist/shortcuts/ehr/recruit-stage/school-tiers.json +0 -318
  266. package/dist/shortcuts/ehr/recruit-stage/shared.js +0 -887
  267. package/skills/weaver-e10-jinchengda/references/contract-action-card-template.html +0 -22
  268. package/skills/weaver-e10-jinchengda/references/contract-action-card.md +0 -554
  269. package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +0 -279
  270. package/skills/weaver-e10-jinchengda/references/contract-card-render-internals.md +0 -483
  271. package/skills/weaver-e10-jinchengda/references/contract-template-selector.md +0 -46
  272. package/skills/weaver-e10-recruit-stage/lib/recruit-resume-photo.py +0 -194
@@ -408,6 +408,12 @@ const performanceContracts = [
408
408
  searchParamJson: { type: 'string' },
409
409
  pageSize: { type: 'integer', minimum: 1, maximum: 1000 },
410
410
  maxPages: { type: 'integer', minimum: 1, maximum: 100 },
411
+ ledgerIntent: {
412
+ type: 'string',
413
+ enum: ['detail', 'aggregate', 'compare', 'crosscheck', 'report'],
414
+ description: '取数意图:detail 表示只是要看明细,会被拦下并引导改用台账卡;'
415
+ + 'aggregate / compare / crosscheck / report 表示要页面给不出的结论',
416
+ },
411
417
  }, ['apiPrefix', 'listId', 'appId', 'objId']),
412
418
  },
413
419
  {
@@ -471,50 +477,46 @@ const quoteContracts = [
471
477
  }, ['path']),
472
478
  },
473
479
  {
474
- name: 'contract.quotescreen.run',
480
+ name: 'contract.quotescreen.recognize',
475
481
  risk: 'local-file-write',
476
- fixed: { local: true, kind: 'quote-screen' },
477
- inputSchema: readSchema({
478
- file: { type: 'string', minLength: 1, maxLength: 4096, description: '报价单 .xlsx 绝对路径' },
479
- outDir: { type: 'string', minLength: 1, maxLength: 4096, description: '中间产物与卡片输出目录' },
480
- mode: { type: 'string', enum: ['auto', 'stage1', 'stage2'], description: '默认 auto:提取→解析→自动识客户→金额校验→出卡片;stage1 只出网格与骨架;stage2 只出文字摘要与卡片' },
481
- sheet: { type: 'string', description: '指定工作表名;不传取第一个(多 sheet 时会写 warnings 提示)' },
482
- summaryData: { type: 'string', maxLength: 4096, description: 'mode=stage2 时的摘要 JSON 路径(模型产出)' },
483
- docType: { type: 'string', description: 'quote | tender,默认 quote' },
484
- title: { type: 'string', description: '卡片标题,默认由动作引擎计算' },
485
- companyName: { type: 'string', description: '对方企业全称(模型判定后传入),用于追加「查对方资信」卡' },
486
- baseUrl: { type: 'string', description: '当前环境 baseUrl;缺省取内置默认值' },
487
- head: { type: 'integer', minimum: 1, maximum: 200, description: '网格预览头部行数,默认 12' },
488
- }, ['file', 'outDir']),
482
+ fixed: { local: true, kind: 'quote-recognize' },
483
+ inputSchema: readSchema({
484
+ fileId: { type: 'string', minLength: 1, description: 'flow.launch 返回的 workflow fileId(唯一来源)' },
485
+ flow: { type: 'string', enum: ['契约锁', '新客户', '常规二次销售', '老客户增值'], description: '合同类型;不传则按报价单类型标识识别,判不出返回 needsConfirm 待确认' },
486
+ customerName: { type: 'string', minLength: 1, description: '报价单客户全称(即最终用户)' },
487
+ contractTitle: { type: 'string', maxLength: 400, description: '合同名称;缺省按「客户全称 + 合同管理系统软件产品及实施服务购买合同」生成' },
488
+ contractFileName: { type: 'string', maxLength: 400, description: '合同文件落盘名;缺省与 contractTitle 同名,通用名(如「合同」)会被纠正为合同名称' },
489
+ totalAmount: { type: 'number', description: '报价单最终优惠报价(不是标准价合计)' },
490
+ ourCompany: { type: 'string', description: '我方签约主体,默认「泛微网络科技股份有限公司」' },
491
+ sections: { type: 'array', items: { type: 'object' }, description: '报价单费用分节(name + amount),用于归纳合同背景说明' },
492
+ background: { type: 'string', maxLength: 2000, description: '合同背景说明;不传按报价单分节自动归纳' },
493
+ quoteTitle: { type: 'string', description: '报价单标题,供合同类型识别' },
494
+ quoteFileName: { type: 'string', description: '报价单文件名,供合同类型识别' },
495
+ verified: { type: 'boolean', description: '上游 slots.fill 校验是否 PASS;false 时全部 origin 置空,默认 true' },
496
+ out: { type: 'string', maxLength: 4096, description: '可选:recognize.json 输出路径' },
497
+ }, ['fileId', 'customerName', 'totalAmount']),
489
498
  },
490
499
  {
491
- name: 'contract.quotescreen.tocontract',
492
- risk: 'local-file-write',
493
- fixed: { local: true, kind: 'quote-to-contract' },
494
- inputSchema: readSchema({
495
- quoteFile: { type: 'string', minLength: 1, maxLength: 4096, description: '报价单 .xlsx 绝对路径' },
496
- outDir: { type: 'string', minLength: 1, maxLength: 4096, description: '中间产物与合同输出目录' },
497
- out: { type: 'string', maxLength: 4096, description: '可选:合同 docx 输出路径;缺省 outDir/{合同名称}.docx' },
498
- sheet: { type: 'string', description: '指定工作表名;不传取第一个' },
499
- customerName: { type: 'string', description: '客户全称;缺省从报价单「客户名称:」自动识别' },
500
- contractTitle: { type: 'string', description: '合同名称;缺省按「客户全称 + 标的 + 软件产品及实施服务购买合同」生成' },
501
- subjectTitle: { type: 'string', description: '标的表述,默认「协同办公系统(e-cology)」' },
500
+ name: 'contract.quotescreen.submit',
501
+ risk: 'write',
502
+ fixed: { local: false, kind: 'quote-submit' },
503
+ inputSchema: readSchema({
504
+ contractPath: { type: 'string', minLength: 1, maxLength: 4096, description: '生成的合同 docx 绝对路径(quotescreen.tocontract 的 contract.path)' },
505
+ flow: { type: 'string', enum: ['契约锁', '新客户', '常规二次销售', '老客户增值'], description: '合同类型;须由编排层按报价单标识确认后传入' },
506
+ customerName: { type: 'string', minLength: 1, description: '报价单客户全称(即最终用户)' },
507
+ totalAmount: { type: 'number', description: '报价单最终优惠报价(不是标准价合计)' },
508
+ contractTitle: { type: 'string', maxLength: 400, description: '合同名称;缺省按「客户全称 + 合同管理系统软件产品及实施服务购买合同」生成' },
509
+ fileName: { type: 'string', maxLength: 400, description: '合同文件名;缺省取 contractPath 的文件名,通用名(如「合同」)会被纠正为合同名称' },
502
510
  ourCompany: { type: 'string', description: '我方签约主体,默认「泛微网络科技股份有限公司」' },
503
- signDate: { type: 'string', description: '签订/生效日期文本;缺省取当天' },
504
- signPlace: { type: 'string', description: '签订地点,默认「上海市」' },
505
- payments: {
506
- type: 'array',
507
- items: { type: 'number' },
508
- description: '付款分期:传比例(如 0.3/0.3/0.3/0.1)或绝对金额数组;缺省 30/30/30/10',
509
- },
510
- templateFileId: { type: 'string', description: '指定范文 fileId;不传则走智能推荐取 rank1 且 matchScore ≥ 阈值' },
511
- templatePath: { type: 'string', maxLength: 4096, description: '已下载的本地模板 docx 路径;传了即跳过推荐与下载' },
512
- templateModule: { type: 'string', description: '模板下载 module,默认 ebuilderform' },
513
- recommendContent: { type: 'string', maxLength: 4000, description: '自定义范文推荐需求描述;缺省按报价单自动拼装' },
514
- minMatchScore: { type: 'number', description: '范文最低匹配分,默认 85;低于即中止并提示指定模板' },
515
- card: { type: 'boolean', description: '默认 true:合同校验通过后一并渲染动作卡片' },
516
- strict: { type: 'boolean', description: '透传 slots.fill:必填位点未覆盖即判不通过,默认 true' },
517
- }, ['quoteFile', 'outDir']),
511
+ sections: { type: 'array', items: { type: 'object' }, description: '报价单费用分节(name + amount),用于归纳合同背景说明' },
512
+ background: { type: 'string', maxLength: 2000, description: '合同背景说明;不传按报价单分节自动归纳' },
513
+ quoteTitle: { type: 'string', description: '报价单标题,供合同类型识别' },
514
+ quoteFileName: { type: 'string', description: '报价单文件名,供合同类型识别' },
515
+ verified: { type: 'boolean', description: '上游 slots.fill 校验是否 PASS;false 时全部 origin 置空,默认 true' },
516
+ tab: { type: 'string', enum: ['Extract', 'Summary', 'RiskReview', 'Credit', 'termComponent'], description: '合同智能页页签,默认 Extract' },
517
+ contractTermIds: { type: 'string', description: '待引用条款 ID,多个逗号拼接;无条款引用不传' },
518
+ reuseFileId: { type: 'string', description: '已存在的 workflow fileId(仅复用场景);一般不传,由本操作上传产生' },
519
+ }, ['contractPath', 'flow', 'customerName', 'totalAmount']),
518
520
  },
519
521
  {
520
522
  name: 'contract.triage.extract',
@@ -547,6 +549,17 @@ const quoteContracts = [
547
549
  limit: { type: 'integer', minimum: 1, maximum: 1000, description: '明细最多返回条数,默认 20' },
548
550
  }),
549
551
  },
552
+ {
553
+ name: 'contract.ledger.metrics',
554
+ risk: 'read',
555
+ fixed: { local: true, kind: 'ledger-metrics' },
556
+ inputSchema: readSchema({
557
+ key: {
558
+ type: 'string',
559
+ description: '统计口径键或中文名(合同业绩 / 合同已收款 / eteams业绩);不传返回全部口径',
560
+ },
561
+ }),
562
+ },
550
563
  {
551
564
  name: 'contract.ledger.guard',
552
565
  risk: 'read',
@@ -569,105 +582,57 @@ const quoteContracts = [
569
582
  }, ['menu', 'total']),
570
583
  },
571
584
  {
572
- name: 'contract.summary.render',
573
- risk: 'local-file-write',
574
- fixed: { local: true, kind: 'summary-render' },
575
- inputSchema: readSchema({
576
- data: { type: 'string', minLength: 1, maxLength: 4096, description: '摘要数据 JSON 文件路径' },
577
- out: { type: 'string', minLength: 1, maxLength: 4096, description: '输出 HTML 绝对路径' },
578
- }, ['data', 'out']),
579
- },
580
- {
581
- name: 'contract.card.render',
582
- risk: 'local-file-write',
583
- fixed: { local: true, kind: 'card-render' },
584
- inputSchema: readSchema({
585
- data: { type: 'string', minLength: 1, maxLength: 4096, description: '卡片数据 JSON 文件路径(cards 数组 + title/width/hint)' },
586
- out: { type: 'string', minLength: 1, maxLength: 4096, description: '输出卡片 HTML 绝对路径(即 customParams.html 内容)' },
587
- summary: { type: 'string', minLength: 1, maxLength: 4096, description: '可选:摘要数据 JSON 路径,渲染后内嵌为 artifact 动作的内容' },
588
- browsertool: { type: 'string', minLength: 1, maxLength: 4096, description: '可选:同时输出完整 browsertool JSON 的路径' },
589
- baseUrl: { type: 'string', minLength: 1, maxLength: 2048, description: '可选:当前 E10 环境地址,缺省取登录会话' },
590
- }, ['data', 'out']),
591
- },
592
- {
593
- name: 'contract.card.plan',
585
+ name: 'contract.ledger.route',
594
586
  risk: 'read',
595
- fixed: { local: true, kind: 'card-plan' },
587
+ fixed: { local: true, kind: 'ledger-route' },
596
588
  inputSchema: readSchema({
597
- context: {
589
+ query: { type: 'string', description: '用户原话,用于识别统计信号(多少/几份/合计/排名/同比/报表等)' },
590
+ menu: {
591
+ type: 'string',
592
+ description: '台账名(直销合同/直销业绩/渠道订单/渠道订单-商务/合同收款/项目验收);不传按条件推断',
593
+ },
594
+ intent: {
595
+ type: 'string',
596
+ enum: ['detail', 'aggregate', 'compare', 'crosscheck', 'report'],
597
+ description: '显式诉求:detail 只看明细;其余表示要页面给不出的结论',
598
+ },
599
+ conditions: {
598
600
  type: 'object',
599
- description: '上下文状态对象(scene / docType / flowKey / reviewed / submitted 等);优先于 contextFile / contextJson',
601
+ description: '条件对象:person / team / yearMonth / dateRange / customer / contractNo',
600
602
  },
601
- contextFile: { type: 'string', minLength: 1, maxLength: 4096, description: '上下文状态 JSON 文件路径' },
602
- contextJson: { type: 'string', minLength: 1, description: '上下文状态 JSON 字符串' },
603
603
  }),
604
604
  },
605
605
  {
606
- name: 'contract.card.ebdf-list',
606
+ name: 'contract.ledger.card',
607
607
  risk: 'local-file-write',
608
- fixed: { local: true, kind: 'ebdf-list-card' },
608
+ fixed: { local: true, kind: 'ledger-card' },
609
609
  inputSchema: readSchema({
610
610
  menu: { type: 'string', description: '菜单名或别名(直销合同/直销业绩/合同收款/项目验收/渠道订单/渠道订单-商务);前四个用台账页卡,合同收款与项目验收用列表卡' },
611
611
  pageId: { type: 'string', pattern: '^\\d{6,}$', description: '直接给 pageId;与 menu 二选一,同时给时以 pageId 为准(按列表卡生成)' },
612
- origin: { type: 'string', minLength: 1, description: '必填:scheme+host,不带路径或 query,不含 {baseUrl}' },
612
+ origin: { type: 'string', minLength: 1, description: '可选:scheme+host,不带路径或 query;缺省取当前会话 baseUrl 的 scheme+host。不要传 {baseUrl} 占位符' },
613
613
  title: { type: 'string', description: '卡片标题,默认取菜单名' },
614
614
  callId: { type: 'string', description: '默认 ledger-<菜单>-<YYYYMMDDHHmm>-01;列表卡为 ebdf-list-<菜单>-<YYYYMMDDHHmm>-01' },
615
615
  comParamPairs: { type: 'array', items: { type: 'string' }, description: '台账页:形如 khmc=泛微 的台账键(日期/金额区间请用 comParamsJson);列表卡:形如 field_<字段id>=<值>;与 comParamsJson 互斥' },
616
616
  comParamsJson: { type: 'string', description: '筛选对象的 JSON 字符串:台账页传 { "khmc": "泛微", "qdrq": ["2024-01-01", "2024-12-31"] };列表卡传 comParams 对象;与 comParamPairs 互斥' },
617
617
  out: { type: 'string', maxLength: 4096, description: '可选:卡片 JSON 输出路径' },
618
- }, ['origin']),
618
+ }),
619
619
  },
620
620
  {
621
- name: 'contract.card.risk-report',
621
+ name: 'contract.review.report',
622
622
  risk: 'local-file-write',
623
- fixed: { local: true, kind: 'risk-report-card' },
623
+ fixed: { local: true, kind: 'review-report' },
624
624
  inputSchema: readSchema({
625
625
  ref: { type: 'string', maxLength: 4096, description: 'CLI 落盘的审查结果 JSON(含 envelope);与 data 二选一' },
626
626
  data: { type: 'string', maxLength: 4096, description: '已归一化的 report_data.json;与 ref 二选一' },
627
- out: { type: 'string', maxLength: 4096, description: '可选:HTML 输出路径(不传则不落盘,报告仅作卡片交付)' },
628
- payload: { type: 'string', maxLength: 4096, description: '可选:同时输出 browsertool payload JSON 的路径' },
627
+ out: { type: 'string', minLength: 1, maxLength: 4096, description: '必填:报告 HTML 产物输出绝对路径。报告只以产物文件交付(不出卡片、不注入面板)' },
629
628
  dumpData: { type: 'string', maxLength: 4096, description: '可选:只抽取数据并保存到此路径' },
630
629
  template: { type: 'string', maxLength: 4096, description: '可选:自定义模板路径;缺省用内置模板' },
631
630
  contract: { type: 'string', description: '合同名称' },
632
631
  partyA: { type: 'string', description: '甲方' },
633
632
  partyB: { type: 'string', description: '乙方' },
634
633
  reviewDate: { type: 'string', description: '审查日期' },
635
- fileId: { type: 'string', description: '审查 fileId(打开详情用)' },
636
- fileName: { type: 'string', description: '审查文件名' },
637
- aiid: { type: 'string', description: '审查助手 id,默认 1326842382967570463' },
638
- baseUrl: { type: 'string', maxLength: 2048, description: 'E10 地址,默认 https://www.e-cology.com.cn' },
639
- cardId: { type: 'string', description: '卡片唯一 id' },
640
- callId: { type: 'string', description: 'payload callId' },
641
- title: { type: 'string', description: '卡片标题' },
642
- }),
643
- },
644
- {
645
- name: 'contract.card.action',
646
- risk: 'local-file-write',
647
- fixed: { local: true, kind: 'action-card-render' },
648
- inputSchema: readSchema({
649
- context: { type: 'object', description: '上下文状态对象(scene / docType / flowKey / reviewed / submitted 等);优先于 contextFile / contextJson' },
650
- contextFile: { type: 'string', maxLength: 4096, description: '上下文状态 JSON 文件路径;都缺省时按产物目录找 card_context.json / first_screen_result.json' },
651
- contextJson: { type: 'string', description: '上下文状态 JSON 字符串' },
652
- fileId: { type: 'string', description: '审查/流程用的 fileId' },
653
- fileName: { type: 'string', description: '合同文件名(打开审查详情用)' },
654
- flowKey: { type: 'string', enum: ['契约锁', '新客户', '常规二次销售', '老客户增值'], description: '合同流程类型;决定「发起流程」卡是否生成' },
655
- companyName: { type: 'string', description: '对方企业全称;决定「查对方资信」卡是否生成' },
656
- summaryHtml: { type: 'string', maxLength: 4096, description: '摘要 HTML 文件路径(内嵌为「查看合同摘要」内容)' },
657
- reportHtml: { type: 'string', maxLength: 4096, description: '审查报告 HTML 文件路径(内嵌为「导出审查报告」内容)' },
658
- compareHtml: { type: 'string', maxLength: 4096, description: '比对报告 HTML 文件路径(内嵌为「生成比对报告」内容)' },
659
- aiExtraId: { type: 'string', description: '要素预填识别记录 ID;缺省从 context 的 aiExtraId 取' },
660
- attachmentFieldId: { type: 'string', description: '合同文件在表单上的附件字段 ID;缺省从 context 取' },
661
- fieldAssignKeys: { type: 'string', description: '赋值字段 ID,逗号拼接字符串(非数组);缺省取合同文件字段或 context 的 fieldAssignKeys' },
662
- baseUrl: { type: 'string', maxLength: 2048, description: 'E10 地址,默认 https://www.e-cology.com.cn' },
663
- aiid: { type: 'string', description: '审查助手 id,默认 1326842382967570463' },
664
- cardId: { type: 'string', description: '卡片唯一 id,默认 card-<YYYYMMDDHHmm>' },
665
- callId: { type: 'string', description: 'payload callId,默认 contract-card-<stamp>-01' },
666
- title: { type: 'string', description: '卡片标题,默认「可做的 N 件事」' },
667
- only: { type: 'string', description: '只输出指定动作,逗号分隔(如 launch-flow);仍由本操作生成' },
668
- template: { type: 'string', maxLength: 4096, description: '可选:自定义模板路径;缺省用内置模板' },
669
- out: { type: 'string', maxLength: 4096, description: '可选:写入 browsertool 文件;不传则只在结果中返回' },
670
- }),
634
+ cardId: { type: 'string', description: '报告根节点 id' },
635
+ }, ['out']),
671
636
  },
672
637
  {
673
638
  name: 'contract.elements.build',
@@ -690,34 +655,22 @@ const quoteContracts = [
690
655
  fixed: { local: true, kind: 'first-screen-orchestration' },
691
656
  inputSchema: readSchema({
692
657
  file: { type: 'string', minLength: 1, maxLength: 4096, description: '主合同文件绝对路径' },
693
- outDir: { type: 'string', minLength: 1, maxLength: 4096, description: '产物目录(放中间 JSON、summary.html、card.html)' },
694
- attach: { type: 'array', items: { type: 'string' }, description: '随附文件(协议/补充协议/清单);预审一并上传,发起流程的附件字段只挂主文件' },
658
+ outDir: { type: 'string', minLength: 1, maxLength: 4096, description: '产物目录(放中间 JSON 与 first_screen_result.json)' },
659
+ attach: { type: 'array', items: { type: 'string' }, description: '随附文件(协议/补充协议/清单);与主文件一起走流程通道上传并全部挂到表单附件字段' },
695
660
  flow: { type: 'string', enum: ['契约锁', '新客户', '常规二次销售', '老客户增值'], description: '留空则从 triage.json 的 flowKey 读取' },
696
661
  triage: { type: 'string', maxLength: 4096, description: 'triage.json 路径;缺省取 outDir/triage.json' },
697
- aiFill: { type: 'string', maxLength: 4096, description: 'ai_fill.json(elements + summary 合并);给了就自动拆出 summary_data.json' },
698
- summaryData: { type: 'string', maxLength: 4096, description: 'summary_data.json 路径;不传则跳过摘要渲染' },
662
+ aiFill: { type: 'string', maxLength: 4096, description: 'ai_fill.json(只填 elements)' },
699
663
  recognizeFile: { type: 'string', maxLength: 4096, description: 'recognizeResult 的 JSON 文件;不传则用内置字段表自动组装,拿不到就降级' },
700
- companyName: { type: 'string', description: '对方主体全称,用于资信卡' },
664
+ companyName: { type: 'string', description: '对方主体全称,用于资信查询' },
701
665
  counterparty: { type: 'boolean', description: '是否存在可查的对方主体' },
702
- skipUpload: { type: 'boolean', description: '跳过预审上传(仅需流程页时)' },
666
+ tab: {
667
+ type: 'string',
668
+ enum: ['Extract', 'Summary', 'RiskReview', 'Credit', 'termComponent'],
669
+ description: '合同智能页页签,按用户本轮行为取值;缺省 Extract(发起流程/要素提取)',
670
+ },
703
671
  baseUrl: { type: 'string', maxLength: 2048, description: 'E10 地址,默认 https://www.e-cology.com.cn' },
704
- aiid: { type: 'string', description: '审查助手 id(透传给卡片)' },
705
- printCard: { type: 'boolean', description: '把成品卡片 HTML 一并返回(data.cardHtmlContent)' },
706
672
  }, ['file', 'outDir']),
707
673
  },
708
- {
709
- name: 'contract.summary.validate',
710
- risk: 'local-file-write',
711
- fixed: { local: true, kind: 'summary-validate' },
712
- inputSchema: readSchema({
713
- summary: { type: 'string', minLength: 1, maxLength: 4096, description: '模型生成的 summary_data.json 路径' },
714
- text: { type: 'string', maxLength: 4096, description: '可选:contract_text.txt,用于金额回查' },
715
- triage: { type: 'string', maxLength: 4096, description: '可选:triage.json;配合 elements 合流要素' },
716
- elements: { type: 'string', maxLength: 4096, description: '可选:模型语义提取的 elements.json' },
717
- outSummary: { type: 'string', maxLength: 4096, description: '可选:校验通过后落地的 summary_data.json 路径' },
718
- strict: { type: 'boolean', description: '可选:WARN 也视为不通过(仅影响 data.pass,不改变 fails)' },
719
- }, ['summary']),
720
- },
721
674
  {
722
675
  name: 'contract.file.download',
723
676
  risk: 'local-file-write',
@@ -797,55 +750,9 @@ export const contractOperations = [
797
750
  fixed: { method: 'GET', path: '/api/ebd/contract/type/allTypes' },
798
751
  inputSchema: readSchema({}),
799
752
  },
800
- {
801
- name: 'contract.template.tree',
802
- risk: 'read',
803
- auth: AUTH,
804
- fixed: { method: 'GET', path: '/api/ebd/contract/tpltree/queryList' },
805
- inputSchema: readSchema({
806
- treeName: { type: 'string' },
807
- parentId: idString,
808
- treeType: { type: 'integer' },
809
- isSystem: { type: 'integer' },
810
- useType: { type: 'integer' },
811
- appId: idString,
812
- }),
813
- },
814
- {
815
- name: 'contract.template.list',
816
- risk: 'read',
817
- auth: AUTH,
818
- fixed: { method: 'GET', path: '/api/ebd/contract/tplinfo/getListPage', defaults: { pageNo: 1, pageSize: 10 } },
819
- inputSchema: readSchema({
820
- templateName: { type: 'string' },
821
- templateDesc: { type: 'string' },
822
- belongId: idString,
823
- contractType: idString,
824
- templateStatus: { type: 'integer', enum: [0, 1] },
825
- source: { type: 'integer', enum: [0, 1, 2] },
826
- sourceType: { type: 'string' },
827
- templateVersion: { type: 'string' },
828
- operateType: { type: 'integer' },
829
- useType: { type: 'integer' },
830
- code: { type: 'string' },
831
- appId: idString,
832
- formId: idString,
833
- orgId: idString,
834
- belongSub: { type: 'string' },
835
- outTime: { type: 'boolean' },
836
- ...pageNoSize,
837
- }),
838
- },
839
- {
840
- name: 'contract.template.detail',
841
- risk: 'read',
842
- auth: AUTH,
843
- fixed: { method: 'GET', path: '/api/ebd/contract/tplinfo/getById' },
844
- inputSchema: readSchema({ id: idString }, ['id']),
845
- },
846
753
  {
847
754
  // 范文库(「合同范文管理」EB 表单)。本技能内「模板」== 「范文」,
848
- // 与合同模板库 tplinfo(contract.template.*)是互不相通的两个对象。
755
+ // 与合同模板库 tplinfo 是互不相通的两个对象(tplinfo 的 contract.template.* 已于 2026-11-19 移除)。
849
756
  name: 'contract.modeltext.list',
850
757
  risk: 'read',
851
758
  auth: AUTH,
@@ -1357,67 +1264,6 @@ export const contractOperations = [
1357
1264
  otherParams: { type: 'string' },
1358
1265
  }, ['requestId']),
1359
1266
  },
1360
- {
1361
- name: 'contract.review.upload',
1362
- risk: 'read-with-upload',
1363
- auth: AUTH,
1364
- fixed: {
1365
- method: 'POST',
1366
- path: '/api/file/preUploadCheck',
1367
- followUpPath: '/api/file/module/upload',
1368
- module: 'ebContract',
1369
- createDoc: true,
1370
- pagePath: '/sp/contract/business/ai-contract',
1371
- prewarmPath: '/api/ebd/contract/ai/saveInternalRecord',
1372
- prewarmFlowId: '1269716062340284522',
1373
- },
1374
- inputSchema: readSchema({
1375
- paths: {
1376
- type: 'array',
1377
- minItems: 1,
1378
- maxItems: 10,
1379
- items: { type: 'string', minLength: 1, maxLength: 1000 },
1380
- },
1381
- prewarm: {
1382
- type: 'boolean',
1383
- description: '默认 true:上传成功即触发预审预热;传 false 可关闭',
1384
- },
1385
- }, ['paths']),
1386
- },
1387
- {
1388
- name: 'contract.review.prewarm',
1389
- risk: 'write',
1390
- auth: AUTH,
1391
- fixed: {
1392
- method: 'POST',
1393
- path: '/api/ebd/contract/ai/saveInternalRecord',
1394
- flowId: '1269716062340284522',
1395
- purpose: '合同预审预处理:提前启动预审,打开审查页时结果已就绪',
1396
- },
1397
- inputSchema: readSchema({
1398
- fileId: { ...idString, description: '上传返回的 fileId' },
1399
- }, ['fileId']),
1400
- },
1401
- {
1402
- name: 'contract.review.prewarm.batch',
1403
- risk: 'write',
1404
- auth: AUTH,
1405
- fixed: {
1406
- method: 'POST',
1407
- path: '/api/ebd/contract/ai/saveInternalRecord',
1408
- flowId: '1269716062340284522',
1409
- parallel: true,
1410
- },
1411
- inputSchema: readSchema({
1412
- fileIds: {
1413
- type: 'array',
1414
- minItems: 1,
1415
- maxItems: 10,
1416
- items: idString,
1417
- description: '批量预热的 fileId 列表',
1418
- },
1419
- }, ['fileIds']),
1420
- },
1421
1267
  {
1422
1268
  name: 'contract.review.export',
1423
1269
  risk: 'read',
@@ -1430,8 +1276,10 @@ export const contractOperations = [
1430
1276
  },
1431
1277
  inputSchema: readSchema({
1432
1278
  fileId: { type: 'string', minLength: 1, maxLength: 64 },
1279
+ // flowId 必须动态传助手 URL 上的那个值(= 本轮 workflowId);CLI 不再有固定兜底。
1280
+ flowId: { ...idString, description: '助手 URL 上的 flowId(= 本轮合同流程 workflowId,取 firstscreen.run / flow.launch 返回的 workflowId),必传' },
1433
1281
  sclx: { type: 'string', pattern: '^8$' },
1434
- }, ['fileId']),
1282
+ }, ['fileId', 'flowId']),
1435
1283
  },
1436
1284
  {
1437
1285
  // 2026-11-16 新增:一条命令完成「取审查记录 → 解析 scnr → 压成约 8KB 摘要」。
@@ -1446,14 +1294,22 @@ export const contractOperations = [
1446
1294
  defaults: { sclx: '8' },
1447
1295
  postProcess: 'review-digest',
1448
1296
  },
1449
- inputSchema: readSchema({
1450
- fileId: { type: 'string', minLength: 1, maxLength: 64, description: '审查文件 id;给了 ref 时可省略' },
1451
- ref: { type: 'string', maxLength: 4096, description: '可选:直接解析已落盘的导出结果 json,不再请求接口' },
1452
- sclx: { type: 'string', pattern: '^8$', description: '固定 8(风险审查)' },
1453
- includePass: { type: 'boolean', description: '默认 true:附判定无风险的规则名清单' },
1454
- includeOriginal: { type: 'boolean', description: '默认 true:风险条目附合同原文片段' },
1455
- out: { type: 'string', maxLength: 4096, description: '可选:摘要 JSON 落盘路径' },
1456
- }, []),
1297
+ inputSchema: {
1298
+ ...readSchema({
1299
+ fileId: { type: 'string', minLength: 1, maxLength: 64, description: '审查文件 id;给了 ref 时可省略' },
1300
+ flowId: { ...idString, description: '助手 URL 上的 flowId(= 本轮 workflowId);走接口取结果时必传,给 ref 时可省略' },
1301
+ ref: { type: 'string', maxLength: 4096, description: '可选:直接解析已落盘的导出结果 json,不再请求接口' },
1302
+ sclx: { type: 'string', pattern: '^8$', description: '固定 8(风险审查)' },
1303
+ includePass: { type: 'boolean', description: '默认 true:附判定无风险的规则名清单' },
1304
+ includeOriginal: { type: 'boolean', description: '默认 true:风险条目附合同原文片段' },
1305
+ out: { type: 'string', maxLength: 4096, description: '可选:摘要 JSON 落盘路径' },
1306
+ }),
1307
+ // 走接口时必须成对给 fileId + flowId;给 ref 时不打接口,无需 flowId。
1308
+ anyOf: [
1309
+ { required: ['ref'] },
1310
+ { required: ['fileId', 'flowId'] },
1311
+ ],
1312
+ },
1457
1313
  },
1458
1314
  {
1459
1315
  name: 'contract.flow.page',
@@ -1486,7 +1342,6 @@ export const contractOperations = [
1486
1342
  path: '/api/workflow/core/flowPage/loadBaseParam',
1487
1343
  followUpPath: '/api/file/module/upload',
1488
1344
  module: 'workflow',
1489
- automaticFormFilling: true,
1490
1345
  },
1491
1346
  inputSchema: readSchema({
1492
1347
  flow: { type: 'string', enum: ['契约锁', '新客户', '老客户增值', '常规二次销售'] },
@@ -1608,10 +1463,9 @@ export const contractOperations = [
1608
1463
  }, ['baseFileId', 'compareFileId']),
1609
1464
  },
1610
1465
  {
1611
- name: 'contract.comparescreen.run',
1612
- risk: 'read-with-upload',
1613
- auth: AUTH,
1614
- fixed: { local: true, kind: 'compare-screen-orchestration' },
1466
+ name: 'contract.compare.report',
1467
+ risk: 'local-file-write',
1468
+ fixed: { local: true, kind: 'compare-report' },
1615
1469
  inputSchema: readSchema({
1616
1470
  files: {
1617
1471
  type: 'array',
@@ -1620,24 +1474,15 @@ export const contractOperations = [
1620
1474
  items: { type: 'string', minLength: 1, maxLength: 1000 },
1621
1475
  description: '两个本地文件绝对路径:基准文件在前,比对文件在后(与 baseFileId 二选一)',
1622
1476
  },
1623
- baseFileId: {
1624
- type: 'string',
1625
- minLength: 1,
1626
- maxLength: 64,
1627
- description: '已上传的基准文件 fileId(module=docCompared)',
1628
- },
1629
- compareFileId: {
1630
- type: 'string',
1631
- minLength: 1,
1632
- maxLength: 64,
1633
- description: '已上传的比对文件 fileId(module=docCompared)',
1634
- },
1477
+ baseFileId: { type: 'string', minLength: 1, maxLength: 64, description: '已上传的基准文件 fileId(module=docCompared)' },
1478
+ compareFileId: { type: 'string', minLength: 1, maxLength: 64, description: '已上传的比对文件 fileId(module=docCompared)' },
1479
+ ref: { type: 'string', maxLength: 4096, description: '已落盘的比对结果 JSON 路径(含 compare.diff 的 result);给了就不再调接口' },
1635
1480
  baseFileName: { type: 'string', maxLength: 300, description: '基准文件名;缺省取接口或上传返回值' },
1636
1481
  compareFileName: { type: 'string', maxLength: 300, description: '比对文件名;缺省取接口或上传返回值' },
1637
- title: { type: 'string', maxLength: 200, description: '卡片标题,缺省为「可做的 N 件事」' },
1638
- baseUrl: { type: 'string', maxLength: 2048, description: 'E10 地址,默认 https://www.e-cology.com.cn' },
1639
- aiid: { type: 'string', maxLength: 64, description: '比对助手 id(透传给卡片)' },
1640
- }, []),
1482
+ out: { type: 'string', minLength: 1, maxLength: 4096, description: '报告 HTML 输出绝对路径(必填;落盘后用 open_web 打开 file:///)' },
1483
+ template: { type: 'string', maxLength: 4096, description: '自定义模板路径;缺省用内嵌模板(与 contract-compare-report-template.html 互为镜像)' },
1484
+ dumpData: { type: 'string', maxLength: 4096, description: '可选:归一化后的报告数据 JSON 输出路径(排查用)' },
1485
+ }, ['out']),
1641
1486
  },
1642
1487
  {
1643
1488
  name: 'contract.credit.page',