weaver-work-cli 0.1.2 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (405) hide show
  1. package/README.md +176 -78
  2. package/dist/cmd/setup/index.js +5 -5
  3. package/dist/cmd/skills/index.js +1 -1
  4. package/dist/core/hooks.js +7 -0
  5. package/dist/index.js +0 -0
  6. package/dist/internal/e10/auth/commands.js +159 -54
  7. package/dist/internal/e10/auth/xiaoe.js +268 -0
  8. package/dist/internal/e10/context.js +16 -2
  9. package/dist/internal/e10/index.js +1 -0
  10. package/dist/internal/e10/request-runtime.js +345 -0
  11. package/dist/internal/skills/install.js +48 -6
  12. package/dist/internal/skills/reader.js +27 -0
  13. package/dist/shortcuts/archive/continuation.js +70 -0
  14. package/dist/shortcuts/archive/errors.js +53 -0
  15. package/dist/shortcuts/archive/host.js +197 -0
  16. package/dist/shortcuts/archive/index.js +363 -0
  17. package/dist/shortcuts/archive/manifest.js +45 -0
  18. package/dist/shortcuts/archive/operations/archive-info.js +55 -0
  19. package/dist/shortcuts/archive/operations/borrow-car.js +146 -0
  20. package/dist/shortcuts/archive/operations/borrow-list.js +200 -0
  21. package/dist/shortcuts/archive/operations/confirm.js +46 -0
  22. package/dist/shortcuts/archive/operations/download.js +238 -0
  23. package/dist/shortcuts/archive/operations/flow-url.js +240 -0
  24. package/dist/shortcuts/archive/operations/fonds.js +95 -0
  25. package/dist/shortcuts/archive/operations/getPageUrl.js +137 -0
  26. package/dist/shortcuts/archive/operations/registry.js +43 -0
  27. package/dist/shortcuts/archive/operations/search.js +88 -0
  28. package/dist/shortcuts/archive/operations/shared.js +120 -0
  29. package/dist/shortcuts/archive/operations/types.js +23 -0
  30. package/dist/shortcuts/archive/operations/upload.js +182 -0
  31. package/dist/shortcuts/archive/operations.js +13 -0
  32. package/dist/shortcuts/archive/render/search-format.js +276 -0
  33. package/dist/shortcuts/archive/render/search-view.js +125 -0
  34. package/dist/shortcuts/asset/continuation.js +70 -0
  35. package/dist/shortcuts/asset/errors.js +67 -0
  36. package/dist/shortcuts/asset/host.js +438 -0
  37. package/dist/shortcuts/asset/index.js +255 -0
  38. package/dist/shortcuts/asset/manifest.js +471 -0
  39. package/dist/shortcuts/asset/operations/query.js +249 -0
  40. package/dist/shortcuts/asset/operations/registry.js +85 -0
  41. package/dist/shortcuts/asset/operations/shared.js +100 -0
  42. package/dist/shortcuts/asset/operations/type-cache.js +49 -0
  43. package/dist/shortcuts/asset/operations/types.js +1 -0
  44. package/dist/shortcuts/asset/operations/viewlink.js +117 -0
  45. package/dist/shortcuts/asset/operations/write.js +435 -0
  46. package/dist/shortcuts/asset/operations.js +9 -0
  47. package/dist/shortcuts/calendar/continuation.js +70 -0
  48. package/dist/shortcuts/calendar/errors.js +53 -0
  49. package/dist/shortcuts/calendar/host.js +148 -0
  50. package/dist/shortcuts/calendar/index.js +125 -0
  51. package/dist/shortcuts/calendar/manifest.js +26 -0
  52. package/dist/shortcuts/calendar/operations/read.js +259 -0
  53. package/dist/shortcuts/calendar/operations/registry.js +31 -0
  54. package/dist/shortcuts/calendar/operations/shared.js +132 -0
  55. package/dist/shortcuts/calendar/operations/types.js +25 -0
  56. package/dist/shortcuts/calendar/operations/write.js +439 -0
  57. package/dist/shortcuts/calendar/operations.js +8 -0
  58. package/dist/shortcuts/ehr/continuation.js +70 -0
  59. package/dist/shortcuts/ehr/errors.js +53 -0
  60. package/dist/shortcuts/ehr/host.js +213 -0
  61. package/dist/shortcuts/ehr/index.js +205 -0
  62. package/dist/shortcuts/ehr/manifest.js +47 -0
  63. package/dist/shortcuts/ehr/operations/attend-read.js +373 -0
  64. package/dist/shortcuts/ehr/operations/attend-write.js +514 -0
  65. package/dist/shortcuts/ehr/operations/hr-contact.js +363 -0
  66. package/dist/shortcuts/ehr/operations/hr-ds.js +298 -0
  67. package/dist/shortcuts/ehr/operations/hr-report.js +386 -0
  68. package/dist/shortcuts/ehr/operations/recruit-write.js +1629 -0
  69. package/dist/shortcuts/ehr/operations/recruit.js +803 -0
  70. package/dist/shortcuts/ehr/operations/registry.js +43 -0
  71. package/dist/shortcuts/ehr/operations/salary.js +319 -0
  72. package/dist/shortcuts/ehr/operations/shared.js +246 -0
  73. package/dist/shortcuts/ehr/operations/types.js +25 -0
  74. package/dist/shortcuts/ehr/operations.js +25 -0
  75. package/dist/shortcuts/esb/continuation.js +70 -0
  76. package/dist/shortcuts/esb/errors.js +65 -0
  77. package/dist/shortcuts/esb/host.js +187 -0
  78. package/dist/shortcuts/esb/index.js +112 -0
  79. package/dist/shortcuts/esb/manifest.js +91 -0
  80. package/dist/shortcuts/esb/operations/input-format.js +31 -0
  81. package/dist/shortcuts/esb/operations/registry.js +48 -0
  82. package/dist/shortcuts/esb/operations/shared.js +152 -0
  83. package/dist/shortcuts/esb/operations/trigger.js +76 -0
  84. package/dist/shortcuts/esb/operations/types.js +21 -0
  85. package/dist/shortcuts/esb/operations.js +15 -0
  86. package/dist/shortcuts/fna/continuation.js +70 -0
  87. package/dist/shortcuts/fna/errors.js +59 -0
  88. package/dist/shortcuts/fna/host.js +146 -0
  89. package/dist/shortcuts/fna/index.js +111 -0
  90. package/dist/shortcuts/fna/manifest.js +41 -0
  91. package/dist/shortcuts/fna/operations/budget.js +124 -0
  92. package/dist/shortcuts/fna/operations/expense-center.js +148 -0
  93. package/dist/shortcuts/fna/operations/invoice-writeoff.js +212 -0
  94. package/dist/shortcuts/fna/operations/loan.js +195 -0
  95. package/dist/shortcuts/fna/operations/registry.js +35 -0
  96. package/dist/shortcuts/fna/operations/shared.js +210 -0
  97. package/dist/shortcuts/fna/operations/types.js +25 -0
  98. package/dist/shortcuts/fna/operations.js +19 -0
  99. package/dist/shortcuts/hrm/errors.js +38 -0
  100. package/dist/shortcuts/hrm/host.js +156 -0
  101. package/dist/shortcuts/hrm/index.js +111 -0
  102. package/dist/shortcuts/hrm/manifest.js +32 -0
  103. package/dist/shortcuts/hrm/operations/employee.js +338 -0
  104. package/dist/shortcuts/hrm/operations/org.js +110 -0
  105. package/dist/shortcuts/hrm/operations/position.js +176 -0
  106. package/dist/shortcuts/hrm/operations/registry.js +33 -0
  107. package/dist/shortcuts/hrm/operations/shared.js +143 -0
  108. package/dist/shortcuts/hrm/operations/types.js +23 -0
  109. package/dist/shortcuts/hrm/operations.js +19 -0
  110. package/dist/shortcuts/index.js +24 -0
  111. package/dist/shortcuts/invoice/host.js +99 -94
  112. package/dist/shortcuts/invoice/index.js +58 -59
  113. package/dist/shortcuts/invoice/manifest.js +200 -3
  114. package/dist/shortcuts/invoice/operations/browse-field.js +17 -0
  115. package/dist/shortcuts/invoice/operations/issuing.js +198 -0
  116. package/dist/shortcuts/invoice/operations/registry.js +17 -0
  117. package/dist/shortcuts/invoice/operations/reim.js +401 -0
  118. package/dist/shortcuts/invoice/operations/shared.js +247 -0
  119. package/dist/shortcuts/jiuchuanhui/cache.js +441 -0
  120. package/dist/shortcuts/jiuchuanhui/continuation.js +70 -0
  121. package/dist/shortcuts/jiuchuanhui/errors.js +59 -0
  122. package/dist/shortcuts/jiuchuanhui/host.js +159 -0
  123. package/dist/shortcuts/jiuchuanhui/index.js +109 -0
  124. package/dist/shortcuts/jiuchuanhui/manifest.js +469 -0
  125. package/dist/shortcuts/jiuchuanhui/operations/datajson.js +214 -0
  126. package/dist/shortcuts/jiuchuanhui/operations/esb.js +157 -0
  127. package/dist/shortcuts/jiuchuanhui/operations/generic.js +146 -0
  128. package/dist/shortcuts/jiuchuanhui/operations/registry.js +133 -0
  129. package/dist/shortcuts/jiuchuanhui/operations/shared.js +158 -0
  130. package/dist/shortcuts/jiuchuanhui/operations/types.js +1 -0
  131. package/dist/shortcuts/jiuchuanhui/operations.js +8 -0
  132. package/dist/shortcuts/mail/continuation.js +70 -0
  133. package/dist/shortcuts/mail/errors.js +53 -0
  134. package/dist/shortcuts/mail/host.js +182 -0
  135. package/dist/shortcuts/mail/index.js +519 -0
  136. package/dist/shortcuts/mail/manifest.js +38 -0
  137. package/dist/shortcuts/mail/operations/mail-blacklist.js +79 -0
  138. package/dist/shortcuts/mail/operations/mail-contacts.js +195 -0
  139. package/dist/shortcuts/mail/operations/mail-manage.js +335 -0
  140. package/dist/shortcuts/mail/operations/mail-read.js +508 -0
  141. package/dist/shortcuts/mail/operations/mail-send.js +474 -0
  142. package/dist/shortcuts/mail/operations/mail-sign.js +203 -0
  143. package/dist/shortcuts/mail/operations/mail-template.js +170 -0
  144. package/dist/shortcuts/mail/operations/registry.js +41 -0
  145. package/dist/shortcuts/mail/operations/shared.js +64 -0
  146. package/dist/shortcuts/mail/operations/types.js +27 -0
  147. package/dist/shortcuts/mail/operations.js +19 -0
  148. package/dist/shortcuts/meeting/continuation.js +70 -0
  149. package/dist/shortcuts/meeting/errors.js +63 -0
  150. package/dist/shortcuts/meeting/host.js +167 -0
  151. package/dist/shortcuts/meeting/index.js +123 -0
  152. package/dist/shortcuts/meeting/manifest.js +64 -0
  153. package/dist/shortcuts/meeting/operations/catalogs.js +58 -0
  154. package/dist/shortcuts/meeting/operations/change.js +242 -0
  155. package/dist/shortcuts/meeting/operations/conflicts.js +142 -0
  156. package/dist/shortcuts/meeting/operations/create.js +349 -0
  157. package/dist/shortcuts/meeting/operations/env.js +191 -0
  158. package/dist/shortcuts/meeting/operations/lifecycle.js +139 -0
  159. package/dist/shortcuts/meeting/operations/meetings.js +73 -0
  160. package/dist/shortcuts/meeting/operations/receipts.js +195 -0
  161. package/dist/shortcuts/meeting/operations/registry.js +47 -0
  162. package/dist/shortcuts/meeting/operations/rooms.js +132 -0
  163. package/dist/shortcuts/meeting/operations/shared.js +112 -0
  164. package/dist/shortcuts/meeting/operations/signs.js +41 -0
  165. package/dist/shortcuts/meeting/operations/types.js +25 -0
  166. package/dist/shortcuts/meeting/operations.js +19 -0
  167. package/dist/shortcuts/plan/continuation.js +70 -0
  168. package/dist/shortcuts/plan/errors.js +70 -0
  169. package/dist/shortcuts/plan/host.js +180 -0
  170. package/dist/shortcuts/plan/index.js +150 -0
  171. package/dist/shortcuts/plan/manifest.js +53 -0
  172. package/dist/shortcuts/plan/operations/link.js +256 -0
  173. package/dist/shortcuts/plan/operations/read.js +259 -0
  174. package/dist/shortcuts/plan/operations/registry.js +33 -0
  175. package/dist/shortcuts/plan/operations/shared.js +246 -0
  176. package/dist/shortcuts/plan/operations/types.js +49 -0
  177. package/dist/shortcuts/plan/operations/version.js +49 -0
  178. package/dist/shortcuts/plan/operations/write.js +710 -0
  179. package/dist/shortcuts/plan/operations.js +8 -0
  180. package/dist/shortcuts/yimiaoban/continuation.js +70 -0
  181. package/dist/shortcuts/yimiaoban/errors.js +61 -0
  182. package/dist/shortcuts/yimiaoban/host.js +469 -0
  183. package/dist/shortcuts/yimiaoban/index.js +271 -0
  184. package/dist/shortcuts/yimiaoban/manifest.js +28 -0
  185. package/dist/shortcuts/yimiaoban/operations/file-user.js +288 -0
  186. package/dist/shortcuts/yimiaoban/operations/group-read.js +477 -0
  187. package/dist/shortcuts/yimiaoban/operations/group-write.js +591 -0
  188. package/dist/shortcuts/yimiaoban/operations/msg-parse.js +429 -0
  189. package/dist/shortcuts/yimiaoban/operations/msg-sync.js +519 -0
  190. package/dist/shortcuts/yimiaoban/operations/msg-write.js +593 -0
  191. package/dist/shortcuts/yimiaoban/operations/person.js +102 -0
  192. package/dist/shortcuts/yimiaoban/operations/registry.js +38 -0
  193. package/dist/shortcuts/yimiaoban/operations/session.js +437 -0
  194. package/dist/shortcuts/yimiaoban/operations/shared.js +236 -0
  195. package/dist/shortcuts/yimiaoban/operations/types.js +27 -0
  196. package/dist/shortcuts/yimiaoban/operations/write-util.js +78 -0
  197. package/dist/shortcuts/yimiaoban/operations.js +8 -0
  198. package/docs/SKILL.md +11 -7
  199. package/docs/_catalog.md +28 -5
  200. package/docs/agent-invoice.md +19 -9
  201. package/docs/agent-skill-install.md +141 -22
  202. package/docs/calendar.md +87 -0
  203. package/docs/e10-auth.md +28 -9
  204. package/docs/ehr.md +186 -0
  205. package/docs/esb.md +64 -0
  206. package/docs/fna.md +72 -0
  207. package/docs/hrm.md +89 -0
  208. package/docs/invoice.md +61 -20
  209. package/docs/jiuchuanhui.md +131 -0
  210. package/docs/meeting.md +48 -0
  211. package/docs/operation-manual.md +443 -0
  212. package/docs/plan.md +82 -0
  213. package/docs/wenshuding.md +129 -0
  214. package/docs/yimiaoban.md +86 -0
  215. package/docs/ziguanjia.md +89 -0
  216. package/package.json +4 -4
  217. package/scripts/package-skill.mjs +127 -34
  218. package/scripts/postbuild.mjs +13 -0
  219. package/skill-template/business-info.json +16 -2
  220. package/skill-template/domains/calendar.md +15 -0
  221. package/skill-template/domains/esb.md +13 -0
  222. package/skill-template/domains/hrm.md +16 -0
  223. package/skill-template/domains/jiuchuanhui.md +23 -0
  224. package/skill-template/domains/jucailin.md +22 -0
  225. package/skill-template/domains/mail.md +21 -0
  226. package/skill-template/domains/meeting.md +3 -0
  227. package/skill-template/domains/plan.md +17 -0
  228. package/skill-template/domains/qiyecheng.md +17 -0
  229. package/skill-template/domains/shared.md +5 -3
  230. package/skill-template/domains/skill-maker.md +10 -0
  231. package/skill-template/domains/wenshuding.md +22 -0
  232. package/skill-template/domains/{invoice.md → yepiaotong.md} +4 -0
  233. package/skill-template/domains/yimiaoban.md +21 -0
  234. package/skill-template/domains/ziguanjia.md +21 -0
  235. package/skill-template/master-skill-template.md +12 -6
  236. package/skill-template/skill-template.md +26 -10
  237. package/skills/weaver-e10-calendar/SKILL.md +102 -0
  238. package/skills/weaver-e10-calendar/product.json +8 -0
  239. package/skills/weaver-e10-calendar/references/calendar-app-check.md +65 -0
  240. package/skills/weaver-e10-calendar/references/calendar-dict.md +55 -0
  241. package/skills/weaver-e10-calendar/references/calendar-query.md +70 -0
  242. package/skills/weaver-e10-calendar/references/calendar-write.md +97 -0
  243. package/skills/weaver-e10-calendar/references/source-manifest.json +54 -0
  244. package/skills/weaver-e10-esb/SKILL.md +103 -0
  245. package/skills/weaver-e10-esb/product.json +8 -0
  246. package/skills/weaver-e10-esb/references/input-format.md +52 -0
  247. package/skills/weaver-e10-esb/references/source-manifest.json +242 -0
  248. package/skills/weaver-e10-esb/references/trigger.md +99 -0
  249. package/skills/weaver-e10-hrm/SKILL.md +88 -0
  250. package/skills/weaver-e10-hrm/product.json +8 -0
  251. package/skills/weaver-e10-hrm/references/employee.md +109 -0
  252. package/skills/weaver-e10-hrm/references/org.md +95 -0
  253. package/skills/weaver-e10-hrm/references/position.md +95 -0
  254. package/skills/weaver-e10-hrm/references/source-manifest.json +121 -0
  255. package/skills/weaver-e10-jiuchuanhui/SKILL.md +175 -0
  256. package/skills/weaver-e10-jiuchuanhui/product.json +8 -0
  257. package/skills/weaver-e10-jiuchuanhui/references/cache.md +110 -0
  258. package/skills/weaver-e10-jiuchuanhui/references/clue.md +61 -0
  259. package/skills/weaver-e10-jiuchuanhui/references/contact-plan.md +56 -0
  260. package/skills/weaver-e10-jiuchuanhui/references/contact-records.md +48 -0
  261. package/skills/weaver-e10-jiuchuanhui/references/contact.md +56 -0
  262. package/skills/weaver-e10-jiuchuanhui/references/customer.md +69 -0
  263. package/skills/weaver-e10-jiuchuanhui/references/disabled-capabilities.md +24 -0
  264. package/skills/weaver-e10-jiuchuanhui/references/discovery-config.md +60 -0
  265. package/skills/weaver-e10-jiuchuanhui/references/general-helpers.md +59 -0
  266. package/skills/weaver-e10-jiuchuanhui/references/jiuchuanhui-entry.md +60 -0
  267. package/skills/weaver-e10-jiuchuanhui/references/sale.md +72 -0
  268. package/skills/weaver-e10-jiuchuanhui/references/source-manifest.json +2632 -0
  269. package/skills/weaver-e10-jucailin/SKILL.md +102 -0
  270. package/skills/weaver-e10-jucailin/product.json +8 -0
  271. package/skills/weaver-e10-jucailin/references/attend-read.md +73 -0
  272. package/skills/weaver-e10-jucailin/references/attend-write.md +82 -0
  273. package/skills/weaver-e10-jucailin/references/hr-contact.md +92 -0
  274. package/skills/weaver-e10-jucailin/references/hr-datasource.md +104 -0
  275. package/skills/weaver-e10-jucailin/references/hr-report.md +76 -0
  276. package/skills/weaver-e10-jucailin/references/recruit-read.md +76 -0
  277. package/skills/weaver-e10-jucailin/references/recruit-write.md +70 -0
  278. package/skills/weaver-e10-jucailin/references/safety-boundaries.md +35 -0
  279. package/skills/weaver-e10-jucailin/references/salary.md +110 -0
  280. package/skills/weaver-e10-jucailin/references/source-manifest.json +152 -0
  281. package/skills/weaver-e10-mail/SKILL.md +152 -0
  282. package/skills/weaver-e10-mail/product.json +8 -0
  283. package/skills/weaver-e10-mail/references/mail-agent-entry.md +47 -0
  284. package/skills/weaver-e10-mail/references/mail-attachment.md +30 -0
  285. package/skills/weaver-e10-mail/references/mail-blacklist.md +27 -0
  286. package/skills/weaver-e10-mail/references/mail-contacts.md +33 -0
  287. package/skills/weaver-e10-mail/references/mail-manage.md +44 -0
  288. package/skills/weaver-e10-mail/references/mail-read.md +76 -0
  289. package/skills/weaver-e10-mail/references/mail-send.md +43 -0
  290. package/skills/weaver-e10-mail/references/mail-sign.md +33 -0
  291. package/skills/weaver-e10-mail/references/mail-template.md +31 -0
  292. package/skills/weaver-e10-mail/references/safety-boundaries.md +32 -0
  293. package/skills/weaver-e10-meeting/SKILL.md +106 -0
  294. package/skills/weaver-e10-meeting/product.json +8 -0
  295. package/skills/weaver-e10-meeting/references/meeting-change.md +67 -0
  296. package/skills/weaver-e10-meeting/references/meeting-create.md +52 -0
  297. package/skills/weaver-e10-meeting/references/meeting-lifecycle.md +57 -0
  298. package/skills/weaver-e10-meeting/references/meeting-queries.md +61 -0
  299. package/skills/weaver-e10-meeting/references/meeting-receipts-signs.md +48 -0
  300. package/skills/weaver-e10-meeting/references/meeting-update.md +7 -0
  301. package/skills/weaver-e10-meeting/references/source-manifest.json +50 -0
  302. package/skills/weaver-e10-plan/SKILL.md +140 -0
  303. package/skills/weaver-e10-plan/product.json +8 -0
  304. package/skills/weaver-e10-plan/references/plan-collect-and-compose.md +123 -0
  305. package/skills/weaver-e10-plan/references/plan-overview-and-routing.md +138 -0
  306. package/skills/weaver-e10-plan/references/plan-report-query.md +154 -0
  307. package/skills/weaver-e10-plan/references/plan-report-remind.md +104 -0
  308. package/skills/weaver-e10-plan/references/plan-report-write.md +162 -0
  309. package/skills/weaver-e10-plan/references/source-manifest.json +858 -0
  310. package/skills/weaver-e10-qiyecheng/SKILL.md +119 -0
  311. package/skills/weaver-e10-qiyecheng/product.json +8 -0
  312. package/skills/weaver-e10-qiyecheng/references/budget.md +65 -0
  313. package/skills/weaver-e10-qiyecheng/references/catalog.md +56 -0
  314. package/skills/weaver-e10-qiyecheng/references/expense-center.md +51 -0
  315. package/skills/weaver-e10-qiyecheng/references/invoice-writeoff.md +57 -0
  316. package/skills/weaver-e10-qiyecheng/references/loan-management.md +59 -0
  317. package/skills/weaver-e10-qiyecheng/references/source-manifest.json +698 -0
  318. package/skills/weaver-e10-shared/SKILL.md +90 -0
  319. package/skills/weaver-e10-shared/references/e10-auth-and-session.md +127 -0
  320. package/skills/{weaver-work-cli-shared → weaver-e10-shared}/references/json-output-contract.md +34 -0
  321. package/skills/weaver-e10-shared/references/weaver-e10-installation.md +110 -0
  322. package/skills/weaver-e10-skill-maker/SKILL.md +78 -0
  323. package/skills/weaver-e10-skill-maker/product.json +8 -0
  324. package/skills/weaver-e10-skill-maker/references/business-skill-generation.md +124 -0
  325. package/skills/weaver-e10-skill-maker/references/detector-validation.md +101 -0
  326. package/skills/weaver-e10-skill-maker/references/module-cli-generation.md +230 -0
  327. package/skills/weaver-e10-skill-maker/references/post-generation-install.md +105 -0
  328. package/skills/weaver-e10-skill-maker/references/source-update-detection.md +261 -0
  329. package/skills/weaver-e10-skill-maker/references/weaver-skill-style.md +141 -0
  330. package/skills/weaver-e10-wenshuding/SKILL.md +158 -0
  331. package/skills/weaver-e10-wenshuding/product.json +8 -0
  332. package/skills/weaver-e10-wenshuding/references/archive-agent-entry.md +63 -0
  333. package/skills/weaver-e10-wenshuding/references/archive-borrow-car.md +52 -0
  334. package/skills/weaver-e10-wenshuding/references/archive-borrow-list.md +52 -0
  335. package/skills/weaver-e10-wenshuding/references/archive-disabled-capabilities.md +22 -0
  336. package/skills/weaver-e10-wenshuding/references/archive-download.md +48 -0
  337. package/skills/weaver-e10-wenshuding/references/archive-flow.md +46 -0
  338. package/skills/weaver-e10-wenshuding/references/archive-fonds.md +34 -0
  339. package/skills/weaver-e10-wenshuding/references/archive-info.md +33 -0
  340. package/skills/weaver-e10-wenshuding/references/archive-search.md +52 -0
  341. package/skills/weaver-e10-wenshuding/references/archive-upload.md +41 -0
  342. package/skills/weaver-e10-wenshuding/references/source-manifest.json +517 -0
  343. package/skills/weaver-e10-yepiaotong/SKILL.md +184 -0
  344. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-add.md +1 -1
  345. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-agent-entry.md +16 -9
  346. package/skills/weaver-e10-yepiaotong/references/invoice-browse-field-data.md +204 -0
  347. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-delete.md +1 -1
  348. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-detail.md +13 -5
  349. package/skills/weaver-e10-yepiaotong/references/invoice-disabled-capabilities.md +28 -0
  350. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-download.md +9 -2
  351. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-enterprise-list.md +12 -4
  352. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-file-upload.md +9 -2
  353. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-import.md +16 -7
  354. package/skills/weaver-e10-yepiaotong/references/invoice-issuing-examples.md +120 -0
  355. package/skills/weaver-e10-yepiaotong/references/invoice-issuing-field-rules.md +161 -0
  356. package/skills/weaver-e10-yepiaotong/references/invoice-issuing.md +99 -0
  357. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-ocr-preview.md +12 -4
  358. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-personal-list.md +12 -4
  359. package/skills/weaver-e10-yepiaotong/references/invoice-red.md +261 -0
  360. package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +97 -0
  361. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-update.md +1 -1
  362. package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/references/invoice-validation-preview.md +9 -2
  363. package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +1340 -0
  364. package/skills/weaver-e10-yepiaotong/references/reim-examples.md +845 -0
  365. package/skills/weaver-e10-yepiaotong/references/reim-expense-subject-rules.md +94 -0
  366. package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +449 -0
  367. package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +266 -0
  368. package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +494 -0
  369. package/skills/weaver-e10-yepiaotong/references/source-manifest.json +1103 -0
  370. package/skills/weaver-e10-yimiaoban/SKILL.md +104 -0
  371. package/skills/weaver-e10-yimiaoban/product.json +8 -0
  372. package/skills/weaver-e10-yimiaoban/references/ding-write.md +68 -0
  373. package/skills/weaver-e10-yimiaoban/references/error-codes.md +85 -0
  374. package/skills/weaver-e10-yimiaoban/references/field-resolution.md +46 -0
  375. package/skills/weaver-e10-yimiaoban/references/file-user-i18n.md +54 -0
  376. package/skills/weaver-e10-yimiaoban/references/group-read.md +55 -0
  377. package/skills/weaver-e10-yimiaoban/references/group-write.md +72 -0
  378. package/skills/weaver-e10-yimiaoban/references/msg-read.md +59 -0
  379. package/skills/weaver-e10-yimiaoban/references/msg-write.md +64 -0
  380. package/skills/weaver-e10-yimiaoban/references/person.md +44 -0
  381. package/skills/weaver-e10-yimiaoban/references/safety-boundaries.md +61 -0
  382. package/skills/weaver-e10-yimiaoban/references/session-sysmsg.md +47 -0
  383. package/skills/weaver-e10-yimiaoban/references/source-manifest.json +485 -0
  384. package/skills/weaver-e10-ziguanjia/SKILL.md +163 -0
  385. package/skills/weaver-e10-ziguanjia/product.json +8 -0
  386. package/skills/weaver-e10-ziguanjia/references/source-manifest.json +147 -0
  387. package/skills/weaver-e10-ziguanjia/references/ziguanjia-agent-entry.md +65 -0
  388. package/skills/weaver-e10-ziguanjia/references/ziguanjia-create.md +45 -0
  389. package/skills/weaver-e10-ziguanjia/references/ziguanjia-depre.md +48 -0
  390. package/skills/weaver-e10-ziguanjia/references/ziguanjia-disabled-capabilities.md +22 -0
  391. package/skills/weaver-e10-ziguanjia/references/ziguanjia-purch.md +57 -0
  392. package/skills/weaver-e10-ziguanjia/references/ziguanjia-query.md +62 -0
  393. package/skills/weaver-e10-ziguanjia/references/ziguanjia-repair.md +83 -0
  394. package/skills/weaver-e10-ziguanjia/references/ziguanjia-resolve.md +49 -0
  395. package/skills/weaver-e10-ziguanjia/references/ziguanjia-return.md +70 -0
  396. package/skills/weaver-e10-ziguanjia/references/ziguanjia-update.md +45 -0
  397. package/skills/weaver-e10-ziguanjia/references/ziguanjia-use.md +60 -0
  398. package/skills/weaver-e10-ziguanjia/references/ziguanjia-viewlink.md +81 -0
  399. package/skills/weaver-work-cli-invoice/SKILL.md +0 -122
  400. package/skills/weaver-work-cli-invoice/references/invoice-disabled-capabilities.md +0 -26
  401. package/skills/weaver-work-cli-shared/SKILL.md +0 -63
  402. package/skills/weaver-work-cli-shared/references/e10-auth-and-session.md +0 -90
  403. package/skills/weaver-work-cli-shared/references/weaver-work-cli-installation.md +0 -73
  404. /package/skills/{weaver-work-cli-shared → weaver-e10-shared}/references/high-risk-write.md +0 -0
  405. /package/skills/{weaver-work-cli-invoice → weaver-e10-yepiaotong}/product.json +0 -0
