mcp-adr-analysis-server 2.7.30 → 2.7.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,176 +0,0 @@
1
- /**
2
- * Memory Expand Resource - Detailed view of a specific memory entity
3
- * URI Pattern: adr://memory/{key}
4
- */
5
- import { McpAdrError } from '../types/index.js';
6
- import { resourceCache, generateETag } from './resource-cache.js';
7
- import { resourceRouter } from './resource-router.js';
8
- /**
9
- * Generate memory expand resource showing detailed entity information.
10
- *
11
- * Returns complete details about a specific memory entity including:
12
- * - Full entity content and metadata
13
- * - All relationships to other entities
14
- * - Related entities by relevance
15
- * - Access statistics
16
- *
17
- * **URI Pattern:** `adr://memory/{key}`
18
- *
19
- * **Query Parameters:**
20
- * - `includeRelated`: Include related entities (default: true)
21
- * - `relationshipDepth`: Depth of relationships to traverse (default: 2)
22
- * - `maxRelated`: Maximum related entities to return (default: 10)
23
- *
24
- * @param params - URL path parameters containing:
25
- * - key: Memory entity key/ID
26
- * @param searchParams - URL query parameters for customization
27
- * @param memoryManager - Optional memory entity manager instance
28
- *
29
- * @returns Promise resolving to resource generation result containing:
30
- * - data: Complete memory entity data with relationships
31
- * - contentType: "application/json"
32
- * - lastModified: ISO timestamp of generation
33
- * - cacheKey: Unique identifier "memory-expand:{key}"
34
- * - ttl: Cache duration (60 seconds / 1 minute)
35
- * - etag: Entity tag for cache validation
36
- *
37
- * @throws {McpAdrError} When memory expansion fails
38
- *
39
- * @example
40
- * ```typescript
41
- * // Get expanded memory entity
42
- * const memory = await generateMemoryExpandResource(
43
- * { key: 'adr-001' },
44
- * new URLSearchParams()
45
- * );
46
- *
47
- * console.log(`Entity type: ${memory.data.entity?.type}`);
48
- * console.log(`Relationships: ${memory.data.relationships.length}`);
49
- *
50
- * // With custom depth
51
- * const deep = await generateMemoryExpandResource(
52
- * { key: 'architecture-context' },
53
- * new URLSearchParams('relationshipDepth=3&maxRelated=20')
54
- * );
55
- * ```
56
- *
57
- * @since v2.2.0
58
- * @see {@link MemoryEntityManager} for memory management
59
- */
60
- export async function generateMemoryExpandResource(params, searchParams, memoryManager) {
61
- const key = params['key'];
62
- if (!key) {
63
- throw new McpAdrError('Missing required parameter: key', 'INVALID_PARAMS');
64
- }
65
- const includeRelated = searchParams.get('includeRelated') !== 'false';
66
- const relationshipDepth = parseInt(searchParams.get('relationshipDepth') || '2', 10);
67
- const maxRelated = parseInt(searchParams.get('maxRelated') || '10', 10);
68
- const cacheKey = `memory-expand:${key}`;
69
- // Check cache
70
- const cached = await resourceCache.get(cacheKey);
71
- if (cached) {
72
- return cached;
73
- }
74
- try {
75
- // If no memory manager provided, return a not-found response
76
- if (!memoryManager) {
77
- const notFoundData = {
78
- key,
79
- entity: null,
80
- relationships: [],
81
- relatedEntities: [],
82
- timestamp: new Date().toISOString(),
83
- found: false,
84
- };
85
- const result = {
86
- data: notFoundData,
87
- contentType: 'application/json',
88
- lastModified: new Date().toISOString(),
89
- cacheKey,
90
- ttl: 30, // Short cache for not-found
91
- etag: generateETag(notFoundData),
92
- };
93
- return result;
94
- }
95
- // Try to get the entity from memory manager
96
- let entity = null;
97
- let relationships = [];
98
- let relatedEntities = [];
99
- try {
100
- // Attempt to get entity by ID using queryEntities
101
- const queryResult = await memoryManager.queryEntities({
102
- textQuery: key,
103
- limit: 1,
104
- });
105
- const foundEntity = queryResult.entities?.[0];
106
- if (foundEntity) {
107
- entity = {
108
- id: foundEntity.id,
109
- type: foundEntity.type,
110
- name: foundEntity.title, // MemoryEntity uses 'title' not 'name'
111
- content: foundEntity.description, // MemoryEntity uses 'description' not 'content'
112
- metadata: foundEntity.context || {}, // MemoryEntity uses 'context' object
113
- tags: foundEntity.tags || [],
114
- confidence: foundEntity.confidence || 1.0,
115
- lastModified: foundEntity.lastModified || new Date().toISOString(),
116
- created: foundEntity.created || new Date().toISOString(),
117
- accessCount: foundEntity.accessPattern?.accessCount || 0, // Nested in accessPattern
118
- };
119
- // Get relationships if requested
120
- if (includeRelated) {
121
- try {
122
- const related = await memoryManager.findRelatedEntities(foundEntity.id, relationshipDepth);
123
- // Map relationshipPaths to our relationships format
124
- relationships =
125
- related.relationshipPaths
126
- ?.flatMap((path) => path.relationships?.map((rel) => ({
127
- targetId: rel.targetId,
128
- targetName: rel.targetId,
129
- relationshipType: rel.type || 'related',
130
- strength: rel.strength || 0.5,
131
- })) || [])
132
- .slice(0, maxRelated) || [];
133
- relatedEntities =
134
- related.entities?.slice(0, maxRelated).map((ent) => ({
135
- id: ent.id,
136
- name: ent.title || ent.id, // MemoryEntity uses 'title' not 'name'
137
- type: ent.type,
138
- relevance: ent.relevance || 0.5, // Use relevance if available
139
- })) || [];
140
- }
141
- catch {
142
- // Relationships not available
143
- }
144
- }
145
- }
146
- }
147
- catch {
148
- // Entity not found
149
- }
150
- const expandData = {
151
- key,
152
- entity,
153
- relationships,
154
- relatedEntities: relatedEntities.slice(0, maxRelated),
155
- timestamp: new Date().toISOString(),
156
- found: entity !== null,
157
- };
158
- const result = {
159
- data: expandData,
160
- contentType: 'application/json',
161
- lastModified: new Date().toISOString(),
162
- cacheKey,
163
- ttl: 60, // 1 minute cache
164
- etag: generateETag(expandData),
165
- };
166
- // Cache result
167
- resourceCache.set(cacheKey, result, result.ttl);
168
- return result;
169
- }
170
- catch (error) {
171
- throw new McpAdrError(`Failed to expand memory entity: ${error instanceof Error ? error.message : String(error)}`, 'RESOURCE_GENERATION_ERROR');
172
- }
173
- }
174
- // Register route
175
- resourceRouter.register('/memory/{key}', generateMemoryExpandResource, 'Detailed view of a specific memory entity');
176
- //# sourceMappingURL=memory-expand-resource.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"memory-expand-resource.js","sourceRoot":"","sources":["../../../src/resources/memory-expand-resource.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;A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AAC;YACrD,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACnC,KAAK,EAAE,MAAM,KAAK,IAAI;SACvB,CAAC;QAEF,MAAM,MAAM,GAA6B;YACvC,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,kBAAkB;YAC/B,YAAY,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACtC,QAAQ;YACR,GAAG,EAAE,EAAE,EAAE,iBAAiB;YAC1B,IAAI,EAAE,YAAY,CAAC,UAAU,CAAC;SAC/B,CAAC;QAEF,eAAe;QACf,aAAa,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;QAEhD,OAAO,MAAM,CAAC;IAChB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,WAAW,CACnB,mCAAmC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAC3F,2BAA2B,CAC5B,CAAC;IACJ,CAAC;AACH,CAAC;AAED,iBAAiB;AACjB,cAAc,CAAC,QAAQ,CACrB,eAAe,EACf,4BAA4B,EAC5B,2CAA2C,CAC5C,CAAC"}
@@ -1,9 +0,0 @@
1
- /**
2
- * Utility modules index
3
- * Exports all utility functions for advanced prompting techniques
4
- */
5
- export { generateArchitecturalKnowledge, enhancePromptWithKnowledge, generateKnowledgeCacheKey, getAvailableDomainsInfo, validateKnowledgeGenerationInputs, getDefaultKnowledgeConfig, isDomainSupported, getSupportedDomains, getSupportedDepths, validateKnowledgeConfig, createDomainKnowledgeConfig, generateDomainKnowledge, } from './knowledge-generation.js';
6
- export { optimizePromptWithAPE, generatePromptCandidates, evaluatePromptPerformance, optimizeToolPrompt, generateAPECacheKey, getDefaultAPEConfig, validateAPEConfig, getSupportedGenerationStrategies, getSupportedEvaluationCriteria, getSupportedSelectionStrategies, createToolAPEConfig, } from './automatic-prompt-engineering.js';
7
- export { executeWithReflexion, retrieveRelevantMemories, persistReflexionMemory, getLearningProgress, enhancePromptWithMemories, generateReflexionCacheKey, getDefaultReflexionConfig, validateReflexionConfig, getSupportedMemoryTypes, getSupportedEvaluationCriteria as getSupportedReflexionEvaluationCriteria, getSupportedReflectionDepths, createToolReflexionConfig, generateMemoryId, calculateMemoryExpiration, createMemoryQuery, } from './reflexion.js';
8
- export { McpAdrError } from '../types/index.js';
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,yBAAyB,EACzB,uBAAuB,EACvB,iCAAiC,EACjC,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,2BAA2B,EAC3B,uBAAuB,GACxB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,yBAAyB,EACzB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,gCAAgC,EAChC,8BAA8B,EAC9B,+BAA+B,EAC/B,mBAAmB,GACpB,MAAM,mCAAmC,CAAC;AAG3C,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EACvB,uBAAuB,EACvB,8BAA8B,IAAI,uCAAuC,EACzE,4BAA4B,EAC5B,yBAAyB,EACzB,gBAAgB,EAChB,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Utility modules index
3
- * Exports all utility functions for advanced prompting techniques
4
- */
5
- // Knowledge Generation exports
6
- export { generateArchitecturalKnowledge, enhancePromptWithKnowledge, generateKnowledgeCacheKey, getAvailableDomainsInfo, validateKnowledgeGenerationInputs, getDefaultKnowledgeConfig, isDomainSupported, getSupportedDomains, getSupportedDepths, validateKnowledgeConfig, createDomainKnowledgeConfig, generateDomainKnowledge, } from './knowledge-generation.js';
7
- // Automatic Prompt Engineering exports
8
- export { optimizePromptWithAPE, generatePromptCandidates, evaluatePromptPerformance, optimizeToolPrompt, generateAPECacheKey, getDefaultAPEConfig, validateAPEConfig, getSupportedGenerationStrategies, getSupportedEvaluationCriteria, getSupportedSelectionStrategies, createToolAPEConfig, } from './automatic-prompt-engineering.js';
9
- // Reflexion exports
10
- export { executeWithReflexion, retrieveRelevantMemories, persistReflexionMemory, getLearningProgress, enhancePromptWithMemories, generateReflexionCacheKey, getDefaultReflexionConfig, validateReflexionConfig, getSupportedMemoryTypes, getSupportedEvaluationCriteria as getSupportedReflexionEvaluationCriteria, getSupportedReflectionDepths, createToolReflexionConfig, generateMemoryId, calculateMemoryExpiration, createMemoryQuery, } from './reflexion.js';
11
- // Configuration and error handling exports
12
- export { McpAdrError } from '../types/index.js';
13
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,+BAA+B;AAC/B,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,yBAAyB,EACzB,uBAAuB,EACvB,iCAAiC,EACjC,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,2BAA2B,EAC3B,uBAAuB,GACxB,MAAM,2BAA2B,CAAC;AAEnC,uCAAuC;AACvC,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,yBAAyB,EACzB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,gCAAgC,EAChC,8BAA8B,EAC9B,+BAA+B,EAC/B,mBAAmB,GACpB,MAAM,mCAAmC,CAAC;AAE3C,oBAAoB;AACpB,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EACvB,uBAAuB,EACvB,8BAA8B,IAAI,uCAAuC,EACzE,4BAA4B,EAC5B,yBAAyB,EACzB,gBAAgB,EAChB,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AAExB,2CAA2C;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,63 +0,0 @@
1
- /**
2
- * Interactive approval workflow for smart git push
3
- *
4
- * Handles user interaction for approving/rejecting files with issues
5
- */
6
- export interface ApprovalItem {
7
- filePath: string;
8
- issues: ApprovalIssue[];
9
- suggestions: string[];
10
- severity: 'error' | 'warning' | 'info';
11
- allowedInLocation: boolean;
12
- confidence: number;
13
- }
14
- export interface ApprovalIssue {
15
- type: 'sensitive-content' | 'llm-artifact' | 'location-violation' | 'temporary-file' | 'wrong-location';
16
- message: string;
17
- severity: 'error' | 'warning' | 'info';
18
- pattern?: string;
19
- line?: number;
20
- context?: string;
21
- }
22
- export interface ApprovalResult {
23
- approved: string[];
24
- rejected: string[];
25
- moved: Array<{
26
- from: string;
27
- to: string;
28
- }>;
29
- ignored: string[];
30
- actions: ApprovalAction[];
31
- proceed: boolean;
32
- }
33
- export interface ApprovalAction {
34
- type: 'approve' | 'reject' | 'move' | 'ignore' | 'edit';
35
- filePath: string;
36
- target?: string | undefined;
37
- reason?: string;
38
- }
39
- export interface ApprovalOptions {
40
- interactiveMode: boolean;
41
- autoApproveInfo: boolean;
42
- autoRejectErrors: boolean;
43
- dryRun: boolean;
44
- batchMode: boolean;
45
- timeout?: number;
46
- }
47
- /**
48
- * Main interactive approval function
49
- */
50
- export declare function handleInteractiveApproval(items: ApprovalItem[], options: ApprovalOptions): Promise<ApprovalResult>;
51
- /**
52
- * Batch approval for similar files
53
- */
54
- export declare function batchApproval(items: ApprovalItem[], action: ApprovalAction, criteria: {
55
- sameSeverity?: boolean;
56
- sameIssueType?: boolean;
57
- samePattern?: boolean;
58
- }): ApprovalAction[];
59
- /**
60
- * Save approval preferences for future use
61
- */
62
- export declare function saveApprovalPreferences(actions: ApprovalAction[], configPath?: string): Promise<void>;
63
- //# sourceMappingURL=interactive-approval.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interactive-approval.d.ts","sourceRoot":"","sources":["../../../src/utils/interactive-approval.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACvC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EACA,mBAAmB,GACnB,cAAc,GACd,oBAAoB,GACpB,gBAAgB,GAChB,gBAAgB,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC3C,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAA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