UNPKG

mcp-adr-analysis-server

Version:

MCP server for analyzing Architectural Decision Records and project architecture

227 lines 8.63 kB
import { z } from 'zod'; export declare const ToolExecutionSnapshotSchema: z.ZodObject<{ toolName: z.ZodString; parameters: z.ZodRecord<z.ZodString, z.ZodAny>; result: z.ZodRecord<z.ZodString, z.ZodAny>; todoTasksCreated: z.ZodArray<z.ZodString>; todoTasksModified: z.ZodArray<z.ZodString>; executionTime: z.ZodString; success: z.ZodBoolean; error: z.ZodOptional<z.ZodString>; scoreImpact: z.ZodOptional<z.ZodObject<{ beforeScore: z.ZodOptional<z.ZodNumber>; afterScore: z.ZodOptional<z.ZodNumber>; componentImpacts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>; scoreConfidence: z.ZodOptional<z.ZodNumber>; }, z.core.$strip>>; }, z.core.$strip>; export declare const IntentSnapshotSchema: z.ZodObject<{ intentId: z.ZodString; humanRequest: z.ZodString; parsedGoals: z.ZodArray<z.ZodString>; priority: z.ZodEnum<{ medium: "medium"; low: "low"; high: "high"; }>; timestamp: z.ZodString; toolChain: z.ZodArray<z.ZodObject<{ toolName: z.ZodString; parameters: z.ZodRecord<z.ZodString, z.ZodAny>; result: z.ZodRecord<z.ZodString, z.ZodAny>; todoTasksCreated: z.ZodArray<z.ZodString>; todoTasksModified: z.ZodArray<z.ZodString>; executionTime: z.ZodString; success: z.ZodBoolean; error: z.ZodOptional<z.ZodString>; scoreImpact: z.ZodOptional<z.ZodObject<{ beforeScore: z.ZodOptional<z.ZodNumber>; afterScore: z.ZodOptional<z.ZodNumber>; componentImpacts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>; scoreConfidence: z.ZodOptional<z.ZodNumber>; }, z.core.$strip>>; }, z.core.$strip>>; currentStatus: z.ZodEnum<{ completed: "completed"; failed: "failed"; planning: "planning"; executing: "executing"; }>; todoMdSnapshot: z.ZodString; parentIntentId: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString>>; scoreTracking: z.ZodOptional<z.ZodObject<{ initialScore: z.ZodOptional<z.ZodNumber>; currentScore: z.ZodOptional<z.ZodNumber>; targetScore: z.ZodOptional<z.ZodNumber>; scoreProgress: z.ZodOptional<z.ZodNumber>; componentScores: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>; lastScoreUpdate: z.ZodOptional<z.ZodString>; }, z.core.$strip>>; }, z.core.$strip>; export declare const TodoSyncStateSchema: z.ZodObject<{ lastSyncTimestamp: z.ZodString; todoMdHash: z.ZodString; knowledgeGraphHash: z.ZodString; syncStatus: z.ZodEnum<{ error: "error"; pending: "pending"; synced: "synced"; conflict: "conflict"; }>; conflictDetails: z.ZodOptional<z.ZodArray<z.ZodObject<{ taskId: z.ZodString; conflict: z.ZodString; todoVersion: z.ZodString; kgVersion: z.ZodString; }, z.core.$strip>>>; lastModifiedBy: z.ZodEnum<{ tool: "tool"; human: "human"; sync: "sync"; }>; version: z.ZodNumber; }, z.core.$strip>; export declare const KnowledgeGraphSnapshotSchema: z.ZodObject<{ version: z.ZodString; timestamp: z.ZodString; intents: z.ZodArray<z.ZodObject<{ intentId: z.ZodString; humanRequest: z.ZodString; parsedGoals: z.ZodArray<z.ZodString>; priority: z.ZodEnum<{ medium: "medium"; low: "low"; high: "high"; }>; timestamp: z.ZodString; toolChain: z.ZodArray<z.ZodObject<{ toolName: z.ZodString; parameters: z.ZodRecord<z.ZodString, z.ZodAny>; result: z.ZodRecord<z.ZodString, z.ZodAny>; todoTasksCreated: z.ZodArray<z.ZodString>; todoTasksModified: z.ZodArray<z.ZodString>; executionTime: z.ZodString; success: z.ZodBoolean; error: z.ZodOptional<z.ZodString>; scoreImpact: z.ZodOptional<z.ZodObject<{ beforeScore: z.ZodOptional<z.ZodNumber>; afterScore: z.ZodOptional<z.ZodNumber>; componentImpacts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>; scoreConfidence: z.ZodOptional<z.ZodNumber>; }, z.core.$strip>>; }, z.core.$strip>>; currentStatus: z.ZodEnum<{ completed: "completed"; failed: "failed"; planning: "planning"; executing: "executing"; }>; todoMdSnapshot: z.ZodString; parentIntentId: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString>>; scoreTracking: z.ZodOptional<z.ZodObject<{ initialScore: z.ZodOptional<z.ZodNumber>; currentScore: z.ZodOptional<z.ZodNumber>; targetScore: z.ZodOptional<z.ZodNumber>; scoreProgress: z.ZodOptional<z.ZodNumber>; componentScores: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>; lastScoreUpdate: z.ZodOptional<z.ZodString>; }, z.core.$strip>>; }, z.core.$strip>>; todoSyncState: z.ZodObject<{ lastSyncTimestamp: z.ZodString; todoMdHash: z.ZodString; knowledgeGraphHash: z.ZodString; syncStatus: z.ZodEnum<{ error: "error"; pending: "pending"; synced: "synced"; conflict: "conflict"; }>; conflictDetails: z.ZodOptional<z.ZodArray<z.ZodObject<{ taskId: z.ZodString; conflict: z.ZodString; todoVersion: z.ZodString; kgVersion: z.ZodString; }, z.core.$strip>>>; lastModifiedBy: z.ZodEnum<{ tool: "tool"; human: "human"; sync: "sync"; }>; version: z.ZodNumber; }, z.core.$strip>; memoryOperations: z.ZodOptional<z.ZodArray<z.ZodObject<{ toolName: z.ZodString; action: z.ZodString; entityType: z.ZodString; success: z.ZodBoolean; details: z.ZodRecord<z.ZodString, z.ZodAny>; timestamp: z.ZodString; }, z.core.$strip>>>; analytics: z.ZodObject<{ totalIntents: z.ZodNumber; completedIntents: z.ZodNumber; activeIntents: z.ZodNumber; averageGoalCompletion: z.ZodNumber; mostUsedTools: z.ZodArray<z.ZodObject<{ toolName: z.ZodString; usageCount: z.ZodNumber; }, z.core.$strip>>; successfulPatterns: z.ZodArray<z.ZodObject<{ pattern: z.ZodString; successRate: z.ZodNumber; examples: z.ZodArray<z.ZodString>; }, z.core.$strip>>; memoryOperations: z.ZodOptional<z.ZodObject<{ totalOperations: z.ZodNumber; successRate: z.ZodNumber; byEntityType: z.ZodRecord<z.ZodString, z.ZodNumber>; byAction: z.ZodRecord<z.ZodString, z.ZodNumber>; byTool: z.ZodRecord<z.ZodString, z.ZodNumber>; lastMemoryOperation: z.ZodOptional<z.ZodString>; }, z.core.$strip>>; }, z.core.$strip>; scoreHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{ timestamp: z.ZodString; intentId: z.ZodOptional<z.ZodString>; overallScore: z.ZodNumber; componentScores: z.ZodObject<{ taskCompletion: z.ZodNumber; deploymentReadiness: z.ZodNumber; architectureCompliance: z.ZodNumber; securityPosture: z.ZodNumber; codeQuality: z.ZodNumber; }, z.core.$strip>; triggerEvent: z.ZodString; confidence: z.ZodNumber; }, z.core.$strip>>>; }, z.core.$strip>; export type ToolExecutionSnapshot = z.infer<typeof ToolExecutionSnapshotSchema>; export type IntentSnapshot = z.infer<typeof IntentSnapshotSchema>; export type TodoSyncState = z.infer<typeof TodoSyncStateSchema>; export type KnowledgeGraphSnapshot = z.infer<typeof KnowledgeGraphSnapshotSchema>; export interface IntentGoal { id: string; description: string; status: 'pending' | 'in_progress' | 'completed' | 'blocked'; completionPercentage: number; linkedTasks: string[]; linkedAdrs: string[]; } export interface ToolChainPattern { id: string; name: string; tools: string[]; successRate: number; averageExecutionTime: number; commonGoalTypes: string[]; lastUsed: string; } export interface ConflictResolutionStrategy { type: 'timestamp' | 'manual' | 'merge' | 'preserve_human'; description: string; autoResolve: boolean; } //# sourceMappingURL=knowledge-graph-schemas.d.ts.map