weaver-work-cli 0.1.61 → 0.1.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. package/dist/chunks/{archive-S2VKZWQ3.js → archive-BLDYBZDX.js} +5 -4
  2. package/dist/chunks/{archive-oa-HEDSIUUY.js → archive-oa-3GJ3TWXR.js} +5 -4
  3. package/dist/chunks/{asset-HYH4W357.js → asset-AFXJN4CK.js} +5 -4
  4. package/dist/chunks/{asset-idle-N7REBNGL.js → asset-idle-VUJXWGWJ.js} +5 -4
  5. package/dist/chunks/{attachment-content-VYYA75FR.js → attachment-content-VMJA7NSQ.js} +3 -3
  6. package/dist/chunks/{blog-SLMZZICV.js → blog-EREB35VU.js} +5 -4
  7. package/dist/chunks/{caizhilian-RV43KKBT.js → caizhilian-ATM2JO5S.js} +5 -5
  8. package/dist/chunks/{calendar-DMVZ4OLY.js → calendar-E26ZIH7S.js} +5 -4
  9. package/dist/chunks/{chunk-6XSSAUNW.js → chunk-4OB22YKE.js} +48 -12
  10. package/dist/chunks/{chunk-UBGWIXU3.js → chunk-5CY37VLS.js} +131 -38
  11. package/dist/chunks/{chunk-EGANE35F.js → chunk-6G2JARDK.js} +1 -1
  12. package/dist/chunks/{chunk-WIWDVETN.js → chunk-6VCQLZXE.js} +75 -76
  13. package/dist/chunks/{chunk-E5YD5JWR.js → chunk-BY3WDJO5.js} +1 -1
  14. package/dist/chunks/{chunk-IW7A2IQY.js → chunk-C4YQJFZV.js} +43 -15
  15. package/dist/chunks/{chunk-BQYX2UX5.js → chunk-C5PIGPGX.js} +5 -3
  16. package/dist/chunks/{chunk-UBRWONP4.js → chunk-EOZHSNND.js} +2 -2
  17. package/dist/chunks/{chunk-UQFPF4EX.js → chunk-G3ZM57PD.js} +2 -2
  18. package/dist/chunks/{chunk-XT77MP54.js → chunk-GOBNIGWS.js} +410 -24
  19. package/dist/chunks/{chunk-KY3R42RS.js → chunk-GQK6WLOS.js} +5 -3
  20. package/dist/chunks/{chunk-BIA2NKUG.js → chunk-HEJPVXD3.js} +5 -5
  21. package/dist/chunks/{chunk-ILALC2N6.js → chunk-I4C2KR2G.js} +1 -1
  22. package/dist/chunks/{chunk-YI2YMW5N.js → chunk-IGICM3WJ.js} +2 -2
  23. package/dist/chunks/chunk-IN6NXQ26.js +680 -0
  24. package/dist/chunks/{chunk-VBFBMM7G.js → chunk-LOVAIGM2.js} +387 -70
  25. package/dist/chunks/{chunk-H6YOMI3U.js → chunk-OMAGCLUE.js} +5 -3
  26. package/dist/chunks/{chunk-VNYOUAWV.js → chunk-QAMIIFP6.js} +11 -11
  27. package/dist/chunks/{chunk-QBDXJS2W.js → chunk-QZYKZ7MQ.js} +16 -8
  28. package/dist/chunks/{chunk-V2LASYKO.js → chunk-RR45ELVE.js} +30 -24
  29. package/dist/chunks/{chunk-NRYDJN4J.js → chunk-RV2JAA5I.js} +89 -8
  30. package/dist/chunks/{chunk-TEZHIB6T.js → chunk-SDPC7BG2.js} +5 -3
  31. package/dist/chunks/{chunk-T2KVJFWJ.js → chunk-SHBDXEUE.js} +4 -7
  32. package/dist/chunks/{chunk-P6TXQK75.js → chunk-THMBDCRA.js} +5 -3
  33. package/dist/chunks/chunk-TJN4PIYO.js +47 -0
  34. package/dist/chunks/{chunk-DTCQFTHW.js → chunk-TNFIUZ4H.js} +3 -3
  35. package/dist/chunks/{chunk-JFAWZX53.js → chunk-UPVAQJKS.js} +282 -131
  36. package/dist/chunks/{chunk-KXJA42EA.js → chunk-WPBZQVLS.js} +1 -1
  37. package/dist/chunks/{conflict-GFJRS6I7.js → conflict-AMNTM3FV.js} +2 -2
  38. package/dist/chunks/{contract-U3ZGNRWB.js → contract-PLO2V2NO.js} +2333 -4426
  39. package/dist/chunks/{cowork-EX7PKIDK.js → cowork-FZAXE6FO.js} +5 -4
  40. package/dist/chunks/{create-flow-EJZD434E.js → create-flow-2DAUN7HU.js} +16 -6
  41. package/dist/chunks/{data-FOODGAMF.js → data-7NXMWET4.js} +3 -3
  42. package/dist/chunks/{ebuilder-form-I2EOKODG.js → ebuilder-form-DEYHX6M7.js} +4 -4
  43. package/dist/chunks/{ehr-TE4RFNID.js → ehr-QQH2DYYA.js} +244 -151
  44. package/dist/chunks/{employee-DR5Y64TI.js → employee-PGMY6NI6.js} +1 -1
  45. package/dist/chunks/{entry-mode-ZOLSXEGX.js → entry-mode-2JTVEKMP.js} +3 -3
  46. package/dist/chunks/{env-TID5NFR6.js → env-2JZMXC6I.js} +2 -2
  47. package/dist/chunks/{esb-7L6MHYLB.js → esb-I5ZFHJUK.js} +8 -8
  48. package/dist/chunks/{factory-OG7BPMH5.js → factory-XIATYHU6.js} +1 -1
  49. package/dist/chunks/{fna-6V2ENR3Y.js → fna-3V2TL6B2.js} +5 -4
  50. package/dist/chunks/{group-chat-5DKPWIHL.js → group-chat-CVYUZCOQ.js} +3 -3
  51. package/dist/chunks/{host-TJ5VVHM7.js → host-4DP7C7YQ.js} +4 -4
  52. package/dist/chunks/{host-3DLYA54R.js → host-4KQCAEWA.js} +4 -4
  53. package/dist/chunks/{host-ONZC6AE7.js → host-4X2F3JPQ.js} +4 -4
  54. package/dist/chunks/{host-OGBHL75G.js → host-BD7NAM33.js} +4 -4
  55. package/dist/chunks/{host-VTPAWDZV.js → host-CBONEAZS.js} +4 -4
  56. package/dist/chunks/{host-GOJHHTPY.js → host-L37QVNIV.js} +4 -4
  57. package/dist/chunks/{hrm-2N7NFQDZ.js → hrm-OL3IKN7C.js} +6 -6
  58. package/dist/chunks/{im-XCH47ZBN.js → im-YXQWUF3R.js} +4 -4
  59. package/dist/chunks/{invoice-XQRKMGNY.js → invoice-4WY32PR2.js} +199 -332
  60. package/dist/chunks/{jiuchuanhui-PL6DRPBM.js → jiuchuanhui-L6SHLONH.js} +5 -4
  61. package/dist/chunks/{lazy-dispatch-UATEN7H7.js → lazy-dispatch-OYE6QV24.js} +5 -5
  62. package/dist/chunks/{mail-Q7Z4CQ4D.js → mail-PZV2KNRU.js} +5 -4
  63. package/dist/chunks/{meeting-5E3BNARL.js → meeting-6SOBCC6N.js} +16 -15
  64. package/dist/chunks/{minute-doc-NXRE5C77.js → minute-doc-KSJSJNOH.js} +4 -4
  65. package/dist/chunks/{okr-3O3XNYOK.js → okr-B76FW5M2.js} +5 -4
  66. package/dist/chunks/{operations-EZWG72FH.js → operations-YOMEGFLV.js} +5 -5
  67. package/dist/chunks/{performance-Y7CPNSOR.js → performance-4VBKUPFO.js} +5 -4
  68. package/dist/chunks/{plan-BLGPZF5M.js → plan-HBNZRQTI.js} +5 -4
  69. package/dist/chunks/{project-6MZMLJMP.js → project-IV6FWK74.js} +5 -4
  70. package/dist/chunks/{reception-F2VT2X52.js → reception-BR5YURT6.js} +3 -3
  71. package/dist/chunks/{recruit-stage-4ETIBMIW.js → recruit-stage-4HQ6OGXT.js} +654 -336
  72. package/dist/chunks/{registry-I4DVPDMU.js → registry-7LICMV5J.js} +12 -12
  73. package/dist/chunks/{registry-3FYSWV3U.js → registry-JFQEFC7E.js} +3 -3
  74. package/dist/chunks/{registry-3UGIWH53.js → registry-JMNOXRST.js} +2 -2
  75. package/dist/chunks/{registry-7RS74TCK.js → registry-MZJQX65Q.js} +5 -5
  76. package/dist/chunks/{room-recommend-GWCVKCXW.js → room-recommend-43GLLE7Y.js} +4 -4
  77. package/dist/chunks/{schedule-6AN63MJQ.js → schedule-ZQ42BEW6.js} +4 -4
  78. package/dist/chunks/{smart-extract-SR4SJJKN.js → smart-extract-QKAEAZGM.js} +3 -3
  79. package/dist/chunks/{workflow-KF7FA2UQ.js → workflow-6HV7H5PC.js} +10 -7
  80. package/dist/index.js +34 -34
  81. package/dist/internal/e10/auth/commands.js +21 -1
  82. package/dist/internal/e10/auth/xiaoe.js +6 -2
  83. package/dist/internal/e10/auth-recovery.js +28 -2
  84. package/dist/internal/e10/request-runtime.js +15 -3
  85. package/dist/internal/e10/request-trace.js +65 -0
  86. package/dist/shortcuts/contract/data/metric-catalog.js +149 -0
  87. package/dist/shortcuts/contract/index.js +14 -39
  88. package/dist/shortcuts/contract/manifest.js +115 -270
  89. package/dist/shortcuts/contract/operations/compare-report.js +437 -0
  90. package/dist/shortcuts/contract/operations/compare.js +2 -0
  91. package/dist/shortcuts/contract/operations/first-screen.js +96 -207
  92. package/dist/shortcuts/contract/operations/flow.js +19 -1
  93. package/dist/shortcuts/contract/operations/{card-ebdf-list.js → ledger-card.js} +98 -25
  94. package/dist/shortcuts/contract/operations/ledger.js +315 -1
  95. package/dist/shortcuts/contract/operations/metrics.js +93 -0
  96. package/dist/shortcuts/contract/operations/modeltext.js +3 -3
  97. package/dist/shortcuts/contract/operations/page.js +8 -4
  98. package/dist/shortcuts/contract/operations/performance.js +53 -0
  99. package/dist/shortcuts/contract/operations/quote-recognize.js +289 -0
  100. package/dist/shortcuts/contract/operations/quote-submit.js +264 -0
  101. package/dist/shortcuts/contract/operations/recommend.js +42 -1
  102. package/dist/shortcuts/contract/operations/registry.js +16 -23
  103. package/dist/shortcuts/contract/operations/{card-risk-report.js → review-report.js} +24 -114
  104. package/dist/shortcuts/contract/operations/review.js +33 -167
  105. package/dist/shortcuts/contract/operations/save-recognize.js +173 -43
  106. package/dist/shortcuts/contract/operations/triage.js +13 -6
  107. package/dist/shortcuts/contract/operations/{template.js → type-clause-read.js} +10 -25
  108. package/dist/shortcuts/contract/operations/upload.js +17 -11
  109. package/dist/shortcuts/contract/prewarm-cache.js +6 -2
  110. package/dist/shortcuts/contract/prewarm.js +33 -23
  111. package/dist/shortcuts/contract/recommend-cache.js +191 -0
  112. package/dist/shortcuts/ehr/operations/recruit-interview-overview.js +85 -62
  113. package/dist/shortcuts/ehr/operations/recruit-position.js +21 -13
  114. package/dist/shortcuts/ehr/operations/recruit-short-cache.js +59 -0
  115. package/dist/shortcuts/ehr/operations/recruit-tag.js +17 -11
  116. package/dist/shortcuts/ehr/operations/recruit-write.js +118 -70
  117. package/dist/shortcuts/ehr/operations/recruit.js +338 -121
  118. package/dist/shortcuts/hrm/operations/employee.js +64 -17
  119. package/dist/shortcuts/hrm/operations/resolve.js +419 -369
  120. package/dist/shortcuts/im/host.js +38 -22
  121. package/dist/shortcuts/invoice/manifest.js +30 -62
  122. package/dist/shortcuts/invoice/operations/registry.js +2 -2
  123. package/dist/shortcuts/invoice/operations/reim-customer.js +111 -0
  124. package/dist/shortcuts/invoice/operations/shared.js +0 -204
  125. package/dist/shortcuts/meeting/operations/eb/conflict.js +60 -2
  126. package/dist/shortcuts/meeting/operations/eb/create-flow.js +116 -7
  127. package/dist/shortcuts/meeting/operations/eb/create-form-link.js +380 -0
  128. package/dist/shortcuts/meeting/operations/eb/index.js +2 -0
  129. package/dist/shortcuts/meeting/operations/eb/room-recommend.js +1 -3
  130. package/dist/shortcuts/recruit-stage/batch-store.js +44 -0
  131. package/dist/shortcuts/recruit-stage/context.js +75 -9
  132. package/dist/shortcuts/recruit-stage/manifest.js +1 -1
  133. package/dist/shortcuts/recruit-stage/operations/jd-create.js +33 -22
  134. package/dist/shortcuts/recruit-stage/operations/list.js +187 -37
  135. package/dist/shortcuts/recruit-stage/operations/registry.js +2 -0
  136. package/dist/shortcuts/recruit-stage/operations/resume-import.js +231 -313
  137. package/dist/shortcuts/recruit-stage/operations/search.js +5 -5
  138. package/dist/shortcuts/recruit-stage/operations/tag.js +286 -0
  139. package/dist/shortcuts/workflow/endpoints.js +2 -0
  140. package/dist/shortcuts/workflow/operations/form.js +12 -15
  141. package/dist/shortcuts/workflow/operations/read.js +8 -8
  142. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoListRows.js +3 -2
  143. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +7 -6
  144. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +4 -3
  145. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.group.js +1 -0
  146. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +33 -6
  147. package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.prepareQuery.js +153 -0
  148. package/dist/shortcuts/workflow/operations/todoSmartConvert/workflowClarification.js +232 -0
  149. package/dist/shortcuts/workflow/operations.js +5 -0
  150. package/docs/agent-invoice.md +1 -1
  151. package/docs/contract.md +2 -2
  152. package/docs/e10-auth.md +28 -0
  153. package/docs/ehr.md +1 -1
  154. package/docs/invoice.md +0 -2
  155. package/package.json +1 -1
  156. package/skill-template/domains/yepiaotong.md +0 -1
  157. package/skills/weaver-e10-hrm/SKILL.md +3 -3
  158. package/skills/weaver-e10-hrm/references/employee.md +13 -2
  159. package/skills/weaver-e10-jinchengda/SKILL.md +237 -347
  160. package/skills/weaver-e10-jinchengda/references/contract-agent-entry.md +7 -14
  161. package/skills/weaver-e10-jinchengda/references/contract-ai-assistant.md +21 -12
  162. package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +109 -185
  163. package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +12 -4
  164. package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +28 -20
  165. package/skills/weaver-e10-jinchengda/references/contract-clause-recommender.md +12 -17
  166. package/skills/weaver-e10-jinchengda/references/contract-clause-reference-save.md +7 -13
  167. package/skills/weaver-e10-jinchengda/references/contract-command-index.md +21 -12
  168. package/skills/weaver-e10-jinchengda/references/contract-compare-report-template.html +10 -18
  169. package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +18 -17
  170. package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +114 -61
  171. package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +8 -2
  172. package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +73 -104
  173. package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +32 -37
  174. package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +12 -10
  175. package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +70 -82
  176. package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +37 -33
  177. package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +94 -27
  178. package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +5 -5
  179. package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +9 -15
  180. package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +9 -4
  181. package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +59 -32
  182. package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +7 -5
  183. package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +21 -13
  184. package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +13 -13
  185. package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +6 -5
  186. package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +250 -0
  187. package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +11 -20
  188. package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +203 -54
  189. package/skills/weaver-e10-jinchengda/references/contract-request-status.md +4 -11
  190. package/skills/weaver-e10-jinchengda/references/contract-request-write.md +11 -17
  191. package/skills/weaver-e10-jinchengda/references/contract-signing-subjects.md +11 -17
  192. package/skills/weaver-e10-jinchengda/references/contract-subject-create.md +5 -11
  193. package/skills/weaver-e10-jinchengda/references/contract-template-recommend.md +56 -7
  194. package/skills/weaver-e10-jinchengda/references/contract-workflow-discovery.md +10 -16
  195. package/skills/weaver-e10-jinchengda/references/orchestration.md +31 -33
  196. package/skills/weaver-e10-jucailin/SKILL.md +6 -7
  197. package/skills/weaver-e10-jucailin/agents/openai.yaml +52 -0
  198. package/skills/weaver-e10-jucailin/references/recruit-interview-overview.md +8 -6
  199. package/skills/weaver-e10-jucailin/references/recruit-read.md +4 -0
  200. package/skills/weaver-e10-jucailin/references/recruit-screening-to-interview-sop.md +2 -2
  201. package/skills/weaver-e10-jucailin/references/recruit-write.md +4 -4
  202. package/skills/weaver-e10-meeting/SKILL.md +83 -531
  203. package/skills/weaver-e10-meeting/references/commands-table.md +61 -0
  204. package/skills/weaver-e10-meeting/references/create-commands.md +136 -0
  205. package/skills/weaver-e10-meeting/references/create-flow.md +3 -1
  206. package/skills/weaver-e10-meeting/references/create-guardrails.md +14 -8
  207. package/skills/weaver-e10-meeting/references/custom-fields.md +40 -0
  208. package/skills/weaver-e10-meeting/references/eb-contracts.md +60 -0
  209. package/skills/weaver-e10-meeting/references/invitation.md +69 -0
  210. package/skills/weaver-e10-meeting/references/minutes-pipeline.md +119 -0
  211. package/skills/weaver-e10-meeting/references/pitfalls.md +1 -1
  212. package/skills/weaver-e10-meeting/references/room-recommend.md +88 -0
  213. package/skills/weaver-e10-recruit-stage/SKILL.md +317 -266
  214. package/skills/weaver-e10-recruit-stage/agents/openai.yaml +22 -27
  215. package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +1 -1
  216. package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +30 -27
  217. package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +2 -6
  218. package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +12 -10
  219. package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +2 -0
  220. package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +23 -19
  221. package/skills/weaver-e10-recruit-stage/references/recruit-jd-template.md +3 -1
  222. package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +18 -16
  223. package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +25 -23
  224. package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +10 -10
  225. package/skills/weaver-e10-recruit-stage/references/recruit-resolve-metadata.md +2 -2
  226. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +11 -11
  227. package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +150 -85
  228. package/skills/weaver-e10-recruit-stage/references/recruit-resume-parse.md +14 -18
  229. package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +1 -1
  230. package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +173 -0
  231. package/skills/weaver-e10-recruit-stage/references/recruit-tag-taxonomy.json +76 -0
  232. package/skills/weaver-e10-recruit-stage/references/recruit-urge-feedback.md +3 -1
  233. package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +2 -2
  234. package/skills/weaver-e10-workflow/SKILL.md +49 -32
  235. package/skills/weaver-e10-workflow/references/todo-dialogue.md +67 -34
  236. package/skills/weaver-e10-workflow/references/todo-smart-convert.md +65 -51
  237. package/skills/weaver-e10-workflow/references/workflow-agent-entry.md +18 -11
  238. package/skills/weaver-e10-workflow/references/workflow-create.md +2 -2
  239. package/skills/weaver-e10-workflow/references/workflow-memory.md +19 -37
  240. package/skills/weaver-e10-workflow/references/workflow-query.md +25 -22
  241. package/skills/weaver-e10-workflow/references/workflow-view.md +1 -1
  242. package/skills/weaver-e10-workflow/tools/todo-summary.cjs +318 -110
  243. package/skills/weaver-e10-yepiaotong/SKILL.md +16 -9
  244. package/skills/weaver-e10-yepiaotong/references/invoice-reim-relation.md +9 -7
  245. package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +15 -11
  246. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +29 -25
  247. package/skills/weaver-e10-yepiaotong/references/reim-customer-search.md +89 -0
  248. package/skills/weaver-e10-yepiaotong/references/reim-examples.md +35 -37
  249. package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +66 -63
  250. package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +50 -71
  251. package/skills/weaver-e10-yepiaotong/references/source-manifest.json +34 -95
  252. package/skills/weaver-e10-yimiaoban/SKILL.md +10 -10
  253. package/skills/weaver-e10-yimiaoban/references/person.md +1 -1
  254. package/skills/weaver-e10-yimiaoban/references/safety-boundaries.md +1 -1
  255. package/skills/weaver-e10-yimiaoban/references/source-manifest.json +9 -9
  256. package/dist/chunks/chunk-6QYNE6HE.js +0 -658
  257. package/dist/chunks/chunk-SHYQUBY3.js +0 -48
  258. package/dist/shortcuts/contract/operations/card-action.js +0 -1266
  259. package/dist/shortcuts/contract/operations/card-plan.js +0 -393
  260. package/dist/shortcuts/contract/operations/card.js +0 -232
  261. package/dist/shortcuts/contract/operations/compare-screen.js +0 -378
  262. package/dist/shortcuts/contract/operations/quote-to-contract.js +0 -495
  263. package/dist/shortcuts/contract/operations/quotescreen.js +0 -529
  264. package/dist/shortcuts/contract/operations/summary-validate.js +0 -293
  265. package/dist/shortcuts/contract/operations/summary.js +0 -187
  266. package/dist/shortcuts/ehr/recruit-stage/batch-store.js +0 -78
  267. package/dist/shortcuts/ehr/recruit-stage/context.js +0 -231
  268. package/dist/shortcuts/ehr/recruit-stage/continuation.js +0 -74
  269. package/dist/shortcuts/ehr/recruit-stage/errors.js +0 -65
  270. package/dist/shortcuts/ehr/recruit-stage/fs-scan.js +0 -165
  271. package/dist/shortcuts/ehr/recruit-stage/host.js +0 -109
  272. package/dist/shortcuts/ehr/recruit-stage/operations/interview-arrange.js +0 -1065
  273. package/dist/shortcuts/ehr/recruit-stage/operations/interview-feedback.js +0 -295
  274. package/dist/shortcuts/ehr/recruit-stage/operations/jd-create.js +0 -961
  275. package/dist/shortcuts/ehr/recruit-stage/operations/list.js +0 -431
  276. package/dist/shortcuts/ehr/recruit-stage/operations/registry.js +0 -50
  277. package/dist/shortcuts/ehr/recruit-stage/operations/resume-import.js +0 -1655
  278. package/dist/shortcuts/ehr/recruit-stage/operations/search.js +0 -158
  279. package/dist/shortcuts/ehr/recruit-stage/operations/types.js +0 -34
  280. package/dist/shortcuts/ehr/recruit-stage/runtime.js +0 -31
  281. package/dist/shortcuts/ehr/recruit-stage/school-tiers.json +0 -318
  282. package/dist/shortcuts/ehr/recruit-stage/shared.js +0 -887
  283. package/dist/shortcuts/invoice/operations/browse-field.js +0 -17
  284. package/skills/weaver-e10-jinchengda/references/contract-action-card-template.html +0 -22
  285. package/skills/weaver-e10-jinchengda/references/contract-action-card.md +0 -554
  286. package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +0 -279
  287. package/skills/weaver-e10-jinchengda/references/contract-card-render-internals.md +0 -483
  288. package/skills/weaver-e10-jinchengda/references/contract-template-selector.md +0 -46
  289. package/skills/weaver-e10-recruit-stage/lib/recruit-resume-photo.py +0 -194
  290. package/skills/weaver-e10-yepiaotong/references/invoice-browse-field-data.md +0 -204
