- Updated icon: New icon with solid background for better visibility on all marketplaces
- Marketplace icon: Added extension icon for better visibility
- Readme cleanup: Fixed formatting issues, removed references to deleted files
- Streamlined Development section: Simplified with link to CLAUDE.md
- Marketplace badges: Added VS Code Marketplace and Open VSX badges to readme
- CLAUDE.md: Added development and publishing workflow documentation
- Installation docs: Updated readme with instructions for VS Code, Windsurf, Cursor
- Support section: Added GitHub issues link for bug reports
- Removed debug files from package: Debug output files no longer bundled in .vsix
- Removed deprecated apiKey config: API key setting removed from package.json (uses SecretStorage only)
- Redacted API key in debug output: Debug script no longer writes partial API key to file
- Status Bar: Shows 5-hour token quota percentage and current tokens used
- Tooltip: Hover for quick stats (quota, 7-day, 30-day usage)
- Quick Pick Menu: Click for detailed stats and actions
- Secure Storage: API key stored in VS Code's encrypted SecretStorage
- Auto Refresh: Configurable refresh interval (default 5 minutes)
- API Response Parsing: Fixed nested
totalUsageobject access for model-usage endpoint- 7-day and 30-day stats now correctly display prompts and tokens
- Corrected Data Model: Updated to match actual Z.ai API structure
- 5-hour quota is token-based (800M limit), not prompt-based
current5HourTokens/limit5HourTokens/percentage5Hourfor quotasevenDayPrompts/sevenDayTokensfor 7-day statsthirtyDayPrompts/thirtyDayTokensfor 30-day stats
- Status Bar: Now shows
✓ ⚡ 1% • 14.6K tokensformat - Tooltip: Shows token quota with progress bar, plus 7-day and 30-day stats
- Webview Panel: Removed in favor of simpler UX
- Users found the panel "annoying in the client"
- New UX Design: Status bar + Tooltip + Quick Pick menu
- Hover for quick stats tooltip
- Click for detailed Quick Pick menu with stats and actions
- Cleaner Interface:
- Tooltip shows 5-hour quota, 7-day stats, 30-day stats
- Quick Pick shows same data in menu format with Refresh/Configure actions
- Debug Command:
zaiUsage.debugto view raw API responses in output panel - Debug Script:
debug-api.mjsfor command-line API testing
- Beautiful Webview Panel: Replaced tooltip with a modern, interactive webview panel
- Click status bar to open detailed usage overlay
- Modern card-based design with progress bars
- Color-coded progress indicators (green/yellow/red)
- Responsive layout with grid statistics
- Refresh Button in Panel: Interactive refresh button with loading spinner
- Click refresh button in panel to update data
- Shows "Refreshing..." state with spinner animation
- No more "Click to refresh" text - replaced with button
- Improved Visual Design:
- Clean, modern card-based layout
- Better spacing and typography
- Status badges with icons
- Gradient progress bars
- Professional color scheme matching VS Code theme
- Status bar now opens webview panel instead of showing tooltip
- Tooltip simplified to quick preview
- Panel automatically updates when data refreshes
- Better visual hierarchy and information organization
- Panel stays in sync with status bar updates
- Refresh state properly managed in panel
- Token Usage Display: Now shows token usage alongside prompt usage
- 5-hour token quota with percentage
- Total tokens used
- 7-day token usage
- Displayed in tooltip with progress bars
- Improved API Key Input:
- Better validation (checks for empty/short keys)
- Instructions with link to get API key
- Masked preview after saving (shows first 4 and last 4 characters)
- "Test Connection" option after saving
- Better error messages and user feedback
- Masked display in configuration menu
- Tooltip now shows both prompts and tokens separately
- API key display shows masked version (e.g.,
sk-1...xyz9) - Enhanced user experience for API key configuration
- REAL API ENDPOINTS: Now uses official Z.ai monitor API endpoints discovered from glm-plan-usage plugin
/api/monitor/usage/model-usage- Model usage statistics/api/monitor/usage/tool-usage- Tool usage statistics/api/monitor/usage/quota/limit- Quota limits and current usage
- Authentication: Supports both direct token and Bearer token formats
- Real Usage Data: Now fetches actual usage from Z.ai API, not just local tracking
- 5-Hour Quota: Correctly calculates from quota limit percentage
- Completely rewrote API service to use official endpoints
- Removed old endpoint guessing logic
- Improved error handling for authentication failures
- 7-Day Usage Tracking: Shows usage over the last 7 days (when available from API)
- Connection Status Indicator: ✓ Connected, ⚠ Offline, or ✗ Error status in tooltip
- Plan Tier Prompt: Automatically prompts for plan tier after API key is configured
- Visible Prompts: Changed to Warning messages for better visibility (
⚠️ ) - Quick Configuration: "Configure Plan Tier" button shown after saving API key
- Status bar visibility: Extension now always shows in status bar, even when not configured
- API key security: Now uses VS Code SecretStorage for secure API key storage instead of plain settings
- Configuration prompt: Added proper prompt when API key is missing, with clear messaging about secure storage
- Migration: Automatically migrates API key from settings to SecretStorage on update
- Status bar shows connection status icon (✓/⚠/✗) along with usage
- Status bar shows "Configure API Key" when not configured
- Status bar command updated to show quick pick menu on click
- Enhanced error handling and user feedback
- Tooltip now includes 7-day usage and connection status
- Initial release
- Status bar usage indicator
- 5-hour quota tracking
- Total usage tracking
- Color-coded usage levels (green/yellow/red)
- Configurable refresh interval
- Multiple plan tier support (lite/pro/max)
- API endpoint discovery
- Local tracking fallback
- Quick actions menu
- Configuration wizard