@otonix/cli 2.1.4 → 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.
@@ -49,11 +49,20 @@ export function agentCommand(program) {
49
49
  row("Created at", new Date().toLocaleString());
50
50
  row("Status", chalk.yellow("⊘ Not registered"));
51
51
  br();
52
- console.log(chalk.dim("Next — register this agent by sending 200 $OTX to:"));
53
- console.log(" " + chalk.white(OTONIX_TREASURY));
52
+ console.log(chalk.dim("".repeat(44)));
53
+ console.log(chalk.bold(" Next steps:"));
54
54
  br();
55
- console.log(chalk.dim("Then register (auto-sends 200 $OTX):"));
56
- console.log(" " + mono(`otonix agent:register --name ${name}`));
55
+ console.log(" " + chalk.bold.white("1.") + chalk.dim(" Make sure your creator wallet has:"));
56
+ console.log(" " + chalk.yellow("≥ 200 $OTX") + chalk.dim(" (registration fee — auto-sent by CLI)"));
57
+ console.log(" " + chalk.yellow("≥ 0.005 ETH") + chalk.dim(" (gas for the $OTX transfer)"));
58
+ console.log(" " + chalk.dim(" Check: ") + mono("otonix wallet balance"));
59
+ br();
60
+ console.log(" " + chalk.bold.white("2.") + chalk.dim(" Fund the agent wallet with ETH for deploy gas:"));
61
+ console.log(" " + chalk.yellow("≥ 0.003 ETH") + chalk.dim(" → ") + chalk.white(agent.address));
62
+ br();
63
+ console.log(" " + chalk.bold.white("3.") + chalk.dim(" Register this agent (sends 200 $OTX automatically):"));
64
+ console.log(" " + mono(`otonix agent:register --name ${name}`));
65
+ console.log(chalk.dim("─".repeat(44)));
57
66
  });
58
67
  program
59
68
  .command("agent:register")
@@ -280,4 +289,40 @@ export function agentCommand(program) {
280
289
  saveConfig(cfg);
281
290
  success(`Agent "${name}" removed from local config.`);
282
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
+ });
283
328
  }
@@ -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("Fee split", "80% you (WETH) / 20%$OTX burn");
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({
@@ -173,7 +174,7 @@ export function launchCommand(program) {
173
174
  const tokenAddress = waitResult.address;
174
175
  deploySpinner.stop();
175
176
  br();
176
- console.log(chalk.bold.hex("#4d6fff")("◈ Token deployed — Verified by Otonix ✓"));
177
+ console.log(chalk.bold.hex("#3d9eff")("◈ Token deployed — Verified by Otonix ✓"));
177
178
  console.log(chalk.dim("─".repeat(44)));
178
179
  br();
179
180
  row("Token name", opts.name);
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ if (showBanner)
14
14
  const program = new Command();
15
15
  program
16
16
  .name("otonix")
17
- .description(chalk.bold.hex("#4d6fff")("OTONIX CLI") + chalk.dim(" — Web4 Autonomous Agent Infrastructure"))
17
+ .description(chalk.bold.hex("#3d9eff")("OTONIX CLI") + chalk.dim(" — Web4 Autonomous Agent Infrastructure"))
18
18
  .version("2.1.4", "-v, --version")
19
19
  .configureOutput({
20
20
  writeOut: str => process.stdout.write(str),
@@ -29,7 +29,7 @@ program
29
29
  .action(async () => {
30
30
  const { loadConfig, configPath } = await import("./lib/config.js");
31
31
  const cfg = loadConfig();
32
- console.log("\n" + chalk.bold.hex("#4d6fff")("◈ OTONIX") + " " + chalk.dim("Config") + "\n" + chalk.dim("─".repeat(44)));
32
+ console.log("\n" + chalk.bold.hex("#3d9eff")("◈ OTONIX") + " " + chalk.dim("Config") + "\n" + chalk.dim("─".repeat(44)));
33
33
  console.log(chalk.dim("File: ") + chalk.white(configPath()));
34
34
  console.log(chalk.dim("Wallet: ") + chalk.white(cfg.wallet?.address ?? "(none)"));
35
35
  console.log(chalk.dim("Agents: ") + chalk.white(Object.keys(cfg.agents).join(", ") || "(none)"));
@@ -2,8 +2,8 @@ import chalk from "chalk";
2
2
  import { createRequire } from "module";
3
3
  const _require = createRequire(import.meta.url);
4
4
  const { version: CLI_VERSION } = _require("../../package.json");
5
- const BLUE = "#4d6fff";
6
- const BLUE_DIM = "#3a50cc";
5
+ const BLUE = "#3d9eff";
6
+ const BLUE_DIM = "#1a7bdc";
7
7
  export const brand = chalk.bold.hex(BLUE);
8
8
  export const dim = chalk.dim;
9
9
  export const ok = chalk.green;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otonix/cli",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "description": "Otonix CLI — deploy autonomous agent tokens on Base via Clanker v4",
5
5
  "type": "module",
6
6
  "bin": {