@otonix/cli 2.1.5 → 2.1.6
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/agent.js +36 -0
- package/dist/commands/launch.js +2 -1
- package/package.json +1 -1
package/dist/commands/agent.js
CHANGED
|
@@ -289,4 +289,40 @@ export function agentCommand(program) {
|
|
|
289
289
|
saveConfig(cfg);
|
|
290
290
|
success(`Agent "${name}" removed from local config.`);
|
|
291
291
|
});
|
|
292
|
+
program
|
|
293
|
+
.command("agent:export")
|
|
294
|
+
.description("Show private key of an agent wallet (use with caution)")
|
|
295
|
+
.argument("<name>", "Agent name")
|
|
296
|
+
.action(async (name) => {
|
|
297
|
+
header(`Export Agent Key: ${name}`);
|
|
298
|
+
const cfg = loadConfig();
|
|
299
|
+
const agent = cfg.agents[name];
|
|
300
|
+
if (!agent) {
|
|
301
|
+
failure(`Agent "${name}" not found.`);
|
|
302
|
+
process.exit(1);
|
|
303
|
+
}
|
|
304
|
+
br();
|
|
305
|
+
console.log(chalk.bold.red("⚠ SECURITY WARNING"));
|
|
306
|
+
console.log(chalk.dim(" Your private key gives full access to this agent wallet."));
|
|
307
|
+
console.log(chalk.dim(" Never share it. Never paste it into websites or chats."));
|
|
308
|
+
console.log(chalk.dim(" Store it offline or in a hardware wallet."));
|
|
309
|
+
br();
|
|
310
|
+
const ok = await confirm({
|
|
311
|
+
message: `Show private key for agent "${name}" (${agent.address})?`,
|
|
312
|
+
default: false,
|
|
313
|
+
});
|
|
314
|
+
if (!ok) {
|
|
315
|
+
info("Cancelled.");
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
br();
|
|
319
|
+
row("Agent name", name);
|
|
320
|
+
row("Agent address", agent.address);
|
|
321
|
+
br();
|
|
322
|
+
console.log(chalk.bold("Private key:"));
|
|
323
|
+
console.log(chalk.bold.yellow(agent.privateKey));
|
|
324
|
+
br();
|
|
325
|
+
console.log(chalk.dim("Import into MetaMask: Settings → Import Account → paste key above."));
|
|
326
|
+
console.log(chalk.dim("LP fee rewards (80% WETH) flow to your creator wallet, not this agent wallet."));
|
|
327
|
+
});
|
|
292
328
|
}
|
package/dist/commands/launch.js
CHANGED
|
@@ -82,7 +82,8 @@ export function launchCommand(program) {
|
|
|
82
82
|
row("Paired token", "WETH");
|
|
83
83
|
if (devBuyEth > 0)
|
|
84
84
|
row("Dev buy", devBuyEth + " ETH");
|
|
85
|
-
row("
|
|
85
|
+
row("Reward 80%", cfg.wallet.address + " (WETH → creator wallet)");
|
|
86
|
+
row("Reward 20%", OTONIX_TREASURY + " ($OTX burn)");
|
|
86
87
|
row("Verified by", "✓ Otonix (@" + OTONIX_TWITTER + ")");
|
|
87
88
|
br();
|
|
88
89
|
const confirmed = await confirm({
|