@tpsdev-ai/flair-mcp 0.1.1 → 0.1.2
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/index.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -61,7 +61,10 @@ server.tool("memory_store", "Save information to persistent memory. Use for less
|
|
|
61
61
|
type: z.enum(["session", "lesson", "decision", "preference", "fact", "goal"]).optional().default("session"),
|
|
62
62
|
durability: z.enum(["permanent", "persistent", "standard", "ephemeral"]).optional().default("standard")
|
|
63
63
|
.describe("permanent=inviolable, persistent=key decisions, standard=default, ephemeral=auto-expires 72h"),
|
|
64
|
-
tags: z.
|
|
64
|
+
tags: z.union([
|
|
65
|
+
z.array(z.string()),
|
|
66
|
+
z.string().transform(s => s.startsWith("[") ? JSON.parse(s) : s.split(",").map(t => t.trim()).filter(Boolean)),
|
|
67
|
+
]).optional().describe("Optional tags — array or comma-separated string"),
|
|
65
68
|
}, async ({ content, type, durability, tags }) => {
|
|
66
69
|
const result = await flair.memory.write(content, {
|
|
67
70
|
type: type,
|