mcp-adr-analysis-server 2.0.3 → 2.0.6

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.
Files changed (90) hide show
  1. package/dist/src/index.d.ts +28 -0
  2. package/dist/src/index.d.ts.map +1 -1
  3. package/dist/src/index.js +703 -325
  4. package/dist/src/index.js.map +1 -1
  5. package/dist/src/prompts/adr-suggestion-prompts.d.ts +1 -0
  6. package/dist/src/prompts/adr-suggestion-prompts.d.ts.map +1 -1
  7. package/dist/src/prompts/adr-suggestion-prompts.js +14 -6
  8. package/dist/src/prompts/adr-suggestion-prompts.js.map +1 -1
  9. package/dist/src/resources/index.d.ts.map +1 -1
  10. package/dist/src/resources/index.js +31 -15
  11. package/dist/src/resources/index.js.map +1 -1
  12. package/dist/src/tools/adr-suggestion-tool.d.ts +4 -1
  13. package/dist/src/tools/adr-suggestion-tool.d.ts.map +1 -1
  14. package/dist/src/tools/adr-suggestion-tool.js +72 -114
  15. package/dist/src/tools/adr-suggestion-tool.js.map +1 -1
  16. package/dist/src/tools/content-masking-tool.d.ts +7 -0
  17. package/dist/src/tools/content-masking-tool.d.ts.map +1 -1
  18. package/dist/src/tools/content-masking-tool.js +134 -17
  19. package/dist/src/tools/content-masking-tool.js.map +1 -1
  20. package/dist/src/tools/deployment-guidance-tool.d.ts +21 -0
  21. package/dist/src/tools/deployment-guidance-tool.d.ts.map +1 -0
  22. package/dist/src/tools/deployment-guidance-tool.js +289 -0
  23. package/dist/src/tools/deployment-guidance-tool.js.map +1 -0
  24. package/dist/src/tools/environment-analysis-tool.d.ts +4 -0
  25. package/dist/src/tools/environment-analysis-tool.d.ts.map +1 -1
  26. package/dist/src/tools/environment-analysis-tool.js +209 -25
  27. package/dist/src/tools/environment-analysis-tool.js.map +1 -1
  28. package/dist/src/tools/research-question-tool.d.ts +4 -0
  29. package/dist/src/tools/research-question-tool.d.ts.map +1 -1
  30. package/dist/src/tools/research-question-tool.js +42 -4
  31. package/dist/src/tools/research-question-tool.js.map +1 -1
  32. package/dist/src/tools/rule-generation-tool.d.ts +4 -0
  33. package/dist/src/tools/rule-generation-tool.d.ts.map +1 -1
  34. package/dist/src/tools/rule-generation-tool.js +136 -16
  35. package/dist/src/tools/rule-generation-tool.js.map +1 -1
  36. package/dist/src/tools/todo-management-tool.d.ts +166 -0
  37. package/dist/src/tools/todo-management-tool.d.ts.map +1 -0
  38. package/dist/src/tools/todo-management-tool.js +472 -0
  39. package/dist/src/tools/todo-management-tool.js.map +1 -0
  40. package/dist/src/types/conversation-context.d.ts +93 -0
  41. package/dist/src/types/conversation-context.d.ts.map +1 -0
  42. package/dist/src/types/conversation-context.js +101 -0
  43. package/dist/src/types/conversation-context.js.map +1 -0
  44. package/dist/src/utils/actual-file-operations.d.ts +40 -0
  45. package/dist/src/utils/actual-file-operations.d.ts.map +1 -0
  46. package/dist/src/utils/actual-file-operations.js +309 -0
  47. package/dist/src/utils/actual-file-operations.js.map +1 -0
  48. package/dist/src/utils/adr-discovery.d.ts +36 -0
  49. package/dist/src/utils/adr-discovery.d.ts.map +1 -0
  50. package/dist/src/utils/adr-discovery.js +237 -0
  51. package/dist/src/utils/adr-discovery.js.map +1 -0
  52. package/dist/src/utils/adr-suggestions.d.ts +2 -1
  53. package/dist/src/utils/adr-suggestions.d.ts.map +1 -1
  54. package/dist/src/utils/adr-suggestions.js +8 -2
  55. package/dist/src/utils/adr-suggestions.js.map +1 -1
  56. package/dist/src/utils/apply-cot-enhancement.d.ts +46 -0
  57. package/dist/src/utils/apply-cot-enhancement.d.ts.map +1 -0
  58. package/dist/src/utils/apply-cot-enhancement.js +165 -0
  59. package/dist/src/utils/apply-cot-enhancement.js.map +1 -0
  60. package/dist/src/utils/chain-of-thought-template.d.ts +48 -0
  61. package/dist/src/utils/chain-of-thought-template.d.ts.map +1 -0
  62. package/dist/src/utils/chain-of-thought-template.js +191 -0
  63. package/dist/src/utils/chain-of-thought-template.js.map +1 -0
  64. package/dist/src/utils/deployment-analysis.d.ts +1 -0
  65. package/dist/src/utils/deployment-analysis.d.ts.map +1 -1
  66. package/dist/src/utils/deployment-analysis.js +82 -39
  67. package/dist/src/utils/deployment-analysis.js.map +1 -1
  68. package/dist/src/utils/environment-analysis.d.ts +6 -1
  69. package/dist/src/utils/environment-analysis.d.ts.map +1 -1
  70. package/dist/src/utils/environment-analysis.js +176 -87
  71. package/dist/src/utils/environment-analysis.js.map +1 -1
  72. package/dist/src/utils/file-system.d.ts +1 -0
  73. package/dist/src/utils/file-system.d.ts.map +1 -1
  74. package/dist/src/utils/file-system.js +24 -47
  75. package/dist/src/utils/file-system.js.map +1 -1
  76. package/dist/src/utils/prompt-execution.d.ts.map +1 -1
  77. package/dist/src/utils/prompt-execution.js +67 -3
  78. package/dist/src/utils/prompt-execution.js.map +1 -1
  79. package/dist/src/utils/research-integration.d.ts +4 -0
  80. package/dist/src/utils/research-integration.d.ts.map +1 -1
  81. package/dist/src/utils/research-integration.js +275 -84
  82. package/dist/src/utils/research-integration.js.map +1 -1
  83. package/dist/src/utils/research-questions.d.ts.map +1 -1
  84. package/dist/src/utils/research-questions.js +134 -38
  85. package/dist/src/utils/research-questions.js.map +1 -1
  86. package/dist/src/utils/rule-generation.d.ts +2 -1
  87. package/dist/src/utils/rule-generation.d.ts.map +1 -1
  88. package/dist/src/utils/rule-generation.js +65 -36
  89. package/dist/src/utils/rule-generation.js.map +1 -1
  90. package/package.json +5 -5
