uwonbot 1.2.3 → 1.2.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/agent.js +7 -17
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uwonbot",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "Uwonbot AI Assistant CLI — Your AI controls your computer",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/agent.js CHANGED
@@ -589,10 +589,10 @@ async function openWebAssistant(assistantId) {
589
589
 
590
590
  async function activateAllAssistants(assistants) {
591
591
  const opened = [];
592
- for (const a of assistants) {
593
- await openWebAssistant(a.id);
594
- opened.push({ name: a.name, mode: 'web' });
595
- await new Promise(r => setTimeout(r, 500));
592
+ const first = assistants[0];
593
+ if (first) {
594
+ await openWebAssistant(first.id);
595
+ opened.push({ name: first.name, mode: 'web' });
596
596
  }
597
597
  return opened;
598
598
  }
@@ -708,19 +708,9 @@ export async function startAgent(port = 9876, options = {}) {
708
708
  return;
709
709
  }
710
710
 
711
- console.log(chalk.cyan(` → ${userAssistants.length}개 비서 모두 활성화`));
712
- const opened = await activateAllAssistants(userAssistants);
713
- opened.forEach(o => {
714
- console.log(chalk.gray(` ✓ ${o.name} (${o.mode})`));
715
- });
716
-
717
- const geminiKey = userAssistants.find(a => a.apiKey)?.apiKey;
718
- if (geminiKey) {
719
- await listenForName(userAssistants, geminiKey);
720
- } else {
721
- console.log(chalk.gray(' → 모든 비서가 활성 상태로 유지됩니다.'));
722
- console.log(chalk.gray(' (비서 이름을 말해 선택하려면 API 키가 필요합니다)'));
723
- }
711
+ const first = userAssistants[0];
712
+ console.log(chalk.green(` → ${first.name} 실행 (비서 ${userAssistants.length}개 중 첫 번째)`));
713
+ await openWebAssistant(first.id);
724
714
  });
725
715
  await clapListener.start();
726
716
  console.log('');