@alfe.ai/openclaw-identity 0.1.13 → 0.1.14
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/plugin2.cjs +1 -0
- package/dist/plugin2.js +1 -0
- package/package.json +1 -1
package/dist/plugin2.cjs
CHANGED
|
@@ -416,6 +416,7 @@ const plugin = {
|
|
|
416
416
|
}),
|
|
417
417
|
handler: (params) => {
|
|
418
418
|
const { identityId, ...rest } = params;
|
|
419
|
+
if (!identityId.startsWith("idn_")) throw new Error(`"${identityId}" is not a contact identity (those start with "idn_"). update_identity edits OTHER people you know — NOT your own agent profile. To set YOUR OWN profile picture, call generate_avatar (from a prompt) or set_avatar (with the image url you already generated). To change your own voice, call set_voice.`);
|
|
419
420
|
return client.updateIdentity(identityId, rest);
|
|
420
421
|
}
|
|
421
422
|
}),
|
package/dist/plugin2.js
CHANGED
|
@@ -416,6 +416,7 @@ const plugin = {
|
|
|
416
416
|
}),
|
|
417
417
|
handler: (params) => {
|
|
418
418
|
const { identityId, ...rest } = params;
|
|
419
|
+
if (!identityId.startsWith("idn_")) throw new Error(`"${identityId}" is not a contact identity (those start with "idn_"). update_identity edits OTHER people you know — NOT your own agent profile. To set YOUR OWN profile picture, call generate_avatar (from a prompt) or set_avatar (with the image url you already generated). To change your own voice, call set_voice.`);
|
|
419
420
|
return client.updateIdentity(identityId, rest);
|
|
420
421
|
}
|
|
421
422
|
}),
|
package/package.json
CHANGED