coda-cli 1.0.1 → 1.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 +14 -15
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -24,11 +24,10 @@
|
|
|
24
24
|
# 📁 目录结构概览
|
|
25
25
|
|
|
26
26
|
```text
|
|
27
|
-
code-agent/
|
|
28
27
|
├── src/
|
|
29
|
-
│ ├── bin/ #
|
|
30
|
-
│ ├── cli-core/ #
|
|
31
|
-
│ ├── cli-api/ #
|
|
28
|
+
│ ├── bin/ # Coda-CLI执行命令的入口文件
|
|
29
|
+
│ ├── cli-core/ # Coda-CLI命令的核心生命周期、基类及状态管理
|
|
30
|
+
│ ├── cli-api/ # Coda-CLI底层工具封装(文件系统、git处理、子进程任务等)
|
|
32
31
|
│ ├── config/ # 命令及全局配置文件
|
|
33
32
|
│ ├── extensions/ # 实际业务命令(通过coda cmd create来生成命令模板并实现具体业务)
|
|
34
33
|
│ ├── generator/ # 命令模板管理器(如 cmd-create生成新的命令模板, cmd-delete删除命令模板)
|
|
@@ -48,27 +47,27 @@ code-agent/
|
|
|
48
47
|
npm install
|
|
49
48
|
```
|
|
50
49
|
|
|
51
|
-
2.
|
|
50
|
+
2. 构建与本地链接本项目支持:
|
|
52
51
|
|
|
53
52
|
```bash
|
|
54
53
|
# 编译 TypeScript 并重写路径别名
|
|
55
54
|
npm run build
|
|
56
55
|
|
|
57
|
-
# 将 CLI
|
|
56
|
+
# 将 Coda-CLI链接到全局以便本地联调
|
|
58
57
|
npm run link
|
|
59
58
|
```
|
|
60
59
|
|
|
61
|
-
# 🐞
|
|
60
|
+
# 🐞 VSCode 调试配置
|
|
62
61
|
|
|
63
|
-
|
|
62
|
+
调试前先运行"npm run link",再点击vscode左侧栏“运行和调试”按钮,选中需要调试的命令再点运行即可。
|
|
64
63
|
|
|
65
|
-
|
|
64
|
+
注意:新增业务命令后需要在.vscode/launch.json中添加调试配置项才可调试新增的命令
|
|
66
65
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
|
70
|
-
|
|
|
71
|
-
| `
|
|
72
|
-
| `
|
|
66
|
+
# 📜 可用命令
|
|
67
|
+
|
|
68
|
+
| 命令 | 描述 |
|
|
69
|
+
| :---------------- | :------------------------------- |
|
|
70
|
+
| `coda cmd create` | 使用Coda-CLI创建实际业务命令模板 |
|
|
71
|
+
| `coda cmd delete` | 使用Coda-CLI删除实际业务命令模板 |
|
|
73
72
|
|
|
74
73
|
📄**License**: [MIT](LICENSE)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coda-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "一款命令行工具,可以调用本地AI模型的编程助手,通过工程化、智能化集成方案,推动前端项目在架构、性能、安全、体验、效率、质量全面提升。",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc && tsc-alias --dir src",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "https://github.com/Lanscod88/
|
|
12
|
+
"url": "https://github.com/Lanscod88/coda-cli.git"
|
|
13
13
|
},
|
|
14
14
|
"keywords": [
|
|
15
15
|
"command line tools",
|