paper-search-cli 0.3.0 → 0.3.2

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 (314) hide show
  1. package/README.md +11 -9
  2. package/README.zh.md +11 -9
  3. package/dist/capabilities/body-snippet-search/handler.d.ts +9 -0
  4. package/dist/capabilities/body-snippet-search/handler.d.ts.map +1 -0
  5. package/dist/capabilities/body-snippet-search/handler.js +17 -0
  6. package/dist/capabilities/body-snippet-search/handler.js.map +1 -0
  7. package/dist/capabilities/body-snippet-search/index.d.ts +7 -0
  8. package/dist/capabilities/body-snippet-search/index.d.ts.map +1 -0
  9. package/dist/capabilities/body-snippet-search/index.js +6 -0
  10. package/dist/capabilities/body-snippet-search/index.js.map +1 -0
  11. package/dist/capabilities/body-snippet-search/schemas.d.ts +36 -0
  12. package/dist/capabilities/body-snippet-search/schemas.d.ts.map +1 -0
  13. package/dist/capabilities/body-snippet-search/schemas.js +16 -0
  14. package/dist/capabilities/body-snippet-search/schemas.js.map +1 -0
  15. package/dist/capabilities/body-snippet-search/service.d.ts +4 -0
  16. package/dist/capabilities/body-snippet-search/service.d.ts.map +1 -0
  17. package/dist/capabilities/body-snippet-search/service.js +4 -0
  18. package/dist/capabilities/body-snippet-search/service.js.map +1 -0
  19. package/dist/capabilities/body-snippet-search/tools.d.ts +187 -0
  20. package/dist/capabilities/body-snippet-search/tools.d.ts.map +1 -0
  21. package/dist/capabilities/body-snippet-search/tools.js +49 -0
  22. package/dist/capabilities/body-snippet-search/tools.js.map +1 -0
  23. package/dist/capabilities/body-snippet-search/types.d.ts +14 -0
  24. package/dist/capabilities/body-snippet-search/types.d.ts.map +1 -0
  25. package/dist/capabilities/body-snippet-search/types.js +2 -0
  26. package/dist/capabilities/body-snippet-search/types.js.map +1 -0
  27. package/dist/capabilities/citation-expansion/CitationService.d.ts +47 -0
  28. package/dist/capabilities/citation-expansion/CitationService.d.ts.map +1 -0
  29. package/dist/capabilities/citation-expansion/CitationService.js +243 -0
  30. package/dist/capabilities/citation-expansion/CitationService.js.map +1 -0
  31. package/dist/capabilities/citation-expansion/handler.d.ts +36 -0
  32. package/dist/capabilities/citation-expansion/handler.d.ts.map +1 -0
  33. package/dist/capabilities/citation-expansion/handler.js +44 -0
  34. package/dist/capabilities/citation-expansion/handler.js.map +1 -0
  35. package/dist/capabilities/citation-expansion/index.d.ts +6 -0
  36. package/dist/capabilities/citation-expansion/index.d.ts.map +1 -0
  37. package/dist/capabilities/citation-expansion/index.js +5 -0
  38. package/dist/capabilities/citation-expansion/index.js.map +1 -0
  39. package/dist/capabilities/citation-expansion/schemas.d.ts +28 -0
  40. package/dist/capabilities/citation-expansion/schemas.d.ts.map +1 -0
  41. package/dist/capabilities/citation-expansion/schemas.js +13 -0
  42. package/dist/capabilities/citation-expansion/schemas.js.map +1 -0
  43. package/dist/capabilities/citation-expansion/tools.d.ts +82 -0
  44. package/dist/capabilities/citation-expansion/tools.d.ts.map +1 -0
  45. package/dist/capabilities/citation-expansion/tools.js +48 -0
  46. package/dist/capabilities/citation-expansion/tools.js.map +1 -0
  47. package/dist/capabilities/citation-expansion/types.d.ts +22 -0
  48. package/dist/capabilities/citation-expansion/types.d.ts.map +1 -0
  49. package/dist/capabilities/citation-expansion/types.js +2 -0
  50. package/dist/capabilities/citation-expansion/types.js.map +1 -0
  51. package/dist/capabilities/journal-metrics/JournalMetricsService.d.ts +3 -0
  52. package/dist/capabilities/journal-metrics/JournalMetricsService.d.ts.map +1 -0
  53. package/dist/capabilities/journal-metrics/JournalMetricsService.js +142 -0
  54. package/dist/capabilities/journal-metrics/JournalMetricsService.js.map +1 -0
  55. package/dist/capabilities/journal-metrics/handler.d.ts +12 -0
  56. package/dist/capabilities/journal-metrics/handler.d.ts.map +1 -0
  57. package/dist/capabilities/journal-metrics/handler.js +38 -0
  58. package/dist/capabilities/journal-metrics/handler.js.map +1 -0
  59. package/dist/capabilities/journal-metrics/index.d.ts +6 -0
  60. package/dist/capabilities/journal-metrics/index.d.ts.map +1 -0
  61. package/dist/capabilities/journal-metrics/index.js +5 -0
  62. package/dist/capabilities/journal-metrics/index.js.map +1 -0
  63. package/dist/capabilities/journal-metrics/schemas.d.ts +28 -0
  64. package/dist/capabilities/journal-metrics/schemas.d.ts.map +1 -0
  65. package/dist/capabilities/journal-metrics/schemas.js +13 -0
  66. package/dist/capabilities/journal-metrics/schemas.js.map +1 -0
  67. package/dist/capabilities/journal-metrics/tools.d.ts +67 -0
  68. package/dist/capabilities/journal-metrics/tools.d.ts.map +1 -0
  69. package/dist/capabilities/journal-metrics/tools.js +27 -0
  70. package/dist/capabilities/journal-metrics/tools.js.map +1 -0
  71. package/dist/capabilities/journal-metrics/types.d.ts +36 -0
  72. package/dist/capabilities/journal-metrics/types.d.ts.map +1 -0
  73. package/dist/capabilities/journal-metrics/types.js +2 -0
  74. package/dist/capabilities/journal-metrics/types.js.map +1 -0
  75. package/dist/capabilities/metadata-search/MultiSourceSearchService.d.ts +9 -0
  76. package/dist/capabilities/metadata-search/MultiSourceSearchService.d.ts.map +1 -0
  77. package/dist/capabilities/metadata-search/MultiSourceSearchService.js +78 -0
  78. package/dist/capabilities/metadata-search/MultiSourceSearchService.js.map +1 -0
  79. package/dist/capabilities/metadata-search/handler.d.ts +23 -0
  80. package/dist/capabilities/metadata-search/handler.d.ts.map +1 -0
  81. package/dist/capabilities/metadata-search/handler.js +163 -0
  82. package/dist/capabilities/metadata-search/handler.js.map +1 -0
  83. package/dist/capabilities/metadata-search/index.d.ts +6 -0
  84. package/dist/capabilities/metadata-search/index.d.ts.map +1 -0
  85. package/dist/capabilities/metadata-search/index.js +5 -0
  86. package/dist/capabilities/metadata-search/index.js.map +1 -0
  87. package/dist/capabilities/metadata-search/schemas.d.ts +83 -0
  88. package/dist/capabilities/metadata-search/schemas.d.ts.map +1 -0
  89. package/dist/capabilities/metadata-search/schemas.js +81 -0
  90. package/dist/capabilities/metadata-search/schemas.js.map +1 -0
  91. package/dist/capabilities/metadata-search/tools.d.ts +178 -0
  92. package/dist/capabilities/metadata-search/tools.d.ts.map +1 -0
  93. package/dist/capabilities/metadata-search/tools.js +75 -0
  94. package/dist/capabilities/metadata-search/tools.js.map +1 -0
  95. package/dist/capabilities/metadata-search/types.d.ts +13 -0
  96. package/dist/capabilities/metadata-search/types.d.ts.map +1 -0
  97. package/dist/capabilities/metadata-search/types.js +2 -0
  98. package/dist/capabilities/metadata-search/types.js.map +1 -0
  99. package/dist/capabilities/pdf-discovery/DownloadTier.d.ts +22 -0
  100. package/dist/capabilities/pdf-discovery/DownloadTier.d.ts.map +1 -0
  101. package/dist/capabilities/pdf-discovery/DownloadTier.js +2 -0
  102. package/dist/capabilities/pdf-discovery/DownloadTier.js.map +1 -0
  103. package/dist/capabilities/pdf-discovery/OpenAccessFallbackService.d.ts +10 -0
  104. package/dist/capabilities/pdf-discovery/OpenAccessFallbackService.d.ts.map +1 -0
  105. package/dist/capabilities/pdf-discovery/OpenAccessFallbackService.js +53 -0
  106. package/dist/capabilities/pdf-discovery/OpenAccessFallbackService.js.map +1 -0
  107. package/dist/capabilities/pdf-discovery/handler.d.ts +19 -0
  108. package/dist/capabilities/pdf-discovery/handler.d.ts.map +1 -0
  109. package/dist/capabilities/pdf-discovery/handler.js +56 -0
  110. package/dist/capabilities/pdf-discovery/handler.js.map +1 -0
  111. package/dist/capabilities/pdf-discovery/index.d.ts +7 -0
  112. package/dist/capabilities/pdf-discovery/index.d.ts.map +1 -0
  113. package/dist/capabilities/pdf-discovery/index.js +5 -0
  114. package/dist/capabilities/pdf-discovery/index.js.map +1 -0
  115. package/dist/capabilities/pdf-discovery/schemas.d.ts +37 -0
  116. package/dist/capabilities/pdf-discovery/schemas.d.ts.map +1 -0
  117. package/dist/capabilities/pdf-discovery/schemas.js +22 -0
  118. package/dist/capabilities/pdf-discovery/schemas.js.map +1 -0
  119. package/dist/capabilities/pdf-discovery/tiers/directPdfUrl.d.ts +3 -0
  120. package/dist/capabilities/pdf-discovery/tiers/directPdfUrl.d.ts.map +1 -0
  121. package/dist/capabilities/pdf-discovery/tiers/directPdfUrl.js +27 -0
  122. package/dist/capabilities/pdf-discovery/tiers/directPdfUrl.js.map +1 -0
  123. package/dist/capabilities/pdf-discovery/tiers/primary.d.ts +3 -0
  124. package/dist/capabilities/pdf-discovery/tiers/primary.d.ts.map +1 -0
  125. package/dist/capabilities/pdf-discovery/tiers/primary.js +21 -0
  126. package/dist/capabilities/pdf-discovery/tiers/primary.js.map +1 -0
  127. package/dist/capabilities/pdf-discovery/tiers/repositories.d.ts +3 -0
  128. package/dist/capabilities/pdf-discovery/tiers/repositories.d.ts.map +1 -0
  129. package/dist/capabilities/pdf-discovery/tiers/repositories.js +35 -0
  130. package/dist/capabilities/pdf-discovery/tiers/repositories.js.map +1 -0
  131. package/dist/capabilities/pdf-discovery/tiers/scihub.d.ts +3 -0
  132. package/dist/capabilities/pdf-discovery/tiers/scihub.d.ts.map +1 -0
  133. package/dist/capabilities/pdf-discovery/tiers/scihub.js +21 -0
  134. package/dist/capabilities/pdf-discovery/tiers/scihub.js.map +1 -0
  135. package/dist/capabilities/pdf-discovery/tiers/unpaywall.d.ts +3 -0
  136. package/dist/capabilities/pdf-discovery/tiers/unpaywall.d.ts.map +1 -0
  137. package/dist/capabilities/pdf-discovery/tiers/unpaywall.js +29 -0
  138. package/dist/capabilities/pdf-discovery/tiers/unpaywall.js.map +1 -0
  139. package/dist/capabilities/pdf-discovery/tools.d.ts +114 -0
  140. package/dist/capabilities/pdf-discovery/tools.d.ts.map +1 -0
  141. package/dist/capabilities/pdf-discovery/tools.js +42 -0
  142. package/dist/capabilities/pdf-discovery/tools.js.map +1 -0
  143. package/dist/capabilities/pdf-discovery/types.d.ts +19 -0
  144. package/dist/capabilities/pdf-discovery/types.d.ts.map +1 -0
  145. package/dist/capabilities/pdf-discovery/types.js +2 -0
  146. package/dist/capabilities/pdf-discovery/types.js.map +1 -0
  147. package/dist/cli.js +10 -6
  148. package/dist/cli.js.map +1 -1
  149. package/dist/core/capabilityProfile.d.ts +1 -17
  150. package/dist/core/capabilityProfile.d.ts.map +1 -1
  151. package/dist/core/capabilityProfile.js +1 -152
  152. package/dist/core/capabilityProfile.js.map +1 -1
  153. package/dist/core/diagnostics.d.ts +1 -42
  154. package/dist/core/diagnostics.d.ts.map +1 -1
  155. package/dist/core/diagnostics.js +1 -585
  156. package/dist/core/diagnostics.js.map +1 -1
  157. package/dist/core/handleToolCall.d.ts +1 -0
  158. package/dist/core/handleToolCall.d.ts.map +1 -1
  159. package/dist/core/handleToolCall.js +265 -476
  160. package/dist/core/handleToolCall.js.map +1 -1
  161. package/dist/core/httpPolicies.d.ts +2 -0
  162. package/dist/core/httpPolicies.d.ts.map +1 -0
  163. package/dist/core/httpPolicies.js +2 -0
  164. package/dist/core/httpPolicies.js.map +1 -0
  165. package/dist/core/liveSmoke.d.ts +1 -41
  166. package/dist/core/liveSmoke.d.ts.map +1 -1
  167. package/dist/core/liveSmoke.js +1 -225
  168. package/dist/core/liveSmoke.js.map +1 -1
  169. package/dist/core/platformFactories.d.ts +2 -0
  170. package/dist/core/platformFactories.d.ts.map +1 -0
  171. package/dist/core/platformFactories.js +2 -0
  172. package/dist/core/platformFactories.js.map +1 -0
  173. package/dist/core/platformMetadata.d.ts +1 -27
  174. package/dist/core/platformMetadata.d.ts.map +1 -1
  175. package/dist/core/platformMetadata.js +1 -257
  176. package/dist/core/platformMetadata.js.map +1 -1
  177. package/dist/core/schemas.d.ts +11 -177
  178. package/dist/core/schemas.d.ts.map +1 -1
  179. package/dist/core/schemas.js +14 -107
  180. package/dist/core/schemas.js.map +1 -1
  181. package/dist/core/searchers.d.ts +24 -24
  182. package/dist/core/searchers.d.ts.map +1 -1
  183. package/dist/core/searchers.js +14 -79
  184. package/dist/core/searchers.js.map +1 -1
  185. package/dist/core/textReports.d.ts +1 -20
  186. package/dist/core/textReports.d.ts.map +1 -1
  187. package/dist/core/textReports.js +1 -84
  188. package/dist/core/textReports.js.map +1 -1
  189. package/dist/core/tools.d.ts.map +1 -1
  190. package/dist/core/tools.js +15 -183
  191. package/dist/core/tools.js.map +1 -1
  192. package/dist/infrastructure/cache/RequestCache.d.ts +26 -0
  193. package/dist/infrastructure/cache/RequestCache.d.ts.map +1 -0
  194. package/dist/infrastructure/cache/RequestCache.js +66 -0
  195. package/dist/infrastructure/cache/RequestCache.js.map +1 -0
  196. package/dist/infrastructure/http/ErrorHandler.d.ts +99 -0
  197. package/dist/infrastructure/http/ErrorHandler.d.ts.map +1 -0
  198. package/dist/infrastructure/http/ErrorHandler.js +266 -0
  199. package/dist/infrastructure/http/ErrorHandler.js.map +1 -0
  200. package/dist/infrastructure/http/HttpClient.d.ts +31 -0
  201. package/dist/infrastructure/http/HttpClient.d.ts.map +1 -0
  202. package/dist/infrastructure/http/HttpClient.js +50 -0
  203. package/dist/infrastructure/http/HttpClient.js.map +1 -0
  204. package/dist/infrastructure/pdf/PDFExtractor.d.ts +34 -0
  205. package/dist/infrastructure/pdf/PDFExtractor.d.ts.map +1 -0
  206. package/dist/infrastructure/pdf/PDFExtractor.js +130 -0
  207. package/dist/infrastructure/pdf/PDFExtractor.js.map +1 -0
  208. package/dist/infrastructure/pdf/PdfDownload.d.ts +7 -0
  209. package/dist/infrastructure/pdf/PdfDownload.d.ts.map +1 -0
  210. package/dist/infrastructure/pdf/PdfDownload.js +175 -0
  211. package/dist/infrastructure/pdf/PdfDownload.js.map +1 -0
  212. package/dist/infrastructure/rate-limit/RateLimiter.d.ts +50 -0
  213. package/dist/infrastructure/rate-limit/RateLimiter.d.ts.map +1 -0
  214. package/dist/infrastructure/rate-limit/RateLimiter.js +128 -0
  215. package/dist/infrastructure/rate-limit/RateLimiter.js.map +1 -0
  216. package/dist/infrastructure/security/SecurityUtils.d.ts +80 -0
  217. package/dist/infrastructure/security/SecurityUtils.d.ts.map +1 -0
  218. package/dist/infrastructure/security/SecurityUtils.js +357 -0
  219. package/dist/infrastructure/security/SecurityUtils.js.map +1 -0
  220. package/dist/management/capability-profile/index.d.ts +18 -0
  221. package/dist/management/capability-profile/index.d.ts.map +1 -0
  222. package/dist/management/capability-profile/index.js +167 -0
  223. package/dist/management/capability-profile/index.js.map +1 -0
  224. package/dist/management/config/index.d.ts +2 -0
  225. package/dist/management/config/index.d.ts.map +1 -0
  226. package/dist/management/config/index.js +2 -0
  227. package/dist/management/config/index.js.map +1 -0
  228. package/dist/management/diagnostics/index.d.ts +43 -0
  229. package/dist/management/diagnostics/index.d.ts.map +1 -0
  230. package/dist/management/diagnostics/index.js +586 -0
  231. package/dist/management/diagnostics/index.js.map +1 -0
  232. package/dist/management/reports/index.d.ts +21 -0
  233. package/dist/management/reports/index.d.ts.map +1 -0
  234. package/dist/management/reports/index.js +85 -0
  235. package/dist/management/reports/index.js.map +1 -0
  236. package/dist/management/skills/index.d.ts +2 -0
  237. package/dist/management/skills/index.d.ts.map +1 -0
  238. package/dist/management/skills/index.js +2 -0
  239. package/dist/management/skills/index.js.map +1 -0
  240. package/dist/management/smoke/index.d.ts +42 -0
  241. package/dist/management/smoke/index.d.ts.map +1 -0
  242. package/dist/management/smoke/index.js +226 -0
  243. package/dist/management/smoke/index.js.map +1 -0
  244. package/dist/platforms/BioRxivSearcher.d.ts.map +1 -1
  245. package/dist/platforms/BioRxivSearcher.js +40 -21
  246. package/dist/platforms/BioRxivSearcher.js.map +1 -1
  247. package/dist/platforms/GoogleScholarSearcher.d.ts.map +1 -1
  248. package/dist/platforms/GoogleScholarSearcher.js +3 -2
  249. package/dist/platforms/GoogleScholarSearcher.js.map +1 -1
  250. package/dist/registry/aliases.d.ts +2 -0
  251. package/dist/registry/aliases.d.ts.map +1 -0
  252. package/dist/registry/aliases.js +2 -0
  253. package/dist/registry/aliases.js.map +1 -0
  254. package/dist/registry/httpPolicies.d.ts +3 -0
  255. package/dist/registry/httpPolicies.d.ts.map +1 -0
  256. package/dist/registry/httpPolicies.js +17 -0
  257. package/dist/registry/httpPolicies.js.map +1 -0
  258. package/dist/registry/platformFactories.d.ts +8 -0
  259. package/dist/registry/platformFactories.d.ts.map +1 -0
  260. package/dist/registry/platformFactories.js +55 -0
  261. package/dist/registry/platformFactories.js.map +1 -0
  262. package/dist/registry/platformMetadata.d.ts +39 -0
  263. package/dist/registry/platformMetadata.d.ts.map +1 -0
  264. package/dist/registry/platformMetadata.js +321 -0
  265. package/dist/registry/platformMetadata.js.map +1 -0
  266. package/dist/services/CitationService.d.ts +2 -65
  267. package/dist/services/CitationService.d.ts.map +1 -1
  268. package/dist/services/CitationService.js +1 -236
  269. package/dist/services/CitationService.js.map +1 -1
  270. package/dist/services/JournalMetricsService.d.ts +2 -37
  271. package/dist/services/JournalMetricsService.d.ts.map +1 -1
  272. package/dist/services/JournalMetricsService.js +1 -141
  273. package/dist/services/JournalMetricsService.js.map +1 -1
  274. package/dist/services/MultiSourceSearchService.d.ts +2 -18
  275. package/dist/services/MultiSourceSearchService.d.ts.map +1 -1
  276. package/dist/services/MultiSourceSearchService.js +1 -77
  277. package/dist/services/MultiSourceSearchService.js.map +1 -1
  278. package/dist/services/OpenAccessFallbackService.d.ts +3 -20
  279. package/dist/services/OpenAccessFallbackService.d.ts.map +1 -1
  280. package/dist/services/OpenAccessFallbackService.js +1 -123
  281. package/dist/services/OpenAccessFallbackService.js.map +1 -1
  282. package/dist/utils/ErrorHandler.d.ts +2 -98
  283. package/dist/utils/ErrorHandler.d.ts.map +1 -1
  284. package/dist/utils/ErrorHandler.js +2 -265
  285. package/dist/utils/ErrorHandler.js.map +1 -1
  286. package/dist/utils/HttpClient.d.ts +1 -5
  287. package/dist/utils/HttpClient.d.ts.map +1 -1
  288. package/dist/utils/HttpClient.js +1 -29
  289. package/dist/utils/HttpClient.js.map +1 -1
  290. package/dist/utils/PDFExtractor.d.ts +2 -33
  291. package/dist/utils/PDFExtractor.d.ts.map +1 -1
  292. package/dist/utils/PDFExtractor.js +2 -129
  293. package/dist/utils/PDFExtractor.js.map +1 -1
  294. package/dist/utils/PdfDownload.d.ts +1 -6
  295. package/dist/utils/PdfDownload.d.ts.map +1 -1
  296. package/dist/utils/PdfDownload.js +1 -141
  297. package/dist/utils/PdfDownload.js.map +1 -1
  298. package/dist/utils/RateLimiter.d.ts +1 -49
  299. package/dist/utils/RateLimiter.d.ts.map +1 -1
  300. package/dist/utils/RateLimiter.js +1 -120
  301. package/dist/utils/RateLimiter.js.map +1 -1
  302. package/dist/utils/RequestCache.d.ts +2 -25
  303. package/dist/utils/RequestCache.d.ts.map +1 -1
  304. package/dist/utils/RequestCache.js +2 -65
  305. package/dist/utils/RequestCache.js.map +1 -1
  306. package/dist/utils/SecurityUtils.d.ts +2 -79
  307. package/dist/utils/SecurityUtils.d.ts.map +1 -1
  308. package/dist/utils/SecurityUtils.js +2 -356
  309. package/dist/utils/SecurityUtils.js.map +1 -1
  310. package/package.json +1 -1
  311. package/skills/paper-search/SKILL.md +4 -2
  312. package/skills/paper-search/references/capability-routing.md +15 -2
  313. package/skills/paper-search/references/cli-contract.md +19 -0
  314. package/skills/paper-search/references/management-layer.md +1 -0
