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.
Files changed (2) hide show
  1. package/dist/ai.js +8 -2
  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
- // Validate before executing
231
+ // Skip invalid steps silently
232
232
  if (step.action === 'navigate' && !step.url) {
233
- throw new Error('navigate requires url parameter');
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': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veil-browser",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Stealth browser CLI for AI agents — bypass bot detection, persist sessions, local CAPTCHA solving, MCP server",
5
5
  "keywords": [
6
6
  "browser",