agentreel 0.2.2 → 0.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.
package/bin/agentreel.mjs CHANGED
@@ -138,7 +138,7 @@ function recordBrowser(url, task) {
138
138
  execFileSync(python, [script, url, outFile, task], {
139
139
  stdio: ["ignore", "inherit", "inherit"],
140
140
  env: browserEnv(),
141
- timeout: 120000,
141
+ timeout: 300000,
142
142
  });
143
143
  return outFile;
144
144
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentreel",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Turn your web apps and CLIs into viral clips",
5
5
  "bin": {
6
6
  "agentreel": "./bin/agentreel.mjs"
@@ -39,6 +39,11 @@ def generate_playwright_script(url, task):
39
39
  f"Navigate to the URL, wait for load, interact with key features — "
40
40
  f"click buttons, fill forms, scroll. Take about 20 seconds total. "
41
41
  f"Add page.wait_for_timeout(1500) between actions so the viewer can see each step. "
42
+ f"IMPORTANT rules for robust scripts: "
43
+ f"- Use timeout=5000 on every click/fill/action so failures are fast. "
44
+ f"- Use force=True on all click() calls to bypass overlapping labels/overlays. "
45
+ f"- Click visible labels and buttons, never hidden inputs (like sr-only radio buttons). "
46
+ f"- Wrap each action in try/except and continue on failure — the demo must finish. "
42
47
  f"Return ONLY the Python function code, no imports, no markdown fences."
43
48
  )
44
49