@wirecat/files-cli 0.3.0 → 0.5.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,32 @@
2
2
 
3
3
  Notable changes to `@wirecat/files-cli`. One section per version, newest first.
4
4
 
5
+ ## 0.5.0 — 30.11.2026
6
+
7
+ ### Fixed
8
+
9
+ - **An agent can open a note by the `ref` a search hit gave it.** Over MCP, `notes show` now takes `ref` in place of
10
+ `note`, as the show commands of cli-core already do. The command line keeps its plain argument. Built on
11
+ @wirecat/cli-core 3.5.1 (was 3.4.0), whose `takesRef` makes this possible.
12
+
13
+ ## 0.4.0 — 29.11.2026
14
+
15
+ ### Fixed
16
+
17
+ - **Built on cli-core 3.3.0** (was 3.2.0). files' commands, help and answers are the same; the changes in 3.3.0 are
18
+ in messengers, meetings and `search all`, which files does not have. Details in
19
+ [cli-core's changelog](https://github.com/WireCatLabs/cli-core/blob/main/CHANGELOG.md).
20
+
21
+ ### Security
22
+
23
+ - **Search by meaning no longer lets ONNX Runtime report to Microsoft** (cli-core 3.4.0, was 3.3.0). Microsoft's ONNX
24
+ Runtime runs the meaning models once a meaning model is downloaded (`wcat models download`, for example). Its usage
25
+ telemetry is on by default: on Linux and macOS it kept a device id and an event queue in
26
+ `~/.cache/Microsoft/DeveloperTools/.onnxruntime/` (macOS: `~/Library/Application
27
+ Support/Microsoft/DeveloperTools/.onnxruntime/`) and sent usage events to Microsoft. files now turns it off before
28
+ the runtime loads. A folder written before this release stays until you delete it. Measured before and after in
29
+ [cli-testing](https://github.com/WireCatLabs/cli-testing/blob/main/performance/search/onnx-telemetry/README.md).
30
+
5
31
  ## 0.3.0 — 29.11.2026
6
32
 
7
33
  ### Added
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.3.0\n")
12
+ process.stdout.write("0.5.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-O44TKRRN.js"]
29
+ const chunks = ["../bundle/program-FWKVEPTL.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.3.0";
228
+ var VERSION = "0.5.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-AQW3A7LB.js";
6
+ } from "./chunk-CRV763P4.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-O44TKRRN.js");
18
+ const { run } = await import("./program-FWKVEPTL.js");
19
19
  process.exitCode = await run(process.argv.slice(2));
20
20
  }
21
21
  stopCatching();
@@ -8,7 +8,7 @@ import {
8
8
  __name,
9
9
  __require,
10
10
  __toESM
11
- } from "./chunk-AQW3A7LB.js";
11
+ } from "./chunk-CRV763P4.js";
12
12
 
13
13
  // node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/identity.js
14
14
  var require_identity = __commonJS({
@@ -9845,7 +9845,7 @@ import { readFileSync as readFileSync5 } from "node:fs";
9845
9845
  import { CliError as CliError17 } from "@wirecat/cli-base";
9846
9846
  import { annotate as annotate2 } from "@wirecat/cli-base/commands";
9847
9847
  import { stepOf } from "@wirecat/cli-base/standards";
9848
- import { contextEvidenceFingerprint, LOCAL_READ, LOCAL_WRITE as LOCAL_WRITE2, queryTerms, termField, withQuery } from "@wirecat/cli-core";
9848
+ import { contextEvidenceFingerprint, LOCAL_READ, LOCAL_WRITE as LOCAL_WRITE2, queryTerms, takesRef, termField, withQuery } from "@wirecat/cli-core";
9849
9849
  import { InvalidArgumentError as InvalidArgumentError2 } from "commander";
9850
9850
 
9851
9851
  // dist/options.js
@@ -10655,7 +10655,7 @@ var notesCommandDefinition = /* @__PURE__ */ __name((program, streams, env) => {
10655
10655
  return work(store);
10656
10656
  }), "withNotes");
10657
10657
  const notes = program.command("notes").description("notes from your folders, and notes you write here");
10658
- annotate2(notes.command("show"), { effects: LOCAL_READ, output: { entity: "note" } }).description("one note: its text, tags, what it links and what links it").addHelpText("after", SAVE_HELP).argument("<note>", "note:<id>, document:<id>, or a file in a configured folder").option("--max-chars <n>", `characters of the text at most, 1\u2013${MAX_CHARS}; the whole text without it`, between(1, MAX_CHARS, "--max-chars")).action(async (reference, options) => {
10658
+ annotate2(takesRef(notes.command("show")), { effects: LOCAL_READ, output: { entity: "note" } }).description("one note: its text, tags, what it links and what links it").addHelpText("after", SAVE_HELP).argument("<note>", "note:<id>, document:<id>, or a file in a configured folder").option("--max-chars <n>", `characters of the text at most, 1\u2013${MAX_CHARS}; the whole text without it`, between(1, MAX_CHARS, "--max-chars")).action(async (reference, options) => {
10659
10659
  const whole = await withNotes(async (store) => {
10660
10660
  const note = await noteOf(store, env, reference);
10661
10661
  const ref = note.ref;
@@ -2,7 +2,7 @@ import { readFileSync } from "node:fs";
2
2
  import { CliError } from "@wirecat/cli-base";
3
3
  import { annotate } from "@wirecat/cli-base/commands";
4
4
  import { stepOf } from "@wirecat/cli-base/standards";
5
- import { contextEvidenceFingerprint, LOCAL_READ, LOCAL_WRITE, queryTerms, termField, withQuery, } from "@wirecat/cli-core";
5
+ import { contextEvidenceFingerprint, LOCAL_READ, LOCAL_WRITE, queryTerms, takesRef, termField, withQuery, } from "@wirecat/cli-core";
6
6
  import { InvalidArgumentError } from "commander";
7
7
  import { answers, itemAnswer, listAnswer, withStore } from "../answer.js";
8
8
  import { isMcpRun } from "../author.js";
@@ -99,7 +99,8 @@ const notesCommandDefinition = (program, streams, env) => {
99
99
  return work(store);
100
100
  });
101
101
  const notes = program.command("notes").description("notes from your folders, and notes you write here");
102
- annotate(notes.command("show"), { effects: LOCAL_READ, output: { entity: "note" } })
102
+ // Over MCP an agent passes the reference a search hit gave as `ref`, as it does to cli-core's show commands.
103
+ annotate(takesRef(notes.command("show")), { effects: LOCAL_READ, output: { entity: "note" } })
103
104
  .description("one note: its text, tags, what it links and what links it")
104
105
  .addHelpText("after", SAVE_HELP)
105
106
  .argument("<note>", "note:<id>, document:<id>, or a file in a configured folder")
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = "0.3.0";
1
+ export const VERSION = "0.5.0";
2
2
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirecat/files-cli",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "Notes folders, Obsidian vaults, PDFs and transcripts for your AI agents, in the local store",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Viacheslav Ptsarev",
@@ -60,7 +60,7 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "@wirecat/cli-base": "2.1.0",
63
- "@wirecat/cli-core": "3.2.0",
63
+ "@wirecat/cli-core": "3.5.1",
64
64
  "commander": "15.0.0",
65
65
  "valibot": "1.5.0",
66
66
  "yaml": "2.9.1"