@aigne/cli 1.22.3 → 1.22.4
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 +9 -0
- package/README.md +0 -2
- package/package.json +7 -7
- package/README.zh.md +0 -153
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.22.4](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.22.3...cli-v1.22.4) (2025-07-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* The following workspace dependencies were updated
|
|
9
|
+
* dependencies
|
|
10
|
+
* @aigne/xai bumped to 0.6.3
|
|
11
|
+
|
|
3
12
|
## [1.22.3](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.22.2...cli-v1.22.3) (2025-07-09)
|
|
4
13
|
|
|
5
14
|
|
package/README.md
CHANGED
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
[](https://www.npmjs.com/package/@aigne/cli)
|
|
7
7
|
[](https://github.com/AIGNE-io/aigne-framework/blob/main/LICENSE)
|
|
8
8
|
|
|
9
|
-
**English** | [中文](README.zh.md)
|
|
10
|
-
|
|
11
9
|
Command-line tool for [AIGNE Framework](https://github.com/AIGNE-io/aigne-framework), providing convenient development and management capabilities.
|
|
12
10
|
|
|
13
11
|
## Introduction
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/cli",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.4",
|
|
4
4
|
"description": "cli for AIGNE framework",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -55,17 +55,17 @@
|
|
|
55
55
|
"wrap-ansi": "^9.0.0",
|
|
56
56
|
"yaml": "^2.8.0",
|
|
57
57
|
"zod": "^3.25.67",
|
|
58
|
-
"@aigne/
|
|
58
|
+
"@aigne/anthropic": "^0.7.2",
|
|
59
59
|
"@aigne/agent-library": "^1.20.2",
|
|
60
|
-
"@aigne/deepseek": "^0.6.2",
|
|
61
60
|
"@aigne/core": "^1.32.2",
|
|
61
|
+
"@aigne/bedrock": "^0.7.2",
|
|
62
62
|
"@aigne/gemini": "^0.6.2",
|
|
63
|
+
"@aigne/deepseek": "^0.6.2",
|
|
63
64
|
"@aigne/observability-api": "^0.7.1",
|
|
64
65
|
"@aigne/ollama": "^0.6.2",
|
|
65
|
-
"@aigne/
|
|
66
|
-
"@aigne/
|
|
67
|
-
"@aigne/
|
|
68
|
-
"@aigne/open-router": "^0.6.2"
|
|
66
|
+
"@aigne/open-router": "^0.6.2",
|
|
67
|
+
"@aigne/xai": "^0.6.3",
|
|
68
|
+
"@aigne/openai": "^0.8.2"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@types/archiver": "^6.0.3",
|
package/README.zh.md
DELETED
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
# @aigne/cli
|
|
2
|
-
|
|
3
|
-
[](https://star-history.com/#AIGNE-io/aigne-framework)
|
|
4
|
-
[](https://github.com/AIGNE-io/aigne-framework/issues)
|
|
5
|
-
[](https://codecov.io/gh/AIGNE-io/aigne-framework)
|
|
6
|
-
[](https://www.npmjs.com/package/@aigne/cli)
|
|
7
|
-
[](https://github.com/AIGNE-io/aigne-framework/blob/main/LICENSE)
|
|
8
|
-
|
|
9
|
-
[English](README.md) | **中文**
|
|
10
|
-
|
|
11
|
-
[AIGNE 框架](https://github.com/AIGNE-io/aigne-framework)的命令行工具,提供便捷的开发和管理功能。
|
|
12
|
-
|
|
13
|
-
## 简介
|
|
14
|
-
|
|
15
|
-
`@aigne/cli` 是 [AIGNE 框架](https://github.com/AIGNE-io/aigne-framework)的官方命令行工具,旨在简化 AIGNE 应用的开发、测试和部署流程。它提供了一系列实用命令,帮助开发者快速创建项目、运行代理、测试代码,以及部署应用等。
|
|
16
|
-
|
|
17
|
-
## 特性
|
|
18
|
-
|
|
19
|
-
* **项目创建**:快速创建新的 AIGNE 项目,包含预设的文件结构和配置
|
|
20
|
-
* **代理运行**:轻松运行和测试 AIGNE 代理
|
|
21
|
-
* **测试支持**:内置测试命令,方便进行单元测试和集成测试
|
|
22
|
-
* **MCP 服务**:支持将代理作为 MCP 服务器启动,与外部系统集成
|
|
23
|
-
* **交互式界面**:美观的命令行界面,提供直观的使用体验
|
|
24
|
-
* **多模型支持**:支持 OpenAI、Claude、XAI 等多种模型提供商
|
|
25
|
-
|
|
26
|
-
## 安装
|
|
27
|
-
|
|
28
|
-
### 使用 npm
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
npm install -g @aigne/cli
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### 使用 yarn
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
yarn global add @aigne/cli
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### 使用 pnpm
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
pnpm add -g @aigne/cli
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
## 基本命令
|
|
47
|
-
|
|
48
|
-
AIGNE CLI 提供了以下主要命令:
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
# 显示帮助信息
|
|
52
|
-
aigne --help
|
|
53
|
-
|
|
54
|
-
# 创建新项目
|
|
55
|
-
aigne create [path]
|
|
56
|
-
|
|
57
|
-
# 运行代理
|
|
58
|
-
aigne run --path xxx
|
|
59
|
-
|
|
60
|
-
# 运行测试
|
|
61
|
-
aigne test --path xxx
|
|
62
|
-
|
|
63
|
-
# 启动 MCP 服务器
|
|
64
|
-
aigne serve-mcp --path xxx
|
|
65
|
-
|
|
66
|
-
# 启动 observability 服务器
|
|
67
|
-
aigne observe [option]
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
## 创建命令 (create)
|
|
71
|
-
|
|
72
|
-
创建一个带有代理配置文件的新 AIGNE 项目。
|
|
73
|
-
|
|
74
|
-
```bash
|
|
75
|
-
# 在当前目录创建项目(会提示输入项目名称)
|
|
76
|
-
aigne create
|
|
77
|
-
|
|
78
|
-
# 在指定路径创建项目
|
|
79
|
-
aigne create my-project
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
交互式创建过程会询问:
|
|
83
|
-
|
|
84
|
-
* 项目名称
|
|
85
|
-
* 项目模板(目前支持 default 模板)
|
|
86
|
-
|
|
87
|
-
## 运行命令 (run)
|
|
88
|
-
|
|
89
|
-
启动与指定代理的聊天循环。
|
|
90
|
-
|
|
91
|
-
```bash
|
|
92
|
-
# 运行当前目录中的代理
|
|
93
|
-
aigne run
|
|
94
|
-
|
|
95
|
-
# 运行指定路径中的代理
|
|
96
|
-
aigne run path/to/agents
|
|
97
|
-
|
|
98
|
-
# 运行远程 URL 中的代理
|
|
99
|
-
aigne run https://example.com/aigne-project
|
|
100
|
-
|
|
101
|
-
# 指定特定代理运行
|
|
102
|
-
aigne run --entry-agent myAgent
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
可用选项:
|
|
106
|
-
|
|
107
|
-
* `--entry-agent <代理>` - 指定要运行的代理名称(默认为找到的第一个代理)
|
|
108
|
-
* `--cache-dir <目录>` - 指定下载包的目录(URL模式下使用)
|
|
109
|
-
* `--model <提供商[:模型]>` - 指定AI模型,格式为'提供商\[:模型]',其中模型是可选的(如'openai'或'openai:gpt-4o-mini')
|
|
110
|
-
* `--verbose` - 启用详细日志记录
|
|
111
|
-
|
|
112
|
-
## 测试命令 (test)
|
|
113
|
-
|
|
114
|
-
在指定的代理目录中运行测试。
|
|
115
|
-
|
|
116
|
-
```bash
|
|
117
|
-
# 测试当前目录中的代理
|
|
118
|
-
aigne test
|
|
119
|
-
|
|
120
|
-
# 测试指定路径中的代理
|
|
121
|
-
aigne test path/to/agents
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
## 服务命令 (serve-mcp)
|
|
125
|
-
|
|
126
|
-
将指定目录中的代理作为 MCP 服务器提供服务。
|
|
127
|
-
|
|
128
|
-
```bash
|
|
129
|
-
# 在默认端口 3000 启动 MCP 服务器
|
|
130
|
-
aigne serve-mcp
|
|
131
|
-
|
|
132
|
-
# 在指定端口启动 MCP 服务器
|
|
133
|
-
aigne serve-mcp --port 3001
|
|
134
|
-
|
|
135
|
-
# 为指定路径的代理启动 MCP 服务器
|
|
136
|
-
aigne serve-mcp --path path/to/agents
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
## 服务命令 (observability)
|
|
140
|
-
|
|
141
|
-
启动监控数据的服务
|
|
142
|
-
|
|
143
|
-
```bash
|
|
144
|
-
# 在默认端口 7890 启动 Observability 服务器
|
|
145
|
-
aigne observe
|
|
146
|
-
|
|
147
|
-
# 在指定端口启动 Observability 服务器
|
|
148
|
-
aigne observe --port 3001
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
## 协议
|
|
152
|
-
|
|
153
|
-
Elastic-2.0
|