agent-lyra 0.1.1 → 0.1.2
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/package.json +1 -1
- package/src/init.js +16 -0
package/package.json
CHANGED
package/src/init.js
CHANGED
|
@@ -41,6 +41,21 @@ function printUsage() {
|
|
|
41
41
|
output.write(`Usage:\n agent-lyra init\n\nOptions:\n --mode standalone|gated\n --domains coding,finance\n --api-key <key>\n --dir <target-directory>\n --force\n`);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
function printWelcomeBanner() {
|
|
45
|
+
output.write([
|
|
46
|
+
"",
|
|
47
|
+
" _ _ _ ",
|
|
48
|
+
" / \\\ __ _ ___ _ __ | |_ | | _ _ _ __ __ _ ",
|
|
49
|
+
" / _ \\\ / _` |/ _ \\ '_ \\| __| | | | | | | '__/ _` |",
|
|
50
|
+
" / ___ \\\ (_| | __/ | | | |_ | |__| |_| | | | (_| |",
|
|
51
|
+
"/_/ \\\_\\__, |\\___|_| |_|\\__| |_____\\__, |_| \\__,_|",
|
|
52
|
+
" |___/ |___/ ",
|
|
53
|
+
"",
|
|
54
|
+
" Local agents when you want control. Hosted agents when you want lift.",
|
|
55
|
+
"",
|
|
56
|
+
].join("\n"));
|
|
57
|
+
}
|
|
58
|
+
|
|
44
59
|
async function askQuestion(rl, message, { secret = false } = {}) {
|
|
45
60
|
if (!secret) {
|
|
46
61
|
return (await rl.question(message)).trim();
|
|
@@ -286,6 +301,7 @@ export async function runInitWizard(options = {}) {
|
|
|
286
301
|
const rl = readline.createInterface({ input, output });
|
|
287
302
|
|
|
288
303
|
try {
|
|
304
|
+
printWelcomeBanner();
|
|
289
305
|
const mode = await chooseMode(rl, options.mode);
|
|
290
306
|
const catalog = getDomainCatalog(mode);
|
|
291
307
|
const presetDomains = resolvePresetDomains(options.domains, catalog);
|