- analyzeMessages classifies message parts into system/user/assistant/tools/reasoning - persistTaskBreakdown writes JSONB to tasks table - Backfills the token-analysis/ module (contract committed earlier) - 6 unit tests covering classification, tool calls, reasoning tokens
11 lines
378 B
TypeScript
11 lines
378 B
TypeScript
import { describe, it, expect } from 'vitest';
|
|
|
|
describe('persistTaskBreakdown', () => {
|
|
it('exports functions', async () => {
|
|
const mod = await import('../persist.js');
|
|
expect(typeof mod.persistTaskBreakdown).toBe('function');
|
|
expect(typeof mod.getTaskBreakdown).toBe('function');
|
|
expect(typeof mod.analyzeAndPersistTaskBreakdown).toBe('function');
|
|
});
|
|
});
|