@aigne/cli 1.20.1 → 1.22.1

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,78 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.22.1](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.22.0...cli-v1.22.1) (2025-07-08)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * The following workspace dependencies were updated
9
+ * dependencies
10
+ * @aigne/agent-library bumped to 1.20.0
11
+ * @aigne/anthropic bumped to 0.7.0
12
+ * @aigne/bedrock bumped to 0.7.0
13
+ * @aigne/core bumped to 1.32.0
14
+ * @aigne/deepseek bumped to 0.6.0
15
+ * @aigne/gemini bumped to 0.6.0
16
+ * @aigne/observability-api bumped to 0.6.0
17
+ * @aigne/ollama bumped to 0.6.0
18
+ * @aigne/open-router bumped to 0.6.0
19
+ * @aigne/openai bumped to 0.8.0
20
+ * @aigne/xai bumped to 0.6.0
21
+
22
+ ## [1.22.0](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.21.0...cli-v1.22.0) (2025-07-04)
23
+
24
+
25
+ ### Features
26
+
27
+ * **core:** add standard userId/sessionId in userContext ([#219](https://github.com/AIGNE-io/aigne-framework/issues/219)) ([58e5804](https://github.com/AIGNE-io/aigne-framework/commit/58e5804cf08b1d2fa6e232646fadd70b5db2e007))
28
+ * **core:** add strucutredStreamMode option for AIAgent to support text and json output in one-shot ([#222](https://github.com/AIGNE-io/aigne-framework/issues/222)) ([c0af92b](https://github.com/AIGNE-io/aigne-framework/commit/c0af92b6a020453b047e5bb3782239795839baa8))
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * **cli:** set run as the default command ([#221](https://github.com/AIGNE-io/aigne-framework/issues/221)) ([7f3346c](https://github.com/AIGNE-io/aigne-framework/commit/7f3346c461a13de9df24ca00b7a7c1102ece2d06))
34
+
35
+
36
+ ### Dependencies
37
+
38
+ * The following workspace dependencies were updated
39
+ * dependencies
40
+ * @aigne/agent-library bumped to 1.19.0
41
+ * @aigne/anthropic bumped to 0.6.1
42
+ * @aigne/bedrock bumped to 0.6.1
43
+ * @aigne/core bumped to 1.31.0
44
+ * @aigne/deepseek bumped to 0.5.1
45
+ * @aigne/gemini bumped to 0.5.1
46
+ * @aigne/observability-api bumped to 0.5.0
47
+ * @aigne/ollama bumped to 0.5.1
48
+ * @aigne/open-router bumped to 0.5.1
49
+ * @aigne/openai bumped to 0.7.1
50
+ * @aigne/xai bumped to 0.5.1
51
+
52
+ ## [1.21.0](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.20.1...cli-v1.21.0) (2025-07-03)
53
+
54
+
55
+ ### Features
56
+
57
+ * upgrade dependencies and adapt code to breaking changes ([#216](https://github.com/AIGNE-io/aigne-framework/issues/216)) ([f215ced](https://github.com/AIGNE-io/aigne-framework/commit/f215cedc1a57e321164064c33316e496eae8d25f))
58
+
59
+
60
+ ### Dependencies
61
+
62
+ * The following workspace dependencies were updated
63
+ * dependencies
64
+ * @aigne/agent-library bumped to 1.18.0
65
+ * @aigne/anthropic bumped to 0.6.0
66
+ * @aigne/bedrock bumped to 0.6.0
67
+ * @aigne/core bumped to 1.30.0
68
+ * @aigne/deepseek bumped to 0.5.0
69
+ * @aigne/gemini bumped to 0.5.0
70
+ * @aigne/observability-api bumped to 0.4.0
71
+ * @aigne/ollama bumped to 0.5.0
72
+ * @aigne/open-router bumped to 0.5.0
73
+ * @aigne/openai bumped to 0.7.0
74
+ * @aigne/xai bumped to 0.5.0
75
+
3
76
  ## [1.20.1](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.20.0...cli-v1.20.1) (2025-07-02)
4
77
 
5
78
 
@@ -12,7 +12,7 @@ export function createAIGNECommand(options) {
12
12
  .name("aigne")
13
13
  .description("CLI for AIGNE framework")
14
14
  .version(AIGNE_CLI_VERSION)
15
- .addCommand(createRunCommand(options))
15
+ .addCommand(createRunCommand(options), { isDefault: true })
16
16
  .addCommand(createTestCommand(options))
17
17
  .addCommand(createCreateCommand())
18
18
  .addCommand(createServeMCPCommand(options))
package/dist/constants.js CHANGED
@@ -17,14 +17,15 @@ export function availableModels() {
17
17
  .map((i) => process.env[i])
18
18
  .filter(Boolean)[0];
19
19
  const httpAgent = proxy ? new HttpsProxyAgent(proxy) : undefined;
20
+ const clientOptions = { fetchOptions: { agent: httpAgent } };
20
21
  return [
21
22
  {
22
23
  name: OpenAIChatModel.name,
23
- create: (params) => new OpenAIChatModel({ ...params, clientOptions: { httpAgent } }),
24
+ create: (params) => new OpenAIChatModel({ ...params, clientOptions }),
24
25
  },
25
26
  {
26
27
  name: AnthropicChatModel.name,
27
- create: (params) => new AnthropicChatModel({ ...params, clientOptions: { httpAgent } }),
28
+ create: (params) => new AnthropicChatModel({ ...params, clientOptions }),
28
29
  },
29
30
  {
30
31
  name: BedrockChatModel.name,
@@ -41,23 +42,23 @@ export function availableModels() {
41
42
  },
42
43
  {
43
44
  name: DeepSeekChatModel.name,
44
- create: (params) => new DeepSeekChatModel({ ...params, clientOptions: { httpAgent } }),
45
+ create: (params) => new DeepSeekChatModel({ ...params, clientOptions }),
45
46
  },
46
47
  {
47
48
  name: GeminiChatModel.name,
48
- create: (params) => new GeminiChatModel({ ...params, clientOptions: { httpAgent } }),
49
+ create: (params) => new GeminiChatModel({ ...params, clientOptions }),
49
50
  },
50
51
  {
51
52
  name: OllamaChatModel.name,
52
- create: (params) => new OllamaChatModel({ ...params, clientOptions: { httpAgent } }),
53
+ create: (params) => new OllamaChatModel({ ...params, clientOptions }),
53
54
  },
54
55
  {
55
56
  name: OpenRouterChatModel.name,
56
- create: (params) => new OpenRouterChatModel({ ...params, clientOptions: { httpAgent } }),
57
+ create: (params) => new OpenRouterChatModel({ ...params, clientOptions }),
57
58
  },
58
59
  {
59
60
  name: XAIChatModel.name,
60
- create: (params) => new XAIChatModel({ ...params, clientOptions: { httpAgent } }),
61
+ create: (params) => new XAIChatModel({ ...params, clientOptions }),
61
62
  },
62
63
  ];
63
64
  }
@@ -1,4 +1,4 @@
1
- import { AIGNE, type Agent, type ChatModelOptions, type Message } from "@aigne/core";
1
+ import { type Agent, AIGNE, type ChatModelOptions, type Message } from "@aigne/core";
2
2
  import { LogLevel } from "@aigne/core/utils/logger.js";
3
3
  import { type PromiseOrValue } from "@aigne/core/utils/type-utils.js";
4
4
  import { Command } from "commander";
@@ -5,9 +5,9 @@ import { dirname, isAbsolute, join } from "node:path";
5
5
  import { isatty } from "node:tty";
6
6
  import { promisify } from "node:util";
7
7
  import { exists } from "@aigne/agent-library/utils/fs.js";
8
- import { AIGNE, DEFAULT_OUTPUT_KEY, UserAgent, readAllString, } from "@aigne/core";
8
+ import { AIGNE, DEFAULT_OUTPUT_KEY, readAllString, UserAgent, } from "@aigne/core";
9
9
  import { loadModel } from "@aigne/core/loader/index.js";
10
- import { LogLevel, getLevelFromEnv, logger } from "@aigne/core/utils/logger.js";
10
+ import { getLevelFromEnv, LogLevel, logger } from "@aigne/core/utils/logger.js";
11
11
  import { isEmpty, isNonNullable, tryOrThrow, } from "@aigne/core/utils/type-utils.js";
12
12
  import { Command } from "commander";
13
13
  import PrettyError from "pretty-error";
@@ -2,7 +2,7 @@ import { AIAgent } from "@aigne/core";
2
2
  import { promiseWithResolvers } from "@aigne/core/utils/promise.js";
3
3
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
4
4
  import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
5
- import express, { Router, json } from "express";
5
+ import express, { json, Router } from "express";
6
6
  import { ZodObject } from "zod";
7
7
  import { AIGNE_CLI_VERSION } from "../constants.js";
8
8
  export async function serveMCPServer({ pathname = "/mcp", aigne, host = "localhost", port, }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/cli",
3
- "version": "1.20.1",
3
+ "version": "1.22.1",
4
4
  "description": "cli for AIGNE framework",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -37,43 +37,43 @@
37
37
  "dependencies": {
38
38
  "@aigne/listr2": "^1.0.10",
39
39
  "@aigne/marked-terminal": "^7.3.1",
40
- "@modelcontextprotocol/sdk": "^1.11.0",
40
+ "@modelcontextprotocol/sdk": "^1.13.3",
41
41
  "@smithy/node-http-handler": "^4.0.6",
42
42
  "chalk": "^5.4.1",
43
- "commander": "^13.1.0",
43
+ "commander": "^14.0.0",
44
44
  "detect-port": "^2.1.0",
45
45
  "dotenv-flow": "^4.1.0",
46
46
  "express": "^5.1.0",
47
- "glob": "^11.0.2",
47
+ "glob": "^11.0.3",
48
48
  "gradient-string": "^3.0.0",
49
49
  "https-proxy-agent": "^7.0.6",
50
- "inquirer": "^12.6.0",
51
- "marked": "^15.0.11",
52
- "prettier": "^3.5.3",
50
+ "inquirer": "^12.7.0",
51
+ "marked": "^16.0.0",
52
+ "prettier": "^3.6.2",
53
53
  "pretty-error": "^4.0.0",
54
54
  "tar": "^7.4.3",
55
55
  "wrap-ansi": "^9.0.0",
56
- "yaml": "^2.7.1",
57
- "zod": "^3.24.4",
58
- "@aigne/agent-library": "^1.17.9",
59
- "@aigne/anthropic": "^0.5.4",
60
- "@aigne/bedrock": "^0.5.4",
61
- "@aigne/core": "^1.29.1",
62
- "@aigne/deepseek": "^0.4.4",
63
- "@aigne/gemini": "^0.4.4",
64
- "@aigne/observability-api": "^0.3.3",
65
- "@aigne/ollama": "^0.4.4",
66
- "@aigne/open-router": "^0.4.4",
67
- "@aigne/openai": "^0.6.4",
68
- "@aigne/xai": "^0.4.4"
56
+ "yaml": "^2.8.0",
57
+ "zod": "^3.25.67",
58
+ "@aigne/agent-library": "^1.20.0",
59
+ "@aigne/anthropic": "^0.7.0",
60
+ "@aigne/bedrock": "^0.7.0",
61
+ "@aigne/deepseek": "^0.6.0",
62
+ "@aigne/gemini": "^0.6.0",
63
+ "@aigne/ollama": "^0.6.0",
64
+ "@aigne/core": "^1.32.0",
65
+ "@aigne/observability-api": "^0.6.0",
66
+ "@aigne/openai": "^0.8.0",
67
+ "@aigne/open-router": "^0.6.0",
68
+ "@aigne/xai": "^0.6.0"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@types/archiver": "^6.0.3",
72
- "@types/bun": "^1.2.12",
73
- "@types/express": "^5.0.1",
74
- "@types/glob": "^8.1.0",
72
+ "@types/bun": "^1.2.17",
73
+ "@types/express": "^5.0.3",
74
+ "@types/glob": "^9.0.0",
75
75
  "@types/gradient-string": "^1.1.6",
76
- "@types/node": "^22.15.15",
76
+ "@types/node": "^24.0.10",
77
77
  "archiver": "^7.0.1",
78
78
  "npm-run-all": "^4.1.5",
79
79
  "rimraf": "^6.0.1",