Commit Graph
295 Commits
Author SHA1 Message Date
QiuSW f27ec16307 docs: finalize AI timeout Wiki mirror (#197) 2026-09-02 17:41:12 +08:00
QiuSW 1d029d34c7 docs: sync AI timeout operations contract (#197) 2026-09-02 17:39:58 +08:00
QiuSW b12460825c fix: prevent AI matching write timeout (#197) 2026-09-02 17:35:12 +08:00
QiuSW d7924619b6 feat: 增加蝦皮规格定时与手动自动匹配 (#195) 2026-09-01 23:41:11 +08:00
QiuSW 041cd8d03f feat: 一键匹配并确认蝦皮颜色尺码 (#194) 2026-09-01 22:20:48 +08:00
QiuSWandClaude Opus 5 4eac72919d docs: 同步业务规则镜像,放开 AI 匹配与规格映射前置 (#190)
线上 Wiki 页 Business-Rules-and-Glossary 已更新并回读,
revision a6f63cc745cf0e0df7ca94521a70fb6af3adea26。

- 批量 AI 匹配的进入条件按 #190 放开:解析状态、第三维度、
  蝦皮缺目标值、缺可售 SKU 组合均不再阻断
- 规格映射失效与确定性匹配失败改为降级 unresolved 走规格探测,
  规则不具备 spec-probe 能力时仍拒绝创建

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-01 17:58:39 +08:00
QiuSWandClaude Opus 5 31c32d6a86 feat: 放开 SYB 商品页 AI 匹配与采购创建的规格前置限制 (#190)
按用户确认的清单删除以下拦截,内部系统不再要求这些人工前置:

AI 匹配(ai_match_eligibility.go)
- 解析存疑 / 解析失败不再阻断匹配
- PDD 含颜色尺码之外的可选规格不再阻断
- 蝦皮商品未找到目标颜色 / 尺码不再阻断
- 缺少完整可售 SKU 组合不再阻断
- 随之失效的 shopeeHasTarget、hasSelectableOtherDimension 一并删除

规格映射(batch.go 预检 + service.go 创建)
- 失效的已确认映射不再拒绝,降级为 unresolved
- 确定性匹配失败不再拒绝,降级为 unresolved
- 两条路径行为对齐,避免预检通过而创建报错

保留:规则不支持 spec-probe 时仍拒绝创建,否则会产生 Agent
无法执行的任务。采购侧自身的解析门禁不在本次范围内。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-01 17:47:48 +08:00
QiuSW 55c2b6b254 Revert "feat(web): SYB 列表页就地人工修正解析结果 (#190)"
This reverts commit 16c9216a5a.
2026-09-01 17:42:17 +08:00
QiuSWandClaude Opus 5 16c9216a5a feat(web): SYB 列表页就地人工修正解析结果 (#190)
解析失败或存疑时,列表行动作原先跳转打开详情抽屉,用户还需在抽屉内
再找一次「人工修正」。改为直接打开修正弹层,减少两次跳转。

- runPurchaseNextAction 的 reparse 分支改为 openCorrect(row)
- openCorrect 支持列表行与详情抽屉两个来源,fromList 决定保存后
  刷新列表还是刷新抽屉
- 动作按钮文案「查看并处理」改为「人工修正」
- 修正抽屉内 @click="openCorrect" 会把 MouseEvent 当作 row 传入的
  缺陷,改为 @click="openCorrect()"

后端与 ManuallyConfirmed 通道已存在(4a1b4af),本次不改服务端。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-01 16:56:57 +08:00
QiuSW 37dea33b06 fix(android): lock horizontal spec swipes (#189) 2026-09-01 16:49:35 +08:00
QiuSW b5a08bfa1f fix(android): block PDD size advice navigation (#189) 2026-09-01 16:41:43 +08:00
QiuSW 4a1b4af29d fix: trust manually confirmed SYB specs (#188) 2026-09-01 16:04:35 +08:00
QiuSW 776db137be fix: require saved spec match before purchase (#188) 2026-09-01 15:32:26 +08:00
QiuSW 5446ebeaae fix: tighten batch AI matching eligibility (#188) 2026-09-01 14:49:00 +08:00
QiuSW 3ef0f72ff9 feat: batch AI match SYB purchase specs (#188) 2026-09-01 12:13:33 +08:00
QiuSW 6ab2f62f39 feat(web): 内联展示商品详情抽屉 (#186) 2026-09-01 11:23:09 +08:00
QiuSW b31896ef75 fix(web): restore cached tab state (#187) 2026-09-01 10:33:27 +08:00
QiuSW 3aab1f013d feat(goauto): 完善替代采集与颜色图片详情 (#184 #185) 2026-09-01 09:55:27 +08:00
QiuSW c07c3451f1 fix(admin): decouple SYB collection eligibility (#183) 2026-09-01 09:02:24 +08:00
QiuSW dce4a4fc2a fix(web): support request IDs over HTTP (#182) 2026-09-01 00:51:29 +08:00
QiuSW 7be57bfe6b feat(agent): allow configured HTTP transport (#181) 2026-09-01 00:12:43 +08:00
QiuSW 9cdb6bb962 feat(purchase): allow absolute price ceiling (#180) 2026-08-31 21:27:50 +08:00
QiuSW 55ded8b598 feat(web): add 100-row pagination option (#177) 2026-08-31 17:47:45 +08:00
QiuSW 13d291a763 fix(android): accept purchase price guard (#176) 2026-08-31 17:38:10 +08:00
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