mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 15:19:40 +02:00
Created shared services to eliminate code duplication across Matrix bots: **New Services in @manacore/bot-services:** - SessionService: User authentication via mana-core-auth (was duplicated in 11 bots) - TranscriptionService: Speech-to-text via mana-stt (was duplicated in 6 bots) **Migrated Bots:** - matrix-todo-bot: uses TranscriptionService - matrix-picture-bot: uses SessionService - matrix-clock-bot: uses TranscriptionService - matrix-zitare-bot: uses both SessionService & TranscriptionService **Code Reduction:** - Removed ~300 lines of duplicate code from migrated bots - Centralized service configuration via NestJS modules - Added comprehensive documentation in CLAUDE.md Remaining bots can be migrated following the same pattern documented in packages/bot-services/CLAUDE.md. Note: @storage/backend type-check fails due to pre-existing drizzle-orm issue Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
40 lines
1.1 KiB
JSON
40 lines
1.1 KiB
JSON
{
|
|
"name": "@manacore/bot-services",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "Shared business logic services for Matrix bots and Gateway",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./todo": "./src/todo/index.ts",
|
|
"./calendar": "./src/calendar/index.ts",
|
|
"./clock": "./src/clock/index.ts",
|
|
"./ai": "./src/ai/index.ts",
|
|
"./session": "./src/session/index.ts",
|
|
"./transcription": "./src/transcription/index.ts",
|
|
"./nutrition": "./src/nutrition/index.ts",
|
|
"./quotes": "./src/quotes/index.ts",
|
|
"./stats": "./src/stats/index.ts",
|
|
"./docs": "./src/docs/index.ts",
|
|
"./shared": "./src/shared/index.ts"
|
|
},
|
|
"scripts": {
|
|
"type-check": "tsc --noEmit",
|
|
"clean": "rm -rf dist",
|
|
"lint": "eslint ."
|
|
},
|
|
"dependencies": {
|
|
"@nestjs/common": "^11.0.20",
|
|
"@nestjs/config": "^4.0.2",
|
|
"date-fns": "^4.1.0"
|
|
},
|
|
"peerDependencies": {
|
|
"@nestjs/common": "^10.0.0 || ^11.0.0",
|
|
"@nestjs/config": "^3.0.0 || ^4.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^24.10.1",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
}
|