weaver-work-cli 0.1.2 → 0.1.5

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 (405) hide show
  1. package/README.md +176 -78
  2. package/dist/cmd/setup/index.js +5 -5
  3. package/dist/cmd/skills/index.js +1 -1
  4. package/dist/core/hooks.js +7 -0
  5. package/dist/index.js +0 -0
  6. package/dist/internal/e10/auth/commands.js +159 -54
  7. package/dist/internal/e10/auth/xiaoe.js +268 -0
  8. package/dist/internal/e10/context.js +16 -2
  9. package/dist/internal/e10/index.js +1 -0
  10. package/dist/internal/e10/request-runtime.js +345 -0
  11. package/dist/internal/skills/install.js +48 -6
  12. package/dist/internal/skills/reader.js +27 -0
  13. package/dist/shortcuts/archive/continuation.js +70 -0
  14. package/dist/shortcuts/archive/errors.js +53 -0
  15. package/dist/shortcuts/archive/host.js +197 -0
  16. package/dist/shortcuts/archive/index.js +363 -0
  17. package/dist/shortcuts/archive/manifest.js +45 -0
  18. package/dist/shortcuts/archive/operations/archive-info.js +55 -0
  19. package/dist/shortcuts/archive/operations/borrow-car.js +146 -0
  20. package/dist/shortcuts/archive/operations/borrow-list.js +200 -0
  21. package/dist/shortcuts/archive/operations/confirm.js +46 -0
  22. package/dist/shortcuts/archive/operations/download.js +238 -0
  23. package/dist/shortcuts/archive/operations/flow-url.js +240 -0
  24. package/dist/shortcuts/archive/operations/fonds.js +95 -0
  25. package/dist/shortcuts/archive/operations/getPageUrl.js +137 -0
  26. package/dist/shortcuts/archive/operations/registry.js +43 -0
  27. package/dist/shortcuts/archive/operations/search.js +88 -0
  28. package/dist/shortcuts/archive/operations/shared.js +120 -0
  29. package/dist/shortcuts/archive/operations/types.js +23 -0
  30. package/dist/shortcuts/archive/operations/upload.js +182 -0
  31. package/dist/shortcuts/archive/operations.js +13 -0
  32. package/dist/shortcuts/archive/render/search-format.js +276 -0
  33. package/dist/shortcuts/archive/render/search-view.js +125 -0
  34. package/dist/shortcuts/asset/continuation.js +70 -0
  35. package/dist/shortcuts/asset/errors.js +67 -0
  36. package/dist/shortcuts/asset/host.js +438 -0
  37. package/dist/shortcuts/asset/index.js +255 -0
  38. package/dist/shortcuts/asset/manifest.js +471 -0
  39. package/dist/shortcuts/asset/operations/query.js +249 -0
  40. package/dist/shortcuts/asset/operations/registry.js +85 -0
  41. package/dist/shortcuts/asset/operations/shared.js +100 -0
  42. package/dist/shortcuts/asset/operations/type-cache.js +49 -0
  43. package/dist/shortcuts/asset/operations/types.js +1 -0
  44. package/dist/shortcuts/asset/operations/viewlink.js +117 -0
  45. package/dist/shortcuts/asset/operations/write.js +435 -0
  46. package/dist/shortcuts/asset/operations.js +9 -0
  47. package/dist/shortcuts/calendar/continuation.js +70 -0
  48. package/dist/shortcuts/calendar/errors.js +53 -0
  49. package/dist/shortcuts/calendar/host.js +148 -0
  50. package/dist/shortcuts/calendar/index.js +125 -0
  51. package/dist/shortcuts/calendar/manifest.js +26 -0
  52. package/dist/shortcuts/calendar/operations/read.js +259 -0
  53. package/dist/shortcuts/calendar/operations/registry.js +31 -0
  54. package/dist/shortcuts/calendar/operations/shared.js +132 -0
  55. package/dist/shortcuts/calendar/operations/types.js +25 -0
  56. package/dist/shortcuts/calendar/operations/write.js +439 -0
  57. package/dist/shortcuts/calendar/operations.js +8 -0
  58. package/dist/shortcuts/ehr/continuation.js +70 -0
  59. package/dist/shortcuts/ehr/errors.js +53 -0
  60. package/dist/shortcuts/ehr/host.js +213 -0
  61. package/dist/shortcuts/ehr/index.js +205 -0
  62. package/dist/shortcuts/ehr/manifest.js +47 -0
  63. package/dist/shortcuts/ehr/operations/attend-read.js +373 -0
  64. package/dist/shortcuts/ehr/operations/attend-write.js +514 -0
  65. package/dist/shortcuts/ehr/operations/hr-contact.js +363 -0
  66. package/dist/shortcuts/ehr/operations/hr-ds.js +298 -0
  67. package/dist/shortcuts/ehr/operations/hr-report.js +386 -0
  68. package/dist/shortcuts/ehr/operations/recruit-write.js +1629 -0
  69. package/dist/shortcuts/ehr/operations/recruit.js +803 -0
  70. package/dist/shortcuts/ehr/operations/registry.js +43 -0
  71. package/dist/shortcuts/ehr/operations/salary.js +319 -0
  72. package/dist/shortcuts/ehr/operations/shared.js +246 -0
  73. package/dist/shortcuts/ehr/operations/types.js +25 -0
  74. package/dist/shortcuts/ehr/operations.js +25 -0
  75. package/dist/shortcuts/esb/continuation.js +70 -0
  76. package/dist/shortcuts/esb/errors.js +65 -0
  77. package/dist/shortcuts/esb/host.js +187 -0
  78. package/dist/shortcuts/esb/index.js +112 -0
  79. package/dist/shortcuts/esb/manifest.js +91 -0
  80. package/dist/shortcuts/esb/operations/input-format.js +31 -0
  81. package/dist/shortcuts/esb/operations/registry.js +48 -0
  82. package/dist/shortcuts/esb/operations/shared.js +152 -0
  83. package/dist/shortcuts/esb/operations/trigger.js +76 -0
  84. package/dist/shortcuts/esb/operations/types.js +21 -0
  85. package/dist/shortcuts/esb/operations.js +15 -0
  86. package/dist/shortcuts/fna/continuation.js +70 -0
  87. package/dist/shortcuts/fna/errors.js +59 -0
  88. package/dist/shortcuts/fna/host.js +146 -0
  89. package/dist/shortcuts/fna/index.js +111 -0
  90. package/dist/shortcuts/fna/manifest.js +41 -0
  91. package/dist/shortcuts/fna/operations/budget.js +124 -0
  92. package/dist/shortcuts/fna/operations/expense-center.js +148 -0
  93. package/dist/shortcuts/fna/operations/invoice-writeoff.js +212 -0
  94. package/dist/shortcuts/fna/operations/loan.js +195 -0
  95. package/dist/shortcuts/fna/operations/registry.js +35 -0
  96. package/dist/shortcuts/fna/operations/shared.js +210 -0
  97. package/dist/shortcuts/fna/operations/types.js +25 -0
  98. package/dist/shortcuts/fna/operations.js +19 -0
  99. package/dist/shortcuts/hrm/errors.js +38 -0
  100. package/dist/shortcuts/hrm/host.js +156 -0
  101. package/dist/shortcuts/hrm/index.js +111 -0
  102. package/dist/shortcuts/hrm/manifest.js +32 -0
  103. package/dist/shortcuts/hrm/operations/employee.js +338 -0
  104. package/dist/shortcuts/hrm/operations/org.js +110 -0
  105. package/dist/shortcuts/hrm/operations/position.js +176 -0
  106. package/dist/shortcuts/hrm/operations/registry.js +33 -0
  107. package/dist/shortcuts/hrm/operations/shared.js +143 -0
  108. package/dist/shortcuts/hrm/operations/types.js +23 -0
  109. package/dist/shortcuts/hrm/operations.js +19 -0
  110. package/dist/shortcuts/index.js +24 -0
  111. package/dist/shortcuts/invoice/host.js +99 -94
  112. package/dist/shortcuts/invoice/index.js +58 -59
  113. package/dist/shortcuts/invoice/manifest.js +200 -3
  114. package/dist/shortcuts/invoice/operations/browse-field.js +17 -0
  115. package/dist/shortcuts/invoice/operations/issuing.js +198 -0
  116. package/dist/shortcuts/invoice/operations/registry.js +17 -0
  117. package/dist/shortcuts/invoice/operations/reim.js +401 -0
  118. package/dist/shortcuts/invoice/operations/shared.js +247 -0
  119. package/dist/shortcuts/jiuchuanhui/cache.js +441 -0
  120. package/dist/shortcuts/jiuchuanhui/continuation.js +70 -0
  121. package/dist/shortcuts/jiuchuanhui/errors.js +59 -0
  122. package/dist/shortcuts/jiuchuanhui/host.js +159 -0
  123. package/dist/shortcuts/jiuchuanhui/index.js +109 -0
  124. package/dist/shortcuts/jiuchuanhui/manifest.js +469 -0
  125. package/dist/shortcuts/jiuchuanhui/operations/datajson.js +214 -0
  126. package/dist/shortcuts/jiuchuanhui/operations/esb.js +157 -0
  127. package/dist/shortcuts/jiuchuanhui/operations/generic.js +146 -0
  128. package/dist/shortcuts/jiuchuanhui/operations/registry.js +133 -0
  129. package/dist/shortcuts/jiuchuanhui/operations/shared.js +158 -0
  130. package/dist/shortcuts/jiuchuanhui/operations/types.js +1 -0
  131. package/dist/shortcuts/jiuchuanhui/operations.js +8 -0
  132. package/dist/shortcuts/mail/continuation.js +70 -0
  133. package/dist/shortcuts/mail/errors.js +53 -0
  134. package/dist/shortcuts/mail/host.js +182 -0
  135. package/dist/shortcuts/mail/index.js +519 -0
  136. package/dist/shortcuts/mail/manifest.js +38 -0
  137. package/dist/shortcuts/mail/operations/mail-blacklist.js +79 -0
  138. package/dist/shortcuts/mail/operations/mail-contacts.js +195 -0
  139. package/dist/shortcuts/mail/operations/mail-manage.js +335 -0
  140. package/dist/shortcuts/mail/operations/mail-read.js +508 -0
  141. package/dist/shortcuts/mail/operations/mail-send.js +474 -0
  142. package/dist/shortcuts/mail/operations/mail-sign.js +203 -0
  143. package/dist/shortcuts/mail/operations/mail-template.js +170 -0
  144. package/dist/shortcuts/mail/operations/registry.js +41 -0
  145. package/dist/shortcuts/mail/operations/shared.js +64 -0
  146. package/dist/shortcuts/mail/operations/types.js +27 -0
  147. package/dist/shortcuts/mail/operations.js +19 -0
  148. package/dist/shortcuts/meeting/continuation.js +70 -0
  149. package/dist/shortcuts/meeting/errors.js +63 -0
  150. package/dist/shortcuts/meeting/host.js +167 -0
  151. package/dist/shortcuts/meeting/index.js +123 -0
  152. package/dist/shortcuts/meeting/manifest.js +64 -0
  153. package/dist/shortcuts/meeting/operations/catalogs.js +58 -0
  154. package/dist/shortcuts/meeting/operations/change.js +242 -0
  155. package/dist/shortcuts/meeting/operations/conflicts.js +142 -0
  156. package/dist/shortcuts/meeting/operations/create.js +349 -0
  157. package/dist/shortcuts/meeting/operations/env.js +191 -0
  158. package/dist/shortcuts/meeting/operations/lifecycle.js +139 -0
  159. package/dist/shortcuts/meeting/operations/meetings.js +73 -0
  160. package/dist/shortcuts/meeting/operations/receipts.js +195 -0
  161. package/dist/shortcuts/meeting/operations/registry.js +47 -0
  162. package/dist/shortcuts/meeting/operations/rooms.js +132 -0
  163. package/dist/shortcuts/meeting/operations/shared.js +112 -0
  164. package/dist/shortcuts/meeting/operations/signs.js +41 -0
  165. package/dist/shortcuts/meeting/operations/types.js +25 -0
  166. package/dist/shortcuts/meeting/operations.js +19 -0
  167. package/dist/shortcuts/plan/continuation.js +70 -0
  168. package/dist/shortcuts/plan/errors.js +70 -0
  169. package/dist/shortcuts/plan/host.js +180 -0
  170. package/dist/shortcuts/plan/index.js +150 -0
  171. package/dist/shortcuts/plan/manifest.js +53 -0
  172. package/dist/shortcuts/plan/operations/link.js +256 -0
  173. package/dist/shortcuts/plan/operations/read.js +259 -0
  174. package/dist/shortcuts/plan/operations/registry.js +33 -0
  175. package/dist/shortcuts/plan/operations/shared.js +246 -0
  176. package/dist/shortcuts/plan/operations/types.js +49 -0
  177. package/dist/shortcuts/plan/operations/version.js +49 -0
  178. package/dist/shortcuts/plan/operations/write.js +710 -0
  179. package/dist/shortcuts/plan/operations.js +8 -0
  180. package/dist/shortcuts/yimiaoban/continuation.js +70 -0
  181. package/dist/shortcuts/yimiaoban/errors.js +61 -0
  182. package/dist/shortcuts/yimiaoban/host.js +469 -0
  183. package/dist/shortcuts/yimiaoban/index.js +271 -0
  184. package/dist/shortcuts/yimiaoban/manifest.js +28 -0
  185. package/dist/shortcuts/yimiaoban/operations/file-user.js +288 -0
  186. package/dist/shortcuts/yimiaoban/operations/group-read.js +477 -0
  187. package/dist/shortcuts/yimiaoban/operations/group-write.js +591 -0
  188. package/dist/shortcuts/yimiaoban/operations/msg-parse.js +429 -0
  189. package/dist/shortcuts/yimiaoban/operations/msg-sync.js +519 -0
  190. package/dist/shortcuts/yimiaoban/operations/msg-write.js +593 -0
  191. package/dist/shortcuts/yimiaoban/operations/person.js +102 -0
  192. package/dist/shortcuts/yimiaoban/operations/registry.js +38 -0
  193. package/dist/shortcuts/yimiaoban/operations/session.js +437 -0
  194. package/dist/shortcuts/yimiaoban/operations/shared.js +236 -0
  195. package/dist/shortcuts/yimiaoban/operations/types.js +27 -0
  196. package/dist/shortcuts/yimiaoban/operations/write-util.js +78 -0
  197. package/dist/shortcuts/yimiaoban/operations.js +8 -0
  198. package/docs/SKILL.md +11 -7
  199. package/docs/_catalog.md +28 -5
  200. package/docs/agent-invoice.md +19 -9
  201. package/docs/agent-skill-install.md +141 -22
  202. package/docs/calendar.md +87 -0
  203. package/docs/e10-auth.md +28 -9
  204. package/docs/ehr.md +186 -0
  205. package/docs/esb.md +64 -0
  206. package/docs/fna.md +72 -0
  207. package/docs/hrm.md +89 -0
  208. package/docs/invoice.md +61 -20
  209. package/docs/jiuchuanhui.md +131 -0
  210. package/docs/meeting.md +48 -0
  211. package/docs/operation-manual.md +443 -0
  212. package/docs/plan.md +82 -0
  213. package/docs/wenshuding.md +129 -0
  214. package/docs/yimiaoban.md +86 -0
  215. package/docs/ziguanjia.md +89 -0
  216. package/package.json +4 -4
  217. package/scripts/package-skill.mjs +127 -34
  218. package/scripts/postbuild.mjs +13 -0
  219. package/skill-template/business-info.json +16 -2
  220. package/skill-template/domains/calendar.md +15 -0
  221. package/skill-template/domains/esb.md +13 -0
  222. package/skill-template/domains/hrm.md +16 -0
  223. package/skill-template/domains/jiuchuanhui.md +23 -0
  224. package/skill-template/domains/jucailin.md +22 -0
  225. package/skill-template/domains/mail.md +21 -0
  226. package/skill-template/domains/meeting.md +3 -0
  227. package/skill-template/domains/plan.md +17 -0
  228. package/skill-template/domains/qiyecheng.md +17 -0
  229. package/skill-template/domains/shared.md +5 -3
  230. package/skill-template/domains/skill-maker.md +10 -0
  231. package/skill-template/domains/wenshuding.md +22 -0
  232. package/skill-template/domains/{invoice.md → yepiaotong.md} +4 -0
  233. package/skill-template/domains/yimiaoban.md +21 -0
  234. package/skill-template/domains/ziguanjia.md +21 -0
  235. package/skill-template/master-skill-template.md +12 -6
  236. package/skill-template/skill-template.md +26 -10
  237. package/skills/weaver-e10-calendar/SKILL.md +102 -0
  238. package/skills/weaver-e10-calendar/product.json +8 -0
  239. package/skills/weaver-e10-calendar/references/calendar-app-check.md +65 -0
  240. package/skills/weaver-e10-calendar/references/calendar-dict.md +55 -0
  241. package/skills/weaver-e10-calendar/references/calendar-query.md +70 -0
  242. package/skills/weaver-e10-calendar/references/calendar-write.md +97 -0
  243. package/skills/weaver-e10-calendar/references/source-manifest.json +54 -0
  244. package/skills/weaver-e10-esb/SKILL.md +103 -0
  245. package/skills/weaver-e10-esb/product.json +8 -0
  246. package/skills/weaver-e10-esb/references/input-format.md +52 -0
  247. package/skills/weaver-e10-esb/references/source-manifest.json +242 -0
  248. package/skills/weaver-e10-esb/references/trigger.md +99 -0
  249. package/skills/weaver-e10-hrm/SKILL.md +88 -0
  250. package/skills/weaver-e10-hrm/product.json +8 -0
  251. package/skills/weaver-e10-hrm/references/employee.md +109 -0
  252. package/skills/weaver-e10-hrm/references/org.md +95 -0
  253. package/skills/weaver-e10-hrm/references/position.md +95 -0
  254. package/skills/weaver-e10-hrm/references/source-manifest.json +121 -0
  255. package/skills/weaver-e10-jiuchuanhui/SKILL.md +175 -0
  256. package/skills/weaver-e10-jiuchuanhui/product.json +8 -0
  257. package/skills/weaver-e10-jiuchuanhui/references/cache.md +110 -0
  258. package/skills/weaver-e10-jiuchuanhui/references/clue.md +61 -0
  259. package/skills/weaver-e10-jiuchuanhui/references/contact-plan.md +56 -0
  260. package/skills/weaver-e10-jiuchuanhui/references/contact-records.md +48 -0
  261. package/skills/weaver-e10-jiuchuanhui/references/contact.md +56 -0
  262. package/skills/weaver-e10-jiuchuanhui/references/customer.md +69 -0
  263. package/skills/weaver-e10-jiuchuanhui/references/disabled-capabilities.md +24 -0
  264. package/skills/weaver-e10-jiuchuanhui/references/discovery-config.md +60 -0
  265. package/skills/weaver-e10-jiuchuanhui/references/general-helpers.md +59 -0
  266. package/skills/weaver-e10-jiuchuanhui/references/jiuchuanhui-entry.md +60 -0
  267. package/skills/weaver-e10-jiuchuanhui/references/sale.md +72 -0
  268. package/skills/weaver-e10-jiuchuanhui/references/source-manifest.json +2632 -0
  269. package/skills/weaver-e10-jucailin/SKILL.md +102 -0
  270. package/skills/weaver-e10-jucailin/product.json +8 -0
  271. package/skills/weaver-e10-jucailin/references/attend-read.md +73 -0
  272. package/skills/weaver-e10-jucailin/references/attend-write.md +82 -0
  273. package/skills/weaver-e10-jucailin/references/hr-contact.md +92 -0
  274. package/skills/weaver-e10-jucailin/references/hr-datasource.md +104 -0
  275. package/skills/weaver-e10-jucailin/references/hr-report.md +76 -0
  276. package/skills/weaver-e10-jucailin/references/recruit-read.md +76 -0
  277. package/skills/weaver-e10-jucailin/references/recruit-write.md +70 -0
  278. package/skills/weaver-e10-jucailin/references/safety-boundaries.md +35 -0
  279. package/skills/weaver-e10-jucailin/references/salary.md +110 -0
  280. package/skills/weaver-e10-jucailin/references/source-manifest.json +152 -0
  281. package/skills/weaver-e10-mail/SKILL.md +152 -0
  282. package/skills/weaver-e10-mail/product.json +8 -0
  283. package/skills/weaver-e10-mail/references/mail-agent-entry.md +47 -0
  284. package/skills/weaver-e10-mail/references/mail-attachment.md +30 -0
  285. package/skills/weaver-e10-mail/references/mail-blacklist.md +27 -0
  286. package/skills/weaver-e10-mail/references/mail-contacts.md +33 -0
  287. package/skills/weaver-e10-mail/references/mail-manage.md +44 -0
  288. package/skills/weaver-e10-mail/references/mail-read.md +76 -0
  289. package/skills/weaver-e10-mail/references/mail-send.md +43 -0
  290. package/skills/weaver-e10-mail/references/mail-sign.md +33 -0
  291. package/skills/weaver-e10-mail/references/mail-template.md +31 -0
  292. package/skills/weaver-e10-mail/references/safety-boundaries.md +32 -0
  293. package/skills/weaver-e10-meeting/SKILL.md +106 -0
  294. package/skills/weaver-e10-meeting/product.json +8 -0
  295. package/skills/weaver-e10-meeting/references/meeting-change.md +67 -0
  296. package/skills/weaver-e10-meeting/references/meeting-create.md +52 -0
  297. package/skills/weaver-e10-meeting/references/meeting-lifecycle.md +57 -0
  298. package/skills/weaver-e10-meeting/references/meeting-queries.md +61 -0
  299. package/skills/weaver-e10-meeting/references/meeting-receipts-signs.md +48 -0
  300. package/skills/weaver-e10-meeting/references/meeting-update.md +7 -0
  301. package/skills/weaver-e10-meeting/references/source-manifest.json +50 -0
  302. package/skills/weaver-e10-plan/SKILL.md +140 -0
  303. package/skills/weaver-e10-plan/product.json +8 -0
  304. package/skills/weaver-e10-plan/references/plan-collect-and-compose.md +123 -0
  305. package/skills/weaver-e10-plan/references/plan-overview-and-routing.md +138 -0
  306. package/skills/weaver-e10-plan/references/plan-report-query.md +154 -0
  307. package/skills/weaver-e10-plan/references/plan-report-remind.md +104 -0
  308. package/skills/weaver-e10-plan/references/plan-report-write.md +162 -0
  309. package/skills/weaver-e10-plan/references/source-manifest.json +858 -0
  310. package/skills/weaver-e10-qiyecheng/SKILL.md +119 -0
  311. package/skills/weaver-e10-qiyecheng/product.json +8 -0
  312. package/skills/weaver-e10-qiyecheng/references/budget.md +65 -0
  313. package/skills/weaver-e10-qiyecheng/references/catalog.md +56 -0
  314. package/skills/weaver-e10-qiyecheng/references/expense-center.md +51 -0
  315. package/skills/weaver-e10-qiyecheng/references/invoice-writeoff.md +57 -0
  316. package/skills/weaver-e10-qiyecheng/references/loan-management.md +59 -0
  317. package/skills/weaver-e10-qiyecheng/references/source-manifest.json +698 -0
  318. package/skills/weaver-e10-shared/SKILL.md +90 -0
  319. package/skills/weaver-e10-shared/references/e10-auth-and-session.md +127 -0
  320. package/skills/{weaver-work-cli-shared → weaver-e10-shared}/references/json-output-contract.md +34 -0
  321. package/skills/weaver-e10-shared/references/weaver-e10-installation.md +110 -0
  322. package/skills/weaver-e10-skill-maker/SKILL.md +78 -0
  323. package/skills/weaver-e10-skill-maker/product.json +8 -0
  324. package/skills/weaver-e10-skill-maker/references/business-skill-generation.md +124 -0
  325. package/skills/weaver-e10-skill-maker/references/detector-validation.md +101 -0
  326. package/skills/weaver-e10-skill-maker/references/module-cli-generation.md +230 -0
  327. package/skills/weaver-e10-skill-maker/references/post-generation-install.md +105 -0
  328. package/skills/weaver-e10-skill-maker/references/source-update-detection.md +261 -0
  329. package/skills/weaver-e10-skill-maker/references/weaver-skill-style.md +141 -0
  330. package/skills/weaver-e10-wenshuding/SKILL.md +158 -0
  331. package/skills/weaver-e10-wenshuding/product.json +8 -0
  332. package/skills/weaver-e10-wenshuding/references/archive-agent-entry.md +63 -0
  333. package/skills/weaver-e10-wenshuding/references/archive-borrow-car.md +52 -0
  334. package/skills/weaver-e10-wenshuding/references/archive-borrow-list.md +52 -0
  335. package/skills/weaver-e10-wenshuding/references/archive-disabled-capabilities.md +22 -0
  336. package/skills/weaver-e10-wenshuding/references/archive-download.md +48 -0
  337. package/skills/weaver-e10-wenshuding/references/archive-flow.md +46 -0
  338. package/skills/weaver-e10-wenshuding/references/archive-fonds.md +34 -0
  339. package/skills/weaver-e10-wenshuding/references/archive-info.md +33 -0
  340. package/skills/weaver-e10-wenshuding/references/archive-search.md +52 -0
  341. package/skills/weaver-e10-wenshuding/references/archive-upload.md +41 -0
  342. package/skills/weaver-e10-wenshuding/references/source-manifest.json +517 -0
  343. package/skills/weaver-e10-yepiaotong/SKILL.md +184 -0
  344. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-add.md +1 -1
  345. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-agent-entry.md +16 -9
  346. package/skills/weaver-e10-yepiaotong/references/invoice-browse-field-data.md +204 -0
  347. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-delete.md +1 -1
  348. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-detail.md +13 -5
  349. package/skills/weaver-e10-yepiaotong/references/invoice-disabled-capabilities.md +28 -0
  350. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-download.md +9 -2
  351. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-enterprise-list.md +12 -4
  352. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-file-upload.md +9 -2
  353. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-import.md +16 -7
  354. package/skills/weaver-e10-yepiaotong/references/invoice-issuing-examples.md +120 -0
  355. package/skills/weaver-e10-yepiaotong/references/invoice-issuing-field-rules.md +161 -0
  356. package/skills/weaver-e10-yepiaotong/references/invoice-issuing.md +99 -0
  357. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-ocr-preview.md +12 -4
  358. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-personal-list.md +12 -4
  359. package/skills/weaver-e10-yepiaotong/references/invoice-red.md +261 -0
  360. package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +97 -0
  361. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-update.md +1 -1
  362. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-validation-preview.md +9 -2
  363. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +1340 -0
  364. package/skills/weaver-e10-yepiaotong/references/reim-examples.md +845 -0
  365. package/skills/weaver-e10-yepiaotong/references/reim-expense-subject-rules.md +94 -0
  366. package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +449 -0
  367. package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +266 -0
  368. package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +494 -0
  369. package/skills/weaver-e10-yepiaotong/references/source-manifest.json +1103 -0
  370. package/skills/weaver-e10-yimiaoban/SKILL.md +104 -0
  371. package/skills/weaver-e10-yimiaoban/product.json +8 -0
  372. package/skills/weaver-e10-yimiaoban/references/ding-write.md +68 -0
  373. package/skills/weaver-e10-yimiaoban/references/error-codes.md +85 -0
  374. package/skills/weaver-e10-yimiaoban/references/field-resolution.md +46 -0
  375. package/skills/weaver-e10-yimiaoban/references/file-user-i18n.md +54 -0
  376. package/skills/weaver-e10-yimiaoban/references/group-read.md +55 -0
  377. package/skills/weaver-e10-yimiaoban/references/group-write.md +72 -0
  378. package/skills/weaver-e10-yimiaoban/references/msg-read.md +59 -0
  379. package/skills/weaver-e10-yimiaoban/references/msg-write.md +64 -0
  380. package/skills/weaver-e10-yimiaoban/references/person.md +44 -0
  381. package/skills/weaver-e10-yimiaoban/references/safety-boundaries.md +61 -0
  382. package/skills/weaver-e10-yimiaoban/references/session-sysmsg.md +47 -0
  383. package/skills/weaver-e10-yimiaoban/references/source-manifest.json +485 -0
  384. package/skills/weaver-e10-ziguanjia/SKILL.md +163 -0
  385. package/skills/weaver-e10-ziguanjia/product.json +8 -0
  386. package/skills/weaver-e10-ziguanjia/references/source-manifest.json +147 -0
  387. package/skills/weaver-e10-ziguanjia/references/ziguanjia-agent-entry.md +65 -0
  388. package/skills/weaver-e10-ziguanjia/references/ziguanjia-create.md +45 -0
  389. package/skills/weaver-e10-ziguanjia/references/ziguanjia-depre.md +48 -0
  390. package/skills/weaver-e10-ziguanjia/references/ziguanjia-disabled-capabilities.md +22 -0
  391. package/skills/weaver-e10-ziguanjia/references/ziguanjia-purch.md +57 -0
  392. package/skills/weaver-e10-ziguanjia/references/ziguanjia-query.md +62 -0
  393. package/skills/weaver-e10-ziguanjia/references/ziguanjia-repair.md +83 -0
  394. package/skills/weaver-e10-ziguanjia/references/ziguanjia-resolve.md +49 -0
  395. package/skills/weaver-e10-ziguanjia/references/ziguanjia-return.md +70 -0
  396. package/skills/weaver-e10-ziguanjia/references/ziguanjia-update.md +45 -0
  397. package/skills/weaver-e10-ziguanjia/references/ziguanjia-use.md +60 -0
  398. package/skills/weaver-e10-ziguanjia/references/ziguanjia-viewlink.md +81 -0
  399. package/skills/weaver-work-cli-invoice/SKILL.md +0 -122
  400. package/skills/weaver-work-cli-invoice/references/invoice-disabled-capabilities.md +0 -26
  401. package/skills/weaver-work-cli-shared/SKILL.md +0 -63
  402. package/skills/weaver-work-cli-shared/references/e10-auth-and-session.md +0 -90
  403. package/skills/weaver-work-cli-shared/references/weaver-work-cli-installation.md +0 -73
  404. /package/skills/{weaver-work-cli-shared → weaver-e10-shared}/references/high-risk-write.md +0 -0
  405. /package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/product.json +0 -0
