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.
- package/package.json +1 -1
- package/src/agent.js +7 -17
package/package.json
CHANGED
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
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
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
|
-
|
|
712
|
-
|
|
713
|
-
|
|
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('');
|