trova-cli 0.1.0 → 0.1.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.
Files changed (3) hide show
  1. package/README.md +15 -1
  2. package/dist/cli.js +62 -8
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Local keyword and semantic search for folders of Markdown notes. `trova` indexes a folder on your machine and searches it by keyword, by meaning, or both. It runs as a command-line tool, an HTTP API and an MCP server for AI agents. It is built on [qmd](https://github.com/tobi/qmd). Your notes never leave the machine: the only network traffic is the model download from Hugging Face, and after that `trova` works offline.
4
4
 
5
- The same engine powers the Trova plugin for Obsidian, which lives in the [same repository](https://github.com/ibimal/trova).
5
+ The same engine powers the Trova plugin for Obsidian, which lives in its own repository, [trova-obsidian](https://github.com/ibimal/trova-obsidian).
6
6
 
7
7
  ## Requirements
8
8
 
@@ -104,6 +104,20 @@ qmd downloads its default models from Hugging Face into `~/.cache/qmd/models/` t
104
104
  | Index, sidecar tables, logs, attachment text | `~/.cache/trova/`, or the folder in `TROVA_HOME` |
105
105
  | Models | qmd's model cache, `~/.cache/qmd/models/` |
106
106
 
107
+ ## Update and uninstall
108
+
109
+ Update to the latest release:
110
+
111
+ ```bash
112
+ npm install -g trova-cli@latest
113
+ ```
114
+
115
+ To uninstall, remove the package, then delete the index in `~/.cache/trova/` (or the folder in `TROVA_HOME`). The models are in qmd's model cache, `~/.cache/qmd/models/`; delete them too, unless you also use qmd itself, which shares that folder.
116
+
117
+ ```bash
118
+ npm uninstall -g trova-cli
119
+ ```
120
+
107
121
  ## Acknowledgements
108
122
 
109
123
  `trova` is built on [qmd](https://github.com/tobi/qmd) by Tobi Lütke, which does the indexing, the keyword and vector search, and the model handling. qmd is MIT-licensed and installs as a dependency. `trova` adds the block-level index, related notes, typo rescue, the daemon, the HTTP API and the MCP server on top of it.
package/dist/cli.js CHANGED
@@ -2395,23 +2395,77 @@ var Jobs = class {
2395
2395
  };
2396
2396
 
2397
2397
  // src/paths.ts
2398
- import { chmodSync, existsSync as existsSync3, mkdirSync as mkdirSync3, readFileSync as readFileSync3, renameSync, rmSync as rmSync2, writeFileSync as writeFileSync3 } from "node:fs";
2398
+ import { existsSync as existsSync3, mkdirSync as mkdirSync3, readFileSync as readFileSync3, renameSync, rmSync as rmSync2, writeFileSync as writeFileSync3 } from "node:fs";
2399
2399
  import { homedir } from "node:os";
2400
2400
  import { join as join4 } from "node:path";
2401
+
2402
+ // package.json
2403
+ var package_default = {
2404
+ name: "trova-cli",
2405
+ version: "0.1.1",
2406
+ description: "Local keyword and semantic search for Markdown notes: a command-line tool, an HTTP API and an MCP server, on top of qmd",
2407
+ keywords: [
2408
+ "search",
2409
+ "semantic-search",
2410
+ "markdown",
2411
+ "notes",
2412
+ "obsidian",
2413
+ "mcp",
2414
+ "cli",
2415
+ "qmd",
2416
+ "local-first"
2417
+ ],
2418
+ license: "MIT",
2419
+ author: "Bimal",
2420
+ homepage: "https://github.com/ibimal/trova/tree/main/packages/engine#readme",
2421
+ repository: {
2422
+ type: "git",
2423
+ url: "git+https://github.com/ibimal/trova.git",
2424
+ directory: "packages/engine"
2425
+ },
2426
+ bugs: {
2427
+ url: "https://github.com/ibimal/trova/issues"
2428
+ },
2429
+ type: "module",
2430
+ bin: {
2431
+ trova: "bin/trova"
2432
+ },
2433
+ files: [
2434
+ "bin",
2435
+ "dist"
2436
+ ],
2437
+ engines: {
2438
+ node: ">=22.0.0"
2439
+ },
2440
+ scripts: {
2441
+ build: "tsc -p . --noEmit && node build.mjs"
2442
+ },
2443
+ devDependencies: {
2444
+ "@trova/contract": "*",
2445
+ "@types/better-sqlite3": "^9.6.0",
2446
+ "@types/picomatch": "^4.0.3"
2447
+ },
2448
+ dependencies: {
2449
+ "@modelcontextprotocol/sdk": "^1.32.2",
2450
+ "@tobilu/qmd": "2.9.0",
2451
+ "better-sqlite3": "^13.2.0",
2452
+ fflate: "^0.8.3",
2453
+ "pdfjs-dist": "^6.5.438",
2454
+ picomatch: "^4.0.7",
2455
+ "sqlite-vec": "^0.1.9",
2456
+ yaml: "^2.9.1"
2457
+ }
2458
+ };
2459
+
2460
+ // src/paths.ts
2401
2461
  var ENGINE_NAME = "trova";
2402
- var ENGINE_VERSION = "0.1.0";
2462
+ var ENGINE_VERSION = package_default.version;
2403
2463
  var DEFAULT_HOME = join4(homedir(), ".cache", "trova");
2404
2464
  function trovaHome() {
2405
2465
  return process.env.TROVA_HOME || DEFAULT_HOME;
2406
2466
  }
2407
2467
  function dataPaths(home = trovaHome()) {
2408
2468
  mkdirSync3(home, { recursive: true, mode: 448 });
2409
- if (home === DEFAULT_HOME) {
2410
- try {
2411
- chmodSync(home, 448);
2412
- } catch {
2413
- }
2414
- }
2415
2469
  mkdirSync3(join4(home, "logs"), { recursive: true, mode: 448 });
2416
2470
  mkdirSync3(join4(home, "attachments"), { recursive: true, mode: 448 });
2417
2471
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trova-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Local keyword and semantic search for Markdown notes: a command-line tool, an HTTP API and an MCP server, on top of qmd",
5
5
  "keywords": [
6
6
  "search",