UNPKG

@emmahyde/thinking-patterns

Version:

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

327 lines (326 loc) 11.1 kB
import { z } from 'zod'; /** * Sequential Thought Schema * * Defines the structure for step-by-step sequential thinking and problem-solving. * Includes tool recommendations, step tracking, complexity assessment, * and adaptive reasoning processes for systematic analysis. */ export declare const StepRecommendationSchema: z.ZodObject<{ stepDescription: z.ZodString; recommendedTools: z.ZodArray<z.ZodObject<{ toolName: z.ZodString; confidence: z.ZodNumber; rationale: z.ZodString; priority: z.ZodNumber; alternativeTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { toolName: string; confidence: number; rationale: string; priority: number; alternativeTools?: string[] | undefined; }, { toolName: string; confidence: number; rationale: string; priority: number; alternativeTools?: string[] | undefined; }>, "many">; expectedOutcome: z.ZodString; nextStepConditions: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { stepDescription: string; recommendedTools: { toolName: string; confidence: number; rationale: string; priority: number; alternativeTools?: string[] | undefined; }[]; expectedOutcome: string; nextStepConditions: string[]; }, { stepDescription: string; recommendedTools: { toolName: string; confidence: number; rationale: string; priority: number; alternativeTools?: string[] | undefined; }[]; expectedOutcome: string; nextStepConditions: string[]; }>; export declare const CurrentStepSchema: z.ZodObject<{ stepDescription: z.ZodString; recommendedTools: z.ZodArray<z.ZodObject<{ toolName: z.ZodString; confidence: z.ZodNumber; rationale: z.ZodString; priority: z.ZodNumber; alternativeTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { toolName: string; confidence: number; rationale: string; priority: number; alternativeTools?: string[] | undefined; }, { toolName: string; confidence: number; rationale: string; priority: number; alternativeTools?: string[] | undefined; }>, "many">; expectedOutcome: z.ZodString; nextStepConditions: z.ZodArray<z.ZodString, "many">; } & { stepNumber: z.ZodOptional<z.ZodNumber>; estimatedDuration: z.ZodOptional<z.ZodString>; complexityLevel: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>; }, "strip", z.ZodTypeAny, { 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; }, { 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; }>; export declare const SequentialThoughtSchema: z.ZodObject<{ thought: z.ZodString; thoughtNumber: z.ZodNumber; totalThoughts: z.ZodNumber; nextThoughtNeeded: z.ZodBoolean; isRevision: z.ZodOptional<z.ZodBoolean>; revisesThought: z.ZodOptional<z.ZodNumber>; branchFromThought: z.ZodOptional<z.ZodNumber>; branchId: z.ZodOptional<z.ZodString>; needsMoreThoughts: z.ZodOptional<z.ZodBoolean>; currentStep: z.ZodOptional<z.ZodObject<{ stepDescription: z.ZodString; recommendedTools: z.ZodArray<z.ZodObject<{ toolName: z.ZodString; confidence: z.ZodNumber; rationale: z.ZodString; priority: z.ZodNumber; alternativeTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { toolName: string; confidence: number; rationale: string; priority: number; alternativeTools?: string[] | undefined; }, { toolName: string; confidence: number; rationale: string; priority: number; alternativeTools?: string[] | undefined; }>, "many">; expectedOutcome: z.ZodString; nextStepConditions: z.ZodArray<z.ZodString, "many">; } & { stepNumber: z.ZodOptional<z.ZodNumber>; estimatedDuration: z.ZodOptional<z.ZodString>; complexityLevel: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>; }, "strip", z.ZodTypeAny, { 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; }, { 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; }>>; previousSteps: z.ZodOptional<z.ZodArray<z.ZodObject<{ stepDescription: z.ZodString; recommendedTools: z.ZodArray<z.ZodObject<{ toolName: z.ZodString; confidence: z.ZodNumber; rationale: z.ZodString; priority: z.ZodNumber; alternativeTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { toolName: string; confidence: number; rationale: string; priority: number; alternativeTools?: string[] | undefined; }, { toolName: string; confidence: number; rationale: string; priority: number; alternativeTools?: string[] | undefined; }>, "many">; expectedOutcome: z.ZodString; nextStepConditions: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { stepDescription: string; recommendedTools: { toolName: string; confidence: number; rationale: string; priority: number; alternativeTools?: string[] | undefined; }[]; expectedOutcome: string; nextStepConditions: string[]; }, { stepDescription: string; recommendedTools: { toolName: string; confidence: number; rationale: string; priority: number; alternativeTools?: string[] | undefined; }[]; expectedOutcome: string; nextStepConditions: string[]; }>, "many">>; remainingSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; toolUsageHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{ toolName: z.ZodString; usedAt: z.ZodString; effectivenessScore: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { toolName: string; usedAt: string; effectivenessScore?: number | undefined; }, { toolName: string; usedAt: string; effectivenessScore?: number | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { 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; }, { 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 type StepRecommendationData = z.infer<typeof StepRecommendationSchema>; export type CurrentStepData = z.infer<typeof CurrentStepSchema>; export type SequentialThoughtData = z.infer<typeof SequentialThoughtSchema>;