mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-30 21:49:18 +01:00
fix(skills): preserve preparation traces on the package path
Keep repository projection timing and verify both discovery and installed-version preparation without adding inventory work to the fast path. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
0bb36b2c6b
commit
7b90df0fad
2 files changed
+9
-4
No files matched your search
@@ -87,7 +87,7 @@ export function skillPackageRuntime(db: Db) {
|
||||
return [...files, ...generatedFiles];
|
||||
}
|
||||
async function materialize(version: StoredSkillVersion, directory: string) {
|
||||
const files = await projection(version);
|
||||
const files = await measureRunPhase("skills.repository.read", () => projection(version));
|
||||
const parent = path.dirname(directory);
|
||||
await ensureSkillCacheDirectory(parent, true);
|
||||
if (await measureRunPhase("skills.version.verify", () => verifySkillPackageDirectory(directory, files), { fileCount: files.length })) return directory;
|
||||
|
||||
Reference in new issue
Block a user