Task summary
Add a commit-echo config command that displays the current configuration (provider, model, endpoint, history size) with the API key masked (e.g., sk-••••••••).
Why this is a good first issue
This task is self-contained, requires adding only one new command file, and follows the same pattern as the existing init, suggest, and history commands. It touches no core logic—just CLI wiring and reading the config file.
Suggested files or areas
src/commands/config.ts — new command implementation
src/index.ts — register the new command in the CLI program
src/config/store.ts — loadConfig is already available
Acceptance criteria
Extra context
- See
src/commands/history.ts for a minimal example of reading and displaying config data
- The
Config interface is defined in src/types.ts
- API key masking: display only the first 2–4 characters followed by
••••
Task summary
Add a
commit-echo configcommand that displays the current configuration (provider, model, endpoint, history size) with the API key masked (e.g.,sk-••••••••).Why this is a good first issue
This task is self-contained, requires adding only one new command file, and follows the same pattern as the existing
init,suggest, andhistorycommands. It touches no core logic—just CLI wiring and reading the config file.Suggested files or areas
src/commands/config.ts— new command implementationsrc/index.ts— register the new command in the CLI programsrc/config/store.ts—loadConfigis already availableAcceptance criteria
commit-echo configprints the current provider, model, endpoint, history size, and API key (masked)commit-echo configwhen no config exists shows a helpful message suggestingcommit-echo initnpm run buildsucceeds with no errorsExtra context
src/commands/history.tsfor a minimal example of reading and displaying config dataConfiginterface is defined insrc/types.ts••••