weaver-work-cli 0.1.62 → 0.1.64

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 (299) hide show
  1. package/dist/chunks/{archive-S2VKZWQ3.js → archive-WUZKAEZ6.js} +5 -4
  2. package/dist/chunks/{archive-oa-HEDSIUUY.js → archive-oa-PN46RTI2.js} +5 -4
  3. package/dist/chunks/{asset-HYH4W357.js → asset-ZPC5VWZM.js} +5 -4
  4. package/dist/chunks/{asset-idle-N7REBNGL.js → asset-idle-DHGP3NYY.js} +5 -4
  5. package/dist/chunks/{attachment-content-VYYA75FR.js → attachment-content-JQDW3BIB.js} +3 -3
  6. package/dist/chunks/{blog-SLMZZICV.js → blog-JC47AIXK.js} +5 -4
  7. package/dist/chunks/{caizhilian-RV43KKBT.js → caizhilian-IKIHM77A.js} +5 -5
  8. package/dist/chunks/{calendar-DMVZ4OLY.js → calendar-GZTSJ57Y.js} +5 -4
  9. package/dist/chunks/{chunk-H6YOMI3U.js → chunk-26FCCU5O.js} +5 -3
  10. package/dist/chunks/{chunk-E5YD5JWR.js → chunk-3PCXBG4H.js} +1 -1
  11. package/dist/chunks/{chunk-UBRWONP4.js → chunk-3W5NMGDS.js} +2 -2
  12. package/dist/chunks/{chunk-DTCQFTHW.js → chunk-4AFWOGOV.js} +3 -3
  13. package/dist/chunks/{chunk-VNYOUAWV.js → chunk-5QQKLR6H.js} +11 -11
  14. package/dist/chunks/{chunk-BQYX2UX5.js → chunk-6T5X6YWX.js} +5 -3
  15. package/dist/chunks/{chunk-KXJA42EA.js → chunk-AFZTMYGC.js} +1 -1
  16. package/dist/chunks/{chunk-YI2YMW5N.js → chunk-AGSO3PIK.js} +2 -2
  17. package/dist/chunks/{chunk-IW7A2IQY.js → chunk-C4YQJFZV.js} +43 -15
  18. package/dist/chunks/{chunk-WIWDVETN.js → chunk-FDBAFANU.js} +76 -76
  19. package/dist/chunks/{chunk-NRYDJN4J.js → chunk-FJUOUSV3.js} +89 -8
  20. package/dist/chunks/{chunk-EGANE35F.js → chunk-HLT6B26P.js} +1 -1
  21. package/dist/chunks/{chunk-P6TXQK75.js → chunk-HWA2A25Y.js} +5 -3
  22. package/dist/chunks/{chunk-T2KVJFWJ.js → chunk-I3MOFD6Q.js} +4 -7
  23. package/dist/chunks/chunk-IN6NXQ26.js +680 -0
  24. package/dist/chunks/{chunk-UBGWIXU3.js → chunk-INVYKG4I.js} +140 -45
  25. package/dist/chunks/{chunk-QBDXJS2W.js → chunk-K7QKQRSL.js} +168 -62
  26. package/dist/chunks/{chunk-BIA2NKUG.js → chunk-KDFEHDIB.js} +5 -5
  27. package/dist/chunks/{chunk-ILALC2N6.js → chunk-KYDXWYFB.js} +1 -1
  28. package/dist/chunks/{chunk-V2LASYKO.js → chunk-Q6D6PSMH.js} +30 -24
  29. package/dist/chunks/{chunk-UQFPF4EX.js → chunk-RMOH2GMF.js} +2 -2
  30. package/dist/chunks/{chunk-VBFBMM7G.js → chunk-SCMHG23G.js} +387 -70
  31. package/dist/chunks/chunk-TJN4PIYO.js +47 -0
  32. package/dist/chunks/{chunk-JFAWZX53.js → chunk-UPVAQJKS.js} +282 -131
  33. package/dist/chunks/{chunk-KY3R42RS.js → chunk-VLY5RTVO.js} +5 -3
  34. package/dist/chunks/{chunk-TEZHIB6T.js → chunk-WSHIOSGM.js} +5 -3
  35. package/dist/chunks/{chunk-6XSSAUNW.js → chunk-XHSEK2VM.js} +48 -12
  36. package/dist/chunks/{chunk-XT77MP54.js → chunk-YTFNMQO4.js} +410 -24
  37. package/dist/chunks/{conflict-GFJRS6I7.js → conflict-UUC7AFUI.js} +2 -2
  38. package/dist/chunks/{contract-U3ZGNRWB.js → contract-INMS7SYQ.js} +3051 -4497
  39. package/dist/chunks/{cowork-EX7PKIDK.js → cowork-34CBYVQP.js} +5 -4
  40. package/dist/chunks/{create-flow-EJZD434E.js → create-flow-YOR4QTAJ.js} +18 -6
  41. package/dist/chunks/{data-FOODGAMF.js → data-QKWI5325.js} +14 -3
  42. package/dist/chunks/{ebuilder-form-I2EOKODG.js → ebuilder-form-ZONRROK4.js} +4 -4
  43. package/dist/chunks/{ehr-TE4RFNID.js → ehr-2CONM7R6.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-S2ENJ6GZ.js} +3 -3
  46. package/dist/chunks/{env-TID5NFR6.js → env-ZSAXU5PJ.js} +2 -2
  47. package/dist/chunks/{esb-7L6MHYLB.js → esb-FQASCY2H.js} +8 -8
  48. package/dist/chunks/{factory-OG7BPMH5.js → factory-N76QQA53.js} +1 -1
  49. package/dist/chunks/{fna-6V2ENR3Y.js → fna-FCLVIWAS.js} +5 -4
  50. package/dist/chunks/{group-chat-5DKPWIHL.js → group-chat-UM665WDZ.js} +3 -3
  51. package/dist/chunks/{host-VTPAWDZV.js → host-2ED2KC4X.js} +4 -4
  52. package/dist/chunks/{host-TJ5VVHM7.js → host-2UYZEY2V.js} +4 -4
  53. package/dist/chunks/{host-3DLYA54R.js → host-46NYKDQP.js} +4 -4
  54. package/dist/chunks/{host-OGBHL75G.js → host-7IPZKIM4.js} +4 -4
  55. package/dist/chunks/{host-GOJHHTPY.js → host-P7G22WNM.js} +4 -4
  56. package/dist/chunks/{host-ONZC6AE7.js → host-XLCBLNJD.js} +4 -4
  57. package/dist/chunks/{hrm-2N7NFQDZ.js → hrm-XKL27NX2.js} +6 -6
  58. package/dist/chunks/{im-XCH47ZBN.js → im-NDYIMASG.js} +4 -4
  59. package/dist/chunks/{invoice-5KJ7T774.js → invoice-MOGNB6HN.js} +4 -4
  60. package/dist/chunks/{jiuchuanhui-PL6DRPBM.js → jiuchuanhui-3T5X7SB7.js} +5 -4
  61. package/dist/chunks/{lazy-dispatch-UATEN7H7.js → lazy-dispatch-4WOIL3ZQ.js} +5 -5
  62. package/dist/chunks/{mail-Q7Z4CQ4D.js → mail-P7VMUKQW.js} +5 -4
  63. package/dist/chunks/{meeting-5E3BNARL.js → meeting-MMTYDHXA.js} +16 -15
  64. package/dist/chunks/{minute-doc-NXRE5C77.js → minute-doc-LCSBWGJ3.js} +4 -4
  65. package/dist/chunks/{okr-3O3XNYOK.js → okr-VZXRQGS4.js} +5 -4
  66. package/dist/chunks/{operations-EZWG72FH.js → operations-MI2BSKZX.js} +5 -5
  67. package/dist/chunks/{performance-Y7CPNSOR.js → performance-OPEQNW7Y.js} +873 -17
  68. package/dist/chunks/{plan-BLGPZF5M.js → plan-TJAS4N5X.js} +5 -4
  69. package/dist/chunks/{project-6MZMLJMP.js → project-CYBGU6K6.js} +5 -4
  70. package/dist/chunks/{reception-F2VT2X52.js → reception-3FT2F66K.js} +3 -3
  71. package/dist/chunks/{recruit-stage-4ETIBMIW.js → recruit-stage-WPGB5BDJ.js} +654 -336
  72. package/dist/chunks/{registry-3FYSWV3U.js → registry-BAWCWV4D.js} +3 -3
  73. package/dist/chunks/{registry-I4DVPDMU.js → registry-FNI5E76J.js} +12 -12
  74. package/dist/chunks/{registry-3UGIWH53.js → registry-JMNOXRST.js} +2 -2
  75. package/dist/chunks/{registry-7RS74TCK.js → registry-QRMXRSCT.js} +5 -5
  76. package/dist/chunks/{room-recommend-GWCVKCXW.js → room-recommend-I7QQRHEL.js} +4 -4
  77. package/dist/chunks/{schedule-6AN63MJQ.js → schedule-3P7EWGNZ.js} +4 -4
  78. package/dist/chunks/{smart-extract-SR4SJJKN.js → smart-extract-FOBSVNYW.js} +3 -3
  79. package/dist/chunks/{workflow-KF7FA2UQ.js → workflow-U2KKTVQY.js} +10 -7
  80. package/dist/index.js +34 -34
  81. package/dist/internal/e10/auth/commands.js +203 -44
  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/error-actions.js +112 -0
  88. package/dist/shortcuts/contract/errors.js +9 -1
  89. package/dist/shortcuts/contract/index.js +14 -39
  90. package/dist/shortcuts/contract/manifest.js +130 -274
  91. package/dist/shortcuts/contract/operations/compare-report.js +437 -0
  92. package/dist/shortcuts/contract/operations/compare.js +2 -0
  93. package/dist/shortcuts/contract/operations/docx-slots.js +112 -5
  94. package/dist/shortcuts/contract/operations/docx-verify.js +2 -70
  95. package/dist/shortcuts/contract/operations/elements-build.js +82 -56
  96. package/dist/shortcuts/contract/operations/elements-spec.js +140 -3
  97. package/dist/shortcuts/contract/operations/first-screen.js +96 -207
  98. package/dist/shortcuts/contract/operations/flow.js +19 -1
  99. package/dist/shortcuts/contract/operations/{card-ebdf-list.js → ledger-card.js} +123 -27
  100. package/dist/shortcuts/contract/operations/ledger.js +343 -1
  101. package/dist/shortcuts/contract/operations/metrics.js +93 -0
  102. package/dist/shortcuts/contract/operations/modeltext.js +3 -3
  103. package/dist/shortcuts/contract/operations/money.js +90 -0
  104. package/dist/shortcuts/contract/operations/page.js +8 -4
  105. package/dist/shortcuts/contract/operations/performance.js +53 -0
  106. package/dist/shortcuts/contract/operations/placeholder-scan.js +104 -0
  107. package/dist/shortcuts/contract/operations/quote-recognize.js +326 -0
  108. package/dist/shortcuts/contract/operations/quote-ref.js +179 -0
  109. package/dist/shortcuts/contract/operations/quote-submit.js +281 -0
  110. package/dist/shortcuts/contract/operations/quote.js +66 -12
  111. package/dist/shortcuts/contract/operations/recommend.js +42 -1
  112. package/dist/shortcuts/contract/operations/registry.js +16 -23
  113. package/dist/shortcuts/contract/operations/{card-risk-report.js → review-report.js} +24 -114
  114. package/dist/shortcuts/contract/operations/review.js +33 -167
  115. package/dist/shortcuts/contract/operations/save-recognize.js +173 -43
  116. package/dist/shortcuts/contract/operations/solutions-spec.js +79 -0
  117. package/dist/shortcuts/contract/operations/triage.js +68 -15
  118. package/dist/shortcuts/contract/operations/{template.js → type-clause-read.js} +10 -25
  119. package/dist/shortcuts/contract/operations/upload.js +17 -11
  120. package/dist/shortcuts/contract/prewarm-cache.js +6 -2
  121. package/dist/shortcuts/contract/prewarm.js +33 -23
  122. package/dist/shortcuts/contract/recommend-cache.js +191 -0
  123. package/dist/shortcuts/data/operations/shared.js +14 -1
  124. package/dist/shortcuts/ehr/operations/recruit-interview-overview.js +85 -62
  125. package/dist/shortcuts/ehr/operations/recruit-position.js +21 -13
  126. package/dist/shortcuts/ehr/operations/recruit-short-cache.js +59 -0
  127. package/dist/shortcuts/ehr/operations/recruit-tag.js +17 -11
  128. package/dist/shortcuts/ehr/operations/recruit-write.js +118 -70
  129. package/dist/shortcuts/ehr/operations/recruit.js +338 -121
  130. package/dist/shortcuts/hrm/operations/employee.js +64 -17
  131. package/dist/shortcuts/hrm/operations/resolve.js +419 -369
  132. package/dist/shortcuts/im/host.js +38 -22
  133. package/dist/shortcuts/meeting/operations/eb/conflict.js +60 -2
  134. package/dist/shortcuts/meeting/operations/eb/create-flow.js +138 -15
  135. package/dist/shortcuts/meeting/operations/eb/create-form-link.js +380 -0
  136. package/dist/shortcuts/meeting/operations/eb/index.js +2 -0
  137. package/dist/shortcuts/meeting/operations/eb/room-recommend.js +1 -3
  138. package/dist/shortcuts/performance/flow-utils.js +363 -0
  139. package/dist/shortcuts/performance/manifest.js +2 -2
  140. package/dist/shortcuts/performance/operations/flow-detail.js +85 -0
  141. package/dist/shortcuts/performance/operations/flow-list.js +213 -0
  142. package/dist/shortcuts/performance/operations/flow-score.js +241 -0
  143. package/dist/shortcuts/performance/operations/registry.js +6 -0
  144. package/dist/shortcuts/recruit-stage/batch-store.js +44 -0
  145. package/dist/shortcuts/recruit-stage/context.js +75 -9
  146. package/dist/shortcuts/recruit-stage/manifest.js +1 -1
  147. package/dist/shortcuts/recruit-stage/operations/jd-create.js +33 -22
  148. package/dist/shortcuts/recruit-stage/operations/list.js +187 -37
  149. package/dist/shortcuts/recruit-stage/operations/registry.js +2 -0
  150. package/dist/shortcuts/recruit-stage/operations/resume-import.js +231 -313
  151. package/dist/shortcuts/recruit-stage/operations/search.js +5 -5
  152. package/dist/shortcuts/recruit-stage/operations/tag.js +286 -0
  153. package/dist/shortcuts/workflow/endpoints.js +2 -0
  154. package/dist/shortcuts/workflow/operations/form.js +12 -15
  155. package/dist/shortcuts/workflow/operations/read.js +8 -8
  156. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoListRows.js +3 -2
  157. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +7 -6
  158. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +4 -3
  159. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.group.js +1 -0
  160. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +33 -6
  161. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.prepareQuery.js +153 -0
  162. package/dist/shortcuts/workflow/operations/todoSmartConvert/workflowClarification.js +232 -0
  163. package/dist/shortcuts/workflow/operations.js +5 -0
  164. package/docs/contract.md +2 -2
  165. package/docs/e10-auth.md +55 -2
  166. package/docs/ehr.md +1 -1
  167. package/package.json +1 -1
  168. package/skills/weaver-e10-hrm/SKILL.md +3 -3
  169. package/skills/weaver-e10-hrm/references/employee.md +13 -2
  170. package/skills/weaver-e10-jinchengda/SKILL.md +283 -345
  171. package/skills/weaver-e10-jinchengda/references/contract-agent-entry.md +7 -14
  172. package/skills/weaver-e10-jinchengda/references/contract-ai-assistant.md +21 -12
  173. package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +126 -202
  174. package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +13 -5
  175. package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +28 -20
  176. package/skills/weaver-e10-jinchengda/references/contract-clause-recommender.md +12 -17
  177. package/skills/weaver-e10-jinchengda/references/contract-clause-reference-save.md +7 -13
  178. package/skills/weaver-e10-jinchengda/references/contract-command-index.md +47 -16
  179. package/skills/weaver-e10-jinchengda/references/contract-compare-report-template.html +10 -18
  180. package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +19 -18
  181. package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +114 -61
  182. package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +8 -2
  183. package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +78 -112
  184. package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +67 -333
  185. package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +18 -15
  186. package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +80 -84
  187. package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +38 -34
  188. package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +132 -47
  189. package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +108 -217
  190. package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +14 -20
  191. package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +13 -7
  192. package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +86 -46
  193. package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +12 -10
  194. package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +22 -14
  195. package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +18 -18
  196. package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +27 -26
  197. package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +252 -0
  198. package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +15 -23
  199. package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +290 -104
  200. package/skills/weaver-e10-jinchengda/references/contract-request-status.md +5 -12
  201. package/skills/weaver-e10-jinchengda/references/contract-request-write.md +12 -18
  202. package/skills/weaver-e10-jinchengda/references/contract-signing-subjects.md +11 -17
  203. package/skills/weaver-e10-jinchengda/references/contract-subject-create.md +5 -11
  204. package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +56 -7
  205. package/skills/weaver-e10-jinchengda/references/contract-type-fingerprints.md +12 -12
  206. package/skills/weaver-e10-jinchengda/references/contract-workflow-discovery.md +10 -16
  207. package/skills/weaver-e10-jinchengda/references/orchestration.md +33 -35
  208. package/skills/weaver-e10-jucailin/SKILL.md +6 -7
  209. package/skills/weaver-e10-jucailin/agents/openai.yaml +52 -0
  210. package/skills/weaver-e10-jucailin/references/recruit-interview-overview.md +8 -6
  211. package/skills/weaver-e10-jucailin/references/recruit-read.md +4 -0
  212. package/skills/weaver-e10-jucailin/references/recruit-screening-to-interview-sop.md +2 -2
  213. package/skills/weaver-e10-jucailin/references/recruit-write.md +4 -4
  214. package/skills/weaver-e10-meeting/SKILL.md +87 -534
  215. package/skills/weaver-e10-meeting/references/commands-table.md +61 -0
  216. package/skills/weaver-e10-meeting/references/create-commands.md +136 -0
  217. package/skills/weaver-e10-meeting/references/create-flow.md +9 -7
  218. package/skills/weaver-e10-meeting/references/create-guardrails.md +23 -17
  219. package/skills/weaver-e10-meeting/references/custom-fields.md +40 -0
  220. package/skills/weaver-e10-meeting/references/eb-contracts.md +60 -0
  221. package/skills/weaver-e10-meeting/references/invitation.md +69 -0
  222. package/skills/weaver-e10-meeting/references/meeting-eb.md +26 -26
  223. package/skills/weaver-e10-meeting/references/meeting-invitation.md +2 -2
  224. package/skills/weaver-e10-meeting/references/meeting-minute-file.md +2 -2
  225. package/skills/weaver-e10-meeting/references/meeting-verification.md +1 -1
  226. package/skills/weaver-e10-meeting/references/minutes-pipeline.md +119 -0
  227. package/skills/weaver-e10-meeting/references/pitfalls.md +1 -1
  228. package/skills/weaver-e10-meeting/references/room-recommend.md +88 -0
  229. package/skills/weaver-e10-performance/SKILL.md +45 -5
  230. package/skills/weaver-e10-performance/agents/openai.yaml +26 -2
  231. package/skills/weaver-e10-performance/references/flow-api.md +128 -0
  232. package/skills/weaver-e10-performance/references/flow-assess.md +149 -0
  233. package/skills/weaver-e10-recruit-stage/SKILL.md +317 -266
  234. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +22 -27
  235. package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +1 -1
  236. package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +30 -27
  237. package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +2 -6
  238. package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +12 -10
  239. package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +2 -0
  240. package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +23 -19
  241. package/skills/weaver-e10-recruit-stage/references/recruit-jd-template.md +3 -1
  242. package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +18 -16
  243. package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +25 -23
  244. package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +10 -10
  245. package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +2 -2
  246. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +11 -11
  247. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +150 -85
  248. package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +14 -18
  249. package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +1 -1
  250. package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +173 -0
  251. package/skills/weaver-e10-recruit-stage/references/recruit-tag-taxonomy.json +76 -0
  252. package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +3 -1
  253. package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +2 -2
  254. package/skills/weaver-e10-workflow/SKILL.md +49 -32
  255. package/skills/weaver-e10-workflow/references/todo-dialogue.md +67 -34
  256. package/skills/weaver-e10-workflow/references/todo-smart-convert.md +65 -51
  257. package/skills/weaver-e10-workflow/references/workflow-agent-entry.md +18 -11
  258. package/skills/weaver-e10-workflow/references/workflow-create.md +2 -2
  259. package/skills/weaver-e10-workflow/references/workflow-memory.md +19 -37
  260. package/skills/weaver-e10-workflow/references/workflow-query.md +25 -22
  261. package/skills/weaver-e10-workflow/references/workflow-view.md +1 -1
  262. package/skills/weaver-e10-workflow/tools/todo-summary.cjs +318 -110
  263. package/skills/weaver-e10-yimiaoban/SKILL.md +17 -14
  264. package/skills/weaver-e10-yimiaoban/references/person.md +1 -1
  265. package/skills/weaver-e10-yimiaoban/references/safety-boundaries.md +1 -1
  266. package/skills/weaver-e10-yimiaoban/references/source-manifest.json +9 -9
  267. package/dist/chunks/chunk-6QYNE6HE.js +0 -658
  268. package/dist/chunks/chunk-SHYQUBY3.js +0 -48
  269. package/dist/shortcuts/contract/operations/card-action.js +0 -1266
  270. package/dist/shortcuts/contract/operations/card-plan.js +0 -393
  271. package/dist/shortcuts/contract/operations/card.js +0 -232
  272. package/dist/shortcuts/contract/operations/compare-screen.js +0 -378
  273. package/dist/shortcuts/contract/operations/quote-to-contract.js +0 -495
  274. package/dist/shortcuts/contract/operations/quotescreen.js +0 -529
  275. package/dist/shortcuts/contract/operations/summary-validate.js +0 -293
  276. package/dist/shortcuts/contract/operations/summary.js +0 -187
  277. package/dist/shortcuts/ehr/recruit-stage/batch-store.js +0 -78
  278. package/dist/shortcuts/ehr/recruit-stage/context.js +0 -231
  279. package/dist/shortcuts/ehr/recruit-stage/continuation.js +0 -74
  280. package/dist/shortcuts/ehr/recruit-stage/errors.js +0 -65
  281. package/dist/shortcuts/ehr/recruit-stage/fs-scan.js +0 -165
  282. package/dist/shortcuts/ehr/recruit-stage/host.js +0 -109
  283. package/dist/shortcuts/ehr/recruit-stage/operations/interview-arrange.js +0 -1065
  284. package/dist/shortcuts/ehr/recruit-stage/operations/interview-feedback.js +0 -295
  285. package/dist/shortcuts/ehr/recruit-stage/operations/jd-create.js +0 -961
  286. package/dist/shortcuts/ehr/recruit-stage/operations/list.js +0 -431
  287. package/dist/shortcuts/ehr/recruit-stage/operations/registry.js +0 -50
  288. package/dist/shortcuts/ehr/recruit-stage/operations/resume-import.js +0 -1655
  289. package/dist/shortcuts/ehr/recruit-stage/operations/search.js +0 -158
  290. package/dist/shortcuts/ehr/recruit-stage/operations/types.js +0 -34
  291. package/dist/shortcuts/ehr/recruit-stage/runtime.js +0 -31
  292. package/dist/shortcuts/ehr/recruit-stage/school-tiers.json +0 -318
  293. package/dist/shortcuts/ehr/recruit-stage/shared.js +0 -887
  294. package/skills/weaver-e10-jinchengda/references/contract-action-card-template.html +0 -22
  295. package/skills/weaver-e10-jinchengda/references/contract-action-card.md +0 -554
  296. package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +0 -279
  297. package/skills/weaver-e10-jinchengda/references/contract-card-render-internals.md +0 -483
  298. package/skills/weaver-e10-jinchengda/references/contract-template-selector.md +0 -46
  299. 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
  {
@@ -452,7 +458,7 @@ const quoteContracts = [
452
458
  out: { type: 'string', minLength: 1, maxLength: 4096, description: '输出 docx 绝对路径' },
453
459
  plan: {
454
460
  anyOf: [{ type: 'object' }, { type: 'string' }],
455
- description: '填充方案:{ slots:[{slotId,value}], details:[{slotId,items,subtotal}], unsupported:[], totals:{grandTotal,installments} };也可传 JSON 文件路径',
461
+ description: '填充方案:{ slots:[{slotId,value}], details:[{slotId,items,subtotal}], unsupported:[], totals:{grandTotal,installments} };也可传 JSON 文件路径。金额一律不要手写数值,用值引用 {"$quote":"<报价书解析结果.json 绝对路径>#totals.final_total"}(明细可用 #sections.0.items、小计用 #sections.0.total),真值由本进程读;写 [[MONEY_*]] 报 plan_value_placeholder、写 ¥144,000.00 报 plan_value_display_text,均拒绝写入',
456
462
  },
457
463
  strict: { type: 'boolean', description: '默认 true:必填位点未覆盖即判不通过' },
458
464
  allowRowInsert: { type: 'boolean', description: '默认 true:明细行不足时克隆已有行补足(不改网格)' },
@@ -464,57 +470,62 @@ const quoteContracts = [
464
470
  fixed: { local: true, kind: 'docx-verify' },
465
471
  inputSchema: readSchema({
466
472
  path: { type: 'string', minLength: 1, maxLength: 4096, description: 'docx 绝对路径' },
467
- patterns: { type: 'array', items: { type: 'string' }, description: '需要检查残留的占位文本;缺省用内置集合(xxx公司/***有限公司/年 月 日/【】/____/{{ 等)' },
473
+ patterns: { type: 'array', items: { type: 'string' }, description: '需要检查残留的占位文本;缺省用内置集合([[MONEY / MONEY_ / xxx公司 / ***有限公司 / 年 月 日 / 【】 / ____ / {{ 等)' },
468
474
  title: { type: 'string', description: '应出现的合同名称,用于校验标题替换是否完整' },
469
475
  titleCount: { type: 'integer', minimum: 0, description: '标题期望出现次数;传了就要求精确相等,不传只要求至少 1 次' },
470
476
  out: { type: 'string', maxLength: 4096, description: '可选:校验报告 JSON 输出路径' },
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: {
490
+ anyOf: [{ type: 'number' }, { type: 'string' }, { type: 'object' }],
491
+ description: '报价单最终优惠报价(不是标准价合计)。三选一:① 纯数值(如 809166.76);② 可唯一归一的字符串(如 "¥809,166.76");③ **推荐**值引用 {"$quote":"<解析结果.json 绝对路径>#totals.final_total"},真值由本进程读、金额不经过模型上下文。传脱敏占位符 [[MONEY_*]] 会被 total_amount_placeholder 拒收',
492
+ },
493
+ ourCompany: { type: 'string', description: '我方签约主体,默认「泛微网络科技股份有限公司」' },
494
+ sections: {
495
+ anyOf: [{ type: 'array', items: { type: 'object' }, }, { type: 'object' }],
496
+ description: '报价单费用分节,用于归纳合同背景说明。可传数组,也可传值引用 {"$quote":"<解析结果.json>#sections"}(解析结果的 sections 已含 title/total,能被直接消费)',
497
+ },
498
+ background: { type: 'string', maxLength: 2000, description: '合同背景说明;不传按报价单分节自动归纳' },
499
+ quoteTitle: { type: 'string', description: '报价单标题,供合同类型识别' },
500
+ quoteFileName: { type: 'string', description: '报价单文件名,供合同类型识别' },
501
+ verified: { type: 'boolean', description: '上游 slots.fill 校验是否 PASS;false 时全部 origin 置空,默认 true' },
502
+ out: { type: 'string', maxLength: 4096, description: '可选:recognize.json 输出路径' },
503
+ }, ['fileId', 'customerName', 'totalAmount']),
489
504
  },
490
505
  {
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)」' },
502
- 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',
506
+ name: 'contract.quotescreen.submit',
507
+ risk: 'write',
508
+ fixed: { local: false, kind: 'quote-submit' },
509
+ inputSchema: readSchema({
510
+ contractPath: { type: 'string', minLength: 1, maxLength: 4096, description: '生成的合同 docx 绝对路径(quotescreen.tocontract 的 contract.path)' },
511
+ flow: { type: 'string', enum: ['契约锁', '新客户', '常规二次销售', '老客户增值'], description: '合同类型;须由编排层按报价单标识确认后传入' },
512
+ customerName: { type: 'string', minLength: 1, description: '报价单客户全称(即最终用户)' },
513
+ totalAmount: {
514
+ anyOf: [{ type: 'number' }, { type: 'string' }, { type: 'object' }],
515
+ description: '报价单最终优惠报价(不是标准价合计)。三选一:① 纯数值(如 809166.76);② 可唯一归一的字符串(如 "¥809,166.76");③ **推荐**值引用 {"$quote":"<解析结果.json 绝对路径>#totals.final_total"}。传脱敏占位符 [[MONEY_*]] 会被 total_amount_placeholder 拒收',
509
516
  },
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']),
517
+ contractTitle: { type: 'string', maxLength: 400, description: '合同名称;缺省按「客户全称 + 合同管理系统软件产品及实施服务购买合同」生成' },
518
+ fileName: { type: 'string', maxLength: 400, description: '合同文件名;缺省取 contractPath 的文件名,通用名(如「合同」)会被纠正为合同名称' },
519
+ ourCompany: { type: 'string', description: '我方签约主体,默认「泛微网络科技股份有限公司」' },
520
+ sections: { type: 'array', items: { type: 'object' }, description: '报价单费用分节(name + amount),用于归纳合同背景说明' },
521
+ background: { type: 'string', maxLength: 2000, description: '合同背景说明;不传按报价单分节自动归纳' },
522
+ quoteTitle: { type: 'string', description: '报价单标题,供合同类型识别' },
523
+ quoteFileName: { type: 'string', description: '报价单文件名,供合同类型识别' },
524
+ verified: { type: 'boolean', description: '上游 slots.fill 校验是否 PASS;false 时全部 origin 置空,默认 true' },
525
+ tab: { type: 'string', enum: ['Extract', 'Summary', 'RiskReview', 'Credit', 'termComponent'], description: '合同智能页页签,默认 Extract' },
526
+ contractTermIds: { type: 'string', description: '待引用条款 ID,多个逗号拼接;无条款引用不传' },
527
+ reuseFileId: { type: 'string', description: '已存在的 workflow fileId(仅复用场景);一般不传,由本操作上传产生' },
528
+ }, ['contractPath', 'flow', 'customerName', 'totalAmount']),
518
529
  },
519
530
  {
520
531
  name: 'contract.triage.extract',
@@ -547,6 +558,17 @@ const quoteContracts = [
547
558
  limit: { type: 'integer', minimum: 1, maximum: 1000, description: '明细最多返回条数,默认 20' },
548
559
  }),
549
560
  },
