naracli 1.0.32 → 1.0.37
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 +9 -6
- package/dist/nara-cli-bundle.cjs +94287 -55928
- package/dist/zk/answer_proof.wasm +0 -0
- package/dist/zk/answer_proof_final.zkey +0 -0
- package/package.json +6 -3
- package/src/cli/commands/agent.ts +39 -7
- package/src/cli/commands/config.ts +31 -13
- package/src/cli/commands/quest.ts +8 -7
- package/src/cli/commands/zkid.ts +5 -5
- package/src/cli/utils/agent-config.ts +127 -22
- package/src/cli/utils/wallet.ts +9 -7
- package/src/tests/agent.test.ts +193 -0
- package/src/tests/config.test.ts +199 -0
- package/src/tests/validation.test.ts +80 -0
- package/src/tests/zkid.test.ts +6 -6
package/README.md
CHANGED
|
@@ -96,7 +96,7 @@ Pull skill content from the chain and write it to your AI-agent skill directorie
|
|
|
96
96
|
|
|
97
97
|
| Command | Description |
|
|
98
98
|
| ------- | ----------- |
|
|
99
|
-
| `agent register <agent-id
|
|
99
|
+
| `agent register <agent-id> [--referral <id>]` | Register a new agent on-chain |
|
|
100
100
|
| `agent get <agent-id>` | Get agent info (bio, metadata, version, points) |
|
|
101
101
|
| `agent set-bio <agent-id> <bio>` | Set agent bio (max 512 bytes) |
|
|
102
102
|
| `agent set-metadata <agent-id> <json>` | Set agent JSON metadata (max 800 bytes) |
|
|
@@ -105,22 +105,25 @@ Pull skill content from the chain and write it to your AI-agent skill directorie
|
|
|
105
105
|
| `agent transfer <agent-id> <new-authority>` | Transfer agent authority |
|
|
106
106
|
| `agent close-buffer <agent-id>` | Close upload buffer, reclaim rent |
|
|
107
107
|
| `agent delete <agent-id>` | Delete agent, reclaim rent |
|
|
108
|
+
| `agent set-referral <agent-id> <referral-id>` | Set referral agent on-chain |
|
|
108
109
|
| `agent log <agent-id> <activity> <log>` | Log activity event on-chain (`--model`, `--referral`) |
|
|
109
110
|
|
|
110
111
|
### Configuration
|
|
111
112
|
|
|
112
113
|
| Command | Description |
|
|
113
114
|
| ------- | ----------- |
|
|
114
|
-
| `config get` | Show current configuration (rpc-url, wallet) |
|
|
115
|
+
| `config get` | Show current configuration (rpc-url, wallet, network) |
|
|
115
116
|
| `config set <key> <value>` | Set a config value (keys: `rpc-url`, `wallet`) |
|
|
116
117
|
| `config reset [key]` | Reset config to default (omit key for all) |
|
|
117
118
|
|
|
118
|
-
Config is
|
|
119
|
+
Config is split into global and network-specific files:
|
|
119
120
|
|
|
120
|
-
- `
|
|
121
|
-
- `
|
|
121
|
+
- `~/.config/nara/config.json` — global: `rpc_url`, `wallet`
|
|
122
|
+
- `~/.config/nara/agent-{network}.json` — per-network: `agent_ids`, `zk_ids`
|
|
122
123
|
|
|
123
|
-
|
|
124
|
+
Agent registrations and ZK IDs are isolated per network. Referral is stored on-chain via `agent set-referral`.
|
|
125
|
+
|
|
126
|
+
When `agent_ids[0]` exists, `quest answer` automatically logs PoMI activity on-chain.
|
|
124
127
|
|
|
125
128
|
**Naming rules**: Agent IDs and skill names must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens.
|
|
126
129
|
|