upstream to fork#4
Merged
Merged
Conversation
Fix hardcoded token counts in streaming responses
- Add CI workflow that runs on pushes to master and PR events - Include PR synchronization trigger as requested - Run linting, type checking, tests, and build steps - Use Bun setup consistent with existing release workflow - Fix branch name to use 'master' instead of 'main'
- Add missing newlines in build commands section - Improve readability of documentation
Remove border-radius overrides and implement circular border styling for the loading spinner to display correctly as a rotating circle instead of a square or rounded rectangle.
- Add Copilot API Usage Dashboard as static HTML page - Include interactive UI with loading spinner and data visualization - Add GitHub Actions workflow for automatic Pages deployment - Configure OpenCode MCP with Playwright for testing
There was a problem hiding this comment.
Pull Request Overview
This PR appears to be syncing changes from an upstream repository to a fork, updating build tools, dependencies, and adding new features including a usage dashboard page and GitHub Actions workflows.
- Migrates from
tsuptotsdownbuild tool across configuration and package files - Adds comprehensive usage tracking with token details and cache information to API responses
- Introduces a new HTML dashboard for visualizing API usage quotas
Reviewed Changes
Copilot reviewed 11 out of 12 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tsdown.config.ts | Changes build tool import from tsup to tsdown |
| tests/create-chat-completions.test.ts | Adds TypeScript error suppression comment for mock fetch |
| src/services/copilot/create-chat-completions.ts | Extends ChatCompletionChunk interface with detailed usage tracking |
| src/routes/messages/stream-translation.ts | Updates usage token mapping to use actual chunk data instead of hardcoded values |
| src/routes/messages/anthropic-types.ts | Expands usage interface to include input tokens and cache metrics |
| pages/index.html | Adds complete HTML dashboard for API usage visualization |
| package.json | Updates version, dependencies, and build script to use tsdown |
| opencode.json | Replaces context7 MCP configuration with playwright setup |
| AGENTS.md | Fixes formatting issues in markdown documentation |
| .github/workflows/deploy-pages.yml | Adds GitHub Pages deployment workflow |
| .github/workflows/ci.yml | Adds continuous integration workflow |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
|
||
| on: | ||
| push: | ||
| branches: [master] |
There was a problem hiding this comment.
The branch name 'master' is inconsistent with the deploy-pages.yml workflow which uses 'main'. This should be 'main' to match the actual default branch.
Suggested change
| branches: [master] | |
| branches: [main] |
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.
upstream to fork