561
+ {
562
+ name: 'contract.ledger.metrics',
563
+ risk: 'read',
564
+ fixed: { local: true, kind: 'ledger-metrics' },
565
+ inputSchema: readSchema({
566
+ key: {
567
+ type: 'string',
568
+ description: '统计口径键或中文名(合同业绩 / 合同已收款 / eteams业绩);不传返回全部口径',
569
+ },
570
+ }),
571
+ },
550
572
  {
551
573
  name: 'contract.ledger.guard',
552
574
  risk: 'read',
@@ -569,105 +591,57 @@ const quoteContracts = [
569
591
  }, ['menu', 'total']),
570
592
  },
571
593
  {
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',
594
+ name: 'contract.ledger.route',
594
595
  risk: 'read',
595
- fixed: { local: true, kind: 'card-plan' },
596
+ fixed: { local: true, kind: 'ledger-route' },
596
597
  inputSchema: readSchema({
597
- context: {
598
+ query: { type: 'string', description: '用户原话,用于识别统计信号(多少/几份/合计/排名/同比/报表等)' },
599
+ menu: {
600
+ type: 'string',
601
+ description: '台账名(直销合同/直销业绩/渠道订单/渠道订单-商务/合同收款/项目验收);不传按条件推断',
602
+ },
603
+ intent: {
604
+ type: 'string',
605
+ enum: ['detail', 'aggregate', 'compare', 'crosscheck', 'report'],
606
+ description: '显式诉求:detail 只看明细;其余表示要页面给不出的结论',
607
+ },
608
+ conditions: {
598
609
  type: 'object',
599
- description: '上下文状态对象(scene / docType / flowKey / reviewed / submitted 等);优先于 contextFile / contextJson',
610
+ description: '条件对象:person / team / yearMonth / dateRange / customer / contractNo',
600
611
  },
601
- contextFile: { type: 'string', minLength: 1, maxLength: 4096, description: '上下文状态 JSON 文件路径' },
602
- contextJson: { type: 'string', minLength: 1, description: '上下文状态 JSON 字符串' },
603
612
  }),
604
613
  },
605
614
  {
606
- name: 'contract.card.ebdf-list',
615
+ name: 'contract.ledger.card',
607
616
  risk: 'local-file-write',
608
- fixed: { local: true, kind: 'ebdf-list-card' },
617
+ fixed: { local: true, kind: 'ledger-card' },
609
618
  inputSchema: readSchema({
610
619
  menu: { type: 'string', description: '菜单名或别名(直销合同/直销业绩/合同收款/项目验收/渠道订单/渠道订单-商务);前四个用台账页卡,合同收款与项目验收用列表卡' },
611
620
  pageId: { type: 'string', pattern: '^\\d{6,}$', description: '直接给 pageId;与 menu 二选一,同时给时以 pageId 为准(按列表卡生成)' },
612
- origin: { type: 'string', minLength: 1, description: '必填:scheme+host,不带路径或 query,不含 {baseUrl}' },
621
+ origin: { type: 'string', minLength: 1, description: '可选:scheme+host,不带路径或 query;缺省取当前会话 baseUrl 的 scheme+host。不要传 {baseUrl} 占位符' },
613
622
  title: { type: 'string', description: '卡片标题,默认取菜单名' },
614
623
  callId: { type: 'string', description: '默认 ledger-<菜单>-<YYYYMMDDHHmm>-01;列表卡为 ebdf-list-<菜单>-<YYYYMMDDHHmm>-01' },
615
624
  comParamPairs: { type: 'array', items: { type: 'string' }, description: '台账页:形如 khmc=泛微 的台账键(日期/金额区间请用 comParamsJson);列表卡:形如 field_<字段id>=<值>;与 comParamsJson 互斥' },
616
- comParamsJson: { type: 'string', description: '筛选对象的 JSON 字符串:台账页传 { "khmc": "泛微", "qdrq": ["2024-01-01", "2024-12-31"] };列表卡传 comParams 对象;与 comParamPairs 互斥' },
625
+ comParamsJson: { type: 'string', description: '筛选对象的 JSON 字符串(必须序列化成字符串传,不能直接传对象):台账页传 { "khmc": "泛微", "qdrq": ["2024-01-01", "2024-12-31"] };列表卡传 comParams 对象;与 comParamPairs 互斥' },
617
626
  out: { type: 'string', maxLength: 4096, description: '可选:卡片 JSON 输出路径' },
618
- }, ['origin']),
627
+ }),
619
628
  },
