helixlife-expert-cli 0.1.0

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 (523) hide show
  1. package/README.md +159 -0
  2. package/cli/bin/helixlife-expert.js +3 -0
  3. package/cli/dist/core/api/client.d.ts +31 -0
  4. package/cli/dist/core/api/client.d.ts.map +1 -0
  5. package/cli/dist/core/api/client.js +183 -0
  6. package/cli/dist/core/api/client.js.map +1 -0
  7. package/cli/dist/core/api/http.d.ts +3 -0
  8. package/cli/dist/core/api/http.d.ts.map +1 -0
  9. package/cli/dist/core/api/http.js +22 -0
  10. package/cli/dist/core/api/http.js.map +1 -0
  11. package/cli/dist/core/api/response.d.ts +48 -0
  12. package/cli/dist/core/api/response.d.ts.map +1 -0
  13. package/cli/dist/core/api/response.js +84 -0
  14. package/cli/dist/core/api/response.js.map +1 -0
  15. package/cli/dist/core/api/sse.d.ts +6 -0
  16. package/cli/dist/core/api/sse.d.ts.map +1 -0
  17. package/cli/dist/core/api/sse.js +60 -0
  18. package/cli/dist/core/api/sse.js.map +1 -0
  19. package/cli/dist/core/auth/index.d.ts +35 -0
  20. package/cli/dist/core/auth/index.d.ts.map +1 -0
  21. package/cli/dist/core/auth/index.js +150 -0
  22. package/cli/dist/core/auth/index.js.map +1 -0
  23. package/cli/dist/core/env-config.d.ts +16 -0
  24. package/cli/dist/core/env-config.d.ts.map +1 -0
  25. package/cli/dist/core/env-config.js +80 -0
  26. package/cli/dist/core/env-config.js.map +1 -0
  27. package/cli/dist/core/errors.d.ts +20 -0
  28. package/cli/dist/core/errors.d.ts.map +1 -0
  29. package/cli/dist/core/errors.js +28 -0
  30. package/cli/dist/core/errors.js.map +1 -0
  31. package/cli/dist/core/index.d.ts +16 -0
  32. package/cli/dist/core/index.d.ts.map +1 -0
  33. package/cli/dist/core/index.js +16 -0
  34. package/cli/dist/core/index.js.map +1 -0
  35. package/cli/dist/core/interactive.d.ts +18 -0
  36. package/cli/dist/core/interactive.d.ts.map +1 -0
  37. package/cli/dist/core/interactive.js +74 -0
  38. package/cli/dist/core/interactive.js.map +1 -0
  39. package/cli/dist/core/output/index.d.ts +29 -0
  40. package/cli/dist/core/output/index.d.ts.map +1 -0
  41. package/cli/dist/core/output/index.js +153 -0
  42. package/cli/dist/core/output/index.js.map +1 -0
  43. package/cli/dist/core/parse.d.ts +9 -0
  44. package/cli/dist/core/parse.d.ts.map +1 -0
  45. package/cli/dist/core/parse.js +31 -0
  46. package/cli/dist/core/parse.js.map +1 -0
  47. package/cli/dist/core/paths.d.ts +21 -0
  48. package/cli/dist/core/paths.d.ts.map +1 -0
  49. package/cli/dist/core/paths.js +65 -0
  50. package/cli/dist/core/paths.js.map +1 -0
  51. package/cli/dist/core/sse-utils.d.ts +49 -0
  52. package/cli/dist/core/sse-utils.d.ts.map +1 -0
  53. package/cli/dist/core/sse-utils.js +181 -0
  54. package/cli/dist/core/sse-utils.js.map +1 -0
  55. package/cli/dist/core/terminal.d.ts +2 -0
  56. package/cli/dist/core/terminal.d.ts.map +1 -0
  57. package/cli/dist/core/terminal.js +6 -0
  58. package/cli/dist/core/terminal.js.map +1 -0
  59. package/cli/dist/core/token/index.d.ts +5 -0
  60. package/cli/dist/core/token/index.d.ts.map +1 -0
  61. package/cli/dist/core/token/index.js +26 -0
  62. package/cli/dist/core/token/index.js.map +1 -0
  63. package/cli/dist/core/types/config.d.ts +8 -0
  64. package/cli/dist/core/types/config.d.ts.map +1 -0
  65. package/cli/dist/core/types/config.js +30 -0
  66. package/cli/dist/core/types/config.js.map +1 -0
  67. package/cli/dist/core/version.d.ts +2 -0
  68. package/cli/dist/core/version.d.ts.map +1 -0
  69. package/cli/dist/core/version.js +10 -0
  70. package/cli/dist/core/version.js.map +1 -0
  71. package/cli/dist/index.d.ts +2 -0
  72. package/cli/dist/index.d.ts.map +1 -0
  73. package/cli/dist/index.js +23 -0
  74. package/cli/dist/index.js.map +1 -0
  75. package/cli/dist/modules/analysis/constants.d.ts +3 -0
  76. package/cli/dist/modules/analysis/constants.d.ts.map +1 -0
  77. package/cli/dist/modules/analysis/constants.js +3 -0
  78. package/cli/dist/modules/analysis/constants.js.map +1 -0
  79. package/cli/dist/modules/analysis/index.d.ts +3 -0
  80. package/cli/dist/modules/analysis/index.d.ts.map +1 -0
  81. package/cli/dist/modules/analysis/index.js +23 -0
  82. package/cli/dist/modules/analysis/index.js.map +1 -0
  83. package/cli/dist/modules/auth/index.d.ts +3 -0
  84. package/cli/dist/modules/auth/index.d.ts.map +1 -0
  85. package/cli/dist/modules/auth/index.js +76 -0
  86. package/cli/dist/modules/auth/index.js.map +1 -0
  87. package/cli/dist/modules/expert-scaffold.d.ts +27 -0
  88. package/cli/dist/modules/expert-scaffold.d.ts.map +1 -0
  89. package/cli/dist/modules/expert-scaffold.js +25 -0
  90. package/cli/dist/modules/expert-scaffold.js.map +1 -0
  91. package/cli/dist/modules/fund/clinical/apps.d.ts +19 -0
  92. package/cli/dist/modules/fund/clinical/apps.d.ts.map +1 -0
  93. package/cli/dist/modules/fund/clinical/apps.js +14 -0
  94. package/cli/dist/modules/fund/clinical/apps.js.map +1 -0
  95. package/cli/dist/modules/fund/clinical/command-utils.d.ts +4 -0
  96. package/cli/dist/modules/fund/clinical/command-utils.d.ts.map +1 -0
  97. package/cli/dist/modules/fund/clinical/command-utils.js +40 -0
  98. package/cli/dist/modules/fund/clinical/command-utils.js.map +1 -0
  99. package/cli/dist/modules/fund/clinical/commands/article-create.d.ts +9 -0
  100. package/cli/dist/modules/fund/clinical/commands/article-create.d.ts.map +1 -0
  101. package/cli/dist/modules/fund/clinical/commands/article-create.js +99 -0
  102. package/cli/dist/modules/fund/clinical/commands/article-create.js.map +1 -0
  103. package/cli/dist/modules/fund/clinical/commands/article-download.d.ts +30 -0
  104. package/cli/dist/modules/fund/clinical/commands/article-download.d.ts.map +1 -0
  105. package/cli/dist/modules/fund/clinical/commands/article-download.js +153 -0
  106. package/cli/dist/modules/fund/clinical/commands/article-download.js.map +1 -0
  107. package/cli/dist/modules/fund/clinical/commands/four-elements-create.d.ts +7 -0
  108. package/cli/dist/modules/fund/clinical/commands/four-elements-create.d.ts.map +1 -0
  109. package/cli/dist/modules/fund/clinical/commands/four-elements-create.js +81 -0
  110. package/cli/dist/modules/fund/clinical/commands/four-elements-create.js.map +1 -0
  111. package/cli/dist/modules/fund/clinical/commands/four-elements-precheck.d.ts +7 -0
  112. package/cli/dist/modules/fund/clinical/commands/four-elements-precheck.d.ts.map +1 -0
  113. package/cli/dist/modules/fund/clinical/commands/four-elements-precheck.js +76 -0
  114. package/cli/dist/modules/fund/clinical/commands/four-elements-precheck.js.map +1 -0
  115. package/cli/dist/modules/fund/clinical/commands/four-elements-update.d.ts +16 -0
  116. package/cli/dist/modules/fund/clinical/commands/four-elements-update.d.ts.map +1 -0
  117. package/cli/dist/modules/fund/clinical/commands/four-elements-update.js +108 -0
  118. package/cli/dist/modules/fund/clinical/commands/four-elements-update.js.map +1 -0
  119. package/cli/dist/modules/fund/clinical/commands/sample-size.d.ts +14 -0
  120. package/cli/dist/modules/fund/clinical/commands/sample-size.d.ts.map +1 -0
  121. package/cli/dist/modules/fund/clinical/commands/sample-size.js +164 -0
  122. package/cli/dist/modules/fund/clinical/commands/sample-size.js.map +1 -0
  123. package/cli/dist/modules/fund/clinical/commands/topic-evaluation-create.d.ts +25 -0
  124. package/cli/dist/modules/fund/clinical/commands/topic-evaluation-create.d.ts.map +1 -0
  125. package/cli/dist/modules/fund/clinical/commands/topic-evaluation-create.js +228 -0
  126. package/cli/dist/modules/fund/clinical/commands/topic-evaluation-create.js.map +1 -0
  127. package/cli/dist/modules/fund/clinical/commands/topic-evaluation-parameters.d.ts +45 -0
  128. package/cli/dist/modules/fund/clinical/commands/topic-evaluation-parameters.d.ts.map +1 -0
  129. package/cli/dist/modules/fund/clinical/commands/topic-evaluation-parameters.js +211 -0
  130. package/cli/dist/modules/fund/clinical/commands/topic-evaluation-parameters.js.map +1 -0
  131. package/cli/dist/modules/fund/clinical/constants.d.ts +85 -0
  132. package/cli/dist/modules/fund/clinical/constants.d.ts.map +1 -0
  133. package/cli/dist/modules/fund/clinical/constants.js +161 -0
  134. package/cli/dist/modules/fund/clinical/constants.js.map +1 -0
  135. package/cli/dist/modules/fund/clinical/form-rules.d.ts +56 -0
  136. package/cli/dist/modules/fund/clinical/form-rules.d.ts.map +1 -0
  137. package/cli/dist/modules/fund/clinical/form-rules.js +542 -0
  138. package/cli/dist/modules/fund/clinical/form-rules.js.map +1 -0
  139. package/cli/dist/modules/fund/clinical/four-elements.d.ts +46 -0
  140. package/cli/dist/modules/fund/clinical/four-elements.d.ts.map +1 -0
  141. package/cli/dist/modules/fund/clinical/four-elements.js +190 -0
  142. package/cli/dist/modules/fund/clinical/four-elements.js.map +1 -0
  143. package/cli/dist/modules/fund/clinical/index.d.ts +3 -0
  144. package/cli/dist/modules/fund/clinical/index.d.ts.map +1 -0
  145. package/cli/dist/modules/fund/clinical/index.js +176 -0
  146. package/cli/dist/modules/fund/clinical/index.js.map +1 -0
  147. package/cli/dist/modules/fund/clinical/parameters.d.ts +51 -0
  148. package/cli/dist/modules/fund/clinical/parameters.d.ts.map +1 -0
  149. package/cli/dist/modules/fund/clinical/parameters.js +145 -0
  150. package/cli/dist/modules/fund/clinical/parameters.js.map +1 -0
  151. package/cli/dist/modules/fund/clinical/sample-size.d.ts +130 -0
  152. package/cli/dist/modules/fund/clinical/sample-size.d.ts.map +1 -0
  153. package/cli/dist/modules/fund/clinical/sample-size.js +356 -0
  154. package/cli/dist/modules/fund/clinical/sample-size.js.map +1 -0
  155. package/cli/dist/modules/fund/clinical/session-cache.d.ts +25 -0
  156. package/cli/dist/modules/fund/clinical/session-cache.d.ts.map +1 -0
  157. package/cli/dist/modules/fund/clinical/session-cache.js +100 -0
  158. package/cli/dist/modules/fund/clinical/session-cache.js.map +1 -0
  159. package/cli/dist/modules/fund/clinical/sse-utils.d.ts +22 -0
  160. package/cli/dist/modules/fund/clinical/sse-utils.d.ts.map +1 -0
  161. package/cli/dist/modules/fund/clinical/sse-utils.js +80 -0
  162. package/cli/dist/modules/fund/clinical/sse-utils.js.map +1 -0
  163. package/cli/dist/modules/fund/constants.d.ts +3 -0
  164. package/cli/dist/modules/fund/constants.d.ts.map +1 -0
  165. package/cli/dist/modules/fund/constants.js +3 -0
  166. package/cli/dist/modules/fund/constants.js.map +1 -0
  167. package/cli/dist/modules/fund/index.d.ts +3 -0
  168. package/cli/dist/modules/fund/index.d.ts.map +1 -0
  169. package/cli/dist/modules/fund/index.js +28 -0
  170. package/cli/dist/modules/fund/index.js.map +1 -0
  171. package/cli/dist/modules/fund/nsfc/apps.d.ts +54 -0
  172. package/cli/dist/modules/fund/nsfc/apps.d.ts.map +1 -0
  173. package/cli/dist/modules/fund/nsfc/apps.js +76 -0
  174. package/cli/dist/modules/fund/nsfc/apps.js.map +1 -0
  175. package/cli/dist/modules/fund/nsfc/article-cache.d.ts +14 -0
  176. package/cli/dist/modules/fund/nsfc/article-cache.d.ts.map +1 -0
  177. package/cli/dist/modules/fund/nsfc/article-cache.js +79 -0
  178. package/cli/dist/modules/fund/nsfc/article-cache.js.map +1 -0
  179. package/cli/dist/modules/fund/nsfc/commands/article-create.d.ts +8 -0
  180. package/cli/dist/modules/fund/nsfc/commands/article-create.d.ts.map +1 -0
  181. package/cli/dist/modules/fund/nsfc/commands/article-create.js +108 -0
  182. package/cli/dist/modules/fund/nsfc/commands/article-create.js.map +1 -0
  183. package/cli/dist/modules/fund/nsfc/commands/article-download.d.ts +42 -0
  184. package/cli/dist/modules/fund/nsfc/commands/article-download.d.ts.map +1 -0
  185. package/cli/dist/modules/fund/nsfc/commands/article-download.js +189 -0
  186. package/cli/dist/modules/fund/nsfc/commands/article-download.js.map +1 -0
  187. package/cli/dist/modules/fund/nsfc/commands/format-convert.d.ts +9 -0
  188. package/cli/dist/modules/fund/nsfc/commands/format-convert.d.ts.map +1 -0
  189. package/cli/dist/modules/fund/nsfc/commands/format-convert.js +98 -0
  190. package/cli/dist/modules/fund/nsfc/commands/format-convert.js.map +1 -0
  191. package/cli/dist/modules/fund/nsfc/commands/hypothesis-analyze.d.ts +12 -0
  192. package/cli/dist/modules/fund/nsfc/commands/hypothesis-analyze.d.ts.map +1 -0
  193. package/cli/dist/modules/fund/nsfc/commands/hypothesis-analyze.js +351 -0
  194. package/cli/dist/modules/fund/nsfc/commands/hypothesis-analyze.js.map +1 -0
  195. package/cli/dist/modules/fund/nsfc/commands/hypothesis-create.d.ts +21 -0
  196. package/cli/dist/modules/fund/nsfc/commands/hypothesis-create.d.ts.map +1 -0
  197. package/cli/dist/modules/fund/nsfc/commands/hypothesis-create.js +197 -0
  198. package/cli/dist/modules/fund/nsfc/commands/hypothesis-create.js.map +1 -0
  199. package/cli/dist/modules/fund/nsfc/commands/hypothesis-figure.d.ts +9 -0
  200. package/cli/dist/modules/fund/nsfc/commands/hypothesis-figure.d.ts.map +1 -0
  201. package/cli/dist/modules/fund/nsfc/commands/hypothesis-figure.js +120 -0
  202. package/cli/dist/modules/fund/nsfc/commands/hypothesis-figure.js.map +1 -0
  203. package/cli/dist/modules/fund/nsfc/commands/hypothesis-genes-select.d.ts +11 -0
  204. package/cli/dist/modules/fund/nsfc/commands/hypothesis-genes-select.d.ts.map +1 -0
  205. package/cli/dist/modules/fund/nsfc/commands/hypothesis-genes-select.js +125 -0
  206. package/cli/dist/modules/fund/nsfc/commands/hypothesis-genes-select.js.map +1 -0
  207. package/cli/dist/modules/fund/nsfc/commands/hypothesis-pick.d.ts +11 -0
  208. package/cli/dist/modules/fund/nsfc/commands/hypothesis-pick.d.ts.map +1 -0
  209. package/cli/dist/modules/fund/nsfc/commands/hypothesis-pick.js +109 -0
  210. package/cli/dist/modules/fund/nsfc/commands/hypothesis-pick.js.map +1 -0
  211. package/cli/dist/modules/fund/nsfc/commands/outline-confirm.d.ts +9 -0
  212. package/cli/dist/modules/fund/nsfc/commands/outline-confirm.d.ts.map +1 -0
  213. package/cli/dist/modules/fund/nsfc/commands/outline-confirm.js +64 -0
  214. package/cli/dist/modules/fund/nsfc/commands/outline-confirm.js.map +1 -0
  215. package/cli/dist/modules/fund/nsfc/commands/outline-create.d.ts +8 -0
  216. package/cli/dist/modules/fund/nsfc/commands/outline-create.d.ts.map +1 -0
  217. package/cli/dist/modules/fund/nsfc/commands/outline-create.js +103 -0
  218. package/cli/dist/modules/fund/nsfc/commands/outline-create.js.map +1 -0
  219. package/cli/dist/modules/fund/nsfc/commands/research-path-confirm.d.ts +9 -0
  220. package/cli/dist/modules/fund/nsfc/commands/research-path-confirm.d.ts.map +1 -0
  221. package/cli/dist/modules/fund/nsfc/commands/research-path-confirm.js +176 -0
  222. package/cli/dist/modules/fund/nsfc/commands/research-path-confirm.js.map +1 -0
  223. package/cli/dist/modules/fund/nsfc/commands/tech-roadmap.d.ts +9 -0
  224. package/cli/dist/modules/fund/nsfc/commands/tech-roadmap.d.ts.map +1 -0
  225. package/cli/dist/modules/fund/nsfc/commands/tech-roadmap.js +190 -0
  226. package/cli/dist/modules/fund/nsfc/commands/tech-roadmap.js.map +1 -0
  227. package/cli/dist/modules/fund/nsfc/constants.d.ts +96 -0
  228. package/cli/dist/modules/fund/nsfc/constants.d.ts.map +1 -0
  229. package/cli/dist/modules/fund/nsfc/constants.js +156 -0
  230. package/cli/dist/modules/fund/nsfc/constants.js.map +1 -0
  231. package/cli/dist/modules/fund/nsfc/graph-render.d.ts +25 -0
  232. package/cli/dist/modules/fund/nsfc/graph-render.d.ts.map +1 -0
  233. package/cli/dist/modules/fund/nsfc/graph-render.js +212 -0
  234. package/cli/dist/modules/fund/nsfc/graph-render.js.map +1 -0
  235. package/cli/dist/modules/fund/nsfc/index.d.ts +4 -0
  236. package/cli/dist/modules/fund/nsfc/index.d.ts.map +1 -0
  237. package/cli/dist/modules/fund/nsfc/index.js +238 -0
  238. package/cli/dist/modules/fund/nsfc/index.js.map +1 -0
  239. package/cli/dist/modules/fund/nsfc/mermaid-render.d.ts +18 -0
  240. package/cli/dist/modules/fund/nsfc/mermaid-render.d.ts.map +1 -0
  241. package/cli/dist/modules/fund/nsfc/mermaid-render.js +47 -0
  242. package/cli/dist/modules/fund/nsfc/mermaid-render.js.map +1 -0
  243. package/cli/dist/modules/fund/nsfc/parse-hypothesis.d.ts +76 -0
  244. package/cli/dist/modules/fund/nsfc/parse-hypothesis.d.ts.map +1 -0
  245. package/cli/dist/modules/fund/nsfc/parse-hypothesis.js +278 -0
  246. package/cli/dist/modules/fund/nsfc/parse-hypothesis.js.map +1 -0
  247. package/cli/dist/modules/fund/nsfc/parse-outline.d.ts +23 -0
  248. package/cli/dist/modules/fund/nsfc/parse-outline.d.ts.map +1 -0
  249. package/cli/dist/modules/fund/nsfc/parse-outline.js +91 -0
  250. package/cli/dist/modules/fund/nsfc/parse-outline.js.map +1 -0
  251. package/cli/dist/modules/fund/nsfc/png-watermark.d.ts +24 -0
  252. package/cli/dist/modules/fund/nsfc/png-watermark.d.ts.map +1 -0
  253. package/cli/dist/modules/fund/nsfc/png-watermark.js +78 -0
  254. package/cli/dist/modules/fund/nsfc/png-watermark.js.map +1 -0
  255. package/cli/dist/modules/fund/nsfc/prompt-hypothesis.d.ts +20 -0
  256. package/cli/dist/modules/fund/nsfc/prompt-hypothesis.d.ts.map +1 -0
  257. package/cli/dist/modules/fund/nsfc/prompt-hypothesis.js +107 -0
  258. package/cli/dist/modules/fund/nsfc/prompt-hypothesis.js.map +1 -0
  259. package/cli/dist/modules/fund/nsfc/prompt-step2.d.ts +18 -0
  260. package/cli/dist/modules/fund/nsfc/prompt-step2.d.ts.map +1 -0
  261. package/cli/dist/modules/fund/nsfc/prompt-step2.js +107 -0
  262. package/cli/dist/modules/fund/nsfc/prompt-step2.js.map +1 -0
  263. package/cli/dist/modules/fund/nsfc/request-body.d.ts +47 -0
  264. package/cli/dist/modules/fund/nsfc/request-body.d.ts.map +1 -0
  265. package/cli/dist/modules/fund/nsfc/request-body.js +38 -0
  266. package/cli/dist/modules/fund/nsfc/request-body.js.map +1 -0
  267. package/cli/dist/modules/fund/nsfc/session-cache.d.ts +48 -0
  268. package/cli/dist/modules/fund/nsfc/session-cache.d.ts.map +1 -0
  269. package/cli/dist/modules/fund/nsfc/session-cache.js +90 -0
  270. package/cli/dist/modules/fund/nsfc/session-cache.js.map +1 -0
  271. package/cli/dist/modules/fund/nsfc/sse-utils.d.ts +22 -0
  272. package/cli/dist/modules/fund/nsfc/sse-utils.d.ts.map +1 -0
  273. package/cli/dist/modules/fund/nsfc/sse-utils.js +81 -0
  274. package/cli/dist/modules/fund/nsfc/sse-utils.js.map +1 -0
  275. package/cli/dist/modules/fund/nsfc/upload.d.ts +3 -0
  276. package/cli/dist/modules/fund/nsfc/upload.d.ts.map +1 -0
  277. package/cli/dist/modules/fund/nsfc/upload.js +59 -0
  278. package/cli/dist/modules/fund/nsfc/upload.js.map +1 -0
  279. package/cli/dist/modules/fund/nsfc/validate.d.ts +30 -0
  280. package/cli/dist/modules/fund/nsfc/validate.d.ts.map +1 -0
  281. package/cli/dist/modules/fund/nsfc/validate.js +91 -0
  282. package/cli/dist/modules/fund/nsfc/validate.js.map +1 -0
  283. package/cli/dist/modules/literature/commands/workflow-list.d.ts +5 -0
  284. package/cli/dist/modules/literature/commands/workflow-list.d.ts.map +1 -0
  285. package/cli/dist/modules/literature/commands/workflow-list.js +9 -0
  286. package/cli/dist/modules/literature/commands/workflow-list.js.map +1 -0
  287. package/cli/dist/modules/literature/commands/workflow-params.d.ts +6 -0
  288. package/cli/dist/modules/literature/commands/workflow-params.d.ts.map +1 -0
  289. package/cli/dist/modules/literature/commands/workflow-params.js +9 -0
  290. package/cli/dist/modules/literature/commands/workflow-params.js.map +1 -0
  291. package/cli/dist/modules/literature/commands/workflow-run.d.ts +7 -0
  292. package/cli/dist/modules/literature/commands/workflow-run.d.ts.map +1 -0
  293. package/cli/dist/modules/literature/commands/workflow-run.js +10 -0
  294. package/cli/dist/modules/literature/commands/workflow-run.js.map +1 -0
  295. package/cli/dist/modules/literature/constants.d.ts +20 -0
  296. package/cli/dist/modules/literature/constants.d.ts.map +1 -0
  297. package/cli/dist/modules/literature/constants.js +56 -0
  298. package/cli/dist/modules/literature/constants.js.map +1 -0
  299. package/cli/dist/modules/literature/index.d.ts +3 -0
  300. package/cli/dist/modules/literature/index.d.ts.map +1 -0
  301. package/cli/dist/modules/literature/index.js +63 -0
  302. package/cli/dist/modules/literature/index.js.map +1 -0
  303. package/cli/dist/modules/meta/analysis.d.ts +127 -0
  304. package/cli/dist/modules/meta/analysis.d.ts.map +1 -0
  305. package/cli/dist/modules/meta/analysis.js +1165 -0
  306. package/cli/dist/modules/meta/analysis.js.map +1 -0
  307. package/cli/dist/modules/meta/api.d.ts +11 -0
  308. package/cli/dist/modules/meta/api.d.ts.map +1 -0
  309. package/cli/dist/modules/meta/api.js +40 -0
  310. package/cli/dist/modules/meta/api.js.map +1 -0
  311. package/cli/dist/modules/meta/commands.d.ts +3 -0
  312. package/cli/dist/modules/meta/commands.d.ts.map +1 -0
  313. package/cli/dist/modules/meta/commands.js +1185 -0
  314. package/cli/dist/modules/meta/commands.js.map +1 -0
  315. package/cli/dist/modules/meta/constants.d.ts +8 -0
  316. package/cli/dist/modules/meta/constants.d.ts.map +1 -0
  317. package/cli/dist/modules/meta/constants.js +9 -0
  318. package/cli/dist/modules/meta/constants.js.map +1 -0
  319. package/cli/dist/modules/meta/extraction.d.ts +206 -0
  320. package/cli/dist/modules/meta/extraction.d.ts.map +1 -0
  321. package/cli/dist/modules/meta/extraction.js +1248 -0
  322. package/cli/dist/modules/meta/extraction.js.map +1 -0
  323. package/cli/dist/modules/meta/index.d.ts +3 -0
  324. package/cli/dist/modules/meta/index.d.ts.map +1 -0
  325. package/cli/dist/modules/meta/index.js +19 -0
  326. package/cli/dist/modules/meta/index.js.map +1 -0
  327. package/cli/dist/modules/meta/node.d.ts +70 -0
  328. package/cli/dist/modules/meta/node.d.ts.map +1 -0
  329. package/cli/dist/modules/meta/node.js +167 -0
  330. package/cli/dist/modules/meta/node.js.map +1 -0
  331. package/cli/dist/modules/meta/plot-params.d.ts +82 -0
  332. package/cli/dist/modules/meta/plot-params.d.ts.map +1 -0
  333. package/cli/dist/modules/meta/plot-params.js +1179 -0
  334. package/cli/dist/modules/meta/plot-params.js.map +1 -0
  335. package/cli/dist/modules/meta/prisma-flow-docx.d.ts +23 -0
  336. package/cli/dist/modules/meta/prisma-flow-docx.d.ts.map +1 -0
  337. package/cli/dist/modules/meta/prisma-flow-docx.js +302 -0
  338. package/cli/dist/modules/meta/prisma-flow-docx.js.map +1 -0
  339. package/cli/dist/modules/meta/retrieve.d.ts +113 -0
  340. package/cli/dist/modules/meta/retrieve.d.ts.map +1 -0
  341. package/cli/dist/modules/meta/retrieve.js +913 -0
  342. package/cli/dist/modules/meta/retrieve.js.map +1 -0
  343. package/cli/dist/modules/meta/screening.d.ts +179 -0
  344. package/cli/dist/modules/meta/screening.d.ts.map +1 -0
  345. package/cli/dist/modules/meta/screening.js +1255 -0
  346. package/cli/dist/modules/meta/screening.js.map +1 -0
  347. package/cli/dist/modules/meta/topic.d.ts +110 -0
  348. package/cli/dist/modules/meta/topic.d.ts.map +1 -0
  349. package/cli/dist/modules/meta/topic.js +865 -0
  350. package/cli/dist/modules/meta/topic.js.map +1 -0
  351. package/cli/dist/modules/meta/types.d.ts +49 -0
  352. package/cli/dist/modules/meta/types.d.ts.map +1 -0
  353. package/cli/dist/modules/meta/types.js +2 -0
  354. package/cli/dist/modules/meta/types.js.map +1 -0
  355. package/cli/dist/modules/meta/workflow.d.ts +154 -0
  356. package/cli/dist/modules/meta/workflow.d.ts.map +1 -0
  357. package/cli/dist/modules/meta/workflow.js +956 -0
  358. package/cli/dist/modules/meta/workflow.js.map +1 -0
  359. package/cli/dist/modules/meta/writing.d.ts +83 -0
  360. package/cli/dist/modules/meta/writing.d.ts.map +1 -0
  361. package/cli/dist/modules/meta/writing.js +1077 -0
  362. package/cli/dist/modules/meta/writing.js.map +1 -0
  363. package/cli/dist/modules/proposal/artifacts.d.ts +18 -0
  364. package/cli/dist/modules/proposal/artifacts.d.ts.map +1 -0
  365. package/cli/dist/modules/proposal/artifacts.js +43 -0
  366. package/cli/dist/modules/proposal/artifacts.js.map +1 -0
  367. package/cli/dist/modules/proposal/commands/basic-create.d.ts +22 -0
  368. package/cli/dist/modules/proposal/commands/basic-create.d.ts.map +1 -0
  369. package/cli/dist/modules/proposal/commands/basic-create.js +81 -0
  370. package/cli/dist/modules/proposal/commands/basic-create.js.map +1 -0
  371. package/cli/dist/modules/proposal/commands/basic-result.d.ts +24 -0
  372. package/cli/dist/modules/proposal/commands/basic-result.d.ts.map +1 -0
  373. package/cli/dist/modules/proposal/commands/basic-result.js +96 -0
  374. package/cli/dist/modules/proposal/commands/basic-result.js.map +1 -0
  375. package/cli/dist/modules/proposal/commands/bioinfo-params.d.ts +5 -0
  376. package/cli/dist/modules/proposal/commands/bioinfo-params.d.ts.map +1 -0
  377. package/cli/dist/modules/proposal/commands/bioinfo-params.js +9 -0
  378. package/cli/dist/modules/proposal/commands/bioinfo-params.js.map +1 -0
  379. package/cli/dist/modules/proposal/commands/bioinfo-run.d.ts +6 -0
  380. package/cli/dist/modules/proposal/commands/bioinfo-run.d.ts.map +1 -0
  381. package/cli/dist/modules/proposal/commands/bioinfo-run.js +10 -0
  382. package/cli/dist/modules/proposal/commands/bioinfo-run.js.map +1 -0
  383. package/cli/dist/modules/proposal/commands/clinical-list.d.ts +5 -0
  384. package/cli/dist/modules/proposal/commands/clinical-list.d.ts.map +1 -0
  385. package/cli/dist/modules/proposal/commands/clinical-list.js +9 -0
  386. package/cli/dist/modules/proposal/commands/clinical-list.js.map +1 -0
  387. package/cli/dist/modules/proposal/commands/clinical-params.d.ts +6 -0
  388. package/cli/dist/modules/proposal/commands/clinical-params.d.ts.map +1 -0
  389. package/cli/dist/modules/proposal/commands/clinical-params.js +9 -0
  390. package/cli/dist/modules/proposal/commands/clinical-params.js.map +1 -0
  391. package/cli/dist/modules/proposal/commands/clinical-run.d.ts +7 -0
  392. package/cli/dist/modules/proposal/commands/clinical-run.d.ts.map +1 -0
  393. package/cli/dist/modules/proposal/commands/clinical-run.js +10 -0
  394. package/cli/dist/modules/proposal/commands/clinical-run.js.map +1 -0
  395. package/cli/dist/modules/proposal/constants.d.ts +34 -0
  396. package/cli/dist/modules/proposal/constants.d.ts.map +1 -0
  397. package/cli/dist/modules/proposal/constants.js +75 -0
  398. package/cli/dist/modules/proposal/constants.js.map +1 -0
  399. package/cli/dist/modules/proposal/index.d.ts +3 -0
  400. package/cli/dist/modules/proposal/index.d.ts.map +1 -0
  401. package/cli/dist/modules/proposal/index.js +95 -0
  402. package/cli/dist/modules/proposal/index.js.map +1 -0
  403. package/cli/dist/modules/proposal/newidea-env.d.ts +28 -0
  404. package/cli/dist/modules/proposal/newidea-env.d.ts.map +1 -0
  405. package/cli/dist/modules/proposal/newidea-env.js +69 -0
  406. package/cli/dist/modules/proposal/newidea-env.js.map +1 -0
  407. package/cli/dist/modules/proposal/newidea-runner.d.ts +25 -0
  408. package/cli/dist/modules/proposal/newidea-runner.d.ts.map +1 -0
  409. package/cli/dist/modules/proposal/newidea-runner.js +158 -0
  410. package/cli/dist/modules/proposal/newidea-runner.js.map +1 -0
  411. package/cli/dist/modules/proposal/parse.d.ts +25 -0
  412. package/cli/dist/modules/proposal/parse.d.ts.map +1 -0
  413. package/cli/dist/modules/proposal/parse.js +173 -0
  414. package/cli/dist/modules/proposal/parse.js.map +1 -0
  415. package/cli/dist/modules/sci/apps.d.ts +48 -0
  416. package/cli/dist/modules/sci/apps.d.ts.map +1 -0
  417. package/cli/dist/modules/sci/apps.js +43 -0
  418. package/cli/dist/modules/sci/apps.js.map +1 -0
  419. package/cli/dist/modules/sci/article-cache.d.ts +32 -0
  420. package/cli/dist/modules/sci/article-cache.d.ts.map +1 -0
  421. package/cli/dist/modules/sci/article-cache.js +163 -0
  422. package/cli/dist/modules/sci/article-cache.js.map +1 -0
  423. package/cli/dist/modules/sci/article-validate.d.ts +11 -0
  424. package/cli/dist/modules/sci/article-validate.d.ts.map +1 -0
  425. package/cli/dist/modules/sci/article-validate.js +43 -0
  426. package/cli/dist/modules/sci/article-validate.js.map +1 -0
  427. package/cli/dist/modules/sci/commands/article-create.d.ts +46 -0
  428. package/cli/dist/modules/sci/commands/article-create.d.ts.map +1 -0
  429. package/cli/dist/modules/sci/commands/article-create.js +315 -0
  430. package/cli/dist/modules/sci/commands/article-create.js.map +1 -0
  431. package/cli/dist/modules/sci/commands/article-download.d.ts +50 -0
  432. package/cli/dist/modules/sci/commands/article-download.d.ts.map +1 -0
  433. package/cli/dist/modules/sci/commands/article-download.js +281 -0
  434. package/cli/dist/modules/sci/commands/article-download.js.map +1 -0
  435. package/cli/dist/modules/sci/commands/outline.d.ts +36 -0
  436. package/cli/dist/modules/sci/commands/outline.d.ts.map +1 -0
  437. package/cli/dist/modules/sci/commands/outline.js +491 -0
  438. package/cli/dist/modules/sci/commands/outline.js.map +1 -0
  439. package/cli/dist/modules/sci/commands/template.d.ts +9 -0
  440. package/cli/dist/modules/sci/commands/template.d.ts.map +1 -0
  441. package/cli/dist/modules/sci/commands/template.js +12 -0
  442. package/cli/dist/modules/sci/commands/template.js.map +1 -0
  443. package/cli/dist/modules/sci/commands.d.ts +3 -0
  444. package/cli/dist/modules/sci/commands.d.ts.map +1 -0
  445. package/cli/dist/modules/sci/commands.js +108 -0
  446. package/cli/dist/modules/sci/commands.js.map +1 -0
  447. package/cli/dist/modules/sci/constants.d.ts +117 -0
  448. package/cli/dist/modules/sci/constants.d.ts.map +1 -0
  449. package/cli/dist/modules/sci/constants.js +152 -0
  450. package/cli/dist/modules/sci/constants.js.map +1 -0
  451. package/cli/dist/modules/sci/content-source.d.ts +18 -0
  452. package/cli/dist/modules/sci/content-source.d.ts.map +1 -0
  453. package/cli/dist/modules/sci/content-source.js +54 -0
  454. package/cli/dist/modules/sci/content-source.js.map +1 -0
  455. package/cli/dist/modules/sci/index.d.ts +3 -0
  456. package/cli/dist/modules/sci/index.d.ts.map +1 -0
  457. package/cli/dist/modules/sci/index.js +19 -0
  458. package/cli/dist/modules/sci/index.js.map +1 -0
  459. package/cli/dist/modules/sci/outline-transform.d.ts +16 -0
  460. package/cli/dist/modules/sci/outline-transform.d.ts.map +1 -0
  461. package/cli/dist/modules/sci/outline-transform.js +67 -0
  462. package/cli/dist/modules/sci/outline-transform.js.map +1 -0
  463. package/cli/dist/modules/sci/precheck-cache.d.ts +23 -0
  464. package/cli/dist/modules/sci/precheck-cache.d.ts.map +1 -0
  465. package/cli/dist/modules/sci/precheck-cache.js +141 -0
  466. package/cli/dist/modules/sci/precheck-cache.js.map +1 -0
  467. package/cli/dist/modules/sci/prompt-article.d.ts +12 -0
  468. package/cli/dist/modules/sci/prompt-article.d.ts.map +1 -0
  469. package/cli/dist/modules/sci/prompt-article.js +37 -0
  470. package/cli/dist/modules/sci/prompt-article.js.map +1 -0
  471. package/cli/dist/modules/sci/prompt-precheck.d.ts +16 -0
  472. package/cli/dist/modules/sci/prompt-precheck.d.ts.map +1 -0
  473. package/cli/dist/modules/sci/prompt-precheck.js +61 -0
  474. package/cli/dist/modules/sci/prompt-precheck.js.map +1 -0
  475. package/cli/dist/modules/sci/sse-utils.d.ts +50 -0
  476. package/cli/dist/modules/sci/sse-utils.d.ts.map +1 -0
  477. package/cli/dist/modules/sci/sse-utils.js +207 -0
  478. package/cli/dist/modules/sci/sse-utils.js.map +1 -0
  479. package/cli/dist/modules/shared/result-wrapper.d.ts +71 -0
  480. package/cli/dist/modules/shared/result-wrapper.d.ts.map +1 -0
  481. package/cli/dist/modules/shared/result-wrapper.js +95 -0
  482. package/cli/dist/modules/shared/result-wrapper.js.map +1 -0
  483. package/cli/dist/modules/shared/workflow-app/api.d.ts +6 -0
  484. package/cli/dist/modules/shared/workflow-app/api.d.ts.map +1 -0
  485. package/cli/dist/modules/shared/workflow-app/api.js +31 -0
  486. package/cli/dist/modules/shared/workflow-app/api.js.map +1 -0
  487. package/cli/dist/modules/shared/workflow-app/command.d.ts +30 -0
  488. package/cli/dist/modules/shared/workflow-app/command.d.ts.map +1 -0
  489. package/cli/dist/modules/shared/workflow-app/command.js +183 -0
  490. package/cli/dist/modules/shared/workflow-app/command.js.map +1 -0
  491. package/cli/dist/modules/shared/workflow-app/constants.d.ts +12 -0
  492. package/cli/dist/modules/shared/workflow-app/constants.d.ts.map +1 -0
  493. package/cli/dist/modules/shared/workflow-app/constants.js +21 -0
  494. package/cli/dist/modules/shared/workflow-app/constants.js.map +1 -0
  495. package/cli/dist/modules/shared/workflow-app/form.d.ts +21 -0
  496. package/cli/dist/modules/shared/workflow-app/form.d.ts.map +1 -0
  497. package/cli/dist/modules/shared/workflow-app/form.js +123 -0
  498. package/cli/dist/modules/shared/workflow-app/form.js.map +1 -0
  499. package/cli/dist/modules/shared/workflow-app/index.d.ts +8 -0
  500. package/cli/dist/modules/shared/workflow-app/index.d.ts.map +1 -0
  501. package/cli/dist/modules/shared/workflow-app/index.js +7 -0
  502. package/cli/dist/modules/shared/workflow-app/index.js.map +1 -0
  503. package/cli/dist/modules/shared/workflow-app/run.d.ts +15 -0
  504. package/cli/dist/modules/shared/workflow-app/run.d.ts.map +1 -0
  505. package/cli/dist/modules/shared/workflow-app/run.js +71 -0
  506. package/cli/dist/modules/shared/workflow-app/run.js.map +1 -0
  507. package/cli/dist/modules/shared/workflow-app/types.d.ts +74 -0
  508. package/cli/dist/modules/shared/workflow-app/types.d.ts.map +1 -0
  509. package/cli/dist/modules/shared/workflow-app/types.js +3 -0
  510. package/cli/dist/modules/shared/workflow-app/types.js.map +1 -0
  511. package/cli/dist/modules/site-configs.d.ts +4 -0
  512. package/cli/dist/modules/site-configs.d.ts.map +1 -0
  513. package/cli/dist/modules/site-configs.js +21 -0
  514. package/cli/dist/modules/site-configs.js.map +1 -0
  515. package/cli/dist/modules/upgrade/index.d.ts +6 -0
  516. package/cli/dist/modules/upgrade/index.d.ts.map +1 -0
  517. package/cli/dist/modules/upgrade/index.js +105 -0
  518. package/cli/dist/modules/upgrade/index.js.map +1 -0
  519. package/cli/dist/program.d.ts +3 -0
  520. package/cli/dist/program.d.ts.map +1 -0
  521. package/cli/dist/program.js +69 -0
  522. package/cli/dist/program.js.map +1 -0
  523. package/package.json +37 -0