@@ -0,0 +1,119 @@
1
+ ---
2
+ name: weaver-e10-qiyecheng
3
+ display_name: 泛微齐业成费控
4
+ display_name_en: Weaver Qiyecheng FNA
5
+ description: 泛微齐业成费控中心(预算查询/费用中心/借款管理/发票核销)的 E10 查询与提醒写操作能力,通过 weaver-work-cli fna 命令执行。
6
+ description_zh: 泛微齐业成费控中心助手:事前申请单预算详情、预算执行报表、报销/借款/预付核销金额、全公司借款汇总与列表、提醒还款、发票核销金额与列表、催票。所有能力通过 weaver-work-cli fna 命令执行,提醒还款与催票为写操作,必须先 prepare 预览并经用户明确确认后 apply。
7
+ description_en: Expense, budget and loan assistant for Weaver Qiyecheng FNA. Queries pre-application budget details, budget execution reports, reimbursed/loan/prepay amounts, company-wide loan summary and list, invoice write-off summary and list. Sends repayment reminders and invoice call-tickets through the weaver-work-cli fna command with a prepare/apply confirmation chain.
8
+ version: 1.0.0
9
+ author: 泛微网络科技股份有限公司
10
+ agent_created: true
11
+ requires:
12
+ bins: ["weaver-work-cli"]
13
+ cliHelp: "weaver-work-cli fna --help"
14
+ ---
15
+
16
+ # weaver-work-cli 齐业成费控(FNA)Skill
17
+
18
+ **CRITICAL — 开始前 MUST 先用 Read 工具读取 [`../weaver-e10-shared/SKILL.md`](../weaver-e10-shared/SKILL.md),其中包含安装、E10 认证、JSON 输出和高风险写入规则。若不存在则必须先执行 `weaver-work-cli skills install shared --skills-dir <当前Agent的Skills目录>`,若 CLI 未安装则先执行 `npm install -g weaver-work-cli`,安装或读取失败时必须停止执行。**
19
+
20
+ 所有调用统一走 `weaver-work-cli fna ...`,禁止绕过 CLI 直接 curl/fetch E10 接口,禁止读取、复制、打印或解析 Cookie、ETEAMSID、Token 或 `~/.e10-cli` 等认证目录;登录诊断只允许 `weaver-work-cli auth root/status/profile list/profile current`、`weaver-work-cli doctor --e10` 和业务命令 JSON 错误。
21
+
22
+ ## 能力范围
23
+
24
+ | 能力 | 说明 | 身份 |
25
+ |---|---|---|
26
+ | 预算查询 | 事前申请单预算详情、预算执行报表(只读) | 登录即可(接口公开) |
27
+ | 费用中心 | 报销金额合计、借款金额分段、预付核销金额(只读) | 登录即可(默认当前登录人) |
28
+ | 借款管理 | 全公司待还/还款中汇总、全员借款单列表(只读);提醒还款(写) | 管理员 |
29
+ | 发票核销财务 | 金额 tab 汇总、核销列表(只读);催票(写) | 财务/管理员 |
30
+
31
+ ## 路由优先级
32
+
33
+ 先判断用户意图归属哪个模块,再选择 operation;一个意图只选最匹配的一个接口,目标不明确先提问收窄,不自动切换近义接口。**只有借款/发票核销模块涉及提醒类写操作,先 `prepare` 出预览并请用户明确确认,再 `apply`;禁止未确认自动执行。**
34
+
35
+ - 「这个事前申请单预算还剩多少」「某 requestId 的预算情况」→ `fna.budget.application.detail`
36
+ - 「预算执行报表」「某模板/部门/期间预算执行情况」→ `fna.budget.execute.list`
37
+ - 「我/某人某段时间报销了多少」→ `fna.expense.reimbursed.sum`
38
+ - 「还有多少借款没还」「各状态借款金额/笔数」→ `fna.expense.loan.sum`
39
+ - 「预付核销进度」「未到账多少」→ `fna.expense.prepay.writeoff.sum`
40
+ - 「全公司待还款/还款中多少钱」→ `fna.loan.main.page`
41
+ - 「列出借款单」「谁还欠多少」→ `fna.loan.main.list`
42
+ - 「提醒某人/批量提醒还款」→ `fna.loan.remind.repay.prepare` → 确认 → `fna.loan.remind.repay.apply`
43
+ - 「发票核销未核销/核销中多少」→ `fna.invoice.writeoff.summary`
44
+ - 「列出发票核销单」→ `fna.invoice.writeoff.list`
45
+ - 「催票/批量催票」→ `fna.invoice.writeoff.callticket.prepare` → 确认 → `fna.invoice.writeoff.callticket.apply`
46
+
47
+ ## Operation 表(以 `weaver-work-cli fna schema` 为准)
48
+
49
+ | 操作 | 风险 | 说明 |
50
+ |---|---|---|
51
+ | `fna.budget.application.detail` | read | GET 事前申请单预算详情(requestId 必填) |
52
+ | `fna.budget.execute.list` | read | POST 预算执行报表(current/pageSize 必填) |
53
+ | `fna.expense.reimbursed.sum` | read | 报销金额合计(body 可为空) |
54
+ | `fna.expense.loan.sum` | read | 借款金额分段汇总(已知缺陷:仅统计首条借款记录;瞬时空响应自动重试) |
55
+ | `fna.expense.prepay.writeoff.sum` | read | 预付核销金额汇总 |
56
+ | `fna.loan.main.page` | read | 借款首页汇总(dhk/hkz) |
57
+ | `fna.loan.main.list` | read | 借款首页列表(menuCode/permissionSetCode 必填) |
58
+ | `fna.loan.remind.repay.prepare` | write | 提醒还款预览(不发送) |
59
+ | `fna.loan.remind.repay.apply` | write | 提醒还款(confirm+continuation) |
60
+ | `fna.invoice.writeoff.summary` | read | 发票核销金额 tab |
61
+ | `fna.invoice.writeoff.list` | read | 发票核销列表 |
62
+ | `fna.invoice.writeoff.callticket.prepare` | write | 催票预览(不发送) |
63
+ | `fna.invoice.writeoff.callticket.apply` | write | 催票(confirm+continuation) |
64
+
65
+ ## 前置依赖与口径约定
66
+
67
+ - **ID 解析不在本 Skill**:姓名→`employeeId`、流程名→`workflowId` 依赖人员/流程解析接口,源资料未提供;用户只给姓名/流程名时先索要数字 ID,禁止编造 ID 或接口。
68
+ - `menuCode`/`permissionSetCode` 环境相关(借款 `fesx_fna_borrowingManagement(.default)`、核销 `inv_write_off_financial(.default)`),不确定时先与用户核对实际值。
69
+ - 金额双套口径:`data` 原始精度字符串(计算)、`displayData` 格式化(展示/回传);金额单位为元。
70
+ - 费用中心日期口径不同:报销按明细费用日期、借款按流程创建时间、预付核销按核销记录创建时间。
71
+ - 借款费用中心接口 requestId/employeeId/workflowId 只认**数字**(字符串会静默返回空);超 2^53 的巨型 ID 保留字符串并提示人工核验。
72
+
73
+ ## 执行原则
74
+
75
+ 1. 业务输入只描述业务对象与意图;认证与接口地址全部由 CLI 托管。
76
+ 2. 列表/详情可能返回大响应:只保留回答所需字段,给摘要与总数,不原样粘贴超长 JSON。
77
+ 3. 金额/比率为字符串时转数值使用(比率需去 `%`)。
78
+ 4. 借款金额查询已知实现缺陷:对外汇报注明「可能仅反映首条记录口径」。
79
+ 5. 写操作(remindRepay/callTicket)失败决策树:`partial` / `write_uncertain` / 登录失效 / 网络中断 → **立即停止,禁止自动重试**,做一次只读回查(`fna.loan.main.list` / `fna.invoice.writeoff.list`)后向用户汇报;若返回 `confirmation.required`,说明缺少明确确认,先 prepare 再确认后 apply。
80
+ 6. 金额结论口径存疑时(如借款缺陷、瞬时空响应)先说明不确定性;`total=0` 或空列表提示「暂无记录」,不得伪造成功。
81
+
82
+ ## References
83
+
84
+ | 需要 | 读取 |
85
+ |---|---|
86
+ | 接口目录与按模块路由 | [references/catalog.md](references/catalog.md) |
87
+ | 预算:事前申请单预算详情 / 预算执行报表 | [references/budget.md](references/budget.md) |
88
+ | 费用中心:报销 / 借款 / 预付核销 | [references/expense-center.md](references/expense-center.md) |
89
+ | 借款管理:汇总 / 列表 / 提醒还款(prepare→apply) | [references/loan-management.md](references/loan-management.md) |
90
+ | 发票核销:金额 tab / 列表 / 催票(prepare→apply) | [references/invoice-writeoff.md](references/invoice-writeoff.md) |
91
+ | 源资料指纹与更新检测 | [references/source-manifest.json](references/source-manifest.json) |
92
+
93
+ ## 命令示例
94
+
95
+ Windows PowerShell:
96
+
97
+ ```powershell
98
+ weaver-work-cli --json fna run fna.budget.application.detail --input-json '{"requestId":"1001"}'
99
+ weaver-work-cli --json fna run fna.expense.loan.sum --input-json '{"employeeId":12345,"startDate":"2026-01-01","endDate":"2026-08-31"}'
100
+ weaver-work-cli --json fna run fna.loan.main.list --input-json '{"current":1,"pageSize":20,"menuCode":"fesx_fna_borrowingManagement","permissionSetCode":"fesx_fna_borrowingManagement.default"}'
101
+ ```
102
+
103
+ macOS/Linux(bash/zsh):
104
+
105
+ ```bash
106
+ weaver-work-cli --json fna run fna.budget.application.detail --input-json '{"requestId":"1001"}'
107
+ weaver-work-cli --json fna run fna.expense.loan.sum --input-json '{"employeeId":12345,"startDate":"2026-01-01","endDate":"2026-08-31"}'
108
+ weaver-work-cli --json fna run fna.loan.main.list --input-json '{"current":1,"pageSize":20,"menuCode":"fesx_fna_borrowingManagement","permissionSetCode":"fesx_fna_borrowingManagement.default"}'
109
+ ```
110
+
111
+ ## 附件与文件安全
112
+
113
+ 本 Skill 的 11 个接口均为查询/提醒类,**不涉及附件、图片或文件上传解析**。若后续扩展接口涉及附件或文件内容解析,必须先向用户说明「附件内容可能会发送到当前大模型服务处理,可能进入大模型上下文」,并在用户明确确认后才能处理;不得把用户仅提供路径或文件名视为同意解析或上传。
114
+
115
+ ## 不在本 Skill 范围
116
+
117
+ - 借款「确认已还 confirmRepay」、核销明细等页面按钮能力(源资料未提供接口)→ 见 `weaver-work-cli fna schema` 的 `withheldOperations`,不得编造 operation 或直连接口。
118
+ - 姓名/流程名 → ID 的解析、创建借款单/预付单/事前申请单等需联动工作流的写流程(未提供接口依据)。
119
+ - 其它模块(发票票夹、人事、流程待办)请路由到对应 Skill,不在此重复实现。
@@ -0,0 +1,8 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "product": "weaver-work-cli",
4
+ "productVersion": "0.1.2",
5
+ "packageName": "weaver-work-cli",
6
+ "command": "weaver-work-cli",
7
+ "nodeEngine": ">=18"
8
+ }
@@ -0,0 +1,65 @@
1
+ # 预算查询
2
+
3
+ ## 何时使用
4
+
5
+ 用户问「事前申请单预算还剩多少」「某 requestId 的预算/报销情况」→ 事前申请单预算详情;问「预算执行报表」「某模板/部门/期间预算执行情况」→ 预算执行报表。两者都是只读查询,无写副作用。
6
+
7
+ ## 事前申请单预算详情(fna.budget.application.detail)
8
+
9
+ ### 输入要点
10
+
11
+ - `requestId` 必填:事前申请单 ID(数字),用户只给申请名称/事由时先向其索要 requestId,不要自行拼 ID 解析接口。
12
+ - 预算口径:预算总额 = 已报销 + 报销中 + 剩余可用 + 已释放;若不等,提示数据可能未刷新或存在并发在途变更。
13
+
14
+ ### 命令
15
+
16
+ Windows PowerShell:
17
+
18
+ ```powershell
19
+ weaver-work-cli --json fna run fna.budget.application.detail --input-json '{"requestId":"1001"}'
20
+ ```
21
+
22
+ macOS/Linux(bash/zsh):
23
+
24
+ ```bash
25
+ weaver-work-cli --json fna run fna.budget.application.detail --input-json '{"requestId":"1001"}'
26
+ ```
27
+
28
+ ### 输出处理
29
+
30
+ 返回归一化对象:`requestId`/`requestName`/`createPerson`/`createTime` + `budget{totalAmount,reimbursedFee,reimbursingFee,remainingBudget,releasedBudgetAmount,isDisplay}`;`meta.rawForm` 为原始 WeaForm。汇报时展示申请名称、发起时间、预算总额与剩余可用预算即可,不必粘贴整份表单。
31
+
32
+ ## 预算执行报表(fna.budget.execute.list)
33
+
34
+ ### 输入要点
35
+
36
+ - `current`/`pageSize` 必填(正整数);`templateId` 预算模板 ID,为空只返回表头(正常行为,不是错误)。
37
+ - `formDatas`(可选):维度/期间筛选。**嵌套陷阱**:每个 value 是「单元素数组包裹同名 key 数组」的二层嵌套;`periodName` 传金额列名 `budget_amount1`~`budget_amount12`(对应 1~12 月);维度成员传 `[{"dimenMem1":[{"id":"...","name":"..."}]}]`,维度 key 由模板 `corrColumn` 决定,不要臆造。
38
+ - `type`:`and`/`or`;`ignoreReportPower` 仅内部/管理员场景,默认不传。
39
+
40
+ ### 命令
41
+
42
+ Windows PowerShell:
43
+
44
+ ```powershell
45
+ weaver-work-cli --json fna run fna.budget.execute.list --input-json '{"current":1,"pageSize":100,"templateId":"1192927724873392129","formDatas":{"periodName":[{"periodName":["budget_amount1"]}]}}'
46
+ ```
47
+
48
+ macOS/Linux(bash/zsh):
49
+
50
+ ```bash
51
+ weaver-work-cli --json fna run fna.budget.execute.list --input-json '{"current":1,"pageSize":100,"templateId":"1192927724873392129","formDatas":{"periodName":[{"periodName":["budget_amount1"]}]}}'
52
+ ```
53
+
54
+ ### 输出处理
55
+
56
+ 返回 `{total,current,pageSize,hasMore,periodFlag,columns,rows,totals}`。汇总问题(预算总额/已报销/剩余可用/执行率)优先读 `totals` 中 `budget_sumAmount` 前缀的合计字段(字符串,转数值、比率去 `%`);明细看 `rows`。
57
+
58
+ ### 注意
59
+
60
+ - `templateId` 为空仅返回表头,需提示用户传入正确的模板 ID。
61
+ - 字段列与维度 key 因模板而异,本 Skill 不臆造,必要时请用户提供模板维度配置。
62
+
63
+ ## 失败处理
64
+
65
+ `code!=200`/`status!=true` → 停止并按错误 envelope 汇报,不切换到其它近义接口重试。
@@ -0,0 +1,56 @@
1
+ # FNA 齐业成费控接口目录
2
+
3
+ 对应 `weaver-work-cli fna` 的 13 个 operation,覆盖源资料四大模块 11 个接口(预算 2 / 费用中心 3 / 借款管理 3 / 发票核销 3,其中提醒还款与催票拆为 prepare/apply 两个操作)。完整接口路径与认证由 weaver-work-cli 托管,Agent 只写业务 JSON。
4
+
5
+ ## 一、预算查询(budget,2 个)
6
+
7
+ | 用户意图 | operation | 说明 |
8
+ |---|---|---|
9
+ | 「这个事前申请单预算还剩多少」「某 requestId 的预算情况」 | `fna.budget.application.detail` | GET 详情,requestId 必填,返回预算总额/已报销/报销中/剩余可用/已释放 |
10
+ | 「预算执行报表」「某模板/部门/期间预算执行情况」 | `fna.budget.execute.list` | POST 报表,current/pageSize 必填,templateId 为空仅返回表头 |
11
+
12
+ - 均为公开 AI 接口(`publicPermission=true`),只读无写副作用。
13
+ - 预算执行报表期间筛选 `periodName` 传**金额列名**(`budget_amount1`~`budget_amount12`),维度 key(`dimenMem1` 等)随模板 `corrColumn` 变化;`formDatas` 每个 value 是「单元素数组包裹同名 key 数组」的二层嵌套,拼错层级会筛选失效而不是报错。
14
+ - 汇总口径优先读响应 `totals`(customParameters)中 `budget_sumAmount` 前缀字段,金额/比率为字符串。
15
+
16
+ ## 二、费用中心(expense,3 个)
17
+
18
+ | 用户意图 | operation |
19
+ |---|---|
20
+ | 「我/某人报销了多少」「某时间段报销金额合计」 | `fna.expense.reimbursed.sum` |
21
+ | 「还有多少借款没还」「各状态借款金额/笔数」 | `fna.expense.loan.sum` |
22
+ | 「预付核销进度」「未到账多少」 | `fna.expense.prepay.writeoff.sum` |
23
+
24
+ - 共用 `SumAmountByAiVo`(employeeId/startDate/endDate/workflowId/requestId),**body 可为空**,不传按当前登录人。
25
+ - 报销口径:明细状态 `status=1`(审批完成)的 `reimburse_amount` 合计 = 已报销金额;无数据返回 `0.0`。
26
+ - ⚠️ 借款接口缺陷:仅统计首条借款记录(对外汇报注明);且首次/冷启动可能瞬时空响应(缺 data 键),CLI 自动重试最多 2 次。
27
+ - 借款接口 requestId 等必须传数字;预付核销接口日期按核销记录创建时间、employeeId 匹配预付单创建人。
28
+
29
+ ## 三、借款管理(loan,管理员)
30
+
31
+ | 用户意图 | operation | 风险 |
32
+ |---|---|---|
33
+ | 「全公司待还款/还款中多少钱」 | `fna.loan.main.page` | read |
34
+ | 「列出借款单」「谁还欠多少」 | `fna.loan.main.list` | read |
35
+ | 「提醒某人/批量提醒还款」 | `fna.loan.remind.repay.prepare` / `.apply` | **write** |
36
+
37
+ - `mainPageList` 必填 `current`/`pageSize`/`menuCode`/`permissionSetCode`(示例 `fesx_fna_borrowingManagement`,需与环境核对)。
38
+ - 数据流:`fna.loan.main.list` 返回 `rows`(displayData 行,含 id/workflowId/jkrPersonName/dhkAmount)→ 原样回传 `fna.loan.remind.repay.prepare` → 用户确认 → `apply`。
39
+ - 金额:`data` 原始精度、`displayData` 已格式化;`createTime` 在 displayData 为 `yyyy-MM-dd HH:mm:ss`。
40
+
41
+ ## 四、发票核销财务(invoice-writeoff,财务/管理员)
42
+
43
+ | 用户意图 | operation | 风险 |
44
+ |---|---|---|
45
+ | 「发票核销未核销/核销中多少」 | `fna.invoice.writeoff.summary` | read |
46
+ | 「列出发票核销单」「谁还有多少没核销」 | `fna.invoice.writeoff.list` | read |
47
+ | 「催票/批量催票」 | `fna.invoice.writeoff.callticket.prepare` / `.apply` | **write** |
48
+
49
+ - `invoiceStatus` 过滤:`unWritten`/`unarrivedTicket`/`dealing`/`callTicket`;`menuCode`/`permissionSetCode` 示例 `inv_write_off_financial(.default)`。
50
+ - 数据流:`fna.invoice.writeoff.list` 返回行 `requestId`(= `id`)→ 组装 `requestids` 传给 `callticket.prepare` → 用户确认 → `apply`。
51
+
52
+ ## 通用约定
53
+
54
+ - 失败时按错误 envelope 的 `type/subtype` 处理:`confirmation.required` 缺确认;`partial.write_uncertain` 不确定结果立即停止并回查,禁止自动重试。
55
+ - 无记录时输出 `total=0`/空 `rows` 或 `segments:null`,提示「暂无记录」,不得伪造成功。
56
+ - 全部金额字段单位为元。
@@ -0,0 +1,51 @@
1
+ # 费用中心(报销 / 借款 / 预付核销)
2
+
3
+ ## 何时使用
4
+
5
+ 三个查询共用 `SumAmountByAiVo`,**body 可为空**(默认当前登录人)。每个意图只选一个接口,不要自动切换近义接口。
6
+
7
+ | 用户意图 | operation |
8
+ |---|---|
9
+ | 「我/某人某时间段报销了多少」「这笔报销流程报销了多少钱」 | `fna.expense.reimbursed.sum` |
10
+ | 「还有多少借款没还」「各状态借款金额/笔数」 | `fna.expense.loan.sum` |
11
+ | 「预付核销进度」「未到账多少」 | `fna.expense.prepay.writeoff.sum` |
12
+
13
+ ## 输入要点
14
+
15
+ - `employeeId`/`workflowId`/`requestId` 都是数字 ID(借款接口只认数字,字符串会静默返回空 data);用户给姓名/流程名时先请其提供数字 ID。
16
+ - `startDate`/`endDate` 格式 `YYYY-MM-DD`,必须成对提供;**日期口径不同**:报销按明细费用日期、借款按流程创建时间、预付核销按核销记录创建时间。
17
+ - 人员口径差异:报销按明细归属人、预付核销按预付单创建人匹配。
18
+
19
+ ## 命令
20
+
21
+ Windows PowerShell:
22
+
23
+ ```powershell
24
+ weaver-work-cli --json fna run fna.expense.reimbursed.sum --input-json '{"employeeId":12345,"startDate":"2026-01-01","endDate":"2026-08-31"}'
25
+ weaver-work-cli --json fna run fna.expense.loan.sum --input-json '{"requestId":1304980982180151297}'
26
+ weaver-work-cli --json fna run fna.expense.prepay.writeoff.sum --input-json '{}'
27
+ ```
28
+
29
+ macOS/Linux(bash/zsh):
30
+
31
+ ```bash
32
+ weaver-work-cli --json fna run fna.expense.reimbursed.sum --input-json '{"employeeId":12345,"startDate":"2026-01-01","endDate":"2026-08-31"}'
33
+ weaver-work-cli --json fna run fna.expense.loan.sum --input-json '{"requestId":1304980982180151297}'
34
+ weaver-work-cli --json fna run fna.expense.prepay.writeoff.sum --input-json '{}'
35
+ ```
36
+
37
+ ## 输出处理
38
+
39
+ - 报销:`data.amount`(元);无数据返回 `0.0`。
40
+ - 借款:`data.segments` 为 `{dhk,hkz,yhk,jk}` 四段 `{amount,count,costType}`;`segments:null` 表示暂无借款记录;以 key 判断状态,不依赖 costType 文案(可能是文案或状态码)。
41
+ - 预付核销:`paymentAmount`/`writeOffing`/`writeOffed`/`noArrivedAmount`(未到账 = 预付 − 已到账 − 已核销),无数据兜底 0。
42
+
43
+ ## 注意(口径与缺陷)
44
+
45
+ - **借款查询实现缺陷**:`getSumLoanAmountByAi` 只统计首条借款记录(for 循环内 return),对外汇报注明「可能仅反映首条记录口径,待开发修复」,不作权威结论。
46
+ - **借款瞬时空响应**:首次/冷启动偶发 `code:200` 但整个 `data` 缺失,CLI 已自动重试最多 2 次;若仍为空按「暂无借款记录」处理并提示可稍后重试,不要误判为确定无记录。
47
+ - 报销无数据是 `0.0`、借款无数据是 `null`、预付核销兜底 `0`,三者空值语义不同。
48
+
49
+ ## 失败处理
50
+
51
+ `code!=200`/`success!=true` → 停止并向用户说明查询失败,建议稍后重试或联系管理员;不自行拼装其它接口路径重试。
@@ -0,0 +1,57 @@
1
+ # 发票核销(财务/管理员)
2
+
3
+ ## 何时使用
4
+
5
+ 财务/管理员视角的发票核销:看金额分布 → 金额 tab 汇总;看明细/谁还有多少没核销 → 核销列表;对未到票的预付流程发催票 → **写操作**,先 prepare 再 apply。`writeOffList`/`callTicket` 需财务/管理员登录,`writeOffPageTab` 公开权限(仍需登录态定租户)。
6
+
7
+ | 用户意图 | operation | 风险 |
8
+ |---|---|---|
9
+ | 「发票核销还有多少没核销」「核销中/部分核销多少」 | `fna.invoice.writeoff.summary` | read |
10
+ | 「列出所有发票核销单」「谁还有多少没核销」 | `fna.invoice.writeoff.list` | read |
11
+ | 「催一下这几笔预付的票」「批量催票」 | `fna.invoice.writeoff.callticket.prepare` / `.apply` | **write** |
12
+
13
+ ## 输入要点
14
+
15
+ - `fna.invoice.writeoff.list` 必填 `current`/`pageSize`;筛选 `invoiceStatus`:`unWritten`(未核销)/`unarrivedTicket`(未到票)/`dealing`(核销中)/`callTicket`(催票)。
16
+ - `menuCode`/`permissionSetCode` 示例 `inv_write_off_financial` / `inv_write_off_financial.default`,需与环境核对。
17
+ - 常用金额列(rows 内):`totalAmount`(总金额)/`arrivedAmount`(已核销)/`verificationAmount`(核销中)/`notArrivedAmount`(未核销),均为格式化字符串;`requestId` = `id`(催票回传用)。
18
+ - `total=0`、rows 为空 → 提示「暂无发票核销记录」。
19
+
20
+ ## 数据流:催票(写操作)
21
+
22
+ 1. `fna.invoice.writeoff.list`(可用 `invoiceStatus=unarrivedTicket` 或 `callTicket` 过滤)取目标预付流程行。
23
+ 2. 提取行的 `requestId` 组装 `requestids` 数组(1~200 条,必须来自列表真实返回,禁止凭空构造)。
24
+ 3. `fna.invoice.writeoff.callticket.prepare` 入参 `{"requestids":[...]}` → 返回预览(条数 + 前 20 个 ID)+ continuation:**向用户展示目标流程(建议连同列表行的申请名称/未核销金额一起展示),取得明确确认**。
25
+ 4. 确认后 `fna.invoice.writeoff.callticket.apply` 入参 `requestids` + `confirm:true` + `continuation`。
26
+
27
+ ## 命令
28
+
29
+ Windows PowerShell:
30
+
31
+ ```powershell
32
+ weaver-work-cli --json fna run fna.invoice.writeoff.summary --input-json '{"invoiceStatus":"unWritten","menuCode":"inv_write_off_financial","permissionSetCode":"inv_write_off_financial.default"}'
33
+ weaver-work-cli --json fna run fna.invoice.writeoff.list --input-json '{"current":1,"pageSize":20,"invoiceStatus":"unarrivedTicket"}'
34
+ weaver-work-cli --json fna run fna.invoice.writeoff.callticket.prepare --input-json '{"requestids":["1305356190451253248","1304611911414513664"]}'
35
+ weaver-work-cli --json fna run fna.invoice.writeoff.callticket.apply --input-json '{"requestids":["1305356190451253248","1304611911414513664"],"confirm":true,"continuation":"PASTE_TOKEN_FROM_PREPARE"}'
36
+ ```
37
+
38
+ macOS/Linux(bash/zsh):
39
+
40
+ ```bash
41
+ weaver-work-cli --json fna run fna.invoice.writeoff.summary --input-json '{"invoiceStatus":"unWritten","menuCode":"inv_write_off_financial","permissionSetCode":"inv_write_off_financial.default"}'
42
+ weaver-work-cli --json fna run fna.invoice.writeoff.list --input-json '{"current":1,"pageSize":20,"invoiceStatus":"unarrivedTicket"}'
43
+ weaver-work-cli --json fna run fna.invoice.writeoff.callticket.prepare --input-json '{"requestids":["1305356190451253248","1304611911414513664"]}'
44
+ weaver-work-cli --json fna run fna.invoice.writeoff.callticket.apply --input-json '{"requestids":["1305356190451253248","1304611911414513664"],"confirm":true,"continuation":"PASTE_TOKEN_FROM_PREPARE"}'
45
+ ```
46
+
47
+ ## 写操作失败决策树
48
+
49
+ - `confirmation.required` → 用户尚未确认:展示 prepare 预览后带 `confirm:true` 重新 apply。
50
+ - `target_changed` / `continuation_expired` / `context_mismatch` → 与 prepare 快照不一致或已过期:重新 prepare。
51
+ - `partial.write_uncertain` / `network.*` → **立即停止,禁止自动重试**;用 `fna.invoice.writeoff.list`(`invoiceStatus=callTicket`)回查是否已催票,向用户说明。
52
+ - `business_error` → 停止并按 msg 修正(如 requestids 含非法流程)。
53
+
54
+ ## 注意
55
+
56
+ - callTicket 只发送催票通知,不改变核销金额状态;核销明细等按钮能力未实现(见 schema `withheldOperations`)。
57
+ - 翻页时保持 `invoiceStatus`/`menuCode`/`permissionSetCode` 等筛选条件。
@@ -0,0 +1,59 @@
1
+ # 借款管理(管理员)
2
+
3
+ ## 何时使用
4
+
5
+ 管理员视角的借款大盘:看全公司待还/还款中汇总 → 首页汇总;看明细/谁还欠多少 → 首页列表;向借款人发还款提醒 → **写操作**,先 prepare 再 apply。借款模块需要管理员身份登录。
6
+
7
+ | 用户意图 | operation | 风险 |
8
+ |---|---|---|
9
+ | 「全公司待还款/还款中多少钱」「借款大盘」 | `fna.loan.main.page` | read |
10
+ | 「列出所有借款单」「谁还欠多少」 | `fna.loan.main.list` | read |
11
+ | 「提醒某人/批量提醒还款」 | `fna.loan.remind.repay.prepare` / `.apply` | **write** |
12
+
13
+ ## 输入要点
14
+
15
+ - `fna.loan.main.list` 必填:`current`/`pageSize`(正整数)+ `menuCode`/`permissionSetCode`。借款菜单示例 `fesx_fna_borrowingManagement` / `fesx_fna_borrowingManagement.default`,**实际值需与用户环境借款管理菜单一致**,不确定先向用户核对。
16
+ - 分页:`current` 递增直到 `hasMore=false`;页面默认分页大小 `pageSizeFromPageUid`(如 20)。
17
+ - 金额两套:`rows`(displayData)金额已格式化、`createTime` 已转字符串,**展示与回传都用 rows**;不要用原始精度列。
18
+ - 若 `total=0` 且 rows 为空 → 提示「暂无借款记录」。
19
+
20
+ ## 数据流:提醒还款(写操作)
21
+
22
+ 1. `fna.loan.main.list` 取目标借款单 → `rows` 中选中行(含 `id`/`workflowId`/`jkrPersonName`/`dhkAmount`)。
23
+ 2. `fna.loan.remind.repay.prepare`,入参 `data` = 选中 displayData 行数组(1~200 条,原样回传不裁剪)。
24
+ 3. prepare 返回 `{status:'AWAITING_CONFIRMATION', preview:{count,borrowers,totalDhkAmount,ids}, continuation}`:**向用户展示条数、借款人、剩余待还合计,取得明确确认**。
25
+ 4. 用户确认后 `fna.loan.remind.repay.apply`,入参 `data`(与 prepare 相同的行)+ `confirm:true` + `continuation`(10 分钟内有效)。
26
+
27
+ ## 命令
28
+
29
+ Windows PowerShell:
30
+
31
+ ```powershell
32
+ weaver-work-cli --json fna run fna.loan.main.page --input-json '{"menuCode":"fesx_fna_borrowingManagement","permissionSetCode":"fesx_fna_borrowingManagement.default"}'
33
+ weaver-work-cli --json fna run fna.loan.main.list --input-json '{"current":1,"pageSize":20,"menuCode":"fesx_fna_borrowingManagement","permissionSetCode":"fesx_fna_borrowingManagement.default"}'
34
+ weaver-work-cli --json fna run fna.loan.remind.repay.prepare --input 'C:\path\to\loan-rows.json'
35
+ weaver-work-cli --json fna run fna.loan.remind.repay.apply --input 'C:\path\to\loan-apply.json'
36
+ ```
37
+
38
+ macOS/Linux(bash/zsh):
39
+
40
+ ```bash
41
+ weaver-work-cli --json fna run fna.loan.main.page --input-json '{"menuCode":"fesx_fna_borrowingManagement","permissionSetCode":"fesx_fna_borrowingManagement.default"}'
42
+ weaver-work-cli --json fna run fna.loan.main.list --input-json '{"current":1,"pageSize":20,"menuCode":"fesx_fna_borrowingManagement","permissionSetCode":"fesx_fna_borrowingManagement.default"}'
43
+ weaver-work-cli --json fna run fna.loan.remind.repay.prepare --input /tmp/loan-rows.json
44
+ weaver-work-cli --json fna run fna.loan.remind.repay.apply --input /tmp/loan-apply.json
45
+ ```
46
+
47
+ 复杂多行 JSON(displayData 行对象字段多)建议写入 UTF-8 JSON 文件后走 `--input <path>`。
48
+
49
+ ## 写操作失败决策树
50
+
51
+ - `confirmation.required`(exit 10)→ 用户尚未明确确认:先向用户展示 prepare 预览,确认后带 `confirm:true` 重新 apply。
52
+ - `target_changed` / `continuation_expired` / `context_mismatch` → 目标或会话与 prepare 不一致:重新执行 prepare 后再 apply。
53
+ - `partial.write_uncertain` / `network.*`(请求已发出结果不确定)→ **立即停止,禁止自动重试**;用 `fna.loan.main.list` 回查该借款人是否收到提醒,向用户说明并让其决定是否重新发起。
54
+ - `business_error`(如「请选择提醒还款记录!」)→ 停止并按 msg 提示修正入参。
55
+
56
+ ## 注意
57
+
58
+ - remindRepay 只发送提醒,不改变借款/还款金额;「确认已还 confirmRepay」等按钮能力未实现(见 schema `withheldOperations`),不得编造接口。
59
+ - prepare/apply 之间不得切换租户或账号;行集合必须与 prepare 快照一致。