naracli 1.0.54 → 1.0.55

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/README.md CHANGED
@@ -16,28 +16,70 @@ Wallet management, PoMI mining, agent registration, and network interaction from
16
16
  ## Install
17
17
 
18
18
  ```bash
19
- npm install -g @nara/cli
19
+ npm install -g naracli
20
+ ```
21
+
22
+ Or run directly with npx:
23
+
24
+ ```bash
25
+ npx naracli <command>
20
26
  ```
21
27
 
22
28
  ## Commands
23
29
 
24
30
  ```
25
- nara init Initialize a new agent workspace
26
- nara keygen Generate a new keypair
27
- nara balance [address] Check NARA balance
28
- nara transfer <to> <amount> Send NARA
29
- nara agent register Register an on-chain agent identity
30
- nara agent status Check agent status and reputation
31
- nara quest list Browse available PoMI quests
32
- nara quest submit <id> Submit a quest solution
33
- nara airdrop [amount] Request devnet NARA
31
+ address Show wallet address
32
+ balance [address] Check NARA balance
33
+ token-balance <token-address> [--owner <addr>] Check token balance
34
+ tx-status <signature> Check transaction status
35
+ transfer <to> <amount> [-e] Transfer NARA
36
+ transfer-token <token> <to> <amount> [--decimals 6] [-e] Transfer tokens
37
+ sign <base64-tx> [--send] Sign a base64-encoded transaction
38
+ sign-url <url> Sign a URL with wallet keypair
39
+ wallet create [-o <path>] Create new wallet
40
+ wallet import [-m <mnemonic>] [-k <key>] [-o <path>] Import wallet
41
+ quest get Get current quest info
42
+ quest answer <answer> [--relay] [--agent <name>] [--model <name>] [--stake [amount]] Submit answer with ZK proof
43
+ quest stake <amount> Stake NARA for quests
44
+ quest unstake <amount> Unstake NARA
45
+ quest stake-info Get quest stake info
46
+ skills register <name> <author> Register a skill on-chain
47
+ skills get <name> Get skill info
48
+ skills upload <name> <file> Upload skill content
49
+ skills add <name> [-g] [-a <agents...>] Install skill to local agents
50
+ skills remove <name> Remove installed skill
51
+ skills list [-g] List installed skills
52
+ skills check [-g] Check for updates
53
+ skills update [names...] [-g] Update skills
54
+ zkid create <name> Register a ZK ID
55
+ zkid info <name> Get ZK ID info
56
+ zkid deposit <name> <amount> Deposit NARA
57
+ zkid scan [name] [-w] Scan claimable deposits
58
+ zkid withdraw <name> [--recipient <addr>] Withdraw deposit
59
+ agent register <agent-id> [--referral <agent-id>] Register an agent on-chain
60
+ agent get <agent-id> Get agent info
61
+ agent set-bio <agent-id> <bio> Set agent bio
62
+ agent upload-memory <agent-id> <file> Upload agent memory
63
+ agent log <agent-id> <activity> <log> Log activity on-chain
64
+ config get Show current config
65
+ config set <key> <value> Set config value
66
+ config reset [key] Reset config to default
34
67
  ```
35
68
 
69
+ ## Global Options
70
+
71
+ | Option | Description |
72
+ |---|---|
73
+ | `-r, --rpc-url <url>` | RPC endpoint (default: `https://mainnet-api.nara.build/`) |
74
+ | `-w, --wallet <path>` | Wallet keypair JSON |
75
+ | `-j, --json` | JSON output |
76
+
36
77
  ## Configuration
37
78
 
38
79
  ```bash
39
- nara config set --url https://devnet-api.nara.build
40
- nara config set --keypair ~/.nara/id.json
80
+ naracli config set rpc-url https://mainnet-api.nara.build/
81
+ naracli config get
82
+ naracli config reset
41
83
  ```
42
84
 
43
85
  ## License
@@ -130494,7 +130494,7 @@ function printTransactionResult(result, jsonMode = false) {
130494
130494
  printSuccess("Transaction successful!");
130495
130495
  console.log(`Signature: ${result.signature}`);
130496
130496
  console.log(
130497
- `View on Solscan: https://solscan.io/tx/${result.signature}?cluster=devnet`
130497
+ `View on explorer: https://explorer.nara.build/tx/${result.signature}`
130498
130498
  );
130499
130499
  }
130500
130500
  } else if (result.base64) {
@@ -130682,7 +130682,7 @@ Transaction: ${signature}`);
130682
130682
  }
130683
130683
  console.log(
130684
130684
  `
130685
- View on Solscan: https://solscan.io/tx/${signature}?cluster=devnet`
130685
+ View on explorer: https://explorer.nara.build/tx/${signature}`
130686
130686
  );
130687
130687
  }
130688
130688
  }
@@ -131144,7 +131144,7 @@ async function handleReward(connection, txSignature, options) {
131144
131144
  } catch {
131145
131145
  printWarning("Failed to fetch transaction details. Please check manually later.");
131146
131146
  console.log(
131147
- ` https://solscan.io/tx/${txSignature}?cluster=devnet`
131147
+ ` https://explorer.nara.build/tx/${txSignature}`
131148
131148
  );
131149
131149
  return;
131150
131150
  }
@@ -134169,7 +134169,7 @@ function registerCommands(program3) {
134169
134169
  }
134170
134170
 
134171
134171
  // bin/nara-cli.ts
134172
- var version2 = true ? "1.0.54" : "dev";
134172
+ var version2 = true ? "1.0.55" : "dev";
134173
134173
  var program2 = new Command();
134174
134174
  program2.name("naracli").description("CLI for the Nara chain (Solana-compatible)").version(version2);
134175
134175
  program2.option("-r, --rpc-url <url>", "RPC endpoint URL").option("-w, --wallet <path>", "Path to wallet keypair JSON file").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.54",
3
+ "version": "1.0.55",
4
4
  "description": "CLI for the Nara chain (Solana-compatible)",
5
5
  "homepage": "https://nara.build",
6
6
  "repository": {
@@ -334,7 +334,7 @@ async function handleReward(
334
334
  } catch {
335
335
  printWarning("Failed to fetch transaction details. Please check manually later.");
336
336
  console.log(
337
- ` https://solscan.io/tx/${txSignature}?cluster=devnet`
337
+ ` https://explorer.nara.build/tx/${txSignature}`
338
338
  );
339
339
  return;
340
340
  }
@@ -304,7 +304,7 @@ export async function handleTxStatus(
304
304
  console.log(`Error: ${JSON.stringify(output.error)}`);
305
305
  }
306
306
  console.log(
307
- `\nView on Solscan: https://solscan.io/tx/${signature}?cluster=devnet`
307
+ `\nView on explorer: https://explorer.nara.build/tx/${signature}`
308
308
  );
309
309
  }
310
310
  }
@@ -151,7 +151,7 @@ export function printTransactionResult(
151
151
  printSuccess("Transaction successful!");
152
152
  console.log(`Signature: ${result.signature}`);
153
153
  console.log(
154
- `View on Solscan: https://solscan.io/tx/${result.signature}?cluster=devnet`
154
+ `View on explorer: https://explorer.nara.build/tx/${result.signature}`
155
155
  );
156
156
  }
157
157
  } else if (result.base64) {