@@ -1,258 +1,2 @@
1
- export const PLATFORM_METADATA = [
2
- {
3
- id: 'crossref',
4
- displayName: 'Crossref',
5
- sourceKind: 'official-api',
6
- defaultInAll: true,
7
- supportedOptions: ['maxResults', 'year', 'author', 'sortBy', 'sortOrder']
8
- },
9
- {
10
- id: 'openalex',
11
- displayName: 'OpenAlex',
12
- sourceKind: 'official-api',
13
- defaultInAll: true,
14
- supportedOptions: ['maxResults', 'year']
15
- },
16
- {
17
- id: 'pubmed',
18
- displayName: 'PubMed',
19
- sourceKind: 'official-api',
20
- defaultInAll: true,
21
- optionalConfigKeys: [['PUBMED_API_KEY'], ['NCBI_EMAIL'], ['NCBI_TOOL']],
22
- supportedOptions: ['maxResults', 'year', 'author', 'journal', 'sortBy']
23
- },
24
- {
25
- id: 'pmc',
26
- aliases: ['pubmed_central'],
27
- displayName: 'PubMed Central',
28
- sourceKind: 'official-api',
29
- defaultInAll: true,
30
- supportedOptions: ['maxResults', 'year']
31
- },
32
- {
33
- id: 'europepmc',
34
- aliases: ['europe_pmc'],
35
- displayName: 'Europe PMC',
36
- sourceKind: 'official-api',
37
- defaultInAll: true,
38
- supportedOptions: ['maxResults', 'year']
39
- },
40
- {
41
- id: 'arxiv',
42
- displayName: 'arXiv',
43
- sourceKind: 'official-api',
44
- defaultInAll: true,
45
- supportedOptions: ['maxResults', 'year', 'author', 'category', 'sortBy', 'sortOrder']
46
- },
47
- {
48
- id: 'biorxiv',
49
- displayName: 'bioRxiv',
50
- sourceKind: 'official-api',
51
- defaultInAll: true,
52
- supportedOptions: ['maxResults', 'days', 'category']
53
- },
54
- {
55
- id: 'medrxiv',
56
- displayName: 'medRxiv',
57
- sourceKind: 'official-api',
58
- defaultInAll: true,
59
- supportedOptions: ['maxResults', 'days', 'category']
60
- },
61
- {
62
- id: 'semantic',
63
- displayName: 'Semantic Scholar',
64
- sourceKind: 'official-api',
65
- defaultInAll: true,
66
- optionalConfigKeys: [['SEMANTIC_SCHOLAR_API_KEY']],
67
- supportedOptions: ['maxResults', 'year', 'fieldsOfStudy', 'sortBy']
68
- },
69
- {
70
- id: 'iacr',
71
- displayName: 'IACR ePrint',
72
- sourceKind: 'html',
73
- defaultInAll: true,
74
- supportedOptions: ['maxResults', 'fetchDetails']
75
- },
76
- {
77
- id: 'core',
78
- displayName: 'CORE',
79
- sourceKind: 'official-api',
80
- defaultInAll: true,
81
- optionalConfigKeys: [['CORE_API_KEY']],
82
- supportedOptions: ['maxResults', 'year']
83
- },
84
- {
85
- id: 'openaire',
86
- displayName: 'OpenAIRE',
87
- sourceKind: 'official-api',
88
- defaultInAll: true,
89
- optionalConfigKeys: [['OPENAIRE_API_KEY']],
90
- supportedOptions: ['maxResults', 'year']
91
- },
92
- {
93
- id: 'googlescholar',
94
- aliases: ['scholar', 'google_scholar'],
95
- displayName: 'Google Scholar',
96
- sourceKind: 'html',
97
- defaultInAll: true,
98
- supportedOptions: ['maxResults', 'year', 'author']
99
- },
100
- {
101
- id: 'webofscience',
102
- aliases: ['wos'],
103
- displayName: 'Web of Science',
104
- sourceKind: 'official-api',
105
- defaultInAll: true,
106
- configKeys: [['WOS_API_KEY']],
107
- optionalConfigKeys: [['WOS_API_VERSION']],
108
- supportedOptions: ['maxResults', 'year', 'author', 'journal', 'sortBy', 'sortOrder']
109
- },
110
- {
111
- id: 'sciencedirect',
112
- displayName: 'ScienceDirect',
113
- sourceKind: 'official-api',
114
- defaultInAll: true,
115
- configKeys: [['ELSEVIER_API_KEY']],
116
- supportedOptions: ['maxResults', 'year', 'author', 'journal', 'openAccess']
117
- },
118
- {
119
- id: 'springer',
120
- aliases: ['springerlink'],
121
- displayName: 'Springer Nature',
122
- sourceKind: 'official-api',
123
- defaultInAll: true,
124
- configKeys: [['SPRINGER_API_KEY']],
125
- optionalConfigKeys: [['SPRINGER_OPENACCESS_API_KEY']],
126
- supportedOptions: ['maxResults', 'year', 'author', 'journal', 'openAccess', 'subject', 'type']
127
- },
128
- {
129
- id: 'scopus',
130
- displayName: 'Scopus',
131
- sourceKind: 'official-api',
132
- defaultInAll: true,
133
- configKeys: [['ELSEVIER_API_KEY']],
134
- optionalConfigKeys: [['SCOPUS_SEARCH_API_KEY']],
135
- supportedOptions: ['maxResults', 'year', 'author', 'journal', 'affiliation', 'subject', 'openAccess', 'documentType']
136
- },
137
- {
138
- id: 'scihub',
139
- displayName: 'Sci-Hub',
140
- sourceKind: 'html',
141
- defaultInAll: true,
142
- supportedOptions: ['maxResults']
143
- },
144
- {
145
- id: 'unpaywall',
146
- displayName: 'Unpaywall',
147
- sourceKind: 'official-api',
148
- defaultInAll: true,
149
- configKeys: [['PAPER_SEARCH_UNPAYWALL_EMAIL', 'UNPAYWALL_EMAIL']],
150
- supportedOptions: ['maxResults']
151
- },
152
- {
153
- id: 'dblp',
154
- displayName: 'DBLP',
155
- sourceKind: 'official-api',
156
- defaultInAll: true,
157
- directTool: true,
158
- toolName: 'search_dblp',
159
- supportedOptions: ['maxResults', 'year', 'author', 'journal', 'sortBy', 'sortOrder'],
160
- description: 'Search DBLP computer-science bibliography using the official public search API'
161
- },
162
- {
163
- id: 'ieee',
164
- displayName: 'IEEE Xplore',
165
- sourceKind: 'official-api',
166
- defaultInAll: true,
167
- directTool: true,
168
- toolName: 'search_ieee',
169
- configKeys: [['IEEE_API_KEY']],
170
- supportedOptions: ['maxResults', 'year', 'author', 'journal', 'sortBy', 'sortOrder', 'articleTitle', 'startRecord'],
171
- description: 'Search IEEE Xplore metadata using the official API. Requires IEEE_API_KEY.'
172
- },
173
- {
174
- id: 'acm',
175
- displayName: 'ACM Digital Library',
176
- sourceKind: 'metadata-proxy',
177
- defaultInAll: true,
178
- directTool: true,
179
- toolName: 'search_acm',
180
- supportedOptions: ['maxResults', 'year', 'author', 'sortBy', 'sortOrder'],
181
- description: 'Search ACM metadata through Crossref/OpenAlex-style metadata, constrained to ACM DOI records'
182
- },
183
- {
184
- id: 'usenix',
185
- displayName: 'USENIX',
186
- sourceKind: 'metadata-proxy',
187
- defaultInAll: true,
188
- directTool: true,
189
- toolName: 'search_usenix',
190
- supportedOptions: ['maxResults', 'year', 'author', 'journal', 'sortBy', 'sortOrder'],
191
- description: 'Search USENIX-related paper metadata through DBLP-backed discovery'
192
- },
193
- {
194
- id: 'openreview',
195
- displayName: 'OpenReview',
196
- sourceKind: 'official-api',
197
- defaultInAll: true,
198
- directTool: true,
199
- toolName: 'search_openreview',
200
- supportedOptions: ['maxResults', 'year', 'author', 'journal', 'venue'],
201
- description: 'Search public OpenReview notes using OpenReview APIs'
202
- }
203
- ];
204
- export const SEARCH_PLATFORM_IDS = PLATFORM_METADATA.map(platform => platform.id);
205
- export const SEARCH_PLATFORM_VALUES = PLATFORM_METADATA.flatMap(platform => [
206
- platform.id,
207
- ...(platform.aliases || [])
208
- ]);
209
- export const DEFAULT_ALL_SOURCES = PLATFORM_METADATA
210
- .filter(platform => platform.defaultInAll)
211
- .map(platform => platform.id);
212
- const ALIAS_TO_CANONICAL = new Map();
213
- const METADATA_BY_ID = new Map();
214
- const GENERIC_TOOL_ALIASES = new Map([
215
- ['search_springerlink', 'springerlink']
216
- ]);
217
- for (const platform of PLATFORM_METADATA) {
218
- METADATA_BY_ID.set(platform.id, platform);
219
- for (const alias of platform.aliases || []) {
220
- ALIAS_TO_CANONICAL.set(alias, platform.id);
221
- }
222
- }
223
- export function resolvePlatformId(platform) {
224
- const normalized = platform.trim().toLowerCase();
225
- return ALIAS_TO_CANONICAL.get(normalized) || normalized;
226
- }
227
- export function isPlatformAlias(platform) {
228
- return ALIAS_TO_CANONICAL.has(platform.trim().toLowerCase());
229
- }
230
- export function isKnownSearchPlatform(platform) {
231
- const canonical = resolvePlatformId(platform);
232
- return METADATA_BY_ID.has(canonical);
233
- }
234
- export function getPlatformMetadata(platform) {
235
- return METADATA_BY_ID.get(resolvePlatformId(platform));
236
- }
237
- export function getDefaultAllSources() {
238
- return [...DEFAULT_ALL_SOURCES];
239
- }
240
- export function getAliasMap() {
241
- return Object.fromEntries(ALIAS_TO_CANONICAL.entries());
242
- }
243
- export function getGenericSearchToolPlatform(toolName) {
244
- const aliasPlatform = GENERIC_TOOL_ALIASES.get(toolName);
245
- if (aliasPlatform)
246
- return aliasPlatform;
247
- const platform = PLATFORM_METADATA.find(item => item.directTool && item.toolName === toolName);
248
- return platform?.id;
249
- }
250
- export function getGenericSearchToolNames() {
251
- return [
252
- ...PLATFORM_METADATA
253
- .filter(item => item.directTool && item.toolName)
254
- .map(item => item.toolName),
255
- ...GENERIC_TOOL_ALIASES.keys()
256
- ];
257
- }
1
+ export * from '../registry/platformMetadata.js';
258
2
  //# sourceMappingURL=platformMetadata.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"platformMetadata.js","sourceRoot":"","sources":["../../src/core/platformMetadata.ts"],"names":[],"mappings":"AAkBA,MAAM,CAAC,MAAM,iBAAiB,GAAuB;IACnD;QACE,EAAE,EAAE,UAAU;QACd,WAAW,EAAE,UAAU;QACvB,UAAU,EAAE,cAAc;QAC1B,YAAY,EAAE,IAA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AED,MAAM,UAAU,WAAW;IACzB,OAAO,MAAM,CAAC,WAAW,CAAC,kBAAkB,CAAC,OAAO,EAAE,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,QAAgB;IAC3D,MAAM,aAAa,GAAG,oBAAoB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACzD,IAAI,aAAa;QAAE,OAAO,aAAa,CAAC;IAExC,MAAM,QAAQ,GAAG,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC;IAC/F,OAAO,QAAQ,EAAE,EAAE,CAAC;AACtB,CAAC;AAED,MAAM,UAAU,yBAAyB;IACvC,OAAO;QACL,GAAG,iBAAiB;aACnB,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,QAAQ,CAAC;aAChD,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,QAAkB,CAAC;QACrC,GAAG,oBAAoB,CAAC,IAAI,EAAE;KAC/B,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"platformMetadata.js","sourceRoot":"","sources":["../../src/core/platformMetadata.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
