@luban-code/luban-code 0.0.0-stage → 1.66.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,551 @@
1
- {
2
- "name": "@luban-code/luban-code",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
1
+ {
2
+ "name": "@luban-code/luban-code",
3
+ "displayName": "Luban",
4
+ "description": "Luban — a standalone sidebar AI coding agent (multi-provider, OpenAI-compatible, zero source patches)",
5
+ "version": "1.66.1",
6
+ "license": "Apache-2.0",
7
+ "author": {
8
+ "name": "eppen (liuhualiang)",
9
+ "url": "https://github.com/eppen"
10
+ },
11
+ "publisher": "liuhualiang",
12
+ "icon": "media/icon.png",
13
+ "homepage": "https://github.com/eppen/luban#readme",
14
+ "bugs": {
15
+ "url": "https://github.com/eppen/luban/issues"
16
+ },
17
+ "keywords": [
18
+ "ai",
19
+ "agent",
20
+ "chat",
21
+ "coding-agent",
22
+ "qwen",
23
+ "deepseek",
24
+ "openai-compatible",
25
+ "mcp"
26
+ ],
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "https://github.com/eppen/luban.git"
30
+ },
31
+ "engines": {
32
+ "vscode": "^1.100.0"
33
+ },
34
+ "categories": [
35
+ "AI",
36
+ "Chat",
37
+ "Programming Languages"
38
+ ],
39
+ "activationEvents": [
40
+ "onStartupFinished",
41
+ "onView:luban.chatView",
42
+ "onCommand:luban.focusView"
43
+ ],
44
+ "main": "./dist/extension.js",
45
+ "bin": {
46
+ "luban": "./dist/cli.js"
47
+ },
48
+ "files": [
49
+ "dist/cli.js",
50
+ "dist/extension.js",
51
+ "package.json"
52
+ ],
53
+ "scripts": {
54
+ "build": "node scripts/build.js",
55
+ "watch": "node scripts/build.js --watch",
56
+ "package": "node scripts/build.js",
57
+ "vscode:prepublish": "node scripts/build.js",
58
+ "prepack": "node scripts/build.js",
59
+ "smoke": "node scripts/build.js && node scripts/smoke.js",
60
+ "test:skills": "node scripts/test-skills.js",
61
+ "cli": "node cli.js",
62
+ "vsix": "npx --yes @vscode/vsce@latest package --no-dependencies",
63
+ "test:general": "node scripts/test-general-settings.js",
64
+ "test:browser-events": "node scripts/test-browser-events.js",
65
+ "test:browser-tool": "node scripts/test-browser-tool.js",
66
+ "test:computer-tool": "node scripts/test-computer-tool.js",
67
+ "test:subagent": "node scripts/test-subagent-guards.js",
68
+ "test:gamepad": "node scripts/test-gamepad.js"
69
+ },
70
+ "capabilities": {
71
+ "untrustedWorkspaces": {
72
+ "supported": true
73
+ },
74
+ "virtualWorkspaces": true
75
+ },
76
+ "contributes": {
77
+ "commands": [
78
+ {
79
+ "command": "luban.focusView",
80
+ "title": "%cmdFocusView%",
81
+ "category": "Luban"
82
+ },
83
+ {
84
+ "command": "luban.openPanel",
85
+ "title": "%cmdOpenPanel%",
86
+ "category": "Luban"
87
+ },
88
+ {
89
+ "command": "luban.reloadConfig",
90
+ "title": "%cmdReloadConfig%",
91
+ "category": "Luban"
92
+ },
93
+ {
94
+ "command": "luban.providerSettings",
95
+ "title": "%cmdProviderSettings%",
96
+ "category": "Luban"
97
+ },
98
+ {
99
+ "command": "luban.dashboard",
100
+ "title": "%cmdDashboard%",
101
+ "category": "Luban"
102
+ },
103
+ {
104
+ "command": "luban.agent",
105
+ "title": "%cmdAgent%",
106
+ "category": "Luban"
107
+ },
108
+ {
109
+ "command": "luban.openDiff",
110
+ "title": "%cmdOpenDiff%",
111
+ "category": "Luban"
112
+ },
113
+ {
114
+ "command": "luban.acceptHunk",
115
+ "title": "%cmdAcceptHunk%",
116
+ "category": "Luban"
117
+ },
118
+ {
119
+ "command": "luban.rejectHunk",
120
+ "title": "%cmdRejectHunk%",
121
+ "category": "Luban"
122
+ },
123
+ {
124
+ "command": "luban.acceptFile",
125
+ "title": "%cmdAcceptFile%",
126
+ "category": "Luban"
127
+ },
128
+ {
129
+ "command": "luban.rejectFile",
130
+ "title": "%cmdRejectFile%",
131
+ "category": "Luban"
132
+ },
133
+ {
134
+ "command": "luban.reviewAll",
135
+ "title": "%cmdReviewAll%",
136
+ "category": "Luban"
137
+ },
138
+ {
139
+ "command": "luban.revertAll",
140
+ "title": "%cmdRevertAll%",
141
+ "category": "Luban"
142
+ },
143
+ {
144
+ "command": "luban.newSession",
145
+ "title": "%cmdNewSession%",
146
+ "category": "Luban"
147
+ },
148
+ {
149
+ "command": "luban.sessionList",
150
+ "title": "%cmdSessionList%",
151
+ "category": "Luban"
152
+ },
153
+ {
154
+ "command": "luban.cursorPlan",
155
+ "title": "%cmdCursorPlan%",
156
+ "category": "Luban"
157
+ },
158
+ {
159
+ "command": "luban.mode.cycle",
160
+ "title": "%cmdModeCycle%",
161
+ "category": "Luban"
162
+ },
163
+ {
164
+ "command": "luban.addFileToChat",
165
+ "title": "%cmdAddFileToChat%",
166
+ "category": "Luban"
167
+ },
168
+ {
169
+ "command": "luban.addFolderToChat",
170
+ "title": "%cmdAddFolderToChat%",
171
+ "category": "Luban"
172
+ },
173
+ {
174
+ "command": "luban.addSelectionToChat",
175
+ "title": "%cmdAddSelectionToChat%",
176
+ "category": "Luban"
177
+ },
178
+ {
179
+ "command": "luban.inlineCompletion.toggle",
180
+ "title": "%cmdInlineToggle%",
181
+ "category": "Luban"
182
+ },
183
+ {
184
+ "command": "luban.diffAccept",
185
+ "title": "%cmdDiffAccept%",
186
+ "category": "Luban"
187
+ },
188
+ {
189
+ "command": "luban.diffReject",
190
+ "title": "%cmdDiffReject%",
191
+ "category": "Luban"
192
+ },
193
+ {
194
+ "command": "luban.openInBrowser",
195
+ "title": "%cmdOpenInBrowser%",
196
+ "category": "Luban"
197
+ },
198
+ {
199
+ "command": "luban.browserCheck",
200
+ "title": "%cmdBrowserCheck%",
201
+ "category": "Luban"
202
+ }
203
+ ],
204
+ "menus": {
205
+ "editor/title": [
206
+ {
207
+ "command": "luban.diffAccept",
208
+ "when": "isInDiffEditor && luban.reviewDiffActive && luban.pendingReview > 0",
209
+ "group": "navigation@1"
210
+ },
211
+ {
212
+ "command": "luban.diffReject",
213
+ "when": "isInDiffEditor && luban.reviewDiffActive && luban.pendingReview > 0",
214
+ "group": "navigation@2"
215
+ }
216
+ ],
217
+ "explorer/context": [
218
+ {
219
+ "command": "luban.addFileToChat",
220
+ "when": "!explorerResourceIsFolder && resourceScheme == file",
221
+ "group": "1_luban@1"
222
+ },
223
+ {
224
+ "command": "luban.addFolderToChat",
225
+ "when": "explorerResourceIsFolder && resourceScheme == file",
226
+ "group": "1_luban@2"
227
+ }
228
+ ],
229
+ "editor/context": [
230
+ {
231
+ "command": "luban.addSelectionToChat",
232
+ "when": "editorHasSelection && resourceScheme == file",
233
+ "group": "1_luban@0"
234
+ }
235
+ ],
236
+ "webview/context": [
237
+ {
238
+ "command": "luban.openInBrowser",
239
+ "when": "webviewSection == 'chat'"
240
+ }
241
+ ],
242
+ "commandPalette": [
243
+ {
244
+ "command": "luban.diffAccept",
245
+ "when": "luban.pendingReview > 0"
246
+ },
247
+ {
248
+ "command": "luban.diffReject",
249
+ "when": "luban.pendingReview > 0"
250
+ },
251
+ {
252
+ "command": "luban.addFileToChat",
253
+ "when": "false"
254
+ },
255
+ {
256
+ "command": "luban.addFolderToChat",
257
+ "when": "false"
258
+ },
259
+ {
260
+ "command": "luban.addSelectionToChat",
261
+ "when": "editorHasSelection"
262
+ },
263
+ {
264
+ "command": "luban.openInBrowser",
265
+ "when": "false"
266
+ }
267
+ ]
268
+ },
269
+ "keybindings": [
270
+ {
271
+ "command": "luban.focusView",
272
+ "key": "cmd+shift+l",
273
+ "mac": "cmd+shift+l",
274
+ "win": "ctrl+shift+l",
275
+ "linux": "ctrl+shift+l"
276
+ },
277
+ {
278
+ "command": "luban.newSession",
279
+ "key": "cmd+alt+n",
280
+ "mac": "cmd+alt+n",
281
+ "win": "ctrl+alt+n",
282
+ "linux": "ctrl+alt+n"
283
+ },
284
+ {
285
+ "command": "luban.sessionList",
286
+ "key": "cmd+alt+h",
287
+ "mac": "cmd+alt+h",
288
+ "win": "ctrl+alt+h",
289
+ "linux": "ctrl+alt+h"
290
+ },
291
+ {
292
+ "command": "luban.mode.cycle",
293
+ "key": "shift+tab",
294
+ "mac": "shift+tab",
295
+ "win": "shift+tab",
296
+ "linux": "shift+tab",
297
+ "when": "focusedView == 'luban.chatView'"
298
+ },
299
+ {
300
+ "command": "luban.addSelectionToChat",
301
+ "key": "cmd+alt+a",
302
+ "mac": "cmd+alt+a",
303
+ "win": "ctrl+alt+a",
304
+ "linux": "ctrl+alt+a",
305
+ "when": "editorHasSelection && editorTextFocus"
306
+ }
307
+ ],
308
+ "viewsContainers": {
309
+ "activitybar": [
310
+ {
311
+ "id": "luban",
312
+ "title": "Luban",
313
+ "icon": "media/icon.svg"
314
+ }
315
+ ]
316
+ },
317
+ "views": {
318
+ "luban": [
319
+ {
320
+ "type": "webview",
321
+ "id": "luban.chatView",
322
+ "name": "Chat",
323
+ "contextualTitle": "Luban"
324
+ }
325
+ ]
326
+ },
327
+ "configuration": {
328
+ "title": "Luban",
329
+ "properties": {
330
+ "luban.language": {
331
+ "type": "string",
332
+ "enum": [
333
+ "auto",
334
+ "en",
335
+ "zh-cn",
336
+ "ja"
337
+ ],
338
+ "enumDescriptions": [
339
+ "%cfgLanguageAuto%",
340
+ "%cfgLanguageEn%",
341
+ "%cfgLanguageZhCn%",
342
+ "%cfgLanguageJa%"
343
+ ],
344
+ "default": "auto",
345
+ "description": "%cfgLanguage%"
346
+ },
347
+ "luban.autoOpen": {
348
+ "type": "boolean",
349
+ "default": true,
350
+ "description": "%cfgAutoOpen%"
351
+ },
352
+ "luban.context.autoFile": {
353
+ "type": "boolean",
354
+ "default": true,
355
+ "description": "%cfgContextAutoFile%"
356
+ },
357
+ "luban.context.autoFileMaxChars": {
358
+ "type": "number",
359
+ "default": 8000,
360
+ "minimum": 500,
361
+ "description": "%cfgContextAutoFileMaxChars%"
362
+ },
363
+ "luban.context.autoFileWindowLines": {
364
+ "type": "number",
365
+ "default": 200,
366
+ "minimum": 40,
367
+ "description": "%cfgContextAutoFileWindowLines%"
368
+ },
369
+ "luban.context.workset": {
370
+ "type": "boolean",
371
+ "default": true,
372
+ "description": "%cfgContextWorkset%"
373
+ },
374
+ "luban.sessionHistory.max": {
375
+ "type": "number",
376
+ "default": 50,
377
+ "minimum": 1,
378
+ "description": "%cfgSessionHistoryMax%"
379
+ },
380
+ "luban.usage.record": {
381
+ "type": "boolean",
382
+ "default": true,
383
+ "description": "%cfgUsageRecord%"
384
+ },
385
+ "luban.sessionMemory.enabled": {
386
+ "type": "boolean",
387
+ "default": true,
388
+ "description": "%cfgSessionMemoryEnabled%"
389
+ },
390
+ "luban.sessionMemory.maxTurns": {
391
+ "type": "number",
392
+ "default": 8,
393
+ "minimum": 1,
394
+ "description": "%cfgSessionMemoryMaxTurns%"
395
+ },
396
+ "luban.sessionMemory.maxChars": {
397
+ "type": "number",
398
+ "default": 12000,
399
+ "minimum": 1000,
400
+ "description": "%cfgSessionMemoryMaxChars%"
401
+ },
402
+ "luban.agent.maxRounds": {
403
+ "type": "number",
404
+ "default": 100,
405
+ "minimum": 0,
406
+ "description": "%cfgAgentMaxRounds%"
407
+ },
408
+ "luban.agent.maxMinutes": {
409
+ "type": "number",
410
+ "default": 15,
411
+ "minimum": 1,
412
+ "description": "%cfgAgentMaxMinutes%"
413
+ },
414
+ "luban.agent.subagentRounds": {
415
+ "type": "number",
416
+ "default": 24,
417
+ "minimum": 0,
418
+ "description": "%cfgAgentSubagentRounds%"
419
+ },
420
+ "luban.agent.subagentMinutes": {
421
+ "type": "number",
422
+ "default": 0,
423
+ "minimum": 0,
424
+ "description": "%cfgAgentSubagentMinutes%"
425
+ },
426
+ "luban.agent.smallWindow": {
427
+ "type": "string",
428
+ "enum": [
429
+ "auto",
430
+ "on",
431
+ "off"
432
+ ],
433
+ "default": "auto",
434
+ "description": "%cfgAgentSmallWindow%"
435
+ },
436
+ "luban.agent.verbosity": {
437
+ "type": "string",
438
+ "enum": [
439
+ "concise",
440
+ "normal",
441
+ "detailed"
442
+ ],
443
+ "default": "normal",
444
+ "description": "%cfgAgentVerbosity%"
445
+ },
446
+ "luban.search.maxFiles": {
447
+ "type": "number",
448
+ "default": 5000,
449
+ "minimum": 100,
450
+ "description": "%cfgSearchMaxFiles%"
451
+ },
452
+ "luban.browser.enabled": {
453
+ "type": "boolean",
454
+ "default": false,
455
+ "description": "%cfgBrowserEnabled%"
456
+ },
457
+ "luban.browser.chromePath": {
458
+ "type": "string",
459
+ "default": "",
460
+ "description": "%cfgBrowserChromePath%"
461
+ },
462
+ "luban.browser.headless": {
463
+ "type": "boolean",
464
+ "default": true,
465
+ "description": "%cfgBrowserHeadless%"
466
+ },
467
+ "luban.browser.viewportWidth": {
468
+ "type": "number",
469
+ "default": 1280,
470
+ "minimum": 320,
471
+ "maximum": 4096,
472
+ "description": "%cfgBrowserViewportWidth%"
473
+ },
474
+ "luban.browser.viewportHeight": {
475
+ "type": "number",
476
+ "default": 800,
477
+ "minimum": 240,
478
+ "maximum": 4096,
479
+ "description": "%cfgBrowserViewportHeight%"
480
+ },
481
+ "luban.browser.idleTimeoutMs": {
482
+ "type": "number",
483
+ "default": 300000,
484
+ "minimum": 10000,
485
+ "description": "%cfgBrowserIdleTimeout%"
486
+ },
487
+ "luban.computer.enabled": {
488
+ "type": "boolean",
489
+ "default": false,
490
+ "description": "%cfgComputerEnabled%"
491
+ },
492
+ "luban.computer.confirm": {
493
+ "type": "boolean",
494
+ "default": true,
495
+ "description": "%cfgComputerConfirm%"
496
+ },
497
+ "luban.computer.screenshotWidth": {
498
+ "type": "number",
499
+ "default": 2048,
500
+ "minimum": 320,
501
+ "maximum": 4096,
502
+ "description": "%cfgComputerScreenshotWidth%"
503
+ },
504
+ "luban.plan.strictReadOnly": {
505
+ "type": "boolean",
506
+ "default": true,
507
+ "description": "%cfgPlanStrictReadOnly%"
508
+ },
509
+ "luban.fs.allowOutsideWorkspace": {
510
+ "type": "boolean",
511
+ "default": true,
512
+ "description": "%cfgFsAllowOutsideWorkspace%"
513
+ },
514
+ "luban.review.autoOpenDiff": {
515
+ "type": "boolean",
516
+ "default": true,
517
+ "description": "%cfgReviewAutoOpenDiff%"
518
+ },
519
+ "luban.diagnostics.afterEdit": {
520
+ "type": "boolean",
521
+ "default": true,
522
+ "description": "%cfgDiagAfterEdit%"
523
+ },
524
+ "luban.inlineCompletion.enabled": {
525
+ "type": "boolean",
526
+ "default": false,
527
+ "description": "%cfgInlineEnabled%"
528
+ },
529
+ "luban.inlineCompletion.maxPerMinute": {
530
+ "type": "number",
531
+ "default": 30,
532
+ "minimum": 1,
533
+ "description": "%cfgInlineMaxPerMinute%"
534
+ },
535
+ "luban.inlineCompletion.debounceMs": {
536
+ "type": "number",
537
+ "default": 250,
538
+ "minimum": 0,
539
+ "description": "%cfgInlineDebounceMs%"
540
+ }
541
+ }
542
+ }
543
+ },
544
+ "devDependencies": {
545
+ "esbuild": "^0.25.0"
546
+ },
547
+ "dependencies": {
548
+ "@clack/prompts": "^1.8.1",
549
+ "picocolors": "^1.1.1"
550
+ }
551
+ }