Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
245 lines (245 loc) · 6.99 KB
/
Copy pathpackage.json
File metadata and controls
245 lines (245 loc) · 6.99 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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
{
"name": "ocursor",
"displayName": "OpenCursor Agent",
"description": "AI coding agent chat inside VS Code",
"version": "0.2.0",
"publisher": "pkrd",
"license": "MIT",
"icon": "media/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/PawanOsman/OpenCursor.git"
},
"bugs": {
"url": "https://github.com/PawanOsman/OpenCursor/issues"
},
"homepage": "https://github.com/PawanOsman/OpenCursor#readme",
"engines": {
"vscode": "^1.96.0"
},
"categories": [
"AI",
"Chat",
"Programming Languages"
],
"keywords": [
"ai",
"agent",
"chat",
"copilot",
"assistant"
],
"activationEvents": [],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "ocursor.remoteJobs",
"title": "OpenCursor: Remote Jobs"
},
{
"command": "ocursor.managePlugins",
"title": "OpenCursor: Manage Plugins"
},
{
"command": "ocursor.openSettings",
"title": "Open OpenCursor Settings"
},
{
"command": "ocursor.addToChat",
"title": "OpenCursor: Add Selection to Chat"
},
{
"command": "ocursor.newChat",
"title": "OpenCursor: New Chat"
},
{
"command": "ocursor.reviewChanges",
"title": "OpenCursor: Review Changes"
},
{
"command": "ocursor.implementTodo",
"title": "OpenCursor: Implement TODO"
}
],
"keybindings": [
{
"command": "ocursor.addToChat",
"key": "ctrl+l",
"mac": "cmd+l",
"when": "editorTextFocus"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "ocursor-sidebar",
"title": "OpenCursor",
"icon": "media/icon.svg"
}
]
},
"views": {
"ocursor-sidebar": [
{
"type": "webview",
"id": "ocursor.chatView",
"name": "OpenCursor Agent"
}
]
},
"configuration": [
{
"title": "OpenCursor Settings",
"properties": {
"ocursor.model": {
"type": "string",
"default": "auto",
"description": "The AI model to use"
},
"ocursor.maxResponseLength": {
"type": "integer",
"default": 0,
"description": "Maximum response length in tokens (0 = let the model decide)"
},
"ocursor.enableWorkspaceContext": {
"type": "boolean",
"default": true,
"description": "Enable workspace context for the AI agent"
},
"ocursor.enableFileReading": {
"type": "boolean",
"default": true,
"description": "Enable file reading/glob/grep tools"
},
"ocursor.enableTerminalSuggestions": {
"type": "boolean",
"default": true,
"description": "Enable run terminal command suggestions tool"
},
"ocursor.systemPrompt": {
"type": "string",
"default": "You are a professional coding assistant extension named OpenCursor.",
"description": "System prompt or custom instruction field"
},
"ocursor.todoCodeLensEnabled": {
"type": "boolean",
"default": true,
"description": "Show Implement with OpenCursor above TODO comments."
},
"ocursor.executionMode": {
"type": "string",
"enum": [
"local",
"container"
],
"default": "local",
"description": "Run commands on the host or inside a restricted Docker container. Container mode requires Docker and a pre-pulled image."
},
"ocursor.browserExecutablePath": {
"type": "string",
"default": "",
"description": "Optional Chrome or Chromium executable for isolated browser verification. An installed Chrome or Edge is detected automatically."
},
"ocursor.containerImage": {
"type": "string",
"default": "node:22-bookworm-slim",
"description": "Existing Docker image used for command execution. Images are never pulled automatically."
},
"ocursor.containerNetwork": {
"type": "boolean",
"default": false,
"description": "Allow outbound networking for container commands."
},
"ocursor.containerMemoryMb": {
"type": "integer",
"minimum": 256,
"maximum": 262144,
"default": 4096,
"description": "Container command memory limit in MiB."
},
"ocursor.containerCpus": {
"type": "number",
"minimum": 0.25,
"maximum": 128,
"default": 2,
"description": "Container command CPU limit."
}
}
}
]
},
"scripts": {
"build:worker": "node scripts/build-worker.cjs",
"test:worker": "pnpm run build:worker && node scripts/worker-smoke.cjs",
"worker": "node dist/worker.cjs serve",
"eval:live": "node dist/worker.cjs evaluate",
"vscode:prepublish": "pnpm run package",
"compile": "pnpm run check-types && pnpm run lint && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"preview:ui": "node scripts/preview-webviews.cjs",
"package": "pnpm run check-types && pnpm run lint && node esbuild.js --production && node scripts/build-worker.cjs",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "pnpm run compile-tests && pnpm run compile && pnpm run lint",
"check-types": "tsc --noEmit && tsc --noEmit -p tsconfig.webview.json",
"lint": "eslint src",
"test": "vscode-test",
"test:unit": "vitest run --exclude src/agent/tools/browser.test.ts",
"test:browser": "vitest run src/agent/tools/browser.test.ts --maxWorkers=1 --minWorkers=1",
"vsix": "pnpm run package && pnpm dlx @vscode/vsce package --no-dependencies",
"runtime:manifest": "node scripts/generate-runtime-manifest.cjs",
"runtime:check": "node scripts/generate-runtime-manifest.cjs --check",
"test:runtime": "node scripts/runtime-smoke.cjs",
"test:eval": "vitest run src/agent/evaluations.test.ts",
"test:host": "pnpm run compile-tests && node scripts/extension-host-test.cjs"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "24.x",
"@types/pdf-parse": "^1.1.5",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"@types/vscode": "~1.96.0",
"@vscode/test-cli": "^0.0.15",
"@vscode/test-electron": "^3.0.0",
"esbuild": "^0.28.1",
"eslint": "^10.5.0",
"js-yaml": "4.2.0",
"jsdom": "26.1.0",
"npm-run-all": "^4.1.5",
"typescript": "^6.0.3",
"typescript-eslint": "^8.61.1",
"vitest": "^2.1.9"
},
"overrides": {
"diff": "^8.0.4",
"serialize-javascript": "^7.0.6"
},
"dependencies": {
"@huggingface/hub": "^2.13.2",
"@huggingface/transformers": "^4.2.0",
"@lydell/node-pty": "1.2.0-beta.15",
"@modelcontextprotocol/sdk": "1.27.1",
"ajv": "8.17.1",
"lucide-react": "^1.21.0",
"marked": "^18.0.5",
"onnxruntime-node": "^1.27.0",
"pdf-parse": "^2.4.5",
"playwright-core": "1.63.0",
"prosemirror-commands": "^1.7.2",
"prosemirror-history": "^1.5.0",
"prosemirror-inputrules": "^1.5.1",
"prosemirror-keymap": "^1.2.3",
"prosemirror-markdown": "^1.13.8",
"prosemirror-model": "^1.25.12",
"prosemirror-schema-list": "^1.5.1",
"prosemirror-state": "^1.4.4",
"prosemirror-view": "^1.42.5",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"sharp": "^0.35.2"
}
}