import { AlignmentDetector } from './dist/core/alignment-detector.js';
const detector = new AlignmentDetector();
console.log('Testing Alignment Detector:\n');
const tests = [
{ action: 'greet', expected: 'aligned' },
{ action: 'echo', expected: 'aligned' },
{ action: 'dangerous', expected: 'aligned' },
{ action: 'write-file', expected: 'agnostic' },
{ action: 'delete-user', expected: 'agnostic' },
{ action: 'test-with-password', expected: 'contradiction' },
{ action: 'run-sudo-command', expected: 'contradiction' },
];
tests.forEach(test => {
const result = detector.checkAlignment(test.action);
const match = result.alignment === test.expected ? '✓' : '✗';
console.log(`${match} ${test.action.padEnd(20)} → ${result.alignment.padEnd(13)} (expected: ${test.expected})`);
if (result.reason) console.log(` Reason: ${result.reason}`);
});