refactor: use conversations (#475)
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
@@ -283,8 +283,11 @@ export async function skill(args: SkillArgs): Promise<SkillResult> {
|
||||
const { content: skillContent, path: skillPath } =
|
||||
await readSkillContent(skillId, skillsDir);
|
||||
|
||||
// Replace placeholder if this is the first skill
|
||||
if (currentValue === "[CURRENTLY EMPTY]") {
|
||||
// Replace placeholder if this is the first skill (support old and new formats)
|
||||
if (
|
||||
currentValue === "No skills currently loaded." ||
|
||||
currentValue === "[CURRENTLY EMPTY]"
|
||||
) {
|
||||
currentValue = "";
|
||||
}
|
||||
|
||||
@@ -378,7 +381,7 @@ export async function skill(args: SkillArgs): Promise<SkillResult> {
|
||||
// Clean up the value
|
||||
currentValue = currentValue.trim();
|
||||
if (currentValue === "") {
|
||||
currentValue = "[CURRENTLY EMPTY]";
|
||||
currentValue = "No skills currently loaded.";
|
||||
}
|
||||
|
||||
// Update the block
|
||||
|
||||
Reference in New Issue
Block a user