@facthouse/mcp 0.28.0 → 0.28.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
@@ -18,7 +18,7 @@ Needs Node 22.5 or 24+.
18
18
 
19
19
  <!-- x-release-please-start-version -->
20
20
  ```bash
21
- npm install -g @facthouse/mcp@0.28.0
21
+ npm install -g @facthouse/mcp@0.28.1
22
22
  facthouse init
23
23
  ```
24
24
  <!-- x-release-please-end -->
@@ -35,7 +35,7 @@ To skip the wizard (record only — no transcript copy), paste this. The server
35
35
  "mcpServers": {
36
36
  "facthouse": {
37
37
  "command": "npx",
38
- "args": ["-y", "@facthouse/mcp@0.28.0"]
38
+ "args": ["-y", "@facthouse/mcp@0.28.1"]
39
39
  }
40
40
  }
41
41
  }
@@ -132,19 +132,19 @@ Both are read-only views over the same database the tools query. Clients that ne
132
132
 
133
133
  The MCP JSON starts the server via npx and does not need a global install. npm install -g puts facthouse on PATH for init, settings, stats, and inspect. The same CLI without PATH is npx -y -p "@facthouse/mcp" -- facthouse — pin the version; quote the package so PowerShell does not splat. -p and -- stop an older global binary winning. npx -y @facthouse/mcp with no -p / facthouse is the server; do not run it as a shell command for init, settings, or stats. The MCP paste starts the server. It does not put facthouse on PATH. To inspect the file from a terminal, see CLI below.
134
134
 
135
- These CLI commands work in bash, zsh, and PowerShell. Quote @facthouse/mcp in PowerShell. Git Bash /c/... paths are not PowerShell; use C:/... and pass --data instead of cd or export. ~/ is expanded on every platform. WSL uses /mnt/c/.... FACTHOUSE_DATA on an MCP snippet applies only to that server process. A terminal facthouse command needs --data, or FACTHOUSE_DATA in the environment that shell inherits. Hooks do not see mcp.json env.
135
+ These CLI commands work in bash, zsh, and PowerShell. Quote @facthouse/mcp in PowerShell. Git Bash /c/... paths are not PowerShell; use C:/... and pass --data instead of cd or export. In Git Bash, quote a backslash path or write C:/... — unquoted \ is an escape. ~/ is expanded on every platform. WSL uses /mnt/c/.... FACTHOUSE_DATA on an MCP snippet applies only to that server process. A terminal facthouse command needs --data, or FACTHOUSE_DATA in the environment that shell inherits. Hooks do not see mcp.json env.
136
136
 
137
137
  <!-- x-release-please-start-version -->
138
138
  ```bash
139
- npm install -g @facthouse/mcp@0.28.0
139
+ npm install -g @facthouse/mcp@0.28.1
140
140
  facthouse init --yes
141
141
  ```
142
142
 
143
143
  ```bash
144
- npx -y -p "@facthouse/mcp@0.28.0" -- facthouse init --yes
145
- npx -y -p "@facthouse/mcp@0.28.0" -- facthouse settings --json
146
- npx -y -p "@facthouse/mcp@0.28.0" -- facthouse stats
147
- npx -y -p "@facthouse/mcp@0.28.0" -- facthouse inspect
144
+ npx -y -p "@facthouse/mcp@0.28.1" -- facthouse init --yes
145
+ npx -y -p "@facthouse/mcp@0.28.1" -- facthouse settings --json
146
+ npx -y -p "@facthouse/mcp@0.28.1" -- facthouse stats
147
+ npx -y -p "@facthouse/mcp@0.28.1" -- facthouse inspect
148
148
  ```
149
149
  <!-- x-release-please-end -->
150
150
 
@@ -288,7 +288,7 @@ facthouse inspect --entity Helios --limit 20 --output ~/inspect.html
288
288
 
289
289
  ### Another store
290
290
 
291
- You do not need two installs. The default is one directory and one MCP server named `facthouse`. A second store is a second directory — not a filter on which client wrote the row. Work and personal is one reason to split, not a required setup.
291
+ The store is this directory. Clients share it by using the same path. A second store is a second directory, not a second install. The default MCP server name is `facthouse`. Splitting is not a filter on which client wrote the row. Work and personal is one reason to split, not a required setup.
292
292
 
293
293
  A non-default data directory prints a distinct MCP server name so two stores can share one `mcp.json`. Init against each extra directory prints that snippet. Example:
294
294
 
@@ -298,12 +298,12 @@ A non-default data directory prints a distinct MCP server name so two stores can
298
298
  "mcpServers": {
299
299
  "facthouse-personal": {
300
300
  "command": "npx",
301
- "args": ["-y", "@facthouse/mcp@0.28.0"],
301
+ "args": ["-y", "@facthouse/mcp@0.28.1"],
302
302
  "env": { "FACTHOUSE_DATA": "C:\\Users\\alex\\.facthouse-personal" }
303
303
  },
304
304
  "facthouse-work": {
305
305
  "command": "npx",
306
- "args": ["-y", "@facthouse/mcp@0.28.0"],
306
+ "args": ["-y", "@facthouse/mcp@0.28.1"],
307
307
  "env": { "FACTHOUSE_DATA": "C:\\Users\\alex\\.facthouse-work" }
308
308
  }
309
309
  }