620
629
  {
621
- name: 'contract.card.risk-report',
630
+ name: 'contract.review.report',
622
631
  risk: 'local-file-write',
623
- fixed: { local: true, kind: 'risk-report-card' },
632
+ fixed: { local: true, kind: 'review-report' },
624
633
  inputSchema: readSchema({
625
634
  ref: { type: 'string', maxLength: 4096, description: 'CLI 落盘的审查结果 JSON(含 envelope);与 data 二选一' },
626
635
  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 的路径' },
636
+ out: { type: 'string', minLength: 1, maxLength: 4096, description: '必填:报告 HTML 产物输出绝对路径。报告只以产物文件交付(不出卡片、不注入面板)' },
629
637
  dumpData: { type: 'string', maxLength: 4096, description: '可选:只抽取数据并保存到此路径' },
630
638
  template: { type: 'string', maxLength: 4096, description: '可选:自定义模板路径;缺省用内置模板' },
631
639
  contract: { type: 'string', description: '合同名称' },
632
640
  partyA: { type: 'string', description: '甲方' },
633
641
  partyB: { type: 'string', description: '乙方' },
634
642
  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
- }),
643
+ cardId: { type: 'string', description: '报告根节点 id' },
644
+ }, ['out']),
671
645
  },
672
646
  {
673
647
  name: 'contract.elements.build',
@@ -690,34 +664,22 @@ const quoteContracts = [
690
664
  fixed: { local: true, kind: 'first-screen-orchestration' },
691
665
  inputSchema: readSchema({
692
666
  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: '随附文件(协议/补充协议/清单);预审一并上传,发起流程的附件字段只挂主文件' },
667
+ outDir: { type: 'string', minLength: 1, maxLength: 4096, description: '产物目录(放中间 JSON 与 first_screen_result.json)' },
668
+ attach: { type: 'array', items: { type: 'string' }, description: '随附文件(协议/补充协议/清单);与主文件一起走流程通道上传并全部挂到表单附件字段' },
695
669
  flow: { type: 'string', enum: ['契约锁', '新客户', '常规二次销售', '老客户增值'], description: '留空则从 triage.json 的 flowKey 读取' },
696
670
  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 路径;不传则跳过摘要渲染' },
671
+ aiFill: { type: 'string', maxLength: 4096, description: 'ai_fill.json(只填 elements)' },
699
672
  recognizeFile: { type: 'string', maxLength: 4096, description: 'recognizeResult 的 JSON 文件;不传则用内置字段表自动组装,拿不到就降级' },
700
- companyName: { type: 'string', description: '对方主体全称,用于资信卡' },
673
+ companyName: { type: 'string', description: '对方主体全称,用于资信查询' },
701
674
  counterparty: { type: 'boolean', description: '是否存在可查的对方主体' },
702
- skipUpload: { type: 'boolean', description: '跳过预审上传(仅需流程页时)' },
675
+ tab: {
676
+ type: 'string',
677
+ enum: ['Extract', 'Summary', 'RiskReview', 'Credit', 'termComponent'],
678
+ description: '合同智能页页签,按用户本轮行为取值;缺省 Extract(发起流程/要素提取)',
679
+ },
703
680
  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
681
  }, ['file', 'outDir']),
707
682
  },
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
683
  {
722
684
  name: 'contract.file.download',
723
685
  risk: 'local-file-write',
@@ -749,6 +711,7 @@ const quoteContracts = [
749
711
  sheet: { type: 'string' },
750
712
  keepRemark: { type: 'boolean' },
751
713
  includeZero: { type: 'boolean' },
714
+ out: { type: 'string', maxLength: 4096, description: '可选:把解析结果写成 JSON。落盘后后续可用 {"$quote":"<该文件>#totals.final_total"} 引用真值,金额不经过模型上下文' },
752
715
  }, ['path']),
