Skip to content

Add Prometheus support#132

Open
luisbrandao wants to merge 19 commits intoericc-ch:masterfrom
luisbrandao:master
Open

Add Prometheus support#132
luisbrandao wants to merge 19 commits intoericc-ch:masterfrom
luisbrandao:master

Conversation

@luisbrandao
Copy link

This pr creates a /metrics endpoint for grafana monitoring.

image image image

jkorsvik and others added 6 commits October 13, 2025 16:50
- Add --enterprise-url flag to auth and start commands
- Interactive auth prompts for enterprise host configuration
- Persist enterprise URL in ~/.local/share/copilot-api/enterprise_url
- Update OAuth flows to use enterprise endpoints (device code, access token)
- Update Copilot API calls to use enterprise API endpoints
- Add URL normalization helpers and validation
- Add comprehensive unit tests for URL helpers
- Update README.md and CLAUDE.md with enterprise usage examples
- Backwards compatible: defaults to github.com when no enterprise configured

🤖 Generated with [Claude Code](https://claude.com/claude-code)
- Update copilotBaseUrl to use copilot-api.{enterprise} for GHE
- Add 6 new tests for copilotBaseUrl with enterprise configuration
- Update CLAUDE.md with correct enterprise endpoint documentation
- Fixes 'Failed to get models' error for GitHub Enterprise users

🤖 Generated with [Claude Code](https://claude.com/claude-code)
- Remove verbose documentation files
- Simplify CLAUDE.md to concise format
- Add CHANGELOG.md with version 0.8.0 release notes
- Bump package.json version to 0.8.0
- Remove unused looksLikeHost() function and tests
- Remove unnecessary type casts in url.ts
- Centralize enterprise URL reading from state
- Replace typeof checks with consistent function calls
- Update GITHUB_BASE_URL and GITHUB_API_BASE_URL to read from state.enterpriseUrl
- Remove enterpriseUrl parameters from service functions (getDeviceCode, pollAccessToken)
- Update integration tests to set state.enterpriseUrl instead of passing parameters
- Improve code consistency and maintainability

All 64 tests passing. TypeScript compiles successfully.

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

Co-Authored-By: Claude <noreply@anthropic.com>
@luisbrandao luisbrandao changed the title Grafana Add Prometheus support Oct 16, 2025
luisbrandao and others added 13 commits October 28, 2025 16:30
…g order when stream=false and exclude reasoning_opaque from token calculation in calculateMessageTokens
- Add signature field to AnthropicThinkingBlock
- Add thinkingBlockOpen state tracking
- Refactor stream translation with modular handlers
- Support reasoning_opaque and reasoning_text fields
- Exclude reasoning_opaque from token calculation
- Set Bun server idleTimeout to 0
- Update tests for reasoning support

Merged from caozhiyuan/copilot-api feature/chat-completions-reasoning branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments