-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
155 lines (155 loc) · 4.69 KB
/
package.json
File metadata and controls
155 lines (155 loc) · 4.69 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
{
"name": "opencode-token-usage-extension",
"displayName": "OTU: OpenCode Token Usage",
"description": "VS Code/Cursor extension that shows OpenCode token history plus live provider rate limits and billing.",
"version": "2.0.3",
"publisher": "DongHyunnn",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/DongHyunnn/opencode-plugin-token-usage.git"
},
"homepage": "https://github.com/DongHyunnn/opencode-plugin-token-usage",
"bugs": {
"url": "https://github.com/DongHyunnn/opencode-plugin-token-usage/issues"
},
"icon": "media/icon.png",
"engines": {
"vscode": "^1.96.0"
},
"categories": [
"Other"
],
"main": "./src/extension.js",
"extensionKind": [
"workspace"
],
"activationEvents": [
"onStartupFinished"
],
"contributes": {
"commands": [
{
"command": "opencodeTokenUsage.openDashboard",
"title": "Open Dashboard"
},
{
"command": "opencodeTokenUsage.refresh",
"title": "Refresh"
},
{
"command": "opencodeTokenUsage.selectWindow",
"title": "Select History Window"
},
{
"command": "opencodeTokenUsage.installTrackingPlugin",
"title": "Install Tracking Plugin"
}
],
"viewsContainers": {
"panel": [
{
"id": "opencodeTokenUsage",
"title": "OTU",
"icon": "media/activity.svg"
}
]
},
"views": {
"opencodeTokenUsage": [
{
"id": "opencodeTokenUsage.dashboard",
"name": "Dashboard"
}
]
},
"menus": {
"view/title": [
{
"command": "opencodeTokenUsage.refresh",
"when": "view == opencodeTokenUsage.dashboard",
"group": "navigation"
},
{
"command": "opencodeTokenUsage.selectWindow",
"when": "view == opencodeTokenUsage.dashboard",
"group": "navigation"
},
{
"command": "opencodeTokenUsage.installTrackingPlugin",
"when": "view == opencodeTokenUsage.dashboard",
"group": "navigation"
}
]
},
"configuration": {
"title": "OTU: OpenCode Token Usage",
"properties": {
"opencodeTokenUsage.databasePath": {
"type": "string",
"default": "~/.local/share/opencode/opencode.db",
"scope": "machine",
"description": "Path to the local OpenCode SQLite database."
},
"opencodeTokenUsage.openCodeAuthPath": {
"type": "string",
"default": "~/.local/share/opencode/auth.json",
"scope": "machine",
"description": "Path to the local OpenCode auth file used for Anthropic/OpenAI OAuth refresh."
},
"opencodeTokenUsage.openCodeConfigPath": {
"type": "string",
"default": "~/.config/opencode/opencode.json",
"scope": "machine",
"description": "Path to the local OpenCode config file used to detect Gemini auth-plugin configuration."
},
"opencodeTokenUsage.codexAuthPath": {
"type": "string",
"default": "~/.codex/auth.json",
"scope": "machine",
"description": "Path to the local Codex auth file."
},
"opencodeTokenUsage.refreshIntervalSeconds": {
"type": "number",
"default": 45,
"minimum": 10,
"maximum": 300,
"description": "Fallback polling interval for refreshing history and live provider data."
},
"opencodeTokenUsage.historyWindow": {
"type": "string",
"default": "24h",
"enum": [
"1h",
"7h",
"24h",
"7d",
"30d"
],
"description": "Default OpenCode history window shown in the status bar and dashboard."
},
"opencodeTokenUsage.showEstimated7h": {
"type": "boolean",
"default": false,
"description": "Show an estimated 7h usage section derived from OpenCode local history."
}
}
}
},
"capabilities": {
"untrustedWorkspaces": {
"supported": true,
"description": "Reads local OpenCode history and auth files from machine-scoped settings."
}
},
"scripts": {
"dev": "node ./scripts/dev.js",
"test": "node --test",
"package:vsix": "npx @vscode/vsce package",
"publish:ovsx": "npx ovsx publish",
"install:vsix:vscode": "node ./scripts/install-vsix.js code",
"install:vsix:cursor": "node ./scripts/install-vsix.js cursor",
"install:vsix:vscode:dry-run": "node ./scripts/install-vsix.js code --dry-run",
"install:vsix:cursor:dry-run": "node ./scripts/install-vsix.js cursor --dry-run"
}
}