Spaces:
Paused
Paused
Commit History
-
Merge remote-tracking branch 'origin/feature/filtering-tool' into dev
Mirrowelcfa8697
-
feat(quota): β¨ improve aggregation with tier priorities and fix double-countingβ
Mirrowel- Adds tier priority metadata for proper sorting of credential tiers in the UI - Fixes double-counting when models share quota groups by using aggregated group totals - Enhances reset time display to show expiration for low/exhausted quotas - Implements provider-specific stats merging to preserve cache during partial updates - Recalculates summary statistics on-demand instead of full cache replacement90d4836 -
feat(quota): restructure quota aggregation with cumulative counts and tier registryβ
MirrowelRemove averaged percentage calculations in favor of summing actual request counts across all credentials in a group. Introduce per-tier credential registries that distinguish active from exhausted allocations. Simplify viewer presentation to show absolute usage totals alongside compact tier status markers, deprecating the previous exhaustion counting approach.06b3f7d -
refactor(quota-viewer): π¨ enhance credential sorting and cooldown displayβ
MirrowelAdd natural/numeric sorting for credentials to ensure proper ordering (e.g., proj-1, proj-2, proj-10 instead of proj-1, proj-10, proj-2). Improve cooldown display in quota viewer by grouping cooldowns by quota groups when available, providing clearer visibility into rate limiting status for grouped models. Also in this commit: - refactor(client): improve model stats lookup with alias support - feat(usage-manager): add quota display formatting for logging1af1879 -
feat(quota-viewer): β¨ add intelligent URL scheme detection for local and private hostsβ
MirrowelPrevious implementation used https for any host containing a dot, which incorrectly applied https to private IP addresses. The new logic properly detects local hosts and private networks (localhost, 127.0.0.1, 192.168.x.x, 10.x.x.x, 172.16-31.x.x) and uses http for them while maintaining https for external domains and port 443.65fe549 -
feat(quota-viewer): β¨ add quota and usage statistics viewer systemβ
MirrowelThis introduces a comprehensive quota and usage statistics monitoring system with API endpoints and a rich terminal UI for real-time credential consumption visibility. Key components: - Add GET/POST /v1/quota-stats API endpoints to main proxy for retrieving and refreshing statistics - Implement full-featured TUI viewer (quota_viewer.py) with provider summaries, credential details, progress bars, and remote management - Add configuration system (quota_viewer_config.py) supporting multiple remote proxies with API key management - Extend RotatingClient with get_quota_stats(), reload_usage_from_disk(), and force_refresh_quota() methods - Enhance usage_manager with get_stats_for_endpoint() for aggregated statistics - Integrate viewer into launcher TUI as new menu option 5 Features include toggle between current and global/lifetime stats, token formatting, cooldown timers, quota group visualization, and estimated cost tracking. Supports Antigravity quota group enrichment and live API refreβ¦8b4ff52
-
refactor(tui): π¨ enhance clear_screen with optional header displayβ
MirrowelThe `clear_screen()` function in both launcher_tui.py and settings_tool.py has been enhanced to accept an optional subtitle parameter that displays a consistent header panel when provided. - Add `subtitle` parameter to `clear_screen()` function - Display formatted header panel with subtitle when provided - Update function calls to use new subtitle feature in settings tool (e.g., "Save Changes", "Exit Without Saving") - Remove redundant clear_screen call in launcher after startup message - Improve code reuse and consistency across TUI interfacesd5acbd4
-
feat(filter): β¨ add full glob pattern support for model filteringβ
MirrowelThis commit upgrades the model filtering system to support complete glob/fnmatch pattern syntax, replacing the previous limited wildcard implementation. - Migrate from custom prefix-only wildcard matching to full fnmatch support - Add support for suffix wildcards (*-preview), contains wildcards (*-preview*), single character matching (gpt-?), and character sets (gpt-[45]*) - Implement cross-platform mouse wheel scrolling with normalized delta calculation for Windows, macOS, and Linux - Update help documentation with comprehensive pattern examples - Refactor duplicate model filtering logic in both GUI (FilterEngine) and client (RotatingClient) to use unified fnmatch approach - Add traceback printing for better debugging of .env save errors - Fix clipboard copy logic to properly include models without explicit status - Improve code formatting with consistent line breaks and spacing - Add pyinstaller to requirements and remove tkinter from build exclusions - Bump rotator_library version β¦b7df2fe -
refactor(startup): π¨ reorganize import sequence to eliminate blocking dependencies
Mirrowelb6116f7 -
feat(settings): β¨ add real-time pending changes preview across all settings menusβ
MirrowelThis commit introduces a comprehensive pending changes system that displays live previews of all staged modifications before they are committed to the .env file. - Add sentinel value `_NOT_FOUND` to distinguish between "no pending change" and "pending change to None" - Implement helper methods in `AdvancedSettings` class: - `get_pending_value()` - retrieve pending value for a key - `get_original_value()` - get current .env value before changes - `get_change_type()` - categorize changes as 'add', 'edit', or 'remove' - `get_pending_keys_by_pattern()` - filter pending changes by prefix/suffix - `get_changes_summary()` - get categorized summary of all pending changes - `get_pending_counts()` - count pending changes by type - Add `_format_item()` method to display list items with visual change indicators (+ for adds, ~ for edits, - for removals) - Implement `_get_pending_status_text()` to show detailed pending changes count in main menu - Add `_show_changes_summary()` to displaβ¦352d879 -
fix(env): π use explicit .env path for PyInstaller compatibilityβ
MirrowelReplaced hardcoded `Path.cwd() / ".env"` references with centralized `_get_env_file()` helper function across launcher_tui.py, main.py, and settings_tool.py. - Adds `_get_env_file()` helper that detects PyInstaller frozen state - When running as EXE, resolves .env relative to executable directory - When running as script, resolves .env relative to current working directory - Updates all `load_dotenv()` calls to use explicit path instead of relying on implicit cwd resolution - Ensures consistent .env file location regardless of execution context This fixes issues where the application couldn't locate the .env file when running as a PyInstaller bundle and the working directory differed from the executable location.682bbea -
refactor(core): π¨ centralize path management for PyInstaller compatibilityβ
MirrowelIntroduce a new `paths.py` utility module that provides centralized path resolution for all data files (logs, cache, OAuth credentials, usage data) with support for both PyInstaller EXE and script/library runtime modes. - Add `get_default_root()` to auto-detect EXE directory when frozen, otherwise uses CWD - Add `get_logs_dir()`, `get_cache_dir()`, `get_oauth_dir()`, and `get_data_file()` helpers - Update `RotatingClient` to accept optional `data_dir` parameter for override capability - Refactor all hardcoded path calculations to use centralized utilities - Update `CredentialManager` to accept `oauth_dir` parameter - Convert `failure_logger` to lazy initialization with configurable logs directory - Migrate `UsageManager` to accept optional `file_path` with automatic defaults - Update all provider-specific logging directories to use centralized helpers - Refactor credential tool and settings tool to use path utilities - Update main.py to load .env files from correct root directory in bβ¦467f294
-
feat(ui): β¨ add smart pattern merge and import/export capabilities to filter rulesβ
MirrowelThis commit introduces comprehensive pattern management features to the Model Filter GUI, significantly improving the user experience for managing filter rules. Core features added: - Smart pattern merge logic that prevents redundant rules by detecting when patterns are covered by existing broader patterns (e.g., "gpt-4" is covered by "gpt-4*") - Pattern coverage detection system with three new methods in FilterEngine: `pattern_is_covered_by`, `is_pattern_covered`, and `get_covered_patterns` - Import/Export functionality for filter rules with dedicated dialogs (ImportRulesDialog, ImportResultDialog) - Copy-to-clipboard buttons for all model lists and rule panels, enabling easy pattern transfer - Replace mode for imports that clears all existing rules vs. merge mode for incremental additions UI improvements: - Refactored HelpWindow to use CTkTextbox instead of CTkScrollableFrame, fixing scrolling issues with dark theme - Proper text formatting with configurable tags for titles, sectioβ¦7f1d2c1
-
refactor(ui): π¨ restructure layout system with fixed height constraints and grid ratiosβ
MirrowelThis commit restructures the model filter GUI layout to use a grid-based system with proper weight ratios and minimum height constraints, ensuring stable proportions during window resizing. - Reduce minimum window dimensions from 850x600 to 600x400 for better flexibility - Implement 3:1 grid weight ratio between model lists (weight=3) and rule panels (weight=1) - Add grid_propagate(False) to key containers to prevent content from dictating frame sizes - Reorganize RulePanel layout: title at top, input frame at bottom (packed first to reserve space), rule list in middle - Set minimum row sizes: 200px for model lists, 55px for rule panels - Remove obsolete RuleChip class (141 lines) - functionality now handled by VirtualRuleList - Adjust padding and spacing values for more compact layout The new grid-based approach ensures consistent proportional sizing and prevents UI elements from being squished or expanding unpredictably during window resizing.923eb65 -
style(ui): π reduce spacing and font sizes for compact model filter layoutβ
MirrowelSystematically reduced padding, margins, font sizes, and component dimensions throughout the ModelFilterGUI to create a more compact, space-efficient interface. - Reduced title font from FONT_SIZE_NORMAL to FONT_SIZE_SMALL in RulePanel - Decreased padding values (12β10, 8β6, etc.) across all UI components - Reduced input entry and button heights from 36px to 28px, and button from 26px to smaller sizes - Set minimum height constraint (70px) on rule list to prevent collapse - Implemented grid-based responsive layout with proportional row weights (3:1 ratio for models vs rules) - Prevented input frame height changes using pack_propagate(False) - Refactored UI creation into _create_main_layout() with grid system replacing individual pack() calls - Updated all components to use content_frame.grid() instead of self.pack() for better layout control The changes maintain all functionality while significantly improving vertical space utilization, allowing more content to be visible without scrβ¦2d9a112 -
perf(ui): β‘οΈ replace widget-based rule list with virtual canvas renderingβ
MirrowelRefactored the rule panel to use a high-performance virtual list implementation instead of creating individual CTkFrame widgets for each filter rule. - Implemented `VirtualRuleList` class using raw tkinter Canvas for direct rendering - Only renders visible rules based on scroll position, dramatically reducing memory usage - Maintains all interactive features: hover states, tooltips, click handling, and rule highlighting - Integrated seamless scrolling with auto-scroll to highlighted rules - Removed `RuleChip` widget dependency from `RulePanel`, replacing with virtual list delegation - Added model deduplication in `_on_models_loaded` to prevent duplicate entries - Optimized tooltip management to prevent memory leaks and duplicate tooltip instances This change significantly improves UI responsiveness when displaying large numbers of filter rules by eliminating the overhead of creating and managing hundreds of individual widget instances.24a4b19 -
refactor(ui): π¨ simplify virtual scroll implementation using native canvas coordinatesβ
MirrowelRemoved manual scroll position tracking in favor of using Tkinter's built-in canvas.yview() and canvas.canvasy() methods for more reliable coordinate transformations. - Removed `_scroll_position` instance variable that was redundantly tracking scroll state - Updated `_get_index_at_y()` to use `canvas.canvasy()` for window-to-canvas coordinate conversion - Modified `_render()` to retrieve scroll position from `canvas.yview()[0]` instead of cached value - Simplified item rendering by using absolute positions in the scroll region, letting canvas handle viewport clipping - Updated `get_scroll_position()` and `set_scroll_position()` to work directly with canvas methods - Added explicit `_render()` call in `scroll_to_model()` to ensure UI updates after programmatic scrolling - Fixed scroll synchronization by reconfiguring scrollbar commands after method override and consolidating render calls into `set_scroll_position()` - Removed redundant manual `_render()` calls throughout sync handlers,β¦e037e16 -
perf(ui): β‘οΈ implement virtual scrolling for model filter listsβ
MirrowelReplace widget-based model lists with canvas-based virtual rendering to drastically improve performance with large model lists (1000+ models). - Add caching layer in FilterEngine with automatic invalidation on rule changes - Implement VirtualModelList component that only renders visible rows - Replace SyncModelListPanel with VirtualSyncModelLists using canvas drawing - Batch status computation in _rebuild_cache() instead of per-model calls - Reduce widget count from O(n) to O(visible_rows) for better memory usage - Maintain synchronized scrolling between left and right model lists - Preserve all existing functionality (search, highlighting, tooltips) The previous implementation created individual CTkFrame widgets for each model, causing severe lag with large provider model lists. The new virtual scrolling approach draws only visible items directly on a canvas, providing smooth scrolling even with thousands of models.e9dcbc0 -
feat(ui): β¨ add GUI for visual model filter configurationβ
MirrowelIntroduces a comprehensive CustomTkinter-based GUI application for managing model ignore/whitelist rules per provider, accessible from the settings tool. - Created model_filter_gui.py with full-featured visual editor (2600+ lines) - Implemented dual synchronized model lists showing unfiltered and filtered states - Added color-coded rule chips with visual association to affected models - Real-time pattern preview as users type filter rules - Interactive click/right-click functionality for model-rule relationships - Context menus for quick actions (add to ignore/whitelist, copy names) - Comprehensive help documentation with keyboard shortcuts - Unsaved changes detection with save/discard/cancel workflow - Background prefetching of models for all providers to improve responsiveness - Integration with settings tool as menu option #6 The GUI provides pattern matching with exact match, prefix wildcard (*), and match-all support. Whitelist rules take priority over ignore rules. All changes β¦846ba25 -
feat(auth): β¨ add configurable OAuth callback ports for all providersβ
MirrowelIntroduce environment variable configuration for OAuth callback server ports across Gemini CLI, Antigravity, and iFlow providers to prevent port conflicts and support multi-instance deployments. - Add `*_OAUTH_PORT` environment variables (GEMINI_CLI_OAUTH_PORT, ANTIGRAVITY_OAUTH_PORT, IFLOW_OAUTH_PORT) - Implement dynamic port resolution with fallback to hardcoded defaults - Add comprehensive documentation section explaining port configuration methods - Integrate port settings into Settings Tool UI for easy configuration - Update provider implementations to use configurable ports via property/function - Optimize launcher TUI startup by deferring heavy provider imports to Settings Tool - Add validation and warning logging for invalid port values Configuration can be managed via TUI settings menu or `.env` file. Port changes take effect on next authentication attempt without affecting existing tokens.92211ea -
feat(io): β¨ add fault-tolerant file operations with automatic recoveryβ
MirrowelEnhances application reliability by introducing a comprehensive I/O abstraction layer that eliminates crashes from filesystem issues. The system distinguishes between critical state files (credentials, usage data) that require memory buffering with retry logic, and disposable logs that can be safely dropped on failure. Key improvements: - New `ResilientStateWriter` class maintains in-memory state for critical files with background retry mechanism on disk failure - Introduced `safe_write_json`, `safe_log_write`, and `safe_mkdir` utility functions for one-shot operations with graceful degradation - Logging subsystems (`DetailedLogger`, `failure_logger`) now drop data on disk failure to prevent memory exhaustion during streaming - Authentication providers (`GoogleOAuthBase`, `IFlowAuthBase`, `QwenAuthBase`) preserve credentials in memory when filesystem becomes unavailable - `UsageManager` delegates persistence to `ResilientStateWriter` for automatic recovery from transient failures - `β¦7f148b3 -
Merge origin/main into feat/runtime-resilience - Resolve conflict in usage_manager.py by integrating runtime resilience with human-readable timestamps
Mirrowel01932f9 -
Merge branch 'main' into fix/antigravity-credential-stuck-unavailable
MirrowelUnverified signatureb7aa5d6 -
refactor(proxy): π¨ remove debug print statement for credentialsβ
MirrowelThe debug print statement that was logging credential summaries to the console has been commented out. This removes unnecessary console output in the proxy application while keeping the credential loading logic intact.4ecfaba -
feat(tui): π¨ add warnings for changing the proxy settings, and add reset to default button
Mirrowelc5716c1 -
fix(settings): π¨ improve provider detection and configuration loadingβ
Mirrowel- Refactor `get_default_mode` to use centralized PROVIDER_PLUGINS registry instead of ProviderInterface method, accessing default_rotation_mode directly from provider classes - Add comment filtering logic when parsing .env files to skip empty lines and comments starting with '#' - Update OAuth credentials directory path from 'oauth_credentials' to 'oauth_creds' for consistencyd655ada -
feat(concurrency): β¨ add priority-based concurrency multipliers for credential tiersβ
MirrowelThis commit introduces a flexible priority-based concurrency multiplier system that allows higher-priority credentials (e.g., paid tiers) to handle more concurrent requests than lower-priority credentials, regardless of rotation mode. Key changes: - Added `default_priority_multipliers` and `default_sequential_fallback_multiplier` to `ProviderInterface` for provider-level configuration - Implemented multiplier lookup with mode-specific overrides via environment variables (format: `CONCURRENCY_MULTIPLIER_<PROVIDER>_PRIORITY_<N>[_<MODE>]=<multiplier>`) - Modified `UsageManager` to calculate effective concurrency limits by applying multipliers to base `MAX_CONCURRENT_REQUESTS_PER_KEY` values - Added `PriorityMultiplierManager` to `settings_tool.py` for runtime configuration and display of multipliers - Configured default multipliers for Antigravity (P1: 5x, P2: 3x, sequential fallback: 2x) and Gemini CLI (P1: 5x, P2: 3x) - Introduced `model_usage_weights` to account for models with differβ¦aefb706
-
fix - addressing review findings.
Mirrowel136eb6c -
fix(resilience): complete circuit breaker patterns per PR reviewβ
Address bot review feedback on PR #32: - Add _disk_available flag update in _write_json exception handler - Add _disk_available flag update in log_stream_chunk (critical for streams) - Document intentional no-memory-fallback design for streams - Add _fallback_mode update in failure_logger exception handler - Add complete circuit breaker pattern to usage_manager5e42536
-
feat: add runtime resilience for file deletion survivalβ
Implement graceful degradation patterns that allow the proxy to continue running even if core files are deleted during runtime. Changes only take effect on restart, enabling safe development while the proxy is serving. ## Changes by Component ### Usage Manager (usage_manager.py) - Wrap `_save_usage()` in try/except with directory auto-recreation - Enhanced `_load_usage()` with explicit error handling - In-memory state continues working if file operations fail ### Failure Logger (failure_logger.py) - Add module-level `_file_handler` and `_fallback_mode` state - Create `_create_file_handler()` with directory auto-recreation - Create `_ensure_handler_valid()` for handler recovery - Use NullHandler as fallback when file logging fails ### Detailed Logger (detailed_logger.py) - Add class-level `_disk_available` and `_console_fallback_warned` flags - Add instance-level `_in_memory_logs` list for fallback storage - Skip disk writes gracefully when filesystem unavailable ### Google OAuth Bβ¦31c3d36 -
feat(rotation): β¨ add sequential rotation mode with provider-specific quota parsingβ
MirrowelIntroduces a new credential rotation mode system that allows providers to choose between "balanced" (distribute load evenly) and "sequential" (use until exhausted) strategies. Sequential mode is particularly beneficial for providers with cache-preserving features like Antigravity's thinking signature caches. Key changes: - Added ROTATION_MODE_{PROVIDER} environment variable support with comprehensive documentation in .env.example - Implemented provider-specific quota error parsing for Antigravity and Gemini CLI providers, extracting retry_after from Google RPC error format (handles compound durations like "143h4m52.73s") - Extended ProviderInterface with rotation mode configuration and parse_quota_error() method - Updated UsageManager to support sequential credential selection that preserves sticky credential usage until quota exhaustion - Enhanced error_handler.py classify_error() to attempt provider-specific parsing before falling back to generic classification - Added rotation modeβ¦bd84d38
-
refactor(ui): π¨ replace console.clear with cross-platform clear_screen functionβ
MirrowelReplaced all instances of `console.clear()` with a new `clear_screen()` helper function that uses native OS commands (`cls` for Windows, `clear` for Unix-like systems) instead of ANSI escape sequences. - Adds `clear_screen()` function to launcher_tui.py, settings_tool.py, and credential_tool.py - Replaces 18 instances of `console.clear()` across the codebase - Improves terminal clearing reliability on classic Windows conhost and modern terminals (Windows Terminal, Linux, Mac) - Removes unused anthropic_provider.py and bedrock_provider.py files - Enhances credential_tool API key setup with better provider filtering logic to prevent duplicates - Adds debug mode to show environment variable names in credential tool1ce8eba
-
refactor(api): π¨ change is_ready from method to property accessβ
MirrowelChanged all `is_ready()` method calls to `is_ready` property access in the model_info_service across three endpoint functions: - list_models endpoint for enriched model data - get_model endpoint for model information retrieval - cost_estimate endpoint for cost calculation This aligns with the service's implementation where is_ready is exposed as a property rather than a callable method.c264be0
-
refactor(logging): π¨ remove debug print statements and add concise deployment logsβ
MirrowelRemoves verbose DEBUG-REMOVE diagnostic print statements that were used for troubleshooting .env loading and credential discovery during development. - Removes ~25 debug print statements from main.py and credential_manager.py - Adds concise, production-friendly logging for deployment verification: - .env file loading summary with file names - Credential loading summary with provider:count format - Preserves essential startup information for operational visibility - Improves code readability by removing debugging clutter - Maintains helpful deployment context without verbose diagnostic outputa140a0d -
debugging pass to try to unfuck deployment
Mirroweleb3864b -
feat(api): β¨ add model pricing and capabilities enrichment serviceβ
MirrowelIntroduces a new model information service that fetches pricing and capability data from external catalogs (OpenRouter and Models.dev) to enrich the /v1/models endpoint and enable cost estimation. - Implements ModelRegistry class with async background data fetching to avoid blocking proxy startup - Adds fuzzy model ID matching with multi-source data aggregation - Expands /v1/models endpoint with optional enriched response containing pricing, token limits, and capability flags - Adds new endpoints: GET /v1/models/{model_id}, GET /v1/model-info/stats, POST /v1/cost-estimate - Supports per-token pricing for input, output, cache read, and cache write operations - Integrates with lifespan management for proper service initialization and cleanup - Includes comprehensive backward compatibility layer for gradual migration The service refreshes data every 6 hours (configurable via MODEL_INFO_REFRESH_INTERVAL) and runs asynchronously to maintain fast proxy initialization times.b6a47c9 -
feat(credentials): β¨ add support for environment-based credential loading and bulk export toolsβ
MirrowelThis commit introduces comprehensive support for loading OAuth credentials from environment variables alongside file-based credentials, and adds powerful bulk export/combine functionality for all credential types. Main changes: - **Environment-based credentials**: Modified main.py to load all *.env files from the root directory, enabling credentials to be stored in environment variables with an "env://" virtual path scheme - **Safe metadata handling**: Added checks throughout to skip file I/O operations for env-based credentials (they use virtual paths and don't have metadata files) - **Optimized credential discovery**: Updated RotatingClient to accept pre-discovered credentials from main.py, avoiding redundant discovery calls - **Bulk export tools**: Added `export_all_provider_credentials()` to export all credentials for a specific provider to individual .env files - **Credential combining**: Added `combine_provider_credentials()` to merge all credentials for a provider into a singlβ¦bd8f638 -
feat(settings): β¨ add provider-specific settings management UIβ
MirrowelIntroduces a comprehensive provider-specific settings management system for Antigravity and Gemini CLI providers with detection, display, and interactive configuration capabilities. - Add `PROVIDER_SETTINGS_MAP` with detailed definitions for Antigravity (12 settings) and Gemini CLI (8 settings) including signature caching, tool fixes, and provider-specific parameters - Implement `ProviderSettingsManager` class for managing provider settings with type-aware value parsing and modification tracking - Add `detect_provider_settings()` method to `SettingsDetector` to identify modified provider settings from environment variables - Integrate provider settings detection into launcher TUI summary display and detailed advanced settings view - Add new menu option (4) in settings tool for provider-specific configuration management - Implement interactive TUI for browsing, editing, and resetting individual or all provider settings with visual indication of modified values - Display provider settinβ¦64859d9 -
fix(proxy): π load environment variables before displaying PROXY_API_KEYβ
MirrowelThe .env file was being loaded after attempting to read PROXY_API_KEY from environment variables, causing the key to be unavailable for display during startup. Moving the dotenv.load_dotenv() call earlier in the initialization sequence ensures environment variables are loaded before they are accessed.2384d86 -
One huge ass bugfix i can't even list here. It's a mess i'll fix later
Mirrowel62e7cf3 -
fix(proxy): π prevent role field concatenation in streaming responsesβ
MirrowelThe generic key handling logic was incorrectly concatenating the 'role' field when processing streaming message chunks. The role field should always be replaced with the latest value, not concatenated like content fields. This fix adds an explicit check to ensure the 'role' key is always overwritten rather than appended to, preventing malformed role values in the final message object.0ea3b2d -
refactor(logging): π¨ adjust logging levels and improve schema cleaning for Antigravityβ
Mirrowel- Change reasoning parameters log from info to debug level in main.py - Move reasoning parameters logging outside logger conditional block for consistent monitoring - Enhance _clean_claude_schema documentation to clarify it's for Antigravity/Google's Proto-based API - Add support for converting 'const' to 'enum' with single value in schema cleaning - Improve code organization with better comments explaining unsupported fields These changes improve logging granularity and enhance JSON Schema compatibility with Antigravity's Proto-based API requirements.868b7c9
-
fix(api): π override global temperature=0 via OVERRIDE_TEMPERATURE_ZEROβ
MirrowelAdd an environment-controlled override that modifies requests with `temperature: 0` for chat completions when `OVERRIDE_TEMPERATURE_ZERO` is enabled (default: "false"). - Supported modes: "remove" β delete the `temperature` key; "set"/"true"/"1"/"yes" β set temperature to 1.0. - Rationale: temperature=0 makes models overly deterministic and can cause tool hallucination; the override helps mitigate that when toggled. - Emits debug logs when an override is applied.6adac7a
-
Build workflow shenanigans (#9)β
MirrowelUnverified signature* ci(build): π‘ unfuck build5f94b93 -
feat(auth): improve credential tool startup UX and lazy-load providersβ
Mirrowel- Defer heavy provider imports via a new _ensure_providers_loaded() helper to avoid the 6-7s blank startup wait and load providers lazily. - Enhance launcher TUI to show a full loading UI with spinner, header, elapsed time and provider count; call run_credential_tool(from_launcher=True) to avoid duplicate loading screens. - Add from_launcher flag to run_credential_tool and clear_on_start parameter to main() so standalone vs launcher flows behave correctly. - Swap direct provider_factory and PROVIDER_PLUGINS usage to go through the lazy loader in credential tool and callers. - Improve interactive UX: preserve/clear screen appropriately, add short pauses and prompts after flows, and keep console status messages during initialization. - Fix output formatting in qwen/iflow providers (replace escaped newlines with actual newlines) and enhance headless detection to log and print user-visible guidance when running without a GUI.2b065a1
-
build(proxy_app): π¦ include setuptools/distutils in build and clarify launcher missing .env messageβ
Mirrowel- Remove "--exclude-module=setuptools" and "--exclude-module=distutils" from PyInstaller args to allow those modules to be packaged. - Update launcher TUI prompt to stop referencing `PROXY_API_KEY` and only require a `.env` file, simplifying and clarifying the startup message.302d563 -
feat(ui): display proxy API key and improve onboarding/security warningsβ
MirrowelImprove startup and launcher TUI onboarding and security messaging: - Refine initial-setup wording to clarify .env and provider credential responsibilities. - Add an explicit security warning when a .env exists but PROXY_API_KEY is not set. - Surface the actual PROXY_API_KEY value in the launcher and startup logs (or show "Not Set (INSECURE!)" when missing). - Simplify onboarding detection to only trigger on a missing .env file (PROXY_API_KEY no longer forces onboarding).0fd5b85 -
feat(ui): enhance launcher TUI and lazy-load core componentsβ
Mirrowel- add About screen, GitHub link, and new menu option; load .env in launcher to ensure env vars available - expand TUI flow: support extra menu choice, show brief startup/clearing behavior when launching proxy - implement phased/lazy imports in main.py to speed startup and defer heavy deps (fast path for TUI and credential tool) - add argument parsing early and re-parse after TUI to unify modes (TUI, add-credential, run proxy) - improve startup UX with loading messages, spinner, and timing for provider discovery - optimize PyInstaller build in build.py: exclude unused heavy modules, handle UPX/strip per platform - remove launcher.bat from CI packaging and update workflow descriptions accordingly - make rotator_library lazy-load PROVIDER_PLUGINS via __getattr__ and add debug logging for provider registration; avoid redundant load_dotenv in providers - configure colored console logging (INFO+) and write module load timing to debug logsa42743f -
feat(ui): β¨ add interactive launcher TUI and advanced settings toolβ
MirrowelAdd a new Rich-based interactive launcher TUI (proxy_app/launcher_tui.py) and an advanced settings tool (proxy_app/settings_tool.py). Integrate the launcher into proxy_app/main.py so the TUI is shown when no CLI args are provided and can modify sys.argv to start the proxy. - LauncherTUI: onboarding checks, credential management entrypoint, proxy configuration menu, provider/advanced settings viewer, and in-place proxy start flow. - SettingsTool: interactive management of .env advanced settings (custom provider API bases, provider model definitions, concurrency limits) with staging/saving and undo support. - AdvancedSettings, CustomProviderManager, ModelDefinitionManager, ConcurrencyManager utilities to stage and persist .env changes; settings tools reload the environment after changes. - Ensure PROXY_API_KEY management and .env loading/reloading across tools; credential tool integration preserved. No breaking changes expected.37501b2 -
feat(auth): add interactive onboarding and credential setup with warningsβ
Mirrowel- add first-time onboarding checks in proxy_app/main.py to detect missing .env or PROXY_API_KEY and display a clear rich-powered onboarding message - auto-launch the credential setup tool (ensure_env_defaults + run_credential_tool) and reload environment vars, with validation to prevent starting without PROXY_API_KEY - add runtime warning when no provider credentials are configured so the proxy can start but not serve LLM requests - change RotatingClient to log a warning instead of raising when no API keys or OAuth credentials are provided - clear the console when the credential tool starts and exits for a cleaner interactive experience34e560e