Add Kilo, OpenCode, WorkBuddy, pi-agent, Qwen providers - #8
Merged
Conversation
…roject for consistency across providers; update related tests
…tive deltas - Introduced support for tracking file modifications through patches, including confirmation of successful patch applications via new event types. - Updated token usage calculations to utilize cumulative deltas, ensuring accurate reporting even in cases of counter resets. - Enhanced the `StableEntryID` function to derive IDs from event details rather than file paths, preventing double-counting during file moves. - Added tests to validate the new functionality, including handling of patch application success and failure scenarios. - Implemented relative path handling for uploaded entities and files to obscure local filesystem structure.
- Updated OpenCode message structure to include working directory path. - Refactored line counting logic to a dedicated function in the usage package. - Improved project path extraction from CWD, ensuring it handles various edge cases. - Enhanced OpenCode provider directory resolution for cross-platform compatibility. - Added comprehensive tests for OpenCode usage scenarios, including token billing and file change tracking. - Introduced new test cases to validate behavior with user messages and tool interactions.
…unctionality - Implemented OpenCode provider for loading usage entries from OpenCode data sources. - Created pi-agent provider to handle usage entries specific to the pi-agent. - Developed Qwen provider for loading usage entries from Qwen chat files. - Added shared base functionality for providers to manage paths and filters. - Implemented entry loading logic for each provider, including parsing and filtering. - Added unit tests for each provider to ensure correct entry loading and validation. - Introduced shared utilities for handling file operations and JSON parsing.
…a and agentdb - Deleted the shared package which contained various utility functions and types. - Moved relevant functions to the new agentdata package for handling JSON and file operations. - Introduced agentdb package for SQLite database interactions, including opening connections and querying. - Added providertest package for shared testing utilities across provider tests. - Updated usageprovider to utilize new base functionality for entry management. - Ensured all previous functionalities are preserved and properly integrated into the new structure.
…e rejection logging
- Introduced tests for the Copilot provider, validating session store entries and usage events. - Added tests for the Gemini provider, ensuring correct handling of checkpoint formats and message IDs. - Implemented streaming tests for usage scanning, confirming that appended records are processed correctly. - Created tests for agent library functionality, verifying upload and scan behaviors without prior state. - Enhanced parallel sync tests to ensure efficient batching and upload of events during scanning.
The /admin/releases import-and-publish step no longer exists; the update server reads GitHub Releases directly, so pushing a tag ships to clients immediately. Also document the tag pattern, asset-name contract, and ldflags version stamping.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds five usage providers and consolidates the shared package into
agentdata/agentdb.sharedpackage, migrating functionality toagentdataandagentdbusage.UnknownProjectreplaces the"unknown"string across providersTestCompareWithCcusageplus broader cross-provider usage testsTest plan
go vet ./...cleango test -race ./...passes, 28 packages, no failuresCut as v0.1.6 after merge.
🤖 Generated with Claude Code