feat: add home timeline command

Add `bird home` command to fetch the authenticated user's home timeline.

- Supports "For You" feed (default) and "Following" feed (--latest)
- Uses HomeTimeline and HomeLatestTimeline GraphQL operations
- Includes count option (-n), JSON output, and pagination

Usage:
  bird home           # Get "For You" feed
  bird home --latest  # Get "Following" (chronological) feed
  bird home -n 50     # Fetch 50 tweets
This commit is contained in:
George Zhang
2026-01-11 11:35:57 +00:00
committed by Peter Steinberger
parent 05e54350c7
commit ba7b00eb29
8 changed files with 256 additions and 1 deletions
+3
View File
@@ -2,6 +2,7 @@ import { Command } from 'commander';
import { registerBookmarksCommand } from '../commands/bookmarks.js';
import { registerCheckCommand } from '../commands/check.js';
import { registerHelpCommand } from '../commands/help.js';
import { registerHomeCommand } from '../commands/home.js';
import { registerListsCommand } from '../commands/lists.js';
import { registerPostCommands } from '../commands/post.js';
import { registerQueryIdsCommand } from '../commands/query-ids.js';
@@ -28,6 +29,7 @@ export const KNOWN_COMMANDS = new Set([
'likes',
'lists',
'list-timeline',
'home',
'help',
'whoami',
'check',
@@ -131,6 +133,7 @@ export function createProgram(ctx: CliContext): Command {
registerBookmarksCommand(program, ctx);
registerUnbookmarkCommand(program, ctx);
registerListsCommand(program, ctx);
registerHomeCommand(program, ctx);
registerUserCommands(program, ctx);
registerCheckCommand(program, ctx);