-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
167 lines (167 loc) · 4.59 KB
/
package.json
File metadata and controls
167 lines (167 loc) · 4.59 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
{
"name": "copilot-pulse",
"displayName": "CopilotPulse — Copilot Chat Analytics",
"description": "Track your GitHub Copilot Chat usage — sessions, tokens, costs, and analytics — 100% local, no data leaves your machine.",
"version": "0.1.3",
"publisher": "cipheraxat",
"license": "MIT",
"engines": {
"vscode": "^1.85.0"
},
"repository": {
"type": "git",
"url": "https://github.com/cipheraxat/CopilotPulse"
},
"bugs": {
"url": "https://github.com/cipheraxat/CopilotPulse/issues"
},
"homepage": "https://github.com/cipheraxat/CopilotPulse#readme",
"categories": [
"Visualization",
"Data Science",
"Other"
],
"keywords": [
"copilot",
"copilot chat",
"github copilot",
"tokens",
"cost",
"analytics",
"dashboard",
"usage",
"tracking",
"ai"
],
"galleryBanner": {
"color": "#0d1117",
"theme": "dark"
},
"badges": [
{
"url": "https://img.shields.io/github/license/cipheraxat/CopilotPulse",
"href": "https://github.com/cipheraxat/CopilotPulse/blob/main/LICENSE",
"description": "License"
},
{
"url": "https://img.shields.io/github/stars/cipheraxat/CopilotPulse",
"href": "https://github.com/cipheraxat/CopilotPulse",
"description": "GitHub Stars"
}
],
"activationEvents": [
"onView:tokenDashboard.sidebar",
"onCommand:tokenDashboard.openDashboard",
"onCommand:tokenDashboard.refresh",
"onCommand:tokenDashboard.exportData"
],
"main": "./dist/extension.js",
"icon": "media/icon.png",
"contributes": {
"commands": [
{
"command": "tokenDashboard.openDashboard",
"title": "Open Dashboard",
"category": "CopilotPulse",
"icon": "$(dashboard)"
},
{
"command": "tokenDashboard.refresh",
"title": "Refresh Data",
"category": "CopilotPulse",
"icon": "$(refresh)"
},
{
"command": "tokenDashboard.exportData",
"title": "Export Data as JSON",
"category": "CopilotPulse"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "tokenDashboard",
"title": "CopilotPulse",
"icon": "media/sidebar-icon.svg"
}
]
},
"views": {
"tokenDashboard": [
{
"type": "webview",
"id": "tokenDashboard.sidebar",
"name": "Quick Stats"
}
]
},
"configuration": {
"title": "CopilotPulse",
"properties": {
"tokenDashboard.refreshInterval": {
"type": "number",
"default": 30,
"minimum": 5,
"description": "How often to refresh data from Copilot Chat storage (in seconds)."
},
"tokenDashboard.costPerInputToken": {
"type": "number",
"default": 0.000003,
"description": "Estimated cost per input token (USD). Default: $3/M tokens."
},
"tokenDashboard.costPerOutputToken": {
"type": "number",
"default": 0.000015,
"description": "Estimated cost per output token (USD). Default: $15/M tokens."
},
"tokenDashboard.showStatusBar": {
"type": "boolean",
"default": true,
"description": "Show token usage in the status bar."
}
}
},
"menus": {
"commandPalette": [
{
"command": "tokenDashboard.openDashboard"
},
{
"command": "tokenDashboard.refresh"
},
{
"command": "tokenDashboard.exportData"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run build",
"build": "npm run build:extension && npm run build:webview",
"build:extension": "webpack --mode production --config webpack.extension.config.js",
"build:webview": "cd webview-ui && npm run build",
"watch": "concurrently \"npm run watch:extension\" \"npm run watch:webview\"",
"watch:extension": "webpack --mode development --watch --config webpack.extension.config.js",
"watch:webview": "cd webview-ui && npm run dev",
"compile": "webpack --mode development --config webpack.extension.config.js",
"lint": "eslint src --ext ts",
"test": "vitest run",
"test:watch": "vitest",
"package": "vsce package"
},
"devDependencies": {
"@types/node": "^20.11.0",
"@types/vscode": "^1.85.0",
"@vscode/vsce": "^3.7.1",
"concurrently": "^8.2.2",
"copy-webpack-plugin": "^12.0.2",
"ts-loader": "^9.5.1",
"typescript": "^5.3.3",
"vitest": "^4.1.2",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4"
},
"dependencies": {
"sql.js": "^1.10.0"
}
}