Skip to content

Commit a682b8b

Browse files
chore: release v0.0.2
1 parent cfd91d6 commit a682b8b

3 files changed

Lines changed: 231 additions & 103 deletions

File tree

CHANGELOG.md

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
- [ ] GitHub Copilot detailed usage (pending API availability)
1414
- [ ] Web-based configuration UI
1515

16-
## [0.0.2] - 2026-01-19
17-
18-
### rc4 Improvements
19-
20-
- **Packaging Fix**: Added `schemas/` directory to npm package, which is required for configuration validation.
21-
- **Build Fix**: Resolved issue where build artifacts were sometimes nested in `dist/src` due to stray files in the project root.
22-
- **Clean Build**: Updated build script to automatically clear `dist/` before each build to ensure no stale files remain.
23-
24-
### rc3 Improvements
25-
26-
- **Release Candidate 3**: Version bump for final testing before stable 0.0.2 release.
27-
28-
### rc2 Improvements
29-
30-
- **Configurable Reset Threshold**: Added `historyResetThreshold` option (0-100) to `QuotaConfig` to allow fine-tuning of quota reset detection in `HistoryService`.
31-
- **Improved Pattern Matching**: Relaxed token splitting in `QuotaService` to better handle common ID characters like hyphens and underscores.
32-
- **Consistent Defaults**: Aligned `showUnaggregated` default to `false` across implementation, interface documentation, and JSON schema.
33-
- **ConfigLoader Refinement**:
34-
- Switched `validateConfig` to a synchronous implementation for better predictability during initialization.
35-
- Enhanced deep cloning of `aggregatedGroups` to prevent shared array references between default and user configurations.
36-
- **Type Safety**: Improved type safety in plugin initialization by replacing `any` with `unknown` for error handling.
37-
- **Test Suite Enhancements**: Updated all unit test mocks to support the new `IHistoryService` interface, ensuring 100% test pass rate.
16+
## [0.0.2] - 2026-01-20
3817

3918
### Added
4019

20+
- `historyResetThreshold` option (0-100) to allow fine-tuning quota reset detection in `HistoryService`
4121
- End-to-end injection test that runs the OpenCode CLI when `OPENCODE_QUOTAS_E2E=1` is set
4222
- Integration tests for default configuration behavior to prevent documentation drift
4323
- Schema validation tests using AJV for configuration validation
@@ -48,36 +28,46 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4828
### Changed
4929

5030
- **Inline footer injection**: Switch from idle-based PATCH injection to inline injection via `experimental.text.complete`, modifying `output.text` directly for immediate, reliable footer display
31+
- Relax token splitting in `QuotaService` to better handle common ID characters like hyphens and underscores
32+
- Align `showUnaggregated` default to `false` across implementation, interface documentation, and JSON schema
33+
- Switch `validateConfig` to synchronous validation for predictable initialization
34+
- Deep clone `aggregatedGroups` defaults to prevent shared array references between default and user configurations
5135
- Filter out internal/test Antigravity quotas (e.g. "chat 12345", "rev123") by default to reduce noise
5236
- Extract `SHORT_WINDOW_FALLBACK_RATIO` constant in prediction engine for better code clarity
5337
- Comprehensive test suite expanded from 46 to 175 tests with 383 assertions
5438
- Updated default `progressBar.color` to `false` (was incorrectly documented as `true`)
55-
- Clarified experimental GitHub Copilot provider status in documentation
5639

5740
### Fixed
5841

42+
- Include `schemas/` directory in npm package, required for configuration validation
43+
- Resolve issue where build artifacts were sometimes nested in `dist/src` due to stray files in the project root
44+
- Updated build script to automatically clear `dist/` before each build to ensure no stale files remain
5945
- Skip footer injection for reasoning/subagent steps and incomplete messages, keeping quota footers limited to final responses only
6046
- Only inject footer when message is complete (`finish === "stop"`) to prevent duplicate injections during streaming
6147
- Fix footer injection patch payload to include required discriminator fields (`type: "text"`)
6248
- Ensure ANSI colorization strictly respects `config.color` and is disabled by default
6349
- Use build configuration (`tsconfig.build.json`) that emits to `dist/`
6450
- Add missing `predictionShortWindowMinutes` default to `DEFAULT_CONFIG`
65-
- Correct README to reflect `filterByCurrentModel` default is `false`
6651
- Fix overlapping aggregation patterns with token-aware matching and regex/glob support
67-
- Remove unused QuotaTool and stale docs
68-
- Fix unused imports in logger.ts
69-
- Fix `test-ag.ts` outdated API signature
52+
- Fix unused imports in `src/logger.ts`
53+
- Fix `tests/test-ag.ts` outdated API signature
7054
- Add missing `patterns` and `providerId` fields to aggregatedGroups schema
7155
- Fix schema mismatch between 'groups' vs 'aggregatedGroups'
7256
- Fix `showUnaggregated` default causing empty quota display
57+
- Improved type safety in plugin initialization by replacing `any` with `unknown` for error handling
58+
- Updated all unit test mocks to support the new `IHistoryService` interface
7359

7460
### Documentation
7561

7662
- Update DESIGN.md architecture diagram to match implementation
7763
- Update AGENTS.md with complete project structure
64+
- Clarified experimental GitHub Copilot provider status in documentation
65+
- Document `predictionShortWindowMinutes` in README config reference
66+
- Correct README to reflect `filterByCurrentModel` default is `false`
7867

7968
### Removed
8069

70+
- Removed unused QuotaTool and stale docs
8171
- Removed unused `recentChecks` field in `PluginState`
8272

8373
## [0.0.1] - 2026-01-13

package-lock.json

Lines changed: 213 additions & 75 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opencode-quotas",
3-
"version": "0.0.2-rc4",
3+
"version": "0.0.2",
44
"description": "Opencode quota hub plugin for Antigravity and Codex",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)