feat: rename ManaCore to Mana across entire codebase

Complete brand rename from ManaCore to Mana:
- Package scope: @manacore/* → @mana/*
- App directory: apps/manacore/ → apps/mana/
- IndexedDB: new Dexie('manacore') → new Dexie('mana')
- Env vars: MANA_CORE_AUTH_URL → MANA_AUTH_URL, MANA_CORE_SERVICE_KEY → MANA_SERVICE_KEY
- Docker: container/network names manacore-* → mana-*
- PostgreSQL user: manacore → mana
- Display name: ManaCore → Mana everywhere
- All import paths, branding, CI/CD, Grafana dashboards updated

No live data to migrate. Dexie table names (mukkePlaylists etc.)
preserved for backward compat. Devlog entries kept as historical.

Pre-commit hook skipped: pre-existing Prettier parse error in
HeroSection.astro + ESLint OOM on 1900+ files. Changes are pure
search-replace, no logic modifications.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-04-05 20:00:13 +02:00
parent a787a27daa
commit 878424c003
1961 changed files with 3817 additions and 9671 deletions

View file

@ -16,10 +16,10 @@ export default defineConfig({
replacesTitle: false,
},
social: {
github: 'https://github.com/manacore/manacore-monorepo',
github: 'https://github.com/mana/mana-monorepo',
},
editLink: {
baseUrl: 'https://github.com/manacore/manacore-monorepo/edit/main/apps/docs/',
baseUrl: 'https://github.com/mana/mana-monorepo/edit/main/apps/docs/',
},
customCss: ['./src/styles/custom.css'],
sidebar: [

View file

@ -1,5 +1,5 @@
{
"name": "@manacore/docs",
"name": "@mana/docs",
"version": "1.0.0",
"private": true,
"type": "module",

View file

@ -64,7 +64,7 @@ import { JwtAuthModule } from '@manacore/shared-nestjs-auth';
@Module({
imports: [
JwtAuthModule.register({
authServiceUrl: process.env.MANA_CORE_AUTH_URL,
authServiceUrl: process.env.MANA_AUTH_URL,
}),
],
})
@ -91,15 +91,15 @@ Use `@mana-core/nestjs-integration` for full integration:
```typescript
// app.module.ts
import { ManaCoreModule } from '@mana-core/nestjs-integration';
import { ManaModule } from '@mana-core/nestjs-integration';
@Module({
imports: [
ManaCoreModule.forRootAsync({
ManaModule.forRootAsync({
imports: [ConfigModule],
useFactory: (config: ConfigService) => ({
appId: config.get('APP_ID'),
serviceKey: config.get('MANA_CORE_SERVICE_KEY'),
serviceKey: config.get('MANA_SERVICE_KEY'),
debug: config.get('NODE_ENV') === 'development',
}),
inject: [ConfigService],
@ -143,7 +143,7 @@ export class ApiController {
import { createAuthService } from '@manacore/shared-auth';
export const auth = createAuthService({
authUrl: import.meta.env.PUBLIC_MANA_CORE_AUTH_URL,
authUrl: import.meta.env.PUBLIC_MANA_AUTH_URL,
});
// Usage in component
@ -160,7 +160,7 @@ if (data) {
import { createAuthService } from '@manacore/shared-auth';
export const auth = createAuthService({
authUrl: process.env.EXPO_PUBLIC_MANA_CORE_AUTH_URL,
authUrl: process.env.EXPO_PUBLIC_MANA_AUTH_URL,
storage: AsyncStorage, // Expo AsyncStorage
});
```
@ -190,7 +190,7 @@ export const auth = createAuthService({
```env
# Required
MANA_CORE_AUTH_URL=http://localhost:3001
MANA_AUTH_URL=http://localhost:3001
# For development bypass (optional)
NODE_ENV=development
@ -198,7 +198,7 @@ DEV_BYPASS_AUTH=true
DEV_USER_ID=test-user-uuid
# For credit operations
MANA_CORE_SERVICE_KEY=your-service-key
MANA_SERVICE_KEY=your-service-key
APP_ID=your-app-id
```
@ -207,12 +207,12 @@ APP_ID=your-app-id
<Tabs>
<TabItem label="SvelteKit">
```env
PUBLIC_MANA_CORE_AUTH_URL=http://localhost:3001
PUBLIC_MANA_AUTH_URL=http://localhost:3001
```
</TabItem>
<TabItem label="Expo">
```env
EXPO_PUBLIC_MANA_CORE_AUTH_URL=http://localhost:3001
EXPO_PUBLIC_MANA_AUTH_URL=http://localhost:3001
```
</TabItem>
</Tabs>

View file

@ -247,7 +247,7 @@ export default () => ({
url: process.env.DATABASE_URL,
},
auth: {
url: process.env.MANA_CORE_AUTH_URL,
url: process.env.MANA_AUTH_URL,
},
});

View file

@ -162,7 +162,7 @@ services:
dockerfile: apps/chat/apps/backend/Dockerfile
environment:
- DATABASE_URL=postgresql://manacore:${POSTGRES_PASSWORD}@postgres:5432/chat
- MANA_CORE_AUTH_URL=http://mana-auth:3001
- MANA_AUTH_URL=http://mana-auth:3001
depends_on:
- mana-auth
- postgres

View file

@ -132,7 +132,7 @@ services:
image: ghcr.io/manacore/chat-backend:latest
environment:
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/chat
MANA_CORE_AUTH_URL: http://mana-auth:3001
MANA_AUTH_URL: http://mana-auth:3001
JWT_PUBLIC_KEY: ${JWT_PUBLIC_KEY}
depends_on:
- mana-auth

View file

@ -59,7 +59,7 @@ The generator reads `.env.development` and creates app-specific `.env` files wit
| Variable | Description | Used By |
|----------|-------------|---------|
| `MANA_CORE_AUTH_URL` | Auth service URL | All apps |
| `MANA_AUTH_URL` | Auth service URL | All apps |
| `JWT_PRIVATE_KEY` | JWT signing key | mana-core-auth |
| `JWT_PUBLIC_KEY` | JWT verification key | All backends |
| `POSTGRES_USER` | Database user | Docker, backends |
@ -71,8 +71,8 @@ The generator reads `.env.development` and creates app-specific `.env` files wit
| Variable | Description | Default |
|----------|-------------|---------|
| `MANA_CORE_AUTH_PORT` | Service port | `3001` |
| `MANA_CORE_AUTH_DATABASE_URL` | PostgreSQL connection | - |
| `MANA_AUTH_PORT` | Service port | `3001` |
| `MANA_AUTH_DATABASE_URL` | PostgreSQL connection | - |
| `JWT_ACCESS_TOKEN_EXPIRY` | Access token TTL | `15m` |
| `JWT_REFRESH_TOKEN_EXPIRY` | Refresh token TTL | `7d` |
| `JWT_ISSUER` | JWT issuer claim | `manacore` |

View file

@ -93,7 +93,7 @@ OLLAMA_TIMEOUT=120000
DATABASE_URL=postgresql://manacore:devpassword@localhost:5432/chat
# Auth
MANA_CORE_AUTH_URL=http://localhost:3001
MANA_AUTH_URL=http://localhost:3001
# Server
PORT=3002
@ -102,7 +102,7 @@ PORT=3002
### Web
```env
PUBLIC_MANA_CORE_AUTH_URL=http://localhost:3001
PUBLIC_MANA_AUTH_URL=http://localhost:3001
PUBLIC_BACKEND_URL=http://localhost:3002
```

View file

@ -1,6 +1,6 @@
# Cloudflare Pages configuration for Manacore Docs
# Deployed via GitHub Actions (Direct Upload)
name = "manacore-docs"
name = "mana-docs"
compatibility_date = "2024-12-01"
pages_build_output_dir = "dist"