mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 22:41:09 +02:00
Add credits.ts to @manacore/shared-hono as replacement for CreditClientService from @mana-core/nestjs-integration. Exports: getBalance, validateCredits, consumeCredits, refundCredits Calls mana-credits service via MANA_CREDITS_URL + X-Service-Key. Same API surface as the NestJS version but as pure functions instead of an @Injectable() service class. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
31 lines
735 B
JSON
31 lines
735 B
JSON
{
|
|
"name": "@manacore/shared-hono",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "Shared Hono infrastructure: auth, health, admin, error handling for lightweight compute servers",
|
|
"type": "module",
|
|
"main": "./src/index.ts",
|
|
"types": "./src/index.ts",
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./auth": "./src/auth.ts",
|
|
"./db": "./src/db.ts",
|
|
"./health": "./src/health.ts",
|
|
"./admin": "./src/admin.ts",
|
|
"./error": "./src/error.ts",
|
|
"./credits": "./src/credits.ts"
|
|
},
|
|
"scripts": {
|
|
"type-check": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"hono": "^4.7.0",
|
|
"jose": "^6.0.11",
|
|
"drizzle-orm": "^0.45.1",
|
|
"postgres": "^3.4.5"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^24.10.1",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
}
|