@ttkit/daily-hot-api 0.0.0-stage → 0.1.1

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 (450) hide show
  1. package/.env.example +77 -0
  2. package/LICENSE +21 -0
  3. package/README.md +317 -2
  4. package/bin/daily-hot-api.js +25 -0
  5. package/dist/app.controller.d.ts +41 -0
  6. package/dist/app.controller.js +91 -0
  7. package/dist/app.controller.js.map +1 -0
  8. package/dist/app.module.d.ts +4 -0
  9. package/dist/app.module.js +44 -0
  10. package/dist/app.module.js.map +1 -0
  11. package/dist/app.service.d.ts +19 -0
  12. package/dist/app.service.js +57 -0
  13. package/dist/app.service.js.map +1 -0
  14. package/dist/cache/cache.module.d.ts +2 -0
  15. package/dist/cache/cache.module.js +52 -0
  16. package/dist/cache/cache.module.js.map +1 -0
  17. package/dist/cache/cache.service.d.ts +26 -0
  18. package/dist/cache/cache.service.js +163 -0
  19. package/dist/cache/cache.service.js.map +1 -0
  20. package/dist/cli/args.d.ts +24 -0
  21. package/dist/cli/args.js +261 -0
  22. package/dist/cli/args.js.map +1 -0
  23. package/dist/cli/commands/logs.d.ts +3 -0
  24. package/dist/cli/commands/logs.js +55 -0
  25. package/dist/cli/commands/logs.js.map +1 -0
  26. package/dist/cli/commands/restart.d.ts +3 -0
  27. package/dist/cli/commands/restart.js +62 -0
  28. package/dist/cli/commands/restart.js.map +1 -0
  29. package/dist/cli/commands/start.d.ts +3 -0
  30. package/dist/cli/commands/start.js +280 -0
  31. package/dist/cli/commands/start.js.map +1 -0
  32. package/dist/cli/commands/status.d.ts +3 -0
  33. package/dist/cli/commands/status.js +78 -0
  34. package/dist/cli/commands/status.js.map +1 -0
  35. package/dist/cli/commands/stop.d.ts +12 -0
  36. package/dist/cli/commands/stop.js +135 -0
  37. package/dist/cli/commands/stop.js.map +1 -0
  38. package/dist/cli/context.d.ts +4 -0
  39. package/dist/cli/context.js +3 -0
  40. package/dist/cli/context.js.map +1 -0
  41. package/dist/cli/env.d.ts +2 -0
  42. package/dist/cli/env.js +80 -0
  43. package/dist/cli/env.js.map +1 -0
  44. package/dist/cli/errors.d.ts +14 -0
  45. package/dist/cli/errors.js +25 -0
  46. package/dist/cli/errors.js.map +1 -0
  47. package/dist/cli/health.d.ts +2 -0
  48. package/dist/cli/health.js +44 -0
  49. package/dist/cli/health.js.map +1 -0
  50. package/dist/cli/help.d.ts +3 -0
  51. package/dist/cli/help.js +158 -0
  52. package/dist/cli/help.js.map +1 -0
  53. package/dist/cli/index.d.ts +2 -0
  54. package/dist/cli/index.js +94 -0
  55. package/dist/cli/index.js.map +1 -0
  56. package/dist/cli/log-file.d.ts +8 -0
  57. package/dist/cli/log-file.js +58 -0
  58. package/dist/cli/log-file.js.map +1 -0
  59. package/dist/cli/output.d.ts +7 -0
  60. package/dist/cli/output.js +46 -0
  61. package/dist/cli/output.js.map +1 -0
  62. package/dist/cli/paths.d.ts +33 -0
  63. package/dist/cli/paths.js +76 -0
  64. package/dist/cli/paths.js.map +1 -0
  65. package/dist/cli/run-state.d.ts +25 -0
  66. package/dist/cli/run-state.js +159 -0
  67. package/dist/cli/run-state.js.map +1 -0
  68. package/dist/common/middlewares/logger.middleware.d.ts +7 -0
  69. package/dist/common/middlewares/logger.middleware.js +29 -0
  70. package/dist/common/middlewares/logger.middleware.js.map +1 -0
  71. package/dist/config/config.module.d.ts +2 -0
  72. package/dist/config/config.module.js +47 -0
  73. package/dist/config/config.module.js.map +1 -0
  74. package/dist/config/configuration.d.ts +3 -0
  75. package/dist/config/configuration.js +5 -0
  76. package/dist/config/configuration.js.map +1 -0
  77. package/dist/config/validation.schema.d.ts +114 -0
  78. package/dist/config/validation.schema.js +69 -0
  79. package/dist/config/validation.schema.js.map +1 -0
  80. package/dist/daily-brief/clients/ai-analysis.client.d.ts +20 -0
  81. package/dist/daily-brief/clients/ai-analysis.client.js +217 -0
  82. package/dist/daily-brief/clients/ai-analysis.client.js.map +1 -0
  83. package/dist/daily-brief/clients/brief-search.service.d.ts +11 -0
  84. package/dist/daily-brief/clients/brief-search.service.js +52 -0
  85. package/dist/daily-brief/clients/brief-search.service.js.map +1 -0
  86. package/dist/daily-brief/clients/deepseek-search.client.d.ts +11 -0
  87. package/dist/daily-brief/clients/deepseek-search.client.js +70 -0
  88. package/dist/daily-brief/clients/deepseek-search.client.js.map +1 -0
  89. package/dist/daily-brief/clients/tavily-search.client.d.ts +11 -0
  90. package/dist/daily-brief/clients/tavily-search.client.js +72 -0
  91. package/dist/daily-brief/clients/tavily-search.client.js.map +1 -0
  92. package/dist/daily-brief/daily-brief.config.d.ts +31 -0
  93. package/dist/daily-brief/daily-brief.config.js +108 -0
  94. package/dist/daily-brief/daily-brief.config.js.map +1 -0
  95. package/dist/daily-brief/daily-brief.controller.d.ts +72 -0
  96. package/dist/daily-brief/daily-brief.controller.js +169 -0
  97. package/dist/daily-brief/daily-brief.controller.js.map +1 -0
  98. package/dist/daily-brief/daily-brief.module.d.ts +2 -0
  99. package/dist/daily-brief/daily-brief.module.js +49 -0
  100. package/dist/daily-brief/daily-brief.module.js.map +1 -0
  101. package/dist/daily-brief/daily-brief.scheduler.d.ts +30 -0
  102. package/dist/daily-brief/daily-brief.scheduler.js +113 -0
  103. package/dist/daily-brief/daily-brief.scheduler.js.map +1 -0
  104. package/dist/daily-brief/daily-brief.service.d.ts +101 -0
  105. package/dist/daily-brief/daily-brief.service.js +412 -0
  106. package/dist/daily-brief/daily-brief.service.js.map +1 -0
  107. package/dist/daily-brief/dto/brief-date-param.dto.d.ts +3 -0
  108. package/dist/daily-brief/dto/brief-date-param.dto.js +23 -0
  109. package/dist/daily-brief/dto/brief-date-param.dto.js.map +1 -0
  110. package/dist/daily-brief/dto/generate-brief.dto.d.ts +6 -0
  111. package/dist/daily-brief/dto/generate-brief.dto.js +39 -0
  112. package/dist/daily-brief/dto/generate-brief.dto.js.map +1 -0
  113. package/dist/daily-brief/dto/list-briefs-query.dto.d.ts +6 -0
  114. package/dist/daily-brief/dto/list-briefs-query.dto.js +42 -0
  115. package/dist/daily-brief/dto/list-briefs-query.dto.js.map +1 -0
  116. package/dist/daily-brief/dto/stock-ranking-query.dto.d.ts +6 -0
  117. package/dist/daily-brief/dto/stock-ranking-query.dto.js +46 -0
  118. package/dist/daily-brief/dto/stock-ranking-query.dto.js.map +1 -0
  119. package/dist/daily-brief/interfaces/daily-brief.interface.d.ts +59 -0
  120. package/dist/daily-brief/interfaces/daily-brief.interface.js +3 -0
  121. package/dist/daily-brief/interfaces/daily-brief.interface.js.map +1 -0
  122. package/dist/daily-brief/interfaces/search-provider.interface.d.ts +11 -0
  123. package/dist/daily-brief/interfaces/search-provider.interface.js +3 -0
  124. package/dist/daily-brief/interfaces/search-provider.interface.js.map +1 -0
  125. package/dist/daily-brief/utils/brief-date.d.ts +2 -0
  126. package/dist/daily-brief/utils/brief-date.js +16 -0
  127. package/dist/daily-brief/utils/brief-date.js.map +1 -0
  128. package/dist/daily-brief/utils/concurrency.d.ts +1 -0
  129. package/dist/daily-brief/utils/concurrency.js +20 -0
  130. package/dist/daily-brief/utils/concurrency.js.map +1 -0
  131. package/dist/database/database.module.d.ts +2 -0
  132. package/dist/database/database.module.js +57 -0
  133. package/dist/database/database.module.js.map +1 -0
  134. package/dist/database/repositories/daily-brief.repository.d.ts +96 -0
  135. package/dist/database/repositories/daily-brief.repository.js +457 -0
  136. package/dist/database/repositories/daily-brief.repository.js.map +1 -0
  137. package/dist/database/repositories/hot-item.repository.d.ts +52 -0
  138. package/dist/database/repositories/hot-item.repository.js +255 -0
  139. package/dist/database/repositories/hot-item.repository.js.map +1 -0
  140. package/dist/database/repositories/source-config.repository.d.ts +15 -0
  141. package/dist/database/repositories/source-config.repository.js +77 -0
  142. package/dist/database/repositories/source-config.repository.js.map +1 -0
  143. package/dist/database/schemas/daily-brief.schema.d.ts +30 -0
  144. package/dist/database/schemas/daily-brief.schema.js +103 -0
  145. package/dist/database/schemas/daily-brief.schema.js.map +1 -0
  146. package/dist/database/schemas/hot-item.schema.d.ts +20 -0
  147. package/dist/database/schemas/hot-item.schema.js +72 -0
  148. package/dist/database/schemas/hot-item.schema.js.map +1 -0
  149. package/dist/database/schemas/source-config.schema.d.ts +15 -0
  150. package/dist/database/schemas/source-config.schema.js +47 -0
  151. package/dist/database/schemas/source-config.schema.js.map +1 -0
  152. package/dist/history/dto/history-response.dto.d.ts +17 -0
  153. package/dist/history/dto/history-response.dto.js +13 -0
  154. package/dist/history/dto/history-response.dto.js.map +1 -0
  155. package/dist/history/dto/search-history.dto.d.ts +10 -0
  156. package/dist/history/dto/search-history.dto.js +72 -0
  157. package/dist/history/dto/search-history.dto.js.map +1 -0
  158. package/dist/history/history.controller.d.ts +13 -0
  159. package/dist/history/history.controller.js +92 -0
  160. package/dist/history/history.controller.js.map +1 -0
  161. package/dist/history/history.module.d.ts +2 -0
  162. package/dist/history/history.module.js +25 -0
  163. package/dist/history/history.module.js.map +1 -0
  164. package/dist/history/history.service.d.ts +15 -0
  165. package/dist/history/history.service.js +68 -0
  166. package/dist/history/history.service.js.map +1 -0
  167. package/dist/host-lists/decorators/hot-source.decorator.d.ts +9 -0
  168. package/dist/host-lists/decorators/hot-source.decorator.js +11 -0
  169. package/dist/host-lists/decorators/hot-source.decorator.js.map +1 -0
  170. package/dist/host-lists/dto/hot-list.dto.d.ts +14 -0
  171. package/dist/host-lists/dto/hot-list.dto.js +94 -0
  172. package/dist/host-lists/dto/hot-list.dto.js.map +1 -0
  173. package/dist/host-lists/hot-lists.controller.d.ts +39 -0
  174. package/dist/host-lists/hot-lists.controller.js +87 -0
  175. package/dist/host-lists/hot-lists.controller.js.map +1 -0
  176. package/dist/host-lists/hot-lists.module.d.ts +2 -0
  177. package/dist/host-lists/hot-lists.module.js +36 -0
  178. package/dist/host-lists/hot-lists.module.js.map +1 -0
  179. package/dist/host-lists/hot-lists.service.d.ts +21 -0
  180. package/dist/host-lists/hot-lists.service.js +115 -0
  181. package/dist/host-lists/hot-lists.service.js.map +1 -0
  182. package/dist/host-lists/interfaces/hot-list-source.interface.d.ts +5 -0
  183. package/dist/host-lists/interfaces/hot-list-source.interface.js +3 -0
  184. package/dist/host-lists/interfaces/hot-list-source.interface.js.map +1 -0
  185. package/dist/host-lists/interfaces/hot-list.interface.d.ts +31 -0
  186. package/dist/host-lists/interfaces/hot-list.interface.js +3 -0
  187. package/dist/host-lists/interfaces/hot-list.interface.js.map +1 -0
  188. package/dist/host-lists/interfaces/router-data.interface.d.ts +19 -0
  189. package/dist/host-lists/interfaces/router-data.interface.js +3 -0
  190. package/dist/host-lists/interfaces/router-data.interface.js.map +1 -0
  191. package/dist/host-lists/sources/36kr.source.d.ts +9 -0
  192. package/dist/host-lists/sources/36kr.source.js +89 -0
  193. package/dist/host-lists/sources/36kr.source.js.map +1 -0
  194. package/dist/host-lists/sources/51cto.source.d.ts +11 -0
  195. package/dist/host-lists/sources/51cto.source.js +71 -0
  196. package/dist/host-lists/sources/51cto.source.js.map +1 -0
  197. package/dist/host-lists/sources/52pojie.source.d.ts +9 -0
  198. package/dist/host-lists/sources/52pojie.source.js +109 -0
  199. package/dist/host-lists/sources/52pojie.source.js.map +1 -0
  200. package/dist/host-lists/sources/acfun.source.d.ts +9 -0
  201. package/dist/host-lists/sources/acfun.source.js +90 -0
  202. package/dist/host-lists/sources/acfun.source.js.map +1 -0
  203. package/dist/host-lists/sources/baidu.source.d.ts +9 -0
  204. package/dist/host-lists/sources/baidu.source.js +85 -0
  205. package/dist/host-lists/sources/baidu.source.js.map +1 -0
  206. package/dist/host-lists/sources/bilibili.source.d.ts +14 -0
  207. package/dist/host-lists/sources/bilibili.source.js +188 -0
  208. package/dist/host-lists/sources/bilibili.source.js.map +1 -0
  209. package/dist/host-lists/sources/caixin.source.d.ts +9 -0
  210. package/dist/host-lists/sources/caixin.source.js +102 -0
  211. package/dist/host-lists/sources/caixin.source.js.map +1 -0
  212. package/dist/host-lists/sources/cls.source.d.ts +9 -0
  213. package/dist/host-lists/sources/cls.source.js +62 -0
  214. package/dist/host-lists/sources/cls.source.js.map +1 -0
  215. package/dist/host-lists/sources/coolapk.source.d.ts +9 -0
  216. package/dist/host-lists/sources/coolapk.source.js +57 -0
  217. package/dist/host-lists/sources/coolapk.source.js.map +1 -0
  218. package/dist/host-lists/sources/csdn.source.d.ts +9 -0
  219. package/dist/host-lists/sources/csdn.source.js +59 -0
  220. package/dist/host-lists/sources/csdn.source.js.map +1 -0
  221. package/dist/host-lists/sources/dgtle.source.d.ts +9 -0
  222. package/dist/host-lists/sources/dgtle.source.js +57 -0
  223. package/dist/host-lists/sources/dgtle.source.js.map +1 -0
  224. package/dist/host-lists/sources/douban-group.source.d.ts +11 -0
  225. package/dist/host-lists/sources/douban-group.source.js +100 -0
  226. package/dist/host-lists/sources/douban-group.source.js.map +1 -0
  227. package/dist/host-lists/sources/douban-movie.source.d.ts +10 -0
  228. package/dist/host-lists/sources/douban-movie.source.js +103 -0
  229. package/dist/host-lists/sources/douban-movie.source.js.map +1 -0
  230. package/dist/host-lists/sources/douyin.d.ts +16 -0
  231. package/dist/host-lists/sources/douyin.js +215 -0
  232. package/dist/host-lists/sources/douyin.js.map +1 -0
  233. package/dist/host-lists/sources/eastmoney-stock.source.d.ts +11 -0
  234. package/dist/host-lists/sources/eastmoney-stock.source.js +151 -0
  235. package/dist/host-lists/sources/eastmoney-stock.source.js.map +1 -0
  236. package/dist/host-lists/sources/eastmoney.source.d.ts +9 -0
  237. package/dist/host-lists/sources/eastmoney.source.js +86 -0
  238. package/dist/host-lists/sources/eastmoney.source.js.map +1 -0
  239. package/dist/host-lists/sources/geekpark.source.d.ts +9 -0
  240. package/dist/host-lists/sources/geekpark.source.js +60 -0
  241. package/dist/host-lists/sources/geekpark.source.js.map +1 -0
  242. package/dist/host-lists/sources/gelonghui.source.d.ts +9 -0
  243. package/dist/host-lists/sources/gelonghui.source.js +139 -0
  244. package/dist/host-lists/sources/gelonghui.source.js.map +1 -0
  245. package/dist/host-lists/sources/github.source.d.ts +12 -0
  246. package/dist/host-lists/sources/github.source.js +171 -0
  247. package/dist/host-lists/sources/github.source.js.map +1 -0
  248. package/dist/host-lists/sources/guokr.source.d.ts +11 -0
  249. package/dist/host-lists/sources/guokr.source.js +98 -0
  250. package/dist/host-lists/sources/guokr.source.js.map +1 -0
  251. package/dist/host-lists/sources/hackernews.source.d.ts +11 -0
  252. package/dist/host-lists/sources/hackernews.source.js +121 -0
  253. package/dist/host-lists/sources/hackernews.source.js.map +1 -0
  254. package/dist/host-lists/sources/hellogithub.source.d.ts +11 -0
  255. package/dist/host-lists/sources/hellogithub.source.js +98 -0
  256. package/dist/host-lists/sources/hellogithub.source.js.map +1 -0
  257. package/dist/host-lists/sources/history.source.d.ts +11 -0
  258. package/dist/host-lists/sources/history.source.js +92 -0
  259. package/dist/host-lists/sources/history.source.js.map +1 -0
  260. package/dist/host-lists/sources/honkai.source.d.ts +9 -0
  261. package/dist/host-lists/sources/honkai.source.js +72 -0
  262. package/dist/host-lists/sources/honkai.source.js.map +1 -0
  263. package/dist/host-lists/sources/hostloc.source.d.ts +9 -0
  264. package/dist/host-lists/sources/hostloc.source.js +75 -0
  265. package/dist/host-lists/sources/hostloc.source.js.map +1 -0
  266. package/dist/host-lists/sources/hupu.source.d.ts +9 -0
  267. package/dist/host-lists/sources/hupu.source.js +73 -0
  268. package/dist/host-lists/sources/hupu.source.js.map +1 -0
  269. package/dist/host-lists/sources/huxiu.source.d.ts +9 -0
  270. package/dist/host-lists/sources/huxiu.source.js +153 -0
  271. package/dist/host-lists/sources/huxiu.source.js.map +1 -0
  272. package/dist/host-lists/sources/ifanr.source.d.ts +9 -0
  273. package/dist/host-lists/sources/ifanr.source.js +57 -0
  274. package/dist/host-lists/sources/ifanr.source.js.map +1 -0
  275. package/dist/host-lists/sources/index.d.ts +2 -0
  276. package/dist/host-lists/sources/index.js +134 -0
  277. package/dist/host-lists/sources/index.js.map +1 -0
  278. package/dist/host-lists/sources/ithome-xijiayi.source.d.ts +9 -0
  279. package/dist/host-lists/sources/ithome-xijiayi.source.js +75 -0
  280. package/dist/host-lists/sources/ithome-xijiayi.source.js.map +1 -0
  281. package/dist/host-lists/sources/ithome.source.d.ts +9 -0
  282. package/dist/host-lists/sources/ithome.source.js +71 -0
  283. package/dist/host-lists/sources/ithome.source.js.map +1 -0
  284. package/dist/host-lists/sources/jd.source.d.ts +9 -0
  285. package/dist/host-lists/sources/jd.source.js +82 -0
  286. package/dist/host-lists/sources/jd.source.js.map +1 -0
  287. package/dist/host-lists/sources/jianshu.source.d.ts +9 -0
  288. package/dist/host-lists/sources/jianshu.source.js +72 -0
  289. package/dist/host-lists/sources/jianshu.source.js.map +1 -0
  290. package/dist/host-lists/sources/jin10.source.d.ts +9 -0
  291. package/dist/host-lists/sources/jin10.source.js +63 -0
  292. package/dist/host-lists/sources/jin10.source.js.map +1 -0
  293. package/dist/host-lists/sources/juejin.source.d.ts +10 -0
  294. package/dist/host-lists/sources/juejin.source.js +81 -0
  295. package/dist/host-lists/sources/juejin.source.js.map +1 -0
  296. package/dist/host-lists/sources/kuaishou.source.d.ts +13 -0
  297. package/dist/host-lists/sources/kuaishou.source.js +179 -0
  298. package/dist/host-lists/sources/kuaishou.source.js.map +1 -0
  299. package/dist/host-lists/sources/linuxdo.source.d.ts +9 -0
  300. package/dist/host-lists/sources/linuxdo.source.js +62 -0
  301. package/dist/host-lists/sources/linuxdo.source.js.map +1 -0
  302. package/dist/host-lists/sources/lol.source.d.ts +9 -0
  303. package/dist/host-lists/sources/lol.source.js +58 -0
  304. package/dist/host-lists/sources/lol.source.js.map +1 -0
  305. package/dist/host-lists/sources/miyoushe.source.d.ts +9 -0
  306. package/dist/host-lists/sources/miyoushe.source.js +88 -0
  307. package/dist/host-lists/sources/miyoushe.source.js.map +1 -0
  308. package/dist/host-lists/sources/netease-news.source.d.ts +9 -0
  309. package/dist/host-lists/sources/netease-news.source.js +56 -0
  310. package/dist/host-lists/sources/netease-news.source.js.map +1 -0
  311. package/dist/host-lists/sources/ngabbs.source.d.ts +9 -0
  312. package/dist/host-lists/sources/ngabbs.source.js +70 -0
  313. package/dist/host-lists/sources/ngabbs.source.js.map +1 -0
  314. package/dist/host-lists/sources/nodeseek.source.d.ts +9 -0
  315. package/dist/host-lists/sources/nodeseek.source.js +62 -0
  316. package/dist/host-lists/sources/nodeseek.source.js.map +1 -0
  317. package/dist/host-lists/sources/nytimes.source.d.ts +9 -0
  318. package/dist/host-lists/sources/nytimes.source.js +77 -0
  319. package/dist/host-lists/sources/nytimes.source.js.map +1 -0
  320. package/dist/host-lists/sources/producthunt.source.d.ts +9 -0
  321. package/dist/host-lists/sources/producthunt.source.js +75 -0
  322. package/dist/host-lists/sources/producthunt.source.js.map +1 -0
  323. package/dist/host-lists/sources/qq-news.source.d.ts +9 -0
  324. package/dist/host-lists/sources/qq-news.source.js +53 -0
  325. package/dist/host-lists/sources/qq-news.source.js.map +1 -0
  326. package/dist/host-lists/sources/sina-news.source.d.ts +9 -0
  327. package/dist/host-lists/sources/sina-news.source.js +98 -0
  328. package/dist/host-lists/sources/sina-news.source.js.map +1 -0
  329. package/dist/host-lists/sources/sina.source.d.ts +9 -0
  330. package/dist/host-lists/sources/sina.source.js +78 -0
  331. package/dist/host-lists/sources/sina.source.js.map +1 -0
  332. package/dist/host-lists/sources/smzdm.source.d.ts +9 -0
  333. package/dist/host-lists/sources/smzdm.source.js +71 -0
  334. package/dist/host-lists/sources/smzdm.source.js.map +1 -0
  335. package/dist/host-lists/sources/sspai.source.d.ts +9 -0
  336. package/dist/host-lists/sources/sspai.source.js +69 -0
  337. package/dist/host-lists/sources/sspai.source.js.map +1 -0
  338. package/dist/host-lists/sources/starrail.source.d.ts +9 -0
  339. package/dist/host-lists/sources/starrail.source.js +72 -0
  340. package/dist/host-lists/sources/starrail.source.js.map +1 -0
  341. package/dist/host-lists/sources/taobao.source.d.ts +10 -0
  342. package/dist/host-lists/sources/taobao.source.js +169 -0
  343. package/dist/host-lists/sources/taobao.source.js.map +1 -0
  344. package/dist/host-lists/sources/thepaper.source.d.ts +9 -0
  345. package/dist/host-lists/sources/thepaper.source.js +56 -0
  346. package/dist/host-lists/sources/thepaper.source.js.map +1 -0
  347. package/dist/host-lists/sources/tieba.source.d.ts +9 -0
  348. package/dist/host-lists/sources/tieba.source.js +58 -0
  349. package/dist/host-lists/sources/tieba.source.js.map +1 -0
  350. package/dist/host-lists/sources/tonghuashun.source.d.ts +9 -0
  351. package/dist/host-lists/sources/tonghuashun.source.js +112 -0
  352. package/dist/host-lists/sources/tonghuashun.source.js.map +1 -0
  353. package/dist/host-lists/sources/toutiao.source.d.ts +9 -0
  354. package/dist/host-lists/sources/toutiao.source.js +56 -0
  355. package/dist/host-lists/sources/toutiao.source.js.map +1 -0
  356. package/dist/host-lists/sources/v2ex.source.d.ts +9 -0
  357. package/dist/host-lists/sources/v2ex.source.js +67 -0
  358. package/dist/host-lists/sources/v2ex.source.js.map +1 -0
  359. package/dist/host-lists/sources/wallstreet.source.d.ts +9 -0
  360. package/dist/host-lists/sources/wallstreet.source.js +59 -0
  361. package/dist/host-lists/sources/wallstreet.source.js.map +1 -0
  362. package/dist/host-lists/sources/weatheralarm.source.d.ts +9 -0
  363. package/dist/host-lists/sources/weatheralarm.source.js +68 -0
  364. package/dist/host-lists/sources/weatheralarm.source.js.map +1 -0
  365. package/dist/host-lists/sources/weibo.source.d.ts +15 -0
  366. package/dist/host-lists/sources/weibo.source.js +180 -0
  367. package/dist/host-lists/sources/weibo.source.js.map +1 -0
  368. package/dist/host-lists/sources/weread.source.d.ts +9 -0
  369. package/dist/host-lists/sources/weread.source.js +82 -0
  370. package/dist/host-lists/sources/weread.source.js.map +1 -0
  371. package/dist/host-lists/sources/xinyu.source.d.ts +9 -0
  372. package/dist/host-lists/sources/xinyu.source.js +151 -0
  373. package/dist/host-lists/sources/xinyu.source.js.map +1 -0
  374. package/dist/host-lists/sources/yicai.source.d.ts +9 -0
  375. package/dist/host-lists/sources/yicai.source.js +113 -0
  376. package/dist/host-lists/sources/yicai.source.js.map +1 -0
  377. package/dist/host-lists/sources/yystv.source.d.ts +9 -0
  378. package/dist/host-lists/sources/yystv.source.js +57 -0
  379. package/dist/host-lists/sources/yystv.source.js.map +1 -0
  380. package/dist/host-lists/sources/zhihu-daily.source.d.ts +9 -0
  381. package/dist/host-lists/sources/zhihu-daily.source.js +60 -0
  382. package/dist/host-lists/sources/zhihu-daily.source.js.map +1 -0
  383. package/dist/host-lists/sources/zhihu.source.d.ts +12 -0
  384. package/dist/host-lists/sources/zhihu.source.js +195 -0
  385. package/dist/host-lists/sources/zhihu.source.js.map +1 -0
  386. package/dist/http/http.module.d.ts +2 -0
  387. package/dist/http/http.module.js +30 -0
  388. package/dist/http/http.module.js.map +1 -0
  389. package/dist/http/http.service.d.ts +53 -0
  390. package/dist/http/http.service.js +277 -0
  391. package/dist/http/http.service.js.map +1 -0
  392. package/dist/main.d.ts +3 -0
  393. package/dist/main.js +70 -0
  394. package/dist/main.js.map +1 -0
  395. package/dist/rss/rss.module.d.ts +2 -0
  396. package/dist/rss/rss.module.js +21 -0
  397. package/dist/rss/rss.module.js.map +1 -0
  398. package/dist/rss/rss.service.d.ts +5 -0
  399. package/dist/rss/rss.service.js +55 -0
  400. package/dist/rss/rss.service.js.map +1 -0
  401. package/dist/scheduler/dto/trigger-fetch.dto.d.ts +3 -0
  402. package/dist/scheduler/dto/trigger-fetch.dto.js +22 -0
  403. package/dist/scheduler/dto/trigger-fetch.dto.js.map +1 -0
  404. package/dist/scheduler/dto/update-source-config.dto.d.ts +4 -0
  405. package/dist/scheduler/dto/update-source-config.dto.js +29 -0
  406. package/dist/scheduler/dto/update-source-config.dto.js.map +1 -0
  407. package/dist/scheduler/scheduler.controller.d.ts +52 -0
  408. package/dist/scheduler/scheduler.controller.js +132 -0
  409. package/dist/scheduler/scheduler.controller.js.map +1 -0
  410. package/dist/scheduler/scheduler.module.d.ts +2 -0
  411. package/dist/scheduler/scheduler.module.js +34 -0
  412. package/dist/scheduler/scheduler.module.js.map +1 -0
  413. package/dist/scheduler/scheduler.service.d.ts +54 -0
  414. package/dist/scheduler/scheduler.service.js +238 -0
  415. package/dist/scheduler/scheduler.service.js.map +1 -0
  416. package/dist/scheduler/tasks/fetch-hot-data.task.d.ts +34 -0
  417. package/dist/scheduler/tasks/fetch-hot-data.task.js +175 -0
  418. package/dist/scheduler/tasks/fetch-hot-data.task.js.map +1 -0
  419. package/dist/token/coolapk.d.ts +11 -0
  420. package/dist/token/coolapk.js +40 -0
  421. package/dist/token/coolapk.js.map +1 -0
  422. package/dist/token/token.module.d.ts +2 -0
  423. package/dist/token/token.module.js +23 -0
  424. package/dist/token/token.module.js.map +1 -0
  425. package/dist/token/token.service.d.ts +19 -0
  426. package/dist/token/token.service.js +115 -0
  427. package/dist/token/token.service.js.map +1 -0
  428. package/dist/token/tools.d.ts +1 -0
  429. package/dist/token/tools.js +15 -0
  430. package/dist/token/tools.js.map +1 -0
  431. package/dist/token/weread.d.ts +2 -0
  432. package/dist/token/weread.js +55 -0
  433. package/dist/token/weread.js.map +1 -0
  434. package/dist/utils/getNum.d.ts +1 -0
  435. package/dist/utils/getNum.js +20 -0
  436. package/dist/utils/getNum.js.map +1 -0
  437. package/dist/utils/getTime.d.ts +11 -0
  438. package/dist/utils/getTime.js +134 -0
  439. package/dist/utils/getTime.js.map +1 -0
  440. package/dist/utils/headers.d.ts +16 -0
  441. package/dist/utils/headers.js +20 -0
  442. package/dist/utils/headers.js.map +1 -0
  443. package/dist/utils/index.d.ts +1 -0
  444. package/dist/utils/index.js +12 -0
  445. package/dist/utils/index.js.map +1 -0
  446. package/dist/utils/parseRSS.d.ts +11 -0
  447. package/dist/utils/parseRSS.js +47 -0
  448. package/dist/utils/parseRSS.js.map +1 -0
  449. package/package.json +148 -4
  450. package/views/home.hbs +65 -0
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var DailyBriefScheduler_1;
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.DailyBriefScheduler = void 0;
14
+ const common_1 = require("@nestjs/common");
15
+ const schedule_1 = require("@nestjs/schedule");
16
+ const cron_1 = require("cron");
17
+ const daily_brief_service_1 = require("./daily-brief.service");
18
+ const daily_brief_config_1 = require("./daily-brief.config");
19
+ let DailyBriefScheduler = DailyBriefScheduler_1 = class DailyBriefScheduler {
20
+ constructor(config, schedulerRegistry, dailyBriefService) {
21
+ this.config = config;
22
+ this.schedulerRegistry = schedulerRegistry;
23
+ this.dailyBriefService = dailyBriefService;
24
+ this.logger = new common_1.Logger(DailyBriefScheduler_1.name);
25
+ this.cronJobName = 'daily-brief-generate';
26
+ this.isRunning = false;
27
+ this.enabled = false;
28
+ this.enabled = this.config.enabled;
29
+ }
30
+ onModuleInit() {
31
+ this.setupCronJob();
32
+ }
33
+ onModuleDestroy() {
34
+ this.stopCronJob();
35
+ }
36
+ isEnabled() {
37
+ return this.enabled;
38
+ }
39
+ getStatus() {
40
+ return {
41
+ isRunning: this.isRunning,
42
+ enabled: this.enabled,
43
+ cronExpression: this.config.cronExpression,
44
+ timezone: this.config.timezone,
45
+ cronJobExists: this.schedulerRegistry.doesExist('cron', this.cronJobName),
46
+ };
47
+ }
48
+ start() {
49
+ this.enabled = true;
50
+ this.setupCronJob();
51
+ }
52
+ stop() {
53
+ this.enabled = false;
54
+ this.stopCronJob();
55
+ }
56
+ reconfigure() {
57
+ this.setupCronJob();
58
+ }
59
+ setupCronJob() {
60
+ try {
61
+ this.stopCronJob();
62
+ if (!this.enabled) {
63
+ this.logger.log('Daily brief scheduler is disabled');
64
+ return;
65
+ }
66
+ const cronExpression = this.config.cronExpression;
67
+ const timezone = this.config.timezone;
68
+ const job = new cron_1.CronJob(cronExpression, () => {
69
+ void this.handleCron();
70
+ }, null, false, timezone);
71
+ this.schedulerRegistry.addCronJob(this.cronJobName, job);
72
+ job.start();
73
+ this.logger.log(`Daily brief cron job setup with expression: ${cronExpression}`);
74
+ }
75
+ catch (error) {
76
+ this.logger.error('Failed to setup daily brief cron job:', error);
77
+ }
78
+ }
79
+ stopCronJob() {
80
+ try {
81
+ if (this.schedulerRegistry.doesExist('cron', this.cronJobName)) {
82
+ this.schedulerRegistry.deleteCronJob(this.cronJobName);
83
+ this.logger.log(`Stopped cron job: ${this.cronJobName}`);
84
+ }
85
+ }
86
+ catch (error) {
87
+ this.logger.error('Failed to stop daily brief cron job:', error);
88
+ }
89
+ }
90
+ async handleCron() {
91
+ if (!this.enabled || this.isRunning) {
92
+ return;
93
+ }
94
+ this.isRunning = true;
95
+ try {
96
+ await this.dailyBriefService.generateBrief();
97
+ }
98
+ catch (error) {
99
+ this.logger.error('Daily brief generation failed:', error);
100
+ }
101
+ finally {
102
+ this.isRunning = false;
103
+ }
104
+ }
105
+ };
106
+ exports.DailyBriefScheduler = DailyBriefScheduler;
107
+ exports.DailyBriefScheduler = DailyBriefScheduler = DailyBriefScheduler_1 = __decorate([
108
+ (0, common_1.Injectable)(),
109
+ __metadata("design:paramtypes", [daily_brief_config_1.DailyBriefConfigService,
110
+ schedule_1.SchedulerRegistry,
111
+ daily_brief_service_1.DailyBriefService])
112
+ ], DailyBriefScheduler);
113
+ //# sourceMappingURL=daily-brief.scheduler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"daily-brief.scheduler.js","sourceRoot":"","sources":["../../src/daily-brief/daily-brief.scheduler.ts"],"names":[],"mappings":";;;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MAAM,CAAC,KAAK,CAAC,sCAAsC,EAAE,KAAK,CAAC,CAAC;QACnE,CAAC;IACH,CAAC;IAEO,KAAK,CAAC,UAAU;QACtB,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACpC,OAAO;QACT,CAAC;QAED,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,CAAC;QAC/C,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,gCAAgC,EAAE,KAAK,CAAC,CAAC;QAC7D,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACzB,CAAC;IACH,CAAC;CACF,CAAA;AA/GY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;qCAQgB,4CAAuB;QACZ,4BAAiB;QACjB,uCAAiB;GAT5C,mBAAmB,CA+G/B"}
@@ -0,0 +1,101 @@
1
+ import { CacheService } from '../cache/cache.service';
2
+ import { DailyBriefRepository, StockRankingItem } from '../database/repositories/daily-brief.repository';
3
+ import { HotItemRepository } from '../database/repositories/hot-item.repository';
4
+ import { FetchHotDataTask } from '../scheduler/tasks/fetch-hot-data.task';
5
+ import { AiAnalysisClient } from './clients/ai-analysis.client';
6
+ import { BriefSearchService } from './clients/brief-search.service';
7
+ import { GenerateBriefOptions } from './interfaces/daily-brief.interface';
8
+ import { StockRankingQueryDto } from './dto/stock-ranking-query.dto';
9
+ import { DailyBriefConfigService } from './daily-brief.config';
10
+ export interface StockRankingResponse {
11
+ filters: {
12
+ period: string | null;
13
+ startDate: string | null;
14
+ endDate: string | null;
15
+ limit: number;
16
+ };
17
+ summary: {
18
+ briefCount: number;
19
+ uniqueStockCount: number;
20
+ totalAppearances: number;
21
+ };
22
+ rankings: Array<StockRankingItem & {
23
+ rank: number;
24
+ }>;
25
+ }
26
+ export declare class DailyBriefService {
27
+ private readonly config;
28
+ private readonly dailyBriefRepository;
29
+ private readonly hotItemRepository;
30
+ private readonly fetchHotDataTask;
31
+ private readonly aiAnalysisClient;
32
+ private readonly briefSearchService;
33
+ private readonly cacheService;
34
+ private readonly logger;
35
+ constructor(config: DailyBriefConfigService, dailyBriefRepository: DailyBriefRepository, hotItemRepository: HotItemRepository, fetchHotDataTask: FetchHotDataTask, aiAnalysisClient: AiAnalysisClient, briefSearchService: BriefSearchService, cacheService: CacheService);
36
+ generateBrief(options?: GenerateBriefOptions): Promise<import("mongoose").FlattenMaps<import("../database/schemas/daily-brief.schema").DailyBriefDocument> & {
37
+ _id: import("mongoose").Types.ObjectId;
38
+ }>;
39
+ private generateClaimedBrief;
40
+ findLatest(period?: string, includeDebug?: boolean): Promise<(import("mongoose").FlattenMaps<import("../database/schemas/daily-brief.schema").DailyBriefDocument> & {
41
+ _id: import("mongoose").Types.ObjectId;
42
+ }) | null>;
43
+ findByDate(date: string, period?: string, includeDebug?: boolean): Promise<(import("mongoose").FlattenMaps<import("../database/schemas/daily-brief.schema").DailyBriefDocument> & {
44
+ _id: import("mongoose").Types.ObjectId;
45
+ }) | null>;
46
+ list(options: {
47
+ page?: number;
48
+ limit?: number;
49
+ status?: 'generating' | 'success' | 'failed';
50
+ period?: string;
51
+ }): Promise<{
52
+ data: import("../database/repositories/daily-brief.repository").DailyBriefListItem[];
53
+ total: number;
54
+ page: number;
55
+ limit: number;
56
+ totalPages: number;
57
+ }>;
58
+ getStockRanking(options: StockRankingQueryDto): Promise<StockRankingResponse>;
59
+ deleteByDate(date: string, period?: string): Promise<{
60
+ mode: string;
61
+ briefDate: string;
62
+ period: string | null;
63
+ deletedCount: number;
64
+ }>;
65
+ deleteHistory(options: {
66
+ olderThan?: string;
67
+ beforeDate?: string;
68
+ period?: string;
69
+ }): Promise<{
70
+ mode: string;
71
+ olderThan: string | null;
72
+ beforeDate: string;
73
+ period: string | null;
74
+ deletedCount: number;
75
+ }>;
76
+ getConfig(): {
77
+ cronExpression: string;
78
+ timezone: string;
79
+ sources: string[];
80
+ lookbackHours: number;
81
+ topItemsPerSource: number;
82
+ maxTopics: number;
83
+ stockRankingCacheTtl: number;
84
+ model: string;
85
+ tavilyConfigured: boolean;
86
+ deepseekSearchConfigured: boolean;
87
+ searchProviders: import("./interfaces/search-provider.interface").SearchProviderName[];
88
+ };
89
+ private invalidateStockRankingCache;
90
+ private toPublicBrief;
91
+ private fetchLatestSourceItems;
92
+ private loadHistoryItems;
93
+ private mergeAndLimitItems;
94
+ private buildSearchEvidence;
95
+ private resolveSources;
96
+ private resolveInputWindow;
97
+ private formatDate;
98
+ private validateBriefDate;
99
+ private resolveOlderThanDate;
100
+ private buildFallbackMarkdown;
101
+ }
@@ -0,0 +1,412 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var DailyBriefService_1;
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.DailyBriefService = void 0;
14
+ const common_1 = require("@nestjs/common");
15
+ const cache_service_1 = require("../cache/cache.service");
16
+ const daily_brief_repository_1 = require("../database/repositories/daily-brief.repository");
17
+ const hot_item_repository_1 = require("../database/repositories/hot-item.repository");
18
+ const fetch_hot_data_task_1 = require("../scheduler/tasks/fetch-hot-data.task");
19
+ const ai_analysis_client_1 = require("./clients/ai-analysis.client");
20
+ const brief_search_service_1 = require("./clients/brief-search.service");
21
+ const concurrency_1 = require("./utils/concurrency");
22
+ const brief_date_1 = require("./utils/brief-date");
23
+ const daily_brief_config_1 = require("./daily-brief.config");
24
+ const crypto_1 = require("crypto");
25
+ const STOCK_RANKING_CACHE_PREFIX = 'daily-brief:statistics:stocks:';
26
+ let DailyBriefService = DailyBriefService_1 = class DailyBriefService {
27
+ constructor(config, dailyBriefRepository, hotItemRepository, fetchHotDataTask, aiAnalysisClient, briefSearchService, cacheService) {
28
+ this.config = config;
29
+ this.dailyBriefRepository = dailyBriefRepository;
30
+ this.hotItemRepository = hotItemRepository;
31
+ this.fetchHotDataTask = fetchHotDataTask;
32
+ this.aiAnalysisClient = aiAnalysisClient;
33
+ this.briefSearchService = briefSearchService;
34
+ this.cacheService = cacheService;
35
+ this.logger = new common_1.Logger(DailyBriefService_1.name);
36
+ }
37
+ async generateBrief(options = {}) {
38
+ const period = options.period || 'daily';
39
+ const briefDate = options.date || this.formatDate(new Date());
40
+ const sources = this.resolveSources(options.sources);
41
+ const inputWindow = this.resolveInputWindow(briefDate, this.config.lookbackHours);
42
+ if (!options.force) {
43
+ const existing = await this.dailyBriefRepository.findByDate(briefDate, period);
44
+ if (existing?.status === 'success')
45
+ return existing;
46
+ }
47
+ const generationId = (0, crypto_1.randomUUID)();
48
+ const timeoutMs = this.config.generatingTimeoutMinutes * 60_000;
49
+ const claimed = await this.dailyBriefRepository.claimGeneration({
50
+ briefDate,
51
+ period,
52
+ sources,
53
+ inputWindow,
54
+ model: this.aiAnalysisClient.getModel(),
55
+ generationId,
56
+ staleBefore: new Date(Date.now() - timeoutMs),
57
+ });
58
+ if (!claimed) {
59
+ throw new common_1.BadRequestException(`A daily brief is already being generated for ${briefDate}/${period}`);
60
+ }
61
+ const heartbeat = setInterval(() => {
62
+ void this.dailyBriefRepository
63
+ .heartbeatGeneration(briefDate, period, generationId)
64
+ .catch((error) => this.logger.warn('Brief heartbeat failed', error));
65
+ }, Math.min(60_000, Math.max(1_000, Math.floor(timeoutMs / 3))));
66
+ let timeout;
67
+ try {
68
+ return await Promise.race([
69
+ this.generateClaimedBrief(briefDate, period, generationId, sources, inputWindow),
70
+ new Promise((_, reject) => {
71
+ timeout = setTimeout(() => reject(new Error('Daily brief generation timed out')), timeoutMs);
72
+ }),
73
+ ]);
74
+ }
75
+ catch (error) {
76
+ const message = error instanceof Error ? error.message : String(error);
77
+ try {
78
+ await this.dailyBriefRepository.markFailed(briefDate, period, generationId, message);
79
+ }
80
+ catch (markError) {
81
+ this.logger.error('Failed to record brief generation failure', markError);
82
+ }
83
+ throw error;
84
+ }
85
+ finally {
86
+ clearInterval(heartbeat);
87
+ if (timeout)
88
+ clearTimeout(timeout);
89
+ }
90
+ }
91
+ async generateClaimedBrief(briefDate, period, generationId, sources, inputWindow) {
92
+ const fetchedItems = await this.fetchLatestSourceItems(sources);
93
+ const historyItems = await this.loadHistoryItems(sources, inputWindow.start.getTime(), inputWindow.end.getTime());
94
+ const inputItems = this.mergeAndLimitItems([...fetchedItems, ...historyItems], sources.length);
95
+ if (inputItems.length === 0) {
96
+ throw new Error('No hot items available for brief generation');
97
+ }
98
+ const searchEvidence = await this.buildSearchEvidence(inputItems);
99
+ const searchProvidersUsed = [
100
+ ...new Set(searchEvidence
101
+ .filter((item) => item.results.length > 0)
102
+ .map((item) => item.provider)
103
+ .filter((provider) => provider !== null)),
104
+ ];
105
+ const analysis = await this.aiAnalysisClient.analyzeDailyBrief({
106
+ briefDate,
107
+ sources,
108
+ items: inputItems,
109
+ searchEvidence,
110
+ });
111
+ const brief = await this.dailyBriefRepository.markSuccess(briefDate, period, generationId, {
112
+ analysis: analysis,
113
+ markdown: analysis.markdown || this.buildFallbackMarkdown(analysis),
114
+ rawInputItems: inputItems,
115
+ searchEvidence: searchEvidence,
116
+ model: this.aiAnalysisClient.getModel(),
117
+ tavilyUsed: searchProvidersUsed.includes('tavily'),
118
+ searchProvidersUsed,
119
+ sources,
120
+ inputWindow,
121
+ });
122
+ if (!brief)
123
+ throw new Error('Daily brief generation claim was lost');
124
+ await this.invalidateStockRankingCache();
125
+ return this.toPublicBrief(brief);
126
+ }
127
+ findLatest(period, includeDebug = false) {
128
+ return this.dailyBriefRepository.findLatest(period, includeDebug);
129
+ }
130
+ findByDate(date, period = 'daily', includeDebug = false) {
131
+ return this.dailyBriefRepository.findByDate(date, period, includeDebug);
132
+ }
133
+ list(options) {
134
+ return this.dailyBriefRepository.list(options);
135
+ }
136
+ async getStockRanking(options) {
137
+ if (options.startDate &&
138
+ options.endDate &&
139
+ options.startDate > options.endDate) {
140
+ throw new common_1.BadRequestException('startDate must be earlier than or equal to endDate');
141
+ }
142
+ const filters = {
143
+ period: options.period || null,
144
+ startDate: options.startDate || null,
145
+ endDate: options.endDate || null,
146
+ limit: options.limit || 50,
147
+ };
148
+ const cacheKey = `${STOCK_RANKING_CACHE_PREFIX}${JSON.stringify(filters)}`;
149
+ const cached = await this.cacheService.get(cacheKey);
150
+ if (cached) {
151
+ return cached.data;
152
+ }
153
+ const result = await this.dailyBriefRepository.getStockRanking({
154
+ ...(filters.period ? { period: filters.period } : {}),
155
+ ...(filters.startDate ? { startDate: filters.startDate } : {}),
156
+ ...(filters.endDate ? { endDate: filters.endDate } : {}),
157
+ limit: filters.limit,
158
+ });
159
+ const response = {
160
+ filters,
161
+ summary: {
162
+ briefCount: result.totalBriefs,
163
+ uniqueStockCount: result.uniqueStocks,
164
+ totalAppearances: result.totalAppearances,
165
+ },
166
+ rankings: result.rankings.map((item, index) => ({
167
+ rank: index + 1,
168
+ ...item,
169
+ })),
170
+ };
171
+ await this.cacheService.set(cacheKey, { data: response, updateTime: new Date().toISOString() }, this.config.stockRankingCacheTtl);
172
+ return response;
173
+ }
174
+ async deleteByDate(date, period) {
175
+ this.validateBriefDate(date);
176
+ const result = await this.dailyBriefRepository.deleteByDate(date, period);
177
+ if ((result.deletedCount || 0) > 0) {
178
+ await this.invalidateStockRankingCache();
179
+ }
180
+ return {
181
+ mode: 'date',
182
+ briefDate: date,
183
+ period: period || null,
184
+ deletedCount: result.deletedCount || 0,
185
+ };
186
+ }
187
+ async deleteHistory(options) {
188
+ if (options.olderThan && options.beforeDate) {
189
+ throw new common_1.BadRequestException('Use either olderThan or beforeDate, not both');
190
+ }
191
+ const beforeDate = options.beforeDate
192
+ ? this.validateBriefDate(options.beforeDate)
193
+ : this.resolveOlderThanDate(options.olderThan);
194
+ const result = await this.dailyBriefRepository.deleteBeforeDate(beforeDate, options.period);
195
+ if ((result.deletedCount || 0) > 0) {
196
+ await this.invalidateStockRankingCache();
197
+ }
198
+ return {
199
+ mode: options.beforeDate ? 'beforeDate' : 'olderThan',
200
+ olderThan: options.olderThan || null,
201
+ beforeDate,
202
+ period: options.period || null,
203
+ deletedCount: result.deletedCount || 0,
204
+ };
205
+ }
206
+ getConfig() {
207
+ return {
208
+ cronExpression: this.config.cronExpression,
209
+ timezone: this.config.timezone,
210
+ sources: this.resolveSources(),
211
+ lookbackHours: this.config.lookbackHours,
212
+ topItemsPerSource: this.config.topItemsPerSource,
213
+ maxTopics: this.config.maxTopics,
214
+ stockRankingCacheTtl: this.config.stockRankingCacheTtl,
215
+ model: this.aiAnalysisClient.getModel(),
216
+ tavilyConfigured: this.config.tavilyConfigured,
217
+ deepseekSearchConfigured: this.config.deepseekSearchConfigured,
218
+ searchProviders: this.config.searchProviders,
219
+ };
220
+ }
221
+ invalidateStockRankingCache() {
222
+ return this.cacheService.delByPattern(STOCK_RANKING_CACHE_PREFIX);
223
+ }
224
+ toPublicBrief(brief) {
225
+ if (!brief) {
226
+ return brief;
227
+ }
228
+ const { rawInputItems, searchEvidence, ...publicBrief } = brief;
229
+ void rawInputItems;
230
+ void searchEvidence;
231
+ return publicBrief;
232
+ }
233
+ async fetchLatestSourceItems(sources) {
234
+ const topItemsPerSource = this.config.topItemsPerSource;
235
+ const results = await (0, concurrency_1.mapWithConcurrency)(sources, this.config.sourceConcurrency, async (source) => {
236
+ try {
237
+ const refreshed = await this.fetchHotDataTask.execute(source);
238
+ if (!refreshed.success || !refreshed.items?.length) {
239
+ this.logger.warn(`Brief source ${source} contributed no fresh items: ${refreshed.error ?? 'empty result'}`);
240
+ return [];
241
+ }
242
+ return refreshed.items.slice(0, topItemsPerSource).map((item) => ({
243
+ source,
244
+ title: item.title,
245
+ desc: item.desc,
246
+ hot: item.hot,
247
+ url: item.url,
248
+ mobileUrl: item.mobileUrl,
249
+ timestamp: item.timestamp,
250
+ }));
251
+ }
252
+ catch (error) {
253
+ this.logger.warn(`Failed to refresh source ${source}: ${error instanceof Error ? error.message : String(error)}`);
254
+ return [];
255
+ }
256
+ });
257
+ return results.flat();
258
+ }
259
+ async loadHistoryItems(sources, startTime, endTime) {
260
+ const topItemsPerSource = this.config.topItemsPerSource;
261
+ const results = await Promise.all(sources.map(async (source) => {
262
+ const items = await this.hotItemRepository.getDataByTimeRange(source, startTime, endTime);
263
+ if (!Array.isArray(items)) {
264
+ return [];
265
+ }
266
+ return items.slice(0, topItemsPerSource).map((item) => ({
267
+ source,
268
+ title: item.title,
269
+ desc: item.desc,
270
+ hot: item.hot,
271
+ url: item.url,
272
+ mobileUrl: item.mobileUrl,
273
+ timestamp: item.timestamp,
274
+ }));
275
+ }));
276
+ return results.flat();
277
+ }
278
+ mergeAndLimitItems(items, sourceCount) {
279
+ const seen = new Set();
280
+ const bySource = new Map();
281
+ for (const item of items) {
282
+ if (!item.title || !item.url) {
283
+ continue;
284
+ }
285
+ const key = `${item.source}:${item.url}`;
286
+ if (seen.has(key)) {
287
+ continue;
288
+ }
289
+ seen.add(key);
290
+ const sourceItems = bySource.get(item.source) ?? [];
291
+ sourceItems.push(item);
292
+ bySource.set(item.source, sourceItems);
293
+ }
294
+ for (const sourceItems of bySource.values()) {
295
+ sourceItems.sort((a, b) => {
296
+ const tA = a.timestamp ? new Date(a.timestamp).getTime() : 0;
297
+ const tB = b.timestamp ? new Date(b.timestamp).getTime() : 0;
298
+ return tB - tA;
299
+ });
300
+ }
301
+ const result = [];
302
+ for (let rank = 0; rank < this.config.topItemsPerSource; rank++) {
303
+ for (const sourceItems of bySource.values()) {
304
+ if (sourceItems[rank])
305
+ result.push(sourceItems[rank]);
306
+ }
307
+ }
308
+ return result.slice(0, Math.max(1, sourceCount) * this.config.topItemsPerSource);
309
+ }
310
+ async buildSearchEvidence(items) {
311
+ const seenTitles = new Set();
312
+ const candidates = items
313
+ .filter((item) => {
314
+ const title = item.title
315
+ .toLocaleLowerCase()
316
+ .replace(/[\s\p{P}\p{S}]+/gu, '');
317
+ if (!title || seenTitles.has(title))
318
+ return false;
319
+ seenTitles.add(title);
320
+ return true;
321
+ })
322
+ .slice(0, Math.min(this.config.maxTopics, ai_analysis_client_1.PROMPT_BUDGET.maxTopics));
323
+ return (0, concurrency_1.mapWithConcurrency)(candidates, this.config.searchConcurrency, async (item) => {
324
+ const query = `${item.title} ${(item.desc || '').slice(0, 120)} 产业链 A股 影响`;
325
+ const key = `daily-brief:search:v2:${(0, crypto_1.createHash)('sha256')
326
+ .update(`${this.config.searchProviders.join(',')}:${query}`)
327
+ .digest('hex')}`;
328
+ const cached = await this.cacheService.get(key);
329
+ const outcome = cached?.data ?? (await this.briefSearchService.search(query));
330
+ if (!cached && outcome.results.length > 0) {
331
+ await this.cacheService.set(key, { data: outcome, updateTime: new Date().toISOString() }, 3600);
332
+ }
333
+ return {
334
+ topicTitle: item.title,
335
+ query,
336
+ provider: outcome.provider,
337
+ results: outcome.results,
338
+ };
339
+ });
340
+ }
341
+ resolveSources(sources) {
342
+ const configuredSources = sources && sources.length > 0 ? sources : this.config.sources;
343
+ return configuredSources.filter(Boolean);
344
+ }
345
+ resolveInputWindow(briefDate, lookbackHours) {
346
+ const now = new Date();
347
+ const today = this.formatDate(now);
348
+ const end = briefDate === today
349
+ ? now
350
+ : (0, brief_date_1.endOfBriefDate)(briefDate, this.config.timezone);
351
+ const start = new Date(end.getTime() - lookbackHours * 60 * 60 * 1000);
352
+ return {
353
+ start,
354
+ end,
355
+ lookbackHours,
356
+ };
357
+ }
358
+ formatDate(date) {
359
+ return (0, brief_date_1.formatBriefDate)(date, this.config.timezone);
360
+ }
361
+ validateBriefDate(date) {
362
+ if (!/^\d{4}-\d{2}-\d{2}$/.test(date)) {
363
+ throw new common_1.BadRequestException('Date must be in YYYY-MM-DD format');
364
+ }
365
+ return date;
366
+ }
367
+ resolveOlderThanDate(olderThan) {
368
+ if (!olderThan) {
369
+ throw new common_1.BadRequestException('olderThan or beforeDate is required');
370
+ }
371
+ const normalized = olderThan.trim().toLowerCase();
372
+ const aliases = {
373
+ month: '1m',
374
+ 'one-month': '1m',
375
+ year: '1y',
376
+ 'one-year': '1y',
377
+ };
378
+ const value = aliases[normalized] || normalized;
379
+ const match = value.match(/^(\d+)(d|day|days|m|month|months|y|year|years)$/);
380
+ if (!match) {
381
+ throw new common_1.BadRequestException('olderThan must use a value like 30d, 1m, or 1y');
382
+ }
383
+ const amount = Number(match[1]);
384
+ const unit = match[2];
385
+ const cutoff = new Date();
386
+ if (unit.startsWith('d')) {
387
+ cutoff.setDate(cutoff.getDate() - amount);
388
+ }
389
+ else if (unit.startsWith('m')) {
390
+ cutoff.setMonth(cutoff.getMonth() - amount);
391
+ }
392
+ else {
393
+ cutoff.setFullYear(cutoff.getFullYear() - amount);
394
+ }
395
+ return this.formatDate(cutoff);
396
+ }
397
+ buildFallbackMarkdown(analysis) {
398
+ return `# 每日简报\n\n${analysis.summary || ''}`;
399
+ }
400
+ };
401
+ exports.DailyBriefService = DailyBriefService;
402
+ exports.DailyBriefService = DailyBriefService = DailyBriefService_1 = __decorate([
403
+ (0, common_1.Injectable)(),
404
+ __metadata("design:paramtypes", [daily_brief_config_1.DailyBriefConfigService,
405
+ daily_brief_repository_1.DailyBriefRepository,
406
+ hot_item_repository_1.HotItemRepository,
407
+ fetch_hot_data_task_1.FetchHotDataTask,
408
+ ai_analysis_client_1.AiAnalysisClient,
409
+ brief_search_service_1.BriefSearchService,
410
+ cache_service_1.CacheService])
411
+ ], DailyBriefService);
412
+ //# sourceMappingURL=daily-brief.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"daily-brief.service.js","sourceRoot":"","sources":["../../src/daily-brief/daily-brief.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAyE;AACzE,0DAAiE;AACjE,4FAGyD;AACzD,sFAAiF;AACjF,gFAA0E;AAC1E,qEAA+E;AAC/E,yEAAoE;AAOpE,qDAAyD;AACzD,mDAAqE;AACrE,6DAA+D;AAC/D,mCAAgD;AAGhD,MAAM,0BAA0B,GAAG,gCAAgC,CAAC;AAkB7D,IAAM,iBAAiB,yBAAvB,MAAM,iBAAiB;IAG5B,YACmB,MAA+B,EAC/B,oBAA0C,EAC1C,iBAAoC,EACpC,gBAAkC,EAClC,gBAAkC,EAClC,kBAAsC,EACtC,YAA0B;QAN1B,WAAM,GAAN,MAAM,CAAyB;QAC/B,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,iBAAY,GAAZ,YAAY,CAAc;QAT5B,WAAM,GAAG,IAAI,eAAM,CAAC,mBAAiB,CAAC,IAAI,CAAC,CAAC;IAU1D,CAAC;IAEJ,KAAK,CAAC,aAAa,CAAC,UAAgC,EAAE;QACpD,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC;QACzC,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;QAC9D,MAAM,OAAO,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACrD,MAAM,WAAW,GAAG,IAAI,CAAC,kBAAkB,CACzC,SAAS,EACT,IAAI,C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