hedgequantx 2.7.67 → 2.7.68
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/package.json +1 -1
- package/src/pages/ai-agents.js +4 -18
package/package.json
CHANGED
package/src/pages/ai-agents.js
CHANGED
|
@@ -232,27 +232,13 @@ const handleCliProxyConnection = async (provider, config, boxWidth) => {
|
|
|
232
232
|
await prompts.waitForEnter();
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
//
|
|
236
|
-
const spinner = ora({ text: 'SAVING CREDENTIALS...', color: 'yellow' }).start();
|
|
237
|
-
|
|
238
|
-
// Wait for child process to exit (it saves auth file before exiting)
|
|
235
|
+
// Kill login process - we don't need to wait for it
|
|
239
236
|
if (loginResult.childProcess) {
|
|
240
|
-
|
|
241
|
-
const timeout = setTimeout(() => {
|
|
242
|
-
try { loginResult.childProcess.kill(); } catch (e) { /* ignore */ }
|
|
243
|
-
resolve();
|
|
244
|
-
}, 15000);
|
|
245
|
-
loginResult.childProcess.on('exit', () => {
|
|
246
|
-
clearTimeout(timeout);
|
|
247
|
-
resolve();
|
|
248
|
-
});
|
|
249
|
-
});
|
|
237
|
+
try { loginResult.childProcess.kill(); } catch (e) { /* ignore */ }
|
|
250
238
|
}
|
|
251
239
|
|
|
252
|
-
//
|
|
253
|
-
spinner
|
|
254
|
-
await new Promise(r => setTimeout(r, 3000));
|
|
255
|
-
|
|
240
|
+
// Fetch models directly from CLIProxy API (models are already available)
|
|
241
|
+
const spinner = ora({ text: 'LOADING MODELS...', color: 'yellow' }).start();
|
|
256
242
|
const modelsResult = await cliproxy.fetchProviderModels(provider.id);
|
|
257
243
|
spinner.stop();
|
|
258
244
|
|