multi-agents-cli 1.0.97 → 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 +18 -4
- package/package.json +1 -1
package/core/workflow/agent.js
CHANGED
|
@@ -980,10 +980,11 @@ const main = async () => {
|
|
|
980
980
|
...agentOptions.map(a => {
|
|
981
981
|
const desc = dim(` ${AGENT_DESCRIPTIONS[project]?.[a] || ''}`);
|
|
982
982
|
const completed = completedAgents.includes(a);
|
|
983
|
-
const
|
|
984
|
-
const
|
|
985
|
-
const
|
|
986
|
-
const
|
|
983
|
+
const isActive = tracking?.[project]?.[a]?.status === 'ACTIVE';
|
|
984
|
+
const isNext = a === recommendedAgent && !isActive;
|
|
985
|
+
const indicator = completed ? green('[✓]') : isActive ? yellow('[▶]') : isNext ? cyan(' → ') : dim('[ ]');
|
|
986
|
+
const label = completed ? dim(a) : isActive ? yellow(bold(a)) : isNext ? bold(a) : a;
|
|
987
|
+
const tag = isActive ? yellow(' ← in progress') : isNext ? cyan(completedAgents.length === 0 ? ' ← start here' : ' ← next step') : '';
|
|
987
988
|
return { label: `${indicator} ${label}${tag}${desc}` };
|
|
988
989
|
}),
|
|
989
990
|
{ label: dim('← back to scope selection') },
|
|
@@ -1388,6 +1389,19 @@ const main = async () => {
|
|
|
1388
1389
|
|
|
1389
1390
|
console.log(` ${green('✓')} Backend/INIT worktree created: worktrees/${beWorktreeName}`);
|
|
1390
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
|
+
|
|
1391
1405
|
// Open backend IDE window
|
|
1392
1406
|
const beIdeOpened = openIDE(beWorktreePath);
|
|
1393
1407
|
if (!beIdeOpened) console.log(` ${yellow('!')} Could not open IDE for backend — open manually at: ${dim(beWorktreePath)}`);
|
package/package.json
CHANGED