snow-ai 0.2.7 → 0.2.8
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.
- package/dist/mcp/filesystem.js +12 -2
- package/package.json +1 -1
package/dist/mcp/filesystem.js
CHANGED
|
@@ -317,8 +317,18 @@ export class FilesystemMCPService {
|
|
|
317
317
|
const errorCount = diagnostics.filter(d => d.severity === 'error').length;
|
|
318
318
|
const warningCount = diagnostics.filter(d => d.severity === 'warning').length;
|
|
319
319
|
if (errorCount > 0 || warningCount > 0) {
|
|
320
|
-
result.message += `\n\n⚠️ Diagnostics detected: ${errorCount} error(s), ${warningCount} warning(s)
|
|
321
|
-
|
|
320
|
+
result.message += `\n\n⚠️ Diagnostics detected: ${errorCount} error(s), ${warningCount} warning(s)`;
|
|
321
|
+
// Format diagnostics for better readability
|
|
322
|
+
const formattedDiagnostics = diagnostics
|
|
323
|
+
.filter(d => d.severity === 'error' || d.severity === 'warning')
|
|
324
|
+
.map(d => {
|
|
325
|
+
const icon = d.severity === 'error' ? '❌' : '⚠️';
|
|
326
|
+
const location = `${filePath}:${d.line}:${d.character}`;
|
|
327
|
+
return ` ${icon} [${d.source || 'unknown'}] ${location}\n ${d.message}`;
|
|
328
|
+
})
|
|
329
|
+
.join('\n\n');
|
|
330
|
+
result.message += `\n\n📋 Diagnostic Details:\n${formattedDiagnostics}`;
|
|
331
|
+
result.message += `\n\n ⚡ TIP: Review the errors above and make another small edit to fix them`;
|
|
322
332
|
}
|
|
323
333
|
}
|
|
324
334
|
return result;
|