96a752ecf7
- Restructured server layer with 5 domains: shared, screener, portfolio, calls, finance - Migrated 58 TypeScript files to domain-driven structure - Updated CLAUDE.md with new architecture documentation - Added .gitignore rules for .md files (except CLAUDE.md) - Removed unused CatalystAnalyst import from app.ts - Fixed lint errors: removed unused imports, fixed regex escape, added console suppressions - Verified no sensitive data in git history - Server code compiles cleanly with TypeScript strict mode
48 lines
1.5 KiB
TypeScript
48 lines
1.5 KiB
TypeScript
// Shared domain — re-exports all shared infrastructure
|
|
// Import from here, not from individual subdirectories
|
|
|
|
// Entities
|
|
export { Asset } from './entities/Asset';
|
|
export { Stock } from './entities/Stock';
|
|
export { Etf } from './entities/Etf';
|
|
export { Bond } from './entities/Bond';
|
|
|
|
// Adapters (external API clients)
|
|
export { YahooFinanceClient } from './adapters/YahooFinanceClient';
|
|
export { AnthropicClient } from './adapters/AnthropicClient';
|
|
export { SimpleFINClient } from './adapters/SimpleFINClient';
|
|
|
|
// Services
|
|
export { BenchmarkProvider } from './services/BenchmarkProvider';
|
|
export { CatalystAnalyst } from './services/CatalystAnalyst';
|
|
export { CatalystCache } from './services/CatalystCache';
|
|
export { LLMAnalyst } from './services/LLMAnalyst';
|
|
|
|
// Scoring
|
|
export { CREDIT_RATING_SCALE } from './scoring/ScoringConfig';
|
|
export { MarketRegime } from './scoring/MarketRegime';
|
|
|
|
// Persistence (repositories)
|
|
export { MarketCallRepository } from './persistence/MarketCallRepository';
|
|
export { PortfolioRepository } from './persistence/PortfolioRepository';
|
|
export { DatabaseConnection, QueryAudit, createDb } from './db/index';
|
|
|
|
// Config & Constants
|
|
export {
|
|
SIGNAL,
|
|
SIGNAL_ORDER,
|
|
SCORE_MODE,
|
|
ASSET_TYPE,
|
|
REGIME,
|
|
CAP_CATEGORY,
|
|
GROWTH_CATEGORY,
|
|
SECTOR,
|
|
} from './config/constants';
|
|
|
|
// Types — re-export everything from types barrel
|
|
export type * from './types/index';
|
|
|
|
// Utils
|
|
export { noopLogger } from './utils/logger';
|
|
export { chunkArray } from './utils/Chunker';
|