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