@aigne/cli 1.58.0-beta.7 → 1.58.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,41 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.58.0](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.58.0-beta.8...cli-v1.58.0) (2025-12-12)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * The following workspace dependencies were updated
9
+ * dependencies
10
+ * @aigne/afs bumped to 1.3.0
11
+ * @aigne/afs-history bumped to 1.1.3
12
+ * @aigne/afs-local-fs bumped to 1.3.0
13
+ * @aigne/agent-library bumped to 1.23.0
14
+ * @aigne/agentic-memory bumped to 1.1.5
15
+ * @aigne/aigne-hub bumped to 0.10.15
16
+ * @aigne/core bumped to 1.71.0
17
+ * @aigne/default-memory bumped to 1.3.5
18
+ * @aigne/observability-api bumped to 0.11.13
19
+ * @aigne/openai bumped to 0.16.15
20
+ * @aigne/secrets bumped to 0.1.5
21
+ * devDependencies
22
+ * @aigne/test-utils bumped to 0.5.68
23
+
24
+ ## [1.58.0-beta.8](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.58.0-beta.7...cli-v1.58.0-beta.8) (2025-12-12)
25
+
26
+
27
+ ### Features
28
+
29
+ * **agent-library:** add BashAgent with sandbox support ([#816](https://github.com/AIGNE-io/aigne-framework/issues/816)) ([0d4feee](https://github.com/AIGNE-io/aigne-framework/commit/0d4feeeac2b71df1c4d725adeee76c9318ce8e02))
30
+
31
+
32
+ ### Dependencies
33
+
34
+ * The following workspace dependencies were updated
35
+ * dependencies
36
+ * @aigne/agent-library bumped to 1.23.0-beta.8
37
+ * @aigne/aigne-hub bumped to 0.10.15-beta.8
38
+
3
39
  ## [1.58.0-beta.7](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.58.0-beta.6...cli-v1.58.0-beta.7) (2025-12-11)
4
40
 
5
41
 
@@ -36,7 +36,10 @@ export const agentCommandModule = ({ aigne, agent, chat, }) => {
36
36
  aliases: agent.alias || [],
37
37
  describe: agent.description || "",
38
38
  builder: async (yargs) => {
39
- return withAgentInputSchema(yargs, { inputSchema: agent.inputSchema });
39
+ return withAgentInputSchema(yargs, {
40
+ inputSchema: agent.inputSchema,
41
+ optionalInputs: chat && "inputKey" in agent && typeof agent.inputKey === "string" ? [agent.inputKey] : [],
42
+ });
40
43
  },
41
44
  handler: async (options) => {
42
45
  if (options.logLevel)
@@ -5,4 +5,5 @@ export declare function createRunCommand({ aigneFilePath, }?: {
5
5
  version?: boolean;
6
6
  path?: string;
7
7
  entryAgent?: string;
8
+ chat?: boolean;
8
9
  }>;
@@ -37,6 +37,11 @@ export function createRunCommand({ aigneFilePath, } = {}) {
37
37
  type: "boolean",
38
38
  alias: "v",
39
39
  describe: "Show version number",
40
+ })
41
+ .option("chat", {
42
+ describe: "Run chat loop in terminal",
43
+ type: "boolean",
44
+ default: false,
40
45
  })
41
46
  .help(false)
42
47
  .version(false)
@@ -83,7 +88,7 @@ export function createRunCommand({ aigneFilePath, } = {}) {
83
88
  // Allow user to run all of agents in the AIGNE instances
84
89
  const allAgents = flat(aigne.agents, aigne.skills, aigne.cli.chat, aigne.mcpServer.agents);
85
90
  for (const agent of allAgents) {
86
- subYargs.command(agentCommandModule({ aigne, agent }));
91
+ subYargs.command(agentCommandModule({ aigne, agent, chat: options.chat }));
87
92
  }
88
93
  for (const cliAgent of aigne.cli.agents ?? []) {
89
94
  subYargs.command(cliAgentCommandModule({
@@ -52,7 +52,9 @@ export declare function inferZodType(type: ZodType, opts?: {
52
52
  array?: boolean;
53
53
  optional?: boolean;
54
54
  };
55
- export declare function withAgentInputSchema(yargs: Argv, agent: Pick<Agent, "inputSchema">): Argv<{
55
+ export declare function withAgentInputSchema(yargs: Argv, options: Pick<Agent, "inputSchema"> & {
56
+ optionalInputs?: string[];
57
+ }): Argv<{
56
58
  chat: boolean;
57
59
  } & {
58
60
  model: string | undefined;
@@ -120,8 +120,8 @@ export function inferZodType(type, opts = {}) {
120
120
  type: type instanceof ZodBoolean ? "boolean" : type instanceof ZodNumber ? "number" : "string",
121
121
  };
122
122
  }
123
- export function withAgentInputSchema(yargs, agent) {
124
- const inputSchema = agent.inputSchema instanceof ZodObject ? agent.inputSchema.shape : {};
123
+ export function withAgentInputSchema(yargs, options) {
124
+ const inputSchema = options.inputSchema instanceof ZodObject ? options.inputSchema.shape : {};
125
125
  for (const [option, config] of Object.entries(inputSchema)) {
126
126
  const type = inferZodType(config);
127
127
  yargs.option(option, {
@@ -130,7 +130,7 @@ export function withAgentInputSchema(yargs, agent) {
130
130
  description: config.description,
131
131
  array: type.array,
132
132
  });
133
- if (!type.optional) {
133
+ if (!type.optional && !options.optionalInputs?.includes(option)) {
134
134
  yargs.demandOption(option);
135
135
  }
136
136
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/cli",
3
- "version": "1.58.0-beta.7",
3
+ "version": "1.58.0",
4
4
  "description": "Your command center for agent development",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -89,17 +89,17 @@
89
89
  "yoctocolors-cjs": "^2.1.3",
90
90
  "zod": "^3.25.67",
91
91
  "zod-to-json-schema": "^3.24.6",
92
- "@aigne/afs": "^1.3.0-beta.3",
93
- "@aigne/afs-history": "^1.1.3-beta.3",
94
- "@aigne/afs-local-fs": "^1.3.0-beta.6",
95
- "@aigne/agent-library": "^1.23.0-beta.7",
96
- "@aigne/agentic-memory": "^1.1.5-beta.6",
97
- "@aigne/aigne-hub": "^0.10.15-beta.7",
98
- "@aigne/core": "^1.71.0-beta.6",
99
- "@aigne/observability-api": "^0.11.13-beta.1",
100
- "@aigne/default-memory": "^1.3.5-beta.6",
101
- "@aigne/secrets": "^0.1.5-beta.6",
102
- "@aigne/openai": "^0.16.15-beta.6"
92
+ "@aigne/afs": "^1.3.0",
93
+ "@aigne/afs-history": "^1.1.3",
94
+ "@aigne/afs-local-fs": "^1.3.0",
95
+ "@aigne/agentic-memory": "^1.1.5",
96
+ "@aigne/agent-library": "^1.23.0",
97
+ "@aigne/aigne-hub": "^0.10.15",
98
+ "@aigne/core": "^1.71.0",
99
+ "@aigne/default-memory": "^1.3.5",
100
+ "@aigne/observability-api": "^0.11.13",
101
+ "@aigne/openai": "^0.16.15",
102
+ "@aigne/secrets": "^0.1.5"
103
103
  },
104
104
  "devDependencies": {
105
105
  "@inquirer/testing": "^2.1.50",
@@ -116,7 +116,7 @@
116
116
  "rimraf": "^6.0.1",
117
117
  "typescript": "^5.9.2",
118
118
  "ufo": "^1.6.1",
119
- "@aigne/test-utils": "^0.5.68-beta.6"
119
+ "@aigne/test-utils": "^0.5.68"
120
120
  },
121
121
  "scripts": {
122
122
  "lint": "tsc --noEmit",