Skip to content

Commit 5d9be8d

Browse files
authored
Merge pull request #43 from phodal/fix/vscode-codelens-and-codefence
feat(mpp-vscode): implement CodeLens with Tree-sitter and fix CodeFence parsing
2 parents 05e440d + 254e488 commit 5d9be8d

30 files changed

+2354
-295
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pluginRepositoryUrl = https://github.com/unit-mesh/auto-dev
1010
pluginVersion = 2.4.6
1111

1212
# MPP Unified Version (mpp-core, mpp-ui, mpp-server)
13-
mppVersion = 0.3.3
13+
mppVersion = 0.3.4
1414

1515
# Supported IDEs: idea, pycharm
1616
baseIDE=idea

mpp-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@autodev/cli",
3-
"version": "0.3.3",
3+
"version": "0.3.4",
44
"description": "AutoDev CLI - Terminal UI for AI-powered development assistant",
55
"type": "module",
66
"bin": {

mpp-ui/package.json.backup

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"name": "@autodev/cli",
3+
"version": "0.3.4",
4+
"description": "AutoDev CLI - Terminal UI for AI-powered development assistant",
5+
"type": "module",
6+
"bin": {
7+
"autodev": "./dist/jsMain/typescript/index.js"
8+
},
9+
"scripts": {
10+
"build:kotlin": "cd .. && ./gradlew :mpp-core:assembleJsPackage",
11+
"build:kotlin-deps": "cd ../mpp-core/build/packages/js && npm install --ignore-scripts",
12+
"build:ts": "cd .. && ./gradlew :mpp-ui:compileKotlinJs && cd mpp-ui && tsc && chmod +x dist/jsMain/typescript/index.js",
13+
"build": "npm run build:kotlin && npm run build:kotlin-deps && npm run build:ts",
14+
"dev": "tsc --watch",
15+
"start": "node dist/jsMain/typescript/index.js",
16+
"code": "node dist/jsMain/typescript/index.js code",
17+
"test": "vitest run",
18+
"test:unit": "vitest run src/jsMain/typescript/**/*.test.ts",
19+
"test:git": "npm run build:kotlin && node ../docs/test-scripts/test-git-nodejs.js",
20+
"test:cli": "node test-cli-completion.js",
21+
"test:all": "npm test && npm run test:completion && npm run test:cli",
22+
"test:ci": "npm run build && npm run test:integration",
23+
"test:framework": "node src/test/framework/validate-structure.cjs",
24+
"test:integration-v2": "npm run build:ts && npm test src/test/integration-v2 -- --reporter=verbose",
25+
"test:json-scenarios": "npm run build:ts && npm test src/test/integration-v2/json-scenarios.test.ts -- --reporter=verbose",
26+
"analyze-test-results": "node scripts/analyze-test-results.cjs",
27+
"generate:scenario:interactive": "node scripts/generate-test-scenario.js --interactive",
28+
"validate:scenarios": "node scripts/validate-scenarios.js",
29+
"clean": "rm -rf dist build",
30+
"icon:convert": "bash scripts/convert-icon.sh && python3 scripts/convert-icon-windows.py",
31+
"prepublish:local": "npm run build",
32+
"publish:local": "node scripts/publish-local.js",
33+
"prepublish:remote": "npm run build",
34+
"publish:remote": "node scripts/publish-remote.js",
35+
"postinstall": "node scripts/check-mpp-core.js || echo 'Warning: mpp-core not found, run npm run build:kotlin first'"
36+
},
37+
"packageManager": "[email protected]",
38+
"keywords": [
39+
"ai",
40+
"cli",
41+
"terminal",
42+
"coding-assistant",
43+
"autodev",
44+
"tui"
45+
],
46+
"author": "AutoDev Team",
47+
"license": "MIT",
48+
"engines": {
49+
"node": ">=20.0.0"
50+
},
51+
"dependencies": {
52+
"@autodev/mpp-core": "file:../mpp-core/build/packages/js",
53+
"@js-joda/core": "^5.6.5",
54+
"@modelcontextprotocol/sdk": "^1.0.4",
55+
"@unit-mesh/treesitter-artifacts": "^1.7.7",
56+
"chalk": "^5.3.0",
57+
"commander": "^12.1.0",
58+
"diff": "^7.0.0",
59+
"dotenv": "^16.4.5",
60+
"highlight.js": "^11.11.1",
61+
"ink": "^5.0.1",
62+
"ink-select-input": "^6.0.0",
63+
"ink-spinner": "^5.0.0",
64+
"ink-text-input": "^6.0.0",
65+
"node-fetch": "^3.3.2",
66+
"react": "^18.3.1",
67+
"web-tree-sitter": "^0.22.2",
68+
"yaml": "^2.6.1"
69+
},
70+
"devDependencies": {
71+
"@types/diff": "^6.0.0",
72+
"@types/node": "^20.11.24",
73+
"@types/react": "^18.3.12",
74+
"ink-testing-library": "^4.0.0",
75+
"typescript": "^5.3.3",
76+
"vitest": "^2.1.8"
77+
},
78+
"files": [
79+
"dist/",
80+
"README.md"
81+
]
82+
}

mpp-vscode/.vscodeignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# VSCode extension ignore file
2+
# Exclude source files and build artifacts not needed in the packaged extension
3+
4+
# Source files
5+
src/
6+
webview/src/
7+
webview/node_modules/
8+
9+
# Build artifacts
10+
*.map
11+
tsconfig.json
12+
.eslintrc.json
13+
14+
# Development files
15+
.vscode/
16+
node_modules/
17+
.gitignore
18+
.git/
19+
20+
# Test files
21+
**/__tests__/**
22+
**/*.test.*
23+
**/*.spec.*
24+
25+
# Documentation
26+
README.md
27+
CHANGELOG.md
28+
29+
# Keep dist and wasm folders
30+
!dist/
31+
!wasm/
32+

0 commit comments

Comments
 (0)