social-agent-cli 2.2.2 → 2.2.3

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/ai/runner.ts +4 -5
  2. package/package.json +1 -1
package/ai/runner.ts CHANGED
@@ -350,16 +350,15 @@ async function executeMapStep(
350
350
  if (selectors.length > 0) {
351
351
  for (const sel of selectors) {
352
352
  try {
353
- // Event listener'ı ÖNCE kur
354
353
  const fileChooserPromise = page.waitForEvent("filechooser", { timeout: 5000 });
355
- // SONRA butona tıkla
356
- await page.click(sel);
357
- // fileChooser'ı yakala ve dosyayı set et
354
+ await page.click(sel).catch(() => {});
358
355
  const fileChooser = await fileChooserPromise;
359
356
  await fileChooser.setFiles(filePath);
360
357
  uploaded = true;
361
358
  break;
362
- } catch {}
359
+ } catch {
360
+ // fileChooser timeout veya click hatası - sonraki selector'ı dene
361
+ }
363
362
  }
364
363
  }
365
364
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "social-agent-cli",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "AI-powered social media agent - free APIs + browser automation with self-healing selectors",
5
5
  "type": "module",
6
6
  "bin": {