u-foo 2.2.2 → 2.2.3
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.
- package/package.json +1 -1
- package/src/daemon/ops.js +0 -13
package/package.json
CHANGED
package/src/daemon/ops.js
CHANGED
|
@@ -1086,25 +1086,12 @@ function getRecoverableAgents(projectRoot, target = "") {
|
|
|
1086
1086
|
}
|
|
1087
1087
|
|
|
1088
1088
|
async function resumeAgents(projectRoot, target = "", processManager = null) {
|
|
1089
|
-
const filePath = getUfooPaths(projectRoot).agentsFile;
|
|
1090
1089
|
const { mode, data, recoverableEntries, skipped } = collectRecoverableAgents(projectRoot, target);
|
|
1091
1090
|
|
|
1092
1091
|
if (recoverableEntries.length === 0) {
|
|
1093
1092
|
return { ok: true, resumed: [], skipped };
|
|
1094
1093
|
}
|
|
1095
1094
|
|
|
1096
|
-
// Clear old nicknames to allow reuse.
|
|
1097
|
-
let updated = false;
|
|
1098
|
-
for (const item of recoverableEntries) {
|
|
1099
|
-
if (item.meta && item.meta.nickname) {
|
|
1100
|
-
data.agents[item.id] = { ...item.meta, nickname: "" };
|
|
1101
|
-
updated = true;
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
if (updated) {
|
|
1105
|
-
saveAgentsData(filePath, data);
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
1095
|
const resumed = [];
|
|
1109
1096
|
for (const item of recoverableEntries) {
|
|
1110
1097
|
const nickname = item.meta.nickname || "";
|