@liqngliz/browser-coding-agent 0.0.0-ci.8 → 0.0.0-stage

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.
Files changed (133) hide show
  1. package/README.md +2 -130
  2. package/package.json +4 -34
  3. package/LICENSE +0 -201
  4. package/app/.playwright/package/LICENSE +0 -202
  5. package/app/.playwright/package/NOTICE +0 -5
  6. package/app/.playwright/package/README.md +0 -3
  7. package/app/.playwright/package/ThirdPartyNotices.txt +0 -13
  8. package/app/.playwright/package/bin/install_media_pack.ps1 +0 -5
  9. package/app/.playwright/package/bin/install_webkit_wsl.ps1 +0 -33
  10. package/app/.playwright/package/bin/reinstall_chrome_beta_linux.sh +0 -42
  11. package/app/.playwright/package/bin/reinstall_chrome_beta_mac.sh +0 -13
  12. package/app/.playwright/package/bin/reinstall_chrome_beta_win.ps1 +0 -24
  13. package/app/.playwright/package/bin/reinstall_chrome_stable_linux.sh +0 -42
  14. package/app/.playwright/package/bin/reinstall_chrome_stable_mac.sh +0 -12
  15. package/app/.playwright/package/bin/reinstall_chrome_stable_win.ps1 +0 -24
  16. package/app/.playwright/package/bin/reinstall_msedge_beta_linux.sh +0 -48
  17. package/app/.playwright/package/bin/reinstall_msedge_beta_mac.sh +0 -11
  18. package/app/.playwright/package/bin/reinstall_msedge_beta_win.ps1 +0 -23
  19. package/app/.playwright/package/bin/reinstall_msedge_dev_linux.sh +0 -48
  20. package/app/.playwright/package/bin/reinstall_msedge_dev_mac.sh +0 -11
  21. package/app/.playwright/package/bin/reinstall_msedge_dev_win.ps1 +0 -23
  22. package/app/.playwright/package/bin/reinstall_msedge_stable_linux.sh +0 -48
  23. package/app/.playwright/package/bin/reinstall_msedge_stable_mac.sh +0 -11
  24. package/app/.playwright/package/bin/reinstall_msedge_stable_win.ps1 +0 -24
  25. package/app/.playwright/package/browsers.json +0 -52
  26. package/app/.playwright/package/cli.js +0 -21
  27. package/app/.playwright/package/index.d.ts +0 -17
  28. package/app/.playwright/package/index.js +0 -17
  29. package/app/.playwright/package/index.mjs +0 -28
  30. package/app/.playwright/package/lib/bootstrap.js +0 -88
  31. package/app/.playwright/package/lib/coreBundle.js +0 -75813
  32. package/app/.playwright/package/lib/entry/cliDaemon.js +0 -5
  33. package/app/.playwright/package/lib/entry/dashboardApp.js +0 -3
  34. package/app/.playwright/package/lib/entry/mcp.js +0 -10
  35. package/app/.playwright/package/lib/entry/oopBrowserDownload.js +0 -3
  36. package/app/.playwright/package/lib/package.js +0 -50
  37. package/app/.playwright/package/lib/server/chromium/appIcon.png +0 -0
  38. package/app/.playwright/package/lib/server/electron/loader.js +0 -116
  39. package/app/.playwright/package/lib/serverRegistry.js +0 -1939
  40. package/app/.playwright/package/lib/serverRegistry.js.LICENSE +0 -65
  41. package/app/.playwright/package/lib/tools/cli-client/channelSessions.js +0 -141
  42. package/app/.playwright/package/lib/tools/cli-client/cli.js +0 -6
  43. package/app/.playwright/package/lib/tools/cli-client/help.json +0 -721
  44. package/app/.playwright/package/lib/tools/cli-client/minimist.js +0 -128
  45. package/app/.playwright/package/lib/tools/cli-client/output.js +0 -351
  46. package/app/.playwright/package/lib/tools/cli-client/program.js +0 -418
  47. package/app/.playwright/package/lib/tools/cli-client/registry.js +0 -180
  48. package/app/.playwright/package/lib/tools/cli-client/session.js +0 -259
  49. package/app/.playwright/package/lib/tools/dashboard/appIcon.png +0 -0
  50. package/app/.playwright/package/lib/tools/skills/playwright-cli/SKILL.md +0 -425
  51. package/app/.playwright/package/lib/tools/skills/playwright-cli/references/element-attributes.md +0 -23
  52. package/app/.playwright/package/lib/tools/skills/playwright-cli/references/playwright-tests.md +0 -39
  53. package/app/.playwright/package/lib/tools/skills/playwright-cli/references/request-mocking.md +0 -87
  54. package/app/.playwright/package/lib/tools/skills/playwright-cli/references/running-code.md +0 -241
  55. package/app/.playwright/package/lib/tools/skills/playwright-cli/references/session-management.md +0 -225
  56. package/app/.playwright/package/lib/tools/skills/playwright-cli/references/storage-state.md +0 -275
  57. package/app/.playwright/package/lib/tools/skills/playwright-cli/references/test-generation.md +0 -433
  58. package/app/.playwright/package/lib/tools/skills/playwright-cli/references/tracing.md +0 -139
  59. package/app/.playwright/package/lib/tools/skills/playwright-cli/references/video-recording.md +0 -143
  60. package/app/.playwright/package/lib/tools/skills/playwright-component-testing/SKILL.md +0 -136
  61. package/app/.playwright/package/lib/tools/skills/playwright-component-testing/references/gallery-spec.md +0 -144
  62. package/app/.playwright/package/lib/tools/skills/playwright-component-testing/references/migration.md +0 -89
  63. package/app/.playwright/package/lib/tools/skills/playwright-component-testing/references/react.md +0 -69
  64. package/app/.playwright/package/lib/tools/skills/playwright-component-testing/references/typing.md +0 -173
  65. package/app/.playwright/package/lib/tools/skills/playwright-component-testing/references/vue.md +0 -77
  66. package/app/.playwright/package/lib/tools/skills/playwright-trace/SKILL.md +0 -174
  67. package/app/.playwright/package/lib/tools/utils/extension.js +0 -112
  68. package/app/.playwright/package/lib/tools/utils/socketConnection.js +0 -108
  69. package/app/.playwright/package/lib/utilsBundle.js +0 -85357
  70. package/app/.playwright/package/lib/utilsBundle.js.LICENSE +0 -1890
  71. package/app/.playwright/package/lib/vite/dashboard/assets/codeMirrorModule--QdMvsKi.css +0 -1
  72. package/app/.playwright/package/lib/vite/dashboard/assets/codeMirrorModule-CQ8RZGBm.js +0 -32
  73. package/app/.playwright/package/lib/vite/dashboard/assets/codicon-DCmgc-ay.ttf +0 -0
  74. package/app/.playwright/package/lib/vite/dashboard/assets/firefox-1bWoP6pv.svg +0 -1
  75. package/app/.playwright/package/lib/vite/dashboard/assets/firefox-beta-k3eOH_eK.svg +0 -1
  76. package/app/.playwright/package/lib/vite/dashboard/assets/firefox-nightly-Cp5nfeDT.svg +0 -1
  77. package/app/.playwright/package/lib/vite/dashboard/assets/index-AwgwcYie.css +0 -1
  78. package/app/.playwright/package/lib/vite/dashboard/assets/index-hRvO4yU2.js +0 -12
  79. package/app/.playwright/package/lib/vite/dashboard/assets/safari-na3_-uQk.svg +0 -1
  80. package/app/.playwright/package/lib/vite/dashboard/index.html +0 -29
  81. package/app/.playwright/package/lib/vite/dashboard/playwright-logo.svg +0 -24
  82. package/app/.playwright/package/lib/vite/htmlReport/index.html +0 -16
  83. package/app/.playwright/package/lib/vite/htmlReport/report.css +0 -2
  84. package/app/.playwright/package/lib/vite/htmlReport/report.js +0 -32
  85. package/app/.playwright/package/lib/vite/recorder/assets/codeMirrorModule--QdMvsKi.css +0 -1
  86. package/app/.playwright/package/lib/vite/recorder/assets/codeMirrorModule-CVQWJZAA.js +0 -32
  87. package/app/.playwright/package/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
  88. package/app/.playwright/package/lib/vite/recorder/assets/index-BZpYJZ-P.css +0 -1
  89. package/app/.playwright/package/lib/vite/recorder/assets/index-hrlLqLtq.js +0 -129
  90. package/app/.playwright/package/lib/vite/recorder/index.html +0 -29
  91. package/app/.playwright/package/lib/vite/recorder/playwright-logo.svg +0 -9
  92. package/app/.playwright/package/lib/vite/traceViewer/assets/codeMirrorModule-BbkfBe3n.js +0 -32
  93. package/app/.playwright/package/lib/vite/traceViewer/assets/defaultSettingsView-Ds6CBOo0.js +0 -182
  94. package/app/.playwright/package/lib/vite/traceViewer/assets/urlMatch-L3liM589.js +0 -1
  95. package/app/.playwright/package/lib/vite/traceViewer/assets/xtermModule-DywYcAf8.js +0 -7
  96. package/app/.playwright/package/lib/vite/traceViewer/codeMirrorModule.-QdMvsKi.css +0 -1
  97. package/app/.playwright/package/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
  98. package/app/.playwright/package/lib/vite/traceViewer/defaultSettingsView.Bqk9acqE.css +0 -1
  99. package/app/.playwright/package/lib/vite/traceViewer/index.B4cLoZK3.js +0 -1
  100. package/app/.playwright/package/lib/vite/traceViewer/index.B_TqY17P.css +0 -1
  101. package/app/.playwright/package/lib/vite/traceViewer/index.html +0 -44
  102. package/app/.playwright/package/lib/vite/traceViewer/manifest.webmanifest +0 -16
  103. package/app/.playwright/package/lib/vite/traceViewer/playwright-logo.svg +0 -9
  104. package/app/.playwright/package/lib/vite/traceViewer/snapshot.B_Jk1wbt.js +0 -1
  105. package/app/.playwright/package/lib/vite/traceViewer/snapshot.html +0 -10
  106. package/app/.playwright/package/lib/vite/traceViewer/sw.bundle.js +0 -4
  107. package/app/.playwright/package/lib/vite/traceViewer/uiMode.CU5KtEkS.js +0 -5
  108. package/app/.playwright/package/lib/vite/traceViewer/uiMode.CyMfwkXJ.css +0 -1
  109. package/app/.playwright/package/lib/vite/traceViewer/uiMode.html +0 -18
  110. package/app/.playwright/package/lib/vite/traceViewer/xtermModule.kHJ-D0s7.css +0 -1
  111. package/app/.playwright/package/lib/webp_codec.LICENSE +0 -173
  112. package/app/.playwright/package/lib/webp_codec.wasm +0 -0
  113. package/app/.playwright/package/lib/xdg-open +0 -1267
  114. package/app/.playwright/package/package.json +0 -34
  115. package/app/.playwright/package/types/protocol.d.ts +0 -24645
  116. package/app/.playwright/package/types/structs.d.ts +0 -52
  117. package/app/.playwright/package/types/types.d.ts +0 -26632
  118. package/app/BrowserCodingAgent.Api.deps.json +0 -109
  119. package/app/BrowserCodingAgent.Api.dll +0 -0
  120. package/app/BrowserCodingAgent.Api.pdb +0 -0
  121. package/app/BrowserCodingAgent.Api.runtimeconfig.json +0 -20
  122. package/app/BrowserCodingAgent.Api.staticwebassets.endpoints.json +0 -1
  123. package/app/Microsoft.AspNetCore.OpenApi.dll +0 -0
  124. package/app/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
  125. package/app/Microsoft.OpenApi.dll +0 -0
  126. package/app/Microsoft.Playwright.dll +0 -0
  127. package/app/Swashbuckle.AspNetCore.SwaggerUI.dll +0 -0
  128. package/app/appsettings.Development.json +0 -8
  129. package/app/appsettings.json +0 -16
  130. package/app/playwright.ps1 +0 -7
  131. package/app/replacements.json +0 -48
  132. package/app/web.config +0 -11
  133. package/browser-coding-agent.cjs +0 -99
