This commit is contained in:
2026-08-23 20:49:40 +02:00
parent 3b678ca857
commit f3d4fb56ed
31 changed files with 3608 additions and 111 deletions
+17 -1
View File
@@ -1,4 +1,4 @@
.PHONY: up down api worker backend web migrate sqlc test test-api check-web vet seed seed-woo mock-woo health setup cutover-rehearsal build
.PHONY: up down api worker backend web migrate sqlc test test-api check-web vet seed seed-woo mock-woo health setup cutover-rehearsal build seed-defaults check-defaults formula-e2e
# Start local Postgres only (:5433 — pairs with host npm run setup / npm run dev)
up:
@@ -72,3 +72,19 @@ check-web:
# Low-memory production build (web then Go api+worker binaries; ~4GB-safe defaults)
build:
node scripts/build.mjs
# Regenerate the English platform-default category formulas from the A1 seed
# (writes apps/api/internal/aiprompts/defaults/default-category-prompts.json).
seed-defaults:
node scripts/seed/build-default-category-prompts.mjs
# Fail if the embedded English defaults drift from the A1 seed + translation table.
check-defaults:
node scripts/seed/build-default-category-prompts.mjs --check
# Local proof that category formulas drive generation (needs Postgres + mock-llm):
# make up && go run ./cmd/mock-llm &
# make formula-e2e
formula-e2e:
cd apps/api && go run ./cmd/formula-e2e -company "A1 Slovenija" -limit 5 -llm-base http://127.0.0.1:18767/v1
cd apps/api && go run ./cmd/formula-e2e -new-tenant -llm-base http://127.0.0.1:18767/v1