@@ -1,75 +1,14 @@
1
1
  import { z } from 'zod';
2
- export declare const SearchPapersSchema: z.ZodEffects<z.ZodObject<{
3
- query: z.ZodString;
4
- platform: z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodLiteral<"all">]>>>;
5
- sources: z.ZodOptional<z.ZodString>;
6
- maxResults: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7
- year: z.ZodOptional<z.ZodString>;
8
- author: z.ZodOptional<z.ZodString>;
9
- journal: z.ZodOptional<z.ZodString>;
10
- category: z.ZodOptional<z.ZodString>;
11
- days: z.ZodOptional<z.ZodNumber>;
12
- fetchDetails: z.ZodOptional<z.ZodBoolean>;
13
- fieldsOfStudy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
14
- sortBy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["relevance", "date", "citations"]>>>;
15
- sortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>;
16
- }, "strip", z.ZodTypeAny, {
17
- maxResults: number;
18
- sortBy: "relevance" | "date" | "citations";
19
- sortOrder: "asc" | "desc";
20
- query: string;
21
- platform: string;
22
- journal?: string | undefined;
23
- year?: string | undefined;
24
- author?: string | undefined;
25
- category?: string | undefined;
26
- days?: number | undefined;
27
- fetchDetails?: boolean | undefined;
28
- fieldsOfStudy?: string[] | undefined;
29
- sources?: string | undefined;
30
- }, {
31
- query: string;
32
- journal?: string | undefined;
33
- year?: string | undefined;
34
- maxResults?: number | undefined;
35
- author?: string | undefined;
36
- category?: string | undefined;
37
- sortBy?: "relevance" | "date" | "citations" | undefined;
38
- sortOrder?: "asc" | "desc" | undefined;
39
- days?: number | undefined;
40
- fetchDetails?: boolean | undefined;
41
- fieldsOfStudy?: string[] | undefined;
42
- platform?: string | undefined;
43
- sources?: string | undefined;
44
- }>, {
45
- maxResults: number;
46
- sortBy: "relevance" | "date" | "citations";
47
- sortOrder: "asc" | "desc";
48
- query: string;
49
- platform: string;
50
- journal?: string | undefined;
51
- year?: string | undefined;
52
- author?: string | undefined;
53
- category?: string | undefined;
54
- days?: number | undefined;
55
- fetchDetails?: boolean | undefined;
56
- fieldsOfStudy?: string[] | undefined;
57
- sources?: string | undefined;
58
- }, {
59
- query: string;
60
- journal?: string | undefined;
61
- year?: string | undefined;
62
- maxResults?: number | undefined;
63
- author?: string | undefined;
64
- category?: string | undefined;
65
- sortBy?: "relevance" | "date" | "citations" | undefined;
66
- sortOrder?: "asc" | "desc" | undefined;
67
- days?: number | undefined;
68
- fetchDetails?: boolean | undefined;
69
- fieldsOfStudy?: string[] | undefined;
70
- platform?: string | undefined;
71
- sources?: string | undefined;
72
- }>;
2
+ import { SearchSemanticSnippetsSchema } from '../capabilities/body-snippet-search/schemas.js';
3
+ import { CitationLookupSchema } from '../capabilities/citation-expansion/schemas.js';
4
+ import { GetPaperByDoiSchema, SearchPapersSchema } from '../capabilities/metadata-search/schemas.js';
5
+ import { QueryJournalMetricsSchema } from '../capabilities/journal-metrics/schemas.js';
6
+ import { DownloadPaperSchema, DownloadWithFallbackSchema } from '../capabilities/pdf-discovery/schemas.js';
7
+ export { CitationLookupSchema };
8
+ export { DownloadPaperSchema, DownloadWithFallbackSchema };
9
+ export { GetPaperByDoiSchema, SearchPapersSchema };
10
+ export { QueryJournalMetricsSchema };
11
+ export { SearchSemanticSnippetsSchema };
73
12
  export declare const SearchArxivSchema: z.ZodObject<{
74
13
  query: z.ZodString;
75
14
  maxResults: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -193,40 +132,6 @@ export declare const SearchSemanticScholarSchema: z.ZodObject<{
193
132
  maxResults?: number | undefined;
194
133
  fieldsOfStudy?: string[] | undefined;
195
134
  }>;
196
- export declare const SearchSemanticSnippetsSchema: z.ZodObject<{
197
- query: z.ZodString;
198
- limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
199
- year: z.ZodOptional<z.ZodString>;
200
- fieldsOfStudy: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
201
- paperIds: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
202
- authors: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
203
- venue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
204
- minCitationCount: z.ZodOptional<z.ZodNumber>;
205
- publicationDateOrYear: z.ZodOptional<z.ZodString>;
206
- fields: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
207
- }, "strip", z.ZodTypeAny, {
208
- query: string;
209
- limit: number;
210
- authors?: string | string[] | undefined;
211
- year?: string | undefined;
212
- venue?: string | string[] | undefined;
213
- fieldsOfStudy?: string | string[] | undefined;
214
- fields?: string | string[] | undefined;
215
- paperIds?: string | string[] | undefined;
216
- minCitationCount?: number | undefined;
217
- publicationDateOrYear?: string | undefined;
218
- }, {
219
- query: string;
220
- authors?: string | string[] | undefined;
221
- year?: string | undefined;
222
- venue?: string | string[] | undefined;
223
- fieldsOfStudy?: string | string[] | undefined;
224
- limit?: number | undefined;
225
- fields?: string | string[] | undefined;
226
- paperIds?: string | string[] | undefined;
227
- minCitationCount?: number | undefined;
228
- publicationDateOrYear?: string | undefined;
229
- }>;
230
135
  export declare const SearchIACRSchema: z.ZodObject<{
231
136
  query: z.ZodString;
232
137
  maxResults: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -240,19 +145,6 @@ export declare const SearchIACRSchema: z.ZodObject<{
240
145
  maxResults?: number | undefined;
241
146
  fetchDetails?: boolean | undefined;
242
147
  }>;
243
- export declare const DownloadPaperSchema: z.ZodObject<{
244
- paperId: z.ZodString;
245
- platform: z.ZodEffects<z.ZodString, string, string>;
246
- savePath: z.ZodOptional<z.ZodString>;
247
- }, "strip", z.ZodTypeAny, {
248
- paperId: string;
249
- platform: string;
250
- savePath?: string | undefined;
251
- }, {
252
- paperId: string;
253
- platform: string;
254
- savePath?: string | undefined;
255
- }>;
256
148
  export declare const SearchGoogleScholarSchema: z.ZodObject<{
257
149
  query: z.ZodString;
258
150
  maxResults: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -272,16 +164,6 @@ export declare const SearchGoogleScholarSchema: z.ZodObject<{
272
164
  yearLow?: number | undefined;
273
165
  yearHigh?: number | undefined;
274
166
  }>;
275
- export declare const GetPaperByDoiSchema: z.ZodObject<{
276
- doi: z.ZodString;
277
- platform: z.ZodDefault<z.ZodOptional<z.ZodEnum<["arxiv", "webofscience", "pubmed", "crossref", "openalex", "unpaywall", "pmc", "europepmc", "core", "all"]>>>;
278
- }, "strip", z.ZodTypeAny, {
279
- doi: string;
280
- platform: "crossref" | "openalex" | "pubmed" | "pmc" | "europepmc" | "arxiv" | "core" | "webofscience" | "unpaywall" | "all";
281
- }, {
282
- doi: string;
283
- platform?: "crossref" | "openalex" | "pubmed" | "pmc" | "europepmc" | "arxiv" | "core" | "webofscience" | "unpaywall" | "all" | undefined;
284
- }>;
285
167
  export declare const SearchSciHubSchema: z.ZodObject<{
286
168
  doiOrUrl: z.ZodString;
287
169
  downloadPdf: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -503,28 +385,6 @@ export declare const GenericPlatformSearchSchema: z.ZodObject<{
503
385
  articleTitle?: string | undefined;
504
386
  startRecord?: number | undefined;
505
387
  }>;
506
- export declare const DownloadWithFallbackSchema: z.ZodObject<{
507
- source: z.ZodString;
508
- paperId: z.ZodString;
509
- doi: z.ZodDefault<z.ZodOptional<z.ZodString>>;
510
- title: z.ZodDefault<z.ZodOptional<z.ZodString>>;
511
- savePath: z.ZodOptional<z.ZodString>;
512
- useSciHub: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
513
- }, "strip", z.ZodTypeAny, {
514
- paperId: string;
515
- title: string;
516
- source: string;
517
- doi: string;
518
- useSciHub: boolean;
519
- savePath?: string | undefined;
520
- }, {
521
- paperId: string;
522
- source: string;
523
- title?: string | undefined;
524
- doi?: string | undefined;
525
- savePath?: string | undefined;
526
- useSciHub?: boolean | undefined;
527
- }>;
528
388
  export declare const GetPlatformStatusSchema: z.ZodObject<{
529
389
  validate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
530
390
  }, "strip", z.ZodTypeAny, {
@@ -532,32 +392,6 @@ export declare const GetPlatformStatusSchema: z.ZodObject<{
532
392
  }, {
533
393
  validate?: boolean | undefined;
534
394
  }>;
535
- export declare const QueryJournalMetricsSchema: z.ZodEffects<z.ZodObject<{
536
- journal: z.ZodOptional<z.ZodString>;
537
- journals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
538
- file: z.ZodOptional<z.ZodString>;
539
- includeRaw: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
540
- }, "strip", z.ZodTypeAny, {
541
- includeRaw: boolean;
542
- journal?: string | undefined;
543
- journals?: string | string[] | undefined;
544
- file?: string | undefined;
545
- }, {
546
- journal?: string | undefined;
547
- journals?: string | string[] | undefined;
548
- file?: string | undefined;
549
- includeRaw?: boolean | undefined;
550
- }>, {
551
- includeRaw: boolean;
552
- journal?: string | undefined;
553
- journals?: string | string[] | undefined;
554
- file?: string | undefined;
555
- }, {
556
- journal?: string | undefined;
557
- journals?: string | string[] | undefined;
558
- file?: string | undefined;
559
- includeRaw?: boolean | undefined;
560
- }>;
561
- export type ToolName = string | 'search_papers' | 'search_arxiv' | 'search_webofscience' | 'search_pubmed' | 'search_biorxiv' | 'search_medrxiv' | 'search_semantic_scholar' | 'search_semantic_snippets' | 'search_iacr' | 'download_paper' | 'search_google_scholar' | 'get_paper_by_doi' | 'search_scihub' | 'check_scihub_mirrors' | 'get_platform_status' | 'search_sciencedirect' | 'search_springer' | 'search_wiley' | 'search_scopus' | 'search_crossref' | 'search_openalex' | 'search_unpaywall' | 'search_pmc' | 'search_europepmc' | 'search_core' | 'search_openaire' | 'download_with_fallback' | 'query_journal_metrics';
395
+ export type ToolName = string | 'search_papers' | 'search_arxiv' | 'search_webofscience' | 'search_pubmed' | 'search_biorxiv' | 'search_medrxiv' | 'search_semantic_scholar' | 'search_semantic_snippets' | 'get_paper_citations' | 'get_paper_references' | 'search_iacr' | 'download_paper' | 'search_google_scholar' | 'get_paper_by_doi' | 'search_scihub' | 'check_scihub_mirrors' | 'get_platform_status' | 'search_sciencedirect' | 'search_springer' | 'search_wiley' | 'search_scopus' | 'search_crossref' | 'search_openalex' | 'search_unpaywall' | 'search_pmc' | 'search_europepmc' | 'search_core' | 'search_openaire' | 'download_with_fallback' | 'query_journal_metrics';
562
396
  export declare function parseToolArgs(toolName: ToolName, args: unknown): any;
563
397
  //# sourceMappingURL=schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/core/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmC3B,CAAC;AAEL,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;EAUpB,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;EAY3B,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;EAUrB,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;EAOtB,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;EAAsB,CAAC;AAEvD,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAO9B,CAAC;AAEX,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa/B,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAMnB,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAQtB,CAAC;AAEX,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;EAQ5B,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;;;;EAmBtB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAMrB,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;;;EAI3B,CAAC;AAEX,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;EAS5B,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWvB,C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