Skip to content

Releases: foxswat/opencode-qwen-auth

v0.3.4

Choose a tag to compare

@foxswat foxswat released this 28 Jan 13:54
7f47222

What's Changed

CLI Installer Safety Features

  • Preview mode: Shows before/after config diff before making changes
  • Timestamped backup: Creates opencode.json.YYYYMMDD-HHMMSS.bak before modifying
  • --yes flag: Skip confirmation prompt for CI/automation

Cleanup

  • Removed migration notice logic (no longer needed)
  • Fixed schema warnings by removing contextWindow from README examples

Full Changelog

v0.3.3-beta.0...v0.3.4

Closes #13

v0.3.3-beta.0

v0.3.3-beta.0 Pre-release
Pre-release

Choose a tag to compare

@foxswat foxswat released this 27 Jan 14:07
ba7d91d

Fix: OpenCode Startup Hang (Issue #13)

This beta release fixes the startup hang / blank TUI issue when the plugin's migration notice blocks initialization.

Changes

  • Make migration notice toast non-blocking (fire-and-forget)
  • Add 1500ms timeout to prevent indefinite hangs
  • Gracefully handle toast errors without crashing
  • Add regression tests for hanging toast scenarios

Install

bunx opencode-qwen-auth@beta install
# or
npm install opencode-qwen-auth@beta

Workaround (for older versions)

If you can't upgrade, add to ~/.config/opencode/qwen.json:

{ "migration_notice_shown": true }

Fixes #13

v0.3.2

Choose a tag to compare

@foxswat foxswat released this 26 Jan 03:51
84b100f

Bug Fixes

  • Migration notice now only shows once to upgrading users
  • New users (without existing accounts) never see the notice
  • Notice displays as Toast banner instead of console spam
  • Flag persists to user config to prevent repeats

See PR #11 for details.

v0.3.1

Choose a tag to compare

@foxswat foxswat released this 20 Jan 23:56
18e296e

Bug Fixes

  • Fix floating point precision in test assertions causing CI failures on some platforms

Full Changelog: v0.3.0...v0.3.1

v0.3.0

Choose a tag to compare

@foxswat foxswat released this 20 Jan 17:30
6614655

What's New

Hybrid Account Rotation Strategy

This release introduces a sophisticated hybrid account rotation strategy for smarter load distribution and proactive rate limit prevention.

Key Features

  • HealthScoreTracker: Tracks account wellness (0-100)

    • Success rewards: +1 point
    • Rate limit penalty: -10 points
    • Failure penalty: -20 points
    • Passive recovery: +2 points/hour when rested
  • TokenBucketTracker: Client-side rate limiting

    • 50 tokens max, 6/min regeneration
    • Prevents hitting server 429s proactively
  • Hybrid Selection Algorithm

    • Score = (health × 2) + (tokens × 5) + (freshness × 0.1)
    • Soft fallback: selects best available even if below threshold
  • PID Offset: Optional load distribution for parallel sessions

    • Set pid_offset_enabled: true in config

Migration

Default rotation_strategy changed from "round-robin" to "hybrid". A one-time notice is shown for users upgrading.

To keep previous behavior, set in your config:

{
  "rotation_strategy": "round-robin"
}

Test Coverage

  • 133 tests passing across all platforms (ubuntu, macos, windows)
  • 68 new tests for rotation system
  • 9 new tests for migration behavior

Full Changelog: v0.2.0...v0.3.0

v0.2.0 - CLI Installer

Choose a tag to compare

@foxswat foxswat released this 18 Jan 20:59

What's New

CLI Installer

One-command installation for OpenCode:

bunx opencode-qwen-auth install
# or
npx opencode-qwen-auth install

This automatically adds the plugin and Qwen provider configuration to your opencode.json.

Changes

  • Add bunx/npx opencode-qwen-auth install command
  • Automatically configures opencode.json with plugin and Qwen provider
  • Supports --global flag for user-level config
  • Includes 9 unit tests for CLI functionality
  • Update README with Quick Install section

Full Changelog: v0.1.3...v0.2.0

v0.1.3

Choose a tag to compare

@foxswat foxswat released this 18 Jan 20:33

v0.1.3

Fixes

  • Fixed CI badge URL in README (anthropics → foxswat)

Full Changelog

v0.1.2...v0.1.3

v0.1.2

Choose a tag to compare

@foxswat foxswat released this 18 Jan 20:30

v0.1.2

Changes

  • Test trusted publishing (OIDC) - no tokens required
  • Provenance attestation automatically generated

Full Changelog

v0.1.1...v0.1.2

v0.1.1

Choose a tag to compare

@foxswat foxswat released this 18 Jan 13:50

v0.1.1

Fixes

  • Fixed CI workflow to use Bun latest (supports new lockfile format)
  • Removed unnecessary npm compatibility job

Full Changelog

v0.1.0...v0.1.1

v0.1.0 - Initial Release

Choose a tag to compare

@foxswat foxswat released this 18 Jan 03:56

Initial Release

Features

  • Device Flow OAuth with PKCE for Qwen authentication
  • Multi-account support with round-robin/sequential rotation
  • Proactive token refresh before expiry
  • Rate limit detection (429) with automatic account rotation
  • API translation: OpenAI Responses API ↔ Chat Completions API
  • Full SSE streaming support

Documentation

  • Comprehensive README with configuration options
  • CONTRIBUTING, SECURITY, and CODE_OF_CONDUCT guides
  • CHANGELOG for version tracking

Development

  • Built with Bun for fast development and testing
  • 41 tests covering auth, tokens, transforms, and accounts
  • GitHub Actions CI for multi-platform testing
  • Biome linter for code quality