feat: add xAI Grok adapters

This commit is contained in:
2026-05-11 17:16:48 +09:00
parent 3ee6b233ea
commit 5be64756ac
5 changed files with 428 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
import { describe, expect, it } from 'vitest';
import {
createGrokAdapters,
createReplyDelay,
createTypingDelay,
generateSchedule,
@@ -38,7 +39,7 @@ describe('public API', () => {
expect(fact.topics.map((topic) => topic.name)).toEqual(['Mina', 'quiet cafés']);
});
it('exports schedule, conversation, and external special-date adapter contracts', () => {
it('exports schedule, conversation, Grok, and external special-date adapter contracts', () => {
const specialDateProvider: SpecialDateProvider = {
async listSpecialDates() {
return [{ date: '2026-05-08', title: 'Parents Day' }];
@@ -47,6 +48,7 @@ describe('public API', () => {
expect(typeof generateSchedule).toBe('function');
expect(typeof replyToConversation).toBe('function');
expect(typeof createGrokAdapters).toBe('function');
expect(specialDateProvider.listSpecialDates).toBeTypeOf('function');
});
});