• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

umputun / mpt
88%
master: 87%

Build:
Build:
LAST BUILD BRANCH: feature/multiple-custom-providers
DEFAULT BRANCH: master
Repo Added 03 Apr 2025 05:44AM UTC
Token kVBRNXkTsMZagy8JKouRwPmlc3O5gJ66h regen
Build 168 Last
Files 16
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH refs/tags/v0.12.0
branch: refs/tags/v0.12.0
CHANGE BRANCH
x
Reset
Sync Branches
  • refs/tags/v0.12.0
  • add-claude-github-actions-1754418829365
  • consensus-feature
  • dependabot/github_actions/goreleaser/goreleaser-action-6
  • dependabot/go_modules/github.com/fatih/color-1.18.0
  • dependabot/go_modules/github.com/go-pkgz/lgr-0.12.0
  • dependabot/go_modules/github.com/google/generative-ai-go-0.19.0
  • dependabot/go_modules/github.com/jessevdk/go-flags-1.6.1
  • dependabot/go_modules/github.com/mark3labs/mcp-go-0.20.0
  • dependabot/go_modules/github.com/mark3labs/mcp-go-0.20.1
  • dependabot/go_modules/github.com/sashabaranov/go-openai-1.38.1
  • dependabot/go_modules/github.com/stretchr/testify-1.10.0
  • dependabot/go_modules/golang.org/x/crypto-0.31.0
  • dependabot/go_modules/golang.org/x/net-0.36.0
  • dependabot/go_modules/google.golang.org/api-0.228.0
  • dependabot/go_modules/google.golang.org/api-0.229.0
  • feature/add-mcp-support
  • feature/auto-branch-diff
  • feature/force-flag-and-build-exclusion-fix
  • feature/human-friendly-size-values
  • feature/improve-gitignore-handling
  • feature/mix-command
  • feature/multiple-custom-providers
  • git-integration
  • implement-todo-improvements
  • master
  • paskal/dependabot-disable-updates
  • refactor-code-structure
  • refactor/provider-initialization
  • refs/tags/v0.1.0
  • refs/tags/v0.1.1
  • refs/tags/v0.1.2
  • refs/tags/v0.10.0
  • refs/tags/v0.10.1
  • refs/tags/v0.10.2
  • refs/tags/v0.11.0
  • refs/tags/v0.11.1
  • refs/tags/v0.11.2
  • refs/tags/v0.11.3
  • refs/tags/v0.12.1
  • refs/tags/v0.2.0
  • refs/tags/v0.2.1
  • refs/tags/v0.2.2
  • refs/tags/v0.3.0
  • refs/tags/v0.3.2
  • refs/tags/v0.3.3
  • refs/tags/v0.4.0
  • refs/tags/v0.5.0
  • refs/tags/v0.5.1
  • refs/tags/v0.6.0
  • refs/tags/v0.7.0
  • refs/tags/v0.8.0
  • refs/tags/v0.8.1
  • refs/tags/v0.9.0
  • refs/tags/v0.9.1
  • refs/tags/v0.9.2
  • refs/tags/v0.9.3

12 Aug 2025 03:42AM UTC coverage: 87.506% (+1.4%) from 86.12%
16898377291

push

github

web-flow
Add consensus mode for multi-provider agreement checking (#27)

* feat: add consensus mode for multi-provider agreement checking

- Add --consensus flag to enable consensus checking with mix mode
- Add --consensus.attempts flag for configuring retry attempts (1-5)
- Implement iterative refinement when providers disagree
- Add comprehensive test coverage for consensus functionality
- Update README with consensus mode documentation and examples
- Improve error handling and validation for consensus options

* refactor: improve function parameter organization with request structs

- Extract consensus functionality into separate pkg/consensus package
- Replace functions with 4+ parameters with request/response struct patterns:
  * LoadContent: use LoadRequest struct for cleaner parameter passing
  * shouldExcludeFile: use ExclusionRequest struct
  * Pattern processors: use PatternRequest struct for consistency
  * processMixMode: use ProcessMixRequest struct
  * mixResults: use MixRequest/MixResponse structs
- Remove unnecessary wrapper function initializeProvider
- Consolidate consensus logic in dedicated manager with proper encapsulation
- All tests updated and passing with race detection
- Linter shows 0 issues

* test: improve test coverage and replace all manual mocks with moq-generated ones

Replace manual mocks with moq-generated mocks:
- Add moq generation directives for Provider interface across all packages
- Replace all manual mock implementations in consensus, mix, and provider packages
- Update retry_test.go to use moq-generated mocks instead of manual mockProvider struct
- Ensure consistent testing patterns using generated mocks throughout codebase

Improve test coverage:
- Add comprehensive consensus test cases including rerun scenarios and error handling
- Add test for consensus error continuation in mix package (line 86 coverage)
- Add test cases for consensus achieved after rerun
- Fix TestRetryableProvider_FormattedError to use retryable... (continued)

400 of 488 new or added lines in 7 files covered. (81.97%)

1821 of 2081 relevant lines covered (87.51%)

21.28 hits per line

Relevant lines Covered
Build:
Build:
2081 RELEVANT LINES 1821 COVERED LINES
21.28 HITS PER LINE
Source Files on refs/tags/v0.12.0
  • Tree
  • List 15
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
16898377291 refs/tags/v0.12.0 Add consensus mode for multi-provider agreement checking (#27) * feat: add consensus mode for multi-provider agreement checking - Add --consensus flag to enable consensus checking with mix mode - Add --consensus.attempts flag for configuring ret... push 12 Aug 2025 03:46AM UTC web-flow github
87.51
See All Builds (146)

Badge your Repo: mpt

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc