Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
216 lines (216 loc) · 6.4 KB
/
Copy pathpackage.json
File metadata and controls
216 lines (216 loc) · 6.4 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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
{
"name": "zed-cursor",
"displayName": "Zed Package Insights for Cursor",
"description": "Workspace health, diagnostics, dependency insights, and guided resolutions for Zed packages in Cursor.",
"version": "0.1.0",
"publisher": "zed-pkg",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/zed-pkg/zed-cursor.git"
},
"bugs": {
"url": "https://github.com/zed-pkg/zed-cursor/issues"
},
"homepage": "https://github.com/zed-pkg/zed-cursor#readme",
"engines": {
"vscode": "^1.96.0"
},
"categories": [
"Linters",
"Visualization",
"Other"
],
"keywords": [
"cursor",
"zed",
"zpkg",
"package-manager",
"dependencies",
"diagnostics"
],
"extensionKind": [
"workspace"
],
"activationEvents": [
"workspaceContains:**/.zpkg.toml",
"workspaceContains:**/.zpkg.lock",
"onCommand:zedCursor.refresh",
"onCommand:zedCursor.showDashboard"
],
"main": "./dist/extension.js",
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"description": "Read-only package analysis remains available. Commands that execute the Zed CLI are disabled until the workspace is trusted."
},
"virtualWorkspaces": {
"supported": false,
"description": "Zed package analysis requires access to local manifests, lockfiles, and dependency paths."
}
},
"contributes": {
"commands": [
{
"command": "zedCursor.refresh",
"title": "Zed: Refresh Package Insights",
"icon": "$(refresh)"
},
{
"command": "zedCursor.showDashboard",
"title": "Zed: Show Package Insights",
"icon": "$(dashboard)"
},
{
"command": "zedCursor.init",
"title": "Zed: Initialize Package"
},
{
"command": "zedCursor.openManifest",
"title": "Zed: Open Package Manifest"
},
{
"command": "zedCursor.install",
"title": "Zed: Install Dependencies"
},
{
"command": "zedCursor.installFrozen",
"title": "Zed: Install Frozen Dependencies"
},
{
"command": "zedCursor.build",
"title": "Zed: Build Package"
},
{
"command": "zedCursor.envVerify",
"title": "Zed: Verify Developer Environment"
},
{
"command": "zedCursor.selfUpdateCheck",
"title": "Zed: Check CLI Update"
},
{
"command": "zedCursor.copyResolutionPrompt",
"title": "Zed: Copy Resolution Prompt"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "zedPackages",
"title": "Zed Packages",
"icon": "media/zed.svg"
}
]
},
"views": {
"zedPackages": [
{
"id": "zedCursor.packagesView",
"name": "Package Health",
"icon": "$(package)"
}
]
},
"viewsWelcome": [
{
"view": "zedCursor.packagesView",
"contents": "No Zed package manifest was found in this workspace.\n[Initialize a Zed package](command:zedCursor.init)"
}
],
"menus": {
"view/title": [
{
"command": "zedCursor.refresh",
"when": "view == zedCursor.packagesView",
"group": "navigation@1"
},
{
"command": "zedCursor.showDashboard",
"when": "view == zedCursor.packagesView",
"group": "navigation@2"
}
],
"editor/context": [
{
"command": "zedCursor.showDashboard",
"when": "resourceFilename == .zpkg.toml || resourceFilename == .zpkg.lock",
"group": "navigation@10"
}
]
},
"configuration": {
"title": "Zed Package Insights",
"properties": {
"zedCursor.cliPath": {
"type": "string",
"default": "zed",
"description": "Path to the Zed package-manager CLI executable."
},
"zedCursor.analyzerPath": {
"type": "string",
"default": "",
"description": "Optional path to a zed-cursor-analyzer executable. The bundled analyzer is used when available."
},
"zedCursor.preferRustAnalyzer": {
"type": "boolean",
"default": true,
"description": "Use the bundled Rust analyzer when available, falling back to the TypeScript analyzer otherwise."
},
"zedCursor.scanExclude": {
"type": "string",
"default": "**/{node_modules,target,.git,.zed,.zed-pack,.vendor}/**",
"description": "Glob excluded while discovering Zed package manifests."
},
"zedCursor.confirmMutatingCommands": {
"type": "boolean",
"default": true,
"description": "Ask before running commands such as zed install or zed build."
},
"zedCursor.maxManifests": {
"type": "number",
"default": 250,
"minimum": 1,
"maximum": 5000,
"description": "Maximum number of manifests analyzed per refresh."
},
"zedCursor.refreshDebounceMs": {
"type": "number",
"default": 350,
"minimum": 50,
"maximum": 10000,
"description": "Delay before re-analyzing after manifest or lockfile changes."
}
}
}
},
"scripts": {
"clean": "node scripts/clean.mjs",
"compile": "tsc -p tsconfig.json",
"watch": "tsc -w -p tsconfig.json",
"check": "tsc -p tsconfig.json --noEmit",
"test:core": "node scripts/test-core.mjs",
"test:rust": "cargo test --manifest-path analyzer/Cargo.toml --all-targets",
"test": "npm run test:core",
"package": "npm run clean && npm run compile && npx @vscode/vsce package",
"publish:openvsx": "npx ovsx publish",
"vscode:prepublish": "npm run clean && npm run compile",
"lint:ores": "if [ -f .ores-lint/lint.sh ]; then sh .ores-lint/lint.sh; else echo 'ores-lint not installed'; fi",
"prepublishOnly": "npm run lint:ores"
},
"devDependencies": {
"@types/node": "^22.15.0",
"@types/vscode": "^1.96.0",
"@vscode/vsce": "^3.6.0",
"ovsx": "^0.10.0",
"typescript": "^5.8.3"
},
"oresLint": {
"note": "Declared, not installed. ores-lint resolves these from a global install - see .ores-lint/README.md",
"requires": {
"eslint": ">=9",
"typescript-eslint": ">=8 (optional; without it .ts files are skipped)"
},
"install": "npm i -g eslint typescript-eslint"
}
}