multi-agents-cli 1.1.5 → 1.1.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.
- package/core/workflow/agent.js +7 -0
- package/package.json +1 -1
package/core/workflow/agent.js
CHANGED
|
@@ -1497,6 +1497,13 @@ Mark each step complete. Only proceed to the task below when all are checked.
|
|
|
1497
1497
|
});
|
|
1498
1498
|
console.log(` ${green('✓')} Worktree created: worktrees/${worktreeName}`);
|
|
1499
1499
|
} catch (err) {
|
|
1500
|
+
const msg = err.stderr?.toString() || err.message || '';
|
|
1501
|
+
if (msg.includes('not a git repository')) {
|
|
1502
|
+
console.error(`
|
|
1503
|
+
${red('✖')} Not a git repository. Run git init first, then npm run init.
|
|
1504
|
+
`);
|
|
1505
|
+
process.exit(1);
|
|
1506
|
+
}
|
|
1500
1507
|
console.log(` ${yellow('!')} Worktree may already exist - continuing.`);
|
|
1501
1508
|
}
|
|
1502
1509
|
|
package/package.json
CHANGED