fix(research): document --k alias for --limit and align research index skill

GE
5d ago
+42-7

Summary

Fixes #391

Documents --k <number> as an alias for --limit in CLI help output and aligns the firecrawl-research-index skill CLI instructions to use --limit <number>.

Changes

  • CLI (src/index.ts): Removed .hideHelp() and added the description 'Alias for --limit' for --k <number> on search-papers, related-papers, read-paper, developer, and gov commands so that the option is documented in --help.
  • Skill documentation (skills/firecrawl-research-index/SKILL.md): Updated the CLI invocations for firecrawl research search-papers and firecrawl research related-papers from [--k <number>] to [--limit <number>] to align with the CLI's standard option flags and help output.
  • Regression test (src/__tests__/cli-argv.test.ts): Added tests verifying that --k <number> is displayed with 'Alias for --limit' alongside --limit <number> in the help output for research subcommands (search-papers, related-papers, read-paper).

Tests

  • pnpm run type-check: Verified all TypeScript types pass with zero errors (tsc --noEmit).
  • npx vitest run src/__tests__/cli-argv.test.ts: 15/15 tests passed, including the new regression test verifying the help text.
  • pnpm run test: All 51 test suites and 931 unit/integration tests passed.
  • pnpm run build: Successfully built the project (tsc).
  • pnpm run format:check: Verified code formatting with prettier.

Summary by cubic

Documents the hidden --k alias as 'Alias for --limit' in CLI help output and aligns the firecrawl-research-index skill instructions to use --limit.

  • --k <number> now appears in --help output for search-papers, related-papers, read-paper, developer, and gov commands instead of being hidden.
  • The skill document now instructs using --limit <number> instead of --k <number>, removing the mismatch with CLI help and the -k API key flag.
  • Added regression tests verifying the alias is documented in help output.