managarten/packages/matrix-bot-common/src/index.ts
Till-JS cfaf9f2f6e fix(matrix-bot-common): use explicit ESM imports for Node.js v25 compatibility
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 03:34:07 +01:00

64 lines
1.4 KiB
TypeScript

/**
* @manacore/matrix-bot-common
*
* Shared utilities and base classes for Matrix bots.
* Reduces code duplication across 19 Matrix bots.
*
* @example
* ```typescript
* import {
* BaseMatrixService,
* HealthController,
* MatrixMessageService,
* KeywordCommandDetector,
* markdownToHtml,
* SessionHelper,
* UserListMapper,
* } from '@manacore/matrix-bot-common';
* ```
*/
// Base Matrix Service
export {
BaseMatrixService,
type IConfigService,
type MatrixBotConfig,
type MatrixRoomEvent,
type MatrixMessageEvent,
isTextMessage,
isAudioMessage,
isImageMessage,
isFileMessage,
} from './base/index.js';
// Health Controller
export {
HealthController,
HEALTH_SERVICE_NAME,
createHealthProvider,
type HealthResponse,
} from './health/index.js';
// Message Service
export {
MatrixMessageService,
type MatrixMessageContent,
type SendMessageOptions,
} from './message/index.js';
// Markdown Utilities
export { markdownToHtml, escapeHtml, formatNumberedList, formatBulletList } from './markdown/index.js';
// Keyword Detection
export {
KeywordCommandDetector,
COMMON_KEYWORDS,
type KeywordCommand,
type KeywordDetectorOptions,
} from './keywords/index.js';
// Session Helper
export { SessionHelper, createSessionHelper } from './session/index.js';
// List Mapper
export { UserListMapper, UserIdListMapper } from './list-mapper/index.js';