753
716
  },
754
717
  {
@@ -764,7 +727,8 @@ const quoteContracts = [
764
727
  risk: 'read',
765
728
  fixed: { local: true, kind: 'quote-normalize' },
766
729
  inputSchema: readSchema({
767
- data: { type: 'string', minLength: 1 },
730
+ data: { type: 'string', minLength: 1, description: '模型产出的报价 JSON 文件路径' },
731
+ out: { type: 'string', maxLength: 4096, description: '可选:把归一化后的解析结果写成 JSON。落盘后后续可用 {"$quote":"<该文件>#totals.final_total"} 引用真值' },
768
732
  }, ['data']),
769
733
  },
770
734
  ];
@@ -797,55 +761,9 @@ export const contractOperations = [
797
761
  fixed: { method: 'GET', path: '/api/ebd/contract/type/allTypes' },
798
762
  inputSchema: readSchema({}),
799
763
  },
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
764
  {
847
765
  // 范文库(「合同范文管理」EB 表单)。本技能内「模板」== 「范文」,
848
- // 与合同模板库 tplinfo(contract.template.*)是互不相通的两个对象。
766
+ // 与合同模板库 tplinfo 是互不相通的两个对象(tplinfo 的 contract.template.* 已于 2026-11-19 移除)。
849
767
  name: 'contract.modeltext.list',
850
768
  risk: 'read',
851
769
  auth: AUTH,
@@ -1357,67 +1275,6 @@ export const contractOperations = [
1357
1275
  otherParams: { type: 'string' },
1358
1276
  }, ['requestId']),
