blade-code 0.0.47 → 0.1.0
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/CHANGELOG.md +28 -0
- package/dist/blade.js +561 -560
- package/package.json +44 -44
- package/vendor/ripgrep/darwin-arm64/rg +0 -0
- package/vendor/ripgrep/darwin-x64/rg +0 -0
- package/vendor/ripgrep/linux-arm64/rg +0 -0
- package/vendor/ripgrep/linux-x64/rg +0 -0
- package/vendor/ripgrep/win32-x64/rg.exe +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blade-code",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "🗡️ Blade Code - 智能代码助手命令行工具",
|
|
6
6
|
"type": "module",
|
|
@@ -13,48 +13,6 @@
|
|
|
13
13
|
"README.md",
|
|
14
14
|
"CHANGELOG.md"
|
|
15
15
|
],
|
|
16
|
-
"scripts": {
|
|
17
|
-
"dev": "bun --watch src/blade.tsx",
|
|
18
|
-
"build": "rm -rf dist && bun run scripts/build.ts",
|
|
19
|
-
"start": "bun run dist/blade.js",
|
|
20
|
-
"test": "node scripts/test.js",
|
|
21
|
-
"test:all": "vitest run --config vitest.config.ts",
|
|
22
|
-
"test:unit": "node scripts/test.js unit",
|
|
23
|
-
"test:integration": "node scripts/test.js integration",
|
|
24
|
-
"test:cli": "node scripts/test.js cli",
|
|
25
|
-
"test:coverage": "node scripts/test.js all --coverage",
|
|
26
|
-
"test:unit:coverage": "node scripts/test.js unit --coverage",
|
|
27
|
-
"test:integration:coverage": "node scripts/test.js integration --coverage",
|
|
28
|
-
"test:cli:coverage": "node scripts/test.js cli --coverage",
|
|
29
|
-
"test:watch": "vitest --watch --config vitest.config.ts",
|
|
30
|
-
"test:unit:watch": "vitest --watch --config vitest.config.ts --project unit",
|
|
31
|
-
"test:integration:watch": "vitest --watch --config vitest.config.ts --project integration",
|
|
32
|
-
"test:cli:watch": "vitest --watch --config vitest.config.ts --project cli",
|
|
33
|
-
"test:debug": "node scripts/test.js all --debug",
|
|
34
|
-
"test:verbose": "node scripts/test.js all --verbose",
|
|
35
|
-
"test:ci": "vitest run --config vitest.config.ts --coverage --reporter=verbose",
|
|
36
|
-
"test:performance": "vitest --testNamePattern=\"performance\" --verbose",
|
|
37
|
-
"lint": "biome lint src tests",
|
|
38
|
-
"lint:fix": "biome lint --write src tests",
|
|
39
|
-
"format": "biome format --write src tests",
|
|
40
|
-
"format:check": "biome format src tests",
|
|
41
|
-
"check": "biome check src tests",
|
|
42
|
-
"check:fix": "biome check --write src tests",
|
|
43
|
-
"type-check": "tsc --noEmit",
|
|
44
|
-
"check:full": "npm run type-check && npm run lint && npm run format:check && npm run test:ci",
|
|
45
|
-
"security:audit": "pnpm audit",
|
|
46
|
-
"security:test": "bash scripts/run-security-tests.sh",
|
|
47
|
-
"vendor:ripgrep": "node scripts/download-ripgrep.js",
|
|
48
|
-
"vendor:ripgrep:clean": "rm -rf vendor/ripgrep/darwin-* vendor/ripgrep/linux-* vendor/ripgrep/win32-*",
|
|
49
|
-
"release": "node scripts/release.js",
|
|
50
|
-
"release:dry": "node scripts/release.js --dry-run",
|
|
51
|
-
"release:major": "node scripts/release.js --major",
|
|
52
|
-
"release:minor": "node scripts/release.js --minor",
|
|
53
|
-
"release:patch": "node scripts/release.js --patch",
|
|
54
|
-
"clean": "rm -rf dist node_modules/.cache coverage",
|
|
55
|
-
"prepare": "bun run build",
|
|
56
|
-
"preflight": "npm run clean && pnpm install && npm run format && npm run lint && npm run build && npm run type-check && npm run test:ci"
|
|
57
|
-
},
|
|
58
16
|
"keywords": [
|
|
59
17
|
"cli",
|
|
60
18
|
"blade",
|
|
@@ -104,6 +62,7 @@
|
|
|
104
62
|
"@vitest/coverage-v8": "^3.0.0",
|
|
105
63
|
"execa": "^9.6.0",
|
|
106
64
|
"jsdom": "^26.0.0",
|
|
65
|
+
"knip": "^5.80.0",
|
|
107
66
|
"ts-node": "^10.9.2",
|
|
108
67
|
"typescript": "^5.9.2",
|
|
109
68
|
"vitest": "^3.0.0"
|
|
@@ -158,5 +117,46 @@
|
|
|
158
117
|
"zod": "^3.24.2",
|
|
159
118
|
"zod-to-json-schema": "^3.24.6",
|
|
160
119
|
"zustand": "^5.0.9"
|
|
120
|
+
},
|
|
121
|
+
"scripts": {
|
|
122
|
+
"dev": "bun --watch src/blade.tsx",
|
|
123
|
+
"build": "rm -rf dist && bun run scripts/build.ts",
|
|
124
|
+
"start": "bun run dist/blade.js",
|
|
125
|
+
"test": "node scripts/test.js",
|
|
126
|
+
"test:all": "vitest run --config vitest.config.ts",
|
|
127
|
+
"test:unit": "node scripts/test.js unit",
|
|
128
|
+
"test:integration": "node scripts/test.js integration",
|
|
129
|
+
"test:cli": "node scripts/test.js cli",
|
|
130
|
+
"test:coverage": "node scripts/test.js all --coverage",
|
|
131
|
+
"test:unit:coverage": "node scripts/test.js unit --coverage",
|
|
132
|
+
"test:integration:coverage": "node scripts/test.js integration --coverage",
|
|
133
|
+
"test:cli:coverage": "node scripts/test.js cli --coverage",
|
|
134
|
+
"test:watch": "vitest --watch --config vitest.config.ts",
|
|
135
|
+
"test:unit:watch": "vitest --watch --config vitest.config.ts --project unit",
|
|
136
|
+
"test:integration:watch": "vitest --watch --config vitest.config.ts --project integration",
|
|
137
|
+
"test:cli:watch": "vitest --watch --config vitest.config.ts --project cli",
|
|
138
|
+
"test:debug": "node scripts/test.js all --debug",
|
|
139
|
+
"test:verbose": "node scripts/test.js all --verbose",
|
|
140
|
+
"test:ci": "vitest run --config vitest.config.ts --coverage --reporter=verbose",
|
|
141
|
+
"test:performance": "vitest --testNamePattern=\"performance\" --verbose",
|
|
142
|
+
"lint": "biome lint src tests",
|
|
143
|
+
"lint:fix": "biome lint --write src tests",
|
|
144
|
+
"format": "biome format --write src tests",
|
|
145
|
+
"format:check": "biome format src tests",
|
|
146
|
+
"check": "biome check src tests",
|
|
147
|
+
"check:fix": "biome check --write src tests",
|
|
148
|
+
"type-check": "tsc --noEmit",
|
|
149
|
+
"check:full": "npm run type-check && npm run lint && npm run format:check && npm run test:ci",
|
|
150
|
+
"security:audit": "pnpm audit",
|
|
151
|
+
"security:test": "bash scripts/run-security-tests.sh",
|
|
152
|
+
"vendor:ripgrep": "node scripts/download-ripgrep.js",
|
|
153
|
+
"vendor:ripgrep:clean": "rm -rf vendor/ripgrep/darwin-* vendor/ripgrep/linux-* vendor/ripgrep/win32-*",
|
|
154
|
+
"release": "node scripts/release.js",
|
|
155
|
+
"release:dry": "node scripts/release.js --dry-run",
|
|
156
|
+
"release:major": "node scripts/release.js --major",
|
|
157
|
+
"release:minor": "node scripts/release.js --minor",
|
|
158
|
+
"release:patch": "node scripts/release.js --patch",
|
|
159
|
+
"clean": "rm -rf dist node_modules/.cache coverage",
|
|
160
|
+
"preflight": "npm run clean && pnpm install && npm run format && npm run lint && npm run build && npm run type-check && npm run test:ci"
|
|
161
161
|
}
|
|
162
|
-
}
|
|
162
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|