mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 03:01:09 +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>
41 lines
1.1 KiB
JSON
41 lines
1.1 KiB
JSON
{
|
|
"name": "@manacore/matrix-clock-bot",
|
|
"version": "1.0.0",
|
|
"description": "Matrix bot for time tracking with Clock app",
|
|
"private": true,
|
|
"pnpm": {
|
|
"neverBuiltDependencies": [
|
|
"@matrix-org/matrix-sdk-crypto-nodejs"
|
|
],
|
|
"overrides": {
|
|
"@matrix-org/matrix-sdk-crypto-nodejs": "npm:empty-npm-package@1.0.0"
|
|
}
|
|
},
|
|
"overrides": {
|
|
"@matrix-org/matrix-sdk-crypto-nodejs": "npm:empty-npm-package@1.0.0"
|
|
},
|
|
"scripts": {
|
|
"prebuild": "rm -rf dist || true",
|
|
"build": "tsc -p tsconfig.build.json",
|
|
"start": "nest start",
|
|
"start:dev": "nest start --watch",
|
|
"start:debug": "nest start --debug --watch",
|
|
"start:prod": "node dist/main",
|
|
"type-check": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@manacore/bot-services": "workspace:*",
|
|
"@nestjs/common": "^10.4.17",
|
|
"@nestjs/config": "^3.3.0",
|
|
"@nestjs/core": "^10.4.17",
|
|
"@nestjs/platform-express": "^10.4.17",
|
|
"matrix-bot-sdk": "^0.7.1",
|
|
"reflect-metadata": "^0.2.2",
|
|
"rxjs": "^7.8.1"
|
|
},
|
|
"devDependencies": {
|
|
"@nestjs/cli": "^10.4.9",
|
|
"@types/node": "^22.10.7",
|
|
"typescript": "^5.7.3"
|
|
}
|
|
}
|