Commit Graph
1908 Commits
Author SHA1 Message Date
RCD f030ec3384 feat(thinking): add unified thinking configuration package
Port the internal/thinking package from CLIProxyAPI for unified thinking
configuration processing across all AI providers.

Features:
- Core types: ThinkingConfig, ThinkingMode, ThinkingLevel, SuffixResult
- Suffix parsing: model-name(16384) or model-name(high) syntax
- Validation: auto-conversion between budget/level formats, clamping
- Provider appliers: claude, gemini, antigravity, openai, codex
- Config extraction: extract thinking config from various request formats
- Stripping: remove thinking config for non-supporting models

Registry updates:
- Add UserDefined field to ModelInfo for passthrough behavior
- Add LookupModelInfo function for model capability lookup
v0.3.0-dev-0.1
2026-01-19 06:36:22 +07:00
RCD 22f91dc48e feat(translator): add reasoning state tracking and improve reasoning summary handling
Improves handling of reasoning summaries in OpenAI Responses API translation.
Cherry-picked from CLIProxyAPI.
2026-01-19 06:09:19 +07:00
RCD ed136fef5d refactor(logging): centralize log directory resolution logic
- Add ResolveLogDirectory() for consistent log path resolution
- Add SetLogLevel() for string-based log level configuration
- Update ConfigureLogOutput() to take *config.Config parameter
- Update all callers to use simplified API

Cherry-picked from CLIProxyAPI with adaptations.
2026-01-19 06:07:51 +07:00
RCD 630102632f fix(antigravity): convert non-string enum values to strings for Gemini API
Gemini API requires enum values to be strings. This adds NormalizeEnumValues
to convert numeric or boolean enum values to their string representations.
Cherry-picked from CLIProxyAPI.
2026-01-19 06:01:28 +07:00
RCD 2e490cf8f2 fix(translator): add check for empty text to prevent invalid serialization
Prevents sending empty text fields to Gemini and Antigravity APIs which
could cause invalid JSON serialization. Cherry-picked from CLIProxyAPI.
2026-01-19 06:00:12 +07:00
RCD 7beb9b788a docs: add auto-update and rollback documentation
- Add Auto-Updates and Rollback Support features to Features list
- Add Auto-Updates section with configuration options
- Add Rollback Support section explaining crash detection and recovery
- Document tray menu options for updates and rollback
2026-01-18 08:22:20 +07:00
RCD e845700b9e test(updates): add unit tests for update system
11 tests covering:
- Poller creation, channel setting, start/stop
- Rollback data directory handling
- Rollback info save/load operations
- Health check recording and marking
- Asset platform detection
- Download progress reader
v0.3.0
2026-01-18 07:39:02 +07:00
RCD 2913c4a20e feat(tray): integrate auto-update and rollback features
Tray app integration:
- Health check on startup with auto-rollback trigger
- Background update polling with configurable interval
- One-click update menu item (shown when available)
- Manual rollback menu item in Settings
- Mark healthy after 30s of stable operation
- Graceful cleanup on exit (stop engine, stop poller)
2026-01-18 07:38:37 +07:00
RCD cb53b9ca2a feat(tray): add stability improvements to embedded engine
Enhanced EmbeddedEngine with:
- Panic recovery to prevent tray crashes
- Graceful shutdown with 10s timeout
- Panic and restart counters for monitoring
- Uptime tracking method
- Better error handling and logging
2026-01-18 07:37:08 +07:00
RCD 3127555850 feat(updates): add rollback support with crash detection
New rollback module for version recovery:
- Version-aware backup metadata tracking
- Platform-specific restore (Windows batch, Unix swap)
- Crash loop detection via startup health monitoring
- Auto-rollback after 3 rapid failures in 30s window
- MarkHealthy() clears failure counter after stable run

Install module updated to save rollback info on update.
2026-01-18 07:34:57 +07:00
RCD 31ca3a2d93 feat(webui): add proactive update notification banner
New UpdateBanner component for dashboard:
- Auto-checks for updates on mount with 2s delay
- Shows dismissible banner when update available
- Session-based dismissal persistence
- Download progress bar during update
- Integrated into App.tsx main layout
2026-01-18 07:34:35 +07:00
RCD 4c3d538979 feat(updates): add background update poller
New poller module for periodic update checks:
- Configurable polling interval
- Channel support (stable/prerelease)
- Callback-based notification system
- Global singleton for tray integration
- Graceful start/stop with context cancellation
2026-01-18 07:34:09 +07:00
RCD 4d14eeb608 feat(config): add auto-update configuration settings
Add UpdatesConfig struct with configurable options:
- auto-check: enable/disable automatic update checks
- check-interval-hours: polling frequency (default 24h)
- auto-download/auto-install: for future automation
- notify-on-update: toast notifications
- channel: stable/prerelease support

Includes helper methods with sensible defaults.
2026-01-18 07:33:31 +07:00
RCD 7fc975198d fix(translator): preserve multiple system prompts in Gemini requests
Cherry-pick from CLIProxyAPI v6.7.7 (f8f3ad8).

