# Changelog

All notable changes to the AGP JS SDK will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.3] - 2025-01-14

### Added
- Comprehensive Next.js test suite
- Environment switcher for testing staging/production
- DRY helper functions for event listeners
- Real-time screenshot display for all task types
- Batch operations support (`runBatch`, `waitForAllComplete`)

### Changed
- Updated Portal-H URLs for production deployment
- Improved TypeScript types for better IDE support

### Fixed
- Token refresh CORS handling
- TypeScript compilation errors in strict mode
- Screenshot type assertions for union types

## [0.1.2] - 2025-01-10

### Added
- JWT authentication with Portal-H popup flow
- Automatic token refresh mechanism
- Session ID support for cross-origin requests

### Fixed
- Cookie handling for httpOnly tokens
- Authentication callback flow

## [0.1.1] - 2025-01-08

### Added
- Initial release of AGP JS SDK
- Core methods: `run()`, `runAndWait()`, `runStepByStep()`
- Convenience methods: `searchWeb()`, `shopFor()`, `fillForm()`, `extractData()`
- Event monitoring: `onUpdate()`, `onStatusChange()`, `onWebAction()`, `onChatMessage()`
- Task control: `pause()`, `resume()`, `stop()`, `stepForward()`
- Browser bundle for CDN usage (unpkg)

### Documentation
- Comprehensive README with examples
- TypeScript type definitions
- API reference documentation
