opencode-glm-quota 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -19,7 +19,7 @@ OpenCode plugin to query Z.ai GLM Coding Plan usage statistics with real-time qu
19
19
  - 🔧 View MCP tool usage (web_search, web_reader, etc.)
20
20
  - 🌍 Supports both Global (api.z.ai) and CN (open.bigmodel.cn) platforms
21
21
  - 🔐 Automatic credential discovery from OpenCode auth.json
22
- - 📈 Visual progress bars for quota percentages
22
+ - 📈 Visual progress bars for quota percentages (ASCII for terminal alignment)
23
23
  - ⚡ Fail-fast error handling (no retry logic - user controls when to retry)
24
24
 
25
25
  ## Installation
@@ -134,19 +134,19 @@ After authentication, simply run:
134
134
  ║ Platform: ZAI ║
135
135
  ║ Period: 2026-01-17 21:00:00 → 2026-01-18 20:59:59 ║
136
136
  ╠══════════════════════════════════════════════════════════════════╣
137
- 📊 QUOTA LIMITS
137
+ ║ QUOTA LIMITS
138
138
  ╟──────────────────────────────────────────────────────────────────╢
139
- ║ Token usage(5 Hour) [███████████████████░░░░░░░░░] 40.5%
140
- ║ MCP usage(1 Month) [████░░░░░░░░░░░░░░░░░░░░░░░░░] 12.3%
139
+ ║ Token usage(5 Hour) [###################--------] 40.5%
140
+ ║ MCP usage(1 Month) [####-----------------------] 12.3%
141
141
  ║ Used: 123/1,000 ║
142
142
  ╠══════════════════════════════════════════════════════════════════╣
143
- 🤖 MODEL USAGE (24h)
143
+ ║ MODEL USAGE (24h)
144
144
  ╟──────────────────────────────────────────────────────────────────╢
145
145
  ║ Total Tokens (24h): 12,500,000 (31% of 5h limit) ║
146
146
  ║ 5h Window Usage: 40.5% of 40,000,000 ║
147
147
  ║ Total Calls: 1,234 ║
148
148
  ╠══════════════════════════════════════════════════════════════════╣
149
- 🔧 TOOL/MCP USAGE (24h)
149
+ ║ TOOL/MCP USAGE (24h)
150
150
  ╟──────────────────────────────────────────────────────────────────╢
151
151
  ║ Network Searches: 5,678 ║
152
152
  ║ Web Reads: 2,345 ║
@@ -9,7 +9,7 @@
9
9
  * @returns Progress bar string
10
10
  */
11
11
  export function createProgressBar(percentage, options = {}) {
12
- const { width = 30, filledChar = '', emptyChar = '' } = options;
12
+ const { width = 30, filledChar = '#', emptyChar = '-' } = options;
13
13
  // Clamp percentage to 0-100
14
14
  const clampedPercentage = Math.min(100, Math.max(0, percentage));
15
15
  // Calculate filled width
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-glm-quota",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "type": "module",
5
5
  "description": "OpenCode plugin to query Z.ai GLM Coding Plan usage statistics including quota limits, model usage, and MCP tool usage",
6
6
  "main": "dist/index.js",