mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 04:21:09 +02:00
New package with shared utilities for Matrix bots: **Components:** - `BaseMatrixService` - Abstract base class with client lifecycle - `HealthController` - Standardized health endpoint - `MatrixMessageService` - Message/reply/reaction helpers - `markdownToHtml` - Markdown to HTML conversion - `KeywordCommandDetector` - Natural language command detection - `SessionHelper<T>` - Type-safe session data wrapper - `UserListMapper<T>` - Number-based reference system **Estimated Impact:** - ~4,000 lines of duplicate code can be eliminated - 19 Matrix bots can use these shared utilities - Consistent behavior across all bots Documentation in packages/matrix-bot-common/CLAUDE.md Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
38 lines
1,011 B
JSON
38 lines
1,011 B
JSON
{
|
|
"name": "@manacore/matrix-bot-common",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "Shared utilities and base classes for Matrix bots",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./base": "./src/base/index.ts",
|
|
"./health": "./src/health/index.ts",
|
|
"./message": "./src/message/index.ts",
|
|
"./markdown": "./src/markdown/index.ts",
|
|
"./keywords": "./src/keywords/index.ts",
|
|
"./session": "./src/session/index.ts",
|
|
"./list-mapper": "./src/list-mapper/index.ts"
|
|
},
|
|
"scripts": {
|
|
"type-check": "tsc --noEmit",
|
|
"clean": "rm -rf dist",
|
|
"lint": "eslint ."
|
|
},
|
|
"dependencies": {
|
|
"@manacore/bot-services": "workspace:*",
|
|
"@nestjs/common": "^11.0.20",
|
|
"@nestjs/config": "^4.0.2",
|
|
"matrix-bot-sdk": "^0.7.1"
|
|
},
|
|
"peerDependencies": {
|
|
"@nestjs/common": "^10.0.0 || ^11.0.0",
|
|
"@nestjs/config": "^3.0.0 || ^4.0.0",
|
|
"matrix-bot-sdk": "^0.7.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^24.10.1",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
}
|