1359
1277
  },
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
1278
  {
1422
1279
  name: 'contract.review.export',
1423
1280
  risk: 'read',
@@ -1430,8 +1287,10 @@ export const contractOperations = [
1430
1287
  },
1431
1288
  inputSchema: readSchema({
1432
1289
  fileId: { type: 'string', minLength: 1, maxLength: 64 },
1290
+ // flowId 必须动态传助手 URL 上的那个值(= 本轮 workflowId);CLI 不再有固定兜底。
1291
+ flowId: { ...idString, description: '助手 URL 上的 flowId(= 本轮合同流程 workflowId,取 firstscreen.run / flow.launch 返回的 workflowId),必传' },
1433
1292
  sclx: { type: 'string', pattern: '^8$' },
1434
- }, ['fileId']),
1293
+ }, ['fileId', 'flowId']),
1435
1294
  },
1436
1295
  {
1437
1296
  // 2026-11-16 新增:一条命令完成「取审查记录 → 解析 scnr → 压成约 8KB 摘要」。
@@ -1446,14 +1305,22 @@ export const contractOperations = [
1446
1305
  defaults: { sclx: '8' },
1447
1306
  postProcess: 'review-digest',
1448
1307
  },
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
- }, []),
1308
+ inputSchema: {
1309
+ ...readSchema({
1310
+ fileId: { type: 'string', minLength: 1, maxLength: 64, description: '审查文件 id;给了 ref 时可省略' },
1311
+ flowId: { ...idString, description: '助手 URL 上的 flowId(= 本轮 workflowId);走接口取结果时必传,给 ref 时可省略' },
1312
+ ref: { type: 'string', maxLength: 4096, description: '可选:直接解析已落盘的导出结果 json,不再请求接口' },
1313
+ sclx: { type: 'string', pattern: '^8$', description: '固定 8(风险审查)' },
1314
+ includePass: { type: 'boolean', description: '默认 true:附判定无风险的规则名清单' },
1315
+ includeOriginal: { type: 'boolean', description: '默认 true:风险条目附合同原文片段' },
1316
+ out: { type: 'string', maxLength: 4096, description: '可选:摘要 JSON 落盘路径' },
1317
+ }),
1318
+ // 走接口时必须成对给 fileId + flowId;给 ref 时不打接口,无需 flowId。
1319
+ anyOf: [
1320
+ { required: ['ref'] },
1321
+ { required: ['fileId', 'flowId'] },
1322
+ ],
1323
+ },
1457
1324
  },
