-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
154 lines (154 loc) · 4.84 KB
/
package.json
File metadata and controls
154 lines (154 loc) · 4.84 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
{
"name": "crowd-pilot",
"displayName": "crowd-pilot-extension",
"description": "Teaching language models to code like humans.",
"publisher": "p-doom",
"version": "0.0.1",
"repository": {
"type": "git",
"url": "https://github.com/p-doom/crowd-pilot-extension"
},
"engines": {
"vscode": "^1.99.3"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "crowd-pilot.toggleSuggestions",
"title": "crowd-pilot: Toggle Tab Suggestions"
},
{
"command": "crowd-pilot.hideUi",
"title": "crowd-pilot: Hide Preview"
},
{
"command": "crowd-pilot.sglangTest",
"title": "crowd-pilot: Test SGLang"
},
{
"command": "crowd-pilot.modelRun",
"title": "crowd-pilot: Model Plan & Run"
},
{
"command": "crowd-pilot.clearContext",
"title": "crowd-pilot: Clear Context"
},
{
"command": "crowd-pilot.openPreferenceLog",
"title": "crowd-pilot: Open Preference Log"
},
{
"command": "crowd-pilot.showPendingAction",
"title": "crowd-pilot: Show Pending Suggestion"
}
],
"configuration": {
"title": "crowd-pilot",
"properties": {
"crowd-pilot.hostname": {
"type": "string",
"default": "hai002",
"description": "Hostname of the SGLang server"
},
"crowd-pilot.port": {
"type": "number",
"default": 30000,
"description": "Port of the SGLang server"
},
"crowd-pilot.basePath": {
"type": "string",
"default": "/v1/chat/completions",
"description": "Base path for the SGLang API endpoint"
},
"crowd-pilot.modelName": {
"type": "string",
"default": "qwen/qwen3-8b",
"description": "Model name to use for completions"
},
"crowd-pilot.minAvgLogprob": {
"type": "number",
"default": -1.0,
"description": "Minimum average log-probability per token for displaying suggestions. Higher values (closer to 0) require more confidence. -1.0 ≈ perplexity 2.7"
},
"crowd-pilot.maxContextTokens": {
"type": "number",
"default": 120000,
"description": "Context length (in tokens). Older messages are truncated to fit. Set below your model's limit to leave room for the response."
},
"crowd-pilot.enablePreferenceLogging": {
"type": "boolean",
"default": true,
"description": "Enable logging of accept/reject data for reward model training and RLHF/DPO"
},
"crowd-pilot.preferenceLogPath": {
"type": "string",
"default": "",
"description": "Custom path for the preference log file (JSONL format). If empty, uses workspace/.crowd-pilot-preferences.jsonl"
},
"crowd-pilot.viewportRadius": {
"type": "number",
"default": 10,
"description": "Number of lines above/below cursor to include in file viewports"
}
}
},
"keybindings": [
{
"command": "crowd-pilot.modelRun",
"key": "tab",
"mac": "tab",
"when": "editorTextFocus && crowdPilot.uiVisible"
},
{
"command": "crowd-pilot.modelRun",
"key": "tab",
"mac": "tab",
"when": "inQuickOpen && crowdPilot.uiVisible"
},
{
"command": "crowd-pilot.hideUi",
"key": "escape",
"mac": "escape",
"when": "crowdPilot.uiVisible"
},
{
"command": "crowd-pilot.showPendingAction",
"key": "ctrl+,",
"mac": "cmd+,",
"when": "terminalFocus && crowdPilot.hasPendingAction"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test",
"clean": "rm -rf out *.tgz",
"clean:all": "rm -rf out *.tgz node_modules package-lock.json",
"rebuild-serializer": "rm -f crowd-pilot-serializer-*.tgz && cd crowd-pilot-serializer/crates/napi && npm install && rm -f index.d.ts index.js && npm run build && npm pack && mv *.tgz ../../../ && cd ../../.. && rm -rf node_modules/@crowd-pilot && npm install"
},
"dependencies": {
"@crowd-pilot/serializer": "file:./crowd-pilot-serializer-0.1.0.tgz"
},
"devDependencies": {
"@types/vscode": "^1.99.3",
"@types/mocha": "^10.0.10",
"@types/node": "22.x",
"@typescript-eslint/eslint-plugin": "^8.45.0",
"@typescript-eslint/parser": "^8.45.0",
"eslint": "^9.36.0",
"typescript": "^5.9.3",
"@vscode/test-cli": "^0.0.11",
"@vscode/test-electron": "^2.5.2"
}
}