Commit Graph

11 Commits

Author SHA1 Message Date
jackwener
fa6255f2ee docs: document structured output schema 2026-03-10 21:22:35 +08:00
jackwener
32d074dc9f feat: anti-detection hardening, transaction cache, article parsing, structured write output
Anti-detection:
- Add 6 sec-ch-ua-* Client Hints headers (arch, bitness, full-version, etc.)
- POST requests now send Referer: x.com/compose/post + Priority: u=1, i
- follow/unfollow REST adds include_profile_interstitial_type param

Performance:
- Transaction ID cache with 1h TTL (~/.twitter-cli/transaction_cache.json)
- resolve_user_id: auto-detect screen_name vs numeric user_id

Features:
- Twitter Article parsing: extract long-form content as Markdown
- Write operations emit structured JSON/YAML when piped or OUTPUT env set
  ActionResult: {success, action, id, url, ...}

84 tests passing
2026-03-10 20:48:42 +08:00
jackwener
97708889c9 docs: enhance SKILL.md with auth guide, agent workflows, compact mode, error ref
- Add step-by-step authentication guidance for agents (3 methods)
- Add 10+ agent workflow examples (post/reply/quote/thread/search+jq)
- Document compact mode (-c) for LLM token efficiency
- Add new commands: whoami, reply, quote, follow/unfollow
- Add complete error reference table
- Add limitations section
2026-03-10 20:13:47 +08:00
jackwener
250fca46f0 docs: add structured output guidance for AI agents 2026-03-10 15:47:06 +08:00
jackwener
19ab11d6a4 fix: harden auth flow and sync browser support docs 2026-03-10 11:02:34 +08:00
jackwener
bbe0bc8de3 docs: rename rt/unrt → retweet/unretweet, update SKILL.md + README.md
- Rename rt/unrt commands to retweet/unretweet for clarity
- SKILL.md: fix Python version, add --output/--filter examples, safety notes
- README.md: dynamic Chrome fingerprint, write delays, --output examples
- Sync Chinese section with English changes
2026-03-09 21:20:05 +08:00
jackwener
df9b58ed0a docs: comprehensive SKILL.md rewrite — add install, all commands, patterns, error handling, safety notes 2026-03-09 01:38:51 +08:00
jackwener
0a7b6a6b78 fix: console output to stderr for clean --json output
- Change Console() to Console(stderr=True) so all status/progress
  messages go to stderr, keeping stdout pure JSON when --json is used
- Add missing exception handling in likes command for fetch_user
- Fix SKILL.md: favorite -> favorites (correct command name)
2026-03-08 22:37:00 +08:00
jackwener
0df8f3af9b Improve skill metadata and npx skills docs 2026-03-06 21:16:29 +08:00
jackwener
81486e31d5 docs: add skill metadata frontmatter for ClawHub publish 2026-03-05 16:54:08 +08:00
jackwener
dc1a76ddbb docs: add AI skill and ClawHub sections with SKILL.md 2026-03-05 16:52:04 +08:00