-
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.48 KB
/
Copy pathpackage.json
File metadata and controls
155 lines (155 loc) · 4.48 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": "token-aware",
"displayName": "Token Aware",
"description": "Live AI token/dollar usage in the status bar. Auto-detects Cursor and Claude Code, your plan type, and shows per-session, last-call, and monthly spend.",
"version": "0.2.29",
"publisher": "aoao-tech",
"license": "MIT",
"icon": "icon.png",
"galleryBanner": {
"color": "#1e1e1e",
"theme": "dark"
},
"repository": {
"type": "git",
"url": "https://github.com/aoao-tech/token-aware.git"
},
"bugs": {
"url": "https://github.com/aoao-tech/token-aware/issues"
},
"homepage": "https://github.com/aoao-tech/token-aware#readme",
"qna": "marketplace",
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other",
"Visualization"
],
"keywords": [
"tokens",
"usage",
"spend",
"ai",
"cursor",
"claude"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": true
},
"virtualWorkspaces": {
"supported": false,
"description": "Token Aware reads local Cursor and Claude Code data from disk, which is unavailable in virtual workspaces."
}
},
"main": "./dist/extension.js",
"activationEvents": [
"onStartupFinished"
],
"contributes": {
"commands": [
{
"command": "tokenAware.refresh",
"title": "Refresh Now",
"category": "Token Aware"
},
{
"command": "tokenAware.showDetails",
"title": "Show Details",
"category": "Token Aware"
}
],
"configuration": {
"title": "Token Aware",
"properties": {
"tokenAware.pollIntervalSeconds": {
"type": "number",
"default": 30,
"minimum": 5,
"description": "How often (in seconds) to refresh usage data."
},
"tokenAware.displayMode": {
"type": "string",
"enum": [
"session",
"monthly",
"both"
],
"default": "both",
"description": "What to show in the status bar: current-session spend ('session'), monthly spend ('monthly'), or both."
},
"tokenAware.instantRefreshOnTurn": {
"type": "boolean",
"default": true,
"description": "Watch transcripts and refresh immediately after each AI turn completes."
},
"tokenAware.cursor.enabled": {
"type": "string",
"enum": [
"auto",
"on",
"off"
],
"default": "auto",
"description": "Track Cursor usage. 'auto' shows it only when Cursor is detected on this machine."
},
"tokenAware.cursor.unit": {
"type": "string",
"enum": [
"auto",
"dollars",
"tokens"
],
"default": "auto",
"description": "Show Cursor spend as dollars (usage-based/business plans) or tokens (monthly plans). 'auto' detects from the account's plan type."
},
"tokenAware.claude.enabled": {
"type": "string",
"enum": [
"auto",
"on",
"off"
],
"default": "auto",
"description": "Track Claude Code usage. 'auto' shows it only when Claude Code data is found (~/.claude/projects)."
},
"tokenAware.claude.unit": {
"type": "string",
"enum": [
"auto",
"dollars",
"tokens"
],
"default": "auto",
"description": "Show Claude spend as tokens (subscription plans) or estimated dollars (API billing; uses a bundled pricing table). 'auto' detects from the local Claude Code login."
},
"tokenAware.claude.sessionScope": {
"type": "string",
"enum": [
"workspace",
"all"
],
"default": "workspace",
"description": "Which Claude Code sessions to list individually: only those started from the open workspace folder(s), or all sessions on this machine. Monthly totals always include everything."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run build",
"build": "node esbuild.js --production",
"watch": "node esbuild.js --watch",
"compile": "tsc --noEmit",
"package": "vsce package --no-dependencies",
"test": "tsx src/test-all.ts"
},
"devDependencies": {
"@types/node": "^20.11.0",
"@types/vscode": "^1.85.0",
"@vscode/vsce": "^2.24.0",
"esbuild": "^0.20.0",
"tsx": "4.23.1",
"typescript": "^5.4.0"
}
}