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,176 @@
1
+ // Step2 路径3:确认缺失信息 → 直接跑提纲(2B,跳过补假说)
2
+ import { readFile } from "node:fs/promises";
3
+ import { helixlifeError, helixlifeErrorCode, printOutput, createFormatLogger, resolveUserPath, } from "../../../../core/index.js";
4
+ import { wrapWorkbenchResult } from "../../../shared/result-wrapper.js";
5
+ import { buildNsfcExecuteBody, createNsfcOrder, extractNsfcOrderId, } from "../apps.js";
6
+ import { NSFC_APP_NAMES, NSFC_EXECUTE_API_PATH, NSFC_OUTLINE_APP_ID, NSFC_PROVINCE_PROGRAM, } from "../constants.js";
7
+ import { getResearchPathReportText } from "../parse-hypothesis.js";
8
+ import { promptMissingInfoPicks } from "../prompt-step2.js";
9
+ import { loadNsfcSessionCache, saveNsfcSessionCache, } from "../session-cache.js";
10
+ import { formatElapsedHint, streamNsfcWorkflow } from "../sse-utils.js";
11
+ async function loadPicksFile(path) {
12
+ const filePath = resolveUserPath(path);
13
+ try {
14
+ const raw = await readFile(filePath, "utf8");
15
+ const parsed = JSON.parse(raw);
16
+ if (!Array.isArray(parsed)) {
17
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, "--picks-file 须为 JSON 数组 [{title,value}]");
18
+ }
19
+ return parsed.map((item, i) => {
20
+ if (!item || typeof item !== "object") {
21
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, `--picks-file 第 ${i + 1} 项非法`);
22
+ }
23
+ const rec = item;
24
+ return {
25
+ title: String(rec.title ?? ""),
26
+ value: String(rec.value ?? ""),
27
+ };
28
+ });
29
+ }
30
+ catch (error) {
31
+ if (error instanceof helixlifeError)
32
+ throw error;
33
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, `无法读取 --picks-file: ${path}`);
34
+ }
35
+ }
36
+ function buildMissingInputs(picks) {
37
+ const out = {};
38
+ let seq = 0;
39
+ for (const item of picks) {
40
+ if (!item.title && !item.value)
41
+ continue;
42
+ seq += 1;
43
+ out[`q${seq}`] = item.title;
44
+ out[`text${seq}`] = item.value;
45
+ }
46
+ return out;
47
+ }
48
+ export async function runNsfcResearchPathConfirm(options) {
49
+ const format = options.format ?? "markdown";
50
+ const log = createFormatLogger(format);
51
+ if (!options.orderId?.trim()) {
52
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, "research-path confirm 必须提供 --order-id");
53
+ }
54
+ const session = await loadNsfcSessionCache(options.orderId);
55
+ if (!session) {
56
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, `会话缓存缺失:orderId=${options.orderId},请重新执行 hypothesis analyze`);
57
+ }
58
+ if (session.nextSubStep !== "research_path") {
59
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, `当前路径为 ${session.nextSubStep},请使用 hypothesis pick`);
60
+ }
61
+ const missingInfo = session.missingInfo ?? [];
62
+ const missingInfoEmpty = missingInfo.length === 0;
63
+ let picks = [];
64
+ if (!missingInfoEmpty) {
65
+ if (options.picksFile?.trim()) {
66
+ picks = await loadPicksFile(options.picksFile);
67
+ }
68
+ else if (options.yes) {
69
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, "存在缺失信息时,使用 -y 须提供 --picks-file(至少选一项工作流选项)");
70
+ }
71
+ else {
72
+ const prompted = await promptMissingInfoPicks(missingInfo);
73
+ picks = prompted.picks;
74
+ }
75
+ if (picks.length === 0) {
76
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, "请至少选择一项缺失信息后再继续");
77
+ }
78
+ }
79
+ const projectLevel = String(session.inputs.projectLevel ?? "");
80
+ const isProvince = projectLevel === "省部级";
81
+ const baseHypothesisText = String(session.inputs.text ?? session.query ?? "").trim();
82
+ if (!baseHypothesisText) {
83
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, "缺少已有科学假说文本,无法生成提纲");
84
+ }
85
+ const rawResults = session.genePreResultsText ||
86
+ String(session.inputs.results ??
87
+ (Array.isArray(session.inputs.file1)
88
+ ? session.inputs.file1[0]?.content
89
+ : "") ??
90
+ "");
91
+ const content1 = getResearchPathReportText(session.researchPathResult) ||
92
+ session.researchPathText ||
93
+ "";
94
+ const program = isProvince
95
+ ? NSFC_PROVINCE_PROGRAM
96
+ : String(session.inputs.program ?? session.inputs.project ?? "");
97
+ const missingInputs = buildMissingInputs(picks);
98
+ // 2B:跳过补假说;query 填用户假说;inputs 对齐 buildNsfcV2OutlineWorkflowParams
99
+ const outlineQuery = baseHypothesisText;
100
+ const outlineInputs = {
101
+ program,
102
+ text: baseHypothesisText,
103
+ results: String(session.genePreResultsText?.trim() || rawResults || ""),
104
+ // 保留研究路径上下文供缓存 / Step3;execute 侧按前端 slim 只传 program/text/results
105
+ content1,
106
+ hypo: baseHypothesisText,
107
+ gene_pre_results_text: session.genePreResultsText ?? "",
108
+ projectLevel,
109
+ ...missingInputs,
110
+ };
111
+ const slimInputs = {
112
+ program: outlineInputs.program,
113
+ text: outlineInputs.text,
114
+ results: outlineInputs.results,
115
+ };
116
+ log("接口正在处理中,请耐心等待...");
117
+ const childOrder = await createNsfcOrder({
118
+ index: 1,
119
+ count: 1,
120
+ query: outlineQuery,
121
+ inputs: slimInputs,
122
+ parent_order_id: session.orderId,
123
+ });
124
+ const childOrderId = extractNsfcOrderId(childOrder);
125
+ const body = buildNsfcExecuteBody({
126
+ query: outlineQuery,
127
+ inputs: slimInputs,
128
+ appId: NSFC_OUTLINE_APP_ID,
129
+ appName: NSFC_APP_NAMES.outline,
130
+ orderId: childOrderId,
131
+ index: 1,
132
+ parentOrderId: session.orderId,
133
+ end: false,
134
+ });
135
+ const stream = await streamNsfcWorkflow({
136
+ path: NSFC_EXECUTE_API_PATH,
137
+ body,
138
+ format,
139
+ startLabel: "申请书提纲生成中…",
140
+ progressLabel: "提纲生成进行中",
141
+ finishLabel: "提纲生成完成",
142
+ failureMessage: "提纲生成失败,请稍后重试",
143
+ emptyMessage: "提纲生成结果为空",
144
+ });
145
+ const outline = stream.text.trim();
146
+ if (!outline) {
147
+ throw new helixlifeError(helixlifeErrorCode.INVALID_RESPONSE, "提纲生成结果为空");
148
+ }
149
+ await saveNsfcSessionCache({
150
+ ...session,
151
+ outlineParams: { query: outlineQuery, inputs: outlineInputs },
152
+ outline,
153
+ confirmedHypothesis: baseHypothesisText,
154
+ workflowRunId: stream.workflowRunId,
155
+ });
156
+ const result = {
157
+ outline,
158
+ researchPath: content1,
159
+ picks,
160
+ ready: true,
161
+ };
162
+ if (format === "json") {
163
+ printOutput(wrapWorkbenchResult(result, { step: "research-path-confirm", subType: "nsfc" }, {
164
+ orderId: session.orderId,
165
+ workflowRunId: stream.workflowRunId,
166
+ hasHypothesis: "existing",
167
+ nextSubStep: "research_path",
168
+ outlineAppSuffix: "",
169
+ readyForOutline: true,
170
+ }), "json");
171
+ return;
172
+ }
173
+ console.log(`\n## 申请书提纲${formatElapsedHint(stream.elapsedTime)}\n`);
174
+ console.log(outline);
175
+ }
176
+ //# sourceMappingURL=research-path-confirm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"research-path-confirm.js","sourceRoot":"","sources":["../../../../../src/modules/fund/nsfc/commands/research-path-confirm.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,WAAW,EACX,kBAAkB,EAClB,eAAe,GAEhB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,kBAAkB,GACnB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,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;IAEF,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;QACtB,WAAW,CACT,mBAAmB,CACjB,MAAM,EACN,EAAE,IAAI,EAAE,uBAAuB,EAAE,OAAO,EAAE,MAAM,EAAE,EAClD;YACE,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,aAAa,EAAE,MAAM,CAAC,aAAa;YACnC,aAAa,EAAE,UAAU;YACzB,WAAW,EAAE,eAAe;YAC5B,gBAAgB,EAAE,EAAE;YACpB,eAAe,EAAE,IAAI;SACtB,CACF,EACD,MAAM,CACP,CAAC;QACF,OAAO;IACT,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,aAAa,iBAAiB,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IACpE,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACvB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { type OutputFormat } from "../../../../core/index.js";
2
+ export interface TechRoadmapOptions {
3
+ orderId?: string;
4
+ output?: string;
5
+ yes?: boolean;
6
+ format?: OutputFormat;
7
+ }
8
+ export declare function runNsfcTechRoadmap(options: TechRoadmapOptions): Promise<void>;
9
+ //# sourceMappingURL=tech-roadmap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tech-roadmap.d.ts","sourceRoot":"","sources":["../../../../../src/modules/fund/nsfc/commands/tech-roadmap.ts"],"names":[],"mappings":"AAGA,OAAO,EAQL,KAAK,YAAY,EAClB,MAAM,2BAA2B,CAAC;AAkBnC,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB;AA2BD,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,IAAI,CAAC,CAoNf"}
@@ -0,0 +1,190 @@
1
+ // 技术路线图:基于 Step3 提纲立项依据,只出图不插入全文
2
+ import { mkdir, readFile, rename, writeFile } from "node:fs/promises";
3
+ import { join } from "node:path";
4
+ import { helixlifeError, helixlifeErrorCode, getUserDownloadsDir, printOutput, createFormatLogger, resolveUserPath, sanitizeFilename, } from "../../../../core/index.js";
5
+ import { wrapWorkbenchResult } from "../../../shared/result-wrapper.js";
6
+ import { buildNsfcExecuteBody, createNsfcOrder, extractNsfcOrderId, } from "../apps.js";
7
+ import { NSFC_APP_NAMES, NSFC_EXECUTE_API_PATH, NSFC_TECH_ROADMAP_APP_ID, } from "../constants.js";
8
+ import { renderMermaidToPng, stripMermaidFences } from "../mermaid-render.js";
9
+ import { extractOutlineBlocks } from "../parse-outline.js";
10
+ import { applyPngWatermark } from "../png-watermark.js";
11
+ import { loadNsfcSessionCache } from "../session-cache.js";
12
+ import { streamNsfcWorkflow } from "../sse-utils.js";
13
+ /** 主三段(对齐原站 nsfc-v2 Tab);anicln_level 仅顺带 */
14
+ const PRIMARY_MERMAID_KEYS = [
15
+ "cell_level",
16
+ "animal_level",
17
+ "clinical_level",
18
+ ];
19
+ const MERMAID_KEYS = [...PRIMARY_MERMAID_KEYS, "anicln_level"];
20
+ const LEVEL_LABELS = {
21
+ cell_level: "细胞实验",
22
+ animal_level: "动物实验",
23
+ clinical_level: "临床实验",
24
+ anicln_level: "动临联合",
25
+ };
26
+ export async function runNsfcTechRoadmap(options) {
27
+ const format = options.format ?? "markdown";
28
+ const log = createFormatLogger(format);
29
+ if (!options.orderId?.trim()) {
30
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, "tech-roadmap create 必须提供 --order-id");
31
+ }
32
+ const session = await loadNsfcSessionCache(options.orderId);
33
+ if (!session) {
34
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, `会话缓存缺失:orderId=${options.orderId}`);
35
+ }
36
+ const outline = String(session.outline ?? "").trim();
37
+ if (!outline) {
38
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, "缺少确认提纲(Step3),无法基于立项依据生成技术路线图");
39
+ }
40
+ const blocks = extractOutlineBlocks(outline);
41
+ const pp = (blocks.pp_outline || outline).trim();
42
+ const rp = (blocks.res_content || "").trim();
43
+ log("接口正在处理中,请耐心等待...");
44
+ const childOrder = await createNsfcOrder({
45
+ index: 3,
46
+ count: 1,
47
+ query: "技术路线图",
48
+ inputs: { pp, rp },
49
+ parent_order_id: session.orderId,
50
+ });
51
+ const childOrderId = extractNsfcOrderId(childOrder);
52
+ const body = buildNsfcExecuteBody({
53
+ query: "技术路线图",
54
+ inputs: { pp, rp },
55
+ appId: NSFC_TECH_ROADMAP_APP_ID,
56
+ appName: NSFC_APP_NAMES.techRoadmap,
57
+ orderId: childOrderId,
58
+ index: 3,
59
+ parentOrderId: session.orderId,
60
+ end: false,
61
+ });
62
+ const stream = await streamNsfcWorkflow({
63
+ path: NSFC_EXECUTE_API_PATH,
64
+ body,
65
+ format,
66
+ startLabel: "技术路线图生成中…",
67
+ progressLabel: "技术路线图进行中",
68
+ finishLabel: "技术路线图完成",
69
+ failureMessage: "技术路线图生成失败",
70
+ emptyMessage: "技术路线图未返回有效结果",
71
+ allowEmptyText: true,
72
+ });
73
+ const outputs = stream.outputs ?? {};
74
+ const outDir = options.output
75
+ ? resolveUserPath(options.output)
76
+ : join(getUserDownloadsDir(), "nsfc-tech-roadmap");
77
+ await mkdir(outDir, { recursive: true });
78
+ const mermaid = {};
79
+ const images = [];
80
+ const warnings = [];
81
+ const produceId = stream.workflowRunId ?? "";
82
+ for (const key of MERMAID_KEYS) {
83
+ const raw = outputs[key];
84
+ if (typeof raw !== "string" || !raw.trim())
85
+ continue;
86
+ mermaid[key] = stripMermaidFences(raw);
87
+ const label = LEVEL_LABELS[key];
88
+ // 先用 ASCII 路径渲染,再改名中文交付
89
+ const renderBase = join(outDir, `nsfc-tech-roadmap-${key}`);
90
+ const displayBase = join(outDir, sanitizeFilename(`技术路线图-${label}`));
91
+ // 对齐原站:细胞水平纵排,动物/临床/动临横排
92
+ const horizontal = key !== "cell_level";
93
+ const rendered = await renderMermaidToPng(raw, renderBase, { horizontal });
94
+ let mmdPath = rendered.mmdPath;
95
+ let pngPath = rendered.pngPath;
96
+ let watermarked = false;
97
+ if (rendered.rendered && rendered.pngPath) {
98
+ try {
99
+ const pngBuf = await readFile(rendered.pngPath);
100
+ const wm = await applyPngWatermark({
101
+ pngBuffer: pngBuf,
102
+ produceId,
103
+ paddingColor: "#ffffff",
104
+ });
105
+ await writeFile(rendered.pngPath, wm.buffer);
106
+ watermarked = wm.watermarked;
107
+ if (!wm.watermarked && wm.error) {
108
+ warnings.push(`${label} 水印失败(已保留原图):${wm.error}`);
109
+ }
110
+ }
111
+ catch (err) {
112
+ const msg = err instanceof Error ? err.message : String(err);
113
+ warnings.push(`${label} 水印处理异常(已保留原图):${msg.slice(0, 200)}`);
114
+ }
115
+ }
116
+ else if (rendered.error) {
117
+ warnings.push(rendered.error);
118
+ }
119
+ // 渲染完成后再改成中文文件名(.mmd 始终改名;PNG 仅在成功时)
120
+ const displayMmd = `${displayBase}.mmd`;
121
+ const displayPng = `${displayBase}.png`;
122
+ try {
123
+ if (mmdPath !== displayMmd) {
124
+ await rename(mmdPath, displayMmd);
125
+ mmdPath = displayMmd;
126
+ }
127
+ if (pngPath && pngPath !== displayPng) {
128
+ await rename(pngPath, displayPng);
129
+ pngPath = displayPng;
130
+ }
131
+ }
132
+ catch (err) {
133
+ const msg = err instanceof Error ? err.message : String(err);
134
+ warnings.push(`${label} 文件改名失败(仍可用 ASCII 路径):${msg.slice(0, 200)}`);
135
+ }
136
+ images.push({
137
+ key,
138
+ label,
139
+ mmdPath,
140
+ pngPath,
141
+ rendered: Boolean(rendered.rendered && pngPath),
142
+ watermarked,
143
+ });
144
+ }
145
+ if (!images.length) {
146
+ throw new helixlifeError(helixlifeErrorCode.INVALID_RESPONSE, "技术路线图未返回 Mermaid 字段(cell_level / animal_level / clinical_level)");
147
+ }
148
+ const primaryReturned = PRIMARY_MERMAID_KEYS.filter((k) => mermaid[k]);
149
+ const primaryRendered = images.filter((img) => PRIMARY_MERMAID_KEYS.includes(img.key) &&
150
+ img.rendered);
151
+ if (primaryReturned.length >= 3 &&
152
+ primaryRendered.length < primaryReturned.length) {
153
+ const failed = images
154
+ .filter((img) => PRIMARY_MERMAID_KEYS.includes(img.key) &&
155
+ !img.rendered)
156
+ .map((img) => img.label);
157
+ warnings.push(`主三段中有 ${failed.length} 张 PNG 未渲染成功(${failed.join("、")}),` +
158
+ `graph-layout 出图失败;对应 .mmd 已保存。` +
159
+ `Agent 须向用户同时交付全部三段路径(含失败项的 .mmd)。`);
160
+ }
161
+ const result = {
162
+ images,
163
+ mermaid,
164
+ warnings,
165
+ note: "须交付细胞/动物/临床实验三张路径(PNG 优先;失败则对应 .mmd)。图片未插入全文。PNG 含水印「AI生成」(与原站一致)。",
166
+ ready: true,
167
+ };
168
+ if (format === "json") {
169
+ printOutput(wrapWorkbenchResult(result, { step: "tech-roadmap", subType: "nsfc" }, {
170
+ orderId: session.orderId,
171
+ workflowRunId: stream.workflowRunId,
172
+ }), "json");
173
+ return;
174
+ }
175
+ console.log("## 技术路线图已生成(未插入全文)\n");
176
+ for (const img of images) {
177
+ const path = img.pngPath ?? img.mmdPath;
178
+ const status = img.rendered
179
+ ? img.watermarked
180
+ ? "PNG+水印"
181
+ : "PNG"
182
+ : "仅.mmd";
183
+ console.log(`- ${img.label} (${img.key}) [${status}]: ${path}`);
184
+ }
185
+ if (warnings.length) {
186
+ console.log("\n警告:");
187
+ warnings.forEach((w) => console.log(`- ${w}`));
188
+ }
189
+ }
190
+ //# sourceMappingURL=tech-roadmap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tech-roadmap.js","sourceRoot":"","sources":["../../../../../src/modules/fund/nsfc/commands/tech-roadmap.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAA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C,GAAG,CAAC,sBAAsB,CAAC,CAAC;IACpC,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;QACzB,MAAM,IAAI,GAAG,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC;QACxC,MAAM,MAAM,GAAG,GAAG,CAAC,QAAQ;YACzB,CAAC,CAAC,GAAG,CAAC,WAAW;gBACf,CAAC,CAAC,QAAQ;gBACV,CAAC,CAAC,KAAK;YACT,CAAC,CAAC,OAAO,CAAC;QACZ,OAAO,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,KAAK,KAAK,GAAG,CAAC,GAAG,MAAM,MAAM,MAAM,IAAI,EAAE,CAAC,CAAC;IAClE,CAAC;IACD,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;QACpB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACrB,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IACjD,CAAC;AACH,CAAC"}
@@ -0,0 +1,96 @@
1
+ /** 后台模块类型(API 路径用 nsfc-v2;CLI 命名空间仍为 nsfc) */
2
+ export declare const NSFC_MODULE_TYPE: "nsfc-v2";
3
+ /** 上传接口 source,对齐前端 FileUploadItem */
4
+ export declare const NSFC_UPLOAD_SOURCE = "helixlife5-newidea-completion";
5
+ export declare const NSFC_UPLOAD_EXT: readonly [".pdf", ".docx"];
6
+ export declare const NSFC_UPLOAD_MAX_MB = 30;
7
+ /** 是否有科学假说 */
8
+ export type NsfcHasHypothesis = "blank" | "existing";
9
+ export declare const NSFC_HAS_HYPOTHESIS_OPTIONS: readonly [{
10
+ readonly value: "blank";
11
+ readonly label: "我没有科学假说,请帮我生成";
12
+ }, {
13
+ readonly value: "existing";
14
+ readonly label: "我已有科学假说,立即填写";
15
+ }];
16
+ export type NsfcProjectLevel = "国家级" | "省部级";
17
+ export declare const NSFC_PROJECT_LEVEL_OPTIONS: readonly NsfcProjectLevel[];
18
+ export type NsfcProjectType = "面上项目" | "地区项目" | "青年项目";
19
+ export declare const NSFC_PROJECT_TYPE_OPTIONS: readonly NsfcProjectType[];
20
+ /** blank 路径:是否有前期研究结果 */
21
+ export type NsfcPriorResult = "yes" | "no";
22
+ export declare const NSFC_PRIOR_RESULT_LABEL: {
23
+ readonly yes: "我有前期研究结果";
24
+ readonly no: "我没有前期研究结果";
25
+ };
26
+ export declare const NSFC_PRIOR_RESULT_OPTIONS: readonly [{
27
+ readonly value: "yes";
28
+ readonly label: "我有前期研究结果";
29
+ }, {
30
+ readonly value: "no";
31
+ readonly label: "我没有前期研究结果";
32
+ }];
33
+ /** Step2 子路径(供 Agent 串联,不对用户展示内部名) */
34
+ export type NsfcNextSubStep = "background_genes" | "hypothesis_pick" | "research_path";
35
+ export declare const NSFC_QUERY_MAX_BLANK_DISEASE = 50;
36
+ export declare const NSFC_QUERY_MAX_BLANK_THEME = 500;
37
+ export declare const NSFC_QUERY_MAX_EXISTING_HYPOTHESIS = 500;
38
+ export declare const NSFC_DISEASE_MAX = 50;
39
+ export declare function parseNsfcHasHypothesis(raw: string): NsfcHasHypothesis;
40
+ export declare function parseNsfcProjectLevel(raw: string): NsfcProjectLevel;
41
+ export declare function parseNsfcProjectType(raw: string): NsfcProjectType;
42
+ export declare function parseNsfcPriorResult(raw: string): NsfcPriorResult;
43
+ export declare function resolveNextSubStep(hasHypothesis: NsfcHasHypothesis, priorResult?: NsfcPriorResult): NsfcNextSubStep;
44
+ export declare function resolveOutlineAppSuffix(hasHypothesis: NsfcHasHypothesis): "-none-hypothesis" | "";
45
+ /** API 路径 */
46
+ export declare const NSFC_ORDER_API_PATH: "agent/v1/ai/workbench/nsfc-v2/apps/orders";
47
+ export declare const NSFC_EXECUTE_API_PATH: "agent/v1/ai/workbench/nsfc-v2/apps/execute";
48
+ /** generate_hypothesis app_ids(对齐 site-nsfc-v2.ts) */
49
+ export declare const NSFC_HYPOTHESIS_APP_IDS: {
50
+ /** blank + 无前期 · 国家级 */
51
+ readonly pickNoPriorNational: "d740eeb3-8343-4b2a-be00-020948b8d849";
52
+ /** unused in Step2 */
53
+ readonly unused1: "b4120724-d46e-4e70-a996-012b4e985e86";
54
+ /** 文章/附件分析 */
55
+ readonly articleAnalysis: "2d88d9c7-74ac-44d0-beae-1cafc9d3b264";
56
+ /** research_path · 国家级 */
57
+ readonly researchPathNational: "27f6af3f-606c-4041-b535-d550adabb0b0";
58
+ /** blank + 有前期假说 · 国家级 */
59
+ readonly pickFromGeneNational: "c0582318-ae12-449e-a64f-4b3519776d0c";
60
+ /** research_path 补假说(Step2 按 2B 跳过) */
61
+ readonly ensureHypBeforeOutline: "09e78eac-7126-4fce-814c-61b4d9d5d7f6";
62
+ /** blank + 有前期假说 · 省部级 */
63
+ readonly pickFromGeneProvince: "426aabbc-ed34-4058-b8ff-0cd50f82cdec";
64
+ /** blank + 无前期 · 省部级 */
65
+ readonly pickNoPriorProvince: "6de35546-e610-4c77-8c91-ec4fb554019d";
66
+ /** research_path · 省部级 */
67
+ readonly researchPathProvince: "e54f10e9-e41c-4aec-97d5-00d13a7029b7";
68
+ /** research_path 补假说省部级+text1(跳过) */
69
+ readonly ensureHypProvinceWithText1: "0cb5678d-76f1-42e6-8d5b-bff583adc372";
70
+ };
71
+ /** 提纲(outline / outline-none-hypothesis 同 UUID) */
72
+ export declare const NSFC_OUTLINE_APP_ID = "a6e15414-a420-4ad4-9a01-264c0169ace0";
73
+ /** 全文 */
74
+ export declare const NSFC_ARTICLE_APP_ID = "c8c98d57-a273-49a7-b81f-ebade42b08e7";
75
+ /** Writing 侧工具 */
76
+ export declare const NSFC_TECH_ROADMAP_APP_ID = "a675b48a-1685-4f0e-84cc-8e4bec8d91dd";
77
+ export declare const NSFC_HYPOTHESIS_FIGURE_APP_ID = "51ce7631-8c81-4817-88c2-113002257e8a";
78
+ export declare const NSFC_FORMAT_CONVERT_APP_ID = "62d9ecb0-35d4-4c51-94bb-4bba0e5a6541";
79
+ export declare const NSFC_CONTENT_PRODUCER = "helixlife";
80
+ export declare const NSFC_HYPOTHESIS_FIGURE_STYLE = "\u7B80\u7EA6\u56FE\u89E3\u98CE\uFF08\u7528\u56FE\u5F62\u5143\u7D20\u548C\u6E05\u6670\u7684\u7BAD\u5934\u4F20\u8FBE\u673A\u5236\u903B\u8F91\u548C\u56E0\u679C\u5173\u7CFB\uFF09";
81
+ export declare const NSFC_APP_NAMES: {
82
+ readonly generateHypothesis: "生成假说";
83
+ readonly outline: "已有假说提纲";
84
+ readonly outlineNoneHypothesis: "无假说提纲";
85
+ readonly article: "全文";
86
+ readonly techRoadmap: "技术路线图";
87
+ readonly hypothesisFigure: "假说机制图";
88
+ readonly formatConversion: "格式转换";
89
+ };
90
+ export declare const NSFC_PROVINCE_PROGRAM = "\u7701\u5E02\u7EA7\u522B\u9879\u76EE";
91
+ export declare function isNsfcProvince(projectLevel?: string): boolean;
92
+ export declare function resolvePickNoPriorAppId(projectLevel?: string): string;
93
+ export declare function resolvePickFromGeneAppId(projectLevel?: string): string;
94
+ export declare function resolveResearchPathAppId(projectLevel?: string): string;
95
+ export declare function parseNsfcNextSubStep(raw: string): NsfcNextSubStep;
96
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/modules/fund/nsfc/constants.ts"],"names":[],"mappings":"AAGA,8CAA8C;AAC9C,eAAO,MAAM,gBAAgB,EAAG,SAAkB,CAAC;AAEnD,sCAAsC;AACtC,eAAO,MAAM,kBAAkB,kCAAkC,CAAC;AAElE,eAAO,MAAM,eAAe,4BAA6B,CAAC;AAC1D,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,cAAc;AACd,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,UAAU,CAAC;AAErD,eAAO,MAAM,2BAA2B;;;;;;EAS9B,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG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