@clawos-dev/clawd 0.2.41-beta.60.297ee36 → 0.2.41-beta.61.b447af7
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/cli.cjs +16 -3
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -8607,6 +8607,9 @@ var init_persona_schemas = __esm({
|
|
|
8607
8607
|
label: external_exports.string(),
|
|
8608
8608
|
model: external_exports.string().optional(),
|
|
8609
8609
|
public: external_exports.boolean(),
|
|
8610
|
+
// 8-key set defined UI-side in `lib/session-icons.ts`; protocol stays plain string
|
|
8611
|
+
// for forward compatibility, consumer fallbacks to default when key not found.
|
|
8612
|
+
iconKey: external_exports.string().optional(),
|
|
8610
8613
|
tokenMap: external_exports.record(external_exports.string(), PersonaTokenEntrySchema),
|
|
8611
8614
|
createdAt: external_exports.number(),
|
|
8612
8615
|
updatedAt: external_exports.number()
|
|
@@ -8618,7 +8621,8 @@ var init_persona_schemas = __esm({
|
|
|
8618
8621
|
label: external_exports.string().min(1),
|
|
8619
8622
|
personality: external_exports.string(),
|
|
8620
8623
|
model: external_exports.string().optional(),
|
|
8621
|
-
public: external_exports.boolean().optional()
|
|
8624
|
+
public: external_exports.boolean().optional(),
|
|
8625
|
+
iconKey: external_exports.string().optional()
|
|
8622
8626
|
}).strict();
|
|
8623
8627
|
PersonaIdArgsSchema = external_exports.object({
|
|
8624
8628
|
personaId: external_exports.string().min(1)
|
|
@@ -8629,7 +8633,9 @@ var init_persona_schemas = __esm({
|
|
|
8629
8633
|
label: external_exports.string().min(1).optional(),
|
|
8630
8634
|
model: external_exports.string().optional(),
|
|
8631
8635
|
personality: external_exports.string().optional(),
|
|
8632
|
-
public: external_exports.boolean().optional()
|
|
8636
|
+
public: external_exports.boolean().optional(),
|
|
8637
|
+
// pass `null` to clear; daemon strips the field from PersonaFile on null
|
|
8638
|
+
iconKey: external_exports.string().nullable().optional()
|
|
8633
8639
|
}).strict()
|
|
8634
8640
|
}).strict();
|
|
8635
8641
|
PersonaIssueTokenArgsSchema = external_exports.object({
|
|
@@ -17628,6 +17634,7 @@ var PersonaManager = class {
|
|
|
17628
17634
|
label: args.label,
|
|
17629
17635
|
model: args.model,
|
|
17630
17636
|
public: args.public ?? false,
|
|
17637
|
+
iconKey: args.iconKey,
|
|
17631
17638
|
tokenMap: {},
|
|
17632
17639
|
createdAt: now,
|
|
17633
17640
|
updatedAt: now
|
|
@@ -17639,11 +17646,17 @@ var PersonaManager = class {
|
|
|
17639
17646
|
update(personaId, patch, personality) {
|
|
17640
17647
|
const existing = this.deps.registry.get(personaId);
|
|
17641
17648
|
if (!existing) throw new Error(`persona not found: ${personaId}`);
|
|
17649
|
+
const { iconKey: iconKeyPatch, ...restPatch } = patch;
|
|
17642
17650
|
const updated = {
|
|
17643
17651
|
...existing,
|
|
17644
|
-
...
|
|
17652
|
+
...restPatch,
|
|
17645
17653
|
updatedAt: Date.now()
|
|
17646
17654
|
};
|
|
17655
|
+
if (iconKeyPatch === null) {
|
|
17656
|
+
delete updated.iconKey;
|
|
17657
|
+
} else if (iconKeyPatch !== void 0) {
|
|
17658
|
+
updated.iconKey = iconKeyPatch;
|
|
17659
|
+
}
|
|
17647
17660
|
if (personality !== void 0) {
|
|
17648
17661
|
this.deps.store.writePersonality(personaId, personality);
|
|
17649
17662
|
}
|
package/package.json
CHANGED