@wirecat/files-cli 0.1.0 → 0.3.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,49 @@
2
2
 
3
3
  Notable changes to `@wirecat/files-cli`. One section per version, newest first.
4
4
 
5
+ ## 0.3.0 — 29.11.2026
6
+
7
+ ### Added
8
+
9
+ - **`notes show --max-chars <n>` reads only the start of a long note.** Without it the whole text comes, as before.
10
+ A cut answer says so in `missing` and `meta.complete: false`, and gets a `show.whole` next step that reads the whole
11
+ note. Over MCP it is `max_chars`.
12
+
13
+ ### Changed — may break callers
14
+
15
+ - **cli-core 3.2.0.** `files_tools_search` gives at most 5 matches, with full arguments for the first 2 and no
16
+ `output` schema (`schema: true` with an exact name gives it). A match shows `availability` only when the command is
17
+ refused or asks first. An agent's read of notes over MCP leaves out empty fields.
18
+
19
+ ## 0.2.0 — 29.11.2026
20
+
21
+ ### Added
22
+
23
+ - `files sync` reads scans and pictures by OCR: JPEG, PNG and WebP pictures in a notes folder, and a PDF with no text
24
+ in it once the optional package `@napi-rs/canvas` is installed next to files. The new setting `read_scans` chooses who reads them: `local` (the default, the `tesseract` program on this
25
+ computer), `anthropic`, `openai` or `off`. A picture becomes a note only when OCR finds text in it. A scan kept as
26
+ not read is read once tesseract is installed or another engine is chosen. The sync's report counts what OCR read,
27
+ and `--json` adds `ocr` to each folder and `scans` to the sync
28
+ ([Scans and pictures](docs/notes.md#scans-and-pictures)).
29
+ - Notes folders read `.rtf` and `.odp` files.
30
+ - `files import <folder>` reads the same documents as a notes folder: `.doc`, `.rtf`, `.odt`, `.odp`, `.pptx`,
31
+ `.epub`, `.csv`, `.tsv`, `.xlsx`, `.ods`, `.html` and `.htm` besides `.pdf` and `.docx`.
32
+ - `notes links show|add|clear`: which imported note file is about a person, as memo had it. `wcat`'s person context
33
+ shows that note.
34
+ - `doctor` checks the notes folders again, as memo's did: folders that overlap, a folder that is missing, and a folder
35
+ with no ID. Each is listed under `problems` with the command that fixes it, and `doctor` exits 1.
36
+
37
+ ### Fixed
38
+
39
+ - A link to a notes folder's sheet, slide deck, web page or picture by its name (`[[budget]]`) finds it, as a link to
40
+ a Markdown note does.
41
+ - [Files it can read](docs/notes.md#files-it-can-read) no longer says search shows PDF page numbers: a hit shows its
42
+ path and the line that holds the words.
43
+ - On Windows, `notes show`, `notes links` and the move of the old people-notes map found no note file: a path was
44
+ compared with `/`, so every file was "in no configured folder of notes".
45
+ - `doctor` sees that two notes folders overlap also when one of them is missing from the disk and its path runs
46
+ through a link, as `/var` does on macOS.
47
+
5
48
  ## 0.1.0 — 28.11.2026
6
49
 
7
50
  ### Added
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # files: your notes folders and documents for AI agents
2
2
 
3
3
  The WireCat CLI for the files on your computer: folders of Markdown notes, Obsidian vaults, PDF and Word documents,
4
- transcripts and recordings. It brings them into the shared local store, so your agent finds them and `wcat` reads them
4
+ spreadsheets, scans and pictures read by OCR, transcripts and recordings. It brings them into the shared local store, so your agent finds them and `wcat` reads them
5
5
  next to your messages and mail. Nothing leaves your computer, and your note files are only read.
6
6
 
7
7
  <p align="center">
@@ -11,7 +11,7 @@ next to your messages and mail. Nothing leaves your computer, and your note file
11
11
  </p>
12
12
 
13
13
  - **Notes folders stay in sync.** `files folders add <path>` once, then `files sync` reads only what changed.
14
- - **Search by words and by meaning.** `files search notes "budget"` finds notes, PDFs and transcripts.
14
+ - **Search by words and by meaning.** `files search notes "budget"` finds notes, PDFs, sheets, scans and transcripts.
15
15
  - **Your agent gets the same commands as tools.** An MCP server and an agent skill come with it.
16
16
  - **You decide what it may change.** Each command can be allowed, asked or denied.
17
17
 
@@ -82,6 +82,48 @@
82
82
  },
83
83
  "permission": "notes.export"
84
84
  },
85
+ {
86
+ "path": [
87
+ "notes",
88
+ "links",
89
+ "show"
90
+ ],
91
+ "summary": "show the note files about a person",
92
+ "effects": {
93
+ "remote": "none",
94
+ "local": "read"
95
+ },
96
+ "permission": "notes.links.show",
97
+ "entity": "person_note_links"
98
+ },
99
+ {
100
+ "path": [
101
+ "notes",
102
+ "links",
103
+ "add"
104
+ ],
105
+ "summary": "link an imported note file to a person",
106
+ "effects": {
107
+ "remote": "none",
108
+ "local": "write"
109
+ },
110
+ "permission": "notes.links.add",
111
+ "entity": "person_note_links"
112
+ },
113
+ {
114
+ "path": [
115
+ "notes",
116
+ "links",
117
+ "clear"
118
+ ],
119
+ "summary": "remove the owner's note-file links for a person",
120
+ "effects": {
121
+ "remote": "none",
122
+ "local": "write"
123
+ },
124
+ "permission": "notes.links.clear",
125
+ "entity": "person_note_links"
126
+ },
85
127
  {
86
128
  "path": [
87
129
  "folders",
package/dist/bin/files.js CHANGED
@@ -9,7 +9,7 @@ if (
9
9
  (words[0] === "--version" || words[0] === "-V") &&
10
10
  !Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
11
11
  ) {
12
- process.stdout.write("0.1.0\n")
12
+ process.stdout.write("0.3.0\n")
13
13
  } else {
14
14
  // Before the bundle compiles: the bundle's own call comes after its chunks.
15
15
  module.enableCompileCache()
@@ -26,7 +26,7 @@ if (
26
26
  : next(specifier, context),
27
27
  })
28
28
  }
29
- const chunks = ["../bundle/program-EN7Z757N.js"]
29
+ const chunks = ["../bundle/program-O44TKRRN.js"]
30
30
  const preload = () =>
31
31
  Promise.allSettled([
32
32
  ...chunks.map((chunk) => import(chunk)),
@@ -225,7 +225,7 @@ var REASONS = defineReasons([
225
225
  ]);
226
226
 
227
227
  // dist/version.js
228
- var VERSION = "0.1.0";
228
+ var VERSION = "0.3.0";
229
229
 
230
230
  // dist/identity.js
231
231
  var PACKAGE = "@wirecat/files-cli";
@@ -3,7 +3,7 @@ import { createRequire as __bundleRequire } from "node:module";
3
3
  const require = __bundleRequire(import.meta.url);
4
4
  import {
5
5
  DESKTOP
6
- } from "./chunk-GNDPV4HK.js";
6
+ } from "./chunk-AQW3A7LB.js";
7
7
 
8
8
  // dist/bin/files.js
9
9
  import { enableCompileCache } from "node:module";
@@ -15,7 +15,7 @@ var wcat = await wcatStart(DESKTOP);
15
15
  if (wcat.code !== void 0) {
16
16
  process.exitCode = wcat.code;
17
17
  } else {
18
- const { run } = await import("./program-EN7Z757N.js");
18
+ const { run } = await import("./program-O44TKRRN.js");
19
19
  process.exitCode = await run(process.argv.slice(2));
20
20
  }
21
21
  stopCatching();