Skip to content

Conversation

@regenrek
Copy link
Owner

@regenrek regenrek commented Nov 18, 2025

Changes

This PR adds a new --no-summary flag and refactors the model database handling.

Features Added

  • Added --no-summary CLI flag to disable the token/model summary box at the end of output
  • Updated SDK config types to support noSummary option
  • Added test coverage for the new flag
  • Updated README with usage examples

Refactoring

  • Removed model database dependency (modeldb.json and related code)
  • Simplified model info formatting
  • Updated CLI options handling
  • Cleaned up unused model database code from SDK
  • Added --stdout option for direct console output
  • Enhanced logging to conditionally display format information based on verbosity level

Usage

codefetch --tracked-models gpt-4,claude-3-opus --no-summary  # hide summary box
codefetch --stdout  # output directly to console

Testing

  • ✅ Unit tests added and passing
  • ✅ Config types updated in both CLI and SDK
  • ✅ Documentation updated
  • ✅ Model database removal verified

- Add --no-summary CLI flag to hide token/model summary box
- Update config types in SDK (config.ts and config-worker.ts)
- Add test coverage for --no-summary flag
- Update README with --no-summary usage examples
@github-actions
Copy link

github-actions bot commented Nov 18, 2025

🧪 SDK Test Results

Some checks failed

Check Status
Linting ❌ skipped
Type Check ❌ skipped
Tests ❌ skipped
Build ❌ skipped

View full logs

- Deleted the model database file and related functions to streamline the codebase.
- Updated the CLI to support a new `--stdout` option for direct output to the console.
- Adjusted the `trackedModels` configuration to be empty by default and modified related functions to accommodate this change.
- Enhanced logging to conditionally display format information based on verbosity level.
- Updated tests to reflect changes in argument parsing and model tracking functionality.
@regenrek regenrek changed the title feat: add --no-summary flag to disable token summary box feat: add --no-summary flag and refactor model database Nov 18, 2025
@regenrek regenrek merged commit a6415b4 into main Nov 18, 2025
1 of 10 checks passed
@regenrek regenrek deleted the feat/no-summary-cmd branch November 18, 2025 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants