"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const DreamOrganizer_1 = require("./cli/DreamOrganizer");
function assert(condition, message) {
    if (!condition)
        throw new Error(message);
}
function main() {
    const organizer = new DreamOrganizer_1.DreamOrganizer(process.cwd());
    const raw = 'Hoje tive uma ideia de criar um motor de memória. Preciso estudar embeddings e depois implementar comando /dream. Também refleti sobre foco e disciplina.';
    const note = organizer.organize(raw);
    assert(note.categories.includes('ideias'), 'should classify ideas');
    assert(note.categories.includes('aprendizado'), 'should classify learning');
    assert(note.categories.includes('reflexoes'), 'should classify reflections');
    assert(note.tags.includes('dream'), 'should include dream tag');
    assert(note.summary.length > 10, 'should generate non-empty summary');
    console.log('TEST_DREAM_ORGANIZER_OK');
}
try {
    main();
}
catch (error) {
    console.error(error.message || error);
    process.exit(1);
}
