@proagentstore/cli 0.4.6 → 0.4.7
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.
|
@@ -693,7 +693,9 @@ export class LocalRunner {
|
|
|
693
693
|
* so the cloud can store it per step and the whole run can be replayed visually. */
|
|
694
694
|
async shot(page) {
|
|
695
695
|
try {
|
|
696
|
-
|
|
696
|
+
// scale:"css" avoids 2× retina bloat; a short timeout means a stuck page
|
|
697
|
+
// never delays the action (the screenshot is best-effort, not the point).
|
|
698
|
+
const buf = await page.screenshot({ type: "jpeg", quality: 45, scale: "css", timeout: 8_000 });
|
|
697
699
|
return buf.toString("base64");
|
|
698
700
|
}
|
|
699
701
|
catch {
|