@nick848/sf-cli 1.0.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/package.json ADDED
@@ -0,0 +1,92 @@
1
+ {
2
+ "name": "@nick848/sf-cli",
3
+ "version": "1.0.0",
4
+ "description": "专为前端开发设计的AI驱动CLI工具,支持BDD+TDD+OpenSpec规范,实现需求输入→自动完成规范拆解和代码实现",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.js"
13
+ },
14
+ "./cli": {
15
+ "require": "./dist/cli/index.js"
16
+ }
17
+ },
18
+ "bin": {
19
+ "sf-cli": "dist/cli/index.js",
20
+ "spfe": "dist/cli/index.js"
21
+ },
22
+ "scripts": {
23
+ "dev": "tsx watch src/cli/index.ts",
24
+ "build": "tsup",
25
+ "start": "node dist/cli/index.js",
26
+ "test": "vitest",
27
+ "test:coverage": "vitest --coverage",
28
+ "lint": "eslint src --ext .ts,.tsx",
29
+ "typecheck": "tsc --noEmit",
30
+ "clean": "rimraf dist",
31
+ "prepublishOnly": "npm run build && npm test"
32
+ },
33
+ "keywords": [
34
+ "cli",
35
+ "frontend",
36
+ "ai",
37
+ "bdd",
38
+ "tdd",
39
+ "openspec",
40
+ "code-generation",
41
+ "automation",
42
+ "developer-tools",
43
+ "smart-frontend"
44
+ ],
45
+ "author": "nick848",
46
+ "license": "MIT",
47
+ "publishConfig": {
48
+ "access": "public",
49
+ "registry": "https://registry.npmjs.org/"
50
+ },
51
+ "engines": {
52
+ "node": ">=18.0.0"
53
+ },
54
+ "files": [
55
+ "dist",
56
+ "README.md",
57
+ "LICENSE"
58
+ ],
59
+ "dependencies": {
60
+ "@anthropic-ai/sdk": "^0.27.0",
61
+ "@modelcontextprotocol/sdk": "^1.0.0",
62
+ "chalk": "^5.3.0",
63
+ "commander": "^12.1.0",
64
+ "conf": "^13.0.1",
65
+ "dotenv": "^16.4.5",
66
+ "enquirer": "^2.4.1",
67
+ "glob": "^10.4.1",
68
+ "ink": "^4.4.1",
69
+ "marked": "^12.0.2",
70
+ "marked-terminal": "^7.1.0",
71
+ "node-emoji": "^2.1.3",
72
+ "open": "^10.1.0",
73
+ "ora": "^8.0.1",
74
+ "react": "^18.3.1",
75
+ "strip-ansi": "^7.1.0",
76
+ "tiktoken": "^1.0.17",
77
+ "uuid": "^13.0.0",
78
+ "yaml": "^2.4.5",
79
+ "zod": "^3.23.8"
80
+ },
81
+ "devDependencies": {
82
+ "@types/node": "^20.14.2",
83
+ "@types/react": "^18.3.3",
84
+ "@types/uuid": "^10.0.0",
85
+ "eslint": "^8.57.0",
86
+ "rimraf": "^5.0.7",
87
+ "tsup": "^8.1.0",
88
+ "tsx": "^4.15.1",
89
+ "typescript": "^5.4.5",
90
+ "vitest": "^1.6.0"
91
+ }
92
+ }