Add "Edit with Shakespeare" info to system prompt

This commit is contained in:
Alex Gleason committed 2025-11-13 15:39:18 -06:00
1 parent 72439d4ec9
commit 866155d907
4 files changed
+64 -4

No files matched your search

+9 -1
View File
@@ -1,6 +1,7 @@
import { describe, it, expect, vi, beforeEach } from 'vitest';
import { SessionManager, type AIMessage } from './SessionManager';
import type { JSRuntimeFS } from './JSRuntime';
import type { NPool } from '@nostrify/nostrify';
// Mock the filesystem
const mockFS: JSRuntimeFS = {
@@ -22,6 +23,13 @@ const mockFS: JSRuntimeFS = {
realpath: vi.fn(),
} as unknown as JSRuntimeFS;
// Mock NPool
const mockNostr: NPool = {
query: vi.fn(),
req: vi.fn(),
event: vi.fn(),
} as unknown as NPool;
describe('SessionManager', () => {
let sessionManager: SessionManager;
const mockAISettings = {
@@ -35,7 +43,7 @@ describe('SessionManager', () => {
};
beforeEach(() => {
sessionManager = new SessionManager(mockFS, mockAISettings);
sessionManager = new SessionManager(mockFS, mockNostr, mockAISettings);
});
it('should initialize streaming message with reasoning content', async () => {