@aigne/cli 1.50.1-beta.1 → 1.50.1-beta.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/CHANGELOG.md CHANGED
@@ -1,5 +1,42 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.50.1-beta.3](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.50.1-beta.2...cli-v1.50.1-beta.3) (2025-10-09)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * input schema of AI agent should includes input key and input file key ([#600](https://github.com/AIGNE-io/aigne-framework/issues/600)) ([b4ca076](https://github.com/AIGNE-io/aigne-framework/commit/b4ca076d6b4a1a1ecb8d4ebb008abd0d7561aadd))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @aigne/agent-library bumped to 1.21.48-beta.2
16
+ * @aigne/agentic-memory bumped to 1.0.48-beta.2
17
+ * @aigne/aigne-hub bumped to 0.10.2-beta.2
18
+ * @aigne/core bumped to 1.63.0-beta.2
19
+ * @aigne/default-memory bumped to 1.2.11-beta.2
20
+ * @aigne/openai bumped to 0.16.2-beta.2
21
+ * devDependencies
22
+ * @aigne/test-utils bumped to 0.5.55-beta.2
23
+
24
+ ## [1.50.1-beta.2](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.50.1-beta.1...cli-v1.50.1-beta.2) (2025-10-09)
25
+
26
+
27
+ ### Dependencies
28
+
29
+ * The following workspace dependencies were updated
30
+ * dependencies
31
+ * @aigne/agent-library bumped to 1.21.48-beta.1
32
+ * @aigne/agentic-memory bumped to 1.0.48-beta.1
33
+ * @aigne/aigne-hub bumped to 0.10.2-beta.1
34
+ * @aigne/core bumped to 1.63.0-beta.1
35
+ * @aigne/default-memory bumped to 1.2.11-beta.1
36
+ * @aigne/openai bumped to 0.16.2-beta.1
37
+ * devDependencies
38
+ * @aigne/test-utils bumped to 0.5.55-beta.1
39
+
3
40
  ## [1.50.1-beta.1](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.50.1-beta...cli-v1.50.1-beta.1) (2025-10-08)
4
41
 
5
42
 
@@ -4,9 +4,10 @@ import { type AgentRunCommonOptions } from "../utils/yargs.js";
4
4
  export declare function createAppCommands({ argv }?: {
5
5
  argv?: string[];
6
6
  }): CommandModule[];
7
- export declare const agentCommandModule: ({ dir, agent, }: {
7
+ export declare const agentCommandModule: ({ dir, agent, chat, }: {
8
8
  dir: string;
9
9
  agent: AgentInChildProcess;
10
+ chat?: boolean;
10
11
  }) => CommandModule<unknown, AgentRunCommonOptions>;
11
12
  export declare const cliAgentCommandModule: ({ dir, parent, cliAgent, }: {
12
13
  dir: string;
@@ -50,7 +50,7 @@ export function createAppCommands({ argv } = {}) {
50
50
  });
51
51
  if (aigne.cli?.chat) {
52
52
  y.command({
53
- ...agentCommandModule({ dir, agent: aigne.cli.chat }),
53
+ ...agentCommandModule({ dir, agent: aigne.cli.chat, chat: true }),
54
54
  command: "$0",
55
55
  });
56
56
  }
@@ -133,7 +133,7 @@ const upgradeCommandModule = ({ packageName, dir, }) => ({
133
133
  console.log(`\n✅ ${packageName} is already at the latest version (${app.version})`);
134
134
  },
135
135
  });
136
- export const agentCommandModule = ({ dir, agent, }) => {
136
+ export const agentCommandModule = ({ dir, agent, chat, }) => {
137
137
  return {
138
138
  command: agent.name,
139
139
  aliases: agent.alias || [],
@@ -147,7 +147,7 @@ export const agentCommandModule = ({ dir, agent, }) => {
147
147
  await runAIGNEInChildProcess("invokeCLIAgentFromDir", {
148
148
  dir,
149
149
  agent: agent.name,
150
- input: options,
150
+ input: { ...options, chat },
151
151
  });
152
152
  process.exit(0);
153
153
  },
@@ -43,7 +43,7 @@ export function createRunCommand({ aigneFilePath, } = {}) {
43
43
  const subYargs = yargs().scriptName("").usage("aigne run <path> <agent> [...options]");
44
44
  if (aigne.cli.chat) {
45
45
  subYargs.command({
46
- ...agentCommandModule({ dir: path, agent: serializeAgent(aigne.cli.chat) }),
46
+ ...agentCommandModule({ dir: path, agent: serializeAgent(aigne.cli.chat), chat: true }),
47
47
  command: "$0",
48
48
  });
49
49
  }
@@ -78,7 +78,7 @@ export async function invokeCLIAgentFromDirInChildProcess(options) {
78
78
  await runAgentWithAIGNE(aigne, agent, {
79
79
  ...options.input,
80
80
  input,
81
- chat: agent === chat || options.input.chat,
81
+ chat: options.input.chat,
82
82
  });
83
83
  }
84
84
  finally {
@@ -6,7 +6,7 @@ import { promisify } from "node:util";
6
6
  import { availableImageModels, availableModels, } from "@aigne/aigne-hub";
7
7
  import { AIAgent, ChatModel, DEFAULT_OUTPUT_KEY, readAllString, } from "@aigne/core";
8
8
  import { getLevelFromEnv, LogLevel, logger } from "@aigne/core/utils/logger.js";
9
- import { pick, tryOrThrow } from "@aigne/core/utils/type-utils.js";
9
+ import { flat, pick, tryOrThrow } from "@aigne/core/utils/type-utils.js";
10
10
  import { parse } from "yaml";
11
11
  import z, { ZodAny, ZodArray, ZodBoolean, ZodError, ZodNumber, ZodObject, ZodString, ZodType, ZodUnknown, } from "zod";
12
12
  const MODEL_OPTIONS_GROUP_NAME = "Model Options";
@@ -149,7 +149,7 @@ export async function parseAgentInput(i, agent) {
149
149
  })));
150
150
  if (agent instanceof AIAgent && agent.inputFileKey) {
151
151
  const files = [];
152
- for (const file of i.inputFile ?? []) {
152
+ for (const file of flat(i.inputFile, i[agent.inputFileKey]) ?? []) {
153
153
  const raw = await readFile(file.replace(/^@/, ""), "base64");
154
154
  const filename = basename(file);
155
155
  const mimeType = (await ChatModel.getMimeType(filename)) || "application/octet-stream";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/cli",
3
- "version": "1.50.1-beta.1",
3
+ "version": "1.50.1-beta.3",
4
4
  "description": "Your command center for agent development",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -89,13 +89,13 @@
89
89
  "yoctocolors-cjs": "^2.1.3",
90
90
  "zod": "^3.25.67",
91
91
  "zod-to-json-schema": "^3.24.6",
92
- "@aigne/agent-library": "^1.21.48-beta",
93
- "@aigne/aigne-hub": "^0.10.2-beta",
94
- "@aigne/agentic-memory": "^1.0.48-beta",
95
- "@aigne/core": "^1.63.0-beta",
96
- "@aigne/default-memory": "^1.2.11-beta",
92
+ "@aigne/agent-library": "^1.21.48-beta.2",
93
+ "@aigne/aigne-hub": "^0.10.2-beta.2",
94
+ "@aigne/agentic-memory": "^1.0.48-beta.2",
95
+ "@aigne/core": "^1.63.0-beta.2",
96
+ "@aigne/default-memory": "^1.2.11-beta.2",
97
97
  "@aigne/observability-api": "^0.11.2-beta",
98
- "@aigne/openai": "^0.16.2-beta"
98
+ "@aigne/openai": "^0.16.2-beta.2"
99
99
  },
100
100
  "devDependencies": {
101
101
  "@inquirer/testing": "^2.1.50",
@@ -112,7 +112,7 @@
112
112
  "rimraf": "^6.0.1",
113
113
  "typescript": "^5.9.2",
114
114
  "ufo": "^1.6.1",
115
- "@aigne/test-utils": "^0.5.55-beta"
115
+ "@aigne/test-utils": "^0.5.55-beta.2"
116
116
  },
117
117
  "scripts": {
118
118
  "lint": "tsc --noEmit",