@kitelev/exocortex-cli 16.240.17 → 16.240.19

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 +13 -0
  2. package/dist/index.js +259 -259
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -217,6 +217,19 @@ npx @kitelev/exocortex-cli query "CONSTRUCT { ?s ?p ?o } WHERE { ?s ?p ?o }" \
217
217
 
218
218
  Build or refresh the persistent triple cache used by `--use-cache` consumers. The cache lives at `<vault>/.exocortex/cache/triples.json`.
219
219
 
220
+ **Validity and refresh (#4263).** The cache is keyed per file: it stores the mtime, the
221
+ size and the triples of every indexed `.md`. A `--use-cache` command compares that manifest
222
+ with a stat-walk of the vault, so an add / edit / delete anywhere under `assetspaces/**` is
223
+ detected (the vault root directory's mtime is no longer consulted). A small change is
224
+ refreshed incrementally — only the changed files and the files that refer to an added,
225
+ removed or alias-changed target are re-parsed, and the inferred layer `index` materialized
226
+ is recomputed when a touched file feeds an inference engine (class / superclass / type /
227
+ prototype), otherwise kept — while a legacy or corrupt cache, a change to a TBox-form asset
228
+ (`prefix__Name` label or alias), a FileSpace declaration change or a diff above half the
229
+ vault falls back to a full rebuild. The cache file is written atomically, so concurrent
230
+ commands never read a torn file. `index --force` always rebuilds; `query` reports
231
+ "♻️ Cache refreshed incrementally" on a delta and "🚀 Cache hit!" on a hit.
232
+
220
233
  ```bash
221
234
  npx @kitelev/exocortex-cli index --vault ~/vault --stats
222
235
  ```