3.1.4 • Published 3 months ago

@wix-pilot/core v3.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

@wix-pilot/core 🎯

Core engine for Wix Pilot - Translating natural language into test actions

Overview

The @wix-pilot/core package is the heart of Wix Pilot, responsible for:

  • Orchestrating test execution
  • Managing LLM interactions
  • Providing the main API interface
  • Handling driver registration and lifecycle

Installation

# npm
npm install --save-dev @wix-pilot/core

# yarn
yarn add -D @wix-pilot/core

Pilot Usage

import { pilot } from '@wix-pilot/core';
import { PuppeteerDriver } from '@wix-pilot/puppeteer';
import { CustomPromptHandler } from './custom-prompt-handler';

// Initialize Pilot with your preferred driver and a custom prompt handler
pilot.init({
  driver: new PuppeteerDriver(),
  promptHandler: new CustomPromptHandler(),
});

// Start a new Pilot flow
pilot.start();

// Run your automated flow
await pilot.perform(
  'Navigate to the homepage',
  'Click the login button',
  'The login form should be visible'
);

// End the flow
pilot.end();

Autopilot Usage

Autopilot uses an agentic approach to perform goal-based automation flows.

await pilot.autopilot('Register with a new account');

Related Packages

3.1.3

3 months ago

3.1.2

3 months ago

3.1.1

3 months ago

3.1.0

3 months ago

3.1.4

3 months ago

3.0.4

4 months ago

3.0.3

4 months ago

3.0.1

4 months ago

3.0.0

4 months ago

2.0.2

4 months ago

2.0.0

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago