naracli 1.0.30 → 1.0.32
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 +10 -2
- package/dist/nara-cli-bundle.cjs +349 -134
- package/package.json +2 -2
- package/src/cli/commands/agent.ts +1 -1
- package/src/cli/commands/config.ts +118 -0
- package/src/cli/commands/quest.ts +3 -3
- package/src/cli/commands/zkid.ts +2 -2
- package/src/cli/index.ts +4 -0
- package/src/cli/utils/agent-config.ts +17 -15
- package/src/cli/utils/wallet.ts +20 -19
- package/src/tests/helpers.ts +3 -1
- package/src/tests/quest.test.ts +22 -6
package/README.md
CHANGED
|
@@ -107,9 +107,15 @@ Pull skill content from the chain and write it to your AI-agent skill directorie
|
|
|
107
107
|
| `agent delete <agent-id>` | Delete agent, reclaim rent |
|
|
108
108
|
| `agent log <agent-id> <activity> <log>` | Log activity event on-chain (`--model`, `--referral`) |
|
|
109
109
|
|
|
110
|
-
###
|
|
110
|
+
### Configuration
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
| Command | Description |
|
|
113
|
+
| ------- | ----------- |
|
|
114
|
+
| `config get` | Show current configuration (rpc-url, wallet) |
|
|
115
|
+
| `config set <key> <value>` | Set a config value (keys: `rpc-url`, `wallet`) |
|
|
116
|
+
| `config reset [key]` | Reset config to default (omit key for all) |
|
|
117
|
+
|
|
118
|
+
Config is stored in `~/.config/nara/agent.json` alongside:
|
|
113
119
|
|
|
114
120
|
- `agent_ids` — registered agent IDs (most recent first), used for on-chain activityLog
|
|
115
121
|
- `zk_ids` — created ZK ID names (most recent first), used by `zkid scan` with no arguments
|
|
@@ -122,6 +128,8 @@ Run `npx naracli <command> --help` for details.
|
|
|
122
128
|
|
|
123
129
|
### Global Options
|
|
124
130
|
|
|
131
|
+
Global options override config values for a single command:
|
|
132
|
+
|
|
125
133
|
| Option | Description |
|
|
126
134
|
| --------------------- | --------------------------- |
|
|
127
135
|
| `-r, --rpc-url <url>` | RPC endpoint URL |
|