@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.
@@ -1,8 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
+ ensureAlias,
3
4
  listMarkdownFiles,
4
5
  parseNote
5
- } from "./chunk-CZM5NQZJ.js";
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). */