multi-agents-cli 1.0.98 → 1.0.99
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 +13 -0
- package/package.json +1 -1
package/core/workflow/agent.js
CHANGED
|
@@ -1389,6 +1389,19 @@ const main = async () => {
|
|
|
1389
1389
|
|
|
1390
1390
|
console.log(` ${green('✓')} Backend/INIT worktree created: worktrees/${beWorktreeName}`);
|
|
1391
1391
|
|
|
1392
|
+
// BUILD_STATE.md entry
|
|
1393
|
+
const beBuildStatePath = path.join(ROOT, 'BUILD_STATE.md');
|
|
1394
|
+
if (fs.existsSync(beBuildStatePath)) {
|
|
1395
|
+
const beDate = new Date().toISOString().split('T')[0];
|
|
1396
|
+
const beLogEntry = `| ${beDate} | INIT | backend | ${beTask} | IN PROGRESS | ${beBranchName} |\n`;
|
|
1397
|
+
fs.appendFileSync(beBuildStatePath, beLogEntry, 'utf8');
|
|
1398
|
+
try {
|
|
1399
|
+
execSync('git add BUILD_STATE.md', { cwd: ROOT, stdio: 'pipe' });
|
|
1400
|
+
execSync(`git commit --no-verify -m "build: INIT task started on backend [${beBranchName}]"`, { cwd: ROOT, stdio: 'pipe' });
|
|
1401
|
+
console.log(` ${green('✓')} BUILD_STATE.md updated`);
|
|
1402
|
+
} catch {}
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1392
1405
|
// Open backend IDE window
|
|
1393
1406
|
const beIdeOpened = openIDE(beWorktreePath);
|
|
1394
1407
|
if (!beIdeOpened) console.log(` ${yellow('!')} Could not open IDE for backend — open manually at: ${dim(beWorktreePath)}`);
|
package/package.json
CHANGED