From aade133978cde403f55213bdd4ebeb2ab2f0dceb Mon Sep 17 00:00:00 2001 From: the sun gif man Date: Tue, 10 Feb 2026 21:28:32 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20memory-lancedb:=20avoid=20plugin?= =?UTF-8?q?-sdk=20enum=20helper=20in=20local=20TypeBox=20schema=20(#13897)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/memory-lancedb/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/extensions/memory-lancedb/index.ts b/extensions/memory-lancedb/index.ts index 9ee2e39077..64f557ea95 100644 --- a/extensions/memory-lancedb/index.ts +++ b/extensions/memory-lancedb/index.ts @@ -11,7 +11,6 @@ import type { OpenClawPluginApi } from "openclaw/plugin-sdk"; import { Type } from "@sinclair/typebox"; import { randomUUID } from "node:crypto"; import OpenAI from "openai"; -import { stringEnum } from "openclaw/plugin-sdk"; import { MEMORY_CATEGORIES, type MemoryCategory, @@ -317,7 +316,12 @@ const memoryPlugin = { parameters: Type.Object({ text: Type.String({ description: "Information to remember" }), importance: Type.Optional(Type.Number({ description: "Importance 0-1 (default: 0.7)" })), - category: Type.Optional(stringEnum(MEMORY_CATEGORIES)), + category: Type.Optional( + Type.Unsafe({ + type: "string", + enum: [...MEMORY_CATEGORIES], + }), + ), }), async execute(_toolCallId, params) { const {