@@ -1,194 +0,0 @@
1
- #!/usr/bin/env python3
2
- """简历证件照提取(recruit-resume-photo)
3
-
4
- 从 PDF 简历中提取内嵌位图,按证件照特征筛出候选头像,落成本地图片文件,
5
- 供 `weaver-work-cli recruit-stage run recruit-stage.resume.import.prepare|apply`
6
- 的 `photoFile` 参数使用。
7
-
8
- 用法:
9
- python recruit-resume-photo.py --pdf <简历.pdf> [--out <输出目录>] [--json]
10
-
11
- 输出(stdout JSON):
12
- {
13
- "ok": true,
14
- "pdf": "...",
15
- "pageCount": 4,
16
- "scanned": 1, # 扫描到的内嵌位图总数
17
- "candidates": [ # 按可信度降序
18
- {"path": ".../photo_1.png", "page": 1, "width": 74, "height": 92,
19
- "ratio": 0.804, "score": 85, "reason": "..."}
20
- ],
21
- "best": {...} | null,
22
- "notes": ["..."] # 无候选时的原因说明
23
- }
24
-
25
- 判定口径(无渲染器、只看内嵌位图,因此只能靠几何+色彩特征):
26
- - 证件照常见宽高比 0.55 ~ 0.90(一寸 295x413≈0.714,二寸 413x579≈0.713)
27
- - 宽幅图(ratio > 1.2)基本是 logo / 横幅 / 分隔条,直接排除
28
- - 最小边 < 40px 视为图标排除
29
- - 位于第 1 页的候选加分(简历头像通常在第一页)
30
- - 肤色像素占比明显偏高加分(简单启发式,不做人脸识别)
31
-
32
- 退出码: 0 有候选 / 2 无候选 / 1 参数或读取错误
33
- """
34
- import argparse
35
- import io
36
- import json
37
- import os
38
- import sys
39
-
40
- MIN_SIDE = 40
41
- RATIO_LOW, RATIO_HIGH = 0.55, 0.90
42
- WIDE_RATIO = 1.2
43
-
44
-
45
- def _skin_ratio(pil_img):
46
- """粗估肤色像素占比,仅作加分项,不用于硬判定。"""
47
- try:
48
- small = pil_img.convert("RGB").resize((32, 32))
49
- except Exception:
50
- return 0.0
51
- hit = total = 0
52
- for r, g, b in small.getdata():
53
- total += 1
54
- if r > 95 and g > 40 and b > 20 and r > g and r > b and (max(r, g, b) - min(r, g, b)) > 15:
55
- hit += 1
56
- return round(hit / total, 3) if total else 0.0
57
-
58
-
59
- def extract(pdf_path, out_dir):
60
- from pypdf import PdfReader
61
- from PIL import Image
62
-
63
- reader = PdfReader(pdf_path)
64
- os.makedirs(out_dir, exist_ok=True)
65
-
66
- scanned = []
67
- for page_no, page in enumerate(reader.pages, 1):
68
- try:
69
- images = list(page.images)
70
- except Exception:
71
- continue
72
- for idx, im in enumerate(images):
73
- try:
74
- pil = Image.open(io.BytesIO(im.data))
75
- pil.load()
76
- except Exception:
77
- continue
78
- w, h = pil.size
79
- scanned.append({
80
- "page": page_no,
81
- "index": idx,
82
- "name": getattr(im, "name", "img%d" % idx),
83
- "pil": pil,
84
- "width": w,
85
- "height": h,
86
- })
87
-
88
- candidates = []
89
- notes = []
90
- for item in scanned:
91
- w, h = item["width"], item["height"]
92
- ratio = round(w / h, 3) if h else 0
93
- if min(w, h) < MIN_SIDE:
94
- notes.append("跳过 %s:尺寸过小(%dx%d)" % (item["name"], w, h))
95
- continue
96
- if ratio > WIDE_RATIO:
97
- notes.append("跳过 %s:宽幅图(ratio=%.2f),判为 logo/横幅" % (item["name"], ratio))
98
- continue
99
-
100
- score = 60
101
- reasons = []
102
- if RATIO_LOW <= ratio <= RATIO_HIGH:
103
- score += 20
104
- reasons.append("宽高比 %.2f 符合证件照" % ratio)
105
- else:
106
- score += 5
107
- reasons.append("宽高比 %.2f 偏离证件照但仍在竖图范围" % ratio)
108
- if item["page"] == 1:
109
- score += 10
110
- reasons.append("位于第 1 页")
111
- skin = _skin_ratio(item["pil"])
112
- if skin >= 0.12:
113
- score += 10
114
- reasons.append("肤色占比 %.0f%%" % (skin * 100))
115
- if w >= 100 and h >= 130:
116
- score += 5
117
- reasons.append("分辨率可用 %dx%d" % (w, h))
118
-
119
- candidates.append({
120
- "page": item["page"],
121
- "index": item["index"],
122
- "width": w,
123
- "height": h,
124
- "ratio": ratio,
125
- "skinRatio": skin,
126
- "score": min(score, 99),
127
- "reason": ";".join(reasons),
128
- "_pil": item["pil"],
129
- "_name": item["name"],
130
- })
131
-
132
- candidates.sort(key=lambda c: c["score"], reverse=True)
133
-
134
- # 落盘:优先 PNG(无损),超过 2MB 转 JPEG
135
- results = []
136
- for order, cand in enumerate(candidates, 1):
137
- pil = cand.pop("_pil")
138
- name = cand.pop("_name")
139
- ext = ".png"
140
- try:
141
- buf = io.BytesIO()
142
- pil.save(buf, format="PNG")
143
- if buf.tell() > 2 * 1024 * 1024:
144
- buf = io.BytesIO()
145
- pil.convert("RGB").save(buf, format="JPEG", quality=90)
146
- ext = ".jpg"
147
- path = os.path.join(out_dir, "photo_%d%s" % (order, ext))
148
- with open(path, "wb") as f:
149
- f.write(buf.getvalue())
150
- cand["path"] = path
151
- cand["bytes"] = buf.tell()
152
- cand["sourceName"] = name
153
- results.append(cand)
154
- except Exception as e:
155
- notes.append("写入候选图失败(%s):%s" % (name, e))
156
-
157
- if not results:
158
- notes.append("简历中未找到符合证件照特征的内嵌图片")
159
- return {
160
- "ok": bool(results),
161
- "pdf": pdf_path,
162
- "pageCount": len(reader.pages),
163
- "scanned": len(scanned),
164
- "candidates": results,
165
- "best": results[0] if results else None,
166
- "notes": notes,
167
- }
168
-
169
-
170
- def main():
171
- ap = argparse.ArgumentParser(description="从 PDF 简历中提取证件照候选")
172
- ap.add_argument("--pdf", required=True, help="简历 PDF 路径")
173
- ap.add_argument("--out", default=None, help="输出目录(默认与 PDF 同目录下 resume-photo)")
174
- ap.add_argument("--json", action="store_true", help="仅输出 JSON(默认也是 JSON,保留兼容)")
175
- args = ap.parse_args()
176
-
177
- pdf_path = os.path.abspath(args.pdf)
178
- if not os.path.isfile(pdf_path):
179
- print(json.dumps({"ok": False, "error": "文件不存在: %s" % pdf_path}, ensure_ascii=False))
180
- return 1
181
-
182
- out_dir = args.out or os.path.join(os.path.dirname(pdf_path), "resume-photo")
183
- try:
184
- result = extract(pdf_path, out_dir)
185
- except Exception as e:
186
- print(json.dumps({"ok": False, "error": "%s: %s" % (type(e).__name__, e)}, ensure_ascii=False))
187
- return 1
188
-
189
- print(json.dumps(result, ensure_ascii=False, indent=2))
190
- return 0 if result["ok"] else 2
191
-
192
-
193
- if __name__ == "__main__":
194
- sys.exit(main())
@@ -1,204 +0,0 @@
1
- # 发票浏览按钮字段数据
2
-
3
- ## 什么时候读取
4
-
5
- 用户要把业票通发票填入 E10 流程表单的发票浏览按钮控件,或要求"生成发票字段结构化数据""流程填单发票对象数据"时读取本文件。
6
-
7
- ## Operation
8
-
9
- | Operation | 风险 | 输入 |
10
- | --- | --- | --- |
11
- | `invoice.browse-field.data` | read | `fid`、`fids` 或已取得的 `detail` 响应三选一 |
12
-
13
- ## 业务用途
14
-
15
- E10 流程填单时,发票字段使用浏览按钮控件,填值必须传入包含完整票面信息的 JSON 对象,不能传简单文本。CLI 根据 `fid` 自动完成详情查询和 JSON 转换。
16
-
17
- ## 命令
18
-
19
- Windows PowerShell:
20
-
21
- ```powershell
22
- weaver-work-cli --json invoice run invoice.browse-field.data --input-json '{"fid":"12345"}'
23
- ```
24
-
25
- macOS/Linux(bash/zsh):
26
-
27
- ```bash
28
- weaver-work-cli --json invoice run invoice.browse-field.data --input-json '{"fid":"12345"}'
29
- ```
30
-
31
- 多张发票:
32
-
33
- Windows PowerShell:
34
-
35
- ```powershell
36
- weaver-work-cli --json invoice run invoice.browse-field.data --input-json '{"fids":["12345","67890"]}'
37
- ```
38
-
39
- macOS/Linux(bash/zsh):
40
-
41
- ```bash
42
- weaver-work-cli --json invoice run invoice.browse-field.data --input-json '{"fids":["12345","67890"]}'
43
- ```
44
-
45
- ## 目标 JSON 结构
46
-
47
- 下表定义每个发票对象的字段。`D` 代指发票详情响应中的 `infos[].info`。
48
-
49
- | 键 | 类型 | 来源 | 说明 |
50
- |---|---|---|---|
51
- | `optionId` / `id` / `fid` | string | `D.fid` | 三者取相同值,发票唯一标识。 |
52
- | `type` | integer | `D.comm_info.pro.type` | 票种编码。 |
53
- | `typeName` | string | `D.comm_info.pro.cname`;缺失时按 `type` 查[票种名称表](#票种编码与名称) | 票种中文名称。 |
54
- | `number` | string | `D.number` | 发票号码。 |
55
- | `code` | string | `D.code` | 发票代码;无代码票种取空串。 |
56
- | `content` / `name` | string | `"{typeName}-{number}"` 拼接 | 显示用摘要,两者取相同值。 |
57
- | `total` | string | `D.comm_info.price.total` | 价税合计,单位元。 |
58
- | `ttax` | string | `D.ext` → `ttax` | 票面税额。 |
59
- | `seller` | string | `D.comm_info.payer.company` | 销售方名称。 |
60
- | `sellerId` | string | `D.comm_info.payer.tcode` | 销售方税号。 |
61
- | `buyer` | string | `D.comm_info.buyer.company` | 购买方名称。 |
62
- | `buyerId` | string | `D.comm_info.buyer.tcode` | 购买方税号。 |
63
- | `incDate` | string | `D.comm_info.pro.date` | 开票日期 `yyyy-MM-dd`。 |
64
- | `incDateTimestamp` | integer | `incDate` 转 UTC+8 零时毫秒时间戳 | 空时取 `0`。 |
65
- | `validStatus` | string | `D.comm_info.pro.valid` 查[查验状态表](#查验状态) | 查验状态文本。 |
66
- | `source` | string | `D.modify_info.source` 查[录入来源表](#录入来源) | 录入来源文本。 |
67
- | `invoiceStatus` | integer | `D.comm_info.pro.status` | 发票状态;`0` 正常。 |
68
- | `del` | integer | `D.modify_info.del` | 删除状态;`0` 正常。 |
69
- | `currency` / `currencyName` | string | `D.currency` / `D.currencyName` | 默认 `"CNY"` / `"人民币"`。 |
70
- | `taxRate` | string | `D.ext` → `taxRate` 或 `products[0].taxRate` | 税率,如 `"13.000"`。 |
71
- | `consumeContent` | string | `D.ext` → `products` 各项 `productName` 拼接 | 消费内容。 |
72
- | `fylx` | string | `D.fylx` | 费用类型 ID;缺失取 `"0"`。 |
73
- | `inputDate` | string | `D.modify_info.createDate` | 录入日期 `yyyy-MM-dd HH:mm:ss`。 |
74
- | `incTotal` | integer | 固定 `0` | 预留字段。 |
75
- | `reimingMoney` | string | `D.comm_info.price.reimingMoney` | 报销中金额;缺失取空串。 |
76
- | `reimedMoney` | string | `D.comm_info.price.reimedMoney` | 已报销金额;缺失取空串。 |
77
- | `notReimMoney` | string | `total - reimedMoney - reimingMoney` | 无报销数据时等于 `total`。 |
78
- | `reimDate` | string | 报销日期 | 缺失取空串。 |
79
- | `reimProcess` | string | 报销流程 ID | 缺失取空串。 |
80
-
81
- 缺失字段统一按类型填充:字符串用空串 `""`,数值用 `0`。
82
-
83
- ## 枚举映射表
84
-
85
- ### 票种编码与名称
86
-
87
- 优先使用详情响应中的 `cname`。仅当 `cname` 缺失时按以下表查找。
88
-
89
- | `type` | `typeName` |
90
- |---:|---|
91
- | 1 | 增值税专用发票 |
92
- | 2 | 增值税普通发票 |
93
- | 3 | 增值税电子普通发票 |
94
- | 4 | 卷式发票 |
95
- | 5 | 通行费增值税电子普通发票 |
96
- | 6 | 机动车销售统一发票 |
97
- | 7 | 定额发票 |
98
- | 8 | 客运汽车票 |
99
- | 9 | 航空运输电子客票行程单 |
100
- | 10 | 火车票 |
101
- | 11 | 出租车票 |
102
- | 12 | 其他 |
103
- | 13 | 汽车通行费发票 |
104
- | 14 | 船票 |
105
- | 22 | 二手车销售统一发票 |
106
- | 28 | 增值税电子专用发票 |
107
- | 32 | 电子发票(增值税专用发票) |
108
- | 33 | 电子发票(普通发票) |
109
- | 47 | 医疗收费票据 |
110
- | 48 | 财政非税收入统一票据 |
111
- | 49 | 海关进口增值税专用缴款书 |
112
- | 50 | 电子发票服务平台纸质普票 |
113
- | 52 | 完税凭证 |
114
- | 53 | 国际小票 |
115
- | 54 | 银行回单 |
116
- | 56 | 代扣代缴税收缴款凭证 |
117
-
118
- 未匹配的 `type` 使用 `"未知票种"`。
119
-
120
- ### 查验状态
121
-
122
- | `valid` | `validStatus` |
123
- |---:|---|
124
- | 0 | 未查验 |
125
- | 1 | 有效已查验 |
126
- | 2 | 有效未查验 |
127
- | 3 | 查验失败 |
128
- | 4 | 发票无效 |
129
- | 5 | 票面校验不一致 |
130
-
131
- ### 录入来源
132
-
133
- | `source` | 文本 |
134
- |---:|---|
135
- | 1 | 微信 |
136
- | 2 | 支付宝 |
137
- | 4 | 邮箱 |
138
- | 5 | 拍照 |
139
- | 6 | 扫码 |
140
- | 7 | 手动 |
141
- | 9 | 查验录入 |
142
- | 10 | 企业微信 |
143
- | 11 | 公众号 |
144
- | 12 | 企业台账 |
145
- | 13 | 文件 |
146
- | 14 | Excel |
147
- | 15 | 短信 |
148
- | 16 | 链接录入 |
149
-
150
- 未匹配的 `source` 使用空串。
151
-
152
- ## 输出示例
153
-
154
- ```json
155
- {
156
- "optionId": "1307869223054704650",
157
- "id": "1307869223054704650",
158
- "fid": "1307869223054704650",
159
- "type": 32,
160
- "typeName": "电子发票(增值税专用发票)",
161
- "number": "26932000001429154341",
162
- "code": "",
163
- "content": "电子发票(增值税专用发票)-26932000001429154341",
164
- "name": "电子发票(增值税专用发票)-26932000001429154341",
165
- "total": "368269.14",
166
- "ttax": "42367.25",
167
- "seller": "宁波市北仑亮峰精密机械制造有限公司",
168
- "sellerId": "91330206744967935K",
169
- "buyer": "宁波海伯集团有限公司",
170
- "buyerId": "913302041443146316",
171
- "incDate": "2026-08-25",
172
- "incDateTimestamp": 1787587200000,
173
- "validStatus": "有效已查验",
174
- "source": "邮箱",
175
- "invoiceStatus": 0,
176
- "del": 0,
177
- "currency": "CNY",
178
- "currencyName": "人民币",
179
- "taxRate": "13.000",
180
- "consumeContent": "*金属制品*主齿轮",
181
- "fylx": "0",
182
- "inputDate": "2026-08-26 10:40:33",
183
- "incTotal": 0,
184
- "reimingMoney": "",
185
- "reimedMoney": "",
186
- "notReimMoney": "368269.14",
187
- "reimDate": "",
188
- "reimProcess": ""
189
- }
190
- ```
191
-
192
- ## 输出处理
193
-
194
- 成功时 `data.items` 是浏览按钮可用对象数组。如果批量详情中有部分发票失败,operation 返回 `meta.status="PARTIAL"`,成功项仍在 `data.items`,失败项在 `data.errors`。Agent 回复用户时只展示成功数量、失败数量和关键发票字段;不要粘贴完整大 JSON。
195
-
196
- ## 边界与错误处理
197
-
198
- - 详情查询固定 `mask=0`、`userFlag=1`、`isDelFlag=1`。
199
- - `ext` 为 JSON 字符串,解析失败时 `ttax`、`taxRate`、`consumeContent` 取空串,不中断记录生成。
200
- - 批量 fid 中部分查询失败时,成功项正常输出,失败项出现在 `errors` 数组中。
201
-
202
- ## 注意
203
-
204
- 该 operation 由 CLI 封装,Agent 只需调用 `invoice.browse-field.data` 或 `invoice.get`,不能直接 `curl` E10 接口,也不需要运行旧源码里的 Python 脚本。