@@ -329,7 +329,7 @@ Example — placeholders only; do not put a real password in a committed file:
329
329
  "mcpServers": {
330
330
  "facthouse": {
331
331
  "command": "npx",
332
- "args": ["-y", "@facthouse/mcp@0.28.0"],
332
+ "args": ["-y", "@facthouse/mcp@0.28.1"],
333
333
  "env": {
334
334
  "FACTHOUSE_DATA": "C:\\Users\\alex\\.facthouse-work",
335
335
  "FACTHOUSE_STORAGE": "postgres",
@@ -381,7 +381,7 @@ Do not install record hooks on this store — both write the same rows. Facthous
381
381
  "hooks": [
382
382
  {
383
383
  "type": "command",
384
- "command": "npx -y -p @facthouse/mcp@0.28.0 -- facthouse notify compaction --data /absolute/path/to/the-same-store"
384
+ "command": "npx -y -p @facthouse/mcp@0.28.1 -- facthouse notify compaction --data /absolute/path/to/the-same-store"
385
385
  }
386
386
  ]
387
387
  }
@@ -464,7 +464,7 @@ Throwaway store, not the capture path for a real Claude Code or Cursor home. The
464
464
  <!-- x-release-please-start-version -->
465
465
  ```bash
466
466
  export FACTHOUSE_DATA=/tmp/facthouse-demo
467
- om() { npx -y -p "@facthouse/mcp@0.28.0" -- facthouse "$@"; }
467
+ om() { npx -y -p "@facthouse/mcp@0.28.1" -- facthouse "$@"; }
468
468
 
469
469
  om init --yes
470
470
 
@@ -479,7 +479,7 @@ om stats
479
479
 
480
480
  ```powershell
481
481
  $env:FACTHOUSE_DATA = Join-Path $env:TEMP "facthouse-demo"
482
- function om { npx -y -p "@facthouse/mcp@0.28.0" -- facthouse @args }
482
+ function om { npx -y -p "@facthouse/mcp@0.28.1" -- facthouse @args }
483
483
  om init --yes
484
484
  om record --role user --content "I prefer dark mode in every editor, and I never want telemetry enabled."
485
485
  om record --role user --content "I am allergic to shellfish, so avoid seafood restaurants when booking anything."
@@ -1,25 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import "../suppress-sqlite-warning.js";
3
- import { type ConsolidationResult } from "../intelligence/consolidate.js";
4
- import { type ConsolidateSteps } from "../intelligence/steps.js";
5
- import type { IntelligenceProvider } from "../intelligence/types.js";
6
- import type { EmbeddingProvider } from "../embedding/types.js";
7
- import { type ServerConfig } from "../types/config.js";
8
- interface ConsolidateStoreOpts {
9
- /** undefined: default cap; null: no cap; number: that many oldest lines. */
10
- extractLimit?: number | null;
11
- /** Init historic window. See ConsolidateCaller.extractSince. */
12
- extractSince?: Date;
13
- /** Print the result object instead of the human summary. */
14
- json?: boolean;
15
- /** Print nothing on success (the init offer prints its own lines). */
16
- print?: boolean;
17
- }
18
2
  /**
19
- * Open the DB at dataDir, run consolidate() with the given provider and steps,
20
- * report, then close. The copy step reads `config.sources` through the same
21
- * copySources the server's heartbeat uses — one copy path.
3
+ * Thin loader so `suppress-sqlite-warning` evaluates before `node:sqlite` is
4
+ * even translated. A static import of sqlite in this file (via the rest of
5
+ * the CLI graph) emits ExperimentalWarning during graph load, before any
6
+ * wrap of process.emitWarning can run.
22
7
  */
23
- export declare function consolidateInProcess(dataDir: string, provider: IntelligenceProvider, config?: Partial<ServerConfig>, embedding?: EmbeddingProvider | null, steps?: ConsolidateSteps, opts?: ConsolidateStoreOpts): Promise<ConsolidationResult | undefined>;
24
- export {};
8
+ import "../suppress-sqlite-warning.js";
25
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":";AAEA,OAAO,+BAA+B,CAAC;AAiEvC,OAAO,EAAe,KAAK,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,EAKL,KAAK,gBAAgB,EAEtB,MAAM,0BAA0B,CAAC;AAMlC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAipBvE,UAAU,oBAAoB;IAC5B,4EAA4E;IAC5E,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,gEAAgE;IAChE,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,4DAA4D;IAC5D,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,sEAAsE;IACtE,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAmDD;;;;GAIG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,oBAAoB,EAC9B,MAAM,GAAE,OAAO,CAAC,YAAY,CAAkB,EAC9C,SAAS,GAAE,iBAAiB,GAAG,IAAW,EAC1C,KAAK,GAAE,gBAA4B,EACnC,IAAI,GAAE,oBAAyB,GAC9B,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAgD1C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":";AAEA;;;;;GAKG;AACH,OAAO,+BAA+B,CAAC"}