@astranova-live/cli 0.2.0 → 0.2.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.
Files changed (3) hide show
  1. package/README.md +9 -9
  2. package/dist/astra.js +17 -12
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,15 +1,15 @@
1
1
  # Astra CLI
2
2
 
3
3
  ```
4
- _..._
5
- .' '. _
6
- / .-""-\ _/ \
7
- .-| /:. | | |
8
- | \ |:. /.-'-./
9
- | .-'-;:__.' =/
10
- .'= *=|ASTRA _.='
11
- / _. | ;
12
- ;-.-'| \ |
4
+ _..._
5
+ .' '. _
6
+ / .-""-\ _/ \
7
+ .-| /:. | | |
8
+ | \ |:. /.-'-./
9
+ | .-'-;:__.' =/
10
+ .'= *=|ASTRA _.='
11
+ / _. | ;
12
+ ;-.-'| \ |
13
13
  / | \ _\ _\
14
14
  \__/'._;. ==' ==\
15
15
  \ \ |
package/dist/astra.js CHANGED
@@ -1011,15 +1011,15 @@ var ASTRANOVA = `
1011
1011
  / ___ \\ ___) || | | _ < / ___ \\| |\\ | |_| |\\ V / ___ \\
1012
1012
  /_/ \\_\\____/ |_| |_| \\_\\/_/ \\_\\_| \\_|\\___/ \\_/_/ \\_\\`;
1013
1013
  var ASTRONAUT = `
1014
- _..._
1015
- .' '. _
1016
- / .-""-\\ _/ \\
1017
- .-| /:. | | |
1018
- | \\ |:. /.-'-./
1019
- | .-'-;:__.' =/
1020
- .'= *=|ASTRA_.='
1021
- / _. | ;
1022
- ;-.-'| \\ |
1014
+ _..._
1015
+ .' '. _
1016
+ / .-""-\\ _/ \\
1017
+ .-| /:. | | |
1018
+ | \\ |:. /.-'-./
1019
+ | .-'-;:__.' =/
1020
+ .'= *=|ASTRA _.='
1021
+ / _. | ;
1022
+ ;-.-'| \\ |
1023
1023
  / | \\ _\\ _\\
1024
1024
  \\__/'._;. ==' ==\\
1025
1025
  \\ \\ |
@@ -2668,12 +2668,11 @@ import { tool as tool4 } from "ai";
2668
2668
  import {
2669
2669
  Keypair,
2670
2670
  Connection,
2671
- VersionedTransaction,
2672
- clusterApiUrl
2671
+ VersionedTransaction
2673
2672
  } from "@solana/web3.js";
2674
2673
  import nacl from "tweetnacl";
2675
2674
  import bs58 from "bs58";
2676
- var SOLANA_RPC = clusterApiUrl("devnet");
2675
+ var SOLANA_RPC = "https://api.mainnet-beta.solana.com";
2677
2676
  var createWalletTool = tool4({
2678
2677
  description: "Generate a new Solana wallet keypair. Saves the keypair locally and returns the public key. The secret key is stored securely and never exposed.",
2679
2678
  parameters: createWalletSchema,
@@ -2780,6 +2779,12 @@ var signAndSendTransactionTool = tool4({
2780
2779
  };
2781
2780
  } catch (error) {
2782
2781
  const message = error instanceof Error ? error.message : "Unknown error";
2782
+ const isInsufficientFunds = message.includes("Insufficient funds") || message.includes("insufficient lamports") || message.includes("no record of a prior credit");
2783
+ if (isInsufficientFunds) {
2784
+ return {
2785
+ error: `Wallet has no SOL for transaction fees. Send at least 0.002 SOL to ${wallet.publicKey} (first claim creates a token account \u2014 after that fees are ~0.000005 SOL). Once funded, try claiming again.`
2786
+ };
2787
+ }
2783
2788
  return { error: `Transaction failed: ${message}` };
2784
2789
  }
2785
2790
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astranova-live/cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Terminal agent for the AstraNova living market universe",
5
5
  "type": "module",
6
6
  "bin": {