@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
- await removeManagedTree(trainingDiscardRoot(agentRoot));
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", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nowcrew/daemon",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
4
4
  "type": "module",
5
5
  "description": "crew daemon — 运行在用户机器:拉起/管理 agent 进程,注入 crew CLI,归一化 runtime 事件",
6
6
  "license": "Apache-2.0",