@nowcrew/daemon 0.6.5 → 0.6.6
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.
|
@@ -352,7 +352,9 @@ const restoreTrainingRollback = async (agentRoot, ability) => {
|
|
|
352
352
|
|| catalog.rootCommit !== ability.rootCommit
|
|
353
353
|
|| catalog.artifactDigest !== ability.artifactDigest)
|
|
354
354
|
return null;
|
|
355
|
-
|
|
355
|
+
const discardRoot = trainingDiscardRoot(agentRoot);
|
|
356
|
+
await assertManagedTrainingTreeIfPresent(discardRoot, "ability_training_discard_invalid");
|
|
357
|
+
await removeManagedTree(discardRoot);
|
|
356
358
|
await writeTrainingSwitchJournal(agentRoot, { operation: "restore", phase: "prepared" });
|
|
357
359
|
await finishTrainingRestore(agentRoot);
|
|
358
360
|
dslog("ability.workspace.rollback_restored", "Previous Agent training directory restored locally", {
|