multi-agents-cli 1.1.42 → 1.1.43
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/restart.js +4 -1
- package/package.json +1 -1
package/core/workflow/restart.js
CHANGED
|
@@ -152,7 +152,10 @@ const wipeAgent = ({ scope, agent, branch, worktreePath }) => {
|
|
|
152
152
|
const scopeContents = fs.readdirSync(scopeDir).filter(f => f !== 'CLAUDE.md');
|
|
153
153
|
if (scopeContents.length > 0) {
|
|
154
154
|
try {
|
|
155
|
-
|
|
155
|
+
// Delete each entry individually - preserve CLAUDE.md
|
|
156
|
+
for (const entry of scopeContents) {
|
|
157
|
+
fs.rmSync(require('path').join(scopeDir, entry), { recursive: true, force: true });
|
|
158
|
+
}
|
|
156
159
|
require('child_process').execSync('git add -A', { cwd: ROOT, stdio: 'pipe' });
|
|
157
160
|
require('child_process').execSync(
|
|
158
161
|
`git commit --no-gpg-sign --no-verify -m "chore: remove ${scope} scope content for restart"`,
|
package/package.json
CHANGED