Fixes issue where only the last system/developer message was preserved
when multiple were provided. Added systemPartIndex counter to accumulate
parts across all system messages instead of overwriting at index 0.

Also fixed path inconsistency in gemini_openai_request.go where the
array branch incorrectly used request.systemInstruction instead of
system_instruction.

Fixes: router-for-me/CLIProxyAPI#1064
v0.2.9-dev-0.4
2026-01-17 08:10:59 +07:00
RCD 629bdad1c9 chore: remove installer-ui source and deprecated scripts
- Remove installer-ui/ React source (compiled assets already in cmd/installer/ui/)
- Remove start-tui-web.bat (deprecated)
- Update go.sum from mod tidy
2026-01-16 15:25:50 +07:00
RCD f2eabe57c5 fix(codex): ensure instructions field exists in request body
Add check to ensure 'instructions' field exists in Execute, ExecuteStream,
and CountTokens functions before sending request to Codex API.

Cherry-picked from:
- CLIProxyAPI v6.7.4 (902bea2)
v0.2.9-dev-0.3
2026-01-16 15:25:50 +07:00
RCD a2d701b205 fix(executor): update gemini-3-pro model name check to use internal name
Change conditional check from gemini-3-pro-preview (alias) to
gemini-3-pro-high (internal name) for system instruction injection.

Cherry-picked from:
- CLIProxyAPI v6.7.3 (c3ef46f)
v0.2.9-dev-0.2
2026-01-16 15:25:50 +07:00
RCD 7b22c4fd4d feat(auth): cherry-pick CLIProxyAPI v6.6.108-109 core updates
- Add ensureAntigravityProjectID to fetch project_id during token refresh
- Simplify filestore Save() to use os.O_TRUNC instead of temp file rename
- Auto-fetch project_id for antigravity provider in readAuthFile()
- Add metadataEqualIgnoringTimestamps to prevent refresh loops
- Use reflect.DeepEqual for cleaner metadata comparison

Cherry-picked from:
- CLIProxyAPI v6.6.108 (086eb3d)
- CLIProxyAPI v6.6.109-dev (7248f65)
v0.2.9-dev-0.1
2026-01-16 15:25:49 +07:00
Finessse e277e0f413 fix(installer): WiX v4 syntax fixes and add build-exe.bat 2026-01-12 08:21:04 +07:00
Finessse aab559c781 chore(npm): bump version to 0.2.9 v0.2.9 2026-01-12 07:40:24 +07:00
Finessse c83da30d3d build(webui): rebuild embedded assets with rate limits component 2026-01-12 07:37:52 +07:00
Finessse 4d33b21446 chore(pricing): update model pricing table for Jan 2026
- Add Claude 4.5 model variants (opus, sonnet, haiku)
- Add Gemini 2.0/2.5 Flash and Pro pricing
- Add OpenAI o3/o4-mini pricing
- Update date reference from Dec 2024 to Jan 2026
2026-01-12 07:37:44 +07:00
Finessse e11daa1b39 feat(tray): single instance, settings menu, rate limits diagnostics
- Single-instance check prevents multiple tray apps
- Settings submenu with startup/auto-proxy toggles
- Copy Rate Limits diagnostic option
- Windows Defender exclusion option
2026-01-12 07:37:33 +07:00
Finessse d77af50d66 build(installer): add MSI installer and WinGet manifest
- WiX-based MSI installer (proxypilot.wxs)
- build-msi.ps1 script for packaging
- WinGet manifest files for package submission
2026-01-12 07:37:24 +07:00
Finessse 2d1c2070a9 feat(webui): add rate limits status dashboard component
- RateLimitsStatus component with visual gauge bar
- Shows available/cooling/disabled credential counts
- Reset cooldown button for stuck credentials
- Auto-refresh every 10 seconds
2026-01-12 07:37:14 +07:00
Finessse f415504d35 feat(api): add rate limits monitoring endpoints
- GET /v0/management/rate-limits - detailed per-credential status
- GET /v0/management/rate-limits/summary - availability overview
- Shows available, cooling_down, disabled counts and next recovery time
2026-01-12 07:37:03 +07:00
Finessse 522f0e5c89 feat(windows): add single-instance mutex and Windows service support
- winutil package with mutex-based single instance lock
- Toast notification helper for Windows
- Service stubs for future Windows service mode
2026-01-12 07:36:43 +07:00
Finessse d6dd24e2b7 feat(tui): add polished Flight Deck terminal dashboard
- Bubbletea-based TUI with 5 tabs: Status, Accounts, Rate Limits, Usage, Logs
- Industrial control room aesthetic with orange/green color scheme
- Double-line borders (╔═╗), active tab indicator 【】
- 3-column stat boxes on Status, 4-column on Usage
- Visual gauge bar for rate limit availability
- Config-optional mode allows TUI to run without config.yaml
- Full-width frame with properly aligned borders
2026-01-12 07:33:04 +07:00
Finessse 2d73c520cb chore(npm): bump version to 0.2.8 v0.2.8 2026-01-12 05:28:05 +07:00
Finessse daa3e91278 fix(tray): remove ugly fake separators from submenus 2026-01-12 05:26:10 +07:00
Finessse 291b69ced1 fix(tray): hide console window when running CLI commands 2026-01-12 05:22:36 +07:00
Finessse 6b2dbf6840 feat(tray): make Providers menu functional with all providers
Providers submenu now has clickable login items:
- Claude, Gemini, Codex, Qwen (OAuth)
- Antigravity, Kiro (OAuth)
- MiniMax, Zhipu (API key via CLI)