@@ -1,5 +0,0 @@
1
- "use strict";
2
- var import_coreBundle = require("../coreBundle");
3
- const { program } = require("../utilsBundle");
4
- import_coreBundle.tools.decorateCliDaemonProgram(program);
5
- void program.parseAsync();
@@ -1,3 +0,0 @@
1
- "use strict";
2
- var import_coreBundle = require("../coreBundle");
3
- import_coreBundle.tools.openDashboardApp();
@@ -1,10 +0,0 @@
1
- "use strict";
2
- var import_coreBundle = require("../coreBundle");
3
- var import_package = require("../package");
4
- const { program } = require("../utilsBundle");
5
- const p = program.version("Version " + import_package.packageJSON.version).name("Playwright MCP");
6
- import_coreBundle.tools.decorateMCPCommand(p);
7
- program.parseAsync(process.argv).catch((e) => {
8
- console.error(e.message);
9
- import_coreBundle.utils.gracefullyProcessExitDoNotHang(1);
10
- });
@@ -1,3 +0,0 @@
1
- "use strict";
2
- var import_coreBundle = require("../coreBundle");
3
- import_coreBundle.registry.runOopDownloadBrowserMain();
@@ -1,50 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var package_exports = {};
30
- __export(package_exports, {
31
- binPath: () => binPath,
32
- libPath: () => libPath,
33
- packageJSON: () => packageJSON,
34
- packageRoot: () => packageRoot
35
- });
36
- module.exports = __toCommonJS(package_exports);
37
- var import_path = __toESM(require("path"));
38
- const packageRoot = import_path.default.join(__dirname, "..");
39
- const packageJSON = require(import_path.default.join(packageRoot, "package.json"));
40
- const binPath = import_path.default.join(packageRoot, "bin");
41
- function libPath(...parts) {
42
- return import_path.default.join(packageRoot, "lib", ...parts);
43
- }
44
- // Annotate the CommonJS export names for ESM import in node:
45
- 0 && (module.exports = {
46
- binPath,
47
- libPath,
48
- packageJSON,
49
- packageRoot
50
- });
@@ -1,116 +0,0 @@
1
- "use strict";
2
-
3
- // packages/playwright-core/src/server/electron/loader.ts
4
- var import_electron = require("electron");
5
-
6
- // packages/playwright-core/src/server/chromium/chromiumSwitches.ts
7
- var disabledFeatures = [
8
- // See https://github.com/microsoft/playwright/issues/14047
9
- "AvoidUnnecessaryBeforeUnloadCheckSync",
10
- "DestroyProfileOnBrowserClose",
11
- // See https://github.com/microsoft/playwright/pull/13854
12
- "DialMediaRouteProvider",
13
- "GlobalMediaControls",
14
- // See https://github.com/microsoft/playwright/pull/27605
15
- "HttpsUpgrades",
16
- // Hides the Lens feature in the URL address bar. Its not working in unofficial builds.
17
- "LensOverlay",
18
- // See https://github.com/microsoft/playwright/pull/8162
19
- "MediaRouter",
20
- // See https://github.com/microsoft/playwright/issues/28023
21
- "PaintHolding",
22
- // See https://github.com/microsoft/playwright/issues/32230
23
- "ThirdPartyStoragePartitioning",
24
- // Chromium 149 rejects re-applying the `origin` header on a redirect (as request interception
25
- // does) with net::ERR_INVALID_ARGUMENT. See https://github.com/microsoft/playwright/issues/41690
26
- "BlockOriginHeaderModificationOnRedirect",
27
- // See https://github.com/microsoft/playwright/issues/16126
28
- "Translate",
29
- // See https://issues.chromium.org/u/1/issues/435410220
30
- "AutoDeElevate",
31
- // Prevents downloading optimization hints on startup.
32
- "OptimizationHints",
33
- // Disables forced sign-in in Edge.
34
- "msForceBrowserSignIn",
35
- // Disables updating the preferred version in LaunchServices preferences on mac.
36
- "msEdgeUpdateLaunchServicesPreferredVersion"
37
- ].filter(Boolean);
38
- var chromiumSwitches = (options) => [
39
- "--disable-field-trial-config",
40
- // https://source.chromium.org/chromium/chromium/src/+/main:testing/variations/README.md
41
- "--disable-background-networking",
42
- "--disable-background-timer-throttling",
43
- "--disable-backgrounding-occluded-windows",
44
- "--disable-back-forward-cache",
45
- // Avoids surprises like main request not being intercepted during page.goBack().
46
- "--disable-breakpad",
47
- "--disable-client-side-phishing-detection",
48
- "--disable-component-extensions-with-background-pages",
49
- "--disable-component-update",
50
- // Avoids unneeded network activity after startup.
51
- "--no-default-browser-check",
52
- "--disable-default-apps",
53
- "--disable-dev-shm-usage",
54
- "--disable-edgeupdater",
55
- // Disables Edge-specific updater on mac.
56
- "--disable-extensions",
57
- "--disable-features=" + disabledFeatures.join(","),
58
- process.env.PLAYWRIGHT_LEGACY_SCREENSHOT ? "" : "--enable-features=CDPScreenshotNewSurface",
59
- "--allow-pre-commit-input",
60
- "--disable-hang-monitor",
61
- "--disable-ipc-flooding-protection",
62
- "--disable-popup-blocking",
63
- "--disable-prompt-on-repost",
64
- "--disable-renderer-backgrounding",
65
- "--disable-updater-scheduler",
66
- // Prevents Edge-specific updater from being launched when Edge is launched on mac.
67
- "--force-color-profile=srgb",
68
- "--metrics-recording-only",
69
- "--no-first-run",
70
- "--password-store=basic",
71
- "--use-mock-keychain",
72
- // See https://chromium-review.googlesource.com/c/chromium/src/+/2436773
73
- "--no-service-autorun",
74
- "--export-tagged-pdf",
75
- // https://chromium-review.googlesource.com/c/chromium/src/+/4853540
76
- "--disable-search-engine-choice-screen",
77
- // https://issues.chromium.org/41491762
78
- "--unsafely-disable-devtools-self-xss-warnings",
79
- // Edge can potentially restart on Windows (msRelaunchNoCompatLayer) which looses its file descriptors (stdout/stderr) and CDP (3/4). Disable until fixed upstream.
80
- "--edge-skip-compat-layer-relaunch",
81
- // This disables Chrome for Testing infobar that is visible in the persistent context.
82
- // The switch is ignored everywhere else, including Chromium/Chrome/Edge.
83
- "--disable-infobars",
84
- // Less annoying popups.
85
- "--disable-search-engine-choice-screen",
86
- // Prevents the "three dots" menu crash in IdentityManager::HasPrimaryAccount for ephemeral contexts.
87
- options?.android ? "" : "--disable-sync"
88
- ].filter(Boolean);
89
-
90
- // packages/playwright-core/src/server/electron/loader.ts
91
- process.argv.splice(1, process.argv.indexOf("--remote-debugging-port=0"));
92
- for (const arg of chromiumSwitches()) {
93
- const match = arg.match(/--([^=]*)=?(.*)/);
94
- import_electron.app.commandLine.appendSwitch(match[1], match[2]);
95
- }
96
- var originalWhenReady = import_electron.app.whenReady();
97
- var originalEmit = import_electron.app.emit.bind(import_electron.app);
98
- var readyEventArgs;
99
- import_electron.app.emit = (event, ...args) => {
100
- if (event === "ready") {
101
- readyEventArgs = args;
102
- return import_electron.app.listenerCount("ready") > 0;
103
- }
104
- return originalEmit(event, ...args);
105
- };
106
- var isReady = false;
107
- var whenReadyCallback;
108
- var whenReadyPromise = new Promise((f) => whenReadyCallback = f);
109
- import_electron.app.isReady = () => isReady;
110
- import_electron.app.whenReady = () => whenReadyPromise;
111
- globalThis.__playwright_run = async () => {
112
- const event = await originalWhenReady;
113
- isReady = true;
114
- whenReadyCallback(event);
115
- originalEmit("ready", ...readyEventArgs);
116
- };