3.9 KiB
3.9 KiB
MEMORY
- The repository packages a static site under
web/with an Nginx-basedDockerfile. - The GitLab pipeline builds and pushes the Belki image from
.gitlab-ci.yml; current target is$DOCKER_REGISTRY/belki:latest. - Docker builds are expected to run through
docker:dindwithDOCKER_HOST=tcp://docker:2375andDOCKER_TLS_CERTDIR="". - The build job now waits for
docker infobefore runningdocker loginanddocker buildbecausedocker:29.6.1-dindcan take ~20 seconds to finish initialization ondocker-03. - Current CI image:
docker:29.6.1-cli. - The runner host at
root@10.3.1.236isdocker-03.homelab.local; its GitLab Runner isstage-zone-runnerand successfully reachesdocker:29.6.1-dind. - 2026-08-16: the repository now contains a local-only Belki calculator MVP under
app/with a standard-library Python HTTP service, shared calculation/report domain, browser form at/, and VK Bots Long Poll adapter. - Confirmed local acceptance: 28 unittest cases pass; local browser smoke generated a 20-minute ЛУ report;
belki-calculator:testbuilt and its/health,/api/calculate,/api/inspect-bulk, and/api/resolve-identityendpoints responded. - Draft k3s manifests live under
deploy/k8s/but have not been applied. No VK token, group ID, service IP, or cluster Secret is stored in the repository. - VK input is now conversational:
BelkiDialogstores per-peer state, supports/лу//зуstep-by-step prompts, detects bulk messages, asks for missing skill/status or confirmation, and clears with/отмена. - The preferred bulk input is a natural line without pipes, such as
15.08 11:00 11:20 Дикая Вишня 1604614 Серолап 1617140;/api/inspect-bulkand the web form fill recognized fields and show only missing questions. /урокand/осмотрuse the same dialog; character name/ID may be entered separately and resolved from the persistent SQLite directory atBELKI_IDENTITIES_DB(defaultdata/belki.sqlite3), otherwise the dialog asks for the missing half and remembers the completed pair..gitignorenow excludes Python bytecode/cache and local test/editor artifacts; generated__pycache__directories were removed from the working tree.prevent-eolcheckedDockerfileand.gitlab-ci.yml: Python 3.12 is maintained through 2028-10-31; Docker 29.6.1 was unknown to the lifecycle catalog, with no EOL finding. Images are not digest-pinned yet.- VK onboarding asks first-time authors for
Имя [ID], stores the profile byfrom_idin SQLite, greets by name on later conversations, and acceptsсам/несамas independence shortcuts. - VK
/helpis a neutral FAQ: it explains step-by-step entry, complete commands, separator-free one-line input, confirmation, screenshots, and/отменаwithout audience-specific wording. - Confirmed calculations are persisted through
BELKI_DATABASE_URLbyapp/belki/history.py; PostgreSQL is the intended production store and SQLite is only a local fallback. - The admin history is served at
/admin;/api/admin/calculationsrequiresBELKI_ADMIN_PASSWORDviaX-Admin-Passwordand supports sorting by kitten ID/name. The password is configured out-of-band and is not stored in browser localStorage. - The new domain uses 5 minutes = 1 adult point and 5 minutes = 2 kitten points; a non-self-sufficient main kitten gives the adult a 1.5x multiplier and each additional non-self-sufficient kitten adds 0.5x, matching the inspected Google Sheet formulas.
- 2026-08-16 production deployment: namespace
belkiis live in k3s. Web and bot usereg.nyan404.ru/cwshed-clone/belki:6b74dfa; PostgreSQL uses the amd64 mirrorreg.nyan404.ru/library/postgres:16-alpine-amd64on Longhorn. The web LoadBalancer is MetalLB10.12.0.212; routecat.nyan404.ru/belkithrough the external Nginx to that IP. Runtime credentials remain only in the cluster Secretbelki-runtime.