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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/agent.js +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uwonbot",
3
- "version": "1.2.9",
3
+ "version": "1.3.0",
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
@@ -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=320,520 --window-position=1000,100 "${chatUrl}" 2>/dev/null || open "${chatUrl}"`);
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=480,400 --window-position=480,150 "${camUrl}" 2>/dev/null || open "${camUrl}"`);
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=320,520 --window-position=1000,100 "${chatUrl}" 2>nul || start "" "${chatUrl}"`);
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=480,400 --window-position=480,150 "${camUrl}" 2>nul || start "" "${camUrl}"`);
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));