Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
143 lines (143 loc) · 4.61 KB
/
Copy pathpackage.json
File metadata and controls
143 lines (143 loc) · 4.61 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
{
"name": "codex-ratelimit",
"displayName": "Codex Rate Limit Monitor",
"description": "A VSCode extension for monitoring Codex rate limits",
"license": "MIT",
"version": "0.12.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": "Enable detailed logging for debugging purposes.",
"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"
}
}
}
]
},
"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",
"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"
]
}