Deploy: migrate k3s → Docker; search logic → master-agents-svc

- deploy/k3s удалён, deploy/docker добавлен (Caddyfile, docker-compose, searxng)
- chat-svc: agents/models/prompts удалены, использует llm-svc (LLMClient, EmbeddingClient)
- master-agents-svc: SearchOrchestrator, classifier, researcher, actions, widgets
- web-svc: ChatModelSelector, Optimization, Sources удалены; InputBarPlus; UnregisterSW
- geo-device-svc, localization-svc: Dockerfiles
- docs: 02-k3s-services-spec.md, RUNBOOK/TELEMETRY/WORKING удалены

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
home
2026-02-23 22:14:00 +03:00
parent cd6b7857ba
commit 328d968f3f
180 changed files with 3022 additions and 9798 deletions

View File

@@ -0,0 +1,15 @@
FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY tsconfig.json ./
COPY src ./src
RUN npm run build
FROM node:22-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install --omit=dev
COPY --from=builder /app/dist ./dist
EXPOSE 4003
CMD ["node", "dist/index.js"]

View File

@@ -6,7 +6,8 @@
"main": "src/index.ts",
"scripts": {
"dev": "npx tsx watch src/index.ts",
"start": "npx tsx src/index.ts"
"build": "tsc",
"start": "node dist/index.js"
},
"dependencies": {
"cors": "^2.8.5",

View File

@@ -6,7 +6,7 @@ import translationsRouter from './routes/translations.js';
const app = express();
app.use(cors({ origin: true }));
const PORT = parseInt(process.env.PORT ?? '3016', 10);
const PORT = parseInt(process.env.PORT ?? '4003', 10);
app.use(express.json({ limit: '1mb' }));

View File

@@ -1,7 +1,7 @@
import type { GeoDeviceContext } from '../types.js';
const GEO_DEVICE_URL =
process.env.GEO_DEVICE_SVC_URL ?? process.env.GEO_DEVICE_SERVICE_URL ?? 'http://localhost:3015';
process.env.GEO_DEVICE_SVC_URL ?? process.env.GEO_DEVICE_SERVICE_URL ?? 'http://localhost:4002';
export async function fetchGeoContext(
headers: Record<string, string>,