docs: update examples and config guidance

This commit is contained in:
Peter Steinberger
2025-12-03 15:39:15 +00:00
parent 9a14b71571
commit 7df04c481f
2 changed files with 63 additions and 15 deletions
+15 -15
View File
@@ -1,19 +1,19 @@
# Changelog
All notable changes to this project will be documented in this file.
## Unreleased
## 0.1.1 — 2025-12-02
- Updated `CreateTweet` GraphQL query ID to `TAJw1rBsjAtdNgTdlo2oeg` (was `znCVAd692dKBq9MgkEhKPQ`)
- Added new required feature flags for December 2025 X API:
- `premium_content_api_read_enabled`
- `responsive_web_grok_*` flags (analyze, share, translate, imagine)
- `profile_label_improvements_pcf_label_in_post_enabled`
- `responsive_web_jetfuel_frame`
- Source: [fa0311/TwitterInternalAPIDocument](https://github.com/fa0311/TwitterInternalAPIDocument)
### Added
- `whoami` command works with both GraphQL cookies and Sweetistics API keys.
- Firefox cookie extraction (`--firefox-profile`) alongside existing Chrome/env/CLI credential paths.
- Sweetistics client `getCurrentUser` with POST→GET fallback for deployments that disallow POST.
- Colorized help banner and example block; `pnpm bird` builds then runs the CLI; no subcommand shows help.
- JSON5 config files (`~/.config/bird/config.json5`, `./.birdrc.json5`) for defaults like engine and browser profile.
## 0.1.0 — 2025-11-28
- Initial release of `bird`, a CLI for posting tweets and replies via the Twitter/X GraphQL API.
- Supports posting tweets, replying to existing tweets by ID or URL, and reading tweet details.
- Credential resolution priority: CLI flags, environment variables (`AUTH_TOKEN`, `CT0`, fallbacks `TWITTER_AUTH_TOKEN`, `TWITTER_CT0`), then macOS Chrome cookies.
- Includes credential check command and human-friendly output for tweet metadata.
- Bundled TypeScript sources, Vitest coverage, and Biome lint/format configuration.
### Changed
- Default option resolution now honors config files (project then global) before env/CLI overrides.
### Changed
- `whoami` now prefers Sweetistics when an API key is present; otherwise uses Twitter cookies.
### Fixed
- Fallback to scraping the authenticated settings page when Twitter account APIs return 404, so `whoami` still resolves the user.