yats-toolkit 0.8.2 → 0.8.3
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/package.json +1 -1
- package/src/watch.test.js +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yats-toolkit",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"description": "YATS — Yet Another Token Saver. One-command MCP server that indexes your codebase into a knowledge graph so AI agents (Claude, Cursor, Copilot) can search and navigate it without burning tokens.",
|
|
5
5
|
"author": "Franco Vinciarelli <vinciarellifranco@gmail.com>",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
package/src/watch.test.js
CHANGED
|
@@ -17,6 +17,16 @@ import { tmpdir } from "node:os";
|
|
|
17
17
|
import { parseNameStatus, applyDiff, acquireWatchLock, releaseWatchLock, watchLockPath } from "./watch.js";
|
|
18
18
|
import { mergeRepoConfig } from "./indexer.js";
|
|
19
19
|
|
|
20
|
+
// The watcher reports progress with console.log (`↻ Indexing: x`, `✓ Done: x`).
|
|
21
|
+
// Node's test runner uses the child process stdout channel to deliver
|
|
22
|
+
// serialized results, so raw text on stdout can corrupt that stream — seen in
|
|
23
|
+
// CI as "Unable to deserialize cloned data due to invalid or unsupported
|
|
24
|
+
// version" (an uncaughtException that fails the whole file). These tests
|
|
25
|
+
// assert on the HTTP calls the watcher makes, never on its logs: silence it.
|
|
26
|
+
console.log = () => {};
|
|
27
|
+
console.info = () => {};
|
|
28
|
+
console.warn = () => {};
|
|
29
|
+
|
|
20
30
|
function git(cwd, cmd) {
|
|
21
31
|
return execSync(`git ${cmd}`, { cwd, encoding: "utf-8", stdio: "pipe" }).trim();
|
|
22
32
|
}
|