UNPKG

@emmahyde/thinking-patterns

Version:

MCP server combining systematic thinking, mental models, debugging approaches, and stochastic algorithms for comprehensive cognitive pattern support

196 lines (195 loc) 5.95 kB
/** * Test fixtures and sample data for testing */ import { SequentialThoughtData } from '../../src/schemas/SequentialThoughtSchema.js'; export declare const validSequentialThought: SequentialThoughtData; export declare const validSequentialThoughtWithOptionals: SequentialThoughtData; export declare const finalThoughtData: SequentialThoughtData; export declare const invalidSequentialThought: { missingRequired: { thought: string; }; invalidTypes: { thought: number; thoughtNumber: string; totalThoughts: number; nextThoughtNeeded: string; }; negativeNumbers: { thought: string; thoughtNumber: number; totalThoughts: number; nextThoughtNeeded: boolean; }; invalidOptionals: { thought: string; thoughtNumber: number; totalThoughts: number; nextThoughtNeeded: boolean; revisesThought: number; branchFromThought: number; }; }; export declare const sampleMcpRequest: { jsonrpc: "2.0"; id: string; method: "tools/call"; params: { name: string; arguments: { thought: string; thoughtNumber: number; totalThoughts: number; nextThoughtNeeded: boolean; isRevision?: boolean | undefined; revisesThought?: number | undefined; branchFromThought?: number | undefined; branchId?: string | undefined; needsMoreThoughts?: boolean | undefined; currentStep?: { stepDescription: string; recommendedTools: { toolName: string; confidence: number; rationale: string; priority: number; alternativeTools?: string[] | undefined; }[]; expectedOutcome: string; nextStepConditions: string[]; stepNumber?: number | undefined; estimatedDuration?: string | undefined; complexityLevel?: "low" | "medium" | "high" | undefined; } | undefined; previousSteps?: { stepDescription: string; recommendedTools: { toolName: string; confidence: number; rationale: string; priority: number; alternativeTools?: string[] | undefined; }[]; expectedOutcome: string; nextStepConditions: string[]; }[] | undefined; remainingSteps?: string[] | undefined; toolUsageHistory?: { toolName: string; usedAt: string; effectivenessScore?: number | undefined; }[] | undefined; }; }; }; export declare const sampleMcpListToolsRequest: { jsonrpc: "2.0"; id: string; method: "tools/list"; }; export declare const sampleSuccessResponse: { content: { type: "text"; text: string; }[]; isError: boolean; }; export declare const sampleErrorResponse: { content: { type: "text"; text: string; }[]; isError: boolean; }; export declare const sampleBoxContent: { title: string; sections: { "Current Thought": string; Progress: string; Status: string; Details: string[]; }; }; export declare const sampleLongContent: { title: string; sections: { "Long Text Section": string; "Unicode Test": string; "Multi-line Array": string[]; }; }; export declare const sampleErrors: { validationError: Error; networkError: Error; mcpError: Error; timeoutError: Error; }; export declare const sampleSessionData: { sessionId: string; userId: string; createdAt: Date; lastActivity: Date; thoughtHistory: { thought: string; thoughtNumber: number; totalThoughts: number; nextThoughtNeeded: boolean; isRevision?: boolean | undefined; revisesThought?: number | undefined; branchFromThought?: number | undefined; branchId?: string | undefined; needsMoreThoughts?: boolean | undefined; currentStep?: { stepDescription: string; recommendedTools: { toolName: string; confidence: number; rationale: string; priority: number; alternativeTools?: string[] | undefined; }[]; expectedOutcome: string; nextStepConditions: string[]; stepNumber?: number | undefined; estimatedDuration?: string | undefined; complexityLevel?: "low" | "medium" | "high" | undefined; } | undefined; previousSteps?: { stepDescription: string; recommendedTools: { toolName: string; confidence: number; rationale: string; priority: number; alternativeTools?: string[] | undefined; }[]; expectedOutcome: string; nextStepConditions: string[]; }[] | undefined; remainingSteps?: string[] | undefined; toolUsageHistory?: { toolName: string; usedAt: string; effectivenessScore?: number | undefined; }[] | undefined; }[]; metadata: { userAgent: string; clientId: string; }; }; export declare const sampleRecommendationContext: { previousTools: string[]; currentProblemType: string; userPreferences: { verbosity: string; style: string; }; sessionLength: number; successRate: number; }; export declare const expectedRecommendations: { toolName: string; confidence: number; reason: string; }[];