veil-browser 0.1.6 → 0.1.7
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.js +8 -2
- package/package.json +1 -1
package/dist/ai.js
CHANGED
|
@@ -228,9 +228,15 @@ Return JSON array of action steps:`;
|
|
|
228
228
|
}
|
|
229
229
|
// Execute a single action step with X-specific handling
|
|
230
230
|
async function executeStep(page, step) {
|
|
231
|
-
//
|
|
231
|
+
// Skip invalid steps silently
|
|
232
232
|
if (step.action === 'navigate' && !step.url) {
|
|
233
|
-
|
|
233
|
+
return; // Skip invalid navigate
|
|
234
|
+
}
|
|
235
|
+
if (step.action === 'click' && !step.selector) {
|
|
236
|
+
return; // Skip click without selector
|
|
237
|
+
}
|
|
238
|
+
if (step.action === 'type' && (!step.selector || !step.text)) {
|
|
239
|
+
return; // Skip type without selector or text
|
|
234
240
|
}
|
|
235
241
|
switch (step.action) {
|
|
236
242
|
case 'click': {
|