@longtable/cli 0.1.59 → 0.1.60

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.
@@ -1,181 +0,0 @@
1
- export declare const SEARCH_SOURCES: readonly ["crossref", "arxiv", "openalex", "semantic_scholar", "pubmed", "eric", "doaj", "unpaywall"];
2
- export type SearchSource = typeof SEARCH_SOURCES[number];
3
- export declare const PUBLISHERS: readonly ["elsevier", "springer_nature", "wiley", "taylor_francis"];
4
- export type Publisher = typeof PUBLISHERS[number];
5
- export type PublisherProbeTarget = Publisher | "auto";
6
- export type ResearchSearchIntentKind = "literature" | "theory" | "measurement" | "citation" | "metadata" | "venue";
7
- export type EvidenceDepth = "metadata_only" | "abstract_only" | "legal_full_text_available" | "legal_full_text_unavailable" | "secondary_summary_only";
8
- export type AccessStatus = "metadata_only" | "abstract_available" | "legal_full_text_available" | "licensed_full_text_available" | "licensed_full_text_checked" | "access_denied" | "license_unknown";
9
- export type VerificationDepth = "metadata" | "abstract" | "legal_full_text" | "licensed_snippet" | "secondary";
10
- export type EntitlementSource = "crossref_tdm" | "publisher_api" | "institutional_token" | "user_api_key" | "none";
11
- export type CollectionDepth = "metadata" | "abstract" | "licensed_snippet" | "licensed_full_text_local_only";
12
- export type CredentialStatus = "missing" | "present" | "valid" | "invalid";
13
- export type EntitlementStatus = "unknown" | "no_access" | "metadata_only" | "abstract_available" | "licensed_full_text_available";
14
- export type TdmStatus = "unknown" | "not_configured" | "permitted" | "denied" | "requires_license_review";
15
- export type CitationSupportStatus = "direct_support" | "indirect_support" | "background" | "questionable_fit" | "not_verified";
16
- export type SourceRunStatus = "completed" | "skipped" | "failed";
17
- export type EvidenceRunStatus = "completed" | "partial" | "blocked";
18
- export interface ResearchSearchIntent {
19
- id: string;
20
- createdAt: string;
21
- kind: ResearchSearchIntentKind;
22
- query: string;
23
- normalizedQuery: string;
24
- queryVariants: string[];
25
- keywords: string[];
26
- field?: string;
27
- mustTerms: string[];
28
- excludeTerms: string[];
29
- requestedSources: SearchSource[];
30
- limit: number;
31
- source: "cli" | "runtime" | "test";
32
- }
33
- export interface EvidenceCard {
34
- id: string;
35
- title: string;
36
- authors: string[];
37
- year?: number;
38
- venue?: string;
39
- doi?: string;
40
- pmid?: string;
41
- arxivId?: string;
42
- openAlexId?: string;
43
- semanticScholarId?: string;
44
- ericId?: string;
45
- url?: string;
46
- sourceRoute: SearchSource;
47
- sourceRoutes: SearchSource[];
48
- sourceRecordId?: string;
49
- abstract?: string;
50
- abstractAvailable: boolean;
51
- evidenceDepth: EvidenceDepth;
52
- accessStatus: AccessStatus;
53
- verificationDepth: VerificationDepth;
54
- verificationNote: string;
55
- legalFullTextAvailable: boolean;
56
- fullTextUrl?: string;
57
- publisher?: Publisher | "other";
58
- entitlementSource?: EntitlementSource;
59
- collectionDepth?: CollectionDepth;
60
- licenseNote?: string;
61
- publisherAccess?: PublisherAccessRecord;
62
- citationCount?: number;
63
- researchDesign?: string;
64
- constructsOrMeasures?: string[];
65
- mainFinding?: string;
66
- relevanceToProject?: string;
67
- citationSupportStatus: CitationSupportStatus;
68
- limitations: string[];
69
- matchedKeywords: string[];
70
- relevanceScore: number;
71
- }
72
- export interface SearchSourceCapability {
73
- source: SearchSource;
74
- enabled: boolean;
75
- requiredEnv: string[];
76
- missingEnv: string[];
77
- reason?: string;
78
- setupHint?: string;
79
- }
80
- export interface SourceReport {
81
- source: SearchSource;
82
- status: SourceRunStatus;
83
- count: number;
84
- elapsedMs: number;
85
- reason?: string;
86
- endpoint?: string;
87
- }
88
- export interface EvidenceRun {
89
- id: string;
90
- createdAt: string;
91
- updatedAt: string;
92
- status: EvidenceRunStatus;
93
- intent: ResearchSearchIntent;
94
- sourceReports: SourceReport[];
95
- cards: EvidenceCard[];
96
- skippedSources: SearchSourceCapability[];
97
- warnings: string[];
98
- blockedReason?: string;
99
- }
100
- export interface BuildSearchIntentInput {
101
- query?: string;
102
- prompt?: string;
103
- projectGoal?: string;
104
- projectBlocker?: string;
105
- intent?: string;
106
- field?: string;
107
- must?: string;
108
- exclude?: string;
109
- sources?: string;
110
- limit?: number;
111
- source?: ResearchSearchIntent["source"];
112
- }
113
- export interface HttpResponseLike {
114
- ok: boolean;
115
- status: number;
116
- statusText: string;
117
- text(): Promise<string>;
118
- json(): Promise<unknown>;
119
- }
120
- export type SearchFetch = (url: string, init?: {
121
- headers?: Record<string, string>;
122
- }) => Promise<HttpResponseLike>;
123
- export interface SourceSearchContext {
124
- fetch: SearchFetch;
125
- env: Record<string, string | undefined>;
126
- }
127
- export interface SourceSearchRequest {
128
- intent: ResearchSearchIntent;
129
- source: SearchSource;
130
- limit: number;
131
- }
132
- export interface SourceSearchResult {
133
- source: SearchSource;
134
- endpoint: string;
135
- cards: EvidenceCard[];
136
- }
137
- export interface RunResearchSearchInput extends BuildSearchIntentInput {
138
- env?: Record<string, string | undefined>;
139
- fetch?: SearchFetch;
140
- allowPartial?: boolean;
141
- publisherAccess?: boolean;
142
- }
143
- export interface CrossrefTdmLink {
144
- url: string;
145
- contentType?: string;
146
- contentVersion?: string;
147
- intendedApplication?: string;
148
- }
149
- export interface CrossrefTdmDiscovery {
150
- doi: string;
151
- publisher?: string;
152
- inferredPublisher?: Publisher | "other";
153
- title?: string;
154
- sourceUrl?: string;
155
- licenseUrls: string[];
156
- links: CrossrefTdmLink[];
157
- }
158
- export interface PublisherAccessRecord {
159
- publisher: Publisher | "other";
160
- checkedAt: string;
161
- credentialStatus: CredentialStatus;
162
- entitlementStatus: EntitlementStatus;
163
- tdmStatus: TdmStatus;
164
- collectionDepth: CollectionDepth;
165
- requiredEnv: string[];
166
- presentEnv: string[];
167
- missingEnv: string[];
168
- testedDoi?: string;
169
- endpoint?: string;
170
- setupHint: string;
171
- licenseNote?: string;
172
- verificationNote: string;
173
- evidenceSnippet?: string;
174
- crossref?: CrossrefTdmDiscovery;
175
- }
176
- export interface PublisherProbeInput {
177
- doi: string;
178
- publisher?: PublisherProbeTarget;
179
- env?: Record<string, string | undefined>;
180
- fetch?: SearchFetch;
181
- }
@@ -1,16 +0,0 @@
1
- export const SEARCH_SOURCES = [
2
- "crossref",
3
- "arxiv",
4
- "openalex",
5
- "semantic_scholar",
6
- "pubmed",
7
- "eric",
8
- "doaj",
9
- "unpaywall"
10
- ];
11
- export const PUBLISHERS = [
12
- "elsevier",
13
- "springer_nature",
14
- "wiley",
15
- "taylor_francis"
16
- ];