@aigne/cli 1.43.0 → 1.43.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,26 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.43.1](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.43.0...cli-v1.43.1) (2025-09-01)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **cli:** ensure console is restored after loadAIGNE call ([#447](https://github.com/AIGNE-io/aigne-framework/issues/447)) ([68fae38](https://github.com/AIGNE-io/aigne-framework/commit/68fae38c10346cd202266decf0ab0869bb618a07))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @aigne/agent-library bumped to 1.21.36
16
+ * @aigne/agentic-memory bumped to 1.0.36
17
+ * @aigne/aigne-hub bumped to 0.8.6
18
+ * @aigne/core bumped to 1.57.5
19
+ * @aigne/default-memory bumped to 1.1.18
20
+ * @aigne/openai bumped to 0.13.7
21
+ * devDependencies
22
+ * @aigne/test-utils bumped to 0.5.43
23
+
3
24
  ## [1.43.0](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.42.4...cli-v1.43.0) (2025-08-30)
4
25
 
5
26
 
@@ -76,26 +76,30 @@ export function createRunCommand({ aigneFilePath, } = {}) {
76
76
  task.output = args.join(" ");
77
77
  };
78
78
  }
79
- const aigne = await loadAIGNE({
80
- path: dir,
81
- modelOptions: {
82
- ...options,
83
- inquirerPromptFn: (prompt) => {
84
- if (prompt.type === "input") {
79
+ try {
80
+ const aigne = await loadAIGNE({
81
+ path: dir,
82
+ modelOptions: {
83
+ ...options,
84
+ inquirerPromptFn: (prompt) => {
85
+ if (prompt.type === "input") {
86
+ return task
87
+ .prompt(ListrInquirerPromptAdapter)
88
+ .run(inputInquirer, prompt)
89
+ .then((res) => ({ [prompt.name]: res }));
90
+ }
85
91
  return task
86
92
  .prompt(ListrInquirerPromptAdapter)
87
- .run(inputInquirer, prompt)
93
+ .run(selectInquirer, prompt)
88
94
  .then((res) => ({ [prompt.name]: res }));
89
- }
90
- return task
91
- .prompt(ListrInquirerPromptAdapter)
92
- .run(selectInquirer, prompt)
93
- .then((res) => ({ [prompt.name]: res }));
95
+ },
94
96
  },
95
- },
96
- });
97
- Object.assign(console, originalLog);
98
- ctx.aigne = aigne;
97
+ });
98
+ ctx.aigne = aigne;
99
+ }
100
+ finally {
101
+ Object.assign(console, originalLog);
102
+ }
99
103
  },
100
104
  },
101
105
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/cli",
3
- "version": "1.43.0",
3
+ "version": "1.43.1",
4
4
  "description": "Your command center for agent development",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -79,13 +79,13 @@
79
79
  "yargs": "^18.0.0",
80
80
  "yoctocolors-cjs": "^2.1.3",
81
81
  "zod": "^3.25.67",
82
- "@aigne/agentic-memory": "^1.0.35",
83
- "@aigne/agent-library": "^1.21.35",
84
- "@aigne/aigne-hub": "^0.8.5",
85
- "@aigne/default-memory": "^1.1.17",
86
- "@aigne/openai": "^0.13.6",
82
+ "@aigne/agent-library": "^1.21.36",
83
+ "@aigne/agentic-memory": "^1.0.36",
84
+ "@aigne/aigne-hub": "^0.8.6",
85
+ "@aigne/core": "^1.57.5",
86
+ "@aigne/default-memory": "^1.1.18",
87
87
  "@aigne/observability-api": "^0.10.1",
88
- "@aigne/core": "^1.57.4"
88
+ "@aigne/openai": "^0.13.7"
89
89
  },
90
90
  "devDependencies": {
91
91
  "@inquirer/testing": "^2.1.49",
@@ -102,7 +102,7 @@
102
102
  "rimraf": "^6.0.1",
103
103
  "typescript": "^5.8.3",
104
104
  "ufo": "^1.6.1",
105
- "@aigne/test-utils": "^0.5.42"
105
+ "@aigne/test-utils": "^0.5.43"
106
106
  },
107
107
  "scripts": {
108
108
  "lint": "tsc --noEmit",