From 6ba6bf2c99f5236fdd65f8104851cb456ca97a16 Mon Sep 17 00:00:00 2001 From: Luo0oo Date: Sat, 4 Jul 2026 05:29:17 +1000 Subject: [PATCH] fix(TOOLS): declare graphology deps for MemoryGraph.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MemoryGraph.ts imports graphology, graphology-communities-louvain, and graphology-metrics but no package.json in the repo declares them, so fresh installers hit 'Cannot find module graphology' the first time they run: bun ~/.claude/LIFEOS/TOOLS/MemoryGraph.ts build Adds a parent-directory package.json at LifeOS/install/LifeOS/TOOLS/ so Bun's module resolver walks up and finds the deps. Sibling tool subdirs (TOOLS/llcli/, TOOLS/TokenXray/) keep their own scoped package.json; scripts sitting at TOOLS/ root inherit from here. Deliberate parent-scope location instead of moving MemoryGraph.ts into a TOOLS/MemoryGraph/ subdir — the move would break every existing consumer path including Pulse Observability's /api/memory/graph route and the install engine references. --- LifeOS/install/LifeOS/TOOLS/package.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 LifeOS/install/LifeOS/TOOLS/package.json diff --git a/LifeOS/install/LifeOS/TOOLS/package.json b/LifeOS/install/LifeOS/TOOLS/package.json new file mode 100644 index 000000000..869641c65 --- /dev/null +++ b/LifeOS/install/LifeOS/TOOLS/package.json @@ -0,0 +1,11 @@ +{ + "name": "lifeos-tools", + "private": true, + "type": "module", + "description": "Runtime deps for LIFEOS/TOOLS/*.ts scripts at this parent level (currently MemoryGraph.ts). Uses parent-directory scope deliberately, rather than a per-tool subdir, because moving MemoryGraph.ts into TOOLS/MemoryGraph/ breaks every existing consumer path (Pulse Observability's /api/memory/graph route, install engine references, sibling tooling). Nested tool subdirs (llcli/, TokenXray/) get their own package.json for isolation; scripts at TOOLS/ root inherit deps from here.", + "dependencies": { + "graphology": "^0.26.0", + "graphology-communities-louvain": "^2.0.2", + "graphology-metrics": "^2.4.0" + } +}