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,52 @@
1
+ # 借阅车
2
+
3
+ ## 什么时候读取
4
+
5
+ 用户要查看借阅车、要把检索结果加入借阅车时读取本文件。加入借阅车是**免确认写操作**,直接调用即可,不需要高风险确认链。
6
+
7
+ ## Operation
8
+
9
+ | 想做什么 | Operation | 必填输入 |
10
+ | --- | --- | --- |
11
+ | 查看列表 | `archive.borrow-car.list` | 可选 `pageNo`(默认 1)、`pageSize`(默认 10) |
12
+ | 加入借阅车(免确认) | `archive.borrow-car.add` | `formAndIds`(`[{ formId, ids: [...] }]`) |
13
+
14
+ Windows PowerShell:
15
+
16
+ ```powershell
17
+ weaver-work-cli --json archive run archive.borrow-car.list --input-json '{"pageNo":1,"pageSize":10}'
18
+
19
+ weaver-work-cli --json archive run archive.borrow-car.add --input-json '{"formAndIds":[{"formId":"1190991330335571989","ids":["1252600626189156465"]}]}'
20
+ ```
21
+
22
+ macOS/Linux(bash/zsh):
23
+
24
+ ```bash
25
+ weaver-work-cli --json archive run archive.borrow-car.list --input-json '{"pageNo":1,"pageSize":10}'
26
+
27
+ weaver-work-cli --json archive run archive.borrow-car.add --input-json '{"formAndIds":[{"formId":"1190991330335571989","ids":["1252600626189156465"]}]}'
28
+ ```
29
+
30
+ ## 结果展示(默认样式限定:表格)
31
+
32
+ 借阅车列表给用户时**一律用 Markdown 表格渲染**,不要用卡片、普通编号列表或 JSON:
33
+
34
+ | 序号 | 题名 | 类型 | 分类 | 形成日期 |
35
+ | :---: | :---: | :---: | :---: | :---: |
36
+ | 1 | …(超长省略) | 电子原文 | 销售合同 | 2025-06-27 |
37
+
38
+ - 列取 `title` / `className` / `categoryNames` / `fileDate` 等可读字段,最多先给 10 条;不要把 `dataId`、`arcDangan` 等内部 ID 作为展示列。
39
+ - 表格样式:所有列(表头与内容)居中显示。
40
+ - 无值列留空或用 `-`;题名过长时截断。
41
+
42
+ ## 列表字段
43
+
44
+ - 首选自定义接口,返回 `title`(题名)、`categoryNames`(分类)、`className`(类型)、`archivalCode`(档号)等可读字段,以及 `dataId`、`arcDangan`(`{档案ID}_{表单ID}`)供后续操作复用。
45
+ - 自定义接口未发布时 CLI 自动回退 ebuilder 链路,行内提供 `fields`/`display`,可读字段更少;此时不要向用户解释内部链路差异,直接按可读字段展示。
46
+ - 列表展示不依赖全宗信息,不要把全宗字段作为展示列;全宗只在预归档上传时需要查询。
47
+
48
+ ## 注意
49
+
50
+ - `archive.borrow-car.add` 是**低风险写操作,不需要 prepare / apply / 用户确认链**;用户表达“加入借阅车/加入车/收藏”意图后直接提交,执行完用 `archive.borrow-car.list` 复核即可。
51
+ - `formAndIds` 必须按 `formId` 分组且 `ids` 非空;同表单的多个档案合并到同一组,不要一条一组地重复提交。
52
+ - 加入借阅车是写操作,出现网络中断或结果不确定时按 `partial/write_uncertain` 决策树处理,不要自动重放。
@@ -0,0 +1,52 @@
1
+ # 借阅单
2
+
3
+ ## 什么时候读取
4
+
5
+ 用户要查看自己的借阅单、要看借阅单明细、要为下载或续借准备参数时读取本文件。
6
+
7
+ ## Operation
8
+
9
+ | Operation | 必填输入 | 说明 |
10
+ | --- | --- | --- |
11
+ | `archive.borrow-list.list` | 可选 `pageNo`(默认 1)、`pageSize`(默认 10) | 借阅单列表,含 `dataId`、`workflowId`、借阅/归还时间、状态与是否超期 |
12
+ | `archive.borrow-list.detail` | `dataId` | 借阅单详情,含明细的原文借阅方式与可下载判定 |
13
+
14
+ Windows PowerShell:
15
+
16
+ ```powershell
17
+ weaver-work-cli --json archive run archive.borrow-list.list --input-json '{"pageNo":1,"pageSize":10}'
18
+
19
+ weaver-work-cli --json archive run archive.borrow-list.detail --input-json '{"dataId":"1302806508947652629"}'
20
+ ```
21
+
22
+ macOS/Linux(bash/zsh):
23
+
24
+ ```bash
25
+ weaver-work-cli --json archive run archive.borrow-list.list --input-json '{"pageNo":1,"pageSize":10}'
26
+
27
+ weaver-work-cli --json archive run archive.borrow-list.detail --input-json '{"dataId":"1302806508947652629"}'
28
+ ```
29
+
30
+ ## 结果展示(默认样式限定:表格)
31
+
32
+ 借阅单列表给用户时**一律用 Markdown 表格渲染**,不要用卡片、普通编号列表或 JSON:
33
+
34
+ | 序号 | 题名 | 借阅时间 | 归还时间 | 归还状态 | 是否超期 |
35
+ | :---: | :---: | :---: | :---: | :---: | :---: |
36
+ | 1 | …(超长省略) | 2026-08-01 | 2026-08-31 | 借阅中 | 否 |
37
+
38
+ - 列取借阅单返回的可读字段(题名、借阅/归还时间、状态、`expired` 等),最多先给 10 条;不要把 `dataId`、`workflowId` 等内部 ID 作为展示列。
39
+ - 表格样式:所有列(表头与内容)居中显示。
40
+ - 无值列留空或用 `-`;题名过长时截断。
41
+
42
+ ## 字段复用
43
+
44
+ - `dataId` 是借阅单主表 ID,用于查看详情、下载和续借。
45
+ - `workflowId` 是流程 requestId,下载打包任务需要;CLI 会自动取用,Agent 不需要手工传。
46
+ - 列表行带 `expired`(是否已超期);详情带 `downloadable`(是否存在可下载电子原文)与 `borrowTypes`。
47
+
48
+ ## 注意
49
+
50
+ - 列表同样优先自定义接口,未发布时自动回退 ebuilder 链路,回退行提供 `fields`/`display`。
51
+ - 借阅单状态以“借阅时间/归还时间/是否超期/归还状态”等可读字段展示;不要把 `workflowId` 等内部 ID 直接展示给用户。
52
+ - 下载前必须先确认未超期且存在可下载原文,这一步由 `archive.borrow-list.download.prepare` 统一校验,不要跳过。
@@ -0,0 +1,22 @@
1
+ # 暂未暴露的能力
2
+
3
+ ## 什么时候读取
4
+
5
+ 用户要求的能力在 `archive schema` 中找不到,或需要用 CLI 直接替代页面操作时读取本文件。
6
+
7
+ ## 当前不暴露的能力
8
+
9
+ | 能力 | 原因 | 处理建议 |
10
+ | --- | --- | --- |
11
+ | 借阅申请表单提交 | 借阅表单字段结构、必填项与提交契约尚未固化为稳定接口 | 用 `archive.flow.*` 生成流程创建页 URL,让用户在浏览器中完成填写与提交 |
12
+ | 借阅车移除 | 缺少移除接口的请求契约与权限回查方式 | 引导用户在借阅车页面操作 |
13
+ | 借阅单归还/催还 | 缺少归还与催还接口的稳定契约 | 引导用户在借阅单页面操作 |
14
+ | 档案条目新增/编辑 | 档案著录表单字段多且随门类变化 | 引导用户在档案管理页面操作 |
15
+ | 水印/签批件单独处理 | 水印与签批件关系由服务端在打包时处理 | 用 `archive.borrow-list.download.*` 下载整体 zip |
16
+
17
+ ## 处理原则
18
+
19
+ - 不要用 `archive run` 调用 schema 中不存在的 operation;未知 operation 会返回 `validation/operation_unknown`。
20
+ - 不要绕过 CLI 直接调用 E10 `/api/archive/**`、`/api/ebuilder/**` 或 `/api/file/**` 接口。
21
+ - 不要读取或复制 CLI runtime 内部 Token、Cookie、ETEAMSID。
22
+ - 确认确实缺少能力时,向用户说明当前边界并给出页面操作路径,不要伪造成功结果。
@@ -0,0 +1,48 @@
1
+ # 借阅单原文下载
2
+
3
+ ## 什么时候读取
4
+
5
+ 用户要下载借阅单里的电子原文(zip)时读取本文件。写操作前也读取共享高风险协议:`../../weaver-e10-shared/references/high-risk-write.md`。
6
+
7
+ ## Operation
8
+
9
+ | 阶段 | Operation | 必填输入 |
10
+ | --- | --- | --- |
11
+ | 准备下载 | `archive.borrow-list.download.prepare` | `dataId`;可选 `exportType`、`exportStructure`、`groupField`、`documentField`、`output` |
12
+ | 确认下载 | `archive.borrow-list.download.apply` | `continuation`、`confirm=true` |
13
+
14
+ Windows PowerShell:
15
+
16
+ ```powershell
17
+ weaver-work-cli --json archive run archive.borrow-list.download.prepare --input-json '{"dataId":"1302806508947652629"}'
18
+
19
+ weaver-work-cli --json archive run archive.borrow-list.download.apply --input-json '{"continuation":"PREPARE_CONTINUATION","confirm":true}'
20
+ ```
21
+
22
+ macOS/Linux(bash/zsh):
23
+
24
+ ```bash
25
+ weaver-work-cli --json archive run archive.borrow-list.download.prepare --input-json '{"dataId":"1302806508947652629"}'
26
+
27
+ weaver-work-cli --json archive run archive.borrow-list.download.apply --input-json '{"continuation":"PREPARE_CONTINUATION","confirm":true}'
28
+ ```
29
+
30
+ 分组导出示例(按条目导出,条目分组字段用档号):
31
+
32
+ ```json
33
+ {"dataId":"1302806508947652629","exportType":"1","exportStructure":"0","groupField":"archival_code","documentField":""}
34
+ ```
35
+
36
+ ## 执行过程
37
+
38
+ 1. `.prepare` 校验两项前置条件:未超期、存在可下载电子原文;任一不满足直接报错,不要绕过。
39
+ 2. `.apply` 提交异步打包任务,每 2 秒轮询一次进度,完成后取文件 ID 下载 zip。
40
+ 3. 默认保存到当前用户的「下载」目录,文件名由服务端返回;已存在同名文件时自动加序号,不覆盖已有文件。
41
+ 4. 返回 `savedPath`、`fileName`、`fileId`、`size`;把保存路径告诉用户。
42
+
43
+ ## 注意
44
+
45
+ - 下载是异步任务,`.apply` 可能持续一段时间;进度只在终端以进度条形式反馈,Agent 不要因为等待就中断并重试。
46
+ - 打包完成前中断会浪费一次服务端任务;中断后如需继续,重新执行 `.prepare` 再 `.apply`。
47
+ - 涉及本地文件写入:下载到的 zip 可能包含敏感档案内容,**必须先提醒用户文件内容会落到本地磁盘并可能进入当前大模型上下文,等待用户明确确认后才执行 `.apply`**。
48
+ - `exportType=0`(直接导出)时其余三个分组字段必须为空;`exportType=1` 时按结构补齐分组字段,字段取值只能取档案基础字段候选。
@@ -0,0 +1,46 @@
1
+ # 发起借阅与续借
2
+
3
+ ## 什么时候读取
4
+
5
+ 用户要从借阅车发起借阅、要从检索结果直接发起借阅、或要为借阅单续借时读取本文件。写操作前也读取共享高风险协议:`../../weaver-e10-shared/references/high-risk-write.md`。
6
+
7
+ ## Operation
8
+
9
+ | 场景 | 准备 | 确认 |
10
+ | --- | --- | --- |
11
+ | 从借阅车发起借阅 | `archive.flow.borrow-car.prepare`(`arcIds`、`carIds`,两者数量必须一致) | `archive.flow.borrow-car.apply` |
12
+ | 从检索结果发起借阅 | `archive.flow.search.prepare`(`arcIds`) | `archive.flow.search.apply` |
13
+ | 借阅单续借 | `archive.flow.renew.prepare`(`dataId`) | `archive.flow.renew.apply` |
14
+
15
+ Windows PowerShell:
16
+
17
+ ```powershell
18
+ weaver-work-cli --json archive run archive.flow.borrow-car.prepare --input-json '{"arcIds":["1252600626189156465_1190991330335571989"],"carIds":["1302754028599656449"]}'
19
+
20
+ weaver-work-cli --json archive run archive.flow.borrow-car.apply --input-json '{"continuation":"PREPARE_CONTINUATION","confirm":true}'
21
+
22
+ weaver-work-cli --json archive run archive.flow.renew.prepare --input-json '{"dataId":"1302806508947652629"}'
23
+ ```
24
+
25
+ macOS/Linux(bash/zsh):
26
+
27
+ ```bash
28
+ weaver-work-cli --json archive run archive.flow.borrow-car.prepare --input-json '{"arcIds":["1252600626189156465_1190991330335571989"],"carIds":["1302754028599656449"]}'
29
+
30
+ weaver-work-cli --json archive run archive.flow.borrow-car.apply --input-json '{"continuation":"PREPARE_CONTINUATION","confirm":true}'
31
+
32
+ weaver-work-cli --json archive run archive.flow.renew.prepare --input-json '{"dataId":"1302806508947652629"}'
33
+ ```
34
+
35
+ ## 参数来源
36
+
37
+ - `arcIds`:档案标识数组,元素为 `{档案ID}_{表单ID}`。从借阅车取 `arcDangan[*].id`,从检索结果取 `id` + `formId` 拼接。
38
+ - `carIds`:借阅车记录 ID 数组,取借阅车行的 `dataId`,与 `arcIds` 一一对应。
39
+ - 续借只用 `dataId`(借阅单主表 ID),不需要缓存参数。
40
+
41
+ ## 注意
42
+
43
+ - `.prepare` 会检查是否绑定借阅流程;未绑定时返回 `validation/borrow_flow_unbound`,应提示联系管理员在档案设置中绑定借阅流程,不要重试。
44
+ - `.apply` 返回的是**流程创建页 URL**,CLI 不自动打开浏览器。Agent 拿到 URL 后**默认用系统默认浏览器打开**供用户填写提交(macOS `open`,Windows `start`),除非用户明确要求“在 IDE 内置浏览器打开”;不要声称“已发起借阅申请”。
45
+ - 从借阅车发起会缓存档案与借阅车两组参数(两次缓存写入),从检索结果发起只缓存档案,续借不缓存。
46
+ - URL 中的缓存参数由服务端生成,Agent 不要手工拼接或改写 URL。
@@ -0,0 +1,34 @@
1
+ # 全宗与预归档电子文件库节点
2
+
3
+ ## 什么时候读取
4
+
5
+ 需要确定档案所属全宗、需要预归档上传的 `treeId`,或用户提到“全宗/收集库/管理库/预归档库”时读取本文件。
6
+
7
+ ## Operation
8
+
9
+ | Operation | 必填输入 | 说明 |
10
+ | --- | --- | --- |
11
+ | `archive.fonds.list` | 无;可选 `menuSign`(`collectLib`/`manageLib`,默认 `collectLib`) | 返回全宗 `id`、`fonds_name`、`fonds_code` 等 |
12
+ | `archive.prelib.tree` | 无 | 返回预归档树中识别出的电子文件库节点(`id` 形如 `{appId}_{appId}`) |
13
+
14
+ Windows PowerShell:
15
+
16
+ ```powershell
17
+ weaver-work-cli --json archive run archive.fonds.list --input-json '{"menuSign":"collectLib"}'
18
+
19
+ weaver-work-cli --json archive run archive.prelib.tree --input-json '{}'
20
+ ```
21
+
22
+ macOS/Linux(bash/zsh):
23
+
24
+ ```bash
25
+ weaver-work-cli --json archive run archive.fonds.list --input-json '{"menuSign":"collectLib"}'
26
+
27
+ weaver-work-cli --json archive run archive.prelib.tree --input-json '{}'
28
+ ```
29
+
30
+ ## 注意
31
+
32
+ - 全宗 `id` 是后续上传(`archive.upload.prelib.prepare` 的 `fondsId`)和档案树查询的输入,必须原样复用,不要用 `fonds_code` 代替。
33
+ - 电子文件库节点 `id` 即上传用的 `treeId`。`archive.prelib.tree` 只返回识别出的电子文件库节点;存在多个时必须让用户明确选择后再传 `treeId`,不要自行猜测。
34
+ - 用户没有说明收集库/管理库时,默认使用 `collectLib`;只有在用户明确提到管理库时才传 `manageLib`。
@@ -0,0 +1,33 @@
1
+ # 档案基本信息
2
+
3
+ ## 什么时候读取
4
+
5
+ 需要查看单条档案的年度/案卷号/起止件号/文件日期/保管期限/密级/库位等基本信息时读取本文件。
6
+
7
+ ## Operation
8
+
9
+ | Operation | 必填输入 | 说明 |
10
+ | --- | --- | --- |
11
+ | `archive.info.get` | `arcDangan`(`{档案ID}_{表单ID}`)或 `dataId` + `formId` | 返回档案基本信息行 |
12
+
13
+ Windows PowerShell:
14
+
15
+ ```powershell
16
+ weaver-work-cli --json archive run archive.info.get --input-json '{"arcDangan":"1252600626189156465_1190991330335571989"}'
17
+
18
+ weaver-work-cli --json archive run archive.info.get --input-json '{"dataId":"1252600626189156465","formId":"1190991330335571989"}'
19
+ ```
20
+
21
+ macOS/Linux(bash/zsh):
22
+
23
+ ```bash
24
+ weaver-work-cli --json archive run archive.info.get --input-json '{"arcDangan":"1252600626189156465_1190991330335571989"}'
25
+
26
+ weaver-work-cli --json archive run archive.info.get --input-json '{"dataId":"1252600626189156465","formId":"1190991330335571989"}'
27
+ ```
28
+
29
+ ## 注意
30
+
31
+ - `arcDangan` 与 `dataId`+`formId` 二选一即可,两者都在时以 `arcDangan` 为准。
32
+ - `arcDangan` 必须严格是 `{档案ID}_{表单ID}` 的数字 ID 对,格式错误会返回 `validation/arc_id_invalid`,此时不要重试,先修正输入。
33
+ - 返回的库位、密级、保管期限等字段用于向用户说明档案状态;不要把内部字段直接暴露给终端用户。
@@ -0,0 +1,52 @@
1
+ # 全文检索可借档案
2
+
3
+ ## 什么时候读取
4
+
5
+ 用户要按关键词查找档案、要为“加入借阅车/发起借阅”准备档案标识时读取本文件。
6
+
7
+ ## Operation
8
+
9
+ | Operation | 必填输入 | 说明 |
10
+ | --- | --- | --- |
11
+ | `archive.search.run` | `key`;可选 `pageNo`(从 0 开始,默认 0)、`pageSize`(默认 10)、`type1`、`type2` | 返回命中行的 `id`、`formId`、`title`、`content` 等 |
12
+
13
+ Windows PowerShell:
14
+
15
+ ```powershell
16
+ weaver-work-cli --json archive run archive.search.run --input-json '{"key":"会计凭证","pageNo":0,"pageSize":10}'
17
+ ```
18
+
19
+ macOS/Linux(bash/zsh):
20
+
21
+ ```bash
22
+ weaver-work-cli --json archive run archive.search.run --input-json '{"key":"会计凭证","pageNo":0,"pageSize":10}'
23
+ ```
24
+
25
+ ## 结果展示(默认样式限定:卡片视图)
26
+
27
+ 检索命中结果的**默认返回显示样式是「卡片视图」**:标题可点击、每条固定三段(`序号.【类型】 可点击题名` / 命中高亮 / `全宗·分类·日期`)。除用户明确要求 text / html / 表格等其他样式外,一律用本样式,不要退化成普通表格或贴 JSON。直接让 CLI 渲染卡片即可(自动注入当前 baseUrl):
28
+
29
+ Windows PowerShell:
30
+
31
+ ```powershell
32
+ weaver-work-cli archive search --key 会计凭证 --page-size 10 --format card
33
+ ```
34
+
35
+ macOS/Linux(bash/zsh):
36
+
37
+ ```bash
38
+ weaver-work-cli archive search --key 会计凭证 --page-size 10 --format card
39
+ ```
40
+
41
+ `--format` 还支持 `text`(终端纯文本)与 `html`(可 `--output <path>` 落 HTML 文件);不带 `--format` 时默认输出 JSON envelope,仅供后续 operation 取参数用。
42
+
43
+ ## 结果复用
44
+
45
+ - 结果行的 `id` 是档案数据 ID,`formId` 是所属表单 ID;两者组合成 `{档案ID}_{表单ID}`,可直接用于 `archive.info.get`、`archive.flow.search.prepare` 的 `arcIds`。
46
+ - 加入借阅车时按 `formId` 分组:`formAndIds: [{ formId, ids: [档案ID...] }]`,同表单的多条档案合并到一组。
47
+
48
+ ## 注意
49
+
50
+ - 检索结果只用于展示和用户选择;不要把内部 ID 当作最终展示内容,也不要让用户手工背诵 ID。
51
+ - 用户没有要求全量时不要自动翻页到底;先取 `pageSize=10`,按 `pageNo` 继续。
52
+ - 只看摘要不足以判断可借性时,再用 `archive.info.get` 查看档案基本信息。
@@ -0,0 +1,41 @@
1
+ # 预归档上传
2
+
3
+ ## 什么时候读取
4
+
5
+ 用户要把本地文件上传到预归档电子文件库时读取本文件。写操作前也读取共享高风险协议:`../../weaver-e10-shared/references/high-risk-write.md`。
6
+
7
+ ## Operation
8
+
9
+ | 阶段 | Operation | 必填输入 |
10
+ | --- | --- | --- |
11
+ | 准备上传 | `archive.upload.prelib.prepare` | `file`、`fondsId`;可选 `treeId` |
12
+ | 确认上传 | `archive.upload.prelib.apply` | `continuation`、`confirm=true` |
13
+
14
+ Windows PowerShell:
15
+
16
+ ```powershell
17
+ weaver-work-cli --json archive run archive.upload.prelib.prepare --input-json '{"file":"./档案.pdf","fondsId":"1042286256822697531"}'
18
+
19
+ weaver-work-cli --json archive run archive.upload.prelib.apply --input-json '{"continuation":"PREPARE_CONTINUATION","confirm":true}'
20
+ ```
21
+
22
+ macOS/Linux(bash/zsh):
23
+
24
+ ```bash
25
+ weaver-work-cli --json archive run archive.upload.prelib.prepare --input-json '{"file":"./档案.pdf","fondsId":"1042286256822697531"}'
26
+
27
+ weaver-work-cli --json archive run archive.upload.prelib.apply --input-json '{"continuation":"PREPARE_CONTINUATION","confirm":true}'
28
+ ```
29
+
30
+ ## 前置参数
31
+
32
+ - `fondsId` 取 `archive.fonds.list` 返回的全宗 `id`(不是 `fonds_code`)。
33
+ - `treeId` 取 `archive.prelib.tree` 返回的电子文件库节点 `id`;不传时 CLI 自动取唯一节点,存在多个节点会要求显式传入。
34
+ - `file` 是本地文件路径,CLI 会校验存在性、非空和大小上限(200MB)。
35
+
36
+ ## 注意
37
+
38
+ - 涉及附件、图片、本地文件:执行前必须提醒用户,**文件内容会被上传到 E10 文书定档案系统,并可能进入当前大模型上下文**用于理解和处理;必须等待用户明确确认后才调用 `.apply`。用户仅提供文件路径或文件名不等于同意上传。
39
+ - 目标全宗和电子文件库节点必须明确;`archive.prelib.tree` 返回多个电子文件库节点时,先让用户选择再上传,不要自行猜测。
40
+ - 上传链路为 `preUploadCheck` → `module/upload` → `saveFile`;任一步失败会直接报错,不要自动重放 `.apply`。
41
+ - 默认不覆盖、不删除本地文件;上传成功后返回 `fileId`、`docId`、`fileName`、`treeId`、`fondsId`。