@aigne/cli 1.22.2 → 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 CHANGED
@@ -1,5 +1,33 @@
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
+
12
+ ## [1.22.3](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.22.2...cli-v1.22.3) (2025-07-09)
13
+
14
+
15
+ ### Dependencies
16
+
17
+ * The following workspace dependencies were updated
18
+ * dependencies
19
+ * @aigne/agent-library bumped to 1.20.2
20
+ * @aigne/anthropic bumped to 0.7.2
21
+ * @aigne/bedrock bumped to 0.7.2
22
+ * @aigne/core bumped to 1.32.2
23
+ * @aigne/deepseek bumped to 0.6.2
24
+ * @aigne/gemini bumped to 0.6.2
25
+ * @aigne/observability-api bumped to 0.7.1
26
+ * @aigne/ollama bumped to 0.6.2
27
+ * @aigne/open-router bumped to 0.6.2
28
+ * @aigne/openai bumped to 0.8.2
29
+ * @aigne/xai bumped to 0.6.2
30
+
3
31
  ## [1.22.2](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.22.1...cli-v1.22.2) (2025-07-09)
4
32
 
5
33
 
package/README.md CHANGED
@@ -6,8 +6,6 @@
6
6
  [![NPM Version](https://img.shields.io/npm/v/@aigne/cli)](https://www.npmjs.com/package/@aigne/cli)
7
7
  [![Elastic-2.0 licensed](https://img.shields.io/npm/l/@aigne/cli)](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.2",
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/agent-library": "^1.20.1",
59
- "@aigne/anthropic": "^0.7.1",
60
- "@aigne/core": "^1.32.1",
61
- "@aigne/deepseek": "^0.6.1",
62
- "@aigne/bedrock": "^0.7.1",
63
- "@aigne/gemini": "^0.6.1",
64
- "@aigne/ollama": "^0.6.1",
65
- "@aigne/open-router": "^0.6.1",
66
- "@aigne/observability-api": "^0.7.0",
67
- "@aigne/openai": "^0.8.1",
68
- "@aigne/xai": "^0.6.1"
58
+ "@aigne/anthropic": "^0.7.2",
59
+ "@aigne/agent-library": "^1.20.2",
60
+ "@aigne/core": "^1.32.2",
61
+ "@aigne/bedrock": "^0.7.2",
62
+ "@aigne/gemini": "^0.6.2",
63
+ "@aigne/deepseek": "^0.6.2",
64
+ "@aigne/observability-api": "^0.7.1",
65
+ "@aigne/ollama": "^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
- [![GitHub star chart](https://img.shields.io/github/stars/AIGNE-io/aigne-framework?style=flat-square)](https://star-history.com/#AIGNE-io/aigne-framework)
4
- [![Open Issues](https://img.shields.io/github/issues-raw/AIGNE-io/aigne-framework?style=flat-square)](https://github.com/AIGNE-io/aigne-framework/issues)
5
- [![codecov](https://codecov.io/gh/AIGNE-io/aigne-framework/graph/badge.svg?token=DO07834RQL)](https://codecov.io/gh/AIGNE-io/aigne-framework)
6
- [![NPM Version](https://img.shields.io/npm/v/@aigne/cli)](https://www.npmjs.com/package/@aigne/cli)
7
- [![Elastic-2.0 licensed](https://img.shields.io/npm/l/@aigne/cli)](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