agentreel 0.2.1 → 0.2.2

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
@@ -90,8 +90,10 @@ function ensureBrowserDeps() {
90
90
  });
91
91
 
92
92
  console.error(" Installing Chromium (one-time, ~150MB)...");
93
+ const browsersDir = join(venvDir, "playwright-browsers");
93
94
  execFileSync(venvPython, ["-m", "playwright", "install", "chromium"], {
94
95
  stdio: ["ignore", "inherit", "inherit"],
96
+ env: { ...process.env, PLAYWRIGHT_BROWSERS_PATH: browsersDir },
95
97
  });
96
98
  }
97
99
 
@@ -122,6 +124,11 @@ function extractHighlightsFromCast(castPath, context) {
122
124
 
123
125
  // ── Browser Recording ───────────────────────────────────────
124
126
 
127
+ function browserEnv() {
128
+ const browsersDir = join(ROOT, "scripts", ".venv", "playwright-browsers");
129
+ return { ...process.env, PLAYWRIGHT_BROWSERS_PATH: browsersDir };
130
+ }
131
+
125
132
  function recordBrowser(url, task) {
126
133
  const python = findPython();
127
134
  const script = join(ROOT, "scripts", "browser_demo.py");
@@ -130,7 +137,7 @@ function recordBrowser(url, task) {
130
137
  console.error(`Agent demoing browser app: ${url}`);
131
138
  execFileSync(python, [script, url, outFile, task], {
132
139
  stdio: ["ignore", "inherit", "inherit"],
133
- env: process.env,
140
+ env: browserEnv(),
134
141
  timeout: 120000,
135
142
  });
136
143
  return outFile;
@@ -143,7 +150,7 @@ function extractBrowserHighlights(videoPath, task) {
143
150
 
144
151
  execFileSync(python, [script, "--highlights", videoPath, outFile, task], {
145
152
  stdio: ["ignore", "inherit", "inherit"],
146
- env: process.env,
153
+ env: browserEnv(),
147
154
  });
148
155
  return outFile;
149
156
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentreel",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Turn your web apps and CLIs into viral clips",
5
5
  "bin": {
6
6
  "agentreel": "./bin/agentreel.mjs"