@@ -0,0 +1,61 @@
1
+ # 会议与会议室查询
2
+
3
+ ## 何时使用
4
+
5
+ 查今天的会议 / 会议列表、探测环境模式、建会前置判断、会议室与占用、会议类型。
6
+
7
+ ## 输入要点
8
+
9
+ - 时间格式统一 `yyyy-MM-dd HH:mm`;日期 `yyyy-MM-dd`。
10
+ - 长 id(会议室/会议/人员)超 2^53 必须字符串。
11
+ - `meeting.list` 的接口 body 过滤实测不生效:CLI 采用空 body 拉全量 + 客户端 `filterDate` 过滤,**不要尝试给 body 塞过滤字段**。
12
+
13
+ ## 命令
14
+
15
+ Windows PowerShell:
16
+
17
+ ```powershell
18
+ weaver-work-cli --json meeting run meeting.env.detect --input-json '{}'
19
+ weaver-work-cli --json meeting run meeting.list --input-json '{"filterDate":"2026-09-11"}'
20
+ weaver-work-cli --json meeting today
21
+ weaver-work-cli --json meeting run meeting.room.list --input-json '{"beginDate":"2026-09-11 09:00","endDate":"2026-09-11 10:00","onlyAvailable":true}'
22
+ weaver-work-cli --json meeting run meeting.type.list --input-json '{"name":"项目","includeCount":true}'
23
+ weaver-work-cli --json meeting run meeting.room.usage --input-json '{"roomid":"1297870848451641350","bywhat":4,"currentdate":"2026-09-11"}'
24
+ weaver-work-cli --json meeting run meeting.calendar.base --input-json '{}'
25
+ weaver-work-cli --json meeting run meeting.detail.field --input-json '{"id":"1305624900858404950"}'
26
+ ```
27
+
28
+ macOS/Linux(bash/zsh):
29
+
30
+ ```bash
31
+ weaver-work-cli --json meeting run meeting.env.detect --input-json '{}'
32
+ weaver-work-cli --json meeting run meeting.list --input-json '{"filterDate":"2026-09-11"}'
33
+ weaver-work-cli --json meeting today
34
+ weaver-work-cli --json meeting run meeting.room.list --input-json '{"beginDate":"2026-09-11 09:00","endDate":"2026-09-11 10:00","onlyAvailable":true}'
35
+ weaver-work-cli --json meeting run meeting.type.list --input-json '{"name":"项目","includeCount":true}'
36
+ weaver-work-cli --json meeting run meeting.room.usage --input-json '{"roomid":"1297870848451641350","bywhat":4,"currentdate":"2026-09-11"}'
37
+ weaver-work-cli --json meeting run meeting.calendar.base --input-json '{}'
38
+ weaver-work-cli --json meeting run meeting.detail.field --input-json '{"id":"1305624900858404950"}'
39
+ ```
40
+
41
+ ## 输出处理
42
+
43
+ - `meeting.list` 返回 `meetings[]`(含 `id`/`name`/`beginDatetime`/`endDatetime`/`address`/`mtStatus`),按开始时间升序输出 Markdown 表格;CLI 自动翻页拉全量后做客户端 `filterDate` 过滤。
44
+ - `meeting.room.list` 返回 `rooms[]`(`disabled` 已归一化为布尔)与 `availableRooms[]`;带时间范围时 `disabled=true` 即该时段已被占用。
45
+ - `meeting.calendar.base` 返回 `createBaseData`:`onlyFlowCreate`(0=可手动建会 1=只能流程建会)、`workFlowBaseIds`、`repeatWorkFlowBaseIds`、`existWorkFlow`。
46
+ - `meeting.env.detect` 返回 `mode: "eb" | "standard"` + `fromCache`:
47
+ - **默认按 baseUrl 读缓存**(第一次探测成功后固化到 CLI 状态目录),命中时不发网络请求;
48
+ - `refresh: true` 强制重新冒烟并更新缓存(用户说"重新探测/刷新模式"时用);
49
+ - 标准版回退时附带 `ebSmokeError`(EB 冒烟失败原因,用于诊断);
50
+ - 两者冒烟均失败时报 `env_unavailable`(环境未配置完整,禁止强行执行)。
51
+
52
+ ## 注意
53
+
54
+ - 示例中的 id 均为 `PLACEHOLDER_VALUE`,实际调用替换为真实查询结果。
55
+ - 标准 `weaver-work-cli --json` 输出 envelope:成功 `ok=true`;失败看 `error.type/subtype/message`。
56
+
57
+ ## 失败处理
58
+
59
+ - `env_unavailable`:提示环境会议应用未安装或接口未配置完整,停止。
60
+ - `permission_denied`(HTTP 403 语义):提示联系管理员开通接口权限。
61
+ - `session_expired`:走 `weaver-work-cli auth login --base-url <域名>` 登录流程。
@@ -0,0 +1,48 @@
1
+ # 回执与签到
2
+
3
+ ## 何时使用
4
+
5
+ 查会议回执情况、给某人回执(参加/不参加/请假)、查签到记录与统计。
6
+
7
+ ## 输入要点
8
+
9
+ - 回执更新**必须传回执记录主键 `id`**(不是 `memberId`);`prepare` 会自动按 `memberId` 回查定位。
10
+ - `attendStatus` 枚举:`0`=未填写、`1`=参加、`2`=不参加(回执"否/请假"传 2)。
11
+ - 回执列表接口必须带 `isMobile`(CLI 缺省 `false`;缺失会导致后端 NPE→500,已被 CLI 托管)。
12
+
13
+ ## 命令
14
+
15
+ Windows PowerShell:
16
+
17
+ ```powershell
18
+ weaver-work-cli --json meeting run meeting.receipt.list --input-json '{"mtId":"1305624900858404950"}'
19
+ weaver-work-cli --json meeting run meeting.receipt.update.prepare --input-json '{"mtId":"1305624900858404950","memberId":"101","attendStatus":2,"remark":"请假"}'
20
+ # 用户确认后:
21
+ weaver-work-cli --json meeting run meeting.receipt.update.apply --input-json '{"confirm":true,"continuation":"<prepare返回的continuation>","mtId":"1305624900858404950","memberId":"101","attendStatus":2,"remark":"请假"}'
22
+ weaver-work-cli --json meeting run meeting.sign.list --input-json '{"mtId":"1305624900858404950"}'
23
+ ```
24
+
25
+ macOS/Linux(bash/zsh):
26
+
27
+ ```bash
28
+ weaver-work-cli --json meeting run meeting.receipt.list --input-json '{"mtId":"1305624900858404950"}'
29
+ weaver-work-cli --json meeting run meeting.receipt.update.prepare --input-json '{"mtId":"1305624900858404950","memberId":"101","attendStatus":2,"remark":"请假"}'
30
+ # 用户确认后:
31
+ weaver-work-cli --json meeting run meeting.receipt.update.apply --input-json '{"confirm":true,"continuation":"<prepare返回的continuation>","mtId":"1305624900858404950","memberId":"101","attendStatus":2,"remark":"请假"}'
32
+ weaver-work-cli --json meeting run meeting.sign.list --input-json '{"mtId":"1305624900858404950"}'
33
+ ```
34
+
35
+ ## 输出处理
36
+
37
+ - `receipt.list` 返回 `receipts[]`(含 `id`/`memberId`/`attendStatus`/`remark`);`receipt.update.prepare` 返回 `preview`(含定位到的回执记录 `id`)。
38
+ - `sign.list` 返回 `signs[]` 与 `summary`(`total`/`signed`/`unsigned`),输出 Markdown 表格。
39
+
40
+ ## 注意
41
+
42
+ - `prepare` 找不到参会人回执记录时报 `receipt_not_found`:先用 `meeting.receipt.list` 核对 `memberId`。
43
+ - `apply` 前必须取得用户对"目标回执 + 状态 + 备注"的明确确认。
44
+
45
+ ## 失败处理
46
+
47
+ - `target_changed` / `continuation_expired`:重新 prepare 再确认。
48
+ - 写请求发出后网络中断 → `partial/write_uncertain`:禁止自动重试,先 `meeting.receipt.list` 回查是否已生效。
@@ -0,0 +1,7 @@
1
+ # 已迁移
2
+
3
+ 本文件已由 [meeting-change.md](meeting-change.md) 取代。
4
+
5
+ - 业务术语为「变更」;CLI operation 为 `meeting.change.prepare` / `meeting.change.apply`。
6
+ - 旧 `meeting.update.*` 已下线:它会固定发送 `operateType=UPDATE`,与"草稿走 UPDATE、正常走 CHANGE"的真实业务语义不符。
7
+ - 本文件可安全删除。
@@ -0,0 +1,50 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "generatedAt": "2026-09-11",
4
+ "generator": "weaver-e10-skill-maker",
5
+ "sourceLocation": "user-provided",
6
+ "note": "源资料为用户提供位置上的本机文件,此处只记录名称与角色,不记录本机绝对路径;更新检测按文件级指纹(size+sha256,在源资料位置按需计算)执行,标记弱检测。",
7
+ "sources": [
8
+ {
9
+ "source": "weaver-e10-meeting (standalone skill) v2.4.2 — SKILL.md",
10
+ "role": "existing-skill",
11
+ "note": "standalone 双模式会议 Skill(业务编排/冲突铁律/链接规则的来源)"
12
+ },
13
+ {
14
+ "source": "weaver-e10-meeting (standalone skill) — references/meeting-business-logic.md",
15
+ "role": "api-doc",
16
+ "note": "标准版接口契约权威来源(路径/入参/坑位:SUBMIT+空id、cansub、回执 id、isMobile、finishAt 禁 0、长 id 字符串)"
17
+ },
18
+ {
19
+ "source": "weaver-e10-meeting (standalone skill) — references/meeting-urls.md",
20
+ "role": "api-doc",
21
+ "note": "打开链接 URL 模板(标准版 meetingSingle)"
22
+ },
23
+ {
24
+ "source": "weaver-work-cli repository (git release b910e60, v0.1.3)",
25
+ "role": "code",
26
+ "note": "生成目标仓库;结构对齐 src/shortcuts/hrm 与 calendar 写链样板"
27
+ }
28
+ ],
29
+ "fingerprint": "weak",
30
+ "operationImpact": {
31
+ "meeting-business-logic.md": [
32
+ "meeting.env.detect",
33
+ "meeting.calendar.base",
34
+ "meeting.list",
35
+ "meeting.room.list",
36
+ "meeting.room.usage",
37
+ "meeting.type.list",
38
+ "meeting.detail.field",
39
+ "meeting.conflict.room",
40
+ "meeting.conflict.member",
41
+ "meeting.conflict.roomAttribute",
42
+ "meeting.create.prepare",
43
+ "meeting.create.apply",
44
+ "meeting.receipt.list",
45
+ "meeting.receipt.update.prepare",
46
+ "meeting.receipt.update.apply",
47
+ "meeting.sign.list"
48
+ ]
49
+ }
50
+ }
@@ -0,0 +1,140 @@
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
+
21
+ 本技能覆盖报告业务域:**汇总生成报告**(多模块采集后整合)、**查询报告详情**、**分页查询报告**、**新建**、**修改**、**发布**、**撤回**、**发送提交提醒**、**查看报告评论**。写操作全部走 prepare→apply 确认协议。
22
+
23
+ ## 零、第一步:意图判定(先于任何接口调用)
24
+
25
+ 自上而下命中即止,不需要二次询问:
26
+
27
+ | 命中信号 | 走向 | 是否采集业务数据 |
28
+ | --- | --- | --- |
29
+ | 查看 / 查询 / 列表 / 共享给我的 / 团队 / 下属 / 成员 / 某某某的报告 / 已提交 / 发布 / 撤回 / 修改 / 提醒他们交报告 | B 查询与管理链路 | **禁止**调用任何业务模块采集数据 |
30
+ | 动词(汇总 / 生成 / 写 / 整理 / 总结 / 帮我出一份)+ 对象(周期词 + 报告类名词),且未命中上面任何信号 | A 生成与汇总链路 | 必须按采集作业链采集 |
31
+
32
+ 歧义消解:「汇总上周报告」「生成本周报告」「帮我写周报 / 写月报 / 写季报 / 写年报」「帮我整理上周工作写报告」「把上周的工作总结成周报」一律归入 **A 生成链路**,不得因为出现「报告」二字而改走查询链路。
33
+
34
+ A 链路细节(采集模块、时间范围、输出规范)读 [`references/plan-collect-and-compose.md`](references/plan-collect-and-compose.md);B 链路读 [`references/plan-report-query.md`](references/plan-report-query.md)。
35
+
36
+ ## 命令入口
37
+
38
+ ```text
39
+ weaver-work-cli plan --help
40
+ weaver-work-cli plan schema
41
+ weaver-work-cli --json plan run <operation> --input-json '{"key":"value"}'
42
+ ```
43
+
44
+ `plan schema` 是可用能力的唯一事实来源。禁止把源文档里的接口路径当成 Agent 可直接调用的地址,也禁止把未出现在 `schema` 中的能力当作可用 operation。
45
+
46
+ ## Reference 路由表
47
+
48
+ 命中任一条件时,执行下一步前读取对应 reference。
49
+
50
+ | 触发条件 | Reference |
51
+ | --- | --- |
52
+ | 意图判定 A/B、版本路由与租户缓存、operation 总表、通用基础规则(周期、跳转、分页表格、人员 ID、字段名禁止项) | [`references/plan-overview-and-routing.md`](references/plan-overview-and-routing.md) |
53
+ | 查看/查询某份报告、查看共享给我的报告或下属报告、查看报告评论 | [`references/plan-report-query.md`](references/plan-report-query.md) |
54
+ | 新建报告、修改报告、发布报告、撤回报告 | [`references/plan-report-write.md`](references/plan-report-write.md) |
55
+ | 提醒他人提交报告、生成提交提醒默认文案 | [`references/plan-report-remind.md`](references/plan-report-remind.md) |
56
+ | 汇总本周/上周/本月/上月工作并生成报告(多模块采集、去重润色、输出规范) | [`references/plan-collect-and-compose.md`](references/plan-collect-and-compose.md) |
57
+
58
+ ## 高优先级语义
59
+
60
+ - **报告**:work report,用户常说「周报」「月报」「季报」「年报」「年中报告」「工作总结」「汇报」。
61
+ - **报告类型**:`week`(周报)/ `month`(月报)/ `season`(季报)/ `halfYear`(年中报告)/ `year`(年报)。
62
+ - **报告周期**:`year`(年份)+ `serialNumber`(周期序号)。**周报年份与周数严格遵循 ISO8601,1 月 4 日所在周为当年第 1 周**;「上周」= 上周一至上周日。
63
+ - **发布状态**:`0` 草稿 / `1` 已发布 / `2` 已撤回 / `3` 审批中 / `4` 被退回。CLI 输出已附带 `postStatusLabel`。
64
+ - **报告详情链接**:查询与写入成功后 CLI 会在 `detailUrl` 返回可点击的详情页地址,必须呈现给用户。
65
+
66
+ ## 版本路由(CLI 已内置,不要手工选择接口)
67
+
68
+ 报告侧接口存在标准版与 e10-ebuilder 版两套链路。判定规则:先读租户缓存(有效期 1 天),命中即复用;未命中调用版本接口读取 `ver_name`,`V2` → e10-ebuilder 链路,其它 → 标准版链路,并写回租户缓存。
69
+
70
+ - 判断当前链路:`plan.version.check`(`plan route` 同义)。
71
+ - **禁止**跳过版本判定硬编码选择链路,禁止在某条链路命中后混用另一条链路的接口。
72
+ - 采集业务数据阶段(A 链路第 1~7 步)**禁止**调用版本接口或任何报告侧接口。
73
+ - eb 链路报告详情页链接依赖报告详情 eb 表单 id,`plan.eb.form.resolve` 会解析并长期缓存;不要手工拼链接。
74
+
75
+ ## 报告侧 operation 表
76
+
77
+ | 用户意图 | operation |
78
+ | --- | --- |
79
+ | 判断当前租户报告链路 | `plan.version.check` |
80
+ | 解析 eb 报告详情表单 id | `plan.eb.form.resolve` |
81
+ | 查询某份报告(按 id 或按周期),判断某周期是否已提交 | `plan.report.get` |
82
+ | 分页查询报告列表(共享给我的、下属的) | `plan.report.page` |
83
+ | 查看报告评论内容 | `plan.comment.list` |
84
+ | 新建报告 | `plan.report.create.prepare` → `plan.report.create.apply` |
85
+ | 修改报告 | `plan.report.update.prepare` → `plan.report.update.apply` |
86
+ | 发布报告 | `plan.report.publish.prepare` → `plan.report.publish.apply` |
87
+ | 撤回报告 | `plan.report.withdraw.prepare` → `plan.report.withdraw.apply` |
88
+ | 发送提交提醒 | `plan.report.remind.prepare` → `plan.report.remind.apply` |
89
+
90
+ ## 写操作确认链(必须遵守)
91
+
92
+ 1. 先调用 `*.prepare`:只做只读回查、字段归一化、差异摘要并签发 continuation,**不写入**。
93
+ 2. 把目标、差异、风险读给用户,并明确询问是否执行。
94
+ 3. 用户明确确认后,才调用 `*.apply`,并**原样**传入 `confirm=true` 与 prepare 返回的 `continuation`。
95
+ 4. `*.apply` 遇到网络中断或 `partial/write_uncertain` 时**立即停止,禁止自动重试**,先做一次只读回查(`plan.report.get`)再决定下一步。
96
+ 5. `continuation` 不可手工构造、不可跨操作复用;过期或上下文变化时重新 `prepare`。
97
+
98
+ **判断某周期是否已提交报告,只能通过 `plan.report.get` 按周期查询**(必须传报告年份、报告类型、报告周期,创建人缺省为当前登录人)完成;只有确认需要创建时才做重复性判断,已存在时**不得重复创建**,必须告知用户并征询是否改为编辑。
99
+
100
+ ## 通用基础规则(两条链路均生效)
101
+
102
+ 1. 周期计算遵循 ISO8601;未明确周期类型(周/月/季/年)时先向用户确认,确认前不得臆造区间。
103
+ 2. 报告新建/查询/修改/发布/撤回成功后,必须呈现 `detailUrl`,支持点击跳转详情页。
104
+ 3. 分页结果必须用表格展示,固定列为 **报告名称 / 报告创建人名称 / 发布时间**,报告名称可点击跳转 `detailUrl`。
105
+ 4. 涉及人员 ID 时只取 `id` 或 `employeeId` 字段,**禁止取 `userId`**;人员信息通过 weaver-e10-hrm skill 获取。
106
+ 5. 请求体中的雪花 ID(人员 ID、报告 ID 等)必须加引号包裹为字符串,避免精度丢失;直接用 CLI 的业务字段即可,CLI 会完成归一化。
107
+ 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.*` 业务键即可,不要向用户复述接口原始结构。
108
+ 7. 认证与会话由 CLI 托管(Cookie 完整原始串、eteamsid、User-Agent 三件套缺一不可);若未登录先按共享规则读取 `../weaver-e10-shared/references/e10-auth-and-session.md` 并通过 `weaver-work-cli auth ...` 完成会话确认,禁止输出或索取任何凭证。
109
+
110
+ ## 失败处理
111
+
112
+ - 认证类错误(`authentication` / `session_expired`):先向用户确认 E10 登录域名,再执行 `weaver-work-cli auth login`,不要用其他方式排查。
113
+ - `policy` / `link_unsupported`:该能力在当前链路不可用(例如 eb 链路的撤回、提交提醒、评论),按错误 `message` 给出的替代路径处理。
114
+ - `validation` / `not_found` / `report_exists` / `already_published` / `not_published`:属业务前置条件不满足,先向用户说明再决定下一步,禁止反复重试。
115
+ - `partial` / `write_uncertain`:立即停止写入流程,做一次只读回查后向用户说明。
116
+ - 其它业务失败看 stderr JSON 的 `error.type` / `error.subtype` / `error.message`。
117
+
118
+ ## 不在范围
119
+
120
+ - 不绕过 CLI 直接 curl/fetch 访问 E10 接口,不自行拼报告侧接口路径。
121
+ - 业务数据采集不在本技能内实现:按 [`references/plan-collect-and-compose.md`](references/plan-collect-and-compose.md) 的对应关系调用已安装的业务模块技能。
122
+ - eb 链路的「撤回报告」为 ESB 动作流,改由 weaver-e10-customesb-execute skill 执行同名动作流。
123
+ - 人员「姓名 → 人员 ID」解析交给 weaver-e10-hrm skill。
124
+ - 禁止把未出现在 `plan schema` 中的能力当作可用 operation。
125
+
126
+ ## 平台兼容
127
+
128
+ 命令示例同时兼容 Windows 与 macOS/Linux。简单 JSON 用 `--input-json`,复杂或多行 JSON 存为 UTF-8 文件后用 `--input <path>`。
129
+
130
+ Windows PowerShell:
131
+
132
+ ```powershell
133
+ weaver-work-cli --json plan run plan.report.get --input-json '{"type":"week","serialNumber":36}'
134
+ ```
135
+
136
+ macOS/Linux(bash/zsh):
137
+
138
+ ```bash
139
+ weaver-work-cli --json plan run plan.report.get --input-json '{"type":"week","serialNumber":36}'
140
+ ```
@@ -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) 的失败处理执行。
@@ -0,0 +1,138 @@
1
+ # 意图判定、版本路由与通用规则
2
+
3
+ ## 何时使用
4
+
5
+ 任何与「报告 / 周报 / 月报 / 季报 / 年报 / 年中报告」相关的请求,先读本 reference 完成意图判定和链路判定,再按需读取其它 reference。
6
+
7
+ ## 一、意图判定(最高优先级)
8
+
9
+ 自上而下命中即止,命中后不再二次询问。
10
+
11
+ ### 1. B 链路(查询与管理已有报告)——禁止采集业务数据
12
+
13
+ 消息中出现以下任一信号即走 B:
14
+
15
+ `查看` / `查询` / `列表` / `共享给我的` / `团队` / `下属` / `成员` / `某某某的报告` / `已提交` / `发布` / `撤回` / `修改` / `提醒他们交报告`。
16
+
17
+ B 链路只调用报告侧 operation,**禁止**因为「报告」二字去调用 IM消息、日报、日程、会议、项目任务、客户营销、流程等业务模块采集数据。
18
+
19
+ ### 2. A 链路(生成与汇总报告)——必须采集业务数据
20
+
21
+ 未命中 B 链路任何信号,且同时满足以下两个要素时走 A:
22
+
23
+ - 动词要素:汇总 / 生成 / 写 / 整理 / 总结 / 帮我出一份;
24
+ - 对象要素:周期词(周报 / 月报 / 季报 / 年报 / 周 / 月 / 季度 / 本周 / 上周 / 本月 / 上月 / 本季度 / 上季度)+ 内容词(报告 / 周报 / 内容 / 工作 / 总结)。
25
+
26
+ ### 3. 默认值规则
27
+
28
+ 动词为「汇总 / 生成 / 写 / 整理」,对象含周期与报告类名词,且未命中 B 链路信号时,一律按 A 处理,默认采集**当前登录人自己**的业务数据。以下说法直接归入 A:
29
+
30
+ - 汇总上周报告、汇总本周报告、汇总上月报告、汇总上季度报告;
31
+ - 生成上周报告、生成本周报告、帮我写周报 / 写月报 / 写季报 / 写年报;
32
+ - 帮我整理上周工作写报告、把上周的工作总结成周报。
33
+
34
+ A 链路的完整作业步骤见 [`plan-collect-and-compose.md`](plan-collect-and-compose.md)。
35
+
36
+ ## 二、版本路由与租户缓存
37
+
38
+ 报告侧接口分标准版与 e10-ebuilder 版两套链路,由 CLI 统一判定,Agent **不要手工选择链路**。
39
+
40
+ | 步骤 | 行为 |
41
+ | --- | --- |
42
+ | 1 | 优先读租户隔离、有效期 1 天的版本判定缓存;命中且未过期直接复用,跳过版本接口 |
43
+ | 2 | 缓存缺失或过期时调用 `plan_searchAppver`,读取返回字段 `ver_name` |
44
+ | 3 | `ver_name = V2` → 全部报告侧接口走 **e10-ebuilder 链路**;其它情况 → **标准版链路** |
45
+ | 4 | 把判定结果写入租户缓存,有效期 1 天 |
46
+
47
+ 禁止行为:不读缓存直接调版本接口;缓存过期不重新拉取;跳过版本判定硬编码链路;eb 链路命中后混用标准版接口。
48
+
49
+ - 查看当前判定结果:`plan.version.check`(或 `plan route`),返回 `link`(`standard` / `eb`)、`verName`、`cached`、`degraded`。
50
+ - `degraded: true` 表示版本接口暂不可用、已降级为标准版链路,此时不写缓存,下次会重试。
51
+ - **采集业务数据阶段禁止调用版本接口和任何报告侧接口**,只在判定为 B 链路、或 A 链路走到「用户确认后做重复性检查」时才允许触发版本路由。
52
+
53
+ ### eb 报告详情页表单 id
54
+
55
+ eb 链路详情页地址为 `/sp/ebdfpage/card/0/{报告详情 eb 表单 id}/{报告 id}`,其中表单 id 指 **idobjId**(不是 formId)。`plan.eb.form.resolve` 负责解析:
56
+
57
+ - 应用 appTag:`weaver-wrplan-eb`;报告详情表单 tag:`uf_plan_work_report`。
58
+ - 租户 key 为 `tt1pa2w2i3` 时无需动态获取,固定为 `1029659181695361024`;其它租户按 appTag、表单 tag 动态获取。
59
+ - 取到后按租户**长期缓存**,后续直接使用,不再动态获取。
60
+
61
+ `plan.report.get` 与 `plan.report.page` 已在 `detailUrl` 中返回拼好的详情页地址,Agent 直接用即可。
62
+
63
+ ## 三、operation 总表
64
+
65
+ | operation | 风险 | 说明 |
66
+ | --- | --- | --- |
67
+ | `plan.version.check` | read | 判定租户报告链路,命中缓存则跳过接口调用 |
68
+ | `plan.eb.form.resolve` | read | 解析 eb 报告详情表单 id(idobjId) |
69
+ | `plan.report.get` | read | 按 id 或按周期查询单份报告详情,附带评论总条数 |
70
+ | `plan.report.page` | read | 分页查询报告列表 |
71
+ | `plan.comment.list` | read | 查询报告评论内容(标准版链路) |
72
+ | `plan.report.create.prepare` / `.apply` | read-before-write / high-risk-write | 新建报告 |
73
+ | `plan.report.update.prepare` / `.apply` | read-before-write / high-risk-write | 修改报告 |
74
+ | `plan.report.publish.prepare` / `.apply` | read-before-write / high-risk-write | 发布报告 |
75
+ | `plan.report.withdraw.prepare` / `.apply` | read-before-write / high-risk-write | 撤回报告(标准版链路) |
76
+ | `plan.report.remind.prepare` / `.apply` | read-before-write / high-risk-write | 发送提交提醒(标准版链路) |
77
+
78
+ 字段细节以 `weaver-work-cli plan schema` 为准。
79
+
80
+ ## 四、通用基础规则(两条链路均生效)
81
+
82
+ 1. **周期计算**:周报年份、周数严格遵循 ISO8601,1 月 4 日所在周为当年第 1 周。未明确周期类型时先向用户确认周/月/季/年,确认前不得臆造区间。
83
+ 2. **跳转能力**:报告新建、查询、修改、发布、撤回成功后,必须把 `detailUrl` 呈现为可点击链接。
84
+ 3. **分页表格输出**:分页接口返回的列表必须用表格展示,固定列为 **报告名称 / 报告创建人名称 / 发布时间**;报告名称可点击,直接跳转 `detailUrl`。
85
+ 4. **人员 ID 规则**:所有传递和获取人员 id 的地方,都取 `id` 或 `employeeId` 字段,**禁止取 `userId`**。人员信息通过 weaver-e10-hrm skill 获取。
86
+ 5. **雪花 ID 传参**:请求体中的雪花 ID(人员 ID、报告 ID 等)必须加引号包裹为字符串,避免数字精度丢失。CLI 已完成归一化,业务输入按字符串传更安全。
87
+ 6. **重复性判断**:判断当前人员是否提交某个周期的报告,**只能**通过 `plan.report.get` 按周期查询(必须传报告年份、报告类型、报告周期,创建人缺省为当前登录人)。
88
+ 7. **不得重复创建**:当且仅当用户确认需要创建某个周期的报告时才判断是否已创建;若已创建,不得重复创建,需明确告知用户并征询是否改为编辑。
89
+ 8. **字段名禁止项**:任何执行阶段和最终创建的报告内容中,决不允许出现报告相关的数据库英文字段名。CLI 已把 eb 链路返回值归一化为业务字段(`reportId` / `title` / `content` / `summary` / `plans` / `year` / `type` / `serialNumber` / `postStatus` / `postTime` / `creator` / `detailUrl`),Agent 只使用这些业务键,不要向用户复述原始接口结构。
90
+ 9. **认证三件套**:所有请求必须携带完整登录态(Cookie 完整原始串、eteamsid、User-Agent)。由 CLI 托管,禁止输出、索取或写入任何凭证;未登录时先按共享规则读取 `../weaver-e10-shared/references/e10-auth-and-session.md` 并通过 `weaver-work-cli auth ...` 确认会话。
91
+
92
+ ## 命令
93
+
94
+ Windows PowerShell:
95
+
96
+ ```powershell
97
+ weaver-work-cli --json plan run plan.version.check --input-json '{"refresh":false}'
98
+ ```
99
+
100
+ macOS/Linux(bash/zsh):
101
+
102
+ ```bash
103
+ weaver-work-cli --json plan run plan.version.check --input-json '{"refresh":false}'
104
+ ```
105
+
106
+ 强制重新判定链路:
107
+
108
+ Windows PowerShell:
109
+
110
+ ```powershell
111
+ weaver-work-cli --json plan run plan.version.check --input-json '{"refresh":true}'
112
+ ```
113
+
114
+ macOS/Linux(bash/zsh):
115
+
116
+ ```bash
117
+ weaver-work-cli --json plan run plan.version.check --input-json '{"refresh":true}'
118
+ ```
119
+
120
+ ## 输出处理
121
+
122
+ `plan.version.check` 返回示例(字段说明):
123
+
124
+ - `link`:`standard` 或 `eb`,本次生效的链路。
125
+ - `verName`:版本接口返回的 `ver_name` 原始值。
126
+ - `cached`:本次结果是否来自缓存。
127
+ - `degraded`:是否因版本接口不可用而降级为标准版。
128
+
129
+ ## 注意
130
+
131
+ - 报告侧接口链路由 CLI 判定并缓存;Agent 不要缓存或自行推断链路。
132
+ - 采集阶段(A 链路第 1~7 步)不得触发版本接口或报告侧接口。
133
+
134
+ ## 失败处理
135
+
136
+ - `authentication` / `session_expired`:先向用户确认 E10 登录域名,再执行 `weaver-work-cli auth login`。
137
+ - `policy` / `link_unsupported`:该能力在当前链路不可用,按 `message` 给出的替代路径处理。
138
+ - `endpoint_not_found`(HTTP 404):当前环境可能未部署「计划报告」相关应用或接口,先向用户说明再决定是否停止。