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.
- package/README.md +11 -9
- package/README.zh.md +11 -9
- package/dist/capabilities/body-snippet-search/handler.d.ts +9 -0
- package/dist/capabilities/body-snippet-search/handler.d.ts.map +1 -0
- package/dist/capabilities/body-snippet-search/handler.js +17 -0
- package/dist/capabilities/body-snippet-search/handler.js.map +1 -0
- package/dist/capabilities/body-snippet-search/index.d.ts +7 -0
- package/dist/capabilities/body-snippet-search/index.d.ts.map +1 -0
- package/dist/capabilities/body-snippet-search/index.js +6 -0
- package/dist/capabilities/body-snippet-search/index.js.map +1 -0
- package/dist/capabilities/body-snippet-search/schemas.d.ts +36 -0
- package/dist/capabilities/body-snippet-search/schemas.d.ts.map +1 -0
- package/dist/capabilities/body-snippet-search/schemas.js +16 -0
- package/dist/capabilities/body-snippet-search/schemas.js.map +1 -0
- package/dist/capabilities/body-snippet-search/service.d.ts +4 -0
- package/dist/capabilities/body-snippet-search/service.d.ts.map +1 -0
- package/dist/capabilities/body-snippet-search/service.js +4 -0
- package/dist/capabilities/body-snippet-search/service.js.map +1 -0
- package/dist/capabilities/body-snippet-search/tools.d.ts +187 -0
- package/dist/capabilities/body-snippet-search/tools.d.ts.map +1 -0
- package/dist/capabilities/body-snippet-search/tools.js +49 -0
- package/dist/capabilities/body-snippet-search/tools.js.map +1 -0
- package/dist/capabilities/body-snippet-search/types.d.ts +14 -0
- package/dist/capabilities/body-snippet-search/types.d.ts.map +1 -0
- package/dist/capabilities/body-snippet-search/types.js +2 -0
- package/dist/capabilities/body-snippet-search/types.js.map +1 -0
- package/dist/capabilities/citation-expansion/CitationService.d.ts +47 -0
- package/dist/capabilities/citation-expansion/CitationService.d.ts.map +1 -0
- package/dist/capabilities/citation-expansion/CitationService.js +243 -0
- package/dist/capabilities/citation-expansion/CitationService.js.map +1 -0
- package/dist/capabilities/citation-expansion/handler.d.ts +36 -0
- package/dist/capabilities/citation-expansion/handler.d.ts.map +1 -0
- package/dist/capabilities/citation-expansion/handler.js +44 -0
- package/dist/capabilities/citation-expansion/handler.js.map +1 -0
- package/dist/capabilities/citation-expansion/index.d.ts +6 -0
- package/dist/capabilities/citation-expansion/index.d.ts.map +1 -0
- package/dist/capabilities/citation-expansion/index.js +5 -0
- package/dist/capabilities/citation-expansion/index.js.map +1 -0
- package/dist/capabilities/citation-expansion/schemas.d.ts +28 -0
- package/dist/capabilities/citation-expansion/schemas.d.ts.map +1 -0
- package/dist/capabilities/citation-expansion/schemas.js +13 -0
- package/dist/capabilities/citation-expansion/schemas.js.map +1 -0
- package/dist/capabilities/citation-expansion/tools.d.ts +82 -0
- package/dist/capabilities/citation-expansion/tools.d.ts.map +1 -0
- package/dist/capabilities/citation-expansion/tools.js +48 -0
- package/dist/capabilities/citation-expansion/tools.js.map +1 -0
- package/dist/capabilities/citation-expansion/types.d.ts +22 -0
- package/dist/capabilities/citation-expansion/types.d.ts.map +1 -0
- package/dist/capabilities/citation-expansion/types.js +2 -0
- package/dist/capabilities/citation-expansion/types.js.map +1 -0
- package/dist/capabilities/journal-metrics/JournalMetricsService.d.ts +3 -0
- package/dist/capabilities/journal-metrics/JournalMetricsService.d.ts.map +1 -0
- package/dist/capabilities/journal-metrics/JournalMetricsService.js +142 -0
- package/dist/capabilities/journal-metrics/JournalMetricsService.js.map +1 -0
- package/dist/capabilities/journal-metrics/handler.d.ts +12 -0
- package/dist/capabilities/journal-metrics/handler.d.ts.map +1 -0
- package/dist/capabilities/journal-metrics/handler.js +38 -0
- package/dist/capabilities/journal-metrics/handler.js.map +1 -0
- package/dist/capabilities/journal-metrics/index.d.ts +6 -0
- package/dist/capabilities/journal-metrics/index.d.ts.map +1 -0
- package/dist/capabilities/journal-metrics/index.js +5 -0
- package/dist/capabilities/journal-metrics/index.js.map +1 -0
- package/dist/capabilities/journal-metrics/schemas.d.ts +28 -0
- package/dist/capabilities/journal-metrics/schemas.d.ts.map +1 -0
- package/dist/capabilities/journal-metrics/schemas.js +13 -0
- package/dist/capabilities/journal-metrics/schemas.js.map +1 -0
- package/dist/capabilities/journal-metrics/tools.d.ts +67 -0
- package/dist/capabilities/journal-metrics/tools.d.ts.map +1 -0
- package/dist/capabilities/journal-metrics/tools.js +27 -0
- package/dist/capabilities/journal-metrics/tools.js.map +1 -0
- package/dist/capabilities/journal-metrics/types.d.ts +36 -0
- package/dist/capabilities/journal-metrics/types.d.ts.map +1 -0
- package/dist/capabilities/journal-metrics/types.js +2 -0
- package/dist/capabilities/journal-metrics/types.js.map +1 -0
- package/dist/capabilities/metadata-search/MultiSourceSearchService.d.ts +9 -0
- package/dist/capabilities/metadata-search/MultiSourceSearchService.d.ts.map +1 -0
- package/dist/capabilities/metadata-search/MultiSourceSearchService.js +78 -0
- package/dist/capabilities/metadata-search/MultiSourceSearchService.js.map +1 -0
- package/dist/capabilities/metadata-search/handler.d.ts +23 -0
- package/dist/capabilities/metadata-search/handler.d.ts.map +1 -0
- package/dist/capabilities/metadata-search/handler.js +163 -0
- package/dist/capabilities/metadata-search/handler.js.map +1 -0
- package/dist/capabilities/metadata-search/index.d.ts +6 -0
- package/dist/capabilities/metadata-search/index.d.ts.map +1 -0
- package/dist/capabilities/metadata-search/index.js +5 -0
- package/dist/capabilities/metadata-search/index.js.map +1 -0
- package/dist/capabilities/metadata-search/schemas.d.ts +83 -0
- package/dist/capabilities/metadata-search/schemas.d.ts.map +1 -0
- package/dist/capabilities/metadata-search/schemas.js +81 -0
- package/dist/capabilities/metadata-search/schemas.js.map +1 -0
- package/dist/capabilities/metadata-search/tools.d.ts +178 -0
- package/dist/capabilities/metadata-search/tools.d.ts.map +1 -0
- package/dist/capabilities/metadata-search/tools.js +75 -0
- package/dist/capabilities/metadata-search/tools.js.map +1 -0
- package/dist/capabilities/metadata-search/types.d.ts +13 -0
- package/dist/capabilities/metadata-search/types.d.ts.map +1 -0
- package/dist/capabilities/metadata-search/types.js +2 -0
- package/dist/capabilities/metadata-search/types.js.map +1 -0
- package/dist/capabilities/pdf-discovery/DownloadTier.d.ts +22 -0
- package/dist/capabilities/pdf-discovery/DownloadTier.d.ts.map +1 -0
- package/dist/capabilities/pdf-discovery/DownloadTier.js +2 -0
- package/dist/capabilities/pdf-discovery/DownloadTier.js.map +1 -0
- package/dist/capabilities/pdf-discovery/OpenAccessFallbackService.d.ts +10 -0
- package/dist/capabilities/pdf-discovery/OpenAccessFallbackService.d.ts.map +1 -0
- package/dist/capabilities/pdf-discovery/OpenAccessFallbackService.js +53 -0
- package/dist/capabilities/pdf-discovery/OpenAccessFallbackService.js.map +1 -0
- package/dist/capabilities/pdf-discovery/handler.d.ts +19 -0
- package/dist/capabilities/pdf-discovery/handler.d.ts.map +1 -0
- package/dist/capabilities/pdf-discovery/handler.js +56 -0
- package/dist/capabilities/pdf-discovery/handler.js.map +1 -0
- package/dist/capabilities/pdf-discovery/index.d.ts +7 -0
- package/dist/capabilities/pdf-discovery/index.d.ts.map +1 -0
- package/dist/capabilities/pdf-discovery/index.js +5 -0
- package/dist/capabilities/pdf-discovery/index.js.map +1 -0
- package/dist/capabilities/pdf-discovery/schemas.d.ts +37 -0
- package/dist/capabilities/pdf-discovery/schemas.d.ts.map +1 -0
- package/dist/capabilities/pdf-discovery/schemas.js +22 -0
- package/dist/capabilities/pdf-discovery/schemas.js.map +1 -0
- package/dist/capabilities/pdf-discovery/tiers/directPdfUrl.d.ts +3 -0
- package/dist/capabilities/pdf-discovery/tiers/directPdfUrl.d.ts.map +1 -0
- package/dist/capabilities/pdf-discovery/tiers/directPdfUrl.js +27 -0
- package/dist/capabilities/pdf-discovery/tiers/directPdfUrl.js.map +1 -0
- package/dist/capabilities/pdf-discovery/tiers/primary.d.ts +3 -0
- package/dist/capabilities/pdf-discovery/tiers/primary.d.ts.map +1 -0
- package/dist/capabilities/pdf-discovery/tiers/primary.js +21 -0
- package/dist/capabilities/pdf-discovery/tiers/primary.js.map +1 -0
- package/dist/capabilities/pdf-discovery/tiers/repositories.d.ts +3 -0
- package/dist/capabilities/pdf-discovery/tiers/repositories.d.ts.map +1 -0
- package/dist/capabilities/pdf-discovery/tiers/repositories.js +35 -0
- package/dist/capabilities/pdf-discovery/tiers/repositories.js.map +1 -0
- package/dist/capabilities/pdf-discovery/tiers/scihub.d.ts +3 -0
- package/dist/capabilities/pdf-discovery/tiers/scihub.d.ts.map +1 -0
- package/dist/capabilities/pdf-discovery/tiers/scihub.js +21 -0
- package/dist/capabilities/pdf-discovery/tiers/scihub.js.map +1 -0
- package/dist/capabilities/pdf-discovery/tiers/unpaywall.d.ts +3 -0
- package/dist/capabilities/pdf-discovery/tiers/unpaywall.d.ts.map +1 -0
- package/dist/capabilities/pdf-discovery/tiers/unpaywall.js +29 -0
- package/dist/capabilities/pdf-discovery/tiers/unpaywall.js.map +1 -0
- package/dist/capabilities/pdf-discovery/tools.d.ts +114 -0
- package/dist/capabilities/pdf-discovery/tools.d.ts.map +1 -0
- package/dist/capabilities/pdf-discovery/tools.js +42 -0
- package/dist/capabilities/pdf-discovery/tools.js.map +1 -0
- package/dist/capabilities/pdf-discovery/types.d.ts +19 -0
- package/dist/capabilities/pdf-discovery/types.d.ts.map +1 -0
- package/dist/capabilities/pdf-discovery/types.js +2 -0
- package/dist/capabilities/pdf-discovery/types.js.map +1 -0
- package/dist/cli.js +10 -6
- package/dist/cli.js.map +1 -1
- package/dist/core/capabilityProfile.d.ts +1 -17
- package/dist/core/capabilityProfile.d.ts.map +1 -1
- package/dist/core/capabilityProfile.js +1 -152
- package/dist/core/capabilityProfile.js.map +1 -1
- package/dist/core/diagnostics.d.ts +1 -42
- package/dist/core/diagnostics.d.ts.map +1 -1
- package/dist/core/diagnostics.js +1 -585
- package/dist/core/diagnostics.js.map +1 -1
- package/dist/core/handleToolCall.d.ts +1 -0
- package/dist/core/handleToolCall.d.ts.map +1 -1
- package/dist/core/handleToolCall.js +265 -476
- package/dist/core/handleToolCall.js.map +1 -1
- package/dist/core/httpPolicies.d.ts +2 -0
- package/dist/core/httpPolicies.d.ts.map +1 -0
- package/dist/core/httpPolicies.js +2 -0
- package/dist/core/httpPolicies.js.map +1 -0
- package/dist/core/liveSmoke.d.ts +1 -41
- package/dist/core/liveSmoke.d.ts.map +1 -1
- package/dist/core/liveSmoke.js +1 -225
- package/dist/core/liveSmoke.js.map +1 -1
- package/dist/core/platformFactories.d.ts +2 -0
- package/dist/core/platformFactories.d.ts.map +1 -0
- package/dist/core/platformFactories.js +2 -0
- package/dist/core/platformFactories.js.map +1 -0
- package/dist/core/platformMetadata.d.ts +1 -27
- package/dist/core/platformMetadata.d.ts.map +1 -1
- package/dist/core/platformMetadata.js +1 -257
- package/dist/core/platformMetadata.js.map +1 -1
- package/dist/core/schemas.d.ts +11 -177
- package/dist/core/schemas.d.ts.map +1 -1
- package/dist/core/schemas.js +14 -107
- package/dist/core/schemas.js.map +1 -1
- package/dist/core/searchers.d.ts +24 -24
- package/dist/core/searchers.d.ts.map +1 -1
- package/dist/core/searchers.js +14 -79
- package/dist/core/searchers.js.map +1 -1
- package/dist/core/textReports.d.ts +1 -20
- package/dist/core/textReports.d.ts.map +1 -1
- package/dist/core/textReports.js +1 -84
- package/dist/core/textReports.js.map +1 -1
- package/dist/core/tools.d.ts.map +1 -1
- package/dist/core/tools.js +15 -183
- package/dist/core/tools.js.map +1 -1
- package/dist/infrastructure/cache/RequestCache.d.ts +26 -0
- package/dist/infrastructure/cache/RequestCache.d.ts.map +1 -0
- package/dist/infrastructure/cache/RequestCache.js +66 -0
- package/dist/infrastructure/cache/RequestCache.js.map +1 -0
- package/dist/infrastructure/http/ErrorHandler.d.ts +99 -0
- package/dist/infrastructure/http/ErrorHandler.d.ts.map +1 -0
- package/dist/infrastructure/http/ErrorHandler.js +266 -0
- package/dist/infrastructure/http/ErrorHandler.js.map +1 -0
- package/dist/infrastructure/http/HttpClient.d.ts +31 -0
- package/dist/infrastructure/http/HttpClient.d.ts.map +1 -0
- package/dist/infrastructure/http/HttpClient.js +50 -0
- package/dist/infrastructure/http/HttpClient.js.map +1 -0
- package/dist/infrastructure/pdf/PDFExtractor.d.ts +34 -0
- package/dist/infrastructure/pdf/PDFExtractor.d.ts.map +1 -0
- package/dist/infrastructure/pdf/PDFExtractor.js +130 -0
- package/dist/infrastructure/pdf/PDFExtractor.js.map +1 -0
- package/dist/infrastructure/pdf/PdfDownload.d.ts +7 -0
- package/dist/infrastructure/pdf/PdfDownload.d.ts.map +1 -0
- package/dist/infrastructure/pdf/PdfDownload.js +175 -0
- package/dist/infrastructure/pdf/PdfDownload.js.map +1 -0
- package/dist/infrastructure/rate-limit/RateLimiter.d.ts +50 -0
- package/dist/infrastructure/rate-limit/RateLimiter.d.ts.map +1 -0
- package/dist/infrastructure/rate-limit/RateLimiter.js +128 -0
- package/dist/infrastructure/rate-limit/RateLimiter.js.map +1 -0
- package/dist/infrastructure/security/SecurityUtils.d.ts +80 -0
- package/dist/infrastructure/security/SecurityUtils.d.ts.map +1 -0
- package/dist/infrastructure/security/SecurityUtils.js +357 -0
- package/dist/infrastructure/security/SecurityUtils.js.map +1 -0
- package/dist/management/capability-profile/index.d.ts +18 -0
- package/dist/management/capability-profile/index.d.ts.map +1 -0
- package/dist/management/capability-profile/index.js +167 -0
- package/dist/management/capability-profile/index.js.map +1 -0
- package/dist/management/config/index.d.ts +2 -0
- package/dist/management/config/index.d.ts.map +1 -0
- package/dist/management/config/index.js +2 -0
- package/dist/management/config/index.js.map +1 -0
- package/dist/management/diagnostics/index.d.ts +43 -0
- package/dist/management/diagnostics/index.d.ts.map +1 -0
- package/dist/management/diagnostics/index.js +586 -0
- package/dist/management/diagnostics/index.js.map +1 -0
- package/dist/management/reports/index.d.ts +21 -0
- package/dist/management/reports/index.d.ts.map +1 -0
- package/dist/management/reports/index.js +85 -0
- package/dist/management/reports/index.js.map +1 -0
- package/dist/management/skills/index.d.ts +2 -0
- package/dist/management/skills/index.d.ts.map +1 -0
- package/dist/management/skills/index.js +2 -0
- package/dist/management/skills/index.js.map +1 -0
- package/dist/management/smoke/index.d.ts +42 -0
- package/dist/management/smoke/index.d.ts.map +1 -0
- package/dist/management/smoke/index.js +226 -0
- package/dist/management/smoke/index.js.map +1 -0
- package/dist/platforms/BioRxivSearcher.d.ts.map +1 -1
- package/dist/platforms/BioRxivSearcher.js +40 -21
- package/dist/platforms/BioRxivSearcher.js.map +1 -1
- package/dist/platforms/GoogleScholarSearcher.d.ts.map +1 -1
- package/dist/platforms/GoogleScholarSearcher.js +3 -2
- package/dist/platforms/GoogleScholarSearcher.js.map +1 -1
- package/dist/registry/aliases.d.ts +2 -0
- package/dist/registry/aliases.d.ts.map +1 -0
- package/dist/registry/aliases.js +2 -0
- package/dist/registry/aliases.js.map +1 -0
- package/dist/registry/httpPolicies.d.ts +3 -0
- package/dist/registry/httpPolicies.d.ts.map +1 -0
- package/dist/registry/httpPolicies.js +17 -0
- package/dist/registry/httpPolicies.js.map +1 -0
- package/dist/registry/platformFactories.d.ts +8 -0
- package/dist/registry/platformFactories.d.ts.map +1 -0
- package/dist/registry/platformFactories.js +55 -0
- package/dist/registry/platformFactories.js.map +1 -0
- package/dist/registry/platformMetadata.d.ts +39 -0
- package/dist/registry/platformMetadata.d.ts.map +1 -0
- package/dist/registry/platformMetadata.js +321 -0
- package/dist/registry/platformMetadata.js.map +1 -0
- package/dist/services/CitationService.d.ts +2 -65
- package/dist/services/CitationService.d.ts.map +1 -1
- package/dist/services/CitationService.js +1 -236
- package/dist/services/CitationService.js.map +1 -1
- package/dist/services/JournalMetricsService.d.ts +2 -37
- package/dist/services/JournalMetricsService.d.ts.map +1 -1
- package/dist/services/JournalMetricsService.js +1 -141
- package/dist/services/JournalMetricsService.js.map +1 -1
- package/dist/services/MultiSourceSearchService.d.ts +2 -18
- package/dist/services/MultiSourceSearchService.d.ts.map +1 -1
- package/dist/services/MultiSourceSearchService.js +1 -77
- package/dist/services/MultiSourceSearchService.js.map +1 -1
- package/dist/services/OpenAccessFallbackService.d.ts +3 -20
- package/dist/services/OpenAccessFallbackService.d.ts.map +1 -1
- package/dist/services/OpenAccessFallbackService.js +1 -123
- package/dist/services/OpenAccessFallbackService.js.map +1 -1
- package/dist/utils/ErrorHandler.d.ts +2 -98
- package/dist/utils/ErrorHandler.d.ts.map +1 -1
- package/dist/utils/ErrorHandler.js +2 -265
- package/dist/utils/ErrorHandler.js.map +1 -1
- package/dist/utils/HttpClient.d.ts +1 -5
- package/dist/utils/HttpClient.d.ts.map +1 -1
- package/dist/utils/HttpClient.js +1 -29
- package/dist/utils/HttpClient.js.map +1 -1
- package/dist/utils/PDFExtractor.d.ts +2 -33
- package/dist/utils/PDFExtractor.d.ts.map +1 -1
- package/dist/utils/PDFExtractor.js +2 -129
- package/dist/utils/PDFExtractor.js.map +1 -1
- package/dist/utils/PdfDownload.d.ts +1 -6
- package/dist/utils/PdfDownload.d.ts.map +1 -1
- package/dist/utils/PdfDownload.js +1 -141
- package/dist/utils/PdfDownload.js.map +1 -1
- package/dist/utils/RateLimiter.d.ts +1 -49
- package/dist/utils/RateLimiter.d.ts.map +1 -1
- package/dist/utils/RateLimiter.js +1 -120
- package/dist/utils/RateLimiter.js.map +1 -1
- package/dist/utils/RequestCache.d.ts +2 -25
- package/dist/utils/RequestCache.d.ts.map +1 -1
- package/dist/utils/RequestCache.js +2 -65
- package/dist/utils/RequestCache.js.map +1 -1
- package/dist/utils/SecurityUtils.d.ts +2 -79
- package/dist/utils/SecurityUtils.d.ts.map +1 -1
- package/dist/utils/SecurityUtils.js +2 -356
- package/dist/utils/SecurityUtils.js.map +1 -1
- package/package.json +1 -1
- package/skills/paper-search/SKILL.md +4 -2
- package/skills/paper-search/references/capability-routing.md +15 -2
- package/skills/paper-search/references/cli-contract.md +19 -0
- package/skills/paper-search/references/management-layer.md +1 -0
|
@@ -1,258 +1,2 @@
|
|
|
1
|
-
export
|
|
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":"
|
|
1
|
+
{"version":3,"file":"platformMetadata.js","sourceRoot":"","sources":["../../src/core/platformMetadata.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
|
package/dist/core/schemas.d.ts
CHANGED
|
@@ -1,75 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
|
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;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/core/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AAC9F,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AACrF,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AACrG,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAE3G,OAAO,EAAE,oBAAoB,EAAE,CAAC;AAChC,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,CAAC;AACnD,OAAO,EAAE,yBAAyB,EAAE,CAAC;AACrC,OAAO,EAAE,4BAA4B,EAAE,CAAC;AAKxC,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,gBAAgB;;;;;;;;;;;;EAMnB,CAAC;AAEX,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;EAQ5B,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAMrB,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;;;EAI3B,CAAC;AAEX,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;EAS5B,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWvB,CAAC;AAEX,eAAO,MAAM,iBAAiB;;;;;;EAIpB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYrB,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;EASvB,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAMvB,CAAC;AAEX,eAAO,MAAM,qBAAqB;;;;;;;;;EAKxB,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAMvB,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;EASzB,CAAC;AAEL,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa9B,CAAC;AAEX,eAAO,MAAM,uBAAuB;;;;;;EAI1B,CAAC;AAEX,MAAM,MAAM,QAAQ,GAChB,MAAM,GACN,eAAe,GACf,cAAc,GACd,qBAAqB,GACrB,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,yBAAyB,GACzB,0BAA0B,GAC1B,qBAAqB,GACrB,sBAAsB,GACtB,aAAa,GACb,gBAAgB,GAChB,uBAAuB,GACvB,kBAAkB,GAClB,eAAe,GACf,sBAAsB,GACtB,qBAAqB,GACrB,sBAAsB,GACtB,iBAAiB,GACjB,cAAc,GACd,eAAe,GACf,iBAAiB,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,YAAY,GACZ,kBAAkB,GAClB,aAAa,GACb,iBAAiB,GACjB,wBAAwB,GACxB,uBAAuB,CAAC;AAE5B,wBAAgB,aAAa,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,GAAG,GAAG,CAkEpE"}
|