@wirecat/files-cli 0.1.0 → 0.2.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 +29 -0
- package/README.md +2 -2
- package/contracts/wirecat.json +42 -0
- package/dist/bin/files.js +2 -2
- package/dist/bundle/{chunk-GNDPV4HK.js → chunk-3GCXH3WT.js} +1 -1
- package/dist/bundle/files.js +2 -2
- package/dist/bundle/{program-EN7Z757N.js → program-OBKXQ4VY.js} +498 -310
- package/dist/config.js +10 -1
- package/dist/doctor.js +33 -0
- package/dist/entities.js +1 -0
- package/dist/import/readers.js +10 -3
- package/dist/notes/bound.js +7 -5
- package/dist/notes/files.js +6 -0
- package/dist/notes/folders.js +6 -4
- package/dist/notes/import.js +67 -12
- package/dist/notes/links.js +3 -1
- package/dist/people/command.js +92 -0
- package/dist/program.js +4 -1
- package/dist/sources/read.js +2 -1
- package/dist/sync.js +35 -9
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/skills/files-cli/SKILL.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to `@wirecat/files-cli`. One section per version, newest first.
|
|
4
4
|
|
|
5
|
+
## 0.2.0 — 29.11.2026
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- `files sync` reads scans and pictures by OCR: JPEG, PNG and WebP pictures in a notes folder, and a PDF with no text
|
|
10
|
+
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
|
|
11
|
+
computer), `anthropic`, `openai` or `off`. A picture becomes a note only when OCR finds text in it. A scan kept as
|
|
12
|
+
not read is read once tesseract is installed or another engine is chosen. The sync's report counts what OCR read,
|
|
13
|
+
and `--json` adds `ocr` to each folder and `scans` to the sync
|
|
14
|
+
([Scans and pictures](docs/notes.md#scans-and-pictures)).
|
|
15
|
+
- Notes folders read `.rtf` and `.odp` files.
|
|
16
|
+
- `files import <folder>` reads the same documents as a notes folder: `.doc`, `.rtf`, `.odt`, `.odp`, `.pptx`,
|
|
17
|
+
`.epub`, `.csv`, `.tsv`, `.xlsx`, `.ods`, `.html` and `.htm` besides `.pdf` and `.docx`.
|
|
18
|
+
- `notes links show|add|clear`: which imported note file is about a person, as memo had it. `wcat`'s person context
|
|
19
|
+
shows that note.
|
|
20
|
+
- `doctor` checks the notes folders again, as memo's did: folders that overlap, a folder that is missing, and a folder
|
|
21
|
+
with no ID. Each is listed under `problems` with the command that fixes it, and `doctor` exits 1.
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- A link to a notes folder's sheet, slide deck, web page or picture by its name (`[[budget]]`) finds it, as a link to
|
|
26
|
+
a Markdown note does.
|
|
27
|
+
- [Files it can read](docs/notes.md#files-it-can-read) no longer says search shows PDF page numbers: a hit shows its
|
|
28
|
+
path and the line that holds the words.
|
|
29
|
+
- On Windows, `notes show`, `notes links` and the move of the old people-notes map found no note file: a path was
|
|
30
|
+
compared with `/`, so every file was "in no configured folder of notes".
|
|
31
|
+
- `doctor` sees that two notes folders overlap also when one of them is missing from the disk and its path runs
|
|
32
|
+
through a link, as `/var` does on macOS.
|
|
33
|
+
|
|
5
34
|
## 0.1.0 — 28.11.2026
|
|
6
35
|
|
|
7
36
|
### 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
|
|
package/contracts/wirecat.json
CHANGED
|
@@ -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.
|
|
12
|
+
process.stdout.write("0.2.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-
|
|
29
|
+
const chunks = ["../bundle/program-OBKXQ4VY.js"]
|
|
30
30
|
const preload = () =>
|
|
31
31
|
Promise.allSettled([
|
|
32
32
|
...chunks.map((chunk) => import(chunk)),
|
package/dist/bundle/files.js
CHANGED
|
@@ -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-
|
|
6
|
+
} from "./chunk-3GCXH3WT.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-
|
|
18
|
+
const { run } = await import("./program-OBKXQ4VY.js");
|
|
19
19
|
process.exitCode = await run(process.argv.slice(2));
|
|
20
20
|
}
|
|
21
21
|
stopCatching();
|