weaver-work-cli 0.1.1 → 0.1.4

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 (351) hide show
  1. package/README.md +187 -76
  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 +160 -55
  7. package/dist/internal/e10/auth/crypto.js +7 -22
  8. package/dist/internal/e10/auth/session.js +1 -1
  9. package/dist/internal/e10/auth/xiaoe.js +268 -0
  10. package/dist/internal/e10/context.js +16 -2
  11. package/dist/internal/e10/index.js +1 -0
  12. package/dist/internal/e10/request-runtime.js +344 -0
  13. package/dist/internal/skills/install.js +48 -6
  14. package/dist/internal/skills/reader.js +27 -0
  15. package/dist/shortcuts/archive/continuation.js +70 -0
  16. package/dist/shortcuts/archive/errors.js +53 -0
  17. package/dist/shortcuts/archive/host.js +197 -0
  18. package/dist/shortcuts/archive/index.js +363 -0
  19. package/dist/shortcuts/archive/manifest.js +45 -0
  20. package/dist/shortcuts/archive/operations/archive-info.js +55 -0
  21. package/dist/shortcuts/archive/operations/borrow-car.js +146 -0
  22. package/dist/shortcuts/archive/operations/borrow-list.js +200 -0
  23. package/dist/shortcuts/archive/operations/confirm.js +46 -0
  24. package/dist/shortcuts/archive/operations/download.js +238 -0
  25. package/dist/shortcuts/archive/operations/flow-url.js +240 -0
  26. package/dist/shortcuts/archive/operations/fonds.js +95 -0
  27. package/dist/shortcuts/archive/operations/getPageUrl.js +137 -0
  28. package/dist/shortcuts/archive/operations/registry.js +43 -0
  29. package/dist/shortcuts/archive/operations/search.js +88 -0
  30. package/dist/shortcuts/archive/operations/shared.js +120 -0
  31. package/dist/shortcuts/archive/operations/types.js +23 -0
  32. package/dist/shortcuts/archive/operations/upload.js +182 -0
  33. package/dist/shortcuts/archive/operations.js +13 -0
  34. package/dist/shortcuts/archive/render/search-format.js +276 -0
  35. package/dist/shortcuts/archive/render/search-view.js +125 -0
  36. package/dist/shortcuts/asset/continuation.js +70 -0
  37. package/dist/shortcuts/asset/errors.js +67 -0
  38. package/dist/shortcuts/asset/host.js +438 -0
  39. package/dist/shortcuts/asset/index.js +255 -0
  40. package/dist/shortcuts/asset/manifest.js +471 -0
  41. package/dist/shortcuts/asset/operations/query.js +249 -0
  42. package/dist/shortcuts/asset/operations/registry.js +85 -0
  43. package/dist/shortcuts/asset/operations/shared.js +100 -0
  44. package/dist/shortcuts/asset/operations/type-cache.js +49 -0
  45. package/dist/shortcuts/asset/operations/types.js +1 -0
  46. package/dist/shortcuts/asset/operations/viewlink.js +117 -0
  47. package/dist/shortcuts/asset/operations/write.js +435 -0
  48. package/dist/shortcuts/asset/operations.js +9 -0
  49. package/dist/shortcuts/calendar/continuation.js +70 -0
  50. package/dist/shortcuts/calendar/errors.js +53 -0
  51. package/dist/shortcuts/calendar/host.js +148 -0
  52. package/dist/shortcuts/calendar/index.js +125 -0
  53. package/dist/shortcuts/calendar/manifest.js +26 -0
  54. package/dist/shortcuts/calendar/operations/read.js +259 -0
  55. package/dist/shortcuts/calendar/operations/registry.js +31 -0
  56. package/dist/shortcuts/calendar/operations/shared.js +132 -0
  57. package/dist/shortcuts/calendar/operations/types.js +25 -0
  58. package/dist/shortcuts/calendar/operations/write.js +439 -0
  59. package/dist/shortcuts/calendar/operations.js +8 -0
  60. package/dist/shortcuts/ehr/continuation.js +70 -0
  61. package/dist/shortcuts/ehr/errors.js +53 -0
  62. package/dist/shortcuts/ehr/host.js +213 -0
  63. package/dist/shortcuts/ehr/index.js +205 -0
  64. package/dist/shortcuts/ehr/manifest.js +47 -0
  65. package/dist/shortcuts/ehr/operations/attend-read.js +373 -0
  66. package/dist/shortcuts/ehr/operations/attend-write.js +514 -0
  67. package/dist/shortcuts/ehr/operations/hr-contact.js +363 -0
  68. package/dist/shortcuts/ehr/operations/hr-ds.js +298 -0
  69. package/dist/shortcuts/ehr/operations/hr-report.js +386 -0
  70. package/dist/shortcuts/ehr/operations/recruit-write.js +1629 -0
  71. package/dist/shortcuts/ehr/operations/recruit.js +803 -0
  72. package/dist/shortcuts/ehr/operations/registry.js +43 -0
  73. package/dist/shortcuts/ehr/operations/salary.js +319 -0
  74. package/dist/shortcuts/ehr/operations/shared.js +246 -0
  75. package/dist/shortcuts/ehr/operations/types.js +25 -0
  76. package/dist/shortcuts/ehr/operations.js +25 -0
  77. package/dist/shortcuts/esb/continuation.js +70 -0
  78. package/dist/shortcuts/esb/errors.js +65 -0
  79. package/dist/shortcuts/esb/host.js +187 -0
  80. package/dist/shortcuts/esb/index.js +112 -0
  81. package/dist/shortcuts/esb/manifest.js +91 -0
  82. package/dist/shortcuts/esb/operations/input-format.js +31 -0
  83. package/dist/shortcuts/esb/operations/registry.js +48 -0
  84. package/dist/shortcuts/esb/operations/shared.js +152 -0
  85. package/dist/shortcuts/esb/operations/trigger.js +76 -0
  86. package/dist/shortcuts/esb/operations/types.js +21 -0
  87. package/dist/shortcuts/esb/operations.js +15 -0
  88. package/dist/shortcuts/fna/continuation.js +70 -0
  89. package/dist/shortcuts/fna/errors.js +59 -0
  90. package/dist/shortcuts/fna/host.js +146 -0
  91. package/dist/shortcuts/fna/index.js +111 -0
  92. package/dist/shortcuts/fna/manifest.js +41 -0
  93. package/dist/shortcuts/fna/operations/budget.js +124 -0
  94. package/dist/shortcuts/fna/operations/expense-center.js +148 -0
  95. package/dist/shortcuts/fna/operations/invoice-writeoff.js +212 -0
  96. package/dist/shortcuts/fna/operations/loan.js +195 -0
  97. package/dist/shortcuts/fna/operations/registry.js +35 -0
  98. package/dist/shortcuts/fna/operations/shared.js +210 -0
  99. package/dist/shortcuts/fna/operations/types.js +25 -0
  100. package/dist/shortcuts/fna/operations.js +19 -0
  101. package/dist/shortcuts/hrm/errors.js +38 -0
  102. package/dist/shortcuts/hrm/host.js +156 -0
  103. package/dist/shortcuts/hrm/index.js +111 -0
  104. package/dist/shortcuts/hrm/manifest.js +32 -0
  105. package/dist/shortcuts/hrm/operations/employee.js +338 -0
  106. package/dist/shortcuts/hrm/operations/org.js +110 -0
  107. package/dist/shortcuts/hrm/operations/position.js +176 -0
  108. package/dist/shortcuts/hrm/operations/registry.js +33 -0
  109. package/dist/shortcuts/hrm/operations/shared.js +143 -0
  110. package/dist/shortcuts/hrm/operations/types.js +23 -0
  111. package/dist/shortcuts/hrm/operations.js +19 -0
  112. package/dist/shortcuts/index.js +20 -0
  113. package/dist/shortcuts/invoice/host.js +99 -94
  114. package/dist/shortcuts/invoice/index.js +65 -61
  115. package/dist/shortcuts/invoice/manifest.js +222 -14
  116. package/dist/shortcuts/invoice/operations/browse-field.js +17 -0
  117. package/dist/shortcuts/invoice/operations/issuing.js +198 -0
  118. package/dist/shortcuts/invoice/operations/ocr-preview.js +6 -3
  119. package/dist/shortcuts/invoice/operations/registry.js +17 -0
  120. package/dist/shortcuts/invoice/operations/reim.js +401 -0
  121. package/dist/shortcuts/invoice/operations/shared.js +271 -6
  122. package/dist/shortcuts/invoice/operations/validate-preview.js +1 -1
  123. package/dist/shortcuts/jiuchuanhui/cache.js +441 -0
  124. package/dist/shortcuts/jiuchuanhui/continuation.js +70 -0
  125. package/dist/shortcuts/jiuchuanhui/errors.js +59 -0
  126. package/dist/shortcuts/jiuchuanhui/host.js +159 -0
  127. package/dist/shortcuts/jiuchuanhui/index.js +109 -0
  128. package/dist/shortcuts/jiuchuanhui/manifest.js +469 -0
  129. package/dist/shortcuts/jiuchuanhui/operations/datajson.js +214 -0
  130. package/dist/shortcuts/jiuchuanhui/operations/esb.js +157 -0
  131. package/dist/shortcuts/jiuchuanhui/operations/generic.js +146 -0
  132. package/dist/shortcuts/jiuchuanhui/operations/registry.js +133 -0
  133. package/dist/shortcuts/jiuchuanhui/operations/shared.js +158 -0
  134. package/dist/shortcuts/jiuchuanhui/operations/types.js +1 -0
  135. package/dist/shortcuts/jiuchuanhui/operations.js +8 -0
  136. package/dist/shortcuts/mail/continuation.js +70 -0
  137. package/dist/shortcuts/mail/errors.js +53 -0
  138. package/dist/shortcuts/mail/host.js +182 -0
  139. package/dist/shortcuts/mail/index.js +519 -0
  140. package/dist/shortcuts/mail/manifest.js +38 -0
  141. package/dist/shortcuts/mail/operations/mail-blacklist.js +79 -0
  142. package/dist/shortcuts/mail/operations/mail-contacts.js +195 -0
  143. package/dist/shortcuts/mail/operations/mail-manage.js +335 -0
  144. package/dist/shortcuts/mail/operations/mail-read.js +508 -0
  145. package/dist/shortcuts/mail/operations/mail-send.js +474 -0
  146. package/dist/shortcuts/mail/operations/mail-sign.js +203 -0
  147. package/dist/shortcuts/mail/operations/mail-template.js +170 -0
  148. package/dist/shortcuts/mail/operations/registry.js +41 -0
  149. package/dist/shortcuts/mail/operations/shared.js +64 -0
  150. package/dist/shortcuts/mail/operations/types.js +27 -0
  151. package/dist/shortcuts/mail/operations.js +19 -0
  152. package/dist/shortcuts/plan/continuation.js +70 -0
  153. package/dist/shortcuts/plan/errors.js +70 -0
  154. package/dist/shortcuts/plan/host.js +180 -0
  155. package/dist/shortcuts/plan/index.js +150 -0
  156. package/dist/shortcuts/plan/manifest.js +53 -0
  157. package/dist/shortcuts/plan/operations/link.js +256 -0
  158. package/dist/shortcuts/plan/operations/read.js +259 -0
  159. package/dist/shortcuts/plan/operations/registry.js +33 -0
  160. package/dist/shortcuts/plan/operations/shared.js +246 -0
  161. package/dist/shortcuts/plan/operations/types.js +49 -0
  162. package/dist/shortcuts/plan/operations/version.js +49 -0
  163. package/dist/shortcuts/plan/operations/write.js +710 -0
  164. package/dist/shortcuts/plan/operations.js +8 -0
  165. package/docs/SKILL.md +11 -7
  166. package/docs/_catalog.md +23 -5
  167. package/docs/agent-invoice.md +31 -10
  168. package/docs/agent-skill-install.md +211 -0
  169. package/docs/calendar.md +87 -0
  170. package/docs/e10-auth.md +28 -9
  171. package/docs/ehr.md +186 -0
  172. package/docs/esb.md +64 -0
  173. package/docs/fna.md +72 -0
  174. package/docs/hrm.md +89 -0
  175. package/docs/invoice.md +66 -20
  176. package/docs/jiuchuanhui.md +131 -0
  177. package/docs/operation-manual.md +443 -0
  178. package/docs/plan.md +82 -0
  179. package/docs/wenshuding.md +129 -0
  180. package/docs/ziguanjia.md +89 -0
  181. package/package.json +4 -4
  182. package/scripts/package-skill.mjs +127 -34
  183. package/scripts/postbuild.mjs +13 -0
  184. package/skill-template/business-info.json +13 -2
  185. package/skill-template/domains/calendar.md +15 -0
  186. package/skill-template/domains/esb.md +13 -0
  187. package/skill-template/domains/hrm.md +16 -0
  188. package/skill-template/domains/jiuchuanhui.md +23 -0
  189. package/skill-template/domains/jucailin.md +22 -0
  190. package/skill-template/domains/mail.md +21 -0
  191. package/skill-template/domains/plan.md +17 -0
  192. package/skill-template/domains/qiyecheng.md +17 -0
  193. package/skill-template/domains/shared.md +9 -3
  194. package/skill-template/domains/skill-maker.md +10 -0
  195. package/skill-template/domains/wenshuding.md +22 -0
  196. package/skill-template/domains/{invoice.md → yepiaotong.md} +4 -0
  197. package/skill-template/domains/ziguanjia.md +21 -0
  198. package/skill-template/master-skill-template.md +12 -6
  199. package/skill-template/skill-template.md +40 -9
  200. package/skills/weaver-e10-calendar/SKILL.md +101 -0
  201. package/skills/weaver-e10-calendar/product.json +8 -0
  202. package/skills/weaver-e10-calendar/references/calendar-app-check.md +65 -0
  203. package/skills/weaver-e10-calendar/references/calendar-dict.md +55 -0
  204. package/skills/weaver-e10-calendar/references/calendar-query.md +70 -0
  205. package/skills/weaver-e10-calendar/references/calendar-write.md +97 -0
  206. package/skills/weaver-e10-calendar/references/source-manifest.json +54 -0
  207. package/skills/weaver-e10-esb/SKILL.md +102 -0
  208. package/skills/weaver-e10-esb/product.json +8 -0
  209. package/skills/weaver-e10-esb/references/input-format.md +52 -0
  210. package/skills/weaver-e10-esb/references/source-manifest.json +242 -0
  211. package/skills/weaver-e10-esb/references/trigger.md +99 -0
  212. package/skills/weaver-e10-hrm/SKILL.md +87 -0
  213. package/skills/weaver-e10-hrm/product.json +8 -0
  214. package/skills/weaver-e10-hrm/references/employee.md +109 -0
  215. package/skills/weaver-e10-hrm/references/org.md +95 -0
  216. package/skills/weaver-e10-hrm/references/position.md +95 -0
  217. package/skills/weaver-e10-hrm/references/source-manifest.json +121 -0
  218. package/skills/weaver-e10-jiuchuanhui/SKILL.md +174 -0
  219. package/skills/weaver-e10-jiuchuanhui/product.json +8 -0
  220. package/skills/weaver-e10-jiuchuanhui/references/cache.md +110 -0
  221. package/skills/weaver-e10-jiuchuanhui/references/clue.md +61 -0
  222. package/skills/weaver-e10-jiuchuanhui/references/contact-plan.md +56 -0
  223. package/skills/weaver-e10-jiuchuanhui/references/contact-records.md +48 -0
  224. package/skills/weaver-e10-jiuchuanhui/references/contact.md +56 -0
  225. package/skills/weaver-e10-jiuchuanhui/references/customer.md +69 -0
  226. package/skills/weaver-e10-jiuchuanhui/references/disabled-capabilities.md +24 -0
  227. package/skills/weaver-e10-jiuchuanhui/references/discovery-config.md +60 -0
  228. package/skills/weaver-e10-jiuchuanhui/references/general-helpers.md +59 -0
  229. package/skills/weaver-e10-jiuchuanhui/references/jiuchuanhui-entry.md +60 -0
  230. package/skills/weaver-e10-jiuchuanhui/references/sale.md +72 -0
  231. package/skills/weaver-e10-jiuchuanhui/references/source-manifest.json +2632 -0
  232. package/skills/weaver-e10-jucailin/SKILL.md +101 -0
  233. package/skills/weaver-e10-jucailin/product.json +8 -0
  234. package/skills/weaver-e10-jucailin/references/attend-read.md +73 -0
  235. package/skills/weaver-e10-jucailin/references/attend-write.md +82 -0
  236. package/skills/weaver-e10-jucailin/references/hr-contact.md +92 -0
  237. package/skills/weaver-e10-jucailin/references/hr-datasource.md +104 -0
  238. package/skills/weaver-e10-jucailin/references/hr-report.md +76 -0
  239. package/skills/weaver-e10-jucailin/references/recruit-read.md +76 -0
  240. package/skills/weaver-e10-jucailin/references/recruit-write.md +70 -0
  241. package/skills/weaver-e10-jucailin/references/safety-boundaries.md +35 -0
  242. package/skills/weaver-e10-jucailin/references/salary.md +110 -0
  243. package/skills/weaver-e10-jucailin/references/source-manifest.json +152 -0
  244. package/skills/weaver-e10-mail/SKILL.md +151 -0
  245. package/skills/weaver-e10-mail/product.json +8 -0
  246. package/skills/weaver-e10-mail/references/mail-agent-entry.md +47 -0
  247. package/skills/weaver-e10-mail/references/mail-attachment.md +30 -0
  248. package/skills/weaver-e10-mail/references/mail-blacklist.md +27 -0
  249. package/skills/weaver-e10-mail/references/mail-contacts.md +33 -0
  250. package/skills/weaver-e10-mail/references/mail-manage.md +44 -0
  251. package/skills/weaver-e10-mail/references/mail-read.md +76 -0
  252. package/skills/weaver-e10-mail/references/mail-send.md +43 -0
  253. package/skills/weaver-e10-mail/references/mail-sign.md +33 -0
  254. package/skills/weaver-e10-mail/references/mail-template.md +31 -0
  255. package/skills/weaver-e10-mail/references/safety-boundaries.md +32 -0
  256. package/skills/weaver-e10-plan/SKILL.md +139 -0
  257. package/skills/weaver-e10-plan/product.json +8 -0
  258. package/skills/weaver-e10-plan/references/plan-collect-and-compose.md +123 -0
  259. package/skills/weaver-e10-plan/references/plan-overview-and-routing.md +138 -0
  260. package/skills/weaver-e10-plan/references/plan-report-query.md +154 -0
  261. package/skills/weaver-e10-plan/references/plan-report-remind.md +104 -0
  262. package/skills/weaver-e10-plan/references/plan-report-write.md +162 -0
  263. package/skills/weaver-e10-plan/references/source-manifest.json +858 -0
  264. package/skills/weaver-e10-qiyecheng/SKILL.md +118 -0
  265. package/skills/weaver-e10-qiyecheng/product.json +8 -0
  266. package/skills/weaver-e10-qiyecheng/references/budget.md +65 -0
  267. package/skills/weaver-e10-qiyecheng/references/catalog.md +56 -0
  268. package/skills/weaver-e10-qiyecheng/references/expense-center.md +51 -0
  269. package/skills/weaver-e10-qiyecheng/references/invoice-writeoff.md +57 -0
  270. package/skills/weaver-e10-qiyecheng/references/loan-management.md +59 -0
  271. package/skills/weaver-e10-qiyecheng/references/source-manifest.json +698 -0
  272. package/skills/weaver-e10-shared/SKILL.md +86 -0
  273. package/skills/weaver-e10-shared/references/e10-auth-and-session.md +127 -0
  274. package/skills/weaver-e10-shared/references/json-output-contract.md +120 -0
  275. package/skills/weaver-e10-shared/references/weaver-e10-installation.md +110 -0
  276. package/skills/weaver-e10-skill-maker/SKILL.md +77 -0
  277. package/skills/weaver-e10-skill-maker/product.json +8 -0
  278. package/skills/weaver-e10-skill-maker/references/business-skill-generation.md +124 -0
  279. package/skills/weaver-e10-skill-maker/references/detector-validation.md +101 -0
  280. package/skills/weaver-e10-skill-maker/references/module-cli-generation.md +230 -0
  281. package/skills/weaver-e10-skill-maker/references/post-generation-install.md +105 -0
  282. package/skills/weaver-e10-skill-maker/references/source-update-detection.md +261 -0
  283. package/skills/weaver-e10-skill-maker/references/weaver-skill-style.md +141 -0
  284. package/skills/weaver-e10-wenshuding/SKILL.md +157 -0
  285. package/skills/weaver-e10-wenshuding/product.json +8 -0
  286. package/skills/weaver-e10-wenshuding/references/archive-agent-entry.md +63 -0
  287. package/skills/weaver-e10-wenshuding/references/archive-borrow-car.md +52 -0
  288. package/skills/weaver-e10-wenshuding/references/archive-borrow-list.md +52 -0
  289. package/skills/weaver-e10-wenshuding/references/archive-disabled-capabilities.md +22 -0
  290. package/skills/weaver-e10-wenshuding/references/archive-download.md +48 -0
  291. package/skills/weaver-e10-wenshuding/references/archive-flow.md +46 -0
  292. package/skills/weaver-e10-wenshuding/references/archive-fonds.md +34 -0
  293. package/skills/weaver-e10-wenshuding/references/archive-info.md +33 -0
  294. package/skills/weaver-e10-wenshuding/references/archive-search.md +52 -0
  295. package/skills/weaver-e10-wenshuding/references/archive-upload.md +41 -0
  296. package/skills/weaver-e10-wenshuding/references/source-manifest.json +517 -0
  297. package/skills/weaver-e10-yepiaotong/SKILL.md +184 -0
  298. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-add.md +1 -1
  299. package/skills/weaver-e10-yepiaotong/references/invoice-agent-entry.md +47 -0
  300. package/skills/weaver-e10-yepiaotong/references/invoice-browse-field-data.md +204 -0
  301. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-delete.md +1 -1
  302. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-detail.md +13 -5
  303. package/skills/weaver-e10-yepiaotong/references/invoice-disabled-capabilities.md +28 -0
  304. package/skills/weaver-e10-yepiaotong/references/invoice-download.md +31 -0
  305. package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +45 -0
  306. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-file-upload.md +15 -4
  307. package/skills/weaver-e10-yepiaotong/references/invoice-import.md +45 -0
  308. package/skills/weaver-e10-yepiaotong/references/invoice-issuing-examples.md +120 -0
  309. package/skills/weaver-e10-yepiaotong/references/invoice-issuing-field-rules.md +161 -0
  310. package/skills/weaver-e10-yepiaotong/references/invoice-issuing.md +99 -0
  311. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-ocr-preview.md +14 -4
  312. package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +58 -0
  313. package/skills/weaver-e10-yepiaotong/references/invoice-red.md +261 -0
  314. package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +97 -0
  315. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-update.md +1 -1
  316. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-validation-preview.md +10 -3
  317. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +1340 -0
  318. package/skills/weaver-e10-yepiaotong/references/reim-examples.md +845 -0
  319. package/skills/weaver-e10-yepiaotong/references/reim-expense-subject-rules.md +94 -0
  320. package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +449 -0
  321. package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +266 -0
  322. package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +494 -0
  323. package/skills/weaver-e10-yepiaotong/references/source-manifest.json +1103 -0
  324. package/skills/weaver-e10-ziguanjia/SKILL.md +162 -0
  325. package/skills/weaver-e10-ziguanjia/product.json +8 -0
  326. package/skills/weaver-e10-ziguanjia/references/source-manifest.json +147 -0
  327. package/skills/weaver-e10-ziguanjia/references/ziguanjia-agent-entry.md +65 -0
  328. package/skills/weaver-e10-ziguanjia/references/ziguanjia-create.md +45 -0
  329. package/skills/weaver-e10-ziguanjia/references/ziguanjia-depre.md +48 -0
  330. package/skills/weaver-e10-ziguanjia/references/ziguanjia-disabled-capabilities.md +22 -0
  331. package/skills/weaver-e10-ziguanjia/references/ziguanjia-purch.md +57 -0
  332. package/skills/weaver-e10-ziguanjia/references/ziguanjia-query.md +62 -0
  333. package/skills/weaver-e10-ziguanjia/references/ziguanjia-repair.md +83 -0
  334. package/skills/weaver-e10-ziguanjia/references/ziguanjia-resolve.md +49 -0
  335. package/skills/weaver-e10-ziguanjia/references/ziguanjia-return.md +70 -0
  336. package/skills/weaver-e10-ziguanjia/references/ziguanjia-update.md +45 -0
  337. package/skills/weaver-e10-ziguanjia/references/ziguanjia-use.md +60 -0
  338. package/skills/weaver-e10-ziguanjia/references/ziguanjia-viewlink.md +81 -0
  339. package/skills/weaver-work-cli-invoice/SKILL.md +0 -103
  340. package/skills/weaver-work-cli-invoice/references/invoice-agent-entry.md +0 -38
  341. package/skills/weaver-work-cli-invoice/references/invoice-disabled-capabilities.md +0 -26
  342. package/skills/weaver-work-cli-invoice/references/invoice-download.md +0 -22
  343. package/skills/weaver-work-cli-invoice/references/invoice-enterprise-list.md +0 -35
  344. package/skills/weaver-work-cli-invoice/references/invoice-import.md +0 -28
  345. package/skills/weaver-work-cli-invoice/references/invoice-personal-list.md +0 -47
  346. package/skills/weaver-work-cli-shared/SKILL.md +0 -53
  347. package/skills/weaver-work-cli-shared/references/e10-auth-and-session.md +0 -83
  348. package/skills/weaver-work-cli-shared/references/json-output-contract.md +0 -61
  349. package/skills/weaver-work-cli-shared/references/weaver-work-cli-installation.md +0 -61
  350. /package/skills/{weaver-work-cli-shared → weaver-e10-shared}/references/high-risk-write.md +0 -0
  351. /package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/product.json +0 -0
