UNPKG

aiwg

Version:

Deployment tool and support utility for AI context. Copies agents, skills, commands, rules, and behaviors into the paths each AI platform reads (Claude Code, Codex, Copilot, Cursor, Warp, OpenClaw, and 6 more) so one source of truth works across 10 platfo

85 lines 2.09 kB
/** * Citation service for formatting and validating citations * * @module research/services/citation */ import { ResearchPaper } from '../types.js'; import { CitationStyle, CitationNetwork } from './types.js'; /** * Configuration for citation service */ export interface CitationConfig { /** Corpus directory for validation */ corpusPath?: string; /** Claims index path */ claimsIndexPath?: string; } /** * Citation service for managing citations and networks */ export declare class CitationService { private corpusPath; private claimsIndexPath; constructor(config?: CitationConfig); /** * Format citation in specified style */ formatCitation(paper: ResearchPaper, style?: CitationStyle): string; /** * Validate that a citation exists in corpus */ validateCitation(refId: string, corpusPath?: string): Promise<boolean>; /** * Build citation network from papers */ buildNetwork(papers: ResearchPaper[]): CitationNetwork; /** * Update claims index with new claim */ updateClaimsIndex(claim: string, sources: string[]): Promise<void>; /** * Format citation in APA style */ private formatAPA; /** * Format citation in BibTeX style */ private formatBibTeX; /** * Format citation in Chicago style */ private formatChicago; /** * Format citation in MLA style */ private formatMLA; /** * Format citation in IEEE style */ private formatIEEE; /** * Format authors in APA style */ private formatAuthorsAPA; /** * Format authors in Chicago style */ private formatAuthorsChicago; /** * Format authors in MLA style */ private formatAuthorsMLA; /** * Format authors in IEEE style */ private formatAuthorsIEEE; /** * Reverse author name (First Last -> Last, First) */ private reverseAuthorName; /** * Generate BibTeX citation ID */ private generateBibTeXId; } //# sourceMappingURL=citation.d.ts.map