@@ -0,0 +1,59 @@
1
+ // 基金工作台补充材料上传(对齐前端 uploadCommon + helixlife5-newidea-completion)
2
+ import { readFile, stat } from "node:fs/promises";
3
+ import { basename, extname } from "node:path";
4
+ import { ApiClient, helixlifeError, helixlifeErrorCode, resolveUserPath, unwrapApiData, } from "../../../core/index.js";
5
+ import { NSFC_UPLOAD_MAX_MB, NSFC_UPLOAD_SOURCE } from "./constants.js";
6
+ import { assertAttachExtension } from "./validate.js";
7
+ export async function uploadNsfcAttach(filePath) {
8
+ assertAttachExtension(filePath);
9
+ const resolved = resolveUserPath(filePath);
10
+ let fileStat;
11
+ try {
12
+ fileStat = await stat(resolved);
13
+ }
14
+ catch {
15
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, `无法读取文件: ${filePath}`);
16
+ }
17
+ const maxBytes = NSFC_UPLOAD_MAX_MB * 1024 * 1024;
18
+ if (fileStat.size > maxBytes) {
19
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, `文件大小不得超过 ${NSFC_UPLOAD_MAX_MB}MB`);
20
+ }
21
+ let buffer;
22
+ try {
23
+ buffer = await readFile(resolved);
24
+ }
25
+ catch {
26
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, `无法读取文件: ${filePath}`);
27
+ }
28
+ const fileName = basename(resolved);
29
+ const suffix = extname(resolved).replace(/^\./, "").toLowerCase();
30
+ const formData = new FormData();
31
+ formData.append("file_type", "file");
32
+ formData.append("source", NSFC_UPLOAD_SOURCE);
33
+ formData.append("type", "generator");
34
+ const fileData = new Uint8Array(buffer);
35
+ formData.append("files", new Blob([fileData], { type: "application/octet-stream" }), fileName);
36
+ formData.append("is_oss", "0");
37
+ const client = new ApiClient();
38
+ const response = await client.requestBinary("agent/v1/ai/sensitive/check", {
39
+ method: "POST",
40
+ body: formData,
41
+ });
42
+ let parsed;
43
+ try {
44
+ parsed = JSON.parse(response.buffer.toString("utf8"));
45
+ }
46
+ catch {
47
+ throw new helixlifeError(helixlifeErrorCode.INVALID_RESPONSE, "上传接口响应不是有效 JSON");
48
+ }
49
+ const data = unwrapApiData(parsed, "补充材料上传");
50
+ const content = data.content ?? "";
51
+ const word_count = data.word_count ?? 0;
52
+ return {
53
+ file_name: fileName,
54
+ suffix: suffix === "docx" ? "docx" : suffix || "pdf",
55
+ word_count,
56
+ content,
57
+ };
58
+ }
59
+ //# sourceMappingURL=upload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload.js","sourceRoot":"","sources":["../../../../src/modules/fund/nsfc/upload.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EACL,SAAS,EACT,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,aAAa,GAEd,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAStD,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,QAAgB;IAEhB,qBAAqB,CAAC,QAAQ,CAAC,CAAC;IAChC,MAAM,QAAQ,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;IAE3C,IAAI,QAAQ,CAAC;IACb,IAAI,CAAC;QACH,QAAQ,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,CAAC;IAClC,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,cAAc,CACtB,kBAAkB,CAAC,gBAAgB,EACnC,WAAW,QAAQ,EAAE,CACtB,CAAC;IACJ,CAAC;IAED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AC,6BAA6B,EAAE;QACzE,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,QAAQ;KACf,CAAC,CAAC;IAEH,IAAI,MAAkC,CAAC;IACvC,IAAI,CAAC;QACH,MAAM,GAAG,IAAI,CAAC,KAAK,CACjB,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CACH,CAAC;IAClC,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,cAAc,CACtB,kBAAkB,CAAC,gBAAgB,EACnC,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED,MAAM,IAAI,GAAG,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAC7C,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC;IACnC,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,CAAC,CAAC;IAExC,OAAO;QACL,SAAS,EAAE,QAAQ;QACnB,MAAM,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,IAAI,KAAK;QACpD,UAAU;QACV,OAAO;KACR,CAAC;AACJ,CAAC"}
@@ -0,0 +1,30 @@
1
+ import type { NsfcHasHypothesis, NsfcPriorResult, NsfcProjectLevel, NsfcProjectType } from "./constants.js";
2
+ export interface NsfcHypothesisValidateInput {
3
+ hasHypothesis: NsfcHasHypothesis;
4
+ projectLevel: NsfcProjectLevel;
5
+ project?: NsfcProjectType;
6
+ priorResult?: NsfcPriorResult;
7
+ query?: string;
8
+ disease?: string;
9
+ /** 本地附件路径(上传前校验扩展名;是否必填按路径判断) */
10
+ attachPath?: string;
11
+ /** 是否已有上传成功结果(交互上传后) */
12
+ hasAttachContent?: boolean;
13
+ }
14
+ /** 校验附件扩展名(路径级,上传前) */
15
+ export declare function assertAttachExtension(filePath: string): void;
16
+ /**
17
+ * 校验 Step1 表单;通过则返回规范化后的字段。
18
+ * 失败抛出 helixlifeError,不产出成功结果。
19
+ */
20
+ export declare function validateNsfcHypothesisCreate(input: NsfcHypothesisValidateInput): {
21
+ hasHypothesis: NsfcHasHypothesis;
22
+ projectLevel: NsfcProjectLevel;
23
+ project?: NsfcProjectType;
24
+ priorResult?: NsfcPriorResult;
25
+ query: string;
26
+ disease?: string;
27
+ attachRequired: boolean;
28
+ attachPath?: string;
29
+ };
30
+ //# sourceMappingURL=validate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../../src/modules/fund/nsfc/validate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,eAAe,EAChB,MAAM,gBAAgB,CAAC;AAUxB,MAAM,WAAW,2BAA2B;IAC1C,aAAa,EAAE,iBAAiB,CAAC;IACjC,YAAY,EAAE,gBAAgB,CAAC;IAC/B,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wBAAwB;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAsBD,uBAAuB;AACvB,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAS5D;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,2BAA2B,GACjC;IACD,aAAa,EAAE,iBAAiB,CAAC;IACjC,YAAY,EAAE,gBAAgB,CAAC;IAC/B,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAsFA"}
@@ -0,0 +1,91 @@
1
+ // Step1 必填校验(对齐前端 useFormValidation + writing-type-configs nsfc-v2)
2
+ import { helixlifeError, helixlifeErrorCode } from "../../../core/index.js";
3
+ import { NSFC_DISEASE_MAX, NSFC_QUERY_MAX_BLANK_DISEASE, NSFC_QUERY_MAX_BLANK_THEME, NSFC_QUERY_MAX_EXISTING_HYPOTHESIS, NSFC_UPLOAD_EXT, NSFC_UPLOAD_MAX_MB, } from "./constants.js";
4
+ function assertNonEmpty(value, label) {
5
+ const trimmed = value?.trim() ?? "";
6
+ if (!trimmed) {
7
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, `缺少必填项:${label}`);
8
+ }
9
+ return trimmed;
10
+ }
11
+ function assertMaxLength(value, max, label) {
12
+ if (value.length > max) {
13
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, `${label}不得超过 ${max} 字(当前 ${value.length} 字)`);
14
+ }
15
+ }
16
+ /** 校验附件扩展名(路径级,上传前) */
17
+ export function assertAttachExtension(filePath) {
18
+ const lower = filePath.toLowerCase();
19
+ const ok = NSFC_UPLOAD_EXT.some((ext) => lower.endsWith(ext));
20
+ if (!ok) {
21
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, `补充材料仅支持 ${NSFC_UPLOAD_EXT.join(" / ")}(单文件,≤${NSFC_UPLOAD_MAX_MB}MB)`);
22
+ }
23
+ }
24
+ /**
25
+ * 校验 Step1 表单;通过则返回规范化后的字段。
26
+ * 失败抛出 helixlifeError,不产出成功结果。
27
+ */
28
+ export function validateNsfcHypothesisCreate(input) {
29
+ const hasHypothesis = input.hasHypothesis;
30
+ const projectLevel = input.projectLevel;
31
+ let project;
32
+ if (projectLevel === "国家级") {
33
+ project = assertNonEmpty(input.project, "项目类型");
34
+ if (project !== "面上项目" &&
35
+ project !== "地区项目" &&
36
+ project !== "青年项目") {
37
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, `无效的项目类型: ${project}`);
38
+ }
39
+ }
40
+ if (hasHypothesis === "blank") {
41
+ const priorResult = input.priorResult;
42
+ if (priorResult !== "yes" && priorResult !== "no") {
43
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, "缺少必填项:您的情况(是否有前期研究结果)");
44
+ }
45
+ const queryLabel = priorResult === "yes" ? "疾病名称" : "您的研究主题";
46
+ const query = assertNonEmpty(input.query, queryLabel);
47
+ assertMaxLength(query, priorResult === "yes"
48
+ ? NSFC_QUERY_MAX_BLANK_DISEASE
49
+ : NSFC_QUERY_MAX_BLANK_THEME, queryLabel);
50
+ const attachRequired = priorResult === "yes";
51
+ if (attachRequired) {
52
+ const hasFile = Boolean(input.attachPath?.trim()) || Boolean(input.hasAttachContent);
53
+ if (!hasFile) {
54
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, "缺少必填项:补充材料(有前期研究结果时必须上传 pdf/docx)");
55
+ }
56
+ if (input.attachPath?.trim()) {
57
+ assertAttachExtension(input.attachPath.trim());
58
+ }
59
+ }
60
+ else if (input.attachPath?.trim()) {
61
+ assertAttachExtension(input.attachPath.trim());
62
+ }
63
+ return {
64
+ hasHypothesis,
65
+ projectLevel,
66
+ project,
67
+ priorResult,
68
+ query,
69
+ attachRequired,
70
+ attachPath: input.attachPath?.trim() || undefined,
71
+ };
72
+ }
73
+ // existing
74
+ const query = assertNonEmpty(input.query, "您的科学假说");
75
+ assertMaxLength(query, NSFC_QUERY_MAX_EXISTING_HYPOTHESIS, "您的科学假说");
76
+ const disease = assertNonEmpty(input.disease, "您的疾病名称");
77
+ assertMaxLength(disease, NSFC_DISEASE_MAX, "您的疾病名称");
78
+ if (input.attachPath?.trim()) {
79
+ assertAttachExtension(input.attachPath.trim());
80
+ }
81
+ return {
82
+ hasHypothesis,
83
+ projectLevel,
84
+ project,
85
+ query,
86
+ disease,
87
+ attachRequired: false,
88
+ attachPath: input.attachPath?.trim() || undefined,
89
+ };
90
+ }
91
+ //# sourceMappingURL=validate.js.map
@@ -0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CAAC;AACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { OutputFormat } from "../../../core/index.js";
2
+ export declare function runListLiteratureWorkflows(options: {
3
+ format: OutputFormat;
4
+ }): void;
5
+ //# sourceMappingURL=workflow-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-list.d.ts","sourceRoot":"","sources":["../../../../src/modules/literature/commands/workflow-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAI3D,wBAAgB,0BAA0B,CAAC,OAAO,EAAE;IAClD,MAAM,EAAE,YAAY,CAAC;CACtB,GAAG,IAAI,CAKP"}
@@ -0,0 +1,9 @@
1
+ import { runWorkflowList } from "../../shared/workflow-app/index.js";
2
+ import { LITERATURE_WORKFLOWS } from "../constants.js";
3
+ export function runListLiteratureWorkflows(options) {
4
+ runWorkflowList({
5
+ workflows: LITERATURE_WORKFLOWS,
6
+ format: options.format,
7
+ });
8
+ }
9
+ //# sourceMappingURL=workflow-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-list.js","sourceRoot":"","sources":["../../../../src/modules/literature/commands/workflow-list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,MAAM,UAAU,0BAA0B,CAAC,OAE1C;IACC,eAAe,CAAC;QACd,SAAS,EAAE,oBAAoB;QAC/B,MAAM,EAAE,OAAO,CAAC,MAAM;KACvB,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { OutputFormat } from "../../../core/index.js";
2
+ export declare function runLiteratureWorkflowParams(options: {
3
+ source: string;
4
+ format: OutputFormat;
5
+ }): Promise<void>;
6
+ //# sourceMappingURL=workflow-params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-params.d.ts","sourceRoot":"","sources":["../../../../src/modules/literature/commands/workflow-params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAI3D,wBAAsB,2BAA2B,CAAC,OAAO,EAAE;IACzD,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,YAAY,CAAC;CACtB,GAAG,OAAO,CAAC,IAAI,CAAC,CAKhB"}
@@ -0,0 +1,9 @@
1
+ import { runWorkflowParams } from "../../shared/workflow-app/index.js";
2
+ import { parseLiteratureWorkflow } from "../constants.js";
3
+ export async function runLiteratureWorkflowParams(options) {
4
+ await runWorkflowParams({
5
+ workflow: parseLiteratureWorkflow(options.source),
6
+ format: options.format,
7
+ });
8
+ }
9
+ //# sourceMappingURL=workflow-params.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-params.js","sourceRoot":"","sources":["../../../../src/modules/literature/commands/workflow-params.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAAC,OAGjD;IACC,MAAM,iBAAiB,CAAC;QACtB,QAAQ,EAAE,uBAAuB,CAAC,OAAO,CAAC,MAAM,CAAC;QACjD,MAAM,EAAE,OAAO,CAAC,MAAM;KACvB,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { OutputFormat } from "../../../core/index.js";
2
+ export declare function runLiteratureWorkflow(options: {
3
+ source: string;
4
+ inputsFile: string;
5
+ format: OutputFormat;
6
+ }): Promise<void>;
7
+ //# sourceMappingURL=workflow-run.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-run.d.ts","sourceRoot":"","sources":["../../../../src/modules/literature/commands/workflow-run.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAI3D,wBAAsB,qBAAqB,CAAC,OAAO,EAAE;IACnD,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,YAAY,CAAC;CACtB,GAAG,OAAO,CAAC,IAAI,CAAC,CAMhB"}
@@ -0,0 +1,10 @@
1
+ import { runWorkflowRun } from "../../shared/workflow-app/index.js";
2
+ import { parseLiteratureWorkflow } from "../constants.js";
3
+ export async function runLiteratureWorkflow(options) {
4
+ await runWorkflowRun({
5
+ workflow: parseLiteratureWorkflow(options.source),
6
+ inputsFile: options.inputsFile,
7
+ format: options.format,
8
+ });
9
+ }
10
+ //# sourceMappingURL=workflow-run.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-run.js","sourceRoot":"","sources":["../../../../src/modules/literature/commands/workflow-run.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,OAI3C;IACC,MAAM,cAAc,CAAC;QACnB,QAAQ,EAAE,uBAAuB,CAAC,OAAO,CAAC,MAAM,CAAC;QACjD,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,MAAM,EAAE,OAAO,CAAC,MAAM;KACvB,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { WorkflowAnyOfGroup } from "../shared/workflow-app/index.js";
2
+ export declare const LITERATURE_EXPERT_ID = "literature";
3
+ export declare const LITERATURE_EXPERT_TITLE = "\u6587\u732E\u8C03\u7814\u4E13\u5BB6";
4
+ /** 工作流 source,同时作为 x-tool-source 头与执行请求的 app_id */
5
+ export type LiteratureWorkflowSource = "WF01" | "WF02" | "WF03" | "WF04";
6
+ export interface LiteratureWorkflow {
7
+ source: LiteratureWorkflowSource;
8
+ /** 后端登记名,作为 app_name 的本地回退 */
9
+ name: string;
10
+ /** 简称,用于命令输出与意图匹配 */
11
+ title: string;
12
+ purpose: string;
13
+ /** 组内至少填一项的约束,后端 notNull 覆盖不到 */
14
+ anyOf?: WorkflowAnyOfGroup[];
15
+ }
16
+ export declare const LITERATURE_WORKFLOWS: readonly LiteratureWorkflow[];
17
+ export declare const LITERATURE_WORKFLOW_SOURCES: LiteratureWorkflowSource[];
18
+ export declare function findLiteratureWorkflow(raw: string): LiteratureWorkflow | undefined;
19
+ export declare function parseLiteratureWorkflow(raw: string): LiteratureWorkflow;
20
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/modules/literature/constants.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,eAAO,MAAM,oBAAoB,eAAe,CAAC;AACjD,eAAO,MAAM,uBAAuB,yCAAW,CAAC;AAEhD,mDAAmD;AACnD,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEzE,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,wBAAwB,CAAC;IACjC,8BAA8B;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,iCAAiC;IACjC,KAAK,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAC9B;AAID,eAAO,MAAM,oBAAoB,EAAE,SAAS,kBAAkB,EAuC7D,CAAC;AAEF,eAAO,MAAM,2BAA2B,4BAEvC,CAAC;AAEF,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,MAAM,GACV,kBAAkB,GAAG,SAAS,CAGhC;AAED,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CASvE"}
@@ -0,0 +1,56 @@
1
+ import { helixlifeError, helixlifeErrorCode } from "../../core/index.js";
2
+ export const LITERATURE_EXPERT_ID = "literature";
3
+ export const LITERATURE_EXPERT_TITLE = "文献调研专家";
4
+ // 表单字段由接口实时返回,此处只登记路由所需的静态信息。
5
+ // 四个工作流均不在公开应用列表中(tools 接口查不到),只能硬编码。
6
+ export const LITERATURE_WORKFLOWS = [
7
+ {
8
+ source: "WF01",
9
+ name: "文献调研-WF01-信息调研",
10
+ title: "信息调研",
11
+ purpose: "从一个研究问题出发,多源检索并汇总候选文献",
12
+ },
13
+ {
14
+ source: "WF02",
15
+ name: "文献调研-WF02-结构化拆解",
16
+ title: "结构化拆解",
17
+ purpose: "把一批文献压成统一格式的证据卡与证据矩阵,并给出研究缺口",
18
+ anyOf: [
19
+ {
20
+ fields: ["input_cards", "input_articles"],
21
+ message: "上游候选 JSON 与文章清单至少填写一项(input_cards 或 input_articles)",
22
+ },
23
+ ],
24
+ },
25
+ {
26
+ source: "WF03",
27
+ name: "文献调研-WF03-文献阅读",
28
+ title: "文献阅读",
29
+ purpose: "单篇精读:给定文献正文,产出阅读笔记与带定位的关键数值",
30
+ },
31
+ {
32
+ source: "WF04",
33
+ name: "文献调研-WF04-研究假设",
34
+ title: "研究假设",
35
+ purpose: "从证据缺口产出可检验的研究假设,并检索反向证据",
36
+ anyOf: [
37
+ {
38
+ fields: ["input_cards", "input_articles"],
39
+ message: "证据卡 JSON 与文章清单至少填写一项(input_cards 或 input_articles)",
40
+ },
41
+ ],
42
+ },
43
+ ];
44
+ export const LITERATURE_WORKFLOW_SOURCES = LITERATURE_WORKFLOWS.map((item) => item.source);
45
+ export function findLiteratureWorkflow(raw) {
46
+ const value = raw.trim().toUpperCase();
47
+ return LITERATURE_WORKFLOWS.find((item) => item.source === value);
48
+ }
49
+ export function parseLiteratureWorkflow(raw) {
50
+ const workflow = findLiteratureWorkflow(raw);
51
+ if (workflow) {
52
+ return workflow;
53
+ }
54
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, `无效工作流: ${raw},可选: ${LITERATURE_WORKFLOW_SOURCES.join(" | ")}`);
55
+ }
56
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/modules/literature/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGzE,MAAM,CAAC,MAAM,oBAAoB,GAAG,YAAY,CAAC;AACjD,MAAM,CAAC,MAAM,uBAAuB,GAAG,QAAQ,CAAC;AAgBhD,8BAA8B;AAC9B,sCAAsC;AACtC,MAAM,CAAC,MAAM,oBAAoB,GAAkC;IACjE;QACE,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,uBAAuB;KACjC;IACD;QACE,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,OAAO;QACd,OAAO,EAAE,8BAA8B;QACvC,KAAK,EAAE;YACL;gBACE,MAAM,EAAE,CAAC,aAAa,EAAE,gBAAgB,CAAC;gBACzC,OAAO,EACL,qDAAqD;aACxD;SACF;KACF;IACD;QACE,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,6BAA6B;KACvC;IACD;QACE,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,gBAAgB;QACtB,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,yBAAyB;QAClC,KAAK,EAAE;YACL;gBACE,MAAM,EAAE,CAAC,aAAa,EAAE,gBAAgB,CAAC;gBACzC,OAAO,EACL,oDAAoD;aACvD;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAG,oBAAoB,CAAC,GAAG,CACjE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CACtB,CAAC;AAEF,MAAM,UAAU,sBAAsB,CACpC,GAAW;IAEX,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IACvC,OAAO,oBAAoB,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,KAAK,KAAK,CAAC,CAAC;AACpE,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,GAAW;IACjD,MAAM,QAAQ,GAAG,sBAAsB,CAAC,GAAG,CAAC,CAAC;IAC7C,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,MAAM,IAAI,cAAc,CACtB,kBAAkB,CAAC,gBAAgB,EACnC,UAAU,GAAG,QAAQ,2BAA2B,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAC/D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Command } from "commander";
2
+ export declare function registerLiteratureCommands(program: Command): void;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/literature/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAezC,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA6DjE"}
@@ -0,0 +1,63 @@
1
+ import { emitJson, parseOutputFormat } from "../../core/index.js";
2
+ import { LITERATURE_EXPERT_ID, LITERATURE_EXPERT_TITLE, LITERATURE_WORKFLOWS, LITERATURE_WORKFLOW_SOURCES, } from "./constants.js";
3
+ import { runListLiteratureWorkflows } from "./commands/workflow-list.js";
4
+ import { runLiteratureWorkflowParams } from "./commands/workflow-params.js";
5
+ import { runLiteratureWorkflow } from "./commands/workflow-run.js";
6
+ const SOURCE_HINT = `工作流编号:${LITERATURE_WORKFLOW_SOURCES.join(" | ")}`;
7
+ // 注册文献调研专家命名空间:四个工作流共用「查表单 → 填参执行」两步式命令
8
+ export function registerLiteratureCommands(program) {
9
+ const literature = program
10
+ .command(LITERATURE_EXPERT_ID)
11
+ .description(LITERATURE_EXPERT_TITLE);
12
+ literature
13
+ .command("info")
14
+ .description(`查看${LITERATURE_EXPERT_TITLE}模块状态与可用工作流`)
15
+ .action(() => {
16
+ emitJson({
17
+ ok: true,
18
+ expert: LITERATURE_EXPERT_ID,
19
+ title: LITERATURE_EXPERT_TITLE,
20
+ implemented: true,
21
+ workflows: LITERATURE_WORKFLOWS.map((item) => ({
22
+ source: item.source,
23
+ title: item.title,
24
+ purpose: item.purpose,
25
+ })),
26
+ });
27
+ });
28
+ const workflow = literature
29
+ .command("workflow")
30
+ .description("文献调研工作流:查询表单并执行");
31
+ workflow
32
+ .command("list")
33
+ .description("列出四个可用工作流及其用途")
34
+ .option("--format <format>", "输出格式:markdown | json", "markdown")
35
+ .action((opts) => {
36
+ runListLiteratureWorkflows({ format: parseOutputFormat(opts.format) });
37
+ });
38
+ workflow
39
+ .command("params")
40
+ .description("查询指定工作流的动态表单字段与输出定义")
41
+ .requiredOption("--source <source>", SOURCE_HINT)
42
+ .option("--format <format>", "输出格式:markdown | json", "markdown")
43
+ .action(async (opts) => {
44
+ await runLiteratureWorkflowParams({
45
+ source: opts.source,
46
+ format: parseOutputFormat(opts.format),
47
+ });
48
+ });
49
+ workflow
50
+ .command("run")
51
+ .description("按填好的参数执行工作流并返回结果")
52
+ .requiredOption("--source <source>", SOURCE_HINT)
53
+ .requiredOption("--inputs-file <path>", "JSON 文件 {字段名: 值}")
54
+ .option("--format <format>", "输出格式:markdown | json", "markdown")
55
+ .action(async (opts) => {
56
+ await runLiteratureWorkflow({
57
+ source: opts.source,
58
+ inputsFile: opts.inputsFile,
59
+ format: parseOutputFormat(opts.format),
60
+ });
61
+ });
62
+ }
63
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/literature/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,iBAAiB,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,CAAC;SAC/D,MAAM,CAAC,CAAC,IAAwB,EAAE,EAAE;QACnC,0BAA0B,CAAC,EAAE,MAAM,EAAE,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACzE,CAAC,CAAC,CAAC;IAEL,QAAQ;SACL,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,qBAAqB,CAAC;SAClC,cAAc,CAAC,mBAAmB,EAAE,WAAW,CAAC;SAChD,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,EAAE,UAAU,CAAC;SAC/D,MAAM,CAAC,KAAK,EAAE,IAAwC,EAAE,EAAE;QACzD,MAAM,2BAA2B,CAAC;YAChC,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC;SACvC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEL,QAAQ;SACL,OAAO,CAAC,KAAK,CAAC;SACd,WAAW,CAAC,kBAAkB,CAAC;SAC/B,cAAc,CAAC,mBAAmB,EAAE,WAAW,CAAC;SAChD,cAAc,CAAC,sBAAsB,EAAE,kBAAkB,CAAC;SAC1D,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,EAAE,UAAU,CAAC;SAC/D,MAAM,CACL,KAAK,EAAE,IAA4D,EAAE,EAAE;QACrE,MAAM,qBAAqB,CAAC;YAC1B,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,MAAM,EAAE,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC;SACvC,CAAC,CAAC;IACL,CAAC,CACF,CAAC;AACN,CAAC"}
@@ -0,0 +1,127 @@
1
+ import { type OutputFormat } from "../../core/index.js";
2
+ import { type EditableParamsSectionBlock, type QualityPlotType } from "./plot-params.js";
3
+ import { type PrismaFlowData } from "./prisma-flow-docx.js";
4
+ import type { MetaWorkflowNode } from "./types.js";
5
+ export interface MetaAnalysisBaseOptions {
6
+ workflowId: string;
7
+ format?: OutputFormat;
8
+ configPath?: string;
9
+ }
10
+ export interface CreateAnalysisOptions extends MetaAnalysisBaseOptions {
11
+ configJson?: string;
12
+ configFile?: string;
13
+ sourceNodeId?: string;
14
+ }
15
+ export interface AnalysisNodeOptions extends MetaAnalysisBaseOptions {
16
+ nodeId?: string;
17
+ }
18
+ export interface RerunAnalysisOptions extends AnalysisNodeOptions {
19
+ configJson?: string;
20
+ configFile?: string;
21
+ /** 质量评估图专用:有改参时必填 traffic_light|summary。 */
22
+ plotType?: string;
23
+ }
24
+ export interface PrismaFlowOptions extends MetaAnalysisBaseOptions {
25
+ sourceNodeId?: string;
26
+ }
27
+ export interface PrismaFlowUpdateOptions extends PrismaFlowOptions {
28
+ dataJson?: string;
29
+ dataFile?: string;
30
+ }
31
+ export interface PrismaImageUploadOptions extends MetaAnalysisBaseOptions {
32
+ file: string;
33
+ }
34
+ export type PrismaExportFormat = "png" | "pdf" | "docx";
35
+ export interface PrismaExportOptions extends PrismaFlowOptions {
36
+ exportFormat?: string;
37
+ output?: string;
38
+ title?: string;
39
+ }
40
+ export interface PrismaGeneratedArtifact {
41
+ [key: string]: unknown;
42
+ runnerId: string;
43
+ nodeId: string;
44
+ exportFormat: PrismaExportFormat;
45
+ output: string;
46
+ filename: string;
47
+ contentType: string;
48
+ size: number;
49
+ data?: unknown;
50
+ upload?: unknown;
51
+ /** Agent 必须实际展示产物的硬指令(默认 PNG 含「勿提前弹语言选择器」) */
52
+ displayInstruction?: string;
53
+ /** 本节点操作选项;以无序列表列出后停顿,禁止弹选择器 */
54
+ operationOptions?: string[];
55
+ }
56
+ export interface MetaAnalysisStepResult {
57
+ runnerId: string;
58
+ nodeId: string;
59
+ nodeType: string;
60
+ status: string;
61
+ input: Record<string, unknown>;
62
+ output: unknown;
63
+ node: MetaWorkflowNode;
64
+ }
65
+ export interface MetaAnalysisActionResult {
66
+ runnerId: string;
67
+ nodeId: string;
68
+ input?: Record<string, unknown>;
69
+ data: unknown;
70
+ /** 当前完整绘图配置(默认值与节点 input 合并后) */
71
+ currentConfig?: Record<string, unknown>;
72
+ /** 全部可修改参数 Markdown(森林图 / 漏斗图;由 sections 拼接,兼容原样粘贴) */
73
+ editableParamsMarkdown?: string;
74
+ /** 按网站分组的参数块;须按序逐组展示,禁止用「/」合并 label */
75
+ editableParamsSections?: EditableParamsSectionBlock[];
76
+ /** 分组标题清单;回复中的分组标题须与此一一对应 */
77
+ requiredSectionLabels?: string[];
78
+ /** 质量评估红绿灯图可修改参数 Markdown(选择器后单组展示) */
79
+ editableParamsMarkdownTrafficLight?: string;
80
+ /** 质量评估红绿灯图分组块(选定「编辑红绿灯参数」后使用) */
81
+ editableParamsSectionsTrafficLight?: EditableParamsSectionBlock[];
82
+ requiredSectionLabelsTrafficLight?: string[];
83
+ /** 质量评估总结图可修改参数 Markdown(选择器后单组展示) */
84
+ editableParamsMarkdownSummary?: string;
85
+ /** 质量评估总结图分组块(选定「编辑总结图参数」后使用) */
86
+ editableParamsSectionsSummary?: EditableParamsSectionBlock[];
87
+ requiredSectionLabelsSummary?: string[];
88
+ /** 用户选择「编辑参数并重新生成」时的硬性展示指令 */
89
+ editInstruction?: string;
90
+ /** Agent 必须实际展示 artifact 产物的硬指令 */
91
+ displayInstruction?: string;
92
+ /** 本次 rerun 生效的图类型(质量评估图) */
93
+ editedPlotType?: QualityPlotType;
94
+ }
95
+ /**
96
+ * 基于与 PNG 相同的 SVG 渲染生成 PRISMA PDF,保证英文文案与箭头间距一致。
97
+ *
98
+ * @param data PRISMA 结构化数据。
99
+ * @returns PDF 文件内容。
100
+ */
101
+ export declare function buildPrismaPdf(data: PrismaFlowData): Promise<Buffer>;
102
+ /**
103
+ * 导出 PRISMA 流程图产物。
104
+ *
105
+ * @param options PRISMA 导出参数。
106
+ * @returns 导出文件信息。
107
+ */
108
+ export declare function exportPrismaFlow(options: PrismaExportOptions): Promise<PrismaGeneratedArtifact>;
109
+ export declare function runCreateEffectPlot(options: CreateAnalysisOptions): Promise<void>;
110
+ export declare function runGetEffectPlot(options: AnalysisNodeOptions): Promise<void>;
111
+ export declare function runRerunEffectPlot(options: RerunAnalysisOptions): Promise<void>;
112
+ export declare function runCreateBiasPlot(options: CreateAnalysisOptions): Promise<void>;
113
+ export declare function runGetBiasPlot(options: AnalysisNodeOptions): Promise<void>;
114
+ export declare function runRerunBiasPlot(options: RerunAnalysisOptions): Promise<void>;
115
+ export declare function runCreateAssessmentPlot(options: CreateAnalysisOptions): Promise<void>;
116
+ export declare function runGetAssessmentPlot(options: AnalysisNodeOptions): Promise<void>;
117
+ export declare function runRerunAssessmentPlot(options: RerunAnalysisOptions): Promise<void>;
118
+ export declare function runCreatePrismaFlow(options: PrismaExportOptions): Promise<void>;
119
+ /** Exports the editable PRISMA Word artifact as part of the final draft bundle. */
120
+ export declare function exportFinalPrismaWordArtifact(options: PrismaFlowOptions & {
121
+ output?: string;
122
+ }): Promise<PrismaGeneratedArtifact>;
123
+ export declare function runUpdatePrismaFlowData(options: PrismaFlowUpdateOptions): Promise<void>;
124
+ export declare function runGetPrismaImage(options: MetaAnalysisBaseOptions): Promise<void>;
125
+ export declare function runUploadPrismaImage(options: PrismaImageUploadOptions): Promise<void>;
126
+ export declare function runExportPrismaFlow(options: PrismaExportOptions): Promise<void>;
127
+ //# sourceMappingURL=analysis.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analysis.d.ts","sourceRoot":"","sources":["../../../src/modules/meta/analysis.ts"],"names":[],"mappings":"AAIA,OAAO,EAQL,KAAK,YAAY,EAClB,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAKL,KAAK,0BAA0B,EAC/B,KAAK,eAAe,EACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAEV,gBAAgB,EAEjB,MAAM,YAAY,CAAC;AA+IpB,MAAM,WAAW,uBAAuB;IACtC,UAAU,EA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