@@ -0,0 +1,97 @@
1
+ # 创建 / 更新 / 删除日程(写操作)
2
+
3
+ ## 何时使用
4
+
5
+ 创建日程、修改日程、删除日程时使用。全部为**高风险写操作**,必须走 prepare→apply 确认协议。
6
+
7
+ ## operation 清单
8
+
9
+ | 用途 | prepare | apply |
10
+ | --- | --- | --- |
11
+ | 创建日程 | `calendar.create.prepare` | `calendar.create.apply` |
12
+ | 更新日程(全量覆盖) | `calendar.update.prepare` | `calendar.update.apply` |
13
+ | 删除日程(不可逆) | `calendar.delete.prepare` | `calendar.delete.apply` |
14
+
15
+ ## 写操作确认协议
16
+
17
+ 1. `prepare` 只归一化输入、补默认值、查当前数据(更新/删除时)、生成预览和 continuation,**不写入**。
18
+ 2. 向用户摘要目标、差异、风险和确认条件。
19
+ 3. 用户明确确认后调用 `apply`,必须带 `confirm=true` 和 prepare 返回的 continuation。
20
+ 4. `apply` 校验 session、目标 ID 和字段指纹未变化;网络中断返回 `partial/write_uncertain`,**禁止自动重试**,先做只读回查。
21
+
22
+ continuation 绑定当前登录环境与操作人,10 分钟有效。租户或账号变化触发 `context_mismatch`,字段与 prepare 快照不一致触发 `target_changed`,均需重新 `prepare`。
23
+
24
+ ## 创建日程
25
+
26
+ 必填 `agn_name`、`start_time`、`agn_type`、`priority`;`end_time` 缺省自动 `start_time + 1 小时`;`participants` 缺省自动带当前操作人。
27
+
28
+ 第一步 prepare(Windows PowerShell):
29
+
30
+ ```powershell
31
+ weaver-work-cli --json calendar run calendar.create.prepare --input-json '{"agn_name":"项目周会","start_time":"2026-08-15 09:00","agn_type":"1147539906291523593","priority":"1147539666016624641"}'
32
+ ```
33
+
34
+ macOS/Linux(bash/zsh):
35
+
36
+ ```bash
37
+ printf '%s\n' '{"agn_name":"项目周会","start_time":"2026-08-15 09:00","agn_type":"1147539906291523593","priority":"1147539666016624641"}' | weaver-work-cli --json calendar run calendar.create.prepare --input -
38
+ ```
39
+
40
+ 第二步 apply(把 `--input-json` 换成 prepare 返回的 continuation,并加 `confirm`):
41
+
42
+ ```powershell
43
+ weaver-work-cli --json calendar run calendar.create.apply --input-json '{"agn_name":"项目周会","start_time":"2026-08-15 09:00","agn_type":"1147539906291523593","priority":"1147539666016624641","confirm":true,"continuation":"<prepare返回的token>"}'
44
+ ```
45
+
46
+ ## 更新日程(全量覆盖)
47
+
48
+ `calendar.update.prepare` 先查当前详情再合并用户修改。只传 `id` 加要改的字段即可,未传字段保留原值。
49
+
50
+ 第一步 prepare:
51
+
52
+ ```powershell
53
+ weaver-work-cli --json calendar run calendar.update.prepare --input-json '{"id":"1304552516098269190","place":"B栋5楼会议室","start_time":"2026-08-15 14:00"}'
54
+ ```
55
+
56
+ 第二步 apply:
57
+
58
+ ```powershell
59
+ weaver-work-cli --json calendar run calendar.update.apply --input-json '{"id":"1304552516098269190","place":"B栋5楼会议室","start_time":"2026-08-15 14:00","confirm":true,"continuation":"<prepare返回的token>"}'
60
+ ```
61
+
62
+ ## 删除日程(不可逆)
63
+
64
+ 第一步 prepare:
65
+
66
+ ```powershell
67
+ weaver-work-cli --json calendar run calendar.delete.prepare --input-json '{"id":"1304552516098269190"}'
68
+ ```
69
+
70
+ 第二步 apply:
71
+
72
+ ```powershell
73
+ weaver-work-cli --json calendar run calendar.delete.apply --input-json '{"id":"1304552516098269190","confirm":true,"continuation":"<prepare返回的token>"}'
74
+ ```
75
+
76
+ ## 字段说明(创建/更新 mainTable)
77
+
78
+ - `agn_name`(String,必填):日程名称。
79
+ - `start_time`/`end_time`(Date,`yyyy-MM-dd HH:mm`):起止时间。
80
+ - `participants`(人员 ID 字符串,多个逗号分隔):参与人。
81
+ - `agn_type`/`priority`(选项 ID):日程类型/紧急程度,先查字典。
82
+ - Switch 字段 `all_day`/`remind`/`part_receipt`:数字 `0`/`1`,禁止布尔值。
83
+ - 提醒:`start_reminder`/`end_reminder`(`NOW`/`M5`/`M15`/`H1`/`D1`/`CUSTOM`)、`remind_type`(`system`/`message`/`email`)。
84
+ - 重复:`repeat_type`(`NONE`/`D1`/`W1`/`W2`/`M1`/`CUSTOM`)、`repeat_custom_type`(`D`/`W`/`M`)、`repeat_custom_cycle`、`repeat_week_unit`(`MO`~`SU`)、`repeat_month_unit`(`1`~`31`)、`repeat_end_type`(`0`/`1`/`2`)、`repeat_end_date`、`repeat_end_num`。
85
+
86
+ ## 注意
87
+
88
+ - 写操作请求带 `Content-Type: application/json; charset=utf-8`,中文字段(`agn_name`/`agn_desc`/`place`)按 UTF-8 写入,由 CLI 自动处理。
89
+ - 参与人姓名 → 人员 ID 交 weaver-e10-hrm 解析;类型/紧急程度名称 → 选项 ID 先查字典。
90
+ - 删除不可逆,务必先 prepare 展示日程详情并获得用户明确确认。
91
+
92
+ ## 失败处理
93
+
94
+ - `confirmation.required`:`apply` 未带 `confirm=true`。
95
+ - `continuation_invalid` / `continuation_expired` / `continuation_mismatch`:continuation 无效/过期/不匹配,重新 prepare。
96
+ - `target_changed`:字段与 prepare 快照不一致,重新 prepare。
97
+ - `partial/write_uncertain`:请求已发送但结果不确定,禁止自动重试,用 `calendar.get`/`calendar.list` 回查。
@@ -0,0 +1,54 @@
1
+ {
2
+ "schemaVersion": 2,
3
+ "module": "calendar",
4
+ "skill": "weaver-e10-calendar",
5
+ "generatedAt": "2026-09-08",
6
+ "sourceSet": {
7
+ "aggregateSha256": "2120af4a51488aa4c29bfe0efafb6017b5b4f46f92c8c5c35f2a9e96a2e60f28",
8
+ "sourceRoots": ["H:/日程SKILL包/weaver-e10-calendar"],
9
+ "detectionStrength": "strong"
10
+ },
11
+ "generatedTargets": {
12
+ "cli": ["src/shortcuts/calendar", "src/shortcuts/index.ts"],
13
+ "skill": ["skills/weaver-e10-calendar"],
14
+ "tests": ["test/business/calendar-*.test.ts"],
15
+ "docs": ["docs/calendar.md", "skill-template/domains/calendar.md"]
16
+ },
17
+ "sources": [
18
+ { "path": "SKILL.md", "role": "existing-skill", "size": 12914, "sha256": "57c18643d5db7ffc2d8051832d0687d61368d9ac7415a3bc8b48a3c6af99a9d2" },
19
+ { "path": "references/catalog.md", "role": "api-doc", "size": 3835, "sha256": "d00f89c65b1cda6c957368bede0644906a4bbd92e4b9aeaa99cb132c2d716032" },
20
+ { "path": "references/calendar-create-save.md", "role": "api-doc", "size": 9696, "sha256": "26a1009e631832a29a15035afa99675ca77b474bf04b28948ba00ce32821834f" },
21
+ { "path": "references/calendar-delete-delete.md", "role": "api-doc", "size": 4008, "sha256": "04deda7c3f0074d18695d1a46f75b40d70ffb073eab79fdbe7ce3ac33e9c6f31" },
22
+ { "path": "references/calendar-list-esb.md", "role": "api-doc", "size": 8535, "sha256": "5c2b022455afac7776a8915a0d7b25c05cfd32206bcc6506d05ea4607cd370be" },
23
+ { "path": "references/calendar-priority-query.md", "role": "api-doc", "size": 4801, "sha256": "2578d6731e497a45a6f1a67ef29b59afea3dfda422bef6eaaf0caad03970de01" },
24
+ { "path": "references/calendar-query-count.md", "role": "api-doc", "size": 2763, "sha256": "f898f0bb4a6a85a2015e94af48ddef53f416e597da524d41349f3fdafc149079" },
25
+ { "path": "references/calendar-query-get.md", "role": "api-doc", "size": 9354, "sha256": "7f9babaa26b23e77f9d8c4e4714318ef323c4ae817c0ba4e265004cdf6ad83ae" },
26
+ { "path": "references/calendar-type-query.md", "role": "api-doc", "size": 5404, "sha256": "4696c2e981e349e04a49840b47cb55e5440c391e3167efdda1a7e1b44c638858" },
27
+ { "path": "references/calendar-update-update.md", "role": "api-doc", "size": 8899, "sha256": "c3ca3c98be1779bfeda67d2e1041a703b9ea14bc525e0af6d6c835fee382bdc2" }
28
+ ],
29
+ "sourceChunks": [
30
+ { "id": "POST /api/ebuilder/form/formdata/v2/saveFormData/createAgenda", "sourcePath": "references/calendar-create-save.md", "anchor": "创建日程", "mapsToOperations": ["calendar.create.prepare", "calendar.create.apply"], "mapsToReferences": ["references/calendar-write.md"] },
31
+ { "id": "POST /api/ebuilder/form/formdata/v2/getFormDataByPk/queryAgenda", "sourcePath": "references/calendar-query-get.md", "anchor": "查询日程", "mapsToOperations": ["calendar.get"], "mapsToReferences": ["references/calendar-query.md"] },
32
+ { "id": "POST /api/ebuilder/form/formdata/v2/getFormDataCount/queryAgendaCount", "sourcePath": "references/calendar-query-count.md", "anchor": "查询日程总数", "mapsToOperations": ["calendar.count"], "mapsToReferences": ["references/calendar-query.md"] },
33
+ { "id": "POST /api/ebuilder/form/formdata/v2/updateFormData/updateAgenda", "sourcePath": "references/calendar-update-update.md", "anchor": "更新日程", "mapsToOperations": ["calendar.update.prepare", "calendar.update.apply"], "mapsToReferences": ["references/calendar-write.md"] },
34
+ { "id": "POST /api/ebuilder/form/formdata/v2/deleteFormData/deleteAgenda", "sourcePath": "references/calendar-delete-delete.md", "anchor": "删除日程", "mapsToOperations": ["calendar.delete.prepare", "calendar.delete.apply"], "mapsToReferences": ["references/calendar-write.md"] },
35
+ { "id": "POST /api/ebuilder/form/formdata/v2/getFormDataList/queryAgendaPriority", "sourcePath": "references/calendar-priority-query.md", "anchor": "查询日程紧急程度", "mapsToOperations": ["calendar.priority.list"], "mapsToReferences": ["references/calendar-dict.md"] },
36
+ { "id": "POST /api/ebuilder/form/formdata/v2/getFormDataList/queryAgendaType", "sourcePath": "references/calendar-type-query.md", "anchor": "查询日程类型", "mapsToOperations": ["calendar.type.list"], "mapsToReferences": ["references/calendar-dict.md"] },
37
+ { "id": "POST /api/esb/server/event/triggerActionFlow", "sourcePath": "references/calendar-list-esb.md", "anchor": "查询日程列表", "mapsToOperations": ["calendar.list"], "mapsToReferences": ["references/calendar-query.md"] }
38
+ ],
39
+ "operationImpact": {
40
+ "calendar.list": { "sourceChunkIds": ["POST /api/esb/server/event/triggerActionFlow"], "schemaFields": ["start_time", "end_time", "keywork", "page_no", "page_size"], "references": ["references/calendar-query.md"], "tests": ["test/business/calendar-*.test.ts"], "risk": "read", "requiresConfirmationChain": false },
41
+ "calendar.get": { "sourceChunkIds": ["POST /api/ebuilder/form/formdata/v2/getFormDataByPk/queryAgenda"], "schemaFields": ["id"], "references": ["references/calendar-query.md"], "tests": ["test/business/calendar-*.test.ts"], "risk": "read", "requiresConfirmationChain": false },
42
+ "calendar.count": { "sourceChunkIds": ["POST /api/ebuilder/form/formdata/v2/getFormDataCount/queryAgendaCount"], "schemaFields": [], "references": ["references/calendar-query.md"], "tests": ["test/business/calendar-*.test.ts"], "risk": "read", "requiresConfirmationChain": false },
43
+ "calendar.priority.list": { "sourceChunkIds": ["POST /api/ebuilder/form/formdata/v2/getFormDataList/queryAgendaPriority"], "schemaFields": ["priority_name", "pageNo", "pageSize"], "references": ["references/calendar-dict.md"], "tests": ["test/business/calendar-*.test.ts"], "risk": "read", "requiresConfirmationChain": false },
44
+ "calendar.type.list": { "sourceChunkIds": ["POST /api/ebuilder/form/formdata/v2/getFormDataList/queryAgendaType"], "schemaFields": ["type_name", "pageNo", "pageSize"], "references": ["references/calendar-dict.md"], "tests": ["test/business/calendar-*.test.ts"], "risk": "read", "requiresConfirmationChain": false },
45
+ "calendar.create.prepare": { "sourceChunkIds": ["POST /api/ebuilder/form/formdata/v2/saveFormData/createAgenda"], "schemaFields": ["agn_name", "start_time", "end_time", "participants", "agn_type", "priority"], "references": ["references/calendar-write.md"], "tests": ["test/business/calendar-*.test.ts"], "risk": "write-confirmed", "requiresConfirmationChain": true },
46
+ "calendar.update.prepare": { "sourceChunkIds": ["POST /api/ebuilder/form/formdata/v2/updateFormData/updateAgenda"], "schemaFields": ["id", "agn_name", "start_time", "end_time", "participants", "agn_type", "priority"], "references": ["references/calendar-write.md"], "tests": ["test/business/calendar-*.test.ts"], "risk": "write-confirmed", "requiresConfirmationChain": true },
47
+ "calendar.delete.prepare": { "sourceChunkIds": ["POST /api/ebuilder/form/formdata/v2/deleteFormData/deleteAgenda"], "schemaFields": ["id"], "references": ["references/calendar-write.md"], "tests": ["test/business/calendar-*.test.ts"], "risk": "write-confirmed", "requiresConfirmationChain": true }
48
+ },
49
+ "notes": [
50
+ "源资料为纯文档型 skill(无脚本),请求体构造依据各单接口文档的请求示例。",
51
+ "只记录源资料指纹与转换摘要,不保存 Cookie、Token 或大段源正文。",
52
+ "版本检测(calendar.app.check)与详情卡片页链接依赖 getAppIds/querySpAppVersionInfo/getObjsByTag 三步 GET,源资料未提供完整响应示例,字段解析按描述实现,需实测确认。"
53
+ ]
54
+ }
@@ -0,0 +1,102 @@
1
+ ---
2
+ name: weaver-e10-esb
3
+ display_name: 泛微E10 ESB动作流执行
4
+ display_name_en: Weaver E10 ESB ActionFlow Execution
5
+ description: "泛微E10 ESB 中心自定义触发动作流的取模板与执行能力:先用 esb.input-format 取入参模板,确认后用 esb.trigger.prepare / esb.trigger.apply 触发动作流,通过 weaver-work-cli esb 命令执行。"
6
+ description_zh: "泛微E10 ESB 中心自定义触发动作流:取入参模板,再用 prepare → apply 确认链触发动作流,通过 weaver-work-cli esb 命令执行。"
7
+ description_en: "Query custom ESB action flow input templates and trigger action flows through the weaver-work-cli esb 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 esb --help"
14
+ ---
15
+
16
+ # 泛微E10 ESB动作流执行
17
+
18
+ **CRITICAL — 开始前 MUST 先用 Read 工具读取 [`../weaver-e10-shared/SKILL.md`](../weaver-e10-shared/SKILL.md),其中包含安装、E10 认证、JSON 输出和高风险写入规则。若不存在则必须先执行 `weaver-work-cli skills install shared`,若 CLI 未安装则先执行 `npm install -g weaver-work-cli`,安装或读取失败时必须停止执行。**
19
+
20
+ 本技能覆盖 ESB 中心的**自定义触发类型动作流**:取入参模板(只读)与执行动作流(写操作,需确认)。按动作流名称解析 ID、唯一值对应的 `primary_key` SQL 查询都不在本技能范围内,见「不在范围」。
21
+
22
+ ## 命令入口
23
+
24
+ ```text
25
+ weaver-work-cli esb --help
26
+ weaver-work-cli esb schema
27
+ weaver-work-cli --json esb run <operation> --input-json '<json>'
28
+ ```
29
+
30
+ `schema` 是可用能力的唯一事实来源。禁止把本技能或源接口文档中的接口路径当成可直接调用的地址,也禁止把未出现在 `schema` 中的能力当作可用 operation。
31
+
32
+ ## 高优先级语义
33
+
34
+ - 「执行/触发/跑一下动作流」「按动作流 ID 触发」→ `esb.trigger.prepare` → 用户确认 → `esb.trigger.apply`
35
+ - 「这条动作流要传哪些参数」「给我入参格式」「触发前先看参数模板」→ `esb.input-format`
36
+ - 「用唯一值触发」→ `uniqueIndent`(值为该动作流在 `esb_application.primary_key` 中查得的唯一值),由调用方查好后传入
37
+ - 触发标识二选一:`esbFlowId`(普通触发)与 `uniqueIndent`(唯一值触发)不能同时传、也不能都缺
38
+
39
+ ## Reference 路由表
40
+
41
+ 命中任一条件时,执行下一步前读取对应 reference。
42
+
43
+ | 触发条件 | Reference |
44
+ | --- | --- |
45
+ | 取入参模板、确认主表/明细表字段、看哪些字段是可选 | [`references/input-format.md`](references/input-format.md) |
46
+ | 触发/执行动作流、写操作确认链、结果判读与失败处置 | [`references/trigger.md`](references/trigger.md) |
47
+
48
+ ## 处理链(触发动作流必须按此顺序)
49
+
50
+ 1. **确认目标动作流**:用户给的是动作流 ID。只给名称时向用户索取 ID(或 `primary_key`),不要猜测。
51
+ 2. **取模板(推荐)**:`esb.input-format` 取回 `customParams` 模板,按模板组装业务字段;模板中的 `#可选` 占位替换为真实值或删除。
52
+ 3. **prepare**:`esb.trigger.prepare` 做只读回查与请求体组装,返回 `requestPreview` 与 `continuation`(有效期 10 分钟)。此步不触发动作流。
53
+ 4. **向用户确认**:把目标动作流、触发人员、请求体摘要和副作用风险展示给用户,取得明确确认。
54
+ 5. **apply**:`esb.trigger.apply` 传 `continuation` 与 `confirm: true` 执行。`confirm` 必须显式为 `true`。
55
+ 6. **结果判读**:`resultCode=200` 为成功,按 `followUp` 与 `actionData` 处理页面动作、提醒与返回数据。
56
+
57
+ ## 写操作失败决策树
58
+
59
+ | 错误 subtype | 含义 | 处置 |
60
+ | --- | --- | --- |
61
+ | `confirm_required` | 未显式确认 | 先向用户确认,再传 `confirm: true` |
62
+ | `continuation_invalid` / `continuation_expired` / `continuation_mismatch` | continuation 无效或过期 | 重新执行 `esb.trigger.prepare` |
63
+ | `continuation_actor_changed` | 登录身份与签发时不一致 | 重新 prepare,不要复用旧 continuation |
64
+ | `parameter_invalid` | 参数错误(resultCode 100) | 对照 `customParams` 模板核对必填字段 |
65
+ | `flow_not_bound` / `flow_not_found` | 触发标识未绑定或动作流不存在 | 核对 ID,不重试 |
66
+ | `flow_disabled` / `flow_in_recycle_bin` | 动作流未启用或在回收站 | 先在 ESB 中心处理,不重试 |
67
+ | `permission_denied` / `tenant_permission_denied` / `tenant_missing` | 权限或租户问题 | 确认登录态与租户权限,不重试 |
68
+ | `license_required` | 需要对应 license | 联系管理员开通,不重试 |
69
+ | `throttled` | 触发频繁被限流(507/508/511) | 稍后重试,禁止高频轮询 |
70
+ | `flow_running` / `execute_timeout` | 正在执行或执行超时 | 稍后重试或查运行日志 |
71
+ | `write_uncertain` | 请求已发出但结果未知 | **立即停止**:不重试、不判定失败,先在 ESB 中心查看动作流运行日志 |
72
+
73
+ ## 安全边界
74
+
75
+ - **🔴 写操作必须走确认链**:`esb.trigger.apply` 需要 `confirm: true` 且 continuation 有效期 10 分钟,禁止跳过 prepare 直接触发。
76
+ - **🔴 `write_uncertain` 不重试**:触发请求发出后网络中断时结果不可判定,自动重试可能造成重复执行。
77
+ - **唯一值触发有歧义**:同一租户下存在相同唯一值的多条动作流时,系统只执行 `create_time` 最新的一条;需要精确控制时改用 `esbFlowId`。
78
+ - **认证由 CLI 托管**:禁止自行拼接 Cookie / ETEAMSID / User-Agent,禁止绕过 `weaver-work-cli` 直接调用 E10 接口。
79
+
80
+ ## 不在范围
81
+
82
+ - **按动作流名称解析 ID**:源资料未提供 ESB 中心动作流查询接口的路径与字段契约,`esb.actionflow.resolve` 未实现,请向用户索取动作流 ID。
83
+ - **唯一值 `primary_key` 的查询**:该步骤需要直接执行 `SELECT primary_key FROM esb_application WHERE id = ?`(`esb_setting` 库),CLI 没有数据库通道,`esb.unique-indent.resolve` 未实现;请由具备库权限的一方查好后通过 `uniqueIndent` 传入。
84
+ - 附件上传、OCR、文件解析类能力:本模块不涉及。
85
+
86
+ ## 平台兼容
87
+
88
+ 命令示例同时兼容 Windows 与 macOS/Linux。
89
+
90
+ Windows PowerShell:
91
+
92
+ ```powershell
93
+ weaver-work-cli --json esb run esb.input-format --input-json '{"applicationId":"900000000000000001"}'
94
+ ```
95
+
96
+ macOS/Linux(bash/zsh):
97
+
98
+ ```bash
99
+ weaver-work-cli --json esb run esb.input-format --input-json '{"applicationId":"900000000000000001"}'
100
+ ```
101
+
102
+ 复杂 JSON(例如带明细表的 `customParams`)先写入 UTF-8 文件再传 `--input <file>`。
@@ -0,0 +1,8 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "product": "weaver-work-cli",
4
+ "productVersion": "0.1.3",
5
+ "packageName": "weaver-work-cli",
6
+ "command": "weaver-work-cli",
7
+ "nodeEngine": ">=18"
8
+ }
@@ -0,0 +1,52 @@
1
+ # 获取动作流入参模板(esb.input-format)
2
+
3
+ ## 何时使用
4
+
5
+ - 用户问「这条动作流要传哪些参数」「给我动作流 XXX 的入参格式」「触发前先看看参数模板」。
6
+ - 触发动作流前需要确认 `customParams` 结构:主表字段名、`detail1` / `detail2` 明细表形状、哪些字段是可选占位。
7
+ - 该 operation 是只读查询,无业务副作用,不需要用户确认即可调用。
8
+
9
+ ## 输入要点
10
+
11
+ | 字段 | 必填 | 说明 |
12
+ | --- | --- | --- |
13
+ | `applicationId` | 是 | 动作流 ID(数字串,长整型按字符串传递)。与触发接口的 `esbFlowId` 指向同一动作流。 |
14
+
15
+ ## 命令
16
+
17
+ Windows PowerShell:
18
+
19
+ ```powershell
20
+ weaver-work-cli --json esb run esb.input-format --input-json '{"applicationId":"900000000000000001"}'
21
+ ```
22
+
23
+ macOS/Linux(bash/zsh):
24
+
25
+ ```bash
26
+ weaver-work-cli --json esb run esb.input-format --input-json '{"applicationId":"900000000000000001"}'
27
+ ```
28
+
29
+ ## 输出处理
30
+
31
+ `data` 字段:
32
+
33
+ - `esbFlowId`:触发时直接使用的动作流 ID;接口未返回时回落到传入的 `applicationId`。
34
+ - `moduleSource`:调用模块来源,接口未返回时为默认值 `AISKILL`;触发时可不传,仅二开场景传 `ecode`。
35
+ - `customParams`:入参模板本体。主表在 `customParams.mainTable`,明细表按平台约定嵌套在 `mainTable` 内的 `detail1` / `detail2` 数组中,字段名随动作流定义。
36
+ - `optionalFields`:模板中取值为 `#可选` 的字段路径列表(如 `mainTable.a`、`mainTable.detail1[0].a1`),提示这些字段可以替换为真实值或删除。
37
+
38
+ 组装触发参数时按模板结构原样填充业务值,不要自行新增模板外的字段。
39
+
40
+ ## 注意
41
+
42
+ - 接口返回的是**模板**而非实际数据,`#可选` 是占位符,不是要传的字面值。
43
+ - 模板字段名由目标动作流定义,不同动作流结构不同;不要跨动作流套用字段名。
44
+ - 只需要字段清单时可让 Agent 从 `optionalFields` 与 `customParams` 中提取,不要原样粘贴超长 JSON。
45
+
46
+ ## 失败处理
47
+
48
+ - `field_invalid`:`applicationId` 不是数字 ID,请核对动作流 ID。
49
+ - `flow_not_found`:动作流不存在或已被删除,不要重试。
50
+ - `tenant_permission_denied` / `permission_denied` / `tenant_missing`:权限或租户上下文问题,确认登录态与权限后由用户处理。
51
+ - `session_expired`:E10 登录态失效,引导用户执行 `weaver-work-cli auth login`。
52
+ - 其他非成功响应:按 stderr JSON 的 `error.type` / `error.subtype` / `error.message` 说明失败原因,不要臆测返回结构。
@@ -0,0 +1,242 @@
1
+ {
2
+ "schemaVersion": 2,
3
+ "module": "esb",
4
+ "skill": "weaver-e10-esb",
5
+ "generatedFrom": {
6
+ "sourceSkill": "weaver-e10-customesb-execute",
7
+ "version": "1.1.0",
8
+ "path": "weaver-e10-customesb-execute",
9
+ "kind": "workbuddy-document-skill",
10
+ "availability": "user-provided-source-directory"
11
+ },
12
+ "generatedAt": "2026-09-11T08:23:45.946Z",
13
+ "sourceSet": {
14
+ "aggregateSha256": "6f1e7cd938c69611b820d262bc5ee1eb54d6d0aa83c00fe1df1b3b659245fb12",
15
+ "sourceRoots": [
16
+ "weaver-e10-customesb-execute"
17
+ ],
18
+ "detectionStrength": "strong"
19
+ },
20
+ "generatedTargets": {
21
+ "cli": [
22
+ "src/shortcuts/esb",
23
+ "src/shortcuts/index.ts"
24
+ ],
25
+ "skill": [
26
+ "skills/weaver-e10-esb"
27
+ ],
28
+ "tests": [
29
+ "test/business/esb-*.test.ts"
30
+ ],
31
+ "docs": [
32
+ "docs/esb.md",
33
+ "skill-template/domains/esb.md"
34
+ ]
35
+ },
36
+ "sources": [
37
+ {
38
+ "path": "weaver-e10-customesb-execute/SKILL.md",
39
+ "size": 8742,
40
+ "sha256": "b038c80f543dff453fc0268140a3fd2fc9e55aefd2507d6f72026f2f765535f2"
41
+ },
42
+ {
43
+ "path": "weaver-e10-customesb-execute/agents/openai.yaml",
44
+ "size": 804,
45
+ "sha256": "ccc4d3189d769db9ae5bdc858a9a43d9c7a257da72265fc970d9027a98856ad0"
46
+ },
47
+ {
48
+ "path": "weaver-e10-customesb-execute/references/catalog.md",
49
+ "size": 1334,
50
+ "sha256": "9c9616cea7fc6df5944d557aa4c6591f7b0a2910694908865013db07e569c588"
51
+ },
52
+ {
53
+ "path": "weaver-e10-customesb-execute/references/esb-actionflow-getinputformat.md",
54
+ "size": 7420,
55
+ "sha256": "eabe0eaac69ecd2a839e6814d39ebe9fa57c8b1643ee963bc5dfd7bd7829398f"
56
+ },
57
+ {
58
+ "path": "weaver-e10-customesb-execute/references/esb-actionflow-trigger.md",
59
+ "size": 12645,
60
+ "sha256": "7ef1cc6c717666b891748385a3c5158755c5202b6258b0f46452562c6b313a03"
61
+ }
62
+ ],
63
+ "sourceChunks": [
64
+ {
65
+ "id": "POST /api/bs/esb/setting/customData/application/copyCustomData",
66
+ "mapsToOperations": [
67
+ "esb.input-format"
68
+ ],
69
+ "references": [
70
+ "references/input-format.md"
71
+ ],
72
+ "note": "只读入参模板接口;返回模板对象,无 resultCode 信封。"
73
+ },
74
+ {
75
+ "id": "POST /api/esb/server/event/triggerActionFlow",
76
+ "mapsToOperations": [
77
+ "esb.trigger.prepare",
78
+ "esb.trigger.apply"
79
+ ],
80
+ "references": [
81
+ "references/trigger.md"
82
+ ],
83
+ "note": "写操作;resultCode 200 为成功,其余按错误码表映射为结构化 subtype。"
84
+ }
85
+ ],
86
+ "operationImpact": {
87
+ "esb.input-format": {
88
+ "requiresConfirmationChain": false,
89
+ "references": [
90
+ "references/input-format.md"
91
+ ]
92
+ },
93
+ "esb.trigger.prepare": {
94
+ "requiresConfirmationChain": true,
95
+ "references": [
96
+ "references/trigger.md"
97
+ ]
98
+ },
99
+ "esb.trigger.apply": {
100
+ "requiresConfirmationChain": true,
101
+ "references": [
102
+ "references/trigger.md"
103
+ ]
104
+ }
105
+ },
106
+ "artifactBaseline": {
107
+ "aggregateSha256": "c0a7668d9def3681808407bdea47ad53bdba6e90003bfd8a64f09473a4fed4b7",
108
+ "files": [
109
+ {
110
+ "path": "docs/_catalog.md",
111
+ "size": 2580,
112
+ "sha256": "6944c1aaf36be248aed86513265c6ef41932dd09ad140d900ef3d0238104e431"
113
+ },
114
+ {
115
+ "path": "docs/esb.md",
116
+ "size": 4001,
117
+ "sha256": "703d6d9e990a217b411828de4459882ff07c1820c55e234203be6cc8bd1eadb6"
118
+ },
119
+ {
120
+ "path": "docs/SKILL.md",
121
+ "size": 3703,
122
+ "sha256": "4e30b95045178cd1fdb008f40936253b07a117f48b3801177ea08cd7968d4109"
123
+ },
124
+ {
125
+ "path": "skill-template/business-info.json",
126
+ "size": 1772,
127
+ "sha256": "16ddf164f518921175a87dbb2ca8262e85da2a43afe5b1eb149c2326e96bdb5e"
128
+ },
129
+ {
130
+ "path": "skill-template/domains/esb.md",
131
+ "size": 1574,
132
+ "sha256": "a88dc8b44452a121bb2974c156e512ca34c1c71c8fe66407b3de7e94557a4e95"
133
+ },
134
+ {
135
+ "path": "skills/weaver-e10-esb/product.json",
136
+ "size": 178,
137
+ "sha256": "206c4277cfe7b0c533789fc67a9b697d64714a185d2fccc042fa4ac76d40e6ea"
138
+ },
139
+ {
140
+ "path": "skills/weaver-e10-esb/references/input-format.md",
141
+ "size": 2618,
142
+ "sha256": "f0b6f96353a879f6acf380bacacea4ef514d7328dd14915e5495287d51bb1f63"
143
+ },
144
+ {
145
+ "path": "skills/weaver-e10-esb/references/trigger.md",
146
+ "size": 5098,
147
+ "sha256": "64e0f9a17d80328c86679f3b0fd1784f91a5c80e577fbe2b6f8f5c882e9047c8"
148
+ },
149
+ {
150
+ "path": "skills/weaver-e10-esb/SKILL.md",
151
+ "size": 6644,
152
+ "sha256": "f0e9bb98576a438bbd18898a2fe53dd0f3d9efa2b7f1a22f22cefe08c21a207a"
153
+ },
154
+ {
155
+ "path": "src/shortcuts/esb/continuation.ts",
156
+ "size": 3229,
157
+ "sha256": "125780b145eaa3e78cb630e843a083a79a8a674c7936be3f58567dcfcddc3210"
158
+ },
159
+ {
160
+ "path": "src/shortcuts/esb/errors.ts",
161
+ "size": 2829,
162
+ "sha256": "9ba6551fd92babc2085dc69fef3f5453c1f380808539c5bd86fa9a2c26165c73"
163
+ },
164
+ {
165
+ "path": "src/shortcuts/esb/host.ts",
166
+ "size": 9169,
167
+ "sha256": "e0e95488d7180a248b1e3aa35b40abb390c42317c898df23e6841be8f51218a9"
168
+ },
169
+ {
170
+ "path": "src/shortcuts/esb/index.ts",
171
+ "size": 4567,
172
+ "sha256": "8252a116edf03acd167c85bdfcb40207bd1b7f29cb02c7febd4c323614015b84"
173
+ },
174
+ {
175
+ "path": "src/shortcuts/esb/manifest.ts",
176
+ "size": 4063,
177
+ "sha256": "063eb2b1e7157efa9b8521e5d45cd12351c883b8489f2f32b2ba3827bff15ea8"
178
+ },
179
+ {
180
+ "path": "src/shortcuts/esb/operations.ts",
181
+ "size": 1088,
182
+ "sha256": "5169e7b6b11a6a56ea9377dcd208d3c060f0f6e86662eec462d73180d571f417"
183
+ },
184
+ {
185
+ "path": "src/shortcuts/esb/operations/input-format.ts",
186
+ "size": 1952,
187
+ "sha256": "0042d37b735fc78f7cb668e274adca6fdc4773c51733a153fd4c9074894e44c0"
188
+ },
189
+ {
190
+ "path": "src/shortcuts/esb/operations/registry.ts",
191
+ "size": 1999,
192
+ "sha256": "4288c80f0d27d0982dcf722d35d6df74ab9288291ac4e2dde41f62644c9f88b7"
193
+ },
194
+ {
195
+ "path": "src/shortcuts/esb/operations/shared.ts",
196
+ "size": 7362,
197
+ "sha256": "7cc9d18492d1de10b3c182f79899c4e001bb3d7dfe2a7148f9e6fe7a9384c2b5"
198
+ },
199
+ {
200
+ "path": "src/shortcuts/esb/operations/trigger.ts",
201
+ "size": 4429,
202
+ "sha256": "7584f54884e05556a07145f9dd3cbe432d30098316135eb2cd5b7949df146192"
203
+ },
204
+ {
205
+ "path": "src/shortcuts/esb/operations/types.ts",
206
+ "size": 1980,
207
+ "sha256": "9db3b9821b9378a822db8c718e88e727bc307e604047303523fcede383e1f0d0"
208
+ },
209
+ {
210
+ "path": "src/shortcuts/index.ts",
211
+ "size": 648,
212
+ "sha256": "f07b4df6baf33848ef0ce2134065373a03a9f871be0de556f0f1cdcad3f832dd"
213
+ },
214
+ {
215
+ "path": "test/business/esb-command.test.ts",
216
+ "size": 2081,
217
+ "sha256": "05fda49096153760a1cfdb2468755d58a01fe2211e90223d7438c2dffed4f91d"
218
+ },
219
+ {
220
+ "path": "test/business/esb-continuation.test.ts",
221
+ "size": 2228,
222
+ "sha256": "349a6ae7d8e386fe28b9f4ecc6913e41bf10265e541cf8e365e339b7e770a95a"
223
+ },
224
+ {
225
+ "path": "test/business/esb-host.test.ts",
226
+ "size": 5662,
227
+ "sha256": "00a9303763853b7d80cc2833bdd2697c4e5c2f13f534cb675d9d7663d03cba9e"
228
+ },
229
+ {
230
+ "path": "test/business/esb-operations.test.ts",
231
+ "size": 11069,
232
+ "sha256": "5c0ceb9f484521e74b57b702c901f85d72671492abe494ece7aca4198d4afb39"
233
+ }
234
+ ]
235
+ },
236
+ "notes": [
237
+ "源资料 Skill weaver-e10-customesb-execute 1.1.0;CLI 命令后缀 esb、Skill 后缀 esb。",
238
+ "唯一值触发所需的 primary_key 需查询 esb_setting 库,CLI 无数据库通道,列为 withheldOperations。",
239
+ "按动作流名称解析 esbFlowId 需要 ESB 中心查询接口,源资料未提供契约,列为 withheldOperations。",
240
+ "本模块尚未在真实 E10 环境完成端到端触发验证;触发与模板查询的真实响应以现场实测为准。"
241
+ ]
242
+ }