uwonbot 1.2.9 → 1.3.0
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 +5 -5
package/package.json
CHANGED
package/src/agent.js
CHANGED
|
@@ -590,17 +590,17 @@ async function handleCommand(msg) {
|
|
|
590
590
|
}
|
|
591
591
|
|
|
592
592
|
async function openWebAssistant(assistantId) {
|
|
593
|
-
const chatUrl = `${WEB_APP_URL}/assistant/live?id=${assistantId}`;
|
|
593
|
+
const chatUrl = `${WEB_APP_URL}/assistant/live?id=${assistantId}&autostart=1`;
|
|
594
594
|
const camUrl = `${WEB_APP_URL}/camera-control`;
|
|
595
595
|
try {
|
|
596
596
|
if (platform === 'darwin') {
|
|
597
|
-
await execAsync(`open -na "Google Chrome" --args --new-window --window-size=
|
|
597
|
+
await execAsync(`open -na "Google Chrome" --args --new-window --window-size=260,380 --window-position=1100,150 "${chatUrl}" 2>/dev/null || open "${chatUrl}"`);
|
|
598
598
|
await new Promise(r => setTimeout(r, 800));
|
|
599
|
-
await execAsync(`open -na "Google Chrome" --args --new-window --window-size=
|
|
599
|
+
await execAsync(`open -na "Google Chrome" --args --new-window --window-size=320,260 --window-position=760,200 "${camUrl}" 2>/dev/null || open "${camUrl}"`);
|
|
600
600
|
} else if (platform === 'win32') {
|
|
601
|
-
await execAsync(`start chrome --new-window --window-size=
|
|
601
|
+
await execAsync(`start chrome --new-window --window-size=260,380 --window-position=1100,150 "${chatUrl}" 2>nul || start "" "${chatUrl}"`);
|
|
602
602
|
await new Promise(r => setTimeout(r, 800));
|
|
603
|
-
await execAsync(`start chrome --new-window --window-size=
|
|
603
|
+
await execAsync(`start chrome --new-window --window-size=320,260 --window-position=760,200 "${camUrl}" 2>nul || start "" "${camUrl}"`);
|
|
604
604
|
} else {
|
|
605
605
|
await execAsync(`google-chrome --new-window "${chatUrl}" 2>/dev/null || xdg-open "${chatUrl}"`);
|
|
606
606
|
await new Promise(r => setTimeout(r, 800));
|