@aigne/cli 1.58.0-beta.7 → 1.58.0-beta.8

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,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [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)
4
+
5
+
6
+ ### Features
7
+
8
+ * **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))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @aigne/agent-library bumped to 1.23.0-beta.8
16
+ * @aigne/aigne-hub bumped to 0.10.15-beta.8
17
+
3
18
  ## [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
19
 
5
20
 
@@ -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-beta.8",
4
4
  "description": "Your command center for agent development",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -91,13 +91,13 @@
91
91
  "zod-to-json-schema": "^3.24.6",
92
92
  "@aigne/afs": "^1.3.0-beta.3",
93
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",
94
+ "@aigne/agent-library": "^1.23.0-beta.8",
96
95
  "@aigne/agentic-memory": "^1.1.5-beta.6",
97
- "@aigne/aigne-hub": "^0.10.15-beta.7",
96
+ "@aigne/afs-local-fs": "^1.3.0-beta.6",
97
+ "@aigne/aigne-hub": "^0.10.15-beta.8",
98
98
  "@aigne/core": "^1.71.0-beta.6",
99
- "@aigne/observability-api": "^0.11.13-beta.1",
100
99
  "@aigne/default-memory": "^1.3.5-beta.6",
100
+ "@aigne/observability-api": "^0.11.13-beta.1",
101
101
  "@aigne/secrets": "^0.1.5-beta.6",
102
102
  "@aigne/openai": "^0.16.15-beta.6"
103
103
  },