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,75 @@
1
+ import { helixlifeError, helixlifeErrorCode } from "../../core/index.js";
2
+ export const PROPOSAL_EXPERT_ID = "proposal";
3
+ export const PROPOSAL_EXPERT_TITLE = "课题方案专家";
4
+ /** 三大方向:基础研究走外部 newidea CLI,临床与生信走工作流接口 */
5
+ export const PROPOSAL_DIRECTIONS = [
6
+ { id: "basic", title: "基础研究", status: "available" },
7
+ { id: "clinical", title: "临床研究", status: "available" },
8
+ { id: "bioinfo", title: "生信方案", status: "available" },
9
+ ];
10
+ /** 基础研究方向对应的 newidea 工具 ID(固定,不对用户暴露) */
11
+ export const PROPOSAL_BASIC_TOOL_ID = "d77ba6b6-fc59-4747-bede-68fe71da7337";
12
+ // 表单字段由接口实时返回,此处只登记路由所需的静态信息。
13
+ // 五个工作流的 input_Research_Objective 均被锁成单一选项,故 source 即等价于研究目的。
14
+ export const PROPOSAL_CLINICAL_WORKFLOWS = [
15
+ {
16
+ source: "diagnostic-study",
17
+ name: "诊断研究",
18
+ title: "诊断研究",
19
+ objective: "诊断",
20
+ design: "队列研究 / 病例对照研究 / 横断面研究",
21
+ purpose: "评价诊断方法准确性或构建诊断模型,可选队列、病例对照或横断面设计",
22
+ },
23
+ {
24
+ source: "prognosis-study",
25
+ name: "预后研究",
26
+ title: "预后研究",
27
+ objective: "预后",
28
+ design: "队列研究 / 临床试验",
29
+ purpose: "随访观察结局并评估预后因素,可选构建预后模型或做预后评估",
30
+ },
31
+ {
32
+ source: "treatment-trial",
33
+ name: "疗效临床试验",
34
+ title: "疗效临床试验",
35
+ objective: "疗效",
36
+ design: "临床试验",
37
+ purpose: "以前瞻性干预试验比较治疗方案疗效",
38
+ },
39
+ {
40
+ source: "etiology-study",
41
+ name: "病因研究",
42
+ title: "病因研究",
43
+ objective: "病因",
44
+ design: "队列研究",
45
+ purpose: "前瞻性队列追踪暴露因素与结局的因果关联,支持两组暴露因素",
46
+ },
47
+ {
48
+ source: "treatment-cohort",
49
+ name: "疗效队列",
50
+ title: "疗效队列研究",
51
+ objective: "疗效",
52
+ design: "队列研究",
53
+ purpose: "以回顾性或前瞻性队列比较治疗方案疗效,无需随机干预",
54
+ },
55
+ ];
56
+ export const PROPOSAL_CLINICAL_SOURCES = PROPOSAL_CLINICAL_WORKFLOWS.map((item) => item.source);
57
+ export function findClinicalWorkflow(raw) {
58
+ const value = raw.trim().toLowerCase();
59
+ return PROPOSAL_CLINICAL_WORKFLOWS.find((item) => item.source === value);
60
+ }
61
+ export function parseClinicalWorkflow(raw) {
62
+ const workflow = findClinicalWorkflow(raw);
63
+ if (workflow) {
64
+ return workflow;
65
+ }
66
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, `无效工作流: ${raw},可选: ${PROPOSAL_CLINICAL_SOURCES.join(" | ")}`);
67
+ }
68
+ /** 生信方案只有一个工作流,source 固定,不对用户暴露选择 */
69
+ export const PROPOSAL_BIOINFO_WORKFLOW = {
70
+ source: "bioinfo-planner",
71
+ name: "生信分析方案设计",
72
+ title: "生信分析方案",
73
+ purpose: "围绕疾病与表型需求,产出可执行的生物信息学分析方案",
74
+ };
75
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/modules/proposal/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAGzE,MAAM,CAAC,MAAM,kBAAkB,GAAG,UAAU,CAAC;AAC7C,MAAM,CAAC,MAAM,qBAAqB,GAAG,QAAQ,CAAC;AAE9C,2CAA2C;AAC3C,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,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AAC,IAAI,CAAC,MAAM,CACtB,CAAC;AAEF,MAAM,UAAU,oBAAoB,CAAC,GAAW;IAC9C,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IACvC,OAAO,2BAA2B,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,KAAK,KAAK,CAAC,CAAC;AAC3E,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,GAAW;IAC/C,MAAM,QAAQ,GAAG,oBAAoB,CAAC,GAAG,CAAC,CAAC;IAC3C,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,MAAM,IAAI,cAAc,CACtB,kBAAkB,CAAC,gBAAgB,EACnC,UAAU,GAAG,QAAQ,yBAAyB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAC7D,CAAC;AACJ,CAAC;AAED,qCAAqC;AACrC,MAAM,CAAC,MAAM,yBAAyB,GAAuB;IAC3D,MAAM,EAAE,iBAAiB;IACzB,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,QAAQ;IACf,OAAO,EAAE,2BAA2B;CACrC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Command } from "commander";
2
+ export declare function registerProposalCommands(program: Command): void;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/proposal/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAqBzC,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA4F/D"}
@@ -0,0 +1,95 @@
1
+ import { emitJson, parseOutputFormat } from "../../core/index.js";
2
+ import { PROPOSAL_BIOINFO_WORKFLOW, PROPOSAL_CLINICAL_SOURCES, PROPOSAL_CLINICAL_WORKFLOWS, PROPOSAL_DIRECTIONS, PROPOSAL_EXPERT_ID, PROPOSAL_EXPERT_TITLE, } from "./constants.js";
3
+ import { runListClinicalWorkflows } from "./commands/clinical-list.js";
4
+ import { runClinicalWorkflowParams } from "./commands/clinical-params.js";
5
+ import { runClinicalWorkflow } from "./commands/clinical-run.js";
6
+ import { runBioinfoWorkflowParams } from "./commands/bioinfo-params.js";
7
+ import { runBioinfoWorkflow } from "./commands/bioinfo-run.js";
8
+ const CLINICAL_SOURCE_HINT = `工作流:${PROPOSAL_CLINICAL_SOURCES.join(" | ")}`;
9
+ // 注册课题方案专家命名空间。
10
+ // 基础研究经外部 newidea CLI(npm: @helixlife-ai/newidea)异步执行;
11
+ // 临床研究与生信方案走「查表单 → 填参执行」两步式工作流命令。
12
+ export function registerProposalCommands(program) {
13
+ const proposal = program
14
+ .command(PROPOSAL_EXPERT_ID)
15
+ .description(PROPOSAL_EXPERT_TITLE);
16
+ proposal
17
+ .command("info")
18
+ .description("查看课题方案专家模块状态与三大方向可用性")
19
+ .action(() => {
20
+ emitJson({
21
+ ok: true,
22
+ expert: PROPOSAL_EXPERT_ID,
23
+ title: PROPOSAL_EXPERT_TITLE,
24
+ implemented: true,
25
+ directions: PROPOSAL_DIRECTIONS,
26
+ clinicalWorkflows: PROPOSAL_CLINICAL_WORKFLOWS.map((item) => ({
27
+ source: item.source,
28
+ title: item.title,
29
+ objective: item.objective,
30
+ design: item.design,
31
+ })),
32
+ bioinfoWorkflow: {
33
+ source: PROPOSAL_BIOINFO_WORKFLOW.source,
34
+ title: PROPOSAL_BIOINFO_WORKFLOW.title,
35
+ },
36
+ note: "基础研究经外部 newidea CLI(npm: @helixlife-ai/newidea)异步执行;临床研究与生信方案由本 CLI 直接调用工作流接口",
37
+ });
38
+ });
39
+ const clinical = proposal
40
+ .command("clinical")
41
+ .description("临床研究方案:按研究目的选工作流,查表单后执行");
42
+ clinical
43
+ .command("list")
44
+ .description("列出五个临床研究工作流及其用途")
45
+ .option("--format <format>", "输出格式:markdown | json", "markdown")
46
+ .action((opts) => {
47
+ runListClinicalWorkflows({ format: parseOutputFormat(opts.format) });
48
+ });
49
+ clinical
50
+ .command("params")
51
+ .description("查询指定临床工作流的动态表单字段与输出定义")
52
+ .requiredOption("--source <source>", CLINICAL_SOURCE_HINT)
53
+ .option("--format <format>", "输出格式:markdown | json", "markdown")
54
+ .action(async (opts) => {
55
+ await runClinicalWorkflowParams({
56
+ source: opts.source,
57
+ format: parseOutputFormat(opts.format),
58
+ });
59
+ });
60
+ clinical
61
+ .command("run")
62
+ .description("按填好的参数生成临床研究方案")
63
+ .requiredOption("--source <source>", CLINICAL_SOURCE_HINT)
64
+ .requiredOption("--inputs-file <path>", "JSON 文件 {字段名: 值}")
65
+ .option("--format <format>", "输出格式:markdown | json", "markdown")
66
+ .action(async (opts) => {
67
+ await runClinicalWorkflow({
68
+ source: opts.source,
69
+ inputsFile: opts.inputsFile,
70
+ format: parseOutputFormat(opts.format),
71
+ });
72
+ });
73
+ const bioinfo = proposal
74
+ .command("bioinfo")
75
+ .description("生信分析方案:单一工作流,无需指定 source");
76
+ bioinfo
77
+ .command("params")
78
+ .description("查询生信方案的动态表单字段与输出定义")
79
+ .option("--format <format>", "输出格式:markdown | json", "markdown")
80
+ .action(async (opts) => {
81
+ await runBioinfoWorkflowParams({ format: parseOutputFormat(opts.format) });
82
+ });
83
+ bioinfo
84
+ .command("run")
85
+ .description("按填好的参数生成生信分析方案")
86
+ .requiredOption("--inputs-file <path>", "JSON 文件 {字段名: 值}")
87
+ .option("--format <format>", "输出格式:markdown | json", "markdown")
88
+ .action(async (opts) => {
89
+ await runBioinfoWorkflow({
90
+ inputsFile: opts.inputsFile,
91
+ format: parseOutputFormat(opts.format),
92
+ });
93
+ });
94
+ }
95
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/proposal/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAA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,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;IAEJ,MAAM,OAAO,GAAG,QAAQ;SACrB,OAAO,CAAC,SAAS,CAAC;SAClB,WAAW,CAAC,0BAA0B,CAAC,CAAC;IAE3C,OAAO;SACJ,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,oBAAoB,CAAC;SACjC,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,EAAE,UAAU,CAAC;SAC/D,MAAM,CAAC,KAAK,EAAE,IAAwB,EAAE,EAAE;QACzC,MAAM,wBAAwB,CAAC,EAAE,MAAM,EAAE,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC7E,CAAC,CAAC,CAAC;IAEL,OAAO;SACJ,OAAO,CAAC,KAAK,CAAC;SACd,WAAW,CAAC,gBAAgB,CAAC;SAC7B,cAAc,CAAC,sBAAsB,EAAE,kBAAkB,CAAC;SAC1D,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,EAAE,UAAU,CAAC;SAC/D,MAAM,CAAC,KAAK,EAAE,IAA4C,EAAE,EAAE;QAC7D,MAAM,kBAAkB,CAAC;YACvB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,MAAM,EAAE,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC;SACvC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,28 @@
1
+ /** newidea 本地配置文件(与 helixlife-expert 的 config.json 分离) */
2
+ export declare const NEWIDEA_CONFIG_RELATIVE_PATH = ".config/newidea/config.json";
3
+ /** newidea 支持的配置项(见 @helixlife-ai/newidea README) */
4
+ export type NewideaConfigKey = "auth-api-url" | "agent-url" | "base-url" | "api-url" | "completion-url" | "diagram-api-url";
5
+ /** 生产默认 invocation 前缀(newidea 包内默认值) */
6
+ export declare const NEWIDEA_DEFAULT_AGENT_URL = "https://agent-service.newidea.pro/api/v1";
7
+ /**
8
+ * 测试/预发(api.helixlife.net)联调用的 invocation 前缀。
9
+ * 可通过环境变量 NEWIDEA_AGENT_URL 或 `newidea config set agent-url` 覆盖。
10
+ */
11
+ export declare const NEWIDEA_TEST_AGENT_URL: string;
12
+ export interface NewideaEnvRecommendation {
13
+ /** helixlife-expert 当前生效的业务 api */
14
+ helix_api: string;
15
+ /** helixlife-expert 当前生效的 agent_api */
16
+ helix_agent_api: string;
17
+ profile: "test" | "production" | "custom";
18
+ newidea_config_path: string;
19
+ /** 写入 ~/.config/newidea/config.json 的键值 */
20
+ newidea_config: Partial<Record<NewideaConfigKey, string>>;
21
+ /** 与 newidea 包一致的环境变量名(优先级高于配置文件) */
22
+ env_vars: Record<string, string>;
23
+ setup_commands: string[];
24
+ notes: string[];
25
+ }
26
+ /** 根据 helixlife-expert 当前 api/agent_api 生成 newidea 应对齐的独立配置建议 */
27
+ export declare function getNewideaEnvRecommendation(): NewideaEnvRecommendation;
28
+ //# sourceMappingURL=newidea-env.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"newidea-env.d.ts","sourceRoot":"","sources":["../../../src/modules/proposal/newidea-env.ts"],"names":[],"mappings":"AAEA,0DAA0D;AAC1D,eAAO,MAAM,4BAA4B,gCAAgC,CAAC;AAE1E,qDAAqD;AACrD,MAAM,MAAM,gBAAgB,GACxB,cAAc,GACd,WAAW,GACX,UAAU,GACV,SAAS,GACT,gBAAgB,GAChB,iBAAiB,CAAC;AAQtB,wCAAwC;AACxC,eAAO,MAAM,yBAAyB,6CACM,CAAC;AAE7C;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAGR,CAAC;AAE5B,MAAM,WAAW,wBAAwB;IACvC,mCAAmC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,uCAAuC;IACvC,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,GAAG,YAAY,GAAG,QAAQ,CAAC;IAC1C,mBAAmB,EAAE,MAAM,CAAC;IAC5B,2CAA2C;IAC3C,cAAc,EAAE,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC,CAAC;IAC1D,qCAAqC;IACrC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAgBD,iEAAiE;AACjE,wBAAgB,2BAA2B,IAAI,wBAAwB,CAiDtE"}
@@ -0,0 +1,69 @@
1
+ import { getDefaultAuthBaseUrl, getDefaultBaseUrl } from "../../core/index.js";
2
+ /** newidea 本地配置文件(与 helixlife-expert 的 config.json 分离) */
3
+ export const NEWIDEA_CONFIG_RELATIVE_PATH = ".config/newidea/config.json";
4
+ /** 与 helixlife-expert `api` 基址对齐的 newidea `auth-api-url` 建议值 */
5
+ const AUTH_API_BY_HELIX_API = {
6
+ "https://api.helixlife.net": "https://agent.helixlife.net/api/v1",
7
+ "https://api.helixlife.cn": "https://agent.helixlife.cn/api/v1",
8
+ };
9
+ /** 生产默认 invocation 前缀(newidea 包内默认值) */
10
+ export const NEWIDEA_DEFAULT_AGENT_URL = "https://agent-service.newidea.pro/api/v1";
11
+ /**
12
+ * 测试/预发(api.helixlife.net)联调用的 invocation 前缀。
13
+ * 可通过环境变量 NEWIDEA_AGENT_URL 或 `newidea config set agent-url` 覆盖。
14
+ */
15
+ export const NEWIDEA_TEST_AGENT_URL = process.env.NEWIDEA_TEST_AGENT_URL?.trim() ||
16
+ process.env.NEWIDEA_AGENT_URL?.trim() ||
17
+ NEWIDEA_DEFAULT_AGENT_URL;
18
+ function normalizeBase(url) {
19
+ return url.trim().replace(/\/+$/, "");
20
+ }
21
+ function resolveProfile(helixApi) {
22
+ if (helixApi.includes("helixlife.net")) {
23
+ return "test";
24
+ }
25
+ if (helixApi.includes("helixlife.cn")) {
26
+ return "production";
27
+ }
28
+ return "custom";
29
+ }
30
+ /** 根据 helixlife-expert 当前 api/agent_api 生成 newidea 应对齐的独立配置建议 */
31
+ export function getNewideaEnvRecommendation() {
32
+ const helixApi = normalizeBase(getDefaultBaseUrl());
33
+ const helixAgentApi = normalizeBase(getDefaultAuthBaseUrl());
34
+ const profile = resolveProfile(helixApi);
35
+ const authApiUrl = AUTH_API_BY_HELIX_API[helixApi] ??
36
+ `${helixAgentApi}/api/v1`.replace(/\/api\/v1\/api\/v1$/, "/api/v1");
37
+ const agentUrl = profile === "test" ? NEWIDEA_TEST_AGENT_URL : NEWIDEA_DEFAULT_AGENT_URL;
38
+ const newidea_config = {
39
+ "auth-api-url": authApiUrl,
40
+ "agent-url": agentUrl,
41
+ };
42
+ const env_vars = {
43
+ HELIXLIFE_AUTH_API_URL: authApiUrl,
44
+ NEWIDEA_AGENT_URL: agentUrl,
45
+ };
46
+ const setup_commands = [
47
+ `newidea config set auth-api-url ${authApiUrl}`,
48
+ `newidea config set agent-url ${agentUrl}`,
49
+ ];
50
+ const notes = [
51
+ "newidea 不读取 ~/.config/helixlife/config.json;仅共用 user-access-token.txt。",
52
+ "newidea 配置写入 ~/.config/newidea/config.json,或使用 HELIXLIFE_AUTH_API_URL / NEWIDEA_AGENT_URL 等环境变量(优先级更高)。",
53
+ "修改 helixlife-expert 的 api/agent_api 不会自动同步 newidea,需按本建议单独设置。",
54
+ ];
55
+ if (profile === "test") {
56
+ notes.push("测试 token(api.helixlife.net)与生产 invocation 网关的鉴权体系可能不一致;若 invocation start 仍报 Token 无效,需后台提供测试环境 agent-url 或开通网关认测试 token。");
57
+ }
58
+ return {
59
+ helix_api: helixApi,
60
+ helix_agent_api: helixAgentApi,
61
+ profile,
62
+ newidea_config_path: NEWIDEA_CONFIG_RELATIVE_PATH,
63
+ newidea_config,
64
+ env_vars,
65
+ setup_commands,
66
+ notes,
67
+ };
68
+ }
69
+ //# sourceMappingURL=newidea-env.js.map
@@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,qBAAqB,CAAC,QAAQ,CAAC;QAC/B,GAAG,aAAa,SAAS,CAAC,OAAO,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC;IAEtE,MAAM,QAAQ,GACZ,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,yBAAyB,CAAC;IAE1E,MAAM,cAAc,GAA8C;QAChE,cAAc,EAAE,UAAU;QAC1B,WAAW,EAAE,QAAQ;KACtB,CAAC;IAEF,MAAM,QAAQ,GAA2B;QACvC,sBAAsB,EAAE,UAAU;QAClC,iBAAiB,EAAE,QAAQ;KAC5B,CAAC;IAEF,MAAM,cAAc,GAAG;QACrB,mCAAmC,UAAU,EAAE;QAC/C,gCAAgC,QAAQ,EAAE;KAC3C,CAAC;IAEF,MAAM,KAAK,GAAG;QACZ,wEAAwE;QACxE,yGAAyG;QACzG,+DAA+D;KAChE,CAAC;IAEF,IAAI,OAAO,KAAK,MAAM,EAAE,CAAC;QACvB,KAAK,CAAC,IAAI,CACR,2HAA2H,CAC5H,CAAC;IACJ,CAAC;IAED,OAAO;QACL,SAAS,EAAE,QAAQ;QACnB,eAAe,EAAE,aAAa;QAC9B,OAAO;QACP,mBAAmB,EAAE,4BAA4B;QACjD,cAAc;QACd,QAAQ;QACR,cAAc;QACd,KAAK;KACN,CAAC;AACJ,CAAC"}
@@ -0,0 +1,25 @@
1
+ export declare const NEWIDEA_PACKAGE = "@helixlife-ai/newidea";
2
+ export interface NewideaRunner {
3
+ /** 始终为当前 node 可执行文件,避免 Windows 上 .cmd/.ps1 shim 必须走 shell */
4
+ execPath: string;
5
+ /** 业务参数前的固定前缀:[run.js] 或 [npx-cli.js, --yes, <pkg>] */
6
+ baseArgs: string[];
7
+ /** 解析来源,写入结果供排查 */
8
+ via: string;
9
+ }
10
+ /**
11
+ * 解析 newidea 可执行入口,按序:环境变量覆盖 → 已装(全局/本地)→ 自动全局安装 → npx 兜底。
12
+ * 结果在进程内缓存,一次命令里只解析一次。
13
+ */
14
+ export declare function resolveNewideaRunner(): Promise<NewideaRunner>;
15
+ /** 仅供测试重置解析缓存 */
16
+ export declare function __resetNewideaRunnerForTesting(): void;
17
+ export interface RunNewideaOptions {
18
+ timeoutMs?: number;
19
+ }
20
+ /**
21
+ * 执行一条 newidea 命令并解析其 --json 输出。
22
+ * 非零退出时若 stdout 仍带 JSON(CLI 的结构化报错),优先返回该 JSON 交上层判断。
23
+ */
24
+ export declare function runNewideaJson(args: string[], options?: RunNewideaOptions): Promise<unknown>;
25
+ //# sourceMappingURL=newidea-runner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"newidea-runner.d.ts","sourceRoot":"","sources":["../../../src/modules/proposal/newidea-runner.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,eAAe,0BAA0B,CAAC;AAOvD,MAAM,WAAW,aAAa;IAC5B,6DAA6D;IAC7D,QAAQ,EAAE,MAAM,CAAC;IACjB,uDAAuD;IACvD,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,mBAAmB;IACnB,GAAG,EAAE,MAAM,CAAC;CACb;AAsDD;;;GAGG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,aAAa,CAAC,CAuDnE;AAED,iBAAiB;AACjB,wBAAgB,8BAA8B,IAAI,IAAI,CAErD;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,OAAO,CAAC,CAwClB"}
@@ -0,0 +1,158 @@
1
+ /**
2
+ * newidea CLI 调用层
3
+ *
4
+ * 课题方案基础研究走外部 newidea 异步任务。用户输入的课题条件会作为参数传入,
5
+ * 因此主路径一律用 `node <run.js> ...` + 参数数组、shell: false 执行,
6
+ * 不经 shell 解析,规避命令注入。
7
+ */
8
+ import { exec, execFile } from "node:child_process";
9
+ import { existsSync } from "node:fs";
10
+ import { join } from "node:path";
11
+ import { promisify } from "node:util";
12
+ import { helixlifeError, helixlifeErrorCode } from "../../core/index.js";
13
+ import { extractJsonFromStdout } from "./parse.js";
14
+ const execFileAsync = promisify(execFile);
15
+ // npm 在 Windows 上是 .cmd shim,必须经 shell;以下 npm 命令全为常量字符串,无注入面
16
+ const execAsync = promisify(exec);
17
+ export const NEWIDEA_PACKAGE = "@helixlife-ai/newidea";
18
+ const NEWIDEA_BIN_RELATIVE = join("@helixlife-ai", "newidea", "bin", "run.js");
19
+ const NPX_CLI_RELATIVE = join("npm", "bin", "npx-cli.js");
20
+ const DEFAULT_EXEC_TIMEOUT_MS = 600_000;
21
+ const MAX_STDOUT_BYTES = 20 * 1024 * 1024;
22
+ let cachedRunner = null;
23
+ async function readNpmRoot(global) {
24
+ try {
25
+ const { stdout } = await execAsync(global ? "npm root -g" : "npm root", {
26
+ encoding: "utf-8",
27
+ windowsHide: true,
28
+ timeout: 60_000,
29
+ });
30
+ const dir = stdout.trim();
31
+ return dir || null;
32
+ }
33
+ catch {
34
+ return null;
35
+ }
36
+ }
37
+ async function findRunJs() {
38
+ const globalRoot = await readNpmRoot(true);
39
+ if (globalRoot) {
40
+ const candidate = join(globalRoot, NEWIDEA_BIN_RELATIVE);
41
+ if (existsSync(candidate)) {
42
+ return { path: candidate, via: "global" };
43
+ }
44
+ }
45
+ const localRoot = await readNpmRoot(false);
46
+ if (localRoot) {
47
+ const candidate = join(localRoot, NEWIDEA_BIN_RELATIVE);
48
+ if (existsSync(candidate)) {
49
+ return { path: candidate, via: "local" };
50
+ }
51
+ }
52
+ return null;
53
+ }
54
+ async function installNewideaGlobally() {
55
+ await execAsync(`npm install -g ${NEWIDEA_PACKAGE}@latest`, {
56
+ encoding: "utf-8",
57
+ windowsHide: true,
58
+ timeout: 300_000,
59
+ });
60
+ }
61
+ async function findNpxCli() {
62
+ const globalRoot = await readNpmRoot(true);
63
+ if (!globalRoot) {
64
+ return null;
65
+ }
66
+ const candidate = join(globalRoot, NPX_CLI_RELATIVE);
67
+ return existsSync(candidate) ? candidate : null;
68
+ }
69
+ /**
70
+ * 解析 newidea 可执行入口,按序:环境变量覆盖 → 已装(全局/本地)→ 自动全局安装 → npx 兜底。
71
+ * 结果在进程内缓存,一次命令里只解析一次。
72
+ */
73
+ export async function resolveNewideaRunner() {
74
+ if (cachedRunner) {
75
+ return cachedRunner;
76
+ }
77
+ const override = process.env.HELIXLIFE_NEWIDEA_BIN?.trim();
78
+ if (override) {
79
+ if (!existsSync(override)) {
80
+ throw new helixlifeError(helixlifeErrorCode.INVALID_ARGUMENT, `HELIXLIFE_NEWIDEA_BIN 指向的文件不存在:${override}`);
81
+ }
82
+ cachedRunner = {
83
+ execPath: process.execPath,
84
+ baseArgs: [override],
85
+ via: "env",
86
+ };
87
+ return cachedRunner;
88
+ }
89
+ let found = await findRunJs();
90
+ if (!found) {
91
+ // 被动安装:仅在确实缺失时才装,不在会话开始预装
92
+ try {
93
+ await installNewideaGlobally();
94
+ }
95
+ catch {
96
+ // 安装失败继续走 npx 兜底
97
+ }
98
+ found = await findRunJs();
99
+ }
100
+ if (found) {
101
+ cachedRunner = {
102
+ execPath: process.execPath,
103
+ baseArgs: [found.path],
104
+ via: found.via,
105
+ };
106
+ return cachedRunner;
107
+ }
108
+ const npxCli = await findNpxCli();
109
+ if (npxCli) {
110
+ cachedRunner = {
111
+ execPath: process.execPath,
112
+ baseArgs: [npxCli, "--yes", `${NEWIDEA_PACKAGE}@latest`],
113
+ via: "npx",
114
+ };
115
+ return cachedRunner;
116
+ }
117
+ throw new helixlifeError(helixlifeErrorCode.REQUEST_FAILED, `未找到 ${NEWIDEA_PACKAGE},请手动执行 npm install -g ${NEWIDEA_PACKAGE}@latest 后重试(或用 HELIXLIFE_NEWIDEA_BIN 指定 bin/run.js 路径)`);
118
+ }
119
+ /** 仅供测试重置解析缓存 */
120
+ export function __resetNewideaRunnerForTesting() {
121
+ cachedRunner = null;
122
+ }
123
+ /**
124
+ * 执行一条 newidea 命令并解析其 --json 输出。
125
+ * 非零退出时若 stdout 仍带 JSON(CLI 的结构化报错),优先返回该 JSON 交上层判断。
126
+ */
127
+ export async function runNewideaJson(args, options = {}) {
128
+ const runner = await resolveNewideaRunner();
129
+ const timeout = options.timeoutMs ?? DEFAULT_EXEC_TIMEOUT_MS;
130
+ try {
131
+ const { stdout } = await execFileAsync(runner.execPath, [...runner.baseArgs, ...args], {
132
+ encoding: "utf-8",
133
+ windowsHide: true,
134
+ timeout,
135
+ maxBuffer: MAX_STDOUT_BYTES,
136
+ });
137
+ return extractJsonFromStdout(stdout);
138
+ }
139
+ catch (error) {
140
+ const stdout = typeof error?.stdout === "string"
141
+ ? error.stdout
142
+ : "";
143
+ if (stdout.trim()) {
144
+ try {
145
+ return extractJsonFromStdout(stdout);
146
+ }
147
+ catch {
148
+ // 落到统一错误
149
+ }
150
+ }
151
+ const stderr = typeof error?.stderr === "string"
152
+ ? error.stderr.trim()
153
+ : "";
154
+ const message = stderr || (error instanceof Error ? error.message : String(error));
155
+ throw new helixlifeError(helixlifeErrorCode.REQUEST_FAILED, `newidea 命令执行失败:${message}`, { cause: error });
156
+ }
157
+ }
158
+ //# sourceMappingURL=newidea-runner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"newidea-runner.js","sourceRoot":"","sources":["../../../src/modules/proposal/newidea-runner.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEnD,MAAM,aAAa,GAAG,SA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2
+ export type InvocationStatus = "running" | "success" | "failed";
3
+ export interface NormalizedInvocationProcess {
4
+ status: InvocationStatus;
5
+ /** 接口原始 status,保留供排查 */
6
+ rawStatus: string;
7
+ error: string | null;
8
+ /** 产物 ZIP 直链;成功也可能为 null */
9
+ artifacts: string | null;
10
+ itemCount: number;
11
+ }
12
+ /**
13
+ * 从 CLI stdout 中提取首个完整 JSON 值(对象或数组)。
14
+ */
15
+ export declare function extractJsonFromStdout(stdout: string): unknown;
16
+ /**
17
+ * 从 `invocation start` / `last` 的返回中提取 run_record_id。
18
+ * 兼容下划线与驼峰,并向下一层 data / record / result 探一层。
19
+ */
20
+ export declare function parseRunRecordId(raw: unknown): string | undefined;
21
+ /**
22
+ * 归一 `invocation process` 返回:状态、错误、产物链接与事件条数。
23
+ */
24
+ export declare function normalizeInvocationProcess(raw: unknown): NormalizedInvocationProcess;
25
+ //# sourceMappingURL=parse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../src/modules/proposal/parse.ts"],"names":[],"mappings":"AAQA,+CAA+C;AAC/C,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEhE,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,gBAAgB,CAAC;IACzB,wBAAwB;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,4BAA4B;IAC5B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB;AAqDD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAqB7D;AAqBD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CA+BjE;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,OAAO,GACX,2BAA2B,CA+C7B"}