wormclaude 1.0.77 → 1.0.78
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/cli.js +14 -0
- package/dist/theme.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -100,6 +100,20 @@ if (_needLogin) {
|
|
|
100
100
|
config.model = _fresh.model;
|
|
101
101
|
if (!config.apiKey)
|
|
102
102
|
process.exit(0);
|
|
103
|
+
// Login akışı terminal girişini (stdin raw-mode) kirletiyor → TUI'de mesaj kutusuna yazı gitmiyor.
|
|
104
|
+
// Çözüm: temiz durumla OTOMATİK yeniden başlat (güncelleme akışıyla aynı desen). Kullanıcı elle restart yapmaz.
|
|
105
|
+
{
|
|
106
|
+
process.stdout.write('\n ✓ Giris yapildi, baslatiliyor...\n\n');
|
|
107
|
+
const { spawn } = await import('node:child_process');
|
|
108
|
+
const _cmd = process.platform === 'win32' ? 'wormclaude.cmd' : 'wormclaude';
|
|
109
|
+
const _child = spawn(_cmd, process.argv.slice(2), {
|
|
110
|
+
stdio: 'inherit', shell: true,
|
|
111
|
+
env: { ...process.env, WORMCLAUDE_SKIP_UPDATE: '1' },
|
|
112
|
+
});
|
|
113
|
+
_child.on('exit', (code) => process.exit(code ?? 0));
|
|
114
|
+
_child.on('error', () => { process.stdout.write(' Giris tamam. Lutfen "wormclaude" komutunu tekrar calistir.\n'); process.exit(0); });
|
|
115
|
+
await new Promise(() => { }); // çocuk süreci devralana kadar bekle (ana akışa düşme)
|
|
116
|
+
}
|
|
103
117
|
}
|
|
104
118
|
setToolConfig(config); // Agent/alt-agent araçları aynı config'i kullanır
|
|
105
119
|
const MAX_TURNS = Number(process.env.WORMCLAUDE_MAX_TURNS) || 50; // tur limiti
|
package/dist/theme.js
CHANGED