kiosapi 0.1.10 → 0.1.11
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/commands.js +5 -0
- package/package.json +1 -1
package/dist/commands.js
CHANGED
|
@@ -705,10 +705,15 @@ export async function cmdInit() {
|
|
|
705
705
|
const otoRaw = (await prompt('Auto-approve semua tool secara default? (y/t, Enter = t): '))
|
|
706
706
|
.trim()
|
|
707
707
|
.toLowerCase();
|
|
708
|
+
const stepsRaw = (await prompt('Batas langkah agen per sesi? (angka, Enter = 50): ')).trim();
|
|
709
|
+
const maxSteps = stepsRaw ? Number.parseInt(stepsRaw, 10) || 50 : undefined;
|
|
710
|
+
const projectContext = (await prompt('Konteks proyek (Enter untuk kosongkan; dua baris kosong = selesai):\n')).trim() || undefined;
|
|
708
711
|
const config = {
|
|
709
712
|
...(chosenModel ? { model: chosenModel } : {}),
|
|
710
713
|
mode,
|
|
711
714
|
otomatis: otoRaw === 'y' || otoRaw === 'ya',
|
|
715
|
+
...(maxSteps && maxSteps !== 50 ? { maxSteps } : {}),
|
|
716
|
+
...(projectContext ? { projectContext } : {}),
|
|
712
717
|
};
|
|
713
718
|
const p = initProjectConfig(config);
|
|
714
719
|
console.log(green(`\n✓ ${p}`));
|