Commit Graph

6 Commits

Author SHA1 Message Date
ywkj a780041840 feat: define structured JSON output schema for API consumption
SKILL.md now specifies exact JSON structure the model must output
after reading screenshots. Weight in kg, dimensions in cm, omit nulls.
Ready for downstream API integration.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-30 12:18:15 +08:00
ywkj 87920a9503 refactor: replace DOM parsing with vision-based approach
Remove all CSS selectors, regex parsers, and structured extraction.
Instead, capture full-page screenshots (scrolling) and download detail
images. The model reads these directly with vision to extract logistics
data — no fragile DOM dependencies.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-30 12:11:24 +08:00
ywkj e48592690b feat: default CDP port 18800, add 包装信息 and 商品件重尺 extraction
register-skill-release / register (push) Successful in 14s Details
- Change default CDP port from 9222 to 18800
- Extract 包装信息 section (packaging type, box weight/dims, units per box)
- Extract 商品件重尺 table (per-piece weight/dimensions/volume)
- Backfill logistics from pieceWeightSize/packageInfo when attributes missing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-30 08:20:46 +08:00
ywkj 99ce9d96d1 feat: 1688 logistics scraper — extract weight/size from product pages
register-skill-release / register (push) Failing after 24s Details
Scrapes 1688 product pages via Chrome browser to extract logistics data
(weight, dimensions, volume) from attributes, variants, and detail images.
Zero npm dependencies — uses raw CDP over WebSocket.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-30 07:49:58 +08:00
ywkj d5c9ffa542 refactor: 移除 @clawd/auth-runtime npm 依赖,改用 auth-cli.ts CLI wrapper
- 新增 src/auth-cli.ts:通过 subprocess 调用 auth-runtime CLI
- 新增 install.sh:检查 auth-runtime 目录
- 新增 README.md:文档化 auth-cli.ts 认证机制和新建 skill 检查清单
- package.json 移除 @clawd/auth-runtime 依赖
- src/index.ts 改用 createSkillClient API

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-20 14:44:09 +08:00
ivanberry 2c2c24a310 feat: initial skill template 2026-03-14 10:35:01 +08:00