@@ -0,0 +1,191 @@
1
+ /**
2
+ * Chain-of-Thought prompting template for MCP ADR Analysis Server
3
+ * Provides structured thinking patterns to reduce LLM confusion and improve accuracy
4
+ */
5
+ /**
6
+ * Generate Chain-of-Thought prompt section
7
+ */
8
+ export function generateChainOfThoughtSection(config) {
9
+ const { taskName, steps, reasoningPattern = 'sequential', validationChecks = [], errorHandling = [] } = config;
10
+ return `
11
+ ## 🧠 Chain-of-Thought Reasoning
12
+
13
+ Before proceeding with ${taskName}, please think through this systematically:
14
+
15
+ ### Step-by-Step Process
16
+ ${steps.map((step, index) => `
17
+ **Step ${index + 1}**: ${step}
18
+ - Think: What do I need to accomplish in this step?
19
+ - Consider: What could go wrong or be misunderstood?
20
+ - Decide: What is the best approach for this specific situation?
21
+ - Validate: Does this step make sense given the context?
22
+ `).join('')}
23
+
24
+ ### Reasoning Pattern: ${reasoningPattern.toUpperCase()}
25
+ ${getReasoningPatternInstructions(reasoningPattern)}
26
+
27
+ ${validationChecks.length > 0 ? `
28
+ ### ✅ Validation Checklist
29
+ Before finalizing your response, verify:
30
+ ${validationChecks.map(check => `- [ ] ${check}`).join('\n')}
31
+ ` : ''}
32
+
33
+ ${errorHandling.length > 0 ? `
34
+ ### 🚨 Error Prevention
35
+ Watch out for these common issues:
36
+ ${errorHandling.map(error => `- ⚠️ ${error}`).join('\n')}
37
+ ` : ''}
38
+
39
+ ### Meta-Thinking
40
+ - Am I making any assumptions that should be explicitly stated?
41
+ - Have I considered alternative approaches?
42
+ - Is my reasoning clear and logical?
43
+ - Would another person be able to follow my thought process?
44
+
45
+ ---
46
+ `;
47
+ }
48
+ /**
49
+ * Directory scanning specific Chain-of-Thought template
50
+ */
51
+ export function generateDirectoryScanningCoT() {
52
+ return generateChainOfThoughtSection({
53
+ taskName: 'directory scanning and analysis',
54
+ steps: [
55
+ 'Understand the target directory path and validate it is safe to access',
56
+ 'Plan the scanning approach based on the file patterns and requirements',
57
+ 'Execute the directory traversal systematically, level by level',
58
+ 'Analyze each file/directory encountered for relevance to the task',
59
+ 'Organize findings into the requested output format',
60
+ 'Double-check results for completeness and accuracy'
61
+ ],
62
+ reasoningPattern: 'sequential',
63
+ validationChecks: [
64
+ 'Path is valid and accessible',
65
+ 'No system directories are being scanned inappropriately',
66
+ 'File patterns are applied correctly',
67
+ 'All relevant files have been identified',
68
+ 'Output format matches requirements',
69
+ 'No sensitive information is exposed'
70
+ ],
71
+ errorHandling: [
72
+ 'Attempting to scan system directories like /, /usr, /bin',
73
+ 'Missing file access permissions',
74
+ 'Scanning node_modules or other large irrelevant directories',
75
+ 'Confusing relative vs absolute paths',
76
+ 'Including sensitive files in output'
77
+ ]
78
+ });
79
+ }
80
+ /**
81
+ * Get reasoning pattern specific instructions
82
+ */
83
+ function getReasoningPatternInstructions(pattern) {
84
+ switch (pattern) {
85
+ case 'sequential':
86
+ return `
87
+ Follow steps in order, completing each before moving to the next.
88
+ Build understanding progressively from simple to complex concepts.
89
+ Ensure each step's output becomes input for the next step.`;
90
+ case 'conditional':
91
+ return `
92
+ Evaluate conditions at each decision point before proceeding.
93
+ Consider multiple paths and choose the most appropriate one.
94
+ Document why specific branches were chosen over alternatives.`;
95
+ case 'exploratory':
96
+ return `
97
+ Start with broad analysis, then narrow focus to specific areas.
98
+ Consider multiple perspectives and approaches simultaneously.
99
+ Be open to discovering unexpected patterns or insights.`;
100
+ case 'analytical':
101
+ return `
102
+ Break down complex problems into smaller, manageable components.
103
+ Analyze relationships and dependencies between elements.
104
+ Synthesize findings into comprehensive conclusions.`;
105
+ default:
106
+ return `Follow a logical, step-by-step approach appropriate for the task.`;
107
+ }
108
+ }
109
+ /**
110
+ * Add Chain-of-Thought wrapper to existing prompts
111
+ */
112
+ export function enhancePromptWithCoT(originalPrompt, config) {
113
+ const cotSection = generateChainOfThoughtSection(config);
114
+ return `${cotSection}
115
+
116
+ ## Original Task Instructions
117
+
118
+ ${originalPrompt}
119
+
120
+ ## 📝 Your Response Format
121
+
122
+ Please structure your response as follows:
123
+
124
+ 1. **Thinking Process**: Show your step-by-step reasoning
125
+ 2. **Decision Points**: Explain key decisions and why you made them
126
+ 3. **Validation**: Confirm you've checked against the validation criteria
127
+ 4. **Final Output**: Provide the requested analysis/results
128
+
129
+ Remember: Think out loud, show your work, and be explicit about your reasoning process.`;
130
+ }
131
+ /**
132
+ * Specific CoT patterns for different prompt types
133
+ */
134
+ export const COT_PATTERNS = {
135
+ PROJECT_ANALYSIS: {
136
+ taskName: 'project structure analysis',
137
+ steps: [
138
+ 'Validate and resolve the project path safely',
139
+ 'Plan the directory scanning approach with appropriate file patterns',
140
+ 'Systematically traverse directories to gather file information',
141
+ 'Analyze technologies and patterns found in the codebase',
142
+ 'Synthesize findings into structured architectural insights',
143
+ 'Format results according to the specified output schema'
144
+ ],
145
+ reasoningPattern: 'analytical',
146
+ validationChecks: [
147
+ 'Project path is valid and accessible',
148
+ 'File scanning covers all relevant areas without including noise',
149
+ 'Technology detection is evidence-based and accurate',
150
+ 'Patterns identified have clear supporting evidence',
151
+ 'Output format is complete and properly structured'
152
+ ]
153
+ },
154
+ ADR_SUGGESTION: {
155
+ taskName: 'architectural decision recommendation',
156
+ steps: [
157
+ 'Analyze the current architectural context and constraints',
158
+ 'Identify implicit decisions or decision points in the codebase',
159
+ 'Evaluate the significance and impact of each potential decision',
160
+ 'Research best practices and alternatives for each decision area',
161
+ 'Formulate specific, actionable ADR recommendations',
162
+ 'Prioritize recommendations based on impact and urgency'
163
+ ],
164
+ reasoningPattern: 'exploratory',
165
+ validationChecks: [
166
+ 'Recommendations are based on actual evidence from the codebase',
167
+ 'Each suggested ADR addresses a real architectural concern',
168
+ 'Alternatives have been considered for major decisions',
169
+ 'Priority assignments are justified and reasonable'
170
+ ]
171
+ },
172
+ RULE_GENERATION: {
173
+ taskName: 'architectural rule extraction',
174
+ steps: [
175
+ 'Systematically review each ADR for explicit and implicit rules',
176
+ 'Identify patterns that could be formalized as enforceable rules',
177
+ 'Determine the scope and applicability of each potential rule',
178
+ 'Design validation mechanisms for each rule',
179
+ 'Group related rules into logical categories',
180
+ 'Prioritize rules based on impact and enforceability'
181
+ ],
182
+ reasoningPattern: 'analytical',
183
+ validationChecks: [
184
+ 'Rules are actionable and enforceable',
185
+ 'Each rule has clear violation detection criteria',
186
+ 'Rules are specific enough to avoid ambiguity',
187
+ 'Rule categories are logical and non-overlapping'
188
+ ]
189
+ }
190
+ };
191
+ //# sourceMappingURL=chain-of-thought-template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain-of-thought-template.js","sourceRoot":"","sources":["../../../src/ut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AChB,gEAAgE;YAChE,2DAA2D;YAC3D,uDAAuD;YACvD,mDAAmD;SACxC;KACd;IAED,eAAe,EAAE;QACf,QAAQ,EAAE,+BAA+B;QACzC,KAAK,EAAE;YACL,gEAAgE;YAChE,iEAAiE;YACjE,8DAA8D;YAC9D,4CAA4C;YAC5C,6CAA6C;YAC7C,qDAAqD;SAC1C;QACb,gBAAgB,EAAE,YAAqB;QACvC,gBAAgB,EAAE;YAChB,sCAAsC;YACtC,kDAAkD;YAClD,8CAA8C;YAC9C,iDAAiD;SACtC;KACd;CACO,CAAC"}
@@ -37,6 +37,7 @@ export interface DeploymentProgress {
37
37
  export declare function identifyDeploymentTasks(adrDirectory?: string, todoPath?: string): Promise<{
38
38
  identificationPrompt: string;
39
39
  instructions: string;
40
+ actualData?: any;
40
41
  }>;
41
42
  /**
42
43
  * Analyze CI/CD logs and pipeline status
@@ -1 +1 @@
1
- {"version":3,"file":"deployment-analysis.d.ts","sourceRoot":"","sources":["../../../src/utils/deployment-analysis.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,gBAAgB,GAAG,aAAa,GAAG,MAAM,GAAG,aAAa,CAAC;IACpE,QAAQ,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;IACjD,MAAM,EAAE,aAAa,GAAG,aAAa,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAC;IAC3E,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EA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AS,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;CACnD;AAED;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,YAAY,GAAE,MAAoB,EAClC,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC;IAAE,oBAAoB,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC,CA+InF;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CACrC,QAAQ,EAAE,MAAM,EAChB,cAAc,CAAC,EAAE,MAAM,EACvB,eAAe,CAAC,EAAE,cAAc,EAAE,GACjC,OAAO,CAAC;IAAE,cAAc,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC,CA8D3D;AAED;;GAEG;AACH,wBAAsB,2BAA2B,CAC/C,eAAe,EAAE,cAAc,EAAE,EACjC,UAAU,CAAC,EAAE,GAAG,EAChB,iBAAiB,CAAC,EAAE,GAAG,GACtB,OAAO,CAAC;IAAE,cAAc,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC,CAqE3D;AAED;;GAEG;AACH,wBAAsB,0BAA0B,CAC9C,eAAe,EAAE,cAAc,EAAE,EACjC,YAAY,EAAE,WAAW,EAAE,EAC3B,cAAc,CAAC,EAAE,KAAK,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC,GACD,OAAO,CAAC;IAAE,kBAAkB,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC,CAmE/D"}
@@ -8,37 +8,63 @@ import { McpAdrError } from '../types/index.js';
8
8
  */
9
9
  export async function identifyDeploymentTasks(adrDirectory = 'docs/adrs', todoPath) {
10
10
  try {
11
- const { findFiles } = await import('./file-system.js');
12
- // Generate file discovery prompt for AI delegation
13
- const adrFileDiscoveryPrompt = await findFiles(process.cwd(), [`${adrDirectory}/**/*.md`], {
14
- includeContent: true,
15
- });
11
+ // Use actual ADR discovery instead of prompts
12
+ const { discoverAdrsInDirectory } = await import('./adr-discovery.js');
13
+ // Actually read ADR files
14
+ const discoveryResult = await discoverAdrsInDirectory(adrDirectory, true, process.cwd());
15
+ // Read TODO file if provided
16
+ let todoContent = '';
17
+ if (todoPath) {
18
+ try {
19
+ const fs = await import('fs/promises');
20
+ const path = await import('path');
21
+ const fullTodoPath = path.resolve(process.cwd(), todoPath);
22
+ todoContent = await fs.readFile(fullTodoPath, 'utf-8');
23
+ }
24
+ catch (error) {
25
+ console.warn(`Could not read TODO file at ${todoPath}: ${error}`);
26
+ todoContent = `[TODO file at ${todoPath} could not be read]`;
27
+ }
28
+ }
16
29
  // Create comprehensive deployment task identification prompt
17
30
  const deploymentAnalysisPrompt = `
18
31
  # Deployment Task Identification
19
32
 
20
- Please analyze ADR files and todo content to identify deployment-related tasks.
33
+ Based on actual ADR file analysis and TODO content, identify deployment-related tasks:
21
34
 
22
- ## File Discovery Instructions
35
+ ## Discovered ADRs (${discoveryResult.totalAdrs} total)
23
36
 
24
- ${adrFileDiscoveryPrompt.prompt}
37
+ ${discoveryResult.adrs.length > 0 ?
38
+ discoveryResult.adrs.map((adr, index) => `
39
+ ### ${index + 1}. ${adr.title}
40
+ - **File**: ${adr.filename}
41
+ - **Status**: ${adr.status}
42
+ - **Path**: ${adr.path}
43
+ ${adr.metadata?.number ? `- **Number**: ${adr.metadata.number}` : ''}
25
44
 
26
- ## Implementation Steps
45
+ #### ADR Content:
46
+ \`\`\`markdown
47
+ ${adr.content || 'Content not available'}
48
+ \`\`\`
27
49
 
28
- ${adrFileDiscoveryPrompt.instructions}
50
+ ---
51
+ `).join('\n') : 'No ADRs found in the specified directory.'}
29
52
 
30
- ## Additional Analysis Requirements
53
+ ## TODO Content Analysis
31
54
 
32
55
  ${todoPath ? `
33
- ### Todo File Analysis
34
- Please also read and analyze the todo file at: ${todoPath}
35
- Extract any deployment-related tasks, infrastructure requirements, or operational concerns.
36
- ` : ''}
56
+ ### TODO File: ${todoPath}
57
+ \`\`\`
58
+ ${todoContent}
59
+ \`\`\`
60
+
61
+ Extract any deployment-related tasks, infrastructure requirements, or operational concerns from the actual TODO content above.
62
+ ` : '**No TODO file provided.** Only ADR content will be analyzed for deployment tasks.'}
37
63
 
