Commit Graph

7 Commits

Author SHA1 Message Date
ywkj c7e14ca396 feat: 统一鉴权清理 + Langfuse session 追踪
- src/index.ts: VisionConfig 新增 sessionId,createVisionModel 注入 x-langfuse-session-id / x-langfuse-tags headers
- src/product-detector.ts: createVisionModel 同步注入 session headers
- src/post-filter.ts: createModel 同步注入 session headers
- scripts/run.ts: 支持 --session-id CLI 参数,fallback 自动生成
- 删除 VISION_API_KEY / VISION_API_BASE / ONEBOUND_* 死代码(统一由 auth-rt client-config 下发)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-26 18:35:55 +08:00
ywkj 6bc4e1d3b4 feat: image-only pipeline with LLM post-filter for category accuracy
register-skill-release / register (push) Successful in 18s Details
- Drop video-understanding flow (detect-video, video-analyzer.ts) — image
  search is the only path now since text/video keywords return broad results.
- Add container-aware frame selection: detect rack/holder products, restrict
  ranking to the earliest 40% of frames so empty/unboxing shots win over
  loaded ones (image search was matching shoes-on-rack instead of the rack).
- Switch container check from generateObject (silently fails on this model)
  to generateText with a YES/NO answer.
- Add post-filter step: send the snapshot + each result's pic_url to the
  vision model in batches, drop results whose category doesn't match the
  detected product description. Cuts 50 raw hits to ~10 same-type matches.
- When post-filter succeeds, sort by sales directly instead of running the
  keyword-intersection rerank, which was overriding good filtered results
  with broad keyword fallbacks.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-26 15:01:42 +08:00
ywkj db4735e54e feat: add detect-video command using direct video upload + API analysis
register-skill-release / register (push) Successful in 16s Details
- New detect-video / detect-video-and-search commands: upload video to get
  public URL, analyze via LiteLLM (video_url), generate keyword, search 1688
- New src/video-analyzer.ts: upload via direct HTTP (bypasses auth-rt CLI
  arg length limit), analyze via Chat Completions with video_url content
- Frame-based pipeline robustness: quality pre-filtering (skip black/blurry
  frames), bounding box normalization/validation, crop failure tolerance,
  Vision ranking fallback to sharpness-based selection
- Improve ranking prompt: force pick one frame, Chinese description
- Update docs to recommend detect-video-and-search as primary command

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-25 16:30:01 +08:00
ywkj 91a623751d skill: translate user-facing docs to Chinese, add detect-best commands
register-skill-release / register (push) Successful in 22s Details
- SKILL.md / README.md: full Chinese translation for Chinese users
- scripts/run.ts: help text in Chinese
- src/: add detectBest and detectBestAndSearch commands

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-25 15:13:07 +08:00
ywkj c3523d002e fix: 遥测改用 TELEMETRY_ENDPOINT,不复用 hookUrl
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-20 07:46:45 +08:00
ywkj fd018ccd6a feat: 接入 Hook 遥测回调
与 template-skill 保持一致,每次执行后自动 POST hookUrl 上报执行结果。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-20 07:40:15 +08:00
ywkj cabd1b332a feat: 初始化 video-product-snapshot skill
视频商品检测 + 1688 以图搜图 + 关键词二次过滤完整流程。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-20 07:24:28 +08:00