@empiricalrun/test-gen 0.71.2 → 0.72.0
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/CHANGELOG.md +38 -0
- package/dist/agent/chat/agent-loop.d.ts +11 -9
- package/dist/agent/chat/agent-loop.d.ts.map +1 -1
- package/dist/agent/chat/agent-loop.js +20 -10
- package/dist/agent/chat/exports.d.ts +2 -2
- package/dist/agent/chat/exports.d.ts.map +1 -1
- package/dist/agent/chat/exports.js +6 -1
- package/dist/agent/chat/index.d.ts.map +1 -1
- package/dist/agent/chat/index.js +48 -13
- package/dist/agent/chat/prompt/index.d.ts +2 -2
- package/dist/agent/chat/prompt/index.d.ts.map +1 -1
- package/dist/agent/chat/prompt/index.js +2 -2
- package/dist/agent/chat/prompt/repo.d.ts +2 -2
- package/dist/agent/chat/prompt/repo.d.ts.map +1 -1
- package/dist/agent/chat/prompt/repo.js +20 -11
- package/dist/agent/chat/state.d.ts +2 -2
- package/dist/agent/chat/state.d.ts.map +1 -1
- package/dist/agent/chat/types.d.ts +0 -6
- package/dist/agent/chat/types.d.ts.map +1 -1
- package/dist/agent/chat/utils/tool-calls.d.ts +21 -0
- package/dist/agent/chat/utils/tool-calls.d.ts.map +1 -0
- package/dist/agent/chat/utils/tool-calls.js +64 -0
- package/dist/agent/chat/utils.d.ts +2 -4
- package/dist/agent/chat/utils.d.ts.map +1 -1
- package/dist/agent/chat/utils.js +5 -11
- package/dist/agent/master/browser-tests/index.spec.js +1 -1
- package/dist/auth/api-client.d.ts.map +1 -1
- package/dist/auth/api-client.js +6 -2
- package/dist/bin/environments.d.ts +1 -1
- package/dist/bin/environments.d.ts.map +1 -1
- package/dist/bin/environments.js +70 -36
- package/dist/bin/index.js +1 -1
- package/dist/bin/setup.d.ts.map +1 -1
- package/dist/bin/setup.js +10 -10
- package/dist/dashboard/index.d.ts +21 -0
- package/dist/dashboard/index.d.ts.map +1 -0
- package/dist/dashboard/index.js +83 -0
- package/dist/dashboard/totp.d.ts +2 -0
- package/dist/dashboard/totp.d.ts.map +1 -0
- package/dist/dashboard/totp.js +18 -0
- package/dist/file-info/file-system.d.ts +3 -0
- package/dist/file-info/file-system.d.ts.map +1 -0
- package/dist/{utils/file-tree.js → file-info/file-system.js} +2 -8
- package/dist/file-info/github.d.ts +3 -0
- package/dist/file-info/github.d.ts.map +1 -0
- package/dist/file-info/github.js +108 -0
- package/dist/tools/commit-and-create-pr.js +2 -2
- package/dist/tools/definitions/index.d.ts +22 -0
- package/dist/tools/definitions/index.d.ts.map +1 -0
- package/dist/tools/definitions/index.js +61 -0
- package/dist/tools/definitions/run-test.d.ts +23 -0
- package/dist/tools/definitions/run-test.d.ts.map +1 -0
- package/dist/tools/definitions/run-test.js +28 -0
- package/dist/tools/definitions/str_replace_editor.d.ts +3 -0
- package/dist/tools/definitions/str_replace_editor.d.ts.map +1 -0
- package/dist/tools/definitions/str_replace_editor.js +74 -0
- package/dist/tools/definitions/test-gen-browser.d.ts +26 -0
- package/dist/tools/definitions/test-gen-browser.d.ts.map +1 -0
- package/dist/tools/definitions/test-gen-browser.js +88 -0
- package/dist/{tool-call-service/utils.d.ts → tools/definitions/utils/queue.d.ts} +6 -4
- package/dist/tools/definitions/utils/queue.d.ts.map +1 -0
- package/dist/{tool-call-service/utils.js → tools/definitions/utils/queue.js} +20 -19
- package/dist/tools/diagnosis-fetcher.js +1 -1
- package/dist/{tool-call-service → tools/executor}/index.d.ts +2 -7
- package/dist/tools/executor/index.d.ts.map +1 -0
- package/dist/{tool-call-service → tools/executor}/index.js +15 -29
- package/dist/tools/executor/utils/checkpoint.d.ts.map +1 -0
- package/dist/tools/executor/utils/git.d.ts.map +1 -0
- package/dist/{utils → tools/executor/utils}/git.js +5 -5
- package/dist/tools/executor/utils/index.d.ts.map +1 -0
- package/dist/tools/list-environments.js +1 -1
- package/dist/tools/run-test.d.ts.map +1 -1
- package/dist/tools/run-test.js +2 -23
- package/dist/tools/str_replace_editor.d.ts.map +1 -1
- package/dist/tools/str_replace_editor.js +6 -58
- package/dist/tools/test-gen-browser.d.ts.map +1 -1
- package/dist/tools/test-gen-browser.js +2 -83
- package/dist/tools/test-run-fetcher/index.js +1 -1
- package/dist/tools/upgrade-packages/index.js +2 -2
- package/dist/tools/upgrade-packages/utils.js +1 -1
- package/dist/types/index.d.ts +0 -8
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/SQSClient.d.ts +14 -0
- package/dist/utils/SQSClient.d.ts.map +1 -0
- package/dist/utils/SQSClient.js +116 -0
- package/dist/utils/repo-tree.d.ts +1 -1
- package/dist/utils/repo-tree.d.ts.map +1 -1
- package/dist/utils/repo-tree.js +7 -7
- package/package.json +16 -8
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/tool-call-service/index.d.ts.map +0 -1
- package/dist/tool-call-service/utils.d.ts.map +0 -1
- package/dist/tools/utils/index.d.ts.map +0 -1
- package/dist/utils/checkpoint.d.ts.map +0 -1
- package/dist/utils/file-tree.d.ts +0 -3
- package/dist/utils/file-tree.d.ts.map +0 -1
- package/dist/utils/git.d.ts.map +0 -1
- /package/dist/{utils → tools/executor/utils}/checkpoint.d.ts +0 -0
- /package/dist/{utils → tools/executor/utils}/checkpoint.js +0 -0
- /package/dist/{utils → tools/executor/utils}/git.d.ts +0 -0
- /package/dist/tools/{utils → executor/utils}/index.d.ts +0 -0
- /package/dist/tools/{utils → executor/utils}/index.js +0 -0
|
@@ -7,95 +7,14 @@ exports.generateTestWithBrowserAgent = void 0;
|
|
|
7
7
|
const test_run_1 = require("@empiricalrun/test-run");
|
|
8
8
|
const fs_1 = __importDefault(require("fs"));
|
|
9
9
|
const path_1 = __importDefault(require("path"));
|
|
10
|
-
const zod_1 = require("zod");
|
|
11
10
|
const run_1 = require("../agent/browsing/run");
|
|
12
11
|
const utils_1 = require("../agent/browsing/utils");
|
|
13
12
|
const pw_pause_1 = require("../agent/cua/pw-codegen/pw-pause");
|
|
14
13
|
const web_1 = require("../bin/utils/platform/web");
|
|
15
14
|
const scenarios_1 = require("../bin/utils/scenarios");
|
|
16
|
-
const
|
|
17
|
-
testName: zod_1.z.string().describe("The name of the test to create or modify"),
|
|
18
|
-
testSuites: zod_1.z
|
|
19
|
-
.array(zod_1.z.string())
|
|
20
|
-
.describe("The suites (describe blocks) where the test is located"),
|
|
21
|
-
filePath: zod_1.z
|
|
22
|
-
.string()
|
|
23
|
-
.describe("Path of the file where the test is located. Path must be relative to the root of the repository. File name must end with .spec.ts. For example: tests/lesson.spec.ts"),
|
|
24
|
-
project: zod_1.z
|
|
25
|
-
.string()
|
|
26
|
-
.describe("The Playwright project to run tests against (e.g. 'chromium' or 'firefox')"),
|
|
27
|
-
buildUrl: zod_1.z
|
|
28
|
-
.string()
|
|
29
|
-
.optional()
|
|
30
|
-
.describe(`The URL of the build to run the test on.
|
|
31
|
-
This is ONLY useful for preview deployments that are dynamically created on every pull request, like Vercel preview deployments.
|
|
32
|
-
For all other cases, the build url does not need to be provided, since it is already hard coded in the test repo.`),
|
|
33
|
-
changeToMake: zod_1.z.string().describe("The change to make to the test"),
|
|
34
|
-
});
|
|
35
|
-
const BROWSER_AGENT_DESCRIPTION = `
|
|
36
|
-
Create or modify a test case with browser agent. The browser agent can take user interactions in a web browser
|
|
37
|
-
and generate Playwright code for that actions. This is a useful tool when the modifications require knowing the
|
|
38
|
-
locator/selector for an element on the page.
|
|
39
|
-
|
|
40
|
-
IMPORTANT: Before you invoke this tool, you need to ensure that the test code is correctly prepared for this
|
|
41
|
-
agent. Preparation involves adding a TODO comment that describes the change that needs to be made, and the page
|
|
42
|
-
variable name where the actions must be performed. The content of the TODO comment calls out the element and browser
|
|
43
|
-
interactions it must take. The TODO comment also has (agent on pageName) next to it, to clearly label that the change
|
|
44
|
-
is for the agent to make on the given page (pageName in this case).
|
|
45
|
-
|
|
46
|
-
To choose the page variable name, go through the test code and find available page variables. If you are replacing some
|
|
47
|
-
existing test code, use the same page variable name as in the existing test code. If you are adding steps to the test,
|
|
48
|
-
use the page variable name that is appropriate for the new steps. The page variable represents the browser page (or tab) that
|
|
49
|
-
the agent is supposed to interact with.
|
|
50
|
-
|
|
51
|
-
For example, this is a good TODO comment:
|
|
52
|
-
|
|
53
|
-
\`\`\`
|
|
54
|
-
test("Example test code", async ({ page }) => {
|
|
55
|
-
await page.goto("https://example.com");
|
|
56
|
-
// TODO(agent on page): Click on the login button
|
|
57
|
-
});
|
|
58
|
-
\`\`\`
|
|
59
|
-
|
|
60
|
-
For the above file, the browser environment will execute the steps before the TODO comment and hand-over the control
|
|
61
|
-
to the browser agent. The agent will do the actions described in the TODO comment and then resume control back to the
|
|
62
|
-
test code.
|
|
63
|
-
|
|
64
|
-
Note that you CANNOT add TODO comments in the middle of a multi-line statement. This will break the tool.
|
|
65
|
-
|
|
66
|
-
For example, this is invalid:
|
|
67
|
-
|
|
68
|
-
\`\`\`
|
|
69
|
-
await extPage
|
|
70
|
-
.getByTestId("virtuoso-item-list")
|
|
71
|
-
// TODO(agent on extPage): Click on the STARS button
|
|
72
|
-
.getByText("STARS", { exact: true })
|
|
73
|
-
.click();
|
|
74
|
-
// This is invalid, because the TODO is in the middle of a multi-line statement
|
|
75
|
-
// Instead, add the TODO before or after the multi-line statement
|
|
76
|
-
\`\`\`
|
|
77
|
-
|
|
78
|
-
The TODO comment must be inside a test block, not outside of it. For example, this is invalid:
|
|
79
|
-
|
|
80
|
-
\`\`\`
|
|
81
|
-
// --- BEGIN INVALID EXAMPLE ---
|
|
82
|
-
test("Example test code", async ({ page }) => {
|
|
83
|
-
await page.goto("https://example.com");
|
|
84
|
-
});
|
|
85
|
-
// TODO(agent on page): Click on the login button
|
|
86
|
-
// --- END INVALID EXAMPLE ---
|
|
87
|
-
\`\`\`
|
|
88
|
-
|
|
89
|
-
After execution, the browser agent will return a summary of actions that it took, and the generated Playwright code for them.
|
|
90
|
-
You can then use the text editor tool to replace the TODO comment with the generated Playwright code.
|
|
91
|
-
`;
|
|
15
|
+
const test_gen_browser_1 = require("./definitions/test-gen-browser");
|
|
92
16
|
exports.generateTestWithBrowserAgent = {
|
|
93
|
-
|
|
94
|
-
name: "generateTestWithBrowserAgent",
|
|
95
|
-
description: BROWSER_AGENT_DESCRIPTION,
|
|
96
|
-
parameters: BrowserAgentSchema,
|
|
97
|
-
},
|
|
98
|
-
needsBrowser: true,
|
|
17
|
+
...test_gen_browser_1.generateTestWithBrowserAgent,
|
|
99
18
|
execute: async ({ input, repoPath, trace, collectArtifacts, environmentOverrides = {}, featureFlags, }) => {
|
|
100
19
|
const { filePath, project } = input;
|
|
101
20
|
const absoluteFilePath = path_1.default.join(repoPath, filePath);
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.fetchTestRunReportTool = void 0;
|
|
4
4
|
exports.extractPathAfterSourceRepo = extractPathAfterSourceRepo;
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
|
-
const utils_1 = require("../utils");
|
|
6
|
+
const utils_1 = require("../executor/utils");
|
|
7
7
|
const TestRunSchema = zod_1.z.object({
|
|
8
8
|
testRunUrl: zod_1.z
|
|
9
9
|
.string()
|
|
@@ -7,8 +7,8 @@ exports.upgradePackagesTool = void 0;
|
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
8
|
const path_1 = __importDefault(require("path"));
|
|
9
9
|
const zod_1 = require("zod");
|
|
10
|
-
const
|
|
11
|
-
const
|
|
10
|
+
const utils_1 = require("../executor/utils");
|
|
11
|
+
const git_1 = require("../executor/utils/git");
|
|
12
12
|
const utils_2 = require("./utils");
|
|
13
13
|
const packageSpecSchema = zod_1.z.object({
|
|
14
14
|
name: zod_1.z.string(),
|
|
@@ -5,7 +5,7 @@ exports.parsePackageJsonDiff = parsePackageJsonDiff;
|
|
|
5
5
|
exports.shouldMergePR = shouldMergePR;
|
|
6
6
|
exports.upgradeAndStagePackage = upgradeAndStagePackage;
|
|
7
7
|
const child_process_1 = require("child_process");
|
|
8
|
-
const utils_1 = require("../utils");
|
|
8
|
+
const utils_1 = require("../executor/utils");
|
|
9
9
|
function isPatchUpdate(currentVersion, newVersion) {
|
|
10
10
|
if (!currentVersion || !newVersion) {
|
|
11
11
|
// If current is undefined, we might be installing a new package
|
package/dist/types/index.d.ts
CHANGED
|
@@ -65,13 +65,5 @@ export type SkillActionArgs = BaseActionArgs & {
|
|
|
65
65
|
skill: string;
|
|
66
66
|
action: string;
|
|
67
67
|
};
|
|
68
|
-
export type FileInfo = {
|
|
69
|
-
isDirectory: boolean;
|
|
70
|
-
isFile: boolean;
|
|
71
|
-
path: string;
|
|
72
|
-
name: string;
|
|
73
|
-
children: FileInfo[];
|
|
74
|
-
getContent: () => Promise<string>;
|
|
75
|
-
};
|
|
76
68
|
export type ActionArgs = ClickActionArgs | FillActionArgs | GotoActionArgs | PressActionArgs | AssertTextVisibilityActionArgs | TextContentActionArgs | HoverActionArgs | SkillActionArgs;
|
|
77
69
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B,MAAM,MAAM,yBAAyB,CAAC,CAAC,SAAS,cAAc,GAAG,UAAU,IAAI,CAC7E,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE;IACP,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,iBAAiB,EAAE,CAAC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;CAClE,KACE,MAAM,CAAC,CAAC,CAAC,CAAC;AAEf,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,CAA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,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,cAAc,GAAG;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,cAAc,GAAG;IACnD,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,cAAc,GAAG;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,cAAc,GAAG;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,UAAU,GAClB,eAAe,GACf,cAAc,GACd,cAAc,GACd,eAAe,GACf,8BAA8B,GAC9B,qBAAqB,GACrB,eAAe,GACf,eAAe,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ServicePayload } from "@empiricalrun/shared-types";
|
|
2
|
+
export declare class SQSClient {
|
|
3
|
+
private region;
|
|
4
|
+
private accessKeyId;
|
|
5
|
+
private secretAccessKey;
|
|
6
|
+
private sessionToken?;
|
|
7
|
+
constructor(region: string, accessKeyId: string, secretAccessKey: string, sessionToken?: string);
|
|
8
|
+
private sha256;
|
|
9
|
+
private hmacSha256;
|
|
10
|
+
private getSignatureKey;
|
|
11
|
+
private sign;
|
|
12
|
+
sendMessage(queueUrl: string, payload: ServicePayload): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=SQSClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SQSClient.d.ts","sourceRoot":"","sources":["../../src/utils/SQSClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,qBAAa,SAAS;IACpB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,YAAY,CAAC,CAAS;gBAG5B,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,MAAM,EACvB,YAAY,CAAC,EAAE,MAAM;YAQT,MAAM;YAON,UAAU;YAkBV,eAAe;YAgBf,IAAI;IASZ,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAyG5E"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SQSClient = void 0;
|
|
4
|
+
class SQSClient {
|
|
5
|
+
region;
|
|
6
|
+
accessKeyId;
|
|
7
|
+
secretAccessKey;
|
|
8
|
+
sessionToken;
|
|
9
|
+
constructor(region, accessKeyId, secretAccessKey, sessionToken) {
|
|
10
|
+
this.region = region;
|
|
11
|
+
this.accessKeyId = accessKeyId;
|
|
12
|
+
this.secretAccessKey = secretAccessKey;
|
|
13
|
+
this.sessionToken = sessionToken;
|
|
14
|
+
}
|
|
15
|
+
async sha256(message) {
|
|
16
|
+
const msgBuffer = new TextEncoder().encode(message);
|
|
17
|
+
const hashBuffer = await crypto.subtle.digest("SHA-256", msgBuffer);
|
|
18
|
+
const hashArray = Array.from(new Uint8Array(hashBuffer));
|
|
19
|
+
return hashArray.map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
20
|
+
}
|
|
21
|
+
async hmacSha256(key, message) {
|
|
22
|
+
const cryptoKey = await crypto.subtle.importKey("raw", key, { name: "HMAC", hash: "SHA-256" }, false, ["sign"]);
|
|
23
|
+
return await crypto.subtle.sign("HMAC", cryptoKey, new TextEncoder().encode(message));
|
|
24
|
+
}
|
|
25
|
+
async getSignatureKey(key, dateStamp, regionName, serviceName) {
|
|
26
|
+
const kDate = await this.hmacSha256(new TextEncoder().encode("AWS4" + key), dateStamp);
|
|
27
|
+
const kRegion = await this.hmacSha256(kDate, regionName);
|
|
28
|
+
const kService = await this.hmacSha256(kRegion, serviceName);
|
|
29
|
+
const kSigning = await this.hmacSha256(kService, "aws4_request");
|
|
30
|
+
return kSigning;
|
|
31
|
+
}
|
|
32
|
+
async sign(stringToSign, signingKey) {
|
|
33
|
+
const signature = await this.hmacSha256(signingKey, stringToSign);
|
|
34
|
+
const signatureArray = Array.from(new Uint8Array(signature));
|
|
35
|
+
return signatureArray.map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
36
|
+
}
|
|
37
|
+
async sendMessage(queueUrl, payload) {
|
|
38
|
+
try {
|
|
39
|
+
const url = new URL(queueUrl);
|
|
40
|
+
const host = url.hostname;
|
|
41
|
+
const canonicalUri = url.pathname;
|
|
42
|
+
const now = new Date();
|
|
43
|
+
// The following two operations generate AWS-compliant timestamps:
|
|
44
|
+
// - amzDate: The full ISO8601 timestamp (without milliseconds and with no separators), used for the x-amz-date header.
|
|
45
|
+
// - dateStamp: The date portion (YYYYMMDD), used in the credential scope for AWS Signature V4.
|
|
46
|
+
const amzDate = now
|
|
47
|
+
.toISOString()
|
|
48
|
+
.replace(/\.\d{3}Z$/, "Z")
|
|
49
|
+
.replace(/[:-]/g, "");
|
|
50
|
+
const dateStamp = amzDate.slice(0, 8);
|
|
51
|
+
const method = "POST";
|
|
52
|
+
const service = "sqs";
|
|
53
|
+
const algorithm = "AWS4-HMAC-SHA256";
|
|
54
|
+
const credentialScope = `${dateStamp}/${this.region}/${service}/aws4_request`;
|
|
55
|
+
const messageBody = {
|
|
56
|
+
Action: "SendMessage",
|
|
57
|
+
Version: "2012-11-05",
|
|
58
|
+
QueueUrl: queueUrl,
|
|
59
|
+
MessageBody: JSON.stringify(payload),
|
|
60
|
+
MessageGroupId: payload.requestId,
|
|
61
|
+
MessageDeduplicationId: payload.requestId,
|
|
62
|
+
};
|
|
63
|
+
const body = Object.entries(messageBody)
|
|
64
|
+
.map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`)
|
|
65
|
+
.join("&");
|
|
66
|
+
const payloadHash = await this.sha256(body);
|
|
67
|
+
const canonicalHeaders = [
|
|
68
|
+
`host:${host}`,
|
|
69
|
+
`x-amz-date:${amzDate}`,
|
|
70
|
+
"",
|
|
71
|
+
].join("\n");
|
|
72
|
+
const signedHeaders = "host;x-amz-date";
|
|
73
|
+
const canonicalRequest = [
|
|
74
|
+
method,
|
|
75
|
+
canonicalUri,
|
|
76
|
+
"",
|
|
77
|
+
canonicalHeaders,
|
|
78
|
+
signedHeaders,
|
|
79
|
+
payloadHash,
|
|
80
|
+
].join("\n");
|
|
81
|
+
const stringToSign = [
|
|
82
|
+
algorithm,
|
|
83
|
+
amzDate,
|
|
84
|
+
credentialScope,
|
|
85
|
+
await this.sha256(canonicalRequest),
|
|
86
|
+
].join("\n");
|
|
87
|
+
const signingKey = await this.getSignatureKey(this.secretAccessKey, dateStamp, this.region, service);
|
|
88
|
+
const signature = await this.sign(stringToSign, signingKey);
|
|
89
|
+
const authorizationHeader = `${algorithm} Credential=${this.accessKeyId}/${credentialScope}, SignedHeaders=${signedHeaders}, Signature=${signature}`;
|
|
90
|
+
const headers = {
|
|
91
|
+
"Content-Type": "application/x-www-form-urlencoded; charset=utf-8",
|
|
92
|
+
Host: host,
|
|
93
|
+
"X-Amz-Date": amzDate,
|
|
94
|
+
Authorization: authorizationHeader,
|
|
95
|
+
};
|
|
96
|
+
if (this.sessionToken) {
|
|
97
|
+
headers["X-Amz-Security-Token"] = this.sessionToken;
|
|
98
|
+
}
|
|
99
|
+
const response = await fetch(queueUrl, {
|
|
100
|
+
method: "POST",
|
|
101
|
+
headers,
|
|
102
|
+
body: body,
|
|
103
|
+
});
|
|
104
|
+
if (!response.ok) {
|
|
105
|
+
const errorText = await response.text();
|
|
106
|
+
console.error(`[SQSClient.sendMessage] SQS request failed: ${response.status} ${response.statusText} - ${errorText}`);
|
|
107
|
+
throw new Error(`SQS request failed: ${response.status} ${response.statusText} - ${errorText}`);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
catch (err) {
|
|
111
|
+
console.error("[SQSClient.sendMessage] Error:", err instanceof Error ? err.stack || err.message : err);
|
|
112
|
+
throw err;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
exports.SQSClient = SQSClient;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FileInfo } from "
|
|
1
|
+
import { FileInfo } from "@empiricalrun/shared-types";
|
|
2
2
|
export declare const DEFAULT_EXCLUDE: (string | RegExp)[];
|
|
3
3
|
export declare function generateAsciiTree(root: FileInfo, options?: {}): string;
|
|
4
4
|
//# sourceMappingURL=repo-tree.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repo-tree.d.ts","sourceRoot":"","sources":["../../src/utils/repo-tree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"repo-tree.d.ts","sourceRoot":"","sources":["../../src/utils/repo-tree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,eAAO,MAAM,eAAe,qBAW3B,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,KAAK,UAqF7D"}
|
package/dist/utils/repo-tree.js
CHANGED
|
@@ -21,7 +21,7 @@ function generateAsciiTree(root, options = {}) {
|
|
|
21
21
|
maxDepth: 10,
|
|
22
22
|
};
|
|
23
23
|
const opts = { ...defaultOptions, ...options };
|
|
24
|
-
if (
|
|
24
|
+
if (root.type !== "directory") {
|
|
25
25
|
throw new Error(`"${root.path}" is not a valid directory`);
|
|
26
26
|
}
|
|
27
27
|
let result = root.name + "\n";
|
|
@@ -31,9 +31,9 @@ function generateAsciiTree(root, options = {}) {
|
|
|
31
31
|
.filter((child) => child !== undefined)
|
|
32
32
|
.sort((a, b) => {
|
|
33
33
|
// Files first, then directories
|
|
34
|
-
if (
|
|
34
|
+
if (a.type !== "directory" && b.type === "directory")
|
|
35
35
|
return -1;
|
|
36
|
-
if (a.
|
|
36
|
+
if (a.type === "directory" && b.type !== "directory")
|
|
37
37
|
return 1;
|
|
38
38
|
return a.name.localeCompare(b.name);
|
|
39
39
|
});
|
|
@@ -62,17 +62,17 @@ function generateAsciiTree(root, options = {}) {
|
|
|
62
62
|
continue;
|
|
63
63
|
// Add the current item to the result
|
|
64
64
|
const symbol = isLast ? "└── " : "├── ";
|
|
65
|
-
result += `${prefix}${symbol}${node.name}${node.
|
|
66
|
-
if (node.
|
|
65
|
+
result += `${prefix}${symbol}${node.name}${node.type === "directory" ? "/" : ""}\n`;
|
|
66
|
+
if (node.type === "directory" && node.children.length > 0) {
|
|
67
67
|
const nextPrefix = prefix + (isLast ? " " : "│ ");
|
|
68
68
|
// Sort and add children to stack in reverse order
|
|
69
69
|
const children = [...node.children]
|
|
70
70
|
.filter((child) => child !== undefined)
|
|
71
71
|
.sort((a, b) => {
|
|
72
72
|
// Files first, then directories
|
|
73
|
-
if (
|
|
73
|
+
if (a.type !== "directory" && b.type === "directory")
|
|
74
74
|
return -1;
|
|
75
|
-
if (a.
|
|
75
|
+
if (a.type === "directory" && b.type !== "directory")
|
|
76
76
|
return 1;
|
|
77
77
|
return a.name.localeCompare(b.name);
|
|
78
78
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@empiricalrun/test-gen",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.72.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -26,9 +26,17 @@
|
|
|
26
26
|
"types": "./dist/index.d.ts",
|
|
27
27
|
"default": "./dist/index.js"
|
|
28
28
|
},
|
|
29
|
-
"./tool-
|
|
30
|
-
"types": "./dist/
|
|
31
|
-
"default": "./dist/
|
|
29
|
+
"./tool-caller": {
|
|
30
|
+
"types": "./dist/tools/definitions/index.d.ts",
|
|
31
|
+
"default": "./dist/tools/definitions/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./tool-executor": {
|
|
34
|
+
"types": "./dist/tools/executor/index.d.ts",
|
|
35
|
+
"default": "./dist/tools/executor/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./dashboard": {
|
|
38
|
+
"types": "./dist/dashboard/index.d.ts",
|
|
39
|
+
"default": "./dist/dashboard/index.js"
|
|
32
40
|
}
|
|
33
41
|
},
|
|
34
42
|
"repository": {
|
|
@@ -37,8 +45,8 @@
|
|
|
37
45
|
},
|
|
38
46
|
"author": "Empirical Team <hey@empirical.run>",
|
|
39
47
|
"dependencies": {
|
|
40
|
-
"@aws-sdk/client-sqs": "^3.787.0",
|
|
41
48
|
"@babel/parser": "^7.26.3",
|
|
49
|
+
"@epic-web/totp": "^4.0.1",
|
|
42
50
|
"@types/sanitize-html": "^2.11.0",
|
|
43
51
|
"async-retry": "^1.3.3",
|
|
44
52
|
"commander": "^12.1.0",
|
|
@@ -64,9 +72,9 @@
|
|
|
64
72
|
"tsx": "^4.16.2",
|
|
65
73
|
"typescript": "^5.3.3",
|
|
66
74
|
"zod": "^3.23.8",
|
|
67
|
-
"@empiricalrun/llm": "^0.
|
|
75
|
+
"@empiricalrun/llm": "^0.20.0",
|
|
68
76
|
"@empiricalrun/r2-uploader": "^0.3.9",
|
|
69
|
-
"@empiricalrun/test-run": "^0.10.
|
|
77
|
+
"@empiricalrun/test-run": "^0.10.9"
|
|
70
78
|
},
|
|
71
79
|
"devDependencies": {
|
|
72
80
|
"@playwright/test": "1.53.2",
|
|
@@ -82,7 +90,7 @@
|
|
|
82
90
|
"playwright": "1.53.2",
|
|
83
91
|
"serve-handler": "^6.1.6",
|
|
84
92
|
"ts-patch": "^3.3.0",
|
|
85
|
-
"@empiricalrun/shared-types": "0.
|
|
93
|
+
"@empiricalrun/shared-types": "0.7.0"
|
|
86
94
|
},
|
|
87
95
|
"scripts": {
|
|
88
96
|
"dev": "tspc --build --watch",
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["./src/index.ts","./src/logger.ts","./src/actions/assert.ts","./src/actions/click.ts","./src/actions/done.ts","./src/actions/fill.ts","./src/actions/goto.ts","./src/actions/hover.ts","./src/actions/index.ts","./src/actions/next-task.ts","./src/actions/press.ts","./src/actions/skill.ts","./src/actions/text-content.ts","./src/actions/constants/index.ts","./src/actions/utils/index.ts","./src/agent/browsing/index.ts","./src/agent/browsing/run.ts","./src/agent/browsing/utils.ts","./src/agent/chat/agent-loop.ts","./src/agent/chat/exports.ts","./src/agent/chat/index.ts","./src/agent/chat/models.ts","./src/agent/chat/state.ts","./src/agent/chat/types.ts","./src/agent/chat/utils.ts","./src/agent/chat/prompt/index.ts","./src/agent/chat/prompt/pw-utils-docs.ts","./src/agent/chat/prompt/repo.ts","./src/agent/codegen/create-test-block.ts","./src/agent/codegen/fix-ts-errors.ts","./src/agent/codegen/generate-code-apply-changes.ts","./src/agent/codegen/lexical-scoped-vars.ts","./src/agent/codegen/repo-edit.ts","./src/agent/codegen/run.ts","./src/agent/codegen/skills-retriever.ts","./src/agent/codegen/test-update-feedback.ts","./src/agent/codegen/types.ts","./src/agent/codegen/update-flow.ts","./src/agent/codegen/use-skill.ts","./src/agent/codegen/utils.ts","./src/agent/cua/computer.ts","./src/agent/cua/index.ts","./src/agent/cua/model.ts","./src/agent/cua/pw-codegen/element-from-point.ts","./src/agent/cua/pw-codegen/types.ts","./src/agent/cua/pw-codegen/pw-pause/for-recorder.ts","./src/agent/cua/pw-codegen/pw-pause/index.ts","./src/agent/cua/pw-codegen/pw-pause/ipc.ts","./src/agent/cua/pw-codegen/pw-pause/patch.ts","./src/agent/cua/pw-codegen/pw-pause/types.ts","./src/agent/cua/pw-codegen/pw-pause/utils.ts","./src/agent/diagnosis-agent/index.ts","./src/agent/diagnosis-agent/strict-mode-violation.ts","./src/agent/enrich-prompt/index.ts","./src/agent/enrich-prompt/utils.ts","./src/agent/infer-agent/index.ts","./src/agent/master/action-tool-calls.ts","./src/agent/master/element-annotation.ts","./src/agent/master/execute-browser-action.ts","./src/agent/master/execute-skill-action.ts","./src/agent/master/next-action.ts","./src/agent/master/planner.ts","./src/agent/master/run.ts","./src/agent/master/scroller.ts","./src/agent/master/with-hints.ts","./src/agent/master/browser-tests/cua.spec.ts","./src/agent/master/browser-tests/fixtures.ts","./src/agent/master/browser-tests/index.spec.ts","./src/agent/master/browser-tests/skills.spec.ts","./src/agent/master/icon-descriptor/index.ts","./src/agent/master/icon-descriptor/normalize-svg.ts","./src/agent/planner/run-time-planner.ts","./src/agent/planner/run.ts","./src/artifacts/index.ts","./src/artifacts/utils.ts","./src/auth/api-client.ts","./src/auth/cli-auth.ts","./src/auth/index.ts","./src/auth/token-store.ts","./src/bin/environments.ts","./src/bin/index.ts","./src/bin/setup.ts","./src/bin/logger/index.ts","./src/bin/utils/context.ts","./src/bin/utils/index.ts","./src/bin/utils/fs/index.ts","./src/bin/utils/platform/web/index.ts","./src/bin/utils/platform/web/test-files/ts-path-import-validate.ts","./src/bin/utils/scenarios/index.ts","./src/browser-injected-scripts/annotate-elements.spec.ts","./src/constants/index.ts","./src/errors/index.ts","./src/evals/add-scenario-agent.evals.ts","./src/evals/append-create-test-agent.evals.ts","./src/evals/fetch-pom-skills-agent.evals.ts","./src/evals/infer-master-or-code-agent.evals.ts","./src/evals/master-agent.evals.ts","./src/evals/type.ts","./src/evals/update-scenario-agent.evals.ts","./src/file/client.ts","./src/file/server.ts","./src/human-in-the-loop/cli.ts","./src/human-in-the-loop/index.ts","./src/human-in-the-loop/ipc.ts","./src/page/index.ts","./src/prompts/lib/ts-transformer.ts","./src/recorder/env-variables.ts","./src/recorder/index.ts","./src/recorder/request.ts","./src/recorder/temp-files.ts","./src/recorder/upload.ts","./src/recorder/validation.ts","./src/session/index.ts","./src/test-build/index.ts","./src/
|
|
1
|
+
{"root":["./src/index.ts","./src/logger.ts","./src/actions/assert.ts","./src/actions/click.ts","./src/actions/done.ts","./src/actions/fill.ts","./src/actions/goto.ts","./src/actions/hover.ts","./src/actions/index.ts","./src/actions/next-task.ts","./src/actions/press.ts","./src/actions/skill.ts","./src/actions/text-content.ts","./src/actions/constants/index.ts","./src/actions/utils/index.ts","./src/agent/browsing/index.ts","./src/agent/browsing/run.ts","./src/agent/browsing/utils.ts","./src/agent/chat/agent-loop.ts","./src/agent/chat/exports.ts","./src/agent/chat/index.ts","./src/agent/chat/models.ts","./src/agent/chat/state.ts","./src/agent/chat/types.ts","./src/agent/chat/utils.ts","./src/agent/chat/prompt/index.ts","./src/agent/chat/prompt/pw-utils-docs.ts","./src/agent/chat/prompt/repo.ts","./src/agent/chat/utils/tool-calls.ts","./src/agent/codegen/create-test-block.ts","./src/agent/codegen/fix-ts-errors.ts","./src/agent/codegen/generate-code-apply-changes.ts","./src/agent/codegen/lexical-scoped-vars.ts","./src/agent/codegen/repo-edit.ts","./src/agent/codegen/run.ts","./src/agent/codegen/skills-retriever.ts","./src/agent/codegen/test-update-feedback.ts","./src/agent/codegen/types.ts","./src/agent/codegen/update-flow.ts","./src/agent/codegen/use-skill.ts","./src/agent/codegen/utils.ts","./src/agent/cua/computer.ts","./src/agent/cua/index.ts","./src/agent/cua/model.ts","./src/agent/cua/pw-codegen/element-from-point.ts","./src/agent/cua/pw-codegen/types.ts","./src/agent/cua/pw-codegen/pw-pause/for-recorder.ts","./src/agent/cua/pw-codegen/pw-pause/index.ts","./src/agent/cua/pw-codegen/pw-pause/ipc.ts","./src/agent/cua/pw-codegen/pw-pause/patch.ts","./src/agent/cua/pw-codegen/pw-pause/types.ts","./src/agent/cua/pw-codegen/pw-pause/utils.ts","./src/agent/diagnosis-agent/index.ts","./src/agent/diagnosis-agent/strict-mode-violation.ts","./src/agent/enrich-prompt/index.ts","./src/agent/enrich-prompt/utils.ts","./src/agent/infer-agent/index.ts","./src/agent/master/action-tool-calls.ts","./src/agent/master/element-annotation.ts","./src/agent/master/execute-browser-action.ts","./src/agent/master/execute-skill-action.ts","./src/agent/master/next-action.ts","./src/agent/master/planner.ts","./src/agent/master/run.ts","./src/agent/master/scroller.ts","./src/agent/master/with-hints.ts","./src/agent/master/browser-tests/cua.spec.ts","./src/agent/master/browser-tests/fixtures.ts","./src/agent/master/browser-tests/index.spec.ts","./src/agent/master/browser-tests/skills.spec.ts","./src/agent/master/icon-descriptor/index.ts","./src/agent/master/icon-descriptor/normalize-svg.ts","./src/agent/planner/run-time-planner.ts","./src/agent/planner/run.ts","./src/artifacts/index.ts","./src/artifacts/utils.ts","./src/auth/api-client.ts","./src/auth/cli-auth.ts","./src/auth/index.ts","./src/auth/token-store.ts","./src/bin/environments.ts","./src/bin/index.ts","./src/bin/setup.ts","./src/bin/logger/index.ts","./src/bin/utils/context.ts","./src/bin/utils/index.ts","./src/bin/utils/fs/index.ts","./src/bin/utils/platform/web/index.ts","./src/bin/utils/platform/web/test-files/ts-path-import-validate.ts","./src/bin/utils/scenarios/index.ts","./src/browser-injected-scripts/annotate-elements.spec.ts","./src/constants/index.ts","./src/dashboard/index.ts","./src/dashboard/totp.ts","./src/errors/index.ts","./src/evals/add-scenario-agent.evals.ts","./src/evals/append-create-test-agent.evals.ts","./src/evals/fetch-pom-skills-agent.evals.ts","./src/evals/infer-master-or-code-agent.evals.ts","./src/evals/master-agent.evals.ts","./src/evals/type.ts","./src/evals/update-scenario-agent.evals.ts","./src/file/client.ts","./src/file/server.ts","./src/file-info/file-system.ts","./src/file-info/github.ts","./src/human-in-the-loop/cli.ts","./src/human-in-the-loop/index.ts","./src/human-in-the-loop/ipc.ts","./src/page/index.ts","./src/prompts/lib/ts-transformer.ts","./src/recorder/env-variables.ts","./src/recorder/index.ts","./src/recorder/request.ts","./src/recorder/temp-files.ts","./src/recorder/upload.ts","./src/recorder/validation.ts","./src/session/index.ts","./src/test-build/index.ts","./src/tools/commit-and-create-pr.ts","./src/tools/diagnosis-fetcher.ts","./src/tools/download-build.ts","./src/tools/list-environments.ts","./src/tools/run-test.ts","./src/tools/str_replace_editor.ts","./src/tools/test-gen-browser.ts","./src/tools/definitions/index.ts","./src/tools/definitions/run-test.ts","./src/tools/definitions/str_replace_editor.ts","./src/tools/definitions/test-gen-browser.ts","./src/tools/definitions/utils/queue.ts","./src/tools/executor/index.ts","./src/tools/executor/utils/checkpoint.ts","./src/tools/executor/utils/git.ts","./src/tools/executor/utils/index.ts","./src/tools/grep/index.ts","./src/tools/grep/ripgrep/index.ts","./src/tools/grep/ripgrep/types.ts","./src/tools/test-run-fetcher/index.ts","./src/tools/test-run-fetcher/types.ts","./src/tools/upgrade-packages/index.ts","./src/tools/upgrade-packages/utils.ts","./src/types/handlebars.d.ts","./src/types/index.ts","./src/utils/SQSClient.ts","./src/utils/env.ts","./src/utils/exec.ts","./src/utils/file.ts","./src/utils/html.ts","./src/utils/index.ts","./src/utils/json.ts","./src/utils/repo-tree.ts","./src/utils/slug.ts","./src/utils/string.ts","./src/utils/stripAnsi.ts"],"version":"5.8.3"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tool-call-service/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAEL,eAAe,EACf,UAAU,EACX,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,mBAAmB,EACnB,IAAI,EACJ,WAAW,EACZ,MAAM,4BAA4B,CAAC;AAmBpC,KAAK,aAAa,GAAG;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAC;CAC5B,CAAC;AAEF,qBAAa,eAAe;IAC1B,KAAK,EAAE,IAAI,EAAE,CAAM;IACnB,aAAa,EAAE,aAAa,CAAM;IAClC,aAAa,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AM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC;IAAE,EAAE,EAAE,eAAe,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC,CAyBnD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkpoint.d.ts","sourceRoot":"","sources":["../../src/utils/checkpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAIzD,wBAAsB,gBAAgB,CAAC,EACrC,SAAS,EACT,UAAU,EACV,QAAQ,GACT,EAAE;IACD,SAAS,EAAE,eAAe,EAAE,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB,iBAyBA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-tree.d.ts","sourceRoot":"","sources":["../../src/utils/file-tree.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,wBAAsB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAsC5E"}
|
package/dist/utils/git.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../src/utils/git.ts"],"names":[],"mappings":"AAOA,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAMhE;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAe1E;AAED,wBAAsB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,iBAQnE;AAED,wBAAsB,eAAe,CAAC,aAAa,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,oBAcvE;AAED,wBAAsB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,mBAO1D;AAED,wBAAsB,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,iBAE/D;AAED,wBAAsB,wBAAwB,CAAC,EAC7C,aAAa,EACb,UAAU,EACV,KAAK,EACL,QAAQ,GACT,EAAE;IACD,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB,iBAIA;AAED,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,qBAUhD;AAED,wBAAsB,gBAAgB,CAAC,EACrC,QAAQ,EACR,QAAQ,EACR,MAAM,GACP,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,oBA+BA;AAED,wBAAsB,YAAY,CAAC,EACjC,QAAQ,EACR,UAAU,EACV,MAAM,GACP,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB,iBAoBA"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|