Commit Graph
271 Commits
Author SHA1 Message Date
QiuSW d00f1591c2 feat(web): configure AI confidence threshold (#175) 2026-08-31 17:30:04 +08:00
QiuSW 4343ab5c94 fix(purchase): configure spec probe aliases and show targets (#174) 2026-08-31 17:11:52 +08:00
QiuSWandClaude Sonnet 5 5338dd0072 fix(web): give AI spec-suggestion calls a timeout above the AI provider's
request.js's shared axios instance times out every admin call at 10s,
but AI matching settings allow the server to wait up to 600s
(aimatching.maxTimeoutSecs) for a real chat/completions round trip.
For shopee product 49915704844 the size dimension had no deterministic
match and genuinely called the model; the frontend cut the connection
before the server replied, which the browser reports as a generic
network failure ("服务器连接异常") that has nothing to do with the
actual cause. Override the timeout on just these two calls instead of
the shared default, which stays tight for every other (fast) admin
request.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VkjpksKeizaRpYXfgD74Lf
2026-08-31 16:37:04 +08:00
QiuSWandClaude Sonnet 5 17c9b7c3b1 fix(goauto): grant purchaser role access to AI spec suggestion APIs (#172)
The two new suggest-colors/suggest-sizes endpoints were missing from
the purchaser permission matrix, so any non-super-admin account got
"没有该接口访问权限" from AuthCheckRole even after the server was
rebuilt. Add both to AdminAPIs alongside the existing mapping-edit and
preview-auto-size entries so ReconcilePurchaserPermissions seeds the
sys_api/casbin rows on next startup.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VkjpksKeizaRpYXfgD74Lf
2026-08-31 16:30:30 +08:00
QiuSW f30be4462f fix(collection): recognize combination spec heading (#173) 2026-08-31 16:22:54 +08:00
QiuSWandClaude Sonnet 5 21b38c4444 feat(goauto): suggest color/size specs via AI, human-confirmed save (#172)
Add batch AI suggestion for Shopee color/size spec mapping: a
specContextVersion snapshot guards both the new suggest endpoints and
must be echoed back, short id binding keeps the model from ever
returning a value outside the server-supplied PDD candidates, and
suggestions only prefill the draft above AutoConfirmMinConfidence -
low-confidence answers show the reason but stay unapplied. Every
AI-sourced mapping is still written as pending by the existing
SetMapping rule and needs an explicit operator confirm, same as
before for manual edits.

Server: server/app/goauto/aimatching/suggest.go (batch provider call),
server/app/goauto/shopeeproduct/{context_version,ai_suggest}.go (spec
context version + suggest-colors/suggest-sizes), wired into
handler.go/router.go/service.go.
Web: shopee-products AI 匹配 button on both tabs, low-confidence rows
left for manual pick, pending AI mappings get an explicit 确认 action.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VkjpksKeizaRpYXfgD74Lf
2026-08-31 16:18:42 +08:00
QiuSW 1d0b0ce086 feat(web): preview PDD color images (#168) 2026-08-31 15:55:06 +08:00
QiuSW 40aea6a59f fix(android): preserve exact spec proof for final verification (#171) 2026-08-31 15:50:55 +08:00
QiuSW 1340ba0612 feat(web): show color images in PDD product list (#168) 2026-08-31 15:27:29 +08:00
QiuSW 60f01f7447 fix(goauto): preserve empty missing arrays (#170) 2026-08-31 15:17:44 +08:00
QiuSW 78f5895a09 feat(web): prefill recent PDD products in picker (#168) 2026-08-31 15:15:12 +08:00
QiuSW d89a0270b7 fix(agent): normalize priced color options (#169) 2026-08-31 15:01:25 +08:00
QiuSW ff0cf99be3 fix(goauto): preserve unknown order evidence (#167) 2026-08-31 14:28:59 +08:00
QiuSW d90bf66cc2 fix(auth): reload purchaser policies after reconcile (#161) 2026-08-31 14:23:12 +08:00
QiuSW ceeab193ec fix(agent): wait for delayed PDD order detail (#163) 2026-08-31 14:14:28 +08:00
QiuSW a3628df292 fix(agent): reject review-page spec entry misroutes (#166) 2026-08-31 11:47:33 +08:00
QiuSW 09d9d2227a feat(goauto): continue orders from PDD product detail (#161) 2026-08-31 11:36:31 +08:00
QiuSW 866aea102f fix(goauto): preserve exact spec failure evidence (#164) 2026-08-31 11:16:45 +08:00
QiuSW 5270390a2e test(web): close review gaps for SYB collection (#162) 2026-08-31 10:49:33 +08:00
QiuSW 4e05048044 feat(web): support batch PDD collection from SYB products (#162) 2026-08-31 10:29:19 +08:00
QiuSW d8e13da83c fix(agent): stabilize post-order WeChat recovery (#163) 2026-08-31 10:01:10 +08:00
QiuSW 67f3a74956 fix(goauto): safely normalize specification values (#160) 2026-08-31 09:40:17 +08:00
QiuSW 5d85625905 test(goauto): seed current purchase rule in SYB fixtures (#127) 2026-08-29 21:58:23 +08:00
QiuSW 1ec895b8e6 docs(goauto): document rules and agent releases (#127 #143 #144 #146) 2026-08-29 21:57:08 +08:00
QiuSW 56845104d1 feat(agent): add authenticated in-app updates (#144) 2026-08-29 21:35:14 +08:00
QiuSW f0f5f5bd14 feat(goauto): manage authenticated agent releases (#143) 2026-08-29 21:34:32 +08:00
QiuSW 56443c995b feat(goauto): parameterize purchase price guard (#146) 2026-08-29 21:24:55 +08:00
QiuSW 148ba96521 feat(goauto): add managed purchase rules (#127) 2026-08-29 21:20:55 +08:00
QiuSW 7afe5ae9ce fix(#145): stabilize SYB daily pagination 2026-08-29 18:08:42 +08:00
QiuSW 8afbdbc8ff fix(server): converge purchase retry startup (#159) 2026-08-29 17:30:45 +08:00
QiuSW 77a2b2506e fix(android): recognize sold-out purchases (#158) 2026-08-29 17:07:24 +08:00
QiuSW 16948a9e94 feat(#157): retry purchase tasks in place 2026-08-29 16:52:23 +08:00
QiuSW 7c18159d70 fix(#156): reconcile purchaser permissions at startup 2026-08-29 16:30:23 +08:00
QiuSW cc326ebc6c feat(#155): reuse failed collection tasks by attempt 2026-08-29 16:05:37 +08:00
QiuSW 78ab8716a6 fix(#154): return safely from WeChat to PDD 2026-08-29 15:15:25 +08:00
QiuSW 19fa1c7dd3 fix(#152): leave saved address panel safely 2026-08-29 14:59:19 +08:00
QiuSW 7fddd189b4 fix(#152): separate address save and final proof 2026-08-29 14:51:54 +08:00
QiuSW e188fec3aa fix(#152): verify split saved address evidence 2026-08-29 14:41:20 +08:00
QiuSW 4a7a483272 fix(#151): verify exact spec selection after click 2026-08-29 14:31:03 +08:00
QiuSW d847b00c5b fix(#150): verify PDD entry after browser click 2026-08-29 14:22:25 +08:00
QiuSW afa29f1d86 fix(#149): add purchase match work item migration 2026-08-29 14:06:00 +08:00
QiuSW 11c407d582 feat(#148): match purchase specs asynchronously 2026-08-29 11:51:32 +08:00
QiuSW c9e9539de0 fix(#147): move purchase matching outside transaction 2026-08-29 11:09:48 +08:00
QiuSW b453634b11 fix(android): retry copy-link click after share rerender (#133) 2026-08-29 10:51:42 +08:00
QiuSW 9b044ed0e5 fix(android): locate color images from raw cards (#133) 2026-08-29 10:42:01 +08:00
QiuSW f84ea5df3b feat(#142): group GoAuto admin navigation 2026-08-29 09:44:06 +08:00
QiuSW fc8798479b fix(menus): keep sort values in MySQL range (#141) 2026-08-29 08:47:07 +08:00
QiuSW a6cc1c6d5d fix(migrations): support MySQL 8.4 checks (#140) 2026-08-29 08:47:06 +08:00
QiuSW 9d23b44811 fix(upload): preserve multipart boundaries (#139) 2026-08-29 00:01:37 +08:00
QiuSW 6f611a04ef feat(goauto): collect cropped color images (#133) 2026-08-28 23:31:23 +08:00