@aigne/cli 1.48.4-beta.3 → 1.48.4-beta.5
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,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.48.4-beta.5](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.48.4-beta.4...cli-v1.48.4-beta.5) (2025-09-24)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* replace import.meta.dirname with Node 20 compatible dirname approach ([#541](https://github.com/AIGNE-io/aigne-framework/issues/541)) ([8a4fb26](https://github.com/AIGNE-io/aigne-framework/commit/8a4fb2649e88791444a7d4b3ddf9addcec2b666a))
|
|
9
|
+
|
|
10
|
+
## [1.48.4-beta.4](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.48.4-beta.3...cli-v1.48.4-beta.4) (2025-09-24)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Dependencies
|
|
14
|
+
|
|
15
|
+
* The following workspace dependencies were updated
|
|
16
|
+
* dependencies
|
|
17
|
+
* @aigne/agent-library bumped to 1.21.46-beta.4
|
|
18
|
+
* @aigne/agentic-memory bumped to 1.0.46-beta.4
|
|
19
|
+
* @aigne/aigne-hub bumped to 0.10.0-beta.4
|
|
20
|
+
* @aigne/core bumped to 1.61.0-beta.3
|
|
21
|
+
* @aigne/default-memory bumped to 1.2.9-beta.4
|
|
22
|
+
* @aigne/openai bumped to 0.16.0-beta.4
|
|
23
|
+
* devDependencies
|
|
24
|
+
* @aigne/test-utils bumped to 0.5.53-beta.3
|
|
25
|
+
|
|
3
26
|
## [1.48.4-beta.3](https://github.com/AIGNE-io/aigne-framework/compare/cli-v1.48.4-beta.2...cli-v1.48.4-beta.3) (2025-09-23)
|
|
4
27
|
|
|
5
28
|
|
package/dist/commands/create.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { existsSync, mkdirSync, readdirSync } from "node:fs";
|
|
2
2
|
import { cp } from "node:fs/promises";
|
|
3
|
-
import { isAbsolute, join, relative, resolve } from "node:path";
|
|
3
|
+
import { dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
4
5
|
import inquirer from "inquirer";
|
|
5
6
|
export function createCreateCommand() {
|
|
6
7
|
return {
|
|
@@ -57,7 +58,7 @@ export function createCreateCommand() {
|
|
|
57
58
|
},
|
|
58
59
|
]);
|
|
59
60
|
mkdirSync(path, { recursive: true });
|
|
60
|
-
const templatePath = join(import.meta.
|
|
61
|
+
const templatePath = join(dirname(fileURLToPath(import.meta.url)), "../../templates", template);
|
|
61
62
|
if (!existsSync(templatePath))
|
|
62
63
|
throw new Error(`Template "${template}" not found.`);
|
|
63
64
|
const files = readdirSync(templatePath);
|
package/dist/commands/deploy.js
CHANGED
|
@@ -2,7 +2,8 @@ import { spawn } from "node:child_process";
|
|
|
2
2
|
import { constants } from "node:fs";
|
|
3
3
|
import { access, copyFile, mkdir, readdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
4
4
|
import { homedir } from "node:os";
|
|
5
|
-
import { basename, isAbsolute, join, resolve } from "node:path";
|
|
5
|
+
import { basename, dirname, isAbsolute, join, resolve } from "node:path";
|
|
6
|
+
import { fileURLToPath } from "node:url";
|
|
6
7
|
import { Listr } from "@aigne/listr2";
|
|
7
8
|
import { input as inputInquirer, select as selectInquirer } from "@inquirer/prompts";
|
|
8
9
|
import { ListrInquirerPromptAdapter } from "@listr2/prompt-adapter-inquirer";
|
|
@@ -119,7 +120,7 @@ export const deploy = async (path, endpoint) => {
|
|
|
119
120
|
}
|
|
120
121
|
await rm(deployRoot, { recursive: true, force: true });
|
|
121
122
|
task.output = "Copying template files...";
|
|
122
|
-
const templatePath = join(import.meta.
|
|
123
|
+
const templatePath = join(dirname(fileURLToPath(import.meta.url)), "../../templates/blocklet");
|
|
123
124
|
await copyDir(templatePath, deployRoot);
|
|
124
125
|
await copyDir(path, agentDest);
|
|
125
126
|
const specialFiles = [
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { fork } from "node:child_process";
|
|
2
|
-
import { join } from "node:path";
|
|
2
|
+
import { dirname, join } from "node:path";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
3
4
|
import { AIGNE } from "@aigne/core";
|
|
4
5
|
export async function safeLoadAIGNE(...args) {
|
|
5
6
|
await new Promise((resolve, reject) => {
|
|
6
|
-
const child = fork(join(import.meta.
|
|
7
|
+
const child = fork(join(dirname(fileURLToPath(import.meta.url)), "./load-aigne-worker.js"), {
|
|
8
|
+
timeout: 600e3,
|
|
9
|
+
});
|
|
7
10
|
child.on("message", ({ method, message, status }) => {
|
|
8
11
|
if (method !== "AIGNE.load")
|
|
9
12
|
reject(new Error(`Unknown method: ${method}`));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aigne/cli",
|
|
3
|
-
"version": "1.48.4-beta.
|
|
3
|
+
"version": "1.48.4-beta.5",
|
|
4
4
|
"description": "Your command center for agent development",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -81,13 +81,13 @@
|
|
|
81
81
|
"yargs": "^18.0.0",
|
|
82
82
|
"yoctocolors-cjs": "^2.1.3",
|
|
83
83
|
"zod": "^3.25.67",
|
|
84
|
-
"@aigne/agent-library": "^1.21.46-beta.
|
|
85
|
-
"@aigne/
|
|
86
|
-
"@aigne/
|
|
87
|
-
"@aigne/core": "^1.61.0-beta.
|
|
88
|
-
"@aigne/default-memory": "^1.2.9-beta.
|
|
89
|
-
"@aigne/
|
|
90
|
-
"@aigne/
|
|
84
|
+
"@aigne/agent-library": "^1.21.46-beta.4",
|
|
85
|
+
"@aigne/agentic-memory": "^1.0.46-beta.4",
|
|
86
|
+
"@aigne/aigne-hub": "^0.10.0-beta.4",
|
|
87
|
+
"@aigne/core": "^1.61.0-beta.3",
|
|
88
|
+
"@aigne/default-memory": "^1.2.9-beta.4",
|
|
89
|
+
"@aigne/openai": "^0.16.0-beta.4",
|
|
90
|
+
"@aigne/observability-api": "^0.10.4"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@inquirer/testing": "^2.1.50",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"rimraf": "^6.0.1",
|
|
105
105
|
"typescript": "^5.9.2",
|
|
106
106
|
"ufo": "^1.6.1",
|
|
107
|
-
"@aigne/test-utils": "^0.5.53-beta.
|
|
107
|
+
"@aigne/test-utils": "^0.5.53-beta.3"
|
|
108
108
|
},
|
|
109
109
|
"scripts": {
|
|
110
110
|
"lint": "tsc --noEmit",
|