social-agent-cli 5.0.3 → 5.0.4
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/core/screenshot.ts +2 -1
- package/package.json +1 -1
package/core/screenshot.ts
CHANGED
|
@@ -14,7 +14,8 @@ if (!htmlPath || !outputPath) {
|
|
|
14
14
|
const url = htmlPath.startsWith("http") ? htmlPath : `file://${htmlPath}`;
|
|
15
15
|
|
|
16
16
|
try {
|
|
17
|
-
execSync(`agent-browser
|
|
17
|
+
execSync(`agent-browser viewport ${widthStr} ${heightStr}`, { stdio: "pipe", timeout: 5000 });
|
|
18
|
+
execSync(`agent-browser open "${url}"`, { stdio: "pipe", timeout: 15000 });
|
|
18
19
|
execSync(`agent-browser wait 2000`, { stdio: "pipe" });
|
|
19
20
|
execSync(`agent-browser screenshot "${outputPath}"`, { stdio: "pipe", timeout: 10000 });
|
|
20
21
|
console.log(outputPath);
|