@pedropaulovc/playwright-core 1.59.0-next → 1.59.0-next.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/bin/reinstall_chrome_beta_linux.sh +0 -0
- package/bin/reinstall_chrome_beta_mac.sh +0 -0
- package/bin/reinstall_chrome_stable_linux.sh +0 -0
- package/bin/reinstall_chrome_stable_mac.sh +0 -0
- package/bin/reinstall_msedge_beta_linux.sh +0 -0
- package/bin/reinstall_msedge_beta_mac.sh +0 -0
- package/bin/reinstall_msedge_dev_linux.sh +0 -0
- package/bin/reinstall_msedge_dev_mac.sh +0 -0
- package/bin/reinstall_msedge_stable_linux.sh +0 -0
- package/bin/reinstall_msedge_stable_mac.sh +0 -0
- package/lib/cli/program.js +3 -5
- package/lib/client/page.js +0 -2
- package/lib/server/trace/viewer/traceExporter.js +413 -118
- package/lib/utilsBundle.js +3 -0
- package/lib/utilsBundleImpl/xdg-open +0 -0
- package/package.json +2 -2
- package/types/types.d.ts +327 -0
- package/lib/vite/traceViewer/assets/codeMirrorModule-DwzBH9eL.js +0 -32
- package/lib/vite/traceViewer/assets/defaultSettingsView-CdCX8877.js +0 -266
- package/lib/vite/traceViewer/index.f4OcrOqs.js +0 -2
- package/lib/vite/traceViewer/uiMode.qcahlSup.js +0 -5
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/cli/program.js
CHANGED
|
@@ -295,19 +295,17 @@ Examples:
|
|
|
295
295
|
|
|
296
296
|
$ show-trace
|
|
297
297
|
$ show-trace https://example.com/trace.zip`);
|
|
298
|
-
import_utilsBundle.program.command("export-trace <trace>").description("export trace to LLM-friendly markdown files").option("-o, --output <dir>", "output directory", "./trace-export").
|
|
298
|
+
import_utilsBundle.program.command("export-trace <trace>").description("export trace to LLM-friendly markdown files").option("-o, --output <dir>", "output directory", "./trace-export").action(async function(trace, options) {
|
|
299
299
|
const traceFile = import_path.default.resolve(trace);
|
|
300
300
|
await (0, import_traceExporter.exportTraceToMarkdown)(traceFile, {
|
|
301
|
-
outputDir: import_path.default.resolve(options.output)
|
|
302
|
-
includeAssets: options.assets
|
|
301
|
+
outputDir: import_path.default.resolve(options.output)
|
|
303
302
|
}).catch(logErrorAndExit);
|
|
304
303
|
console.log(`Trace exported to ${options.output}`);
|
|
305
304
|
}).addHelpText("afterAll", `
|
|
306
305
|
Examples:
|
|
307
306
|
|
|
308
307
|
$ export-trace trace.zip
|
|
309
|
-
$ export-trace trace.zip -o ./my-export
|
|
310
|
-
$ export-trace trace.zip --no-assets`);
|
|
308
|
+
$ export-trace trace.zip -o ./my-export`);
|
|
311
309
|
async function launchContext(options, extraOptions) {
|
|
312
310
|
validateOptions(options);
|
|
313
311
|
const browserType = lookupBrowserType(options);
|
package/lib/client/page.js
CHANGED
|
@@ -676,7 +676,6 @@ class Page extends import_channelOwner.ChannelOwner {
|
|
|
676
676
|
}
|
|
677
677
|
return result.pdf;
|
|
678
678
|
}
|
|
679
|
-
// @ts-expect-error agents are hidden
|
|
680
679
|
async agent(options = {}) {
|
|
681
680
|
const params = {
|
|
682
681
|
api: options.provider?.api,
|
|
@@ -691,7 +690,6 @@ class Page extends import_channelOwner.ChannelOwner {
|
|
|
691
690
|
maxTokens: options.limits?.maxTokens,
|
|
692
691
|
maxActions: options.limits?.maxActions,
|
|
693
692
|
maxActionRetries: options.limits?.maxActionRetries,
|
|
694
|
-
// @ts-expect-error runAgents is hidden
|
|
695
693
|
secrets: options.secrets ? Object.entries(options.secrets).map(([name, value]) => ({ name, value })) : void 0,
|
|
696
694
|
systemPrompt: options.systemPrompt
|
|
697
695
|
};
|