@iqai/adk-cli
Version:
CLI tool for creating, running, and testing ADK-TS agents
51 lines • 2.56 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.printWelcome = printWelcome;
const node_path_1 = require("node:path");
const chalk_1 = __importDefault(require("chalk"));
// Brand color: hsl(331.29 100% 68.04%) ≈ rgb(255, 92, 170)
const brand = chalk_1.default.rgb(255, 92, 170);
const dim = chalk_1.default.dim;
const bold = chalk_1.default.bold;
const ADK_BANNER = `
${brand(" █████╗ ██████╗ ██╗ ██╗ ████████╗ ███████╗")}
${brand(" ██╔══██╗ ██╔══██╗ ██║ ██╔╝ ╚══██╔══╝ ██╔════╝")}
${brand(" ███████║ ██║ ██║ █████╔╝ █████╗ ██║ ███████╗")}
${brand(" ██╔══██║ ██║ ██║ ██╔═██╗ ╚════╝ ██║ ╚════██║")}
${brand(" ██║ ██║ ██████╔╝ ██║ ██╗ ██║ ███████║")}
${brand(" ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝")}
`;
function printWelcome() {
let version = "unknown";
try {
const pkg = require((0, node_path_1.join)(__dirname, "../../package.json"));
version = pkg.version ?? version;
}
catch {
// ignore
}
console.log(ADK_BANNER);
console.log(` ${brand("The TypeScript-native AI Agent Framework")}`);
console.log(` ${dim("Build and test AI agents in TypeScript.")}`);
console.log();
console.log(` ${dim(`v${version}`)}`);
console.log();
// NOTE: This list must be manually kept in sync with the commands in `cli.module.ts`
const commands = [
["new", "Create a new ADK-TS project"],
["run", "Start an interactive chat with an agent"],
["serve", "Start an API server for agent management"],
["web", "Start a web interface for testing agents"],
];
for (const [name, desc] of commands) {
console.log(` ${brand(bold(name.padEnd(10)))} ${desc}`);
}
console.log();
console.log(` ${dim("Docs:")} ${dim("https://adk.iqai.com")}`);
console.log(` ${dim("GitHub:")} ${dim("https://github.com/IQAIcom/adk-ts")}`);
console.log();
}
//# sourceMappingURL=banner.js.map