custom modules install after any non custom modules selected and after the core, manifest tracks custom modules separately to ensure always installed from the custom cache

This commit is contained in:
Brian Madison
2025-12-14 10:03:25 +08:00
parent 9fe79882b2
commit 7f742d4af6
12 changed files with 340 additions and 51 deletions

View File

@@ -144,12 +144,18 @@ class CustomModuleCache {
const sourceHash = await this.calculateHash(sourcePath);
const cacheHash = await this.calculateHash(cacheDir);
// Update manifest - don't store originalPath for source control friendliness
// Update manifest - don't store absolute paths for portability
// Clean metadata to remove absolute paths
const cleanMetadata = { ...metadata };
if (cleanMetadata.sourcePath) {
delete cleanMetadata.sourcePath;
}
cacheManifest[moduleId] = {
originalHash: sourceHash,
cacheHash: cacheHash,
cachedAt: new Date().toISOString(),
...metadata,
...cleanMetadata,
};
await this.updateCacheManifest(cacheManifest);