ideacode 1.3.0 → 1.3.1
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/dist/repl.js +7 -0
- package/package.json +1 -1
package/dist/repl.js
CHANGED
|
@@ -703,6 +703,13 @@ export function Repl({ apiKey, cwd, onQuit }) {
|
|
|
703
703
|
const runParallelBatch = async (batch) => {
|
|
704
704
|
if (batch.length === 0)
|
|
705
705
|
return;
|
|
706
|
+
if (batch.length === 1) {
|
|
707
|
+
const planned = batch[0];
|
|
708
|
+
setLoadingLabel(`Running ${planned.toolName}…`);
|
|
709
|
+
const result = await runTool(planned.toolName, planned.toolArgs);
|
|
710
|
+
renderToolOutcome(planned, result);
|
|
711
|
+
return;
|
|
712
|
+
}
|
|
706
713
|
setLoadingLabel(`Running ${batch.length} tools in parallel…`);
|
|
707
714
|
const started = Date.now();
|
|
708
715
|
const groupedTools = Array.from(batch.reduce((acc, planned) => {
|