#!/usr/bin/env bun

// Test importing the @stock-bot/engine package
import * as engine from '@stock-bot/engine';

console.log('Successfully imported @stock-bot/engine');
console.log('Available exports:', Object.keys(engine));

// Test creating some basic objects if they're available
try {
  if (engine.createBacktestEngine) {
    console.log('✓ createBacktestEngine is available');
  }
  
  if (engine.createIndicator) {
    console.log('✓ createIndicator is available');
  }
  
  if (engine.createRiskManager) {
    console.log('✓ createRiskManager is available');
  }
  
  // List all available functions
  console.log('\nAll available functions:');
  for (const [key, value] of Object.entries(engine)) {
    if (typeof value === 'function') {
      console.log(`  - ${key}()`);
    }
  }
} catch (error) {
  console.error('Error testing engine exports:', error);
}