38
64
  ## Task Identification Criteria
39
65
 
40
- For each ADR file discovered:
41
- 1. Extract deployment-related decisions and requirements
66
+ For each ADR with **actual content** and TODO content shown above:
67
+ 1. Extract deployment-related decisions and requirements from **actual ADR content**
42
68
  2. Identify infrastructure components mentioned
43
69
  3. Find CI/CD pipeline requirements
44
70
  4. Detect operational concerns and monitoring needs
@@ -47,54 +73,71 @@ For each ADR file discovered:
47
73
  ## Required Output Format
48
74
 
49
75
  Please provide deployment task analysis in JSON format with:
50
- - Task identification and categorization
76
+ - Task identification and categorization based on actual content
51
77
  - Priority and complexity assessment
52
- - Dependencies between tasks
78
+ - Dependencies between tasks derived from actual ADR content
53
79
  - Implementation timeline recommendations
54
80
 
55
- ## Next Steps
56
- 1. **Submit the identification prompt** to an AI agent for comprehensive task analysis
57
- 2. **Parse the JSON response** to get identified deployment tasks
58
- 3. **Review task dependencies** and deployment phases
59
- 4. **Use tasks** for deployment progress tracking and management
60
-
61
81
  ## Expected AI Response Format
62
82
  The AI will return a JSON object with:
