diff --git a/.env.development b/.env.development index 1d7c28442..78e7db9b1 100644 --- a/.env.development +++ b/.env.development @@ -196,7 +196,7 @@ MANA_AI_DEEP_RESEARCH_ENABLED=false # mana-crawler — Go service. Default binary port is 3023 (local dev); # the macmini docker-compose overrides to 3014 internally. Used by the -# Kontext URL import endpoint (POST /api/v1/context/import-url) to +# Kontext URL import endpoint (POST /api/v1/kontext/import-url) to # fetch and convert web pages to markdown. No public ingress — # apps/api reaches it via localhost in dev, via mana-crawler:3014 # hostname in the Docker network. diff --git a/apps/context/CLAUDE.md b/apps/context/CLAUDE.md deleted file mode 100644 index e81cbb1e6..000000000 --- a/apps/context/CLAUDE.md +++ /dev/null @@ -1,24 +0,0 @@ -# Context — consolidated into the unified Mana app - -This product was migrated into the unified Mana monorepo. The legacy -per-product `apps/context/apps/backend/` (NestJS) and -`apps/context/apps/web/` directories have been removed. Active code now -lives in: - -- **Backend compute routes**: [`apps/api/src/modules/context/routes.ts`](../api/src/modules/context/routes.ts) (AI text generation via mana-llm, server-side credit deduction) -- **Frontend module** (local-first): [`apps/mana/apps/web/src/lib/modules/context/`](../mana/apps/web/src/lib/modules/context/) -- **Web route**: [`apps/mana/apps/web/src/routes/(app)/context/`](../mana/apps/web/src/routes/(app)/context/) -- **Mobile app**: [`apps/context/apps/mobile/`](apps/mobile/) - -For monorepo-wide patterns (auth, sync, encryption, services), see the -[root `CLAUDE.md`](../../CLAUDE.md) and [`apps/mana/CLAUDE.md`](../mana/CLAUDE.md). - -The previous "Context App" guide describing a NestJS backend with its -own spaces/documents/token tables was deleted in the audit cleanup of -2026-04-09 — it had been inaccurate since the consolidation. The -token-economy logic now lives in `mana-credits`. Pre-consolidation -reference is in git history. - -> **Note:** The legacy `apps/context/pnpm-lock.yaml` (242 KB, separate -> workspace setup) and the broken `dev:web` / `dev:server` filter scripts -> in `apps/context/package.json` are tracked in audit items #2 and #26. diff --git a/apps/context/package.json b/apps/context/package.json deleted file mode 100644 index a1f05c94f..000000000 --- a/apps/context/package.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "context", - "version": "0.1.0", - "private": true, - "scripts": { - "dev:mobile": "pnpm --filter @context/mobile dev" - } -} diff --git a/package.json b/package.json index 0b572aff2..422cccc76 100644 --- a/package.json +++ b/package.json @@ -165,11 +165,6 @@ "dev:figgos:web": "pnpm --filter @figgos/web dev", "dev:figgos:ios": "pnpm --filter @figgos/mobile ios", "dev:figgos:android": "pnpm --filter @figgos/mobile android", - "context:dev": "turbo run dev --filter=context...", - "dev:context:web": "pnpm --filter @context/web dev", - "dev:context:app": "concurrently -n api,web -c yellow,cyan \"pnpm dev:api\" \"pnpm dev:context:web\"", - "dev:context:full": "concurrently -n auth,sync,api -c blue,magenta,yellow \"pnpm dev:auth\" \"pnpm dev:sync\" \"pnpm dev:api\"", - "setup:db:context": "./scripts/setup-databases.sh context", "citycorners:dev": "turbo run dev --filter=citycorners...", "dev:citycorners:landing": "pnpm --filter @citycorners/landing dev", "dev:citycorners:web": "pnpm --filter @citycorners/web dev", @@ -253,7 +248,6 @@ "dev:calendar:local": "concurrently -n sync,api -c magenta,yellow \"pnpm dev:sync\" \"pnpm dev:api\"", "dev:chat:local": "concurrently -n sync,api -c magenta,yellow \"pnpm dev:sync\" \"pnpm dev:api\"", "dev:contacts:local": "concurrently -n sync,api -c magenta,yellow \"pnpm dev:sync\" \"pnpm dev:api\"", - "dev:context:local": "concurrently -n sync,api -c magenta,yellow \"pnpm dev:sync\" \"pnpm dev:api\"", "dev:cards:local": "concurrently -n sync,api -c magenta,yellow \"pnpm dev:sync\" \"pnpm dev:api\"", "dev:music:local": "concurrently -n sync,api -c magenta,yellow \"pnpm dev:sync\" \"pnpm dev:api\"", "dev:food:local": "concurrently -n sync,api -c magenta,yellow \"pnpm dev:sync\" \"pnpm dev:api\"", diff --git a/scripts/generate-env.mjs b/scripts/generate-env.mjs index 2fc7f7772..a3ac1b701 100644 --- a/scripts/generate-env.mjs +++ b/scripts/generate-env.mjs @@ -392,32 +392,6 @@ const APP_CONFIGS = [ }, }, - // Context Server (Hono/Bun) - { - path: 'apps/context/apps/server/.env', - vars: { - NODE_ENV: () => 'development', - PORT: (env) => env.CONTEXT_BACKEND_PORT || '3020', - DATABASE_URL: (env) => env.CONTEXT_DATABASE_URL, - MANA_AUTH_URL: (env) => env.MANA_AUTH_URL, - DEV_BYPASS_AUTH: () => 'true', - DEV_USER_ID: (env) => env.DEV_USER_ID || '00000000-0000-0000-0000-000000000000', - AZURE_OPENAI_API_KEY: (env) => env.CONTEXT_AZURE_OPENAI_API_KEY || '', - AZURE_OPENAI_ENDPOINT: (env) => env.CONTEXT_AZURE_OPENAI_ENDPOINT || '', - GOOGLE_API_KEY: (env) => env.CONTEXT_GOOGLE_API_KEY || '', - CORS_ORIGINS: (env) => env.CORS_ORIGINS, - }, - }, - - // Context Web (SvelteKit) - { - path: 'apps/context/apps/web/.env', - vars: { - PUBLIC_BACKEND_URL: (env) => `http://localhost:${env.CONTEXT_BACKEND_PORT || '3020'}`, - PUBLIC_MANA_AUTH_URL: (env) => env.MANA_AUTH_URL, - }, - }, - // Calendar Server (Hono/Bun) { path: 'apps/calendar/apps/server/.env', diff --git a/scripts/validate-monorepo.mjs b/scripts/validate-monorepo.mjs index 0e75c69b7..e23032f63 100755 --- a/scripts/validate-monorepo.mjs +++ b/scripts/validate-monorepo.mjs @@ -145,7 +145,6 @@ function checkWorkspaceProtocol(packagePath, packageJson) { '@mana-games/', '@figgos/', '@worldream/', - '@context/', ]; for (const [depName, depVersion] of Object.entries(deps)) {