brainllm 12.6.0 → 12.6.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/README.md CHANGED
@@ -10,7 +10,7 @@ A persistent, graph-structured second brain for Claude and any MCP client — bu
10
10
 
11
11
  [**brainllm site**](https://miisodev.github.io/BrainLLM/) · [How it works](https://miisodev.github.io/BrainLLM/how-it-works.html) · [Use cases](https://miisodev.github.io/BrainLLM/use-cases.html) · [Docs](https://miisodev.github.io/BrainLLM/docs.html)
12
12
 
13
- [![Version](https://img.shields.io/badge/version-12.6.0-f59e0b?style=flat-square)](https://github.com/miisodev/BrainLLM/releases)
13
+ [![Version](https://img.shields.io/badge/version-12.6.1-f59e0b?style=flat-square)](https://github.com/miisodev/BrainLLM/releases)
14
14
  [![CI](https://img.shields.io/github/actions/workflow/status/miisodev/BrainLLM/ci.yml?branch=main&style=flat-square&label=CI&color=f59e0b)](https://github.com/miisodev/BrainLLM/actions/workflows/ci.yml)
15
15
  [![License: MIT](https://img.shields.io/badge/license-MIT-a1a1aa?style=flat-square)](./LICENSE)
16
16
  [![Runtime: Bun](https://img.shields.io/badge/runtime-Bun%20%E2%89%A5%201.0-a1a1aa?style=flat-square&logo=bun&logoColor=white)](https://bun.sh)
package/dist/index.js CHANGED
@@ -23419,7 +23419,7 @@ async function sweep(trilium, cfg, opts = {}) {
23419
23419
  { id: cfg.knowledge.domains, kind: "domain", label: "Knowledge/Domains" }
23420
23420
  ];
23421
23421
  for (const { id, kind, label: containerLabel } of dupeContainers) {
23422
- if (!id)
23422
+ if (!id || domainSlug)
23423
23423
  continue;
23424
23424
  const all = await trilium.searchNotes(`#noteType=${kind}`, { ancestorNoteId: id, fastSearch: true, limit: 500, includeArchivedNotes: true }).catch(() => ({ results: [] }));
23425
23425
  report.scanned += all.results.length;
@@ -23439,7 +23439,8 @@ async function sweep(trilium, cfg, opts = {}) {
23439
23439
  }
23440
23440
  if (cfg.knowledge.domains) {
23441
23441
  for (const domainKind of ["information", "sources"]) {
23442
- const all = await trilium.searchNotes(`#noteType=${domainKind}`, { ancestorNoteId: cfg.knowledge.domains, fastSearch: true, limit: 500, includeArchivedNotes: true }).catch(() => ({ results: [] }));
23442
+ const found = await trilium.searchNotes(`#noteType=${domainKind}`, { ancestorNoteId: cfg.knowledge.domains, fastSearch: true, limit: 500, includeArchivedNotes: true }).catch(() => ({ results: [] }));
23443
+ const all = { results: found.results.filter(inScope) };
23443
23444
  report.scanned += all.results.length;
23444
23445
  const byDomainTitle = new Map;
23445
23446
  for (const n of all.results) {
@@ -28828,7 +28829,7 @@ function createServer(origin = null) {
28828
28829
  const s = new McpServer({
28829
28830
  name: "BrainLLM",
28830
28831
  title: "BrainLLM",
28831
- version: "12.6.0",
28832
+ version: "12.6.1",
28832
28833
  icons: brandingIcons(origin)
28833
28834
  });
28834
28835
  registerTools(s, trilium, brainRef);
package/manifest.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "manifest_version": "0.3",
3
3
  "name": "brainllm",
4
4
  "display_name": "BrainLLM",
5
- "version": "12.6.0",
5
+ "version": "12.6.1",
6
6
  "description": "Turns TriliumNext Notes into a persistent, graph-structured second brain for Claude and other LLM clients.",
7
7
  "long_description": "BrainLLM is an MCP server that organises memory into five purpose-built areas (Master, LLM, Memory, Knowledge, Insights). The model supplies content while the server owns placement, format, lifecycle, dates and backups. Includes a full raw ETAPI surface for advanced use. Requires a running TriliumNext instance and the Bun runtime.",
8
8
  "author": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brainllm",
3
- "version": "12.6.0",
3
+ "version": "12.6.1",
4
4
  "mcpName": "io.github.miisodev/brainllm",
5
5
  "description": "MCP server that turns TriliumNext Notes into a persistent, graph-structured second brain for Claude and other LLM clients.",
6
6
  "author": "Kevin Miiso Novo <miisodev@gmail.com>",
package/server.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
3
  "name": "io.github.miisodev/brainllm",
4
4
  "description": "Persistent graph-structured memory for LLMs in TriliumNext Notes — readable and editable by humans.",
5
- "version": "12.6.0",
5
+ "version": "12.6.1",
6
6
  "websiteUrl": "https://github.com/miisodev/BrainLLM#readme",
7
7
  "repository": {
8
8
  "url": "https://github.com/miisodev/BrainLLM",
@@ -12,7 +12,7 @@
12
12
  {
13
13
  "registryType": "npm",
14
14
  "identifier": "brainllm",
15
- "version": "12.6.0",
15
+ "version": "12.6.1",
16
16
  "transport": {
17
17
  "type": "stdio"
18
18
  },
@@ -80,7 +80,7 @@ worth keeping?
80
80
  └─ passing remark or already known from training ─→ don't capture
81
81
  ```
82
82
 
83
- **Domains** are one maintained **Sources** note plus one information note per sub-category, including **Current State**, revised in place. Every claim traces to a Sources entry (❇️ discovered, ✅ used); `remember(kind="sources", revision=[{source, marker, date}])` upserts the Revision row. Creating a domain creates its Sources note. Read `references/domains.md` before creating a domain, adding a sub-category or refreshing one.
83
+ **Domains are your own working knowledge of a subject as it currently is.** Their scope, depth and size are your call, set by what keeps you confident enough to act and advise well; refresh one whenever reality moves. The structure keeps that knowledge tidy and checkable, and never caps it: one maintained **Sources** note plus one information note per sub-category, including **Current State**, revised in place. Every claim traces to a Sources entry (❇️ discovered, ✅ used); `remember(kind="sources", revision=[{source, marker, date}])` upserts the Revision row. Creating a domain creates its Sources note. Read `references/domains.md` before creating a domain, adding a sub-category or refreshing one.
84
84
 
85
85
  ---
86
86
 
@@ -2,6 +2,8 @@
2
2
 
3
3
  Read this before creating a domain, adding a sub-category note, or refreshing domain content, then follow the one protocol that matches. Never skip the sources gate and never manufacture knowledge.
4
4
 
5
+ **A domain is your own working knowledge of a subject as it currently is.** What it covers, how deep it goes and how large it grows are your call. The measure is confidence: enough that a session reading the domain can act and advise well without re-deriving the subject, and no more. The structure below does not cap that knowledge. It keeps it tidy and makes every claim checkable against a source. When reality moves, refresh the domain rather than waiting to be asked.
6
+
5
7
  ## The shape of a domain
6
8
 
7
9
  A domain is **one Sources note plus one information note per sub-category**, each a maintained document revised in place.