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 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>` | Register a new agent on-chain |
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 stored in `~/.config/nara/agent.json` alongside:
119
+ Config is split into global and network-specific files:
119
120
 
120
- - `agent_ids`registered agent IDs (most recent first), used for on-chain activityLog
121
- - `zk_ids`created ZK ID names (most recent first), used by `zkid scan` with no arguments
121
+ - `~/.config/nara/config.json` — global: `rpc_url`, `wallet`
122
+ - `~/.config/nara/agent-{network}.json` — per-network: `agent_ids`, `zk_ids`
122
123
 
123
- When `agent_ids[0]` exists, `quest answer` automatically logs PoMI activity on-chain in the same transaction (direct submission only, not relay).
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