@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.
- package/README.md +2 -130
- package/package.json +4 -34
- package/LICENSE +0 -201
- package/app/.playwright/package/LICENSE +0 -202
- package/app/.playwright/package/NOTICE +0 -5
- package/app/.playwright/package/README.md +0 -3
- package/app/.playwright/package/ThirdPartyNotices.txt +0 -13
- package/app/.playwright/package/bin/install_media_pack.ps1 +0 -5
- package/app/.playwright/package/bin/install_webkit_wsl.ps1 +0 -33
- package/app/.playwright/package/bin/reinstall_chrome_beta_linux.sh +0 -42
- package/app/.playwright/package/bin/reinstall_chrome_beta_mac.sh +0 -13
- package/app/.playwright/package/bin/reinstall_chrome_beta_win.ps1 +0 -24
- package/app/.playwright/package/bin/reinstall_chrome_stable_linux.sh +0 -42
- package/app/.playwright/package/bin/reinstall_chrome_stable_mac.sh +0 -12
- package/app/.playwright/package/bin/reinstall_chrome_stable_win.ps1 +0 -24
- package/app/.playwright/package/bin/reinstall_msedge_beta_linux.sh +0 -48
- package/app/.playwright/package/bin/reinstall_msedge_beta_mac.sh +0 -11
- package/app/.playwright/package/bin/reinstall_msedge_beta_win.ps1 +0 -23
- package/app/.playwright/package/bin/reinstall_msedge_dev_linux.sh +0 -48
- package/app/.playwright/package/bin/reinstall_msedge_dev_mac.sh +0 -11
- package/app/.playwright/package/bin/reinstall_msedge_dev_win.ps1 +0 -23
- package/app/.playwright/package/bin/reinstall_msedge_stable_linux.sh +0 -48
- package/app/.playwright/package/bin/reinstall_msedge_stable_mac.sh +0 -11
- package/app/.playwright/package/bin/reinstall_msedge_stable_win.ps1 +0 -24
- package/app/.playwright/package/browsers.json +0 -52
- package/app/.playwright/package/cli.js +0 -21
- package/app/.playwright/package/index.d.ts +0 -17
- package/app/.playwright/package/index.js +0 -17
- package/app/.playwright/package/index.mjs +0 -28
- package/app/.playwright/package/lib/bootstrap.js +0 -88
- package/app/.playwright/package/lib/coreBundle.js +0 -75813
- package/app/.playwright/package/lib/entry/cliDaemon.js +0 -5
- package/app/.playwright/package/lib/entry/dashboardApp.js +0 -3
- package/app/.playwright/package/lib/entry/mcp.js +0 -10
- package/app/.playwright/package/lib/entry/oopBrowserDownload.js +0 -3
- package/app/.playwright/package/lib/package.js +0 -50
- package/app/.playwright/package/lib/server/chromium/appIcon.png +0 -0
- package/app/.playwright/package/lib/server/electron/loader.js +0 -116
- package/app/.playwright/package/lib/serverRegistry.js +0 -1939
- package/app/.playwright/package/lib/serverRegistry.js.LICENSE +0 -65
- package/app/.playwright/package/lib/tools/cli-client/channelSessions.js +0 -141
- package/app/.playwright/package/lib/tools/cli-client/cli.js +0 -6
- package/app/.playwright/package/lib/tools/cli-client/help.json +0 -721
- package/app/.playwright/package/lib/tools/cli-client/minimist.js +0 -128
- package/app/.playwright/package/lib/tools/cli-client/output.js +0 -351
- package/app/.playwright/package/lib/tools/cli-client/program.js +0 -418
- package/app/.playwright/package/lib/tools/cli-client/registry.js +0 -180
- package/app/.playwright/package/lib/tools/cli-client/session.js +0 -259
- package/app/.playwright/package/lib/tools/dashboard/appIcon.png +0 -0
- package/app/.playwright/package/lib/tools/skills/playwright-cli/SKILL.md +0 -425
- package/app/.playwright/package/lib/tools/skills/playwright-cli/references/element-attributes.md +0 -23
- package/app/.playwright/package/lib/tools/skills/playwright-cli/references/playwright-tests.md +0 -39
- package/app/.playwright/package/lib/tools/skills/playwright-cli/references/request-mocking.md +0 -87
- package/app/.playwright/package/lib/tools/skills/playwright-cli/references/running-code.md +0 -241
- package/app/.playwright/package/lib/tools/skills/playwright-cli/references/session-management.md +0 -225
- package/app/.playwright/package/lib/tools/skills/playwright-cli/references/storage-state.md +0 -275
- package/app/.playwright/package/lib/tools/skills/playwright-cli/references/test-generation.md +0 -433
- package/app/.playwright/package/lib/tools/skills/playwright-cli/references/tracing.md +0 -139
- package/app/.playwright/package/lib/tools/skills/playwright-cli/references/video-recording.md +0 -143
- package/app/.playwright/package/lib/tools/skills/playwright-component-testing/SKILL.md +0 -136
- package/app/.playwright/package/lib/tools/skills/playwright-component-testing/references/gallery-spec.md +0 -144
- package/app/.playwright/package/lib/tools/skills/playwright-component-testing/references/migration.md +0 -89
- package/app/.playwright/package/lib/tools/skills/playwright-component-testing/references/react.md +0 -69
- package/app/.playwright/package/lib/tools/skills/playwright-component-testing/references/typing.md +0 -173
- package/app/.playwright/package/lib/tools/skills/playwright-component-testing/references/vue.md +0 -77
- package/app/.playwright/package/lib/tools/skills/playwright-trace/SKILL.md +0 -174
- package/app/.playwright/package/lib/tools/utils/extension.js +0 -112
- package/app/.playwright/package/lib/tools/utils/socketConnection.js +0 -108
- package/app/.playwright/package/lib/utilsBundle.js +0 -85357
- package/app/.playwright/package/lib/utilsBundle.js.LICENSE +0 -1890
- package/app/.playwright/package/lib/vite/dashboard/assets/codeMirrorModule--QdMvsKi.css +0 -1
- package/app/.playwright/package/lib/vite/dashboard/assets/codeMirrorModule-CQ8RZGBm.js +0 -32
- package/app/.playwright/package/lib/vite/dashboard/assets/codicon-DCmgc-ay.ttf +0 -0
- package/app/.playwright/package/lib/vite/dashboard/assets/firefox-1bWoP6pv.svg +0 -1
- package/app/.playwright/package/lib/vite/dashboard/assets/firefox-beta-k3eOH_eK.svg +0 -1
- package/app/.playwright/package/lib/vite/dashboard/assets/firefox-nightly-Cp5nfeDT.svg +0 -1
- package/app/.playwright/package/lib/vite/dashboard/assets/index-AwgwcYie.css +0 -1
- package/app/.playwright/package/lib/vite/dashboard/assets/index-hRvO4yU2.js +0 -12
- package/app/.playwright/package/lib/vite/dashboard/assets/safari-na3_-uQk.svg +0 -1
- package/app/.playwright/package/lib/vite/dashboard/index.html +0 -29
- package/app/.playwright/package/lib/vite/dashboard/playwright-logo.svg +0 -24
- package/app/.playwright/package/lib/vite/htmlReport/index.html +0 -16
- package/app/.playwright/package/lib/vite/htmlReport/report.css +0 -2
- package/app/.playwright/package/lib/vite/htmlReport/report.js +0 -32
- package/app/.playwright/package/lib/vite/recorder/assets/codeMirrorModule--QdMvsKi.css +0 -1
- package/app/.playwright/package/lib/vite/recorder/assets/codeMirrorModule-CVQWJZAA.js +0 -32
- package/app/.playwright/package/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
- package/app/.playwright/package/lib/vite/recorder/assets/index-BZpYJZ-P.css +0 -1
- package/app/.playwright/package/lib/vite/recorder/assets/index-hrlLqLtq.js +0 -129
- package/app/.playwright/package/lib/vite/recorder/index.html +0 -29
- package/app/.playwright/package/lib/vite/recorder/playwright-logo.svg +0 -9
- package/app/.playwright/package/lib/vite/traceViewer/assets/codeMirrorModule-BbkfBe3n.js +0 -32
- package/app/.playwright/package/lib/vite/traceViewer/assets/defaultSettingsView-Ds6CBOo0.js +0 -182
- package/app/.playwright/package/lib/vite/traceViewer/assets/urlMatch-L3liM589.js +0 -1
- package/app/.playwright/package/lib/vite/traceViewer/assets/xtermModule-DywYcAf8.js +0 -7
- package/app/.playwright/package/lib/vite/traceViewer/codeMirrorModule.-QdMvsKi.css +0 -1
- package/app/.playwright/package/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
- package/app/.playwright/package/lib/vite/traceViewer/defaultSettingsView.Bqk9acqE.css +0 -1
- package/app/.playwright/package/lib/vite/traceViewer/index.B4cLoZK3.js +0 -1
- package/app/.playwright/package/lib/vite/traceViewer/index.B_TqY17P.css +0 -1
- package/app/.playwright/package/lib/vite/traceViewer/index.html +0 -44
- package/app/.playwright/package/lib/vite/traceViewer/manifest.webmanifest +0 -16
- package/app/.playwright/package/lib/vite/traceViewer/playwright-logo.svg +0 -9
- package/app/.playwright/package/lib/vite/traceViewer/snapshot.B_Jk1wbt.js +0 -1
- package/app/.playwright/package/lib/vite/traceViewer/snapshot.html +0 -10
- package/app/.playwright/package/lib/vite/traceViewer/sw.bundle.js +0 -4
- package/app/.playwright/package/lib/vite/traceViewer/uiMode.CU5KtEkS.js +0 -5
- package/app/.playwright/package/lib/vite/traceViewer/uiMode.CyMfwkXJ.css +0 -1
- package/app/.playwright/package/lib/vite/traceViewer/uiMode.html +0 -18
- package/app/.playwright/package/lib/vite/traceViewer/xtermModule.kHJ-D0s7.css +0 -1
- package/app/.playwright/package/lib/webp_codec.LICENSE +0 -173
- package/app/.playwright/package/lib/webp_codec.wasm +0 -0
- package/app/.playwright/package/lib/xdg-open +0 -1267
- package/app/.playwright/package/package.json +0 -34
- package/app/.playwright/package/types/protocol.d.ts +0 -24645
- package/app/.playwright/package/types/structs.d.ts +0 -52
- package/app/.playwright/package/types/types.d.ts +0 -26632
- package/app/BrowserCodingAgent.Api.deps.json +0 -109
- package/app/BrowserCodingAgent.Api.dll +0 -0
- package/app/BrowserCodingAgent.Api.pdb +0 -0
- package/app/BrowserCodingAgent.Api.runtimeconfig.json +0 -20
- package/app/BrowserCodingAgent.Api.staticwebassets.endpoints.json +0 -1
- package/app/Microsoft.AspNetCore.OpenApi.dll +0 -0
- package/app/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
- package/app/Microsoft.OpenApi.dll +0 -0
- package/app/Microsoft.Playwright.dll +0 -0
- package/app/Swashbuckle.AspNetCore.SwaggerUI.dll +0 -0
- package/app/appsettings.Development.json +0 -8
- package/app/appsettings.json +0 -16
- package/app/playwright.ps1 +0 -7
- package/app/replacements.json +0 -48
- package/app/web.config +0 -11
- package/browser-coding-agent.cjs +0 -99
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var socketConnection_exports = {};
|
|
20
|
-
__export(socketConnection_exports, {
|
|
21
|
-
SocketConnection: () => SocketConnection,
|
|
22
|
-
compareSemver: () => compareSemver
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(socketConnection_exports);
|
|
25
|
-
class SocketConnection {
|
|
26
|
-
constructor(socket) {
|
|
27
|
-
this._pendingBuffers = [];
|
|
28
|
-
this._socket = socket;
|
|
29
|
-
socket.on("data", (buffer) => this._onData(buffer));
|
|
30
|
-
socket.on("close", () => {
|
|
31
|
-
this.onclose?.();
|
|
32
|
-
});
|
|
33
|
-
socket.on("error", (e) => console.error(`error: ${e.message}`));
|
|
34
|
-
}
|
|
35
|
-
async send(message) {
|
|
36
|
-
await new Promise((resolve, reject) => {
|
|
37
|
-
this._socket.write(`${JSON.stringify(message)}
|
|
38
|
-
`, (error) => {
|
|
39
|
-
if (error)
|
|
40
|
-
reject(error);
|
|
41
|
-
else
|
|
42
|
-
resolve(void 0);
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
close() {
|
|
47
|
-
this._socket.destroy();
|
|
48
|
-
}
|
|
49
|
-
_onData(buffer) {
|
|
50
|
-
let end = buffer.indexOf("\n");
|
|
51
|
-
if (end === -1) {
|
|
52
|
-
this._pendingBuffers.push(buffer);
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
this._pendingBuffers.push(buffer.slice(0, end));
|
|
56
|
-
const message = Buffer.concat(this._pendingBuffers).toString();
|
|
57
|
-
this._dispatchMessage(message);
|
|
58
|
-
let start = end + 1;
|
|
59
|
-
end = buffer.indexOf("\n", start);
|
|
60
|
-
while (end !== -1) {
|
|
61
|
-
const message2 = buffer.toString(void 0, start, end);
|
|
62
|
-
this._dispatchMessage(message2);
|
|
63
|
-
start = end + 1;
|
|
64
|
-
end = buffer.indexOf("\n", start);
|
|
65
|
-
}
|
|
66
|
-
this._pendingBuffers = [buffer.slice(start)];
|
|
67
|
-
}
|
|
68
|
-
_dispatchMessage(message) {
|
|
69
|
-
try {
|
|
70
|
-
this.onmessage?.(JSON.parse(message));
|
|
71
|
-
} catch (e) {
|
|
72
|
-
console.error("failed to dispatch message", e);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
function compareSemver(a, b) {
|
|
77
|
-
const aBase = a.replace(/-.*$/, "");
|
|
78
|
-
const bBase = b.replace(/-.*$/, "");
|
|
79
|
-
const aParts = aBase.split(".").map(Number);
|
|
80
|
-
const bParts = bBase.split(".").map(Number);
|
|
81
|
-
for (let i = 0; i < 3; i++) {
|
|
82
|
-
if (aParts[i] > bParts[i])
|
|
83
|
-
return 1;
|
|
84
|
-
if (aParts[i] < bParts[i])
|
|
85
|
-
return -1;
|
|
86
|
-
}
|
|
87
|
-
const aTimestamp = parseSuffixTimestamp(a);
|
|
88
|
-
const bTimestamp = parseSuffixTimestamp(b);
|
|
89
|
-
if (aTimestamp > bTimestamp)
|
|
90
|
-
return 1;
|
|
91
|
-
if (aTimestamp < bTimestamp)
|
|
92
|
-
return -1;
|
|
93
|
-
return 0;
|
|
94
|
-
}
|
|
95
|
-
function parseSuffixTimestamp(version) {
|
|
96
|
-
const match = version.match(/^\d+\.\d+\.\d+-(?:alpha|beta)-(.+)$/);
|
|
97
|
-
if (!match)
|
|
98
|
-
return Infinity;
|
|
99
|
-
const suffix = match[1];
|
|
100
|
-
if (/^\d{4}-\d{2}-\d{2}$/.test(suffix))
|
|
101
|
-
return new Date(suffix).getTime();
|
|
102
|
-
return Number(suffix);
|
|
103
|
-
}
|
|
104
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
105
|
-
0 && (module.exports = {
|
|
106
|
-
SocketConnection,
|
|
107
|
-
compareSemver
|
|
108
|
-
});
|