multi-agents-cli 1.1.81 → 1.1.82
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/init.js +1 -1
- package/lib/questions-flow.js +17 -2
- package/package.json +1 -1
package/init.js
CHANGED
|
@@ -364,7 +364,6 @@ const main = async () => {
|
|
|
364
364
|
// ── Step machine + question runner ──────────────────────────────────────────
|
|
365
365
|
|
|
366
366
|
const steps = new StepMachine();
|
|
367
|
-
const stepDefs = buildStepDefs(IDE_CANDIDATES);
|
|
368
367
|
|
|
369
368
|
// Project name (free-text, outside the runner)
|
|
370
369
|
let projectName = '';
|
|
@@ -407,6 +406,7 @@ const main = async () => {
|
|
|
407
406
|
}
|
|
408
407
|
}
|
|
409
408
|
steps.blockEntries = blockEntries;
|
|
409
|
+
const stepDefs = buildStepDefs(IDE_CANDIDATES, blockOrder);
|
|
410
410
|
|
|
411
411
|
// Prefetch versions for active blocks in background
|
|
412
412
|
if (BLOCK_CONFIG.client.isActive) prefetchVersions(CLIENT_FRAMEWORKS);
|
package/lib/questions-flow.js
CHANGED
|
@@ -18,7 +18,8 @@ const { buildIDEOptions, verifyIDE, detectTerminal } = require('./detect');
|
|
|
18
18
|
|
|
19
19
|
const fwValue = (fw) => fw && typeof fw === 'object' ? fw.value : (typeof fw === 'string' && fw.length > 0 ? fw : '__custom__');
|
|
20
20
|
|
|
21
|
-
const buildStepDefs = (IDE_CANDIDATES) =>
|
|
21
|
+
const buildStepDefs = (IDE_CANDIDATES, blockOrder = ['client', 'backend']) => {
|
|
22
|
+
const clientSteps = [
|
|
22
23
|
|
|
23
24
|
// ── Step 0: Client framework ────────────────────────────────────────────────
|
|
24
25
|
{
|
|
@@ -109,6 +110,10 @@ const buildStepDefs = (IDE_CANDIDATES) => [
|
|
|
109
110
|
},
|
|
110
111
|
},
|
|
111
112
|
|
|
113
|
+
];
|
|
114
|
+
|
|
115
|
+
const backendSteps = [
|
|
116
|
+
|
|
112
117
|
// ── Step 6: Backend framework ────────────────────────────────────────────────
|
|
113
118
|
{
|
|
114
119
|
name: 'backendFw',
|
|
@@ -194,6 +199,10 @@ const buildStepDefs = (IDE_CANDIDATES) => [
|
|
|
194
199
|
},
|
|
195
200
|
},
|
|
196
201
|
|
|
202
|
+
];
|
|
203
|
+
|
|
204
|
+
const ideSteps = [
|
|
205
|
+
|
|
197
206
|
// ── Step 11: IDE ─────────────────────────────────────────────────────────────
|
|
198
207
|
{
|
|
199
208
|
name: 'ideChoice',
|
|
@@ -241,7 +250,13 @@ const buildStepDefs = (IDE_CANDIDATES) => [
|
|
|
241
250
|
}
|
|
242
251
|
},
|
|
243
252
|
},
|
|
244
|
-
];
|
|
253
|
+
];
|
|
254
|
+
|
|
255
|
+
return [
|
|
256
|
+
...blockOrder.flatMap(b => b === 'client' ? clientSteps : backendSteps),
|
|
257
|
+
...ideSteps,
|
|
258
|
+
];
|
|
259
|
+
};
|
|
245
260
|
|
|
246
261
|
// ── Exports ───────────────────────────────────────────────────────────────────
|
|
247
262
|
|
package/package.json
CHANGED