@polycode-projects/the-mechanical-code-talker 2.11.12 → 3.0.1

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.
@@ -48,7 +48,9 @@ function labelFromId(id) {
48
48
  * reader never sees a torn graph.json and a crash never destroys the old one. */
49
49
  async function atomicWriteJson(file, obj) {
50
50
  const tmp = `${file}.tmp-${process.pid}-${Math.random().toString(36).slice(2, 10)}`;
51
- await writeFile(tmp, JSON.stringify(obj));
51
+ // 2-space indent: a legitimate session upsert into a hand-formatted graph
52
+ // reflows to the same pretty shape a producer wrote, not one compact line.
53
+ await writeFile(tmp, JSON.stringify(obj, null, 2));
52
54
  await rename(tmp, file);
53
55
  }
54
56