@aigne/cli 1.0.0-16 → 1.0.0-18
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/dist/commands/aigne.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
2
|
import pkg from "../../package.json" with { type: "json" };
|
|
3
|
+
import { asciiLogo } from "../utils/ascii-logo.js";
|
|
3
4
|
import { createCreateCommand } from "./create.js";
|
|
4
5
|
import { createRunCommand } from "./run.js";
|
|
5
6
|
import { createTestCommand } from "./test.js";
|
|
6
7
|
export function createAIGNECommand() {
|
|
8
|
+
console.log(asciiLogo);
|
|
7
9
|
return new Command()
|
|
8
10
|
.name("aigne")
|
|
9
11
|
.description("CLI for AIGNE framework")
|
package/dist/commands/create.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { existsSync, mkdirSync, readdirSync } from "node:fs";
|
|
2
2
|
import { cp } from "node:fs/promises";
|
|
3
|
-
import { isAbsolute, join, resolve } from "node:path";
|
|
3
|
+
import { isAbsolute, join, relative, resolve } from "node:path";
|
|
4
4
|
import { Command } from "commander";
|
|
5
5
|
import inquirer from "inquirer";
|
|
6
6
|
export function createCreateCommand() {
|
|
@@ -62,7 +62,7 @@ export function createCreateCommand() {
|
|
|
62
62
|
await cp(source, destination, { recursive: true, force: true });
|
|
63
63
|
}
|
|
64
64
|
console.log("\n✅ Aigne project created successfully!");
|
|
65
|
-
console.log(`\nTo use your new agent, run:\n cd ${
|
|
65
|
+
console.log(`\nTo use your new agent, run:\n cd ${relative(process.cwd(), path)} && aigne run`);
|
|
66
66
|
})
|
|
67
67
|
.showHelpAfterError(true)
|
|
68
68
|
.showSuggestionAfterError(true);
|