-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
104 lines (104 loc) · 2.78 KB
/
package.json
File metadata and controls
104 lines (104 loc) · 2.78 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
{
"name": "vscode-zai-usage",
"displayName": "VSCode z.ai Usage",
"description": "Display z.ai token usage in the status bar",
"version": "0.3.0",
"publisher": "j4rviscmd",
"license": "MIT",
"icon": "icon.png",
"repository": {
"type": "git",
"url": "https://github.com/j4rviscmd/vscode-zai-usage.git"
},
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Programming Languages",
"Data Science"
],
"keywords": [
"z.ai",
"zai",
"ai usage",
"token usage",
"quota",
"status bar",
"metrics",
"monitoring",
"productivity",
"ai assistant"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"icons": {
"zai-icon": {
"description": "z.ai icon",
"default": {
"fontPath": "./assets/fonts/zai-icons.woff",
"fontCharacter": "\\F101"
}
}
},
"commands": [
{
"command": "zaiUsage.setApiKey",
"title": "z.ai Usage: Set API Key"
},
{
"command": "zaiUsage.clearApiKey",
"title": "z.ai Usage: Clear API Key"
}
],
"configuration": {
"title": "z.ai Usage",
"properties": {
"zaiUsage.refreshInterval": {
"type": "number",
"default": 60,
"minimum": 10,
"description": "Data refresh interval in seconds (minimum: 10, default: 60)"
},
"zaiUsage.useIcon": {
"type": "boolean",
"default": true,
"description": "Use z.ai icon in status bar instead of text label 'z.ai:'"
},
"zaiUsage.statusBarPriority": {
"type": "number",
"default": 10000,
"description": "Priority of the z.ai Usage item in the status bar (higher = further left among right-aligned items). Change takes effect after reloading the window."
},
"zaiUsage.displayMode": {
"type": "string",
"enum": ["usage", "remaining"],
"default": "usage",
"enumDescriptions": [
"Display token usage (e.g. 75.3%)",
"Display remaining tokens (e.g. 24.7%)"
],
"description": "Whether to display token usage or remaining tokens in the status bar."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "biome lint ./src",
"format": "biome format --write ./src",
"format:check": "biome check --formatter-enabled=true --linter-enabled=false ./src",
"check": "biome check --write ./src",
"check:ci": "biome check ./src"
},
"devDependencies": {
"@biomejs/biome": "^2.4.6",
"@types/node": "^20.10.0",
"@types/vscode": "^1.85.0",
"typescript": "^5.3.0"
}
}