/** * Simple Test - Debug harness integration */ import { FunctionalHarness } from '../core/harness.js'; // Very simple script const simpleScript = ` /* Simple test script */ /* Get current state */ state : ..listen; /* Emit the state */ ..emit state; `; async function runSimpleTest() { console.log('=== Simple Harness Test ===\n'); // Create harness with script content const harness = new FunctionalHarness(simpleScript, { logStateChanges: true, logCommands: true }); // Simple initial state const initialState = { message: "Hello World", value: 42 }; console.log('Processing state...'); const result = await harness.processState(initialState); console.log('Result:', JSON.stringify(result, null, 2)); } // Run the test runSimpleTest().catch(console.error);