@clawos-dev/clawd 0.2.39 → 0.2.40-beta.59.6b503e3
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()
|
|
@@ -8615,7 +8618,8 @@ var init_persona_schemas = __esm({
|
|
|
8615
8618
|
label: external_exports.string().min(1),
|
|
8616
8619
|
personality: external_exports.string(),
|
|
8617
8620
|
model: external_exports.string().optional(),
|
|
8618
|
-
public: external_exports.boolean().optional()
|
|
8621
|
+
public: external_exports.boolean().optional(),
|
|
8622
|
+
iconKey: external_exports.string().optional()
|
|
8619
8623
|
}).strict();
|
|
8620
8624
|
PersonaIdArgsSchema = external_exports.object({
|
|
8621
8625
|
personaId: external_exports.string().min(1)
|
|
@@ -8626,7 +8630,9 @@ var init_persona_schemas = __esm({
|
|
|
8626
8630
|
label: external_exports.string().min(1).optional(),
|
|
8627
8631
|
model: external_exports.string().optional(),
|
|
8628
8632
|
personality: external_exports.string().optional(),
|
|
8629
|
-
public: external_exports.boolean().optional()
|
|
8633
|
+
public: external_exports.boolean().optional(),
|
|
8634
|
+
// pass `null` to clear; daemon strips the field from PersonaFile on null
|
|
8635
|
+
iconKey: external_exports.string().nullable().optional()
|
|
8630
8636
|
}).strict()
|
|
8631
8637
|
}).strict();
|
|
8632
8638
|
PersonaIssueTokenArgsSchema = external_exports.object({
|
|
@@ -17625,6 +17631,7 @@ var PersonaManager = class {
|
|
|
17625
17631
|
label: args.label,
|
|
17626
17632
|
model: args.model,
|
|
17627
17633
|
public: args.public ?? false,
|
|
17634
|
+
iconKey: args.iconKey,
|
|
17628
17635
|
tokenMap: {},
|
|
17629
17636
|
createdAt: now,
|
|
17630
17637
|
updatedAt: now
|
|
@@ -17636,11 +17643,17 @@ var PersonaManager = class {
|
|
|
17636
17643
|
update(personaId, patch, personality) {
|
|
17637
17644
|
const existing = this.deps.registry.get(personaId);
|
|
17638
17645
|
if (!existing) throw new Error(`persona not found: ${personaId}`);
|
|
17646
|
+
const { iconKey: iconKeyPatch, ...restPatch } = patch;
|
|
17639
17647
|
const updated = {
|
|
17640
17648
|
...existing,
|
|
17641
|
-
...
|
|
17649
|
+
...restPatch,
|
|
17642
17650
|
updatedAt: Date.now()
|
|
17643
17651
|
};
|
|
17652
|
+
if (iconKeyPatch === null) {
|
|
17653
|
+
delete updated.iconKey;
|
|
17654
|
+
} else if (iconKeyPatch !== void 0) {
|
|
17655
|
+
updated.iconKey = iconKeyPatch;
|
|
17656
|
+
}
|
|
17644
17657
|
if (personality !== void 0) {
|
|
17645
17658
|
this.deps.store.write(updated, personality);
|
|
17646
17659
|
} else {
|
package/package.json
CHANGED