1458
1325
  {
1459
1326
  name: 'contract.flow.page',
@@ -1486,7 +1353,6 @@ export const contractOperations = [
1486
1353
  path: '/api/workflow/core/flowPage/loadBaseParam',
1487
1354
  followUpPath: '/api/file/module/upload',
1488
1355
  module: 'workflow',
1489
- automaticFormFilling: true,
1490
1356
  },
1491
1357
  inputSchema: readSchema({
1492
1358
  flow: { type: 'string', enum: ['契约锁', '新客户', '老客户增值', '常规二次销售'] },
@@ -1608,10 +1474,9 @@ export const contractOperations = [
1608
1474
  }, ['baseFileId', 'compareFileId']),
1609
1475
  },
1610
1476
  {
1611
- name: 'contract.comparescreen.run',
1612
- risk: 'read-with-upload',
1613
- auth: AUTH,
1614
- fixed: { local: true, kind: 'compare-screen-orchestration' },
1477
+ name: 'contract.compare.report',
1478
+ risk: 'local-file-write',
1479
+ fixed: { local: true, kind: 'compare-report' },
1615
1480
  inputSchema: readSchema({
1616
1481
  files: {
1617
1482
  type: 'array',
@@ -1620,24 +1485,15 @@ export const contractOperations = [
1620
1485
  items: { type: 'string', minLength: 1, maxLength: 1000 },
1621
1486
  description: '两个本地文件绝对路径:基准文件在前,比对文件在后(与 baseFileId 二选一)',
1622
1487
  },
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
- },
1488
+ baseFileId: { type: 'string', minLength: 1, maxLength: 64, description: '已上传的基准文件 fileId(module=docCompared)' },
1489
+ compareFileId: { type: 'string', minLength: 1, maxLength: 64, description: '已上传的比对文件 fileId(module=docCompared)' },
1490
+ ref: { type: 'string', maxLength: 4096, description: '已落盘的比对结果 JSON 路径(含 compare.diff 的 result);给了就不再调接口' },
1635
1491
  baseFileName: { type: 'string', maxLength: 300, description: '基准文件名;缺省取接口或上传返回值' },
1636
1492
  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
- }, []),
1493
+ out: { type: 'string', minLength: 1, maxLength: 4096, description: '报告 HTML 输出绝对路径(必填;落盘后用 open_web 打开 file:///)' },
1494
+ template: { type: 'string', maxLength: 4096, description: '自定义模板路径;缺省用内嵌模板(与 contract-compare-report-template.html 互为镜像)' },
1495
+ dumpData: { type: 'string', maxLength: 4096, description: '可选:归一化后的报告数据 JSON 输出路径(排查用)' },
1496
+ }, ['out']),
1641
1497
  },
1642
1498
  {
1643
1499
  name: 'contract.credit.page',