multi-agents-cli 1.1.92 → 1.1.93
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/core/workflow/agent.js +8 -3
- package/package.json +1 -1
package/core/workflow/agent.js
CHANGED
|
@@ -760,6 +760,7 @@ const main = async () => {
|
|
|
760
760
|
|
|
761
761
|
let project, agent, task, contractsNote;
|
|
762
762
|
let timestamp, sanitizedName, worktreeName, branchName, worktreePath;
|
|
763
|
+
let resumeMode = false;
|
|
763
764
|
let contextSection = '';
|
|
764
765
|
|
|
765
766
|
let userSeedingContracts = false;
|
|
@@ -937,6 +938,7 @@ const main = async () => {
|
|
|
937
938
|
agent = argAgent;
|
|
938
939
|
} else {
|
|
939
940
|
agentLoop: while (true) {
|
|
941
|
+
resumeMode = false;
|
|
940
942
|
console.log('');
|
|
941
943
|
|
|
942
944
|
// Select agent with back option
|
|
@@ -1091,9 +1093,9 @@ const main = async () => {
|
|
|
1091
1093
|
|
|
1092
1094
|
if (worktreeExists) {
|
|
1093
1095
|
if (completedChoice === 0) {
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1096
|
+
worktreePath = completedWorktreePath;
|
|
1097
|
+
branchName = completedSlot.branch;
|
|
1098
|
+
resumeMode = true;
|
|
1097
1099
|
}
|
|
1098
1100
|
if (completedChoice === 1) {
|
|
1099
1101
|
guards.clearTrackingSlot(tracking, project, agent, ROOT);
|
|
@@ -1504,6 +1506,7 @@ Mark each step complete. Only proceed to the task below when all are checked.
|
|
|
1504
1506
|
|
|
1505
1507
|
separator();
|
|
1506
1508
|
|
|
1509
|
+
if (!resumeMode) {
|
|
1507
1510
|
// ── Confirm ───────────────────────────────────────────────────────────────────
|
|
1508
1511
|
|
|
1509
1512
|
timestamp = Date.now();
|
|
@@ -1837,6 +1840,8 @@ ${excludedUrls}
|
|
|
1837
1840
|
}
|
|
1838
1841
|
}
|
|
1839
1842
|
|
|
1843
|
+
} // end if (!resumeMode)
|
|
1844
|
+
|
|
1840
1845
|
// ── Session start selection ─────────────────────────────────────────────────
|
|
1841
1846
|
|
|
1842
1847
|
separator();
|
package/package.json
CHANGED