sync sidecars from ~/.claude/
This commit is contained in:
@@ -8,3 +8,14 @@
|
||||
- `eza --tree --git-ignore --level=3 .` for layout (path arg required)
|
||||
- `fd <pat>` for files; `rg <sym>` for call sites
|
||||
- `git ls-files` when tokens are tight
|
||||
|
||||
## lightpanda
|
||||
|
||||
- 关掉遥测:`export LIGHTPANDA_DISABLE_TELEMETRY=true`
|
||||
- 快速抓 markdown(A 模式):`lightpanda fetch --dump markdown --obey-robots <url>`;`--wait-until` / `--wait-ms` / `--wait-selector` 调节等待
|
||||
- 作 web-access skill 的 CDP 后端(B 模式):
|
||||
1. `lightpanda serve --host 127.0.0.1 --port 9222` 后台跑
|
||||
2. `node ~/.claude/skills/web-access/scripts/cdp-proxy.mjs` 后台跑(自动扫 9222)
|
||||
3. 用 `curl http://localhost:3456/new?url=...` 等 API;`/targets` 列 tab,`/eval?target=ID` 执行 JS,`/info?target=ID` 查标题/URL
|
||||
- 区分 A vs B:公开静态页用 A(快、无状态);需要点击/上传/多 tab/交互取 DOM 用 B
|
||||
- 不具备登录态(对比 web-access 连用户日常 Chrome);需要登录的站点仍走用户 Chrome 模式
|
||||
|
||||
Reference in New Issue
Block a user