UNPKG

@emmahyde/thinking-patterns

Version:

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

1,024 lines (1,023 loc) 45.2 kB
import { z } from 'zod'; /** * Visual Reasoning Schema * * Defines the structure for diagram-based thinking and visual problem solving. * Includes spatial relationships, visual patterns, cognitive load analysis, * and diagram effectiveness assessment for comprehensive visual reasoning. */ export declare const SpatialRelationshipSchema: z.ZodObject<{ type: z.ZodEnum<["adjacent", "overlapping", "contained", "above", "below", "left", "right", "diagonal", "connected", "disconnected"]>; elementA: z.ZodString; elementB: z.ZodString; strength: z.ZodOptional<z.ZodNumber>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "adjacent" | "overlapping" | "contained" | "above" | "below" | "left" | "right" | "diagonal" | "connected" | "disconnected"; elementA: string; elementB: string; description?: string | undefined; strength?: number | undefined; }, { type: "adjacent" | "overlapping" | "contained" | "above" | "below" | "left" | "right" | "diagonal" | "connected" | "disconnected"; elementA: string; elementB: string; description?: string | undefined; strength?: number | undefined; }>; export declare const VisualPatternSchema: z.ZodObject<{ id: z.ZodOptional<z.ZodString>; type: z.ZodEnum<["symmetry", "repetition", "hierarchy", "flow", "clustering", "alignment", "progression", "contrast"]>; elements: z.ZodArray<z.ZodString, "many">; confidence: z.ZodNumber; significance: z.ZodEnum<["low", "medium", "high"]>; description: z.ZodString; }, "strip", z.ZodTypeAny, { type: "symmetry" | "repetition" | "hierarchy" | "flow" | "clustering" | "alignment" | "progression" | "contrast"; description: string; confidence: number; elements: string[]; significance: "low" | "medium" | "high"; id?: string | undefined; }, { type: "symmetry" | "repetition" | "hierarchy" | "flow" | "clustering" | "alignment" | "progression" | "contrast"; description: string; confidence: number; elements: string[]; significance: "low" | "medium" | "high"; id?: string | undefined; }>; export declare const CognitiveLoadSchema: z.ZodObject<{ complexity: z.ZodEnum<["low", "medium", "high", "overwhelming"]>; elementCount: z.ZodNumber; connectionDensity: z.ZodNumber; hierarchyDepth: z.ZodOptional<z.ZodNumber>; informationDensity: z.ZodEnum<["sparse", "moderate", "dense", "cluttered"]>; readabilityScore: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { complexity: "low" | "medium" | "high" | "overwhelming"; elementCount: number; connectionDensity: number; informationDensity: "sparse" | "moderate" | "dense" | "cluttered"; hierarchyDepth?: number | undefined; readabilityScore?: number | undefined; }, { complexity: "low" | "medium" | "high" | "overwhelming"; elementCount: number; connectionDensity: number; informationDensity: "sparse" | "moderate" | "dense" | "cluttered"; hierarchyDepth?: number | undefined; readabilityScore?: number | undefined; }>; export declare const ReasoningStepSchema: z.ZodObject<{ id: z.ZodOptional<z.ZodString>; stepNumber: z.ZodNumber; type: z.ZodEnum<["observation", "inference", "hypothesis", "validation", "conclusion"]>; description: z.ZodString; evidence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; confidence: z.ZodNumber; dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { type: "validation" | "conclusion" | "observation" | "inference" | "hypothesis"; description: string; confidence: number; stepNumber: number; id?: string | undefined; evidence?: string[] | undefined; dependencies?: string[] | undefined; }, { type: "validation" | "conclusion" | "observation" | "inference" | "hypothesis"; description: string; confidence: number; stepNumber: number; id?: string | undefined; evidence?: string[] | undefined; dependencies?: string[] | undefined; }>; export declare const VisualElementSchema: z.ZodObject<{ id: z.ZodString; type: z.ZodEnum<["node", "edge", "container", "annotation", "shape", "text", "image", "connector"]>; label: z.ZodOptional<z.ZodString>; properties: z.ZodUnion<[z.ZodObject<{ position: z.ZodOptional<z.ZodObject<{ x: z.ZodOptional<z.ZodNumber>; y: z.ZodOptional<z.ZodNumber>; z: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { x?: number | undefined; y?: number | undefined; z?: number | undefined; }, { x?: number | undefined; y?: number | undefined; z?: number | undefined; }>>; dimensions: z.ZodOptional<z.ZodObject<{ width: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>; depth: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { width?: number | undefined; height?: number | undefined; depth?: number | undefined; }, { width?: number | undefined; height?: number | undefined; depth?: number | undefined; }>>; style: z.ZodOptional<z.ZodObject<{ color: z.ZodOptional<z.ZodString>; shape: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodEnum<["small", "medium", "large"]>>; opacity: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { shape?: string | undefined; color?: string | undefined; size?: "medium" | "small" | "large" | undefined; opacity?: number | undefined; }, { shape?: string | undefined; color?: string | undefined; size?: "medium" | "small" | "large" | undefined; opacity?: number | undefined; }>>; semantics: z.ZodOptional<z.ZodObject<{ meaning: z.ZodOptional<z.ZodString>; importance: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>; category: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { category?: string | undefined; meaning?: string | undefined; importance?: "low" | "medium" | "high" | "critical" | undefined; }, { category?: string | undefined; meaning?: string | undefined; importance?: "low" | "medium" | "high" | "critical" | undefined; }>>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { style?: { shape?: string | undefined; color?: string | undefined; size?: "medium" | "small" | "large" | undefined; opacity?: number | undefined; } | undefined; position?: { x?: number | undefined; y?: number | undefined; z?: number | undefined; } | undefined; dimensions?: { width?: number | undefined; height?: number | undefined; depth?: number | undefined; } | undefined; semantics?: { category?: string | undefined; meaning?: string | undefined; importance?: "low" | "medium" | "high" | "critical" | undefined; } | undefined; metadata?: Record<string, unknown> | undefined; }, { style?: { shape?: string | undefined; color?: string | undefined; size?: "medium" | "small" | "large" | undefined; opacity?: number | undefined; } | undefined; position?: { x?: number | undefined; y?: number | undefined; z?: number | undefined; } | undefined; dimensions?: { width?: number | undefined; height?: number | undefined; depth?: number | undefined; } | undefined; semantics?: { category?: string | undefined; meaning?: string | undefined; importance?: "low" | "medium" | "high" | "critical" | undefined; } | undefined; metadata?: Record<string, unknown> | undefined; }>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; source: z.ZodOptional<z.ZodString>; target: z.ZodOptional<z.ZodString>; contains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; connectedTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { type: "shape" | "text" | "node" | "edge" | "container" | "annotation" | "image" | "connector"; properties: Record<string, unknown> | { style?: { shape?: string | undefined; color?: string | undefined; size?: "medium" | "small" | "large" | undefined; opacity?: number | undefined; } | undefined; position?: { x?: number | undefined; y?: number | undefined; z?: number | undefined; } | undefined; dimensions?: { width?: number | undefined; height?: number | undefined; depth?: number | undefined; } | undefined; semantics?: { category?: string | undefined; meaning?: string | undefined; importance?: "low" | "medium" | "high" | "critical" | undefined; } | undefined; metadata?: Record<string, unknown> | undefined; }; id: string; source?: string | undefined; label?: string | undefined; target?: string | undefined; contains?: string[] | undefined; connectedTo?: string[] | undefined; }, { type: "shape" | "text" | "node" | "edge" | "container" | "annotation" | "image" | "connector"; properties: Record<string, unknown> | { style?: { shape?: string | undefined; color?: string | undefined; size?: "medium" | "small" | "large" | undefined; opacity?: number | undefined; } | undefined; position?: { x?: number | undefined; y?: number | undefined; z?: number | undefined; } | undefined; dimensions?: { width?: number | undefined; height?: number | undefined; depth?: number | undefined; } | undefined; semantics?: { category?: string | undefined; meaning?: string | undefined; importance?: "low" | "medium" | "high" | "critical" | undefined; } | undefined; metadata?: Record<string, unknown> | undefined; }; id: string; source?: string | undefined; label?: string | undefined; target?: string | undefined; contains?: string[] | undefined; connectedTo?: string[] | undefined; }>; export declare const DiagramAnalysisSchema: z.ZodObject<{ structure: z.ZodObject<{ type: z.ZodEnum<["hierarchical", "network", "linear", "circular", "matrix", "hybrid"]>; balance: z.ZodOptional<z.ZodEnum<["symmetric", "asymmetric", "radial"]>>; flow: z.ZodOptional<z.ZodEnum<["top-down", "bottom-up", "left-right", "right-left", "circular", "random"]>>; }, "strip", z.ZodTypeAny, { type: "hierarchical" | "network" | "linear" | "circular" | "matrix" | "hybrid"; flow?: "circular" | "top-down" | "bottom-up" | "left-right" | "right-left" | "random" | undefined; balance?: "symmetric" | "asymmetric" | "radial" | undefined; }, { type: "hierarchical" | "network" | "linear" | "circular" | "matrix" | "hybrid"; flow?: "circular" | "top-down" | "bottom-up" | "left-right" | "right-left" | "random" | undefined; balance?: "symmetric" | "asymmetric" | "radial" | undefined; }>; patterns: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; type: z.ZodEnum<["symmetry", "repetition", "hierarchy", "flow", "clustering", "alignment", "progression", "contrast"]>; elements: z.ZodArray<z.ZodString, "many">; confidence: z.ZodNumber; significance: z.ZodEnum<["low", "medium", "high"]>; description: z.ZodString; }, "strip", z.ZodTypeAny, { type: "symmetry" | "repetition" | "hierarchy" | "flow" | "clustering" | "alignment" | "progression" | "contrast"; description: string; confidence: number; elements: string[]; significance: "low" | "medium" | "high"; id?: string | undefined; }, { type: "symmetry" | "repetition" | "hierarchy" | "flow" | "clustering" | "alignment" | "progression" | "contrast"; description: string; confidence: number; elements: string[]; significance: "low" | "medium" | "high"; id?: string | undefined; }>, "many">>; relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["adjacent", "overlapping", "contained", "above", "below", "left", "right", "diagonal", "connected", "disconnected"]>; elementA: z.ZodString; elementB: z.ZodString; strength: z.ZodOptional<z.ZodNumber>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "adjacent" | "overlapping" | "contained" | "above" | "below" | "left" | "right" | "diagonal" | "connected" | "disconnected"; elementA: string; elementB: string; description?: string | undefined; strength?: number | undefined; }, { type: "adjacent" | "overlapping" | "contained" | "above" | "below" | "left" | "right" | "diagonal" | "connected" | "disconnected"; elementA: string; elementB: string; description?: string | undefined; strength?: number | undefined; }>, "many">>; cognitiveLoad: z.ZodOptional<z.ZodObject<{ complexity: z.ZodEnum<["low", "medium", "high", "overwhelming"]>; elementCount: z.ZodNumber; connectionDensity: z.ZodNumber; hierarchyDepth: z.ZodOptional<z.ZodNumber>; informationDensity: z.ZodEnum<["sparse", "moderate", "dense", "cluttered"]>; readabilityScore: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { complexity: "low" | "medium" | "high" | "overwhelming"; elementCount: number; connectionDensity: number; informationDensity: "sparse" | "moderate" | "dense" | "cluttered"; hierarchyDepth?: number | undefined; readabilityScore?: number | undefined; }, { complexity: "low" | "medium" | "high" | "overwhelming"; elementCount: number; connectionDensity: number; informationDensity: "sparse" | "moderate" | "dense" | "cluttered"; hierarchyDepth?: number | undefined; readabilityScore?: number | undefined; }>>; effectiveness: z.ZodOptional<z.ZodObject<{ clarity: z.ZodNumber; completeness: z.ZodNumber; efficiency: z.ZodNumber; }, "strip", z.ZodTypeAny, { clarity: number; completeness: number; efficiency: number; }, { clarity: number; completeness: number; efficiency: number; }>>; }, "strip", z.ZodTypeAny, { structure: { type: "hierarchical" | "network" | "linear" | "circular" | "matrix" | "hybrid"; flow?: "circular" | "top-down" | "bottom-up" | "left-right" | "right-left" | "random" | undefined; balance?: "symmetric" | "asymmetric" | "radial" | undefined; }; patterns?: { type: "symmetry" | "repetition" | "hierarchy" | "flow" | "clustering" | "alignment" | "progression" | "contrast"; description: string; confidence: number; elements: string[]; significance: "low" | "medium" | "high"; id?: string | undefined; }[] | undefined; effectiveness?: { clarity: number; completeness: number; efficiency: number; } | undefined; relationships?: { type: "adjacent" | "overlapping" | "contained" | "above" | "below" | "left" | "right" | "diagonal" | "connected" | "disconnected"; elementA: string; elementB: string; description?: string | undefined; strength?: number | undefined; }[] | undefined; cognitiveLoad?: { complexity: "low" | "medium" | "high" | "overwhelming"; elementCount: number; connectionDensity: number; informationDensity: "sparse" | "moderate" | "dense" | "cluttered"; hierarchyDepth?: number | undefined; readabilityScore?: number | undefined; } | undefined; }, { structure: { type: "hierarchical" | "network" | "linear" | "circular" | "matrix" | "hybrid"; flow?: "circular" | "top-down" | "bottom-up" | "left-right" | "right-left" | "random" | undefined; balance?: "symmetric" | "asymmetric" | "radial" | undefined; }; patterns?: { type: "symmetry" | "repetition" | "hierarchy" | "flow" | "clustering" | "alignment" | "progression" | "contrast"; description: string; confidence: number; elements: string[]; significance: "low" | "medium" | "high"; id?: string | undefined; }[] | undefined; effectiveness?: { clarity: number; completeness: number; efficiency: number; } | undefined; relationships?: { type: "adjacent" | "overlapping" | "contained" | "above" | "below" | "left" | "right" | "diagonal" | "connected" | "disconnected"; elementA: string; elementB: string; description?: string | undefined; strength?: number | undefined; }[] | undefined; cognitiveLoad?: { complexity: "low" | "medium" | "high" | "overwhelming"; elementCount: number; connectionDensity: number; informationDensity: "sparse" | "moderate" | "dense" | "cluttered"; hierarchyDepth?: number | undefined; readabilityScore?: number | undefined; } | undefined; }>; export declare const VisualReasoningSchema: z.ZodObject<{ operation: z.ZodEnum<["create", "update", "delete", "transform", "observe", "analyze", "compare", "synthesize"]>; diagramId: z.ZodString; diagramType: z.ZodEnum<["graph", "flowchart", "state-diagram", "concept-map", "tree-diagram", "network-diagram", "mind-map", "organization-chart", "custom"]>; elements: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; type: z.ZodEnum<["node", "edge", "container", "annotation", "shape", "text", "image", "connector"]>; label: z.ZodOptional<z.ZodString>; properties: z.ZodUnion<[z.ZodObject<{ position: z.ZodOptional<z.ZodObject<{ x: z.ZodOptional<z.ZodNumber>; y: z.ZodOptional<z.ZodNumber>; z: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { x?: number | undefined; y?: number | undefined; z?: number | undefined; }, { x?: number | undefined; y?: number | undefined; z?: number | undefined; }>>; dimensions: z.ZodOptional<z.ZodObject<{ width: z.ZodOptional<z.ZodNumber>; height: z.ZodOptional<z.ZodNumber>; depth: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { width?: number | undefined; height?: number | undefined; depth?: number | undefined; }, { width?: number | undefined; height?: number | undefined; depth?: number | undefined; }>>; style: z.ZodOptional<z.ZodObject<{ color: z.ZodOptional<z.ZodString>; shape: z.ZodOptional<z.ZodString>; size: z.ZodOptional<z.ZodEnum<["small", "medium", "large"]>>; opacity: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { shape?: string | undefined; color?: string | undefined; size?: "medium" | "small" | "large" | undefined; opacity?: number | undefined; }, { shape?: string | undefined; color?: string | undefined; size?: "medium" | "small" | "large" | undefined; opacity?: number | undefined; }>>; semantics: z.ZodOptional<z.ZodObject<{ meaning: z.ZodOptional<z.ZodString>; importance: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>; category: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { category?: string | undefined; meaning?: string | undefined; importance?: "low" | "medium" | "high" | "critical" | undefined; }, { category?: string | undefined; meaning?: string | undefined; importance?: "low" | "medium" | "high" | "critical" | undefined; }>>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { style?: { shape?: string | undefined; color?: string | undefined; size?: "medium" | "small" | "large" | undefined; opacity?: number | undefined; } | undefined; position?: { x?: number | undefined; y?: number | undefined; z?: number | undefined; } | undefined; dimensions?: { width?: number | undefined; height?: number | undefined; depth?: number | undefined; } | undefined; semantics?: { category?: string | undefined; meaning?: string | undefined; importance?: "low" | "medium" | "high" | "critical" | undefined; } | undefined; metadata?: Record<string, unknown> | undefined; }, { style?: { shape?: string | undefined; color?: string | undefined; size?: "medium" | "small" | "large" | undefined; opacity?: number | undefined; } | undefined; position?: { x?: number | undefined; y?: number | undefined; z?: number | undefined; } | undefined; dimensions?: { width?: number | undefined; height?: number | undefined; depth?: number | undefined; } | undefined; semantics?: { category?: string | undefined; meaning?: string | undefined; importance?: "low" | "medium" | "high" | "critical" | undefined; } | undefined; metadata?: Record<string, unknown> | undefined; }>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>; source: z.ZodOptional<z.ZodString>; target: z.ZodOptional<z.ZodString>; contains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; connectedTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { type: "shape" | "text" | "node" | "edge" | "container" | "annotation" | "image" | "connector"; properties: Record<string, unknown> | { style?: { shape?: string | undefined; color?: string | undefined; size?: "medium" | "small" | "large" | undefined; opacity?: number | undefined; } | undefined; position?: { x?: number | undefined; y?: number | undefined; z?: number | undefined; } | undefined; dimensions?: { width?: number | undefined; height?: number | undefined; depth?: number | undefined; } | undefined; semantics?: { category?: string | undefined; meaning?: string | undefined; importance?: "low" | "medium" | "high" | "critical" | undefined; } | undefined; metadata?: Record<string, unknown> | undefined; }; id: string; source?: string | undefined; label?: string | undefined; target?: string | undefined; contains?: string[] | undefined; connectedTo?: string[] | undefined; }, { type: "shape" | "text" | "node" | "edge" | "container" | "annotation" | "image" | "connector"; properties: Record<string, unknown> | { style?: { shape?: string | undefined; color?: string | undefined; size?: "medium" | "small" | "large" | undefined; opacity?: number | undefined; } | undefined; position?: { x?: number | undefined; y?: number | undefined; z?: number | undefined; } | undefined; dimensions?: { width?: number | undefined; height?: number | undefined; depth?: number | undefined; } | undefined; semantics?: { category?: string | undefined; meaning?: string | undefined; importance?: "low" | "medium" | "high" | "critical" | undefined; } | undefined; metadata?: Record<string, unknown> | undefined; }; id: string; source?: string | undefined; label?: string | undefined; target?: string | undefined; contains?: string[] | undefined; connectedTo?: string[] | undefined; }>, "many">>; transformationType: z.ZodOptional<z.ZodEnum<["rotate", "move", "resize", "recolor", "regroup", "restructure", "annotate", "highlight"]>>; transformationDetails: z.ZodOptional<z.ZodObject<{ target: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; rationale: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { rationale?: string | undefined; parameters?: Record<string, unknown> | undefined; target?: string[] | undefined; }, { rationale?: string | undefined; parameters?: Record<string, unknown> | undefined; target?: string[] | undefined; }>>; reasoningChain: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; stepNumber: z.ZodNumber; type: z.ZodEnum<["observation", "inference", "hypothesis", "validation", "conclusion"]>; description: z.ZodString; evidence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; confidence: z.ZodNumber; dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { type: "validation" | "conclusion" | "observation" | "inference" | "hypothesis"; description: string; confidence: number; stepNumber: number; id?: string | undefined; evidence?: string[] | undefined; dependencies?: string[] | undefined; }, { type: "validation" | "conclusion" | "observation" | "inference" | "hypothesis"; description: string; confidence: number; stepNumber: number; id?: string | undefined; evidence?: string[] | undefined; dependencies?: string[] | undefined; }>, "many">>; iteration: z.ZodNumber; observation: z.ZodOptional<z.ZodString>; insight: z.ZodOptional<z.ZodString>; hypothesis: z.ZodOptional<z.ZodString>; diagramAnalysis: z.ZodOptional<z.ZodObject<{ structure: z.ZodObject<{ type: z.ZodEnum<["hierarchical", "network", "linear", "circular", "matrix", "hybrid"]>; balance: z.ZodOptional<z.ZodEnum<["symmetric", "asymmetric", "radial"]>>; flow: z.ZodOptional<z.ZodEnum<["top-down", "bottom-up", "left-right", "right-left", "circular", "random"]>>; }, "strip", z.ZodTypeAny, { type: "hierarchical" | "network" | "linear" | "circular" | "matrix" | "hybrid"; flow?: "circular" | "top-down" | "bottom-up" | "left-right" | "right-left" | "random" | undefined; balance?: "symmetric" | "asymmetric" | "radial" | undefined; }, { type: "hierarchical" | "network" | "linear" | "circular" | "matrix" | "hybrid"; flow?: "circular" | "top-down" | "bottom-up" | "left-right" | "right-left" | "random" | undefined; balance?: "symmetric" | "asymmetric" | "radial" | undefined; }>; patterns: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodOptional<z.ZodString>; type: z.ZodEnum<["symmetry", "repetition", "hierarchy", "flow", "clustering", "alignment", "progression", "contrast"]>; elements: z.ZodArray<z.ZodString, "many">; confidence: z.ZodNumber; significance: z.ZodEnum<["low", "medium", "high"]>; description: z.ZodString; }, "strip", z.ZodTypeAny, { type: "symmetry" | "repetition" | "hierarchy" | "flow" | "clustering" | "alignment" | "progression" | "contrast"; description: string; confidence: number; elements: string[]; significance: "low" | "medium" | "high"; id?: string | undefined; }, { type: "symmetry" | "repetition" | "hierarchy" | "flow" | "clustering" | "alignment" | "progression" | "contrast"; description: string; confidence: number; elements: string[]; significance: "low" | "medium" | "high"; id?: string | undefined; }>, "many">>; relationships: z.ZodOptional<z.ZodArray<z.ZodObject<{ type: z.ZodEnum<["adjacent", "overlapping", "contained", "above", "below", "left", "right", "diagonal", "connected", "disconnected"]>; elementA: z.ZodString; elementB: z.ZodString; strength: z.ZodOptional<z.ZodNumber>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type: "adjacent" | "overlapping" | "contained" | "above" | "below" | "left" | "right" | "diagonal" | "connected" | "disconnected"; elementA: string; elementB: string; description?: string | undefined; strength?: number | undefined; }, { type: "adjacent" | "overlapping" | "contained" | "above" | "below" | "left" | "right" | "diagonal" | "connected" | "disconnected"; elementA: string; elementB: string; description?: string | undefined; strength?: number | undefined; }>, "many">>; cognitiveLoad: z.ZodOptional<z.ZodObject<{ complexity: z.ZodEnum<["low", "medium", "high", "overwhelming"]>; elementCount: z.ZodNumber; connectionDensity: z.ZodNumber; hierarchyDepth: z.ZodOptional<z.ZodNumber>; informationDensity: z.ZodEnum<["sparse", "moderate", "dense", "cluttered"]>; readabilityScore: z.ZodOptional<z.ZodNumber>; }, "strip", z.ZodTypeAny, { complexity: "low" | "medium" | "high" | "overwhelming"; elementCount: number; connectionDensity: number; informationDensity: "sparse" | "moderate" | "dense" | "cluttered"; hierarchyDepth?: number | undefined; readabilityScore?: number | undefined; }, { complexity: "low" | "medium" | "high" | "overwhelming"; elementCount: number; connectionDensity: number; informationDensity: "sparse" | "moderate" | "dense" | "cluttered"; hierarchyDepth?: number | undefined; readabilityScore?: number | undefined; }>>; effectiveness: z.ZodOptional<z.ZodObject<{ clarity: z.ZodNumber; completeness: z.ZodNumber; efficiency: z.ZodNumber; }, "strip", z.ZodTypeAny, { clarity: number; completeness: number; efficiency: number; }, { clarity: number; completeness: number; efficiency: number; }>>; }, "strip", z.ZodTypeAny, { structure: { type: "hierarchical" | "network" | "linear" | "circular" | "matrix" | "hybrid"; flow?: "circular" | "top-down" | "bottom-up" | "left-right" | "right-left" | "random" | undefined; balance?: "symmetric" | "asymmetric" | "radial" | undefined; }; patterns?: { type: "symmetry" | "repetition" | "hierarchy" | "flow" | "clustering" | "alignment" | "progression" | "contrast"; description: string; confidence: number; elements: string[]; significance: "low" | "medium" | "high"; id?: string | undefined; }[] | undefined; effectiveness?: { clarity: number; completeness: number; efficiency: number; } | undefined; relationships?: { type: "adjacent" | "overlapping" | "contained" | "above" | "below" | "left" | "right" | "diagonal" | "connected" | "disconnected"; elementA: string; elementB: string; description?: string | undefined; strength?: number | undefined; }[] | undefined; cognitiveLoad?: { complexity: "low" | "medium" | "high" | "overwhelming"; elementCount: number; connectionDensity: number; informationDensity: "sparse" | "moderate" | "dense" | "cluttered"; hierarchyDepth?: number | undefined; readabilityScore?: number | undefined; } | undefined; }, { structure: { type: "hierarchical" | "network" | "linear" | "circular" | "matrix" | "hybrid"; flow?: "circular" | "top-down" | "bottom-up" | "left-right" | "right-left" | "random" | undefined; balance?: "symmetric" | "asymmetric" | "radial" | undefined; }; patterns?: { type: "symmetry" | "repetition" | "hierarchy" | "flow" | "clustering" | "alignment" | "progression" | "contrast"; description: string; confidence: number; elements: string[]; significance: "low" | "medium" | "high"; id?: string | undefined; }[] | undefined; effectiveness?: { clarity: number; completeness: number; efficiency: number; } | undefined; relationships?: { type: "adjacent" | "overlapping" | "contained" | "above" | "below" | "left" | "right" | "diagonal" | "connected" | "disconnected"; elementA: string; elementB: string; description?: string | undefined; strength?: number | undefined; }[] | undefined; cognitiveLoad?: { complexity: "low" | "medium" | "high" | "overwhelming"; elementCount: number; connectionDensity: number; informationDensity: "sparse" | "moderate" | "dense" | "cluttered"; hierarchyDepth?: number | undefined; readabilityScore?: number | undefined; } | undefined; }>>; recommendations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; nextOperationNeeded: z.ZodBoolean; suggestedOperations: z.ZodOptional<z.ZodArray<z.ZodEnum<["create", "update", "delete", "transform", "observe", "analyze", "compare", "synthesize"]>, "many">>; purpose: z.ZodOptional<z.ZodString>; audience: z.ZodOptional<z.ZodString>; context: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { iteration: number; operation: "create" | "update" | "delete" | "transform" | "observe" | "analyze" | "compare" | "synthesize"; diagramId: string; diagramType: "custom" | "graph" | "flowchart" | "state-diagram" | "concept-map" | "tree-diagram" | "network-diagram" | "mind-map" | "organization-chart"; nextOperationNeeded: boolean; observation?: string | undefined; recommendations?: string[] | undefined; insight?: string | undefined; hypothesis?: string | undefined; elements?: { type: "shape" | "text" | "node" | "edge" | "container" | "annotation" | "image" | "connector"; properties: Record<string, unknown> | { style?: { shape?: string | undefined; color?: string | undefined; size?: "medium" | "small" | "large" | undefined; opacity?: number | undefined; } | undefined; position?: { x?: number | undefined; y?: number | undefined; z?: number | undefined; } | undefined; dimensions?: { width?: number | undefined; height?: number | undefined; depth?: number | undefined; } | undefined; semantics?: { category?: string | undefined; meaning?: string | undefined; importance?: "low" | "medium" | "high" | "critical" | undefined; } | undefined; metadata?: Record<string, unknown> | undefined; }; id: string; source?: string | undefined; label?: string | undefined; target?: string | undefined; contains?: string[] | undefined; connectedTo?: string[] | undefined; }[] | undefined; transformationType?: "rotate" | "move" | "resize" | "recolor" | "regroup" | "restructure" | "annotate" | "highlight" | undefined; transformationDetails?: { rationale?: string | undefined; parameters?: Record<string, unknown> | undefined; target?: string[] | undefined; } | undefined; reasoningChain?: { type: "validation" | "conclusion" | "observation" | "inference" | "hypothesis"; description: string; confidence: number; stepNumber: number; id?: string | undefined; evidence?: string[] | undefined; dependencies?: string[] | undefined; }[] | undefined; diagramAnalysis?: { structure: { type: "hierarchical" | "network" | "linear" | "circular" | "matrix" | "hybrid"; flow?: "circular" | "top-down" | "bottom-up" | "left-right" | "right-left" | "random" | undefined; balance?: "symmetric" | "asymmetric" | "radial" | undefined; }; patterns?: { type: "symmetry" | "repetition" | "hierarchy" | "flow" | "clustering" | "alignment" | "progression" | "contrast"; description: string; confidence: number; elements: string[]; significance: "low" | "medium" | "high"; id?: string | undefined; }[] | undefined; effectiveness?: { clarity: number; completeness: number; efficiency: number; } | undefined; relationships?: { type: "adjacent" | "overlapping" | "contained" | "above" | "below" | "left" | "right" | "diagonal" | "connected" | "disconnected"; elementA: string; elementB: string; description?: string | undefined; strength?: number | undefined; }[] | undefined; cognitiveLoad?: { complexity: "low" | "medium" | "high" | "overwhelming"; elementCount: number; connectionDensity: number; informationDensity: "sparse" | "moderate" | "dense" | "cluttered"; hierarchyDepth?: number | undefined; readabilityScore?: number | undefined; } | undefined; } | undefined; suggestedOperations?: ("create" | "update" | "delete" | "transform" | "observe" | "analyze" | "compare" | "synthesize")[] | undefined; purpose?: string | undefined; audience?: string | undefined; context?: string | undefined; }, { iteration: number; operation: "create" | "update" | "delete" | "transform" | "observe" | "analyze" | "compare" | "synthesize"; diagramId: string; diagramType: "custom" | "graph" | "flowchart" | "state-diagram" | "concept-map" | "tree-diagram" | "network-diagram" | "mind-map" | "organization-chart"; nextOperationNeeded: boolean; observation?: string | undefined; recommendations?: string[] | undefined; insight?: string | undefined; hypothesis?: string | undefined; elements?: { type: "shape" | "text" | "node" | "edge" | "container" | "annotation" | "image" | "connector"; properties: Record<string, unknown> | { style?: { shape?: string | undefined; color?: string | undefined; size?: "medium" | "small" | "large" | undefined; opacity?: number | undefined; } | undefined; position?: { x?: number | undefined; y?: number | undefined; z?: number | undefined; } | undefined; dimensions?: { width?: number | undefined; height?: number | undefined; depth?: number | undefined; } | undefined; semantics?: { category?: string | undefined; meaning?: string | undefined; importance?: "low" | "medium" | "high" | "critical" | undefined; } | undefined; metadata?: Record<string, unknown> | undefined; }; id: string; source?: string | undefined; label?: string | undefined; target?: string | undefined; contains?: string[] | undefined; connectedTo?: string[] | undefined; }[] | undefined; transformationType?: "rotate" | "move" | "resize" | "recolor" | "regroup" | "restructure" | "annotate" | "highlight" | undefined; transformationDetails?: { rationale?: string | undefined; parameters?: Record<string, unknown> | undefined; target?: string[] | undefined; } | undefined; reasoningChain?: { type: "validation" | "conclusion" | "observation" | "inference" | "hypothesis"; description: string; confidence: number; stepNumber: number; id?: string | undefined; evidence?: string[] | undefined; dependencies?: string[] | undefined; }[] | undefined; diagramAnalysis?: { structure: { type: "hierarchical" | "network" | "linear" | "circular" | "matrix" | "hybrid"; flow?: "circular" | "top-down" | "bottom-up" | "left-right" | "right-left" | "random" | undefined; balance?: "symmetric" | "asymmetric" | "radial" | undefined; }; patterns?: { type: "symmetry" | "repetition" | "hierarchy" | "flow" | "clustering" | "alignment" | "progression" | "contrast"; description: string; confidence: number; elements: string[]; significance: "low" | "medium" | "high"; id?: string | undefined; }[] | undefined; effectiveness?: { clarity: number; completeness: number; efficiency: number; } | undefined; relationships?: { type: "adjacent" | "overlapping" | "contained" | "above" | "below" | "left" | "right" | "diagonal" | "connected" | "disconnected"; elementA: string; elementB: string; description?: string | undefined; strength?: number | undefined; }[] | undefined; cognitiveLoad?: { complexity: "low" | "medium" | "high" | "overwhelming"; elementCount: number; connectionDensity: number; informationDensity: "sparse" | "moderate" | "dense" | "cluttered"; hierarchyDepth?: number | undefined; readabilityScore?: number | undefined; } | undefined; } | undefined; suggestedOperations?: ("create" | "update" | "delete" | "transform" | "observe" | "analyze" | "compare" | "synthesize")[] | undefined; purpose?: string | undefined; audience?: string | undefined; context?: string | undefined; }>; export type VisualReasoningData = z.infer<typeof VisualReasoningSchema>; export type VisualElementData = z.infer<typeof VisualElementSchema>; export type SpatialRelationshipData = z.infer<typeof SpatialRelationshipSchema>; export type VisualPatternData = z.infer<typeof VisualPatternSchema>; export type CognitiveLoadData = z.infer<typeof CognitiveLoadSchema>; export type ReasoningStepData = z.infer<typeof ReasoningStepSchema>; export type DiagramAnalysisData = z.infer<typeof DiagramAnalysisSchema>;