Each item triggers OAuth flow or CLI login command.
2026-01-12 05:16:47 +07:00
Finessse 8a822b1f05 feat(tray): add Accounts submenu with CLI integration
New Accounts submenu:
- Copy Account List (-list-accounts)
- Cleanup Expired (-cleanup-expired)
- Export Accounts... (-export-accounts)
- Import Accounts... (-import-accounts)

All menu items harness CLI binary for single source of truth.
2026-01-12 05:11:58 +07:00
Finessse dc05446bf0 feat(tray): integrate CLI commands into Diagnostics menu
Add menu items to copy CLI output to clipboard:
- Copy Account Status (account health summary)
- Copy Usage Stats (token usage by provider)
- Copy Model List (available models)
- Copy Recent Logs (last 100 log entries)

Uses stdout capture to get formatted CLI output.
2026-01-12 05:05:47 +07:00
Finessse 16dc9c7101 feat(tray): add Refresh Tokens menu + account count in tooltip 2026-01-12 04:49:31 +07:00
Finessse 45289603b9 refactor: rename cliproxytray → proxypilot-tray
- Rename cmd/cliproxytray to cmd/proxypilot-tray
- Update all script references
- Update workflow and docs
2026-01-12 04:43:58 +07:00
Finessse 53d28c9ec0 chore(npm): bump version to 0.2.7 v0.2.7 2026-01-12 04:35:27 +07:00
Finessse 33fbfa7b53 feat(cli): add advanced account management commands
- Add -usage flag (token usage stats per provider)
- Add -logs flag (view recent logs, -n for line count)
- Add -refresh flag (force token refresh)
- Add -list-models flag (show available models)
- Add -export-accounts/-import-accounts (backup/restore)
- Add --include-tokens and --force flags for export/import
2026-01-12 04:30:45 +07:00
Finessse 193b240b31 chore: simplify release workflows
- install.ts: read version from package.json (auto-sync)
- release.yml: manual dispatch only (no auto-trigger on tags)
- proxypilot-release.yml: add checksums.txt generation
2026-01-12 03:14:16 +07:00
Finessse ef8088f7db chore(npm): bump version to 0.2.6 v0.2.6 2026-01-12 02:34:09 +07:00
Finessse e8a6269a45 test: add tests for logging, errors, config, and auth packages
- Add 26 tests for SetLogLevel() in logging package
- Add 6 tests for AppError in errors package
- Add 10 tests for SDKConfig in config package
- Add 3 tests for EmailRequiredError in sdk/auth
2026-01-12 02:30:46 +07:00
Finessse a09a23380e feat(cli): wire -quiet/-verbose flags to logging
- Add SetLogLevel() to logging package
- CLI flags override config-based log level
- Add tests for account.go (6 tests)
2026-01-12 02:26:06 +07:00
Finessse 5f8941b407 feat(cli): add account management commands
- Add -version, -status, -list-accounts flags
- Add -cleanup-expired, -remove-account for token management
- Add -json output mode for scripting
- Add -quiet/-verbose flags
- Colored terminal output with table formatting
2026-01-12 02:18:32 +07:00
Finessse e1b58ba16e Revert "docs: add session progress for 2026-01-11"
This reverts commit a493e9c115.
2026-01-12 02:06:51 +07:00
Finessse 68cfd33685 refactor(auth): remove unused GeminiCLI token aliases
- Remove dead code: GeminiCLIToken type alias, LoadGeminiCLIToken,
  LoadGeminiCLITokenFromPath (no callers found)
- Add tests for gemini auth (CredentialFileName, SaveTokenToFile)
2026-01-12 02:05:01 +07:00
Finessse a493e9c115 docs: add session progress for 2026-01-11 2026-01-12 01:06:09 +07:00
Finessse 3f0c29e275 chore(npm): bump version to 0.2.5 2026-01-11 14:51:43 +07:00
Finessse b654a19a09 feat(gemini): enable thinking by default for Gemini 3 Flash v0.2.5 2026-01-11 14:28:59 +07:00
Finessse 0420fd0046 build(scripts): embed version info in macOS build script
Use git describe/rev-parse for version/commit and pass via ldflags.
2026-01-11 08:43:00 +07:00
Finessse 46ad228707 sync(upstream): developer role + message_delta fix + auth cleanup
Cherry-picked:
- 7815ee33: adjust message_delta emission boundary in Claude-to-OpenAI
- 6762e081: add developer role support for Gemini translators
- 5e5d8142: fix auth error when antigravity refresh token missing
2026-01-11 06:45:24 +07:00