naracli 1.0.76 → 1.0.77

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.
@@ -173020,6 +173020,10 @@ function parseTweetUrl(url) {
173020
173020
  printError(`Invalid tweet URL. Expected format: https://x.com/<username>/status/<id>`);
173021
173021
  process.exit(1);
173022
173022
  }
173023
+ if (m[1] === "i") {
173024
+ printError(`This URL uses x.com/i/ redirect and does not contain your real username. Please copy the tweet URL from your profile page (format: https://x.com/<username>/status/<id>).`);
173025
+ process.exit(1);
173026
+ }
173023
173027
  return { username: m[1], tweetId: BigInt(m[2]), tweetUrl: url };
173024
173028
  }
173025
173029
  async function handleAgentTwitterSet(agentId, username, tweetUrl, options) {
@@ -173630,7 +173634,7 @@ function registerCommands(program3) {
173630
173634
  }
173631
173635
 
173632
173636
  // bin/nara-cli.ts
173633
- var version2 = true ? "1.0.76" : "dev";
173637
+ var version2 = true ? "1.0.77" : "dev";
173634
173638
  var program2 = new Command();
173635
173639
  program2.name("naracli").description("CLI for the Nara chain. Native coin is NARA (not SOL). Mine NARA for free via PoMI quests, manage wallets, register agents, and more. Run 'naracli <command> --help' for details on any command.").version(version2);
173636
173640
  program2.option("-r, --rpc-url <url>", "RPC endpoint (default: https://mainnet-api.nara.build/)").option("-w, --wallet <path>", "Path to wallet keypair JSON file (default: ~/.config/nara/id.json)").option("-j, --json", "Output in JSON format");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "naracli",
3
- "version": "1.0.76",
3
+ "version": "1.0.77",
4
4
  "description": "CLI for the Nara chain (Solana-compatible)",
5
5
  "homepage": "https://nara.build",
6
6
  "repository": {
@@ -466,6 +466,10 @@ function parseTweetUrl(url: string): { username: string; tweetId: bigint; tweetU
466
466
  printError(`Invalid tweet URL. Expected format: https://x.com/<username>/status/<id>`);
467
467
  process.exit(1);
468
468
  }
469
+ if (m[1] === "i") {
470
+ printError(`This URL uses x.com/i/ redirect and does not contain your real username. Please copy the tweet URL from your profile page (format: https://x.com/<username>/status/<id>).`);
471
+ process.exit(1);
472
+ }
469
473
  return { username: m[1], tweetId: BigInt(m[2]), tweetUrl: url };
470
474
  }
471
475