Commit 88e4fec
authored
feat(turd): show what each choice changes + recipe-comparison diffs (#70)
* fix(db): build test databases from migrations, not schema push
makeTestDb generated DDL straight from schema.ts, so a test db never
recorded the drizzle migration journal. The first incremental ALTER
migration then re-added a column the push had already created. Provision
test dbs the way production does — apply the bundled migrations — so tests
exercise the real path and incremental migrations don't collide.
* feat(turd): surface what each choice changes + recipe-comparison diffs
The assistant and the TURD page only knew about branches that *replace* a
recipe (the turd_replacements table), so branches that unlock a brand-new
recipe were invisible — the agent reported moondrop-upgrade as a single
choice when it actually has three.
- turdChoices tool + recipeInfo enrichment walk the tech-prerequisite graph,
so the agent sees every branch: its description, the recipes it swaps
(old->new) or newly unlocks, and its modules.
- Import tech descriptions (new technologies.description column).
- /turd page: each choice lists its concrete recipe changes with icons and
descriptions instead of a bare 'N recipes' count; effect pills color-coded.
- Recipe-comparison hover (reusable for Py recipe tiers): in/out diff, colored
time, base per-second throughput with % change. A choice's module is applied
to a swapped recipe's rate only when it runs in the affected building (skipped
for building-construction recipes); productivity skips ignored-by-productivity
outputs like barrels.
* fix(assistant): warn when no OpenRouter key is set
Sending a message with no key configured returned a 500 the UI never
surfaced, so the conversation just died silently. Show an up-front banner
(linking to Settings) when no key is stored or in the env, and render the
request error if a send fails anyway.1 parent a531dc7 commit 88e4fec
15 files changed
Lines changed: 2971 additions & 100 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments