mirror of
https://github.com/davidkaya/aryx.git
synced 2026-11-30 04:14:04 +01:00
feat: add markdown composer backend foundation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
a8c6ba94f5
commit
d07bf30e81
16 files changed
+539
-121
No files matched your search
@@ -121,6 +121,23 @@ describe('session title helpers', () => {
|
||||
]),
|
||||
).toBe('Release readiness review');
|
||||
});
|
||||
|
||||
test('builds auto titles from markdown-heavy first messages', () => {
|
||||
const pattern = createPattern();
|
||||
const session = createSession();
|
||||
|
||||
expect(
|
||||
resolveSessionTitle(session, pattern, [
|
||||
{
|
||||
id: 'msg-1',
|
||||
role: 'user',
|
||||
authorName: 'You',
|
||||
content: '```ts\nconst answer = 42;\n```',
|
||||
createdAt: '2026-03-23T00:00:00.000Z',
|
||||
},
|
||||
]),
|
||||
).toBe('const answer = 42;');
|
||||
});
|
||||
});
|
||||
|
||||
describe('session tooling helpers', () => {
|
||||
|
||||
Reference in new issue
Block a user