@aigne/cli 1.13.1 → 1.14.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/CHANGELOG.md CHANGED
@@ -1,5 +1,52 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.14.0](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.13.2...cli-v1.14.0) (2025-06-26)
4
+
5
+
6
+ ### Features
7
+
8
+ * **transport:** support invoke server side chat model ([#182](https://github.com/AIGNE-io/aigne-framework/issues/182)) ([f81a1bf](https://github.com/AIGNE-io/aigne-framework/commit/f81a1bf883abda1845ccee09b270e5f583e287ab))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * blocklet start failed ([#180](https://github.com/AIGNE-io/aigne-framework/issues/180)) ([296a481](https://github.com/AIGNE-io/aigne-framework/commit/296a481be69d9b9b279dc4e50b0d21c993d1d841))
14
+
15
+
16
+ ### Dependencies
17
+
18
+ * The following workspace dependencies were updated
19
+ * dependencies
20
+ * @aigne/agent-library bumped to 1.17.0
21
+ * @aigne/anthropic bumped to 0.3.7
22
+ * @aigne/bedrock bumped to 0.3.7
23
+ * @aigne/core bumped to 1.24.0
24
+ * @aigne/deepseek bumped to 0.3.7
25
+ * @aigne/gemini bumped to 0.3.7
26
+ * @aigne/observability bumped to 0.1.2
27
+ * @aigne/ollama bumped to 0.3.7
28
+ * @aigne/open-router bumped to 0.3.7
29
+ * @aigne/openai bumped to 0.4.0
30
+ * @aigne/xai bumped to 0.3.7
31
+
32
+ ## [1.13.2](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.13.1...cli-v1.13.2) (2025-06-25)
33
+
34
+
35
+ ### Dependencies
36
+
37
+ * The following workspace dependencies were updated
38
+ * dependencies
39
+ * @aigne/agent-library bumped to 1.16.1
40
+ * @aigne/anthropic bumped to 0.3.6
41
+ * @aigne/bedrock bumped to 0.3.6
42
+ * @aigne/core bumped to 1.23.1
43
+ * @aigne/deepseek bumped to 0.3.6
44
+ * @aigne/gemini bumped to 0.3.6
45
+ * @aigne/ollama bumped to 0.3.6
46
+ * @aigne/open-router bumped to 0.3.6
47
+ * @aigne/openai bumped to 0.3.6
48
+ * @aigne/xai bumped to 0.3.6
49
+
3
50
  ## [1.13.1](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.13.0...cli-v1.13.1) (2025-06-25)
4
51
 
5
52
 
package/README.md CHANGED
@@ -16,12 +16,12 @@ Command-line tool for [AIGNE Framework](https://github.com/AIGNE-io/aigne-framew
16
16
 
17
17
  ## Features
18
18
 
19
- * **Project Creation**: Quickly create new AIGNE projects with predefined file structures and configurations
20
- * **Agent Running**: Easily run and test AIGNE agents
21
- * **Testing Support**: Built-in test command for unit testing and integration testing
22
- * **MCP Services**: Support for launching agents as MCP servers for integration with external systems
23
- * **Interactive Interface**: Beautiful command-line interface providing an intuitive user experience
24
- * **Multi-model Support**: Support for OpenAI, Claude, XAI, and other model providers
19
+ - **Project Creation**: Quickly create new AIGNE projects with predefined file structures and configurations
20
+ - **Agent Running**: Easily run and test AIGNE agents
21
+ - **Testing Support**: Built-in test command for unit testing and integration testing
22
+ - **MCP Services**: Support for launching agents as MCP servers for integration with external systems
23
+ - **Interactive Interface**: Beautiful command-line interface providing an intuitive user experience
24
+ - **Multi-model Support**: Support for OpenAI, Claude, XAI, and other model providers
25
25
 
26
26
  ## Installation
27
27
 
@@ -62,6 +62,9 @@ aigne test [path]
62
62
 
63
63
  # Start MCP server
64
64
  aigne serve [path] --mcp
65
+
66
+ # Start observability server
67
+ aigne observability [option]
65
68
  ```
66
69
 
67
70
  ## Create Command
@@ -78,8 +81,8 @@ aigne create my-project
78
81
 
79
82
  The interactive creation process will ask for:
80
83
 
81
- * Project name
82
- * Project template (currently supports the default template)
84
+ - Project name
85
+ - Project template (currently supports the default template)
83
86
 
84
87
  ## Run Command
85
88
 
@@ -101,10 +104,10 @@ aigne run --entry-agent myAgent
101
104
 
102
105
  Available options:
103
106
 
104
- * `--entry-agent <entry-agent>` - Specify the agent name to run (defaults to the first agent found)
105
- * `--cache-dir <dir>` - Specify the directory to download the package to (used in URL mode)
106
- * `--model <provider[:model]>` - Specify the AI model in format 'provider\[:model]' where model is optional (e.g., 'openai' or 'openai:gpt-4o-mini')
107
- * `--verbose` - Enable verbose logging
107
+ - `--entry-agent <entry-agent>` - Specify the agent name to run (defaults to the first agent found)
108
+ - `--cache-dir <dir>` - Specify the directory to download the package to (used in URL mode)
109
+ - `--model <provider[:model]>` - Specify the AI model in format 'provider\[:model]' where model is optional (e.g., 'openai' or 'openai:gpt-4o-mini')
110
+ - `--verbose` - Enable verbose logging
108
111
 
109
112
  ## Test Command
110
113
 
@@ -133,6 +136,18 @@ aigne serve --mcp --port 3001
133
136
  aigne serve path/to/agents --mcp
134
137
  ```
135
138
 
139
+ ## Serve Command (observability)
140
+
141
+ Start the service for monitoring data
142
+
143
+ ```bash
144
+ # Start observability server on default port 7890
145
+ aigne observability
146
+
147
+ # Start observability server on specified port
148
+ aigne observability --port 3001
149
+ ```
150
+
136
151
  ## License
137
152
 
138
153
  Elastic-2.0
package/README.zh.md CHANGED
@@ -16,12 +16,12 @@
16
16
 
17
17
  ## 特性
18
18
 
19
- * **项目创建**:快速创建新的 AIGNE 项目,包含预设的文件结构和配置
20
- * **代理运行**:轻松运行和测试 AIGNE 代理
21
- * **测试支持**:内置测试命令,方便进行单元测试和集成测试
22
- * **MCP 服务**:支持将代理作为 MCP 服务器启动,与外部系统集成
23
- * **交互式界面**:美观的命令行界面,提供直观的使用体验
24
- * **多模型支持**:支持 OpenAI、Claude、XAI 等多种模型提供商
19
+ - **项目创建**:快速创建新的 AIGNE 项目,包含预设的文件结构和配置
20
+ - **代理运行**:轻松运行和测试 AIGNE 代理
21
+ - **测试支持**:内置测试命令,方便进行单元测试和集成测试
22
+ - **MCP 服务**:支持将代理作为 MCP 服务器启动,与外部系统集成
23
+ - **交互式界面**:美观的命令行界面,提供直观的使用体验
24
+ - **多模型支持**:支持 OpenAI、Claude、XAI 等多种模型提供商
25
25
 
26
26
  ## 安装
27
27
 
@@ -62,6 +62,9 @@ aigne test [path]
62
62
 
63
63
  # 启动 MCP 服务器
64
64
  aigne serve [path] --mcp
65
+
66
+ # 启动 observability 服务器
67
+ aigne observability [option]
65
68
  ```
66
69
 
67
70
  ## 创建命令 (create)
@@ -78,8 +81,8 @@ aigne create my-project
78
81
 
79
82
  交互式创建过程会询问:
80
83
 
81
- * 项目名称
82
- * 项目模板(目前支持 default 模板)
84
+ - 项目名称
85
+ - 项目模板(目前支持 default 模板)
83
86
 
84
87
  ## 运行命令 (run)
85
88
 
@@ -101,10 +104,10 @@ aigne run --entry-agent myAgent
101
104
 
102
105
  可用选项:
103
106
 
104
- * `--entry-agent <代理>` - 指定要运行的代理名称(默认为找到的第一个代理)
105
- * `--cache-dir <目录>` - 指定下载包的目录(URL模式下使用)
106
- * `--model <提供商[:模型]>` - 指定AI模型,格式为'提供商\[:模型]',其中模型是可选的(如'openai'或'openai:gpt-4o-mini')
107
- * `--verbose` - 启用详细日志记录
107
+ - `--entry-agent <代理>` - 指定要运行的代理名称(默认为找到的第一个代理)
108
+ - `--cache-dir <目录>` - 指定下载包的目录(URL模式下使用)
109
+ - `--model <提供商[:模型]>` - 指定AI模型,格式为'提供商\[:模型]',其中模型是可选的(如'openai'或'openai:gpt-4o-mini')
110
+ - `--verbose` - 启用详细日志记录
108
111
 
109
112
  ## 测试命令 (test)
110
113
 
@@ -133,6 +136,18 @@ aigne serve --mcp --port 3001
133
136
  aigne serve path/to/agents --mcp
134
137
  ```
135
138
 
139
+ ## 服务命令 (observability)
140
+
141
+ 启动监控数据的服务
142
+
143
+ ```bash
144
+ # 在默认端口 7890 启动 Observability 服务器
145
+ aigne observability
146
+
147
+ # 在指定端口启动 Observability 服务器
148
+ aigne observability --port 3001
149
+ ```
150
+
136
151
  ## 协议
137
152
 
138
153
  Elastic-2.0
@@ -1,7 +1,8 @@
1
1
  import { tryOrThrow } from "@aigne/core/utils/type-utils.js";
2
+ import { startObservabilityCLIServer } from "@aigne/observability/cli";
2
3
  import { getObservabilityDbPath } from "@aigne/observability/db-path";
3
- import { startServer as startObservabilityServer } from "@aigne/observability/server";
4
4
  import { Command } from "commander";
5
+ import detectPort from "detect-port";
5
6
  const DEFAULT_PORT = () => tryOrThrow(() => {
6
7
  const { PORT } = process.env;
7
8
  if (!PORT)
@@ -17,10 +18,10 @@ export function createObservabilityCommand() {
17
18
  .option("--host <host>", "Host to run the MCP server on, use 0.0.0.0 to publicly expose the server", "localhost")
18
19
  .option("--port <port>", "Port to run the MCP server on", (s) => Number.parseInt(s))
19
20
  .action(async (options) => {
20
- const port = options.port || DEFAULT_PORT();
21
+ const port = await detectPort(options.port || DEFAULT_PORT());
21
22
  const dbUrl = getObservabilityDbPath();
22
23
  console.log("DB PATH:", dbUrl);
23
- await startObservabilityServer({ port: Number(port) || 3000, dbUrl: dbUrl });
24
+ await startObservabilityCLIServer({ port, dbUrl });
24
25
  })
25
26
  .showHelpAfterError(true)
26
27
  .showSuggestionAfterError(true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/cli",
3
- "version": "1.13.1",
3
+ "version": "1.14.0",
4
4
  "description": "cli for AIGNE framework",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -51,17 +51,17 @@
51
51
  "wrap-ansi": "^9.0.0",
52
52
  "yaml": "^2.7.1",
53
53
  "zod": "^3.24.4",
54
- "@aigne/agent-library": "^1.16.0",
55
- "@aigne/bedrock": "^0.3.5",
56
- "@aigne/anthropic": "^0.3.5",
57
- "@aigne/deepseek": "^0.3.5",
58
- "@aigne/core": "^1.23.0",
59
- "@aigne/gemini": "^0.3.5",
60
- "@aigne/ollama": "^0.3.5",
61
- "@aigne/observability": "^0.1.1",
62
- "@aigne/open-router": "^0.3.5",
63
- "@aigne/openai": "^0.3.5",
64
- "@aigne/xai": "^0.3.5"
54
+ "@aigne/agent-library": "^1.17.0",
55
+ "@aigne/bedrock": "^0.3.7",
56
+ "@aigne/anthropic": "^0.3.7",
57
+ "@aigne/core": "^1.24.0",
58
+ "@aigne/gemini": "^0.3.7",
59
+ "@aigne/observability": "^0.1.2",
60
+ "@aigne/deepseek": "^0.3.7",
61
+ "@aigne/ollama": "^0.3.7",
62
+ "@aigne/openai": "^0.4.0",
63
+ "@aigne/open-router": "^0.3.7",
64
+ "@aigne/xai": "^0.3.7"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@types/archiver": "^6.0.3",