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 4002
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",
@@ -16,6 +17,7 @@
},
"devDependencies": {
"@types/express": "^4.17.21",
"@types/geoip-lite": "^1.4.4",
"@types/ua-parser-js": "^0.7.39",
"tsx": "^4.19.0",
"typescript": "^5.9.3"

View File

@@ -5,7 +5,7 @@ import contextRouter from './routes/context.js';
const app = express();
app.use(cors({ origin: true }));
const PORT = parseInt(process.env.PORT ?? '3015', 10);
const PORT = parseInt(process.env.PORT ?? '4002', 10);
app.use(express.json({ limit: '1mb' }));