forked from xiangz19/codex-ratelimit-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
181 lines (181 loc) · 6.09 KB
/
Copy pathpackage.json
File metadata and controls
181 lines (181 loc) · 6.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
{
"name": "codex-ratelimit",
"displayName": "Codex Rate Limit Monitor",
"description": "A VSCode extension for monitoring Codex rate limits",
"license": "MIT",
"version": "0.13.0",
"publisher": "xiangz19",
"icon": "icon.png",
"repository": {
"type": "git",
"url": "https://github.com/xiangz19/codex-ratelimit-vscode"
},
"engines": {
"vscode": "^1.96.0"
},
"categories": [
"Other",
"AI"
],
"keywords": [
"claude",
"codex",
"rate-limit",
"monitoring",
"usage",
"analytics"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "codex-ratelimit.refreshStats",
"title": "Codex Rate Limit: Refresh Statistics",
"icon": "$(sync)"
},
{
"command": "codex-ratelimit.showDetails",
"title": "Codex Rate Limit: Show Details",
"icon": "$(table)"
},
{
"command": "codex-ratelimit.openSettings",
"title": "Codex Rate Limit: Open Settings",
"icon": "$(gear)"
}
],
"configuration": [
{
"title": "Codex Rate Limit",
"properties": {
"codexRatelimit.enableLogging": {
"type": "boolean",
"default": false,
"description": "Legacy logging toggle. If enabled and no explicit log level is selected, the effective minimum log level becomes Info.",
"deprecationMessage": "Use codexRatelimit.logLevel instead.",
"scope": "window"
},
"codexRatelimit.logLevel": {
"type": "string",
"default": "warn",
"enum": [
"off",
"error",
"warn",
"info",
"debug"
],
"enumDescriptions": [
"Disable extension logging.",
"Show only error messages.",
"Show warnings and errors.",
"Show informational messages, warnings, and errors.",
"Show all logs, including verbose debug messages."
],
"description": "Minimum log level written to the Codex Rate Limit output channel.",
"scope": "window"
},
"codexRatelimit.showOutputOnError": {
"type": "boolean",
"default": false,
"description": "Show the output panel automatically when an error is logged.",
"scope": "window"
},
"codexRatelimit.color.enable": {
"type": "boolean",
"default": true,
"description": "Enable colored status bar text and progress bars based on usage percentage.",
"scope": "window"
},
"codexRatelimit.color.criticalColor": {
"type": "string",
"default": "#eca7a7",
"description": "Color for critical state (usage at or above critical threshold). Applied to status bar text and progress bars.",
"scope": "window"
},
"codexRatelimit.color.criticalThreshold": {
"type": "number",
"default": 90,
"minimum": 0,
"maximum": 100,
"description": "Usage percentage threshold for critical state (applied to status bar text and progress bars).",
"scope": "window"
},
"codexRatelimit.color.warningColor": {
"type": "string",
"default": "#f3d898",
"description": "Color for warning state (usage at or above warning threshold but below critical threshold). Applied to status bar text and progress bars.",
"scope": "window"
},
"codexRatelimit.color.warningThreshold": {
"type": "number",
"default": 70,
"minimum": 0,
"maximum": 100,
"description": "Usage percentage threshold for warning state (applied to status bar text and progress bars).",
"scope": "window"
},
"codexRatelimit.sessionPath": {
"type": "string",
"default": "",
"description": "Custom path to Codex CLI/extension sessions directory (leave empty for default ~/.codex/sessions).",
"scope": "window"
},
"codexRatelimit.refreshInterval": {
"type": "number",
"default": 10,
"minimum": 5,
"maximum": 3600,
"description": "How often to refresh the stats (in seconds). Minimum 5 seconds, maximum 1 hour.",
"scope": "window"
},
"codexRatelimit.statusBar.sourceIndicator": {
"type": "string",
"default": "off",
"enum": [
"off",
"compact",
"full"
],
"enumDescriptions": [
"Hide the rate-limit source in the status bar.",
"Show a short source label such as Live, API, or LS.",
"Show a full source label such as Live Session, App Server, or Last Session."
],
"description": "Optionally show the active rate-limit source in the status bar.",
"scope": "window"
}
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "npm run typecheck && npm run bundle",
"bundle": "esbuild src/extension.ts --bundle --platform=node --format=cjs --external:vscode --sourcemap --outfile=out/extension.js --log-level=info",
"package:vsix": "node package-vsix.cjs",
"typecheck": "tsc -p ./ --noEmit",
"watch": "esbuild src/extension.ts --bundle --platform=node --format=cjs --external:vscode --sourcemap --outfile=out/extension.js --watch",
"pretest": "npm run compile",
"lint": "eslint src --ext ts",
"test": "vscode-test"
},
"devDependencies": {
"@types/node": "18.x",
"@types/vscode": "^1.96.0",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"esbuild": "^0.25.10",
"eslint": "^8.56.0",
"typescript": "^5.3.3"
},
"dependencies": {
"glob": "^10.3.10"
},
"extensionKind": [
"ui"
]
}