BID · Console
Baseline · Intelligence · Decision
src/tools/retrieval/connectors/index.ts 3,381 bytes · typescript
/**
 * Connector re-exports.
 *
 * The dispatcher itself does not auto-register anything here — per the
 * scope rule in `README.md`, the application bootstrap calls
 * `registerConnector(new SecEdgarConnector())` so deployers explicitly
 * opt in. The four-function SEC surface (secEdgarCompanies,
 * secFinancials, secSubmissions, secFilingDocument) plus Anthropic
 * tool descriptors (SEC_TOOLS, executeSecTool) are also re-exported
 * here for agents that wire SEC retrieval directly as LLM tools.
 */

export {
  SecEdgarConnector,
  SEC_TOOLS,
  executeSecTool,
  secEdgarCompanies,
  secFinancials,
  secSubmissions,
  secFilingDocument,
} from './sec-edgar.js';
export type {
  SecToolDescriptor,
  SecToolResult,
  SecCompanyMatch,
  SecCompanyFacts,
  SecFilingHit,
  SecSubmissions,
  SecFilingDocument,
} from './sec-edgar.js';

/* Unstructured filing-retrieval surface — 10-K / 10-Q index, section
 * splitter, and EDGAR full-text search. Pure retrieval, no LLM. */
export {
  SEC_FILING_TOOLS,
  executeSecFilingTool,
  secFilingIndex,
  secFilingSections,
  secFullTextSearch,
} from './sec-edgar-filings.js';
export type {
  SecFilingToolDescriptor,
  SecFilingToolResult,
  SecFilingFile,
  SecFilingIndex,
  SecFilingSection,
  SecFilingSections,
  SecSearchHit,
  SecSearchResult,
} from './sec-edgar-filings.js';

/* XBRL extensions — single-concept time series and cross-company
 * snapshots (frames). Pure retrieval. */
export {
  SEC_XBRL_TOOLS,
  executeSecXbrlTool,
  secCompanyConcept,
  secXbrlFrames,
} from './sec-edgar-xbrl.js';
export type {
  SecXbrlToolDescriptor,
  SecXbrlToolResult,
  SecConceptRow,
  SecCompanyConcept,
  SecFrameRow,
  SecXbrlFrames,
} from './sec-edgar-xbrl.js';

/* Insider / ownership forms — Form 4 list and XML parsing. Pure
 * retrieval + deterministic regex parser, no LLM. */
export {
  SEC_INSIDER_TOOLS,
  executeSecInsiderTool,
  secInsiderForm4,
} from './sec-edgar-insider.js';
export type {
  SecInsiderToolDescriptor,
  SecInsiderToolResult,
  SecForm4Transaction,
  SecForm4Filing,
  SecInsiderForm4Result,
  SecInsiderForm4Options,
} from './sec-edgar-insider.js';

/* ----------------------------------------------------------------
 * Public free-data connector library.
 *
 * Each module below exposes a `RetrievalConnector` class for the
 * dispatcher plus standalone fetch helpers. Bootstrap registers the
 * ones it needs via registerConnector(new XxxConnector()).
 * ---------------------------------------------------------------- */

export { SecFinancialsConnector } from './sec-financials.js';

export { SecSubmissionsConnector, fetchSecSubmissions } from './sec-submissions.js';

export { SecFilingDocumentConnector, fetchSecFilingDocument } from './sec-filing-document.js';

export {
  FinraBrokerCheckConnector,
  fetchBrokerCheck,
} from './finra-brokercheck.js';
export type {
  FinraBrokerCheckHit,
  FinraBrokerCheckResult,
} from './finra-brokercheck.js';

export { IapdConnector, fetchIapd } from './iapd.js';
export type { IapdHit, IapdResult } from './iapd.js';

export { FredConnector, fetchFredObservations } from './fred.js';
export type {
  FredConfig,
  FredObservation,
  FredSeriesResult,
  FredFetchOptions,
} from './fred.js';

export { IrsBmfConnector, fetchIrsBmf } from './irs-bmf.js';
export type { IrsBmfRow, IrsBmfResult, IrsBmfFetchOptions } from './irs-bmf.js';