portable-agent-layer 0.27.0 → 0.27.1
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/package.json +1 -1
- package/src/cli/index.ts +5 -2
package/package.json
CHANGED
package/src/cli/index.ts
CHANGED
|
@@ -635,15 +635,18 @@ async function install(targets: Targets) {
|
|
|
635
635
|
// Fetch the Chromium build Playwright uses for PDF rendering (create-pdf skill).
|
|
636
636
|
// Idempotent — skipped if already cached. Skipped entirely under PAL_SKIP_BROWSER_INSTALL=1
|
|
637
637
|
// (used by tests to avoid a ~150MB download on every run).
|
|
638
|
+
// Uses `bun x` (not `bunx`) for Windows compatibility — bunx resolves unreliably under cmd.exe.
|
|
638
639
|
if (process.env.PAL_SKIP_BROWSER_INSTALL !== "1") {
|
|
639
640
|
log.info("Installing Playwright Chromium...");
|
|
640
|
-
const pw = spawnSync("
|
|
641
|
+
const pw = spawnSync("bun", ["x", "playwright", "install", "chromium"], {
|
|
641
642
|
cwd: pkg,
|
|
642
643
|
stdio: "inherit",
|
|
643
644
|
shell: true,
|
|
644
645
|
});
|
|
645
646
|
if (pw.status !== 0) {
|
|
646
|
-
log.warn(
|
|
647
|
+
log.warn(
|
|
648
|
+
`playwright install chromium failed (exit ${pw.status}) — create-pdf and consulting-report skills won't work. Retry manually: bun x playwright install chromium`
|
|
649
|
+
);
|
|
647
650
|
}
|
|
648
651
|
}
|
|
649
652
|
|