63
83
  - \`deploymentTaskAnalysis\`: Overall analysis metadata and confidence
64
- - \`identifiedTasks\`: Detailed deployment tasks with verification criteria
84
+ - \`identifiedTasks\`: Detailed deployment tasks with verification criteria based on actual content
65
85
  - \`deploymentPhases\`: Organized deployment phases and sequencing
66
- - \`deploymentDependencies\`: Task dependencies and constraints
86
+ - \`deploymentDependencies\`: Task dependencies and constraints from actual ADRs
67
87
  - \`riskAssessment\`: Deployment risks and mitigation strategies
68
88
  - \`recommendations\`: Process and tooling recommendations
69
-
70
- ## Usage Example
71
- \`\`\`typescript
72
- const result = await identifyDeploymentTasks(adrDirectory, todoPath);
73
- // Submit result.identificationPrompt to AI agent
74
- // Parse AI response for deployment tasks
75
- \`\`\`
76
89
  `;
77
90
  const instructions = `
78
91
  # Deployment Task Identification Instructions
79
92
 
80
- This analysis will identify deployment-related tasks from ADRs and todo content for comprehensive deployment tracking.
93
+ This analysis provides **actual ADR content and TODO content** to identify deployment-related tasks for comprehensive deployment tracking.
81
94
 
82
95
  ## Analysis Scope
83
96
  - **ADR Directory**: ${adrDirectory}
84
- - **Todo Content**: ${todoPath ? 'Included' : 'Not provided'}
97
+ - **ADRs Found**: ${discoveryResult.totalAdrs} files
98
+ - **ADRs with Content**: ${discoveryResult.adrs.filter(adr => adr.content).length} ADRs
99
+ - **Todo Content**: ${todoPath ? `✅ Included (${todoContent.length} characters)` : '❌ Not provided'}
85
100
  - **Task Categories**: Infrastructure, Application, CI/CD, Operational
86
101
 
102
+ ## Discovered ADR Summary
103
+ ${discoveryResult.adrs.map(adr => `- **${adr.title}** (${adr.status})`).join('\n')}
104
+
87
105
  ## Next Steps
88
- 1. **Submit the analysis prompt** to an AI agent for deployment task identification
106
+ 1. **Submit the analysis prompt** to an AI agent for deployment task identification based on **actual content**
89
107
  2. **Parse the JSON response** to get categorized deployment tasks
90
- 3. **Review task priorities** and dependencies
108
+ 3. **Review task priorities** and dependencies derived from actual ADR content
91
109
  4. **Use findings** for deployment planning and execution
92
110
 
93
- Submit the prompt to generate deployment task analysis.
111
+ ## Expected AI Response Format
112
+ The AI will return a JSON object with:
113
+ - \`deploymentTaskAnalysis\`: Overall analysis metadata and confidence
114
+ - \`identifiedTasks\`: Detailed deployment tasks with verification criteria based on actual ADR content
115
+ - \`deploymentPhases\`: Organized deployment phases and sequencing
116
+ - \`deploymentDependencies\`: Task dependencies and constraints from actual ADRs
117
+ - \`riskAssessment\`: Deployment risks and mitigation strategies
118
+ - \`recommendations\`: Process and tooling recommendations
119
+
120
+ ## Usage Example
121
+ \`\`\`typescript
122
+ const result = await identifyDeploymentTasks(adrDirectory, todoPath);
123
+ // Submit result.identificationPrompt to AI agent
124
+ // Parse AI response for deployment tasks based on actual ADR and TODO content
125
+ \`\`\`
94
126
  `;
