refactor: optimize configuration and tool implementations
- Standardized error handling across tool implementations - Improved return type consistency for tool execution results - Simplified configuration parsing and type definitions - Enhanced type safety for various configuration schemas - Cleaned up and normalized tool response structures - Updated SSE and event subscription tool implementations
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
const check = async () => {
|
||||
try {
|
||||
const response = await fetch('http://localhost:3000/health');
|
||||
if (!response.ok) {
|
||||
console.error('Health check failed:', response.status);
|
||||
process.exit(1);
|
||||
}
|
||||
console.log('Health check passed');
|
||||
process.exit(0);
|
||||
} catch (error) {
|
||||
console.error('Health check failed:', error);
|
||||
process.exit(1);
|
||||
try {
|
||||
const response = await fetch("http://localhost:3000/health");
|
||||
if (!response.ok) {
|
||||
console.error("Health check failed:", response.status);
|
||||
process.exit(1);
|
||||
}
|
||||
console.log("Health check passed");
|
||||
process.exit(0);
|
||||
} catch (error) {
|
||||
console.error("Health check failed:", error);
|
||||
process.exit(1);
|
||||
}
|
||||
};
|
||||
|
||||
check();
|
||||
check();
|
||||
|
||||
Reference in New Issue
Block a user