@ureck/alexandria 0.2.4 → 0.4.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/README.md +16 -11
- package/dist/{chunk-O7FDC2PB.js → chunk-ADHRHLX7.js} +1 -1
- package/dist/chunk-JPHL2JHE.js +148 -0
- package/dist/chunk-KB6KYZFQ.js +99 -0
- package/dist/chunk-WPNU64MA.js +328 -0
- package/dist/{chunk-UWAIMIG2.js → chunk-ZW7XY3EN.js} +12 -1
- package/dist/cli.js +221 -223
- package/dist/hooks/on-prompt.js +16 -7
- package/dist/hooks/on-session-start.js +5 -4
- package/dist/hooks/on-stop.js +4 -2
- package/dist/mcp/server.js +16 -5
- package/dist/viewer-FRJYOK3S.js +16 -0
- package/package.json +1 -1
- package/dist/chunk-CZM5NQZJ.js +0 -224
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
+
ensureAlias,
|
|
3
4
|
listMarkdownFiles,
|
|
4
5
|
parseNote
|
|
5
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JPHL2JHE.js";
|
|
6
7
|
import {
|
|
7
8
|
DIM,
|
|
8
9
|
MODEL_ID,
|
|
@@ -104,6 +105,11 @@ var VaultIndex = class _VaultIndex {
|
|
|
104
105
|
for (const rel of changed) {
|
|
105
106
|
const info = onDisk.get(rel);
|
|
106
107
|
try {
|
|
108
|
+
const managedRel = path.relative(this.vault.root, this.vault.managed).split(path.sep).join("/");
|
|
109
|
+
const inManaged = managedRel === "" || rel.startsWith(`${managedRel}/`);
|
|
110
|
+
if (inManaged && ensureAlias(info.abs)) {
|
|
111
|
+
info.mtime = fs.statSync(info.abs).mtimeMs;
|
|
112
|
+
}
|
|
107
113
|
const note = parseNote(this.vault.root, info.abs);
|
|
108
114
|
this.meta.notes[rel] = {
|
|
109
115
|
rel,
|
|
@@ -160,6 +166,11 @@ ${c.text}`),
|
|
|
160
166
|
}
|
|
161
167
|
this.rebuildLinks();
|
|
162
168
|
this.save();
|
|
169
|
+
try {
|
|
170
|
+
const { writeStaticGraph } = await import("./viewer-FRJYOK3S.js");
|
|
171
|
+
writeStaticGraph(this);
|
|
172
|
+
} catch {
|
|
173
|
+
}
|
|
163
174
|
return { changed: changed.length, removed: removed.length, embedded: this.emb !== null };
|
|
164
175
|
}
|
|
165
176
|
/** Wikilinks (título → nota) + links semánticos (similitud entre notas). */
|