From fcfbcd1b499596fffe44af31a440bd7cbc6654ea Mon Sep 17 00:00:00 2001 From: Scott Jennings Date: Sun, 7 Dec 2025 16:46:57 -0600 Subject: [PATCH] fix: resolve core module installation path lookup The core module lives in src/core, not src/modules like other modules. Added special handling in findModuleSource() to correctly locate the core module using getSourcePath('core') instead of falling through to the default src/modules search path. --- tools/cli/installers/lib/modules/manager.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/cli/installers/lib/modules/manager.js b/tools/cli/installers/lib/modules/manager.js index 79fd183d..31fc2fd2 100644 --- a/tools/cli/installers/lib/modules/manager.js +++ b/tools/cli/installers/lib/modules/manager.js @@ -300,6 +300,15 @@ class ModuleManager { * @returns {string|null} Path to the module source or null if not found */ async findModuleSource(moduleName) { + // Special handling for core module - it's in src/core not src/modules + if (moduleName === 'core') { + const corePath = getSourcePath('core'); + if (await fs.pathExists(corePath)) { + return corePath; + } + return null; + } + const projectRoot = getProjectRoot(); // First, check src/modules