mirror of
https://github.com/dartdavros/chatballs.git
synced 2026-10-18 22:59:02 +03:00
d56eb61e6fcbbca467b1c68935e42928e5886d5e
hub_platform.ai tests still used the pre-refactor product-anchored API (AIAgent.product, invoke_chat(product=...), ProductAIRelease, product on doc/release create), so 4 failed + 18 errored. Rewritten against the current channel anchoring (ADR-HUB-0019): - helper seeds channels + agents (bootstrap no longer does — seed_channels owns that in prod); agents/releases/invocations/retrieval/test-chat are all channel-scoped now. - knowledge/prompt create uses scope (GLOBAL default; PRODUCT for the release/retrieval fixtures); foreign-product rejection uses scope=PRODUCT. Also fixed two stale identity tests that asserted the old TOTP-on default: bootstrap now sets totp_required=False by design, and the setup→confirm flow opts the profile into TOTP first. Full backend suite: 85/85 green. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Edevs Hub
Canonical implementation workspace for hub.edevs.tech.
Local start
Copy-Item .env.example .env
.\scripts\start.ps1
The local compose stack contains:
- Django ASGI backend and background worker;
- PostgreSQL;
- Redis;
- Internal Hub UI;
- Web Chat UI;
- local Nginx reverse proxy.
No production secrets are stored in the repository.
Default local URLs:
- Internal Hub UI:
http://localhost:5173 - Django admin:
http://localhost:8010/admin/ - Web Chat:
http://localhost:5175 - Backend API:
http://localhost:8010/api/v1
Local accounts (TOTP disabled). These credentials are fixed — do not change them:
- OWNER —
owner@edevs.tech/Owner-Local-2026 - OPERATOR —
a.kotova@edevs.tech/Operator-Local-2026
Bootstrap the organization and both accounts:
docker compose run --rm backend python manage.py bootstrap_owner --email owner@edevs.tech --password Owner-Local-2026 --name "Иван Петров"
Tests
All suites run in Docker, so no manual environment is required — the test runners auto-detect themselves and relax production hardening (secret-key fail-fast, SSL redirect, throttling) for the duration of the run.
Run everything (backend tests, frontend unit tests, typechecks):
.\scripts\check.ps1
Individual suites:
# Backend (pytest + pytest-django)
docker compose run --rm backend pytest
# Frontend unit tests (vitest)
docker compose run --rm internal-ui npm run test
# End-to-end (Playwright, internal-ui) — auto-starts the dev server
npx playwright install chromium # one-time
npx playwright test --project=internal-ui
Backend pytest configuration lives in apps/backend/pytest.ini (it must sit
next to manage.py so it is also visible inside the backend container).
Description
No description provided
aiai-agentcustomer-servicecustomer-supportdjangodocker-composehelpdeskknowledge-baselive-chatmaxopen-sourcepgvectorragself-hostedtelegramtelegrambot
Readme
AGPL-3.0
33 MiB
0 Stars
1 Watchers
0 Forks
Languages
Python
45.5%
TypeScript
24.2%
HTML
15.9%
JavaScript
8.8%
CSS
5.1%
Other
0.4%