klypix-mcp 1.12.0 → 1.12.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "klypix-mcp",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "description": "An open, local-first, agent-neutral canvas file your AI reads and writes over MCP — works with Claude, Cursor, Cline, any model.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -844,8 +844,16 @@ async function capture(lib) {
844
844
  // 🧠 MSG [to]: text — an async note to another session (not a brain card).
845
845
  const mg = MSG_RE.exec(trimmed);
846
846
  if (mg) {
847
+ const to = (mg[1] || '').trim();
847
848
  const txt = (mg[2] || '').trim();
848
- if (txt) messages.push({ id: sha(sid + '|' + txt + '|' + Date.now() + '|' + Math.random()), from: sid, to: (mg[1] || '').trim() || 'all', text: txt.slice(0, 400), ts: Date.now(), seen: [] });
849
+ // Skip the feature's OWN documentation/examples, not a real note: a
850
+ // placeholder target/text (<to>, <text>, <their-id…> — real targets are
851
+ // id-prefixes/branches and never contain <>) or a marker quoted inside an
852
+ // inline-code span (`…🧠 MSG…`, i.e. a backtick precedes the marker).
853
+ const isExample = /[<>\s]/.test(to) // real targets are ONE token (id/branch/all/*) — <>, spaces ⇒ a doc example
854
+ || /^\s*<[^>]+>/.test(txt)
855
+ || /`/.test(trimmed.slice(0, trimmed.indexOf('🧠')));
856
+ if (txt && !isExample) messages.push({ id: sha(sid + '|' + txt + '|' + Date.now() + '|' + Math.random()), from: sid, to: to || 'all', text: txt.slice(0, 400), ts: Date.now(), seen: [] });
849
857
  continue;
850
858
  }
851
859
  const m = MARKER.exec(trimmed); if (!m) continue;