naracli 1.0.51 → 1.0.53
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 +5 -4
- package/dist/nara-cli-bundle.cjs +732 -244
- package/package.json +2 -2
- package/src/cli/commands/agent.ts +44 -2
- package/src/cli/commands/config.ts +3 -3
- package/src/cli/commands/quest.ts +1 -1
- package/src/cli/utils/agent-config.ts +14 -8
- package/src/tests/agent-registry.test.ts +1 -1
- package/src/tests/config.test.ts +1 -1
- package/src/tests/quest-referral.test.ts +1 -2
- package/src/tests/quest.test.ts +4 -0
package/README.md
CHANGED
|
@@ -100,7 +100,8 @@ Pull skill content from the chain and write it to your AI-agent skill directorie
|
|
|
100
100
|
|
|
101
101
|
| Command | Description |
|
|
102
102
|
| ------- | ----------- |
|
|
103
|
-
| `agent register <agent-id> [--referral <id>]` | Register a new agent on-chain |
|
|
103
|
+
| `agent register <agent-id> [--referral <id>]` | Register a new agent on-chain (one per network) |
|
|
104
|
+
| `agent clear` | Clear saved agent ID from local config (on-chain unchanged) |
|
|
104
105
|
| `agent get <agent-id>` | Get agent info (bio, metadata, version, points) |
|
|
105
106
|
| `agent set-bio <agent-id> <bio>` | Set agent bio (max 512 bytes) |
|
|
106
107
|
| `agent set-metadata <agent-id> <json>` | Set agent JSON metadata (max 800 bytes) |
|
|
@@ -123,11 +124,11 @@ Pull skill content from the chain and write it to your AI-agent skill directorie
|
|
|
123
124
|
Config is split into global and network-specific files:
|
|
124
125
|
|
|
125
126
|
- `~/.config/nara/config.json` — global: `rpc_url`, `wallet`
|
|
126
|
-
- `~/.config/nara/agent-{network}.json` — per-network: `
|
|
127
|
+
- `~/.config/nara/agent-{network}.json` — per-network: `agent_id`, `zk_ids`
|
|
127
128
|
|
|
128
|
-
Agent
|
|
129
|
+
Agent registration and ZK IDs are isolated per network. Only one agent ID per network — use `agent clear` to unlink before registering a new one.
|
|
129
130
|
|
|
130
|
-
When `
|
|
131
|
+
When `agent_id` is set, `quest answer` automatically logs PoMI activity on-chain.
|
|
131
132
|
|
|
132
133
|
**Naming rules**: Agent IDs and skill names must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens.
|
|
133
134
|
|