77e150f122fa9bded44ec47baea33083d65f3b8f
MergeAdvisor calls Gemini with a German system prompt to propose how to merge two duplicate market editions. It guards against confident non-duplicates via ErrNotDuplicate (same=false AND confidence>0.5). POST /:id/merge-plan generates a MarketMergeProposal (read-only). POST /:id/merge-into/:target_id applies the merge: updates target fields, marks source as status=merged with merged_into_id set, reparents discovered_markets, and writes a market_merge_log audit row — all in one transaction. AdminHandler gains advisor and updated constructor. VersionMergeAdvisor added to pkg/ai versions.
Description
No description provided
Languages
Go
60.3%
Svelte
20.3%
Dart
11.1%
TypeScript
5%
PLpgSQL
1.1%
Other
2.1%