@alfe.ai/openclaw-identity 0.1.12 → 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 +2 -1
- package/dist/plugin2.js +2 -1
- package/package.json +1 -1
package/dist/plugin2.cjs
CHANGED
|
@@ -406,7 +406,7 @@ const plugin = {
|
|
|
406
406
|
}),
|
|
407
407
|
defineTool({
|
|
408
408
|
name: "update_identity",
|
|
409
|
-
description: "Update display-shape fields on an identity: name / avatarUrl / timezone / locale. Contact mutations go through the verify flow — this tool will NOT accept email or mobile. Title and company live on org membership rows, not here.",
|
|
409
|
+
description: "Update display-shape fields on a CONTACT/person you know (an identity): name / avatarUrl / timezone / locale. NOT for your own agent profile — to set YOUR OWN profile picture use `set_avatar` or `generate_avatar`, never this tool with identityId:'agent'. Contact mutations go through the verify flow — this tool will NOT accept email or mobile. Title and company live on org membership rows, not here.",
|
|
410
410
|
parameters: _sinclair_typebox.Type.Object({
|
|
411
411
|
identityId: _sinclair_typebox.Type.String(),
|
|
412
412
|
name: _sinclair_typebox.Type.Optional(_sinclair_typebox.Type.String()),
|
|
@@ -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
|
@@ -406,7 +406,7 @@ const plugin = {
|
|
|
406
406
|
}),
|
|
407
407
|
defineTool({
|
|
408
408
|
name: "update_identity",
|
|
409
|
-
description: "Update display-shape fields on an identity: name / avatarUrl / timezone / locale. Contact mutations go through the verify flow — this tool will NOT accept email or mobile. Title and company live on org membership rows, not here.",
|
|
409
|
+
description: "Update display-shape fields on a CONTACT/person you know (an identity): name / avatarUrl / timezone / locale. NOT for your own agent profile — to set YOUR OWN profile picture use `set_avatar` or `generate_avatar`, never this tool with identityId:'agent'. Contact mutations go through the verify flow — this tool will NOT accept email or mobile. Title and company live on org membership rows, not here.",
|
|
410
410
|
parameters: Type.Object({
|
|
411
411
|
identityId: Type.String(),
|
|
412
412
|
name: Type.Optional(Type.String()),
|
|
@@ -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