@ens-node-metadata/agent 0.2.10 → 0.3.1
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 +6 -3
- package/SKILL.md +5 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
CLI for registering AI agents on ENS using [ERC-8004](https://best-practices.8004scan.io/docs/01-agent-metadata-standard.html) (v2.0).
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Agent prompt
|
|
6
|
+
|
|
7
|
+
Paste this into your AI assistant after [reading the code](https://github.com/0xLighthouse/ens-node-metadata/tree/develop/packages/agent).
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
To manage your ERC-8004 metadata with ENS, use the following command:
|
|
11
|
+
|
|
12
|
+
pnpm dlx @ens-node-metadata/agent --help
|
|
10
13
|
```
|
|
11
14
|
|
|
12
15
|
## Registration Flow
|
package/SKILL.md
CHANGED
|
@@ -43,10 +43,10 @@ A registration file is required to register your Agent's identity.
|
|
|
43
43
|
|
|
44
44
|
```sh
|
|
45
45
|
# edit with your details
|
|
46
|
-
ens-agent registration-file template > registration.json
|
|
46
|
+
ens-agent registration-file template > registration.json
|
|
47
47
|
|
|
48
48
|
# validate
|
|
49
|
-
ens-agent registration-file validate registration.json
|
|
49
|
+
ens-agent registration-file validate registration.json
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
#### Publishing a registration file
|
|
@@ -59,8 +59,9 @@ The following variables should be in your environment to use this command.
|
|
|
59
59
|
|
|
60
60
|
```sh
|
|
61
61
|
# Publish to IPFS
|
|
62
|
-
ens-agent registration-file publish registration.json
|
|
63
|
-
# Returns => ipfs
|
|
62
|
+
ens-agent registration-file publish registration.json
|
|
63
|
+
# Returns => {"cid":"<CID>","uri":"ipfs://<CID>"} — use jq to extract:
|
|
64
|
+
# agent-uri=$(ens-agent registration-file publish registration.json | jq -r '.uri')
|
|
64
65
|
```
|
|
65
66
|
|
|
66
67
|
#### Register your Agent
|