agentdex-cli 0.4.1 → 0.4.2
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/dist/nostr.js +3 -0
- package/package.json +1 -1
- package/src/nostr.ts +2 -0
package/dist/nostr.js
CHANGED
|
@@ -63,6 +63,9 @@ export function createProfileEvent(sk, profile) {
|
|
|
63
63
|
];
|
|
64
64
|
// Kind 31339 is agent-specific metadata ONLY
|
|
65
65
|
// Basic profile (name, avatar, website, nip05, lud16) lives exclusively in kind 0
|
|
66
|
+
// name is included for API registration (server needs it) but kind 0 is canonical
|
|
67
|
+
if (profile.name)
|
|
68
|
+
tags.push(['name', profile.name]);
|
|
66
69
|
if (profile.description)
|
|
67
70
|
tags.push(['description', profile.description]);
|
|
68
71
|
if (profile.capabilities) {
|
package/package.json
CHANGED
package/src/nostr.ts
CHANGED
|
@@ -96,6 +96,8 @@ export function createProfileEvent(sk: Uint8Array, profile: AgentProfile) {
|
|
|
96
96
|
|
|
97
97
|
// Kind 31339 is agent-specific metadata ONLY
|
|
98
98
|
// Basic profile (name, avatar, website, nip05, lud16) lives exclusively in kind 0
|
|
99
|
+
// name is included for API registration (server needs it) but kind 0 is canonical
|
|
100
|
+
if (profile.name) tags.push(['name', profile.name]);
|
|
99
101
|
if (profile.description) tags.push(['description', profile.description]);
|
|
100
102
|
if (profile.capabilities) {
|
|
101
103
|
for (const cap of profile.capabilities) {
|