@empiricalrun/test-gen 0.75.0 → 0.76.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 +15 -0
- package/dist/agent/base/index.d.ts +26 -19
- package/dist/agent/base/index.d.ts.map +1 -1
- package/dist/agent/base/index.js +88 -56
- package/dist/agent/chat/agent-loop.d.ts +4 -3
- package/dist/agent/chat/agent-loop.d.ts.map +1 -1
- package/dist/agent/chat/agent-loop.js +4 -10
- package/dist/agent/chat/exports.d.ts +4 -2
- package/dist/agent/chat/exports.d.ts.map +1 -1
- package/dist/agent/chat/exports.js +8 -7
- package/dist/agent/chat/index.d.ts +6 -10
- package/dist/agent/chat/index.d.ts.map +1 -1
- package/dist/agent/chat/index.js +129 -196
- package/dist/agent/chat/prompt/index.d.ts +5 -4
- package/dist/agent/chat/prompt/index.d.ts.map +1 -1
- package/dist/agent/chat/prompt/index.js +79 -68
- package/dist/agent/chat/state.d.ts +1 -2
- package/dist/agent/chat/state.d.ts.map +1 -1
- package/dist/agent/chat/state.js +2 -2
- package/dist/agent/chat/utils.d.ts +2 -3
- package/dist/agent/chat/utils.d.ts.map +1 -1
- package/dist/agent/chat/utils.js +1 -2
- package/dist/agent/cli.d.ts +11 -0
- package/dist/agent/cli.d.ts.map +1 -0
- package/dist/agent/cli.js +209 -0
- package/dist/agent/code-review/index.d.ts +7 -0
- package/dist/agent/code-review/index.d.ts.map +1 -0
- package/dist/agent/code-review/index.js +65 -0
- package/dist/agent/code-review/prompt.d.ts +1 -1
- package/dist/agent/code-review/prompt.d.ts.map +1 -1
- package/dist/agent/code-review/prompt.js +52 -16
- package/dist/agent/index.d.ts +10 -0
- package/dist/agent/index.d.ts.map +1 -0
- package/dist/agent/index.js +19 -0
- package/dist/agent/triage/index.d.ts +7 -0
- package/dist/agent/triage/index.d.ts.map +1 -0
- package/dist/agent/triage/index.js +102 -0
- package/dist/agent/video-analysis/index.d.ts +7 -0
- package/dist/agent/video-analysis/index.d.ts.map +1 -0
- package/dist/agent/video-analysis/index.js +35 -0
- package/dist/bin/index.js +6 -6
- package/dist/file-info/adapters/github/index.d.ts.map +1 -1
- package/dist/file-info/adapters/github/index.js +1 -2
- package/dist/file-info/adapters/github/reader.d.ts +4 -9
- package/dist/file-info/adapters/github/reader.d.ts.map +1 -1
- package/dist/file-info/adapters/github/reader.js +163 -134
- package/dist/tools/create-pull-request/index.d.ts.map +1 -0
- package/dist/tools/{definitions/commit-and-create-pr.js → create-pull-request/index.js} +30 -1
- package/dist/tools/create-pull-request/utils.d.ts +21 -0
- package/dist/tools/create-pull-request/utils.d.ts.map +1 -0
- package/dist/tools/create-pull-request/utils.js +83 -0
- package/dist/tools/definitions/extract-frames-from-video.d.ts +39 -0
- package/dist/tools/definitions/extract-frames-from-video.d.ts.map +1 -0
- package/dist/tools/definitions/extract-frames-from-video.js +60 -0
- package/dist/tools/definitions/fetch-video-analysis.d.ts +4 -4
- package/dist/tools/executor/index.d.ts +1 -1
- package/dist/tools/executor/index.d.ts.map +1 -1
- package/dist/tools/executor/index.js +18 -4
- package/dist/tools/extract-frames-from-video/index.d.ts +7 -0
- package/dist/tools/extract-frames-from-video/index.d.ts.map +1 -0
- package/dist/tools/extract-frames-from-video/index.js +145 -0
- package/dist/tools/fetch-session-diff/index.d.ts +3 -0
- package/dist/tools/fetch-session-diff/index.d.ts.map +1 -0
- package/dist/tools/fetch-session-diff/index.js +46 -0
- package/dist/tools/fetch-video-analysis/index.d.ts.map +1 -1
- package/dist/tools/fetch-video-analysis/index.js +18 -7
- package/dist/tools/fetch-video-analysis/utils.d.ts +5 -2
- package/dist/tools/fetch-video-analysis/utils.d.ts.map +1 -1
- package/dist/tools/fetch-video-analysis/utils.js +34 -11
- package/dist/tools/fetch-video-analysis/video-analysis.d.ts +2 -2
- package/dist/tools/fetch-video-analysis/video-analysis.d.ts.map +1 -1
- package/dist/tools/fetch-video-analysis/video-analysis.js +24 -8
- package/dist/tools/index.d.ts +28 -2
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +46 -28
- package/dist/tools/review-pull-request/index.d.ts +3 -0
- package/dist/tools/review-pull-request/index.d.ts.map +1 -0
- package/dist/tools/review-pull-request/index.js +103 -0
- package/dist/tools/test-run-fetcher/index.d.ts.map +1 -1
- package/dist/tools/test-run-fetcher/index.js +4 -14
- package/dist/tools/utils/urls.d.ts +5 -0
- package/dist/tools/utils/urls.d.ts.map +1 -0
- package/dist/tools/utils/urls.js +19 -0
- package/dist/tools/view-failed-test-run-report/index.d.ts.map +1 -1
- package/dist/tools/view-failed-test-run-report/index.js +3 -15
- package/dist/utils/file.d.ts +1 -0
- package/dist/utils/file.d.ts.map +1 -1
- package/dist/utils/file.js +45 -1
- package/dist/{tools/fetch-video-analysis → utils}/local-ffmpeg-client.d.ts +4 -0
- package/dist/utils/local-ffmpeg-client.d.ts.map +1 -0
- package/dist/{tools/fetch-video-analysis → utils}/local-ffmpeg-client.js +63 -11
- package/package.json +2 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/agent/chat/utils/tool-calls.d.ts +0 -21
- package/dist/agent/chat/utils/tool-calls.d.ts.map +0 -1
- package/dist/agent/chat/utils/tool-calls.js +0 -64
- package/dist/tools/commit-and-create-pr/index.d.ts.map +0 -1
- package/dist/tools/commit-and-create-pr/index.js +0 -83
- package/dist/tools/definitions/commit-and-create-pr.d.ts +0 -3
- package/dist/tools/definitions/commit-and-create-pr.d.ts.map +0 -1
- package/dist/tools/fetch-video-analysis/local-ffmpeg-client.d.ts.map +0 -1
- /package/dist/tools/{commit-and-create-pr → create-pull-request}/index.d.ts +0 -0
package/dist/agent/chat/index.js
CHANGED
|
@@ -1,204 +1,137 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
5
|
-
const llm_1 = require("@empiricalrun/llm");
|
|
6
|
-
const chat_1 = require("@empiricalrun/llm/chat");
|
|
7
|
-
const picocolors_1 = require("picocolors");
|
|
8
|
-
const client_1 = require("../../dashboard/client");
|
|
9
|
-
const reader_1 = require("../../file-info/adapters/file-system/reader");
|
|
10
|
-
const human_in_the_loop_1 = require("../../human-in-the-loop");
|
|
11
|
-
const validation_1 = require("../../recorder/validation");
|
|
12
|
-
const executor_1 = require("../../tools/executor");
|
|
13
|
-
const git_1 = require("../../tools/executor/utils/git");
|
|
3
|
+
exports.ChatAgent = void 0;
|
|
4
|
+
const tools_1 = require("../../tools");
|
|
14
5
|
const base_1 = require("../base");
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const projectApiKey = process.env.EMPIRICALRUN_API_KEY;
|
|
29
|
-
let apiClient;
|
|
30
|
-
let queryParams = {};
|
|
31
|
-
if (projectApiKey) {
|
|
32
|
-
apiClient = new client_1.DashboardAPIClient({
|
|
33
|
-
authType: "project-api-key",
|
|
34
|
-
projectApiKey: process.env.EMPIRICALRUN_API_KEY,
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
apiClient = new client_1.DashboardAPIClient({
|
|
39
|
-
authType: "user-access-token",
|
|
40
|
-
});
|
|
41
|
-
const repoName = await (0, validation_1.validatePackageJson)(process.cwd());
|
|
42
|
-
queryParams = { project_repo_name: repoName };
|
|
43
|
-
}
|
|
44
|
-
const data = await apiClient.request("/api/environment-variables", { method: "GET", params: queryParams });
|
|
45
|
-
if (!data.data || !data.data.environment_variables) {
|
|
46
|
-
console.error("Failed to fetch environment variables:", data);
|
|
47
|
-
throw new Error("Failed to fetch environment variables");
|
|
48
|
-
}
|
|
49
|
-
const envVars = data.data.environment_variables.reduce((acc, envVar) => {
|
|
50
|
-
acc[envVar.name] = envVar.value;
|
|
51
|
-
return acc;
|
|
52
|
-
}, {});
|
|
53
|
-
return envVars;
|
|
54
|
-
}
|
|
55
|
-
async function runChatAgentForCLI({ useDiskForChatState, selectedModel, initialPromptContent, useTriage, resetChat, useFSCache, }) {
|
|
56
|
-
let chatState;
|
|
57
|
-
const enableStreaming = !useFSCache;
|
|
58
|
-
const cache = useFSCache ? new filesystem_cache_1.FilesystemLLMCache() : undefined;
|
|
59
|
-
if (resetChat) {
|
|
60
|
-
(0, state_1.clearChatState)();
|
|
61
|
-
}
|
|
62
|
-
if (useDiskForChatState) {
|
|
63
|
-
chatState = (0, state_1.loadChatState)();
|
|
64
|
-
}
|
|
65
|
-
// TODO: Store branch name in chat state so that we don't recreate it every time
|
|
66
|
-
const randomId = crypto.randomUUID().substring(0, 8);
|
|
67
|
-
const branchName = `branch-${randomId}`;
|
|
68
|
-
await (0, git_1.checkoutBranch)(branchName, process.cwd());
|
|
69
|
-
let messagesLoadedFromDisk = chatState?.messages || [];
|
|
70
|
-
let chatModel = (0, chat_1.createChatModel)(messagesLoadedFromDisk, selectedModel, undefined, cache);
|
|
71
|
-
chatModel.validateEnvVarsForAuth();
|
|
72
|
-
if (initialPromptContent && chatModel.messages.length === 0) {
|
|
73
|
-
chatModel.pushUserMessage(initialPromptContent, []);
|
|
74
|
-
}
|
|
75
|
-
else if (initialPromptContent && chatModel.messages.length > 0) {
|
|
76
|
-
console.warn(`Ignoring initial prompt because we have existing messages.`);
|
|
77
|
-
}
|
|
78
|
-
if (chatModel.askUserForInput) {
|
|
79
|
-
// Show last message to the user for context when we loaded from disk
|
|
80
|
-
const latest = chatModel.getHumanReadableLatestMessage();
|
|
81
|
-
if (latest) {
|
|
82
|
-
console.log(`${(0, picocolors_1.blue)(latest.role)}: ${latest.textMessage}`);
|
|
6
|
+
const pw_utils_docs_1 = require("./prompt/pw-utils-docs");
|
|
7
|
+
class ChatAgent extends base_1.BaseAgent {
|
|
8
|
+
getTools() {
|
|
9
|
+
const tools = [
|
|
10
|
+
...tools_1.commonTools,
|
|
11
|
+
...tools_1.testGenerationTools,
|
|
12
|
+
// Model-specific tools
|
|
13
|
+
...(0, tools_1.textEditorToolsForModel)(this.selectedModel),
|
|
14
|
+
];
|
|
15
|
+
// Feature flag: video analysis (if not already included)
|
|
16
|
+
if (this.featureFlags?.includes("useVideoAnalysis") &&
|
|
17
|
+
!tools.some((tool) => tool.schema.name === "fetchVideoAnalysis")) {
|
|
18
|
+
tools.push(tools_1.fetchVideoAnalysis);
|
|
83
19
|
}
|
|
20
|
+
return tools;
|
|
84
21
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
const handleSigInt = () => {
|
|
90
|
-
concludeAgent(chatModel, useDiskForChatState, selectedModel, null);
|
|
91
|
-
process.exit(0);
|
|
92
|
-
};
|
|
93
|
-
process.once("SIGINT", handleSigInt);
|
|
94
|
-
process.once("SIGTERM", handleSigInt);
|
|
95
|
-
let userPrompt;
|
|
96
|
-
let reporterFunc = async (chatState, latest) => {
|
|
97
|
-
if (useDiskForChatState) {
|
|
98
|
-
(0, state_1.saveToDisk)(chatState.messages, selectedModel, chatState.askUserForInput, chatState.error);
|
|
99
|
-
}
|
|
100
|
-
if (latest) {
|
|
101
|
-
if (!enableStreaming) {
|
|
102
|
-
console.log(`${(0, picocolors_1.blue)(latest.role)}: ${latest.textMessage}`);
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
process.stdout.write(`\n`);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
const trace = (0, llm_1.createLangfuseTrace)({
|
|
110
|
-
name: "chat_agent",
|
|
111
|
-
input: initialPromptContent || "",
|
|
112
|
-
tags: [selectedModel, "chat_agent"],
|
|
113
|
-
});
|
|
114
|
-
if (trace) {
|
|
115
|
-
const traceUrl = trace.getTraceUrl();
|
|
116
|
-
console.log(`Starting ${selectedModel}: ${traceUrl}`);
|
|
117
|
-
}
|
|
118
|
-
let authType = "user-access-token";
|
|
119
|
-
if (process.env.EMPIRICALRUN_API_KEY) {
|
|
120
|
-
authType = "project-api-key";
|
|
121
|
-
}
|
|
122
|
-
const apiClient = new client_1.DashboardAPIClient({
|
|
123
|
-
authType,
|
|
124
|
-
});
|
|
125
|
-
const fileInfo = await (0, reader_1.getFileInfoFromFS)(process.cwd());
|
|
126
|
-
const agentParams = { featureFlags: [], repoInfo: fileInfo, selectedModel };
|
|
127
|
-
const agent = useTriage
|
|
128
|
-
? new base_1.TriageAgent(agentParams)
|
|
129
|
-
: new base_1.ChatAgent(agentParams);
|
|
130
|
-
while (!stopCriteria(userPrompt)) {
|
|
131
|
-
if (chatModel.askUserForInput) {
|
|
132
|
-
try {
|
|
133
|
-
userPrompt = await human_in_the_loop_1.humanLoop.getFeedback({
|
|
134
|
-
message: "User:",
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
catch (e) {
|
|
138
|
-
// https://github.com/SBoudrias/Inquirer.js/issues/1502#issuecomment-2275991680
|
|
139
|
-
if (e instanceof Error && e.name === "ExitPromptError") {
|
|
140
|
-
concludeAgent(chatModel, useDiskForChatState, selectedModel, null);
|
|
141
|
-
process.exit(0);
|
|
142
|
-
}
|
|
143
|
-
concludeAgent(chatModel, useDiskForChatState, selectedModel, {
|
|
144
|
-
message: e.message,
|
|
145
|
-
stack: e.stack || "Stack trace not available",
|
|
146
|
-
timestamp: new Date().toISOString(),
|
|
147
|
-
});
|
|
148
|
-
throw e;
|
|
149
|
-
}
|
|
150
|
-
if (!stopCriteria(userPrompt)) {
|
|
151
|
-
const { text, attachments } = (0, utils_1.extractAttachments)(userPrompt);
|
|
152
|
-
chatModel.pushUserMessage(text, attachments);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
else {
|
|
156
|
-
const toolExecutor = new executor_1.ToolExecutor({
|
|
157
|
-
chatSession: null,
|
|
158
|
-
branchName,
|
|
159
|
-
repoPath: process.cwd(),
|
|
160
|
-
apiClient,
|
|
161
|
-
trace,
|
|
162
|
-
featureFlags: [],
|
|
163
|
-
environmentOverrides: await fetchEnvironmentVariables(),
|
|
164
|
-
});
|
|
165
|
-
await agent.runLoop({
|
|
166
|
-
chatModel,
|
|
167
|
-
reporter: reporterFunc,
|
|
168
|
-
streamingMessageReporter: (() => {
|
|
169
|
-
if (!enableStreaming) {
|
|
170
|
-
return;
|
|
171
|
-
}
|
|
172
|
-
let hasStarted = false;
|
|
173
|
-
let startedRole = undefined;
|
|
174
|
-
return async (delta, snapshot, thinking) => {
|
|
175
|
-
if (delta) {
|
|
176
|
-
const role = thinking ? "Thinking" : "Assistant";
|
|
177
|
-
if (!hasStarted) {
|
|
178
|
-
process.stdout.write(`${(0, picocolors_1.blue)(role)}: `);
|
|
179
|
-
hasStarted = true;
|
|
180
|
-
startedRole = role;
|
|
181
|
-
}
|
|
182
|
-
else if (hasStarted && role !== startedRole) {
|
|
183
|
-
// Changing from thinking -> text block
|
|
184
|
-
process.stdout.write("\n");
|
|
185
|
-
process.stdout.write(`${(0, picocolors_1.blue)(role)}: `);
|
|
186
|
-
startedRole = role;
|
|
187
|
-
}
|
|
188
|
-
process.stdout.write(delta);
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
})(),
|
|
192
|
-
trace,
|
|
193
|
-
onPendingToolCall: async (toolCalls) => {
|
|
194
|
-
const toolResults = await toolExecutor.execute(toolCalls);
|
|
195
|
-
chatModel.pushToolResultsMessage(toolCalls, toolResults);
|
|
196
|
-
},
|
|
197
|
-
});
|
|
22
|
+
async buildSystemPrompt(repoContext) {
|
|
23
|
+
if (!repoContext) {
|
|
24
|
+
throw new Error(`Chat agent needs repo context`);
|
|
198
25
|
}
|
|
26
|
+
const preamble = `
|
|
27
|
+
You are a helpful assistant that can answer questions and help with tasks related to writing and maintaining Playwright tests.
|
|
28
|
+
|
|
29
|
+
You are working on a test code repository that contains Playwright tests and other related files. Your working directory
|
|
30
|
+
has been checked out on a git branch, and your actions that edit files will be automatically committed. If you make any
|
|
31
|
+
file edits, you must create a pull request after your work is done, to get your work reviewed and merged by a human.
|
|
32
|
+
|
|
33
|
+
# Your capabilities
|
|
34
|
+
|
|
35
|
+
- Adding new Playwright tests or helper methods
|
|
36
|
+
- Going through test reports and identifying app issues versus test issues
|
|
37
|
+
- Modifying existing tests to adapt to changes in the application
|
|
38
|
+
- Modifying repo configuration (e.g. in playwright.config.ts) and dependencies (e.g. in package.json)
|
|
39
|
+
|
|
40
|
+
# Going through test reports
|
|
41
|
+
|
|
42
|
+
- App issues: app issues caught by test failures, like UI issues, API endpoint issues, etc. These are issues that
|
|
43
|
+
will be reported to an app developer to investigate and fix.
|
|
44
|
+
- Test issues: Playwright tests can become outdated when app code changes. These are issues that need to be
|
|
45
|
+
fixed with modifications to the test code, and it is your job to do that.
|
|
46
|
+
|
|
47
|
+
# Tools
|
|
48
|
+
|
|
49
|
+
You are given a set of tools to help you fulfill the user's request. Read their descriptions to
|
|
50
|
+
understand what each tool does.
|
|
51
|
+
|
|
52
|
+
For example, if the user asks you to run a test, you could use the runTest tool.
|
|
53
|
+
Once the test is run, you will receive the results in the form of a JSON object.
|
|
54
|
+
Summarize the results in a few sentences.
|
|
55
|
+
|
|
56
|
+
If the user provides a diagnosis URL, you can use the fetchDiagnosisDetails tool
|
|
57
|
+
to get more information about the test case and its results.
|
|
58
|
+
|
|
59
|
+
If the user provides a test run URL, you can use the fetchTestRunDetails tool
|
|
60
|
+
to get detailed information about a specific test run.
|
|
61
|
+
|
|
62
|
+
Or if the user asks you to modify a test, you could use the generateTestWithBrowserAgent tool. If you suspect
|
|
63
|
+
that a UI selector needs to be updated, using the browser agent is a good idea.
|
|
64
|
+
|
|
65
|
+
Before using generateTestWithBrowserAgent, you need to prepare the test code for the browser agent.
|
|
66
|
+
You can do this by using the strReplaceEditor or the text editor tool to add a TODO comment to the test
|
|
67
|
+
code. This comment explains to the browser agent what it needs to do.
|
|
68
|
+
|
|
69
|
+
For example, if the expected modification is to click on a login button, you could add the following comment.
|
|
70
|
+
|
|
71
|
+
// TODO(agent): Click on the login button
|
|
72
|
+
|
|
73
|
+
The position of the comment is important: the browser agent will look for this comment and replace it with
|
|
74
|
+
the actual code to click on the login button. If you are fixing a failing test, your comment should be
|
|
75
|
+
around the failing line of code, so that it can be replaced/modified.
|
|
76
|
+
|
|
77
|
+
# Proactiveness
|
|
78
|
+
|
|
79
|
+
1. You are allowed to be proactive, but ONLY for read-only tool calls: like searching for content, reading files, fetching data from tools, and
|
|
80
|
+
running Playwright tests.
|
|
81
|
+
2. For any read-write tool calls (e.g. modifying any file), you should share your plan and get the user's approval before proceeding.
|
|
82
|
+
|
|
83
|
+
# Rules to follow
|
|
84
|
+
|
|
85
|
+
You must follow these rules while adding new tests or modifying existing tests. There can be exceptions to these rules, but
|
|
86
|
+
ONLY when explicitly asked for by the user.
|
|
87
|
+
|
|
88
|
+
1. You can't delete some steps from the test to make it pass. The test needs to accomplish its objective (which is to validate a particular user scenario)
|
|
89
|
+
2. Do not add any conditional logic or try catch blocks in a test. A good test deterministically tests a user scenario
|
|
90
|
+
3. Trust Playwright's ability to auto-wait while taking actions on elements.
|
|
91
|
+
- Example 1: Do not add checks on locator.isVisible() before clicking on it: Playwright already waits for visibility on locator.click()
|
|
92
|
+
- Example 2: Do not add page.waitForLoadState after a page.goto: Playwright already waits for page "load" event in page.goto()
|
|
93
|
+
4. Do not add waitForTimeout or waitForLoadState in a test. Playwright will automatically wait for the page to load.
|
|
94
|
+
5. Try/catch blocks are a code smell for tests: you should not use them.
|
|
95
|
+
6. Do not use then() or catch() syntax in a test. Use async/await only
|
|
96
|
+
|
|
97
|
+
There are few exceptions to these rules. BEFORE applying any of the following exceptions, you MUST share your plan with the user and get their approval.
|
|
98
|
+
|
|
99
|
+
## Exceptions for conditional logic
|
|
100
|
+
|
|
101
|
+
There are few exceptions where you can add conditional logic to a test. If the application UI reveals some UI elements on certain conditions, we can add conditional logic.
|
|
102
|
+
|
|
103
|
+
For example, a form view shows a "Save" button only when the form is dirty. In this case, we will have to check if the "Save" button is visible before clicking on it. To do this,
|
|
104
|
+
follow this pattern:
|
|
105
|
+
|
|
106
|
+
\`\`\`
|
|
107
|
+
const saveButton = page.getByRole('button', { name: 'Save' });
|
|
108
|
+
if (await saveButton.isVisible()) {
|
|
109
|
+
await saveButton.click();
|
|
110
|
+
}
|
|
111
|
+
\`\`\`
|
|
112
|
+
|
|
113
|
+
Note that locator.isVisible() DOES NOT wait for the element to be visible. If the element in question shows up after a delay, we have no option but to add a waitForTimeout.
|
|
114
|
+
|
|
115
|
+
\`\`\`
|
|
116
|
+
const saveButton = page.getByRole('button', { name: 'Save' });
|
|
117
|
+
await page.waitForTimeout(100); // Wait for the element to be visible -- only if necessary.
|
|
118
|
+
if (await saveButton.isVisible()) {
|
|
119
|
+
await saveButton.click();
|
|
120
|
+
}
|
|
121
|
+
\`\`\`
|
|
122
|
+
|
|
123
|
+
`;
|
|
124
|
+
return `${preamble}
|
|
125
|
+
|
|
126
|
+
# Recipes
|
|
127
|
+
${pw_utils_docs_1.playwrightUtilsDocs}
|
|
128
|
+
|
|
129
|
+
# Repo context
|
|
130
|
+
${repoContext}
|
|
131
|
+
|
|
132
|
+
# Reference
|
|
133
|
+
Today's date is ${new Date().toDateString()}
|
|
134
|
+
`;
|
|
199
135
|
}
|
|
200
|
-
trace?.update({ output: { messages: chatModel.messages } });
|
|
201
|
-
await llm_1.langfuseInstance?.flushAsync();
|
|
202
|
-
const usageSummary = (0, state_1.getUsageSummary)(chatModel);
|
|
203
|
-
console.log(`\n${(0, picocolors_1.gray)("Usage summary -> " + usageSummary)}`);
|
|
204
136
|
}
|
|
137
|
+
exports.ChatAgent = ChatAgent;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export declare const AGENT_TO_SYSTEM_PROMPT_MAP: {
|
|
2
|
+
chat: (repoContext: string) => Promise<string>;
|
|
3
|
+
video: (repoContext: string) => Promise<string>;
|
|
4
|
+
"code-review": (repoContext: string) => Promise<string>;
|
|
5
|
+
};
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/agent/chat/prompt/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/agent/chat/prompt/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,0BAA0B;wBACjB,MAAM;yBACL,MAAM;iCACE,MAAM;CAEpC,CAAC"}
|
|
@@ -1,82 +1,93 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.buildTriageSystemPrompt = buildTriageSystemPrompt;
|
|
5
|
-
exports.buildSystemPrompt = buildSystemPrompt;
|
|
3
|
+
exports.AGENT_TO_SYSTEM_PROMPT_MAP = void 0;
|
|
6
4
|
const pw_utils_docs_1 = require("./pw-utils-docs");
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return await buildTriageSystemPrompt(repoContext);
|
|
12
|
-
}
|
|
13
|
-
return await buildSystemPrompt(repoContext);
|
|
5
|
+
exports.AGENT_TO_SYSTEM_PROMPT_MAP = {
|
|
6
|
+
chat: (repoContext) => buildChatSystemPrompt(repoContext),
|
|
7
|
+
video: (repoContext) => buildVideoAnalysisSystemPrompt(repoContext),
|
|
8
|
+
"code-review": (repoContext) => buildCodeReviewAgentSystemPrompt(repoContext),
|
|
14
9
|
};
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
async function buildCodeReviewAgentSystemPrompt(repoContext) {
|
|
11
|
+
console.warn("not using repoContext in code review agent prompt for now", typeof repoContext);
|
|
17
12
|
return `
|
|
18
|
-
You are
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
# Your
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
13
|
+
You are an expert code reviewer that specializes in reviewing Playwright test code. You are
|
|
14
|
+
provided with tools to fetch diff for a code review, where a test has been added, test modified,
|
|
15
|
+
or some configuration has changed.
|
|
16
|
+
|
|
17
|
+
# Your goals
|
|
18
|
+
- Identify code smells in test code - see below
|
|
19
|
+
- Call out test data assumptions or lack of clean up
|
|
20
|
+
|
|
21
|
+
# Output format
|
|
22
|
+
- You are expected to return two sections in your response: describe_code_change and code_review_comments
|
|
23
|
+
- describe_code_change: A brief summary of what the code change is doing. This should be 4-6 sentences in a bullet list.
|
|
24
|
+
- code_review_comments: A bulleted list of code review comments that catch for any of the specific bits below or other
|
|
25
|
+
red flags you might see in the code. Each comment should be 1-2 sentences.
|
|
26
|
+
|
|
27
|
+
Return these as XML tags with markdown inside them
|
|
28
|
+
|
|
29
|
+
<describe_code_change>
|
|
30
|
+
- ...
|
|
31
|
+
</describe_code_change>
|
|
32
|
+
|
|
33
|
+
<code_review_comments>
|
|
34
|
+
- ...
|
|
35
|
+
</code_review_comments>
|
|
36
|
+
|
|
37
|
+
# Specific bits to catch in the code review
|
|
38
|
+
|
|
39
|
+
## Code smells to look for
|
|
40
|
+
- Any form of try-catch or exception handling is a code smell in test code. If there's an
|
|
41
|
+
exception, the test should fail
|
|
42
|
+
- Any conditionals (if, switch, ternary) in test code is a code smell. Tests are expected to be
|
|
43
|
+
deterministic. If you see conditionals, check if there's a comment explaining why it's needed.
|
|
44
|
+
Critically review the comment -- if it's not convincing, call it out as a code smell.
|
|
45
|
+
|
|
46
|
+
## Ensure Playwright best practices
|
|
47
|
+
- Use locators instead of selectors: waitForSelector, $, $$ are bad - use locators instead (e.g. locator.waitFor)
|
|
48
|
+
- If the test relies on some Playwright APIs that do not auto-wait (e.g. isVisible(), count()), we need to ensure
|
|
49
|
+
they are used AFTER some action that ensures the page has loaded. If nothing, at least it should have a waitForTimeout
|
|
50
|
+
- Don't use waitForLoadState or networkidle - these are not required since Playwright auto-waits after navigations
|
|
51
|
+
|
|
52
|
+
## Call out test data assumptions
|
|
53
|
+
- If new test data is created (e.g. creating a new entity in the app, doing some actions on it) - it should be cleaned up
|
|
54
|
+
at the end of the test. If not, call it out.
|
|
55
|
+
- If the test data cannot be cleaned up, are we using some random names to ensure no conflicts in future test runs?
|
|
56
|
+
- If the test assumes some data exists (e.g. a user with a specific email) - call it out. It might fail across other
|
|
57
|
+
environments.
|
|
58
|
+
- No hard coded URLs - use relative URLs instead - that can work across environments.
|
|
59
|
+
- Dependency on static data that can change across environments (e.g. number of rows in a table) should be avoided.
|
|
60
|
+
|
|
61
|
+
## Remove debug artifacts
|
|
62
|
+
- If there are console.logs or page.screenshot usage, call it out. They should be removed before merging.
|
|
63
|
+
`;
|
|
64
|
+
}
|
|
65
|
+
async function buildVideoAnalysisSystemPrompt(repoContext) {
|
|
66
|
+
console.warn("not using repoContext in video analysis prompt for now", typeof repoContext);
|
|
67
|
+
return `
|
|
68
|
+
You are a video analysis agent specialized in analyzing screen recordings and user interface interactions.
|
|
51
69
|
|
|
52
|
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
- Both "type of failure" and "proposed fix" are important to determine if two failures belong to the same group
|
|
56
|
-
- Example: if two tests fail with strict mode violations, but for 2 different selectors, they are different groups because the proposed fixes are different
|
|
57
|
-
- What does not make a good group: the location of the test or the name of the test. Two tests that are located in the same file or have similar names should ONLY be grouped together if the root cause of failures is same
|
|
70
|
+
Available Tools:
|
|
71
|
+
- extract_frames: Extract frames from videos for detailed visual analysis
|
|
72
|
+
- fetch_video_analysis: Get comprehensive video analysis summary (legacy)
|
|
58
73
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
- Your suggested change to the test
|
|
66
|
-
- Emphasis to re-run the test after making the change, to ensure that the change works
|
|
74
|
+
When analyzing videos:
|
|
75
|
+
1. Use extract_frames to get individual frames for detailed analysis
|
|
76
|
+
2. Analyze each frame for UI elements, user actions, and state changes
|
|
77
|
+
3. Provide specific observations about what's happening in each frame
|
|
78
|
+
4. The Summary should be in a bullet point format
|
|
79
|
+
5. Reference frame IDs when discussing specific moments: "In frame_abc123_001, I can see..."
|
|
67
80
|
|
|
68
|
-
|
|
69
|
-
-
|
|
70
|
-
-
|
|
81
|
+
Your analysis should be:
|
|
82
|
+
- Detailed and specific about UI elements and interactions
|
|
83
|
+
- Sequential, following the flow of actions in the video
|
|
71
84
|
|
|
72
|
-
|
|
73
|
-
${repoContext}
|
|
85
|
+
After the final summary you need to include the key frame IDs that best represent the important moments in the video.
|
|
74
86
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
`;
|
|
87
|
+
Exmple Frame Id Reference: <frame_abc123_001>
|
|
88
|
+
`;
|
|
78
89
|
}
|
|
79
|
-
async function
|
|
90
|
+
async function buildChatSystemPrompt(repoContext) {
|
|
80
91
|
const preamble = `
|
|
81
92
|
You are a helpful assistant that can answer questions and help with tasks related to writing and maintaining Playwright tests.
|
|
82
93
|
|
|
@@ -17,9 +17,8 @@ export declare function createChatStateForMessages({ messages, selectedModel, as
|
|
|
17
17
|
askUserForInput: boolean;
|
|
18
18
|
error: ChatStateError | null;
|
|
19
19
|
}): ChatState;
|
|
20
|
-
export declare function chatStateFromModel<T>({ chatModel,
|
|
20
|
+
export declare function chatStateFromModel<T>({ chatModel, error, }: {
|
|
21
21
|
chatModel: IChatModel<T>;
|
|
22
|
-
selectedModel: SupportedChatModels;
|
|
23
22
|
error: ChatStateError | null;
|
|
24
23
|
}): ChatState;
|
|
25
24
|
export declare function getUsageSummary(chatModel: IChatModel<CanonicalMessage>): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../src/agent/chat/state.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,UAAU,EACX,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,SAAS,EACT,cAAc,EACd,eAAe,EACf,mBAAmB,EAEnB,UAAU,EACX,MAAM,4BAA4B,CAAC;AA+BpC,eAAO,MAAM,kCAAkC,EAAE,MAAM,CACrD,MAAM,EACN,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAIpB,CAAC;AAEF,eAAO,MAAM,yBAAyB,QAAQ,CAAC;AAE/C,eAAO,MAAM,eAAe,QAI3B,CAAC;AAEF,wBAAgB,cAAc,SAQ7B;AAED,wBAAgB,eAAe,CAAC,EAC9B,UAAU,EACV,WAAW,EACX,aAAa,EACb,aAAa,EACb,KAAK,GACN,EAAE;IACD,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,aAAa,EAAE,SAAS,GAAG,SAAS,CAAC;IACrC,aAAa,EAAE,mBAAmB,CAAC;IACnC,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;CAC9B,aAYA;AAED,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,aAAa,EACb,eAAe,EACf,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,aAAa,EAAE,mBAAmB,CAAC;IACnC,eAAe,EAAE,OAAO,CAAC;IACzB,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;CAC9B,GAAG,SAAS,CASZ;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,EACpC,SAAS,EACT,
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../src/agent/chat/state.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,UAAU,EACX,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,SAAS,EACT,cAAc,EACd,eAAe,EACf,mBAAmB,EAEnB,UAAU,EACX,MAAM,4BAA4B,CAAC;AA+BpC,eAAO,MAAM,kCAAkC,EAAE,MAAM,CACrD,MAAM,EACN,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAIpB,CAAC;AAEF,eAAO,MAAM,yBAAyB,QAAQ,CAAC;AAE/C,eAAO,MAAM,eAAe,QAI3B,CAAC;AAEF,wBAAgB,cAAc,SAQ7B;AAED,wBAAgB,eAAe,CAAC,EAC9B,UAAU,EACV,WAAW,EACX,aAAa,EACb,aAAa,EACb,KAAK,GACN,EAAE;IACD,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,aAAa,EAAE,SAAS,GAAG,SAAS,CAAC;IACrC,aAAa,EAAE,mBAAmB,CAAC;IACnC,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;CAC9B,aAYA;AAED,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,aAAa,EACb,eAAe,EACf,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,aAAa,EAAE,mBAAmB,CAAC;IACnC,eAAe,EAAE,OAAO,CAAC;IACzB,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;CAC9B,GAAG,SAAS,CASZ;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,EACpC,SAAS,EACT,KAAK,GACN,EAAE;IACD,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IACzB,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;CAC9B,aAOA;AAED,wBAAgB,eAAe,CAC7B,SAAS,EAAE,UAAU,CAAC,gBAAgB,CAAC,GACtC,MAAM,CA0BR;AAED,wBAAgB,aAAa,IAAI,SAAS,GAAG,SAAS,CAarD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,GAAG,GAAG,SAAS,CAqBzD;AAED,wBAAgB,UAAU,CACxB,QAAQ,EAAE,KAAK,CAAC,gBAAgB,CAAC,EACjC,aAAa,EAAE,mBAAmB,EAClC,eAAe,EAAE,OAAO,EACxB,KAAK,EAAE,cAAc,GAAG,IAAI,QAgB7B;AA2BD,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,gBAAgB,EAAE,GAC3B,MAAM,GAAG,IAAI,CAef;AAED,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,gBAAgB,EAAE,GAC3B;IACD,gBAAgB,EAAE,IAAI,GAAG,SAAS,CAAC;IACnC,QAAQ,EAAE,eAAe,GAAG,SAAS,CAAC;IACtC,UAAU,EAAE,UAAU,GAAG,SAAS,CAAC;CACpC,CA0BA"}
|
package/dist/agent/chat/state.js
CHANGED
|
@@ -77,10 +77,10 @@ function createChatStateForMessages({ messages, selectedModel, askUserForInput,
|
|
|
77
77
|
error: error,
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
function chatStateFromModel({ chatModel,
|
|
80
|
+
function chatStateFromModel({ chatModel, error, }) {
|
|
81
81
|
return createChatStateForMessages({
|
|
82
82
|
messages: chatModel.messages,
|
|
83
|
-
selectedModel,
|
|
83
|
+
selectedModel: chatModel.selectedModel,
|
|
84
84
|
askUserForInput: chatModel.askUserForInput,
|
|
85
85
|
error,
|
|
86
86
|
});
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { TraceClient } from "@empiricalrun/llm";
|
|
2
2
|
import { IChatModel } from "@empiricalrun/llm/chat";
|
|
3
|
-
import { Attachment, ReporterFunction
|
|
3
|
+
import { Attachment, ReporterFunction } from "@empiricalrun/shared-types";
|
|
4
4
|
export declare const log: (...args: any[]) => void;
|
|
5
5
|
export declare function getModelName(model: string): string;
|
|
6
|
-
export declare function handleAgentError({ error, chatModel,
|
|
6
|
+
export declare function handleAgentError({ error, chatModel, reporter, trace, }: {
|
|
7
7
|
error: unknown;
|
|
8
8
|
chatModel: IChatModel<any>;
|
|
9
|
-
selectedModel: SupportedChatModels;
|
|
10
9
|
reporter: ReporterFunction;
|
|
11
10
|
trace?: TraceClient;
|
|
12
11
|
}): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/agent/chat/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAuB,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EACL,UAAU,EAEV,gBAAgB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/agent/chat/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAuB,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzE,OAAO,EACL,UAAU,EAEV,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AAKpC,eAAO,MAAM,GAAG,GAAI,GAAG,MAAM,GAAG,EAAE,SAEjC,CAAC;AAcF,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMlD;AAED,wBAAsB,gBAAgB,CAAC,EACrC,KAAK,EACL,SAAS,EACT,QAAQ,EACR,KAAK,GACN,EAAE;IACD,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC;IAC3B,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB,iBAeA;AAED,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B,CAsBA"}
|
package/dist/agent/chat/utils.js
CHANGED
|
@@ -29,7 +29,7 @@ function getModelName(model) {
|
|
|
29
29
|
return model;
|
|
30
30
|
return model;
|
|
31
31
|
}
|
|
32
|
-
async function handleAgentError({ error, chatModel,
|
|
32
|
+
async function handleAgentError({ error, chatModel, reporter, trace, }) {
|
|
33
33
|
const errorObject = {
|
|
34
34
|
message: error.message,
|
|
35
35
|
stack: error.stack || "Stack trace not available",
|
|
@@ -37,7 +37,6 @@ async function handleAgentError({ error, chatModel, selectedModel, reporter, tra
|
|
|
37
37
|
};
|
|
38
38
|
await reporter((0, state_1.chatStateFromModel)({
|
|
39
39
|
chatModel,
|
|
40
|
-
selectedModel,
|
|
41
40
|
error: errorObject,
|
|
42
41
|
}), chatModel.getHumanReadableLatestMessage());
|
|
43
42
|
trace?.update({ output: { error: errorObject } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AgentModeEnum, SupportedChatModels } from "@empiricalrun/shared-types";
|
|
2
|
+
export declare function fetchEnvironmentVariables(): Promise<Record<string, string>>;
|
|
3
|
+
export declare function runChatAgentForCLI({ useDiskForChatState, selectedModel, initialPromptContent, agentMode, resetChat, useFSCache, }: {
|
|
4
|
+
selectedModel: SupportedChatModels;
|
|
5
|
+
useDiskForChatState: boolean;
|
|
6
|
+
initialPromptContent: string | undefined;
|
|
7
|
+
agentMode: AgentModeEnum;
|
|
8
|
+
useFSCache: boolean;
|
|
9
|
+
resetChat: boolean;
|
|
10
|
+
}): Promise<void>;
|
|
11
|
+
//# sourceMappingURL=cli.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/agent/cli.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EAMb,mBAAmB,EACpB,MAAM,4BAA4B,CAAC;AAwCpC,wBAAsB,yBAAyB,IAAI,OAAO,CACxD,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CACvB,CAkCA;AAED,wBAAsB,kBAAkB,CAAC,EACvC,mBAAmB,EACnB,aAAa,EACb,oBAAoB,EACpB,SAAS,EACT,SAAS,EACT,UAAU,GACX,EAAE;IACD,aAAa,EAAE,mBAAmB,CAAC;IACnC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,SAAS,EAAE,aAAa,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;CACpB,iBAoLA"}
|