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,27 @@
1
+ # 黑名单(prepare → apply 确认链)
2
+
3
+ 风险等级:`write`。新增/删除均走 prepare→apply 确认链。
4
+
5
+ ## 操作字段
6
+
7
+ | operation | 字段 |
8
+ |---|---|
9
+ | `mail.blacklist.operate.prepare` | `operateType`(`add` / `delete`)、`mailAddress`(add 时必填)、`id`(delete 时按 id)、`confirm`、`continuation` |
10
+ | `mail.blacklist.operate.apply` | 同上(apply 必带 `continuation` + `confirm:true`) |
11
+
12
+ ## 流程
13
+
14
+ ```text
15
+ weaver-work-cli --json mail run mail.blacklist.operate.prepare --input-json '{"operateType":"add","mailAddress":"spam@example.com"}'
16
+ # 返回 continuation(含操作类型与目标)
17
+ weaver-work-cli --json mail run mail.blacklist.operate.apply --input-json '{"continuation":"<PREPARE_CONTINUATION>","confirm":true}'
18
+ ```
19
+
20
+ - `add`:需 `mailAddress`(邮箱地址)。
21
+ - `delete`:需 `id`(黑名单记录 id)或对应 `mailAddress`;CLI 按源接口约定解析。
22
+
23
+ ## 要点
24
+
25
+ - prepare 输出摘要(操作类型 + 目标),apply 前 CLI 重新校验 continuation 与上下文。
26
+ - 删除为即时写,确认目标。
27
+ - 写请求已发出后遇到不确定结果,停止重试,按共享 `high-risk-write.md` 处理。
@@ -0,0 +1,33 @@
1
+ # 联系人 / 分组(prepare → apply 确认链,删除单步)
2
+
3
+ 风险等级:`write`。保存类走 prepare→apply 确认链;删除单步执行。
4
+
5
+ ## 联系人保存(prepare → apply)
6
+
7
+ | operation | 字段 |
8
+ |---|---|
9
+ | `mail.contacts.save.prepare` | `id`(编辑时填)、`mailUserName`、`mailAddress`、`mailUserTel`、`mailUserCompany`、`mailUserDesc`、`groupId`、`confirm`、`continuation` |
10
+ | `mail.contacts.save.apply` | 同上(apply 必带 `continuation` + `confirm:true`) |
11
+
12
+ prepare 调用 `getMailContactsForm` 取全量表单并输出摘要(不保存);apply 执行保存。新增不传 `id`,编辑传 `id`。
13
+
14
+ ## 联系人删除
15
+
16
+ `mail.contacts.delete` 字段:`id`。单步执行,删除前确认。
17
+
18
+ ## 分组保存(prepare → apply)
19
+
20
+ | operation | 字段 |
21
+ |---|---|
22
+ | `mail.contacts.group.save.prepare` | `id`(编辑时填)、`groupName`、`confirm`、`continuation` |
23
+ | `mail.contacts.group.save.apply` | 同上(apply 必带 `continuation` + `confirm:true`) |
24
+
25
+ ## 分组删除
26
+
27
+ `mail.contacts.group.delete` 字段:`id`。单步执行,删除前确认。
28
+
29
+ ## 要点
30
+
31
+ - 保存类必须 prepare 先取全量表单,避免覆盖用户已有字段;apply 前 CLI 重新校验 continuation 与上下文。
32
+ - 删除为单步即时写,执行前确认 id 与目标。
33
+ - 写请求已发出后遇到不确定结果,停止重试,按共享 `high-risk-write.md` 处理。
@@ -0,0 +1,44 @@
1
+ # 邮件管理类写操作(标记 / 待办 / 移动 / 删除 / 文件夹 / 撤回)
2
+
3
+ 风险等级均为 `write`(单步执行,无 prepare/apply 链,但部分会直接改数据)。
4
+
5
+ ## mail.star — 标星/取消标星
6
+
7
+ 字段:`id`、`star`("1" 标星 / "0" 取消)。
8
+
9
+ ## mail.read.status — 标记单封已读/未读
10
+
11
+ 字段:`id`、`read`("1" 已读 / "0" 未读)。
12
+
13
+ ## mail.read.all — 标记全部已读
14
+
15
+ 字段:`folder`(文件夹 id,默认全部)。
16
+
17
+ ## mail.wait.add — 创建待办/提醒
18
+
19
+ 字段:`id`(邮件 id)、`title`(待办标题,缺省从邮件主题取)、`endDate`(截止日期)、`reminderWay`、`reminderTime`、`remark`。CLI 在标题缺失时自动取邮件主题。
20
+
21
+ ## mail.move.folder — 移动邮件至文件夹
22
+
23
+ 字段:`id`、`folder`(目标文件夹 id)。
24
+
25
+ ## mail.delete.move — 逻辑删除(移至已删除,可恢复)
26
+
27
+ 字段:`id`(邮件 id 或逗号分隔多个)。**这是逻辑删除,不是物理永久删除**;物理永久删除 `mail.delete.batch` 已暂缓,见 `safety-boundaries.md`。
28
+
29
+ ## mail.folder.create / folder.delete — 文件夹管理
30
+
31
+ | operation | 字段 |
32
+ |---|---|
33
+ | `mail.folder.create` | `name`(文件夹名)、`id`(编辑时填) |
34
+ | `mail.folder.delete` | `id`(文件夹 id) |
35
+
36
+ ## mail.recall — 撤回已发送的内部邮件
37
+
38
+ 字段:`id`。仅对内部邮件有效;撤回失败按错误语义处理,不盲目重试。
39
+
40
+ ## 要点
41
+
42
+ - 以上操作均为即时写,执行前在回复中向用户确认目标 id 与动作。
43
+ - 删除走逻辑删除,可恢复;如用户要求物理永久删除,说明 `mail.delete.batch` 已暂缓,不在常规 CLI 提供。
44
+ - 写请求已发出后遇到不确定结果,停止重试,按共享 `high-risk-write.md` 处理。
@@ -0,0 +1,76 @@
1
+ # 邮件查询类 operation
2
+
3
+ 全部风险等级:`read`。只读,不修改数据。
4
+
5
+ ## mail.list — 邮件列表
6
+
7
+ ```text
8
+ weaver-work-cli --json mail run mail.list --input-json '{"folder":"0","keyword":"","unread":true,"star":false,"todo":false,"hasFile":false,"startDate":"","endDate":"","page":1,"size":10}'
9
+ ```
10
+
11
+ 字段(均为可选):
12
+
13
+ | 字段 | 说明 |
14
+ |---|---|
15
+ | `folder` | 文件夹:0 收件箱 / -1 已发送 / -2 草稿箱 / -3 垃圾箱 / -4 已删除 / -10 全部。默认按命令约定 |
16
+ | `keyword` | 主题关键字 |
17
+ | `from` | 发件人 |
18
+ | `to` | 收件人 |
19
+ | `unread` | true 仅未读 |
20
+ | `star` | true 仅星标 |
21
+ | `todo` | true 仅待办 |
22
+ | `hasFile` | true 仅带附件 |
23
+ | `startDate` / `endDate` | 时间范围 YYYY-MM-DD |
24
+ | `page` / `size` | 分页,默认小页 |
25
+
26
+ ## mail.contact.list — 往来邮件
27
+
28
+ 某联系人与我之间的往来邮件(对方发来 + 我发给对方)。字段:`name`(姓名/工号)、`page`、`size`。
29
+
30
+ ## mail.view.info — 邮件详情
31
+
32
+ 含正文与附件列表。字段:`id`(邮件 id)。若正文为空会自动回退取正文接口。
33
+
34
+ ## mail.view.content — 邮件正文
35
+
36
+ 字段:`id`。仅返回正文(clobContent)。
37
+
38
+ ## mail.unread.count — 未读统计
39
+
40
+ 五箱统计:收件箱 / 已删除 / 垃圾箱 / 待办 / 星标。无输入字段。
41
+
42
+ ## mail.config.get — 邮件配置
43
+
44
+ 返回发送开关、附件限制等配置。无输入字段。
45
+
46
+ ## 收件人解析(Agent 辅助,发送前用)
47
+
48
+ | operation | 字段 | 说明 |
49
+ |---|---|---|
50
+ | `mail.person.search` | `keyword` | 内部人员/部门搜索(返回 id 供发送解析) |
51
+ | `mail.dep.search` | `keyword` | 部门树定位(返回部门 id 与成员展开入口) |
52
+ | `mail.address.search` | `keyword` | 外部邮箱搜索 |
53
+
54
+ 注意:发送时也可直接在 `mail.send.prepare` 传 `--to`/`--to-dep`/`--to-id`/`--external` 让 CLI 解析;同名人员会要求确认唯一性。
55
+
56
+ ## mail.contacts.list / group.list / group.detail
57
+
58
+ | operation | 字段 | 说明 |
59
+ |---|---|---|
60
+ | `mail.contacts.list` | `keyword`,`page`,`size` | 联系人列表/搜索 |
61
+ | `mail.contacts.group.list` | 无 | 联系人分组列表 |
62
+ | `mail.contacts.group.detail` | `id` | 分组详情(含统计) |
63
+
64
+ ## mail.template.list / sign.list / blacklist.list / attachment.center / clearlog.list
65
+
66
+ | operation | 字段 | 说明 |
67
+ |---|---|---|
68
+ | `mail.template.list` | 无 | 模板列表 |
69
+ | `mail.sign.list` | 无 | 签名列表 |
70
+ | `mail.blacklist.list` | 无 | 黑名单列表 |
71
+ | `mail.attachment.center` | `keyword`,`page`,`size` | 附件中心列表/搜索 |
72
+ | `mail.clearlog.list` | `page`,`size` | 邮件清理日志列表 |
73
+
74
+ ## mail.sign.qrcode — 二维码名片
75
+
76
+ 风险等级:`read`。字段:`id`(签名 id,二选一)、`userName`、`jobtitle`、`email`、`signLocation`、`mobile`、`telephone`、`fax`、`selected`。给定 `id` 时从签名表单解析姓名等;否则按传入字段生成。
@@ -0,0 +1,43 @@
1
+ # 发送 / 回复 / 转发 / 存草稿(prepare → apply 确认链)
2
+
3
+ 发送类写操作分两步:先 `prepare` 组装请求 + 安全预检 + 输出摘要(**不发送**),用户确认后 `apply` 执行。
4
+
5
+ 风险等级:`write`。`mail.send.prepare` 与 `mail.send.apply` 均须走确认链。
6
+
7
+ ## 字段(prepare / apply 共用)
8
+
9
+ | 字段 | 说明 |
10
+ |---|---|
11
+ | `flag` | -1 新建 / 1 回复 / 3 转发 / 4 编辑草稿 |
12
+ | `id` | 原邮件 id(回复/转发/编辑草稿时必填) |
13
+ | `to` | 收件人(姓名/工号,逗号分隔;CLI 解析为 id) |
14
+ | `cc` / `bcc` | 抄送 / 密送 |
15
+ | `toDep` / `ccDep` / `bccDep` | 部门收件人(部门名,逗号分隔) |
16
+ | `toId` / `ccId` / `bccId` | 精确收件人/抄送/密送 id(逗号分隔,跳过解析) |
17
+ | `external` | true 表示外部邮件(用 `mail.address.search` 或原始邮箱) |
18
+ | `subject` | 主题 |
19
+ | `content` | 正文 |
20
+ | `timing` | 定时发送 YYYY-MM-DD HH:mm:ss |
21
+ | `files` / `filesizes` | 附件 fileid / 大小(逗号分隔;fileid 来自 `mail.attachment.upload`) |
22
+ | `draft` | true 存草稿(不发送) |
23
+ | `continuation` | prepare 返回的 continuation 令牌(apply 必填) |
24
+ | `confirm` | true 才执行(apply 必填) |
25
+
26
+ ## 流程
27
+
28
+ ```text
29
+ weaver-work-cli --json mail run mail.send.prepare --input-json '{"flag":"-1","to":"张三","subject":"季度汇报","content":"您好。"}'
30
+ # 返回 continuation(含摘要、收件人解析结果、是否草稿)
31
+ weaver-work-cli --json mail run mail.send.apply --input-json '{"continuation":"<PREPARE_CONTINUATION>","confirm":true}'
32
+ ```
33
+
34
+ Windows PowerShell 与 macOS/Linux 命令一致(JSON 用单引号包裹)。
35
+
36
+ ## 要点
37
+
38
+ - 回复(flag=1)/ 转发(flag=3)会自动把原邮件正文包裹进 `content`;编辑草稿(flag=4)需带 `id`。
39
+ - 收件人解析:内部人员走 `mail.person.search`/部门展开,外部走 `mail.address.search` 或原始邮箱;出现重名时 CLI 抛出候选错误并要求确认,不要臆造 id。
40
+ - `draft=true` 时 prepare 不预检发送权限,apply 走 `saveDraft`;否则 apply 走 `sendMail`。
41
+ - 附件:先用 `mail.attachment.upload` 拿到 fileid,再在 `files` 传入。
42
+ - apply 前 CLI 会重新校验 continuation、baseUrl/profile/userId 上下文一致,并(非草稿)重新预检发送权限;上下文变化会拒绝执行。
43
+ - 写请求已发出后遇到不确定结果,停止重试,按共享 `high-risk-write.md` 处理。
@@ -0,0 +1,33 @@
1
+ # 邮件签名(prepare → apply 确认链,更新/删除/默认/二维码)
2
+
3
+ 风险等级:保存类 `write`;`mail.sign.qrcode` 为 `read`。
4
+
5
+ ## 签名保存(prepare → apply)
6
+
7
+ | operation | 字段 |
8
+ |---|---|
9
+ | `mail.sign.save.prepare` | `id`(编辑时填)、`signName`、`clobContent`(签名内容,base64)、`signDesc`、`defaultUse`、`signType`(默认 "0")、`electronSignEnable`、`confirm`、`continuation` |
10
+ | `mail.sign.save.apply` | 同上(apply 必带 `continuation` + `confirm:true`) |
11
+
12
+ `clobContent` 为签名内容,CLI 内部做 base64 编码。
13
+
14
+ ## 签名编辑(GET 全量 + 保存)
15
+
16
+ `mail.sign.update` 字段:`id`、`signName`、`clobContent`、`signDesc`、`defaultUse`、`signType`、`electronSignEnable`。先 `getMailSignForm` 取全量再全量回写。
17
+
18
+ ## 签名删除 / 设为默认
19
+
20
+ | operation | 字段 |
21
+ |---|---|
22
+ | `mail.sign.delete` | `id` |
23
+ | `mail.sign.default` | `id` |
24
+
25
+ ## 二维码名片(read)
26
+
27
+ `mail.sign.qrcode` 字段:`id`(签名 id,二选一)、`userName`、`jobtitle`、`email`、`signLocation`、`mobile`、`telephone`、`fax`、`selected`。给定 `id` 时从签名表单解析姓名等;否则按传入字段生成。
28
+
29
+ ## 要点
30
+
31
+ - 保存类必须 prepare 先查全量;apply 前重新校验 continuation 与上下文。
32
+ - 编辑/删除/默认为即时写,确认目标 id。
33
+ - 写请求已发出后遇到不确定结果,停止重试,按共享 `high-risk-write.md` 处理。
@@ -0,0 +1,31 @@
1
+ # 邮件模板(prepare → apply 确认链,更新/删除/默认)
2
+
3
+ 风险等级:`write`。保存类走 prepare→apply;update 为 GET 全量 + 保存单步;delete/default 单步。
4
+
5
+ ## 模板保存(prepare → apply)
6
+
7
+ | operation | 字段 |
8
+ |---|---|
9
+ | `mail.template.save.prepare` | `id`(编辑时填)、`templateType`、`subject`、`mailSubject`、`clobContent`(正文,base64)、`templateDesc`、`defaultUse`、`contentId`、`confirm`、`continuation` |
10
+ | `mail.template.save.apply` | 同上(apply 必带 `continuation` + `confirm:true`) |
11
+
12
+ `clobContent` 为正文内容,CLI 内部做 base64 编码;`contentId` 默认 `"null"`,编辑时取原值。
13
+
14
+ ## 模板编辑(GET 全量 + 保存)
15
+
16
+ `mail.template.update` 字段:`id`、`subject`、`clobContent`、`templateDesc`、`defaultUse`、`templateType`。先 `getMailTemplateInfo` 取全量再全量回写。
17
+
18
+ ## 模板删除 / 设为默认
19
+
20
+ | operation | 字段 |
21
+ |---|---|
22
+ | `mail.template.delete` | `id` |
23
+ | `mail.template.default` | `id` |
24
+
25
+ 均为单步执行,执行前确认 id 与目标。
26
+
27
+ ## 要点
28
+
29
+ - 保存类必须 prepare 先查全量;apply 前重新校验 continuation 与上下文。
30
+ - 编辑/删除/默认为即时写,确认目标 id。
31
+ - 写请求已发出后遇到不确定结果,停止重试,按共享 `high-risk-write.md` 处理。
@@ -0,0 +1,32 @@
1
+ # 邮件 Skill 安全边界(已暂缓 / 禁用 operation)
2
+
3
+ 本文件记录 `weaver-e10-mail` 中**未纳入 CLI manifest** 的破坏性/缺口操作,以及高风险操作的安全约束。
4
+
5
+ ## 已暂缓的 operation(withheldOperations)
6
+
7
+ | operation | 状态 | 原因 |
8
+ |---|---|---|
9
+ | `mail.delete.batch` | 暂缓 | 物理永久删除(`deleteMailResourceBatch`)不可逆、无法撤销,破坏性最强。常规 CLI 不提供;如确需执行,请在确认风险后以单独授权方式处理。 |
10
+ | `mail.resend` | 暂缓 | 重发邮件(`resendMail`)依赖「邮件发送日志 id」(`mailRemindLogId`),源技能未封装日志查询接口,无法获得该 id 时如实提示,不臆造。 |
11
+
12
+ Agent **不得**调用上述 operation,也不得用 `mail.delete.move`(逻辑删除)冒充物理永久删除。
13
+
14
+ ## 高风险写操作约束
15
+
16
+ 以下写操作会修改真实邮件数据,必须遵守共享规则 `../weaver-e10-shared/references/high-risk-write.md`:
17
+
18
+ - 发送/回复/转发/存草稿:`mail.send.prepare` → 用户确认 → `mail.send.apply`(带 `continuation` + `confirm:true`)
19
+ - 联系人/分组保存:`mail.contacts.save.prepare` → 用户确认 → `mail.contacts.save.apply`
20
+ - 模板保存:`mail.template.save.prepare` → 用户确认 → `mail.template.save.apply`
21
+ - 签名保存:`mail.sign.save.prepare` → 用户确认 → `mail.sign.save.apply`
22
+ - 黑名单:`mail.blacklist.operate.prepare` → 用户确认 → `mail.blacklist.operate.apply`
23
+ - 单步写:标星、已读、全部已读、待办、移动、逻辑删除、文件夹新建/删除、撤回、联系人/分组/模板/签名删除与默认、附件上传/下载
24
+
25
+ 通用约束:
26
+
27
+ 1. 禁止输出或索取 Cookie、ETEAMSID、业务 Token、access token、app key、app secret。
28
+ 2. 禁止读取、列出、打印、复制或解析用户主目录下的旧 `.e10-cli`、auth、config 或 Keychain 数据。
29
+ 3. 禁止绕过 `weaver-work-cli` 直接 curl、fetch、浏览器自动化或访问 E10 邮件接口。
30
+ 4. 写入/删除必须使用 CLI 确认流程;prepare→apply 时把 continuation 原样传给 apply,并在 apply 前取得用户明确确认。
31
+ 5. 附件、图片上传或文件解析属敏感数据处理,即便 operation 风险等级非高风险写入,也必须先取得用户对“文件内容可能进入大模型/外部解析服务”的明确确认。
32
+ 6. 写请求已发出后遇 `partial`/`write_uncertain`/网络中断/回查失败,立即停止,按 `high-risk-write.md` 决策树处理,不盲目重试。
@@ -0,0 +1,139 @@
1
+ ---
2
+ name: weaver-e10-plan
3
+ display_name: 泛微e10计划报告
4
+ display_name_en: Weaver e10 Plan Reports
5
+ description: "E10 计划报告接口 Skill:负责报告的内容统计汇总、新建、查询、修改、发布、撤回、共享报告分页查询、提交提醒与评论查看。用户说 帮我写周报/月报/季报/年报、汇总本周/上周/本月/上月的工作内容或报告、汇总上周报告、生成周报、整理本周工作写报告、查报告、改报告、发布/撤回报告、查看共享给我的报告、提醒他人交报告、查看报告评论 等意图时使用。当判定为生成/汇总本人周期报告时,将自动调用已安装的 IM消息、日报、日程、会议、项目任务、客户营销、流程 等业务模块技能采集周期数据后再整合。"
6
+ description_zh: "E10 计划报告接口 Skill:负责报告的内容统计汇总、新建、查询、修改、发布、撤回、共享报告分页查询、提交提醒与评论查看。用户说 帮我写周报/月报/季报/年报、汇总本周/上周/本月/上月的工作内容或报告、汇总上周报告、生成周报、整理本周工作写报告、查报告、改报告、发布/撤回报告、查看共享给我的报告、提醒他人交报告、查看报告评论 等意图时使用。当判定为生成/汇总本人周期报告时,将自动调用已安装的 IM消息、日报、日程、会议、项目任务、客户营销、流程 等业务模块技能采集周期数据后再整合。"
7
+ description_en: "E10 Plan Report API Skill: Handles report content aggregation, and supports creating, querying, modifying, publishing, and withdrawing reports, running paginated queries for shared reports, sending submission reminders, and viewing comments. Use this skill when users express intents such as writing weekly/monthly/quarterly/yearly reports, summarizing this week's/last week's/this month's/last month's work content or reports, generating weekly reports, writing reports from organized weekly work, or viewing/editing/publishing/withdrawing reports, viewing reports shared with them, reminding others to submit reports, or viewing report comments. When the intent is generating/aggregating the current user's periodic report, automatically call the installed business-module skills (IM messages, daily reports, calendar, meetings, projects/tasks, CRM, workflows) to collect in-period data before composing the report."
8
+ version: 1.0.0
9
+ author: 泛微网络科技股份有限公司
10
+ agent_created: true
11
+ requires:
12
+ bins: ["weaver-work-cli"]
13
+ cliHelp: "weaver-work-cli plan --help"
14
+ ---
15
+
16
+ # 泛微E10计划报告
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
+ 本技能覆盖报告业务域:**汇总生成报告**(多模块采集后整合)、**查询报告详情**、**分页查询报告**、**新建**、**修改**、**发布**、**撤回**、**发送提交提醒**、**查看报告评论**。写操作全部走 prepare→apply 确认协议。
21
+
22
+ ## 零、第一步:意图判定(先于任何接口调用)
23
+
24
+ 自上而下命中即止,不需要二次询问:
25
+
26
+ | 命中信号 | 走向 | 是否采集业务数据 |
27
+ | --- | --- | --- |
28
+ | 查看 / 查询 / 列表 / 共享给我的 / 团队 / 下属 / 成员 / 某某某的报告 / 已提交 / 发布 / 撤回 / 修改 / 提醒他们交报告 | B 查询与管理链路 | **禁止**调用任何业务模块采集数据 |
29
+ | 动词(汇总 / 生成 / 写 / 整理 / 总结 / 帮我出一份)+ 对象(周期词 + 报告类名词),且未命中上面任何信号 | A 生成与汇总链路 | 必须按采集作业链采集 |
30
+
31
+ 歧义消解:「汇总上周报告」「生成本周报告」「帮我写周报 / 写月报 / 写季报 / 写年报」「帮我整理上周工作写报告」「把上周的工作总结成周报」一律归入 **A 生成链路**,不得因为出现「报告」二字而改走查询链路。
32
+
33
+ A 链路细节(采集模块、时间范围、输出规范)读 [`references/plan-collect-and-compose.md`](references/plan-collect-and-compose.md);B 链路读 [`references/plan-report-query.md`](references/plan-report-query.md)。
34
+
35
+ ## 命令入口
36
+
37
+ ```text
38
+ weaver-work-cli plan --help
39
+ weaver-work-cli plan schema
40
+ weaver-work-cli --json plan run <operation> --input-json '{"key":"value"}'
41
+ ```
42
+
43
+ `plan schema` 是可用能力的唯一事实来源。禁止把源文档里的接口路径当成 Agent 可直接调用的地址,也禁止把未出现在 `schema` 中的能力当作可用 operation。
44
+
45
+ ## Reference 路由表
46
+
47
+ 命中任一条件时,执行下一步前读取对应 reference。
48
+
49
+ | 触发条件 | Reference |
50
+ | --- | --- |
51
+ | 意图判定 A/B、版本路由与租户缓存、operation 总表、通用基础规则(周期、跳转、分页表格、人员 ID、字段名禁止项) | [`references/plan-overview-and-routing.md`](references/plan-overview-and-routing.md) |
52
+ | 查看/查询某份报告、查看共享给我的报告或下属报告、查看报告评论 | [`references/plan-report-query.md`](references/plan-report-query.md) |
53
+ | 新建报告、修改报告、发布报告、撤回报告 | [`references/plan-report-write.md`](references/plan-report-write.md) |
54
+ | 提醒他人提交报告、生成提交提醒默认文案 | [`references/plan-report-remind.md`](references/plan-report-remind.md) |
55
+ | 汇总本周/上周/本月/上月工作并生成报告(多模块采集、去重润色、输出规范) | [`references/plan-collect-and-compose.md`](references/plan-collect-and-compose.md) |
56
+
57
+ ## 高优先级语义
58
+
59
+ - **报告**:work report,用户常说「周报」「月报」「季报」「年报」「年中报告」「工作总结」「汇报」。
60
+ - **报告类型**:`week`(周报)/ `month`(月报)/ `season`(季报)/ `halfYear`(年中报告)/ `year`(年报)。
61
+ - **报告周期**:`year`(年份)+ `serialNumber`(周期序号)。**周报年份与周数严格遵循 ISO8601,1 月 4 日所在周为当年第 1 周**;「上周」= 上周一至上周日。
62
+ - **发布状态**:`0` 草稿 / `1` 已发布 / `2` 已撤回 / `3` 审批中 / `4` 被退回。CLI 输出已附带 `postStatusLabel`。
63
+ - **报告详情链接**:查询与写入成功后 CLI 会在 `detailUrl` 返回可点击的详情页地址,必须呈现给用户。
64
+
65
+ ## 版本路由(CLI 已内置,不要手工选择接口)
66
+
67
+ 报告侧接口存在标准版与 e10-ebuilder 版两套链路。判定规则:先读租户缓存(有效期 1 天),命中即复用;未命中调用版本接口读取 `ver_name`,`V2` → e10-ebuilder 链路,其它 → 标准版链路,并写回租户缓存。
68
+
69
+ - 判断当前链路:`plan.version.check`(`plan route` 同义)。
70
+ - **禁止**跳过版本判定硬编码选择链路,禁止在某条链路命中后混用另一条链路的接口。
71
+ - 采集业务数据阶段(A 链路第 1~7 步)**禁止**调用版本接口或任何报告侧接口。
72
+ - eb 链路报告详情页链接依赖报告详情 eb 表单 id,`plan.eb.form.resolve` 会解析并长期缓存;不要手工拼链接。
73
+
74
+ ## 报告侧 operation 表
75
+
76
+ | 用户意图 | operation |
77
+ | --- | --- |
78
+ | 判断当前租户报告链路 | `plan.version.check` |
79
+ | 解析 eb 报告详情表单 id | `plan.eb.form.resolve` |
80
+ | 查询某份报告(按 id 或按周期),判断某周期是否已提交 | `plan.report.get` |
81
+ | 分页查询报告列表(共享给我的、下属的) | `plan.report.page` |
82
+ | 查看报告评论内容 | `plan.comment.list` |
83
+ | 新建报告 | `plan.report.create.prepare` → `plan.report.create.apply` |
84
+ | 修改报告 | `plan.report.update.prepare` → `plan.report.update.apply` |
85
+ | 发布报告 | `plan.report.publish.prepare` → `plan.report.publish.apply` |
86
+ | 撤回报告 | `plan.report.withdraw.prepare` → `plan.report.withdraw.apply` |
87
+ | 发送提交提醒 | `plan.report.remind.prepare` → `plan.report.remind.apply` |
88
+
89
+ ## 写操作确认链(必须遵守)
90
+
91
+ 1. 先调用 `*.prepare`:只做只读回查、字段归一化、差异摘要并签发 continuation,**不写入**。
92
+ 2. 把目标、差异、风险读给用户,并明确询问是否执行。
93
+ 3. 用户明确确认后,才调用 `*.apply`,并**原样**传入 `confirm=true` 与 prepare 返回的 `continuation`。
94
+ 4. `*.apply` 遇到网络中断或 `partial/write_uncertain` 时**立即停止,禁止自动重试**,先做一次只读回查(`plan.report.get`)再决定下一步。
95
+ 5. `continuation` 不可手工构造、不可跨操作复用;过期或上下文变化时重新 `prepare`。
96
+
97
+ **判断某周期是否已提交报告,只能通过 `plan.report.get` 按周期查询**(必须传报告年份、报告类型、报告周期,创建人缺省为当前登录人)完成;只有确认需要创建时才做重复性判断,已存在时**不得重复创建**,必须告知用户并征询是否改为编辑。
98
+
99
+ ## 通用基础规则(两条链路均生效)
100
+
101
+ 1. 周期计算遵循 ISO8601;未明确周期类型(周/月/季/年)时先向用户确认,确认前不得臆造区间。
102
+ 2. 报告新建/查询/修改/发布/撤回成功后,必须呈现 `detailUrl`,支持点击跳转详情页。
103
+ 3. 分页结果必须用表格展示,固定列为 **报告名称 / 报告创建人名称 / 发布时间**,报告名称可点击跳转 `detailUrl`。
104
+ 4. 涉及人员 ID 时只取 `id` 或 `employeeId` 字段,**禁止取 `userId`**;人员信息通过 weaver-e10-hrm skill 获取。
105
+ 5. 请求体中的雪花 ID(人员 ID、报告 ID 等)必须加引号包裹为字符串,避免精度丢失;直接用 CLI 的业务字段即可,CLI 会完成归一化。
106
+ 6. 执行阶段与创建出的报告内容中,**决不允许出现报告相关的数据库英文字段名**(如 `content`、`f_content`、`summary`、`f_summary`、`plans`、`f_plans`、`year`、`f_year`、`type`、`f_type`、`serial_number`、`f_serial_number`)。CLI 已把 eb 链路返回值归一化为业务字段,Agent 直接使用 `report.*` 业务键即可,不要向用户复述接口原始结构。
107
+ 7. 认证与会话由 CLI 托管(Cookie 完整原始串、eteamsid、User-Agent 三件套缺一不可);若未登录先按共享规则读取 `../weaver-e10-shared/references/e10-auth-and-session.md` 并通过 `weaver-work-cli auth ...` 完成会话确认,禁止输出或索取任何凭证。
108
+
109
+ ## 失败处理
110
+
111
+ - 认证类错误(`authentication` / `session_expired`):先向用户确认 E10 登录域名,再执行 `weaver-work-cli auth login`,不要用其他方式排查。
112
+ - `policy` / `link_unsupported`:该能力在当前链路不可用(例如 eb 链路的撤回、提交提醒、评论),按错误 `message` 给出的替代路径处理。
113
+ - `validation` / `not_found` / `report_exists` / `already_published` / `not_published`:属业务前置条件不满足,先向用户说明再决定下一步,禁止反复重试。
114
+ - `partial` / `write_uncertain`:立即停止写入流程,做一次只读回查后向用户说明。
115
+ - 其它业务失败看 stderr JSON 的 `error.type` / `error.subtype` / `error.message`。
116
+
117
+ ## 不在范围
118
+
119
+ - 不绕过 CLI 直接 curl/fetch 访问 E10 接口,不自行拼报告侧接口路径。
120
+ - 业务数据采集不在本技能内实现:按 [`references/plan-collect-and-compose.md`](references/plan-collect-and-compose.md) 的对应关系调用已安装的业务模块技能。
121
+ - eb 链路的「撤回报告」为 ESB 动作流,改由 weaver-e10-customesb-execute skill 执行同名动作流。
122
+ - 人员「姓名 → 人员 ID」解析交给 weaver-e10-hrm skill。
123
+ - 禁止把未出现在 `plan schema` 中的能力当作可用 operation。
124
+
125
+ ## 平台兼容
126
+
127
+ 命令示例同时兼容 Windows 与 macOS/Linux。简单 JSON 用 `--input-json`,复杂或多行 JSON 存为 UTF-8 文件后用 `--input <path>`。
128
+
129
+ Windows PowerShell:
130
+
131
+ ```powershell
132
+ weaver-work-cli --json plan run plan.report.get --input-json '{"type":"week","serialNumber":36}'
133
+ ```
134
+
135
+ macOS/Linux(bash/zsh):
136
+
137
+ ```bash
138
+ weaver-work-cli --json plan run plan.report.get --input-json '{"type":"week","serialNumber":36}'
139
+ ```
@@ -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,123 @@
1
+ # 汇总生成报告:多模块数据采集作业链
2
+
3
+ ## 何时使用
4
+
5
+ 意图判定为 **A 生成链路**(汇总 / 生成 / 写 / 整理 + 周期词 + 报告类名词,且未命中查询类信号)时,读取本 reference 并按步骤链完整执行,**禁止跳步、禁止二次询问是否开始采集**。
6
+
7
+ ## 技能调用对应关系(数据来源唯一指定)
8
+
9
+ 凡是已安装对应模块的技能,**必须且只能**调用下表中给定的技能获取数据,严禁跳过,也严禁改用指定技能之外的其他技能;无相关数据的模块可不做统计、汇总与分析。
10
+
11
+ | 数据类别 | 唯一指定技能 |
12
+ | --- | --- |
13
+ | IM 消息 | `weaver-e10-yimiaoban` |
14
+ | 客户、联系人、商机、线索 | `weaver-e10-jiuchuanhui` |
15
+ | 项目、任务 | `weaver-e10-shijingran` |
16
+ | 日报 | `weaver-e10-blog` |
17
+ | 日程 | `weaver-e10-calendar` |
18
+ | 会议 | `weaver-e10-meeting` |
19
+ | 流程 | `weaver-e10-workflow` |
20
+
21
+ 技能调用名一律使用已安装技能 frontmatter 的 `name` 字段(个别技能目录名可能带 `__skillhub` 等后缀,以 `name` 为准)。人员姓名与人员 ID 解析使用 `weaver-e10-hrm`。
22
+
23
+ ## 作业步骤链
24
+
25
+ ### Step 0 前置准备(禁止调用任何报告接口)
26
+
27
+ - 若尚未确认登录态,先按共享规则读取 `../weaver-e10-shared/references/e10-auth-and-session.md` 并通过 `weaver-work-cli auth ...` 确认会话(Cookie 完整原始串 + eteamsid + User-Agent 三件套,缺一不可)。
28
+ - 根据用户表述计算报告周期时间范围(周报遵循 ISO8601,例如「上周」= 上周一至上周日);未明确周期类型时先向用户确认周/月/季/年,确认前不得臆造区间。
29
+ - 确定数据归属主体:默认当前登录人本人;若判定涉及他人且已获用户确认,则主体为该人。
30
+
31
+ ### Step 1~7 依序采集周期内数据
32
+
33
+ 顺序可调,但每个已安装模块都必须采集,不得因顺序原因遗漏。每个技能加载后按其自身 SKILL.md 与接口文档执行,**不要在本技能内自行构造该模块的 HTTP 请求**。
34
+
35
+ | Step | 模块 | 采集内容与筛选规则 |
36
+ | --- | --- | --- |
37
+ | 1 | IM 消息(`weaver-e10-yimiaoban`) | 仅统计发言时间落在周期内、本人发送的全部单聊与群聊消息内容,且必须完全统计不能只统计一部分。若某群聊中不含本人实际发言的消息,则不统计该群聊 |
38
+ | 2 | 日报(`weaver-e10-blog`) | 仅筛选周期内本人提交的日报内容 |
39
+ | 3 | 日程(`weaver-e10-calendar`) | 本人为创建人或参与人,且日程开始时间、结束时间任意一项落在周期内的日程;**排除请假类型日程** |
40
+ | 4 | 会议(`weaver-e10-meeting`) | 本人为创建人或参会人,且会议开始时间、结束时间任意一项落在周期内的会议 |
41
+ | 5 | 项目、任务(`weaver-e10-shijingran`) | 本人为创建人、负责人或参与人,且创建时间、完成时间均在周期内的项目与任务 |
42
+ | 6 | 客户/联系人/商机/线索(`weaver-e10-jiuchuanhui`) | 仅统计创建时间落在周期内的相关数据 |
43
+ | 7 | 流程(`weaver-e10-workflow`) | 本人创建的流程,以周期内创建时间为准;非本人创建的流程,仅统计与本人岗位相关且本人实际批准处理的流程;**待办、转办、知会、请假类流程不予统计**。汇总需结合表单内容、流转意见、签字意见归纳分析 |
44
+
45
+ **失败兜底(严格执行)**
46
+
47
+ - Step 1~7 中任一已安装技能调用失败或返回错误 → 停止采集并向用户说明是哪个模块失败;不得跳过该模块、不得改用其他技能、不得直接调用该模块 HTTP 接口、不得静默继续生成。
48
+ - 若确认某模块技能未安装 → 告知用户该模块无数据来源,由用户决定是否安装后重试,不得静默忽略。
49
+ - 查不到数据即该模块记为空,不影响其它模块继续。
50
+
51
+ ### Step 8 汇总润色
52
+
53
+ 按输出规范整合 Step 1~7 的数据,形成分节内容稿。禁止堆砌原始数据、禁止出现计数统计类内容。
54
+
55
+ ### Step 9 呈现并确认
56
+
57
+ 把汇总润色后的内容直观呈现给用户,并提示「是否生成对应周期的报告」,等待用户确认。
58
+
59
+ ### Step 10 重复性检查与创建
60
+
61
+ 用户确认后:
62
+
63
+ 1. 先调用 `plan.report.get` 按周期(报告年份 + 报告类型 + 报告周期,创建人取当前登录人)判断该周期报告是否已存在——**此时才允许触发版本路由与报告侧接口**。
64
+ 2. 已存在 → 不得重复创建,明确告知用户并征询是否改为编辑(改走 `plan.report.update.prepare`)。
65
+ 3. 不存在 → 按 [`plan-report-write.md`](plan-report-write.md) 走 `plan.report.create.prepare` → `plan.report.create.apply`。
66
+
67
+ ## 内容提取与输出规范
68
+
69
+ 1. **周期严格限定**:所有业务数据严格按报告周期的起止时间筛选。例如 2026 年第 36 周的报告,周期为 2026-08-31 ~ 2026-09-06。
70
+ 2. **按业务板块分节**:例如项目任务推进、会议日程执行、流程审批办理、内外沟通协作、客户营销运维、日常工作汇报等;禁止直接堆砌原始数据。
71
+ 3. **不暴露数据来源**:统计业务模块数据时,不要显示数据的来源模块、依据和获取方式,只呈现最终获取到的数据。
72
+ 4. **润色整合**:对原始数据进行润色整合、去重合并、提炼总结,剔除冗余信息,保证内容通顺、重点清晰、逻辑完整。
73
+ 5. **禁止计数统计**:汇总结果中禁止出现会话数、消息条数、被 @ 次数、被回复次数、会议场次、任务条数等任何计数统计类内容;只提炼有效工作事项,不统计无关闲聊。
74
+ 6. **先呈现后创建**:汇总内容必须先直观呈现给用户,并提示是否生成对应周期的报告;用户确认后才执行创建。
75
+
76
+ ## 命令
77
+
78
+ 判断某周期是否已提交(Step 10 第 1 步):
79
+
80
+ Windows PowerShell:
81
+
82
+ ```powershell
83
+ weaver-work-cli --json plan run plan.report.get --input-json '{"year":2026,"type":"week","serialNumber":36}'
84
+ ```
85
+
86
+ macOS/Linux(bash/zsh):
87
+
88
+ ```bash
89
+ weaver-work-cli --json plan run plan.report.get --input-json '{"year":2026,"type":"week","serialNumber":36}'
90
+ ```
91
+
92
+ 查看当前租户报告链路(仅在需要诊断时使用,采集阶段不要调用):
93
+
94
+ Windows PowerShell:
95
+
96
+ ```powershell
97
+ weaver-work-cli --json plan run plan.version.check --input-json '{}'
98
+ ```
99
+
100
+ macOS/Linux(bash/zsh):
101
+
102
+ ```bash
103
+ weaver-work-cli --json plan run plan.version.check --input-json '{}'
104
+ ```
105
+
106
+ ## 输出处理
107
+
108
+ - Step 8 产物是给用户看的分节内容稿,**不包含**任何计数统计、来源模块说明或数据库字段名。
109
+ - Step 9 必须显式询问用户是否生成报告。
110
+ - Step 10 的 `exists` 为 `true` 时停止创建,转为询问是否编辑。
111
+
112
+ ## 注意
113
+
114
+ - 采集阶段(Step 1~7)**禁止**调用 `plan.version.check`、`plan_searchAppver` 或任何报告侧接口。
115
+ - 不要因为一次汇总任务去调用指定技能之外的业务能力;只使用上表列出的技能。
116
+ - 数据主体默认当前登录人;涉及他人时必须先取得用户确认。
117
+
118
+ ## 失败处理
119
+
120
+ - 任一业务模块技能调用失败:停止采集,明确告知失败模块,不得静默跳过或改用其它技能。
121
+ - 模块技能未安装:告知用户该模块无数据来源,由用户决定是否安装后重试。
122
+ - 周期不明确:先向用户确认,确认前不臆造时间区间。
123
+ - 报告侧接口失败(`authentication` / `policy` / `api`):按 [`plan-overview-and-routing.md`](plan-overview-and-routing.md) 的失败处理执行。