multi-agents-cli 1.1.2 → 1.1.3
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/reset.js +15 -2
- package/package.json +1 -1
package/core/workflow/reset.js
CHANGED
|
@@ -233,12 +233,25 @@ const main = async () => {
|
|
|
233
233
|
console.log(` ${green('✓')} Git history removed`);
|
|
234
234
|
} catch {}
|
|
235
235
|
|
|
236
|
+
// ── Re-plant package.json ────────────────────────────────────────────
|
|
237
|
+
|
|
238
|
+
try {
|
|
239
|
+
const freshPkg = {
|
|
240
|
+
name: projectName.toLowerCase().replace(/\s+/g, '-'),
|
|
241
|
+
version: '1.0.0',
|
|
242
|
+
scripts: { init: 'multi-agents init' },
|
|
243
|
+
};
|
|
244
|
+
fs.writeFileSync(path.join(ROOT, 'package.json'), JSON.stringify(freshPkg, null, 2) + '\n', 'utf8');
|
|
245
|
+
console.log(' ' + green('\u2713') + ' package.json re-planted');
|
|
246
|
+
} catch { /* best-effort */ }
|
|
247
|
+
|
|
236
248
|
// ── Post-wipe instructions ────────────────────────────────────────────────────
|
|
237
249
|
|
|
238
250
|
separator();
|
|
239
251
|
console.log(`${green(bold(' Project wiped successfully.'))}\n`);
|
|
240
|
-
console.log(`
|
|
241
|
-
console.log(` ${cyan(
|
|
252
|
+
console.log(` Run to start fresh:\n`);
|
|
253
|
+
console.log(` ${cyan('npm run init')}
|
|
254
|
+
`);
|
|
242
255
|
separator();
|
|
243
256
|
|
|
244
257
|
process.exit(0);
|
package/package.json
CHANGED