@emmahyde/thinking-patterns
Version:
MCP server combining systematic thinking, mental models, debugging approaches, and stochastic algorithms for comprehensive cognitive pattern support
616 lines (615 loc) • 29.6 kB
TypeScript
import { z } from 'zod';
/**
* Debugging Approach Schema
*
* Defines the structure for systematic debugging methodologies and
* troubleshooting approaches. Includes AI-optimized debugging methods,
* evidence collection, hypothesis testing, and resolution tracking.
*/
export declare const DebuggingMethodSchema: z.ZodObject<{
name: z.ZodEnum<["Binary Search Debugging", "The 5 Whys", "Saff Squeeze", "Rubber Duck Debugging", "Divide & Conquer", "Hypothesis Testing", "Log Analysis", "Static Analysis", "Root Cause Analysis", "Delta Debugging", "Fuzzing", "Incremental Testing", "Bisection Method", "Wolf Fence Algorithm", "Tracing", "Print Debugging", "Interactive Debugging", "Profiling", "Memory Analysis", "Performance Analysis", "Custom"]>;
description: z.ZodOptional<z.ZodString>;
aiOptimized: z.ZodOptional<z.ZodBoolean>;
complexity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "expert"]>>;
timeEstimate: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
name: "Binary Search Debugging" | "The 5 Whys" | "Saff Squeeze" | "Rubber Duck Debugging" | "Divide & Conquer" | "Hypothesis Testing" | "Log Analysis" | "Static Analysis" | "Root Cause Analysis" | "Delta Debugging" | "Fuzzing" | "Incremental Testing" | "Bisection Method" | "Wolf Fence Algorithm" | "Tracing" | "Print Debugging" | "Interactive Debugging" | "Profiling" | "Memory Analysis" | "Performance Analysis" | "Custom";
description?: string | undefined;
aiOptimized?: boolean | undefined;
complexity?: "low" | "medium" | "high" | "expert" | undefined;
timeEstimate?: string | undefined;
}, {
name: "Binary Search Debugging" | "The 5 Whys" | "Saff Squeeze" | "Rubber Duck Debugging" | "Divide & Conquer" | "Hypothesis Testing" | "Log Analysis" | "Static Analysis" | "Root Cause Analysis" | "Delta Debugging" | "Fuzzing" | "Incremental Testing" | "Bisection Method" | "Wolf Fence Algorithm" | "Tracing" | "Print Debugging" | "Interactive Debugging" | "Profiling" | "Memory Analysis" | "Performance Analysis" | "Custom";
description?: string | undefined;
aiOptimized?: boolean | undefined;
complexity?: "low" | "medium" | "high" | "expert" | undefined;
timeEstimate?: string | undefined;
}>;
export declare const EvidenceSchema: z.ZodObject<{
id: z.ZodOptional<z.ZodString>;
type: z.ZodEnum<["log", "error_message", "stack_trace", "performance_metric", "user_report", "test_result", "code_analysis", "observation"]>;
source: z.ZodString;
content: z.ZodString;
timestamp: z.ZodOptional<z.ZodString>;
relevance: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
verified: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
type: "log" | "error_message" | "stack_trace" | "performance_metric" | "user_report" | "test_result" | "code_analysis" | "observation";
source: string;
content: string;
id?: string | undefined;
timestamp?: string | undefined;
relevance?: "low" | "medium" | "high" | undefined;
verified?: boolean | undefined;
}, {
type: "log" | "error_message" | "stack_trace" | "performance_metric" | "user_report" | "test_result" | "code_analysis" | "observation";
source: string;
content: string;
id?: string | undefined;
timestamp?: string | undefined;
relevance?: "low" | "medium" | "high" | undefined;
verified?: boolean | undefined;
}>;
export declare const DebuggingHypothesisSchema: z.ZodObject<{
id: z.ZodOptional<z.ZodString>;
statement: z.ZodString;
confidence: z.ZodNumber;
evidence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
testPlan: z.ZodOptional<z.ZodString>;
status: z.ZodEnum<["proposed", "testing", "confirmed", "refuted", "inconclusive"]>;
priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
}, "strip", z.ZodTypeAny, {
status: "proposed" | "testing" | "confirmed" | "refuted" | "inconclusive";
confidence: number;
statement: string;
priority?: "low" | "medium" | "high" | "critical" | undefined;
id?: string | undefined;
evidence?: string[] | undefined;
testPlan?: string | undefined;
}, {
status: "proposed" | "testing" | "confirmed" | "refuted" | "inconclusive";
confidence: number;
statement: string;
priority?: "low" | "medium" | "high" | "critical" | undefined;
id?: string | undefined;
evidence?: string[] | undefined;
testPlan?: string | undefined;
}>;
export declare const DebuggingStepSchema: z.ZodObject<{
stepNumber: z.ZodNumber;
action: z.ZodString;
method: z.ZodOptional<z.ZodString>;
tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
duration: z.ZodOptional<z.ZodString>;
outcome: z.ZodOptional<z.ZodString>;
evidenceCollected: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
nextSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
stepNumber: number;
action: string;
duration?: string | undefined;
method?: string | undefined;
tools?: string[] | undefined;
outcome?: string | undefined;
evidenceCollected?: string[] | undefined;
nextSteps?: string[] | undefined;
}, {
stepNumber: number;
action: string;
duration?: string | undefined;
method?: string | undefined;
tools?: string[] | undefined;
outcome?: string | undefined;
evidenceCollected?: string[] | undefined;
nextSteps?: string[] | undefined;
}>;
export declare const IssueClassificationSchema: z.ZodObject<{
category: z.ZodEnum<["functional", "performance", "security", "usability", "compatibility", "reliability", "maintainability"]>;
severity: z.ZodEnum<["critical", "high", "medium", "low"]>;
priority: z.ZodEnum<["urgent", "high", "medium", "low"]>;
impact: z.ZodEnum<["system-wide", "module-specific", "feature-specific", "edge-case"]>;
frequency: z.ZodEnum<["always", "often", "sometimes", "rarely", "once"]>;
environment: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
priority: "low" | "medium" | "high" | "urgent";
category: "functional" | "performance" | "security" | "usability" | "compatibility" | "reliability" | "maintainability";
severity: "low" | "medium" | "high" | "critical";
impact: "system-wide" | "module-specific" | "feature-specific" | "edge-case";
frequency: "always" | "often" | "sometimes" | "rarely" | "once";
environment?: string[] | undefined;
}, {
priority: "low" | "medium" | "high" | "urgent";
category: "functional" | "performance" | "security" | "usability" | "compatibility" | "reliability" | "maintainability";
severity: "low" | "medium" | "high" | "critical";
impact: "system-wide" | "module-specific" | "feature-specific" | "edge-case";
frequency: "always" | "often" | "sometimes" | "rarely" | "once";
environment?: string[] | undefined;
}>;
export declare const AIAnalysisSchema: z.ZodObject<{
patternRecognition: z.ZodOptional<z.ZodObject<{
similarIssues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
anomalies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
similarIssues?: string[] | undefined;
patterns?: string[] | undefined;
anomalies?: string[] | undefined;
}, {
similarIssues?: string[] | undefined;
patterns?: string[] | undefined;
anomalies?: string[] | undefined;
}>>;
recommendations: z.ZodOptional<z.ZodArray<z.ZodObject<{
action: z.ZodString;
confidence: z.ZodNumber;
reasoning: z.ZodString;
}, "strip", z.ZodTypeAny, {
confidence: number;
reasoning: string;
action: string;
}, {
confidence: number;
reasoning: string;
action: string;
}>, "many">>;
riskAssessment: z.ZodOptional<z.ZodObject<{
riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>;
factors: z.ZodArray<z.ZodString, "many">;
mitigation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
riskLevel: "low" | "medium" | "high" | "critical";
factors: string[];
mitigation?: string[] | undefined;
}, {
riskLevel: "low" | "medium" | "high" | "critical";
factors: string[];
mitigation?: string[] | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
patternRecognition?: {
similarIssues?: string[] | undefined;
patterns?: string[] | undefined;
anomalies?: string[] | undefined;
} | undefined;
recommendations?: {
confidence: number;
reasoning: string;
action: string;
}[] | undefined;
riskAssessment?: {
riskLevel: "low" | "medium" | "high" | "critical";
factors: string[];
mitigation?: string[] | undefined;
} | undefined;
}, {
patternRecognition?: {
similarIssues?: string[] | undefined;
patterns?: string[] | undefined;
anomalies?: string[] | undefined;
} | undefined;
recommendations?: {
confidence: number;
reasoning: string;
action: string;
}[] | undefined;
riskAssessment?: {
riskLevel: "low" | "medium" | "high" | "critical";
factors: string[];
mitigation?: string[] | undefined;
} | undefined;
}>;
export declare const DebuggingApproachSchema: z.ZodObject<{
approachName: z.ZodString;
sessionId: z.ZodOptional<z.ZodString>;
issue: z.ZodString;
classification: z.ZodOptional<z.ZodObject<{
category: z.ZodEnum<["functional", "performance", "security", "usability", "compatibility", "reliability", "maintainability"]>;
severity: z.ZodEnum<["critical", "high", "medium", "low"]>;
priority: z.ZodEnum<["urgent", "high", "medium", "low"]>;
impact: z.ZodEnum<["system-wide", "module-specific", "feature-specific", "edge-case"]>;
frequency: z.ZodEnum<["always", "often", "sometimes", "rarely", "once"]>;
environment: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
priority: "low" | "medium" | "high" | "urgent";
category: "functional" | "performance" | "security" | "usability" | "compatibility" | "reliability" | "maintainability";
severity: "low" | "medium" | "high" | "critical";
impact: "system-wide" | "module-specific" | "feature-specific" | "edge-case";
frequency: "always" | "often" | "sometimes" | "rarely" | "once";
environment?: string[] | undefined;
}, {
priority: "low" | "medium" | "high" | "urgent";
category: "functional" | "performance" | "security" | "usability" | "compatibility" | "reliability" | "maintainability";
severity: "low" | "medium" | "high" | "critical";
impact: "system-wide" | "module-specific" | "feature-specific" | "edge-case";
frequency: "always" | "often" | "sometimes" | "rarely" | "once";
environment?: string[] | undefined;
}>>;
method: z.ZodOptional<z.ZodObject<{
name: z.ZodEnum<["Binary Search Debugging", "The 5 Whys", "Saff Squeeze", "Rubber Duck Debugging", "Divide & Conquer", "Hypothesis Testing", "Log Analysis", "Static Analysis", "Root Cause Analysis", "Delta Debugging", "Fuzzing", "Incremental Testing", "Bisection Method", "Wolf Fence Algorithm", "Tracing", "Print Debugging", "Interactive Debugging", "Profiling", "Memory Analysis", "Performance Analysis", "Custom"]>;
description: z.ZodOptional<z.ZodString>;
aiOptimized: z.ZodOptional<z.ZodBoolean>;
complexity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "expert"]>>;
timeEstimate: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
name: "Binary Search Debugging" | "The 5 Whys" | "Saff Squeeze" | "Rubber Duck Debugging" | "Divide & Conquer" | "Hypothesis Testing" | "Log Analysis" | "Static Analysis" | "Root Cause Analysis" | "Delta Debugging" | "Fuzzing" | "Incremental Testing" | "Bisection Method" | "Wolf Fence Algorithm" | "Tracing" | "Print Debugging" | "Interactive Debugging" | "Profiling" | "Memory Analysis" | "Performance Analysis" | "Custom";
description?: string | undefined;
aiOptimized?: boolean | undefined;
complexity?: "low" | "medium" | "high" | "expert" | undefined;
timeEstimate?: string | undefined;
}, {
name: "Binary Search Debugging" | "The 5 Whys" | "Saff Squeeze" | "Rubber Duck Debugging" | "Divide & Conquer" | "Hypothesis Testing" | "Log Analysis" | "Static Analysis" | "Root Cause Analysis" | "Delta Debugging" | "Fuzzing" | "Incremental Testing" | "Bisection Method" | "Wolf Fence Algorithm" | "Tracing" | "Print Debugging" | "Interactive Debugging" | "Profiling" | "Memory Analysis" | "Performance Analysis" | "Custom";
description?: string | undefined;
aiOptimized?: boolean | undefined;
complexity?: "low" | "medium" | "high" | "expert" | undefined;
timeEstimate?: string | undefined;
}>>;
hypotheses: z.ZodOptional<z.ZodArray<z.ZodObject<{
id: z.ZodOptional<z.ZodString>;
statement: z.ZodString;
confidence: z.ZodNumber;
evidence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
testPlan: z.ZodOptional<z.ZodString>;
status: z.ZodEnum<["proposed", "testing", "confirmed", "refuted", "inconclusive"]>;
priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
}, "strip", z.ZodTypeAny, {
status: "proposed" | "testing" | "confirmed" | "refuted" | "inconclusive";
confidence: number;
statement: string;
priority?: "low" | "medium" | "high" | "critical" | undefined;
id?: string | undefined;
evidence?: string[] | undefined;
testPlan?: string | undefined;
}, {
status: "proposed" | "testing" | "confirmed" | "refuted" | "inconclusive";
confidence: number;
statement: string;
priority?: "low" | "medium" | "high" | "critical" | undefined;
id?: string | undefined;
evidence?: string[] | undefined;
testPlan?: string | undefined;
}>, "many">>;
evidence: z.ZodOptional<z.ZodArray<z.ZodObject<{
id: z.ZodOptional<z.ZodString>;
type: z.ZodEnum<["log", "error_message", "stack_trace", "performance_metric", "user_report", "test_result", "code_analysis", "observation"]>;
source: z.ZodString;
content: z.ZodString;
timestamp: z.ZodOptional<z.ZodString>;
relevance: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
verified: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
type: "log" | "error_message" | "stack_trace" | "performance_metric" | "user_report" | "test_result" | "code_analysis" | "observation";
source: string;
content: string;
id?: string | undefined;
timestamp?: string | undefined;
relevance?: "low" | "medium" | "high" | undefined;
verified?: boolean | undefined;
}, {
type: "log" | "error_message" | "stack_trace" | "performance_metric" | "user_report" | "test_result" | "code_analysis" | "observation";
source: string;
content: string;
id?: string | undefined;
timestamp?: string | undefined;
relevance?: "low" | "medium" | "high" | undefined;
verified?: boolean | undefined;
}>, "many">>;
steps: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodObject<{
stepNumber: z.ZodNumber;
action: z.ZodString;
method: z.ZodOptional<z.ZodString>;
tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
duration: z.ZodOptional<z.ZodString>;
outcome: z.ZodOptional<z.ZodString>;
evidenceCollected: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
nextSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
stepNumber: number;
action: string;
duration?: string | undefined;
method?: string | undefined;
tools?: string[] | undefined;
outcome?: string | undefined;
evidenceCollected?: string[] | undefined;
nextSteps?: string[] | undefined;
}, {
stepNumber: number;
action: string;
duration?: string | undefined;
method?: string | undefined;
tools?: string[] | undefined;
outcome?: string | undefined;
evidenceCollected?: string[] | undefined;
nextSteps?: string[] | undefined;
}>, "many">]>>;
findings: z.ZodOptional<z.ZodString>;
aiAnalysis: z.ZodOptional<z.ZodObject<{
patternRecognition: z.ZodOptional<z.ZodObject<{
similarIssues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
anomalies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
similarIssues?: string[] | undefined;
patterns?: string[] | undefined;
anomalies?: string[] | undefined;
}, {
similarIssues?: string[] | undefined;
patterns?: string[] | undefined;
anomalies?: string[] | undefined;
}>>;
recommendations: z.ZodOptional<z.ZodArray<z.ZodObject<{
action: z.ZodString;
confidence: z.ZodNumber;
reasoning: z.ZodString;
}, "strip", z.ZodTypeAny, {
confidence: number;
reasoning: string;
action: string;
}, {
confidence: number;
reasoning: string;
action: string;
}>, "many">>;
riskAssessment: z.ZodOptional<z.ZodObject<{
riskLevel: z.ZodEnum<["low", "medium", "high", "critical"]>;
factors: z.ZodArray<z.ZodString, "many">;
mitigation: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
riskLevel: "low" | "medium" | "high" | "critical";
factors: string[];
mitigation?: string[] | undefined;
}, {
riskLevel: "low" | "medium" | "high" | "critical";
factors: string[];
mitigation?: string[] | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
patternRecognition?: {
similarIssues?: string[] | undefined;
patterns?: string[] | undefined;
anomalies?: string[] | undefined;
} | undefined;
recommendations?: {
confidence: number;
reasoning: string;
action: string;
}[] | undefined;
riskAssessment?: {
riskLevel: "low" | "medium" | "high" | "critical";
factors: string[];
mitigation?: string[] | undefined;
} | undefined;
}, {
patternRecognition?: {
similarIssues?: string[] | undefined;
patterns?: string[] | undefined;
anomalies?: string[] | undefined;
} | undefined;
recommendations?: {
confidence: number;
reasoning: string;
action: string;
}[] | undefined;
riskAssessment?: {
riskLevel: "low" | "medium" | "high" | "critical";
factors: string[];
mitigation?: string[] | undefined;
} | undefined;
}>>;
resolution: z.ZodOptional<z.ZodString>;
preventionMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
lessonsLearned: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
startTime: z.ZodOptional<z.ZodString>;
endTime: z.ZodOptional<z.ZodString>;
totalDuration: z.ZodOptional<z.ZodString>;
participants: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
effectiveness: z.ZodOptional<z.ZodObject<{
timeToResolution: z.ZodOptional<z.ZodString>;
accuracyOfInitialHypothesis: z.ZodOptional<z.ZodNumber>;
methodEffectiveness: z.ZodOptional<z.ZodEnum<["very-effective", "effective", "somewhat-effective", "ineffective"]>>;
satisfactionScore: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
timeToResolution?: string | undefined;
accuracyOfInitialHypothesis?: number | undefined;
methodEffectiveness?: "very-effective" | "effective" | "somewhat-effective" | "ineffective" | undefined;
satisfactionScore?: number | undefined;
}, {
timeToResolution?: string | undefined;
accuracyOfInitialHypothesis?: number | undefined;
methodEffectiveness?: "very-effective" | "effective" | "somewhat-effective" | "ineffective" | undefined;
satisfactionScore?: number | undefined;
}>>;
documentation: z.ZodOptional<z.ZodObject<{
publicSummary: z.ZodOptional<z.ZodString>;
technicalDetails: z.ZodOptional<z.ZodString>;
codeChanges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
configChanges: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
publicSummary?: string | undefined;
technicalDetails?: string | undefined;
codeChanges?: string[] | undefined;
configChanges?: string[] | undefined;
}, {
publicSummary?: string | undefined;
technicalDetails?: string | undefined;
codeChanges?: string[] | undefined;
configChanges?: string[] | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
approachName: string;
issue: string;
steps?: string[] | {
stepNumber: number;
action: string;
duration?: string | undefined;
method?: string | undefined;
tools?: string[] | undefined;
outcome?: string | undefined;
evidenceCollected?: string[] | undefined;
nextSteps?: string[] | undefined;
}[] | undefined;
evidence?: {
type: "log" | "error_message" | "stack_trace" | "performance_metric" | "user_report" | "test_result" | "code_analysis" | "observation";
source: string;
content: string;
id?: string | undefined;
timestamp?: string | undefined;
relevance?: "low" | "medium" | "high" | undefined;
verified?: boolean | undefined;
}[] | undefined;
method?: {
name: "Binary Search Debugging" | "The 5 Whys" | "Saff Squeeze" | "Rubber Duck Debugging" | "Divide & Conquer" | "Hypothesis Testing" | "Log Analysis" | "Static Analysis" | "Root Cause Analysis" | "Delta Debugging" | "Fuzzing" | "Incremental Testing" | "Bisection Method" | "Wolf Fence Algorithm" | "Tracing" | "Print Debugging" | "Interactive Debugging" | "Profiling" | "Memory Analysis" | "Performance Analysis" | "Custom";
description?: string | undefined;
aiOptimized?: boolean | undefined;
complexity?: "low" | "medium" | "high" | "expert" | undefined;
timeEstimate?: string | undefined;
} | undefined;
tools?: string[] | undefined;
sessionId?: string | undefined;
classification?: {
priority: "low" | "medium" | "high" | "urgent";
category: "functional" | "performance" | "security" | "usability" | "compatibility" | "reliability" | "maintainability";
severity: "low" | "medium" | "high" | "critical";
impact: "system-wide" | "module-specific" | "feature-specific" | "edge-case";
frequency: "always" | "often" | "sometimes" | "rarely" | "once";
environment?: string[] | undefined;
} | undefined;
hypotheses?: {
status: "proposed" | "testing" | "confirmed" | "refuted" | "inconclusive";
confidence: number;
statement: string;
priority?: "low" | "medium" | "high" | "critical" | undefined;
id?: string | undefined;
evidence?: string[] | undefined;
testPlan?: string | undefined;
}[] | undefined;
findings?: string | undefined;
aiAnalysis?: {
patternRecognition?: {
similarIssues?: string[] | undefined;
patterns?: string[] | undefined;
anomalies?: string[] | undefined;
} | undefined;
recommendations?: {
confidence: number;
reasoning: string;
action: string;
}[] | undefined;
riskAssessment?: {
riskLevel: "low" | "medium" | "high" | "critical";
factors: string[];
mitigation?: string[] | undefined;
} | undefined;
} | undefined;
resolution?: string | undefined;
preventionMeasures?: string[] | undefined;
lessonsLearned?: string[] | undefined;
startTime?: string | undefined;
endTime?: string | undefined;
totalDuration?: string | undefined;
participants?: string[] | undefined;
effectiveness?: {
timeToResolution?: string | undefined;
accuracyOfInitialHypothesis?: number | undefined;
methodEffectiveness?: "very-effective" | "effective" | "somewhat-effective" | "ineffective" | undefined;
satisfactionScore?: number | undefined;
} | undefined;
documentation?: {
publicSummary?: string | undefined;
technicalDetails?: string | undefined;
codeChanges?: string[] | undefined;
configChanges?: string[] | undefined;
} | undefined;
}, {
approachName: string;
issue: string;
steps?: string[] | {
stepNumber: number;
action: string;
duration?: string | undefined;
method?: string | undefined;
tools?: string[] | undefined;
outcome?: string | undefined;
evidenceCollected?: string[] | undefined;
nextSteps?: string[] | undefined;
}[] | undefined;
evidence?: {
type: "log" | "error_message" | "stack_trace" | "performance_metric" | "user_report" | "test_result" | "code_analysis" | "observation";
source: string;
content: string;
id?: string | undefined;
timestamp?: string | undefined;
relevance?: "low" | "medium" | "high" | undefined;
verified?: boolean | undefined;
}[] | undefined;
method?: {
name: "Binary Search Debugging" | "The 5 Whys" | "Saff Squeeze" | "Rubber Duck Debugging" | "Divide & Conquer" | "Hypothesis Testing" | "Log Analysis" | "Static Analysis" | "Root Cause Analysis" | "Delta Debugging" | "Fuzzing" | "Incremental Testing" | "Bisection Method" | "Wolf Fence Algorithm" | "Tracing" | "Print Debugging" | "Interactive Debugging" | "Profiling" | "Memory Analysis" | "Performance Analysis" | "Custom";
description?: string | undefined;
aiOptimized?: boolean | undefined;
complexity?: "low" | "medium" | "high" | "expert" | undefined;
timeEstimate?: string | undefined;
} | undefined;
tools?: string[] | undefined;
sessionId?: string | undefined;
classification?: {
priority: "low" | "medium" | "high" | "urgent";
category: "functional" | "performance" | "security" | "usability" | "compatibility" | "reliability" | "maintainability";
severity: "low" | "medium" | "high" | "critical";
impact: "system-wide" | "module-specific" | "feature-specific" | "edge-case";
frequency: "always" | "often" | "sometimes" | "rarely" | "once";
environment?: string[] | undefined;
} | undefined;
hypotheses?: {
status: "proposed" | "testing" | "confirmed" | "refuted" | "inconclusive";
confidence: number;
statement: string;
priority?: "low" | "medium" | "high" | "critical" | undefined;
id?: string | undefined;
evidence?: string[] | undefined;
testPlan?: string | undefined;
}[] | undefined;
findings?: string | undefined;
aiAnalysis?: {
patternRecognition?: {
similarIssues?: string[] | undefined;
patterns?: string[] | undefined;
anomalies?: string[] | undefined;
} | undefined;
recommendations?: {
confidence: number;
reasoning: string;
action: string;
}[] | undefined;
riskAssessment?: {
riskLevel: "low" | "medium" | "high" | "critical";
factors: string[];
mitigation?: string[] | undefined;
} | undefined;
} | undefined;
resolution?: string | undefined;
preventionMeasures?: string[] | undefined;
lessonsLearned?: string[] | undefined;
startTime?: string | undefined;
endTime?: string | undefined;
totalDuration?: string | undefined;
participants?: string[] | undefined;
effectiveness?: {
timeToResolution?: string | undefined;
accuracyOfInitialHypothesis?: number | undefined;
methodEffectiveness?: "very-effective" | "effective" | "somewhat-effective" | "ineffective" | undefined;
satisfactionScore?: number | undefined;
} | undefined;
documentation?: {
publicSummary?: string | undefined;
technicalDetails?: string | undefined;
codeChanges?: string[] | undefined;
configChanges?: string[] | undefined;
} | undefined;
}>;
export type DebuggingApproachData = z.infer<typeof DebuggingApproachSchema>;
export type DebuggingMethodData = z.infer<typeof DebuggingMethodSchema>;
export type EvidenceData = z.infer<typeof EvidenceSchema>;
export type DebuggingHypothesisData = z.infer<typeof DebuggingHypothesisSchema>;
export type DebuggingStepData = z.infer<typeof DebuggingStepSchema>;
export type IssueClassificationData = z.infer<typeof IssueClassificationSchema>;
export type AIAnalysisData = z.infer<typeof AIAnalysisSchema>;