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
@@ -0,0 +1,153 @@
1
+ import { WorkflowCliError, workflowApiError } from '../../errors.js';
2
+ import { buildSearchQuery, extractTotal, rethrowAuthOrNetworkError } from '../read.js';
3
+ import { responseData } from '../shared.js';
4
+ import { generalRules } from './aigroupRules.js';
5
+ import { COLLECT_FILTER_KEYS, COLLECT_ORDER_KEYS, DEFAULT_TABID, LIST_ENDPOINT_BY_CATEGORY, QUERY_MAX_LIMIT, readCategory, readCollectPolicy, totalEndpointFor, } from './todoSmartConvert.core.js';
6
+ function recordOf(value) {
7
+ return value !== null && typeof value === 'object' && !Array.isArray(value)
8
+ ? value : {};
9
+ }
10
+ function idOf(value) {
11
+ if (typeof value === 'string')
12
+ return value.trim();
13
+ return typeof value === 'number' && Number.isSafeInteger(value) ? String(value) : '';
14
+ }
15
+ function successfulData(response) {
16
+ const outer = recordOf(response);
17
+ const data = recordOf(responseData(response));
18
+ const nested = recordOf(data.data);
19
+ const failed = [outer, data, nested].find(part => part.status === false || part.success === false || part.fail === true);
20
+ if (failed) {
21
+ const code = failed.code ?? outer.code;
22
+ throw workflowApiError('business_error', '待办查询失败,未生成分布统计', {
23
+ ...(typeof code === 'string' || typeof code === 'number' ? { code } : {}),
24
+ });
25
+ }
26
+ return data;
27
+ }
28
+ function displayRows(response) {
29
+ const data = successfulData(response);
30
+ const nested = recordOf(data.data);
31
+ const rows = nested.displayData ?? data.displayData;
32
+ if (!Array.isArray(rows) || rows.some(row => row === null || typeof row !== 'object' || Array.isArray(row))) {
33
+ throw workflowApiError('unexpected_response', '待办列表返回结构异常,未生成分布统计');
34
+ }
35
+ return rows;
36
+ }
37
+ /** 准备原生查询,并用同条件标准列表生成有界分布;不收窄时间、不生成摘要或汇总ID。 */
38
+ export async function prepareTodoQuery(args, env) {
39
+ const category = readCategory(args.category);
40
+ const requestedLimit = args.limit === undefined || args.limit === null || args.limit === '' ? QUERY_MAX_LIMIT : args.limit;
41
+ const policy = readCollectPolicy('query', requestedLimit);
42
+ const searchArgs = { category };
43
+ for (const key of [...COLLECT_FILTER_KEYS, ...COLLECT_ORDER_KEYS]) {
44
+ const value = args[key];
45
+ if (value !== undefined && value !== null && value !== '')
46
+ searchArgs[key] = value;
47
+ }
48
+ const explicitTab = ['tabid', 'tabName', 'subCategory'].some(key => searchArgs[key] !== undefined
49
+ && String(searchArgs[key]).trim() !== '');
50
+ if (!explicitTab)
51
+ searchArgs.tabid = DEFAULT_TABID;
52
+ if (searchArgs.isremarks === undefined) {
53
+ const defaultIsremarks = generalRules()?.identityFilter?.defaultIsremarks?.trim();
54
+ if (defaultIsremarks)
55
+ searchArgs.isremarks = defaultIsremarks;
56
+ }
57
+ const { query, warnings } = await buildSearchQuery(env, searchArgs, 'list', category === 'todo' ? { workflowNameMatch: 'all' } : {});
58
+ const isremarks = String(searchArgs.isremarks ?? '').trim();
59
+ if (isremarks)
60
+ query.params = { ...query.params, isremarks };
61
+ // 共享 builder 仍保留其他调用的单页100限制;本入口明确交由标准列表每页500获取。
62
+ const listQuery = { ...query, customDisplayPage: { current: 1, size: 500 } };
63
+ const totalBody = { ...listQuery };
64
+ delete totalBody.customDisplayPage;
65
+ let total = null;
66
+ try {
67
+ const response = await env.host.workflowRequest({
68
+ method: 'POST', path: totalEndpointFor(LIST_ENDPOINT_BY_CATEGORY[category]),
69
+ operation: 'workflow.todoSmartConvert.prepareQuery.total', body: totalBody,
70
+ });
71
+ successfulData(response);
72
+ const parsed = extractTotal(response);
73
+ if (parsed !== null && Number.isSafeInteger(parsed) && parsed >= 0)
74
+ total = parsed;
75
+ }
76
+ catch (error) {
77
+ rethrowAuthOrNetworkError(error);
78
+ if (!(error instanceof WorkflowCliError) || error.type === 'permission' || error.type === 'authorization'
79
+ || error.code === 401 || error.code === 403 || error.code === '401' || error.code === '403')
80
+ throw error;
81
+ }
82
+ const selectedNames = new Map();
83
+ const workflowConditions = recordOf(recordOf(listQuery.searchParams).formDatas).workflowid;
84
+ for (const condition of Array.isArray(workflowConditions) ? workflowConditions : []) {
85
+ const browserDatas = recordOf(condition).browserDatas;
86
+ for (const item of Array.isArray(browserDatas) ? browserDatas : []) {
87
+ const entry = recordOf(item);
88
+ const id = idOf(entry.id);
89
+ if (id && typeof entry.name === 'string' && entry.name.trim())
90
+ selectedNames.set(id, entry.name.trim());
91
+ }
92
+ }
93
+ const seen = new Set();
94
+ const counts = new Map();
95
+ const limit = policy.limit ?? QUERY_MAX_LIMIT;
96
+ let unreadRows = false;
97
+ for (let current = 1; total !== 0 && seen.size < limit; current += 1) {
98
+ const response = await env.host.workflowRequest({
99
+ method: 'POST', path: LIST_ENDPOINT_BY_CATEGORY[category],
100
+ operation: 'workflow.todoSmartConvert.prepareQuery.distribution',
101
+ body: { ...listQuery, customDisplayPage: { current, size: 500 } },
102
+ });
103
+ const rows = displayRows(response);
104
+ const parsedTotal = extractTotal(response);
105
+ const pageTotal = parsedTotal !== null && Number.isSafeInteger(parsedTotal) && parsedTotal >= 0 ? parsedTotal : null;
106
+ const before = seen.size;
107
+ for (const row of rows) {
108
+ const requestId = idOf(row.requestId) || idOf(row.requestid);
109
+ const workflowId = idOf(row.workflowId) || idOf(row.workflowid);
110
+ if (!requestId || !workflowId) {
111
+ throw workflowApiError('unexpected_response', '待办列表缺少流程标识,未生成分布统计');
112
+ }
113
+ if (seen.has(requestId))
114
+ continue;
115
+ if (seen.size >= limit) {
116
+ unreadRows = true;
117
+ break;
118
+ }
119
+ seen.add(requestId);
120
+ const name = [row.workflowName, row.workflowname].find(value => typeof value === 'string' && value.trim());
121
+ const workflowName = typeof name === 'string' ? name.trim() : selectedNames.get(workflowId) ?? '未提供名称';
122
+ const bucket = counts.get(workflowId);
123
+ if (bucket) {
124
+ bucket.count += 1;
125
+ if (bucket.workflowName === '未提供名称' && workflowName !== '未提供名称')
126
+ bucket.workflowName = workflowName;
127
+ }
128
+ else
129
+ counts.set(workflowId, { workflowId, workflowName, count: 1 });
130
+ }
131
+ if (total === null && pageTotal !== null && pageTotal >= seen.size)
132
+ total = pageTotal;
133
+ if (total !== null && total < seen.size)
134
+ total = pageTotal !== null && pageTotal >= seen.size ? pageTotal : null;
135
+ if (rows.length === 0 || seen.size === before || (total !== null && seen.size >= total))
136
+ break;
137
+ }
138
+ const complete = total !== null && seen.size === total && !unreadRows;
139
+ const sort = typeof searchArgs.sort === 'string' ? searchArgs.sort.trim() : '';
140
+ return {
141
+ stage: 'prepareQuery',
142
+ query: {
143
+ category, requestedLimit: policy.limit, totalAvailable: total,
144
+ filters: Object.fromEntries(Object.entries(searchArgs).filter(([key]) => !['category', 'tabid', 'sort'].includes(key))),
145
+ listQuery,
146
+ ...(sort ? { sort } : {}),
147
+ },
148
+ totalCount: total,
149
+ distribution: { items: [...counts.values()], readCount: seen.size, totalCount: total, complete, truncated: !complete },
150
+ markdown: total === null ? '查询条件已准备,数量待列表返回。' : `查询条件已准备,匹配${total}条待办。`,
151
+ ...(warnings?.length ? { warnings } : {}),
152
+ };
153
+ }
@@ -0,0 +1,232 @@
1
+ import { WORKFLOW_ENDPOINTS } from '../../endpoints.js';
2
+ import { CLARIFICATION_SUBTYPE, WorkflowCliError } from '../../errors.js';
3
+ import { buildSearchQuery, extractTotal, rethrowAuthOrNetworkError } from '../read.js';
4
+ import { responseData } from '../shared.js';
5
+ import { DEFAULT_TABID } from './todoSmartConvert.core.js';
6
+ import { generalRules } from './aigroupRules.js';
7
+ const COUNT_CONCURRENCY = 4;
8
+ function recordOf(value) {
9
+ return value !== null && typeof value === 'object' && !Array.isArray(value)
10
+ ? value : {};
11
+ }
12
+ function textOf(value) {
13
+ return typeof value === 'string' ? value.trim() : '';
14
+ }
15
+ /** Optional statistics must preserve real authentication, network and permission failures. */
16
+ function rethrowRequiredError(error) {
17
+ rethrowAuthOrNetworkError(error);
18
+ if (!(error instanceof WorkflowCliError))
19
+ throw error;
20
+ if (error.type === 'permission' || error.type === 'authorization'
21
+ || error.code === 401 || error.code === 403 || error.code === '401' || error.code === '403') {
22
+ throw error;
23
+ }
24
+ }
25
+ async function mapLimited(items, visit) {
26
+ const results = new Array(items.length);
27
+ let next = 0;
28
+ let failed = false;
29
+ let failure;
30
+ await Promise.all(Array.from({ length: Math.min(COUNT_CONCURRENCY, items.length) }, async () => {
31
+ while (!failed && next < items.length) {
32
+ const index = next++;
33
+ try {
34
+ results[index] = await visit(items[index]);
35
+ }
36
+ catch (error) {
37
+ failed = true;
38
+ failure = error;
39
+ }
40
+ }
41
+ }));
42
+ if (failed)
43
+ throw failure;
44
+ return results;
45
+ }
46
+ async function buildCandidateQuery(candidate, args, env) {
47
+ try {
48
+ const explicitTab = ['tabid', 'tabName', 'subCategory'].some(key => args[key] !== undefined
49
+ && args[key] !== null && String(args[key]).trim() !== '');
50
+ const { query } = await buildSearchQuery(env, {
51
+ ...args,
52
+ ...(!explicitTab ? { tabid: DEFAULT_TABID } : {}),
53
+ category: args.category ?? 'todo',
54
+ workflow: [candidate.display],
55
+ workflowTerm: 'in',
56
+ }, 'total');
57
+ const isremarks = textOf(args.isremarks) || generalRules()?.identityFilter?.defaultIsremarks?.trim() || '';
58
+ if (isremarks)
59
+ query.params = { ...recordOf(query.params), isremarks };
60
+ return { candidate, body: query };
61
+ }
62
+ catch (error) {
63
+ rethrowRequiredError(error);
64
+ // An unresolved person, field or other condition cannot produce a reliable count.
65
+ return { candidate, body: null };
66
+ }
67
+ }
68
+ async function loadWorkflowTypes(queries, env) {
69
+ const types = new Map();
70
+ const body = queries.find(query => query.body !== null)?.body;
71
+ if (!body)
72
+ return types;
73
+ const metadata = await fetchWorkflowMetadata(body, env);
74
+ for (const row of metadata) {
75
+ if (row.workflowTypeName)
76
+ types.set(row.workflowId, row.workflowTypeName);
77
+ }
78
+ return types;
79
+ }
80
+ /** Read one native tree for names/types; counts always come from the matching total query. */
81
+ export async function fetchWorkflowMetadata(query, env) {
82
+ try {
83
+ const params = { ...recordOf(query.params) };
84
+ // A candidate's form context must not restrict the tree to that one workflow.
85
+ delete params.workflowId;
86
+ delete params.searchAdWorkflowid;
87
+ const flowCenterParam = query.flowCenterParam ?? params.flowCenterParam;
88
+ const body = { params, ...(flowCenterParam !== undefined ? { flowCenterParam } : {}) };
89
+ const response = await env.host.workflowRequest({
90
+ method: 'POST', path: WORKFLOW_ENDPOINTS.TODO_TREE,
91
+ operation: 'workflow.todoSmartConvert.workflowMetadata', body,
92
+ });
93
+ const data = recordOf(responseData(response));
94
+ const roots = Array.isArray(data.data) ? data.data : [];
95
+ const metadata = new Map();
96
+ const conflicts = new Set();
97
+ const visit = (nodes, parentType) => {
98
+ for (const value of nodes) {
99
+ const node = recordOf(value);
100
+ const nodeId = textOf(node.id);
101
+ const name = textOf(node.content) || textOf(node.title);
102
+ const type = /^p?type_?-?\d+$/u.test(nodeId) && name ? name : parentType;
103
+ const workflow = /^wf_?(\d+)$/u.exec(nodeId);
104
+ if (workflow && name) {
105
+ const id = workflow[1];
106
+ const previous = metadata.get(id);
107
+ if (!previous)
108
+ metadata.set(id, { workflowId: id, workflowName: name, workflowTypeName: type });
109
+ else if (type && previous.workflowTypeName && previous.workflowTypeName !== type) {
110
+ previous.workflowTypeName = null;
111
+ conflicts.add(id);
112
+ }
113
+ else if (type && !conflicts.has(id))
114
+ previous.workflowTypeName = type;
115
+ }
116
+ if (Array.isArray(node.children))
117
+ visit(node.children, type);
118
+ }
119
+ };
120
+ visit(roots, null);
121
+ return [...metadata.values()];
122
+ }
123
+ catch (error) {
124
+ rethrowRequiredError(error);
125
+ return [];
126
+ }
127
+ }
128
+ async function loadCandidateCount(query, env) {
129
+ if (query.body === null)
130
+ return null;
131
+ try {
132
+ const response = await env.host.workflowRequest({
133
+ method: 'POST', path: WORKFLOW_ENDPOINTS.TODO_TOTAL,
134
+ operation: 'workflow.todoSmartConvert.clarification.total', body: query.body,
135
+ });
136
+ const count = extractTotal(response);
137
+ return count !== null && Number.isInteger(count) && count >= 0 ? count : null;
138
+ }
139
+ catch (error) {
140
+ rethrowRequiredError(error);
141
+ return null;
142
+ }
143
+ }
144
+ /** Enrich only workflow ambiguity, preserving candidate IDs and the original clarification contract. */
145
+ export async function enrichWorkflowClarification(error, args, env) {
146
+ if (args.category !== undefined && args.category !== 'todo')
147
+ return error;
148
+ if (!(error instanceof WorkflowCliError) || error.subtype !== CLARIFICATION_SUBTYPE)
149
+ return error;
150
+ const details = recordOf(error.details);
151
+ if (details.clarificationType !== 'workflow' || !Array.isArray(details.candidates))
152
+ return error;
153
+ const candidates = [];
154
+ for (const value of details.candidates) {
155
+ const source = recordOf(value);
156
+ const id = textOf(source.id);
157
+ const name = textOf(source.name);
158
+ if (!/^\d+$/u.test(id) || !name)
159
+ return error;
160
+ candidates.push({ ...source, id, name, display: `${name}(${id})`, index: candidates.length + 1,
161
+ workflowTypeName: textOf(source.workflowTypeName) || null, totalCount: null });
162
+ }
163
+ if (candidates.length < 2)
164
+ return error;
165
+ const nameRequests = new Map();
166
+ const scopedEnv = {
167
+ ...env,
168
+ host: {
169
+ workflowRequest: request => {
170
+ if (request.operation !== 'workflow.nameComplete')
171
+ return env.host.workflowRequest(request);
172
+ const key = JSON.stringify(request);
173
+ let pending = nameRequests.get(key);
174
+ if (!pending) {
175
+ pending = env.host.workflowRequest(request);
176
+ nameRequests.set(key, pending);
177
+ }
178
+ return pending;
179
+ },
180
+ workflowBinaryRequest: request => env.host.workflowBinaryRequest(request),
181
+ getSession: () => env.host.getSession(),
182
+ },
183
+ };
184
+ const queries = await mapLimited(candidates, candidate => buildCandidateQuery(candidate, args, scopedEnv));
185
+ // Only this enrichment shares counts: never reuse results across commands, filters or users.
186
+ const countRequests = new Map();
187
+ const [types, counts] = await Promise.all([
188
+ candidates.some(candidate => !candidate.workflowTypeName) ? loadWorkflowTypes(queries, env) : Promise.resolve(new Map()),
189
+ mapLimited(queries, query => {
190
+ if (query.body === null)
191
+ return Promise.resolve(null);
192
+ const key = JSON.stringify(query.body);
193
+ let pending = countRequests.get(key);
194
+ if (!pending) {
195
+ pending = loadCandidateCount(query, env);
196
+ countRequests.set(key, pending);
197
+ }
198
+ return pending;
199
+ }),
200
+ ]);
201
+ const enriched = candidates.map((candidate, index) => ({
202
+ ...candidate, workflowTypeName: candidate.workflowTypeName ?? types.get(candidate.id) ?? null, totalCount: counts[index],
203
+ })).filter(candidate => candidate.totalCount !== 0);
204
+ enriched.sort((left, right) => {
205
+ if (left.totalCount !== right.totalCount) {
206
+ if (left.totalCount === null)
207
+ return 1;
208
+ if (right.totalCount === null)
209
+ return -1;
210
+ return right.totalCount - left.totalCount;
211
+ }
212
+ return (left.workflowTypeName ?? '').localeCompare(right.workflowTypeName ?? '', 'zh-CN')
213
+ || left.name.localeCompare(right.name, 'zh-CN') || left.id.localeCompare(right.id);
214
+ });
215
+ const excluded = candidates.length - enriched.length;
216
+ const question = excluded === 0 ? error.message : enriched.length === 0
217
+ ? `匹配到的${candidates.length}个工作流在当前筛选条件下均无待办,无需选择。`
218
+ : `已排除当前筛选条件下没有待办的工作流,请确认要查询的工作流(剩余${enriched.length}项)。`;
219
+ return new WorkflowCliError(error.type, error.subtype, question, {
220
+ code: error.code, retryable: error.retryable, stage: error.stage, exitCode: error.exitCode,
221
+ partialData: error.partialData,
222
+ details: {
223
+ ...details,
224
+ ...(excluded > 0 ? {
225
+ clarificationQuestion: question,
226
+ ...(typeof details.message === 'string' ? { message: question } : {}),
227
+ ...(enriched.length === 0 ? { clarificationReason: 'no_matching_todos' } : {}),
228
+ } : {}),
229
+ candidates: enriched.map((candidate, index) => ({ ...candidate, index: index + 1 })),
230
+ },
231
+ });
232
+ }
@@ -91,11 +91,16 @@ function clarificationEnvelope(error, operation) {
91
91
  * 2026-10-30 新增一档:
92
92
  * - `workflow_required` —— **必填入参没给**(缺键/空数组/空字符串)。它不是「名称匹配不到」,
93
93
  * 而是调用方少传了入参;文案必须让模型先认账、再问用户要流程名,而不是让用户去"核对名称"。
94
+ * - `no_matching_todos` —— 已按条件核实同名候选的待办数量,结果全为0;返回业务空态,不再追问。
94
95
  *
95
96
  * 无 `reason` 时(名称解析 0 / 多命中 / 只给了填充词)保持原文案不变。
96
97
  */
97
98
  function clarificationNote(reason, candidateCount) {
98
99
  const base = '这不是失败,也**不代表查询已执行**:本次查询已停止,没有返回任何流程数据。';
100
+ if (reason === 'no_matching_todos') {
101
+ return '已按当前筛选条件核实全部匹配工作流的待办数量,结果均为0。'
102
+ + '请如实告知用户当前条件下没有待办;不要弹出空选择框、自动绑定工作流或要求用户重新提供名称。';
103
+ }
99
104
  // ★ 2026-10-30:`workflow_required` = **必填入参没给**,与「名称匹配不到」性质完全不同。
100
105
  // 这里要模型先认账(少传了入参),而不是去问用户「是不是名字打错了」。
101
106
  if (reason === 'workflow_required') {
@@ -64,7 +64,7 @@ weaver-work-cli --json invoice run invoice.list --input-json '{"page_size":10,"s
64
64
 
65
65
  删除、编辑、新增同样必须使用 `prepare -> apply`。出现 `partial/write_uncertain` 时停止,不能自动重试写操作。
66
66
 
67
- 处理“把发票填进流程表单”的场景,使用 `invoice.browse-field.data` 生成浏览按钮控件所需 JSON。处理“报销发票/自动填单”时,先读取 `invoice-reim.md`,用报销相关只读 operation(`invoice.reim.candidates.list`、`invoice.reim.requests.list`、`invoice.reim.workflow.resolve`、`invoice.reim.employee-superiors`、`invoice.reim.field.search`、`invoice.reim.relation.list`)获取候选发票、事前申请、工作流、人员上级和相关客户/项目,其中 `invoice.reim.relation.list` 读回发票上传时登记的相关客户、相关项目、事前申请,登记过的直接用、不再问用户;发票上传成功后(`invoice.import.apply`、`invoice.upload-and-validate`、`invoice.add.apply`),仅上传 / 录入且无报销意图时,识别查验完后同一批先只问一次要不要登记(这时不查数据),用户同意后再按类别采集(话费 / 油费用 `weaver-e10-workflow` 的 `workflow.search` 从最近的报销单找出事前申请,找不到给出发起链接;差旅 / 打车 / 滴滴问相关项目和事前申请;其他问相关客户、相关项目、事前申请),用 `invoice.reim.relation.save` 登记,它失败不重试、不影响上传;报销意图下不问登记、不采集登记数据,只读已有登记,见 `invoice-reim-relation.md`;报销单的载入、创建和修改统一走 `weaver-e10-workflow`:`workflow.createForm` 载入表单,`workflow.createRequest`(`action` 固定 `draft`)存草稿,修改走 `workflow.editLoad` / `workflow.editPrepare` / `workflow.editApply`。旧的 `invoice.reim.flow.create/update.*` 已移除,不要再调用。处理“开票 / 待开票合同”时读取 `invoice-issuing-workflow.md`:先用 `weaver-e10-workflow` 的 `workflow.search` 查出当前用户有权限看的合同审批流程,再把 `data.cards` 传给 `invoice.issuing.contracts.list` 补齐是否开票、合同号、客户名称和开票金额,列出待开票合同;用户选定后用 `invoice.issuing.contract.detail` 取合同客户与合同正文文档 id,按销售方选开票申请流程,问清预计收款时间并确认后用 `workflow.createForm` / `workflow.createRequest`(`action` 固定 `draft`)存草稿。当前修正资料包没有客户档案查询或红字发票红冲接口,`invoice.customer.*` 和 `invoice.red.*` 不能调用或绕过。
67
+ 处理“把发票填进流程表单”的场景,直接复用本次已选发票,以 `[{id,name}]` 引用数组填写;无需额外转换调用。处理“报销发票/自动填单”时,先读取 `invoice-reim.md`,用报销相关只读 operation(`invoice.reim.candidates.list`、`invoice.reim.requests.list`、`invoice.reim.workflow.resolve`、`invoice.reim.employee-superiors`、`invoice.reim.field.search`、`invoice.reim.relation.list`)获取候选发票、事前申请、工作流、人员上级和相关客户/项目,其中 `invoice.reim.relation.list` 读回发票上传时登记的相关客户、相关项目、事前申请,登记过的直接用、不再问用户;发票上传成功后(`invoice.import.apply`、`invoice.upload-and-validate`、`invoice.add.apply`),仅上传 / 录入且无报销意图时,识别查验完后同一批先只问一次要不要登记(这时不查数据),用户同意后再按类别采集(话费 / 油费用 `weaver-e10-workflow` 的 `workflow.search` 从最近的报销单找出事前申请,找不到给出发起链接;差旅 / 打车 / 滴滴问相关项目和事前申请;其他问相关客户、相关项目、事前申请),用 `invoice.reim.relation.save` 登记,它失败不重试、不影响上传;报销意图下不问登记、不采集登记数据,只读已有登记,见 `invoice-reim-relation.md`;报销单的载入、创建和修改统一走 `weaver-e10-workflow`:`workflow.createForm` 载入表单,`workflow.createRequest`(`action` 固定 `draft`)存草稿,修改走 `workflow.editLoad` / `workflow.editPrepare` / `workflow.editApply`。旧的 `invoice.reim.flow.create/update.*` 已移除,不要再调用。处理“开票 / 待开票合同”时读取 `invoice-issuing-workflow.md`:先用 `weaver-e10-workflow` 的 `workflow.search` 查出当前用户有权限看的合同审批流程,再把 `data.cards` 传给 `invoice.issuing.contracts.list` 补齐是否开票、合同号、客户名称和开票金额,列出待开票合同;用户选定后用 `invoice.issuing.contract.detail` 取合同客户与合同正文文档 id,按销售方选开票申请流程,问清预计收款时间并确认后用 `workflow.createForm` / `workflow.createRequest`(`action` 固定 `draft`)存草稿。当前修正资料包没有客户档案查询或红字发票红冲接口,`invoice.customer.*` 和 `invoice.red.*` 不能调用或绕过。
68
68
 
69
69
  ## 暂缓能力
70
70
 
package/docs/contract.md CHANGED
@@ -56,7 +56,7 @@ weaver-work-cli --json contract run contract.workflow.query --input-json '{"work
56
56
  | 流程解析 | `contract.workflow.query`、`contract.workflow.list`、`contract.workflow.form.info`(三段式:loadBaseParam → loadFrameParam → getFormLayout)、`contract.workflow.field.options` |
57
57
  | 流程写操作 | `contract.request.create.prepare/apply`、`contract.request.save.prepare/apply`、`contract.request.submit.prepare/apply`、`contract.request.supervise.prepare/apply` |
58
58
  | 流程状态 | `contract.request.status`、`contract.request.log` |
59
- | 合同智能审查 | `contract.review.upload`(ebContract 两段式上传 + 审查页)、`contract.review.export`(`getAiReviewRecord`) |
59
+ | 合同智能审查 | 上传走流程通道 `contract.flow.launch` / `contract.firstscreen.run`(收口按本轮 `flowId` 自动预热 `saveInternalRecord`);取结果 `contract.review.export`(`getAiReviewRecord`)/ `contract.review.digest`,**`flowId` 取助手 URL 上的动态值(= 本轮 `workflowId`,与预热同键同值),CLI 无默认值** |
60
60
  | 发起流程入口 | `contract.flow.page`、`contract.flow.launch`(workflow 模块上传 + `automaticFormFilling`) |
61
61
  | 模板推荐 | `contract.recommend.doc`(`recommendContractDoc`) |
62
62
  | 文档比对 | `contract.compare.upload`(docCompared)、`contract.compare.search`、`contract.compare.versions`、`contract.compare.page`、`contract.compare.diff` |
@@ -69,7 +69,7 @@ weaver-work-cli --json contract run contract.workflow.query --input-json '{"work
69
69
 
70
70
  ## 文件上传与页面地址
71
71
 
72
- - 上传统一走 `POST /api/file/preUploadCheck` → `POST /api/file/module/upload`;`module` 按场景固定:审查 `ebContract`、流程 `workflow`、比对 `docCompared`,不可混用。
72
+ - 上传统一走 `POST /api/file/preUploadCheck` → `POST /api/file/module/upload`;`module` 按场景固定:流程(含合同预审)`workflow`、比对 `docCompared`,不可混用(审查专用的 `ebContract` 通道已随 `contract.review.upload` 下线)。
73
73
  - 预检返回非空 `fileid` 即为秒传,跳过第二段;否则用 `preUploadId` + `uploadType` 带文件本体上传。
74
74
  - 成功判据是拿到非空 `fileId`,HTTP 200 不算成功;`uploadType=chunk` 时以 `upload_chunk_unsupported` 停止。
75
75
  - 只接受 `.doc` / `.docx`,单文件上限 200MB。
package/docs/e10-auth.md CHANGED
@@ -129,6 +129,9 @@ XiaoE 宿主(网页端 `XIAOE_CLIENT_TYPE=cloud`、桌面客户端 `client`)
129
129
  智能小 E `xiaoe`(`agent_type` 为 `XiaoE`)、Codex `codex`;中文写法(如「豆包」「通义千问」)
130
130
  同样能归类。终端手工登录(回落为 `weaver-work-cli`)或无法归类的自定义 `agent_type` 不下发
131
131
  该参数,避免污染统计。
132
+ 同时再带一个 `promotionSource`,取 E10「推广来源」字典里的泛微标识:千问-et 连接器 `188`、
133
+ 豆包-et 连接器 `187`、workbuddy-et 连接器 `186`。它由上面的 `promotionKeyword` 反查得出,
134
+ 字典里没有收录的来源(智能小 E、Codex、终端手工登录)不下发,不臆造编号。
132
135
  授权完成后的本地回调页会为已识别的桌面宿主显示应用打开弹层。CLI 内置 WorkBuddy
133
136
  (`workbuddy://`)、智能小 E(`xiaoe-client://`)和 Codex(`codex://`)映射;其他
134
137
  智能体在 `agent_type` 本身是合法协议名时,默认按 `<agent_type>://` 唤起。Windows/macOS
@@ -225,3 +228,28 @@ macOS/Linux(bash/zsh):
225
228
  eval "$(weaver-work-cli auth export-weaver-env --shell posix)"
226
229
  weaver-work-cli run node -e "console.log(process.env.WEAVER_BASE_URL || 'no e10 auth')"
227
230
  ```
231
+
232
+ ### 小E 统一登录:换票业务码与域名匹配
233
+
234
+ `auth xiaoe` 的核心是 `POST {XIAOE_DOMAIN}/spec-apps/api/app/rpachat/skill/extend/eteamId`,
235
+ body 只带 `{"domain": "<E10 baseUrl>"}`,用小E 登录态换一次性 `eteamId`。实测业务码:
236
+
237
+ | code | 上游 msg | 含义 / 处置 |
238
+ | --- | --- | --- |
239
+ | `0000` / `200` | 请求成功 | 成功,`data.eteamId` 可用 |
240
+ | `2001` | 未找到可用的e10系统 | domain 在小E 侧匹配不到该账号可用的 E10 系统 |
241
+ | `3005` | 账号已在其它地方登录 | 同一账号的旧会话被顶掉,重登小E |
242
+ | `3006` | 未登录,请先登录!/ token无效,禁止登录! | Authorization 缺失或被拒,登录态失效 |
243
+ | `4000` | 获取全局变量"code"值为空… | domain 命中 eteams,但账号没建过通用型应用 |
244
+
245
+ `2001` 的匹配是**严格字符串**,`domain` 必须是 `https://` + 主机名的裸形式:
246
+
247
+ - `https://www.e-cology.com.cn` → `0000`
248
+ - `https://www.e-cology.com.cn:443` → `2001`(**带端口即失配**)
249
+ - `http://www.e-cology.com.cn`、`https://…/e10`、`www.e-cology.com.cn` → `2001`
250
+ - 主机名大小写、尾斜杠不影响匹配
251
+
252
+ 因此私有化部署若跑在非标端口(如 `https://hpioa.example.net:8282`),必须先确认
253
+ 小E 侧登记的到底是带端口还是不带端口的域名,`--base-url` 要与之一字不差;两
254
+ 种写法都回 `2001` 时,说明该小E 账号根本没被授权到这台 E10(或该系统未在该小E
255
+ 服务域登记),此时应改用 `auth login` / `auth set` 直连,不要继续换票重试。
package/docs/ehr.md CHANGED
@@ -156,7 +156,7 @@ printf '%s\n' '{"beginDate":"2026-03-01","endDate":"2026-03-31"}' | weaver-work-
156
156
  **displayData 显示层策略**:EB 列表接口(`mapResult=1`)响应同时含 `data.data`(原始层,
157
157
  人员/字典字段为裸大 ID)与 `data.displayData`(显示层,服务端已内联姓名与字典中文)。
158
158
  列表 operation 优先取 displayData(零额外请求);缺失时回退原始层——字典映射 + 纯 ID 创建人
159
- 经 `/api/hrm/common/getEmployeeByIds`(`devtype: 5` 头,100 个一批)批量反查兜底。显示层行清理
159
+ 经 `/api/hrm/common/browser/destData/resource`(`selectIds` 逗号串,100 个一批)批量反查兜底。显示层行清理
160
160
  剔除 `DISPLAY_UI_KEYS`(operate/isToDo/todoPropSpan/flow_status 等)与 `xxxSpan`/`xxxAction` 动态后缀。
161
161
 
162
162
  **详情卡片**:`hasRights`(READ 闸门,严格前置)与 `getCandidateCardPrepareQuery` 并行
package/docs/invoice.md CHANGED
@@ -69,7 +69,6 @@ weaver-work-cli --json invoice list --fields number,detailUrl
69
69
  | `invoice.update.prepare/apply` | 高风险写 | 基于完整详情修改白名单字段,保留附件并回查 |
70
70
  | `invoice.download` | 本地文件写 | 先校验 `fileId` 属于目标 `fid`,拒绝覆盖 |
71
71
  | `invoice.delete.prepare/apply` | 高风险写 | 固定软删除 `flag=0`,确认后执行并回查 |
72
- | `invoice.browse-field.data` | 只读 | 基于详情接口生成流程表单发票浏览按钮 JSON |
73
72
  | `invoice.reim.file-ocr.preview` | 文件识别预览 | 对 E10 fileId 调用报销场景的发票识别接口,只保留成功项 |
74
73
  | `invoice.reim.requests.list` | 只读 | 查询事前申请流程列表,默认 `pageNo=1`、`pageSize=100`;结束日取传入的 `cusCreateDateEnd` 或东八区当天,发给接口时再 + 1 天;未传 `cusCreateDateStart` 时取结束日前 7 天,第 1 页为空自动放宽到结束日前 1 个月再查一次,`scene="phone"`(话费)时取结束日前 90 天且不放宽;列表在 `data.result.data`,另有 `data.query`(实际 `cusCreateDateStart`、业务结束日 `cusCreateDateEnd`、`widened`);每条只输出 `requestid` / `workflowid` / `requestname` / `flowStatus` / `creatorId` / `creatorName` / `createTime` |
75
74
  | `invoice.reim.workflow.resolve` | 只读 | 根据事前申请 ID 获取报销工作流;无事前申请时传空数组 |
@@ -96,7 +95,6 @@ weaver-work-cli --json invoice get --fid INVOICE_FID
96
95
  weaver-work-cli --json invoice upload --file ./invoice.pdf
97
96
  weaver-work-cli --json invoice ocr preview --file ./invoice.pdf
98
97
  weaver-work-cli --json invoice download --fid INVOICE_FID --file-id FILE_ID --output ./invoice.pdf
99
- weaver-work-cli --json invoice run invoice.browse-field.data --input-json '{"fid":"INVOICE_FID"}'
100
98
  weaver-work-cli --json invoice run invoice.reim.requests.list --input-json '{"pageNo":1,"pageSize":100}'
101
99
  ```
102
100
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weaver-work-cli",
3
- "version": "0.1.61",
3
+ "version": "0.1.63",
4
4
  "description": "面向泛微工作工具链的可扩展 TypeScript CLI 基础框架(E10 业票通等能力)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -8,7 +8,6 @@
8
8
  - `invoice-ocr-preview.md`:用户只说识别时的 OCR 预览,不查验,不描述为已入票夹。
9
9
  - `invoice-upload-and-validate.md`:查验、上传文件查验、上传文件报销、上传入票夹的默认入口,上传、识别、查验一步到位。
10
10
  - `invoice-download.md`:下载发票附件。
11
- - `invoice-browse-field-data.md`:生成流程表单发票浏览按钮字段对象。
12
11
  - `invoice-import.md`:导入发票文件或远程 URL 的 `prepare -> apply` 写入协议;`filedMap` 等 JSON 参数在 inputSchema 中保持 object。
13
12
  - `invoice-add.md`:手工新增发票的 `prepare -> apply` 写入协议。
14
13
  - `invoice-update.md`:编辑发票的 `prepare -> apply` 写入协议。
@@ -5,7 +5,7 @@ display_name_en: Weaver E10 Organization Management
5
5
  description: 泛微E10组织管理(员工/组织/岗位查询)的 E10 查询能力,通过 weaver-work-cli hrm 命令执行。
6
6
  description_zh: 泛微E10组织管理(员工/组织/岗位查询)的 E10 查询能力,通过 weaver-work-cli hrm 命令执行。
7
7
  description_en: Weaver E10 Organization Management capabilities for E10, covering employee, organization and position queries, delivered through the weaver-work-cli hrm command.
8
- version: 1.0.28
8
+ version: 1.0.29
9
9
  author: 泛微网络科技股份有限公司
10
10
  agent_created: true
11
11
  requires:
@@ -133,7 +133,7 @@ weaver-work-cli --json hrm run hrm.org.resolve --input-json '{"virtual":"1号维
133
133
  三个业务域统一走 E10 HRM 内部浏览/详情接口,响应统一 `WeaResult` 契约,已在 CLI 内归一化,但语义差异仍会影响结果解读:
134
134
 
135
135
  - **响应成功判定**:统一 `code=200`(WeaResult)。业务失败码即使 HTTP 200 也会抛 `api/business_error`;`403` 会抛 `api/permission_denied`(提示联系管理员开启接口开关,不盲目重试)。
136
- - **数据行位置(描述的是上游原始响应,不是 CLI 输出)**:上游列表接口行在 `data.data`(浏览按钮 `browser/data/*` 与岗位批量 `queryListByOrgTree`);下属按 id 查询(`myDirectSubordinates`/`myIndirectSubordinates`)的行在 `data.page.result`、总数在 `data.page.totalCount`。
136
+ - **数据行位置(描述的是上游原始响应,不是 CLI 输出)**:上游列表接口行在 `data.data`(浏览按钮 `browser/data/*`、按 id 批量 `browser/destData/*` 与岗位批量 `queryListByOrgTree`);下属按 id 查询(`myDirectSubordinates`/`myIndirectSubordinates`)的行在 `data.page.result`、总数在 `data.page.totalCount`。
137
137
  - CLI 已把上述差异归一化:**列表类统一读 envelope 的 `data.rows` + `data.total`,分页参数在 `meta`(current/pageSize)**。不要把上游的 `data.data` / `data.page.result` 当成 CLI 输出路径。
138
138
  - ⚠️ **CLI 不会去请求 count 接口**(员工浏览上游的 `data.count` 恒为 0,调 count 也拿不到可靠总数):除 `subordinate.by-id` 外,`employee.query`/`subordinate.mine`/`dept.members` 的 `data.total` **就是本页行数**,不是真实总数。要真实总数只能按 `current` 逐页翻到 `rows.length < pageSize`;`subordinate.by-id` 的 `total` 来自上游 `page.totalCount`,是真值(并附 `data.page.hasNext/totalPages`)。
139
139
  - **详情接口**:员工卡片(`card/get`)、组织详情(`organization/getForm`)、岗位详情(`getEditOrAddPostForm`)底层都是 `WeaForm` 单对象。**上游响应**里业务字段在 `data.data`;CLI 会把它**展平上移一层**,因此**最终输出中业务字段直接挂在 envelope 的 `data` 下,不存在 `data.data` 嵌套**(`items`/`groups`/`layout` 等前端表单元数据已丢弃),并附 `link`。
@@ -149,7 +149,7 @@ weaver-work-cli --json hrm run hrm.org.resolve --input-json '{"virtual":"1号维
149
149
  - **🔴 分页统一约束:`pageSize` 默认 `10`、最大 `100`**。支持 `pageSize` 的操作只有 `employee.query`/`subordinate.mine`/`subordinate.by-id`/`dept.members`/`org.query`/`position.list`;`position.query` 不接受该参数(传入被忽略,固定按 200 返回)。需要更多数据时用 `current` 递增翻页,**禁止靠放大 `pageSize` 一次取回大结果**——大结果会整段进入上下文。`position.list` 自带自动翻页,通常无需显式传 `pageSize`。
150
150
  - 说明:服务端**不校验**该上限(实测 `pageSize=500` 会原样返回 500 行,不传 `pageSize` 时服务端按 20 返回),所以这条是**本技能为控制上下文体积定下的自觉约束**。Agent 必须遵守,不得因为"服务端没拦"就放大取值。
151
151
  - **🔴 `status` 不能单独使用**:`employee.query` 的 `status`(`["normal"]` 在职 / `["6"]` 离职)必须搭配其它条件(keyword/工号/姓名/手机/邮箱)。
152
- - **批量禁止循环单查**:批量查询一律走 `batch`(每批 ≤100,CLI 自动分批);岗位批量走 `position.list` 一次性返回,禁止按 id 逐个调详情。
152
+ - **批量禁止循环单查**:批量查询一律走 `batch`(每批 ≤100,CLI 自动分批;个别 id 无效不会整批失败,会进 `data.missing`,遇到时改查正确的人员 `id`,不要原值重试);岗位批量走 `position.list` 一次性返回,禁止按 id 逐个调详情。
153
153
  - **姓名/工号/名称模糊匹配**:多人命中时必须列出候选让用户选择,不得自动取第一条;`dept.members` 部门重名时报 `dept_ambiguous`,需改用组织 id。`hrm.org.resolve` 不抛歧义错误,而是回 `data.status = ambiguous` + `data.candidates`,同样必须问用户、不得自动取第一条。
154
154
  - **🔴 禁止自主任意解读名称**:`hrm.org.resolve` 报 `not_found` 时,`data.suggestions`(近似名称)**只是给用户看的提示,不是给你用的参数**——不得据此改名重试、也不得省略「不存在」这一事实直接给结果。凡「名称对不上」一律先回用户,用户确认后再用 `virtualId`/`orgId` 复调。
155
155
  - **🔴 禁止绕取未暴露能力**:`hrm.employee.dls`(代理商查询)与 `hrm.org.virtuals`(列多维)都在 `hrm schema --full` 的 `withheldOperations` 里声明为不可用;**不得构造假查询(如故意传不存在的维度名)去套内部字段**、也不得编造或绕过。用户问到就如实回答暂不支持。
@@ -9,7 +9,7 @@
9
9
  | operation | 必填 | 说明 |
10
10
  | --- | --- | --- |
11
11
  | `hrm.employee.query` | 至少一个收敛条件 | 按工号/姓名/手机/邮箱/状态分页查询员工;**默认每行只回人员信息(6 键)**,`full: true` 回完整行 |
12
- | `hrm.employee.batch` | `ids` | 按人员 id 列表批量查精简详情(每批 ≤100 自动分批,不含部门/岗位/上级名称) |
12
+ | `hrm.employee.batch` | `ids` | 按人员 id 列表批量查精简详情(每批 ≤100 自动分批,不含部门/岗位/上级名称);个别 id 无效不会拖垮整批,会进 `data.missing` |
13
13
  | `hrm.employee.detail` | `id` | 按人员 id 取**人员卡片**:默认只回核心业务字段(组织/上级/助理/职称/职级/办公地点等);`full: true` 才回完整卡片 |
14
14
  | `hrm.subordinate.mine` | `scope`(默认 all) | 查当前登录人的下属(direct/indirect/all),基于当前会话身份;**默认每行只回 `id`/`name`/`link`**(`full: true` 回完整行) |
15
15
  | `hrm.subordinate.by-id` | `id`(`scope` 默认 direct) | 按目标人员 id 查直接/间接下属(**无需切换会话**);所有下属 = direct + indirect 两次并集;**默认每行只回 `id`/`name`/`link`**(`full: true` 回完整行) |
@@ -146,7 +146,7 @@ weaver-work-cli --json hrm run hrm.dept.members --input-json '{"dept":"示例部
146
146
 
147
147
  ## 输出处理
148
148
 
149
- - 查询类返回 `data.rows`(行数组)+ `data.total` + `meta`(current/pageSize);批量/下属返回 `data.rows` + `data.total`。
149
+ - 查询类返回 `data.rows`(行数组)+ `data.total` + `meta`(current/pageSize);批量/下属返回 `data.rows` + `data.total`;`employee.batch` 在存在无法解析的 id 时另回 `data.missing`(字符串 id 数组,后端不会返回该字段)。
150
150
  - ⚠️ **`data.total` 是「本页行数」,不是真实总数**(源码用返回行数当 total)。实测同一个 `job_num:"WS"`:`pageSize=5` → `total=5`、`pageSize=50` → `total=50`、不传 → `total=20`。要真实总数只能按 `current` 逐页翻到 `rows.length < pageSize` 为止。**例外**:`subordinate.by-id` 的 `total` 是真实总数(另有 `data.page.hasNext/totalPages`)。
151
151
  - ⚠️ **不传 `pageSize` 时 `meta.pageSize` 会显示 200,但服务端实际只回 20 行**;别用 meta 判断"拿到了多少条"。
152
152
  - 列表行分两种形态:**默认精简行只有 `link`**(人员卡片链接 `/sp/hrm/profileInfo/{id}`);**完整行(`employee.query` 传 `full: true`、`dept.members`/下属传 `full: true`)额外有 `deptLink`(部门卡片链接)与 `departmentId`**,这时可同时输出 `[部门名](deptLink)`。两种形态都用 `[姓名](link)` 呈现人名。
@@ -169,6 +169,7 @@ weaver-work-cli --json hrm run hrm.dept.members --input-json '{"dept":"示例部
169
169
  - **🔴 `status` 不能单独使用**:必须搭配其它条件,否则 `empty_condition`。
170
170
  - 在职查询未命中时,CLI 会在 `data.hint` 提示"可能已离职",Agent 应据此询问用户是否要查离职人员,不要直接答复"查无此人"。
171
171
  - `employee.batch` 不含部门/岗位/上级**名称**(返回纯字符串),需要这些信息时改用 `employee.query`(列表行)或 `employee.detail`(人员卡片,含组织/上级/助理等;完整卡片需加 `full: true`)。
172
+ - **`employee.batch` 的无效 id 处理**:底层走 `POST /api/hrm/common/browser/destData/resource`(`selectIds` 逗号串,每批 ≤100)。该接口**只要批内有一个 id 解析失败就整批 500**(`For input string: "..."`),CLI 会自动二分降级定位脏 id,把它收进 `data.missing`,其余行照常返回。看到 `missing` 非空时,说明这些值不存在或不是人员 `id`(最常见是把 `userid`/`cid` 当人员 id 传),**不要用同一个值重试**,应先用 `employee.query` 反查出正确的人员 `id`。
172
173
  - `subordinate.by-id` 的 `scope` 两值:`direct`(直接)/`indirect`(间接);"所有下属"需两次调用并集(无 `all` 接口,实测 404)。
173
174
  - `subordinate.mine` 返回的是**当前登录人**的下属,查"某人的下属"请用 `subordinate.by-id`。
174
175
  - 人员 id 是长整型,按字符串传递。
@@ -181,3 +182,13 @@ weaver-work-cli --json hrm run hrm.dept.members --input-json '{"dept":"示例部
181
182
  - `dept_not_found`/`dept_ambiguous`:`dept.members` 组织未找到或重名,改用组织 id。
182
183
  - `permission_denied`(`code=403`):HRM 读接口开关未开启,提示用户联系管理员开启,不要盲目重试。
183
184
  - 认证类错误:停止查询并执行入口 `SKILL.md` 的登录失效强制分流;XiaoE 只走 `auth xiaoe`,非 XiaoE 只走 `auth login`,禁止其他登录 Skill。
185
+
186
+ ## 请求头(`weaver-work-cli` 统一注入)
187
+
188
+ 本技能不直接发 HTTP 请求:`employee.batch` 等操作由 CLI 组装并发出,请求头三件套由 CLI 统一注入,业务入参不要传、也不要手工拼装(权威声明见 `weaver-e10-shared`)。
189
+
190
+ ```text
191
+ Cookie: <weaver-work-cli 托管登录态的完整原始 Cookie 串,原样透传,禁止裁剪/去重/改写>
192
+ eteamsid: <weaver-work-cli 托管登录态的 ETEAMSID>
193
+ User-Agent: AgentType=<agentType>,IsAgent=true
194
+ ```