multi-agents-cli 1.0.74 → 1.0.75
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 +19 -15
- package/package.json +1 -1
package/core/workflow/agent.js
CHANGED
|
@@ -1025,23 +1025,27 @@ const main = async () => {
|
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
1027
|
|
|
1028
|
-
// Contracts check
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1028
|
+
// Contracts check — only for relevant agents, optional for senior devs
|
|
1029
|
+
|
|
1030
|
+
const CONTRACTS_SEED_AGENTS = ['LOGIC', 'INIT', 'API'];
|
|
1031
|
+
if (CONTRACTS_SEED_AGENTS.includes(agent) && !contracts.hasContent) {
|
|
1032
|
+
console.log(`\n${yellow(' ℹ CONTRACTS.md is empty')} ${dim('- agent will populate it as contracts are discovered.')}\n`);
|
|
1033
|
+
const seedIdx = await arrowSelect(
|
|
1034
|
+
'Seed contracts now, or let the agent discover them?',
|
|
1035
|
+
[
|
|
1036
|
+
{ label: `${dim('→')} Let the agent handle it ${dim('(recommended)')}` },
|
|
1037
|
+
{ label: `${dim('→')} Seed contracts now ${dim('(for senior devs who know their interfaces)')}` },
|
|
1038
|
+
],
|
|
1039
|
+
rl
|
|
1040
|
+
);
|
|
1041
|
+
if (seedIdx === 1) {
|
|
1042
|
+
const manual = await ask(`\n ${bold('Describe your known interfaces, types, or DTOs')} ${dim('(free text)')}: \n → `);
|
|
1039
1043
|
if (manual.trim()) {
|
|
1040
|
-
contractsNote = `Contract structure provided:\n${manual.trim()}\
|
|
1041
|
-
console.log(dim(' ✓ Contract structure noted.\n'));
|
|
1042
|
-
} else {
|
|
1043
|
-
console.log(dim(' Agent will flag type assumptions as it builds.\n'));
|
|
1044
|
+
contractsNote = `Contract structure provided by user before session start:\n${manual.trim()}\nBootstrap CONTRACTS.md from this before implementing anything.`;
|
|
1045
|
+
console.log(dim('\n ✓ Contract structure noted - agent will bootstrap CONTRACTS.md first.\n'));
|
|
1044
1046
|
}
|
|
1047
|
+
} else {
|
|
1048
|
+
console.log(dim(' Agent will populate CONTRACTS.md as contracts are discovered.\n'));
|
|
1045
1049
|
}
|
|
1046
1050
|
}
|
|
1047
1051
|
|
package/package.json
CHANGED