@loadmill/executer 0.1.197 → 0.1.198
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/dist/ai-assertion/index.js +2 -2
- package/dist/ai-assertion/index.js.map +1 -1
- package/dist/sequence-executor-like.d.ts +7 -0
- package/dist/sequence.js +51 -0
- package/dist/sequence.js.map +1 -1
- package/dist/step-handlers/playwright/constants.d.ts +2 -0
- package/dist/step-handlers/playwright/constants.js +4 -1
- package/dist/step-handlers/playwright/constants.js.map +1 -1
- package/dist/step-handlers/playwright/cua.d.ts +2 -0
- package/dist/step-handlers/playwright/cua.js +40 -0
- package/dist/step-handlers/playwright/cua.js.map +1 -0
- package/dist/step-handlers/playwright/index.d.ts +2 -2
- package/dist/step-handlers/playwright/index.js +11 -9
- package/dist/step-handlers/playwright/index.js.map +1 -1
- package/dist/step-handlers/playwright/sanitize-sensitive-text.d.ts +2 -0
- package/dist/step-handlers/playwright/sanitize-sensitive-text.js +20 -0
- package/dist/step-handlers/playwright/sanitize-sensitive-text.js.map +1 -0
- package/dist/step-handlers/playwright/transformer.d.ts +1 -1
- package/dist/step-handlers/playwright/transformer.js +6 -6
- package/dist/step-handlers/playwright/transformer.js.map +1 -1
- package/dist/step-handlers/playwright/types.d.ts +5 -0
- package/dist/step-handlers/playwright/types.js +1 -0
- package/dist/step-handlers/playwright/types.js.map +1 -1
- package/dist/step-handlers/playwright-shared-step-handler.d.ts +12 -0
- package/dist/step-handlers/playwright-shared-step-handler.js +155 -0
- package/dist/step-handlers/playwright-shared-step-handler.js.map +1 -0
- package/dist/step-handlers/playwright-step-handler.js +4 -128
- package/dist/step-handlers/playwright-step-handler.js.map +1 -1
- package/dist/step-handlers/ui-agent-step-handler.d.ts +18 -0
- package/dist/step-handlers/ui-agent-step-handler.js +255 -0
- package/dist/step-handlers/ui-agent-step-handler.js.map +1 -0
- package/dist/types/playwright.d.ts +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UIAgentStepHandler = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var constants_1 = require("@loadmill/core/dist/ui-agent-step/constants");
|
|
6
|
+
var parameters_1 = require("@loadmill/core/dist/parameters");
|
|
7
|
+
var type_guards_1 = require("@loadmill/core/dist/step/type-guards");
|
|
8
|
+
var playwright_step_1 = require("@loadmill/core/dist/playwright-step");
|
|
9
|
+
var superagent_1 = tslib_1.__importDefault(require("superagent"));
|
|
10
|
+
var files_manager_1 = require("./playwright/files-manager");
|
|
11
|
+
var cua_1 = require("./playwright/cua");
|
|
12
|
+
var playwright_shared_step_handler_1 = require("./playwright-shared-step-handler");
|
|
13
|
+
var errors_1 = require("../errors");
|
|
14
|
+
var constants_2 = require("@loadmill/universal/dist/openai/constants");
|
|
15
|
+
var constants_3 = require("./playwright/constants");
|
|
16
|
+
var uri_utils_1 = require("@loadmill/universal/dist/uri-utils");
|
|
17
|
+
var OPENAI_TIMEOUT_MS = 60000;
|
|
18
|
+
var UIAgentStepHandler = /** @class */ (function () {
|
|
19
|
+
function UIAgentStepHandler(context) {
|
|
20
|
+
Object.defineProperty(this, "context", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
configurable: true,
|
|
23
|
+
writable: true,
|
|
24
|
+
value: context
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(this, "fileManager", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
configurable: true,
|
|
29
|
+
writable: true,
|
|
30
|
+
value: void 0
|
|
31
|
+
});
|
|
32
|
+
this.fileManager = new files_manager_1.PlaywrightFilesManager();
|
|
33
|
+
}
|
|
34
|
+
Object.defineProperty(UIAgentStepHandler.prototype, "canHandle", {
|
|
35
|
+
enumerable: false,
|
|
36
|
+
configurable: true,
|
|
37
|
+
writable: true,
|
|
38
|
+
value: function (step) {
|
|
39
|
+
return (0, type_guards_1.isUIAgentStep)(step);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(UIAgentStepHandler.prototype, "execute", {
|
|
43
|
+
enumerable: false,
|
|
44
|
+
configurable: true,
|
|
45
|
+
writable: true,
|
|
46
|
+
value: function (step, index) {
|
|
47
|
+
var _a, _b;
|
|
48
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
49
|
+
var resolvedStep, openaiApiKey, playwrightStep, playwrightEnvVars, res, err_1;
|
|
50
|
+
var _c;
|
|
51
|
+
return tslib_1.__generator(this, function (_d) {
|
|
52
|
+
switch (_d.label) {
|
|
53
|
+
case 0:
|
|
54
|
+
resolvedStep = this._resolveStepExpressions(step);
|
|
55
|
+
this.context.saveResolvedStep(index, resolvedStep);
|
|
56
|
+
openaiApiKey = ((_b = (_a = this.context.integrations) === null || _a === void 0 ? void 0 : _a.openai) === null || _b === void 0 ? void 0 : _b.apiKey) || process.env[constants_3.UI_AGENT_OPENAI_API_KEY_ENV_VAR];
|
|
57
|
+
if (!openaiApiKey) {
|
|
58
|
+
throw new errors_1.RequestFailuresError('UI Agent execution failed: missing OpenAI API key.');
|
|
59
|
+
}
|
|
60
|
+
_d.label = 1;
|
|
61
|
+
case 1:
|
|
62
|
+
_d.trys.push([1, 4, , 7]);
|
|
63
|
+
playwrightStep = this._convertToPlaywrightStep(resolvedStep);
|
|
64
|
+
playwrightEnvVars = (_c = {},
|
|
65
|
+
_c[constants_3.UI_AGENT_OPENAI_API_KEY_ENV_VAR] = openaiApiKey,
|
|
66
|
+
_c.LOG_LEVEL = process.env.LOG_LEVEL,
|
|
67
|
+
_c);
|
|
68
|
+
return [4 /*yield*/, (0, playwright_shared_step_handler_1.executeWithPlaywrightWrapper)(playwrightStep, index, this.fileManager, this.context, tslib_1.__assign(tslib_1.__assign({}, this.context.playwrightOptions), { takeScreenshotPerTest: true }), { shouldSaveHtmlReport: false, shouldSaveStdout: false }, playwrightEnvVars)];
|
|
69
|
+
case 2:
|
|
70
|
+
res = _d.sent();
|
|
71
|
+
return [4 /*yield*/, this._judgeUIAgentStep(resolvedStep, index, openaiApiKey)];
|
|
72
|
+
case 3:
|
|
73
|
+
_d.sent();
|
|
74
|
+
return [2 /*return*/, res];
|
|
75
|
+
case 4:
|
|
76
|
+
err_1 = _d.sent();
|
|
77
|
+
if (!this.context.isPlaywrightTestExecuted(index)) return [3 /*break*/, 6];
|
|
78
|
+
return [4 /*yield*/, this._judgeUIAgentStep(resolvedStep, index, openaiApiKey, err_1)];
|
|
79
|
+
case 5:
|
|
80
|
+
_d.sent();
|
|
81
|
+
// If the judge doesn't throw an error, we return a successful response with empty data, since the playwright script could have failed but the step still passed according to the validation.
|
|
82
|
+
return [2 /*return*/, {}];
|
|
83
|
+
case 6: throw err_1;
|
|
84
|
+
case 7: return [2 /*return*/];
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(UIAgentStepHandler.prototype, "_resolveStepExpressions", {
|
|
91
|
+
enumerable: false,
|
|
92
|
+
configurable: true,
|
|
93
|
+
writable: true,
|
|
94
|
+
value: function (step) {
|
|
95
|
+
return tslib_1.__assign(tslib_1.__assign({}, step), { url: (0, uri_utils_1.withProtocol)(parameters_1.parameterUtils.resolveExpression(step.url, this.context.parameters)), instructions: parameters_1.parameterUtils.resolveExpression(step.instructions, this.context.parameters), validation: parameters_1.parameterUtils.resolveExpression(step.validation, this.context.parameters) });
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
Object.defineProperty(UIAgentStepHandler.prototype, "processSuccessfulResponse", {
|
|
99
|
+
enumerable: false,
|
|
100
|
+
configurable: true,
|
|
101
|
+
writable: true,
|
|
102
|
+
value: function (_step, index, _res) {
|
|
103
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
104
|
+
return tslib_1.__generator(this, function (_a) {
|
|
105
|
+
switch (_a.label) {
|
|
106
|
+
case 0: return [4 /*yield*/, (0, playwright_shared_step_handler_1.processSuccessfulPlaywrightStepResponse)(this.context, index)];
|
|
107
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
Object.defineProperty(UIAgentStepHandler.prototype, "_convertToPlaywrightStep", {
|
|
114
|
+
enumerable: false,
|
|
115
|
+
configurable: true,
|
|
116
|
+
writable: true,
|
|
117
|
+
value: function (uiAgentStep) {
|
|
118
|
+
var playwrightStep = new playwright_step_1.PlaywrightStep();
|
|
119
|
+
playwrightStep.id = uiAgentStep.id;
|
|
120
|
+
playwrightStep.description = uiAgentStep.description;
|
|
121
|
+
playwrightStep.timeout = uiAgentStep.timeout || constants_1.DEFAULT_UI_AGENT_TIMEOUT;
|
|
122
|
+
playwrightStep.postScript = (0, cua_1.createCUACode)(uiAgentStep);
|
|
123
|
+
playwrightStep.headedMode = uiAgentStep.headedMode;
|
|
124
|
+
return playwrightStep;
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
Object.defineProperty(UIAgentStepHandler.prototype, "_judgeUIAgentStep", {
|
|
128
|
+
enumerable: false,
|
|
129
|
+
configurable: true,
|
|
130
|
+
writable: true,
|
|
131
|
+
value: function (step, index, openaiApiKey, err) {
|
|
132
|
+
var _a;
|
|
133
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
134
|
+
var validation, screenshotBase64, judgeResponse, judge, explanation;
|
|
135
|
+
return tslib_1.__generator(this, function (_b) {
|
|
136
|
+
switch (_b.label) {
|
|
137
|
+
case 0:
|
|
138
|
+
validation = (_a = step.validation) === null || _a === void 0 ? void 0 : _a.trim();
|
|
139
|
+
if (!validation) {
|
|
140
|
+
if (err) {
|
|
141
|
+
throw err;
|
|
142
|
+
}
|
|
143
|
+
return [2 /*return*/];
|
|
144
|
+
}
|
|
145
|
+
screenshotBase64 = this.context.getStepScreenshotBase64(index);
|
|
146
|
+
if (!screenshotBase64) {
|
|
147
|
+
throw new errors_1.RequestFailuresError('UI Agent validation failed: missing final screenshot for judge.');
|
|
148
|
+
}
|
|
149
|
+
return [4 /*yield*/, this._callOpenAiForJudgement(openaiApiKey, validation, screenshotBase64, err)];
|
|
150
|
+
case 1:
|
|
151
|
+
judgeResponse = _b.sent();
|
|
152
|
+
judge = this._extractJudgeResult(judgeResponse.body());
|
|
153
|
+
explanation = String(judge.explanation || 'UI Agent validation failed.');
|
|
154
|
+
this.context.setAIReasoning(index, explanation);
|
|
155
|
+
if (judge.pass) {
|
|
156
|
+
return [2 /*return*/];
|
|
157
|
+
}
|
|
158
|
+
throw new errors_1.RequestFailuresError("UI Agent validation failed: ".concat(explanation));
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
Object.defineProperty(UIAgentStepHandler.prototype, "_callOpenAiForJudgement", {
|
|
165
|
+
enumerable: false,
|
|
166
|
+
configurable: true,
|
|
167
|
+
writable: true,
|
|
168
|
+
value: function (openaiApiKey, validation, screenshotBase64, err) {
|
|
169
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
170
|
+
return tslib_1.__generator(this, function (_a) {
|
|
171
|
+
switch (_a.label) {
|
|
172
|
+
case 0: return [4 /*yield*/, superagent_1.default
|
|
173
|
+
.post(constants_2.OPENAI_RESPONSES_API_URL)
|
|
174
|
+
.set('Authorization', "Bearer ".concat(openaiApiKey))
|
|
175
|
+
.set('Content-Type', 'application/json')
|
|
176
|
+
.timeout(OPENAI_TIMEOUT_MS)
|
|
177
|
+
.send({
|
|
178
|
+
model: constants_2.OPENAI_CHAT_MODELS.GPT_5,
|
|
179
|
+
input: createValidationInput(validation, screenshotBase64, err),
|
|
180
|
+
text: validationResponseSchema,
|
|
181
|
+
})];
|
|
182
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
Object.defineProperty(UIAgentStepHandler.prototype, "_extractJudgeResult", {
|
|
189
|
+
enumerable: false,
|
|
190
|
+
configurable: true,
|
|
191
|
+
writable: true,
|
|
192
|
+
value: function (response) {
|
|
193
|
+
try {
|
|
194
|
+
var output = Array.isArray(response === null || response === void 0 ? void 0 : response.output) ? response.output : [];
|
|
195
|
+
for (var _i = 0, output_1 = output; _i < output_1.length; _i++) {
|
|
196
|
+
var item = output_1[_i];
|
|
197
|
+
var content = Array.isArray(item === null || item === void 0 ? void 0 : item.content) ? item.content : [];
|
|
198
|
+
for (var _a = 0, content_1 = content; _a < content_1.length; _a++) {
|
|
199
|
+
var part = content_1[_a];
|
|
200
|
+
if (typeof (part === null || part === void 0 ? void 0 : part.text) === 'string' && part.text.trim().startsWith('{')) {
|
|
201
|
+
return JSON.parse(part.text);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
catch (_b) { }
|
|
207
|
+
throw new errors_1.RequestFailuresError('UI Agent validation failed: Failed to judge the final state of the UI.');
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
return UIAgentStepHandler;
|
|
211
|
+
}());
|
|
212
|
+
exports.UIAgentStepHandler = UIAgentStepHandler;
|
|
213
|
+
var validationResponseSchema = {
|
|
214
|
+
format: {
|
|
215
|
+
type: 'json_schema',
|
|
216
|
+
name: 'ui_agent_judge',
|
|
217
|
+
strict: true,
|
|
218
|
+
schema: {
|
|
219
|
+
type: 'object',
|
|
220
|
+
additionalProperties: false,
|
|
221
|
+
properties: {
|
|
222
|
+
pass: { type: 'boolean' },
|
|
223
|
+
explanation: { type: 'string' },
|
|
224
|
+
},
|
|
225
|
+
required: ['pass', 'explanation'],
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
};
|
|
229
|
+
function createValidationInput(validation, screenshotBase64, err) {
|
|
230
|
+
return [
|
|
231
|
+
{
|
|
232
|
+
role: 'system',
|
|
233
|
+
content: [
|
|
234
|
+
{
|
|
235
|
+
type: 'input_text',
|
|
236
|
+
text: 'You are a strict UI validation judge. Decide if the screenshot satisfies the validation statement. Return JSON only.',
|
|
237
|
+
},
|
|
238
|
+
],
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
role: 'user',
|
|
242
|
+
content: [
|
|
243
|
+
{
|
|
244
|
+
type: 'input_text',
|
|
245
|
+
text: "Validation statement:\n ".concat(validation, " \n ").concat(err ? "\n An error was thrown during execution: ".concat(String(err), "\n \n Please consider this in your judgment and provide feedback accordingly. \n If the validation statement is satisfied, still return pass=true but mention the error in the explanation.\n Don't expose sensitive information.") : ''),
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
type: 'input_image',
|
|
249
|
+
image_url: "data:image/png;base64,".concat(screenshotBase64),
|
|
250
|
+
},
|
|
251
|
+
],
|
|
252
|
+
},
|
|
253
|
+
];
|
|
254
|
+
}
|
|
255
|
+
//# sourceMappingURL=ui-agent-step-handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-agent-step-handler.js","sourceRoot":"","sources":["../../src/step-handlers/ui-agent-step-handler.ts"],"names":[],"mappings":";;;;AAEA,yEAAuF;AACvF,6DAAgE;AAChE,oEAAqE;AACrE,uEAAqE;AACrE,kEAAoC;AAKpC,4DAAoE;AACpE,wCAAiD;AACjD,mFAG0C;AAC1C,oCAAiD;AACjD,uEAAyG;AACzG,oDAAyE;AACzE,gEAAkE;AAElE,IAAM,iBAAiB,GAAG,KAAK,CAAC;AAEhC;IAGE,4BAAoB,OAA6B;;;;;mBAA7B;;QAFpB;;;;;WAA4C;QAG1C,IAAI,CAAC,WAAW,GAAG,IAAI,sCAAsB,EAAE,CAAC;IAClD,CAAC;;;;;eAED,UAAU,IAAU;YAClB,OAAO,IAAA,2BAAa,EAAC,IAAI,CAAC,CAAC;QAC7B,CAAC;;;;;;eAED,UAAc,IAAiB,EAAE,KAAa;;;;;;;;4BACtC,YAAY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F;CACF,CAAC;AAEF,SAAS,qBAAqB,CAAC,UAAkB,EAAE,gBAAwB,EAAE,GAAI;IAC/E,OAAO;QACL;YACE,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,YAAY;oBAClB,IAAI,EAAE,sHAAsH;iBAC7H;aACF;SACF;QACD;YACE,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,YAAY;oBAClB,IAAI,EAAE,6CACF,UAAU,4BACV,GAAG,CAAC,CAAC,CAAC,gEACkC,MAAM,CAAC,GAAG,CAAC,6QAGf,CAAC,CAAC,CAAC,EAAE,CAAE;iBAChD;gBACD;oBACE,IAAI,EAAE,aAAa;oBACnB,SAAS,EAAE,gCAAyB,gBAAgB,CAAE;iBACvD;aACF;SACF;KACF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loadmill/executer",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.198",
|
|
4
4
|
"description": "Loadmill executer library",
|
|
5
5
|
"main": "dist/",
|
|
6
6
|
"scripts": {
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@aws-sdk/client-firehose": "~3.58.0",
|
|
21
21
|
"@grpc/grpc-js": "^1.9.8",
|
|
22
22
|
"@grpc/proto-loader": "^0.7.10",
|
|
23
|
-
"@loadmill/core": "0.3.
|
|
24
|
-
"@loadmill/universal": "0.3.
|
|
23
|
+
"@loadmill/core": "0.3.197",
|
|
24
|
+
"@loadmill/universal": "0.3.192",
|
|
25
25
|
"@playwright/test": "1.50.0",
|
|
26
26
|
"@types/estree": "^0.0.50",
|
|
27
27
|
"acorn": "^8.4.1",
|