-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
184 lines (184 loc) · 5.48 KB
/
package.json
File metadata and controls
184 lines (184 loc) · 5.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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
{
"name": "ccrelay-vscode",
"displayName": "CCRelay",
"icon": "assets/icon-128.png",
"description": "VSCode extension with built-in API proxy server - switch between AI providers seamlessly",
"version": "0.1.6",
"publisher": "inflab",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/inflaborg/ccrelay.git"
},
"bugs": {
"url": "https://github.com/inflaborg/ccrelay/issues"
},
"homepage": "https://github.com/inflaborg/ccrelay#readme",
"engines": {
"vscode": "^1.80.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/dist/extension.cjs",
"contributes": {
"commands": [
{
"command": "ccrelay.showMenu",
"title": "CCRelay: Show Menu"
},
{
"command": "ccrelay.switchProvider",
"title": "CCRelay: Switch Provider"
},
{
"command": "ccrelay.startServer",
"title": "CCRelay: Start Server"
},
{
"command": "ccrelay.stopServer",
"title": "CCRelay: Stop Server"
},
{
"command": "ccrelay.openSettings",
"title": "CCRelay: Open Settings"
},
{
"command": "ccrelay.showLogs",
"title": "CCRelay: Show Logs",
"icon": "$(output)"
},
{
"command": "ccrelay.clearLogs",
"title": "CCRelay: Clear Logs"
},
{
"command": "ccrelay.openWebUI",
"title": "CCRelay: Open Dashboard",
"icon": "$(dashboard)"
}
],
"configuration": {
"title": "CCRelay",
"properties": {
"ccrelay.configPath": {
"type": "string",
"default": "~/.ccrelay/config.yaml",
"description": "Path to CCRelay configuration file",
"scope": "window"
},
"ccrelay.ui.statusBarPosition": {
"type": "string",
"enum": [
"left",
"right"
],
"default": "right",
"description": "Position of the status bar item"
},
"ccrelay.ui.statusBarPriority": {
"type": "number",
"default": 100,
"description": "Priority of the status bar item"
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "ccrelay-dashboard-container",
"title": "CCRelay",
"icon": "assets/activitybar-icon.svg"
}
]
},
"views": {
"ccrelay-dashboard-container": [
{
"type": "webview",
"id": "ccrelay.dashboardView",
"name": "Dashboard"
}
]
}
},
"scripts": {
"clean": "npx shx rm -rf out web/dist",
"vscode:prepublish": "node scripts/build-config.mjs prod && npm run build:web && node scripts/generate-version.mjs && npm run bundle",
"dev": "npm run watch",
"dev:web": "cd web && npm run dev",
"prebuild": "node scripts/generate-version.mjs",
"build": "npm run clean && npm run build:web && npm run compile",
"build:dev": "node scripts/build-config.mjs dev && npm run build",
"build:prod": "node scripts/build-config.mjs prod && npm run build",
"build:web": "npx shx rm -rf out/web && cd web && npm run build && npx shx mkdir -p ../out/web && npx shx cp -r dist/* ../out/web/",
"precompile": "node scripts/generate-version.mjs",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"bundle": "node scripts/esbuild.config.mjs",
"type-check": "tsc --noEmit",
"lint": "npm run type-check && eslint src tests --max-warnings=0",
"lint:fix": "eslint src tests --fix",
"format": "prettier --write src/**/*.ts *.json tests/**/*.ts scripts/*.mjs",
"format:check": "prettier --check src/**/*.ts *.json tests/**/*.ts scripts/*.mjs",
"test": "npm run test:unit",
"test:unit": "vitest run tests/unit",
"test:integration": "vitest run tests/integration",
"test:all": "vitest run",
"test:watch": "vitest tests/unit",
"test:coverage": "vitest run tests/unit --coverage",
"test:e2e": "node ./out/test/runTest.js",
"package": "npm run build:web && node scripts/generate-version.mjs && npm run bundle && npx shx mkdir -p dists && vsce package --out dists",
"package:dev": "./scripts/package.sh dev",
"package:prod": "./scripts/package.sh prod",
"package:beta": "node scripts/version-beta.mjs && npm run package",
"package:release": "node scripts/version-release.mjs && npm run package",
"prepare": "husky"
},
"dependencies": {
"js-yaml": "^4.1.1",
"pg": "^8.18.0",
"ws": "^8.18.0",
"zod": "^4.3.6"
},
"overrides": {
"@typescript-eslint/typescript-estree": {
"minimatch": "^10.2.1"
},
"@eslint/config-array": {
"minimatch": "^10.2.1"
},
"eslint": {
"minimatch": "^10.2.1"
}
},
"devDependencies": {
"@eslint/js": "^10.0.0",
"@types/js-yaml": "^4.0.9",
"@types/node": "^22.19.11",
"@types/pg": "^8.16.0",
"@types/supertest": "^6.0.3",
"@types/vscode": "^1.80.0",
"@types/ws": "^8.5.13",
"@typescript-eslint/eslint-plugin": "^8.54.0",
"@typescript-eslint/parser": "^8.54.0",
"@vitest/coverage-v8": "^4.0.18",
"@vscode/vsce": "^3.7.1",
"esbuild": "^0.27.3",
"eslint": "^10.0.0",
"get-port": "^7.1.0",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"nock": "^14.0.11",
"prettier": "^3.8.1",
"supertest": "^7.2.2",
"typescript": "^5.0.4",
"vitest": "^4.0.18"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "^4.58.0"
}
}