文件历史

提交图

41 次代码提交

作者 SHA1 备注 提交日期
Ethan Stark da325930ad Fix: Dynamic context window calculation for Sonnet 4.5 (1M tokens) (#107)
* Fix: Dynamic context window calculation for Sonnet 4.5 (1M tokens)

- Create model-context utility with dynamic context window mapping
- Sonnet 4.5 models now use 1M context (800k usable)
- Older models default to 200k context (160k usable)
- Update ContextPercentage and ContextPercentageUsable widgets
- Update renderer.ts flex mode calculations (2 locations)
- Add comprehensive test coverage (14 new tests, 36 total passing)

Fixes incorrect percentage display for Sonnet 4.5:
- Before: 42k tokens showed 21.0% (using 200k denominator)
- After: 42k tokens shows 4.2% (using 1M denominator)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Style: Apply ESLint auto-fixes for consistency

- Standardize indentation to 4 spaces
- Apply formatting rules from eslint.config.js
- No logic changes, formatting only

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Refactor: Code review fixes for context window changes

- Fix misleading test name (line 69 of context-percentage.test.ts)
- Strengthen model ID pattern matching (claude-sonnet-4-5 vs sonnet-4-5)
- Standardize export style (inline export for consistency)

All tests passing (19/19 for affected files)
TypeScript and ESLint checks passed

* Enhance CLAUDE.md: Update piped input example for Sonnet 4.5 and add test commands

- Changed piped input example to reflect the new model ID for Claude 4.5
- Added instructions for running tests and tests in watch mode
- Updated context window metrics description to include dynamic model-based context windows

Improves clarity and usability for developers working with the project.

* Fix: Require [1m] suffix for Sonnet 4.5 1M context window detection

Address PR feedback that Sonnet 4.5 only has 1M context on API usage
when the model ID includes the [1m] suffix (long context beta access).

Changes:
- Update getContextConfig() to check for [1m] suffix (case-insensitive)
- Models without suffix now safely default to 200K context
- Add comprehensive test coverage for suffix detection
- Update all test fixtures to use correct model ID format
- Document suffix requirement in CLAUDE.md

This ensures conservative behavior - only models with explicit [1m]
suffix receive 1M context allocation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-13 08:53:54 -05:00
Ramiro Rivera 9f26a071a7 FEAT: Support CLAUDE_CONFIG_DIR (#99)
* chore: automatic change from linting

* feat: support CLAUDE_CONFIG_DIR on utilities

* feat: support CLAUDE_CONFIG_DIR from the main app UI

* fix: reduce duplication and handle installation using new constants

* feat: missed one place using hardcoded path

* chore: update CLAUDE.md

* docs: Update README
2025-10-07 23:36:13 -04:00
Matthew Breedlove d9ee110fc7 Version bump and README update 2025-09-19 01:30:23 -04:00
Matthew Breedlove bf269e1f63 Version bump and README update 2025-09-18 21:27:21 -04:00
Matthew Breedlove 2842f856e9 Version bump and README update 2025-09-17 22:38:54 -04:00
Nuno Salvação 3bc8e225f4 Update documentation with Windows-specific details (#82) 2025-09-16 01:41:49 -04:00
Alex Newman 7bb53d11e5 TypeDoc Docs (#75)
* Initial plan

* Add TypeDoc documentation generation system

Co-authored-by: thedotmack <683968+thedotmack@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: thedotmack <683968+thedotmack@users.noreply.github.com>
2025-09-11 17:12:34 -04:00
Matthew Breedlove 679bdac86e Version bump and README update 2025-08-31 03:04:15 -04:00
Matthew Breedlove dade396de1 Version bump and README update 2025-08-28 09:37:13 -04:00
Matthew Breedlove 698bdb7f1a Updating version and README for 2.0.10 2025-08-27 11:08:48 -04:00
Matthew Breedlove 19d739c7fd Add ClaudeLog badge to README 2025-08-25 03:52:37 -04:00
ProCreations-Official 015c1f0b1c Update README.md 2025-08-24 14:07:46 -04:00
Matthew Breedlove b46319c4e2 Adding powerline widget auto-alignment toggle 2025-08-24 00:22:22 -04:00
Matthew Breedlove bbf50be1b0 Standardize naming convention -> status items and items are now widgets 2025-08-21 02:56:10 -04:00
Matthew Breedlove 8e6b1013a1 Update readme and bump version to 2.0.7 2025-08-21 02:02:19 -04:00
Matthew Breedlove 39dbc2b70b Update ccusage link in readme 2025-08-20 14:27:55 -04:00
Matthew Breedlove d1ba0c0be5 Adding block timer widget, miscellaneous UI improvements 2025-08-18 02:40:34 -04:00
Matthew Breedlove f19c24a39d Update ccusage example to use @latest syntax for npx to ensure the version with statusline support is retrieved 2025-08-17 21:53:41 -04:00
Matthew Breedlove 7782e8b455 Add descriptive error handling to CustomCommand, update README, fix Uninstall Emoji that was rendering incorrectly, fix Item Editor line color for consistency, fix version number display 2025-08-17 20:15:54 -04:00
Matthew Breedlove 365b64092a Powerline capability, better color support, custom colors, multiple install options, Output Style widget, UI cleanup 2025-08-17 04:12:34 -04:00
Matthew Breedlove bd7010fcd2 Adding Awesome Claude Code badge 2025-08-12 15:55:28 -04:00
Matthew Breedlove 39b472b8dd Center ascii art 2025-08-12 15:45:41 -04:00
Matthew Breedlove 9b81325bc5 Add ASCII art to readme 2025-08-12 15:43:40 -04:00
Matthew Breedlove 572fcb81bd Update readme with terminal width options 2025-08-12 15:15:38 -04:00
Matthew Breedlove 87bb690461 Readme updates and removing external production dependencies 2025-08-12 14:45:44 -04:00
Matthew Breedlove 4465ac8053 Couple bug fixes relating to colors 2025-08-11 18:10:33 -04:00
Matthew Breedlove 7b4c775c8d Readme update 2025-08-11 16:35:56 -04:00
Matthew Breedlove 46436ea5b0 Added global option to override foreground color, added VSCode warning for color issues 2025-08-11 16:33:19 -04:00
Matthew Breedlove 6eafe54614 Background colors, bold toggle, global options 2025-08-11 15:33:06 -04:00
Matthew Breedlove fd4f92230b Merge pull request #7 from Piebald-AI/bl-ue-patch-1
Add a related projects section
2025-08-11 11:44:05 -04:00
bl-ue 9423acde46 Add a related projects section 2025-08-11 08:46:26 -06:00
Matthew Breedlove 61cb630af1 Adding context percentage (usable) as a widget 2025-08-11 05:26:49 -04:00
Matthew Breedlove 67567e5d5e Updated custom commands to receive statusline json via stdin, added configurable timeout to custom commands 2025-08-11 03:57:44 -04:00
Matthew Breedlove 2f37b389e7 Documentation update re: custom command update frequency 2025-08-11 00:16:53 -04:00
Matthew Breedlove 4a3cc8f8e2 Fix color rendering in statusline editor list 2025-08-10 01:27:17 -04:00
Matthew Breedlove ad05b0ddc0 Adding demo and updating readme 2025-08-10 01:10:53 -04:00
Matthew Breedlove d9dd43a15c Updating readme 2025-08-08 23:27:48 -04:00
Matthew Breedlove 54f047c132 Terminal width detection, multi line support, session timer widget 2025-08-08 17:22:54 -04:00
Matthew Breedlove ade821fa2e Modify to use @latest 2025-08-08 13:52:11 -04:00
Matthew Breedlove d7a7a40437 Updating README 2025-08-08 08:01:29 -04:00
Matthew Breedlove 07528510be Code cleanup and README 2025-08-08 07:51:01 -04:00