Commit 5be8b8a
Ope Olatunji
v0.5.483: Screenshot compression, search relevance, wallet redeem, price validation
- Screenshot compression: Sharp stubs replaced with real implementations,
images >150KB auto-compressed to max 1024px JPEG (prevents 145K+ token LLM crashes)
- Browser screenshot defaults: max side 2000→1280px, max bytes 5MB→200KB
- Search relevance: client-side relevance filtering for poly_search_markets
and screener — no more irrelevant political/gossip markets in search results
- Volume ordering removed when search query is provided (lets API rank by relevance)
- web_fetch errors: extract HTML title only instead of dumping CSS garbage
- Momentum scanner: filter out expired markets (no more fake momentum from ended games)
- poly_get_market: use slug as primary ID (fixes "Market not found" errors),
improved lookup order with condition_id fallback
- poly_place_order: auto-derive price from midpoint when not specified,
clamp price to 0.01-0.99 range, updated description with constraints
- Wallet redeem endpoint: POST /polymarket/:agentId/wallet/redeem — direct
on-chain CTF redemption without needing the LLM
- Dashboard redeem button: calls API directly with confirmation dialog,
"Redeem All Winnings" button for batch claims
- Won/Lost position display: WON (green) / LOST (red) status in positions table,
lost positions auto-hidden after 3 days, no redeem button on lost trades
- Fix TSC errors: Buffer type casts, DB shim type assertions, event type widening1 parent 5cbe4a9 commit 5be8b8a
File tree
12 files changed
+354
-72
lines changed- src
- admin
- agent-tools
- tools
- browser
- dashboard/pages
- engine
- polymarket-engines
12 files changed
+354
-72
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3034 | 3034 | | |
3035 | 3035 | | |
3036 | 3036 | | |
3037 | | - | |
3038 | | - | |
3039 | | - | |
| 3037 | + | |
| 3038 | + | |
| 3039 | + | |
3040 | 3040 | | |
3041 | 3041 | | |
3042 | 3042 | | |
| |||
3822 | 3822 | | |
3823 | 3823 | | |
3824 | 3824 | | |
| 3825 | + | |
| 3826 | + | |
| 3827 | + | |
| 3828 | + | |
| 3829 | + | |
| 3830 | + | |
| 3831 | + | |
| 3832 | + | |
| 3833 | + | |
| 3834 | + | |
| 3835 | + | |
| 3836 | + | |
| 3837 | + | |
| 3838 | + | |
| 3839 | + | |
| 3840 | + | |
| 3841 | + | |
| 3842 | + | |
| 3843 | + | |
| 3844 | + | |
| 3845 | + | |
| 3846 | + | |
| 3847 | + | |
| 3848 | + | |
| 3849 | + | |
| 3850 | + | |
| 3851 | + | |
| 3852 | + | |
| 3853 | + | |
| 3854 | + | |
| 3855 | + | |
| 3856 | + | |
| 3857 | + | |
| 3858 | + | |
| 3859 | + | |
| 3860 | + | |
| 3861 | + | |
| 3862 | + | |
| 3863 | + | |
| 3864 | + | |
| 3865 | + | |
| 3866 | + | |
| 3867 | + | |
| 3868 | + | |
| 3869 | + | |
| 3870 | + | |
| 3871 | + | |
| 3872 | + | |
| 3873 | + | |
| 3874 | + | |
| 3875 | + | |
| 3876 | + | |
| 3877 | + | |
| 3878 | + | |
| 3879 | + | |
| 3880 | + | |
| 3881 | + | |
| 3882 | + | |
| 3883 | + | |
| 3884 | + | |
| 3885 | + | |
| 3886 | + | |
| 3887 | + | |
| 3888 | + | |
| 3889 | + | |
| 3890 | + | |
| 3891 | + | |
| 3892 | + | |
| 3893 | + | |
| 3894 | + | |
| 3895 | + | |
3825 | 3896 | | |
3826 | 3897 | | |
3827 | 3898 | | |
| |||
4422 | 4493 | | |
4423 | 4494 | | |
4424 | 4495 | | |
| 4496 | + | |
4425 | 4497 | | |
4426 | 4498 | | |
4427 | 4499 | | |
4428 | | - | |
| 4500 | + | |
| 4501 | + | |
4429 | 4502 | | |
4430 | 4503 | | |
4431 | 4504 | | |
4432 | 4505 | | |
| 4506 | + | |
4433 | 4507 | | |
4434 | 4508 | | |
4435 | 4509 | | |
4436 | 4510 | | |
4437 | 4511 | | |
4438 | 4512 | | |
4439 | | - | |
| 4513 | + | |
4440 | 4514 | | |
| 4515 | + | |
| 4516 | + | |
4441 | 4517 | | |
| 4518 | + | |
| 4519 | + | |
| 4520 | + | |
| 4521 | + | |
| 4522 | + | |
| 4523 | + | |
| 4524 | + | |
4442 | 4525 | | |
4443 | 4526 | | |
4444 | 4527 | | |
| |||
4499 | 4582 | | |
4500 | 4583 | | |
4501 | 4584 | | |
| 4585 | + | |
4502 | 4586 | | |
4503 | 4587 | | |
4504 | 4588 | | |
| |||
4509 | 4593 | | |
4510 | 4594 | | |
4511 | 4595 | | |
| 4596 | + | |
| 4597 | + | |
4512 | 4598 | | |
4513 | 4599 | | |
4514 | 4600 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
241 | 246 | | |
242 | 247 | | |
243 | 248 | | |
244 | 249 | | |
245 | 250 | | |
246 | 251 | | |
247 | 252 | | |
248 | | - | |
| 253 | + | |
249 | 254 | | |
250 | 255 | | |
251 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
252 | 286 | | |
253 | 287 | | |
254 | 288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
331 | 350 | | |
332 | 351 | | |
333 | 352 | | |
334 | 353 | | |
335 | 354 | | |
336 | | - | |
| 355 | + | |
337 | 356 | | |
338 | 357 | | |
339 | 358 | | |
| |||
475 | 494 | | |
476 | 495 | | |
477 | 496 | | |
478 | | - | |
| 497 | + | |
479 | 498 | | |
480 | 499 | | |
481 | 500 | | |
| |||
650 | 669 | | |
651 | 670 | | |
652 | 671 | | |
653 | | - | |
654 | | - | |
| 672 | + | |
| 673 | + | |
655 | 674 | | |
656 | 675 | | |
657 | | - | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
658 | 679 | | |
659 | 680 | | |
660 | 681 | | |
| |||
710 | 731 | | |
711 | 732 | | |
712 | 733 | | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
713 | 758 | | |
714 | 759 | | |
715 | 760 | | |
| |||
772 | 817 | | |
773 | 818 | | |
774 | 819 | | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
781 | 826 | | |
782 | | - | |
| 827 | + | |
783 | 828 | | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
784 | 843 | | |
785 | 844 | | |
786 | 845 | | |
| |||
1708 | 1767 | | |
1709 | 1768 | | |
1710 | 1769 | | |
1711 | | - | |
| 1770 | + | |
1712 | 1771 | | |
1713 | 1772 | | |
1714 | | - | |
1715 | | - | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
1716 | 1776 | | |
1717 | 1777 | | |
1718 | 1778 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | 87 | | |
89 | 88 | | |
| 89 | + | |
90 | 90 | | |
91 | | - | |
92 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
93 | 95 | | |
94 | | - | |
| 96 | + | |
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| |||
0 commit comments