blade-code 0.0.2
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/README.md +399 -0
- package/config.env.example +26 -0
- package/dist/blade.js +530 -0
- package/package.json +118 -0
package/package.json
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "blade-code",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "🗡️ Blade Code - 智能代码助手命令行工具",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "dist/blade.js",
|
|
8
|
+
"bin": {
|
|
9
|
+
"blade": "dist/blade.js"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"bin",
|
|
14
|
+
"config.env.example",
|
|
15
|
+
"README.md"
|
|
16
|
+
],
|
|
17
|
+
"scripts": {
|
|
18
|
+
"dev": "bun --watch src/blade.tsx",
|
|
19
|
+
"build": "rm -rf dist && bun build src/blade.tsx --external react-devtools-core --external react --external react-dom --external ink --external yargs --external chalk --external inquirer --minify --outfile dist/blade.js --target=node",
|
|
20
|
+
"start": "bun run dist/blade.js",
|
|
21
|
+
"test": "vitest",
|
|
22
|
+
"test:watch": "vitest --watch",
|
|
23
|
+
"test:coverage": "vitest --coverage",
|
|
24
|
+
"test:unit": "vitest --testNamePattern=\"(unit|__tests__)\"",
|
|
25
|
+
"test:integration": "vitest --testNamePattern=\"integration\"",
|
|
26
|
+
"test:e2e": "vitest --testNamePattern=\"e2e\"",
|
|
27
|
+
"test:ci": "vitest run --coverage",
|
|
28
|
+
"test:performance": "vitest --testNamePattern=\"performance\" --verbose",
|
|
29
|
+
"test:debug": "vitest --no-cache --verbose",
|
|
30
|
+
"lint": "biome lint src tests",
|
|
31
|
+
"lint:fix": "biome lint --write src tests",
|
|
32
|
+
"format": "biome format --write src tests",
|
|
33
|
+
"format:check": "biome format src tests",
|
|
34
|
+
"check": "biome check src tests",
|
|
35
|
+
"check:fix": "biome check --write src tests",
|
|
36
|
+
"type-check": "tsc --noEmit",
|
|
37
|
+
"check:full": "npm run type-check && npm run lint && npm run format:check && npm run test",
|
|
38
|
+
"security:audit": "pnpm audit",
|
|
39
|
+
"security:test": "bash scripts/run-security-tests.sh",
|
|
40
|
+
"release": "node scripts/release.js",
|
|
41
|
+
"release:dry": "node scripts/release.js --dry-run",
|
|
42
|
+
"release:major": "node scripts/release.js --major",
|
|
43
|
+
"release:minor": "node scripts/release.js --minor",
|
|
44
|
+
"release:patch": "node scripts/release.js --patch",
|
|
45
|
+
"clean": "rm -rf dist node_modules/.cache",
|
|
46
|
+
"prepare": "bun run build",
|
|
47
|
+
"preflight": "npm run clean && pnpm install && npm run format && npm run lint && npm run build && npm run type-check && npm run test:ci"
|
|
48
|
+
},
|
|
49
|
+
"keywords": [
|
|
50
|
+
"cli",
|
|
51
|
+
"blade",
|
|
52
|
+
"ai",
|
|
53
|
+
"assistant",
|
|
54
|
+
"agent",
|
|
55
|
+
"llm",
|
|
56
|
+
"tool",
|
|
57
|
+
"qwen",
|
|
58
|
+
"volcengine",
|
|
59
|
+
"smart-tools",
|
|
60
|
+
"code-review",
|
|
61
|
+
"documentation",
|
|
62
|
+
"git-tools"
|
|
63
|
+
],
|
|
64
|
+
"author": "echoVic",
|
|
65
|
+
"license": "MIT",
|
|
66
|
+
"repository": {
|
|
67
|
+
"type": "git",
|
|
68
|
+
"url": "git+https://github.com/echoVic/blade-code.git"
|
|
69
|
+
},
|
|
70
|
+
"homepage": "https://github.com/echoVic/blade-code",
|
|
71
|
+
"bugs": {
|
|
72
|
+
"url": "https://github.com/echoVic/blade-code/issues"
|
|
73
|
+
},
|
|
74
|
+
"engines": {
|
|
75
|
+
"node": ">=16.0.0"
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"@babel/core": "^7.23.0",
|
|
79
|
+
"@babel/preset-env": "^7.23.0",
|
|
80
|
+
"@babel/preset-react": "^7.22.0",
|
|
81
|
+
"@biomejs/biome": "^2.2.4",
|
|
82
|
+
"@testing-library/react": "^16.2.0",
|
|
83
|
+
"@testing-library/user-event": "^14.5.0",
|
|
84
|
+
"@types/inquirer": "^9.0.8",
|
|
85
|
+
"@types/jest": "^30.0.0",
|
|
86
|
+
"@types/lodash-es": "^4.17.12",
|
|
87
|
+
"@types/node": "^22.15.24",
|
|
88
|
+
"@types/react": "^19.1.12",
|
|
89
|
+
"@types/react-dom": "^19.1.9",
|
|
90
|
+
"@types/uuid": "^10.0.0",
|
|
91
|
+
"@types/ws": "^8.5.12",
|
|
92
|
+
"@types/yargs": "^17.0.33",
|
|
93
|
+
"@vitest/coverage-v8": "^3.0.0",
|
|
94
|
+
"jsdom": "^26.0.0",
|
|
95
|
+
"ts-node": "^10.9.2",
|
|
96
|
+
"typescript": "^5.9.2",
|
|
97
|
+
"vitest": "^3.0.0"
|
|
98
|
+
},
|
|
99
|
+
"dependencies": {
|
|
100
|
+
"@modelcontextprotocol/sdk": "^1.17.4",
|
|
101
|
+
"@types/react": "^19.1.12",
|
|
102
|
+
"@types/react-dom": "^19.1.9",
|
|
103
|
+
"ahooks": "^3.9.5",
|
|
104
|
+
"axios": "^1.9.0",
|
|
105
|
+
"chalk": "^5.4.1",
|
|
106
|
+
"ink": "^6.2.3",
|
|
107
|
+
"inquirer": "^12.6.3",
|
|
108
|
+
"lodash-es": "^4.17.21",
|
|
109
|
+
"lowlight": "^3.3.0",
|
|
110
|
+
"openai": "^4.103.0",
|
|
111
|
+
"react": "^19.1.1",
|
|
112
|
+
"react-dom": "^19.1.1",
|
|
113
|
+
"uuid": "^11.1.0",
|
|
114
|
+
"ws": "^8.18.0",
|
|
115
|
+
"yargs": "^18.0.0",
|
|
116
|
+
"zod": "^3.24.2"
|
|
117
|
+
}
|
|
118
|
+
}
|