95
127
  return {
96
128
  identificationPrompt: deploymentAnalysisPrompt,
97
129
  instructions,
130
+ actualData: {
131
+ discoveryResult,
132
+ todoContent,
133
+ todoPath,
134
+ summary: {
135
+ totalAdrs: discoveryResult.totalAdrs,
136
+ adrsWithContent: discoveryResult.adrs.filter(adr => adr.content).length,
137
+ todoProvided: !!todoPath,
138
+ todoLength: todoContent.length
139
+ }
140
+ }
98
141
  };
99
142
  }
100
143
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"deployment-analysis.js","sourceRoot":"","sources":["../../../src/utils/deployment-analysis.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAkChD;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,eAAuB,WAAW,EAClC,QAAiB;IAEjB,IAAI,CAAC;QACH,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,CAAC;QAEvD,mDAAmD;QACnD,MAAM,sBAAsB,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,YAAY,UAAU,CAAC,EAAE;YACzF,cAAc,EAAE,IAAI;SACrB,CAAC,CAAC;QAEH,6DAA6D;QAC7D,MAAM,wBAAwB,GAAG;;;;;;;EAOnC,sBAAsB,CAAC,MAAM;;;;EAI7B,sBAAsB,CAAC,YAAY;;;;EAInC,QAAQ,CAAC,CAAC,CAAC;;iDAEoC,QAAQ;;CAExD,CAAC,CAAC,CAAC,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCL,CAAC;QAEE,MAAM,YAAY,GAAG;;;;;;u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ChC,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -51,6 +51,7 @@ export interface ComplianceAssessment {
51
51
  export declare function analyzeEnvironmentSpecs(projectPath?: string): Promise<{
52
52
  analysisPrompt: string;
53
53
  instructions: string;
54
+ actualData?: any;
54
55
  }>;
55
56
  /**
56
57
  * Detect containerization technologies
@@ -62,7 +63,7 @@ export declare function detectContainerization(projectPath?: string): Promise<{
62
63
  /**
63
64
  * Determine environment requirements from ADRs
64
65
  */
65
- export declare function determineEnvironmentRequirements(adrDirectory?: string): Promise<{
66
+ export declare function determineEnvironmentRequirements(adrDirectory?: string, projectPath?: string): Promise<{
66
67
  requirementsPrompt: string;
67
68
  instructions: string;
68
69
  }>;
@@ -73,4 +74,8 @@ export declare function assessEnvironmentCompliance(currentEnvironment: any, req
73
74
  compliancePrompt: string;
74
75
  instructions: string;
75
76
  }>;
77
+ /**
78
+ * Find environment-related files in the project
79
+ * Returns mock data for prompt-driven architecture
80
+ */
76
81
  //# sourceMappingURL=environment-analysis.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"environment-analysis.d.ts","sourceRoot":"","sources":["../../../src/utils/environment-analysis.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAC;CAClF;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,YAAY,EAAE,GAAG,EAAE,CAAC;IACpB,mBAAmB,EAAE,GAAG,EAAE,CAAC;IAC3B,kBAAkB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